diff --git a/www/js/zui3/zui.zentao.js b/www/js/zui3/zui.zentao.js index 20cfc874b8..fc7d50697e 100644 --- a/www/js/zui3/zui.zentao.js +++ b/www/js/zui3/zui.zentao.js @@ -1,8 +1,8 @@ -var Ch=(D,Xt,we)=>{if(!Xt.has(D))throw TypeError("Cannot "+we)};var ve=(D,Xt,we)=>(Ch(D,Xt,"read from private field"),we?we.call(D):Xt.get(D)),Ee=(D,Xt,we)=>{if(Xt.has(D))throw TypeError("Cannot add the same private member more than once");Xt instanceof WeakSet?Xt.add(D):Xt.set(D,we)},Le=(D,Xt,we,ca)=>(Ch(D,Xt,"write to private field"),ca?ca.call(D,we):Xt.set(D,we),we);var kh=(D,Xt,we)=>(Ch(D,Xt,"access private method"),we);(function(D,Xt){typeof exports=="object"&&typeof module<"u"?Xt(exports):typeof define=="function"&&define.amd?define(["exports"],Xt):(D=typeof globalThis<"u"?globalThis:D||self,Xt(D.zui={}))})(this,function(D){var Po,Io,Fi,ji,Bi,Wi,Hi,Ki,Do,xp,Ro,Sp,Ln,On;"use strict";const Xt="",we="",ca="",w_="",C_="",k_="",x_="",S_="",$_="",T_="",N_="",E_="",Tp="3.0.0-alpha.4",en=document,or=window,xh=en.documentElement,qn=en.createElement.bind(en),Sh=qn("div"),ha=qn("table"),Np=qn("tbody"),$h=qn("tr"),{isArray:ar,prototype:Th}=Array,{concat:Ep,filter:ua,indexOf:Nh,map:Eh,push:Mp,slice:Mh,some:da,splice:Ap}=Th,Pp=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,Ip=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,Dp=/<.+>/,Rp=/^\w+$/;function fa(s,t){const e=Lp(t);return!s||!e&&!Gn(t)&&!Jt(t)?[]:!e&&Ip.test(s)?t.getElementsByClassName(s.slice(1).replace(/\\/g,"")):!e&&Rp.test(s)?t.getElementsByTagName(s):t.querySelectorAll(s)}class lr{constructor(t,e){if(!t)return;if(pa(t))return t;let n=t;if(he(t)){const i=e||en;if(n=Pp.test(t)&&Gn(i)?i.getElementById(t.slice(1).replace(/\\/g,"")):Dp.test(t)?Lh(t):pa(i)?i.find(t):he(i)?m(i).find(t):fa(t,i),!n)return}else if(Yn(t))return this.ready(t);(n.nodeType||n===or)&&(n=[n]),this.length=n.length;for(let i=0,r=this.length;i{for(;t.firstChild;)t.removeChild(t.firstChild)})};function cr(...s){const t=zp(s[0])?s.shift():!1,e=s.shift(),n=s.length;if(!e)return{};if(!n)return cr(t,m,e);for(let i=0;i{Jt(r)&&se(e,(o,a)=>{n?t?r.classList.add(a):r.classList.remove(a):r.classList.toggle(a)})})},it.addClass=function(s){return this.toggleClass(s,!0)},it.removeAttr=function(s){const t=hr(s);return this.each((e,n)=>{Jt(n)&&se(t,(i,r)=>{n.removeAttribute(r)})})};function jp(s,t){if(s){if(he(s)){if(arguments.length<2){if(!this[0]||!Jt(this[0]))return;const e=this[0].getAttribute(s);return ti(e)?void 0:e}return Ce(t)?this:ti(t)?this.removeAttr(s):this.each((e,n)=>{Jt(n)&&n.setAttribute(s,t)})}for(const e in s)this.attr(e,s[e]);return this}}it.attr=jp,it.removeClass=function(s){return arguments.length?this.toggleClass(s,!1):this.attr("class","")},it.hasClass=function(s){return!!s&&da.call(this,t=>Jt(t)&&t.classList.contains(s))},it.get=function(s){return Ce(s)?Mh.call(this):(s=Number(s),this[s<0?s+this.length:s])},it.eq=function(s){return m(this.get(s))},it.first=function(){return this.eq(0)},it.last=function(){return this.eq(-1)};function Bp(s){return Ce(s)?this.get().map(t=>Jt(t)||Op(t)?t.textContent:"").join(""):this.each((t,e)=>{Jt(e)&&(e.textContent=s)})}it.text=Bp;function nn(s,t,e){if(!Jt(s))return;const n=or.getComputedStyle(s,null);return e?n.getPropertyValue(t)||void 0:n[t]||s.style[t]}function We(s,t){return parseInt(nn(s,t),10)||0}function Ph(s,t){return We(s,`border${t?"Left":"Top"}Width`)+We(s,`padding${t?"Left":"Top"}`)+We(s,`padding${t?"Right":"Bottom"}`)+We(s,`border${t?"Right":"Bottom"}Width`)}const ga={};function Wp(s){if(ga[s])return ga[s];const t=qn(s);en.body.insertBefore(t,null);const e=nn(t,"display");return en.body.removeChild(t),ga[s]=e!=="none"?e:"block"}function Ih(s){return nn(s,"display")==="none"}function Dh(s,t){const e=s&&(s.matches||s.webkitMatchesSelector||s.msMatchesSelector);return!!e&&!!t&&e.call(s,t)}function ur(s){return he(s)?(t,e)=>Dh(e,s):Yn(s)?s:pa(s)?(t,e)=>s.is(e):s?(t,e)=>e===s:()=>!1}it.filter=function(s){const t=ur(s);return m(ua.call(this,(e,n)=>t.call(e,n,e)))};function bn(s,t){return t?s.filter(t):s}it.detach=function(s){return bn(this,s).each((t,e)=>{e.parentNode&&e.parentNode.removeChild(e)}),this};const Hp=/^\s*<(\w+)[^>]*>/,Kp=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Rh={"*":Sh,tr:Np,td:$h,th:$h,thead:ha,tbody:ha,tfoot:ha};function Lh(s){if(!he(s))return[];if(Kp.test(s))return[qn(RegExp.$1)];const t=Hp.test(s)&&RegExp.$1,e=Rh[t]||Rh["*"];return e.innerHTML=s,m(e.childNodes).detach().get()}m.parseHTML=Lh,it.has=function(s){const t=he(s)?(e,n)=>fa(s,n).length:(e,n)=>n.contains(s);return this.filter(t)},it.not=function(s){const t=ur(s);return this.filter((e,n)=>(!he(s)||Jt(n))&&!t.call(n,e,n))};function sn(s,t,e,n){const i=[],r=Yn(t),o=n&&ur(n);for(let a=0,l=s.length;at.selected&&!t.disabled&&!t.parentNode.disabled),"value"):s.value||""}function Vp(s){return arguments.length?this.each((t,e)=>{const n=e.multiple&&e.options;if(n||Gh.test(e.type)){const i=ar(s)?Eh.call(s,String):ti(s)?[]:[String(s)];n?se(e.options,(r,o)=>{o.selected=i.indexOf(o.value)>=0},!0):e.checked=i.indexOf(e.value)>=0}else e.value=Ce(s)||ti(s)?"":s}):this[0]&&Oh(this[0])}it.val=Vp,it.is=function(s){const t=ur(s);return da.call(this,(e,n)=>t.call(e,n,e))},m.guid=1;function He(s){return s.length>1?ua.call(s,(t,e,n)=>Nh.call(n,t)===e):s}m.unique=He,it.add=function(s,t){return m(He(this.get().concat(m(s,t).get())))},it.children=function(s){return bn(m(He(sn(this,t=>t.children))),s)},it.parent=function(s){return bn(m(He(sn(this,"parentNode"))),s)},it.index=function(s){const t=s?m(s)[0]:this[0],e=s?this:m(t).parent().children();return Nh.call(e,t)},it.closest=function(s){const t=this.filter(s);if(t.length)return t;const e=this.parent();return e.length?e.closest(s):t},it.siblings=function(s){return bn(m(He(sn(this,t=>m(t).parent().children().not(t)))),s)},it.find=function(s){return m(He(sn(this,t=>fa(s,t))))};const Up=/^\s*\s*$/g,qp=/^$|^module$|\/(java|ecma)script/i,Gp=["type","src","nonce","noModule"];function Yp(s,t){const e=m(s);e.filter("script").add(e.find("script")).each((n,i)=>{if(qp.test(i.type)&&xh.contains(i)){const r=qn("script");r.text=i.textContent.replace(Up,""),se(Gp,(o,a)=>{i[a]&&(r[a]=i[a])}),t.head.insertBefore(r,null),t.head.removeChild(r)}})}function Qp(s,t,e,n,i){n?s.insertBefore(t,e?s.firstChild:null):s.nodeName==="HTML"?s.parentNode.replaceChild(t,s):s.parentNode.insertBefore(t,e?s:s.nextSibling),i&&Yp(t,s.ownerDocument)}function _n(s,t,e,n,i,r,o,a){return se(s,(l,h)=>{se(m(h),(f,d)=>{se(m(t),(g,b)=>{const v=e?d:b,x=e?b:d,k=e?f:g;Qp(v,k?x.cloneNode(!0):x,n,i,!k)},a)},o)},r),t}it.after=function(){return _n(arguments,this,!1,!1,!1,!0,!0)},it.append=function(){return _n(arguments,this,!1,!1,!0)};function Xp(s){if(!arguments.length)return this[0]&&this[0].innerHTML;if(Ce(s))return this;const t=/]/.test(s);return this.each((e,n)=>{Jt(n)&&(t?m(n).empty().append(s):n.innerHTML=s)})}it.html=Xp,it.appendTo=function(s){return _n(arguments,this,!0,!1,!0)},it.wrapInner=function(s){return this.each((t,e)=>{const n=m(e),i=n.contents();i.length?i.wrapAll(s):n.append(s)})},it.before=function(){return _n(arguments,this,!1,!0)},it.wrapAll=function(s){let t=m(s),e=t[0];for(;e.children.length;)e=e.firstElementChild;return this.first().before(t),this.appendTo(e)},it.wrap=function(s){return this.each((t,e)=>{const n=m(s)[0];m(e).wrapAll(t?n.cloneNode(!0):n)})},it.insertAfter=function(s){return _n(arguments,this,!0,!1,!1,!1,!1,!0)},it.insertBefore=function(s){return _n(arguments,this,!0,!0)},it.prepend=function(){return _n(arguments,this,!1,!0,!0,!0,!0)},it.prependTo=function(s){return _n(arguments,this,!0,!0,!0,!1,!1,!0)},it.contents=function(){return m(He(sn(this,s=>s.tagName==="IFRAME"?[s.contentDocument]:s.tagName==="TEMPLATE"?s.content.childNodes:s.childNodes)))},it.next=function(s,t,e){return bn(m(He(sn(this,"nextElementSibling",t,e))),s)},it.nextAll=function(s){return this.next(s,!0)},it.nextUntil=function(s,t){return this.next(t,!0,s)},it.parents=function(s,t){return bn(m(He(sn(this,"parentElement",!0,t))),s)},it.parentsUntil=function(s,t){return this.parents(t,s)},it.prev=function(s,t,e){return bn(m(He(sn(this,"previousElementSibling",t,e))),s)},it.prevAll=function(s){return this.prev(s,!0)},it.prevUntil=function(s,t){return this.prev(t,!0,s)},it.map=function(s){return m(Ep.apply([],Eh.call(this,(t,e)=>s.call(t,e,t))))},it.clone=function(){return this.map((s,t)=>t.cloneNode(!0))},it.offsetParent=function(){return this.map((s,t)=>{let e=t.offsetParent;for(;e&&nn(e,"position")==="static";)e=e.offsetParent;return e||xh})},it.slice=function(s,t){return m(Mh.call(this,s,t))};const Zp=/-([a-z])/g;function ya(s){return s.replace(Zp,(t,e)=>e.toUpperCase())}it.ready=function(s){const t=()=>setTimeout(s,0,m);return en.readyState!=="loading"?t():en.addEventListener("DOMContentLoaded",t),this},it.unwrap=function(){return this.parent().each((s,t)=>{if(t.tagName==="BODY")return;const e=m(t);e.replaceWith(e.children())}),this},it.offset=function(){const s=this[0];if(!s)return;const t=s.getBoundingClientRect();return{top:t.top+or.pageYOffset,left:t.left+or.pageXOffset}},it.position=function(){const s=this[0];if(!s)return;const t=nn(s,"position")==="fixed",e=t?s.getBoundingClientRect():this.offset();if(!t){const n=s.ownerDocument;let i=s.offsetParent||n.documentElement;for(;(i===n.body||i===n.documentElement)&&nn(i,"position")==="static";)i=i.parentNode;if(i!==s&&Jt(i)){const r=m(i).offset();e.top-=r.top+We(i,"borderTopWidth"),e.left-=r.left+We(i,"borderLeftWidth")}}return{top:e.top-We(s,"marginTop"),left:e.left-We(s,"marginLeft")}};const zh={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};it.prop=function(s,t){if(s){if(he(s))return s=zh[s]||s,arguments.length<2?this[0]&&this[0][s]:this.each((e,n)=>{n[s]=t});for(const e in s)this.prop(e,s[e]);return this}},it.removeProp=function(s){return this.each((t,e)=>{delete e[zh[s]||s]})};const Jp=/^--/;function ba(s){return Jp.test(s)}const _a={},{style:tm}=Sh,em=["webkit","moz","ms"];function nm(s,t=ba(s)){if(t)return s;if(!_a[s]){const e=ya(s),n=`${e[0].toUpperCase()}${e.slice(1)}`,i=`${e} ${em.join(`${n} `)}${n}`.split(" ");se(i,(r,o)=>{if(o in tm)return _a[s]=o,!1})}return _a[s]}const sm={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 Fh(s,t,e=ba(s)){return!e&&!sm[s]&&Ah(t)?`${t}px`:t}function im(s,t){if(he(s)){const e=ba(s);return s=nm(s,e),arguments.length<2?this[0]&&nn(this[0],s,e):s?(t=Fh(s,t,e),this.each((n,i)=>{Jt(i)&&(e?i.style.setProperty(s,t):i.style[s]=t)})):this}for(const e in s)this.css(e,s[e]);return this}it.css=im;function jh(s,t){try{return s(t)}catch{return t}}const rm=/^\s+|\s+$/;function Bh(s,t){const e=s.dataset[t]||s.dataset[ya(t)];return rm.test(e)?e:jh(JSON.parse,e)}function om(s,t,e){e=jh(JSON.stringify,e),s.dataset[ya(t)]=e}function am(s,t){if(!s){if(!this[0])return;const e={};for(const n in this[0].dataset)e[n]=Bh(this[0],n);return e}if(he(s))return arguments.length<2?this[0]&&Bh(this[0],s):Ce(t)?this:this.each((e,n)=>{om(n,s,t)});for(const e in s)this.data(e,s[e]);return this}it.data=am;function Wh(s,t){const e=s.documentElement;return Math.max(s.body[`scroll${t}`],e[`scroll${t}`],s.body[`offset${t}`],e[`offset${t}`],e[`client${t}`])}se([!0,!1],(s,t)=>{se(["Width","Height"],(e,n)=>{const i=`${t?"outer":"inner"}${n}`;it[i]=function(r){if(this[0])return vs(this[0])?t?this[0][`inner${n}`]:this[0].document.documentElement[`client${n}`]:Gn(this[0])?Wh(this[0],n):this[0][`${t?"offset":"client"}${n}`]+(r&&t?We(this[0],`margin${e?"Top":"Left"}`)+We(this[0],`margin${e?"Bottom":"Right"}`):0)}})}),se(["Width","Height"],(s,t)=>{const e=t.toLowerCase();it[e]=function(n){if(!this[0])return Ce(n)?void 0:this;if(!arguments.length)return vs(this[0])?this[0].document.documentElement[`client${t}`]:Gn(this[0])?Wh(this[0],t):this[0].getBoundingClientRect()[e]-Ph(this[0],!s);const i=parseInt(n,10);return this.each((r,o)=>{if(!Jt(o))return;const a=nn(o,"boxSizing");o.style[e]=Fh(e,i+(a==="border-box"?Ph(o,!s):0))})}});const Hh="___cd";it.toggle=function(s){return this.each((t,e)=>{if(!Jt(e))return;const n=Ih(e);(Ce(s)?n:s)?(e.style.display=e[Hh]||"",Ih(e)&&(e.style.display=Wp(e.tagName))):n||(e[Hh]=nn(e,"display"),e.style.display="none")})},it.hide=function(){return this.toggle(!1)},it.show=function(){return this.toggle(!0)};const Kh="___ce",va=".",wa={focus:"focusin",blur:"focusout"},Vh={mouseenter:"mouseover",mouseleave:"mouseout"},lm=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function Ca(s){return Vh[s]||wa[s]||s}function ka(s){const t=s.split(va);return[t[0],t.slice(1).sort()]}it.trigger=function(s,t){if(he(s)){const[n,i]=ka(s),r=Ca(n);if(!r)return this;const o=lm.test(r)?"MouseEvents":"HTMLEvents";s=en.createEvent(o),s.initEvent(r,!0,!0),s.namespace=i.join(va),s.___ot=n}s.___td=t;const e=s.___ot in wa;return this.each((n,i)=>{e&&Yn(i[s.___ot])&&(i[`___i${s.type}`]=!0,i[s.___ot](),i[`___i${s.type}`]=!1),i.dispatchEvent(s)})};function Uh(s){return s[Kh]=s[Kh]||{}}function cm(s,t,e,n,i){const r=Uh(s);r[t]=r[t]||[],r[t].push([e,n,i]),s.addEventListener(t,i)}function qh(s,t){return!t||!da.call(t,e=>s.indexOf(e)<0)}function dr(s,t,e,n,i){const r=Uh(s);if(t)r[t]&&(r[t]=r[t].filter(([o,a,l])=>{if(i&&l.guid!==i.guid||!qh(o,e)||n&&n!==a)return!0;s.removeEventListener(t,l)}));else for(t in r)dr(s,t,e,n,i)}it.off=function(s,t,e){if(Ce(s))this.each((n,i)=>{!Jt(i)&&!Gn(i)&&!vs(i)||dr(i)});else if(he(s))Yn(t)&&(e=t,t=""),se(hr(s),(n,i)=>{const[r,o]=ka(i),a=Ca(r);this.each((l,h)=>{!Jt(h)&&!Gn(h)&&!vs(h)||dr(h,a,o,t,e)})});else for(const n in s)this.off(n,s[n]);return this},it.remove=function(s){return bn(this,s).detach().off(),this},it.replaceWith=function(s){return this.before(s).remove()},it.replaceAll=function(s){return m(s).replaceWith(this),this};function hm(s,t,e,n,i){if(!he(s)){for(const r in s)this.on(r,t,e,s[r],i);return this}return he(t)||(Ce(t)||ti(t)?t="":Ce(e)?(e=t,t=""):(n=e,e=t,t="")),Yn(n)||(n=e,e=void 0),n?(se(hr(s),(r,o)=>{const[a,l]=ka(o),h=Ca(a),f=a in Vh,d=a in wa;h&&this.each((g,b)=>{if(!Jt(b)&&!Gn(b)&&!vs(b))return;const v=function(x){if(x.target[`___i${x.type}`])return x.stopImmediatePropagation();if(x.namespace&&!qh(l,x.namespace.split(va))||!t&&(d&&(x.target!==b||x.___ot===h)||f&&x.relatedTarget&&b.contains(x.relatedTarget)))return;let k=b;if(t){let M=x.target;for(;!Dh(M,t);)if(M===b||(M=M.parentNode,!M))return;k=M}Object.defineProperty(x,"currentTarget",{configurable:!0,get(){return k}}),Object.defineProperty(x,"delegateTarget",{configurable:!0,get(){return b}}),Object.defineProperty(x,"data",{configurable:!0,get(){return e}});const S=n.call(k,x,x.___td);i&&dr(b,h,l,t,v),S===!1&&(x.preventDefault(),x.stopPropagation())};v.guid=n.guid=n.guid||m.guid++,cm(b,h,l,t,v)})}),this):this}it.on=hm;function um(s,t,e,n){return this.on(s,t,e,n,!0)}it.one=um;const dm=/\r?\n/g;function fm(s,t){return`&${encodeURIComponent(s)}=${encodeURIComponent(t.replace(dm,`\r +var Ch=(D,Xt,we)=>{if(!Xt.has(D))throw TypeError("Cannot "+we)};var ve=(D,Xt,we)=>(Ch(D,Xt,"read from private field"),we?we.call(D):Xt.get(D)),Ee=(D,Xt,we)=>{if(Xt.has(D))throw TypeError("Cannot add the same private member more than once");Xt instanceof WeakSet?Xt.add(D):Xt.set(D,we)},Le=(D,Xt,we,ca)=>(Ch(D,Xt,"write to private field"),ca?ca.call(D,we):Xt.set(D,we),we);var kh=(D,Xt,we)=>(Ch(D,Xt,"access private method"),we);(function(D,Xt){typeof exports=="object"&&typeof module<"u"?Xt(exports):typeof define=="function"&&define.amd?define(["exports"],Xt):(D=typeof globalThis<"u"?globalThis:D||self,Xt(D.zui={}))})(this,function(D){var Io,Po,Fi,ji,Bi,Wi,Hi,Ki,Do,xp,Ro,Sp,Ln,On;"use strict";const Xt="",we="",ca="",v_="",w_="",C_="",k_="",x_="",S_="",$_="",T_="",N_="",Tp="3.0.0-alpha.4",en=document,or=window,xh=en.documentElement,qn=en.createElement.bind(en),Sh=qn("div"),ha=qn("table"),Np=qn("tbody"),$h=qn("tr"),{isArray:ar,prototype:Th}=Array,{concat:Ep,filter:ua,indexOf:Nh,map:Eh,push:Mp,slice:Mh,some:da,splice:Ap}=Th,Ip=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,Pp=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,Dp=/<.+>/,Rp=/^\w+$/;function fa(s,t){const e=Lp(t);return!s||!e&&!Gn(t)&&!Jt(t)?[]:!e&&Pp.test(s)?t.getElementsByClassName(s.slice(1).replace(/\\/g,"")):!e&&Rp.test(s)?t.getElementsByTagName(s):t.querySelectorAll(s)}class lr{constructor(t,e){if(!t)return;if(pa(t))return t;let n=t;if(he(t)){const i=e||en;if(n=Ip.test(t)&&Gn(i)?i.getElementById(t.slice(1).replace(/\\/g,"")):Dp.test(t)?Lh(t):pa(i)?i.find(t):he(i)?m(i).find(t):fa(t,i),!n)return}else if(Yn(t))return this.ready(t);(n.nodeType||n===or)&&(n=[n]),this.length=n.length;for(let i=0,r=this.length;i{for(;t.firstChild;)t.removeChild(t.firstChild)})};function cr(...s){const t=zp(s[0])?s.shift():!1,e=s.shift(),n=s.length;if(!e)return{};if(!n)return cr(t,m,e);for(let i=0;i{Jt(r)&&se(e,(o,a)=>{n?t?r.classList.add(a):r.classList.remove(a):r.classList.toggle(a)})})},it.addClass=function(s){return this.toggleClass(s,!0)},it.removeAttr=function(s){const t=hr(s);return this.each((e,n)=>{Jt(n)&&se(t,(i,r)=>{n.removeAttribute(r)})})};function jp(s,t){if(s){if(he(s)){if(arguments.length<2){if(!this[0]||!Jt(this[0]))return;const e=this[0].getAttribute(s);return ti(e)?void 0:e}return Ce(t)?this:ti(t)?this.removeAttr(s):this.each((e,n)=>{Jt(n)&&n.setAttribute(s,t)})}for(const e in s)this.attr(e,s[e]);return this}}it.attr=jp,it.removeClass=function(s){return arguments.length?this.toggleClass(s,!1):this.attr("class","")},it.hasClass=function(s){return!!s&&da.call(this,t=>Jt(t)&&t.classList.contains(s))},it.get=function(s){return Ce(s)?Mh.call(this):(s=Number(s),this[s<0?s+this.length:s])},it.eq=function(s){return m(this.get(s))},it.first=function(){return this.eq(0)},it.last=function(){return this.eq(-1)};function Bp(s){return Ce(s)?this.get().map(t=>Jt(t)||Op(t)?t.textContent:"").join(""):this.each((t,e)=>{Jt(e)&&(e.textContent=s)})}it.text=Bp;function nn(s,t,e){if(!Jt(s))return;const n=or.getComputedStyle(s,null);return e?n.getPropertyValue(t)||void 0:n[t]||s.style[t]}function We(s,t){return parseInt(nn(s,t),10)||0}function Ih(s,t){return We(s,`border${t?"Left":"Top"}Width`)+We(s,`padding${t?"Left":"Top"}`)+We(s,`padding${t?"Right":"Bottom"}`)+We(s,`border${t?"Right":"Bottom"}Width`)}const ga={};function Wp(s){if(ga[s])return ga[s];const t=qn(s);en.body.insertBefore(t,null);const e=nn(t,"display");return en.body.removeChild(t),ga[s]=e!=="none"?e:"block"}function Ph(s){return nn(s,"display")==="none"}function Dh(s,t){const e=s&&(s.matches||s.webkitMatchesSelector||s.msMatchesSelector);return!!e&&!!t&&e.call(s,t)}function ur(s){return he(s)?(t,e)=>Dh(e,s):Yn(s)?s:pa(s)?(t,e)=>s.is(e):s?(t,e)=>e===s:()=>!1}it.filter=function(s){const t=ur(s);return m(ua.call(this,(e,n)=>t.call(e,n,e)))};function bn(s,t){return t?s.filter(t):s}it.detach=function(s){return bn(this,s).each((t,e)=>{e.parentNode&&e.parentNode.removeChild(e)}),this};const Hp=/^\s*<(\w+)[^>]*>/,Kp=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Rh={"*":Sh,tr:Np,td:$h,th:$h,thead:ha,tbody:ha,tfoot:ha};function Lh(s){if(!he(s))return[];if(Kp.test(s))return[qn(RegExp.$1)];const t=Hp.test(s)&&RegExp.$1,e=Rh[t]||Rh["*"];return e.innerHTML=s,m(e.childNodes).detach().get()}m.parseHTML=Lh,it.has=function(s){const t=he(s)?(e,n)=>fa(s,n).length:(e,n)=>n.contains(s);return this.filter(t)},it.not=function(s){const t=ur(s);return this.filter((e,n)=>(!he(s)||Jt(n))&&!t.call(n,e,n))};function sn(s,t,e,n){const i=[],r=Yn(t),o=n&&ur(n);for(let a=0,l=s.length;at.selected&&!t.disabled&&!t.parentNode.disabled),"value"):s.value||""}function Vp(s){return arguments.length?this.each((t,e)=>{const n=e.multiple&&e.options;if(n||Gh.test(e.type)){const i=ar(s)?Eh.call(s,String):ti(s)?[]:[String(s)];n?se(e.options,(r,o)=>{o.selected=i.indexOf(o.value)>=0},!0):e.checked=i.indexOf(e.value)>=0}else e.value=Ce(s)||ti(s)?"":s}):this[0]&&Oh(this[0])}it.val=Vp,it.is=function(s){const t=ur(s);return da.call(this,(e,n)=>t.call(e,n,e))},m.guid=1;function He(s){return s.length>1?ua.call(s,(t,e,n)=>Nh.call(n,t)===e):s}m.unique=He,it.add=function(s,t){return m(He(this.get().concat(m(s,t).get())))},it.children=function(s){return bn(m(He(sn(this,t=>t.children))),s)},it.parent=function(s){return bn(m(He(sn(this,"parentNode"))),s)},it.index=function(s){const t=s?m(s)[0]:this[0],e=s?this:m(t).parent().children();return Nh.call(e,t)},it.closest=function(s){const t=this.filter(s);if(t.length)return t;const e=this.parent();return e.length?e.closest(s):t},it.siblings=function(s){return bn(m(He(sn(this,t=>m(t).parent().children().not(t)))),s)},it.find=function(s){return m(He(sn(this,t=>fa(s,t))))};const Up=/^\s*\s*$/g,qp=/^$|^module$|\/(java|ecma)script/i,Gp=["type","src","nonce","noModule"];function Yp(s,t){const e=m(s);e.filter("script").add(e.find("script")).each((n,i)=>{if(qp.test(i.type)&&xh.contains(i)){const r=qn("script");r.text=i.textContent.replace(Up,""),se(Gp,(o,a)=>{i[a]&&(r[a]=i[a])}),t.head.insertBefore(r,null),t.head.removeChild(r)}})}function Qp(s,t,e,n,i){n?s.insertBefore(t,e?s.firstChild:null):s.nodeName==="HTML"?s.parentNode.replaceChild(t,s):s.parentNode.insertBefore(t,e?s:s.nextSibling),i&&Yp(t,s.ownerDocument)}function _n(s,t,e,n,i,r,o,a){return se(s,(l,h)=>{se(m(h),(f,d)=>{se(m(t),(g,b)=>{const v=e?d:b,x=e?b:d,k=e?f:g;Qp(v,k?x.cloneNode(!0):x,n,i,!k)},a)},o)},r),t}it.after=function(){return _n(arguments,this,!1,!1,!1,!0,!0)},it.append=function(){return _n(arguments,this,!1,!1,!0)};function Xp(s){if(!arguments.length)return this[0]&&this[0].innerHTML;if(Ce(s))return this;const t=/]/.test(s);return this.each((e,n)=>{Jt(n)&&(t?m(n).empty().append(s):n.innerHTML=s)})}it.html=Xp,it.appendTo=function(s){return _n(arguments,this,!0,!1,!0)},it.wrapInner=function(s){return this.each((t,e)=>{const n=m(e),i=n.contents();i.length?i.wrapAll(s):n.append(s)})},it.before=function(){return _n(arguments,this,!1,!0)},it.wrapAll=function(s){let t=m(s),e=t[0];for(;e.children.length;)e=e.firstElementChild;return this.first().before(t),this.appendTo(e)},it.wrap=function(s){return this.each((t,e)=>{const n=m(s)[0];m(e).wrapAll(t?n.cloneNode(!0):n)})},it.insertAfter=function(s){return _n(arguments,this,!0,!1,!1,!1,!1,!0)},it.insertBefore=function(s){return _n(arguments,this,!0,!0)},it.prepend=function(){return _n(arguments,this,!1,!0,!0,!0,!0)},it.prependTo=function(s){return _n(arguments,this,!0,!0,!0,!1,!1,!0)},it.contents=function(){return m(He(sn(this,s=>s.tagName==="IFRAME"?[s.contentDocument]:s.tagName==="TEMPLATE"?s.content.childNodes:s.childNodes)))},it.next=function(s,t,e){return bn(m(He(sn(this,"nextElementSibling",t,e))),s)},it.nextAll=function(s){return this.next(s,!0)},it.nextUntil=function(s,t){return this.next(t,!0,s)},it.parents=function(s,t){return bn(m(He(sn(this,"parentElement",!0,t))),s)},it.parentsUntil=function(s,t){return this.parents(t,s)},it.prev=function(s,t,e){return bn(m(He(sn(this,"previousElementSibling",t,e))),s)},it.prevAll=function(s){return this.prev(s,!0)},it.prevUntil=function(s,t){return this.prev(t,!0,s)},it.map=function(s){return m(Ep.apply([],Eh.call(this,(t,e)=>s.call(t,e,t))))},it.clone=function(){return this.map((s,t)=>t.cloneNode(!0))},it.offsetParent=function(){return this.map((s,t)=>{let e=t.offsetParent;for(;e&&nn(e,"position")==="static";)e=e.offsetParent;return e||xh})},it.slice=function(s,t){return m(Mh.call(this,s,t))};const Zp=/-([a-z])/g;function ya(s){return s.replace(Zp,(t,e)=>e.toUpperCase())}it.ready=function(s){const t=()=>setTimeout(s,0,m);return en.readyState!=="loading"?t():en.addEventListener("DOMContentLoaded",t),this},it.unwrap=function(){return this.parent().each((s,t)=>{if(t.tagName==="BODY")return;const e=m(t);e.replaceWith(e.children())}),this},it.offset=function(){const s=this[0];if(!s)return;const t=s.getBoundingClientRect();return{top:t.top+or.pageYOffset,left:t.left+or.pageXOffset}},it.position=function(){const s=this[0];if(!s)return;const t=nn(s,"position")==="fixed",e=t?s.getBoundingClientRect():this.offset();if(!t){const n=s.ownerDocument;let i=s.offsetParent||n.documentElement;for(;(i===n.body||i===n.documentElement)&&nn(i,"position")==="static";)i=i.parentNode;if(i!==s&&Jt(i)){const r=m(i).offset();e.top-=r.top+We(i,"borderTopWidth"),e.left-=r.left+We(i,"borderLeftWidth")}}return{top:e.top-We(s,"marginTop"),left:e.left-We(s,"marginLeft")}};const zh={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};it.prop=function(s,t){if(s){if(he(s))return s=zh[s]||s,arguments.length<2?this[0]&&this[0][s]:this.each((e,n)=>{n[s]=t});for(const e in s)this.prop(e,s[e]);return this}},it.removeProp=function(s){return this.each((t,e)=>{delete e[zh[s]||s]})};const Jp=/^--/;function ba(s){return Jp.test(s)}const _a={},{style:tm}=Sh,em=["webkit","moz","ms"];function nm(s,t=ba(s)){if(t)return s;if(!_a[s]){const e=ya(s),n=`${e[0].toUpperCase()}${e.slice(1)}`,i=`${e} ${em.join(`${n} `)}${n}`.split(" ");se(i,(r,o)=>{if(o in tm)return _a[s]=o,!1})}return _a[s]}const sm={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 Fh(s,t,e=ba(s)){return!e&&!sm[s]&&Ah(t)?`${t}px`:t}function im(s,t){if(he(s)){const e=ba(s);return s=nm(s,e),arguments.length<2?this[0]&&nn(this[0],s,e):s?(t=Fh(s,t,e),this.each((n,i)=>{Jt(i)&&(e?i.style.setProperty(s,t):i.style[s]=t)})):this}for(const e in s)this.css(e,s[e]);return this}it.css=im;function jh(s,t){try{return s(t)}catch{return t}}const rm=/^\s+|\s+$/;function Bh(s,t){const e=s.dataset[t]||s.dataset[ya(t)];return rm.test(e)?e:jh(JSON.parse,e)}function om(s,t,e){e=jh(JSON.stringify,e),s.dataset[ya(t)]=e}function am(s,t){if(!s){if(!this[0])return;const e={};for(const n in this[0].dataset)e[n]=Bh(this[0],n);return e}if(he(s))return arguments.length<2?this[0]&&Bh(this[0],s):Ce(t)?this:this.each((e,n)=>{om(n,s,t)});for(const e in s)this.data(e,s[e]);return this}it.data=am;function Wh(s,t){const e=s.documentElement;return Math.max(s.body[`scroll${t}`],e[`scroll${t}`],s.body[`offset${t}`],e[`offset${t}`],e[`client${t}`])}se([!0,!1],(s,t)=>{se(["Width","Height"],(e,n)=>{const i=`${t?"outer":"inner"}${n}`;it[i]=function(r){if(this[0])return vs(this[0])?t?this[0][`inner${n}`]:this[0].document.documentElement[`client${n}`]:Gn(this[0])?Wh(this[0],n):this[0][`${t?"offset":"client"}${n}`]+(r&&t?We(this[0],`margin${e?"Top":"Left"}`)+We(this[0],`margin${e?"Bottom":"Right"}`):0)}})}),se(["Width","Height"],(s,t)=>{const e=t.toLowerCase();it[e]=function(n){if(!this[0])return Ce(n)?void 0:this;if(!arguments.length)return vs(this[0])?this[0].document.documentElement[`client${t}`]:Gn(this[0])?Wh(this[0],t):this[0].getBoundingClientRect()[e]-Ih(this[0],!s);const i=parseInt(n,10);return this.each((r,o)=>{if(!Jt(o))return;const a=nn(o,"boxSizing");o.style[e]=Fh(e,i+(a==="border-box"?Ih(o,!s):0))})}});const Hh="___cd";it.toggle=function(s){return this.each((t,e)=>{if(!Jt(e))return;const n=Ph(e);(Ce(s)?n:s)?(e.style.display=e[Hh]||"",Ph(e)&&(e.style.display=Wp(e.tagName))):n||(e[Hh]=nn(e,"display"),e.style.display="none")})},it.hide=function(){return this.toggle(!1)},it.show=function(){return this.toggle(!0)};const Kh="___ce",va=".",wa={focus:"focusin",blur:"focusout"},Vh={mouseenter:"mouseover",mouseleave:"mouseout"},lm=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function Ca(s){return Vh[s]||wa[s]||s}function ka(s){const t=s.split(va);return[t[0],t.slice(1).sort()]}it.trigger=function(s,t){if(he(s)){const[n,i]=ka(s),r=Ca(n);if(!r)return this;const o=lm.test(r)?"MouseEvents":"HTMLEvents";s=en.createEvent(o),s.initEvent(r,!0,!0),s.namespace=i.join(va),s.___ot=n}s.___td=t;const e=s.___ot in wa;return this.each((n,i)=>{e&&Yn(i[s.___ot])&&(i[`___i${s.type}`]=!0,i[s.___ot](),i[`___i${s.type}`]=!1),i.dispatchEvent(s)})};function Uh(s){return s[Kh]=s[Kh]||{}}function cm(s,t,e,n,i){const r=Uh(s);r[t]=r[t]||[],r[t].push([e,n,i]),s.addEventListener(t,i)}function qh(s,t){return!t||!da.call(t,e=>s.indexOf(e)<0)}function dr(s,t,e,n,i){const r=Uh(s);if(t)r[t]&&(r[t]=r[t].filter(([o,a,l])=>{if(i&&l.guid!==i.guid||!qh(o,e)||n&&n!==a)return!0;s.removeEventListener(t,l)}));else for(t in r)dr(s,t,e,n,i)}it.off=function(s,t,e){if(Ce(s))this.each((n,i)=>{!Jt(i)&&!Gn(i)&&!vs(i)||dr(i)});else if(he(s))Yn(t)&&(e=t,t=""),se(hr(s),(n,i)=>{const[r,o]=ka(i),a=Ca(r);this.each((l,h)=>{!Jt(h)&&!Gn(h)&&!vs(h)||dr(h,a,o,t,e)})});else for(const n in s)this.off(n,s[n]);return this},it.remove=function(s){return bn(this,s).detach().off(),this},it.replaceWith=function(s){return this.before(s).remove()},it.replaceAll=function(s){return m(s).replaceWith(this),this};function hm(s,t,e,n,i){if(!he(s)){for(const r in s)this.on(r,t,e,s[r],i);return this}return he(t)||(Ce(t)||ti(t)?t="":Ce(e)?(e=t,t=""):(n=e,e=t,t="")),Yn(n)||(n=e,e=void 0),n?(se(hr(s),(r,o)=>{const[a,l]=ka(o),h=Ca(a),f=a in Vh,d=a in wa;h&&this.each((g,b)=>{if(!Jt(b)&&!Gn(b)&&!vs(b))return;const v=function(x){if(x.target[`___i${x.type}`])return x.stopImmediatePropagation();if(x.namespace&&!qh(l,x.namespace.split(va))||!t&&(d&&(x.target!==b||x.___ot===h)||f&&x.relatedTarget&&b.contains(x.relatedTarget)))return;let k=b;if(t){let M=x.target;for(;!Dh(M,t);)if(M===b||(M=M.parentNode,!M))return;k=M}Object.defineProperty(x,"currentTarget",{configurable:!0,get(){return k}}),Object.defineProperty(x,"delegateTarget",{configurable:!0,get(){return b}}),Object.defineProperty(x,"data",{configurable:!0,get(){return e}});const S=n.call(k,x,x.___td);i&&dr(b,h,l,t,v),S===!1&&(x.preventDefault(),x.stopPropagation())};v.guid=n.guid=n.guid||m.guid++,cm(b,h,l,t,v)})}),this):this}it.on=hm;function um(s,t,e,n){return this.on(s,t,e,n,!0)}it.one=um;const dm=/\r?\n/g;function fm(s,t){return`&${encodeURIComponent(s)}=${encodeURIComponent(t.replace(dm,`\r `))}`}const pm=/file|reset|submit|button|image/i,Gh=/radio|checkbox/i;it.serialize=function(){let s="";return this.each((t,e)=>{se(e.elements||[e],(n,i)=>{if(i.disabled||!i.name||i.tagName==="FIELDSET"||pm.test(i.type)||Gh.test(i.type)&&!i.checked)return;const r=Oh(i);if(!Ce(r)){const o=ar(r)?r:[r];se(o,(a,l)=>{s+=fm(i.name,l)})}})}),s.slice(1)},window.$=m;function Yh(s,t){if(s==null)return[s,void 0];typeof t=="string"&&(t=t.split("."));const e=t.join(".");let n=s;const i=[n];for(;typeof n=="object"&&n!==null&&t.length;){let r=t.shift(),o;const a=r.indexOf("[");if(a>0&&a{const i=e[n]??"";s=s.replace(new RegExp(`\\{${n}\\}`,"g"),`${i}`)}),s}for(let e=0;e(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))(Sa||{});function ge(s,t=2,e){return Number.isNaN(s)?"?KB":(e||(s<1024?e="B":s<1048576?e="KB":s<1073741824?e="MB":s<1099511627776?e="GB":e="TB"),(s/Sa[e]).toFixed(t)+e)}const ws=s=>{const t=/^[0-9]*(B|KB|MB|GB|TB)$/;s=s.toUpperCase();const e=s.match(t);if(!e)return 0;const n=e[1];return s=s.replace(n,""),Number.parseInt(s,10)*Sa[n]};let $a=(document.documentElement.getAttribute("lang")||"zh_cn").toLowerCase().replace("-","_"),rn;function mm(){return $a}function gm(s){$a=s.toLowerCase().replace("-","_")}function Qh(s,t){rn||(rn={}),typeof s=="string"&&(s={[s]:t??{}}),m.extend(!0,rn,s)}function Et(s,t,e,n,i,r){Array.isArray(s)?rn&&s.unshift(rn):s=rn?[rn,s]:[s],typeof e=="string"&&(r=i,i=n,n=e,e=void 0);const o=i||$a;let a;for(const l of s){if(!l)continue;const h=l[o]||l.default;if(!h)continue;const f=r&&l===rn?`${r}.${t}`:t;if(a=xa(h,f),a!==void 0)break}return a===void 0?n:e?Nt(a,...Array.isArray(e)?e:[e]):a}function ym(s,t,e,n){return Et(void 0,s,t,e,n)}Et.addLang=Qh,Et.getLang=ym,Et.getCode=mm,Et.setCode=gm,Et.map=rn,Qh({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 Xh(s,t,e){s instanceof Headers?s.set(t,e):Array.isArray(s)?s.push([t,e]):s[t]=e}function Cs(s,t,e){e!=null&&(Array.isArray(e)?e.forEach(n=>Cs(s,t,n)):!(e instanceof Blob)&&m.isPlainObject(e)?Object.entries(e).forEach(([n,i])=>{Cs(s,`${t}[${n}]`,i)}):s.append(t,e instanceof Blob?e:String(e)))}function bm(s,t){if(s){const e={text:"text/plain",html:"text/html",json:"application/json",...t};for(const[n,i]of Object.entries(e))if(i.split(",").map(r=>r.trim()).includes(s))return n}return"text"}function fr(s,t){const e=t||new FormData;return s&&(typeof s=="string"&&(s=new URLSearchParams(s)),s instanceof URLSearchParams?s.forEach((n,i)=>{Cs(e,i,n)}):Array.isArray(s)?s.forEach(([n,i])=>{Cs(e,n,i)}):s instanceof FormData?s.forEach((n,i)=>{Cs(e,i,n)}):m.isPlainObject(s)&&Object.entries(s).forEach(([n,i])=>{Cs(e,n,i)})),e}class pr{get completed(){return this.data!==void 0||this.error!==void 0}get[Symbol.toStringTag](){return"Ajax"}constructor(t){this.setting=t,this._controller=new AbortController,this._callbacks={success:[],error:[],complete:[]}}on(t,e){return this._callbacks[t].push(e),this}success(t){return this.on("success",t)}done(t){return this.success(t)}fail(t){return this.on("error",t)}complete(t){return this.on("complete",t)}always(t){return this.complete(t)}then(t,e){return this.completed?e&&this.error?e(this.error):t(this.data):(this.success(n=>t(n)),e&&this.fail(e)),this}catch(t){return this.error?(t(this.error),this):this.on("error",e=>t(e))}finally(t){return this.completed?(t(),this):this.complete(()=>t())}abort(t){return this.completed?!1:(this._abortError=t,this._controller.abort(),!0)}getResponseHeader(t){var e;return(e=this.response)==null?void 0:e.headers.get(t)}_init(){if(this.completed)return;const{url:t,type:e,data:n,processData:i=!0,contentType:r,crossDomain:o,accepts:a,dataType:l,timeout:h,dataFilter:f,beforeSend:d,success:g,error:b,complete:v,...x}=this.setting;if((d==null?void 0:d(x))===!1)return;e&&(x.method=e);let k=n;k&&(i&&(k=fr(k)),x.body=k),o&&(x.mode="cors");const S=x.headers||{};Xh(S,"X-Requested-With","XMLHttpRequest"),r&&Xh(S,"Content-Type",r),x.headers=S,x.signal&&x.signal.addEventListener("abort",()=>{this.abort()}),g&&this.success(g),b&&this.fail(b),v&&this.complete(v),x.signal=this._controller.signal,this.url=t,this.request=x}_emit(t,...e){this._callbacks[t].forEach(n=>{n.call(this,...e)})}async send(){var f;if(this.completed)return[];this._init();const{timeout:t,dataType:e,accepts:n,dataFilter:i,throws:r,jsonParser:o}=this.setting;t&&(this._timeoutID=window.setTimeout(()=>{this.abort(new Error("timeout"))},t));let a,l,h;try{a=await fetch(this.url,this.request),this.response=a;const{statusText:d}=a;if(a.ok){const g=(f=a.headers.get("Content-Disposition"))==null?void 0:f.startsWith("attachment"),b=g?"blob":e||bm(a.headers.get("Content-Type"),n);g||b==="blob"||b==="file"?h=await a.blob():b==="json"?typeof o=="function"?(h=await a.text(),h=o(h)):h=await a.json():h=await a.text(),this.data=h;const v=(i==null?void 0:i(h,b))??h;this._emit("success",v,d,a)}else throw this.data=await a.text(),new Error(d)}catch(d){l=d;let g=!1;l.name==="AbortError"&&(this._abortError?l=this._abortError:g=!0),this.error=l,g||this._emit("error",l,a==null?void 0:a.statusText,l.message)}if(this._timeoutID&&clearTimeout(this._timeoutID),this._emit("complete",a,a==null?void 0:a.statusText),l&&r)throw l;return[h,l,a]}}m.ajax=(s,t)=>{t=t||{},typeof s=="string"?t.url=s:m.extend(t,s);const e=new pr(t);return e.send(),e},m.getJSON=(s,t,e)=>(typeof t=="function"&&(e=t,t=void 0),m.ajax({url:s,data:t,success:e,dataType:"json"})),m.get=(s,t,e,n,i="GET")=>{let r,o;return typeof t=="function"?(r=t,o=void 0):o=t,typeof e=="function"?(r=e,n=void 0):n=e,m.ajax({method:i,url:s,data:o,success:r,dataType:n})},m.post=(s,t,e,n)=>m.get(s,t,e,n,"POST"),m.fn.load=function(s,t,e){typeof t=="function"&&(e=t,t=void 0);const[n,i]=s.split(" ");return m.get(n,t,(r,o,a)=>{i&&(r=m(r).find(i).html()),m(this).html(r).zuiInit(),e==null||e.call(this,r,o,a)},"html"),this};async function Qn(s,t=[],e){const n={throws:!0,dataType:"json"};if(typeof s=="string")n.url=s;else if(typeof s=="object")m.extend(n,s);else if(typeof s=="function"){const o=s(...t);return o instanceof Promise?await o:o}e&&m.extend(n,typeof e=="function"?e(n):e);const i=new pr(n),[r]=await i.send();return r}function Ta(s){return!!(s&&(typeof s=="string"||typeof s=="object"&&s.url||typeof s=="function"))}m.fetch=Qn;function ye(){return m.guid++}function mr(s,t){if(s===t)return!1;if(s&&t){const e=typeof s,n=typeof t;if(e!==n)return!0;if(e==="object"&&n==="object"){const i=Array.isArray(s),r=Array.isArray(t);if(i!==r)return!0;if(i&&r){if(s.length!==t.length)return!0;for(let l=0;lmr(n instanceof Xn?n.value:n,e[i])))&&(this._value=this._compute(),this._lastDependencies=t.map(n=>n instanceof Xn?n.cache:n)),this._value}}function Na(...s){const t=[],e=new Map,n=(i,r)=>{if(Array.isArray(i)&&(r=i[1],i=i[0]),!i.length)return;const o=e.get(i);typeof o=="number"?t[o][1]=!!r:(e.set(i,t.length),t.push([i,!!r]))};return s.forEach(i=>{typeof i=="function"&&(i=i()),Array.isArray(i)?Na(...i).forEach(n):i&&typeof i=="object"?Object.entries(i).forEach(n):typeof i=="string"&&i.split(" ").forEach(r=>n(r,!0))}),t.sort((i,r)=>(e.get(i[0])||0)-(e.get(r[0])||0))}const Y=(...s)=>Na(...s).reduce((t,[e,n])=>(n&&t.push(e),t),[]).join(" ");m.classes=Y,m.fn.setClass=function(s,...t){return this.each((e,n)=>{const i=m(n);s===!0?i.attr("class",Y(i.attr("class"),...t)):i.addClass(Y(s,...t))})};const ks=new WeakMap;function Ea(s,t,e){const n=ks.has(s),i=n?ks.get(s):{};typeof t=="string"?i[t]=e:t===null?Object.keys(i).forEach(r=>{delete i[r]}):Object.assign(i,t),Object.keys(i).forEach(r=>{i[r]===void 0&&delete i[r]}),Object.keys(i).length?(!n&&s instanceof Element&&Object.assign(i,m(s).dataset(),i),ks.set(s,i)):ks.delete(s)}function gr(s,t,e){let n=ks.get(s)||{};return!e&&s instanceof Element&&(n=Object.assign({},m(s).dataset(),n)),t===void 0?n:n[t]}function _m(s){ks.delete(s)}m.fn.dataset=m.fn.data,m.fn.data=function(...s){const[t,e]=s;return!s.length||s.length===1&&typeof t=="string"?this.length?gr(this[0],t):void 0:this.each((n,i)=>Ea(i,t,e))},m.fn.removeData=function(s=null){return this.each((t,e)=>Ea(e,s))};function xs(s,...t){return s.includes("RAWJS")&&(s=s.split('"RAWJS<').join("").split('>RAWJS"').join("").split("").join('"').split("").join(` -`)),new Function(`return ${s}`)(...t)}function Ma(s,...t){return s.includes("RAWJS")?xs(s,...t):JSON.parse(s)}function ei(s,t){const e=m(s)[0];if(!e)return;const{prefix:n,getter:i,evalValue:r,json:o=!0,evalArgs:a=[]}={prefix:"z-",...typeof t=="string"?{prefix:t}:t},l=Array.isArray(r)?new Set(r):void 0;return Array.from(e.attributes).reduce((h,f)=>{let{name:d}=f;const{value:g}=f;let b=g;if(d.startsWith(n)){if(d=d.slice(n.length).replace(/-([a-z])/g,v=>v[1].toUpperCase()),i)b=i(d,g);else try{r&&(!l||l.has(d))||r===void 0&&g.includes("RAWJS")?b=xs(g,...a):o&&(b=JSON.parse(g))}catch{}h[d]=b}return h},{})}function Aa(s,t,e="z-"){const n=m(s);Object.keys(t).forEach(i=>{let r=t[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(`${e}${i}`,r)})}function vm(...s){var e;const t=s.length;if(!t)return ei(this);if(t===1){const[n]=s;return typeof n=="string"?(e=ei(this))==null?void 0:e[n]:(m.isPlainObject(n)&&Aa(this,n),this)}return Aa(this,{[s[0]]:s[1]}),this}m.fn.z=vm,m.fn._attr=m.fn.attr,m.fn.extend({attr(...s){const[t,e]=s;return!s.length||s.length===1&&typeof t=="string"?this._attr.apply(this,s):typeof t=="object"?(t&&Object.keys(t).forEach(n=>{const i=t[n];i===null?this.removeAttr(n):this._attr(n,i)}),this):e===null?this.removeAttr(t):this._attr(t,e)}}),m.Event||(m.Event=(s,t)=>{const[e,...n]=s.split("."),i=new Event(e,{bubbles:!0,cancelable:!0});return i.namespace=n.join("."),i.___ot=e,i.___td=t,i});const ni=(s,t)=>new Promise(e=>{const n=window.setTimeout(e,s);t&&t(n)}),Zh={};m.share=Zh;var yr,Bt,Jh;D.isValidElement=void 0;var Zn,tu,eu,Pa,Ia,Da,Ra,si={},nu=[],wm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,br=Array.isArray;function vn(s,t){for(var e in t)s[e]=t[e];return s}function su(s){var t=s.parentNode;t&&t.removeChild(s)}function E(s,t,e){var n,i,r,o={};for(r in t)r=="key"?n=t[r]:r=="ref"?i=t[r]:o[r]=t[r];if(arguments.length>2&&(o.children=arguments.length>3?yr.call(arguments,2):e),typeof s=="function"&&s.defaultProps!=null)for(r in s.defaultProps)o[r]===void 0&&(o[r]=s.defaultProps[r]);return _r(s,o,n,i,null)}function _r(s,t,e,n,i){var r={type:s,props:t,key:e,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++Jh,__i:-1,__u:0};return i==null&&Bt.vnode!=null&&Bt.vnode(r),r}function $t(){return{current:null}}function wn(s){return s.children}function Tt(s,t){this.props=s,this.context=t}function Jn(s,t){if(t==null)return s.__?Jn(s.__,s.__i+1):null;for(var e;tt&&Zn.sort(Pa));vr.__r=0}function ou(s,t,e,n,i,r,o,a,l,h,f){var d,g,b,v,x,k=n&&n.__k||nu,S=t.length;for(e.__d=l,Cm(e,t,k),l=e.__d,d=0;d0?_r(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=s,i.__b=s.__b+1,a=km(i,e,o,f),i.__i=a,r=null,a!==-1&&(f--,(r=e[a])&&(r.__u|=131072)),r==null||r.__v===null?(a==-1&&d--,typeof i.type!="function"&&(i.__u|=65536)):a!==o&&(a==o-1?d=a-o:a==o+1?d++:a>o?f>l-o?d+=a-o:d--:a(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||a=0){if((l=t[o])&&!(131072&l.__u)&&i==l.key&&r===l.type)return o;o--}if(a{!e||typeof e!="object"||Object.keys(e).forEach(n=>{let i=e[n];const r=s[n];i!==r&&(r!==void 0&&(n==="className"||n.endsWith("Class")?i=[r,i]:n==="children"?i=[...wr(r),...wr(i)]:typeof r=="object"&&(n==="style"||n.endsWith("Style")||n==="attrs"||n.endsWith("Attrs")||n==="props")&&(i=m.extend(r,i))),s[n]=i)})}),s}function Fa(s){return Object.keys(s).forEach(t=>{s[t]===void 0&&delete s[t]}),s}function uu(s,t=!0){const e=m(s),n=e[0],i="zui-disable-scroll";if(t){if(e.data(i))return;if((e.css("scrollbar-gutter")||"").includes("stable")){e.data(i,{overflow:e.css("overflow")}).css("overflow","hidden");return}const r=n===document.body||e.is("html")?window.innerWidth-document.body.clientWidth:n.offsetWidth-n.clientWidth;if(!r)return;const o=e.css("paddingRight")||"0";e.data(i,{paddingRight:o,overflow:e.css("overflow")}).css({paddingRight:`${r+Number.parseInt(o,10)}px`,overflow:"hidden"})}else{const r=e.data(i);if(!r)return;e.css(r).removeData(i)}}m.fn.disableScroll=function(s=!0){return this.each((t,e)=>{uu(e,s)})},m.fn.enableScroll=function(s=!0){return this.disableScroll(!s)};function ja(s,t,e){if(!(e.on||"click").split(" ").includes(t.type))return;const n=e.selector?m(t.target).closest(e.selector):s;if(!n.length)return;const i=h=>h===""?!0:h,r=h=>{if(typeof h=="string")try{h=JSON.parse(h)}catch{}return h};if(i(e.once)){if(e.onceCalled)return;s.dataset("once-called",!0)}if(i(e.prevent)&&t.preventDefault(),i(e.stop)&&t.stopPropagation(),i(e.self)&&t.currentTarget!==t.target)return;const o=[["$element",s],["event",t],["options",e],["$target",n]],a=h=>typeof h=="function"?h(...o):m.runJS(h,...o);if(e.if!==void 0&&!a(e.if))return;const l=e.call;if(l){let h;if(typeof l=="string"?h=/^[$A-Z_][0-9A-Z_$.]*$/i.test(l)?xa(window,l):a(l):h=l,typeof h=="function"){const f=[],d=e.params;e.params=f,typeof d=="string"&&d.length?d[0]==="["?f.push(...r(d)):f.push(...d.split(", ").map(g=>(g=g.trim(),g==="$element"?s:g==="event"?t:g==="options"?e:g.startsWith("$element.")||g.startsWith("event.")||g.startsWith("options.")?a(g):r(g)))):Array.isArray(d)?f.push(...d):f.push(d),h(...f)}}e.do&&a(e.do)}function $m(s){const t=m(this),e=s.type,n=t.attr("zui-on");if(n){const[o,a]=n.split("~").map(l=>l.trim());o&&a&&ja(t,s,m.extend({on:o},a.startsWith("{")?xs(a):{do:a}))}const i=t.attr(`zui-on-${e}`);i&&ja(t,s,m.extend({on:e},i.startsWith("{")?xs(i):{do:i})),t.attr("data-on")&&ja(t,s,ei(t,{prefix:"data-",evalValue:["call","if","do"]}))}function du(s){m(document).off(".zui.global").on(s.map(t=>`${t}.zui.global`).join(" "),`[zui-on],${s.map(t=>`[zui-on-${t}]`)},[data-on]`,$m)}du(["click","change","inited"]);function Ss(s){if(typeof s=="function")return Ss(s());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 Yt(s){if(s==null)return null;const[t,e="px"]=Ss(s);return Number.isNaN(t)?typeof s=="string"?s:null:`${t}${e}`}async function kr(s,t){var n,i,r;if(s instanceof Blob){const o=document.createElement("a");return o.href=window.URL.createObjectURL(s),t&&(o.download=decodeURIComponent(t)),o.click(),o.remove(),s}if(s instanceof Response){const o=await s.blob();return t=t||((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,"")),kr(o,t)}const e=await fetch(s);return kr(e)}class fu{constructor(t){this._$target=m(t)}on(...t){return this._$target.on(...t),this}one(...t){return this._$target.one(...t),this}off(...t){return this._$target.off(...t),this}trigger(...t){return this._$target.trigger(...t),this}}const Ke=new fu(document);m.bus=Ke,m.on=Ke.on.bind(Ke),m.one=Ke.one.bind(Ke),m.off=Ke.off.bind(Ke),m.trigger=Ke.trigger.bind(Ke);var Tm=["Shift","Meta","Alt","Control"],pu=typeof navigator=="object"?navigator.platform:"",mu=/Mac|iPod|iPhone|iPad/.test(pu),Nm=mu?"Meta":"Control",Em=pu==="Win32"?["Control","Alt"]:mu?["Alt"]:[];function Ba(s,t){return typeof s.getModifierState=="function"&&(s.getModifierState(t)||Em.includes(t)&&s.getModifierState("AltGraph"))}function Mm(s){return s.trim().split(" ").map(function(t){var e=t.split(/\b\+/),n=e.pop();return[e=e.map(function(i){return i==="$mod"?Nm:i}),n]})}function gu(s,t){var e;t===void 0&&(t={});var n=(e=t.timeout)!=null?e:1e3,i=Object.keys(s).map(function(a){return[Mm(a),s[a]]}),r=new Map,o=null;return function(a){a instanceof KeyboardEvent&&(i.forEach(function(l){var h=l[0],f=l[1],d=r.get(h)||h;(function(g,b){return!(b[1].toUpperCase()!==g.key.toUpperCase()&&b[1]!==g.code||b[0].find(function(v){return!Ba(g,v)})||Tm.find(function(v){return!b[0].includes(v)&&b[1]!==v&&Ba(g,v)}))})(a,d[0])?d.length>1?r.set(h,d.slice(1)):(r.delete(h),f(a)):Ba(a,a.key)||r.delete(h)}),o&&clearTimeout(o),o=setTimeout(r.clear.bind(r),n))}}function Am(s,t,e){var n;e===void 0&&(e={});var i=(n=e.event)!=null?n:"keydown",r=gu(t,e);return s.addEventListener(i,r),function(){s.removeEventListener(i,r)}}function Wa(s,t={}){if(!s)return;const e=Object.keys(t).reduce((n,i)=>(t[i].optional||(n[i]={...t[i]}),n),{});return Object.keys(s).forEach(n=>{const i=s[n];i?i===!0?t[n]&&(e[n]={...t[n]}):e[n]=i:delete e[n]}),Object.keys(e).reduce((n,i)=>{const{keys:r,handler:o}=e[i];return typeof r=="string"?n[r]=o:r.forEach(a=>{n[a]=o}),n},{})}function Ha(s,t,e){const{timeout:n,event:i="keydown",scope:r,when:o}=e||{},a=gu(t,{timeout:n}),l=`.zui.hotkeys${r?`.${r}`:""}`,h="zui-hotkeys-composing";return m(s).on(`${i}${l}`,function(f){o&&o(f)===!1||m(f.target).data(h)||a(f)}).on(`compositionstart${l}`,f=>{m(f.target).data(h,!0)}).on(`compositionend${l}`,f=>{m(f.target).removeData(h)})}function Ka(s,t){return m(s).off(`.zui.hotkeys${t?`.${t}`:""}`)}const Pm=Am;m.fn.hotkeys=function(s,t){return Ha(this,s,t)},m.fn.unbindHotkeys=function(s){return Ka(this,s)},m.hotkeys=function(s,t){Ha(window,s,t)},m.unbindHotkeys=function(s){Ka(window,s)};function xr(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement}async function yu(s){(typeof s=="string"||s instanceof Element||s instanceof m)&&(s={target:s});const{target:t,onError:e,onSuccess:n,afterExit:i,afterEnter:r}=s,o=m(t),a=o[0];if(!a)return;const l=a.requestFullscreen||a.webkitRequestFullscreen||a.mozRequestFullScreen;if(!l){e==null||e.call(a,new Error("[ZUI] The browser does not support full screen feature."));return}try{await l.call(a),n==null||n.call(a),m(a).off(".zui.fullscreen"),i&&o.on("exitFullscreen.zui.fullscreen",i),r&&o.on("enterFullscreen.zui.fullscreen",r)}catch(h){e==null||e.call(a,h)}document.zuiBindFullscreenChange||(document.zuiBindFullscreenChange=!0,m(document).on("fullscreenchange.zui webkitfullscreenchange.zui mozfullscreenchange.zui",h=>{const f=xr();let d=f;f?m(f).addClass("is-in-fullscreen"):(d=m(document).find(".is-in-fullscreen")[0]||document,m(d).removeClass("is-in-fullscreen")),m("body").toggleClass("has-in-fullscreen",!!f);const g={event:h,target:d,fullscreenElement:f};m(d).trigger(f?"enterFullscreen":"exitFullscreen",g).trigger("toggleFullscreen",g)}))}async function Va(s){const t=xr();return s===!1&&!!t===s?s:t?(document.exitFullscreen(),!1):(await yu(s),!0)}m.fn.fullscreen=function(s){return Va({target:this,...s})},m.getFullscreenElement=xr,m.toggleFullscreen=Va;function es(s){return s.parentNode===document?!1:s.parentNode?es(s.parentNode):!0}m.isDetached=es,m.fn.isDetached=function(){const s=this[0];return!s||es(s)};class Lt{constructor(t,e){this._inited=!1,this._autoDestory=0,this._destroyed=!1;const{KEY:n,DATA_KEY:i,DEFAULT:r,MULTI_INSTANCE:o,NAME:a,ATTR_KEY:l}=this.constructor;if(!a)throw new Error('[ZUI] The component must have a "NAME" static property.');const h=m(t);if(h.data(n)&&!o)throw new Error(`[ZUI] The component "${a}" has been initialized on element.`);const f=h[0],d=ye();this._gid=d,this._element=f;const g=h.parent();if(g.length&&(this._mobs=new MutationObserver(b=>{b.forEach(v=>{v.removedNodes.forEach(x=>{x===f&&(this._autoDestory&&clearTimeout(this._autoDestory),this._autoDestory=window.setTimeout(()=>{this._autoDestory=0,es(f)&&this.destroy()},100))})})}),this._mobs.observe(g[0],{childList:!0,subtree:!1})),this._options={...r,...(e==null?void 0:e.$optionsFromDataset)!==!1?h.dataset():{}},this.setOptions(e),this._key=this.options.key??`__${d}`,h.data(n,this).attr(l,"").attr(i,`${d}`),o){const b=`${n}:ALL`;let v=h.data(b);v||(v=new Map,h.data(b,v)),v.set(this._key,this)}this.init(),requestAnimationFrame(async()=>{this._inited=!0,await this.afterInit(),this.emit("inited",this.options)})}static get ZUI(){return this.NAME.replace(/(^[A-Z]+)/,t=>t.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(){return this._element}get key(){return this._key}get options(){return this._options}get gid(){return this._gid}get $element(){return m(this.element)}get $emitter(){return this.$element}get i18nData(){return[this.options.i18n,this.constructor.i18n]}init(){}afterInit(){}render(t,e){this.setOptions(t,e)}destroy(){var o;const{KEY:t,DATA_KEY:e,MULTI_INSTANCE:n,ATTR_KEY:i}=this.constructor,{$element:r}=this;if(this.emit("destroyed"),this._destroyed=!0,(o=this._mobs)==null||o.disconnect(),r.off(this.namespace).removeData(t).removeAttr(i).removeAttr(e),n){const a=this.$element.data(`${t}:ALL`);if(a)if(a.delete(this._key),a.size===0)this.$element.removeData(`${t}:ALL`);else{const l=a.values().next().value;r.data(t,l).attr(e,l.gid)}}}setOptions(t,e){return e?this._options={...this.constructor.DEFAULT,...(t==null?void 0:t.$optionsFromDataset)!==!1?this.$element.dataset():{},...t}:t&&m.extend(this._options,t),this._options}emit(t,...e){const n=m.Event(t);return n.__src=this,this.$emitter.trigger(n,[this,...e]),n}on(t,e,n){const i=this;this.$element[n!=null&&n.once?"one":"on"](this._wrapEvent(t),function(r,o){(!r.__src||r.__src===i)&&e.call(this,r,o)})}one(t,e){this.on(t,e,{once:!0})}off(t){this.$element.off(this._wrapEvent(t))}i18n(t,e,n){const{i18nData:i}=this;return Et(i,t,e,n,this.options.lang,this.constructor.NAME)??Et(i,t,e,n,this.options.lang)??`{i18n:${t}}`}get namespace(){return`${this.constructor.NAMESPACE}.${this._key}`}_wrapEvent(t){return t.split(" ").map(e=>e.includes(".")?e:`${e}${this.namespace}`).join(" ")}static get(t,e){const n=m(t);if(this.MULTI_INSTANCE&&e!==void 0){const i=n.data(`${this.KEY}:ALL`);return i?i.get(e):void 0}return n.data(this.KEY)}static isValid(t){return!0}static ensure(t,e){const n=this.get(t,e==null?void 0:e.key);if(n){if(this.isValid(n))return e&&n.setOptions(e),n;n.destroy()}return new this(t,e)}static getAll(t){const{MULTI_INSTANCE:e,SELECTOR:n}=this,i=[];return m(t||document).find(n).each((r,o)=>{if(e){const l=m(o).data(`${this.KEY}:ALL`);if(l){i.push(...l.values());return}}const a=m(o).data(this.KEY);a&&i.push(a)}),i.sort((r,o)=>r.gid-o.gid)}static query(t,e,n){if(t===void 0){let i=this.getAll();return n&&(i=i.filter(n)),i.pop()}return this.get(m(t).closest(this.SELECTOR),e)}static defineFn(t){let e=t||this.ZUI;m.fn[e]&&(e=`zui${this.NAME}`);const n=this;m.fn.extend({[e](i,...r){const o=typeof i=="object"?i:void 0,a=typeof i=="string"?i:void 0;let l;return this.each((h,f)=>{let d=n.get(f);if(d?o&&d.render(o):d=new n(f,o),a){let g=d[a],b=d;g===void 0&&(b=d.$,g=b[a]),typeof g=="function"?l=g.call(b,...r):l=g}}),l!==void 0?l:this}})}static register(t,e){var i,r;t=t||this,e=(e??t.NAME).toLowerCase(),this.map.set(e,t);const n=(r=(i=t.toggle)==null?void 0:i.name)==null?void 0:r.toLowerCase();n&&n!==e&&this.toggleMap.set(n,t)}}Lt.DEFAULT={},Lt.MULTI_INSTANCE=!1,Lt.map=new Map,Lt.toggleMap=new Map;function ii(s){return Lt.map.get(s.toLowerCase())}function Ua(s,t,e={}){const n=ii(s);if(!n)return null;const{$update:i,...r}=e;if(!n.MULTI_INSTANCE){const o=n.get(t);if(o)return i&&o.render(r,i==="reset"),o}return new n(t,r)}function Im(s,t,e={}){requestAnimationFrame(()=>Ua(s,t,e))}function bu(s,t){Lt.register(s,t)}function _u(){const{zui:s}=window;s&&Object.keys(s).forEach(t=>{const e=s[t];!e.NAME||!e.ZUI||bu(e)})}function Dm(s){var t;s?(t=ii(s))==null||t.defineFn():window._zuiDefined||(_u(),Lt.map.forEach(e=>{e.defineFn()}),Object.assign(window,{_zuiDefined:!0}))}function Rm(s,t={}){const e=m(s);let n=e.attr("zui-create");const{update:i,onCreate:r}=t,o=(a,l)=>{if(l={$update:i,$optionsFromDataset:!1,...l},r){const f=r(a,l);if(f===!1)return;f&&(l=f)}const h=l.$lib;if(h){delete l.$lib,m.getLib(h).then(()=>Ua(a,s,l));return}Im(a,s,l)};if(typeof n=="string"){n=n.trim();const a=n.length?n.split(",").map(f=>f.trim()):[],l=ei(s,{prefix:"zui-create-",evalValue:!0}),h=Object.keys(l);if(!h.length&&a.length===1)o(a[0],e.dataset());else{const f=new Set;[...a,...h].forEach(d=>{if(f.has(d))return;const g=l[d];o(d,g),delete l[d],f.add(d)})}}else{const a=e.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:t}),delete a.zui,o(l,a)}}function Lm(){m(document).on("click.zui.toggle mouseenter","[data-toggle],[zui-toggle]",function(s){const t=m(this),e=t.dataset("toggle")||t.attr("zui-toggle");if(!e)return;const n=Lt.toggleMap.get(e)||ii(e),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&&t.is(o))return;const{onGet:h,onCreate:f,setOptions:d=!0,getOptions:g,prevent:b=!0,handler:v,onToggle:x,convertHref:k}=i;let S=t.dataset();const M=t.attr(`zui-toggle-${e}`);if(M&&(S=m.extend(S,xs(M))),k&&t.is("a")){const H=t.attr("href");if(H){const K=k===!0?{selector:"target",url:"url"}:k;"#.".includes(H[0])?K.selector&&S[K.selector]===void 0&&(S[K.selector]=H):K.url&&S[K.url]===void 0&&(S[K.url]=H)}}if(g&&(S=g.call(n,this,S,s)),v){v.call(n,this,S,l,s),b&&s.preventDefault();return}let j=h?h.call(n,this):n.get(this);if(j)d&&j.setOptions(S);else{const H=f?f.call(n,this,s,S):new n(this,S);if(!H)return;j=H}if(x){if(x.call(n,j,this,s)===!1)return}else{const{shown:H,show:K,hide:Q,toggle:q}=j;let Z;if(q?Z=q:K&&Q?H?Z=Q:Z=K:K&&(Z=K),Z)Z.call(j);else return}b&&s.preventDefault()})}m.fn.zuiInit=function(s){return this.find("[zui-create],[data-zui]").each(function(){var t;((t=s==null?void 0:s.beforeCreate)==null?void 0:t.call(s,this))!==!1&&Rm(this,s)}),this.find("[zui-init]").each(function(){this.hasAttribute("z-zui-inited")||(this.setAttribute("z-zui-inited",""),m.runJS(this.getAttribute("zui-init"),["$element",m(this)]))}),this.find(".hide-before-init").removeClass("invisible hidden opacity-0"),this.find(".scroll-into-view").scrollIntoView(),this.find('[data-on="inited"],[zui-on-inited]').each((t,e)=>{const n=m(e);n.zui()||n.trigger("inited")}),this},m.fn.zui=function(s,t){const e=this[0];if(!e)return;if(typeof s!="string"){const i=gr(e,void 0,!0),r={};let o;return Object.keys(i).forEach(a=>{if(a.startsWith("zui.")){const l=i[a];r[a]=l,(!o||o.gid1?e[0]:void 0,i=e[e.length>1?1:0],r=m(this).zui(n),o=r==null?void 0:r[i];typeof o=="function"&&o.apply(r,t)}),this},m(()=>{m("body").zuiInit({update:!0}),Lm()});class qa extends Lt{init(){const{offset:t=1,side:e,zIndex:n,pinnedClass:i="is-pinned",targets:r,scrollContainer:o}=this.options,{$element:a}=this,l=r?a.find(r):a;if(l.css({position:"sticky",zIndex:n}),e&&l.css(e,-t),o){const h=a.closest(o)[0];if(h){const f=()=>{this._raf&&cancelAnimationFrame(this._raf),this._raf=requestAnimationFrame(()=>{if(this._raf=0,h.scrollTop===0&&(!e||e==="top")){l.toggleClass(i,!1);return}const d=h.getBoundingClientRect();l.each((g,b)=>{const x=b.getBoundingClientRect()[e||"top"]===d[e||"top"];b.classList.toggle(i,x)})})};this._scrollListener=f,h.addEventListener("scroll",f)}this._container=h}else this._ob=new IntersectionObserver(h=>{h.forEach(f=>{f.target.classList.toggle(i,f.intersectionRatiothis._ob.observe(f))}destroy(){var t;(t=this._ob)==null||t.disconnect(),this._container&&(this._container.removeEventListener("scroll",this._scrollListener),this._raf&&cancelAnimationFrame(this._raf))}}qa.NAME="Sticky";function ri(s,t={}){const e=m(s)[0];if(!e)return!1;let{viewport:n}=t;const{left:i,top:r,width:o,height:a}=e.getBoundingClientRect();if(t.checkZeroSize&&!(o*a))return!1;if(!n)if(t.container)n=m(e).closest(t.container)[0].getBoundingClientRect();else{const{innerHeight:v,innerWidth:x}=window,{clientHeight:k,clientWidth:S}=document.documentElement;n={left:0,top:0,width:x||S,height:v||k}}const{left:l,top:h,width:f,height:d}=n;if(t.fullyCheck)return i>=l&&r>=h&&i+o<=f+l&&r+a<=d+h;const g=i<=l+f&&i+o>=l;return r<=h+d&&r+a>=h&&g}m.fn.isVisible=function(s){return ri(this,s)};function Sr(s,t,e=!1){var i;const n=m(s);if(t!==void 0){if(typeof t=="string"&&t.length){const r=`zui-runjs-${ye()}`;n.append(`