From 0f59347dc09eb2da99a340be770be9a3fc673fd8 Mon Sep 17 00:00:00 2001 From: sunhao Date: Fri, 5 Jan 2024 16:58:04 +0800 Subject: [PATCH] * Update zui3 js. --- www/js/zui3/zui.zentao.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/zui3/zui.zentao.js b/www/js/zui3/zui.zentao.js index 9ad316fcbb..4ec29812ae 100644 --- a/www/js/zui3/zui.zentao.js +++ b/www/js/zui3/zui.zentao.js @@ -1,2 +1,2 @@ var So=(w,J,_t)=>{if(!J.has(w))throw TypeError("Cannot "+_t)};var yt=(w,J,_t)=>(So(w,J,"read from private field"),_t?_t.call(w):J.get(w)),$t=(w,J,_t)=>{if(J.has(w))throw TypeError("Cannot add the same private member more than once");J instanceof WeakSet?J.add(w):J.set(w,_t)},Mt=(w,J,_t,hi)=>(So(w,J,"write to private field"),hi?hi.call(w,_t):J.set(w,_t),_t);var To=(w,J,_t)=>(So(w,J,"access private method"),_t);(function(w,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(w=typeof globalThis<"u"?globalThis:w||self,J(w.zui={}))})(this,function(w){var oi,ai,As,Ds,Ls,Rs,Ws,Os,li,Lc,ci,Rc,pe,me;"use strict";const J="",_t="",hi="",Sf="",Tf="",Nf="",Mf="",Ef="",If="",Pf="",Af="",Df="",Bt=document,Hs=window,No=Bt.documentElement,ge=Bt.createElement.bind(Bt),Mo=ge("div"),di=ge("table"),Wc=ge("tbody"),Eo=ge("tr"),{isArray:zs,prototype:Io}=Array,{concat:Oc,filter:ui,indexOf:Po,map:Ao,push:Hc,slice:Do,some:fi,splice:zc}=Io,Fc=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,Bc=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,jc=/<.+>/,Vc=/^\w+$/;function pi(n,t){const e=Uc(t);return!n||!e&&!ye(t)&&!st(t)?[]:!e&&Bc.test(n)?t.getElementsByClassName(n.slice(1).replace(/\\/g,"")):!e&&Vc.test(n)?t.getElementsByTagName(n):t.querySelectorAll(n)}class Fs{constructor(t,e){if(!t)return;if(mi(t))return t;let s=t;if(lt(t)){const i=e||Bt;if(s=Fc.test(t)&&ye(i)?i.getElementById(t.slice(1).replace(/\\/g,"")):jc.test(t)?zo(t):mi(i)?i.find(t):lt(i)?u(i).find(t):pi(t,i),!s)return}else if(_e(t))return this.ready(t);(s.nodeType||s===Hs)&&(s=[s]),this.length=s.length;for(let i=0,r=this.length;i{for(;t.firstChild;)t.removeChild(t.firstChild)})};function Bs(...n){const t=qc(n[0])?n.shift():!1,e=n.shift(),s=n.length;if(!e)return{};if(!s)return Bs(t,u,e);for(let i=0;i{st(r)&&ot(e,(o,a)=>{s?t?r.classList.add(a):r.classList.remove(a):r.classList.toggle(a)})})},N.addClass=function(n){return this.toggleClass(n,!0)},N.removeAttr=function(n){const t=js(n);return this.each((e,s)=>{st(s)&&ot(t,(i,r)=>{s.removeAttribute(r)})})};function Yc(n,t){if(n){if(lt(n)){if(arguments.length<2){if(!this[0]||!st(this[0]))return;const e=this[0].getAttribute(n);return ss(e)?void 0:e}return bt(t)?this:ss(t)?this.removeAttr(n):this.each((e,s)=>{st(s)&&s.setAttribute(n,t)})}for(const e in n)this.attr(e,n[e]);return this}}N.attr=Yc,N.removeClass=function(n){return arguments.length?this.toggleClass(n,!1):this.attr("class","")},N.hasClass=function(n){return!!n&&fi.call(this,t=>st(t)&&t.classList.contains(n))},N.get=function(n){return bt(n)?Do.call(this):(n=Number(n),this[n<0?n+this.length:n])},N.eq=function(n){return u(this.get(n))},N.first=function(){return this.eq(0)},N.last=function(){return this.eq(-1)};function Qc(n){return bt(n)?this.get().map(t=>st(t)||Kc(t)?t.textContent:"").join(""):this.each((t,e)=>{st(e)&&(e.textContent=n)})}N.text=Qc;function jt(n,t,e){if(!st(n))return;const s=Hs.getComputedStyle(n,null);return e?s.getPropertyValue(t)||void 0:s[t]||n.style[t]}function Wt(n,t){return parseInt(jt(n,t),10)||0}function Ro(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 yi={};function Zc(n){if(yi[n])return yi[n];const t=ge(n);Bt.body.insertBefore(t,null);const e=jt(t,"display");return Bt.body.removeChild(t),yi[n]=e!=="none"?e:"block"}function Wo(n){return jt(n,"display")==="none"}function Oo(n,t){const e=n&&(n.matches||n.webkitMatchesSelector||n.msMatchesSelector);return!!e&&!!t&&e.call(n,t)}function Vs(n){return lt(n)?(t,e)=>Oo(e,n):_e(n)?n:mi(n)?(t,e)=>n.is(e):n?(t,e)=>e===n:()=>!1}N.filter=function(n){const t=Vs(n);return u(ui.call(this,(e,s)=>t.call(e,s,e)))};function Jt(n,t){return t?n.filter(t):n}N.detach=function(n){return Jt(this,n).each((t,e)=>{e.parentNode&&e.parentNode.removeChild(e)}),this};const Xc=/^\s*<(\w+)[^>]*>/,Jc=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Ho={"*":Mo,tr:Wc,td:Eo,th:Eo,thead:di,tbody:di,tfoot:di};function zo(n){if(!lt(n))return[];if(Jc.test(n))return[ge(RegExp.$1)];const t=Xc.test(n)&&RegExp.$1,e=Ho[t]||Ho["*"];return e.innerHTML=n,u(e.childNodes).detach().get()}u.parseHTML=zo,N.has=function(n){const t=lt(n)?(e,s)=>pi(n,s).length:(e,s)=>s.contains(n);return this.filter(t)},N.not=function(n){const t=Vs(n);return this.filter((e,s)=>(!lt(n)||st(s))&&!t.call(s,e,s))};function Vt(n,t,e,s){const i=[],r=_e(t),o=s&&Vs(s);for(let a=0,l=n.length;at.selected&&!t.disabled&&!t.parentNode.disabled),"value"):n.value||""}function th(n){return arguments.length?this.each((t,e)=>{const s=e.multiple&&e.options;if(s||Xo.test(e.type)){const i=zs(n)?Ao.call(n,String):ss(n)?[]:[String(n)];s?ot(e.options,(r,o)=>{o.selected=i.indexOf(o.value)>=0},!0):e.checked=i.indexOf(e.value)>=0}else e.value=bt(n)||ss(n)?"":n}):this[0]&&Fo(this[0])}N.val=th,N.is=function(n){const t=Vs(n);return fi.call(this,(e,s)=>t.call(e,s,e))},u.guid=1;function Ot(n){return n.length>1?ui.call(n,(t,e,s)=>Po.call(s,t)===e):n}u.unique=Ot,N.add=function(n,t){return u(Ot(this.get().concat(u(n,t).get())))},N.children=function(n){return Jt(u(Ot(Vt(this,t=>t.children))),n)},N.parent=function(n){return Jt(u(Ot(Vt(this,"parentNode"))),n)},N.index=function(n){const t=n?u(n)[0]:this[0],e=n?this:u(t).parent().children();return Po.call(e,t)},N.closest=function(n){const t=this.filter(n);if(t.length)return t;const e=this.parent();return e.length?e.closest(n):t},N.siblings=function(n){return Jt(u(Ot(Vt(this,t=>u(t).parent().children().not(t)))),n)},N.find=function(n){return u(Ot(Vt(this,t=>pi(n,t))))};const eh=/^\s*\s*$/g,sh=/^$|^module$|\/(java|ecma)script/i,nh=["type","src","nonce","noModule"];function ih(n,t){const e=u(n);e.filter("script").add(e.find("script")).each((s,i)=>{if(sh.test(i.type)&&No.contains(i)){const r=ge("script");r.text=i.textContent.replace(eh,""),ot(nh,(o,a)=>{i[a]&&(r[a]=i[a])}),t.head.insertBefore(r,null),t.head.removeChild(r)}})}function rh(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&&ih(t,n.ownerDocument)}function te(n,t,e,s,i,r,o,a){return ot(n,(l,c)=>{ot(u(c),(h,d)=>{ot(u(t),(p,f)=>{const m=e?d:f,y=e?f:d,b=e?h:p;rh(m,b?y.cloneNode(!0):y,s,i,!b)},a)},o)},r),t}N.after=function(){return te(arguments,this,!1,!1,!1,!0,!0)},N.append=function(){return te(arguments,this,!1,!1,!0)};function oh(n){if(!arguments.length)return this[0]&&this[0].innerHTML;if(bt(n))return this;const t=/]/.test(n);return this.each((e,s)=>{st(s)&&(t?u(s).empty().append(n):s.innerHTML=n)})}N.html=oh,N.appendTo=function(n){return te(arguments,this,!0,!1,!0)},N.wrapInner=function(n){return this.each((t,e)=>{const s=u(e),i=s.contents();i.length?i.wrapAll(n):s.append(n)})},N.before=function(){return te(arguments,this,!1,!0)},N.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)},N.wrap=function(n){return this.each((t,e)=>{const s=u(n)[0];u(e).wrapAll(t?s.cloneNode(!0):s)})},N.insertAfter=function(n){return te(arguments,this,!0,!1,!1,!1,!1,!0)},N.insertBefore=function(n){return te(arguments,this,!0,!0)},N.prepend=function(){return te(arguments,this,!1,!0,!0,!0,!0)},N.prependTo=function(n){return te(arguments,this,!0,!0,!0,!1,!1,!0)},N.contents=function(){return u(Ot(Vt(this,n=>n.tagName==="IFRAME"?[n.contentDocument]:n.tagName==="TEMPLATE"?n.content.childNodes:n.childNodes)))},N.next=function(n,t,e){return Jt(u(Ot(Vt(this,"nextElementSibling",t,e))),n)},N.nextAll=function(n){return this.next(n,!0)},N.nextUntil=function(n,t){return this.next(t,!0,n)},N.parents=function(n,t){return Jt(u(Ot(Vt(this,"parentElement",!0,t))),n)},N.parentsUntil=function(n,t){return this.parents(t,n)},N.prev=function(n,t,e){return Jt(u(Ot(Vt(this,"previousElementSibling",t,e))),n)},N.prevAll=function(n){return this.prev(n,!0)},N.prevUntil=function(n,t){return this.prev(t,!0,n)},N.map=function(n){return u(Oc.apply([],Ao.call(this,(t,e)=>n.call(t,e,t))))},N.clone=function(){return this.map((n,t)=>t.cloneNode(!0))},N.offsetParent=function(){return this.map((n,t)=>{let e=t.offsetParent;for(;e&&jt(e,"position")==="static";)e=e.offsetParent;return e||No})},N.slice=function(n,t){return u(Do.call(this,n,t))};const ah=/-([a-z])/g;function _i(n){return n.replace(ah,(t,e)=>e.toUpperCase())}N.ready=function(n){const t=()=>setTimeout(n,0,u);return Bt.readyState!=="loading"?t():Bt.addEventListener("DOMContentLoaded",t),this},N.unwrap=function(){return this.parent().each((n,t)=>{if(t.tagName==="BODY")return;const e=u(t);e.replaceWith(e.children())}),this},N.offset=function(){const n=this[0];if(!n)return;const t=n.getBoundingClientRect();return{top:t.top+Hs.pageYOffset,left:t.left+Hs.pageXOffset}},N.position=function(){const n=this[0];if(!n)return;const t=jt(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)&&jt(i,"position")==="static";)i=i.parentNode;if(i!==n&&st(i)){const r=u(i).offset();e.top-=r.top+Wt(i,"borderTopWidth"),e.left-=r.left+Wt(i,"borderLeftWidth")}}return{top:e.top-Wt(n,"marginTop"),left:e.left-Wt(n,"marginLeft")}};const Bo={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};N.prop=function(n,t){if(n){if(lt(n))return n=Bo[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}},N.removeProp=function(n){return this.each((t,e)=>{delete e[Bo[n]||n]})};const lh=/^--/;function bi(n){return lh.test(n)}const vi={},{style:ch}=Mo,hh=["webkit","moz","ms"];function dh(n,t=bi(n)){if(t)return n;if(!vi[n]){const e=_i(n),s=`${e[0].toUpperCase()}${e.slice(1)}`,i=`${e} ${hh.join(`${s} `)}${s}`.split(" ");ot(i,(r,o)=>{if(o in ch)return vi[n]=o,!1})}return vi[n]}const uh={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 jo(n,t,e=bi(n)){return!e&&!uh[n]&&Lo(t)?`${t}px`:t}function fh(n,t){if(lt(n)){const e=bi(n);return n=dh(n,e),arguments.length<2?this[0]&&jt(this[0],n,e):n?(t=jo(n,t,e),this.each((s,i)=>{st(i)&&(e?i.style.setProperty(n,t):i.style[n]=t)})):this}for(const e in n)this.css(e,n[e]);return this}N.css=fh;function Vo(n,t){try{return n(t)}catch{return t}}const ph=/^\s+|\s+$/;function Uo(n,t){const e=n.dataset[t]||n.dataset[_i(t)];return ph.test(e)?e:Vo(JSON.parse,e)}function mh(n,t,e){e=Vo(JSON.stringify,e),n.dataset[_i(t)]=e}function gh(n,t){if(!n){if(!this[0])return;const e={};for(const s in this[0].dataset)e[s]=Uo(this[0],s);return e}if(lt(n))return arguments.length<2?this[0]&&Uo(this[0],n):bt(t)?this:this.each((e,s)=>{mh(s,n,t)});for(const e in n)this.data(e,n[e]);return this}N.data=gh;function Ko(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}`])}ot([!0,!1],(n,t)=>{ot(["Width","Height"],(e,s)=>{const i=`${t?"outer":"inner"}${s}`;N[i]=function(r){if(this[0])return Me(this[0])?t?this[0][`inner${s}`]:this[0].document.documentElement[`client${s}`]:ye(this[0])?Ko(this[0],s):this[0][`${t?"offset":"client"}${s}`]+(r&&t?Wt(this[0],`margin${e?"Top":"Left"}`)+Wt(this[0],`margin${e?"Bottom":"Right"}`):0)}})}),ot(["Width","Height"],(n,t)=>{const e=t.toLowerCase();N[e]=function(s){if(!this[0])return bt(s)?void 0:this;if(!arguments.length)return Me(this[0])?this[0].document.documentElement[`client${t}`]:ye(this[0])?Ko(this[0],t):this[0].getBoundingClientRect()[e]-Ro(this[0],!n);const i=parseInt(s,10);return this.each((r,o)=>{if(!st(o))return;const a=jt(o,"boxSizing");o.style[e]=jo(e,i+(a==="border-box"?Ro(o,!n):0))})}});const qo="___cd";N.toggle=function(n){return this.each((t,e)=>{if(!st(e))return;const s=Wo(e);(bt(n)?s:n)?(e.style.display=e[qo]||"",Wo(e)&&(e.style.display=Zc(e.tagName))):s||(e[qo]=jt(e,"display"),e.style.display="none")})},N.hide=function(){return this.toggle(!1)},N.show=function(){return this.toggle(!0)};const Go="___ce",wi=".",Ci={focus:"focusin",blur:"focusout"},Yo={mouseenter:"mouseover",mouseleave:"mouseout"},yh=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function ki(n){return Yo[n]||Ci[n]||n}function $i(n){const t=n.split(wi);return[t[0],t.slice(1).sort()]}N.trigger=function(n,t){if(lt(n)){const[s,i]=$i(n),r=ki(s);if(!r)return this;const o=yh.test(r)?"MouseEvents":"HTMLEvents";n=Bt.createEvent(o),n.initEvent(r,!0,!0),n.namespace=i.join(wi),n.___ot=s}n.___td=t;const e=n.___ot in Ci;return this.each((s,i)=>{e&&_e(i[n.___ot])&&(i[`___i${n.type}`]=!0,i[n.___ot](),i[`___i${n.type}`]=!1),i.dispatchEvent(n)})};function Qo(n){return n[Go]=n[Go]||{}}function _h(n,t,e,s,i){const r=Qo(n);r[t]=r[t]||[],r[t].push([e,s,i]),n.addEventListener(t,i)}function Zo(n,t){return!t||!fi.call(t,e=>n.indexOf(e)<0)}function Us(n,t,e,s,i){const r=Qo(n);if(t)r[t]&&(r[t]=r[t].filter(([o,a,l])=>{if(i&&l.guid!==i.guid||!Zo(o,e)||s&&s!==a)return!0;n.removeEventListener(t,l)}));else for(t in r)Us(n,t,e,s,i)}N.off=function(n,t,e){if(bt(n))this.each((s,i)=>{!st(i)&&!ye(i)&&!Me(i)||Us(i)});else if(lt(n))_e(t)&&(e=t,t=""),ot(js(n),(s,i)=>{const[r,o]=$i(i),a=ki(r);this.each((l,c)=>{!st(c)&&!ye(c)&&!Me(c)||Us(c,a,o,t,e)})});else for(const s in n)this.off(s,n[s]);return this},N.remove=function(n){return Jt(this,n).detach().off(),this},N.replaceWith=function(n){return this.before(n).remove()},N.replaceAll=function(n){return u(n).replaceWith(this),this};function bh(n,t,e,s,i){if(!lt(n)){for(const r in n)this.on(r,t,e,n[r],i);return this}return lt(t)||(bt(t)||ss(t)?t="":bt(e)?(e=t,t=""):(s=e,e=t,t="")),_e(s)||(s=e,e=void 0),s?(ot(js(n),(r,o)=>{const[a,l]=$i(o),c=ki(a),h=a in Yo,d=a in Ci;c&&this.each((p,f)=>{if(!st(f)&&!ye(f)&&!Me(f))return;const m=function(y){if(y.target[`___i${y.type}`])return y.stopImmediatePropagation();if(y.namespace&&!Zo(l,y.namespace.split(wi))||!t&&(d&&(y.target!==f||y.___ot===c)||h&&y.relatedTarget&&f.contains(y.relatedTarget)))return;let b=f;if(t){let C=y.target;for(;!Oo(C,t);)if(C===f||(C=C.parentNode,!C))return;b=C}Object.defineProperty(y,"currentTarget",{configurable:!0,get(){return b}}),Object.defineProperty(y,"delegateTarget",{configurable:!0,get(){return f}}),Object.defineProperty(y,"data",{configurable:!0,get(){return e}});const _=s.call(b,y,y.___td);i&&Us(f,c,l,t,m),_===!1&&(y.preventDefault(),y.stopPropagation())};m.guid=s.guid=s.guid||u.guid++,_h(f,c,l,t,m)})}),this):this}N.on=bh;function vh(n,t,e,s){return this.on(n,t,e,s,!0)}N.one=vh;const wh=/\r?\n/g;function Ch(n,t){return`&${encodeURIComponent(n)}=${encodeURIComponent(t.replace(wh,`\r -`))}`}const kh=/file|reset|submit|button|image/i,Xo=/radio|checkbox/i;N.serialize=function(){let n="";return this.each((t,e)=>{ot(e.elements||[e],(s,i)=>{if(i.disabled||!i.name||i.tagName==="FIELDSET"||kh.test(i.type)||Xo.test(i.type)&&!i.checked)return;const r=Fo(i);if(!bt(r)){const o=zs(r)?r:[r];ot(o,(a,l)=>{n+=Ch(i.name,l)})}})}),n.slice(1)},window.$=u;function Jo(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 r=t.shift(),o;const a=r.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))(xi||{});function ns(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/xi[e]).toFixed(t)+e)}const ea=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)*xi[s]};let Si=(document.documentElement.getAttribute("lang")||"zh_cn").toLowerCase().replace("-","_"),ee;function $h(){return Si}function xh(n){Si=n.toLowerCase()}function sa(n,t){ee||(ee={}),typeof n=="string"&&(n={[n]:t??{}}),u.extend(!0,ee,n)}function Z(n,t,e,s,i,r){Array.isArray(n)?ee&&n.unshift(ee):n=ee?[ee,n]:[n],typeof e=="string"&&(r=i,i=s,s=e,e=void 0);const o=i||Si;let a;for(const l of n){if(!l)continue;const c=l[o];if(!c)continue;const h=r&&l===ee?`${r}.${t}`:t;if(a=ta(c,h),a!==void 0)break}return a===void 0?s:e?q(a,...Array.isArray(e)?e:[e]):a}function Sh(n,t,e,s){return Z(void 0,n,t,e,s)}Z.addLang=sa,Z.getLang=Sh,Z.getCode=$h,Z.setCode=xh,sa({zh_cn:{confirm:"确定",cancel:"取消",delete:"删除",add:"添加"},zh_tw:{confirm:"確定",cancel:"取消",delete:"刪除",add:"添加"},en:{confirm:"Confirm",cancel:"Cancel",delete:"Delete",add:"Add"}});function na(n,t,e){n instanceof Headers?n.set(t,e):Array.isArray(n)?n.push([t,e]):n[t]=e}function is(n,t,e){e!=null&&(Array.isArray(e)?e.forEach(s=>is(n,t,s)):n.append(t,e instanceof Blob?e:String(e)))}function Th(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(r=>r.trim()).includes(n))return s}return"text"}function Ks(n,t){const e=t||new FormData;return n&&(typeof n=="string"&&(n=new URLSearchParams(n)),n instanceof URLSearchParams?n.forEach((s,i)=>{is(e,i,s)}):Array.isArray(n)?n.forEach(([s,i])=>{is(e,s,i)}):n instanceof FormData?n.forEach((s,i)=>{is(e,i,s)}):u.isPlainObject(n)&&Object.entries(n).forEach(([s,i])=>{is(e,s,i)})),e}class qs{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:r,crossDomain:o,accepts:a,dataType:l,timeout:c,dataFilter:h,beforeSend:d,success:p,error:f,complete:m,...y}=this.setting;if((d==null?void 0:d(y))===!1)return;e&&(y.method=e);let b=s;b&&(i&&(b=Ks(b)),y.body=b),o&&(y.mode="cors");const _=y.headers||{};na(_,"X-Requested-With","XMLHttpRequest"),r&&na(_,"Content-Type",r),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.call(this,...e)})}async send(){var c;if(this.completed)return[];this._init();const{timeout:t,dataType:e,accepts:s,dataFilter:i,throws:r}=this.setting;t&&(this._timeoutID=window.setTimeout(()=>{this.abort(new Error("timeout"))},t));let o,a,l;try{o=await fetch(this.url,this.request),this.response=o;const{statusText:h}=o;if(o.ok){const d=(c=o.headers.get("Content-Disposition"))==null?void 0:c.startsWith("attachment"),p=d?"blob":e||Th(o.headers.get("Content-Type"),s);d||p==="blob"||p==="file"?l=await o.blob():p==="json"?l=await o.json():l=await o.text(),this.data=l;const f=(i==null?void 0:i(l,p))??l;this._emit("success",f,h,o)}else throw new Error(h)}catch(h){a=h;let d=!1;a.name==="AbortError"&&(this._abortError?a=this._abortError:d=!0),this.error=a,d||this._emit("error",a,o==null?void 0:o.statusText,a.message)}if(this._timeoutID&&clearTimeout(this._timeoutID),this._emit("complete",o,o==null?void 0:o.statusText),a&&r)throw a;return[l,a,o]}}u.ajax=(n,t)=>{t=t||{},typeof n=="string"?t.url=n:u.extend(t,n);const e=new qs(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 r,o;return typeof t=="function"?(r=t,o=void 0):o=t,typeof e=="function"?(r=e,s=void 0):s=e,u.ajax({method:i,url:n,data:o,success:r,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,(r,o,a)=>{i&&(r=u(r).find(i).html()),u(this).html(r),e==null||e.call(this,r,o,a)},"html"),this};async function be(n,t=[],e){const s={throws:!0,dataType:"json"};if(typeof n=="string")s.url=n;else if(typeof n=="object")u.extend(s,n);else if(typeof n=="function"){const o=n(...t);return o instanceof Promise?await o:o}e&&u.extend(s,typeof e=="function"?e(s):e);const i=new qs(s),[r]=await i.send();return r}function Ti(n){return!!(n&&(typeof n=="string"||typeof n=="object"&&n.url||typeof n=="function"))}u.fetch=be;function Et(){return u.guid++}function Gs(n,t){if(n===t)return!1;if(n&&t&&typeof n=="object"&&typeof t=="object"){const e=Array.isArray(n),s=Array.isArray(t);if(e!==s)return!0;if(e&&s){if(n.length!==t.length)return!0;for(let o=0;oGs(s instanceof ve?s.value:s,e[i])))&&(this._value=this._compute(),this._lastDependencies=t.map(s=>s instanceof ve?s.cache:s)),this._value}}function Ni(...n){const t=[],e=new Map,s=(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 n.forEach(i=>{typeof i=="function"&&(i=i()),Array.isArray(i)?Ni(...i).forEach(s):i&&typeof i=="object"?Object.entries(i).forEach(s):typeof i=="string"&&i.split(" ").forEach(r=>s(r,!0))}),t.sort((i,r)=>(e.get(i[0])||0)-(e.get(r[0])||0))}const x=(...n)=>Ni(...n).reduce((t,[e,s])=>(s&&t.push(e),t),[]).join(" ");u.classes=x,u.fn.setClass=function(n,...t){return this.each((e,s)=>{const i=u(s);n===!0?i.attr("class",x(i.attr("class"),...t)):i.addClass(x(n,...t))})};const rs=new WeakMap;function Mi(n,t,e){const s=rs.has(n),i=s?rs.get(n):{};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?(!s&&n instanceof Element&&Object.assign(i,u(n).dataset(),i),rs.set(n,i)):rs.delete(n)}function Ei(n,t,e){let s=rs.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){const[t,e]=n;return!n.length||n.length===1&&typeof t=="string"?this.length?Ei(this[0],t):void 0:this.each((s,i)=>Mi(i,t,e))},u.fn.removeData=function(n=null){return this.each((t,e)=>Mi(e,n))};function Ys(n,t="z-"){const e=u(n)[0];if(e)return Array.from(e.attributes).reduce((s,i)=>{let{name:r,value:o}=i;if(r.startsWith(t)){r=r.slice(t.length).replace(/-([a-z])/g,a=>a[1].toUpperCase());try{o.startsWith("RAWJS<")&&o.endsWith(">RAWJS")?o=new Function(`return ${o.substring(6,o.length-6)}`)():o=JSON.parse(o)}catch{}s[r]=o}return s},{})}function Ii(n,t,e="z-"){const s=u(n);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()}`),s.attr(`${e}${i}`,r)})}function Nh(...n){var e;const t=n.length;if(!t)return Ys(this);if(t===1){const[s]=n;return typeof s=="string"?(e=Ys(this))==null?void 0:e[s]:(u.isPlainObject(s)&&Ii(this,s),this)}return Ii(this,{[n[0]]:n[1]}),this}u.fn.z=Nh,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 os=(n,t)=>new Promise(e=>{const s=window.setTimeout(e,n);t&&t(s)}),ia={};u.share=ia;var Qs,U,ra;w.isValidElement=void 0;var we,oa,aa,Pi,as={},la=[],Mh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zs=Array.isArray;function se(n,t){for(var e in t)n[e]=t[e];return n}function ca(n){var t=n.parentNode;t&&t.removeChild(n)}function v(n,t,e){var s,i,r,o={};for(r in t)r=="key"?s=t[r]:r=="ref"?i=t[r]:o[r]=t[r];if(arguments.length>2&&(o.children=arguments.length>3?Qs.call(arguments,2):e),typeof n=="function"&&n.defaultProps!=null)for(r in n.defaultProps)o[r]===void 0&&(o[r]=n.defaultProps[r]);return Xs(n,o,s,i,null)}function Xs(n,t,e,s,i){var r={type:n,props:t,key:e,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++ra,__i:-1,__u:0};return i==null&&U.vnode!=null&&U.vnode(r),r}function F(){return{current:null}}function ne(n){return n.children}function B(n,t){this.props=n,this.context=t}function Ee(n,t){if(t==null)return n.__?Ee(n.__,n.__i+1):null;for(var e;tt&&we.sort(Pi));Js.__r=0}function ua(n,t,e,s,i,r,o,a,l,c,h){var d,p,f,m,y,b=s&&s.__k||la,_=t.length;for(e.__d=l,Eh(e,t,b),l=e.__d,d=0;d<_;d++)(f=e.__k[d])!=null&&typeof f!="boolean"&&typeof f!="function"&&(p=f.__i===-1?as:b[f.__i]||as,f.__i=d,Ai(n,f,p,i,r,o,a,l,c,h),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Di(p.ref,null,f),h.push(f.ref,f.__c||m,f)),y==null&&m!=null&&(y=m),65536&f.__u||p.__k===f.__k?l=fa(f,l,n):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);e.__d=l,e.__e=y}function Eh(n,t,e){var s,i,r,o,a,l=t.length,c=e.length,h=c,d=0;for(n.__k=[],s=0;s0?Xs(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=n,i.__b=n.__b+1,a=Ih(i,e,o=s+d,h),i.__i=a,r=null,a!==-1&&(h--,(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?h>l-o?d+=a-o:d--: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(s=>{let i=e[s];const r=n[s];i!==r&&(r!==void 0&&(s==="className"||s.endsWith("Class")?i=[r,i]:s==="children"?i=[...tn(r),...tn(i)]:typeof r=="object"&&(s==="style"||s.endsWith("Style")||s==="attrs"||s.endsWith("Attrs")||s==="props")&&(i=u.extend(r,i))),n[s]=i)})}),n}function Ri(n){return Object.keys(n).forEach(t=>{n[t]===void 0&&delete n[t]}),n}const Pe=new Map;function ls(n){const{zui:t}=window;return(!Pe.size||n&&!Pe.has(n.toUpperCase()))&&Object.keys(t).forEach(e=>{const s=t[e];!s.NAME||!s.ZUI||Pe.set(e.toLowerCase(),s)}),n?Pe.get(n.toLowerCase()):void 0}function _a(n,t,e){const s=ls(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 Dh(n){if(n){const t=ls(n);t&&t.defineFn()}else ls(),Pe.forEach(t=>{t.defineFn()})}u.fn.zuiInit=function(){return this.find("[data-zui]").each(function(){const n=u(this);let t=Ys(n,"data-");const[e,s]=t.zui.split(":");n.zui(e)||(s?t=u.share[s]:delete t.zui,requestAnimationFrame(()=>_a(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=Ei(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.gid{u("body").zuiInit()});function ba(n,t=!0){const e=u(n),s=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=s===document.body?window.innerWidth-document.body.clientWidth:s.offsetWidth-s.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)}}u.fn.disableScroll=function(n=!0){return this.each((t,e)=>{ba(e,n)})},u.fn.enableScroll=function(n=!0){return this.disableScroll(!n)};function Lh(n){const t=u(this),e=t.dataset();if(!(e.on||"click").split(" ").includes(n.type))return;const s=e.selector?u(n.target).closest(e.selector):t;if(!s.length)return;const i=l=>l===""?!0:l,r=l=>{if(typeof l=="string")try{l=JSON.parse(l)}catch{}return l};if(i(e.once)){if(e.onceCalled)return;t.dataset("once-called",!0)}if(i(e.prevent)&&n.preventDefault(),i(e.stop)&&n.stopPropagation(),i(e.self)&&n.currentTarget!==n.target)return;const o=[["$element",t],["event",n],["options",e],["$target",s]];if(e.if&&!u.runJS(e.if,...o))return;const a=e.call;if(a){let l=window[a];const c=/^[$A-Z_][0-9A-Z_$.]*$/i.test(a);if(l||(l=u.runJS(a,...o)),!c||!u.isFunction(l))return;const h=[],d=e.params;e.params=h,typeof d=="string"&&d.length&&(d[0]==="["?h.push(...r(d)):h.push(...d.split(", ").map(p=>(p=p.trim(),p==="$element"?t:p==="event"?n:p==="options"?e:p.startsWith("$element.")||p.startsWith("$event.")||p.startsWith("$options.")?u.runJS(p,...o):r(p))))),l(...h)}e.do&&u.runJS(e.do,...o)}u(document).on("click.helpers.zt change.helpers.zt","[data-on]",Lh);function cs(n){if(typeof n=="number")return[n];let t=n.match(/(\d+)(%|px)?/);return t?[parseInt(t[1]),t[2]]:(t=n.match(/(\d+)\/(\d+)/),t?[100*parseInt(t[1])/parseInt(t[2]),"%"]:[NaN])}function ct(n){if(n==null)return null;const[t,e="px"]=cs(n);return Number.isNaN(t)?typeof n=="string"?n:null:`${t}${e}`}async function sn(n,t){var s,i,r;if(n instanceof Blob){const o=document.createElement("a");return o.href=window.URL.createObjectURL(n),t&&(o.download=t),o.click(),o.remove(),n}if(n instanceof Response){const o=await n.blob();return t=t||((r=(i=(s=n.headers.get("Content-Disposition"))==null?void 0:s.split(";")[1])==null?void 0:i.split("=")[1])==null?void 0:r.replace(/"/g,"")),sn(o,t)}const e=await fetch(n);return sn(e)}class va{constructor(t){this._$target=u(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 Ht=new va(document);u.bus=Ht,u.on=Ht.on.bind(Ht),u.one=Ht.one.bind(Ht),u.off=Ht.off.bind(Ht),u.trigger=Ht.trigger.bind(Ht);var Rh=["Shift","Meta","Alt","Control"],wa=typeof navigator=="object"?navigator.platform:"",Ca=/Mac|iPod|iPhone|iPad/.test(wa),Wh=Ca?"Meta":"Control",Oh=wa==="Win32"?["Control","Alt"]:Ca?["Alt"]:[];function Wi(n,t){return typeof n.getModifierState=="function"&&(n.getModifierState(t)||Oh.includes(t)&&n.getModifierState("AltGraph"))}function Hh(n){return n.trim().split(" ").map(function(t){var e=t.split(/\b\+/),s=e.pop();return[e=e.map(function(i){return i==="$mod"?Wh:i}),s]})}function ka(n,t){var e;t===void 0&&(t={});var s=(e=t.timeout)!=null?e:1e3,i=Object.keys(n).map(function(a){return[Hh(a),n[a]]}),r=new Map,o=null;return function(a){a instanceof KeyboardEvent&&(i.forEach(function(l){var c=l[0],h=l[1],d=r.get(c)||c;(function(p,f){return!(f[1].toUpperCase()!==p.key.toUpperCase()&&f[1]!==p.code||f[0].find(function(m){return!Wi(p,m)})||Rh.find(function(m){return!f[0].includes(m)&&f[1]!==m&&Wi(p,m)}))})(a,d[0])?d.length>1?r.set(c,d.slice(1)):(r.delete(c),h(a)):Wi(a,a.key)||r.delete(c)}),o&&clearTimeout(o),o=setTimeout(r.clear.bind(r),s))}}function zh(n,t,e){var s;e===void 0&&(e={});var i=(s=e.event)!=null?s:"keydown",r=ka(t,e);return n.addEventListener(i,r),function(){n.removeEventListener(i,r)}}function Oi(n,t={}){if(!n)return;const e=Object.keys(t).reduce((s,i)=>(t[i].optional||(s[i]={...t[i]}),s),{});return Object.keys(n).forEach(s=>{const i=n[s];i?i===!0?t[s]&&(e[s]={...t[s]}):e[s]=i:delete e[s]}),Object.keys(e).reduce((s,i)=>{const{keys:r,handler:o}=e[i];return typeof r=="string"?s[r]=o:r.forEach(a=>{s[a]=o}),s},{})}function Hi(n,t,e){const{timeout:s,event:i="keydown",scope:r,when:o}=e||{},a=ka(t,{timeout:s});return u(n).on(`${i}.zui.hotkeys${r?`.${r}`:""}`,function(l){o&&o(l)===!1||a(l)})}function zi(n,t){return u(n).off(`.zui.hotkeys${t?`.${t}`:""}`)}const Fh=zh;u.fn.hotkeys=function(n,t){return Hi(this,n,t)},u.fn.unbindHotkeys=function(n){return zi(this,n)},u.hotkeys=function(n,t){Hi(window,n,t)},u.unbindHotkeys=function(n){zi(window,n)};function nn(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement}async function $a(n){(typeof n=="string"||n instanceof Element||n instanceof u)&&(n={target:n});const{target:t,onError:e,onSuccess:s,afterExit:i,afterEnter:r}=n,o=u(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),s==null||s.call(a),u(a).off(".zui.fullscreen"),i&&o.on("exitFullscreen.zui.fullscreen",i),r&&o.on("enterFullscreen.zui.fullscreen",r)}catch(c){e==null||e.call(a,c)}document.zuiBindFullscreenChange||(document.zuiBindFullscreenChange=!0,u(document).on("fullscreenchange.zui webkitfullscreenchange.zui mozfullscreenchange.zui",c=>{const h=nn();let d=h;h?u(h).addClass("is-in-fullscreen"):(d=u(document).find(".is-in-fullscreen")[0]||document,u(d).removeClass("is-in-fullscreen")),u("body").toggleClass("has-in-fullscreen",!!h);const p={event:c,target:d,fullscreenElement:h};u(d).trigger(h?"enterFullscreen":"exitFullscreen",p).trigger("toggleFullscreen",p)}))}async function Fi(n){const t=nn();return n===!1&&!!t===n?n:t?(document.exitFullscreen(),!1):(await $a(n),!0)}u.fn.fullscreen=function(n){return Fi({target:this,...n})},u.getFullscreenElement=nn,u.toggleFullscreen=Fi;function Bi(n,t){const e=u(n)[0];if(!e)return!1;let{viewport:s}=t||{};const{left:i,top:r,width:o,height:a}=e.getBoundingClientRect();if(!s){const{innerHeight:m,innerWidth:y}=window,{clientHeight:b,clientWidth:_}=document.documentElement;s={left:0,top:0,width:y||_,height:m||b}}const{left:l,top:c,width:h,height:d}=s;if(t!=null&&t.fullyCheck)return i>=l&&r>=c&&i+o<=h&&r+a<=d;const p=i<=h&&i+o>=l;return r<=d&&r+a>=c&&p}u.fn.isVisible=function(n){return Bi(this,n)};function ji(n,t,e=!1){const s=u(n);if(t!==void 0){if(t.length){const i=`zui-runjs-${Et()}`;s.append(`