bkui-vue 2.0.1-beta.67 → 2.0.1-beta.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -16,7 +16,7 @@ ${xu(o.join(`
16
16
  `))}`),c}}:{type:r})}function W_(e){return Pe("arrayOf",{type:Array,validator(t){let n="";const r=t.every(s=>(n=ms(e,s,!0),n===!0));return r||Gt(`arrayOf - value validation error:
17
17
  ${xu(n)}`),r}})}function G_(e){return Pe("instanceOf",{type:e})}function K_(e){return Pe("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every(s=>(n=ms(e,t[s],!0),n===!0));return r||Gt(`objectOf - value validation error:
18
18
  ${xu(n)}`),r}})}function Y_(e){const t=Object.keys(e),n=t.filter(s=>{var o;return!((o=e[s])===null||o===void 0||!o.required)}),r=Pe("shape",{type:Object,validator(s){if(!us(s))return!1;const o=Object.keys(s);if(n.length>0&&n.some(c=>o.indexOf(c)===-1)){const c=n.filter(u=>o.indexOf(u)===-1);return Gt(c.length===1?`shape - required property "${c[0]}" is not defined.`:`shape - required properties "${c.join('", "')}" are not defined.`),!1}return o.every(c=>{if(t.indexOf(c)===-1)return this._vueTypes_isLoose===!0||(Gt(`shape - shape definition does not include a "${c}" property. Allowed keys: "${t.join('", "')}".`),!1);const u=ms(e[c],s[c],!0);return typeof u=="string"&&Gt(`shape - "${c}" property validation error:
19
- ${xu(u)}`),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const X_=["name","validate","getter"],q_=(()=>{var e,t;return t=e=class{static get any(){return R_()}static get func(){return Ci().def(this.defaults.func)}static get bool(){return F_().def(this.defaults.bool)}static get string(){return rn().def(this.defaults.string)}static get number(){return yg().def(this.defaults.number)}static get array(){return fh().def(this.defaults.array)}static get object(){return bg().def(this.defaults.object)}static get integer(){return H_().def(this.defaults.integer)}static get symbol(){return B_()}static extend(n){if(di(n))return n.forEach(h=>this.extend(h)),this;const{name:r,validate:s=!1,getter:o=!1}=n,c=fg(n,X_);if(ui(this,r))throw new TypeError(`[VueTypes error]: Type "${r}" already defined`);const{type:u}=c;if(zc(u))return delete c.type,Object.defineProperty(this,r,o?{get:()=>m6(r,u,c)}:{value(...h){const f=m6(r,u,c);return f.validator&&(f.validator=f.validator.bind(f,...h)),f}});let d;return d=o?{get(){const h=Object.assign({},c);return s?Vr(r,h):Pe(r,h)},enumerable:!0}:{value(...h){const f=Object.assign({},c);let m;return m=s?Vr(r,f):Pe(r,f),f.validator&&(m.validator=f.validator.bind(m,...h)),m},enumerable:!0},Object.defineProperty(this,r,d)}},e.defaults={},e.sensibleDefaults=void 0,e.config=y0,e.custom=z_,e.oneOf=U_,e.instanceOf=G_,e.oneOfType=j_,e.arrayOf=W_,e.objectOf=K_,e.shape=Y_,e.utils={validate:(n,r)=>ms(r,n,!0)===!0,toType:(n,r,s=!1)=>s?Vr(n,r):Pe(n,r)},t})();function wg(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t,n;return n=t=class extends q_{static get sensibleDefaults(){return wo({},this.defaults)}static set sensibleDefaults(r){this.defaults=r!==!1?wo({},r!==!0?r:e):{}}},t.defaults=wo({},e),n}class UX extends wg(){}const J_=wg({});function Cg(e){return e.reduce((t,n)=>(t[n]=n,t),Object.create(null))}var hh=(e=>(e.DEFAULT="default",e.LARGE="large",e.SMALL="small",e))(hh||{});function mh(){return rn().def("show")}var Uc=(e=>(e.CENTER="center",e.LEFT="left",e.RIGHT="right",e))(Uc||{});function b0(){return rn().def("left")}var _u=(e=>(e.DANGER="danger",e.PRIMARY="primary",e.SUCCESS="success",e.WARNING="warning",e))(_u||{}),Lo=(e=>(e.AUTO="auto",e.AUTO_END="auto-end",e.AUTO_START="auto-start",e.BOTTOM="bottom",e.BOTTOM_END="bottom-end",e.BOTTOM_START="bottom-start",e.LEFT="left",e.LEFT_END="left-end",e.LEFT_START="left-start",e.RIGHT="right",e.RIGHT_END="right-end",e.RIGHT_START="right-start",e.TOP="top",e.TOP_END="top-end",e.TOP_START="top-start",e))(Lo||{});function gh(){return rn().def("bottom")}function Ng(){return rn().def("hover")}var Su=(e=>(e.AUTO="auto",e.SHOWN="shown",e))(Su||{});function Z_(){return Pe("popRenderType",{}).def("shown")}function Q_(){return Pe("dialogType",{default:"operation"})}function xg(){return Pe("direction",{}).def("horizontal")}function _g(){return Pe("lineType",{}).def("dashed")}var Sg=(e=>(e.DANGER="danger",e.INFO="info",e.SUCCESS="success",e.UNKNOWN="",e.WARNING="warning",e))(Sg||{});function Tu(){return Pe("tagTheme",{}).def()}function eS(){return Pe("switcherTheme",{}).def("success")}function tS(){return Pe("progressStrokeLineCap",{}).def("round")}function nS(){return Pe("progress",{}).def("line")}function ph(){return Pe("behavior",{}).def("normal")}class v extends J_{static size(){const t=["small","default","large","huge"];return Pe("Size",{validator:n=>!n||t.includes(n)?!0:(console.error(`invalid theme, ${n}, the theme must be one of 【${t.join(" | ")}】`),!1),default:"default"})}static theme(){const t=["primary","warning","success","danger"];return Pe("Theme",{validator:n=>!n||t.includes(n)?!0:(console.error(`invalid theme, ${n}, the theme must be one of 【${t.join(" | ")}】`),!1)})}static placement(){const t=["top","left","right","bottom"];return Pe("Placements",{validator:n=>!!(!n||t.includes(n)),default:"top"})}static style(){return Pe("Style",{type:[String,Object]})}static position(t=["top-left","top-right","bottom-left","bottom-right"]){return Pe("positions",{type:String,validator:n=>!n||t.includes(n)?!0:(console.error(`invalid positions, ${n}, the position must be one of 【${t.join(" | ")}】`),!1),default:"top-center"})}static infoType(){const t=["success","danger","warning","loading"];return Pe("InfoType",{validator:n=>!!(!n||t.includes(n))})}static timelineNodeType(){const t=["template","vnode"];return Pe("TimelineNodeType",{validator:n=>!!(!n||t.includes(n))})}}var Tc=(e=>(e.CHECK="check",e.CHECKBOX="checkbox",e))(Tc||{});function rS(){return Pe("selectedStyle",{}).def("check")}const Jf={bottom:0,content:1,navi:100,fullScreen:1e3,modal:2e3,plugins:5e3,message:6e3,popper:8e3};class aS{constructor(){Le(this,"storageLayerIndexValue",{});this.copyDefaultValue()}getNextIndex(t){if(Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,t))return this.storageLayerIndexValue[t]=this.storageLayerIndexValue[t]+1,this.storageLayerIndexValue[t];this.getNextIndex("modal")}getModalNextIndex(){return this.getNextIndex("modal")}getMessageNextIndex(){return this.getNextIndex("message")}getFullScreenNextIndex(){return this.getNextIndex("fullScreen")}getNaviNextIndex(){return this.getNextIndex("navi")}getPopperIndex(){return this.getNextIndex("popper")}setDefaultZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue.__proto__,n)&&Object.assign(this.storageLayerIndexValue.__proto__,{[n]:t[n]})}),this.copyDefaultValue()}resetZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,n)&&Object.assign(this.storageLayerIndexValue,{[n]:t[n]})})}copyDefaultValue(){const t=Object.keys(Jf).reduce((n,r)=>Object.assign(n,{[r]:{value:Jf[r],writable:!0,configurable:!0}}),{});this.storageLayerIndexValue=Object.create(Jf,t)}}const ea=new aS,sS=function(){const e={cancelToken:0},t=()=>{e.cancelToken=0},n=(r,s,...o)=>{e.callbackThis=r,e.args=o,!e.cancelToken&&("requestAnimationFrame"in window?e.cancelToken=window.requestAnimationFrame(()=>{s.apply(e.callbackThis,e.args),t()}):(s.apply(e.callbackThis,e.args),e.cancelToken=window.setTimeout(t,1e3/60)))};return n.cancel=()=>{"requestAnimationFrame"in window&&window.cancelAnimationFrame(e.cancelToken),window.clearTimeout(e.cancelToken),t()},n},g6=function(e,t,...n){const r=sS(),s=arguments.length,o=function(...c){r(s>1?t:this,e,...n,...c)};return o.cancel=()=>r.cancel(),o},Tg=e=>{const t=g6(e);return t.bind=g6.bind(null,e),t};function ze(e,t=""){return Object.entries(e).filter(n=>n[1]).map(n=>n[0]).join(" ").concat(t?` ${t}`:"")}const Eg=Object.create({}),Og=e=>Object.keys(e).length<1,Qe=e=>(e.install=function(t,{prefix:n}={}){const r=t.config.globalProperties.bkUIPrefix||n||"Bk";t.component(r+e.name,e)},e),on=(e,t,n=!1,r)=>(e.install=function(s,{prefix:o}={}){const c=s.config.globalProperties.bkUIPrefix||o||"Bk";r&&s.directive(c+r.name,r.directive),s.component(c+e.name,e),!n&&Object.values(t).forEach(u=>{s.component(c+u.name,u)})},Object.keys(t).forEach(s=>{e[s]=t[s]}),e);function jc(e,t="bk"){return`${t}-${e}`}function Uo(e=300,t,n=!1){let r,s;const o=function(){const c=this,u=arguments;if(r&&clearTimeout(r),n){const d=!r;r=setTimeout(()=>{r=null},e),d&&(s=t.apply(c,u))}else r=setTimeout(()=>{t.apply(c,u)},e);return s};return o.cancel=function(){clearTimeout(r),r=null},o}function Qs(e=[],t=[]){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){if(Array.isArray(e[n]))return Qs(e[n],t[n]);if(e[n]!==t[n])return!1}return!0}function iS(){this.__data__=[],this.size=0}var oS=iS;function lS(e,t){return e===t||e!==e&&t!==t}var jo=lS,cS=jo;function uS(e,t){for(var n=e.length;n--;)if(cS(e[n][0],t))return n;return-1}var Eu=uS,dS=Eu,fS=Array.prototype,hS=fS.splice;function mS(e){var t=this.__data__,n=dS(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():hS.call(t,n,1),--this.size,!0}var gS=mS,pS=Eu;function vS(e){var t=this.__data__,n=pS(t,e);return n<0?void 0:t[n][1]}var yS=vS,bS=Eu;function wS(e){return bS(this.__data__,e)>-1}var CS=wS,NS=Eu;function xS(e,t){var n=this.__data__,r=NS(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var _S=xS,SS=oS,TS=gS,ES=yS,OS=CS,LS=_S;function Ni(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ni.prototype.clear=SS;Ni.prototype.delete=TS;Ni.prototype.get=ES;Ni.prototype.has=OS;Ni.prototype.set=LS;var Ou=Ni,AS=Ou;function VS(){this.__data__=new AS,this.size=0}var $S=VS;function DS(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var IS=DS;function kS(e){return this.__data__.get(e)}var PS=kS;function MS(e){return this.__data__.has(e)}var RS=MS,FS=ra,HS=dr,BS="[object AsyncFunction]",zS="[object Function]",US="[object GeneratorFunction]",jS="[object Proxy]";function WS(e){if(!HS(e))return!1;var t=FS(e);return t==zS||t==US||t==BS||t==jS}var Lu=WS;const Er=Kt(Lu);var GS=fr,KS=GS["__core-js_shared__"],YS=KS,Zf=YS,p6=function(){var e=/[^.]+$/.exec(Zf&&Zf.keys&&Zf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function XS(e){return!!p6&&p6 in e}var qS=XS,JS=Function.prototype,ZS=JS.toString;function QS(e){if(e!=null){try{return ZS.call(e)}catch{}try{return e+""}catch{}}return""}var Lg=QS,eT=Lu,tT=qS,nT=dr,rT=Lg,aT=/[\\^$.*+?()[\]{}|]/g,sT=/^\[object .+?Constructor\]$/,iT=Function.prototype,oT=Object.prototype,lT=iT.toString,cT=oT.hasOwnProperty,uT=RegExp("^"+lT.call(cT).replace(aT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dT(e){if(!nT(e)||tT(e))return!1;var t=eT(e)?uT:sT;return t.test(rT(e))}var fT=dT;function hT(e,t){return e==null?void 0:e[t]}var mT=hT,gT=fT,pT=mT;function vT(e,t){var n=pT(e,t);return gT(n)?n:void 0}var gs=vT,yT=gs,bT=fr,wT=yT(bT,"Map"),vh=wT,CT=gs,NT=CT(Object,"create"),Au=NT,v6=Au;function xT(){this.__data__=v6?v6(null):{},this.size=0}var _T=xT;function ST(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var TT=ST,ET=Au,OT="__lodash_hash_undefined__",LT=Object.prototype,AT=LT.hasOwnProperty;function VT(e){var t=this.__data__;if(ET){var n=t[e];return n===OT?void 0:n}return AT.call(t,e)?t[e]:void 0}var $T=VT,DT=Au,IT=Object.prototype,kT=IT.hasOwnProperty;function PT(e){var t=this.__data__;return DT?t[e]!==void 0:kT.call(t,e)}var MT=PT,RT=Au,FT="__lodash_hash_undefined__";function HT(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=RT&&t===void 0?FT:t,this}var BT=HT,zT=_T,UT=TT,jT=$T,WT=MT,GT=BT;function xi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xi.prototype.clear=zT;xi.prototype.delete=UT;xi.prototype.get=jT;xi.prototype.has=WT;xi.prototype.set=GT;var KT=xi,y6=KT,YT=Ou,XT=vh;function qT(){this.size=0,this.__data__={hash:new y6,map:new(XT||YT),string:new y6}}var JT=qT;function ZT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var QT=ZT,eE=QT;function tE(e,t){var n=e.__data__;return eE(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Vu=tE,nE=Vu;function rE(e){var t=nE(this,e).delete(e);return this.size-=t?1:0,t}var aE=rE,sE=Vu;function iE(e){return sE(this,e).get(e)}var oE=iE,lE=Vu;function cE(e){return lE(this,e).has(e)}var uE=cE,dE=Vu;function fE(e,t){var n=dE(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var hE=fE,mE=JT,gE=aE,pE=oE,vE=uE,yE=hE;function _i(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_i.prototype.clear=mE;_i.prototype.delete=gE;_i.prototype.get=pE;_i.prototype.has=vE;_i.prototype.set=yE;var yh=_i,bE=Ou,wE=vh,CE=yh,NE=200;function xE(e,t){var n=this.__data__;if(n instanceof bE){var r=n.__data__;if(!wE||r.length<NE-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new CE(r)}return n.set(e,t),this.size=n.size,this}var _E=xE,SE=Ou,TE=$S,EE=IS,OE=PS,LE=RS,AE=_E;function Si(e){var t=this.__data__=new SE(e);this.size=t.size}Si.prototype.clear=TE;Si.prototype.delete=EE;Si.prototype.get=OE;Si.prototype.has=LE;Si.prototype.set=AE;var bh=Si,VE=gs,$E=function(){try{var e=VE(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ag=$E,b6=Ag;function DE(e,t,n){t=="__proto__"&&b6?b6(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var wh=DE,IE=wh,kE=jo;function PE(e,t,n){(n!==void 0&&!kE(e[t],n)||n===void 0&&!(t in e))&&IE(e,t,n)}var Vg=PE;function ME(e){return function(t,n,r){for(var s=-1,o=Object(t),c=r(t),u=c.length;u--;){var d=c[e?u:++s];if(n(o[d],d,o)===!1)break}return t}}var RE=ME,FE=RE,HE=FE(),BE=HE,Wc={exports:{}};Wc.exports;(function(e,t){var n=fr,r=t&&!t.nodeType&&t,s=r&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===r,c=o?n.Buffer:void 0,u=c?c.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,p=u?u(m):new h.constructor(m);return h.copy(p),p}e.exports=d})(Wc,Wc.exports);var $g=Wc.exports,zE=fr,UE=zE.Uint8Array,Dg=UE,w6=Dg;function jE(e){var t=new e.constructor(e.byteLength);return new w6(t).set(new w6(e)),t}var Ch=jE,WE=Ch;function GE(e,t){var n=t?WE(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Ig=GE;function KE(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var kg=KE,YE=dr,C6=Object.create,XE=function(){function e(){}return function(t){if(!YE(t))return{};if(C6)return C6(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),qE=XE;function JE(e,t){return function(n){return e(t(n))}}var Pg=JE,ZE=Pg,QE=ZE(Object.getPrototypeOf,Object),Nh=QE,eO=Object.prototype;function tO(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eO;return e===n}var $u=tO,nO=qE,rO=Nh,aO=$u;function sO(e){return typeof e.constructor=="function"&&!aO(e)?nO(rO(e)):{}}var Mg=sO,iO=ra,oO=kn,lO="[object Arguments]";function cO(e){return oO(e)&&iO(e)==lO}var uO=cO,N6=uO,dO=kn,Rg=Object.prototype,fO=Rg.hasOwnProperty,hO=Rg.propertyIsEnumerable,mO=N6(function(){return arguments}())?N6:function(e){return dO(e)&&fO.call(e,"callee")&&!hO.call(e,"callee")},xh=mO,gO=Array.isArray,Mr=gO,pO=9007199254740991;function vO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pO}var Fg=vO,yO=Lu,bO=Fg;function wO(e){return e!=null&&bO(e.length)&&!yO(e)}var Wo=wO,CO=Wo,NO=kn;function xO(e){return NO(e)&&CO(e)}var _O=xO,Gc={exports:{}};function SO(){return!1}var TO=SO;Gc.exports;(function(e,t){var n=fr,r=TO,s=t&&!t.nodeType&&t,o=s&&!0&&e&&!e.nodeType&&e,c=o&&o.exports===s,u=c?n.Buffer:void 0,d=u?u.isBuffer:void 0,h=d||r;e.exports=h})(Gc,Gc.exports);var Go=Gc.exports,EO=ra,OO=Nh,LO=kn,AO="[object Object]",VO=Function.prototype,$O=Object.prototype,Hg=VO.toString,DO=$O.hasOwnProperty,IO=Hg.call(Object);function kO(e){if(!LO(e)||EO(e)!=AO)return!1;var t=OO(e);if(t===null)return!0;var n=DO.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Hg.call(n)==IO}var Bg=kO,PO=ra,MO=Fg,RO=kn,FO="[object Arguments]",HO="[object Array]",BO="[object Boolean]",zO="[object Date]",UO="[object Error]",jO="[object Function]",WO="[object Map]",GO="[object Number]",KO="[object Object]",YO="[object RegExp]",XO="[object Set]",qO="[object String]",JO="[object WeakMap]",ZO="[object ArrayBuffer]",QO="[object DataView]",eL="[object Float32Array]",tL="[object Float64Array]",nL="[object Int8Array]",rL="[object Int16Array]",aL="[object Int32Array]",sL="[object Uint8Array]",iL="[object Uint8ClampedArray]",oL="[object Uint16Array]",lL="[object Uint32Array]",bt={};bt[eL]=bt[tL]=bt[nL]=bt[rL]=bt[aL]=bt[sL]=bt[iL]=bt[oL]=bt[lL]=!0;bt[FO]=bt[HO]=bt[ZO]=bt[BO]=bt[QO]=bt[zO]=bt[UO]=bt[jO]=bt[WO]=bt[GO]=bt[KO]=bt[YO]=bt[XO]=bt[qO]=bt[JO]=!1;function cL(e){return RO(e)&&MO(e.length)&&!!bt[PO(e)]}var uL=cL;function dL(e){return function(t){return e(t)}}var Du=dL,Kc={exports:{}};Kc.exports;(function(e,t){var n=cg,r=t&&!t.nodeType&&t,s=r&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===r,c=o&&n.process,u=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=u})(Kc,Kc.exports);var Iu=Kc.exports,fL=uL,hL=Du,x6=Iu,_6=x6&&x6.isTypedArray,mL=_6?hL(_6):fL,ku=mL;function gL(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var zg=gL,pL=wh,vL=jo,yL=Object.prototype,bL=yL.hasOwnProperty;function wL(e,t,n){var r=e[t];(!(bL.call(e,t)&&vL(r,n))||n===void 0&&!(t in e))&&pL(e,t,n)}var Ug=wL,CL=Ug,NL=wh;function xL(e,t,n,r){var s=!n;n||(n={});for(var o=-1,c=t.length;++o<c;){var u=t[o],d=r?r(n[u],e[u],u,n,e):void 0;d===void 0&&(d=e[u]),s?NL(n,u,d):CL(n,u,d)}return n}var Ko=xL;function _L(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var SL=_L,TL=9007199254740991,EL=/^(?:0|[1-9]\d*)$/;function OL(e,t){var n=typeof e;return t=t??TL,!!t&&(n=="number"||n!="symbol"&&EL.test(e))&&e>-1&&e%1==0&&e<t}var jg=OL,LL=SL,AL=xh,VL=Mr,$L=Go,DL=jg,IL=ku,kL=Object.prototype,PL=kL.hasOwnProperty;function ML(e,t){var n=VL(e),r=!n&&AL(e),s=!n&&!r&&$L(e),o=!n&&!r&&!s&&IL(e),c=n||r||s||o,u=c?LL(e.length,String):[],d=u.length;for(var h in e)(t||PL.call(e,h))&&!(c&&(h=="length"||s&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||DL(h,d)))&&u.push(h);return u}var Wg=ML;function RL(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var FL=RL,HL=dr,BL=$u,zL=FL,UL=Object.prototype,jL=UL.hasOwnProperty;function WL(e){if(!HL(e))return zL(e);var t=BL(e),n=[];for(var r in e)r=="constructor"&&(t||!jL.call(e,r))||n.push(r);return n}var GL=WL,KL=Wg,YL=GL,XL=Wo;function qL(e){return XL(e)?KL(e,!0):YL(e)}var Yo=qL,JL=Ko,ZL=Yo;function QL(e){return JL(e,ZL(e))}var eA=QL,S6=Vg,tA=$g,nA=Ig,rA=kg,aA=Mg,T6=xh,E6=Mr,sA=_O,iA=Go,oA=Lu,lA=dr,cA=Bg,uA=ku,O6=zg,dA=eA;function fA(e,t,n,r,s,o,c){var u=O6(e,n),d=O6(t,n),h=c.get(d);if(h){S6(e,n,h);return}var f=o?o(u,d,n+"",e,t,c):void 0,m=f===void 0;if(m){var p=E6(d),y=!p&&iA(d),b=!p&&!y&&uA(d);f=d,p||y||b?E6(u)?f=u:sA(u)?f=rA(u):y?(m=!1,f=tA(d,!0)):b?(m=!1,f=nA(d,!0)):f=[]:cA(d)||T6(d)?(f=u,T6(u)?f=dA(u):(!lA(u)||oA(u))&&(f=aA(d))):m=!1}m&&(c.set(d,f),s(f,d,r,o,c),c.delete(d)),S6(e,n,f)}var hA=fA,mA=bh,gA=Vg,pA=BE,vA=hA,yA=dr,bA=Yo,wA=zg;function Gg(e,t,n,r,s){e!==t&&pA(t,function(o,c){if(s||(s=new mA),yA(o))vA(e,t,c,n,Gg,r,s);else{var u=r?r(wA(e,c),o,c+"",e,t,s):void 0;u===void 0&&(u=o),gA(e,c,u)}},bA)}var CA=Gg;function NA(e){return e}var Kg=NA;function xA(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _A=xA,SA=_A,L6=Math.max;function TA(e,t,n){return t=L6(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=L6(r.length-t,0),c=Array(o);++s<o;)c[s]=r[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=r[s];return u[t]=n(c),SA(e,this,u)}}var EA=TA;function OA(e){return function(){return e}}var LA=OA,AA=LA,A6=Ag,VA=Kg,$A=A6?function(e,t){return A6(e,"toString",{configurable:!0,enumerable:!1,value:AA(t),writable:!0})}:VA,DA=$A,IA=800,kA=16,PA=Date.now;function MA(e){var t=0,n=0;return function(){var r=PA(),s=kA-(r-n);if(n=r,s>0){if(++t>=IA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var RA=MA,FA=DA,HA=RA,BA=HA(FA),zA=BA,UA=Kg,jA=EA,WA=zA;function GA(e,t){return WA(jA(e,t,UA),e+"")}var KA=GA,YA=jo,XA=Wo,qA=jg,JA=dr;function ZA(e,t,n){if(!JA(n))return!1;var r=typeof t;return(r=="number"?XA(n)&&qA(t,n.length):r=="string"&&t in n)?YA(n[t],e):!1}var QA=ZA,eV=KA,tV=QA;function nV(e){return eV(function(t,n){var r=-1,s=n.length,o=s>1?n[s-1]:void 0,c=s>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,c&&tV(n[0],n[1],c)&&(o=s<3?void 0:o,s=1),t=Object(t);++r<s;){var u=n[r];u&&e(t,u,r,o)}return t})}var rV=nV,aV=CA,sV=rV,iV=sV(function(e,t,n){aV(e,t,n)}),oV=iV;const _h=Kt(oV),lV={lang:"zh-cn",steps:{step1:"步骤1",step2:"步骤2",step3:"步骤3"},datePicker:{selectDate:"选择日期",selectTime:"选择时间",clear:"清除",ok:"确定",weekdays:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},hour:"时",min:"分",sec:"秒",toNow:"至今"},dialog:{ok:"确定",cancel:"取消",prev:"上一步",next:"下一步"},popConfirm:{ok:"确定",cancel:"取消"},form:{notBeEmpty:"不能为空",incorrectFormat:"格式不正确",max:"最大值",min:"最小值",maxLen:"最大长度",verifyError:"验证错误"},pagination:{eachPage:"每页",strip:"条",total:"共计"},process:{step1:"步骤1",step2:"步骤2",step3:"步骤3",step4:"步骤4"},searchSelect:{pleaseSelect:"请选择",loading:"加载中...",filterQueryMustHasValue:"包含键值的过滤查询必须有一个值",ok:"确认",cancel:"取消",or:"或",and:"且",logical:"逻辑:"},select:{noData:"无数据",noMatchedData:"无匹配数据",loading:"加载中...",pleaseSelect:"请选择",enterKeywords:"请输入关键字",all:"全部",selectAll:"全选"},table:{emptyText:"暂无数据",confirm:"确定",reset:"重置",sort:"排序",setting:{title:"表格设置",fields:{title:"字段显示设置",subtitle:e=>`(最多${e}项)`,selectAll:"全选"},lineHeight:{title:"表格行高",small:"小",medium:"中",large:"大"},options:{ok:"确认",cancel:"取消"}}},transfer:{sourceList:"源列表",targetList:"目标列表",removeAll:"清空",selectAll:"选择全部",noData:"无数据",noSelected:"未选择任何项",search:"搜索"},upload:{uploadSuccess:"上传成功",uploadFailed:"上传失败",drapFileOr:"将文件拖到此处或",clickUpload:"点击上传",uploadLabel:"上传文件"},input:{placeholder:"请输入",maxlengthLimitTips:"已达到字数上限"},tagInput:{placeholder:"请输入并按Enter结束"},message:{assistant:"助手",details:"详情",copySuccess:"复制成功",copyFailed:"复制失败"},cascader:{pleaseSelect:"请选择",noData:"无数据",emptyText:"暂无搜索结果"},versionLog:{current:"当前版本"}},hi=Symbol("rootProviderData"),ds={locale:lV,prefix:"bk"},w0=e=>{document.documentElement.style.setProperty("--bk-prefix",e||ds.prefix)},Sh=(e,t)=>{const n=a.reactive({..._h(ds,e)});if(w0(e.prefix),Object.keys(e).forEach(r=>{a.watch(()=>e[r],()=>{r==="prefix"&&w0(e[r]),n[r]=e[r]})}),!a.getCurrentInstance()&&(t!=null&&t.provide)){t.provide(hi,n);return}a.provide(hi,n)},cV=()=>{const e=a.inject(hi,ds);return a.computed(()=>e)},uV={locale:{type:Object},prefix:{type:String,default:"bk"}},dV=a.defineComponent({name:"ConfigProvider",inheritAttrs:!1,props:uV,setup(e,{slots:t}){return Sh(e),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}});function ut(e){const t=a.inject(hi,ds);return a.computed(()=>{const{locale:n}=t;return n&&e?n[e]:{}})}function xe(){const e=a.inject(hi,ds),t=a.computed(()=>{const{prefix:r}=e;return r||""});function n(r){return`${t.value}-${r.replace(new RegExp(`^${ds.prefix}-`),"")}`}return{prefix:t,resolveClassName:n}}const Yg=Qe(dV),oc=document.addEventListener?(e,t,n)=>{e&&t&&n&&e.addEventListener(t,n,!0)}:(e,t,n)=>{e&&t&&n&&e.attachEvent(`on${t}`,n)},Qf=document.removeEventListener?(e,t,n)=>{e&&t&&e.removeEventListener(t,n,!0)}:(e,t,n)=>{e&&t&&e.detachEvent(`on${t}`,n)},fV=a.defineComponent({name:"Affix",props:{offsetTop:v.number.def(0),offsetBottom:v.number,target:v.string.def(""),zIndex:v.number.def(1e3)},emits:["change"],setup(e,{emit:t,slots:n}){const r=a.ref(null),s=a.ref(null),o=a.ref(),c=a.ref({}),{proxy:u}=a.getCurrentInstance(),d=a.ref(0),h=a.computed(()=>({...c.value,"z-index":e.zIndex}));a.onMounted(()=>{d.value=u.$el.offsetWidth,o.value=e.target?document.querySelector(e.target):window,oc(o.value,"scroll",N),oc(o.value,"resize",N),a.nextTick(()=>{C()})});const{resolveClassName:f}=xe(),m=a.ref(!1),p=a.computed(()=>ze({[`${f("affix")}`]:m.value})),y=a.computed(()=>e.offsetBottom>=0?"bottom":"top"),b=()=>{y.value==="top"?c.value={top:`${o.value.getBoundingClientRect().top+e.offsetTop}px`}:c.value={bottom:`${window.innerHeight-o.value.getBoundingClientRect().bottom+e.offsetBottom}px`}},N=Nu(()=>{C()},100),w=E=>{const _=E.value.getBoundingClientRect(),x=o.value===window?{top:0,left:0}:o.value.getBoundingClientRect(),O=o.value.clientTop||0,T=o.value.clientLeft||0;return{top:_.top-x.top-O,left:_.left-x.left-T}},C=()=>{const E=o.value===window?{top:0,left:0,bottom:window.innerHeight}:o.value.getBoundingClientRect(),_=w(s),x=o.value===window?o.value.innerHeight:o.value.clientHeight,O=r.value.offsetHeight;_.top<e.offsetTop&&y.value==="top"&&!m.value?(m.value=!0,c.value={position:"fixed",top:`${E.top+e.offsetTop}px`,left:`${E.left+_.left}px`,width:`${d.value}px`},o.value!==window&&oc(window,"scroll",b),t("change",!0)):_.top>e.offsetTop&&y.value==="top"&&m.value&&(m.value=!1,c.value=null,t("change",!1)),_.top+e.offsetBottom+O>x&&y.value==="bottom"&&!m.value?(m.value=!0,c.value={bottom:`${window.innerHeight-E.bottom+e.offsetBottom}px`,left:`${E.left+_.left}px`,width:`${d.value}px`},o.value!==window&&oc(window,"scroll",b),t("change",!0)):_.top+e.offsetBottom+O<x&&y.value==="bottom"&&m.value&&(m.value=!1,c.value=null,t("change",!1))};return a.onBeforeUnmount(()=>{Qf(o.value,"scroll",N),Qf(o.value,"resize",N),Qf(window,"scroll",b)}),()=>{var E;return a.createVNode("div",{ref:s},[a.createVNode("div",{ref:r,style:h.value,class:p.value},[(E=n.default)==null?void 0:E.call(n)])])}}}),Xg=Qe(fV);function qg(e,t,n){return a.h(e.name,{key:t,...e.attributes,style:`${e.attributes.style} ${n||""}`},(e.elements||[]).map((r,s)=>qg(r,`${t}-${e.name}-${s}`)))}const De=(e,t)=>{const{data:n,name:r,width:s,height:o,fill:c,...u}={...t.attrs,...e},d=`width: ${s}; height: ${o}; fill: ${c}`,h={display:"inline-flex","align-items":"center","justify-content":"center"};return a.createVNode("span",a.mergeProps({style:h},u),[qg(n,r,d)])};De.inheritAttrs=!1;De.displayName="bkIcon";const hV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 744.64L789.6 462.72 880 554.56 512 928 144 554.56 234.4 462.72 512 744.64z"}},{"type":"element","name":"path","attributes":{"d":"M144 187.68L234.4 96 512 377.76 789.6 96 880 187.68 512 561.28 144 187.68z"}}]}'),Pu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:hV,name:"angleDoubleDownLine"}),null)};Pu.displayName="angleDoubleDownLine";Pu.inheritAttrs=!1;const mV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M697.6 281.6l48 48-176 176 176 176-48 48-224-224L697.6 281.6z"}},{"type":"element","name":"path","attributes":{"d":"M505.6 281.6l48 48-176 176 176 176-48 48-224-224L505.6 281.6z"}}]}'),mi=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:mV,name:"angleDoubleLeft"}),null)};mi.displayName="angleDoubleLeft";mi.inheritAttrs=!1;const gV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M279.36 512L561.28 789.6 469.44 880 96 512 469.44 144 561.28 234.4 279.36 512z"}},{"type":"element","name":"path","attributes":{"d":"M836.32 144L928 234.4 646.08 512 928 789.6 836.32 880 462.72 512 836.32 144z"}}]}'),Th=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:gV,name:"angleDoubleLeftLine"}),null)};Th.displayName="angleDoubleLeftLine";Th.inheritAttrs=!1;const pV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M358.4 729.6l-48-48 176-176-176-176 48-48 224 224L358.4 729.6z"}},{"type":"element","name":"path","attributes":{"d":"M550.4 729.6l-48-48 176-176-176-176 48-48 224 224L550.4 729.6z"}}]}'),gi=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:pV,name:"angleDoubleRight"}),null)};gi.displayName="angleDoubleRight";gi.inheritAttrs=!1;const vV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M744.64 512L462.72 789.6 554.56 880 928 512 554.56 144 462.72 234.4 744.64 512z"}},{"type":"element","name":"path","attributes":{"d":"M187.68 144L96 234.4 377.76 512 96 789.6 187.68 880 561.28 512 187.68 144z"}}]}'),Eh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:vV,name:"angleDoubleRightLine"}),null)};Eh.displayName="angleDoubleRightLine";Eh.inheritAttrs=!1;const yV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 279.36L789.6 561.28 880 469.44 512 96 144 469.44 234.4 561.28 512 279.36z"}},{"type":"element","name":"path","attributes":{"d":"M144 836.32L234.4 928 512 646.08 789.6 928 880 836.32 512 462.72 144 836.32z"}}]}'),Mu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:yV,name:"angleDoubleUpLine"}),null)};Mu.displayName="angleDoubleUpLine";Mu.inheritAttrs=!1;const bV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M288 448L336 400 512 576 688 400 736 448 512 672z"}}]}'),Ti=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:bV,name:"angleDown"}),null)};Ti.displayName="angleDown";Ti.inheritAttrs=!1;const wV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 256L96 704 187.04 704 512 704 836.96 704 928 704 512 256z"}}]}'),Ru=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:wV,name:"angleDownFill"}),null)};Ru.displayName="angleDownFill";Ru.inheritAttrs=!1;const CV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 762.56L98.72 349.28 189.28 258.72 512 581.44 834.72 258.72 925.28 349.28 512 762.56z"}}]}'),Oh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:CV,name:"angleDownLine"}),null)};Oh.displayName="angleDownLine";Oh.inheritAttrs=!1;const NV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M376 504L600 280 648 328 472 504 648 680 600 728 376 504z"}}]}'),lr=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:NV,name:"angleLeft"}),null)};lr.displayName="angleLeft";lr.inheritAttrs=!1;const xV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M424 728L376 680 552 504 376 328 424 280 648 504 424 728z"}}]}'),Dn=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:xV,name:"angleRight"}),null)};Dn.displayName="angleRight";Dn.inheritAttrs=!1;const _V=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 368L736 592 688 640 512 464 336 640 288 592 512 368z"}}]}'),Ei=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:_V,name:"angleUp"}),null)};Ei.displayName="angleUp";Ei.inheritAttrs=!1;const SV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 704L96 256 187.04 256 512 256 836.96 256 928 256 512 704z"}}]}'),Xo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:SV,name:"angleUpFill"}),null)};Xo.displayName="angleUpFill";Xo.inheritAttrs=!1;const TV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1194.667","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M661.331584 0C696.6651477333332 0 745.9971968 20.667040213333333 770.6658858666666 45.333077333333335L978.6642816 253.3329224533333C1003.3316394666667 278.00029312 1024 327.33370112 1024 362.66728575999997L1024 1130.6680490666665C1024 1166.0002986666666 995.3336490666667 1194.6666666666665 959.9974143999999 1194.6666666666665L64 1194.6666666666665C28.666351530666663 1194.6666666666665 0 1166.0002986666666 0 1130.6680490666665L0 64C0 28.666367530666665 28.667684991999998 0 64 0L661.331584 0ZM224 522.6666666666666L138.66666666666666 522.6666666666666 138.66666666666666 818.6666666666666 309.3333333333333 818.6666666666666 309.3333333333333 605.3333333333333 224 605.3333333333333 224 522.6666666666666ZM245.33333333333331 669.3333333333333L245.33333333333331 754.6666666666666 202.66666666666666 754.6666666666666 202.66666666666666 669.3333333333333 245.33333333333331 669.3333333333333ZM309.3333333333333 437.3333333333333L224 437.3333333333333 224 522.6666666666666 309.3333333333333 522.6666666666666 309.3333333333333 437.3333333333333ZM224 352L138.66666666666666 352 138.66666666666666 437.3333333333333 224 437.3333333333333 224 352ZM309.3333333333333 266.66666666666663L224 266.66666666666663 224 352 309.3333333333333 352 309.3333333333333 266.66666666666663ZM682.6666666666666 90.66615466666667L682.6666666666666 341.33352362666665 933.3325610666667 341.33352362666665C929.3322325333334 329.9992546133333 923.3317418666667 318.66631850666664 918.6646911999999 313.9992661333333L709.9995776000001 105.33269930666667C705.3325269333333 100.66564736 693.9982634666667 94.66648490666667 682.6666666666666 90.66615466666667ZM224 181.33333333333331L138.66666666666666 181.33333333333331 138.66666666666666 266.66666666666663 224 266.66666666666663 224 181.33333333333331ZM309.3333333333333 96L224 96 224 181.33333333333331 309.3333333333333 181.33333333333331 309.3333333333333 96Z"}}]}'),Fu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:TV,name:"archiveFill"}),null)};Fu.displayName="archiveFill";Fu.inheritAttrs=!1;const EV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M416 480h320v64H416l96 96-48 48L288 512l176-176L512 384 416 480z"}}]}'),Hu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:EV,name:"arrowsLeft"}),null)};Hu.displayName="arrowsLeft";Hu.inheritAttrs=!1;const OV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M608 480H288v64H608l-96 96 48 48L736 512l-176-176L512 384Z"}}]}'),Bu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:OV,name:"arrowsRight"}),null)};Bu.displayName="arrowsRight";Bu.inheritAttrs=!1;const LV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M872.2005344 454.6197344C868.4842656 256.2432 714.7029344 96 525.8666656 96L498.1333344 96C309.29706656 96 155.51573344 256.2432 151.79946656 454.592 118.6304 473.8112 96 509.2821344 96 550.2997344L96 605.7664C96 666.9461344 145.7536 716.6997344 206.93333344 716.6997344 268.11306656 716.6997344 317.86666656 666.9461344 317.86666656 605.7664L317.86666656 550.2997344C317.7785456 489.497792 268.78616896 440.0849856 207.9872 439.4773344 218.83093344 278.76266656 344.6570656 151.46666656 498.1333344 151.46666656L525.8666656 151.46666656C679.3706656 151.46666656 805.1690656 278.76266656 816.0128 439.4773344 755.2138304 440.0849856 706.2214528 489.497792 706.1333344 550.2997344L706.1333344 605.7664C706.1333344 655.8528 739.6906656 697.7856 785.3397344 711.5136 744.1415296 765.7429664 685.3117728 803.896976 618.9952 819.3962656 609.606016 791.2394976 583.2809152 772.2269248 553.6 772.1664 515.308256 772.1664 484.2666656 803.2079904 484.2666656 841.4997344 484.2666656 879.7914752 515.308256 910.8330656 553.6 910.8330656 577.6172576 910.8011136 599.8929248 898.2927104 612.4224 877.8026656 713.585648 860.1046336 801.8067392 798.720208 853.5637344 710.016 896.7722656 694.8736 928 654.1056 928 605.7664L928 550.2997344C928 509.2821344 905.3696 473.8112 872.2005344 454.6197344ZM262.4 550.2997344L262.4 605.7664C262.4 636.3562656 237.5232 661.2330656 206.93333344 661.2330656 176.34346656 661.2330656 151.46666656 636.3562656 151.46666656 605.7664L151.46666656 550.2997344C151.46666656 519.7098656 176.34346656 494.8330656 206.93333344 494.8330656 237.5232 494.8330656 262.4 519.7098656 262.4 550.2997344ZM872.5333344 605.7664C872.5333344 635.4965344 848.96 659.6522656 819.5626656 660.9834656L817.3994656 659.9573344C817.2053344 660.4010656 816.9002656 660.7616 816.7061344 661.1776 786.235248 660.9795488 761.6298272 636.2379136 761.6 605.7664L761.6 550.2997344C761.6 519.7098656 786.4768 494.8330656 817.0666656 494.8330656 847.6565344 494.8330656 872.5333344 519.7098656 872.5333344 550.2997344L872.5333344 605.7664Z"}}]}'),zu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:LV,name:"assistant"}),null)};zu.displayName="assistant";zu.inheritAttrs=!1;const AV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M664.4363636363637 0C676.8000000000001 0 688.5818181818182 4.945454545454545 697.3090909090909 13.672727272727274L697.3090909090909 13.672727272727274 1010.3272727272728 326.6909090909091C1019.0545454545455 335.41818181818184 1024 347.3454545454546 1024 359.70909090909095L1024 359.70909090909095 1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L977.4545454545455 1303.2727272727273 46.54545454545455 1303.2727272727273C20.8 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 1256.7272727272727 0 46.54545454545455C0 20.8 20.8 0 46.54545454545455 0L46.54545454545455 0ZM655.2545466181818 560.2713367272728L460.52727249454546 619.8349730909091C436.9818181818182 626.5804288 417.7636361309091 651.1440616727273 417.7636361309091 674.6895173818182L417.7636361309091 880.1077015272728C417.7636361309091 880.1077015272728 403.6363636363636 870.5622434909092 372.19999976727274 875.0167924363637 326 881.6349742545455 288.5818181818182 917.016790109091 288.5818181818182 954.1804264727273 288.5818181818182 991.3440628363637 326 1014.1258798545455 372.19999976727274 1007.5076980363638 418.4 1001.016790109091 452.2545454545455 966.6531560727274 452.2545454545455 929.4895197090908L452.2545454545455 754.1076992000001C452.2545454545455 737.5622469818182 472.10908858181824 730.562243490909 472.10908858181824 730.562243490909L644.3090897454546 676.5986071272727C644.3090897454546 676.5986071272727 663.4000011636364 670.2349730909091 663.4000011636364 687.7986071272728L663.4000011636364 828.689519709091C663.4000011636364 828.689519709091 645.8363624727273 818.6349707636364 614.4 822.4531549090909 568.2000011636363 828.053154909091 530.7818170181819 862.6713367272728 530.7818170181819 899.8349730909091 530.7818170181819 936.9986094545455 568.2000011636363 960.5440651636363 614.4 954.9440651636363 660.5999988363636 949.3440651636365 698.0181829818182 914.7258833454546 698.0181829818182 877.5622469818182L698.0181829818182 590.8167912727273C698.0181829818182 567.1440616727273 678.9272715636364 553.5258810181818 655.2545466181818 560.2713367272728ZM642.9090909090909 107.34545454545454L642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091 642.9090909090909 107.34545454545454Z"}}]}'),Uu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:AV,name:"audioFill"}),null)};Uu.displayName="audioFill";Uu.inheritAttrs=!1;const VV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M384 289.28c103.50933333333333 18.986666666666665 183.89333333333332 99.37066666666666 202.62399999999997 201.344l5.3759999999999994 37.376c1.664 83.62666666666667 32.59733333333333 159.7013333333333 82.94399999999999 218.70933333333335 32.72533333333333 37.84533333333333 81.024 62.29333333333333 135.08266666666665 63.53066666666667 2.9013333333333335 0.128 6.0586666666666655 0.21333333333333332 9.216 0.21333333333333332 49.834666666666664 0 95.488-17.962666666666664 130.81599999999997-47.78666666666667 47.40266666666666-42.367999999999995 77.312-104.10666666666665 77.312-172.79999999999998 0-13.952-1.2373333333333334-27.562666666666665-3.584-40.831999999999994-15.786666666666665-115.62666666666667-96.29866666666666-210.43200000000002-203.73333333333335-246.91199999999998-5.8453333333333335-59.98933333333333-33.49333333333333-112.21333333333332-75.47733333333332-148.224-37.33333333333333-34.432-87.03999999999999-55.42399999999999-141.61066666666665-55.42399999999999-15.445333333333332 0-30.506666666666664 1.664-45.01333333333333 4.864-50.986666666666665 13.141333333333332-95.01866666666666 42.83733333333333-126.208 83.072-5.333333333333333 6.143999999999999-8.362666666666666 13.568-8.362666666666666 21.674666666666667 0 9.685333333333332 4.309333333333333 18.389333333333333 11.136 24.27733333333333l3.8826666666666663 0.042666666666666665c-16.21333333333333-4.053333333333333-34.901333333333326-6.613333333333333-54.10133333333333-7.04-6.101333333333333-0.38399999999999995-12.927999999999999-0.6399999999999999-19.797333333333334-0.6399999999999999s-13.696 0.21333333333333332-20.43733333333333 0.6826666666666666l0.9386666666666665-10.922666666666666c2.1333333333333333-25.813333333333333 17.194666666666667-47.70133333333334 38.656-59.30666666666666 9.173333333333332-6.015999999999999 14.933333333333332-15.872 14.933333333333332-27.093333333333334 0-17.749333333333333-14.378666666666668-32.128-32.128-32.128-6.528 0-12.629333333333332 1.9626666666666666-17.706666666666663 5.333333333333333-21.290666666666667 13.653333333333332-38.18666666666667 32.81066666666666-48.81066666666666 55.42399999999999-15.274666666666665-6.442666666666666-32.85333333333333-10.709333333333333-51.413333333333334-10.709333333333333-8.661333333333333 0-17.109333333333332 0.9386666666666665-25.258666666666663 2.6879999999999997-14.037333333333333 3.1999999999999997-24.959999999999997 16.256-24.959999999999997 31.872 0 18.090666666666664 14.677333333333332 32.768 32.768 32.768 2.474666666666667 0 4.906666666666666-0.29866666666666664 7.253333333333334-0.8106666666666666 2.1333333333333333-0.29866666666666664 4.8213333333333335-0.512 7.552-0.512 18.048 0 34.176 8.405333333333333 44.629333333333335 21.546666666666667l0.08533333333333333 0.128c-122.24000000000001 28.16-197.12 139.51999999999998-240 236.79999999999998-33.28 74.88-80.63999999999999 215.67999999999998-24.319999999999997 316.79999999999995 29.610666666666663 61.056 88.96 103.55199999999999 158.72 108.75733333333332l704.64 0.042666666666666665c17.663999999999998 0 32-14.336 32-32s-14.336-32-32-32h-704c-46.848-4.906666666666666-85.80266666666667-34.474666666666664-103.97866666666665-75.34933333333333-44.50133333333333-80.17066666666666 3.498666666666667-208.81066666666666 26.538666666666664-260.65066666666667 65.91999999999999-147.2 156.79999999999998-217.59999999999997 275.84-206.71999999999997zM480 229.12c22.826666666666668-30.976 55.296-53.63199999999999 92.88533333333334-63.744 10.069333333333333-2.1759999999999997 20.266666666666666-3.2426666666666666 30.72-3.2426666666666666 37.888 0 72.448 14.250666666666667 98.60266666666666 37.67466666666667 31.786666666666665 28.8 51.754666666666665 70.39999999999999 51.754666666666665 116.69333333333333 0 1.2373333333333334 0 2.474666666666667-0.042666666666666665 3.7119999999999997l0 32.46933333333333 24.959999999999997 3.84c95.27466666666666 23.296 167.25333333333333 101.50399999999999 180.992 198.4 1.92 10.495999999999999 2.944 21.119999999999997 2.944 32 0 52.522666666666666-23.59466666666667 99.49866666666665-60.75733333333333 130.98666666666665-21.503999999999998 16.554666666666666-48.512 26.368-77.824 26.368-4.224 0-8.448-0.21333333333333332-12.586666666666666-0.5973333333333333 0.512 0.042666666666666665 0.512 0.042666666666666665 0.512 0.042666666666666665-35.583999999999996 0-67.54133333333333-15.530666666666665-89.472-40.19199999999999-39.38133333333333-48.768-63.40266666666666-111.18933333333332-64.08533333333332-179.15733333333333l-5.76-42.410666666666664c-22.954666666666668-111.744-100.30933333333333-201.38666666666666-202.58133333333333-241.152-1.1093333333333333-0.6399999999999999 0.21333333333333332-0.5546666666666666 1.5359999999999998-0.5546666666666666 10.239999999999998 0 19.413333333333334-4.522666666666666 25.599999999999998-11.690666666666667z"}}]}'),Lh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:VV,name:"bk"}),null)};Lh.displayName="bk";Lh.inheritAttrs=!1;const $V=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 0c-17.919999999999998 0-32 14.08-32 32s14.08 32 32 32c247.04 0 448 200.95999999999998 448 448 0 17.919999999999998 14.08 32 32 32s32-14.08 32-32c0-282.24-229.76-512-512-512z"}}]}'),qo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:$V,name:"circle"}),null)};qo.displayName="circle";qo.inheritAttrs=!1;const DV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM670.4 625.1l-45.3 45.3L512 557.3 398.9 670.4l-45.3-45.3L466.7 512 353.6 398.9l45.3-45.3L512 466.7l113.1-113.1 45.3 45.3L557.3 512 670.4 625.1z"}}]}'),bn=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:DV,name:"close"}),null)};bn.displayName="close";bn.inheritAttrs=!1;const IV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M902.56 166.56L857.44 121.44 512 466.72 166.56 121.44 121.44 166.56 466.72 512 121.44 857.44 166.56 902.56 512 557.28 857.44 902.56 902.56 857.44 557.28 512 902.56 166.56z"}}]}'),Jo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:IV,name:"closeLine"}),null)};Jo.displayName="closeLine";Jo.inheritAttrs=!1;const kV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M1011.1999999999999 489.59999999999997l-224-224c-12.799999999999999-12.799999999999999-32.64-12.799999999999999-45.44 0s-12.799999999999999 32.64 0 45.44l201.59999999999997 200.95999999999998-201.59999999999997 201.59999999999997c-12.799999999999999 12.799999999999999-12.799999999999999 32.64 0 45.44 6.3999999999999995 6.3999999999999995 14.719999999999999 9.6 22.4 9.6s16.64-3.1999999999999997 22.4-9.6l224-224c12.799999999999999-12.799999999999999 12.799999999999999-33.28 0.6399999999999999-45.44z"}},{"type":"element","name":"path","attributes":{"d":"M282.24 265.59999999999997c-12.799999999999999-12.799999999999999-32.64-12.799999999999999-45.44 0l-224 224c-12.799999999999999 12.799999999999999-12.799999999999999 32.64 0 45.44l224 224c6.3999999999999995 5.76 14.719999999999999 8.959999999999999 23.04 8.959999999999999s16.64-3.1999999999999997 22.4-9.6c12.799999999999999-12.799999999999999 12.799999999999999-32.64 0-45.44l-201.59999999999997-200.95999999999998 201.59999999999997-201.59999999999997c12.159999999999998-12.159999999999998 12.159999999999998-32.64 0-44.8z"}},{"type":"element","name":"path","attributes":{"d":"M616.3199999999999 129.27999999999997c-16.64-5.119999999999999-34.56 5.119999999999999-39.04 22.4l-192 704c-4.4799999999999995 17.28 5.119999999999999 34.56 22.4 39.04 2.5599999999999996 0.6399999999999999 5.76 1.2799999999999998 8.32 1.2799999999999998 14.08 0 26.88-9.6 30.72-23.68l192-704c4.4799999999999995-16.64-5.119999999999999-34.56-22.4-39.04z"}}]}'),Ah=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:kV,name:"code"}),null)};Ah.displayName="code";Ah.inheritAttrs=!1;const PV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M608 512A96 96 0 0 1 512 608 96 96 0 0 1 416 512 96 96 0 0 1 608 512z"}},{"type":"element","name":"path","attributes":{"d":"M860.8 558.4c4.8-30.4 4.8-62.4 0-92.8l67.2-57.6c9.6-8 14.4-22.4 9.6-35.2-19.2-59.2-51.2-115.2-92.8-161.6-6.4-6.4-14.4-11.2-24-11.2-3.2 0-8 0-11.2 1.6l-83.2 30.4c-24-19.2-52.8-35.2-81.6-46.4l-16-86.4c-1.6-12.8-12.8-22.4-25.6-25.6-60.8-12.8-124.8-12.8-185.6 0-12.8 3.2-22.4 12.8-24 25.6l-16 86.4c-28.8 11.2-56 27.2-81.6 46.4l-83.2-30.4c-3.2-1.6-6.4-1.6-11.2-1.6-9.6 0-17.6 3.2-24 11.2-41.6 46.4-73.6 100.8-92.8 161.6-4.8 12.8 0 27.2 9.6 35.2l67.2 57.6C160 496 160 528 163.2 558.4L96 616c-9.6 8-14.4 22.4-9.6 35.2 19.2 59.2 51.2 115.2 92.8 161.6 6.4 6.4 14.4 11.2 24 11.2 3.2 0 8 0 11.2-1.6l83.2-30.4c24 19.2 52.8 35.2 81.6 46.4l16 86.4c1.6 12.8 12.8 22.4 25.6 25.6 60.8 12.8 124.8 12.8 185.6 0 12.8-3.2 22.4-12.8 25.6-25.6l16-86.4c28.8-11.2 56-27.2 81.6-46.4l83.2 30.4c3.2 1.6 6.4 1.6 11.2 1.6 9.6 0 17.6-3.2 24-11.2 41.6-46.4 73.6-100.8 92.8-161.6 3.2-12.8 0-27.2-11.2-35.2L860.8 558.4zM512 672c-88 0-160-72-160-160s72-160 160-160 160 72 160 160S600 672 512 672z"}}]}'),ju=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:PV,name:"cogShape"}),null)};ju.displayName="cogShape";ju.inheritAttrs=!1;const MV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M496 216l-76.32 76.32 152.64 152.8H64v101.76H572.16l-152.48 152.8L496 776 775.52 496Zm362.4 0v560H960v-560Z"}}]}'),Wu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:MV,name:"collapseLeft"}),null)};Wu.displayName="collapseLeft";Wu.inheritAttrs=!1;const RV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M864 128H288c-17.6 0-32 14.4-32 32v96h-96c-17.6 0-32 14.4-32 32v576c0 17.6 14.4 32 32 32h576c17.6 0 32-14.4 32-32v-96h96c17.6 0 32-14.4 32-32V160C896 142.4 881.6 128 864 128zM704 704v64 64H192V320h64 64 384V704zM832 704h-64V288c0-17.6-14.4-32-32-32H320v-64h512V704z"}},{"type":"element","name":"path","attributes":{"d":"M275.2 419.2H611.2V483.2H275.2z"}},{"type":"element","name":"path","attributes":{"d":"M272 544H608V608H272z"}},{"type":"element","name":"path","attributes":{"d":"M272 672H608V736H272z"}}]}'),Vh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:RV,name:"copy"}),null)};Vh.displayName="copy";Vh.inheritAttrs=!1;const FV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M893.3333344 96C912.4693344 96 928 111.53066656 928 130.66666656L928 754.6666656C928 773.8026656 912.4693344 789.3333344 893.3333344 789.3333344L789.3333344 789.3333344 789.3333344 893.3333344C789.3333344 912.4693344 773.8026656 928 754.6666656 928L130.66666656 928C111.53066656 928 96 912.4693344 96 893.3333344L96 269.33333344C96 250.19733344 111.53066656 234.66666656 130.66666656 234.66666656L234.66666656 234.66666656 234.66666656 130.66666656C234.66666656 111.53066656 250.19733344 96 269.33333344 96ZM720 304L165.33333344 304 165.33333344 858.6666656 720 858.6666656 720 304ZM625.454544 663.2727264L625.454544 738.9090912 247.27272736 738.9090912 247.27272736 663.2727264 625.454544 663.2727264ZM858.6666656 165.33333344L304 165.33333344 304 234.66666656 754.6666656 234.66666656C773.8026656 234.66666656 789.3333344 250.19733344 789.3333344 269.33333344L789.3333344 720 858.6666656 720 858.6666656 165.33333344ZM625.454544 549.8181824L625.454544 625.454544 247.27272736 625.454544 247.27272736 549.8181824 625.454544 549.8181824ZM625.454544 436.3636352L625.454544 512 247.27272736 512 247.27272736 436.3636352 625.454544 436.3636352Z"}}]}'),Gu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:FV,name:"copyShape"}),null)};Gu.displayName="copyShape";Gu.inheritAttrs=!1;const HV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1170.2857142857142","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M176.27428571428572 248.68571428571425c100.74209523809523 24.673523809523807 216.40533333333332 38.863238095238096 335.335619047619 38.863238095238096s234.5935238095238-14.14095238095238 345.38057142857144-40.86247619047619c106.30095238095238-27.209142857142858 167.00952380952378-74.02057142857143 167.00952380952378-100.35199999999999 0-49.00571428571428-180.66285714285715-146.28571428571428-512-146.28571428571428s-512 95.81714285714285-512 146.28571428571428c0 26.33142857142857 60.70857142857143 73.14285714285714 176.27428571428572 102.4z"}},{"type":"element","name":"path","attributes":{"d":"M856.5028571428571 923.7942857142857c-99.2304761904762 25.6-213.13828571428573 40.27733333333333-330.45942857142853 40.27733333333333-4.924952380952381 0-9.849904761904762-0.04876190476190476-14.774857142857142-0.09752380952380953-3.4620952380952374 0.04876190476190476-8.387047619047618 0.09752380952380953-13.360761904761905 0.09752380952380953-117.32114285714286 0-231.18019047619046-14.677333333333332-339.87047619047615-42.37409523809524-113.37142857142858 37.156571428571425-157.98857142857142 81.77371428571428-157.98857142857142 102.25371428571428 0 49.00571428571428 180.66285714285715 146.28571428571428 512 146.28571428571428s512-95.08571428571427 512-146.28571428571428c0-20.479999999999997-44.61714285714286-65.09714285714286-167.49714285714285-100.2057142857143z"}},{"type":"element","name":"path","attributes":{"d":"M856.5028571428571 626.8342857142857c-103.37523809523809 25.063619047619046-222.0617142857143 39.44838095238095-344.16152380952377 39.44838095238095s-240.73752380952382-14.384761904761904-354.4990476190476-41.54514285714286c-113.27390476190476 37.20533333333333-157.8910476190476 82.55390476190476-157.8910476190476 106.69104761904762 0 49.00571428571428 180.66285714285715 146.28571428571428 512 146.28571428571428s512-95.08571428571427 512-146.28571428571428c0-24.137142857142855-44.61714285714286-69.48571428571428-167.49714285714285-104.5942857142857z"}},{"type":"element","name":"path","attributes":{"d":"M856.5028571428571 332.0685714285714h-13.165714285714285c-99.42552380952381 25.40495238095238-213.62590476190476 40.03352380952381-331.23961904761904 40.22857142857142-3.072 0-6.534095238095238 0.04876190476190476-10.04495238095238 0.04876190476190476-114.00533333333333 0-224.88990476190475-13.604571428571429-330.9958095238095-39.30209523809524l-2.8769523809523805 1.9504761904761905c-123.61142857142858 30.72-168.22857142857143 77.53142857142858-168.22857142857143 99.47428571428571 0 49.00571428571428 180.66285714285715 146.28571428571428 512 146.28571428571428s512-95.81714285714285 512-146.28571428571428c0-21.942857142857143-44.61714285714286-68.7542857142857-167.49714285714285-102.4z"}}]}'),$h=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:HV,name:"dataShape"}),null)};$h.displayName="dataShape";$h.inheritAttrs=!1;const BV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M928 224H672v-64c0-35.2-28.8-64-64-64H416c-35.2 0-64 28.8-64 64v64H96v64h112v576c0 35.2 28.8 64 64 64h480c35.2 0 64-28.8 64-64V288h112V224zM432 160h160c9.6 0 16 6.4 16 16v48H416v-48C416 166.4 422.4 160 432 160zM736 864H288c-9.6 0-16-6.4-16-16V288h480v560C752 857.6 745.6 864 736 864z"}},{"type":"element","name":"path","attributes":{"d":"M576 400H640V752H576V400z"}},{"type":"element","name":"path","attributes":{"d":"M384 400H448V752H384V400z"}}]}'),pi=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:BV,name:"del"}),null)};pi.displayName="del";pi.inheritAttrs=!1;const zV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1097.143","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M698.6979072 34.411393901714284C704.0406784 39.04304329142857 707.1085714285714 45.76605271771429 707.1085714285714 52.83693527771428L707.1085714285714 1069.3276013714285C707.1085714285714 1076.3886738285712 704.0452278857143 1083.1024822857141 698.7138852571428 1087.7323337142855 693.3825389714286 1092.362185142857 686.3058176 1094.453295542857 679.3142857142858 1093.4647442285714L66.27961892571427 1005.9371263999999C42.24804234971429 1002.5144795428571 24.393142857142855 981.9369252571428 24.393142857142855 957.6628406857142L24.393142857142855 164.50169709714285C24.393142857142855 140.22761252571428 42.24804234971429 119.65005750857142 66.27961892571427 116.22741138285714L66.32838107428572 116.22741138285714 679.2655250285715 28.699792423131427C686.2647552000001 27.695727027199997 693.355136 29.77974452662857 698.6979072 34.411393901714284ZM950.9180964571428 122.22512566857142C977.8485504 122.22512566857142 999.68 144.05657417142857 999.68 170.9870306742857L999.68 951.1775049142856C999.68 978.1079625142856 977.8485504 999.9394121142856 950.9180964571428 999.9394121142856L755.8704749714285 999.9394121142856 755.8704749714285 902.4156013714285 902.1561892571428 902.4156013714285 902.1561892571428 219.7489353142857 755.8704749714285 219.7489353142857 755.8704749714285 122.22512566857142 950.9180964571428 122.22512566857142ZM268.25142857142856 366.03464959999997L170.72761892571427 366.03464959999997 170.72761892571427 756.1298870857141 268.25142857142856 756.1298870857141 365.7752382171428 658.606076342857 463.2990464 756.1298870857141 560.8228571428571 756.1298870857141 560.8228571428571 366.03464959999997 463.2990464 366.03464959999997 463.2990464 609.3077906285713 365.7752382171428 512.3203620571429 268.73904749714285 609.8441727999999 268.25142857142856 366.03464959999997Z"}}]}'),Dh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:zV,name:"docFill"}),null)};Dh.displayName="docFill";Dh.inheritAttrs=!1;const UV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M704 352l48 48-304 304-176-176 48-48 128 128z"}}]}'),ps=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:UV,name:"done"}),null)};ps.displayName="done";ps.inheritAttrs=!1;const jV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 768c-6.3999999999999995 0-13.44-2.5599999999999996-18.56-8.32l-356.48-384c-8.32-8.959999999999999-10.879999999999999-23.04-7.04-35.199999999999996s14.08-20.479999999999997 25.599999999999998-20.479999999999997h712.96c11.52 0 21.119999999999997 8.32 25.599999999999998 20.479999999999997s1.2799999999999998 26.24-7.04 35.199999999999996l-356.48 384c-5.119999999999999 5.76-12.159999999999998 8.32-18.56 8.32z"}}]}'),Zo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:jV,name:"downShape"}),null)};Zo.displayName="downShape";Zo.inheritAttrs=!1;const WV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M288 448L336 400 512 576 688 400 736 448 512 672z"}}]}'),Ao=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:WV,name:"downSmall"}),null)};Ao.displayName="downSmall";Ao.inheritAttrs=!1;const GV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M609.6 201.6L203.2 609.6 203.2 710.4 304 710.4 712 304z"}},{"type":"element","name":"path","attributes":{"d":"M128 800H896V896H128z"}},{"type":"element","name":"path","attributes":{"d":"M683.6717566325265 128.04165515828316L785.4933559547056 229.86680878681256 740.2377321198037 275.1208529300033 638.4161327976245 173.2956993014738z"}}]}'),Ku=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:GV,name:"editLine"}),null)};Ku.displayName="editLine";Ku.inheritAttrs=!1;const KV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M320 512c0 35.199999999999996-28.8 64-64 64s-64-28.8-64-64c0-35.199999999999996 28.8-64 64-64s64 28.8 64 64zM512 448c-35.199999999999996 0-64 28.8-64 64s28.8 64 64 64 64-28.8 64-64c0-35.199999999999996-28.8-64-64-64zM768 448c-35.199999999999996 0-64 28.8-64 64s28.8 64 64 64 64-28.8 64-64c0-35.199999999999996-28.8-64-64-64z"}}]}'),Vo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:KV,name:"ellipsis"}),null)};Vo.displayName="ellipsis";Vo.inheritAttrs=!1;const YV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M885.76 840.64l-148.96-149.12a344.16 344.16 0 1 0-45.28 45.28l149.12 148.96a32 32 0 1 0 45.12-45.12ZM472 752A280 280 0 1 1 752 472 280.32 280.32 0 0 1 472 752Z"}},{"type":"element","name":"path","attributes":{"d":"M576 448H496V368a32 32 0 0 0-64 0v80H352a32 32 0 0 0 0 64h80v80a32 32 0 0 0 64 0V512h80a32 32 0 0 0 0-64Z"}}]}'),Ih=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:YV,name:"enlargeLine"}),null)};Ih.displayName="enlargeLine";Ih.inheritAttrs=!1;const XV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M452.7573333333333 510.91200000000003L225.83338666666668 737.8346666666666 286.1730133333333 798.1738666666666 513.0965333333334 571.2511999999999 739.8399999999999 797.9946666666666 797.9946666666666 739.8399999999999 571.2511999999999 513.0965333333334 798.1738666666666 286.1730133333333 737.8346666666666 225.83338666666668 510.91200000000003 452.7573333333333 283.9867733333333 225.83338666666668 225.83338666666668 283.9867733333333 452.7573333333333 510.91200000000003Z","clip-rule":"evenodd"}}]}'),an=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:XV,name:"error"}),null)};an.displayName="error";an.inheritAttrs=!1;const qV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1097.143","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M698.6369535999999 21.90055387428571C703.9797248 26.53220315428571 707.0476178285713 33.25521261714285 707.0476178285713 40.326095360000004L707.0476178285713 1056.8167606857141C707.0476178285713 1063.8778368 703.9842779428571 1070.5916416 698.6529316571427 1075.2214930285713 693.3215890285713 1079.8513481142857 686.2448676571429 1081.9424548571428 679.2533321142857 1080.953903542857L66.21866678857141 993.4262857142858C42.18708992 990.0036388571428 24.332190354285718 969.4260845714285 24.332190354285718 945.152L24.332190354285718 151.99085714285712C24.332190354285718 127.71677257142855 42.18708992 107.13921718857142 66.21866678857141 103.71657142857141L66.26742857142857 103.71657142857141 679.2045714285714 16.188952502857138C686.2038015999999 15.18488685714286 693.2941824 17.26890459428571 698.6369535999999 21.90055387428571ZM950.8571428571428 109.71428571428571C977.7876004571428 109.71428571428571 999.6190463999999 131.54573421714286 999.6190463999999 158.4761903542857L999.6190463999999 938.6666678857142C999.6190463999999 965.5971218285714 977.7876004571428 987.4285714285713 950.8571428571428 987.4285714285713L755.8095250285714 987.4285714285713 755.8095250285714 889.9047606857142 902.0952393142857 889.9047606857142 902.0952393142857 207.23809536 755.8095250285714 207.23809536 755.8095250285714 109.71428571428571 950.8571428571428 109.71428571428571ZM287.69523821714284 353.52381074285717L170.6666667885714 353.52381074285717 307.2 548.5714285714286 170.6666667885714 743.6190463999999 287.69523821714284 743.6190463999999 365.71428571428567 632.1493321142857 443.7333321142857 743.6190463999999 560.7619035428571 743.6190463999999 424.2285714285714 548.5714285714286 560.7619035428571 353.52381074285717 443.7333321142857 353.52381074285717 365.71428571428567 464.9935250285714 287.69523821714284 353.52381074285717Z"}}]}'),kh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:qV,name:"excelFill"}),null)};kh.displayName="excelFill";kh.inheritAttrs=!1;const JV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zM512 768c-27.2 0-48-20.8-48-48s20.8-48 48-48c27.2 0 48 20.8 48 48S539.2 768 512 768zM560 308.8L544 608c0 17.6-14.4 32-32 32-17.6 0-32-14.4-32-32l-16-299.2c0-1.6 0-3.2 0-4.8 0-27.2 20.8-48 48-48 27.2 0 48 20.8 48 48C560 305.6 560 307.2 560 308.8z"}}]}'),Qo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:JV,name:"exclamationCircleShape"}),null)};Qo.displayName="exclamationCircleShape";Qo.inheritAttrs=!1;const ZV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 384a128 128 0 1 0 128 128A128 128 0 0 0 512 384Zm0 192a64 64 0 1 1 64-64A64 64 0 0 1 512 576Z"}},{"type":"element","name":"path","attributes":{"d":"M512 240C264.64 240 64 512 64 512S264.64 784 512 784 960 512 960 512 759.36 240 512 240Zm0 480C352 720 208 580.96 147.04 512 208 442.88 352 304 512 304s304 139.04 364.96 208C816 581.12 672 720 512 720Z"}}]}'),Yu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:ZV,name:"eye"}),null)};Yu.displayName="eye";Yu.inheritAttrs=!1;const QV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M128 384L192 384 192 192 384 192 384 128 128 128 128 384Z"}},{"type":"element","name":"path","attributes":{"d":"M640 128L640 192 832 192 832 384 896 384 896 128 640 128Z"}},{"type":"element","name":"path","attributes":{"d":"M192 640L128 640 128 896 384 896 384 832 192 832 192 640Z"}},{"type":"element","name":"path","attributes":{"d":"M832 832L640 832 640 896 896 896 896 640 832 640 832 832Z"}}]}'),Ph=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:QV,name:"filliscreenLine"}),null)};Ph.displayName="filliscreenLine";Ph.inheritAttrs=!1;const e$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M917.3054336 379.3934816L644.6573792 106.73362144C637.7657728 99.8360144 628.4074144 95.97271648 618.6572192 96.00014496 608.907024 95.9727168 599.5486656 99.83601472 592.6570624 106.73362144L414.3999776 285.12322784C400.878272 283.59955936 387.280576 282.8495008 373.6733312 282.8767168 290.62998816 282.75079488 210.03082048 310.9734656 145.20474176 362.8774656 137.06031008 369.4172128 132.08090848 379.1118912 131.50944128 389.5416192 130.93797408 399.9713472 134.82836032 410.1520608 142.20952352 417.5425632L343.2635456 618.6052896 104.89409664 856.7354464C101.9839264 859.6325248 100.18706144 863.4620736 99.81886624 867.5519776L96.07484352 908.7380128C95.61805984 913.6831328 97.26692416 918.5917248 100.61644608 922.258144 103.965968 925.9245632 108.70579808 928.009104 113.6717504 927.9997952 114.21255392 927.9997952 114.7533568 927.9997952 115.33576 927.8749568L156.52001024 924.1307712C160.61522176 923.7512992 164.44531456 921.9392928 167.3360768 919.0137184L405.6639264 680.6755552 606.7179456 881.7382784C613.609552 888.6358848 622.9679104 892.499184 632.7181056 892.4716096 643.863968 892.4975552 654.4145248 887.4440928 661.3806784 878.7429312 722.0359616 802.8571424 749.9831616 705.9433792 739.048352 609.4112352L917.3054336 431.1464352C931.5648544 416.8423648 931.5648544 393.697552 917.3054336 379.3934816ZM682.5968096 553.290064L655.5150432 580.4146048 659.6750688 618.4804832C666.2790656 677.3604736 654.5399008 736.8434208 626.062064 788.7992896L235.3940896 397.8647936C287.29906432 369.2916992 346.7919936 357.532144 405.6639264 364.2087328L443.7281568 368.4105408 470.8515232 341.3276032 618.7820192 193.39069952 830.6521088 405.2699584 682.5968096 553.3316672 682.5968096 553.290064Z"}}]}'),Xu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:e$,name:"fixLine"}),null)};Xu.displayName="fixLine";Xu.inheritAttrs=!1;const t$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M618.6572192 96.00014496C628.4074144 95.97271648 637.7657728 99.83601536 644.6573792 106.73362368L917.3054336 379.3935424C931.5648544 393.697616 931.5648544 416.842432 917.3054336 431.1465056L739.048352 609.411344C749.9831616 705.9435072 722.0359616 802.8572896 661.3806784 878.7430976 654.4145248 887.4442592 643.863968 892.4977216 632.7181056 892.471776 622.9679104 892.4993504 613.609552 888.6360544 606.7179456 881.7384448L405.6639264 680.6756768 167.3360768 919.0138912C164.44531456 921.9394656 160.61522176 923.751472 156.52001024 924.1309472L115.33576 927.8751328C114.7533568 928.000144 114.21255392 928.000144 113.6717504 928.000144 108.70579808 928.00928 103.965968 925.9247392 100.61644608 922.2583168 97.26692416 918.5918976 95.61805984 913.6833056 96.07484352 908.7381824L99.81886624 867.5521408C100.18706144 863.4622368 101.9839264 859.6326848 104.89409664 856.7356064L343.2635456 618.6053984 142.20952352 417.5426336C134.82836032 410.152128 130.93797408 399.9714112 131.50944128 389.54168 132.08090848 379.111952 137.06031008 369.4172704 145.20474176 362.8775232 210.03082048 310.97351104 290.62998816 282.75083392 373.6733312 282.87675616 387.280576 282.84954016 400.878272 283.59959872 414.3999776 285.12326752L592.6570624 106.73362368C599.5486656 99.83601568 608.907024 95.9727168 618.6572192 96.00014496Z"}}]}'),qu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:t$,name:"fixShape"}),null)};qu.displayName="fixShape";qu.inheritAttrs=!1;const n$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M864 960h-704c-88.36266666666667 0-160-71.63733333333333-160-160v-640c0-53.034666666666666 42.96533333333333-96 96-96h256c53.034666666666666 0 96 42.96533333333333 96 96v32h416c88.36266666666667 0 160 71.63733333333333 160 160v448c0 88.36266666666667-71.63733333333333 160-160 160zM96 128c-17.663999999999998 0-32 14.336-32 32v640c0 53.034666666666666 42.96533333333333 96 96 96h704c53.034666666666666 0 96-42.96533333333333 96-96v-448c0-53.034666666666666-42.96533333333333-96-96-96h-448c-17.663999999999998 0-32-14.336-32-32v-64c0-17.663999999999998-14.336-32-32-32z"}}]}'),Ju=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:n$,name:"folder"}),null)};Ju.displayName="folder";Ju.inheritAttrs=!1;const r$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M928 320h-35.199999999999996c-15.402666666666665-73.55733333333333-79.744-128-156.75733333333332-128 0 0-0.042666666666666665 0-0.042666666666666665 0h-288v-32c0-53.034666666666666-42.96533333333333-96-96-96h-256c-53.034666666666666 0-96 42.96533333333333-96 96v640c0 88.36266666666667 71.63733333333333 160 160 160h704c0.38399999999999995 0 0.8533333333333333 0 1.3226666666666667 0 51.199999999999996 0 92.88533333333334-40.61866666666666 94.67733333333332-91.34933333333333l64-452.65066666666667c0-53.034666666666666-42.96533333333333-96-96-96zM64 800v-640c0-17.663999999999998 14.336-32 32-32h256c17.663999999999998 0 32 14.336 32 32v64c0 17.663999999999998 14.336 32 32 32h320c41.42933333333333 0.128 76.71466666666666 26.496 90.02666666666666 63.31733333333333l-538.0266666666666 0.6826666666666666c-0.38399999999999995 0-0.8533333333333333 0-1.3226666666666667 0-51.199999999999996 0-92.88533333333334 40.61866666666666-94.67733333333332 91.34933333333333l-64 452.65066666666667c0.128 9.856 1.7493333333333334 19.328 4.650666666666666 28.202666666666666-39.97866666666667-12.842666666666666-68.47999999999999-49.151999999999994-68.65066666666667-92.16zM896 864c0 17.663999999999998-14.336 32-32 32h-640c-0.08533333333333333 0-0.21333333333333332 0-0.29866666666666664 0-16.08533333333333 0-29.39733333333333-11.861333333333334-31.658666666666665-27.349333333333334l64-452.65066666666667c0-17.663999999999998 14.336-32 32-32h640c0.08533333333333333 0 0.21333333333333332 0 0.29866666666666664 0 16.08533333333333 0 29.39733333333333 11.861333333333334 31.658666666666665 27.349333333333334z"}}]}'),Mh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:r$,name:"folderOpen"}),null)};Mh.displayName="folderOpen";Mh.inheritAttrs=!1;const a$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M864 192h-416v-32c0-53.034666666666666-42.96533333333333-96-96-96h-256c-53.034666666666666 0-96 42.96533333333333-96 96v640c0 88.36266666666667 71.63733333333333 160 160 160h704c88.36266666666667 0 160-71.63733333333333 160-160v-448c0-88.36266666666667-71.63733333333333-160-160-160z"}}]}'),Rh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:a$,name:"folderShape"}),null)};Rh.displayName="folderShape";Rh.inheritAttrs=!1;const s$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M202.24 421.11999999999995c1.792-56.23466666666667 47.78666666666667-101.12 104.27733333333333-101.12 0.46933333333333327 0 0.9386666666666665 0 1.408 0l568.2346666666666 0c0.17066666666666666 0 0.38399999999999995 0 0.5973333333333333 0 7.082666666666666 0 12.799999999999999-5.717333333333333 12.799999999999999-12.799999999999999 0-1.3653333333333333-0.21333333333333332-2.6879999999999997-0.6399999999999999-3.925333333333333-21.205333333333332-65.024-81.40799999999999-111.27466666666666-152.40533333333332-111.27466666666666-0.17066666666666666 0-0.38399999999999995 0-0.5546666666666666 0h-287.9573333333333v-32c0-53.034666666666666-42.96533333333333-96-96-96h-256c-53.034666666666666 0-96 42.96533333333333-96 96v640c0 0.9813333333333333-0.042666666666666665 2.0906666666666665-0.042666666666666665 3.2426666666666666 0 77.056 54.44266666666667 141.39733333333334 126.976 156.58666666666664 0.896-1.92 0.8106666666666666-4.394666666666666 0.8106666666666666-6.8693333333333335s0.08533333333333333-4.949333333333334 0.256-7.381333333333332z"}},{"type":"element","name":"path","attributes":{"d":"M960 384h-652.16c-22.954666666666668 0-41.599999999999994 18.645333333333333-41.599999999999994 41.599999999999994l-74.24 521.5999999999999c-0.42666666666666664 1.92-0.6399999999999999 4.1386666666666665-0.6399999999999999 6.3999999999999995s0.256 4.4799999999999995 0.6826666666666666 6.613333333333333l703.9573333333333-0.21333333333333332c35.327999999999996 0 64-28.672 64-64l64-448c0-35.327999999999996-28.672-64-64-64z"}}]}'),Zu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:s$,name:"folderShapeOpen"}),null)};Zu.displayName="folderShapeOpen";Zu.inheritAttrs=!1;const i$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M860.8 128H163.2a32 32 0 0 0-27.36 52l295.2 336 0.96 0V896l160-82.72V516.8l0.96 0 295.2-336A32 32 0 0 0 860.8 128Z"}}]}'),Qu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:i$,name:"funnel"}),null)};Qu.displayName="funnel";Qu.inheritAttrs=!1;const o$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M696.96 64a112 112 0 1 1-111.04 112A112 112 0 0 1 696.96 64ZM327.04 64a112 112 0 1 1-111.04 112A112 112 0 0 1 327.04 64ZM696.96 400a112 112 0 1 1-111.04 112A112 112 0 0 1 696.96 400ZM327.04 400a112 112 0 1 1-111.04 112A112 112 0 0 1 327.04 400ZM696.96 736a112 112 0 1 1-111.04 112A112 112 0 0 1 696.96 736ZM327.04 736a112 112 0 1 1-111.04 112A112 112 0 0 1 327.04 736Z"}}]}'),ed=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:o$,name:"gragFill"}),null)};ed.displayName="gragFill";ed.inheritAttrs=!1;const l$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 128c212.8 0 384 171.2 384 384S724.8 896 512 896 128 724.8 128 512 299.2 128 512 128M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64z"}},{"type":"element","name":"path","attributes":{"d":"M548.8 673.6A48 48 0 0 1 500.8 721.6 48 48 0 0 1 452.8 673.6 48 48 0 0 1 548.8 673.6z"}},{"type":"element","name":"path","attributes":{"d":"M513.6 302.4c80 0 132.8 44.8 132.8 110.4 0 41.6-20.8 72-60.8 96-40 24-48 35.2-48 62.4v14.4H464v-16c-3.2-44.8 11.2-70.4 51.2-92.8 36.8-22.4 48-35.2 48-60.8s-20.8-44.8-52.8-44.8c-28.8-1.6-52.8 19.2-56 48 0 1.6 0 1.6 0 3.2h-76.8C377.6 352 427.2 302.4 513.6 302.4z"}}]}'),Fh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:l$,name:"help"}),null)};Fh.displayName="help";Fh.inheritAttrs=!1;const c$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264 64 64 264 64 512c0 57.6 11.2 113.6 32 166.4V896c0 17.6 14.4 32 32 32h217.6C576 1019.2 836.8 908.8 928 678.4S908.8 187.2 678.4 96C625.6 75.2 569.6 64 512 64zM500.8 721.6c-27.2 0-48-20.8-48-48s20.8-48 48-48c27.2 0 48 20.8 48 48S528 721.6 500.8 721.6zM587.2 507.2c-36.8 20.8-48 35.2-48 62.4v14.4H464v-16c-3.2-44.8 11.2-70.4 51.2-92.8 36.8-22.4 48-35.2 48-60.8s-20.8-44.8-52.8-44.8c-28.8-1.6-52.8 19.2-56 48 0 1.6 0 1.6 0 3.2h-76.8c1.6-70.4 49.6-118.4 136-118.4 80 0 132.8 44.8 132.8 110.4C648 454.4 627.2 484.8 587.2 507.2z"}}]}'),Hh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:c$,name:"helpDocumentFill"}),null)};Hh.displayName="helpDocumentFill";Hh.inheritAttrs=!1;const u$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zM500.8 721.6c-27.2 0-48-20.8-48-48s20.8-48 48-48c27.2 0 48 20.8 48 48S528 721.6 500.8 721.6zM587.2 507.2c-36.8 20.8-48 35.2-48 62.4v14.4H464v-16c-3.2-44.8 11.2-70.4 51.2-92.8 36.8-22.4 48-35.2 48-60.8s-20.8-44.8-52.8-44.8c-28.8-1.6-52.8 19.2-56 48 0 1.6 0 1.6 0 3.2h-76.8c1.6-70.4 49.6-118.4 136-118.4 80 0 132.8 44.8 132.8 110.4C648 454.4 627.2 484.8 587.2 507.2z"}}]}'),Bh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:u$,name:"helpFill"}),null)};Bh.displayName="helpFill";Bh.inheritAttrs=!1;const d$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M664.4363636363637 0C676.8000000000001 0 688.5818181818182 4.945454545454545 697.3090909090909 13.672727272727274L697.3090909090909 13.672727272727274 1010.3272727272728 326.6909090909091C1019.0545454545455 335.41818181818184 1024 347.3454545454546 1024 359.70909090909095L1024 359.70909090909095 1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L977.4545454545455 1303.2727272727273 46.54545454545455 1303.2727272727273C20.8 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 1256.7272727272727 0 46.54545454545455C0 20.8 20.8 0 46.54545454545455 0L46.54545454545455 0ZM637.6727272727272 744.7272727272727L474.76363636363635 954.1818181818182 358.40000000000003 814.5454545454546 195.4909090909091 1024 847.1272727272727 1024 637.6727272727272 744.7272727272727ZM465.4545454545455 558.5454545454545C414.041856 558.5454545454545 372.3636363636364 600.2236741818182 372.3636363636364 651.6363636363636 372.3636363636364 703.0490530909091 414.041856 744.7272727272727 465.4545454545455 744.7272727272727 516.8672349090909 744.7272727272727 558.5454545454545 703.0490530909091 558.5454545454545 651.6363636363636 558.5454545454545 600.2236741818182 516.8672349090909 558.5454545454545 465.4545454545455 558.5454545454545ZM642.9090909090909 107.34545454545454L642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091 642.9090909090909 107.34545454545454Z"}}]}'),td=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:d$,name:"imageFill"}),null)};td.displayName="imageFill";td.inheritAttrs=!1;const f$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M752 512A176 176 0 1 0 928 688 176 176 0 0 0 752 512Zm0 299.2a30.88 30.88 0 1 1 30.88-30.88A30.72 30.72 0 0 1 752 811.2Zm16.96-92.32a17.12 17.12 0 0 1-33.92 0s-13.76-118.72-13.76-123.2a30.88 30.88 0 1 1 61.6 0C782.88 600.16 768.96 718.88 768.96 718.88Z"}},{"type":"element","name":"path","attributes":{"d":"M800 176H480l-44.32 89.44-23.36 89.44-70.24 85.6 30.88-85.6-46.88-89.44L336 240h0v-0.96L359.52 176H160a96 96 0 0 0-96 96V752a96 96 0 0 0 96 96H573.44A238.88 238.88 0 0 1 512 688a243.2 243.2 0 0 1 8.16-61.44L356.8 519.84a46.72 46.72 0 0 0-70.72 2.56L128 656V272a32 32 0 0 1 32-32h118.4L272 283.36l70.08 71.52L327.36 480l108.32-107.36L530.4 240H800a32 32 0 0 1 32 32V461.92A241.92 241.92 0 0 1 896 496V272A96 96 0 0 0 800 176Z"}},{"type":"element","name":"path","attributes":{"d":"M720 400A80 80 0 0 1 640 480 80 80 0 0 1 560 400 80 80 0 0 1 720 400z"}}]}'),zh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:f$,name:"imgError"}),null)};zh.displayName="imgError";zh.inheritAttrs=!1;const h$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M864 176H160a96 96 0 0 0-96 96V752a96 96 0 0 0 96 96H864a96 96 0 0 0 96-96V272A96 96 0 0 0 864 176ZM128 272a32 32 0 0 1 32-32H864a32 32 0 0 1 32 32V688l-144-114.72a57.76 57.76 0 0 0-56.32 0L592 672 356.8 439.84a46.72 46.72 0 0 0-70.72 2.56L128 656Z"}},{"type":"element","name":"path","attributes":{"d":"M752 400A96 96 0 0 1 656 496 96 96 0 0 1 560 400 96 96 0 0 1 752 400z"}}]}'),Uh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:h$,name:"imgPlacehoulder"}),null)};Uh.displayName="imgPlacehoulder";Uh.inheritAttrs=!1;const m$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64A448 448 0 1 1 64 512 448 448 0 0 1 512 64ZM493.92 402.56a156 156 0 0 0-77.12 42.24c-24.32 22.88 1.44 44 16 27.52a82.56 82.56 0 0 1 40.48-28.16c11.04-2.24 17.6 1.28 19.36 10.4A118.88 118.88 0 0 1 488.16 496q-7.2 29.76-26.4 93.92-34.72 116.32-30.08 140.8a54.72 54.72 0 0 0 28.8 40.96 88 88 0 0 0 58.4 5.12 161.76 161.76 0 0 0 80-45.44c25.76-24.96-3.52-43.04-17.28-28a76.32 76.32 0 0 1-39.36 26.08c-14.24 2.88-22.72-2.4-25.28-16A104.96 104.96 0 0 1 522.88 672Q582.24 469.12 576 439.84a46.24 46.24 0 0 0-25.6-33.6A89.6 89.6 0 0 0 493.92 402.56Zm67.84-39.84A49.92 49.92 0 1 0 512 312.96 49.76 49.76 0 0 0 561.76 362.72Z"}}]}'),el=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:m$,name:"info"}),null)};el.displayName="info";el.inheritAttrs=!1;const g$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zM512 896C299.2 896 128 724.8 128 512S299.2 128 512 128s384 171.2 384 384S724.8 896 512 896z"}},{"type":"element","name":"path","attributes":{"d":"M494.4 403.2c-28.8 6.4-56 20.8-76.8 41.6-24 22.4 1.6 44.8 16 27.2 9.6-12.8 24-22.4 40-28.8 11.2-1.6 17.6 1.6 19.2 9.6 1.6 14.4 0 27.2-4.8 41.6-4.8 19.2-14.4 51.2-25.6 94.4-22.4 76.8-33.6 124.8-30.4 140.8 3.2 17.6 12.8 32 28.8 41.6 17.6 8 38.4 9.6 57.6 4.8 30.4-6.4 57.6-22.4 80-44.8 25.6-25.6-3.2-43.2-17.6-28.8-9.6 12.8-24 22.4-40 25.6-14.4 3.2-22.4-3.2-25.6-16-1.6-14.4 1.6-28.8 6.4-41.6 40-136 57.6-212.8 52.8-232-3.2-14.4-12.8-27.2-25.6-33.6C532.8 398.4 512 398.4 494.4 403.2z"}},{"type":"element","name":"path","attributes":{"d":"M608 304A48 48 0 0 1 560 352 48 48 0 0 1 512 304 48 48 0 0 1 608 304z"}}]}'),nd=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:g$,name:"infoLine"}),null)};nd.displayName="infoLine";nd.inheritAttrs=!1;const p$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M680.96 129.92c-14.08-3.84-30.08-1.2799999999999998-40.31999999999999 7.04l-439.03999999999996 356.48c-12.799999999999999 10.239999999999998-12.799999999999999 26.88 0 37.12l439.03999999999996 356.48c7.04 5.76 16.64 8.959999999999999 26.88 8.959999999999999 4.4799999999999995 0 8.959999999999999-0.6399999999999999 13.44-1.92 14.08-3.84 23.04-14.08 23.04-25.599999999999998v-712.96c0-11.52-8.959999999999999-21.759999999999998-23.04-25.599999999999998z"}}]}'),jh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:p$,name:"leftShape"}),null)};jh.displayName="leftShape";jh.inheritAttrs=!1;const v$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M192 512a320 320 0 1 0 76.96-208H352v64H160V176h64v82.08A384 384 0 1 1 128 512Z"}}]}'),Wh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:v$,name:"leftTurnLine"}),null)};Wh.displayName="leftTurnLine";Wh.inheritAttrs=!1;const y$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M332.8 243.2c25.6 25.6 25.6 64 0 89.6-25.6 25.6-64 25.6-89.6 0L217.6 307.2 198.4 288c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6L332.8 243.2z","opacity":".1"}},{"type":"element","name":"path","attributes":{"d":"M192 448c38.4 0 64 25.6 64 64S230.4 576 192 576H160 128C89.6 576 64 550.4 64 512s25.6-64 64-64h32H192z","opacity":".15"}},{"type":"element","name":"path","attributes":{"d":"M243.2 691.2c25.6-25.6 64-25.6 89.6 0 25.6 25.6 25.6 64 0 89.6l-25.6 25.6L281.6 832c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6l25.6-25.6L243.2 691.2z","opacity":".3"}},{"type":"element","name":"path","attributes":{"d":"M448 832c0-38.4 25.6-64 64-64s64 25.6 64 64v32V896c0 38.4-25.6 64-64 64s-64-25.6-64-64v-32V832z","opacity":".45"}},{"type":"element","name":"path","attributes":{"d":"M825.6 825.6c-25.6 25.6-64 25.6-89.6 0l-25.6-25.6 0 0-25.6-25.6c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 25.6 25.6 0 0C851.2 761.6 851.2 806.4 825.6 825.6z","opacity":".6"}},{"type":"element","name":"path","attributes":{"d":"M896 448l-32 128H832c-38.4 0-64-25.6-64-64s25.6-64 64-64H896zM960 512c0 38.4-25.6 64-64 64h-32L896 448C934.4 448 960 473.6 960 512z","opacity":".75"}},{"type":"element","name":"path","attributes":{"d":"M742.4 192c25.6-19.2 64-19.2 83.2 6.4 25.6 25.6 25.6 64 0 89.6l-25.6 25.6-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6","opacity":".9"}},{"type":"element","name":"path","attributes":{"d":"M448 160L576 192c0 38.4-25.6 64-64 64S448 230.4 448 192V160zM512 64c38.4 0 64 25.6 64 64v32H448V128C448 89.6 473.6 64 512 64zM448 160h128V192H448V160z"}}]}'),rd=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:y$,name:"loading"}),null)};rd.displayName="loading";rd.inheritAttrs=!1;const b$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M886.56 841.28l-149.12-149.12a344.64 344.64 0 1 0-45.28 45.28l149.12 149.12A32 32 0 0 0 864 896a32 32 0 0 0 22.56-54.72ZM472.32 752A280.32 280.32 0 1 1 752 472.32 280.64 280.64 0 0 1 472.32 752Z"}},{"type":"element","name":"path","attributes":{"d":"M576 448H352a32 32 0 0 0 0 64H576a32 32 0 0 0 0-64Z"}}]}'),Gh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:b$,name:"narrowLine"}),null)};Gh.displayName="narrowLine";Gh.inheritAttrs=!1;const w$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M896 176H128a64 64 0 0 0-64 64V784a64 64 0 0 0 64 64H896a64 64 0 0 0 64-64V240A64 64 0 0 0 896 176Zm0 608H128V240H896Z"}},{"type":"element","name":"path","attributes":{"d":"M327.84 649.28h52.64V373.28H337.76A97.12 97.12 0 0 1 304 417.28a150.56 150.56 0 0 1-44.8 25.6v48a182.56 182.56 0 0 0 68.16-40Z"}},{"type":"element","name":"path","attributes":{"d":"M480.64 450.24H533.28V502.88H480.64V450.24z"}},{"type":"element","name":"path","attributes":{"d":"M480.64 596.64H533.28V649.28H480.64V596.64z"}},{"type":"element","name":"path","attributes":{"d":"M669.28 649.28h52.64V373.28H679.2a97.12 97.12 0 0 1-33.28 44 150.56 150.56 0 0 1-44.8 25.6v48a182.56 182.56 0 0 0 68.16-40Z"}}]}'),Kh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:w$,name:"original"}),null)};Kh.displayName="original";Kh.inheritAttrs=!1;const C$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M1010.3272727272728 326.8363636363636C1019.0545454545455 335.56363636363636 1024 347.3454545454546 1024 359.70909090909095L1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L46.54545454545455 1303.2727272727273C20.80000000000002 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 46.54545454545455C0 20.799999999999997 20.80000000000002 0 46.54545454545455 0L664.2909090909092 0C676.6545454545455 0 688.5818181818182 4.945454545454554 697.3090909090909 13.67272727272728L1010.3272727272728 326.8363636363636ZM916.6545454545455 381.0909090909091L642.9090909090909 107.34545454545456 642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091ZM688.3156340363636 833.8269090909091C666.2443659636364 833.1156340363638 642.7679976727273 834.8014545454546 616.0974568727273 838.1381818181819 580.7549114181819 816.3389114181817 556.9643659636364 786.3825454545455 540.0625477818182 742.389820509091 540.4698158545455 740.714179490909 541.3134568727273 737.2436386909092 541.6087272727273 736.0189114181819 542.2981818181819 733.1709114181818 542.8698158545455 730.7912750545455 543.4167295999999 728.4770909090909 549.661090909091 702.1061818181818 553.0385454545456 682.8654545454546 554.0349114181819 663.4661841454545 554.788361309091 648.8130932363637 553.9767249454546 635.2945477818182 551.3774545454546 622.7738205090909 546.5803636363637 595.7425477818182 527.4443636363637 579.933090909091 503.3469067636364 578.9541841454546 480.8799976727273 578.0421818181818 460.2210909090909 590.5803636363637 454.9381818181818 610.0421818181818 446.33745221818185 641.4778181818182 451.37454545454545 682.8712727272729 469.6 753.4341818181819 446.3796363636364 808.7883636363637 415.70618181818185 873.6683659636363 395.1229067636363 909.8545477818182 367.65381818181817 924.021820509091 346.2443659636364 936.9163636363637 328.28218181818187 951.2029090909091 304.5687296 970.0625454545454 289.7658181818182 989.4429090909091 285.6843636363637 1009.8298181818183 283.71345221818177 1019.2552727272729 286.69090909090914 1031.5985454545455 293.4807272727272 1041.7018181818182 301.184 1053.1621841454546 312.8 1060.597820509091 326.7243659636364 1061.6800023272726 361.85454312727273 1064.4101818181819 405.02254312727274 1028.1905477818182 452.6734522181818 946.3956386909091 457.4661818181818 944.8101841454546 462.5352704 943.1127272727273 468.71127040000005 941.0283659636364 472.09018181818186 939.8894545454546 483.9316340363637 935.8821841454546 486.0349114181819 935.1723659636364 496.9745454545455 931.4778205090909 504.9149114181818 928.8305477818183 512.7636340363636 926.2763659636363 546.7941794909092 915.2043659636364 572.5396340363636 908.1978181818182 595.9781794909092 904.221090909091 636.6661818181818 926.0000023272728 683.7105477818181 940.288 715.3934522181818 940.288 741.5447272727273 940.288 759.2130885818183 926.7330932363637 765.5970909090909 905.4007296 771.2072704000001 886.6574568727273 766.7520000000001 864.9294568727273 754.7272704 852.9149114181819 742.2763613090909 840.6821841454545 719.3818205090909 834.8290932363636 688.3156340363636 833.8269090909091L688.3156340363636 833.8269090909091ZM327.61017716363637 1020.6196363636365L327.61017716363637 1020.0960000000001 327.79345454545455 1019.6043636363636C329.6479976727273 1014.6283613090909 332.38545221818185 1009.4109090909092 335.93890909090914 1003.9563636363637 342.17018181818185 994.3912727272727 350.7359976727273 984.32 361.3527272727273 973.6072704000001 367.0545454545455 967.8545454545455 372.992 962.2618158545456 379.9563636363637 955.9781794909092 381.5170885818182 954.5687272727273 391.46181818181816 945.7105454545456 393.32217949090904 943.9781841454546L409.5781794909091 928.8407272727272 397.76727040000003 947.6538181818181C379.8385431272727 976.2181818181818 363.6436340363636 996.7883636363637 349.74836363636365 1010.2050909090909 344.64727039999997 1015.1316340363637 340.1483636363636 1018.7869090909091 336.52508858181824 1021.121452218182 335.0312727272727 1022.0843613090909 333.7381794909091 1022.7854522181817 332.72436363636365 1023.1927249454546 332.1294522181818 1023.4298181818182 331.6029067636364 1023.5825431272726 331.0807272727273 1023.6319976727274 330.5281303272728 1023.6968587636364 329.9681698909091 1023.6166516363637 329.4559976727273 1023.3992704 328.3361233454546 1022.9301666909092 327.6080779636364 1021.8337931636364 327.61017716363637 1020.6196363636365ZM510.7869090909091 703.1374568727272L507.4996363636364 708.9658181818182 505.47781818181824 702.5876340363636C500.94836363636364 688.2909090909092 497.6421841454545 666.7461818181819 496.72727272727275 647.3192727272727 495.6858181818182 625.2145431272728 497.44000000000005 611.9403659636364 504.416 611.9403659636364 514.2196363636363 611.9403659636364 518.715638690909 627.6610885818181 519.072 651.2901818181818 519.3861818181817 672.0610909090909 516.1192727272727 693.6785454545454 510.7869090909091 703.1374568727272ZM502.336 788.1760023272727L504.5672727272727 782.2850932363638 507.60436363636364 787.805090909091C524.6080000000001 818.7069114181819 546.6705454545455 844.4843659636364 570.9323636363636 862.4450932363636L576.1614522181818 866.3170932363636 569.7905431272727 867.6320023272727C546.0407296000001 872.5367296000001 523.9083659636365 879.9330909090909 493.6596340363636 892.1294568727272 496.82181585454543 890.8552750545455 462.20799999999997 905.021090909091 453.45890676363643 908.3752727272728L445.81963403636365 911.3032750545455 449.89527039999996 904.2094545454546C467.85891141818183 872.9425454545456 484.452361309091 835.3716363636364 502.3345477818182 788.1760023272727L502.336 788.1760023272727ZM731.6101818181818 899.1010909090909C720.1716363636365 903.616 695.5709067636365 899.5796340363637 652.2370932363636 881.0836340363636L641.2392727272727 876.3898181818182 653.1650885818183 875.5069067636365C687.0487272727273 872.9992704 711.0661818181818 874.8669067636364 725.0516340363637 879.9869067636363 731.0007249454545 882.165820509091 734.9774522181818 884.9149114181819 736.7418181818182 888.064 738.6472727272728 891.4618181818182 737.7745454545455 895.0603636363637 734.7607272727273 897.2421818181818 734.109090909091 897.8632704 733.0807295999999 898.5221818181819 731.6101818181818 899.1010909090909L731.6101818181818 899.1010909090909Z"}}]}'),Yh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:C$,name:"pdfFill"}),null)};Yh.displayName="pdfFill";Yh.inheritAttrs=!1;const N$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M827.9893333333332 482.73066666666665l-585.1306666666667-474.7093333333333c-6.229333333333333-5.418666666666667-14.421333333333333-8.746666666666666-23.381333333333334-8.789333333333332-20.223999999999997 0-36.56533333333333 16.384-36.56533333333333 36.56533333333333v950.8693333333333c0 20.18133333333333 16.384 36.56533333333333 36.56533333333333 36.56533333333333 0 0 0.042666666666666665 0 0.042666666666666665 0 8.618666666666666 0 16.512-3.0293333333333328 22.698666666666668-8.106666666666666l585.088-474.66666666666663c8.874666666666666-6.741333333333333 14.506666666666668-17.28 14.506666666666668-29.184 0-11.562666666666667-5.333333333333333-21.845333333333333-13.696-28.544z"}}]}'),Xh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:N$,name:"playShape"}),null)};Xh.displayName="playShape";Xh.inheritAttrs=!1;const x$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M736 480L544 480 544 288 480 288 480 480 288 480 288 544 480 544 480 736 544 736 544 544 736 544z"}}]}'),tl=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:x$,name:"plus"}),null)};tl.displayName="plus";tl.inheritAttrs=!1;const _$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1097.143","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M698.6857142857143 34.403266925714284C704.0284854857142 39.03491620571429 707.0963821714286 45.75792566857142 707.0963821714286 52.82880841142857L707.0963821714286 1069.3194752C707.0963821714286 1076.3805476571426 704.0330386285714 1083.0943561142856 698.7016923428572 1087.7242075428571 693.3703497142857 1092.3540589714285 686.2936283428571 1094.4451693714284 679.3020964571429 1093.4566180571428L66.26742857142857 1005.9290002285713C42.23585170285714 1002.5063533714285 24.380952502857145 981.9287990857142 24.380952502857145 957.6547145142856L24.380952502857145 164.4935701942857C24.380952502857145 140.21948562285712 42.23585170285714 119.64193024 66.26742857142857 116.21928448L66.31619035428571 116.21928448 679.2533321142857 28.691665554285713C686.252565942857 27.68759990857143 693.3429430857143 29.771617645714286 698.6857142857143 34.403266925714284ZM950.905903542857 122.21699876571428C977.8363611428571 122.21699876571428 999.6678107428571 144.04844726857144 999.6678107428571 170.97890340571428L999.6678107428571 951.1693787428571C999.6678107428571 978.0998363428571 977.8363611428571 999.931285942857 950.905903542857 999.931285942857L755.8582857142857 999.931285942857 755.8582857142857 902.4074751999999 902.1439999999999 902.4074751999999 902.1439999999999 219.74080841142853 755.8582857142857 219.74080841142853 755.8582857142857 122.21699876571428 950.905903542857 122.21699876571428ZM544.5566976 333.5185846857143L154.46146048 333.5185846857143 154.46146048 723.613824 251.98526976 723.613824 251.98526976 626.0900132571428 544.5566976 626.0900132571428 544.5566976 333.5185846857143ZM447.03289051428567 431.0423954285714L447.03289051428567 528.5662061714285 251.98526976 528.5662061714285 251.98526976 431.0423954285714 447.03289051428567 431.0423954285714Z"}}]}'),qh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:_$,name:"pptFill"}),null)};qh.displayName="pptFill";qh.inheritAttrs=!1;const S$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1117.090909090909","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M314.1818181818182 1117.090909090909h-30.720000000000002c-58.78690909090909-0.6516363636363637-112.73309090909092-21.038545454545456-155.5549090909091-54.87709090909091-18.01309090909091-17.31490909090909-29.55636363636364-42.216727272727276-29.55636363636364-69.86472727272727 0-1.3032727272727274 0.04654545454545455-2.6530909090909094 0.0930909090909091-3.956363636363637 0.1861818181818182-11.776 3.025454545454546-23.04 7.866181818181819-33.09381818181818-0.1861818181818182 0.32581818181818184-0.1861818181818182 0.1861818181818182-0.1861818181818182 0 0-18.478545454545458 7.168-35.281454545454544 18.897454545454547-47.75563636363636 8.424727272727273-10.100363636363637 18.10618181818182-18.897454545454547 28.811636363636364-26.205090909090906-7.866181818181819-12.008727272727274-16.19781818181818-25.506909090909094-23.691636363636366-39.47054545454545-17.268363636363638 19.78181818181818-42.123636363636365 34.443636363636365-70.42327272727273 37.05018181818182-19.642181818181818-1.349818181818182-35.70036363636364-13.870545454545454-42.170181818181824-31.045818181818184-51.75854545454546-139.96218181818182 26.43781818181818-264.9367272727273 87.17963636363636-336.1512727272728-0.32581818181818184-3.2581818181818187-0.512-7.028363636363636-0.512-10.798545454545456s0.1861818181818182-7.586909090909091 0.5585454545454546-11.310545454545455c-0.3723636363636364-2.699636363636364-0.5585454545454546-6.3767272727272735-0.5585454545454546-10.053818181818182 0-18.990545454545455 5.12-36.77090909090909 14.056727272727272-52.08436363636364 0.4189090909090909-23.505454545454548 10.705454545454547-44.96290909090909 26.903272727272725-60.22981818181819 2.0014545454545454-203.264 167.2378181818182-367.29018181818185 370.78109090909095-367.29018181818185 0.512 0 0.9774545454545456 0 1.4894545454545456 0 104.40145454545454 1.2567272727272727 198.42327272727272 44.86981818181818 265.8210909090909 114.40872727272729 65.34981818181818 65.25672727272728 106.82181818181819 154.25163636363638 110.40581818181818 252.88145454545455 22.43490909090909 28.904727272727275 36.02618181818182 65.1170909090909 36.02618181818182 104.44800000000001 0 12.706909090909091-1.3963636363636363 25.088-4.096 37.00363636363637 51.2 64.512 134.28363636363636 203.45018181818185 70.05090909090909 343.7847272727273-7.493818181818182 17.268363636363638-24.34327272727273 29.184-43.985454545454544 29.323636363636364h0c-27.694545454545455-4.654545454545455-50.87418181818182-20.945454545454545-64.69818181818181-43.566545454545455-8.424727272727273 15.63927272727273-16.57018181818182 29.137454545454545-25.46036363636364 42.030545454545454 14.382545454545454 6.935272727272727 25.925818181818183 16.942545454545453 35.51418181818182 28.57890909090909 11.450181818181818 11.86909090909091 18.71127272727273 27.46181818181818 19.735272727272726 44.73018181818182 4.654545454545455 9.774545454545455 7.493818181818182 21.038545454545456 7.680000000000001 32.954181818181816 0.04654545454545455 1.2101818181818182 0.0930909090909091 2.5134545454545454 0.0930909090909091 3.816727272727273 0 27.601454545454544-11.543272727272727 52.54981818181818-30.06836363636364 70.23709090909091-42.30981818181819 33.466181818181816-96.256 53.85309090909091-154.90327272727274 54.50472727272727-10.14690909090909 1.2101818181818182-21.736727272727276 1.8618181818181818-33.512727272727275 1.8618181818181818-66.28072727272728 0-127.44145454545455-21.643636363636364-176.91927272727273-58.32145454545454l-33.419636363636364 0.5585454545454546c-47.19709090909091 36.25890909090909-107.14763636363637 58.088727272727276-172.17163636363637 58.088727272727276-3.3047272727272725 0-6.56290909090909-0.04654545454545455-9.821090909090909-0.1861818181818182zM187.11272727272726 946.7345454545455l18.152727272727272 11.17090909090909-38.4 30.720000000000002c0.8378181818181818 8.238545454545454 3.8632727272727276 15.63927272727273 8.471272727272726 21.736727272727276 31.232000000000003 22.900363636363636 70.51636363636364 36.72436363636364 113.01236363636363 36.910545454545456 9.588363636363637 1.442909090909091 20.57309090909091 2.280727272727273 31.744000000000003 2.280727272727273 53.061818181818175 0 101.74836363636364-18.80436363636364 139.72945454545453-50.0829090909091l10.100363636363637-9.495272727272727h21.643636363636364c6.469818181818183 0.46545454545454545 14.010181818181819 0.7447272727272728 21.643636363636364 0.7447272727272728s15.173818181818183-0.2792727272727273 22.667636363636365-0.7912727272727273l14.336 0.04654545454545455 11.17090909090909 10.472727272727273c37.376000000000005 31.09236363636364 85.9229090909091 49.98981818181819 138.8450909090909 49.98981818181819 11.636363636363637 0 23.04-0.9309090909090909 34.16436363636364-2.6530909090909094-0.6516363636363637 0.1861818181818182 0 0.1861818181818182 0.6516363636363637 0.1861818181818182 42.07709090909091 0 80.94254545454547-13.637818181818181 112.45381818181818-36.67781818181818 3.6770909090909094-4.561454545454546 6.2370909090909095-11.031272727272727 6.2370909090909095-18.10618181818182 0-1.8618181818181818-0.1861818181818182-3.6770909090909094-0.512-5.445818181818182l-38.35345454545455-30.533818181818184 18.152727272727272-9.774545454545455c-10.053818181818182-7.633454545454546-21.969454545454546-13.451636363636363-34.955636363636366-16.61672727272727l-55.80800000000001-14.103272727272728 37.70181818181818-42.58909090909091c29.649454545454546-33.18690909090909 52.1309090909091-73.49527272727273 64.41890909090908-117.99272727272728l24.948363636363638-94.25454545454545 40.49454545454545 85.87636363636364c8.843636363636364 19.456 19.316363636363636 36.21236363636364 31.744000000000003 51.386181818181825 30.39418181818182-108.63709090909092-47.104-218.25163636363638-83.40945454545455-262.2370909090909l-13.265454545454544-15.360000000000001 6.9818181818181815-18.85090909090909c3.1185454545454547-9.076363636363636 4.887272727272728-19.54909090909091 4.887272727272728-30.440727272727276 0-25.134545454545457-9.541818181818181-48.034909090909096-25.227636363636368-65.25672727272728l-9.681454545454546-10.379636363636363v-13.963636363636363c-0.32581818181818184-169.70472727272727-135.40072727272727-307.75854545454547-303.9418181818182-312.78545454545457-1.349818181818182 0-2.373818181818182-0.04654545454545455-3.444363636363636-0.04654545454545455-167.7498181818182 0-303.70909090909095 135.95927272727272-303.70909090909095 303.70909090909095 0 3.6770909090909094 0.04654545454545455 7.354181818181819 0.1861818181818182 11.031272727272727l0 20.433454545454545-17.454545454545453 13.963636363636363c-5.678545454545454 3.1650909090909094-9.448727272727274 9.076363636363636-9.448727272727274 15.918545454545455 0 1.3032727272727274 0.13963636363636364 2.5134545454545454 0.3723636363636364 3.7236363636363636l4.189090909090909 27.089454545454544-16.756363636363638 7.680000000000001c-0.3723636363636364 2.7461818181818183-0.6050909090909091 5.864727272727273-0.6050909090909091 9.076363636363636s0.23272727272727273 6.330181818181819 0.6516363636363637 9.448727272727274c0.512 6.842181818181818 2.280727272727273 13.451636363636363 4.980363636363636 19.54909090909091l8.238545454545454 19.874909090909092-14.661818181818182 16.05818181818182c-59.485090909090914 55.482181818181814-96.53527272727273 134.28363636363636-96.53527272727273 221.7890909090909 0 10.891636363636364 0.5585454545454546 21.69018181818182 1.722181818181818 32.30254545454545 12.288-14.754909090909091 23.179636363636366-29.88218181818182 32.11636363636364-46.21963636363636l41.099636363636364-70.98181818181818 23.73818181818182 78.89454545454547c13.312 44.12509090909091 35.14181818181818 82.19927272727273 63.76727272727273 114.0829090909091l36.07272727272728 40.215272727272726-52.36363636363637 16.05818181818182c-12.427636363636365 2.3272727272727276-23.458909090909092 6.935272727272727-33.14036363636364 13.451636363636363zM165.4690909090909 474.76363636363635v0z"}}]}'),Jh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:S$,name:"qq"}),null)};Jh.displayName="qq";Jh.inheritAttrs=!1;const T$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M822.3999999999999 493.43999999999994l-439.03999999999996-356.48c-10.239999999999998-8.32-26.24-10.879999999999999-40.31999999999999-7.04s-23.04 14.08-23.04 25.599999999999998v712.96c0 11.52 8.959999999999999 21.119999999999997 23.04 25.599999999999998 4.4799999999999995 1.2799999999999998 8.959999999999999 1.92 13.44 1.92 10.239999999999998 0 19.84-3.1999999999999997 26.88-8.959999999999999l439.03999999999996-356.48c12.799999999999999-10.239999999999998 12.799999999999999-26.88 0-37.12z"}}]}'),nl=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:T$,name:"rightShape"}),null)};nl.displayName="rightShape";nl.inheritAttrs=!1;const E$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M832 512a320 320 0 1 1-76.96-208H672v64H864V176H800v82.08A384 384 0 1 0 896 512Z"}}]}'),ad=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:E$,name:"rightTurnLine"}),null)};ad.displayName="rightTurnLine";ad.inheritAttrs=!1;const O$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M842.56 797.28l-151.52-151.52a336 336 0 1 0-45.28 45.28l151.52 151.52a32 32 0 0 0 45.28-45.28ZM432 704A272 272 0 1 1 704 432 272 272 0 0 1 432 704Z"}}]}'),vs=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:O$,name:"search"}),null)};vs.displayName="search";vs.inheritAttrs=!1;const L$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"icon","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M981.333333 1024H42.666667a42.666667 42.666667 0 0 1-42.666667-42.666667V42.666667a42.666667 42.666667 0 0 1 42.666667-42.666667h341.333333a42.666667 42.666667 0 0 1 0 85.333333H85.333333v853.333334h853.333334V618.666667a42.666667 42.666667 0 0 1 85.333333 0v362.666666a42.666667 42.666667 0 0 1-42.666667 42.666667z m0-576a42.666667 42.666667 0 0 1-42.666666-42.666667V152.746667L315.306667 796.8a48 48 0 0 1-67.2 0 47.36 47.36 0 0 1 0-66.133333L871.893333 85.333333H640a42.666667 42.666667 0 0 1 0-85.333333h341.333333a42.666667 42.666667 0 0 1 42.666667 42.666667v362.666666a42.666667 42.666667 0 0 1-42.666667 42.666667z"}}]}'),Zh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:L$,name:"share"}),null)};Zh.displayName="share";Zh.inheritAttrs=!1;const A$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"lds-spin","preserveAspectRatio":"xMidYMid","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M874.3255040000001 512A55.125504 55.125504 0 0 1 819.2 567.125504 55.125504 55.125504 0 0 1 764.074496 512 55.125504 55.125504 0 0 1 874.3255040000001 512z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.9166666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.9166666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".917","d":"M826.5220089266763 693.5878203150381A55.978496 55.978496 0 0 1 750.0539613250309 714.0773719166838 55.978496 55.978496 0 0 1 729.5644097233852 637.6093243150382 55.978496 55.978496 0 0 1 826.5220089266763 693.5878203150381z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.8333333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.8333333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".833","d":"M694.0170969047495 827.2583983352753A56.83200000000001 56.83200000000001 0 0 1 616.3831411568723 806.4564425873981 56.83200000000001 56.83200000000001 0 0 1 637.1850969047495 728.8224868395207 56.83200000000001 56.83200000000001 0 0 1 694.0170969047495 827.2583983352753z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.75s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.75s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".75","d":"M512 876.8855040000001A57.685504 57.685504 0 0 1 454.314496 819.2 57.685504 57.685504 0 0 1 512 761.5144959999999 57.685504 57.685504 0 0 1 512 876.8855040000001z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.6666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.6666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".667","d":"M329.1269198807941 828.7408206328269A58.538495999999995 58.538495999999995 0 0 1 307.7003432454604 748.7757479974932 58.538495999999995 58.538495999999995 0 0 1 387.6654158807941 727.3491713621594 58.538495999999995 58.538495999999995 0 0 1 329.1269198807941 828.7408206328269z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.5833333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.5833333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".583","d":"M194.5170177632531 695.2980006130954A59.39199999999999 59.39199999999999 0 0 1 216.2559985448185 614.16701983153 59.39199999999999 59.39199999999999 0 0 1 297.3869793263839 635.9060006130953 59.39199999999999 59.39199999999999 0 0 1 194.5170177632531 695.2980006130954z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.5s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.5s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".5","d":"M144.55449600000003 512A60.245504000000004 60.245504000000004 0 0 1 204.80000000000004 451.754496 60.245504000000004 60.245504000000004 0 0 1 265.04550400000005 512 60.245504000000004 60.245504000000004 0 0 1 144.55449600000003 512z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.4166666666666667s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.4166666666666667s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".417","d":"M193.04947448121268 327.85151812453734A61.098496 61.098496 0 0 1 276.5115721502346 305.48791645551546 61.098496 61.098496 0 0 1 298.87517381925653 388.95001412453735 61.098496 61.098496 0 0 1 193.04947448121268 327.85151812453734z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.3333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.3333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".333","d":"M332.5476411431614 201.1754130120454A51.711999999999996 51.711999999999996 0 0 1 403.1875468236623 220.1033186925463 51.711999999999996 51.711999999999996 0 0 1 384.2596411431614 290.7432243730472 51.711999999999996 51.711999999999996 0 0 1 332.5476411431614 201.1754130120454z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.25s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.25s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".25","d":"M512 152.234496A52.565504000000004 52.565504000000004 0 0 1 564.565504 204.8 52.565504000000004 52.565504000000004 0 0 1 512 257.365504 52.565504000000004 52.565504000000004 0 0 1 512 152.234496z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.16666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.16666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".167","d":"M692.3075781671167 199.69299071449373A53.418496000000005 53.418496000000005 0 0 1 711.8601047350743 272.66401328245115 53.418496000000005 53.418496000000005 0 0 1 638.8890821671168 292.21653985040854 53.418496000000005 53.418496000000005 0 0 1 692.3075781671167 199.69299071449373z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.08333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.08333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".083","d":"M825.0362880000001 331.264A54.27213621356492 54.27213621356492 0 0 1 805.1712000000001 405.401088 54.27213621356492 54.27213621356492 0 0 1 731.034112 385.536 54.27213621356492 54.27213621356492 0 0 1 825.0362880000001 331.264z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"0s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"0s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]}]}'),Oi=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:A$,name:"spinner"}),null)};Oi.displayName="spinner";Oi.inheritAttrs=!1;const V$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM485.7 670.3l-181-181L350 444l135.8 135.8L712 353.5l45.3 45.3L485.7 670.3z"}}]}'),Li=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:V$,name:"success"}),null)};Li.displayName="success";Li.inheritAttrs=!1;const $$=JSON.parse('{"type":"element","name":"svg","attributes":{"aria-hidden":"true","class":"anticon-spin","data-icon":"loading","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3 0.1 19.9-16 36-35.9 36z"}}]}'),sd=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:$$,name:"switcherLoading"}),null)};sd.displayName="switcherLoading";sd.inheritAttrs=!1;const D$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M896 64C966.692448 64 1024 121.307552 1024 192L1024 857.7635776C1024 928.4560256 966.692448 985.7635776 896 985.7635776L128 985.7635776C57.307552 985.7635776 5.7233980032e-14 928.4560256 0 857.7635776L0 192C-2.286818272e-14 121.307552 57.307552 64 128 64L896 64ZM408.94568768 320.00000064L102.2364224 320.00000064 102.2364224 729.7635776 204.47284416 729.7635776 204.47284416 576.00000064 306.70926592 576.00000064 306.70926592 729.7635776 408.94568768 729.7635776 408.94568768 320.00000064ZM562.70926528 320.00000064L460.47284416 320.00000064 460.47284416 729.7635776 664.9456896 729.7635776 664.9456896 678.2364224 562.70926528 678.2364224 562.70926528 320.00000064ZM818.7092672 320.00000064L716.4728448 320.00000064 716.4728448 729.7635776 920.9456896 729.7635776 920.9456896 678.2364224 818.7092672 678.2364224 818.7092672 320.00000064ZM306.70926464 396.8L306.70926464 499.03642176 204.47284352 499.03642176 204.47284352 396.8 306.70926464 396.8Z"}}]}'),id=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:D$,name:"textAll"}),null)};id.displayName="textAll";id.inheritAttrs=!1;const I$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M704 64L704 64H128v896h768V256l0 0L704 64zM704 154.5L805.5 256H704V154.5zM832 896H192V128h448v192h192V896z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 320H544V384H288V320z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 448H736V512H288V448z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 576H736V640H288V576z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 704H736V768H288V704z","class":"st0"}}]}'),od=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:I$,name:"textFile"}),null)};od.displayName="textFile";od.inheritAttrs=!1;const k$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M664.4363636363637 0C676.8000000000001 0 688.5818181818182 4.945454545454545 697.3090909090909 13.672727272727274L697.3090909090909 13.672727272727274 1010.3272727272728 326.6909090909091C1019.0545454545455 335.41818181818184 1024 347.3454545454546 1024 359.70909090909095L1024 359.70909090909095 1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L977.4545454545455 1303.2727272727273 46.54545454545455 1303.2727272727273C20.8 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 1256.7272727272727 0 46.54545454545455C0 20.8 20.8 0 46.54545454545455 0L46.54545454545455 0ZM721.4545454545455 930.909090909091L302.54545454545456 930.909090909091C289.6922824145455 930.909090909091 279.27272727272725 941.3286446545454 279.27272727272725 954.1818181818182L279.27272727272725 954.1818181818182 279.27272727272725 1000.7272727272727C279.27272727272725 1013.5804462545456 289.6922824145455 1024 302.54545454545456 1024L302.54545454545456 1024 721.4545454545455 1024C734.3077189818182 1024 744.7272727272727 1013.5804462545456 744.7272727272727 1000.7272727272727L744.7272727272727 1000.7272727272727 744.7272727272727 954.1818181818182C744.7272727272727 941.3286446545454 734.3077189818182 930.909090909091 721.4545454545455 930.909090909091L721.4545454545455 930.909090909091ZM628.3636363636364 744.7272727272727L302.54545454545456 744.7272727272727C289.6922824145455 744.7272727272727 279.27272727272725 755.1468264727272 279.27272727272725 768L279.27272727272725 768 279.27272727272725 814.5454545454546C279.27272727272725 827.3986280727273 289.6922824145455 837.8181818181819 302.54545454545456 837.8181818181819L302.54545454545456 837.8181818181819 628.3636363636364 837.8181818181819C641.2168098909091 837.8181818181819 651.6363636363636 827.3986280727273 651.6363636363636 814.5454545454546L651.6363636363636 814.5454545454546 651.6363636363636 768C651.6363636363636 755.1468264727272 641.2168098909091 744.7272727272727 628.3636363636364 744.7272727272727L628.3636363636364 744.7272727272727ZM442.1818181818182 558.5454545454545L302.54545454545456 558.5454545454545C289.6922824145455 558.5454545454545 279.27272727272725 568.9650082909092 279.27272727272725 581.8181818181819L279.27272727272725 581.8181818181819 279.27272727272725 628.3636363636364C279.27272727272725 641.2168098909091 289.6922824145455 651.6363636363636 302.54545454545456 651.6363636363636L302.54545454545456 651.6363636363636 442.1818181818182 651.6363636363636C455.0349903127273 651.6363636363636 465.4545454545455 641.2168098909091 465.4545454545455 628.3636363636364L465.4545454545455 628.3636363636364 465.4545454545455 581.8181818181819C465.4545454545455 568.9650082909092 455.0349903127273 558.5454545454545 442.1818181818182 558.5454545454545L442.1818181818182 558.5454545454545ZM642.9090909090909 107.34545454545454L642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091 642.9090909090909 107.34545454545454Z"}}]}'),ei=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:k$,name:"textFill"}),null)};ei.displayName="textFill";ei.inheritAttrs=!1;const P$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M832 448L618.6800000000001 224.00000000000003 617.0133344000001 368.9411776 192 368.94117760000006 192 448.00000000000006 832 448ZM832 576L192 576 405.34666560000005 800 407.01333439999996 655.0588224 832 655.0588224 832 576Z"}}]}'),ld=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:P$,name:"transfer"}),null)};ld.displayName="transfer";ld.inheritAttrs=!1;const M$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M432.64 576h156.79999999999998l-79.36-260.48-77.44 260.48z"}},{"type":"element","name":"path","attributes":{"d":"M512 0c-282.75199999999995 0-512 229.248-512 512s229.248 512 512 512c282.75199999999995 0 512-229.248 512-512s-229.248-512-512-512zM681.5999999999999 768h-9.6c-0.042666666666666665 0-0.128 0-0.21333333333333332 0-14.250666666666667 0-26.325333333333333-9.301333333333332-30.464-22.186666666666667l-32.04266666666666-105.81333333333333h-192l-33.28 105.6c-4.1386666666666665 13.994666666666667-16.896 24.02133333333333-32 24.02133333333333-18.389333333333333 0-33.32266666666666-14.933333333333332-33.32266666666666-33.32266666666666 0-3.328 0.46933333333333327-6.485333333333333 1.3653333333333333-9.514666666666667l133.07733333333334-429.82399999999996c9.813333333333333-23.552 32.64-39.808 59.263999999999996-39.808 24.917333333333332 0 46.464 14.208 57.04533333333333 34.986666666666665l134.57066666666665 434.304c1.152 3.157333333333333 1.792 6.784 1.792 10.581333333333333 0 14.890666666666664-10.197333333333333 27.434666666666665-23.97866666666667 30.976z"}}]}'),cd=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:M$,name:"treeApplicationShape"}),null)};cd.displayName="treeApplicationShape";cd.inheritAttrs=!1;const R$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M384 896L320 896 320 704 128 704 128 640 384 640 384 896Z"}},{"type":"element","name":"path","attributes":{"d":"M896 640L896 704 704 704 704 896 640 896 640 640 896 640Z"}},{"type":"element","name":"path","attributes":{"d":"M320 128L384 128 384 384 128 384 128 320 320 320 320 128Z"}},{"type":"element","name":"path","attributes":{"d":"M704 320L896 320 896 384 640 384 640 128 704 128 704 320Z"}}]}'),Qh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:R$,name:"unfullScreen"}),null)};Qh.displayName="unfullScreen";Qh.inheritAttrs=!1;const F$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M500.16 304a355.04 355.04 0 0 1 128 24.8l48-48.96a426.08 426.08 0 0 0-176-39.84v64Z"}},{"type":"element","name":"path","attributes":{"d":"M763.2 328.8l-46.08 46.08a822.24 822.24 0 0 1 160 138.88 807.52 807.52 0 0 1-86.88 85.12C723.84 654.24 620.48 720 502.56 720a331.52 331.52 0 0 1-111.04-19.52l-49.44 49.28a402.4 402.4 0 0 0 160 34.24C768 784 960 512 960 512A962.56 962.56 0 0 0 763.2 328.8Z"}},{"type":"element","name":"path","attributes":{"d":"M254.88 701.12l46.08-46.08a706.56 706.56 0 0 1-156.64-144C197.44 442.88 328.16 304 500.16 304V240h0C234.72 240 64 512 64 512A838.72 838.72 0 0 0 254.88 701.12Z"}},{"type":"element","name":"path","attributes":{"d":"M512 640a128 128 0 0 0 110.24-192.96L888 181.28A32 32 0 1 0 842.72 136L576.96 401.76a128 128 0 0 0-176 176L136 842.72a32 32 0 1 0 45.28 45.28L447.04 622.24A128 128 0 0 0 512 640Zm64-128a64 64 0 0 1-64 64 60.96 60.96 0 0 1-16-2.4L573.6 496A60.96 60.96 0 0 1 576 512Zm-64-64a60.96 60.96 0 0 1 16 2.4L450.4 528A60.96 60.96 0 0 1 448 512 64 64 0 0 1 512 448Z"}}]}'),ud=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:F$,name:"unvisible"}),null)};ud.displayName="unvisible";ud.inheritAttrs=!1;const H$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M896 671.3599999999999c0-2.5599999999999996-0.6399999999999999-4.4799999999999995-1.2799999999999998-7.04-0.6399999999999999-1.92-0.6399999999999999-3.84-1.2799999999999998-5.119999999999999s-1.2799999999999998-2.5599999999999996-1.92-3.1999999999999997c-1.2799999999999998-2.5599999999999996-2.5599999999999996-4.4799999999999995-4.4799999999999995-6.3999999999999995 0 0 0 0 0-0.6399999999999999l-356.48-384c-10.239999999999998-11.52-26.88-11.52-37.12 0l-356.48 384c0 0 0 0.6399999999999999 0 0.6399999999999999-1.92 1.92-2.5599999999999996 3.84-3.84 6.3999999999999995-0.6399999999999999 1.2799999999999998-1.92 2.5599999999999996-2.5599999999999996 3.84s-0.6399999999999999 3.1999999999999997-1.2799999999999998 5.119999999999999c-0.6399999999999999 1.2799999999999998-1.2799999999999998 3.84-1.2799999999999998 6.3999999999999995 0 0 0 0.6399999999999999 0 0.6399999999999999 0 1.92 0.6399999999999999 3.1999999999999997 0.6399999999999999 4.4799999999999995 0 2.5599999999999996 0.6399999999999999 4.4799999999999995 1.2799999999999998 7.04s1.92 4.4799999999999995 3.1999999999999997 6.3999999999999995c0.6399999999999999 1.2799999999999998 1.2799999999999998 2.5599999999999996 1.92 3.84 0 0 0 0 0.6399999999999999 0.6399999999999999 1.2799999999999998 1.92 3.1999999999999997 3.1999999999999997 5.119999999999999 4.4799999999999995 1.2799999999999998 0.6399999999999999 2.5599999999999996 1.92 3.84 2.5599999999999996s2.5599999999999996 0.6399999999999999 3.84 1.2799999999999998c1.92 0 3.84 1.2799999999999998 6.3999999999999995 1.2799999999999998 0 0 0.6399999999999999 0 0.6399999999999999 0h712.96c3.84 0 7.68-0.6399999999999999 10.879999999999999-2.5599999999999996 0.6399999999999999 0 0.6399999999999999-0.6399999999999999 1.2799999999999998-0.6399999999999999 3.1999999999999997-1.92 5.76-3.84 8.32-6.3999999999999995 0 0 0 0 0.6399999999999999 0 0.6399999999999999-1.2799999999999998 1.2799999999999998-2.5599999999999996 1.92-3.84 1.2799999999999998-1.92 2.5599999999999996-3.84 3.1999999999999997-6.3999999999999995 0.6399999999999999-1.92 0.6399999999999999-4.4799999999999995 1.2799999999999998-7.04 0-1.92 0.6399999999999999-3.1999999999999997 0.6399999999999999-4.4799999999999995-0.6399999999999999-0.6399999999999999-0.6399999999999999-1.2799999999999998-0.6399999999999999-1.2799999999999998z"}}]}'),e2=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:H$,name:"upShape"}),null)};e2.displayName="upShape";e2.inheritAttrs=!1;const B$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M897.6 422.4c-27.2-27.2-62.4-48-100.8-57.6C768 209.6 619.2 104 462.4 131.2c-120 20.8-212.8 115.2-233.6 233.6C131.2 388.8 64 475.2 64 574.4v9.6C64 704 160 800 278.4 800H320v-64h-41.6C195.2 736 128 668.8 128 585.6v-9.6c0-83.2 67.2-150.4 150.4-150.4H288c0-3.2 0-4.8 0-8l0 0c0-1.6 0-3.2 0-4.8v-1.6c0-1.6 0-3.2 0-4.8 0 0 0 0 0-1.6 0-1.6 0-3.2 0-4.8v-1.6c0-1.6 0-3.2 0-3.2 0-1.6 0-1.6 0-3.2 0 0 0-1.6 0-1.6 1.6-9.6 3.2-20.8 6.4-30.4l0 0c30.4-120 153.6-192 272-161.6 78.4 20.8 140.8 81.6 161.6 161.6l0 0c3.2 9.6 4.8 20.8 4.8 30.4 0 0 0 1.6 0 1.6 0 0 0 1.6 0 3.2 0 1.6 0 3.2 0 3.2V400c0 1.6 0 3.2 0 3.2v1.6c0 1.6 0 3.2 0 4.8v1.6c0 1.6 0 3.2 0 4.8l0 0c0 3.2 0 4.8 0 8h9.6c83.2-1.6 152 65.6 153.6 148.8 0 1.6 0 1.6 0 3.2v9.6c0 83.2-67.2 150.4-150.4 150.4l0 0H704v64h41.6C864 800 960 704 960 585.6v-9.6C960 518.4 937.6 464 897.6 422.4z"}},{"type":"element","name":"path","attributes":{"d":"M376 603.2L420.8 648 480 588.8 480 896 544 896 544 588.8 603.2 648 648 603.2 512 467.2z"}}]}'),$o=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:B$,name:"upload"}),null)};$o.displayName="upload";$o.inheritAttrs=!1;const z$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M664.4363636363636 0C676.8 0 688.5818181818182 4.945454545454554 697.3090909090909 13.67272727272728L697.3090909090909 13.67272727272728 1010.3272727272728 326.69090909090914C1019.0545454545455 335.41818181818184 1024 347.3454545454546 1024 359.70909090909095L1024 359.70909090909095 1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L977.4545454545455 1303.2727272727273 46.54545454545455 1303.2727272727273C20.80000000000002 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 1256.7272727272727 0 46.54545454545455C0 20.799999999999997 20.80000000000002 0 46.54545454545455 0L46.54545454545455 0ZM397.1878772363637 614.0514816000001L397.1878772363637 848.3380922181818C397.1878772363637 912.7669108363636 440.14042298181823 936.1955746909091 494.8073006545455 901.0525835636363L650.9983744 797.5759965090909C703.7128610909091 758.5282280727272 703.7128610909091 699.9565730909092 650.9983744 664.8135819636365L494.8073006545455 561.3369949090909C442.0928139636364 526.1940037818182 397.1878772363637 549.6226676363636 397.1878772363637 614.0514816000001ZM642.9090909090909 107.34545454545456L642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091 642.9090909090909 107.34545454545456Z"}}]}'),dd=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:z$,name:"videoFill"}),null)};dd.displayName="videoFill";dd.inheritAttrs=!1;const U$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM544 704h-64v-64h64V704zM544 576h-64V320h64V576z"}}]}'),Ai=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:U$,name:"warn"}),null)};Ai.displayName="warn";Ai.inheritAttrs=!1;const j$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M603.52 348.8c0 26.496-22.357333333333333 48-49.919999999999995 48s-49.919999999999995-21.503999999999998-49.919999999999995-48c0-26.496 22.357333333333333-48 49.919999999999995-48s49.919999999999995 21.503999999999998 49.919999999999995 48z"}},{"type":"element","name":"path","attributes":{"d":"M357.11999999999995 348.8c0 26.496-22.357333333333333 48-49.919999999999995 48s-49.919999999999995-21.503999999999998-49.919999999999995-48c0-26.496 22.357333333333333-48 49.919999999999995-48s49.919999999999995 21.503999999999998 49.919999999999995 48z"}},{"type":"element","name":"path","attributes":{"d":"M693.12 604.16c0 15.914666666666665-13.184 28.8-29.439999999999998 28.8s-29.439999999999998-12.885333333333332-29.439999999999998-28.8c0-15.914666666666665 13.184-28.8 29.439999999999998-28.8s29.439999999999998 12.885333333333332 29.439999999999998 28.8z"}},{"type":"element","name":"path","attributes":{"d":"M951.68 832c43.775999999999996-42.410666666666664 71.29599999999999-101.41866666666665 72.32-166.86933333333332-4.608-109.696-77.35466666666666-201.0453333333333-176.72533333333334-233.30133333333333 5.674666666666667-12.117333333333331 10.154666666666666-26.282666666666664 10.154666666666666-41.471999999999994 0-4.522666666666666-0.38399999999999995-8.959999999999999-1.152-13.226666666666667-33.834666666666664-181.29066666666665-212.39466666666664-313.1306666666667-425.5146666666667-313.1306666666667-238.71999999999997 0-430.72 167.04-430.72 372.48 1.2799999999999998 107.56266666666666 50.56 203.30666666666664 127.40266666666668 267.05066666666664l-16.682666666666666 55.50933333333333c-2.1759999999999997 6.784-3.456 14.634666666666668-3.456 22.741333333333333 0 42.410666666666664 34.38933333333333 76.8 76.8 76.8 12.458666666666666 0 24.191999999999997-2.944 34.602666666666664-8.234666666666666l101.33333333333333-52.906666666666666c32.81066666666666 7.722666666666666 70.52799999999999 12.159999999999998 109.22666666666666 12.159999999999998 0.08533333333333333 0 0.17066666666666666 0 0.21333333333333332 0h28.16c13.098666666666666-0.7679999999999999 25.130666666666663-4.693333333333333 35.54133333333333-11.050666666666666 54.22933333333333 73.55733333333333 140.672 120.53333333333333 238.07999999999998 120.53333333333333 1.664 0 3.3706666666666667 0 5.034666666666666-0.042666666666666665 21.077333333333332-0.08533333333333333 41.855999999999995-2.1759999999999997 61.99466666666667-6.101333333333333l49.10933333333333 26.581333333333333c9.941333333333333 5.034666666666666 21.717333333333332 8.021333333333333 34.176 8.021333333333333 42.410666666666664 0 76.8-34.38933333333333 76.8-76.8 0-8.106666666666666-1.2799999999999998-15.957333333333333-3.584-23.296zM430.72 752.64c-0.17066666666666666 0-0.38399999999999995 0-0.5973333333333333 0-40.831999999999994 0-80.29866666666666-5.8453333333333335-117.58933333333331-16.72533333333333l-3.456 0.7253333333333334-131.2 67.19999999999999 35.199999999999996-113.27999999999999h-3.1999999999999997c-86.10133333333332-52.05333333333333-143.40266666666668-144.17066666666665-145.92-249.89866666666666 0-172.50133333333332 165.76-312.66133333333335 366.72-312.66133333333335 5.717333333333333-0.3413333333333333 12.415999999999999-0.512 19.157333333333334-0.512 163.32799999999997 0 300.58666666666664 111.40266666666668 340.0106666666667 262.4l-14.805333333333332 2.432c-183.04 0-327.03999999999996 112-327.03999999999996 285.44 0.512 26.709333333333333 5.1626666666666665 52.181333333333335 13.312 75.98933333333332zM872.96 812.8v0l21.759999999999998 67.84-81.28-40.959999999999994h-3.84c-21.119999999999997 6.101333333333333-45.397333333333336 9.6-70.48533333333333 9.6-0.17066666666666666 0-0.38399999999999995 0-0.5546666666666666 0-5.888 0.5973333333333333-12.757333333333332 0.9386666666666665-19.712 0.9386666666666665-107.09333333333332 0-195.2853333333333-80.93866666666666-206.71999999999997-184.95999999999998 10.367999999999999-106.96533333333333 99.072-189.1413333333333 206.976-189.1413333333333 5.973333333333334 0 11.861333333333334 0.256 17.706666666666663 0.7253333333333334 4.309333333333333-0.512 10.197333333333333-0.7253333333333334 16.170666666666666-0.7253333333333334 107.904 0 196.60799999999998 82.17599999999999 206.976 187.34933333333333-1.7066666666666666 63.82933333333333-35.79733333333333 118.44266666666665-86.18666666666667 148.90666666666667z"}},{"type":"element","name":"path","attributes":{"d":"M839.68 604.16c0 15.914666666666665-13.184 28.8-29.439999999999998 28.8s-29.439999999999998-12.885333333333332-29.439999999999998-28.8c0-15.914666666666665 13.184-28.8 29.439999999999998-28.8s29.439999999999998 12.885333333333332 29.439999999999998 28.8z"}}]}'),t2=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:j$,name:"weixin"}),null)};t2.displayName="weixin";t2.inheritAttrs=!1;const W$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M938.7497408 751.2461728C920.8062784 754.82336 903.6971584 761.7483104 888.3171424 771.6588704 873.2444672 787.4767936 854.2148288 798.974768 833.2014368 804.9605504 836.0031424 786.1484224 845.3295104 768.9776576 859.4186848 756.288864 871.2167136 738.281152 879.7148672 718.3169824 884.5154368 697.3306592 884.4496448 667.4985536 908.5720768 643.2573504 938.404144 643.1764192 968.2362112 643.0958944 992.489488 667.2061888 992.5854336 697.0382144 992.6808128 726.8702368 968.5826592 751.1355776 938.750688 751.2461728L938.7497408 751.2461728ZM839.887392 621.8411552C821.9636704 609.9596288 802.0664544 601.3664832 781.1284256 596.4645152 751.2856864 596.4645152 727.0933632 572.2721952 727.0933632 542.429456 727.0933632 512.5867168 751.2856864 488.3943936 781.1284256 488.3943936 810.9711648 488.3943936 835.1634848 512.5867168 835.1634848 542.429456 838.6847584 560.4011296 845.5262144 577.5586592 855.3370944 593.0223936 871.0537888 608.2166208 882.4379744 627.3243168 888.3180928 648.3790848 869.6373984 645.3981472 852.5734656 636.017312 840.046784 621.8421056L839.8475424 621.8421056 839.887392 621.8411552ZM750.8684864 431.3972864C734.5781792 294.94863136 593.2860736 188.03885088 422.3355456 188.03885088 240.21615008 188.03885088 92.03979968 309.2379936 92.03979936 458.2948 94.95593632 541.9888 139.14855232 618.8011392 210.0368576 663.38856 221.5372432 671.8631712 233.5698912 679.5906336 246.06054752 686.5232672L231.41160288 745.0013984C236.6943312 747.4833696 241.81766656 750.1247328 247.220888 752.4065152L321.18952 715.4226752C331.9959616 718.2243776 343.3640736 720.025136 354.650592 721.9463872 361.85552 723.2272224 369.060448 724.547904 376.4655648 725.4283584 422.593232 731.2438688 469.3960992 728.5578336 514.5555872 717.5033184 515.9529792 737.516592 519.6048064 757.3082016 525.4417248 776.50232 491.6425696 784.4255424 457.0499232 788.4674784 422.3345984 788.5497504 391.1907104 788.3740096 360.1499136 784.9532608 329.7151296 778.3429248L195.50556 845.347616C185.07039904 850.6853344 172.46917184 849.3674432 163.36421984 841.9861376 154.22346368 834.663392 150.17630784 822.6930592 152.99800448 811.3258208L177.01316512 714.622864C89.00876864 658.6573248 34.6398832 562.5538336 32 458.2948 32 275.85661632 206.75317888 128 422.3345984 128 627.0270304 128 794.6568768 261.44676096 810.9870336 431.077552 801.5855328 429.6306336 792.1123872 428.6953568 782.6094496 428.2758464 772.0022464 428.6762272 761.3950432 429.6762272 750.8675392 431.35744L750.8684864 431.3972864ZM626.1873728 644.4559392C644.1598464 640.8534752 661.250912 633.9692288 676.6209184 624.0432416 691.71416 608.248368 710.757408 596.778 731.7764736 590.8212576 728.9118528 609.5693568 719.631904 626.7430496 705.5193792 639.413248 693.7119872 657.4246176 685.2262272 677.4378848 680.4235744 698.4113024 680.4673568 728.2381472 656.3353184 752.4593408 626.5085184 752.5256864 596.6817152 752.59176 572.442384 728.4779392 572.353504 698.6511968 572.2651136 668.8244512 596.360704 644.5669952 626.1873728 644.4559392L626.1873728 644.4559392ZM723.5307488 774.460576C741.3827264 786.4283072 761.2356512 795.0744128 782.1293728 800.0772544 803.9845152 800.0772544 823.6876576 813.2424736 832.0512608 833.4339936 840.4148608 853.6255104 835.7918496 876.8669536 820.3379296 892.3208736 804.8840128 907.7747904 781.6425696 912.3978016 761.4510496 904.0342016 741.2595328 895.6706016 728.0943136 875.967456 728.0943136 854.1123136 724.6504032 836.118624 717.8619424 818.9305632 708.0810464 803.43968 692.4234336 788.1759744 681.1209152 769.0118048 675.339136 747.9235968 694.0371744 751.0004768 711.0783168 760.4976768 723.5307488 774.7812608L723.5307488 774.460576Z"}}]}'),n2=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:W$,name:"weixinPro"}),null)};n2.displayName="weixinPro";n2.inheritAttrs=!1;const G$=Object.freeze(Object.defineProperty({__proto__:null,AngleDoubleDownLine:Pu,AngleDoubleLeft:mi,AngleDoubleLeftLine:Th,AngleDoubleRight:gi,AngleDoubleRightLine:Eh,AngleDoubleUpLine:Mu,AngleDown:Ti,AngleDownFill:Ru,AngleDownLine:Oh,AngleLeft:lr,AngleRight:Dn,AngleUp:Ei,AngleUpFill:Xo,ArchiveFill:Fu,ArrowsLeft:Hu,ArrowsRight:Bu,Assistant:zu,AudioFill:Uu,Bk:Lh,Circle:qo,Close:bn,CloseLine:Jo,Code:Ah,CogShape:ju,CollapseLeft:Wu,Copy:Vh,CopyShape:Gu,DataShape:$h,Del:pi,DocFill:Dh,Done:ps,DownShape:Zo,DownSmall:Ao,EditLine:Ku,Ellipsis:Vo,EnlargeLine:Ih,Error:an,ExcelFill:kh,ExclamationCircleShape:Qo,Eye:Yu,FilliscreenLine:Ph,FixLine:Xu,FixShape:qu,Folder:Ju,FolderOpen:Mh,FolderShape:Rh,FolderShapeOpen:Zu,Funnel:Qu,GragFill:ed,Help:Fh,HelpDocumentFill:Hh,HelpFill:Bh,ImageFill:td,ImgError:zh,ImgPlacehoulder:Uh,Info:el,InfoLine:nd,LeftShape:jh,LeftTurnLine:Wh,Loading:rd,NarrowLine:Gh,Original:Kh,PdfFill:Yh,PlayShape:Xh,Plus:tl,PptFill:qh,Qq:Jh,RightShape:nl,RightTurnLine:ad,Search:vs,Share:Zh,Spinner:Oi,Success:Li,SwitcherLoading:sd,TextAll:id,TextFile:od,TextFill:ei,Transfer:ld,TreeApplicationShape:cd,UnfullScreen:Qh,Unvisible:ud,UpShape:e2,Upload:$o,VideoFill:dd,Warn:Ai,Weixin:t2,WeixinPro:n2},Symbol.toStringTag,{value:"Module"})),K$=a.defineComponent({name:"Alert",props:{theme:Tu().def(Sg.INFO),title:v.string,closable:v.bool.def(!1),closeText:v.string,showIcon:v.bool.def(!0)},emits:{close:e=>e},setup(e,t){const n=a.reactive({visible:!0});return{state:n,handleClose:s=>{n.visible=!1,t.emit("close",s)}}},render(){var o,c,u,d;if(!this.state.visible)return null;const{resolveClassName:e}=xe(),t=!!this.closeText,n=ze({[e("alert-close")]:!0,"close-text":t,[e("alert-close-icon")]:!t}),r=ze({[e("alert")]:!0,[e(`alert-${this.theme}`)]:!0}),s=a.createVNode(nd,{class:e("alert-icon-info")},null);return a.createVNode("div",{class:r},[a.createVNode("div",{class:e("alert-wraper")},[this.showIcon&&(((c=(o=this.$slots).icon)==null?void 0:c.call(o))??s),a.createVNode("div",{class:e("alert-content")},[a.createVNode("div",{class:e("alert-title")},[this.$slots.title?this.$slots.title():this.title]),a.createVNode("div",{class:e("alert-description")},[(d=(u=this.$slots).default)==null?void 0:d.call(u)])]),this.closable&&a.createVNode("span",{class:n,onClick:this.handleClose},[this.closeText?this.closeText:a.createVNode(Jo,null,null)])])])}}),Jg=Qe(K$),Y$=a.defineComponent({name:"AnimateNumber",props:{value:v.number.def(0),digits:v.number.def(0)},setup(e){let t=-1;const n=a.ref(0),r=a.computed(()=>Number(n.value).toFixed(e.digits)),s=(o,c)=>{if(Number.isNaN(+c))return 0;const u=Math.abs(c-o),d=c-o>0?1:-1,h=Math.ceil(u/30*10**e.digits)/10**e.digits,m=25/Math.ceil(u/h);let p=1;const y=()=>{if(p<m){t=requestAnimationFrame(y),p=p+1;return}n.value+=h*d,(d===1?n.value<c:n.value>c)?(t=requestAnimationFrame(y),p=1):n.value=c};y()};return a.watch(()=>e.value,(o,c)=>{s(c,o)}),a.onMounted(()=>{s(0,e.value)}),a.onBeforeUnmount(()=>{cancelAnimationFrame(t)}),()=>a.createVNode("span",null,[r.value])}}),Zg=Qe(Y$),X$=a.defineComponent({name:"Backtop",props:{visibilityHeight:v.number.def(200),target:v.string.def(""),right:v.number.def(40),bottom:v.number.def(40),extCls:v.string.def("")},setup(e,{slots:t}){const n=a.ref(null),r=a.ref(null),s=a.ref(!1),o=a.ref(ea.getModalNextIndex()),c=`${e.bottom}px`,u=`${e.right}px`,d=Nu(()=>{s.value=r.value.scrollTop>=e.visibilityHeight},30),h=()=>{r.value.scrollTo({top:0,behavior:"smooth"})};a.watch(()=>s,()=>{o.value=ea.getModalNextIndex()}),a.onMounted(()=>{if(n.value=document,r.value=document.documentElement,e.target){if(r.value=document.querySelector(e.target),!r.value)throw new Error("target does not exist");n.value=r.value}n.value.addEventListener("scroll",d)}),a.onBeforeUnmount(()=>{n.value.removeEventListener("scroll",d)});const{resolveClassName:f}=xe();return()=>a.createVNode(a.Transition,{name:"bk-fade"},{default:()=>{var m;return[s.value?a.createVNode("div",{style:{right:u,bottom:c,zIndex:o.value},class:`${f("backtop")} ${e.extCls}`,onClick:h},[((m=t.default)==null?void 0:m.call(t))??a.createVNode(Ei,{class:`${f("backtop-icon")}`},null)]):""]}})}}),Qg=Qe(X$),q$=a.defineComponent({name:"Badge",props:{theme:v.string.def("primary"),count:v.oneOfType([String,Number]).def(1),position:v.string.def("top-right"),radius:v.string,valLength:v.number.def(3),overflowCount:v.number.def(99),dot:v.bool.def(!1),visible:v.bool.def(!1),extCls:v.string},emits:["hover","leave"],setup(e,{emit:t}){const n=a.computed(()=>{if(typeof e.count=="string"){let u=e.count;u+="";const d=[];let h=0;return u.split("").forEach(f=>{h<Number(e.valLength)&&(h+=/[\u4e00-\u9fa5]/.test(f)?2:1,d.push(f))}),d.join("")}return e.count>e.overflowCount?`${e.overflowCount}+`:e.count}),r=a.computed(()=>({borderRadius:e.radius!==void 0&&/^\d+(%|px|em|rem|vh|vw)?$/.test(e.radius)&&/^\d+$/.test(e.radius)&&`${e.radius}px`||e.radius})),s=()=>{t("hover")},o=()=>{t("leave")},{resolveClassName:c}=xe();return{numberCount:n,handleHover:s,handleLeave:o,radiusStyle:r,resolveClassName:c}},render(){var r,s,o,c;const e=ze({[`${this.resolveClassName("badge-main")}`]:!0},this.$props.extCls),t=ze({[`${this.resolveClassName("badge")} ${this.resolveClassName(this.$props.theme)}`]:!!this.$props.theme,"pinned ":this.$slots.default,dot:this.$props.dot,[`${this.$props.position}`]:this.$slots.default,[`${this.resolveClassName("badge-icon")} is-icon`]:this.$slots.icon},""),n=this.$props.dot?"":a.createVNode("span",null,[this.numberCount]);return a.createVNode("div",{class:e},[((s=(r=this.$slots).default)==null?void 0:s.call(r))??"",this.$props.visible?"":a.createVNode("span",{style:this.radiusStyle,class:t,onMouseenter:this.handleHover,onMouseleave:this.handleLeave},[((c=(o=this.$slots).icon)==null?void 0:c.call(o))??n])])}}),ep=Qe(q$),J$={extCls:v.string,separator:v.string.def("/"),separatorClass:v.string,replace:v.bool,backRouter:v.oneOfType([v.string,v.object]).def("")},Z$=a.defineComponent({name:"Breadcrumb",props:J$,setup(e,{slots:t}){const{resolveClassName:n}=xe(),{proxy:r,appContext:s}=a.getCurrentInstance();a.provide("breadcrumb",e),a.onMounted(()=>{const u=r.$el.querySelectorAll(n("breadcrumb-item"));u.length&&u[u.length-1].setAttribute("aria-current","page")});const o=ze({[n("breadcrumb")]:!0},`${e.extCls||""}`),c=()=>{const{backRouter:u,replace:d}=e,{$router:h}=s.config.globalProperties;h&&(d?h.replace(u):h.push(u))};return()=>{var u;return a.createVNode("div",{class:o,"aria-label":"Breadcrumb",role:"navigation"},[!t.prefix&&e.backRouter?a.createVNode("div",{class:n("breadcrumb-goback")},[a.createVNode(Hu,{onClick:c},null)]):"",t.prefix?a.createVNode("div",{class:n("breadcrumb-goback")},[t.prefix()]):"",(u=t.default)==null?void 0:u.call(t)])}}}),Q$={extCls:v.string,to:v.oneOfType([v.string,v.object]).def(""),replace:v.bool};let tp=function(e){return e.CLICK="click",e}({});function eD(e){return e}const tD={[tp.CLICK]:eD},nD=a.defineComponent({name:"BreadcrumbItem",props:Q$,emits:tD,setup(e,{emit:t,slots:n}){const{resolveClassName:r}=xe(),{appContext:s}=a.getCurrentInstance(),o=a.inject("breadcrumb"),c=s.config.globalProperties.$router,u=f=>{t(tp.CLICK,f);const{to:m,replace:p}=e;!m||!c||(p?c.replace(m):c.push(m))},d=ze({[r("breadcrumb-item")]:!0},`${e.extCls||""}`),h=()=>n.separator?n.separator():o.separatorClass?a.createVNode("i",{class:`${r("breadcrumb-separator")} ${o.separatorClass}`},null):o.separator?a.createVNode("span",{class:r("breadcrumb-separator"),role:"presentation"},[o==null?void 0:o.separator]):null;return()=>{var f;return a.createVNode("span",{class:d},[a.createVNode("span",{ref:"link",class:`${r("breadcrumb-item-inner")} ${e.to?"is-link":""}`,role:"link",onClick:u},[(f=n.default)==null?void 0:f.call(n)]),h()])}}}),np=on(Z$,{Item:nD});let r2=function(e){return e.Default="default",e.Spin="spin",e}({}),os=function(e){return e.Large="large",e.Mini="mini",e.Normal="",e.Small="small",e}({}),C0;function rD(e){C0=typeof e=="function"?e:()=>a.createVNode(e,null,null)}const aD={indicator:{type:Function},loading:v.bool.def(!0),inline:v.bool.def(!0),theme:{type:String},title:v.string.def(""),size:{type:String,default:os.Normal},mode:{type:String,default:"default"},opacity:v.number.def(.9),color:v.string.def("white"),zIndex:v.number.def(1),isDirective:v.bool.def(!1)},rp=a.defineComponent({name:"Loading",props:aD,setup(e,t){const{resolveClassName:n}=xe(),r=a.createVNode("div",{class:`${n("normal-indicator")}`},[[1,2,3,4].map(m=>a.createVNode("span",{class:`dot dot-${m}`},null))]),s=a.createVNode("div",{class:`${n("spin-indicator")}`},[[1,2,3,4,5,6,7,8].map(m=>a.createVNode("span",{class:`oval oval-${m}`},null))]),o=a.computed(()=>({zIndex:e.zIndex})),c=a.computed(()=>({opacity:e.opacity,backgroundColor:e.color,...o.value})),u=a.computed(()=>ze({[`${n("loading-wrapper")}`]:e.loading,[`${n("nested-loading")}`]:!!t.slots.default,[`${n("directive-loading")}`]:e.isDirective})),d=a.computed(()=>ze({[`${n(`loading-size-${e.size}`)}`]:!!e.size,[`${n(`loading-${e.theme}`)}`]:!!e.theme},n("loading-indicator"))),h=a.computed(()=>!!e.title),f=a.computed(()=>{const m=e.mode===r2.Spin;return typeof e.indicator=="function"?a.createVNode(e.indicator,null,null):typeof C0=="function"?a.createVNode(C0,null,null):m?s:r});return()=>{var m,p;return a.createVNode("div",{class:u.value},[(p=(m=t.slots).default)==null?void 0:p.call(m),e.loading&&[(t.slots.default||e.isDirective)&&a.createVNode("div",{style:c.value,class:`${n("loading-mask")}`},null),a.createVNode("div",{style:o.value,class:d.value},[f.value,h.value&&a.createVNode("div",{class:`${n("loading-title")}`},[e.title])])]])}}}),Ec=Symbol("vBkLoading"),sD=(e,t)=>{const n=c=>{var u;return((u=t.value)==null?void 0:u[c])??void 0},r=a.reactive({indicator:n("indicator"),loading:n("loading")??!1,inline:n("inline")??!1,theme:n("theme"),title:n("title")??"",size:n("size")??"",mode:n("mode"),opacity:n("opacity"),color:n("color")??"white",zIndex:n("zIndex"),isDirective:!0}),s=document.createElement("div");Object.assign(s.style,{position:"absolute",left:0,right:0,top:0,bottom:0}),Object.assign(e.style,{position:"relative"});const o=a.createApp({render:()=>a.h(rp,r)});e[Ec]={options:r,instance:o,vm:o.mount(s)},e.appendChild(s)},iD=(e,t)=>{Object.keys(e).forEach(n=>{e[n]!==t[n]&&(t[n]=e[n])})},oD={mounted(e,t){t.value&&sD(e,t)},updated(e,t){var s,o,c;const n=e[Ec],{value:r}=t;iD(r,n.options),(c=(o=(s=n==null?void 0:n.vm)==null?void 0:s.$el)==null?void 0:o.parentNode)!=null&&c.style&&(n.vm.$el.parentNode.style.display=r.loading?"":"none")},unmounted(e){var n,r,s;const t=e[Ec];e==null||e.removeChild((r=(n=t==null?void 0:t.vm)==null?void 0:n.$el)==null?void 0:r.parentNode),(s=t==null?void 0:t.instance)==null||s.unmount(),e[Ec]=null}},La=on(rp,{setDefaultIndicator:rD,BkLoadingMode:r2,BkLoadingSize:os},!0,{name:"loading",directive:oD}),ap=["","small","large"],lD={theme:v.theme(),hoverTheme:v.theme(),size:{type:String,default:ap[0]},title:v.string,icon:v.string,iconRight:v.string,disabled:v.bool,loading:v.bool,loadingMode:{type:String,default:"default"},outline:v.bool,text:v.bool,selected:v.bool,nativeType:{type:String,default:"button"}},cD=a.defineComponent({name:"Button",props:lD,emits:["click","mouseover"],setup(e,{slots:t,emit:n}){const r=a.ref(!1),s=t.default??!1,{resolveClassName:o}=xe(),c=o("button"),u=a.computed(()=>e.text&&!e.hoverTheme),d=a.computed(()=>{const b=e.hoverTheme?`${c}-hover-${e.hoverTheme}`:"",N=e.theme?`${c}-${e.theme}`:"",w=e.hoverTheme?"":N;return ze({"is-disabled":e.disabled,"is-outline":e.outline,"is-text":u.value,"is-loading":e.loading,"is-selected":e.selected,[`${c}-${e.size}`]:e.size&&ap.includes(e.size),"no-slot":!s},`${w} ${c} ${b}`)}),h=a.computed(()=>e.text||e.outline||e.hoverTheme?r.value&&!e.text?"white":e.text&&e.disabled?void 0:e.hoverTheme||e.theme:e.theme?"white":void 0),f=a.computed(()=>u.value||e.size===os.Small?os.Mini:os.Small),m=b=>{e.loading||n("click",b)},p=b=>{r.value=!0,n("mouseover",b)},y=()=>{r.value=!1};return()=>{var b;return a.createVNode("button",{class:d.value,disabled:e.disabled,title:e.title,type:e.nativeType,onClick:m,onMouseleave:y,onMouseover:p},[e.loading&&a.createVNode(La,a.mergeProps({class:`${c}-loading`,mode:e.loadingMode,size:f.value,loading:!0},h.value?{theme:h.value}:{}),null),t.default&&a.createVNode("span",{class:`${c}-text`},[(b=t.default)==null?void 0:b.call(t)])])}}}),uD=a.defineComponent({name:"ButtonGroup",props:{size:v.size()},setup(e,t){const{resolveClassName:n}=xe(),r=a.computed(()=>ze({[`${n(`button-group-${e.size}`)}`]:!!e.size},`${n("button-group")}`));return()=>{var s,o;return a.createVNode("div",{class:r.value},[(o=(s=t.slots).default)==null?void 0:o.call(s)])}}}),Ht=on(cD,{ButtonGroup:uD}),dD=a.defineComponent({name:"CollapseTransition",setup(e,{slots:t}){const n={onBeforeEnter(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.style.maxHeight="0",s.style.paddingTop="0",s.style.paddingBottom="0"},onEnter(s){s.dataset.oldOverflow=s.style.overflow,s.scrollHeight!==0?(s.style.maxHeight=`${s.scrollHeight}px`,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom):(s.style.maxHeight="0",s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom),s.style.overflow="hidden"},onAfterEnter(s){s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow},onBeforeLeave(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.dataset.oldOverflow=s.style.overflow,s.style.maxHeight=`${s.scrollHeight}px`,s.style.overflow="hidden"},onLeave(s){s.scrollHeight!==0&&(s.style.maxHeight="0",s.style.paddingTop="0",s.style.paddingBottom="0")},onAfterLeave(s){s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom}},{resolveClassName:r}=xe();return{on:n,slots:t,resolveClassName:r}},render(){const e=this.resolveClassName("collapse-transition");return a.createVNode(a.Transition,a.mergeProps({name:e},this.on),{default:()=>[this.slots.default?this.slots.default():null]})}}),sp=Qe(dD),fD=e=>typeof Element>"u"?!1:e instanceof Element,Na=new Map;let ip;document.addEventListener("mousedown",e=>ip=e);document.addEventListener("mouseup",e=>{for(const t of Na.values())for(const{documentHandler:n}of t)n(e,ip)});function V6(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:fD(t.arg)&&n.push(t.arg),function(r,s){const{popperRef:o}=t.instance,c=r.target,u=s==null?void 0:s.target,d=!t||!t.instance,h=!c||!u,f=e.contains(c)||e.contains(u),m=e===c,p=n.length&&n.some(b=>b==null?void 0:b.contains(c))||n.length&&n.includes(u),y=o&&(o.contains(c)||o.contains(u));d||h||f||m||p||y||t.value(r,s)}}const kr={beforeMount(e,t){Na.has(e)||Na.set(e,[]),Na.get(e).push({documentHandler:V6(e,t),bindingFn:t.value})},updated(e,t){Na.has(e)||Na.set(e,[]);const n=Na.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),s={documentHandler:V6(e,t),bindingFn:t.value};r>=0?n.splice(r,1,s):n.push(s)},unmounted(e){Na.delete(e)}};kr.install=e=>{e.directive("bkTooltips",kr)};const $6=a.defineComponent({name:"PopArrow",render(){const{resolveClassName:e}=xe(),t=e("pop2-arrow");return a.createVNode("div",{class:t},null)}});let xr=function(e){return e.CLICK_OUTSIDE="clickoutside",e.CONTENT_AfterHidden="afterHidden",e.CONTENT_AfterShow="afterShow",e.CONTENT_MOUSEENTER="contentMouseenter",e.CONTENT_MOUSELEAVE="contentMouseleave",e}({});const D6=e=>!0,I6=e=>e,hD=e=>!0,mD={[xr.CLICK_OUTSIDE]:hD,[xr.CONTENT_MOUSEENTER]:I6,[xr.CONTENT_MOUSELEAVE]:I6,[xr.CONTENT_AfterHidden]:D6,[xr.CONTENT_AfterShow]:D6},k6=a.defineComponent({name:"PopContent",props:{width:v.oneOfType([v.string,v.number]).def("auto"),height:v.oneOfType([v.string,v.number]).def("auto"),maxHeight:v.oneOfType([v.string,v.number]).def("auto"),maxWidth:v.oneOfType([v.string,v.number]).def("auto"),extCls:v.string.def(""),visible:v.bool.def(!1),eventDelay:v.number.def(0)},setup(e){const t=h=>/^\d+\.?\d*$/.test(`${h}`)?`${h}px`:h,n=a.computed(()=>({width:t(e.width),height:t(e.height),maxHeight:t(e.maxHeight),maxWidth:t(e.maxWidth)})),r=a.ref(null),s=a.ref(null),o=()=>{e.eventDelay!==0&&(s.value&&clearTimeout(s.value),s.value=setTimeout(()=>{c("unset")},e.eventDelay??300))},c=h=>{var f;e.eventDelay!==0&&((f=r.value)==null||f.style.setProperty("pointer-events",h))},{resolveClassName:u}=xe(),d=a.computed(()=>[u("popover"),u("pop2-content"),e.visible?"visible":"hidden",e.extCls]);return{style:n,refContent:r,contentClassName:d,resetPointerEvent:o,setContentPointerEvent:c}},render(){var n,r,s,o,c,u;const t=(d=>{var h;return a.Fragment===((h=d==null?void 0:d[0])==null?void 0:h.type)&&a.nextTick(()=>{this.setContentPointerEvent("none"),this.resetPointerEvent()}),this.style})((r=(n=this.$slots).default)==null?void 0:r.call(n));return a.createVNode("div",{ref:"refContent",style:t,class:this.contentClassName},[((o=(s=this.$slots).arrow)==null?void 0:o.call(s))??"",((u=(c=this.$slots).default)==null?void 0:u.call(c))??""])}}),op={isShow:v.bool.def(!1),always:v.bool.def(!1),disabled:v.bool.def(!1),width:v.oneOfType([v.string,v.number]).def("auto"),height:v.oneOfType([v.string,v.number]).def("auto"),maxWidth:v.oneOfType([v.string,v.number]).def("auto"),maxHeight:v.oneOfType([v.string,v.number]).def("auto"),content:Pe("IContent",{}).def(""),target:v.oneOfType([v.string,v.instanceOf(HTMLElement),v.instanceOf(PointerEvent)]),allowHtml:v.bool.def(!1),placement:gh().def(Lo.TOP_START),theme:v.string.def("dark"),trigger:Ng(),renderType:Z_(),arrow:v.bool.def(!0),padding:v.number.def(5),offset:v.oneOfType([v.number,v.shape({mainAxis:v.number,crossAxis:v.number,alignmentAxis:v.number})]).def(6),boundary:v.oneOfType([v.string.def("parent"),v.instanceOf(HTMLElement)]),zIndex:v.number.def(void 0),disableTeleport:v.bool.def(!1),autoPlacement:v.bool.def(!1),autoVisibility:v.bool.def(!0),disableOutsideClick:v.bool.def(!1),disableTransform:v.bool.def(!1),reference:v.any,modifiers:v.array.def([]),popoverDelay:v.oneOfType([v.number,v.arrayOf(v.number)]).def(100),extCls:v.string.def(""),componentEventDelay:v.number.def(0),forceClickoutside:v.bool.def(!1)},gD=a.defineComponent({name:"PopReference",render(){var e,t;return((t=(e=this.$slots).default)==null?void 0:t.call(e))??""}}),P6=a.defineComponent({props:{class:v.string.def(""),mode:v.string.def("")},render(){var e,t;return a.createVNode(a.Fragment,null,[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),lp=["top","right","bottom","left"],M6=["start","end"],R6=lp.reduce((e,t)=>e.concat(t,t+"-"+M6[0],t+"-"+M6[1]),[]),ta=Math.min,$r=Math.max,Yc=Math.round,lc=Math.floor,Aa=e=>({x:e,y:e}),pD={left:"right",right:"left",bottom:"top",top:"bottom"},vD={start:"end",end:"start"};function N0(e,t,n){return $r(e,ta(t,n))}function Ia(e,t){return typeof e=="function"?e(t):e}function cr(e){return e.split("-")[0]}function Dr(e){return e.split("-")[1]}function cp(e){return e==="x"?"y":"x"}function a2(e){return e==="y"?"height":"width"}function rl(e){return["top","bottom"].includes(cr(e))?"y":"x"}function s2(e){return cp(rl(e))}function up(e,t,n){n===void 0&&(n=!1);const r=Dr(e),s=s2(e),o=a2(s);let c=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(c=qc(c)),[c,qc(c)]}function yD(e){const t=qc(e);return[Xc(e),t,Xc(t)]}function Xc(e){return e.replace(/start|end/g,t=>vD[t])}function bD(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:c;default:return[]}}function wD(e,t,n,r){const s=Dr(e);let o=bD(cr(e),n==="start",r);return s&&(o=o.map(c=>c+"-"+s),t&&(o=o.concat(o.map(Xc)))),o}function qc(e){return e.replace(/left|right|bottom|top/g,t=>pD[t])}function CD(e){return{top:0,right:0,bottom:0,left:0,...e}}function i2(e){return typeof e!="number"?CD(e):{top:e,right:e,bottom:e,left:e}}function vi(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function F6(e,t,n){let{reference:r,floating:s}=e;const o=rl(t),c=s2(t),u=a2(c),d=cr(t),h=o==="y",f=r.x+r.width/2-s.width/2,m=r.y+r.height/2-s.height/2,p=r[u]/2-s[u]/2;let y;switch(d){case"top":y={x:f,y:r.y-s.height};break;case"bottom":y={x:f,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-s.width,y:m};break;default:y={x:r.x,y:r.y}}switch(Dr(t)){case"start":y[c]-=p*(n&&h?-1:1);break;case"end":y[c]+=p*(n&&h?-1:1);break}return y}const ND=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:c}=n,u=o.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:s}),{x:f,y:m}=F6(h,r,d),p=r,y={},b=0;for(let N=0;N<u.length;N++){const{name:w,fn:C}=u[N],{x:E,y:_,data:x,reset:O}=await C({x:f,y:m,initialPlacement:r,placement:p,strategy:s,middlewareData:y,rects:h,platform:c,elements:{reference:e,floating:t}});f=E??f,m=_??m,y={...y,[w]:{...y[w],...x}},O&&b<=50&&(b++,typeof O=="object"&&(O.placement&&(p=O.placement),O.rects&&(h=O.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:s}):O.rects),{x:f,y:m}=F6(h,p,d)),N=-1)}return{x:f,y:m,placement:p,strategy:s,middlewareData:y}};async function Do(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:c,elements:u,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=Ia(t,e),b=i2(y),w=u[p?m==="floating"?"reference":"floating":m],C=vi(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:h,rootBoundary:f,strategy:d})),E=m==="floating"?{...c.floating,x:r,y:s}:c.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),x=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{x:1,y:1},O=vi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:E,offsetParent:_,strategy:d}):E);return{top:(C.top-O.top+b.top)/x.y,bottom:(O.bottom-C.bottom+b.bottom)/x.y,left:(C.left-O.left+b.left)/x.x,right:(O.right-C.right+b.right)/x.x}}const xD=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:c,elements:u,middlewareData:d}=t,{element:h,padding:f=0}=Ia(e,t)||{};if(h==null)return{};const m=i2(f),p={x:n,y:r},y=s2(s),b=a2(y),N=await c.getDimensions(h),w=y==="y",C=w?"top":"left",E=w?"bottom":"right",_=w?"clientHeight":"clientWidth",x=o.reference[b]+o.reference[y]-p[y]-o.floating[b],O=p[y]-o.reference[y],T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let $=T?T[_]:0;(!$||!await(c.isElement==null?void 0:c.isElement(T)))&&($=u.floating[_]||o.floating[b]);const L=x/2-O/2,P=$/2-N[b]/2-1,I=ta(m[C],P),A=ta(m[E],P),D=I,X=$-N[b]-A,M=$/2-N[b]/2+L,W=N0(D,M,X),ne=!d.arrow&&Dr(s)!=null&&M!==W&&o.reference[b]/2-(M<D?I:A)-N[b]/2<0,B=ne?M<D?M-D:M-X:0;return{[y]:p[y]+B,data:{[y]:W,centerOffset:M-W-B,...ne&&{alignmentOffset:B}},reset:ne}}});function _D(e,t,n){return(e?[...n.filter(s=>Dr(s)===e),...n.filter(s=>Dr(s)!==e)]:n.filter(s=>cr(s)===s)).filter(s=>e?Dr(s)===e||(t?Xc(s)!==s:!1):!0)}const SD=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,s;const{rects:o,middlewareData:c,placement:u,platform:d,elements:h}=t,{crossAxis:f=!1,alignment:m,allowedPlacements:p=R6,autoAlignment:y=!0,...b}=Ia(e,t),N=m!==void 0||p===R6?_D(m||null,y,p):p,w=await Do(t,b),C=((n=c.autoPlacement)==null?void 0:n.index)||0,E=N[C];if(E==null)return{};const _=up(E,o,await(d.isRTL==null?void 0:d.isRTL(h.floating)));if(u!==E)return{reset:{placement:N[0]}};const x=[w[cr(E)],w[_[0]],w[_[1]]],O=[...((r=c.autoPlacement)==null?void 0:r.overflows)||[],{placement:E,overflows:x}],T=N[C+1];if(T)return{data:{index:C+1,overflows:O},reset:{placement:T}};const $=O.map(I=>{const A=Dr(I.placement);return[I.placement,A&&f?I.overflows.slice(0,2).reduce((D,X)=>D+X,0):I.overflows[0],I.overflows]}).sort((I,A)=>I[1]-A[1]),P=((s=$.filter(I=>I[2].slice(0,Dr(I[0])?2:3).every(A=>A<=0))[0])==null?void 0:s[0])||$[0][0];return P!==u?{data:{index:C+1,overflows:O},reset:{placement:P}}:{}}}},TD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:c,initialPlacement:u,platform:d,elements:h}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:N=!0,...w}=Ia(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const C=cr(s),E=cr(u)===u,_=await(d.isRTL==null?void 0:d.isRTL(h.floating)),x=p||(E||!N?[qc(u)]:yD(u));!p&&b!=="none"&&x.push(...wD(u,N,b,_));const O=[u,...x],T=await Do(t,w),$=[];let L=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&$.push(T[C]),m){const D=up(s,c,_);$.push(T[D[0]],T[D[1]])}if(L=[...L,{placement:s,overflows:$}],!$.every(D=>D<=0)){var P,I;const D=(((P=o.flip)==null?void 0:P.index)||0)+1,X=O[D];if(X)return{data:{index:D,overflows:L},reset:{placement:X}};let M=(I=L.filter(W=>W.overflows[0]<=0).sort((W,ne)=>W.overflows[1]-ne.overflows[1])[0])==null?void 0:I.placement;if(!M)switch(y){case"bestFit":{var A;const W=(A=L.map(ne=>[ne.placement,ne.overflows.filter(B=>B>0).reduce((B,k)=>B+k,0)]).sort((ne,B)=>ne[1]-B[1])[0])==null?void 0:A[0];W&&(M=W);break}case"initialPlacement":M=u;break}if(s!==M)return{reset:{placement:M}}}return{}}}};function H6(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function B6(e){return lp.some(t=>e[t]>=0)}const ED=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Ia(e,t);switch(r){case"referenceHidden":{const o=await Do(t,{...s,elementContext:"reference"}),c=H6(o,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:B6(c)}}}case"escaped":{const o=await Do(t,{...s,altBoundary:!0}),c=H6(o,n.floating);return{data:{escapedOffsets:c,escaped:B6(c)}}}default:return{}}}}};function dp(e){const t=ta(...e.map(o=>o.left)),n=ta(...e.map(o=>o.top)),r=$r(...e.map(o=>o.right)),s=$r(...e.map(o=>o.bottom));return{x:t,y:n,width:r-t,height:s-n}}function OD(e){const t=e.slice().sort((s,o)=>s.y-o.y),n=[];let r=null;for(let s=0;s<t.length;s++){const o=t[s];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(s=>vi(dp(s)))}const LD=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:s,platform:o,strategy:c}=t,{padding:u=2,x:d,y:h}=Ia(e,t),f=Array.from(await(o.getClientRects==null?void 0:o.getClientRects(r.reference))||[]),m=OD(f),p=vi(dp(f)),y=i2(u);function b(){if(m.length===2&&m[0].left>m[1].right&&d!=null&&h!=null)return m.find(w=>d>w.left-y.left&&d<w.right+y.right&&h>w.top-y.top&&h<w.bottom+y.bottom)||p;if(m.length>=2){if(rl(n)==="y"){const I=m[0],A=m[m.length-1],D=cr(n)==="top",X=I.top,M=A.bottom,W=D?I.left:A.left,ne=D?I.right:A.right,B=ne-W,k=M-X;return{top:X,bottom:M,left:W,right:ne,width:B,height:k,x:W,y:X}}const w=cr(n)==="left",C=$r(...m.map(I=>I.right)),E=ta(...m.map(I=>I.left)),_=m.filter(I=>w?I.left===E:I.right===C),x=_[0].top,O=_[_.length-1].bottom,T=E,$=C,L=$-T,P=O-x;return{top:x,bottom:O,left:T,right:$,width:L,height:P,x:T,y:x}}return p}const N=await o.getElementRects({reference:{getBoundingClientRect:b},floating:r.floating,strategy:c});return s.reference.x!==N.reference.x||s.reference.y!==N.reference.y||s.reference.width!==N.reference.width||s.reference.height!==N.reference.height?{reset:{rects:N}}:{}}}};async function AD(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),c=cr(n),u=Dr(n),d=rl(n)==="y",h=["left","top"].includes(c)?-1:1,f=o&&d?-1:1,m=Ia(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return u&&typeof b=="number"&&(y=u==="end"?b*-1:b),d?{x:y*f,y:p*h}:{x:p*h,y:y*f}}const VD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:c,middlewareData:u}=t,d=await AD(t,e);return c===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:s+d.x,y:o+d.y,data:{...d,placement:c}}}}},$D=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:c=!1,limiter:u={fn:w=>{let{x:C,y:E}=w;return{x:C,y:E}}},...d}=Ia(e,t),h={x:n,y:r},f=await Do(t,d),m=rl(cr(s)),p=cp(m);let y=h[p],b=h[m];if(o){const w=p==="y"?"top":"left",C=p==="y"?"bottom":"right",E=y+f[w],_=y-f[C];y=N0(E,y,_)}if(c){const w=m==="y"?"top":"left",C=m==="y"?"bottom":"right",E=b+f[w],_=b-f[C];b=N0(E,b,_)}const N=u.fn({...t,[p]:y,[m]:b});return{...N,data:{x:N.x-n,y:N.y-r}}}}};function Va(e){return fp(e)?(e.nodeName||"").toLowerCase():"#document"}function Vn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function aa(e){var t;return(t=(fp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fp(e){return e instanceof Node||e instanceof Vn(e).Node}function na(e){return e instanceof Element||e instanceof Vn(e).Element}function Pr(e){return e instanceof HTMLElement||e instanceof Vn(e).HTMLElement}function z6(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vn(e).ShadowRoot}function al(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Jn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function DD(e){return["table","td","th"].includes(Va(e))}function o2(e){const t=l2(),n=Jn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ID(e){let t=yi(e);for(;Pr(t)&&!fd(t);){if(o2(t))return t;t=yi(t)}return null}function l2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fd(e){return["html","body","#document"].includes(Va(e))}function Jn(e){return Vn(e).getComputedStyle(e)}function hd(e){return na(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function yi(e){if(Va(e)==="html")return e;const t=e.assignedSlot||e.parentNode||z6(e)&&e.host||aa(e);return z6(t)?t.host:t}function hp(e){const t=yi(e);return fd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pr(t)&&al(t)?t:hp(t)}function Io(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=hp(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),c=Vn(s);return o?t.concat(c,c.visualViewport||[],al(s)?s:[],c.frameElement&&n?Io(c.frameElement):[]):t.concat(s,Io(s,[],n))}function mp(e){const t=Jn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Pr(e),o=s?e.offsetWidth:n,c=s?e.offsetHeight:r,u=Yc(n)!==o||Yc(r)!==c;return u&&(n=o,r=c),{width:n,height:r,$:u}}function c2(e){return na(e)?e:e.contextElement}function ti(e){const t=c2(e);if(!Pr(t))return Aa(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=mp(t);let c=(o?Yc(n.width):n.width)/r,u=(o?Yc(n.height):n.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const kD=Aa(0);function gp(e){const t=Vn(e);return!l2()||!t.visualViewport?kD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vn(e)?!1:t}function fs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=c2(e);let c=Aa(1);t&&(r?na(r)&&(c=ti(r)):c=ti(e));const u=PD(o,n,r)?gp(o):Aa(0);let d=(s.left+u.x)/c.x,h=(s.top+u.y)/c.y,f=s.width/c.x,m=s.height/c.y;if(o){const p=Vn(o),y=r&&na(r)?Vn(r):r;let b=p.frameElement;for(;b&&r&&y!==p;){const N=ti(b),w=b.getBoundingClientRect(),C=Jn(b),E=w.left+(b.clientLeft+parseFloat(C.paddingLeft))*N.x,_=w.top+(b.clientTop+parseFloat(C.paddingTop))*N.y;d*=N.x,h*=N.y,f*=N.x,m*=N.y,d+=E,h+=_,b=Vn(b).frameElement}}return vi({width:f,height:m,x:d,y:h})}function MD(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Pr(n),o=aa(n);if(n===o)return t;let c={scrollLeft:0,scrollTop:0},u=Aa(1);const d=Aa(0);if((s||!s&&r!=="fixed")&&((Va(n)!=="body"||al(o))&&(c=hd(n)),Pr(n))){const h=fs(n);u=ti(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-c.scrollLeft*u.x+d.x,y:t.y*u.y-c.scrollTop*u.y+d.y}}function RD(e){return Array.from(e.getClientRects())}function pp(e){return fs(aa(e)).left+hd(e).scrollLeft}function FD(e){const t=aa(e),n=hd(e),r=e.ownerDocument.body,s=$r(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=$r(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+pp(e);const u=-n.scrollTop;return Jn(r).direction==="rtl"&&(c+=$r(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:c,y:u}}function HD(e,t){const n=Vn(e),r=aa(e),s=n.visualViewport;let o=r.clientWidth,c=r.clientHeight,u=0,d=0;if(s){o=s.width,c=s.height;const h=l2();(!h||h&&t==="fixed")&&(u=s.offsetLeft,d=s.offsetTop)}return{width:o,height:c,x:u,y:d}}function BD(e,t){const n=fs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Pr(e)?ti(e):Aa(1),c=e.clientWidth*o.x,u=e.clientHeight*o.y,d=s*o.x,h=r*o.y;return{width:c,height:u,x:d,y:h}}function U6(e,t,n){let r;if(t==="viewport")r=HD(e,n);else if(t==="document")r=FD(aa(e));else if(na(t))r=BD(t,n);else{const s=gp(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return vi(r)}function vp(e,t){const n=yi(e);return n===t||!na(n)||fd(n)?!1:Jn(n).position==="fixed"||vp(n,t)}function zD(e,t){const n=t.get(e);if(n)return n;let r=Io(e,[],!1).filter(u=>na(u)&&Va(u)!=="body"),s=null;const o=Jn(e).position==="fixed";let c=o?yi(e):e;for(;na(c)&&!fd(c);){const u=Jn(c),d=o2(c);!d&&u.position==="fixed"&&(s=null),(o?!d&&!s:!d&&u.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||al(c)&&!d&&vp(e,c))?r=r.filter(f=>f!==c):s=u,c=yi(c)}return t.set(e,r),r}function UD(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const c=[...n==="clippingAncestors"?zD(t,this._c):[].concat(n),r],u=c[0],d=c.reduce((h,f)=>{const m=U6(t,f,s);return h.top=$r(m.top,h.top),h.right=ta(m.right,h.right),h.bottom=ta(m.bottom,h.bottom),h.left=$r(m.left,h.left),h},U6(t,u,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function jD(e){const{width:t,height:n}=mp(e);return{width:t,height:n}}function WD(e,t,n){const r=Pr(t),s=aa(t),o=n==="fixed",c=fs(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const d=Aa(0);if(r||!r&&!o)if((Va(t)!=="body"||al(s))&&(u=hd(t)),r){const h=fs(t,!0,o,t);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=pp(s));return{x:c.left+u.scrollLeft-d.x,y:c.top+u.scrollTop-d.y,width:c.width,height:c.height}}function j6(e,t){return!Pr(e)||Jn(e).position==="fixed"?null:t?t(e):e.offsetParent}function yp(e,t){const n=Vn(e);if(!Pr(e))return n;let r=j6(e,t);for(;r&&DD(r)&&Jn(r).position==="static";)r=j6(r,t);return r&&(Va(r)==="html"||Va(r)==="body"&&Jn(r).position==="static"&&!o2(r))?n:r||ID(e)||n}const GD=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||yp,o=this.getDimensions;return{reference:WD(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}};function KD(e){return Jn(e).direction==="rtl"}const YD={convertOffsetParentRelativeRectToViewportRelativeRect:MD,getDocumentElement:aa,getClippingRect:UD,getOffsetParent:yp,getElementRects:GD,getClientRects:RD,getDimensions:jD,getScale:ti,isElement:na,isRTL:KD};function XD(e,t){let n=null,r;const s=aa(e);function o(){clearTimeout(r),n&&n.disconnect(),n=null}function c(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),o();const{left:h,top:f,width:m,height:p}=e.getBoundingClientRect();if(u||t(),!m||!p)return;const y=lc(f),b=lc(s.clientWidth-(h+m)),N=lc(s.clientHeight-(f+p)),w=lc(h),E={rootMargin:-y+"px "+-b+"px "+-N+"px "+-w+"px",threshold:$r(0,ta(1,d))||1};let _=!0;function x(O){const T=O[0].intersectionRatio;if(T!==d){if(!_)return c();T?c(!1,T):r=setTimeout(()=>{c(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(x,{...E,root:s.ownerDocument})}catch{n=new IntersectionObserver(x,E)}n.observe(e)}return c(!0),o}function qD(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=c2(e),f=s||o?[...h?Io(h):[],...Io(t)]:[];f.forEach(C=>{s&&C.addEventListener("scroll",n,{passive:!0}),o&&C.addEventListener("resize",n)});const m=h&&u?XD(h,n):null;let p=-1,y=null;c&&(y=new ResizeObserver(C=>{let[E]=C;E&&E.target===h&&y&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{y&&y.observe(t)})),n()}),h&&!d&&y.observe(h),y.observe(t));let b,N=d?fs(e):null;d&&w();function w(){const C=fs(e);N&&(C.x!==N.x||C.y!==N.y||C.width!==N.width||C.height!==N.height)&&n(),N=C,b=requestAnimationFrame(w)}return n(),()=>{f.forEach(C=>{s&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),m&&m(),y&&y.disconnect(),y=null,d&&cancelAnimationFrame(b)}}const JD=SD,ZD=$D,QD=TD,eI=ED,tI=xD,nI=LD,rI=(e,t,n)=>{const r=new Map,s={platform:YD,...n},o={...s.platform,_c:r};return ND(e,t,{...s,platform:o})};var aI=kn,sI=Bg;function iI(e){return aI(e)&&e.nodeType===1&&!sI(e)}var oI=iI;const lI=Kt(oI),e0={},x0=e=>document.querySelector(e)instanceof HTMLElement,cI=()=>(e0.fullscreenReferId||(e0.fullscreenReferId=`id_${or()}`),e0.fullscreenReferId),ko=e=>e instanceof Element||e instanceof HTMLDocument,bp=e=>{if(ko(e))return{isElement:!0,content:e,vNode:void 0};if(/^(#|\.)/.test(e)){const t=document.querySelector(e),n=ko(t);return{isElement:n,content:n?t:e,vNode:n?void 0:e}}return{isElement:!1,content:e,vNode:e}},uI=(e,t,{refReference:n,refContent:r,refArrow:s,refRoot:o})=>{const c=a.ref(!1),u=a.ref(),d=()=>{var me,ae;const Z=N();return(me=document.fullscreenElement)!=null&&me.shadowRoot?document.fullscreenElement.shadowRoot.contains(Z):(ae=document.fullscreenElement)==null?void 0:ae.contains(Z)},h=Z=>d()?document.fullscreenElement.shadowRoot?document.fullscreenElement.shadowRoot.querySelector(Z):document.fullscreenElement.querySelector(Z):document.body,f=["dark","light"],m=a.computed(()=>{var pe;const Z=((pe=e.theme)==null?void 0:pe.split(/\s+/))??[];Z.sort((G,fe)=>Number(f.includes(fe))-Number(f.includes(G)));const me=Z,ae=Z.filter(G=>!f.includes(G));return{systemThemes:me,customThemes:ae}}),p=()=>e.autoVisibility,y=()=>e.autoPlacement,b=()=>{var we,le,q;const Z=N(),me=E((we=r.value)==null?void 0:we.$el),ae=e.arrow?E((le=s.value)==null?void 0:le.$el):null,pe=E((q=o.value)==null?void 0:q.$el),{isElement:G,content:fe}=bp(e.content);return me&&G&&!(me!=null&&me.contains(fe))&&me.append(fe),{elReference:Z,elContent:me,elArrow:ae,root:pe}},N=()=>{var Z;return E(e.target)||E((Z=n.value)==null?void 0:Z.$el)},w=()=>{const Z={};return Array.isArray(e.modifiers)&&e.modifiers.forEach(me=>{var pe,G,fe,we;let ae;if(me.name==="offset"){if(typeof((pe=me.options)==null?void 0:pe.offset)=="number"&&(ae=(G=me.options)==null?void 0:G.offset),Array.isArray((fe=me.options)==null?void 0:fe.offset)){const[le,q]=(we=me.options)==null?void 0:we.offset;ae={mainAxis:le,crossAxis:q}}Object.assign(Z,{offset:ae})}}),Z},C=(Z,me)=>{const ae=w(),pe=[VD(ae.offset||me.offset),ZD({padding:me.padding})],G={placement:me.placement,middleware:pe};return me.arrow&&pe.push(tI({element:Z})),y()&&pe.push(JD()),pe.unshift(nI()),pe.push(QD()),p()&&G.middleware.push(eI()),G},E=Z=>{if(Z instanceof HTMLElement)return Z;if(Z instanceof Text)return E(Z.nextElementSibling);if(typeof(Z==null?void 0:Z.getBoundingClientRect)=="function")return Z;if(typeof Z=="string"){const me=document.querySelector(Z);return lI(me)?me:null}return Z instanceof PointerEvent?E(Z.target):null},_=m.value.customThemes.join(" "),x=m.value.customThemes.reduce((Z,me)=>({[`data-${me}-theme`]:!0,...Z}),{}),O=`${_}`;let T=null;const $=Z=>{const me=window.devicePixelRatio||1;return Math.round(Z*me)/me||0},L=(Z,me,ae,pe)=>{var fe;e.disableTransform?Object.assign(Z.style,{left:`${$(me)}px`,top:`${$(ae)}px`}):Object.assign(Z.style,{left:"0",top:"0",transform:`translate3d(${$(me)}px,${$(ae)}px,0)`});const G=p()?(fe=pe.hide)==null?void 0:fe.referenceHidden:!1;Object.assign(Z.style,{visibility:G?"hidden":"visible"})},P=(Z,me,ae)=>{if(e.arrow){const{x:pe,y:G}=ae.arrow??{};Z.setAttribute("data-arrow",me);const fe={left:"",top:"",bottom:"",right:""};Object.assign(Z.style,fe);const we={top:"bottom",right:"left",bottom:"top",left:"right"}[me];Object.assign(Z.style,{left:pe!==null?`${pe}px`:"",top:G!==null?`${G}px`:"",[we]:"-4px"})}},I=()=>{const{elReference:Z,elContent:me}=b();T=qD(Z,me,()=>{c.value&&A(null,e)})},A=(Z=null,me={},ae)=>{const{elReference:pe,elContent:G,elArrow:fe}=b(),we=Z||pe;if(!we||!G)return;const le=C(fe,me);rI(we,G,le).then(({x:q,y:se,placement:de,middlewareData:U})=>{const ee=G.className;G.className=`${ee.replace(O,"")} ${O}`.replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(x).forEach(ie=>{G.setAttribute(ie,x[ie])});const Ce=de.split("-")[0];let j=Ce;["left","right","top","bottom"].includes(Ce)||(j="top"),L(G,q,se,U),P(fe,j,U),typeof ae=="function"&&ae()})};let D,X,M=!1;const W=()=>Array.isArray(e.popoverDelay)?[e.popoverDelay[0],e.popoverDelay.slice(-1)[0]]:[e.popoverDelay,e.popoverDelay],ne=()=>{const Z=W()[0];X=setTimeout(()=>{e.disabled||(c.value=!0)},Z)},B=()=>{const Z=W()[1];D=setTimeout(()=>{X&&clearTimeout(X),c.value=!1},Z)},k=()=>{var me;const Z=E((me=r.value)==null?void 0:me.$el);Z.style.setProperty("display","block"),Z.style.setProperty("z-index",`${e.zIndex?e.zIndex:ea.getPopperIndex()}`),A(),t.emit(xr.CONTENT_AfterShow,{isShow:!0})},re=()=>{var me;E((me=r.value)==null?void 0:me.$el).style.setProperty("display","none"),t.emit(xr.CONTENT_AfterHidden,{isShow:!1})},J=()=>{c.value?B():ne()},K=()=>{J()},F=Z=>{e.trigger==="hover"&&(D&&(M=!0,clearTimeout(D),D=void 0),Y(Z))},z=Z=>{M&&!X&&(B(),M=!1,te(Z))},Y=Z=>{t.emit(xr.CONTENT_MOUSEENTER,Z)},te=Z=>{t.emit(xr.CONTENT_MOUSELEAVE,Z)},ue=()=>({hover:{content:[["mouseenter",F],["mouseleave",z]],reference:[["mouseenter",ne],["mouseleave",B],["focus",ne],["blur",B]]},click:[["click",K]],manual:{content:[["mouseenter",Y],["mouseleave",te]],reference:[[]]}})[e.trigger]??[],ce=Z=>{u.value=Z};return a.watch(()=>e.isShow,Z=>{c.value=Z}),a.watch(c,Z=>{Z?k():re()}),{showPopover:ne,hidePopover:B,resolveTriggerEvents:ue,updatePopover:A,triggerPopover:J,resolvePopElements:b,isElementFullScreen:d,resolveTargetElement:E,createPopInstance:I,updateFullscreenTarget:ce,getFullscreenRoot:h,stopHide:()=>{D&&(M=!0,clearTimeout(D),D=void 0)},localIsShow:c,cleanup:T}};let ba=null,cc=null;const dI=(e,t="#")=>{const n=r=>{let s=null;const o=d=>{s===null&&d()},c=()=>{if(/^parent$/i.test(e.boundary)){s=`${t}${ba}`;const{parentNode:d}=r||{};d!=null&&d.parentNode&&(d.parentNode.setAttribute("data-pnode-id",cc),s=`[data-pnode-id=${cc}]`)}},u=()=>{if(!/^body$/i.test(e.boundary)){if(typeof e.boundary=="string"){if(!x0(e.boundary)){s="body";return}s=e.boundary;return}if(ko(e.boundary)){s=e.boundary;return}}};return o(c),o(u),o(()=>{s=typeof e.boundary=="string"?e.boundary:`${t}${ba}`}),s};if(ba===null||!x0(`#${ba}`)){ba=`id_${or()}`;const r=document.createElement("div");r.setAttribute("id",ba),r.setAttribute("data-popper-id",ba),document.body.append(r)}return cc===null&&(cc=`id_${or()}`),{popContainerId:ba,prefixId:n(),getPrefixId:n}},fI=(e,t,{refReference:n,refContent:r,refArrow:s,refRoot:o})=>{let c=null;const u=a.ref(!1),d=cI(),h=a.ref(),{localIsShow:f,showPopover:m,hidePopover:p,updatePopover:y,cleanup:b,resolveTriggerEvents:N,resolvePopElements:w,isElementFullScreen:C,updateFullscreenTarget:E,createPopInstance:_,getFullscreenRoot:x,stopHide:O}=uI(e,t,{refReference:n,refContent:r,refArrow:s,refRoot:o}),T=()=>{b==null||b(),_()},$=()=>{m()},L=()=>{p()},P=()=>{_(),e.always?m():I()},I=()=>{const{elReference:te,elContent:ue}=w();if(c=N(),Array.isArray(c))A(te,c);else{const{content:ce,reference:be}=c;A(te,be),A(ue,ce)}},A=(te,ue)=>{ue.forEach(([ce,be])=>{ce&&typeof be=="function"&&te.addEventListener(ce,be)})},D=()=>{if(c!=null&&c.length){const{elReference:te}=w();te&&c.forEach(([ue,ce])=>{ue&&typeof ce=="function"&&te.removeEventListener(ue,ce)}),c=null}},X=te=>(te==null?void 0:te.closest("[data-fllsrn-id]"))??te,M=()=>{const{elReference:te,root:ue}=w();if(u.value){const{parentNode:ce}=te||ue||{};k.value=(h==null?void 0:h.value)??X(ce);return}k.value=W(ue||te)},{getPrefixId:W}=dI(e,"#"),ne=()=>{var te;(te=h==null?void 0:h.value)==null||te.setAttribute("data-fllsrn-id",d)},B=()=>{var ue;const te=`[data-fllsrn-id=${d}]`;(((ue=h==null?void 0:h.value)==null?void 0:ue.querySelectorAll(te))??[]).forEach(ce=>{ce==null||ce.removeAttribute("data-fllsrn-id")})},k=a.ref(),re=()=>{D()},J=te=>{h.value=te,E(te),u.value=C(),ne()},K=te=>{document.fullscreenElement||B(),J(te.target),M(),y(null,e)};return{onMountedFn:()=>{if(!e.disabled){if(P(),C()){const te=`[data-fllsrn-id=${d}]`,ue=x(te);J(ue)}M(),document.body.addEventListener("fullscreenchange",K)}},onUnmountedFn:()=>{re(),document.body.removeEventListener("fullscreenchange",K)},handleClickOutside:te=>{t.emit(xr.CLICK_OUTSIDE,{isShow:f.value,event:te});const ue=e.disableOutsideClick||e.always||e.disabled||e.trigger==="manual";!e.forceClickoutside&&ue||f.value&&L()},beforeInstanceUnmount:re,updateBoundary:M,initPopInstance:P,updatePopover:y,resetPopover:T,showPopover:m,hidePopover:p,showFn:$,hideFn:L,stopHide:O,isFullscreen:u,boundary:k,localIsShow:f}};function hI(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const wp=a.defineComponent({name:"Popover",components:{Content:k6,Arrow:$6,Root:P6},directives:{clickoutside:kr},props:op,emits:mD,setup(e,t){const{reference:n}=a.toRefs(e),r=a.ref(),s=a.ref(),o=a.ref(),c=a.ref(),u=a.computed(()=>n.value||r.value),{onMountedFn:d,onUnmountedFn:h,handleClickOutside:f,beforeInstanceUnmount:m,updateBoundary:p,initPopInstance:y,showFn:b,hideFn:N,showPopover:w,hidePopover:C,updatePopover:E,resetPopover:_,stopHide:x,localIsShow:O,boundary:T}=fI(e,t,{refReference:u,refContent:s,refArrow:o,refRoot:c});!e.always&&!e.disabled&&a.watch(()=>e.isShow,()=>{e.isShow?w():C()},{immediate:!0}),a.watch(()=>[e.disabled],D=>{D[0]?m():y()}),p(),a.onMounted(d),a.onBeforeUnmount(h);const $=a.computed(()=>O.value&&!e.disableTeleport),L=()=>{b()},P=()=>{N()},I=a.computed(()=>e.renderType===Su.AUTO?!0:O.value),A=()=>{if(e.allowHtml){const{vNode:D}=bp(e.content);return D}return e.content};return{boundary:T,arrow:e.arrow,refDefaultReference:r,refContent:s,refArrow:o,content:e.content,theme:e.theme,transBoundary:$,handleClickOutside:f,updatePopover:E,resetPopover:_,hide:P,show:L,stopHide:x,contentIsShow:I,renderContent:A,localIsShow:O}},render(){let e;const t=n=>{var r;return a.Text===((r=n==null?void 0:n[0])==null?void 0:r.type)?a.createVNode("span",null,[n]):n};return a.createVNode(P6,{ref:"refRoot"},{default:()=>{var n,r;return[a.createVNode(gD,{ref:"refDefaultReference"},hI(e=t(((r=(n=this.$slots).default)==null?void 0:r.call(n))??a.createVNode("span",null,null)))?e:{default:()=>[e]}),a.createVNode(a.Teleport,{disabled:!this.transBoundary,to:this.boundary},{default:()=>[a.withDirectives(a.createVNode(k6,{ref:"refContent",width:this.width,height:this.height,extCls:this.extCls,"data-theme":this.theme,eventDelay:this.componentEventDelay,maxHeight:this.maxHeight,maxWidth:this.maxWidth,visible:this.localIsShow},{default:()=>{var s,o;return[this.contentIsShow?((o=(s=this.$slots).content)==null?void 0:o.call(s))??this.renderContent():""]},arrow:()=>this.arrow?a.createVNode($6,{ref:"refArrow"},{default:()=>{var s,o;return[(o=(s=this.$slots).arrow)==null?void 0:o.call(s)]}}):""}),[[a.resolveDirective("clickoutside"),this.handleClickOutside]])]})]}})}});function md(e){let t=null,n=null,r=null;const s=e.immediate??!0,o={boundary:"body",placement:"top",autoVisibility:!0,isShow:!1,trigger:"manual",onHide:()=>{},onShow:()=>{},...e,allowHtml:!0},c={name:"$popover",setup(b,{expose:N}){const w=()=>Object.keys(op).reduce((A,D)=>(Object.prototype.hasOwnProperty.call(o,D)&&Object.assign(A,{[D]:o[D]}),A),{target:o.target}),C=a.reactive(w()),E=a.ref(),_=()=>{var A,D;(D=(A=E.value)==null?void 0:A.show)==null||D.call(A)},x=()=>{var A,D;(D=(A=E.value)==null?void 0:A.hide)==null||D.call(A)},O=()=>{var A,D;(D=(A=E.value)==null?void 0:A.stopHide)==null||D.call(A)},T=A=>{var D,X;C.target=A,(X=(D=E.value)==null?void 0:D.resetPopover)==null||X.call(D)},$=()=>{var A;(A=o.onContentMouseenter)==null||A.call(o)},L=()=>{var A;(A=o.onContentMouseleave)==null||A.call(o)},P=()=>{var A;(A=o.onHide)==null||A.call(o)},I=()=>{var A;(A=o.onShow)==null||A.call(o)};return N({show:_,hide:x,updateTarget:T,stopHide:O}),()=>a.createVNode(wp,a.mergeProps(C,{ref:E,onAfterHidden:P,onAfterShow:I,onContentMouseenter:$,onContentMouseleave:L}),null)}};function u(b){return/^body$/i.test(b)?document.body:/^parent$/i.test(b)?ko(o.target)?o.target.parentNode:o.target.target.parentNode:typeof b=="string"&&x0(b)?document.querySelector(b):document.body}const d=()=>{t===null&&(r=document.createElement("div"),u(o.boundary).append(r),t=a.createApp(c),n=t.mount(r))},h=()=>{ko(e.content)&&e.content.remove(),t.unmount(),t=null,r==null||r.remove()};function f(){h(),n=null}function m(b){d(),b&&(n==null||n.updateTarget(b)),n==null||n.show()}function p(b){n==null||n.updateTarget(b)}function y(){n==null||n.hide()}return s&&d(),{install:d,close:f,show:m,hide:y,update:p,uninstall:h,get vm(){return n},get $el(){return n.$el}}}const W6=(e,t)=>{const n={content:"",target:e};return typeof t=="object"?(Object.assign(n,t),Object.prototype.hasOwnProperty.call(t,"popoverOption")&&Object.assign(n,t.popoverOption)):n.content=t,n},u2=(e,t)=>{let n=null,r=null,s=null;const o=W6(e,t),{disabled:c}=o;if(c||n)return;const u=()=>{s&&clearTimeout(s),s=null},d=()=>{r&&clearTimeout(r),n==null||n.hide(),n==null||n.close(),n=null},h=()=>{d(),r&&clearTimeout(r),r=setTimeout(()=>{const p=W6(e,t);p.isShow=!0,p.content=typeof p.content=="function"?p.content():p.content??e,p.allowHtml=!0,Object.assign(p,{onContentMouseenter:u,onContentMouseleave:d}),n=md(p)},300)},f=()=>{s=setTimeout(()=>{r&&clearTimeout(r),n==null||n.hide(),n==null||n.close(),n=null},120)};return e.addEventListener("mouseenter",h),e.addEventListener("mouseleave",f),{destroyInstance:p=>{var y,b;f(),(y=p??e)==null||y.removeEventListener("mouseenter",h),(b=p??e)==null||b.removeEventListener("mouseleave",f)},instance:n}},mI={mounted(e,t){u2(e,t)}};var G6=!1,rs,_0,S0,Oc,Lc,Cp,Ac,T0,E0,O0,Np,L0,A0,xp,_p;function hn(){if(!G6){G6=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(L0=/\b(iPhone|iP[ao]d)/.exec(e),A0=/\b(iP[ao]d)/.exec(e),O0=/Android/i.exec(e),xp=/FBAN\/\w+;/i.exec(e),_p=/Mobile/i.exec(e),Np=!!/Win64/.exec(e),t){rs=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,rs&&document&&document.documentMode&&(rs=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);Cp=r?parseFloat(r[1])+4:rs,_0=t[2]?parseFloat(t[2]):NaN,S0=t[3]?parseFloat(t[3]):NaN,Oc=t[4]?parseFloat(t[4]):NaN,Oc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Lc=t&&t[1]?parseFloat(t[1]):NaN):Lc=NaN}else rs=_0=S0=Lc=Oc=NaN;if(n){if(n[1]){var s=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ac=s?parseFloat(s[1].replace("_",".")):!0}else Ac=!1;T0=!!n[2],E0=!!n[3]}else Ac=T0=E0=!1}}var V0={ie:function(){return hn()||rs},ieCompatibilityMode:function(){return hn()||Cp>rs},ie64:function(){return V0.ie()&&Np},firefox:function(){return hn()||_0},opera:function(){return hn()||S0},webkit:function(){return hn()||Oc},safari:function(){return V0.webkit()},chrome:function(){return hn()||Lc},windows:function(){return hn()||T0},osx:function(){return hn()||Ac},linux:function(){return hn()||E0},iphone:function(){return hn()||L0},mobile:function(){return hn()||L0||A0||O0||_p},nativeApp:function(){return hn()||xp},android:function(){return hn()||O0},ipad:function(){return hn()||A0}},gI=V0,uc=!!(typeof window<"u"&&window.document&&window.document.createElement),pI={canUseDOM:uc,canUseWorkers:typeof Worker<"u",canUseEventListeners:uc&&!!(window.addEventListener||window.attachEvent),canUseViewport:uc&&!!window.screen,isInWorker:!uc},vI=pI,Sp=vI,Tp;Sp.canUseDOM&&(Tp=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
19
+ ${xu(u)}`),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const X_=["name","validate","getter"],q_=(()=>{var e,t;return t=e=class{static get any(){return R_()}static get func(){return Ci().def(this.defaults.func)}static get bool(){return F_().def(this.defaults.bool)}static get string(){return rn().def(this.defaults.string)}static get number(){return yg().def(this.defaults.number)}static get array(){return fh().def(this.defaults.array)}static get object(){return bg().def(this.defaults.object)}static get integer(){return H_().def(this.defaults.integer)}static get symbol(){return B_()}static extend(n){if(di(n))return n.forEach(h=>this.extend(h)),this;const{name:r,validate:s=!1,getter:o=!1}=n,c=fg(n,X_);if(ui(this,r))throw new TypeError(`[VueTypes error]: Type "${r}" already defined`);const{type:u}=c;if(zc(u))return delete c.type,Object.defineProperty(this,r,o?{get:()=>m6(r,u,c)}:{value(...h){const f=m6(r,u,c);return f.validator&&(f.validator=f.validator.bind(f,...h)),f}});let d;return d=o?{get(){const h=Object.assign({},c);return s?Vr(r,h):Pe(r,h)},enumerable:!0}:{value(...h){const f=Object.assign({},c);let m;return m=s?Vr(r,f):Pe(r,f),f.validator&&(m.validator=f.validator.bind(m,...h)),m},enumerable:!0},Object.defineProperty(this,r,d)}},e.defaults={},e.sensibleDefaults=void 0,e.config=y0,e.custom=z_,e.oneOf=U_,e.instanceOf=G_,e.oneOfType=j_,e.arrayOf=W_,e.objectOf=K_,e.shape=Y_,e.utils={validate:(n,r)=>ms(r,n,!0)===!0,toType:(n,r,s=!1)=>s?Vr(n,r):Pe(n,r)},t})();function wg(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t,n;return n=t=class extends q_{static get sensibleDefaults(){return wo({},this.defaults)}static set sensibleDefaults(r){this.defaults=r!==!1?wo({},r!==!0?r:e):{}}},t.defaults=wo({},e),n}class jX extends wg(){}const J_=wg({});function Cg(e){return e.reduce((t,n)=>(t[n]=n,t),Object.create(null))}var hh=(e=>(e.DEFAULT="default",e.LARGE="large",e.SMALL="small",e))(hh||{});function mh(){return rn().def("show")}var Uc=(e=>(e.CENTER="center",e.LEFT="left",e.RIGHT="right",e))(Uc||{});function b0(){return rn().def("left")}var _u=(e=>(e.DANGER="danger",e.PRIMARY="primary",e.SUCCESS="success",e.WARNING="warning",e))(_u||{}),Lo=(e=>(e.AUTO="auto",e.AUTO_END="auto-end",e.AUTO_START="auto-start",e.BOTTOM="bottom",e.BOTTOM_END="bottom-end",e.BOTTOM_START="bottom-start",e.LEFT="left",e.LEFT_END="left-end",e.LEFT_START="left-start",e.RIGHT="right",e.RIGHT_END="right-end",e.RIGHT_START="right-start",e.TOP="top",e.TOP_END="top-end",e.TOP_START="top-start",e))(Lo||{});function gh(){return rn().def("bottom")}function Ng(){return rn().def("hover")}var Su=(e=>(e.AUTO="auto",e.SHOWN="shown",e))(Su||{});function Z_(){return Pe("popRenderType",{}).def("shown")}function Q_(){return Pe("dialogType",{default:"operation"})}function xg(){return Pe("direction",{}).def("horizontal")}function _g(){return Pe("lineType",{}).def("dashed")}var Sg=(e=>(e.DANGER="danger",e.INFO="info",e.SUCCESS="success",e.UNKNOWN="",e.WARNING="warning",e))(Sg||{});function Tu(){return Pe("tagTheme",{}).def()}function eS(){return Pe("switcherTheme",{}).def("success")}function tS(){return Pe("progressStrokeLineCap",{}).def("round")}function nS(){return Pe("progress",{}).def("line")}function ph(){return Pe("behavior",{}).def("normal")}class v extends J_{static size(){const t=["small","default","large","huge"];return Pe("Size",{validator:n=>!n||t.includes(n)?!0:(console.error(`invalid theme, ${n}, the theme must be one of 【${t.join(" | ")}】`),!1),default:"default"})}static theme(){const t=["primary","warning","success","danger"];return Pe("Theme",{validator:n=>!n||t.includes(n)?!0:(console.error(`invalid theme, ${n}, the theme must be one of 【${t.join(" | ")}】`),!1)})}static placement(){const t=["top","left","right","bottom"];return Pe("Placements",{validator:n=>!!(!n||t.includes(n)),default:"top"})}static style(){return Pe("Style",{type:[String,Object]})}static position(t=["top-left","top-right","bottom-left","bottom-right"]){return Pe("positions",{type:String,validator:n=>!n||t.includes(n)?!0:(console.error(`invalid positions, ${n}, the position must be one of 【${t.join(" | ")}】`),!1),default:"top-center"})}static infoType(){const t=["success","danger","warning","loading"];return Pe("InfoType",{validator:n=>!!(!n||t.includes(n))})}static timelineNodeType(){const t=["template","vnode"];return Pe("TimelineNodeType",{validator:n=>!!(!n||t.includes(n))})}}var Tc=(e=>(e.CHECK="check",e.CHECKBOX="checkbox",e))(Tc||{});function rS(){return Pe("selectedStyle",{}).def("check")}const Jf={bottom:0,content:1,navi:100,fullScreen:1e3,modal:2e3,plugins:5e3,message:6e3,popper:8e3};class aS{constructor(){Le(this,"storageLayerIndexValue",{});this.copyDefaultValue()}getNextIndex(t){if(Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,t))return this.storageLayerIndexValue[t]=this.storageLayerIndexValue[t]+1,this.storageLayerIndexValue[t];this.getNextIndex("modal")}getModalNextIndex(){return this.getNextIndex("modal")}getMessageNextIndex(){return this.getNextIndex("message")}getFullScreenNextIndex(){return this.getNextIndex("fullScreen")}getNaviNextIndex(){return this.getNextIndex("navi")}getPopperIndex(){return this.getNextIndex("popper")}setDefaultZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue.__proto__,n)&&Object.assign(this.storageLayerIndexValue.__proto__,{[n]:t[n]})}),this.copyDefaultValue()}resetZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,n)&&Object.assign(this.storageLayerIndexValue,{[n]:t[n]})})}copyDefaultValue(){const t=Object.keys(Jf).reduce((n,r)=>Object.assign(n,{[r]:{value:Jf[r],writable:!0,configurable:!0}}),{});this.storageLayerIndexValue=Object.create(Jf,t)}}const ea=new aS,sS=function(){const e={cancelToken:0},t=()=>{e.cancelToken=0},n=(r,s,...o)=>{e.callbackThis=r,e.args=o,!e.cancelToken&&("requestAnimationFrame"in window?e.cancelToken=window.requestAnimationFrame(()=>{s.apply(e.callbackThis,e.args),t()}):(s.apply(e.callbackThis,e.args),e.cancelToken=window.setTimeout(t,1e3/60)))};return n.cancel=()=>{"requestAnimationFrame"in window&&window.cancelAnimationFrame(e.cancelToken),window.clearTimeout(e.cancelToken),t()},n},g6=function(e,t,...n){const r=sS(),s=arguments.length,o=function(...c){r(s>1?t:this,e,...n,...c)};return o.cancel=()=>r.cancel(),o},Tg=e=>{const t=g6(e);return t.bind=g6.bind(null,e),t};function ze(e,t=""){return Object.entries(e).filter(n=>n[1]).map(n=>n[0]).join(" ").concat(t?` ${t}`:"")}const Eg=Object.create({}),Og=e=>Object.keys(e).length<1,Qe=e=>(e.install=function(t,{prefix:n}={}){const r=t.config.globalProperties.bkUIPrefix||n||"Bk";t.component(r+e.name,e)},e),on=(e,t,n=!1,r)=>(e.install=function(s,{prefix:o}={}){const c=s.config.globalProperties.bkUIPrefix||o||"Bk";r&&s.directive(c+r.name,r.directive),s.component(c+e.name,e),!n&&Object.values(t).forEach(u=>{s.component(c+u.name,u)})},Object.keys(t).forEach(s=>{e[s]=t[s]}),e);function jc(e,t="bk"){return`${t}-${e}`}function Uo(e=300,t,n=!1){let r,s;const o=function(){const c=this,u=arguments;if(r&&clearTimeout(r),n){const d=!r;r=setTimeout(()=>{r=null},e),d&&(s=t.apply(c,u))}else r=setTimeout(()=>{t.apply(c,u)},e);return s};return o.cancel=function(){clearTimeout(r),r=null},o}function Qs(e=[],t=[]){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){if(Array.isArray(e[n]))return Qs(e[n],t[n]);if(e[n]!==t[n])return!1}return!0}function iS(){this.__data__=[],this.size=0}var oS=iS;function lS(e,t){return e===t||e!==e&&t!==t}var jo=lS,cS=jo;function uS(e,t){for(var n=e.length;n--;)if(cS(e[n][0],t))return n;return-1}var Eu=uS,dS=Eu,fS=Array.prototype,hS=fS.splice;function mS(e){var t=this.__data__,n=dS(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():hS.call(t,n,1),--this.size,!0}var gS=mS,pS=Eu;function vS(e){var t=this.__data__,n=pS(t,e);return n<0?void 0:t[n][1]}var yS=vS,bS=Eu;function wS(e){return bS(this.__data__,e)>-1}var CS=wS,NS=Eu;function xS(e,t){var n=this.__data__,r=NS(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var _S=xS,SS=oS,TS=gS,ES=yS,OS=CS,LS=_S;function Ni(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ni.prototype.clear=SS;Ni.prototype.delete=TS;Ni.prototype.get=ES;Ni.prototype.has=OS;Ni.prototype.set=LS;var Ou=Ni,AS=Ou;function VS(){this.__data__=new AS,this.size=0}var $S=VS;function DS(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var IS=DS;function kS(e){return this.__data__.get(e)}var PS=kS;function MS(e){return this.__data__.has(e)}var RS=MS,FS=ra,HS=dr,BS="[object AsyncFunction]",zS="[object Function]",US="[object GeneratorFunction]",jS="[object Proxy]";function WS(e){if(!HS(e))return!1;var t=FS(e);return t==zS||t==US||t==BS||t==jS}var Lu=WS;const Er=Kt(Lu);var GS=fr,KS=GS["__core-js_shared__"],YS=KS,Zf=YS,p6=function(){var e=/[^.]+$/.exec(Zf&&Zf.keys&&Zf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function XS(e){return!!p6&&p6 in e}var qS=XS,JS=Function.prototype,ZS=JS.toString;function QS(e){if(e!=null){try{return ZS.call(e)}catch{}try{return e+""}catch{}}return""}var Lg=QS,eT=Lu,tT=qS,nT=dr,rT=Lg,aT=/[\\^$.*+?()[\]{}|]/g,sT=/^\[object .+?Constructor\]$/,iT=Function.prototype,oT=Object.prototype,lT=iT.toString,cT=oT.hasOwnProperty,uT=RegExp("^"+lT.call(cT).replace(aT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dT(e){if(!nT(e)||tT(e))return!1;var t=eT(e)?uT:sT;return t.test(rT(e))}var fT=dT;function hT(e,t){return e==null?void 0:e[t]}var mT=hT,gT=fT,pT=mT;function vT(e,t){var n=pT(e,t);return gT(n)?n:void 0}var gs=vT,yT=gs,bT=fr,wT=yT(bT,"Map"),vh=wT,CT=gs,NT=CT(Object,"create"),Au=NT,v6=Au;function xT(){this.__data__=v6?v6(null):{},this.size=0}var _T=xT;function ST(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var TT=ST,ET=Au,OT="__lodash_hash_undefined__",LT=Object.prototype,AT=LT.hasOwnProperty;function VT(e){var t=this.__data__;if(ET){var n=t[e];return n===OT?void 0:n}return AT.call(t,e)?t[e]:void 0}var $T=VT,DT=Au,IT=Object.prototype,kT=IT.hasOwnProperty;function PT(e){var t=this.__data__;return DT?t[e]!==void 0:kT.call(t,e)}var MT=PT,RT=Au,FT="__lodash_hash_undefined__";function HT(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=RT&&t===void 0?FT:t,this}var BT=HT,zT=_T,UT=TT,jT=$T,WT=MT,GT=BT;function xi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xi.prototype.clear=zT;xi.prototype.delete=UT;xi.prototype.get=jT;xi.prototype.has=WT;xi.prototype.set=GT;var KT=xi,y6=KT,YT=Ou,XT=vh;function qT(){this.size=0,this.__data__={hash:new y6,map:new(XT||YT),string:new y6}}var JT=qT;function ZT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var QT=ZT,eE=QT;function tE(e,t){var n=e.__data__;return eE(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Vu=tE,nE=Vu;function rE(e){var t=nE(this,e).delete(e);return this.size-=t?1:0,t}var aE=rE,sE=Vu;function iE(e){return sE(this,e).get(e)}var oE=iE,lE=Vu;function cE(e){return lE(this,e).has(e)}var uE=cE,dE=Vu;function fE(e,t){var n=dE(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var hE=fE,mE=JT,gE=aE,pE=oE,vE=uE,yE=hE;function _i(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_i.prototype.clear=mE;_i.prototype.delete=gE;_i.prototype.get=pE;_i.prototype.has=vE;_i.prototype.set=yE;var yh=_i,bE=Ou,wE=vh,CE=yh,NE=200;function xE(e,t){var n=this.__data__;if(n instanceof bE){var r=n.__data__;if(!wE||r.length<NE-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new CE(r)}return n.set(e,t),this.size=n.size,this}var _E=xE,SE=Ou,TE=$S,EE=IS,OE=PS,LE=RS,AE=_E;function Si(e){var t=this.__data__=new SE(e);this.size=t.size}Si.prototype.clear=TE;Si.prototype.delete=EE;Si.prototype.get=OE;Si.prototype.has=LE;Si.prototype.set=AE;var bh=Si,VE=gs,$E=function(){try{var e=VE(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ag=$E,b6=Ag;function DE(e,t,n){t=="__proto__"&&b6?b6(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var wh=DE,IE=wh,kE=jo;function PE(e,t,n){(n!==void 0&&!kE(e[t],n)||n===void 0&&!(t in e))&&IE(e,t,n)}var Vg=PE;function ME(e){return function(t,n,r){for(var s=-1,o=Object(t),c=r(t),u=c.length;u--;){var d=c[e?u:++s];if(n(o[d],d,o)===!1)break}return t}}var RE=ME,FE=RE,HE=FE(),BE=HE,Wc={exports:{}};Wc.exports;(function(e,t){var n=fr,r=t&&!t.nodeType&&t,s=r&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===r,c=o?n.Buffer:void 0,u=c?c.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,p=u?u(m):new h.constructor(m);return h.copy(p),p}e.exports=d})(Wc,Wc.exports);var $g=Wc.exports,zE=fr,UE=zE.Uint8Array,Dg=UE,w6=Dg;function jE(e){var t=new e.constructor(e.byteLength);return new w6(t).set(new w6(e)),t}var Ch=jE,WE=Ch;function GE(e,t){var n=t?WE(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Ig=GE;function KE(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var kg=KE,YE=dr,C6=Object.create,XE=function(){function e(){}return function(t){if(!YE(t))return{};if(C6)return C6(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),qE=XE;function JE(e,t){return function(n){return e(t(n))}}var Pg=JE,ZE=Pg,QE=ZE(Object.getPrototypeOf,Object),Nh=QE,eO=Object.prototype;function tO(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eO;return e===n}var $u=tO,nO=qE,rO=Nh,aO=$u;function sO(e){return typeof e.constructor=="function"&&!aO(e)?nO(rO(e)):{}}var Mg=sO,iO=ra,oO=kn,lO="[object Arguments]";function cO(e){return oO(e)&&iO(e)==lO}var uO=cO,N6=uO,dO=kn,Rg=Object.prototype,fO=Rg.hasOwnProperty,hO=Rg.propertyIsEnumerable,mO=N6(function(){return arguments}())?N6:function(e){return dO(e)&&fO.call(e,"callee")&&!hO.call(e,"callee")},xh=mO,gO=Array.isArray,Mr=gO,pO=9007199254740991;function vO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pO}var Fg=vO,yO=Lu,bO=Fg;function wO(e){return e!=null&&bO(e.length)&&!yO(e)}var Wo=wO,CO=Wo,NO=kn;function xO(e){return NO(e)&&CO(e)}var _O=xO,Gc={exports:{}};function SO(){return!1}var TO=SO;Gc.exports;(function(e,t){var n=fr,r=TO,s=t&&!t.nodeType&&t,o=s&&!0&&e&&!e.nodeType&&e,c=o&&o.exports===s,u=c?n.Buffer:void 0,d=u?u.isBuffer:void 0,h=d||r;e.exports=h})(Gc,Gc.exports);var Go=Gc.exports,EO=ra,OO=Nh,LO=kn,AO="[object Object]",VO=Function.prototype,$O=Object.prototype,Hg=VO.toString,DO=$O.hasOwnProperty,IO=Hg.call(Object);function kO(e){if(!LO(e)||EO(e)!=AO)return!1;var t=OO(e);if(t===null)return!0;var n=DO.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Hg.call(n)==IO}var Bg=kO,PO=ra,MO=Fg,RO=kn,FO="[object Arguments]",HO="[object Array]",BO="[object Boolean]",zO="[object Date]",UO="[object Error]",jO="[object Function]",WO="[object Map]",GO="[object Number]",KO="[object Object]",YO="[object RegExp]",XO="[object Set]",qO="[object String]",JO="[object WeakMap]",ZO="[object ArrayBuffer]",QO="[object DataView]",eL="[object Float32Array]",tL="[object Float64Array]",nL="[object Int8Array]",rL="[object Int16Array]",aL="[object Int32Array]",sL="[object Uint8Array]",iL="[object Uint8ClampedArray]",oL="[object Uint16Array]",lL="[object Uint32Array]",bt={};bt[eL]=bt[tL]=bt[nL]=bt[rL]=bt[aL]=bt[sL]=bt[iL]=bt[oL]=bt[lL]=!0;bt[FO]=bt[HO]=bt[ZO]=bt[BO]=bt[QO]=bt[zO]=bt[UO]=bt[jO]=bt[WO]=bt[GO]=bt[KO]=bt[YO]=bt[XO]=bt[qO]=bt[JO]=!1;function cL(e){return RO(e)&&MO(e.length)&&!!bt[PO(e)]}var uL=cL;function dL(e){return function(t){return e(t)}}var Du=dL,Kc={exports:{}};Kc.exports;(function(e,t){var n=cg,r=t&&!t.nodeType&&t,s=r&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===r,c=o&&n.process,u=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=u})(Kc,Kc.exports);var Iu=Kc.exports,fL=uL,hL=Du,x6=Iu,_6=x6&&x6.isTypedArray,mL=_6?hL(_6):fL,ku=mL;function gL(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var zg=gL,pL=wh,vL=jo,yL=Object.prototype,bL=yL.hasOwnProperty;function wL(e,t,n){var r=e[t];(!(bL.call(e,t)&&vL(r,n))||n===void 0&&!(t in e))&&pL(e,t,n)}var Ug=wL,CL=Ug,NL=wh;function xL(e,t,n,r){var s=!n;n||(n={});for(var o=-1,c=t.length;++o<c;){var u=t[o],d=r?r(n[u],e[u],u,n,e):void 0;d===void 0&&(d=e[u]),s?NL(n,u,d):CL(n,u,d)}return n}var Ko=xL;function _L(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var SL=_L,TL=9007199254740991,EL=/^(?:0|[1-9]\d*)$/;function OL(e,t){var n=typeof e;return t=t??TL,!!t&&(n=="number"||n!="symbol"&&EL.test(e))&&e>-1&&e%1==0&&e<t}var jg=OL,LL=SL,AL=xh,VL=Mr,$L=Go,DL=jg,IL=ku,kL=Object.prototype,PL=kL.hasOwnProperty;function ML(e,t){var n=VL(e),r=!n&&AL(e),s=!n&&!r&&$L(e),o=!n&&!r&&!s&&IL(e),c=n||r||s||o,u=c?LL(e.length,String):[],d=u.length;for(var h in e)(t||PL.call(e,h))&&!(c&&(h=="length"||s&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||DL(h,d)))&&u.push(h);return u}var Wg=ML;function RL(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var FL=RL,HL=dr,BL=$u,zL=FL,UL=Object.prototype,jL=UL.hasOwnProperty;function WL(e){if(!HL(e))return zL(e);var t=BL(e),n=[];for(var r in e)r=="constructor"&&(t||!jL.call(e,r))||n.push(r);return n}var GL=WL,KL=Wg,YL=GL,XL=Wo;function qL(e){return XL(e)?KL(e,!0):YL(e)}var Yo=qL,JL=Ko,ZL=Yo;function QL(e){return JL(e,ZL(e))}var eA=QL,S6=Vg,tA=$g,nA=Ig,rA=kg,aA=Mg,T6=xh,E6=Mr,sA=_O,iA=Go,oA=Lu,lA=dr,cA=Bg,uA=ku,O6=zg,dA=eA;function fA(e,t,n,r,s,o,c){var u=O6(e,n),d=O6(t,n),h=c.get(d);if(h){S6(e,n,h);return}var f=o?o(u,d,n+"",e,t,c):void 0,m=f===void 0;if(m){var p=E6(d),y=!p&&iA(d),b=!p&&!y&&uA(d);f=d,p||y||b?E6(u)?f=u:sA(u)?f=rA(u):y?(m=!1,f=tA(d,!0)):b?(m=!1,f=nA(d,!0)):f=[]:cA(d)||T6(d)?(f=u,T6(u)?f=dA(u):(!lA(u)||oA(u))&&(f=aA(d))):m=!1}m&&(c.set(d,f),s(f,d,r,o,c),c.delete(d)),S6(e,n,f)}var hA=fA,mA=bh,gA=Vg,pA=BE,vA=hA,yA=dr,bA=Yo,wA=zg;function Gg(e,t,n,r,s){e!==t&&pA(t,function(o,c){if(s||(s=new mA),yA(o))vA(e,t,c,n,Gg,r,s);else{var u=r?r(wA(e,c),o,c+"",e,t,s):void 0;u===void 0&&(u=o),gA(e,c,u)}},bA)}var CA=Gg;function NA(e){return e}var Kg=NA;function xA(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _A=xA,SA=_A,L6=Math.max;function TA(e,t,n){return t=L6(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=L6(r.length-t,0),c=Array(o);++s<o;)c[s]=r[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=r[s];return u[t]=n(c),SA(e,this,u)}}var EA=TA;function OA(e){return function(){return e}}var LA=OA,AA=LA,A6=Ag,VA=Kg,$A=A6?function(e,t){return A6(e,"toString",{configurable:!0,enumerable:!1,value:AA(t),writable:!0})}:VA,DA=$A,IA=800,kA=16,PA=Date.now;function MA(e){var t=0,n=0;return function(){var r=PA(),s=kA-(r-n);if(n=r,s>0){if(++t>=IA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var RA=MA,FA=DA,HA=RA,BA=HA(FA),zA=BA,UA=Kg,jA=EA,WA=zA;function GA(e,t){return WA(jA(e,t,UA),e+"")}var KA=GA,YA=jo,XA=Wo,qA=jg,JA=dr;function ZA(e,t,n){if(!JA(n))return!1;var r=typeof t;return(r=="number"?XA(n)&&qA(t,n.length):r=="string"&&t in n)?YA(n[t],e):!1}var QA=ZA,eV=KA,tV=QA;function nV(e){return eV(function(t,n){var r=-1,s=n.length,o=s>1?n[s-1]:void 0,c=s>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,c&&tV(n[0],n[1],c)&&(o=s<3?void 0:o,s=1),t=Object(t);++r<s;){var u=n[r];u&&e(t,u,r,o)}return t})}var rV=nV,aV=CA,sV=rV,iV=sV(function(e,t,n){aV(e,t,n)}),oV=iV;const _h=Kt(oV),lV={lang:"zh-cn",steps:{step1:"步骤1",step2:"步骤2",step3:"步骤3"},datePicker:{selectDate:"选择日期",selectTime:"选择时间",clear:"清除",ok:"确定",weekdays:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},hour:"时",min:"分",sec:"秒",toNow:"至今"},dialog:{ok:"确定",cancel:"取消",prev:"上一步",next:"下一步"},popConfirm:{ok:"确定",cancel:"取消"},form:{notBeEmpty:"不能为空",incorrectFormat:"格式不正确",max:"最大值",min:"最小值",maxLen:"最大长度",verifyError:"验证错误"},pagination:{eachPage:"每页",strip:"条",total:"共计"},process:{step1:"步骤1",step2:"步骤2",step3:"步骤3",step4:"步骤4"},searchSelect:{pleaseSelect:"请选择",loading:"加载中...",filterQueryMustHasValue:"包含键值的过滤查询必须有一个值",ok:"确认",cancel:"取消",or:"或",and:"且",logical:"逻辑:"},select:{noData:"无数据",noMatchedData:"无匹配数据",loading:"加载中...",pleaseSelect:"请选择",enterKeywords:"请输入关键字",all:"全部",selectAll:"全选"},table:{emptyText:"暂无数据",confirm:"确定",reset:"重置",sort:"排序",setting:{title:"表格设置",fields:{title:"字段显示设置",subtitle:e=>`(最多${e}项)`,selectAll:"全选"},lineHeight:{title:"表格行高",small:"小",medium:"中",large:"大"},options:{ok:"确认",cancel:"取消"}}},transfer:{sourceList:"源列表",targetList:"目标列表",removeAll:"清空",selectAll:"选择全部",noData:"无数据",noSelected:"未选择任何项",search:"搜索"},upload:{uploadSuccess:"上传成功",uploadFailed:"上传失败",drapFileOr:"将文件拖到此处或",clickUpload:"点击上传",uploadLabel:"上传文件"},input:{placeholder:"请输入",maxlengthLimitTips:"已达到字数上限"},tagInput:{placeholder:"请输入并按Enter结束"},message:{assistant:"助手",details:"详情",copySuccess:"复制成功",copyFailed:"复制失败"},cascader:{pleaseSelect:"请选择",noData:"无数据",emptyText:"暂无搜索结果"},versionLog:{current:"当前版本"}},hi=Symbol("rootProviderData"),ds={locale:lV,prefix:"bk"},w0=e=>{document.documentElement.style.setProperty("--bk-prefix",e||ds.prefix)},Sh=(e,t)=>{const n=a.reactive({..._h(ds,e)});if(w0(e.prefix),Object.keys(e).forEach(r=>{a.watch(()=>e[r],()=>{r==="prefix"&&w0(e[r]),n[r]=e[r]})}),!a.getCurrentInstance()&&(t!=null&&t.provide)){t.provide(hi,n);return}a.provide(hi,n)},cV=()=>{const e=a.inject(hi,ds);return a.computed(()=>e)},uV={locale:{type:Object},prefix:{type:String,default:"bk"}},dV=a.defineComponent({name:"ConfigProvider",inheritAttrs:!1,props:uV,setup(e,{slots:t}){return Sh(e),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}});function ut(e){const t=a.inject(hi,ds);return a.computed(()=>{const{locale:n}=t;return n&&e?n[e]:{}})}function xe(){const e=a.inject(hi,ds),t=a.computed(()=>{const{prefix:r}=e;return r||""});function n(r){return`${t.value}-${r.replace(new RegExp(`^${ds.prefix}-`),"")}`}return{prefix:t,resolveClassName:n}}const Yg=Qe(dV),oc=document.addEventListener?(e,t,n)=>{e&&t&&n&&e.addEventListener(t,n,!0)}:(e,t,n)=>{e&&t&&n&&e.attachEvent(`on${t}`,n)},Qf=document.removeEventListener?(e,t,n)=>{e&&t&&e.removeEventListener(t,n,!0)}:(e,t,n)=>{e&&t&&e.detachEvent(`on${t}`,n)},fV=a.defineComponent({name:"Affix",props:{offsetTop:v.number.def(0),offsetBottom:v.number,target:v.string.def(""),zIndex:v.number.def(1e3)},emits:["change"],setup(e,{emit:t,slots:n}){const r=a.ref(null),s=a.ref(null),o=a.ref(),c=a.ref({}),{proxy:u}=a.getCurrentInstance(),d=a.ref(0),h=a.computed(()=>({...c.value,"z-index":e.zIndex}));a.onMounted(()=>{d.value=u.$el.offsetWidth,o.value=e.target?document.querySelector(e.target):window,oc(o.value,"scroll",N),oc(o.value,"resize",N),a.nextTick(()=>{C()})});const{resolveClassName:f}=xe(),m=a.ref(!1),p=a.computed(()=>ze({[`${f("affix")}`]:m.value})),y=a.computed(()=>e.offsetBottom>=0?"bottom":"top"),b=()=>{y.value==="top"?c.value={top:`${o.value.getBoundingClientRect().top+e.offsetTop}px`}:c.value={bottom:`${window.innerHeight-o.value.getBoundingClientRect().bottom+e.offsetBottom}px`}},N=Nu(()=>{C()},100),w=E=>{const _=E.value.getBoundingClientRect(),x=o.value===window?{top:0,left:0}:o.value.getBoundingClientRect(),O=o.value.clientTop||0,T=o.value.clientLeft||0;return{top:_.top-x.top-O,left:_.left-x.left-T}},C=()=>{const E=o.value===window?{top:0,left:0,bottom:window.innerHeight}:o.value.getBoundingClientRect(),_=w(s),x=o.value===window?o.value.innerHeight:o.value.clientHeight,O=r.value.offsetHeight;_.top<e.offsetTop&&y.value==="top"&&!m.value?(m.value=!0,c.value={position:"fixed",top:`${E.top+e.offsetTop}px`,left:`${E.left+_.left}px`,width:`${d.value}px`},o.value!==window&&oc(window,"scroll",b),t("change",!0)):_.top>e.offsetTop&&y.value==="top"&&m.value&&(m.value=!1,c.value=null,t("change",!1)),_.top+e.offsetBottom+O>x&&y.value==="bottom"&&!m.value?(m.value=!0,c.value={bottom:`${window.innerHeight-E.bottom+e.offsetBottom}px`,left:`${E.left+_.left}px`,width:`${d.value}px`},o.value!==window&&oc(window,"scroll",b),t("change",!0)):_.top+e.offsetBottom+O<x&&y.value==="bottom"&&m.value&&(m.value=!1,c.value=null,t("change",!1))};return a.onBeforeUnmount(()=>{Qf(o.value,"scroll",N),Qf(o.value,"resize",N),Qf(window,"scroll",b)}),()=>{var E;return a.createVNode("div",{ref:s},[a.createVNode("div",{ref:r,style:h.value,class:p.value},[(E=n.default)==null?void 0:E.call(n)])])}}}),Xg=Qe(fV);function qg(e,t,n){return a.h(e.name,{key:t,...e.attributes,style:`${e.attributes.style} ${n||""}`},(e.elements||[]).map((r,s)=>qg(r,`${t}-${e.name}-${s}`)))}const De=(e,t)=>{const{data:n,name:r,width:s,height:o,fill:c,...u}={...t.attrs,...e},d=`width: ${s}; height: ${o}; fill: ${c}`,h={display:"inline-flex","align-items":"center","justify-content":"center"};return a.createVNode("span",a.mergeProps({style:h},u),[qg(n,r,d)])};De.inheritAttrs=!1;De.displayName="bkIcon";const hV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 744.64L789.6 462.72 880 554.56 512 928 144 554.56 234.4 462.72 512 744.64z"}},{"type":"element","name":"path","attributes":{"d":"M144 187.68L234.4 96 512 377.76 789.6 96 880 187.68 512 561.28 144 187.68z"}}]}'),Pu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:hV,name:"angleDoubleDownLine"}),null)};Pu.displayName="angleDoubleDownLine";Pu.inheritAttrs=!1;const mV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M697.6 281.6l48 48-176 176 176 176-48 48-224-224L697.6 281.6z"}},{"type":"element","name":"path","attributes":{"d":"M505.6 281.6l48 48-176 176 176 176-48 48-224-224L505.6 281.6z"}}]}'),mi=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:mV,name:"angleDoubleLeft"}),null)};mi.displayName="angleDoubleLeft";mi.inheritAttrs=!1;const gV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M279.36 512L561.28 789.6 469.44 880 96 512 469.44 144 561.28 234.4 279.36 512z"}},{"type":"element","name":"path","attributes":{"d":"M836.32 144L928 234.4 646.08 512 928 789.6 836.32 880 462.72 512 836.32 144z"}}]}'),Th=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:gV,name:"angleDoubleLeftLine"}),null)};Th.displayName="angleDoubleLeftLine";Th.inheritAttrs=!1;const pV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M358.4 729.6l-48-48 176-176-176-176 48-48 224 224L358.4 729.6z"}},{"type":"element","name":"path","attributes":{"d":"M550.4 729.6l-48-48 176-176-176-176 48-48 224 224L550.4 729.6z"}}]}'),gi=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:pV,name:"angleDoubleRight"}),null)};gi.displayName="angleDoubleRight";gi.inheritAttrs=!1;const vV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M744.64 512L462.72 789.6 554.56 880 928 512 554.56 144 462.72 234.4 744.64 512z"}},{"type":"element","name":"path","attributes":{"d":"M187.68 144L96 234.4 377.76 512 96 789.6 187.68 880 561.28 512 187.68 144z"}}]}'),Eh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:vV,name:"angleDoubleRightLine"}),null)};Eh.displayName="angleDoubleRightLine";Eh.inheritAttrs=!1;const yV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 279.36L789.6 561.28 880 469.44 512 96 144 469.44 234.4 561.28 512 279.36z"}},{"type":"element","name":"path","attributes":{"d":"M144 836.32L234.4 928 512 646.08 789.6 928 880 836.32 512 462.72 144 836.32z"}}]}'),Mu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:yV,name:"angleDoubleUpLine"}),null)};Mu.displayName="angleDoubleUpLine";Mu.inheritAttrs=!1;const bV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M288 448L336 400 512 576 688 400 736 448 512 672z"}}]}'),Ti=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:bV,name:"angleDown"}),null)};Ti.displayName="angleDown";Ti.inheritAttrs=!1;const wV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 256L96 704 187.04 704 512 704 836.96 704 928 704 512 256z"}}]}'),Ru=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:wV,name:"angleDownFill"}),null)};Ru.displayName="angleDownFill";Ru.inheritAttrs=!1;const CV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 762.56L98.72 349.28 189.28 258.72 512 581.44 834.72 258.72 925.28 349.28 512 762.56z"}}]}'),Oh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:CV,name:"angleDownLine"}),null)};Oh.displayName="angleDownLine";Oh.inheritAttrs=!1;const NV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M376 504L600 280 648 328 472 504 648 680 600 728 376 504z"}}]}'),lr=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:NV,name:"angleLeft"}),null)};lr.displayName="angleLeft";lr.inheritAttrs=!1;const xV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M424 728L376 680 552 504 376 328 424 280 648 504 424 728z"}}]}'),Dn=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:xV,name:"angleRight"}),null)};Dn.displayName="angleRight";Dn.inheritAttrs=!1;const _V=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 368L736 592 688 640 512 464 336 640 288 592 512 368z"}}]}'),Ei=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:_V,name:"angleUp"}),null)};Ei.displayName="angleUp";Ei.inheritAttrs=!1;const SV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 704L96 256 187.04 256 512 256 836.96 256 928 256 512 704z"}}]}'),Xo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:SV,name:"angleUpFill"}),null)};Xo.displayName="angleUpFill";Xo.inheritAttrs=!1;const TV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1194.667","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M661.331584 0C696.6651477333332 0 745.9971968 20.667040213333333 770.6658858666666 45.333077333333335L978.6642816 253.3329224533333C1003.3316394666667 278.00029312 1024 327.33370112 1024 362.66728575999997L1024 1130.6680490666665C1024 1166.0002986666666 995.3336490666667 1194.6666666666665 959.9974143999999 1194.6666666666665L64 1194.6666666666665C28.666351530666663 1194.6666666666665 0 1166.0002986666666 0 1130.6680490666665L0 64C0 28.666367530666665 28.667684991999998 0 64 0L661.331584 0ZM224 522.6666666666666L138.66666666666666 522.6666666666666 138.66666666666666 818.6666666666666 309.3333333333333 818.6666666666666 309.3333333333333 605.3333333333333 224 605.3333333333333 224 522.6666666666666ZM245.33333333333331 669.3333333333333L245.33333333333331 754.6666666666666 202.66666666666666 754.6666666666666 202.66666666666666 669.3333333333333 245.33333333333331 669.3333333333333ZM309.3333333333333 437.3333333333333L224 437.3333333333333 224 522.6666666666666 309.3333333333333 522.6666666666666 309.3333333333333 437.3333333333333ZM224 352L138.66666666666666 352 138.66666666666666 437.3333333333333 224 437.3333333333333 224 352ZM309.3333333333333 266.66666666666663L224 266.66666666666663 224 352 309.3333333333333 352 309.3333333333333 266.66666666666663ZM682.6666666666666 90.66615466666667L682.6666666666666 341.33352362666665 933.3325610666667 341.33352362666665C929.3322325333334 329.9992546133333 923.3317418666667 318.66631850666664 918.6646911999999 313.9992661333333L709.9995776000001 105.33269930666667C705.3325269333333 100.66564736 693.9982634666667 94.66648490666667 682.6666666666666 90.66615466666667ZM224 181.33333333333331L138.66666666666666 181.33333333333331 138.66666666666666 266.66666666666663 224 266.66666666666663 224 181.33333333333331ZM309.3333333333333 96L224 96 224 181.33333333333331 309.3333333333333 181.33333333333331 309.3333333333333 96Z"}}]}'),Fu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:TV,name:"archiveFill"}),null)};Fu.displayName="archiveFill";Fu.inheritAttrs=!1;const EV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M416 480h320v64H416l96 96-48 48L288 512l176-176L512 384 416 480z"}}]}'),Hu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:EV,name:"arrowsLeft"}),null)};Hu.displayName="arrowsLeft";Hu.inheritAttrs=!1;const OV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M608 480H288v64H608l-96 96 48 48L736 512l-176-176L512 384Z"}}]}'),Bu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:OV,name:"arrowsRight"}),null)};Bu.displayName="arrowsRight";Bu.inheritAttrs=!1;const LV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M872.2005344 454.6197344C868.4842656 256.2432 714.7029344 96 525.8666656 96L498.1333344 96C309.29706656 96 155.51573344 256.2432 151.79946656 454.592 118.6304 473.8112 96 509.2821344 96 550.2997344L96 605.7664C96 666.9461344 145.7536 716.6997344 206.93333344 716.6997344 268.11306656 716.6997344 317.86666656 666.9461344 317.86666656 605.7664L317.86666656 550.2997344C317.7785456 489.497792 268.78616896 440.0849856 207.9872 439.4773344 218.83093344 278.76266656 344.6570656 151.46666656 498.1333344 151.46666656L525.8666656 151.46666656C679.3706656 151.46666656 805.1690656 278.76266656 816.0128 439.4773344 755.2138304 440.0849856 706.2214528 489.497792 706.1333344 550.2997344L706.1333344 605.7664C706.1333344 655.8528 739.6906656 697.7856 785.3397344 711.5136 744.1415296 765.7429664 685.3117728 803.896976 618.9952 819.3962656 609.606016 791.2394976 583.2809152 772.2269248 553.6 772.1664 515.308256 772.1664 484.2666656 803.2079904 484.2666656 841.4997344 484.2666656 879.7914752 515.308256 910.8330656 553.6 910.8330656 577.6172576 910.8011136 599.8929248 898.2927104 612.4224 877.8026656 713.585648 860.1046336 801.8067392 798.720208 853.5637344 710.016 896.7722656 694.8736 928 654.1056 928 605.7664L928 550.2997344C928 509.2821344 905.3696 473.8112 872.2005344 454.6197344ZM262.4 550.2997344L262.4 605.7664C262.4 636.3562656 237.5232 661.2330656 206.93333344 661.2330656 176.34346656 661.2330656 151.46666656 636.3562656 151.46666656 605.7664L151.46666656 550.2997344C151.46666656 519.7098656 176.34346656 494.8330656 206.93333344 494.8330656 237.5232 494.8330656 262.4 519.7098656 262.4 550.2997344ZM872.5333344 605.7664C872.5333344 635.4965344 848.96 659.6522656 819.5626656 660.9834656L817.3994656 659.9573344C817.2053344 660.4010656 816.9002656 660.7616 816.7061344 661.1776 786.235248 660.9795488 761.6298272 636.2379136 761.6 605.7664L761.6 550.2997344C761.6 519.7098656 786.4768 494.8330656 817.0666656 494.8330656 847.6565344 494.8330656 872.5333344 519.7098656 872.5333344 550.2997344L872.5333344 605.7664Z"}}]}'),zu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:LV,name:"assistant"}),null)};zu.displayName="assistant";zu.inheritAttrs=!1;const AV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M664.4363636363637 0C676.8000000000001 0 688.5818181818182 4.945454545454545 697.3090909090909 13.672727272727274L697.3090909090909 13.672727272727274 1010.3272727272728 326.6909090909091C1019.0545454545455 335.41818181818184 1024 347.3454545454546 1024 359.70909090909095L1024 359.70909090909095 1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L977.4545454545455 1303.2727272727273 46.54545454545455 1303.2727272727273C20.8 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 1256.7272727272727 0 46.54545454545455C0 20.8 20.8 0 46.54545454545455 0L46.54545454545455 0ZM655.2545466181818 560.2713367272728L460.52727249454546 619.8349730909091C436.9818181818182 626.5804288 417.7636361309091 651.1440616727273 417.7636361309091 674.6895173818182L417.7636361309091 880.1077015272728C417.7636361309091 880.1077015272728 403.6363636363636 870.5622434909092 372.19999976727274 875.0167924363637 326 881.6349742545455 288.5818181818182 917.016790109091 288.5818181818182 954.1804264727273 288.5818181818182 991.3440628363637 326 1014.1258798545455 372.19999976727274 1007.5076980363638 418.4 1001.016790109091 452.2545454545455 966.6531560727274 452.2545454545455 929.4895197090908L452.2545454545455 754.1076992000001C452.2545454545455 737.5622469818182 472.10908858181824 730.562243490909 472.10908858181824 730.562243490909L644.3090897454546 676.5986071272727C644.3090897454546 676.5986071272727 663.4000011636364 670.2349730909091 663.4000011636364 687.7986071272728L663.4000011636364 828.689519709091C663.4000011636364 828.689519709091 645.8363624727273 818.6349707636364 614.4 822.4531549090909 568.2000011636363 828.053154909091 530.7818170181819 862.6713367272728 530.7818170181819 899.8349730909091 530.7818170181819 936.9986094545455 568.2000011636363 960.5440651636363 614.4 954.9440651636363 660.5999988363636 949.3440651636365 698.0181829818182 914.7258833454546 698.0181829818182 877.5622469818182L698.0181829818182 590.8167912727273C698.0181829818182 567.1440616727273 678.9272715636364 553.5258810181818 655.2545466181818 560.2713367272728ZM642.9090909090909 107.34545454545454L642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091 642.9090909090909 107.34545454545454Z"}}]}'),Uu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:AV,name:"audioFill"}),null)};Uu.displayName="audioFill";Uu.inheritAttrs=!1;const VV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M384 289.28c103.50933333333333 18.986666666666665 183.89333333333332 99.37066666666666 202.62399999999997 201.344l5.3759999999999994 37.376c1.664 83.62666666666667 32.59733333333333 159.7013333333333 82.94399999999999 218.70933333333335 32.72533333333333 37.84533333333333 81.024 62.29333333333333 135.08266666666665 63.53066666666667 2.9013333333333335 0.128 6.0586666666666655 0.21333333333333332 9.216 0.21333333333333332 49.834666666666664 0 95.488-17.962666666666664 130.81599999999997-47.78666666666667 47.40266666666666-42.367999999999995 77.312-104.10666666666665 77.312-172.79999999999998 0-13.952-1.2373333333333334-27.562666666666665-3.584-40.831999999999994-15.786666666666665-115.62666666666667-96.29866666666666-210.43200000000002-203.73333333333335-246.91199999999998-5.8453333333333335-59.98933333333333-33.49333333333333-112.21333333333332-75.47733333333332-148.224-37.33333333333333-34.432-87.03999999999999-55.42399999999999-141.61066666666665-55.42399999999999-15.445333333333332 0-30.506666666666664 1.664-45.01333333333333 4.864-50.986666666666665 13.141333333333332-95.01866666666666 42.83733333333333-126.208 83.072-5.333333333333333 6.143999999999999-8.362666666666666 13.568-8.362666666666666 21.674666666666667 0 9.685333333333332 4.309333333333333 18.389333333333333 11.136 24.27733333333333l3.8826666666666663 0.042666666666666665c-16.21333333333333-4.053333333333333-34.901333333333326-6.613333333333333-54.10133333333333-7.04-6.101333333333333-0.38399999999999995-12.927999999999999-0.6399999999999999-19.797333333333334-0.6399999999999999s-13.696 0.21333333333333332-20.43733333333333 0.6826666666666666l0.9386666666666665-10.922666666666666c2.1333333333333333-25.813333333333333 17.194666666666667-47.70133333333334 38.656-59.30666666666666 9.173333333333332-6.015999999999999 14.933333333333332-15.872 14.933333333333332-27.093333333333334 0-17.749333333333333-14.378666666666668-32.128-32.128-32.128-6.528 0-12.629333333333332 1.9626666666666666-17.706666666666663 5.333333333333333-21.290666666666667 13.653333333333332-38.18666666666667 32.81066666666666-48.81066666666666 55.42399999999999-15.274666666666665-6.442666666666666-32.85333333333333-10.709333333333333-51.413333333333334-10.709333333333333-8.661333333333333 0-17.109333333333332 0.9386666666666665-25.258666666666663 2.6879999999999997-14.037333333333333 3.1999999999999997-24.959999999999997 16.256-24.959999999999997 31.872 0 18.090666666666664 14.677333333333332 32.768 32.768 32.768 2.474666666666667 0 4.906666666666666-0.29866666666666664 7.253333333333334-0.8106666666666666 2.1333333333333333-0.29866666666666664 4.8213333333333335-0.512 7.552-0.512 18.048 0 34.176 8.405333333333333 44.629333333333335 21.546666666666667l0.08533333333333333 0.128c-122.24000000000001 28.16-197.12 139.51999999999998-240 236.79999999999998-33.28 74.88-80.63999999999999 215.67999999999998-24.319999999999997 316.79999999999995 29.610666666666663 61.056 88.96 103.55199999999999 158.72 108.75733333333332l704.64 0.042666666666666665c17.663999999999998 0 32-14.336 32-32s-14.336-32-32-32h-704c-46.848-4.906666666666666-85.80266666666667-34.474666666666664-103.97866666666665-75.34933333333333-44.50133333333333-80.17066666666666 3.498666666666667-208.81066666666666 26.538666666666664-260.65066666666667 65.91999999999999-147.2 156.79999999999998-217.59999999999997 275.84-206.71999999999997zM480 229.12c22.826666666666668-30.976 55.296-53.63199999999999 92.88533333333334-63.744 10.069333333333333-2.1759999999999997 20.266666666666666-3.2426666666666666 30.72-3.2426666666666666 37.888 0 72.448 14.250666666666667 98.60266666666666 37.67466666666667 31.786666666666665 28.8 51.754666666666665 70.39999999999999 51.754666666666665 116.69333333333333 0 1.2373333333333334 0 2.474666666666667-0.042666666666666665 3.7119999999999997l0 32.46933333333333 24.959999999999997 3.84c95.27466666666666 23.296 167.25333333333333 101.50399999999999 180.992 198.4 1.92 10.495999999999999 2.944 21.119999999999997 2.944 32 0 52.522666666666666-23.59466666666667 99.49866666666665-60.75733333333333 130.98666666666665-21.503999999999998 16.554666666666666-48.512 26.368-77.824 26.368-4.224 0-8.448-0.21333333333333332-12.586666666666666-0.5973333333333333 0.512 0.042666666666666665 0.512 0.042666666666666665 0.512 0.042666666666666665-35.583999999999996 0-67.54133333333333-15.530666666666665-89.472-40.19199999999999-39.38133333333333-48.768-63.40266666666666-111.18933333333332-64.08533333333332-179.15733333333333l-5.76-42.410666666666664c-22.954666666666668-111.744-100.30933333333333-201.38666666666666-202.58133333333333-241.152-1.1093333333333333-0.6399999999999999 0.21333333333333332-0.5546666666666666 1.5359999999999998-0.5546666666666666 10.239999999999998 0 19.413333333333334-4.522666666666666 25.599999999999998-11.690666666666667z"}}]}'),Lh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:VV,name:"bk"}),null)};Lh.displayName="bk";Lh.inheritAttrs=!1;const $V=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 0c-17.919999999999998 0-32 14.08-32 32s14.08 32 32 32c247.04 0 448 200.95999999999998 448 448 0 17.919999999999998 14.08 32 32 32s32-14.08 32-32c0-282.24-229.76-512-512-512z"}}]}'),qo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:$V,name:"circle"}),null)};qo.displayName="circle";qo.inheritAttrs=!1;const DV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM670.4 625.1l-45.3 45.3L512 557.3 398.9 670.4l-45.3-45.3L466.7 512 353.6 398.9l45.3-45.3L512 466.7l113.1-113.1 45.3 45.3L557.3 512 670.4 625.1z"}}]}'),bn=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:DV,name:"close"}),null)};bn.displayName="close";bn.inheritAttrs=!1;const IV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M902.56 166.56L857.44 121.44 512 466.72 166.56 121.44 121.44 166.56 466.72 512 121.44 857.44 166.56 902.56 512 557.28 857.44 902.56 902.56 857.44 557.28 512 902.56 166.56z"}}]}'),Jo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:IV,name:"closeLine"}),null)};Jo.displayName="closeLine";Jo.inheritAttrs=!1;const kV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M1011.1999999999999 489.59999999999997l-224-224c-12.799999999999999-12.799999999999999-32.64-12.799999999999999-45.44 0s-12.799999999999999 32.64 0 45.44l201.59999999999997 200.95999999999998-201.59999999999997 201.59999999999997c-12.799999999999999 12.799999999999999-12.799999999999999 32.64 0 45.44 6.3999999999999995 6.3999999999999995 14.719999999999999 9.6 22.4 9.6s16.64-3.1999999999999997 22.4-9.6l224-224c12.799999999999999-12.799999999999999 12.799999999999999-33.28 0.6399999999999999-45.44z"}},{"type":"element","name":"path","attributes":{"d":"M282.24 265.59999999999997c-12.799999999999999-12.799999999999999-32.64-12.799999999999999-45.44 0l-224 224c-12.799999999999999 12.799999999999999-12.799999999999999 32.64 0 45.44l224 224c6.3999999999999995 5.76 14.719999999999999 8.959999999999999 23.04 8.959999999999999s16.64-3.1999999999999997 22.4-9.6c12.799999999999999-12.799999999999999 12.799999999999999-32.64 0-45.44l-201.59999999999997-200.95999999999998 201.59999999999997-201.59999999999997c12.159999999999998-12.159999999999998 12.159999999999998-32.64 0-44.8z"}},{"type":"element","name":"path","attributes":{"d":"M616.3199999999999 129.27999999999997c-16.64-5.119999999999999-34.56 5.119999999999999-39.04 22.4l-192 704c-4.4799999999999995 17.28 5.119999999999999 34.56 22.4 39.04 2.5599999999999996 0.6399999999999999 5.76 1.2799999999999998 8.32 1.2799999999999998 14.08 0 26.88-9.6 30.72-23.68l192-704c4.4799999999999995-16.64-5.119999999999999-34.56-22.4-39.04z"}}]}'),Ah=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:kV,name:"code"}),null)};Ah.displayName="code";Ah.inheritAttrs=!1;const PV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M608 512A96 96 0 0 1 512 608 96 96 0 0 1 416 512 96 96 0 0 1 608 512z"}},{"type":"element","name":"path","attributes":{"d":"M860.8 558.4c4.8-30.4 4.8-62.4 0-92.8l67.2-57.6c9.6-8 14.4-22.4 9.6-35.2-19.2-59.2-51.2-115.2-92.8-161.6-6.4-6.4-14.4-11.2-24-11.2-3.2 0-8 0-11.2 1.6l-83.2 30.4c-24-19.2-52.8-35.2-81.6-46.4l-16-86.4c-1.6-12.8-12.8-22.4-25.6-25.6-60.8-12.8-124.8-12.8-185.6 0-12.8 3.2-22.4 12.8-24 25.6l-16 86.4c-28.8 11.2-56 27.2-81.6 46.4l-83.2-30.4c-3.2-1.6-6.4-1.6-11.2-1.6-9.6 0-17.6 3.2-24 11.2-41.6 46.4-73.6 100.8-92.8 161.6-4.8 12.8 0 27.2 9.6 35.2l67.2 57.6C160 496 160 528 163.2 558.4L96 616c-9.6 8-14.4 22.4-9.6 35.2 19.2 59.2 51.2 115.2 92.8 161.6 6.4 6.4 14.4 11.2 24 11.2 3.2 0 8 0 11.2-1.6l83.2-30.4c24 19.2 52.8 35.2 81.6 46.4l16 86.4c1.6 12.8 12.8 22.4 25.6 25.6 60.8 12.8 124.8 12.8 185.6 0 12.8-3.2 22.4-12.8 25.6-25.6l16-86.4c28.8-11.2 56-27.2 81.6-46.4l83.2 30.4c3.2 1.6 6.4 1.6 11.2 1.6 9.6 0 17.6-3.2 24-11.2 41.6-46.4 73.6-100.8 92.8-161.6 3.2-12.8 0-27.2-11.2-35.2L860.8 558.4zM512 672c-88 0-160-72-160-160s72-160 160-160 160 72 160 160S600 672 512 672z"}}]}'),ju=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:PV,name:"cogShape"}),null)};ju.displayName="cogShape";ju.inheritAttrs=!1;const MV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M496 216l-76.32 76.32 152.64 152.8H64v101.76H572.16l-152.48 152.8L496 776 775.52 496Zm362.4 0v560H960v-560Z"}}]}'),Wu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:MV,name:"collapseLeft"}),null)};Wu.displayName="collapseLeft";Wu.inheritAttrs=!1;const RV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M864 128H288c-17.6 0-32 14.4-32 32v96h-96c-17.6 0-32 14.4-32 32v576c0 17.6 14.4 32 32 32h576c17.6 0 32-14.4 32-32v-96h96c17.6 0 32-14.4 32-32V160C896 142.4 881.6 128 864 128zM704 704v64 64H192V320h64 64 384V704zM832 704h-64V288c0-17.6-14.4-32-32-32H320v-64h512V704z"}},{"type":"element","name":"path","attributes":{"d":"M275.2 419.2H611.2V483.2H275.2z"}},{"type":"element","name":"path","attributes":{"d":"M272 544H608V608H272z"}},{"type":"element","name":"path","attributes":{"d":"M272 672H608V736H272z"}}]}'),Vh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:RV,name:"copy"}),null)};Vh.displayName="copy";Vh.inheritAttrs=!1;const FV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M893.3333344 96C912.4693344 96 928 111.53066656 928 130.66666656L928 754.6666656C928 773.8026656 912.4693344 789.3333344 893.3333344 789.3333344L789.3333344 789.3333344 789.3333344 893.3333344C789.3333344 912.4693344 773.8026656 928 754.6666656 928L130.66666656 928C111.53066656 928 96 912.4693344 96 893.3333344L96 269.33333344C96 250.19733344 111.53066656 234.66666656 130.66666656 234.66666656L234.66666656 234.66666656 234.66666656 130.66666656C234.66666656 111.53066656 250.19733344 96 269.33333344 96ZM720 304L165.33333344 304 165.33333344 858.6666656 720 858.6666656 720 304ZM625.454544 663.2727264L625.454544 738.9090912 247.27272736 738.9090912 247.27272736 663.2727264 625.454544 663.2727264ZM858.6666656 165.33333344L304 165.33333344 304 234.66666656 754.6666656 234.66666656C773.8026656 234.66666656 789.3333344 250.19733344 789.3333344 269.33333344L789.3333344 720 858.6666656 720 858.6666656 165.33333344ZM625.454544 549.8181824L625.454544 625.454544 247.27272736 625.454544 247.27272736 549.8181824 625.454544 549.8181824ZM625.454544 436.3636352L625.454544 512 247.27272736 512 247.27272736 436.3636352 625.454544 436.3636352Z"}}]}'),Gu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:FV,name:"copyShape"}),null)};Gu.displayName="copyShape";Gu.inheritAttrs=!1;const HV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1170.2857142857142","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M176.27428571428572 248.68571428571425c100.74209523809523 24.673523809523807 216.40533333333332 38.863238095238096 335.335619047619 38.863238095238096s234.5935238095238-14.14095238095238 345.38057142857144-40.86247619047619c106.30095238095238-27.209142857142858 167.00952380952378-74.02057142857143 167.00952380952378-100.35199999999999 0-49.00571428571428-180.66285714285715-146.28571428571428-512-146.28571428571428s-512 95.81714285714285-512 146.28571428571428c0 26.33142857142857 60.70857142857143 73.14285714285714 176.27428571428572 102.4z"}},{"type":"element","name":"path","attributes":{"d":"M856.5028571428571 923.7942857142857c-99.2304761904762 25.6-213.13828571428573 40.27733333333333-330.45942857142853 40.27733333333333-4.924952380952381 0-9.849904761904762-0.04876190476190476-14.774857142857142-0.09752380952380953-3.4620952380952374 0.04876190476190476-8.387047619047618 0.09752380952380953-13.360761904761905 0.09752380952380953-117.32114285714286 0-231.18019047619046-14.677333333333332-339.87047619047615-42.37409523809524-113.37142857142858 37.156571428571425-157.98857142857142 81.77371428571428-157.98857142857142 102.25371428571428 0 49.00571428571428 180.66285714285715 146.28571428571428 512 146.28571428571428s512-95.08571428571427 512-146.28571428571428c0-20.479999999999997-44.61714285714286-65.09714285714286-167.49714285714285-100.2057142857143z"}},{"type":"element","name":"path","attributes":{"d":"M856.5028571428571 626.8342857142857c-103.37523809523809 25.063619047619046-222.0617142857143 39.44838095238095-344.16152380952377 39.44838095238095s-240.73752380952382-14.384761904761904-354.4990476190476-41.54514285714286c-113.27390476190476 37.20533333333333-157.8910476190476 82.55390476190476-157.8910476190476 106.69104761904762 0 49.00571428571428 180.66285714285715 146.28571428571428 512 146.28571428571428s512-95.08571428571427 512-146.28571428571428c0-24.137142857142855-44.61714285714286-69.48571428571428-167.49714285714285-104.5942857142857z"}},{"type":"element","name":"path","attributes":{"d":"M856.5028571428571 332.0685714285714h-13.165714285714285c-99.42552380952381 25.40495238095238-213.62590476190476 40.03352380952381-331.23961904761904 40.22857142857142-3.072 0-6.534095238095238 0.04876190476190476-10.04495238095238 0.04876190476190476-114.00533333333333 0-224.88990476190475-13.604571428571429-330.9958095238095-39.30209523809524l-2.8769523809523805 1.9504761904761905c-123.61142857142858 30.72-168.22857142857143 77.53142857142858-168.22857142857143 99.47428571428571 0 49.00571428571428 180.66285714285715 146.28571428571428 512 146.28571428571428s512-95.81714285714285 512-146.28571428571428c0-21.942857142857143-44.61714285714286-68.7542857142857-167.49714285714285-102.4z"}}]}'),$h=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:HV,name:"dataShape"}),null)};$h.displayName="dataShape";$h.inheritAttrs=!1;const BV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M928 224H672v-64c0-35.2-28.8-64-64-64H416c-35.2 0-64 28.8-64 64v64H96v64h112v576c0 35.2 28.8 64 64 64h480c35.2 0 64-28.8 64-64V288h112V224zM432 160h160c9.6 0 16 6.4 16 16v48H416v-48C416 166.4 422.4 160 432 160zM736 864H288c-9.6 0-16-6.4-16-16V288h480v560C752 857.6 745.6 864 736 864z"}},{"type":"element","name":"path","attributes":{"d":"M576 400H640V752H576V400z"}},{"type":"element","name":"path","attributes":{"d":"M384 400H448V752H384V400z"}}]}'),pi=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:BV,name:"del"}),null)};pi.displayName="del";pi.inheritAttrs=!1;const zV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1097.143","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M698.6979072 34.411393901714284C704.0406784 39.04304329142857 707.1085714285714 45.76605271771429 707.1085714285714 52.83693527771428L707.1085714285714 1069.3276013714285C707.1085714285714 1076.3886738285712 704.0452278857143 1083.1024822857141 698.7138852571428 1087.7323337142855 693.3825389714286 1092.362185142857 686.3058176 1094.453295542857 679.3142857142858 1093.4647442285714L66.27961892571427 1005.9371263999999C42.24804234971429 1002.5144795428571 24.393142857142855 981.9369252571428 24.393142857142855 957.6628406857142L24.393142857142855 164.50169709714285C24.393142857142855 140.22761252571428 42.24804234971429 119.65005750857142 66.27961892571427 116.22741138285714L66.32838107428572 116.22741138285714 679.2655250285715 28.699792423131427C686.2647552000001 27.695727027199997 693.355136 29.77974452662857 698.6979072 34.411393901714284ZM950.9180964571428 122.22512566857142C977.8485504 122.22512566857142 999.68 144.05657417142857 999.68 170.9870306742857L999.68 951.1775049142856C999.68 978.1079625142856 977.8485504 999.9394121142856 950.9180964571428 999.9394121142856L755.8704749714285 999.9394121142856 755.8704749714285 902.4156013714285 902.1561892571428 902.4156013714285 902.1561892571428 219.7489353142857 755.8704749714285 219.7489353142857 755.8704749714285 122.22512566857142 950.9180964571428 122.22512566857142ZM268.25142857142856 366.03464959999997L170.72761892571427 366.03464959999997 170.72761892571427 756.1298870857141 268.25142857142856 756.1298870857141 365.7752382171428 658.606076342857 463.2990464 756.1298870857141 560.8228571428571 756.1298870857141 560.8228571428571 366.03464959999997 463.2990464 366.03464959999997 463.2990464 609.3077906285713 365.7752382171428 512.3203620571429 268.73904749714285 609.8441727999999 268.25142857142856 366.03464959999997Z"}}]}'),Dh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:zV,name:"docFill"}),null)};Dh.displayName="docFill";Dh.inheritAttrs=!1;const UV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M704 352l48 48-304 304-176-176 48-48 128 128z"}}]}'),ps=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:UV,name:"done"}),null)};ps.displayName="done";ps.inheritAttrs=!1;const jV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 768c-6.3999999999999995 0-13.44-2.5599999999999996-18.56-8.32l-356.48-384c-8.32-8.959999999999999-10.879999999999999-23.04-7.04-35.199999999999996s14.08-20.479999999999997 25.599999999999998-20.479999999999997h712.96c11.52 0 21.119999999999997 8.32 25.599999999999998 20.479999999999997s1.2799999999999998 26.24-7.04 35.199999999999996l-356.48 384c-5.119999999999999 5.76-12.159999999999998 8.32-18.56 8.32z"}}]}'),Zo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:jV,name:"downShape"}),null)};Zo.displayName="downShape";Zo.inheritAttrs=!1;const WV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M288 448L336 400 512 576 688 400 736 448 512 672z"}}]}'),Ao=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:WV,name:"downSmall"}),null)};Ao.displayName="downSmall";Ao.inheritAttrs=!1;const GV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M609.6 201.6L203.2 609.6 203.2 710.4 304 710.4 712 304z"}},{"type":"element","name":"path","attributes":{"d":"M128 800H896V896H128z"}},{"type":"element","name":"path","attributes":{"d":"M683.6717566325265 128.04165515828316L785.4933559547056 229.86680878681256 740.2377321198037 275.1208529300033 638.4161327976245 173.2956993014738z"}}]}'),Ku=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:GV,name:"editLine"}),null)};Ku.displayName="editLine";Ku.inheritAttrs=!1;const KV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M320 512c0 35.199999999999996-28.8 64-64 64s-64-28.8-64-64c0-35.199999999999996 28.8-64 64-64s64 28.8 64 64zM512 448c-35.199999999999996 0-64 28.8-64 64s28.8 64 64 64 64-28.8 64-64c0-35.199999999999996-28.8-64-64-64zM768 448c-35.199999999999996 0-64 28.8-64 64s28.8 64 64 64 64-28.8 64-64c0-35.199999999999996-28.8-64-64-64z"}}]}'),Vo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:KV,name:"ellipsis"}),null)};Vo.displayName="ellipsis";Vo.inheritAttrs=!1;const YV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M885.76 840.64l-148.96-149.12a344.16 344.16 0 1 0-45.28 45.28l149.12 148.96a32 32 0 1 0 45.12-45.12ZM472 752A280 280 0 1 1 752 472 280.32 280.32 0 0 1 472 752Z"}},{"type":"element","name":"path","attributes":{"d":"M576 448H496V368a32 32 0 0 0-64 0v80H352a32 32 0 0 0 0 64h80v80a32 32 0 0 0 64 0V512h80a32 32 0 0 0 0-64Z"}}]}'),Ih=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:YV,name:"enlargeLine"}),null)};Ih.displayName="enlargeLine";Ih.inheritAttrs=!1;const XV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M452.7573333333333 510.91200000000003L225.83338666666668 737.8346666666666 286.1730133333333 798.1738666666666 513.0965333333334 571.2511999999999 739.8399999999999 797.9946666666666 797.9946666666666 739.8399999999999 571.2511999999999 513.0965333333334 798.1738666666666 286.1730133333333 737.8346666666666 225.83338666666668 510.91200000000003 452.7573333333333 283.9867733333333 225.83338666666668 225.83338666666668 283.9867733333333 452.7573333333333 510.91200000000003Z","clip-rule":"evenodd"}}]}'),an=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:XV,name:"error"}),null)};an.displayName="error";an.inheritAttrs=!1;const qV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1097.143","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M698.6369535999999 21.90055387428571C703.9797248 26.53220315428571 707.0476178285713 33.25521261714285 707.0476178285713 40.326095360000004L707.0476178285713 1056.8167606857141C707.0476178285713 1063.8778368 703.9842779428571 1070.5916416 698.6529316571427 1075.2214930285713 693.3215890285713 1079.8513481142857 686.2448676571429 1081.9424548571428 679.2533321142857 1080.953903542857L66.21866678857141 993.4262857142858C42.18708992 990.0036388571428 24.332190354285718 969.4260845714285 24.332190354285718 945.152L24.332190354285718 151.99085714285712C24.332190354285718 127.71677257142855 42.18708992 107.13921718857142 66.21866678857141 103.71657142857141L66.26742857142857 103.71657142857141 679.2045714285714 16.188952502857138C686.2038015999999 15.18488685714286 693.2941824 17.26890459428571 698.6369535999999 21.90055387428571ZM950.8571428571428 109.71428571428571C977.7876004571428 109.71428571428571 999.6190463999999 131.54573421714286 999.6190463999999 158.4761903542857L999.6190463999999 938.6666678857142C999.6190463999999 965.5971218285714 977.7876004571428 987.4285714285713 950.8571428571428 987.4285714285713L755.8095250285714 987.4285714285713 755.8095250285714 889.9047606857142 902.0952393142857 889.9047606857142 902.0952393142857 207.23809536 755.8095250285714 207.23809536 755.8095250285714 109.71428571428571 950.8571428571428 109.71428571428571ZM287.69523821714284 353.52381074285717L170.6666667885714 353.52381074285717 307.2 548.5714285714286 170.6666667885714 743.6190463999999 287.69523821714284 743.6190463999999 365.71428571428567 632.1493321142857 443.7333321142857 743.6190463999999 560.7619035428571 743.6190463999999 424.2285714285714 548.5714285714286 560.7619035428571 353.52381074285717 443.7333321142857 353.52381074285717 365.71428571428567 464.9935250285714 287.69523821714284 353.52381074285717Z"}}]}'),kh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:qV,name:"excelFill"}),null)};kh.displayName="excelFill";kh.inheritAttrs=!1;const JV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zM512 768c-27.2 0-48-20.8-48-48s20.8-48 48-48c27.2 0 48 20.8 48 48S539.2 768 512 768zM560 308.8L544 608c0 17.6-14.4 32-32 32-17.6 0-32-14.4-32-32l-16-299.2c0-1.6 0-3.2 0-4.8 0-27.2 20.8-48 48-48 27.2 0 48 20.8 48 48C560 305.6 560 307.2 560 308.8z"}}]}'),Qo=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:JV,name:"exclamationCircleShape"}),null)};Qo.displayName="exclamationCircleShape";Qo.inheritAttrs=!1;const ZV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 384a128 128 0 1 0 128 128A128 128 0 0 0 512 384Zm0 192a64 64 0 1 1 64-64A64 64 0 0 1 512 576Z"}},{"type":"element","name":"path","attributes":{"d":"M512 240C264.64 240 64 512 64 512S264.64 784 512 784 960 512 960 512 759.36 240 512 240Zm0 480C352 720 208 580.96 147.04 512 208 442.88 352 304 512 304s304 139.04 364.96 208C816 581.12 672 720 512 720Z"}}]}'),Yu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:ZV,name:"eye"}),null)};Yu.displayName="eye";Yu.inheritAttrs=!1;const QV=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M128 384L192 384 192 192 384 192 384 128 128 128 128 384Z"}},{"type":"element","name":"path","attributes":{"d":"M640 128L640 192 832 192 832 384 896 384 896 128 640 128Z"}},{"type":"element","name":"path","attributes":{"d":"M192 640L128 640 128 896 384 896 384 832 192 832 192 640Z"}},{"type":"element","name":"path","attributes":{"d":"M832 832L640 832 640 896 896 896 896 640 832 640 832 832Z"}}]}'),Ph=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:QV,name:"filliscreenLine"}),null)};Ph.displayName="filliscreenLine";Ph.inheritAttrs=!1;const e$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M917.3054336 379.3934816L644.6573792 106.73362144C637.7657728 99.8360144 628.4074144 95.97271648 618.6572192 96.00014496 608.907024 95.9727168 599.5486656 99.83601472 592.6570624 106.73362144L414.3999776 285.12322784C400.878272 283.59955936 387.280576 282.8495008 373.6733312 282.8767168 290.62998816 282.75079488 210.03082048 310.9734656 145.20474176 362.8774656 137.06031008 369.4172128 132.08090848 379.1118912 131.50944128 389.5416192 130.93797408 399.9713472 134.82836032 410.1520608 142.20952352 417.5425632L343.2635456 618.6052896 104.89409664 856.7354464C101.9839264 859.6325248 100.18706144 863.4620736 99.81886624 867.5519776L96.07484352 908.7380128C95.61805984 913.6831328 97.26692416 918.5917248 100.61644608 922.258144 103.965968 925.9245632 108.70579808 928.009104 113.6717504 927.9997952 114.21255392 927.9997952 114.7533568 927.9997952 115.33576 927.8749568L156.52001024 924.1307712C160.61522176 923.7512992 164.44531456 921.9392928 167.3360768 919.0137184L405.6639264 680.6755552 606.7179456 881.7382784C613.609552 888.6358848 622.9679104 892.499184 632.7181056 892.4716096 643.863968 892.4975552 654.4145248 887.4440928 661.3806784 878.7429312 722.0359616 802.8571424 749.9831616 705.9433792 739.048352 609.4112352L917.3054336 431.1464352C931.5648544 416.8423648 931.5648544 393.697552 917.3054336 379.3934816ZM682.5968096 553.290064L655.5150432 580.4146048 659.6750688 618.4804832C666.2790656 677.3604736 654.5399008 736.8434208 626.062064 788.7992896L235.3940896 397.8647936C287.29906432 369.2916992 346.7919936 357.532144 405.6639264 364.2087328L443.7281568 368.4105408 470.8515232 341.3276032 618.7820192 193.39069952 830.6521088 405.2699584 682.5968096 553.3316672 682.5968096 553.290064Z"}}]}'),Xu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:e$,name:"fixLine"}),null)};Xu.displayName="fixLine";Xu.inheritAttrs=!1;const t$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M618.6572192 96.00014496C628.4074144 95.97271648 637.7657728 99.83601536 644.6573792 106.73362368L917.3054336 379.3935424C931.5648544 393.697616 931.5648544 416.842432 917.3054336 431.1465056L739.048352 609.411344C749.9831616 705.9435072 722.0359616 802.8572896 661.3806784 878.7430976 654.4145248 887.4442592 643.863968 892.4977216 632.7181056 892.471776 622.9679104 892.4993504 613.609552 888.6360544 606.7179456 881.7384448L405.6639264 680.6756768 167.3360768 919.0138912C164.44531456 921.9394656 160.61522176 923.751472 156.52001024 924.1309472L115.33576 927.8751328C114.7533568 928.000144 114.21255392 928.000144 113.6717504 928.000144 108.70579808 928.00928 103.965968 925.9247392 100.61644608 922.2583168 97.26692416 918.5918976 95.61805984 913.6833056 96.07484352 908.7381824L99.81886624 867.5521408C100.18706144 863.4622368 101.9839264 859.6326848 104.89409664 856.7356064L343.2635456 618.6053984 142.20952352 417.5426336C134.82836032 410.152128 130.93797408 399.9714112 131.50944128 389.54168 132.08090848 379.111952 137.06031008 369.4172704 145.20474176 362.8775232 210.03082048 310.97351104 290.62998816 282.75083392 373.6733312 282.87675616 387.280576 282.84954016 400.878272 283.59959872 414.3999776 285.12326752L592.6570624 106.73362368C599.5486656 99.83601568 608.907024 95.9727168 618.6572192 96.00014496Z"}}]}'),qu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:t$,name:"fixShape"}),null)};qu.displayName="fixShape";qu.inheritAttrs=!1;const n$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M864 960h-704c-88.36266666666667 0-160-71.63733333333333-160-160v-640c0-53.034666666666666 42.96533333333333-96 96-96h256c53.034666666666666 0 96 42.96533333333333 96 96v32h416c88.36266666666667 0 160 71.63733333333333 160 160v448c0 88.36266666666667-71.63733333333333 160-160 160zM96 128c-17.663999999999998 0-32 14.336-32 32v640c0 53.034666666666666 42.96533333333333 96 96 96h704c53.034666666666666 0 96-42.96533333333333 96-96v-448c0-53.034666666666666-42.96533333333333-96-96-96h-448c-17.663999999999998 0-32-14.336-32-32v-64c0-17.663999999999998-14.336-32-32-32z"}}]}'),Ju=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:n$,name:"folder"}),null)};Ju.displayName="folder";Ju.inheritAttrs=!1;const r$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M928 320h-35.199999999999996c-15.402666666666665-73.55733333333333-79.744-128-156.75733333333332-128 0 0-0.042666666666666665 0-0.042666666666666665 0h-288v-32c0-53.034666666666666-42.96533333333333-96-96-96h-256c-53.034666666666666 0-96 42.96533333333333-96 96v640c0 88.36266666666667 71.63733333333333 160 160 160h704c0.38399999999999995 0 0.8533333333333333 0 1.3226666666666667 0 51.199999999999996 0 92.88533333333334-40.61866666666666 94.67733333333332-91.34933333333333l64-452.65066666666667c0-53.034666666666666-42.96533333333333-96-96-96zM64 800v-640c0-17.663999999999998 14.336-32 32-32h256c17.663999999999998 0 32 14.336 32 32v64c0 17.663999999999998 14.336 32 32 32h320c41.42933333333333 0.128 76.71466666666666 26.496 90.02666666666666 63.31733333333333l-538.0266666666666 0.6826666666666666c-0.38399999999999995 0-0.8533333333333333 0-1.3226666666666667 0-51.199999999999996 0-92.88533333333334 40.61866666666666-94.67733333333332 91.34933333333333l-64 452.65066666666667c0.128 9.856 1.7493333333333334 19.328 4.650666666666666 28.202666666666666-39.97866666666667-12.842666666666666-68.47999999999999-49.151999999999994-68.65066666666667-92.16zM896 864c0 17.663999999999998-14.336 32-32 32h-640c-0.08533333333333333 0-0.21333333333333332 0-0.29866666666666664 0-16.08533333333333 0-29.39733333333333-11.861333333333334-31.658666666666665-27.349333333333334l64-452.65066666666667c0-17.663999999999998 14.336-32 32-32h640c0.08533333333333333 0 0.21333333333333332 0 0.29866666666666664 0 16.08533333333333 0 29.39733333333333 11.861333333333334 31.658666666666665 27.349333333333334z"}}]}'),Mh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:r$,name:"folderOpen"}),null)};Mh.displayName="folderOpen";Mh.inheritAttrs=!1;const a$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M864 192h-416v-32c0-53.034666666666666-42.96533333333333-96-96-96h-256c-53.034666666666666 0-96 42.96533333333333-96 96v640c0 88.36266666666667 71.63733333333333 160 160 160h704c88.36266666666667 0 160-71.63733333333333 160-160v-448c0-88.36266666666667-71.63733333333333-160-160-160z"}}]}'),Rh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:a$,name:"folderShape"}),null)};Rh.displayName="folderShape";Rh.inheritAttrs=!1;const s$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M202.24 421.11999999999995c1.792-56.23466666666667 47.78666666666667-101.12 104.27733333333333-101.12 0.46933333333333327 0 0.9386666666666665 0 1.408 0l568.2346666666666 0c0.17066666666666666 0 0.38399999999999995 0 0.5973333333333333 0 7.082666666666666 0 12.799999999999999-5.717333333333333 12.799999999999999-12.799999999999999 0-1.3653333333333333-0.21333333333333332-2.6879999999999997-0.6399999999999999-3.925333333333333-21.205333333333332-65.024-81.40799999999999-111.27466666666666-152.40533333333332-111.27466666666666-0.17066666666666666 0-0.38399999999999995 0-0.5546666666666666 0h-287.9573333333333v-32c0-53.034666666666666-42.96533333333333-96-96-96h-256c-53.034666666666666 0-96 42.96533333333333-96 96v640c0 0.9813333333333333-0.042666666666666665 2.0906666666666665-0.042666666666666665 3.2426666666666666 0 77.056 54.44266666666667 141.39733333333334 126.976 156.58666666666664 0.896-1.92 0.8106666666666666-4.394666666666666 0.8106666666666666-6.8693333333333335s0.08533333333333333-4.949333333333334 0.256-7.381333333333332z"}},{"type":"element","name":"path","attributes":{"d":"M960 384h-652.16c-22.954666666666668 0-41.599999999999994 18.645333333333333-41.599999999999994 41.599999999999994l-74.24 521.5999999999999c-0.42666666666666664 1.92-0.6399999999999999 4.1386666666666665-0.6399999999999999 6.3999999999999995s0.256 4.4799999999999995 0.6826666666666666 6.613333333333333l703.9573333333333-0.21333333333333332c35.327999999999996 0 64-28.672 64-64l64-448c0-35.327999999999996-28.672-64-64-64z"}}]}'),Zu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:s$,name:"folderShapeOpen"}),null)};Zu.displayName="folderShapeOpen";Zu.inheritAttrs=!1;const i$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M860.8 128H163.2a32 32 0 0 0-27.36 52l295.2 336 0.96 0V896l160-82.72V516.8l0.96 0 295.2-336A32 32 0 0 0 860.8 128Z"}}]}'),Qu=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:i$,name:"funnel"}),null)};Qu.displayName="funnel";Qu.inheritAttrs=!1;const o$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M696.96 64a112 112 0 1 1-111.04 112A112 112 0 0 1 696.96 64ZM327.04 64a112 112 0 1 1-111.04 112A112 112 0 0 1 327.04 64ZM696.96 400a112 112 0 1 1-111.04 112A112 112 0 0 1 696.96 400ZM327.04 400a112 112 0 1 1-111.04 112A112 112 0 0 1 327.04 400ZM696.96 736a112 112 0 1 1-111.04 112A112 112 0 0 1 696.96 736ZM327.04 736a112 112 0 1 1-111.04 112A112 112 0 0 1 327.04 736Z"}}]}'),ed=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:o$,name:"gragFill"}),null)};ed.displayName="gragFill";ed.inheritAttrs=!1;const l$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 128c212.8 0 384 171.2 384 384S724.8 896 512 896 128 724.8 128 512 299.2 128 512 128M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64z"}},{"type":"element","name":"path","attributes":{"d":"M548.8 673.6A48 48 0 0 1 500.8 721.6 48 48 0 0 1 452.8 673.6 48 48 0 0 1 548.8 673.6z"}},{"type":"element","name":"path","attributes":{"d":"M513.6 302.4c80 0 132.8 44.8 132.8 110.4 0 41.6-20.8 72-60.8 96-40 24-48 35.2-48 62.4v14.4H464v-16c-3.2-44.8 11.2-70.4 51.2-92.8 36.8-22.4 48-35.2 48-60.8s-20.8-44.8-52.8-44.8c-28.8-1.6-52.8 19.2-56 48 0 1.6 0 1.6 0 3.2h-76.8C377.6 352 427.2 302.4 513.6 302.4z"}}]}'),Fh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:l$,name:"help"}),null)};Fh.displayName="help";Fh.inheritAttrs=!1;const c$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264 64 64 264 64 512c0 57.6 11.2 113.6 32 166.4V896c0 17.6 14.4 32 32 32h217.6C576 1019.2 836.8 908.8 928 678.4S908.8 187.2 678.4 96C625.6 75.2 569.6 64 512 64zM500.8 721.6c-27.2 0-48-20.8-48-48s20.8-48 48-48c27.2 0 48 20.8 48 48S528 721.6 500.8 721.6zM587.2 507.2c-36.8 20.8-48 35.2-48 62.4v14.4H464v-16c-3.2-44.8 11.2-70.4 51.2-92.8 36.8-22.4 48-35.2 48-60.8s-20.8-44.8-52.8-44.8c-28.8-1.6-52.8 19.2-56 48 0 1.6 0 1.6 0 3.2h-76.8c1.6-70.4 49.6-118.4 136-118.4 80 0 132.8 44.8 132.8 110.4C648 454.4 627.2 484.8 587.2 507.2z"}}]}'),Hh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:c$,name:"helpDocumentFill"}),null)};Hh.displayName="helpDocumentFill";Hh.inheritAttrs=!1;const u$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zM500.8 721.6c-27.2 0-48-20.8-48-48s20.8-48 48-48c27.2 0 48 20.8 48 48S528 721.6 500.8 721.6zM587.2 507.2c-36.8 20.8-48 35.2-48 62.4v14.4H464v-16c-3.2-44.8 11.2-70.4 51.2-92.8 36.8-22.4 48-35.2 48-60.8s-20.8-44.8-52.8-44.8c-28.8-1.6-52.8 19.2-56 48 0 1.6 0 1.6 0 3.2h-76.8c1.6-70.4 49.6-118.4 136-118.4 80 0 132.8 44.8 132.8 110.4C648 454.4 627.2 484.8 587.2 507.2z"}}]}'),Bh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:u$,name:"helpFill"}),null)};Bh.displayName="helpFill";Bh.inheritAttrs=!1;const d$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M664.4363636363637 0C676.8000000000001 0 688.5818181818182 4.945454545454545 697.3090909090909 13.672727272727274L697.3090909090909 13.672727272727274 1010.3272727272728 326.6909090909091C1019.0545454545455 335.41818181818184 1024 347.3454545454546 1024 359.70909090909095L1024 359.70909090909095 1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L977.4545454545455 1303.2727272727273 46.54545454545455 1303.2727272727273C20.8 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 1256.7272727272727 0 46.54545454545455C0 20.8 20.8 0 46.54545454545455 0L46.54545454545455 0ZM637.6727272727272 744.7272727272727L474.76363636363635 954.1818181818182 358.40000000000003 814.5454545454546 195.4909090909091 1024 847.1272727272727 1024 637.6727272727272 744.7272727272727ZM465.4545454545455 558.5454545454545C414.041856 558.5454545454545 372.3636363636364 600.2236741818182 372.3636363636364 651.6363636363636 372.3636363636364 703.0490530909091 414.041856 744.7272727272727 465.4545454545455 744.7272727272727 516.8672349090909 744.7272727272727 558.5454545454545 703.0490530909091 558.5454545454545 651.6363636363636 558.5454545454545 600.2236741818182 516.8672349090909 558.5454545454545 465.4545454545455 558.5454545454545ZM642.9090909090909 107.34545454545454L642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091 642.9090909090909 107.34545454545454Z"}}]}'),td=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:d$,name:"imageFill"}),null)};td.displayName="imageFill";td.inheritAttrs=!1;const f$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M752 512A176 176 0 1 0 928 688 176 176 0 0 0 752 512Zm0 299.2a30.88 30.88 0 1 1 30.88-30.88A30.72 30.72 0 0 1 752 811.2Zm16.96-92.32a17.12 17.12 0 0 1-33.92 0s-13.76-118.72-13.76-123.2a30.88 30.88 0 1 1 61.6 0C782.88 600.16 768.96 718.88 768.96 718.88Z"}},{"type":"element","name":"path","attributes":{"d":"M800 176H480l-44.32 89.44-23.36 89.44-70.24 85.6 30.88-85.6-46.88-89.44L336 240h0v-0.96L359.52 176H160a96 96 0 0 0-96 96V752a96 96 0 0 0 96 96H573.44A238.88 238.88 0 0 1 512 688a243.2 243.2 0 0 1 8.16-61.44L356.8 519.84a46.72 46.72 0 0 0-70.72 2.56L128 656V272a32 32 0 0 1 32-32h118.4L272 283.36l70.08 71.52L327.36 480l108.32-107.36L530.4 240H800a32 32 0 0 1 32 32V461.92A241.92 241.92 0 0 1 896 496V272A96 96 0 0 0 800 176Z"}},{"type":"element","name":"path","attributes":{"d":"M720 400A80 80 0 0 1 640 480 80 80 0 0 1 560 400 80 80 0 0 1 720 400z"}}]}'),zh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:f$,name:"imgError"}),null)};zh.displayName="imgError";zh.inheritAttrs=!1;const h$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M864 176H160a96 96 0 0 0-96 96V752a96 96 0 0 0 96 96H864a96 96 0 0 0 96-96V272A96 96 0 0 0 864 176ZM128 272a32 32 0 0 1 32-32H864a32 32 0 0 1 32 32V688l-144-114.72a57.76 57.76 0 0 0-56.32 0L592 672 356.8 439.84a46.72 46.72 0 0 0-70.72 2.56L128 656Z"}},{"type":"element","name":"path","attributes":{"d":"M752 400A96 96 0 0 1 656 496 96 96 0 0 1 560 400 96 96 0 0 1 752 400z"}}]}'),Uh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:h$,name:"imgPlacehoulder"}),null)};Uh.displayName="imgPlacehoulder";Uh.inheritAttrs=!1;const m$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64A448 448 0 1 1 64 512 448 448 0 0 1 512 64ZM493.92 402.56a156 156 0 0 0-77.12 42.24c-24.32 22.88 1.44 44 16 27.52a82.56 82.56 0 0 1 40.48-28.16c11.04-2.24 17.6 1.28 19.36 10.4A118.88 118.88 0 0 1 488.16 496q-7.2 29.76-26.4 93.92-34.72 116.32-30.08 140.8a54.72 54.72 0 0 0 28.8 40.96 88 88 0 0 0 58.4 5.12 161.76 161.76 0 0 0 80-45.44c25.76-24.96-3.52-43.04-17.28-28a76.32 76.32 0 0 1-39.36 26.08c-14.24 2.88-22.72-2.4-25.28-16A104.96 104.96 0 0 1 522.88 672Q582.24 469.12 576 439.84a46.24 46.24 0 0 0-25.6-33.6A89.6 89.6 0 0 0 493.92 402.56Zm67.84-39.84A49.92 49.92 0 1 0 512 312.96 49.76 49.76 0 0 0 561.76 362.72Z"}}]}'),el=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:m$,name:"info"}),null)};el.displayName="info";el.inheritAttrs=!1;const g$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zM512 896C299.2 896 128 724.8 128 512S299.2 128 512 128s384 171.2 384 384S724.8 896 512 896z"}},{"type":"element","name":"path","attributes":{"d":"M494.4 403.2c-28.8 6.4-56 20.8-76.8 41.6-24 22.4 1.6 44.8 16 27.2 9.6-12.8 24-22.4 40-28.8 11.2-1.6 17.6 1.6 19.2 9.6 1.6 14.4 0 27.2-4.8 41.6-4.8 19.2-14.4 51.2-25.6 94.4-22.4 76.8-33.6 124.8-30.4 140.8 3.2 17.6 12.8 32 28.8 41.6 17.6 8 38.4 9.6 57.6 4.8 30.4-6.4 57.6-22.4 80-44.8 25.6-25.6-3.2-43.2-17.6-28.8-9.6 12.8-24 22.4-40 25.6-14.4 3.2-22.4-3.2-25.6-16-1.6-14.4 1.6-28.8 6.4-41.6 40-136 57.6-212.8 52.8-232-3.2-14.4-12.8-27.2-25.6-33.6C532.8 398.4 512 398.4 494.4 403.2z"}},{"type":"element","name":"path","attributes":{"d":"M608 304A48 48 0 0 1 560 352 48 48 0 0 1 512 304 48 48 0 0 1 608 304z"}}]}'),nd=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:g$,name:"infoLine"}),null)};nd.displayName="infoLine";nd.inheritAttrs=!1;const p$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M680.96 129.92c-14.08-3.84-30.08-1.2799999999999998-40.31999999999999 7.04l-439.03999999999996 356.48c-12.799999999999999 10.239999999999998-12.799999999999999 26.88 0 37.12l439.03999999999996 356.48c7.04 5.76 16.64 8.959999999999999 26.88 8.959999999999999 4.4799999999999995 0 8.959999999999999-0.6399999999999999 13.44-1.92 14.08-3.84 23.04-14.08 23.04-25.599999999999998v-712.96c0-11.52-8.959999999999999-21.759999999999998-23.04-25.599999999999998z"}}]}'),jh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:p$,name:"leftShape"}),null)};jh.displayName="leftShape";jh.inheritAttrs=!1;const v$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M192 512a320 320 0 1 0 76.96-208H352v64H160V176h64v82.08A384 384 0 1 1 128 512Z"}}]}'),Wh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:v$,name:"leftTurnLine"}),null)};Wh.displayName="leftTurnLine";Wh.inheritAttrs=!1;const y$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M332.8 243.2c25.6 25.6 25.6 64 0 89.6-25.6 25.6-64 25.6-89.6 0L217.6 307.2 198.4 288c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6L332.8 243.2z","opacity":".1"}},{"type":"element","name":"path","attributes":{"d":"M192 448c38.4 0 64 25.6 64 64S230.4 576 192 576H160 128C89.6 576 64 550.4 64 512s25.6-64 64-64h32H192z","opacity":".15"}},{"type":"element","name":"path","attributes":{"d":"M243.2 691.2c25.6-25.6 64-25.6 89.6 0 25.6 25.6 25.6 64 0 89.6l-25.6 25.6L281.6 832c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6l25.6-25.6L243.2 691.2z","opacity":".3"}},{"type":"element","name":"path","attributes":{"d":"M448 832c0-38.4 25.6-64 64-64s64 25.6 64 64v32V896c0 38.4-25.6 64-64 64s-64-25.6-64-64v-32V832z","opacity":".45"}},{"type":"element","name":"path","attributes":{"d":"M825.6 825.6c-25.6 25.6-64 25.6-89.6 0l-25.6-25.6 0 0-25.6-25.6c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 25.6 25.6 0 0C851.2 761.6 851.2 806.4 825.6 825.6z","opacity":".6"}},{"type":"element","name":"path","attributes":{"d":"M896 448l-32 128H832c-38.4 0-64-25.6-64-64s25.6-64 64-64H896zM960 512c0 38.4-25.6 64-64 64h-32L896 448C934.4 448 960 473.6 960 512z","opacity":".75"}},{"type":"element","name":"path","attributes":{"d":"M742.4 192c25.6-19.2 64-19.2 83.2 6.4 25.6 25.6 25.6 64 0 89.6l-25.6 25.6-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6","opacity":".9"}},{"type":"element","name":"path","attributes":{"d":"M448 160L576 192c0 38.4-25.6 64-64 64S448 230.4 448 192V160zM512 64c38.4 0 64 25.6 64 64v32H448V128C448 89.6 473.6 64 512 64zM448 160h128V192H448V160z"}}]}'),rd=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:y$,name:"loading"}),null)};rd.displayName="loading";rd.inheritAttrs=!1;const b$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M886.56 841.28l-149.12-149.12a344.64 344.64 0 1 0-45.28 45.28l149.12 149.12A32 32 0 0 0 864 896a32 32 0 0 0 22.56-54.72ZM472.32 752A280.32 280.32 0 1 1 752 472.32 280.64 280.64 0 0 1 472.32 752Z"}},{"type":"element","name":"path","attributes":{"d":"M576 448H352a32 32 0 0 0 0 64H576a32 32 0 0 0 0-64Z"}}]}'),Gh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:b$,name:"narrowLine"}),null)};Gh.displayName="narrowLine";Gh.inheritAttrs=!1;const w$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M896 176H128a64 64 0 0 0-64 64V784a64 64 0 0 0 64 64H896a64 64 0 0 0 64-64V240A64 64 0 0 0 896 176Zm0 608H128V240H896Z"}},{"type":"element","name":"path","attributes":{"d":"M327.84 649.28h52.64V373.28H337.76A97.12 97.12 0 0 1 304 417.28a150.56 150.56 0 0 1-44.8 25.6v48a182.56 182.56 0 0 0 68.16-40Z"}},{"type":"element","name":"path","attributes":{"d":"M480.64 450.24H533.28V502.88H480.64V450.24z"}},{"type":"element","name":"path","attributes":{"d":"M480.64 596.64H533.28V649.28H480.64V596.64z"}},{"type":"element","name":"path","attributes":{"d":"M669.28 649.28h52.64V373.28H679.2a97.12 97.12 0 0 1-33.28 44 150.56 150.56 0 0 1-44.8 25.6v48a182.56 182.56 0 0 0 68.16-40Z"}}]}'),Kh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:w$,name:"original"}),null)};Kh.displayName="original";Kh.inheritAttrs=!1;const C$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M1010.3272727272728 326.8363636363636C1019.0545454545455 335.56363636363636 1024 347.3454545454546 1024 359.70909090909095L1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L46.54545454545455 1303.2727272727273C20.80000000000002 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 46.54545454545455C0 20.799999999999997 20.80000000000002 0 46.54545454545455 0L664.2909090909092 0C676.6545454545455 0 688.5818181818182 4.945454545454554 697.3090909090909 13.67272727272728L1010.3272727272728 326.8363636363636ZM916.6545454545455 381.0909090909091L642.9090909090909 107.34545454545456 642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091ZM688.3156340363636 833.8269090909091C666.2443659636364 833.1156340363638 642.7679976727273 834.8014545454546 616.0974568727273 838.1381818181819 580.7549114181819 816.3389114181817 556.9643659636364 786.3825454545455 540.0625477818182 742.389820509091 540.4698158545455 740.714179490909 541.3134568727273 737.2436386909092 541.6087272727273 736.0189114181819 542.2981818181819 733.1709114181818 542.8698158545455 730.7912750545455 543.4167295999999 728.4770909090909 549.661090909091 702.1061818181818 553.0385454545456 682.8654545454546 554.0349114181819 663.4661841454545 554.788361309091 648.8130932363637 553.9767249454546 635.2945477818182 551.3774545454546 622.7738205090909 546.5803636363637 595.7425477818182 527.4443636363637 579.933090909091 503.3469067636364 578.9541841454546 480.8799976727273 578.0421818181818 460.2210909090909 590.5803636363637 454.9381818181818 610.0421818181818 446.33745221818185 641.4778181818182 451.37454545454545 682.8712727272729 469.6 753.4341818181819 446.3796363636364 808.7883636363637 415.70618181818185 873.6683659636363 395.1229067636363 909.8545477818182 367.65381818181817 924.021820509091 346.2443659636364 936.9163636363637 328.28218181818187 951.2029090909091 304.5687296 970.0625454545454 289.7658181818182 989.4429090909091 285.6843636363637 1009.8298181818183 283.71345221818177 1019.2552727272729 286.69090909090914 1031.5985454545455 293.4807272727272 1041.7018181818182 301.184 1053.1621841454546 312.8 1060.597820509091 326.7243659636364 1061.6800023272726 361.85454312727273 1064.4101818181819 405.02254312727274 1028.1905477818182 452.6734522181818 946.3956386909091 457.4661818181818 944.8101841454546 462.5352704 943.1127272727273 468.71127040000005 941.0283659636364 472.09018181818186 939.8894545454546 483.9316340363637 935.8821841454546 486.0349114181819 935.1723659636364 496.9745454545455 931.4778205090909 504.9149114181818 928.8305477818183 512.7636340363636 926.2763659636363 546.7941794909092 915.2043659636364 572.5396340363636 908.1978181818182 595.9781794909092 904.221090909091 636.6661818181818 926.0000023272728 683.7105477818181 940.288 715.3934522181818 940.288 741.5447272727273 940.288 759.2130885818183 926.7330932363637 765.5970909090909 905.4007296 771.2072704000001 886.6574568727273 766.7520000000001 864.9294568727273 754.7272704 852.9149114181819 742.2763613090909 840.6821841454545 719.3818205090909 834.8290932363636 688.3156340363636 833.8269090909091L688.3156340363636 833.8269090909091ZM327.61017716363637 1020.6196363636365L327.61017716363637 1020.0960000000001 327.79345454545455 1019.6043636363636C329.6479976727273 1014.6283613090909 332.38545221818185 1009.4109090909092 335.93890909090914 1003.9563636363637 342.17018181818185 994.3912727272727 350.7359976727273 984.32 361.3527272727273 973.6072704000001 367.0545454545455 967.8545454545455 372.992 962.2618158545456 379.9563636363637 955.9781794909092 381.5170885818182 954.5687272727273 391.46181818181816 945.7105454545456 393.32217949090904 943.9781841454546L409.5781794909091 928.8407272727272 397.76727040000003 947.6538181818181C379.8385431272727 976.2181818181818 363.6436340363636 996.7883636363637 349.74836363636365 1010.2050909090909 344.64727039999997 1015.1316340363637 340.1483636363636 1018.7869090909091 336.52508858181824 1021.121452218182 335.0312727272727 1022.0843613090909 333.7381794909091 1022.7854522181817 332.72436363636365 1023.1927249454546 332.1294522181818 1023.4298181818182 331.6029067636364 1023.5825431272726 331.0807272727273 1023.6319976727274 330.5281303272728 1023.6968587636364 329.9681698909091 1023.6166516363637 329.4559976727273 1023.3992704 328.3361233454546 1022.9301666909092 327.6080779636364 1021.8337931636364 327.61017716363637 1020.6196363636365ZM510.7869090909091 703.1374568727272L507.4996363636364 708.9658181818182 505.47781818181824 702.5876340363636C500.94836363636364 688.2909090909092 497.6421841454545 666.7461818181819 496.72727272727275 647.3192727272727 495.6858181818182 625.2145431272728 497.44000000000005 611.9403659636364 504.416 611.9403659636364 514.2196363636363 611.9403659636364 518.715638690909 627.6610885818181 519.072 651.2901818181818 519.3861818181817 672.0610909090909 516.1192727272727 693.6785454545454 510.7869090909091 703.1374568727272ZM502.336 788.1760023272727L504.5672727272727 782.2850932363638 507.60436363636364 787.805090909091C524.6080000000001 818.7069114181819 546.6705454545455 844.4843659636364 570.9323636363636 862.4450932363636L576.1614522181818 866.3170932363636 569.7905431272727 867.6320023272727C546.0407296000001 872.5367296000001 523.9083659636365 879.9330909090909 493.6596340363636 892.1294568727272 496.82181585454543 890.8552750545455 462.20799999999997 905.021090909091 453.45890676363643 908.3752727272728L445.81963403636365 911.3032750545455 449.89527039999996 904.2094545454546C467.85891141818183 872.9425454545456 484.452361309091 835.3716363636364 502.3345477818182 788.1760023272727L502.336 788.1760023272727ZM731.6101818181818 899.1010909090909C720.1716363636365 903.616 695.5709067636365 899.5796340363637 652.2370932363636 881.0836340363636L641.2392727272727 876.3898181818182 653.1650885818183 875.5069067636365C687.0487272727273 872.9992704 711.0661818181818 874.8669067636364 725.0516340363637 879.9869067636363 731.0007249454545 882.165820509091 734.9774522181818 884.9149114181819 736.7418181818182 888.064 738.6472727272728 891.4618181818182 737.7745454545455 895.0603636363637 734.7607272727273 897.2421818181818 734.109090909091 897.8632704 733.0807295999999 898.5221818181819 731.6101818181818 899.1010909090909L731.6101818181818 899.1010909090909Z"}}]}'),Yh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:C$,name:"pdfFill"}),null)};Yh.displayName="pdfFill";Yh.inheritAttrs=!1;const N$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M827.9893333333332 482.73066666666665l-585.1306666666667-474.7093333333333c-6.229333333333333-5.418666666666667-14.421333333333333-8.746666666666666-23.381333333333334-8.789333333333332-20.223999999999997 0-36.56533333333333 16.384-36.56533333333333 36.56533333333333v950.8693333333333c0 20.18133333333333 16.384 36.56533333333333 36.56533333333333 36.56533333333333 0 0 0.042666666666666665 0 0.042666666666666665 0 8.618666666666666 0 16.512-3.0293333333333328 22.698666666666668-8.106666666666666l585.088-474.66666666666663c8.874666666666666-6.741333333333333 14.506666666666668-17.28 14.506666666666668-29.184 0-11.562666666666667-5.333333333333333-21.845333333333333-13.696-28.544z"}}]}'),Xh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:N$,name:"playShape"}),null)};Xh.displayName="playShape";Xh.inheritAttrs=!1;const x$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M736 480L544 480 544 288 480 288 480 480 288 480 288 544 480 544 480 736 544 736 544 544 736 544z"}}]}'),tl=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:x$,name:"plus"}),null)};tl.displayName="plus";tl.inheritAttrs=!1;const _$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1097.143","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M698.6857142857143 34.403266925714284C704.0284854857142 39.03491620571429 707.0963821714286 45.75792566857142 707.0963821714286 52.82880841142857L707.0963821714286 1069.3194752C707.0963821714286 1076.3805476571426 704.0330386285714 1083.0943561142856 698.7016923428572 1087.7242075428571 693.3703497142857 1092.3540589714285 686.2936283428571 1094.4451693714284 679.3020964571429 1093.4566180571428L66.26742857142857 1005.9290002285713C42.23585170285714 1002.5063533714285 24.380952502857145 981.9287990857142 24.380952502857145 957.6547145142856L24.380952502857145 164.4935701942857C24.380952502857145 140.21948562285712 42.23585170285714 119.64193024 66.26742857142857 116.21928448L66.31619035428571 116.21928448 679.2533321142857 28.691665554285713C686.252565942857 27.68759990857143 693.3429430857143 29.771617645714286 698.6857142857143 34.403266925714284ZM950.905903542857 122.21699876571428C977.8363611428571 122.21699876571428 999.6678107428571 144.04844726857144 999.6678107428571 170.97890340571428L999.6678107428571 951.1693787428571C999.6678107428571 978.0998363428571 977.8363611428571 999.931285942857 950.905903542857 999.931285942857L755.8582857142857 999.931285942857 755.8582857142857 902.4074751999999 902.1439999999999 902.4074751999999 902.1439999999999 219.74080841142853 755.8582857142857 219.74080841142853 755.8582857142857 122.21699876571428 950.905903542857 122.21699876571428ZM544.5566976 333.5185846857143L154.46146048 333.5185846857143 154.46146048 723.613824 251.98526976 723.613824 251.98526976 626.0900132571428 544.5566976 626.0900132571428 544.5566976 333.5185846857143ZM447.03289051428567 431.0423954285714L447.03289051428567 528.5662061714285 251.98526976 528.5662061714285 251.98526976 431.0423954285714 447.03289051428567 431.0423954285714Z"}}]}'),qh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:_$,name:"pptFill"}),null)};qh.displayName="pptFill";qh.inheritAttrs=!1;const S$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1117.090909090909","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M314.1818181818182 1117.090909090909h-30.720000000000002c-58.78690909090909-0.6516363636363637-112.73309090909092-21.038545454545456-155.5549090909091-54.87709090909091-18.01309090909091-17.31490909090909-29.55636363636364-42.216727272727276-29.55636363636364-69.86472727272727 0-1.3032727272727274 0.04654545454545455-2.6530909090909094 0.0930909090909091-3.956363636363637 0.1861818181818182-11.776 3.025454545454546-23.04 7.866181818181819-33.09381818181818-0.1861818181818182 0.32581818181818184-0.1861818181818182 0.1861818181818182-0.1861818181818182 0 0-18.478545454545458 7.168-35.281454545454544 18.897454545454547-47.75563636363636 8.424727272727273-10.100363636363637 18.10618181818182-18.897454545454547 28.811636363636364-26.205090909090906-7.866181818181819-12.008727272727274-16.19781818181818-25.506909090909094-23.691636363636366-39.47054545454545-17.268363636363638 19.78181818181818-42.123636363636365 34.443636363636365-70.42327272727273 37.05018181818182-19.642181818181818-1.349818181818182-35.70036363636364-13.870545454545454-42.170181818181824-31.045818181818184-51.75854545454546-139.96218181818182 26.43781818181818-264.9367272727273 87.17963636363636-336.1512727272728-0.32581818181818184-3.2581818181818187-0.512-7.028363636363636-0.512-10.798545454545456s0.1861818181818182-7.586909090909091 0.5585454545454546-11.310545454545455c-0.3723636363636364-2.699636363636364-0.5585454545454546-6.3767272727272735-0.5585454545454546-10.053818181818182 0-18.990545454545455 5.12-36.77090909090909 14.056727272727272-52.08436363636364 0.4189090909090909-23.505454545454548 10.705454545454547-44.96290909090909 26.903272727272725-60.22981818181819 2.0014545454545454-203.264 167.2378181818182-367.29018181818185 370.78109090909095-367.29018181818185 0.512 0 0.9774545454545456 0 1.4894545454545456 0 104.40145454545454 1.2567272727272727 198.42327272727272 44.86981818181818 265.8210909090909 114.40872727272729 65.34981818181818 65.25672727272728 106.82181818181819 154.25163636363638 110.40581818181818 252.88145454545455 22.43490909090909 28.904727272727275 36.02618181818182 65.1170909090909 36.02618181818182 104.44800000000001 0 12.706909090909091-1.3963636363636363 25.088-4.096 37.00363636363637 51.2 64.512 134.28363636363636 203.45018181818185 70.05090909090909 343.7847272727273-7.493818181818182 17.268363636363638-24.34327272727273 29.184-43.985454545454544 29.323636363636364h0c-27.694545454545455-4.654545454545455-50.87418181818182-20.945454545454545-64.69818181818181-43.566545454545455-8.424727272727273 15.63927272727273-16.57018181818182 29.137454545454545-25.46036363636364 42.030545454545454 14.382545454545454 6.935272727272727 25.925818181818183 16.942545454545453 35.51418181818182 28.57890909090909 11.450181818181818 11.86909090909091 18.71127272727273 27.46181818181818 19.735272727272726 44.73018181818182 4.654545454545455 9.774545454545455 7.493818181818182 21.038545454545456 7.680000000000001 32.954181818181816 0.04654545454545455 1.2101818181818182 0.0930909090909091 2.5134545454545454 0.0930909090909091 3.816727272727273 0 27.601454545454544-11.543272727272727 52.54981818181818-30.06836363636364 70.23709090909091-42.30981818181819 33.466181818181816-96.256 53.85309090909091-154.90327272727274 54.50472727272727-10.14690909090909 1.2101818181818182-21.736727272727276 1.8618181818181818-33.512727272727275 1.8618181818181818-66.28072727272728 0-127.44145454545455-21.643636363636364-176.91927272727273-58.32145454545454l-33.419636363636364 0.5585454545454546c-47.19709090909091 36.25890909090909-107.14763636363637 58.088727272727276-172.17163636363637 58.088727272727276-3.3047272727272725 0-6.56290909090909-0.04654545454545455-9.821090909090909-0.1861818181818182zM187.11272727272726 946.7345454545455l18.152727272727272 11.17090909090909-38.4 30.720000000000002c0.8378181818181818 8.238545454545454 3.8632727272727276 15.63927272727273 8.471272727272726 21.736727272727276 31.232000000000003 22.900363636363636 70.51636363636364 36.72436363636364 113.01236363636363 36.910545454545456 9.588363636363637 1.442909090909091 20.57309090909091 2.280727272727273 31.744000000000003 2.280727272727273 53.061818181818175 0 101.74836363636364-18.80436363636364 139.72945454545453-50.0829090909091l10.100363636363637-9.495272727272727h21.643636363636364c6.469818181818183 0.46545454545454545 14.010181818181819 0.7447272727272728 21.643636363636364 0.7447272727272728s15.173818181818183-0.2792727272727273 22.667636363636365-0.7912727272727273l14.336 0.04654545454545455 11.17090909090909 10.472727272727273c37.376000000000005 31.09236363636364 85.9229090909091 49.98981818181819 138.8450909090909 49.98981818181819 11.636363636363637 0 23.04-0.9309090909090909 34.16436363636364-2.6530909090909094-0.6516363636363637 0.1861818181818182 0 0.1861818181818182 0.6516363636363637 0.1861818181818182 42.07709090909091 0 80.94254545454547-13.637818181818181 112.45381818181818-36.67781818181818 3.6770909090909094-4.561454545454546 6.2370909090909095-11.031272727272727 6.2370909090909095-18.10618181818182 0-1.8618181818181818-0.1861818181818182-3.6770909090909094-0.512-5.445818181818182l-38.35345454545455-30.533818181818184 18.152727272727272-9.774545454545455c-10.053818181818182-7.633454545454546-21.969454545454546-13.451636363636363-34.955636363636366-16.61672727272727l-55.80800000000001-14.103272727272728 37.70181818181818-42.58909090909091c29.649454545454546-33.18690909090909 52.1309090909091-73.49527272727273 64.41890909090908-117.99272727272728l24.948363636363638-94.25454545454545 40.49454545454545 85.87636363636364c8.843636363636364 19.456 19.316363636363636 36.21236363636364 31.744000000000003 51.386181818181825 30.39418181818182-108.63709090909092-47.104-218.25163636363638-83.40945454545455-262.2370909090909l-13.265454545454544-15.360000000000001 6.9818181818181815-18.85090909090909c3.1185454545454547-9.076363636363636 4.887272727272728-19.54909090909091 4.887272727272728-30.440727272727276 0-25.134545454545457-9.541818181818181-48.034909090909096-25.227636363636368-65.25672727272728l-9.681454545454546-10.379636363636363v-13.963636363636363c-0.32581818181818184-169.70472727272727-135.40072727272727-307.75854545454547-303.9418181818182-312.78545454545457-1.349818181818182 0-2.373818181818182-0.04654545454545455-3.444363636363636-0.04654545454545455-167.7498181818182 0-303.70909090909095 135.95927272727272-303.70909090909095 303.70909090909095 0 3.6770909090909094 0.04654545454545455 7.354181818181819 0.1861818181818182 11.031272727272727l0 20.433454545454545-17.454545454545453 13.963636363636363c-5.678545454545454 3.1650909090909094-9.448727272727274 9.076363636363636-9.448727272727274 15.918545454545455 0 1.3032727272727274 0.13963636363636364 2.5134545454545454 0.3723636363636364 3.7236363636363636l4.189090909090909 27.089454545454544-16.756363636363638 7.680000000000001c-0.3723636363636364 2.7461818181818183-0.6050909090909091 5.864727272727273-0.6050909090909091 9.076363636363636s0.23272727272727273 6.330181818181819 0.6516363636363637 9.448727272727274c0.512 6.842181818181818 2.280727272727273 13.451636363636363 4.980363636363636 19.54909090909091l8.238545454545454 19.874909090909092-14.661818181818182 16.05818181818182c-59.485090909090914 55.482181818181814-96.53527272727273 134.28363636363636-96.53527272727273 221.7890909090909 0 10.891636363636364 0.5585454545454546 21.69018181818182 1.722181818181818 32.30254545454545 12.288-14.754909090909091 23.179636363636366-29.88218181818182 32.11636363636364-46.21963636363636l41.099636363636364-70.98181818181818 23.73818181818182 78.89454545454547c13.312 44.12509090909091 35.14181818181818 82.19927272727273 63.76727272727273 114.0829090909091l36.07272727272728 40.215272727272726-52.36363636363637 16.05818181818182c-12.427636363636365 2.3272727272727276-23.458909090909092 6.935272727272727-33.14036363636364 13.451636363636363zM165.4690909090909 474.76363636363635v0z"}}]}'),Jh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:S$,name:"qq"}),null)};Jh.displayName="qq";Jh.inheritAttrs=!1;const T$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M822.3999999999999 493.43999999999994l-439.03999999999996-356.48c-10.239999999999998-8.32-26.24-10.879999999999999-40.31999999999999-7.04s-23.04 14.08-23.04 25.599999999999998v712.96c0 11.52 8.959999999999999 21.119999999999997 23.04 25.599999999999998 4.4799999999999995 1.2799999999999998 8.959999999999999 1.92 13.44 1.92 10.239999999999998 0 19.84-3.1999999999999997 26.88-8.959999999999999l439.03999999999996-356.48c12.799999999999999-10.239999999999998 12.799999999999999-26.88 0-37.12z"}}]}'),nl=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:T$,name:"rightShape"}),null)};nl.displayName="rightShape";nl.inheritAttrs=!1;const E$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M832 512a320 320 0 1 1-76.96-208H672v64H864V176H800v82.08A384 384 0 1 0 896 512Z"}}]}'),ad=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:E$,name:"rightTurnLine"}),null)};ad.displayName="rightTurnLine";ad.inheritAttrs=!1;const O$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M842.56 797.28l-151.52-151.52a336 336 0 1 0-45.28 45.28l151.52 151.52a32 32 0 0 0 45.28-45.28ZM432 704A272 272 0 1 1 704 432 272 272 0 0 1 432 704Z"}}]}'),vs=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:O$,name:"search"}),null)};vs.displayName="search";vs.inheritAttrs=!1;const L$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"icon","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M981.333333 1024H42.666667a42.666667 42.666667 0 0 1-42.666667-42.666667V42.666667a42.666667 42.666667 0 0 1 42.666667-42.666667h341.333333a42.666667 42.666667 0 0 1 0 85.333333H85.333333v853.333334h853.333334V618.666667a42.666667 42.666667 0 0 1 85.333333 0v362.666666a42.666667 42.666667 0 0 1-42.666667 42.666667z m0-576a42.666667 42.666667 0 0 1-42.666666-42.666667V152.746667L315.306667 796.8a48 48 0 0 1-67.2 0 47.36 47.36 0 0 1 0-66.133333L871.893333 85.333333H640a42.666667 42.666667 0 0 1 0-85.333333h341.333333a42.666667 42.666667 0 0 1 42.666667 42.666667v362.666666a42.666667 42.666667 0 0 1-42.666667 42.666667z"}}]}'),Zh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:L$,name:"share"}),null)};Zh.displayName="share";Zh.inheritAttrs=!1;const A$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"lds-spin","preserveAspectRatio":"xMidYMid","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M874.3255040000001 512A55.125504 55.125504 0 0 1 819.2 567.125504 55.125504 55.125504 0 0 1 764.074496 512 55.125504 55.125504 0 0 1 874.3255040000001 512z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.9166666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.9166666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".917","d":"M826.5220089266763 693.5878203150381A55.978496 55.978496 0 0 1 750.0539613250309 714.0773719166838 55.978496 55.978496 0 0 1 729.5644097233852 637.6093243150382 55.978496 55.978496 0 0 1 826.5220089266763 693.5878203150381z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.8333333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.8333333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".833","d":"M694.0170969047495 827.2583983352753A56.83200000000001 56.83200000000001 0 0 1 616.3831411568723 806.4564425873981 56.83200000000001 56.83200000000001 0 0 1 637.1850969047495 728.8224868395207 56.83200000000001 56.83200000000001 0 0 1 694.0170969047495 827.2583983352753z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.75s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.75s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".75","d":"M512 876.8855040000001A57.685504 57.685504 0 0 1 454.314496 819.2 57.685504 57.685504 0 0 1 512 761.5144959999999 57.685504 57.685504 0 0 1 512 876.8855040000001z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.6666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.6666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".667","d":"M329.1269198807941 828.7408206328269A58.538495999999995 58.538495999999995 0 0 1 307.7003432454604 748.7757479974932 58.538495999999995 58.538495999999995 0 0 1 387.6654158807941 727.3491713621594 58.538495999999995 58.538495999999995 0 0 1 329.1269198807941 828.7408206328269z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.5833333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.5833333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".583","d":"M194.5170177632531 695.2980006130954A59.39199999999999 59.39199999999999 0 0 1 216.2559985448185 614.16701983153 59.39199999999999 59.39199999999999 0 0 1 297.3869793263839 635.9060006130953 59.39199999999999 59.39199999999999 0 0 1 194.5170177632531 695.2980006130954z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.5s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.5s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".5","d":"M144.55449600000003 512A60.245504000000004 60.245504000000004 0 0 1 204.80000000000004 451.754496 60.245504000000004 60.245504000000004 0 0 1 265.04550400000005 512 60.245504000000004 60.245504000000004 0 0 1 144.55449600000003 512z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.4166666666666667s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.4166666666666667s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".417","d":"M193.04947448121268 327.85151812453734A61.098496 61.098496 0 0 1 276.5115721502346 305.48791645551546 61.098496 61.098496 0 0 1 298.87517381925653 388.95001412453735 61.098496 61.098496 0 0 1 193.04947448121268 327.85151812453734z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.3333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.3333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".333","d":"M332.5476411431614 201.1754130120454A51.711999999999996 51.711999999999996 0 0 1 403.1875468236623 220.1033186925463 51.711999999999996 51.711999999999996 0 0 1 384.2596411431614 290.7432243730472 51.711999999999996 51.711999999999996 0 0 1 332.5476411431614 201.1754130120454z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.25s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.25s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".25","d":"M512 152.234496A52.565504000000004 52.565504000000004 0 0 1 564.565504 204.8 52.565504000000004 52.565504000000004 0 0 1 512 257.365504 52.565504000000004 52.565504000000004 0 0 1 512 152.234496z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.16666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.16666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".167","d":"M692.3075781671167 199.69299071449373A53.418496000000005 53.418496000000005 0 0 1 711.8601047350743 272.66401328245115 53.418496000000005 53.418496000000005 0 0 1 638.8890821671168 292.21653985040854 53.418496000000005 53.418496000000005 0 0 1 692.3075781671167 199.69299071449373z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.08333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.08333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".083","d":"M825.0362880000001 331.264A54.27213621356492 54.27213621356492 0 0 1 805.1712000000001 405.401088 54.27213621356492 54.27213621356492 0 0 1 731.034112 385.536 54.27213621356492 54.27213621356492 0 0 1 825.0362880000001 331.264z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"0s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"0s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]}]}'),Oi=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:A$,name:"spinner"}),null)};Oi.displayName="spinner";Oi.inheritAttrs=!1;const V$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM485.7 670.3l-181-181L350 444l135.8 135.8L712 353.5l45.3 45.3L485.7 670.3z"}}]}'),Li=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:V$,name:"success"}),null)};Li.displayName="success";Li.inheritAttrs=!1;const $$=JSON.parse('{"type":"element","name":"svg","attributes":{"aria-hidden":"true","class":"anticon-spin","data-icon":"loading","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3 0.1 19.9-16 36-35.9 36z"}}]}'),sd=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:$$,name:"switcherLoading"}),null)};sd.displayName="switcherLoading";sd.inheritAttrs=!1;const D$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M896 64C966.692448 64 1024 121.307552 1024 192L1024 857.7635776C1024 928.4560256 966.692448 985.7635776 896 985.7635776L128 985.7635776C57.307552 985.7635776 5.7233980032e-14 928.4560256 0 857.7635776L0 192C-2.286818272e-14 121.307552 57.307552 64 128 64L896 64ZM408.94568768 320.00000064L102.2364224 320.00000064 102.2364224 729.7635776 204.47284416 729.7635776 204.47284416 576.00000064 306.70926592 576.00000064 306.70926592 729.7635776 408.94568768 729.7635776 408.94568768 320.00000064ZM562.70926528 320.00000064L460.47284416 320.00000064 460.47284416 729.7635776 664.9456896 729.7635776 664.9456896 678.2364224 562.70926528 678.2364224 562.70926528 320.00000064ZM818.7092672 320.00000064L716.4728448 320.00000064 716.4728448 729.7635776 920.9456896 729.7635776 920.9456896 678.2364224 818.7092672 678.2364224 818.7092672 320.00000064ZM306.70926464 396.8L306.70926464 499.03642176 204.47284352 499.03642176 204.47284352 396.8 306.70926464 396.8Z"}}]}'),id=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:D$,name:"textAll"}),null)};id.displayName="textAll";id.inheritAttrs=!1;const I$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M704 64L704 64H128v896h768V256l0 0L704 64zM704 154.5L805.5 256H704V154.5zM832 896H192V128h448v192h192V896z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 320H544V384H288V320z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 448H736V512H288V448z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 576H736V640H288V576z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 704H736V768H288V704z","class":"st0"}}]}'),od=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:I$,name:"textFile"}),null)};od.displayName="textFile";od.inheritAttrs=!1;const k$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M664.4363636363637 0C676.8000000000001 0 688.5818181818182 4.945454545454545 697.3090909090909 13.672727272727274L697.3090909090909 13.672727272727274 1010.3272727272728 326.6909090909091C1019.0545454545455 335.41818181818184 1024 347.3454545454546 1024 359.70909090909095L1024 359.70909090909095 1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L977.4545454545455 1303.2727272727273 46.54545454545455 1303.2727272727273C20.8 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 1256.7272727272727 0 46.54545454545455C0 20.8 20.8 0 46.54545454545455 0L46.54545454545455 0ZM721.4545454545455 930.909090909091L302.54545454545456 930.909090909091C289.6922824145455 930.909090909091 279.27272727272725 941.3286446545454 279.27272727272725 954.1818181818182L279.27272727272725 954.1818181818182 279.27272727272725 1000.7272727272727C279.27272727272725 1013.5804462545456 289.6922824145455 1024 302.54545454545456 1024L302.54545454545456 1024 721.4545454545455 1024C734.3077189818182 1024 744.7272727272727 1013.5804462545456 744.7272727272727 1000.7272727272727L744.7272727272727 1000.7272727272727 744.7272727272727 954.1818181818182C744.7272727272727 941.3286446545454 734.3077189818182 930.909090909091 721.4545454545455 930.909090909091L721.4545454545455 930.909090909091ZM628.3636363636364 744.7272727272727L302.54545454545456 744.7272727272727C289.6922824145455 744.7272727272727 279.27272727272725 755.1468264727272 279.27272727272725 768L279.27272727272725 768 279.27272727272725 814.5454545454546C279.27272727272725 827.3986280727273 289.6922824145455 837.8181818181819 302.54545454545456 837.8181818181819L302.54545454545456 837.8181818181819 628.3636363636364 837.8181818181819C641.2168098909091 837.8181818181819 651.6363636363636 827.3986280727273 651.6363636363636 814.5454545454546L651.6363636363636 814.5454545454546 651.6363636363636 768C651.6363636363636 755.1468264727272 641.2168098909091 744.7272727272727 628.3636363636364 744.7272727272727L628.3636363636364 744.7272727272727ZM442.1818181818182 558.5454545454545L302.54545454545456 558.5454545454545C289.6922824145455 558.5454545454545 279.27272727272725 568.9650082909092 279.27272727272725 581.8181818181819L279.27272727272725 581.8181818181819 279.27272727272725 628.3636363636364C279.27272727272725 641.2168098909091 289.6922824145455 651.6363636363636 302.54545454545456 651.6363636363636L302.54545454545456 651.6363636363636 442.1818181818182 651.6363636363636C455.0349903127273 651.6363636363636 465.4545454545455 641.2168098909091 465.4545454545455 628.3636363636364L465.4545454545455 628.3636363636364 465.4545454545455 581.8181818181819C465.4545454545455 568.9650082909092 455.0349903127273 558.5454545454545 442.1818181818182 558.5454545454545L442.1818181818182 558.5454545454545ZM642.9090909090909 107.34545454545454L642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091 642.9090909090909 107.34545454545454Z"}}]}'),ei=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:k$,name:"textFill"}),null)};ei.displayName="textFill";ei.inheritAttrs=!1;const P$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M832 448L618.6800000000001 224.00000000000003 617.0133344000001 368.9411776 192 368.94117760000006 192 448.00000000000006 832 448ZM832 576L192 576 405.34666560000005 800 407.01333439999996 655.0588224 832 655.0588224 832 576Z"}}]}'),ld=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:P$,name:"transfer"}),null)};ld.displayName="transfer";ld.inheritAttrs=!1;const M$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M432.64 576h156.79999999999998l-79.36-260.48-77.44 260.48z"}},{"type":"element","name":"path","attributes":{"d":"M512 0c-282.75199999999995 0-512 229.248-512 512s229.248 512 512 512c282.75199999999995 0 512-229.248 512-512s-229.248-512-512-512zM681.5999999999999 768h-9.6c-0.042666666666666665 0-0.128 0-0.21333333333333332 0-14.250666666666667 0-26.325333333333333-9.301333333333332-30.464-22.186666666666667l-32.04266666666666-105.81333333333333h-192l-33.28 105.6c-4.1386666666666665 13.994666666666667-16.896 24.02133333333333-32 24.02133333333333-18.389333333333333 0-33.32266666666666-14.933333333333332-33.32266666666666-33.32266666666666 0-3.328 0.46933333333333327-6.485333333333333 1.3653333333333333-9.514666666666667l133.07733333333334-429.82399999999996c9.813333333333333-23.552 32.64-39.808 59.263999999999996-39.808 24.917333333333332 0 46.464 14.208 57.04533333333333 34.986666666666665l134.57066666666665 434.304c1.152 3.157333333333333 1.792 6.784 1.792 10.581333333333333 0 14.890666666666664-10.197333333333333 27.434666666666665-23.97866666666667 30.976z"}}]}'),cd=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:M$,name:"treeApplicationShape"}),null)};cd.displayName="treeApplicationShape";cd.inheritAttrs=!1;const R$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M384 896L320 896 320 704 128 704 128 640 384 640 384 896Z"}},{"type":"element","name":"path","attributes":{"d":"M896 640L896 704 704 704 704 896 640 896 640 640 896 640Z"}},{"type":"element","name":"path","attributes":{"d":"M320 128L384 128 384 384 128 384 128 320 320 320 320 128Z"}},{"type":"element","name":"path","attributes":{"d":"M704 320L896 320 896 384 640 384 640 128 704 128 704 320Z"}}]}'),Qh=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:R$,name:"unfullScreen"}),null)};Qh.displayName="unfullScreen";Qh.inheritAttrs=!1;const F$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M500.16 304a355.04 355.04 0 0 1 128 24.8l48-48.96a426.08 426.08 0 0 0-176-39.84v64Z"}},{"type":"element","name":"path","attributes":{"d":"M763.2 328.8l-46.08 46.08a822.24 822.24 0 0 1 160 138.88 807.52 807.52 0 0 1-86.88 85.12C723.84 654.24 620.48 720 502.56 720a331.52 331.52 0 0 1-111.04-19.52l-49.44 49.28a402.4 402.4 0 0 0 160 34.24C768 784 960 512 960 512A962.56 962.56 0 0 0 763.2 328.8Z"}},{"type":"element","name":"path","attributes":{"d":"M254.88 701.12l46.08-46.08a706.56 706.56 0 0 1-156.64-144C197.44 442.88 328.16 304 500.16 304V240h0C234.72 240 64 512 64 512A838.72 838.72 0 0 0 254.88 701.12Z"}},{"type":"element","name":"path","attributes":{"d":"M512 640a128 128 0 0 0 110.24-192.96L888 181.28A32 32 0 1 0 842.72 136L576.96 401.76a128 128 0 0 0-176 176L136 842.72a32 32 0 1 0 45.28 45.28L447.04 622.24A128 128 0 0 0 512 640Zm64-128a64 64 0 0 1-64 64 60.96 60.96 0 0 1-16-2.4L573.6 496A60.96 60.96 0 0 1 576 512Zm-64-64a60.96 60.96 0 0 1 16 2.4L450.4 528A60.96 60.96 0 0 1 448 512 64 64 0 0 1 512 448Z"}}]}'),ud=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:F$,name:"unvisible"}),null)};ud.displayName="unvisible";ud.inheritAttrs=!1;const H$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M896 671.3599999999999c0-2.5599999999999996-0.6399999999999999-4.4799999999999995-1.2799999999999998-7.04-0.6399999999999999-1.92-0.6399999999999999-3.84-1.2799999999999998-5.119999999999999s-1.2799999999999998-2.5599999999999996-1.92-3.1999999999999997c-1.2799999999999998-2.5599999999999996-2.5599999999999996-4.4799999999999995-4.4799999999999995-6.3999999999999995 0 0 0 0 0-0.6399999999999999l-356.48-384c-10.239999999999998-11.52-26.88-11.52-37.12 0l-356.48 384c0 0 0 0.6399999999999999 0 0.6399999999999999-1.92 1.92-2.5599999999999996 3.84-3.84 6.3999999999999995-0.6399999999999999 1.2799999999999998-1.92 2.5599999999999996-2.5599999999999996 3.84s-0.6399999999999999 3.1999999999999997-1.2799999999999998 5.119999999999999c-0.6399999999999999 1.2799999999999998-1.2799999999999998 3.84-1.2799999999999998 6.3999999999999995 0 0 0 0.6399999999999999 0 0.6399999999999999 0 1.92 0.6399999999999999 3.1999999999999997 0.6399999999999999 4.4799999999999995 0 2.5599999999999996 0.6399999999999999 4.4799999999999995 1.2799999999999998 7.04s1.92 4.4799999999999995 3.1999999999999997 6.3999999999999995c0.6399999999999999 1.2799999999999998 1.2799999999999998 2.5599999999999996 1.92 3.84 0 0 0 0 0.6399999999999999 0.6399999999999999 1.2799999999999998 1.92 3.1999999999999997 3.1999999999999997 5.119999999999999 4.4799999999999995 1.2799999999999998 0.6399999999999999 2.5599999999999996 1.92 3.84 2.5599999999999996s2.5599999999999996 0.6399999999999999 3.84 1.2799999999999998c1.92 0 3.84 1.2799999999999998 6.3999999999999995 1.2799999999999998 0 0 0.6399999999999999 0 0.6399999999999999 0h712.96c3.84 0 7.68-0.6399999999999999 10.879999999999999-2.5599999999999996 0.6399999999999999 0 0.6399999999999999-0.6399999999999999 1.2799999999999998-0.6399999999999999 3.1999999999999997-1.92 5.76-3.84 8.32-6.3999999999999995 0 0 0 0 0.6399999999999999 0 0.6399999999999999-1.2799999999999998 1.2799999999999998-2.5599999999999996 1.92-3.84 1.2799999999999998-1.92 2.5599999999999996-3.84 3.1999999999999997-6.3999999999999995 0.6399999999999999-1.92 0.6399999999999999-4.4799999999999995 1.2799999999999998-7.04 0-1.92 0.6399999999999999-3.1999999999999997 0.6399999999999999-4.4799999999999995-0.6399999999999999-0.6399999999999999-0.6399999999999999-1.2799999999999998-0.6399999999999999-1.2799999999999998z"}}]}'),e2=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:H$,name:"upShape"}),null)};e2.displayName="upShape";e2.inheritAttrs=!1;const B$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M897.6 422.4c-27.2-27.2-62.4-48-100.8-57.6C768 209.6 619.2 104 462.4 131.2c-120 20.8-212.8 115.2-233.6 233.6C131.2 388.8 64 475.2 64 574.4v9.6C64 704 160 800 278.4 800H320v-64h-41.6C195.2 736 128 668.8 128 585.6v-9.6c0-83.2 67.2-150.4 150.4-150.4H288c0-3.2 0-4.8 0-8l0 0c0-1.6 0-3.2 0-4.8v-1.6c0-1.6 0-3.2 0-4.8 0 0 0 0 0-1.6 0-1.6 0-3.2 0-4.8v-1.6c0-1.6 0-3.2 0-3.2 0-1.6 0-1.6 0-3.2 0 0 0-1.6 0-1.6 1.6-9.6 3.2-20.8 6.4-30.4l0 0c30.4-120 153.6-192 272-161.6 78.4 20.8 140.8 81.6 161.6 161.6l0 0c3.2 9.6 4.8 20.8 4.8 30.4 0 0 0 1.6 0 1.6 0 0 0 1.6 0 3.2 0 1.6 0 3.2 0 3.2V400c0 1.6 0 3.2 0 3.2v1.6c0 1.6 0 3.2 0 4.8v1.6c0 1.6 0 3.2 0 4.8l0 0c0 3.2 0 4.8 0 8h9.6c83.2-1.6 152 65.6 153.6 148.8 0 1.6 0 1.6 0 3.2v9.6c0 83.2-67.2 150.4-150.4 150.4l0 0H704v64h41.6C864 800 960 704 960 585.6v-9.6C960 518.4 937.6 464 897.6 422.4z"}},{"type":"element","name":"path","attributes":{"d":"M376 603.2L420.8 648 480 588.8 480 896 544 896 544 588.8 603.2 648 648 603.2 512 467.2z"}}]}'),$o=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:B$,name:"upload"}),null)};$o.displayName="upload";$o.inheritAttrs=!1;const z$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M664.4363636363636 0C676.8 0 688.5818181818182 4.945454545454554 697.3090909090909 13.67272727272728L697.3090909090909 13.67272727272728 1010.3272727272728 326.69090909090914C1019.0545454545455 335.41818181818184 1024 347.3454545454546 1024 359.70909090909095L1024 359.70909090909095 1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L977.4545454545455 1303.2727272727273 46.54545454545455 1303.2727272727273C20.80000000000002 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 1256.7272727272727 0 46.54545454545455C0 20.799999999999997 20.80000000000002 0 46.54545454545455 0L46.54545454545455 0ZM397.1878772363637 614.0514816000001L397.1878772363637 848.3380922181818C397.1878772363637 912.7669108363636 440.14042298181823 936.1955746909091 494.8073006545455 901.0525835636363L650.9983744 797.5759965090909C703.7128610909091 758.5282280727272 703.7128610909091 699.9565730909092 650.9983744 664.8135819636365L494.8073006545455 561.3369949090909C442.0928139636364 526.1940037818182 397.1878772363637 549.6226676363636 397.1878772363637 614.0514816000001ZM642.9090909090909 107.34545454545456L642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091 642.9090909090909 107.34545454545456Z"}}]}'),dd=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:z$,name:"videoFill"}),null)};dd.displayName="videoFill";dd.inheritAttrs=!1;const U$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM544 704h-64v-64h64V704zM544 576h-64V320h64V576z"}}]}'),Ai=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:U$,name:"warn"}),null)};Ai.displayName="warn";Ai.inheritAttrs=!1;const j$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M603.52 348.8c0 26.496-22.357333333333333 48-49.919999999999995 48s-49.919999999999995-21.503999999999998-49.919999999999995-48c0-26.496 22.357333333333333-48 49.919999999999995-48s49.919999999999995 21.503999999999998 49.919999999999995 48z"}},{"type":"element","name":"path","attributes":{"d":"M357.11999999999995 348.8c0 26.496-22.357333333333333 48-49.919999999999995 48s-49.919999999999995-21.503999999999998-49.919999999999995-48c0-26.496 22.357333333333333-48 49.919999999999995-48s49.919999999999995 21.503999999999998 49.919999999999995 48z"}},{"type":"element","name":"path","attributes":{"d":"M693.12 604.16c0 15.914666666666665-13.184 28.8-29.439999999999998 28.8s-29.439999999999998-12.885333333333332-29.439999999999998-28.8c0-15.914666666666665 13.184-28.8 29.439999999999998-28.8s29.439999999999998 12.885333333333332 29.439999999999998 28.8z"}},{"type":"element","name":"path","attributes":{"d":"M951.68 832c43.775999999999996-42.410666666666664 71.29599999999999-101.41866666666665 72.32-166.86933333333332-4.608-109.696-77.35466666666666-201.0453333333333-176.72533333333334-233.30133333333333 5.674666666666667-12.117333333333331 10.154666666666666-26.282666666666664 10.154666666666666-41.471999999999994 0-4.522666666666666-0.38399999999999995-8.959999999999999-1.152-13.226666666666667-33.834666666666664-181.29066666666665-212.39466666666664-313.1306666666667-425.5146666666667-313.1306666666667-238.71999999999997 0-430.72 167.04-430.72 372.48 1.2799999999999998 107.56266666666666 50.56 203.30666666666664 127.40266666666668 267.05066666666664l-16.682666666666666 55.50933333333333c-2.1759999999999997 6.784-3.456 14.634666666666668-3.456 22.741333333333333 0 42.410666666666664 34.38933333333333 76.8 76.8 76.8 12.458666666666666 0 24.191999999999997-2.944 34.602666666666664-8.234666666666666l101.33333333333333-52.906666666666666c32.81066666666666 7.722666666666666 70.52799999999999 12.159999999999998 109.22666666666666 12.159999999999998 0.08533333333333333 0 0.17066666666666666 0 0.21333333333333332 0h28.16c13.098666666666666-0.7679999999999999 25.130666666666663-4.693333333333333 35.54133333333333-11.050666666666666 54.22933333333333 73.55733333333333 140.672 120.53333333333333 238.07999999999998 120.53333333333333 1.664 0 3.3706666666666667 0 5.034666666666666-0.042666666666666665 21.077333333333332-0.08533333333333333 41.855999999999995-2.1759999999999997 61.99466666666667-6.101333333333333l49.10933333333333 26.581333333333333c9.941333333333333 5.034666666666666 21.717333333333332 8.021333333333333 34.176 8.021333333333333 42.410666666666664 0 76.8-34.38933333333333 76.8-76.8 0-8.106666666666666-1.2799999999999998-15.957333333333333-3.584-23.296zM430.72 752.64c-0.17066666666666666 0-0.38399999999999995 0-0.5973333333333333 0-40.831999999999994 0-80.29866666666666-5.8453333333333335-117.58933333333331-16.72533333333333l-3.456 0.7253333333333334-131.2 67.19999999999999 35.199999999999996-113.27999999999999h-3.1999999999999997c-86.10133333333332-52.05333333333333-143.40266666666668-144.17066666666665-145.92-249.89866666666666 0-172.50133333333332 165.76-312.66133333333335 366.72-312.66133333333335 5.717333333333333-0.3413333333333333 12.415999999999999-0.512 19.157333333333334-0.512 163.32799999999997 0 300.58666666666664 111.40266666666668 340.0106666666667 262.4l-14.805333333333332 2.432c-183.04 0-327.03999999999996 112-327.03999999999996 285.44 0.512 26.709333333333333 5.1626666666666665 52.181333333333335 13.312 75.98933333333332zM872.96 812.8v0l21.759999999999998 67.84-81.28-40.959999999999994h-3.84c-21.119999999999997 6.101333333333333-45.397333333333336 9.6-70.48533333333333 9.6-0.17066666666666666 0-0.38399999999999995 0-0.5546666666666666 0-5.888 0.5973333333333333-12.757333333333332 0.9386666666666665-19.712 0.9386666666666665-107.09333333333332 0-195.2853333333333-80.93866666666666-206.71999999999997-184.95999999999998 10.367999999999999-106.96533333333333 99.072-189.1413333333333 206.976-189.1413333333333 5.973333333333334 0 11.861333333333334 0.256 17.706666666666663 0.7253333333333334 4.309333333333333-0.512 10.197333333333333-0.7253333333333334 16.170666666666666-0.7253333333333334 107.904 0 196.60799999999998 82.17599999999999 206.976 187.34933333333333-1.7066666666666666 63.82933333333333-35.79733333333333 118.44266666666665-86.18666666666667 148.90666666666667z"}},{"type":"element","name":"path","attributes":{"d":"M839.68 604.16c0 15.914666666666665-13.184 28.8-29.439999999999998 28.8s-29.439999999999998-12.885333333333332-29.439999999999998-28.8c0-15.914666666666665 13.184-28.8 29.439999999999998-28.8s29.439999999999998 12.885333333333332 29.439999999999998 28.8z"}}]}'),t2=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:j$,name:"weixin"}),null)};t2.displayName="weixin";t2.inheritAttrs=!1;const W$=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M938.7497408 751.2461728C920.8062784 754.82336 903.6971584 761.7483104 888.3171424 771.6588704 873.2444672 787.4767936 854.2148288 798.974768 833.2014368 804.9605504 836.0031424 786.1484224 845.3295104 768.9776576 859.4186848 756.288864 871.2167136 738.281152 879.7148672 718.3169824 884.5154368 697.3306592 884.4496448 667.4985536 908.5720768 643.2573504 938.404144 643.1764192 968.2362112 643.0958944 992.489488 667.2061888 992.5854336 697.0382144 992.6808128 726.8702368 968.5826592 751.1355776 938.750688 751.2461728L938.7497408 751.2461728ZM839.887392 621.8411552C821.9636704 609.9596288 802.0664544 601.3664832 781.1284256 596.4645152 751.2856864 596.4645152 727.0933632 572.2721952 727.0933632 542.429456 727.0933632 512.5867168 751.2856864 488.3943936 781.1284256 488.3943936 810.9711648 488.3943936 835.1634848 512.5867168 835.1634848 542.429456 838.6847584 560.4011296 845.5262144 577.5586592 855.3370944 593.0223936 871.0537888 608.2166208 882.4379744 627.3243168 888.3180928 648.3790848 869.6373984 645.3981472 852.5734656 636.017312 840.046784 621.8421056L839.8475424 621.8421056 839.887392 621.8411552ZM750.8684864 431.3972864C734.5781792 294.94863136 593.2860736 188.03885088 422.3355456 188.03885088 240.21615008 188.03885088 92.03979968 309.2379936 92.03979936 458.2948 94.95593632 541.9888 139.14855232 618.8011392 210.0368576 663.38856 221.5372432 671.8631712 233.5698912 679.5906336 246.06054752 686.5232672L231.41160288 745.0013984C236.6943312 747.4833696 241.81766656 750.1247328 247.220888 752.4065152L321.18952 715.4226752C331.9959616 718.2243776 343.3640736 720.025136 354.650592 721.9463872 361.85552 723.2272224 369.060448 724.547904 376.4655648 725.4283584 422.593232 731.2438688 469.3960992 728.5578336 514.5555872 717.5033184 515.9529792 737.516592 519.6048064 757.3082016 525.4417248 776.50232 491.6425696 784.4255424 457.0499232 788.4674784 422.3345984 788.5497504 391.1907104 788.3740096 360.1499136 784.9532608 329.7151296 778.3429248L195.50556 845.347616C185.07039904 850.6853344 172.46917184 849.3674432 163.36421984 841.9861376 154.22346368 834.663392 150.17630784 822.6930592 152.99800448 811.3258208L177.01316512 714.622864C89.00876864 658.6573248 34.6398832 562.5538336 32 458.2948 32 275.85661632 206.75317888 128 422.3345984 128 627.0270304 128 794.6568768 261.44676096 810.9870336 431.077552 801.5855328 429.6306336 792.1123872 428.6953568 782.6094496 428.2758464 772.0022464 428.6762272 761.3950432 429.6762272 750.8675392 431.35744L750.8684864 431.3972864ZM626.1873728 644.4559392C644.1598464 640.8534752 661.250912 633.9692288 676.6209184 624.0432416 691.71416 608.248368 710.757408 596.778 731.7764736 590.8212576 728.9118528 609.5693568 719.631904 626.7430496 705.5193792 639.413248 693.7119872 657.4246176 685.2262272 677.4378848 680.4235744 698.4113024 680.4673568 728.2381472 656.3353184 752.4593408 626.5085184 752.5256864 596.6817152 752.59176 572.442384 728.4779392 572.353504 698.6511968 572.2651136 668.8244512 596.360704 644.5669952 626.1873728 644.4559392L626.1873728 644.4559392ZM723.5307488 774.460576C741.3827264 786.4283072 761.2356512 795.0744128 782.1293728 800.0772544 803.9845152 800.0772544 823.6876576 813.2424736 832.0512608 833.4339936 840.4148608 853.6255104 835.7918496 876.8669536 820.3379296 892.3208736 804.8840128 907.7747904 781.6425696 912.3978016 761.4510496 904.0342016 741.2595328 895.6706016 728.0943136 875.967456 728.0943136 854.1123136 724.6504032 836.118624 717.8619424 818.9305632 708.0810464 803.43968 692.4234336 788.1759744 681.1209152 769.0118048 675.339136 747.9235968 694.0371744 751.0004768 711.0783168 760.4976768 723.5307488 774.7812608L723.5307488 774.460576Z"}}]}'),n2=(e,t)=>{const n={...e,...t.attrs};return a.createVNode(De,a.mergeProps(n,{data:W$,name:"weixinPro"}),null)};n2.displayName="weixinPro";n2.inheritAttrs=!1;const G$=Object.freeze(Object.defineProperty({__proto__:null,AngleDoubleDownLine:Pu,AngleDoubleLeft:mi,AngleDoubleLeftLine:Th,AngleDoubleRight:gi,AngleDoubleRightLine:Eh,AngleDoubleUpLine:Mu,AngleDown:Ti,AngleDownFill:Ru,AngleDownLine:Oh,AngleLeft:lr,AngleRight:Dn,AngleUp:Ei,AngleUpFill:Xo,ArchiveFill:Fu,ArrowsLeft:Hu,ArrowsRight:Bu,Assistant:zu,AudioFill:Uu,Bk:Lh,Circle:qo,Close:bn,CloseLine:Jo,Code:Ah,CogShape:ju,CollapseLeft:Wu,Copy:Vh,CopyShape:Gu,DataShape:$h,Del:pi,DocFill:Dh,Done:ps,DownShape:Zo,DownSmall:Ao,EditLine:Ku,Ellipsis:Vo,EnlargeLine:Ih,Error:an,ExcelFill:kh,ExclamationCircleShape:Qo,Eye:Yu,FilliscreenLine:Ph,FixLine:Xu,FixShape:qu,Folder:Ju,FolderOpen:Mh,FolderShape:Rh,FolderShapeOpen:Zu,Funnel:Qu,GragFill:ed,Help:Fh,HelpDocumentFill:Hh,HelpFill:Bh,ImageFill:td,ImgError:zh,ImgPlacehoulder:Uh,Info:el,InfoLine:nd,LeftShape:jh,LeftTurnLine:Wh,Loading:rd,NarrowLine:Gh,Original:Kh,PdfFill:Yh,PlayShape:Xh,Plus:tl,PptFill:qh,Qq:Jh,RightShape:nl,RightTurnLine:ad,Search:vs,Share:Zh,Spinner:Oi,Success:Li,SwitcherLoading:sd,TextAll:id,TextFile:od,TextFill:ei,Transfer:ld,TreeApplicationShape:cd,UnfullScreen:Qh,Unvisible:ud,UpShape:e2,Upload:$o,VideoFill:dd,Warn:Ai,Weixin:t2,WeixinPro:n2},Symbol.toStringTag,{value:"Module"})),K$=a.defineComponent({name:"Alert",props:{theme:Tu().def(Sg.INFO),title:v.string,closable:v.bool.def(!1),closeText:v.string,showIcon:v.bool.def(!0)},emits:{close:e=>e},setup(e,t){const n=a.reactive({visible:!0});return{state:n,handleClose:s=>{n.visible=!1,t.emit("close",s)}}},render(){var o,c,u,d;if(!this.state.visible)return null;const{resolveClassName:e}=xe(),t=!!this.closeText,n=ze({[e("alert-close")]:!0,"close-text":t,[e("alert-close-icon")]:!t}),r=ze({[e("alert")]:!0,[e(`alert-${this.theme}`)]:!0}),s=a.createVNode(nd,{class:e("alert-icon-info")},null);return a.createVNode("div",{class:r},[a.createVNode("div",{class:e("alert-wraper")},[this.showIcon&&(((c=(o=this.$slots).icon)==null?void 0:c.call(o))??s),a.createVNode("div",{class:e("alert-content")},[a.createVNode("div",{class:e("alert-title")},[this.$slots.title?this.$slots.title():this.title]),a.createVNode("div",{class:e("alert-description")},[(d=(u=this.$slots).default)==null?void 0:d.call(u)])]),this.closable&&a.createVNode("span",{class:n,onClick:this.handleClose},[this.closeText?this.closeText:a.createVNode(Jo,null,null)])])])}}),Jg=Qe(K$),Y$=a.defineComponent({name:"AnimateNumber",props:{value:v.number.def(0),digits:v.number.def(0)},setup(e){let t=-1;const n=a.ref(0),r=a.computed(()=>Number(n.value).toFixed(e.digits)),s=(o,c)=>{if(Number.isNaN(+c))return 0;const u=Math.abs(c-o),d=c-o>0?1:-1,h=Math.ceil(u/30*10**e.digits)/10**e.digits,m=25/Math.ceil(u/h);let p=1;const y=()=>{if(p<m){t=requestAnimationFrame(y),p=p+1;return}n.value+=h*d,(d===1?n.value<c:n.value>c)?(t=requestAnimationFrame(y),p=1):n.value=c};y()};return a.watch(()=>e.value,(o,c)=>{s(c,o)}),a.onMounted(()=>{s(0,e.value)}),a.onBeforeUnmount(()=>{cancelAnimationFrame(t)}),()=>a.createVNode("span",null,[r.value])}}),Zg=Qe(Y$),X$=a.defineComponent({name:"Backtop",props:{visibilityHeight:v.number.def(200),target:v.string.def(""),right:v.number.def(40),bottom:v.number.def(40),extCls:v.string.def("")},setup(e,{slots:t}){const n=a.ref(null),r=a.ref(null),s=a.ref(!1),o=a.ref(ea.getModalNextIndex()),c=`${e.bottom}px`,u=`${e.right}px`,d=Nu(()=>{s.value=r.value.scrollTop>=e.visibilityHeight},30),h=()=>{r.value.scrollTo({top:0,behavior:"smooth"})};a.watch(()=>s,()=>{o.value=ea.getModalNextIndex()}),a.onMounted(()=>{if(n.value=document,r.value=document.documentElement,e.target){if(r.value=document.querySelector(e.target),!r.value)throw new Error("target does not exist");n.value=r.value}n.value.addEventListener("scroll",d)}),a.onBeforeUnmount(()=>{n.value.removeEventListener("scroll",d)});const{resolveClassName:f}=xe();return()=>a.createVNode(a.Transition,{name:"bk-fade"},{default:()=>{var m;return[s.value?a.createVNode("div",{style:{right:u,bottom:c,zIndex:o.value},class:`${f("backtop")} ${e.extCls}`,onClick:h},[((m=t.default)==null?void 0:m.call(t))??a.createVNode(Ei,{class:`${f("backtop-icon")}`},null)]):""]}})}}),Qg=Qe(X$),q$=a.defineComponent({name:"Badge",props:{theme:v.string.def("primary"),count:v.oneOfType([String,Number]).def(1),position:v.string.def("top-right"),radius:v.string,valLength:v.number.def(3),overflowCount:v.number.def(99),dot:v.bool.def(!1),visible:v.bool.def(!1),extCls:v.string},emits:["hover","leave"],setup(e,{emit:t}){const n=a.computed(()=>{if(typeof e.count=="string"){let u=e.count;u+="";const d=[];let h=0;return u.split("").forEach(f=>{h<Number(e.valLength)&&(h+=/[\u4e00-\u9fa5]/.test(f)?2:1,d.push(f))}),d.join("")}return e.count>e.overflowCount?`${e.overflowCount}+`:e.count}),r=a.computed(()=>({borderRadius:e.radius!==void 0&&/^\d+(%|px|em|rem|vh|vw)?$/.test(e.radius)&&/^\d+$/.test(e.radius)&&`${e.radius}px`||e.radius})),s=()=>{t("hover")},o=()=>{t("leave")},{resolveClassName:c}=xe();return{numberCount:n,handleHover:s,handleLeave:o,radiusStyle:r,resolveClassName:c}},render(){var r,s,o,c;const e=ze({[`${this.resolveClassName("badge-main")}`]:!0},this.$props.extCls),t=ze({[`${this.resolveClassName("badge")} ${this.resolveClassName(this.$props.theme)}`]:!!this.$props.theme,"pinned ":this.$slots.default,dot:this.$props.dot,[`${this.$props.position}`]:this.$slots.default,[`${this.resolveClassName("badge-icon")} is-icon`]:this.$slots.icon},""),n=this.$props.dot?"":a.createVNode("span",null,[this.numberCount]);return a.createVNode("div",{class:e},[((s=(r=this.$slots).default)==null?void 0:s.call(r))??"",this.$props.visible?"":a.createVNode("span",{style:this.radiusStyle,class:t,onMouseenter:this.handleHover,onMouseleave:this.handleLeave},[((c=(o=this.$slots).icon)==null?void 0:c.call(o))??n])])}}),ep=Qe(q$),J$={extCls:v.string,separator:v.string.def("/"),separatorClass:v.string,replace:v.bool,backRouter:v.oneOfType([v.string,v.object]).def("")},Z$=a.defineComponent({name:"Breadcrumb",props:J$,setup(e,{slots:t}){const{resolveClassName:n}=xe(),{proxy:r,appContext:s}=a.getCurrentInstance();a.provide("breadcrumb",e),a.onMounted(()=>{const u=r.$el.querySelectorAll(n("breadcrumb-item"));u.length&&u[u.length-1].setAttribute("aria-current","page")});const o=ze({[n("breadcrumb")]:!0},`${e.extCls||""}`),c=()=>{const{backRouter:u,replace:d}=e,{$router:h}=s.config.globalProperties;h&&(d?h.replace(u):h.push(u))};return()=>{var u;return a.createVNode("div",{class:o,"aria-label":"Breadcrumb",role:"navigation"},[!t.prefix&&e.backRouter?a.createVNode("div",{class:n("breadcrumb-goback")},[a.createVNode(Hu,{onClick:c},null)]):"",t.prefix?a.createVNode("div",{class:n("breadcrumb-goback")},[t.prefix()]):"",(u=t.default)==null?void 0:u.call(t)])}}}),Q$={extCls:v.string,to:v.oneOfType([v.string,v.object]).def(""),replace:v.bool};let tp=function(e){return e.CLICK="click",e}({});function eD(e){return e}const tD={[tp.CLICK]:eD},nD=a.defineComponent({name:"BreadcrumbItem",props:Q$,emits:tD,setup(e,{emit:t,slots:n}){const{resolveClassName:r}=xe(),{appContext:s}=a.getCurrentInstance(),o=a.inject("breadcrumb"),c=s.config.globalProperties.$router,u=f=>{t(tp.CLICK,f);const{to:m,replace:p}=e;!m||!c||(p?c.replace(m):c.push(m))},d=ze({[r("breadcrumb-item")]:!0},`${e.extCls||""}`),h=()=>n.separator?n.separator():o.separatorClass?a.createVNode("i",{class:`${r("breadcrumb-separator")} ${o.separatorClass}`},null):o.separator?a.createVNode("span",{class:r("breadcrumb-separator"),role:"presentation"},[o==null?void 0:o.separator]):null;return()=>{var f;return a.createVNode("span",{class:d},[a.createVNode("span",{ref:"link",class:`${r("breadcrumb-item-inner")} ${e.to?"is-link":""}`,role:"link",onClick:u},[(f=n.default)==null?void 0:f.call(n)]),h()])}}}),np=on(Z$,{Item:nD});let r2=function(e){return e.Default="default",e.Spin="spin",e}({}),os=function(e){return e.Large="large",e.Mini="mini",e.Normal="",e.Small="small",e}({}),C0;function rD(e){C0=typeof e=="function"?e:()=>a.createVNode(e,null,null)}const aD={indicator:{type:Function},loading:v.bool.def(!0),inline:v.bool.def(!0),theme:{type:String},title:v.string.def(""),size:{type:String,default:os.Normal},mode:{type:String,default:"default"},opacity:v.number.def(.9),color:v.string.def("white"),zIndex:v.number.def(1),isDirective:v.bool.def(!1)},rp=a.defineComponent({name:"Loading",props:aD,setup(e,t){const{resolveClassName:n}=xe(),r=a.createVNode("div",{class:`${n("normal-indicator")}`},[[1,2,3,4].map(m=>a.createVNode("span",{class:`dot dot-${m}`},null))]),s=a.createVNode("div",{class:`${n("spin-indicator")}`},[[1,2,3,4,5,6,7,8].map(m=>a.createVNode("span",{class:`oval oval-${m}`},null))]),o=a.computed(()=>({zIndex:e.zIndex})),c=a.computed(()=>({opacity:e.opacity,backgroundColor:e.color,...o.value})),u=a.computed(()=>ze({[`${n("loading-wrapper")}`]:e.loading,[`${n("nested-loading")}`]:!!t.slots.default,[`${n("directive-loading")}`]:e.isDirective})),d=a.computed(()=>ze({[`${n(`loading-size-${e.size}`)}`]:!!e.size,[`${n(`loading-${e.theme}`)}`]:!!e.theme},n("loading-indicator"))),h=a.computed(()=>!!e.title),f=a.computed(()=>{const m=e.mode===r2.Spin;return typeof e.indicator=="function"?a.createVNode(e.indicator,null,null):typeof C0=="function"?a.createVNode(C0,null,null):m?s:r});return()=>{var m,p;return a.createVNode("div",{class:u.value},[(p=(m=t.slots).default)==null?void 0:p.call(m),e.loading&&[(t.slots.default||e.isDirective)&&a.createVNode("div",{style:c.value,class:`${n("loading-mask")}`},null),a.createVNode("div",{style:o.value,class:d.value},[f.value,h.value&&a.createVNode("div",{class:`${n("loading-title")}`},[e.title])])]])}}}),Ec=Symbol("vBkLoading"),sD=(e,t)=>{const n=c=>{var u;return((u=t.value)==null?void 0:u[c])??void 0},r=a.reactive({indicator:n("indicator"),loading:n("loading")??!1,inline:n("inline")??!1,theme:n("theme"),title:n("title")??"",size:n("size")??"",mode:n("mode"),opacity:n("opacity"),color:n("color")??"white",zIndex:n("zIndex"),isDirective:!0}),s=document.createElement("div");Object.assign(s.style,{position:"absolute",left:0,right:0,top:0,bottom:0}),Object.assign(e.style,{position:"relative"});const o=a.createApp({render:()=>a.h(rp,r)});e[Ec]={options:r,instance:o,vm:o.mount(s)},e.appendChild(s)},iD=(e,t)=>{Object.keys(e).forEach(n=>{e[n]!==t[n]&&(t[n]=e[n])})},oD={mounted(e,t){t.value&&sD(e,t)},updated(e,t){var s,o,c;const n=e[Ec],{value:r}=t;iD(r,n.options),(c=(o=(s=n==null?void 0:n.vm)==null?void 0:s.$el)==null?void 0:o.parentNode)!=null&&c.style&&(n.vm.$el.parentNode.style.display=r.loading?"":"none")},unmounted(e){var n,r,s;const t=e[Ec];e==null||e.removeChild((r=(n=t==null?void 0:t.vm)==null?void 0:n.$el)==null?void 0:r.parentNode),(s=t==null?void 0:t.instance)==null||s.unmount(),e[Ec]=null}},La=on(rp,{setDefaultIndicator:rD,BkLoadingMode:r2,BkLoadingSize:os},!0,{name:"loading",directive:oD}),ap=["","small","large"],lD={theme:v.theme(),hoverTheme:v.theme(),size:{type:String,default:ap[0]},title:v.string,icon:v.string,iconRight:v.string,disabled:v.bool,loading:v.bool,loadingMode:{type:String,default:"default"},outline:v.bool,text:v.bool,selected:v.bool,nativeType:{type:String,default:"button"}},cD=a.defineComponent({name:"Button",props:lD,emits:["click","mouseover"],setup(e,{slots:t,emit:n}){const r=a.ref(!1),s=t.default??!1,{resolveClassName:o}=xe(),c=o("button"),u=a.computed(()=>e.text&&!e.hoverTheme),d=a.computed(()=>{const b=e.hoverTheme?`${c}-hover-${e.hoverTheme}`:"",N=e.theme?`${c}-${e.theme}`:"",w=e.hoverTheme?"":N;return ze({"is-disabled":e.disabled,"is-outline":e.outline,"is-text":u.value,"is-loading":e.loading,"is-selected":e.selected,[`${c}-${e.size}`]:e.size&&ap.includes(e.size),"no-slot":!s},`${w} ${c} ${b}`)}),h=a.computed(()=>e.text||e.outline||e.hoverTheme?r.value&&!e.text?"white":e.text&&e.disabled?void 0:e.hoverTheme||e.theme:e.theme?"white":void 0),f=a.computed(()=>u.value||e.size===os.Small?os.Mini:os.Small),m=b=>{e.loading||n("click",b)},p=b=>{r.value=!0,n("mouseover",b)},y=()=>{r.value=!1};return()=>{var b;return a.createVNode("button",{class:d.value,disabled:e.disabled,title:e.title,type:e.nativeType,onClick:m,onMouseleave:y,onMouseover:p},[e.loading&&a.createVNode(La,a.mergeProps({class:`${c}-loading`,mode:e.loadingMode,size:f.value,loading:!0},h.value?{theme:h.value}:{}),null),t.default&&a.createVNode("span",{class:`${c}-text`},[(b=t.default)==null?void 0:b.call(t)])])}}}),uD=a.defineComponent({name:"ButtonGroup",props:{size:v.size()},setup(e,t){const{resolveClassName:n}=xe(),r=a.computed(()=>ze({[`${n(`button-group-${e.size}`)}`]:!!e.size},`${n("button-group")}`));return()=>{var s,o;return a.createVNode("div",{class:r.value},[(o=(s=t.slots).default)==null?void 0:o.call(s)])}}}),Ht=on(cD,{ButtonGroup:uD}),dD=a.defineComponent({name:"CollapseTransition",setup(e,{slots:t}){const n={onBeforeEnter(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.style.maxHeight="0",s.style.paddingTop="0",s.style.paddingBottom="0"},onEnter(s){s.dataset.oldOverflow=s.style.overflow,s.scrollHeight!==0?(s.style.maxHeight=`${s.scrollHeight}px`,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom):(s.style.maxHeight="0",s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom),s.style.overflow="hidden"},onAfterEnter(s){s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow},onBeforeLeave(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.dataset.oldOverflow=s.style.overflow,s.style.maxHeight=`${s.scrollHeight}px`,s.style.overflow="hidden"},onLeave(s){s.scrollHeight!==0&&(s.style.maxHeight="0",s.style.paddingTop="0",s.style.paddingBottom="0")},onAfterLeave(s){s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom}},{resolveClassName:r}=xe();return{on:n,slots:t,resolveClassName:r}},render(){const e=this.resolveClassName("collapse-transition");return a.createVNode(a.Transition,a.mergeProps({name:e},this.on),{default:()=>[this.slots.default?this.slots.default():null]})}}),sp=Qe(dD),fD=e=>typeof Element>"u"?!1:e instanceof Element,Na=new Map;let ip;document.addEventListener("mousedown",e=>ip=e);document.addEventListener("mouseup",e=>{for(const t of Na.values())for(const{documentHandler:n}of t)n(e,ip)});function V6(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:fD(t.arg)&&n.push(t.arg),function(r,s){const{popperRef:o}=t.instance,c=r.target,u=s==null?void 0:s.target,d=!t||!t.instance,h=!c||!u,f=e.contains(c)||e.contains(u),m=e===c,p=n.length&&n.some(b=>b==null?void 0:b.contains(c))||n.length&&n.includes(u),y=o&&(o.contains(c)||o.contains(u));d||h||f||m||p||y||t.value(r,s)}}const kr={beforeMount(e,t){Na.has(e)||Na.set(e,[]),Na.get(e).push({documentHandler:V6(e,t),bindingFn:t.value})},updated(e,t){Na.has(e)||Na.set(e,[]);const n=Na.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),s={documentHandler:V6(e,t),bindingFn:t.value};r>=0?n.splice(r,1,s):n.push(s)},unmounted(e){Na.delete(e)}};kr.install=e=>{e.directive("bkTooltips",kr)};const $6=a.defineComponent({name:"PopArrow",render(){const{resolveClassName:e}=xe(),t=e("pop2-arrow");return a.createVNode("div",{class:t},null)}});let xr=function(e){return e.CLICK_OUTSIDE="clickoutside",e.CONTENT_AfterHidden="afterHidden",e.CONTENT_AfterShow="afterShow",e.CONTENT_MOUSEENTER="contentMouseenter",e.CONTENT_MOUSELEAVE="contentMouseleave",e}({});const D6=e=>!0,I6=e=>e,hD=e=>!0,mD={[xr.CLICK_OUTSIDE]:hD,[xr.CONTENT_MOUSEENTER]:I6,[xr.CONTENT_MOUSELEAVE]:I6,[xr.CONTENT_AfterHidden]:D6,[xr.CONTENT_AfterShow]:D6},k6=a.defineComponent({name:"PopContent",props:{width:v.oneOfType([v.string,v.number]).def("auto"),height:v.oneOfType([v.string,v.number]).def("auto"),maxHeight:v.oneOfType([v.string,v.number]).def("auto"),maxWidth:v.oneOfType([v.string,v.number]).def("auto"),extCls:v.string.def(""),visible:v.bool.def(!1),eventDelay:v.number.def(0)},setup(e){const t=h=>/^\d+\.?\d*$/.test(`${h}`)?`${h}px`:h,n=a.computed(()=>({width:t(e.width),height:t(e.height),maxHeight:t(e.maxHeight),maxWidth:t(e.maxWidth)})),r=a.ref(null),s=a.ref(null),o=()=>{e.eventDelay!==0&&(s.value&&clearTimeout(s.value),s.value=setTimeout(()=>{c("unset")},e.eventDelay??300))},c=h=>{var f;e.eventDelay!==0&&((f=r.value)==null||f.style.setProperty("pointer-events",h))},{resolveClassName:u}=xe(),d=a.computed(()=>[u("popover"),u("pop2-content"),e.visible?"visible":"hidden",e.extCls]);return{style:n,refContent:r,contentClassName:d,resetPointerEvent:o,setContentPointerEvent:c}},render(){var n,r,s,o,c,u;const t=(d=>{var h;return a.Fragment===((h=d==null?void 0:d[0])==null?void 0:h.type)&&a.nextTick(()=>{this.setContentPointerEvent("none"),this.resetPointerEvent()}),this.style})((r=(n=this.$slots).default)==null?void 0:r.call(n));return a.createVNode("div",{ref:"refContent",style:t,class:this.contentClassName},[((o=(s=this.$slots).arrow)==null?void 0:o.call(s))??"",((u=(c=this.$slots).default)==null?void 0:u.call(c))??""])}}),op={isShow:v.bool.def(!1),always:v.bool.def(!1),disabled:v.bool.def(!1),width:v.oneOfType([v.string,v.number]).def("auto"),height:v.oneOfType([v.string,v.number]).def("auto"),maxWidth:v.oneOfType([v.string,v.number]).def("auto"),maxHeight:v.oneOfType([v.string,v.number]).def("auto"),content:Pe("IContent",{}).def(""),target:v.oneOfType([v.string,v.instanceOf(HTMLElement),v.instanceOf(PointerEvent)]),allowHtml:v.bool.def(!1),placement:gh().def(Lo.TOP_START),theme:v.string.def("dark"),trigger:Ng(),renderType:Z_(),arrow:v.bool.def(!0),padding:v.number.def(5),offset:v.oneOfType([v.number,v.shape({mainAxis:v.number,crossAxis:v.number,alignmentAxis:v.number})]).def(6),boundary:v.oneOfType([v.string.def("parent"),v.instanceOf(HTMLElement)]),zIndex:v.number.def(void 0),disableTeleport:v.bool.def(!1),autoPlacement:v.bool.def(!1),autoVisibility:v.bool.def(!0),disableOutsideClick:v.bool.def(!1),disableTransform:v.bool.def(!1),reference:v.any,modifiers:v.array.def([]),popoverDelay:v.oneOfType([v.number,v.arrayOf(v.number)]).def(100),extCls:v.string.def(""),componentEventDelay:v.number.def(0),forceClickoutside:v.bool.def(!1)},gD=a.defineComponent({name:"PopReference",render(){var e,t;return((t=(e=this.$slots).default)==null?void 0:t.call(e))??""}}),P6=a.defineComponent({props:{class:v.string.def(""),mode:v.string.def("")},render(){var e,t;return a.createVNode(a.Fragment,null,[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),lp=["top","right","bottom","left"],M6=["start","end"],R6=lp.reduce((e,t)=>e.concat(t,t+"-"+M6[0],t+"-"+M6[1]),[]),ta=Math.min,$r=Math.max,Yc=Math.round,lc=Math.floor,Aa=e=>({x:e,y:e}),pD={left:"right",right:"left",bottom:"top",top:"bottom"},vD={start:"end",end:"start"};function N0(e,t,n){return $r(e,ta(t,n))}function Ia(e,t){return typeof e=="function"?e(t):e}function cr(e){return e.split("-")[0]}function Dr(e){return e.split("-")[1]}function cp(e){return e==="x"?"y":"x"}function a2(e){return e==="y"?"height":"width"}function rl(e){return["top","bottom"].includes(cr(e))?"y":"x"}function s2(e){return cp(rl(e))}function up(e,t,n){n===void 0&&(n=!1);const r=Dr(e),s=s2(e),o=a2(s);let c=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(c=qc(c)),[c,qc(c)]}function yD(e){const t=qc(e);return[Xc(e),t,Xc(t)]}function Xc(e){return e.replace(/start|end/g,t=>vD[t])}function bD(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:c;default:return[]}}function wD(e,t,n,r){const s=Dr(e);let o=bD(cr(e),n==="start",r);return s&&(o=o.map(c=>c+"-"+s),t&&(o=o.concat(o.map(Xc)))),o}function qc(e){return e.replace(/left|right|bottom|top/g,t=>pD[t])}function CD(e){return{top:0,right:0,bottom:0,left:0,...e}}function i2(e){return typeof e!="number"?CD(e):{top:e,right:e,bottom:e,left:e}}function vi(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function F6(e,t,n){let{reference:r,floating:s}=e;const o=rl(t),c=s2(t),u=a2(c),d=cr(t),h=o==="y",f=r.x+r.width/2-s.width/2,m=r.y+r.height/2-s.height/2,p=r[u]/2-s[u]/2;let y;switch(d){case"top":y={x:f,y:r.y-s.height};break;case"bottom":y={x:f,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-s.width,y:m};break;default:y={x:r.x,y:r.y}}switch(Dr(t)){case"start":y[c]-=p*(n&&h?-1:1);break;case"end":y[c]+=p*(n&&h?-1:1);break}return y}const ND=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:c}=n,u=o.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:s}),{x:f,y:m}=F6(h,r,d),p=r,y={},b=0;for(let N=0;N<u.length;N++){const{name:w,fn:C}=u[N],{x:E,y:_,data:x,reset:O}=await C({x:f,y:m,initialPlacement:r,placement:p,strategy:s,middlewareData:y,rects:h,platform:c,elements:{reference:e,floating:t}});f=E??f,m=_??m,y={...y,[w]:{...y[w],...x}},O&&b<=50&&(b++,typeof O=="object"&&(O.placement&&(p=O.placement),O.rects&&(h=O.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:s}):O.rects),{x:f,y:m}=F6(h,p,d)),N=-1)}return{x:f,y:m,placement:p,strategy:s,middlewareData:y}};async function Do(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:c,elements:u,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=Ia(t,e),b=i2(y),w=u[p?m==="floating"?"reference":"floating":m],C=vi(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:h,rootBoundary:f,strategy:d})),E=m==="floating"?{...c.floating,x:r,y:s}:c.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),x=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{x:1,y:1},O=vi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:E,offsetParent:_,strategy:d}):E);return{top:(C.top-O.top+b.top)/x.y,bottom:(O.bottom-C.bottom+b.bottom)/x.y,left:(C.left-O.left+b.left)/x.x,right:(O.right-C.right+b.right)/x.x}}const xD=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:c,elements:u,middlewareData:d}=t,{element:h,padding:f=0}=Ia(e,t)||{};if(h==null)return{};const m=i2(f),p={x:n,y:r},y=s2(s),b=a2(y),N=await c.getDimensions(h),w=y==="y",C=w?"top":"left",E=w?"bottom":"right",_=w?"clientHeight":"clientWidth",x=o.reference[b]+o.reference[y]-p[y]-o.floating[b],O=p[y]-o.reference[y],T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let $=T?T[_]:0;(!$||!await(c.isElement==null?void 0:c.isElement(T)))&&($=u.floating[_]||o.floating[b]);const L=x/2-O/2,P=$/2-N[b]/2-1,I=ta(m[C],P),A=ta(m[E],P),D=I,X=$-N[b]-A,M=$/2-N[b]/2+L,W=N0(D,M,X),ne=!d.arrow&&Dr(s)!=null&&M!==W&&o.reference[b]/2-(M<D?I:A)-N[b]/2<0,B=ne?M<D?M-D:M-X:0;return{[y]:p[y]+B,data:{[y]:W,centerOffset:M-W-B,...ne&&{alignmentOffset:B}},reset:ne}}});function _D(e,t,n){return(e?[...n.filter(s=>Dr(s)===e),...n.filter(s=>Dr(s)!==e)]:n.filter(s=>cr(s)===s)).filter(s=>e?Dr(s)===e||(t?Xc(s)!==s:!1):!0)}const SD=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,s;const{rects:o,middlewareData:c,placement:u,platform:d,elements:h}=t,{crossAxis:f=!1,alignment:m,allowedPlacements:p=R6,autoAlignment:y=!0,...b}=Ia(e,t),N=m!==void 0||p===R6?_D(m||null,y,p):p,w=await Do(t,b),C=((n=c.autoPlacement)==null?void 0:n.index)||0,E=N[C];if(E==null)return{};const _=up(E,o,await(d.isRTL==null?void 0:d.isRTL(h.floating)));if(u!==E)return{reset:{placement:N[0]}};const x=[w[cr(E)],w[_[0]],w[_[1]]],O=[...((r=c.autoPlacement)==null?void 0:r.overflows)||[],{placement:E,overflows:x}],T=N[C+1];if(T)return{data:{index:C+1,overflows:O},reset:{placement:T}};const $=O.map(I=>{const A=Dr(I.placement);return[I.placement,A&&f?I.overflows.slice(0,2).reduce((D,X)=>D+X,0):I.overflows[0],I.overflows]}).sort((I,A)=>I[1]-A[1]),P=((s=$.filter(I=>I[2].slice(0,Dr(I[0])?2:3).every(A=>A<=0))[0])==null?void 0:s[0])||$[0][0];return P!==u?{data:{index:C+1,overflows:O},reset:{placement:P}}:{}}}},TD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:c,initialPlacement:u,platform:d,elements:h}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:N=!0,...w}=Ia(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const C=cr(s),E=cr(u)===u,_=await(d.isRTL==null?void 0:d.isRTL(h.floating)),x=p||(E||!N?[qc(u)]:yD(u));!p&&b!=="none"&&x.push(...wD(u,N,b,_));const O=[u,...x],T=await Do(t,w),$=[];let L=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&$.push(T[C]),m){const D=up(s,c,_);$.push(T[D[0]],T[D[1]])}if(L=[...L,{placement:s,overflows:$}],!$.every(D=>D<=0)){var P,I;const D=(((P=o.flip)==null?void 0:P.index)||0)+1,X=O[D];if(X)return{data:{index:D,overflows:L},reset:{placement:X}};let M=(I=L.filter(W=>W.overflows[0]<=0).sort((W,ne)=>W.overflows[1]-ne.overflows[1])[0])==null?void 0:I.placement;if(!M)switch(y){case"bestFit":{var A;const W=(A=L.map(ne=>[ne.placement,ne.overflows.filter(B=>B>0).reduce((B,k)=>B+k,0)]).sort((ne,B)=>ne[1]-B[1])[0])==null?void 0:A[0];W&&(M=W);break}case"initialPlacement":M=u;break}if(s!==M)return{reset:{placement:M}}}return{}}}};function H6(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function B6(e){return lp.some(t=>e[t]>=0)}const ED=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Ia(e,t);switch(r){case"referenceHidden":{const o=await Do(t,{...s,elementContext:"reference"}),c=H6(o,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:B6(c)}}}case"escaped":{const o=await Do(t,{...s,altBoundary:!0}),c=H6(o,n.floating);return{data:{escapedOffsets:c,escaped:B6(c)}}}default:return{}}}}};function dp(e){const t=ta(...e.map(o=>o.left)),n=ta(...e.map(o=>o.top)),r=$r(...e.map(o=>o.right)),s=$r(...e.map(o=>o.bottom));return{x:t,y:n,width:r-t,height:s-n}}function OD(e){const t=e.slice().sort((s,o)=>s.y-o.y),n=[];let r=null;for(let s=0;s<t.length;s++){const o=t[s];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(s=>vi(dp(s)))}const LD=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:s,platform:o,strategy:c}=t,{padding:u=2,x:d,y:h}=Ia(e,t),f=Array.from(await(o.getClientRects==null?void 0:o.getClientRects(r.reference))||[]),m=OD(f),p=vi(dp(f)),y=i2(u);function b(){if(m.length===2&&m[0].left>m[1].right&&d!=null&&h!=null)return m.find(w=>d>w.left-y.left&&d<w.right+y.right&&h>w.top-y.top&&h<w.bottom+y.bottom)||p;if(m.length>=2){if(rl(n)==="y"){const I=m[0],A=m[m.length-1],D=cr(n)==="top",X=I.top,M=A.bottom,W=D?I.left:A.left,ne=D?I.right:A.right,B=ne-W,k=M-X;return{top:X,bottom:M,left:W,right:ne,width:B,height:k,x:W,y:X}}const w=cr(n)==="left",C=$r(...m.map(I=>I.right)),E=ta(...m.map(I=>I.left)),_=m.filter(I=>w?I.left===E:I.right===C),x=_[0].top,O=_[_.length-1].bottom,T=E,$=C,L=$-T,P=O-x;return{top:x,bottom:O,left:T,right:$,width:L,height:P,x:T,y:x}}return p}const N=await o.getElementRects({reference:{getBoundingClientRect:b},floating:r.floating,strategy:c});return s.reference.x!==N.reference.x||s.reference.y!==N.reference.y||s.reference.width!==N.reference.width||s.reference.height!==N.reference.height?{reset:{rects:N}}:{}}}};async function AD(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),c=cr(n),u=Dr(n),d=rl(n)==="y",h=["left","top"].includes(c)?-1:1,f=o&&d?-1:1,m=Ia(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return u&&typeof b=="number"&&(y=u==="end"?b*-1:b),d?{x:y*f,y:p*h}:{x:p*h,y:y*f}}const VD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:c,middlewareData:u}=t,d=await AD(t,e);return c===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:s+d.x,y:o+d.y,data:{...d,placement:c}}}}},$D=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:c=!1,limiter:u={fn:w=>{let{x:C,y:E}=w;return{x:C,y:E}}},...d}=Ia(e,t),h={x:n,y:r},f=await Do(t,d),m=rl(cr(s)),p=cp(m);let y=h[p],b=h[m];if(o){const w=p==="y"?"top":"left",C=p==="y"?"bottom":"right",E=y+f[w],_=y-f[C];y=N0(E,y,_)}if(c){const w=m==="y"?"top":"left",C=m==="y"?"bottom":"right",E=b+f[w],_=b-f[C];b=N0(E,b,_)}const N=u.fn({...t,[p]:y,[m]:b});return{...N,data:{x:N.x-n,y:N.y-r}}}}};function Va(e){return fp(e)?(e.nodeName||"").toLowerCase():"#document"}function Vn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function aa(e){var t;return(t=(fp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fp(e){return e instanceof Node||e instanceof Vn(e).Node}function na(e){return e instanceof Element||e instanceof Vn(e).Element}function Pr(e){return e instanceof HTMLElement||e instanceof Vn(e).HTMLElement}function z6(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vn(e).ShadowRoot}function al(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Jn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function DD(e){return["table","td","th"].includes(Va(e))}function o2(e){const t=l2(),n=Jn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ID(e){let t=yi(e);for(;Pr(t)&&!fd(t);){if(o2(t))return t;t=yi(t)}return null}function l2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fd(e){return["html","body","#document"].includes(Va(e))}function Jn(e){return Vn(e).getComputedStyle(e)}function hd(e){return na(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function yi(e){if(Va(e)==="html")return e;const t=e.assignedSlot||e.parentNode||z6(e)&&e.host||aa(e);return z6(t)?t.host:t}function hp(e){const t=yi(e);return fd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pr(t)&&al(t)?t:hp(t)}function Io(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=hp(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),c=Vn(s);return o?t.concat(c,c.visualViewport||[],al(s)?s:[],c.frameElement&&n?Io(c.frameElement):[]):t.concat(s,Io(s,[],n))}function mp(e){const t=Jn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Pr(e),o=s?e.offsetWidth:n,c=s?e.offsetHeight:r,u=Yc(n)!==o||Yc(r)!==c;return u&&(n=o,r=c),{width:n,height:r,$:u}}function c2(e){return na(e)?e:e.contextElement}function ti(e){const t=c2(e);if(!Pr(t))return Aa(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=mp(t);let c=(o?Yc(n.width):n.width)/r,u=(o?Yc(n.height):n.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const kD=Aa(0);function gp(e){const t=Vn(e);return!l2()||!t.visualViewport?kD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vn(e)?!1:t}function fs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=c2(e);let c=Aa(1);t&&(r?na(r)&&(c=ti(r)):c=ti(e));const u=PD(o,n,r)?gp(o):Aa(0);let d=(s.left+u.x)/c.x,h=(s.top+u.y)/c.y,f=s.width/c.x,m=s.height/c.y;if(o){const p=Vn(o),y=r&&na(r)?Vn(r):r;let b=p.frameElement;for(;b&&r&&y!==p;){const N=ti(b),w=b.getBoundingClientRect(),C=Jn(b),E=w.left+(b.clientLeft+parseFloat(C.paddingLeft))*N.x,_=w.top+(b.clientTop+parseFloat(C.paddingTop))*N.y;d*=N.x,h*=N.y,f*=N.x,m*=N.y,d+=E,h+=_,b=Vn(b).frameElement}}return vi({width:f,height:m,x:d,y:h})}function MD(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Pr(n),o=aa(n);if(n===o)return t;let c={scrollLeft:0,scrollTop:0},u=Aa(1);const d=Aa(0);if((s||!s&&r!=="fixed")&&((Va(n)!=="body"||al(o))&&(c=hd(n)),Pr(n))){const h=fs(n);u=ti(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-c.scrollLeft*u.x+d.x,y:t.y*u.y-c.scrollTop*u.y+d.y}}function RD(e){return Array.from(e.getClientRects())}function pp(e){return fs(aa(e)).left+hd(e).scrollLeft}function FD(e){const t=aa(e),n=hd(e),r=e.ownerDocument.body,s=$r(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=$r(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+pp(e);const u=-n.scrollTop;return Jn(r).direction==="rtl"&&(c+=$r(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:c,y:u}}function HD(e,t){const n=Vn(e),r=aa(e),s=n.visualViewport;let o=r.clientWidth,c=r.clientHeight,u=0,d=0;if(s){o=s.width,c=s.height;const h=l2();(!h||h&&t==="fixed")&&(u=s.offsetLeft,d=s.offsetTop)}return{width:o,height:c,x:u,y:d}}function BD(e,t){const n=fs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Pr(e)?ti(e):Aa(1),c=e.clientWidth*o.x,u=e.clientHeight*o.y,d=s*o.x,h=r*o.y;return{width:c,height:u,x:d,y:h}}function U6(e,t,n){let r;if(t==="viewport")r=HD(e,n);else if(t==="document")r=FD(aa(e));else if(na(t))r=BD(t,n);else{const s=gp(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return vi(r)}function vp(e,t){const n=yi(e);return n===t||!na(n)||fd(n)?!1:Jn(n).position==="fixed"||vp(n,t)}function zD(e,t){const n=t.get(e);if(n)return n;let r=Io(e,[],!1).filter(u=>na(u)&&Va(u)!=="body"),s=null;const o=Jn(e).position==="fixed";let c=o?yi(e):e;for(;na(c)&&!fd(c);){const u=Jn(c),d=o2(c);!d&&u.position==="fixed"&&(s=null),(o?!d&&!s:!d&&u.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||al(c)&&!d&&vp(e,c))?r=r.filter(f=>f!==c):s=u,c=yi(c)}return t.set(e,r),r}function UD(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const c=[...n==="clippingAncestors"?zD(t,this._c):[].concat(n),r],u=c[0],d=c.reduce((h,f)=>{const m=U6(t,f,s);return h.top=$r(m.top,h.top),h.right=ta(m.right,h.right),h.bottom=ta(m.bottom,h.bottom),h.left=$r(m.left,h.left),h},U6(t,u,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function jD(e){const{width:t,height:n}=mp(e);return{width:t,height:n}}function WD(e,t,n){const r=Pr(t),s=aa(t),o=n==="fixed",c=fs(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const d=Aa(0);if(r||!r&&!o)if((Va(t)!=="body"||al(s))&&(u=hd(t)),r){const h=fs(t,!0,o,t);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=pp(s));return{x:c.left+u.scrollLeft-d.x,y:c.top+u.scrollTop-d.y,width:c.width,height:c.height}}function j6(e,t){return!Pr(e)||Jn(e).position==="fixed"?null:t?t(e):e.offsetParent}function yp(e,t){const n=Vn(e);if(!Pr(e))return n;let r=j6(e,t);for(;r&&DD(r)&&Jn(r).position==="static";)r=j6(r,t);return r&&(Va(r)==="html"||Va(r)==="body"&&Jn(r).position==="static"&&!o2(r))?n:r||ID(e)||n}const GD=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||yp,o=this.getDimensions;return{reference:WD(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}};function KD(e){return Jn(e).direction==="rtl"}const YD={convertOffsetParentRelativeRectToViewportRelativeRect:MD,getDocumentElement:aa,getClippingRect:UD,getOffsetParent:yp,getElementRects:GD,getClientRects:RD,getDimensions:jD,getScale:ti,isElement:na,isRTL:KD};function XD(e,t){let n=null,r;const s=aa(e);function o(){clearTimeout(r),n&&n.disconnect(),n=null}function c(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),o();const{left:h,top:f,width:m,height:p}=e.getBoundingClientRect();if(u||t(),!m||!p)return;const y=lc(f),b=lc(s.clientWidth-(h+m)),N=lc(s.clientHeight-(f+p)),w=lc(h),E={rootMargin:-y+"px "+-b+"px "+-N+"px "+-w+"px",threshold:$r(0,ta(1,d))||1};let _=!0;function x(O){const T=O[0].intersectionRatio;if(T!==d){if(!_)return c();T?c(!1,T):r=setTimeout(()=>{c(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(x,{...E,root:s.ownerDocument})}catch{n=new IntersectionObserver(x,E)}n.observe(e)}return c(!0),o}function qD(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=c2(e),f=s||o?[...h?Io(h):[],...Io(t)]:[];f.forEach(C=>{s&&C.addEventListener("scroll",n,{passive:!0}),o&&C.addEventListener("resize",n)});const m=h&&u?XD(h,n):null;let p=-1,y=null;c&&(y=new ResizeObserver(C=>{let[E]=C;E&&E.target===h&&y&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{y&&y.observe(t)})),n()}),h&&!d&&y.observe(h),y.observe(t));let b,N=d?fs(e):null;d&&w();function w(){const C=fs(e);N&&(C.x!==N.x||C.y!==N.y||C.width!==N.width||C.height!==N.height)&&n(),N=C,b=requestAnimationFrame(w)}return n(),()=>{f.forEach(C=>{s&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),m&&m(),y&&y.disconnect(),y=null,d&&cancelAnimationFrame(b)}}const JD=SD,ZD=$D,QD=TD,eI=ED,tI=xD,nI=LD,rI=(e,t,n)=>{const r=new Map,s={platform:YD,...n},o={...s.platform,_c:r};return ND(e,t,{...s,platform:o})};var aI=kn,sI=Bg;function iI(e){return aI(e)&&e.nodeType===1&&!sI(e)}var oI=iI;const lI=Kt(oI),e0={},x0=e=>document.querySelector(e)instanceof HTMLElement,cI=()=>(e0.fullscreenReferId||(e0.fullscreenReferId=`id_${or()}`),e0.fullscreenReferId),ko=e=>e instanceof Element||e instanceof HTMLDocument,bp=e=>{if(ko(e))return{isElement:!0,content:e,vNode:void 0};if(/^(#|\.)/.test(e)){const t=document.querySelector(e),n=ko(t);return{isElement:n,content:n?t:e,vNode:n?void 0:e}}return{isElement:!1,content:e,vNode:e}},uI=(e,t,{refReference:n,refContent:r,refArrow:s,refRoot:o})=>{const c=a.ref(!1),u=a.ref(),d=()=>{var me,ae;const Z=N();return(me=document.fullscreenElement)!=null&&me.shadowRoot?document.fullscreenElement.shadowRoot.contains(Z):(ae=document.fullscreenElement)==null?void 0:ae.contains(Z)},h=Z=>d()?document.fullscreenElement.shadowRoot?document.fullscreenElement.shadowRoot.querySelector(Z):document.fullscreenElement.querySelector(Z):document.body,f=["dark","light"],m=a.computed(()=>{var pe;const Z=((pe=e.theme)==null?void 0:pe.split(/\s+/))??[];Z.sort((G,fe)=>Number(f.includes(fe))-Number(f.includes(G)));const me=Z,ae=Z.filter(G=>!f.includes(G));return{systemThemes:me,customThemes:ae}}),p=()=>e.autoVisibility,y=()=>e.autoPlacement,b=()=>{var we,le,q;const Z=N(),me=E((we=r.value)==null?void 0:we.$el),ae=e.arrow?E((le=s.value)==null?void 0:le.$el):null,pe=E((q=o.value)==null?void 0:q.$el),{isElement:G,content:fe}=bp(e.content);return me&&G&&!(me!=null&&me.contains(fe))&&me.append(fe),{elReference:Z,elContent:me,elArrow:ae,root:pe}},N=()=>{var Z;return E(e.target)||E((Z=n.value)==null?void 0:Z.$el)},w=()=>{const Z={};return Array.isArray(e.modifiers)&&e.modifiers.forEach(me=>{var pe,G,fe,we;let ae;if(me.name==="offset"){if(typeof((pe=me.options)==null?void 0:pe.offset)=="number"&&(ae=(G=me.options)==null?void 0:G.offset),Array.isArray((fe=me.options)==null?void 0:fe.offset)){const[le,q]=(we=me.options)==null?void 0:we.offset;ae={mainAxis:le,crossAxis:q}}Object.assign(Z,{offset:ae})}}),Z},C=(Z,me)=>{const ae=w(),pe=[VD(ae.offset||me.offset),ZD({padding:me.padding})],G={placement:me.placement,middleware:pe};return me.arrow&&pe.push(tI({element:Z})),y()&&pe.push(JD()),pe.unshift(nI()),pe.push(QD()),p()&&G.middleware.push(eI()),G},E=Z=>{if(Z instanceof HTMLElement)return Z;if(Z instanceof Text)return E(Z.nextElementSibling);if(typeof(Z==null?void 0:Z.getBoundingClientRect)=="function")return Z;if(typeof Z=="string"){const me=document.querySelector(Z);return lI(me)?me:null}return Z instanceof PointerEvent?E(Z.target):null},_=m.value.customThemes.join(" "),x=m.value.customThemes.reduce((Z,me)=>({[`data-${me}-theme`]:!0,...Z}),{}),O=`${_}`;let T=null;const $=Z=>{const me=window.devicePixelRatio||1;return Math.round(Z*me)/me||0},L=(Z,me,ae,pe)=>{var fe;e.disableTransform?Object.assign(Z.style,{left:`${$(me)}px`,top:`${$(ae)}px`}):Object.assign(Z.style,{left:"0",top:"0",transform:`translate3d(${$(me)}px,${$(ae)}px,0)`});const G=p()?(fe=pe.hide)==null?void 0:fe.referenceHidden:!1;Object.assign(Z.style,{visibility:G?"hidden":"visible"})},P=(Z,me,ae)=>{if(e.arrow){const{x:pe,y:G}=ae.arrow??{};Z.setAttribute("data-arrow",me);const fe={left:"",top:"",bottom:"",right:""};Object.assign(Z.style,fe);const we={top:"bottom",right:"left",bottom:"top",left:"right"}[me];Object.assign(Z.style,{left:pe!==null?`${pe}px`:"",top:G!==null?`${G}px`:"",[we]:"-4px"})}},I=()=>{const{elReference:Z,elContent:me}=b();T=qD(Z,me,()=>{c.value&&A(null,e)})},A=(Z=null,me={},ae)=>{const{elReference:pe,elContent:G,elArrow:fe}=b(),we=Z||pe;if(!we||!G)return;const le=C(fe,me);rI(we,G,le).then(({x:q,y:se,placement:de,middlewareData:U})=>{const ee=G.className;G.className=`${ee.replace(O,"")} ${O}`.replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(x).forEach(ie=>{G.setAttribute(ie,x[ie])});const Ce=de.split("-")[0];let j=Ce;["left","right","top","bottom"].includes(Ce)||(j="top"),L(G,q,se,U),P(fe,j,U),typeof ae=="function"&&ae()})};let D,X,M=!1;const W=()=>Array.isArray(e.popoverDelay)?[e.popoverDelay[0],e.popoverDelay.slice(-1)[0]]:[e.popoverDelay,e.popoverDelay],ne=()=>{const Z=W()[0];X=setTimeout(()=>{e.disabled||(c.value=!0)},Z)},B=()=>{const Z=W()[1];D=setTimeout(()=>{X&&clearTimeout(X),c.value=!1},Z)},k=()=>{var me;const Z=E((me=r.value)==null?void 0:me.$el);Z.style.setProperty("display","block"),Z.style.setProperty("z-index",`${e.zIndex?e.zIndex:ea.getPopperIndex()}`),A(),t.emit(xr.CONTENT_AfterShow,{isShow:!0})},re=()=>{var me;E((me=r.value)==null?void 0:me.$el).style.setProperty("display","none"),t.emit(xr.CONTENT_AfterHidden,{isShow:!1})},J=()=>{c.value?B():ne()},K=()=>{J()},F=Z=>{e.trigger==="hover"&&(D&&(M=!0,clearTimeout(D),D=void 0),Y(Z))},z=Z=>{M&&!X&&(B(),M=!1,te(Z))},Y=Z=>{t.emit(xr.CONTENT_MOUSEENTER,Z)},te=Z=>{t.emit(xr.CONTENT_MOUSELEAVE,Z)},ue=()=>({hover:{content:[["mouseenter",F],["mouseleave",z]],reference:[["mouseenter",ne],["mouseleave",B],["focus",ne],["blur",B]]},click:[["click",K]],manual:{content:[["mouseenter",Y],["mouseleave",te]],reference:[[]]}})[e.trigger]??[],ce=Z=>{u.value=Z};return a.watch(()=>e.isShow,Z=>{c.value=Z}),a.watch(c,Z=>{Z?k():re()}),{showPopover:ne,hidePopover:B,resolveTriggerEvents:ue,updatePopover:A,triggerPopover:J,resolvePopElements:b,isElementFullScreen:d,resolveTargetElement:E,createPopInstance:I,updateFullscreenTarget:ce,getFullscreenRoot:h,stopHide:()=>{D&&(M=!0,clearTimeout(D),D=void 0)},localIsShow:c,cleanup:T}};let ba=null,cc=null;const dI=(e,t="#")=>{const n=r=>{let s=null;const o=d=>{s===null&&d()},c=()=>{if(/^parent$/i.test(e.boundary)){s=`${t}${ba}`;const{parentNode:d}=r||{};d!=null&&d.parentNode&&(d.parentNode.setAttribute("data-pnode-id",cc),s=`[data-pnode-id=${cc}]`)}},u=()=>{if(!/^body$/i.test(e.boundary)){if(typeof e.boundary=="string"){if(!x0(e.boundary)){s="body";return}s=e.boundary;return}if(ko(e.boundary)){s=e.boundary;return}}};return o(c),o(u),o(()=>{s=typeof e.boundary=="string"?e.boundary:`${t}${ba}`}),s};if(ba===null||!x0(`#${ba}`)){ba=`id_${or()}`;const r=document.createElement("div");r.setAttribute("id",ba),r.setAttribute("data-popper-id",ba),document.body.append(r)}return cc===null&&(cc=`id_${or()}`),{popContainerId:ba,prefixId:n(),getPrefixId:n}},fI=(e,t,{refReference:n,refContent:r,refArrow:s,refRoot:o})=>{let c=null;const u=a.ref(!1),d=cI(),h=a.ref(),{localIsShow:f,showPopover:m,hidePopover:p,updatePopover:y,cleanup:b,resolveTriggerEvents:N,resolvePopElements:w,isElementFullScreen:C,updateFullscreenTarget:E,createPopInstance:_,getFullscreenRoot:x,stopHide:O}=uI(e,t,{refReference:n,refContent:r,refArrow:s,refRoot:o}),T=()=>{b==null||b(),_()},$=()=>{m()},L=()=>{p()},P=()=>{_(),e.always?m():I()},I=()=>{const{elReference:te,elContent:ue}=w();if(c=N(),Array.isArray(c))A(te,c);else{const{content:ce,reference:be}=c;A(te,be),A(ue,ce)}},A=(te,ue)=>{ue.forEach(([ce,be])=>{ce&&typeof be=="function"&&te.addEventListener(ce,be)})},D=()=>{if(c!=null&&c.length){const{elReference:te}=w();te&&c.forEach(([ue,ce])=>{ue&&typeof ce=="function"&&te.removeEventListener(ue,ce)}),c=null}},X=te=>(te==null?void 0:te.closest("[data-fllsrn-id]"))??te,M=()=>{const{elReference:te,root:ue}=w();if(u.value){const{parentNode:ce}=te||ue||{};k.value=(h==null?void 0:h.value)??X(ce);return}k.value=W(ue||te)},{getPrefixId:W}=dI(e,"#"),ne=()=>{var te;(te=h==null?void 0:h.value)==null||te.setAttribute("data-fllsrn-id",d)},B=()=>{var ue;const te=`[data-fllsrn-id=${d}]`;(((ue=h==null?void 0:h.value)==null?void 0:ue.querySelectorAll(te))??[]).forEach(ce=>{ce==null||ce.removeAttribute("data-fllsrn-id")})},k=a.ref(),re=()=>{D()},J=te=>{h.value=te,E(te),u.value=C(),ne()},K=te=>{document.fullscreenElement||B(),J(te.target),M(),y(null,e)};return{onMountedFn:()=>{if(!e.disabled){if(P(),C()){const te=`[data-fllsrn-id=${d}]`,ue=x(te);J(ue)}M(),document.body.addEventListener("fullscreenchange",K)}},onUnmountedFn:()=>{re(),document.body.removeEventListener("fullscreenchange",K)},handleClickOutside:te=>{t.emit(xr.CLICK_OUTSIDE,{isShow:f.value,event:te});const ue=e.disableOutsideClick||e.always||e.disabled||e.trigger==="manual";!e.forceClickoutside&&ue||f.value&&L()},beforeInstanceUnmount:re,updateBoundary:M,initPopInstance:P,updatePopover:y,resetPopover:T,showPopover:m,hidePopover:p,showFn:$,hideFn:L,stopHide:O,isFullscreen:u,boundary:k,localIsShow:f}};function hI(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const wp=a.defineComponent({name:"Popover",components:{Content:k6,Arrow:$6,Root:P6},directives:{clickoutside:kr},props:op,emits:mD,setup(e,t){const{reference:n}=a.toRefs(e),r=a.ref(),s=a.ref(),o=a.ref(),c=a.ref(),u=a.computed(()=>n.value||r.value),{onMountedFn:d,onUnmountedFn:h,handleClickOutside:f,beforeInstanceUnmount:m,updateBoundary:p,initPopInstance:y,showFn:b,hideFn:N,showPopover:w,hidePopover:C,updatePopover:E,resetPopover:_,stopHide:x,localIsShow:O,boundary:T}=fI(e,t,{refReference:u,refContent:s,refArrow:o,refRoot:c});!e.always&&!e.disabled&&a.watch(()=>e.isShow,()=>{e.isShow?w():C()},{immediate:!0}),a.watch(()=>[e.disabled],D=>{D[0]?m():y()}),p(),a.onMounted(d),a.onBeforeUnmount(h);const $=a.computed(()=>O.value&&!e.disableTeleport),L=()=>{b()},P=()=>{N()},I=a.computed(()=>e.renderType===Su.AUTO?!0:O.value),A=()=>{if(e.allowHtml){const{vNode:D}=bp(e.content);return D}return e.content};return{boundary:T,arrow:e.arrow,refDefaultReference:r,refContent:s,refArrow:o,content:e.content,theme:e.theme,transBoundary:$,handleClickOutside:f,updatePopover:E,resetPopover:_,hide:P,show:L,stopHide:x,contentIsShow:I,renderContent:A,localIsShow:O}},render(){let e;const t=n=>{var r;return a.Text===((r=n==null?void 0:n[0])==null?void 0:r.type)?a.createVNode("span",null,[n]):n};return a.createVNode(P6,{ref:"refRoot"},{default:()=>{var n,r;return[a.createVNode(gD,{ref:"refDefaultReference"},hI(e=t(((r=(n=this.$slots).default)==null?void 0:r.call(n))??a.createVNode("span",null,null)))?e:{default:()=>[e]}),a.createVNode(a.Teleport,{disabled:!this.transBoundary,to:this.boundary},{default:()=>[a.withDirectives(a.createVNode(k6,{ref:"refContent",width:this.width,height:this.height,extCls:this.extCls,"data-theme":this.theme,eventDelay:this.componentEventDelay,maxHeight:this.maxHeight,maxWidth:this.maxWidth,visible:this.localIsShow},{default:()=>{var s,o;return[this.contentIsShow?((o=(s=this.$slots).content)==null?void 0:o.call(s))??this.renderContent():""]},arrow:()=>this.arrow?a.createVNode($6,{ref:"refArrow"},{default:()=>{var s,o;return[(o=(s=this.$slots).arrow)==null?void 0:o.call(s)]}}):""}),[[a.resolveDirective("clickoutside"),this.handleClickOutside]])]})]}})}});function md(e){let t=null,n=null,r=null;const s=e.immediate??!0,o={boundary:"body",placement:"top",autoVisibility:!0,isShow:!1,trigger:"manual",onHide:()=>{},onShow:()=>{},...e,allowHtml:!0},c={name:"$popover",setup(b,{expose:N}){const w=()=>Object.keys(op).reduce((A,D)=>(Object.prototype.hasOwnProperty.call(o,D)&&Object.assign(A,{[D]:o[D]}),A),{target:o.target}),C=a.reactive(w()),E=a.ref(),_=()=>{var A,D;(D=(A=E.value)==null?void 0:A.show)==null||D.call(A)},x=()=>{var A,D;(D=(A=E.value)==null?void 0:A.hide)==null||D.call(A)},O=()=>{var A,D;(D=(A=E.value)==null?void 0:A.stopHide)==null||D.call(A)},T=A=>{var D,X;C.target=A,(X=(D=E.value)==null?void 0:D.resetPopover)==null||X.call(D)},$=()=>{var A;(A=o.onContentMouseenter)==null||A.call(o)},L=()=>{var A;(A=o.onContentMouseleave)==null||A.call(o)},P=()=>{var A;(A=o.onHide)==null||A.call(o)},I=()=>{var A;(A=o.onShow)==null||A.call(o)};return N({show:_,hide:x,updateTarget:T,stopHide:O}),()=>a.createVNode(wp,a.mergeProps(C,{ref:E,onAfterHidden:P,onAfterShow:I,onContentMouseenter:$,onContentMouseleave:L}),null)}};function u(b){return/^body$/i.test(b)?document.body:/^parent$/i.test(b)?ko(o.target)?o.target.parentNode:o.target.target.parentNode:typeof b=="string"&&x0(b)?document.querySelector(b):document.body}const d=()=>{t===null&&(r=document.createElement("div"),u(o.boundary).append(r),t=a.createApp(c),n=t.mount(r))},h=()=>{ko(e.content)&&e.content.remove(),t.unmount(),t=null,r==null||r.remove()};function f(){h(),n=null}function m(b){d(),b&&(n==null||n.updateTarget(b)),n==null||n.show()}function p(b){n==null||n.updateTarget(b)}function y(){n==null||n.hide()}return s&&d(),{install:d,close:f,show:m,hide:y,update:p,uninstall:h,get vm(){return n},get $el(){return n.$el}}}const W6=(e,t)=>{const n={content:"",target:e};return typeof t=="object"?(Object.assign(n,t),Object.prototype.hasOwnProperty.call(t,"popoverOption")&&Object.assign(n,t.popoverOption)):n.content=t,n},u2=(e,t)=>{let n=null,r=null,s=null;const o=W6(e,t),{disabled:c}=o;if(c||n)return;const u=()=>{s&&clearTimeout(s),s=null},d=()=>{r&&clearTimeout(r),n==null||n.hide(),n==null||n.close(),n=null},h=()=>{d(),r&&clearTimeout(r),r=setTimeout(()=>{const p=W6(e,t);p.isShow=!0,p.content=typeof p.content=="function"?p.content():p.content??e,p.allowHtml=!0,Object.assign(p,{onContentMouseenter:u,onContentMouseleave:d}),n=md(p)},300)},f=()=>{s=setTimeout(()=>{r&&clearTimeout(r),n==null||n.hide(),n==null||n.close(),n=null},120)};return e.addEventListener("mouseenter",h),e.addEventListener("mouseleave",f),{destroyInstance:p=>{var y,b;f(),(y=p??e)==null||y.removeEventListener("mouseenter",h),(b=p??e)==null||b.removeEventListener("mouseleave",f)},instance:n}},mI={mounted(e,t){u2(e,t)}};var G6=!1,rs,_0,S0,Oc,Lc,Cp,Ac,T0,E0,O0,Np,L0,A0,xp,_p;function hn(){if(!G6){G6=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(L0=/\b(iPhone|iP[ao]d)/.exec(e),A0=/\b(iP[ao]d)/.exec(e),O0=/Android/i.exec(e),xp=/FBAN\/\w+;/i.exec(e),_p=/Mobile/i.exec(e),Np=!!/Win64/.exec(e),t){rs=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,rs&&document&&document.documentMode&&(rs=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);Cp=r?parseFloat(r[1])+4:rs,_0=t[2]?parseFloat(t[2]):NaN,S0=t[3]?parseFloat(t[3]):NaN,Oc=t[4]?parseFloat(t[4]):NaN,Oc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Lc=t&&t[1]?parseFloat(t[1]):NaN):Lc=NaN}else rs=_0=S0=Lc=Oc=NaN;if(n){if(n[1]){var s=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ac=s?parseFloat(s[1].replace("_",".")):!0}else Ac=!1;T0=!!n[2],E0=!!n[3]}else Ac=T0=E0=!1}}var V0={ie:function(){return hn()||rs},ieCompatibilityMode:function(){return hn()||Cp>rs},ie64:function(){return V0.ie()&&Np},firefox:function(){return hn()||_0},opera:function(){return hn()||S0},webkit:function(){return hn()||Oc},safari:function(){return V0.webkit()},chrome:function(){return hn()||Lc},windows:function(){return hn()||T0},osx:function(){return hn()||Ac},linux:function(){return hn()||E0},iphone:function(){return hn()||L0},mobile:function(){return hn()||L0||A0||O0||_p},nativeApp:function(){return hn()||xp},android:function(){return hn()||O0},ipad:function(){return hn()||A0}},gI=V0,uc=!!(typeof window<"u"&&window.document&&window.document.createElement),pI={canUseDOM:uc,canUseWorkers:typeof Worker<"u",canUseEventListeners:uc&&!!(window.addEventListener||window.attachEvent),canUseViewport:uc&&!!window.screen,isInWorker:!uc},vI=pI,Sp=vI,Tp;Sp.canUseDOM&&(Tp=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
20
20
  * Checks if an event is supported in the current execution environment.
21
21
  *
22
22
  * NOTE: This will not work correctly for non-generic events such as `change`,
@@ -379,9 +379,9 @@ __p += '`),ot&&(Oe+=`' +
379
379
  function print() { __p += __j.call(arguments, '') }
380
380
  `:`;
381
381
  `)+Oe+`return __p
382
- }`;var nt=K1(function(){return lt(H,Be+"return "+Oe).apply(n,Q)});if(nt.source=Oe,Ff(nt))throw nt;return nt}function NC(i){return ct(i).toLowerCase()}function xC(i){return ct(i).toUpperCase()}function _C(i,l,g){if(i=ct(i),i&&(g||l===n))return n3(i);if(!i||!(l=_n(l)))return i;var S=Qn(i),V=Qn(l),H=r3(S,V),Q=a3(S,V)+1;return va(S,H,Q).join("")}function SC(i,l,g){if(i=ct(i),i&&(g||l===n))return i.slice(0,i3(i)+1);if(!i||!(l=_n(l)))return i;var S=Qn(i),V=a3(S,Qn(l))+1;return va(S,0,V).join("")}function TC(i,l,g){if(i=ct(i),i&&(g||l===n))return i.replace(Zn,"");if(!i||!(l=_n(l)))return i;var S=Qn(i),V=r3(S,Qn(l));return va(S,V).join("")}function EC(i,l){var g=I,S=A;if(St(l)){var V="separator"in l?l.separator:V;g="length"in l?et(l.length):g,S="omission"in l?_n(l.omission):S}i=ct(i);var H=i.length;if(Ds(i)){var Q=Qn(i);H=Q.length}if(g>=H)return i;var oe=g-Is(S);if(oe<1)return S;var ge=Q?va(Q,0,oe).join(""):i.slice(0,oe);if(V===n)return ge+S;if(Q&&(oe+=ge.length-oe),Hf(V)){if(i.slice(oe).search(V)){var Se,Te=ge;for(V.global||(V=tf(V.source,ct(Pi.exec(V))+"g")),V.lastIndex=0;Se=V.exec(Te);)var Oe=Se.index;ge=ge.slice(0,Oe===n?oe:Oe)}}else if(i.indexOf(_n(V),oe)!=oe){var Me=ge.lastIndexOf(V);Me>-1&&(ge=ge.slice(0,Me))}return ge+S}function OC(i){return i=ct(i),i&&bs.test(i)?i.replace(oa,r8):i}var LC=Bs(function(i,l,g){return i+(g?" ":"")+l.toUpperCase()}),Uf=Y3("toUpperCase");function G1(i,l,g){return i=ct(i),l=g?n:l,l===n?Z5(i)?i8(i):U5(i):i.match(l)||[]}var K1=rt(function(i,l){try{return Nn(i,n,l)}catch(g){return Ff(g)?g:new Ye(g)}}),AC=zr(function(i,l){return Fn(l,function(g){g=gr(g),Hr(i,g,Mf(i[g],i))}),i});function VC(i){var l=i==null?0:i.length,g=je();return i=l?Ct(i,function(S){if(typeof S[1]!="function")throw new Hn(c);return[g(S[0]),S[1]]}):[],rt(function(S){for(var V=-1;++V<l;){var H=i[V];if(Nn(H[0],this,S))return Nn(H[1],this,S)}})}function $C(i){return r7(zn(i,m))}function jf(i){return function(){return i}}function DC(i,l){return i==null||i!==i?l:i}var IC=q3(),kC=q3(!0);function fn(i){return i}function Wf(i){return T3(typeof i=="function"?i:zn(i,m))}function PC(i){return O3(zn(i,m))}function MC(i,l){return L3(i,zn(l,m))}var RC=rt(function(i,l){return function(g){return Gi(g,i,l)}}),FC=rt(function(i,l){return function(g){return Gi(i,g,l)}});function Gf(i,l,g){var S=Bt(l),V=Fl(l,S);g==null&&!(St(l)&&(V.length||!S.length))&&(g=l,l=i,i=this,V=Fl(l,Bt(l)));var H=!(St(g)&&"chain"in g)||!!g.chain,Q=jr(i);return Fn(V,function(oe){var ge=l[oe];i[oe]=ge,Q&&(i.prototype[oe]=function(){var Se=this.__chain__;if(H||Se){var Te=i(this.__wrapped__),Oe=Te.__actions__=cn(this.__actions__);return Oe.push({func:ge,args:arguments,thisArg:i}),Te.__chain__=Se,Te}return ge.apply(i,da([this.value()],arguments))})}),i}function HC(){return Ut._===this&&(Ut._=f8),this}function Kf(){}function BC(i){return i=et(i),rt(function(l){return A3(l,i)})}var zC=_f(Ct),UC=_f(J2),jC=_f(Yd);function Y1(i){return Vf(i)?Xd(gr(i)):w7(i)}function WC(i){return function(l){return i==null?n:Ga(i,l)}}var GC=Z3(),KC=Z3(!0);function Yf(){return[]}function Xf(){return!1}function YC(){return{}}function XC(){return""}function qC(){return!0}function JC(i,l){if(i=et(i),i<1||i>k)return[];var g=K,S=Yt(i,K);l=je(l),i-=K;for(var V=Zd(S,l);++g<i;)l(g);return V}function ZC(i){return Je(i)?Ct(i,gr):Sn(i)?[i]:cn(m1(ct(i)))}function QC(i){var l=++u8;return ct(i)+l}var eN=Wl(function(i,l){return i+l},0),tN=Sf("ceil"),nN=Wl(function(i,l){return i/l},1),rN=Sf("floor");function aN(i){return i&&i.length?Rl(i,fn,uf):n}function sN(i,l){return i&&i.length?Rl(i,je(l,2),uf):n}function iN(i){return e3(i,fn)}function oN(i,l){return e3(i,je(l,2))}function lN(i){return i&&i.length?Rl(i,fn,mf):n}function cN(i,l){return i&&i.length?Rl(i,je(l,2),mf):n}var uN=Wl(function(i,l){return i*l},1),dN=Sf("round"),fN=Wl(function(i,l){return i-l},0);function hN(i){return i&&i.length?Jd(i,fn):0}function mN(i,l){return i&&i.length?Jd(i,je(l,2)):0}return R.after=Pb,R.ary=S1,R.assign=xw,R.assignIn=F1,R.assignInWith=ac,R.assignWith=_w,R.at=Sw,R.before=T1,R.bind=Mf,R.bindAll=AC,R.bindKey=E1,R.castArray=Yb,R.chain=N1,R.chunk=ry,R.compact=ay,R.concat=sy,R.cond=VC,R.conforms=$C,R.constant=jf,R.countBy=hb,R.create=Tw,R.curry=O1,R.curryRight=L1,R.debounce=A1,R.defaults=Ew,R.defaultsDeep=Ow,R.defer=Mb,R.delay=Rb,R.difference=iy,R.differenceBy=oy,R.differenceWith=ly,R.drop=cy,R.dropRight=uy,R.dropRightWhile=dy,R.dropWhile=fy,R.fill=hy,R.filter=gb,R.flatMap=yb,R.flatMapDeep=bb,R.flatMapDepth=wb,R.flatten=y1,R.flattenDeep=my,R.flattenDepth=gy,R.flip=Fb,R.flow=IC,R.flowRight=kC,R.fromPairs=py,R.functions=kw,R.functionsIn=Pw,R.groupBy=Cb,R.initial=yy,R.intersection=by,R.intersectionBy=wy,R.intersectionWith=Cy,R.invert=Rw,R.invertBy=Fw,R.invokeMap=xb,R.iteratee=Wf,R.keyBy=_b,R.keys=Bt,R.keysIn=dn,R.map=Zl,R.mapKeys=Bw,R.mapValues=zw,R.matches=PC,R.matchesProperty=MC,R.memoize=ec,R.merge=Uw,R.mergeWith=H1,R.method=RC,R.methodOf=FC,R.mixin=Gf,R.negate=tc,R.nthArg=BC,R.omit=jw,R.omitBy=Ww,R.once=Hb,R.orderBy=Sb,R.over=zC,R.overArgs=Bb,R.overEvery=UC,R.overSome=jC,R.partial=Rf,R.partialRight=V1,R.partition=Tb,R.pick=Gw,R.pickBy=B1,R.property=Y1,R.propertyOf=WC,R.pull=Sy,R.pullAll=w1,R.pullAllBy=Ty,R.pullAllWith=Ey,R.pullAt=Oy,R.range=GC,R.rangeRight=KC,R.rearg=zb,R.reject=Lb,R.remove=Ly,R.rest=Ub,R.reverse=kf,R.sampleSize=Vb,R.set=Yw,R.setWith=Xw,R.shuffle=$b,R.slice=Ay,R.sortBy=kb,R.sortedUniq=My,R.sortedUniqBy=Ry,R.split=yC,R.spread=jb,R.tail=Fy,R.take=Hy,R.takeRight=By,R.takeRightWhile=zy,R.takeWhile=Uy,R.tap=ab,R.throttle=Wb,R.thru=Jl,R.toArray=P1,R.toPairs=z1,R.toPairsIn=U1,R.toPath=ZC,R.toPlainObject=R1,R.transform=qw,R.unary=Gb,R.union=jy,R.unionBy=Wy,R.unionWith=Gy,R.uniq=Ky,R.uniqBy=Yy,R.uniqWith=Xy,R.unset=Jw,R.unzip=Pf,R.unzipWith=C1,R.update=Zw,R.updateWith=Qw,R.values=js,R.valuesIn=eC,R.without=qy,R.words=G1,R.wrap=Kb,R.xor=Jy,R.xorBy=Zy,R.xorWith=Qy,R.zip=eb,R.zipObject=tb,R.zipObjectDeep=nb,R.zipWith=rb,R.entries=z1,R.entriesIn=U1,R.extend=F1,R.extendWith=ac,Gf(R,R),R.add=eN,R.attempt=K1,R.camelCase=aC,R.capitalize=j1,R.ceil=tN,R.clamp=tC,R.clone=Xb,R.cloneDeep=Jb,R.cloneDeepWith=Zb,R.cloneWith=qb,R.conformsTo=Qb,R.deburr=W1,R.defaultTo=DC,R.divide=nN,R.endsWith=sC,R.eq=tr,R.escape=iC,R.escapeRegExp=oC,R.every=mb,R.find=pb,R.findIndex=p1,R.findKey=Lw,R.findLast=vb,R.findLastIndex=v1,R.findLastKey=Aw,R.floor=rN,R.forEach=x1,R.forEachRight=_1,R.forIn=Vw,R.forInRight=$w,R.forOwn=Dw,R.forOwnRight=Iw,R.get=Bf,R.gt=ew,R.gte=tw,R.has=Mw,R.hasIn=zf,R.head=b1,R.identity=fn,R.includes=Nb,R.indexOf=vy,R.inRange=nC,R.invoke=Hw,R.isArguments=Xa,R.isArray=Je,R.isArrayBuffer=nw,R.isArrayLike=un,R.isArrayLikeObject=Vt,R.isBoolean=rw,R.isBuffer=ya,R.isDate=aw,R.isElement=sw,R.isEmpty=iw,R.isEqual=ow,R.isEqualWith=lw,R.isError=Ff,R.isFinite=cw,R.isFunction=jr,R.isInteger=$1,R.isLength=nc,R.isMap=D1,R.isMatch=uw,R.isMatchWith=dw,R.isNaN=fw,R.isNative=hw,R.isNil=gw,R.isNull=mw,R.isNumber=I1,R.isObject=St,R.isObjectLike=Ot,R.isPlainObject=Zi,R.isRegExp=Hf,R.isSafeInteger=pw,R.isSet=k1,R.isString=rc,R.isSymbol=Sn,R.isTypedArray=Us,R.isUndefined=vw,R.isWeakMap=yw,R.isWeakSet=bw,R.join=Ny,R.kebabCase=lC,R.last=jn,R.lastIndexOf=xy,R.lowerCase=cC,R.lowerFirst=uC,R.lt=ww,R.lte=Cw,R.max=aN,R.maxBy=sN,R.mean=iN,R.meanBy=oN,R.min=lN,R.minBy=cN,R.stubArray=Yf,R.stubFalse=Xf,R.stubObject=YC,R.stubString=XC,R.stubTrue=qC,R.multiply=uN,R.nth=_y,R.noConflict=HC,R.noop=Kf,R.now=Ql,R.pad=dC,R.padEnd=fC,R.padStart=hC,R.parseInt=mC,R.random=rC,R.reduce=Eb,R.reduceRight=Ob,R.repeat=gC,R.replace=pC,R.result=Kw,R.round=dN,R.runInContext=he,R.sample=Ab,R.size=Db,R.snakeCase=vC,R.some=Ib,R.sortedIndex=Vy,R.sortedIndexBy=$y,R.sortedIndexOf=Dy,R.sortedLastIndex=Iy,R.sortedLastIndexBy=ky,R.sortedLastIndexOf=Py,R.startCase=bC,R.startsWith=wC,R.subtract=fN,R.sum=hN,R.sumBy=mN,R.template=CC,R.times=JC,R.toFinite=Wr,R.toInteger=et,R.toLength=M1,R.toLower=NC,R.toNumber=Wn,R.toSafeInteger=Nw,R.toString=ct,R.toUpper=xC,R.trim=_C,R.trimEnd=SC,R.trimStart=TC,R.truncate=EC,R.unescape=OC,R.uniqueId=QC,R.upperCase=LC,R.upperFirst=Uf,R.each=x1,R.eachRight=_1,R.first=b1,Gf(R,function(){var i={};return hr(R,function(l,g){dt.call(R.prototype,g)||(i[g]=l)}),i}(),{chain:!1}),R.VERSION=r,Fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){R[i].placeholder=R}),Fn(["drop","take"],function(i,l){it.prototype[i]=function(g){g=g===n?1:Ft(et(g),0);var S=this.__filtered__&&!l?new it(this):this.clone();return S.__filtered__?S.__takeCount__=Yt(g,S.__takeCount__):S.__views__.push({size:Yt(g,K),type:i+(S.__dir__<0?"Right":"")}),S},it.prototype[i+"Right"]=function(g){return this.reverse()[i](g).reverse()}}),Fn(["filter","map","takeWhile"],function(i,l){var g=l+1,S=g==M||g==ne;it.prototype[i]=function(V){var H=this.clone();return H.__iteratees__.push({iteratee:je(V,3),type:g}),H.__filtered__=H.__filtered__||S,H}}),Fn(["head","last"],function(i,l){var g="take"+(l?"Right":"");it.prototype[i]=function(){return this[g](1).value()[0]}}),Fn(["initial","tail"],function(i,l){var g="drop"+(l?"":"Right");it.prototype[i]=function(){return this.__filtered__?new it(this):this[g](1)}}),it.prototype.compact=function(){return this.filter(fn)},it.prototype.find=function(i){return this.filter(i).head()},it.prototype.findLast=function(i){return this.reverse().find(i)},it.prototype.invokeMap=rt(function(i,l){return typeof i=="function"?new it(this):this.map(function(g){return Gi(g,i,l)})}),it.prototype.reject=function(i){return this.filter(tc(je(i)))},it.prototype.slice=function(i,l){i=et(i);var g=this;return g.__filtered__&&(i>0||l<0)?new it(g):(i<0?g=g.takeRight(-i):i&&(g=g.drop(i)),l!==n&&(l=et(l),g=l<0?g.dropRight(-l):g.take(l-i)),g)},it.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},it.prototype.toArray=function(){return this.take(K)},hr(it.prototype,function(i,l){var g=/^(?:filter|find|map|reject)|While$/.test(l),S=/^(?:head|last)$/.test(l),V=R[S?"take"+(l=="last"?"Right":""):l],H=S||/^find/.test(l);V&&(R.prototype[l]=function(){var Q=this.__wrapped__,oe=S?[1]:arguments,ge=Q instanceof it,Se=oe[0],Te=ge||Je(Q),Oe=function(st){var ot=V.apply(R,da([st],oe));return S&&Me?ot[0]:ot};Te&&g&&typeof Se=="function"&&Se.length!=1&&(ge=Te=!1);var Me=this.__chain__,Be=!!this.__actions__.length,We=H&&!Me,nt=ge&&!Be;if(!H&&Te){Q=nt?Q:new it(this);var Ge=i.apply(Q,oe);return Ge.__actions__.push({func:Jl,args:[Oe],thisArg:n}),new Bn(Ge,Me)}return We&&nt?i.apply(this,oe):(Ge=this.thru(Oe),We?S?Ge.value()[0]:Ge.value():Ge)})}),Fn(["pop","push","shift","sort","splice","unshift"],function(i){var l=xl[i],g=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",S=/^(?:pop|shift)$/.test(i);R.prototype[i]=function(){var V=arguments;if(S&&!this.__chain__){var H=this.value();return l.apply(Je(H)?H:[],V)}return this[g](function(Q){return l.apply(Je(Q)?Q:[],V)})}}),hr(it.prototype,function(i,l){var g=R[l];if(g){var S=g.name+"";dt.call(Rs,S)||(Rs[S]=[]),Rs[S].push({name:l,func:g})}}),Rs[jl(n,C).name]=[{name:"wrapper",func:n}],it.prototype.clone=O8,it.prototype.reverse=L8,it.prototype.value=A8,R.prototype.at=sb,R.prototype.chain=ib,R.prototype.commit=ob,R.prototype.next=lb,R.prototype.plant=ub,R.prototype.reverse=db,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=fb,R.prototype.first=R.prototype.head,Fi&&(R.prototype[Fi]=cb),R},ks=o8();Ba?((Ba.exports=ks)._=ks,jd._=ks):Ut._=ks}).call(Nr)})(ou,ou.exports);var yn=ou.exports;const yG=Kt(yn);function xm(e,t,n){let r=0,s=0,o=0,c=0;for(;r<e;r++){if(c=n({index:r}),s+c>t){o=t-s,r=r+Math.round(o/c);break}s+=c}return{startIndex:r,height:s,diffHeight:o}}function h4(e,t,n,r,s){if(!r||!s.offset)return;const o=s.offset.y>=0?s.offset.y:0,c=s.offset.x>=0?s.offset.x:0,u=r.scrollHeight,d=r.offsetHeight,{count:h,groupItemCount:f}=n;let m=0,p=0,y=0;if(typeof e=="number"&&(m=Math.ceil(o/e),p=Math.ceil(d/e)+m,y=o%e),typeof e=="function"){const N=Math.ceil(h/f),w=xm(N,o,e);m=w.startIndex>0?w.startIndex:0,y=w.diffHeight,p=xm(N,d,e).startIndex+m+1}const b=u-d-o;return typeof t=="function"&&t(s,m,p,o,o,c,{bottom:b>=0?b:0,scrollbar:s}),{targetStartIndex:m,targetEndIndex:p,elScrollTop:o,translateY:y,elScrollLeft:c}}class L2{constructor(t,n){Le(this,"binding");Le(this,"wrapper");Le(this,"delay");Le(this,"delegateWrapper");Le(this,"getEvent",t=>{const{scrollbar:n={enabled:!1}}=this.binding.value;if(n.enabled)return{offset:t.offset??{x:t.target.scrollLeft,y:t.target.scrollTop}};if(t!=null&&t.offset)return{offset:t==null?void 0:t.offset};const r=t.target.scrollTop;return{offset:{x:t.target.scrollLeft,y:r}}});this.binding=t,this.wrapper=n;const{throttleDelay:r}=t.value;this.delay=r,this.delegateWrapper=void 0}get scrollHeight(){var t,n;return((t=this.delegateWrapper)==null?void 0:t.scrollHeight)??((n=this.wrapper)==null?void 0:n.scrollHeight)}get offsetHeight(){var t,n;return((t=this.delegateWrapper)==null?void 0:t.offsetHeight)??((n=this.wrapper)==null?void 0:n.offsetHeight)}setDelegateWrapper(t){this.delegateWrapper=t}render(t){var p,y;const{lineHeight:n=30,handleScrollCallback:r,pagination:s={},onlyScroll:o}=this.binding.value;if(o){const b=(p=t.offset)==null?void 0:p.y,N=((y=t.offset)==null?void 0:y.x)??0,w=this.scrollHeight-this.offsetHeight-b;r(t,null,null,b,b,N,{bottom:w>=0?w:0,scrollbar:t});return}const{startIndex:c,endIndex:u,groupItemCount:d,count:h,scrollTop:f,scrollLeft:m}=s;h4(n,r,{scrollTop:f,startIndex:c,endIndex:u,groupItemCount:d,count:h,scrollLeft:m},this.delegateWrapper??this.wrapper,t)}executeThrottledRender(t){yn.throttle(this.render.bind(this),this.delay)(this.getEvent(t))}install(){var t;(t=this.wrapper)==null||t.addEventListener("scroll",this.executeThrottledRender.bind(this))}uninstall(){var t,n;(n=(t=this.wrapper)==null?void 0:t.removeListener)==null||n.call(t,"scroll",this.executeThrottledRender.bind(this))}setBinding(t){this.binding=t}}let Ca=null;const bG={mounted(e,t){const n=e.parentNode;Ca=new L2(t,e),n.addEventListener("scroll",Ca.executeThrottledRender.bind(Ca))},updated(e,t){Ca==null||Ca.setBinding(t)},unbind(e){if(e){const t=e.parentNode;if(!t||!Ca)return;t.removeEventListener("scroll",Ca.executeThrottledRender)}}},wG=(e,t)=>{const{renderAs:n}=e,r=a.ref(null),{init:s,scrollTo:o}=f4(e),c=a.reactive({x:0,y:0}),u=(y,b,N,w,C,E,_)=>{const{scrollbar:x}=_;x!=null&&x.offset&&Object.assign(c,(x==null?void 0:x.offset)??{}),t.emit("content-scroll",[y,{translateY:C,translateX:E,pos:_}])};let d=null;const h=a.computed(()=>({lineHeight:e.lineHeight,scrollbar:e.scrollbar,handleScrollCallback:u,pagination:{},throttleDelay:e.throttleDelay,onlyScroll:e.scrollEvent})),f=a.computed(()=>{const y=typeof e.height=="number"?`${e.height}px`:e.height;return{height:y,width:typeof e.width=="number"?`${e.width}px`:e.width,display:"inline-block",maxHeight:e.maxHeight??y,...e.wrapperStyle}}),{fixToTop:m}=d4(e,o);t.expose({scrollTo:o,fixToTop:m,refRoot:r,refContent:r}),a.onMounted(()=>{var y;d=new L2(h,r.value),(y=e.scrollbar)!=null&&y.enabled&&s(r),d.install()}),a.onUnmounted(()=>{d==null||d.uninstall()});const p=a.computed(()=>e.scrollbar.enabled?[e.className]:[e.className]);return{rendAsTag:()=>{var y,b,N,w,C,E,_,x;return a.h(n,{class:p.value,style:f.value,ref:r},[((b=(y=t.slots).beforeContent)==null?void 0:b.call(y))??"",((w=(N=t.slots).default)==null?void 0:w.call(N,{data:e.list}))??"",((E=(C=t.slots).afterContent)==null?void 0:E.call(C))??"",((x=(_=t.slots).afterSection)==null?void 0:x.call(_))??""])}}},CG=a.defineComponent({name:"VirtualRender",directives:{bkVirtualRender:bG},props:vG,emits:["content-scroll"],slots:Object,setup(e,t){const{renderAs:n}=e,r=J=>typeof J=="string"?[J]:typeof J=="object"&&!Array.isArray(J)?[J]:J;if(!e.enabled){const{rendAsTag:J}=wG(e,t);return J}const s=a.ref(null),o=a.ref(0),c=a.ref(0),u=a.ref(0),d=a.ref(null),h=J=>{let K=J*e.groupItemCount,F=(J+1)*e.groupItemCount;if(F>o.value){const z=F-K;F=o.value,K=F-z}return{index:K,rows:e.list.slice(K,F),items:[K,F],type:"virtual"}},f=()=>typeof e.lineHeight=="function"?({index:J})=>e.lineHeight(h(J)):e.lineHeight,m=a.computed(()=>({lineHeight:f(),handleScrollCallback:O,pagination:C,throttleDelay:e.throttleDelay,scrollbar:e.scrollbar})),{init:p,scrollTo:y,updateScrollHeight:b,update:N}=f4(e);let w=null;const C=a.reactive({startIndex:0,endIndex:0,scrollTop:1,scrollLeft:0,translateY:0,translateX:0,count:0,pos:{},groupItemCount:e.groupItemCount}),E=a.ref([]),_=()=>typeof e.height=="number"?e.height:d.value.offsetHeight,x=()=>{const J=_();let K=Math.ceil(o.value/e.groupItemCount),F=0,z=0,Y=0;for(;K>0;K--)if(z=e.lineHeight(h(K)),F=F+z,F>J){Y=F-J;break}return{diffHeight:Y,startIndex:K}},O=(J,K,F,z,Y,te,ue)=>{Object.assign(C,{startIndex:K,endIndex:F,scrollTop:z,translateX:te,translateY:Y,scrollLeft:te,pos:ue});let be=C.startIndex*e.groupItemCount,Z=C.endIndex*e.groupItemCount;const me=P.value.length;me<Z&&(Z=me,typeof e.lineHeight=="function"?be=x().startIndex:(be=Z-Math.floor(s.value.offsetHeight/e.lineHeight),be=be<0?0:be));const ae=P.value.slice(be,Z);E.value=ae,J&&t.emit("content-scroll",[J,C,ae])};a.onMounted(()=>{var J;if(w=new L2(m,s.value),(J=e.scrollbar)!=null&&J.enabled){d.value=new gG({delegateElement:s.value,scrollHeight:c.value,onScollCallback:re}),p(d),b(u.value),w.executeThrottledRender.call(w,{offset:{x:0,y:0}});return}w.install()}),a.onUnmounted(()=>{w==null||w.uninstall()});const T=()=>{$(e.list)},$=J=>{if(o.value=Math.ceil((J||[]).length/e.groupItemCount),C.count=o.value,typeof e.abosuteHeight=="string"&&e.abosuteHeight==="auto")if(typeof e.lineHeight=="function"){c.value=0;let F=0;const z=Math.ceil(o.value/e.groupItemCount);for(let Y=0;Y<z;Y++){const te=e.lineHeight.apply(this,[h(Y)]);F+=typeof te=="number"?te:0}c.value=F}else c.value=e.lineHeight*o.value;else c.value=e.abosuteHeight;D()},L=(J={left:0,top:0})=>{const K=s.value,F=typeof e.height=="number"?{scrollHeight:c.value,offsetHeight:e.height}:K;h4(e.lineHeight,O,C,F,{target:K})},P=a.computed(()=>e.rowKey!==void 0||!e.autoIndex?e.list:(e.list||[]).map((J,K)=>({...J,$index:K}))),I=a.computed(()=>e.scrollPosition==="content"?{}:{}),A=a.computed(()=>({height:typeof e.height=="number"?`${e.height}px`:e.height,width:typeof e.width=="number"?`${e.width}px`:e.width,display:"inline-block",maxHeight:e.maxHeight?`${e.maxHeight}px`:!1,minHeight:e.minHeight?`${e.minHeight}px`:!1,...e.scrollPosition==="container"?I.value:{},...e.wrapperStyle})),D=()=>{u.value=c.value<e.minHeight?e.minHeight:c.value},{resolveClassName:X}=xe(),M=a.computed(()=>[X("virtual-render"),...r(e.className),e.scrollPosition==="container"?X("virtual-content"):""]),W=()=>{T(),L(),w==null||w.executeThrottledRender.call(w,{offset:{x:0,y:0}})},{fixToTop:ne}=d4(e,y),B=()=>{const J=s.value,K=typeof e.height=="number"?{scrollHeight:c.value,offsetHeight:e.height}:J;w==null||w.setDelegateWrapper(K)},k=()=>{w==null||w.setBinding(m),T(),b(u.value),B(),N(),L(),a.nextTick(()=>{w==null||w.executeThrottledRender.call(w,{offset:{x:C.scrollLeft,y:C.scrollTop}})})};a.watch(()=>e.height,()=>{k()}),a.watch(()=>[e.list,e.list.length],()=>{k()},{immediate:!0}),t.expose({reset:W,scrollTo:y,fixToTop:ne,updateScroll:N,refRoot:s,refContent:s});const re=J=>{w.executeThrottledRender.call(w,J)};return()=>{var J,K,F,z,Y,te,ue,ce;return a.h(n||"div",{ref:s,class:[...M.value],style:A.value},[((K=(J=t.slots).beforeContent)==null?void 0:K.call(J))??"",((z=(F=t.slots).default)==null?void 0:z.call(F,{data:E.value}))??"",((te=(Y=t.slots).afterContent)==null?void 0:te.call(Y))??"",((ce=(ue=t.slots).afterSection)==null?void 0:ce.call(ue))??""])}}}),$i=Qe(CG),NG=["阿","哎","安","肮","凹","八","挀","扳","邦","勹","陂","奔","伻","屄","边","灬","憋","汃","冫","癶","峬","嚓","偲","参","仓","撡","冊","嵾","曽","叉","芆","辿","伥","抄","车","抻","阷","吃","充","抽","出","欻","揣","巛","刅","吹","旾","逴","呲","匆","凑","粗","汆","崔","邨","搓","咑","呆","丹","当","刀","嘚","扥","灯","氐","甸","刁","爹","丁","丟","东","吺","厾","耑","垖","吨","多","妸","诶","奀","鞥","儿","发","帆","匚","飞","分","丰","覅","仏","紑","夫","旮","侅","甘","冈","皋","戈","给","根","刯","工","勾","估","瓜","乖","关","光","归","丨","呙","哈","咍","佄","夯","茠","诃","黒","拫","亨","噷","叿","齁","乎","花","怀","欢","巟","灰","昏","吙","丌","加","戋","江","艽","阶","巾","坕","冂","丩","凥","姢","噘","军","咔","开","刊","忼","尻","匼","肎","劥","空","抠","扝","夸","蒯","宽","匡","亏","坤","扩","垃","来","兰","啷","捞","肋","勒","崚","哩","俩","奁","良","撩","毟","拎","伶","溜","囖","龙","瞜","噜","驴","娈","掠","抡","罗","呣","妈","埋","嫚","牤","猫","么","呅","门","甿","咪","宀","喵","乜","民","名","谬","摸","哞","毪","嗯","拏","腉","囡","囔","孬","疒","娞","恁","能","妮","拈","娘","鸟","捏","囜","宁","妞","农","羺","奴","女","奻","疟","黁","挪","喔","讴","妑","拍","眅","乓","抛","呸","喷","匉","丕","囨","剽","氕","姘","乒","钋","剖","仆","七","掐","千","呛","悄","癿","亲","靑","卭","丘","区","峑","缺","夋","呥","穣","娆","惹","人","扔","日","茸","厹","邚","挼","堧","婑","瞤","捼","仨","毢","三","桒","掻","閪","森","僧","杀","筛","山","伤","弰","奢","申","升","尸","収","书","刷","衰","闩","双","脽","吮","说","厶","忪","捜","苏","狻","夊","孙","唆","他","囼","坍","汤","夲","忑","熥","剔","天","旫","帖","厅","囲","偷","凸","湍","推","吞","乇","穵","歪","弯","尣","危","昷","翁","挝","乌","夕","虲","仙","乡","灱","些","心","星","凶","休","吁","吅","削","坃","丫","恹","央","幺","倻","一","囙","应","哟","佣","优","扜","囦","曰","晕","帀","災","兂","匨","傮","则","贼","怎","増","扎","捚","沾","张","佋","蜇","贞","争","之","中","州","朱","抓","拽","专","妆","隹","宒","卓","乲","宗","邹","租","钻","厜","尊","昨","兙"],xG=["A","AI","AN","ANG","AO","BA","BAI","BAN","BANG","BAO","BEI","BEN","BENG","BI","BIAN","BIAO","BIE","BIN","BING","BO","BU","CA","CAI","CAN","CANG","CAO","CE","CEN","CENG","CHA","CHAI","CHAN","CHANG","CHAO","CHE","CHEN","CHENG","CHI","CHONG","CHOU","CHU","CHUA","CHUAI","CHUAN","CHUANG","CHUI","CHUN","CHUO","CI","CONG","COU","CU","CUAN","CUI","CUN","CUO","DA","DAI","DAN","DANG","DAO","DE","DEN","DENG","DI","DIAN","DIAO","DIE","DING","DIU","DONG","DOU","DU","DUAN","DUI","DUN","DUO","E","EI","EN","ENG","ER","FA","FAN","FANG","FEI","FEN","FENG","FIAO","FO","FOU","FU","GA","GAI","GAN","GANG","GAO","GE","GEI","GEN","GENG","GONG","GOU","GU","GUA","GUAI","GUAN","GUANG","GUI","GUN","GUO","HA","HAI","HAN","HANG","HAO","HE","HEI","HEN","HENG","HM","HONG","HOU","HU","HUA","HUAI","HUAN","HUANG","HUI","HUN","HUO","JI","JIA","JIAN","JIANG","JIAO","JIE","JIN","JING","JIONG","JIU","JU","JUAN","JUE","JUN","KA","KAI","KAN","KANG","KAO","KE","KEN","KENG","KONG","KOU","KU","KUA","KUAI","KUAN","KUANG","KUI","KUN","KUO","LA","LAI","LAN","LANG","LAO","LE","LEI","LENG","LI","LIA","LIAN","LIANG","LIAO","LIE","LIN","LING","LIU","LO","LONG","LOU","LU","LV","LUAN","LVE","LUN","LUO","M","MA","MAI","MAN","MANG","MAO","ME","MEI","MEN","MENG","MI","MIAN","MIAO","MIE","MIN","MING","MIU","MO","MOU","MU","N","NA","NAI","NAN","NANG","NAO","NE","NEI","NEN","NENG","NI","NIAN","NIANG","NIAO","NIE","NIN","NING","NIU","NONG","NOU","NU","NV","NUAN","NVE","NUN","NUO","O","OU","PA","PAI","PAN","PANG","PAO","PEI","PEN","PENG","PI","PIAN","PIAO","PIE","PIN","PING","PO","POU","PU","QI","QIA","QIAN","QIANG","QIAO","QIE","QIN","QING","QIONG","QIU","QU","QUAN","QUE","QUN","RAN","RANG","RAO","RE","REN","RENG","RI","RONG","ROU","RU","RUA","RUAN","RUI","RUN","RUO","SA","SAI","SAN","SANG","SAO","SE","SEN","SENG","SHA","SHAI","SHAN","SHANG","SHAO","SHE","SHEN","SHENG","SHI","SHOU","SHU","SHUA","SHUAI","SHUAN","SHUANG","SHUI","SHUN","SHUO","SI","SONG","SOU","SU","SUAN","SUI","SUN","SUO","TA","TAI","TAN","TANG","TAO","TE","TENG","TI","TIAN","TIAO","TIE","TING","TONG","TOU","TU","TUAN","TUI","TUN","TUO","WA","WAI","WAN","WANG","WEI","WEN","WENG","WO","WU","XI","XIA","XIAN","XIANG","XIAO","XIE","XIN","XING","XIONG","XIU","XU","XUAN","XUE","XUN","YA","YAN","YANG","YAO","YE","YI","YIN","YING","YO","YONG","YOU","YU","YUAN","YUE","YUN","ZA","ZAI","ZAN","ZANG","ZAO","ZE","ZEI","ZEN","ZENG","ZHA","ZHAI","ZHAN","ZHANG","ZHAO","ZHE","ZHEN","ZHENG","ZHI","ZHONG","ZHOU","ZHU","ZHUA","ZHUAI","ZHUAN","ZHUANG","ZHUI","ZHUN","ZHUO","ZI","ZONG","ZOU","ZU","ZUAN","ZUI","ZUN","ZUO",""],_G={曾:"ZENG",沈:"SHEN",嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬤:"MO",嬷:"MO",蹒:"PAN",蹊:"XI",丬:"PAN",霰:"XIAN",莘:"XIN",豉:"CHI",饧:"XING",筠:"JUN",长:"CHANG",帧:"ZHEN",峙:"SHI",郍:"NA",芎:"XIONG",谁:"SHUI"},kc={PINYINS:xG,UNIHANS:NG,EXCEPTIONS:_G},SG="阿",TG="鿿",EG=1,mo=2,c0=3;let fo=null,Pc;function OG(e){e&&(typeof e=="function"&&(e=[e]),e.forEach&&e.forEach(t=>{typeof t=="function"&&t(kc)}))}function m4(e){return!e&&fo!==null||(typeof Intl=="object"&&Intl.Collator?(Pc=new Intl.Collator(["zh-Hans-CN","zh-CN"]),fo=Intl.Collator.supportedLocalesOf(["zh-CN"]).length===1):fo=!1),fo}function g4(e){const{UNIHANS:t}=kc,{PINYINS:n}=kc,{EXCEPTIONS:r}=kc,s={source:e};if(e in r)return s.type=mo,s.target=r[e],s;let o=-1,c;if(e.charCodeAt(0)<256)return s.type=EG,s.target=e,s;if(c=Pc.compare(e,SG),c<0)return s.type=c0,s.target=e,s;if(c===0)s.type=mo,o=0;else{if(c=Pc.compare(e,TG),c>0)return s.type=c0,s.target=e,s;c===0&&(s.type=mo,o=t.length-1)}if(s.type=mo,o<0){let u=0,d=t.length-1;for(;u<=d;){o=~~((u+d)/2);const h=t[o];if(c=Pc.compare(e,h),c===0)break;c>0?u=o+1:d=o-1}}return c<0&&o--,s.target=n[o],s.target||(s.type=c0,s.target=s.source),s}function _m(e){return typeof e!="string"||!m4()?e:e.split("").map(t=>g4(t))}const Mc={isSupported:m4,parse:_m,patchDict:OG,genToken:g4,convertToPinyin(e,t,n){return _m(e).map(r=>t&&r.type===mo?r.target.toLowerCase():r.target).join(n||"")}};function LG(e){e.EXCEPTIONS={嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬷:"MO",蹊:"XI",丬:"PAN",霰:"XIAN",豉:"CHI",饧:"XING",帧:"ZHEN",芎:"XIONG",谁:"SHUI",钶:"KE"},e.UNIHANS[91]="伕",e.UNIHANS[347]="仚",e.UNIHANS[393]="诌",e.UNIHANS[39]="婤",e.UNIHANS[50]="腠",e.UNIHANS[369]="攸",e.UNIHANS[123]="乯",e.UNIHANS[171]="刕",e.UNIHANS[102]="佝",e.UNIHANS[126]="犿",e.UNIHANS[176]="列",e.UNIHANS[178]="刢",e.UNIHANS[252]="娝",e.UNIHANS[330]="偸"}function AG(e){return typeof e!="function"?!1:e("伕").target==="FOU"&&e("仚").target==="XIA"&&e("诌").target==="ZHONG"&&e("婤").target==="CHONG"&&e("腠").target==="CONG"&&e("攸").target==="YONG"&&e("乯").target==="HOU"&&e("刕").target==="LENG"&&e("佝").target==="GONG"&&e("犿").target==="HUAI"&&e("列").target==="LIAO"&&e("刢").target==="LIN"&&e("钶").target==="E"}const Sm={patcher:LG,shouldPatch:AG};Mc.isSupported()&&Sm.shouldPatch(Mc.genToken)&&Mc.patchDict(Sm);const VG=a.defineComponent({name:"SelectTagInput",directives:{bkTooltips:sa},props:{selected:{type:Array,default:()=>[]},tagTheme:Tu(),placeholder:v.string.def(""),filterable:v.bool.def(!1),allowCreate:v.bool.def(!1),disabled:v.bool.def(!1),modelValue:v.any,collapseTags:v.bool.def(!1),behavior:ph()},emits:["update:modelValue","remove","enter","keydown"],setup(e,{emit:t}){const{resolveClassName:n}=xe(),r=a.inject(gd,null),{modelValue:s,collapseTags:o,selected:c}=a.toRefs(e),u=a.ref(s.value),d=a.ref(),h=a.ref(null),f=a.computed(()=>c.value.slice(h.value,c.value.length).map(L=>r==null?void 0:r.handleGetLabelByValue(L.value)).join(", "));a.watch(s,()=>{u.value=s.value}),a.watch([c,o],()=>{x()},{flush:"post"});const m=L=>{t("remove",L)},p=()=>{var L;(L=d.value)==null||L.focus()},y=()=>{var L;(L=d.value)==null||L.blur()},b=L=>{t("update:modelValue",L)},N=L=>{t("update:modelValue",L.target.value)},w=L=>{switch(L.code){case"Enter":{t("enter",L.target.value,L);break}}t("keydown",L.target.value,L)},C=a.ref([]),E=a.ref(),_=L=>{const P=C.value.map(I=>I==null?void 0:I.$el).filter(I=>!!I);return typeof L=="number"?P[L]:P},x=()=>{o.value&&(h.value=null,setTimeout(()=>{var I,A;const L=_(),P=L.findIndex((D,X)=>X?L[X-1].offsetTop!==D.offsetTop:!1);h.value=P>0?P:null,((I=L[h.value])==null?void 0:I.offsetTop)!==((A=E.value)==null?void 0:A.offsetTop)&&h.value>1&&(h.value-=1)}))},O=Cu(x,150),T=a.ref(),$=new ResizeObserver(()=>{O()});return a.onMounted(()=>{T.value&&$.observe(T.value)}),a.onBeforeUnmount(()=>{T.value&&$.unobserve(T.value)}),{collapseTagRef:E,tagWrapperRef:T,tagsRefs:C,select:r,overflowTagIndex:h,value:u,inputRef:d,overflowContent:f,handleRemoveTag:m,focus:p,blur:y,updateModelValue:b,handleInput:N,handleKeydown:w,resolveClassName:n}},render(){var s,o,c,u,d,h,f,m;const e=(o=(s=this.$slots)==null?void 0:s.prefix)==null?void 0:o.call(s),t=ze({[this.resolveClassName("select-tag")]:!0,[this.resolveClassName("select-tag--default")]:!0,"is-disabled":this.disabled,"collapse-tag":this.collapseTags,"has-prefix":!!e,"is-simplicity":this.behavior==="simplicity"}),n=ze({[this.resolveClassName("select-tag-wrapper")]:!0}),r={display:this.selected.length&&!this.filterable?"none":""};return a.createVNode("div",{ref:"tagWrapperRef",class:t},[(u=(c=this.$slots)==null?void 0:c.prefix)==null?void 0:u.call(c),a.createVNode("div",{class:n},[((h=(d=this.$slots).default)==null?void 0:h.call(d))??this.selected.map((p,y)=>a.createVNode(Po,{ref:b=>this.tagsRefs[y]=b,style:{display:this.collapseTags&&this.overflowTagIndex&&y>=this.overflowTagIndex?"none":""},theme:this.tagTheme,closable:!0,onClose:()=>this.handleRemoveTag(p.value)},{default:()=>{var b,N;return[((N=(b=this.$slots).tagRender)==null?void 0:N.call(b,p))??a.createVNode(Ap,{type:"tips"},{default:()=>{var w;return[(w=this.select)==null?void 0:w.handleGetLabelByValue(p.value)]}})]}})),a.withDirectives(a.createVNode(Po,{ref:"collapseTagRef",style:{display:this.overflowTagIndex&&this.collapseTags?"":"none"},class:this.resolveClassName("select-overflow-tag")},{default:()=>[a.createTextVNode("+"),this.selected.length-this.overflowTagIndex]}),[[a.resolveDirective("bk-tooltips"),{content:this.overflowContent,disabled:!this.overflowTagIndex||!this.collapseTags,extCls:this.resolveClassName("select-tooltips")}]]),a.createVNode("input",{ref:"inputRef",style:r,class:this.resolveClassName("select-tag-input"),disabled:this.disabled,placeholder:this.selected.length?"":this.placeholder,readonly:!this.filterable,type:"text",value:this.filterable?this.value:"",onInput:this.handleInput,onKeydown:this.handleKeydown},null)]),(m=(f=this.$slots)==null?void 0:f.suffix)==null?void 0:m.call(f)])}}),$G=a.defineComponent({name:"Select",directives:{clickoutside:kr},props:{modelValue:v.any,multiple:v.bool.def(!1),disabled:v.bool.def(!1),size:v.size().def(hh.DEFAULT),clearable:v.bool.def(!0),loading:v.bool.def(!1),filterable:v.bool.def(!0),remoteMethod:v.func,scrollHeight:v.number.def(204),minHeight:v.number,showAll:v.bool.def(!1),allOptionId:v.oneOfType([v.number,v.string]),showSelectAll:v.bool.def(!1),popoverMinWidth:v.number.def(0),showOnInit:v.bool.def(!1),multipleMode:v.oneOf(["default","tag"]).def("default"),tagTheme:Tu(),behavior:ph(),collapseTags:v.bool.def(!1),autoHeight:v.bool.def(!0),noDataText:v.string,noMatchText:v.string,loadingText:v.string,placeholder:v.string,searchPlaceholder:v.string,selectAllText:v.string,scrollLoading:v.bool.def(!1),allowCreate:v.bool.def(!1),popoverOptions:Object,customContent:v.bool.def(!1),list:v.arrayOf(v.any).def([]),idKey:v.string.def("value"),displayKey:v.string.def("label"),withValidate:v.bool.def(!0),showSelectedIcon:v.bool.def(!0),inputSearch:v.bool.def(!1),enableVirtualRender:v.bool.def(!1),allowEmptyValues:v.array.def([]),autoFocus:v.bool.def(!1),disableFocusBehavior:v.bool.def(!1),keepSearchValue:v.bool.def(!1),prefix:v.string,selectedStyle:rS(),filterOption:{type:Function},searchWithPinyin:v.bool.def(!0),highlightKeyword:v.bool.def(!1),trigger:{type:String,default:"default"}},emits:["update:modelValue","change","toggle","clear","scroll-end","focus","blur","tag-remove","select","deselect","search-change"],setup(e,{emit:t}){const n=ut("select"),{resolveClassName:r}=xe(),{modelValue:s,disabled:o,filterable:c,multiple:u,remoteMethod:d,loading:h,popoverMinWidth:f,showOnInit:m,multipleMode:p,allowCreate:y,customContent:b,showSelectedIcon:N,inputSearch:w,enableVirtualRender:C,showSelectAll:E,showAll:_,allOptionId:x,scrollHeight:O,list:T,displayKey:$,idKey:L,collapseTags:P,autoHeight:I,popoverOptions:A,allowEmptyValues:D,autoFocus:X,keepSearchValue:M,selectedStyle:W,filterOption:ne,searchWithPinyin:B,highlightKeyword:k,disableFocusBehavior:re,trigger:J}=a.toRefs(e),K=a.ref(null),F=a.computed(()=>e.noDataText===void 0?n.value.noData:e.noDataText),z=a.computed(()=>e.noMatchText===void 0?n.value.noMatchedData:e.noMatchText),Y=a.computed(()=>e.loadingText===void 0?n.value.loading:e.loadingText),te=a.computed(()=>e.placeholder===void 0?n.value.pleaseSelect:e.placeholder),ue=a.computed(()=>e.searchPlaceholder===void 0?n.value.enterKeywords:e.searchPlaceholder),ce=a.computed(()=>e.selectAllText===void 0?n.value.all:e.selectAllText),be=ur(),Z=a.ref(),me=a.ref(),ae=a.ref(),pe=a.ref(),G=a.ref(),fe=a.ref(),we=a.ref(new Map),le=a.computed(()=>[...we.value.values()].sort((_e,$e)=>_e.order-$e.order)),q=a.ref(new Map),se=a.ref([]),de=a.computed(()=>se.value.reduce((_e,$e)=>(_e[$e.value]=$e.label,_e),{})),U=a.ref(),ee=a.computed(()=>T.value.reduce((_e,$e)=>(_e[$e[L.value]]=$e[$.value],_e),{}));a.watch([we,T],()=>{Os()}),a.watch(s,()=>{var _e;Os(),e.withValidate&&((_e=be==null?void 0:be.validate)==null||_e.call(be,"change"))},{deep:!0}),a.watch(se,()=>{var _e;(_e=fe.value)==null||_e.updatePopover(null,oa.value)});const Ce=a.computed(()=>tt.value?T.value:T.value.filter(_e=>Pi(xs.value,String(_e[$.value]),_e))),j=a.computed(()=>o.value||h.value),ie=a.computed(()=>se.value.map(_e=>{var $e,Fe;return((Fe=($e=we.value)==null?void 0:$e.get(_e.value))==null?void 0:Fe.optionName)||ee.value[_e.value]||_e.label})),ve=a.computed(()=>{const _e=le.value.reduce(($e,Fe)=>(Fe.disabled||$e.push(Fe.optionID),$e),[]);return _e.length<=se.value.length&&_e.every($e=>se.value.some(Fe=>Fe.value===$e))}),Ae=a.computed(()=>{var _e;return se.value.length===1&&((_e=se.value[0])==null?void 0:_e.value)===x.value}),Ie=a.computed(()=>!!q.value.size),ke=a.computed(()=>!le.value.length),Ue=a.computed(()=>le.value.length&&le.value.every(_e=>!_e.visible)),tt=a.computed(()=>c.value&&typeof d.value=="function"),at=a.computed(()=>!!(ne.value&&typeof ne.value=="function")),qe=a.computed(()=>!(Mi.value||ke.value||Ue.value)||b.value),At=a.computed(()=>u.value&&E.value&&(!xs.value||!c.value)),gt=a.computed(()=>u.value&&_.value),Et=a.computed(()=>O.value-12-(At.value?32:0)),Ke=a.ref(32),Mt=a.computed(()=>C.value?Ce.value.length*Ke.value>Et.value:!1),Pa=a.computed(()=>Math.ceil(Et.value/Ke.value)),Di=a.computed(()=>Mi.value?Y.value:Ue.value||T.value.length&&!Ce.value.length?z.value:ke.value?F.value:""),ys=a.computed(()=>I.value?P.value&&!Zn.value:P.value),oa=a.computed(()=>_h({theme:`light ${r("select-popover")}`,trigger:"manual",width:ul.value,arrow:!1,placement:"bottom-start",isShow:Zn.value,reference:G.value,offset:4,popoverDelay:0,renderType:Su.AUTO},A.value)),{register:Ma,unregister:bs}=$0(we),{register:ws,unregister:Ii}=$0(q),{isHover:ki,setHover:ll,cancelHover:Ad}=kp(),Ra=a.ref(!1),cl=()=>{Ra.value||(Ra.value=!0,t("focus"))},Fa=()=>{Ra.value&&(Ra.value=!1,pl(),t("blur"))},{popperWidth:ul,isPopoverShow:Zn,hidePopover:dl,showPopover:fl,togglePopover:Vd}=jI({popoverMinWidth:f.value},me),Cs=()=>{J.value!=="manual"&&dl()},$d=()=>{J.value!=="manual"&&fl()},hl=a.computed(()=>c.value&&w.value&&Zn.value||y.value);a.watch(Zn,_e=>{t("toggle",Zn.value),_e?(document.addEventListener("keydown",Ls),setTimeout(()=>{ca(),ml(),Dd()},10)):(M.value||(Ns.value=""),document.removeEventListener("keydown",Ls))});const Dd=()=>{var $e,Fe,ht;if(Mt.value)return;const _e=(Fe=($e=ae.value)==null?void 0:$e.querySelectorAll)==null?void 0:Fe.call($e,".is-selected");(ht=_e==null?void 0:_e[0])==null||ht.scrollIntoView({block:"center"})},ml=()=>{var Fe;const _e=se.value[0],$e=we.value.get(_e==null?void 0:_e.value);$e&&!$e.disabled&&$e.visible?U.value=_e==null?void 0:_e.value:U.value=(Fe=le.value.find(ht=>!ht.disabled&&ht.visible))==null?void 0:Fe.optionID},Pi=(_e,$e,Fe={})=>{var ht,Mn;if(at.value)return!!ne.value(_e,{...Fe});if(B.value){const Cn=Mc.parse($e).map(_t=>_t.type===2?_t.target.toLowerCase():_t.target),As=Cn.reduce((_t,Ha)=>_t+Ha[0],"");return Cn.join("").indexOf(_e)!==-1||As.indexOf(_e)!==-1||((ht=Ws(String($e)))==null?void 0:ht.includes(Ws(_e)))}return(Mn=Ws(String($e)))==null?void 0:Mn.includes(Ws(_e))},Id=_e=>{c.value&&(_e?le.value.forEach($e=>{$e.visible=Pi(_e,String($e.optionName),{...$e.$props,...$e.$attrs})}):le.value.forEach($e=>{$e.visible=!0}))},{searchValue:Ns,customOptionName:la,curSearchValue:xs,searchLoading:Mi}=WI(tt.value?d.value:Id,ml);a.watch(Ns,()=>{t("search-change",Ns.value)});const Pn=_e=>{_e!==s.value&&(t("update:modelValue",_e,s.value),t("change",_e,s.value))},_s=()=>{j.value||J.value==="manual"||(cl(),Vd())},kd=_e=>{c.value&&(la.value=_e)},Ss=(_e,$e)=>{const Fe=String(_e);if(!y.value||!Fe)return;$e.stopPropagation(),$e.preventDefault();const ht=le.value.find(Cn=>Ws(String(Cn.optionName))===Ws(Fe));if(c.value&&ht){Ts(ht),la.value="";return}we.value.get(Fe)||(u.value?(se.value.push({value:Fe,label:Fe}),Pn(se.value.map(Cn=>Cn.value))):(se.value=[{value:Fe,label:Fe}],Pn(Fe),Cs()),la.value="")},Ts=_e=>{if(j.value||!_e)return;const $e=se.value.findIndex(Fe=>Fe.value===x.value);if($e>-1&&se.value.splice($e,1),u.value){const Fe=se.value.findIndex(ht=>ht.value===_e.optionID);Fe>-1?(se.value.splice(Fe,1),Pn(se.value.map(ht=>ht.value)),t("deselect",_e.optionID)):(se.value.push({value:_e.optionID,label:_e.optionName||_e.optionID}),Pn(se.value.map(ht=>ht.value)),t("select",_e.optionID),gl()),ca()}else se.value=[{label:_e.optionName||_e.optionID,value:_e.optionID}],c.value&&y.value&&(la.value=""),Pn(_e.optionID),t("select",_e.optionID),Cs(),Fa()},gl=()=>{var _e;["tag"].includes(p.value)&&hl.value&&((_e=G.value)==null||_e.updateModelValue(""))},ca=()=>{re.value||setTimeout(()=>{var _e,$e,Fe;!w.value&&!y.value?(_e=pe.value)==null||_e.focus():p.value==="tag"?($e=G.value)==null||$e.focus():(Fe=Z.value)==null||Fe.focus()},0)},pl=()=>{setTimeout(()=>{var _e,$e;p.value==="tag"?(_e=G.value)==null||_e.blur():($e=Z.value)==null||$e.blur()},0)},vl=_e=>{_e.stopPropagation(),se.value=[],gl(),Pn(u.value?[]:""),t("clear",u.value?[]:""),Cs()},yl=()=>{U.value=""},Pd=()=>{var _e;if(ve.value)se.value=[];else{const $e=new Map;le.value.forEach(Fe=>{Fe.disabled||$e.has(Fe.optionID)||$e.set(Fe.optionID,Fe.optionName||Fe.optionID)}),(_e=T.value)==null||_e.forEach(Fe=>{Fe.disabled||$e.has(Fe[L.value])||$e.set(Fe[L.value],Fe[$.value])}),se.value=Array.from($e.keys()).map(Fe=>({value:Fe,label:$e.get(Fe)}))}Pn(se.value.map($e=>$e.value)),ca()},Md=()=>{if(!gt.value)return;se.value.findIndex($e=>$e.value===x.value)>-1?se.value=[]:se.value=[{value:x.value,label:n.value.all}],Pn(se.value.map($e=>$e.value)),ca()},Rd=_e=>{const{scrollTop:$e,clientHeight:Fe,scrollHeight:ht}=_e.target;$e+Fe===ht&&t("scroll-end")},Fd=_e=>{if(j.value)return;const $e=se.value.findIndex(Fe=>Fe.value===_e);$e>-1&&(se.value.splice($e,1),Pn(se.value.map(Fe=>Fe.value)),t("tag-remove",_e))},Es=_e=>{var Fe,ht;let $e=_e;if(typeof $e=="object"){for(const Mn of we.value.keys())if(o4(Mn,$e)){$e=Mn;break}}return((ht=(Fe=we.value)==null?void 0:Fe.get($e))==null?void 0:ht.optionName)||ee.value[$e]||de.value[$e]||$e},Os=()=>{Array.isArray(s.value)?se.value=[...s.value.map(_e=>({value:_e,label:Es(_e)}))]:s.value||D.value.includes(s.value)?se.value=[{value:s.value,label:Es(s.value)}]:se.value=[]},bl=_e=>{se.value=_e.map($e=>({label:$e[$.value],value:$e[L.value]}))},Ls=_e=>{var ht,Mn,Cn,As;if(!Zn.value||Mt.value)return;const $e=le.value.filter(_t=>!_t.disabled&&_t.visible),Fe=$e.findIndex(_t=>_t.optionID===U.value);switch(_e.code){case"ArrowUp":case"ArrowDown":{_e.preventDefault();let _t=0;_e.code==="ArrowDown"?_t=Fe>=$e.length-1?0:Fe+1:_t=Fe===0?$e.length-1:Fe-1,GI((ht=$e[_t])==null?void 0:ht.$el,ae.value)||(Cn=(Mn=$e[_t])==null?void 0:Mn.$el)==null||Cn.scrollIntoView(),U.value=(As=$e[_t])==null?void 0:As.optionID;break}case"Backspace":{if(!u.value||!se.value.length||la.value.length||_e.target===pe.value)return;se.value.pop(),Pn(se.value.map(_t=>_t.value));break}case"Enter":{const{value:_t}=_e.target;if(y.value&&_t||_e.target===pe.value)return;const Ha=we.value.get(U.value);Ts(Ha);break}}},Hd=({event:_e})=>{var Fe;const{target:$e}=_e;(Fe=me.value)!=null&&Fe.contains($e)||me.value===$e||(Cs(),Fa())};return a.provide(gd,a.reactive({multiple:u,selected:se,activeOptionValue:U,showSelectedIcon:N,selectedStyle:W,curSearchValue:xs,highlightKeyword:k,register:Ma,unregister:bs,registerGroup:ws,unregisterGroup:Ii,handleOptionSelected:Ts,handleGetLabelByValue:Es})),a.onMounted(()=>{Os(),setTimeout(()=>{m.value&&$d(),X.value&&ca()})}),{t:n,selected:se,isInput:hl,options:le,isDisabled:j,selectedLabel:ie,isPopoverShow:Zn,isHover:ki,popperWidth:ul,inputRef:Z,triggerRef:me,contentRef:ae,searchRef:pe,selectTagInputRef:G,popoverRef:fe,searchLoading:Mi,isOptionsEmpty:ke,isSearchEmpty:Ue,isFocus:Ra,isShowSelectContent:qe,curContentText:Di,isGroup:Ie,searchValue:Ns,curSearchValue:xs,customOptionName:la,isShowAll:gt,isShowSelectAll:At,virtualHeight:Et,filterList:Ce,isCollapseTags:ys,popoverConfig:oa,isAllSelected:ve,isAll:Ae,focusInput:ca,setHover:ll,cancelHover:Ad,handleFocus:cl,handleBlur:Fa,handleTogglePopover:_s,handleClear:vl,hidePopover:dl,showPopover:fl,toggleSelectAll:Pd,toggleAll:Md,handleOptionSelected:Ts,handleClickOutside:Hd,handleScroll:Rd,handleDeleteTag:Fd,handleInputChange:kd,handleSelectedAllOptionMouseEnter:yl,localLoadingText:Y,localPlaceholder:te,localSearchPlaceholder:ue,localSelectAllText:ce,resolveClassName:r,handleCreateCustomOption:Ss,handlePopoverShown:()=>{var _e;(_e=K.value)==null||_e.scrollTo(0,1)},virtualLineHeight:Ke,isEnableVirtualRender:Mt,preloadItemCount:Pa,virtualRenderRef:K,setSelected:bl}},render(){const e=ze({[`${this.resolveClassName("select")}`]:!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable,[this.size]:!0,[this.behavior]:!0}),t=()=>{var h,f,m;return this.loading?a.createVNode(La,{class:"spinner",loading:!0,mode:"spin",size:"mini",theme:"primary"},null):this.clearable&&this.isHover&&this.selected.length&&!this.isDisabled?a.createVNode(bn,{class:"clear-icon",onClick:this.handleClear},null):(h=this.$slots)!=null&&h.suffix?a.createVNode("span",{class:"angle-down"},[(m=(f=this.$slots)==null?void 0:f.suffix)==null?void 0:m.call(f)]):a.createVNode(Ti,{class:"angle-down"},null)},n=()=>{var h;return this.prefix?()=>a.createVNode("div",{class:`${this.resolveClassName("select--prefix-area")}`},[a.createVNode("span",null,[this.prefix])]):(h=this.$slots)!=null&&h.prefix?()=>{var f,m;return(m=(f=this.$slots)==null?void 0:f.prefix)==null?void 0:m.call(f)}:void 0},r=()=>{if(this.isShowSelectAll)return a.createVNode("li",{class:this.resolveClassName("select-option"),onClick:this.toggleSelectAll,onMouseenter:this.handleSelectedAllOptionMouseEnter},[this.selectedStyle==="checkbox"&&a.createVNode(sn,{class:this.resolveClassName("select-checkbox"),indeterminate:!this.isAllSelected&&!!this.selected.length&&!this.isAll,modelValue:this.isAllSelected},null),this.t.selectAll])},s=()=>{var h;if(this.isShowAll)return a.createVNode("div",{class:this.resolveClassName("select-all")},[a.createVNode("div",{class:["wrapper",this.selected.length===1&&((h=this.selected[0])==null?void 0:h.value)===this.allOptionId?"active":""],onClick:this.toggleAll},[a.createVNode(id,{class:"select-all-icon"},null),a.createVNode("span",null,[this.t.all])])])},o=()=>{var h,f,m;return this.multipleMode==="tag"?a.createVNode(VG,{ref:"selectTagInputRef",modelValue:this.customOptionName,"onUpdate:modelValue":p=>this.customOptionName=p,behavior:this.behavior,collapseTags:this.isCollapseTags,disabled:this.isDisabled,filterable:this.isInput,placeholder:this.localPlaceholder,selected:this.selected,tagTheme:this.tagTheme,onEnter:this.handleCreateCustomOption,onRemove:this.handleDeleteTag},{prefix:n(),default:((h=this.$slots)==null?void 0:h.tag)&&(()=>{var p;return(p=this.$slots)==null?void 0:p.tag({selected:this.selected})}),tagRender:((f=this.$slots)==null?void 0:f.tagRender)&&(p=>{var y;return(y=this.$slots)==null?void 0:y.tagRender(p)}),suffix:()=>t()}):a.createVNode($a,a.mergeProps({ref:"inputRef",behavior:this.behavior,disabled:this.isDisabled,modelValue:this.isInput?this.customOptionName:this.selectedLabel.join(","),placeholder:this.isInput?this.selectedLabel.join(",")||this.localPlaceholder:this.localPlaceholder,readonly:!this.isInput,selectReadonly:!0,size:this.size,stopPropagation:!1,type:"text",withValidate:!1,onEnter:this.handleCreateCustomOption,onInput:this.handleInputChange},this.prefix?{prefix:this.prefix}:null),{...typeof((m=this.$slots)==null?void 0:m.prefix)=="function"?{prefix:()=>{var p,y;return(y=(p=this.$slots)==null?void 0:p.prefix)==null?void 0:y.call(p)}}:null,suffix:()=>t()})},c=()=>{var h,f;return a.createVNode("div",{ref:"triggerRef",style:{height:this.autoHeight&&this.collapseTags?"32px":""},class:this.resolveClassName("select-trigger"),onClick:this.handleTogglePopover,onMouseenter:this.setHover,onMouseleave:this.cancelHover},[((f=(h=this.$slots)==null?void 0:h.trigger)==null?void 0:f.call(h,{selected:this.selected}))||o()])},u=()=>this.isEnableVirtualRender?a.createVNode($i,{ref:"virtualRenderRef",height:this.virtualHeight,lineHeight:this.virtualLineHeight,list:this.filterList,preloadItemCount:this.preloadItemCount,scrollbar:{enabled:!0,size:"small"}},{default:({data:h})=>{var m,p;const f=((m=this.$slots)==null?void 0:m.optionRender)||((p=this.$slots)==null?void 0:p.virtualScrollRender);return h.map(y=>a.createVNode(iu,{id:y[this.idKey],key:y[this.idKey],name:y[this.displayKey]},typeof f=="function"?{default:()=>f({item:y})}:null))}}):this.filterList.map(h=>{var m,p;const f=((m=this.$slots)==null?void 0:m.optionRender)||((p=this.$slots)==null?void 0:p.virtualScrollRender);return a.createVNode(iu,{id:h[this.idKey],key:h[this.idKey],name:h[this.displayKey]},typeof f=="function"?{default:()=>f({item:h})}:null)}),d=()=>{var h,f,m,p;return a.createVNode("div",{ref:"contentRef",class:this.resolveClassName("select-content-wrapper")},[s(),this.filterable&&!this.inputSearch&&a.createVNode("div",{class:this.resolveClassName("select-search-wrapper")},[a.createVNode(vs,{width:16,height:16,class:"icon-search"},null),a.withDirectives(a.createVNode("input",{ref:"searchRef",class:this.resolveClassName("select-search-input"),"onUpdate:modelValue":y=>this.searchValue=y,placeholder:this.localSearchPlaceholder},null),[[a.vModelText,this.searchValue]])]),!this.isShowSelectContent&&a.createVNode("div",{class:this.resolveClassName("select-empty")},[this.searchLoading&&a.createVNode(La,{class:"mr5",loading:!0,mode:"spin",size:"mini",theme:"primary"},null),a.createVNode("span",null,[this.curContentText])]),a.createVNode("div",{class:this.resolveClassName("select-content")},[a.createVNode("div",{style:{maxHeight:`${this.scrollHeight}px`,minHeight:`${this.minHeight}px`},class:this.isEnableVirtualRender?"":this.resolveClassName("select-dropdown"),onScroll:this.handleScroll},[a.createVNode("ul",{class:this.resolveClassName("select-options")},[r(),u(),(f=(h=this.$slots)==null?void 0:h.default)==null?void 0:f.call(h),this.scrollLoading&&a.createVNode("li",{class:this.resolveClassName("select-options-loading")},[a.createVNode(La,{class:"spinner mr5",loading:!0,mode:"spin",size:"mini",theme:"primary"},null),a.createVNode("span",null,[this.localLoadingText])])])]),((m=this.$slots)==null?void 0:m.extension)&&a.createVNode("div",{class:this.resolveClassName("select-extension")},[(p=this.$slots)==null?void 0:p.extension()])])])};return a.createVNode("div",{class:e},[a.createVNode(wn,a.mergeProps(this.popoverConfig,{ref:"popoverRef",onAfterShow:this.handlePopoverShown,onClickoutside:this.handleClickOutside}),{default:()=>c(),content:()=>d()})])}}),A2=on($G,{Option:iu,Group:ZW});function DG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const IG=e=>{const{proxy:t}=a.getCurrentInstance(),n=a.ref(t.limit);a.watch(()=>t.limit,c=>{n.value=c}),a.watch(()=>t.limitList,c=>{a.nextTick(()=>{c.includes(n.value)||([n.value]=c)})},{immediate:!0});const r=c=>{n.value=c},{resolveClassName:s}=xe();return{limit:n,render:({isFirst:c,isLast:u})=>{let d;return t.showLimit?a.createVNode("div",{class:{[s("pagination-limit")]:!0,"is-first":c,"is-last":u}},[a.createVNode("div",null,[e.value.eachPage]),a.createVNode(A2,{class:`${s("pagination-limit-select")}`,clearable:!1,disabled:t.disabled,filterable:!1,modelValue:n.value,size:"small",withValidate:!1,onChange:r},DG(d=t.limitList.map((h,f)=>a.createVNode(iu,{id:h,key:`${f}_${h}`,name:`${h}`},null)))?d:{default:()=>[d]}),a.createVNode("div",null,[e.value.strip])]):null}}},Qa=5,kG=()=>{const{proxy:e}=a.getCurrentInstance(),t=a.ref(1),n=a.computed(()=>t.value===1),r=a.computed(()=>t.value===e.totalPageNum),s=a.ref(!1),o=a.ref(!1),c=a.computed(()=>{s.value=!1,o.value=!1;const b=[];if(e.totalPageNum<=Qa+2){for(let C=2;C<=e.totalPageNum-1;C++)b.push(C);return b}const N=Math.floor(Qa/2);e.totalPageNum>Qa&&(s.value=t.value-N>2,o.value=t.value+N<e.totalPageNum-1);const w=Math.min(e.totalPageNum-Qa,Math.max(2,t.value-N));for(let C=w;C<w+Qa;C++)b.push(C);return b});a.watch(()=>e.modelValue,b=>{a.nextTick(()=>{b>=1&&b<=e.totalPageNum?t.value=b:b<1?t.value=1:t.value=e.totalPageNum})},{immediate:!0}),a.nextTick(()=>{a.watch(()=>e.totalPageNum,b=>{t.value>b&&(t.value=b)})});const u=()=>{e.disabled||n.value||(t.value=t.value-1)},d=()=>{e.disabled||r.value||(t.value=t.value+1)},h=b=>{e.disabled||b!==t.value&&(t.value=b)},f=()=>{e.disabled||(t.value=Math.max(1,t.value-Qa))},m=()=>{e.disabled||(t.value=Math.min(e.totalPageNum,t.value+Qa))},{resolveClassName:p}=xe();return{current:t,render:({isFirst:b,isLast:N})=>a.createVNode("div",{class:{[`${p("pagination-list")}`]:!0,"is-first":b,"is-last":N}},[a.createVNode("div",{class:{[`${p("pagination-list-pre")}`]:!0,"is-disabled":n.value},onClick:u},[e.prevText||a.createVNode(lr,null,null)]),a.createVNode("div",{key:"1",class:{[`${p("pagination-list-item")}`]:!0,"is-active":t.value===1},onClick:()=>h(1)},[a.createTextVNode("1")]),s.value&&a.createVNode("div",{key:"pre-batch",class:`${p("pagination-list-pre-batch")}`,onClick:f},[a.createVNode(Vo,null,null)]),c.value.map(w=>a.createVNode("div",{key:w,class:{[`${p("pagination-list-item")}`]:!0,"is-active":t.value===w},onClick:()=>h(w)},[w])),o.value&&a.createVNode("div",{key:"next-batch",class:`${p("pagination-list-next-batch")}`,onClick:m},[a.createVNode(Vo,null,null)]),e.totalPageNum>1&&a.createVNode("div",{key:"last",class:{[`${p("pagination-list-item")}`]:!0,"is-active":t.value===e.totalPageNum},onClick:()=>h(e.totalPageNum)},[e.totalPageNum]),a.createVNode("div",{class:{[`${p("pagination-list-pre")}`]:!0,"is-disabled":r.value},onClick:d},[e.nextText||a.createVNode(Dn,null,null)])])}},PG=()=>{const{proxy:e}=a.getCurrentInstance(),t=a.ref(null),n=a.ref(!1),r=a.ref(1),s=a.ref(!1),o=a.computed(()=>r.value===1),c=a.computed(()=>r.value===e.totalPageNum);let u=0;const d=a.computed(()=>{const _=[];for(let x=1;x<=e.totalPageNum;x++)_.push(x);return _});a.watch(()=>e.modelValue,_=>{a.nextTick(()=>{_>=1&&_<=e.totalPageNum?r.value=_:_<1?r.value=1:r.value=e.totalPageNum,u=r.value})},{immediate:!0}),a.nextTick(()=>{a.watch(()=>e.totalPageNum,_=>{r.value>_&&(r.value=_)})});const h=()=>{e.disabled||o.value||(r.value=r.value-1)},f=()=>{e.disabled||c.value||(r.value=r.value+1)},m=()=>{e.disabled||(n.value=!0)},p=()=>{n.value=!1,s.value=!1,u!==r.value&&(r.value=u)},y=_=>{const x=_.target,O=Number(x.textContent);!O||O<1||O>e.totalPageNum||O===r.value||(u=O)},b=_=>{["Enter","NumpadEnter"].includes(_.code)&&(_.preventDefault(),p())},N=_=>{u=_,p()},w=_=>{s.value=_},{resolveClassName:C}=xe();return{current:r,render:()=>a.createVNode("div",{class:`${C("pagination-small-list")}`},[a.createVNode("div",{class:{[`${C("pagination-btn-pre")}`]:!0,"is-disabled":o.value},onClick:h},[a.createVNode(lr,null,null)]),a.createVNode(wn,{width:56,arrow:!1,boundary:"body",disabled:e.disabled,isShow:s.value,placement:"bottom",theme:"light",trigger:"click",onAfterHidden:()=>w(!1),onAfterShow:()=>w(!0)},{default:()=>a.createVNode("div",{class:{[`${C("pagination-picker")}`]:!0,"is-focused":n.value}},[a.createVNode("span",{ref:t,class:`${C("pagination-editor")}`,contenteditable:!e.disabled,innerHTML:String(r.value),spellcheck:"false",onBlur:p,onFocus:m,onInput:y,onKeydown:b},[r.value]),a.createVNode("span",null,[a.createTextVNode("/")]),a.createVNode("span",{class:`${C("pagination-small-list-total")}`},[e.totalPageNum])]),content:()=>a.createVNode("div",{class:`${C("pagination-picker-list")}`},[d.value.map(_=>a.createVNode("div",{key:_,class:{item:!0,"is-actived":_===r.value},onClick:()=>N(_)},[_]))])}),a.createVNode("div",{class:{[`${C("pagination-btn-next")}`]:!0,"is-disabled":c.value},onClick:f},[a.createVNode(Dn,null,null)])])}},MG=e=>({isFirst:t,isLast:n})=>{const{props:r}=a.getCurrentInstance();if(!r.showTotalCount)return null;const{resolveClassName:s}=xe();return a.createVNode("div",a.mergeProps({class:{[`${s("pagination-total")}`]:!0,"is-first":t,"is-last":n}},{disabled:r.disabled}),[e.value.total,a.createVNode("div",{class:`${s("pagination-total-num")}`},[r.count]),e.value.strip])},RG={modelValue:v.number.def(1),count:v.number.def(0).isRequired,limit:v.number.def(10),limitList:v.arrayOf(Number).def([10,20,50,100]),showLimit:v.bool.def(!0),type:v.oneOf(["default","compact"]).def("default"),location:v.oneOf(["left","right"]).def("right"),align:v.oneOf(["left","center","right"]).def("left"),small:v.bool.def(!1),showTotalCount:v.bool.def(!0),prevText:v.string,nextText:v.string,disabled:v.bool.def(!1),layout:v.custom(e=>{const t={total:!0,list:!0,limit:!0};return e.some(n=>t[n])},"layout 的值只支持 * total、list、limit *").def(["total","list","limit"])},FG=a.defineComponent({name:"Pagination",props:RG,emits:["update:modelValue","change","update:limit","limitChange"],setup(e,t){const n=ut("pagination"),r=a.ref(0),{count:s,limit:o}=a.toRefs(e),c=MG(n),{current:u,render:d}=kG(),{current:h,render:f}=PG(),{limit:m,render:p}=IG(n);a.watch([s,m,o],([b,N])=>{const w=Math.ceil(b/N);r.value=w<1?1:w},{immediate:!0}),a.watch(u,b=>{t.emit("update:modelValue",b),t.emit("change",b)}),a.watch(h,b=>{e.small&&(t.emit("update:modelValue",b),t.emit("change",b))}),a.watch(m,b=>{t.emit("limitChange",b)});const{resolveClassName:y}=xe();return{totalPageNum:r,renderTotal:c,renderList:d,renderLimit:p,renderSmallList:f,resolveClassName:y}},render(){const e=ze({[`${this.resolveClassName("pagination")}`]:!0,[`is-align-${this.align}`]:!0,"is-disabled":this.disabled}),t={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return a.createVNode("div",{class:e},[this.layout.map((n,r)=>t[n]({isFirst:r===0,isLast:r===this.layout.length-1}))])}}),V2=Qe(FG);function HG(){return Pe("trigger",{}).def("hover")}const BG={trigger:HG(),title:v.string.def(""),content:v.string.def(""),confirmText:v.string.def(""),cancelText:v.string.def(""),placement:gh().def(Lo.TOP_START),theme:v.string.def("light"),width:v.oneOfType([v.string,v.number]).def("auto")},zG=a.defineComponent({name:"PopConfirm",props:BG,emits:["confirm","cancel"],setup(e,{emit:t}){const n=a.ref(!1),r=ut("popConfirm");function s(d){n.value=!1,t("confirm"),d.stopPropagation()}function o(d){n.value=!1,t("cancel"),d.stopPropagation()}const{resolveClassName:c}=xe();return{popoverRef:a.ref(null),visible:n,t:r,resolveClassName:c,ensure:s,cancel:o}},render(){const e=()=>this.title?a.createVNode("div",{class:`${this.resolveClassName("pop-confirm-title")}`},[typeof this.$slots.icon=="function"?a.createVNode("span",{class:`${this.resolveClassName("pop-confirm-icon")}`},[this.$slots.icon()]):null,a.createVNode("span",null,[this.title])]):"";return a.createVNode(wn,{ref:"popoverRef",width:this.width,extCls:`${this.resolveClassName("pop-confirm-box")}`,isShow:this.visible,placement:this.placement,theme:this.theme,trigger:this.trigger,onAfterShow:()=>this.visible=!0},{default:()=>this.$slots.default(),content:()=>a.createVNode("div",{class:`${this.resolveClassName("pop-confirm")}`},[typeof this.$slots.content=="function"?a.createVNode(a.Fragment,null,[e(),this.$slots.content()]):a.createVNode(a.Fragment,null,[e(),a.createVNode("div",{class:`${this.resolveClassName("pop-confirm-content")}`},[this.content])]),a.createVNode("div",{class:`${this.resolveClassName("pop-confirm-footer")}`},[a.createVNode(Ht,{size:"small",theme:"primary",onClick:this.ensure},{default:()=>[this.confirmText||this.t.ok]}),a.createVNode(Ht,{size:"small",onClick:this.cancel},{default:()=>[this.cancelText||this.t.cancel]})])])})}}),p4=Qe(zG),UG=a.defineComponent({name:"Popover2",setup(){return()=>a.createVNode("code",null,["<bk-popover2></bk-popover2>已经合并为<bk-popover></bk-popover>,请替换为<bk-popover></bk-popover>"])}}),v4=Qe(UG),jG={list:v.array.def([]),controllable:v.bool.def(!1),showSteps:v.bool.def(!1),curProcess:v.number.def(0),displayKey:v.string.def("content"),extCls:v.string},WG=a.defineComponent({name:"Process",props:jG,emits:["update:curProcess","click"],setup(e,{emit:t}){const n=ut("process"),r=ut("lang"),s=a.ref([]),o=a.ref(0),c=()=>{var h;s.value.splice(0,s.value.length,{content:n.value.step1},{content:n.value.step2},{content:n.value.step3},{content:n.value.step4}),(h=e.list)!=null&&h.length&&s.value.splice(0,s.value.length,...e.list)};a.watch(()=>r.value,()=>{c()});const u=async h=>{try{e.controllable&&h!==e.curProcess&&(t("update:curProcess",h),t("click",h))}catch(f){console.warn(f)}};a.onMounted(c);const{resolveClassName:d}=xe();return{defaultProcessList:s,paddingBottom:o,jumpTo:u,resolveClassName:d}},render(){const e=this.resolveClassName("process"),t=ze({[`${this.extCls}`]:!!this.extCls},`${e}`),n=u=>u.status==="loading",r=u=>u.status==="error",s=u=>this.curProcess>=u+1||this.defaultProcessList[u].status==="done",o=u=>u.icon?u.icon:"",c=(u,d)=>{if(u===this.curProcess-1&&n(d))return a.createVNode(qo,{class:`${this.resolveClassName("icon")} ${this.resolveClassName("process-icon")} icon-loading`},null);if(u===this.curProcess-1&&r(d))return a.createVNode(an,{class:`${this.resolveClassName("process-icon")} icon-error`},null);if(u===this.curProcess-1&&o(d))return a.createVNode("span",{class:`${this.resolveClassName("process-icon-custom")}`},[a.createVNode(d.icon,null,null)]);if(s(u))return a.createVNode(ps,{class:`${this.resolveClassName("process-icon-done")}`},null)};return a.createVNode("div",{class:t},[a.createVNode("ul",{style:{paddingBottom:`${this.paddingBottom}px`}},[this.defaultProcessList.map((u,d)=>a.createVNode("li",{style:{cursor:this.controllable?"pointer":""},class:{success:this.curProcess>=d+1,current:n(u)&&d===this.curProcess-1,error:r(u)&&d===this.curProcess-1},onClick:()=>{this.jumpTo(d+1)}},[a.createVNode("div",null,[a.createVNode("span",{class:"display"},[u[this.displayKey]]),c(d,u)])]))])])}}),y4=Qe(WG),GG=(e,{attrs:t,slots:n})=>{const{resolveClassName:r}=xe(),{width:s,percent:o,strokeWidth:c,color:u,strokeLinecap:d,theme:h,type:f,bgColor:m,titleStyle:p}=t,y=c||6,b=s||126,N={width:typeof b=="number"?`${b}px`:b,height:typeof b=="number"?`${b}px`:b,fontSize:`${b*.15+6}px`},w=50-y/2,C=f==="dashboard",E=Math.PI*2*w,_=C&&.75||1,x=`${-1*E*(1-_)/2}px`,O="stroke-dasharray 0.6s ease 0s, stroke 0.6s ease",T={strokeDasharray:`${E*_}px, ${E}px`,strokeDashoffset:x},$={strokeDasharray:`${E*_*(o/100)}px, ${E}px`,strokeDashoffset:x,transition:O},L=`
382
+ }`;var nt=K1(function(){return lt(H,Be+"return "+Oe).apply(n,Q)});if(nt.source=Oe,Ff(nt))throw nt;return nt}function NC(i){return ct(i).toLowerCase()}function xC(i){return ct(i).toUpperCase()}function _C(i,l,g){if(i=ct(i),i&&(g||l===n))return n3(i);if(!i||!(l=_n(l)))return i;var S=Qn(i),V=Qn(l),H=r3(S,V),Q=a3(S,V)+1;return va(S,H,Q).join("")}function SC(i,l,g){if(i=ct(i),i&&(g||l===n))return i.slice(0,i3(i)+1);if(!i||!(l=_n(l)))return i;var S=Qn(i),V=a3(S,Qn(l))+1;return va(S,0,V).join("")}function TC(i,l,g){if(i=ct(i),i&&(g||l===n))return i.replace(Zn,"");if(!i||!(l=_n(l)))return i;var S=Qn(i),V=r3(S,Qn(l));return va(S,V).join("")}function EC(i,l){var g=I,S=A;if(St(l)){var V="separator"in l?l.separator:V;g="length"in l?et(l.length):g,S="omission"in l?_n(l.omission):S}i=ct(i);var H=i.length;if(Ds(i)){var Q=Qn(i);H=Q.length}if(g>=H)return i;var oe=g-Is(S);if(oe<1)return S;var ge=Q?va(Q,0,oe).join(""):i.slice(0,oe);if(V===n)return ge+S;if(Q&&(oe+=ge.length-oe),Hf(V)){if(i.slice(oe).search(V)){var Se,Te=ge;for(V.global||(V=tf(V.source,ct(Pi.exec(V))+"g")),V.lastIndex=0;Se=V.exec(Te);)var Oe=Se.index;ge=ge.slice(0,Oe===n?oe:Oe)}}else if(i.indexOf(_n(V),oe)!=oe){var Me=ge.lastIndexOf(V);Me>-1&&(ge=ge.slice(0,Me))}return ge+S}function OC(i){return i=ct(i),i&&bs.test(i)?i.replace(oa,r8):i}var LC=Bs(function(i,l,g){return i+(g?" ":"")+l.toUpperCase()}),Uf=Y3("toUpperCase");function G1(i,l,g){return i=ct(i),l=g?n:l,l===n?Z5(i)?i8(i):U5(i):i.match(l)||[]}var K1=rt(function(i,l){try{return Nn(i,n,l)}catch(g){return Ff(g)?g:new Ye(g)}}),AC=zr(function(i,l){return Fn(l,function(g){g=gr(g),Hr(i,g,Mf(i[g],i))}),i});function VC(i){var l=i==null?0:i.length,g=je();return i=l?Ct(i,function(S){if(typeof S[1]!="function")throw new Hn(c);return[g(S[0]),S[1]]}):[],rt(function(S){for(var V=-1;++V<l;){var H=i[V];if(Nn(H[0],this,S))return Nn(H[1],this,S)}})}function $C(i){return r7(zn(i,m))}function jf(i){return function(){return i}}function DC(i,l){return i==null||i!==i?l:i}var IC=q3(),kC=q3(!0);function fn(i){return i}function Wf(i){return T3(typeof i=="function"?i:zn(i,m))}function PC(i){return O3(zn(i,m))}function MC(i,l){return L3(i,zn(l,m))}var RC=rt(function(i,l){return function(g){return Gi(g,i,l)}}),FC=rt(function(i,l){return function(g){return Gi(i,g,l)}});function Gf(i,l,g){var S=Bt(l),V=Fl(l,S);g==null&&!(St(l)&&(V.length||!S.length))&&(g=l,l=i,i=this,V=Fl(l,Bt(l)));var H=!(St(g)&&"chain"in g)||!!g.chain,Q=jr(i);return Fn(V,function(oe){var ge=l[oe];i[oe]=ge,Q&&(i.prototype[oe]=function(){var Se=this.__chain__;if(H||Se){var Te=i(this.__wrapped__),Oe=Te.__actions__=cn(this.__actions__);return Oe.push({func:ge,args:arguments,thisArg:i}),Te.__chain__=Se,Te}return ge.apply(i,da([this.value()],arguments))})}),i}function HC(){return Ut._===this&&(Ut._=f8),this}function Kf(){}function BC(i){return i=et(i),rt(function(l){return A3(l,i)})}var zC=_f(Ct),UC=_f(J2),jC=_f(Yd);function Y1(i){return Vf(i)?Xd(gr(i)):w7(i)}function WC(i){return function(l){return i==null?n:Ga(i,l)}}var GC=Z3(),KC=Z3(!0);function Yf(){return[]}function Xf(){return!1}function YC(){return{}}function XC(){return""}function qC(){return!0}function JC(i,l){if(i=et(i),i<1||i>k)return[];var g=K,S=Yt(i,K);l=je(l),i-=K;for(var V=Zd(S,l);++g<i;)l(g);return V}function ZC(i){return Je(i)?Ct(i,gr):Sn(i)?[i]:cn(m1(ct(i)))}function QC(i){var l=++u8;return ct(i)+l}var eN=Wl(function(i,l){return i+l},0),tN=Sf("ceil"),nN=Wl(function(i,l){return i/l},1),rN=Sf("floor");function aN(i){return i&&i.length?Rl(i,fn,uf):n}function sN(i,l){return i&&i.length?Rl(i,je(l,2),uf):n}function iN(i){return e3(i,fn)}function oN(i,l){return e3(i,je(l,2))}function lN(i){return i&&i.length?Rl(i,fn,mf):n}function cN(i,l){return i&&i.length?Rl(i,je(l,2),mf):n}var uN=Wl(function(i,l){return i*l},1),dN=Sf("round"),fN=Wl(function(i,l){return i-l},0);function hN(i){return i&&i.length?Jd(i,fn):0}function mN(i,l){return i&&i.length?Jd(i,je(l,2)):0}return R.after=Pb,R.ary=S1,R.assign=xw,R.assignIn=F1,R.assignInWith=ac,R.assignWith=_w,R.at=Sw,R.before=T1,R.bind=Mf,R.bindAll=AC,R.bindKey=E1,R.castArray=Yb,R.chain=N1,R.chunk=ry,R.compact=ay,R.concat=sy,R.cond=VC,R.conforms=$C,R.constant=jf,R.countBy=hb,R.create=Tw,R.curry=O1,R.curryRight=L1,R.debounce=A1,R.defaults=Ew,R.defaultsDeep=Ow,R.defer=Mb,R.delay=Rb,R.difference=iy,R.differenceBy=oy,R.differenceWith=ly,R.drop=cy,R.dropRight=uy,R.dropRightWhile=dy,R.dropWhile=fy,R.fill=hy,R.filter=gb,R.flatMap=yb,R.flatMapDeep=bb,R.flatMapDepth=wb,R.flatten=y1,R.flattenDeep=my,R.flattenDepth=gy,R.flip=Fb,R.flow=IC,R.flowRight=kC,R.fromPairs=py,R.functions=kw,R.functionsIn=Pw,R.groupBy=Cb,R.initial=yy,R.intersection=by,R.intersectionBy=wy,R.intersectionWith=Cy,R.invert=Rw,R.invertBy=Fw,R.invokeMap=xb,R.iteratee=Wf,R.keyBy=_b,R.keys=Bt,R.keysIn=dn,R.map=Zl,R.mapKeys=Bw,R.mapValues=zw,R.matches=PC,R.matchesProperty=MC,R.memoize=ec,R.merge=Uw,R.mergeWith=H1,R.method=RC,R.methodOf=FC,R.mixin=Gf,R.negate=tc,R.nthArg=BC,R.omit=jw,R.omitBy=Ww,R.once=Hb,R.orderBy=Sb,R.over=zC,R.overArgs=Bb,R.overEvery=UC,R.overSome=jC,R.partial=Rf,R.partialRight=V1,R.partition=Tb,R.pick=Gw,R.pickBy=B1,R.property=Y1,R.propertyOf=WC,R.pull=Sy,R.pullAll=w1,R.pullAllBy=Ty,R.pullAllWith=Ey,R.pullAt=Oy,R.range=GC,R.rangeRight=KC,R.rearg=zb,R.reject=Lb,R.remove=Ly,R.rest=Ub,R.reverse=kf,R.sampleSize=Vb,R.set=Yw,R.setWith=Xw,R.shuffle=$b,R.slice=Ay,R.sortBy=kb,R.sortedUniq=My,R.sortedUniqBy=Ry,R.split=yC,R.spread=jb,R.tail=Fy,R.take=Hy,R.takeRight=By,R.takeRightWhile=zy,R.takeWhile=Uy,R.tap=ab,R.throttle=Wb,R.thru=Jl,R.toArray=P1,R.toPairs=z1,R.toPairsIn=U1,R.toPath=ZC,R.toPlainObject=R1,R.transform=qw,R.unary=Gb,R.union=jy,R.unionBy=Wy,R.unionWith=Gy,R.uniq=Ky,R.uniqBy=Yy,R.uniqWith=Xy,R.unset=Jw,R.unzip=Pf,R.unzipWith=C1,R.update=Zw,R.updateWith=Qw,R.values=js,R.valuesIn=eC,R.without=qy,R.words=G1,R.wrap=Kb,R.xor=Jy,R.xorBy=Zy,R.xorWith=Qy,R.zip=eb,R.zipObject=tb,R.zipObjectDeep=nb,R.zipWith=rb,R.entries=z1,R.entriesIn=U1,R.extend=F1,R.extendWith=ac,Gf(R,R),R.add=eN,R.attempt=K1,R.camelCase=aC,R.capitalize=j1,R.ceil=tN,R.clamp=tC,R.clone=Xb,R.cloneDeep=Jb,R.cloneDeepWith=Zb,R.cloneWith=qb,R.conformsTo=Qb,R.deburr=W1,R.defaultTo=DC,R.divide=nN,R.endsWith=sC,R.eq=tr,R.escape=iC,R.escapeRegExp=oC,R.every=mb,R.find=pb,R.findIndex=p1,R.findKey=Lw,R.findLast=vb,R.findLastIndex=v1,R.findLastKey=Aw,R.floor=rN,R.forEach=x1,R.forEachRight=_1,R.forIn=Vw,R.forInRight=$w,R.forOwn=Dw,R.forOwnRight=Iw,R.get=Bf,R.gt=ew,R.gte=tw,R.has=Mw,R.hasIn=zf,R.head=b1,R.identity=fn,R.includes=Nb,R.indexOf=vy,R.inRange=nC,R.invoke=Hw,R.isArguments=Xa,R.isArray=Je,R.isArrayBuffer=nw,R.isArrayLike=un,R.isArrayLikeObject=Vt,R.isBoolean=rw,R.isBuffer=ya,R.isDate=aw,R.isElement=sw,R.isEmpty=iw,R.isEqual=ow,R.isEqualWith=lw,R.isError=Ff,R.isFinite=cw,R.isFunction=jr,R.isInteger=$1,R.isLength=nc,R.isMap=D1,R.isMatch=uw,R.isMatchWith=dw,R.isNaN=fw,R.isNative=hw,R.isNil=gw,R.isNull=mw,R.isNumber=I1,R.isObject=St,R.isObjectLike=Ot,R.isPlainObject=Zi,R.isRegExp=Hf,R.isSafeInteger=pw,R.isSet=k1,R.isString=rc,R.isSymbol=Sn,R.isTypedArray=Us,R.isUndefined=vw,R.isWeakMap=yw,R.isWeakSet=bw,R.join=Ny,R.kebabCase=lC,R.last=jn,R.lastIndexOf=xy,R.lowerCase=cC,R.lowerFirst=uC,R.lt=ww,R.lte=Cw,R.max=aN,R.maxBy=sN,R.mean=iN,R.meanBy=oN,R.min=lN,R.minBy=cN,R.stubArray=Yf,R.stubFalse=Xf,R.stubObject=YC,R.stubString=XC,R.stubTrue=qC,R.multiply=uN,R.nth=_y,R.noConflict=HC,R.noop=Kf,R.now=Ql,R.pad=dC,R.padEnd=fC,R.padStart=hC,R.parseInt=mC,R.random=rC,R.reduce=Eb,R.reduceRight=Ob,R.repeat=gC,R.replace=pC,R.result=Kw,R.round=dN,R.runInContext=he,R.sample=Ab,R.size=Db,R.snakeCase=vC,R.some=Ib,R.sortedIndex=Vy,R.sortedIndexBy=$y,R.sortedIndexOf=Dy,R.sortedLastIndex=Iy,R.sortedLastIndexBy=ky,R.sortedLastIndexOf=Py,R.startCase=bC,R.startsWith=wC,R.subtract=fN,R.sum=hN,R.sumBy=mN,R.template=CC,R.times=JC,R.toFinite=Wr,R.toInteger=et,R.toLength=M1,R.toLower=NC,R.toNumber=Wn,R.toSafeInteger=Nw,R.toString=ct,R.toUpper=xC,R.trim=_C,R.trimEnd=SC,R.trimStart=TC,R.truncate=EC,R.unescape=OC,R.uniqueId=QC,R.upperCase=LC,R.upperFirst=Uf,R.each=x1,R.eachRight=_1,R.first=b1,Gf(R,function(){var i={};return hr(R,function(l,g){dt.call(R.prototype,g)||(i[g]=l)}),i}(),{chain:!1}),R.VERSION=r,Fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){R[i].placeholder=R}),Fn(["drop","take"],function(i,l){it.prototype[i]=function(g){g=g===n?1:Ft(et(g),0);var S=this.__filtered__&&!l?new it(this):this.clone();return S.__filtered__?S.__takeCount__=Yt(g,S.__takeCount__):S.__views__.push({size:Yt(g,K),type:i+(S.__dir__<0?"Right":"")}),S},it.prototype[i+"Right"]=function(g){return this.reverse()[i](g).reverse()}}),Fn(["filter","map","takeWhile"],function(i,l){var g=l+1,S=g==M||g==ne;it.prototype[i]=function(V){var H=this.clone();return H.__iteratees__.push({iteratee:je(V,3),type:g}),H.__filtered__=H.__filtered__||S,H}}),Fn(["head","last"],function(i,l){var g="take"+(l?"Right":"");it.prototype[i]=function(){return this[g](1).value()[0]}}),Fn(["initial","tail"],function(i,l){var g="drop"+(l?"":"Right");it.prototype[i]=function(){return this.__filtered__?new it(this):this[g](1)}}),it.prototype.compact=function(){return this.filter(fn)},it.prototype.find=function(i){return this.filter(i).head()},it.prototype.findLast=function(i){return this.reverse().find(i)},it.prototype.invokeMap=rt(function(i,l){return typeof i=="function"?new it(this):this.map(function(g){return Gi(g,i,l)})}),it.prototype.reject=function(i){return this.filter(tc(je(i)))},it.prototype.slice=function(i,l){i=et(i);var g=this;return g.__filtered__&&(i>0||l<0)?new it(g):(i<0?g=g.takeRight(-i):i&&(g=g.drop(i)),l!==n&&(l=et(l),g=l<0?g.dropRight(-l):g.take(l-i)),g)},it.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},it.prototype.toArray=function(){return this.take(K)},hr(it.prototype,function(i,l){var g=/^(?:filter|find|map|reject)|While$/.test(l),S=/^(?:head|last)$/.test(l),V=R[S?"take"+(l=="last"?"Right":""):l],H=S||/^find/.test(l);V&&(R.prototype[l]=function(){var Q=this.__wrapped__,oe=S?[1]:arguments,ge=Q instanceof it,Se=oe[0],Te=ge||Je(Q),Oe=function(st){var ot=V.apply(R,da([st],oe));return S&&Me?ot[0]:ot};Te&&g&&typeof Se=="function"&&Se.length!=1&&(ge=Te=!1);var Me=this.__chain__,Be=!!this.__actions__.length,We=H&&!Me,nt=ge&&!Be;if(!H&&Te){Q=nt?Q:new it(this);var Ge=i.apply(Q,oe);return Ge.__actions__.push({func:Jl,args:[Oe],thisArg:n}),new Bn(Ge,Me)}return We&&nt?i.apply(this,oe):(Ge=this.thru(Oe),We?S?Ge.value()[0]:Ge.value():Ge)})}),Fn(["pop","push","shift","sort","splice","unshift"],function(i){var l=xl[i],g=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",S=/^(?:pop|shift)$/.test(i);R.prototype[i]=function(){var V=arguments;if(S&&!this.__chain__){var H=this.value();return l.apply(Je(H)?H:[],V)}return this[g](function(Q){return l.apply(Je(Q)?Q:[],V)})}}),hr(it.prototype,function(i,l){var g=R[l];if(g){var S=g.name+"";dt.call(Rs,S)||(Rs[S]=[]),Rs[S].push({name:l,func:g})}}),Rs[jl(n,C).name]=[{name:"wrapper",func:n}],it.prototype.clone=O8,it.prototype.reverse=L8,it.prototype.value=A8,R.prototype.at=sb,R.prototype.chain=ib,R.prototype.commit=ob,R.prototype.next=lb,R.prototype.plant=ub,R.prototype.reverse=db,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=fb,R.prototype.first=R.prototype.head,Fi&&(R.prototype[Fi]=cb),R},ks=o8();Ba?((Ba.exports=ks)._=ks,jd._=ks):Ut._=ks}).call(Nr)})(ou,ou.exports);var yn=ou.exports;const yG=Kt(yn);function xm(e,t,n){let r=0,s=0,o=0,c=0;for(;r<e;r++){if(c=n({index:r}),s+c>t){o=t-s,r=r+Math.round(o/c);break}s+=c}return{startIndex:r,height:s,diffHeight:o}}function h4(e,t,n,r,s){if(!r||!s.offset)return;const o=s.offset.y>=0?s.offset.y:0,c=s.offset.x>=0?s.offset.x:0,u=r.scrollHeight,d=r.offsetHeight,{count:h,groupItemCount:f}=n;let m=0,p=0,y=0;if(typeof e=="number"&&(m=Math.ceil(o/e),p=Math.ceil(d/e)+m,y=o%e),typeof e=="function"){const N=Math.ceil(h/f),w=xm(N,o,e);m=w.startIndex>0?w.startIndex:0,y=w.diffHeight,p=xm(N,d,e).startIndex+m+1}const b=u-d-o;return typeof t=="function"&&t(s,m,p,o,o,c,{bottom:b>=0?b:0,scrollbar:s}),{targetStartIndex:m,targetEndIndex:p,elScrollTop:o,translateY:y,elScrollLeft:c}}class L2{constructor(t,n){Le(this,"binding");Le(this,"wrapper");Le(this,"delay");Le(this,"delegateWrapper");Le(this,"getEvent",t=>{const{scrollbar:n={enabled:!1}}=this.binding.value;if(n.enabled)return{offset:t.offset??{x:t.target.scrollLeft,y:t.target.scrollTop}};if(t!=null&&t.offset)return{offset:t==null?void 0:t.offset};const r=t.target.scrollTop;return{offset:{x:t.target.scrollLeft,y:r}}});this.binding=t,this.wrapper=n;const{throttleDelay:r}=t.value;this.delay=r,this.delegateWrapper=void 0}get scrollHeight(){var t,n;return((t=this.delegateWrapper)==null?void 0:t.scrollHeight)??((n=this.wrapper)==null?void 0:n.scrollHeight)}get offsetHeight(){var t,n;return((t=this.delegateWrapper)==null?void 0:t.offsetHeight)??((n=this.wrapper)==null?void 0:n.offsetHeight)}setDelegateWrapper(t){this.delegateWrapper=t}render(t){var p,y;const{lineHeight:n=30,handleScrollCallback:r,pagination:s={},onlyScroll:o}=this.binding.value;if(o){const b=(p=t.offset)==null?void 0:p.y,N=((y=t.offset)==null?void 0:y.x)??0,w=this.scrollHeight-this.offsetHeight-b;r(t,null,null,b,b,N,{bottom:w>=0?w:0,scrollbar:t});return}const{startIndex:c,endIndex:u,groupItemCount:d,count:h,scrollTop:f,scrollLeft:m}=s;h4(n,r,{scrollTop:f,startIndex:c,endIndex:u,groupItemCount:d,count:h,scrollLeft:m},this.delegateWrapper??this.wrapper,t)}executeThrottledRender(t){yn.throttle(this.render.bind(this),this.delay)(this.getEvent(t))}install(){var t;(t=this.wrapper)==null||t.addEventListener("scroll",this.executeThrottledRender.bind(this))}uninstall(){var t,n;(n=(t=this.wrapper)==null?void 0:t.removeListener)==null||n.call(t,"scroll",this.executeThrottledRender.bind(this))}setBinding(t){this.binding=t}}let Ca=null;const bG={mounted(e,t){const n=e.parentNode;Ca=new L2(t,e),n.addEventListener("scroll",Ca.executeThrottledRender.bind(Ca))},updated(e,t){Ca==null||Ca.setBinding(t)},unbind(e){if(e){const t=e.parentNode;if(!t||!Ca)return;t.removeEventListener("scroll",Ca.executeThrottledRender)}}},wG=(e,t)=>{const{renderAs:n}=e,r=a.ref(null),{init:s,scrollTo:o}=f4(e),c=a.reactive({x:0,y:0}),u=(y,b,N,w,C,E,_)=>{const{scrollbar:x}=_;x!=null&&x.offset&&Object.assign(c,(x==null?void 0:x.offset)??{}),t.emit("content-scroll",[y,{translateY:C,translateX:E,pos:_}])};let d=null;const h=a.computed(()=>({lineHeight:e.lineHeight,scrollbar:e.scrollbar,handleScrollCallback:u,pagination:{},throttleDelay:e.throttleDelay,onlyScroll:e.scrollEvent})),f=a.computed(()=>{const y=typeof e.height=="number"?`${e.height}px`:e.height;return{height:y,width:typeof e.width=="number"?`${e.width}px`:e.width,display:"inline-block",maxHeight:e.maxHeight??y,...e.wrapperStyle}}),{fixToTop:m}=d4(e,o);t.expose({scrollTo:o,fixToTop:m,refRoot:r,refContent:r}),a.onMounted(()=>{var y;d=new L2(h,r.value),(y=e.scrollbar)!=null&&y.enabled&&s(r),d.install()}),a.onUnmounted(()=>{d==null||d.uninstall()});const p=a.computed(()=>e.scrollbar.enabled?[e.className]:[e.className]);return{rendAsTag:()=>{var y,b,N,w,C,E,_,x;return a.h(n,{class:p.value,style:f.value,ref:r},[((b=(y=t.slots).beforeContent)==null?void 0:b.call(y))??"",((w=(N=t.slots).default)==null?void 0:w.call(N,{data:e.list}))??"",((E=(C=t.slots).afterContent)==null?void 0:E.call(C))??"",((x=(_=t.slots).afterSection)==null?void 0:x.call(_))??""])}}},CG=a.defineComponent({name:"VirtualRender",directives:{bkVirtualRender:bG},props:vG,emits:["content-scroll"],slots:Object,setup(e,t){const{renderAs:n}=e,r=J=>typeof J=="string"?[J]:typeof J=="object"&&!Array.isArray(J)?[J]:J;if(!e.enabled){const{rendAsTag:J}=wG(e,t);return J}const s=a.ref(null),o=a.ref(0),c=a.ref(0),u=a.ref(0),d=a.ref(null),h=J=>{let K=J*e.groupItemCount,F=(J+1)*e.groupItemCount;if(F>o.value){const z=F-K;F=o.value,K=F-z}return{index:K,rows:e.list.slice(K,F),items:[K,F],type:"virtual"}},f=()=>typeof e.lineHeight=="function"?({index:J})=>e.lineHeight(h(J)):e.lineHeight,m=a.computed(()=>({lineHeight:f(),handleScrollCallback:O,pagination:C,throttleDelay:e.throttleDelay,scrollbar:e.scrollbar})),{init:p,scrollTo:y,updateScrollHeight:b,update:N}=f4(e);let w=null;const C=a.reactive({startIndex:0,endIndex:0,scrollTop:1,scrollLeft:0,translateY:0,translateX:0,count:0,pos:{},groupItemCount:e.groupItemCount}),E=a.ref([]),_=()=>typeof e.height=="number"?e.height:d.value.offsetHeight,x=()=>{const J=_();let K=Math.ceil(o.value/e.groupItemCount),F=0,z=0,Y=0;for(;K>0;K--)if(z=e.lineHeight(h(K)),F=F+z,F>J){Y=F-J;break}return{diffHeight:Y,startIndex:K}},O=(J,K,F,z,Y,te,ue)=>{Object.assign(C,{startIndex:K,endIndex:F,scrollTop:z,translateX:te,translateY:Y,scrollLeft:te,pos:ue});let be=C.startIndex*e.groupItemCount,Z=C.endIndex*e.groupItemCount;const me=P.value.length;me<Z&&(Z=me,typeof e.lineHeight=="function"?be=x().startIndex:(be=Z-Math.floor(s.value.offsetHeight/e.lineHeight),be=be<0?0:be));const ae=P.value.slice(be,Z);E.value=ae,J&&t.emit("content-scroll",[J,C,ae])};a.onMounted(()=>{var J;if(w=new L2(m,s.value),(J=e.scrollbar)!=null&&J.enabled){d.value=new gG({delegateElement:s.value,scrollHeight:c.value,onScollCallback:re}),p(d),b(u.value),w.executeThrottledRender.call(w,{offset:{x:0,y:0}});return}w.install()}),a.onUnmounted(()=>{w==null||w.uninstall()});const T=()=>{$(e.list)},$=J=>{if(o.value=Math.ceil((J||[]).length/e.groupItemCount),C.count=o.value,typeof e.abosuteHeight=="string"&&e.abosuteHeight==="auto")if(typeof e.lineHeight=="function"){c.value=0;let F=0;const z=Math.ceil(o.value/e.groupItemCount);for(let Y=0;Y<z;Y++){const te=e.lineHeight.apply(this,[h(Y)]);F+=typeof te=="number"?te:0}c.value=F}else c.value=e.lineHeight*o.value;else c.value=e.abosuteHeight;D()},L=(J={left:0,top:0})=>{const K=s.value,F=typeof e.height=="number"?{scrollHeight:c.value,offsetHeight:e.height}:K;h4(e.lineHeight,O,C,F,{target:K})},P=a.computed(()=>e.rowKey!==void 0||!e.autoIndex?e.list:(e.list||[]).map((J,K)=>({...J,$index:K}))),I=a.computed(()=>e.scrollPosition==="content"?{}:{}),A=a.computed(()=>({height:typeof e.height=="number"?`${e.height}px`:e.height,width:typeof e.width=="number"?`${e.width}px`:e.width,display:"inline-block",maxHeight:e.maxHeight?`${e.maxHeight}px`:!1,minHeight:e.minHeight?`${e.minHeight}px`:!1,...e.scrollPosition==="container"?I.value:{},...e.wrapperStyle})),D=()=>{u.value=c.value<e.minHeight?e.minHeight:c.value},{resolveClassName:X}=xe(),M=a.computed(()=>[X("virtual-render"),...r(e.className),e.scrollPosition==="container"?X("virtual-content"):""]),W=()=>{T(),L(),w==null||w.executeThrottledRender.call(w,{offset:{x:0,y:0}})},{fixToTop:ne}=d4(e,y),B=()=>{const J=s.value,K=typeof e.height=="number"?{scrollHeight:c.value,offsetHeight:e.height}:J;w==null||w.setDelegateWrapper(K)},k=()=>{w==null||w.setBinding(m),T(),b(u.value),B(),N(),L(),a.nextTick(()=>{w==null||w.executeThrottledRender.call(w,{offset:{x:C.scrollLeft,y:C.scrollTop}})})};a.watch(()=>e.height,()=>{k()}),a.watch(()=>[e.list,e.list.length],()=>{k()},{immediate:!0}),t.expose({reset:W,scrollTo:y,fixToTop:ne,updateScroll:N,refRoot:s,refContent:s});const re=J=>{w.executeThrottledRender.call(w,J)};return()=>{var J,K,F,z,Y,te,ue,ce;return a.h(n||"div",{ref:s,class:[...M.value],style:A.value},[((K=(J=t.slots).beforeContent)==null?void 0:K.call(J))??"",((z=(F=t.slots).default)==null?void 0:z.call(F,{data:E.value}))??"",((te=(Y=t.slots).afterContent)==null?void 0:te.call(Y))??"",((ce=(ue=t.slots).afterSection)==null?void 0:ce.call(ue))??""])}}}),$i=Qe(CG),NG=["阿","哎","安","肮","凹","八","挀","扳","邦","勹","陂","奔","伻","屄","边","灬","憋","汃","冫","癶","峬","嚓","偲","参","仓","撡","冊","嵾","曽","叉","芆","辿","伥","抄","车","抻","阷","吃","充","抽","出","欻","揣","巛","刅","吹","旾","逴","呲","匆","凑","粗","汆","崔","邨","搓","咑","呆","丹","当","刀","嘚","扥","灯","氐","甸","刁","爹","丁","丟","东","吺","厾","耑","垖","吨","多","妸","诶","奀","鞥","儿","发","帆","匚","飞","分","丰","覅","仏","紑","夫","旮","侅","甘","冈","皋","戈","给","根","刯","工","勾","估","瓜","乖","关","光","归","丨","呙","哈","咍","佄","夯","茠","诃","黒","拫","亨","噷","叿","齁","乎","花","怀","欢","巟","灰","昏","吙","丌","加","戋","江","艽","阶","巾","坕","冂","丩","凥","姢","噘","军","咔","开","刊","忼","尻","匼","肎","劥","空","抠","扝","夸","蒯","宽","匡","亏","坤","扩","垃","来","兰","啷","捞","肋","勒","崚","哩","俩","奁","良","撩","毟","拎","伶","溜","囖","龙","瞜","噜","驴","娈","掠","抡","罗","呣","妈","埋","嫚","牤","猫","么","呅","门","甿","咪","宀","喵","乜","民","名","谬","摸","哞","毪","嗯","拏","腉","囡","囔","孬","疒","娞","恁","能","妮","拈","娘","鸟","捏","囜","宁","妞","农","羺","奴","女","奻","疟","黁","挪","喔","讴","妑","拍","眅","乓","抛","呸","喷","匉","丕","囨","剽","氕","姘","乒","钋","剖","仆","七","掐","千","呛","悄","癿","亲","靑","卭","丘","区","峑","缺","夋","呥","穣","娆","惹","人","扔","日","茸","厹","邚","挼","堧","婑","瞤","捼","仨","毢","三","桒","掻","閪","森","僧","杀","筛","山","伤","弰","奢","申","升","尸","収","书","刷","衰","闩","双","脽","吮","说","厶","忪","捜","苏","狻","夊","孙","唆","他","囼","坍","汤","夲","忑","熥","剔","天","旫","帖","厅","囲","偷","凸","湍","推","吞","乇","穵","歪","弯","尣","危","昷","翁","挝","乌","夕","虲","仙","乡","灱","些","心","星","凶","休","吁","吅","削","坃","丫","恹","央","幺","倻","一","囙","应","哟","佣","优","扜","囦","曰","晕","帀","災","兂","匨","傮","则","贼","怎","増","扎","捚","沾","张","佋","蜇","贞","争","之","中","州","朱","抓","拽","专","妆","隹","宒","卓","乲","宗","邹","租","钻","厜","尊","昨","兙"],xG=["A","AI","AN","ANG","AO","BA","BAI","BAN","BANG","BAO","BEI","BEN","BENG","BI","BIAN","BIAO","BIE","BIN","BING","BO","BU","CA","CAI","CAN","CANG","CAO","CE","CEN","CENG","CHA","CHAI","CHAN","CHANG","CHAO","CHE","CHEN","CHENG","CHI","CHONG","CHOU","CHU","CHUA","CHUAI","CHUAN","CHUANG","CHUI","CHUN","CHUO","CI","CONG","COU","CU","CUAN","CUI","CUN","CUO","DA","DAI","DAN","DANG","DAO","DE","DEN","DENG","DI","DIAN","DIAO","DIE","DING","DIU","DONG","DOU","DU","DUAN","DUI","DUN","DUO","E","EI","EN","ENG","ER","FA","FAN","FANG","FEI","FEN","FENG","FIAO","FO","FOU","FU","GA","GAI","GAN","GANG","GAO","GE","GEI","GEN","GENG","GONG","GOU","GU","GUA","GUAI","GUAN","GUANG","GUI","GUN","GUO","HA","HAI","HAN","HANG","HAO","HE","HEI","HEN","HENG","HM","HONG","HOU","HU","HUA","HUAI","HUAN","HUANG","HUI","HUN","HUO","JI","JIA","JIAN","JIANG","JIAO","JIE","JIN","JING","JIONG","JIU","JU","JUAN","JUE","JUN","KA","KAI","KAN","KANG","KAO","KE","KEN","KENG","KONG","KOU","KU","KUA","KUAI","KUAN","KUANG","KUI","KUN","KUO","LA","LAI","LAN","LANG","LAO","LE","LEI","LENG","LI","LIA","LIAN","LIANG","LIAO","LIE","LIN","LING","LIU","LO","LONG","LOU","LU","LV","LUAN","LVE","LUN","LUO","M","MA","MAI","MAN","MANG","MAO","ME","MEI","MEN","MENG","MI","MIAN","MIAO","MIE","MIN","MING","MIU","MO","MOU","MU","N","NA","NAI","NAN","NANG","NAO","NE","NEI","NEN","NENG","NI","NIAN","NIANG","NIAO","NIE","NIN","NING","NIU","NONG","NOU","NU","NV","NUAN","NVE","NUN","NUO","O","OU","PA","PAI","PAN","PANG","PAO","PEI","PEN","PENG","PI","PIAN","PIAO","PIE","PIN","PING","PO","POU","PU","QI","QIA","QIAN","QIANG","QIAO","QIE","QIN","QING","QIONG","QIU","QU","QUAN","QUE","QUN","RAN","RANG","RAO","RE","REN","RENG","RI","RONG","ROU","RU","RUA","RUAN","RUI","RUN","RUO","SA","SAI","SAN","SANG","SAO","SE","SEN","SENG","SHA","SHAI","SHAN","SHANG","SHAO","SHE","SHEN","SHENG","SHI","SHOU","SHU","SHUA","SHUAI","SHUAN","SHUANG","SHUI","SHUN","SHUO","SI","SONG","SOU","SU","SUAN","SUI","SUN","SUO","TA","TAI","TAN","TANG","TAO","TE","TENG","TI","TIAN","TIAO","TIE","TING","TONG","TOU","TU","TUAN","TUI","TUN","TUO","WA","WAI","WAN","WANG","WEI","WEN","WENG","WO","WU","XI","XIA","XIAN","XIANG","XIAO","XIE","XIN","XING","XIONG","XIU","XU","XUAN","XUE","XUN","YA","YAN","YANG","YAO","YE","YI","YIN","YING","YO","YONG","YOU","YU","YUAN","YUE","YUN","ZA","ZAI","ZAN","ZANG","ZAO","ZE","ZEI","ZEN","ZENG","ZHA","ZHAI","ZHAN","ZHANG","ZHAO","ZHE","ZHEN","ZHENG","ZHI","ZHONG","ZHOU","ZHU","ZHUA","ZHUAI","ZHUAN","ZHUANG","ZHUI","ZHUN","ZHUO","ZI","ZONG","ZOU","ZU","ZUAN","ZUI","ZUN","ZUO",""],_G={曾:"ZENG",沈:"SHEN",嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬤:"MO",嬷:"MO",蹒:"PAN",蹊:"XI",丬:"PAN",霰:"XIAN",莘:"XIN",豉:"CHI",饧:"XING",筠:"JUN",长:"CHANG",帧:"ZHEN",峙:"SHI",郍:"NA",芎:"XIONG",谁:"SHUI"},kc={PINYINS:xG,UNIHANS:NG,EXCEPTIONS:_G},SG="阿",TG="鿿",EG=1,mo=2,c0=3;let fo=null,Pc;function OG(e){e&&(typeof e=="function"&&(e=[e]),e.forEach&&e.forEach(t=>{typeof t=="function"&&t(kc)}))}function m4(e){return!e&&fo!==null||(typeof Intl=="object"&&Intl.Collator?(Pc=new Intl.Collator(["zh-Hans-CN","zh-CN"]),fo=Intl.Collator.supportedLocalesOf(["zh-CN"]).length===1):fo=!1),fo}function g4(e){const{UNIHANS:t}=kc,{PINYINS:n}=kc,{EXCEPTIONS:r}=kc,s={source:e};if(e in r)return s.type=mo,s.target=r[e],s;let o=-1,c;if(e.charCodeAt(0)<256)return s.type=EG,s.target=e,s;if(c=Pc.compare(e,SG),c<0)return s.type=c0,s.target=e,s;if(c===0)s.type=mo,o=0;else{if(c=Pc.compare(e,TG),c>0)return s.type=c0,s.target=e,s;c===0&&(s.type=mo,o=t.length-1)}if(s.type=mo,o<0){let u=0,d=t.length-1;for(;u<=d;){o=~~((u+d)/2);const h=t[o];if(c=Pc.compare(e,h),c===0)break;c>0?u=o+1:d=o-1}}return c<0&&o--,s.target=n[o],s.target||(s.type=c0,s.target=s.source),s}function _m(e){return typeof e!="string"||!m4()?e:e.split("").map(t=>g4(t))}const Mc={isSupported:m4,parse:_m,patchDict:OG,genToken:g4,convertToPinyin(e,t,n){return _m(e).map(r=>t&&r.type===mo?r.target.toLowerCase():r.target).join(n||"")}};function LG(e){e.EXCEPTIONS={嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬷:"MO",蹊:"XI",丬:"PAN",霰:"XIAN",豉:"CHI",饧:"XING",帧:"ZHEN",芎:"XIONG",谁:"SHUI",钶:"KE"},e.UNIHANS[91]="伕",e.UNIHANS[347]="仚",e.UNIHANS[393]="诌",e.UNIHANS[39]="婤",e.UNIHANS[50]="腠",e.UNIHANS[369]="攸",e.UNIHANS[123]="乯",e.UNIHANS[171]="刕",e.UNIHANS[102]="佝",e.UNIHANS[126]="犿",e.UNIHANS[176]="列",e.UNIHANS[178]="刢",e.UNIHANS[252]="娝",e.UNIHANS[330]="偸"}function AG(e){return typeof e!="function"?!1:e("伕").target==="FOU"&&e("仚").target==="XIA"&&e("诌").target==="ZHONG"&&e("婤").target==="CHONG"&&e("腠").target==="CONG"&&e("攸").target==="YONG"&&e("乯").target==="HOU"&&e("刕").target==="LENG"&&e("佝").target==="GONG"&&e("犿").target==="HUAI"&&e("列").target==="LIAO"&&e("刢").target==="LIN"&&e("钶").target==="E"}const Sm={patcher:LG,shouldPatch:AG};Mc.isSupported()&&Sm.shouldPatch(Mc.genToken)&&Mc.patchDict(Sm);const VG=a.defineComponent({name:"SelectTagInput",directives:{bkTooltips:sa},props:{selected:{type:Array,default:()=>[]},tagTheme:Tu(),placeholder:v.string.def(""),filterable:v.bool.def(!1),allowCreate:v.bool.def(!1),disabled:v.bool.def(!1),modelValue:v.any,collapseTags:v.bool.def(!1),behavior:ph()},emits:["update:modelValue","remove","enter","keydown"],setup(e,{emit:t}){const{resolveClassName:n}=xe(),r=a.inject(gd,null),{modelValue:s,collapseTags:o,selected:c}=a.toRefs(e),u=a.ref(s.value),d=a.ref(),h=a.ref(null),f=a.computed(()=>c.value.slice(h.value,c.value.length).map(L=>r==null?void 0:r.handleGetLabelByValue(L.value)).join(", "));a.watch(s,()=>{u.value=s.value}),a.watch([c,o],()=>{x()},{flush:"post"});const m=L=>{t("remove",L)},p=()=>{var L;(L=d.value)==null||L.focus()},y=()=>{var L;(L=d.value)==null||L.blur()},b=L=>{t("update:modelValue",L)},N=L=>{t("update:modelValue",L.target.value)},w=L=>{switch(L.code){case"Enter":{t("enter",L.target.value,L);break}}t("keydown",L.target.value,L)},C=a.ref([]),E=a.ref(),_=L=>{const P=C.value.map(I=>I==null?void 0:I.$el).filter(I=>!!I);return typeof L=="number"?P[L]:P},x=()=>{o.value&&(h.value=null,setTimeout(()=>{var I,A;const L=_(),P=L.findIndex((D,X)=>X?L[X-1].offsetTop!==D.offsetTop:!1);h.value=P>0?P:null,((I=L[h.value])==null?void 0:I.offsetTop)!==((A=E.value)==null?void 0:A.offsetTop)&&h.value>1&&(h.value-=1)}))},O=Cu(x,150),T=a.ref(),$=new ResizeObserver(()=>{O()});return a.onMounted(()=>{T.value&&$.observe(T.value)}),a.onBeforeUnmount(()=>{T.value&&$.unobserve(T.value)}),{collapseTagRef:E,tagWrapperRef:T,tagsRefs:C,select:r,overflowTagIndex:h,value:u,inputRef:d,overflowContent:f,handleRemoveTag:m,focus:p,blur:y,updateModelValue:b,handleInput:N,handleKeydown:w,resolveClassName:n}},render(){var s,o,c,u,d,h,f,m;const e=(o=(s=this.$slots)==null?void 0:s.prefix)==null?void 0:o.call(s),t=ze({[this.resolveClassName("select-tag")]:!0,[this.resolveClassName("select-tag--default")]:!0,"is-disabled":this.disabled,"collapse-tag":this.collapseTags,"has-prefix":!!e,"is-simplicity":this.behavior==="simplicity"}),n=ze({[this.resolveClassName("select-tag-wrapper")]:!0}),r={display:this.selected.length&&!this.filterable?"none":""};return a.createVNode("div",{ref:"tagWrapperRef",class:t},[(u=(c=this.$slots)==null?void 0:c.prefix)==null?void 0:u.call(c),a.createVNode("div",{class:n},[((h=(d=this.$slots).default)==null?void 0:h.call(d))??this.selected.map((p,y)=>a.createVNode(Po,{ref:b=>this.tagsRefs[y]=b,style:{display:this.collapseTags&&this.overflowTagIndex&&y>=this.overflowTagIndex?"none":""},theme:this.tagTheme,closable:!0,key:p.value,onClose:()=>this.handleRemoveTag(p.value)},{default:()=>{var b,N;return[((N=(b=this.$slots).tagRender)==null?void 0:N.call(b,p))??a.createVNode(Ap,{type:"tips"},{default:()=>{var w;return[(w=this.select)==null?void 0:w.handleGetLabelByValue(p.value)]}})]}})),a.withDirectives(a.createVNode(Po,{ref:"collapseTagRef",style:{display:this.overflowTagIndex&&this.collapseTags?"":"none"},class:this.resolveClassName("select-overflow-tag")},{default:()=>[a.createTextVNode("+"),this.selected.length-this.overflowTagIndex]}),[[a.resolveDirective("bk-tooltips"),{content:this.overflowContent,disabled:!this.overflowTagIndex||!this.collapseTags,extCls:this.resolveClassName("select-tooltips")}]]),a.createVNode("input",{ref:"inputRef",style:r,class:this.resolveClassName("select-tag-input"),disabled:this.disabled,placeholder:this.selected.length?"":this.placeholder,readonly:!this.filterable,type:"text",value:this.filterable?this.value:"",onInput:this.handleInput,onKeydown:this.handleKeydown},null)]),(m=(f=this.$slots)==null?void 0:f.suffix)==null?void 0:m.call(f)])}}),$G=a.defineComponent({name:"Select",directives:{clickoutside:kr},props:{modelValue:v.any,multiple:v.bool.def(!1),disabled:v.bool.def(!1),size:v.size().def(hh.DEFAULT),clearable:v.bool.def(!0),loading:v.bool.def(!1),filterable:v.bool.def(!0),remoteMethod:v.func,scrollHeight:v.number.def(204),minHeight:v.number,showAll:v.bool.def(!1),allOptionId:v.oneOfType([v.number,v.string]),showSelectAll:v.bool.def(!1),popoverMinWidth:v.number.def(0),showOnInit:v.bool.def(!1),multipleMode:v.oneOf(["default","tag"]).def("default"),tagTheme:Tu(),behavior:ph(),collapseTags:v.bool.def(!1),autoHeight:v.bool.def(!0),noDataText:v.string,noMatchText:v.string,loadingText:v.string,placeholder:v.string,searchPlaceholder:v.string,selectAllText:v.string,scrollLoading:v.bool.def(!1),allowCreate:v.bool.def(!1),popoverOptions:Object,customContent:v.bool.def(!1),list:v.arrayOf(v.any).def([]),idKey:v.string.def("value"),displayKey:v.string.def("label"),withValidate:v.bool.def(!0),showSelectedIcon:v.bool.def(!0),inputSearch:v.bool.def(!1),enableVirtualRender:v.bool.def(!1),allowEmptyValues:v.array.def([]),autoFocus:v.bool.def(!1),disableFocusBehavior:v.bool.def(!1),keepSearchValue:v.bool.def(!1),prefix:v.string,selectedStyle:rS(),filterOption:{type:Function},searchWithPinyin:v.bool.def(!0),highlightKeyword:v.bool.def(!1),trigger:{type:String,default:"default"}},emits:["update:modelValue","change","toggle","clear","scroll-end","focus","blur","tag-remove","select","deselect","search-change"],setup(e,{emit:t}){const n=ut("select"),{resolveClassName:r}=xe(),{modelValue:s,disabled:o,filterable:c,multiple:u,remoteMethod:d,loading:h,popoverMinWidth:f,showOnInit:m,multipleMode:p,allowCreate:y,customContent:b,showSelectedIcon:N,inputSearch:w,enableVirtualRender:C,showSelectAll:E,showAll:_,allOptionId:x,scrollHeight:O,list:T,displayKey:$,idKey:L,collapseTags:P,autoHeight:I,popoverOptions:A,allowEmptyValues:D,autoFocus:X,keepSearchValue:M,selectedStyle:W,filterOption:ne,searchWithPinyin:B,highlightKeyword:k,disableFocusBehavior:re,trigger:J}=a.toRefs(e),K=a.ref(null),F=a.computed(()=>e.noDataText===void 0?n.value.noData:e.noDataText),z=a.computed(()=>e.noMatchText===void 0?n.value.noMatchedData:e.noMatchText),Y=a.computed(()=>e.loadingText===void 0?n.value.loading:e.loadingText),te=a.computed(()=>e.placeholder===void 0?n.value.pleaseSelect:e.placeholder),ue=a.computed(()=>e.searchPlaceholder===void 0?n.value.enterKeywords:e.searchPlaceholder),ce=a.computed(()=>e.selectAllText===void 0?n.value.all:e.selectAllText),be=ur(),Z=a.ref(),me=a.ref(),ae=a.ref(),pe=a.ref(),G=a.ref(),fe=a.ref(),we=a.ref(new Map),le=a.computed(()=>[...we.value.values()].sort((_e,$e)=>_e.order-$e.order)),q=a.ref(new Map),se=a.ref([]),de=a.computed(()=>se.value.reduce((_e,$e)=>(_e[$e.value]=$e.label,_e),{})),U=a.ref(),ee=a.computed(()=>T.value.reduce((_e,$e)=>(_e[$e[L.value]]=$e[$.value],_e),{}));a.watch([we,T],()=>{Os()}),a.watch(s,()=>{var _e;Os(),e.withValidate&&((_e=be==null?void 0:be.validate)==null||_e.call(be,"change"))},{deep:!0}),a.watch(se,()=>{var _e;(_e=fe.value)==null||_e.updatePopover(null,oa.value)});const Ce=a.computed(()=>tt.value?T.value:T.value.filter(_e=>Pi(xs.value,String(_e[$.value]),_e))),j=a.computed(()=>o.value||h.value),ie=a.computed(()=>se.value.map(_e=>{var $e,Fe;return((Fe=($e=we.value)==null?void 0:$e.get(_e.value))==null?void 0:Fe.optionName)||ee.value[_e.value]||_e.label})),ve=a.computed(()=>{const _e=le.value.reduce(($e,Fe)=>(Fe.disabled||$e.push(Fe.optionID),$e),[]);return _e.length<=se.value.length&&_e.every($e=>se.value.some(Fe=>Fe.value===$e))}),Ae=a.computed(()=>{var _e;return se.value.length===1&&((_e=se.value[0])==null?void 0:_e.value)===x.value}),Ie=a.computed(()=>!!q.value.size),ke=a.computed(()=>!le.value.length),Ue=a.computed(()=>le.value.length&&le.value.every(_e=>!_e.visible)),tt=a.computed(()=>c.value&&typeof d.value=="function"),at=a.computed(()=>!!(ne.value&&typeof ne.value=="function")),qe=a.computed(()=>!(Mi.value||ke.value||Ue.value)||b.value),At=a.computed(()=>u.value&&E.value&&(!xs.value||!c.value)),gt=a.computed(()=>u.value&&_.value),Et=a.computed(()=>O.value-12-(At.value?32:0)),Ke=a.ref(32),Mt=a.computed(()=>C.value?Ce.value.length*Ke.value>Et.value:!1),Pa=a.computed(()=>Math.ceil(Et.value/Ke.value)),Di=a.computed(()=>Mi.value?Y.value:Ue.value||T.value.length&&!Ce.value.length?z.value:ke.value?F.value:""),ys=a.computed(()=>I.value?P.value&&!Zn.value:P.value),oa=a.computed(()=>_h({theme:`light ${r("select-popover")}`,trigger:"manual",width:ul.value,arrow:!1,placement:"bottom-start",isShow:Zn.value,reference:G.value,offset:4,popoverDelay:0,renderType:Su.AUTO},A.value)),{register:Ma,unregister:bs}=$0(we),{register:ws,unregister:Ii}=$0(q),{isHover:ki,setHover:ll,cancelHover:Ad}=kp(),Ra=a.ref(!1),cl=()=>{Ra.value||(Ra.value=!0,t("focus"))},Fa=()=>{Ra.value&&(Ra.value=!1,pl(),t("blur"))},{popperWidth:ul,isPopoverShow:Zn,hidePopover:dl,showPopover:fl,togglePopover:Vd}=jI({popoverMinWidth:f.value},me),Cs=()=>{J.value!=="manual"&&dl()},$d=()=>{J.value!=="manual"&&fl()},hl=a.computed(()=>c.value&&w.value&&Zn.value||y.value);a.watch(Zn,_e=>{t("toggle",Zn.value),_e?(document.addEventListener("keydown",Ls),setTimeout(()=>{ca(),ml(),Dd()},10)):(M.value||(Ns.value=""),document.removeEventListener("keydown",Ls))});const Dd=()=>{var $e,Fe,ht;if(Mt.value)return;const _e=(Fe=($e=ae.value)==null?void 0:$e.querySelectorAll)==null?void 0:Fe.call($e,".is-selected");(ht=_e==null?void 0:_e[0])==null||ht.scrollIntoView({block:"center"})},ml=()=>{var Fe;const _e=se.value[0],$e=we.value.get(_e==null?void 0:_e.value);$e&&!$e.disabled&&$e.visible?U.value=_e==null?void 0:_e.value:U.value=(Fe=le.value.find(ht=>!ht.disabled&&ht.visible))==null?void 0:Fe.optionID},Pi=(_e,$e,Fe={})=>{var ht,Mn;if(at.value)return!!ne.value(_e,{...Fe});if(B.value){const Cn=Mc.parse($e).map(_t=>_t.type===2?_t.target.toLowerCase():_t.target),As=Cn.reduce((_t,Ha)=>_t+Ha[0],"");return Cn.join("").indexOf(_e)!==-1||As.indexOf(_e)!==-1||((ht=Ws(String($e)))==null?void 0:ht.includes(Ws(_e)))}return(Mn=Ws(String($e)))==null?void 0:Mn.includes(Ws(_e))},Id=_e=>{c.value&&(_e?le.value.forEach($e=>{$e.visible=Pi(_e,String($e.optionName),{...$e.$props,...$e.$attrs})}):le.value.forEach($e=>{$e.visible=!0}))},{searchValue:Ns,customOptionName:la,curSearchValue:xs,searchLoading:Mi}=WI(tt.value?d.value:Id,ml);a.watch(Ns,()=>{t("search-change",Ns.value)});const Pn=_e=>{_e!==s.value&&(t("update:modelValue",_e,s.value),t("change",_e,s.value))},_s=()=>{j.value||J.value==="manual"||(cl(),Vd())},kd=_e=>{c.value&&(la.value=_e)},Ss=(_e,$e)=>{const Fe=String(_e);if(!y.value||!Fe)return;$e.stopPropagation(),$e.preventDefault();const ht=le.value.find(Cn=>Ws(String(Cn.optionName))===Ws(Fe));if(c.value&&ht){Ts(ht),la.value="";return}we.value.get(Fe)||(u.value?(se.value.push({value:Fe,label:Fe}),Pn(se.value.map(Cn=>Cn.value))):(se.value=[{value:Fe,label:Fe}],Pn(Fe),Cs()),la.value="")},Ts=_e=>{if(j.value||!_e)return;const $e=se.value.findIndex(Fe=>Fe.value===x.value);if($e>-1&&se.value.splice($e,1),u.value){const Fe=se.value.findIndex(ht=>ht.value===_e.optionID);Fe>-1?(se.value.splice(Fe,1),Pn(se.value.map(ht=>ht.value)),t("deselect",_e.optionID)):(se.value.push({value:_e.optionID,label:_e.optionName||_e.optionID}),Pn(se.value.map(ht=>ht.value)),t("select",_e.optionID),gl()),ca()}else se.value=[{label:_e.optionName||_e.optionID,value:_e.optionID}],c.value&&y.value&&(la.value=""),Pn(_e.optionID),t("select",_e.optionID),Cs(),Fa()},gl=()=>{var _e;["tag"].includes(p.value)&&hl.value&&((_e=G.value)==null||_e.updateModelValue(""))},ca=()=>{re.value||setTimeout(()=>{var _e,$e,Fe;!w.value&&!y.value?(_e=pe.value)==null||_e.focus():p.value==="tag"?($e=G.value)==null||$e.focus():(Fe=Z.value)==null||Fe.focus()},0)},pl=()=>{setTimeout(()=>{var _e,$e;p.value==="tag"?(_e=G.value)==null||_e.blur():($e=Z.value)==null||$e.blur()},0)},vl=_e=>{_e.stopPropagation(),se.value=[],gl(),Pn(u.value?[]:""),t("clear",u.value?[]:""),Cs()},yl=()=>{U.value=""},Pd=()=>{var _e;if(ve.value)se.value=[];else{const $e=new Map;le.value.forEach(Fe=>{Fe.disabled||$e.has(Fe.optionID)||$e.set(Fe.optionID,Fe.optionName||Fe.optionID)}),(_e=T.value)==null||_e.forEach(Fe=>{Fe.disabled||$e.has(Fe[L.value])||$e.set(Fe[L.value],Fe[$.value])}),se.value=Array.from($e.keys()).map(Fe=>({value:Fe,label:$e.get(Fe)}))}Pn(se.value.map($e=>$e.value)),ca()},Md=()=>{if(!gt.value)return;se.value.findIndex($e=>$e.value===x.value)>-1?se.value=[]:se.value=[{value:x.value,label:n.value.all}],Pn(se.value.map($e=>$e.value)),ca()},Rd=_e=>{const{scrollTop:$e,clientHeight:Fe,scrollHeight:ht}=_e.target;$e+Fe===ht&&t("scroll-end")},Fd=_e=>{if(j.value)return;const $e=se.value.findIndex(Fe=>Fe.value===_e);$e>-1&&(se.value.splice($e,1),Pn(se.value.map(Fe=>Fe.value)),t("tag-remove",_e))},Es=_e=>{var Fe,ht;let $e=_e;if(typeof $e=="object"){for(const Mn of we.value.keys())if(o4(Mn,$e)){$e=Mn;break}}return((ht=(Fe=we.value)==null?void 0:Fe.get($e))==null?void 0:ht.optionName)||ee.value[$e]||de.value[$e]||$e},Os=()=>{Array.isArray(s.value)?se.value=[...s.value.map(_e=>({value:_e,label:Es(_e)}))]:s.value||D.value.includes(s.value)?se.value=[{value:s.value,label:Es(s.value)}]:se.value=[]},bl=_e=>{se.value=_e.map($e=>({label:$e[$.value],value:$e[L.value]}))},Ls=_e=>{var ht,Mn,Cn,As;if(!Zn.value||Mt.value)return;const $e=le.value.filter(_t=>!_t.disabled&&_t.visible),Fe=$e.findIndex(_t=>_t.optionID===U.value);switch(_e.code){case"ArrowUp":case"ArrowDown":{_e.preventDefault();let _t=0;_e.code==="ArrowDown"?_t=Fe>=$e.length-1?0:Fe+1:_t=Fe===0?$e.length-1:Fe-1,GI((ht=$e[_t])==null?void 0:ht.$el,ae.value)||(Cn=(Mn=$e[_t])==null?void 0:Mn.$el)==null||Cn.scrollIntoView(),U.value=(As=$e[_t])==null?void 0:As.optionID;break}case"Backspace":{if(!u.value||!se.value.length||la.value.length||_e.target===pe.value)return;se.value.pop(),Pn(se.value.map(_t=>_t.value));break}case"Enter":{const{value:_t}=_e.target;if(y.value&&_t||_e.target===pe.value)return;const Ha=we.value.get(U.value);Ts(Ha);break}}},Hd=({event:_e})=>{var Fe;const{target:$e}=_e;(Fe=me.value)!=null&&Fe.contains($e)||me.value===$e||(Cs(),Fa())};return a.provide(gd,a.reactive({multiple:u,selected:se,activeOptionValue:U,showSelectedIcon:N,selectedStyle:W,curSearchValue:xs,highlightKeyword:k,register:Ma,unregister:bs,registerGroup:ws,unregisterGroup:Ii,handleOptionSelected:Ts,handleGetLabelByValue:Es})),a.onMounted(()=>{Os(),setTimeout(()=>{m.value&&$d(),X.value&&ca()})}),{t:n,selected:se,isInput:hl,options:le,isDisabled:j,selectedLabel:ie,isPopoverShow:Zn,isHover:ki,popperWidth:ul,inputRef:Z,triggerRef:me,contentRef:ae,searchRef:pe,selectTagInputRef:G,popoverRef:fe,searchLoading:Mi,isOptionsEmpty:ke,isSearchEmpty:Ue,isFocus:Ra,isShowSelectContent:qe,curContentText:Di,isGroup:Ie,searchValue:Ns,curSearchValue:xs,customOptionName:la,isShowAll:gt,isShowSelectAll:At,virtualHeight:Et,filterList:Ce,isCollapseTags:ys,popoverConfig:oa,isAllSelected:ve,isAll:Ae,focusInput:ca,setHover:ll,cancelHover:Ad,handleFocus:cl,handleBlur:Fa,handleTogglePopover:_s,handleClear:vl,hidePopover:dl,showPopover:fl,toggleSelectAll:Pd,toggleAll:Md,handleOptionSelected:Ts,handleClickOutside:Hd,handleScroll:Rd,handleDeleteTag:Fd,handleInputChange:kd,handleSelectedAllOptionMouseEnter:yl,localLoadingText:Y,localPlaceholder:te,localSearchPlaceholder:ue,localSelectAllText:ce,resolveClassName:r,handleCreateCustomOption:Ss,handlePopoverShown:()=>{var _e;(_e=K.value)==null||_e.scrollTo(0,1)},virtualLineHeight:Ke,isEnableVirtualRender:Mt,preloadItemCount:Pa,virtualRenderRef:K,setSelected:bl}},render(){const e=ze({[`${this.resolveClassName("select")}`]:!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable,[this.size]:!0,[this.behavior]:!0}),t=()=>{var h,f,m;return this.loading?a.createVNode(La,{class:"spinner",loading:!0,mode:"spin",size:"mini",theme:"primary"},null):this.clearable&&this.isHover&&this.selected.length&&!this.isDisabled?a.createVNode(bn,{class:"clear-icon",onClick:this.handleClear},null):(h=this.$slots)!=null&&h.suffix?a.createVNode("span",{class:"angle-down"},[(m=(f=this.$slots)==null?void 0:f.suffix)==null?void 0:m.call(f)]):a.createVNode(Ti,{class:"angle-down"},null)},n=()=>{var h;return this.prefix?()=>a.createVNode("div",{class:`${this.resolveClassName("select--prefix-area")}`},[a.createVNode("span",null,[this.prefix])]):(h=this.$slots)!=null&&h.prefix?()=>{var f,m;return(m=(f=this.$slots)==null?void 0:f.prefix)==null?void 0:m.call(f)}:void 0},r=()=>{if(this.isShowSelectAll)return a.createVNode("li",{class:this.resolveClassName("select-option"),onClick:this.toggleSelectAll,onMouseenter:this.handleSelectedAllOptionMouseEnter},[this.selectedStyle==="checkbox"&&a.createVNode(sn,{class:this.resolveClassName("select-checkbox"),indeterminate:!this.isAllSelected&&!!this.selected.length&&!this.isAll,modelValue:this.isAllSelected},null),this.t.selectAll])},s=()=>{var h;if(this.isShowAll)return a.createVNode("div",{class:this.resolveClassName("select-all")},[a.createVNode("div",{class:["wrapper",this.selected.length===1&&((h=this.selected[0])==null?void 0:h.value)===this.allOptionId?"active":""],onClick:this.toggleAll},[a.createVNode(id,{class:"select-all-icon"},null),a.createVNode("span",null,[this.t.all])])])},o=()=>{var h,f,m;return this.multipleMode==="tag"?a.createVNode(VG,{ref:"selectTagInputRef",modelValue:this.customOptionName,"onUpdate:modelValue":p=>this.customOptionName=p,behavior:this.behavior,collapseTags:this.isCollapseTags,disabled:this.isDisabled,filterable:this.isInput,placeholder:this.localPlaceholder,selected:this.selected,tagTheme:this.tagTheme,onEnter:this.handleCreateCustomOption,onRemove:this.handleDeleteTag},{prefix:n(),default:((h=this.$slots)==null?void 0:h.tag)&&(()=>{var p;return(p=this.$slots)==null?void 0:p.tag({selected:this.selected})}),tagRender:((f=this.$slots)==null?void 0:f.tagRender)&&(p=>{var y;return(y=this.$slots)==null?void 0:y.tagRender(p)}),suffix:()=>t()}):a.createVNode($a,a.mergeProps({ref:"inputRef",behavior:this.behavior,disabled:this.isDisabled,modelValue:this.isInput?this.customOptionName:this.selectedLabel.join(","),placeholder:this.isInput?this.selectedLabel.join(",")||this.localPlaceholder:this.localPlaceholder,readonly:!this.isInput,selectReadonly:!0,size:this.size,stopPropagation:!1,type:"text",withValidate:!1,onEnter:this.handleCreateCustomOption,onInput:this.handleInputChange},this.prefix?{prefix:this.prefix}:null),{...typeof((m=this.$slots)==null?void 0:m.prefix)=="function"?{prefix:()=>{var p,y;return(y=(p=this.$slots)==null?void 0:p.prefix)==null?void 0:y.call(p)}}:null,suffix:()=>t()})},c=()=>{var h,f;return a.createVNode("div",{ref:"triggerRef",style:{height:this.autoHeight&&this.collapseTags?"32px":""},class:this.resolveClassName("select-trigger"),onClick:this.handleTogglePopover,onMouseenter:this.setHover,onMouseleave:this.cancelHover},[((f=(h=this.$slots)==null?void 0:h.trigger)==null?void 0:f.call(h,{selected:this.selected}))||o()])},u=()=>this.isEnableVirtualRender?a.createVNode($i,{ref:"virtualRenderRef",height:this.virtualHeight,lineHeight:this.virtualLineHeight,list:this.filterList,preloadItemCount:this.preloadItemCount,scrollbar:{enabled:!0,size:"small"}},{default:({data:h})=>{var m,p;const f=((m=this.$slots)==null?void 0:m.optionRender)||((p=this.$slots)==null?void 0:p.virtualScrollRender);return h.map(y=>a.createVNode(iu,{id:y[this.idKey],key:y[this.idKey],name:y[this.displayKey]},typeof f=="function"?{default:()=>f({item:y})}:null))}}):this.filterList.map(h=>{var m,p;const f=((m=this.$slots)==null?void 0:m.optionRender)||((p=this.$slots)==null?void 0:p.virtualScrollRender);return a.createVNode(iu,{id:h[this.idKey],key:h[this.idKey],name:h[this.displayKey]},typeof f=="function"?{default:()=>f({item:h})}:null)}),d=()=>{var h,f,m,p;return a.createVNode("div",{ref:"contentRef",class:this.resolveClassName("select-content-wrapper")},[s(),this.filterable&&!this.inputSearch&&a.createVNode("div",{class:this.resolveClassName("select-search-wrapper")},[a.createVNode(vs,{width:16,height:16,class:"icon-search"},null),a.withDirectives(a.createVNode("input",{ref:"searchRef",class:this.resolveClassName("select-search-input"),"onUpdate:modelValue":y=>this.searchValue=y,placeholder:this.localSearchPlaceholder},null),[[a.vModelText,this.searchValue]])]),!this.isShowSelectContent&&a.createVNode("div",{class:this.resolveClassName("select-empty")},[this.searchLoading&&a.createVNode(La,{class:"mr5",loading:!0,mode:"spin",size:"mini",theme:"primary"},null),a.createVNode("span",null,[this.curContentText])]),a.createVNode("div",{class:this.resolveClassName("select-content")},[a.createVNode("div",{style:{maxHeight:`${this.scrollHeight}px`,minHeight:`${this.minHeight}px`},class:this.isEnableVirtualRender?"":this.resolveClassName("select-dropdown"),onScroll:this.handleScroll},[a.createVNode("ul",{class:this.resolveClassName("select-options")},[r(),u(),(f=(h=this.$slots)==null?void 0:h.default)==null?void 0:f.call(h),this.scrollLoading&&a.createVNode("li",{class:this.resolveClassName("select-options-loading")},[a.createVNode(La,{class:"spinner mr5",loading:!0,mode:"spin",size:"mini",theme:"primary"},null),a.createVNode("span",null,[this.localLoadingText])])])]),((m=this.$slots)==null?void 0:m.extension)&&a.createVNode("div",{class:this.resolveClassName("select-extension")},[(p=this.$slots)==null?void 0:p.extension()])])])};return a.createVNode("div",{class:e},[a.createVNode(wn,a.mergeProps(this.popoverConfig,{ref:"popoverRef",onAfterShow:this.handlePopoverShown,onClickoutside:this.handleClickOutside}),{default:()=>c(),content:()=>d()})])}}),A2=on($G,{Option:iu,Group:ZW});function DG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const IG=e=>{const{proxy:t}=a.getCurrentInstance(),n=a.ref(t.limit);a.watch(()=>t.limit,c=>{n.value=c}),a.watch(()=>t.limitList,c=>{a.nextTick(()=>{c.includes(n.value)||([n.value]=c)})},{immediate:!0});const r=c=>{n.value=c},{resolveClassName:s}=xe();return{limit:n,render:({isFirst:c,isLast:u})=>{let d;return t.showLimit?a.createVNode("div",{class:{[s("pagination-limit")]:!0,"is-first":c,"is-last":u}},[a.createVNode("div",null,[e.value.eachPage]),a.createVNode(A2,{class:`${s("pagination-limit-select")}`,clearable:!1,disabled:t.disabled,filterable:!1,modelValue:n.value,size:"small",withValidate:!1,onChange:r},DG(d=t.limitList.map((h,f)=>a.createVNode(iu,{id:h,key:`${f}_${h}`,name:`${h}`},null)))?d:{default:()=>[d]}),a.createVNode("div",null,[e.value.strip])]):null}}},Qa=5,kG=()=>{const{proxy:e}=a.getCurrentInstance(),t=a.ref(1),n=a.computed(()=>t.value===1),r=a.computed(()=>t.value===e.totalPageNum),s=a.ref(!1),o=a.ref(!1),c=a.computed(()=>{s.value=!1,o.value=!1;const b=[];if(e.totalPageNum<=Qa+2){for(let C=2;C<=e.totalPageNum-1;C++)b.push(C);return b}const N=Math.floor(Qa/2);e.totalPageNum>Qa&&(s.value=t.value-N>2,o.value=t.value+N<e.totalPageNum-1);const w=Math.min(e.totalPageNum-Qa,Math.max(2,t.value-N));for(let C=w;C<w+Qa;C++)b.push(C);return b});a.watch(()=>e.modelValue,b=>{a.nextTick(()=>{b>=1&&b<=e.totalPageNum?t.value=b:b<1?t.value=1:t.value=e.totalPageNum})},{immediate:!0}),a.nextTick(()=>{a.watch(()=>e.totalPageNum,b=>{t.value>b&&(t.value=b)})});const u=()=>{e.disabled||n.value||(t.value=t.value-1)},d=()=>{e.disabled||r.value||(t.value=t.value+1)},h=b=>{e.disabled||b!==t.value&&(t.value=b)},f=()=>{e.disabled||(t.value=Math.max(1,t.value-Qa))},m=()=>{e.disabled||(t.value=Math.min(e.totalPageNum,t.value+Qa))},{resolveClassName:p}=xe();return{current:t,render:({isFirst:b,isLast:N})=>a.createVNode("div",{class:{[`${p("pagination-list")}`]:!0,"is-first":b,"is-last":N}},[a.createVNode("div",{class:{[`${p("pagination-list-pre")}`]:!0,"is-disabled":n.value},onClick:u},[e.prevText||a.createVNode(lr,null,null)]),a.createVNode("div",{key:"1",class:{[`${p("pagination-list-item")}`]:!0,"is-active":t.value===1},onClick:()=>h(1)},[a.createTextVNode("1")]),s.value&&a.createVNode("div",{key:"pre-batch",class:`${p("pagination-list-pre-batch")}`,onClick:f},[a.createVNode(Vo,null,null)]),c.value.map(w=>a.createVNode("div",{key:w,class:{[`${p("pagination-list-item")}`]:!0,"is-active":t.value===w},onClick:()=>h(w)},[w])),o.value&&a.createVNode("div",{key:"next-batch",class:`${p("pagination-list-next-batch")}`,onClick:m},[a.createVNode(Vo,null,null)]),e.totalPageNum>1&&a.createVNode("div",{key:"last",class:{[`${p("pagination-list-item")}`]:!0,"is-active":t.value===e.totalPageNum},onClick:()=>h(e.totalPageNum)},[e.totalPageNum]),a.createVNode("div",{class:{[`${p("pagination-list-pre")}`]:!0,"is-disabled":r.value},onClick:d},[e.nextText||a.createVNode(Dn,null,null)])])}},PG=()=>{const{proxy:e}=a.getCurrentInstance(),t=a.ref(null),n=a.ref(!1),r=a.ref(1),s=a.ref(!1),o=a.computed(()=>r.value===1),c=a.computed(()=>r.value===e.totalPageNum);let u=0;const d=a.computed(()=>{const _=[];for(let x=1;x<=e.totalPageNum;x++)_.push(x);return _});a.watch(()=>e.modelValue,_=>{a.nextTick(()=>{_>=1&&_<=e.totalPageNum?r.value=_:_<1?r.value=1:r.value=e.totalPageNum,u=r.value})},{immediate:!0}),a.nextTick(()=>{a.watch(()=>e.totalPageNum,_=>{r.value>_&&(r.value=_)})});const h=()=>{e.disabled||o.value||(r.value=r.value-1)},f=()=>{e.disabled||c.value||(r.value=r.value+1)},m=()=>{e.disabled||(n.value=!0)},p=()=>{n.value=!1,s.value=!1,u!==r.value&&(r.value=u)},y=_=>{const x=_.target,O=Number(x.textContent);!O||O<1||O>e.totalPageNum||O===r.value||(u=O)},b=_=>{["Enter","NumpadEnter"].includes(_.code)&&(_.preventDefault(),p())},N=_=>{u=_,p()},w=_=>{s.value=_},{resolveClassName:C}=xe();return{current:r,render:()=>a.createVNode("div",{class:`${C("pagination-small-list")}`},[a.createVNode("div",{class:{[`${C("pagination-btn-pre")}`]:!0,"is-disabled":o.value},onClick:h},[a.createVNode(lr,null,null)]),a.createVNode(wn,{width:56,arrow:!1,boundary:"body",disabled:e.disabled,isShow:s.value,placement:"bottom",theme:"light",trigger:"click",onAfterHidden:()=>w(!1),onAfterShow:()=>w(!0)},{default:()=>a.createVNode("div",{class:{[`${C("pagination-picker")}`]:!0,"is-focused":n.value}},[a.createVNode("span",{ref:t,class:`${C("pagination-editor")}`,contenteditable:!e.disabled,innerHTML:String(r.value),spellcheck:"false",onBlur:p,onFocus:m,onInput:y,onKeydown:b},[r.value]),a.createVNode("span",null,[a.createTextVNode("/")]),a.createVNode("span",{class:`${C("pagination-small-list-total")}`},[e.totalPageNum])]),content:()=>a.createVNode("div",{class:`${C("pagination-picker-list")}`},[d.value.map(_=>a.createVNode("div",{key:_,class:{item:!0,"is-actived":_===r.value},onClick:()=>N(_)},[_]))])}),a.createVNode("div",{class:{[`${C("pagination-btn-next")}`]:!0,"is-disabled":c.value},onClick:f},[a.createVNode(Dn,null,null)])])}},MG=e=>({isFirst:t,isLast:n})=>{const{props:r}=a.getCurrentInstance();if(!r.showTotalCount)return null;const{resolveClassName:s}=xe();return a.createVNode("div",a.mergeProps({class:{[`${s("pagination-total")}`]:!0,"is-first":t,"is-last":n}},{disabled:r.disabled}),[e.value.total,a.createVNode("div",{class:`${s("pagination-total-num")}`},[r.count]),e.value.strip])},RG={modelValue:v.number.def(1),count:v.number.def(0).isRequired,limit:v.number.def(10),limitList:v.arrayOf(Number).def([10,20,50,100]),showLimit:v.bool.def(!0),type:v.oneOf(["default","compact"]).def("default"),location:v.oneOf(["left","right"]).def("right"),align:v.oneOf(["left","center","right"]).def("left"),small:v.bool.def(!1),showTotalCount:v.bool.def(!0),prevText:v.string,nextText:v.string,disabled:v.bool.def(!1),layout:v.custom(e=>{const t={total:!0,list:!0,limit:!0};return e.some(n=>t[n])},"layout 的值只支持 * total、list、limit *").def(["total","list","limit"])},FG=a.defineComponent({name:"Pagination",props:RG,emits:["update:modelValue","change","update:limit","limitChange"],setup(e,t){const n=ut("pagination"),r=a.ref(0),{count:s,limit:o}=a.toRefs(e),c=MG(n),{current:u,render:d}=kG(),{current:h,render:f}=PG(),{limit:m,render:p}=IG(n);a.watch([s,m,o],([b,N])=>{const w=Math.ceil(b/N);r.value=w<1?1:w},{immediate:!0}),a.watch(u,b=>{t.emit("update:modelValue",b),t.emit("change",b)}),a.watch(h,b=>{e.small&&(t.emit("update:modelValue",b),t.emit("change",b))}),a.watch(m,b=>{t.emit("limitChange",b)});const{resolveClassName:y}=xe();return{totalPageNum:r,renderTotal:c,renderList:d,renderLimit:p,renderSmallList:f,resolveClassName:y}},render(){const e=ze({[`${this.resolveClassName("pagination")}`]:!0,[`is-align-${this.align}`]:!0,"is-disabled":this.disabled}),t={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return a.createVNode("div",{class:e},[this.layout.map((n,r)=>t[n]({isFirst:r===0,isLast:r===this.layout.length-1}))])}}),V2=Qe(FG);function HG(){return Pe("trigger",{}).def("hover")}const BG={trigger:HG(),title:v.string.def(""),content:v.string.def(""),confirmText:v.string.def(""),cancelText:v.string.def(""),placement:gh().def(Lo.TOP_START),theme:v.string.def("light"),width:v.oneOfType([v.string,v.number]).def("auto")},zG=a.defineComponent({name:"PopConfirm",props:BG,emits:["confirm","cancel"],setup(e,{emit:t}){const n=a.ref(!1),r=ut("popConfirm");function s(d){n.value=!1,t("confirm"),d.stopPropagation()}function o(d){n.value=!1,t("cancel"),d.stopPropagation()}const{resolveClassName:c}=xe();return{popoverRef:a.ref(null),visible:n,t:r,resolveClassName:c,ensure:s,cancel:o}},render(){const e=()=>this.title?a.createVNode("div",{class:`${this.resolveClassName("pop-confirm-title")}`},[typeof this.$slots.icon=="function"?a.createVNode("span",{class:`${this.resolveClassName("pop-confirm-icon")}`},[this.$slots.icon()]):null,a.createVNode("span",null,[this.title])]):"";return a.createVNode(wn,{ref:"popoverRef",width:this.width,extCls:`${this.resolveClassName("pop-confirm-box")}`,isShow:this.visible,placement:this.placement,theme:this.theme,trigger:this.trigger,onAfterShow:()=>this.visible=!0},{default:()=>this.$slots.default(),content:()=>a.createVNode("div",{class:`${this.resolveClassName("pop-confirm")}`},[typeof this.$slots.content=="function"?a.createVNode(a.Fragment,null,[e(),this.$slots.content()]):a.createVNode(a.Fragment,null,[e(),a.createVNode("div",{class:`${this.resolveClassName("pop-confirm-content")}`},[this.content])]),a.createVNode("div",{class:`${this.resolveClassName("pop-confirm-footer")}`},[a.createVNode(Ht,{size:"small",theme:"primary",onClick:this.ensure},{default:()=>[this.confirmText||this.t.ok]}),a.createVNode(Ht,{size:"small",onClick:this.cancel},{default:()=>[this.cancelText||this.t.cancel]})])])})}}),p4=Qe(zG),UG=a.defineComponent({name:"Popover2",setup(){return()=>a.createVNode("code",null,["<bk-popover2></bk-popover2>已经合并为<bk-popover></bk-popover>,请替换为<bk-popover></bk-popover>"])}}),v4=Qe(UG),jG={list:v.array.def([]),controllable:v.bool.def(!1),showSteps:v.bool.def(!1),curProcess:v.number.def(0),displayKey:v.string.def("content"),extCls:v.string},WG=a.defineComponent({name:"Process",props:jG,emits:["update:curProcess","click"],setup(e,{emit:t}){const n=ut("process"),r=ut("lang"),s=a.ref([]),o=a.ref(0),c=()=>{var h;s.value.splice(0,s.value.length,{content:n.value.step1},{content:n.value.step2},{content:n.value.step3},{content:n.value.step4}),(h=e.list)!=null&&h.length&&s.value.splice(0,s.value.length,...e.list)};a.watch(()=>r.value,()=>{c()});const u=async h=>{try{e.controllable&&h!==e.curProcess&&(t("update:curProcess",h),t("click",h))}catch(f){console.warn(f)}};a.onMounted(c);const{resolveClassName:d}=xe();return{defaultProcessList:s,paddingBottom:o,jumpTo:u,resolveClassName:d}},render(){const e=this.resolveClassName("process"),t=ze({[`${this.extCls}`]:!!this.extCls},`${e}`),n=u=>u.status==="loading",r=u=>u.status==="error",s=u=>this.curProcess>=u+1||this.defaultProcessList[u].status==="done",o=u=>u.icon?u.icon:"",c=(u,d)=>{if(u===this.curProcess-1&&n(d))return a.createVNode(qo,{class:`${this.resolveClassName("icon")} ${this.resolveClassName("process-icon")} icon-loading`},null);if(u===this.curProcess-1&&r(d))return a.createVNode(an,{class:`${this.resolveClassName("process-icon")} icon-error`},null);if(u===this.curProcess-1&&o(d))return a.createVNode("span",{class:`${this.resolveClassName("process-icon-custom")}`},[a.createVNode(d.icon,null,null)]);if(s(u))return a.createVNode(ps,{class:`${this.resolveClassName("process-icon-done")}`},null)};return a.createVNode("div",{class:t},[a.createVNode("ul",{style:{paddingBottom:`${this.paddingBottom}px`}},[this.defaultProcessList.map((u,d)=>a.createVNode("li",{style:{cursor:this.controllable?"pointer":""},class:{success:this.curProcess>=d+1,current:n(u)&&d===this.curProcess-1,error:r(u)&&d===this.curProcess-1},onClick:()=>{this.jumpTo(d+1)}},[a.createVNode("div",null,[a.createVNode("span",{class:"display"},[u[this.displayKey]]),c(d,u)])]))])])}}),y4=Qe(WG),GG=(e,{attrs:t,slots:n})=>{const{resolveClassName:r}=xe(),{width:s,percent:o,strokeWidth:c,color:u,strokeLinecap:d,theme:h,type:f,bgColor:m,titleStyle:p}=t,y=c||6,b=s||126,N={width:typeof b=="number"?`${b}px`:b,height:typeof b=="number"?`${b}px`:b,fontSize:`${b*.15+6}px`},w=50-y/2,C=f==="dashboard",E=Math.PI*2*w,_=C&&.75||1,x=`${-1*E*(1-_)/2}px`,O="stroke-dasharray 0.6s ease 0s, stroke 0.6s ease",T={strokeDasharray:`${E*_}px, ${E}px`,strokeDashoffset:x},$={strokeDasharray:`${E*_*(o/100)}px, ${E}px`,strokeDashoffset:x,transition:O},L=`
383
383
  M 50 50
384
384
  m 0 ${C?"":"-"}${w}
385
385
  a ${w} ${w} 0 1 1 0 ${C?"-":""}${w*2}
386
386
  a ${w} ${w} 0 1 1 0 ${C?"":"-"}${w*2}
387
- `,P={d:L,stroke:m||"#f5f5f5","stroke-linecap":d,"stroke-width":y,"fill-opacity":"0",class:"process-circle-trail",style:T},I={d:L,stroke:u||"#13ce66","stroke-linecap":d,"stroke-width":o>0&&y||0,"fill-opacity":"0",class:`process-circle-path ${r(`${h}-circle-trail`)}`,style:$};return a.createVNode("div",{style:N,class:"progress-outer-circle"},[a.createVNode("svg",{viewBox:"0 0 100 100"},[a.createVNode("path",P,null),a.createVNode("path",I,null)]),a.createVNode("span",{style:p,class:"progress-circle-text"},[n==null?void 0:n.default()])])},KG=(e,{attrs:t,slots:n})=>{const{resolveClassName:r}=xe(),{percent:s,strokeWidth:o,size:c,color:u,titleStyle:d,showText:h,textInside:f,theme:m}=t,p={height:`${o}px`,lineHeight:`${o}px`},y={width:`${s}%`,background:u,animationDuration:"3s"},b=(N=!0)=>(h||n.default)&&(N&&f||!N&&!f)?n==null?void 0:n.default():null;return a.createVNode("div",{class:"progress-outer"},[a.createVNode("div",{style:p,class:`${r(`progress-${c||"normal"}`)} progress-bar`},[a.createVNode("div",{style:y,class:{"progress-inner":!0,[`${r(`${m}`)}`]:!0}},[a.createVNode("div",{style:d,class:"inner-text"},[b()])])]),b(!1)])};function Tm(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const YG={extCls:v.string,type:nS(),percent:v.number.def(0),theme:v.theme().def(_u.PRIMARY),size:v.size(),width:v.number.def(126),strokeWidth:v.number,strokeLinecap:tS(),textInside:v.bool.def(!1),showText:v.bool.def(!0),color:v.string,bgColor:v.string,fixed:v.number.validate(e=>e>=0&&e<=20).def(0),format:v.func.def(e=>`${e}%`),titleStyle:v.object.def({fontSize:"16px",verticalAlign:"middle"})},XG=a.defineComponent({name:"Progress",props:YG,setup(){const{resolveClassName:e}=xe();return{resolveClassName:e}},methods:{validPercent(e){return!e||e<0?0:e>100?100:e},renderProcessInfo(){var u;const{showText:e,format:t,percent:n,textInside:r,titleStyle:s,fixed:o}=this.$props,c=t((u=this.validPercent(n))==null?void 0:u.toFixed(o));return(e||this.$slots.default)&&r?this.$slots.default?this.$slots.default():a.createVNode("span",null,[c]):!e||r?null:a.createVNode("span",{style:typeof c=="string"?s:void 0,class:"progress-text"},[this.$slots.default?this.$slots.default():c])}},render(){const e=this.renderProcessInfo(),t={...this.$props,percent:this.validPercent(this.percent)};let n=a.createVNode(KG,t,Tm(e)?e:{default:()=>[e]});(this.type==="circle"||this.type==="dashboard")&&(n=a.createVNode(GG,t,Tm(e)?e:{default:()=>[e]}));const r={class:ze({extCls:!!this.extCls},`${this.resolveClassName("progress")} ${this.resolveClassName(`progress-${this.type}`)}`)};return a.createVNode("div",r,[n])}}),Fo=Qe(XG),b4=Symbol("RadioGroup");function w4(){const e=a.ref(!1);return[e,{blur:()=>{e.value=!1},focus:()=>{e.value=!0}}]}const C4=()=>{const e=a.getCurrentInstance(),{props:t,emit:n}=e,r=a.inject(b4,Eg),s=!Og(r),o=a.ref(!1),c=a.ref(!1),u=a.ref("default"),d=a.computed(()=>s&&r.props.disabled?!0:t.disabled);s?(u.value=r.props.size,a.watch(()=>r.props.modelValue,m=>{o.value=m===t.label},{immediate:!0})):a.watch(()=>t.modelValue,m=>{m!==""&&(o.value=m===t.label)},{immediate:!0});const h=(m=!0)=>{o.value=m},f=m=>{if(d.value||c.value)return;const p=m.target,y=p.checked;Promise.resolve(s?r.props.beforeChange(y):t.beforeChange(y)).then(b=>{if(b){o.value=p.checked;const N=o.value?t.label:"";return n("update:modelValue",N),n("change",N),s&&r.handleChange(e.proxy),a.nextTick(()=>{p.checked!==o.value&&(p.checked=o.value)}),Promise.resolve(!0)}return Promise.reject()}).catch(()=>{p.checked=o.value}).finally(()=>{c.value=!1})};return a.onMounted(()=>{s&&r.register(e.proxy)}),a.onBeforeUnmount(()=>{s&&r.unregister(e.proxy)}),{size:u,isChecked:o,isDisabled:d,setChecked:h,handleChange:f}},qG={name:v.string.def(""),label:v.oneOfType([v.bool,v.string,v.number]).isRequired,modelValue:v.oneOfType([v.bool,v.string,v.number]).def(""),checked:v.bool.def(!1),disabled:v.bool.def(!1),beforeChange:Ci().def(()=>!0)},JG=a.defineComponent({name:"Radio",props:qG,emits:{"update:modelValue":e=>e!==void 0,change:e=>e!==void 0},setup(){const[e,{blur:t,focus:n}]=w4(),{size:r,isChecked:s,isDisabled:o,setChecked:c,handleChange:u}=C4(),{resolveClassName:d}=xe();return{size:r,isFocused:e,isChecked:s,isDisabled:o,setChecked:c,handleBlur:t,handleFocus:n,handleChange:u,resolveClassName:d}},render(){const e=ze({[`${this.resolveClassName("radio")}`]:!0,[`${this.resolveClassName("radio")}-${this.size}`]:!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked}),t=()=>!this.label&&!this.$slots.default?null:a.createVNode("span",{class:`${this.resolveClassName("radio-label")}`},[this.$slots.default?this.$slots.default():this.label]);return a.createVNode("label",{class:e,tabindex:"0"},[a.createVNode("input",{class:`${this.resolveClassName("radio-input")}`,checked:this.isChecked,disabled:this.isDisabled,tabindex:"0",type:"radio",value:this.label,onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus},null),t()])}}),ZG={name:v.string.def(""),label:v.oneOfType([v.bool,v.string,v.number]).isRequired,modelValue:v.oneOfType([v.bool,v.string,v.number]).def(""),checked:v.bool.def(!1),disabled:v.bool.def(!1),size:v.size(),beforeChange:Ci().def(()=>!0)},QG=a.defineComponent({name:"RadioButton",props:ZG,emits:{"update:modelValue":e=>e!==void 0,change:e=>e!==void 0},setup(){const[e,{blur:t,focus:n}]=w4(),{size:r,isChecked:s,isDisabled:o,setChecked:c,handleChange:u}=C4(),{resolveClassName:d}=xe();return{isFocused:e,size:r,isChecked:s,isDisabled:o,setChecked:c,handleBlur:t,handleFocus:n,handleChange:u,resolveClassName:d}},render(){const e=ze({[`${this.resolveClassName("radio-button")}`]:!0,[`${this.resolveClassName("radio-button")}-${this.size}`]:!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked}),t=()=>!this.label&&!this.$slots.default?null:a.createVNode("div",{class:`${this.resolveClassName("radio-button-label")}`},[this.$slots.default?this.$slots.default():this.label]);return a.createVNode("label",{class:e,tabindex:"0"},[a.createVNode("input",{class:`${this.resolveClassName("radio-button-input")}`,checked:this.isChecked,disabled:this.isDisabled,tabindex:"0",type:"radio",value:this.label,onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus},null),t()])}}),eK={name:v.string.def(""),modelValue:v.oneOfType([v.bool,v.string,v.number]),disabled:v.bool,withValidate:v.bool.def(!0),type:v.oneOf(["tab","capsule","card"]).def("tab"),size:v.size(),beforeChange:Ci().def(()=>!0)},tK=a.defineComponent({name:"RadioGroup",props:eK,emits:{"update:modelValue":e=>e!==void 0,change:e=>e!==void 0},setup(e,t){const n=ur(),r=[],s=d=>{r.push(d)},o=d=>{const h=r.indexOf(d);h>-1&&r.splice(h,1)},c=d=>{const h=d.label;r.forEach(f=>{f!==d&&f.setChecked(!1)}),t.emit("update:modelValue",h),t.emit("change",h)};a.provide(b4,{props:e,register:s,unregister:o,handleChange:c}),a.watch(()=>e.modelValue,()=>{var d;e.withValidate&&((d=n==null?void 0:n.validate)==null||d.call(n,"change"))}),a.onMounted(()=>{e.modelValue!==""&&r.forEach(d=>{d.setChecked(d.label===e.modelValue)})});const{resolveClassName:u}=xe();return{resolveClassName:u}},render(){var e;return a.createVNode("div",{class:[`${this.resolveClassName("radio-group")}`,`${this.resolveClassName(`radio-${this.type}`)}`]},[(e=this.$slots)==null?void 0:e.default()])}}),lu=on(JG,{Group:tK,Button:QG}),yc=a.defineComponent({name:"Star",props:{rate:v.number.def(0),width:v.number.def(16),height:v.number.def(16),editable:v.bool.def(!0),hoverRate:v.number.def(0),max:v.number.def(5)},emits:["chooseRate","changeHover"],setup(e,{emit:t}){const n=h=>{if(!e.editable)return;const f=h+1;t("chooseRate",f)},r=(h,f)=>{if(!e.editable)return;const m=h+1;t("changeHover",m),a.nextTick(()=>{f.target.classList.add(o("is-hover"))})},s=h=>{e.editable&&a.nextTick(()=>{h.target.classList.remove(o("is-hover"))})},{resolveClassName:o}=xe(),c=h=>ze({[`${o("is-select")}`]:h<Math.floor(u.value),[`${o("is-edit")}`]:e.editable,[`${o("rate-star")}`]:!0}),u=a.computed(()=>e.hoverRate||e.rate),d={width:`${e.width}px`,height:`${e.height}px`,minWidth:`${e.width}px`};return()=>a.createVNode("p",{class:`${o("rate-stars")}`},[Array(e.max).fill(1).map((h,f)=>a.createVNode("svg",{style:d,class:c(f),viewBox:"0 0 64 64",x:"0px",y:"0px",onClick:()=>n(f),onMouseenter:m=>r(f,m),onMouseleave:m=>s(m)},[a.createVNode("g",{transform:"translate(-143.000000, -635.000000)"},[a.createVNode("g",{transform:"translate(83.000000, 114.000000)"},[a.createVNode("g",{transform:"translate(15.000000, 384.000000)"},[a.createVNode("g",{transform:"translate(29.000000, 137.000000)"},[a.createVNode("polygon",{class:"st1",points:"48,53 28.2,63.9 32,40.8 16,24.4 38.1,21 48,-0.1 57.8,21 79.9,24.4 63.9,40.8 67.7,63.9"},null)])])])])]))])}}),nK=a.defineComponent({name:"Rate",components:{star:yc},props:{modelValue:v.number.def(0),size:v.size(),editable:v.bool.def(!0),withValidate:v.bool.def(!0)},emits:["change","hover-change","update:modelValue"],setup(e,{emit:t}){const{resolveClassName:n}=xe(),r=ur(),s=a.ref(0),o=p=>{e.editable&&(t("update:modelValue",p),t("change",p))},c=p=>{s.value=p,t("hover-change",p)},u=ze({[`${n("rate")}`]:!0}),h={small:{width:12,height:12},large:{width:18,height:18},huge:{width:24,height:24}}[e.size]||{width:16,height:16},f=a.computed(()=>{const p=Math.floor(e.modelValue),y=(h.width+3)*p,b=h.width*(e.modelValue-p);return{width:`${y+b}px`}}),m={width:h.width,height:h.height};return a.watch(()=>e.modelValue,()=>{var p;e.withValidate&&((p=r==null?void 0:r.validate)==null||p.call(r,"change"))}),()=>a.createVNode("p",{class:u},[e.editable?a.createVNode(yc,a.mergeProps({"hover-rate":s.value,rate:e.modelValue,onChangeHover:c,onChooseRate:o,onMouseleave:()=>c(0)},m),null):[a.createVNode(yc,a.mergeProps({style:f.value,class:`${n("score-real")}`,editable:!1,rate:5},m),null),a.createVNode(yc,a.mergeProps({editable:!1,rate:0},m),null)]])}}),N4=Qe(nK),rK=a.defineComponent({name:"ResizeLayout",props:{placement:v.placement().def("left"),min:v.number.def(3),max:v.number.def(1/0),triggerWidth:v.number.def(5),triggerOffset:v.number.def(3),initialDivide:v.oneOfType([String,Number]).def("20%"),immediate:v.bool,disabled:v.bool,collapsible:v.bool,isCollapsed:v.bool.def(!1),autoMinimize:v.oneOfType([Boolean,Number]).def(!1),border:v.bool.def(!0)},emits:["before-resize","resizing","after-resize","collapse-change"],setup(e,{emit:t}){const{placement:n,initialDivide:r,triggerOffset:s,triggerWidth:o,max:c,min:u,immediate:d,autoMinimize:h,collapsible:f,isCollapsed:m}=a.toRefs(e),p=a.ref(m.value),y=a.ref(!0),b=a.ref(!1),N=a.ref(null),w=a.ref({}),C=a.ref(null),E=a.ref(null),_=a.ref(null),x=a.ref(null),O=a.computed(()=>["left","right"].includes(n.value)),T=a.computed(()=>O.value?"width":"height"),$=a.computed(()=>{let F=r.value;return u.value!==3&&typeof F!="number"?`${u.value}px`:(typeof F=="number"&&(F=F<=u.value?`${u.value}px`:`${F}px`),F)}),L=a.computed(()=>f.value&&m.value?{[T.value]:"0px"}:{[T.value]:$.value}),P=a.computed(()=>({[`margin-${n.value}`]:`${s.value-o.value}px`,[T.value]:`${o.value}px`})),I=a.computed(()=>h.value?typeof h.value=="boolean"?50:h.value:0),A=()=>{const F=C.value.getBoundingClientRect();N.value=O.value?F.width:F.height};let D=new ResizeObserver(A);const X=()=>{switch(E.value.style.visibility="visible",n.value){case"left":E.value.style.inset=`0 auto auto ${w.value.aside.width}px`;break;case"right":E.value.style.inset=`0 ${w.value.aside.width}px auto auto`;break;case"top":E.value.style.inset=`${w.value.aside.height}px auto auto 0`;break;case"bottom":E.value.style.inset=`auto auto ${w.value.aside.height}px 0`;break}},M=()=>{_.value.style.display="block",_.value.style.cursor=O.value?"col-resize":"row-resize"},W=F=>Math.min(c.value,Math.max(u.value,F),N.value-o.value),ne=F=>{t("before-resize",F);const z=x.value.getBoundingClientRect();w.value=Object.freeze({mouse:{clientX:F.clientX,clientY:F.clientY},aside:{width:z.width,height:z.height}}),M(),d.value||X(),document.onselectstart=()=>!1,document.ondragstart=()=>!1;const Y=ce=>{t("resizing",ce)},te=ce=>{let be;switch(n.value){case"top":be=ce.clientY-w.value.mouse.clientY;break;case"right":be=w.value.mouse.clientX-ce.clientX;break;case"bottom":be=w.value.mouse.clientY-ce.clientY;break;case"left":be=ce.clientX-w.value.mouse.clientX}const Z=w.value.aside[T.value]+be,me=W(Z)+s.value,ae=`${me}px`;d.value?x.value.style[T.value]=ae:E.value.style[n.value]=ae,Y(me)},ue=()=>{if(E.value.style.visibility="hidden",_.value.style.display="none",document.removeEventListener("mousemove",te),document.removeEventListener("mouseup",ue),document.onselectstart=null,document.ondragstart=null,a.nextTick(()=>{B(),t("after-resize",parseFloat(E.value.style[n.value]))}),d.value)return!1;x.value.style[T.value]=E.value.style[n.value]};document.addEventListener("mousemove",te),document.addEventListener("mouseup",ue)},B=()=>{if(!h.value)return!1;const F=x.value.getBoundingClientRect();if(b.value=p.value=F[T.value]<=I.value,!b.value)return y.value=!0,!1;re(),a.nextTick(()=>{x.value.setAttribute(`data-${T.value}`,L.value[T.value])})},k=F=>{p.value=typeof F=="boolean"?F:!p.value,re(),t("collapse-change",p.value)},re=()=>{const F=x.value.getBoundingClientRect();J(!p.value),p.value?(x.value.setAttribute(`data-${T.value}`,`${F[T.value]}px`),x.value.style[T.value]=e.collapsible?"0px":"5px"):(y.value=!0,x.value.style[T.value]=x.value.getAttribute(`data-${T.value}`)||$.value)},J=F=>{const z=()=>{y.value=F,x.value.style.transition="",x.value.removeEventListener("transitionend",z)};x.value.addEventListener("transitionend",z),x.value.style.transition=`${T.value} cubic-bezier(0.4, 0, 0.2, 1) .3s`};a.watch(m,()=>{p.value=m.value,k(p.value)}),a.onMounted(()=>{D.observe(C.value)}),a.onBeforeUnmount(()=>{C.value&&(D.unobserve(C.value),D=null)});const{resolveClassName:K}=xe();return{collapsed:p,asideContentVisible:y,minimized:b,limitMax:N,state:w,vertical:O,cssPropKey:T,bkResizeLayoutRef:C,resizeProxyRef:E,resizeMaskRef:_,asideRef:x,triggerStyle:P,asideStyle:L,handleMousedown:ne,setCollapse:k,resolveClassName:K}},render(){var t,n,r,s,o,c;const e=[`${this.resolveClassName("resize-layout")}`,`${this.resolveClassName(`resize-layout-${this.placement}`)}`,{[`${this.resolveClassName("resize-layout-collapsed")}`]:this.collapsed,[`${this.resolveClassName("resize-layout-border")}`]:this.border,[`${this.resolveClassName("resize-layout-collapsible")}`]:this.collapsible}];return a.createVNode("div",{ref:"bkResizeLayoutRef",class:e},[a.createVNode("aside",{ref:"asideRef",style:this.asideStyle,class:`${this.resolveClassName("resize-layout-aside")}`},[a.withDirectives(a.createVNode("div",{class:`${this.resolveClassName("resize-layout-aside-content")}`},[(n=(t=this.$slots).aside)==null?void 0:n.call(t)]),[[a.vShow,this.asideContentVisible]]),a.withDirectives(a.createVNode("i",{style:this.triggerStyle,class:`${this.resolveClassName("resize-trigger")}`,onMousedown:a.withModifiers(this.handleMousedown,["left"])},null),[[a.vShow,!this.disabled&&(!this.collapsed||this.autoMinimize)]]),a.withDirectives(a.createVNode("i",{ref:"resizeProxyRef",class:[`${this.resolveClassName("resize-proxy")}`,this.placement]},null),[[a.vShow,!this.collapsed||this.autoMinimize]]),this.collapsible&&(((s=(r=this.$slots)["collapse-trigger"])==null?void 0:s.call(r))||(this.collapsed?a.createVNode(Dn,{width:26,height:26,class:`${this.resolveClassName("resize-collapse")}`,onClick:this.setCollapse},null):a.createVNode(lr,{width:26,height:26,class:`${this.resolveClassName("resize-collapse")}`,onClick:this.setCollapse},null)))]),a.createVNode("main",{class:`${this.resolveClassName("resize-layout-main")}`},[(c=(o=this.$slots).main)==null?void 0:c.call(o)]),a.createVNode("div",{ref:"resizeMaskRef",class:`${this.resolveClassName("resize-mask")}`},null)])}}),x4=Qe(rK);var u0=null;function aK(e){return u0||(u0=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),u0(e)}var d0=null;function sK(e){d0||(d0=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),d0(e)}function iK(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function bc(e,t){t===void 0&&(t={});var n=document.createElement(e);return Object.keys(t).forEach(function(r){n[r]=t[r]}),n}function _4(e,t,n){var r=window.getComputedStyle(e,n||null)||{display:"none"};return r[t]}function Z0(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(_4(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var oK='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',Q0=0,Rc=null;function lK(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=dK.bind(e));var n=e.__resize_listeners__;if(!n){if(e.__resize_listeners__=[],window.ResizeObserver){var r=e.offsetWidth,s=e.offsetHeight,o=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===r&&e.offsetHeight===s)||cu(e)}),c=Z0(e),u=c.detached,d=c.rendered;e.__resize_observer_triggered__=u===!1&&d===!1,e.__resize_observer__=o,o.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){cu(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(Q0||(Rc=iK(oK)),fK(e),e.__resize_rendered__=Z0(e).rendered,window.MutationObserver){var h=new MutationObserver(e.__resize_mutation_handler__);h.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=h}}e.__resize_listeners__.push(t),Q0++}function cK(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",$2),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--Q0&&Rc&&Rc.parentNode.removeChild(Rc)}}function uK(e){var t=e.__resize_last__,n=t.width,r=t.height,s=e.offsetWidth,o=e.offsetHeight;return s!==n||o!==r?{width:s,height:o}:null}function dK(){var e=Z0(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(D2(this),this.addEventListener("scroll",$2,!0)),this.__resize_rendered__=t,cu(this))}function $2(){var e=this;D2(this),this.__resize_raf__&&sK(this.__resize_raf__),this.__resize_raf__=aK(function(){var t=uK(e);t&&(e.__resize_last__=t,cu(e))})}function cu(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function fK(e){var t=_4(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=bc("div",{className:"resize-triggers"}),r=bc("div",{className:"resize-expand-trigger"}),s=bc("div"),o=bc("div",{className:"resize-contract-trigger"});r.appendChild(s),n.appendChild(r),n.appendChild(o),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:s,contract:o},D2(e),e.addEventListener("scroll",$2,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function D2(e){var t=e.__resize_triggers__,n=t.expand,r=t.expandChild,s=t.contract,o=s.scrollWidth,c=s.scrollHeight,u=n.offsetWidth,d=n.offsetHeight,h=n.scrollWidth,f=n.scrollHeight;s.scrollLeft=o,s.scrollTop=c,r.style.width=u+1+"px",r.style.height=d+1+"px",n.scrollLeft=h,n.scrollTop=f}var Kn=(e=>(e.ALL="all",e.NEED_KEY="need-key",e))(Kn||{});const S4=Symbol("SEARCH_SELECT_PROVIDER_KEY"),hK=e=>{a.provide(S4,e)},T4=()=>a.inject(S4);var Sa=(e=>(e.DEFAULT="default",e.EDIT="edit",e))(Sa||{});const E4=/(\||,|、|\r\n|\n)/gm,O4=/^(\||,|、|\r\n|\n)$/;var bi=(e=>(e.AND="&",e.OR="|",e))(bi||{});class Js{constructor(t,n="default"){Le(this,"id");Le(this,"name");Le(this,"values",[]);Le(this,"condition");Le(this,"logical");Le(this,"nameRenderKey",bo(4));this.searchItem=t,this.type=n,this.id=t.id,this.name=t.name,this.logical=t.logical||"|",this.type=n}get multiple(){return!!this.searchItem.multiple}get placeholder(){return this.searchItem.placeholder||""}get children(){return this.searchItem.children||[]}get validate(){return!this.searchItem.noValidate}get inputInnerHtml(){var t;return this.isSpecialType()?this.name:`${this.keyInnerHtml}${((t=this.values)==null?void 0:t.map(n=>n.name).join(` ${this.logical} `))||""}`}get inputInnerText(){var t;return this.isSpecialType()?this.name:`${this.keyInnerText}${((t=this.values)==null?void 0:t.map(n=>n.name).join(` ${this.logical} `))||""}`}get keyInnerHtml(){return this.isSpecialType()?this.name:this.name?`${this.name}: `:""}get keyInnerText(){return this.isSpecialType()?this.name:this.name?`${this.name}: `:""}get showLogical(){return!!this.searchItem.showLogicalPanel}get isCustomMenu(){return this.searchItem.isCustomMenu}isSpecialType(){return["text","condition"].includes(this.type)}addValue(t){if(this.nameRenderKey=bo(4),this.multiple){const n=this.values.findIndex(r=>r.id===t.id);if(n>-1){this.values.splice(n,1);return}this.values.push(t);return}this.values=[t]}str2Values(t){const n=t==null?void 0:t.split(this.logical).map(s=>s.trim()).filter(s=>s);if(!(n!=null&&n.length))return[];const r=s=>this.children.find(o=>o.name===s);if(!this.multiple){const s=n.join(` ${this.logical} `).trim(),o=r(s);return[{id:o?o.id:s,name:o?o.name:s,disabled:!!(o!=null&&o.disabled)}]}return n.map(s=>{const o=this.values.find(u=>u.name===s);if(o)return o;const c=r(s);return{id:c?c.id:s,name:c?c.name:s,disabled:!!(c!=null&&c.disabled)}})}addValues(t,n=!0){const r=t.split(E4).filter(u=>u.trim()&&!O4.test(u)),s=n?this.values.map(u=>u.name):[],c=[...r,...s].filter(u=>u.trim()).join(this.logical);this.values=this.str2Values(c)}getValue(t){return this.values.find(n=>n.id===t)||this.values.find(n=>n.name===t)}toValue(){var n;const t={id:this.id,name:this.name};return(n=this.values)!=null&&n.length&&(t.values=this.values.map(r=>({id:r.id,name:r.name})),this.multiple&&this.logical!=="|"&&(t.logical=this.logical)),this.type&&this.type!=="default"&&(t.type=this.type),t}toValueKey(){return JSON.stringify(this.toValue())}isInValueList(t){return this.children.some(n=>n.id===(t==null?void 0:t.id))}}const mK=a.defineComponent({name:"SearchSelectMenu",props:{list:{type:Array},hoverId:String,keyword:{type:String,default:""},multiple:{type:Boolean,default:!1},selected:{type:Array,default:()=>[]},conditions:{type:Array},footerBtns:{type:Array,default:()=>[]},showLogical:{type:Boolean,default:!0},logical:{type:String,default:bi.OR}},emits:["selectItem","selectCondition","footerClick","update:logical"],setup(e,{emit:t}){const n=ut("searchSelect"),{resolveClassName:r}=xe(),s=a.computed(()=>e.footerBtns===void 0||e.footerBtns.length===0?[{id:"confirm",name:n.value.ok},{id:"cancel",name:n.value.cancel,disabled:!1}]:e.footerBtns);function o(y){t("selectItem",y)}function c(y){t("selectCondition",y)}function u(y){t("footerClick",y)}const d=a.computed(()=>{var y,b;return(y=e.list)!=null&&y.length?(b=e.keyword)!=null&&b.length?e.list.filter(N=>N.name.toLocaleLowerCase().includes(e.keyword.toLocaleLowerCase())):e.list:[]});function h(y){if(!y)return y;let{keyword:b}=e;const N=b.length;if(!(b!=null&&b.trim().length)||!y.toLocaleLowerCase().includes(b.toLocaleLowerCase()))return y;const w=[];let C=-1;return b=b.replace(/([.*/]{1})/gim,"\\$1"),y.replace(new RegExp(`${b}`,"igm"),(E,_)=>(w.length===0&&_!==0?w.push(y.slice(0,_)):C>=0&&w.push(y.slice(C+E.length,_)),w.push(a.createVNode("span",{class:"is-keyword"},[E])),C=_,E)),C>=0&&w.push(y.slice(C+N)),w.length?w:y}function f(y){var b;return(b=y.value)!=null&&b.name?[a.createVNode("span",{class:"menu-name"},[y.name,a.createTextVNode(":")]),y.value.name]:h(y.name)}function m(y,b){y.stopPropagation(),y.preventDefault(),o(b)}function p(y){t("update:logical",y)}return{handleClick:o,handleClickCondition:c,handleClickFooterBtn:u,handleSelectedChange:m,handleLogicalChange:p,filterList:d,getSearchNode:f,localFooterBtns:s,resolveClassName:r,t:n}},render(){var n,r;const e=a.createVNode("ul",{class:"menu-content"},[(n=this.list)==null?void 0:n.map(s=>a.createVNode("li",{id:s.id,key:s.id,class:`menu-item ${s.disabled?"is-disabled":""} ${this.hoverId===s.id&&!s.disabled?"is-hover":""}`,tabindex:"-1",onClick:()=>!s.disabled&&this.handleClick(s)},[a.createVNode(a.Fragment,null,[this.multiple&&a.createVNode("span",{onClick:o=>this.handleSelectedChange(o,s)},[a.createVNode(sn,{class:"is-selected",modelValue:this.selected.includes(s.id)},null)]),this.getSearchNode(s)])]))]),t=()=>!this.showLogical||!this.multiple?e:a.createVNode("div",{class:"menu-content-wrapper"},[e,a.createVNode("div",{class:"menu-condition"},[a.createVNode("div",{class:"menu-condition-title"},[this.t.logical]),a.createVNode(lu,{label:"|",modelValue:this.logical,onChange:this.handleLogicalChange},{default:()=>[this.t.or,a.createTextVNode(" |")]}),a.createVNode(lu,{label:"&",modelValue:this.logical,onChange:this.handleLogicalChange},{default:()=>[this.t.and,a.createTextVNode(" &")]})])]);return a.createVNode("div",{class:this.resolveClassName("search-select-menu")},[!!((r=this.conditions)!=null&&r.length)&&a.createVNode("ul",{class:"menu-header"},[this.conditions.map(s=>a.createVNode("li",{key:s.id,class:`menu-header-item ${s.disabled?"is-disabled":""}`,onClick:()=>!s.disabled&&this.handleClickCondition(s)},[s.name]))]),t()])}}),L4=a.defineComponent({name:"SearchSelectInput",directives:{clickoutside:kr},props:{data:{type:Array,required:!0},showInputBefore:Boolean,showCondition:Boolean,clickOutside:Function,placeholder:String,conditions:{type:Array,default:()=>[]},defaultUsingItem:Object,mode:{type:String,default:Sa.DEFAULT},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["focus","add","delete","selectKey"],slots:Object,setup(e,{emit:t,expose:n}){const r=ut("searchSelect"),{resolveClassName:s}=xe(),o=a.ref(null),c=a.ref(null),u=a.ref(""),d=a.ref(!1),h=a.ref(!1),f=a.ref(!1),m=a.ref(e.defaultUsingItem),p=a.ref(""),y=a.ref(!1),b=Uo(100,z);let N=!1;const w=a.ref([]),C=a.ref([]),{editKey:E,onValidate:_,searchData:x}=T4(),O=a.computed(()=>{var q;return((q=m.value)==null?void 0:q.logical)||bi.OR});a.watch(E,()=>{e.mode===Sa.DEFAULT&&E.value&&(f.value=!1)}),a.watch([C,f],()=>{var se,de;f.value&&((se=C.value)==null?void 0:se.some(U=>!U.disabled))?N||(p.value=e.valueBehavior===Kn.NEED_KEY&&((de=C.value.find(U=>!U.disabled))==null?void 0:de.id)||"",N=!0,document.addEventListener("keydown",T)):(document.removeEventListener("keydown",T),N=!1,e.valueBehavior!==Kn.NEED_KEY&&(p.value=""))});function T(q){switch(q.code){case"ArrowDown":case"ArrowUp":$(q);break;case"Enter":case"NumpadEnter":L(q);break}}function $(q){var U;q.preventDefault(),(U=o.value)==null||U.blur();const se=C.value.length;let de=C.value.findIndex(ee=>ee.id===p.value);for(let ee=0;ee<se;ee++){de=(de+(q.code==="ArrowDown"?1:-1)+se)%se;const Ce=C.value[de];if(Ce&&!Ce.disabled){const j=document.getElementById(Ce.id);j==null||j.focus(),p.value=Ce.id;break}}}function L(q){var de;if(!N)return;q.preventDefault();const se=(de=C.value)==null?void 0:de.find(U=>U.id===p.value);se&&B(se)}function P(q){var se,de,U;if(!((se=c.value)!=null&&se.contains(q.target)||!((de=e.clickOutside)!=null&&de.call(e,q.target,c.value)))){if((U=m.value)!=null&&U.isCustomMenu){e.mode===Sa.EDIT&&(W().then(ee=>ee&&Z()),f.value=!1);return}if(e.mode===Sa.EDIT||m.value){m.value&&W().then(ee=>ee&&Z()),m.value||t("focus",!1);return}h.value=!1,f.value=!1,t("focus",h.value)}}let I=!1;function A(q){if(!I){if(d.value=!1,e.mode===Sa.EDIT&&m.value&&!h.value){const se=Array.from(o.value.querySelectorAll(`[data-type="${m.value.values.length?"value":m.value.type}"]`));if(!se.length)return;q==null||q.preventDefault();const de=document.createRange(),U=window.getSelection();de.selectNodeContents(se.at(-1)),U==null||U.removeAllRanges(),I=!0,setTimeout(()=>{I=!1},200),U.addRange(de),ce(!0,!1);return}z(),ce(!1,!h.value)}}function D(q){q.preventDefault();const se=q.clipboardData.getData("text").trim();if(!m.value){const de=me(se);if(de){m.value=de,ce(!0,!0);return}u.value=se.split(E4).filter(U=>U.trim()&&!O4.test(U)).join(` ${O.value} `),o.value.innerText=u.value,ce(),b();return}m.value.addValues(se),b()}function X(q){const se=q.target.innerText.trim();if(!m.value){u.value=se,b();return}u.value=m.value.isSpecialType()?se:se.replace(m.value.name,"").replace(":","").trim(),b()}function M(q){var se;switch(q.code){case"Enter":case"NumpadEnter":if(e.valueBehavior===Kn.NEED_KEY&&C.value.some(de=>de.id===p.value)){!m.value&&((se=u.value)!=null&&se.length)&&q.preventDefault();return}W(q).then(de=>de&&Z());break;case"Backspace":ne(q);default:d.value=!1;break}}async function W(q){var de,U,ee;return q==null||q.preventDefault(),await new Promise(Ce=>setTimeout(Ce,0)),m.value?u.value?await te():!((de=m.value)!=null&&de.isSpecialType())&&((U=m.value)==null?void 0:U.values.length)<1?(d.value=!d.value,!1):(await F()&&((ee=m.value)!=null&&ee.isCustomMenu&&(f.value=!1),be()),!1):!u.value||e.valueBehavior===Kn.NEED_KEY?void 0:await Y()}function ne(q){var se,de,U;if(!m.value&&!u.value){p.value="",t("delete"),setTimeout(z,16);return}if((se=m.value)!=null&&se.values.length){if(m.value.type==="text"||!((de=m.value.children)!=null&&de.length))return;q.preventDefault();const ee=window.getSelection();if((ee==null?void 0:ee.rangeCount)>0){let ie=ee.getRangeAt(0).startContainer;for(;ie&&ie.parentNode!==o.value;)ie=ie.parentNode;const ve=((U=ie==null?void 0:ie.dataset)==null?void 0:U.index)||-1;m.value.values.splice(+ve,1),u.value="",ce(!1,!1);return}}else u.value||(m.value=null,u.value="",z());_("")}async function B(q,se){var de,U,ee,Ce,j;if((de=q.value)!=null&&de.id){const ie=new Js({...q,id:q.realId??q.id},se);if(ie.addValues(q.value.name,!1),e.valueBehavior===Kn.NEED_KEY&&p.value){be(ie),ce(!0),p.value="";return}if(m.value=ie,!await F(m.value.values)){m.value=null;return}be(m.value),ce(!0),p.value="";return}if(!m.value||((U=m.value)==null?void 0:U.type)==="condition"){m.value=new Js(q,se??((ee=m.value)==null?void 0:ee.type)),u.value="";const ie=((Ce=m.value)==null?void 0:Ce.type)==="condition";ie||t("selectKey",{id:q.id,name:q.name,values:[]}),ie&&be(),f.value=ie||!!m.value.children.length,ce(e.valueBehavior===Kn.NEED_KEY&&!!p.value);return}m.value&&(m.value.addValue(q),a.nextTick(ae)),await F(m.value.values)&&(m.value.multiple||be(),e.valueBehavior===Kn.NEED_KEY&&((j=m.value)!=null&&j.multiple)&&ce())}function k(q){B(q,"condition")}function re(q){var se;switch(q.id){case"confirm":if(!((se=m.value)!=null&&se.values.length))return;u.value="",W();break;case"cancel":m.value.values=[],f.value=!1;break}}function J(q){m.value&&(m.value.logical=q)}async function K(q,se){if(typeof e.validateValues=="function"){let de="";try{de=await e.validateValues(q??null,se)}catch{de=!1}if(typeof de=="string"||de===!1)return _(de||"校验错误"),!1}return _(""),!0}async function F(q){if(!m.value)return await K(null,q);const{searchItem:se,validate:de,values:U}=m.value;return de&&typeof e.validateValues=="function"?await K(se,q??U):(_(""),!0)}async function z(){var se,de,U,ee,Ce;let q=[];if(typeof e.getMenuList=="function"&&(!((se=e.data)!=null&&se.length)&&!m.value||m.value&&m.value.type!=="condition"&&(((de=m.value.searchItem)==null?void 0:de.async)===void 0||m.value.searchItem.async===!0))?(y.value=!0,q=await e.getMenuList((U=m.value)==null?void 0:U.searchItem,u.value).catch(()=>[]),y.value=!1):m!=null&&m.value?m.value.type==="condition"?q=e.conditions:(!((Ce=m.value.values)!=null&&Ce.length)||m.value.multiple||e.mode===Sa.EDIT)&&(q=m.value.children.filter(j=>j.name.toLocaleLowerCase().includes(u.value.toLocaleLowerCase()))):(ee=u.value)!=null&&ee.length?e.data.filter(j=>!j.isSelected).forEach(j=>{var ve,Ae;if(j.name.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())){q.push(j);const Ie=[];(ve=j.children)==null||ve.forEach(ke=>{Ie.push({...j,realId:j.id,id:bo(10),value:ke})}),!Ie.length&&!j.onlyRecommendChildren&&Ie.push({...j,realId:j.id,id:bo(10),value:{id:u.value,name:u.value}}),q.push(...Ie)}else{const Ie=[];(Ae=j.children)==null||Ae.forEach(ke=>{ke.name.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())&&Ie.push({...j,realId:j.id,id:bo(10),value:ke})}),!Ie.length&&!j.onlyRecommendChildren&&Ie.push({...j,value:{id:u.value,name:u.value}}),q.push(...Ie)}}):q=e.data.filter(j=>!j.isSelected).slice(),C.value=q,e.valueBehavior===Kn.NEED_KEY){const j=q.find(ie=>!ie.disabled);j&&(!p.value||p.value&&!q.some(ie=>ie.id===p.value))&&(p.value=j.id)}}async function Y(){const q=me(u.value),se=(q==null?void 0:q.values)||[{id:u.value,name:u.value}];if(await F(se))return t("add",q||new Js({...se[0]},"text")),u.value="",z(),!0}async function te(){let q=[];if(m.value.isSpecialType()){const de=me(u.value);de&&(m.value=de,q=de.values)}if(q=q.length?q:m.value.str2Values(u.value),!!await F(q))return m.value.type==="text"?(m.value.name=u.value,m.value.id=u.value):m.value.values=q,t("add",m.value),u.value="",m.value=null,ce(!0),!0}function ue(){if(!o.value)return;const q=document.createRange(),se=window.getSelection();q.selectNodeContents(o.value),q.collapse(!1),se.removeAllRanges(),se.addRange(q)}function ce(q=!1,se=!0){q&&setTimeout(z,16),h.value=!0,f.value=!0,d.value=!1,!e.getMenuList&&se&&a.nextTick(ue),t("focus",h.value)}function be(q){var de;t("add",q??m.value);const se=!((de=m.value)!=null&&de.isCustomMenu);m.value=null,u.value="",se&&(ce(!0,se),a.nextTick(Z))}function Z(){o.value&&(u.value="",a.nextTick(()=>o.value.innerText=""))}function me(q){const[se,de]=q.split(":");if(se!=null&&se.trim()){const U=x.value.find(ee=>ee.name===se.trim());if(U){const ee=new Js({...U},"default");return ee.addValues(de),ee}}}function ae(){var q;(q=u.value)!=null&&q.length&&(u.value="",Array.from(o.value.childNodes).forEach(de=>{var U;de.nodeType===Node.TEXT_NODE&&((U=de.textContent)!=null&&U.trim())&&o.value.removeChild(de)}))}function pe(){var q;(q=o.value)==null||q.focus()}async function G(){await W().then(q=>q&&Z()),f.value=!1,o.value.blur()}function fe(){u.value="",d.value=!1,f.value=!1,m.value=null,a.nextTick(Z)}function we(q){m.value.values=[{id:q,name:q}],W().then(se=>se&&Z())}function le(){m.value||(p.value="")}return n({inputFocusForWrapper:pe,inputEnterForWrapper:G,inputClearForWrapper:fe,handleInputFocus:A,isFocus:h,refleshMenuHover:le}),{popoverRef:c,inputRef:o,keyword:u,loading:y,remoteMenuList:w,menuList:C,menuHoverId:p,isFocus:h,usingItem:m,showPopover:f,showNoSelectValueError:d,debounceSetMenuList:b,documentArrowEvent:$,handleClickOutside:P,handleInputFocus:A,handleInputChange:X,handleInputPaste:D,handleLogicalChange:J,handleInputKeyup:M,handleSelectItem:B,handleSelectConditionItem:k,handleMenuFooterClick:re,resolveClassName:s,inputFocusForWrapper:pe,inputEnterForWrapper:G,inputClearForWrapper:fe,deleteInputTextNode:ae,customPanelSubmit:we,refleshMenuHover:le,t:r}},render(){var f,m;const{multiple:e,values:t,placeholder:n,inputInnerHtml:r,isCustomMenu:s}=this.usingItem||{},o=!((f=this.keyword)!=null&&f.length)&&!(t!=null&&t.length)&&n,c=this.loading||this.showNoSelectValueError||this.showPopover&&(!!s||!!((m=this.menuList)!=null&&m.length)),u=!this.usingItem&&this.showCondition,d=()=>{var p,y,b,N;return a.withDirectives(a.createVNode("div",{ref:"inputRef",class:{"div-input":!0,"input-before":this.showInputBefore&&!((p=this.keyword)!=null&&p.length),"input-after":o},contenteditable:!0,"data-placeholder":!r&&!this.keyword?this.placeholder:"","data-tips":n||"",spellcheck:"false",onFocus:this.handleInputFocus,onInput:this.handleInputChange,onKeydown:this.handleInputKeyup,onPaste:this.handleInputPaste},[((y=this.usingItem)==null?void 0:y.name)&&(this.usingItem.isSpecialType()?a.createVNode("span",{key:this.usingItem.nameRenderKey,"data-key":this.usingItem.name,"data-type":this.usingItem.type},[this.usingItem.name]):a.createVNode("span",{key:this.usingItem.nameRenderKey,style:{color:"#979BA5"},contenteditable:!1,"data-key":this.usingItem.name,"data-type":this.usingItem.type,onMousedown:w=>w.preventDefault()},[this.usingItem.name,a.createTextVNode(": ")])),(N=(b=this.usingItem)==null?void 0:b.values)==null?void 0:N.map((w,C)=>a.createVNode("span",{key:C,"data-id":w.id,"data-index":C,"data-key":w.name,"data-type":"value"},[w.name,C<this.usingItem.values.length-1?` ${this.usingItem.logical} `:""]))]),[[a.resolveDirective("clickoutside"),this.handleClickOutside]])},h=()=>{var p,y,b,N,w;return this.loading?a.createVNode("div",null,[this.t.loading]):this.showNoSelectValueError?a.createVNode("div",null,[this.t.filterQueryMustHasValue]):(p=this.usingItem)!=null&&p.isCustomMenu&&this.$slots.menu?a.createVNode("div",{ref:"popoverRef",class:this.resolveClassName("search-select-popover")},[this.$slots.menu({value:(y=this.usingItem.values)==null?void 0:y[0],id:this.usingItem.id,name:this.usingItem.name,onSubmit:this.customPanelSubmit})]):(b=this.menuList)!=null&&b.length?a.createVNode("div",{ref:"popoverRef",class:this.resolveClassName("search-select-popover")},[a.createVNode(mK,{conditions:u?this.conditions:[],hoverId:this.menuHoverId,keyword:this.keyword,list:this.menuList,logical:(N=this.usingItem)==null?void 0:N.logical,multiple:!!e,selected:(t==null?void 0:t.map(C=>C.id))||[],showLogical:(w=this.usingItem)==null?void 0:w.showLogical,onFooterClick:this.handleMenuFooterClick,onSelectCondition:this.handleSelectConditionItem,onSelectItem:this.handleSelectItem,"onUpdate:logical":this.handleLogicalChange},null)]):void 0};return a.createVNode(wn,{arrow:!1,disableOutsideClick:!0,isShow:c,placement:"bottom-start",theme:"light",trigger:"manual"},{default:d,content:h})}}),gK=a.defineComponent({name:"SearchSelected",props:{data:{type:Array,required:!0},selectedList:{type:Array,required:!0},overflowIndex:{type:Number,default:-1},conditions:{type:Array,default:()=>[]},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["delete","selectKey"],setup(e,{emit:t}){const n=a.ref(null),r=a.ref(null),{onEditClick:s,onEditEnter:o,onEditBlur:c,editKey:u}=T4();function d(b){t("delete",b)}function h(b,N,w){b.preventDefault(),b.stopPropagation(),s(N,w),t("selectKey",{id:N.id,name:N.name,values:N.values.slice()}),setTimeout(()=>n.value.handleInputFocus(),200)}function f(b,N){o(b,N)}function m(b){b||c()}function p(b){var N;return!((N=r.value)!=null&&N.contains(b))}function y(b){const N=new Js(b.searchItem,b.type);return N.values=b.values.slice(),N.logical=b.logical||bi.OR,N}return{inputRef:n,selectedInputRef:r,editKey:u,copySelectedItem:y,handleDeleteSelected:d,handleEditSelected:h,handleInputOutside:p,handleAddSelected:f,handleInputFocus:m}},render(){const e=(t,n)=>this.editKey===`${t.id}_${n}`?a.createVNode("div",{key:this.editKey.toString(),ref:"selectedInputRef",class:"selected-input"},[a.createVNode(L4,{key:this.editKey.toString(),ref:"inputRef",clickOutside:this.handleInputOutside,conditions:this.conditions,data:this.data,defaultUsingItem:this.copySelectedItem(t),getMenuList:this.getMenuList,mode:Sa.EDIT,showCondition:!1,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onAdd:r=>this.handleAddSelected(r,n),onFocus:this.handleInputFocus},{...this.$slots})]):a.createVNode("li",{key:`${t.id}_${n}`,class:`search-container-selected ${(this.overflowIndex>=0?n<this.overflowIndex:n>=0)?"":"hidden-selected"}`},[a.createVNode("span",{class:"selected-name",onClick:r=>this.handleEditSelected(r,t,n)},[t.inputInnerText]),a.createVNode(an,{class:"selected-clear",onClick:()=>this.handleDeleteSelected(n)},null)]);return a.createVNode(a.Fragment,null,[this.selectedList.map((t,n)=>[this.overflowIndex>=0&&n===this.overflowIndex&&a.createVNode("div",{class:"search-container-selected overflow-selected"},[a.createTextVNode("+"),this.selectedList.length-this.overflowIndex]),e(t,n)])])}}),f0=40,Em=6,Om=26,pK={data:{type:Array,default:()=>[]},modelValue:{type:Array,default:()=>[]},maxHeight:{type:Number,default:120},conditions:{type:Array,default:()=>[]},clearable:{type:Boolean,default:!0},placeholder:String,getMenuList:Function,validateValues:Function,uniqueSelect:{type:Boolean,default:!1},valueBehavior:{type:String,default:Kn.ALL,validator(e){return[Kn.ALL,Kn.NEED_KEY].includes(e)}}},vK=a.defineComponent({name:"SearchSelect",directives:{clickoutside:kr},props:pK,emits:["update:modelValue","search","selectKey"],slots:Object,setup(e,{emit:t}){const n=ut("searchSelect"),{resolveClassName:r}=xe(),s=a.computed(()=>e.conditions===void 0?[{id:"or",name:n.value.or},{id:"and",name:n.value.and}]:e.conditions),o=a.ref(null),c=a.ref(null),u=a.ref(!1),d=a.ref([]),h=a.ref(-1),f=Uo(32,E),m=a.ref(""),p=a.ref(""),y=a.shallowRef([]);a.watch(()=>e.data,()=>{var A;y.value=JSON.parse(JSON.stringify(e.data)),(A=y.value)==null||A.forEach(D=>{D.isSelected=e.uniqueSelect&&!!e.modelValue.some(X=>X.id===D.id)})},{immediate:!0}),a.watch(()=>e.modelValue,A=>{var X;if(!(A!=null&&A.length)){d.value=[],(X=y.value)==null||X.forEach(M=>{M.isSelected=!1});return}const D=[];A.forEach(M=>{var ne;const W=d.value.find(B=>B.id===M.id&&B.name===M.name);if((W==null?void 0:W.toValueKey())===JSON.stringify(M))W.values=M.values||[],W.logical=M.logical||bi.OR,D.push(W);else{let B=e.data.find(J=>J.id===M.id),k="default";B||(B=e.conditions.find(J=>J.id===M.id),B&&(k="condition")),!B&&!((ne=M.values)!=null&&ne.length)&&(k="text");const re=new Js(B||M,k);re.values=M.values||[],re.logical=M.logical||bi.OR,D.push(re)}}),d.value=D,y.value=JSON.parse(JSON.stringify(e.data||[])),y.value.forEach(M=>{M.isSelected=e.uniqueSelect&&!!D.some(W=>W.id===M.id)})},{immediate:!0,deep:!0}),a.onMounted(()=>{lK(c.value.querySelector(`.${r("search-select-container")}`),f)}),a.onBeforeUnmount(()=>{cK(c.value.querySelector(`.${r("search-select-container")}`),f)}),hK({onEditClick:b,onEditEnter:N,onEditBlur:w,onValidate:C,editKey:m,searchData:a.computed(()=>e.data),isClickOutside:O});function b(A,D){m.value=`${A.id}_${D}`}function N(A,D){const X=d.value.slice();X.splice(D,1,A),t("update:modelValue",X.map(M=>M.toValue())),m.value=""}function w(){m.value="",C("")}function C(A){p.value=A||""}function E(){if(u.value||d.value.length<1){h.value=-1;return}const A=c.value.querySelector(`.${r("search-select-container")}`),D=c.value.querySelector(".search-container").clientWidth-Em-2,X=A.querySelectorAll(".search-container-selected:not(.overflow-selected)");let M=0,W=0,ne=0;for(;W===0&&M<=D-f0&&ne<=X.length-1;){const B=X[ne];if(B.clientHeight>Om){h.value=ne;return}M+=B?B.clientWidth+Em:0,M>=D-f0&&(W=ne),ne+=1}if(W===X.length-1&&M<=D){h.value=-1;return}h.value=M>=D-f0?W:W-1}function _(){m.value||o.value.inputFocusForWrapper()}function x(){d.value=[],h.value=-1,o.value.inputClearForWrapper(),t("update:modelValue",[])}function O(A){var D;return!((D=c.value)!=null&&D.contains(A))}function T(A){const D=d.value.slice();D.push(A),C(""),t("update:modelValue",D.map(X=>X.toValue()))}function $(A){const D=d.value.slice();D.splice(typeof A=="number"?A:d.value.length-1,1),C(""),o.value.refleshMenuHover(),t("update:modelValue",D.map(X=>X.toValue()))}function L(A){var D;A&&(h.value=-1),A===!1&&((D=c.value.querySelector(`.${r("search-select-container")}`))==null||D.scrollTo(0,0)),u.value=A}function P(A){o.value.inputEnterForWrapper(),t("search",A)}function I(A){t("selectKey",A)}return{inputRef:o,wrapRef:c,isFocus:u,copyData:y,selectedList:d,overflowIndex:h,validateStr:p,onEditClick:b,onEditEnter:N,handleWrapClick:_,handleInputFocus:L,handleResize:E,handleClearAll:x,handleInputOutside:O,handleAddSelected:T,handleDeleteSelected:$,handleClickSearch:P,localConditions:s,resolveClassName:r,handleSelectedKey:I,t:n}},render(){var r,s;const e=`${this.isFocus?this.maxHeight:Om}px`,t=!!this.selectedList.length&&this.selectedList.slice(-1)[0].type!=="condition",n=Object.assign({},this.$slots.menu?{menu:o=>{var c,u;return(u=(c=this.$slots).menu)==null?void 0:u.call(c,o)}}:{});return a.createVNode("div",{ref:"wrapRef",class:this.resolveClassName("search-select")},[a.createVNode("div",{class:{[this.resolveClassName("search-select-container")]:!0,"is-focus":this.isFocus},onClick:this.handleWrapClick},[a.createVNode("div",{class:"search-prefix"},[(s=(r=this.$slots).prepend)==null?void 0:s.call(r)]),a.createVNode("div",{style:{maxHeight:e},class:"search-container"},[a.createVNode(gK,{conditions:this.localConditions,data:this.copyData,getMenuList:this.getMenuList,overflowIndex:this.overflowIndex,selectedList:this.selectedList,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onDelete:this.handleDeleteSelected,onSelectKey:this.handleSelectedKey},{...n}),a.createVNode("div",{class:"search-container-input"},[a.createVNode(L4,{ref:"inputRef",clickOutside:this.handleInputOutside,conditions:this.localConditions,data:this.copyData,getMenuList:this.getMenuList,placeholder:this.placeholder||this.t.pleaseSelect,showCondition:t,showInputBefore:!this.selectedList.length,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onAdd:this.handleAddSelected,onDelete:this.handleDeleteSelected,onFocus:this.handleInputFocus,onSelectKey:this.handleSelectedKey},{...n})])]),a.createVNode("div",{class:"search-nextfix"},[this.clearable&&!!this.selectedList.length&&a.createVNode(bn,{class:"search-clear",onClick:this.handleClearAll},null),this.$slots.append?this.$slots.append():a.createVNode(vs,{class:`search-nextfix-icon ${this.isFocus?"is-focus":""}`,onClick:this.handleClickSearch},null)])]),!!this.validateStr.length&&a.createVNode("div",{class:this.resolveClassName("search-select-tips")},[this.$slots.validate?this.$slots.validate():a.createVNode(a.Fragment,null,[a.createVNode(Qo,{class:"select-tips"},null),this.validateStr||""])])])}}),A4=Qe(vK);function yK(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const V4=$v(xd);V4.width.default="400";const bK=a.defineComponent({name:"Sideslider",inheritAttrs:!1,props:{...V4,title:v.string.def(""),direction:{type:String,default:"right",validator:e=>{const t=["left","right"];return t.indexOf(e)<0?(console.error(`direction property is not valid: '${e}',【${t.join(" | ")}】`),!1):!0}}},emits:["closed","update:isShow","shown","hidden","animation-end"],setup(e,{emit:t}){const n=a.useAttrs(),r=a.useSlots(),s=a.getCurrentInstance(),{resolveClassName:o}=xe(),c=async()=>{let h=!0;typeof e.beforeClose=="function"&&(h=await e.beforeClose()),h&&(t("update:isShow",!1),t("closed"),t("animation-end"))},u=()=>{t("shown")},d=()=>{t("hidden")};return()=>{const h={header:()=>{var m;return a.createVNode(a.Fragment,null,[a.createVNode("div",{class:`${o("sideslider-header")}`},[a.createVNode("div",{class:`${o("sideslider-close")}`,onClick:c},[e.direction==="left"?a.createVNode(lr,null,null):a.createVNode(Dn,null,null)]),a.createVNode("div",{class:`${o("sideslider-title")}`},[((m=r.header)==null?void 0:m.call(r))??e.title])])])},default:()=>{var m;return a.createVNode("div",{class:`${o("sideslider-content")}`},[(m=r.default)==null?void 0:m.call(r)])}};r.footer&&Object.assign(h,{footer:()=>a.createVNode("div",{class:`${o("sideslider-footer")}`},[r.footer()])});const f={...n};return s.vnode.scopeId&&(f[s.vnode.scopeId]=""),a.createVNode(il,a.mergeProps(f,{width:e.width,class:{[o("sideslider")]:!0,[`is-position-${e.direction}`]:e.direction},extCls:e.extCls,animateType:e.direction,backgroundColor:e.backgroundColor,closeIcon:!1,escClose:e.escClose,isShow:e.isShow,quickClose:e.quickClose,renderDirective:e.renderDirective,showMask:e.showMask,transfer:e.transfer,zIndex:e.zIndex,onClose:c,onHidden:d,onShown:u}),yK(h)?h:{default:()=>[h]})}}}),$4=Qe(bK),Lm=a.defineComponent({name:"SliderButton",props:{modelValue:{type:Number,default:0},params:{type:Object,default:()=>({})}},emits:["emitChange","resetSize","update:modelValue"],setup(e,{emit:t}){const n=a.ref(!1),r=a.ref(!1),s=a.ref(0),o=a.ref(0),c=a.ref(0),u=a.ref(null),d=a.ref(e.modelValue),h=a.ref(0),f=a.ref(0),m=a.ref(!1),p=a.ref(null),y=a.computed(()=>{var I,A;let L="";if((I=e.params.customContent)!=null&&I[e.modelValue]){const D=e.params.customContent[e.modelValue];L=D.tip||D.label||""}const P=e.params.vertical?Lo.RIGHT:Lo.TOP;return(A=e.params)!=null&&A.showTip?{content:e.params.formatterTipLabel(`${L||(e==null?void 0:e.modelValue)||"0"}`),placement:P}:{content:"",placement:P}}),b=a.computed(()=>`${(e.modelValue-e.params.minValue)/(e.params.maxValue-e.params.minValue)*100}%`),N=a.computed(()=>e.params.vertical?{bottom:b.value}:{left:b.value}),w=a.computed(()=>e.params.formatterButtonLabel(e.modelValue)),C=L=>{e.params.disable||(L.preventDefault(),E(L),go(window,"mousemove",_),go(window,"touchmove",_),go(window,"mouseup",x),go(window,"touchend",x))},E=L=>{n.value=!0,r.value=!0,e.params.vertical?s.value=L.clientY:o.value=L.clientX,c.value=parseFloat(b.value),u.value=c.value},_=L=>{if(n.value){r.value=!1,t("resetSize");let P=0;e.params.vertical?(h.value=L.clientY,P=(s.value-h.value)/e.params.sliderSize*100):(f.value=L.clientX,P=(f.value-o.value)/e.params.sliderSize*100),u.value=c.value+P,O(u.value)}},x=()=>{m.value=!1,n.value&&(setTimeout(()=>{n.value=!1,r.value||(O(u.value),t("emitChange"))},0),wc(window,"mousemove",_),wc(window,"touchmove",_),wc(window,"mouseup",x),wc(window,"touchend",x))},O=L=>{if(L===null||isNaN(L))return;L<0?u.value=0:L>100&&(u.value=100);const P=100/((e.params.maxValue-e.params.minValue)/e.params.step);let A=Math.round(L/P)*P*(e.params.maxValue-e.params.minValue)*.01+e.params.minValue;A=parseFloat(A.toFixed(e.params.precision)),t("update:modelValue",A),!n.value&&e.modelValue!==d.value&&(d.value=e.modelValue)},{resolveClassName:T}=xe();return{renderDom:()=>a.createVNode("div",{ref:p,style:N.value,class:[`${T("slider-button")}`,e.params.vertical?"vertical":"horizontal",{grabbing:n.value}],tabindex:"0",onClick:L=>L.stopPropagation(),onMousedown:C},[y.value.content?a.createVNode(a.Fragment,null,[a.createVNode(wn,{boundary:document.body,content:y.value.content,placement:y.value.placement,theme:"dark"},{default:()=>[a.createVNode("div",{class:["slider-button",{"slider-button-disable":e.params.disable}]},null)]})]):a.createVNode(a.Fragment,null,[a.createVNode("div",{class:["slider-button",{"slider-button-disable":e.params.disable}]},null)]),e.params.showButtonLabel&&!e.params.showIntervalLabel?a.createVNode(a.Fragment,null,[a.createVNode("div",{class:["slider-button-label",e.params.vertical?"vertical":"horizontal"]},[w.value])]):null]),setPosition:O,tip:y}},render(){return this.renderDom()}}),go=(e,t,n)=>{e&&t&&n&&e.addEventListener(t,n,!1)},wc=(e,t,n)=>{e&&t&&n&&e.removeEventListener(t,n,!1)},wK=a.defineComponent({name:"Slider",props:{modelValue:v.oneOfType([v.arrayOf(v.number),v.number]),extCls:{type:String,default:""},vertical:{type:Boolean,default:!1},height:{type:String,default:"200px"},disable:{type:Boolean,default:!1},showTip:{type:Boolean,default:!1},maxValue:{type:[Number],default:100},minValue:{type:[Number],default:0},step:{type:[Number],default:1},range:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!1},showIntervalLabel:{type:Boolean,default:!1},showButtonLabel:{type:Boolean,default:!1},showBetweenLabel:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},customContent:{type:Object,default:null},formatterLabel:{type:Function,default:e=>e},formatterButtonLabel:{type:Function,default:e=>e},formatterTipLabel:{type:Function,default:e=>e},labelClick:{type:[Boolean,Function],default:!1}},emits:["update:modelValue","change"],setup(e,{slots:t,emit:n}){const r=a.ref(1),s=a.ref(null),o=a.ref(null),c=a.ref(null),u=a.ref(0),d=a.ref(0),h=a.ref(null),f=a.ref(null),m=a.ref(null),p=a.ref(null),y=a.computed(()=>{const F=[e.minValue,e.maxValue,e.step].map(z=>{const Y=`${z}`.split(".")[1];return Y?Y.length:0});return Math.max.apply(null,F)}),b=a.computed(()=>Math.min(s.value,o.value)),N=a.computed(()=>Math.max(s.value,o.value)),w=a.computed(()=>e.range?`${100*(N.value-b.value)/(e.maxValue-e.minValue)}%`:`${100*(s.value-e.minValue)/(e.maxValue-e.minValue)}%`),C=a.computed(()=>e.range?`${100*(b.value-e.minValue)/(e.maxValue-e.minValue)}%`:"0%"),E=a.computed(()=>e.vertical?{height:w.value,bottom:C.value}:{width:w.value,left:C.value}),_=a.computed(()=>{if(!e.showInterval||e.minValue>e.maxValue)return[];if(e.step===0)return console.warn("WARNNING:step should not be 0"),[];const F=(e.maxValue-e.minValue)/e.step,z=100*e.step/(e.maxValue-e.minValue),Y=[];for(let te=1;te<F;te++)Y.push(te*z);return e.range?Y.filter(te=>te<100*(b.value-e.minValue)/(e.maxValue-e.minValue)||te>100*(N.value-e.minValue)/(e.maxValue-e.minValue)):Y.filter(te=>te>100*(s.value-e.minValue)/(e.maxValue-e.minValue))}),x=a.computed(()=>e.vertical?{height:e.height,width:"4px"}:{}),O=a.computed(()=>{if(!e.showIntervalLabel)return[];if(e.step===0)return console.warn("WARNNING:step should not be 0"),[];const F=100*e.step/(e.maxValue-e.minValue),z=[];for(let Y=e.minValue,te=0;Y<=e.maxValue;Y+=e.step,te++){const ue={stepWidth:te*F,stepLabel:e.formatterLabel(Y)};z.push(ue)}return z}),T=a.computed(()=>Array.isArray(e.modelValue)),$=a.computed(()=>e.customContent?Object.keys(e.customContent).sort((F,z)=>Number(F)-Number(z)).filter(F=>Number(F)>=e.minValue&&Number(F)<=e.maxValue).map(F=>{const{tip:z}=e.customContent[F],{label:Y}=e.customContent[F];return{tip:z||Y||"",label:Y||"",percent:(Number(F)-e.minValue)/(e.maxValue-e.minValue)*100}}):[]),L=a.computed(()=>({vertical:e.vertical,showTip:e.showTip,disable:e.disable,maxValue:e.maxValue,minValue:e.minValue,step:e.step,precision:y.value,showButtonLabel:e.showButtonLabel,formatterButtonLabel:e.formatterButtonLabel,showIntervalLabel:e.showIntervalLabel,customContent:e.customContent,sliderSize:r.value,formatterTipLabel:e.formatterTipLabel}));a.watch(()=>e.modelValue,()=>{D()}),a.watch(()=>s.value,F=>{e.range?n("update:modelValue",[b.value,N.value]):n("update:modelValue",F),u.value=F}),a.watch(()=>o.value,F=>{n("update:modelValue",[b.value,N.value]),d.value=F}),a.onMounted(()=>{e.range?(Array.isArray(e.modelValue)?(s.value=Math.max(e.minValue,Number(e.modelValue[0])),o.value=Math.min(e.maxValue,Number(e.modelValue[1]))):(s.value=e.minValue,o.value=e.maxValue),c.value=[s.value,o.value]):(typeof e.modelValue!="number"||isNaN(e.modelValue)?s.value=e.minValue:s.value=Math.min(e.maxValue,Math.max(e.minValue,e.modelValue)),c.value=s.value),P(),go(window,"resize",P())});const P=()=>{h.value&&(r.value=h.value[`client${e.vertical?"Height":"Width"}`])},I=F=>{var z,Y;if(F.stopPropagation(),!e.disable){if(P(),e.vertical){const te=(z=h.value)==null?void 0:z.getBoundingClientRect().bottom;W((te-F.clientY)/r.value*100)}else{const te=(Y=h.value)==null?void 0:Y.getBoundingClientRect().left;W((F.clientX-te)/r.value*100)}X()}},A=()=>e.range?![b.value,N.value].every((F,z)=>F===c.value[z]):e.modelValue!==c.value,D=()=>{if(e.minValue>e.maxValue){console.error("min should not be greater than max.");return}const F=e.modelValue;e.range&&Array.isArray(F)?F[1]<e.minValue?n("update:modelValue",[e.minValue,e.minValue]):F[0]>e.maxValue?n("update:modelValue",[e.maxValue,e.maxValue]):F[0]<e.minValue?n("update:modelValue",[e.minValue,F[1]]):F[1]>e.maxValue?n("update:modelValue",[F[0],e.maxValue]):(s.value=Number(F[0]),o.value=Number(F[1]),A()&&(c.value=F.slice())):!e.range&&typeof F=="number"&&!isNaN(F)&&(F<e.minValue?n("update:modelValue",e.minValue):F>e.maxValue?n("update:modelValue",e.maxValue):(s.value=F,A()&&(c.value=F)))},X=async()=>{await a.nextTick(),n("change",e.range?[b.value,N.value]:e.modelValue)},M=F=>e.vertical?{bottom:`${F}%`}:{left:`${F}%`},W=F=>{if(!e.range){f.value.setPosition(F);return}const z=e.minValue+F*(e.maxValue-e.minValue)/100;Math.abs(b.value-z)<Math.abs(N.value-z)?p.value=s.value<o.value?f.value:m.value:p.value=s.value>o.value?f.value:m.value,p.value.setPosition(F)},ne=F=>{if(F==="")return;const z=parseFloat(F);z<e.minValue?(u.value=e.minValue,s.value=e.minValue):z>e.maxValue?(u.value=e.maxValue,s.value=e.maxValue):s.value=z},B=F=>{if(F==="")return;const z=parseFloat(F.toString());z<e.minValue?(d.value=e.minValue,o.value=e.minValue):z>e.maxValue?(d.value=e.maxValue,o.value=e.maxValue):o.value=z},k=F=>{let z=0;return F==="start"?z=e.vertical?e.maxValue:e.minValue:z=e.vertical?e.minValue:e.maxValue,e.showButtonLabel&&[s.value,o.value].includes(z)?"0":"1"},{resolveClassName:re}=xe(),J=(F,z)=>{let Y=z.stepWidth??z.percent??z;if(e.labelClick){F.stopPropagation(),F.stopImmediatePropagation(),F.preventDefault();let te;if(typeof e.labelClick=="function"){const ue={percent:Y,step:z};if(te=e.labelClick(F,ue),te===!1)return}Y=typeof te=="number"?te:Y,console.log("handleStepLabelClick",Y),W(Y);return}};return{renderDom:()=>{var F,z;return a.createVNode("div",{class:[`${re("slider")}`,e.extCls]},[(F=t.start)==null?void 0:F.call(t),a.createVNode("div",{ref:h,style:x.value,class:`${re("slider-runway")}`,onClick:I},[a.createVNode("div",{style:E.value,class:[`${re("slider-bar")}`,e.vertical?"vertical":"horizontal",{disable:e.disable}]},null),e.showInterval?_.value.map((Y,te)=>te===0||te===_.value.length-1?null:a.createVNode("div",{key:te,style:M(Y),class:[`${re("slider-interval")}`,{vertical:e.vertical}],onClick:ue=>J(ue,Y)},null)):null,e.customContent?$.value.map((Y,te)=>te===0||te===$.value.length-1?null:a.createVNode("div",{key:te,style:M(Y.percent),class:[`${re("slider-interval")}`,{vertical:e.vertical}],onClick:ue=>J(ue,Y)},null)):void 0,e.showBetweenLabel||e.showIntervalLabel||e.customContent?a.createVNode("div",{class:[`${re("slider-labels")}`,e.vertical?"vertical":"horizontal"]},[function(){if(e.showBetweenLabel)return[a.createVNode("div",{style:[{opacity:k("start")}],class:"label-start"},[e.formatterLabel(e.minValue)]),a.createVNode("div",{style:[{opacity:k("end")}],class:"label-end"},[e.formatterLabel(e.maxValue)])];if(e.showIntervalLabel)return O.value.map((Y,te)=>a.createVNode("div",{key:te,style:M(Y.stepWidth),class:[`${re("slider-label")}`,e.vertical?"vertical":"horizontal"],onClick:ue=>J(ue,Y)},[Y.stepLabel]));if(e.customContent)return $.value.map((Y,te)=>a.createVNode("div",{key:te,style:M(Y.percent),class:[`${re("slider-label")}`,e.vertical?"vertical":"horizontal"],onClick:ue=>J(ue,Y)},[Y.label]))}()]):void 0,a.createVNode(Lm,{ref:f,modelValue:s.value,"onUpdate:modelValue":Y=>s.value=Y,params:L.value,onEmitChange:X,onResetSize:P},null),e.range?a.createVNode(Lm,{ref:m,modelValue:o.value,"onUpdate:modelValue":Y=>o.value=Y,params:L.value,onEmitChange:X,onResetSize:P},null):void 0]),e.showInput&&!e.vertical?a.createVNode("div",{class:`${re("slider-input")}`},[a.createVNode("div",{class:"input-item"},[a.createVNode($a,{max:e.maxValue,min:e.minValue,modelValue:u.value,type:"number",onChange:ne},null)]),T.value&&o.value?[a.createVNode("div",{class:"input-center"},[a.createTextVNode("~")]),a.createVNode("div",{class:"input-item"},[a.createVNode($a,{max:e.maxValue,min:e.minValue,modelValue:d.value,type:"number",onChange:B},null)])]:void 0]):void 0,(z=t.end)==null?void 0:z.call(t)])}}},render(){return this.renderDom()}}),D4=Qe(wK);var I4=function(e){return e.ERROR="error",e.LOADING="loading",e.UNKNOWN="",e}(I4||{});const Am={theme:v.theme().def(_u.PRIMARY),size:v.size(),curStep:v.number.def(1),controllable:v.bool.def(!1),direction:xg(),status:Pe("status",{}).def(I4.UNKNOWN),lineType:_g(),extCls:v.string,steps:v.array.def([]),beforeChange:v.func},CK=a.defineComponent({name:"Steps",props:Am,emits:["update:curStep","click"],setup(e,{emit:t}){const n=ut("steps"),r=ut("lang"),s=a.ref([]),o=f=>{const m=[];f.forEach(p=>{typeof p=="string"?m.push(p):m.push({title:p.title,icon:p.icon,description:p.description,status:p.status,border:p.border??!0})}),s.value.splice(0,s.value.length,...m)},c=f=>{Am.curStep=f},u=()=>{var f;s.value.splice(0,s.value.length,{title:n.value.step1,icon:1},{title:n.value.step2,icon:2},{title:n.value.step3,icon:3}),(f=e.steps)!=null&&f.length&&o(e.steps)};a.watch(()=>r.value,()=>{u()});const d=async f=>{try{e.controllable&&f!==e.curStep&&(typeof e.beforeChange=="function"&&await new Promise(async(m,p)=>{const y=await e.beforeChange(f);y?m(y):p(y)}),t("update:curStep",f),t("click",f))}catch(m){console.warn(m)}};a.onMounted(u),a.watch(()=>e.steps,()=>{o(e.steps)},{deep:!0}),a.watch(()=>e.curStep,()=>{c(e.curStep)},{deep:!0});const{resolveClassName:h}=xe();return{defaultSteps:s,jumpTo:d,resolveClassName:h}},render(){const e=this.resolveClassName("steps"),t=this.theme?`${e}-${this.theme}`:"",n=this.size?`${e}-${this.size}`:"",r=ze({[`${this.extCls}`]:!!this.extCls,[`${this.resolveClassName(`steps-${this.direction}`)}`]:this.direction,[`${this.resolveClassName(`steps-${this.lineType}`)}`]:this.lineType},`${t} ${e} ${n}`),s=m=>this.curStep>m+1||this.defaultSteps[m].status==="done",o=m=>this.curStep===m+1,c=m=>{const{icon:p}=m;return p?Object.prototype.toString.call(p)==="[object Object]":typeof m=="string"},u=(m,p)=>(p.icon||(p.icon=m),!isNaN(p.icon)),d=m=>m.status==="loading",h=m=>m.status==="error",f=(m,p)=>o(m)&&this.status==="loading"||d(p)?a.createVNode(qo,{class:`${this.resolveClassName("icon")} ${this.resolveClassName("steps-icon")} icon-loading`},null):o(m)&&this.status==="error"||h(p)?a.createVNode(an,{class:`${this.resolveClassName("steps-icon")}`},null):s(m)?a.createVNode(ps,{class:`${this.resolveClassName("steps-icon")}`},null):a.createVNode("span",null,[u(m,p)?m+1:a.createVNode(p.icon,null,null)]);return a.createVNode("div",{class:r},[this.defaultSteps.map((m,p)=>{var y,b;return a.createVNode("div",{class:[this.resolveClassName("step"),m.title?"":this.resolveClassName("step-no-content"),s(p)?"done":"",o(p)?"current":"",o(p)&&this.status==="error"?"is-error":"",m.status&&o(p)?[`${this.resolveClassName(`step-${m.status}`)}`]:""]},[a.createVNode("span",{style:{cursor:this.controllable?"pointer":""},class:[`${this.resolveClassName("step-indicator")}`,`${this.resolveClassName(`step-${c(m)?"icon":"number"}`)}`,`${this.resolveClassName(`step-icon${m.status}`)}`],onClick:()=>{this.jumpTo(p+1)}},[((b=(y=this.$slots)[p+1])==null?void 0:b.call(y))??f(p,m)]),m.title?a.createVNode("div",{class:`${this.resolveClassName("step-content")}`},[a.createVNode("div",{style:{cursor:this.controllable?"pointer":""},class:`${this.resolveClassName("step-title")}`,onClick:()=>{this.jumpTo(p+1)}},[m.title]),m.description&&a.createVNode("div",{class:`${this.resolveClassName("step-description")}`,title:m.description},[m.description])]):""])})])}}),k4=Qe(CK),NK=a.defineComponent({name:"Swiper",props:{isLoop:v.bool.def(!0),loopTime:v.number.def(8e3),pics:v.array.def([]),list:v.array.def([]),height:v.number,width:v.number},emits:["index-change"],setup(e,{emit:t,slots:n}){const{isLoop:r,loopTime:s,pics:o,list:c,height:u,width:d}=a.toRefs(e),h=a.ref(),f=a.ref(0),m=a.ref(0),p=a.ref(0),y=a.ref(0);let b;const{resolveClassName:N}=xe(),w=a.computed(()=>{var M;return((M=c.value)==null?void 0:M.length)>0?c.value:o.value}),C=a.computed(()=>({width:`${m.value*w.value.length}px`,transform:`translateX(-${m.value*f.value}px)`})),E=a.computed(()=>({width:`${m.value}px`,height:`${p.value}px`})),_=M=>{let W=M;M>=w.value.length&&(W=0),M<0&&(W=w.value.length-1),f.value=W,t("index-change",W)},x=M=>{M&&window.open(M,"_blank")},O=M=>[`${N("swiper-img")}`,{[`${N("swiper-link")}`]:M.link},M.class],T=M=>({"background-image":`url(${M.url})`,"background-color":M.color}),$=M=>({[`${N("current-index")}`]:f.value===M}),L=()=>{r.value&&(y.value=window.setTimeout(()=>{_(f.value+1),L()},s.value))},P=()=>{window.clearTimeout(y.value)},I=()=>{var W;const M=(W=h.value)==null?void 0:W.parentElement;!M||!window.ResizeObserver||(b=new ResizeObserver(()=>{X()}),b.observe(M))},A=()=>{var M;(M=b.disconnect)==null||M.call(b)},D=M=>{if(M===void 0)return{height:0,width:0};const W=getComputedStyle(M),ne=M.clientWidth-parseFloat(W.paddingTop)-parseFloat(W.paddingBottom);return{height:M.clientHeight-parseFloat(W.paddingLeft)-parseFloat(W.paddingRight),width:ne}},X=()=>{var W;const M=D((W=h.value)==null?void 0:W.parentElement);m.value=+d.value>0?d.value:M.width,p.value=+u.value>0?u.value:M.height};return a.watch([u,d],X),a.onMounted(()=>{X(),L(),I()}),a.onBeforeUnmount(()=>{P(),A()}),()=>a.createVNode("section",{ref:h,style:E.value,class:`${N("swiper-home")}`},[a.createVNode("hgroup",{style:C.value,class:`${N("transition")} ${N("swiper-main")}`},[w.value.map(M=>{var W;return a.createVNode("h3",{style:E.value,class:`${N("swiper-card")}`},[((W=n.default)==null?void 0:W.call(n,M))??a.createVNode("span",{style:T(M),class:O(M),onClick:()=>x(M.link)},null)])})]),a.createVNode("ul",{class:`${N("swiper-index")}`},[w.value.map((M,W)=>a.createVNode("li",{class:$(W),onMouseover:()=>_(W)},null))]),a.createVNode("span",{class:`${N("swiper-nav")} ${N("nav-prev")}`,onClick:()=>_(f.value-1)},[a.createVNode("i",{class:`${N("swiper-nav-icon")}`},null)]),a.createVNode("span",{class:`${N("swiper-nav")} ${N("nav-next")}`,onClick:()=>_(f.value+1)},[a.createVNode("i",{class:`${N("swiper-nav-icon")}`},null)])])}}),P4=Qe(NK),xK={theme:eS(),size:v.size(),disabled:v.bool,showText:v.bool,isOutline:v.bool,onText:v.string.def("ON"),offText:v.string.def("OFF"),isSquare:v.bool,extCls:v.string,beforeChange:v.func.def(void 0),trueValue:v.oneOfType([v.string,v.number,v.bool]).def(!0),falseValue:v.oneOfType([v.string,v.number,v.bool]).def(!1),value:v.oneOfType([v.string,v.number,v.bool]).def(!1),modelValue:v.oneOfType([v.string,v.number,v.bool]).def(!1),withValidate:v.bool.def(!0)};let uu=function(e){return e.CHANGE="change",e.UPDATE="update:modelValue",e}({});function _K(e){return e}function SK(e){return!!e}const TK={[uu.UPDATE]:_K,[uu.CHANGE]:SK},EK=a.defineComponent({name:"Switcher",props:xK,emits:TK,setup(e,{emit:t}){const n=ur(),{resolveClassName:r}=xe(),s=a.ref(!1),o=a.computed(()=>e.trueValue===u.value),c=a.ref(e.modelValue!==!1),u=a.computed(()=>c.value?e.modelValue:e.value),d=a.computed(()=>{const m={[e.extCls]:!!e.extCls,[`${r("switcher")}`]:!0,[`${r("switcher-outline")}`]:e.isOutline,[`${r("switcher-square")}`]:e.isSquare,"show-label":e.showText,"is-disabled":e.disabled,"is-checked":o.value,"is-unchecked":!o.value,"is-loading":s.value,[`${r("primary")}`]:e.theme==="primary"};if(e.size&&!e.showText){const p=`${r(`switcher-${e.size}`)}`;m[p]=!0}return m});a.watch(()=>e.modelValue,()=>{var m;c.value=!0,e.withValidate&&((m=n==null?void 0:n.validate)==null||m.call(n,"change"))}),a.watch(()=>e.value,()=>{c.value=!1});const h=m=>{if(m.stopPropagation(),m.preventDefault(),e.disabled||s.value)return;const p=o.value?e.falseValue:e.trueValue,y=!o.value,b=()=>{t(uu.UPDATE,p),t(uu.CHANGE,y)};let N=!0;if(typeof e.beforeChange=="function"&&(N=e.beforeChange(p),typeof N.then=="function"))return s.value=!0,N.then(()=>{b()}).finally(()=>{s.value=!1});N&&b()},f=m=>{(m.code==="Enter"||m.key==="Enter"||m.keyCode===13)&&h(m)};return()=>a.createVNode("div",{class:d.value,tabindex:"0",onClick:h,onKeydown:f},[s.value?a.createVNode(sd,{class:`${r("switcher-loading")}`},null):"",e.showText?a.createVNode("span",{class:"switcher-text"},[o.value?e.onText:e.offText]):""])}}),M4=Qe(EK);var du=(e=>(e.BORDER_CARD="border-card",e.CARD="card",e.CARD_GRID="card-grid",e.CARD_TAB="card-tab",e.UNBORDER_CARD="unborder-card",e))(du||{}),Co=(e=>(e.LEFT="left",e.RIGHT="right",e.TOP="top",e))(Co||{});const R4=Pe("position",{}).def("top");var F4=(e=>(e.INSERT="insert",e.REPLACE="replace",e))(F4||{});const H4=Pe("sortType",{}).def("replace"),OK={tabAdd:{type:Function,default:()=>({})},tabChange:{type:Function,default:e=>e},tabRemove:{type:Function,default:e=>e},tabSort:{type:Function,default:()=>({})},tabDrag:{type:Function,default:()=>({})}},LK={name:v.oneOfType([v.number,v.string]).def(""),label:v.string||v.func,tips:v.string,closable:v.bool,visible:v.bool.def(!0),disabled:v.bool,sortable:v.bool,renderDirective:mh(),panel:v.string||v.func,num:v.number.def(void 0),numDisplayType:v.string.def("default")},AK={active:v.oneOfType([v.number,v.string]).def(""),type:Pe("type",{}).def("border-card"),tabPosition:R4,closable:Boolean,addable:Boolean,sortable:Boolean,sortType:H4,labelHeight:v.number.def(50),extCls:v.string.def(""),validateActive:v.bool.def(!0),activeBarSize:v.number.def(2),activeBarColor:v.string.def("#3a84ff")},VK={active:v.oneOfType([v.number,v.string]).def(""),type:Pe("type",{}).def("border-card"),activeBarColor:v.string.def("#3a84ff"),activeBarSize:v.number.def(2),panels:{type:Array,default:()=>[]},tabPosition:R4,closable:Boolean,addable:Boolean,sortable:Boolean,sortType:H4,labelHeight:v.number.def(50),validateActive:v.bool.def(!0),...OK},Vm=a.defineComponent({name:"TabNav",directives:{bkTooltips:sa},props:VK,setup(e){const t=a.ref(null),n=a.computed(()=>{const f={width:0,height:0,bottom:0,left:0};if(!t.value)return f;if([Co.LEFT,Co.RIGHT].includes(e.tabPosition)){const{clientHeight:m,offsetTop:p}=t.value,y={width:`${e.activeBarSize}px`,height:`${m}px`,top:`${p}px`,background:e.activeBarColor};return e.tabPosition===Co.LEFT?y.right=0:y.left=0,y}if(e.type===du.UNBORDER_CARD){const{clientWidth:m,offsetLeft:p}=t.value;return{width:`${m}px`,height:`${e.activeBarSize}px`,left:`${p}px`,bottom:0,background:e.activeBarColor}}return f}),r=a.computed(()=>{if(!Array.isArray(e.panels)||!e.panels.length)return[];const f=[];let m=!1;return e.panels.filter((p,y)=>{if(!p.props)return null;const{name:b,label:N,num:w,closable:C,visible:E,disabled:_,sortable:x,tips:O,numDisplayType:T}=p.props;if(!E)return!1;e.active===b&&(m=!0);const $=L=>p.slots.label?a.h(p.slots.label):[void 0,""].includes(L)?`选项卡${y+1}`:typeof L=="string"?L:typeof L=="function"?a.h(L):L;return f.push({name:b,closable:C,visible:E,disabled:_,sortable:x,tips:O,numDisplayType:T,tabLabel:$(N),tabNum:w}),!0}),!m&&e.validateActive&&e.panels[0].props&&e.tabChange(e.panels[0].props.name),f}),s=a.ref(-1),o=a.ref(-1),c=a.ref(""),u=(f,m)=>f===m,d={handleTabAdd(f){e.tabAdd(f)},dragstart(f,m){o.value=f,c.value=e.guid,Object.assign(m.dataTransfer,{effectAllowed:"move"}),e.tabDrag(f,m)},dragenter(f){u(c.value,e.guid)&&(s.value=f)},dragend(){s.value=-1,o.value=-1,c.value=null},drop(f,m){if(!u(c.value,e.guid))return!1;e.tabSort(o.value,f,m)},handleTabChange(f){e.tabChange(f)},handleTabRemove(f,m){e.tabRemove(f,m)}},{resolveClassName:h}=xe();return{...d,activeRef:t,activeBarStyle:n,navs:r,dragenterIndex:s,dragStartIndex:o,draggingEle:c,guid:Math.random().toString(16).substr(4)+Math.random().toString(16).substr(4),resolveClassName:h}},render(){const{active:e,closable:t,addable:n,sortable:r,sortType:s,labelHeight:o,dragstart:c,dragenter:u,dragend:d,drop:h}=this,f=()=>this.navs.map((N,w)=>{if(!N)return null;const{name:C,disabled:E,tabLabel:_,tabNum:x,numDisplayType:O}=N,T=()=>{const I=[this.resolveClassName("tab-header-item")];return E&&I.push(this.resolveClassName("tab-header--disabled")),e===C&&I.push(this.resolveClassName("tab-header--active")),I.join(" ")},$=(I,A)=>!E&&(I||A),L=(I,A)=>$(I.closable,t)?a.createVNode("span",{class:this.resolveClassName("tab-header--close"),onClick:()=>this.handleTabRemove(A,I)},[a.createVNode(bn,null,null)]):"",P=()=>["bracket"].includes(O)?`(${x})`:x;return a.withDirectives(a.createVNode("div",{key:C,ref:e===C?"activeRef":"",class:T(),draggable:$(N.sortable,r),onClick:()=>!E&&this.handleTabChange(C),onDragend:I=>{I.preventDefault(),d()},onDragenter:I=>{I.preventDefault(),u(w)},onDragleave:I=>{I.preventDefault()},onDragover:I=>{I.preventDefault()},onDragstart:I=>c(w,I),onDrop:I=>{I.preventDefault(),h(w,s)}},[isNaN(x)?a.createVNode("div",null,[_]):a.createVNode("div",{class:this.resolveClassName("tab-header--has-num")},[a.createVNode("div",{class:this.resolveClassName("tab-header--has-num-left")},[_]),a.createVNode("div",{class:this.resolveClassName("tab-header--has-num-right")},[a.createVNode("div",{class:this.resolveClassName(`tab-header--has-num-${O}`)},[P()]),L==null?void 0:L(N,w)])]),isNaN(x)?L==null?void 0:L(N,w):""]),[[a.resolveDirective("bk-tooltips"),{content:N.tips||"",disabled:!N.tips}]])}),m=()=>{var w,C;const N=[];return typeof this.$slots.add=="function"?N.push((C=(w=this.$slots).add)==null?void 0:C.call(w,a.h)):n&&N.push(a.createVNode("div",{onClick:this.handleTabAdd},[a.createVNode(tl,{style:"display:flex;",width:26,height:26},null)])),N.length?a.createVNode("div",{class:this.resolveClassName("tab-header-operation")},[N.map((E,_)=>a.createVNode("div",{key:_,class:this.resolveClassName("tab-header-item")},[E]))]):null},p=()=>this.type===du.UNBORDER_CARD?a.createVNode("div",{style:this.activeBarStyle,class:this.resolveClassName("tab-header-active-bar")},null):"",y=typeof this.$slots.setting=="function"?a.createVNode("div",{class:this.resolveClassName("tab-header-setting")},[this.$slots.setting()]):null,b=m();return a.createVNode("div",{style:{lineHeight:`${o}px`},class:this.resolveClassName("tab-header")},[a.createVNode("div",{class:[this.resolveClassName("tab-header-nav"),b||y?"tab-header-auto":""]},[p(),f()]),b,y])}}),$K=a.defineComponent({name:"Tab",components:{TabNav:Vm},props:AK,emits:["add-panel","tab-change","remove-panel","sort-change","on-drag-tab","add","change","remove","update:active","sort","drag"],setup(e,{slots:t,emit:n}){const r=a.ref(!1),s=a.ref([]),o=a.getCurrentInstance(),c=(f,m=[])=>{const{children:p}=f;return(p||[]).forEach(y=>{let{type:b}=y;b=b.name||b,b==="TabPanel"&&y.component?m.push(y.component):(b===a.Fragment||b==="template")&&c(y,m)}),m},u=()=>{if(t.default){const{children:f}=o.subTree.children[1];if(!f)return;const m=f[0],p=c(m);p.length!==s.value.length&&(s.value=p)}};a.onMounted(()=>{u(),r.value=!0,a.onUpdated(()=>{u()})});const d={tabAdd(f){n("add",{e:f}),n("add-panel",{e:f})},tabChange(f){n("change",f),n("tab-change",f),n("update:active",f)},tabRemove(f,m){n("remove",f,m),n("remove-panel",f,m)},tabSort(f,m,p){const y=s.value;if(p===F4.INSERT)if(f<m)y.splice(m+1,0,s[f]),y.splice(f,1);else if(f>m)y.splice(m,0,s[f]),y.splice(f+1,1);else return!1;else{const b=y[m];y[m]=y[f],y[f]=b}s.value=[...y],n("sort",f,m,p),n("sort-change",f,m,p)},tabDrag(f,m){n("drag",f,m),n("on-drag-tab",f,m)}},{resolveClassName:h}=xe();return{...d,isMounted:r,panels:s,resolveClassName:h}},render(){var n,r;const e=()=>{const s=[this.resolveClassName("tab"),this.extCls];return this.tabPosition===Co.TOP?s.push(this.resolveClassName(`tab--${this.tabPosition}`),this.resolveClassName(`tab--${this.type}`)):(s.push(this.resolveClassName(`tab--${this.tabPosition}`)),this.type===du.CARD_TAB&&s.push(this.resolveClassName("tab--vertical-tab"))),s},t=()=>{const{panels:s,active:o,type:c,closable:u,addable:d,sortable:h,sortType:f,labelHeight:m,validateActive:p,tabPosition:y,activeBarSize:b,activeBarColor:N,tabAdd:w,tabChange:C,tabRemove:E,tabSort:_,tabDrag:x}=this,O={panels:s,active:o,type:c,closable:u,addable:d,sortable:h,sortType:f,labelHeight:m,validateActive:p,tabPosition:y,activeBarSize:b,activeBarColor:N,tabAdd:w,tabChange:C,tabRemove:E,tabSort:_,tabDrag:x};return!s||!Array.isArray(s)?null:a.createVNode(Vm,O,this.$slots)};return a.createVNode("div",{class:e()},[t(),a.createVNode("div",{class:this.resolveClassName("tab-content")},[(r=(n=this.$slots).default)==null?void 0:r.call(n)])])}}),DK=a.defineComponent({name:"TabPanel",props:LK,render(){const e=this.name===this.$parent.active,t=()=>!this.visible||this.renderDirective==="if"&&!e?null:typeof this.panel=="function"?this.panel(a.h):typeof this.$slots.default=="function"?this.$slots.default(null):typeof this.$slots.panel=="function"?this.$slots.panel(null):null,{resolveClassName:n}=xe();return a.withDirectives(a.createVNode("div",{ref:"content",class:n("tab-panel")},[t()]),[[a.vShow,e]])}}),B4=on($K,{TabPanel:DK});var z4=(e=>(e.COL="col",e.HORIZONTAL="horizontal",e.NONE="none",e.OUTER="outer",e.ROW="row",e))(z4||{}),U4=(e=>(e.AUTO="auto",e.HIGHLIGHT="highlight",e))(U4||{});const IK=["auto","highlight"],kK=["none","row","col","outer","horizontal"],Xe={ROW_INDEX:"row_index",ROW_UID:"row_id",ROW_EXPAND:"row_expand",ROW_SELECTION:"row_selection",ROW_SELECTION_INDETERMINATE:"row_selection_indeterminate",ROW_SOURCE_DATA:"row_source_data",ROW_SKIP_CFG:"row_skip_config",ROW_SPAN:"row_span",ROW_HEIGHT:"row_height"},Ve={COL_UID:"col_$uuid",COL_SOURCE_DATA:"col_source_data",COL_MIN_WIDTH:"col_min_width",COL_SORT_ACTIVE:"col_sort_active",COL_SORT_TYPE:"col_sort_type",COL_SORT_FN:"col_sort_fn",COL_SORT_SCOPE:"col_sort_scope",COL_FILTER_FN:"col_filter_fn",COL_FILTER_VALUES:"col_filter_values",COL_FILTER_OBJ:"col_filter_obj",COL_FILTER_SCOPE:"col_filter_scope",COL_IS_DRAG:"col_is_drag",COL_SPAN:"col_span",COL_CELL_RENDER:"col_cell_render",COL_TEXT_RENDER:"col_text_render",COL_RESIZEABLE:"col_resizeable",COL_FIXED_STYLE:"col_fixed_style",COL_RECT:"col_rect",HEAD_CELL_RENDER:"head_cell_render",HEAD_TEXT_RENDER:"head_text_render",SELECTION_DISABLED:"selection_disabled",SELECTION_INDETERMINATE:"selection_indeterminate",SELECTION_VAL:"selection_val",WIDTH:"width",CALC_WIDTH:"calcWidth",RESIZE_WIDTH:"resizeWidth",LISTENERS:"listeners",IS_HIDDEN:"isHidden"},j4=8,Oa=42;var Td=(e=>(e.DEF1="def1",e.DEF2="def2",e))(Td||{});const W4={def1:"#FAFBFD",def2:"#F0F1F5"},No={large:78,medium:60,small:42},PK=e=>[{value:"small",label:e.value.setting.lineHeight.small,height:No.small},{value:"medium",label:e.value.setting.lineHeight.medium,height:No.medium},{value:"large",label:e.value.setting.lineHeight.large,height:No.large}],G4=Symbol("bkInitColumns"),MK=60;var zt=(e=>(e.ASC="asc",e.CUSTOM="custom",e.DESC="desc",e.NULL="null",e))(zt||{});const RK=["asc","desc","null","custom"],Zs=80,es={},FK={};Pe("showOverflowTooltipMode",{default:"auto"});const HK=Pe("columnType",{default:"__COL_TYPE_NONE"}),eh=Pe("columnType",{default:""});Pe("full",{default:"full"});Pe("columnSize",{default:"small"});const BK=rn(),I2=Pe("IOverflowTooltipPropType",{default:!1,type:[Boolean,Object]}),zK=Pe("ISortPropShape",{default:!1,type:[Boolean,String,Object]}),UK=Pe("IFilterPropShape",{default:!1,type:[Boolean,Object]});var K4=(e=>(e.DEBOUNCE="debounce",e.THROTTLE="throttle",e))(K4||{});const Ed=Pe("IColumnType",{default:{width:"100%",label:""},type:[Object]}),jK=Pe("ITableSettingPropType",{default:!1,type:[Boolean,Object]}),h0=Pe("LabelFunctionStringType",{}),WK=Pe("RenderFunctionStringType",{}),$m=Pe("SpanFunctionStringType",{}),GK=Pe("RowClassFunctionStringType",{}),KK=Pe("RowHeightFunctionNumberType",{});Pe("FunctionNumberType",{});const Fc=e=>Pe("StringNumberType",{}).def(e);Pe("IColumnPropType",{default:{label:void 0,minWidth:Zs},type:[Object]});var Y4=(e=>(e.independent="independent",e.interdependent="interdependent",e))(Y4||{});const YK={data:v.arrayOf(v.any).def([]),columns:v.arrayOf(Ed).def([]),activeColumn:v.oneOfType([v.number.def(-1),v.arrayOf(v.number.def(-1))]),columnPick:Pe("columnPick",{}).def("disabled"),height:Fc("auto"),stripe:v.bool.def(!1),minHeight:Fc(Oa),maxHeight:Fc("auto"),rowHeight:KK,headHeight:v.number.def(Oa),showHead:v.bool.def(!0),sortValFormat:v.arrayOf(v.any).def([""]),thead:Pe("ITheadType",{}).def({color:Td.DEF1,height:Oa,isShow:!0}),virtualEnabled:v.bool.def(!1),border:v.oneOfType([v.arrayOf(Pe("boderType",{})),v.string]).def([z4.ROW]),pagination:v.oneOfType([v.bool.def(!1),v.object.def({})]).def(!1),paginationHeight:v.number.def(MK),remotePagination:v.bool.def(!1),acrossAll:v.bool.def(!1),emptyText:v.string,emptyCellText:v.oneOfType([v.string,v.func]).def(""),isEmptyCell:v.oneOfType([v.arrayOf(rn),v.arrayOf(null),v.arrayOf(void 0),v.func]).def(["",void 0,null]),settings:jK,rowClass:v.oneOfType([v.string,v.object,v.func]).def({}),rowStyle:v.oneOfType([v.string,v.object,v.func]).def({}),cellStyle:v.oneOfType([v.string,v.object,v.func]).def({}),cellClass:v.oneOfType([v.string,v.object,v.func]).def({}),scrollLoading:v.oneOfType([v.object,v.bool]).def(void 0),reserveExpand:v.bool.def(!1),selectionKey:v.string.def(""),checked:v.array.def([]),isSelectedFn:v.func.def(void 0),rowKey:v.oneOfType([v.string,v.func]).def(Xe.ROW_INDEX),showOverflowTooltip:I2,asyncData:v.bool.def(!1),rowHover:v.oneOf(IK).def(U4.HIGHLIGHT),defaultSort:v.shape({}).def({}),isRowSelectEnable:v.oneOfType([v.func.def(()=>!0),v.bool.def(!0)]).def(!0),resizerWay:Pe("ResizerWay",{default:"debounce"}),observerResize:v.bool.def(!0),intersectionObserver:v.bool.def(!1),align:eh,headerAlign:eh,prependStyle:v.style().def({}),colSortBehavior:Pe("IColSortBehavior",{default:"independent"}),isFlex:v.bool.def(!0),rowDraggable:v.oneOfType([v.func,v.bool,v.object]).def(!1),shiftMultiChecked:v.bool.def(!1),scrollbar:v.bool.def(!0),fixedBottom:Pe("FixedBottomOption",{default:{position:"relative",height:Oa}}).def(null),appendLastRow:Pe("AppendLastRowOption",{default:{type:"default",cellRender:void 0}})},XK={label:h0,field:h0,render:WK,width:v.oneOfType([v.number,v.string]),minWidth:Fc(Zs),columnKey:v.string.def(""),showOverflowTooltip:I2,type:HK,resizable:v.bool.def(!0),fixed:v.oneOfType([v.bool,BK]).def(!1),sort:zK,filter:UK,colspan:$m.def(1),rowspan:$m.def(1),align:eh,className:GK,prop:h0,index:v.number.def(void 0)},qK=a.defineComponent({name:"TableColumn",props:XK,setup(e,{}){const t=a.inject(G4,()=>{}),n={},r=(s,o)=>{const c=a.toRaw(o);return Object.keys(c).every(d=>typeof c[d]=="function"?s[d]!==void 0:d==="children"?!0:yn.isEqual(s[d],o[d]))};a.watch(()=>[e],()=>{r(n,e)||(t(),Object.assign(n,a.toRaw(e)))},{immediate:!0,deep:!0}),a.onUnmounted(()=>{t()})},render(){var e,t;try{const r=[(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1})];return a.h("div",r)}catch{return a.h("div",[])}}});var Tt=(e=>(e.CELL_CLICK="cellClick",e.CELL_DBL_CLICK="cellDblclick",e.COLUMN_FILTER="columnFilter",e.COLUMN_FILTER_SAVE="colFilterSave",e.COLUMN_PICK="columnPick",e.COLUMN_SORT="columnSort",e.DRAG_END="dragend",e.NATIVE_CLICK="click",e.NATIVE_DBL_CLICK="dblclick",e.PAGE_LIMIT_CHANGE="pageLimitChange",e.PAGE_VALUE_CHANGE="pageValueChange",e.ROW_CLICK="rowClick",e.ROW_DBL_CLICK="rowDblclick",e.ROW_EXPAND_CLICK="rowExpand",e.ROW_MOUSE_ENTER="rowMouseEnter",e.ROW_MOUSE_LEAVE="rowMouseLeave",e.ROW_SELECT="select",e.ROW_SELECT_ALL="selectAll",e.ROW_SELECT_CHANGE="selectionChange",e.SCROLL_BOTTOM="scrollBottom",e.SETTING_CHANGE="settingChange",e))(Tt||{});const JK=e=>!0,ZK=e=>!0,QK=e=>!0,eY=e=>!0,Cc=(e,t,n,r,s)=>!0,tY=e=>!0,nY=e=>!0,rY=e=>!0,aY=e=>!0,Dm=e=>!0,sY=e=>!0,Im=e=>!0,iY=e=>!0,oY=e=>!0,lY={columnPick:JK,columnFilter:ZK,columnSort:eY,colFilterSave:QK,rowClick:Cc,rowDblclick:Cc,rowExpand:tY,select:nY,selectAll:rY,selectionChange:aY,pageLimitChange:Dm,pageValueChange:Dm,settingChange:sY,scrollBottom:iY,cellClick:Im,cellDblclick:Im,rowMouseEnter:Cc,rowMouseLeave:Cc,dragend:oY},cY=(e,{afterResize:t})=>{const{getColumnAttribute:n,getColumnOrderWidth:r,setColumnAttribute:s,setNextColumnWidth:o,getPreColumn:c}=e,u=J=>n(J,Ve.LISTENERS),d="HeadColumnResize";let h=function(J){return J.MOUSE_DOWN="onMousedown",J.MOUSE_MOVE="onMousemove",J.MOUSE_OUT="onMouseout",J}({}),f=!1,m=!1,p=!1,y=0,b=null,N="right",w=null,C=null,E=0;const _=new WeakMap,x=a.ref(-1e3),O=[Ve.WIDTH],T=J=>{J.stopImmediatePropagation(),J.stopPropagation(),J.preventDefault()},$=J=>{T(J),m=!1,p=!1;const K=r(b,O)+E,F=r(b,[Ve.COL_MIN_WIDTH]),z=K>F?K:F;o(b,z),s(b,Ve.WIDTH,z),document.removeEventListener("mouseup",$),x.value=-1e3,E=0,A(w),t==null||t(),w=null;const Y=J.target;W(Y),b=null},L=yn.throttle(J=>{x.value=x.value+J}),P=J=>{T(J),document.body.style.setProperty("user-select","none");const K=J.clientX-y;E=E+K,y=J.clientX;const F=r(b,O)+K;r(b,[Ve.COL_MIN_WIDTH])<F&&L(K)},I=yn.debounce(J=>{document.body.style.setProperty("user-select","none"),J==null||J.classList.add("col-resize-hover")}),A=J=>{I.cancel(),document.body.style.removeProperty("user-select"),J==null||J.classList.remove("col-resize-hover")},D=J=>{if(!f)return;X(J.target),y=J.clientX;const K=N==="left"?c(C):C;s(K,Ve.COL_IS_DRAG,!0),b=K,w=J.target.closest("table");const F=w.getBoundingClientRect();x.value=J.clientX-F.left,I(w),m=!0,document.addEventListener("mouseup",$)},X=J=>{var F,z;((z=(F=J==null?void 0:J.parentElement)==null?void 0:F.parentElement)==null?void 0:z.querySelectorAll(".col-pointer-hover")).forEach(Y=>{Y==null||Y.classList.remove("col-pointer-hover"),Y==null||Y.classList.remove("poiner-left"),Y==null||Y.classList.remove("poiner-right")})},M=(J,K)=>{const F=J.parentElement;F==null||F.classList.add("col-pointer-hover"),F==null||F.classList.add(`poiner-${K}`);const z=K==="right"?F.nextElementSibling:F.previousElementSibling,Y=K==="right"?"left":"right";z==null||z.classList.add("col-pointer-hover"),z==null||z.classList.add(`poiner-${Y}`)},W=J=>{p||(x.value=-1e3,J.classList.remove("cell-resize"),X(J),_.set(J,!1),document.removeEventListener("mousedown",D))},ne={[h.MOUSE_MOVE]:(J,K,F)=>{if(T(J),m){p=!0,P(J);return}const z=J.target;if(!p){if(!z)return;const{offsetWidth:Y}=z,te=J.offsetX;Y>12&&(Y-te<8||te<8&&F>0)?(f=!0,N=te<8?"left":"right",_.get(z)||(_.set(z,!0),z.classList.add("cell-resize"),M(z,N),C=K,document.addEventListener("mousedown",D))):(f=!1,W(z))}},[h.MOUSE_OUT]:(J,K,F)=>{const z=J.target;W(z)}},B=J=>`${d}_${J}`,k=()=>{e.tableColumnList.forEach(J=>{if(e.getColumnAttribute(J,Ve.COL_RESIZEABLE)){const K=u(J);Object.keys(ne).forEach(F=>{const z=B(F);K!=null&&K.has(z)||K.set(z,[]),K.get(z).push(ne[F])})}})},re=()=>{e.tableColumnList.forEach(J=>{const K=u(J);Object.keys(ne).forEach(F=>{const z=B(F);if(K!=null&&K.has(z)){const Y=K.get(z);Y.length=0}})})};return a.watch(()=>[e.tableColumnList],()=>{re(),k()},{immediate:!0,deep:!0}),{dragOffsetX:x}},uY=()=>{const e=[];let t=0;const n=new WeakMap,r=h=>a.isRef(h)?a.unref(h):a.toRaw(h),s=h=>Object.keys(h??{}).reduce((f,m)=>{const p=m.replace(/-(\w)/g,(y,b)=>b.toUpperCase());return Object.assign(f,{[p]:r(h[m])})},{}),o=h=>(n.has(h)||n.set(h,or()),n.get(h)),c=(h,f,m)=>{var p,y;if((p=h==null?void 0:h.component)!=null&&p.subTree){u((y=h==null?void 0:h.component)==null?void 0:y.subTree,f);return}if(typeof h=="function")return h();if(Array.isArray(h)){h.forEach(b=>u(b,f));return}if(Array.isArray(h==null?void 0:h.children)){h.children.forEach(b=>u(b,f));return}if(!m&&a.isVNode(h)&&(h!=null&&h.children)&&typeof(h==null?void 0:h.children)=="object"){Object.keys(h.children).forEach(b=>u(h.children[b],f));return}},u=(h,f)=>{var p,y,b;let m=f;if(!(!h||((p=h.type)==null?void 0:p.name)==="Table")){if(((y=h.type)==null?void 0:y.name)==="TableColumn"){const N=Object.assign({index:t},s(h.props),{field:h.props.prop||h.props.field,render:h.props.render??((b=h.children)==null?void 0:b.default),uniqueId:o(h),children:[]}),w=(f==null?void 0:f.children)??e;w.some(C=>C.uniqueId===N.uniqueId)||(w.push(N),t=t+1,h.children&&c(h,N,!0));return}c(h,m)}};return{resolveColumns:h=>{var m,p,y,b;e.length=0,t=0;const f=h==null?void 0:h.find(N=>{var w;return((w=N.type)==null?void 0:w.name)==="GhostBody"});return f&&((m=f.component)!=null&&m.subTree?u((p=f.component)==null?void 0:p.subTree):(((b=(y=f.children)==null?void 0:y.default)==null?void 0:b.call(y))??[]).forEach(N=>u(N))),e.sort((N,w)=>N.index-w.index),e}}};var X4=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(s,o){return s[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),s=this.__entries__[r];return s&&s[1]},t.prototype.set=function(n,r){var s=e(this.__entries__,n);~s?this.__entries__[s][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,s=e(r,n);~s&&r.splice(s,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var s=0,o=this.__entries__;s<o.length;s++){var c=o[s];n.call(r,c[1],c[0])}},t}()}(),th=typeof window<"u"&&typeof document<"u"&&window.document===document,fu=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),dY=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(fu):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),fY=2;function hY(e,t){var n=!1,r=!1,s=0;function o(){n&&(n=!1,e()),r&&u()}function c(){dY(o)}function u(){var d=Date.now();if(n){if(d-s<fY)return;r=!0}else n=!0,r=!1,setTimeout(c,t);s=d}return u}var mY=20,gY=["top","right","bottom","left","width","height","size","weight"],pY=typeof MutationObserver<"u",vY=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=hY(this.refresh.bind(this),mY)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!th||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),pY?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!th||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,s=gY.some(function(o){return!!~r.indexOf(o)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),q4=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var s=r[n];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},wi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||fu},J4=Od(0,0,0,0);function hu(e){return parseFloat(e)||0}function km(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,s){var o=e["border-"+s+"-width"];return r+hu(o)},0)}function yY(e){for(var t=["top","right","bottom","left"],n={},r=0,s=t;r<s.length;r++){var o=s[r],c=e["padding-"+o];n[o]=hu(c)}return n}function bY(e){var t=e.getBBox();return Od(0,0,t.width,t.height)}function wY(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return J4;var r=wi(e).getComputedStyle(e),s=yY(r),o=s.left+s.right,c=s.top+s.bottom,u=hu(r.width),d=hu(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=km(r,"left","right")+o),Math.round(d+c)!==n&&(d-=km(r,"top","bottom")+c)),!NY(e)){var h=Math.round(u+o)-t,f=Math.round(d+c)-n;Math.abs(h)!==1&&(u-=h),Math.abs(f)!==1&&(d-=f)}return Od(s.left,s.top,u,d)}var CY=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof wi(e).SVGGraphicsElement}:function(e){return e instanceof wi(e).SVGElement&&typeof e.getBBox=="function"}}();function NY(e){return e===wi(e).document.documentElement}function xY(e){return th?CY(e)?bY(e):wY(e):J4}function _Y(e){var t=e.x,n=e.y,r=e.width,s=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(o.prototype);return q4(c,{x:t,y:n,width:r,height:s,top:n,right:t+r,bottom:s+n,left:t}),c}function Od(e,t,n,r){return{x:e,y:t,width:n,height:r}}var SY=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Od(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=xY(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),TY=function(){function e(t,n){var r=_Y(n);q4(this,{target:t,contentRect:r})}return e}(),EY=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new X4,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof wi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new SY(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof wi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new TY(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Z4=typeof WeakMap<"u"?new WeakMap:new X4,Q4=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=vY.getInstance(),r=new EY(t,n,this);Z4.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Q4.prototype[e]=function(){var t;return(t=Z4.get(this))[e].apply(t,arguments)}});var OY=function(){return typeof fu.ResizeObserver<"u"?fu.ResizeObserver:Q4}();const Jt=(e,t,n)=>{if(e!=null){if(typeof t=="string")return Object.prototype.hasOwnProperty.call(e,t)?typeof e[t]=="function"?e[t].call(void 0,...n):e[t]:void 0;if(Array.isArray(t))return t.map(r=>Jt(e,r,n)).filter(r=>r!==void 0).at(0)}},LY=e=>ls(e,"auto"),ls=(e,t="100%",n=null)=>{let r="";return/^null|undefined$/gi.test(`${e}`)?r=t:r=/^\d+\.?\d+$/.test(`${e}`)?`${e}px`:e,n&&(r=`calc(${r} - ${n})`),r},AY=e=>{const t=["row"];return typeof e=="string"&&t.push(e),Array.isArray(e)&&t.push(...e.filter(n=>kK.includes(n))),[...new Set(t)].map(n=>`bordered-${n}`).join(" ")},e5=(e,t,n=60,r=!1,s="throttle")=>{const o=()=>{typeof t=="function"&&t()},c=s==="debounce"?Cu(o,n):Tg(o),u=()=>Reflect.apply(c,void 0,[]),d=new OY(()=>{u()});return r&&typeof t=="function"&&t(),{start:()=>{d.observe(e)},disconnect:()=>{d.unobserve(e),d.disconnect()}}},k2=e=>{const{showHead:t,headHeight:n,thead:r={}}=e;return Object.assign({},{isShow:t,height:n},r)},VY=(e,t="ig")=>new RegExp(`${e}`.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),t),mu=(e,t,n)=>{let r;return(typeof e=="string"||typeof e=="number"||typeof e=="boolean")&&(r=e),typeof e=="object"&&(r=Sd(e,t)),n!=null&&n.length&&(n.forEach(s=>{if(typeof s=="function")r=s(r,e,t);else if(typeof r=="string"){const o=r.match(typeof s=="string"?VY(s):s);r=(o==null?void 0:o[1])??r}}),/^-?\d+.?\d*$/.test(r)&&(r=Number(r))),r},$Y=(e,t)=>Sd(e,t),Ys=(e,t)=>Array.isArray(e)?e:typeof e=="string"||typeof e=="object"?[e]:typeof e=="function"?Ys(Reflect.apply(e,void 0,t),t):[],DY=(e,t,n)=>{const r=IY(e,t,n);return r!==null?r:or()},IY=(e,t,n)=>typeof t.rowKey=="string"?t.rowKey===Xe.ROW_INDEX?`__ROW_INDEX_${n}`:t.rowKey:typeof t.rowKey=="function"?Reflect.apply(t.rowKey,void 0,[e]):null,Pm=(e,t,n)=>{const r=o=>o.field??o.id;return(o=>e.some(c=>r(c)===Jt(o,["field","type"],[o])))(t)&&n.length&&!n.includes(Jt(t,["field","type"],[t]))},gu=(e,t,n,r,s)=>typeof e[s]=="function"?Reflect.apply(e[s],void 0,[{column:e,colIndex:t,row:n,rowIndex:r}]):typeof e[s]=="number"?e[s]:1,kY=(e,t,n,r)=>{const s=gu(e,t,n,r,"colspan"),o=gu(e,t,n,r,"rowspan");return{colspan:s,rowspan:o}},t5=(e,t,n=[])=>{var h,f;const r=e.field,s=m=>mu(m,r,n),o=e.type==="index",c=(m,p,y,b)=>{const N=o?y:s(m)??"",w=o?b:s(p)??"";return typeof N=="number"&&typeof w=="number"?N-w:String.prototype.localeCompare.call(N,w)},u=typeof((h=e.sort)==null?void 0:h.sortFn)=="function"?(f=e.sort)==null?void 0:f.sortFn:c,d=(m,p,y,b)=>u(m,p,y,b)*(t===zt.DESC?-1:1);return t===zt.NULL?(m,p)=>!0:d},PY=e=>{const t={[zt.NULL]:3,[zt.ASC]:1,[zt.DESC]:2};return t[e]===void 0?zt.ASC:Object.keys(t)[(t[e]+1)%3]},MY=(e,t,n=[])=>typeof e=="string"?{value:e}:typeof e=="boolean"&&e?{value:zt.NULL}:typeof e=="object"&&e!==null?typeof e.sortFn=="function"?{value:"custom",...e}:Object.assign({},{sortFn:t5(t,e.value??zt.NULL,n)},e):null,pu=(e,{row:t,index:n,isCheckAll:r})=>typeof e.isRowSelectEnable=="boolean"?e.isRowSelectEnable!==!1:typeof e.isRowSelectEnable=="function"?e.isRowSelectEnable({row:t,index:n,isCheckAll:r}):!0,RY=(e,t,n)=>{const r=DY(e,n,t);return r!==void 0&&e[r]!==void 0?Sd(e,r):t},FY=(e,t)=>{const{value:n,sortFn:r,sortScope:s}=MY(e.sort??t.defaultSort,e)??{};return{type:n,fn:r,scope:s,active:!!e.sort,enabled:!!e.sort}},HY=e=>typeof e.filter=="object"?{...e.filter,enabled:!0}:{enabled:!!e.filter,checked:[]},Nc=e=>a.isProxy(e)?a.toRaw(e):e,BY=e=>{const t=ut("table"),n=a.reactive(new WeakMap),r=a.reactive([]),s=or(),o=a.reactive([]),c=a.reactive([]),u=a.reactive([]),d=new WeakMap,h=(U,ee={})=>{o.forEach(j=>j.active=!1);const Ce=o.find(j=>j.col===U);if(Ce){Object.assign(Ce,ee,{active:!0});return}o.push({col:U,...ee,active:!0})},f=(U,ee,Ce)=>{let j=0;return/^\d+\.?\d*(px)?$/.test(`${U[ee]}`)&&(j=Number(`${U[ee]}`.replace(/px/,"")),ce(U,Ve.WIDTH,j),W(U,{width:j,left:null,right:null})),/^\d+\.?\d*%$/.test(`${U[ee]}`)&&(j=Number(`${U[ee]}`.replace(/%/,""))/100*Ce,ce(U,Ve.WIDTH,j),W(U,{width:j,left:null,right:null})),j},m=U=>{let ee=U,Ce=Zs;const j=(Ae,Ie="width")=>{const ke=[];return Ae.forEach(Ue=>{const tt=f(Ue,Ie,U);ee=ee-tt,[void 0,null,"auto","undefined","null",""].includes(Ue[Ie])&&ke.push(Ue)}),ee>0&&ke.length&&(Ce=ee/ke.length),ke},ie=j(y);j(ie,"minWidth").forEach(Ae=>{const Ie=Ce>Zs?Ce:Zs;ce(Ae,Ve.WIDTH,Ie),W(Ae,{width:Ie,left:null,right:null})})},p=(U,ee={})=>{const Ce=c.find(j=>j.col===U);if(Ce){Object.assign(Ce,ee);return}c.push({col:U,...ee})},y=a.reactive([]),b=()=>{y.length=0,y.push(...r.filter(U=>!z(U)))},N=()=>{var U,ee;return e.rowDraggable?{minWidth:50,width:((U=e.rowDraggable)==null?void 0:U.width)??60,label:((ee=e.rowDraggable)==null?void 0:ee.label)??t.value.sort,type:"drag"}:null},w=(U=["rowspan","colspan"])=>r.some(ee=>U.some(Ce=>typeof ee[Ce]=="function"||/^\d$/.test(`${ee[Ce]}`))),C=a.computed(()=>w(["colspan"])),E=a.computed(()=>w(["rowspan"])),_=(U,ee,Ce)=>{let j=Ce;const ie=gu(U,ee,null,null,"colspan"),ve={skipCol:!1,skipColLen:0};return j>0&&(ve.skipColLen=j,ve.skipCol=!0,j=j-1),ie>1&&(ve.skipColLen=ie,j=ie-1),{...ve,skipColumnNum:j}},x=U=>{if(/^\d+/.test(`${U.minWidth}`))return U.minWidth;let ee=Zs;return U.sort&&(ee=ee+18),U.filter&&(ee=ee+28),ee},O=(U,ee)=>{const Ce=Z(U,Ve.LISTENERS);return Ce?Array.from(Ce==null?void 0:Ce.keys()).reduce((j,ie)=>{const ve=ie.split("_").slice(-1)[0];return Object.assign(j,{[ve]:Ae=>{Ce.get(ie).forEach(Ie=>Reflect.apply(Ie,void 0,[Ae,U,ee]))}})},{}):{}},T=U=>{if(!U.filter)return null;const ee=(ie,ve="ig")=>new RegExp(`${ie}`.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ve),Ce=(ie,ve)=>{const{match:Ae}=U.filter,Ie=mu(ve,Jt(U,"field",[U,ve]));return Ae!=="fuzzy"?ie.includes(Ie):ie.some(ke=>ee(ke,"img").test(Ie))};return typeof U.filter.filterFn=="function"?(ie,ve,Ae,Ie)=>U.filter.filterFn(ie,ve,U,Ae,Ie):(ie,ve)=>ie.length?Ce(ie,ve):!0},$=U=>{u.length=0;let ee=0;const Ce=[],j=N();j&&U.unshift(j);const ie=(ke,Ue=1)=>{ke.length&&ee<Ue&&(ee=Ue),ke.forEach(tt=>ie(tt.children??[],Ue+1))};ie(U);const ve=(ke,Ue)=>{if(ke){const tt=d.get(ke);tt.thColspan=tt.thColspan+Ue,tt.offsetLeft=tt.offsetLeft+Ue,ve(tt.parent,Ue)}},Ae=(ke,Ue,tt,at)=>{var ys,oa,Ma,bs,ws;const qe=a.toRaw(ke);let At=at;u[Ue]===void 0&&(u[Ue]=[]);const gt=!!(((ys=qe.children)==null?void 0:ys.length)??!1);(((oa=qe.children)==null?void 0:oa.length)??!1)||Ce.push(qe),d.has(qe)||d.set(qe,{thColspan:1,thRowspan:1,isGroup:gt,offsetLeft:at});const Et=d.get(qe),Ke=((Ma=qe.children)==null?void 0:Ma.length)??0,Mt=((bs=qe.children)==null?void 0:bs.length)??1,Pa=Ke>0?1:ee-Ue,Di=At+(Ke>0?Ke-1:0);return Object.assign(Et,{thColspan:Mt>0?Mt:1,parent:tt,thRowspan:Pa,offsetLeft:Di}),u[Ue].push(qe),Mt>1&&ve(tt,Mt-1),(ws=qe.children)==null||ws.forEach((Ii,ki)=>{At=At+Ae(Ii,Ue+1,qe,At+ki)}),Ke>0?Ke-1:0};let Ie=0;return U.forEach((ke,Ue)=>{Ie=Ie+Ae(ke,0,null,Ie+Ue)}),Ce},L=U=>d.get(U),P=()=>{o.length=0;let U=0;(r||[]).forEach((ee,Ce)=>{const{skipCol:j,skipColumnNum:ie,skipColLen:ve}=C.value?_(ee,Ce,U):{skipCol:!1,skipColumnNum:0,skipColLen:0};if(U=ie,!n.has(ee)){const{type:Ae,fn:Ie,scope:ke,active:Ue,enabled:tt}=FY(ee,e),at=T(ee),qe=e.settings??{},At=HY(ee);At.enabled&&p(ee,{[Ve.COL_FILTER_FN]:at,[Ve.COL_FILTER_VALUES]:At.checked??[]}),tt&&h(ee,{[Ve.COL_SORT_TYPE]:Ae,[Ve.COL_SORT_FN]:Ie,[Ve.COL_SORT_SCOPE]:ke}),n.set(ee,{[Ve.CALC_WIDTH]:void 0,[Ve.RESIZE_WIDTH]:void 0,[Ve.COL_RECT]:a.reactive({width:null,left:null,right:null,height:null}),[Ve.COL_MIN_WIDTH]:x(ee),[Ve.LISTENERS]:new Map,[Ve.WIDTH]:ee.width,[Ve.IS_HIDDEN]:Pm(qe.fields??[],ee,qe.checked??[]),[Ve.COL_SORT_TYPE]:a.ref(Ae),[Ve.COL_SORT_FN]:Ie,[Ve.COL_FILTER_OBJ]:At,[Ve.COL_FILTER_FN]:at,[Ve.COL_FILTER_SCOPE]:void 0,[Ve.COL_SORT_SCOPE]:ke,[Ve.COL_SORT_ACTIVE]:a.ref(Ue),[Ve.COL_IS_DRAG]:!1,[Ve.COL_SPAN]:{skipCol:j,skipColumnNum:ie,skipColLen:ve},[Ve.COL_UID]:or(),[Ve.SELECTION_DISABLED]:!1,[Ve.SELECTION_INDETERMINATE]:!1,[Ve.SELECTION_VAL]:!1,[Ve.COL_RESIZEABLE]:ee.resizable!==!1,[Ve.COL_FIXED_STYLE]:a.reactive({})})}Object.assign(n.get(ee),{[Ve.COL_SPAN]:{skipCol:j,skipColumnNum:ie,skipColLen:ve},[Ve.COL_MIN_WIDTH]:x(ee)})})},I=(U,ee)=>{ce(U,Ve.COL_FIXED_STYLE,ee)},A=U=>Z(U,Ve.COL_FIXED_STYLE)??{},D=U=>Z(U,Ve.COL_RECT),X=U=>Z(U,Ve.CALC_WIDTH),M=U=>Z(U,Ve.WIDTH),W=(U,{left:ee,right:Ce,width:j,height:ie})=>{const ve=D(U),Ae={left:ee??ve.left,right:Ce??ve.right,width:j??ve.width,height:ie??ve.height};ce(U,Ve.COL_RECT,Ae)},ne=yn.debounce((U,ee)=>{r.length=0,r.push(...$(U)),P(),b(),ee==null||ee()}),B=(U,ee=!1)=>{ce(U,Ve.IS_HIDDEN,ee)},k=(U,ee)=>{ce(U,Ve.RESIZE_WIDTH,ee)},re=(U,ee)=>{const{type:Ce,fn:j,scope:ie,active:ve}=ee,Ae={[Ve.COL_SORT_TYPE]:Ce,[Ve.COL_SORT_FN]:j,[Ve.COL_SORT_ACTIVE]:ve,[Ve.COL_SORT_SCOPE]:ie};[Ve.COL_SORT_TYPE,Ve.COL_SORT_FN,Ve.COL_SORT_ACTIVE,Ve.COL_SORT_SCOPE].forEach(Ie=>{Ae[Ie]!==void 0&&ce(U,Ie,Ae[Ie])})},J=(U,ee)=>{n.has(U)&&Object.assign(n.get(U)[Ve.COL_FILTER_OBJ],ee)},K=[Ve.WIDTH],F=(U,ee=K)=>Z(U,ee[0])??Z(U,ee[1])??Z(U,ee[2]),z=U=>Z(U,Ve.IS_HIDDEN)??!1,Y=U=>Z(U,Ve.COL_UID),te=(U,ee,Ce)=>{[Ve.COL_SORT_FN,Ve.COL_SORT_SCOPE,Ve.COL_SORT_TYPE].includes(ee)&&h(U,{[ee]:Ce}),[Ve.COL_FILTER_FN,Ve.COL_FILTER_VALUES].includes(ee)&&p(U,{[ee]:Ce})},ue=(U,ee)=>{const Ce=y.findIndex(ve=>ve===U),j=F(U)-ee,ie=y[Ce+1];ie&&ce(ie,Ve.WIDTH,F(ie)+j)},ce=(U,ee,Ce)=>{te(U,ee,Ce);const j=n.get(U);if(j&&Object.prototype.hasOwnProperty.call(j,ee)){if(a.isRef(j[ee])){j[ee].value=Ce;return}j[ee]=Ce}},be=(U,ee)=>{const Ce=ee||U.checked||[],j=U.fields||[];r.forEach(ie=>{ce(ie,Ve.IS_HIDDEN,Pm(j,ie,Ce))})},Z=(U,ee)=>{var j;const Ce=(j=n.get(U))==null?void 0:j[ee];return a.isRef(Ce)?Ce.value:Ce},me=(U,ee)=>{var Ce;return(Ce=n.get(U))==null?void 0:Ce[ee]},ae=(U,ee)=>({[`${s}-column-${ee}`]:!1,column_fixed:!!U.fixed,column_fixed_left:!!U.fixed,column_fixed_right:U.fixed==="right"});return{needColSpan:C,needRowSpan:E,tableColumnSchema:n,tableColumnList:r,visibleColumns:y,debounceUpdateColumns:ne,sortColumns:o,filterColumns:c,columnGroup:u,columnGroupMap:d,clearColumnSort:()=>{r.forEach(U=>{ce(U,Ve.COL_SORT_ACTIVE,!1),ce(U,Ve.COL_FILTER_FN,void 0)})},clearSelectionAll:()=>{const U=y.find(ee=>ee.type==="selection");U&&(ce(U,Ve.SELECTION_VAL,!1),ce(U,Ve.SELECTION_INDETERMINATE,!1))},formatColumns:P,flatColumnTemplate:$,isHiddenColumn:z,getColumnId:Y,getColumnOrderWidth:F,getColumnAttribute:Z,getHeadColumnClass:(U,ee)=>({...ae(U,ee)}),getColumnClass:ae,getFixedStlye:A,getColumnRect:D,getColumnCustomClass:(U,ee)=>{const Ce=U.className;if(Ce){if(typeof Ce=="function")return Ce(ee);if(typeof Ce=="string")return Ce}return""},getColumnRefAttribute:me,getColumnCalcWidth:X,getColumnWidth:M,getLeftColumnsWidth:(U,ee=!1)=>{let Ce=!0,j=0,ie=0;for(;Ce&&ie<y.length;){if(U===y[ie]){ee&&(j=j+M(y[ie])),Ce=!1;break}j=j+M(y[ie]),ie=ie+1}return j},getGroupAttribute:L,getPreColumn:U=>{const Ce=y.findIndex(j=>j===U)-1;return y[Ce]},getColumnIndex:U=>y.findIndex(ee=>ee===U),resolveEventListener:O,setColumnIsHidden:B,setColumnResizeWidth:k,setColumnSortOption:re,setColumnFilterOption:J,setColumnAttributeBySettings:be,setColumnAttribute:ce,setColumnSortActive:(U,ee)=>{e.colSortBehavior===Y4.independent&&r.forEach(Ce=>{ce(Ce,Ve.COL_SORT_ACTIVE,!1)}),ce(U,Ve.COL_SORT_ACTIVE,ee)},setFixedStyle:I,setColumnRect:W,setVisibleColumns:b,setNextColumnWidth:ue,resolveColsCalcWidth:m}},zY=(e,t,n)=>{if(!e.rowDraggable)return{};const r=document.createElement("div");r.style.setProperty("height","20px"),r.style.setProperty("width","100%"),r.style.setProperty("background","#E2EDFF"),r.style.setProperty("cursor","move"),["dragenter","dragover"].forEach(w=>{r.addEventListener(w,C=>{C.preventDefault(),C.stopPropagation(),C.dataTransfer.dropEffect="move"})});let s=null,o="";const c=(w,C)=>{if(C==="--top"){w.parentNode.insertBefore(r,w);return}if(w.nextElementSibling===null){w.parentNode.append(r);return}w.parentNode.insertBefore(r,w.nextElementSibling)},u=w=>{e.rowDraggable&&(w==null||w())},d=w=>w.target.closest("tr"),h=(w,C)=>{const{y:E}=C,{top:_,bottom:x}=w.getBoundingClientRect(),O=E-_>x-E?"--bottom":"--top";f(w),w.classList.add(O),c(w,O)},f=(w,C=["--bottom","--top"])=>{C.forEach(E=>w.classList.remove(E))};return{onDragenter:w=>{const C=d(w);w.preventDefault(),w.stopPropagation(),u(()=>{w.dataTransfer.dropEffect="move",C.classList.add("--drag-enter"),h(C,w),s=C})},onDragleave:w=>{u(()=>{const C=d(w);o=C.classList.contains("--bottom")?"--bottom":"--top",f(C,["--drag-enter","--bottom","--top"])})},onDragstart:w=>{u(()=>{const C=d(w);r.style.setProperty("height",`${C.offsetHeight}px`),r.style.setProperty("width",`${C.offsetWidth}px`),C.classList.add("--drag-start"),w.dataTransfer.setDragImage(C,0,0),w.dataTransfer.setData("text/plain",null),w.dataTransfer.dropEffect="move";const{rowIndex:E}=w.target.dataset;w.dataTransfer.setData("data-row-index",E)})},onDragover:w=>{w.preventDefault(),w.stopPropagation(),w.dataTransfer.dropEffect="move";const C=d(w);h(C,w)},onDragend:w=>{var O;if(w.preventDefault(),w.stopPropagation(),r.remove(),!s)return;const C=s,{rowIndex:E}=C.dataset;let _=Number(E);const x=(O=w.target.dataset)==null?void 0:O.rowIndex;o==="--bottom"&&(_=_+1),t.changePageRowIndex(Number(x),_),s=null,o="",n.emit(Tt.DRAG_END,{sourceEvent:w,data:t.pageRowList})}}},UY=(e,t)=>{const n=a.computed(()=>t.visibleColumns.filter(f=>!!f.fixed&&f.fixed!=="right")),r=a.computed(()=>t.visibleColumns.filter(f=>!!f.fixed&&f.fixed==="right")),s=a.reactive({left:0,width:"0"}),o=a.reactive({right:0,width:"0"}),c=()=>{let f=0;const{length:m}=r.value;for(let y=m-1;y>=0;y--){const b=r.value[y],N=t.getColumnWidth(b);t.setColumnRect(b,{right:f,width:N}),t.setFixedStyle(b,{right:`${f}px`}),f=f+N}let p=0;n.value.forEach(y=>{const b=t.getColumnWidth(y);t.setColumnRect(y,{left:p,width:b}),t.setFixedStyle(y,{left:`${p}px`}),p=p+b}),s.width=`${p}px`,o.width=`${f}px`},u=()=>n.value.length>0?a.createVNode("div",{style:s,class:"column_fixed column_fixed_left"},null):null,d=()=>{if(r.value.length>0)return a.createVNode("div",{style:o,class:"column_fixed column_fixed_right"},null)};return{renderFixedRows:()=>[u(),d()],resolveFixedColumnStyle:c}},jY=a.defineComponent({name:"GhostBody",setup(e,t){const n={zIndex:-1,width:0,height:0,display:"none"};return()=>{var r,s;return a.createVNode("div",{style:n},[(s=(r=t.slots).default)==null?void 0:s.call(r)])}}}),WY=(e,t)=>{const n=a.toRef(e,"scrollLoading"),r=()=>{var c;return typeof n.value=="boolean"?{loading:!!n.value||(((c=e.fixedBottom)==null?void 0:c.loading)??!1),inline:!0,title:"",size:os.Normal,mode:r2.Default,indicator:null}:n.value},s=a.computed(()=>{var c;return n.value!==null&&(typeof n.value=="boolean"&&n.value||typeof n.value=="object")||(((c=e.fixedBottom)==null?void 0:c.loading)??!1)});return{renderScrollLoading:()=>{var c,u,d,h;if(s.value){const{loading:f,size:m,mode:p,title:y,inline:b,indicator:N}=r();return((u=(c=t.slots).fixedBottom)==null?void 0:u.call(c))??a.createVNode(La,{loading:f,size:m,mode:p,title:y,inline:b,indicator:N},null)}return((h=(d=t.slots).fixedBottom)==null?void 0:h.call(d))??null}}},GY=(e,t)=>{const n=a.ref(null),r=a.ref(null),s=a.ref(null),o=a.ref(null),c=a.ref(0),u=a.ref(0),d=a.ref(0),h=a.ref(-1e4),f=a.ref(0),m=a.reactive({}),p=a.reactive([]),y=a.ref(Oa),b=a.ref(1),N=a.computed(()=>{var j,ie,ve;return(j=t.slots)!=null&&j.fixedBottom&&((ie=e.fixedBottom)==null?void 0:ie.position)==="relative"?((ve=e.fixedBottom)==null?void 0:ve.height)??Oa:0}),{resolveClassName:w}=xe(),{renderScrollLoading:C}=WY(e,t),E=a.computed(()=>ze({[w("table")]:!0},AY(e.border))),_=a.computed(()=>({height:ls(e.height),maxHeight:ls(e.maxHeight),minHeight:ls(e.minHeight)})),x=a.computed(()=>ze({[w("table-head")]:!0,"has-settings":!!e.settings,"has-group":b.value>1})),O=()=>{var ve,Ae,Ie,ke;const j=f.value>0?"0 0 10px rgb(0 0 0 / 12%)":null,ie=c.value>0?"0 0 10px rgb(0 0 0 / 12%)":null;(Ae=(ve=n.value)==null?void 0:ve.style)==null||Ae.setProperty("--shadow-right",j),(ke=(Ie=n.value)==null?void 0:Ie.style)==null||ke.setProperty("--shadow-left",ie)},T=Tg(()=>{var j,ie,ve,Ae,Ie,ke,Ue,tt,at,qe;(ie=(j=n.value)==null?void 0:j.style)==null||ie.setProperty("--drag-offset-x",`${h.value+c.value}px`),(Ae=(ve=n.value)==null?void 0:ve.style)==null||Ae.setProperty("--drag-offset-h-x",`${h.value-2}px`),(ke=(Ie=n.value)==null?void 0:Ie.style)==null||ke.setProperty("--translate-y",`${u.value}px`),(tt=(Ue=n.value)==null?void 0:Ue.style)==null||tt.setProperty("--translate-x",`${c.value}px`),(qe=(at=n.value)==null?void 0:at.style)==null||qe.setProperty("--translate-x-1",`-${c.value}px`),O()}),$=j=>{c.value=j,T()},L=j=>{b.value=j},P=j=>{u.value=j,T()},I=()=>{var j,ie,ve,Ae,Ie,ke,Ue,tt,at,qe;(ie=(j=n.value)==null?void 0:j.style)==null||ie.setProperty("--drag-offset-x","-1000px"),(Ae=(ve=n.value)==null?void 0:ve.style)==null||Ae.setProperty("--drag-offset-h-x","-1000px"),(ke=(Ie=n.value)==null?void 0:Ie.style)==null||ke.setProperty("--translate-y","0px"),(tt=(Ue=n.value)==null?void 0:Ue.style)==null||tt.setProperty("--translate-x","0px"),(qe=(at=n.value)==null?void 0:at.style)==null||qe.setProperty("--translate-x-1","0px")},A=j=>{h.value=j,T()},D=k2(e),X=a.computed(()=>Jt(D,"height",["thead"])*b.value),M=a.computed(()=>{var j;return{"--row-height":`${X.value}px`,"--background-color":W4[((j=e.thead)==null?void 0:j.color)??Td.DEF1],paddingRight:e.scrollbar?null:`${j4}px`}}),W={[w("table-body")]:!0,"is-bk-scrollbar":e.scrollbar},ne=a.computed(()=>ze({[w("table-footer")]:!0,"is-hidden":ue.value===0})),B=j=>a.createVNode("div",{ref:n,style:_.value,class:E.value},[j,a.createVNode(jY,null,{default:()=>{var ie,ve;return[(ve=(ie=t.slots).default)==null?void 0:ve.call(ie)]}})]),k=(j,ie,ve)=>a.createVNode("div",{ref:r,style:M.value,class:x.value},[j==null?void 0:j(),a.createVNode("div",{class:"col-resize-drag"},null),a.createVNode("div",{class:we},[ve==null?void 0:ve()]),ie==null?void 0:ie()]),re=a.computed(()=>({position:"sticky",top:0,zIndex:2,...e.prependStyle||{}})),J=()=>t.slots.prepend?a.createVNode("div",{style:re.value,class:"prepend-row"},[t.slots.prepend()]):null,K=a.ref("auto"),F=a.computed(()=>{if(/^\d+\.?\d*(px|%)$/.test(`${_.value.maxHeight}`)){const j=e.showHead?X.value:0,ie=ue.value+j+N.value;return`calc(${_.value.maxHeight} - ${ie}px)`}return null}),z=j=>j-X.value-N.value-ue.value,Y=(j,ie=!0)=>{if(ie){K.value=z(j);return}K.value=j},te=j=>{K.value=j},ue=a.ref(0),ce=a.computed(()=>({"--footer-height":`${ue.value}px`})),be=j=>{ue.value=j},Z=yn.debounce((...j)=>{t.emit(Tt.SCROLL_BOTTOM,{...j})}),me=()=>{var ve,Ae,Ie,ke;const j=((Ae=(ve=s.value)==null?void 0:ve.refRoot)==null?void 0:Ae.scrollWidth)??0,ie=((ke=(Ie=s.value)==null?void 0:Ie.refRoot)==null?void 0:ke.offsetWidth)??0;f.value=j-ie-(c==null?void 0:c.value)},ae=j=>{y.value=j},pe=j=>{d.value=m.bottom??0;const ie=j[1],{translateX:ve,translateY:Ae,pos:Ie={}}=ie;$(ve),P(Ae),me(),Object.assign(m,Ie||{});const{bottom:ke}=Ie;ke<=2&&d.value>ke&&Z({...Ie,translateX:ve,translateY:Ae})},G={column_drag_line:!0,"offset-x":!0,"resize-column":!0},fe=a.computed(()=>({[w("table-body-content")]:!0,[w("stripe")]:e.stripe})),we=a.computed(()=>({[w("table-fixed")]:!0,"has-virtual-scroll":e.virtualEnabled})),le=w("table-fixed-bottom"),q=a.computed(()=>{var j,ie,ve;return{minHeight:`${((j=e.fixedBottom)==null?void 0:j.minHeight)??Oa}px`,position:((ie=e.fixedBottom)==null?void 0:ie.position)??"absolute",height:((ve=e.fixedBottom)==null?void 0:ve.height)??null}});a.onMounted(()=>{me(),I()});const se=()=>{const j=C==null?void 0:C();return j?a.createVNode("div",{style:q.value,class:le},[j]):null};return{renderContainer:B,renderHeader:k,renderBody:(j,ie,ve)=>a.createVNode($i,{ref:s,height:K.value,class:W,contentClassName:fe.value,enabled:e.virtualEnabled,lineHeight:y.value,list:j,maxHeight:F.value,rowKey:e.rowKey,scrollEvent:!0,scrollbar:{enabled:e.scrollbar},throttleDelay:120,onContentScroll:pe},{beforeContent:()=>J(),default:Ae=>ie==null?void 0:ie((Ae==null?void 0:Ae.data)??[]),afterSection:()=>[a.createVNode("div",{class:G},null),a.createVNode("div",{class:we.value},[ve==null?void 0:ve()])]}),renderFooter:j=>a.createVNode("div",{ref:o,style:ce.value,class:ne.value},[j]),renderFixedBottom:()=>se(),getBodyHeight:z,setBodyHeight:Y,setVirtualBodyHeight:te,setFootHeight:be,setTranslateX:$,setDragOffsetX:A,setFixedColumns:j=>{p.length=0,p.push(...j)},setOffsetRight:me,setLineHeight:ae,setHeaderRowCount:L,initRootStyleVars:I,refRoot:n,refHead:r,refBody:s,refFooter:o}},KY=(e,t,n=[],r=!0)=>{let s=null;const o=()=>{s&&(s.disconnect(),s=null)};return a.watch(e,()=>{Jr(e.value)&&(o(),s=e5(e.value,()=>{t==null||t.apply(...n)},60,!0,"debounce"),r&&s.start())},{flush:"post",immediate:!0}),{instance:s}},YY=e=>{const t=a.reactive({enabled:!1,count:0,limit:10,current:1,align:"right",layout:["total","limit","list"]}),n=a.ref(!0),r=a.computed(()=>Math.ceil(t.count/t.limit)),s=u=>{Object.assign(t,{enabled:!!e.pagination},u),t.current>r.value&&(t.current=1)},o=(u=!0)=>{n.value=!u};a.watch(()=>[e.pagination],()=>{typeof e.pagination=="object"&&s(a.toRaw(e.pagination)),t.enabled=n.value&&!!e.pagination},{immediate:!0,deep:!0}),a.watch(()=>[e.data],()=>{e.remotePagination||s({count:e.data.length})},{immediate:!0});const c=a.computed(()=>t.enabled&&t.count>0);return{options:t,isShowPagination:c,setPagination:s,disabledPagination:o}},XY=a.defineComponent({name:"BodyEmpty",props:{list:v.array.def([]),filterList:v.array.def([]),emptyText:v.string},emits:["change"],setup(e){const t=ut("table"),n=a.computed(()=>e.emptyText===void 0?t.value.emptyText:e.emptyText),r=a.computed(()=>e.list.length===0?"empty":"search-empty");return()=>a.createVNode(_d,{description:n.value,scene:"part",type:r.value},null)}}),nh=a.defineComponent({name:"TableCell",props:{column:Ed,row:v.any.def({}),parentSetting:I2,title:v.string.def(void 0),observerResize:v.bool.def(!0),intersectionObserver:v.bool.def(!1),isHead:v.bool.def(!1),isExpandChild:v.bool.def(!1),headExplain:v.string,resizerWay:Pe("ResizerWay",{default:K4.DEBOUNCE})},setup(e,{slots:t}){const n=a.ref(),r=a.ref(!1),s=a.ref(!e.intersectionObserver),o=a.computed(()=>({textAlign:e.column.textAlign,minWidth:ls(e.column.minWidth,null)})),c=()=>{if(/boolean|object/.test(typeof e.column.showOverflowTooltip)&&e.column.showOverflowTooltip!==null){const{content:C="",mode:E=void 0,popoverOption:_={}}=e.column.showOverflowTooltip,x={showOverflowTooltip:{content:C,disabled:!e.column.showOverflowTooltip,mode:E,resizerWay:void 0,watchCellResize:void 0,popoverOption:_,allowHtml:!1}};return e.parentSetting!==null&&typeof e.parentSetting=="object"&&(Object.assign(x.showOverflowTooltip,e.parentSetting,{disabled:!e.column.showOverflowTooltip}),typeof e.column.showOverflowTooltip=="object"&&Object.assign(x.showOverflowTooltip,e.column.showOverflowTooltip)),x}return{showOverflowTooltip:e.parentSetting}};let u=null;const d=(C=!1)=>{var _;const E=f();return C?((_=E==null?void 0:E.cloneNode)==null?void 0:_.call(E,!0))??"":(E==null?void 0:E.innerText)??""},h=()=>{var P,I;const{showOverflowTooltip:C=!1}=c();let E=!0,{resizerWay:_}=e;const x=d(C.allowHtml);let O=()=>x,T={},$="auto",L=!0;if(typeof C=="boolean"&&(E=!C),typeof C=="object"&&(E=C.disabled,T=C.popoverOption,_=C.resizerWay||"debounce",O=()=>C.content||x,typeof C.content=="function"&&(O=()=>C.content(e.column,e.row)),L=C.watchCellResize,$=C.mode||"auto"),typeof E=="function"&&(E=Reflect.apply(E,this,[e.column,e.row])),e.column.explain){let A=!0;typeof C=="boolean"&&(A=!C),typeof C=="object"&&(A=C.disabled),E=A,$="static",typeof e.column.explain=="object"&&(O=()=>Jt(e.column.explain,"content",[e.column,e.row])||x)}return e.isHead&&(E=!(((I=(P=e.column)==null?void 0:P.showOverflowTooltip)==null?void 0:I.showHead)??!0),$="auto",O=()=>{var A,D;return((D=(A=f())==null?void 0:A.cloneNode)==null?void 0:D.call(A,!0))??""},e.headExplain&&($="static",O=()=>e.headExplain)),e.column.type==="expand"&&!e.isHead&&!e.isExpandChild&&(E=!0),{disabled:E,content:O,mode:$,resizerWay:_,watchCellResize:L,popoverOption:T}},f=()=>{var C,E;return e.isHead?(E=(C=n.value)==null?void 0:C.querySelector)==null?void 0:E.call(C,".head-text"):n.value},m=()=>{const C=f();if(!C||!Jr(C))return;const{mode:E,disabled:_}=h();if(r.value=!_,E==="auto"&&(r.value=qm(C)),E==="static"&&(r.value=!0),r.value){const x=a.ref(h());u===null&&(u=u2(C,{disabled:x.value.disabled,content:x.value.content,mode:x.value.mode,popoverOption:x.value.popoverOption}))}else u==null||u.destroyInstance(C),u=null};let p=null;const y=()=>{const{disabled:C,resizerWay:E,watchCellResize:_}=h();C||(m(),_!==!1&&e.observerResize&&(p=e5(n.value,()=>{m()},60,!0,E),p.start()))};let b=null;const N=()=>{e.intersectionObserver&&(b=new IntersectionObserver(C=>{if(C[0].intersectionRatio<=0){s.value=!1,u==null||u.destroyInstance(n.value);return}s.value=!0,y()},{threshold:.5}),b==null||b.observe(n.value))};a.onMounted(()=>{N(),s.value&&y()}),a.onBeforeUnmount(()=>{p==null||p.disconnect(),p=null,u==null||u.destroyInstance(n.value),b==null||b.disconnect(),b=null});const w=e.headExplain||e.column.explain;return()=>{var C;return a.createVNode("div",{ref:n,style:o.value,class:["cell",e.column.type,w?"explain":""]},[s.value?(C=t.default)==null?void 0:C.call(t):"--"])}}}),xc=a.defineComponent({name:"TableRow",render(){var e,t;return a.createVNode(a.Fragment,null,[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),qY=({props:e,rows:t,ctx:n,columns:r,row:s,index:o,column:c,isChild:u=!1,multiShiftKey:d})=>{const{isShiftKeyDown:h,getStore:f,setStore:m,setStoreStart:p,clearStoreStart:y}=d,b=()=>{const T=(A,D)=>{D.stopImmediatePropagation(),D.preventDefault(),D.stopPropagation(),h.value||(A?p(s,o):y()),t.setRowSelection(s,A),r.setColumnAttribute(c,Ve.SELECTION_INDETERMINATE,t.getRowIndeterminate()),r.setColumnAttribute(c,Ve.SELECTION_VAL,t.getRowCheckedAllValue()),n.emit(Tt.ROW_SELECT,{row:s,index:o,checked:A,data:e.data}),n.emit(Tt.ROW_SELECT_CHANGE,{row:s,index:o,checked:A,data:e.data})},$=()=>{if(h.value){const A=m(s,o);if(A){const{start:D,end:X}=f(),M=D.index<X.index?D.index:X.index,W=D.index<X.index?X.index:D.index;(t.pageRowList.slice(M,W+1)??[]).forEach(ne=>{pu(e,{row:s,index:o,isCheckAll:!1})&&t.setRowSelection(ne,!0)})}return n.emit(Tt.ROW_SELECT,{row:s,index:o,checked:!0,data:e.data,isShiftKeyDown:!0}),n.emit(Tt.ROW_SELECT_CHANGE,{row:s,index:o,checked:!0,data:e.data,isShiftKeyDown:!0}),Promise.resolve(!A)}return Promise.resolve(!0)},L=t.getRowAttribute(s,Xe.ROW_SELECTION_INDETERMINATE),P=t.getRowAttribute(s,Xe.ROW_SELECTION),I=pu(e,{row:s,index:o,isCheckAll:!1});return a.createVNode(sn,{beforeChange:$,disabled:!I,indeterminate:L,modelValue:P,onChange:T},null)},N=T=>Array.isArray(e.isEmptyCell)?e.isEmptyCell.some($=>$===T):typeof e.isEmptyCell=="function"?e.isEmptyCell({cellText:T,row:s,column:c}):yn.isEmpty(T),w=()=>{var L;const T=()=>{if(Jt(c,"type",[c,s])==="index")return t.getRowAttribute(a.toRaw(s),Xe.ROW_INDEX);const I=Jt(c,"field",[c,s]),A=mu(s,I);if(typeof c.render=="function")return C();if(typeof A=="boolean"||typeof A=="number")return`${A}`;if(typeof A=="object"&&A!==null)return JSON.stringify(a.unref(A));if(N(A)){const{emptyCellText:D}=e;if(D)return typeof D=="function"?D({row:s,column:c,index:o}):D}return A},$={expand:()=>u?"":x(),selection:()=>b(),drag:O};return((L=$[c.type])==null?void 0:L.call($,s,c,o,t))??T()},C=()=>{const T=mu(s,Jt(c,"field",[c,s])),$=s;return c.render({cell:T,data:$,row:s,column:c,index:o,rows:t.tableRowList.value})},E=()=>{var L,P;const $=t.getRowAttribute(s,Xe.ROW_EXPAND)?a.createVNode(Zo,null,null):a.createVNode(nl,null,null);return a.createVNode("span",null,[[$,((P=(L=n.slots).expandContent)==null?void 0:P.call(L,s))??""]])},_=T=>{t.setRowExpand(s,!t.getRowAttribute(s,Xe.ROW_EXPAND)),n.emit(Tt.ROW_EXPAND_CLICK,{row:s,column:c,index:o,rows:t.tableRowList.value,e:T})},x=()=>{const T=()=>{var $,L;return typeof c.render=="function"?C():((L=($=n.slots).expandCell)==null?void 0:L.call($,{row:s,column:c,index:o,rows:t}))??E()};return a.createVNode("span",{class:"expand-btn-action",onClick:$=>_($)},[T()])},O=()=>{var P,I,A;const T=((P=e.rowDraggable)==null?void 0:P.render)??e.rowDraggable;if(typeof T=="function")return T(s,c,o,t.tableRowList.value);const $=((I=e.rowDraggable)==null?void 0:I.fontSize)??"14px";return((A=e.rowDraggable)==null?void 0:A.icon)??a.createVNode(ed,{style:`'--font-size: ${$};'`,class:"drag-cell"},null)};return{renderCell:w}};function Mm(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const _c=32,JY=a.defineComponent({name:"HeadFilter",directives:{bkTooltips:sa},props:{column:Ed,height:v.number.def(_c)},emits:["change","filterSave","reset"],setup(e,{emit:t}){const{resolveClassName:n}=xe(),r=ut("table"),s=a.computed(()=>{var B;return(B=e.column)==null?void 0:B.filter}),o=a.computed(()=>{var B;return((B=s.value)==null?void 0:B.checked)??[]}),c=a.ref(""),u=a.ref(),d=a.ref([]),h=a.reactive({isOpen:!1,checked:[]});h.checked.push(...o.value),a.watch(()=>o,()=>{h.checked.length=0,h.checked=[],h.checked.push(...o.value)},{deep:!0});const f=a.computed(()=>ze({[n("table-head-action")]:!0,"column-filter":!0,"--row-height":`${e.height}px`,active:h.checked.length,opened:h.isOpen})),m=ze({[n("table-head-filter")]:!0}),p=a.ref(null),y=B=>{h.isOpen=B,B&&setTimeout(()=>{p.value.reset()}),B||(c.value="")},b=`light ${n("table-head-filter")}`,N=a.computed(()=>{const{list:B=[]}=s.value;return B.filter(re=>{const J=x(c.value);return J.test(re.label)||J.test(re.text)||J.test(re.value)})}),w=5,C=a.computed(()=>{var B;return((B=s.value)==null?void 0:B.maxHeight)??_c*w}),E=a.computed(()=>{const{height:B,list:k=[]}=s.value;return B||k.length*_c}),_=a.computed(()=>{const B=_c*2;return N.value.length>w?C.value:B}),x=(B,k="ig")=>new RegExp(`${B}`.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),k),O=()=>{T(!0),t("filterSave",h.checked),h.isOpen=!1},T=(B=!1)=>{const{disabled:k}=L(A,r.value.confirm);if(k||B){if(s.value==="custom"){t("change",h.checked,null),h.isOpen=!1;return}t("change",h.checked)}},$=()=>{h.checked.length&&(h.checked.length=0,h.isOpen=!1,t("change",h.checked),t("reset",h.checked))},L=(B,k)=>({disabled:B==="disabled"||B===!1,text:typeof B=="string"?B:k}),P=B=>{var J,K,F;const k=d.value[`list-item-${B.value}-ref`],re=(J=u.value)==null?void 0:J.querySelector(".bk-checkbox-label");if(k&&re){const Y=I(k),te=I(re),ue=I(u.value),ce=(k==null?void 0:k.offsetWidth)+(Y==null?void 0:Y.borderSize)+(Y==null?void 0:Y.marginSize)+(Y==null?void 0:Y.paddingSize)+(ue==null?void 0:ue.borderSize)+(ue==null?void 0:ue.marginSize)+(ue==null?void 0:ue.paddingSize)+(te==null?void 0:te.marginSize)+(te==null?void 0:te.paddingSize);if((k==null?void 0:k.offsetWidth)>((K=u.value)==null?void 0:K.offsetWidth)||16+ce>((F=u.value)==null?void 0:F.offsetWidth))return!1}return!0},I=B=>{if(!B)return{paddingSize:0,borderSize:0,marginSize:0};const k=getComputedStyle(B),re=Number.parseFloat(k.getPropertyValue("padding-left"))+Number.parseFloat(k.getPropertyValue("padding-right")),J=Number.parseFloat(k.getPropertyValue("border-left-width"))+Number.parseFloat(k.getPropertyValue("border-right-width")),K=Number.parseFloat(k.getPropertyValue("margin-left"))+Number.parseFloat(k.getPropertyValue("margin-right"));return{paddingSize:re,borderSize:J,marginSize:K}},{btnSave:A,btnReset:D}=s.value,X=()=>{const{disabled:B,text:k}=L(A,r.value.confirm);return B?a.createVNode("span",{class:"btn-filter-save disabled"},[k]):a.createVNode(Ht,{style:"width: 56px; margin-right: 8px;",size:"small",theme:"primary",onClick:O},Mm(k)?k:{default:()=>[k]})},M=()=>{const{disabled:B,text:k}=L(D,r.value.reset);return B?"":a.createVNode(Ht,{style:"width: 56px;",disabled:h.checked.length===0,size:"small",onClick:$},Mm(k)?k:{default:()=>[k]})},W=(B,k)=>{const re=new Set(h.checked);B?re.add(k.value):re.delete(k.value),h.checked.length=0,h.checked.push(...Array.from(re)),T()},ne=B=>B.data.length?B.data.map(k=>a.withDirectives(a.createVNode("div",{key:k.value,ref:u,class:"list-item"},[a.createVNode(sn,{checked:h.checked.includes(k.value),immediateEmitChange:!1,label:k.value,modelValue:h.checked.includes(k.value),onChange:re=>W(re,k)},{default:()=>[a.createVNode("span",{ref:re=>d.value[`list-item-${k.value}-ref`]=re},[`${k.text}`])]})]),[[a.resolveDirective("bk-tooltips"),{content:k.tipKey||k.text,placement:"right",disabled:P(k)}]])):a.createVNode("div",{class:"list-item is-empty"},[r.value.emptyText]);return()=>a.createVNode(wn,a.mergeProps({arrow:!1,isShow:h.isOpen,offset:0,placement:"bottom-start",renderType:Su.SHOWN,trigger:"click"},{theme:b},{onAfterHidden:()=>y(!1),onAfterShow:()=>y(!0)}),{default:()=>a.createVNode(Qu,{class:f.value},null),content:()=>a.createVNode("div",{class:m},[a.createVNode("div",{style:"padding: 4px 10px;"},[a.createVNode($a,{modelValue:c.value,"onUpdate:modelValue":B=>c.value=B},null)]),a.createVNode(pd,{class:"content-list"},{default:()=>[a.createVNode($i,{ref:p,height:E.value,className:"content-items",lineHeight:32,list:N.value,maxHeight:C.value,minHeight:_.value,scrollEvent:!0,throttleDelay:0},{default:ne})]}),a.createVNode("div",{class:"content-footer"},[X(),M()])])})}}),ZY=a.defineComponent({name:"HeadSort",props:{column:Ed,defaultSort:v.oneOf(RK).def(zt.NULL),active:v.bool,sortValFormat:v.arrayOf(v.any).def([""])},emits:["change"],setup(e,{emit:t,expose:n}){var d,h;const{resolveClassName:r}=xe(),s=((h=(d=e.column)==null?void 0:d.sort)==null?void 0:h.value)??e.defaultSort??zt.NULL,o=a.ref(s);a.watch(()=>[e.defaultSort],([f])=>{o.value=f},{immediate:!0});const c=f=>{o.value=f},u=(f,m)=>{f.stopImmediatePropagation(),f.stopPropagation(),f.preventDefault(),t("change",{type:m,isCancel:m===o.value})};return n({setNextSortType:c}),()=>a.createVNode("span",{class:r("head-cell-sort")},[a.createVNode(Ru,{style:"align-items: flex-end;",class:["sort-action","sort-asc",e.active&&o.value===zt.ASC?"active":""],onClick:f=>u(f,zt.ASC)},null),a.createVNode(Xo,{style:"align-items: flex-start;",class:["sort-action","sort-desc",e.active&&o.value===zt.DESC?"active":""],onClick:f=>u(f,zt.DESC)},null)])}});function QY(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const eX=({props:e,columns:t,rows:n,ctx:r,column:s,index:o})=>{var M;const c=a.ref(t.getColumnAttribute(s,Ve.COL_SORT_TYPE)),u=a.ref(t.getColumnAttribute(s,Ve.COL_SORT_ACTIVE)),d=a.toRaw(s),h=a.ref(null),f=W=>{const{isCancel:ne,type:B=t.getColumnRefAttribute(s,Ve.COL_SORT_TYPE)}=W??{},k=ne?zt.NULL:B,re=t5(s,k,e.sortValFormat);t.setColumnAttribute(s,Ve.COL_SORT_TYPE,k),t.setColumnAttribute(s,Ve.COL_SORT_FN,re),t.setColumnSortActive(s,k!==zt.NULL),c.value=k,u.value=k!==zt.NULL,r.emit(Tt.COLUMN_SORT,{column:s,index:o,type:k})},m=()=>a.createVNode(ZY,{active:u.value,column:s,defaultSort:c.value,sortValFormat:e.sortValFormat,onChange:f},null),p=()=>{const W=k=>{r.emit(Tt.COLUMN_FILTER,{checked:k,column:a.unref(s),index:o})},ne=k=>{t.setColumnAttribute(s,Ve.COL_FILTER_VALUES,k),r.emit(Tt.COLUMN_FILTER_SAVE,{values:k})},B=()=>{t.setColumnAttribute(s,Ve.COL_FILTER_VALUES,[]),r.emit(Tt.COLUMN_FILTER,{checked:[],column:a.unref(s),index:o})};return a.createVNode(JY,{height:e.headHeight,column:s,onChange:W,onFilterSave:ne,onReset:B},null)},y=k2(e),{cellFn:b}=y,N=()=>typeof b=="function"?b({index:o,column:s}):typeof s.renderHead=="function"?s.renderHead({index:o,column:s}):Jt(s,"label",[o]),w=()=>{const W=[];s.sort&&W.push(m()),s.filter&&W.push(p());const ne=N();W.unshift(a.createVNode("span",{class:"head-text"},[ne]));const B=typeof ne=="string"?ne:void 0,k={"has-sort":!!s.sort,"has-filter":!!s.filter};return{cells:W,showTitle:B,headClass:k}},C=(W,ne="current")=>{t.setColumnAttribute(s,Ve.SELECTION_VAL,W),t.setColumnAttribute(s,Ve.SELECTION_INDETERMINATE,!1),n.setRowSelectionAll(W),r.emit(Tt.ROW_SELECT_ALL,{checked:W,data:e.data,type:ne})},E=W=>{C(!0,W)},{resolveClassName:_}=xe(),x=_("across-page-popover"),O=()=>{const W=t.getColumnAttribute(s,Ve.SELECTION_DISABLED),ne=t.getColumnAttribute(s,Ve.SELECTION_VAL),B=t.getColumnAttribute(s,Ve.SELECTION_INDETERMINATE);return s.acrossPage?a.createVNode("span",{class:"across-page-cell"},[a.createVNode(sn,{disabled:W,indeterminate:B,modelValue:ne,outline:!0,onChange:k=>C(k)},null),a.createVNode(wn,{ref:h,extCls:x,arrow:!1,placement:"bottom-start",theme:"light",trigger:"click"},{default:()=>a.createVNode("span",{class:"dropwn-icon"},null),content:()=>a.createVNode("div",{class:"dropwn-content"},[a.createVNode("div",{onClick:()=>E("current")},[a.createTextVNode("本页全选")]),a.createVNode("div",{onClick:()=>E("all")},[a.createTextVNode("跨页全选")])])})]):a.createVNode(sn,{disabled:W,indeterminate:B,modelValue:ne,onChange:k=>C(k)},null)},T=()=>{if(s.type==="selection")return[O()];const{headClass:W,showTitle:ne,cells:B}=w();return a.createVNode(nh,{class:W,column:s,headExplain:Jt(s.explain,"head",[s]),isHead:!0,observerResize:e.observerResize,parentSetting:e.showOverflowTooltip,resizerWay:e.resizerWay,title:ne},QY(B)?B:{default:()=>[B]})},$=()=>{if(!t.getColumnAttribute(s,Ve.COL_IS_DRAG)&&s.sort&&!s.filter){const ne={isCancel:!1,type:PY(t.getColumnRefAttribute(s,Ve.COL_SORT_TYPE))};f(ne)}},L=Object.assign(t.getFixedStlye(s),{"--background-color":W4[((M=e.thead)==null?void 0:M.color)??Td.DEF1]}),P=t.getGroupAttribute(d),I=a.computed(()=>[t.getHeadColumnClass(s,o),t.getColumnCustomClass(s),s.align||e.headerAlign||e.align,{"is-last-child":(P==null?void 0:P.offsetLeft)+1===t.visibleColumns.length}]),A=a.computed(()=>I.value.concat([{"is-head-group":P==null?void 0:P.isGroup,"is-head-group-child":!!(P!=null&&P.parent)}])),D=()=>Jt(s,"label",[o,s]);return{getTH:()=>P!=null&&P.isGroup?a.createVNode("th",{style:L,class:A.value,colspan:P==null?void 0:P.thColspan,rowspan:P==null?void 0:P.thRowspan},[D()]):a.createVNode("th",a.mergeProps({style:L,class:I.value,colspan:P==null?void 0:P.thColspan,"data-id":t.getColumnId(s),rowspan:P==null?void 0:P.thRowspan,onClick:()=>$()},t.resolveEventListener(s,o)),[T()])}},tX=e=>{const t=a.ref(!1),n={start:null,end:null},r=m=>{m.key==="Shift"&&(t.value=!0)},s=m=>{m.key==="Shift"&&(t.value=!1,d())},o=(m,p)=>{n.start={index:p??null,row:m??null}},c=()=>{o()},u=(m,p)=>n.start===null&&n.end===null?(n.start={index:p,row:m},!1):(n.end={index:p,row:m},!0),d=()=>{n.start=null,n.end=null};return e.shiftMultiChecked&&(window.addEventListener("keydown",r),window.addEventListener("keyup",s)),{isShiftKeyDown:t,setStore:u,getStore:()=>n,clearStore:d,setStoreStart:o,clearStoreStart:c,removeMultiCheckedEvents:()=>{e.shiftMultiChecked&&(window.removeEventListener("keydown",r),window.removeEventListener("keyup",s))}}};function nX(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const rX=({props:e,ctx:t,columns:n,rows:r,pagination:s})=>{const o=ut("table"),c=or();let u={};const d=tX(e),h=()=>a.createVNode("colgroup",null,[(n.visibleColumns||[]).map((A,D)=>{const X=`${LY(n.getColumnOrderWidth(A))}`.replace(/px$/i,""),M=n.getColumnAttribute(A,Ve.COL_MIN_WIDTH);return a.createVNode("col",{style:{width:ls(X,"auto"),minWidth:ls(M,"auto")}},null)})]),f=()=>{const A=k2(e),D={"--row-height":`${Jt(A,"height",["thead"])}px`,backgroundColor:e.thead.color};return a.createVNode(a.Fragment,null,[a.createVNode("thead",{style:D},[n.columnGroup.map((X,M)=>a.createVNode("tr",null,[X.map((W,ne)=>{if(n.isHiddenColumn(W))return null;const{getTH:B}=eX({props:e,ctx:t,columns:n,column:W,index:ne,rows:r,rowIndex:M});return B()})]))])])},m=()=>e.showHead?a.createVNode("table",{cellpadding:0,cellspacing:0},[h(),f()]):null,p=()=>{const A="append-last-row",D=[...Ys(e.rowStyle,[]),{"--row-height":`${b(null,null,"append-last-row")}px`}];if(e.appendLastRow.type==="default")return t.slots.appendLastRow?a.createVNode(xc,{key:A},{default:()=>{var X,M;return[a.createVNode("tr",{key:A,style:D},[a.createVNode("td",{colspan:n.visibleColumns.length},[((M=(X=e.appendLastRow).cellRender)==null?void 0:M.call(X,null,null))??t.slots.appendLastRow()])])]}}):void 0;if(e.appendLastRow.type==="summary")return a.createVNode(xc,{key:A},{default:()=>[a.createVNode("tr",{key:A,style:D},[n.visibleColumns.map((X,M)=>a.createVNode("td",null,[a.createVNode(nh,null,{default:()=>{var W,ne;return[((ne=(W=e.appendLastRow).cellRender)==null?void 0:ne.call(W,X,M))??X.field??X.prop]}})]))])]})},y=A=>{let D={};const X=new WeakMap,M=n.needRowSpan.value;return a.createVNode("tbody",null,[A.map((W,ne)=>{const B=T(W,ne,D,A,X,M);return D=W,B}),p()])},b=r.getRowHeight,N=A=>{u=A},w=A=>{var M,W;const D=A??r.pageRowList,X=a.computed(()=>e.emptyText===void 0?o.value.emptyText:e.emptyText);return D.length?a.createVNode("table",{cellpadding:0,cellspacing:0,"data-table-uuid":c},[h(),y(D)]):((W=(M=t.slots).empty)==null?void 0:W.call(M))??a.createVNode(XY,{emptyText:X.value,filterList:D,list:e.data},null)},C=(A,D,X,M)=>{var ne;((ne=A.target)==null?void 0:ne.tagName)!=="INPUT"&&t.emit(Tt.ROW_CLICK,A,D,X,M)},E=(A,D,X,M)=>{t.emit(Tt.ROW_DBL_CLICK,A,D,X,M)},_=(A,D,X,M)=>{t.emit(Tt.ROW_MOUSE_ENTER,A,D,X,M)},x=(A,D,X,M)=>{t.emit(Tt.ROW_MOUSE_LEAVE,A,D,X,M)},O=(A,D,X,M,W)=>{var re;W.has(A)||W.set(A,new WeakMap),W.get(A).has(M)||W.get(A).set(M,{skipRowLen:0,skipRow:!1});let{skipRowLen:ne=0}=((re=W.get(X))==null?void 0:re.get(M))??{},B=!1;const k=gu(M,null,A,D,"rowspan");return ne>1?(ne=ne-1,B=!0):k>1&&(ne=k,B=!1),Object.assign(W.get(A).get(M),{skipRowLen:ne,skipRow:B}),{skipRowLen:ne,skipRow:B}},T=(A,D,X,M,W,ne,B=!1)=>{const k=M.length,re=[...Ys(e.rowStyle,[A,D]),{"--row-height":`${b(A,D)}px`}],J=[...Ys(e.rowClass,[A,D]),`hover-${e.rowHover}`,D%2===1&&e.stripe?"stripe-row":""],K=r.getRowAttribute(A,Xe.ROW_UID);return[a.createVNode(xc,{key:K},{default:()=>[a.createVNode("tr",a.mergeProps({key:K,style:re,class:J,"data-row-index":D,draggable:!!e.rowDraggable,onClick:F=>C(F,A,D,M),onDblclick:F=>E(F,A,D,M),onMouseenter:F=>_(F,A,D,M),onMouseleave:F=>x(F,A,D,M)},u),[n.visibleColumns.map((F,z)=>{const Y=[n.getFixedStlye(F),...Ys(e.cellStyle,[F,z,A,D])],{colspan:te,rowspan:ue}=kY(F,z,A,D),{skipCol:ce}=n.getColumnAttribute(F,Ve.COL_SPAN),{skipRow:be}=ne&&!B?O(A,D,X,F,W):{skipRow:!1},Z={"expand-cell":F.type==="expand"};if(!be&&!ce){let me;const ae=[n.getColumnClass(F,z),n.getColumnCustomClass(F,A),F.align||e.align,...Ys(e.cellClass,[F,z,A,D]),{"expand-row":r.getRowAttribute(A,Xe.ROW_EXPAND),"is-last":D+ue>=k}],pe=`${K}_${z}`,G=`${K}_${z}_cell`,{renderCell:fe}=qY({props:e,rows:r,ctx:t,columns:n,row:A,index:D,column:F,isChild:B,multiShiftKey:d}),we=(le,q)=>{const se={event:le,row:A,column:F,cell:{getValue:()=>fe()},rowIndex:D,columnIndex:z};t.emit(q,se)};return a.createVNode("td",{key:pe,style:Y,class:ae,colspan:te,"data-id":pe,rowspan:ue,onClick:le=>we(le,Tt.CELL_CLICK),onDblclick:le=>we(le,Tt.CELL_DBL_CLICK)},[a.createVNode(nh,{key:G,class:Z,column:F,"data-id":G,intersectionObserver:e.intersectionObserver,isExpandChild:B,observerResize:e.observerResize,parentSetting:e.showOverflowTooltip,row:A},nX(me=fe())?me:{default:()=>[me]})])}return null})])]}),$(A,J)]},$=(A,D,X)=>{if(r.getRowAttribute(A,Xe.ROW_EXPAND)){const W=[...D,{row_expend:!0}],B=`${r.getRowAttribute(A,Xe.ROW_UID)}_expand`;return Array.isArray(A.children)?A.children.map((k,re)=>T(k,re,{},A,{},!1,!0)):a.createVNode(xc,{key:B},{default:()=>{var k,re;return[a.createVNode("tr",{class:W},[a.createVNode("td",{colspan:n.visibleColumns.length,rowspan:1},[((re=(k=t.slots).expandRow)==null?void 0:re.call(k,A))??a.createVNode("div",{class:"expand-cell-ctx"},[a.createTextVNode("Expand Row")])])])]}})}},L=A=>{s.setPagination({limit:A}),t.emit(Tt.PAGE_LIMIT_CHANGE,A)},P=A=>{if(typeof e.pagination=="object"&&A!==s.options.current){s.setPagination({current:A,value:A}),t.emit(Tt.PAGE_VALUE_CHANGE,A);return}typeof e.pagination=="boolean"&&e.pagination!==!1&&t.emit(Tt.PAGE_VALUE_CHANGE,A)},I=()=>{if(s.isShowPagination.value)return a.createVNode(V2,a.mergeProps({style:"width: 100%;"},s.options,{modelValue:s.options.current,onChange:A=>P(A),onLimitChange:A=>L(A)}),null)};return a.onUnmounted(()=>{d.removeMultiCheckedEvents()}),{renderColumns:m,renderTBody:w,renderTFoot:I,setDragEvents:N}},aX=e=>{const t=a.reactive(new WeakMap),n=a.ref([]),r=a.reactive([]),s=B=>e.isRowSelectEnable?typeof e.isSelectedFn=="function"?e.isSelectedFn(u(B)):Array.isArray(e.checked)?e.checked.some(k=>typeof k!="object"?e.selectionKey.length&&Object.prototype.hasOwnProperty.call(B,e.selectionKey)?$Y(B,e.selectionKey)===k:(console.warn("props.selectionKey is undefined or null or empty"),!1):Nc(k)===Nc(B)):!1:!1,o=(B,k,re)=>typeof e.rowHeight=="function"||/^\d+/.test(`${e.rowHeight}`)?Jt(e,"rowHeight",[{index:k,type:re??"tbody",row:B}]):Oa,c=()=>{let B=!1,k=!1;n.value.forEach((re,J)=>{const K=Nc(re);let F=RY(K,or(),e);const z=s(K);z?B=!0:k=!0,t.has(K)||t.set(K,{[Xe.ROW_EXPAND]:!1,[Xe.ROW_SELECTION]:z,[Xe.ROW_UID]:F,[Xe.ROW_INDEX]:J+1,[Xe.ROW_SELECTION_INDETERMINATE]:!1});const Y=t.get(K);F=Y[Xe.ROW_UID],Y[Xe.ROW_INDEX]=J+1,Y[Xe.ROW_HEIGHT]=o(re,J)}),t.set(es,{[Xe.ROW_SELECTION]:B,[Xe.ROW_SELECTION_INDETERMINATE]:B&&k})},u=(B,k)=>({row:B,index:k??d(B,Xe.ROW_INDEX),isSelectAll:d(es,Xe.ROW_SELECTION)}),d=(B,k)=>{var re;return(re=t.get(B))==null?void 0:re[k]},h=B=>{t.set(FK,{[Xe.ROW_SPAN]:B})},f=(B,k)=>pu(e,{row:B,index:k})?d(B,Xe.ROW_SELECTION):!0,m=B=>{if(typeof e.isSelectedFn=="function"){T(B,e.isSelectedFn(u(B)));return}T(B,!d(B,Xe.ROW_SELECTION))},p=B=>{const k=B??!y();if(t.set(es,{[Xe.ROW_SELECTION]:k,[Xe.ROW_SELECTION_INDETERMINATE]:!1}),e.acrossAll){n.value.forEach((re,J)=>T(re,k,J));return}r.forEach((re,J)=>T(re,k,J))},y=()=>e.acrossAll?n.value.every((B,k)=>f(B,k)):r.every((B,k)=>f(B,k)),b=()=>e.acrossAll?n.value.some(B=>d(B,Xe.ROW_SELECTION)):r.some(B=>d(B,Xe.ROW_SELECTION)),N=B=>{p(B)},w=()=>{const B=y();O(es,Xe.ROW_SELECTION,B),O(es,Xe.ROW_SELECTION_INDETERMINATE,!B&&b())},C=()=>d(es,Xe.ROW_SELECTION_INDETERMINATE),E=()=>d(es,Xe.ROW_SELECTION),_=(B,k)=>{if(k){O(k,Xe.ROW_HEIGHT,B);return}n.value.forEach(re=>O(re,Xe.ROW_HEIGHT,B))},x=(B,k,re)=>B?d(B,Xe.ROW_HEIGHT):o(B,k,re),O=(B,k,re)=>{const J=Nc(B),K=t.get(J);K&&Object.prototype.hasOwnProperty.call(K,k)&&(K[k]=re)},T=(B,k,re)=>{let J=k;typeof e.isSelectedFn=="function"&&(J=e.isSelectedFn(u(B,re))),pu(e,{row:B,index:re??d(B,Xe.ROW_INDEX)})&&O(B,Xe.ROW_SELECTION,J),w()},$=(B,k)=>{O(B,Xe.ROW_INDEX,k)},L=(B,k)=>{O(B,Xe.ROW_EXPAND,k)},P=B=>{let k=0;const re=50,J=()=>{const K=k+re;r.push(...B.slice(k,K)),K<B.length&&(k=K,setTimeout(()=>{J()}))};if(B.length>re){J();return}r.push(...B)};return{setRowIndex:$,setRowExpand:L,isRowChecked:f,setPageRowList:B=>{r.length=0,P(B)},setTableRowList:B=>{n.value.length=0,n.value.push(...B),c()},clearSelection:()=>{n.value.forEach(B=>T(B,!1))},formatDataSchema:c,toggleRowSelection:m,setRowSelectionAll:N,setRowSelection:T,setAllRowExpand:B=>{n.value.forEach(k=>L(k,B??!0))},setRowHeight:_,setTableIsNeedRowSpan:h,getRowAttribute:d,getRowSelection:()=>n.value.filter(B=>d(B,Xe.ROW_SELECTION)),getRowIndeterminate:C,getRowCheckedAllValue:E,getCurrentPageRowsHeight:()=>r.reduce((B,k)=>B+x(k),0),changePageRowIndex:(B,k)=>{const re=r[B];r.splice(k,0,re);const J=B<k?B:B+1;r.splice(J,1)},toggleAllSelection:p,getRowHeight:x,tableRowList:n,tableRowSchema:t,pageRowList:r}};function Rm(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const sX=(e,t,n,r)=>{const s=ut("table"),{resolveClassName:o}=xe(),c=PK(s),u=a.ref(!1),d=(K,F)=>Jt(K,["id","field","type"],[K,F]),h=()=>({enabled:!0,fields:e.columns.map(K=>Object.assign({},K,{field:K.field||K.type})),checked:[],limit:0,size:"small",sizeList:c,showLineHeight:!0,extCls:"",trigger:"manual",height:No.small}),f=K=>typeof K=="boolean"&&K!==!1?h():K?Object.assign({},h(),K):{enabled:!1},m=a.ref(null),p=a.reactive(h()),y=K=>{Object.assign(p,f(K))};a.watch(()=>[e.settings],()=>{y(e.settings)},{immediate:!0,deep:!0});const b=a.ref(p.size||"small"),N=a.ref(No.small),w=a.ref(p.checked||[]),E=`light ${o("table-settings")}`,_=a.computed(()=>p.fields||e.columns||[]),x={checkAll:u.value,activeSize:b.value,activeHeight:N.value,checkedFields:p.checked||[]},O=()=>{var F;Object.assign(x,{checkAll:u.value,activeSize:b.value,activeHeight:N.value,checkedFields:w.value});const K={checked:w.value,size:b.value,height:N.value,fields:a.unref(_)};Object.assign(p,K),n.setColumnAttributeBySettings(p,K.checked),n.setVisibleColumns(),r==null||r(K),(F=m.value)==null||F.hide(),t.emit(Tt.SETTING_CHANGE,K)},T=()=>{var K;u.value=x.checkAll,b.value=x.activeSize,N.value=x.activeHeight,w.value=x.checkedFields,(K=m.value)==null||K.hide()},$=()=>{var K;p.trigger==="manual"&&((K=m.value)==null||K.show())},L=K=>{K.stopImmediatePropagation(),K.stopPropagation(),K.preventDefault(),u.value=!u.value;const F=p.fields||e.columns||[],z=F.filter((Y,te)=>Y.disabled&&w.value.includes(d(Y,te))).map((Y,te)=>d(Y,te));if(u.value){const Y=F.filter(te=>!te.disabled).map((te,ue)=>d(te,ue));w.value.splice(0,w.value.length,...Y,...z)}else w.value.splice(0,w.value.length,...z)},P=a.computed(()=>(p.limit??0)>0),I=p.sizeList||c,A=a.computed(()=>P.value&&(p.limit?p.limit:0)<=w.value.length),D=(K,F)=>K.disabled||A.value&&!w.value.includes(d(K,F)),X=K=>{b.value=K.value,N.value=K.height},M=K=>({"line-size":!0,"is-medium":b.value==="medium",active:K.value===b.value}),W={marginRight:"12px"},ne=()=>I.map(K=>a.createVNode("span",{class:M(K),onClick:()=>X(K)},[K.label])),B=a.computed(()=>w.value.length>0&&w.value.length<_.value.length),k=a.computed(()=>typeof p.showLineHeight=="boolean"?p.showLineHeight:!0);a.watch(()=>[w.value],()=>{w.value.length||(u.value=!1),w.value.length&&_.value.every((K,F)=>w.value.includes(d(K,F)))&&(u.value=!0)},{immediate:!0,deep:!0}),a.watch(()=>[e.settings.checked],()=>{w.value.splice(0,w.value.length,...p.checked)},{immediate:!0,deep:!0});const re=()=>{var F,z,Y,te;let K;return((z=(F=t.slots).settings)==null?void 0:z.call(F))??a.createVNode(a.Fragment,null,[a.createVNode("div",{class:"setting-head"},[a.createVNode("span",{class:"head-title"},[s.value.setting.title]),a.createVNode(Jo,{class:"icon-close-action",onClick:T},null)]),a.createVNode("div",{class:"setting-body"},[a.createVNode("div",{class:"setting-body-title"},[a.createVNode("div",null,[a.createVNode("span",{class:"field-setting-label"},[s.value.setting.fields.title]),P.value?a.createVNode("span",{class:"limit"},[s.value.setting.fields.subtitle(p.limit)]):""]),P.value?"":a.createVNode("span",{class:"check-all",onClick:L},[a.createVNode(sn,{indeterminate:!!B.value,label:s.value.setting.fields.selectAll,modelValue:w.value.length>0},{default:()=>[s.value.setting.fields.selectAll]})])]),a.createVNode(pd,{class:"setting-body-fields",modelValue:w.value,"onUpdate:modelValue":ue=>w.value=ue},Rm(K=_.value.map((ue,ce)=>{let be;return a.createVNode("div",{class:"field-item"},[a.createVNode(sn,{checked:w.value.includes(d(ue,ce)),disabled:D(ue,ce),label:d(ue,ce)},Rm(be=Jt(ue,["name","label"],[ue,ce]))?be:{default:()=>[be]})])}))?K:{default:()=>[K]}),(te=(Y=t.slots).setting)==null?void 0:te.call(Y),k.value?a.createVNode("div",{class:"setting-body-line-height"},[s.value.setting.lineHeight.title,a.createTextVNode(":"),ne()]):""]),a.createVNode("div",{class:"setting-footer"},[a.createVNode(Ht,{style:W,theme:"primary",onClick:O},{default:()=>[s.value.setting.options.ok]}),a.createVNode(Ht,{style:W,onClick:T},{default:()=>[s.value.setting.options.cancel]})])])};return{options:p,renderSettings:()=>e.settings?a.createVNode(wn,a.mergeProps({ref:m,extCls:p.extCls,arrow:!0,placement:"bottom-end",trigger:p.trigger??"manual"},{theme:E}),{default:()=>a.createVNode("span",{class:"table-head-settings",onClick:$},[a.createVNode(ju,{style:"color: #c4c6cc;"},null)]),content:()=>a.createVNode("div",{class:"setting-content"},[re()])}):null}},iX=a.defineComponent({name:"Table",props:YK,emits:lY,setup(e,t){const n=BY(e),r=aX(e),s=YY(e),{renderContainer:o,renderFixedBottom:c,renderBody:u,renderHeader:d,renderFooter:h,setBodyHeight:f,setFootHeight:m,setDragOffsetX:p,setOffsetRight:y,setHeaderRowCount:b,setLineHeight:N,getBodyHeight:w,refBody:C,refRoot:E}=GY(e,t),_=(...Z)=>{var me;return(me=C.value)==null?void 0:me.scrollTo(...Z)};typeof e.rowHeight=="function"?N(Z=>r.getRowHeight(Z.rows[0],Z.index)):N(e.rowHeight);const O=sX(e,t,n,({checked:Z,height:me})=>{(Z==null?void 0:Z.length)>0&&_(0,0),typeof e.rowHeight!="function"&&(r.setRowHeight(me),N(me))}),T=zY(e,r,t),{renderColumns:$,renderTBody:L,renderTFoot:P,setDragEvents:I}=rX({props:e,ctx:t,columns:n,rows:r,pagination:s});I(T);const{resolveColumns:A}=uY(),D=a.getCurrentInstance(),X=()=>{var me;const Z=((me=D.subTree)==null?void 0:me.children)??[];n.debounceUpdateColumns(A(Z),()=>{b(n.columnGroup.length)})};a.provide(G4,X);const{renderFixedRows:M,resolveFixedColumnStyle:W}=UY(e,n),ne=()=>{var me;const Z=((me=E.value)==null?void 0:me.offsetWidth)-(e.scrollbar?1:j4);n.resolveColsCalcWidth(Z),W()},{dragOffsetX:B}=cY(n,{afterResize:W}),k=a.ref(!1),re=Z=>{if(!s.isShowPagination.value||e.remotePagination)return Z;const me=(s.options.current-1)*s.options.limit,ae=me+s.options.limit;return Z.slice(me,ae)},J=()=>{let Z=r.tableRowList.value.slice();return n.filterColumns.forEach(me=>{var ae;!n.isHiddenColumn(me.col)&&me[Ve.COL_FILTER_FN]&&((ae=me[Ve.COL_FILTER_VALUES])!=null&&ae.length)&&(Z=Z.filter((pe,G)=>me[Ve.COL_FILTER_FN](me[Ve.COL_FILTER_VALUES],pe,G,e.data)))}),n.sortColumns.forEach(me=>{!n.isHiddenColumn(me.col)&&me[Ve.COL_SORT_FN]&&me.active&&Z.sort((ae,pe)=>{let G=null,fe=null;return me.col.type==="index"&&(G=r.getRowAttribute(ae,Xe.ROW_INDEX),fe=r.getRowAttribute(pe,Xe.ROW_INDEX)),me[Ve.COL_SORT_FN](ae,pe,G,fe)})}),Z},K=a.computed(()=>s.isShowPagination.value?e.paginationHeight:0),F=()=>{m(K.value),/^\d+\.?\d*(px)?$/.test(`${e.height}`)&&f(Number(`${e.height}`.replace("px","")))},z=a.ref(!1),Y=yn.debounce((Z=!0)=>{const me=J();e.remotePagination||s.setPagination({count:me.length});const ae=re(me);r.setPageRowList(ae),Z&&(z.value=!0),a.nextTick(()=>{y(),ce(),z.value&&(_(0,0),z.value=!1)})},64),te=a.ref(!1);let ue=null;KY(E,()=>{if(!te.value){if(te.value=!0,(e.height==="100%"||e.virtualEnabled)&&yn.isElement(E.value)){if(k.value){setTimeout(()=>{k.value=!1});return}const Z=E.value.offsetHeight;k.value=!0,f(Z),y()}ne(),y(),_(0,0);return}ue&&clearTimeout(ue),ue=setTimeout(()=>{te.value=!1})});const ce=()=>{if(e.virtualEnabled&&(e.height==="100%"||e.height==="auto")){let me=r.getCurrentPageRowsHeight();if(/^\d+\.?\d*(px)?$/.test(`${e.maxHeight}`)){const ae=w(Number(`${e.maxHeight}`.replace("px","")));if(me>ae){f(ae,!1);return}}f(me,!1)}};a.watch(()=>[e.columns],()=>{n.debounceUpdateColumns(e.columns,()=>{b(n.columnGroup.length)})},{immediate:!0}),a.watch(()=>[B.value],()=>{p(B.value)}),a.watch(()=>[n.visibleColumns],()=>{a.nextTick(()=>ne())},{immediate:!0,deep:!0}),a.watch(()=>[n.filterColumns],()=>{Y()},{deep:!0}),a.watch(()=>[n.sortColumns],()=>{Y(!1)},{deep:!0}),a.watch(()=>[s.isShowPagination.value],()=>{F()},{immediate:!0}),a.watch(()=>[e.data],()=>{r.setTableRowList(e.data),Y(!1)},{immediate:!0,deep:!0}),a.watch(()=>[s.options.count,s.options.limit,s.options.current],()=>{Y(!1)},{immediate:!0});const be=a.computed(()=>r.pageRowList.length);return a.watch(be,(Z,me)=>{var ae,pe;Z<me&&((pe=(ae=C==null?void 0:C.value)==null?void 0:ae.updateScroll)==null||pe.call(ae),_(void 0,0))}),t.expose({setRowExpand:r.setRowExpand,setAllRowExpand:r.setAllRowExpand,clearSelection:()=>{r.clearSelection(),n.clearSelectionAll()},toggleAllSelection:r.toggleAllSelection,toggleRowSelection:r.toggleRowSelection,getSelection:r.getRowSelection,setRowSelection:r.setRowSelection,clearSort:n.clearColumnSort,scrollTo:_,getRoot:()=>E.value}),()=>o([d($,O.renderSettings,M),u(r.pageRowList,L,M),c(),h(P())])}}),n5=on(iX,{Column:qK}),Fm=a.defineComponent({name:"ListTagRender",props:{node:v.object,searchKey:v.oneOfType([v.string,v.arrayOf(v.string)]),displayKey:v.string,searchKeyword:v.string,tpl:{type:Function},disabled:v.bool.def(!1)},render(){const{resolveClassName:e}=xe(),t=r=>{if(this.searchKeyword&&!this.disabled){const s=new RegExp(`(${this.searchKeyword})`,"i");return r.replace(s,'<strong class="highlight-text">$1</strong>')}return r};if(this.tpl)return this.tpl(this.node,t,a.h,this);const n=this.node[this.displayKey];return a.createVNode("div",{class:`${e("selector-node")}`},[a.createVNode("span",{class:"text",innerHTML:t(n)},[n])])}}),oX=()=>({modelValue:v.arrayOf(v.string).def([]),placeholder:v.string.def(""),list:v.arrayOf(v.object).def([]),disabled:v.bool.def(!1),tooltipKey:v.string.def(""),saveKey:v.string.def("id"),displayKey:v.string.def("name"),hasDeleteIcon:v.bool.def(!1),clearable:v.bool.def(!0),trigger:Pe("treeTriggerType",{}).def("search"),searchKey:v.oneOfType([v.string,v.arrayOf(v.string)]).def("name"),useGroup:v.bool.def(!1),allowCreate:v.bool.def(!1),maxData:v.number.def(-1),maxResult:v.number.def(10),contentMaxHeight:v.number.def(300),contentWidth:v.number.def(190),separator:v.string.def(""),allowNextFocus:v.bool.def(!0),allowAutoMatch:v.bool.def(!1),showClearOnlyHover:v.bool.def(!1),isAsyncList:v.bool.def(!1),leftSpace:v.number.def(0),createTagValidator:{type:Function},filterCallback:{type:Function},tagTpl:{type:Function},tpl:{type:Function},pasteFn:{type:Function},withValidate:{type:Boolean,default:!0},popoverProps:{type:Object,default:()=>({})},collapseTags:{type:Boolean,default:!1},tagOverflowTips:{type:Object,default:()=>({})}}),lX=a.defineComponent({name:"TagRender",directives:{bkTooltips:sa},props:{node:v.object,displayKey:v.string,tooltipKey:v.string,tpl:{type:Function},hasTips:{type:Boolean,default:!1},tagOverflowTips:{type:Object,default:()=>({})}},setup(e){const t=a.ref(),n=a.ref(!1),r=a.computed(()=>({boundary:"window",theme:"light",distance:12,content:e.node[e.tooltipKey],disabled:!yG.has(e.node,e.tooltipKey)||!n.value,...e.tagOverflowTips}));return a.onMounted(()=>{n.value=$_(t.value)}),{overflowTips:r,tagRef:t}},render(){return this.tpl?this.tpl(this.node,a.h,this):a.withDirectives(a.createVNode("div",{ref:"tagRef",class:"tag"},[a.createVNode("span",{class:"text"},[this.node[this.displayKey]])]),[[a.resolveDirective("bk-tooltips"),this.overflowTips]])}}),cX=a.defineComponent({name:"TagInput",directives:{bkTooltips:sa},props:oX(),emits:["update:modelValue","change","select","focus","blur","remove","removeAll","input"],setup(e,{emit:t}){const n=ur(),r=ut("tagInput"),s=a.reactive({isEdit:!1,isHover:!1,focusItemIndex:e.allowCreate?-1:0}),o=a.reactive({isShow:!1,width:190,offset:{mainAxis:4,crossAxis:0},...e.popoverProps}),{resolveClassName:c}=xe(),{maxResult:u}=a.toRefs(e),{pageState:d,initPage:h,pageChange:f}=KI(u),m=a.ref(""),p=a.ref(null),y=a.ref(null),b=a.ref(null),N=a.ref(null),w=a.ref(null),C=a.ref(null),E=a.computed(()=>!e.disabled&&e.hasDeleteIcon),_=a.computed(()=>e.maxData===1),x=a.computed(()=>L.selectedTagList.length===0&&m.value===""&&!s.isEdit),O=a.computed(()=>e.placeholder||r.value.placeholder),T=a.computed(()=>e.clearable&&!e.disabled&&L.selectedTagList.length!==0&&(e.showClearOnlyHover?s.isHover:!0)),$=a.computed(()=>({[`${c("tag-input-trigger")}`]:!0,active:s.isEdit,disabled:e.disabled})),L=a.reactive({localList:[],tagListCache:[],selectedTagList:[],selectedTagListCache:[]}),P=a.computed(()=>L.selectedTagList.map(j=>j[e.saveKey])),{flatList:I,saveKeyMap:A}=YI(e),D=a.computed(()=>{if(e.useGroup){const j={};return d.curPageList.forEach((ie,ve)=>{ie.__index__=ve,j[ie.group.groupId]||(j[ie.group.groupId]={id:ie.group.groupId,name:ie.group.groupName,children:[]}),j[ie.group.groupId].children.push(ie)}),Object.keys(j).map(ie=>j[ie])}return d.curPageList});a.watch([()=>I.value],()=>{a.nextTick(()=>{B()})},{deep:!0}),a.watch(()=>e.modelValue,j=>{var ie;J(P.value,j)||(a.nextTick(()=>{B()}),e.withValidate&&((ie=n==null?void 0:n.validate)==null||ie.call(n,"change")))}),a.watch(m,Cu(()=>{const j=d.curPageList.length!==0,{value:ie}=m;ie!==""&&j||ie===""&&e.trigger==="focus"&&j?o.isShow=!0:(e.trigger!=="focus"||!j)&&(o.isShow=!1)},150)),a.watch(()=>o.isShow,j=>{X(),j&&w.value&&(a.nextTick(()=>{w.value.scrollTop=0}),w.value.removeEventListener("scroll",M),w.value.addEventListener("scroll",M))}),a.onMounted(()=>{B()});const X=()=>{var j;o.offset.crossAxis=_.value?0:(j=N.value)==null?void 0:j.offsetLeft},M=()=>{if(d.isPageLoading||w.value.scrollTop===0)return;const{scrollTop:j,offsetHeight:ie,scrollHeight:ve}=w.value;if(j+ie>=ve){const Ae=d.curPage+1;Ae<=d.totalPage&&(d.isPageLoading=!0,setTimeout(()=>{f(Ae)},500))}},W=()=>{var ie;return Array.from(((ie=b.value)==null?void 0:ie.childNodes)||[]).filter(ve=>![Node.TEXT_NODE,Node.COMMENT_NODE].includes(ve.nodeType))},ne=j=>{if(!e.disabled){if(j!=null&&j.target){const{className:ie}=j.target;(ie.indexOf(`${c("tag-input-trigger")}`)>-1||ie.indexOf("tag-list")>-1)&&b.value.appendChild(N.value)}clearTimeout(C.value),_.value&&P.value.length&&(L.tagListCache=[...P.value],L.selectedTagListCache=[...L.selectedTagList],m.value=L.selectedTagListCache[0][e.saveKey],de(L.selectedTagList[0],0),te()),s.isEdit=!0,setTimeout(()=>{var ie;(ie=p.value)==null||ie.focus(),e.trigger==="focus"&&L.localList.length!==0&&(k(),o.isShow?X():o.isShow=!0)},200)}},B=()=>{const{saveKey:j,modelValue:ie,displayKey:ve,allowCreate:Ae,trigger:Ie,isAsyncList:ke}=e;if(L.selectedTagList=[],L.localList=I.value,ie.length){const Ue={};L.selectedTagList=ie.map(tt=>{const at=A.value[tt];return Ue[tt]=1,!at&&Ae?{[j]:tt,[ve]:tt}:at}).filter(tt=>tt),_.value||(L.localList=L.localList.filter(tt=>!Ue[tt[j]]))}if(ke&&m.value){k(m.value),d.curPageList.length&&(o.isShow=!0);return}Ie==="focus"&&k()},k=(j="")=>{const{searchKey:ie,filterCallback:ve}=e,Ae=j.toLowerCase().trim();if(Ae===""){h(L.localList);return}let Ie=[];typeof ve=="function"?Ie=ve(Ae,ie,L.localList)||[]:Array.isArray(ie)?Ie=L.localList.filter(ke=>ie.some(Ue=>ke[Ue].toLowerCase().indexOf(Ae)>-1)):Ie=L.localList.filter(ke=>ke[ie].toLowerCase().indexOf(Ae)>-1),h(Ie)},re=(j,ie)=>{const ve={[`${c("selector-actived")}`]:!0,[`${c("selector-selected")}`]:P.value.includes(j[e.saveKey])};return e.useGroup?ve[`${c("selector-actived")}`]=j.__index__===s.focusItemIndex:ve[`${c("selector-actived")}`]=ie===s.focusItemIndex,ve};function J(j,ie){return j.length!==ie.length?!1:ie.every((ve,Ae)=>j[Ae]===ve)}const K=()=>{L.tagListCache=[],L.selectedTagListCache=[],L.selectedTagList=[]},F=()=>{m.value=""},z=()=>{if(_.value)return 0;const ie=W().findIndex(({id:ve})=>ve==="tagInputItem");return ie>=0?ie:0},Y=(j,ie,ve=!1)=>{if(!ie||!j)return;let Ae=ie;ve&&(Ae=ie.nextElementSibling||null),ie.parentNode.insertBefore(j,Ae)},te=j=>{const{maxData:ie,trigger:ve,allowCreate:Ae}=e;if(ie===-1||ie>P.value.length){const{value:Ie}=j!=null&&j.target?j.target:m,ke=e9(Ie);ke?(k(Ie),p.value.style.width=`${ke*(Ja/2)}px`):ve==="focus"&&(k(),p.value.style.width=`${Ja}px`)}else ce(),m.value="",o.isShow=!1;s.isEdit=!0,s.focusItemIndex=Ae?-1:0,t("input",m.value)},ue=()=>{var j;o.width=_.value?(j=y.value)==null?void 0:j.clientWidth:e.contentWidth,t("focus")},ce=()=>{C.value=setTimeout(()=>{var ie;const j=m.value;if(F(),s.isEdit=!1,e.allowAutoMatch&&j){if(_.value){const[Ae]=L.tagListCache;j===Ae&&L.selectedTagListCache.length&&se(L.selectedTagListCache[0],"select")}const ve=d.curPageList.find(Ae=>Array.isArray(e.searchKey)?e.searchKey.map(ke=>Ae[ke]).includes(j):Ae[e.searchKey]===j);ve?be(ve,"select"):e.allowCreate&&be(j,"custom")}o.isShow=!1,t("blur",j,P.value),(ie=n==null?void 0:n.validate)==null||ie.call(n,"blur")},200)},be=(j,ie,ve)=>{ve==null||ve.stopPropagation(),!(!j||j.disabled)&&(_.value&&K(),se(j,ie),me("select"),F(),o.isShow=!1)},Z=(j,ie,ve)=>{ve==null||ve.stopPropagation(),de(j,ie),F(),me("remove",j),p.value.style.width=`${Ja}px`},me=(j,ie)=>{t(j,ie),t("update:modelValue",P.value),t("change",P.value)},ae=j=>{j.stopPropagation();const ie=L.selectedTagList;L.selectedTagList=[];const ve=ie.filter(Ae=>A.value[Ae[e.saveKey]]);(e.allowCreate&&ve.length!==0||!e.allowCreate)&&!_.value&&L.localList.push(...ve),me("removeAll")},pe=()=>{const j={height:w.value.clientHeight,yAxis:w.value.getBoundingClientRect().y};a.nextTick(()=>{const ie=w.value.querySelector(`.${c("selector-actived")}`);if(!ie)return;const ve={height:ie.clientHeight,yAxis:ie.getBoundingClientRect().y};ve.yAxis<j.yAxis&&(w.value.scrollTop=w.value.scrollTop-(j.yAxis-ve.yAxis));const Ae=ve.yAxis+ve.height-j.yAxis;Ae>j.height&&(w.value.scrollTop=w.value.scrollTop+Ae-j.height)})},G=(j,ie)=>{const ve=W();Y(N.value,ve[j-1]),L.selectedTagList.splice(j-1,1),ne();const Ae=A.value[ie[e.saveKey]];(e.allowCreate&&Ae||!e.allowCreate)&&!_.value&&L.localList.push(ie),p.value=`${Ja}px`,me("remove")},fe=j=>{if(d.isPageLoading||j.isComposing)return;let ie;const ve=j.target.value,Ae=e9(ve),Ie=z(),ke=W();switch(j.code){case"ArrowUp":if(j.preventDefault(),!o.isShow)return;s.focusItemIndex=s.focusItemIndex-1,s.focusItemIndex=s.focusItemIndex<0?-1:s.focusItemIndex,s.focusItemIndex===-1&&(s.focusItemIndex=d.curPageList.length-1),pe();break;case"ArrowDown":if(j.preventDefault(),!o.isShow)return;s.focusItemIndex=s.focusItemIndex+1,s.focusItemIndex=s.focusItemIndex>d.curPageList.length-1?d.curPageList.length:s.focusItemIndex,s.focusItemIndex===d.curPageList.length&&(s.focusItemIndex=0),pe();break;case"ArrowLeft":if(s.isEdit=!0,!Ae){if(Ie<1)return;Y(N.value,ke[Ie-1]),ne()}break;case"ArrowRight":if(s.isEdit=!0,!Ae){if(Ie===ke.length-1)return;Y(ke[Ie+1],N.value),ne()}break;case"Enter":case"NumpadEnter":!e.allowCreate&&o.isShow||e.allowCreate&&s.focusItemIndex>=0&&o.isShow?be(d.curPageList[s.focusItemIndex],"select",j):e.allowCreate&&m.value.trim()&&be(m.value,"custom",j),j.preventDefault();break;case"Backspace":Ie!==0&&!m.value&&(ie=L.selectedTagList[Ie-1],G(Ie,ie));break}},we=j=>{const ie=[],ve=j.split(";"),Ae=/^[a-zA-Z][a-zA-Z_]*/g;return ve.forEach(Ie=>{const ke=Ie.match(Ae);if(ke){const Ue=ke.join("");ie.push({[e.saveKey]:Ue,[e.displayKey]:Ue})}}),ie},le=j=>{if(j.preventDefault(),_.value)return!1;const{maxData:ie,saveKey:ve,displayKey:Ae,pasteFn:Ie,allowCreate:ke}=e,Ue=j.clipboardData.getData("text");let at=(Ie?Ie(Ue):we(Ue)).map(qe=>qe[ve]);if(at.length){const qe=W(),At=z(),gt=L.localList.map(Ke=>Ke[ve]);if(at=at.filter(Ke=>{const Mt=(Ke==null?void 0:Ke.trim())&&!P.value.includes(Ke);return ke?Mt:Mt&&gt.includes(Ke)}),ie!==-1){const Ke=L.selectedTagList.length;if(Ke<ie){const Mt=ie-Ke;at.length>Mt&&(at=[...at.slice(0,Mt)])}else at=[]}const Et=ke?at.map(Ke=>L.localList.find(Pa=>Pa[ve]===Ke)??{[ve]:Ke,[Ae]:Ke}):L.localList.filter(Ke=>at.includes(Ke[ve]));at.length&&(L.selectedTagList.splice(At,0,...Et),Y(N.value,qe[At]),p.value.style.width=`${Ja}px`,L.localList=L.localList.filter(Ke=>!at.includes(Ke[ve])),me("select"),ne())}},q=j=>{e.disabled||(Y(N.value,j.currentTarget,!0),p.value.style.width=`${Ja}px`,o.isShow&&X())},se=(j,ie)=>{if(L.selectedTagList.length>=e.maxData&&e.maxData!==-1)return;const{separator:ve,saveKey:Ae,displayKey:Ie,createTagValidator:ke}=e,Ue=z();let tt=1,at=!1,qe;const At=gt=>typeof ke=="function"?ke(gt):!0;if(ie==="custom")if(ve){let gt=j.split(ve);gt=gt.filter(Ke=>(Ke==null?void 0:Ke.trim())&&!P.value.includes(Ke)&&At(Ke));const Et=gt.map(Ke=>A.value[Ke]||{[Ae]:Ke,[Ie]:Ke});gt.length&&(L.selectedTagList.splice(Ue,0,...Et),tt=Et.length,at=!0)}else{const gt=typeof j=="object";if(qe=gt?j[Ae]:j.trim(),qe=qe.replace(/\s+/g,""),qe!==void 0&&!P.value.includes(qe)&&At(qe)){const Et=A.value[qe]||(gt?j:{[Ae]:qe,[Ie]:qe});L.selectedTagList.splice(Ue,0,Et),at=!0}}else j&&(qe=j[Ae],qe!==void 0&&!P.value.includes(qe)&&(L.selectedTagList.splice(Ue,0,j),at=!0));at&&a.nextTick(()=>{for(let gt=1;gt<=tt;gt++){const Ke=W()[Ue+gt];Y(Ke,N.value)}if(p.value.style.width=`${Ja}px`,!_.value){e.allowNextFocus&&ne();const gt=P.value.reduce((Et,Ke)=>(Et[Ke]=1,Et),{});L.localList=L.localList.filter(Et=>!gt[Et[Ae]])}})},de=(j,ie)=>{L.selectedTagList.splice(ie,1);const ve=A.value[j[e.saveKey]];(e.allowCreate&&ve||!e.allowCreate)&&!_.value&&L.localList.push(j)},U=a.computed(()=>e.collapseTags?e.collapseTags&&!s.isEdit:e.collapseTags),{overflowTagIndex:ee}=Pp(y,U,P),Ce=a.computed(()=>L.selectedTagList.reduce((j,ie,ve)=>(ee.value!==null&&ve>=ee.value&&j.push(ie[e.displayKey]),j),[]));return{popoverProps:o,...a.toRefs(s),...a.toRefs(L),...a.toRefs(d),isShowPlaceholder:x,isShowClear:T,placeholderText:O,curInputValue:m,renderList:D,showTagClose:E,tagInputRef:p,bkTagSelectorRef:y,tagListRef:b,tagInputItemRef:N,selectorListRef:w,triggerClass:$,overflowTagIndex:ee,localCollapseTags:U,collapseTooltip:Ce,focusInputTrigger:ne,activeClass:re,handleInput:te,handleFocus:ue,handleBlur:ce,handleTagSelected:be,handleTagRemove:Z,handleClear:ae,tagFocus:q,handleKeydown:fe,handlePaste:le,resolveClassName:c}},render(){return a.createVNode("div",{ref:"bkTagSelectorRef",class:`${this.resolveClassName("tag-input")}`,onClick:this.focusInputTrigger,onMouseenter:()=>this.isHover=!0,onMouseleave:()=>this.isHover=!1},[a.createVNode(wn,a.mergeProps({arrow:!1,placement:"bottom-start",theme:`light ${this.resolveClassName("tag-input-popover-content")}`,trigger:"manual"},this.popoverProps),{default:()=>{var e,t;return a.createVNode("div",{class:this.triggerClass},[a.createVNode("ul",{ref:"tagListRef",style:{marginLeft:`${this.leftSpace}px`},class:"tag-list"},[this.selectedTagList.map((n,r)=>{const s=this.localCollapseTags&&this.overflowTagIndex&&r>=this.overflowTagIndex;return a.createVNode("li",{style:{display:s?"none":""},class:"tag-item",onClick:this.tagFocus},[a.createVNode(lX,{displayKey:this.displayKey,node:n,tagOverflowTips:this.tagOverflowTips,tooltipKey:this.tooltipKey||this.displayKey,tpl:this.tagTpl},null),this.showTagClose&&a.createVNode(an,{class:"remove-tag",onClick:this.handleTagRemove.bind(this,n,r)},null)])}),a.withDirectives(a.createVNode("li",{id:"tagInputItem",ref:"tagInputItemRef",class:"tag-input-item",role:"input"},[a.withDirectives(a.createVNode("input",{ref:"tagInputRef",class:"tag-input","onUpdate:modelValue":n=>this.curInputValue=n,type:"text",onBlur:this.handleBlur,onFocus:this.handleFocus,onInput:this.handleInput,onKeydown:this.handleKeydown,onPaste:this.handlePaste},null),[[a.vModelText,this.curInputValue]])]),[[a.vShow,this.isEdit]]),!!this.overflowTagIndex&&this.localCollapseTags&&a.withDirectives(a.createVNode("li",{class:"tag-item"},[a.createVNode("div",{class:"tag"},[a.createVNode("span",{class:"text"},[a.createTextVNode("+"),this.selectedTagList.length-this.overflowTagIndex])])]),[[a.resolveDirective("bk-tooltips"),this.collapseTooltip.join(", ")]])]),a.withDirectives(a.createVNode("p",{class:"placeholder"},[this.placeholderText]),[[a.vShow,this.isShowPlaceholder]]),((t=(e=this.$slots)==null?void 0:e.suffix)==null?void 0:t.call(e))??(this.isShowClear&&a.createVNode(bn,{class:"clear-icon",onClick:this.handleClear},null))])},content:()=>a.createVNode("div",{class:`${this.resolveClassName("selector-list")}`},[a.createVNode("ul",{ref:"selectorListRef",style:{"max-height":`${this.contentMaxHeight}px`},class:"outside-ul"},[this.renderList.map((e,t)=>this.useGroup?a.createVNode("li",{class:`${this.resolveClassName("selector-group-item")}`},[a.createVNode("span",{class:"group-name"},[e.name,a.createTextVNode(" ("),e.children.length,a.createTextVNode(")")]),a.createVNode("ul",{class:`${this.resolveClassName("selector-group-list-item")}`},[e.children.map((n,r)=>a.createVNode("li",{class:[`${this.resolveClassName("selector-list-item")}`,{disabled:n.disabled},this.activeClass(n,r)],onClick:this.handleTagSelected.bind(this,n,"select")},[a.createVNode(Fm,{disabled:n.disabled,displayKey:this.displayKey,node:n,searchKey:this.searchKey,searchKeyword:this.curInputValue,tpl:this.tpl},null)]))])]):a.createVNode("li",{class:[`${this.resolveClassName("selector-list-item")}`,{disabled:e.disabled},this.activeClass(e,t)],onClick:this.handleTagSelected.bind(this,e,"select")},[a.createVNode(Fm,{disabled:e.disabled,displayKey:this.displayKey,node:e,searchKey:this.searchKey,searchKeyword:this.curInputValue,tpl:this.tpl},null)])),this.isPageLoading?a.createVNode("li",{class:`${this.resolveClassName("selector-list-item")} loading`},[a.createVNode(La,{size:os.Small,theme:"primary"},null)]):null])])})])}}),r5=Qe(cX),a5=Qe(RR),uX={list:v.arrayOf(v.shape({tag:v.string,content:v.oneOfType([v.string,v.object]),type:v.string,size:v.string,color:v.string,icon:v.func,filled:v.bool,border:v.bool,nodeType:v.timelineNodeType()}).isRequired),titleAble:v.bool.def(!1)},dX=a.defineComponent({name:"Timeline",props:uX,emits:["select"],setup(e,{emit:t}){const n=a.shallowRef([]),{resolveClassName:r}=xe(),s=o=>{t("select",o)};return a.watch(()=>e.list,()=>{n.value=e.list.map(o=>({tag:o.tag,content:o.content,type:o.type,size:o.size,color:o.color,icon:o.icon,filled:o.filled,border:o.border??!0,nodeType:o.nodeType||"template"}))},{immediate:!0,deep:!0}),{defaultTimelines:n,handleTitleSelect:s,resolveClassName:r}},render(){const e=r=>{const{icon:s}=r;return typeof s=="object"||typeof s=="function"},t=r=>{const s=this.resolveClassName("timeline"),o=["blue","red","green","yellow","gray"],c=r.type?`${s}-${r.type}`:`${s}-default`,u=r.size?`${s}-${r.size}`:"",d=r.filled?`${s}-filled`:"",h=r.color&&o.includes(r.color)?`${s}-${r.color}`:"",f=e(r)?`${s}-custom`:"";return ze({},`${s} ${c} ${u} ${h} ${d} ${f}`)},n=r=>this.$slots.content?a.createVNode("div",{class:`${this.resolveClassName("timeline-content")}`},[this.$slots.content(r)]):r.nodeType==="vnode"?a.createVNode("div",{class:`${this.resolveClassName("timeline-content")}`},[r.content]):a.createVNode("div",{class:`${this.resolveClassName("timeline-content")}`,innerHTML:r.content},null);return a.createVNode("ul",{class:this.resolveClassName("timeline")},[this.defaultTimelines.map(r=>a.createVNode("li",{class:[`${this.resolveClassName("timeline-dot")}`,t(r)]},[e(r)&&a.createVNode("div",{style:{border:r.border?`2px solid ${r.color}`:"0px",borderRadius:r.border?"50%":"0"},class:`${this.resolveClassName("timeline-icon")}`},[a.createVNode("span",{class:`${this.resolveClassName("timeline-icon-inner")}`},[typeof r.icon=="function"?a.createVNode(r.icon,null,null):r.icon])]),a.createVNode("div",{class:`${this.resolveClassName("timeline-section")}`},[a.createVNode("div",{class:`${this.resolveClassName("timeline-title")}`,onClick:()=>this.handleTitleSelect(r)},[r.nodeType==="vnode"?r.tag:a.createVNode("span",{innerHTML:r.tag},null)]),n(r)])]))])}}),vu=Qe(dX);var wr=(e=>(e.BASE_ARRAY="baseArray",e.NOT_ARRAY="notArray",e.OBJECT_ARRAY="objectArray",e))(wr||{});const fX={title:v.arrayOf(v.string).def([]),extCls:v.string.def(""),searchPlaceholder:v.string.def(""),settingKey:v.string.def("id"),displayKey:v.string.def("value"),sortKey:v.string.def("value"),showOverflowTips:v.bool.def(!1),searchable:v.bool.def(!1),sortable:v.bool.def(!1),sourceList:v.arrayOf(v.any).def([]),targetList:v.arrayOf(v.any).def([]),emptyContent:v.arrayOf(v.string).def([]),multiple:v.bool.def(!1)};function hX(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}function mX(e,t,n){const r=a.ref([]),s=a.ref([]),o=(c=!1)=>{c&&(r.value=[],s.value=[]),e.value.forEach(u=>{const d=u[n.value];t.value.includes(d)?s.value.push(u):r.value.push(u)})};return o(),a.watch(()=>[e,t,n],()=>{o(!0)},{deep:!0}),{selectList:r,selectedList:s}}function gX(e,t){const n=a.ref(""),r=a.computed(()=>e.value.filter(s=>{const o=s[t.value];return o instanceof Object?!1:o.toString().includes(n.value)}));return{selectSearchQuery:n,selectListSearch:r}}const pX=a.defineComponent({name:"Transfer",props:fX,emits:["change","update:targetList"],setup(e,{emit:t}){const n=ut("transfer"),r=a.ref({source:!1,target:!1}),s=a.ref({source:[],target:[]}),o=a.computed(()=>Array.isArray(e.sourceList)?e.sourceList.every(A=>A.toString().includes("[object Object]"))?wr.OBJECT_ARRAY:wr.BASE_ARRAY:wr.NOT_ARRAY),c=a.computed(()=>o.value===wr.BASE_ARRAY?"value":e.settingKey),u=a.computed(()=>o.value===wr.BASE_ARRAY?"value":e.displayKey),d=a.computed(()=>e.sortKey||u.value),h=a.computed(()=>{switch(o.value){case wr.BASE_ARRAY:return[...new Set(e.sourceList)].map(I=>({value:I}));case wr.OBJECT_ARRAY:return[...e.sourceList];default:return[]}}),{targetList:f}=a.toRefs(e),{selectList:m,selectedList:p}=mX(h,f,c),{selectSearchQuery:y,selectListSearch:b}=gX(m,u),N=a.computed(()=>[...b.value].sort((I,A)=>{const D=I[d.value],X=A[d.value];return D>X?1:-1})),w=a.computed(()=>[...p.value].sort((I,A)=>{const D=I[d.value],X=A[d.value];return D>X?1:-1}));a.watch(()=>[m,p],()=>{e.multiple||O()},{deep:!0});const C=(I,A)=>{const D=c.value;return I.some(X=>X[D]===A[D])&&A.disabled},E=()=>{m.value=[...h.value.filter(I=>C(m.value,I))],p.value=[...h.value.filter(I=>!C(m.value,I))],O()},_=()=>{m.value=[...h.value.filter(I=>!C(p.value,I))],p.value=[...h.value.filter(I=>C(p.value,I))],O()},x=(I,A)=>{if(I.disabled)return;const D=I[c.value],X=A?m:p,M=A?p:m,W=X.value.findIndex(ne=>ne[c.value]===D);M.value.push(...X.value.splice(W,1)),O()},O=()=>{const I=m.value.map(D=>D[c.value]),A=p.value.map(D=>D[c.value]);t("update:targetList",A),t("change",o.value===wr.BASE_ARRAY?I:m.value.map(D=>a.toRaw(D)),o.value===wr.BASE_ARRAY?A:p.value.map(D=>a.toRaw(D)),A)},T=I=>{const A=I==="source"?m:p;r.value[I]=s.value[I].length===A.value.length},$=(I,A)=>{const D=A==="source"?m:p;s.value[A]=I?D.value.map(X=>X[c.value]):[]},L=I=>{const A=I==="left",D=A?m:p,X=A?p:m,M=s.value[A?"source":"target"],W=D.value.filter(ne=>M.includes(ne[c.value]));D.value=D.value.filter(ne=>!M.includes(ne[c.value])),X.value.push(...W),s.value[A?"source":"target"]=[],O()},{resolveClassName:P}=xe();return{selectSearchQuery:y,selectListSearch:b,selectedList:p,selectListSort:N,selectedListSort:w,settingCode:c,displayCode:u,allToRight:E,allToLeft:_,handleItemClick:x,t:n,handleAllChecked:$,multipleSelectAllValue:r,multipleSelectList:s,handleMultipleChange:L,handleItemChecked:T,resolveClassName:P}},render(){const{multiple:e}=this.$props,t=this.sortable?this.selectListSort:this.selectListSearch,n=this.sortable?this.selectedListSort:this.selectedList,r=u=>{const d=u==="left-header",h=d?"source":"target",f=d?`${this.title[0]??this.t.sourceList}`:`${this.title[1]??this.t.targetList}`,m=d?!t.length:!n.length,p=!!this.multipleSelectList[h].length&&!this.multipleSelectAllValue[h],y=this.multipleSelectList[h].length,b=()=>{m||(d?this.allToRight():this.allToLeft())};return this.$slots[u]?a.createVNode("div",{class:"slot-header"},[this.$slots[u]()]):a.createVNode("div",{class:"header"},[this.multiple?a.createVNode(sn,{class:"header-checkbox",modelValue:this.multipleSelectAllValue[h],"onUpdate:modelValue":N=>this.multipleSelectAllValue[h]=N,indeterminate:p,label:f,onChange:N=>this.handleAllChecked(N,h)},null):a.createVNode(a.Fragment,null,[`${f}(${d?t.length:n.length})`]),this.multiple?a.createVNode("div",{class:"select-total-count"},[a.createVNode("span",{class:"select-count"},[y]),a.createVNode("span",{class:"count-delimiter"},[a.createTextVNode("/")]),a.createVNode("span",{class:"total-count"},[d?t.length:n.length])]):a.createVNode("span",{class:{"select-all":!0,disabled:m},onClick:()=>b()},[d?this.t.selectAll:this.t.removeAll])])},s=u=>{const d=u==="left-empty-content",h=(d?this.emptyContent[0]:this.emptyContent[1])??(d?this.t.noData:this.t.noSelected);return this.$slots[u]?a.createVNode("div",null,[this.$slots[u]()]):a.createVNode("div",{class:"empty"},[h])},o=(u,d=!0)=>a.createVNode("div",{class:["item-content",{"is-disabled":u.disabled}]},[a.createVNode("span",{class:"content-text",title:u[this.displayCode]},[u[this.displayCode]]),!e&&a.createVNode("span",{class:"icon-wrapper"},[d?a.createVNode(Bu,{class:this.resolveClassName("icon")},null):a.createVNode(an,{class:[this.resolveClassName("icon"),this.resolveClassName("icon-delete")]},null)])]),c=u=>{let d;const h=u==="left",f=u==="left"?"source":"target",m=h?t:n,p=h?"source-option":"target-option",y=h?"left-empty-content":"right-empty-content",b=e?a.createVNode(pd,{class:"content is-flex",modelValue:this.multipleSelectList[f],"onUpdate:modelValue":N=>this.multipleSelectList[f]=N,onChange:()=>this.handleItemChecked(f)},hX(d=m.map(N=>a.createVNode("div",null,[a.createVNode(sn,{class:"checkbox-item",label:N[this.settingCode]},{default:()=>{var w,C;return[((C=(w=this.$slots)[p])==null?void 0:C.call(w,N))??o(N,h)]}})])))?d:{default:()=>[d]}):a.createVNode("ul",{class:["content",this.searchable&&h?"is-search":""]},[m.map(N=>{var w,C;return a.createVNode("li",{key:N[this.settingCode],class:[this.$slots[p]?"custom-item":""],onClick:()=>this.handleItemClick(N,h)},[((C=(w=this.$slots)[p])==null?void 0:C.call(w,N))??o(N,h)])})]);return m.length?b:s(y)};return a.createVNode("div",{class:[`${this.resolveClassName("transfer")}`,this.extCls]},[a.createVNode("div",{class:"source-list"},[r("left-header"),this.searchable&&a.createVNode($a,{class:"transfer-search-input",modelValue:this.selectSearchQuery,"onUpdate:modelValue":u=>this.selectSearchQuery=u,clearable:!0,placeholder:this.searchPlaceholder||this.t.search},{prefix:()=>a.createVNode(vs,{class:this.resolveClassName("icon-search")},null)}),c("left")]),e?a.createVNode("div",{class:"transfer-button-group"},[a.createVNode("div",{class:["transfer-button",{disabled:!this.multipleSelectList.source.length}],onClick:()=>this.handleMultipleChange("left")},[a.createVNode(Dn,null,null)]),a.createVNode("div",{class:["transfer-button",{disabled:!this.multipleSelectList.target.length}],onClick:()=>this.handleMultipleChange("right")},[a.createVNode(lr,null,null)])]):a.createVNode(ld,{class:this.resolveClassName("transfer-icon")},null),a.createVNode("div",{class:"target-list"},[r("right-header"),c("right")])])}}),s5=Qe(pX);var An=(e=>(e.NODE_CHECKED="nodeChecked",e.NODE_CLICK="nodeClick",e.NODE_COLLAPSE="nodeCollapse",e.NODE_DRAG_LEAVE="nodeDragLeave",e.NODE_DRAG_OVER="nodeDragOver",e.NODE_DRAG_START="nodeDragStart",e.NODE_DROP="nodeDrop",e.NODE_ENTER_VIEW="nodeEnterView",e.NODE_EXPAND="nodeExpand",e.NODE_SELECTED="nodeSelected",e))(An||{});const yr=(...e)=>!0,vX={nodeClick:yr,nodeCollapse:yr,nodeExpand:yr,nodeChecked:yr,nodeDragStart:yr,nodeDragOver:yr,nodeDragLeave:yr,nodeDrop:yr,nodeEnterView:yr,nodeSelected:yr};var Ee=(e=>(e.DEPTH="__depth",e.HAS_CHILD="__has_child",e.INDEX="__index",e.IS_ASYNC="__is_async",e.IS_ASYNC_INIT="__is_async_init",e.IS_CACHED="__is_cached",e.IS_CHECKED="__is_checked",e.IS_INDETERMINATE="__is_indeterminate",e.IS_LOADING="__is_loading",e.IS_MATCH="__is_match",e.IS_NULL="__IS_NULL",e.IS_OPEN="__is_open",e.IS_ROOT="__is_root",e.IS_SELECTED="__is_selected",e.ORDER="__order",e.PARENT="__parent",e.PATH="__path",e.TREE_NODE_ATTR="__attr__",e.UUID="__uuid",e))(Ee||{});const Ta={__is_open:"isOpen",__is_selected:"selected",__is_match:"isMatch",__has_child:"hasChild",__is_checked:"checked",__is_async:"async",__is_loading:"loading",__is_root:"isRoot"};var i5=(e=>(e.CLICK="click",e.COLLAPSE="collapse",e.EXPAND="expand",e.SELECTED="selected",e))(i5||{});const yX={data:v.arrayOf(v.any).def([]),label:v.oneOfType([v.func.def(void 0),v.string.def("label")]),nodeKey:v.string.def(void 0),children:v.string.def("children"),indent:v.number.def(16),lineHeight:v.number.def(32),height:v.number,levelLine:v.oneOfType([v.bool.def(!1),v.func.def(void 0),v.string.def("1px dashed #c3cdd7")]).def(!1),virtualRender:v.bool.def(!1),prefixIcon:v.oneOfType([v.func.def(()=>{}),v.bool.def(!1)]).def(!0),async:v.shape({callback:v.func.def(void 0),cache:v.bool.def(!0),deepAutoOpen:Pe("columnType",{}).def("once")}),offsetLeft:v.number.def(5),search:v.oneOfType([v.shape({value:v.oneOfType([v.number,v.string,v.bool]).def(""),match:v.oneOfType([rn(),v.func]).def("fuzzy"),resultType:rn().def("tree"),showChildNodes:v.bool.def(!1)}),v.string,v.number,v.bool]).def(void 0),emptyText:v.string.def("没有数据"),draggable:v.bool.def(!1),disableDrag:v.func,disableDrop:v.func,dragSort:v.bool.def(!1),selectable:v.oneOfType([v.bool,v.func]).def(!0),disabledFolderSelectable:v.bool.def(!1),showCheckbox:v.oneOfType([v.bool,v.func]).def(!1),checked:v.arrayOf(v.any).def([]),showNodeTypeIcon:v.bool.def(!0),selected:v.oneOfType([v.string,v.number,v.object]),autoCheckChildren:v.oneOfType([v.bool,v.func]).def(!0),autoOpenParentNode:v.bool.def(!0),expandAll:v.bool.def(!1),nodeContentAction:v.oneOfType([v.arrayOf(Pe("nodeContentActionType",{}).def(i5.CLICK)),v.func.def(()=>["selected"])]).def(["selected","expand","click"]),keepSlotData:v.bool.def(!1),checkStrictly:v.bool.def(!0),intersectionObserver:v.oneOfType([v.bool.def(!1),v.shape({enabled:v.bool.def(!1),callback:v.func.def(void 0)})]).def(!1)},bX=e=>({renderEmpty:t=>a.createVNode(_d,{scene:"part",type:t},{default:()=>[e.emptyText]})}),wX=e=>{const t={enabled:e.intersectionObserver,once:!1,callback:null};let n=null,r=[],s=null;const o=()=>typeof e.intersectionObserver=="boolean"?t:typeof e.intersectionObserver=="object"?Object.assign({},t,e.intersectionObserver):t,c=a.computed(o),u=p=>p instanceof NodeList?Array.from(p):Array.isArray(p)?p:[p];return{unobserveAll:()=>{r==null||r.forEach(p=>{yn.isElement(p)&&(n==null||n.unobserve(p))}),n==null||n.disconnect(),s==null||s.disconnect()},intersectionObserver:c,initIntersectionObserver:(p,y,b)=>{if(c.value.enabled){if(!p){console.error("intersectionObserver.target is undefined");return}r=u(p);const N=Object.assign({rootMargin:"0px"},y);n=new IntersectionObserver(function(w){w.forEach(C=>{var E,_,x;if(console.log("entry",C.target),C.isIntersecting){const O=((E=b==null?void 0:b.beforeResponse)==null?void 0:E.call(b,C))??C;(x=(_=c.value).callback)==null||x.call(_,O),c.value.once&&n.unobserve(C.target)}})},N),r.forEach(w=>{yn.isElement(w)&&n.observe(w)})}},initRootMutationObserver:(p,y)=>{if(c.value.enabled&&!e.virtualRender&&yn.isElement(p)){const b={attributes:!0,childList:!0,subtree:!0};s=new MutationObserver((...N)=>{y==null||y(...N)}),s.observe(p,b)}},getLastVisibleElement:(p,y)=>{const{offsetHeight:b}=y,N=y.querySelectorAll("[data-tree-node]"),w=b+p;return Array.from(N).filter(E=>E.offsetHeight+E.offsetTop>=w&&E.offsetTop<w)}}},Ld=(e,t)=>{const n=k=>e.schema.get(k),r=(k,re)=>{var J;return(J=n(k))==null?void 0:J[re]},s=(k,re,J,K)=>{if(!e.schema.has(k)){console.warn("node is not in schema, please check",K,k);return}e.schema.set(k,Object.assign({},n(k),{[re]:J}))},o=k=>e.data.find(re=>d(re)===k),c=(k,re,J)=>{if(Array.isArray(k)){Array.prototype.forEach.call(k,K=>s(o(K),re,J,k));return}s(o(k),re,J,k)},u=k=>r(k,Ee.PATH),d=k=>r(k,Ee.UUID),h=k=>r(k,Ee.IS_OPEN),f=k=>r(k,Ee.HAS_CHILD),m=k=>r(k,Ee.IS_MATCH),p=k=>r(k,Ee.IS_CHECKED),y=k=>r(r(k,Ee.PARENT),Ee.UUID),b=k=>r(k,Ee.IS_LOADING),N=k=>r(k,Ee.PARENT),w=k=>r(k,Ee.IS_MATCH),C=(k,re)=>{const J=e.data.find(K=>d(K)===k);return r(J,re)},E=k=>typeof k=="string"?C(k,Ee.IS_ROOT):r(k,Ee.IS_ROOT),_=k=>{const re=e.data.find(J=>d(J)===k);return y(re)},x=k=>{const re=e.data.find(J=>d(J)===k);return u(re)},O=(k,re)=>{s(k,Ee.IS_LOADING,re)},T=k=>typeof k=="object"?h(k):typeof k=="string"?C(k,Ee.IS_OPEN):!1,$=(k,re)=>r(r(k,Ee.PARENT),re),L=k=>T(r(k,Ee.PARENT)),P=k=>E(k)||T(k)||L(k),I=(k,re)=>{const K=k.split("-").reduce((F,z)=>{const Y=Number(z);return Array.isArray(F)?F[Y]:F[t.children][Y]},t.data);return re&&Object.assign(K,{[Ee.UUID]:re}),K},A=k=>k[t.children]??[],D=k=>e.data.find(re=>d(re)===k),X=k=>E(k)?{[t.children]:t.data}:N(k),M=k=>({[Ta[Ee.IS_LOADING]]:r(k,Ee.IS_LOADING),[Ta[Ee.HAS_CHILD]]:f(k),[Ta[Ee.IS_MATCH]]:m(k),[Ta[Ee.IS_CHECKED]]:p(k),[Ta[Ee.IS_OPEN]]:h(k),[Ta[Ee.IS_ROOT]]:E(k),fullPath:r(k,Ee.PATH),uuid:d(k),parent:r(k,Ee.PARENT),parentId:d(r(k,Ee.PARENT))});return{getSchemaVal:n,getNodeAttr:r,getNodeId:d,getNodeById:o,getNodeParentId:y,getParentNodeData:X,getNodePathById:x,getNodeAttrById:C,getNodeParentIdById:_,getParentNodeAttr:$,getParentNode:N,setNodeAttr:s,setNodeAttrById:c,getNodePath:u,isRootNode:E,isNodeOpened:h,hasChildNode:f,isItemOpen:T,isNodeChecked:p,isNodeMatched:m,isNodeLoading:b,checkNodeIsOpen:P,getSourceNodeByPath:I,getSourceNodeByUID:D,isMatchedNode:w,resolveScopedSlotParam:M,setTreeNodeLoading:O,extendNodeAttr:k=>Object.assign({},k,{[Ee.TREE_NODE_ATTR]:M(k)}),getChildNodes:A,extendNodeScopedData:k=>({data:k,attributes:M(k)}),getIntersectionResponse:k=>{var Y;if(!k)return null;let re=k;yn.isElement(k)&&(re=o(k.getAttribute("data-tree-node")));const J=r(re,Ee.DEPTH),K=r(re,Ee.IS_ROOT),F=r(re,Ee.PARENT),z=K?r(re,Ee.INDEX):(Y=F==null?void 0:F[t.children])==null?void 0:Y.findIndex(te=>te===re);return{level:J,target:k,index:z,parent:F,node:re,isRoot:K}}}},o5="1px dashed #c3cdd7",l5=(e,t,n=null,r=null,s=null,o=[])=>{const c=e[t];return typeof c=="boolean"?c?r:s:c5(n,e,t,o)},c5=(e,t,n,r=[])=>{const s=t[n];if(typeof s=="string")return typeof e=="object"&&e!==null?(Object.prototype.hasOwnProperty.call(e,s)||console.error(`cannot find node label with key ${s}`),e[s]):s;if(typeof s=="function"){const o=s.apply(void 0,[e,...r]);if(typeof o=="string")return o;console.error("props label with function return value is not string, please check and return string");return}},u5=(e,t)=>c5(e,t,"label"),CX=(e,t)=>({"--level-line":l5(t,"levelLine",e,o5,null,["tree"]),"--lineHeight":`${t.lineHeight}px`,"--indent":`${t.indent}px`,"--offset-left":`${t.offsetLeft}px`}),NX=(e,t,n,r=!0)=>{var c;const{schema:s}=n,o=(c=s.get(e))==null?void 0:c[Ee.DEPTH];if(r){const u=["node"],d=()=>l5(t,"levelLine",e,o5,null,u);return{"--depth":o,...typeof t.levelLine=="function"?{"--level-line":d()}:{}}}return{}},xX=(e,t,n,r=!0)=>{const{__is_root:s,__is_open:o}=t.get(e)||{},{resolveClassName:c}=xe();return{"is-root":s,[`${c("tree-node")}`]:!0,"is-open":o,"is-virtual-render":n.virtualRender,"level-line":n.levelLine&&r}},_X=(e,t)=>{const{__is_checked:n,__is_selected:r}=t.get(e)||{},{resolveClassName:s}=xe();return{"is-checked":n,"is-selected":r,"node-folder":e.is_folder,"node-leaf":e.is_leaf,[`${s("node-row")}`]:!0}},SX=(e,t,n,r,s)=>{TX(e,t,n,{[r]:s})},TX=(e,t,n,r)=>{const o=e.split("-").reduce((c,u)=>{const d=Number(u);return Array.isArray(c)?c[d]:c[n][d]},t);Object.assign(o,r||{})},po=e=>e??{__IS_NULL:!0},Hc=(e,t,n)=>Array.isArray(t)?t.some(r=>Hc(e,r,n)):typeof t=="string"||typeof t=="number"?t===n:e===t,d5=(e,t)=>typeof e.showCheckbox=="function"?e.showCheckbox(t):e.showCheckbox,f5=(e,t)=>{const{setNodeAttr:n,getNodePath:r,getNodeAttr:s,resolveScopedSlotParam:o,setTreeNodeLoading:c}=Ld(t,e),u=(f,m)=>{if(typeof f=="object"&&f!==null){n(m,Ee.IS_OPEN,!0);const p=Array.isArray(f)?f:[f];return SX(r(m),e.data,e.children,e.children,p),Promise.resolve(f)}return Promise.resolve(f)},d=f=>{const{callback:m=null,cache:p=!0}=e.async||{};if(typeof m=="function"&&s(f,Ee.IS_ASYNC)){if(n(f,Ee.IS_ASYNC_INIT,!0),!s(f,Ee.IS_CACHED)){n(f,Ee.IS_CACHED,p);const y=o(f),b=m(f,N=>u(N,f),y);if(typeof b=="object"&&b!==null)return c(f,!0),b instanceof Promise?Promise.resolve(b.then(N=>u(N,f)).catch(N=>console.error("load remote data error:",N)).finally(()=>{c(f,!1),n(f,Ee.IS_CACHED,!0)})):(u(b,f),c(f,!1),Promise.resolve(!0))}return Promise.resolve(!0)}return Promise.resolve(!0)},h=()=>{const f=t.data.filter(m=>s(m,Ee.IS_ASYNC)&&m[Ta[Ee.IS_OPEN]]&&!s(m,Ee.IS_ASYNC_INIT));f.length&&Promise.all(f.map(m=>d(m))).then(()=>{h()}).catch(m=>{console.warn(m)})};return{asyncNodeClick:d,deepAutoOpen:h}},EX=(e,t,n,r,s)=>{let o=e.selected;const{setNodeAttr:c,setNodeAttrById:u,getNodePath:d,getSchemaVal:h,getNodeAttr:f,getNodeId:m,getChildNodes:p,isRootNode:y,hasChildNode:b,isItemOpen:N,isNodeOpened:w,isNodeLoading:C,isNodeChecked:E,getParentNode:_,resolveScopedSlotParam:x,extendNodeAttr:O,extendNodeScopedData:T}=Ld(n,e),{resolveClassName:$}=xe(),{registerNextLoop:L}=s,{asyncNodeClick:P,deepAutoOpen:I}=f5(e,n),A=le=>N(le)?a.createVNode(Zu,{class:[$("tree-icon"),$("node-prefix")]},null):a.createVNode(Ju,{class:[$("tree-icon"),$("node-prefix")]},null),D=le=>{if(typeof le=="string")return le;if(typeof le=="object"&&le!==null){if(a.isVNode(le))return le;const{node:q,className:se,text:de,style:U}=le;return a.h(q,{class:se,style:U},de)}return null},X=le=>{var q,se;return((se=(q=t.slots).nodeLoading)==null?void 0:se.call(q,G(le)))??C(le)?a.createVNode(Oi,null,null):""},M=le=>{if(t.slots.nodeAction)return t.slots.nodeAction(G(le));let q=null;if(C(le))return X(le);if(typeof e.prefixIcon=="function"&&(q=e.prefixIcon(G(le),"node_action"),q!=="default"))return D(q);if(q==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon){const se=typeof e.autoCheckChildren=="function"?e.autoCheckChildren(le):e.autoCheckChildren;if(b(le)||le.async||!se)return N(le)?a.createVNode(Zo,{class:$("node-prefix")},null):a.createVNode(nl,{class:$("node-prefix")},null)}return null},W=le=>{if(!e.showNodeTypeIcon)return null;if(t.slots.nodeType)return t.slots.nodeType(G(le));let q=null;return typeof e.prefixIcon=="function"&&(q=e.prefixIcon(G(le),"node_type"),q!=="default")?D(q):q==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon?y(le)||b(le)?A(le):a.createVNode(od,{class:[$("tree-icon"),$("node-prefix")]},null):null},ne=(le,q)=>{const se=_(le);if(se){const de=q||(p(se)||[]).some(U=>E(U));c(se,Ee.IS_CHECKED,de),c(se,Ee.IS_INDETERMINATE,(p(se)||[]).some(U=>!E(U)||re(U))),y(se)||ne(se,q)}},B=(le,q,se)=>{p(le).forEach(de=>{Array.isArray(q)?q.forEach((U,ee)=>{c(de,U,se[ee])}):c(de,q,se),B(de,q,se)})},k=(le,q,se)=>{se==null||se.preventDefault(),se==null||se.stopImmediatePropagation(),se==null||se.stopPropagation(),c(le,Ee.IS_CHECKED,!!q),q&&c(le,Ee.IS_INDETERMINATE,!1),e.checkStrictly&&(B(le,[Ee.IS_CHECKED,Ee.IS_INDETERMINATE],[!!q,!1]),ne(le,q)),t.emit(An.NODE_CHECKED,n.data.filter(de=>E(de)),n.data.filter(de=>re(de))),Z(le,se)},re=le=>E(le)&&f(le,Ee.IS_INDETERMINATE),J=le=>d5(e,T(le))?a.createVNode("span",{onClick:fe},[a.createVNode(sn,{indeterminate:re(le),modelValue:E(le),size:"small",onChange:(q,se)=>k(le,!!q,se)},null)]):null,K=(le,q=null,se=null,de=!0)=>{const U=q===null?!N(le):!!q;if(U||B(le,Ee.IS_OPEN,U),c(le,Ee.IS_OPEN,U),de){const ee=N(le)?An.NODE_EXPAND:An.NODE_COLLAPSE;t.emit(ee,le,x(le),h(le),se)}},F=(le,q,se)=>{if(Array.isArray(le)){le.forEach(de=>c(po(de),q,se));return}c(po(le),q,se)},z=(le,q=!0,se=!1)=>{Y(le,Ee.IS_OPEN,q,se&&q)},Y=(le,q,se,de=!1)=>{const U=po(le);if(U[Ee.IS_NULL])return;const ee=Array.isArray(q)?q:[q],Ce=Array.isArray(se)?se:[se];if(de){if(ee.forEach((j,ie)=>F(U,j,Ce[ie])),!y(U)){const j=_(U);ee.forEach((ie,ve)=>{f(j,ie)!==se&&Y(j,ie,Ce[ve],de)})}}else ee.forEach((j,ie)=>F(U,j,Ce[ie]))},te=(le,q)=>{if(N(le)){K(le,!1,q,!0);return}P(le).finally(()=>{f(le,Ee.IS_LOADING)?L("setNodeOpenedAfterLoading",{type:"once",fn:()=>K(le,!0,q,!0)}):K(le,!0,q,!0)})},ue=(le,q)=>{le.stopImmediatePropagation(),le.stopPropagation(),le.preventDefault(),te(q,le)},ce=(le,q=!0,se=!0,de=!1)=>{const U=Array.isArray(le)?le:[le];if(!U.length)return;let ee=po(U[0]);if((typeof ee=="string"||typeof ee=="number"||typeof ee=="symbol")&&(ee=n.data.find(Ce=>m(Ce)===ee)??{[Ee.IS_NULL]:!0}),!ee[Ee.IS_NULL]){if(!e.selectable||typeof e.selectable=="function"&&!e.selectable(le)||e.disabledFolderSelectable&&ee.is_folder===!0){console.warn("props.selectable is false or undefined, please set selectable with true");return}o!=null&&u(o,Ee.IS_SELECTED,!q),e.selected&&e.selected!==o&&u(e.selected,Ee.IS_SELECTED,!q),c(ee,Ee.IS_SELECTED,q),o=m(ee),de&&t.emit(An.NODE_SELECTED,{selected:q,node:ee}),se&&U.length===1&&z(ee,!0,!0),f(ee,Ee.IS_ASYNC)&&P(ee).then(()=>{a.nextTick(()=>{U.shift(),ce(U,q,se)})})}},be=le=>typeof e.nodeContentAction=="function"?Reflect.apply(e.nodeContentAction,void 0,[{node:le}]):typeof e.nodeContentAction=="string"?[e.nodeContentAction]:Array.isArray(e.nodeContentAction)?e.nodeContentAction:["selected","expand","click"],Z=(le,q)=>{const se=be(le);if(se.includes("selected")&&ce(le,!0,!0,!0),se.includes("expand")&&(w(le)||te(le,q)),se.includes("collapse")&&w(le)&&te(le,q),se.includes("click")){const de=An.NODE_CLICK;t.emit(de,le,x(le),h(le),q)}},me=(le,q)=>{if(y(q))return!1;const se=d(q),de=`${se}`.split("-").slice(0,le+1);if(de.join("-")===se)return!0;const ee=de.pop(),Ce=parseInt(ee,10);de.push(`${Ce+1}`);const j=de.join("-");return n.data.some(ie=>d(ie)===j)},ae=le=>{if(!e.levelLine)return null;const q=de=>({"--depth":de}),se=(f(le,Ee.DEPTH)??0)+1;return new Array(se).fill("").map((de,U)=>U).filter(de=>me(de,le)).filter(de=>de>0).map(de=>a.createVNode("span",{style:q(se-de),class:"node-virtual-line"},null))},pe=le=>{var q,se,de,U;return t.slots.node?(se=(q=t.slots).node)==null?void 0:se.call(q,G(le)):t.slots.default?(U=(de=t.slots).default)==null?void 0:U.call(de,T(le)):[u5(le,e)]},G=le=>e.keepSlotData?T(le):O(le),fe=le=>{le.stopImmediatePropagation(),le.stopPropagation()};return{renderTreeNode:(le,q=!0)=>{var se,de;return a.createVNode("div",{key:m(le),class:_X(le,n.schema),"data-tree-node":m(le)},[a.createVNode("div",{style:NX(le,e,n,q),class:xX(le,n.schema,e,q),onClick:U=>Z(le,U)},[a.createVNode("div",{class:[$("node-action")],onClick:U=>ue(U,le)},[M(le)]),a.createVNode("div",{class:$("node-content")},[[J(le),W(le)],a.createVNode("span",{class:$("node-text")},[pe(le)]),(de=(se=t.slots).nodeAppend)==null?void 0:de.call(se,G(le))]),q&&ae(le)])])},handleTreeNodeClick:te,deepAutoOpen:I,asyncNodeClick:P,setNodeAction:F,setNodeOpened:K,setSelect:ce,setOpen:z,setNodeAttribute:Y,isIndeterminate:re}},OX=(e,t,n,r)=>{const{getSourceNodeByUID:s,getParentNodeData:o,getNodeParentIdById:c,extendNodeAttr:u,getNodeAttrById:d,getNodePathById:h,isRootNode:f}=Ld(r,e),{resolveClassName:m}=xe(),p=a.computed(()=>typeof e.disableDrag=="function"),y=a.computed(()=>typeof e.disableDrop=="function");let b="";const N=I=>I.target.closest("[data-tree-node]"),w=I=>{var D;const A=(D=I==null?void 0:I.dataset)==null?void 0:D.treeNode;return s(A)},C=I=>{N(I).removeEventListener("mouseup",C)},E=I=>{const A=N(I),D=w(A);if(D.draggable===!1||p.value&&e.disableDrag(D)){A.classList.add(`${m("tree-drag-disabled")}`);return}A.setAttribute("draggable","true"),A.addEventListener("mouseup",C)},_=I=>{I.preventDefault();const A=N(I),D=u(w(A));if(t.emit(An.NODE_DRAG_OVER,I,A,D),y.value&&(e!=null&&e.disableDrop(D))){I.dataTransfer.effectAllowed="move",I.dataTransfer.dropEffect="none",A.classList.add(`${m("tree-drop-disabled")}`);return}A.classList.add(`${m("tree-drop-active")}`);let X=I.dataTransfer.getData("node-id");X=b;const M=A.getAttribute("data-tree-node"),W=T(X,M)?"move":"none";I.dataTransfer.effectAllowed=W,I.dataTransfer.dropEffect=W},x=I=>{I.dataTransfer.effectAllowed="move",I.dataTransfer.dropEffect="move";const A=N(I);I.dataTransfer.setData("text/plain","");const D=A.getAttribute("data-tree-node");b=D,I.dataTransfer.setData("node-id",D),t.emit(An.NODE_DRAG_START,I,A)},O=I=>{I.preventDefault(),I.stopPropagation();const A=N(I);A.classList.remove(`${m("tree-drop-active")}`,`${m("tree-drop-disabled")}`);const D=u(w(A));if(y.value&&e.disableDrop(D))return;const X=b,M=A.getAttribute("data-tree-node");Reflect.apply(e.dragSort?$:L,void 0,[X,M]),t.emit(An.NODE_DROP,I,A,D)},T=(I,A)=>{const D=h(I),X=h(A),M=c(I),W=c(A);return M===W?!0:D.indexOf(X)===-1&&X.indexOf(D)===-1},$=(I,A)=>{if(!T(I,A))return;const D=JSON.parse(JSON.stringify(s(I))),X=JSON.parse(JSON.stringify(s(A))),M=o(I),W=o(A),ne=d(I,Ee.INDEX),B=d(A,Ee.INDEX);M==null||M[e.children].splice(ne,1,X),W==null||W[e.children].splice(B,1,D)},L=(I,A)=>{const D=s(I),X=s(A);let M=null;if(f(I))M=e.data;else{const W=c(I);if(W!=null){M=s(W);const ne=d(I,Ee.INDEX);M==null||M[e.children].splice(ne,1)}}X[e.children]||(X[e.children]=[]),X[e.children].unshift(D)},P=I=>{I.preventDefault();const A=N(I);A.classList.remove(`${m("tree-drop-active")}`,`${m("tree-drop-disabled")}`),t.emit(An.NODE_DRAG_LEAVE,I,A)};a.onMounted(()=>{if(e.draggable&&n.value){const I=n.value.$el;I.addEventListener("mousedown",E),I.addEventListener("dragstart",x),I.addEventListener("dragover",_),I.addEventListener("dragleave",P),I.addEventListener("drop",O)}}),a.onUnmounted(()=>{if(e.draggable&&n.value){const I=n.value.$el;I.removeEventListener("mousedown",E),I.removeEventListener("dragstart",x),I.removeEventListener("dragover",_),I.removeEventListener("dragleave",P),I.removeEventListener("drop",O)}})},LX=e=>{const t=a.toRef(e,"search"),{resultType:n="tree",showChildNodes:r=!0}=e.search??{},s=p=>["string","number","boolean"].includes(typeof p),o=(p,y)=>p===y,c=(p,y)=>new RegExp(`${p}`,"i").test(`${y}`),u=(p,y)=>Reflect.apply(p,void 0,y),d=t.value===void 0||t.value===!1,h=(p,y)=>{if(d)return!0;if(s(t.value))return`${t.value}`.length===0?!1:u(c,[t.value,p,y]);const{value:b="",match:N="fuzzy"}=t.value,C=typeof N=="function"?N:N==="fuzzy"?c:o;return`${b}`.length===0?!1:u(C,[b,p,y])},f=a.computed(()=>{if(t.value===!1)return!1;if(s(t.value))return`${t.value}`.length>0;const{value:p=""}=t.value;return`${p}`.length>0}),m=a.computed(()=>n==="tree");return{searchFn:h,refSearch:t,isSearchActive:f,isSearchDisabled:d,resultType:n,isTreeUI:m,showChildNodes:r}},AX=e=>{var N;const t=(w=void 0,C=null)=>{const{data:E,children:_}=e,x=[],O=[];let T=0;const $=new WeakMap;function L(k,re,J,K){if(k!=null&&$.has(k)){const F=$.get(k);if(Object.prototype.hasOwnProperty.call(F,re)&&typeof K=="function"&&Reflect.apply(K,self,[F,re,J,k])){if(F[re]===J)return;Object.assign(F,{[re]:J}),L(F[Ee.PARENT],re,J,K)}}}function P(k){let re=null;return typeof e.nodeKey=="string"&&(re=k[e.nodeKey]||or()),re||k[Ee.UUID]||or()}const I={[Ee.IS_OPEN]:()=>!!e.expandAll,[Ee.IS_CHECKED]:()=>!1,[Ee.IS_MATCH]:()=>!1,[Ee.IS_SELECTED]:(k,re)=>Hc(k,e.selected,re),[Ee.IS_CACHED]:()=>!1,[Ee.IS_ASYNC]:()=>null,[Ee.IS_LOADING]:()=>!1};function A(k,re,J,K=void 0){let F=K;K===void 0&&typeof I[J]=="function"&&(F=I[J](re,k));const z=Ta[J];if(Object.prototype.hasOwnProperty.call(re,z))return re[z];const Y=(C==null?void 0:C.get(re))??void 0;let te;return Y&&(te=Y[J]),te==null&&(te=F),te}function D(k,re){if(!e.selectable)return!1;const J=Hc(re,e.selected,k);return A(k,re,Ee.IS_SELECTED,J)}function X(k,re,J){var z;const K=A(k,re,Ee.IS_OPEN),F=$.has(J)?(z=$.get(J))==null?void 0:z[Ee.IS_OPEN]:!0;return K&&F}function M(k,re,J){if(!d5(e,{data:k,attributes:J}))return!1;const F=Hc(k,e.checked,re);return A(re,k,Ee.IS_CHECKED,F)}function W(k){return!((k==null?void 0:k[Ee.IS_OPEN])??!1)}function ne(k,re,J,K){return k[Ee.IS_INDETERMINATE]=(K[e.children]||[]).some(F=>{var z;return!(((z=$.get(F))==null?void 0:z[Ee.IS_CHECKED])??!1)}),!0}function B(k,re=0,J=null,K=null){const F=k.length;for(let z=0;z<F;z++){const Y=k[z];if(Array.isArray(Y))B(Y,re,J,K);else if(typeof Y=="object"&&Y!==null){const te=K!==null?`${K}-${z}`:`${z}`,ue=`${P(Y)}`,ce=!!(Y[_]||[]).length;let be=A(ue,Y,Ee.IS_OPEN);e.autoOpenParentNode?be&&L(J,Ee.IS_OPEN,!0,W):be=X(ue,Y,J);const Z={[Ee.DEPTH]:re,[Ee.INDEX]:z,[Ee.UUID]:ue,[Ee.PARENT]:J,[Ee.HAS_CHILD]:ce,[Ee.PATH]:te,[Ee.IS_ROOT]:J===null,[Ee.ORDER]:T,[Ee.IS_SELECTED]:D(ue,Y),[Ee.IS_MATCH]:A(ue,Y,Ee.IS_MATCH),[Ee.IS_OPEN]:be,[Ee.IS_CHECKED]:void 0,[Ee.IS_CACHED]:A(ue,Y,Ee.IS_CACHED),[Ee.IS_ASYNC]:A(ue,Y,Ee.IS_ASYNC),[Ee.IS_LOADING]:A(ue,Y,Ee.IS_LOADING),[Ee.IS_INDETERMINATE]:!1};Z[Ee.IS_CHECKED]=M(Y,ue,Z),Z[Ee.IS_CHECKED]&&x.push(Y),$.set(Y,Z),O.push(Y),T+=1,Object.prototype.hasOwnProperty.call(Y,_)&&B(Y[_]||[],re+1,Y,te)}}}return B(w??E),e.showCheckbox!==!1&&e.checkStrictly&&(x==null||x.forEach(k=>{L(k,Ee.IS_CHECKED,!0,ne)})),[O,$]},n=t(),r=new Map,s=[],o=[],c=a.reactive({data:n[0],schema:n[1],levelLineSchema:{}}),{asyncNodeClick:u,deepAutoOpen:d}=f5(e,c),h=w=>{s.push(w)},f=(w,C,E=!0)=>{E&&r.has(w)&&r.delete(w),r.set(w,C)},m=w=>typeof w=="function"?{type:"loop",fn:w}:typeof w=="object"&&typeof w.type=="string"&&typeof w.fn=="function"?w:(console.error("loop event error",w),null),p=w=>{const C=m(w);return C!==null&&Reflect.apply(C.fn,void 0,[]),(C==null?void 0:C.type)??"once"},y=()=>{Array.from(r.keys()).forEach(w=>{const C=r.get(w);if(Array.isArray(C)){const E=[];C.forEach((_,x)=>{p(_)==="once"&&E.unshift(x)}),E.length&&E.forEach(_=>C.splice(_,1)),C.length===0&&r.delete(w)}else p(C)==="once"&&r.delete(w)})};a.watch(()=>[e.data],w=>{var E,_;const C=t(w[0],c.schema);c.data=C[0],c.schema=C[1],(E=e.async)!=null&&E.callback&&((_=e.async)==null?void 0:_.deepAutoOpen)==="every"&&d(),y()},{deep:!0}),e.selectable&&a.onMounted(()=>{a.watch(()=>e.selected,w=>{o.length=0,s.forEach(C=>{Reflect.apply(C,void 0,[w]),o.push(()=>Reflect.apply(C,void 0,[w]))}),f("afterSelectWatch",o)},{immediate:!0})});const b=w=>{f("afterDataUpdate",w)};return(N=e.async)!=null&&N.callback&&d(),{flatData:c,asyncNodeClick:u,deepAutoOpen:d,afterDataUpdate:b,registerNextLoop:f,onSelected:h}},VX=a.defineComponent({name:"Tree",props:yX,emits:vX,setup(e,t){const n=a.ref(),{flatData:r,onSelected:s,registerNextLoop:o}=AX(e),{checkNodeIsOpen:c,isRootNode:u,isNodeOpened:d,isNodeChecked:h,isNodeMatched:f,hasChildNode:m,getNodePath:p,getNodeId:y,getNodeAttr:b,getParentNode:N,getIntersectionResponse:w}=Ld(r,e),{searchFn:C,isSearchActive:E,refSearch:_,isSearchDisabled:x,isTreeUI:O,showChildNodes:T}=LX(e),$=a.reactive([]),L=Z=>{if(E.value){if(T){const ae=`${p(Z)??""}-`;return c(Z)&&(f(Z)||$.some(pe=>ae.indexOf(`${pe}-`)===0))}return c(Z)&&f(Z)}return c(Z)},P=a.computed(()=>r.data.filter(Z=>L(Z))),{getLastVisibleElement:I,intersectionObserver:A}=wX(e),{renderTreeNode:D,handleTreeNodeClick:X,setOpen:M,setNodeAction:W,setSelect:ne,asyncNodeClick:B,setNodeAttribute:k,isIndeterminate:re}=EX(e,t,r,P,{registerNextLoop:o}),J=Uo(120,()=>{$.length=0,r.data.forEach(Z=>{const me=C(u5(Z,e),Z);me&&$.push(p(Z)),k(Z,[Ee.IS_MATCH],[me],O.value&&me)})});x||a.watch([_],()=>{J()},{deep:!0,immediate:!0}),a.onMounted(()=>{e.virtualRender&&a.nextTick(()=>{Y()})});const K=(Z,me=!0,ae=!1)=>{W(po(Z),Ee.IS_CHECKED,me),ae&&t.emit(An.NODE_CHECKED,r.data.filter(pe=>h(pe)),r.data.filter(pe=>re(pe)))};s(Z=>{ne(Z,!0,e.autoOpenParentNode,!0)});const F=()=>r;a.watch(()=>[e.checked],()=>{K(e.checked,!0)});const z=()=>{var Z;(Z=n.value)==null||Z.reset()},Y=Z=>{if(Z==null){n.value.fixToTop({index:1});return}if(e.nodeKey&&Object.prototype.hasOwnProperty.call(Z,e.nodeKey)){n.value.fixToTop({index:P.value.findIndex(ae=>ae[e.nodeKey]===Z[e.nodeKey])+1});return}if(Z.id!==void 0&&Z.id!==null){n.value.fixToTop({index:P.value.findIndex(ae=>ae[e.nodeKey]===Z.id)+1});return}if(Z.index>=0){n.value.fixToTop({index:Z.index});return}const me=y(Z);if(me){n.value.fixToTop({index:P.value.findIndex(ae=>y(ae)===me)+1});return}};t.expose({handleTreeNodeClick:X,isNodeChecked:h,isRootNode:u,isNodeOpened:d,isNodeMatched:f,hasChildNode:m,setOpen:M,setChecked:K,setNodeAction:W,setNodeOpened:M,setSelect:ne,scrollToTop:Y,asyncNodeClick:B,getData:F,reset:z,getNodeAttr:b,getParentNode:N});const{renderEmpty:te}=bX(e);OX(e,t,n,r);const ue=Z=>{var ae,pe;if(Z.length)return Z.map(G=>D(G,!E.value||O.value));const me=E.value?"search-empty":"empty";return((pe=(ae=t.slots).empty)==null?void 0:pe.call(ae))??te(me)},ce=([Z,me,ae])=>{var pe,G,fe,we;if(A.value.enabled&&Z.offset.y>5){if(!e.virtualRender){const q=I(Z.offset.y,n.value.refRoot),se=w(q[0]);(G=(pe=A.value)==null?void 0:pe.callback)==null||G.call(pe,se),t.emit(An.NODE_ENTER_VIEW,se);return}const le=w(ae.slice(-1)[0]);(we=(fe=A.value)==null?void 0:fe.callback)==null||we.call(fe,le),t.emit(An.NODE_ENTER_VIEW,le);return}},{resolveClassName:be}=xe();return()=>a.createVNode($i,{ref:n,style:CX(null,e),height:e.height,class:be("tree"),contentClassName:be("container"),enabled:e.virtualRender,keepAlive:!0,lineHeight:e.lineHeight,list:P.value,rowKey:Ee.UUID,throttleDelay:0,onContentScroll:ce},{default:Z=>ue(Z.data||[])})}}),h5=Qe(VX),as="upload";var Zr=(e=>(e.BUTTON="button",e.DRAGGABLE="draggable",e.PICTURE="picture",e))(Zr||{}),rh=(e=>(e.BINARY="binary",e.FORMDATA="formdata",e))(rh||{}),Xs=(e=>(e.FAIL="fail",e.NEW="new",e.SUCCESS="success",e.UPLOADING="uploading",e))(Xs||{});const Hm=[Zr.BUTTON,Zr.DRAGGABLE,Zr.PICTURE],Bm=[rh.FORMDATA,rh.BINARY],Tr={type:{type:String,default:"formdata",validator:e=>!e||Bm.includes(e)?!0:(console.error(`invalid type, ${e}, the type must be one of 【${Bm.join(" | ")}】`),!1)},theme:{type:String,default:"draggable",validator:e=>!e||Hm.includes(e)?!0:(console.error(`invalid theme, ${e}, the theme must be one of 【${Hm.join(" | ")}】`),!1)},files:{type:Array,default:()=>[]},name:{type:String,default:"upload_file"},multiple:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},accept:{type:String},delayTime:{type:Number,default:0},url:{type:String,required:!1},method:{type:String,default:"post"},size:{type:[Number,Object],default(){return{maxFileSize:5,maxImgSize:1}}},handleResCode:{type:Function,default(e){return!!(e&&e.code===0)}},headers:{type:Object,default:()=>({})},header:{type:[Array,Object],default:()=>[]},tip:{type:String,default:""},validateName:{type:RegExp},withCredentials:{type:Boolean,default:!1},limit:Number,data:{type:[Array,Object],default:()=>[]},formDataAttributes:{type:[Array,Object],default:()=>[]},extCls:{type:String,default:""},customRequest:Function,selectChange:{type:Function},beforeUpload:{type:Function},beforeRemove:{type:Function},sliceUpload:{type:Boolean,default:!1},sliceUrl:{type:String,default:""},mergeUrl:{type:String,default:""},chunkSize:{type:Number,default:10}};function zm(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const $X=a.defineComponent({name:"UploadList",props:{theme:Tr.theme,disabled:Tr.disabled,files:Tr.files,multiple:Tr.multiple},emits:["remove","retry"],setup(e,{slots:t,emit:n}){const r=ut("upload"),{resolveClassName:s}=xe(),{theme:o,disabled:c,multiple:u}=a.toRefs(e),d=`${s(as)}-list`,h=a.computed(()=>o.value===Zr.PICTURE),f=a.computed(()=>h.value&&!u.value),m=a.computed(()=>ze({[d]:!0,[`${d}--${o.value}`]:!0,[`${d}--disabled`]:c.value}));function p(x){const O=["Bytes","KB","MB","GB","TB"],T=Math.floor(Math.log(x)/Math.log(1024));return`${(x/1024**T).toFixed(2)}${O[T]}`}function y(x,O){n("remove",x,O)}function b(x,O){n("retry",x,O)}const N=()=>{let x;return a.createVNode(a.TransitionGroup,{name:`${d}__item`},zm(x=e.files.map(O=>{const T=ze({[`${d}__item`]:!0,[`${d}__item-picture`]:!0,[`${d}__item--${O.status}`]:!0});return a.createVNode("li",{key:O.uid,class:T},[t!=null&&t.file?t.file({file:O}):w(O)])}))?x:{default:()=>[x]})},w=x=>[a.withDirectives(a.createVNode("img",{class:`${d}__picture-item-thumbnail`,alt:"",src:x.url},null),[[a.vShow,x.status!=="uploading"]]),a.createVNode(a.Fragment,null,[x.status==="uploading"&&a.createVNode(Fo,{width:50,class:`${d}__picture-item-progress`,bgColor:"#333",color:"#3a84ff",percent:x.percentage,titleStyle:{color:"#fff"},type:"circle"},null)]),a.createVNode(a.Fragment,null,[!c.value&&a.createVNode("div",{class:`${d}__picture-item-actions`},[a.createVNode(pi,{class:"action-icon",onClick:O=>y(x,O)},null)])])],C=()=>{let x;return a.createVNode(a.TransitionGroup,{name:`${d}__item`},zm(x=e.files.map(O=>{const T=ze({[`${d}__item`]:!0,[`${d}__item--${O.status}`]:!0});return a.createVNode("li",{key:O.uid,class:T},[t!=null&&t.file?t.file({file:O}):_(O)])}))?x:{default:()=>[x]})},E=x=>{var I;const O=(I=x==null?void 0:x.raw)==null?void 0:I.type,[T]=(O==null?void 0:O.split("/"))||"";let L={text:ei,image:td,application:ei,video:dd,audio:Uu}[T]||ei;return["application/zip","application/rar","application/tar","application/gz","application/x-gzip"].includes(O)&&(L=Fu),a.h(L,{class:`${d}__item-file-icon`})},_=x=>[a.createVNode("div",{class:`${d}__item-icon`},[x.isPic?a.createVNode("img",{class:`${d}__item-thumbnail`,alt:"",src:x.url},null):E(x)]),a.createVNode("div",{class:`${d}__item-summary`},[a.createVNode("div",{class:`${d}__item-name`,title:x.name},[x.name]),x.status!=="uploading"&&a.createVNode("div",{class:`${d}__item-message`,title:x.statusText},[x.status==="success"&&a.createVNode(a.Fragment,null,[a.createVNode(ps,{class:`${d}__item-message-success-icon`},null),x.statusText||r.value.uploadSuccess]),x.status==="fail"&&a.createVNode(a.Fragment,null,[x.statusText||r.value.uploadFailed])]),x.status==="uploading"&&a.createVNode(Fo,{class:`${d}__item-progress`,percent:x.percentage,showText:!1,size:"small"},null),x.status!=="fail"&&a.createVNode("div",{class:`${d}__item-speed`},[a.withDirectives(a.createVNode("span",{class:`${d}__item-speed-size`},[p(x.size)]),[[a.vShow,x.size]]),a.withDirectives(a.createVNode("span",{class:`${d}__item-speed-percentage`},[x.percentage,a.createTextVNode("%")]),[[a.vShow,x.status==="uploading"]])]),!c.value&&a.createVNode("div",{class:`${d}__item-actions`},[x.status==="fail"&&a.createVNode(ad,{class:`${d}__item-retry-icon`,onClick:O=>b(x,O)},null),a.createVNode(pi,{class:`${d}__item-del-icon`,onClick:O=>y(x,O)},null)])])];return()=>{var x;return a.createVNode(a.Fragment,null,[f.value?(t==null?void 0:t.innerTrigger)&&(t==null?void 0:t.innerTrigger((x=e.files)==null?void 0:x[0])):a.createVNode("ul",{class:m.value},[h.value?N():C(),(t==null?void 0:t.innerTrigger)&&(t==null?void 0:t.innerTrigger())])])}}}),Um=a.defineComponent({name:"UploadTrigger",props:{theme:Tr.theme,disabled:Tr.disabled,multiple:Tr.multiple,accept:Tr.accept,file:{type:Object},selectChange:Tr.selectChange},emits:["change","remove"],setup(e,{slots:t,emit:n}){const r=ut("upload"),{resolveClassName:s}=xe(),{theme:o,disabled:c,file:u,multiple:d,accept:h}=a.toRefs(e),f=`${s(as)}-trigger`,m=a.computed(()=>o.value===Zr.BUTTON),p=a.computed(()=>o.value===Zr.DRAGGABLE),y=a.computed(()=>o.value===Zr.PICTURE),b=a.computed(()=>y.value&&!d.value),N=a.computed(()=>y.value&&!h.value?"image/png,image/jpeg,image/jpg":h.value),w=a.ref(null),C=a.computed(()=>{var M;return ze({[f]:!0,[`${f}--${o.value}`]:!0,[`${f}--single-picture`]:b.value,[`${f}--has-file`]:u.value??!1,[`${f}--${(M=u.value)==null?void 0:M.status}`]:u.value??!1,[`${f}--dragover`]:$.value,[`${f}--disabled`]:c.value})}),E=()=>{w.value.value=null,w.value.click()},_=M=>{var ne;if(e.selectChange&&((ne=e.selectChange)==null?void 0:ne.call(e,M))===!1)return!1;const{files:W}=M.target;n("change",Array.from(W))},x=()=>{e.disabled||E()},O=M=>{M.defaultPrevented||M.target!==M.currentTarget||((M.code==="Enter"||M.code==="Space")&&E(),M.preventDefault())};function T(M,W){n("remove",M,W),W.stopPropagation(),W.preventDefault()}const $=a.ref(!1),L=()=>{const M=k=>{var J;if(c.value)return;if(k.preventDefault(),$.value=!1,e.selectChange&&((J=e.selectChange)==null?void 0:J.call(e,k))===!1)return!1;const re=Array.from(k.dataTransfer.files);n("change",re)},W=k=>{k.preventDefault(),$.value=!0},ne=()=>{$.value=!1},B=ze({[`${f}__draggable`]:!0});return a.createVNode("div",{class:B,onDragleave:ne,onDragover:W,onDrop:M},[t.default?t.default():a.createVNode(a.Fragment,null,[a.createVNode($o,{class:`${f}__draggable-icon`},null),a.createVNode("div",{class:`${f}__draggable-text`},[r.value.drapFileOr,a.createVNode("span",{class:`${f}__draggable-upload-link`},[r.value.clickUpload])])])])},P=()=>a.createVNode(a.Fragment,null,[b.value&&e.file?A(e.file):I()]),I=()=>a.createVNode(a.Fragment,null,[t.default?t.default():a.createVNode("div",{class:`${f}__picture-inner`},[a.createVNode(tl,{class:`${f}__picture-icon`},null),a.createVNode("div",{class:`${f}__picture-text`},[r.value.clickUpload])])]),A=M=>[a.withDirectives(a.createVNode("img",{class:`${f}__picture-thumbnail`,alt:"",src:M.url},null),[[a.vShow,M.status!=="uploading"]]),a.createVNode(a.Fragment,null,[M.status==="uploading"&&a.createVNode(Fo,{width:50,class:`${f}__picture-progress`,bgColor:"#333",color:"#3a84ff",percent:M.percentage,titleStyle:{color:"#fff"},type:"circle"},null)]),a.createVNode(a.Fragment,null,[!e.disabled&&a.createVNode("div",{class:`${f}__picture-actions`},[a.createVNode(pi,{class:"action-icon",onClick:W=>T(M,W)},null)])])],D=()=>a.createVNode(Ht,{disabled:c.value},{default:()=>[a.createVNode(a.Fragment,null,[t.default?t.default():a.createVNode(a.Fragment,null,[a.createVNode($o,{class:`${f}__button-icon`},null),a.createVNode("span",{class:`${f}__button-text`},[r.value.uploadLabel])])])]}),X=()=>{if(m.value)return D();if(p.value)return L();if(y.value)return P()};return()=>{var M;return a.createVNode("div",{class:C.value,tabindex:"0",onClick:x,onKeydown:O},[t.trigger?[t.trigger(),(M=t==null?void 0:t.default)==null?void 0:M.call(t)]:X(),a.createVNode("input",{ref:w,class:`${f}__input-file`,accept:N.value,disabled:c.value,multiple:d.value,tabindex:"-1",type:"file",onChange:_},null)])}}});var m5={exports:{}};(function(e,t){(function(n){e.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function s(C,E){var _=C[0],x=C[1],O=C[2],T=C[3];_+=(x&O|~x&T)+E[0]-680876936|0,_=(_<<7|_>>>25)+x|0,T+=(_&x|~_&O)+E[1]-389564586|0,T=(T<<12|T>>>20)+_|0,O+=(T&_|~T&x)+E[2]+606105819|0,O=(O<<17|O>>>15)+T|0,x+=(O&T|~O&_)+E[3]-1044525330|0,x=(x<<22|x>>>10)+O|0,_+=(x&O|~x&T)+E[4]-176418897|0,_=(_<<7|_>>>25)+x|0,T+=(_&x|~_&O)+E[5]+1200080426|0,T=(T<<12|T>>>20)+_|0,O+=(T&_|~T&x)+E[6]-1473231341|0,O=(O<<17|O>>>15)+T|0,x+=(O&T|~O&_)+E[7]-45705983|0,x=(x<<22|x>>>10)+O|0,_+=(x&O|~x&T)+E[8]+1770035416|0,_=(_<<7|_>>>25)+x|0,T+=(_&x|~_&O)+E[9]-1958414417|0,T=(T<<12|T>>>20)+_|0,O+=(T&_|~T&x)+E[10]-42063|0,O=(O<<17|O>>>15)+T|0,x+=(O&T|~O&_)+E[11]-1990404162|0,x=(x<<22|x>>>10)+O|0,_+=(x&O|~x&T)+E[12]+1804603682|0,_=(_<<7|_>>>25)+x|0,T+=(_&x|~_&O)+E[13]-40341101|0,T=(T<<12|T>>>20)+_|0,O+=(T&_|~T&x)+E[14]-1502002290|0,O=(O<<17|O>>>15)+T|0,x+=(O&T|~O&_)+E[15]+1236535329|0,x=(x<<22|x>>>10)+O|0,_+=(x&T|O&~T)+E[1]-165796510|0,_=(_<<5|_>>>27)+x|0,T+=(_&O|x&~O)+E[6]-1069501632|0,T=(T<<9|T>>>23)+_|0,O+=(T&x|_&~x)+E[11]+643717713|0,O=(O<<14|O>>>18)+T|0,x+=(O&_|T&~_)+E[0]-373897302|0,x=(x<<20|x>>>12)+O|0,_+=(x&T|O&~T)+E[5]-701558691|0,_=(_<<5|_>>>27)+x|0,T+=(_&O|x&~O)+E[10]+38016083|0,T=(T<<9|T>>>23)+_|0,O+=(T&x|_&~x)+E[15]-660478335|0,O=(O<<14|O>>>18)+T|0,x+=(O&_|T&~_)+E[4]-405537848|0,x=(x<<20|x>>>12)+O|0,_+=(x&T|O&~T)+E[9]+568446438|0,_=(_<<5|_>>>27)+x|0,T+=(_&O|x&~O)+E[14]-1019803690|0,T=(T<<9|T>>>23)+_|0,O+=(T&x|_&~x)+E[3]-187363961|0,O=(O<<14|O>>>18)+T|0,x+=(O&_|T&~_)+E[8]+1163531501|0,x=(x<<20|x>>>12)+O|0,_+=(x&T|O&~T)+E[13]-1444681467|0,_=(_<<5|_>>>27)+x|0,T+=(_&O|x&~O)+E[2]-51403784|0,T=(T<<9|T>>>23)+_|0,O+=(T&x|_&~x)+E[7]+1735328473|0,O=(O<<14|O>>>18)+T|0,x+=(O&_|T&~_)+E[12]-1926607734|0,x=(x<<20|x>>>12)+O|0,_+=(x^O^T)+E[5]-378558|0,_=(_<<4|_>>>28)+x|0,T+=(_^x^O)+E[8]-2022574463|0,T=(T<<11|T>>>21)+_|0,O+=(T^_^x)+E[11]+1839030562|0,O=(O<<16|O>>>16)+T|0,x+=(O^T^_)+E[14]-35309556|0,x=(x<<23|x>>>9)+O|0,_+=(x^O^T)+E[1]-1530992060|0,_=(_<<4|_>>>28)+x|0,T+=(_^x^O)+E[4]+1272893353|0,T=(T<<11|T>>>21)+_|0,O+=(T^_^x)+E[7]-155497632|0,O=(O<<16|O>>>16)+T|0,x+=(O^T^_)+E[10]-1094730640|0,x=(x<<23|x>>>9)+O|0,_+=(x^O^T)+E[13]+681279174|0,_=(_<<4|_>>>28)+x|0,T+=(_^x^O)+E[0]-358537222|0,T=(T<<11|T>>>21)+_|0,O+=(T^_^x)+E[3]-722521979|0,O=(O<<16|O>>>16)+T|0,x+=(O^T^_)+E[6]+76029189|0,x=(x<<23|x>>>9)+O|0,_+=(x^O^T)+E[9]-640364487|0,_=(_<<4|_>>>28)+x|0,T+=(_^x^O)+E[12]-421815835|0,T=(T<<11|T>>>21)+_|0,O+=(T^_^x)+E[15]+530742520|0,O=(O<<16|O>>>16)+T|0,x+=(O^T^_)+E[2]-995338651|0,x=(x<<23|x>>>9)+O|0,_+=(O^(x|~T))+E[0]-198630844|0,_=(_<<6|_>>>26)+x|0,T+=(x^(_|~O))+E[7]+1126891415|0,T=(T<<10|T>>>22)+_|0,O+=(_^(T|~x))+E[14]-1416354905|0,O=(O<<15|O>>>17)+T|0,x+=(T^(O|~_))+E[5]-57434055|0,x=(x<<21|x>>>11)+O|0,_+=(O^(x|~T))+E[12]+1700485571|0,_=(_<<6|_>>>26)+x|0,T+=(x^(_|~O))+E[3]-1894986606|0,T=(T<<10|T>>>22)+_|0,O+=(_^(T|~x))+E[10]-1051523|0,O=(O<<15|O>>>17)+T|0,x+=(T^(O|~_))+E[1]-2054922799|0,x=(x<<21|x>>>11)+O|0,_+=(O^(x|~T))+E[8]+1873313359|0,_=(_<<6|_>>>26)+x|0,T+=(x^(_|~O))+E[15]-30611744|0,T=(T<<10|T>>>22)+_|0,O+=(_^(T|~x))+E[6]-1560198380|0,O=(O<<15|O>>>17)+T|0,x+=(T^(O|~_))+E[13]+1309151649|0,x=(x<<21|x>>>11)+O|0,_+=(O^(x|~T))+E[4]-145523070|0,_=(_<<6|_>>>26)+x|0,T+=(x^(_|~O))+E[11]-1120210379|0,T=(T<<10|T>>>22)+_|0,O+=(_^(T|~x))+E[2]+718787259|0,O=(O<<15|O>>>17)+T|0,x+=(T^(O|~_))+E[9]-343485551|0,x=(x<<21|x>>>11)+O|0,C[0]=_+C[0]|0,C[1]=x+C[1]|0,C[2]=O+C[2]|0,C[3]=T+C[3]|0}function o(C){var E=[],_;for(_=0;_<64;_+=4)E[_>>2]=C.charCodeAt(_)+(C.charCodeAt(_+1)<<8)+(C.charCodeAt(_+2)<<16)+(C.charCodeAt(_+3)<<24);return E}function c(C){var E=[],_;for(_=0;_<64;_+=4)E[_>>2]=C[_]+(C[_+1]<<8)+(C[_+2]<<16)+(C[_+3]<<24);return E}function u(C){var E=C.length,_=[1732584193,-271733879,-1732584194,271733878],x,O,T,$,L,P;for(x=64;x<=E;x+=64)s(_,o(C.substring(x-64,x)));for(C=C.substring(x-64),O=C.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<O;x+=1)T[x>>2]|=C.charCodeAt(x)<<(x%4<<3);if(T[x>>2]|=128<<(x%4<<3),x>55)for(s(_,T),x=0;x<16;x+=1)T[x]=0;return $=E*8,$=$.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt($[2],16),P=parseInt($[1],16)||0,T[14]=L,T[15]=P,s(_,T),_}function d(C){var E=C.length,_=[1732584193,-271733879,-1732584194,271733878],x,O,T,$,L,P;for(x=64;x<=E;x+=64)s(_,c(C.subarray(x-64,x)));for(C=x-64<E?C.subarray(x-64):new Uint8Array(0),O=C.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<O;x+=1)T[x>>2]|=C[x]<<(x%4<<3);if(T[x>>2]|=128<<(x%4<<3),x>55)for(s(_,T),x=0;x<16;x+=1)T[x]=0;return $=E*8,$=$.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt($[2],16),P=parseInt($[1],16)||0,T[14]=L,T[15]=P,s(_,T),_}function h(C){var E="",_;for(_=0;_<4;_+=1)E+=r[C>>_*8+4&15]+r[C>>_*8&15];return E}function f(C){var E;for(E=0;E<C.length;E+=1)C[E]=h(C[E]);return C.join("")}f(u("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function C(E,_){return E=E|0||0,E<0?Math.max(E+_,0):Math.min(E,_)}ArrayBuffer.prototype.slice=function(E,_){var x=this.byteLength,O=C(E,x),T=x,$,L,P,I;return _!==n&&(T=C(_,x)),O>T?new ArrayBuffer(0):($=T-O,L=new ArrayBuffer($),P=new Uint8Array(L),I=new Uint8Array(this,O,$),P.set(I),L)}}();function m(C){return/[\u0080-\uFFFF]/.test(C)&&(C=unescape(encodeURIComponent(C))),C}function p(C,E){var _=C.length,x=new ArrayBuffer(_),O=new Uint8Array(x),T;for(T=0;T<_;T+=1)O[T]=C.charCodeAt(T);return E?O:x}function y(C){return String.fromCharCode.apply(null,new Uint8Array(C))}function b(C,E,_){var x=new Uint8Array(C.byteLength+E.byteLength);return x.set(new Uint8Array(C)),x.set(new Uint8Array(E),C.byteLength),_?x:x.buffer}function N(C){var E=[],_=C.length,x;for(x=0;x<_-1;x+=2)E.push(parseInt(C.substr(x,2),16));return String.fromCharCode.apply(String,E)}function w(){this.reset()}return w.prototype.append=function(C){return this.appendBinary(m(C)),this},w.prototype.appendBinary=function(C){this._buff+=C,this._length+=C.length;var E=this._buff.length,_;for(_=64;_<=E;_+=64)s(this._hash,o(this._buff.substring(_-64,_)));return this._buff=this._buff.substring(_-64),this},w.prototype.end=function(C){var E=this._buff,_=E.length,x,O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T;for(x=0;x<_;x+=1)O[x>>2]|=E.charCodeAt(x)<<(x%4<<3);return this._finish(O,_),T=f(this._hash),C&&(T=N(T)),this.reset(),T},w.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},w.prototype.setState=function(C){return this._buff=C.buff,this._length=C.length,this._hash=C.hash,this},w.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},w.prototype._finish=function(C,E){var _=E,x,O,T;if(C[_>>2]|=128<<(_%4<<3),_>55)for(s(this._hash,C),_=0;_<16;_+=1)C[_]=0;x=this._length*8,x=x.toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(x[2],16),T=parseInt(x[1],16)||0,C[14]=O,C[15]=T,s(this._hash,C)},w.hash=function(C,E){return w.hashBinary(m(C),E)},w.hashBinary=function(C,E){var _=u(C),x=f(_);return E?N(x):x},w.ArrayBuffer=function(){this.reset()},w.ArrayBuffer.prototype.append=function(C){var E=b(this._buff.buffer,C,!0),_=E.length,x;for(this._length+=C.byteLength,x=64;x<=_;x+=64)s(this._hash,c(E.subarray(x-64,x)));return this._buff=x-64<_?new Uint8Array(E.buffer.slice(x-64)):new Uint8Array(0),this},w.ArrayBuffer.prototype.end=function(C){var E=this._buff,_=E.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O,T;for(O=0;O<_;O+=1)x[O>>2]|=E[O]<<(O%4<<3);return this._finish(x,_),T=f(this._hash),C&&(T=N(T)),this.reset(),T},w.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.ArrayBuffer.prototype.getState=function(){var C=w.prototype.getState.call(this);return C.buff=y(C.buff),C},w.ArrayBuffer.prototype.setState=function(C){return C.buff=p(C.buff,!0),w.prototype.setState.call(this,C)},w.ArrayBuffer.prototype.destroy=w.prototype.destroy,w.ArrayBuffer.prototype._finish=w.prototype._finish,w.ArrayBuffer.hash=function(C,E){var _=d(new Uint8Array(C)),x=f(_);return E?N(x):x},w})})(m5);var DX=m5.exports;const jm=Kt(DX),yu="An error occurred during upload";function xo(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const IX=e=>{if(typeof XMLHttpRequest>"u")throw new Error("XMLHttpRequest is undefined");const t=new XMLHttpRequest,{action:n,type:r}=e,s=r==="formdata";t.upload&&t.upload.addEventListener("progress",u=>{const d=u;d.percent=u.total>0?u.loaded/u.total*100:0,e.onProgress(d)});const o=new FormData;if(s&&e.data){let u=e.data;Array.isArray(u)||(u=[u]),u.forEach(d=>{for(const[h,f]of Object.entries(d))Array.isArray(f)?o.append(h,...f):o.append(h,f)})}if(s&&e.formDataAttributes){let u=e.formDataAttributes;Array.isArray(u)||(u=[u]),u.forEach(d=>{Array.isArray(d.value)?o.append(d.name,...d.value):o.append(d.name,d.value)})}if(s&&o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{const u=xo(t);let d=new Error(u||yu);e.onError(d)}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300){const u=xo(t);return e.onError(new Error(u||yu))}e.onSuccess(xo(t))}),t.addEventListener("loadend",()=>{e.onComplete()}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0),e.header)if(Array.isArray(e.header))e.header.forEach(u=>{const d=u.name,h=u.value;t.setRequestHeader(d,h)});else{const u=e.header.name,d=e.header.value;t.setRequestHeader(u,d)}const c=e.headers||{};if(c instanceof Headers)c.forEach((u,d)=>t.setRequestHeader(d,u));else for(const[u,d]of Object.entries(c))Km(d)||t.setRequestHeader(u,String(d));return t.send(s?o:e.file),t},g5=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,kX=async e=>{const t=e.chunkSize*1024*1024,{file:n}=e;if(!n)throw new Error("File not found");const r=Math.ceil(n.size/t),s=await MX(n,t),o=[];PX(e,n,r,s,o,t),await Promise.all(o).then(()=>{const c={size:n.size,name:n.name,total:r,hash:s},u=new XMLHttpRequest;u.open(e.method,e.mergeUrl,!0),u.onreadystatechange=()=>{if(u.readyState===4){const d=xo(u);if(u.status<200||u.status>=300)return e.onError(new Error(d||yu));e.onSuccess(d)}},u.onloadend=()=>{e.onComplete()},u.setRequestHeader("Content-type","application/JSON"),u.send(JSON.stringify(c))})},PX=(e,t,n,r,s,o)=>{for(let c=0;c<n;c++){const u=new Promise((d,h)=>{const f=c*o,m=Math.min(t.size,f+o),p=new FormData;if(e.data){let N=e.data;Array.isArray(N)||(N=[N]),N.forEach(w=>{for(const[C,E]of Object.entries(w))Array.isArray(E)?p.append(C,...E):p.append(C,E)})}if(e.formDataAttributes){let N=e.formDataAttributes;Array.isArray(N)||(N=[N]),N.forEach(w=>{Array.isArray(w.value)?p.append(w.name,...w.value):p.append(w.name,w.value)})}p.append("file",g5.call(t,f,m)),p.append("name",t.name),p.append("total",n.toString()),p.append("index",c.toString()),p.append("size",t.size.toString()),p.append("hash",r.toString());const y=new XMLHttpRequest;if(y.onreadystatechange=()=>{if(y.readyState===4){const N=xo(y);y.status<200||y.status>=300?(h(N),e.onError(new Error(N||yu))):d("reponseText")}},y.upload.addEventListener("progress",N=>{const w=N;e.onProgress(w,c)},!1),e.withCredentials&&"withCredentials"in y&&(y.withCredentials=!0),y.open(e.method,e.sliceUrl,!0),e.header)if(Array.isArray(e.header))e.header.forEach(N=>{const w=N.name,C=N.value;y.setRequestHeader(w,C)});else{const N=e.header.name,w=e.header.value;y.setRequestHeader(N,w)}const b=e.headers||{};if(b instanceof Headers)b.forEach((N,w)=>y.setRequestHeader(w,N));else for(const[N,w]of Object.entries(b))Km(w)||y.setRequestHeader(N,String(w));y.send(p)});s.push(u)}},MX=(e,t)=>new Promise((n,r)=>{const s=Math.ceil(e.size/t);let o=0;const c=new jm.ArrayBuffer,u=new FileReader;function d(){const h=o*t,f=h+t>=e.size?e.size:h+t;u.readAsArrayBuffer(g5.call(e,h,f))}u.onload=h=>{if(c.append(h.target.result),o+=1,o<s)d();else{const f=c.end(),m=new jm;m.append(f),m.append(e.name);const p=m.end();n(p)}},u.onerror=()=>{r(new Error("File slice failed"))},d()}).catch(n=>{console.log(n)});function Wm(e){return Date.now()+e}const RX=(e,t)=>{const n=a.computed(()=>{var p;return typeof e.size=="number"?e.size:(p=e==null?void 0:e.size)==null?void 0:p.maxImgSize}),r=a.computed(()=>{var p;return typeof e.size=="number"?e.size:(p=e==null?void 0:e.size)==null?void 0:p.maxImgSize}),s=a.ref([]);function o(p){return s.value.find(y=>y.uid===p.uid)}let c=0;function u(p){var w;c+=1,p.uid=Wm(c);const y={uid:p.uid,name:p.name,status:Xs.NEW,size:p.size,raw:p},b=p.type.startsWith("image/");let N=null;if(b){try{y.url=window.URL.createObjectURL(p)}catch(C){console.error(C)}y.isPic=!0}return e.validateName&&!((w=e.validateName)!=null&&w.test(y.name))&&(y.status=Xs.FAIL,y.statusText="invalid filename",N=new Error(y.statusText)),b&&p.size>n.value*1024**2&&(y.status=Xs.FAIL,y.statusText="invalid file size",N=new Error(y.statusText)),!b&&p.size>r.value*1024**2&&(y.status=Xs.FAIL,y.statusText="invalid file size",N=new Error(y.statusText)),s.value.push(y),N}async function d(p){var N;const y=p instanceof File?o(p):p,b=w=>{var C;t.onRemove(w,s.value),s.value.splice(s.value.indexOf(y),1),(C=w.url)!=null&&C.startsWith("blob:")&&URL.revokeObjectURL(w.url)};e.beforeRemove?await((N=e.beforeRemove)==null?void 0:N.call(e,y,s.value))!==!1&&b(y):b(y)}async function h(p,y,b){const N=o(y);N&&(N.status="fail",N.statusText=p.message,N.response=b)}async function f(p,y){const b=o(y);b&&(b.status="success",b.response=p)}async function m(p,y){const b=o(y);b&&(b.status="uploading",b.percentage=Math.round(p.percent))}return a.watch(()=>e.files,p=>{s.value=p.map(y=>(c+=1,{...y,uid:y.uid??Wm(c),status:y.status??Xs.SUCCESS}))},{immediate:!0,deep:!0}),{fileList:s,handlePreprocess:u,handleRemove:d,handleError:h,handleSuccess:f,handleProgress:m}},FX=a.defineComponent({name:"Upload",props:Tr,emits:["exceed","progress","success","error","delete","done"],setup(e,{slots:t,emit:n,expose:r}){const{resolveClassName:s}=xe(),o=a.shallowRef({}),c=a.computed(()=>e.theme===Zr.PICTURE),u=a.computed(()=>c.value&&!e.multiple),d=a.computed(()=>ze({[`${s(as)}`]:!0,[`${s(as)}--${e.theme}`]:!0,[`${s(as)}--disabled`]:e.disabled,[`${s(as)}--single-picture`]:u.value,[e.extCls]:e.extCls??!1})),h=a.computed(()=>({theme:e.theme,multiple:e.multiple,disabled:e.disabled,accept:e.accept,selectChange:e.selectChange}));function f(T,$){O(T),n("delete",T,$)}const{fileList:m,handlePreprocess:p,handleRemove:y,handleProgress:b,handleSuccess:N,handleError:w}=RX(e,{onRemove:f});function C(T){if(!T.length)return;if(e.limit>1&&m.value.length+T.length>e.limit){n("exceed",T,m.value);return}!e.multiple&&e.limit===1&&(m.value=[]);let $=T;(!e.multiple||e.limit===1)&&($=T.slice(0,1));for(const L of $){const P=L,I=p(P);if(I){n("error",P,m.value,I);return}e.autoUpload&&_(P,$)}}function E(T){x(T.raw)}async function _(T,$){var P;if(!e.beforeUpload)return x(T,$);let L;try{L=await((P=e.beforeUpload)==null?void 0:P.call(e,T,$))}catch{L=!1}if(L===!1){y(T);return}x(T,$)}function x(T,$){const{type:L,headers:P,header:I,data:A,formDataAttributes:D,method:X,withCredentials:M,name:W,url:ne,sliceUrl:B,mergeUrl:k,chunkSize:re,customRequest:J}=e,{uid:K}=T,F={type:L,headers:P,header:I,withCredentials:M,file:T,data:A,formDataAttributes:D,method:X,filename:W,action:ne,sliceUrl:B,mergeUrl:k,chunkSize:re,onProgress:te=>{b(te,T),n("progress",te,T,m.value)},onSuccess:te=>{var ce;const ue=te;if((ce=e==null?void 0:e.handleResCode)!=null&&ce.call(e,ue))N(te,T),n("success",te,T,m.value);else{const be=new Error((ue==null?void 0:ue.message)||"unknow error");w(be,T,te),n("error",T,m.value,be)}delete o.value[K]},onError:te=>{w(te,T),n("error",T,m.value,te),delete o.value[K]},onComplete:()=>{$&&$.indexOf(T)===$.length-1&&n("done",m.value)}};let z=e.sliceUpload?kX:IX;J&&(z=J);const Y=z(F);o.value[K]=Y,Y instanceof Promise&&Y.then(F.onSuccess,F.onError)}function O(T){let $=o.value;T&&($={[T.uid]:o.value[T.uid]}),Object.keys($).forEach(L=>{if($[L]instanceof XMLHttpRequest){const P=$[L];P==null||P.abort()}delete o.value[L]})}return a.onBeforeUnmount(()=>{m.value.forEach(({url:T})=>{T!=null&&T.startsWith("blob:")&&URL.revokeObjectURL(T)})}),r({handleRemove:y,handleRetry:E}),()=>a.createVNode("div",{class:d.value},[!c.value&&a.createVNode(Um,a.mergeProps(h.value,{onChange:C}),t),t.tip?t.tip():e.tip&&a.createVNode("div",{class:`${s(as)}__tip`},[e.tip]),a.createVNode($X,{disabled:e.disabled,files:m.value,multiple:e.multiple,theme:e.theme,onRemove:y,onRetry:E},{innerTrigger:T=>c.value&&a.createVNode(Um,a.mergeProps(h.value,{file:T,onChange:C,onRemove:y}),t),file:t.file})])}}),p5=Qe(FX),m0=Object.freeze(Object.defineProperty({__proto__:null,$bkPopover:md,Affix:Xg,Alert:Jg,AnimateNumber:Zg,Backtop:Qg,Badge:ep,Breadcrumb:np,Button:Ht,Card:$p,Cascader:zp,Checkbox:sn,CodeDiff:Jp,Collapse:Qp,ColorPicker:rv,ConfigProvider:Yg,Container:eu,DatePicker:Cv,Dialog:Iv,Divider:kv,Dropdown:Pv,Exception:_d,FixedNavbar:Mv,Form:Hv,InfoBox:zv,Input:$a,Link:jv,Loading:La,Menu:Kv,Message:t4,Modal:il,Navigation:n4,Notify:a4,OverflowTitle:Vp,Pagination:V2,PopConfirm:p4,Popover:wn,Popover2:v4,Process:y4,Progress:Fo,Radio:lu,Rate:N4,ResizeLayout:x4,SearchSelect:A4,Select:A2,Sideslider:$4,Slider:D4,Steps:k4,Swiper:P4,Switcher:M4,Tab:B4,Table:n5,Tag:Po,TagInput:r5,TimeLine:vu,TimePicker:a5,Timeline:vu,Transfer:s5,Tree:h5,Upload:p5,VirtualRender:$i,containerProps:eu,scrollbar:O2},Symbol.toStringTag,{value:"Module"})),Gm=(e="Bk")=>(t,n)=>{const r=t.config.globalProperties.bkUIPrefix||e;Object.keys(m0).forEach(s=>{const o=m0[s];"install"in o?t.use(o,{prefix:r}):t.component(r+s,m0[s])}),n&&Sh(n,t)},HX={createInstall:Gm,install:Gm()},BX=Object.freeze(Object.defineProperty({__proto__:null,$bkPopover:md},Symbol.toStringTag,{value:"Module"})),v5="2.0.1-beta.67";window.__bkui_vue_version__=v5;exports.$bkPopover=md;exports.Affix=Xg;exports.Alert=Jg;exports.AnimateNumber=Zg;exports.Backtop=Qg;exports.Badge=ep;exports.Breadcrumb=np;exports.Button=Ht;exports.Card=$p;exports.Cascader=zp;exports.Checkbox=sn;exports.CodeDiff=Jp;exports.Collapse=Qp;exports.ColorPicker=rv;exports.ConfigProvider=Yg;exports.Container=eu;exports.DatePicker=Cv;exports.Dialog=Iv;exports.Divider=kv;exports.Dropdown=Pv;exports.Exception=_d;exports.FixedNavbar=Mv;exports.Form=Hv;exports.InfoBox=zv;exports.Input=$a;exports.Link=jv;exports.Loading=La;exports.Menu=Kv;exports.Message=t4;exports.Modal=il;exports.Navigation=n4;exports.Notify=a4;exports.OverflowTitle=Vp;exports.Pagination=V2;exports.PopConfirm=p4;exports.Popover=wn;exports.Popover2=v4;exports.Process=y4;exports.Progress=Fo;exports.Radio=lu;exports.Rate=N4;exports.ResizeLayout=x4;exports.SearchSelect=A4;exports.Select=A2;exports.Sideslider=$4;exports.Slider=D4;exports.Steps=k4;exports.Swiper=P4;exports.Switcher=M4;exports.Tab=B4;exports.Table=n5;exports.Tag=Po;exports.TagInput=r5;exports.TimeLine=vu;exports.TimePicker=a5;exports.Timeline=vu;exports.Transfer=s5;exports.Tree=h5;exports.Upload=p5;exports.VirtualRender=$i;exports.bkEllipsis=mI;exports.bkEllipsisInstance=u2;exports.bkTooltips=sa;exports.clickoutside=kr;exports.containerProps=eu;exports.default=HX;exports.defaultRootConfig=ds;exports.mousewheel=EI;exports.overflowTitle=II;exports.plugins=BX;exports.provideGlobalConfig=Sh;exports.rootProviderKey=hi;exports.scrollbar=O2;exports.setPrefixVariable=w0;exports.useGlobalConfig=cV;exports.useLocale=ut;exports.usePrefix=xe;exports.version=v5;
387
+ `,P={d:L,stroke:m||"#f5f5f5","stroke-linecap":d,"stroke-width":y,"fill-opacity":"0",class:"process-circle-trail",style:T},I={d:L,stroke:u||"#13ce66","stroke-linecap":d,"stroke-width":o>0&&y||0,"fill-opacity":"0",class:`process-circle-path ${r(`${h}-circle-trail`)}`,style:$};return a.createVNode("div",{style:N,class:"progress-outer-circle"},[a.createVNode("svg",{viewBox:"0 0 100 100"},[a.createVNode("path",P,null),a.createVNode("path",I,null)]),a.createVNode("span",{style:p,class:"progress-circle-text"},[n==null?void 0:n.default()])])},KG=(e,{attrs:t,slots:n})=>{const{resolveClassName:r}=xe(),{percent:s,strokeWidth:o,size:c,color:u,titleStyle:d,showText:h,textInside:f,theme:m}=t,p={height:`${o}px`,lineHeight:`${o}px`},y={width:`${s}%`,background:u,animationDuration:"3s"},b=(N=!0)=>(h||n.default)&&(N&&f||!N&&!f)?n==null?void 0:n.default():null;return a.createVNode("div",{class:"progress-outer"},[a.createVNode("div",{style:p,class:`${r(`progress-${c||"normal"}`)} progress-bar`},[a.createVNode("div",{style:y,class:{"progress-inner":!0,[`${r(`${m}`)}`]:!0}},[a.createVNode("div",{style:d,class:"inner-text"},[b()])])]),b(!1)])};function Tm(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const YG={extCls:v.string,type:nS(),percent:v.number.def(0),theme:v.theme().def(_u.PRIMARY),size:v.size(),width:v.number.def(126),strokeWidth:v.number,strokeLinecap:tS(),textInside:v.bool.def(!1),showText:v.bool.def(!0),color:v.string,bgColor:v.string,fixed:v.number.validate(e=>e>=0&&e<=20).def(0),format:v.func.def(e=>`${e}%`),titleStyle:v.object.def({fontSize:"16px",verticalAlign:"middle"})},XG=a.defineComponent({name:"Progress",props:YG,setup(){const{resolveClassName:e}=xe();return{resolveClassName:e}},methods:{validPercent(e){return!e||e<0?0:e>100?100:e},renderProcessInfo(){var u;const{showText:e,format:t,percent:n,textInside:r,titleStyle:s,fixed:o}=this.$props,c=t((u=this.validPercent(n))==null?void 0:u.toFixed(o));return(e||this.$slots.default)&&r?this.$slots.default?this.$slots.default():a.createVNode("span",null,[c]):!e||r?null:a.createVNode("span",{style:typeof c=="string"?s:void 0,class:"progress-text"},[this.$slots.default?this.$slots.default():c])}},render(){const e=this.renderProcessInfo(),t={...this.$props,percent:this.validPercent(this.percent)};let n=a.createVNode(KG,t,Tm(e)?e:{default:()=>[e]});(this.type==="circle"||this.type==="dashboard")&&(n=a.createVNode(GG,t,Tm(e)?e:{default:()=>[e]}));const r={class:ze({extCls:!!this.extCls},`${this.resolveClassName("progress")} ${this.resolveClassName(`progress-${this.type}`)}`)};return a.createVNode("div",r,[n])}}),Fo=Qe(XG),b4=Symbol("RadioGroup");function w4(){const e=a.ref(!1);return[e,{blur:()=>{e.value=!1},focus:()=>{e.value=!0}}]}const C4=()=>{const e=a.getCurrentInstance(),{props:t,emit:n}=e,r=a.inject(b4,Eg),s=!Og(r),o=a.ref(!1),c=a.ref(!1),u=a.ref("default"),d=a.computed(()=>s&&r.props.disabled?!0:t.disabled);s?(u.value=r.props.size,a.watch(()=>r.props.modelValue,m=>{o.value=m===t.label},{immediate:!0})):a.watch(()=>t.modelValue,m=>{m!==""&&(o.value=m===t.label)},{immediate:!0});const h=(m=!0)=>{o.value=m},f=m=>{if(d.value||c.value)return;const p=m.target,y=p.checked;Promise.resolve(s?r.props.beforeChange(y):t.beforeChange(y)).then(b=>{if(b){o.value=p.checked;const N=o.value?t.label:"";return n("update:modelValue",N),n("change",N),s&&r.handleChange(e.proxy),a.nextTick(()=>{p.checked!==o.value&&(p.checked=o.value)}),Promise.resolve(!0)}return Promise.reject()}).catch(()=>{p.checked=o.value}).finally(()=>{c.value=!1})};return a.onMounted(()=>{s&&r.register(e.proxy)}),a.onBeforeUnmount(()=>{s&&r.unregister(e.proxy)}),{size:u,isChecked:o,isDisabled:d,setChecked:h,handleChange:f}},qG={name:v.string.def(""),label:v.oneOfType([v.bool,v.string,v.number]).isRequired,modelValue:v.oneOfType([v.bool,v.string,v.number]).def(""),checked:v.bool.def(!1),disabled:v.bool.def(!1),beforeChange:Ci().def(()=>!0)},JG=a.defineComponent({name:"Radio",props:qG,emits:{"update:modelValue":e=>e!==void 0,change:e=>e!==void 0},setup(){const[e,{blur:t,focus:n}]=w4(),{size:r,isChecked:s,isDisabled:o,setChecked:c,handleChange:u}=C4(),{resolveClassName:d}=xe();return{size:r,isFocused:e,isChecked:s,isDisabled:o,setChecked:c,handleBlur:t,handleFocus:n,handleChange:u,resolveClassName:d}},render(){const e=ze({[`${this.resolveClassName("radio")}`]:!0,[`${this.resolveClassName("radio")}-${this.size}`]:!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked}),t=()=>!this.label&&!this.$slots.default?null:a.createVNode("span",{class:`${this.resolveClassName("radio-label")}`},[this.$slots.default?this.$slots.default():this.label]);return a.createVNode("label",{class:e,tabindex:"0"},[a.createVNode("input",{class:`${this.resolveClassName("radio-input")}`,checked:this.isChecked,disabled:this.isDisabled,tabindex:"0",type:"radio",value:this.label,onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus},null),t()])}}),ZG={name:v.string.def(""),label:v.oneOfType([v.bool,v.string,v.number]).isRequired,modelValue:v.oneOfType([v.bool,v.string,v.number]).def(""),checked:v.bool.def(!1),disabled:v.bool.def(!1),size:v.size(),beforeChange:Ci().def(()=>!0)},QG=a.defineComponent({name:"RadioButton",props:ZG,emits:{"update:modelValue":e=>e!==void 0,change:e=>e!==void 0},setup(){const[e,{blur:t,focus:n}]=w4(),{size:r,isChecked:s,isDisabled:o,setChecked:c,handleChange:u}=C4(),{resolveClassName:d}=xe();return{isFocused:e,size:r,isChecked:s,isDisabled:o,setChecked:c,handleBlur:t,handleFocus:n,handleChange:u,resolveClassName:d}},render(){const e=ze({[`${this.resolveClassName("radio-button")}`]:!0,[`${this.resolveClassName("radio-button")}-${this.size}`]:!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked}),t=()=>!this.label&&!this.$slots.default?null:a.createVNode("div",{class:`${this.resolveClassName("radio-button-label")}`},[this.$slots.default?this.$slots.default():this.label]);return a.createVNode("label",{class:e,tabindex:"0"},[a.createVNode("input",{class:`${this.resolveClassName("radio-button-input")}`,checked:this.isChecked,disabled:this.isDisabled,tabindex:"0",type:"radio",value:this.label,onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus},null),t()])}}),eK={name:v.string.def(""),modelValue:v.oneOfType([v.bool,v.string,v.number]),disabled:v.bool,withValidate:v.bool.def(!0),type:v.oneOf(["tab","capsule","card"]).def("tab"),size:v.size(),beforeChange:Ci().def(()=>!0)},tK=a.defineComponent({name:"RadioGroup",props:eK,emits:{"update:modelValue":e=>e!==void 0,change:e=>e!==void 0},setup(e,t){const n=ur(),r=[],s=d=>{r.push(d)},o=d=>{const h=r.indexOf(d);h>-1&&r.splice(h,1)},c=d=>{const h=d.label;r.forEach(f=>{f!==d&&f.setChecked(!1)}),t.emit("update:modelValue",h),t.emit("change",h)};a.provide(b4,{props:e,register:s,unregister:o,handleChange:c}),a.watch(()=>e.modelValue,()=>{var d;e.withValidate&&((d=n==null?void 0:n.validate)==null||d.call(n,"change"))}),a.onMounted(()=>{e.modelValue!==""&&r.forEach(d=>{d.setChecked(d.label===e.modelValue)})});const{resolveClassName:u}=xe();return{resolveClassName:u}},render(){var e;return a.createVNode("div",{class:[`${this.resolveClassName("radio-group")}`,`${this.resolveClassName(`radio-${this.type}`)}`]},[(e=this.$slots)==null?void 0:e.default()])}}),lu=on(JG,{Group:tK,Button:QG}),yc=a.defineComponent({name:"Star",props:{rate:v.number.def(0),width:v.number.def(16),height:v.number.def(16),editable:v.bool.def(!0),hoverRate:v.number.def(0),max:v.number.def(5)},emits:["chooseRate","changeHover"],setup(e,{emit:t}){const n=h=>{if(!e.editable)return;const f=h+1;t("chooseRate",f)},r=(h,f)=>{if(!e.editable)return;const m=h+1;t("changeHover",m),a.nextTick(()=>{f.target.classList.add(o("is-hover"))})},s=h=>{e.editable&&a.nextTick(()=>{h.target.classList.remove(o("is-hover"))})},{resolveClassName:o}=xe(),c=h=>ze({[`${o("is-select")}`]:h<Math.floor(u.value),[`${o("is-edit")}`]:e.editable,[`${o("rate-star")}`]:!0}),u=a.computed(()=>e.hoverRate||e.rate),d={width:`${e.width}px`,height:`${e.height}px`,minWidth:`${e.width}px`};return()=>a.createVNode("p",{class:`${o("rate-stars")}`},[Array(e.max).fill(1).map((h,f)=>a.createVNode("svg",{style:d,class:c(f),viewBox:"0 0 64 64",x:"0px",y:"0px",onClick:()=>n(f),onMouseenter:m=>r(f,m),onMouseleave:m=>s(m)},[a.createVNode("g",{transform:"translate(-143.000000, -635.000000)"},[a.createVNode("g",{transform:"translate(83.000000, 114.000000)"},[a.createVNode("g",{transform:"translate(15.000000, 384.000000)"},[a.createVNode("g",{transform:"translate(29.000000, 137.000000)"},[a.createVNode("polygon",{class:"st1",points:"48,53 28.2,63.9 32,40.8 16,24.4 38.1,21 48,-0.1 57.8,21 79.9,24.4 63.9,40.8 67.7,63.9"},null)])])])])]))])}}),nK=a.defineComponent({name:"Rate",components:{star:yc},props:{modelValue:v.number.def(0),size:v.size(),editable:v.bool.def(!0),withValidate:v.bool.def(!0)},emits:["change","hover-change","update:modelValue"],setup(e,{emit:t}){const{resolveClassName:n}=xe(),r=ur(),s=a.ref(0),o=p=>{e.editable&&(t("update:modelValue",p),t("change",p))},c=p=>{s.value=p,t("hover-change",p)},u=ze({[`${n("rate")}`]:!0}),h={small:{width:12,height:12},large:{width:18,height:18},huge:{width:24,height:24}}[e.size]||{width:16,height:16},f=a.computed(()=>{const p=Math.floor(e.modelValue),y=(h.width+3)*p,b=h.width*(e.modelValue-p);return{width:`${y+b}px`}}),m={width:h.width,height:h.height};return a.watch(()=>e.modelValue,()=>{var p;e.withValidate&&((p=r==null?void 0:r.validate)==null||p.call(r,"change"))}),()=>a.createVNode("p",{class:u},[e.editable?a.createVNode(yc,a.mergeProps({"hover-rate":s.value,rate:e.modelValue,onChangeHover:c,onChooseRate:o,onMouseleave:()=>c(0)},m),null):[a.createVNode(yc,a.mergeProps({style:f.value,class:`${n("score-real")}`,editable:!1,rate:5},m),null),a.createVNode(yc,a.mergeProps({editable:!1,rate:0},m),null)]])}}),N4=Qe(nK),rK=a.defineComponent({name:"ResizeLayout",props:{placement:v.placement().def("left"),min:v.number.def(3),max:v.number.def(1/0),triggerWidth:v.number.def(5),triggerOffset:v.number.def(3),initialDivide:v.oneOfType([String,Number]).def("20%"),immediate:v.bool,disabled:v.bool,collapsible:v.bool,isCollapsed:v.bool.def(!1),autoMinimize:v.oneOfType([Boolean,Number]).def(!1),border:v.bool.def(!0)},emits:["before-resize","resizing","after-resize","collapse-change"],setup(e,{emit:t}){const{placement:n,initialDivide:r,triggerOffset:s,triggerWidth:o,max:c,min:u,immediate:d,autoMinimize:h,collapsible:f,isCollapsed:m}=a.toRefs(e),p=a.ref(m.value),y=a.ref(!0),b=a.ref(!1),N=a.ref(null),w=a.ref({}),C=a.ref(null),E=a.ref(null),_=a.ref(null),x=a.ref(null),O=a.computed(()=>["left","right"].includes(n.value)),T=a.computed(()=>O.value?"width":"height"),$=a.computed(()=>{let F=r.value;return u.value!==3&&typeof F!="number"?`${u.value}px`:(typeof F=="number"&&(F=F<=u.value?`${u.value}px`:`${F}px`),F)}),L=a.computed(()=>f.value&&m.value?{[T.value]:"0px"}:{[T.value]:$.value}),P=a.computed(()=>({[`margin-${n.value}`]:`${s.value-o.value}px`,[T.value]:`${o.value}px`})),I=a.computed(()=>h.value?typeof h.value=="boolean"?50:h.value:0),A=()=>{const F=C.value.getBoundingClientRect();N.value=O.value?F.width:F.height};let D=new ResizeObserver(A);const X=()=>{switch(E.value.style.visibility="visible",n.value){case"left":E.value.style.inset=`0 auto auto ${w.value.aside.width}px`;break;case"right":E.value.style.inset=`0 ${w.value.aside.width}px auto auto`;break;case"top":E.value.style.inset=`${w.value.aside.height}px auto auto 0`;break;case"bottom":E.value.style.inset=`auto auto ${w.value.aside.height}px 0`;break}},M=()=>{_.value.style.display="block",_.value.style.cursor=O.value?"col-resize":"row-resize"},W=F=>Math.min(c.value,Math.max(u.value,F),N.value-o.value),ne=F=>{t("before-resize",F);const z=x.value.getBoundingClientRect();w.value=Object.freeze({mouse:{clientX:F.clientX,clientY:F.clientY},aside:{width:z.width,height:z.height}}),M(),d.value||X(),document.onselectstart=()=>!1,document.ondragstart=()=>!1;const Y=ce=>{t("resizing",ce)},te=ce=>{let be;switch(n.value){case"top":be=ce.clientY-w.value.mouse.clientY;break;case"right":be=w.value.mouse.clientX-ce.clientX;break;case"bottom":be=w.value.mouse.clientY-ce.clientY;break;case"left":be=ce.clientX-w.value.mouse.clientX}const Z=w.value.aside[T.value]+be,me=W(Z)+s.value,ae=`${me}px`;d.value?x.value.style[T.value]=ae:E.value.style[n.value]=ae,Y(me)},ue=()=>{if(E.value.style.visibility="hidden",_.value.style.display="none",document.removeEventListener("mousemove",te),document.removeEventListener("mouseup",ue),document.onselectstart=null,document.ondragstart=null,a.nextTick(()=>{B(),t("after-resize",parseFloat(E.value.style[n.value]))}),d.value)return!1;x.value.style[T.value]=E.value.style[n.value]};document.addEventListener("mousemove",te),document.addEventListener("mouseup",ue)},B=()=>{if(!h.value)return!1;const F=x.value.getBoundingClientRect();if(b.value=p.value=F[T.value]<=I.value,!b.value)return y.value=!0,!1;re(),a.nextTick(()=>{x.value.setAttribute(`data-${T.value}`,L.value[T.value])})},k=F=>{p.value=typeof F=="boolean"?F:!p.value,re(),t("collapse-change",p.value)},re=()=>{const F=x.value.getBoundingClientRect();J(!p.value),p.value?(x.value.setAttribute(`data-${T.value}`,`${F[T.value]}px`),x.value.style[T.value]=e.collapsible?"0px":"5px"):(y.value=!0,x.value.style[T.value]=x.value.getAttribute(`data-${T.value}`)||$.value)},J=F=>{const z=()=>{y.value=F,x.value.style.transition="",x.value.removeEventListener("transitionend",z)};x.value.addEventListener("transitionend",z),x.value.style.transition=`${T.value} cubic-bezier(0.4, 0, 0.2, 1) .3s`};a.watch(m,()=>{p.value=m.value,k(p.value)}),a.onMounted(()=>{D.observe(C.value)}),a.onBeforeUnmount(()=>{C.value&&(D.unobserve(C.value),D=null)});const{resolveClassName:K}=xe();return{collapsed:p,asideContentVisible:y,minimized:b,limitMax:N,state:w,vertical:O,cssPropKey:T,bkResizeLayoutRef:C,resizeProxyRef:E,resizeMaskRef:_,asideRef:x,triggerStyle:P,asideStyle:L,handleMousedown:ne,setCollapse:k,resolveClassName:K}},render(){var t,n,r,s,o,c;const e=[`${this.resolveClassName("resize-layout")}`,`${this.resolveClassName(`resize-layout-${this.placement}`)}`,{[`${this.resolveClassName("resize-layout-collapsed")}`]:this.collapsed,[`${this.resolveClassName("resize-layout-border")}`]:this.border,[`${this.resolveClassName("resize-layout-collapsible")}`]:this.collapsible}];return a.createVNode("div",{ref:"bkResizeLayoutRef",class:e},[a.createVNode("aside",{ref:"asideRef",style:this.asideStyle,class:`${this.resolveClassName("resize-layout-aside")}`},[a.withDirectives(a.createVNode("div",{class:`${this.resolveClassName("resize-layout-aside-content")}`},[(n=(t=this.$slots).aside)==null?void 0:n.call(t)]),[[a.vShow,this.asideContentVisible]]),a.withDirectives(a.createVNode("i",{style:this.triggerStyle,class:`${this.resolveClassName("resize-trigger")}`,onMousedown:a.withModifiers(this.handleMousedown,["left"])},null),[[a.vShow,!this.disabled&&(!this.collapsed||this.autoMinimize)]]),a.withDirectives(a.createVNode("i",{ref:"resizeProxyRef",class:[`${this.resolveClassName("resize-proxy")}`,this.placement]},null),[[a.vShow,!this.collapsed||this.autoMinimize]]),this.collapsible&&(((s=(r=this.$slots)["collapse-trigger"])==null?void 0:s.call(r))||(this.collapsed?a.createVNode(Dn,{width:26,height:26,class:`${this.resolveClassName("resize-collapse")}`,onClick:this.setCollapse},null):a.createVNode(lr,{width:26,height:26,class:`${this.resolveClassName("resize-collapse")}`,onClick:this.setCollapse},null)))]),a.createVNode("main",{class:`${this.resolveClassName("resize-layout-main")}`},[(c=(o=this.$slots).main)==null?void 0:c.call(o)]),a.createVNode("div",{ref:"resizeMaskRef",class:`${this.resolveClassName("resize-mask")}`},null)])}}),x4=Qe(rK);var u0=null;function aK(e){return u0||(u0=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),u0(e)}var d0=null;function sK(e){d0||(d0=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),d0(e)}function iK(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function bc(e,t){t===void 0&&(t={});var n=document.createElement(e);return Object.keys(t).forEach(function(r){n[r]=t[r]}),n}function _4(e,t,n){var r=window.getComputedStyle(e,n||null)||{display:"none"};return r[t]}function Z0(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(_4(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var oK='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',Q0=0,Rc=null;function lK(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=dK.bind(e));var n=e.__resize_listeners__;if(!n){if(e.__resize_listeners__=[],window.ResizeObserver){var r=e.offsetWidth,s=e.offsetHeight,o=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===r&&e.offsetHeight===s)||cu(e)}),c=Z0(e),u=c.detached,d=c.rendered;e.__resize_observer_triggered__=u===!1&&d===!1,e.__resize_observer__=o,o.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){cu(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(Q0||(Rc=iK(oK)),fK(e),e.__resize_rendered__=Z0(e).rendered,window.MutationObserver){var h=new MutationObserver(e.__resize_mutation_handler__);h.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=h}}e.__resize_listeners__.push(t),Q0++}function cK(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",$2),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--Q0&&Rc&&Rc.parentNode.removeChild(Rc)}}function uK(e){var t=e.__resize_last__,n=t.width,r=t.height,s=e.offsetWidth,o=e.offsetHeight;return s!==n||o!==r?{width:s,height:o}:null}function dK(){var e=Z0(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(D2(this),this.addEventListener("scroll",$2,!0)),this.__resize_rendered__=t,cu(this))}function $2(){var e=this;D2(this),this.__resize_raf__&&sK(this.__resize_raf__),this.__resize_raf__=aK(function(){var t=uK(e);t&&(e.__resize_last__=t,cu(e))})}function cu(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function fK(e){var t=_4(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=bc("div",{className:"resize-triggers"}),r=bc("div",{className:"resize-expand-trigger"}),s=bc("div"),o=bc("div",{className:"resize-contract-trigger"});r.appendChild(s),n.appendChild(r),n.appendChild(o),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:s,contract:o},D2(e),e.addEventListener("scroll",$2,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function D2(e){var t=e.__resize_triggers__,n=t.expand,r=t.expandChild,s=t.contract,o=s.scrollWidth,c=s.scrollHeight,u=n.offsetWidth,d=n.offsetHeight,h=n.scrollWidth,f=n.scrollHeight;s.scrollLeft=o,s.scrollTop=c,r.style.width=u+1+"px",r.style.height=d+1+"px",n.scrollLeft=h,n.scrollTop=f}var Kn=(e=>(e.ALL="all",e.NEED_KEY="need-key",e))(Kn||{});const S4=Symbol("SEARCH_SELECT_PROVIDER_KEY"),hK=e=>{a.provide(S4,e)},T4=()=>a.inject(S4);var Sa=(e=>(e.DEFAULT="default",e.EDIT="edit",e))(Sa||{});const E4=/(\||,|、|\r\n|\n)/gm,O4=/^(\||,|、|\r\n|\n)$/;var bi=(e=>(e.AND="&",e.OR="|",e))(bi||{});class Js{constructor(t,n="default"){Le(this,"id");Le(this,"name");Le(this,"values",[]);Le(this,"condition");Le(this,"logical");Le(this,"nameRenderKey",bo(4));this.searchItem=t,this.type=n,this.id=t.id,this.name=t.name,this.logical=t.logical||"|",this.type=n}get multiple(){return!!this.searchItem.multiple}get placeholder(){return this.searchItem.placeholder||""}get children(){return this.searchItem.children||[]}get validate(){return!this.searchItem.noValidate}get inputInnerHtml(){var t;return this.isSpecialType()?this.name:`${this.keyInnerHtml}${((t=this.values)==null?void 0:t.map(n=>n.name).join(` ${this.logical} `))||""}`}get inputInnerText(){var t;return this.isSpecialType()?this.name:`${this.keyInnerText}${((t=this.values)==null?void 0:t.map(n=>n.name).join(` ${this.logical} `))||""}`}get keyInnerHtml(){return this.isSpecialType()?this.name:this.name?`${this.name}: `:""}get keyInnerText(){return this.isSpecialType()?this.name:this.name?`${this.name}: `:""}get showLogical(){return!!this.searchItem.showLogicalPanel}get isCustomMenu(){return this.searchItem.isCustomMenu}isSpecialType(){return["text","condition"].includes(this.type)}addValue(t){if(this.nameRenderKey=bo(4),this.multiple){const n=this.values.findIndex(r=>r.id===t.id);if(n>-1){this.values.splice(n,1);return}this.values.push(t);return}this.values=[t]}str2Values(t){const n=t==null?void 0:t.split(this.logical).map(s=>s.trim()).filter(s=>s);if(!(n!=null&&n.length))return[];const r=s=>this.children.find(o=>o.name===s);if(!this.multiple){const s=n.join(` ${this.logical} `).trim(),o=r(s);return[{id:o?o.id:s,name:o?o.name:s,disabled:!!(o!=null&&o.disabled)}]}return n.map(s=>{const o=this.values.find(u=>u.name===s);if(o)return o;const c=r(s);return{id:c?c.id:s,name:c?c.name:s,disabled:!!(c!=null&&c.disabled)}})}addValues(t,n=!0){const r=t.split(E4).filter(u=>u.trim()&&!O4.test(u)),s=n?this.values.map(u=>u.name):[],c=[...r,...s].filter(u=>u.trim()).join(this.logical);this.values=this.str2Values(c)}getValue(t){return this.values.find(n=>n.id===t)||this.values.find(n=>n.name===t)}toValue(){var n;const t={id:this.id,name:this.name};return(n=this.values)!=null&&n.length&&(t.values=this.values.map(r=>({id:r.id,name:r.name})),this.multiple&&this.logical!=="|"&&(t.logical=this.logical)),this.type&&this.type!=="default"&&(t.type=this.type),t}toValueKey(){return JSON.stringify(this.toValue())}isInValueList(t){return this.children.some(n=>n.id===(t==null?void 0:t.id))}}const mK=a.defineComponent({name:"SearchSelectMenu",props:{list:{type:Array},hoverId:String,keyword:{type:String,default:""},multiple:{type:Boolean,default:!1},selected:{type:Array,default:()=>[]},conditions:{type:Array},footerBtns:{type:Array,default:()=>[]},showLogical:{type:Boolean,default:!0},logical:{type:String,default:bi.OR},maxHeight:{type:Number,default:()=>392}},emits:["selectItem","selectCondition","footerClick","update:logical"],setup(e,{emit:t}){const n=ut("searchSelect"),{resolveClassName:r}=xe(),s=a.computed(()=>e.footerBtns===void 0||e.footerBtns.length===0?[{id:"confirm",name:n.value.ok},{id:"cancel",name:n.value.cancel,disabled:!1}]:e.footerBtns),o=a.computed(()=>({maxHeight:`${e.maxHeight}px`}));function c(b){t("selectItem",b)}function u(b){t("selectCondition",b)}function d(b){t("footerClick",b)}const h=a.computed(()=>{var b,N;return(b=e.list)!=null&&b.length?(N=e.keyword)!=null&&N.length?e.list.filter(w=>w.name.toLocaleLowerCase().includes(e.keyword.toLocaleLowerCase())):e.list:[]});function f(b){if(!b)return b;let{keyword:N}=e;const w=N.length;if(!(N!=null&&N.trim().length)||!b.toLocaleLowerCase().includes(N.toLocaleLowerCase()))return b;const C=[];let E=-1;return N=N.replace(/([.*/]{1})/gim,"\\$1"),b.replace(new RegExp(`${N}`,"igm"),(_,x)=>(C.length===0&&x!==0?C.push(b.slice(0,x)):E>=0&&C.push(b.slice(E+_.length,x)),C.push(a.createVNode("span",{class:"is-keyword"},[_])),E=x,_)),E>=0&&C.push(b.slice(E+w)),C.length?C:b}function m(b){var N;return(N=b.value)!=null&&N.name?[a.createVNode("span",{class:"menu-name"},[b.name,a.createTextVNode(":")]),b.value.name]:f(b.name)}function p(b,N){b.stopPropagation(),b.preventDefault(),c(N)}function y(b){t("update:logical",b)}return{handleClick:c,handleClickCondition:u,handleClickFooterBtn:d,handleSelectedChange:p,handleLogicalChange:y,filterList:h,getSearchNode:m,localFooterBtns:s,resolveClassName:r,resolveContentStyles:o,t:n}},render(){var n,r;const e=a.createVNode("ul",{class:"menu-content"},[(n=this.list)==null?void 0:n.map(s=>a.createVNode("li",{id:s.id,key:s.id,class:`menu-item ${s.disabled?"is-disabled":""} ${this.hoverId===s.id&&!s.disabled?"is-hover":""}`,tabindex:"-1",onClick:()=>!s.disabled&&this.handleClick(s)},[a.createVNode(a.Fragment,null,[this.multiple&&a.createVNode("span",{onClick:o=>this.handleSelectedChange(o,s)},[a.createVNode(sn,{class:"is-selected",modelValue:this.selected.includes(s.id)},null)]),this.getSearchNode(s)])]))]),t=()=>!this.showLogical||!this.multiple?e:a.createVNode("div",{class:"menu-content-wrapper"},[e,a.createVNode("div",{class:"menu-condition"},[a.createVNode("div",{class:"menu-condition-title"},[this.t.logical]),a.createVNode(lu,{label:"|",modelValue:this.logical,onChange:this.handleLogicalChange},{default:()=>[this.t.or,a.createTextVNode(" |")]}),a.createVNode(lu,{label:"&",modelValue:this.logical,onChange:this.handleLogicalChange},{default:()=>[this.t.and,a.createTextVNode(" &")]})])]);return a.createVNode("div",{style:this.resolveContentStyles,class:this.resolveClassName("search-select-menu")},[!!((r=this.conditions)!=null&&r.length)&&a.createVNode("ul",{class:"menu-header"},[this.conditions.map(s=>a.createVNode("li",{key:s.id,class:`menu-header-item ${s.disabled?"is-disabled":""}`,onClick:()=>!s.disabled&&this.handleClickCondition(s)},[s.name]))]),t()])}}),L4=a.defineComponent({name:"SearchSelectInput",directives:{clickoutside:kr},props:{data:{type:Array,required:!0},showInputBefore:Boolean,showCondition:Boolean,clickOutside:Function,placeholder:String,conditions:{type:Array,default:()=>[]},defaultUsingItem:Object,mode:{type:String,default:Sa.DEFAULT},maxHeight:{type:Number,default:()=>392},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["focus","add","delete","selectKey"],slots:Object,setup(e,{emit:t,expose:n}){const r=ut("searchSelect"),{resolveClassName:s}=xe(),o=a.ref(null),c=a.ref(null),u=a.ref(""),d=a.ref(!1),h=a.ref(!1),f=a.ref(!1),m=a.ref(e.defaultUsingItem),p=a.ref(""),y=a.ref(!1),b=Uo(100,z);let N=!1;const w=a.ref([]),C=a.ref([]),{editKey:E,onValidate:_,searchData:x}=T4(),O=a.computed(()=>{var q;return((q=m.value)==null?void 0:q.logical)||bi.OR});a.watch(E,()=>{e.mode===Sa.DEFAULT&&E.value&&(f.value=!1)}),a.watch([C,f],()=>{var se,de;f.value&&((se=C.value)==null?void 0:se.some(U=>!U.disabled))?N||(p.value=e.valueBehavior===Kn.NEED_KEY&&((de=C.value.find(U=>!U.disabled))==null?void 0:de.id)||"",N=!0,document.addEventListener("keydown",T)):(document.removeEventListener("keydown",T),N=!1,e.valueBehavior!==Kn.NEED_KEY&&(p.value=""))});function T(q){switch(q.code){case"ArrowDown":case"ArrowUp":$(q);break;case"Enter":case"NumpadEnter":L(q);break}}function $(q){var U;q.preventDefault(),(U=o.value)==null||U.blur();const se=C.value.length;let de=C.value.findIndex(ee=>ee.id===p.value);for(let ee=0;ee<se;ee++){de=(de+(q.code==="ArrowDown"?1:-1)+se)%se;const Ce=C.value[de];if(Ce&&!Ce.disabled){const j=document.getElementById(Ce.id);j==null||j.focus(),p.value=Ce.id;break}}}function L(q){var de;if(!N)return;q.preventDefault();const se=(de=C.value)==null?void 0:de.find(U=>U.id===p.value);se&&B(se)}function P(q){var se,de,U;if(!((se=c.value)!=null&&se.contains(q.target)||!((de=e.clickOutside)!=null&&de.call(e,q.target,c.value)))){if((U=m.value)!=null&&U.isCustomMenu){e.mode===Sa.EDIT&&(W().then(ee=>ee&&Z()),f.value=!1);return}if(e.mode===Sa.EDIT||m.value){m.value&&W().then(ee=>ee&&Z()),m.value||t("focus",!1);return}h.value=!1,f.value=!1,t("focus",h.value)}}let I=!1;function A(q){if(!I){if(d.value=!1,e.mode===Sa.EDIT&&m.value&&!h.value){const se=Array.from(o.value.querySelectorAll(`[data-type="${m.value.values.length?"value":m.value.type}"]`));if(!se.length)return;q==null||q.preventDefault();const de=document.createRange(),U=window.getSelection();de.selectNodeContents(se.at(-1)),U==null||U.removeAllRanges(),I=!0,setTimeout(()=>{I=!1},200),U.addRange(de),ce(!0,!1);return}z(),ce(!1,!h.value)}}function D(q){q.preventDefault();const se=q.clipboardData.getData("text").trim();if(!m.value){const de=me(se);if(de){m.value=de,ce(!0,!0);return}u.value=se.split(E4).filter(U=>U.trim()&&!O4.test(U)).join(` ${O.value} `),o.value.innerText=u.value,ce(),b();return}m.value.addValues(se),b()}function X(q){const se=q.target.innerText.trim();if(!m.value){u.value=se,b();return}u.value=m.value.isSpecialType()?se:se.replace(m.value.name,"").replace(":","").trim(),b()}function M(q){var se;switch(q.code){case"Enter":case"NumpadEnter":if(e.valueBehavior===Kn.NEED_KEY&&C.value.some(de=>de.id===p.value)){!m.value&&((se=u.value)!=null&&se.length)&&q.preventDefault();return}W(q).then(de=>de&&Z());break;case"Backspace":ne(q);default:d.value=!1;break}}async function W(q){var de,U,ee;return q==null||q.preventDefault(),await new Promise(Ce=>setTimeout(Ce,0)),m.value?u.value?await te():!((de=m.value)!=null&&de.isSpecialType())&&((U=m.value)==null?void 0:U.values.length)<1?(d.value=!d.value,!1):(await F()&&((ee=m.value)!=null&&ee.isCustomMenu&&(f.value=!1),be()),!1):!u.value||e.valueBehavior===Kn.NEED_KEY?void 0:await Y()}function ne(q){var se,de,U;if(!m.value&&!u.value){p.value="",t("delete"),setTimeout(z,16);return}if((se=m.value)!=null&&se.values.length){if(m.value.type==="text"||!((de=m.value.children)!=null&&de.length))return;q.preventDefault();const ee=window.getSelection();if((ee==null?void 0:ee.rangeCount)>0){let ie=ee.getRangeAt(0).startContainer;for(;ie&&ie.parentNode!==o.value;)ie=ie.parentNode;const ve=((U=ie==null?void 0:ie.dataset)==null?void 0:U.index)||-1;m.value.values.splice(+ve,1),u.value="",ce(!1,!1);return}}else u.value||(m.value=null,u.value="",z());_("")}async function B(q,se){var de,U,ee,Ce,j;if((de=q.value)!=null&&de.id){const ie=new Js({...q,id:q.realId??q.id},se);if(ie.addValues(q.value.name,!1),e.valueBehavior===Kn.NEED_KEY&&p.value){be(ie),ce(!0),p.value="";return}if(m.value=ie,!await F(m.value.values)){m.value=null;return}be(m.value),ce(!0),p.value="";return}if(!m.value||((U=m.value)==null?void 0:U.type)==="condition"){m.value=new Js(q,se??((ee=m.value)==null?void 0:ee.type)),u.value="";const ie=((Ce=m.value)==null?void 0:Ce.type)==="condition";ie||t("selectKey",{id:q.id,name:q.name,values:[]}),ie&&be(),f.value=ie||!!m.value.children.length,ce(e.valueBehavior===Kn.NEED_KEY&&!!p.value);return}m.value&&(m.value.addValue(q),a.nextTick(ae)),await F(m.value.values)&&(m.value.multiple||be(),e.valueBehavior===Kn.NEED_KEY&&((j=m.value)!=null&&j.multiple)&&ce())}function k(q){B(q,"condition")}function re(q){var se;switch(q.id){case"confirm":if(!((se=m.value)!=null&&se.values.length))return;u.value="",W();break;case"cancel":m.value.values=[],f.value=!1;break}}function J(q){m.value&&(m.value.logical=q)}async function K(q,se){if(typeof e.validateValues=="function"){let de="";try{de=await e.validateValues(q??null,se)}catch{de=!1}if(typeof de=="string"||de===!1)return _(de||"校验错误"),!1}return _(""),!0}async function F(q){if(!m.value)return await K(null,q);const{searchItem:se,validate:de,values:U}=m.value;return de&&typeof e.validateValues=="function"?await K(se,q??U):(_(""),!0)}async function z(){var se,de,U,ee,Ce;let q=[];if(typeof e.getMenuList=="function"&&(!((se=e.data)!=null&&se.length)&&!m.value||m.value&&m.value.type!=="condition"&&(((de=m.value.searchItem)==null?void 0:de.async)===void 0||m.value.searchItem.async===!0))?(y.value=!0,q=await e.getMenuList((U=m.value)==null?void 0:U.searchItem,u.value).catch(()=>[]),y.value=!1):m!=null&&m.value?m.value.type==="condition"?q=e.conditions:(!((Ce=m.value.values)!=null&&Ce.length)||m.value.multiple||e.mode===Sa.EDIT)&&(q=m.value.children.filter(j=>j.name.toLocaleLowerCase().includes(u.value.toLocaleLowerCase()))):(ee=u.value)!=null&&ee.length?e.data.filter(j=>!j.isSelected).forEach(j=>{var ve,Ae;if(j.name.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())){q.push(j);const Ie=[];(ve=j.children)==null||ve.forEach(ke=>{Ie.push({...j,realId:j.id,id:bo(10),value:ke})}),!Ie.length&&!j.onlyRecommendChildren&&Ie.push({...j,realId:j.id,id:bo(10),value:{id:u.value,name:u.value}}),q.push(...Ie)}else{const Ie=[];(Ae=j.children)==null||Ae.forEach(ke=>{ke.name.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())&&Ie.push({...j,realId:j.id,id:bo(10),value:ke})}),!Ie.length&&!j.onlyRecommendChildren&&Ie.push({...j,value:{id:u.value,name:u.value}}),q.push(...Ie)}}):q=e.data.filter(j=>!j.isSelected).slice(),C.value=q,e.valueBehavior===Kn.NEED_KEY){const j=q.find(ie=>!ie.disabled);j&&(!p.value||p.value&&!q.some(ie=>ie.id===p.value))&&(p.value=j.id)}}async function Y(){const q=me(u.value),se=(q==null?void 0:q.values)||[{id:u.value,name:u.value}];if(await F(se))return t("add",q||new Js({...se[0]},"text")),u.value="",z(),!0}async function te(){let q=[];if(m.value.isSpecialType()){const de=me(u.value);de&&(m.value=de,q=de.values)}if(q=q.length?q:m.value.str2Values(u.value),!!await F(q))return m.value.type==="text"?(m.value.name=u.value,m.value.id=u.value):m.value.values=q,t("add",m.value),u.value="",m.value=null,ce(!0),!0}function ue(){if(!o.value)return;const q=document.createRange(),se=window.getSelection();q.selectNodeContents(o.value),q.collapse(!1),se.removeAllRanges(),se.addRange(q)}function ce(q=!1,se=!0){q&&setTimeout(z,16),h.value=!0,f.value=!0,d.value=!1,!e.getMenuList&&se&&a.nextTick(ue),t("focus",h.value)}function be(q){var de;t("add",q??m.value);const se=!((de=m.value)!=null&&de.isCustomMenu);m.value=null,u.value="",se&&(ce(!0,se),a.nextTick(Z))}function Z(){o.value&&(u.value="",a.nextTick(()=>o.value.innerText=""))}function me(q){const[se,de]=q.split(":");if(se!=null&&se.trim()){const U=x.value.find(ee=>ee.name===se.trim());if(U){const ee=new Js({...U},"default");return ee.addValues(de),ee}}}function ae(){var q;(q=u.value)!=null&&q.length&&(u.value="",Array.from(o.value.childNodes).forEach(de=>{var U;de.nodeType===Node.TEXT_NODE&&((U=de.textContent)!=null&&U.trim())&&o.value.removeChild(de)}))}function pe(){var q;(q=o.value)==null||q.focus()}async function G(){await W().then(q=>q&&Z()),f.value=!1,o.value.blur()}function fe(){u.value="",d.value=!1,f.value=!1,m.value=null,a.nextTick(Z)}function we(q){m.value.values=[{id:q,name:q}],W().then(se=>se&&Z())}function le(){m.value||(p.value="")}return n({inputFocusForWrapper:pe,inputEnterForWrapper:G,inputClearForWrapper:fe,handleInputFocus:A,isFocus:h,refleshMenuHover:le}),{popoverRef:c,inputRef:o,keyword:u,loading:y,remoteMenuList:w,menuList:C,menuHoverId:p,isFocus:h,usingItem:m,showPopover:f,showNoSelectValueError:d,debounceSetMenuList:b,documentArrowEvent:$,handleClickOutside:P,handleInputFocus:A,handleInputChange:X,handleInputPaste:D,handleLogicalChange:J,handleInputKeyup:M,handleSelectItem:B,handleSelectConditionItem:k,handleMenuFooterClick:re,resolveClassName:s,inputFocusForWrapper:pe,inputEnterForWrapper:G,inputClearForWrapper:fe,deleteInputTextNode:ae,customPanelSubmit:we,refleshMenuHover:le,t:r}},render(){var f,m;const{multiple:e,values:t,placeholder:n,inputInnerHtml:r,isCustomMenu:s}=this.usingItem||{},o=!((f=this.keyword)!=null&&f.length)&&!(t!=null&&t.length)&&n,c=this.loading||this.showNoSelectValueError||this.showPopover&&(!!s||!!((m=this.menuList)!=null&&m.length)),u=!this.usingItem&&this.showCondition,d=()=>{var p,y,b,N;return a.withDirectives(a.createVNode("div",{ref:"inputRef",class:{"div-input":!0,"input-before":this.showInputBefore&&!((p=this.keyword)!=null&&p.length),"input-after":o},contenteditable:!0,"data-placeholder":!r&&!this.keyword?this.placeholder:"","data-tips":n||"",spellcheck:"false",onFocus:this.handleInputFocus,onInput:this.handleInputChange,onKeydown:this.handleInputKeyup,onPaste:this.handleInputPaste},[((y=this.usingItem)==null?void 0:y.name)&&(this.usingItem.isSpecialType()?a.createVNode("span",{key:this.usingItem.nameRenderKey,"data-key":this.usingItem.name,"data-type":this.usingItem.type},[this.usingItem.name]):a.createVNode("span",{key:this.usingItem.nameRenderKey,style:{color:"#979BA5"},contenteditable:!1,"data-key":this.usingItem.name,"data-type":this.usingItem.type,onMousedown:w=>w.preventDefault()},[this.usingItem.name,a.createTextVNode(": ")])),(N=(b=this.usingItem)==null?void 0:b.values)==null?void 0:N.map((w,C)=>a.createVNode("span",{key:C,"data-id":w.id,"data-index":C,"data-key":w.name,"data-type":"value"},[w.name,C<this.usingItem.values.length-1?` ${this.usingItem.logical} `:""]))]),[[a.resolveDirective("clickoutside"),this.handleClickOutside]])},h=()=>{var p,y,b,N,w;return this.loading?a.createVNode("div",null,[this.t.loading]):this.showNoSelectValueError?a.createVNode("div",null,[this.t.filterQueryMustHasValue]):(p=this.usingItem)!=null&&p.isCustomMenu&&this.$slots.menu?a.createVNode("div",{ref:"popoverRef",class:this.resolveClassName("search-select-popover")},[this.$slots.menu({value:(y=this.usingItem.values)==null?void 0:y[0],id:this.usingItem.id,name:this.usingItem.name,onSubmit:this.customPanelSubmit})]):(b=this.menuList)!=null&&b.length?a.createVNode("div",{ref:"popoverRef",class:this.resolveClassName("search-select-popover")},[a.createVNode(mK,{conditions:u?this.conditions:[],hoverId:this.menuHoverId,keyword:this.keyword,list:this.menuList,logical:(N=this.usingItem)==null?void 0:N.logical,maxHeight:this.maxHeight,multiple:!!e,selected:(t==null?void 0:t.map(C=>C.id))||[],showLogical:(w=this.usingItem)==null?void 0:w.showLogical,onFooterClick:this.handleMenuFooterClick,onSelectCondition:this.handleSelectConditionItem,onSelectItem:this.handleSelectItem,"onUpdate:logical":this.handleLogicalChange},null)]):void 0};return a.createVNode(wn,{arrow:!1,disableOutsideClick:!0,isShow:c,placement:"bottom-start",theme:"light",trigger:"manual"},{default:d,content:h})}}),gK=a.defineComponent({name:"SearchSelected",props:{data:{type:Array,required:!0},selectedList:{type:Array,required:!0},overflowIndex:{type:Number,default:-1},maxHeight:{type:Number,default:()=>392},conditions:{type:Array,default:()=>[]},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["delete","selectKey"],setup(e,{emit:t}){const n=a.ref(null),r=a.ref(null),{onEditClick:s,onEditEnter:o,onEditBlur:c,editKey:u}=T4();function d(b){t("delete",b)}function h(b,N,w){b.preventDefault(),b.stopPropagation(),s(N,w),t("selectKey",{id:N.id,name:N.name,values:N.values.slice()}),setTimeout(()=>n.value.handleInputFocus(),200)}function f(b,N){o(b,N)}function m(b){b||c()}function p(b){var N;return!((N=r.value)!=null&&N.contains(b))}function y(b){const N=new Js(b.searchItem,b.type);return N.values=b.values.slice(),N.logical=b.logical||bi.OR,N}return{inputRef:n,selectedInputRef:r,editKey:u,copySelectedItem:y,handleDeleteSelected:d,handleEditSelected:h,handleInputOutside:p,handleAddSelected:f,handleInputFocus:m}},render(){const e=(t,n)=>this.editKey===`${t.id}_${n}`?a.createVNode("div",{key:this.editKey.toString(),ref:"selectedInputRef",class:"selected-input"},[a.createVNode(L4,{key:this.editKey.toString(),ref:"inputRef",clickOutside:this.handleInputOutside,conditions:this.conditions,data:this.data,defaultUsingItem:this.copySelectedItem(t),getMenuList:this.getMenuList,maxHeight:this.maxHeight,mode:Sa.EDIT,showCondition:!1,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onAdd:r=>this.handleAddSelected(r,n),onFocus:this.handleInputFocus},{...this.$slots})]):a.createVNode("li",{key:`${t.id}_${n}`,class:`search-container-selected ${(this.overflowIndex>=0?n<this.overflowIndex:n>=0)?"":"hidden-selected"}`},[a.createVNode("span",{class:"selected-name",onClick:r=>this.handleEditSelected(r,t,n)},[t.inputInnerText]),a.createVNode(an,{class:"selected-clear",onClick:()=>this.handleDeleteSelected(n)},null)]);return a.createVNode(a.Fragment,null,[this.selectedList.map((t,n)=>[this.overflowIndex>=0&&n===this.overflowIndex&&a.createVNode("div",{class:"search-container-selected overflow-selected"},[a.createTextVNode("+"),this.selectedList.length-this.overflowIndex]),e(t,n)])])}}),f0=40,Em=6,Om=26,pK=32,vK={data:{type:Array,default:()=>[]},modelValue:{type:Array,default:()=>[]},maxHeight:{type:Number,default:pK*12+8},conditions:{type:Array,default:()=>[]},clearable:{type:Boolean,default:!0},placeholder:String,getMenuList:Function,validateValues:Function,uniqueSelect:{type:Boolean,default:!1},valueBehavior:{type:String,default:Kn.ALL,validator(e){return[Kn.ALL,Kn.NEED_KEY].includes(e)}}},yK=a.defineComponent({name:"SearchSelect",directives:{clickoutside:kr},props:vK,emits:["update:modelValue","search","selectKey"],slots:Object,setup(e,{emit:t}){const n=ut("searchSelect"),{resolveClassName:r}=xe(),s=a.computed(()=>e.conditions===void 0?[{id:"or",name:n.value.or},{id:"and",name:n.value.and}]:e.conditions),o=a.ref(null),c=a.ref(null),u=a.ref(!1),d=a.ref([]),h=a.ref(-1),f=Uo(32,E),m=a.ref(""),p=a.ref(""),y=a.shallowRef([]);a.watch(()=>e.data,()=>{var A;y.value=JSON.parse(JSON.stringify(e.data)),(A=y.value)==null||A.forEach(D=>{D.isSelected=e.uniqueSelect&&!!e.modelValue.some(X=>X.id===D.id)})},{immediate:!0}),a.watch(()=>e.modelValue,A=>{var X;if(!(A!=null&&A.length)){d.value=[],(X=y.value)==null||X.forEach(M=>{M.isSelected=!1});return}const D=[];A.forEach(M=>{var ne;const W=d.value.find(B=>B.id===M.id&&B.name===M.name);if((W==null?void 0:W.toValueKey())===JSON.stringify(M))W.values=M.values||[],W.logical=M.logical||bi.OR,D.push(W);else{let B=e.data.find(J=>J.id===M.id),k="default";B||(B=e.conditions.find(J=>J.id===M.id),B&&(k="condition")),!B&&!((ne=M.values)!=null&&ne.length)&&(k="text");const re=new Js(B||M,k);re.values=M.values||[],re.logical=M.logical||bi.OR,D.push(re)}}),d.value=D,y.value=JSON.parse(JSON.stringify(e.data||[])),y.value.forEach(M=>{M.isSelected=e.uniqueSelect&&!!D.some(W=>W.id===M.id)})},{immediate:!0,deep:!0}),a.onMounted(()=>{lK(c.value.querySelector(`.${r("search-select-container")}`),f)}),a.onBeforeUnmount(()=>{cK(c.value.querySelector(`.${r("search-select-container")}`),f)}),hK({onEditClick:b,onEditEnter:N,onEditBlur:w,onValidate:C,editKey:m,searchData:a.computed(()=>e.data),isClickOutside:O});function b(A,D){m.value=`${A.id}_${D}`}function N(A,D){const X=d.value.slice();X.splice(D,1,A),t("update:modelValue",X.map(M=>M.toValue())),m.value=""}function w(){m.value="",C("")}function C(A){p.value=A||""}function E(){if(u.value||d.value.length<1){h.value=-1;return}const A=c.value.querySelector(`.${r("search-select-container")}`),D=c.value.querySelector(".search-container").clientWidth-Em-2,X=A.querySelectorAll(".search-container-selected:not(.overflow-selected)");let M=0,W=0,ne=0;for(;W===0&&M<=D-f0&&ne<=X.length-1;){const B=X[ne];if(B.clientHeight>Om){h.value=ne;return}M+=B?B.clientWidth+Em:0,M>=D-f0&&(W=ne),ne+=1}if(W===X.length-1&&M<=D){h.value=-1;return}h.value=M>=D-f0?W:W-1}function _(){m.value||o.value.inputFocusForWrapper()}function x(){d.value=[],h.value=-1,o.value.inputClearForWrapper(),t("update:modelValue",[])}function O(A){var D;return!((D=c.value)!=null&&D.contains(A))}function T(A){const D=d.value.slice();D.push(A),C(""),t("update:modelValue",D.map(X=>X.toValue()))}function $(A){const D=d.value.slice();D.splice(typeof A=="number"?A:d.value.length-1,1),C(""),o.value.refleshMenuHover(),t("update:modelValue",D.map(X=>X.toValue()))}function L(A){var D;A&&(h.value=-1),A===!1&&((D=c.value.querySelector(`.${r("search-select-container")}`))==null||D.scrollTo(0,0)),u.value=A}function P(A){o.value.inputEnterForWrapper(),t("search",A)}function I(A){t("selectKey",A)}return{inputRef:o,wrapRef:c,isFocus:u,copyData:y,selectedList:d,overflowIndex:h,validateStr:p,onEditClick:b,onEditEnter:N,handleWrapClick:_,handleInputFocus:L,handleResize:E,handleClearAll:x,handleInputOutside:O,handleAddSelected:T,handleDeleteSelected:$,handleClickSearch:P,localConditions:s,resolveClassName:r,handleSelectedKey:I,t:n}},render(){var r,s;const e=`${this.isFocus?this.maxHeight:Om}px`,t=!!this.selectedList.length&&this.selectedList.slice(-1)[0].type!=="condition",n=Object.assign({},this.$slots.menu?{menu:o=>{var c,u;return(u=(c=this.$slots).menu)==null?void 0:u.call(c,o)}}:{});return a.createVNode("div",{ref:"wrapRef",class:this.resolveClassName("search-select")},[a.createVNode("div",{class:{[this.resolveClassName("search-select-container")]:!0,"is-focus":this.isFocus},onClick:this.handleWrapClick},[a.createVNode("div",{class:"search-prefix"},[(s=(r=this.$slots).prepend)==null?void 0:s.call(r)]),a.createVNode("div",{style:{"max-height":`${e}px`},class:"search-container"},[a.createVNode(gK,{conditions:this.localConditions,data:this.copyData,getMenuList:this.getMenuList,maxHeight:this.maxHeight,overflowIndex:this.overflowIndex,selectedList:this.selectedList,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onDelete:this.handleDeleteSelected,onSelectKey:this.handleSelectedKey},{...n}),a.createVNode("div",{class:"search-container-input"},[a.createVNode(L4,{ref:"inputRef",clickOutside:this.handleInputOutside,conditions:this.localConditions,data:this.copyData,getMenuList:this.getMenuList,maxHeight:this.maxHeight,placeholder:this.placeholder||this.t.pleaseSelect,showCondition:t,showInputBefore:!this.selectedList.length,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onAdd:this.handleAddSelected,onDelete:this.handleDeleteSelected,onFocus:this.handleInputFocus,onSelectKey:this.handleSelectedKey},{...n})])]),a.createVNode("div",{class:"search-nextfix"},[this.clearable&&!!this.selectedList.length&&a.createVNode(bn,{class:"search-clear",onClick:this.handleClearAll},null),this.$slots.append?this.$slots.append():a.createVNode(vs,{class:`search-nextfix-icon ${this.isFocus?"is-focus":""}`,onClick:this.handleClickSearch},null)])]),!!this.validateStr.length&&a.createVNode("div",{class:this.resolveClassName("search-select-tips")},[this.$slots.validate?this.$slots.validate():a.createVNode(a.Fragment,null,[a.createVNode(Qo,{class:"select-tips"},null),this.validateStr||""])])])}}),A4=Qe(yK);function bK(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const V4=$v(xd);V4.width.default="400";const wK=a.defineComponent({name:"Sideslider",inheritAttrs:!1,props:{...V4,title:v.string.def(""),direction:{type:String,default:"right",validator:e=>{const t=["left","right"];return t.indexOf(e)<0?(console.error(`direction property is not valid: '${e}',【${t.join(" | ")}】`),!1):!0}}},emits:["closed","update:isShow","shown","hidden","animation-end"],setup(e,{emit:t}){const n=a.useAttrs(),r=a.useSlots(),s=a.getCurrentInstance(),{resolveClassName:o}=xe(),c=async()=>{let h=!0;typeof e.beforeClose=="function"&&(h=await e.beforeClose()),h&&(t("update:isShow",!1),t("closed"),t("animation-end"))},u=()=>{t("shown")},d=()=>{t("hidden")};return()=>{const h={header:()=>{var m;return a.createVNode(a.Fragment,null,[a.createVNode("div",{class:`${o("sideslider-header")}`},[a.createVNode("div",{class:`${o("sideslider-close")}`,onClick:c},[e.direction==="left"?a.createVNode(lr,null,null):a.createVNode(Dn,null,null)]),a.createVNode("div",{class:`${o("sideslider-title")}`},[((m=r.header)==null?void 0:m.call(r))??e.title])])])},default:()=>{var m;return a.createVNode("div",{class:`${o("sideslider-content")}`},[(m=r.default)==null?void 0:m.call(r)])}};r.footer&&Object.assign(h,{footer:()=>a.createVNode("div",{class:`${o("sideslider-footer")}`},[r.footer()])});const f={...n};return s.vnode.scopeId&&(f[s.vnode.scopeId]=""),a.createVNode(il,a.mergeProps(f,{width:e.width,class:{[o("sideslider")]:!0,[`is-position-${e.direction}`]:e.direction},extCls:e.extCls,animateType:e.direction,backgroundColor:e.backgroundColor,closeIcon:!1,escClose:e.escClose,isShow:e.isShow,quickClose:e.quickClose,renderDirective:e.renderDirective,showMask:e.showMask,transfer:e.transfer,zIndex:e.zIndex,onClose:c,onHidden:d,onShown:u}),bK(h)?h:{default:()=>[h]})}}}),$4=Qe(wK),Lm=a.defineComponent({name:"SliderButton",props:{modelValue:{type:Number,default:0},params:{type:Object,default:()=>({})}},emits:["emitChange","resetSize","update:modelValue"],setup(e,{emit:t}){const n=a.ref(!1),r=a.ref(!1),s=a.ref(0),o=a.ref(0),c=a.ref(0),u=a.ref(null),d=a.ref(e.modelValue),h=a.ref(0),f=a.ref(0),m=a.ref(!1),p=a.ref(null),y=a.computed(()=>{var I,A;let L="";if((I=e.params.customContent)!=null&&I[e.modelValue]){const D=e.params.customContent[e.modelValue];L=D.tip||D.label||""}const P=e.params.vertical?Lo.RIGHT:Lo.TOP;return(A=e.params)!=null&&A.showTip?{content:e.params.formatterTipLabel(`${L||(e==null?void 0:e.modelValue)||"0"}`),placement:P}:{content:"",placement:P}}),b=a.computed(()=>`${(e.modelValue-e.params.minValue)/(e.params.maxValue-e.params.minValue)*100}%`),N=a.computed(()=>e.params.vertical?{bottom:b.value}:{left:b.value}),w=a.computed(()=>e.params.formatterButtonLabel(e.modelValue)),C=L=>{e.params.disable||(L.preventDefault(),E(L),go(window,"mousemove",_),go(window,"touchmove",_),go(window,"mouseup",x),go(window,"touchend",x))},E=L=>{n.value=!0,r.value=!0,e.params.vertical?s.value=L.clientY:o.value=L.clientX,c.value=parseFloat(b.value),u.value=c.value},_=L=>{if(n.value){r.value=!1,t("resetSize");let P=0;e.params.vertical?(h.value=L.clientY,P=(s.value-h.value)/e.params.sliderSize*100):(f.value=L.clientX,P=(f.value-o.value)/e.params.sliderSize*100),u.value=c.value+P,O(u.value)}},x=()=>{m.value=!1,n.value&&(setTimeout(()=>{n.value=!1,r.value||(O(u.value),t("emitChange"))},0),wc(window,"mousemove",_),wc(window,"touchmove",_),wc(window,"mouseup",x),wc(window,"touchend",x))},O=L=>{if(L===null||isNaN(L))return;L<0?u.value=0:L>100&&(u.value=100);const P=100/((e.params.maxValue-e.params.minValue)/e.params.step);let A=Math.round(L/P)*P*(e.params.maxValue-e.params.minValue)*.01+e.params.minValue;A=parseFloat(A.toFixed(e.params.precision)),t("update:modelValue",A),!n.value&&e.modelValue!==d.value&&(d.value=e.modelValue)},{resolveClassName:T}=xe();return{renderDom:()=>a.createVNode("div",{ref:p,style:N.value,class:[`${T("slider-button")}`,e.params.vertical?"vertical":"horizontal",{grabbing:n.value}],tabindex:"0",onClick:L=>L.stopPropagation(),onMousedown:C},[y.value.content?a.createVNode(a.Fragment,null,[a.createVNode(wn,{boundary:document.body,content:y.value.content,placement:y.value.placement,theme:"dark"},{default:()=>[a.createVNode("div",{class:["slider-button",{"slider-button-disable":e.params.disable}]},null)]})]):a.createVNode(a.Fragment,null,[a.createVNode("div",{class:["slider-button",{"slider-button-disable":e.params.disable}]},null)]),e.params.showButtonLabel&&!e.params.showIntervalLabel?a.createVNode(a.Fragment,null,[a.createVNode("div",{class:["slider-button-label",e.params.vertical?"vertical":"horizontal"]},[w.value])]):null]),setPosition:O,tip:y}},render(){return this.renderDom()}}),go=(e,t,n)=>{e&&t&&n&&e.addEventListener(t,n,!1)},wc=(e,t,n)=>{e&&t&&n&&e.removeEventListener(t,n,!1)},CK=a.defineComponent({name:"Slider",props:{modelValue:v.oneOfType([v.arrayOf(v.number),v.number]),extCls:{type:String,default:""},vertical:{type:Boolean,default:!1},height:{type:String,default:"200px"},disable:{type:Boolean,default:!1},showTip:{type:Boolean,default:!1},maxValue:{type:[Number],default:100},minValue:{type:[Number],default:0},step:{type:[Number],default:1},range:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!1},showIntervalLabel:{type:Boolean,default:!1},showButtonLabel:{type:Boolean,default:!1},showBetweenLabel:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},customContent:{type:Object,default:null},formatterLabel:{type:Function,default:e=>e},formatterButtonLabel:{type:Function,default:e=>e},formatterTipLabel:{type:Function,default:e=>e},labelClick:{type:[Boolean,Function],default:!1}},emits:["update:modelValue","change"],setup(e,{slots:t,emit:n}){const r=a.ref(1),s=a.ref(null),o=a.ref(null),c=a.ref(null),u=a.ref(0),d=a.ref(0),h=a.ref(null),f=a.ref(null),m=a.ref(null),p=a.ref(null),y=a.computed(()=>{const F=[e.minValue,e.maxValue,e.step].map(z=>{const Y=`${z}`.split(".")[1];return Y?Y.length:0});return Math.max.apply(null,F)}),b=a.computed(()=>Math.min(s.value,o.value)),N=a.computed(()=>Math.max(s.value,o.value)),w=a.computed(()=>e.range?`${100*(N.value-b.value)/(e.maxValue-e.minValue)}%`:`${100*(s.value-e.minValue)/(e.maxValue-e.minValue)}%`),C=a.computed(()=>e.range?`${100*(b.value-e.minValue)/(e.maxValue-e.minValue)}%`:"0%"),E=a.computed(()=>e.vertical?{height:w.value,bottom:C.value}:{width:w.value,left:C.value}),_=a.computed(()=>{if(!e.showInterval||e.minValue>e.maxValue)return[];if(e.step===0)return console.warn("WARNNING:step should not be 0"),[];const F=(e.maxValue-e.minValue)/e.step,z=100*e.step/(e.maxValue-e.minValue),Y=[];for(let te=1;te<F;te++)Y.push(te*z);return e.range?Y.filter(te=>te<100*(b.value-e.minValue)/(e.maxValue-e.minValue)||te>100*(N.value-e.minValue)/(e.maxValue-e.minValue)):Y.filter(te=>te>100*(s.value-e.minValue)/(e.maxValue-e.minValue))}),x=a.computed(()=>e.vertical?{height:e.height,width:"4px"}:{}),O=a.computed(()=>{if(!e.showIntervalLabel)return[];if(e.step===0)return console.warn("WARNNING:step should not be 0"),[];const F=100*e.step/(e.maxValue-e.minValue),z=[];for(let Y=e.minValue,te=0;Y<=e.maxValue;Y+=e.step,te++){const ue={stepWidth:te*F,stepLabel:e.formatterLabel(Y)};z.push(ue)}return z}),T=a.computed(()=>Array.isArray(e.modelValue)),$=a.computed(()=>e.customContent?Object.keys(e.customContent).sort((F,z)=>Number(F)-Number(z)).filter(F=>Number(F)>=e.minValue&&Number(F)<=e.maxValue).map(F=>{const{tip:z}=e.customContent[F],{label:Y}=e.customContent[F];return{tip:z||Y||"",label:Y||"",percent:(Number(F)-e.minValue)/(e.maxValue-e.minValue)*100}}):[]),L=a.computed(()=>({vertical:e.vertical,showTip:e.showTip,disable:e.disable,maxValue:e.maxValue,minValue:e.minValue,step:e.step,precision:y.value,showButtonLabel:e.showButtonLabel,formatterButtonLabel:e.formatterButtonLabel,showIntervalLabel:e.showIntervalLabel,customContent:e.customContent,sliderSize:r.value,formatterTipLabel:e.formatterTipLabel}));a.watch(()=>e.modelValue,()=>{D()}),a.watch(()=>s.value,F=>{e.range?n("update:modelValue",[b.value,N.value]):n("update:modelValue",F),u.value=F}),a.watch(()=>o.value,F=>{n("update:modelValue",[b.value,N.value]),d.value=F}),a.onMounted(()=>{e.range?(Array.isArray(e.modelValue)?(s.value=Math.max(e.minValue,Number(e.modelValue[0])),o.value=Math.min(e.maxValue,Number(e.modelValue[1]))):(s.value=e.minValue,o.value=e.maxValue),c.value=[s.value,o.value]):(typeof e.modelValue!="number"||isNaN(e.modelValue)?s.value=e.minValue:s.value=Math.min(e.maxValue,Math.max(e.minValue,e.modelValue)),c.value=s.value),P(),go(window,"resize",P())});const P=()=>{h.value&&(r.value=h.value[`client${e.vertical?"Height":"Width"}`])},I=F=>{var z,Y;if(F.stopPropagation(),!e.disable){if(P(),e.vertical){const te=(z=h.value)==null?void 0:z.getBoundingClientRect().bottom;W((te-F.clientY)/r.value*100)}else{const te=(Y=h.value)==null?void 0:Y.getBoundingClientRect().left;W((F.clientX-te)/r.value*100)}X()}},A=()=>e.range?![b.value,N.value].every((F,z)=>F===c.value[z]):e.modelValue!==c.value,D=()=>{if(e.minValue>e.maxValue){console.error("min should not be greater than max.");return}const F=e.modelValue;e.range&&Array.isArray(F)?F[1]<e.minValue?n("update:modelValue",[e.minValue,e.minValue]):F[0]>e.maxValue?n("update:modelValue",[e.maxValue,e.maxValue]):F[0]<e.minValue?n("update:modelValue",[e.minValue,F[1]]):F[1]>e.maxValue?n("update:modelValue",[F[0],e.maxValue]):(s.value=Number(F[0]),o.value=Number(F[1]),A()&&(c.value=F.slice())):!e.range&&typeof F=="number"&&!isNaN(F)&&(F<e.minValue?n("update:modelValue",e.minValue):F>e.maxValue?n("update:modelValue",e.maxValue):(s.value=F,A()&&(c.value=F)))},X=async()=>{await a.nextTick(),n("change",e.range?[b.value,N.value]:e.modelValue)},M=F=>e.vertical?{bottom:`${F}%`}:{left:`${F}%`},W=F=>{if(!e.range){f.value.setPosition(F);return}const z=e.minValue+F*(e.maxValue-e.minValue)/100;Math.abs(b.value-z)<Math.abs(N.value-z)?p.value=s.value<o.value?f.value:m.value:p.value=s.value>o.value?f.value:m.value,p.value.setPosition(F)},ne=F=>{if(F==="")return;const z=parseFloat(F);z<e.minValue?(u.value=e.minValue,s.value=e.minValue):z>e.maxValue?(u.value=e.maxValue,s.value=e.maxValue):s.value=z},B=F=>{if(F==="")return;const z=parseFloat(F.toString());z<e.minValue?(d.value=e.minValue,o.value=e.minValue):z>e.maxValue?(d.value=e.maxValue,o.value=e.maxValue):o.value=z},k=F=>{let z=0;return F==="start"?z=e.vertical?e.maxValue:e.minValue:z=e.vertical?e.minValue:e.maxValue,e.showButtonLabel&&[s.value,o.value].includes(z)?"0":"1"},{resolveClassName:re}=xe(),J=(F,z)=>{let Y=z.stepWidth??z.percent??z;if(e.labelClick){F.stopPropagation(),F.stopImmediatePropagation(),F.preventDefault();let te;if(typeof e.labelClick=="function"){const ue={percent:Y,step:z};if(te=e.labelClick(F,ue),te===!1)return}Y=typeof te=="number"?te:Y,console.log("handleStepLabelClick",Y),W(Y);return}};return{renderDom:()=>{var F,z;return a.createVNode("div",{class:[`${re("slider")}`,e.extCls]},[(F=t.start)==null?void 0:F.call(t),a.createVNode("div",{ref:h,style:x.value,class:`${re("slider-runway")}`,onClick:I},[a.createVNode("div",{style:E.value,class:[`${re("slider-bar")}`,e.vertical?"vertical":"horizontal",{disable:e.disable}]},null),e.showInterval?_.value.map((Y,te)=>te===0||te===_.value.length-1?null:a.createVNode("div",{key:te,style:M(Y),class:[`${re("slider-interval")}`,{vertical:e.vertical}],onClick:ue=>J(ue,Y)},null)):null,e.customContent?$.value.map((Y,te)=>te===0||te===$.value.length-1?null:a.createVNode("div",{key:te,style:M(Y.percent),class:[`${re("slider-interval")}`,{vertical:e.vertical}],onClick:ue=>J(ue,Y)},null)):void 0,e.showBetweenLabel||e.showIntervalLabel||e.customContent?a.createVNode("div",{class:[`${re("slider-labels")}`,e.vertical?"vertical":"horizontal"]},[function(){if(e.showBetweenLabel)return[a.createVNode("div",{style:[{opacity:k("start")}],class:"label-start"},[e.formatterLabel(e.minValue)]),a.createVNode("div",{style:[{opacity:k("end")}],class:"label-end"},[e.formatterLabel(e.maxValue)])];if(e.showIntervalLabel)return O.value.map((Y,te)=>a.createVNode("div",{key:te,style:M(Y.stepWidth),class:[`${re("slider-label")}`,e.vertical?"vertical":"horizontal"],onClick:ue=>J(ue,Y)},[Y.stepLabel]));if(e.customContent)return $.value.map((Y,te)=>a.createVNode("div",{key:te,style:M(Y.percent),class:[`${re("slider-label")}`,e.vertical?"vertical":"horizontal"],onClick:ue=>J(ue,Y)},[Y.label]))}()]):void 0,a.createVNode(Lm,{ref:f,modelValue:s.value,"onUpdate:modelValue":Y=>s.value=Y,params:L.value,onEmitChange:X,onResetSize:P},null),e.range?a.createVNode(Lm,{ref:m,modelValue:o.value,"onUpdate:modelValue":Y=>o.value=Y,params:L.value,onEmitChange:X,onResetSize:P},null):void 0]),e.showInput&&!e.vertical?a.createVNode("div",{class:`${re("slider-input")}`},[a.createVNode("div",{class:"input-item"},[a.createVNode($a,{max:e.maxValue,min:e.minValue,modelValue:u.value,type:"number",onChange:ne},null)]),T.value&&o.value?[a.createVNode("div",{class:"input-center"},[a.createTextVNode("~")]),a.createVNode("div",{class:"input-item"},[a.createVNode($a,{max:e.maxValue,min:e.minValue,modelValue:d.value,type:"number",onChange:B},null)])]:void 0]):void 0,(z=t.end)==null?void 0:z.call(t)])}}},render(){return this.renderDom()}}),D4=Qe(CK);var I4=function(e){return e.ERROR="error",e.LOADING="loading",e.UNKNOWN="",e}(I4||{});const Am={theme:v.theme().def(_u.PRIMARY),size:v.size(),curStep:v.number.def(1),controllable:v.bool.def(!1),direction:xg(),status:Pe("status",{}).def(I4.UNKNOWN),lineType:_g(),extCls:v.string,steps:v.array.def([]),beforeChange:v.func},NK=a.defineComponent({name:"Steps",props:Am,emits:["update:curStep","click"],setup(e,{emit:t}){const n=ut("steps"),r=ut("lang"),s=a.ref([]),o=f=>{const m=[];f.forEach(p=>{typeof p=="string"?m.push(p):m.push({title:p.title,icon:p.icon,description:p.description,status:p.status,border:p.border??!0})}),s.value.splice(0,s.value.length,...m)},c=f=>{Am.curStep=f},u=()=>{var f;s.value.splice(0,s.value.length,{title:n.value.step1,icon:1},{title:n.value.step2,icon:2},{title:n.value.step3,icon:3}),(f=e.steps)!=null&&f.length&&o(e.steps)};a.watch(()=>r.value,()=>{u()});const d=async f=>{try{e.controllable&&f!==e.curStep&&(typeof e.beforeChange=="function"&&await new Promise(async(m,p)=>{const y=await e.beforeChange(f);y?m(y):p(y)}),t("update:curStep",f),t("click",f))}catch(m){console.warn(m)}};a.onMounted(u),a.watch(()=>e.steps,()=>{o(e.steps)},{deep:!0}),a.watch(()=>e.curStep,()=>{c(e.curStep)},{deep:!0});const{resolveClassName:h}=xe();return{defaultSteps:s,jumpTo:d,resolveClassName:h}},render(){const e=this.resolveClassName("steps"),t=this.theme?`${e}-${this.theme}`:"",n=this.size?`${e}-${this.size}`:"",r=ze({[`${this.extCls}`]:!!this.extCls,[`${this.resolveClassName(`steps-${this.direction}`)}`]:this.direction,[`${this.resolveClassName(`steps-${this.lineType}`)}`]:this.lineType},`${t} ${e} ${n}`),s=m=>this.curStep>m+1||this.defaultSteps[m].status==="done",o=m=>this.curStep===m+1,c=m=>{const{icon:p}=m;return p?Object.prototype.toString.call(p)==="[object Object]":typeof m=="string"},u=(m,p)=>(p.icon||(p.icon=m),!isNaN(p.icon)),d=m=>m.status==="loading",h=m=>m.status==="error",f=(m,p)=>o(m)&&this.status==="loading"||d(p)?a.createVNode(qo,{class:`${this.resolveClassName("icon")} ${this.resolveClassName("steps-icon")} icon-loading`},null):o(m)&&this.status==="error"||h(p)?a.createVNode(an,{class:`${this.resolveClassName("steps-icon")}`},null):s(m)?a.createVNode(ps,{class:`${this.resolveClassName("steps-icon")}`},null):a.createVNode("span",null,[u(m,p)?m+1:a.createVNode(p.icon,null,null)]);return a.createVNode("div",{class:r},[this.defaultSteps.map((m,p)=>{var y,b;return a.createVNode("div",{class:[this.resolveClassName("step"),m.title?"":this.resolveClassName("step-no-content"),s(p)?"done":"",o(p)?"current":"",o(p)&&this.status==="error"?"is-error":"",m.status&&o(p)?[`${this.resolveClassName(`step-${m.status}`)}`]:""]},[a.createVNode("span",{style:{cursor:this.controllable?"pointer":""},class:[`${this.resolveClassName("step-indicator")}`,`${this.resolveClassName(`step-${c(m)?"icon":"number"}`)}`,`${this.resolveClassName(`step-icon${m.status}`)}`],onClick:()=>{this.jumpTo(p+1)}},[((b=(y=this.$slots)[p+1])==null?void 0:b.call(y))??f(p,m)]),m.title?a.createVNode("div",{class:`${this.resolveClassName("step-content")}`},[a.createVNode("div",{style:{cursor:this.controllable?"pointer":""},class:`${this.resolveClassName("step-title")}`,onClick:()=>{this.jumpTo(p+1)}},[m.title]),m.description&&a.createVNode("div",{class:`${this.resolveClassName("step-description")}`,title:m.description},[m.description])]):""])})])}}),k4=Qe(NK),xK=a.defineComponent({name:"Swiper",props:{isLoop:v.bool.def(!0),loopTime:v.number.def(8e3),pics:v.array.def([]),list:v.array.def([]),height:v.number,width:v.number},emits:["index-change"],setup(e,{emit:t,slots:n}){const{isLoop:r,loopTime:s,pics:o,list:c,height:u,width:d}=a.toRefs(e),h=a.ref(),f=a.ref(0),m=a.ref(0),p=a.ref(0),y=a.ref(0);let b;const{resolveClassName:N}=xe(),w=a.computed(()=>{var M;return((M=c.value)==null?void 0:M.length)>0?c.value:o.value}),C=a.computed(()=>({width:`${m.value*w.value.length}px`,transform:`translateX(-${m.value*f.value}px)`})),E=a.computed(()=>({width:`${m.value}px`,height:`${p.value}px`})),_=M=>{let W=M;M>=w.value.length&&(W=0),M<0&&(W=w.value.length-1),f.value=W,t("index-change",W)},x=M=>{M&&window.open(M,"_blank")},O=M=>[`${N("swiper-img")}`,{[`${N("swiper-link")}`]:M.link},M.class],T=M=>({"background-image":`url(${M.url})`,"background-color":M.color}),$=M=>({[`${N("current-index")}`]:f.value===M}),L=()=>{r.value&&(y.value=window.setTimeout(()=>{_(f.value+1),L()},s.value))},P=()=>{window.clearTimeout(y.value)},I=()=>{var W;const M=(W=h.value)==null?void 0:W.parentElement;!M||!window.ResizeObserver||(b=new ResizeObserver(()=>{X()}),b.observe(M))},A=()=>{var M;(M=b.disconnect)==null||M.call(b)},D=M=>{if(M===void 0)return{height:0,width:0};const W=getComputedStyle(M),ne=M.clientWidth-parseFloat(W.paddingTop)-parseFloat(W.paddingBottom);return{height:M.clientHeight-parseFloat(W.paddingLeft)-parseFloat(W.paddingRight),width:ne}},X=()=>{var W;const M=D((W=h.value)==null?void 0:W.parentElement);m.value=+d.value>0?d.value:M.width,p.value=+u.value>0?u.value:M.height};return a.watch([u,d],X),a.onMounted(()=>{X(),L(),I()}),a.onBeforeUnmount(()=>{P(),A()}),()=>a.createVNode("section",{ref:h,style:E.value,class:`${N("swiper-home")}`},[a.createVNode("hgroup",{style:C.value,class:`${N("transition")} ${N("swiper-main")}`},[w.value.map(M=>{var W;return a.createVNode("h3",{style:E.value,class:`${N("swiper-card")}`},[((W=n.default)==null?void 0:W.call(n,M))??a.createVNode("span",{style:T(M),class:O(M),onClick:()=>x(M.link)},null)])})]),a.createVNode("ul",{class:`${N("swiper-index")}`},[w.value.map((M,W)=>a.createVNode("li",{class:$(W),onMouseover:()=>_(W)},null))]),a.createVNode("span",{class:`${N("swiper-nav")} ${N("nav-prev")}`,onClick:()=>_(f.value-1)},[a.createVNode("i",{class:`${N("swiper-nav-icon")}`},null)]),a.createVNode("span",{class:`${N("swiper-nav")} ${N("nav-next")}`,onClick:()=>_(f.value+1)},[a.createVNode("i",{class:`${N("swiper-nav-icon")}`},null)])])}}),P4=Qe(xK),_K={theme:eS(),size:v.size(),disabled:v.bool,showText:v.bool,isOutline:v.bool,onText:v.string.def("ON"),offText:v.string.def("OFF"),isSquare:v.bool,extCls:v.string,beforeChange:v.func.def(void 0),trueValue:v.oneOfType([v.string,v.number,v.bool]).def(!0),falseValue:v.oneOfType([v.string,v.number,v.bool]).def(!1),value:v.oneOfType([v.string,v.number,v.bool]).def(!1),modelValue:v.oneOfType([v.string,v.number,v.bool]).def(!1),withValidate:v.bool.def(!0)};let uu=function(e){return e.CHANGE="change",e.UPDATE="update:modelValue",e}({});function SK(e){return e}function TK(e){return!!e}const EK={[uu.UPDATE]:SK,[uu.CHANGE]:TK},OK=a.defineComponent({name:"Switcher",props:_K,emits:EK,setup(e,{emit:t}){const n=ur(),{resolveClassName:r}=xe(),s=a.ref(!1),o=a.computed(()=>e.trueValue===u.value),c=a.ref(e.modelValue!==!1),u=a.computed(()=>c.value?e.modelValue:e.value),d=a.computed(()=>{const m={[e.extCls]:!!e.extCls,[`${r("switcher")}`]:!0,[`${r("switcher-outline")}`]:e.isOutline,[`${r("switcher-square")}`]:e.isSquare,"show-label":e.showText,"is-disabled":e.disabled,"is-checked":o.value,"is-unchecked":!o.value,"is-loading":s.value,[`${r("primary")}`]:e.theme==="primary"};if(e.size&&!e.showText){const p=`${r(`switcher-${e.size}`)}`;m[p]=!0}return m});a.watch(()=>e.modelValue,()=>{var m;c.value=!0,e.withValidate&&((m=n==null?void 0:n.validate)==null||m.call(n,"change"))}),a.watch(()=>e.value,()=>{c.value=!1});const h=m=>{if(m.stopPropagation(),m.preventDefault(),e.disabled||s.value)return;const p=o.value?e.falseValue:e.trueValue,y=!o.value,b=()=>{t(uu.UPDATE,p),t(uu.CHANGE,y)};let N=!0;if(typeof e.beforeChange=="function"&&(N=e.beforeChange(p),typeof N.then=="function"))return s.value=!0,N.then(()=>{b()}).finally(()=>{s.value=!1});N&&b()},f=m=>{(m.code==="Enter"||m.key==="Enter"||m.keyCode===13)&&h(m)};return()=>a.createVNode("div",{class:d.value,tabindex:"0",onClick:h,onKeydown:f},[s.value?a.createVNode(sd,{class:`${r("switcher-loading")}`},null):"",e.showText?a.createVNode("span",{class:"switcher-text"},[o.value?e.onText:e.offText]):""])}}),M4=Qe(OK);var du=(e=>(e.BORDER_CARD="border-card",e.CARD="card",e.CARD_GRID="card-grid",e.CARD_TAB="card-tab",e.UNBORDER_CARD="unborder-card",e))(du||{}),Co=(e=>(e.LEFT="left",e.RIGHT="right",e.TOP="top",e))(Co||{});const R4=Pe("position",{}).def("top");var F4=(e=>(e.INSERT="insert",e.REPLACE="replace",e))(F4||{});const H4=Pe("sortType",{}).def("replace"),LK={tabAdd:{type:Function,default:()=>({})},tabChange:{type:Function,default:e=>e},tabRemove:{type:Function,default:e=>e},tabSort:{type:Function,default:()=>({})},tabDrag:{type:Function,default:()=>({})}},AK={name:v.oneOfType([v.number,v.string]).def(""),label:v.string||v.func,tips:v.string,closable:v.bool,visible:v.bool.def(!0),disabled:v.bool,sortable:v.bool,renderDirective:mh(),panel:v.string||v.func,num:v.number.def(void 0),numDisplayType:v.string.def("default")},VK={active:v.oneOfType([v.number,v.string]).def(""),type:Pe("type",{}).def("border-card"),tabPosition:R4,closable:Boolean,addable:Boolean,sortable:Boolean,sortType:H4,labelHeight:v.number.def(50),extCls:v.string.def(""),validateActive:v.bool.def(!0),activeBarSize:v.number.def(2),activeBarColor:v.string.def("#3a84ff")},$K={active:v.oneOfType([v.number,v.string]).def(""),type:Pe("type",{}).def("border-card"),activeBarColor:v.string.def("#3a84ff"),activeBarSize:v.number.def(2),panels:{type:Array,default:()=>[]},tabPosition:R4,closable:Boolean,addable:Boolean,sortable:Boolean,sortType:H4,labelHeight:v.number.def(50),validateActive:v.bool.def(!0),...LK},Vm=a.defineComponent({name:"TabNav",directives:{bkTooltips:sa},props:$K,setup(e){const t=a.ref(null),n=a.computed(()=>{const f={width:0,height:0,bottom:0,left:0};if(!t.value)return f;if([Co.LEFT,Co.RIGHT].includes(e.tabPosition)){const{clientHeight:m,offsetTop:p}=t.value,y={width:`${e.activeBarSize}px`,height:`${m}px`,top:`${p}px`,background:e.activeBarColor};return e.tabPosition===Co.LEFT?y.right=0:y.left=0,y}if(e.type===du.UNBORDER_CARD){const{clientWidth:m,offsetLeft:p}=t.value;return{width:`${m}px`,height:`${e.activeBarSize}px`,left:`${p}px`,bottom:0,background:e.activeBarColor}}return f}),r=a.computed(()=>{if(!Array.isArray(e.panels)||!e.panels.length)return[];const f=[];let m=!1;return e.panels.filter((p,y)=>{if(!p.props)return null;const{name:b,label:N,num:w,closable:C,visible:E,disabled:_,sortable:x,tips:O,numDisplayType:T}=p.props;if(!E)return!1;e.active===b&&(m=!0);const $=L=>p.slots.label?a.h(p.slots.label):[void 0,""].includes(L)?`选项卡${y+1}`:typeof L=="string"?L:typeof L=="function"?a.h(L):L;return f.push({name:b,closable:C,visible:E,disabled:_,sortable:x,tips:O,numDisplayType:T,tabLabel:$(N),tabNum:w}),!0}),!m&&e.validateActive&&e.panels[0].props&&e.tabChange(e.panels[0].props.name),f}),s=a.ref(-1),o=a.ref(-1),c=a.ref(""),u=(f,m)=>f===m,d={handleTabAdd(f){e.tabAdd(f)},dragstart(f,m){o.value=f,c.value=e.guid,Object.assign(m.dataTransfer,{effectAllowed:"move"}),e.tabDrag(f,m)},dragenter(f){u(c.value,e.guid)&&(s.value=f)},dragend(){s.value=-1,o.value=-1,c.value=null},drop(f,m){if(!u(c.value,e.guid))return!1;e.tabSort(o.value,f,m)},handleTabChange(f){e.tabChange(f)},handleTabRemove(f,m){e.tabRemove(f,m)}},{resolveClassName:h}=xe();return{...d,activeRef:t,activeBarStyle:n,navs:r,dragenterIndex:s,dragStartIndex:o,draggingEle:c,guid:Math.random().toString(16).substr(4)+Math.random().toString(16).substr(4),resolveClassName:h}},render(){const{active:e,closable:t,addable:n,sortable:r,sortType:s,labelHeight:o,dragstart:c,dragenter:u,dragend:d,drop:h}=this,f=()=>this.navs.map((N,w)=>{if(!N)return null;const{name:C,disabled:E,tabLabel:_,tabNum:x,numDisplayType:O}=N,T=()=>{const I=[this.resolveClassName("tab-header-item")];return E&&I.push(this.resolveClassName("tab-header--disabled")),e===C&&I.push(this.resolveClassName("tab-header--active")),I.join(" ")},$=(I,A)=>!E&&(I||A),L=(I,A)=>$(I.closable,t)?a.createVNode("span",{class:this.resolveClassName("tab-header--close"),onClick:()=>this.handleTabRemove(A,I)},[a.createVNode(bn,null,null)]):"",P=()=>["bracket"].includes(O)?`(${x})`:x;return a.withDirectives(a.createVNode("div",{key:C,ref:e===C?"activeRef":"",class:T(),draggable:$(N.sortable,r),onClick:()=>!E&&this.handleTabChange(C),onDragend:I=>{I.preventDefault(),d()},onDragenter:I=>{I.preventDefault(),u(w)},onDragleave:I=>{I.preventDefault()},onDragover:I=>{I.preventDefault()},onDragstart:I=>c(w,I),onDrop:I=>{I.preventDefault(),h(w,s)}},[isNaN(x)?a.createVNode("div",null,[_]):a.createVNode("div",{class:this.resolveClassName("tab-header--has-num")},[a.createVNode("div",{class:this.resolveClassName("tab-header--has-num-left")},[_]),a.createVNode("div",{class:this.resolveClassName("tab-header--has-num-right")},[a.createVNode("div",{class:this.resolveClassName(`tab-header--has-num-${O}`)},[P()]),L==null?void 0:L(N,w)])]),isNaN(x)?L==null?void 0:L(N,w):""]),[[a.resolveDirective("bk-tooltips"),{content:N.tips||"",disabled:!N.tips}]])}),m=()=>{var w,C;const N=[];return typeof this.$slots.add=="function"?N.push((C=(w=this.$slots).add)==null?void 0:C.call(w,a.h)):n&&N.push(a.createVNode("div",{onClick:this.handleTabAdd},[a.createVNode(tl,{style:"display:flex;",width:26,height:26},null)])),N.length?a.createVNode("div",{class:this.resolveClassName("tab-header-operation")},[N.map((E,_)=>a.createVNode("div",{key:_,class:this.resolveClassName("tab-header-item")},[E]))]):null},p=()=>this.type===du.UNBORDER_CARD?a.createVNode("div",{style:this.activeBarStyle,class:this.resolveClassName("tab-header-active-bar")},null):"",y=typeof this.$slots.setting=="function"?a.createVNode("div",{class:this.resolveClassName("tab-header-setting")},[this.$slots.setting()]):null,b=m();return a.createVNode("div",{style:{lineHeight:`${o}px`},class:this.resolveClassName("tab-header")},[a.createVNode("div",{class:[this.resolveClassName("tab-header-nav"),b||y?"tab-header-auto":""]},[p(),f()]),b,y])}}),DK=a.defineComponent({name:"Tab",components:{TabNav:Vm},props:VK,emits:["add-panel","tab-change","remove-panel","sort-change","on-drag-tab","add","change","remove","update:active","sort","drag"],setup(e,{slots:t,emit:n}){const r=a.ref(!1),s=a.ref([]),o=a.getCurrentInstance(),c=(f,m=[])=>{const{children:p}=f;return(p||[]).forEach(y=>{let{type:b}=y;b=b.name||b,b==="TabPanel"&&y.component?m.push(y.component):(b===a.Fragment||b==="template")&&c(y,m)}),m},u=()=>{if(t.default){const{children:f}=o.subTree.children[1];if(!f)return;const m=f[0],p=c(m);p.length!==s.value.length&&(s.value=p)}};a.onMounted(()=>{u(),r.value=!0,a.onUpdated(()=>{u()})});const d={tabAdd(f){n("add",{e:f}),n("add-panel",{e:f})},tabChange(f){n("change",f),n("tab-change",f),n("update:active",f)},tabRemove(f,m){n("remove",f,m),n("remove-panel",f,m)},tabSort(f,m,p){const y=s.value;if(p===F4.INSERT)if(f<m)y.splice(m+1,0,s[f]),y.splice(f,1);else if(f>m)y.splice(m,0,s[f]),y.splice(f+1,1);else return!1;else{const b=y[m];y[m]=y[f],y[f]=b}s.value=[...y],n("sort",f,m,p),n("sort-change",f,m,p)},tabDrag(f,m){n("drag",f,m),n("on-drag-tab",f,m)}},{resolveClassName:h}=xe();return{...d,isMounted:r,panels:s,resolveClassName:h}},render(){var n,r;const e=()=>{const s=[this.resolveClassName("tab"),this.extCls];return this.tabPosition===Co.TOP?s.push(this.resolveClassName(`tab--${this.tabPosition}`),this.resolveClassName(`tab--${this.type}`)):(s.push(this.resolveClassName(`tab--${this.tabPosition}`)),this.type===du.CARD_TAB&&s.push(this.resolveClassName("tab--vertical-tab"))),s},t=()=>{const{panels:s,active:o,type:c,closable:u,addable:d,sortable:h,sortType:f,labelHeight:m,validateActive:p,tabPosition:y,activeBarSize:b,activeBarColor:N,tabAdd:w,tabChange:C,tabRemove:E,tabSort:_,tabDrag:x}=this,O={panels:s,active:o,type:c,closable:u,addable:d,sortable:h,sortType:f,labelHeight:m,validateActive:p,tabPosition:y,activeBarSize:b,activeBarColor:N,tabAdd:w,tabChange:C,tabRemove:E,tabSort:_,tabDrag:x};return!s||!Array.isArray(s)?null:a.createVNode(Vm,O,this.$slots)};return a.createVNode("div",{class:e()},[t(),a.createVNode("div",{class:this.resolveClassName("tab-content")},[(r=(n=this.$slots).default)==null?void 0:r.call(n)])])}}),IK=a.defineComponent({name:"TabPanel",props:AK,render(){const e=this.name===this.$parent.active,t=()=>!this.visible||this.renderDirective==="if"&&!e?null:typeof this.panel=="function"?this.panel(a.h):typeof this.$slots.default=="function"?this.$slots.default(null):typeof this.$slots.panel=="function"?this.$slots.panel(null):null,{resolveClassName:n}=xe();return a.withDirectives(a.createVNode("div",{ref:"content",class:n("tab-panel")},[t()]),[[a.vShow,e]])}}),B4=on(DK,{TabPanel:IK});var z4=(e=>(e.COL="col",e.HORIZONTAL="horizontal",e.NONE="none",e.OUTER="outer",e.ROW="row",e))(z4||{}),U4=(e=>(e.AUTO="auto",e.HIGHLIGHT="highlight",e))(U4||{});const kK=["auto","highlight"],PK=["none","row","col","outer","horizontal"],Xe={ROW_INDEX:"row_index",ROW_UID:"row_id",ROW_EXPAND:"row_expand",ROW_SELECTION:"row_selection",ROW_SELECTION_INDETERMINATE:"row_selection_indeterminate",ROW_SOURCE_DATA:"row_source_data",ROW_SKIP_CFG:"row_skip_config",ROW_SPAN:"row_span",ROW_HEIGHT:"row_height"},Ve={COL_UID:"col_$uuid",COL_SOURCE_DATA:"col_source_data",COL_MIN_WIDTH:"col_min_width",COL_SORT_ACTIVE:"col_sort_active",COL_SORT_TYPE:"col_sort_type",COL_SORT_FN:"col_sort_fn",COL_SORT_SCOPE:"col_sort_scope",COL_FILTER_FN:"col_filter_fn",COL_FILTER_VALUES:"col_filter_values",COL_FILTER_OBJ:"col_filter_obj",COL_FILTER_SCOPE:"col_filter_scope",COL_IS_DRAG:"col_is_drag",COL_SPAN:"col_span",COL_CELL_RENDER:"col_cell_render",COL_TEXT_RENDER:"col_text_render",COL_RESIZEABLE:"col_resizeable",COL_FIXED_STYLE:"col_fixed_style",COL_RECT:"col_rect",HEAD_CELL_RENDER:"head_cell_render",HEAD_TEXT_RENDER:"head_text_render",SELECTION_DISABLED:"selection_disabled",SELECTION_INDETERMINATE:"selection_indeterminate",SELECTION_VAL:"selection_val",WIDTH:"width",CALC_WIDTH:"calcWidth",RESIZE_WIDTH:"resizeWidth",LISTENERS:"listeners",IS_HIDDEN:"isHidden"},j4=8,Oa=42;var Td=(e=>(e.DEF1="def1",e.DEF2="def2",e))(Td||{});const W4={def1:"#FAFBFD",def2:"#F0F1F5"},No={large:78,medium:60,small:42},MK=e=>[{value:"small",label:e.value.setting.lineHeight.small,height:No.small},{value:"medium",label:e.value.setting.lineHeight.medium,height:No.medium},{value:"large",label:e.value.setting.lineHeight.large,height:No.large}],G4=Symbol("bkInitColumns"),RK=60;var zt=(e=>(e.ASC="asc",e.CUSTOM="custom",e.DESC="desc",e.NULL="null",e))(zt||{});const FK=["asc","desc","null","custom"],Zs=80,es={},HK={};Pe("showOverflowTooltipMode",{default:"auto"});const BK=Pe("columnType",{default:"__COL_TYPE_NONE"}),eh=Pe("columnType",{default:""});Pe("full",{default:"full"});Pe("columnSize",{default:"small"});const zK=rn(),I2=Pe("IOverflowTooltipPropType",{default:!1,type:[Boolean,Object]}),UK=Pe("ISortPropShape",{default:!1,type:[Boolean,String,Object]}),jK=Pe("IFilterPropShape",{default:!1,type:[Boolean,Object]});var K4=(e=>(e.DEBOUNCE="debounce",e.THROTTLE="throttle",e))(K4||{});const Ed=Pe("IColumnType",{default:{width:"100%",label:""},type:[Object]}),WK=Pe("ITableSettingPropType",{default:!1,type:[Boolean,Object]}),h0=Pe("LabelFunctionStringType",{}),GK=Pe("RenderFunctionStringType",{}),$m=Pe("SpanFunctionStringType",{}),KK=Pe("RowClassFunctionStringType",{}),YK=Pe("RowHeightFunctionNumberType",{});Pe("FunctionNumberType",{});const Fc=e=>Pe("StringNumberType",{}).def(e);Pe("IColumnPropType",{default:{label:void 0,minWidth:Zs},type:[Object]});var Y4=(e=>(e.independent="independent",e.interdependent="interdependent",e))(Y4||{});const XK={data:v.arrayOf(v.any).def([]),columns:v.arrayOf(Ed).def([]),activeColumn:v.oneOfType([v.number.def(-1),v.arrayOf(v.number.def(-1))]),columnPick:Pe("columnPick",{}).def("disabled"),height:Fc("auto"),stripe:v.bool.def(!1),minHeight:Fc(Oa),maxHeight:Fc("auto"),rowHeight:YK,headHeight:v.number.def(Oa),showHead:v.bool.def(!0),sortValFormat:v.arrayOf(v.any).def([""]),thead:Pe("ITheadType",{}).def({color:Td.DEF1,height:Oa,isShow:!0}),virtualEnabled:v.bool.def(!1),border:v.oneOfType([v.arrayOf(Pe("boderType",{})),v.string]).def([z4.ROW]),pagination:v.oneOfType([v.bool.def(!1),v.object.def({})]).def(!1),paginationHeight:v.number.def(RK),remotePagination:v.bool.def(!1),acrossAll:v.bool.def(!1),emptyText:v.string,emptyCellText:v.oneOfType([v.string,v.func]).def(""),isEmptyCell:v.oneOfType([v.arrayOf(rn),v.arrayOf(null),v.arrayOf(void 0),v.func]).def(["",void 0,null]),settings:WK,rowClass:v.oneOfType([v.string,v.object,v.func]).def({}),rowStyle:v.oneOfType([v.string,v.object,v.func]).def({}),cellStyle:v.oneOfType([v.string,v.object,v.func]).def({}),cellClass:v.oneOfType([v.string,v.object,v.func]).def({}),scrollLoading:v.oneOfType([v.object,v.bool]).def(void 0),reserveExpand:v.bool.def(!1),selectionKey:v.string.def(""),checked:v.array.def([]),isSelectedFn:v.func.def(void 0),rowKey:v.oneOfType([v.string,v.func]).def(Xe.ROW_INDEX),showOverflowTooltip:I2,asyncData:v.bool.def(!1),rowHover:v.oneOf(kK).def(U4.HIGHLIGHT),defaultSort:v.shape({}).def({}),isRowSelectEnable:v.oneOfType([v.func.def(()=>!0),v.bool.def(!0)]).def(!0),resizerWay:Pe("ResizerWay",{default:"debounce"}),observerResize:v.bool.def(!0),intersectionObserver:v.bool.def(!1),align:eh,headerAlign:eh,prependStyle:v.style().def({}),colSortBehavior:Pe("IColSortBehavior",{default:"independent"}),isFlex:v.bool.def(!0),rowDraggable:v.oneOfType([v.func,v.bool,v.object]).def(!1),shiftMultiChecked:v.bool.def(!1),scrollbar:v.bool.def(!0),fixedBottom:Pe("FixedBottomOption",{default:{position:"relative",height:Oa}}).def(null),appendLastRow:Pe("AppendLastRowOption",{default:{type:"default",cellRender:void 0}})},qK={label:h0,field:h0,render:GK,width:v.oneOfType([v.number,v.string]),minWidth:Fc(Zs),columnKey:v.string.def(""),showOverflowTooltip:I2,type:BK,resizable:v.bool.def(!0),fixed:v.oneOfType([v.bool,zK]).def(!1),sort:UK,filter:jK,colspan:$m.def(1),rowspan:$m.def(1),align:eh,className:KK,prop:h0,index:v.number.def(void 0)},JK=a.defineComponent({name:"TableColumn",props:qK,setup(e,{}){const t=a.inject(G4,()=>{}),n={},r=(s,o)=>{const c=a.toRaw(o);return Object.keys(c).every(d=>typeof c[d]=="function"?s[d]!==void 0:d==="children"?!0:yn.isEqual(s[d],o[d]))};a.watch(()=>[e],()=>{r(n,e)||(t(),Object.assign(n,a.toRaw(e)))},{immediate:!0,deep:!0}),a.onUnmounted(()=>{t()})},render(){var e,t;try{const r=[(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1})];return a.h("div",r)}catch{return a.h("div",[])}}});var Tt=(e=>(e.CELL_CLICK="cellClick",e.CELL_DBL_CLICK="cellDblclick",e.COLUMN_FILTER="columnFilter",e.COLUMN_FILTER_SAVE="colFilterSave",e.COLUMN_PICK="columnPick",e.COLUMN_SORT="columnSort",e.DRAG_END="dragend",e.NATIVE_CLICK="click",e.NATIVE_DBL_CLICK="dblclick",e.PAGE_LIMIT_CHANGE="pageLimitChange",e.PAGE_VALUE_CHANGE="pageValueChange",e.ROW_CLICK="rowClick",e.ROW_DBL_CLICK="rowDblclick",e.ROW_EXPAND_CLICK="rowExpand",e.ROW_MOUSE_ENTER="rowMouseEnter",e.ROW_MOUSE_LEAVE="rowMouseLeave",e.ROW_SELECT="select",e.ROW_SELECT_ALL="selectAll",e.ROW_SELECT_CHANGE="selectionChange",e.SCROLL_BOTTOM="scrollBottom",e.SETTING_CHANGE="settingChange",e))(Tt||{});const ZK=e=>!0,QK=e=>!0,eY=e=>!0,tY=e=>!0,Cc=(e,t,n,r,s)=>!0,nY=e=>!0,rY=e=>!0,aY=e=>!0,sY=e=>!0,Dm=e=>!0,iY=e=>!0,Im=e=>!0,oY=e=>!0,lY=e=>!0,cY={columnPick:ZK,columnFilter:QK,columnSort:tY,colFilterSave:eY,rowClick:Cc,rowDblclick:Cc,rowExpand:nY,select:rY,selectAll:aY,selectionChange:sY,pageLimitChange:Dm,pageValueChange:Dm,settingChange:iY,scrollBottom:oY,cellClick:Im,cellDblclick:Im,rowMouseEnter:Cc,rowMouseLeave:Cc,dragend:lY},uY=(e,{afterResize:t})=>{const{getColumnAttribute:n,getColumnOrderWidth:r,setColumnAttribute:s,setNextColumnWidth:o,getPreColumn:c}=e,u=J=>n(J,Ve.LISTENERS),d="HeadColumnResize";let h=function(J){return J.MOUSE_DOWN="onMousedown",J.MOUSE_MOVE="onMousemove",J.MOUSE_OUT="onMouseout",J}({}),f=!1,m=!1,p=!1,y=0,b=null,N="right",w=null,C=null,E=0;const _=new WeakMap,x=a.ref(-1e3),O=[Ve.WIDTH],T=J=>{J.stopImmediatePropagation(),J.stopPropagation(),J.preventDefault()},$=J=>{T(J),m=!1,p=!1;const K=r(b,O)+E,F=r(b,[Ve.COL_MIN_WIDTH]),z=K>F?K:F;o(b,z),s(b,Ve.WIDTH,z),document.removeEventListener("mouseup",$),x.value=-1e3,E=0,A(w),t==null||t(),w=null;const Y=J.target;W(Y),b=null},L=yn.throttle(J=>{x.value=x.value+J}),P=J=>{T(J),document.body.style.setProperty("user-select","none");const K=J.clientX-y;E=E+K,y=J.clientX;const F=r(b,O)+K;r(b,[Ve.COL_MIN_WIDTH])<F&&L(K)},I=yn.debounce(J=>{document.body.style.setProperty("user-select","none"),J==null||J.classList.add("col-resize-hover")}),A=J=>{I.cancel(),document.body.style.removeProperty("user-select"),J==null||J.classList.remove("col-resize-hover")},D=J=>{if(!f)return;X(J.target),y=J.clientX;const K=N==="left"?c(C):C;s(K,Ve.COL_IS_DRAG,!0),b=K,w=J.target.closest("table");const F=w.getBoundingClientRect();x.value=J.clientX-F.left,I(w),m=!0,document.addEventListener("mouseup",$)},X=J=>{var F,z;((z=(F=J==null?void 0:J.parentElement)==null?void 0:F.parentElement)==null?void 0:z.querySelectorAll(".col-pointer-hover")).forEach(Y=>{Y==null||Y.classList.remove("col-pointer-hover"),Y==null||Y.classList.remove("poiner-left"),Y==null||Y.classList.remove("poiner-right")})},M=(J,K)=>{const F=J.parentElement;F==null||F.classList.add("col-pointer-hover"),F==null||F.classList.add(`poiner-${K}`);const z=K==="right"?F.nextElementSibling:F.previousElementSibling,Y=K==="right"?"left":"right";z==null||z.classList.add("col-pointer-hover"),z==null||z.classList.add(`poiner-${Y}`)},W=J=>{p||(x.value=-1e3,J.classList.remove("cell-resize"),X(J),_.set(J,!1),document.removeEventListener("mousedown",D))},ne={[h.MOUSE_MOVE]:(J,K,F)=>{if(T(J),m){p=!0,P(J);return}const z=J.target;if(!p){if(!z)return;const{offsetWidth:Y}=z,te=J.offsetX;Y>12&&(Y-te<8||te<8&&F>0)?(f=!0,N=te<8?"left":"right",_.get(z)||(_.set(z,!0),z.classList.add("cell-resize"),M(z,N),C=K,document.addEventListener("mousedown",D))):(f=!1,W(z))}},[h.MOUSE_OUT]:(J,K,F)=>{const z=J.target;W(z)}},B=J=>`${d}_${J}`,k=()=>{e.tableColumnList.forEach(J=>{if(e.getColumnAttribute(J,Ve.COL_RESIZEABLE)){const K=u(J);Object.keys(ne).forEach(F=>{const z=B(F);K!=null&&K.has(z)||K.set(z,[]),K.get(z).push(ne[F])})}})},re=()=>{e.tableColumnList.forEach(J=>{const K=u(J);Object.keys(ne).forEach(F=>{const z=B(F);if(K!=null&&K.has(z)){const Y=K.get(z);Y.length=0}})})};return a.watch(()=>[e.tableColumnList],()=>{re(),k()},{immediate:!0,deep:!0}),{dragOffsetX:x}},dY=()=>{const e=[];let t=0;const n=new WeakMap,r=h=>a.isRef(h)?a.unref(h):a.toRaw(h),s=h=>Object.keys(h??{}).reduce((f,m)=>{const p=m.replace(/-(\w)/g,(y,b)=>b.toUpperCase());return Object.assign(f,{[p]:r(h[m])})},{}),o=h=>(n.has(h)||n.set(h,or()),n.get(h)),c=(h,f,m)=>{var p,y;if((p=h==null?void 0:h.component)!=null&&p.subTree){u((y=h==null?void 0:h.component)==null?void 0:y.subTree,f);return}if(typeof h=="function")return h();if(Array.isArray(h)){h.forEach(b=>u(b,f));return}if(Array.isArray(h==null?void 0:h.children)){h.children.forEach(b=>u(b,f));return}if(!m&&a.isVNode(h)&&(h!=null&&h.children)&&typeof(h==null?void 0:h.children)=="object"){Object.keys(h.children).forEach(b=>u(h.children[b],f));return}},u=(h,f)=>{var p,y,b;let m=f;if(!(!h||((p=h.type)==null?void 0:p.name)==="Table")){if(((y=h.type)==null?void 0:y.name)==="TableColumn"){const N=Object.assign({index:t},s(h.props),{field:h.props.prop||h.props.field,render:h.props.render??((b=h.children)==null?void 0:b.default),uniqueId:o(h),children:[]}),w=(f==null?void 0:f.children)??e;w.some(C=>C.uniqueId===N.uniqueId)||(w.push(N),t=t+1,h.children&&c(h,N,!0));return}c(h,m)}};return{resolveColumns:h=>{var m,p,y,b;e.length=0,t=0;const f=h==null?void 0:h.find(N=>{var w;return((w=N.type)==null?void 0:w.name)==="GhostBody"});return f&&((m=f.component)!=null&&m.subTree?u((p=f.component)==null?void 0:p.subTree):(((b=(y=f.children)==null?void 0:y.default)==null?void 0:b.call(y))??[]).forEach(N=>u(N))),e.sort((N,w)=>N.index-w.index),e}}};var X4=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(s,o){return s[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),s=this.__entries__[r];return s&&s[1]},t.prototype.set=function(n,r){var s=e(this.__entries__,n);~s?this.__entries__[s][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,s=e(r,n);~s&&r.splice(s,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var s=0,o=this.__entries__;s<o.length;s++){var c=o[s];n.call(r,c[1],c[0])}},t}()}(),th=typeof window<"u"&&typeof document<"u"&&window.document===document,fu=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),fY=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(fu):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),hY=2;function mY(e,t){var n=!1,r=!1,s=0;function o(){n&&(n=!1,e()),r&&u()}function c(){fY(o)}function u(){var d=Date.now();if(n){if(d-s<hY)return;r=!0}else n=!0,r=!1,setTimeout(c,t);s=d}return u}var gY=20,pY=["top","right","bottom","left","width","height","size","weight"],vY=typeof MutationObserver<"u",yY=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=mY(this.refresh.bind(this),gY)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!th||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vY?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!th||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,s=pY.some(function(o){return!!~r.indexOf(o)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),q4=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var s=r[n];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},wi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||fu},J4=Od(0,0,0,0);function hu(e){return parseFloat(e)||0}function km(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,s){var o=e["border-"+s+"-width"];return r+hu(o)},0)}function bY(e){for(var t=["top","right","bottom","left"],n={},r=0,s=t;r<s.length;r++){var o=s[r],c=e["padding-"+o];n[o]=hu(c)}return n}function wY(e){var t=e.getBBox();return Od(0,0,t.width,t.height)}function CY(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return J4;var r=wi(e).getComputedStyle(e),s=bY(r),o=s.left+s.right,c=s.top+s.bottom,u=hu(r.width),d=hu(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=km(r,"left","right")+o),Math.round(d+c)!==n&&(d-=km(r,"top","bottom")+c)),!xY(e)){var h=Math.round(u+o)-t,f=Math.round(d+c)-n;Math.abs(h)!==1&&(u-=h),Math.abs(f)!==1&&(d-=f)}return Od(s.left,s.top,u,d)}var NY=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof wi(e).SVGGraphicsElement}:function(e){return e instanceof wi(e).SVGElement&&typeof e.getBBox=="function"}}();function xY(e){return e===wi(e).document.documentElement}function _Y(e){return th?NY(e)?wY(e):CY(e):J4}function SY(e){var t=e.x,n=e.y,r=e.width,s=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(o.prototype);return q4(c,{x:t,y:n,width:r,height:s,top:n,right:t+r,bottom:s+n,left:t}),c}function Od(e,t,n,r){return{x:e,y:t,width:n,height:r}}var TY=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Od(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=_Y(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),EY=function(){function e(t,n){var r=SY(n);q4(this,{target:t,contentRect:r})}return e}(),OY=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new X4,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof wi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new TY(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof wi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new EY(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Z4=typeof WeakMap<"u"?new WeakMap:new X4,Q4=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=yY.getInstance(),r=new OY(t,n,this);Z4.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Q4.prototype[e]=function(){var t;return(t=Z4.get(this))[e].apply(t,arguments)}});var LY=function(){return typeof fu.ResizeObserver<"u"?fu.ResizeObserver:Q4}();const Jt=(e,t,n)=>{if(e!=null){if(typeof t=="string")return Object.prototype.hasOwnProperty.call(e,t)?typeof e[t]=="function"?e[t].call(void 0,...n):e[t]:void 0;if(Array.isArray(t))return t.map(r=>Jt(e,r,n)).filter(r=>r!==void 0).at(0)}},AY=e=>ls(e,"auto"),ls=(e,t="100%",n=null)=>{let r="";return/^null|undefined$/gi.test(`${e}`)?r=t:r=/^\d+\.?\d+$/.test(`${e}`)?`${e}px`:e,n&&(r=`calc(${r} - ${n})`),r},VY=e=>{const t=["row"];return typeof e=="string"&&t.push(e),Array.isArray(e)&&t.push(...e.filter(n=>PK.includes(n))),[...new Set(t)].map(n=>`bordered-${n}`).join(" ")},e5=(e,t,n=60,r=!1,s="throttle")=>{const o=()=>{typeof t=="function"&&t()},c=s==="debounce"?Cu(o,n):Tg(o),u=()=>Reflect.apply(c,void 0,[]),d=new LY(()=>{u()});return r&&typeof t=="function"&&t(),{start:()=>{d.observe(e)},disconnect:()=>{d.unobserve(e),d.disconnect()}}},k2=e=>{const{showHead:t,headHeight:n,thead:r={}}=e;return Object.assign({},{isShow:t,height:n},r)},$Y=(e,t="ig")=>new RegExp(`${e}`.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),t),mu=(e,t,n)=>{let r;return(typeof e=="string"||typeof e=="number"||typeof e=="boolean")&&(r=e),typeof e=="object"&&(r=Sd(e,t)),n!=null&&n.length&&(n.forEach(s=>{if(typeof s=="function")r=s(r,e,t);else if(typeof r=="string"){const o=r.match(typeof s=="string"?$Y(s):s);r=(o==null?void 0:o[1])??r}}),/^-?\d+.?\d*$/.test(r)&&(r=Number(r))),r},DY=(e,t)=>Sd(e,t),Ys=(e,t)=>Array.isArray(e)?e:typeof e=="string"||typeof e=="object"?[e]:typeof e=="function"?Ys(Reflect.apply(e,void 0,t),t):[],IY=(e,t,n)=>{const r=kY(e,t,n);return r!==null?r:or()},kY=(e,t,n)=>typeof t.rowKey=="string"?t.rowKey===Xe.ROW_INDEX?`__ROW_INDEX_${n}`:t.rowKey:typeof t.rowKey=="function"?Reflect.apply(t.rowKey,void 0,[e]):null,Pm=(e,t,n)=>{const r=o=>o.field??o.id;return(o=>e.some(c=>r(c)===Jt(o,["field","type"],[o])))(t)&&n.length&&!n.includes(Jt(t,["field","type"],[t]))},gu=(e,t,n,r,s)=>typeof e[s]=="function"?Reflect.apply(e[s],void 0,[{column:e,colIndex:t,row:n,rowIndex:r}]):typeof e[s]=="number"?e[s]:1,PY=(e,t,n,r)=>{const s=gu(e,t,n,r,"colspan"),o=gu(e,t,n,r,"rowspan");return{colspan:s,rowspan:o}},t5=(e,t,n=[])=>{var h,f;const r=e.field,s=m=>mu(m,r,n),o=e.type==="index",c=(m,p,y,b)=>{const N=o?y:s(m)??"",w=o?b:s(p)??"";return typeof N=="number"&&typeof w=="number"?N-w:String.prototype.localeCompare.call(N,w)},u=typeof((h=e.sort)==null?void 0:h.sortFn)=="function"?(f=e.sort)==null?void 0:f.sortFn:c,d=(m,p,y,b)=>u(m,p,y,b)*(t===zt.DESC?-1:1);return t===zt.NULL?(m,p)=>!0:d},MY=e=>{const t={[zt.NULL]:3,[zt.ASC]:1,[zt.DESC]:2};return t[e]===void 0?zt.ASC:Object.keys(t)[(t[e]+1)%3]},RY=(e,t,n=[])=>typeof e=="string"?{value:e}:typeof e=="boolean"&&e?{value:zt.NULL}:typeof e=="object"&&e!==null?typeof e.sortFn=="function"?{value:"custom",...e}:Object.assign({},{sortFn:t5(t,e.value??zt.NULL,n)},e):null,pu=(e,{row:t,index:n,isCheckAll:r})=>typeof e.isRowSelectEnable=="boolean"?e.isRowSelectEnable!==!1:typeof e.isRowSelectEnable=="function"?e.isRowSelectEnable({row:t,index:n,isCheckAll:r}):!0,FY=(e,t,n)=>{const r=IY(e,n,t);return r!==void 0&&e[r]!==void 0?Sd(e,r):t},HY=(e,t)=>{const{value:n,sortFn:r,sortScope:s}=RY(e.sort??t.defaultSort,e)??{};return{type:n,fn:r,scope:s,active:!!e.sort,enabled:!!e.sort}},BY=e=>typeof e.filter=="object"?{...e.filter,enabled:!0}:{enabled:!!e.filter,checked:[]},Nc=e=>a.isProxy(e)?a.toRaw(e):e,zY=e=>{const t=ut("table"),n=a.reactive(new WeakMap),r=a.reactive([]),s=or(),o=a.reactive([]),c=a.reactive([]),u=a.reactive([]),d=new WeakMap,h=(U,ee={})=>{o.forEach(j=>j.active=!1);const Ce=o.find(j=>j.col===U);if(Ce){Object.assign(Ce,ee,{active:!0});return}o.push({col:U,...ee,active:!0})},f=(U,ee,Ce)=>{let j=0;return/^\d+\.?\d*(px)?$/.test(`${U[ee]}`)&&(j=Number(`${U[ee]}`.replace(/px/,"")),ce(U,Ve.WIDTH,j),W(U,{width:j,left:null,right:null})),/^\d+\.?\d*%$/.test(`${U[ee]}`)&&(j=Number(`${U[ee]}`.replace(/%/,""))/100*Ce,ce(U,Ve.WIDTH,j),W(U,{width:j,left:null,right:null})),j},m=U=>{let ee=U,Ce=Zs;const j=(Ae,Ie="width")=>{const ke=[];return Ae.forEach(Ue=>{const tt=f(Ue,Ie,U);ee=ee-tt,[void 0,null,"auto","undefined","null",""].includes(Ue[Ie])&&ke.push(Ue)}),ee>0&&ke.length&&(Ce=ee/ke.length),ke},ie=j(y);j(ie,"minWidth").forEach(Ae=>{const Ie=Ce>Zs?Ce:Zs;ce(Ae,Ve.WIDTH,Ie),W(Ae,{width:Ie,left:null,right:null})})},p=(U,ee={})=>{const Ce=c.find(j=>j.col===U);if(Ce){Object.assign(Ce,ee);return}c.push({col:U,...ee})},y=a.reactive([]),b=()=>{y.length=0,y.push(...r.filter(U=>!z(U)))},N=()=>{var U,ee;return e.rowDraggable?{minWidth:50,width:((U=e.rowDraggable)==null?void 0:U.width)??60,label:((ee=e.rowDraggable)==null?void 0:ee.label)??t.value.sort,type:"drag"}:null},w=(U=["rowspan","colspan"])=>r.some(ee=>U.some(Ce=>typeof ee[Ce]=="function"||/^\d$/.test(`${ee[Ce]}`))),C=a.computed(()=>w(["colspan"])),E=a.computed(()=>w(["rowspan"])),_=(U,ee,Ce)=>{let j=Ce;const ie=gu(U,ee,null,null,"colspan"),ve={skipCol:!1,skipColLen:0};return j>0&&(ve.skipColLen=j,ve.skipCol=!0,j=j-1),ie>1&&(ve.skipColLen=ie,j=ie-1),{...ve,skipColumnNum:j}},x=U=>{if(/^\d+/.test(`${U.minWidth}`))return U.minWidth;let ee=Zs;return U.sort&&(ee=ee+18),U.filter&&(ee=ee+28),ee},O=(U,ee)=>{const Ce=Z(U,Ve.LISTENERS);return Ce?Array.from(Ce==null?void 0:Ce.keys()).reduce((j,ie)=>{const ve=ie.split("_").slice(-1)[0];return Object.assign(j,{[ve]:Ae=>{Ce.get(ie).forEach(Ie=>Reflect.apply(Ie,void 0,[Ae,U,ee]))}})},{}):{}},T=U=>{if(!U.filter)return null;const ee=(ie,ve="ig")=>new RegExp(`${ie}`.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ve),Ce=(ie,ve)=>{const{match:Ae}=U.filter,Ie=mu(ve,Jt(U,"field",[U,ve]));return Ae!=="fuzzy"?ie.includes(Ie):ie.some(ke=>ee(ke,"img").test(Ie))};return typeof U.filter.filterFn=="function"?(ie,ve,Ae,Ie)=>U.filter.filterFn(ie,ve,U,Ae,Ie):(ie,ve)=>ie.length?Ce(ie,ve):!0},$=U=>{u.length=0;let ee=0;const Ce=[],j=N();j&&U.unshift(j);const ie=(ke,Ue=1)=>{ke.length&&ee<Ue&&(ee=Ue),ke.forEach(tt=>ie(tt.children??[],Ue+1))};ie(U);const ve=(ke,Ue)=>{if(ke){const tt=d.get(ke);tt.thColspan=tt.thColspan+Ue,tt.offsetLeft=tt.offsetLeft+Ue,ve(tt.parent,Ue)}},Ae=(ke,Ue,tt,at)=>{var ys,oa,Ma,bs,ws;const qe=a.toRaw(ke);let At=at;u[Ue]===void 0&&(u[Ue]=[]);const gt=!!(((ys=qe.children)==null?void 0:ys.length)??!1);(((oa=qe.children)==null?void 0:oa.length)??!1)||Ce.push(qe),d.has(qe)||d.set(qe,{thColspan:1,thRowspan:1,isGroup:gt,offsetLeft:at});const Et=d.get(qe),Ke=((Ma=qe.children)==null?void 0:Ma.length)??0,Mt=((bs=qe.children)==null?void 0:bs.length)??1,Pa=Ke>0?1:ee-Ue,Di=At+(Ke>0?Ke-1:0);return Object.assign(Et,{thColspan:Mt>0?Mt:1,parent:tt,thRowspan:Pa,offsetLeft:Di}),u[Ue].push(qe),Mt>1&&ve(tt,Mt-1),(ws=qe.children)==null||ws.forEach((Ii,ki)=>{At=At+Ae(Ii,Ue+1,qe,At+ki)}),Ke>0?Ke-1:0};let Ie=0;return U.forEach((ke,Ue)=>{Ie=Ie+Ae(ke,0,null,Ie+Ue)}),Ce},L=U=>d.get(U),P=()=>{o.length=0;let U=0;(r||[]).forEach((ee,Ce)=>{const{skipCol:j,skipColumnNum:ie,skipColLen:ve}=C.value?_(ee,Ce,U):{skipCol:!1,skipColumnNum:0,skipColLen:0};if(U=ie,!n.has(ee)){const{type:Ae,fn:Ie,scope:ke,active:Ue,enabled:tt}=HY(ee,e),at=T(ee),qe=e.settings??{},At=BY(ee);At.enabled&&p(ee,{[Ve.COL_FILTER_FN]:at,[Ve.COL_FILTER_VALUES]:At.checked??[]}),tt&&h(ee,{[Ve.COL_SORT_TYPE]:Ae,[Ve.COL_SORT_FN]:Ie,[Ve.COL_SORT_SCOPE]:ke}),n.set(ee,{[Ve.CALC_WIDTH]:void 0,[Ve.RESIZE_WIDTH]:void 0,[Ve.COL_RECT]:a.reactive({width:null,left:null,right:null,height:null}),[Ve.COL_MIN_WIDTH]:x(ee),[Ve.LISTENERS]:new Map,[Ve.WIDTH]:ee.width,[Ve.IS_HIDDEN]:Pm(qe.fields??[],ee,qe.checked??[]),[Ve.COL_SORT_TYPE]:a.ref(Ae),[Ve.COL_SORT_FN]:Ie,[Ve.COL_FILTER_OBJ]:At,[Ve.COL_FILTER_FN]:at,[Ve.COL_FILTER_SCOPE]:void 0,[Ve.COL_SORT_SCOPE]:ke,[Ve.COL_SORT_ACTIVE]:a.ref(Ue),[Ve.COL_IS_DRAG]:!1,[Ve.COL_SPAN]:{skipCol:j,skipColumnNum:ie,skipColLen:ve},[Ve.COL_UID]:or(),[Ve.SELECTION_DISABLED]:!1,[Ve.SELECTION_INDETERMINATE]:!1,[Ve.SELECTION_VAL]:!1,[Ve.COL_RESIZEABLE]:ee.resizable!==!1,[Ve.COL_FIXED_STYLE]:a.reactive({})})}Object.assign(n.get(ee),{[Ve.COL_SPAN]:{skipCol:j,skipColumnNum:ie,skipColLen:ve},[Ve.COL_MIN_WIDTH]:x(ee)})})},I=(U,ee)=>{ce(U,Ve.COL_FIXED_STYLE,ee)},A=U=>Z(U,Ve.COL_FIXED_STYLE)??{},D=U=>Z(U,Ve.COL_RECT),X=U=>Z(U,Ve.CALC_WIDTH),M=U=>Z(U,Ve.WIDTH),W=(U,{left:ee,right:Ce,width:j,height:ie})=>{const ve=D(U),Ae={left:ee??ve.left,right:Ce??ve.right,width:j??ve.width,height:ie??ve.height};ce(U,Ve.COL_RECT,Ae)},ne=yn.debounce((U,ee)=>{r.length=0,r.push(...$(U)),P(),b(),ee==null||ee()}),B=(U,ee=!1)=>{ce(U,Ve.IS_HIDDEN,ee)},k=(U,ee)=>{ce(U,Ve.RESIZE_WIDTH,ee)},re=(U,ee)=>{const{type:Ce,fn:j,scope:ie,active:ve}=ee,Ae={[Ve.COL_SORT_TYPE]:Ce,[Ve.COL_SORT_FN]:j,[Ve.COL_SORT_ACTIVE]:ve,[Ve.COL_SORT_SCOPE]:ie};[Ve.COL_SORT_TYPE,Ve.COL_SORT_FN,Ve.COL_SORT_ACTIVE,Ve.COL_SORT_SCOPE].forEach(Ie=>{Ae[Ie]!==void 0&&ce(U,Ie,Ae[Ie])})},J=(U,ee)=>{n.has(U)&&Object.assign(n.get(U)[Ve.COL_FILTER_OBJ],ee)},K=[Ve.WIDTH],F=(U,ee=K)=>Z(U,ee[0])??Z(U,ee[1])??Z(U,ee[2]),z=U=>Z(U,Ve.IS_HIDDEN)??!1,Y=U=>Z(U,Ve.COL_UID),te=(U,ee,Ce)=>{[Ve.COL_SORT_FN,Ve.COL_SORT_SCOPE,Ve.COL_SORT_TYPE].includes(ee)&&h(U,{[ee]:Ce}),[Ve.COL_FILTER_FN,Ve.COL_FILTER_VALUES].includes(ee)&&p(U,{[ee]:Ce})},ue=(U,ee)=>{const Ce=y.findIndex(ve=>ve===U),j=F(U)-ee,ie=y[Ce+1];ie&&ce(ie,Ve.WIDTH,F(ie)+j)},ce=(U,ee,Ce)=>{te(U,ee,Ce);const j=n.get(U);if(j&&Object.prototype.hasOwnProperty.call(j,ee)){if(a.isRef(j[ee])){j[ee].value=Ce;return}j[ee]=Ce}},be=(U,ee)=>{const Ce=ee||U.checked||[],j=U.fields||[];r.forEach(ie=>{ce(ie,Ve.IS_HIDDEN,Pm(j,ie,Ce))})},Z=(U,ee)=>{var j;const Ce=(j=n.get(U))==null?void 0:j[ee];return a.isRef(Ce)?Ce.value:Ce},me=(U,ee)=>{var Ce;return(Ce=n.get(U))==null?void 0:Ce[ee]},ae=(U,ee)=>({[`${s}-column-${ee}`]:!1,column_fixed:!!U.fixed,column_fixed_left:!!U.fixed,column_fixed_right:U.fixed==="right"});return{needColSpan:C,needRowSpan:E,tableColumnSchema:n,tableColumnList:r,visibleColumns:y,debounceUpdateColumns:ne,sortColumns:o,filterColumns:c,columnGroup:u,columnGroupMap:d,clearColumnSort:()=>{r.forEach(U=>{ce(U,Ve.COL_SORT_ACTIVE,!1),ce(U,Ve.COL_FILTER_FN,void 0)})},clearSelectionAll:()=>{const U=y.find(ee=>ee.type==="selection");U&&(ce(U,Ve.SELECTION_VAL,!1),ce(U,Ve.SELECTION_INDETERMINATE,!1))},formatColumns:P,flatColumnTemplate:$,isHiddenColumn:z,getColumnId:Y,getColumnOrderWidth:F,getColumnAttribute:Z,getHeadColumnClass:(U,ee)=>({...ae(U,ee)}),getColumnClass:ae,getFixedStlye:A,getColumnRect:D,getColumnCustomClass:(U,ee)=>{const Ce=U.className;if(Ce){if(typeof Ce=="function")return Ce(ee);if(typeof Ce=="string")return Ce}return""},getColumnRefAttribute:me,getColumnCalcWidth:X,getColumnWidth:M,getLeftColumnsWidth:(U,ee=!1)=>{let Ce=!0,j=0,ie=0;for(;Ce&&ie<y.length;){if(U===y[ie]){ee&&(j=j+M(y[ie])),Ce=!1;break}j=j+M(y[ie]),ie=ie+1}return j},getGroupAttribute:L,getPreColumn:U=>{const Ce=y.findIndex(j=>j===U)-1;return y[Ce]},getColumnIndex:U=>y.findIndex(ee=>ee===U),resolveEventListener:O,setColumnIsHidden:B,setColumnResizeWidth:k,setColumnSortOption:re,setColumnFilterOption:J,setColumnAttributeBySettings:be,setColumnAttribute:ce,setColumnSortActive:(U,ee)=>{e.colSortBehavior===Y4.independent&&r.forEach(Ce=>{ce(Ce,Ve.COL_SORT_ACTIVE,!1)}),ce(U,Ve.COL_SORT_ACTIVE,ee)},setFixedStyle:I,setColumnRect:W,setVisibleColumns:b,setNextColumnWidth:ue,resolveColsCalcWidth:m}},UY=(e,t,n)=>{if(!e.rowDraggable)return{};const r=document.createElement("div");r.style.setProperty("height","20px"),r.style.setProperty("width","100%"),r.style.setProperty("background","#E2EDFF"),r.style.setProperty("cursor","move"),["dragenter","dragover"].forEach(w=>{r.addEventListener(w,C=>{C.preventDefault(),C.stopPropagation(),C.dataTransfer.dropEffect="move"})});let s=null,o="";const c=(w,C)=>{if(C==="--top"){w.parentNode.insertBefore(r,w);return}if(w.nextElementSibling===null){w.parentNode.append(r);return}w.parentNode.insertBefore(r,w.nextElementSibling)},u=w=>{e.rowDraggable&&(w==null||w())},d=w=>w.target.closest("tr"),h=(w,C)=>{const{y:E}=C,{top:_,bottom:x}=w.getBoundingClientRect(),O=E-_>x-E?"--bottom":"--top";f(w),w.classList.add(O),c(w,O)},f=(w,C=["--bottom","--top"])=>{C.forEach(E=>w.classList.remove(E))};return{onDragenter:w=>{const C=d(w);w.preventDefault(),w.stopPropagation(),u(()=>{w.dataTransfer.dropEffect="move",C.classList.add("--drag-enter"),h(C,w),s=C})},onDragleave:w=>{u(()=>{const C=d(w);o=C.classList.contains("--bottom")?"--bottom":"--top",f(C,["--drag-enter","--bottom","--top"])})},onDragstart:w=>{u(()=>{const C=d(w);r.style.setProperty("height",`${C.offsetHeight}px`),r.style.setProperty("width",`${C.offsetWidth}px`),C.classList.add("--drag-start"),w.dataTransfer.setDragImage(C,0,0),w.dataTransfer.setData("text/plain",null),w.dataTransfer.dropEffect="move";const{rowIndex:E}=w.target.dataset;w.dataTransfer.setData("data-row-index",E)})},onDragover:w=>{w.preventDefault(),w.stopPropagation(),w.dataTransfer.dropEffect="move";const C=d(w);h(C,w)},onDragend:w=>{var O;if(w.preventDefault(),w.stopPropagation(),r.remove(),!s)return;const C=s,{rowIndex:E}=C.dataset;let _=Number(E);const x=(O=w.target.dataset)==null?void 0:O.rowIndex;o==="--bottom"&&(_=_+1),t.changePageRowIndex(Number(x),_),s=null,o="",n.emit(Tt.DRAG_END,{sourceEvent:w,data:t.pageRowList})}}},jY=(e,t)=>{const n=a.computed(()=>t.visibleColumns.filter(f=>!!f.fixed&&f.fixed!=="right")),r=a.computed(()=>t.visibleColumns.filter(f=>!!f.fixed&&f.fixed==="right")),s=a.reactive({left:0,width:"0"}),o=a.reactive({right:0,width:"0"}),c=()=>{let f=0;const{length:m}=r.value;for(let y=m-1;y>=0;y--){const b=r.value[y],N=t.getColumnWidth(b);t.setColumnRect(b,{right:f,width:N}),t.setFixedStyle(b,{right:`${f}px`}),f=f+N}let p=0;n.value.forEach(y=>{const b=t.getColumnWidth(y);t.setColumnRect(y,{left:p,width:b}),t.setFixedStyle(y,{left:`${p}px`}),p=p+b}),s.width=`${p}px`,o.width=`${f}px`},u=()=>n.value.length>0?a.createVNode("div",{style:s,class:"column_fixed column_fixed_left"},null):null,d=()=>{if(r.value.length>0)return a.createVNode("div",{style:o,class:"column_fixed column_fixed_right"},null)};return{renderFixedRows:()=>[u(),d()],resolveFixedColumnStyle:c}},WY=a.defineComponent({name:"GhostBody",setup(e,t){const n={zIndex:-1,width:0,height:0,display:"none"};return()=>{var r,s;return a.createVNode("div",{style:n},[(s=(r=t.slots).default)==null?void 0:s.call(r)])}}}),GY=(e,t)=>{const n=a.toRef(e,"scrollLoading"),r=()=>{var c;return typeof n.value=="boolean"?{loading:!!n.value||(((c=e.fixedBottom)==null?void 0:c.loading)??!1),inline:!0,title:"",size:os.Normal,mode:r2.Default,indicator:null}:n.value},s=a.computed(()=>{var c;return n.value!==null&&(typeof n.value=="boolean"&&n.value||typeof n.value=="object")||(((c=e.fixedBottom)==null?void 0:c.loading)??!1)});return{renderScrollLoading:()=>{var c,u,d,h;if(s.value){const{loading:f,size:m,mode:p,title:y,inline:b,indicator:N}=r();return((u=(c=t.slots).fixedBottom)==null?void 0:u.call(c))??a.createVNode(La,{loading:f,size:m,mode:p,title:y,inline:b,indicator:N},null)}return((h=(d=t.slots).fixedBottom)==null?void 0:h.call(d))??null}}},KY=(e,t)=>{const n=a.ref(null),r=a.ref(null),s=a.ref(null),o=a.ref(null),c=a.ref(0),u=a.ref(0),d=a.ref(0),h=a.ref(-1e4),f=a.ref(0),m=a.reactive({}),p=a.reactive([]),y=a.ref(Oa),b=a.ref(1),N=a.computed(()=>{var j,ie,ve;return(j=t.slots)!=null&&j.fixedBottom&&((ie=e.fixedBottom)==null?void 0:ie.position)==="relative"?((ve=e.fixedBottom)==null?void 0:ve.height)??Oa:0}),{resolveClassName:w}=xe(),{renderScrollLoading:C}=GY(e,t),E=a.computed(()=>ze({[w("table")]:!0},VY(e.border))),_=a.computed(()=>({height:ls(e.height),maxHeight:ls(e.maxHeight),minHeight:ls(e.minHeight)})),x=a.computed(()=>ze({[w("table-head")]:!0,"has-settings":!!e.settings,"has-group":b.value>1})),O=()=>{var ve,Ae,Ie,ke;const j=f.value>0?"0 0 10px rgb(0 0 0 / 12%)":null,ie=c.value>0?"0 0 10px rgb(0 0 0 / 12%)":null;(Ae=(ve=n.value)==null?void 0:ve.style)==null||Ae.setProperty("--shadow-right",j),(ke=(Ie=n.value)==null?void 0:Ie.style)==null||ke.setProperty("--shadow-left",ie)},T=Tg(()=>{var j,ie,ve,Ae,Ie,ke,Ue,tt,at,qe;(ie=(j=n.value)==null?void 0:j.style)==null||ie.setProperty("--drag-offset-x",`${h.value+c.value}px`),(Ae=(ve=n.value)==null?void 0:ve.style)==null||Ae.setProperty("--drag-offset-h-x",`${h.value-2}px`),(ke=(Ie=n.value)==null?void 0:Ie.style)==null||ke.setProperty("--translate-y",`${u.value}px`),(tt=(Ue=n.value)==null?void 0:Ue.style)==null||tt.setProperty("--translate-x",`${c.value}px`),(qe=(at=n.value)==null?void 0:at.style)==null||qe.setProperty("--translate-x-1",`-${c.value}px`),O()}),$=j=>{c.value=j,T()},L=j=>{b.value=j},P=j=>{u.value=j,T()},I=()=>{var j,ie,ve,Ae,Ie,ke,Ue,tt,at,qe;(ie=(j=n.value)==null?void 0:j.style)==null||ie.setProperty("--drag-offset-x","-1000px"),(Ae=(ve=n.value)==null?void 0:ve.style)==null||Ae.setProperty("--drag-offset-h-x","-1000px"),(ke=(Ie=n.value)==null?void 0:Ie.style)==null||ke.setProperty("--translate-y","0px"),(tt=(Ue=n.value)==null?void 0:Ue.style)==null||tt.setProperty("--translate-x","0px"),(qe=(at=n.value)==null?void 0:at.style)==null||qe.setProperty("--translate-x-1","0px")},A=j=>{h.value=j,T()},D=k2(e),X=a.computed(()=>Jt(D,"height",["thead"])*b.value),M=a.computed(()=>{var j;return{"--row-height":`${X.value}px`,"--background-color":W4[((j=e.thead)==null?void 0:j.color)??Td.DEF1],paddingRight:e.scrollbar?null:`${j4}px`}}),W={[w("table-body")]:!0,"is-bk-scrollbar":e.scrollbar},ne=a.computed(()=>ze({[w("table-footer")]:!0,"is-hidden":ue.value===0})),B=j=>a.createVNode("div",{ref:n,style:_.value,class:E.value},[j,a.createVNode(WY,null,{default:()=>{var ie,ve;return[(ve=(ie=t.slots).default)==null?void 0:ve.call(ie)]}})]),k=(j,ie,ve)=>a.createVNode("div",{ref:r,style:M.value,class:x.value},[j==null?void 0:j(),a.createVNode("div",{class:"col-resize-drag"},null),a.createVNode("div",{class:we},[ve==null?void 0:ve()]),ie==null?void 0:ie()]),re=a.computed(()=>({position:"sticky",top:0,zIndex:2,...e.prependStyle||{}})),J=()=>t.slots.prepend?a.createVNode("div",{style:re.value,class:"prepend-row"},[t.slots.prepend()]):null,K=a.ref("auto"),F=a.computed(()=>{if(/^\d+\.?\d*(px|%)$/.test(`${_.value.maxHeight}`)){const j=e.showHead?X.value:0,ie=ue.value+j+N.value;return`calc(${_.value.maxHeight} - ${ie}px)`}return null}),z=j=>j-X.value-N.value-ue.value,Y=(j,ie=!0)=>{if(ie){K.value=z(j);return}K.value=j},te=j=>{K.value=j},ue=a.ref(0),ce=a.computed(()=>({"--footer-height":`${ue.value}px`})),be=j=>{ue.value=j},Z=yn.debounce((...j)=>{t.emit(Tt.SCROLL_BOTTOM,{...j})}),me=()=>{var ve,Ae,Ie,ke;const j=((Ae=(ve=s.value)==null?void 0:ve.refRoot)==null?void 0:Ae.scrollWidth)??0,ie=((ke=(Ie=s.value)==null?void 0:Ie.refRoot)==null?void 0:ke.offsetWidth)??0;f.value=j-ie-(c==null?void 0:c.value)},ae=j=>{y.value=j},pe=j=>{d.value=m.bottom??0;const ie=j[1],{translateX:ve,translateY:Ae,pos:Ie={}}=ie;$(ve),P(Ae),me(),Object.assign(m,Ie||{});const{bottom:ke}=Ie;ke<=2&&d.value>ke&&Z({...Ie,translateX:ve,translateY:Ae})},G={column_drag_line:!0,"offset-x":!0,"resize-column":!0},fe=a.computed(()=>({[w("table-body-content")]:!0,[w("stripe")]:e.stripe})),we=a.computed(()=>({[w("table-fixed")]:!0,"has-virtual-scroll":e.virtualEnabled})),le=w("table-fixed-bottom"),q=a.computed(()=>{var j,ie,ve;return{minHeight:`${((j=e.fixedBottom)==null?void 0:j.minHeight)??Oa}px`,position:((ie=e.fixedBottom)==null?void 0:ie.position)??"absolute",height:((ve=e.fixedBottom)==null?void 0:ve.height)??null}});a.onMounted(()=>{me(),I()});const se=()=>{const j=C==null?void 0:C();return j?a.createVNode("div",{style:q.value,class:le},[j]):null};return{renderContainer:B,renderHeader:k,renderBody:(j,ie,ve)=>a.createVNode($i,{ref:s,height:K.value,class:W,contentClassName:fe.value,enabled:e.virtualEnabled,lineHeight:y.value,list:j,maxHeight:F.value,rowKey:e.rowKey,scrollEvent:!0,scrollbar:{enabled:e.scrollbar},throttleDelay:120,onContentScroll:pe},{beforeContent:()=>J(),default:Ae=>ie==null?void 0:ie((Ae==null?void 0:Ae.data)??[]),afterSection:()=>[a.createVNode("div",{class:G},null),a.createVNode("div",{class:we.value},[ve==null?void 0:ve()])]}),renderFooter:j=>a.createVNode("div",{ref:o,style:ce.value,class:ne.value},[j]),renderFixedBottom:()=>se(),getBodyHeight:z,setBodyHeight:Y,setVirtualBodyHeight:te,setFootHeight:be,setTranslateX:$,setDragOffsetX:A,setFixedColumns:j=>{p.length=0,p.push(...j)},setOffsetRight:me,setLineHeight:ae,setHeaderRowCount:L,initRootStyleVars:I,refRoot:n,refHead:r,refBody:s,refFooter:o}},YY=(e,t,n=[],r=!0)=>{let s=null;const o=()=>{s&&(s.disconnect(),s=null)};return a.watch(e,()=>{Jr(e.value)&&(o(),s=e5(e.value,()=>{t==null||t.apply(...n)},60,!0,"debounce"),r&&s.start())},{flush:"post",immediate:!0}),{instance:s}},XY=e=>{const t=a.reactive({enabled:!1,count:0,limit:10,current:1,align:"right",layout:["total","limit","list"]}),n=a.ref(!0),r=a.computed(()=>Math.ceil(t.count/t.limit)),s=u=>{Object.assign(t,{enabled:!!e.pagination},u),t.current>r.value&&(t.current=1)},o=(u=!0)=>{n.value=!u};a.watch(()=>[e.pagination],()=>{typeof e.pagination=="object"&&s(a.toRaw(e.pagination)),t.enabled=n.value&&!!e.pagination},{immediate:!0,deep:!0}),a.watch(()=>[e.data],()=>{e.remotePagination||s({count:e.data.length})},{immediate:!0});const c=a.computed(()=>t.enabled&&t.count>0);return{options:t,isShowPagination:c,setPagination:s,disabledPagination:o}},qY=a.defineComponent({name:"BodyEmpty",props:{list:v.array.def([]),filterList:v.array.def([]),emptyText:v.string},emits:["change"],setup(e){const t=ut("table"),n=a.computed(()=>e.emptyText===void 0?t.value.emptyText:e.emptyText),r=a.computed(()=>e.list.length===0?"empty":"search-empty");return()=>a.createVNode(_d,{description:n.value,scene:"part",type:r.value},null)}}),nh=a.defineComponent({name:"TableCell",props:{column:Ed,row:v.any.def({}),parentSetting:I2,title:v.string.def(void 0),observerResize:v.bool.def(!0),intersectionObserver:v.bool.def(!1),isHead:v.bool.def(!1),isExpandChild:v.bool.def(!1),headExplain:v.string,resizerWay:Pe("ResizerWay",{default:K4.DEBOUNCE})},setup(e,{slots:t}){const n=a.ref(),r=a.ref(!1),s=a.ref(!e.intersectionObserver),o=a.computed(()=>({textAlign:e.column.textAlign,minWidth:ls(e.column.minWidth,null)})),c=()=>{if(/boolean|object/.test(typeof e.column.showOverflowTooltip)&&e.column.showOverflowTooltip!==null){const{content:C="",mode:E=void 0,popoverOption:_={}}=e.column.showOverflowTooltip,x={showOverflowTooltip:{content:C,disabled:!e.column.showOverflowTooltip,mode:E,resizerWay:void 0,watchCellResize:void 0,popoverOption:_,allowHtml:!1}};return e.parentSetting!==null&&typeof e.parentSetting=="object"&&(Object.assign(x.showOverflowTooltip,e.parentSetting,{disabled:!e.column.showOverflowTooltip}),typeof e.column.showOverflowTooltip=="object"&&Object.assign(x.showOverflowTooltip,e.column.showOverflowTooltip)),x}return{showOverflowTooltip:e.parentSetting}};let u=null;const d=(C=!1)=>{var _;const E=f();return C?((_=E==null?void 0:E.cloneNode)==null?void 0:_.call(E,!0))??"":(E==null?void 0:E.innerText)??""},h=()=>{var P,I;const{showOverflowTooltip:C=!1}=c();let E=!0,{resizerWay:_}=e;const x=d(C.allowHtml);let O=()=>x,T={},$="auto",L=!0;if(typeof C=="boolean"&&(E=!C),typeof C=="object"&&(E=C.disabled,T=C.popoverOption,_=C.resizerWay||"debounce",O=()=>C.content||x,typeof C.content=="function"&&(O=()=>C.content(e.column,e.row)),L=C.watchCellResize,$=C.mode||"auto"),typeof E=="function"&&(E=Reflect.apply(E,this,[e.column,e.row])),e.column.explain){let A=!0;typeof C=="boolean"&&(A=!C),typeof C=="object"&&(A=C.disabled),E=A,$="static",typeof e.column.explain=="object"&&(O=()=>Jt(e.column.explain,"content",[e.column,e.row])||x)}return e.isHead&&(E=!(((I=(P=e.column)==null?void 0:P.showOverflowTooltip)==null?void 0:I.showHead)??!0),$="auto",O=()=>{var A,D;return((D=(A=f())==null?void 0:A.cloneNode)==null?void 0:D.call(A,!0))??""},e.headExplain&&($="static",O=()=>e.headExplain)),e.column.type==="expand"&&!e.isHead&&!e.isExpandChild&&(E=!0),{disabled:E,content:O,mode:$,resizerWay:_,watchCellResize:L,popoverOption:T}},f=()=>{var C,E;return e.isHead?(E=(C=n.value)==null?void 0:C.querySelector)==null?void 0:E.call(C,".head-text"):n.value},m=()=>{const C=f();if(!C||!Jr(C))return;const{mode:E,disabled:_}=h();if(r.value=!_,E==="auto"&&(r.value=qm(C)),E==="static"&&(r.value=!0),r.value){const x=a.ref(h());u===null&&(u=u2(C,{disabled:x.value.disabled,content:x.value.content,mode:x.value.mode,popoverOption:x.value.popoverOption}))}else u==null||u.destroyInstance(C),u=null};let p=null;const y=()=>{const{disabled:C,resizerWay:E,watchCellResize:_}=h();C||(m(),_!==!1&&e.observerResize&&(p=e5(n.value,()=>{m()},60,!0,E),p.start()))};let b=null;const N=()=>{e.intersectionObserver&&(b=new IntersectionObserver(C=>{if(C[0].intersectionRatio<=0){s.value=!1,u==null||u.destroyInstance(n.value);return}s.value=!0,y()},{threshold:.5}),b==null||b.observe(n.value))};a.onMounted(()=>{N(),s.value&&y()}),a.onBeforeUnmount(()=>{p==null||p.disconnect(),p=null,u==null||u.destroyInstance(n.value),b==null||b.disconnect(),b=null});const w=e.headExplain||e.column.explain;return()=>{var C;return a.createVNode("div",{ref:n,style:o.value,class:["cell",e.column.type,w?"explain":""]},[s.value?(C=t.default)==null?void 0:C.call(t):"--"])}}}),xc=a.defineComponent({name:"TableRow",render(){var e,t;return a.createVNode(a.Fragment,null,[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),JY=({props:e,rows:t,ctx:n,columns:r,row:s,index:o,column:c,isChild:u=!1,multiShiftKey:d})=>{const{isShiftKeyDown:h,getStore:f,setStore:m,setStoreStart:p,clearStoreStart:y}=d,b=()=>{const T=(A,D)=>{D.stopImmediatePropagation(),D.preventDefault(),D.stopPropagation(),h.value||(A?p(s,o):y()),t.setRowSelection(s,A),r.setColumnAttribute(c,Ve.SELECTION_INDETERMINATE,t.getRowIndeterminate()),r.setColumnAttribute(c,Ve.SELECTION_VAL,t.getRowCheckedAllValue()),n.emit(Tt.ROW_SELECT,{row:s,index:o,checked:A,data:e.data}),n.emit(Tt.ROW_SELECT_CHANGE,{row:s,index:o,checked:A,data:e.data})},$=()=>{if(h.value){const A=m(s,o);if(A){const{start:D,end:X}=f(),M=D.index<X.index?D.index:X.index,W=D.index<X.index?X.index:D.index;(t.pageRowList.slice(M,W+1)??[]).forEach(ne=>{pu(e,{row:s,index:o,isCheckAll:!1})&&t.setRowSelection(ne,!0)})}return n.emit(Tt.ROW_SELECT,{row:s,index:o,checked:!0,data:e.data,isShiftKeyDown:!0}),n.emit(Tt.ROW_SELECT_CHANGE,{row:s,index:o,checked:!0,data:e.data,isShiftKeyDown:!0}),Promise.resolve(!A)}return Promise.resolve(!0)},L=t.getRowAttribute(s,Xe.ROW_SELECTION_INDETERMINATE),P=t.getRowAttribute(s,Xe.ROW_SELECTION),I=pu(e,{row:s,index:o,isCheckAll:!1});return a.createVNode(sn,{beforeChange:$,disabled:!I,indeterminate:L,modelValue:P,onChange:T},null)},N=T=>Array.isArray(e.isEmptyCell)?e.isEmptyCell.some($=>$===T):typeof e.isEmptyCell=="function"?e.isEmptyCell({cellText:T,row:s,column:c}):yn.isEmpty(T),w=()=>{var L;const T=()=>{if(Jt(c,"type",[c,s])==="index")return t.getRowAttribute(a.toRaw(s),Xe.ROW_INDEX);const I=Jt(c,"field",[c,s]),A=mu(s,I);if(typeof c.render=="function")return C();if(typeof A=="boolean"||typeof A=="number")return`${A}`;if(typeof A=="object"&&A!==null)return JSON.stringify(a.unref(A));if(N(A)){const{emptyCellText:D}=e;if(D)return typeof D=="function"?D({row:s,column:c,index:o}):D}return A},$={expand:()=>u?"":x(),selection:()=>b(),drag:O};return((L=$[c.type])==null?void 0:L.call($,s,c,o,t))??T()},C=()=>{const T=mu(s,Jt(c,"field",[c,s])),$=s;return c.render({cell:T,data:$,row:s,column:c,index:o,rows:t.tableRowList.value})},E=()=>{var L,P;const $=t.getRowAttribute(s,Xe.ROW_EXPAND)?a.createVNode(Zo,null,null):a.createVNode(nl,null,null);return a.createVNode("span",null,[[$,((P=(L=n.slots).expandContent)==null?void 0:P.call(L,s))??""]])},_=T=>{t.setRowExpand(s,!t.getRowAttribute(s,Xe.ROW_EXPAND)),n.emit(Tt.ROW_EXPAND_CLICK,{row:s,column:c,index:o,rows:t.tableRowList.value,e:T})},x=()=>{const T=()=>{var $,L;return typeof c.render=="function"?C():((L=($=n.slots).expandCell)==null?void 0:L.call($,{row:s,column:c,index:o,rows:t}))??E()};return a.createVNode("span",{class:"expand-btn-action",onClick:$=>_($)},[T()])},O=()=>{var P,I,A;const T=((P=e.rowDraggable)==null?void 0:P.render)??e.rowDraggable;if(typeof T=="function")return T(s,c,o,t.tableRowList.value);const $=((I=e.rowDraggable)==null?void 0:I.fontSize)??"14px";return((A=e.rowDraggable)==null?void 0:A.icon)??a.createVNode(ed,{style:`'--font-size: ${$};'`,class:"drag-cell"},null)};return{renderCell:w}};function Mm(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const _c=32,ZY=a.defineComponent({name:"HeadFilter",directives:{bkTooltips:sa},props:{column:Ed,height:v.number.def(_c)},emits:["change","filterSave","reset"],setup(e,{emit:t}){const{resolveClassName:n}=xe(),r=ut("table"),s=a.computed(()=>{var B;return(B=e.column)==null?void 0:B.filter}),o=a.computed(()=>{var B;return((B=s.value)==null?void 0:B.checked)??[]}),c=a.ref(""),u=a.ref(),d=a.ref([]),h=a.reactive({isOpen:!1,checked:[]});h.checked.push(...o.value),a.watch(()=>o,()=>{h.checked.length=0,h.checked=[],h.checked.push(...o.value)},{deep:!0});const f=a.computed(()=>ze({[n("table-head-action")]:!0,"column-filter":!0,"--row-height":`${e.height}px`,active:h.checked.length,opened:h.isOpen})),m=ze({[n("table-head-filter")]:!0}),p=a.ref(null),y=B=>{h.isOpen=B,B&&setTimeout(()=>{p.value.reset()}),B||(c.value="")},b=`light ${n("table-head-filter")}`,N=a.computed(()=>{const{list:B=[]}=s.value;return B.filter(re=>{const J=x(c.value);return J.test(re.label)||J.test(re.text)||J.test(re.value)})}),w=5,C=a.computed(()=>{var B;return((B=s.value)==null?void 0:B.maxHeight)??_c*w}),E=a.computed(()=>{const{height:B,list:k=[]}=s.value;return B||k.length*_c}),_=a.computed(()=>{const B=_c*2;return N.value.length>w?C.value:B}),x=(B,k="ig")=>new RegExp(`${B}`.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),k),O=()=>{T(!0),t("filterSave",h.checked),h.isOpen=!1},T=(B=!1)=>{const{disabled:k}=L(A,r.value.confirm);if(k||B){if(s.value==="custom"){t("change",h.checked,null),h.isOpen=!1;return}t("change",h.checked)}},$=()=>{h.checked.length&&(h.checked.length=0,h.isOpen=!1,t("change",h.checked),t("reset",h.checked))},L=(B,k)=>({disabled:B==="disabled"||B===!1,text:typeof B=="string"?B:k}),P=B=>{var J,K,F;const k=d.value[`list-item-${B.value}-ref`],re=(J=u.value)==null?void 0:J.querySelector(".bk-checkbox-label");if(k&&re){const Y=I(k),te=I(re),ue=I(u.value),ce=(k==null?void 0:k.offsetWidth)+(Y==null?void 0:Y.borderSize)+(Y==null?void 0:Y.marginSize)+(Y==null?void 0:Y.paddingSize)+(ue==null?void 0:ue.borderSize)+(ue==null?void 0:ue.marginSize)+(ue==null?void 0:ue.paddingSize)+(te==null?void 0:te.marginSize)+(te==null?void 0:te.paddingSize);if((k==null?void 0:k.offsetWidth)>((K=u.value)==null?void 0:K.offsetWidth)||16+ce>((F=u.value)==null?void 0:F.offsetWidth))return!1}return!0},I=B=>{if(!B)return{paddingSize:0,borderSize:0,marginSize:0};const k=getComputedStyle(B),re=Number.parseFloat(k.getPropertyValue("padding-left"))+Number.parseFloat(k.getPropertyValue("padding-right")),J=Number.parseFloat(k.getPropertyValue("border-left-width"))+Number.parseFloat(k.getPropertyValue("border-right-width")),K=Number.parseFloat(k.getPropertyValue("margin-left"))+Number.parseFloat(k.getPropertyValue("margin-right"));return{paddingSize:re,borderSize:J,marginSize:K}},{btnSave:A,btnReset:D}=s.value,X=()=>{const{disabled:B,text:k}=L(A,r.value.confirm);return B?a.createVNode("span",{class:"btn-filter-save disabled"},[k]):a.createVNode(Ht,{style:"width: 56px; margin-right: 8px;",size:"small",theme:"primary",onClick:O},Mm(k)?k:{default:()=>[k]})},M=()=>{const{disabled:B,text:k}=L(D,r.value.reset);return B?"":a.createVNode(Ht,{style:"width: 56px;",disabled:h.checked.length===0,size:"small",onClick:$},Mm(k)?k:{default:()=>[k]})},W=(B,k)=>{const re=new Set(h.checked);B?re.add(k.value):re.delete(k.value),h.checked.length=0,h.checked.push(...Array.from(re)),T()},ne=B=>B.data.length?B.data.map(k=>a.withDirectives(a.createVNode("div",{key:k.value,ref:u,class:"list-item"},[a.createVNode(sn,{checked:h.checked.includes(k.value),immediateEmitChange:!1,label:k.value,modelValue:h.checked.includes(k.value),onChange:re=>W(re,k)},{default:()=>[a.createVNode("span",{ref:re=>d.value[`list-item-${k.value}-ref`]=re},[`${k.text}`])]})]),[[a.resolveDirective("bk-tooltips"),{content:k.tipKey||k.text,placement:"right",disabled:P(k)}]])):a.createVNode("div",{class:"list-item is-empty"},[r.value.emptyText]);return()=>a.createVNode(wn,a.mergeProps({arrow:!1,isShow:h.isOpen,offset:0,placement:"bottom-start",renderType:Su.SHOWN,trigger:"click"},{theme:b},{onAfterHidden:()=>y(!1),onAfterShow:()=>y(!0)}),{default:()=>a.createVNode(Qu,{class:f.value},null),content:()=>a.createVNode("div",{class:m},[a.createVNode("div",{style:"padding: 4px 10px;"},[a.createVNode($a,{modelValue:c.value,"onUpdate:modelValue":B=>c.value=B},null)]),a.createVNode(pd,{class:"content-list"},{default:()=>[a.createVNode($i,{ref:p,height:E.value,className:"content-items",lineHeight:32,list:N.value,maxHeight:C.value,minHeight:_.value,scrollEvent:!0,throttleDelay:0},{default:ne})]}),a.createVNode("div",{class:"content-footer"},[X(),M()])])})}}),QY=a.defineComponent({name:"HeadSort",props:{column:Ed,defaultSort:v.oneOf(FK).def(zt.NULL),active:v.bool,sortValFormat:v.arrayOf(v.any).def([""])},emits:["change"],setup(e,{emit:t,expose:n}){var d,h;const{resolveClassName:r}=xe(),s=((h=(d=e.column)==null?void 0:d.sort)==null?void 0:h.value)??e.defaultSort??zt.NULL,o=a.ref(s);a.watch(()=>[e.defaultSort],([f])=>{o.value=f},{immediate:!0});const c=f=>{o.value=f},u=(f,m)=>{f.stopImmediatePropagation(),f.stopPropagation(),f.preventDefault(),t("change",{type:m,isCancel:m===o.value})};return n({setNextSortType:c}),()=>a.createVNode("span",{class:r("head-cell-sort")},[a.createVNode(Ru,{style:"align-items: flex-end;",class:["sort-action","sort-asc",e.active&&o.value===zt.ASC?"active":""],onClick:f=>u(f,zt.ASC)},null),a.createVNode(Xo,{style:"align-items: flex-start;",class:["sort-action","sort-desc",e.active&&o.value===zt.DESC?"active":""],onClick:f=>u(f,zt.DESC)},null)])}});function eX(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const tX=({props:e,columns:t,rows:n,ctx:r,column:s,index:o})=>{var M;const c=a.ref(t.getColumnAttribute(s,Ve.COL_SORT_TYPE)),u=a.ref(t.getColumnAttribute(s,Ve.COL_SORT_ACTIVE)),d=a.toRaw(s),h=a.ref(null),f=W=>{const{isCancel:ne,type:B=t.getColumnRefAttribute(s,Ve.COL_SORT_TYPE)}=W??{},k=ne?zt.NULL:B,re=t5(s,k,e.sortValFormat);t.setColumnAttribute(s,Ve.COL_SORT_TYPE,k),t.setColumnAttribute(s,Ve.COL_SORT_FN,re),t.setColumnSortActive(s,k!==zt.NULL),c.value=k,u.value=k!==zt.NULL,r.emit(Tt.COLUMN_SORT,{column:s,index:o,type:k})},m=()=>a.createVNode(QY,{active:u.value,column:s,defaultSort:c.value,sortValFormat:e.sortValFormat,onChange:f},null),p=()=>{const W=k=>{r.emit(Tt.COLUMN_FILTER,{checked:k,column:a.unref(s),index:o})},ne=k=>{t.setColumnAttribute(s,Ve.COL_FILTER_VALUES,k),r.emit(Tt.COLUMN_FILTER_SAVE,{values:k})},B=()=>{t.setColumnAttribute(s,Ve.COL_FILTER_VALUES,[]),r.emit(Tt.COLUMN_FILTER,{checked:[],column:a.unref(s),index:o})};return a.createVNode(ZY,{height:e.headHeight,column:s,onChange:W,onFilterSave:ne,onReset:B},null)},y=k2(e),{cellFn:b}=y,N=()=>typeof b=="function"?b({index:o,column:s}):typeof s.renderHead=="function"?s.renderHead({index:o,column:s}):Jt(s,"label",[o]),w=()=>{const W=[];s.sort&&W.push(m()),s.filter&&W.push(p());const ne=N();W.unshift(a.createVNode("span",{class:"head-text"},[ne]));const B=typeof ne=="string"?ne:void 0,k={"has-sort":!!s.sort,"has-filter":!!s.filter};return{cells:W,showTitle:B,headClass:k}},C=(W,ne="current")=>{t.setColumnAttribute(s,Ve.SELECTION_VAL,W),t.setColumnAttribute(s,Ve.SELECTION_INDETERMINATE,!1),n.setRowSelectionAll(W),r.emit(Tt.ROW_SELECT_ALL,{checked:W,data:e.data,type:ne})},E=W=>{C(!0,W)},{resolveClassName:_}=xe(),x=_("across-page-popover"),O=()=>{const W=t.getColumnAttribute(s,Ve.SELECTION_DISABLED),ne=t.getColumnAttribute(s,Ve.SELECTION_VAL),B=t.getColumnAttribute(s,Ve.SELECTION_INDETERMINATE);return s.acrossPage?a.createVNode("span",{class:"across-page-cell"},[a.createVNode(sn,{disabled:W,indeterminate:B,modelValue:ne,outline:!0,onChange:k=>C(k)},null),a.createVNode(wn,{ref:h,extCls:x,arrow:!1,placement:"bottom-start",theme:"light",trigger:"click"},{default:()=>a.createVNode("span",{class:"dropwn-icon"},null),content:()=>a.createVNode("div",{class:"dropwn-content"},[a.createVNode("div",{onClick:()=>E("current")},[a.createTextVNode("本页全选")]),a.createVNode("div",{onClick:()=>E("all")},[a.createTextVNode("跨页全选")])])})]):a.createVNode(sn,{disabled:W,indeterminate:B,modelValue:ne,onChange:k=>C(k)},null)},T=()=>{if(s.type==="selection")return[O()];const{headClass:W,showTitle:ne,cells:B}=w();return a.createVNode(nh,{class:W,column:s,headExplain:Jt(s.explain,"head",[s]),isHead:!0,observerResize:e.observerResize,parentSetting:e.showOverflowTooltip,resizerWay:e.resizerWay,title:ne},eX(B)?B:{default:()=>[B]})},$=()=>{if(!t.getColumnAttribute(s,Ve.COL_IS_DRAG)&&s.sort&&!s.filter){const ne={isCancel:!1,type:MY(t.getColumnRefAttribute(s,Ve.COL_SORT_TYPE))};f(ne)}},L=Object.assign(t.getFixedStlye(s),{"--background-color":W4[((M=e.thead)==null?void 0:M.color)??Td.DEF1]}),P=t.getGroupAttribute(d),I=a.computed(()=>[t.getHeadColumnClass(s,o),t.getColumnCustomClass(s),s.align||e.headerAlign||e.align,{"is-last-child":(P==null?void 0:P.offsetLeft)+1===t.visibleColumns.length}]),A=a.computed(()=>I.value.concat([{"is-head-group":P==null?void 0:P.isGroup,"is-head-group-child":!!(P!=null&&P.parent)}])),D=()=>Jt(s,"label",[o,s]);return{getTH:()=>P!=null&&P.isGroup?a.createVNode("th",{style:L,class:A.value,colspan:P==null?void 0:P.thColspan,rowspan:P==null?void 0:P.thRowspan},[D()]):a.createVNode("th",a.mergeProps({style:L,class:I.value,colspan:P==null?void 0:P.thColspan,"data-id":t.getColumnId(s),rowspan:P==null?void 0:P.thRowspan,onClick:()=>$()},t.resolveEventListener(s,o)),[T()])}},nX=e=>{const t=a.ref(!1),n={start:null,end:null},r=m=>{m.key==="Shift"&&(t.value=!0)},s=m=>{m.key==="Shift"&&(t.value=!1,d())},o=(m,p)=>{n.start={index:p??null,row:m??null}},c=()=>{o()},u=(m,p)=>n.start===null&&n.end===null?(n.start={index:p,row:m},!1):(n.end={index:p,row:m},!0),d=()=>{n.start=null,n.end=null};return e.shiftMultiChecked&&(window.addEventListener("keydown",r),window.addEventListener("keyup",s)),{isShiftKeyDown:t,setStore:u,getStore:()=>n,clearStore:d,setStoreStart:o,clearStoreStart:c,removeMultiCheckedEvents:()=>{e.shiftMultiChecked&&(window.removeEventListener("keydown",r),window.removeEventListener("keyup",s))}}};function rX(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const aX=({props:e,ctx:t,columns:n,rows:r,pagination:s})=>{const o=ut("table"),c=or();let u={};const d=nX(e),h=()=>a.createVNode("colgroup",null,[(n.visibleColumns||[]).map((A,D)=>{const X=`${AY(n.getColumnOrderWidth(A))}`.replace(/px$/i,""),M=n.getColumnAttribute(A,Ve.COL_MIN_WIDTH);return a.createVNode("col",{style:{width:ls(X,"auto"),minWidth:ls(M,"auto")}},null)})]),f=()=>{const A=k2(e),D={"--row-height":`${Jt(A,"height",["thead"])}px`,backgroundColor:e.thead.color};return a.createVNode(a.Fragment,null,[a.createVNode("thead",{style:D},[n.columnGroup.map((X,M)=>a.createVNode("tr",null,[X.map((W,ne)=>{if(n.isHiddenColumn(W))return null;const{getTH:B}=tX({props:e,ctx:t,columns:n,column:W,index:ne,rows:r,rowIndex:M});return B()})]))])])},m=()=>e.showHead?a.createVNode("table",{cellpadding:0,cellspacing:0},[h(),f()]):null,p=()=>{const A="append-last-row",D=[...Ys(e.rowStyle,[]),{"--row-height":`${b(null,null,"append-last-row")}px`}];if(e.appendLastRow.type==="default")return t.slots.appendLastRow?a.createVNode(xc,{key:A},{default:()=>{var X,M;return[a.createVNode("tr",{key:A,style:D},[a.createVNode("td",{colspan:n.visibleColumns.length},[((M=(X=e.appendLastRow).cellRender)==null?void 0:M.call(X,null,null))??t.slots.appendLastRow()])])]}}):void 0;if(e.appendLastRow.type==="summary")return a.createVNode(xc,{key:A},{default:()=>[a.createVNode("tr",{key:A,style:D},[n.visibleColumns.map((X,M)=>a.createVNode("td",null,[a.createVNode(nh,null,{default:()=>{var W,ne;return[((ne=(W=e.appendLastRow).cellRender)==null?void 0:ne.call(W,X,M))??X.field??X.prop]}})]))])]})},y=A=>{let D={};const X=new WeakMap,M=n.needRowSpan.value;return a.createVNode("tbody",null,[A.map((W,ne)=>{const B=T(W,ne,D,A,X,M);return D=W,B}),p()])},b=r.getRowHeight,N=A=>{u=A},w=A=>{var M,W;const D=A??r.pageRowList,X=a.computed(()=>e.emptyText===void 0?o.value.emptyText:e.emptyText);return D.length?a.createVNode("table",{cellpadding:0,cellspacing:0,"data-table-uuid":c},[h(),y(D)]):((W=(M=t.slots).empty)==null?void 0:W.call(M))??a.createVNode(qY,{emptyText:X.value,filterList:D,list:e.data},null)},C=(A,D,X,M)=>{var ne;((ne=A.target)==null?void 0:ne.tagName)!=="INPUT"&&t.emit(Tt.ROW_CLICK,A,D,X,M)},E=(A,D,X,M)=>{t.emit(Tt.ROW_DBL_CLICK,A,D,X,M)},_=(A,D,X,M)=>{t.emit(Tt.ROW_MOUSE_ENTER,A,D,X,M)},x=(A,D,X,M)=>{t.emit(Tt.ROW_MOUSE_LEAVE,A,D,X,M)},O=(A,D,X,M,W)=>{var re;W.has(A)||W.set(A,new WeakMap),W.get(A).has(M)||W.get(A).set(M,{skipRowLen:0,skipRow:!1});let{skipRowLen:ne=0}=((re=W.get(X))==null?void 0:re.get(M))??{},B=!1;const k=gu(M,null,A,D,"rowspan");return ne>1?(ne=ne-1,B=!0):k>1&&(ne=k,B=!1),Object.assign(W.get(A).get(M),{skipRowLen:ne,skipRow:B}),{skipRowLen:ne,skipRow:B}},T=(A,D,X,M,W,ne,B=!1)=>{const k=M.length,re=[...Ys(e.rowStyle,[A,D]),{"--row-height":`${b(A,D)}px`}],J=[...Ys(e.rowClass,[A,D]),`hover-${e.rowHover}`,D%2===1&&e.stripe?"stripe-row":""],K=r.getRowAttribute(A,Xe.ROW_UID);return[a.createVNode(xc,{key:K},{default:()=>[a.createVNode("tr",a.mergeProps({key:K,style:re,class:J,"data-row-index":D,draggable:!!e.rowDraggable,onClick:F=>C(F,A,D,M),onDblclick:F=>E(F,A,D,M),onMouseenter:F=>_(F,A,D,M),onMouseleave:F=>x(F,A,D,M)},u),[n.visibleColumns.map((F,z)=>{const Y=[n.getFixedStlye(F),...Ys(e.cellStyle,[F,z,A,D])],{colspan:te,rowspan:ue}=PY(F,z,A,D),{skipCol:ce}=n.getColumnAttribute(F,Ve.COL_SPAN),{skipRow:be}=ne&&!B?O(A,D,X,F,W):{skipRow:!1},Z={"expand-cell":F.type==="expand"};if(!be&&!ce){let me;const ae=[n.getColumnClass(F,z),n.getColumnCustomClass(F,A),F.align||e.align,...Ys(e.cellClass,[F,z,A,D]),{"expand-row":r.getRowAttribute(A,Xe.ROW_EXPAND),"is-last":D+ue>=k}],pe=`${K}_${z}`,G=`${K}_${z}_cell`,{renderCell:fe}=JY({props:e,rows:r,ctx:t,columns:n,row:A,index:D,column:F,isChild:B,multiShiftKey:d}),we=(le,q)=>{const se={event:le,row:A,column:F,cell:{getValue:()=>fe()},rowIndex:D,columnIndex:z};t.emit(q,se)};return a.createVNode("td",{key:pe,style:Y,class:ae,colspan:te,"data-id":pe,rowspan:ue,onClick:le=>we(le,Tt.CELL_CLICK),onDblclick:le=>we(le,Tt.CELL_DBL_CLICK)},[a.createVNode(nh,{key:G,class:Z,column:F,"data-id":G,intersectionObserver:e.intersectionObserver,isExpandChild:B,observerResize:e.observerResize,parentSetting:e.showOverflowTooltip,row:A},rX(me=fe())?me:{default:()=>[me]})])}return null})])]}),$(A,J)]},$=(A,D,X)=>{if(r.getRowAttribute(A,Xe.ROW_EXPAND)){const W=[...D,{row_expend:!0}],B=`${r.getRowAttribute(A,Xe.ROW_UID)}_expand`;return Array.isArray(A.children)?A.children.map((k,re)=>T(k,re,{},A,{},!1,!0)):a.createVNode(xc,{key:B},{default:()=>{var k,re;return[a.createVNode("tr",{class:W},[a.createVNode("td",{colspan:n.visibleColumns.length,rowspan:1},[((re=(k=t.slots).expandRow)==null?void 0:re.call(k,A))??a.createVNode("div",{class:"expand-cell-ctx"},[a.createTextVNode("Expand Row")])])])]}})}},L=A=>{s.setPagination({limit:A}),t.emit(Tt.PAGE_LIMIT_CHANGE,A)},P=A=>{if(typeof e.pagination=="object"&&A!==s.options.current){s.setPagination({current:A,value:A}),t.emit(Tt.PAGE_VALUE_CHANGE,A);return}typeof e.pagination=="boolean"&&e.pagination!==!1&&t.emit(Tt.PAGE_VALUE_CHANGE,A)},I=()=>{if(s.isShowPagination.value)return a.createVNode(V2,a.mergeProps({style:"width: 100%;"},s.options,{modelValue:s.options.current,onChange:A=>P(A),onLimitChange:A=>L(A)}),null)};return a.onUnmounted(()=>{d.removeMultiCheckedEvents()}),{renderColumns:m,renderTBody:w,renderTFoot:I,setDragEvents:N}},sX=e=>{const t=a.reactive(new WeakMap),n=a.ref([]),r=a.reactive([]),s=B=>e.isRowSelectEnable?typeof e.isSelectedFn=="function"?e.isSelectedFn(u(B)):Array.isArray(e.checked)?e.checked.some(k=>typeof k!="object"?e.selectionKey.length&&Object.prototype.hasOwnProperty.call(B,e.selectionKey)?DY(B,e.selectionKey)===k:(console.warn("props.selectionKey is undefined or null or empty"),!1):Nc(k)===Nc(B)):!1:!1,o=(B,k,re)=>typeof e.rowHeight=="function"||/^\d+/.test(`${e.rowHeight}`)?Jt(e,"rowHeight",[{index:k,type:re??"tbody",row:B}]):Oa,c=()=>{let B=!1,k=!1;n.value.forEach((re,J)=>{const K=Nc(re);let F=FY(K,or(),e);const z=s(K);z?B=!0:k=!0,t.has(K)||t.set(K,{[Xe.ROW_EXPAND]:!1,[Xe.ROW_SELECTION]:z,[Xe.ROW_UID]:F,[Xe.ROW_INDEX]:J+1,[Xe.ROW_SELECTION_INDETERMINATE]:!1});const Y=t.get(K);F=Y[Xe.ROW_UID],Y[Xe.ROW_INDEX]=J+1,Y[Xe.ROW_HEIGHT]=o(re,J)}),t.set(es,{[Xe.ROW_SELECTION]:B,[Xe.ROW_SELECTION_INDETERMINATE]:B&&k})},u=(B,k)=>({row:B,index:k??d(B,Xe.ROW_INDEX),isSelectAll:d(es,Xe.ROW_SELECTION)}),d=(B,k)=>{var re;return(re=t.get(B))==null?void 0:re[k]},h=B=>{t.set(HK,{[Xe.ROW_SPAN]:B})},f=(B,k)=>pu(e,{row:B,index:k})?d(B,Xe.ROW_SELECTION):!0,m=B=>{if(typeof e.isSelectedFn=="function"){T(B,e.isSelectedFn(u(B)));return}T(B,!d(B,Xe.ROW_SELECTION))},p=B=>{const k=B??!y();if(t.set(es,{[Xe.ROW_SELECTION]:k,[Xe.ROW_SELECTION_INDETERMINATE]:!1}),e.acrossAll){n.value.forEach((re,J)=>T(re,k,J));return}r.forEach((re,J)=>T(re,k,J))},y=()=>e.acrossAll?n.value.every((B,k)=>f(B,k)):r.every((B,k)=>f(B,k)),b=()=>e.acrossAll?n.value.some(B=>d(B,Xe.ROW_SELECTION)):r.some(B=>d(B,Xe.ROW_SELECTION)),N=B=>{p(B)},w=()=>{const B=y();O(es,Xe.ROW_SELECTION,B),O(es,Xe.ROW_SELECTION_INDETERMINATE,!B&&b())},C=()=>d(es,Xe.ROW_SELECTION_INDETERMINATE),E=()=>d(es,Xe.ROW_SELECTION),_=(B,k)=>{if(k){O(k,Xe.ROW_HEIGHT,B);return}n.value.forEach(re=>O(re,Xe.ROW_HEIGHT,B))},x=(B,k,re)=>B?d(B,Xe.ROW_HEIGHT):o(B,k,re),O=(B,k,re)=>{const J=Nc(B),K=t.get(J);K&&Object.prototype.hasOwnProperty.call(K,k)&&(K[k]=re)},T=(B,k,re)=>{let J=k;typeof e.isSelectedFn=="function"&&(J=e.isSelectedFn(u(B,re))),pu(e,{row:B,index:re??d(B,Xe.ROW_INDEX)})&&O(B,Xe.ROW_SELECTION,J),w()},$=(B,k)=>{O(B,Xe.ROW_INDEX,k)},L=(B,k)=>{O(B,Xe.ROW_EXPAND,k)},P=B=>{let k=0;const re=50,J=()=>{const K=k+re;r.push(...B.slice(k,K)),K<B.length&&(k=K,setTimeout(()=>{J()}))};if(B.length>re){J();return}r.push(...B)};return{setRowIndex:$,setRowExpand:L,isRowChecked:f,setPageRowList:B=>{r.length=0,P(B)},setTableRowList:B=>{n.value.length=0,n.value.push(...B),c()},clearSelection:()=>{n.value.forEach(B=>T(B,!1))},formatDataSchema:c,toggleRowSelection:m,setRowSelectionAll:N,setRowSelection:T,setAllRowExpand:B=>{n.value.forEach(k=>L(k,B??!0))},setRowHeight:_,setTableIsNeedRowSpan:h,getRowAttribute:d,getRowSelection:()=>n.value.filter(B=>d(B,Xe.ROW_SELECTION)),getRowIndeterminate:C,getRowCheckedAllValue:E,getCurrentPageRowsHeight:()=>r.reduce((B,k)=>B+x(k),0),changePageRowIndex:(B,k)=>{const re=r[B];r.splice(k,0,re);const J=B<k?B:B+1;r.splice(J,1)},toggleAllSelection:p,getRowHeight:x,tableRowList:n,tableRowSchema:t,pageRowList:r}};function Rm(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const iX=(e,t,n,r)=>{const s=ut("table"),{resolveClassName:o}=xe(),c=MK(s),u=a.ref(!1),d=(K,F)=>Jt(K,["id","field","type"],[K,F]),h=()=>({enabled:!0,fields:e.columns.map(K=>Object.assign({},K,{field:K.field||K.type})),checked:[],limit:0,size:"small",sizeList:c,showLineHeight:!0,extCls:"",trigger:"manual",height:No.small}),f=K=>typeof K=="boolean"&&K!==!1?h():K?Object.assign({},h(),K):{enabled:!1},m=a.ref(null),p=a.reactive(h()),y=K=>{Object.assign(p,f(K))};a.watch(()=>[e.settings],()=>{y(e.settings)},{immediate:!0,deep:!0});const b=a.ref(p.size||"small"),N=a.ref(No.small),w=a.ref(p.checked||[]),E=`light ${o("table-settings")}`,_=a.computed(()=>p.fields||e.columns||[]),x={checkAll:u.value,activeSize:b.value,activeHeight:N.value,checkedFields:p.checked||[]},O=()=>{var F;Object.assign(x,{checkAll:u.value,activeSize:b.value,activeHeight:N.value,checkedFields:w.value});const K={checked:w.value,size:b.value,height:N.value,fields:a.unref(_)};Object.assign(p,K),n.setColumnAttributeBySettings(p,K.checked),n.setVisibleColumns(),r==null||r(K),(F=m.value)==null||F.hide(),t.emit(Tt.SETTING_CHANGE,K)},T=()=>{var K;u.value=x.checkAll,b.value=x.activeSize,N.value=x.activeHeight,w.value=x.checkedFields,(K=m.value)==null||K.hide()},$=()=>{var K;p.trigger==="manual"&&((K=m.value)==null||K.show())},L=K=>{K.stopImmediatePropagation(),K.stopPropagation(),K.preventDefault(),u.value=!u.value;const F=p.fields||e.columns||[],z=F.filter((Y,te)=>Y.disabled&&w.value.includes(d(Y,te))).map((Y,te)=>d(Y,te));if(u.value){const Y=F.filter(te=>!te.disabled).map((te,ue)=>d(te,ue));w.value.splice(0,w.value.length,...Y,...z)}else w.value.splice(0,w.value.length,...z)},P=a.computed(()=>(p.limit??0)>0),I=p.sizeList||c,A=a.computed(()=>P.value&&(p.limit?p.limit:0)<=w.value.length),D=(K,F)=>K.disabled||A.value&&!w.value.includes(d(K,F)),X=K=>{b.value=K.value,N.value=K.height},M=K=>({"line-size":!0,"is-medium":b.value==="medium",active:K.value===b.value}),W={marginRight:"12px"},ne=()=>I.map(K=>a.createVNode("span",{class:M(K),onClick:()=>X(K)},[K.label])),B=a.computed(()=>w.value.length>0&&w.value.length<_.value.length),k=a.computed(()=>typeof p.showLineHeight=="boolean"?p.showLineHeight:!0);a.watch(()=>[w.value],()=>{w.value.length||(u.value=!1),w.value.length&&_.value.every((K,F)=>w.value.includes(d(K,F)))&&(u.value=!0)},{immediate:!0,deep:!0}),a.watch(()=>[e.settings.checked],()=>{w.value.splice(0,w.value.length,...p.checked)},{immediate:!0,deep:!0});const re=()=>{var F,z,Y,te;let K;return((z=(F=t.slots).settings)==null?void 0:z.call(F))??a.createVNode(a.Fragment,null,[a.createVNode("div",{class:"setting-head"},[a.createVNode("span",{class:"head-title"},[s.value.setting.title]),a.createVNode(Jo,{class:"icon-close-action",onClick:T},null)]),a.createVNode("div",{class:"setting-body"},[a.createVNode("div",{class:"setting-body-title"},[a.createVNode("div",null,[a.createVNode("span",{class:"field-setting-label"},[s.value.setting.fields.title]),P.value?a.createVNode("span",{class:"limit"},[s.value.setting.fields.subtitle(p.limit)]):""]),P.value?"":a.createVNode("span",{class:"check-all",onClick:L},[a.createVNode(sn,{indeterminate:!!B.value,label:s.value.setting.fields.selectAll,modelValue:w.value.length>0},{default:()=>[s.value.setting.fields.selectAll]})])]),a.createVNode(pd,{class:"setting-body-fields",modelValue:w.value,"onUpdate:modelValue":ue=>w.value=ue},Rm(K=_.value.map((ue,ce)=>{let be;return a.createVNode("div",{class:"field-item"},[a.createVNode(sn,{checked:w.value.includes(d(ue,ce)),disabled:D(ue,ce),label:d(ue,ce)},Rm(be=Jt(ue,["name","label"],[ue,ce]))?be:{default:()=>[be]})])}))?K:{default:()=>[K]}),(te=(Y=t.slots).setting)==null?void 0:te.call(Y),k.value?a.createVNode("div",{class:"setting-body-line-height"},[s.value.setting.lineHeight.title,a.createTextVNode(":"),ne()]):""]),a.createVNode("div",{class:"setting-footer"},[a.createVNode(Ht,{style:W,theme:"primary",onClick:O},{default:()=>[s.value.setting.options.ok]}),a.createVNode(Ht,{style:W,onClick:T},{default:()=>[s.value.setting.options.cancel]})])])};return{options:p,renderSettings:()=>e.settings?a.createVNode(wn,a.mergeProps({ref:m,extCls:p.extCls,arrow:!0,placement:"bottom-end",trigger:p.trigger??"manual"},{theme:E}),{default:()=>a.createVNode("span",{class:"table-head-settings",onClick:$},[a.createVNode(ju,{style:"color: #c4c6cc;"},null)]),content:()=>a.createVNode("div",{class:"setting-content"},[re()])}):null}},oX=a.defineComponent({name:"Table",props:XK,emits:cY,setup(e,t){const n=zY(e),r=sX(e),s=XY(e),{renderContainer:o,renderFixedBottom:c,renderBody:u,renderHeader:d,renderFooter:h,setBodyHeight:f,setFootHeight:m,setDragOffsetX:p,setOffsetRight:y,setHeaderRowCount:b,setLineHeight:N,getBodyHeight:w,refBody:C,refRoot:E}=KY(e,t),_=(...Z)=>{var me;return(me=C.value)==null?void 0:me.scrollTo(...Z)};typeof e.rowHeight=="function"?N(Z=>r.getRowHeight(Z.rows[0],Z.index)):N(e.rowHeight);const O=iX(e,t,n,({checked:Z,height:me})=>{(Z==null?void 0:Z.length)>0&&_(0,0),typeof e.rowHeight!="function"&&(r.setRowHeight(me),N(me))}),T=UY(e,r,t),{renderColumns:$,renderTBody:L,renderTFoot:P,setDragEvents:I}=aX({props:e,ctx:t,columns:n,rows:r,pagination:s});I(T);const{resolveColumns:A}=dY(),D=a.getCurrentInstance(),X=()=>{var me;const Z=((me=D.subTree)==null?void 0:me.children)??[];n.debounceUpdateColumns(A(Z),()=>{b(n.columnGroup.length)})};a.provide(G4,X);const{renderFixedRows:M,resolveFixedColumnStyle:W}=jY(e,n),ne=()=>{var me;const Z=((me=E.value)==null?void 0:me.offsetWidth)-(e.scrollbar?1:j4);n.resolveColsCalcWidth(Z),W()},{dragOffsetX:B}=uY(n,{afterResize:W}),k=a.ref(!1),re=Z=>{if(!s.isShowPagination.value||e.remotePagination)return Z;const me=(s.options.current-1)*s.options.limit,ae=me+s.options.limit;return Z.slice(me,ae)},J=()=>{let Z=r.tableRowList.value.slice();return n.filterColumns.forEach(me=>{var ae;!n.isHiddenColumn(me.col)&&me[Ve.COL_FILTER_FN]&&((ae=me[Ve.COL_FILTER_VALUES])!=null&&ae.length)&&(Z=Z.filter((pe,G)=>me[Ve.COL_FILTER_FN](me[Ve.COL_FILTER_VALUES],pe,G,e.data)))}),n.sortColumns.forEach(me=>{!n.isHiddenColumn(me.col)&&me[Ve.COL_SORT_FN]&&me.active&&Z.sort((ae,pe)=>{let G=null,fe=null;return me.col.type==="index"&&(G=r.getRowAttribute(ae,Xe.ROW_INDEX),fe=r.getRowAttribute(pe,Xe.ROW_INDEX)),me[Ve.COL_SORT_FN](ae,pe,G,fe)})}),Z},K=a.computed(()=>s.isShowPagination.value?e.paginationHeight:0),F=()=>{m(K.value),/^\d+\.?\d*(px)?$/.test(`${e.height}`)&&f(Number(`${e.height}`.replace("px","")))},z=a.ref(!1),Y=yn.debounce((Z=!0)=>{const me=J();e.remotePagination||s.setPagination({count:me.length});const ae=re(me);r.setPageRowList(ae),Z&&(z.value=!0),a.nextTick(()=>{y(),ce(),z.value&&(_(0,0),z.value=!1)})},64),te=a.ref(!1);let ue=null;YY(E,()=>{if(!te.value){if(te.value=!0,(e.height==="100%"||e.virtualEnabled)&&yn.isElement(E.value)){if(k.value){setTimeout(()=>{k.value=!1});return}const Z=E.value.offsetHeight;k.value=!0,f(Z),y()}ne(),y(),_(0,0);return}ue&&clearTimeout(ue),ue=setTimeout(()=>{te.value=!1})});const ce=()=>{if(e.virtualEnabled&&(e.height==="100%"||e.height==="auto")){let me=r.getCurrentPageRowsHeight();if(/^\d+\.?\d*(px)?$/.test(`${e.maxHeight}`)){const ae=w(Number(`${e.maxHeight}`.replace("px","")));if(me>ae){f(ae,!1);return}}f(me,!1)}};a.watch(()=>[e.columns],()=>{n.debounceUpdateColumns(e.columns,()=>{b(n.columnGroup.length)})},{immediate:!0}),a.watch(()=>[B.value],()=>{p(B.value)}),a.watch(()=>[n.visibleColumns],()=>{a.nextTick(()=>ne())},{immediate:!0,deep:!0}),a.watch(()=>[n.filterColumns],()=>{Y()},{deep:!0}),a.watch(()=>[n.sortColumns],()=>{Y(!1)},{deep:!0}),a.watch(()=>[s.isShowPagination.value],()=>{F()},{immediate:!0}),a.watch(()=>[e.data],()=>{r.setTableRowList(e.data),Y(!1)},{immediate:!0,deep:!0}),a.watch(()=>[s.options.count,s.options.limit,s.options.current],()=>{Y(!1)},{immediate:!0});const be=a.computed(()=>r.pageRowList.length);return a.watch(be,(Z,me)=>{var ae,pe;Z<me&&((pe=(ae=C==null?void 0:C.value)==null?void 0:ae.updateScroll)==null||pe.call(ae),_(void 0,0))}),t.expose({setRowExpand:r.setRowExpand,setAllRowExpand:r.setAllRowExpand,clearSelection:()=>{r.clearSelection(),n.clearSelectionAll()},toggleAllSelection:r.toggleAllSelection,toggleRowSelection:r.toggleRowSelection,getSelection:r.getRowSelection,setRowSelection:r.setRowSelection,clearSort:n.clearColumnSort,scrollTo:_,getRoot:()=>E.value}),()=>o([d($,O.renderSettings,M),u(r.pageRowList,L,M),c(),h(P())])}}),n5=on(oX,{Column:JK}),Fm=a.defineComponent({name:"ListTagRender",props:{node:v.object,searchKey:v.oneOfType([v.string,v.arrayOf(v.string)]),displayKey:v.string,searchKeyword:v.string,tpl:{type:Function},disabled:v.bool.def(!1)},render(){const{resolveClassName:e}=xe(),t=r=>{if(this.searchKeyword&&!this.disabled){const s=new RegExp(`(${this.searchKeyword})`,"i");return r.replace(s,'<strong class="highlight-text">$1</strong>')}return r};if(this.tpl)return this.tpl(this.node,t,a.h,this);const n=this.node[this.displayKey];return a.createVNode("div",{class:`${e("selector-node")}`},[a.createVNode("span",{class:"text",innerHTML:t(n)},[n])])}}),lX=()=>({modelValue:v.arrayOf(v.string).def([]),placeholder:v.string.def(""),list:v.arrayOf(v.object).def([]),disabled:v.bool.def(!1),tooltipKey:v.string.def(""),saveKey:v.string.def("id"),displayKey:v.string.def("name"),hasDeleteIcon:v.bool.def(!1),clearable:v.bool.def(!0),trigger:Pe("treeTriggerType",{}).def("search"),searchKey:v.oneOfType([v.string,v.arrayOf(v.string)]).def("name"),useGroup:v.bool.def(!1),allowCreate:v.bool.def(!1),maxData:v.number.def(-1),maxResult:v.number.def(10),contentMaxHeight:v.number.def(300),contentWidth:v.number.def(190),separator:v.string.def(""),allowNextFocus:v.bool.def(!0),allowAutoMatch:v.bool.def(!1),showClearOnlyHover:v.bool.def(!1),isAsyncList:v.bool.def(!1),leftSpace:v.number.def(0),createTagValidator:{type:Function},filterCallback:{type:Function},tagTpl:{type:Function},tpl:{type:Function},pasteFn:{type:Function},withValidate:{type:Boolean,default:!0},popoverProps:{type:Object,default:()=>({})},collapseTags:{type:Boolean,default:!1},tagOverflowTips:{type:Object,default:()=>({})}}),cX=a.defineComponent({name:"TagRender",directives:{bkTooltips:sa},props:{node:v.object,displayKey:v.string,tooltipKey:v.string,tpl:{type:Function},hasTips:{type:Boolean,default:!1},tagOverflowTips:{type:Object,default:()=>({})}},setup(e){const t=a.ref(),n=a.ref(!1),r=a.computed(()=>({boundary:"window",theme:"light",distance:12,content:e.node[e.tooltipKey],disabled:!yG.has(e.node,e.tooltipKey)||!n.value,...e.tagOverflowTips}));return a.onMounted(()=>{n.value=$_(t.value)}),{overflowTips:r,tagRef:t}},render(){return this.tpl?this.tpl(this.node,a.h,this):a.withDirectives(a.createVNode("div",{ref:"tagRef",class:"tag"},[a.createVNode("span",{class:"text"},[this.node[this.displayKey]])]),[[a.resolveDirective("bk-tooltips"),this.overflowTips]])}}),uX=a.defineComponent({name:"TagInput",directives:{bkTooltips:sa},props:lX(),emits:["update:modelValue","change","select","focus","blur","remove","removeAll","input"],setup(e,{emit:t}){const n=ur(),r=ut("tagInput"),s=a.reactive({isEdit:!1,isHover:!1,focusItemIndex:e.allowCreate?-1:0}),o=a.reactive({isShow:!1,width:190,offset:{mainAxis:4,crossAxis:0},...e.popoverProps}),{resolveClassName:c}=xe(),{maxResult:u}=a.toRefs(e),{pageState:d,initPage:h,pageChange:f}=KI(u),m=a.ref(""),p=a.ref(null),y=a.ref(null),b=a.ref(null),N=a.ref(null),w=a.ref(null),C=a.ref(null),E=a.computed(()=>!e.disabled&&e.hasDeleteIcon),_=a.computed(()=>e.maxData===1),x=a.computed(()=>L.selectedTagList.length===0&&m.value===""&&!s.isEdit),O=a.computed(()=>e.placeholder||r.value.placeholder),T=a.computed(()=>e.clearable&&!e.disabled&&L.selectedTagList.length!==0&&(e.showClearOnlyHover?s.isHover:!0)),$=a.computed(()=>({[`${c("tag-input-trigger")}`]:!0,active:s.isEdit,disabled:e.disabled})),L=a.reactive({localList:[],tagListCache:[],selectedTagList:[],selectedTagListCache:[]}),P=a.computed(()=>L.selectedTagList.map(j=>j[e.saveKey])),{flatList:I,saveKeyMap:A}=YI(e),D=a.computed(()=>{if(e.useGroup){const j={};return d.curPageList.forEach((ie,ve)=>{ie.__index__=ve,j[ie.group.groupId]||(j[ie.group.groupId]={id:ie.group.groupId,name:ie.group.groupName,children:[]}),j[ie.group.groupId].children.push(ie)}),Object.keys(j).map(ie=>j[ie])}return d.curPageList});a.watch([()=>I.value],()=>{a.nextTick(()=>{B()})},{deep:!0}),a.watch(()=>e.modelValue,j=>{var ie;J(P.value,j)||(a.nextTick(()=>{B()}),e.withValidate&&((ie=n==null?void 0:n.validate)==null||ie.call(n,"change")))}),a.watch(m,Cu(()=>{const j=d.curPageList.length!==0,{value:ie}=m;ie!==""&&j||ie===""&&e.trigger==="focus"&&j?o.isShow=!0:(e.trigger!=="focus"||!j)&&(o.isShow=!1)},150)),a.watch(()=>o.isShow,j=>{X(),j&&w.value&&(a.nextTick(()=>{w.value.scrollTop=0}),w.value.removeEventListener("scroll",M),w.value.addEventListener("scroll",M))}),a.onMounted(()=>{B()});const X=()=>{var j;o.offset.crossAxis=_.value?0:(j=N.value)==null?void 0:j.offsetLeft},M=()=>{if(d.isPageLoading||w.value.scrollTop===0)return;const{scrollTop:j,offsetHeight:ie,scrollHeight:ve}=w.value;if(j+ie>=ve){const Ae=d.curPage+1;Ae<=d.totalPage&&(d.isPageLoading=!0,setTimeout(()=>{f(Ae)},500))}},W=()=>{var ie;return Array.from(((ie=b.value)==null?void 0:ie.childNodes)||[]).filter(ve=>![Node.TEXT_NODE,Node.COMMENT_NODE].includes(ve.nodeType))},ne=j=>{if(!e.disabled){if(j!=null&&j.target){const{className:ie}=j.target;(ie.indexOf(`${c("tag-input-trigger")}`)>-1||ie.indexOf("tag-list")>-1)&&b.value.appendChild(N.value)}clearTimeout(C.value),_.value&&P.value.length&&(L.tagListCache=[...P.value],L.selectedTagListCache=[...L.selectedTagList],m.value=L.selectedTagListCache[0][e.saveKey],de(L.selectedTagList[0],0),te()),s.isEdit=!0,setTimeout(()=>{var ie;(ie=p.value)==null||ie.focus(),e.trigger==="focus"&&L.localList.length!==0&&(k(),o.isShow?X():o.isShow=!0)},200)}},B=()=>{const{saveKey:j,modelValue:ie,displayKey:ve,allowCreate:Ae,trigger:Ie,isAsyncList:ke}=e;if(L.selectedTagList=[],L.localList=I.value,ie.length){const Ue={};L.selectedTagList=ie.map(tt=>{const at=A.value[tt];return Ue[tt]=1,!at&&Ae?{[j]:tt,[ve]:tt}:at}).filter(tt=>tt),_.value||(L.localList=L.localList.filter(tt=>!Ue[tt[j]]))}if(ke&&m.value){k(m.value),d.curPageList.length&&(o.isShow=!0);return}Ie==="focus"&&k()},k=(j="")=>{const{searchKey:ie,filterCallback:ve}=e,Ae=j.toLowerCase().trim();if(Ae===""){h(L.localList);return}let Ie=[];typeof ve=="function"?Ie=ve(Ae,ie,L.localList)||[]:Array.isArray(ie)?Ie=L.localList.filter(ke=>ie.some(Ue=>ke[Ue].toLowerCase().indexOf(Ae)>-1)):Ie=L.localList.filter(ke=>ke[ie].toLowerCase().indexOf(Ae)>-1),h(Ie)},re=(j,ie)=>{const ve={[`${c("selector-actived")}`]:!0,[`${c("selector-selected")}`]:P.value.includes(j[e.saveKey])};return e.useGroup?ve[`${c("selector-actived")}`]=j.__index__===s.focusItemIndex:ve[`${c("selector-actived")}`]=ie===s.focusItemIndex,ve};function J(j,ie){return j.length!==ie.length?!1:ie.every((ve,Ae)=>j[Ae]===ve)}const K=()=>{L.tagListCache=[],L.selectedTagListCache=[],L.selectedTagList=[]},F=()=>{m.value=""},z=()=>{if(_.value)return 0;const ie=W().findIndex(({id:ve})=>ve==="tagInputItem");return ie>=0?ie:0},Y=(j,ie,ve=!1)=>{if(!ie||!j)return;let Ae=ie;ve&&(Ae=ie.nextElementSibling||null),ie.parentNode.insertBefore(j,Ae)},te=j=>{const{maxData:ie,trigger:ve,allowCreate:Ae}=e;if(ie===-1||ie>P.value.length){const{value:Ie}=j!=null&&j.target?j.target:m,ke=e9(Ie);ke?(k(Ie),p.value.style.width=`${ke*(Ja/2)}px`):ve==="focus"&&(k(),p.value.style.width=`${Ja}px`)}else ce(),m.value="",o.isShow=!1;s.isEdit=!0,s.focusItemIndex=Ae?-1:0,t("input",m.value)},ue=()=>{var j;o.width=_.value?(j=y.value)==null?void 0:j.clientWidth:e.contentWidth,t("focus")},ce=()=>{C.value=setTimeout(()=>{var ie;const j=m.value;if(F(),s.isEdit=!1,e.allowAutoMatch&&j){if(_.value){const[Ae]=L.tagListCache;j===Ae&&L.selectedTagListCache.length&&se(L.selectedTagListCache[0],"select")}const ve=d.curPageList.find(Ae=>Array.isArray(e.searchKey)?e.searchKey.map(ke=>Ae[ke]).includes(j):Ae[e.searchKey]===j);ve?be(ve,"select"):e.allowCreate&&be(j,"custom")}o.isShow=!1,t("blur",j,P.value),(ie=n==null?void 0:n.validate)==null||ie.call(n,"blur")},200)},be=(j,ie,ve)=>{ve==null||ve.stopPropagation(),!(!j||j.disabled)&&(_.value&&K(),se(j,ie),me("select"),F(),o.isShow=!1)},Z=(j,ie,ve)=>{ve==null||ve.stopPropagation(),de(j,ie),F(),me("remove",j),p.value.style.width=`${Ja}px`},me=(j,ie)=>{t(j,ie),t("update:modelValue",P.value),t("change",P.value)},ae=j=>{j.stopPropagation();const ie=L.selectedTagList;L.selectedTagList=[];const ve=ie.filter(Ae=>A.value[Ae[e.saveKey]]);(e.allowCreate&&ve.length!==0||!e.allowCreate)&&!_.value&&L.localList.push(...ve),me("removeAll")},pe=()=>{const j={height:w.value.clientHeight,yAxis:w.value.getBoundingClientRect().y};a.nextTick(()=>{const ie=w.value.querySelector(`.${c("selector-actived")}`);if(!ie)return;const ve={height:ie.clientHeight,yAxis:ie.getBoundingClientRect().y};ve.yAxis<j.yAxis&&(w.value.scrollTop=w.value.scrollTop-(j.yAxis-ve.yAxis));const Ae=ve.yAxis+ve.height-j.yAxis;Ae>j.height&&(w.value.scrollTop=w.value.scrollTop+Ae-j.height)})},G=(j,ie)=>{const ve=W();Y(N.value,ve[j-1]),L.selectedTagList.splice(j-1,1),ne();const Ae=A.value[ie[e.saveKey]];(e.allowCreate&&Ae||!e.allowCreate)&&!_.value&&L.localList.push(ie),p.value=`${Ja}px`,me("remove")},fe=j=>{if(d.isPageLoading||j.isComposing)return;let ie;const ve=j.target.value,Ae=e9(ve),Ie=z(),ke=W();switch(j.code){case"ArrowUp":if(j.preventDefault(),!o.isShow)return;s.focusItemIndex=s.focusItemIndex-1,s.focusItemIndex=s.focusItemIndex<0?-1:s.focusItemIndex,s.focusItemIndex===-1&&(s.focusItemIndex=d.curPageList.length-1),pe();break;case"ArrowDown":if(j.preventDefault(),!o.isShow)return;s.focusItemIndex=s.focusItemIndex+1,s.focusItemIndex=s.focusItemIndex>d.curPageList.length-1?d.curPageList.length:s.focusItemIndex,s.focusItemIndex===d.curPageList.length&&(s.focusItemIndex=0),pe();break;case"ArrowLeft":if(s.isEdit=!0,!Ae){if(Ie<1)return;Y(N.value,ke[Ie-1]),ne()}break;case"ArrowRight":if(s.isEdit=!0,!Ae){if(Ie===ke.length-1)return;Y(ke[Ie+1],N.value),ne()}break;case"Enter":case"NumpadEnter":!e.allowCreate&&o.isShow||e.allowCreate&&s.focusItemIndex>=0&&o.isShow?be(d.curPageList[s.focusItemIndex],"select",j):e.allowCreate&&m.value.trim()&&be(m.value,"custom",j),j.preventDefault();break;case"Backspace":Ie!==0&&!m.value&&(ie=L.selectedTagList[Ie-1],G(Ie,ie));break}},we=j=>{const ie=[],ve=j.split(";"),Ae=/^[a-zA-Z][a-zA-Z_]*/g;return ve.forEach(Ie=>{const ke=Ie.match(Ae);if(ke){const Ue=ke.join("");ie.push({[e.saveKey]:Ue,[e.displayKey]:Ue})}}),ie},le=j=>{if(j.preventDefault(),_.value)return!1;const{maxData:ie,saveKey:ve,displayKey:Ae,pasteFn:Ie,allowCreate:ke}=e,Ue=j.clipboardData.getData("text");let at=(Ie?Ie(Ue):we(Ue)).map(qe=>qe[ve]);if(at.length){const qe=W(),At=z(),gt=L.localList.map(Ke=>Ke[ve]);if(at=at.filter(Ke=>{const Mt=(Ke==null?void 0:Ke.trim())&&!P.value.includes(Ke);return ke?Mt:Mt&&gt.includes(Ke)}),ie!==-1){const Ke=L.selectedTagList.length;if(Ke<ie){const Mt=ie-Ke;at.length>Mt&&(at=[...at.slice(0,Mt)])}else at=[]}const Et=ke?at.map(Ke=>L.localList.find(Pa=>Pa[ve]===Ke)??{[ve]:Ke,[Ae]:Ke}):L.localList.filter(Ke=>at.includes(Ke[ve]));at.length&&(L.selectedTagList.splice(At,0,...Et),Y(N.value,qe[At]),p.value.style.width=`${Ja}px`,L.localList=L.localList.filter(Ke=>!at.includes(Ke[ve])),me("select"),ne())}},q=j=>{e.disabled||(Y(N.value,j.currentTarget,!0),p.value.style.width=`${Ja}px`,o.isShow&&X())},se=(j,ie)=>{if(L.selectedTagList.length>=e.maxData&&e.maxData!==-1)return;const{separator:ve,saveKey:Ae,displayKey:Ie,createTagValidator:ke}=e,Ue=z();let tt=1,at=!1,qe;const At=gt=>typeof ke=="function"?ke(gt):!0;if(ie==="custom")if(ve){let gt=j.split(ve);gt=gt.filter(Ke=>(Ke==null?void 0:Ke.trim())&&!P.value.includes(Ke)&&At(Ke));const Et=gt.map(Ke=>A.value[Ke]||{[Ae]:Ke,[Ie]:Ke});gt.length&&(L.selectedTagList.splice(Ue,0,...Et),tt=Et.length,at=!0)}else{const gt=typeof j=="object";if(qe=gt?j[Ae]:j.trim(),qe=qe.replace(/\s+/g,""),qe!==void 0&&!P.value.includes(qe)&&At(qe)){const Et=A.value[qe]||(gt?j:{[Ae]:qe,[Ie]:qe});L.selectedTagList.splice(Ue,0,Et),at=!0}}else j&&(qe=j[Ae],qe!==void 0&&!P.value.includes(qe)&&(L.selectedTagList.splice(Ue,0,j),at=!0));at&&a.nextTick(()=>{for(let gt=1;gt<=tt;gt++){const Ke=W()[Ue+gt];Y(Ke,N.value)}if(p.value.style.width=`${Ja}px`,!_.value){e.allowNextFocus&&ne();const gt=P.value.reduce((Et,Ke)=>(Et[Ke]=1,Et),{});L.localList=L.localList.filter(Et=>!gt[Et[Ae]])}})},de=(j,ie)=>{L.selectedTagList.splice(ie,1);const ve=A.value[j[e.saveKey]];(e.allowCreate&&ve||!e.allowCreate)&&!_.value&&L.localList.push(j)},U=a.computed(()=>e.collapseTags?e.collapseTags&&!s.isEdit:e.collapseTags),{overflowTagIndex:ee}=Pp(y,U,P),Ce=a.computed(()=>L.selectedTagList.reduce((j,ie,ve)=>(ee.value!==null&&ve>=ee.value&&j.push(ie[e.displayKey]),j),[]));return{popoverProps:o,...a.toRefs(s),...a.toRefs(L),...a.toRefs(d),isShowPlaceholder:x,isShowClear:T,placeholderText:O,curInputValue:m,renderList:D,showTagClose:E,tagInputRef:p,bkTagSelectorRef:y,tagListRef:b,tagInputItemRef:N,selectorListRef:w,triggerClass:$,overflowTagIndex:ee,localCollapseTags:U,collapseTooltip:Ce,focusInputTrigger:ne,activeClass:re,handleInput:te,handleFocus:ue,handleBlur:ce,handleTagSelected:be,handleTagRemove:Z,handleClear:ae,tagFocus:q,handleKeydown:fe,handlePaste:le,resolveClassName:c}},render(){return a.createVNode("div",{ref:"bkTagSelectorRef",class:`${this.resolveClassName("tag-input")}`,onClick:this.focusInputTrigger,onMouseenter:()=>this.isHover=!0,onMouseleave:()=>this.isHover=!1},[a.createVNode(wn,a.mergeProps({arrow:!1,placement:"bottom-start",theme:`light ${this.resolveClassName("tag-input-popover-content")}`,trigger:"manual"},this.popoverProps),{default:()=>{var e,t;return a.createVNode("div",{class:this.triggerClass},[a.createVNode("ul",{ref:"tagListRef",style:{marginLeft:`${this.leftSpace}px`},class:"tag-list"},[this.selectedTagList.map((n,r)=>{const s=this.localCollapseTags&&this.overflowTagIndex&&r>=this.overflowTagIndex;return a.createVNode("li",{style:{display:s?"none":""},class:"tag-item",onClick:this.tagFocus},[a.createVNode(cX,{displayKey:this.displayKey,node:n,tagOverflowTips:this.tagOverflowTips,tooltipKey:this.tooltipKey||this.displayKey,tpl:this.tagTpl},null),this.showTagClose&&a.createVNode(an,{class:"remove-tag",onClick:this.handleTagRemove.bind(this,n,r)},null)])}),a.withDirectives(a.createVNode("li",{id:"tagInputItem",ref:"tagInputItemRef",class:"tag-input-item",role:"input"},[a.withDirectives(a.createVNode("input",{ref:"tagInputRef",class:"tag-input","onUpdate:modelValue":n=>this.curInputValue=n,type:"text",onBlur:this.handleBlur,onFocus:this.handleFocus,onInput:this.handleInput,onKeydown:this.handleKeydown,onPaste:this.handlePaste},null),[[a.vModelText,this.curInputValue]])]),[[a.vShow,this.isEdit]]),!!this.overflowTagIndex&&this.localCollapseTags&&a.withDirectives(a.createVNode("li",{class:"tag-item"},[a.createVNode("div",{class:"tag"},[a.createVNode("span",{class:"text"},[a.createTextVNode("+"),this.selectedTagList.length-this.overflowTagIndex])])]),[[a.resolveDirective("bk-tooltips"),this.collapseTooltip.join(", ")]])]),a.withDirectives(a.createVNode("p",{class:"placeholder"},[this.placeholderText]),[[a.vShow,this.isShowPlaceholder]]),((t=(e=this.$slots)==null?void 0:e.suffix)==null?void 0:t.call(e))??(this.isShowClear&&a.createVNode(bn,{class:"clear-icon",onClick:this.handleClear},null))])},content:()=>a.createVNode("div",{class:`${this.resolveClassName("selector-list")}`},[a.createVNode("ul",{ref:"selectorListRef",style:{"max-height":`${this.contentMaxHeight}px`},class:"outside-ul"},[this.renderList.map((e,t)=>this.useGroup?a.createVNode("li",{class:`${this.resolveClassName("selector-group-item")}`},[a.createVNode("span",{class:"group-name"},[e.name,a.createTextVNode(" ("),e.children.length,a.createTextVNode(")")]),a.createVNode("ul",{class:`${this.resolveClassName("selector-group-list-item")}`},[e.children.map((n,r)=>a.createVNode("li",{class:[`${this.resolveClassName("selector-list-item")}`,{disabled:n.disabled},this.activeClass(n,r)],onClick:this.handleTagSelected.bind(this,n,"select")},[a.createVNode(Fm,{disabled:n.disabled,displayKey:this.displayKey,node:n,searchKey:this.searchKey,searchKeyword:this.curInputValue,tpl:this.tpl},null)]))])]):a.createVNode("li",{class:[`${this.resolveClassName("selector-list-item")}`,{disabled:e.disabled},this.activeClass(e,t)],onClick:this.handleTagSelected.bind(this,e,"select")},[a.createVNode(Fm,{disabled:e.disabled,displayKey:this.displayKey,node:e,searchKey:this.searchKey,searchKeyword:this.curInputValue,tpl:this.tpl},null)])),this.isPageLoading?a.createVNode("li",{class:`${this.resolveClassName("selector-list-item")} loading`},[a.createVNode(La,{size:os.Small,theme:"primary"},null)]):null])])})])}}),r5=Qe(uX),a5=Qe(RR),dX={list:v.arrayOf(v.shape({tag:v.string,content:v.oneOfType([v.string,v.object]),type:v.string,size:v.string,color:v.string,icon:v.func,filled:v.bool,border:v.bool,nodeType:v.timelineNodeType()}).isRequired),titleAble:v.bool.def(!1)},fX=a.defineComponent({name:"Timeline",props:dX,emits:["select"],setup(e,{emit:t}){const n=a.shallowRef([]),{resolveClassName:r}=xe(),s=o=>{t("select",o)};return a.watch(()=>e.list,()=>{n.value=e.list.map(o=>({tag:o.tag,content:o.content,type:o.type,size:o.size,color:o.color,icon:o.icon,filled:o.filled,border:o.border??!0,nodeType:o.nodeType||"template"}))},{immediate:!0,deep:!0}),{defaultTimelines:n,handleTitleSelect:s,resolveClassName:r}},render(){const e=r=>{const{icon:s}=r;return typeof s=="object"||typeof s=="function"},t=r=>{const s=this.resolveClassName("timeline"),o=["blue","red","green","yellow","gray"],c=r.type?`${s}-${r.type}`:`${s}-default`,u=r.size?`${s}-${r.size}`:"",d=r.filled?`${s}-filled`:"",h=r.color&&o.includes(r.color)?`${s}-${r.color}`:"",f=e(r)?`${s}-custom`:"";return ze({},`${s} ${c} ${u} ${h} ${d} ${f}`)},n=r=>this.$slots.content?a.createVNode("div",{class:`${this.resolveClassName("timeline-content")}`},[this.$slots.content(r)]):r.nodeType==="vnode"?a.createVNode("div",{class:`${this.resolveClassName("timeline-content")}`},[r.content]):a.createVNode("div",{class:`${this.resolveClassName("timeline-content")}`,innerHTML:r.content},null);return a.createVNode("ul",{class:this.resolveClassName("timeline")},[this.defaultTimelines.map(r=>a.createVNode("li",{class:[`${this.resolveClassName("timeline-dot")}`,t(r)]},[e(r)&&a.createVNode("div",{style:{border:r.border?`2px solid ${r.color}`:"0px",borderRadius:r.border?"50%":"0"},class:`${this.resolveClassName("timeline-icon")}`},[a.createVNode("span",{class:`${this.resolveClassName("timeline-icon-inner")}`},[typeof r.icon=="function"?a.createVNode(r.icon,null,null):r.icon])]),a.createVNode("div",{class:`${this.resolveClassName("timeline-section")}`},[a.createVNode("div",{class:`${this.resolveClassName("timeline-title")}`,onClick:()=>this.handleTitleSelect(r)},[r.nodeType==="vnode"?r.tag:a.createVNode("span",{innerHTML:r.tag},null)]),n(r)])]))])}}),vu=Qe(fX);var wr=(e=>(e.BASE_ARRAY="baseArray",e.NOT_ARRAY="notArray",e.OBJECT_ARRAY="objectArray",e))(wr||{});const hX={title:v.arrayOf(v.string).def([]),extCls:v.string.def(""),searchPlaceholder:v.string.def(""),settingKey:v.string.def("id"),displayKey:v.string.def("value"),sortKey:v.string.def("value"),showOverflowTips:v.bool.def(!1),searchable:v.bool.def(!1),sortable:v.bool.def(!1),sourceList:v.arrayOf(v.any).def([]),targetList:v.arrayOf(v.any).def([]),emptyContent:v.arrayOf(v.string).def([]),multiple:v.bool.def(!1)};function mX(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}function gX(e,t,n){const r=a.ref([]),s=a.ref([]),o=(c=!1)=>{c&&(r.value=[],s.value=[]),e.value.forEach(u=>{const d=u[n.value];t.value.includes(d)?s.value.push(u):r.value.push(u)})};return o(),a.watch(()=>[e,t,n],()=>{o(!0)},{deep:!0}),{selectList:r,selectedList:s}}function pX(e,t){const n=a.ref(""),r=a.computed(()=>e.value.filter(s=>{const o=s[t.value];return o instanceof Object?!1:o.toString().includes(n.value)}));return{selectSearchQuery:n,selectListSearch:r}}const vX=a.defineComponent({name:"Transfer",props:hX,emits:["change","update:targetList"],setup(e,{emit:t}){const n=ut("transfer"),r=a.ref({source:!1,target:!1}),s=a.ref({source:[],target:[]}),o=a.computed(()=>Array.isArray(e.sourceList)?e.sourceList.every(A=>A.toString().includes("[object Object]"))?wr.OBJECT_ARRAY:wr.BASE_ARRAY:wr.NOT_ARRAY),c=a.computed(()=>o.value===wr.BASE_ARRAY?"value":e.settingKey),u=a.computed(()=>o.value===wr.BASE_ARRAY?"value":e.displayKey),d=a.computed(()=>e.sortKey||u.value),h=a.computed(()=>{switch(o.value){case wr.BASE_ARRAY:return[...new Set(e.sourceList)].map(I=>({value:I}));case wr.OBJECT_ARRAY:return[...e.sourceList];default:return[]}}),{targetList:f}=a.toRefs(e),{selectList:m,selectedList:p}=gX(h,f,c),{selectSearchQuery:y,selectListSearch:b}=pX(m,u),N=a.computed(()=>[...b.value].sort((I,A)=>{const D=I[d.value],X=A[d.value];return D>X?1:-1})),w=a.computed(()=>[...p.value].sort((I,A)=>{const D=I[d.value],X=A[d.value];return D>X?1:-1}));a.watch(()=>[m,p],()=>{e.multiple||O()},{deep:!0});const C=(I,A)=>{const D=c.value;return I.some(X=>X[D]===A[D])&&A.disabled},E=()=>{m.value=[...h.value.filter(I=>C(m.value,I))],p.value=[...h.value.filter(I=>!C(m.value,I))],O()},_=()=>{m.value=[...h.value.filter(I=>!C(p.value,I))],p.value=[...h.value.filter(I=>C(p.value,I))],O()},x=(I,A)=>{if(I.disabled)return;const D=I[c.value],X=A?m:p,M=A?p:m,W=X.value.findIndex(ne=>ne[c.value]===D);M.value.push(...X.value.splice(W,1)),O()},O=()=>{const I=m.value.map(D=>D[c.value]),A=p.value.map(D=>D[c.value]);t("update:targetList",A),t("change",o.value===wr.BASE_ARRAY?I:m.value.map(D=>a.toRaw(D)),o.value===wr.BASE_ARRAY?A:p.value.map(D=>a.toRaw(D)),A)},T=I=>{const A=I==="source"?m:p;r.value[I]=s.value[I].length===A.value.length},$=(I,A)=>{const D=A==="source"?m:p;s.value[A]=I?D.value.map(X=>X[c.value]):[]},L=I=>{const A=I==="left",D=A?m:p,X=A?p:m,M=s.value[A?"source":"target"],W=D.value.filter(ne=>M.includes(ne[c.value]));D.value=D.value.filter(ne=>!M.includes(ne[c.value])),X.value.push(...W),s.value[A?"source":"target"]=[],O()},{resolveClassName:P}=xe();return{selectSearchQuery:y,selectListSearch:b,selectedList:p,selectListSort:N,selectedListSort:w,settingCode:c,displayCode:u,allToRight:E,allToLeft:_,handleItemClick:x,t:n,handleAllChecked:$,multipleSelectAllValue:r,multipleSelectList:s,handleMultipleChange:L,handleItemChecked:T,resolveClassName:P}},render(){const{multiple:e}=this.$props,t=this.sortable?this.selectListSort:this.selectListSearch,n=this.sortable?this.selectedListSort:this.selectedList,r=u=>{const d=u==="left-header",h=d?"source":"target",f=d?`${this.title[0]??this.t.sourceList}`:`${this.title[1]??this.t.targetList}`,m=d?!t.length:!n.length,p=!!this.multipleSelectList[h].length&&!this.multipleSelectAllValue[h],y=this.multipleSelectList[h].length,b=()=>{m||(d?this.allToRight():this.allToLeft())};return this.$slots[u]?a.createVNode("div",{class:"slot-header"},[this.$slots[u]()]):a.createVNode("div",{class:"header"},[this.multiple?a.createVNode(sn,{class:"header-checkbox",modelValue:this.multipleSelectAllValue[h],"onUpdate:modelValue":N=>this.multipleSelectAllValue[h]=N,indeterminate:p,label:f,onChange:N=>this.handleAllChecked(N,h)},null):a.createVNode(a.Fragment,null,[`${f}(${d?t.length:n.length})`]),this.multiple?a.createVNode("div",{class:"select-total-count"},[a.createVNode("span",{class:"select-count"},[y]),a.createVNode("span",{class:"count-delimiter"},[a.createTextVNode("/")]),a.createVNode("span",{class:"total-count"},[d?t.length:n.length])]):a.createVNode("span",{class:{"select-all":!0,disabled:m},onClick:()=>b()},[d?this.t.selectAll:this.t.removeAll])])},s=u=>{const d=u==="left-empty-content",h=(d?this.emptyContent[0]:this.emptyContent[1])??(d?this.t.noData:this.t.noSelected);return this.$slots[u]?a.createVNode("div",null,[this.$slots[u]()]):a.createVNode("div",{class:"empty"},[h])},o=(u,d=!0)=>a.createVNode("div",{class:["item-content",{"is-disabled":u.disabled}]},[a.createVNode("span",{class:"content-text",title:u[this.displayCode]},[u[this.displayCode]]),!e&&a.createVNode("span",{class:"icon-wrapper"},[d?a.createVNode(Bu,{class:this.resolveClassName("icon")},null):a.createVNode(an,{class:[this.resolveClassName("icon"),this.resolveClassName("icon-delete")]},null)])]),c=u=>{let d;const h=u==="left",f=u==="left"?"source":"target",m=h?t:n,p=h?"source-option":"target-option",y=h?"left-empty-content":"right-empty-content",b=e?a.createVNode(pd,{class:"content is-flex",modelValue:this.multipleSelectList[f],"onUpdate:modelValue":N=>this.multipleSelectList[f]=N,onChange:()=>this.handleItemChecked(f)},mX(d=m.map(N=>a.createVNode("div",null,[a.createVNode(sn,{class:"checkbox-item",label:N[this.settingCode]},{default:()=>{var w,C;return[((C=(w=this.$slots)[p])==null?void 0:C.call(w,N))??o(N,h)]}})])))?d:{default:()=>[d]}):a.createVNode("ul",{class:["content",this.searchable&&h?"is-search":""]},[m.map(N=>{var w,C;return a.createVNode("li",{key:N[this.settingCode],class:[this.$slots[p]?"custom-item":""],onClick:()=>this.handleItemClick(N,h)},[((C=(w=this.$slots)[p])==null?void 0:C.call(w,N))??o(N,h)])})]);return m.length?b:s(y)};return a.createVNode("div",{class:[`${this.resolveClassName("transfer")}`,this.extCls]},[a.createVNode("div",{class:"source-list"},[r("left-header"),this.searchable&&a.createVNode($a,{class:"transfer-search-input",modelValue:this.selectSearchQuery,"onUpdate:modelValue":u=>this.selectSearchQuery=u,clearable:!0,placeholder:this.searchPlaceholder||this.t.search},{prefix:()=>a.createVNode(vs,{class:this.resolveClassName("icon-search")},null)}),c("left")]),e?a.createVNode("div",{class:"transfer-button-group"},[a.createVNode("div",{class:["transfer-button",{disabled:!this.multipleSelectList.source.length}],onClick:()=>this.handleMultipleChange("left")},[a.createVNode(Dn,null,null)]),a.createVNode("div",{class:["transfer-button",{disabled:!this.multipleSelectList.target.length}],onClick:()=>this.handleMultipleChange("right")},[a.createVNode(lr,null,null)])]):a.createVNode(ld,{class:this.resolveClassName("transfer-icon")},null),a.createVNode("div",{class:"target-list"},[r("right-header"),c("right")])])}}),s5=Qe(vX);var An=(e=>(e.NODE_CHECKED="nodeChecked",e.NODE_CLICK="nodeClick",e.NODE_COLLAPSE="nodeCollapse",e.NODE_DRAG_LEAVE="nodeDragLeave",e.NODE_DRAG_OVER="nodeDragOver",e.NODE_DRAG_START="nodeDragStart",e.NODE_DROP="nodeDrop",e.NODE_ENTER_VIEW="nodeEnterView",e.NODE_EXPAND="nodeExpand",e.NODE_SELECTED="nodeSelected",e))(An||{});const yr=(...e)=>!0,yX={nodeClick:yr,nodeCollapse:yr,nodeExpand:yr,nodeChecked:yr,nodeDragStart:yr,nodeDragOver:yr,nodeDragLeave:yr,nodeDrop:yr,nodeEnterView:yr,nodeSelected:yr};var Ee=(e=>(e.DEPTH="__depth",e.HAS_CHILD="__has_child",e.INDEX="__index",e.IS_ASYNC="__is_async",e.IS_ASYNC_INIT="__is_async_init",e.IS_CACHED="__is_cached",e.IS_CHECKED="__is_checked",e.IS_INDETERMINATE="__is_indeterminate",e.IS_LOADING="__is_loading",e.IS_MATCH="__is_match",e.IS_NULL="__IS_NULL",e.IS_OPEN="__is_open",e.IS_ROOT="__is_root",e.IS_SELECTED="__is_selected",e.ORDER="__order",e.PARENT="__parent",e.PATH="__path",e.TREE_NODE_ATTR="__attr__",e.UUID="__uuid",e))(Ee||{});const Ta={__is_open:"isOpen",__is_selected:"selected",__is_match:"isMatch",__has_child:"hasChild",__is_checked:"checked",__is_async:"async",__is_loading:"loading",__is_root:"isRoot"};var i5=(e=>(e.CLICK="click",e.COLLAPSE="collapse",e.EXPAND="expand",e.SELECTED="selected",e))(i5||{});const bX={data:v.arrayOf(v.any).def([]),label:v.oneOfType([v.func.def(void 0),v.string.def("label")]),nodeKey:v.string.def(void 0),children:v.string.def("children"),indent:v.number.def(16),lineHeight:v.number.def(32),height:v.number,levelLine:v.oneOfType([v.bool.def(!1),v.func.def(void 0),v.string.def("1px dashed #c3cdd7")]).def(!1),virtualRender:v.bool.def(!1),prefixIcon:v.oneOfType([v.func.def(()=>{}),v.bool.def(!1)]).def(!0),async:v.shape({callback:v.func.def(void 0),cache:v.bool.def(!0),deepAutoOpen:Pe("columnType",{}).def("once")}),offsetLeft:v.number.def(5),search:v.oneOfType([v.shape({value:v.oneOfType([v.number,v.string,v.bool]).def(""),match:v.oneOfType([rn(),v.func]).def("fuzzy"),resultType:rn().def("tree"),showChildNodes:v.bool.def(!1)}),v.string,v.number,v.bool]).def(void 0),emptyText:v.string.def("没有数据"),draggable:v.bool.def(!1),disableDrag:v.func,disableDrop:v.func,dragSort:v.bool.def(!1),selectable:v.oneOfType([v.bool,v.func]).def(!0),disabledFolderSelectable:v.bool.def(!1),showCheckbox:v.oneOfType([v.bool,v.func]).def(!1),checked:v.arrayOf(v.any).def([]),showNodeTypeIcon:v.bool.def(!0),selected:v.oneOfType([v.string,v.number,v.object]),autoCheckChildren:v.oneOfType([v.bool,v.func]).def(!0),autoOpenParentNode:v.bool.def(!0),expandAll:v.bool.def(!1),nodeContentAction:v.oneOfType([v.arrayOf(Pe("nodeContentActionType",{}).def(i5.CLICK)),v.func.def(()=>["selected"])]).def(["selected","expand","click"]),keepSlotData:v.bool.def(!1),checkStrictly:v.bool.def(!0),intersectionObserver:v.oneOfType([v.bool.def(!1),v.shape({enabled:v.bool.def(!1),callback:v.func.def(void 0)})]).def(!1)},wX=e=>({renderEmpty:t=>a.createVNode(_d,{scene:"part",type:t},{default:()=>[e.emptyText]})}),CX=e=>{const t={enabled:e.intersectionObserver,once:!1,callback:null};let n=null,r=[],s=null;const o=()=>typeof e.intersectionObserver=="boolean"?t:typeof e.intersectionObserver=="object"?Object.assign({},t,e.intersectionObserver):t,c=a.computed(o),u=p=>p instanceof NodeList?Array.from(p):Array.isArray(p)?p:[p];return{unobserveAll:()=>{r==null||r.forEach(p=>{yn.isElement(p)&&(n==null||n.unobserve(p))}),n==null||n.disconnect(),s==null||s.disconnect()},intersectionObserver:c,initIntersectionObserver:(p,y,b)=>{if(c.value.enabled){if(!p){console.error("intersectionObserver.target is undefined");return}r=u(p);const N=Object.assign({rootMargin:"0px"},y);n=new IntersectionObserver(function(w){w.forEach(C=>{var E,_,x;if(console.log("entry",C.target),C.isIntersecting){const O=((E=b==null?void 0:b.beforeResponse)==null?void 0:E.call(b,C))??C;(x=(_=c.value).callback)==null||x.call(_,O),c.value.once&&n.unobserve(C.target)}})},N),r.forEach(w=>{yn.isElement(w)&&n.observe(w)})}},initRootMutationObserver:(p,y)=>{if(c.value.enabled&&!e.virtualRender&&yn.isElement(p)){const b={attributes:!0,childList:!0,subtree:!0};s=new MutationObserver((...N)=>{y==null||y(...N)}),s.observe(p,b)}},getLastVisibleElement:(p,y)=>{const{offsetHeight:b}=y,N=y.querySelectorAll("[data-tree-node]"),w=b+p;return Array.from(N).filter(E=>E.offsetHeight+E.offsetTop>=w&&E.offsetTop<w)}}},Ld=(e,t)=>{const n=k=>e.schema.get(k),r=(k,re)=>{var J;return(J=n(k))==null?void 0:J[re]},s=(k,re,J,K)=>{if(!e.schema.has(k)){console.warn("node is not in schema, please check",K,k);return}e.schema.set(k,Object.assign({},n(k),{[re]:J}))},o=k=>e.data.find(re=>d(re)===k),c=(k,re,J)=>{if(Array.isArray(k)){Array.prototype.forEach.call(k,K=>s(o(K),re,J,k));return}s(o(k),re,J,k)},u=k=>r(k,Ee.PATH),d=k=>r(k,Ee.UUID),h=k=>r(k,Ee.IS_OPEN),f=k=>r(k,Ee.HAS_CHILD),m=k=>r(k,Ee.IS_MATCH),p=k=>r(k,Ee.IS_CHECKED),y=k=>r(r(k,Ee.PARENT),Ee.UUID),b=k=>r(k,Ee.IS_LOADING),N=k=>r(k,Ee.PARENT),w=k=>r(k,Ee.IS_MATCH),C=(k,re)=>{const J=e.data.find(K=>d(K)===k);return r(J,re)},E=k=>typeof k=="string"?C(k,Ee.IS_ROOT):r(k,Ee.IS_ROOT),_=k=>{const re=e.data.find(J=>d(J)===k);return y(re)},x=k=>{const re=e.data.find(J=>d(J)===k);return u(re)},O=(k,re)=>{s(k,Ee.IS_LOADING,re)},T=k=>typeof k=="object"?h(k):typeof k=="string"?C(k,Ee.IS_OPEN):!1,$=(k,re)=>r(r(k,Ee.PARENT),re),L=k=>T(r(k,Ee.PARENT)),P=k=>E(k)||T(k)||L(k),I=(k,re)=>{const K=k.split("-").reduce((F,z)=>{const Y=Number(z);return Array.isArray(F)?F[Y]:F[t.children][Y]},t.data);return re&&Object.assign(K,{[Ee.UUID]:re}),K},A=k=>k[t.children]??[],D=k=>e.data.find(re=>d(re)===k),X=k=>E(k)?{[t.children]:t.data}:N(k),M=k=>({[Ta[Ee.IS_LOADING]]:r(k,Ee.IS_LOADING),[Ta[Ee.HAS_CHILD]]:f(k),[Ta[Ee.IS_MATCH]]:m(k),[Ta[Ee.IS_CHECKED]]:p(k),[Ta[Ee.IS_OPEN]]:h(k),[Ta[Ee.IS_ROOT]]:E(k),fullPath:r(k,Ee.PATH),uuid:d(k),parent:r(k,Ee.PARENT),parentId:d(r(k,Ee.PARENT))});return{getSchemaVal:n,getNodeAttr:r,getNodeId:d,getNodeById:o,getNodeParentId:y,getParentNodeData:X,getNodePathById:x,getNodeAttrById:C,getNodeParentIdById:_,getParentNodeAttr:$,getParentNode:N,setNodeAttr:s,setNodeAttrById:c,getNodePath:u,isRootNode:E,isNodeOpened:h,hasChildNode:f,isItemOpen:T,isNodeChecked:p,isNodeMatched:m,isNodeLoading:b,checkNodeIsOpen:P,getSourceNodeByPath:I,getSourceNodeByUID:D,isMatchedNode:w,resolveScopedSlotParam:M,setTreeNodeLoading:O,extendNodeAttr:k=>Object.assign({},k,{[Ee.TREE_NODE_ATTR]:M(k)}),getChildNodes:A,extendNodeScopedData:k=>({data:k,attributes:M(k)}),getIntersectionResponse:k=>{var Y;if(!k)return null;let re=k;yn.isElement(k)&&(re=o(k.getAttribute("data-tree-node")));const J=r(re,Ee.DEPTH),K=r(re,Ee.IS_ROOT),F=r(re,Ee.PARENT),z=K?r(re,Ee.INDEX):(Y=F==null?void 0:F[t.children])==null?void 0:Y.findIndex(te=>te===re);return{level:J,target:k,index:z,parent:F,node:re,isRoot:K}}}},o5="1px dashed #c3cdd7",l5=(e,t,n=null,r=null,s=null,o=[])=>{const c=e[t];return typeof c=="boolean"?c?r:s:c5(n,e,t,o)},c5=(e,t,n,r=[])=>{const s=t[n];if(typeof s=="string")return typeof e=="object"&&e!==null?(Object.prototype.hasOwnProperty.call(e,s)||console.error(`cannot find node label with key ${s}`),e[s]):s;if(typeof s=="function"){const o=s.apply(void 0,[e,...r]);if(typeof o=="string")return o;console.error("props label with function return value is not string, please check and return string");return}},u5=(e,t)=>c5(e,t,"label"),NX=(e,t)=>({"--level-line":l5(t,"levelLine",e,o5,null,["tree"]),"--lineHeight":`${t.lineHeight}px`,"--indent":`${t.indent}px`,"--offset-left":`${t.offsetLeft}px`}),xX=(e,t,n,r=!0)=>{var c;const{schema:s}=n,o=(c=s.get(e))==null?void 0:c[Ee.DEPTH];if(r){const u=["node"],d=()=>l5(t,"levelLine",e,o5,null,u);return{"--depth":o,...typeof t.levelLine=="function"?{"--level-line":d()}:{}}}return{}},_X=(e,t,n,r=!0)=>{const{__is_root:s,__is_open:o}=t.get(e)||{},{resolveClassName:c}=xe();return{"is-root":s,[`${c("tree-node")}`]:!0,"is-open":o,"is-virtual-render":n.virtualRender,"level-line":n.levelLine&&r}},SX=(e,t)=>{const{__is_checked:n,__is_selected:r}=t.get(e)||{},{resolveClassName:s}=xe();return{"is-checked":n,"is-selected":r,"node-folder":e.is_folder,"node-leaf":e.is_leaf,[`${s("node-row")}`]:!0}},TX=(e,t,n,r,s)=>{EX(e,t,n,{[r]:s})},EX=(e,t,n,r)=>{const o=e.split("-").reduce((c,u)=>{const d=Number(u);return Array.isArray(c)?c[d]:c[n][d]},t);Object.assign(o,r||{})},po=e=>e??{__IS_NULL:!0},Hc=(e,t,n)=>Array.isArray(t)?t.some(r=>Hc(e,r,n)):typeof t=="string"||typeof t=="number"?t===n:e===t,d5=(e,t)=>typeof e.showCheckbox=="function"?e.showCheckbox(t):e.showCheckbox,f5=(e,t)=>{const{setNodeAttr:n,getNodePath:r,getNodeAttr:s,resolveScopedSlotParam:o,setTreeNodeLoading:c}=Ld(t,e),u=(f,m)=>{if(typeof f=="object"&&f!==null){n(m,Ee.IS_OPEN,!0);const p=Array.isArray(f)?f:[f];return TX(r(m),e.data,e.children,e.children,p),Promise.resolve(f)}return Promise.resolve(f)},d=f=>{const{callback:m=null,cache:p=!0}=e.async||{};if(typeof m=="function"&&s(f,Ee.IS_ASYNC)){if(n(f,Ee.IS_ASYNC_INIT,!0),!s(f,Ee.IS_CACHED)){n(f,Ee.IS_CACHED,p);const y=o(f),b=m(f,N=>u(N,f),y);if(typeof b=="object"&&b!==null)return c(f,!0),b instanceof Promise?Promise.resolve(b.then(N=>u(N,f)).catch(N=>console.error("load remote data error:",N)).finally(()=>{c(f,!1),n(f,Ee.IS_CACHED,!0)})):(u(b,f),c(f,!1),Promise.resolve(!0))}return Promise.resolve(!0)}return Promise.resolve(!0)},h=()=>{const f=t.data.filter(m=>s(m,Ee.IS_ASYNC)&&m[Ta[Ee.IS_OPEN]]&&!s(m,Ee.IS_ASYNC_INIT));f.length&&Promise.all(f.map(m=>d(m))).then(()=>{h()}).catch(m=>{console.warn(m)})};return{asyncNodeClick:d,deepAutoOpen:h}},OX=(e,t,n,r,s)=>{let o=e.selected;const{setNodeAttr:c,setNodeAttrById:u,getNodePath:d,getSchemaVal:h,getNodeAttr:f,getNodeId:m,getChildNodes:p,isRootNode:y,hasChildNode:b,isItemOpen:N,isNodeOpened:w,isNodeLoading:C,isNodeChecked:E,getParentNode:_,resolveScopedSlotParam:x,extendNodeAttr:O,extendNodeScopedData:T}=Ld(n,e),{resolveClassName:$}=xe(),{registerNextLoop:L}=s,{asyncNodeClick:P,deepAutoOpen:I}=f5(e,n),A=le=>N(le)?a.createVNode(Zu,{class:[$("tree-icon"),$("node-prefix")]},null):a.createVNode(Ju,{class:[$("tree-icon"),$("node-prefix")]},null),D=le=>{if(typeof le=="string")return le;if(typeof le=="object"&&le!==null){if(a.isVNode(le))return le;const{node:q,className:se,text:de,style:U}=le;return a.h(q,{class:se,style:U},de)}return null},X=le=>{var q,se;return((se=(q=t.slots).nodeLoading)==null?void 0:se.call(q,G(le)))??C(le)?a.createVNode(Oi,null,null):""},M=le=>{if(t.slots.nodeAction)return t.slots.nodeAction(G(le));let q=null;if(C(le))return X(le);if(typeof e.prefixIcon=="function"&&(q=e.prefixIcon(G(le),"node_action"),q!=="default"))return D(q);if(q==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon){const se=typeof e.autoCheckChildren=="function"?e.autoCheckChildren(le):e.autoCheckChildren;if(b(le)||le.async||!se)return N(le)?a.createVNode(Zo,{class:$("node-prefix")},null):a.createVNode(nl,{class:$("node-prefix")},null)}return null},W=le=>{if(!e.showNodeTypeIcon)return null;if(t.slots.nodeType)return t.slots.nodeType(G(le));let q=null;return typeof e.prefixIcon=="function"&&(q=e.prefixIcon(G(le),"node_type"),q!=="default")?D(q):q==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon?y(le)||b(le)?A(le):a.createVNode(od,{class:[$("tree-icon"),$("node-prefix")]},null):null},ne=(le,q)=>{const se=_(le);if(se){const de=q||(p(se)||[]).some(U=>E(U));c(se,Ee.IS_CHECKED,de),c(se,Ee.IS_INDETERMINATE,(p(se)||[]).some(U=>!E(U)||re(U))),y(se)||ne(se,q)}},B=(le,q,se)=>{p(le).forEach(de=>{Array.isArray(q)?q.forEach((U,ee)=>{c(de,U,se[ee])}):c(de,q,se),B(de,q,se)})},k=(le,q,se)=>{se==null||se.preventDefault(),se==null||se.stopImmediatePropagation(),se==null||se.stopPropagation(),c(le,Ee.IS_CHECKED,!!q),q&&c(le,Ee.IS_INDETERMINATE,!1),e.checkStrictly&&(B(le,[Ee.IS_CHECKED,Ee.IS_INDETERMINATE],[!!q,!1]),ne(le,q)),t.emit(An.NODE_CHECKED,n.data.filter(de=>E(de)),n.data.filter(de=>re(de))),Z(le,se)},re=le=>E(le)&&f(le,Ee.IS_INDETERMINATE),J=le=>d5(e,T(le))?a.createVNode("span",{onClick:fe},[a.createVNode(sn,{indeterminate:re(le),modelValue:E(le),size:"small",onChange:(q,se)=>k(le,!!q,se)},null)]):null,K=(le,q=null,se=null,de=!0)=>{const U=q===null?!N(le):!!q;if(U||B(le,Ee.IS_OPEN,U),c(le,Ee.IS_OPEN,U),de){const ee=N(le)?An.NODE_EXPAND:An.NODE_COLLAPSE;t.emit(ee,le,x(le),h(le),se)}},F=(le,q,se)=>{if(Array.isArray(le)){le.forEach(de=>c(po(de),q,se));return}c(po(le),q,se)},z=(le,q=!0,se=!1)=>{Y(le,Ee.IS_OPEN,q,se&&q)},Y=(le,q,se,de=!1)=>{const U=po(le);if(U[Ee.IS_NULL])return;const ee=Array.isArray(q)?q:[q],Ce=Array.isArray(se)?se:[se];if(de){if(ee.forEach((j,ie)=>F(U,j,Ce[ie])),!y(U)){const j=_(U);ee.forEach((ie,ve)=>{f(j,ie)!==se&&Y(j,ie,Ce[ve],de)})}}else ee.forEach((j,ie)=>F(U,j,Ce[ie]))},te=(le,q)=>{if(N(le)){K(le,!1,q,!0);return}P(le).finally(()=>{f(le,Ee.IS_LOADING)?L("setNodeOpenedAfterLoading",{type:"once",fn:()=>K(le,!0,q,!0)}):K(le,!0,q,!0)})},ue=(le,q)=>{le.stopImmediatePropagation(),le.stopPropagation(),le.preventDefault(),te(q,le)},ce=(le,q=!0,se=!0,de=!1)=>{const U=Array.isArray(le)?le:[le];if(!U.length)return;let ee=po(U[0]);if((typeof ee=="string"||typeof ee=="number"||typeof ee=="symbol")&&(ee=n.data.find(Ce=>m(Ce)===ee)??{[Ee.IS_NULL]:!0}),!ee[Ee.IS_NULL]){if(!e.selectable||typeof e.selectable=="function"&&!e.selectable(le)||e.disabledFolderSelectable&&ee.is_folder===!0){console.warn("props.selectable is false or undefined, please set selectable with true");return}o!=null&&u(o,Ee.IS_SELECTED,!q),e.selected&&e.selected!==o&&u(e.selected,Ee.IS_SELECTED,!q),c(ee,Ee.IS_SELECTED,q),o=m(ee),de&&t.emit(An.NODE_SELECTED,{selected:q,node:ee}),se&&U.length===1&&z(ee,!0,!0),f(ee,Ee.IS_ASYNC)&&P(ee).then(()=>{a.nextTick(()=>{U.shift(),ce(U,q,se)})})}},be=le=>typeof e.nodeContentAction=="function"?Reflect.apply(e.nodeContentAction,void 0,[{node:le}]):typeof e.nodeContentAction=="string"?[e.nodeContentAction]:Array.isArray(e.nodeContentAction)?e.nodeContentAction:["selected","expand","click"],Z=(le,q)=>{const se=be(le);if(se.includes("selected")&&ce(le,!0,!0,!0),se.includes("expand")&&(w(le)||te(le,q)),se.includes("collapse")&&w(le)&&te(le,q),se.includes("click")){const de=An.NODE_CLICK;t.emit(de,le,x(le),h(le),q)}},me=(le,q)=>{if(y(q))return!1;const se=d(q),de=`${se}`.split("-").slice(0,le+1);if(de.join("-")===se)return!0;const ee=de.pop(),Ce=parseInt(ee,10);de.push(`${Ce+1}`);const j=de.join("-");return n.data.some(ie=>d(ie)===j)},ae=le=>{if(!e.levelLine)return null;const q=de=>({"--depth":de}),se=(f(le,Ee.DEPTH)??0)+1;return new Array(se).fill("").map((de,U)=>U).filter(de=>me(de,le)).filter(de=>de>0).map(de=>a.createVNode("span",{style:q(se-de),class:"node-virtual-line"},null))},pe=le=>{var q,se,de,U;return t.slots.node?(se=(q=t.slots).node)==null?void 0:se.call(q,G(le)):t.slots.default?(U=(de=t.slots).default)==null?void 0:U.call(de,T(le)):[u5(le,e)]},G=le=>e.keepSlotData?T(le):O(le),fe=le=>{le.stopImmediatePropagation(),le.stopPropagation()};return{renderTreeNode:(le,q=!0)=>{var se,de;return a.createVNode("div",{key:m(le),class:SX(le,n.schema),"data-tree-node":m(le)},[a.createVNode("div",{style:xX(le,e,n,q),class:_X(le,n.schema,e,q),onClick:U=>Z(le,U)},[a.createVNode("div",{class:[$("node-action")],onClick:U=>ue(U,le)},[M(le)]),a.createVNode("div",{class:$("node-content")},[[J(le),W(le)],a.createVNode("span",{class:$("node-text")},[pe(le)]),(de=(se=t.slots).nodeAppend)==null?void 0:de.call(se,G(le))]),q&&ae(le)])])},handleTreeNodeClick:te,deepAutoOpen:I,asyncNodeClick:P,setNodeAction:F,setNodeOpened:K,setSelect:ce,setOpen:z,setNodeAttribute:Y,isIndeterminate:re}},LX=(e,t,n,r)=>{const{getSourceNodeByUID:s,getParentNodeData:o,getNodeParentIdById:c,extendNodeAttr:u,getNodeAttrById:d,getNodePathById:h,isRootNode:f}=Ld(r,e),{resolveClassName:m}=xe(),p=a.computed(()=>typeof e.disableDrag=="function"),y=a.computed(()=>typeof e.disableDrop=="function");let b="";const N=I=>I.target.closest("[data-tree-node]"),w=I=>{var D;const A=(D=I==null?void 0:I.dataset)==null?void 0:D.treeNode;return s(A)},C=I=>{N(I).removeEventListener("mouseup",C)},E=I=>{const A=N(I),D=w(A);if(D.draggable===!1||p.value&&e.disableDrag(D)){A.classList.add(`${m("tree-drag-disabled")}`);return}A.setAttribute("draggable","true"),A.addEventListener("mouseup",C)},_=I=>{I.preventDefault();const A=N(I),D=u(w(A));if(t.emit(An.NODE_DRAG_OVER,I,A,D),y.value&&(e!=null&&e.disableDrop(D))){I.dataTransfer.effectAllowed="move",I.dataTransfer.dropEffect="none",A.classList.add(`${m("tree-drop-disabled")}`);return}A.classList.add(`${m("tree-drop-active")}`);let X=I.dataTransfer.getData("node-id");X=b;const M=A.getAttribute("data-tree-node"),W=T(X,M)?"move":"none";I.dataTransfer.effectAllowed=W,I.dataTransfer.dropEffect=W},x=I=>{I.dataTransfer.effectAllowed="move",I.dataTransfer.dropEffect="move";const A=N(I);I.dataTransfer.setData("text/plain","");const D=A.getAttribute("data-tree-node");b=D,I.dataTransfer.setData("node-id",D),t.emit(An.NODE_DRAG_START,I,A)},O=I=>{I.preventDefault(),I.stopPropagation();const A=N(I);A.classList.remove(`${m("tree-drop-active")}`,`${m("tree-drop-disabled")}`);const D=u(w(A));if(y.value&&e.disableDrop(D))return;const X=b,M=A.getAttribute("data-tree-node");Reflect.apply(e.dragSort?$:L,void 0,[X,M]),t.emit(An.NODE_DROP,I,A,D)},T=(I,A)=>{const D=h(I),X=h(A),M=c(I),W=c(A);return M===W?!0:D.indexOf(X)===-1&&X.indexOf(D)===-1},$=(I,A)=>{if(!T(I,A))return;const D=JSON.parse(JSON.stringify(s(I))),X=JSON.parse(JSON.stringify(s(A))),M=o(I),W=o(A),ne=d(I,Ee.INDEX),B=d(A,Ee.INDEX);M==null||M[e.children].splice(ne,1,X),W==null||W[e.children].splice(B,1,D)},L=(I,A)=>{const D=s(I),X=s(A);let M=null;if(f(I))M=e.data;else{const W=c(I);if(W!=null){M=s(W);const ne=d(I,Ee.INDEX);M==null||M[e.children].splice(ne,1)}}X[e.children]||(X[e.children]=[]),X[e.children].unshift(D)},P=I=>{I.preventDefault();const A=N(I);A.classList.remove(`${m("tree-drop-active")}`,`${m("tree-drop-disabled")}`),t.emit(An.NODE_DRAG_LEAVE,I,A)};a.onMounted(()=>{if(e.draggable&&n.value){const I=n.value.$el;I.addEventListener("mousedown",E),I.addEventListener("dragstart",x),I.addEventListener("dragover",_),I.addEventListener("dragleave",P),I.addEventListener("drop",O)}}),a.onUnmounted(()=>{if(e.draggable&&n.value){const I=n.value.$el;I.removeEventListener("mousedown",E),I.removeEventListener("dragstart",x),I.removeEventListener("dragover",_),I.removeEventListener("dragleave",P),I.removeEventListener("drop",O)}})},AX=e=>{const t=a.toRef(e,"search"),{resultType:n="tree",showChildNodes:r=!0}=e.search??{},s=p=>["string","number","boolean"].includes(typeof p),o=(p,y)=>p===y,c=(p,y)=>new RegExp(`${p}`,"i").test(`${y}`),u=(p,y)=>Reflect.apply(p,void 0,y),d=t.value===void 0||t.value===!1,h=(p,y)=>{if(d)return!0;if(s(t.value))return`${t.value}`.length===0?!1:u(c,[t.value,p,y]);const{value:b="",match:N="fuzzy"}=t.value,C=typeof N=="function"?N:N==="fuzzy"?c:o;return`${b}`.length===0?!1:u(C,[b,p,y])},f=a.computed(()=>{if(t.value===!1)return!1;if(s(t.value))return`${t.value}`.length>0;const{value:p=""}=t.value;return`${p}`.length>0}),m=a.computed(()=>n==="tree");return{searchFn:h,refSearch:t,isSearchActive:f,isSearchDisabled:d,resultType:n,isTreeUI:m,showChildNodes:r}},VX=e=>{var N;const t=(w=void 0,C=null)=>{const{data:E,children:_}=e,x=[],O=[];let T=0;const $=new WeakMap;function L(k,re,J,K){if(k!=null&&$.has(k)){const F=$.get(k);if(Object.prototype.hasOwnProperty.call(F,re)&&typeof K=="function"&&Reflect.apply(K,self,[F,re,J,k])){if(F[re]===J)return;Object.assign(F,{[re]:J}),L(F[Ee.PARENT],re,J,K)}}}function P(k){let re=null;return typeof e.nodeKey=="string"&&(re=k[e.nodeKey]||or()),re||k[Ee.UUID]||or()}const I={[Ee.IS_OPEN]:()=>!!e.expandAll,[Ee.IS_CHECKED]:()=>!1,[Ee.IS_MATCH]:()=>!1,[Ee.IS_SELECTED]:(k,re)=>Hc(k,e.selected,re),[Ee.IS_CACHED]:()=>!1,[Ee.IS_ASYNC]:()=>null,[Ee.IS_LOADING]:()=>!1};function A(k,re,J,K=void 0){let F=K;K===void 0&&typeof I[J]=="function"&&(F=I[J](re,k));const z=Ta[J];if(Object.prototype.hasOwnProperty.call(re,z))return re[z];const Y=(C==null?void 0:C.get(re))??void 0;let te;return Y&&(te=Y[J]),te==null&&(te=F),te}function D(k,re){if(!e.selectable)return!1;const J=Hc(re,e.selected,k);return A(k,re,Ee.IS_SELECTED,J)}function X(k,re,J){var z;const K=A(k,re,Ee.IS_OPEN),F=$.has(J)?(z=$.get(J))==null?void 0:z[Ee.IS_OPEN]:!0;return K&&F}function M(k,re,J){if(!d5(e,{data:k,attributes:J}))return!1;const F=Hc(k,e.checked,re);return A(re,k,Ee.IS_CHECKED,F)}function W(k){return!((k==null?void 0:k[Ee.IS_OPEN])??!1)}function ne(k,re,J,K){return k[Ee.IS_INDETERMINATE]=(K[e.children]||[]).some(F=>{var z;return!(((z=$.get(F))==null?void 0:z[Ee.IS_CHECKED])??!1)}),!0}function B(k,re=0,J=null,K=null){const F=k.length;for(let z=0;z<F;z++){const Y=k[z];if(Array.isArray(Y))B(Y,re,J,K);else if(typeof Y=="object"&&Y!==null){const te=K!==null?`${K}-${z}`:`${z}`,ue=`${P(Y)}`,ce=!!(Y[_]||[]).length;let be=A(ue,Y,Ee.IS_OPEN);e.autoOpenParentNode?be&&L(J,Ee.IS_OPEN,!0,W):be=X(ue,Y,J);const Z={[Ee.DEPTH]:re,[Ee.INDEX]:z,[Ee.UUID]:ue,[Ee.PARENT]:J,[Ee.HAS_CHILD]:ce,[Ee.PATH]:te,[Ee.IS_ROOT]:J===null,[Ee.ORDER]:T,[Ee.IS_SELECTED]:D(ue,Y),[Ee.IS_MATCH]:A(ue,Y,Ee.IS_MATCH),[Ee.IS_OPEN]:be,[Ee.IS_CHECKED]:void 0,[Ee.IS_CACHED]:A(ue,Y,Ee.IS_CACHED),[Ee.IS_ASYNC]:A(ue,Y,Ee.IS_ASYNC),[Ee.IS_LOADING]:A(ue,Y,Ee.IS_LOADING),[Ee.IS_INDETERMINATE]:!1};Z[Ee.IS_CHECKED]=M(Y,ue,Z),Z[Ee.IS_CHECKED]&&x.push(Y),$.set(Y,Z),O.push(Y),T+=1,Object.prototype.hasOwnProperty.call(Y,_)&&B(Y[_]||[],re+1,Y,te)}}}return B(w??E),e.showCheckbox!==!1&&e.checkStrictly&&(x==null||x.forEach(k=>{L(k,Ee.IS_CHECKED,!0,ne)})),[O,$]},n=t(),r=new Map,s=[],o=[],c=a.reactive({data:n[0],schema:n[1],levelLineSchema:{}}),{asyncNodeClick:u,deepAutoOpen:d}=f5(e,c),h=w=>{s.push(w)},f=(w,C,E=!0)=>{E&&r.has(w)&&r.delete(w),r.set(w,C)},m=w=>typeof w=="function"?{type:"loop",fn:w}:typeof w=="object"&&typeof w.type=="string"&&typeof w.fn=="function"?w:(console.error("loop event error",w),null),p=w=>{const C=m(w);return C!==null&&Reflect.apply(C.fn,void 0,[]),(C==null?void 0:C.type)??"once"},y=()=>{Array.from(r.keys()).forEach(w=>{const C=r.get(w);if(Array.isArray(C)){const E=[];C.forEach((_,x)=>{p(_)==="once"&&E.unshift(x)}),E.length&&E.forEach(_=>C.splice(_,1)),C.length===0&&r.delete(w)}else p(C)==="once"&&r.delete(w)})};a.watch(()=>[e.data],w=>{var E,_;const C=t(w[0],c.schema);c.data=C[0],c.schema=C[1],(E=e.async)!=null&&E.callback&&((_=e.async)==null?void 0:_.deepAutoOpen)==="every"&&d(),y()},{deep:!0}),e.selectable&&a.onMounted(()=>{a.watch(()=>e.selected,w=>{o.length=0,s.forEach(C=>{Reflect.apply(C,void 0,[w]),o.push(()=>Reflect.apply(C,void 0,[w]))}),f("afterSelectWatch",o)},{immediate:!0})});const b=w=>{f("afterDataUpdate",w)};return(N=e.async)!=null&&N.callback&&d(),{flatData:c,asyncNodeClick:u,deepAutoOpen:d,afterDataUpdate:b,registerNextLoop:f,onSelected:h}},$X=a.defineComponent({name:"Tree",props:bX,emits:yX,setup(e,t){const n=a.ref(),{flatData:r,onSelected:s,registerNextLoop:o}=VX(e),{checkNodeIsOpen:c,isRootNode:u,isNodeOpened:d,isNodeChecked:h,isNodeMatched:f,hasChildNode:m,getNodePath:p,getNodeId:y,getNodeAttr:b,getParentNode:N,getIntersectionResponse:w}=Ld(r,e),{searchFn:C,isSearchActive:E,refSearch:_,isSearchDisabled:x,isTreeUI:O,showChildNodes:T}=AX(e),$=a.reactive([]),L=Z=>{if(E.value){if(T){const ae=`${p(Z)??""}-`;return c(Z)&&(f(Z)||$.some(pe=>ae.indexOf(`${pe}-`)===0))}return c(Z)&&f(Z)}return c(Z)},P=a.computed(()=>r.data.filter(Z=>L(Z))),{getLastVisibleElement:I,intersectionObserver:A}=CX(e),{renderTreeNode:D,handleTreeNodeClick:X,setOpen:M,setNodeAction:W,setSelect:ne,asyncNodeClick:B,setNodeAttribute:k,isIndeterminate:re}=OX(e,t,r,P,{registerNextLoop:o}),J=Uo(120,()=>{$.length=0,r.data.forEach(Z=>{const me=C(u5(Z,e),Z);me&&$.push(p(Z)),k(Z,[Ee.IS_MATCH],[me],O.value&&me)})});x||a.watch([_],()=>{J()},{deep:!0,immediate:!0}),a.onMounted(()=>{e.virtualRender&&a.nextTick(()=>{Y()})});const K=(Z,me=!0,ae=!1)=>{W(po(Z),Ee.IS_CHECKED,me),ae&&t.emit(An.NODE_CHECKED,r.data.filter(pe=>h(pe)),r.data.filter(pe=>re(pe)))};s(Z=>{ne(Z,!0,e.autoOpenParentNode,!0)});const F=()=>r;a.watch(()=>[e.checked],()=>{K(e.checked,!0)});const z=()=>{var Z;(Z=n.value)==null||Z.reset()},Y=Z=>{if(Z==null){n.value.fixToTop({index:1});return}if(e.nodeKey&&Object.prototype.hasOwnProperty.call(Z,e.nodeKey)){n.value.fixToTop({index:P.value.findIndex(ae=>ae[e.nodeKey]===Z[e.nodeKey])+1});return}if(Z.id!==void 0&&Z.id!==null){n.value.fixToTop({index:P.value.findIndex(ae=>ae[e.nodeKey]===Z.id)+1});return}if(Z.index>=0){n.value.fixToTop({index:Z.index});return}const me=y(Z);if(me){n.value.fixToTop({index:P.value.findIndex(ae=>y(ae)===me)+1});return}};t.expose({handleTreeNodeClick:X,isNodeChecked:h,isRootNode:u,isNodeOpened:d,isNodeMatched:f,hasChildNode:m,setOpen:M,setChecked:K,setNodeAction:W,setNodeOpened:M,setSelect:ne,scrollToTop:Y,asyncNodeClick:B,getData:F,reset:z,getNodeAttr:b,getParentNode:N});const{renderEmpty:te}=wX(e);LX(e,t,n,r);const ue=Z=>{var ae,pe;if(Z.length)return Z.map(G=>D(G,!E.value||O.value));const me=E.value?"search-empty":"empty";return((pe=(ae=t.slots).empty)==null?void 0:pe.call(ae))??te(me)},ce=([Z,me,ae])=>{var pe,G,fe,we;if(A.value.enabled&&Z.offset.y>5){if(!e.virtualRender){const q=I(Z.offset.y,n.value.refRoot),se=w(q[0]);(G=(pe=A.value)==null?void 0:pe.callback)==null||G.call(pe,se),t.emit(An.NODE_ENTER_VIEW,se);return}const le=w(ae.slice(-1)[0]);(we=(fe=A.value)==null?void 0:fe.callback)==null||we.call(fe,le),t.emit(An.NODE_ENTER_VIEW,le);return}},{resolveClassName:be}=xe();return()=>a.createVNode($i,{ref:n,style:NX(null,e),height:e.height,class:be("tree"),contentClassName:be("container"),enabled:e.virtualRender,keepAlive:!0,lineHeight:e.lineHeight,list:P.value,rowKey:Ee.UUID,throttleDelay:0,onContentScroll:ce},{default:Z=>ue(Z.data||[])})}}),h5=Qe($X),as="upload";var Zr=(e=>(e.BUTTON="button",e.DRAGGABLE="draggable",e.PICTURE="picture",e))(Zr||{}),rh=(e=>(e.BINARY="binary",e.FORMDATA="formdata",e))(rh||{}),Xs=(e=>(e.FAIL="fail",e.NEW="new",e.SUCCESS="success",e.UPLOADING="uploading",e))(Xs||{});const Hm=[Zr.BUTTON,Zr.DRAGGABLE,Zr.PICTURE],Bm=[rh.FORMDATA,rh.BINARY],Tr={type:{type:String,default:"formdata",validator:e=>!e||Bm.includes(e)?!0:(console.error(`invalid type, ${e}, the type must be one of 【${Bm.join(" | ")}】`),!1)},theme:{type:String,default:"draggable",validator:e=>!e||Hm.includes(e)?!0:(console.error(`invalid theme, ${e}, the theme must be one of 【${Hm.join(" | ")}】`),!1)},files:{type:Array,default:()=>[]},name:{type:String,default:"upload_file"},multiple:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},accept:{type:String},delayTime:{type:Number,default:0},url:{type:String,required:!1},method:{type:String,default:"post"},size:{type:[Number,Object],default(){return{maxFileSize:5,maxImgSize:1}}},handleResCode:{type:Function,default(e){return!!(e&&e.code===0)}},headers:{type:Object,default:()=>({})},header:{type:[Array,Object],default:()=>[]},tip:{type:String,default:""},validateName:{type:RegExp},withCredentials:{type:Boolean,default:!1},limit:Number,data:{type:[Array,Object],default:()=>[]},formDataAttributes:{type:[Array,Object],default:()=>[]},extCls:{type:String,default:""},customRequest:Function,selectChange:{type:Function},beforeUpload:{type:Function},beforeRemove:{type:Function},sliceUpload:{type:Boolean,default:!1},sliceUrl:{type:String,default:""},mergeUrl:{type:String,default:""},chunkSize:{type:Number,default:10}};function zm(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const DX=a.defineComponent({name:"UploadList",props:{theme:Tr.theme,disabled:Tr.disabled,files:Tr.files,multiple:Tr.multiple},emits:["remove","retry"],setup(e,{slots:t,emit:n}){const r=ut("upload"),{resolveClassName:s}=xe(),{theme:o,disabled:c,multiple:u}=a.toRefs(e),d=`${s(as)}-list`,h=a.computed(()=>o.value===Zr.PICTURE),f=a.computed(()=>h.value&&!u.value),m=a.computed(()=>ze({[d]:!0,[`${d}--${o.value}`]:!0,[`${d}--disabled`]:c.value}));function p(x){const O=["Bytes","KB","MB","GB","TB"],T=Math.floor(Math.log(x)/Math.log(1024));return`${(x/1024**T).toFixed(2)}${O[T]}`}function y(x,O){n("remove",x,O)}function b(x,O){n("retry",x,O)}const N=()=>{let x;return a.createVNode(a.TransitionGroup,{name:`${d}__item`},zm(x=e.files.map(O=>{const T=ze({[`${d}__item`]:!0,[`${d}__item-picture`]:!0,[`${d}__item--${O.status}`]:!0});return a.createVNode("li",{key:O.uid,class:T},[t!=null&&t.file?t.file({file:O}):w(O)])}))?x:{default:()=>[x]})},w=x=>[a.withDirectives(a.createVNode("img",{class:`${d}__picture-item-thumbnail`,alt:"",src:x.url},null),[[a.vShow,x.status!=="uploading"]]),a.createVNode(a.Fragment,null,[x.status==="uploading"&&a.createVNode(Fo,{width:50,class:`${d}__picture-item-progress`,bgColor:"#333",color:"#3a84ff",percent:x.percentage,titleStyle:{color:"#fff"},type:"circle"},null)]),a.createVNode(a.Fragment,null,[!c.value&&a.createVNode("div",{class:`${d}__picture-item-actions`},[a.createVNode(pi,{class:"action-icon",onClick:O=>y(x,O)},null)])])],C=()=>{let x;return a.createVNode(a.TransitionGroup,{name:`${d}__item`},zm(x=e.files.map(O=>{const T=ze({[`${d}__item`]:!0,[`${d}__item--${O.status}`]:!0});return a.createVNode("li",{key:O.uid,class:T},[t!=null&&t.file?t.file({file:O}):_(O)])}))?x:{default:()=>[x]})},E=x=>{var I;const O=(I=x==null?void 0:x.raw)==null?void 0:I.type,[T]=(O==null?void 0:O.split("/"))||"";let L={text:ei,image:td,application:ei,video:dd,audio:Uu}[T]||ei;return["application/zip","application/rar","application/tar","application/gz","application/x-gzip"].includes(O)&&(L=Fu),a.h(L,{class:`${d}__item-file-icon`})},_=x=>[a.createVNode("div",{class:`${d}__item-icon`},[x.isPic?a.createVNode("img",{class:`${d}__item-thumbnail`,alt:"",src:x.url},null):E(x)]),a.createVNode("div",{class:`${d}__item-summary`},[a.createVNode("div",{class:`${d}__item-name`,title:x.name},[x.name]),x.status!=="uploading"&&a.createVNode("div",{class:`${d}__item-message`,title:x.statusText},[x.status==="success"&&a.createVNode(a.Fragment,null,[a.createVNode(ps,{class:`${d}__item-message-success-icon`},null),x.statusText||r.value.uploadSuccess]),x.status==="fail"&&a.createVNode(a.Fragment,null,[x.statusText||r.value.uploadFailed])]),x.status==="uploading"&&a.createVNode(Fo,{class:`${d}__item-progress`,percent:x.percentage,showText:!1,size:"small"},null),x.status!=="fail"&&a.createVNode("div",{class:`${d}__item-speed`},[a.withDirectives(a.createVNode("span",{class:`${d}__item-speed-size`},[p(x.size)]),[[a.vShow,x.size]]),a.withDirectives(a.createVNode("span",{class:`${d}__item-speed-percentage`},[x.percentage,a.createTextVNode("%")]),[[a.vShow,x.status==="uploading"]])]),!c.value&&a.createVNode("div",{class:`${d}__item-actions`},[x.status==="fail"&&a.createVNode(ad,{class:`${d}__item-retry-icon`,onClick:O=>b(x,O)},null),a.createVNode(pi,{class:`${d}__item-del-icon`,onClick:O=>y(x,O)},null)])])];return()=>{var x;return a.createVNode(a.Fragment,null,[f.value?(t==null?void 0:t.innerTrigger)&&(t==null?void 0:t.innerTrigger((x=e.files)==null?void 0:x[0])):a.createVNode("ul",{class:m.value},[h.value?N():C(),(t==null?void 0:t.innerTrigger)&&(t==null?void 0:t.innerTrigger())])])}}}),Um=a.defineComponent({name:"UploadTrigger",props:{theme:Tr.theme,disabled:Tr.disabled,multiple:Tr.multiple,accept:Tr.accept,file:{type:Object},selectChange:Tr.selectChange},emits:["change","remove"],setup(e,{slots:t,emit:n}){const r=ut("upload"),{resolveClassName:s}=xe(),{theme:o,disabled:c,file:u,multiple:d,accept:h}=a.toRefs(e),f=`${s(as)}-trigger`,m=a.computed(()=>o.value===Zr.BUTTON),p=a.computed(()=>o.value===Zr.DRAGGABLE),y=a.computed(()=>o.value===Zr.PICTURE),b=a.computed(()=>y.value&&!d.value),N=a.computed(()=>y.value&&!h.value?"image/png,image/jpeg,image/jpg":h.value),w=a.ref(null),C=a.computed(()=>{var M;return ze({[f]:!0,[`${f}--${o.value}`]:!0,[`${f}--single-picture`]:b.value,[`${f}--has-file`]:u.value??!1,[`${f}--${(M=u.value)==null?void 0:M.status}`]:u.value??!1,[`${f}--dragover`]:$.value,[`${f}--disabled`]:c.value})}),E=()=>{w.value.value=null,w.value.click()},_=M=>{var ne;if(e.selectChange&&((ne=e.selectChange)==null?void 0:ne.call(e,M))===!1)return!1;const{files:W}=M.target;n("change",Array.from(W))},x=()=>{e.disabled||E()},O=M=>{M.defaultPrevented||M.target!==M.currentTarget||((M.code==="Enter"||M.code==="Space")&&E(),M.preventDefault())};function T(M,W){n("remove",M,W),W.stopPropagation(),W.preventDefault()}const $=a.ref(!1),L=()=>{const M=k=>{var J;if(c.value)return;if(k.preventDefault(),$.value=!1,e.selectChange&&((J=e.selectChange)==null?void 0:J.call(e,k))===!1)return!1;const re=Array.from(k.dataTransfer.files);n("change",re)},W=k=>{k.preventDefault(),$.value=!0},ne=()=>{$.value=!1},B=ze({[`${f}__draggable`]:!0});return a.createVNode("div",{class:B,onDragleave:ne,onDragover:W,onDrop:M},[t.default?t.default():a.createVNode(a.Fragment,null,[a.createVNode($o,{class:`${f}__draggable-icon`},null),a.createVNode("div",{class:`${f}__draggable-text`},[r.value.drapFileOr,a.createVNode("span",{class:`${f}__draggable-upload-link`},[r.value.clickUpload])])])])},P=()=>a.createVNode(a.Fragment,null,[b.value&&e.file?A(e.file):I()]),I=()=>a.createVNode(a.Fragment,null,[t.default?t.default():a.createVNode("div",{class:`${f}__picture-inner`},[a.createVNode(tl,{class:`${f}__picture-icon`},null),a.createVNode("div",{class:`${f}__picture-text`},[r.value.clickUpload])])]),A=M=>[a.withDirectives(a.createVNode("img",{class:`${f}__picture-thumbnail`,alt:"",src:M.url},null),[[a.vShow,M.status!=="uploading"]]),a.createVNode(a.Fragment,null,[M.status==="uploading"&&a.createVNode(Fo,{width:50,class:`${f}__picture-progress`,bgColor:"#333",color:"#3a84ff",percent:M.percentage,titleStyle:{color:"#fff"},type:"circle"},null)]),a.createVNode(a.Fragment,null,[!e.disabled&&a.createVNode("div",{class:`${f}__picture-actions`},[a.createVNode(pi,{class:"action-icon",onClick:W=>T(M,W)},null)])])],D=()=>a.createVNode(Ht,{disabled:c.value},{default:()=>[a.createVNode(a.Fragment,null,[t.default?t.default():a.createVNode(a.Fragment,null,[a.createVNode($o,{class:`${f}__button-icon`},null),a.createVNode("span",{class:`${f}__button-text`},[r.value.uploadLabel])])])]}),X=()=>{if(m.value)return D();if(p.value)return L();if(y.value)return P()};return()=>{var M;return a.createVNode("div",{class:C.value,tabindex:"0",onClick:x,onKeydown:O},[t.trigger?[t.trigger(),(M=t==null?void 0:t.default)==null?void 0:M.call(t)]:X(),a.createVNode("input",{ref:w,class:`${f}__input-file`,accept:N.value,disabled:c.value,multiple:d.value,tabindex:"-1",type:"file",onChange:_},null)])}}});var m5={exports:{}};(function(e,t){(function(n){e.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function s(C,E){var _=C[0],x=C[1],O=C[2],T=C[3];_+=(x&O|~x&T)+E[0]-680876936|0,_=(_<<7|_>>>25)+x|0,T+=(_&x|~_&O)+E[1]-389564586|0,T=(T<<12|T>>>20)+_|0,O+=(T&_|~T&x)+E[2]+606105819|0,O=(O<<17|O>>>15)+T|0,x+=(O&T|~O&_)+E[3]-1044525330|0,x=(x<<22|x>>>10)+O|0,_+=(x&O|~x&T)+E[4]-176418897|0,_=(_<<7|_>>>25)+x|0,T+=(_&x|~_&O)+E[5]+1200080426|0,T=(T<<12|T>>>20)+_|0,O+=(T&_|~T&x)+E[6]-1473231341|0,O=(O<<17|O>>>15)+T|0,x+=(O&T|~O&_)+E[7]-45705983|0,x=(x<<22|x>>>10)+O|0,_+=(x&O|~x&T)+E[8]+1770035416|0,_=(_<<7|_>>>25)+x|0,T+=(_&x|~_&O)+E[9]-1958414417|0,T=(T<<12|T>>>20)+_|0,O+=(T&_|~T&x)+E[10]-42063|0,O=(O<<17|O>>>15)+T|0,x+=(O&T|~O&_)+E[11]-1990404162|0,x=(x<<22|x>>>10)+O|0,_+=(x&O|~x&T)+E[12]+1804603682|0,_=(_<<7|_>>>25)+x|0,T+=(_&x|~_&O)+E[13]-40341101|0,T=(T<<12|T>>>20)+_|0,O+=(T&_|~T&x)+E[14]-1502002290|0,O=(O<<17|O>>>15)+T|0,x+=(O&T|~O&_)+E[15]+1236535329|0,x=(x<<22|x>>>10)+O|0,_+=(x&T|O&~T)+E[1]-165796510|0,_=(_<<5|_>>>27)+x|0,T+=(_&O|x&~O)+E[6]-1069501632|0,T=(T<<9|T>>>23)+_|0,O+=(T&x|_&~x)+E[11]+643717713|0,O=(O<<14|O>>>18)+T|0,x+=(O&_|T&~_)+E[0]-373897302|0,x=(x<<20|x>>>12)+O|0,_+=(x&T|O&~T)+E[5]-701558691|0,_=(_<<5|_>>>27)+x|0,T+=(_&O|x&~O)+E[10]+38016083|0,T=(T<<9|T>>>23)+_|0,O+=(T&x|_&~x)+E[15]-660478335|0,O=(O<<14|O>>>18)+T|0,x+=(O&_|T&~_)+E[4]-405537848|0,x=(x<<20|x>>>12)+O|0,_+=(x&T|O&~T)+E[9]+568446438|0,_=(_<<5|_>>>27)+x|0,T+=(_&O|x&~O)+E[14]-1019803690|0,T=(T<<9|T>>>23)+_|0,O+=(T&x|_&~x)+E[3]-187363961|0,O=(O<<14|O>>>18)+T|0,x+=(O&_|T&~_)+E[8]+1163531501|0,x=(x<<20|x>>>12)+O|0,_+=(x&T|O&~T)+E[13]-1444681467|0,_=(_<<5|_>>>27)+x|0,T+=(_&O|x&~O)+E[2]-51403784|0,T=(T<<9|T>>>23)+_|0,O+=(T&x|_&~x)+E[7]+1735328473|0,O=(O<<14|O>>>18)+T|0,x+=(O&_|T&~_)+E[12]-1926607734|0,x=(x<<20|x>>>12)+O|0,_+=(x^O^T)+E[5]-378558|0,_=(_<<4|_>>>28)+x|0,T+=(_^x^O)+E[8]-2022574463|0,T=(T<<11|T>>>21)+_|0,O+=(T^_^x)+E[11]+1839030562|0,O=(O<<16|O>>>16)+T|0,x+=(O^T^_)+E[14]-35309556|0,x=(x<<23|x>>>9)+O|0,_+=(x^O^T)+E[1]-1530992060|0,_=(_<<4|_>>>28)+x|0,T+=(_^x^O)+E[4]+1272893353|0,T=(T<<11|T>>>21)+_|0,O+=(T^_^x)+E[7]-155497632|0,O=(O<<16|O>>>16)+T|0,x+=(O^T^_)+E[10]-1094730640|0,x=(x<<23|x>>>9)+O|0,_+=(x^O^T)+E[13]+681279174|0,_=(_<<4|_>>>28)+x|0,T+=(_^x^O)+E[0]-358537222|0,T=(T<<11|T>>>21)+_|0,O+=(T^_^x)+E[3]-722521979|0,O=(O<<16|O>>>16)+T|0,x+=(O^T^_)+E[6]+76029189|0,x=(x<<23|x>>>9)+O|0,_+=(x^O^T)+E[9]-640364487|0,_=(_<<4|_>>>28)+x|0,T+=(_^x^O)+E[12]-421815835|0,T=(T<<11|T>>>21)+_|0,O+=(T^_^x)+E[15]+530742520|0,O=(O<<16|O>>>16)+T|0,x+=(O^T^_)+E[2]-995338651|0,x=(x<<23|x>>>9)+O|0,_+=(O^(x|~T))+E[0]-198630844|0,_=(_<<6|_>>>26)+x|0,T+=(x^(_|~O))+E[7]+1126891415|0,T=(T<<10|T>>>22)+_|0,O+=(_^(T|~x))+E[14]-1416354905|0,O=(O<<15|O>>>17)+T|0,x+=(T^(O|~_))+E[5]-57434055|0,x=(x<<21|x>>>11)+O|0,_+=(O^(x|~T))+E[12]+1700485571|0,_=(_<<6|_>>>26)+x|0,T+=(x^(_|~O))+E[3]-1894986606|0,T=(T<<10|T>>>22)+_|0,O+=(_^(T|~x))+E[10]-1051523|0,O=(O<<15|O>>>17)+T|0,x+=(T^(O|~_))+E[1]-2054922799|0,x=(x<<21|x>>>11)+O|0,_+=(O^(x|~T))+E[8]+1873313359|0,_=(_<<6|_>>>26)+x|0,T+=(x^(_|~O))+E[15]-30611744|0,T=(T<<10|T>>>22)+_|0,O+=(_^(T|~x))+E[6]-1560198380|0,O=(O<<15|O>>>17)+T|0,x+=(T^(O|~_))+E[13]+1309151649|0,x=(x<<21|x>>>11)+O|0,_+=(O^(x|~T))+E[4]-145523070|0,_=(_<<6|_>>>26)+x|0,T+=(x^(_|~O))+E[11]-1120210379|0,T=(T<<10|T>>>22)+_|0,O+=(_^(T|~x))+E[2]+718787259|0,O=(O<<15|O>>>17)+T|0,x+=(T^(O|~_))+E[9]-343485551|0,x=(x<<21|x>>>11)+O|0,C[0]=_+C[0]|0,C[1]=x+C[1]|0,C[2]=O+C[2]|0,C[3]=T+C[3]|0}function o(C){var E=[],_;for(_=0;_<64;_+=4)E[_>>2]=C.charCodeAt(_)+(C.charCodeAt(_+1)<<8)+(C.charCodeAt(_+2)<<16)+(C.charCodeAt(_+3)<<24);return E}function c(C){var E=[],_;for(_=0;_<64;_+=4)E[_>>2]=C[_]+(C[_+1]<<8)+(C[_+2]<<16)+(C[_+3]<<24);return E}function u(C){var E=C.length,_=[1732584193,-271733879,-1732584194,271733878],x,O,T,$,L,P;for(x=64;x<=E;x+=64)s(_,o(C.substring(x-64,x)));for(C=C.substring(x-64),O=C.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<O;x+=1)T[x>>2]|=C.charCodeAt(x)<<(x%4<<3);if(T[x>>2]|=128<<(x%4<<3),x>55)for(s(_,T),x=0;x<16;x+=1)T[x]=0;return $=E*8,$=$.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt($[2],16),P=parseInt($[1],16)||0,T[14]=L,T[15]=P,s(_,T),_}function d(C){var E=C.length,_=[1732584193,-271733879,-1732584194,271733878],x,O,T,$,L,P;for(x=64;x<=E;x+=64)s(_,c(C.subarray(x-64,x)));for(C=x-64<E?C.subarray(x-64):new Uint8Array(0),O=C.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<O;x+=1)T[x>>2]|=C[x]<<(x%4<<3);if(T[x>>2]|=128<<(x%4<<3),x>55)for(s(_,T),x=0;x<16;x+=1)T[x]=0;return $=E*8,$=$.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt($[2],16),P=parseInt($[1],16)||0,T[14]=L,T[15]=P,s(_,T),_}function h(C){var E="",_;for(_=0;_<4;_+=1)E+=r[C>>_*8+4&15]+r[C>>_*8&15];return E}function f(C){var E;for(E=0;E<C.length;E+=1)C[E]=h(C[E]);return C.join("")}f(u("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function C(E,_){return E=E|0||0,E<0?Math.max(E+_,0):Math.min(E,_)}ArrayBuffer.prototype.slice=function(E,_){var x=this.byteLength,O=C(E,x),T=x,$,L,P,I;return _!==n&&(T=C(_,x)),O>T?new ArrayBuffer(0):($=T-O,L=new ArrayBuffer($),P=new Uint8Array(L),I=new Uint8Array(this,O,$),P.set(I),L)}}();function m(C){return/[\u0080-\uFFFF]/.test(C)&&(C=unescape(encodeURIComponent(C))),C}function p(C,E){var _=C.length,x=new ArrayBuffer(_),O=new Uint8Array(x),T;for(T=0;T<_;T+=1)O[T]=C.charCodeAt(T);return E?O:x}function y(C){return String.fromCharCode.apply(null,new Uint8Array(C))}function b(C,E,_){var x=new Uint8Array(C.byteLength+E.byteLength);return x.set(new Uint8Array(C)),x.set(new Uint8Array(E),C.byteLength),_?x:x.buffer}function N(C){var E=[],_=C.length,x;for(x=0;x<_-1;x+=2)E.push(parseInt(C.substr(x,2),16));return String.fromCharCode.apply(String,E)}function w(){this.reset()}return w.prototype.append=function(C){return this.appendBinary(m(C)),this},w.prototype.appendBinary=function(C){this._buff+=C,this._length+=C.length;var E=this._buff.length,_;for(_=64;_<=E;_+=64)s(this._hash,o(this._buff.substring(_-64,_)));return this._buff=this._buff.substring(_-64),this},w.prototype.end=function(C){var E=this._buff,_=E.length,x,O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T;for(x=0;x<_;x+=1)O[x>>2]|=E.charCodeAt(x)<<(x%4<<3);return this._finish(O,_),T=f(this._hash),C&&(T=N(T)),this.reset(),T},w.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},w.prototype.setState=function(C){return this._buff=C.buff,this._length=C.length,this._hash=C.hash,this},w.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},w.prototype._finish=function(C,E){var _=E,x,O,T;if(C[_>>2]|=128<<(_%4<<3),_>55)for(s(this._hash,C),_=0;_<16;_+=1)C[_]=0;x=this._length*8,x=x.toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(x[2],16),T=parseInt(x[1],16)||0,C[14]=O,C[15]=T,s(this._hash,C)},w.hash=function(C,E){return w.hashBinary(m(C),E)},w.hashBinary=function(C,E){var _=u(C),x=f(_);return E?N(x):x},w.ArrayBuffer=function(){this.reset()},w.ArrayBuffer.prototype.append=function(C){var E=b(this._buff.buffer,C,!0),_=E.length,x;for(this._length+=C.byteLength,x=64;x<=_;x+=64)s(this._hash,c(E.subarray(x-64,x)));return this._buff=x-64<_?new Uint8Array(E.buffer.slice(x-64)):new Uint8Array(0),this},w.ArrayBuffer.prototype.end=function(C){var E=this._buff,_=E.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O,T;for(O=0;O<_;O+=1)x[O>>2]|=E[O]<<(O%4<<3);return this._finish(x,_),T=f(this._hash),C&&(T=N(T)),this.reset(),T},w.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.ArrayBuffer.prototype.getState=function(){var C=w.prototype.getState.call(this);return C.buff=y(C.buff),C},w.ArrayBuffer.prototype.setState=function(C){return C.buff=p(C.buff,!0),w.prototype.setState.call(this,C)},w.ArrayBuffer.prototype.destroy=w.prototype.destroy,w.ArrayBuffer.prototype._finish=w.prototype._finish,w.ArrayBuffer.hash=function(C,E){var _=d(new Uint8Array(C)),x=f(_);return E?N(x):x},w})})(m5);var IX=m5.exports;const jm=Kt(IX),yu="An error occurred during upload";function xo(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const kX=e=>{if(typeof XMLHttpRequest>"u")throw new Error("XMLHttpRequest is undefined");const t=new XMLHttpRequest,{action:n,type:r}=e,s=r==="formdata";t.upload&&t.upload.addEventListener("progress",u=>{const d=u;d.percent=u.total>0?u.loaded/u.total*100:0,e.onProgress(d)});const o=new FormData;if(s&&e.data){let u=e.data;Array.isArray(u)||(u=[u]),u.forEach(d=>{for(const[h,f]of Object.entries(d))Array.isArray(f)?o.append(h,...f):o.append(h,f)})}if(s&&e.formDataAttributes){let u=e.formDataAttributes;Array.isArray(u)||(u=[u]),u.forEach(d=>{Array.isArray(d.value)?o.append(d.name,...d.value):o.append(d.name,d.value)})}if(s&&o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{const u=xo(t);let d=new Error(u||yu);e.onError(d)}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300){const u=xo(t);return e.onError(new Error(u||yu))}e.onSuccess(xo(t))}),t.addEventListener("loadend",()=>{e.onComplete()}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0),e.header)if(Array.isArray(e.header))e.header.forEach(u=>{const d=u.name,h=u.value;t.setRequestHeader(d,h)});else{const u=e.header.name,d=e.header.value;t.setRequestHeader(u,d)}const c=e.headers||{};if(c instanceof Headers)c.forEach((u,d)=>t.setRequestHeader(d,u));else for(const[u,d]of Object.entries(c))Km(d)||t.setRequestHeader(u,String(d));return t.send(s?o:e.file),t},g5=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,PX=async e=>{const t=e.chunkSize*1024*1024,{file:n}=e;if(!n)throw new Error("File not found");const r=Math.ceil(n.size/t),s=await RX(n,t),o=[];MX(e,n,r,s,o,t),await Promise.all(o).then(()=>{const c={size:n.size,name:n.name,total:r,hash:s},u=new XMLHttpRequest;u.open(e.method,e.mergeUrl,!0),u.onreadystatechange=()=>{if(u.readyState===4){const d=xo(u);if(u.status<200||u.status>=300)return e.onError(new Error(d||yu));e.onSuccess(d)}},u.onloadend=()=>{e.onComplete()},u.setRequestHeader("Content-type","application/JSON"),u.send(JSON.stringify(c))})},MX=(e,t,n,r,s,o)=>{for(let c=0;c<n;c++){const u=new Promise((d,h)=>{const f=c*o,m=Math.min(t.size,f+o),p=new FormData;if(e.data){let N=e.data;Array.isArray(N)||(N=[N]),N.forEach(w=>{for(const[C,E]of Object.entries(w))Array.isArray(E)?p.append(C,...E):p.append(C,E)})}if(e.formDataAttributes){let N=e.formDataAttributes;Array.isArray(N)||(N=[N]),N.forEach(w=>{Array.isArray(w.value)?p.append(w.name,...w.value):p.append(w.name,w.value)})}p.append("file",g5.call(t,f,m)),p.append("name",t.name),p.append("total",n.toString()),p.append("index",c.toString()),p.append("size",t.size.toString()),p.append("hash",r.toString());const y=new XMLHttpRequest;if(y.onreadystatechange=()=>{if(y.readyState===4){const N=xo(y);y.status<200||y.status>=300?(h(N),e.onError(new Error(N||yu))):d("reponseText")}},y.upload.addEventListener("progress",N=>{const w=N;e.onProgress(w,c)},!1),e.withCredentials&&"withCredentials"in y&&(y.withCredentials=!0),y.open(e.method,e.sliceUrl,!0),e.header)if(Array.isArray(e.header))e.header.forEach(N=>{const w=N.name,C=N.value;y.setRequestHeader(w,C)});else{const N=e.header.name,w=e.header.value;y.setRequestHeader(N,w)}const b=e.headers||{};if(b instanceof Headers)b.forEach((N,w)=>y.setRequestHeader(w,N));else for(const[N,w]of Object.entries(b))Km(w)||y.setRequestHeader(N,String(w));y.send(p)});s.push(u)}},RX=(e,t)=>new Promise((n,r)=>{const s=Math.ceil(e.size/t);let o=0;const c=new jm.ArrayBuffer,u=new FileReader;function d(){const h=o*t,f=h+t>=e.size?e.size:h+t;u.readAsArrayBuffer(g5.call(e,h,f))}u.onload=h=>{if(c.append(h.target.result),o+=1,o<s)d();else{const f=c.end(),m=new jm;m.append(f),m.append(e.name);const p=m.end();n(p)}},u.onerror=()=>{r(new Error("File slice failed"))},d()}).catch(n=>{console.log(n)});function Wm(e){return Date.now()+e}const FX=(e,t)=>{const n=a.computed(()=>{var p;return typeof e.size=="number"?e.size:(p=e==null?void 0:e.size)==null?void 0:p.maxImgSize}),r=a.computed(()=>{var p;return typeof e.size=="number"?e.size:(p=e==null?void 0:e.size)==null?void 0:p.maxImgSize}),s=a.ref([]);function o(p){return s.value.find(y=>y.uid===p.uid)}let c=0;function u(p){var w;c+=1,p.uid=Wm(c);const y={uid:p.uid,name:p.name,status:Xs.NEW,size:p.size,raw:p},b=p.type.startsWith("image/");let N=null;if(b){try{y.url=window.URL.createObjectURL(p)}catch(C){console.error(C)}y.isPic=!0}return e.validateName&&!((w=e.validateName)!=null&&w.test(y.name))&&(y.status=Xs.FAIL,y.statusText="invalid filename",N=new Error(y.statusText)),b&&p.size>n.value*1024**2&&(y.status=Xs.FAIL,y.statusText="invalid file size",N=new Error(y.statusText)),!b&&p.size>r.value*1024**2&&(y.status=Xs.FAIL,y.statusText="invalid file size",N=new Error(y.statusText)),s.value.push(y),N}async function d(p){var N;const y=p instanceof File?o(p):p,b=w=>{var C;t.onRemove(w,s.value),s.value.splice(s.value.indexOf(y),1),(C=w.url)!=null&&C.startsWith("blob:")&&URL.revokeObjectURL(w.url)};e.beforeRemove?await((N=e.beforeRemove)==null?void 0:N.call(e,y,s.value))!==!1&&b(y):b(y)}async function h(p,y,b){const N=o(y);N&&(N.status="fail",N.statusText=p.message,N.response=b)}async function f(p,y){const b=o(y);b&&(b.status="success",b.response=p)}async function m(p,y){const b=o(y);b&&(b.status="uploading",b.percentage=Math.round(p.percent))}return a.watch(()=>e.files,p=>{s.value=p.map(y=>(c+=1,{...y,uid:y.uid??Wm(c),status:y.status??Xs.SUCCESS}))},{immediate:!0,deep:!0}),{fileList:s,handlePreprocess:u,handleRemove:d,handleError:h,handleSuccess:f,handleProgress:m}},HX=a.defineComponent({name:"Upload",props:Tr,emits:["exceed","progress","success","error","delete","done"],setup(e,{slots:t,emit:n,expose:r}){const{resolveClassName:s}=xe(),o=a.shallowRef({}),c=a.computed(()=>e.theme===Zr.PICTURE),u=a.computed(()=>c.value&&!e.multiple),d=a.computed(()=>ze({[`${s(as)}`]:!0,[`${s(as)}--${e.theme}`]:!0,[`${s(as)}--disabled`]:e.disabled,[`${s(as)}--single-picture`]:u.value,[e.extCls]:e.extCls??!1})),h=a.computed(()=>({theme:e.theme,multiple:e.multiple,disabled:e.disabled,accept:e.accept,selectChange:e.selectChange}));function f(T,$){O(T),n("delete",T,$)}const{fileList:m,handlePreprocess:p,handleRemove:y,handleProgress:b,handleSuccess:N,handleError:w}=FX(e,{onRemove:f});function C(T){if(!T.length)return;if(e.limit>1&&m.value.length+T.length>e.limit){n("exceed",T,m.value);return}!e.multiple&&e.limit===1&&(m.value=[]);let $=T;(!e.multiple||e.limit===1)&&($=T.slice(0,1));for(const L of $){const P=L,I=p(P);if(I){n("error",P,m.value,I);return}e.autoUpload&&_(P,$)}}function E(T){x(T.raw)}async function _(T,$){var P;if(!e.beforeUpload)return x(T,$);let L;try{L=await((P=e.beforeUpload)==null?void 0:P.call(e,T,$))}catch{L=!1}if(L===!1){y(T);return}x(T,$)}function x(T,$){const{type:L,headers:P,header:I,data:A,formDataAttributes:D,method:X,withCredentials:M,name:W,url:ne,sliceUrl:B,mergeUrl:k,chunkSize:re,customRequest:J}=e,{uid:K}=T,F={type:L,headers:P,header:I,withCredentials:M,file:T,data:A,formDataAttributes:D,method:X,filename:W,action:ne,sliceUrl:B,mergeUrl:k,chunkSize:re,onProgress:te=>{b(te,T),n("progress",te,T,m.value)},onSuccess:te=>{var ce;const ue=te;if((ce=e==null?void 0:e.handleResCode)!=null&&ce.call(e,ue))N(te,T),n("success",te,T,m.value);else{const be=new Error((ue==null?void 0:ue.message)||"unknow error");w(be,T,te),n("error",T,m.value,be)}delete o.value[K]},onError:te=>{w(te,T),n("error",T,m.value,te),delete o.value[K]},onComplete:()=>{$&&$.indexOf(T)===$.length-1&&n("done",m.value)}};let z=e.sliceUpload?PX:kX;J&&(z=J);const Y=z(F);o.value[K]=Y,Y instanceof Promise&&Y.then(F.onSuccess,F.onError)}function O(T){let $=o.value;T&&($={[T.uid]:o.value[T.uid]}),Object.keys($).forEach(L=>{if($[L]instanceof XMLHttpRequest){const P=$[L];P==null||P.abort()}delete o.value[L]})}return a.onBeforeUnmount(()=>{m.value.forEach(({url:T})=>{T!=null&&T.startsWith("blob:")&&URL.revokeObjectURL(T)})}),r({handleRemove:y,handleRetry:E}),()=>a.createVNode("div",{class:d.value},[!c.value&&a.createVNode(Um,a.mergeProps(h.value,{onChange:C}),t),t.tip?t.tip():e.tip&&a.createVNode("div",{class:`${s(as)}__tip`},[e.tip]),a.createVNode(DX,{disabled:e.disabled,files:m.value,multiple:e.multiple,theme:e.theme,onRemove:y,onRetry:E},{innerTrigger:T=>c.value&&a.createVNode(Um,a.mergeProps(h.value,{file:T,onChange:C,onRemove:y}),t),file:t.file})])}}),p5=Qe(HX),m0=Object.freeze(Object.defineProperty({__proto__:null,$bkPopover:md,Affix:Xg,Alert:Jg,AnimateNumber:Zg,Backtop:Qg,Badge:ep,Breadcrumb:np,Button:Ht,Card:$p,Cascader:zp,Checkbox:sn,CodeDiff:Jp,Collapse:Qp,ColorPicker:rv,ConfigProvider:Yg,Container:eu,DatePicker:Cv,Dialog:Iv,Divider:kv,Dropdown:Pv,Exception:_d,FixedNavbar:Mv,Form:Hv,InfoBox:zv,Input:$a,Link:jv,Loading:La,Menu:Kv,Message:t4,Modal:il,Navigation:n4,Notify:a4,OverflowTitle:Vp,Pagination:V2,PopConfirm:p4,Popover:wn,Popover2:v4,Process:y4,Progress:Fo,Radio:lu,Rate:N4,ResizeLayout:x4,SearchSelect:A4,Select:A2,Sideslider:$4,Slider:D4,Steps:k4,Swiper:P4,Switcher:M4,Tab:B4,Table:n5,Tag:Po,TagInput:r5,TimeLine:vu,TimePicker:a5,Timeline:vu,Transfer:s5,Tree:h5,Upload:p5,VirtualRender:$i,containerProps:eu,scrollbar:O2},Symbol.toStringTag,{value:"Module"})),Gm=(e="Bk")=>(t,n)=>{const r=t.config.globalProperties.bkUIPrefix||e;Object.keys(m0).forEach(s=>{const o=m0[s];"install"in o?t.use(o,{prefix:r}):t.component(r+s,m0[s])}),n&&Sh(n,t)},BX={createInstall:Gm,install:Gm()},zX=Object.freeze(Object.defineProperty({__proto__:null,$bkPopover:md},Symbol.toStringTag,{value:"Module"})),v5="2.0.1-beta.68";window.__bkui_vue_version__=v5;exports.$bkPopover=md;exports.Affix=Xg;exports.Alert=Jg;exports.AnimateNumber=Zg;exports.Backtop=Qg;exports.Badge=ep;exports.Breadcrumb=np;exports.Button=Ht;exports.Card=$p;exports.Cascader=zp;exports.Checkbox=sn;exports.CodeDiff=Jp;exports.Collapse=Qp;exports.ColorPicker=rv;exports.ConfigProvider=Yg;exports.Container=eu;exports.DatePicker=Cv;exports.Dialog=Iv;exports.Divider=kv;exports.Dropdown=Pv;exports.Exception=_d;exports.FixedNavbar=Mv;exports.Form=Hv;exports.InfoBox=zv;exports.Input=$a;exports.Link=jv;exports.Loading=La;exports.Menu=Kv;exports.Message=t4;exports.Modal=il;exports.Navigation=n4;exports.Notify=a4;exports.OverflowTitle=Vp;exports.Pagination=V2;exports.PopConfirm=p4;exports.Popover=wn;exports.Popover2=v4;exports.Process=y4;exports.Progress=Fo;exports.Radio=lu;exports.Rate=N4;exports.ResizeLayout=x4;exports.SearchSelect=A4;exports.Select=A2;exports.Sideslider=$4;exports.Slider=D4;exports.Steps=k4;exports.Swiper=P4;exports.Switcher=M4;exports.Tab=B4;exports.Table=n5;exports.Tag=Po;exports.TagInput=r5;exports.TimeLine=vu;exports.TimePicker=a5;exports.Timeline=vu;exports.Transfer=s5;exports.Tree=h5;exports.Upload=p5;exports.VirtualRender=$i;exports.bkEllipsis=mI;exports.bkEllipsisInstance=u2;exports.bkTooltips=sa;exports.clickoutside=kr;exports.containerProps=eu;exports.default=BX;exports.defaultRootConfig=ds;exports.mousewheel=EI;exports.overflowTitle=II;exports.plugins=zX;exports.provideGlobalConfig=Sh;exports.rootProviderKey=hi;exports.scrollbar=O2;exports.setPrefixVariable=w0;exports.useGlobalConfig=cV;exports.useLocale=ut;exports.usePrefix=xe;exports.version=v5;