(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(".alc-button-normal{display:inline-block;box-sizing:border-box;padding:0 16px;margin-left:16px;margin-top:8px;min-width:100px;outline:none;border:1px solid #e3e7e8;background-color:#f7f9fa;box-shadow:1px 1px 1px #fff inset;color:#3498db;text-align:center;line-height:32px}.alc-button-normal:hover{background-color:#c8d6dd;box-shadow:none;cursor:pointer}.alc-button-normal:active{color:#f7f9fa;background-color:#54b8eb}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
var Fr=Object.defineProperty;var Wr=(S,u,d)=>u in S?Fr(S,u,{enumerable:!0,configurable:!0,writable:!0,value:d}):S[u]=d;var k=(S,u,d)=>(Wr(S,typeof u!="symbol"?u+"":u,d),d);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(S){return S&&S.__esModule&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S}var jquery={exports:{}};/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */(function(S){(function(u,d){S.exports=u.document?d(u,!0):function(g){if(!g.document)throw new Error("jQuery requires a window with a document");return d(g)}})(typeof window<"u"?window:commonjsGlobal,function(u,d){var g=[],C=Object.getPrototypeOf,T=g.slice,O=g.flat?function(e){return g.flat.call(e)}:function(e){return g.concat.apply([],e)},I=g.push,z=g.indexOf,ee={},fe=ee.toString,Te=ee.hasOwnProperty,qe=Te.toString,On=qe.call(Object),_={},F=function(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"},He=function(t){return t!=null&&t===t.window},L=u.document,Mn={type:!0,src:!0,nonce:!0,noModule:!0};function Bt(e,t,n){n=n||L;var r,o,s=n.createElement("script");if(s.text=e,t)for(r in Mn)o=t[r]||t.getAttribute&&t.getAttribute(r),o&&s.setAttribute(r,o);n.head.appendChild(s).parentNode.removeChild(s)}function $e(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?ee[fe.call(e)]||"object":typeof e}var Vt="3.7.1",In=/HTML$/i,i=function(e,t){return new i.fn.init(e,t)};i.fn=i.prototype={jquery:Vt,constructor:i,length:0,toArray:function(){return T.call(this)},get:function(e){return e==null?T.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=i.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return i.each(this,e)},map:function(e){return this.pushStack(i.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(T.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:I,sort:g.sort,splice:g.splice},i.extend=i.fn.extend=function(){var e,t,n,r,o,s,a=arguments[0]||{},l=1,c=arguments.length,h=!1;for(typeof a=="boolean"&&(h=a,a=arguments[l]||{},l++),typeof a!="object"&&!F(a)&&(a={}),l===c&&(a=this,l--);l<c;l++)if((e=arguments[l])!=null)for(t in e)r=e[t],!(t==="__proto__"||a===r)&&(h&&r&&(i.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],o&&!Array.isArray(n)?s=[]:!o&&!i.isPlainObject(n)?s={}:s=n,o=!1,a[t]=i.extend(h,s,r)):r!==void 0&&(a[t]=r));return a},i.extend({expando:"jQuery"+(Vt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||fe.call(e)!=="[object Object]"?!1:(t=C(e),t?(n=Te.call(t,"constructor")&&t.constructor,typeof n=="function"&&qe.call(n)===On):!0)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){Bt(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(mt(e))for(n=e.length;r<n&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},text:function(e){var t,n="",r=0,o=e.nodeType;if(!o)for(;t=e[r++];)n+=i.text(t);return o===1||o===11?e.textContent:o===9?e.documentElement.textContent:o===3||o===4?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return e!=null&&(mt(Object(e))?i.merge(n,typeof e=="string"?[e]:e):I.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:z.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!In.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r,o=[],s=0,a=e.length,l=!n;s<a;s++)r=!t(e[s],s),r!==l&&o.push(e[s]);return o},map:function(e,t,n){var r,o,s=0,a=[];if(mt(e))for(r=e.length;s<r;s++)o=t(e[s],s,n),o!=null&&a.push(o);else for(s in e)o=t(e[s],s,n),o!=null&&a.push(o);return O(a)},guid:1,support:_}),typeof Symbol=="function"&&(i.fn[Symbol.iterator]=g[Symbol.iterator]),i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ee["[object "+t+"]"]=t.toLowerCase()});function mt(e){var t=!!e&&"length"in e&&e.length,n=$e(e);return F(e)||He(e)?!1:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function K(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Rn=g.pop,qn=g.sort,Hn=g.splice,Q="[\\x20\\t\\r\\n\\f]",Je=new RegExp("^"+Q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Q+"+$","g");i.contains=function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))};var $n=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Ln(e,t){return t?e==="\0"?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}i.escapeSelector=function(e){return(e+"").replace($n,Ln)};var Ce=L,xt=I;(function(){var e,t,n,r,o,s=xt,a,l,c,h,x,w=i.expando,v=0,N=0,q=ht(),X=ht(),W=ht(),ne=ht(),te=function(f,p){return f===p&&(o=!0),0},ve="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",me="(?:\\\\[\\da-fA-F]{1,6}"+Q+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+Q+"*("+me+")(?:"+Q+"*([*^$|!~]?=)"+Q+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+me+"))|)"+Q+"*\\]",Ie=":("+me+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+U+")*)|.*)\\)|)",G=new RegExp(Q+"+","g"),Z=new RegExp("^"+Q+"*,"+Q+"*"),it=new RegExp("^"+Q+"*([>+~]|"+Q+")"+Q+"*"),qt=new RegExp(Q+"|>"),xe=new RegExp(Ie),ot=new RegExp("^"+me+"$"),be={ID:new RegExp("^#("+me+")"),CLASS:new RegExp("^\\.("+me+")"),TAG:new RegExp("^("+me+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+Ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Q+"*(even|odd|(([+-]|)(\\d*)n|)"+Q+"*(?:([+-]|)"+Q+"*(\\d+)|))"+Q+"*\\)|)","i"),bool:new RegExp("^(?:"+ve+")$","i"),needsContext:new RegExp("^"+Q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Q+"*((?:-\\d)?\\d*)"+Q+"*\\)|)(?=[^-]|$)","i")},Pe=/^(?:input|select|textarea|button)$/i,ke=/^h\d$/i,le=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ht=/[+~]/,Ae=new RegExp("\\\\[\\da-fA-F]{1,6}"+Q+"?|\\\\([^\\r\\n\\f])","g"),Ee=function(f,p){var y="0x"+f.slice(1)-65536;return p||(y<0?String.fromCharCode(y+65536):String.fromCharCode(y>>10|55296,y&1023|56320))},Ir=function(){De()},Rr=yt(function(f){return f.disabled===!0&&K(f,"fieldset")},{dir:"parentNode",next:"legend"});function qr(){try{return a.activeElement}catch{}}try{s.apply(g=T.call(Ce.childNodes),Ce.childNodes),g[Ce.childNodes.length].nodeType}catch{s={apply:function(p,y){xt.apply(p,T.call(y))},call:function(p){xt.apply(p,T.call(arguments,1))}}}function J(f,p,y,m){var b,A,E,D,P,B,R,H=p&&p.ownerDocument,V=p?p.nodeType:9;if(y=y||[],typeof f!="string"||!f||V!==1&&V!==9&&V!==11)return y;if(!m&&(De(p),p=p||a,c)){if(V!==11&&(P=le.exec(f)))if(b=P[1]){if(V===9)if(E=p.getElementById(b)){if(E.id===b)return s.call(y,E),y}else return y;else if(H&&(E=H.getElementById(b))&&J.contains(p,E)&&E.id===b)return s.call(y,E),y}else{if(P[2])return s.apply(y,p.getElementsByTagName(f)),y;if((b=P[3])&&p.getElementsByClassName)return s.apply(y,p.getElementsByClassName(b)),y}if(!ne[f+" "]&&(!h||!h.test(f))){if(R=f,H=p,V===1&&(qt.test(f)||it.test(f))){for(H=Ht.test(f)&&$t(p.parentNode)||p,(H!=p||!_.scope)&&((D=p.getAttribute("id"))?D=i.escapeSelector(D):p.setAttribute("id",D=w)),B=st(f),A=B.length;A--;)B[A]=(D?"#"+D:":scope")+" "+gt(B[A]);R=B.join(",")}try{return s.apply(y,H.querySelectorAll(R)),y}catch{ne(f,!0)}finally{D===w&&p.removeAttribute("id")}}}return jn(f.replace(Je,"$1"),p,y,m)}function ht(){var f=[];function p(y,m){return f.push(y+" ")>t.cacheLength&&delete p[f.shift()],p[y+" "]=m}return p}function he(f){return f[w]=!0,f}function Xe(f){var p=a.createElement("fieldset");try{return!!f(p)}catch{return!1}finally{p.parentNode&&p.parentNode.removeChild(p),p=null}}function Hr(f){return function(p){return K(p,"input")&&p.type===f}}function $r(f){return function(p){return(K(p,"input")||K(p,"button"))&&p.type===f}}function kn(f){return function(p){return"form"in p?p.parentNode&&p.disabled===!1?"label"in p?"label"in p.parentNode?p.parentNode.disabled===f:p.disabled===f:p.isDisabled===f||p.isDisabled!==!f&&Rr(p)===f:p.disabled===f:"label"in p?p.disabled===f:!1}}function Re(f){return he(function(p){return p=+p,he(function(y,m){for(var b,A=f([],y.length,p),E=A.length;E--;)y[b=A[E]]&&(y[b]=!(m[b]=y[b]))})})}function $t(f){return f&&typeof f.getElementsByTagName<"u"&&f}function De(f){var p,y=f?f.ownerDocument||f:Ce;return y==a||y.nodeType!==9||!y.documentElement||(a=y,l=a.documentElement,c=!i.isXMLDoc(a),x=l.matches||l.webkitMatchesSelector||l.msMatchesSelector,l.msMatchesSelector&&Ce!=a&&(p=a.defaultView)&&p.top!==p&&p.addEventListener("unload",Ir),_.getById=Xe(function(m){return l.appendChild(m).id=i.expando,!a.getElementsByName||!a.getElementsByName(i.expando).length}),_.disconnectedMatch=Xe(function(m){return x.call(m,"*")}),_.scope=Xe(function(){return a.querySelectorAll(":scope")}),_.cssHas=Xe(function(){try{return a.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),_.getById?(t.filter.ID=function(m){var b=m.replace(Ae,Ee);return function(A){return A.getAttribute("id")===b}},t.find.ID=function(m,b){if(typeof b.getElementById<"u"&&c){var A=b.getElementById(m);return A?[A]:[]}}):(t.filter.ID=function(m){var b=m.replace(Ae,Ee);return function(A){var E=typeof A.getAttributeNode<"u"&&A.getAttributeNode("id");return E&&E.value===b}},t.find.ID=function(m,b){if(typeof b.getElementById<"u"&&c){var A,E,D,P=b.getElementById(m);if(P){if(A=P.getAttributeNode("id"),A&&A.value===m)return[P];for(D=b.getElementsByName(m),E=0;P=D[E++];)if(A=P.getAttributeNode("id"),A&&A.value===m)return[P]}return[]}}),t.find.TAG=function(m,b){return typeof b.getElementsByTagName<"u"?b.getElementsByTagName(m):b.querySelectorAll(m)},t.find.CLASS=function(m,b){if(typeof b.getElementsByClassName<"u"&&c)return b.getElementsByClassName(m)},h=[],Xe(function(m){var b;l.appendChild(m).innerHTML="<a id='"+w+"' href='' disabled='disabled'></a><select id='"+w+"-\r\\' disabled='disabled'><option selected=''></option></select>",m.querySelectorAll("[selected]").length||h.push("\\["+Q+"*(?:value|"+ve+")"),m.querySelectorAll("[id~="+w+"-]").length||h.push("~="),m.querySelectorAll("a#"+w+"+*").length||h.push(".#.+[+~]"),m.querySelectorAll(":checked").length||h.push(":checked"),b=a.createElement("input"),b.setAttribute("type","hidden"),m.appendChild(b).setAttribute("name","D"),l.appendChild(m).disabled=!0,m.querySelectorAll(":disabled").length!==2&&h.push(":enabled",":disabled"),b=a.createElement("input"),b.setAttribute("name",""),m.appendChild(b),m.querySelectorAll("[name='']").length||h.push("\\["+Q+"*name"+Q+"*="+Q+`*(?:''|"")`)}),_.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),te=function(m,b){if(m===b)return o=!0,0;var A=!m.compareDocumentPosition-!b.compareDocumentPosition;return A||(A=(m.ownerDocument||m)==(b.ownerDocument||b)?m.compareDocumentPosition(b):1,A&1||!_.sortDetached&&b.compareDocumentPosition(m)===A?m===a||m.ownerDocument==Ce&&J.contains(Ce,m)?-1:b===a||b.ownerDocument==Ce&&J.contains(Ce,b)?1:r?z.call(r,m)-z.call(r,b):0:A&4?-1:1)}),a}J.matches=function(f,p){return J(f,null,null,p)},J.matchesSelector=function(f,p){if(De(f),c&&!ne[p+" "]&&(!h||!h.test(p)))try{var y=x.call(f,p);if(y||_.disconnectedMatch||f.document&&f.document.nodeType!==11)return y}catch{ne(p,!0)}return J(p,a,null,[f]).length>0},J.contains=function(f,p){return(f.ownerDocument||f)!=a&&De(f),i.contains(f,p)},J.attr=function(f,p){(f.ownerDocument||f)!=a&&De(f);var y=t.attrHandle[p.toLowerCase()],m=y&&Te.call(t.attrHandle,p.toLowerCase())?y(f,p,!c):void 0;return m!==void 0?m:f.getAttribute(p)},J.error=function(f){throw new Error("Syntax error, unrecognized expression: "+f)},i.uniqueSort=function(f){var p,y=[],m=0,b=0;if(o=!_.sortStable,r=!_.sortStable&&T.call(f,0),qn.call(f,te),o){for(;p=f[b++];)p===f[b]&&(m=y.push(b));for(;m--;)Hn.call(f,y[m],1)}return r=null,f},i.fn.uniqueSort=function(){return this.pushStack(i.uniqueSort(T.apply(this)))},t=i.expr={cacheLength:50,createPseudo:he,match:be,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(f){return f[1]=f[1].replace(Ae,Ee),f[3]=(f[3]||f[4]||f[5]||"").replace(Ae,Ee),f[2]==="~="&&(f[3]=" "+f[3]+" "),f.slice(0,4)},CHILD:function(f){return f[1]=f[1].toLowerCase(),f[1].slice(0,3)==="nth"?(f[3]||J.error(f[0]),f[4]=+(f[4]?f[5]+(f[6]||1):2*(f[3]==="even"||f[3]==="odd")),f[5]=+(f[7]+f[8]||f[3]==="odd")):f[3]&&J.error(f[0]),f},PSEUDO:function(f){var p,y=!f[6]&&f[2];return be.CHILD.test(f[0])?null:(f[3]?f[2]=f[4]||f[5]||"":y&&xe.test(y)&&(p=st(y,!0))&&(p=y.indexOf(")",y.length-p)-y.length)&&(f[0]=f[0].slice(0,p),f[2]=y.slice(0,p)),f.slice(0,3))}},filter:{TAG:function(f){var p=f.replace(Ae,Ee).toLowerCase();return f==="*"?function(){return!0}:function(y){return K(y,p)}},CLASS:function(f){var p=q[f+" "];return p||(p=new RegExp("(^|"+Q+")"+f+"("+Q+"|$)"))&&q(f,function(y){return p.test(typeof y.className=="string"&&y.className||typeof y.getAttribute<"u"&&y.getAttribute("class")||"")})},ATTR:function(f,p,y){return function(m){var b=J.attr(m,f);return b==null?p==="!=":p?(b+="",p==="="?b===y:p==="!="?b!==y:p==="^="?y&&b.indexOf(y)===0:p==="*="?y&&b.indexOf(y)>-1:p==="$="?y&&b.slice(-y.length)===y:p==="~="?(" "+b.replace(G," ")+" ").indexOf(y)>-1:p==="|="?b===y||b.slice(0,y.length+1)===y+"-":!1):!0}},CHILD:function(f,p,y,m,b){var A=f.slice(0,3)!=="nth",E=f.slice(-4)!=="last",D=p==="of-type";return m===1&&b===0?function(P){return!!P.parentNode}:function(P,B,R){var H,V,M,Y,ue,re=A!==E?"nextSibling":"previousSibling",de=P.parentNode,we=D&&P.nodeName.toLowerCase(),Ge=!R&&!D,ie=!1;if(de){if(A){for(;re;){for(M=P;M=M[re];)if(D?K(M,we):M.nodeType===1)return!1;ue=re=f==="only"&&!ue&&"nextSibling"}return!0}if(ue=[E?de.firstChild:de.lastChild],E&&Ge){for(V=de[w]||(de[w]={}),H=V[f]||[],Y=H[0]===v&&H[1],ie=Y&&H[2],M=Y&&de.childNodes[Y];M=++Y&&M&&M[re]||(ie=Y=0)||ue.pop();)if(M.nodeType===1&&++ie&&M===P){V[f]=[v,Y,ie];break}}else if(Ge&&(V=P[w]||(P[w]={}),H=V[f]||[],Y=H[0]===v&&H[1],ie=Y),ie===!1)for(;(M=++Y&&M&&M[re]||(ie=Y=0)||ue.pop())&&!((D?K(M,we):M.nodeType===1)&&++ie&&(Ge&&(V=M[w]||(M[w]={}),V[f]=[v,ie]),M===P)););return ie-=b,ie===m||ie%m===0&&ie/m>=0}}},PSEUDO:function(f,p){var y,m=t.pseudos[f]||t.setFilters[f.toLowerCase()]||J.error("unsupported pseudo: "+f);return m[w]?m(p):m.length>1?(y=[f,f,"",p],t.setFilters.hasOwnProperty(f.toLowerCase())?he(function(b,A){for(var E,D=m(b,p),P=D.length;P--;)E=z.call(b,D[P]),b[E]=!(A[E]=D[P])}):function(b){return m(b,0,y)}):m}},pseudos:{not:he(function(f){var p=[],y=[],m=Wt(f.replace(Je,"$1"));return m[w]?he(function(b,A,E,D){for(var P,B=m(b,null,D,[]),R=b.length;R--;)(P=B[R])&&(b[R]=!(A[R]=P))}):function(b,A,E){return p[0]=b,m(p,null,E,y),p[0]=null,!y.pop()}}),has:he(function(f){return function(p){return J(f,p).length>0}}),contains:he(function(f){return f=f.replace(Ae,Ee),function(p){return(p.textContent||i.text(p)).indexOf(f)>-1}}),lang:he(function(f){return ot.test(f||"")||J.error("unsupported lang: "+f),f=f.replace(Ae,Ee).toLowerCase(),function(p){var y;do if(y=c?p.lang:p.getAttribute("xml:lang")||p.getAttribute("lang"))return y=y.toLowerCase(),y===f||y.indexOf(f+"-")===0;while((p=p.parentNode)&&p.nodeType===1);return!1}}),target:function(f){var p=u.location&&u.location.hash;return p&&p.slice(1)===f.id},root:function(f){return f===l},focus:function(f){return f===qr()&&a.hasFocus()&&!!(f.type||f.href||~f.tabIndex)},enabled:kn(!1),disabled:kn(!0),checked:function(f){return K(f,"input")&&!!f.checked||K(f,"option")&&!!f.selected},selected:function(f){return f.parentNode&&f.parentNode.selectedIndex,f.selected===!0},empty:function(f){for(f=f.firstChild;f;f=f.nextSibling)if(f.nodeType<6)return!1;return!0},parent:function(f){return!t.pseudos.empty(f)},header:function(f){return ke.test(f.nodeName)},input:function(f){return Pe.test(f.nodeName)},button:function(f){return K(f,"input")&&f.type==="button"||K(f,"button")},text:function(f){var p;return K(f,"input")&&f.type==="text"&&((p=f.getAttribute("type"))==null||p.toLowerCase()==="text")},first:Re(function(){return[0]}),last:Re(function(f,p){return[p-1]}),eq:Re(function(f,p,y){return[y<0?y+p:y]}),even:Re(function(f,p){for(var y=0;y<p;y+=2)f.push(y);return f}),odd:Re(function(f,p){for(var y=1;y<p;y+=2)f.push(y);return f}),lt:Re(function(f,p,y){var m;for(y<0?m=y+p:y>p?m=p:m=y;--m>=0;)f.push(m);return f}),gt:Re(function(f,p,y){for(var m=y<0?y+p:y;++m<p;)f.push(m);return f})}},t.pseudos.nth=t.pseudos.eq;for(e in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=Hr(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=$r(e);function Dn(){}Dn.prototype=t.filters=t.pseudos,t.setFilters=new Dn;function st(f,p){var y,m,b,A,E,D,P,B=X[f+" "];if(B)return p?0:B.slice(0);for(E=f,D=[],P=t.preFilter;E;){(!y||(m=Z.exec(E)))&&(m&&(E=E.slice(m[0].length)||E),D.push(b=[])),y=!1,(m=it.exec(E))&&(y=m.shift(),b.push({value:y,type:m[0].replace(Je," ")}),E=E.slice(y.length));for(A in t.filter)(m=be[A].exec(E))&&(!P[A]||(m=P[A](m)))&&(y=m.shift(),b.push({value:y,type:A,matches:m}),E=E.slice(y.length));if(!y)break}return p?E.length:E?J.error(f):X(f,D).slice(0)}function gt(f){for(var p=0,y=f.length,m="";p<y;p++)m+=f[p].value;return m}function yt(f,p,y){var m=p.dir,b=p.next,A=b||m,E=y&&A==="parentNode",D=N++;return p.first?function(P,B,R){for(;P=P[m];)if(P.nodeType===1||E)return f(P,B,R);return!1}:function(P,B,R){var H,V,M=[v,D];if(R){for(;P=P[m];)if((P.nodeType===1||E)&&f(P,B,R))return!0}else for(;P=P[m];)if(P.nodeType===1||E)if(V=P[w]||(P[w]={}),b&&K(P,b))P=P[m]||P;else{if((H=V[A])&&H[0]===v&&H[1]===D)return M[2]=H[2];if(V[A]=M,M[2]=f(P,B,R))return!0}return!1}}function Lt(f){return f.length>1?function(p,y,m){for(var b=f.length;b--;)if(!f[b](p,y,m))return!1;return!0}:f[0]}function Lr(f,p,y){for(var m=0,b=p.length;m<b;m++)J(f,p[m],y);return y}function vt(f,p,y,m,b){for(var A,E=[],D=0,P=f.length,B=p!=null;D<P;D++)(A=f[D])&&(!y||y(A,m,b))&&(E.push(A),B&&p.push(D));return E}function _t(f,p,y,m,b,A){return m&&!m[w]&&(m=_t(m)),b&&!b[w]&&(b=_t(b,A)),he(function(E,D,P,B){var R,H,V,M,Y=[],ue=[],re=D.length,de=E||Lr(p||"*",P.nodeType?[P]:P,[]),we=f&&(E||!p)?vt(de,Y,f,P,B):de;if(y?(M=b||(E?f:re||m)?[]:D,y(we,M,P,B)):M=we,m)for(R=vt(M,ue),m(R,[],P,B),H=R.length;H--;)(V=R[H])&&(M[ue[H]]=!(we[ue[H]]=V));if(E){if(b||f){if(b){for(R=[],H=M.length;H--;)(V=M[H])&&R.push(we[H]=V);b(null,M=[],R,B)}for(H=M.length;H--;)(V=M[H])&&(R=b?z.call(E,V):Y[H])>-1&&(E[R]=!(D[R]=V))}}else M=vt(M===D?M.splice(re,M.length):M),b?b(null,D,M,B):s.apply(D,M)})}function Ft(f){for(var p,y,m,b=f.length,A=t.relative[f[0].type],E=A||t.relative[" "],D=A?1:0,P=yt(function(H){return H===p},E,!0),B=yt(function(H){return z.call(p,H)>-1},E,!0),R=[function(H,V,M){var Y=!A&&(M||V!=n)||((p=V).nodeType?P(H,V,M):B(H,V,M));return p=null,Y}];D<b;D++)if(y=t.relative[f[D].type])R=[yt(Lt(R),y)];else{if(y=t.filter[f[D].type].apply(null,f[D].matches),y[w]){for(m=++D;m<b&&!t.relative[f[m].type];m++);return _t(D>1&&Lt(R),D>1&&gt(f.slice(0,D-1).concat({value:f[D-2].type===" "?"*":""})).replace(Je,"$1"),y,D<m&&Ft(f.slice(D,m)),m<b&&Ft(f=f.slice(m)),m<b&&gt(f))}R.push(y)}return Lt(R)}function _r(f,p){var y=p.length>0,m=f.length>0,b=function(A,E,D,P,B){var R,H,V,M=0,Y="0",ue=A&&[],re=[],de=n,we=A||m&&t.find.TAG("*",B),Ge=v+=de==null?1:Math.random()||.1,ie=we.length;for(B&&(n=E==a||E||B);Y!==ie&&(R=we[Y])!=null;Y++){if(m&&R){for(H=0,!E&&R.ownerDocument!=a&&(De(R),D=!c);V=f[H++];)if(V(R,E||a,D)){s.call(P,R);break}B&&(v=Ge)}y&&((R=!V&&R)&&M--,A&&ue.push(R))}if(M+=Y,y&&Y!==M){for(H=0;V=p[H++];)V(ue,re,E,D);if(A){if(M>0)for(;Y--;)ue[Y]||re[Y]||(re[Y]=Rn.call(P));re=vt(re)}s.apply(P,re),B&&!A&&re.length>0&&M+p.length>1&&i.uniqueSort(P)}return B&&(v=Ge,n=de),ue};return y?he(b):b}function Wt(f,p){var y,m=[],b=[],A=W[f+" "];if(!A){for(p||(p=st(f)),y=p.length;y--;)A=Ft(p[y]),A[w]?m.push(A):b.push(A);A=W(f,_r(b,m)),A.selector=f}return A}function jn(f,p,y,m){var b,A,E,D,P,B=typeof f=="function"&&f,R=!m&&st(f=B.selector||f);if(y=y||[],R.length===1){if(A=R[0]=R[0].slice(0),A.length>2&&(E=A[0]).type==="ID"&&p.nodeType===9&&c&&t.relative[A[1].type]){if(p=(t.find.ID(E.matches[0].replace(Ae,Ee),p)||[])[0],p)B&&(p=p.parentNode);else return y;f=f.slice(A.shift().value.length)}for(b=be.needsContext.test(f)?0:A.length;b--&&(E=A[b],!t.relative[D=E.type]);)if((P=t.find[D])&&(m=P(E.matches[0].replace(Ae,Ee),Ht.test(A[0].type)&&$t(p.parentNode)||p))){if(A.splice(b,1),f=m.length&&gt(A),!f)return s.apply(y,m),y;break}}return(B||Wt(f,R))(m,p,!c,y,!p||Ht.test(f)&&$t(p.parentNode)||p),y}_.sortStable=w.split("").sort(te).join("")===w,De(),_.sortDetached=Xe(function(f){return f.compareDocumentPosition(a.createElement("fieldset"))&1}),i.find=J,i.expr[":"]=i.expr.pseudos,i.unique=i.uniqueSort,J.compile=Wt,J.select=jn,J.setDocument=De,J.tokenize=st,J.escape=i.escapeSelector,J.getText=i.text,J.isXML=i.isXMLDoc,J.selectors=i.expr,J.support=i.support,J.uniqueSort=i.uniqueSort})();var Le=function(e,t,n){for(var r=[],o=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(o&&i(e).is(n))break;r.push(e)}return r},Ut=function(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n},zt=i.expr.match.needsContext,Xt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function bt(e,t,n){return F(t)?i.grep(e,function(r,o){return!!t.call(r,o,r)!==n}):t.nodeType?i.grep(e,function(r){return r===t!==n}):typeof t!="string"?i.grep(e,function(r){return z.call(t,r)>-1!==n}):i.filter(t,e,n)}i.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),t.length===1&&r.nodeType===1?i.find.matchesSelector(r,e)?[r]:[]:i.find.matches(e,i.grep(t,function(o){return o.nodeType===1}))},i.fn.extend({find:function(e){var t,n,r=this.length,o=this;if(typeof e!="string")return this.pushStack(i(e).filter(function(){for(t=0;t<r;t++)if(i.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)i.find(e,o[t],n);return r>1?i.uniqueSort(n):n},filter:function(e){return this.pushStack(bt(this,e||[],!1))},not:function(e){return this.pushStack(bt(this,e||[],!0))},is:function(e){return!!bt(this,typeof e=="string"&&zt.test(e)?i(e):e||[],!1).length}});var Gt,_n=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Fn=i.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||Gt,typeof e=="string")if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?r=[null,e,null]:r=_n.exec(e),r&&(r[1]||!t))if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:L,!0)),Xt.test(r[1])&&i.isPlainObject(t))for(r in t)F(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}else return o=L.getElementById(r[2]),o&&(this[0]=o,this.length=1),this;else return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);else{if(e.nodeType)return this[0]=e,this.length=1,this;if(F(e))return n.ready!==void 0?n.ready(e):e(i)}return i.makeArray(e,this)};Fn.prototype=i.fn,Gt=i(L);var Wn=/^(?:parents|prev(?:Until|All))/,Bn={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(e){var t=i(e,this),n=t.length;return this.filter(function(){for(var r=0;r<n;r++)if(i.contains(this,t[r]))return!0})},closest:function(e,t){var n,r=0,o=this.length,s=[],a=typeof e!="string"&&i(e);if(!zt.test(e)){for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:n.nodeType===1&&i.find.matchesSelector(n,e))){s.push(n);break}}return this.pushStack(s.length>1?i.uniqueSort(s):s)},index:function(e){return e?typeof e=="string"?z.call(i(e),this[0]):z.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function Jt(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}i.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return Le(e,"parentNode")},parentsUntil:function(e,t,n){return Le(e,"parentNode",n)},next:function(e){return Jt(e,"nextSibling")},prev:function(e){return Jt(e,"previousSibling")},nextAll:function(e){return Le(e,"nextSibling")},prevAll:function(e){return Le(e,"previousSibling")},nextUntil:function(e,t,n){return Le(e,"nextSibling",n)},prevUntil:function(e,t,n){return Le(e,"previousSibling",n)},siblings:function(e){return Ut((e.parentNode||{}).firstChild,e)},children:function(e){return Ut(e.firstChild)},contents:function(e){return e.contentDocument!=null&&C(e.contentDocument)?e.contentDocument:(K(e,"template")&&(e=e.content||e),i.merge([],e.childNodes))}},function(e,t){i.fn[e]=function(n,r){var o=i.map(this,t,n);return e.slice(-5)!=="Until"&&(r=n),r&&typeof r=="string"&&(o=i.filter(r,o)),this.length>1&&(Bn[e]||i.uniqueSort(o),Wn.test(e)&&o.reverse()),this.pushStack(o)}});var ge=/[^\x20\t\r\n\f]+/g;function Vn(e){var t={};return i.each(e.match(ge)||[],function(n,r){t[r]=!0}),t}i.Callbacks=function(e){e=typeof e=="string"?Vn(e):i.extend({},e);var t,n,r,o,s=[],a=[],l=-1,c=function(){for(o=o||e.once,r=t=!0;a.length;l=-1)for(n=a.shift();++l<s.length;)s[l].apply(n[0],n[1])===!1&&e.stopOnFalse&&(l=s.length,n=!1);e.memory||(n=!1),t=!1,o&&(n?s=[]:s="")},h={add:function(){return s&&(n&&!t&&(l=s.length-1,a.push(n)),function x(w){i.each(w,function(v,N){F(N)?(!e.unique||!h.has(N))&&s.push(N):N&&N.length&&$e(N)!=="string"&&x(N)})}(arguments),n&&!t&&c()),this},remove:function(){return i.each(arguments,function(x,w){for(var v;(v=i.inArray(w,s,v))>-1;)s.splice(v,1),v<=l&&l--}),this},has:function(x){return x?i.inArray(x,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return o=a=[],!n&&!t&&(s=n=""),this},locked:function(){return!!o},fireWith:function(x,w){return o||(w=w||[],w=[x,w.slice?w.slice():w],a.push(w),t||c()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h};function _e(e){return e}function at(e){throw e}function Qt(e,t,n,r){var o;try{e&&F(o=e.promise)?o.call(e).done(t).fail(n):e&&F(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(s){n.apply(void 0,[s])}}i.extend({Deferred:function(e){var t=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(s){return r.then(null,s)},pipe:function(){var s=arguments;return i.Deferred(function(a){i.each(t,function(l,c){var h=F(s[c[4]])&&s[c[4]];o[c[1]](function(){var x=h&&h.apply(this,arguments);x&&F(x.promise)?x.promise().progress(a.notify).done(a.resolve).fail(a.reject):a[c[0]+"With"](this,h?[x]:arguments)})}),s=null}).promise()},then:function(s,a,l){var c=0;function h(x,w,v,N){return function(){var q=this,X=arguments,W=function(){var te,ve;if(!(x<c)){if(te=v.apply(q,X),te===w.promise())throw new TypeError("Thenable self-resolution");ve=te&&(typeof te=="object"||typeof te=="function")&&te.then,F(ve)?N?ve.call(te,h(c,w,_e,N),h(c,w,at,N)):(c++,ve.call(te,h(c,w,_e,N),h(c,w,at,N),h(c,w,_e,w.notifyWith))):(v!==_e&&(q=void 0,X=[te]),(N||w.resolveWith)(q,X))}},ne=N?W:function(){try{W()}catch(te){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(te,ne.error),x+1>=c&&(v!==at&&(q=void 0,X=[te]),w.rejectWith(q,X))}};x?ne():(i.Deferred.getErrorHook?ne.error=i.Deferred.getErrorHook():i.Deferred.getStackHook&&(ne.error=i.Deferred.getStackHook()),u.setTimeout(ne))}}return i.Deferred(function(x){t[0][3].add(h(0,x,F(l)?l:_e,x.notifyWith)),t[1][3].add(h(0,x,F(s)?s:_e)),t[2][3].add(h(0,x,F(a)?a:at))}).promise()},promise:function(s){return s!=null?i.extend(s,r):r}},o={};return i.each(t,function(s,a){var l=a[2],c=a[5];r[a[1]]=l.add,c&&l.add(function(){n=c},t[3-s][2].disable,t[3-s][3].disable,t[0][2].lock,t[0][3].lock),l.add(a[3].fire),o[a[0]]=function(){return o[a[0]+"With"](this===o?void 0:this,arguments),this},o[a[0]+"With"]=l.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=T.call(arguments),s=i.Deferred(),a=function(l){return function(c){r[l]=this,o[l]=arguments.length>1?T.call(arguments):c,--t||s.resolveWith(r,o)}};if(t<=1&&(Qt(e,s.done(a(n)).resolve,s.reject,!t),s.state()==="pending"||F(o[n]&&o[n].then)))return s.then();for(;n--;)Qt(o[n],a(n),s.reject);return s.promise()}});var Un=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(e,t){u.console&&u.console.warn&&e&&Un.test(e.name)&&u.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},i.readyException=function(e){u.setTimeout(function(){throw e})};var wt=i.Deferred();i.fn.ready=function(e){return wt.then(e).catch(function(t){i.readyException(t)}),this},i.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--i.readyWait:i.isReady)||(i.isReady=!0,!(e!==!0&&--i.readyWait>0)&&wt.resolveWith(L,[i]))}}),i.ready.then=wt.then;function ut(){L.removeEventListener("DOMContentLoaded",ut),u.removeEventListener("load",ut),i.ready()}L.readyState==="complete"||L.readyState!=="loading"&&!L.documentElement.doScroll?u.setTimeout(i.ready):(L.addEventListener("DOMContentLoaded",ut),u.addEventListener("load",ut));var Se=function(e,t,n,r,o,s,a){var l=0,c=e.length,h=n==null;if($e(n)==="object"){o=!0;for(l in n)Se(e,t,l,n[l],!0,s,a)}else if(r!==void 0&&(o=!0,F(r)||(a=!0),h&&(a?(t.call(e,r),t=null):(h=t,t=function(x,w,v){return h.call(i(x),v)})),t))for(;l<c;l++)t(e[l],n,a?r:r.call(e[l],l,t(e[l],n)));return o?e:h?t.call(e):c?t(e[0],n):s},zn=/^-ms-/,Xn=/-([a-z])/g;function Gn(e,t){return t.toUpperCase()}function ye(e){return e.replace(zn,"ms-").replace(Xn,Gn)}var Qe=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function Ye(){this.expando=i.expando+Ye.uid++}Ye.uid=1,Ye.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if(typeof t=="string")o[ye(t)]=n;else for(r in t)o[ye(r)]=t[r];return o},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][ye(t)]},access:function(e,t,n){return t===void 0||t&&typeof t=="string"&&n===void 0?this.get(e,t):(this.set(e,t,n),n!==void 0?n:t)},remove:function(e,t){var n,r=e[this.expando];if(r!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t.map(ye):(t=ye(t),t=t in r?[t]:t.match(ge)||[]),n=t.length;n--;)delete r[t[n]];(t===void 0||i.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==void 0&&!i.isEmptyObject(t)}};var j=new Ye,oe=new Ye,Jn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Qn=/[A-Z]/g;function Yn(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:Jn.test(e)?JSON.parse(e):e}function Yt(e,t,n){var r;if(n===void 0&&e.nodeType===1)if(r="data-"+t.replace(Qn,"-$&").toLowerCase(),n=e.getAttribute(r),typeof n=="string"){try{n=Yn(n)}catch{}oe.set(e,t,n)}else n=void 0;return n}i.extend({hasData:function(e){return oe.hasData(e)||j.hasData(e)},data:function(e,t,n){return oe.access(e,t,n)},removeData:function(e,t){oe.remove(e,t)},_data:function(e,t,n){return j.access(e,t,n)},_removeData:function(e,t){j.remove(e,t)}}),i.fn.extend({data:function(e,t){var n,r,o,s=this[0],a=s&&s.attributes;if(e===void 0){if(this.length&&(o=oe.get(s),s.nodeType===1&&!j.get(s,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,r.indexOf("data-")===0&&(r=ye(r.slice(5)),Yt(s,r,o[r])));j.set(s,"hasDataAttrs",!0)}return o}return typeof e=="object"?this.each(function(){oe.set(this,e)}):Se(this,function(l){var c;if(s&&l===void 0)return c=oe.get(s,e),c!==void 0||(c=Yt(s,e),c!==void 0)?c:void 0;this.each(function(){oe.set(this,e,l)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){oe.remove(this,e)})}}),i.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=j.get(e,t),n&&(!r||Array.isArray(n)?r=j.access(e,t,i.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=i.queue(e,t),r=n.length,o=n.shift(),s=i._queueHooks(e,t),a=function(){i.dequeue(e,t)};o==="inprogress"&&(o=n.shift(),r--),o&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,o.call(e,a,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return j.get(e,n)||j.access(e,n,{empty:i.Callbacks("once memory").add(function(){j.remove(e,[t+"queue",n])})})}}),i.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length<n?i.queue(this[0],e):t===void 0?this:this.each(function(){var r=i.queue(this,e,t);i._queueHooks(this,e),e==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,e)})},dequeue:function(e){return this.each(function(){i.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=i.Deferred(),s=this,a=this.length,l=function(){--r||o.resolveWith(s,[s])};for(typeof e!="string"&&(t=e,e=void 0),e=e||"fx";a--;)n=j.get(s[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(l));return l(),o.promise(t)}});var Kt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ke=new RegExp("^(?:([+-])=|)("+Kt+")([a-z%]*)$","i"),Ne=["Top","Right","Bottom","Left"],je=L.documentElement,Fe=function(e){return i.contains(e.ownerDocument,e)},Kn={composed:!0};je.getRootNode&&(Fe=function(e){return i.contains(e.ownerDocument,e)||e.getRootNode(Kn)===e.ownerDocument});var ft=function(e,t){return e=t||e,e.style.display==="none"||e.style.display===""&&Fe(e)&&i.css(e,"display")==="none"};function Zt(e,t,n,r){var o,s,a=20,l=r?function(){return r.cur()}:function(){return i.css(e,t,"")},c=l(),h=n&&n[3]||(i.cssNumber[t]?"":"px"),x=e.nodeType&&(i.cssNumber[t]||h!=="px"&&+c)&&Ke.exec(i.css(e,t));if(x&&x[3]!==h){for(c=c/2,h=h||x[3],x=+c||1;a--;)i.style(e,t,x+h),(1-s)*(1-(s=l()/c||.5))<=0&&(a=0),x=x/s;x=x*2,i.style(e,t,x+h),n=n||[]}return n&&(x=+x||+c||0,o=n[1]?x+(n[1]+1)*n[2]:+n[2],r&&(r.unit=h,r.start=x,r.end=o)),o}var en={};function Zn(e){var t,n=e.ownerDocument,r=e.nodeName,o=en[r];return o||(t=n.body.appendChild(n.createElement(r)),o=i.css(t,"display"),t.parentNode.removeChild(t),o==="none"&&(o="block"),en[r]=o,o)}function We(e,t){for(var n,r,o=[],s=0,a=e.length;s<a;s++)r=e[s],r.style&&(n=r.style.display,t?(n==="none"&&(o[s]=j.get(r,"display")||null,o[s]||(r.style.display="")),r.style.display===""&&ft(r)&&(o[s]=Zn(r))):n!=="none"&&(o[s]="none",j.set(r,"display",n)));for(s=0;s<a;s++)o[s]!=null&&(e[s].style.display=o[s]);return e}i.fn.extend({show:function(){return We(this,!0)},hide:function(){return We(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){ft(this)?i(this).show():i(this).hide()})}});var Ze=/^(?:checkbox|radio)$/i,tn=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,nn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=L.createDocumentFragment(),t=e.appendChild(L.createElement("div")),n=L.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),_.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",_.option=!!t.lastChild})();var ce={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ce.tbody=ce.tfoot=ce.colgroup=ce.caption=ce.thead,ce.th=ce.td,_.option||(ce.optgroup=ce.option=[1,"<select multiple='multiple'>","</select>"]);function se(e,t){var n;return typeof e.getElementsByTagName<"u"?n=e.getElementsByTagName(t||"*"):typeof e.querySelectorAll<"u"?n=e.querySelectorAll(t||"*"):n=[],t===void 0||t&&K(e,t)?i.merge([e],n):n}function Tt(e,t){for(var n=0,r=e.length;n<r;n++)j.set(e[n],"globalEval",!t||j.get(t[n],"globalEval"))}var er=/<|&#?\w+;/;function rn(e,t,n,r,o){for(var s,a,l,c,h,x,w=t.createDocumentFragment(),v=[],N=0,q=e.length;N<q;N++)if(s=e[N],s||s===0)if($e(s)==="object")i.merge(v,s.nodeType?[s]:s);else if(!er.test(s))v.push(t.createTextNode(s));else{for(a=a||w.appendChild(t.createElement("div")),l=(tn.exec(s)||["",""])[1].toLowerCase(),c=ce[l]||ce._default,a.innerHTML=c[1]+i.htmlPrefilter(s)+c[2],x=c[0];x--;)a=a.lastChild;i.merge(v,a.childNodes),a=w.firstChild,a.textContent=""}for(w.textContent="",N=0;s=v[N++];){if(r&&i.inArray(s,r)>-1){o&&o.push(s);continue}if(h=Fe(s),a=se(w.appendChild(s),"script"),h&&Tt(a),n)for(x=0;s=a[x++];)nn.test(s.type||"")&&n.push(s)}return w}var on=/^([^.]*)(?:\.(.+)|)/;function Be(){return!0}function Ve(){return!1}function Ct(e,t,n,r,o,s){var a,l;if(typeof t=="object"){typeof n!="string"&&(r=r||n,n=void 0);for(l in t)Ct(e,l,n,r,t[l],s);return e}if(r==null&&o==null?(o=n,r=n=void 0):o==null&&(typeof n=="string"?(o=r,r=void 0):(o=r,r=n,n=void 0)),o===!1)o=Ve;else if(!o)return e;return s===1&&(a=o,o=function(c){return i().off(c),a.apply(this,arguments)},o.guid=a.guid||(a.guid=i.guid++)),e.each(function(){i.event.add(this,t,o,r,n)})}i.event={global:{},add:function(e,t,n,r,o){var s,a,l,c,h,x,w,v,N,q,X,W=j.get(e);if(Qe(e))for(n.handler&&(s=n,n=s.handler,o=s.selector),o&&i.find.matchesSelector(je,o),n.guid||(n.guid=i.guid++),(c=W.events)||(c=W.events=Object.create(null)),(a=W.handle)||(a=W.handle=function(ne){return typeof i<"u"&&i.event.triggered!==ne.type?i.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(ge)||[""],h=t.length;h--;)l=on.exec(t[h])||[],N=X=l[1],q=(l[2]||"").split(".").sort(),N&&(w=i.event.special[N]||{},N=(o?w.delegateType:w.bindType)||N,w=i.event.special[N]||{},x=i.extend({type:N,origType:X,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&i.expr.match.needsContext.test(o),namespace:q.join(".")},s),(v=c[N])||(v=c[N]=[],v.delegateCount=0,(!w.setup||w.setup.call(e,r,q,a)===!1)&&e.addEventListener&&e.addEventListener(N,a)),w.add&&(w.add.call(e,x),x.handler.guid||(x.handler.guid=n.guid)),o?v.splice(v.delegateCount++,0,x):v.push(x),i.event.global[N]=!0)},remove:function(e,t,n,r,o){var s,a,l,c,h,x,w,v,N,q,X,W=j.hasData(e)&&j.get(e);if(!(!W||!(c=W.events))){for(t=(t||"").match(ge)||[""],h=t.length;h--;){if(l=on.exec(t[h])||[],N=X=l[1],q=(l[2]||"").split(".").sort(),!N){for(N in c)i.event.remove(e,N+t[h],n,r,!0);continue}for(w=i.event.special[N]||{},N=(r?w.delegateType:w.bindType)||N,v=c[N]||[],l=l[2]&&new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=v.length;s--;)x=v[s],(o||X===x.origType)&&(!n||n.guid===x.guid)&&(!l||l.test(x.namespace))&&(!r||r===x.selector||r==="**"&&x.selector)&&(v.splice(s,1),x.selector&&v.delegateCount--,w.remove&&w.remove.call(e,x));a&&!v.length&&((!w.teardown||w.teardown.call(e,q,W.handle)===!1)&&i.removeEvent(e,N,W.handle),delete c[N])}i.isEmptyObject(c)&&j.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,s,a,l=new Array(arguments.length),c=i.event.fix(e),h=(j.get(this,"events")||Object.create(null))[c.type]||[],x=i.event.special[c.type]||{};for(l[0]=c,t=1;t<arguments.length;t++)l[t]=arguments[t];if(c.delegateTarget=this,!(x.preDispatch&&x.preDispatch.call(this,c)===!1)){for(a=i.event.handlers.call(this,c,h),t=0;(o=a[t++])&&!c.isPropagationStopped();)for(c.currentTarget=o.elem,n=0;(s=o.handlers[n++])&&!c.isImmediatePropagationStopped();)(!c.rnamespace||s.namespace===!1||c.rnamespace.test(s.namespace))&&(c.handleObj=s,c.data=s.data,r=((i.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,l),r!==void 0&&(c.result=r)===!1&&(c.preventDefault(),c.stopPropagation()));return x.postDispatch&&x.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,o,s,a,l=[],c=t.delegateCount,h=e.target;if(c&&h.nodeType&&!(e.type==="click"&&e.button>=1)){for(;h!==this;h=h.parentNode||this)if(h.nodeType===1&&!(e.type==="click"&&h.disabled===!0)){for(s=[],a={},n=0;n<c;n++)r=t[n],o=r.selector+" ",a[o]===void 0&&(a[o]=r.needsContext?i(o,this).index(h)>-1:i.find(o,this,null,[h]).length),a[o]&&s.push(r);s.length&&l.push({elem:h,handlers:s})}}return h=this,c<t.length&&l.push({elem:h,handlers:t.slice(c)}),l},addProp:function(e,t){Object.defineProperty(i.Event.prototype,e,{enumerable:!0,configurable:!0,get:F(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(n){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(e){return e[i.expando]?e:new i.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Ze.test(t.type)&&t.click&&K(t,"input")&&ct(t,"click",!0),!1},trigger:function(e){var t=this||e;return Ze.test(t.type)&&t.click&&K(t,"input")&&ct(t,"click"),!0},_default:function(e){var t=e.target;return Ze.test(t.type)&&t.click&&K(t,"input")&&j.get(t,"click")||K(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}};function ct(e,t,n){if(!n){j.get(e,t)===void 0&&i.event.add(e,t,Be);return}j.set(e,t,!1),i.event.add(e,t,{namespace:!1,handler:function(r){var o,s=j.get(this,t);if(r.isTrigger&1&&this[t]){if(s)(i.event.special[t]||{}).delegateType&&r.stopPropagation();else if(s=T.call(arguments),j.set(this,t,s),this[t](),o=j.get(this,t),j.set(this,t,!1),s!==o)return r.stopImmediatePropagation(),r.preventDefault(),o}else s&&(j.set(this,t,i.event.trigger(s[0],s.slice(1),this)),r.stopPropagation(),r.isImmediatePropagationStopped=Be)}})}i.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},i.Event=function(e,t){if(!(this instanceof i.Event))return new i.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===void 0&&e.returnValue===!1?Be:Ve,this.target=e.target&&e.target.nodeType===3?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&i.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[i.expando]=!0},i.Event.prototype={constructor:i.Event,isDefaultPrevented:Ve,isPropagationStopped:Ve,isImmediatePropagationStopped:Ve,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Be,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Be,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Be,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},i.event.addProp),i.each({focus:"focusin",blur:"focusout"},function(e,t){function n(r){if(L.documentMode){var o=j.get(this,"handle"),s=i.event.fix(r);s.type=r.type==="focusin"?"focus":"blur",s.isSimulated=!0,o(r),s.target===s.currentTarget&&o(s)}else i.event.simulate(t,r.target,i.event.fix(r))}i.event.special[e]={setup:function(){var r;if(ct(this,e,!0),L.documentMode)r=j.get(this,t),r||this.addEventListener(t,n),j.set(this,t,(r||0)+1);else return!1},trigger:function(){return ct(this,e),!0},teardown:function(){var r;if(L.documentMode)r=j.get(this,t)-1,r?j.set(this,t,r):(this.removeEventListener(t,n),j.remove(this,t));else return!1},_default:function(r){return j.get(r.target,e)},delegateType:t},i.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=L.documentMode?this:r,s=j.get(o,t);s||(L.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),j.set(o,t,(s||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=L.documentMode?this:r,s=j.get(o,t)-1;s?j.set(o,t,s):(L.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),j.remove(o,t))}}}),i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){i.event.special[e]={delegateType:t,bindType:t,handle:function(n){var r,o=this,s=n.relatedTarget,a=n.handleObj;return(!s||s!==o&&!i.contains(o,s))&&(n.type=a.origType,r=a.handler.apply(this,arguments),n.type=t),r}}}),i.fn.extend({on:function(e,t,n,r){return Ct(this,e,t,n,r)},one:function(e,t,n,r){return Ct(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,i(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if(typeof e=="object"){for(o in e)this.off(o,t,e[o]);return this}return(t===!1||typeof t=="function")&&(n=t,t=void 0),n===!1&&(n=Ve),this.each(function(){i.event.remove(this,e,n,t)})}});var tr=/<script|<style|<link/i,nr=/checked\s*(?:[^=]|=\s*.checked.)/i,rr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function sn(e,t){return K(e,"table")&&K(t.nodeType!==11?t:t.firstChild,"tr")&&i(e).children("tbody")[0]||e}function ir(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function or(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function an(e,t){var n,r,o,s,a,l,c;if(t.nodeType===1){if(j.hasData(e)&&(s=j.get(e),c=s.events,c)){j.remove(t,"handle events");for(o in c)for(n=0,r=c[o].length;n<r;n++)i.event.add(t,o,c[o][n])}oe.hasData(e)&&(a=oe.access(e),l=i.extend({},a),oe.set(t,l))}}function sr(e,t){var n=t.nodeName.toLowerCase();n==="input"&&Ze.test(e.type)?t.checked=e.checked:(n==="input"||n==="textarea")&&(t.defaultValue=e.defaultValue)}function Ue(e,t,n,r){t=O(t);var o,s,a,l,c,h,x=0,w=e.length,v=w-1,N=t[0],q=F(N);if(q||w>1&&typeof N=="string"&&!_.checkClone&&nr.test(N))return e.each(function(X){var W=e.eq(X);q&&(t[0]=N.call(this,X,W.html())),Ue(W,t,n,r)});if(w&&(o=rn(t,e[0].ownerDocument,!1,e,r),s=o.firstChild,o.childNodes.length===1&&(o=s),s||r)){for(a=i.map(se(o,"script"),ir),l=a.length;x<w;x++)c=o,x!==v&&(c=i.clone(c,!0,!0),l&&i.merge(a,se(c,"script"))),n.call(e[x],c,x);if(l)for(h=a[a.length-1].ownerDocument,i.map(a,or),x=0;x<l;x++)c=a[x],nn.test(c.type||"")&&!j.access(c,"globalEval")&&i.contains(h,c)&&(c.src&&(c.type||"").toLowerCase()!=="module"?i._evalUrl&&!c.noModule&&i._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},h):Bt(c.textContent.replace(rr,""),c,h))}return e}function un(e,t,n){for(var r,o=t?i.filter(t,e):e,s=0;(r=o[s])!=null;s++)!n&&r.nodeType===1&&i.cleanData(se(r)),r.parentNode&&(n&&Fe(r)&&Tt(se(r,"script")),r.parentNode.removeChild(r));return e}i.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,s,a,l=e.cloneNode(!0),c=Fe(e);if(!_.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!i.isXMLDoc(e))for(a=se(l),s=se(e),r=0,o=s.length;r<o;r++)sr(s[r],a[r]);if(t)if(n)for(s=s||se(e),a=a||se(l),r=0,o=s.length;r<o;r++)an(s[r],a[r]);else an(e,l);return a=se(l,"script"),a.length>0&&Tt(a,!c&&se(e,"script")),l},cleanData:function(e){for(var t,n,r,o=i.event.special,s=0;(n=e[s])!==void 0;s++)if(Qe(n)){if(t=n[j.expando]){if(t.events)for(r in t.events)o[r]?i.event.remove(n,r):i.removeEvent(n,r,t.handle);n[j.expando]=void 0}n[oe.expando]&&(n[oe.expando]=void 0)}}}),i.fn.extend({detach:function(e){return un(this,e,!0)},remove:function(e){return un(this,e)},text:function(e){return Se(this,function(t){return t===void 0?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=t)})},null,e,arguments.length)},append:function(){return Ue(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=sn(this,e);t.appendChild(e)}})},prepend:function(){return Ue(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=sn(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ue(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ue(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++)e.nodeType===1&&(i.cleanData(se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e??!1,t=t??e,this.map(function(){return i.clone(this,e,t)})},html:function(e){return Se(this,function(t){var n=this[0]||{},r=0,o=this.length;if(t===void 0&&n.nodeType===1)return n.innerHTML;if(typeof t=="string"&&!tr.test(t)&&!ce[(tn.exec(t)||["",""])[1].toLowerCase()]){t=i.htmlPrefilter(t);try{for(;r<o;r++)n=this[r]||{},n.nodeType===1&&(i.cleanData(se(n,!1)),n.innerHTML=t);n=0}catch{}}n&&this.empty().append(t)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ue(this,arguments,function(t){var n=this.parentNode;i.inArray(this,e)<0&&(i.cleanData(se(this)),n&&n.replaceChild(t,this))},e)}}),i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){i.fn[e]=function(n){for(var r,o=[],s=i(n),a=s.length-1,l=0;l<=a;l++)r=l===a?this:this.clone(!0),i(s[l])[t](r),I.apply(o,r.get());return this.pushStack(o)}});var St=new RegExp("^("+Kt+")(?!px)[a-z%]+$","i"),Nt=/^--/,lt=function(e){var t=e.ownerDocument.defaultView;return(!t||!t.opener)&&(t=u),t.getComputedStyle(e)},fn=function(e,t,n){var r,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];r=n.call(e);for(o in t)e.style[o]=s[o];return r},ar=new RegExp(Ne.join("|"),"i");(function(){function e(){if(h){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",je.appendChild(c).appendChild(h);var x=u.getComputedStyle(h);n=x.top!=="1%",l=t(x.marginLeft)===12,h.style.right="60%",s=t(x.right)===36,r=t(x.width)===36,h.style.position="absolute",o=t(h.offsetWidth/3)===12,je.removeChild(c),h=null}}function t(x){return Math.round(parseFloat(x))}var n,r,o,s,a,l,c=L.createElement("div"),h=L.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle=h.style.backgroundClip==="content-box",i.extend(_,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var x,w,v,N;return a==null&&(x=L.createElement("table"),w=L.createElement("tr"),v=L.createElement("div"),x.style.cssText="position:absolute;left:-11111px;border-collapse:separate",w.style.cssText="box-sizing:content-box;border:1px solid",w.style.height="1px",v.style.height="9px",v.style.display="block",je.appendChild(x).appendChild(w).appendChild(v),N=u.getComputedStyle(w),a=parseInt(N.height,10)+parseInt(N.borderTopWidth,10)+parseInt(N.borderBottomWidth,10)===w.offsetHeight,je.removeChild(x)),a}}))})();function et(e,t,n){var r,o,s,a,l=Nt.test(t),c=e.style;return n=n||lt(e),n&&(a=n.getPropertyValue(t)||n[t],l&&a&&(a=a.replace(Je,"$1")||void 0),a===""&&!Fe(e)&&(a=i.style(e,t)),!_.pixelBoxStyles()&&St.test(a)&&ar.test(t)&&(r=c.width,o=c.minWidth,s=c.maxWidth,c.minWidth=c.maxWidth=c.width=a,a=n.width,c.width=r,c.minWidth=o,c.maxWidth=s)),a!==void 0?a+"":a}function cn(e,t){return{get:function(){if(e()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}var ln=["Webkit","Moz","ms"],dn=L.createElement("div").style,pn={};function ur(e){for(var t=e[0].toUpperCase()+e.slice(1),n=ln.length;n--;)if(e=ln[n]+t,e in dn)return e}function At(e){var t=i.cssProps[e]||pn[e];return t||(e in dn?e:pn[e]=ur(e)||e)}var fr=/^(none|table(?!-c[ea]).+)/,cr={position:"absolute",visibility:"hidden",display:"block"},hn={letterSpacing:"0",fontWeight:"400"};function gn(e,t,n){var r=Ke.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Et(e,t,n,r,o,s){var a=t==="width"?1:0,l=0,c=0,h=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)n==="margin"&&(h+=i.css(e,n+Ne[a],!0,o)),r?(n==="content"&&(c-=i.css(e,"padding"+Ne[a],!0,o)),n!=="margin"&&(c-=i.css(e,"border"+Ne[a]+"Width",!0,o))):(c+=i.css(e,"padding"+Ne[a],!0,o),n!=="padding"?c+=i.css(e,"border"+Ne[a]+"Width",!0,o):l+=i.css(e,"border"+Ne[a]+"Width",!0,o));return!r&&s>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-c-l-.5))||0),c+h}function yn(e,t,n){var r=lt(e),o=!_.boxSizingReliable()||n,s=o&&i.css(e,"boxSizing",!1,r)==="border-box",a=s,l=et(e,t,r),c="offset"+t[0].toUpperCase()+t.slice(1);if(St.test(l)){if(!n)return l;l="auto"}return(!_.boxSizingReliable()&&s||!_.reliableTrDimensions()&&K(e,"tr")||l==="auto"||!parseFloat(l)&&i.css(e,"display",!1,r)==="inline")&&e.getClientRects().length&&(s=i.css(e,"boxSizing",!1,r)==="border-box",a=c in e,a&&(l=e[c])),l=parseFloat(l)||0,l+Et(e,t,n||(s?"border":"content"),a,r,l)+"px"}i.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=et(e,"opacity");return n===""?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var o,s,a,l=ye(t),c=Nt.test(t),h=e.style;if(c||(t=At(l)),a=i.cssHooks[t]||i.cssHooks[l],n!==void 0){if(s=typeof n,s==="string"&&(o=Ke.exec(n))&&o[1]&&(n=Zt(e,t,o),s="number"),n==null||n!==n)return;s==="number"&&!c&&(n+=o&&o[3]||(i.cssNumber[l]?"":"px")),!_.clearCloneStyle&&n===""&&t.indexOf("background")===0&&(h[t]="inherit"),(!a||!("set"in a)||(n=a.set(e,n,r))!==void 0)&&(c?h.setProperty(t,n):h[t]=n)}else return a&&"get"in a&&(o=a.get(e,!1,r))!==void 0?o:h[t]}},css:function(e,t,n,r){var o,s,a,l=ye(t),c=Nt.test(t);return c||(t=At(l)),a=i.cssHooks[t]||i.cssHooks[l],a&&"get"in a&&(o=a.get(e,!0,n)),o===void 0&&(o=et(e,t,r)),o==="normal"&&t in hn&&(o=hn[t]),n===""||n?(s=parseFloat(o),n===!0||isFinite(s)?s||0:o):o}}),i.each(["height","width"],function(e,t){i.cssHooks[t]={get:function(n,r,o){if(r)return fr.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?fn(n,cr,function(){return yn(n,t,o)}):yn(n,t,o)},set:function(n,r,o){var s,a=lt(n),l=!_.scrollboxSize()&&a.position==="absolute",c=l||o,h=c&&i.css(n,"boxSizing",!1,a)==="border-box",x=o?Et(n,t,o,h,a):0;return h&&l&&(x-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-Et(n,t,"border",!1,a)-.5)),x&&(s=Ke.exec(r))&&(s[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),gn(n,r,x)}}}),i.cssHooks.marginLeft=cn(_.reliableMarginLeft,function(e,t){if(t)return(parseFloat(et(e,"marginLeft"))||e.getBoundingClientRect().left-fn(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),i.each({margin:"",padding:"",border:"Width"},function(e,t){i.cssHooks[e+t]={expand:function(n){for(var r=0,o={},s=typeof n=="string"?n.split(" "):[n];r<4;r++)o[e+Ne[r]+t]=s[r]||s[r-2]||s[0];return o}},e!=="margin"&&(i.cssHooks[e+t].set=gn)}),i.fn.extend({css:function(e,t){return Se(this,function(n,r,o){var s,a,l={},c=0;if(Array.isArray(r)){for(s=lt(n),a=r.length;c<a;c++)l[r[c]]=i.css(n,r[c],!1,s);return l}return o!==void 0?i.style(n,r,o):i.css(n,r)},e,t,arguments.length>1)}});function ae(e,t,n,r,o){return new ae.prototype.init(e,t,n,r,o)}i.Tween=ae,ae.prototype={constructor:ae,init:function(e,t,n,r,o,s){this.elem=e,this.prop=n,this.easing=o||i.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(i.cssNumber[n]?"":"px")},cur:function(){var e=ae.propHooks[this.prop];return e&&e.get?e.get(this):ae.propHooks._default.get(this)},run:function(e){var t,n=ae.propHooks[this.prop];return this.options.duration?this.pos=t=i.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ae.propHooks._default.set(this),this}},ae.prototype.init.prototype=ae.prototype,ae.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=i.css(e.elem,e.prop,""),!t||t==="auto"?0:t)},set:function(e){i.fx.step[e.prop]?i.fx.step[e.prop](e):e.elem.nodeType===1&&(i.cssHooks[e.prop]||e.elem.style[At(e.prop)]!=null)?i.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},ae.propHooks.scrollTop=ae.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},i.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},i.fx=ae.prototype.init,i.fx.step={};var ze,dt,lr=/^(?:toggle|show|hide)$/,dr=/queueHooks$/;function Pt(){dt&&(L.hidden===!1&&u.requestAnimationFrame?u.requestAnimationFrame(Pt):u.setTimeout(Pt,i.fx.interval),i.fx.tick())}function vn(){return u.setTimeout(function(){ze=void 0}),ze=Date.now()}function pt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)n=Ne[r],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function mn(e,t,n){for(var r,o=(pe.tweeners[t]||[]).concat(pe.tweeners["*"]),s=0,a=o.length;s<a;s++)if(r=o[s].call(n,t,e))return r}function pr(e,t,n){var r,o,s,a,l,c,h,x,w="width"in t||"height"in t,v=this,N={},q=e.style,X=e.nodeType&&ft(e),W=j.get(e,"fxshow");n.queue||(a=i._queueHooks(e,"fx"),a.unqueued==null&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,v.always(function(){v.always(function(){a.unqueued--,i.queue(e,"fx").length||a.empty.fire()})}));for(r in t)if(o=t[r],lr.test(o)){if(delete t[r],s=s||o==="toggle",o===(X?"hide":"show"))if(o==="show"&&W&&W[r]!==void 0)X=!0;else continue;N[r]=W&&W[r]||i.style(e,r)}if(c=!i.isEmptyObject(t),!(!c&&i.isEmptyObject(N))){w&&e.nodeType===1&&(n.overflow=[q.overflow,q.overflowX,q.overflowY],h=W&&W.display,h==null&&(h=j.get(e,"display")),x=i.css(e,"display"),x==="none"&&(h?x=h:(We([e],!0),h=e.style.display||h,x=i.css(e,"display"),We([e]))),(x==="inline"||x==="inline-block"&&h!=null)&&i.css(e,"float")==="none"&&(c||(v.done(function(){q.display=h}),h==null&&(x=q.display,h=x==="none"?"":x)),q.display="inline-block")),n.overflow&&(q.overflow="hidden",v.always(function(){q.overflow=n.overflow[0],q.overflowX=n.overflow[1],q.overflowY=n.overflow[2]})),c=!1;for(r in N)c||(W?"hidden"in W&&(X=W.hidden):W=j.access(e,"fxshow",{display:h}),s&&(W.hidden=!X),X&&We([e],!0),v.done(function(){X||We([e]),j.remove(e,"fxshow");for(r in N)i.style(e,r,N[r])})),c=mn(X?W[r]:0,r,v),r in W||(W[r]=c.start,X&&(c.end=c.start,c.start=0))}}function hr(e,t){var n,r,o,s,a;for(n in e)if(r=ye(n),o=t[r],s=e[n],Array.isArray(s)&&(o=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),a=i.cssHooks[r],a&&"expand"in a){s=a.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=o)}else t[r]=o}function pe(e,t,n){var r,o,s=0,a=pe.prefilters.length,l=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var w=ze||vn(),v=Math.max(0,h.startTime+h.duration-w),N=v/h.duration||0,q=1-N,X=0,W=h.tweens.length;X<W;X++)h.tweens[X].run(q);return l.notifyWith(e,[h,q,v]),q<1&&W?v:(W||l.notifyWith(e,[h,1,0]),l.resolveWith(e,[h]),!1)},h=l.promise({elem:e,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},n),originalProperties:t,originalOptions:n,startTime:ze||vn(),duration:n.duration,tweens:[],createTween:function(w,v){var N=i.Tween(e,h.opts,w,v,h.opts.specialEasing[w]||h.opts.easing);return h.tweens.push(N),N},stop:function(w){var v=0,N=w?h.tweens.length:0;if(o)return this;for(o=!0;v<N;v++)h.tweens[v].run(1);return w?(l.notifyWith(e,[h,1,0]),l.resolveWith(e,[h,w])):l.rejectWith(e,[h,w]),this}}),x=h.props;for(hr(x,h.opts.specialEasing);s<a;s++)if(r=pe.prefilters[s].call(h,e,x,h.opts),r)return F(r.stop)&&(i._queueHooks(h.elem,h.opts.queue).stop=r.stop.bind(r)),r;return i.map(x,mn,h),F(h.opts.start)&&h.opts.start.call(e,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),i.fx.timer(i.extend(c,{elem:e,anim:h,queue:h.opts.queue})),h}i.Animation=i.extend(pe,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Zt(n.elem,e,Ke.exec(t),n),n}]},tweener:function(e,t){F(e)?(t=e,e=["*"]):e=e.match(ge);for(var n,r=0,o=e.length;r<o;r++)n=e[r],pe.tweeners[n]=pe.tweeners[n]||[],pe.tweeners[n].unshift(t)},prefilters:[pr],prefilter:function(e,t){t?pe.prefilters.unshift(e):pe.prefilters.push(e)}}),i.speed=function(e,t,n){var r=e&&typeof e=="object"?i.extend({},e):{complete:n||!n&&t||F(e)&&e,duration:e,easing:n&&t||t&&!F(t)&&t};return i.fx.off?r.duration=0:typeof r.duration!="number"&&(r.duration in i.fx.speeds?r.duration=i.fx.speeds[r.duration]:r.duration=i.fx.speeds._default),(r.queue==null||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){F(r.old)&&r.old.call(this),r.queue&&i.dequeue(this,r.queue)},r},i.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ft).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=i.isEmptyObject(e),s=i.speed(t,n,r),a=function(){var l=pe(this,i.extend({},e),s);(o||j.get(this,"finish"))&&l.stop(!0)};return a.finish=a,o||s.queue===!1?this.each(a):this.queue(s.queue,a)},stop:function(e,t,n){var r=function(o){var s=o.stop;delete o.stop,s(n)};return typeof e!="string"&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var o=!0,s=e!=null&&e+"queueHooks",a=i.timers,l=j.get(this);if(s)l[s]&&l[s].stop&&r(l[s]);else for(s in l)l[s]&&l[s].stop&&dr.test(s)&&r(l[s]);for(s=a.length;s--;)a[s].elem===this&&(e==null||a[s].queue===e)&&(a[s].anim.stop(n),o=!1,a.splice(s,1));(o||!n)&&i.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=j.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],s=i.timers,a=r?r.length:0;for(n.finish=!0,i.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),i.each(["toggle","show","hide"],function(e,t){var n=i.fn[t];i.fn[t]=function(r,o,s){return r==null||typeof r=="boolean"?n.apply(this,arguments):this.animate(pt(t,!0),r,o,s)}}),i.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){i.fn[e]=function(n,r,o){return this.animate(t,n,r,o)}}),i.timers=[],i.fx.tick=function(){var e,t=0,n=i.timers;for(ze=Date.now();t<n.length;t++)e=n[t],!e()&&n[t]===e&&n.splice(t--,1);n.length||i.fx.stop(),ze=void 0},i.fx.timer=function(e){i.timers.push(e),i.fx.start()},i.fx.interval=13,i.fx.start=function(){dt||(dt=!0,Pt())},i.fx.stop=function(){dt=null},i.fx.speeds={slow:600,fast:200,_default:400},i.fn.delay=function(e,t){return e=i.fx&&i.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(n,r){var o=u.setTimeout(n,e);r.stop=function(){u.clearTimeout(o)}})},function(){var e=L.createElement("input"),t=L.createElement("select"),n=t.appendChild(L.createElement("option"));e.type="checkbox",_.checkOn=e.value!=="",_.optSelected=n.selected,e=L.createElement("input"),e.value="t",e.type="radio",_.radioValue=e.value==="t"}();var xn,tt=i.expr.attrHandle;i.fn.extend({attr:function(e,t){return Se(this,i.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){i.removeAttr(this,e)})}}),i.extend({attr:function(e,t,n){var r,o,s=e.nodeType;if(!(s===3||s===8||s===2)){if(typeof e.getAttribute>"u")return i.prop(e,t,n);if((s!==1||!i.isXMLDoc(e))&&(o=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?xn:void 0)),n!==void 0){if(n===null){i.removeAttr(e,t);return}return o&&"set"in o&&(r=o.set(e,n,t))!==void 0?r:(e.setAttribute(t,n+""),n)}return o&&"get"in o&&(r=o.get(e,t))!==null?r:(r=i.find.attr(e,t),r??void 0)}},attrHooks:{type:{set:function(e,t){if(!_.radioValue&&t==="radio"&&K(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(ge);if(o&&e.nodeType===1)for(;n=o[r++];)e.removeAttribute(n)}}),xn={set:function(e,t,n){return t===!1?i.removeAttr(e,n):e.setAttribute(n,n),n}},i.each(i.expr.match.bool.source.match(/\w+/g),function(e,t){var n=tt[t]||i.find.attr;tt[t]=function(r,o,s){var a,l,c=o.toLowerCase();return s||(l=tt[c],tt[c]=a,a=n(r,o,s)!=null?c:null,tt[c]=l),a}});var gr=/^(?:input|select|textarea|button)$/i,yr=/^(?:a|area)$/i;i.fn.extend({prop:function(e,t){return Se(this,i.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[i.propFix[e]||e]})}}),i.extend({prop:function(e,t,n){var r,o,s=e.nodeType;if(!(s===3||s===8||s===2))return(s!==1||!i.isXMLDoc(e))&&(t=i.propFix[t]||t,o=i.propHooks[t]),n!==void 0?o&&"set"in o&&(r=o.set(e,n,t))!==void 0?r:e[t]=n:o&&"get"in o&&(r=o.get(e,t))!==null?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=i.find.attr(e,"tabindex");return t?parseInt(t,10):gr.test(e.nodeName)||yr.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(i.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});function Oe(e){var t=e.match(ge)||[];return t.join(" ")}function Me(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:typeof e=="string"?e.match(ge)||[]:[]}i.fn.extend({addClass:function(e){var t,n,r,o,s,a;return F(e)?this.each(function(l){i(this).addClass(e.call(this,l,Me(this)))}):(t=kt(e),t.length?this.each(function(){if(r=Me(this),n=this.nodeType===1&&" "+Oe(r)+" ",n){for(s=0;s<t.length;s++)o=t[s],n.indexOf(" "+o+" ")<0&&(n+=o+" ");a=Oe(n),r!==a&&this.setAttribute("class",a)}}):this)},removeClass:function(e){var t,n,r,o,s,a;return F(e)?this.each(function(l){i(this).removeClass(e.call(this,l,Me(this)))}):arguments.length?(t=kt(e),t.length?this.each(function(){if(r=Me(this),n=this.nodeType===1&&" "+Oe(r)+" ",n){for(s=0;s<t.length;s++)for(o=t[s];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");a=Oe(n),r!==a&&this.setAttribute("class",a)}}):this):this.attr("class","")},toggleClass:function(e,t){var n,r,o,s,a=typeof e,l=a==="string"||Array.isArray(e);return F(e)?this.each(function(c){i(this).toggleClass(e.call(this,c,Me(this),t),t)}):typeof t=="boolean"&&l?t?this.addClass(e):this.removeClass(e):(n=kt(e),this.each(function(){if(l)for(s=i(this),o=0;o<n.length;o++)r=n[o],s.hasClass(r)?s.removeClass(r):s.addClass(r);else(e===void 0||a==="boolean")&&(r=Me(this),r&&j.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||e===!1?"":j.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(n.nodeType===1&&(" "+Oe(Me(n))+" ").indexOf(t)>-1)return!0;return!1}});var vr=/\r/g;i.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=F(e),this.each(function(s){var a;this.nodeType===1&&(r?a=e.call(this,s,i(this).val()):a=e,a==null?a="":typeof a=="number"?a+="":Array.isArray(a)&&(a=i.map(a,function(l){return l==null?"":l+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],(!t||!("set"in t)||t.set(this,a,"value")===void 0)&&(this.value=a))})):o?(t=i.valHooks[o.type]||i.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(o,"value"))!==void 0?n:(n=o.value,typeof n=="string"?n.replace(vr,""):n??"")):void 0}}),i.extend({valHooks:{option:{get:function(e){var t=i.find.attr(e,"value");return t??Oe(i.text(e))}},select:{get:function(e){var t,n,r,o=e.options,s=e.selectedIndex,a=e.type==="select-one",l=a?null:[],c=a?s+1:o.length;for(s<0?r=c:r=a?s:0;r<c;r++)if(n=o[r],(n.selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!K(n.parentNode,"optgroup"))){if(t=i(n).val(),a)return t;l.push(t)}return l},set:function(e,t){for(var n,r,o=e.options,s=i.makeArray(t),a=o.length;a--;)r=o[a],(r.selected=i.inArray(i.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=i.inArray(i(e).val(),t)>-1}},_.checkOn||(i.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var nt=u.location,bn={guid:Date.now()},Dt=/\?/;i.parseXML=function(e){var t,n;if(!e||typeof e!="string")return null;try{t=new u.DOMParser().parseFromString(e,"text/xml")}catch{}return n=t&&t.getElementsByTagName("parsererror")[0],(!t||n)&&i.error("Invalid XML: "+(n?i.map(n.childNodes,function(r){return r.textContent}).join(`
`):e)),t};var wn=/^(?:focusinfocus|focusoutblur)$/,Tn=function(e){e.stopPropagation()};i.extend(i.event,{trigger:function(e,t,n,r){var o,s,a,l,c,h,x,w,v=[n||L],N=Te.call(e,"type")?e.type:e,q=Te.call(e,"namespace")?e.namespace.split("."):[];if(s=w=a=n=n||L,!(n.nodeType===3||n.nodeType===8)&&!wn.test(N+i.event.triggered)&&(N.indexOf(".")>-1&&(q=N.split("."),N=q.shift(),q.sort()),c=N.indexOf(":")<0&&"on"+N,e=e[i.expando]?e:new i.Event(N,typeof e=="object"&&e),e.isTrigger=r?2:3,e.namespace=q.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=t==null?[e]:i.makeArray(t,[e]),x=i.event.special[N]||{},!(!r&&x.trigger&&x.trigger.apply(n,t)===!1))){if(!r&&!x.noBubble&&!He(n)){for(l=x.delegateType||N,wn.test(l+N)||(s=s.parentNode);s;s=s.parentNode)v.push(s),a=s;a===(n.ownerDocument||L)&&v.push(a.defaultView||a.parentWindow||u)}for(o=0;(s=v[o++])&&!e.isPropagationStopped();)w=s,e.type=o>1?l:x.bindType||N,h=(j.get(s,"events")||Object.create(null))[e.type]&&j.get(s,"handle"),h&&h.apply(s,t),h=c&&s[c],h&&h.apply&&Qe(s)&&(e.result=h.apply(s,t),e.result===!1&&e.preventDefault());return e.type=N,!r&&!e.isDefaultPrevented()&&(!x._default||x._default.apply(v.pop(),t)===!1)&&Qe(n)&&c&&F(n[N])&&!He(n)&&(a=n[c],a&&(n[c]=null),i.event.triggered=N,e.isPropagationStopped()&&w.addEventListener(N,Tn),n[N](),e.isPropagationStopped()&&w.removeEventListener(N,Tn),i.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(e,t,n){var r=i.extend(new i.Event,n,{type:e,isSimulated:!0});i.event.trigger(r,null,t)}}),i.fn.extend({trigger:function(e,t){return this.each(function(){i.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return i.event.trigger(e,t,n,!0)}});var mr=/\[\]$/,Cn=/\r?\n/g,xr=/^(?:submit|button|image|reset|file)$/i,br=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var o;if(Array.isArray(t))i.each(t,function(s,a){n||mr.test(e)?r(e,a):jt(e+"["+(typeof a=="object"&&a!=null?s:"")+"]",a,n,r)});else if(!n&&$e(t)==="object")for(o in t)jt(e+"["+o+"]",t[o],n,r);else r(e,t)}i.param=function(e,t){var n,r=[],o=function(s,a){var l=F(a)?a():a;r[r.length]=encodeURIComponent(s)+"="+encodeURIComponent(l??"")};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!i.isPlainObject(e))i.each(e,function(){o(this.name,this.value)});else for(n in e)jt(n,e[n],t,o);return r.join("&")},i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=i.prop(this,"elements");return e?i.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!i(this).is(":disabled")&&br.test(this.nodeName)&&!xr.test(e)&&(this.checked||!Ze.test(e))}).map(function(e,t){var n=i(this).val();return n==null?null:Array.isArray(n)?i.map(n,function(r){return{name:t.name,value:r.replace(Cn,`\r
`)}}):{name:t.name,value:n.replace(Cn,`\r
`)}}).get()}});var wr=/%20/g,Tr=/#.*$/,Cr=/([?&])_=[^&]*/,Sr=/^(.*?):[ \t]*([^\r\n]*)$/mg,Nr=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ar=/^(?:GET|HEAD)$/,Er=/^\/\//,Sn={},Ot={},Nn="*/".concat("*"),Mt=L.createElement("a");Mt.href=nt.href;function An(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,o=0,s=t.toLowerCase().match(ge)||[];if(F(n))for(;r=s[o++];)r[0]==="+"?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function En(e,t,n,r){var o={},s=e===Ot;function a(l){var c;return o[l]=!0,i.each(e[l]||[],function(h,x){var w=x(t,n,r);if(typeof w=="string"&&!s&&!o[w])return t.dataTypes.unshift(w),a(w),!1;if(s)return!(c=w)}),c}return a(t.dataTypes[0])||!o["*"]&&a("*")}function It(e,t){var n,r,o=i.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&i.extend(!0,e,r),e}function Pr(e,t,n){for(var r,o,s,a,l=e.contents,c=e.dataTypes;c[0]==="*";)c.shift(),r===void 0&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r){for(o in l)if(l[o]&&l[o].test(r)){c.unshift(o);break}}if(c[0]in n)s=c[0];else{for(o in n){if(!c[0]||e.converters[o+" "+c[0]]){s=o;break}a||(a=o)}s=s||a}if(s)return s!==c[0]&&c.unshift(s),n[s]}function kr(e,t,n,r){var o,s,a,l,c,h={},x=e.dataTypes.slice();if(x[1])for(a in e.converters)h[a.toLowerCase()]=e.converters[a];for(s=x.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=s,s=x.shift(),s){if(s==="*")s=c;else if(c!=="*"&&c!==s){if(a=h[c+" "+s]||h["* "+s],!a){for(o in h)if(l=o.split(" "),l[1]===s&&(a=h[c+" "+l[0]]||h["* "+l[0]],a)){a===!0?a=h[o]:h[o]!==!0&&(s=l[0],x.unshift(l[1]));break}}if(a!==!0)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(w){return{state:"parsererror",error:a?w:"No conversion from "+c+" to "+s}}}}return{state:"success",data:t}}i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:nt.href,type:"GET",isLocal:Nr.test(nt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?It(It(e,i.ajaxSettings),t):It(i.ajaxSettings,e)},ajaxPrefilter:An(Sn),ajaxTransport:An(Ot),ajax:function(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};var n,r,o,s,a,l,c,h,x,w,v=i.ajaxSetup({},t),N=v.context||v,q=v.context&&(N.nodeType||N.jquery)?i(N):i.event,X=i.Deferred(),W=i.Callbacks("once memory"),ne=v.statusCode||{},te={},ve={},me="canceled",U={readyState:0,getResponseHeader:function(G){var Z;if(c){if(!s)for(s={};Z=Sr.exec(o);)s[Z[1].toLowerCase()+" "]=(s[Z[1].toLowerCase()+" "]||[]).concat(Z[2]);Z=s[G.toLowerCase()+" "]}return Z==null?null:Z.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(G,Z){return c==null&&(G=ve[G.toLowerCase()]=ve[G.toLowerCase()]||G,te[G]=Z),this},overrideMimeType:function(G){return c==null&&(v.mimeType=G),this},statusCode:function(G){var Z;if(G)if(c)U.always(G[U.status]);else for(Z in G)ne[Z]=[ne[Z],G[Z]];return this},abort:function(G){var Z=G||me;return n&&n.abort(Z),Ie(0,Z),this}};if(X.promise(U),v.url=((e||v.url||nt.href)+"").replace(Er,nt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(ge)||[""],v.crossDomain==null){l=L.createElement("a");try{l.href=v.url,l.href=l.href,v.crossDomain=Mt.protocol+"//"+Mt.host!=l.protocol+"//"+l.host}catch{v.crossDomain=!0}}if(v.data&&v.processData&&typeof v.data!="string"&&(v.data=i.param(v.data,v.traditional)),En(Sn,v,t,U),c)return U;h=i.event&&v.global,h&&i.active++===0&&i.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ar.test(v.type),r=v.url.replace(Tr,""),v.hasContent?v.data&&v.processData&&(v.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(v.data=v.data.replace(wr,"+")):(w=v.url.slice(r.length),v.data&&(v.processData||typeof v.data=="string")&&(r+=(Dt.test(r)?"&":"?")+v.data,delete v.data),v.cache===!1&&(r=r.replace(Cr,"$1"),w=(Dt.test(r)?"&":"?")+"_="+bn.guid+++w),v.url=r+w),v.ifModified&&(i.lastModified[r]&&U.setRequestHeader("If-Modified-Since",i.lastModified[r]),i.etag[r]&&U.setRequestHeader("If-None-Match",i.etag[r])),(v.data&&v.hasContent&&v.contentType!==!1||t.contentType)&&U.setRequestHeader("Content-Type",v.contentType),U.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+(v.dataTypes[0]!=="*"?", "+Nn+"; q=0.01":""):v.accepts["*"]);for(x in v.headers)U.setRequestHeader(x,v.headers[x]);if(v.beforeSend&&(v.beforeSend.call(N,U,v)===!1||c))return U.abort();if(me="abort",W.add(v.complete),U.done(v.success),U.fail(v.error),n=En(Ot,v,t,U),!n)Ie(-1,"No Transport");else{if(U.readyState=1,h&&q.trigger("ajaxSend",[U,v]),c)return U;v.async&&v.timeout>0&&(a=u.setTimeout(function(){U.abort("timeout")},v.timeout));try{c=!1,n.send(te,Ie)}catch(G){if(c)throw G;Ie(-1,G)}}function Ie(G,Z,it,qt){var xe,ot,be,Pe,ke,le=Z;c||(c=!0,a&&u.clearTimeout(a),n=void 0,o=qt||"",U.readyState=G>0?4:0,xe=G>=200&&G<300||G===304,it&&(Pe=Pr(v,U,it)),!xe&&i.inArray("script",v.dataTypes)>-1&&i.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),Pe=kr(v,Pe,U,xe),xe?(v.ifModified&&(ke=U.getResponseHeader("Last-Modified"),ke&&(i.lastModified[r]=ke),ke=U.getResponseHeader("etag"),ke&&(i.etag[r]=ke)),G===204||v.type==="HEAD"?le="nocontent":G===304?le="notmodified":(le=Pe.state,ot=Pe.data,be=Pe.error,xe=!be)):(be=le,(G||!le)&&(le="error",G<0&&(G=0))),U.status=G,U.statusText=(Z||le)+"",xe?X.resolveWith(N,[ot,le,U]):X.rejectWith(N,[U,le,be]),U.statusCode(ne),ne=void 0,h&&q.trigger(xe?"ajaxSuccess":"ajaxError",[U,v,xe?ot:be]),W.fireWith(N,[U,le]),h&&(q.trigger("ajaxComplete",[U,v]),--i.active||i.event.trigger("ajaxStop")))}return U},getJSON:function(e,t,n){return i.get(e,t,n,"json")},getScript:function(e,t){return i.get(e,void 0,t,"script")}}),i.each(["get","post"],function(e,t){i[t]=function(n,r,o,s){return F(r)&&(s=s||o,o=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:s,data:r,success:o},i.isPlainObject(n)&&n))}}),i.ajaxPrefilter(function(e){var t;for(t in e.headers)t.toLowerCase()==="content-type"&&(e.contentType=e.headers[t]||"")}),i._evalUrl=function(e,t,n){return i.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(r){i.globalEval(r,t,n)}})},i.fn.extend({wrapAll:function(e){var t;return this[0]&&(F(e)&&(e=e.call(this[0])),t=i(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(e){return F(e)?this.each(function(t){i(this).wrapInner(e.call(this,t))}):this.each(function(){var t=i(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=F(e);return this.each(function(n){i(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(e){return!i.expr.pseudos.visible(e)},i.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new u.XMLHttpRequest}catch{}};var Dr={0:200,1223:204},rt=i.ajaxSettings.xhr();_.cors=!!rt&&"withCredentials"in rt,_.ajax=rt=!!rt,i.ajaxTransport(function(e){var t,n;if(_.cors||rt&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),!e.crossDomain&&!r["X-Requested-With"]&&(r["X-Requested-With"]="XMLHttpRequest");for(s in r)a.setRequestHeader(s,r[s]);t=function(l){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,l==="abort"?a.abort():l==="error"?typeof a.status!="number"?o(0,"error"):o(a.status,a.statusText):o(Dr[a.status]||a.status,a.statusText,(a.responseType||"text")!=="text"||typeof a.responseText!="string"?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),a.onabort!==void 0?a.onabort=n:a.onreadystatechange=function(){a.readyState===4&&u.setTimeout(function(){t&&n()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}}),i.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return i.globalEval(e),e}}}),i.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),i.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(r,o){t=i("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(s){t.remove(),n=null,s&&o(s.type==="error"?404:200,s.type)}),L.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Pn=[],Rt=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Pn.pop()||i.expando+"_"+bn.guid++;return this[e]=!0,e}}),i.ajaxPrefilter("json jsonp",function(e,t,n){var r,o,s,a=e.jsonp!==!1&&(Rt.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Rt.test(e.data)&&"data");if(a||e.dataTypes[0]==="jsonp")return r=e.jsonpCallback=F(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Rt,"$1"+r):e.jsonp!==!1&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||i.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=u[r],u[r]=function(){s=arguments},n.always(function(){o===void 0?i(u).removeProp(r):u[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Pn.push(r)),s&&F(o)&&o(s[0]),s=o=void 0}),"script"}),_.createHTMLDocument=function(){var e=L.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",e.childNodes.length===2}(),i.parseHTML=function(e,t,n){if(typeof e!="string")return[];typeof t=="boolean"&&(n=t,t=!1);var r,o,s;return t||(_.createHTMLDocument?(t=L.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=L.location.href,t.head.appendChild(r)):t=L),o=Xt.exec(e),s=!n&&[],o?[t.createElement(o[1])]:(o=rn([e],t,s),s&&s.length&&i(s).remove(),i.merge([],o.childNodes))},i.fn.load=function(e,t,n){var r,o,s,a=this,l=e.indexOf(" ");return l>-1&&(r=Oe(e.slice(l)),e=e.slice(0,l)),F(t)?(n=t,t=void 0):t&&typeof t=="object"&&(o="POST"),a.length>0&&i.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(c){s=arguments,a.html(r?i("<div>").append(i.parseHTML(c)).find(r):c)}).always(n&&function(c,h){a.each(function(){n.apply(this,s||[c.responseText,h,c])})}),this},i.expr.pseudos.animated=function(e){return i.grep(i.timers,function(t){return e===t.elem}).length},i.offset={setOffset:function(e,t,n){var r,o,s,a,l,c,h,x=i.css(e,"position"),w=i(e),v={};x==="static"&&(e.style.position="relative"),l=w.offset(),s=i.css(e,"top"),c=i.css(e,"left"),h=(x==="absolute"||x==="fixed")&&(s+c).indexOf("auto")>-1,h?(r=w.position(),a=r.top,o=r.left):(a=parseFloat(s)||0,o=parseFloat(c)||0),F(t)&&(t=t.call(e,n,i.extend({},l))),t.top!=null&&(v.top=t.top-l.top+a),t.left!=null&&(v.left=t.left-l.left+o),"using"in t?t.using.call(e,v):w.css(v)}},i.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(o){i.offset.setOffset(this,e,o)});var t,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if(i.css(r,"position")==="fixed")t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&i.css(e,"position")==="static";)e=e.parentNode;e&&e!==r&&e.nodeType===1&&(o=i(e).offset(),o.top+=i.css(e,"borderTopWidth",!0),o.left+=i.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-i.css(r,"marginTop",!0),left:t.left-o.left-i.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&i.css(e,"position")==="static";)e=e.offsetParent;return e||je})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=t==="pageYOffset";i.fn[e]=function(r){return Se(this,function(o,s,a){var l;if(He(o)?l=o:o.nodeType===9&&(l=o.defaultView),a===void 0)return l?l[t]:o[s];l?l.scrollTo(n?l.pageXOffset:a,n?a:l.pageYOffset):o[s]=a},e,r,arguments.length)}}),i.each(["top","left"],function(e,t){i.cssHooks[t]=cn(_.pixelPosition,function(n,r){if(r)return r=et(n,t),St.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(e,t){i.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){i.fn[r]=function(o,s){var a=arguments.length&&(n||typeof o!="boolean"),l=n||(o===!0||s===!0?"margin":"border");return Se(this,function(c,h,x){var w;return He(c)?r.indexOf("outer")===0?c["inner"+e]:c.document.documentElement["client"+e]:c.nodeType===9?(w=c.documentElement,Math.max(c.body["scroll"+e],w["scroll"+e],c.body["offset"+e],w["offset"+e],w["client"+e])):x===void 0?i.css(c,h,l):i.style(c,h,x,l)},t,a?o:void 0,a)}})}),i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){i.fn[t]=function(n){return this.on(t,n)}}),i.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){i.fn[t]=function(n,r){return arguments.length>0?this.on(t,null,n,r):this.trigger(t)}});var jr=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;i.proxy=function(e,t){var n,r,o;if(typeof t=="string"&&(n=e[t],t=e,e=n),!!F(e))return r=T.call(arguments,2),o=function(){return e.apply(t||this,r.concat(T.call(arguments)))},o.guid=e.guid=e.guid||i.guid++,o},i.holdReady=function(e){e?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=K,i.isFunction=F,i.isWindow=He,i.camelCase=ye,i.type=$e,i.now=Date.now,i.isNumeric=function(e){var t=i.type(e);return(t==="number"||t==="string")&&!isNaN(e-parseFloat(e))},i.trim=function(e){return e==null?"":(e+"").replace(jr,"$1")};var Or=u.jQuery,Mr=u.$;return i.noConflict=function(e){return u.$===i&&(u.$=Mr),e&&u.jQuery===i&&(u.jQuery=Or),i},typeof d>"u"&&(u.jQuery=u.$=i),i})})(jquery);var jqueryExports=jquery.exports;const $=getDefaultExportFromCjs(jqueryExports),actionAddins={};class MustInputAction{constructor(){k(this,"name");k(this,"actionProps");k(this,"props");this.name="必須チェック",this.actionProps=[],this.register(),this.props={field:{code:""},message:""},this.register()}async process(u,d){var O;let g={canNext:!0,result:!1};if(this.actionProps=u.actionProps,!("field"in u.ActionValue)&&!("message"in u.ActionValue))return g;this.props=u.ActionValue;const C=d.record,T=(O=C[this.props.field.code])==null?void 0:O.value;return T===void 0||T===""?(C[this.props.field.code].error=this.props.message,g):(g={canNext:!0,result:!0},g)}register(){actionAddins[this.name]=this}}new MustInputAction;class Formatter{static numberFormat(u,d){let g=Math.floor(Math.abs(u)).toString(),C=Math.abs(u).toString().split(".")[1]||"",T=u<0,O=d.includes("%");O&&(u*=100,g=Math.floor(Math.abs(u)).toString(),C=Math.abs(u).toString().split(".")[1]||"");let[I,z]=d.split(".");if(g=I?g.padStart(I.replace(/[^0]/g,"").length,"0"):g,C=C.padEnd(z?z.length:0,"0"),/,/.test(I)){const fe=[];for(;g.length;)fe.unshift(g.slice(-3)),g=g.slice(0,-3);g=fe.join(",")}let ee=z?`${g}.${C}`:g;return ee=T?`-${ee}`:ee,O?`${ee}%`:ee}static dateFormat(u,d){const g=u.getFullYear(),C=u.getMonth()+1,T=u.getDate(),O=u.getHours(),I=u.getMinutes(),z=u.getSeconds(),ee=u.getMilliseconds(),fe=-u.getTimezoneOffset()/60,Te={yyyy:g.toString(),yy:g.toString().slice(-2),MM:C.toString().padStart(2,"0"),M:C.toString(),dd:T.toString().padStart(2,"0"),d:T.toString(),HH:O.toString().padStart(2,"0"),H:O.toString(),hh:(O>12?O-12:O).toString().padStart(2,"0"),h:(O>12?O-12:O).toString(),mm:I.toString().padStart(2,"0"),m:I.toString(),ss:z.toString().padStart(2,"0"),s:z.toString(),fff:ee.toString().padStart(3,"0"),zzz:(fe>=0?"+":"-")+Math.abs(fe).toString().padStart(2,"0")+":00"};return d.replace(/yyyy|yy|MM|M|dd|d|HH|H|hh|h|mm|m|ss|s|fff|zzz/g,qe=>Te[qe]||qe)}}const autoNumbering="";class AutoNumbering{constructor(){k(this,"name");k(this,"actionProps");k(this,"props");this.name="自動採番する",this.actionProps=[],this.register(),this.props={field:{code:""},format:"",prefix:"",suffix:"",verName:""},globalThis.window.$format=this.format,this.register()}async process(S,u,d){let g={canNext:!1,result:!1};try{if(this.actionProps=S.actionProps,!("field"in S.ActionValue)&&!("format"in S.ActionValue))return g;this.props=S.ActionValue;const C=u.record,T=await this.createNumber(this.props);return C[this.props.field.code].value=T,this.props.verName&&(d.variables[this.props.verName]=T),g={canNext:!0,result:!0},g}catch(C){return console.error(C),u.error="処理中異常が発生しました。",{canNext:!1,result:!1}}}execTemplate(S){if(S===void 0)return"";const u=/\$\{([^}]+)\}/g;return S.replace(u,(d,g)=>this.execEval(d,g))}execEval(match,expr){return console.log(match),eval(expr)}format(S){const u=new Date;return Formatter.dateFormat(u,S)}async createNumber(S){let u="",d="",g="",C=1;try{C=await this.fetchNo()}catch(T){console.log(T)}return S.format!==void 0&&S.format!==""?u=Formatter.numberFormat(C,S.format):u=C.toString(10),S.prefix!==void 0&&S.prefix!==""&&(d=this.execTemplate(S.prefix)),S.suffix!==void 0&&S.suffix!==""&&(g=this.execTemplate(S.suffix)),`${d}${u}${g}`}async fetchNo(){let S=1;return await new kintone.Promise((u,d)=>{const g=kintone.api.url("/k/v1/records",!0),C={app:kintone.app.getId(),fields:["$id"],query:"limit 1"};return kintone.api(g,"GET",C).then(T=>{T.records[0]!==null&&(S=parseInt(T.records[0].$id.value,10)+1),u(S)}).catch(T=>{d(T)})})}register(){actionAddins[this.name]=this}}new AutoNumbering;class GroupNode{constructor(u,d){k(this,"index");k(this,"type");k(this,"children");k(this,"parent");k(this,"logicalOperator");this.index=0,this.type=d==null?"root":"logicgroup",this.logicalOperator=u,this.parent=d,this.children=[]}get label(){return this.logicalOperator}get header(){return this.type==="root"?"root":"generic"}get expanded(){return this.children.length>0}static fromJSON(u,d=null){const g=new GroupNode(u.logicalOperator,d);return g.index=u.index,g.children=u.children.map(C=>C.type==="logicgroup"?GroupNode.fromJSON(C,g):ConditionNode.fromJSON(C,g)),g}}class ConditionNode{constructor(u,d,g,C){k(this,"index");k(this,"type");k(this,"parent");k(this,"object");k(this,"operator");k(this,"value");this.index=0,this.type="condition",this.object=u,this.operator=d,this.value=g,this.parent=C}get logicalOperator(){return this.parent.logicalOperator}get header(){return"generic"}static fromJSON(u,d){const g=new ConditionNode(u.object,u.operator,u.value,d);return g.index=u.index,g}}class ConditionTree{constructor(){k(this,"root");k(this,"maxIndex");this.maxIndex=0,this.root=new GroupNode("AND",null)}addNode(u,d){this.maxIndex++,d.index=this.maxIndex,u.children.push(d)}removeNode(u){if(u.parent===null)throw new Error("ルートノード削除できません");{const d=u.parent,g=d.children.indexOf(u);g>-1&&d.children.splice(g,1)}}findByIndex(u){return this.findChildren(this.root,u)}findChildren(u,d){if(u.index===d)return u;for(const g of u.children){if(g.index===d)return g;if(g.type!=="condition"){const C=this.findChildren(g,d);if(C)return C}}}getMaxIndex(u){let d=u.index;return u.type!=="condition"&&u.children.forEach(C=>{const T=this.getMaxIndex(C);T>d&&(d=T)}),d}buildConditionString(u){if(u.type!=="condition"){let d="(";const g=u;for(let C=0;C<g.children.length;C++){const T=this.buildConditionString(g.children[C]);T!==""&&(d+=T,C<g.children.length-1&&(d+=` ${g.logicalOperator} `))}return d+=")",d}else{const d=u;if(d.object&&d.operator){let g=d.value;return g&&typeof g=="object"&&"label"in g&&(g=d.value.label),`${d.object.name} ${d.operator} '${g}'`}else return""}}getConditions(u){const d=[];return u.children.forEach(g=>{g.type==="condition"?d.push(g):d.push(...this.getConditions(g))}),d}getGroups(u){const d=[];return d.push(u.index),u.children.forEach(g=>{g.type!=="condition"&&d.push(...this.getGroups(g))}),d}fromJson(u){const d=JSON.parse(u);return this.root=GroupNode.fromJSON(d),this.maxIndex=this.getMaxIndex(this.root),this.root}toJson(){return JSON.stringify(this.root,(u,d)=>u==="parent"?d?d.type:null:d)}evaluate(u,d){if(u.type==="condition")return this.evaluateCondition(u,d);if(u.type==="logicgroup"||u.type==="root"){const g=u,C=g.children.map(T=>this.evaluate(T,d));if(g.logicalOperator==="AND")return C.every(T=>T);if(g.logicalOperator==="OR")return C.some(T=>T);throw new Error("Unsupported logical operator")}else throw new Error("Unsupported node type")}getObjectValue(u,d){if(!(!u||typeof u!="object"||!("objectType"in u))){if(u.objectType==="field"){const g=d.record[u.code];return g.type==="NUMBER"&&g.value!==void 0?Number(g.value):g.value}else if(u.objectType==="variable")return d.variables[u.name].value}}getConditionValue(u){if(!u||typeof u!="object")return u;if("label"in u)return u.label;if("value"in u)return u.value;if("name"in u)return u.name}evaluateCondition(u,d){const{object:g,operator:C,value:T}=u,O=this.getObjectValue(g,d),I=this.getConditionValue(T);switch(C){case"=":case"!=":case">":case">=":case"<":case"<=":return this.compare(C,O,I);case"contains":return this.contains(O,I);case"not contains":return!this.contains(O,I);case"start With":return this.startWith(O,I);case"not start with":return!this.startWith(O,I);case"end with":return this.endsWith(O,I);case"not end with":return this.endsWith(O,I);default:throw new Error("Unsupported operator")}}compare(u,d,g){if((d==null||d==="")&&(g==null||g==="")&&(d="",g=""),d instanceof Date){const C=new Date(g);isNaN(C.getTime())||(g=C)}else if(typeof d=="number"){const C=Number(g);isNaN(C)||(g=C)}else typeof d=="string"&&(g=String(g));switch(u){case"=":return d===g;case"!=":return d!==g;case">":return d>g;case">=":return d>=g;case"<":return d<g;case"<=":return d<=g;default:throw new Error("Unsupported operator for comparison")}}contains(u,d){return typeof u=="string"&&typeof d=="string"?u.includes(d):!1}startWith(u,d){return typeof u=="string"&&typeof d=="string"?u.startsWith(d):!1}endsWith(u,d){return typeof u=="string"&&typeof d=="string"?u.endsWith(d):!1}}class FieldShownAction{constructor(){k(this,"name");k(this,"actionProps");k(this,"props");this.name="表示／非表示",this.actionProps=[],this.props={field:{code:""},show:"",condition:""},this.register()}async process(u,d,g){let C={canNext:!0,result:!1};try{return this.actionProps=u.actionProps,!("field"in u.ActionValue)&&!("show"in u.ActionValue)||(this.props=u.ActionValue,this.getConditionResult(g)&&(this.props.show==="表示"?kintone.app.record.setFieldShown(this.props.field.code,!0):this.props.show==="非表示"&&kintone.app.record.setFieldShown(this.props.field.code,!1)),C={canNext:!0,result:!0}),C}catch(T){return d.error=T,console.error(T),C.canNext=!1,C}}getConditionResult(u){const d=this.getCondition(this.props.condition);return d?d.evaluate(d.root,u):!0}getCondition(u){try{const d=new ConditionTree;return d.fromJson(u),d.getConditions(d.root).length>0?d:null}catch{return null}}register(){actionAddins[this.name]=this}}new FieldShownAction;class ErrorShowAction{constructor(){k(this,"name");k(this,"actionProps");k(this,"props");this.name="エラー表示",this.actionProps=[],this.props={message:"",condition:""},this.register()}async process(u,d,g){let C={canNext:!0,result:!1};try{return this.actionProps=u.actionProps,!("message"in u.ActionValue)&&!("condition"in u.ActionValue)||(this.props=u.ActionValue,this.getConditionResult(g)?d.error=this.props.message:C={canNext:!1,result:!0}),C}catch(T){return d.error=T,console.error(T),C.canNext=!1,C}}getConditionResult(u){const d=this.getCondition(this.props.condition);return d?d.evaluate(d.root,u):!0}getCondition(u){try{const d=new ConditionTree;return d.fromJson(u),d.getConditions(d.root).length>0?d:null}catch{return null}}register(){actionAddins[this.name]=this}}new ErrorShowAction;const buttonAdd="";class ButtonAddAction{constructor(){k(this,"name");k(this,"actionProps");k(this,"props");this.name="ボタンの配置",this.actionProps=[],this.props={buttonName:"",position:"",eventName:""},this.register()}async process(u,d){let g={canNext:!0,result:!1};try{if(this.actionProps=u.actionProps,!("buttonName"in u.ActionValue)&&!("position"in u.ActionValue))return g;this.props=u.ActionValue;const C=kintone.app.record.getHeaderMenuSpaceElement();if(!C)return g;if($("style#alc-button-add").length===0){const I=`
                `,z=$("<style id='alc-button-add'>/<style>");z.text(I),$("head").append(z)}const T=$(`<button id='${this.props.eventName}' class='alc-button-normal' >${this.props.buttonName}</button>`);this.props.position==="一番左に追加する"?$(C).prepend(T):$(C).append(T);const O=`${d.type}.customButtonClick.${this.props.eventName}`;return T.on("click",()=>{$(document).trigger(O,d)}),g}catch(C){return d.error=C,console.error(C),g.canNext=!1,g}}register(){actionAddins[this.name]=this}}new ButtonAddAction;class ConditionAction{constructor(){k(this,"name");k(this,"actionProps");k(this,"props");this.name="条件式",this.actionProps=[],this.props={condition:"",verName:""},this.register()}async process(u,d,g){let C={canNext:!0,result:""};try{if(this.actionProps=u.actionProps,!("condition"in u.ActionValue)&&!("verName"in u.ActionValue))return C;this.props=u.ActionValue;const T=this.getConditionResult(g);return console.log("条件計算結果:",T),T?C={canNext:!0,result:"はい"}:C={canNext:!0,result:"いいえ"},this.props.verName&&(g.variables[this.props.verName]=C.result),C}catch(T){return d.error=T,console.error(T),C.canNext=!1,C}}getConditionResult(u){const d=this.getCondition(this.props.condition);return d?d.evaluate(d.root,u):!0}getCondition(u){try{const d=new ConditionTree;return d.fromJson(u),d.getConditions(d.root).length>0?d:null}catch{return null}}register(){actionAddins[this.name]=this}}new ConditionAction;class DataProcessingAction{constructor(){k(this,"name");k(this,"actionProps");k(this,"dataProcessingProps");this.name="データ処理",this.actionProps=[],this.dataProcessingProps=null,this.register()}async process(u,d,g){this.initActionProps(u),this.initTypedActionProps();let C={canNext:!0,result:""};try{if(!this.dataProcessingProps)return C;const T=await selectData$1(this.dataProcessingProps.conditionsQuery);return console.log("data ",T),g.variables[this.dataProcessingProps.propcessing.varRootName]=this.dataProcessingProps.propcessing.fields.reduce((O,I)=>(calc(I,T)&&(O[I.varName]=calc(I,T)),O),{}),console.log("context ",g),C}catch(T){return console.error(T),d.error=T,C}}register(){actionAddins[this.name]=this}initActionProps(u){this.actionProps=u.actionProps}initTypedActionProps(){this.dataProcessingProps={app:{id:"",name:""},conditionsQuery:"",propcessing:{varRootName:"",fields:[]}};for(const u of this.actionProps)if(u.component==="AppFieldSelect")this.dataProcessingProps.app.id=u.props.modelValue.app.id,this.dataProcessingProps.app.name=u.props.modelValue.app.name;else if(u.component==="DataProcessing"){this.dataProcessingProps.propcessing.varRootName=u.props.modelValue.name;for(const d of u.props.modelValue.vars)this.dataProcessingProps.propcessing.fields.push({name:d.field.name,code:d.field.code,type:d.field.type,varName:d.vName,operator:d.logicalOperator.operator})}else u.component==="ConditionInput"&&(this.dataProcessingProps.conditionsQuery=JSON.parse(u.props.modelValue).queryString)}}new DataProcessingAction;const selectData$1=async S=>kintone.api(kintone.api.url("/k/v1/records",!0),"GET",{app:kintone.app.getId(),query:S}).then(u=>{const d={};return u.records.forEach(g=>{for(const[C,T]of Object.entries(g))d[C]||(d[C]={type:T.type,value:[]}),d[C].value.push(T.value)}),d}),ERROR_TYPE="ERROR_TYPE",calc=(S,u)=>{const d=typeCheck(S.type);if(!d)return ERROR_TYPE;const g=calcFunc[`${d}_${Operator[S.operator]}`];if(!g)return ERROR_TYPE;const C=u[S.code].value;return C?g(C):null},typeCheck=S=>{switch(S){case"RECORD_NUMBER":case"NUMBER":return"number";case"SINGLE_LINE_TEXT":case"MULTI_LINE_TEXT":case"RICH_TEXT":return"string";case"DATE":return"date";case"TIME":return"time";case"DATETIME":case"UPDATED_TIME":return"datetime";default:return null}};var Operator=(S=>(S.SUM="SUM",S.AVG="AVG",S.MAX="MAX",S.MIN="MIN",S.COUNT="COUNT",S.FIRST="FIRST",S))(Operator||{});const calcFunc={number_COUNT:S=>S.length.toString(),string_COUNT:S=>S.length.toString(),date_COUNT:S=>S.length.toString(),time_COUNT:S=>S.length.toString(),datetime_COUNT:S=>S.length.toString(),number_SUM:S=>S.reduce((u,d)=>u+Number(d),0).toString(),number_AVG:S=>(S.reduce((u,d)=>u+Number(d),0)/S.length).toString(),number_MAX:S=>Math.max(...S.map(Number)).toString(),number_MIN:S=>Math.min(...S.map(Number)).toString(),string_SUM:S=>S.join(" "),date_MAX:S=>S.reduce((u,d)=>u>d?u:d),date_MIN:S=>S.reduce((u,d)=>u<d?u:d),time_MAX:S=>S.reduce((u,d)=>u>d?u:d),time_MIN:S=>S.reduce((u,d)=>u<d?u:d),datetime_MAX:S=>S.reduce((u,d)=>new Date(u)>new Date(d)?u:d),datetime_MIN:S=>S.reduce((u,d)=>new Date(u)<new Date(d)?u:d),string_FIRST:S=>S[0]};class DataMappingAction{constructor(){k(this,"name");k(this,"actionProps");k(this,"dataMappingProps");this.name="DataMapping",this.actionProps=[],this.dataMappingProps={},this.register()}async process(u,d,g){this.initActionProps(u),this.initTypedActionProps();let C={canNext:!0,result:""};try{for(const T of this.dataMappingProps.field)if(T.from.objectType==="variable"){if(T.from.name.name&&T.to.app&&T.to.fields&&T.to.fields.length>0){const O=getValueByPath(g.variables,T.from.name.name);O&&await kintone.api(kintone.api.url("/k/v1/record.json",!0),"POST",{app:T.to.app.id,record:{[T.to.fields[0].code]:{value:O}}})}}else if(T.from.objectType==="field"&&T.from.code&&T.to.app&&T.to.fields&&T.to.fields.length>0){const O=await selectData(T.to.app.id,T.to.fields[0].code);O&&O.type===g.record[T.from.code].type&&await kintone.api(kintone.api.url("/k/v1/records.json",!0),"POST",{app:T.to.app.id,records:O.value.map(I=>({[T.to.fields[0].code]:{value:I}}))})}}catch(T){console.error("DataMappingAction error",T),C.canNext=!1}return console.log("dataMappingProps",this.dataMappingProps),C}initActionProps(u){this.actionProps=u.actionProps}initTypedActionProps(){for(const u of this.actionProps)u.component==="DataMapping"?this.dataMappingProps.field=u.props.modelValue:u.component==="AppSelect"&&(this.dataMappingProps.app=u.props.modelValue.app)}register(){actionAddins[this.name]=this}}new DataMappingAction;const getValueByPath=(S,u)=>u.split(".").reduce((d,g)=>(d||{})[g],S),selectData=async(S,u)=>kintone.api(kintone.api.url("/k/v1/records",!0),"GET",{app:S??kintone.app.getId(),fields:[u]}).then(d=>{const g={type:"",value:[]};return d.records.forEach(C=>{for(const[T,O]of Object.entries(C))g.type===""&&(g.type=O.type),g.value.push(O.value)}),g});class ActionProcess{constructor(u,d,g){k(this,"eventId");k(this,"flow");k(this,"event");k(this,"context");this.eventId=u,this.flow=d,this.event=g,this.context={record:this.event.record,variables:{}}}async exec(){const u=this.flow.getRoot();if(u===void 0||u.nextNodeIds.size===0)return;let d=u.nextNodeIds.get("");if(d===void 0)return;let g=this.flow.findNodeById(d),C={canNext:!0};for(;g!==void 0&&C.canNext;){const T=actionAddins[g.name];T!==void 0&&(C=await T.process(g,this.event,this.context));let O="";if(g.outputPoints&&g.outputPoints.length>1&&(O=C.result||""),d=g.nextNodeIds.get(O),d===void 0)return;g=this.flow.findNodeById(d)}}}class ActionProperty{constructor(u,d,g,C,T){k(this,"component");k(this,"props");this.component=u,this.props={name:d,displayName:g,placeholder:C,modelValue:T}}static defaultProperty(){return new ActionProperty("InputText","displayName","表示名","表示を入力してください","")}}class ActionNode{constructor({id:u,name:d,title:g,inputPoint:C,outputPoints:T,actionProps:O}){k(this,"id");k(this,"name");k(this,"inputPoint");k(this,"outputPoints");k(this,"actionProps");k(this,"prevNodeId");k(this,"nextNodeIds");this.id=u,this.name=d,this.inputPoint=C,this.outputPoints=T;const I=ActionProperty.defaultProperty();I.props.modelValue=g,this.actionProps=O,this.nextNodeIds=new Map}get title(){const u=this.actionProps.find(d=>d.props.name==="displayName");return u==null?void 0:u.props.modelValue}get subTitle(){return this.name}get isRoot(){return!1}get ActionValue(){const u={};return this.actionProps.forEach(d=>{u[d.props.name]=d.props.modelValue}),u}}class RootAction{constructor({id:u,name:d,title:g,subTitle:C}){k(this,"id");k(this,"name");k(this,"title");k(this,"subTitle");k(this,"inputPoint");k(this,"outputPoints");k(this,"isRoot");k(this,"actionProps");k(this,"ActionValue");k(this,"prevNodeId");k(this,"nextNodeIds");this.id=u,this.name=d,this.title=g,this.subTitle=C,this.inputPoint="",this.outputPoints=[],this.isRoot=!0,this.actionProps=[],this.ActionValue={},this.nextNodeIds=new Map}}class ActionFlow{constructor(u){k(this,"id");k(this,"actionNodes");u instanceof Array?this.actionNodes=u:this.actionNodes=[u],this.id=""}findNodeById(u){return this.actionNodes.find(d=>d.id===u)}toJSON(){return{id:this.id,actionNodes:this.actionNodes.map(u=>{const{nextNodeIds:d,...g}=u;return{...g,nextNodeIds:Array.from(d.entries())}})}}getRoot(){return this.actionNodes.find(u=>u.isRoot)}static fromJSON(u){const d=JSON.parse(u),g=d.actionNodes.map(T=>{const O=T.isRoot?new RootAction(T):new ActionNode(T);return O.nextNodeIds=new Map(Object.entries(T.nextNodeIds)),O.prevNodeId=T.prevNodeId,O.id=T.id,O}),C=new ActionFlow(g);return C.id=d.id,C}}$(function(){const S=I=>I.filter(z=>z.includes(".change.")),u=I=>I.filter(z=>z.includes(".customButtonClick.")),d=I=>I.filter(z=>!z.includes(".customButtonClick.")&&!z.includes(".change.")),g=Object.keys(alcflow),C=S(g),T=u(g),O=d(g);O.length>0&&kintone.events.on(O,async I=>{const z=alcflow[I.type],ee=ActionFlow.fromJSON(z.content);return ee!==void 0&&await new ActionProcess(I.type,ee,I).exec(),I}),C.length>0&&kintone.events.on(C,I=>{const z=alcflow[I.type],ee=ActionFlow.fromJSON(z.content);return ee!==void 0&&new ActionProcess(I.type,ee,I).exec(),I}),T.length>0&&T.forEach(I=>{$(document).on(I,async()=>{const z=kintone.app.record.get(),ee=alcflow[I],fe=ActionFlow.fromJSON(ee.content);fe!==void 0&&await new ActionProcess(I,fe,z).exec();const Te=z.record;kintone.app.record.set({record:Te})})})});
