diff --git a/www/js/zui3/zui.zentao.js b/www/js/zui3/zui.zentao.js index 056fcbe4df..5deeef8051 100644 --- a/www/js/zui3/zui.zentao.js +++ b/www/js/zui3/zui.zentao.js @@ -1,25 +1,25 @@ -var vd=(N,ct,Ft)=>{if(!ct.has(N))throw TypeError("Cannot "+Ft)};var Ot=(N,ct,Ft)=>(vd(N,ct,"read from private field"),Ft?Ft.call(N):ct.get(N)),Xt=(N,ct,Ft)=>{if(ct.has(N))throw TypeError("Cannot add the same private member more than once");ct instanceof WeakSet?ct.add(N):ct.set(N,Ft)},rn=(N,ct,Ft,zl)=>(vd(N,ct,"write to private field"),zl?zl.call(N,Ft):ct.set(N,Ft),Ft);var bd=(N,ct,Ft)=>(vd(N,ct,"access private method"),Ft);(function(N,ct){typeof exports=="object"&&typeof module<"u"?ct(exports):typeof define=="function"&&define.amd?define(["exports"],ct):(N=typeof globalThis<"u"?globalThis:N||self,ct(N.zui={}))})(this,function(N){var al,ll,Br,Hr,Ur,Wr,Vr,Kr,cl,lv,hl,cv,ps,ms,wy,Cy;"use strict";const ct="",Ft="",zl="",Uk="",Wk="",Vk="",Kk="",qk="",Gk="",Yk="",Zk="",Xk="",Ol="3.0.0",gv="production",Sd="b0dba47606b9d50f7eaf189a10d607a3ded9b1af",Mn=document,lo=window,xd=Mn.documentElement,ks=Mn.createElement.bind(Mn),Dd=ks("div"),Fl=ks("table"),yv=ks("tbody"),Td=ks("tr"),{isArray:co,prototype:$d}=Array,{concat:vv,filter:jl,indexOf:Id,map:Nd,push:bv,slice:Ed,some:Bl,splice:_v}=$d,wv=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,Cv=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,kv=/<.+>/,Sv=/^\w+$/;function Hl(s,e){const t=xv(e);return!s||!t&&!Ss(e)&&!dt(e)?[]:!t&&Cv.test(s)?e.getElementsByClassName(s.slice(1).replace(/\\/g,"")):!t&&Sv.test(s)?e.getElementsByTagName(s):e.querySelectorAll(s)}class ho{constructor(e,t){if(!e)return;if(Ul(e))return e;let n=e;if(It(e)){const i=t||Mn;if(n=wv.test(e)&&Ss(i)?i.getElementById(e.slice(1).replace(/\\/g,"")):kv.test(e)?zd(e):Ul(i)?i.find(e):It(i)?g(i).find(e):Hl(e,i),!n)return}else if(xs(e))return this.ready(e);(n.nodeType||n===lo)&&(n=[n]),this.length=n.length;for(let i=0,r=this.length;i{for(;e.firstChild;)e.removeChild(e.firstChild)})};function uo(...s){const e=Tv(s[0])?s.shift():!1,t=s.shift(),n=s.length;if(!t)return{};if(!n)return uo(e,g,t);for(let i=0;i{dt(r)&&_t(t,(o,a)=>{n?e?r.classList.add(a):r.classList.remove(a):r.classList.toggle(a)})})},ae.addClass=function(s){return this.toggleClass(s,!0)},ae.removeAttr=function(s){const e=fo(s);return this.each((t,n)=>{dt(n)&&_t(e,(i,r)=>{n.removeAttribute(r)})})};function Iv(s,e){if(s){if(It(s)){if(arguments.length<2){if(!this[0]||!dt(this[0]))return;const t=this[0].getAttribute(s);return Vi(t)?void 0:t}return jt(e)?this:Vi(e)?this.removeAttr(s):this.each((t,n)=>{dt(n)&&n.setAttribute(s,e)})}for(const t in s)this.attr(t,s[t]);return this}}ae.attr=Iv,ae.removeClass=function(s){return arguments.length?this.toggleClass(s,!1):this.attr("class","")},ae.hasClass=function(s){return!!s&&Bl.call(this,e=>dt(e)&&e.classList.contains(s))},ae.get=function(s){return jt(s)?Ed.call(this):(s=Number(s),this[s<0?s+this.length:s])},ae.eq=function(s){return g(this.get(s))},ae.first=function(){return this.eq(0)},ae.last=function(){return this.eq(-1)};function Nv(s){return jt(s)?this.get().map(e=>dt(e)||Dv(e)?e.textContent:"").join(""):this.each((e,t)=>{dt(t)&&(t.textContent=s)})}ae.text=Nv;function An(s,e,t){if(!dt(s))return;const n=lo.getComputedStyle(s,null);return t?n.getPropertyValue(e)||void 0:n[e]||s.style[e]}function yn(s,e){return parseInt(An(s,e),10)||0}function Ad(s,e){return yn(s,`border${e?"Left":"Top"}Width`)+yn(s,`padding${e?"Left":"Top"}`)+yn(s,`padding${e?"Right":"Bottom"}`)+yn(s,`border${e?"Right":"Bottom"}Width`)}const Vl={};function Ev(s){if(Vl[s])return Vl[s];const e=ks(s);Mn.body.insertBefore(e,null);const t=An(e,"display");return Mn.body.removeChild(e),Vl[s]=t!=="none"?t:"block"}function Pd(s){return An(s,"display")==="none"}function Ld(s,e){const t=s&&(s.matches||s.webkitMatchesSelector||s.msMatchesSelector);return!!t&&!!e&&t.call(s,e)}function po(s){return It(s)?(e,t)=>Ld(t,s):xs(s)?s:Ul(s)?(e,t)=>s.is(t):s?(e,t)=>t===s:()=>!1}ae.filter=function(s){const e=po(s);return g(jl.call(this,(t,n)=>e.call(t,n,t)))};function Gn(s,e){return e?s.filter(e):s}ae.detach=function(s){return Gn(this,s).each((e,t)=>{t.parentNode&&t.parentNode.removeChild(t)}),this};const Mv=/^\s*<(\w+)[^>]*>/,Av=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Rd={"*":Dd,tr:yv,td:Td,th:Td,thead:Fl,tbody:Fl,tfoot:Fl};function zd(s){if(!It(s))return[];if(Av.test(s))return[ks(RegExp.$1)];const e=Mv.test(s)&&RegExp.$1,t=Rd[e]||Rd["*"];return t.innerHTML=s,g(t.childNodes).detach().get()}g.parseHTML=zd,ae.has=function(s){const e=It(s)?(t,n)=>Hl(s,n).length:(t,n)=>n.contains(s);return this.filter(e)},ae.not=function(s){const e=po(s);return this.filter((t,n)=>(!It(s)||dt(n))&&!e.call(n,t,n))};function Pn(s,e,t,n){const i=[],r=xs(e),o=n&&po(n);for(let a=0,l=s.length;ae.selected&&!e.disabled&&!e.parentNode.disabled),"value"):s.value||""}function Pv(s){return arguments.length?this.each((e,t)=>{const n=t.multiple&&t.options;if(n||Yd.test(t.type)){const i=co(s)?Nd.call(s,String):Vi(s)?[]:[String(s)];n?_t(t.options,(r,o)=>{o.selected=i.indexOf(o.value)>=0},!0):t.checked=i.indexOf(t.value)>=0}else t.value=jt(s)||Vi(s)?"":s}):this[0]&&Od(this[0])}ae.val=Pv,ae.is=function(s){const e=po(s);return Bl.call(this,(t,n)=>e.call(t,n,t))},g.guid=1;function vn(s){return s.length>1?jl.call(s,(e,t,n)=>Id.call(n,e)===t):s}g.unique=vn,ae.add=function(s,e){return g(vn(this.get().concat(g(s,e).get())))},ae.children=function(s){return Gn(g(vn(Pn(this,e=>e.children))),s)},ae.parent=function(s){return Gn(g(vn(Pn(this,"parentNode"))),s)},ae.index=function(s){const e=s?g(s)[0]:this[0],t=s?this:g(e).parent().children();return Id.call(t,e)},ae.closest=function(s){const e=this.filter(s);if(e.length)return e;const t=this.parent();return t.length?t.closest(s):e},ae.siblings=function(s){return Gn(g(vn(Pn(this,e=>g(e).parent().children().not(e)))),s)},ae.find=function(s){return g(vn(Pn(this,e=>Hl(s,e))))};const Lv=/^\s*\s*$/g,Rv=/^$|^module$|\/(java|ecma)script/i,zv=["type","src","nonce","noModule"];function Ov(s,e){const t=g(s);t.filter("script").add(t.find("script")).each((n,i)=>{if(Rv.test(i.type)&&xd.contains(i)){const r=ks("script");r.text=i.textContent.replace(Lv,""),_t(zv,(o,a)=>{i[a]&&(r[a]=i[a])}),e.head.insertBefore(r,null),e.head.removeChild(r)}})}function Fv(s,e,t,n,i){n?s.insertBefore(e,t?s.firstChild:null):s.nodeName==="HTML"?s.parentNode.replaceChild(e,s):s.parentNode.insertBefore(e,t?s:s.nextSibling),i&&Ov(e,s.ownerDocument)}function Yn(s,e,t,n,i,r,o,a){return _t(s,(l,c)=>{_t(g(c),(h,u)=>{_t(g(e),(f,m)=>{const b=t?u:m,w=t?m:u,C=t?h:f;Fv(b,C?w.cloneNode(!0):w,n,i,!C)},a)},o)},r),e}ae.after=function(){return Yn(arguments,this,!1,!1,!1,!0,!0)},ae.append=function(){return Yn(arguments,this,!1,!1,!0)};function jv(s){if(!arguments.length)return this[0]&&this[0].innerHTML;if(jt(s))return this;const e=/]/.test(s);return this.each((t,n)=>{dt(n)&&(e?g(n).empty().append(s):n.innerHTML=s)})}ae.html=jv,ae.appendTo=function(s){return Yn(arguments,this,!0,!1,!0)},ae.wrapInner=function(s){return this.each((e,t)=>{const n=g(t),i=n.contents();i.length?i.wrapAll(s):n.append(s)})},ae.before=function(){return Yn(arguments,this,!1,!0)},ae.wrapAll=function(s){let e=g(s),t=e[0];for(;t.children.length;)t=t.firstElementChild;return this.first().before(e),this.appendTo(t)},ae.wrap=function(s){return this.each((e,t)=>{const n=g(s)[0];g(t).wrapAll(e?n.cloneNode(!0):n)})},ae.insertAfter=function(s){return Yn(arguments,this,!0,!1,!1,!1,!1,!0)},ae.insertBefore=function(s){return Yn(arguments,this,!0,!0)},ae.prepend=function(){return Yn(arguments,this,!1,!0,!0,!0,!0)},ae.prependTo=function(s){return Yn(arguments,this,!0,!0,!0,!1,!1,!0)},ae.contents=function(){return g(vn(Pn(this,s=>s.tagName==="IFRAME"?[s.contentDocument]:s.tagName==="TEMPLATE"?s.content.childNodes:s.childNodes)))},ae.next=function(s,e,t){return Gn(g(vn(Pn(this,"nextElementSibling",e,t))),s)},ae.nextAll=function(s){return this.next(s,!0)},ae.nextUntil=function(s,e){return this.next(e,!0,s)},ae.parents=function(s,e){return Gn(g(vn(Pn(this,"parentElement",!0,e))),s)},ae.parentsUntil=function(s,e){return this.parents(e,s)},ae.prev=function(s,e,t){return Gn(g(vn(Pn(this,"previousElementSibling",e,t))),s)},ae.prevAll=function(s){return this.prev(s,!0)},ae.prevUntil=function(s,e){return this.prev(e,!0,s)},ae.map=function(s){return g(vv.apply([],Nd.call(this,(e,t)=>s.call(e,t,e))))},ae.clone=function(){return this.map((s,e)=>e.cloneNode(!0))},ae.offsetParent=function(){return this.map((s,e)=>{let t=e.offsetParent;for(;t&&An(t,"position")==="static";)t=t.offsetParent;return t||xd})},ae.slice=function(s,e){return g(Ed.call(this,s,e))};const Bv=/-([a-z])/g;function Kl(s){return s.replace(Bv,(e,t)=>t.toUpperCase())}ae.ready=function(s){const e=()=>setTimeout(s,0,g);return Mn.readyState!=="loading"?e():Mn.addEventListener("DOMContentLoaded",e),this},ae.unwrap=function(){return this.parent().each((s,e)=>{if(e.tagName==="BODY")return;const t=g(e);t.replaceWith(t.children())}),this},ae.offset=function(){const s=this[0];if(!s)return;const e=s.getBoundingClientRect();return{top:e.top+lo.pageYOffset,left:e.left+lo.pageXOffset}},ae.position=function(){const s=this[0];if(!s)return;const e=An(s,"position")==="fixed",t=e?s.getBoundingClientRect():this.offset();if(!e){const n=s.ownerDocument;let i=s.offsetParent||n.documentElement;for(;(i===n.body||i===n.documentElement)&&An(i,"position")==="static";)i=i.parentNode;if(i!==s&&dt(i)){const r=g(i).offset();t.top-=r.top+yn(i,"borderTopWidth"),t.left-=r.left+yn(i,"borderLeftWidth")}}return{top:t.top-yn(s,"marginTop"),left:t.left-yn(s,"marginLeft")}};const Fd={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};ae.prop=function(s,e){if(s){if(It(s))return s=Fd[s]||s,arguments.length<2?this[0]&&this[0][s]:this.each((t,n)=>{n[s]=e});for(const t in s)this.prop(t,s[t]);return this}},ae.removeProp=function(s){return this.each((e,t)=>{delete t[Fd[s]||s]})};const Hv=/^--/;function ql(s){return Hv.test(s)}const Gl={},{style:Uv}=Dd,Wv=["webkit","moz","ms"];function Vv(s,e=ql(s)){if(e)return s;if(!Gl[s]){const t=Kl(s),n=`${t[0].toUpperCase()}${t.slice(1)}`,i=`${t} ${Wv.join(`${n} `)}${n}`.split(" ");_t(i,(r,o)=>{if(o in Uv)return Gl[s]=o,!1})}return Gl[s]}const Kv={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function jd(s,e,t=ql(s)){return!t&&!Kv[s]&&Md(e)?`${e}px`:e}function qv(s,e){if(It(s)){const t=ql(s);return s=Vv(s,t),arguments.length<2?this[0]&&An(this[0],s,t):s?(e=jd(s,e,t),this.each((n,i)=>{dt(i)&&(t?i.style.setProperty(s,e):i.style[s]=e)})):this}for(const t in s)this.css(t,s[t]);return this}ae.css=qv;function Bd(s,e){try{return s(e)}catch{return e}}const Gv=/^\s+|\s+$/;function Hd(s,e){const t=s.dataset[e]||s.dataset[Kl(e)];return Gv.test(t)?t:Bd(JSON.parse,t)}function Yv(s,e,t){t=Bd(JSON.stringify,t),s.dataset[Kl(e)]=t}function Zv(s,e){if(!s){if(!this[0])return;const t={};for(const n in this[0].dataset)t[n]=Hd(this[0],n);return t}if(It(s))return arguments.length<2?this[0]&&Hd(this[0],s):jt(e)?this:this.each((t,n)=>{Yv(n,s,e)});for(const t in s)this.data(t,s[t]);return this}ae.data=Zv;function Ud(s,e){const t=s.documentElement;return Math.max(s.body[`scroll${e}`],t[`scroll${e}`],s.body[`offset${e}`],t[`offset${e}`],t[`client${e}`])}_t([!0,!1],(s,e)=>{_t(["Width","Height"],(t,n)=>{const i=`${e?"outer":"inner"}${n}`;ae[i]=function(r){if(this[0])return ni(this[0])?e?this[0][`inner${n}`]:this[0].document.documentElement[`client${n}`]:Ss(this[0])?Ud(this[0],n):this[0][`${e?"offset":"client"}${n}`]+(r&&e?yn(this[0],`margin${t?"Top":"Left"}`)+yn(this[0],`margin${t?"Bottom":"Right"}`):0)}})}),_t(["Width","Height"],(s,e)=>{const t=e.toLowerCase();ae[t]=function(n){if(!this[0])return jt(n)?void 0:this;if(!arguments.length)return ni(this[0])?this[0].document.documentElement[`client${e}`]:Ss(this[0])?Ud(this[0],e):this[0].getBoundingClientRect()[t]-Ad(this[0],!s);const i=parseInt(n,10);return this.each((r,o)=>{if(!dt(o))return;const a=An(o,"boxSizing");o.style[t]=jd(t,i+(a==="border-box"?Ad(o,!s):0))})}});const Wd="___cd";ae.toggle=function(s){return this.each((e,t)=>{if(!dt(t))return;const n=Pd(t);(jt(s)?n:s)?(t.style.display=t[Wd]||"",Pd(t)&&(t.style.display=Ev(t.tagName))):n||(t[Wd]=An(t,"display"),t.style.display="none")})},ae.hide=function(){return this.toggle(!1)},ae.show=function(){return this.toggle(!0)};const Vd="___ce",Yl=".",Zl={focus:"focusin",blur:"focusout"},Kd={mouseenter:"mouseover",mouseleave:"mouseout"},Xv=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function Xl(s){return Kd[s]||Zl[s]||s}function Jl(s){const e=s.split(Yl);return[e[0],e.slice(1).sort()]}ae.trigger=function(s,e){if(It(s)){const[n,i]=Jl(s),r=Xl(n);if(!r)return this;const o=Xv.test(r)?"MouseEvents":"HTMLEvents";s=Mn.createEvent(o),s.initEvent(r,!0,!0),s.namespace=i.join(Yl),s.___ot=n}s.___td=e;const t=s.___ot in Zl;return this.each((n,i)=>{t&&xs(i[s.___ot])&&(i[`___i${s.type}`]=!0,i[s.___ot](),i[`___i${s.type}`]=!1),i.dispatchEvent(s)})};function qd(s){return s[Vd]=s[Vd]||{}}function Jv(s,e,t,n,i){const r=qd(s);r[e]=r[e]||[],r[e].push([t,n,i]),s.addEventListener(e,i)}function Gd(s,e){return!e||!Bl.call(e,t=>s.indexOf(t)<0)}function mo(s,e,t,n,i){const r=qd(s);if(e)r[e]&&(r[e]=r[e].filter(([o,a,l])=>{if(i&&l.guid!==i.guid||!Gd(o,t)||n&&n!==a)return!0;s.removeEventListener(e,l)}));else for(e in r)mo(s,e,t,n,i)}ae.off=function(s,e,t){if(jt(s))this.each((n,i)=>{!dt(i)&&!Ss(i)&&!ni(i)||mo(i)});else if(It(s))xs(e)&&(t=e,e=""),_t(fo(s),(n,i)=>{const[r,o]=Jl(i),a=Xl(r);this.each((l,c)=>{!dt(c)&&!Ss(c)&&!ni(c)||mo(c,a,o,e,t)})});else for(const n in s)this.off(n,s[n]);return this},ae.remove=function(s){return Gn(this,s).detach().off(),this},ae.replaceWith=function(s){return this.before(s).remove()},ae.replaceAll=function(s){return g(s).replaceWith(this),this};function Qv(s,e,t,n,i){if(!It(s)){for(const r in s)this.on(r,e,t,s[r],i);return this}return It(e)||(jt(e)||Vi(e)?e="":jt(t)?(t=e,e=""):(n=t,t=e,e="")),xs(n)||(n=t,t=void 0),n?(_t(fo(s),(r,o)=>{const[a,l]=Jl(o),c=Xl(a),h=a in Kd,u=a in Zl;c&&this.each((f,m)=>{if(!dt(m)&&!Ss(m)&&!ni(m))return;const b=function(w){if(w.target[`___i${w.type}`])return w.stopImmediatePropagation();if(w.namespace&&!Gd(l,w.namespace.split(Yl))||!e&&(u&&(w.target!==m||w.___ot===c)||h&&w.relatedTarget&&m.contains(w.relatedTarget)))return;let C=m;if(e){let T=w.target;for(;!Ld(T,e);)if(T===m||(T=T.parentNode,!T))return;C=T}Object.defineProperty(w,"currentTarget",{configurable:!0,get(){return C}}),Object.defineProperty(w,"delegateTarget",{configurable:!0,get(){return m}}),Object.defineProperty(w,"data",{configurable:!0,get(){return t}});const S=n.call(C,w,w.___td);i&&mo(m,c,l,e,b),S===!1&&(w.preventDefault(),w.stopPropagation())};b.guid=n.guid=n.guid||g.guid++,Jv(m,c,l,e,b)})}),this):this}ae.on=Qv;function eb(s,e,t,n){return this.on(s,e,t,n,!0)}ae.one=eb;const tb=/\r?\n/g;function nb(s,e){return`&${encodeURIComponent(s)}=${encodeURIComponent(e.replace(tb,`\r -`))}`}const sb=/file|reset|submit|button|image/i,Yd=/radio|checkbox/i;ae.serialize=function(){let s="";return this.each((e,t)=>{_t(t.elements||[t],(n,i)=>{if(i.disabled||!i.name||i.tagName==="FIELDSET"||sb.test(i.type)||Yd.test(i.type)&&!i.checked)return;const r=Od(i);if(!jt(r)){const o=co(r)?r:[r];_t(o,(a,l)=>{s+=nb(i.name,l)})}})}),s.slice(1)},window.$=g;function Zd(s,e){if(s==null)return[s,void 0];typeof e=="string"&&(e=e.split("."));const t=e.join(".");let n=s;const i=[n];for(;typeof n=="object"&&n!==null&&e.length;){let r=e.shift(),o;const a=r.indexOf("[");if(a>0&&a1?i[r-2]:s,e[e.length-1]),o===void 0?t:o}catch{return t}}function Ln(s,e,t,n){let i;const r=Ki(s,e,void 0,o=>{i=o});return typeof r=="function"?r.apply(n??i,t):r}function ib(s){return typeof s=="string"&&s!==""}function Se(s,...e){if(e.length===0)return s;if(e.length===1&&typeof e[0]=="object"&&e[0]){const t=e[0];return Object.keys(t).forEach(n=>{const i=t[n]??"";s=s.replace(new RegExp(`\\{${n}\\}`,"g"),`${i}`)}),s}for(let t=0;t(s[s.B=1]="B",s[s.KB=1024]="KB",s[s.MB=1048576]="MB",s[s.GB=1073741824]="GB",s[s.TB=1099511627776]="TB",s))(Ql||{});function ht(s,e=2,t){return Number.isNaN(s)?"?KB":(t||(s<1024?t="B":s<1048576?t="KB":s<1073741824?t="MB":s<1099511627776?t="GB":t="TB"),(s/Ql[t]).toFixed(e)+t)}const bn=s=>{const e=/^[0-9]*(B|KB|MB|GB|TB)$/;s=s.toUpperCase(),s.endsWith("B")||(s+="B");const t=s.match(e);if(!t)return 0;const n=t[1];return s=s.replace(n,""),Number.parseInt(s,10)*Ql[n]};let ec=(document.documentElement.getAttribute("lang")||"zh_cn").toLowerCase().replace("-","_"),Rn;function Xd(){return ec}function rb(s){ec=s.toLowerCase().replace("-","_")}function Jd(s,e){Rn||(Rn={}),typeof s=="string"&&(s={[s]:e??{}}),g.extend(!0,Rn,s)}function Pe(s,e,t,n,i,r){Array.isArray(s)?Rn&&s.unshift(Rn):s=Rn?[Rn,s]:[s],typeof t=="string"&&(r=i,i=n,n=t,t=void 0);const o=i||ec;let a;for(const l of s){if(!l)continue;const c=l[o]||l.default;if(!c)continue;const h=r&&l===Rn?`${r}.${e}`:e;if(a=Ki(c,h),a!==void 0)break}return a===void 0?n:t?Se(a,...Array.isArray(t)?t:[t]):a}function ob(s,e,t,n){return Pe(void 0,s,e,t,n)}Pe.addLang=Jd,Pe.getLang=ob,Pe.getCode=Xd,Pe.setCode=rb,Pe.map=Rn,Jd({zh_cn:{confirm:"确定",save:"保存",cancel:"取消",delete:"删除",reset:"重置",add:"添加",copy:"复制",close:"关闭"},zh_tw:{confirm:"確定",save:"儲存",cancel:"取消",delete:"刪除",reset:"重置",add:"添加",Copy:"複製",close:"關閉"},en:{confirm:"Confirm",save:"Save",cancel:"Cancel",delete:"Delete",reset:"Reset",add:"Add",copy:"Copy",close:"Close"}});function Ds(s,e,t){t!=null&&(Array.isArray(t)?t.forEach(n=>Ds(s,e,n)):!(t instanceof Blob)&&g.isPlainObject(t)?Object.entries(t).forEach(([n,i])=>{Ds(s,`${e}[${n}]`,i)}):s.append(e,t instanceof Blob?t:String(t)))}function go(s,e){const t=e||new FormData;return s&&(typeof s=="string"&&(s=new URLSearchParams(s)),s instanceof URLSearchParams?s.forEach((n,i)=>{Ds(t,i,n)}):Array.isArray(s)?s.forEach(([n,i])=>{Ds(t,n,i)}):s instanceof FormData?s.forEach((n,i)=>{Ds(t,i,n)}):typeof s=="object"&&s&&Object.entries(s).forEach(([n,i])=>{Ds(t,n,i)})),t}function St(){return g.guid++}function yo(s,e){if(s===e)return!1;if(s&&e){const t=typeof s,n=typeof e;if(t!==n)return!0;if(t==="object"&&n==="object"){const i=Array.isArray(s),r=Array.isArray(e);if(i!==r)return!0;if(i&&r){if(s.length!==e.length)return!0;for(let l=0;ln instanceof Ts?n.value!==t[i]:yo(n,t[i])))&&(this._value=this._compute(),this._lastDependencies=e.map(n=>n instanceof Ts?n.cache:n)),this._value}}function tc(...s){const e=[],t=new Map,n=(i,r)=>{if(Array.isArray(i)&&(r=i[1],i=i[0]),!i.length)return;const o=t.get(i);typeof o=="number"?e[o][1]=!!r:(t.set(i,e.length),e.push([i,!!r]))};return s.forEach(i=>{typeof i=="function"&&(i=i()),Array.isArray(i)?tc(...i).forEach(n):i&&typeof i=="object"?Object.entries(i).forEach(n):typeof i=="string"&&i.split(" ").forEach(r=>n(r,!0))}),e.sort((i,r)=>(t.get(i[0])||0)-(t.get(r[0])||0))}const K=(...s)=>tc(...s).reduce((e,[t,n])=>(n&&e.push(t),e),[]).join(" ");g.classes=K,g.fn.setClass=function(s,...e){return this.each((t,n)=>{const i=g(n);s===!0?i.attr("class",K(i.attr("class"),...e)):i.addClass(K(s,...e))})};const si=new WeakMap;function vo(s,e,t){const n=si.has(s),i=n?si.get(s):{};typeof e=="string"?i[e]=t:e===null?Object.keys(i).forEach(r=>{delete i[r]}):Object.assign(i,e),Object.keys(i).forEach(r=>{i[r]===void 0&&delete i[r]}),Object.keys(i).length?(!n&&s instanceof Element&&Object.assign(i,g(s).dataset(),i),si.set(s,i)):si.delete(s)}function qi(s,e,t){let n=si.get(s)||{};return t&&s instanceof Element&&(n=Object.assign({},g(s).dataset(),n)),e===void 0?n:n[e]}function ab(s){si.delete(s)}g.fn.dataset=g.fn.data,g.fn.data=function(...s){const[e,t]=s;return!s.length||s.length===1&&typeof e=="string"?this.length?qi(this[0],e,!0):void 0:this.each((n,i)=>vo(i,e,t))},g.fn.removeData=function(s=null){return this.each((e,t)=>vo(t,s))};function Zn(s,...e){return s.includes("RAWJS")&&(s=s.split('"RAWJS<').join("").split('>RAWJS"').join("").split("").join('"').split("").join(` +var vd=(N,ct,Ft)=>{if(!ct.has(N))throw TypeError("Cannot "+Ft)};var Ot=(N,ct,Ft)=>(vd(N,ct,"read from private field"),Ft?Ft.call(N):ct.get(N)),Xt=(N,ct,Ft)=>{if(ct.has(N))throw TypeError("Cannot add the same private member more than once");ct instanceof WeakSet?ct.add(N):ct.set(N,Ft)},rn=(N,ct,Ft,zl)=>(vd(N,ct,"write to private field"),zl?zl.call(N,Ft):ct.set(N,Ft),Ft);var bd=(N,ct,Ft)=>(vd(N,ct,"access private method"),Ft);(function(N,ct){typeof exports=="object"&&typeof module<"u"?ct(exports):typeof define=="function"&&define.amd?define(["exports"],ct):(N=typeof globalThis<"u"?globalThis:N||self,ct(N.zui={}))})(this,function(N){var al,ll,Br,Hr,Ur,Wr,Vr,Kr,cl,lv,hl,cv,ps,ms,wy,Cy;"use strict";const ct="",Ft="",zl="",Uk="",Wk="",Vk="",Kk="",qk="",Gk="",Yk="",Zk="",Xk="",Ol="3.0.0",gv="production",Sd="4a051a086db14b50a65e4b2a32dee4fc45451c32",Mn=document,lo=window,xd=Mn.documentElement,ks=Mn.createElement.bind(Mn),Dd=ks("div"),Fl=ks("table"),yv=ks("tbody"),Td=ks("tr"),{isArray:co,prototype:$d}=Array,{concat:vv,filter:jl,indexOf:Id,map:Nd,push:bv,slice:Ed,some:Bl,splice:_v}=$d,wv=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,Cv=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,kv=/<.+>/,Sv=/^\w+$/;function Hl(s,e){const t=xv(e);return!s||!t&&!Ss(e)&&!dt(e)?[]:!t&&Cv.test(s)?e.getElementsByClassName(s.slice(1).replace(/\\/g,"")):!t&&Sv.test(s)?e.getElementsByTagName(s):e.querySelectorAll(s)}class ho{constructor(e,t){if(!e)return;if(Ul(e))return e;let n=e;if(It(e)){const i=t||Mn;if(n=wv.test(e)&&Ss(i)?i.getElementById(e.slice(1).replace(/\\/g,"")):kv.test(e)?zd(e):Ul(i)?i.find(e):It(i)?g(i).find(e):Hl(e,i),!n)return}else if(xs(e))return this.ready(e);(n.nodeType||n===lo)&&(n=[n]),this.length=n.length;for(let i=0,r=this.length;i{for(;e.firstChild;)e.removeChild(e.firstChild)})};function uo(...s){const e=Tv(s[0])?s.shift():!1,t=s.shift(),n=s.length;if(!t)return{};if(!n)return uo(e,g,t);for(let i=0;i{dt(r)&&_t(t,(o,a)=>{n?e?r.classList.add(a):r.classList.remove(a):r.classList.toggle(a)})})},ae.addClass=function(s){return this.toggleClass(s,!0)},ae.removeAttr=function(s){const e=fo(s);return this.each((t,n)=>{dt(n)&&_t(e,(i,r)=>{n.removeAttribute(r)})})};function Iv(s,e){if(s){if(It(s)){if(arguments.length<2){if(!this[0]||!dt(this[0]))return;const t=this[0].getAttribute(s);return Vi(t)?void 0:t}return jt(e)?this:Vi(e)?this.removeAttr(s):this.each((t,n)=>{dt(n)&&n.setAttribute(s,e)})}for(const t in s)this.attr(t,s[t]);return this}}ae.attr=Iv,ae.removeClass=function(s){return arguments.length?this.toggleClass(s,!1):this.attr("class","")},ae.hasClass=function(s){return!!s&&Bl.call(this,e=>dt(e)&&e.classList.contains(s))},ae.get=function(s){return jt(s)?Ed.call(this):(s=Number(s),this[s<0?s+this.length:s])},ae.eq=function(s){return g(this.get(s))},ae.first=function(){return this.eq(0)},ae.last=function(){return this.eq(-1)};function Nv(s){return jt(s)?this.get().map(e=>dt(e)||Dv(e)?e.textContent:"").join(""):this.each((e,t)=>{dt(t)&&(t.textContent=s)})}ae.text=Nv;function An(s,e,t){if(!dt(s))return;const n=lo.getComputedStyle(s,null);return t?n.getPropertyValue(e)||void 0:n[e]||s.style[e]}function yn(s,e){return parseInt(An(s,e),10)||0}function Ad(s,e){return yn(s,`border${e?"Left":"Top"}Width`)+yn(s,`padding${e?"Left":"Top"}`)+yn(s,`padding${e?"Right":"Bottom"}`)+yn(s,`border${e?"Right":"Bottom"}Width`)}const Vl={};function Ev(s){if(Vl[s])return Vl[s];const e=ks(s);Mn.body.insertBefore(e,null);const t=An(e,"display");return Mn.body.removeChild(e),Vl[s]=t!=="none"?t:"block"}function Pd(s){return An(s,"display")==="none"}function Ld(s,e){const t=s&&(s.matches||s.webkitMatchesSelector||s.msMatchesSelector);return!!t&&!!e&&t.call(s,e)}function po(s){return It(s)?(e,t)=>Ld(t,s):xs(s)?s:Ul(s)?(e,t)=>s.is(t):s?(e,t)=>t===s:()=>!1}ae.filter=function(s){const e=po(s);return g(jl.call(this,(t,n)=>e.call(t,n,t)))};function Gn(s,e){return e?s.filter(e):s}ae.detach=function(s){return Gn(this,s).each((e,t)=>{t.parentNode&&t.parentNode.removeChild(t)}),this};const Mv=/^\s*<(\w+)[^>]*>/,Av=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Rd={"*":Dd,tr:yv,td:Td,th:Td,thead:Fl,tbody:Fl,tfoot:Fl};function zd(s){if(!It(s))return[];if(Av.test(s))return[ks(RegExp.$1)];const e=Mv.test(s)&&RegExp.$1,t=Rd[e]||Rd["*"];return t.innerHTML=s,g(t.childNodes).detach().get()}g.parseHTML=zd,ae.has=function(s){const e=It(s)?(t,n)=>Hl(s,n).length:(t,n)=>n.contains(s);return this.filter(e)},ae.not=function(s){const e=po(s);return this.filter((t,n)=>(!It(s)||dt(n))&&!e.call(n,t,n))};function Pn(s,e,t,n){const i=[],r=xs(e),o=n&&po(n);for(let a=0,l=s.length;ae.selected&&!e.disabled&&!e.parentNode.disabled),"value"):s.value||""}function Pv(s){return arguments.length?this.each((e,t)=>{const n=t.multiple&&t.options;if(n||Yd.test(t.type)){const i=co(s)?Nd.call(s,String):Vi(s)?[]:[String(s)];n?_t(t.options,(r,o)=>{o.selected=i.indexOf(o.value)>=0},!0):t.checked=i.indexOf(t.value)>=0}else t.value=jt(s)||Vi(s)?"":s}):this[0]&&Od(this[0])}ae.val=Pv,ae.is=function(s){const e=po(s);return Bl.call(this,(t,n)=>e.call(t,n,t))},g.guid=1;function vn(s){return s.length>1?jl.call(s,(e,t,n)=>Id.call(n,e)===t):s}g.unique=vn,ae.add=function(s,e){return g(vn(this.get().concat(g(s,e).get())))},ae.children=function(s){return Gn(g(vn(Pn(this,e=>e.children))),s)},ae.parent=function(s){return Gn(g(vn(Pn(this,"parentNode"))),s)},ae.index=function(s){const e=s?g(s)[0]:this[0],t=s?this:g(e).parent().children();return Id.call(t,e)},ae.closest=function(s){const e=this.filter(s);if(e.length)return e;const t=this.parent();return t.length?t.closest(s):e},ae.siblings=function(s){return Gn(g(vn(Pn(this,e=>g(e).parent().children().not(e)))),s)},ae.find=function(s){return g(vn(Pn(this,e=>Hl(s,e))))};const Lv=/^\s*\s*$/g,Rv=/^$|^module$|\/(java|ecma)script/i,zv=["type","src","nonce","noModule"];function Ov(s,e){const t=g(s);t.filter("script").add(t.find("script")).each((n,i)=>{if(Rv.test(i.type)&&xd.contains(i)){const r=ks("script");r.text=i.textContent.replace(Lv,""),_t(zv,(o,a)=>{i[a]&&(r[a]=i[a])}),e.head.insertBefore(r,null),e.head.removeChild(r)}})}function Fv(s,e,t,n,i){n?s.insertBefore(e,t?s.firstChild:null):s.nodeName==="HTML"?s.parentNode.replaceChild(e,s):s.parentNode.insertBefore(e,t?s:s.nextSibling),i&&Ov(e,s.ownerDocument)}function Yn(s,e,t,n,i,r,o,a){return _t(s,(l,c)=>{_t(g(c),(h,u)=>{_t(g(e),(f,m)=>{const b=t?u:m,w=t?m:u,C=t?h:f;Fv(b,C?w.cloneNode(!0):w,n,i,!C)},a)},o)},r),e}ae.after=function(){return Yn(arguments,this,!1,!1,!1,!0,!0)},ae.append=function(){return Yn(arguments,this,!1,!1,!0)};function jv(s){if(!arguments.length)return this[0]&&this[0].innerHTML;if(jt(s))return this;const e=/]/.test(s);return this.each((t,n)=>{dt(n)&&(e?g(n).empty().append(s):n.innerHTML=s)})}ae.html=jv,ae.appendTo=function(s){return Yn(arguments,this,!0,!1,!0)},ae.wrapInner=function(s){return this.each((e,t)=>{const n=g(t),i=n.contents();i.length?i.wrapAll(s):n.append(s)})},ae.before=function(){return Yn(arguments,this,!1,!0)},ae.wrapAll=function(s){let e=g(s),t=e[0];for(;t.children.length;)t=t.firstElementChild;return this.first().before(e),this.appendTo(t)},ae.wrap=function(s){return this.each((e,t)=>{const n=g(s)[0];g(t).wrapAll(e?n.cloneNode(!0):n)})},ae.insertAfter=function(s){return Yn(arguments,this,!0,!1,!1,!1,!1,!0)},ae.insertBefore=function(s){return Yn(arguments,this,!0,!0)},ae.prepend=function(){return Yn(arguments,this,!1,!0,!0,!0,!0)},ae.prependTo=function(s){return Yn(arguments,this,!0,!0,!0,!1,!1,!0)},ae.contents=function(){return g(vn(Pn(this,s=>s.tagName==="IFRAME"?[s.contentDocument]:s.tagName==="TEMPLATE"?s.content.childNodes:s.childNodes)))},ae.next=function(s,e,t){return Gn(g(vn(Pn(this,"nextElementSibling",e,t))),s)},ae.nextAll=function(s){return this.next(s,!0)},ae.nextUntil=function(s,e){return this.next(e,!0,s)},ae.parents=function(s,e){return Gn(g(vn(Pn(this,"parentElement",!0,e))),s)},ae.parentsUntil=function(s,e){return this.parents(e,s)},ae.prev=function(s,e,t){return Gn(g(vn(Pn(this,"previousElementSibling",e,t))),s)},ae.prevAll=function(s){return this.prev(s,!0)},ae.prevUntil=function(s,e){return this.prev(e,!0,s)},ae.map=function(s){return g(vv.apply([],Nd.call(this,(e,t)=>s.call(e,t,e))))},ae.clone=function(){return this.map((s,e)=>e.cloneNode(!0))},ae.offsetParent=function(){return this.map((s,e)=>{let t=e.offsetParent;for(;t&&An(t,"position")==="static";)t=t.offsetParent;return t||xd})},ae.slice=function(s,e){return g(Ed.call(this,s,e))};const Bv=/-([a-z])/g;function Kl(s){return s.replace(Bv,(e,t)=>t.toUpperCase())}ae.ready=function(s){const e=()=>setTimeout(s,0,g);return Mn.readyState!=="loading"?e():Mn.addEventListener("DOMContentLoaded",e),this},ae.unwrap=function(){return this.parent().each((s,e)=>{if(e.tagName==="BODY")return;const t=g(e);t.replaceWith(t.children())}),this},ae.offset=function(){const s=this[0];if(!s)return;const e=s.getBoundingClientRect();return{top:e.top+lo.pageYOffset,left:e.left+lo.pageXOffset}},ae.position=function(){const s=this[0];if(!s)return;const e=An(s,"position")==="fixed",t=e?s.getBoundingClientRect():this.offset();if(!e){const n=s.ownerDocument;let i=s.offsetParent||n.documentElement;for(;(i===n.body||i===n.documentElement)&&An(i,"position")==="static";)i=i.parentNode;if(i!==s&&dt(i)){const r=g(i).offset();t.top-=r.top+yn(i,"borderTopWidth"),t.left-=r.left+yn(i,"borderLeftWidth")}}return{top:t.top-yn(s,"marginTop"),left:t.left-yn(s,"marginLeft")}};const Fd={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};ae.prop=function(s,e){if(s){if(It(s))return s=Fd[s]||s,arguments.length<2?this[0]&&this[0][s]:this.each((t,n)=>{n[s]=e});for(const t in s)this.prop(t,s[t]);return this}},ae.removeProp=function(s){return this.each((e,t)=>{delete t[Fd[s]||s]})};const Hv=/^--/;function ql(s){return Hv.test(s)}const Gl={},{style:Uv}=Dd,Wv=["webkit","moz","ms"];function Vv(s,e=ql(s)){if(e)return s;if(!Gl[s]){const t=Kl(s),n=`${t[0].toUpperCase()}${t.slice(1)}`,i=`${t} ${Wv.join(`${n} `)}${n}`.split(" ");_t(i,(r,o)=>{if(o in Uv)return Gl[s]=o,!1})}return Gl[s]}const Kv={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function jd(s,e,t=ql(s)){return!t&&!Kv[s]&&Md(e)?`${e}px`:e}function qv(s,e){if(It(s)){const t=ql(s);return s=Vv(s,t),arguments.length<2?this[0]&&An(this[0],s,t):s?(e=jd(s,e,t),this.each((n,i)=>{dt(i)&&(t?i.style.setProperty(s,e):i.style[s]=e)})):this}for(const t in s)this.css(t,s[t]);return this}ae.css=qv;function Bd(s,e){try{return s(e)}catch{return e}}const Gv=/^\s+|\s+$/;function Hd(s,e){const t=s.dataset[e]||s.dataset[Kl(e)];return Gv.test(t)?t:Bd(JSON.parse,t)}function Yv(s,e,t){t=Bd(JSON.stringify,t),s.dataset[Kl(e)]=t}function Zv(s,e){if(!s){if(!this[0])return;const t={};for(const n in this[0].dataset)t[n]=Hd(this[0],n);return t}if(It(s))return arguments.length<2?this[0]&&Hd(this[0],s):jt(e)?this:this.each((t,n)=>{Yv(n,s,e)});for(const t in s)this.data(t,s[t]);return this}ae.data=Zv;function Ud(s,e){const t=s.documentElement;return Math.max(s.body[`scroll${e}`],t[`scroll${e}`],s.body[`offset${e}`],t[`offset${e}`],t[`client${e}`])}_t([!0,!1],(s,e)=>{_t(["Width","Height"],(t,n)=>{const i=`${e?"outer":"inner"}${n}`;ae[i]=function(r){if(this[0])return ni(this[0])?e?this[0][`inner${n}`]:this[0].document.documentElement[`client${n}`]:Ss(this[0])?Ud(this[0],n):this[0][`${e?"offset":"client"}${n}`]+(r&&e?yn(this[0],`margin${t?"Top":"Left"}`)+yn(this[0],`margin${t?"Bottom":"Right"}`):0)}})}),_t(["Width","Height"],(s,e)=>{const t=e.toLowerCase();ae[t]=function(n){if(!this[0])return jt(n)?void 0:this;if(!arguments.length)return ni(this[0])?this[0].document.documentElement[`client${e}`]:Ss(this[0])?Ud(this[0],e):this[0].getBoundingClientRect()[t]-Ad(this[0],!s);const i=parseInt(n,10);return this.each((r,o)=>{if(!dt(o))return;const a=An(o,"boxSizing");o.style[t]=jd(t,i+(a==="border-box"?Ad(o,!s):0))})}});const Wd="___cd";ae.toggle=function(s){return this.each((e,t)=>{if(!dt(t))return;const n=Pd(t);(jt(s)?n:s)?(t.style.display=t[Wd]||"",Pd(t)&&(t.style.display=Ev(t.tagName))):n||(t[Wd]=An(t,"display"),t.style.display="none")})},ae.hide=function(){return this.toggle(!1)},ae.show=function(){return this.toggle(!0)};const Vd="___ce",Yl=".",Zl={focus:"focusin",blur:"focusout"},Kd={mouseenter:"mouseover",mouseleave:"mouseout"},Xv=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function Xl(s){return Kd[s]||Zl[s]||s}function Jl(s){const e=s.split(Yl);return[e[0],e.slice(1).sort()]}ae.trigger=function(s,e){if(It(s)){const[n,i]=Jl(s),r=Xl(n);if(!r)return this;const o=Xv.test(r)?"MouseEvents":"HTMLEvents";s=Mn.createEvent(o),s.initEvent(r,!0,!0),s.namespace=i.join(Yl),s.___ot=n}s.___td=e;const t=s.___ot in Zl;return this.each((n,i)=>{t&&xs(i[s.___ot])&&(i[`___i${s.type}`]=!0,i[s.___ot](),i[`___i${s.type}`]=!1),i.dispatchEvent(s)})};function qd(s){return s[Vd]=s[Vd]||{}}function Jv(s,e,t,n,i){const r=qd(s);r[e]=r[e]||[],r[e].push([t,n,i]),s.addEventListener(e,i)}function Gd(s,e){return!e||!Bl.call(e,t=>s.indexOf(t)<0)}function mo(s,e,t,n,i){const r=qd(s);if(e)r[e]&&(r[e]=r[e].filter(([o,a,l])=>{if(i&&l.guid!==i.guid||!Gd(o,t)||n&&n!==a)return!0;s.removeEventListener(e,l)}));else for(e in r)mo(s,e,t,n,i)}ae.off=function(s,e,t){if(jt(s))this.each((n,i)=>{!dt(i)&&!Ss(i)&&!ni(i)||mo(i)});else if(It(s))xs(e)&&(t=e,e=""),_t(fo(s),(n,i)=>{const[r,o]=Jl(i),a=Xl(r);this.each((l,c)=>{!dt(c)&&!Ss(c)&&!ni(c)||mo(c,a,o,e,t)})});else for(const n in s)this.off(n,s[n]);return this},ae.remove=function(s){return Gn(this,s).detach().off(),this},ae.replaceWith=function(s){return this.before(s).remove()},ae.replaceAll=function(s){return g(s).replaceWith(this),this};function Qv(s,e,t,n,i){if(!It(s)){for(const r in s)this.on(r,e,t,s[r],i);return this}return It(e)||(jt(e)||Vi(e)?e="":jt(t)?(t=e,e=""):(n=t,t=e,e="")),xs(n)||(n=t,t=void 0),n?(_t(fo(s),(r,o)=>{const[a,l]=Jl(o),c=Xl(a),h=a in Kd,u=a in Zl;c&&this.each((f,m)=>{if(!dt(m)&&!Ss(m)&&!ni(m))return;const b=function(w){if(w.target[`___i${w.type}`])return w.stopImmediatePropagation();if(w.namespace&&!Gd(l,w.namespace.split(Yl))||!e&&(u&&(w.target!==m||w.___ot===c)||h&&w.relatedTarget&&m.contains(w.relatedTarget)))return;let C=m;if(e){let T=w.target;for(;!Ld(T,e);)if(T===m||(T=T.parentNode,!T))return;C=T}Object.defineProperty(w,"currentTarget",{configurable:!0,get(){return C}}),Object.defineProperty(w,"delegateTarget",{configurable:!0,get(){return m}}),Object.defineProperty(w,"data",{configurable:!0,get(){return t}});const S=n.call(C,w,w.___td);i&&mo(m,c,l,e,b),S===!1&&(w.preventDefault(),w.stopPropagation())};b.guid=n.guid=n.guid||g.guid++,Jv(m,c,l,e,b)})}),this):this}ae.on=Qv;function eb(s,e,t,n){return this.on(s,e,t,n,!0)}ae.one=eb;const tb=/\r?\n/g;function nb(s,e){return`&${encodeURIComponent(s)}=${encodeURIComponent(e.replace(tb,`\r +`))}`}const sb=/file|reset|submit|button|image/i,Yd=/radio|checkbox/i;ae.serialize=function(){let s="";return this.each((e,t)=>{_t(t.elements||[t],(n,i)=>{if(i.disabled||!i.name||i.tagName==="FIELDSET"||sb.test(i.type)||Yd.test(i.type)&&!i.checked)return;const r=Od(i);if(!jt(r)){const o=co(r)?r:[r];_t(o,(a,l)=>{s+=nb(i.name,l)})}})}),s.slice(1)},window.$=g;function Zd(s,e){if(s==null)return[s,void 0];typeof e=="string"&&(e=e.split("."));const t=e.join(".");let n=s;const i=[n];for(;typeof n=="object"&&n!==null&&e.length;){let r=e.shift(),o;const a=r.indexOf("[");if(a>0&&a1?i[r-2]:s,e[e.length-1]),o===void 0?t:o}catch{return t}}function Ln(s,e,t,n){let i;const r=Ki(s,e,void 0,o=>{i=o});return typeof r=="function"?r.apply(n??i,t):r}function ib(s){return typeof s=="string"&&s!==""}function Se(s,...e){if(e.length===0)return s;if(e.length===1&&typeof e[0]=="object"&&e[0]){const t=e[0];return Object.keys(t).forEach(n=>{const i=t[n]??"";s=s.replace(new RegExp(`\\{${n}\\}`,"g"),`${i}`)}),s}for(let t=0;t(s[s.B=1]="B",s[s.KB=1024]="KB",s[s.MB=1048576]="MB",s[s.GB=1073741824]="GB",s[s.TB=1099511627776]="TB",s))(Ql||{});function ht(s,e=2,t){return Number.isNaN(s)?"?KB":(t||(s<1024?t="B":s<1048576?t="KB":s<1073741824?t="MB":s<1099511627776?t="GB":t="TB"),(s/Ql[t]).toFixed(e)+t)}const bn=s=>{const e=/^[0-9]*(B|KB|MB|GB|TB)$/;s=s.toUpperCase(),s.endsWith("B")||(s+="B");const t=s.match(e);if(!t)return 0;const n=t[1];return s=s.replace(n,""),Number.parseInt(s,10)*Ql[n]};let ec=(document.documentElement.getAttribute("lang")||"zh_cn").toLowerCase().replace("-","_"),Rn;function Xd(){return ec}function rb(s){ec=s.toLowerCase().replace("-","_")}function Jd(s,e){Rn||(Rn={}),typeof s=="string"&&(s={[s]:e??{}}),g.extend(!0,Rn,s)}function Pe(s,e,t,n,i,r){Array.isArray(s)?Rn&&s.unshift(Rn):s=Rn?[Rn,s]:[s],typeof t=="string"&&(r=i,i=n,n=t,t=void 0);const o=i||ec;let a;for(const l of s){if(!l)continue;const c=l[o]||l.default;if(!c)continue;const h=r&&l===Rn?`${r}.${e}`:e;if(a=Ki(c,h),a!==void 0)break}return a===void 0?n:t?Se(a,...Array.isArray(t)?t:[t]):a}function ob(s,e,t,n){return Pe(void 0,s,e,t,n)}Pe.addLang=Jd,Pe.getLang=ob,Pe.getCode=Xd,Pe.setCode=rb,Pe.map=Rn,Jd({zh_cn:{confirm:"确定",save:"保存",cancel:"取消",delete:"删除",reset:"重置",add:"添加",copy:"复制",close:"关闭"},zh_tw:{confirm:"確定",save:"儲存",cancel:"取消",delete:"刪除",reset:"重置",add:"添加",Copy:"複製",close:"關閉"},en:{confirm:"Confirm",save:"Save",cancel:"Cancel",delete:"Delete",reset:"Reset",add:"Add",copy:"Copy",close:"Close"}});function Ds(s,e,t){t!=null&&(Array.isArray(t)?t.forEach(n=>Ds(s,e,n)):!(t instanceof Blob)&&g.isPlainObject(t)?Object.entries(t).forEach(([n,i])=>{Ds(s,`${e}[${n}]`,i)}):s.append(e,t instanceof Blob?t:String(t)))}function go(s,e){const t=e||new FormData;return s&&(typeof s=="string"&&(s=new URLSearchParams(s)),s instanceof URLSearchParams?s.forEach((n,i)=>{Ds(t,i,n)}):Array.isArray(s)?s.forEach(([n,i])=>{Ds(t,n,i)}):s instanceof FormData?s.forEach((n,i)=>{Ds(t,i,n)}):typeof s=="object"&&s&&Object.entries(s).forEach(([n,i])=>{Ds(t,n,i)})),t}function St(){return g.guid++}function yo(s,e){if(s===e)return!1;if(s&&e){const t=typeof s,n=typeof e;if(t!==n)return!0;if(t==="object"&&n==="object"){const i=Array.isArray(s),r=Array.isArray(e);if(i!==r)return!0;if(i&&r){if(s.length!==e.length)return!0;for(let l=0;ln instanceof Ts?n.value!==t[i]:yo(n,t[i])))&&(this._value=this._compute(),this._lastDependencies=e.map(n=>n instanceof Ts?n.cache:n)),this._value}}function tc(...s){const e=[],t=new Map,n=(i,r)=>{if(Array.isArray(i)&&(r=i[1],i=i[0]),!i.length)return;const o=t.get(i);typeof o=="number"?e[o][1]=!!r:(t.set(i,e.length),e.push([i,!!r]))};return s.forEach(i=>{typeof i=="function"&&(i=i()),Array.isArray(i)?tc(...i).forEach(n):i&&typeof i=="object"?Object.entries(i).forEach(n):typeof i=="string"&&i.split(" ").forEach(r=>n(r,!0))}),e.sort((i,r)=>(t.get(i[0])||0)-(t.get(r[0])||0))}const q=(...s)=>tc(...s).reduce((e,[t,n])=>(n&&e.push(t),e),[]).join(" ");g.classes=q,g.fn.setClass=function(s,...e){return this.each((t,n)=>{const i=g(n);s===!0?i.attr("class",q(i.attr("class"),...e)):i.addClass(q(s,...e))})};const si=new WeakMap;function vo(s,e,t){const n=si.has(s),i=n?si.get(s):{};typeof e=="string"?i[e]=t:e===null?Object.keys(i).forEach(r=>{delete i[r]}):Object.assign(i,e),Object.keys(i).forEach(r=>{i[r]===void 0&&delete i[r]}),Object.keys(i).length?(!n&&s instanceof Element&&Object.assign(i,g(s).dataset(),i),si.set(s,i)):si.delete(s)}function qi(s,e,t){let n=si.get(s)||{};return t&&s instanceof Element&&(n=Object.assign({},g(s).dataset(),n)),e===void 0?n:n[e]}function ab(s){si.delete(s)}g.fn.dataset=g.fn.data,g.fn.data=function(...s){const[e,t]=s;return!s.length||s.length===1&&typeof e=="string"?this.length?qi(this[0],e,!0):void 0:this.each((n,i)=>vo(i,e,t))},g.fn.removeData=function(s=null){return this.each((e,t)=>vo(t,s))};function Zn(s,...e){return s.includes("RAWJS")&&(s=s.split('"RAWJS<').join("").split('>RAWJS"').join("").split("").join('"').split("").join(` `)),new Function(`return ${s}`)(...e)}function bo(s,...e){return s.includes("RAWJS")?Zn(s,...e):JSON.parse(s)}function lb(s){return JSON.stringify(s,(e,t)=>typeof t=="function"?`RAWJS<${t.toString().split('"').join("").split(` -`).join("")}>RAWJS`:t)}function ii(s,e){const t=g(s)[0];if(!t)return;const{prefix:n,getter:i,evalValue:r,json:o=!0,evalArgs:a=[]}={prefix:"z-",...typeof e=="string"?{prefix:e}:e},l=Array.isArray(r)?new Set(r):void 0;return Array.from(t.attributes).reduce((c,h)=>{let{name:u}=h;const{value:f}=h;let m=f;if(u.startsWith(n)){if(u=u.slice(n.length).replace(/-([a-z])/g,b=>b[1].toUpperCase()),i)m=i(u,f);else try{r&&(!l||l.has(u))||r===void 0&&f.includes("RAWJS")?m=Zn(f,...a):o&&(m=JSON.parse(f))}catch{}c[u]=m}return c},{})}function nc(s,e,t="z-"){const n=g(s);Object.keys(e).forEach(i=>{let r=e[i];typeof r=="function"&&(r=`RAWJS<${r}>RAWJS`),typeof r!="string"&&(r=JSON.stringify(r)),i=i.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`),n.attr(`${t}${i}`,r)})}function cb(...s){var t;const e=s.length;if(!e)return ii(this);if(e===1){const[n]=s;return typeof n=="string"?(t=ii(this))==null?void 0:t[n]:(g.isPlainObject(n)&&nc(this,n),this)}return nc(this,{[s[0]]:s[1]}),this}g.fn.z=cb,g.fn._attr=g.fn.attr,g.fn.extend({attr(...s){const[e,t]=s;return!s.length||s.length===1&&typeof e=="string"?this._attr.apply(this,s):typeof e=="object"?(e&&Object.keys(e).forEach(n=>{const i=e[n];i===null?this.removeAttr(n):this._attr(n,i)}),this):t===null?this.removeAttr(e):this._attr(e,t)}}),g.Event||(g.Event=(s,e)=>{const[t,...n]=s.split("."),i=new Event(t,{bubbles:!0,cancelable:!0});return i.namespace=n.join("."),i.___ot=t,i.___td=e,i});const zn=(s,e)=>new Promise(t=>{const n=window.setTimeout(t,s);e&&e(n)}),Qd={};g.share=Qd;var _o,Ye,ef;N.isValidElement=void 0;var $s,tf,nf,sf,rf,sc,ic,rc,Gi={},of=[],hb=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Yi=Array.isArray;function On(s,e){for(var t in e)s[t]=e[t];return s}function oc(s){s&&s.parentNode&&s.parentNode.removeChild(s)}function v(s,e,t){var n,i,r,o={};for(r in e)r=="key"?n=e[r]:r=="ref"?i=e[r]:o[r]=e[r];if(arguments.length>2&&(o.children=arguments.length>3?_o.call(arguments,2):t),typeof s=="function"&&s.defaultProps!=null)for(r in s.defaultProps)o[r]===void 0&&(o[r]=s.defaultProps[r]);return wo(s,o,n,i,null)}function wo(s,e,t,n,i){var r={type:s,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++ef,__i:-1,__u:0};return i==null&&Ye.vnode!=null&&Ye.vnode(r),r}function me(){return{current:null}}function Xn(s){return s.children}function ye(s,e){this.props=s,this.context=e}function ri(s,e){if(e==null)return s.__?ri(s.__,s.__i+1):null;for(var t;ea&&$s.sort(sf),s=$s.shift(),a=$s.length,s.__d&&(t=void 0,i=(n=(e=s).__v).__e,r=[],o=[],e.__P&&((t=On({},n)).__v=n.__v+1,Ye.vnode&&Ye.vnode(t),ac(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,r,i??ri(n),!!(32&n.__u),o),t.__v=n.__v,t.__.__k[t.__i]=t,ff(r,t,o),t.__e!=i&&af(t)));Co.__r=0}function cf(s,e,t,n,i,r,o,a,l,c,h){var u,f,m,b,w,C,S,T=n&&n.__k||of,I=e.length;for(l=ub(t,e,T,l,I),u=0;u0?wo(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=s,o.__b=s.__b+1,a=null,(c=o.__i=db(o,t,l,u))!=-1&&(u--,(a=t[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(i>h?f--:il?f--:f++,o.__u|=4))):s.__k[r]=null;if(u)for(r=0;r(h?1:0)){for(i=t-1,r=t+1;i>=0||r=0?i--:r++])!=null&&!(2&c.__u)&&a==c.key&&l==c.type)return o}return-1}function uf(s,e,t){e[0]=="-"?s.setProperty(e,t??""):s[e]=t==null?"":typeof t!="number"||hb.test(e)?t:t+"px"}function So(s,e,t,n,i){var r,o;e:if(e=="style")if(typeof t=="string")s.style.cssText=t;else{if(typeof n=="string"&&(s.style.cssText=n=""),n)for(e in n)t&&e in t||uf(s.style,e,"");if(t)for(e in t)n&&t[e]==n[e]||uf(s.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")r=e!=(e=e.replace(rf,"$1")),o=e.toLowerCase(),e=o in s||e=="onFocusOut"||e=="onFocusIn"?o.slice(2):e.slice(2),s.l||(s.l={}),s.l[e+r]=t,t?n?t.u=n.u:(t.u=sc,s.addEventListener(e,r?rc:ic,r)):s.removeEventListener(e,r?rc:ic,r);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in s)try{s[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?s.removeAttribute(e):s.setAttribute(e,e=="popover"&&t==1?"":t))}}function df(s){return function(e){if(this.l){var t=this.l[e.type+s];if(e.t==null)e.t=sc++;else if(e.t0?s:Yi(s)?s.map(pf):On({},s)}function fb(s,e,t,n,i,r,o,a,l){var c,h,u,f,m,b,w,C=t.props,S=e.props,T=e.type;if(T=="svg"?i="http://www.w3.org/2000/svg":T=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),r!=null){for(c=0;c{!t||typeof t!="object"||Object.keys(t).forEach(n=>{let i=t[n];const r=s[n];i!==r&&(r!==void 0&&(n==="className"||n.endsWith("Class")?i=[r,i]:n==="children"?i=[...ko(r),...ko(i)]:typeof r=="object"&&(n==="style"||n.endsWith("Style")||n==="attrs"||n.endsWith("Attrs")||n==="props")&&(i=g.extend(r,i))),s[n]=i)})}),s}function hc(s){return Object.keys(s).forEach(e=>{s[e]===void 0&&delete s[e]}),s}function xo(s,e=!0){const t=g(s),n=t[0],i="zui-disable-scroll";if(e){if(t.data(i))return;if((t.css("scrollbar-gutter")||"").includes("stable")){t.data(i,{overflow:t.css("overflow")}).css("overflow","hidden");return}const r=n===document.body||t.is("html")?window.innerWidth-document.body.clientWidth:n.offsetWidth-n.clientWidth;if(!r)return;const o=t.css("paddingRight")||"0";t.data(i,{paddingRight:o,overflow:t.css("overflow")}).css({paddingRight:`${r+Number.parseInt(o,10)}px`,overflow:"hidden"})}else{const r=t.data(i);if(!r)return;t.css(r).removeData(i)}}g.fn.disableScroll=function(s=!0){return this.each((e,t)=>{xo(t,s)})},g.fn.enableScroll=function(s=!0){return this.disableScroll(!s)};function uc(s,e,t){if(!(t.on||"click").split(" ").includes(e.type))return;const n=t.selector?g(e.target).closest(t.selector):s;if(!n.length)return;const i=c=>c===""?!0:c,r=c=>{if(typeof c=="string")try{c=JSON.parse(c)}catch{}return c};if(i(t.once)){if(t.onceCalled)return;s.dataset("once-called",!0)}if(i(t.prevent)&&e.preventDefault(),i(t.stop)&&e.stopPropagation(),i(t.self)&&e.currentTarget!==e.target)return;const o=[["$element",s],["event",e],["options",t],["$target",n]],a=c=>typeof c=="function"?c(...o):g.runJS(c,...o);if(t.if!==void 0&&!a(t.if))return;const l=t.call;if(l){let c;if(typeof l=="string"?c=/^[$A-Z_][0-9A-Z_$.]*$/i.test(l)?Ki(window,l):a(l):c=l,typeof c=="function"){const h=[],u=t.params;t.params=h,typeof u=="string"&&u.length?u[0]==="["?h.push(...r(u)):h.push(...u.split(", ").map(f=>(f=f.trim(),f==="$element"?s:f==="event"?e:f==="options"?t:f.startsWith("$element.")||f.startsWith("event.")||f.startsWith("options.")?a(f):r(f)))):Array.isArray(u)?h.push(...u):h.push(u),c(...h)}}t.do&&a(t.do)}function mb(s){const e=g(this),t=s.type,n=e.attr("zui-on");if(n){const[o,a]=n.split("~").map(l=>l.trim());o&&o.split(" ").includes(t)&&uc(e,s,g.extend({on:o},a?a.startsWith("{")?Zn(a):{do:a}:ii(e,{prefix:"data-",evalValue:["call","if","do"]})))}const i=e.attr(`zui-on-${t}`);i&&uc(e,s,g.extend({on:t},i.startsWith("{")?Zn(i):{do:i}));const r=e.attr("data-on");r&&r.split(" ").includes(t)&&uc(e,s,ii(e,{prefix:"data-",evalValue:["call","if","do"]}))}function gf(s){g(document).off(".zui.global").on(s.map(e=>`${e}.zui.global`).join(" "),`[zui-on],${s.map(e=>`[zui-on-${e}]`)},[data-on]`,mb)}g(()=>{gf(["click","change","inited"])});function Qn(s,e){if(typeof s=="function")return Qn(s(...e||[]));if(typeof s=="number")return[s];let t=s.match(/(\d+)(%|px)?/);return t?[parseInt(t[1]),t[2]]:(t=s.match(/(\d+)\/(\d+)/),t?[100*parseInt(t[1])/parseInt(t[2]),"%"]:[NaN])}function He(s,e){if(s==null)return null;const[t,n="px"]=Qn(s,e);return Number.isNaN(t)?typeof s=="string"?s:null:`${t}${n}`}async function Is(s,e){var n,i,r;if(s instanceof Blob){const o=document.createElement("a");return o.href=window.URL.createObjectURL(s),e&&(o.download=decodeURIComponent(e)),o.click(),o.remove(),s}if(s instanceof Response){const o=await s.blob();return e=e||((r=(i=(n=s.headers.get("Content-Disposition"))==null?void 0:n.split(";")[1])==null?void 0:i.split("=")[1])==null?void 0:r.replace(/"/g,"")),Is(o,e)}const t=await fetch(s);return Is(t)}class yf{constructor(e){this._$target=g(e)}on(...e){return this._$target.on(...e),this}one(...e){return this._$target.one(...e),this}off(...e){return this._$target.off(...e),this}trigger(...e){return this._$target.trigger(...e),this}}const _n=new yf(document);g.bus=_n,g.on=_n.on.bind(_n),g.one=_n.one.bind(_n),g.off=_n.off.bind(_n),g.trigger=_n.trigger.bind(_n);var gb=["Shift","Meta","Alt","Control"],vf=typeof navigator=="object"?navigator.platform:"",bf=/Mac|iPod|iPhone|iPad/.test(vf),yb=bf?"Meta":"Control",vb=vf==="Win32"?["Control","Alt"]:bf?["Alt"]:[];function dc(s,e){return typeof s.getModifierState=="function"&&(s.getModifierState(e)||vb.includes(e)&&s.getModifierState("AltGraph"))}function bb(s){return s.trim().split(" ").map(function(e){var t=e.split(/\b\+/),n=t.pop();return[t=t.map(function(i){return i==="$mod"?yb:i}),n]})}function _f(s,e){var t;e===void 0&&(e={});var n=(t=e.timeout)!=null?t:1e3,i=Object.keys(s).map(function(a){return[bb(a),s[a]]}),r=new Map,o=null;return function(a){a instanceof KeyboardEvent&&(i.forEach(function(l){var c=l[0],h=l[1],u=r.get(c)||c;(function(f,m){return!(m[1].toUpperCase()!==f.key.toUpperCase()&&m[1]!==f.code||m[0].find(function(b){return!dc(f,b)})||gb.find(function(b){return!m[0].includes(b)&&m[1]!==b&&dc(f,b)}))})(a,u[0])?u.length>1?r.set(c,u.slice(1)):(r.delete(c),h(a)):dc(a,a.key)||r.delete(c)}),o&&clearTimeout(o),o=setTimeout(r.clear.bind(r),n))}}function _b(s,e,t){var n;t===void 0&&(t={});var i=(n=t.event)!=null?n:"keydown",r=_f(e,t);return s.addEventListener(i,r),function(){s.removeEventListener(i,r)}}function fc(s,e={}){if(!s)return;const t=Object.keys(e).reduce((n,i)=>(e[i].optional||(n[i]={...e[i]}),n),{});return Object.keys(s).forEach(n=>{const i=s[n];i?i===!0?e[n]&&(t[n]={...e[n]}):t[n]=i:delete t[n]}),Object.keys(t).reduce((n,i)=>{const{keys:r,handler:o}=t[i];return typeof r=="string"?n[r]=o:r.forEach(a=>{n[a]=o}),n},{})}function pc(s,e,t){const{timeout:n,event:i="keydown",scope:r,when:o}=t||{},a=_f(e,{timeout:n}),l=`.zui.hotkeys${r?`.${r}`:""}`,c="zui-hotkeys-composing";return g(s).on(`${i}${l}`,function(h){o&&o(h)===!1||g(h.target).data(c)||a(h)}).on(`compositionstart${l}`,h=>{g(h.target).data(c,!0)}).on(`compositionend${l}`,h=>{g(h.target).removeData(c)})}function mc(s,e){return g(s).off(`.zui.hotkeys${e?`.${e}`:""}`)}const wb=_b;g.fn.hotkeys=function(s,e){return pc(this,s,e)},g.fn.unbindHotkeys=function(s){return mc(this,s)},g.hotkeys=function(s,e){pc(window,s,e)},g.unbindHotkeys=function(s){mc(window,s)};function Do(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement}async function wf(s){(typeof s=="string"||s instanceof Element||s instanceof g)&&(s={target:s});const{target:e,onError:t,onSuccess:n,afterExit:i,afterEnter:r}=s,o=g(e),a=o[0];if(!a)return;const l=a.requestFullscreen||a.webkitRequestFullscreen||a.mozRequestFullScreen;if(!l){t==null||t.call(a,new Error("[ZUI] The browser does not support full screen feature."));return}try{await l.call(a),n==null||n.call(a),g(a).off(".zui.fullscreen"),i&&o.on("exitFullscreen.zui.fullscreen",i),r&&o.on("enterFullscreen.zui.fullscreen",r)}catch(c){t==null||t.call(a,c)}document.zuiBindFullscreenChange||(document.zuiBindFullscreenChange=!0,g(document).on("fullscreenchange.zui webkitfullscreenchange.zui mozfullscreenchange.zui",c=>{const h=Do();let u=h;h?g(h).addClass("is-in-fullscreen"):(u=g(document).find(".is-in-fullscreen")[0]||document,g(u).removeClass("is-in-fullscreen")),g("body").toggleClass("has-in-fullscreen",!!h);const f={event:c,target:u,fullscreenElement:h};g(u).trigger(h?"enterFullscreen":"exitFullscreen",f).trigger("toggleFullscreen",f)}))}async function To(s){const e=Do();return s===!1&&!!e===s?s:e?(document.exitFullscreen(),!1):(await wf(s),!0)}g.fn.fullscreen=function(s){return To({target:this,...s})},g.getFullscreenElement=Do,g.toggleFullscreen=To;function es(s){return!s||s.parentNode===document?!1:s.parentNode?es(s.parentNode):!0}g.isDetached=es,g.fn.isDetached=function(){const s=this[0];return!s||es(s)};const Ns=class nv{constructor(e,t){var b,w;this._inited=!1,this._autoDestory=0,this._destroyed=!1;const{KEY:n,DATA_KEY:i,MULTI_INSTANCE:r,NAME:o,ATTR_KEY:a,ALL:l,TYPED_ALL:c}=this.constructor;if(!o)throw new Error('[ZUI] The component must have a "NAME" static property.');const h=g(e);if(h.data(n)&&!r)throw new Error(`[ZUI] The component "${o}" has been initialized on element.`);const u=h[0];if(!u)throw new Error(`[ZUI] Invalid selector "${e}" for component "${o}", can not find the element matched.`);const f=St();this._gid=f,this._element=u,this.resetOptions(t),this._key=this.options.key??`__${f}`;let m=l.get(u);if(m?m.add(this):(m=new Set([this]),l.set(u,m)),c.has(o)?(b=c.get(o))==null||b.add(this):c.set(o,new Set([this])),h.data(n,this).attr(a,"").attr(i,`${f}`).attr("z-use",[...new Set([...m||[]].map(C=>C.constructor.NAME))].join(",")),r){const C=`${n}:ALL`;let S=h.data(C);S||(S=new Map,h.data(C,S)),S.set(this._key,this)}this.init(),(w=this.options.$onCreate)==null||w.call(this),requestAnimationFrame(async()=>{var S;const{$fetcher:C}=this.options;if(C){const T=await it(C,[],{dataType:"js"});if(this.destroyed)return;T&&this.setOptions(T)}this._inited=!0,await this.afterInit(),this.emit("inited",this.options),(S=this.options.$onInited)==null||S.call(this)})}static get ZUI(){return this.NAME.replace(/(^[A-Z]+)/,e=>e.toLowerCase())}static get KEY(){return`zui.${this.NAME}`}static get NAMESPACE(){return`.zui.${this.ZUI}`}static get DATA_KEY(){return`data-zui-${this.NAME}`}static get ATTR_KEY(){return`z-use-${this.NAME}`}static get SELECTOR(){return`[${this.DATA_KEY}]`}get inited(){return this._inited}get destroyed(){return this._destroyed}get element(){if(!this._element)throw new Error("[ZUI] Component element is not available.");return this._element}get key(){return this._key}get options(){if(!this._options)throw new Error("[ZUI] Component options are not available.");return this._options}get gid(){return this._gid}get $element(){return g(this.element)}get $emitter(){return this.$element}get i18nData(){return[this.options.i18n,this.constructor.i18n]}init(){}afterInit(){}render(e,t){this.setOptions(e,t)}destroy(){var m;const{KEY:e,DATA_KEY:t,ALL:n,TYPED_ALL:i,NAME:r,MULTI_INSTANCE:o,ATTR_KEY:a}=this.constructor,{$element:l,element:c}=this;if(this.emit("destroyed"),this._destroyed=!0,l.off(this.namespace).removeData(e).removeAttr(a).removeAttr(t),o){const b=this.$element.data(`${e}:ALL`);if(b)if(b.delete(this._key),b.size===0)this.$element.removeData(`${e}:ALL`);else{const w=b.values().next().value;l.data(e,w).attr(t,String(w==null?void 0:w.gid))}}const h=n.get(c);h&&(h.delete(this),h.size===0&&n.delete(c));const u=i.get(r);u&&(u.delete(this),u.size===0&&i.delete(r));const f=n.get(c);f!=null&&f.size?l.attr("z-use",[...new Set([...f].map(b=>b.constructor.NAME))].join(",")):l.removeAttr("z-use"),(m=this.options.$onDestroy)==null||m.call(this)}autoDestroy(e=100){this._autoDestory&&clearTimeout(this._autoDestory),this._autoDestory=window.setTimeout(()=>{this._autoDestory=0,es(this.element)&&this.destroy()},e)}setOptions(e,t){if(t){const n={...this.constructor.DEFAULT,...(e==null?void 0:e.$optionsFromDataset)!==!1?this.$element.dataset():{},...e},{$options:i}=n;if(i){const r=typeof i=="function"?i.call(this,this.element,n):i;r&&g.extend(n,r),delete n.$options}this._options=n}else e&&g.extend(this._options,e);if(!this._options)throw new Error("[ZUI] Component options are not available.");return this._options}resetOptions(e){return this.setOptions(e,!0)}emit(e,...t){const n=g.Event(e);return n.__src=this,this.$emitter.trigger(n,[this,...t]),n}on(e,t,n){const i=this;this.$element[n!=null&&n.once?"one":"on"](this._wrapEvent(e),function(r,o){(!r.__src||r.__src===i)&&t.call(this,r,o)})}one(e,t){this.on(e,t,{once:!0})}off(e){this.$element.off(this._wrapEvent(e))}i18n(e,t,n){const{i18nData:i}=this;return Pe(i,e,t,n,this.options.lang,this.constructor.NAME)??Pe(i,e,t,n,this.options.lang)??`{i18n:${e}}`}get namespace(){return`${this.constructor.NAMESPACE}.${this._key}`}_wrapEvent(e){return e.split(" ").map(t=>t.includes(".")?t:`${t}${this.namespace}`).join(" ")}static get(e,t){const n=g(e);if(this.MULTI_INSTANCE&&t!==void 0){const i=n.data(`${this.KEY}:ALL`);return i?i.get(t):void 0}return n.data(this.KEY)}static isValid(e){return!0}static ensure(e,t){const n=this.get(e,t==null?void 0:t.key);if(n){if(this.isValid(n))return t&&n.setOptions(t),n;n.destroy()}return new this(e,t)}static getAll(e,t){var l;const{SELECTOR:n,ALL:i,TYPED_ALL:r}=this,o=[],a=c=>{c instanceof this&&(!t||t(c)!==!1)&&o.push(c)};return e?g(e).find(n).each((c,h)=>{var u;(u=i.get(h))==null||u.forEach(a)}):this!==nv?(l=r.get(this.NAME))==null||l.forEach(a):i.forEach(c=>{c.forEach(a)}),o.sort((c,h)=>c.gid-h.gid)}static query(e,t,n){return e===void 0?this.getAll(void 0,n).pop():this.get(g(e).closest(this.SELECTOR),t)}static defineFn(e){let t=e||this.ZUI;g.fn[t]&&(t=`zui${this.NAME}`);const n=this;g.fn.extend({[t](i,...r){const o=typeof i=="object"?i:void 0,a=typeof i=="string"?i:void 0;let l;return this.each((c,h)=>{let u=n.get(h);if(u)o&&u.render(o);else{if(a)return;u=new n(h,o)}if(a){let f=u[a],m=u;f===void 0&&(m=u.$,f=m[a]),typeof f=="function"?l=f.call(m,...r):l=f}}),l!==void 0?l:this}})}static register(e,t){var i,r;e=e||this,t=(t??e.NAME).toLowerCase(),this.map.set(t,e);const n=(r=(i=e.toggle)==null?void 0:i.name)==null?void 0:r.toLowerCase();n&&n!==t&&this.toggleMap.set(n,e)}};Ns.DEFAULT={},Ns.MULTI_INSTANCE=!1,Ns.ALL=new Map,Ns.TYPED_ALL=new Map,Ns.map=new Map,Ns.toggleMap=new Map;let We=Ns;function Zi(s){return We.map.get(s.toLowerCase())}function $o(s,e,t={}){let n=typeof s=="function"?s:Zi(s);if(n||(n=gc(s)),!n)return null;const{$update:i,...r}=t;if(!n.MULTI_INSTANCE){const o=n.get(e);if(o)return i&&o.render(r,i==="reset"),o}return new n(e,r)}function Cf(s,e,t={}){requestAnimationFrame(()=>$o(s,e,t))}function kf(s,e){We.register(s,e)}function gc(s){const{zui:e}=window;if(e){s=s==null?void 0:s.toLowerCase();for(const t in e){const n=t.toLowerCase()===s;if(s&&!n)continue;const i=e[t];if(!(typeof i!="function"||!i.NAME||!i.ZUI)&&(We.map.has(t.toLowerCase())||kf(i),n))return i}}}function Cb(s){var e;s?(e=Zi(s))==null||e.defineFn():window._zuiDefined||(gc(),We.map.forEach(t=>{t.defineFn()}),Object.assign(window,{_zuiDefined:!0}))}function kb(s,e={}){const t=g(s);let n=t.attr("zui-create");const{update:i,onCreate:r}=e,o=(a,l)=>{if(l={$update:i,$optionsFromDataset:!1,...l},r){const h=r(a,l);if(h===!1)return;h&&(l=h)}const c=l.$lib;if(c){delete l.$lib,g.getLib(c).then(()=>Cf(a,s,l));return}Cf(a,s,l)};if(typeof n=="string"){n=n.trim();const a=n.length?n.split(",").map(h=>h.trim()):[],l=ii(s,{prefix:"zui-create-",evalValue:!0})||{},c=Object.keys(l);if(!c.length&&a.length===1)o(a[0],t.dataset());else{const h=new Set;[...a,...c].forEach(u=>{if(h.has(u))return;const f=l[u];o(u,f),delete l[u],h.add(u)})}}else{const a=t.dataset(),l=a==null?void 0:a.zui;if(!l)return;console.warn("[ZUI] create component instance with [data-zui] is deprecated, use [zui-create] instead.",{element:s,options:e}),a==null||delete a.zui,o(l,a)}}function Sb(){g(document).on("click.zui.toggle mouseenter.zui.toggle","[data-toggle],[zui-toggle]",function(s){const e=g(this),t=e.dataset("toggle")||e.attr("zui-toggle");if(!t)return;const n=We.toggleMap.get(t)||Zi(t),i=n==null?void 0:n.toggle;if(!i)return;const{trigger:r="click",skip:o="[disabled],.disabled",check:a}=i,l=s.type==="mouseover"?"hover":"click";if(!r.includes(l)||a&&!a.call(n,this,l,s)||o&&e.is(o))return;const{onGet:c,onCreate:h,setOptions:u=!0,getOptions:f,prevent:m=!0,handler:b,onToggle:w,convertHref:C}=i;let S=e.dataset();const T=e.attr(`zui-toggle-${t}`);if(T&&(S=g.extend(S,Zn(T))),C&&e.is("a")){const A=e.attr("href");if(A){const L=C===!0?{selector:"target",url:"url"}:C;"#.".includes(A[0])?L.selector&&S[L.selector]===void 0&&(S[L.selector]=A):L.url&&S[L.url]===void 0&&(S[L.url]=A)}}if(f&&(S=f.call(n,this,S,s)),b){b.call(n,this,S,l,s),m&&s.preventDefault();return}let I=c?c.call(n,this):n.get(this);if(I)u&&I.setOptions(S);else{const A=h?h.call(n,this,s,S):new n(this,S);if(!A)return;I=A}if(w){if(w.call(n,I,this,s)===!1)return}else{const{shown:A,show:L,hide:U,toggle:Y}=I;let X;if(Y?X=Y:L&&U?A?X=U:X=L:L&&(X=L),X)X.call(I);else return}m&&s.preventDefault()})}function xb(s,e){const t=qi(s),n=[];return Object.keys(t).forEach(i=>{if(!i.startsWith("zui."))return;const r=t[i];(e==null?void 0:e(r,i))!==!1&&n.push(t[i])}),n}let Io=0;function Sf(s=100){if(Io&&clearTimeout(Io),s){Io=window.setTimeout(()=>Sf(0),s);return}Io=0,We.ALL.forEach(e=>{e.forEach(t=>t.autoDestroy())})}function Db(){if(!document.body||qi(document.body,"_autoDestoryMob"))return;const s=new MutationObserver(e=>{let t=!1;for(const n of e)if(n.removedNodes.length){t=!0;break}t&&Sf()});s.observe(document.body,{childList:!0,subtree:!0}),vo(document.body,"_autoDestoryMob",s)}function yc(s,e){const t=g(s);t.find("[zui-create],[data-zui]").each(function(){var n;((n=e==null?void 0:e.beforeCreate)==null?void 0:n.call(e,this))!==!1&&kb(this,e)}),t.find("[zui-init]").each(function(){if(this.hasAttribute("z-zui-inited"))return;this.setAttribute("z-zui-inited","");const n=this.getAttribute("zui-init");n&&g.runJS(n,["$element",g(this)])}),t.find(".hide-before-init").removeClass("invisible hidden opacity-0"),t.find(".scroll-into-view").scrollIntoView(),t.find('[data-on="inited"],[zui-on-inited]').each((n,i)=>{const r=g(i);r.zui()||r.trigger("inited")}),e!=null&&e.runJS&&t.runJS()}g.fn.zuiInit=function(s){return yc(this,s),this},g.fn.zui=function(s,e){const t=this[0];if(!t)return;if(typeof s!="string"){const i={};let r;return xb(t,(o,a)=>{i[a]=o,(!r||r.gid1?t[0]:void 0,i=t[t.length>1?1:0],r=g(this).zui(n),o=r==null?void 0:r[i];typeof o=="function"&&o.apply(r,e)}),this},g(()=>{g("body").zuiInit({update:!0}),Sb(),Db()});class No extends We{get $targets(){const{$element:e}=this,{targets:t}=this.options;return t?e.find(t):e}_handleScroll(e,t,n){const{offset:i=1}=this.options,r=this.$targets,o=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:l}=e;r.each((c,h)=>{const u=h.getBoundingClientRect(),f=t==="top"&&a>0&&u.top<=o.top+i||t==="bottom"&&u.bottom>=o.bottom-i||t==="left"&&l>0&&u.left<=o.left+i||t==="right"&&l{this._raf&&cancelAnimationFrame(this._raf),this._raf=requestAnimationFrame(()=>{this._raf=0,this._handleScroll(l,t,i)})};this._scrollListener=c,l.addEventListener("scroll",c)}this._container=l,requestAnimationFrame(()=>{this._handleScroll(l,t,i)})}else this._ob=new IntersectionObserver(l=>{l.forEach(c=>{c.target.classList.toggle(i,c.intersectionRatiothis._ob.observe(c))}destroy(){var e;(e=this._ob)==null||e.disconnect(),this._container&&(this._container.removeEventListener("scroll",this._scrollListener),this._raf&&cancelAnimationFrame(this._raf))}}No.NAME="Sticky";const oi=24*60*60*1e3,Ze=s=>s===void 0?new Date:(s instanceof Date||(typeof s=="string"&&(s=s.trim(),/^\d+$/.test(s)&&(s=Number.parseInt(s,10))),typeof s=="number"&&s<1e10&&(s*=1e3),s=new Date(s)),s),xf=(s,e,t="day")=>{if(typeof e=="string"){const n=Number.parseInt(e,10);t=e.replace(n.toString(),""),e=n}return s=new Date(Ze(s).getTime()),t==="month"?s.setMonth(s.getMonth()+e):t==="year"?s.setFullYear(s.getFullYear()+e):t==="week"?s.setDate(s.getDate()+e*7):t==="hour"?s.setHours(s.getHours()+e):t==="minute"?s.setMinutes(s.getMinutes()+e):t==="second"?s.setSeconds(s.getSeconds()+e):s.setDate(s.getDate()+e),s},ts=(s,e=new Date)=>Ze(s).toDateString()===Ze(e).toDateString(),Xi=(s,e=new Date)=>Ze(s).getFullYear()===Ze(e).getFullYear(),vc=(s,e=new Date)=>(s=Ze(s),e=Ze(e),s.getFullYear()===e.getFullYear()&&s.getMonth()===e.getMonth()),Tb=(s,e=new Date)=>{s=Ze(s),e=Ze(e);const t=1e3*60*60*24,n=Math.floor(s.getTime()/t),i=Math.floor(e.getTime()/t);return Math.floor((n+4)/7)===Math.floor((i+4)/7)},$b=(s,e)=>ts(Ze(e),s),Ib=(s,e)=>ts(Ze(e).getTime()-oi,s),Nb=(s,e)=>ts(Ze(e).getTime()+oi,s),bc=s=>s!=null&&!isNaN(Ze(s).getTime()),st=(s,e="yyyy-MM-dd hh:mm",t="")=>{if(s=Ze(s),!bc(s))return t;if(typeof e=="function")return e(s);const n={"M+":s.getMonth()+1,"d+":s.getDate(),"h+":s.getHours(),"H+":s.getHours()%12,"m+":s.getMinutes(),"s+":s.getSeconds(),"S+":s.getMilliseconds()};return/(y+)/i.test(e)&&(e.includes("[yyyy-]")&&(e=e.replace("[yyyy-]",Xi(s)?"":"yyyy-")),e=e.replace(RegExp.$1,`${s.getFullYear()}`.substring(4-RegExp.$1.length))),Object.keys(n).forEach(i=>{if(new RegExp(`(${i})`).test(e)){const r=`${n[i]}`;e=e.replace(RegExp.$1,RegExp.$1.length===1?r:`00${r}`.substring(r.length))}}),e},Eb=(s,e,t)=>{const n={full:"yyyy-M-d",month:"M-d",day:"d",str:"{0} ~ {1}",...t},i=st(s,Xi(s)?n.month:n.full);if(ts(s,e))return i;const r=st(e,Xi(s,e)?vc(s,e)?n.day:n.month:n.full);return n.str.replace("{0}",i).replace("{1}",r)};function _c(s){let e=0;if(typeof s!="string"&&(s=String(s)),s&&s.length)for(let t=0;t{try{a.includes("%")&&(a=decodeURIComponent(a)),a=JSON.parse(a)}catch{}return[o,a]})),params:n.map(o=>{if(o!=="undefined"){if(o==="null")return null;try{return o.includes("%")&&(o=decodeURIComponent(o)),JSON.parse(o)}catch{return o}}})}}function Df(s){if(Array.isArray(s))return{commands:s.map(Eo).filter(Boolean)};if(typeof s=="object")return s;s=s.replace(/^#!?/,"");const e=s.includes(">"),t=s.split(e?">":"|").map(Eo);return{async:e,commands:t.filter(Boolean)}}function wc(s,e,t){if(typeof s=="string"&&(s=Eo(s)),!s)return;const{execute:n,event:i,scope:r}=e;if(!(r&&s.scope&&s.scope!==r))return n({name:s.name,options:{...e.options,...s.options},event:i,scope:s.scope,prevResult:t},s.params)}async function Tf(s,e){const{async:t,commands:n}=Df(s);if(!n.length)return[];const{signal:i}=e;if(t){const o=[];let a;for(const l of n){if(!(i!=null&&i.aborted))break;a=await wc(l,e,a),i!=null&&i.aborted&&(a=void 0),o.push(a)}return o}return await Promise.all(n.map(o=>{if(!(i!=null&&i.aborted))return wc(o,e)}))}const ai="zui.commands",li="z-commands",Cc="zui-commands-proxy",$f="zui-command",Mo={};function If(s,e){typeof s=="string"&&e?Mo[s]=e:typeof s=="object"&&Object.assign(Mo,s)}function Ao(s,e){typeof e=="string"?e={scope:e}:typeof e=="function"&&(e={onCommand:e});const{scope:t="",events:n="click"}=e??{},i=g(s),r=(i.attr(li)||"").split(",");t&&!r.includes(t)&&r.push(t),i.attr(li,r.join(",")).data(ai,{[t]:{...e,scope:t,events:n,gid:St()},...i.data(ai)})}function Po(s,e=!0){const t=g(s);if(e===!0)t.removeAttr(li),t.removeData(ai);else if(e.length){const n=t.data(ai)||{};e.split(",").forEach(r=>{delete n[r]});const i=Object.keys(n);i.length?t.attr(li,i.join(",")).data(ai,Ao):Po(t,!0)}}function Nf(s,e){let t=s.closest(`[${li}],[${Cc}]`).first();if(t.attr(Cc)!==void 0&&(t=g(t.data("zui.commandProxy")||t.attr(Cc)).closest(`[${li}]`)),!t.length)return;const n=t.data(ai)||{},i=Object.values(n).sort((o,a)=>a.gid-o.gid);let r;return e!=null&&e.length?(r=i.find(o=>o.scope===e),r||(r=i.find(o=>{var a;return!((a=o.scope)!=null&&a.length)&&!o.scoped})),r):(r=i.find(o=>{var a;return!((a=o.scope)!=null&&a.length)&&!o.scoped}),r||(r=i.find(o=>!o.scoped)),r?r.element=t[0]:r=Nf(s.parent(),e),r)}function Mb(s){if(!s.currentTarget)return;const e=g(s.currentTarget);if(e.closest(".disabled,[disabled]").length)return;const t=e.attr($f)||(e.is('a[href^="#!"]')?e.attr("href"):"");if(!t)return;const n=new AbortController,i=()=>n.abort();Tf(t,{signal:n.signal,execute:(r,o)=>{const{scope:a,name:l}=r,c={...r,abort:i};let h;const u=Nf(e,a);if(u){c.element=u.element;const m=(u.commands?u.commands[`${a}~${l}`]||u.commands[l]:null)||u.onCommand;if(m&&(h=m(c,o),s.commandHandled))return h}const f=[c,o];if(e.trigger("command",f).trigger(`command:${a?`${l}.${a}`:l}`,f),a&&e.trigger(`command:.${a}`,f),s.commandHandled)return h;if(a==="event"){l==="stop"?s.stopPropagation():l==="prevent"?s.preventDefault():Ln(s,l,o);return}if(a!=null&&a.startsWith(".")){let m;if(a===".")m=e.closest("[z-use]").zui();else{const b=a.substring(1);m=e.closest(`[z-use-${b}]`).zui(b)}if(m)return Ln(m,l,o);console.warn(`[ZUI] Command "${l}" not found in scope "${a}".`);return}return a==="window"?Ln(window,l,o):a==="zui"?Ln(window.zui,l,o):a==="target"?Ln(e[0],l,o):a==="$target"?Ln(e,l,o):a==="$"?Ln(g,l,o):a===""&&Mo[l]!==void 0?Mo[l](c,o):h},event:s})}g.fn.command=function(s,e){return this.on(`command:${s}`,e)},g.fn.offCommand=function(s,e){return this.off(`command:${s}`,e)},g.fn.commands=function(s){return this.each((e,t)=>Ao(t,s)),this},g.fn.unbindCommands=function(s){return this.each((e,t)=>Po(t,s)),this},g(()=>{g(document).on("click.zui.command",`[${$f}],a[href^="#!"]`,Mb)});function Ji(s,e,t=!1){var i;const n=g(s);if(e!==void 0){if(typeof e=="string"&&e.length){const r=`zui-runjs-${St()}`;n.append(`