k5web/assets/index.637d6475.js

83 lines
20 KiB
JavaScript
Raw Normal View History

2024-05-19 04:18:55 +00:00
import{ae as $e,af as rn,a4 as an,A as Se,ag as Ee,ah as tn,ai as sn,M as D,aj as ln,ak as on,al as un,am as cn,O as Te,y as Pe,a8 as fn,a1 as vn,an as dn,z as gn,ao as Le,C as N,J as xe,a2 as ie,P as hn,ap as yn,G as Ie,aq as pn,ar as Me,N as mn,as as _n,w as Cn}from"./index.9ccc7a96.js";import{d as wn,b as J,_ as R,u as p,a as bn}from"./useConfig.3732b994.js";import{d as ee,o as ne,g as An,n as On,aI as h,c as y,f as z,w as Re,t as $n,bH as G,bL as le,r as Sn,h as En,b4 as Tn}from"./arco.76776ef0.js";/**
2024-05-12 16:19:18 +00:00
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Pn="__lodash_hash_undefined__";function Ln(e){return this.__data__.set(e,Pn),this}var xn=Ln;function In(e){return this.__data__.has(e)}var Mn=In,Rn=$e,Nn=xn,Fn=Mn;function H(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new Rn;++n<r;)this.add(e[n])}H.prototype.add=H.prototype.push=Nn;H.prototype.has=Fn;var Dn=H;function Gn(e,n){return e.has(n)}var qn=Gn;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Kn(e){var n=-1,r=Array(e.size);return e.forEach(function(a){r[++n]=a}),r}var Bn=Kn;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function zn(e,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(e[r],r,e))return!0;return!1}var Hn=zn,Un=Dn,Wn=Hn,Xn=qn,Zn=1,Yn=2;function Jn(e,n,r,a,t,s){var i=r&Zn,l=e.length,o=n.length;if(l!=o&&!(i&&o>l))return!1;var u=s.get(e),c=s.get(n);if(u&&c)return u==n&&c==e;var f=-1,v=!0,m=r&Yn?new Un:void 0;for(s.set(e,n),s.set(n,e);++f<l;){var d=e[f],g=n[f];if(a)var C=i?a(g,d,f,n,e,s):a(d,g,f,e,n,s);if(C!==void 0){if(C)continue;v=!1;break}if(m){if(!Wn(n,function(w,b){if(!Xn(m,b)&&(d===w||t(d,w,r,a,s)))return m.push(b)})){v=!1;break}}else if(!(d===g||t(d,g,r,a,s))){v=!1;break}}return s.delete(e),s.delete(n),v}var Ne=Jn;function jn(e){var n=-1,r=Array(e.size);return e.forEach(function(a,t){r[++n]=[t,a]}),r}var Qn=jn,oe=an,ue=ln,kn=on,Vn=Ne,er=Qn,nr=Bn,rr=1,ar=2,tr="[object Boolean]",sr="[object Date]",ir="[object Error]",lr="[object Map]",or="[object Number]",ur="[object RegExp]",cr="[object Set]",fr="[object String]",vr="[object Symbol]",dr="[object ArrayBuffer]",gr="[object DataView]",ce=oe?oe.prototype:void 0,X=ce?ce.valueOf:void 0;function hr(e,n,r,a,t,s,i){switch(r){case gr:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case dr:return!(e.byteLength!=n.byteLength||!s(new ue(e),new ue(n)));case tr:case sr:case or:return kn(+e,+n);case ir:return e.name==n.name&&e.message==n.message;case ur:case fr:return e==n+"";case lr:var l=er;case cr:var o=a&rr;if(l||(l=nr),e.size!=n.size&&!o)return!1;var u=i.get(e);if(u)return u==n;a|=ar,i.set(e,n);var c=Vn(l(e),l(n),a,t,s,i);return i.delete(e),c;case vr:if(X)return X.call(e)==X.call(n)}return!1}var yr=hr,fe=un,pr=1,mr=Object.prototype,_r=mr.hasOwnProperty;function Cr(e,n,r,a,t,s){var i=r&pr,l=fe(e),o=l.length,u=fe(n),c=u.length;if(o!=c&&!i)return!1;for(var f=o;f--;){var v=l[f];if(!(i?v in n:_r.call(n,v)))return!1}var m=s.get(e),d=s.get(n);if(m&&d)return m==n&&d==e;var g=!0;s.set(e,n),s.set(n,e);for(var C=i;++f<o;){v=l[f];var w=e[v],b=n[v];if(a)var O=i?a(b,w,v,n,e,s):a(w,b,v,e,n,s);if(!(O===void 0?w===b||t(w,b,r,a,s):O)){g=!1;break}C||(C=v=="constructor")}if(g&&!C){var E=e.constructor,$=n.constructor;E!=$&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof $=="function"&&$ instanceof $)&&(g=!1)}return s.delete(e),s.delete(n),g}var wr=Cr,Z=Ee,br=Ne,Ar=yr,Or=wr,ve=tn,de=D,ge=rn.exports,$r=sn,Sr=1,he="[object Arguments]",ye="[object Array]",q="[object Object]",Er=Object.prototype,pe=Er.hasOwnProperty;function Tr(e,n,r,a,t,s){var i=de(e),l=de(n),o=i?ye:ve(e),u=l?ye:ve(n);o=o==he?q:o,u=u==he?q:u;var c=o==q,f=u==q,v=o==u;if(v&&ge(e)){if(!ge(n))return!1;i=!0,c=!1}if(v&&!c)return s||(s=new Z),i||$r(e)?br(e,n,r,a,t,s):Ar(e,n,o,r,a,t,s);if(!(r&Sr)){var m=c&&pe.call(e,"__wrapped__"),d=f&&pe.call(n,"__wrapped__");if(m||d){var g=m?e.value():e,C=d?n.value():n;return s||(s=new Z),t(g,C,r,a,s)}}return v?(s||(s=new Z),Or(e,n,r,a,t,s)):!1}var Pr=Tr,Lr=Pr,me=Se;function Fe(e,n,r,a,t){return e===n?!0:e==null||n==null||!me(e)&&!me(n)?e!==e&&n!==n:Lr(e,n,r,a,Fe,t)}var re=Fe,xr=re;function Ir(e,n){return xr(e,n)}var Mr=Ir;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Rr=D,Nr=Te,Fr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dr=/^\w*$/;function Gr(e,n){if(Rr(e))return!1;var r=Pe(e);return r=="number"||r=="symbol"||r=="boolean"||e==null||Nr(e)?!0:Dr.test(e)||!Fr.test(e)||n!=null&&e in Object(n)}var ae=Gr,De=$e,qr="Expected a function";function te(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(qr);var r=function a(){var t=arguments,s=n?n.apply(this,t):t[0],i=a.cache;if(i.has(s))return i.get(s);var l=e.apply(this,t);return a.cache=i.set(s,l)||i,l};return r.cache=new(te.Cache||De),r}te.Cache=De;var Kr=te,Br=Kr,zr=500;function Hr(e){var n=Br(e,function(a){return r.size===zr&&r.clear(),a}),r=n.cache;return n}var Ur=Hr,Wr=Ur,Xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zr=/\\(\\)?/g,Yr=Wr(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Xr,function(r,a,t,s){n.push(t?s.replace(Zr,"$1"):a||r)}),n}),Jr=Yr,jr=D,Qr=ae,kr=Jr,Vr=cn;function ea(e,n){return jr(e)?e:Qr(e,n)?[e]:kr(Vr(e))}var Ge=ea,na=Te,ra=1/0;function aa(e){if(typeof e=="string"||na(e))return e;var n=e+"";return n=="0"&&1/e==-ra?"-0":n}var U=aa,ta=Ge,sa=U;function ia(e,n){n=ta(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[sa(n[r++])];return r&&r==a?e:void 0}var qe=ia;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var la=qe;function oa(e,n,r){var a=e==null?void 0:la(e,n);return a===void 0?r:a}var ua=oa;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ca(e,n){return e!=null&&n in Object(e)}var fa=ca,va=Ge,da=fn,ga=D,ha=vn,ya=dn,pa=U;function ma(e,n,r){n=va(n,e);for(var a=-1,t=n.length,s=!1;++a<t;){var i=pa(n[a]);if(!(s=e!=null&&r(e,i)))break;e=e[i]}return s||++a!=t?s:(t=e==null?0:e.length,!!t&&ya(t)&&ha(i,t)&&(ga(e)||da(e)))}var _a=ma,Ca=fa,wa=_a;function ba(e,n){return e!=null&&wa(e,n,Ca)}var Aa=ba;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Oa(e){return function(n){return n==null?void 0:n[e]}}var $a=Oa;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Sa(e){if(Array.isArray(e))return e}function Ea(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,t,s,i,l=[],o=!0,u=!1;try{if(s=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;o=!1}else for(;!(o=(a=s.call(r)).done)&&(l.push(a.value),l.length!==n);o=!0);}catch(c){u=!0,t=c}finally{try{if(!o&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw t}}return l}}function Ta(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pa(e,n){return Sa(e)||Ea(e,n)||wn(e,n)||Ta()}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function _e(e,n){var r=Object.keys(n);r.forEach(function(a){e.style[a]=n[a]})}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var La=gn,xa=Se,Ia="[object Number]";function Ma(e){return typeof e=="number"||xa(e)&&La(e)==Ia}var Ra=Ma;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Na(){if(typeof navigator>"u"||!navigator)return Number.MAX_SAFE_INTEGER;var e=navigator,n=e.userAgent,r=n.indexOf("compatible")>-1&&n.indexOf("MSIE")>-1,a=n.indexOf("Trident")>-1&&n.indexOf("rv:11.0")>-1;if(r){var t=new RegExp("MSIE (\\d+\\.\\d+);"),s=n.match(t);if(!s)return-1;var i=parseFloat(s[1]);return i<7?6:i}return a?11:Number.MAX_SAFE_INTEGER}function Vt(e,n){var r=Ra(n);if(!e||e.length===0)return r?{length:0,characters:e}:0;for(var a=0,t=0;t<e.length;t++){var s=0;if(e.charCodeAt(t)>127?s=2:s=1,r&&a+s>n)return{length:a,characters:e.slice(0,t)};a+=s}return r?{length:a,characters:e}:a}function es(e){return J(e!=null?e:"").length}function ns(e,n,r){return J(r!=null?r:"").slice().length===n?r||"":J(e!=null?e:"").slice(0,n).join("")}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Ce(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function K(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Ce(Object(r),!0).forEach(function(a){R(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Fa(e){var n,r,a,t={};if(!(!e||typeof window>"u")){var s=(n=window)===null||n===void 0||(r=n.getComputedStyle)===null||r===void 0?void 0:r.call(n,e),i=s.color,l=s.fontSize,o=(a=window)===null||a===void 0||(a=a.navigator)===null||a===void 0?void 0:a.userAgent,u=/Safari/.test(o)&&!/Chrome/.test(o),c=/(?=.*iPhone)[?=.*MicroMessenger]/.test(o)&&!/Chrome/.test(o);if((u||c)&&(t={transformOrigin:"0px 0px",transform:"scale(".concat(parseInt(l,10)/12,")")}),i&&Na()>11){var f=i.match(/[\d.]+/g),v=f?"rgba(".concat(f[0],", ").concat(f[1],", ").concat(f[2],", 0)"):"";_e(e,K(K({},t),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(v," 0deg, ").concat(i," 360deg)")}))}else _e(e,K(K({},t),{},{background:""}))}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Da=ee({name:"TLoadingGradient",setup:function(){var n=p();return ne(function(){var r=An().refs.circle;On(function(){Fa(r)})}),{classPrefix:n}},render:function(){var n=this.classPrefix,r="".concat(n,"-loading__gradient"),a=[r,"".concat(n,"-icon-loading")];return h("svg",{class:a,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[h("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[h("div",{class:"".concat(r,"-conic"),ref:"circle"},null)])])}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var se={exports:{}},M={exports:{}};(function(){var e,n,r,a,t,s;typeof performance<"u"&&performance!==null&&performance.now?M.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(M.exports=function(){return(e()-t)/1e6},n=process.hrtime,e=function(){var l;return l=n(),l[0]*1e9+l[1]},a=e(),s=process.uptime()*1e9,t=a-s):Date.now?(M.exports=function(){return Date.now()-r},r=Date.now()):(M.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Le);var Ga=M.exports,A=typeof window>"u"?Le:window,B=["moz","webkit"],P="AnimationFrame",L=A["request"+P],F=A["cancel"+P]||A["cancelRequest"+P];for(var I=0;!L&&I<B.length;I++)L=A[B[I]+"Request"+P],F=A[B[I]+"Cancel"+P]||A[B[I]+"CancelRequest"+P];if(!L||!F){var Y=0,we=0,S=[],qa=1e3/60;L=function(n){if(S.length===0){var r=Ga(),a=Math.max(0,qa-(r-Y));Y=a+r,setTimeout(function(){var t=S.slice(0);S.length=0;for(var s=function(){if(!t[i].cancelled)try{t[i].callback(Y)}catch(o){setTimeout(function(){throw o},0)}},i=0;i<t.length;i++)s()},Math.round(a))}return S.push({handle:++we,callback:n,cancelled:!1}),we},F=function(n){for(var r=0;r<S.length;r++)S[r].handle===n&&(S[r].cancelled=!0)}}se.exports=function(e){return L.call(A,e)};se.exports.cancel=function(){F.apply(A,arguments)};se.exports.polyfill=function(e){e||(e=A),e.requestAnimationFrame=L,e.cancelAnimationFrame=F};var Ke=typeof window>"u",Ka=function(n){return(n||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},Ba=function(){return!Ke&&document.addEventListener?function(e,n,r,a){e&&n&&r&&e.addEventListener(n,r,a)}:function(e,n,r){e&&n&&r&&e.attachEvent("on".concat(n),r)}}(),za=function(){return!Ke&&document.removeEventListener?function(e,n,r,a){e&&n&&e.removeEventListener(n,r,a)}:function(e,n,r){e&&n&&e.detachEvent("on".concat(n),r)}}();function rs(e,n,r,a){var t=N(r)?r:r.handleEvent,s=function i(l){t(l),za(e,n,i,a)};Ba(e,n,s,a)}function Be(e,n){if(!e||!n)return!1;if(n.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(n):" ".concat(e.className," ").indexOf(" ".concat(n," "))>-1}function j(e,n){if(!!e){for(var r=e.className,a=(n||"").split(" "),t=0,s=a.length;t<s;t++){var i=a[t];!i||(e.classList?e.classList.add(i):Be(e,i)||(r+=" ".concat(i)))}e.classList||(e.className=r)}}function Q(e,n){if(!(!e||!n)){for(var r=n.split(" "),a=" ".concat(e.className," "),t=0,s=r.length;t<s;t++){var i=r[t];!i||(e.classList?e.classList.remove(i):Be(e,i)&&(a=a.replace(" ".concat(i," ")," ")))}e.classList||(e.className=Ka(a))}}var ze=function(n,r){var a=N(n)?n(r):n;return a?xe(a)?document.querySelector(a):a instanceof HTMLElement?a:document.body:document.body},Ha=function(){},as=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return xe(n)?document.querySelector(n):N(n)?n():n},ts=function(n){var r=n.clientWidth,a=r===void 0?0:r,t=n.scrollWidth,s=t===void 0?0:t;return s>a};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ua={attach:{type:[String,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},fullscreen:Boolean,indicator:{type:[Boolean,Function],default:!0},inheritColor:Boolean,loading:{type:Boolean,default:!0},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},size:{type:String,default:"medium"},text:{type:[String,Function]},zIndex:{type:Number}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Wa=function(n,r){var a=N(n)?y(n):z(n),t=N(r)?y(r):z(r),s=z(),i=function(){s.value=Ha()||ze(a.value,t.value)};return ne(function(){return i()}),Re([a,t],function(){return i()}),s};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Xa=function(){return{name:p("loading"),centerClass:p("loading--center"),fullscreenClass:p("loading__fullscreen"),lockClass:p("loading--lock"),overlayClass:p("loading__overlay"),relativeClass:p("loading__parent"),fullClass:p("loading--full"),inheritColorClass:p("loading--inherit-color")}},k=ee({name:"TLoading",inheritAttrs:!1,props:Ua,setup:function(n,r){var a=r.slots,t=z(!1),s=Xa(),i=s.name,l=s.centerClass,o=s.fullscreenClass,u=s.lockClass,c=s.overlayClass,f=s.relativeClass,v=s.fullClass,m=s.inheritColorClass,d=p(),g=bn(),C=g.SIZE,w=function(){t.value=!1;var x=setTimeout(function(){t.value=!0,clearTimeout(x)},n.delay)},b=Wa(function(){return n.attach}),O=y(function(){return Boolean(!n.delay||n.delay&&t.value)}),E=y(function(){var _={};return n.zIndex!==void 0&&(_.zIndex=n.zIndex),["small","medium","large"].includes(n.size)||(_["font-size"]=n.size),_}),$=y(function(){return Boolean(n.default||a.default||n.content||a.content)}),W=y(function(){return n.preventScrollThrough&&n.fullscreen}),Ze=y(function(){return Boolean(n.text||a.text)}),Ye=y(function(){return $.value&&n.loading&&O.value}),Je=y(function(){return n.fullscreen&&n.loading&&O.value}),je=y(function(){return n.attach&&n.loading&&O.value}),Qe=y(function(){return n.attach&&n.loading&&O.value}),ke=y(function(){var _=[l.value,C.value[n.size],R({},m.value,n.inheritColor)],x=[i.value,o.value,l.value,c.value];return{baseClasses:_,attachClasses:_.concat([i.value,v.value,R({},c.value,n.showOverlay)]),withContentClasses:_.concat([i.value,v.value,R({},c.value,n.showOverlay)]),fullScreenClasses:x,normalClasses:_.concat([i.value])}}),Ve=$n(n),en=Ve.loading;return Re([en],function(_){var x=Pa(_,1),nn=x[0];nn?(w(),W.value&&j(document.body,u.value)):W.value&&Q(document.body,u.value)}),ne(function(){n.delay&&w()}),{classPrefix:d,relativeClass:f,delayShowLoading:t,styles:E,showText:Ze,hasContent:$,classes:ke,lockFullscreen:W,showWrapLoading:Ye,showNormalLoading:je,showFullScreenLoading:Je,showAttachedLoading:Qe,teleportElement:b}},render:function(){var n=this,r=this.classes,a=r.fullScreenClasses,t=r.baseClasses,s=r.withContentClasses,i=r.attachClasses,l=r.normalClasses,o=h(Da,{size:this.size},null),u=this.loading&&ie(this,"indicator",o),c=this.showText&&h("div",{class:"".concat(this.classPrefix,"-loading__text")},[ie(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:h(le,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",G({class:a,style:n.styles},n.$attrs),[h("div",{class:t},[u,c])])]}}):this.hasContent?h("div",G({class:this.relativeClass},this.$attrs),[hn(this,"default","content"),this.showWrapLoading&&h("div",{class:s,style:this.styles},[u,c])]):this.attach?!this.showAttachedLoading||!this.loading?null:h(le,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",G({class:i,style:n.styles},n.$attrs),[u,c])]}}):this.loading?h("div",G({class:l,style:this.styles},this.$attrs),[u,c]):null}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function be(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Za(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?be(Object(r),!0).forEach(function(a){R(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var T=null;function Ya(e){var n=yn({fullscreen:!1,attach:"body",loading:!0,preventScrollThrough:!0},e);return n}function Ae(e){var n=Ya(e);if(n.fullscreen&&T)return T;var r=ee({setup:function(){var f=Sn(n);return{loadingOptions:f}},render:function(){return En(k,Za({},this.loadingOptions))}}),a=ze(n.fullscreen?"body":n.attach),t=Tn(r),s=t.mount(document.createElement("div")),i=p("loading__parent--relative").value,l=p("loading--lock"),o=n.preventScrollThrough&&n.fullscreen;o&&j(document.body,l.value),a?j(a,i):console.error("attach is not exist");var u={hide:function(){s.loading=!1,Q(a,i),Q(document.body,l.value),t.unmount()}};return u}function He(e){if(e===!0)return T=Ae({fullscreen:!0,loading:!0,attach:"body",preventScrollThrough:!0}),T;if(e===!1){var n;(n=T)===null||n===void 0||n.hide(),T=null;return}return Ae(e)}var Ue=He;Ue.install=function(e){e.config.globalProperties.$loading=He};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ja=pn,ja=Me;function Qa(e,n){return e&&Ja(e,n,ja)}var ka=Qa,Va=Ee,et=re,nt=1,rt=2;function at(e,n,r,a){var t=r.length,s=t,i=!a;if(e==null)return!s;for(e=Object(e);t--;){var l=r[t];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++t<s;){l=r[t];var o=l[0],u=e[o],c=l[1];if(i&&l[2]){if(u===void 0&&!(o in e))return!1}else{var f=new Va;if(a)var v=a(u,c,o,e,n,f);if(!(v===void 0?et(c,u,nt|rt,a,f):v))return!1}}return!0}var tt=at,st=Ie;function it(e){return e===e&&!st(e)}var We=it,lt=We,ot=Me;function ut(e){for(var n=ot(e),r=n.length;r--;){var a=n[r],t=e[a];n[r]=[a,t,lt(t)]}return n}var ct=ut;function ft(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}var Xe=ft,vt=tt,dt=ct,gt=Xe;function ht(e){var n=dt(e);return n.length==1&&n[0][2]?gt(n[0][0],n[0][1]):function(r){return r===e||vt(r,e,n)}}var yt=ht,pt=re,mt=ua,_t=Aa,Ct=ae,wt=We,bt=Xe,At=U,Ot=1,$t=2;function St(e,n){return Ct(e)&&wt(n)?bt(At(e),n):function(r){var a=mt(r,e);return a===void 0&&a===n?_t(r,e):pt(n,a,Ot|$t)}}var Et=St,Tt=qe;function Pt(e){return function(n){return Tt(n,e)}}var Lt=Pt,xt=$a,It=Lt,Mt=ae,Rt=U;function Nt(e){return Mt(e)?xt(Rt(e)):It(e)}var Ft=Nt,Dt=yt,Gt=Et,qt=mn,Kt=D,Bt=Ft;function zt(e){return typeof e=="function"?e:e==null?qt:Pe(e)=="object"?Kt(e)?Gt(e[0],e[1]):Dt(e):Bt(e)}var Ht=zt,Ut=_n,Wt=ka,Xt=Ht;function Zt(e,n){var r={};return n=Xt(n),Wt(e,function(a,t,s){Ut(r,n(a,t,s),a)}),r}var Yt=Zt,V=Symbol("TdLoading"),Oe=function(n,r){var a=r.modifiers,t=a.fullscreen,s=a.inheritColor,i={attach:function(){return n},fullscreen:t!=null?t:!1,inheritColor:s!=null?s:!1,loading:r.value};Ie(r.value)&&Yt(r.value,function(l,o){i[o]=l}),n[V]={options:i,instance:Ue(i)}},Jt={mounted:function(n,r){r.value&&Oe(n,r)},updated:function(n,r){var a=n[V],t=r.value,s=r.oldValue;if(!Mr(t,s)){var i,l=(i=t==null?void 0:t.loading)!==null&&i!==void 0?i:t;l?Oe(n,r):a==null||a.instance.hide()}},unmounted:function(n){var r;(r=n[V])===null||r===void 0||r.instance.hide()}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ss=Cn(k,k.name,{name:"loading",comp:Jt});export{ss as L,Pa as _,Ba as a,Dn as b,qn as c,Ra as d,Vt as e,ze as f,as as g,ts as h,Ke as i,Na as j,Bn as k,ua as l,Be as m,Sa as n,za as o,Ta as p,Ha as q,rs as r,_e as s,es as t,ns as u,Ge as v,U as w,qe as x,Aa as y,Wa as z};