From dc210c61ada4cf7cf613b258434166b1b9808841 Mon Sep 17 00:00:00 2001 From: sunhao Date: Fri, 8 Sep 2023 14:48:00 +0800 Subject: [PATCH] * zui: update zui3 lib. --- www/js/zui3/zui.zentao.umd.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/zui3/zui.zentao.umd.cjs b/www/js/zui3/zui.zentao.umd.cjs index e6f29ef0df..511ac0a516 100644 --- a/www/js/zui3/zui.zentao.umd.cjs +++ b/www/js/zui3/zui.zentao.umd.cjs @@ -1,3 +1,3 @@ var ra=(C,X,ct)=>{if(!X.has(C))throw TypeError("Cannot "+ct)};var I=(C,X,ct)=>(ra(C,X,"read from private field"),ct?ct.call(C):X.get(C)),H=(C,X,ct)=>{if(X.has(C))throw TypeError("Cannot add the same private member more than once");X instanceof WeakSet?X.add(C):X.set(C,ct)},B=(C,X,ct,Ti)=>(ra(C,X,"write to private field"),Ti?Ti.call(C,ct):X.set(C,ct),ct);var ae=(C,X,ct)=>(ra(C,X,"access private method"),ct);(function(C,X){typeof exports=="object"&&typeof module<"u"?X(exports):typeof define=="function"&&define.amd?define(["exports"],X):(C=typeof globalThis<"u"?globalThis:C||self,X(C.zui={}))})(this,function(C){var Ut,On,Ce,Ye,St,Ke,Ze,xi,$e,Mt,ie,Hn,Bn,bi,zn,vi,Xe,Fn,Vn,Un,jn,qn,wi,gh,Ci,yh,Je,Gn,$i,_h,ki,bh,Yn,Qe,tn,Kn,Zn,Xn,en,oe,re;"use strict";const X="",ct="",Ti="",Zf="",Nt=document,Qn=window,la=Nt.documentElement,le=Nt.createElement.bind(Nt),ca=le("div"),Si=le("table"),vh=le("tbody"),ha=le("tr"),{isArray:ts,prototype:da}=Array,{concat:wh,filter:Mi,indexOf:ua,map:fa,push:Ch,slice:pa,some:Ei,splice:$h}=da,kh=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,xh=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,Th=/<.+>/,Sh=/^\w+$/;function Ni(n,t){const e=Mh(t);return!n||!e&&!ce(t)&&!J(t)?[]:!e&&xh.test(n)?t.getElementsByClassName(n.slice(1).replace(/\\/g,"")):!e&&Sh.test(n)?t.getElementsByTagName(n):t.querySelectorAll(n)}class es{constructor(t,e){if(!t)return;if(Pi(t))return t;let s=t;if(ot(t)){const i=e||Nt;if(s=kh.test(t)&&ce(i)?i.getElementById(t.slice(1).replace(/\\/g,"")):Th.test(t)?va(t):Pi(i)?i.find(t):ot(i)?u(i).find(t):Ni(t,i),!s)return}else if(he(t))return this.ready(t);(s.nodeType||s===Qn)&&(s=[s]),this.length=s.length;for(let i=0,o=this.length;i{for(;t.firstChild;)t.removeChild(t.firstChild)})};function ns(...n){const t=Nh(n[0])?n.shift():!1,e=n.shift(),s=n.length;if(!e)return{};if(!s)return ns(t,u,e);for(let i=0;i{J(o)&&nt(e,(r,a)=>{s?t?o.classList.add(a):o.classList.remove(a):o.classList.toggle(a)})})},S.addClass=function(n){return this.toggleClass(n,!0)},S.removeAttr=function(n){const t=ss(n);return this.each((e,s)=>{J(s)&&nt(t,(i,o)=>{s.removeAttribute(o)})})};function Dh(n,t){if(n){if(ot(n)){if(arguments.length<2){if(!this[0]||!J(this[0]))return;const e=this[0].getAttribute(n);return nn(e)?void 0:e}return ht(t)?this:nn(t)?this.removeAttr(n):this.each((e,s)=>{J(s)&&s.setAttribute(n,t)})}for(const e in n)this.attr(e,n[e]);return this}}S.attr=Dh,S.removeClass=function(n){return arguments.length?this.toggleClass(n,!1):this.attr("class","")},S.hasClass=function(n){return!!n&&Ei.call(this,t=>J(t)&&t.classList.contains(n))},S.get=function(n){return ht(n)?pa.call(this):(n=Number(n),this[n<0?n+this.length:n])},S.eq=function(n){return u(this.get(n))},S.first=function(){return this.eq(0)},S.last=function(){return this.eq(-1)};function Ah(n){return ht(n)?this.get().map(t=>J(t)||Eh(t)?t.textContent:"").join(""):this.each((t,e)=>{J(e)&&(e.textContent=n)})}S.text=Ah;function Pt(n,t,e){if(!J(n))return;const s=Qn.getComputedStyle(n,null);return e?s.getPropertyValue(t)||void 0:s[t]||n.style[t]}function wt(n,t){return parseInt(Pt(n,t),10)||0}function ga(n,t){return wt(n,`border${t?"Left":"Top"}Width`)+wt(n,`padding${t?"Left":"Top"}`)+wt(n,`padding${t?"Right":"Bottom"}`)+wt(n,`border${t?"Right":"Bottom"}Width`)}const Ai={};function Ih(n){if(Ai[n])return Ai[n];const t=le(n);Nt.body.insertBefore(t,null);const e=Pt(t,"display");return Nt.body.removeChild(t),Ai[n]=e!=="none"?e:"block"}function ya(n){return Pt(n,"display")==="none"}function _a(n,t){const e=n&&(n.matches||n.webkitMatchesSelector||n.msMatchesSelector);return!!e&&!!t&&e.call(n,t)}function is(n){return ot(n)?(t,e)=>_a(e,n):he(n)?n:Pi(n)?(t,e)=>n.is(e):n?(t,e)=>e===n:()=>!1}S.filter=function(n){const t=is(n);return u(Mi.call(this,(e,s)=>t.call(e,s,e)))};function jt(n,t){return t?n.filter(t):n}S.detach=function(n){return jt(this,n).each((t,e)=>{e.parentNode&&e.parentNode.removeChild(e)}),this};const Rh=/^\s*<(\w+)[^>]*>/,Lh=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ba={"*":ca,tr:vh,td:ha,th:ha,thead:Si,tbody:Si,tfoot:Si};function va(n){if(!ot(n))return[];if(Lh.test(n))return[le(RegExp.$1)];const t=Rh.test(n)&&RegExp.$1,e=ba[t]||ba["*"];return e.innerHTML=n,u(e.childNodes).detach().get()}u.parseHTML=va,S.has=function(n){const t=ot(n)?(e,s)=>Ni(n,s).length:(e,s)=>s.contains(n);return this.filter(t)},S.not=function(n){const t=is(n);return this.filter((e,s)=>(!ot(n)||J(s))&&!t.call(s,e,s))};function Dt(n,t,e,s){const i=[],o=he(t),r=s&&is(s);for(let a=0,l=n.length;at.selected&&!t.disabled&&!t.parentNode.disabled),"value"):n.value||""}function Wh(n){return arguments.length?this.each((t,e)=>{const s=e.multiple&&e.options;if(s||Da.test(e.type)){const i=ts(n)?fa.call(n,String):nn(n)?[]:[String(n)];s?nt(e.options,(o,r)=>{r.selected=i.indexOf(r.value)>=0},!0):e.checked=i.indexOf(e.value)>=0}else e.value=ht(n)||nn(n)?"":n}):this[0]&&wa(this[0])}S.val=Wh,S.is=function(n){const t=is(n);return Ei.call(this,(e,s)=>t.call(e,s,e))},u.guid=1;function Ct(n){return n.length>1?Mi.call(n,(t,e,s)=>ua.call(s,t)===e):n}u.unique=Ct,S.add=function(n,t){return u(Ct(this.get().concat(u(n,t).get())))},S.children=function(n){return jt(u(Ct(Dt(this,t=>t.children))),n)},S.parent=function(n){return jt(u(Ct(Dt(this,"parentNode"))),n)},S.index=function(n){const t=n?u(n)[0]:this[0],e=n?this:u(t).parent().children();return ua.call(e,t)},S.closest=function(n){const t=this.filter(n);if(t.length)return t;const e=this.parent();return e.length?e.closest(n):t},S.siblings=function(n){return jt(u(Ct(Dt(this,t=>u(t).parent().children().not(t)))),n)},S.find=function(n){return u(Ct(Dt(this,t=>Ni(n,t))))};const Oh=/^\s*\s*$/g,Hh=/^$|^module$|\/(java|ecma)script/i,Bh=["type","src","nonce","noModule"];function zh(n,t){const e=u(n);e.filter("script").add(e.find("script")).each((s,i)=>{if(Hh.test(i.type)&&la.contains(i)){const o=le("script");o.text=i.textContent.replace(Oh,""),nt(Bh,(r,a)=>{i[a]&&(o[a]=i[a])}),t.head.insertBefore(o,null),t.head.removeChild(o)}})}function Fh(n,t,e,s,i){s?n.insertBefore(t,e?n.firstChild:null):n.nodeName==="HTML"?n.parentNode.replaceChild(t,n):n.parentNode.insertBefore(t,e?n:n.nextSibling),i&&zh(t,n.ownerDocument)}function qt(n,t,e,s,i,o,r,a){return nt(n,(l,c)=>{nt(u(c),(d,h)=>{nt(u(t),(p,f)=>{const m=e?h:f,y=e?f:h,v=e?d:p;Fh(m,v?y.cloneNode(!0):y,s,i,!v)},a)},r)},o),t}S.after=function(){return qt(arguments,this,!1,!1,!1,!0,!0)},S.append=function(){return qt(arguments,this,!1,!1,!0)};function Vh(n){if(!arguments.length)return this[0]&&this[0].innerHTML;if(ht(n))return this;const t=/]/.test(n);return this.each((e,s)=>{J(s)&&(t?u(s).empty().append(n):s.innerHTML=n)})}S.html=Vh,S.appendTo=function(n){return qt(arguments,this,!0,!1,!0)},S.wrapInner=function(n){return this.each((t,e)=>{const s=u(e),i=s.contents();i.length?i.wrapAll(n):s.append(n)})},S.before=function(){return qt(arguments,this,!1,!0)},S.wrapAll=function(n){let t=u(n),e=t[0];for(;e.children.length;)e=e.firstElementChild;return this.first().before(t),this.appendTo(e)},S.wrap=function(n){return this.each((t,e)=>{const s=u(n)[0];u(e).wrapAll(t?s.cloneNode(!0):s)})},S.insertAfter=function(n){return qt(arguments,this,!0,!1,!1,!1,!1,!0)},S.insertBefore=function(n){return qt(arguments,this,!0,!0)},S.prepend=function(){return qt(arguments,this,!1,!0,!0,!0,!0)},S.prependTo=function(n){return qt(arguments,this,!0,!0,!0,!1,!1,!0)},S.contents=function(){return u(Ct(Dt(this,n=>n.tagName==="IFRAME"?[n.contentDocument]:n.tagName==="TEMPLATE"?n.content.childNodes:n.childNodes)))},S.next=function(n,t,e){return jt(u(Ct(Dt(this,"nextElementSibling",t,e))),n)},S.nextAll=function(n){return this.next(n,!0)},S.nextUntil=function(n,t){return this.next(t,!0,n)},S.parents=function(n,t){return jt(u(Ct(Dt(this,"parentElement",!0,t))),n)},S.parentsUntil=function(n,t){return this.parents(t,n)},S.prev=function(n,t,e){return jt(u(Ct(Dt(this,"previousElementSibling",t,e))),n)},S.prevAll=function(n){return this.prev(n,!0)},S.prevUntil=function(n,t){return this.prev(t,!0,n)},S.map=function(n){return u(wh.apply([],fa.call(this,(t,e)=>n.call(t,e,t))))},S.clone=function(){return this.map((n,t)=>t.cloneNode(!0))},S.offsetParent=function(){return this.map((n,t)=>{let e=t.offsetParent;for(;e&&Pt(e,"position")==="static";)e=e.offsetParent;return e||la})},S.slice=function(n,t){return u(pa.call(this,n,t))};const Uh=/-([a-z])/g;function Ii(n){return n.replace(Uh,(t,e)=>e.toUpperCase())}S.ready=function(n){const t=()=>setTimeout(n,0,u);return Nt.readyState!=="loading"?t():Nt.addEventListener("DOMContentLoaded",t),this},S.unwrap=function(){return this.parent().each((n,t)=>{if(t.tagName==="BODY")return;const e=u(t);e.replaceWith(e.children())}),this},S.offset=function(){const n=this[0];if(!n)return;const t=n.getBoundingClientRect();return{top:t.top+Qn.pageYOffset,left:t.left+Qn.pageXOffset}},S.position=function(){const n=this[0];if(!n)return;const t=Pt(n,"position")==="fixed",e=t?n.getBoundingClientRect():this.offset();if(!t){const s=n.ownerDocument;let i=n.offsetParent||s.documentElement;for(;(i===s.body||i===s.documentElement)&&Pt(i,"position")==="static";)i=i.parentNode;if(i!==n&&J(i)){const o=u(i).offset();e.top-=o.top+wt(i,"borderTopWidth"),e.left-=o.left+wt(i,"borderLeftWidth")}}return{top:e.top-wt(n,"marginTop"),left:e.left-wt(n,"marginLeft")}};const Ca={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};S.prop=function(n,t){if(n){if(ot(n))return n=Ca[n]||n,arguments.length<2?this[0]&&this[0][n]:this.each((e,s)=>{s[n]=t});for(const e in n)this.prop(e,n[e]);return this}},S.removeProp=function(n){return this.each((t,e)=>{delete e[Ca[n]||n]})};const jh=/^--/;function Ri(n){return jh.test(n)}const Li={},{style:qh}=ca,Gh=["webkit","moz","ms"];function Yh(n,t=Ri(n)){if(t)return n;if(!Li[n]){const e=Ii(n),s=`${e[0].toUpperCase()}${e.slice(1)}`,i=`${e} ${Gh.join(`${s} `)}${s}`.split(" ");nt(i,(o,r)=>{if(r in qh)return Li[n]=r,!1})}return Li[n]}const Kh={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 $a(n,t,e=Ri(n)){return!e&&!Kh[n]&&ma(t)?`${t}px`:t}function Zh(n,t){if(ot(n)){const e=Ri(n);return n=Yh(n,e),arguments.length<2?this[0]&&Pt(this[0],n,e):n?(t=$a(n,t,e),this.each((s,i)=>{J(i)&&(e?i.style.setProperty(n,t):i.style[n]=t)})):this}for(const e in n)this.css(e,n[e]);return this}S.css=Zh;function ka(n,t){try{return n(t)}catch{return t}}const Xh=/^\s+|\s+$/;function xa(n,t){const e=n.dataset[t]||n.dataset[Ii(t)];return Xh.test(e)?e:ka(JSON.parse,e)}function Jh(n,t,e){e=ka(JSON.stringify,e),n.dataset[Ii(t)]=e}function Qh(n,t){if(!n){if(!this[0])return;const e={};for(const s in this[0].dataset)e[s]=xa(this[0],s);return e}if(ot(n))return arguments.length<2?this[0]&&xa(this[0],n):ht(t)?this:this.each((e,s)=>{Jh(s,n,t)});for(const e in n)this.data(e,n[e]);return this}S.data=Qh;function Ta(n,t){const e=n.documentElement;return Math.max(n.body[`scroll${t}`],e[`scroll${t}`],n.body[`offset${t}`],e[`offset${t}`],e[`client${t}`])}nt([!0,!1],(n,t)=>{nt(["Width","Height"],(e,s)=>{const i=`${t?"outer":"inner"}${s}`;S[i]=function(o){if(this[0])return xe(this[0])?t?this[0][`inner${s}`]:this[0].document.documentElement[`client${s}`]:ce(this[0])?Ta(this[0],s):this[0][`${t?"offset":"client"}${s}`]+(o&&t?wt(this[0],`margin${e?"Top":"Left"}`)+wt(this[0],`margin${e?"Bottom":"Right"}`):0)}})}),nt(["Width","Height"],(n,t)=>{const e=t.toLowerCase();S[e]=function(s){if(!this[0])return ht(s)?void 0:this;if(!arguments.length)return xe(this[0])?this[0].document.documentElement[`client${t}`]:ce(this[0])?Ta(this[0],t):this[0].getBoundingClientRect()[e]-ga(this[0],!n);const i=parseInt(s,10);return this.each((o,r)=>{if(!J(r))return;const a=Pt(r,"boxSizing");r.style[e]=$a(e,i+(a==="border-box"?ga(r,!n):0))})}});const Sa="___cd";S.toggle=function(n){return this.each((t,e)=>{if(!J(e))return;const s=ya(e);(ht(n)?s:n)?(e.style.display=e[Sa]||"",ya(e)&&(e.style.display=Ih(e.tagName))):s||(e[Sa]=Pt(e,"display"),e.style.display="none")})},S.hide=function(){return this.toggle(!1)},S.show=function(){return this.toggle(!0)};const Ma="___ce",Wi=".",Oi={focus:"focusin",blur:"focusout"},Ea={mouseenter:"mouseover",mouseleave:"mouseout"},td=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function Hi(n){return Ea[n]||Oi[n]||n}function Bi(n){const t=n.split(Wi);return[t[0],t.slice(1).sort()]}S.trigger=function(n,t){if(ot(n)){const[s,i]=Bi(n),o=Hi(s);if(!o)return this;const r=td.test(o)?"MouseEvents":"HTMLEvents";n=Nt.createEvent(r),n.initEvent(o,!0,!0),n.namespace=i.join(Wi),n.___ot=s}n.___td=t;const e=n.___ot in Oi;return this.each((s,i)=>{e&&he(i[n.___ot])&&(i[`___i${n.type}`]=!0,i[n.___ot](),i[`___i${n.type}`]=!1),i.dispatchEvent(n)})};function Na(n){return n[Ma]=n[Ma]||{}}function ed(n,t,e,s,i){const o=Na(n);o[t]=o[t]||[],o[t].push([e,s,i]),n.addEventListener(t,i)}function Pa(n,t){return!t||!Ei.call(t,e=>n.indexOf(e)<0)}function os(n,t,e,s,i){const o=Na(n);if(t)o[t]&&(o[t]=o[t].filter(([r,a,l])=>{if(i&&l.guid!==i.guid||!Pa(r,e)||s&&s!==a)return!0;n.removeEventListener(t,l)}));else for(t in o)os(n,t,e,s,i)}S.off=function(n,t,e){if(ht(n))this.each((s,i)=>{!J(i)&&!ce(i)&&!xe(i)||os(i)});else if(ot(n))he(t)&&(e=t,t=""),nt(ss(n),(s,i)=>{const[o,r]=Bi(i),a=Hi(o);this.each((l,c)=>{!J(c)&&!ce(c)&&!xe(c)||os(c,a,r,t,e)})});else for(const s in n)this.off(s,n[s]);return this},S.remove=function(n){return jt(this,n).detach().off(),this},S.replaceWith=function(n){return this.before(n).remove()},S.replaceAll=function(n){return u(n).replaceWith(this),this};function nd(n,t,e,s,i){if(!ot(n)){for(const o in n)this.on(o,t,e,n[o],i);return this}return ot(t)||(ht(t)||nn(t)?t="":ht(e)?(e=t,t=""):(s=e,e=t,t="")),he(s)||(s=e,e=void 0),s?(nt(ss(n),(o,r)=>{const[a,l]=Bi(r),c=Hi(a),d=a in Ea,h=a in Oi;c&&this.each((p,f)=>{if(!J(f)&&!ce(f)&&!xe(f))return;const m=function(y){if(y.target[`___i${y.type}`])return y.stopImmediatePropagation();if(y.namespace&&!Pa(l,y.namespace.split(Wi))||!t&&(h&&(y.target!==f||y.___ot===c)||d&&y.relatedTarget&&f.contains(y.relatedTarget)))return;let v=f;if(t){let w=y.target;for(;!_a(w,t);)if(w===f||(w=w.parentNode,!w))return;v=w}Object.defineProperty(y,"currentTarget",{configurable:!0,get(){return v}}),Object.defineProperty(y,"delegateTarget",{configurable:!0,get(){return f}}),Object.defineProperty(y,"data",{configurable:!0,get(){return e}});const _=s.call(v,y,y.___td);i&&os(f,c,l,t,m),_===!1&&(y.preventDefault(),y.stopPropagation())};m.guid=s.guid=s.guid||u.guid++,ed(f,c,l,t,m)})}),this):this}S.on=nd;function sd(n,t,e,s){return this.on(n,t,e,s,!0)}S.one=sd;const id=/\r?\n/g;function od(n,t){return`&${encodeURIComponent(n)}=${encodeURIComponent(t.replace(id,`\r `))}`}const rd=/file|reset|submit|button|image/i,Da=/radio|checkbox/i;S.serialize=function(){let n="";return this.each((t,e)=>{nt(e.elements||[e],(s,i)=>{if(i.disabled||!i.name||i.tagName==="FIELDSET"||rd.test(i.type)||Da.test(i.type)&&!i.checked)return;const o=wa(i);if(!ht(o)){const r=ts(o)?o:[o];nt(r,(a,l)=>{n+=od(i.name,l)})}})}),n.slice(1)},window.$=u;function Aa(n,t){if(n==null)return[n,void 0];typeof t=="string"&&(t=t.split("."));const e=t.join(".");let s=n;const i=[s];for(;typeof s=="object"&&s!==null&&t.length;){let o=t.shift(),r;const a=o.indexOf("[");if(a>0&&a{const i=e[s]??"";n=n.replace(new RegExp(`\\{${s}\\}`,"g"),`${i}`)}),n}for(let e=0;e(n[n.B=1]="B",n[n.KB=1024]="KB",n[n.MB=1048576]="MB",n[n.GB=1073741824]="GB",n[n.TB=1099511627776]="TB",n))(zi||{});function sn(n,t=2,e){return Number.isNaN(n)?"?KB":(e||(n<1024?e="B":n<1048576?e="KB":n<1073741824?e="MB":n<1099511627776?e="GB":e="TB"),(n/zi[e]).toFixed(t)+e)}const Ra=n=>{const t=/^[0-9]*(B|KB|MB|GB|TB)$/;n=n.toUpperCase();const e=n.match(t);if(!e)return 0;const s=e[1];return n=n.replace(s,""),Number.parseInt(n,10)*zi[s]};let Fi=(document.documentElement.getAttribute("lang")||"zh_cn").toLowerCase().replace("-","_"),Gt;function ad(){return Fi}function ld(n){Fi=n.toLowerCase()}function La(n,t){Gt||(Gt={}),typeof n=="string"&&(n={[n]:t??{}}),u.extend(!0,Gt,n)}function Q(n,t,e,s,i,o){Array.isArray(n)?Gt&&n.unshift(Gt):n=Gt?[Gt,n]:[n],typeof e=="string"&&(o=i,i=s,s=e,e=void 0);const r=i||Fi;let a;for(const l of n){if(!l)continue;const c=l[r];if(!c)continue;const d=o&&l===Gt?`${o}.${t}`:t;if(a=Ia(c,d),a!==void 0)break}return a===void 0?s:e?U(a,...Array.isArray(e)?e:[e]):a}function cd(n,t,e,s){return Q(void 0,n,t,e,s)}Q.addLang=La,Q.getLang=cd,Q.getCode=ad,Q.setCode=ld,La({zh_cn:{confirm:"确定",cancel:"取消",delete:"删除",add:"添加"},zh_tw:{confirm:"確定",cancel:"取消",delete:"刪除",add:"添加"},en:{confirm:"Confirm",cancel:"Cancel",delete:"Delete",add:"Add"}});function Wa(n,t,e){n instanceof Headers?n.set(t,e):Array.isArray(n)?n.push([t,e]):n[t]=e}function Oa(n,t,e){e!=null&&(Array.isArray(e)?e.forEach(s=>Oa(n,t,s)):n.append(t,e instanceof Blob?e:String(e)))}function hd(n,t){if(n){const e={text:"text/plain",html:"text/html",json:"application/json",...t};for(const[s,i]of Object.entries(e))if(i.split(",").map(o=>o.trim()).includes(n))return s}return"text"}class Vi{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(s=>t(s)),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:s,processData:i=!0,contentType:o,crossDomain:r,accepts:a,dataType:l,timeout:c,dataFilter:d,beforeSend:h,success:p,error:f,complete:m,...y}=this.setting;if((h==null?void 0:h(y))===!1)return;e&&(y.method=e);let v=s;v&&(i&&(u.isPlainObject(v)&&(v=Object.entries(v)),Array.isArray(v)&&(v=v.reduce((w,[$,x])=>(Oa(w,$,x),w),new FormData))),y.body=v),r&&(y.mode="cors");const _=y.headers||{};Wa(_,"X-Requested-With","XMLHttpRequest"),o&&Wa(_,"Content-Type",o),y.headers=_,y.signal&&y.signal.addEventListener("abort",()=>{this.abort()}),p&&this.success(p),f&&this.fail(f),m&&this.complete(m),y.signal=this._controller.signal,this.url=t,this.request=y}_emit(t,...e){this._callbacks[t].forEach(s=>{s(...e)})}async send(){if(this.completed)return[];this._init();const{timeout:t,dataType:e,accepts:s,dataFilter:i}=this.setting;t&&(this._timeoutID=window.setTimeout(()=>{this.abort(new Error("timeout"))},t));let o,r,a;try{o=await fetch(this.url,this.request),this.response=o;const{statusText:l}=o;if(o.ok){const c=e||hd(o.headers.get("Content-Type"),s);c==="blob"||c==="file"?a=await o.blob():c==="json"?a=await o.json():a=await o.text(),this.data=a;const d=(i==null?void 0:i(a,c))??a;this._emit("success",d,l,o)}else throw new Error(l)}catch(l){r=l;let c=!1;r.name==="AbortError"&&(this._abortError?r=this._abortError:c=!0),this.error=r,c||this._emit("error",r,o==null?void 0:o.statusText,r.message)}return this._timeoutID&&clearTimeout(this._timeoutID),this._emit("complete",o,o==null?void 0:o.statusText),[a,r,o]}}u.ajax=(n,t)=>{t=t||{},typeof n=="string"?t.url=n:u.extend(t,n);const e=new Vi(t);return e.send(),e},u.getJSON=(n,t,e)=>(typeof t=="function"&&(e=t,t=void 0),u.ajax({url:n,data:t,success:e,dataType:"json"})),u.get=(n,t,e,s,i="GET")=>{let o,r;return typeof t=="function"?(o=t,r=void 0):r=t,typeof e=="function"?(o=e,s=void 0):s=e,u.ajax({method:i,url:n,data:r,success:o,dataType:s})},u.post=(n,t,e,s)=>u.get(n,t,e,s,"POST"),u.fn.load=function(n,t,e){typeof t=="function"&&(e=t,t=void 0);const[s,i]=n.split(" ");return u.get(s,t,(o,r,a)=>{i&&(o=u(o).find(i).html()),u(this).html(o),e==null||e.call(this,o,r,a)},"html"),this};function Ui(...n){const t=[],e=new Map,s=(i,o)=>{if(Array.isArray(i)&&(o=i[1],i=i[0]),!i.length)return;const r=e.get(i);typeof r=="number"?t[r][1]=!!o:(e.set(i,t.length),t.push([i,!!o]))};return n.forEach(i=>{typeof i=="function"&&(i=i()),Array.isArray(i)?Ui(...i).forEach(s):i&&typeof i=="object"?Object.entries(i).forEach(s):typeof i=="string"&&i.split(" ").forEach(o=>s(o,!0))}),t.sort((i,o)=>(e.get(i[0])||0)-(e.get(o[0])||0))}const T=(...n)=>Ui(...n).reduce((t,[e,s])=>(s&&t.push(e),t),[]).join(" ");u.classes=T,u.fn.setClass=function(n,...t){return this.each((e,s)=>{const i=u(s);n===!0?i.attr("class",T(i.attr("class"),...t)):i.addClass(T(n,...t))})};const on=new WeakMap;function ji(n,t,e){const s=on.has(n),i=s?on.get(n):{};typeof t=="string"?i[t]=e:t===null?Object.keys(i).forEach(o=>{delete i[o]}):Object.assign(i,t),Object.keys(i).forEach(o=>{i[o]===void 0&&delete i[o]}),Object.keys(i).length?(!s&&n instanceof Element&&Object.assign(i,u(n).dataset(),i),on.set(n,i)):on.delete(n)}function qi(n,t,e){let s=on.get(n)||{};return!e&&n instanceof Element&&(s=Object.assign({},u(n).dataset(),s)),t===void 0?s:s[t]}u.fn.dataset=u.fn.data,u.fn.data=function(...n){if(!this.length)return;const[t,e]=n;return!n.length||n.length===1&&typeof t=="string"?qi(this[0],t):this.each((s,i)=>ji(i,t,e))},u.fn.removeData=function(n=null){return this.each((t,e)=>ji(e,n))},u.fn._attr=u.fn.attr,u.fn.extend({attr(...n){const[t,e]=n;return!n.length||n.length===1&&typeof t=="string"?this._attr.apply(this,n):typeof t=="object"?(t&&Object.keys(t).forEach(s=>{const i=t[s];i===null?this.removeAttr(s):this._attr(s,i)}),this):e===null?this.removeAttr(t):this._attr(t,e)}}),u.Event=(n,t)=>{const[e,...s]=n.split("."),i=new Event(e,{bubbles:!0,cancelable:!0});return i.namespace=s.join("."),i.___ot=e,i.___td=t,i};const rn=(n,t)=>new Promise(e=>{const s=window.setTimeout(e,n);t&&t(s)}),Ha={};u.share=Ha;const Te=new Map;function an(n){const{zui:t}=window;return(!Te.size||n&&!Te.has(n.toUpperCase()))&&Object.keys(t).forEach(e=>{const s=t[e];!s.NAME||!s.ZUI||Te.set(e.toLowerCase(),s)}),n?Te.get(n.toLowerCase()):void 0}function Ba(n,t,e){const s=an(n);return s?!s.MULTI_INSTANCE&&s.get(t)?(console.error(`[ZUI] cannot create component "${n}" on element which already has a component instance.`,{element:t,options:e}),null):new s(t,e):null}function dd(n){if(n){const t=an(n);t&&t.defineFn()}else an(),Te.forEach(t=>{t.defineFn()})}u.fn.zuiInit=function(){return this.find("[data-zui]").each(function(){const n=u(this);let t=n.dataset();const[e,s]=t.zui.split(":");n.zui(e)||(s?t=u.share[s]:delete t.zui,requestAnimationFrame(()=>Ba(e,this,t)))}),this.find(".hide-before-init").removeClass("invisible hidden opacity-0"),this.find(".scroll-into-view").scrollIntoView(),this},u.fn.zui=function(n,t){const e=this[0];if(!e)return;if(typeof n!="string"){const i=qi(e,void 0,!0),o={};let r;return Object.keys(i).forEach(a=>{if(a.startsWith("zui.")){const l=i[a];o[a]=l,(!r||r.gid{u("body").zuiInit()});function za(n,t=!0){const e=u(n),s=e[0],i="zui-disable-scroll";if(t){if(e.data(i))return;const o=s===document.body?window.innerWidth-document.body.clientWidth:s.offsetWidth-s.clientWidth;if(!o)return;const r=e.css("paddingRight")||"0";e.data(i,{paddingRight:r,overflow:e.css("overflow")}).css({paddingRight:`${o+Number.parseInt(r,10)}px`,overflow:"hidden"})}else{const o=e.data(i);if(!o)return;e.css(o).removeData(i)}}u.fn.disableScroll=function(n=!0){return this.each((t,e)=>{za(e,n)})},u.fn.enableScroll=function(n=!0){return this.disableScroll(!n)};function Gi(n,t){const e=u(n)[0];if(!e)return!1;let{viewport:s}=t||{};const{left:i,top:o,width:r,height:a}=e.getBoundingClientRect();if(!s){const{innerHeight:m,innerWidth:y}=window,{clientHeight:v,clientWidth:_}=document.documentElement;s={left:0,top:0,width:y||_,height:m||v}}const{left:l,top:c,width:d,height:h}=s;if(t!=null&&t.fullyCheck)return i>=l&&o>=c&&i+r<=d&&o+a<=h;const p=i<=d&&i+r>=l;return o<=h&&o+a>=c&&p}u.fn.isVisible=function(n){return Gi(this,n)};function Yi(n,t,e=!1){const s=u(n);if(t!==void 0){if(t.length){const i=`zui-runjs-${u.guid++}`;s.append(`