girder-jsonforms 2.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,88 @@
1
+ (function(Oa){typeof define=="function"&&define.amd?define(Oa):Oa()})(function(){"use strict";var Oa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zl(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var Wl={exports:{}};/*!
2
+ * jQuery JavaScript Library v3.7.1
3
+ * https://jquery.com/
4
+ *
5
+ * Copyright OpenJS Foundation and other contributors
6
+ * Released under the MIT license
7
+ * https://jquery.org/license
8
+ *
9
+ * Date: 2023-08-28T13:37Z
10
+ */(function(c){(function(l,i){c.exports=l.document?i(l,!0):function(_){if(!_.document)throw new Error("jQuery requires a window with a document");return i(_)}})(typeof window<"u"?window:Oa,function(l,i){var _=[],j=Object.getPrototypeOf,S=_.slice,p=_.flat?function(f){return _.flat.call(f)}:function(f){return _.concat.apply([],f)},C=_.push,o=_.indexOf,h={},m=h.toString,w=h.hasOwnProperty,y=w.toString,x=y.call(Object),k={},E=function(g){return typeof g=="function"&&typeof g.nodeType!="number"&&typeof g.item!="function"},T=function(g){return g!=null&&g===g.window},D=l.document,R={type:!0,src:!0,nonce:!0,noModule:!0};function H(f,g,O){O=O||D;var F,A,L=O.createElement("script");if(L.text=f,g)for(F in R)A=g[F]||g.getAttribute&&g.getAttribute(F),A&&L.setAttribute(F,A);O.head.appendChild(L).parentNode.removeChild(L)}function M(f){return f==null?f+"":typeof f=="object"||typeof f=="function"?h[m.call(f)]||"object":typeof f}var B="3.7.1",W=/HTML$/i,v=function(f,g){return new v.fn.init(f,g)};v.fn=v.prototype={jquery:B,constructor:v,length:0,toArray:function(){return S.call(this)},get:function(f){return f==null?S.call(this):f<0?this[f+this.length]:this[f]},pushStack:function(f){var g=v.merge(this.constructor(),f);return g.prevObject=this,g},each:function(f){return v.each(this,f)},map:function(f){return this.pushStack(v.map(this,function(g,O){return f.call(g,O,g)}))},slice:function(){return this.pushStack(S.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(v.grep(this,function(f,g){return(g+1)%2}))},odd:function(){return this.pushStack(v.grep(this,function(f,g){return g%2}))},eq:function(f){var g=this.length,O=+f+(f<0?g:0);return this.pushStack(O>=0&&O<g?[this[O]]:[])},end:function(){return this.prevObject||this.constructor()},push:C,sort:_.sort,splice:_.splice},v.extend=v.fn.extend=function(){var f,g,O,F,A,L,N=arguments[0]||{},Q=1,J=arguments.length,re=!1;for(typeof N=="boolean"&&(re=N,N=arguments[Q]||{},Q++),typeof N!="object"&&!E(N)&&(N={}),Q===J&&(N=this,Q--);Q<J;Q++)if((f=arguments[Q])!=null)for(g in f)F=f[g],!(g==="__proto__"||N===F)&&(re&&F&&(v.isPlainObject(F)||(A=Array.isArray(F)))?(O=N[g],A&&!Array.isArray(O)?L=[]:!A&&!v.isPlainObject(O)?L={}:L=O,A=!1,N[g]=v.extend(re,L,F)):F!==void 0&&(N[g]=F));return N},v.extend({expando:"jQuery"+(B+Math.random()).replace(/\D/g,""),isReady:!0,error:function(f){throw new Error(f)},noop:function(){},isPlainObject:function(f){var g,O;return!f||m.call(f)!=="[object Object]"?!1:(g=j(f),g?(O=w.call(g,"constructor")&&g.constructor,typeof O=="function"&&y.call(O)===x):!0)},isEmptyObject:function(f){var g;for(g in f)return!1;return!0},globalEval:function(f,g,O){H(f,{nonce:g&&g.nonce},O)},each:function(f,g){var O,F=0;if(Y(f))for(O=f.length;F<O&&g.call(f[F],F,f[F])!==!1;F++);else for(F in f)if(g.call(f[F],F,f[F])===!1)break;return f},text:function(f){var g,O="",F=0,A=f.nodeType;if(!A)for(;g=f[F++];)O+=v.text(g);return A===1||A===11?f.textContent:A===9?f.documentElement.textContent:A===3||A===4?f.nodeValue:O},makeArray:function(f,g){var O=g||[];return f!=null&&(Y(Object(f))?v.merge(O,typeof f=="string"?[f]:f):C.call(O,f)),O},inArray:function(f,g,O){return g==null?-1:o.call(g,f,O)},isXMLDoc:function(f){var g=f&&f.namespaceURI,O=f&&(f.ownerDocument||f).documentElement;return!W.test(g||O&&O.nodeName||"HTML")},merge:function(f,g){for(var O=+g.length,F=0,A=f.length;F<O;F++)f[A++]=g[F];return f.length=A,f},grep:function(f,g,O){for(var F,A=[],L=0,N=f.length,Q=!O;L<N;L++)F=!g(f[L],L),F!==Q&&A.push(f[L]);return A},map:function(f,g,O){var F,A,L=0,N=[];if(Y(f))for(F=f.length;L<F;L++)A=g(f[L],L,O),A!=null&&N.push(A);else for(L in f)A=g(f[L],L,O),A!=null&&N.push(A);return p(N)},guid:1,support:k}),typeof Symbol=="function"&&(v.fn[Symbol.iterator]=_[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(f,g){h["[object "+g+"]"]=g.toLowerCase()});function Y(f){var g=!!f&&"length"in f&&f.length,O=M(f);return E(f)||T(f)?!1:O==="array"||g===0||typeof g=="number"&&g>0&&g-1 in f}function G(f,g){return f.nodeName&&f.nodeName.toLowerCase()===g.toLowerCase()}var X=_.pop,ee=_.sort,de=_.splice,oe="[\\x20\\t\\r\\n\\f]",ye=new RegExp("^"+oe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+oe+"+$","g");v.contains=function(f,g){var O=g&&g.parentNode;return f===O||!!(O&&O.nodeType===1&&(f.contains?f.contains(O):f.compareDocumentPosition&&f.compareDocumentPosition(O)&16))};var _e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ke(f,g){return g?f==="\0"?"�":f.slice(0,-1)+"\\"+f.charCodeAt(f.length-1).toString(16)+" ":"\\"+f}v.escapeSelector=function(f){return(f+"").replace(_e,ke)};var xe=D,Le=C;(function(){var f,g,O,F,A,L=Le,N,Q,J,re,pe,be=v.expando,le=0,Ce=0,it=wn(),Ot=wn(),mt=wn(),tr=wn(),ar=function(U,Z){return U===Z&&(A=!0),0},on="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",an="(?:\\\\[\\da-fA-F]{1,6}"+oe+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",kt="\\["+oe+"*("+an+")(?:"+oe+"*([*^$|!~]?=)"+oe+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+an+"))|)"+oe+"*\\]",yn=":("+an+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+kt+")*)|.*)\\)|)",wt=new RegExp(oe+"+","g"),Zt=new RegExp("^"+oe+"*,"+oe+"*"),yi=new RegExp("^"+oe+"*([>+~]|"+oe+")"+oe+"*"),Ln=new RegExp(oe+"|>"),sn=new RegExp(yn),zi=new RegExp("^"+an+"$"),un={ID:new RegExp("^#("+an+")"),CLASS:new RegExp("^\\.("+an+")"),TAG:new RegExp("^("+an+"|[*])"),ATTR:new RegExp("^"+kt),PSEUDO:new RegExp("^"+yn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+oe+"*(even|odd|(([+-]|)(\\d*)n|)"+oe+"*(?:([+-]|)"+oe+"*(\\d+)|))"+oe+"*\\)|)","i"),bool:new RegExp("^(?:"+on+")$","i"),needsContext:new RegExp("^"+oe+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+oe+"*((?:-\\d)?\\d*)"+oe+"*\\)|)(?=[^-]|$)","i")},vn=/^(?:input|select|textarea|button)$/i,Kr=/^h\d$/i,kr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vo=/[+~]/,xr=new RegExp("\\\\[\\da-fA-F]{1,6}"+oe+"?|\\\\([^\\r\\n\\f])","g"),bn=function(U,Z){var ue="0x"+U.slice(1)-65536;return Z||(ue<0?String.fromCharCode(ue+65536):String.fromCharCode(ue>>10|55296,ue&1023|56320))},Zu=function(){gr()},Xu=_o(function(U){return U.disabled===!0&&G(U,"fieldset")},{dir:"parentNode",next:"legend"});function rs(){try{return N.activeElement}catch{}}try{L.apply(_=S.call(xe.childNodes),xe.childNodes),_[xe.childNodes.length].nodeType}catch{L={apply:function(Z,ue){Le.apply(Z,S.call(ue))},call:function(Z){Le.apply(Z,S.call(arguments,1))}}}function Dt(U,Z,ue,he){var ve,Fe,Re,He,Te,gt,ot,nt=Z&&Z.ownerDocument,xt=Z?Z.nodeType:9;if(ue=ue||[],typeof U!="string"||!U||xt!==1&&xt!==9&&xt!==11)return ue;if(!he&&(gr(Z),Z=Z||N,J)){if(xt!==11&&(Te=kr.exec(U)))if(ve=Te[1]){if(xt===9)if(Re=Z.getElementById(ve)){if(Re.id===ve)return L.call(ue,Re),ue}else return ue;else if(nt&&(Re=nt.getElementById(ve))&&Dt.contains(Z,Re)&&Re.id===ve)return L.call(ue,Re),ue}else{if(Te[2])return L.apply(ue,Z.getElementsByTagName(U)),ue;if((ve=Te[3])&&Z.getElementsByClassName)return L.apply(ue,Z.getElementsByClassName(ve)),ue}if(!tr[U+" "]&&(!re||!re.test(U))){if(ot=U,nt=Z,xt===1&&(Ln.test(U)||yi.test(U))){for(nt=vo.test(U)&&bo(Z.parentNode)||Z,(nt!=Z||!k.scope)&&((He=Z.getAttribute("id"))?He=v.escapeSelector(He):Z.setAttribute("id",He=be)),gt=ri(U),Fe=gt.length;Fe--;)gt[Fe]=(He?"#"+He:":scope")+" "+wo(gt[Fe]);ot=gt.join(",")}try{return L.apply(ue,nt.querySelectorAll(ot)),ue}catch{tr(U,!0)}finally{He===be&&Z.removeAttribute("id")}}}return is(U.replace(ye,"$1"),Z,ue,he)}function wn(){var U=[];function Z(ue,he){return U.push(ue+" ")>g.cacheLength&&delete Z[U.shift()],Z[ue+" "]=he}return Z}function Lr(U){return U[be]=!0,U}function vi(U){var Z=N.createElement("fieldset");try{return!!U(Z)}catch{return!1}finally{Z.parentNode&&Z.parentNode.removeChild(Z),Z=null}}function bi(U){return function(Z){return G(Z,"input")&&Z.type===U}}function el(U){return function(Z){return(G(Z,"input")||G(Z,"button"))&&Z.type===U}}function ns(U){return function(Z){return"form"in Z?Z.parentNode&&Z.disabled===!1?"label"in Z?"label"in Z.parentNode?Z.parentNode.disabled===U:Z.disabled===U:Z.isDisabled===U||Z.isDisabled!==!U&&Xu(Z)===U:Z.disabled===U:"label"in Z?Z.disabled===U:!1}}function ti(U){return Lr(function(Z){return Z=+Z,Lr(function(ue,he){for(var ve,Fe=U([],ue.length,Z),Re=Fe.length;Re--;)ue[ve=Fe[Re]]&&(ue[ve]=!(he[ve]=ue[ve]))})})}function bo(U){return U&&typeof U.getElementsByTagName<"u"&&U}function gr(U){var Z,ue=U?U.ownerDocument||U:xe;return ue==N||ue.nodeType!==9||!ue.documentElement||(N=ue,Q=N.documentElement,J=!v.isXMLDoc(N),pe=Q.matches||Q.webkitMatchesSelector||Q.msMatchesSelector,Q.msMatchesSelector&&xe!=N&&(Z=N.defaultView)&&Z.top!==Z&&Z.addEventListener("unload",Zu),k.getById=vi(function(he){return Q.appendChild(he).id=v.expando,!N.getElementsByName||!N.getElementsByName(v.expando).length}),k.disconnectedMatch=vi(function(he){return pe.call(he,"*")}),k.scope=vi(function(){return N.querySelectorAll(":scope")}),k.cssHas=vi(function(){try{return N.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),k.getById?(g.filter.ID=function(he){var ve=he.replace(xr,bn);return function(Fe){return Fe.getAttribute("id")===ve}},g.find.ID=function(he,ve){if(typeof ve.getElementById<"u"&&J){var Fe=ve.getElementById(he);return Fe?[Fe]:[]}}):(g.filter.ID=function(he){var ve=he.replace(xr,bn);return function(Fe){var Re=typeof Fe.getAttributeNode<"u"&&Fe.getAttributeNode("id");return Re&&Re.value===ve}},g.find.ID=function(he,ve){if(typeof ve.getElementById<"u"&&J){var Fe,Re,He,Te=ve.getElementById(he);if(Te){if(Fe=Te.getAttributeNode("id"),Fe&&Fe.value===he)return[Te];for(He=ve.getElementsByName(he),Re=0;Te=He[Re++];)if(Fe=Te.getAttributeNode("id"),Fe&&Fe.value===he)return[Te]}return[]}}),g.find.TAG=function(he,ve){return typeof ve.getElementsByTagName<"u"?ve.getElementsByTagName(he):ve.querySelectorAll(he)},g.find.CLASS=function(he,ve){if(typeof ve.getElementsByClassName<"u"&&J)return ve.getElementsByClassName(he)},re=[],vi(function(he){var ve;Q.appendChild(he).innerHTML="<a id='"+be+"' href='' disabled='disabled'></a><select id='"+be+"-\r\\' disabled='disabled'><option selected=''></option></select>",he.querySelectorAll("[selected]").length||re.push("\\["+oe+"*(?:value|"+on+")"),he.querySelectorAll("[id~="+be+"-]").length||re.push("~="),he.querySelectorAll("a#"+be+"+*").length||re.push(".#.+[+~]"),he.querySelectorAll(":checked").length||re.push(":checked"),ve=N.createElement("input"),ve.setAttribute("type","hidden"),he.appendChild(ve).setAttribute("name","D"),Q.appendChild(he).disabled=!0,he.querySelectorAll(":disabled").length!==2&&re.push(":enabled",":disabled"),ve=N.createElement("input"),ve.setAttribute("name",""),he.appendChild(ve),he.querySelectorAll("[name='']").length||re.push("\\["+oe+"*name"+oe+"*="+oe+`*(?:''|"")`)}),k.cssHas||re.push(":has"),re=re.length&&new RegExp(re.join("|")),ar=function(he,ve){if(he===ve)return A=!0,0;var Fe=!he.compareDocumentPosition-!ve.compareDocumentPosition;return Fe||(Fe=(he.ownerDocument||he)==(ve.ownerDocument||ve)?he.compareDocumentPosition(ve):1,Fe&1||!k.sortDetached&&ve.compareDocumentPosition(he)===Fe?he===N||he.ownerDocument==xe&&Dt.contains(xe,he)?-1:ve===N||ve.ownerDocument==xe&&Dt.contains(xe,ve)?1:F?o.call(F,he)-o.call(F,ve):0:Fe&4?-1:1)}),N}Dt.matches=function(U,Z){return Dt(U,null,null,Z)},Dt.matchesSelector=function(U,Z){if(gr(U),J&&!tr[Z+" "]&&(!re||!re.test(Z)))try{var ue=pe.call(U,Z);if(ue||k.disconnectedMatch||U.document&&U.document.nodeType!==11)return ue}catch{tr(Z,!0)}return Dt(Z,N,null,[U]).length>0},Dt.contains=function(U,Z){return(U.ownerDocument||U)!=N&&gr(U),v.contains(U,Z)},Dt.attr=function(U,Z){(U.ownerDocument||U)!=N&&gr(U);var ue=g.attrHandle[Z.toLowerCase()],he=ue&&w.call(g.attrHandle,Z.toLowerCase())?ue(U,Z,!J):void 0;return he!==void 0?he:U.getAttribute(Z)},Dt.error=function(U){throw new Error("Syntax error, unrecognized expression: "+U)},v.uniqueSort=function(U){var Z,ue=[],he=0,ve=0;if(A=!k.sortStable,F=!k.sortStable&&S.call(U,0),ee.call(U,ar),A){for(;Z=U[ve++];)Z===U[ve]&&(he=ue.push(ve));for(;he--;)de.call(U,ue[he],1)}return F=null,U},v.fn.uniqueSort=function(){return this.pushStack(v.uniqueSort(S.apply(this)))},g=v.expr={cacheLength:50,createPseudo:Lr,match:un,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(U){return U[1]=U[1].replace(xr,bn),U[3]=(U[3]||U[4]||U[5]||"").replace(xr,bn),U[2]==="~="&&(U[3]=" "+U[3]+" "),U.slice(0,4)},CHILD:function(U){return U[1]=U[1].toLowerCase(),U[1].slice(0,3)==="nth"?(U[3]||Dt.error(U[0]),U[4]=+(U[4]?U[5]+(U[6]||1):2*(U[3]==="even"||U[3]==="odd")),U[5]=+(U[7]+U[8]||U[3]==="odd")):U[3]&&Dt.error(U[0]),U},PSEUDO:function(U){var Z,ue=!U[6]&&U[2];return un.CHILD.test(U[0])?null:(U[3]?U[2]=U[4]||U[5]||"":ue&&sn.test(ue)&&(Z=ri(ue,!0))&&(Z=ue.indexOf(")",ue.length-Z)-ue.length)&&(U[0]=U[0].slice(0,Z),U[2]=ue.slice(0,Z)),U.slice(0,3))}},filter:{TAG:function(U){var Z=U.replace(xr,bn).toLowerCase();return U==="*"?function(){return!0}:function(ue){return G(ue,Z)}},CLASS:function(U){var Z=it[U+" "];return Z||(Z=new RegExp("(^|"+oe+")"+U+"("+oe+"|$)"))&&it(U,function(ue){return Z.test(typeof ue.className=="string"&&ue.className||typeof ue.getAttribute<"u"&&ue.getAttribute("class")||"")})},ATTR:function(U,Z,ue){return function(he){var ve=Dt.attr(he,U);return ve==null?Z==="!=":Z?(ve+="",Z==="="?ve===ue:Z==="!="?ve!==ue:Z==="^="?ue&&ve.indexOf(ue)===0:Z==="*="?ue&&ve.indexOf(ue)>-1:Z==="$="?ue&&ve.slice(-ue.length)===ue:Z==="~="?(" "+ve.replace(wt," ")+" ").indexOf(ue)>-1:Z==="|="?ve===ue||ve.slice(0,ue.length+1)===ue+"-":!1):!0}},CHILD:function(U,Z,ue,he,ve){var Fe=U.slice(0,3)!=="nth",Re=U.slice(-4)!=="last",He=Z==="of-type";return he===1&&ve===0?function(Te){return!!Te.parentNode}:function(Te,gt,ot){var nt,xt,Ze,qt,yr,sr=Fe!==Re?"nextSibling":"previousSibling",jr=Te.parentNode,ln=He&&Te.nodeName.toLowerCase(),ii=!ot&&!He,ir=!1;if(jr){if(Fe){for(;sr;){for(Ze=Te;Ze=Ze[sr];)if(He?G(Ze,ln):Ze.nodeType===1)return!1;yr=sr=U==="only"&&!yr&&"nextSibling"}return!0}if(yr=[Re?jr.firstChild:jr.lastChild],Re&&ii){for(xt=jr[be]||(jr[be]={}),nt=xt[U]||[],qt=nt[0]===le&&nt[1],ir=qt&&nt[2],Ze=qt&&jr.childNodes[qt];Ze=++qt&&Ze&&Ze[sr]||(ir=qt=0)||yr.pop();)if(Ze.nodeType===1&&++ir&&Ze===Te){xt[U]=[le,qt,ir];break}}else if(ii&&(xt=Te[be]||(Te[be]={}),nt=xt[U]||[],qt=nt[0]===le&&nt[1],ir=qt),ir===!1)for(;(Ze=++qt&&Ze&&Ze[sr]||(ir=qt=0)||yr.pop())&&!((He?G(Ze,ln):Ze.nodeType===1)&&++ir&&(ii&&(xt=Ze[be]||(Ze[be]={}),xt[U]=[le,ir]),Ze===Te)););return ir-=ve,ir===he||ir%he===0&&ir/he>=0}}},PSEUDO:function(U,Z){var ue,he=g.pseudos[U]||g.setFilters[U.toLowerCase()]||Dt.error("unsupported pseudo: "+U);return he[be]?he(Z):he.length>1?(ue=[U,U,"",Z],g.setFilters.hasOwnProperty(U.toLowerCase())?Lr(function(ve,Fe){for(var Re,He=he(ve,Z),Te=He.length;Te--;)Re=o.call(ve,He[Te]),ve[Re]=!(Fe[Re]=He[Te])}):function(ve){return he(ve,0,ue)}):he}},pseudos:{not:Lr(function(U){var Z=[],ue=[],he=Wi(U.replace(ye,"$1"));return he[be]?Lr(function(ve,Fe,Re,He){for(var Te,gt=he(ve,null,He,[]),ot=ve.length;ot--;)(Te=gt[ot])&&(ve[ot]=!(Fe[ot]=Te))}):function(ve,Fe,Re){return Z[0]=ve,he(Z,null,Re,ue),Z[0]=null,!ue.pop()}}),has:Lr(function(U){return function(Z){return Dt(U,Z).length>0}}),contains:Lr(function(U){return U=U.replace(xr,bn),function(Z){return(Z.textContent||v.text(Z)).indexOf(U)>-1}}),lang:Lr(function(U){return zi.test(U||"")||Dt.error("unsupported lang: "+U),U=U.replace(xr,bn).toLowerCase(),function(Z){var ue;do if(ue=J?Z.lang:Z.getAttribute("xml:lang")||Z.getAttribute("lang"))return ue=ue.toLowerCase(),ue===U||ue.indexOf(U+"-")===0;while((Z=Z.parentNode)&&Z.nodeType===1);return!1}}),target:function(U){var Z=l.location&&l.location.hash;return Z&&Z.slice(1)===U.id},root:function(U){return U===Q},focus:function(U){return U===rs()&&N.hasFocus()&&!!(U.type||U.href||~U.tabIndex)},enabled:ns(!1),disabled:ns(!0),checked:function(U){return G(U,"input")&&!!U.checked||G(U,"option")&&!!U.selected},selected:function(U){return U.parentNode&&U.parentNode.selectedIndex,U.selected===!0},empty:function(U){for(U=U.firstChild;U;U=U.nextSibling)if(U.nodeType<6)return!1;return!0},parent:function(U){return!g.pseudos.empty(U)},header:function(U){return Kr.test(U.nodeName)},input:function(U){return vn.test(U.nodeName)},button:function(U){return G(U,"input")&&U.type==="button"||G(U,"button")},text:function(U){var Z;return G(U,"input")&&U.type==="text"&&((Z=U.getAttribute("type"))==null||Z.toLowerCase()==="text")},first:ti(function(){return[0]}),last:ti(function(U,Z){return[Z-1]}),eq:ti(function(U,Z,ue){return[ue<0?ue+Z:ue]}),even:ti(function(U,Z){for(var ue=0;ue<Z;ue+=2)U.push(ue);return U}),odd:ti(function(U,Z){for(var ue=1;ue<Z;ue+=2)U.push(ue);return U}),lt:ti(function(U,Z,ue){var he;for(ue<0?he=ue+Z:ue>Z?he=Z:he=ue;--he>=0;)U.push(he);return U}),gt:ti(function(U,Z,ue){for(var he=ue<0?ue+Z:ue;++he<Z;)U.push(he);return U})}},g.pseudos.nth=g.pseudos.eq;for(f in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})g.pseudos[f]=bi(f);for(f in{submit:!0,reset:!0})g.pseudos[f]=el(f);function Wr(){}Wr.prototype=g.filters=g.pseudos,g.setFilters=new Wr;function ri(U,Z){var ue,he,ve,Fe,Re,He,Te,gt=Ot[U+" "];if(gt)return Z?0:gt.slice(0);for(Re=U,He=[],Te=g.preFilter;Re;){(!ue||(he=Zt.exec(Re)))&&(he&&(Re=Re.slice(he[0].length)||Re),He.push(ve=[])),ue=!1,(he=yi.exec(Re))&&(ue=he.shift(),ve.push({value:ue,type:he[0].replace(ye," ")}),Re=Re.slice(ue.length));for(Fe in g.filter)(he=un[Fe].exec(Re))&&(!Te[Fe]||(he=Te[Fe](he)))&&(ue=he.shift(),ve.push({value:ue,type:Fe,matches:he}),Re=Re.slice(ue.length));if(!ue)break}return Z?Re.length:Re?Dt.error(U):Ot(U,He).slice(0)}function wo(U){for(var Z=0,ue=U.length,he="";Z<ue;Z++)he+=U[Z].value;return he}function _o(U,Z,ue){var he=Z.dir,ve=Z.next,Fe=ve||he,Re=ue&&Fe==="parentNode",He=Ce++;return Z.first?function(Te,gt,ot){for(;Te=Te[he];)if(Te.nodeType===1||Re)return U(Te,gt,ot);return!1}:function(Te,gt,ot){var nt,xt,Ze=[le,He];if(ot){for(;Te=Te[he];)if((Te.nodeType===1||Re)&&U(Te,gt,ot))return!0}else for(;Te=Te[he];)if(Te.nodeType===1||Re)if(xt=Te[be]||(Te[be]={}),ve&&G(Te,ve))Te=Te[he]||Te;else{if((nt=xt[Fe])&&nt[0]===le&&nt[1]===He)return Ze[2]=nt[2];if(xt[Fe]=Ze,Ze[2]=U(Te,gt,ot))return!0}return!1}}function ko(U){return U.length>1?function(Z,ue,he){for(var ve=U.length;ve--;)if(!U[ve](Z,ue,he))return!1;return!0}:U[0]}function tl(U,Z,ue){for(var he=0,ve=Z.length;he<ve;he++)Dt(U,Z[he],ue);return ue}function Cr(U,Z,ue,he,ve){for(var Fe,Re=[],He=0,Te=U.length,gt=Z!=null;He<Te;He++)(Fe=U[He])&&(!ue||ue(Fe,he,ve))&&(Re.push(Fe),gt&&Z.push(He));return Re}function ni(U,Z,ue,he,ve,Fe){return he&&!he[be]&&(he=ni(he)),ve&&!ve[be]&&(ve=ni(ve,Fe)),Lr(function(Re,He,Te,gt){var ot,nt,xt,Ze,qt=[],yr=[],sr=He.length,jr=Re||tl(Z||"*",Te.nodeType?[Te]:Te,[]),ln=U&&(Re||!Z)?Cr(jr,qt,U,Te,gt):jr;if(ue?(Ze=ve||(Re?U:sr||he)?[]:He,ue(ln,Ze,Te,gt)):Ze=ln,he)for(ot=Cr(Ze,yr),he(ot,[],Te,gt),nt=ot.length;nt--;)(xt=ot[nt])&&(Ze[yr[nt]]=!(ln[yr[nt]]=xt));if(Re){if(ve||U){if(ve){for(ot=[],nt=Ze.length;nt--;)(xt=Ze[nt])&&ot.push(ln[nt]=xt);ve(null,Ze=[],ot,gt)}for(nt=Ze.length;nt--;)(xt=Ze[nt])&&(ot=ve?o.call(Re,xt):qt[nt])>-1&&(Re[ot]=!(He[ot]=xt))}}else Ze=Cr(Ze===He?Ze.splice(sr,Ze.length):Ze),ve?ve(null,He,Ze,gt):L.apply(He,Ze)})}function Vt(U){for(var Z,ue,he,ve=U.length,Fe=g.relative[U[0].type],Re=Fe||g.relative[" "],He=Fe?1:0,Te=_o(function(nt){return nt===Z},Re,!0),gt=_o(function(nt){return o.call(Z,nt)>-1},Re,!0),ot=[function(nt,xt,Ze){var qt=!Fe&&(Ze||xt!=O)||((Z=xt).nodeType?Te(nt,xt,Ze):gt(nt,xt,Ze));return Z=null,qt}];He<ve;He++)if(ue=g.relative[U[He].type])ot=[_o(ko(ot),ue)];else{if(ue=g.filter[U[He].type].apply(null,U[He].matches),ue[be]){for(he=++He;he<ve&&!g.relative[U[he].type];he++);return ni(He>1&&ko(ot),He>1&&wo(U.slice(0,He-1).concat({value:U[He-2].type===" "?"*":""})).replace(ye,"$1"),ue,He<he&&Vt(U.slice(He,he)),he<ve&&Vt(U=U.slice(he)),he<ve&&wo(U))}ot.push(ue)}return ko(ot)}function wa(U,Z){var ue=Z.length>0,he=U.length>0,ve=function(Fe,Re,He,Te,gt){var ot,nt,xt,Ze=0,qt="0",yr=Fe&&[],sr=[],jr=O,ln=Fe||he&&g.find.TAG("*",gt),ii=le+=jr==null?1:Math.random()||.1,ir=ln.length;for(gt&&(O=Re==N||Re||gt);qt!==ir&&(ot=ln[qt])!=null;qt++){if(he&&ot){for(nt=0,!Re&&ot.ownerDocument!=N&&(gr(ot),He=!J);xt=U[nt++];)if(xt(ot,Re||N,He)){L.call(Te,ot);break}gt&&(le=ii)}ue&&((ot=!xt&&ot)&&Ze--,Fe&&yr.push(ot))}if(Ze+=qt,ue&&qt!==Ze){for(nt=0;xt=Z[nt++];)xt(yr,sr,Re,He);if(Fe){if(Ze>0)for(;qt--;)yr[qt]||sr[qt]||(sr[qt]=X.call(Te));sr=Cr(sr)}L.apply(Te,sr),gt&&!Fe&&sr.length>0&&Ze+Z.length>1&&v.uniqueSort(Te)}return gt&&(le=ii,O=jr),yr};return ue?Lr(ve):ve}function Wi(U,Z){var ue,he=[],ve=[],Fe=mt[U+" "];if(!Fe){for(Z||(Z=ri(U)),ue=Z.length;ue--;)Fe=Vt(Z[ue]),Fe[be]?he.push(Fe):ve.push(Fe);Fe=mt(U,wa(ve,he)),Fe.selector=U}return Fe}function is(U,Z,ue,he){var ve,Fe,Re,He,Te,gt=typeof U=="function"&&U,ot=!he&&ri(U=gt.selector||U);if(ue=ue||[],ot.length===1){if(Fe=ot[0]=ot[0].slice(0),Fe.length>2&&(Re=Fe[0]).type==="ID"&&Z.nodeType===9&&J&&g.relative[Fe[1].type]){if(Z=(g.find.ID(Re.matches[0].replace(xr,bn),Z)||[])[0],Z)gt&&(Z=Z.parentNode);else return ue;U=U.slice(Fe.shift().value.length)}for(ve=un.needsContext.test(U)?0:Fe.length;ve--&&(Re=Fe[ve],!g.relative[He=Re.type]);)if((Te=g.find[He])&&(he=Te(Re.matches[0].replace(xr,bn),vo.test(Fe[0].type)&&bo(Z.parentNode)||Z))){if(Fe.splice(ve,1),U=he.length&&wo(Fe),!U)return L.apply(ue,he),ue;break}}return(gt||Wi(U,ot))(he,Z,!J,ue,!Z||vo.test(U)&&bo(Z.parentNode)||Z),ue}k.sortStable=be.split("").sort(ar).join("")===be,gr(),k.sortDetached=vi(function(U){return U.compareDocumentPosition(N.createElement("fieldset"))&1}),v.find=Dt,v.expr[":"]=v.expr.pseudos,v.unique=v.uniqueSort,Dt.compile=Wi,Dt.select=is,Dt.setDocument=gr,Dt.tokenize=ri,Dt.escape=v.escapeSelector,Dt.getText=v.text,Dt.isXML=v.isXMLDoc,Dt.selectors=v.expr,Dt.support=v.support,Dt.uniqueSort=v.uniqueSort})();var Ee=function(f,g,O){for(var F=[],A=O!==void 0;(f=f[g])&&f.nodeType!==9;)if(f.nodeType===1){if(A&&v(f).is(O))break;F.push(f)}return F},Ue=function(f,g){for(var O=[];f;f=f.nextSibling)f.nodeType===1&&f!==g&&O.push(f);return O},Ke=v.expr.match.needsContext,tt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function je(f,g,O){return E(g)?v.grep(f,function(F,A){return!!g.call(F,A,F)!==O}):g.nodeType?v.grep(f,function(F){return F===g!==O}):typeof g!="string"?v.grep(f,function(F){return o.call(g,F)>-1!==O}):v.filter(g,f,O)}v.filter=function(f,g,O){var F=g[0];return O&&(f=":not("+f+")"),g.length===1&&F.nodeType===1?v.find.matchesSelector(F,f)?[F]:[]:v.find.matches(f,v.grep(g,function(A){return A.nodeType===1}))},v.fn.extend({find:function(f){var g,O,F=this.length,A=this;if(typeof f!="string")return this.pushStack(v(f).filter(function(){for(g=0;g<F;g++)if(v.contains(A[g],this))return!0}));for(O=this.pushStack([]),g=0;g<F;g++)v.find(f,A[g],O);return F>1?v.uniqueSort(O):O},filter:function(f){return this.pushStack(je(this,f||[],!1))},not:function(f){return this.pushStack(je(this,f||[],!0))},is:function(f){return!!je(this,typeof f=="string"&&Ke.test(f)?v(f):f||[],!1).length}});var Ye,qe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,St=v.fn.init=function(f,g,O){var F,A;if(!f)return this;if(O=O||Ye,typeof f=="string")if(f[0]==="<"&&f[f.length-1]===">"&&f.length>=3?F=[null,f,null]:F=qe.exec(f),F&&(F[1]||!g))if(F[1]){if(g=g instanceof v?g[0]:g,v.merge(this,v.parseHTML(F[1],g&&g.nodeType?g.ownerDocument||g:D,!0)),tt.test(F[1])&&v.isPlainObject(g))for(F in g)E(this[F])?this[F](g[F]):this.attr(F,g[F]);return this}else return A=D.getElementById(F[2]),A&&(this[0]=A,this.length=1),this;else return!g||g.jquery?(g||O).find(f):this.constructor(g).find(f);else{if(f.nodeType)return this[0]=f,this.length=1,this;if(E(f))return O.ready!==void 0?O.ready(f):f(v)}return v.makeArray(f,this)};St.prototype=v.fn,Ye=v(D);var Nt=/^(?:parents|prev(?:Until|All))/,_t={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({has:function(f){var g=v(f,this),O=g.length;return this.filter(function(){for(var F=0;F<O;F++)if(v.contains(this,g[F]))return!0})},closest:function(f,g){var O,F=0,A=this.length,L=[],N=typeof f!="string"&&v(f);if(!Ke.test(f)){for(;F<A;F++)for(O=this[F];O&&O!==g;O=O.parentNode)if(O.nodeType<11&&(N?N.index(O)>-1:O.nodeType===1&&v.find.matchesSelector(O,f))){L.push(O);break}}return this.pushStack(L.length>1?v.uniqueSort(L):L)},index:function(f){return f?typeof f=="string"?o.call(v(f),this[0]):o.call(this,f.jquery?f[0]:f):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(f,g){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(f,g))))},addBack:function(f){return this.add(f==null?this.prevObject:this.prevObject.filter(f))}});function ct(f,g){for(;(f=f[g])&&f.nodeType!==1;);return f}v.each({parent:function(f){var g=f.parentNode;return g&&g.nodeType!==11?g:null},parents:function(f){return Ee(f,"parentNode")},parentsUntil:function(f,g,O){return Ee(f,"parentNode",O)},next:function(f){return ct(f,"nextSibling")},prev:function(f){return ct(f,"previousSibling")},nextAll:function(f){return Ee(f,"nextSibling")},prevAll:function(f){return Ee(f,"previousSibling")},nextUntil:function(f,g,O){return Ee(f,"nextSibling",O)},prevUntil:function(f,g,O){return Ee(f,"previousSibling",O)},siblings:function(f){return Ue((f.parentNode||{}).firstChild,f)},children:function(f){return Ue(f.firstChild)},contents:function(f){return f.contentDocument!=null&&j(f.contentDocument)?f.contentDocument:(G(f,"template")&&(f=f.content||f),v.merge([],f.childNodes))}},function(f,g){v.fn[f]=function(O,F){var A=v.map(this,g,O);return f.slice(-5)!=="Until"&&(F=O),F&&typeof F=="string"&&(A=v.filter(F,A)),this.length>1&&(_t[f]||v.uniqueSort(A),Nt.test(f)&&A.reverse()),this.pushStack(A)}});var Ge=/[^\x20\t\r\n\f]+/g;function jt(f){var g={};return v.each(f.match(Ge)||[],function(O,F){g[F]=!0}),g}v.Callbacks=function(f){f=typeof f=="string"?jt(f):v.extend({},f);var g,O,F,A,L=[],N=[],Q=-1,J=function(){for(A=A||f.once,F=g=!0;N.length;Q=-1)for(O=N.shift();++Q<L.length;)L[Q].apply(O[0],O[1])===!1&&f.stopOnFalse&&(Q=L.length,O=!1);f.memory||(O=!1),g=!1,A&&(O?L=[]:L="")},re={add:function(){return L&&(O&&!g&&(Q=L.length-1,N.push(O)),function pe(be){v.each(be,function(le,Ce){E(Ce)?(!f.unique||!re.has(Ce))&&L.push(Ce):Ce&&Ce.length&&M(Ce)!=="string"&&pe(Ce)})}(arguments),O&&!g&&J()),this},remove:function(){return v.each(arguments,function(pe,be){for(var le;(le=v.inArray(be,L,le))>-1;)L.splice(le,1),le<=Q&&Q--}),this},has:function(pe){return pe?v.inArray(pe,L)>-1:L.length>0},empty:function(){return L&&(L=[]),this},disable:function(){return A=N=[],L=O="",this},disabled:function(){return!L},lock:function(){return A=N=[],!O&&!g&&(L=O=""),this},locked:function(){return!!A},fireWith:function(pe,be){return A||(be=be||[],be=[pe,be.slice?be.slice():be],N.push(be),g||J()),this},fire:function(){return re.fireWith(this,arguments),this},fired:function(){return!!F}};return re};function vt(f){return f}function Xe(f){throw f}function st(f,g,O,F){var A;try{f&&E(A=f.promise)?A.call(f).done(g).fail(O):f&&E(A=f.then)?A.call(f,g,O):g.apply(void 0,[f].slice(F))}catch(L){O.apply(void 0,[L])}}v.extend({Deferred:function(f){var g=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],O="pending",F={state:function(){return O},always:function(){return A.done(arguments).fail(arguments),this},catch:function(L){return F.then(null,L)},pipe:function(){var L=arguments;return v.Deferred(function(N){v.each(g,function(Q,J){var re=E(L[J[4]])&&L[J[4]];A[J[1]](function(){var pe=re&&re.apply(this,arguments);pe&&E(pe.promise)?pe.promise().progress(N.notify).done(N.resolve).fail(N.reject):N[J[0]+"With"](this,re?[pe]:arguments)})}),L=null}).promise()},then:function(L,N,Q){var J=0;function re(pe,be,le,Ce){return function(){var it=this,Ot=arguments,mt=function(){var ar,on;if(!(pe<J)){if(ar=le.apply(it,Ot),ar===be.promise())throw new TypeError("Thenable self-resolution");on=ar&&(typeof ar=="object"||typeof ar=="function")&&ar.then,E(on)?Ce?on.call(ar,re(J,be,vt,Ce),re(J,be,Xe,Ce)):(J++,on.call(ar,re(J,be,vt,Ce),re(J,be,Xe,Ce),re(J,be,vt,be.notifyWith))):(le!==vt&&(it=void 0,Ot=[ar]),(Ce||be.resolveWith)(it,Ot))}},tr=Ce?mt:function(){try{mt()}catch(ar){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(ar,tr.error),pe+1>=J&&(le!==Xe&&(it=void 0,Ot=[ar]),be.rejectWith(it,Ot))}};pe?tr():(v.Deferred.getErrorHook?tr.error=v.Deferred.getErrorHook():v.Deferred.getStackHook&&(tr.error=v.Deferred.getStackHook()),l.setTimeout(tr))}}return v.Deferred(function(pe){g[0][3].add(re(0,pe,E(Q)?Q:vt,pe.notifyWith)),g[1][3].add(re(0,pe,E(L)?L:vt)),g[2][3].add(re(0,pe,E(N)?N:Xe))}).promise()},promise:function(L){return L!=null?v.extend(L,F):F}},A={};return v.each(g,function(L,N){var Q=N[2],J=N[5];F[N[1]]=Q.add,J&&Q.add(function(){O=J},g[3-L][2].disable,g[3-L][3].disable,g[0][2].lock,g[0][3].lock),Q.add(N[3].fire),A[N[0]]=function(){return A[N[0]+"With"](this===A?void 0:this,arguments),this},A[N[0]+"With"]=Q.fireWith}),F.promise(A),f&&f.call(A,A),A},when:function(f){var g=arguments.length,O=g,F=Array(O),A=S.call(arguments),L=v.Deferred(),N=function(Q){return function(J){F[Q]=this,A[Q]=arguments.length>1?S.call(arguments):J,--g||L.resolveWith(F,A)}};if(g<=1&&(st(f,L.done(N(O)).resolve,L.reject,!g),L.state()==="pending"||E(A[O]&&A[O].then)))return L.then();for(;O--;)st(A[O],N(O),L.reject);return L.promise()}});var pt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(f,g){l.console&&l.console.warn&&f&&pt.test(f.name)&&l.console.warn("jQuery.Deferred exception: "+f.message,f.stack,g)},v.readyException=function(f){l.setTimeout(function(){throw f})};var zt=v.Deferred();v.fn.ready=function(f){return zt.then(f).catch(function(g){v.readyException(g)}),this},v.extend({isReady:!1,readyWait:1,ready:function(f){(f===!0?--v.readyWait:v.isReady)||(v.isReady=!0,!(f!==!0&&--v.readyWait>0)&&zt.resolveWith(D,[v]))}}),v.ready.then=zt.then;function Qt(){D.removeEventListener("DOMContentLoaded",Qt),l.removeEventListener("load",Qt),v.ready()}D.readyState==="complete"||D.readyState!=="loading"&&!D.documentElement.doScroll?l.setTimeout(v.ready):(D.addEventListener("DOMContentLoaded",Qt),l.addEventListener("load",Qt));var Lt=function(f,g,O,F,A,L,N){var Q=0,J=f.length,re=O==null;if(M(O)==="object"){A=!0;for(Q in O)Lt(f,g,Q,O[Q],!0,L,N)}else if(F!==void 0&&(A=!0,E(F)||(N=!0),re&&(N?(g.call(f,F),g=null):(re=g,g=function(pe,be,le){return re.call(v(pe),le)})),g))for(;Q<J;Q++)g(f[Q],O,N?F:F.call(f[Q],Q,g(f[Q],O)));return A?f:re?g.call(f):J?g(f[0],O):L},or=/^-ms-/,rr=/-([a-z])/g;function hr(f,g){return g.toUpperCase()}function Ft(f){return f.replace(or,"ms-").replace(rr,hr)}var It=function(f){return f.nodeType===1||f.nodeType===9||!+f.nodeType};function Mt(){this.expando=v.expando+Mt.uid++}Mt.uid=1,Mt.prototype={cache:function(f){var g=f[this.expando];return g||(g={},It(f)&&(f.nodeType?f[this.expando]=g:Object.defineProperty(f,this.expando,{value:g,configurable:!0}))),g},set:function(f,g,O){var F,A=this.cache(f);if(typeof g=="string")A[Ft(g)]=O;else for(F in g)A[Ft(F)]=g[F];return A},get:function(f,g){return g===void 0?this.cache(f):f[this.expando]&&f[this.expando][Ft(g)]},access:function(f,g,O){return g===void 0||g&&typeof g=="string"&&O===void 0?this.get(f,g):(this.set(f,g,O),O!==void 0?O:g)},remove:function(f,g){var O,F=f[this.expando];if(F!==void 0){if(g!==void 0)for(Array.isArray(g)?g=g.map(Ft):(g=Ft(g),g=g in F?[g]:g.match(Ge)||[]),O=g.length;O--;)delete F[g[O]];(g===void 0||v.isEmptyObject(F))&&(f.nodeType?f[this.expando]=void 0:delete f[this.expando])}},hasData:function(f){var g=f[this.expando];return g!==void 0&&!v.isEmptyObject(g)}};var fe=new Mt,Pe=new Mt,ze=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,bt=/[A-Z]/g;function Pt(f){return f==="true"?!0:f==="false"?!1:f==="null"?null:f===+f+""?+f:ze.test(f)?JSON.parse(f):f}function Xt(f,g,O){var F;if(O===void 0&&f.nodeType===1)if(F="data-"+g.replace(bt,"-$&").toLowerCase(),O=f.getAttribute(F),typeof O=="string"){try{O=Pt(O)}catch{}Pe.set(f,g,O)}else O=void 0;return O}v.extend({hasData:function(f){return Pe.hasData(f)||fe.hasData(f)},data:function(f,g,O){return Pe.access(f,g,O)},removeData:function(f,g){Pe.remove(f,g)},_data:function(f,g,O){return fe.access(f,g,O)},_removeData:function(f,g){fe.remove(f,g)}}),v.fn.extend({data:function(f,g){var O,F,A,L=this[0],N=L&&L.attributes;if(f===void 0){if(this.length&&(A=Pe.get(L),L.nodeType===1&&!fe.get(L,"hasDataAttrs"))){for(O=N.length;O--;)N[O]&&(F=N[O].name,F.indexOf("data-")===0&&(F=Ft(F.slice(5)),Xt(L,F,A[F])));fe.set(L,"hasDataAttrs",!0)}return A}return typeof f=="object"?this.each(function(){Pe.set(this,f)}):Lt(this,function(Q){var J;if(L&&Q===void 0)return J=Pe.get(L,f),J!==void 0||(J=Xt(L,f),J!==void 0)?J:void 0;this.each(function(){Pe.set(this,f,Q)})},null,g,arguments.length>1,null,!0)},removeData:function(f){return this.each(function(){Pe.remove(this,f)})}}),v.extend({queue:function(f,g,O){var F;if(f)return g=(g||"fx")+"queue",F=fe.get(f,g),O&&(!F||Array.isArray(O)?F=fe.access(f,g,v.makeArray(O)):F.push(O)),F||[]},dequeue:function(f,g){g=g||"fx";var O=v.queue(f,g),F=O.length,A=O.shift(),L=v._queueHooks(f,g),N=function(){v.dequeue(f,g)};A==="inprogress"&&(A=O.shift(),F--),A&&(g==="fx"&&O.unshift("inprogress"),delete L.stop,A.call(f,N,L)),!F&&L&&L.empty.fire()},_queueHooks:function(f,g){var O=g+"queueHooks";return fe.get(f,O)||fe.access(f,O,{empty:v.Callbacks("once memory").add(function(){fe.remove(f,[g+"queue",O])})})}}),v.fn.extend({queue:function(f,g){var O=2;return typeof f!="string"&&(g=f,f="fx",O--),arguments.length<O?v.queue(this[0],f):g===void 0?this:this.each(function(){var F=v.queue(this,f,g);v._queueHooks(this,f),f==="fx"&&F[0]!=="inprogress"&&v.dequeue(this,f)})},dequeue:function(f){return this.each(function(){v.dequeue(this,f)})},clearQueue:function(f){return this.queue(f||"fx",[])},promise:function(f,g){var O,F=1,A=v.Deferred(),L=this,N=this.length,Q=function(){--F||A.resolveWith(L,[L])};for(typeof f!="string"&&(g=f,f=void 0),f=f||"fx";N--;)O=fe.get(L[N],f+"queueHooks"),O&&O.empty&&(F++,O.empty.add(Q));return Q(),A.promise(g)}});var nr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Wt=new RegExp("^(?:([+-])=|)("+nr+")([a-z%]*)$","i"),At=["Top","Right","Bottom","Left"],Ut=D.documentElement,ft=function(f){return v.contains(f.ownerDocument,f)},er={composed:!0};Ut.getRootNode&&(ft=function(f){return v.contains(f.ownerDocument,f)||f.getRootNode(er)===f.ownerDocument});var $r=function(f,g){return f=g||f,f.style.display==="none"||f.style.display===""&&ft(f)&&v.css(f,"display")==="none"};function $n(f,g,O,F){var A,L,N=20,Q=F?function(){return F.cur()}:function(){return v.css(f,g,"")},J=Q(),re=O&&O[3]||(v.cssNumber[g]?"":"px"),pe=f.nodeType&&(v.cssNumber[g]||re!=="px"&&+J)&&Wt.exec(v.css(f,g));if(pe&&pe[3]!==re){for(J=J/2,re=re||pe[3],pe=+J||1;N--;)v.style(f,g,pe+re),(1-L)*(1-(L=Q()/J||.5))<=0&&(N=0),pe=pe/L;pe=pe*2,v.style(f,g,pe+re),O=O||[]}return O&&(pe=+pe||+J||0,A=O[1]?pe+(O[1]+1)*O[2]:+O[2],F&&(F.unit=re,F.start=pe,F.end=A)),A}var et={};function ht(f){var g,O=f.ownerDocument,F=f.nodeName,A=et[F];return A||(g=O.body.appendChild(O.createElement(F)),A=v.css(g,"display"),g.parentNode.removeChild(g),A==="none"&&(A="block"),et[F]=A,A)}function $e(f,g){for(var O,F,A=[],L=0,N=f.length;L<N;L++)F=f[L],F.style&&(O=F.style.display,g?(O==="none"&&(A[L]=fe.get(F,"display")||null,A[L]||(F.style.display="")),F.style.display===""&&$r(F)&&(A[L]=ht(F))):O!=="none"&&(A[L]="none",fe.set(F,"display",O)));for(L=0;L<N;L++)A[L]!=null&&(f[L].style.display=A[L]);return f}v.fn.extend({show:function(){return $e(this,!0)},hide:function(){return $e(this)},toggle:function(f){return typeof f=="boolean"?f?this.show():this.hide():this.each(function(){$r(this)?v(this).show():v(this).hide()})}});var lt=/^(?:checkbox|radio)$/i,Gt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,V=/^$|^module$|\/(?:java|ecma)script/i;(function(){var f=D.createDocumentFragment(),g=f.appendChild(D.createElement("div")),O=D.createElement("input");O.setAttribute("type","radio"),O.setAttribute("checked","checked"),O.setAttribute("name","t"),g.appendChild(O),k.checkClone=g.cloneNode(!0).cloneNode(!0).lastChild.checked,g.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!g.cloneNode(!0).lastChild.defaultValue,g.innerHTML="<option></option>",k.option=!!g.lastChild})();var z={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,"",""]};z.tbody=z.tfoot=z.colgroup=z.caption=z.thead,z.th=z.td,k.option||(z.optgroup=z.option=[1,"<select multiple='multiple'>","</select>"]);function te(f,g){var O;return typeof f.getElementsByTagName<"u"?O=f.getElementsByTagName(g||"*"):typeof f.querySelectorAll<"u"?O=f.querySelectorAll(g||"*"):O=[],g===void 0||g&&G(f,g)?v.merge([f],O):O}function me(f,g){for(var O=0,F=f.length;O<F;O++)fe.set(f[O],"globalEval",!g||fe.get(g[O],"globalEval"))}var Se=/<|&#?\w+;/;function Me(f,g,O,F,A){for(var L,N,Q,J,re,pe,be=g.createDocumentFragment(),le=[],Ce=0,it=f.length;Ce<it;Ce++)if(L=f[Ce],L||L===0)if(M(L)==="object")v.merge(le,L.nodeType?[L]:L);else if(!Se.test(L))le.push(g.createTextNode(L));else{for(N=N||be.appendChild(g.createElement("div")),Q=(Gt.exec(L)||["",""])[1].toLowerCase(),J=z[Q]||z._default,N.innerHTML=J[1]+v.htmlPrefilter(L)+J[2],pe=J[0];pe--;)N=N.lastChild;v.merge(le,N.childNodes),N=be.firstChild,N.textContent=""}for(be.textContent="",Ce=0;L=le[Ce++];){if(F&&v.inArray(L,F)>-1){A&&A.push(L);continue}if(re=ft(L),N=te(be.appendChild(L),"script"),re&&me(N),O)for(pe=0;L=N[pe++];)V.test(L.type||"")&&O.push(L)}return be}var rt=/^([^.]*)(?:\.(.+)|)/;function Ie(){return!0}function at(){return!1}function We(f,g,O,F,A,L){var N,Q;if(typeof g=="object"){typeof O!="string"&&(F=F||O,O=void 0);for(Q in g)We(f,Q,O,F,g[Q],L);return f}if(F==null&&A==null?(A=O,F=O=void 0):A==null&&(typeof O=="string"?(A=F,F=void 0):(A=F,F=O,O=void 0)),A===!1)A=at;else if(!A)return f;return L===1&&(N=A,A=function(J){return v().off(J),N.apply(this,arguments)},A.guid=N.guid||(N.guid=v.guid++)),f.each(function(){v.event.add(this,g,A,F,O)})}v.event={global:{},add:function(f,g,O,F,A){var L,N,Q,J,re,pe,be,le,Ce,it,Ot,mt=fe.get(f);if(It(f))for(O.handler&&(L=O,O=L.handler,A=L.selector),A&&v.find.matchesSelector(Ut,A),O.guid||(O.guid=v.guid++),(J=mt.events)||(J=mt.events=Object.create(null)),(N=mt.handle)||(N=mt.handle=function(tr){return typeof v<"u"&&v.event.triggered!==tr.type?v.event.dispatch.apply(f,arguments):void 0}),g=(g||"").match(Ge)||[""],re=g.length;re--;)Q=rt.exec(g[re])||[],Ce=Ot=Q[1],it=(Q[2]||"").split(".").sort(),Ce&&(be=v.event.special[Ce]||{},Ce=(A?be.delegateType:be.bindType)||Ce,be=v.event.special[Ce]||{},pe=v.extend({type:Ce,origType:Ot,data:F,handler:O,guid:O.guid,selector:A,needsContext:A&&v.expr.match.needsContext.test(A),namespace:it.join(".")},L),(le=J[Ce])||(le=J[Ce]=[],le.delegateCount=0,(!be.setup||be.setup.call(f,F,it,N)===!1)&&f.addEventListener&&f.addEventListener(Ce,N)),be.add&&(be.add.call(f,pe),pe.handler.guid||(pe.handler.guid=O.guid)),A?le.splice(le.delegateCount++,0,pe):le.push(pe),v.event.global[Ce]=!0)},remove:function(f,g,O,F,A){var L,N,Q,J,re,pe,be,le,Ce,it,Ot,mt=fe.hasData(f)&&fe.get(f);if(!(!mt||!(J=mt.events))){for(g=(g||"").match(Ge)||[""],re=g.length;re--;){if(Q=rt.exec(g[re])||[],Ce=Ot=Q[1],it=(Q[2]||"").split(".").sort(),!Ce){for(Ce in J)v.event.remove(f,Ce+g[re],O,F,!0);continue}for(be=v.event.special[Ce]||{},Ce=(F?be.delegateType:be.bindType)||Ce,le=J[Ce]||[],Q=Q[2]&&new RegExp("(^|\\.)"+it.join("\\.(?:.*\\.|)")+"(\\.|$)"),N=L=le.length;L--;)pe=le[L],(A||Ot===pe.origType)&&(!O||O.guid===pe.guid)&&(!Q||Q.test(pe.namespace))&&(!F||F===pe.selector||F==="**"&&pe.selector)&&(le.splice(L,1),pe.selector&&le.delegateCount--,be.remove&&be.remove.call(f,pe));N&&!le.length&&((!be.teardown||be.teardown.call(f,it,mt.handle)===!1)&&v.removeEvent(f,Ce,mt.handle),delete J[Ce])}v.isEmptyObject(J)&&fe.remove(f,"handle events")}},dispatch:function(f){var g,O,F,A,L,N,Q=new Array(arguments.length),J=v.event.fix(f),re=(fe.get(this,"events")||Object.create(null))[J.type]||[],pe=v.event.special[J.type]||{};for(Q[0]=J,g=1;g<arguments.length;g++)Q[g]=arguments[g];if(J.delegateTarget=this,!(pe.preDispatch&&pe.preDispatch.call(this,J)===!1)){for(N=v.event.handlers.call(this,J,re),g=0;(A=N[g++])&&!J.isPropagationStopped();)for(J.currentTarget=A.elem,O=0;(L=A.handlers[O++])&&!J.isImmediatePropagationStopped();)(!J.rnamespace||L.namespace===!1||J.rnamespace.test(L.namespace))&&(J.handleObj=L,J.data=L.data,F=((v.event.special[L.origType]||{}).handle||L.handler).apply(A.elem,Q),F!==void 0&&(J.result=F)===!1&&(J.preventDefault(),J.stopPropagation()));return pe.postDispatch&&pe.postDispatch.call(this,J),J.result}},handlers:function(f,g){var O,F,A,L,N,Q=[],J=g.delegateCount,re=f.target;if(J&&re.nodeType&&!(f.type==="click"&&f.button>=1)){for(;re!==this;re=re.parentNode||this)if(re.nodeType===1&&!(f.type==="click"&&re.disabled===!0)){for(L=[],N={},O=0;O<J;O++)F=g[O],A=F.selector+" ",N[A]===void 0&&(N[A]=F.needsContext?v(A,this).index(re)>-1:v.find(A,this,null,[re]).length),N[A]&&L.push(F);L.length&&Q.push({elem:re,handlers:L})}}return re=this,J<g.length&&Q.push({elem:re,handlers:g.slice(J)}),Q},addProp:function(f,g){Object.defineProperty(v.Event.prototype,f,{enumerable:!0,configurable:!0,get:E(g)?function(){if(this.originalEvent)return g(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[f]},set:function(O){Object.defineProperty(this,f,{enumerable:!0,configurable:!0,writable:!0,value:O})}})},fix:function(f){return f[v.expando]?f:new v.Event(f)},special:{load:{noBubble:!0},click:{setup:function(f){var g=this||f;return lt.test(g.type)&&g.click&&G(g,"input")&&Je(g,"click",!0),!1},trigger:function(f){var g=this||f;return lt.test(g.type)&&g.click&&G(g,"input")&&Je(g,"click"),!0},_default:function(f){var g=f.target;return lt.test(g.type)&&g.click&&G(g,"input")&&fe.get(g,"click")||G(g,"a")}},beforeunload:{postDispatch:function(f){f.result!==void 0&&f.originalEvent&&(f.originalEvent.returnValue=f.result)}}}};function Je(f,g,O){if(!O){fe.get(f,g)===void 0&&v.event.add(f,g,Ie);return}fe.set(f,g,!1),v.event.add(f,g,{namespace:!1,handler:function(F){var A,L=fe.get(this,g);if(F.isTrigger&1&&this[g]){if(L)(v.event.special[g]||{}).delegateType&&F.stopPropagation();else if(L=S.call(arguments),fe.set(this,g,L),this[g](),A=fe.get(this,g),fe.set(this,g,!1),L!==A)return F.stopImmediatePropagation(),F.preventDefault(),A}else L&&(fe.set(this,g,v.event.trigger(L[0],L.slice(1),this)),F.stopPropagation(),F.isImmediatePropagationStopped=Ie)}})}v.removeEvent=function(f,g,O){f.removeEventListener&&f.removeEventListener(g,O)},v.Event=function(f,g){if(!(this instanceof v.Event))return new v.Event(f,g);f&&f.type?(this.originalEvent=f,this.type=f.type,this.isDefaultPrevented=f.defaultPrevented||f.defaultPrevented===void 0&&f.returnValue===!1?Ie:at,this.target=f.target&&f.target.nodeType===3?f.target.parentNode:f.target,this.currentTarget=f.currentTarget,this.relatedTarget=f.relatedTarget):this.type=f,g&&v.extend(this,g),this.timeStamp=f&&f.timeStamp||Date.now(),this[v.expando]=!0},v.Event.prototype={constructor:v.Event,isDefaultPrevented:at,isPropagationStopped:at,isImmediatePropagationStopped:at,isSimulated:!1,preventDefault:function(){var f=this.originalEvent;this.isDefaultPrevented=Ie,f&&!this.isSimulated&&f.preventDefault()},stopPropagation:function(){var f=this.originalEvent;this.isPropagationStopped=Ie,f&&!this.isSimulated&&f.stopPropagation()},stopImmediatePropagation:function(){var f=this.originalEvent;this.isImmediatePropagationStopped=Ie,f&&!this.isSimulated&&f.stopImmediatePropagation(),this.stopPropagation()}},v.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},v.event.addProp),v.each({focus:"focusin",blur:"focusout"},function(f,g){function O(F){if(D.documentMode){var A=fe.get(this,"handle"),L=v.event.fix(F);L.type=F.type==="focusin"?"focus":"blur",L.isSimulated=!0,A(F),L.target===L.currentTarget&&A(L)}else v.event.simulate(g,F.target,v.event.fix(F))}v.event.special[f]={setup:function(){var F;if(Je(this,f,!0),D.documentMode)F=fe.get(this,g),F||this.addEventListener(g,O),fe.set(this,g,(F||0)+1);else return!1},trigger:function(){return Je(this,f),!0},teardown:function(){var F;if(D.documentMode)F=fe.get(this,g)-1,F?fe.set(this,g,F):(this.removeEventListener(g,O),fe.remove(this,g));else return!1},_default:function(F){return fe.get(F.target,f)},delegateType:g},v.event.special[g]={setup:function(){var F=this.ownerDocument||this.document||this,A=D.documentMode?this:F,L=fe.get(A,g);L||(D.documentMode?this.addEventListener(g,O):F.addEventListener(f,O,!0)),fe.set(A,g,(L||0)+1)},teardown:function(){var F=this.ownerDocument||this.document||this,A=D.documentMode?this:F,L=fe.get(A,g)-1;L?fe.set(A,g,L):(D.documentMode?this.removeEventListener(g,O):F.removeEventListener(f,O,!0),fe.remove(A,g))}}}),v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(f,g){v.event.special[f]={delegateType:g,bindType:g,handle:function(O){var F,A=this,L=O.relatedTarget,N=O.handleObj;return(!L||L!==A&&!v.contains(A,L))&&(O.type=N.origType,F=N.handler.apply(this,arguments),O.type=g),F}}}),v.fn.extend({on:function(f,g,O,F){return We(this,f,g,O,F)},one:function(f,g,O,F){return We(this,f,g,O,F,1)},off:function(f,g,O){var F,A;if(f&&f.preventDefault&&f.handleObj)return F=f.handleObj,v(f.delegateTarget).off(F.namespace?F.origType+"."+F.namespace:F.origType,F.selector,F.handler),this;if(typeof f=="object"){for(A in f)this.off(A,g,f[A]);return this}return(g===!1||typeof g=="function")&&(O=g,g=void 0),O===!1&&(O=at),this.each(function(){v.event.remove(this,f,O,g)})}});var Bt=/<script|<style|<link/i,Hr=/checked\s*(?:[^=]|=\s*.checked.)/i,pr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function fn(f,g){return G(f,"table")&&G(g.nodeType!==11?g:g.firstChild,"tr")&&v(f).children("tbody")[0]||f}function Vr(f){return f.type=(f.getAttribute("type")!==null)+"/"+f.type,f}function rn(f){return(f.type||"").slice(0,5)==="true/"?f.type=f.type.slice(5):f.removeAttribute("type"),f}function jn(f,g){var O,F,A,L,N,Q,J;if(g.nodeType===1){if(fe.hasData(f)&&(L=fe.get(f),J=L.events,J)){fe.remove(g,"handle events");for(A in J)for(O=0,F=J[A].length;O<F;O++)v.event.add(g,A,J[A][O])}Pe.hasData(f)&&(N=Pe.access(f),Q=v.extend({},N),Pe.set(g,Q))}}function da(f,g){var O=g.nodeName.toLowerCase();O==="input"&&lt.test(f.type)?g.checked=f.checked:(O==="input"||O==="textarea")&&(g.defaultValue=f.defaultValue)}function Fr(f,g,O,F){g=p(g);var A,L,N,Q,J,re,pe=0,be=f.length,le=be-1,Ce=g[0],it=E(Ce);if(it||be>1&&typeof Ce=="string"&&!k.checkClone&&Hr.test(Ce))return f.each(function(Ot){var mt=f.eq(Ot);it&&(g[0]=Ce.call(this,Ot,mt.html())),Fr(mt,g,O,F)});if(be&&(A=Me(g,f[0].ownerDocument,!1,f,F),L=A.firstChild,A.childNodes.length===1&&(A=L),L||F)){for(N=v.map(te(A,"script"),Vr),Q=N.length;pe<be;pe++)J=A,pe!==le&&(J=v.clone(J,!0,!0),Q&&v.merge(N,te(J,"script"))),O.call(f[pe],J,pe);if(Q)for(re=N[N.length-1].ownerDocument,v.map(N,rn),pe=0;pe<Q;pe++)J=N[pe],V.test(J.type||"")&&!fe.access(J,"globalEval")&&v.contains(re,J)&&(J.src&&(J.type||"").toLowerCase()!=="module"?v._evalUrl&&!J.noModule&&v._evalUrl(J.src,{nonce:J.nonce||J.getAttribute("nonce")},re):H(J.textContent.replace(pr,""),J,re))}return f}function co(f,g,O){for(var F,A=g?v.filter(g,f):f,L=0;(F=A[L])!=null;L++)!O&&F.nodeType===1&&v.cleanData(te(F)),F.parentNode&&(O&&ft(F)&&me(te(F,"script")),F.parentNode.removeChild(F));return f}v.extend({htmlPrefilter:function(f){return f},clone:function(f,g,O){var F,A,L,N,Q=f.cloneNode(!0),J=ft(f);if(!k.noCloneChecked&&(f.nodeType===1||f.nodeType===11)&&!v.isXMLDoc(f))for(N=te(Q),L=te(f),F=0,A=L.length;F<A;F++)da(L[F],N[F]);if(g)if(O)for(L=L||te(f),N=N||te(Q),F=0,A=L.length;F<A;F++)jn(L[F],N[F]);else jn(f,Q);return N=te(Q,"script"),N.length>0&&me(N,!J&&te(f,"script")),Q},cleanData:function(f){for(var g,O,F,A=v.event.special,L=0;(O=f[L])!==void 0;L++)if(It(O)){if(g=O[fe.expando]){if(g.events)for(F in g.events)A[F]?v.event.remove(O,F):v.removeEvent(O,F,g.handle);O[fe.expando]=void 0}O[Pe.expando]&&(O[Pe.expando]=void 0)}}}),v.fn.extend({detach:function(f){return co(this,f,!0)},remove:function(f){return co(this,f)},text:function(f){return Lt(this,function(g){return g===void 0?v.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=g)})},null,f,arguments.length)},append:function(){return Fr(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var g=fn(this,f);g.appendChild(f)}})},prepend:function(){return Fr(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var g=fn(this,f);g.insertBefore(f,g.firstChild)}})},before:function(){return Fr(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this)})},after:function(){return Fr(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this.nextSibling)})},empty:function(){for(var f,g=0;(f=this[g])!=null;g++)f.nodeType===1&&(v.cleanData(te(f,!1)),f.textContent="");return this},clone:function(f,g){return f=f??!1,g=g??f,this.map(function(){return v.clone(this,f,g)})},html:function(f){return Lt(this,function(g){var O=this[0]||{},F=0,A=this.length;if(g===void 0&&O.nodeType===1)return O.innerHTML;if(typeof g=="string"&&!Bt.test(g)&&!z[(Gt.exec(g)||["",""])[1].toLowerCase()]){g=v.htmlPrefilter(g);try{for(;F<A;F++)O=this[F]||{},O.nodeType===1&&(v.cleanData(te(O,!1)),O.innerHTML=g);O=0}catch{}}O&&this.empty().append(g)},null,f,arguments.length)},replaceWith:function(){var f=[];return Fr(this,arguments,function(g){var O=this.parentNode;v.inArray(this,f)<0&&(v.cleanData(te(this)),O&&O.replaceChild(g,this))},f)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,g){v.fn[f]=function(O){for(var F,A=[],L=v(O),N=L.length-1,Q=0;Q<=N;Q++)F=Q===N?this:this.clone(!0),v(L[Q])[g](F),C.apply(A,F.get());return this.pushStack(A)}});var Ii=new RegExp("^("+nr+")(?!px)[a-z%]+$","i"),Mi=/^--/,Jn=function(f){var g=f.ownerDocument.defaultView;return(!g||!g.opener)&&(g=l),g.getComputedStyle(f)},On=function(f,g,O){var F,A,L={};for(A in g)L[A]=f.style[A],f.style[A]=g[A];F=O.call(f);for(A in g)f.style[A]=L[A];return F},nn=new RegExp(At.join("|"),"i");(function(){function f(){if(re){J.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",re.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ut.appendChild(J).appendChild(re);var pe=l.getComputedStyle(re);O=pe.top!=="1%",Q=g(pe.marginLeft)===12,re.style.right="60%",L=g(pe.right)===36,F=g(pe.width)===36,re.style.position="absolute",A=g(re.offsetWidth/3)===12,Ut.removeChild(J),re=null}}function g(pe){return Math.round(parseFloat(pe))}var O,F,A,L,N,Q,J=D.createElement("div"),re=D.createElement("div");re.style&&(re.style.backgroundClip="content-box",re.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle=re.style.backgroundClip==="content-box",v.extend(k,{boxSizingReliable:function(){return f(),F},pixelBoxStyles:function(){return f(),L},pixelPosition:function(){return f(),O},reliableMarginLeft:function(){return f(),Q},scrollboxSize:function(){return f(),A},reliableTrDimensions:function(){var pe,be,le,Ce;return N==null&&(pe=D.createElement("table"),be=D.createElement("tr"),le=D.createElement("div"),pe.style.cssText="position:absolute;left:-11111px;border-collapse:separate",be.style.cssText="box-sizing:content-box;border:1px solid",be.style.height="1px",le.style.height="9px",le.style.display="block",Ut.appendChild(pe).appendChild(be).appendChild(le),Ce=l.getComputedStyle(be),N=parseInt(Ce.height,10)+parseInt(Ce.borderTopWidth,10)+parseInt(Ce.borderBottomWidth,10)===be.offsetHeight,Ut.removeChild(pe)),N}}))})();function Kn(f,g,O){var F,A,L,N,Q=Mi.test(g),J=f.style;return O=O||Jn(f),O&&(N=O.getPropertyValue(g)||O[g],Q&&N&&(N=N.replace(ye,"$1")||void 0),N===""&&!ft(f)&&(N=v.style(f,g)),!k.pixelBoxStyles()&&Ii.test(N)&&nn.test(g)&&(F=J.width,A=J.minWidth,L=J.maxWidth,J.minWidth=J.maxWidth=J.width=N,N=O.width,J.width=F,J.minWidth=A,J.maxWidth=L)),N!==void 0?N+"":N}function Ga(f,g){return{get:function(){if(f()){delete this.get;return}return(this.get=g).apply(this,arguments)}}}var Qn=["Webkit","Moz","ms"],Ya=D.createElement("div").style,$a={};function Hu(f){for(var g=f[0].toUpperCase()+f.slice(1),O=Qn.length;O--;)if(f=Qn[O]+g,f in Ya)return f}function fo(f){var g=v.cssProps[f]||$a[f];return g||(f in Ya?f:$a[f]=Hu(f)||f)}var Ri=/^(none|table(?!-c[ea]).+)/,En={position:"absolute",visibility:"hidden",display:"block"},ho={letterSpacing:"0",fontWeight:"400"};function ha(f,g,O){var F=Wt.exec(g);return F?Math.max(0,F[2]-(O||0))+(F[3]||"px"):g}function Sn(f,g,O,F,A,L){var N=g==="width"?1:0,Q=0,J=0,re=0;if(O===(F?"border":"content"))return 0;for(;N<4;N+=2)O==="margin"&&(re+=v.css(f,O+At[N],!0,A)),F?(O==="content"&&(J-=v.css(f,"padding"+At[N],!0,A)),O!=="margin"&&(J-=v.css(f,"border"+At[N]+"Width",!0,A))):(J+=v.css(f,"padding"+At[N],!0,A),O!=="padding"?J+=v.css(f,"border"+At[N]+"Width",!0,A):Q+=v.css(f,"border"+At[N]+"Width",!0,A));return!F&&L>=0&&(J+=Math.max(0,Math.ceil(f["offset"+g[0].toUpperCase()+g.slice(1)]-L-J-Q-.5))||0),J+re}function Ja(f,g,O){var F=Jn(f),A=!k.boxSizingReliable()||O,L=A&&v.css(f,"boxSizing",!1,F)==="border-box",N=L,Q=Kn(f,g,F),J="offset"+g[0].toUpperCase()+g.slice(1);if(Ii.test(Q)){if(!O)return Q;Q="auto"}return(!k.boxSizingReliable()&&L||!k.reliableTrDimensions()&&G(f,"tr")||Q==="auto"||!parseFloat(Q)&&v.css(f,"display",!1,F)==="inline")&&f.getClientRects().length&&(L=v.css(f,"boxSizing",!1,F)==="border-box",N=J in f,N&&(Q=f[J])),Q=parseFloat(Q)||0,Q+Sn(f,g,O||(L?"border":"content"),N,F,Q)+"px"}v.extend({cssHooks:{opacity:{get:function(f,g){if(g){var O=Kn(f,"opacity");return O===""?"1":O}}}},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(f,g,O,F){if(!(!f||f.nodeType===3||f.nodeType===8||!f.style)){var A,L,N,Q=Ft(g),J=Mi.test(g),re=f.style;if(J||(g=fo(Q)),N=v.cssHooks[g]||v.cssHooks[Q],O!==void 0){if(L=typeof O,L==="string"&&(A=Wt.exec(O))&&A[1]&&(O=$n(f,g,A),L="number"),O==null||O!==O)return;L==="number"&&!J&&(O+=A&&A[3]||(v.cssNumber[Q]?"":"px")),!k.clearCloneStyle&&O===""&&g.indexOf("background")===0&&(re[g]="inherit"),(!N||!("set"in N)||(O=N.set(f,O,F))!==void 0)&&(J?re.setProperty(g,O):re[g]=O)}else return N&&"get"in N&&(A=N.get(f,!1,F))!==void 0?A:re[g]}},css:function(f,g,O,F){var A,L,N,Q=Ft(g),J=Mi.test(g);return J||(g=fo(Q)),N=v.cssHooks[g]||v.cssHooks[Q],N&&"get"in N&&(A=N.get(f,!0,O)),A===void 0&&(A=Kn(f,g,F)),A==="normal"&&g in ho&&(A=ho[g]),O===""||O?(L=parseFloat(A),O===!0||isFinite(L)?L||0:A):A}}),v.each(["height","width"],function(f,g){v.cssHooks[g]={get:function(O,F,A){if(F)return Ri.test(v.css(O,"display"))&&(!O.getClientRects().length||!O.getBoundingClientRect().width)?On(O,En,function(){return Ja(O,g,A)}):Ja(O,g,A)},set:function(O,F,A){var L,N=Jn(O),Q=!k.scrollboxSize()&&N.position==="absolute",J=Q||A,re=J&&v.css(O,"boxSizing",!1,N)==="border-box",pe=A?Sn(O,g,A,re,N):0;return re&&Q&&(pe-=Math.ceil(O["offset"+g[0].toUpperCase()+g.slice(1)]-parseFloat(N[g])-Sn(O,g,"border",!1,N)-.5)),pe&&(L=Wt.exec(F))&&(L[3]||"px")!=="px"&&(O.style[g]=F,F=v.css(O,g)),ha(O,F,pe)}}}),v.cssHooks.marginLeft=Ga(k.reliableMarginLeft,function(f,g){if(g)return(parseFloat(Kn(f,"marginLeft"))||f.getBoundingClientRect().left-On(f,{marginLeft:0},function(){return f.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(f,g){v.cssHooks[f+g]={expand:function(O){for(var F=0,A={},L=typeof O=="string"?O.split(" "):[O];F<4;F++)A[f+At[F]+g]=L[F]||L[F-2]||L[0];return A}},f!=="margin"&&(v.cssHooks[f+g].set=ha)}),v.fn.extend({css:function(f,g){return Lt(this,function(O,F,A){var L,N,Q={},J=0;if(Array.isArray(F)){for(L=Jn(O),N=F.length;J<N;J++)Q[F[J]]=v.css(O,F[J],!1,L);return Q}return A!==void 0?v.style(O,F,A):v.css(O,F)},f,g,arguments.length>1)}});function _r(f,g,O,F,A){return new _r.prototype.init(f,g,O,F,A)}v.Tween=_r,_r.prototype={constructor:_r,init:function(f,g,O,F,A,L){this.elem=f,this.prop=O,this.easing=A||v.easing._default,this.options=g,this.start=this.now=this.cur(),this.end=F,this.unit=L||(v.cssNumber[O]?"":"px")},cur:function(){var f=_r.propHooks[this.prop];return f&&f.get?f.get(this):_r.propHooks._default.get(this)},run:function(f){var g,O=_r.propHooks[this.prop];return this.options.duration?this.pos=g=v.easing[this.easing](f,this.options.duration*f,0,1,this.options.duration):this.pos=g=f,this.now=(this.end-this.start)*g+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),O&&O.set?O.set(this):_r.propHooks._default.set(this),this}},_r.prototype.init.prototype=_r.prototype,_r.propHooks={_default:{get:function(f){var g;return f.elem.nodeType!==1||f.elem[f.prop]!=null&&f.elem.style[f.prop]==null?f.elem[f.prop]:(g=v.css(f.elem,f.prop,""),!g||g==="auto"?0:g)},set:function(f){v.fx.step[f.prop]?v.fx.step[f.prop](f):f.elem.nodeType===1&&(v.cssHooks[f.prop]||f.elem.style[fo(f.prop)]!=null)?v.style(f.elem,f.prop,f.now+f.unit):f.elem[f.prop]=f.now}}},_r.propHooks.scrollTop=_r.propHooks.scrollLeft={set:function(f){f.elem.nodeType&&f.elem.parentNode&&(f.elem[f.prop]=f.now)}},v.easing={linear:function(f){return f},swing:function(f){return .5-Math.cos(f*Math.PI)/2},_default:"swing"},v.fx=_r.prototype.init,v.fx.step={};var pi,Ni,Fn=/^(?:toggle|show|hide)$/,Jr=/queueHooks$/;function Bi(){Ni&&(D.hidden===!1&&l.requestAnimationFrame?l.requestAnimationFrame(Bi):l.setTimeout(Bi,v.fx.interval),v.fx.tick())}function Ka(){return l.setTimeout(function(){pi=void 0}),pi=Date.now()}function dn(f,g){var O,F=0,A={height:f};for(g=g?1:0;F<4;F+=2-g)O=At[F],A["margin"+O]=A["padding"+O]=f;return g&&(A.opacity=A.width=f),A}function Qa(f,g,O){for(var F,A=(qr.tweeners[g]||[]).concat(qr.tweeners["*"]),L=0,N=A.length;L<N;L++)if(F=A[L].call(O,g,f))return F}function Vu(f,g,O){var F,A,L,N,Q,J,re,pe,be="width"in g||"height"in g,le=this,Ce={},it=f.style,Ot=f.nodeType&&$r(f),mt=fe.get(f,"fxshow");O.queue||(N=v._queueHooks(f,"fx"),N.unqueued==null&&(N.unqueued=0,Q=N.empty.fire,N.empty.fire=function(){N.unqueued||Q()}),N.unqueued++,le.always(function(){le.always(function(){N.unqueued--,v.queue(f,"fx").length||N.empty.fire()})}));for(F in g)if(A=g[F],Fn.test(A)){if(delete g[F],L=L||A==="toggle",A===(Ot?"hide":"show"))if(A==="show"&&mt&&mt[F]!==void 0)Ot=!0;else continue;Ce[F]=mt&&mt[F]||v.style(f,F)}if(J=!v.isEmptyObject(g),!(!J&&v.isEmptyObject(Ce))){be&&f.nodeType===1&&(O.overflow=[it.overflow,it.overflowX,it.overflowY],re=mt&&mt.display,re==null&&(re=fe.get(f,"display")),pe=v.css(f,"display"),pe==="none"&&(re?pe=re:($e([f],!0),re=f.style.display||re,pe=v.css(f,"display"),$e([f]))),(pe==="inline"||pe==="inline-block"&&re!=null)&&v.css(f,"float")==="none"&&(J||(le.done(function(){it.display=re}),re==null&&(pe=it.display,re=pe==="none"?"":pe)),it.display="inline-block")),O.overflow&&(it.overflow="hidden",le.always(function(){it.overflow=O.overflow[0],it.overflowX=O.overflow[1],it.overflowY=O.overflow[2]})),J=!1;for(F in Ce)J||(mt?"hidden"in mt&&(Ot=mt.hidden):mt=fe.access(f,"fxshow",{display:re}),L&&(mt.hidden=!Ot),Ot&&$e([f],!0),le.done(function(){Ot||$e([f]),fe.remove(f,"fxshow");for(F in Ce)v.style(f,F,Ce[F])})),J=Qa(Ot?mt[F]:0,F,le),F in mt||(mt[F]=J.start,Ot&&(J.end=J.start,J.start=0))}}function qu(f,g){var O,F,A,L,N;for(O in f)if(F=Ft(O),A=g[F],L=f[O],Array.isArray(L)&&(A=L[1],L=f[O]=L[0]),O!==F&&(f[F]=L,delete f[O]),N=v.cssHooks[F],N&&"expand"in N){L=N.expand(L),delete f[F];for(O in L)O in f||(f[O]=L[O],g[O]=A)}else g[F]=A}function qr(f,g,O){var F,A,L=0,N=qr.prefilters.length,Q=v.Deferred().always(function(){delete J.elem}),J=function(){if(A)return!1;for(var be=pi||Ka(),le=Math.max(0,re.startTime+re.duration-be),Ce=le/re.duration||0,it=1-Ce,Ot=0,mt=re.tweens.length;Ot<mt;Ot++)re.tweens[Ot].run(it);return Q.notifyWith(f,[re,it,le]),it<1&&mt?le:(mt||Q.notifyWith(f,[re,1,0]),Q.resolveWith(f,[re]),!1)},re=Q.promise({elem:f,props:v.extend({},g),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},O),originalProperties:g,originalOptions:O,startTime:pi||Ka(),duration:O.duration,tweens:[],createTween:function(be,le){var Ce=v.Tween(f,re.opts,be,le,re.opts.specialEasing[be]||re.opts.easing);return re.tweens.push(Ce),Ce},stop:function(be){var le=0,Ce=be?re.tweens.length:0;if(A)return this;for(A=!0;le<Ce;le++)re.tweens[le].run(1);return be?(Q.notifyWith(f,[re,1,0]),Q.resolveWith(f,[re,be])):Q.rejectWith(f,[re,be]),this}}),pe=re.props;for(qu(pe,re.opts.specialEasing);L<N;L++)if(F=qr.prefilters[L].call(re,f,pe,re.opts),F)return E(F.stop)&&(v._queueHooks(re.elem,re.opts.queue).stop=F.stop.bind(F)),F;return v.map(pe,Qa,re),E(re.opts.start)&&re.opts.start.call(f,re),re.progress(re.opts.progress).done(re.opts.done,re.opts.complete).fail(re.opts.fail).always(re.opts.always),v.fx.timer(v.extend(J,{elem:f,anim:re,queue:re.opts.queue})),re}v.Animation=v.extend(qr,{tweeners:{"*":[function(f,g){var O=this.createTween(f,g);return $n(O.elem,f,Wt.exec(g),O),O}]},tweener:function(f,g){E(f)?(g=f,f=["*"]):f=f.match(Ge);for(var O,F=0,A=f.length;F<A;F++)O=f[F],qr.tweeners[O]=qr.tweeners[O]||[],qr.tweeners[O].unshift(g)},prefilters:[Vu],prefilter:function(f,g){g?qr.prefilters.unshift(f):qr.prefilters.push(f)}}),v.speed=function(f,g,O){var F=f&&typeof f=="object"?v.extend({},f):{complete:O||!O&&g||E(f)&&f,duration:f,easing:O&&g||g&&!E(g)&&g};return v.fx.off?F.duration=0:typeof F.duration!="number"&&(F.duration in v.fx.speeds?F.duration=v.fx.speeds[F.duration]:F.duration=v.fx.speeds._default),(F.queue==null||F.queue===!0)&&(F.queue="fx"),F.old=F.complete,F.complete=function(){E(F.old)&&F.old.call(this),F.queue&&v.dequeue(this,F.queue)},F},v.fn.extend({fadeTo:function(f,g,O,F){return this.filter($r).css("opacity",0).show().end().animate({opacity:g},f,O,F)},animate:function(f,g,O,F){var A=v.isEmptyObject(f),L=v.speed(g,O,F),N=function(){var Q=qr(this,v.extend({},f),L);(A||fe.get(this,"finish"))&&Q.stop(!0)};return N.finish=N,A||L.queue===!1?this.each(N):this.queue(L.queue,N)},stop:function(f,g,O){var F=function(A){var L=A.stop;delete A.stop,L(O)};return typeof f!="string"&&(O=g,g=f,f=void 0),g&&this.queue(f||"fx",[]),this.each(function(){var A=!0,L=f!=null&&f+"queueHooks",N=v.timers,Q=fe.get(this);if(L)Q[L]&&Q[L].stop&&F(Q[L]);else for(L in Q)Q[L]&&Q[L].stop&&Jr.test(L)&&F(Q[L]);for(L=N.length;L--;)N[L].elem===this&&(f==null||N[L].queue===f)&&(N[L].anim.stop(O),A=!1,N.splice(L,1));(A||!O)&&v.dequeue(this,f)})},finish:function(f){return f!==!1&&(f=f||"fx"),this.each(function(){var g,O=fe.get(this),F=O[f+"queue"],A=O[f+"queueHooks"],L=v.timers,N=F?F.length:0;for(O.finish=!0,v.queue(this,f,[]),A&&A.stop&&A.stop.call(this,!0),g=L.length;g--;)L[g].elem===this&&L[g].queue===f&&(L[g].anim.stop(!0),L.splice(g,1));for(g=0;g<N;g++)F[g]&&F[g].finish&&F[g].finish.call(this);delete O.finish})}}),v.each(["toggle","show","hide"],function(f,g){var O=v.fn[g];v.fn[g]=function(F,A,L){return F==null||typeof F=="boolean"?O.apply(this,arguments):this.animate(dn(g,!0),F,A,L)}}),v.each({slideDown:dn("show"),slideUp:dn("hide"),slideToggle:dn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(f,g){v.fn[f]=function(O,F,A){return this.animate(g,O,F,A)}}),v.timers=[],v.fx.tick=function(){var f,g=0,O=v.timers;for(pi=Date.now();g<O.length;g++)f=O[g],!f()&&O[g]===f&&O.splice(g--,1);O.length||v.fx.stop(),pi=void 0},v.fx.timer=function(f){v.timers.push(f),v.fx.start()},v.fx.interval=13,v.fx.start=function(){Ni||(Ni=!0,Bi())},v.fx.stop=function(){Ni=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(f,g){return f=v.fx&&v.fx.speeds[f]||f,g=g||"fx",this.queue(g,function(O,F){var A=l.setTimeout(O,f);F.stop=function(){l.clearTimeout(A)}})},function(){var f=D.createElement("input"),g=D.createElement("select"),O=g.appendChild(D.createElement("option"));f.type="checkbox",k.checkOn=f.value!=="",k.optSelected=O.selected,f=D.createElement("input"),f.value="t",f.type="radio",k.radioValue=f.value==="t"}();var hn,mr=v.expr.attrHandle;v.fn.extend({attr:function(f,g){return Lt(this,v.attr,f,g,arguments.length>1)},removeAttr:function(f){return this.each(function(){v.removeAttr(this,f)})}}),v.extend({attr:function(f,g,O){var F,A,L=f.nodeType;if(!(L===3||L===8||L===2)){if(typeof f.getAttribute>"u")return v.prop(f,g,O);if((L!==1||!v.isXMLDoc(f))&&(A=v.attrHooks[g.toLowerCase()]||(v.expr.match.bool.test(g)?hn:void 0)),O!==void 0){if(O===null){v.removeAttr(f,g);return}return A&&"set"in A&&(F=A.set(f,O,g))!==void 0?F:(f.setAttribute(g,O+""),O)}return A&&"get"in A&&(F=A.get(f,g))!==null?F:(F=v.find.attr(f,g),F??void 0)}},attrHooks:{type:{set:function(f,g){if(!k.radioValue&&g==="radio"&&G(f,"input")){var O=f.value;return f.setAttribute("type",g),O&&(f.value=O),g}}}},removeAttr:function(f,g){var O,F=0,A=g&&g.match(Ge);if(A&&f.nodeType===1)for(;O=A[F++];)f.removeAttribute(O)}}),hn={set:function(f,g,O){return g===!1?v.removeAttr(f,O):f.setAttribute(O,O),O}},v.each(v.expr.match.bool.source.match(/\w+/g),function(f,g){var O=mr[g]||v.find.attr;mr[g]=function(F,A,L){var N,Q,J=A.toLowerCase();return L||(Q=mr[J],mr[J]=N,N=O(F,A,L)!=null?J:null,mr[J]=Q),N}});var pa=/^(?:input|select|textarea|button)$/i,Hi=/^(?:a|area)$/i;v.fn.extend({prop:function(f,g){return Lt(this,v.prop,f,g,arguments.length>1)},removeProp:function(f){return this.each(function(){delete this[v.propFix[f]||f]})}}),v.extend({prop:function(f,g,O){var F,A,L=f.nodeType;if(!(L===3||L===8||L===2))return(L!==1||!v.isXMLDoc(f))&&(g=v.propFix[g]||g,A=v.propHooks[g]),O!==void 0?A&&"set"in A&&(F=A.set(f,O,g))!==void 0?F:f[g]=O:A&&"get"in A&&(F=A.get(f,g))!==null?F:f[g]},propHooks:{tabIndex:{get:function(f){var g=v.find.attr(f,"tabindex");return g?parseInt(g,10):pa.test(f.nodeName)||Hi.test(f.nodeName)&&f.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),k.optSelected||(v.propHooks.selected={get:function(f){var g=f.parentNode;return g&&g.parentNode&&g.parentNode.selectedIndex,null},set:function(f){var g=f.parentNode;g&&(g.selectedIndex,g.parentNode&&g.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this});function zr(f){var g=f.match(Ge)||[];return g.join(" ")}function Zn(f){return f.getAttribute&&f.getAttribute("class")||""}function ma(f){return Array.isArray(f)?f:typeof f=="string"?f.match(Ge)||[]:[]}v.fn.extend({addClass:function(f){var g,O,F,A,L,N;return E(f)?this.each(function(Q){v(this).addClass(f.call(this,Q,Zn(this)))}):(g=ma(f),g.length?this.each(function(){if(F=Zn(this),O=this.nodeType===1&&" "+zr(F)+" ",O){for(L=0;L<g.length;L++)A=g[L],O.indexOf(" "+A+" ")<0&&(O+=A+" ");N=zr(O),F!==N&&this.setAttribute("class",N)}}):this)},removeClass:function(f){var g,O,F,A,L,N;return E(f)?this.each(function(Q){v(this).removeClass(f.call(this,Q,Zn(this)))}):arguments.length?(g=ma(f),g.length?this.each(function(){if(F=Zn(this),O=this.nodeType===1&&" "+zr(F)+" ",O){for(L=0;L<g.length;L++)for(A=g[L];O.indexOf(" "+A+" ")>-1;)O=O.replace(" "+A+" "," ");N=zr(O),F!==N&&this.setAttribute("class",N)}}):this):this.attr("class","")},toggleClass:function(f,g){var O,F,A,L,N=typeof f,Q=N==="string"||Array.isArray(f);return E(f)?this.each(function(J){v(this).toggleClass(f.call(this,J,Zn(this),g),g)}):typeof g=="boolean"&&Q?g?this.addClass(f):this.removeClass(f):(O=ma(f),this.each(function(){if(Q)for(L=v(this),A=0;A<O.length;A++)F=O[A],L.hasClass(F)?L.removeClass(F):L.addClass(F);else(f===void 0||N==="boolean")&&(F=Zn(this),F&&fe.set(this,"__className__",F),this.setAttribute&&this.setAttribute("class",F||f===!1?"":fe.get(this,"__className__")||""))}))},hasClass:function(f){var g,O,F=0;for(g=" "+f+" ";O=this[F++];)if(O.nodeType===1&&(" "+zr(Zn(O))+" ").indexOf(g)>-1)return!0;return!1}});var zu=/\r/g;v.fn.extend({val:function(f){var g,O,F,A=this[0];return arguments.length?(F=E(f),this.each(function(L){var N;this.nodeType===1&&(F?N=f.call(this,L,v(this).val()):N=f,N==null?N="":typeof N=="number"?N+="":Array.isArray(N)&&(N=v.map(N,function(Q){return Q==null?"":Q+""})),g=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()],(!g||!("set"in g)||g.set(this,N,"value")===void 0)&&(this.value=N))})):A?(g=v.valHooks[A.type]||v.valHooks[A.nodeName.toLowerCase()],g&&"get"in g&&(O=g.get(A,"value"))!==void 0?O:(O=A.value,typeof O=="string"?O.replace(zu,""):O??"")):void 0}}),v.extend({valHooks:{option:{get:function(f){var g=v.find.attr(f,"value");return g??zr(v.text(f))}},select:{get:function(f){var g,O,F,A=f.options,L=f.selectedIndex,N=f.type==="select-one",Q=N?null:[],J=N?L+1:A.length;for(L<0?F=J:F=N?L:0;F<J;F++)if(O=A[F],(O.selected||F===L)&&!O.disabled&&(!O.parentNode.disabled||!G(O.parentNode,"optgroup"))){if(g=v(O).val(),N)return g;Q.push(g)}return Q},set:function(f,g){for(var O,F,A=f.options,L=v.makeArray(g),N=A.length;N--;)F=A[N],(F.selected=v.inArray(v.valHooks.option.get(F),L)>-1)&&(O=!0);return O||(f.selectedIndex=-1),L}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(f,g){if(Array.isArray(g))return f.checked=v.inArray(v(f).val(),g)>-1}},k.checkOn||(v.valHooks[this].get=function(f){return f.getAttribute("value")===null?"on":f.value})});var mi=l.location,pn={guid:Date.now()},Pr=/\?/;v.parseXML=function(f){var g,O;if(!f||typeof f!="string")return null;try{g=new l.DOMParser().parseFromString(f,"text/xml")}catch{}return O=g&&g.getElementsByTagName("parsererror")[0],(!g||O)&&v.error("Invalid XML: "+(O?v.map(O.childNodes,function(F){return F.textContent}).join(`
11
+ `):f)),g};var po=/^(?:focusinfocus|focusoutblur)$/,ga=function(f){f.stopPropagation()};v.extend(v.event,{trigger:function(f,g,O,F){var A,L,N,Q,J,re,pe,be,le=[O||D],Ce=w.call(f,"type")?f.type:f,it=w.call(f,"namespace")?f.namespace.split("."):[];if(L=be=N=O=O||D,!(O.nodeType===3||O.nodeType===8)&&!po.test(Ce+v.event.triggered)&&(Ce.indexOf(".")>-1&&(it=Ce.split("."),Ce=it.shift(),it.sort()),J=Ce.indexOf(":")<0&&"on"+Ce,f=f[v.expando]?f:new v.Event(Ce,typeof f=="object"&&f),f.isTrigger=F?2:3,f.namespace=it.join("."),f.rnamespace=f.namespace?new RegExp("(^|\\.)"+it.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f.result=void 0,f.target||(f.target=O),g=g==null?[f]:v.makeArray(g,[f]),pe=v.event.special[Ce]||{},!(!F&&pe.trigger&&pe.trigger.apply(O,g)===!1))){if(!F&&!pe.noBubble&&!T(O)){for(Q=pe.delegateType||Ce,po.test(Q+Ce)||(L=L.parentNode);L;L=L.parentNode)le.push(L),N=L;N===(O.ownerDocument||D)&&le.push(N.defaultView||N.parentWindow||l)}for(A=0;(L=le[A++])&&!f.isPropagationStopped();)be=L,f.type=A>1?Q:pe.bindType||Ce,re=(fe.get(L,"events")||Object.create(null))[f.type]&&fe.get(L,"handle"),re&&re.apply(L,g),re=J&&L[J],re&&re.apply&&It(L)&&(f.result=re.apply(L,g),f.result===!1&&f.preventDefault());return f.type=Ce,!F&&!f.isDefaultPrevented()&&(!pe._default||pe._default.apply(le.pop(),g)===!1)&&It(O)&&J&&E(O[Ce])&&!T(O)&&(N=O[J],N&&(O[J]=null),v.event.triggered=Ce,f.isPropagationStopped()&&be.addEventListener(Ce,ga),O[Ce](),f.isPropagationStopped()&&be.removeEventListener(Ce,ga),v.event.triggered=void 0,N&&(O[J]=N)),f.result}},simulate:function(f,g,O){var F=v.extend(new v.Event,O,{type:f,isSimulated:!0});v.event.trigger(F,null,g)}}),v.fn.extend({trigger:function(f,g){return this.each(function(){v.event.trigger(f,g,this)})},triggerHandler:function(f,g){var O=this[0];if(O)return v.event.trigger(f,g,O,!0)}});var Xn=/\[\]$/,Za=/\r?\n/g,Wu=/^(?:submit|button|image|reset|file)$/i,Uu=/^(?:input|select|textarea|keygen)/i;function mo(f,g,O,F){var A;if(Array.isArray(g))v.each(g,function(L,N){O||Xn.test(f)?F(f,N):mo(f+"["+(typeof N=="object"&&N!=null?L:"")+"]",N,O,F)});else if(!O&&M(g)==="object")for(A in g)mo(f+"["+A+"]",g[A],O,F);else F(f,g)}v.param=function(f,g){var O,F=[],A=function(L,N){var Q=E(N)?N():N;F[F.length]=encodeURIComponent(L)+"="+encodeURIComponent(Q??"")};if(f==null)return"";if(Array.isArray(f)||f.jquery&&!v.isPlainObject(f))v.each(f,function(){A(this.name,this.value)});else for(O in f)mo(O,f[O],g,A);return F.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var f=v.prop(this,"elements");return f?v.makeArray(f):this}).filter(function(){var f=this.type;return this.name&&!v(this).is(":disabled")&&Uu.test(this.nodeName)&&!Wu.test(f)&&(this.checked||!lt.test(f))}).map(function(f,g){var O=v(this).val();return O==null?null:Array.isArray(O)?v.map(O,function(F){return{name:g.name,value:F.replace(Za,`\r
12
+ `)}}):{name:g.name,value:O.replace(Za,`\r
13
+ `)}}).get()}});var Vi=/%20/g,Pn=/#.*$/,ya=/([?&])_=[^&]*/,Gu=/^(.*?):[ \t]*([^\r\n]*)$/mg,gi=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Yu=/^(?:GET|HEAD)$/,$u=/^\/\//,Xa={},go={},mn="*/".concat("*"),Tr=D.createElement("a");Tr.href=mi.href;function yo(f){return function(g,O){typeof g!="string"&&(O=g,g="*");var F,A=0,L=g.toLowerCase().match(Ge)||[];if(E(O))for(;F=L[A++];)F[0]==="+"?(F=F.slice(1)||"*",(f[F]=f[F]||[]).unshift(O)):(f[F]=f[F]||[]).push(O)}}function es(f,g,O,F){var A={},L=f===go;function N(Q){var J;return A[Q]=!0,v.each(f[Q]||[],function(re,pe){var be=pe(g,O,F);if(typeof be=="string"&&!L&&!A[be])return g.dataTypes.unshift(be),N(be),!1;if(L)return!(J=be)}),J}return N(g.dataTypes[0])||!A["*"]&&N("*")}function gn(f,g){var O,F,A=v.ajaxSettings.flatOptions||{};for(O in g)g[O]!==void 0&&((A[O]?f:F||(F={}))[O]=g[O]);return F&&v.extend(!0,f,F),f}function ts(f,g,O){for(var F,A,L,N,Q=f.contents,J=f.dataTypes;J[0]==="*";)J.shift(),F===void 0&&(F=f.mimeType||g.getResponseHeader("Content-Type"));if(F){for(A in Q)if(Q[A]&&Q[A].test(F)){J.unshift(A);break}}if(J[0]in O)L=J[0];else{for(A in O){if(!J[0]||f.converters[A+" "+J[0]]){L=A;break}N||(N=A)}L=L||N}if(L)return L!==J[0]&&J.unshift(L),O[L]}function Ju(f,g,O,F){var A,L,N,Q,J,re={},pe=f.dataTypes.slice();if(pe[1])for(N in f.converters)re[N.toLowerCase()]=f.converters[N];for(L=pe.shift();L;)if(f.responseFields[L]&&(O[f.responseFields[L]]=g),!J&&F&&f.dataFilter&&(g=f.dataFilter(g,f.dataType)),J=L,L=pe.shift(),L){if(L==="*")L=J;else if(J!=="*"&&J!==L){if(N=re[J+" "+L]||re["* "+L],!N){for(A in re)if(Q=A.split(" "),Q[1]===L&&(N=re[J+" "+Q[0]]||re["* "+Q[0]],N)){N===!0?N=re[A]:re[A]!==!0&&(L=Q[0],pe.unshift(Q[1]));break}}if(N!==!0)if(N&&f.throws)g=N(g);else try{g=N(g)}catch(be){return{state:"parsererror",error:N?be:"No conversion from "+J+" to "+L}}}}return{state:"success",data:g}}v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mi.href,type:"GET",isLocal:gi.test(mi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":mn,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":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(f,g){return g?gn(gn(f,v.ajaxSettings),g):gn(v.ajaxSettings,f)},ajaxPrefilter:yo(Xa),ajaxTransport:yo(go),ajax:function(f,g){typeof f=="object"&&(g=f,f=void 0),g=g||{};var O,F,A,L,N,Q,J,re,pe,be,le=v.ajaxSetup({},g),Ce=le.context||le,it=le.context&&(Ce.nodeType||Ce.jquery)?v(Ce):v.event,Ot=v.Deferred(),mt=v.Callbacks("once memory"),tr=le.statusCode||{},ar={},on={},an="canceled",kt={readyState:0,getResponseHeader:function(wt){var Zt;if(J){if(!L)for(L={};Zt=Gu.exec(A);)L[Zt[1].toLowerCase()+" "]=(L[Zt[1].toLowerCase()+" "]||[]).concat(Zt[2]);Zt=L[wt.toLowerCase()+" "]}return Zt==null?null:Zt.join(", ")},getAllResponseHeaders:function(){return J?A:null},setRequestHeader:function(wt,Zt){return J==null&&(wt=on[wt.toLowerCase()]=on[wt.toLowerCase()]||wt,ar[wt]=Zt),this},overrideMimeType:function(wt){return J==null&&(le.mimeType=wt),this},statusCode:function(wt){var Zt;if(wt)if(J)kt.always(wt[kt.status]);else for(Zt in wt)tr[Zt]=[tr[Zt],wt[Zt]];return this},abort:function(wt){var Zt=wt||an;return O&&O.abort(Zt),yn(0,Zt),this}};if(Ot.promise(kt),le.url=((f||le.url||mi.href)+"").replace($u,mi.protocol+"//"),le.type=g.method||g.type||le.method||le.type,le.dataTypes=(le.dataType||"*").toLowerCase().match(Ge)||[""],le.crossDomain==null){Q=D.createElement("a");try{Q.href=le.url,Q.href=Q.href,le.crossDomain=Tr.protocol+"//"+Tr.host!=Q.protocol+"//"+Q.host}catch{le.crossDomain=!0}}if(le.data&&le.processData&&typeof le.data!="string"&&(le.data=v.param(le.data,le.traditional)),es(Xa,le,g,kt),J)return kt;re=v.event&&le.global,re&&v.active++===0&&v.event.trigger("ajaxStart"),le.type=le.type.toUpperCase(),le.hasContent=!Yu.test(le.type),F=le.url.replace(Pn,""),le.hasContent?le.data&&le.processData&&(le.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(le.data=le.data.replace(Vi,"+")):(be=le.url.slice(F.length),le.data&&(le.processData||typeof le.data=="string")&&(F+=(Pr.test(F)?"&":"?")+le.data,delete le.data),le.cache===!1&&(F=F.replace(ya,"$1"),be=(Pr.test(F)?"&":"?")+"_="+pn.guid+++be),le.url=F+be),le.ifModified&&(v.lastModified[F]&&kt.setRequestHeader("If-Modified-Since",v.lastModified[F]),v.etag[F]&&kt.setRequestHeader("If-None-Match",v.etag[F])),(le.data&&le.hasContent&&le.contentType!==!1||g.contentType)&&kt.setRequestHeader("Content-Type",le.contentType),kt.setRequestHeader("Accept",le.dataTypes[0]&&le.accepts[le.dataTypes[0]]?le.accepts[le.dataTypes[0]]+(le.dataTypes[0]!=="*"?", "+mn+"; q=0.01":""):le.accepts["*"]);for(pe in le.headers)kt.setRequestHeader(pe,le.headers[pe]);if(le.beforeSend&&(le.beforeSend.call(Ce,kt,le)===!1||J))return kt.abort();if(an="abort",mt.add(le.complete),kt.done(le.success),kt.fail(le.error),O=es(go,le,g,kt),!O)yn(-1,"No Transport");else{if(kt.readyState=1,re&&it.trigger("ajaxSend",[kt,le]),J)return kt;le.async&&le.timeout>0&&(N=l.setTimeout(function(){kt.abort("timeout")},le.timeout));try{J=!1,O.send(ar,yn)}catch(wt){if(J)throw wt;yn(-1,wt)}}function yn(wt,Zt,yi,Ln){var sn,zi,un,vn,Kr,kr=Zt;J||(J=!0,N&&l.clearTimeout(N),O=void 0,A=Ln||"",kt.readyState=wt>0?4:0,sn=wt>=200&&wt<300||wt===304,yi&&(vn=ts(le,kt,yi)),!sn&&v.inArray("script",le.dataTypes)>-1&&v.inArray("json",le.dataTypes)<0&&(le.converters["text script"]=function(){}),vn=Ju(le,vn,kt,sn),sn?(le.ifModified&&(Kr=kt.getResponseHeader("Last-Modified"),Kr&&(v.lastModified[F]=Kr),Kr=kt.getResponseHeader("etag"),Kr&&(v.etag[F]=Kr)),wt===204||le.type==="HEAD"?kr="nocontent":wt===304?kr="notmodified":(kr=vn.state,zi=vn.data,un=vn.error,sn=!un)):(un=kr,(wt||!kr)&&(kr="error",wt<0&&(wt=0))),kt.status=wt,kt.statusText=(Zt||kr)+"",sn?Ot.resolveWith(Ce,[zi,kr,kt]):Ot.rejectWith(Ce,[kt,kr,un]),kt.statusCode(tr),tr=void 0,re&&it.trigger(sn?"ajaxSuccess":"ajaxError",[kt,le,sn?zi:un]),mt.fireWith(Ce,[kt,kr]),re&&(it.trigger("ajaxComplete",[kt,le]),--v.active||v.event.trigger("ajaxStop")))}return kt},getJSON:function(f,g,O){return v.get(f,g,O,"json")},getScript:function(f,g){return v.get(f,void 0,g,"script")}}),v.each(["get","post"],function(f,g){v[g]=function(O,F,A,L){return E(F)&&(L=L||A,A=F,F=void 0),v.ajax(v.extend({url:O,type:g,dataType:L,data:F,success:A},v.isPlainObject(O)&&O))}}),v.ajaxPrefilter(function(f){var g;for(g in f.headers)g.toLowerCase()==="content-type"&&(f.contentType=f.headers[g]||"")}),v._evalUrl=function(f,g,O){return v.ajax({url:f,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(F){v.globalEval(F,g,O)}})},v.fn.extend({wrapAll:function(f){var g;return this[0]&&(E(f)&&(f=f.call(this[0])),g=v(f,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&g.insertBefore(this[0]),g.map(function(){for(var O=this;O.firstElementChild;)O=O.firstElementChild;return O}).append(this)),this},wrapInner:function(f){return E(f)?this.each(function(g){v(this).wrapInner(f.call(this,g))}):this.each(function(){var g=v(this),O=g.contents();O.length?O.wrapAll(f):g.append(f)})},wrap:function(f){var g=E(f);return this.each(function(O){v(this).wrapAll(g?f.call(this,O):f)})},unwrap:function(f){return this.parent(f).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(f){return!v.expr.pseudos.visible(f)},v.expr.pseudos.visible=function(f){return!!(f.offsetWidth||f.offsetHeight||f.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new l.XMLHttpRequest}catch{}};var Ku={0:200,1223:204},qi=v.ajaxSettings.xhr();k.cors=!!qi&&"withCredentials"in qi,k.ajax=qi=!!qi,v.ajaxTransport(function(f){var g,O;if(k.cors||qi&&!f.crossDomain)return{send:function(F,A){var L,N=f.xhr();if(N.open(f.type,f.url,f.async,f.username,f.password),f.xhrFields)for(L in f.xhrFields)N[L]=f.xhrFields[L];f.mimeType&&N.overrideMimeType&&N.overrideMimeType(f.mimeType),!f.crossDomain&&!F["X-Requested-With"]&&(F["X-Requested-With"]="XMLHttpRequest");for(L in F)N.setRequestHeader(L,F[L]);g=function(Q){return function(){g&&(g=O=N.onload=N.onerror=N.onabort=N.ontimeout=N.onreadystatechange=null,Q==="abort"?N.abort():Q==="error"?typeof N.status!="number"?A(0,"error"):A(N.status,N.statusText):A(Ku[N.status]||N.status,N.statusText,(N.responseType||"text")!=="text"||typeof N.responseText!="string"?{binary:N.response}:{text:N.responseText},N.getAllResponseHeaders()))}},N.onload=g(),O=N.onerror=N.ontimeout=g("error"),N.onabort!==void 0?N.onabort=O:N.onreadystatechange=function(){N.readyState===4&&l.setTimeout(function(){g&&O()})},g=g("abort");try{N.send(f.hasContent&&f.data||null)}catch(Q){if(g)throw Q}},abort:function(){g&&g()}}}),v.ajaxPrefilter(function(f){f.crossDomain&&(f.contents.script=!1)}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(f){return v.globalEval(f),f}}}),v.ajaxPrefilter("script",function(f){f.cache===void 0&&(f.cache=!1),f.crossDomain&&(f.type="GET")}),v.ajaxTransport("script",function(f){if(f.crossDomain||f.scriptAttrs){var g,O;return{send:function(F,A){g=v("<script>").attr(f.scriptAttrs||{}).prop({charset:f.scriptCharset,src:f.url}).on("load error",O=function(L){g.remove(),O=null,L&&A(L.type==="error"?404:200,L.type)}),D.head.appendChild(g[0])},abort:function(){O&&O()}}}});var va=[],ei=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var f=va.pop()||v.expando+"_"+pn.guid++;return this[f]=!0,f}}),v.ajaxPrefilter("json jsonp",function(f,g,O){var F,A,L,N=f.jsonp!==!1&&(ei.test(f.url)?"url":typeof f.data=="string"&&(f.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ei.test(f.data)&&"data");if(N||f.dataTypes[0]==="jsonp")return F=f.jsonpCallback=E(f.jsonpCallback)?f.jsonpCallback():f.jsonpCallback,N?f[N]=f[N].replace(ei,"$1"+F):f.jsonp!==!1&&(f.url+=(Pr.test(f.url)?"&":"?")+f.jsonp+"="+F),f.converters["script json"]=function(){return L||v.error(F+" was not called"),L[0]},f.dataTypes[0]="json",A=l[F],l[F]=function(){L=arguments},O.always(function(){A===void 0?v(l).removeProp(F):l[F]=A,f[F]&&(f.jsonpCallback=g.jsonpCallback,va.push(F)),L&&E(A)&&A(L[0]),L=A=void 0}),"script"}),k.createHTMLDocument=function(){var f=D.implementation.createHTMLDocument("").body;return f.innerHTML="<form></form><form></form>",f.childNodes.length===2}(),v.parseHTML=function(f,g,O){if(typeof f!="string")return[];typeof g=="boolean"&&(O=g,g=!1);var F,A,L;return g||(k.createHTMLDocument?(g=D.implementation.createHTMLDocument(""),F=g.createElement("base"),F.href=D.location.href,g.head.appendChild(F)):g=D),A=tt.exec(f),L=!O&&[],A?[g.createElement(A[1])]:(A=Me([f],g,L),L&&L.length&&v(L).remove(),v.merge([],A.childNodes))},v.fn.load=function(f,g,O){var F,A,L,N=this,Q=f.indexOf(" ");return Q>-1&&(F=zr(f.slice(Q)),f=f.slice(0,Q)),E(g)?(O=g,g=void 0):g&&typeof g=="object"&&(A="POST"),N.length>0&&v.ajax({url:f,type:A||"GET",dataType:"html",data:g}).done(function(J){L=arguments,N.html(F?v("<div>").append(v.parseHTML(J)).find(F):J)}).always(O&&function(J,re){N.each(function(){O.apply(this,L||[J.responseText,re,J])})}),this},v.expr.pseudos.animated=function(f){return v.grep(v.timers,function(g){return f===g.elem}).length},v.offset={setOffset:function(f,g,O){var F,A,L,N,Q,J,re,pe=v.css(f,"position"),be=v(f),le={};pe==="static"&&(f.style.position="relative"),Q=be.offset(),L=v.css(f,"top"),J=v.css(f,"left"),re=(pe==="absolute"||pe==="fixed")&&(L+J).indexOf("auto")>-1,re?(F=be.position(),N=F.top,A=F.left):(N=parseFloat(L)||0,A=parseFloat(J)||0),E(g)&&(g=g.call(f,O,v.extend({},Q))),g.top!=null&&(le.top=g.top-Q.top+N),g.left!=null&&(le.left=g.left-Q.left+A),"using"in g?g.using.call(f,le):be.css(le)}},v.fn.extend({offset:function(f){if(arguments.length)return f===void 0?this:this.each(function(A){v.offset.setOffset(this,f,A)});var g,O,F=this[0];if(F)return F.getClientRects().length?(g=F.getBoundingClientRect(),O=F.ownerDocument.defaultView,{top:g.top+O.pageYOffset,left:g.left+O.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var f,g,O,F=this[0],A={top:0,left:0};if(v.css(F,"position")==="fixed")g=F.getBoundingClientRect();else{for(g=this.offset(),O=F.ownerDocument,f=F.offsetParent||O.documentElement;f&&(f===O.body||f===O.documentElement)&&v.css(f,"position")==="static";)f=f.parentNode;f&&f!==F&&f.nodeType===1&&(A=v(f).offset(),A.top+=v.css(f,"borderTopWidth",!0),A.left+=v.css(f,"borderLeftWidth",!0))}return{top:g.top-A.top-v.css(F,"marginTop",!0),left:g.left-A.left-v.css(F,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var f=this.offsetParent;f&&v.css(f,"position")==="static";)f=f.offsetParent;return f||Ut})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(f,g){var O=g==="pageYOffset";v.fn[f]=function(F){return Lt(this,function(A,L,N){var Q;if(T(A)?Q=A:A.nodeType===9&&(Q=A.defaultView),N===void 0)return Q?Q[g]:A[L];Q?Q.scrollTo(O?Q.pageXOffset:N,O?N:Q.pageYOffset):A[L]=N},f,F,arguments.length)}}),v.each(["top","left"],function(f,g){v.cssHooks[g]=Ga(k.pixelPosition,function(O,F){if(F)return F=Kn(O,g),Ii.test(F)?v(O).position()[g]+"px":F})}),v.each({Height:"height",Width:"width"},function(f,g){v.each({padding:"inner"+f,content:g,"":"outer"+f},function(O,F){v.fn[F]=function(A,L){var N=arguments.length&&(O||typeof A!="boolean"),Q=O||(A===!0||L===!0?"margin":"border");return Lt(this,function(J,re,pe){var be;return T(J)?F.indexOf("outer")===0?J["inner"+f]:J.document.documentElement["client"+f]:J.nodeType===9?(be=J.documentElement,Math.max(J.body["scroll"+f],be["scroll"+f],J.body["offset"+f],be["offset"+f],be["client"+f])):pe===void 0?v.css(J,re,Q):v.style(J,re,pe,Q)},g,N?A:void 0,N)}})}),v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(f,g){v.fn[g]=function(O){return this.on(g,O)}}),v.fn.extend({bind:function(f,g,O){return this.on(f,null,g,O)},unbind:function(f,g){return this.off(f,null,g)},delegate:function(f,g,O,F){return this.on(g,f,O,F)},undelegate:function(f,g,O){return arguments.length===1?this.off(f,"**"):this.off(g,f||"**",O)},hover:function(f,g){return this.on("mouseenter",f).on("mouseleave",g||f)}}),v.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(f,g){v.fn[g]=function(O,F){return arguments.length>0?this.on(g,null,O,F):this.trigger(g)}});var Tn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;v.proxy=function(f,g){var O,F,A;if(typeof g=="string"&&(O=f[g],g=f,f=O),!!E(f))return F=S.call(arguments,2),A=function(){return f.apply(g||this,F.concat(S.call(arguments)))},A.guid=f.guid=f.guid||v.guid++,A},v.holdReady=function(f){f?v.readyWait++:v.ready(!0)},v.isArray=Array.isArray,v.parseJSON=JSON.parse,v.nodeName=G,v.isFunction=E,v.isWindow=T,v.camelCase=Ft,v.type=M,v.now=Date.now,v.isNumeric=function(f){var g=v.type(f);return(g==="number"||g==="string")&&!isNaN(f-parseFloat(f))},v.trim=function(f){return f==null?"":(f+"").replace(Tn,"$1")};var ba=l.jQuery,Qu=l.$;return v.noConflict=function(f){return l.$===v&&(l.$=Qu),f&&l.jQuery===v&&(l.jQuery=ba),v},typeof i>"u"&&(l.jQuery=l.$=v),v})})(Wl);var Nd=Wl.exports;const fi=zl(Nd),Bd=girder.models.AccessControlledModel,{getApiRoot:Hd}=girder.rest;var Ea=Bd.extend({resourceName:"form",exportForm:function(c){return`${Hd()}/${this.resourceName}/${this.id}/export?format=${c}`}}),vs=girder.models.Model.extend({resourceName:"entry"}),Vd=girder.collections.Collection.extend({resourceName:"entry",model:vs,pageLimit:16,sortField:"data.sampleId",sortDir:-1});function Sa(c,l,i,_){if(l===!1||l==null||!l&&(c==="class"||c==="style"))return"";if(l===!0)return" "+(_?c:c+'="'+c+'"');var j=typeof l;return j!=="object"&&j!=="function"||typeof l.toJSON!="function"||(l=l.toJSON()),typeof l=="string"||(l=JSON.stringify(l),i||l.indexOf('"')===-1)?(i&&(l=Ei(l))," "+c+'="'+l+'"'):" "+c+"='"+l.replace(/'/g,"&#39;")+"'"}function Ei(c){var l=""+c,i=qd.exec(l);if(!i)return c;var _,j,S,p="";for(_=i.index,j=0;_<l.length;_++){switch(l.charCodeAt(_)){case 34:S="&quot;";break;case 38:S="&amp;";break;case 60:S="&lt;";break;case 62:S="&gt;";break;default:continue}j!==_&&(p+=l.substring(j,_)),j=_+1,p+=S}return j!==_?p+l.substring(j,_):p}var qd=/["&<>]/;function Ul(c,l,i,_){if(!(c instanceof Error))throw c;if(!(typeof window>"u"&&l||_))throw c.message+=" on line "+i,c;var j,S,p,C;try{_=_||require("fs").readFileSync(l,{encoding:"utf8"}),j=3,S=_.split(`
14
+ `),p=Math.max(i-j,0),C=Math.min(S.length,i+j)}catch(o){return c.message+=" - could not read from "+l+" ("+o.message+")",void Ul(c,null,i)}j=S.slice(p,C).map(function(o,h){var m=h+p+1;return(m==i?" > ":" ")+m+"| "+o}).join(`
15
+ `),c.path=l;try{c.message=(l||"Pug")+":"+i+`
16
+ `+j+`
17
+
18
+ `+c.message}catch{}throw c}function zd(c){var l="",i,_,j;try{var S=c||{};(function(p,C,o,h){j=1,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+'<div class="g-entries-list-table">',j=2,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+'<table class="g-entries-widget">',j=3,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<thead>",j=4,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<tr>",j=5,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<th>",j=5,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"Entry ID</th>",j=6,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<th>",j=6,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"Created</th>",j=7,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<th>",j=7,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"Updated</th></tr></thead>",j=8,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<tbody>",j=9,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",(function(){var m=C;if(typeof m.length=="number")for(var w=0,y=m.length;w<y;w++){var x=m[w];j=10,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<tr"+Sa("g-entry-id",x.id,!0,!1)+">",j=11,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<td>",j=12,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<a"+(' class="g-edit-entry"'+Sa("cid",x.cid,!0,!1))+">",j=12,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+Ei((i=x.get("data")[h])==null?"":i)+"</a></td>",j=13,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<td>",j=13,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+Ei((i=o(x.get("created"),p))==null?"":i)+"</td>",j=14,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<td>",j=14,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+Ei((i=o(x.get("updated"),p))==null?"":i)+"</td></tr>"}else{var y=0;for(var w in m){y++;var x=m[w];j=10,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<tr"+Sa("g-entry-id",x.id,!0,!1)+">",j=11,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<td>",j=12,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<a"+(' class="g-edit-entry"'+Sa("cid",x.cid,!0,!1))+">",j=12,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+Ei((i=x.get("data")[h])==null?"":i)+"</a></td>",j=13,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<td>",j=13,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+Ei((i=o(x.get("created"),p))==null?"":i)+"</td>",j=14,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"<td>",j=14,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+Ei((i=o(x.get("updated"),p))==null?"":i)+"</td></tr>"}}}).call(this),l=l+"</tbody></table>",j=16,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+'<div class="g-entries-pagination"></div>',j=18,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",C.length===0&&(j=19,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+'<div class="g-no-entries-record">',j=19,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/entriesWidgetTemplate.pug",l=l+"No records found</div>"),l=l+"</div>"}).call(this,"DATE_DAY"in S?S.DATE_DAY:typeof DATE_DAY<"u"?DATE_DAY:void 0,"entries"in S?S.entries:typeof entries<"u"?entries:void 0,"formatDate"in S?S.formatDate:typeof formatDate<"u"?formatDate:void 0,"uniqueField"in S?S.uniqueField:typeof uniqueField<"u"?uniqueField:void 0)}catch(p){Ul(p,_,j)}return l}const g0="",Wd=girder.views.View,Ud=girder.router,Gd=girder.views.widgets.PaginateWidget,{formatDate:Yd,DATE_DAY:$d}=girder.misc;var Jd=Wd.extend({events:{"click a.g-edit-entry":function(c){const l=this.collection.get(fi(c.currentTarget).attr("cid")).id;Ud.navigate("form/"+this.parentModel.id+"/entry?entryId="+l,{trigger:!0})}},initialize:function(c){this.parentView=c.parentView,this.parentModel=c.parentModel,this.collection=new Vd,this.collection.params={formId:this.parentModel.id},this.collection.sortField=`data.${this.parentModel.get("uniqueField","sampleId")}`,this.collection.on("g:changed",function(){this.render()},this).fetch({},!0),this.paginateWidget=new Gd({collection:this.collection,parentView:this})},render:function(){const c=this.parentModel.get("uniqueField","sampleId");if(this.$el.html(zd({entries:this.collection.toArray(),parentModel:this.parentModel,uniqueField:c,formatDate:Yd,DATE_DAY:$d})),this.collection.isEmpty()){this.$(".g-main-content,.g-entries-pagination").hide(),this.$(".g-no-entries").show();return}else this.$(".g-main-content,.g-entries-pagination").show(),this.$(".g-no-entries").hide();return this.paginateWidget.setElement(this.$(".g-entries-pagination")).render(),this}});function Gl(c,l,i,_){if(l===!1||l==null||!l&&(c==="class"||c==="style"))return"";if(l===!0)return" "+(_?c:c+'="'+c+'"');var j=typeof l;return j!=="object"&&j!=="function"||typeof l.toJSON!="function"||(l=l.toJSON()),typeof l=="string"||(l=JSON.stringify(l),i||l.indexOf('"')===-1)?(i&&(l=Yl(l))," "+c+'="'+l+'"'):" "+c+"='"+l.replace(/'/g,"&#39;")+"'"}function Yl(c){var l=""+c,i=Kd.exec(l);if(!i)return c;var _,j,S,p="";for(_=i.index,j=0;_<l.length;_++){switch(l.charCodeAt(_)){case 34:S="&quot;";break;case 38:S="&amp;";break;case 60:S="&lt;";break;case 62:S="&gt;";break;default:continue}j!==_&&(p+=l.substring(j,_)),j=_+1,p+=S}return j!==_?p+l.substring(j,_):p}var Kd=/["&<>]/;function $l(c,l,i,_){if(!(c instanceof Error))throw c;if(!(typeof window>"u"&&l||_))throw c.message+=" on line "+i,c;var j,S,p,C;try{_=_||require("fs").readFileSync(l,{encoding:"utf8"}),j=3,S=_.split(`
19
+ `),p=Math.max(i-j,0),C=Math.min(S.length,i+j)}catch(o){return c.message+=" - could not read from "+l+" ("+o.message+")",void $l(c,null,i)}j=S.slice(p,C).map(function(o,h){var m=h+p+1;return(m==i?" > ":" ")+m+"| "+o}).join(`
20
+ `),c.path=l;try{c.message=(l||"Pug")+":"+i+`
21
+ `+j+`
22
+
23
+ `+c.message}catch{}throw c}function Qd(c){var l="",i,_,j;try{var S=c||{};(function(p,C){j=1,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<div class="g-form-header">',j=3,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<div class="g-form-actions">',j=4,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<button class="g-new-entry btn btn-sm btn-success" title="Add new entry">',j=5,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<i class="icon-plus"></i>',j=6,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+"New entry</button>",j=7,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<div class="btn-group">',j=8,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<button class="g-export-form btn btn-sm btn-success dropdown-toggle" title="Export form" data-toggle="dropdown">',j=10,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<i class="icon-download"></i>',j=11,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+"Export",j=12,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<i class="icon-down-dir"></i></button>',j=13,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<ul class="g-export-menu dropdown-menu pull-right" role="menu">',j=14,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<li role="presentation">',j=15,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+"<a"+(' class="g-export-form-as-csv" target="_blank"'+Gl("href",p.exportForm("csv"),!0,!1))+">",j=15,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+"Export as CSV</a></li>",j=16,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<li role="presentation">',j=17,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+"<a"+(' class="g-export-form-as-xls" target="_blank"'+Gl("href",p.exportForm("xlsx"),!0,!1))+">",j=17,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+"Export as XLSX</a></li></ul></div>",j=18,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<button class="g-import-form btn btn-sm btn-warning" title="Import form">',j=19,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<i class="icon-upload"></i>',j=20,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+"Import</button>",j=21,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<button class="g-access-form g-edit-access btn btn-sm btn-warning" title="Access control">',j=22,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<i class="icon-lock"></i>',j=23,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+"Access control</button></div>",j=25,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<div class="g-form-name g-body-title">',j=25,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+Yl((i=p.name())==null?"":i)+"</div>",j=26,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",p.get("description")&&(j=27,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<div class="g-form-description">',j=27,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+((i=C(p.get("description")))==null?"":i)+"</div>"),j=28,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<div class="g-clear-right"></div></div>',j=30,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/formTemplate.pug",l=l+'<div class="g-form-entries-container"></div>'}).call(this,"form"in S?S.form:typeof form<"u"?form:void 0,"renderMarkdown"in S?S.renderMarkdown:typeof renderMarkdown<"u"?renderMarkdown:void 0)}catch(p){$l(p,_,j)}return l}const y0="",Zd=girder.views.View,Xd=girder.views.widgets.AccessWidget,eh=girder.router,{cancelRestRequests:th}=girder.rest,{renderMarkdown:rh}=girder.misc;var nh=Zd.extend({events:{"click .g-new-entry":function(c){console.log("new entry"),eh.navigate("form/"+this.model.get("_id")+"/entry",{trigger:!0})},"click .g-edit-access":"editAccess"},initialize:function(c){th("fetch"),c.form?(this.model=c.form,this.render()):c.id&&(this.model=new Ea,this.model.set("_id",c.id),this.model.on("g:fetched",function(){this.render()},this).fetch())},render:function(){return this.$el.html(Qd({form:this.model,renderMarkdown:rh})),this.entriesView?this.entriesView.setElement(this.$(".g-form-entries-container")).render():this.entriesView=new Jd({el:this.$(".g-form-entries-container"),parentView:this,parentModel:this.model}),this},editAccess:function(){new Xd({el:$("#g-dialog-container"),model:this.model,modelType:"form",parentView:this}).on("g:accessListSaved",function(c){console.log(c),console.log("Should change access to folderId")},this).render()}}),ih=girder.collections.Collection.extend({resourceName:"form",model:Ea,pageLimit:100});function Fa(c,l,i,_){if(l===!1||l==null||!l&&(c==="class"||c==="style"))return"";if(l===!0)return" "+(_?c:c+'="'+c+'"');var j=typeof l;return j!=="object"&&j!=="function"||typeof l.toJSON!="function"||(l=l.toJSON()),typeof l=="string"||(l=JSON.stringify(l),i||l.indexOf('"')===-1)?(i&&(l=Yo(l))," "+c+'="'+l+'"'):" "+c+"='"+l.replace(/'/g,"&#39;")+"'"}function Yo(c){var l=""+c,i=oh.exec(l);if(!i)return c;var _,j,S,p="";for(_=i.index,j=0;_<l.length;_++){switch(l.charCodeAt(_)){case 34:S="&quot;";break;case 38:S="&amp;";break;case 60:S="&lt;";break;case 62:S="&gt;";break;default:continue}j!==_&&(p+=l.substring(j,_)),j=_+1,p+=S}return j!==_?p+l.substring(j,_):p}var oh=/["&<>]/;function Jl(c,l,i,_){if(!(c instanceof Error))throw c;if(!(typeof window>"u"&&l||_))throw c.message+=" on line "+i,c;var j,S,p,C;try{_=_||require("fs").readFileSync(l,{encoding:"utf8"}),j=3,S=_.split(`
24
+ `),p=Math.max(i-j,0),C=Math.min(S.length,i+j)}catch(o){return c.message+=" - could not read from "+l+" ("+o.message+")",void Jl(c,null,i)}j=S.slice(p,C).map(function(o,h){var m=h+p+1;return(m==i?" > ":" ")+m+"| "+o}).join(`
25
+ `),c.path=l;try{c.message=(l||"Pug")+":"+i+`
26
+ `+j+`
27
+
28
+ `+c.message}catch{}throw c}function ah(c){var l="",i,_,j;try{var S=c||{};(function(p,C){j=1,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+'<div class="g-form-list-header">',j=2,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+'<div class="g-form-pagination"></div></div>',j=4,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+'<div class="list-group g-form-list-container">',j=5,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",(function(){var o=C;if(typeof o.length=="number")for(var h=0,m=o.length;h<m;h++){var w=o[h];j=6,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+"<a"+(' class="list-group-item g-execute-form-link"'+Fa("href",p&&p(w),!0,!1)+Fa("data-form-id",w.id,!0,!1))+">",j=9,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+'<h4 class="list-group-item-heading g-execute-form-link-header">',j=9,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+Yo((i=w.name())==null?"":i)+"</h4>",j=10,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+'<div class="list-group-item-text g-execute-form-link-body">',j=10,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+Yo((i=w.get("description"))==null?"":i)+"</div></a>"}else{var m=0;for(var h in o){m++;var w=o[h];j=6,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+"<a"+(' class="list-group-item g-execute-form-link"'+Fa("href",p&&p(w),!0,!1)+Fa("data-form-id",w.id,!0,!1))+">",j=9,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+'<h4 class="list-group-item-heading g-execute-form-link-header">',j=9,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+Yo((i=w.name())==null?"":i)+"</h4>",j=10,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+'<div class="list-group-item-text g-execute-form-link-body">',j=10,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/paginateFormsWidget.pug",l=l+Yo((i=w.get("description"))==null?"":i)+"</div></a>"}}}).call(this),l=l+"</div>"}).call(this,"formUrlFunc"in S?S.formUrlFunc:typeof formUrlFunc<"u"?formUrlFunc:void 0,"forms"in S?S.forms:typeof forms<"u"?forms:void 0)}catch(p){Jl(p,_,j)}return l}const b0="",sh=girder.views.View,uh=girder.views.widgets.PaginateWidget,lh=girder.router;var ch=sh.extend({events:{"click .g-execute-form-link":function(c){const l=fi(c.currentTarget).data("formId"),i=this.collection.get(l);this.trigger("g:selected",{form:i})},"click button.g-form-create-button":function(c){lh.navigate("newform",{trigger:!0})}},initialize:function(c){this.formUrlFunc=c.formUrlFunc||null,this.collection=c.collection||new ih,this.paginateWidget=new uh({collection:this.collection,parentView:this.parentView}),this.listenTo(this.collection,"g:changed",()=>{this.render()}),c.collection?this.render():this.collection.fetch(this.params)},render:function(){return this.$el.html(ah({forms:this.collection.toArray(),formUrlFunc:this.formUrlFunc})),this.paginateWidget.setElement(this.$(".g-form-pagination")).render(),this}}),fh=girder.views.View.extend({initialize:function(){this.paginateFormsWidget=new ch({el:this.$el,parentView:this,formUrlFunc:c=>`#form/${c.id}`})}}),Kl="1.13.7",Ql=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Pa=Array.prototype,bs=Object.prototype,Zl=typeof Symbol<"u"?Symbol.prototype:null,dh=Pa.push,$o=Pa.slice,Jo=bs.toString,hh=bs.hasOwnProperty,Xl=typeof ArrayBuffer<"u",ph=typeof DataView<"u",mh=Array.isArray,ec=Object.keys,tc=Object.create,rc=Xl&&ArrayBuffer.isView,gh=isNaN,yh=isFinite,nc=!{toString:null}.propertyIsEnumerable("toString"),ic=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],vh=Math.pow(2,53)-1;function Mr(c,l){return l=l==null?c.length-1:+l,function(){for(var i=Math.max(arguments.length-l,0),_=Array(i),j=0;j<i;j++)_[j]=arguments[j+l];switch(l){case 0:return c.call(this,_);case 1:return c.call(this,arguments[0],_);case 2:return c.call(this,arguments[0],arguments[1],_)}var S=Array(l+1);for(j=0;j<l;j++)S[j]=arguments[j];return S[l]=_,c.apply(this,S)}}function Si(c){var l=typeof c;return l==="function"||l==="object"&&!!c}function bh(c){return c===null}function oc(c){return c===void 0}function ac(c){return c===!0||c===!1||Jo.call(c)==="[object Boolean]"}function wh(c){return!!(c&&c.nodeType===1)}function br(c){var l="[object "+c+"]";return function(i){return Jo.call(i)===l}}const ws=br("String"),sc=br("Number"),_h=br("Date"),kh=br("RegExp"),xh=br("Error"),uc=br("Symbol"),lc=br("ArrayBuffer");var cc=br("Function"),Ch=Ql.document&&Ql.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Ch!="function"&&(cc=function(c){return typeof c=="function"||!1});const Er=cc,fc=br("Object");var dc=ph&&(!/\[native code\]/.test(String(DataView))||fc(new DataView(new ArrayBuffer(8)))),_s=typeof Map<"u"&&fc(new Map),jh=br("DataView");function Oh(c){return c!=null&&Er(c.getInt8)&&lc(c.buffer)}const Ta=dc?Oh:jh,Fi=mh||br("Array");function di(c,l){return c!=null&&hh.call(c,l)}var ks=br("Arguments");(function(){ks(arguments)||(ks=function(c){return di(c,"callee")})})();const xs=ks;function Eh(c){return!uc(c)&&yh(c)&&!isNaN(parseFloat(c))}function hc(c){return sc(c)&&gh(c)}function pc(c){return function(){return c}}function mc(c){return function(l){var i=c(l);return typeof i=="number"&&i>=0&&i<=vh}}function gc(c){return function(l){return l==null?void 0:l[c]}}const La=gc("byteLength"),Sh=mc(La);var Fh=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Ph(c){return rc?rc(c)&&!Ta(c):Sh(c)&&Fh.test(Jo.call(c))}const yc=Xl?Ph:pc(!1),Rr=gc("length");function Th(c){for(var l={},i=c.length,_=0;_<i;++_)l[c[_]]=!0;return{contains:function(j){return l[j]===!0},push:function(j){return l[j]=!0,c.push(j)}}}function vc(c,l){l=Th(l);var i=ic.length,_=c.constructor,j=Er(_)&&_.prototype||bs,S="constructor";for(di(c,S)&&!l.contains(S)&&l.push(S);i--;)S=ic[i],S in c&&c[S]!==j[S]&&!l.contains(S)&&l.push(S)}function fr(c){if(!Si(c))return[];if(ec)return ec(c);var l=[];for(var i in c)di(c,i)&&l.push(i);return nc&&vc(c,l),l}function Lh(c){if(c==null)return!0;var l=Rr(c);return typeof l=="number"&&(Fi(c)||ws(c)||xs(c))?l===0:Rr(fr(c))===0}function bc(c,l){var i=fr(l),_=i.length;if(c==null)return!_;for(var j=Object(c),S=0;S<_;S++){var p=i[S];if(l[p]!==j[p]||!(p in j))return!1}return!0}function Ht(c){if(c instanceof Ht)return c;if(!(this instanceof Ht))return new Ht(c);this._wrapped=c}Ht.VERSION=Kl,Ht.prototype.value=function(){return this._wrapped},Ht.prototype.valueOf=Ht.prototype.toJSON=Ht.prototype.value,Ht.prototype.toString=function(){return String(this._wrapped)};function wc(c){return new Uint8Array(c.buffer||c,c.byteOffset||0,La(c))}var _c="[object DataView]";function Cs(c,l,i,_){if(c===l)return c!==0||1/c===1/l;if(c==null||l==null)return!1;if(c!==c)return l!==l;var j=typeof c;return j!=="function"&&j!=="object"&&typeof l!="object"?!1:kc(c,l,i,_)}function kc(c,l,i,_){c instanceof Ht&&(c=c._wrapped),l instanceof Ht&&(l=l._wrapped);var j=Jo.call(c);if(j!==Jo.call(l))return!1;if(dc&&j=="[object Object]"&&Ta(c)){if(!Ta(l))return!1;j=_c}switch(j){case"[object RegExp]":case"[object String]":return""+c==""+l;case"[object Number]":return+c!=+c?+l!=+l:+c==0?1/+c===1/l:+c==+l;case"[object Date]":case"[object Boolean]":return+c==+l;case"[object Symbol]":return Zl.valueOf.call(c)===Zl.valueOf.call(l);case"[object ArrayBuffer]":case _c:return kc(wc(c),wc(l),i,_)}var S=j==="[object Array]";if(!S&&yc(c)){var p=La(c);if(p!==La(l))return!1;if(c.buffer===l.buffer&&c.byteOffset===l.byteOffset)return!0;S=!0}if(!S){if(typeof c!="object"||typeof l!="object")return!1;var C=c.constructor,o=l.constructor;if(C!==o&&!(Er(C)&&C instanceof C&&Er(o)&&o instanceof o)&&"constructor"in c&&"constructor"in l)return!1}i=i||[],_=_||[];for(var h=i.length;h--;)if(i[h]===c)return _[h]===l;if(i.push(c),_.push(l),S){if(h=c.length,h!==l.length)return!1;for(;h--;)if(!Cs(c[h],l[h],i,_))return!1}else{var m=fr(c),w;if(h=m.length,fr(l).length!==h)return!1;for(;h--;)if(w=m[h],!(di(l,w)&&Cs(c[w],l[w],i,_)))return!1}return i.pop(),_.pop(),!0}function Ah(c,l){return Cs(c,l)}function Ko(c){if(!Si(c))return[];var l=[];for(var i in c)l.push(i);return nc&&vc(c,l),l}function js(c){var l=Rr(c);return function(i){if(i==null)return!1;var _=Ko(i);if(Rr(_))return!1;for(var j=0;j<l;j++)if(!Er(i[c[j]]))return!1;return c!==jc||!Er(i[Os])}}var Os="forEach",xc="has",Es=["clear","delete"],Cc=["get",xc,"set"],Dh=Es.concat(Os,Cc),jc=Es.concat(Cc),Ih=["add"].concat(Es,Os,xc);const Mh=_s?js(Dh):br("Map"),Rh=_s?js(jc):br("WeakMap"),Nh=_s?js(Ih):br("Set"),Bh=br("WeakSet");function no(c){for(var l=fr(c),i=l.length,_=Array(i),j=0;j<i;j++)_[j]=c[l[j]];return _}function Hh(c){for(var l=fr(c),i=l.length,_=Array(i),j=0;j<i;j++)_[j]=[l[j],c[l[j]]];return _}function Oc(c){for(var l={},i=fr(c),_=0,j=i.length;_<j;_++)l[c[i[_]]]=i[_];return l}function Ss(c){var l=[];for(var i in c)Er(c[i])&&l.push(i);return l.sort()}function Fs(c,l){return function(i){var _=arguments.length;if(l&&(i=Object(i)),_<2||i==null)return i;for(var j=1;j<_;j++)for(var S=arguments[j],p=c(S),C=p.length,o=0;o<C;o++){var h=p[o];(!l||i[h]===void 0)&&(i[h]=S[h])}return i}}const Ec=Fs(Ko),Aa=Fs(fr),Sc=Fs(Ko,!0);function Vh(){return function(){}}function Fc(c){if(!Si(c))return{};if(tc)return tc(c);var l=Vh();l.prototype=c;var i=new l;return l.prototype=null,i}function qh(c,l){var i=Fc(c);return l&&Aa(i,l),i}function zh(c){return Si(c)?Fi(c)?c.slice():Ec({},c):c}function Wh(c,l){return l(c),c}function Pc(c){return Fi(c)?c:[c]}Ht.toPath=Pc;function Qo(c){return Ht.toPath(c)}function Ps(c,l){for(var i=l.length,_=0;_<i;_++){if(c==null)return;c=c[l[_]]}return i?c:void 0}function Tc(c,l,i){var _=Ps(c,Qo(l));return oc(_)?i:_}function Uh(c,l){l=Qo(l);for(var i=l.length,_=0;_<i;_++){var j=l[_];if(!di(c,j))return!1;c=c[j]}return!!i}function Ts(c){return c}function Zo(c){return c=Aa({},c),function(l){return bc(l,c)}}function Ls(c){return c=Qo(c),function(l){return Ps(l,c)}}function Xo(c,l,i){if(l===void 0)return c;switch(i??3){case 1:return function(_){return c.call(l,_)};case 3:return function(_,j,S){return c.call(l,_,j,S)};case 4:return function(_,j,S,p){return c.call(l,_,j,S,p)}}return function(){return c.apply(l,arguments)}}function Lc(c,l,i){return c==null?Ts:Er(c)?Xo(c,l,i):Si(c)&&!Fi(c)?Zo(c):Ls(c)}function As(c,l){return Lc(c,l,1/0)}Ht.iteratee=As;function Nr(c,l,i){return Ht.iteratee!==As?Ht.iteratee(c,l):Lc(c,l,i)}function Gh(c,l,i){l=Nr(l,i);for(var _=fr(c),j=_.length,S={},p=0;p<j;p++){var C=_[p];S[C]=l(c[C],C,c)}return S}function Ac(){}function Yh(c){return c==null?Ac:function(l){return Tc(c,l)}}function $h(c,l,i){var _=Array(Math.max(0,c));l=Xo(l,i,1);for(var j=0;j<c;j++)_[j]=l(j);return _}function Ds(c,l){return l==null&&(l=c,c=0),c+Math.floor(Math.random()*(l-c+1))}const ea=Date.now||function(){return new Date().getTime()};function Dc(c){var l=function(S){return c[S]},i="(?:"+fr(c).join("|")+")",_=RegExp(i),j=RegExp(i,"g");return function(S){return S=S==null?"":""+S,_.test(S)?S.replace(j,l):S}}const Ic={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Jh=Dc(Ic),Kh=Oc(Ic),Qh=Dc(Kh),Zh=Ht.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Is=/(.)^/,Xh={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ep=/\\|'|\r|\n|\u2028|\u2029/g;function tp(c){return"\\"+Xh[c]}var rp=/^\s*(\w|\$)+\s*$/;function np(c,l,i){!l&&i&&(l=i),l=Sc({},l,Ht.templateSettings);var _=RegExp([(l.escape||Is).source,(l.interpolate||Is).source,(l.evaluate||Is).source].join("|")+"|$","g"),j=0,S="__p+='";c.replace(_,function(h,m,w,y,x){return S+=c.slice(j,x).replace(ep,tp),j=x+h.length,m?S+=`'+
29
+ ((__t=(`+m+`))==null?'':_.escape(__t))+
30
+ '`:w?S+=`'+
31
+ ((__t=(`+w+`))==null?'':__t)+
32
+ '`:y&&(S+=`';
33
+ `+y+`
34
+ __p+='`),h}),S+=`';
35
+ `;var p=l.variable;if(p){if(!rp.test(p))throw new Error("variable is not a bare identifier: "+p)}else S=`with(obj||{}){
36
+ `+S+`}
37
+ `,p="obj";S=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
38
+ `+S+`return __p;
39
+ `;var C;try{C=new Function(p,"_",S)}catch(h){throw h.source=S,h}var o=function(h){return C.call(this,h,Ht)};return o.source="function("+p+`){
40
+ `+S+"}",o}function ip(c,l,i){l=Qo(l);var _=l.length;if(!_)return Er(i)?i.call(c):i;for(var j=0;j<_;j++){var S=c==null?void 0:c[l[j]];S===void 0&&(S=i,j=_),c=Er(S)?S.call(c):S}return c}var op=0;function ap(c){var l=++op+"";return c?c+l:l}function sp(c){var l=Ht(c);return l._chain=!0,l}function Mc(c,l,i,_,j){if(!(_ instanceof l))return c.apply(i,j);var S=Fc(c.prototype),p=c.apply(S,j);return Si(p)?p:S}var io=Mr(function(c,l){var i=io.placeholder,_=function(){for(var j=0,S=l.length,p=Array(S),C=0;C<S;C++)p[C]=l[C]===i?arguments[j++]:l[C];for(;j<arguments.length;)p.push(arguments[j++]);return Mc(c,_,this,this,p)};return _});io.placeholder=Ht;const Rc=Mr(function(c,l,i){if(!Er(c))throw new TypeError("Bind must be called on a function");var _=Mr(function(j){return Mc(c,_,l,this,i.concat(j))});return _}),Ur=mc(Rr);function Pi(c,l,i,_){if(_=_||[],!l&&l!==0)l=1/0;else if(l<=0)return _.concat(c);for(var j=_.length,S=0,p=Rr(c);S<p;S++){var C=c[S];if(Ur(C)&&(Fi(C)||xs(C)))if(l>1)Pi(C,l-1,i,_),j=_.length;else for(var o=0,h=C.length;o<h;)_[j++]=C[o++];else i||(_[j++]=C)}return _}const up=Mr(function(c,l){l=Pi(l,!1,!1);var i=l.length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var _=l[i];c[_]=Rc(c[_],c)}return c});function lp(c,l){var i=function(_){var j=i.cache,S=""+(l?l.apply(this,arguments):_);return di(j,S)||(j[S]=c.apply(this,arguments)),j[S]};return i.cache={},i}const Nc=Mr(function(c,l,i){return setTimeout(function(){return c.apply(null,i)},l)}),cp=io(Nc,Ht,1);function fp(c,l,i){var _,j,S,p,C=0;i||(i={});var o=function(){C=i.leading===!1?0:ea(),_=null,p=c.apply(j,S),_||(j=S=null)},h=function(){var m=ea();!C&&i.leading===!1&&(C=m);var w=l-(m-C);return j=this,S=arguments,w<=0||w>l?(_&&(clearTimeout(_),_=null),C=m,p=c.apply(j,S),_||(j=S=null)):!_&&i.trailing!==!1&&(_=setTimeout(o,w)),p};return h.cancel=function(){clearTimeout(_),C=0,_=j=S=null},h}function dp(c,l,i){var _,j,S,p,C,o=function(){var m=ea()-j;l>m?_=setTimeout(o,l-m):(_=null,i||(p=c.apply(C,S)),_||(S=C=null))},h=Mr(function(m){return C=this,S=m,j=ea(),_||(_=setTimeout(o,l),i&&(p=c.apply(C,S))),p});return h.cancel=function(){clearTimeout(_),_=S=C=null},h}function hp(c,l){return io(l,c)}function Ms(c){return function(){return!c.apply(this,arguments)}}function pp(){var c=arguments,l=c.length-1;return function(){for(var i=l,_=c[l].apply(this,arguments);i--;)_=c[i].call(this,_);return _}}function mp(c,l){return function(){if(--c<1)return l.apply(this,arguments)}}function Bc(c,l){var i;return function(){return--c>0&&(i=l.apply(this,arguments)),c<=1&&(l=null),i}}const gp=io(Bc,2);function Hc(c,l,i){l=Nr(l,i);for(var _=fr(c),j,S=0,p=_.length;S<p;S++)if(j=_[S],l(c[j],j,c))return j}function Vc(c){return function(l,i,_){i=Nr(i,_);for(var j=Rr(l),S=c>0?0:j-1;S>=0&&S<j;S+=c)if(i(l[S],S,l))return S;return-1}}const Rs=Vc(1),qc=Vc(-1);function zc(c,l,i,_){i=Nr(i,_,1);for(var j=i(l),S=0,p=Rr(c);S<p;){var C=Math.floor((S+p)/2);i(c[C])<j?S=C+1:p=C}return S}function Wc(c,l,i){return function(_,j,S){var p=0,C=Rr(_);if(typeof S=="number")c>0?p=S>=0?S:Math.max(S+C,p):C=S>=0?Math.min(S+1,C):S+C+1;else if(i&&S&&C)return S=i(_,j),_[S]===j?S:-1;if(j!==j)return S=l($o.call(_,p,C),hc),S>=0?S+p:-1;for(S=c>0?p:C-1;S>=0&&S<C;S+=c)if(_[S]===j)return S;return-1}}const Uc=Wc(1,Rs,zc),yp=Wc(-1,qc);function Ns(c,l,i){var _=Ur(c)?Rs:Hc,j=_(c,l,i);if(j!==void 0&&j!==-1)return c[j]}function vp(c,l){return Ns(c,Zo(l))}function qn(c,l,i){l=Xo(l,i);var _,j;if(Ur(c))for(_=0,j=c.length;_<j;_++)l(c[_],_,c);else{var S=fr(c);for(_=0,j=S.length;_<j;_++)l(c[S[_]],S[_],c)}return c}function Ti(c,l,i){l=Nr(l,i);for(var _=!Ur(c)&&fr(c),j=(_||c).length,S=Array(j),p=0;p<j;p++){var C=_?_[p]:p;S[p]=l(c[C],C,c)}return S}function Gc(c){var l=function(i,_,j,S){var p=!Ur(i)&&fr(i),C=(p||i).length,o=c>0?0:C-1;for(S||(j=i[p?p[o]:o],o+=c);o>=0&&o<C;o+=c){var h=p?p[o]:o;j=_(j,i[h],h,i)}return j};return function(i,_,j,S){var p=arguments.length>=3;return l(i,Xo(_,S,4),j,p)}}const Bs=Gc(1),Yc=Gc(-1);function oo(c,l,i){var _=[];return l=Nr(l,i),qn(c,function(j,S,p){l(j,S,p)&&_.push(j)}),_}function bp(c,l,i){return oo(c,Ms(Nr(l)),i)}function $c(c,l,i){l=Nr(l,i);for(var _=!Ur(c)&&fr(c),j=(_||c).length,S=0;S<j;S++){var p=_?_[S]:S;if(!l(c[p],p,c))return!1}return!0}function Jc(c,l,i){l=Nr(l,i);for(var _=!Ur(c)&&fr(c),j=(_||c).length,S=0;S<j;S++){var p=_?_[S]:S;if(l(c[p],p,c))return!0}return!1}function zn(c,l,i,_){return Ur(c)||(c=no(c)),(typeof i!="number"||_)&&(i=0),Uc(c,l,i)>=0}const wp=Mr(function(c,l,i){var _,j;return Er(l)?j=l:(l=Qo(l),_=l.slice(0,-1),l=l[l.length-1]),Ti(c,function(S){var p=j;if(!p){if(_&&_.length&&(S=Ps(S,_)),S==null)return;p=S[l]}return p==null?p:p.apply(S,i)})});function Hs(c,l){return Ti(c,Ls(l))}function _p(c,l){return oo(c,Zo(l))}function Kc(c,l,i){var _=-1/0,j=-1/0,S,p;if(l==null||typeof l=="number"&&typeof c[0]!="object"&&c!=null){c=Ur(c)?c:no(c);for(var C=0,o=c.length;C<o;C++)S=c[C],S!=null&&S>_&&(_=S)}else l=Nr(l,i),qn(c,function(h,m,w){p=l(h,m,w),(p>j||p===-1/0&&_===-1/0)&&(_=h,j=p)});return _}function kp(c,l,i){var _=1/0,j=1/0,S,p;if(l==null||typeof l=="number"&&typeof c[0]!="object"&&c!=null){c=Ur(c)?c:no(c);for(var C=0,o=c.length;C<o;C++)S=c[C],S!=null&&S<_&&(_=S)}else l=Nr(l,i),qn(c,function(h,m,w){p=l(h,m,w),(p<j||p===1/0&&_===1/0)&&(_=h,j=p)});return _}var xp=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Qc(c){return c?Fi(c)?$o.call(c):ws(c)?c.match(xp):Ur(c)?Ti(c,Ts):no(c):[]}function Zc(c,l,i){if(l==null||i)return Ur(c)||(c=no(c)),c[Ds(c.length-1)];var _=Qc(c),j=Rr(_);l=Math.max(Math.min(l,j),0);for(var S=j-1,p=0;p<l;p++){var C=Ds(p,S),o=_[p];_[p]=_[C],_[C]=o}return _.slice(0,l)}function Cp(c){return Zc(c,1/0)}function jp(c,l,i){var _=0;return l=Nr(l,i),Hs(Ti(c,function(j,S,p){return{value:j,index:_++,criteria:l(j,S,p)}}).sort(function(j,S){var p=j.criteria,C=S.criteria;if(p!==C){if(p>C||p===void 0)return 1;if(p<C||C===void 0)return-1}return j.index-S.index}),"value")}function Da(c,l){return function(i,_,j){var S=l?[[],[]]:{};return _=Nr(_,j),qn(i,function(p,C){var o=_(p,C,i);c(S,p,o)}),S}}const Op=Da(function(c,l,i){di(c,i)?c[i].push(l):c[i]=[l]}),Ep=Da(function(c,l,i){c[i]=l}),Sp=Da(function(c,l,i){di(c,i)?c[i]++:c[i]=1}),Fp=Da(function(c,l,i){c[i?0:1].push(l)},!0);function Pp(c){return c==null?0:Ur(c)?c.length:fr(c).length}function Tp(c,l,i){return l in i}const Xc=Mr(function(c,l){var i={},_=l[0];if(c==null)return i;Er(_)?(l.length>1&&(_=Xo(_,l[1])),l=Ko(c)):(_=Tp,l=Pi(l,!1,!1),c=Object(c));for(var j=0,S=l.length;j<S;j++){var p=l[j],C=c[p];_(C,p,c)&&(i[p]=C)}return i}),Lp=Mr(function(c,l){var i=l[0],_;return Er(i)?(i=Ms(i),l.length>1&&(_=l[1])):(l=Ti(Pi(l,!1,!1),String),i=function(j,S){return!zn(l,S)}),Xc(c,i,_)});function ef(c,l,i){return $o.call(c,0,Math.max(0,c.length-(l==null||i?1:l)))}function Vs(c,l,i){return c==null||c.length<1?l==null||i?void 0:[]:l==null||i?c[0]:ef(c,c.length-l)}function Ia(c,l,i){return $o.call(c,l==null||i?1:l)}function Ap(c,l,i){return c==null||c.length<1?l==null||i?void 0:[]:l==null||i?c[c.length-1]:Ia(c,Math.max(0,c.length-l))}function Dp(c){return oo(c,Boolean)}function Ip(c,l){return Pi(c,l,!1)}const tf=Mr(function(c,l){return l=Pi(l,!0,!0),oo(c,function(i){return!zn(l,i)})}),Mp=Mr(function(c,l){return tf(c,l)});function qs(c,l,i,_){ac(l)||(_=i,i=l,l=!1),i!=null&&(i=Nr(i,_));for(var j=[],S=[],p=0,C=Rr(c);p<C;p++){var o=c[p],h=i?i(o,p,c):o;l&&!i?((!p||S!==h)&&j.push(o),S=h):i?zn(S,h)||(S.push(h),j.push(o)):zn(j,o)||j.push(o)}return j}const Rp=Mr(function(c){return qs(Pi(c,!0,!0))});function Np(c){for(var l=[],i=arguments.length,_=0,j=Rr(c);_<j;_++){var S=c[_];if(!zn(l,S)){var p;for(p=1;p<i&&zn(arguments[p],S);p++);p===i&&l.push(S)}}return l}function zs(c){for(var l=c&&Kc(c,Rr).length||0,i=Array(l),_=0;_<l;_++)i[_]=Hs(c,_);return i}const Bp=Mr(zs);function Hp(c,l){for(var i={},_=0,j=Rr(c);_<j;_++)l?i[c[_]]=l[_]:i[c[_][0]]=c[_][1];return i}function Vp(c,l,i){l==null&&(l=c||0,c=0),i||(i=l<c?-1:1);for(var _=Math.max(Math.ceil((l-c)/i),0),j=Array(_),S=0;S<_;S++,c+=i)j[S]=c;return j}function qp(c,l){if(l==null||l<1)return[];for(var i=[],_=0,j=c.length;_<j;)i.push($o.call(c,_,_+=l));return i}function Ws(c,l){return c._chain?Ht(l).chain():l}function rf(c){return qn(Ss(c),function(l){var i=Ht[l]=c[l];Ht.prototype[l]=function(){var _=[this._wrapped];return dh.apply(_,arguments),Ws(this,i.apply(Ht,_))}}),Ht}qn(["pop","push","reverse","shift","sort","splice","unshift"],function(c){var l=Pa[c];Ht.prototype[c]=function(){var i=this._wrapped;return i!=null&&(l.apply(i,arguments),(c==="shift"||c==="splice")&&i.length===0&&delete i[0]),Ws(this,i)}}),qn(["concat","join","slice"],function(c){var l=Pa[c];Ht.prototype[c]=function(){var i=this._wrapped;return i!=null&&(i=l.apply(i,arguments)),Ws(this,i)}});var Us=rf(Object.freeze(Object.defineProperty({__proto__:null,VERSION:Kl,after:mp,all:$c,allKeys:Ko,any:Jc,assign:Aa,before:Bc,bind:Rc,bindAll:up,chain:sp,chunk:qp,clone:zh,collect:Ti,compact:Dp,compose:pp,constant:pc,contains:zn,countBy:Sp,create:qh,debounce:dp,default:Ht,defaults:Sc,defer:cp,delay:Nc,detect:Ns,difference:tf,drop:Ia,each:qn,escape:Jh,every:$c,extend:Ec,extendOwn:Aa,filter:oo,find:Ns,findIndex:Rs,findKey:Hc,findLastIndex:qc,findWhere:vp,first:Vs,flatten:Ip,foldl:Bs,foldr:Yc,forEach:qn,functions:Ss,get:Tc,groupBy:Op,has:Uh,head:Vs,identity:Ts,include:zn,includes:zn,indexBy:Ep,indexOf:Uc,initial:ef,inject:Bs,intersection:Np,invert:Oc,invoke:wp,isArguments:xs,isArray:Fi,isArrayBuffer:lc,isBoolean:ac,isDataView:Ta,isDate:_h,isElement:wh,isEmpty:Lh,isEqual:Ah,isError:xh,isFinite:Eh,isFunction:Er,isMap:Mh,isMatch:bc,isNaN:hc,isNull:bh,isNumber:sc,isObject:Si,isRegExp:kh,isSet:Nh,isString:ws,isSymbol:uc,isTypedArray:yc,isUndefined:oc,isWeakMap:Rh,isWeakSet:Bh,iteratee:As,keys:fr,last:Ap,lastIndexOf:yp,map:Ti,mapObject:Gh,matcher:Zo,matches:Zo,max:Kc,memoize:lp,methods:Ss,min:kp,mixin:rf,negate:Ms,noop:Ac,now:ea,object:Hp,omit:Lp,once:gp,pairs:Hh,partial:io,partition:Fp,pick:Xc,pluck:Hs,property:Ls,propertyOf:Yh,random:Ds,range:Vp,reduce:Bs,reduceRight:Yc,reject:bp,rest:Ia,restArguments:Mr,result:ip,sample:Zc,select:oo,shuffle:Cp,size:Pp,some:Jc,sortBy:jp,sortedIndex:zc,tail:Ia,take:Vs,tap:Wh,template:np,templateSettings:Zh,throttle:fp,times:$h,toArray:Qc,toPath:Pc,transpose:zs,unescape:Qh,union:Rp,uniq:qs,unique:qs,uniqueId:ap,unzip:zs,values:no,where:_p,without:Mp,wrap:hp,zip:Bp},Symbol.toStringTag,{value:"Module"})));Us._=Us;const k0="";var Gs=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],ao={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(c){return typeof console<"u"&&console.warn(c)},getWeek:function(c){var l=new Date(c.getTime());l.setHours(0,0,0,0),l.setDate(l.getDate()+3-(l.getDay()+6)%7);var i=new Date(l.getFullYear(),0,4);return 1+Math.round(((l.getTime()-i.getTime())/864e5-3+(i.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},ta={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(c){var l=c%100;if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Br=function(c,l){return l===void 0&&(l=2),("000"+c).slice(l*-1)},Xr=function(c){return c===!0?1:0};function nf(c,l){var i;return function(){var _=this,j=arguments;clearTimeout(i),i=setTimeout(function(){return c.apply(_,j)},l)}}var Ys=function(c){return c instanceof Array?c:[c]};function Sr(c,l,i){if(i===!0)return c.classList.add(l);c.classList.remove(l)}function Rt(c,l,i){var _=window.document.createElement(c);return l=l||"",i=i||"",_.className=l,i!==void 0&&(_.textContent=i),_}function Ma(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function of(c,l){if(l(c))return c;if(c.parentNode)return of(c.parentNode,l)}function Ra(c,l){var i=Rt("div","numInputWrapper"),_=Rt("input","numInput "+c),j=Rt("span","arrowUp"),S=Rt("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?_.type="number":(_.type="text",_.pattern="\\d*"),l!==void 0)for(var p in l)_.setAttribute(p,l[p]);return i.appendChild(_),i.appendChild(j),i.appendChild(S),i}function Gr(c){try{if(typeof c.composedPath=="function"){var l=c.composedPath();return l[0]}return c.target}catch{return c.target}}var $s=function(){},Na=function(c,l,i){return i.months[l?"shorthand":"longhand"][c]},zp={D:$s,F:function(c,l,i){c.setMonth(i.months.longhand.indexOf(l))},G:function(c,l){c.setHours((c.getHours()>=12?12:0)+parseFloat(l))},H:function(c,l){c.setHours(parseFloat(l))},J:function(c,l){c.setDate(parseFloat(l))},K:function(c,l,i){c.setHours(c.getHours()%12+12*Xr(new RegExp(i.amPM[1],"i").test(l)))},M:function(c,l,i){c.setMonth(i.months.shorthand.indexOf(l))},S:function(c,l){c.setSeconds(parseFloat(l))},U:function(c,l){return new Date(parseFloat(l)*1e3)},W:function(c,l,i){var _=parseInt(l),j=new Date(c.getFullYear(),0,2+(_-1)*7,0,0,0,0);return j.setDate(j.getDate()-j.getDay()+i.firstDayOfWeek),j},Y:function(c,l){c.setFullYear(parseFloat(l))},Z:function(c,l){return new Date(l)},d:function(c,l){c.setDate(parseFloat(l))},h:function(c,l){c.setHours((c.getHours()>=12?12:0)+parseFloat(l))},i:function(c,l){c.setMinutes(parseFloat(l))},j:function(c,l){c.setDate(parseFloat(l))},l:$s,m:function(c,l){c.setMonth(parseFloat(l)-1)},n:function(c,l){c.setMonth(parseFloat(l)-1)},s:function(c,l){c.setSeconds(parseFloat(l))},u:function(c,l){return new Date(parseFloat(l))},w:$s,y:function(c,l){c.setFullYear(2e3+parseFloat(l))}},Li={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},ra={Z:function(c){return c.toISOString()},D:function(c,l,i){return l.weekdays.shorthand[ra.w(c,l,i)]},F:function(c,l,i){return Na(ra.n(c,l,i)-1,!1,l)},G:function(c,l,i){return Br(ra.h(c,l,i))},H:function(c){return Br(c.getHours())},J:function(c,l){return l.ordinal!==void 0?c.getDate()+l.ordinal(c.getDate()):c.getDate()},K:function(c,l){return l.amPM[Xr(c.getHours()>11)]},M:function(c,l){return Na(c.getMonth(),!0,l)},S:function(c){return Br(c.getSeconds())},U:function(c){return c.getTime()/1e3},W:function(c,l,i){return i.getWeek(c)},Y:function(c){return Br(c.getFullYear(),4)},d:function(c){return Br(c.getDate())},h:function(c){return c.getHours()%12?c.getHours()%12:12},i:function(c){return Br(c.getMinutes())},j:function(c){return c.getDate()},l:function(c,l){return l.weekdays.longhand[c.getDay()]},m:function(c){return Br(c.getMonth()+1)},n:function(c){return c.getMonth()+1},s:function(c){return c.getSeconds()},u:function(c){return c.getTime()},w:function(c){return c.getDay()},y:function(c){return String(c.getFullYear()).substring(2)}},af=function(c){var l=c.config,i=l===void 0?ao:l,_=c.l10n,j=_===void 0?ta:_,S=c.isMobile,p=S===void 0?!1:S;return function(C,o,h){var m=h||j;return i.formatDate!==void 0&&!p?i.formatDate(C,o,m):o.split("").map(function(w,y,x){return ra[w]&&x[y-1]!=="\\"?ra[w](C,m,i):w!=="\\"?w:""}).join("")}},Js=function(c){var l=c.config,i=l===void 0?ao:l,_=c.l10n,j=_===void 0?ta:_;return function(S,p,C,o){if(!(S!==0&&!S)){var h=o||j,m,w=S;if(S instanceof Date)m=new Date(S.getTime());else if(typeof S!="string"&&S.toFixed!==void 0)m=new Date(S);else if(typeof S=="string"){var y=p||(i||ao).dateFormat,x=String(S).trim();if(x==="today")m=new Date,C=!0;else if(i&&i.parseDate)m=i.parseDate(S,y);else if(/Z$/.test(x)||/GMT$/.test(x))m=new Date(S);else{for(var k=void 0,E=[],T=0,D=0,R="";T<y.length;T++){var H=y[T],M=H==="\\",B=y[T-1]==="\\"||M;if(Li[H]&&!B){R+=Li[H];var W=new RegExp(R).exec(S);W&&(k=!0)&&E[H!=="Y"?"push":"unshift"]({fn:zp[H],val:W[++D]})}else M||(R+=".")}m=!i||!i.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),E.forEach(function(v){var Y=v.fn,G=v.val;return m=Y(m,G,h)||m}),m=k?m:void 0}}if(!(m instanceof Date&&!isNaN(m.getTime()))){i.errorHandler(new Error("Invalid date provided: "+w));return}return C===!0&&m.setHours(0,0,0,0),m}}};function Yr(c,l,i){return i===void 0&&(i=!0),i!==!1?new Date(c.getTime()).setHours(0,0,0,0)-new Date(l.getTime()).setHours(0,0,0,0):c.getTime()-l.getTime()}var Wp=function(c,l,i){return c>Math.min(l,i)&&c<Math.max(l,i)},Ks=function(c,l,i){return c*3600+l*60+i},Up=function(c){var l=Math.floor(c/3600),i=(c-l*3600)/60;return[l,i,c-l*3600-i*60]},Gp={DAY:864e5};function Qs(c){var l=c.defaultHour,i=c.defaultMinute,_=c.defaultSeconds;if(c.minDate!==void 0){var j=c.minDate.getHours(),S=c.minDate.getMinutes(),p=c.minDate.getSeconds();l<j&&(l=j),l===j&&i<S&&(i=S),l===j&&i===S&&_<p&&(_=c.minDate.getSeconds())}if(c.maxDate!==void 0){var C=c.maxDate.getHours(),o=c.maxDate.getMinutes();l=Math.min(l,C),l===C&&(i=Math.min(o,i)),l===C&&i===o&&(_=c.maxDate.getSeconds())}return{hours:l,minutes:i,seconds:_}}typeof Object.assign!="function"&&(Object.assign=function(c){for(var l=[],i=1;i<arguments.length;i++)l[i-1]=arguments[i];if(!c)throw TypeError("Cannot convert undefined or null to object");for(var _=function(C){C&&Object.keys(C).forEach(function(o){return c[o]=C[o]})},j=0,S=l;j<S.length;j++){var p=S[j];_(p)}return c});var wr=globalThis&&globalThis.__assign||function(){return wr=Object.assign||function(c){for(var l,i=1,_=arguments.length;i<_;i++){l=arguments[i];for(var j in l)Object.prototype.hasOwnProperty.call(l,j)&&(c[j]=l[j])}return c},wr.apply(this,arguments)},sf=globalThis&&globalThis.__spreadArrays||function(){for(var c=0,l=0,i=arguments.length;l<i;l++)c+=arguments[l].length;for(var _=Array(c),j=0,l=0;l<i;l++)for(var S=arguments[l],p=0,C=S.length;p<C;p++,j++)_[j]=S[p];return _},Yp=300;function $p(c,l){var i={config:wr(wr({},ao),lr.defaultConfig),l10n:ta};i.parseDate=Js({config:i.config,l10n:i.l10n}),i._handlers=[],i.pluginElements=[],i.loadedPlugins=[],i._bind=E,i._setHoursFromDate=y,i._positionCalendar=or,i.changeMonth=Ke,i.changeYear=Nt,i.clear=tt,i.close=je,i.onMouseOver=vt,i._createElement=Rt,i.createDay=W,i.destroy=Ye,i.isEnabled=_t,i.jumpToDate=R,i.updateValue=$e,i.open=st,i.redraw=Ft,i.set=Pe,i.setDate=bt,i.toggle=Ut;function _(){i.utils={getDaysInMonth:function(V,z){return V===void 0&&(V=i.currentMonth),z===void 0&&(z=i.currentYear),V===1&&(z%4===0&&z%100!==0||z%400===0)?29:i.l10n.daysInMonth[V]}}}function j(){i.element=i.input=c,i.isOpen=!1,zt(),Lt(),nr(),Xt(),_(),i.isMobile||B(),D(),(i.selectedDates.length||i.config.noCalendar)&&(i.config.enableTime&&y(i.config.noCalendar?i.latestSelectedDateObj:void 0),$e(!1)),C();var V=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!i.isMobile&&V&&or(),ft("onReady")}function S(){var V;return((V=i.calendarContainer)===null||V===void 0?void 0:V.getRootNode()).activeElement||document.activeElement}function p(V){return V.bind(i)}function C(){var V=i.config;V.weekNumbers===!1&&V.showMonths===1||V.noCalendar!==!0&&window.requestAnimationFrame(function(){if(i.calendarContainer!==void 0&&(i.calendarContainer.style.visibility="hidden",i.calendarContainer.style.display="block"),i.daysContainer!==void 0){var z=(i.days.offsetWidth+1)*V.showMonths;i.daysContainer.style.width=z+"px",i.calendarContainer.style.width=z+(i.weekWrapper!==void 0?i.weekWrapper.offsetWidth:0)+"px",i.calendarContainer.style.removeProperty("visibility"),i.calendarContainer.style.removeProperty("display")}})}function o(V){if(i.selectedDates.length===0){var z=i.config.minDate===void 0||Yr(new Date,i.config.minDate)>=0?new Date:new Date(i.config.minDate.getTime()),te=Qs(i.config);z.setHours(te.hours,te.minutes,te.seconds,z.getMilliseconds()),i.selectedDates=[z],i.latestSelectedDateObj=z}V!==void 0&&V.type!=="blur"&&Gt(V);var me=i._input.value;w(),$e(),i._input.value!==me&&i._debouncedChange()}function h(V,z){return V%12+12*Xr(z===i.l10n.amPM[1])}function m(V){switch(V%24){case 0:case 12:return 12;default:return V%12}}function w(){if(!(i.hourElement===void 0||i.minuteElement===void 0)){var V=(parseInt(i.hourElement.value.slice(-2),10)||0)%24,z=(parseInt(i.minuteElement.value,10)||0)%60,te=i.secondElement!==void 0?(parseInt(i.secondElement.value,10)||0)%60:0;i.amPM!==void 0&&(V=h(V,i.amPM.textContent));var me=i.config.minTime!==void 0||i.config.minDate&&i.minDateHasTime&&i.latestSelectedDateObj&&Yr(i.latestSelectedDateObj,i.config.minDate,!0)===0,Se=i.config.maxTime!==void 0||i.config.maxDate&&i.maxDateHasTime&&i.latestSelectedDateObj&&Yr(i.latestSelectedDateObj,i.config.maxDate,!0)===0;if(i.config.maxTime!==void 0&&i.config.minTime!==void 0&&i.config.minTime>i.config.maxTime){var Me=Ks(i.config.minTime.getHours(),i.config.minTime.getMinutes(),i.config.minTime.getSeconds()),rt=Ks(i.config.maxTime.getHours(),i.config.maxTime.getMinutes(),i.config.maxTime.getSeconds()),Ie=Ks(V,z,te);if(Ie>rt&&Ie<Me){var at=Up(Me);V=at[0],z=at[1],te=at[2]}}else{if(Se){var We=i.config.maxTime!==void 0?i.config.maxTime:i.config.maxDate;V=Math.min(V,We.getHours()),V===We.getHours()&&(z=Math.min(z,We.getMinutes())),z===We.getMinutes()&&(te=Math.min(te,We.getSeconds()))}if(me){var Je=i.config.minTime!==void 0?i.config.minTime:i.config.minDate;V=Math.max(V,Je.getHours()),V===Je.getHours()&&z<Je.getMinutes()&&(z=Je.getMinutes()),z===Je.getMinutes()&&(te=Math.max(te,Je.getSeconds()))}}x(V,z,te)}}function y(V){var z=V||i.latestSelectedDateObj;z&&z instanceof Date&&x(z.getHours(),z.getMinutes(),z.getSeconds())}function x(V,z,te){i.latestSelectedDateObj!==void 0&&i.latestSelectedDateObj.setHours(V%24,z,te||0,0),!(!i.hourElement||!i.minuteElement||i.isMobile)&&(i.hourElement.value=Br(i.config.time_24hr?V:(12+V)%12+12*Xr(V%12===0)),i.minuteElement.value=Br(z),i.amPM!==void 0&&(i.amPM.textContent=i.l10n.amPM[Xr(V>=12)]),i.secondElement!==void 0&&(i.secondElement.value=Br(te)))}function k(V){var z=Gr(V),te=parseInt(z.value)+(V.delta||0);(te/1e3>1||V.key==="Enter"&&!/[^\d]/.test(te.toString()))&&Nt(te)}function E(V,z,te,me){if(z instanceof Array)return z.forEach(function(Se){return E(V,Se,te,me)});if(V instanceof Array)return V.forEach(function(Se){return E(Se,z,te,me)});V.addEventListener(z,te,me),i._handlers.push({remove:function(){return V.removeEventListener(z,te,me)}})}function T(){ft("onChange")}function D(){if(i.config.wrap&&["open","close","toggle","clear"].forEach(function(te){Array.prototype.forEach.call(i.element.querySelectorAll("[data-"+te+"]"),function(me){return E(me,"click",i[te])})}),i.isMobile){At();return}var V=nf(Xe,50);if(i._debouncedChange=nf(T,Yp),i.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&E(i.daysContainer,"mouseover",function(te){i.config.mode==="range"&&vt(Gr(te))}),E(i._input,"keydown",jt),i.calendarContainer!==void 0&&E(i.calendarContainer,"keydown",jt),!i.config.inline&&!i.config.static&&E(window,"resize",V),window.ontouchstart!==void 0?E(window.document,"touchstart",St):E(window.document,"mousedown",St),E(window.document,"focus",St,{capture:!0}),i.config.clickOpens===!0&&(E(i._input,"focus",i.open),E(i._input,"click",i.open)),i.daysContainer!==void 0&&(E(i.monthNav,"click",lt),E(i.monthNav,["keyup","increment"],k),E(i.daysContainer,"click",Mt)),i.timeContainer!==void 0&&i.minuteElement!==void 0&&i.hourElement!==void 0){var z=function(te){return Gr(te).select()};E(i.timeContainer,["increment"],o),E(i.timeContainer,"blur",o,{capture:!0}),E(i.timeContainer,"click",H),E([i.hourElement,i.minuteElement],["focus","click"],z),i.secondElement!==void 0&&E(i.secondElement,"focus",function(){return i.secondElement&&i.secondElement.select()}),i.amPM!==void 0&&E(i.amPM,"click",function(te){o(te)})}i.config.allowInput&&E(i._input,"blur",Ge)}function R(V,z){var te=V!==void 0?i.parseDate(V):i.latestSelectedDateObj||(i.config.minDate&&i.config.minDate>i.now?i.config.minDate:i.config.maxDate&&i.config.maxDate<i.now?i.config.maxDate:i.now),me=i.currentYear,Se=i.currentMonth;try{te!==void 0&&(i.currentYear=te.getFullYear(),i.currentMonth=te.getMonth())}catch(Me){Me.message="Invalid date supplied: "+te,i.config.errorHandler(Me)}z&&i.currentYear!==me&&(ft("onYearChange"),oe()),z&&(i.currentYear!==me||i.currentMonth!==Se)&&ft("onMonthChange"),i.redraw()}function H(V){var z=Gr(V);~z.className.indexOf("arrow")&&M(V,z.classList.contains("arrowUp")?1:-1)}function M(V,z,te){var me=V&&Gr(V),Se=te||me&&me.parentNode&&me.parentNode.firstChild,Me=er("increment");Me.delta=z,Se&&Se.dispatchEvent(Me)}function B(){var V=window.document.createDocumentFragment();if(i.calendarContainer=Rt("div","flatpickr-calendar"),i.calendarContainer.tabIndex=-1,!i.config.noCalendar){if(V.appendChild(ke()),i.innerContainer=Rt("div","flatpickr-innerContainer"),i.config.weekNumbers){var z=Ue(),te=z.weekWrapper,me=z.weekNumbers;i.innerContainer.appendChild(te),i.weekNumbers=me,i.weekWrapper=te}i.rContainer=Rt("div","flatpickr-rContainer"),i.rContainer.appendChild(Le()),i.daysContainer||(i.daysContainer=Rt("div","flatpickr-days"),i.daysContainer.tabIndex=-1),de(),i.rContainer.appendChild(i.daysContainer),i.innerContainer.appendChild(i.rContainer),V.appendChild(i.innerContainer)}i.config.enableTime&&V.appendChild(xe()),Sr(i.calendarContainer,"rangeMode",i.config.mode==="range"),Sr(i.calendarContainer,"animate",i.config.animate===!0),Sr(i.calendarContainer,"multiMonth",i.config.showMonths>1),i.calendarContainer.appendChild(V);var Se=i.config.appendTo!==void 0&&i.config.appendTo.nodeType!==void 0;if((i.config.inline||i.config.static)&&(i.calendarContainer.classList.add(i.config.inline?"inline":"static"),i.config.inline&&(!Se&&i.element.parentNode?i.element.parentNode.insertBefore(i.calendarContainer,i._input.nextSibling):i.config.appendTo!==void 0&&i.config.appendTo.appendChild(i.calendarContainer)),i.config.static)){var Me=Rt("div","flatpickr-wrapper");i.element.parentNode&&i.element.parentNode.insertBefore(Me,i.element),Me.appendChild(i.element),i.altInput&&Me.appendChild(i.altInput),Me.appendChild(i.calendarContainer)}!i.config.static&&!i.config.inline&&(i.config.appendTo!==void 0?i.config.appendTo:window.document.body).appendChild(i.calendarContainer)}function W(V,z,te,me){var Se=_t(z,!0),Me=Rt("span",V,z.getDate().toString());return Me.dateObj=z,Me.$i=me,Me.setAttribute("aria-label",i.formatDate(z,i.config.ariaDateFormat)),V.indexOf("hidden")===-1&&Yr(z,i.now)===0&&(i.todayDateElem=Me,Me.classList.add("today"),Me.setAttribute("aria-current","date")),Se?(Me.tabIndex=-1,$r(z)&&(Me.classList.add("selected"),i.selectedDateElem=Me,i.config.mode==="range"&&(Sr(Me,"startRange",i.selectedDates[0]&&Yr(z,i.selectedDates[0],!0)===0),Sr(Me,"endRange",i.selectedDates[1]&&Yr(z,i.selectedDates[1],!0)===0),V==="nextMonthDay"&&Me.classList.add("inRange")))):Me.classList.add("flatpickr-disabled"),i.config.mode==="range"&&$n(z)&&!$r(z)&&Me.classList.add("inRange"),i.weekNumbers&&i.config.showMonths===1&&V!=="prevMonthDay"&&me%7===6&&i.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+i.config.getWeek(z)+"</span>"),ft("onDayCreate",Me),Me}function v(V){V.focus(),i.config.mode==="range"&&vt(V)}function Y(V){for(var z=V>0?0:i.config.showMonths-1,te=V>0?i.config.showMonths:-1,me=z;me!=te;me+=V)for(var Se=i.daysContainer.children[me],Me=V>0?0:Se.children.length-1,rt=V>0?Se.children.length:-1,Ie=Me;Ie!=rt;Ie+=V){var at=Se.children[Ie];if(at.className.indexOf("hidden")===-1&&_t(at.dateObj))return at}}function G(V,z){for(var te=V.className.indexOf("Month")===-1?V.dateObj.getMonth():i.currentMonth,me=z>0?i.config.showMonths:-1,Se=z>0?1:-1,Me=te-i.currentMonth;Me!=me;Me+=Se)for(var rt=i.daysContainer.children[Me],Ie=te-i.currentMonth===Me?V.$i+z:z<0?rt.children.length-1:0,at=rt.children.length,We=Ie;We>=0&&We<at&&We!=(z>0?at:-1);We+=Se){var Je=rt.children[We];if(Je.className.indexOf("hidden")===-1&&_t(Je.dateObj)&&Math.abs(V.$i-We)>=Math.abs(z))return v(Je)}i.changeMonth(Se),X(Y(Se),0)}function X(V,z){var te=S(),me=ct(te||document.body),Se=V!==void 0?V:me?te:i.selectedDateElem!==void 0&&ct(i.selectedDateElem)?i.selectedDateElem:i.todayDateElem!==void 0&&ct(i.todayDateElem)?i.todayDateElem:Y(z>0?1:-1);Se===void 0?i._input.focus():me?G(Se,z):v(Se)}function ee(V,z){for(var te=(new Date(V,z,1).getDay()-i.l10n.firstDayOfWeek+7)%7,me=i.utils.getDaysInMonth((z-1+12)%12,V),Se=i.utils.getDaysInMonth(z,V),Me=window.document.createDocumentFragment(),rt=i.config.showMonths>1,Ie=rt?"prevMonthDay hidden":"prevMonthDay",at=rt?"nextMonthDay hidden":"nextMonthDay",We=me+1-te,Je=0;We<=me;We++,Je++)Me.appendChild(W("flatpickr-day "+Ie,new Date(V,z-1,We),We,Je));for(We=1;We<=Se;We++,Je++)Me.appendChild(W("flatpickr-day",new Date(V,z,We),We,Je));for(var Bt=Se+1;Bt<=42-te&&(i.config.showMonths===1||Je%7!==0);Bt++,Je++)Me.appendChild(W("flatpickr-day "+at,new Date(V,z+1,Bt%Se),Bt,Je));var Hr=Rt("div","dayContainer");return Hr.appendChild(Me),Hr}function de(){if(i.daysContainer!==void 0){Ma(i.daysContainer),i.weekNumbers&&Ma(i.weekNumbers);for(var V=document.createDocumentFragment(),z=0;z<i.config.showMonths;z++){var te=new Date(i.currentYear,i.currentMonth,1);te.setMonth(i.currentMonth+z),V.appendChild(ee(te.getFullYear(),te.getMonth()))}i.daysContainer.appendChild(V),i.days=i.daysContainer.firstChild,i.config.mode==="range"&&i.selectedDates.length===1&&vt()}}function oe(){if(!(i.config.showMonths>1||i.config.monthSelectorType!=="dropdown")){var V=function(me){return i.config.minDate!==void 0&&i.currentYear===i.config.minDate.getFullYear()&&me<i.config.minDate.getMonth()?!1:!(i.config.maxDate!==void 0&&i.currentYear===i.config.maxDate.getFullYear()&&me>i.config.maxDate.getMonth())};i.monthsDropdownContainer.tabIndex=-1,i.monthsDropdownContainer.innerHTML="";for(var z=0;z<12;z++)if(V(z)){var te=Rt("option","flatpickr-monthDropdown-month");te.value=new Date(i.currentYear,z).getMonth().toString(),te.textContent=Na(z,i.config.shorthandCurrentMonth,i.l10n),te.tabIndex=-1,i.currentMonth===z&&(te.selected=!0),i.monthsDropdownContainer.appendChild(te)}}}function ye(){var V=Rt("div","flatpickr-month"),z=window.document.createDocumentFragment(),te;i.config.showMonths>1||i.config.monthSelectorType==="static"?te=Rt("span","cur-month"):(i.monthsDropdownContainer=Rt("select","flatpickr-monthDropdown-months"),i.monthsDropdownContainer.setAttribute("aria-label",i.l10n.monthAriaLabel),E(i.monthsDropdownContainer,"change",function(rt){var Ie=Gr(rt),at=parseInt(Ie.value,10);i.changeMonth(at-i.currentMonth),ft("onMonthChange")}),oe(),te=i.monthsDropdownContainer);var me=Ra("cur-year",{tabindex:"-1"}),Se=me.getElementsByTagName("input")[0];Se.setAttribute("aria-label",i.l10n.yearAriaLabel),i.config.minDate&&Se.setAttribute("min",i.config.minDate.getFullYear().toString()),i.config.maxDate&&(Se.setAttribute("max",i.config.maxDate.getFullYear().toString()),Se.disabled=!!i.config.minDate&&i.config.minDate.getFullYear()===i.config.maxDate.getFullYear());var Me=Rt("div","flatpickr-current-month");return Me.appendChild(te),Me.appendChild(me),z.appendChild(Me),V.appendChild(z),{container:V,yearElement:Se,monthElement:te}}function _e(){Ma(i.monthNav),i.monthNav.appendChild(i.prevMonthNav),i.config.showMonths&&(i.yearElements=[],i.monthElements=[]);for(var V=i.config.showMonths;V--;){var z=ye();i.yearElements.push(z.yearElement),i.monthElements.push(z.monthElement),i.monthNav.appendChild(z.container)}i.monthNav.appendChild(i.nextMonthNav)}function ke(){return i.monthNav=Rt("div","flatpickr-months"),i.yearElements=[],i.monthElements=[],i.prevMonthNav=Rt("span","flatpickr-prev-month"),i.prevMonthNav.innerHTML=i.config.prevArrow,i.nextMonthNav=Rt("span","flatpickr-next-month"),i.nextMonthNav.innerHTML=i.config.nextArrow,_e(),Object.defineProperty(i,"_hidePrevMonthArrow",{get:function(){return i.__hidePrevMonthArrow},set:function(V){i.__hidePrevMonthArrow!==V&&(Sr(i.prevMonthNav,"flatpickr-disabled",V),i.__hidePrevMonthArrow=V)}}),Object.defineProperty(i,"_hideNextMonthArrow",{get:function(){return i.__hideNextMonthArrow},set:function(V){i.__hideNextMonthArrow!==V&&(Sr(i.nextMonthNav,"flatpickr-disabled",V),i.__hideNextMonthArrow=V)}}),i.currentYearElement=i.yearElements[0],et(),i.monthNav}function xe(){i.calendarContainer.classList.add("hasTime"),i.config.noCalendar&&i.calendarContainer.classList.add("noCalendar");var V=Qs(i.config);i.timeContainer=Rt("div","flatpickr-time"),i.timeContainer.tabIndex=-1;var z=Rt("span","flatpickr-time-separator",":"),te=Ra("flatpickr-hour",{"aria-label":i.l10n.hourAriaLabel});i.hourElement=te.getElementsByTagName("input")[0];var me=Ra("flatpickr-minute",{"aria-label":i.l10n.minuteAriaLabel});if(i.minuteElement=me.getElementsByTagName("input")[0],i.hourElement.tabIndex=i.minuteElement.tabIndex=-1,i.hourElement.value=Br(i.latestSelectedDateObj?i.latestSelectedDateObj.getHours():i.config.time_24hr?V.hours:m(V.hours)),i.minuteElement.value=Br(i.latestSelectedDateObj?i.latestSelectedDateObj.getMinutes():V.minutes),i.hourElement.setAttribute("step",i.config.hourIncrement.toString()),i.minuteElement.setAttribute("step",i.config.minuteIncrement.toString()),i.hourElement.setAttribute("min",i.config.time_24hr?"0":"1"),i.hourElement.setAttribute("max",i.config.time_24hr?"23":"12"),i.hourElement.setAttribute("maxlength","2"),i.minuteElement.setAttribute("min","0"),i.minuteElement.setAttribute("max","59"),i.minuteElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(te),i.timeContainer.appendChild(z),i.timeContainer.appendChild(me),i.config.time_24hr&&i.timeContainer.classList.add("time24hr"),i.config.enableSeconds){i.timeContainer.classList.add("hasSeconds");var Se=Ra("flatpickr-second");i.secondElement=Se.getElementsByTagName("input")[0],i.secondElement.value=Br(i.latestSelectedDateObj?i.latestSelectedDateObj.getSeconds():V.seconds),i.secondElement.setAttribute("step",i.minuteElement.getAttribute("step")),i.secondElement.setAttribute("min","0"),i.secondElement.setAttribute("max","59"),i.secondElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(Rt("span","flatpickr-time-separator",":")),i.timeContainer.appendChild(Se)}return i.config.time_24hr||(i.amPM=Rt("span","flatpickr-am-pm",i.l10n.amPM[Xr((i.latestSelectedDateObj?i.hourElement.value:i.config.defaultHour)>11)]),i.amPM.title=i.l10n.toggleTitle,i.amPM.tabIndex=-1,i.timeContainer.appendChild(i.amPM)),i.timeContainer}function Le(){i.weekdayContainer?Ma(i.weekdayContainer):i.weekdayContainer=Rt("div","flatpickr-weekdays");for(var V=i.config.showMonths;V--;){var z=Rt("div","flatpickr-weekdaycontainer");i.weekdayContainer.appendChild(z)}return Ee(),i.weekdayContainer}function Ee(){if(i.weekdayContainer){var V=i.l10n.firstDayOfWeek,z=sf(i.l10n.weekdays.shorthand);V>0&&V<z.length&&(z=sf(z.splice(V,z.length),z.splice(0,V)));for(var te=i.config.showMonths;te--;)i.weekdayContainer.children[te].innerHTML=`
41
+ <span class='flatpickr-weekday'>
42
+ `+z.join("</span><span class='flatpickr-weekday'>")+`
43
+ </span>
44
+ `}}function Ue(){i.calendarContainer.classList.add("hasWeeks");var V=Rt("div","flatpickr-weekwrapper");V.appendChild(Rt("span","flatpickr-weekday",i.l10n.weekAbbreviation));var z=Rt("div","flatpickr-weeks");return V.appendChild(z),{weekWrapper:V,weekNumbers:z}}function Ke(V,z){z===void 0&&(z=!0);var te=z?V:V-i.currentMonth;te<0&&i._hidePrevMonthArrow===!0||te>0&&i._hideNextMonthArrow===!0||(i.currentMonth+=te,(i.currentMonth<0||i.currentMonth>11)&&(i.currentYear+=i.currentMonth>11?1:-1,i.currentMonth=(i.currentMonth+12)%12,ft("onYearChange"),oe()),de(),ft("onMonthChange"),et())}function tt(V,z){if(V===void 0&&(V=!0),z===void 0&&(z=!0),i.input.value="",i.altInput!==void 0&&(i.altInput.value=""),i.mobileInput!==void 0&&(i.mobileInput.value=""),i.selectedDates=[],i.latestSelectedDateObj=void 0,z===!0&&(i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth()),i.config.enableTime===!0){var te=Qs(i.config),me=te.hours,Se=te.minutes,Me=te.seconds;x(me,Se,Me)}i.redraw(),V&&ft("onChange")}function je(){i.isOpen=!1,i.isMobile||(i.calendarContainer!==void 0&&i.calendarContainer.classList.remove("open"),i._input!==void 0&&i._input.classList.remove("active")),ft("onClose")}function Ye(){i.config!==void 0&&ft("onDestroy");for(var V=i._handlers.length;V--;)i._handlers[V].remove();if(i._handlers=[],i.mobileInput)i.mobileInput.parentNode&&i.mobileInput.parentNode.removeChild(i.mobileInput),i.mobileInput=void 0;else if(i.calendarContainer&&i.calendarContainer.parentNode)if(i.config.static&&i.calendarContainer.parentNode){var z=i.calendarContainer.parentNode;if(z.lastChild&&z.removeChild(z.lastChild),z.parentNode){for(;z.firstChild;)z.parentNode.insertBefore(z.firstChild,z);z.parentNode.removeChild(z)}}else i.calendarContainer.parentNode.removeChild(i.calendarContainer);i.altInput&&(i.input.type="text",i.altInput.parentNode&&i.altInput.parentNode.removeChild(i.altInput),delete i.altInput),i.input&&(i.input.type=i.input._type,i.input.classList.remove("flatpickr-input"),i.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(te){try{delete i[te]}catch{}})}function qe(V){return i.calendarContainer.contains(V)}function St(V){if(i.isOpen&&!i.config.inline){var z=Gr(V),te=qe(z),me=z===i.input||z===i.altInput||i.element.contains(z)||V.path&&V.path.indexOf&&(~V.path.indexOf(i.input)||~V.path.indexOf(i.altInput)),Se=!me&&!te&&!qe(V.relatedTarget),Me=!i.config.ignoredFocusElements.some(function(rt){return rt.contains(z)});Se&&Me&&(i.config.allowInput&&i.setDate(i._input.value,!1,i.config.altInput?i.config.altFormat:i.config.dateFormat),i.timeContainer!==void 0&&i.minuteElement!==void 0&&i.hourElement!==void 0&&i.input.value!==""&&i.input.value!==void 0&&o(),i.close(),i.config&&i.config.mode==="range"&&i.selectedDates.length===1&&i.clear(!1))}}function Nt(V){if(!(!V||i.config.minDate&&V<i.config.minDate.getFullYear()||i.config.maxDate&&V>i.config.maxDate.getFullYear())){var z=V,te=i.currentYear!==z;i.currentYear=z||i.currentYear,i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth=Math.min(i.config.maxDate.getMonth(),i.currentMonth):i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&(i.currentMonth=Math.max(i.config.minDate.getMonth(),i.currentMonth)),te&&(i.redraw(),ft("onYearChange"),oe())}}function _t(V,z){var te;z===void 0&&(z=!0);var me=i.parseDate(V,void 0,z);if(i.config.minDate&&me&&Yr(me,i.config.minDate,z!==void 0?z:!i.minDateHasTime)<0||i.config.maxDate&&me&&Yr(me,i.config.maxDate,z!==void 0?z:!i.maxDateHasTime)>0)return!1;if(!i.config.enable&&i.config.disable.length===0)return!0;if(me===void 0)return!1;for(var Se=!!i.config.enable,Me=(te=i.config.enable)!==null&&te!==void 0?te:i.config.disable,rt=0,Ie=void 0;rt<Me.length;rt++){if(Ie=Me[rt],typeof Ie=="function"&&Ie(me))return Se;if(Ie instanceof Date&&me!==void 0&&Ie.getTime()===me.getTime())return Se;if(typeof Ie=="string"){var at=i.parseDate(Ie,void 0,!0);return at&&at.getTime()===me.getTime()?Se:!Se}else if(typeof Ie=="object"&&me!==void 0&&Ie.from&&Ie.to&&me.getTime()>=Ie.from.getTime()&&me.getTime()<=Ie.to.getTime())return Se}return!Se}function ct(V){return i.daysContainer!==void 0?V.className.indexOf("hidden")===-1&&V.className.indexOf("flatpickr-disabled")===-1&&i.daysContainer.contains(V):!1}function Ge(V){var z=V.target===i._input,te=i._input.value.trimEnd()!==ht();z&&te&&!(V.relatedTarget&&qe(V.relatedTarget))&&i.setDate(i._input.value,!0,V.target===i.altInput?i.config.altFormat:i.config.dateFormat)}function jt(V){var z=Gr(V),te=i.config.wrap?c.contains(z):z===i._input,me=i.config.allowInput,Se=i.isOpen&&(!me||!te),Me=i.config.inline&&te&&!me;if(V.keyCode===13&&te){if(me)return i.setDate(i._input.value,!0,z===i.altInput?i.config.altFormat:i.config.dateFormat),i.close(),z.blur();i.open()}else if(qe(z)||Se||Me){var rt=!!i.timeContainer&&i.timeContainer.contains(z);switch(V.keyCode){case 13:rt?(V.preventDefault(),o(),It()):Mt(V);break;case 27:V.preventDefault(),It();break;case 8:case 46:te&&!i.config.allowInput&&(V.preventDefault(),i.clear());break;case 37:case 39:if(!rt&&!te){V.preventDefault();var Ie=S();if(i.daysContainer!==void 0&&(me===!1||Ie&&ct(Ie))){var at=V.keyCode===39?1:-1;V.ctrlKey?(V.stopPropagation(),Ke(at),X(Y(1),0)):X(void 0,at)}}else i.hourElement&&i.hourElement.focus();break;case 38:case 40:V.preventDefault();var We=V.keyCode===40?1:-1;i.daysContainer&&z.$i!==void 0||z===i.input||z===i.altInput?V.ctrlKey?(V.stopPropagation(),Nt(i.currentYear-We),X(Y(1),0)):rt||X(void 0,We*7):z===i.currentYearElement?Nt(i.currentYear-We):i.config.enableTime&&(!rt&&i.hourElement&&i.hourElement.focus(),o(V),i._debouncedChange());break;case 9:if(rt){var Je=[i.hourElement,i.minuteElement,i.secondElement,i.amPM].concat(i.pluginElements).filter(function(pr){return pr}),Bt=Je.indexOf(z);if(Bt!==-1){var Hr=Je[Bt+(V.shiftKey?-1:1)];V.preventDefault(),(Hr||i._input).focus()}}else!i.config.noCalendar&&i.daysContainer&&i.daysContainer.contains(z)&&V.shiftKey&&(V.preventDefault(),i._input.focus());break}}if(i.amPM!==void 0&&z===i.amPM)switch(V.key){case i.l10n.amPM[0].charAt(0):case i.l10n.amPM[0].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[0],w(),$e();break;case i.l10n.amPM[1].charAt(0):case i.l10n.amPM[1].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[1],w(),$e();break}(te||qe(z))&&ft("onKeyDown",V)}function vt(V,z){if(z===void 0&&(z="flatpickr-day"),!(i.selectedDates.length!==1||V&&(!V.classList.contains(z)||V.classList.contains("flatpickr-disabled")))){for(var te=V?V.dateObj.getTime():i.days.firstElementChild.dateObj.getTime(),me=i.parseDate(i.selectedDates[0],void 0,!0).getTime(),Se=Math.min(te,i.selectedDates[0].getTime()),Me=Math.max(te,i.selectedDates[0].getTime()),rt=!1,Ie=0,at=0,We=Se;We<Me;We+=Gp.DAY)_t(new Date(We),!0)||(rt=rt||We>Se&&We<Me,We<me&&(!Ie||We>Ie)?Ie=We:We>me&&(!at||We<at)&&(at=We));var Je=Array.from(i.rContainer.querySelectorAll("*:nth-child(-n+"+i.config.showMonths+") > ."+z));Je.forEach(function(Bt){var Hr=Bt.dateObj,pr=Hr.getTime(),fn=Ie>0&&pr<Ie||at>0&&pr>at;if(fn){Bt.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Vr){Bt.classList.remove(Vr)});return}else if(rt&&!fn)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Vr){Bt.classList.remove(Vr)}),V!==void 0&&(V.classList.add(te<=i.selectedDates[0].getTime()?"startRange":"endRange"),me<te&&pr===me?Bt.classList.add("startRange"):me>te&&pr===me&&Bt.classList.add("endRange"),pr>=Ie&&(at===0||pr<=at)&&Wp(pr,me,te)&&Bt.classList.add("inRange"))})}}function Xe(){i.isOpen&&!i.config.static&&!i.config.inline&&or()}function st(V,z){if(z===void 0&&(z=i._positionElement),i.isMobile===!0){if(V){V.preventDefault();var te=Gr(V);te&&te.blur()}i.mobileInput!==void 0&&(i.mobileInput.focus(),i.mobileInput.click()),ft("onOpen");return}else if(i._input.disabled||i.config.inline)return;var me=i.isOpen;i.isOpen=!0,me||(i.calendarContainer.classList.add("open"),i._input.classList.add("active"),ft("onOpen"),or(z)),i.config.enableTime===!0&&i.config.noCalendar===!0&&i.config.allowInput===!1&&(V===void 0||!i.timeContainer.contains(V.relatedTarget))&&setTimeout(function(){return i.hourElement.select()},50)}function pt(V){return function(z){var te=i.config["_"+V+"Date"]=i.parseDate(z,i.config.dateFormat),me=i.config["_"+(V==="min"?"max":"min")+"Date"];te!==void 0&&(i[V==="min"?"minDateHasTime":"maxDateHasTime"]=te.getHours()>0||te.getMinutes()>0||te.getSeconds()>0),i.selectedDates&&(i.selectedDates=i.selectedDates.filter(function(Se){return _t(Se)}),!i.selectedDates.length&&V==="min"&&y(te),$e()),i.daysContainer&&(Ft(),te!==void 0?i.currentYearElement[V]=te.getFullYear().toString():i.currentYearElement.removeAttribute(V),i.currentYearElement.disabled=!!me&&te!==void 0&&me.getFullYear()===te.getFullYear())}}function zt(){var V=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],z=wr(wr({},JSON.parse(JSON.stringify(c.dataset||{}))),l),te={};i.config.parseDate=z.parseDate,i.config.formatDate=z.formatDate,Object.defineProperty(i.config,"enable",{get:function(){return i.config._enable},set:function(Je){i.config._enable=Pt(Je)}}),Object.defineProperty(i.config,"disable",{get:function(){return i.config._disable},set:function(Je){i.config._disable=Pt(Je)}});var me=z.mode==="time";if(!z.dateFormat&&(z.enableTime||me)){var Se=lr.defaultConfig.dateFormat||ao.dateFormat;te.dateFormat=z.noCalendar||me?"H:i"+(z.enableSeconds?":S":""):Se+" H:i"+(z.enableSeconds?":S":"")}if(z.altInput&&(z.enableTime||me)&&!z.altFormat){var Me=lr.defaultConfig.altFormat||ao.altFormat;te.altFormat=z.noCalendar||me?"h:i"+(z.enableSeconds?":S K":" K"):Me+(" h:i"+(z.enableSeconds?":S":"")+" K")}Object.defineProperty(i.config,"minDate",{get:function(){return i.config._minDate},set:pt("min")}),Object.defineProperty(i.config,"maxDate",{get:function(){return i.config._maxDate},set:pt("max")});var rt=function(Je){return function(Bt){i.config[Je==="min"?"_minTime":"_maxTime"]=i.parseDate(Bt,"H:i:S")}};Object.defineProperty(i.config,"minTime",{get:function(){return i.config._minTime},set:rt("min")}),Object.defineProperty(i.config,"maxTime",{get:function(){return i.config._maxTime},set:rt("max")}),z.mode==="time"&&(i.config.noCalendar=!0,i.config.enableTime=!0),Object.assign(i.config,te,z);for(var Ie=0;Ie<V.length;Ie++)i.config[V[Ie]]=i.config[V[Ie]]===!0||i.config[V[Ie]]==="true";Gs.filter(function(Je){return i.config[Je]!==void 0}).forEach(function(Je){i.config[Je]=Ys(i.config[Je]||[]).map(p)}),i.isMobile=!i.config.disableMobile&&!i.config.inline&&i.config.mode==="single"&&!i.config.disable.length&&!i.config.enable&&!i.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var Ie=0;Ie<i.config.plugins.length;Ie++){var at=i.config.plugins[Ie](i)||{};for(var We in at)Gs.indexOf(We)>-1?i.config[We]=Ys(at[We]).map(p).concat(i.config[We]):typeof z[We]>"u"&&(i.config[We]=at[We])}z.altInputClass||(i.config.altInputClass=Qt().className+" "+i.config.altInputClass),ft("onParseConfig")}function Qt(){return i.config.wrap?c.querySelector("[data-input]"):c}function Lt(){typeof i.config.locale!="object"&&typeof lr.l10ns[i.config.locale]>"u"&&i.config.errorHandler(new Error("flatpickr: invalid locale "+i.config.locale)),i.l10n=wr(wr({},lr.l10ns.default),typeof i.config.locale=="object"?i.config.locale:i.config.locale!=="default"?lr.l10ns[i.config.locale]:void 0),Li.D="("+i.l10n.weekdays.shorthand.join("|")+")",Li.l="("+i.l10n.weekdays.longhand.join("|")+")",Li.M="("+i.l10n.months.shorthand.join("|")+")",Li.F="("+i.l10n.months.longhand.join("|")+")",Li.K="("+i.l10n.amPM[0]+"|"+i.l10n.amPM[1]+"|"+i.l10n.amPM[0].toLowerCase()+"|"+i.l10n.amPM[1].toLowerCase()+")";var V=wr(wr({},l),JSON.parse(JSON.stringify(c.dataset||{})));V.time_24hr===void 0&&lr.defaultConfig.time_24hr===void 0&&(i.config.time_24hr=i.l10n.time_24hr),i.formatDate=af(i),i.parseDate=Js({config:i.config,l10n:i.l10n})}function or(V){if(typeof i.config.position=="function")return void i.config.position(i,V);if(i.calendarContainer!==void 0){ft("onPreCalendarPosition");var z=V||i._positionElement,te=Array.prototype.reduce.call(i.calendarContainer.children,function(On,nn){return On+nn.offsetHeight},0),me=i.calendarContainer.offsetWidth,Se=i.config.position.split(" "),Me=Se[0],rt=Se.length>1?Se[1]:null,Ie=z.getBoundingClientRect(),at=window.innerHeight-Ie.bottom,We=Me==="above"||Me!=="below"&&at<te&&Ie.top>te,Je=window.pageYOffset+Ie.top+(We?-te-2:z.offsetHeight+2);if(Sr(i.calendarContainer,"arrowTop",!We),Sr(i.calendarContainer,"arrowBottom",We),!i.config.inline){var Bt=window.pageXOffset+Ie.left,Hr=!1,pr=!1;rt==="center"?(Bt-=(me-Ie.width)/2,Hr=!0):rt==="right"&&(Bt-=me-Ie.width,pr=!0),Sr(i.calendarContainer,"arrowLeft",!Hr&&!pr),Sr(i.calendarContainer,"arrowCenter",Hr),Sr(i.calendarContainer,"arrowRight",pr);var fn=window.document.body.offsetWidth-(window.pageXOffset+Ie.right),Vr=Bt+me>window.document.body.offsetWidth,rn=fn+me>window.document.body.offsetWidth;if(Sr(i.calendarContainer,"rightMost",Vr),!i.config.static)if(i.calendarContainer.style.top=Je+"px",!Vr)i.calendarContainer.style.left=Bt+"px",i.calendarContainer.style.right="auto";else if(!rn)i.calendarContainer.style.left="auto",i.calendarContainer.style.right=fn+"px";else{var jn=rr();if(jn===void 0)return;var da=window.document.body.offsetWidth,Fr=Math.max(0,da/2-me/2),co=".flatpickr-calendar.centerMost:before",Ii=".flatpickr-calendar.centerMost:after",Mi=jn.cssRules.length,Jn="{left:"+Ie.left+"px;right:auto;}";Sr(i.calendarContainer,"rightMost",!1),Sr(i.calendarContainer,"centerMost",!0),jn.insertRule(co+","+Ii+Jn,Mi),i.calendarContainer.style.left=Fr+"px",i.calendarContainer.style.right="auto"}}}}function rr(){for(var V=null,z=0;z<document.styleSheets.length;z++){var te=document.styleSheets[z];if(te.cssRules){try{te.cssRules}catch{continue}V=te;break}}return V??hr()}function hr(){var V=document.createElement("style");return document.head.appendChild(V),V.sheet}function Ft(){i.config.noCalendar||i.isMobile||(oe(),et(),de())}function It(){i._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(i.close,0):i.close()}function Mt(V){V.preventDefault(),V.stopPropagation();var z=function(Je){return Je.classList&&Je.classList.contains("flatpickr-day")&&!Je.classList.contains("flatpickr-disabled")&&!Je.classList.contains("notAllowed")},te=of(Gr(V),z);if(te!==void 0){var me=te,Se=i.latestSelectedDateObj=new Date(me.dateObj.getTime()),Me=(Se.getMonth()<i.currentMonth||Se.getMonth()>i.currentMonth+i.config.showMonths-1)&&i.config.mode!=="range";if(i.selectedDateElem=me,i.config.mode==="single")i.selectedDates=[Se];else if(i.config.mode==="multiple"){var rt=$r(Se);rt?i.selectedDates.splice(parseInt(rt),1):i.selectedDates.push(Se)}else i.config.mode==="range"&&(i.selectedDates.length===2&&i.clear(!1,!1),i.latestSelectedDateObj=Se,i.selectedDates.push(Se),Yr(Se,i.selectedDates[0],!0)!==0&&i.selectedDates.sort(function(Je,Bt){return Je.getTime()-Bt.getTime()}));if(w(),Me){var Ie=i.currentYear!==Se.getFullYear();i.currentYear=Se.getFullYear(),i.currentMonth=Se.getMonth(),Ie&&(ft("onYearChange"),oe()),ft("onMonthChange")}if(et(),de(),$e(),!Me&&i.config.mode!=="range"&&i.config.showMonths===1?v(me):i.selectedDateElem!==void 0&&i.hourElement===void 0&&i.selectedDateElem&&i.selectedDateElem.focus(),i.hourElement!==void 0&&i.hourElement!==void 0&&i.hourElement.focus(),i.config.closeOnSelect){var at=i.config.mode==="single"&&!i.config.enableTime,We=i.config.mode==="range"&&i.selectedDates.length===2&&!i.config.enableTime;(at||We)&&It()}T()}}var fe={locale:[Lt,Ee],showMonths:[_e,C,Le],minDate:[R],maxDate:[R],positionElement:[Wt],clickOpens:[function(){i.config.clickOpens===!0?(E(i._input,"focus",i.open),E(i._input,"click",i.open)):(i._input.removeEventListener("focus",i.open),i._input.removeEventListener("click",i.open))}]};function Pe(V,z){if(V!==null&&typeof V=="object"){Object.assign(i.config,V);for(var te in V)fe[te]!==void 0&&fe[te].forEach(function(me){return me()})}else i.config[V]=z,fe[V]!==void 0?fe[V].forEach(function(me){return me()}):Gs.indexOf(V)>-1&&(i.config[V]=Ys(z));i.redraw(),$e(!0)}function ze(V,z){var te=[];if(V instanceof Array)te=V.map(function(me){return i.parseDate(me,z)});else if(V instanceof Date||typeof V=="number")te=[i.parseDate(V,z)];else if(typeof V=="string")switch(i.config.mode){case"single":case"time":te=[i.parseDate(V,z)];break;case"multiple":te=V.split(i.config.conjunction).map(function(me){return i.parseDate(me,z)});break;case"range":te=V.split(i.l10n.rangeSeparator).map(function(me){return i.parseDate(me,z)});break}else i.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(V)));i.selectedDates=i.config.allowInvalidPreload?te:te.filter(function(me){return me instanceof Date&&_t(me,!1)}),i.config.mode==="range"&&i.selectedDates.sort(function(me,Se){return me.getTime()-Se.getTime()})}function bt(V,z,te){if(z===void 0&&(z=!1),te===void 0&&(te=i.config.dateFormat),V!==0&&!V||V instanceof Array&&V.length===0)return i.clear(z);ze(V,te),i.latestSelectedDateObj=i.selectedDates[i.selectedDates.length-1],i.redraw(),R(void 0,z),y(),i.selectedDates.length===0&&i.clear(!1),$e(z),z&&ft("onChange")}function Pt(V){return V.slice().map(function(z){return typeof z=="string"||typeof z=="number"||z instanceof Date?i.parseDate(z,void 0,!0):z&&typeof z=="object"&&z.from&&z.to?{from:i.parseDate(z.from,void 0),to:i.parseDate(z.to,void 0)}:z}).filter(function(z){return z})}function Xt(){i.selectedDates=[],i.now=i.parseDate(i.config.now)||new Date;var V=i.config.defaultDate||((i.input.nodeName==="INPUT"||i.input.nodeName==="TEXTAREA")&&i.input.placeholder&&i.input.value===i.input.placeholder?null:i.input.value);V&&ze(V,i.config.dateFormat),i._initialDate=i.selectedDates.length>0?i.selectedDates[0]:i.config.minDate&&i.config.minDate.getTime()>i.now.getTime()?i.config.minDate:i.config.maxDate&&i.config.maxDate.getTime()<i.now.getTime()?i.config.maxDate:i.now,i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth(),i.selectedDates.length>0&&(i.latestSelectedDateObj=i.selectedDates[0]),i.config.minTime!==void 0&&(i.config.minTime=i.parseDate(i.config.minTime,"H:i")),i.config.maxTime!==void 0&&(i.config.maxTime=i.parseDate(i.config.maxTime,"H:i")),i.minDateHasTime=!!i.config.minDate&&(i.config.minDate.getHours()>0||i.config.minDate.getMinutes()>0||i.config.minDate.getSeconds()>0),i.maxDateHasTime=!!i.config.maxDate&&(i.config.maxDate.getHours()>0||i.config.maxDate.getMinutes()>0||i.config.maxDate.getSeconds()>0)}function nr(){if(i.input=Qt(),!i.input){i.config.errorHandler(new Error("Invalid input element specified"));return}i.input._type=i.input.type,i.input.type="text",i.input.classList.add("flatpickr-input"),i._input=i.input,i.config.altInput&&(i.altInput=Rt(i.input.nodeName,i.config.altInputClass),i._input=i.altInput,i.altInput.placeholder=i.input.placeholder,i.altInput.disabled=i.input.disabled,i.altInput.required=i.input.required,i.altInput.tabIndex=i.input.tabIndex,i.altInput.type="text",i.input.setAttribute("type","hidden"),!i.config.static&&i.input.parentNode&&i.input.parentNode.insertBefore(i.altInput,i.input.nextSibling)),i.config.allowInput||i._input.setAttribute("readonly","readonly"),Wt()}function Wt(){i._positionElement=i.config.positionElement||i._input}function At(){var V=i.config.enableTime?i.config.noCalendar?"time":"datetime-local":"date";i.mobileInput=Rt("input",i.input.className+" flatpickr-mobile"),i.mobileInput.tabIndex=1,i.mobileInput.type=V,i.mobileInput.disabled=i.input.disabled,i.mobileInput.required=i.input.required,i.mobileInput.placeholder=i.input.placeholder,i.mobileFormatStr=V==="datetime-local"?"Y-m-d\\TH:i:S":V==="date"?"Y-m-d":"H:i:S",i.selectedDates.length>0&&(i.mobileInput.defaultValue=i.mobileInput.value=i.formatDate(i.selectedDates[0],i.mobileFormatStr)),i.config.minDate&&(i.mobileInput.min=i.formatDate(i.config.minDate,"Y-m-d")),i.config.maxDate&&(i.mobileInput.max=i.formatDate(i.config.maxDate,"Y-m-d")),i.input.getAttribute("step")&&(i.mobileInput.step=String(i.input.getAttribute("step"))),i.input.type="hidden",i.altInput!==void 0&&(i.altInput.type="hidden");try{i.input.parentNode&&i.input.parentNode.insertBefore(i.mobileInput,i.input.nextSibling)}catch{}E(i.mobileInput,"change",function(z){i.setDate(Gr(z).value,!1,i.mobileFormatStr),ft("onChange"),ft("onClose")})}function Ut(V){if(i.isOpen===!0)return i.close();i.open(V)}function ft(V,z){if(i.config!==void 0){var te=i.config[V];if(te!==void 0&&te.length>0)for(var me=0;te[me]&&me<te.length;me++)te[me](i.selectedDates,i.input.value,i,z);V==="onChange"&&(i.input.dispatchEvent(er("change")),i.input.dispatchEvent(er("input")))}}function er(V){var z=document.createEvent("Event");return z.initEvent(V,!0,!0),z}function $r(V){for(var z=0;z<i.selectedDates.length;z++){var te=i.selectedDates[z];if(te instanceof Date&&Yr(te,V)===0)return""+z}return!1}function $n(V){return i.config.mode!=="range"||i.selectedDates.length<2?!1:Yr(V,i.selectedDates[0])>=0&&Yr(V,i.selectedDates[1])<=0}function et(){i.config.noCalendar||i.isMobile||!i.monthNav||(i.yearElements.forEach(function(V,z){var te=new Date(i.currentYear,i.currentMonth,1);te.setMonth(i.currentMonth+z),i.config.showMonths>1||i.config.monthSelectorType==="static"?i.monthElements[z].textContent=Na(te.getMonth(),i.config.shorthandCurrentMonth,i.l10n)+" ":i.monthsDropdownContainer.value=te.getMonth().toString(),V.value=te.getFullYear().toString()}),i._hidePrevMonthArrow=i.config.minDate!==void 0&&(i.currentYear===i.config.minDate.getFullYear()?i.currentMonth<=i.config.minDate.getMonth():i.currentYear<i.config.minDate.getFullYear()),i._hideNextMonthArrow=i.config.maxDate!==void 0&&(i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth+1>i.config.maxDate.getMonth():i.currentYear>i.config.maxDate.getFullYear()))}function ht(V){var z=V||(i.config.altInput?i.config.altFormat:i.config.dateFormat);return i.selectedDates.map(function(te){return i.formatDate(te,z)}).filter(function(te,me,Se){return i.config.mode!=="range"||i.config.enableTime||Se.indexOf(te)===me}).join(i.config.mode!=="range"?i.config.conjunction:i.l10n.rangeSeparator)}function $e(V){V===void 0&&(V=!0),i.mobileInput!==void 0&&i.mobileFormatStr&&(i.mobileInput.value=i.latestSelectedDateObj!==void 0?i.formatDate(i.latestSelectedDateObj,i.mobileFormatStr):""),i.input.value=ht(i.config.dateFormat),i.altInput!==void 0&&(i.altInput.value=ht(i.config.altFormat)),V!==!1&&ft("onValueUpdate")}function lt(V){var z=Gr(V),te=i.prevMonthNav.contains(z),me=i.nextMonthNav.contains(z);te||me?Ke(te?-1:1):i.yearElements.indexOf(z)>=0?z.select():z.classList.contains("arrowUp")?i.changeYear(i.currentYear+1):z.classList.contains("arrowDown")&&i.changeYear(i.currentYear-1)}function Gt(V){V.preventDefault();var z=V.type==="keydown",te=Gr(V),me=te;i.amPM!==void 0&&te===i.amPM&&(i.amPM.textContent=i.l10n.amPM[Xr(i.amPM.textContent===i.l10n.amPM[0])]);var Se=parseFloat(me.getAttribute("min")),Me=parseFloat(me.getAttribute("max")),rt=parseFloat(me.getAttribute("step")),Ie=parseInt(me.value,10),at=V.delta||(z?V.which===38?1:-1:0),We=Ie+rt*at;if(typeof me.value<"u"&&me.value.length===2){var Je=me===i.hourElement,Bt=me===i.minuteElement;We<Se?(We=Me+We+Xr(!Je)+(Xr(Je)&&Xr(!i.amPM)),Bt&&M(void 0,-1,i.hourElement)):We>Me&&(We=me===i.hourElement?We-Me-Xr(!i.amPM):Se,Bt&&M(void 0,1,i.hourElement)),i.amPM&&Je&&(rt===1?We+Ie===23:Math.abs(We-Ie)>rt)&&(i.amPM.textContent=i.l10n.amPM[Xr(i.amPM.textContent===i.l10n.amPM[0])]),me.value=Br(We)}}return j(),i}function so(c,l){for(var i=Array.prototype.slice.call(c).filter(function(p){return p instanceof HTMLElement}),_=[],j=0;j<i.length;j++){var S=i[j];try{if(S.getAttribute("data-fp-omit")!==null)continue;S._flatpickr!==void 0&&(S._flatpickr.destroy(),S._flatpickr=void 0),S._flatpickr=$p(S,l||{}),_.push(S._flatpickr)}catch(p){console.error(p)}}return _.length===1?_[0]:_}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(c){return so(this,c)},HTMLElement.prototype.flatpickr=function(c){return so([this],c)});var lr=function(c,l){return typeof c=="string"?so(window.document.querySelectorAll(c),l):c instanceof Node?so([c],l):so(c,l)};lr.defaultConfig={},lr.l10ns={en:wr({},ta),default:wr({},ta)},lr.localize=function(c){lr.l10ns.default=wr(wr({},lr.l10ns.default),c)},lr.setDefaults=function(c){lr.defaultConfig=wr(wr({},lr.defaultConfig),c)},lr.parseDate=Js({}),lr.formatDate=af({}),lr.compareDates=Yr,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(c){return so(this,c)}),Date.prototype.fp_incr=function(c){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof c=="string"?parseInt(c,10):c))},typeof window<"u"&&(window.flatpickr=lr);var Zs={exports:{}},Xs={exports:{}},en={},Kt={};Kt.__esModule=!0,Kt.extend=uf,Kt.indexOf=Xp,Kt.escapeExpression=em,Kt.isEmpty=tm,Kt.createFrame=rm,Kt.blockParams=nm,Kt.appendContextPath=im;var Jp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},Kp=/[&<>"'`=]/g,Qp=/[&<>"'`=]/;function Zp(c){return Jp[c]}function uf(c){for(var l=1;l<arguments.length;l++)for(var i in arguments[l])Object.prototype.hasOwnProperty.call(arguments[l],i)&&(c[i]=arguments[l][i]);return c}var eu=Object.prototype.toString;Kt.toString=eu;var tu=function(l){return typeof l=="function"};tu(/x/)&&(Kt.isFunction=tu=function(c){return typeof c=="function"&&eu.call(c)==="[object Function]"}),Kt.isFunction=tu;var lf=Array.isArray||function(c){return c&&typeof c=="object"?eu.call(c)==="[object Array]":!1};Kt.isArray=lf;function Xp(c,l){for(var i=0,_=c.length;i<_;i++)if(c[i]===l)return i;return-1}function em(c){if(typeof c!="string"){if(c&&c.toHTML)return c.toHTML();if(c==null)return"";if(!c)return c+"";c=""+c}return Qp.test(c)?c.replace(Kp,Zp):c}function tm(c){return!c&&c!==0?!0:!!(lf(c)&&c.length===0)}function rm(c){var l=uf({},c);return l._parent=c,l}function nm(c,l){return c.path=l,c}function im(c,l){return(c?c+".":"")+l}var ru={exports:{}};(function(c,l){l.__esModule=!0;var i=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function _(j,S){var p=S&&S.loc,C=void 0,o=void 0,h=void 0,m=void 0;p&&(C=p.start.line,o=p.end.line,h=p.start.column,m=p.end.column,j+=" - "+C+":"+h);for(var w=Error.prototype.constructor.call(this,j),y=0;y<i.length;y++)this[i[y]]=w[i[y]];Error.captureStackTrace&&Error.captureStackTrace(this,_);try{p&&(this.lineNumber=C,this.endLineNumber=o,Object.defineProperty?(Object.defineProperty(this,"column",{value:h,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:m,enumerable:!0})):(this.column=h,this.endColumn=m))}catch{}}_.prototype=new Error,l.default=_,c.exports=l.default})(ru,ru.exports);var cn=ru.exports,na={},nu={exports:{}};(function(c,l){l.__esModule=!0;var i=Kt;l.default=function(_){_.registerHelper("blockHelperMissing",function(j,S){var p=S.inverse,C=S.fn;if(j===!0)return C(this);if(j===!1||j==null)return p(this);if(i.isArray(j))return j.length>0?(S.ids&&(S.ids=[S.name]),_.helpers.each(j,S)):p(this);if(S.data&&S.ids){var o=i.createFrame(S.data);o.contextPath=i.appendContextPath(S.data.contextPath,S.name),S={data:o}}return C(j,S)})},c.exports=l.default})(nu,nu.exports);var om=nu.exports,iu={exports:{}};(function(c,l){l.__esModule=!0;function i(p){return p&&p.__esModule?p:{default:p}}var _=Kt,j=cn,S=i(j);l.default=function(p){p.registerHelper("each",function(C,o){if(!o)throw new S.default("Must pass iterator to #each");var h=o.fn,m=o.inverse,w=0,y="",x=void 0,k=void 0;o.data&&o.ids&&(k=_.appendContextPath(o.data.contextPath,o.ids[0])+"."),_.isFunction(C)&&(C=C.call(this)),o.data&&(x=_.createFrame(o.data));function E(M,B,W){x&&(x.key=M,x.index=B,x.first=B===0,x.last=!!W,k&&(x.contextPath=k+M)),y=y+h(C[M],{data:x,blockParams:_.blockParams([C[M],M],[k+M,null])})}if(C&&typeof C=="object")if(_.isArray(C))for(var T=C.length;w<T;w++)w in C&&E(w,w,w===C.length-1);else if(typeof Symbol=="function"&&C[Symbol.iterator]){for(var D=[],R=C[Symbol.iterator](),H=R.next();!H.done;H=R.next())D.push(H.value);C=D;for(var T=C.length;w<T;w++)E(w,w,w===C.length-1)}else(function(){var M=void 0;Object.keys(C).forEach(function(B){M!==void 0&&E(M,w-1),M=B,w++}),M!==void 0&&E(M,w-1,!0)})();return w===0&&(y=m(this)),y})},c.exports=l.default})(iu,iu.exports);var am=iu.exports,ou={exports:{}};(function(c,l){l.__esModule=!0;function i(S){return S&&S.__esModule?S:{default:S}}var _=cn,j=i(_);l.default=function(S){S.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new j.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},c.exports=l.default})(ou,ou.exports);var sm=ou.exports,au={exports:{}};(function(c,l){l.__esModule=!0;function i(p){return p&&p.__esModule?p:{default:p}}var _=Kt,j=cn,S=i(j);l.default=function(p){p.registerHelper("if",function(C,o){if(arguments.length!=2)throw new S.default("#if requires exactly one argument");return _.isFunction(C)&&(C=C.call(this)),!o.hash.includeZero&&!C||_.isEmpty(C)?o.inverse(this):o.fn(this)}),p.registerHelper("unless",function(C,o){if(arguments.length!=2)throw new S.default("#unless requires exactly one argument");return p.helpers.if.call(this,C,{fn:o.inverse,inverse:o.fn,hash:o.hash})})},c.exports=l.default})(au,au.exports);var um=au.exports,su={exports:{}};(function(c,l){l.__esModule=!0,l.default=function(i){i.registerHelper("log",function(){for(var _=[void 0],j=arguments[arguments.length-1],S=0;S<arguments.length-1;S++)_.push(arguments[S]);var p=1;j.hash.level!=null?p=j.hash.level:j.data&&j.data.level!=null&&(p=j.data.level),_[0]=p,i.log.apply(i,_)})},c.exports=l.default})(su,su.exports);var lm=su.exports,uu={exports:{}};(function(c,l){l.__esModule=!0,l.default=function(i){i.registerHelper("lookup",function(_,j,S){return _&&S.lookupProperty(_,j)})},c.exports=l.default})(uu,uu.exports);var cm=uu.exports,lu={exports:{}};(function(c,l){l.__esModule=!0;function i(p){return p&&p.__esModule?p:{default:p}}var _=Kt,j=cn,S=i(j);l.default=function(p){p.registerHelper("with",function(C,o){if(arguments.length!=2)throw new S.default("#with requires exactly one argument");_.isFunction(C)&&(C=C.call(this));var h=o.fn;if(_.isEmpty(C))return o.inverse(this);var m=o.data;return o.data&&o.ids&&(m=_.createFrame(o.data),m.contextPath=_.appendContextPath(o.data.contextPath,o.ids[0])),h(C,{data:m,blockParams:_.blockParams([C],[m&&m.contextPath])})})},c.exports=l.default})(lu,lu.exports);var fm=lu.exports;na.__esModule=!0,na.registerDefaultHelpers=Om,na.moveHelperToHooks=Em;function Ai(c){return c&&c.__esModule?c:{default:c}}var dm=om,hm=Ai(dm),pm=am,mm=Ai(pm),gm=sm,ym=Ai(gm),vm=um,bm=Ai(vm),wm=lm,_m=Ai(wm),km=cm,xm=Ai(km),Cm=fm,jm=Ai(Cm);function Om(c){hm.default(c),mm.default(c),ym.default(c),bm.default(c),_m.default(c),xm.default(c),jm.default(c)}function Em(c,l,i){c.helpers[l]&&(c.hooks[l]=c.helpers[l],i||delete c.helpers[l])}var cu={},fu={exports:{}};(function(c,l){l.__esModule=!0;var i=Kt;l.default=function(_){_.registerDecorator("inline",function(j,S,p,C){var o=j;return S.partials||(S.partials={},o=function(h,m){var w=p.partials;p.partials=i.extend({},w,S.partials);var y=j(h,m);return p.partials=w,y}),S.partials[C.args[0]]=C.fn,o})},c.exports=l.default})(fu,fu.exports);var Sm=fu.exports;cu.__esModule=!0,cu.registerDefaultDecorators=Lm;function Fm(c){return c&&c.__esModule?c:{default:c}}var Pm=Sm,Tm=Fm(Pm);function Lm(c){Tm.default(c)}var du={exports:{}};(function(c,l){l.__esModule=!0;var i=Kt,_={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(S){if(typeof S=="string"){var p=i.indexOf(_.methodMap,S.toLowerCase());p>=0?S=p:S=parseInt(S,10)}return S},log:function(S){if(S=_.lookupLevel(S),typeof console<"u"&&_.lookupLevel(_.level)<=S){var p=_.methodMap[S];console[p]||(p="log");for(var C=arguments.length,o=Array(C>1?C-1:0),h=1;h<C;h++)o[h-1]=arguments[h];console[p].apply(console,o)}}};l.default=_,c.exports=l.default})(du,du.exports);var cf=du.exports,uo={},hu={};hu.__esModule=!0,hu.createNewLookupObject=Dm;var Am=Kt;function Dm(){for(var c=arguments.length,l=Array(c),i=0;i<c;i++)l[i]=arguments[i];return Am.extend.apply(void 0,[Object.create(null)].concat(l))}uo.__esModule=!0,uo.createProtoAccessControl=Nm,uo.resultIsAllowed=Bm,uo.resetLoggedProperties=Vm;function Im(c){return c&&c.__esModule?c:{default:c}}var ff=hu,Mm=cf,Rm=Im(Mm),Ba=Object.create(null);function Nm(c){var l=Object.create(null);l.constructor=!1,l.__defineGetter__=!1,l.__defineSetter__=!1,l.__lookupGetter__=!1;var i=Object.create(null);return i.__proto__=!1,{properties:{whitelist:ff.createNewLookupObject(i,c.allowedProtoProperties),defaultValue:c.allowProtoPropertiesByDefault},methods:{whitelist:ff.createNewLookupObject(l,c.allowedProtoMethods),defaultValue:c.allowProtoMethodsByDefault}}}function Bm(c,l,i){return df(typeof c=="function"?l.methods:l.properties,i)}function df(c,l){return c.whitelist[l]!==void 0?c.whitelist[l]===!0:c.defaultValue!==void 0?c.defaultValue:(Hm(l),!1)}function Hm(c){Ba[c]!==!0&&(Ba[c]=!0,Rm.default.log("error",'Handlebars: Access has been denied to resolve the property "'+c+`" because it is not an "own property" of its parent.
45
+ You can add a runtime option to disable the check or this warning:
46
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function Vm(){Object.keys(Ba).forEach(function(c){delete Ba[c]})}en.__esModule=!0,en.HandlebarsEnvironment=gu;function hf(c){return c&&c.__esModule?c:{default:c}}var Di=Kt,qm=cn,pu=hf(qm),zm=na,Wm=cu,Um=cf,Ha=hf(Um),Gm=uo,Ym="4.7.8";en.VERSION=Ym;var $m=8;en.COMPILER_REVISION=$m;var Jm=7;en.LAST_COMPATIBLE_COMPILER_REVISION=Jm;var Km={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};en.REVISION_CHANGES=Km;var mu="[object Object]";function gu(c,l,i){this.helpers=c||{},this.partials=l||{},this.decorators=i||{},zm.registerDefaultHelpers(this),Wm.registerDefaultDecorators(this)}gu.prototype={constructor:gu,logger:Ha.default,log:Ha.default.log,registerHelper:function(l,i){if(Di.toString.call(l)===mu){if(i)throw new pu.default("Arg not supported with multiple helpers");Di.extend(this.helpers,l)}else this.helpers[l]=i},unregisterHelper:function(l){delete this.helpers[l]},registerPartial:function(l,i){if(Di.toString.call(l)===mu)Di.extend(this.partials,l);else{if(typeof i>"u")throw new pu.default('Attempting to register a partial called "'+l+'" as undefined');this.partials[l]=i}},unregisterPartial:function(l){delete this.partials[l]},registerDecorator:function(l,i){if(Di.toString.call(l)===mu){if(i)throw new pu.default("Arg not supported with multiple decorators");Di.extend(this.decorators,l)}else this.decorators[l]=i},unregisterDecorator:function(l){delete this.decorators[l]},resetLoggedPropertyAccesses:function(){Gm.resetLoggedProperties()}};var Qm=Ha.default.log;en.log=Qm,en.createFrame=Di.createFrame,en.logger=Ha.default;var yu={exports:{}};(function(c,l){l.__esModule=!0;function i(_){this.string=_}i.prototype.toString=i.prototype.toHTML=function(){return""+this.string},l.default=i,c.exports=l.default})(yu,yu.exports);var Zm=yu.exports,hi={},vu={};vu.__esModule=!0,vu.wrapHelper=Xm;function Xm(c,l){if(typeof c!="function")return c;var i=function(){var j=arguments[arguments.length-1];return arguments[arguments.length-1]=l(j),c.apply(this,arguments)};return i}hi.__esModule=!0,hi.checkRevision=og,hi.template=ag,hi.wrapProgram=Va,hi.resolvePartial=sg,hi.invokePartial=ug,hi.noop=gf;function eg(c){return c&&c.__esModule?c:{default:c}}function tg(c){if(c&&c.__esModule)return c;var l={};if(c!=null)for(var i in c)Object.prototype.hasOwnProperty.call(c,i)&&(l[i]=c[i]);return l.default=c,l}var rg=Kt,Wn=tg(rg),ng=cn,Un=eg(ng),Gn=en,pf=na,ig=vu,mf=uo;function og(c){var l=c&&c[0]||1,i=Gn.COMPILER_REVISION;if(!(l>=Gn.LAST_COMPATIBLE_COMPILER_REVISION&&l<=Gn.COMPILER_REVISION))if(l<Gn.LAST_COMPATIBLE_COMPILER_REVISION){var _=Gn.REVISION_CHANGES[i],j=Gn.REVISION_CHANGES[l];throw new Un.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+_+") or downgrade your runtime to an older version ("+j+").")}else throw new Un.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+c[1]+").")}function ag(c,l){if(!l)throw new Un.default("No environment passed to template");if(!c||!c.main)throw new Un.default("Unknown template object: "+typeof c);c.main.decorator=c.main_d,l.VM.checkRevision(c.compiler);var i=c.compiler&&c.compiler[0]===7;function _(p,C,o){o.hash&&(C=Wn.extend({},C,o.hash),o.ids&&(o.ids[0]=!0)),p=l.VM.resolvePartial.call(this,p,C,o);var h=Wn.extend({},o,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),m=l.VM.invokePartial.call(this,p,C,h);if(m==null&&l.compile&&(o.partials[o.name]=l.compile(p,c.compilerOptions,l),m=o.partials[o.name](C,h)),m!=null){if(o.indent){for(var w=m.split(`
47
+ `),y=0,x=w.length;y<x&&!(!w[y]&&y+1===x);y++)w[y]=o.indent+w[y];m=w.join(`
48
+ `)}return m}else throw new Un.default("The partial "+o.name+" could not be compiled when running in runtime-only mode")}var j={strict:function(C,o,h){if(!C||!(o in C))throw new Un.default('"'+o+'" not defined in '+C,{loc:h});return j.lookupProperty(C,o)},lookupProperty:function(C,o){var h=C[o];if(h==null||Object.prototype.hasOwnProperty.call(C,o)||mf.resultIsAllowed(h,j.protoAccessControl,o))return h},lookup:function(C,o){for(var h=C.length,m=0;m<h;m++){var w=C[m]&&j.lookupProperty(C[m],o);if(w!=null)return C[m][o]}},lambda:function(C,o){return typeof C=="function"?C.call(o):C},escapeExpression:Wn.escapeExpression,invokePartial:_,fn:function(C){var o=c[C];return o.decorator=c[C+"_d"],o},programs:[],program:function(C,o,h,m,w){var y=this.programs[C],x=this.fn(C);return o||w||m||h?y=Va(this,C,x,o,h,m,w):y||(y=this.programs[C]=Va(this,C,x)),y},data:function(C,o){for(;C&&o--;)C=C._parent;return C},mergeIfNeeded:function(C,o){var h=C||o;return C&&o&&C!==o&&(h=Wn.extend({},o,C)),h},nullContext:Object.seal({}),noop:l.VM.noop,compilerInfo:c.compiler};function S(p){var C=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],o=C.data;S._setup(C),!C.partial&&c.useData&&(o=lg(p,o));var h=void 0,m=c.useBlockParams?[]:void 0;c.useDepths&&(C.depths?h=p!=C.depths[0]?[p].concat(C.depths):C.depths:h=[p]);function w(y){return""+c.main(j,y,j.helpers,j.partials,o,m,h)}return w=yf(c.main,w,j,C.depths||[],o,m),w(p,C)}return S.isTop=!0,S._setup=function(p){if(p.partial)j.protoAccessControl=p.protoAccessControl,j.helpers=p.helpers,j.partials=p.partials,j.decorators=p.decorators,j.hooks=p.hooks;else{var C=Wn.extend({},l.helpers,p.helpers);cg(C,j),j.helpers=C,c.usePartial&&(j.partials=j.mergeIfNeeded(p.partials,l.partials)),(c.usePartial||c.useDecorators)&&(j.decorators=Wn.extend({},l.decorators,p.decorators)),j.hooks={},j.protoAccessControl=mf.createProtoAccessControl(p);var o=p.allowCallsToHelperMissing||i;pf.moveHelperToHooks(j,"helperMissing",o),pf.moveHelperToHooks(j,"blockHelperMissing",o)}},S._child=function(p,C,o,h){if(c.useBlockParams&&!o)throw new Un.default("must pass block params");if(c.useDepths&&!h)throw new Un.default("must pass parent depths");return Va(j,p,c[p],C,0,o,h)},S}function Va(c,l,i,_,j,S,p){function C(o){var h=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],m=p;return p&&o!=p[0]&&!(o===c.nullContext&&p[0]===null)&&(m=[o].concat(p)),i(c,o,c.helpers,c.partials,h.data||_,S&&[h.blockParams].concat(S),m)}return C=yf(i,C,c,p,_,S),C.program=l,C.depth=p?p.length:0,C.blockParams=j||0,C}function sg(c,l,i){return c?!c.call&&!i.name&&(i.name=c,c=i.partials[c]):i.name==="@partial-block"?c=i.data["partial-block"]:c=i.partials[i.name],c}function ug(c,l,i){var _=i.data&&i.data["partial-block"];i.partial=!0,i.ids&&(i.data.contextPath=i.ids[0]||i.data.contextPath);var j=void 0;if(i.fn&&i.fn!==gf&&function(){i.data=Gn.createFrame(i.data);var S=i.fn;j=i.data["partial-block"]=function(C){var o=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return o.data=Gn.createFrame(o.data),o.data["partial-block"]=_,S(C,o)},S.partials&&(i.partials=Wn.extend({},i.partials,S.partials))}(),c===void 0&&j&&(c=j),c===void 0)throw new Un.default("The partial "+i.name+" could not be found");if(c instanceof Function)return c(l,i)}function gf(){return""}function lg(c,l){return(!l||!("root"in l))&&(l=l?Gn.createFrame(l):{},l.root=c),l}function yf(c,l,i,_,j,S){if(c.decorator){var p={};l=c.decorator(l,p,i,_&&_[0],j,S,_),Wn.extend(l,p)}return l}function cg(c,l){Object.keys(c).forEach(function(i){var _=c[i];c[i]=fg(_,l)})}function fg(c,l){var i=l.lookupProperty;return ig.wrapHelper(c,function(_){return Wn.extend({lookupProperty:i},_)})}var bu={exports:{}};(function(c,l){l.__esModule=!0,l.default=function(i){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var _=globalThis.Handlebars;i.noConflict=function(){return globalThis.Handlebars===i&&(globalThis.Handlebars=_),i}},c.exports=l.default})(bu,bu.exports);var vf=bu.exports;(function(c,l){l.__esModule=!0;function i(R){return R&&R.__esModule?R:{default:R}}function _(R){if(R&&R.__esModule)return R;var H={};if(R!=null)for(var M in R)Object.prototype.hasOwnProperty.call(R,M)&&(H[M]=R[M]);return H.default=R,H}var j=en,S=_(j),p=Zm,C=i(p),o=cn,h=i(o),m=Kt,w=_(m),y=hi,x=_(y),k=vf,E=i(k);function T(){var R=new S.HandlebarsEnvironment;return w.extend(R,S),R.SafeString=C.default,R.Exception=h.default,R.Utils=w,R.escapeExpression=w.escapeExpression,R.VM=x,R.template=function(H){return x.template(H,R)},R}var D=T();D.create=T,E.default(D),D.default=D,l.default=D,c.exports=l.default})(Xs,Xs.exports);var dg=Xs.exports,wu={exports:{}};(function(c,l){l.__esModule=!0;var i={helpers:{helperExpression:function(j){return j.type==="SubExpression"||(j.type==="MustacheStatement"||j.type==="BlockStatement")&&!!(j.params&&j.params.length||j.hash)},scopedId:function(j){return/^\.|this\b/.test(j.original)},simpleId:function(j){return j.parts.length===1&&!i.helpers.scopedId(j)&&!j.depth}}};l.default=i,c.exports=l.default})(wu,wu.exports);var bf=wu.exports,ia={},_u={exports:{}};(function(c,l){l.__esModule=!0;var i=function(){var _={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(C,o,h,m,w,y,x){var k=y.length-1;switch(w){case 1:return y[k-1];case 2:this.$=m.prepareProgram(y[k]);break;case 3:this.$=y[k];break;case 4:this.$=y[k];break;case 5:this.$=y[k];break;case 6:this.$=y[k];break;case 7:this.$=y[k];break;case 8:this.$=y[k];break;case 9:this.$={type:"CommentStatement",value:m.stripComment(y[k]),strip:m.stripFlags(y[k],y[k]),loc:m.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:y[k],value:y[k],loc:m.locInfo(this._$)};break;case 11:this.$=m.prepareRawBlock(y[k-2],y[k-1],y[k],this._$);break;case 12:this.$={path:y[k-3],params:y[k-2],hash:y[k-1]};break;case 13:this.$=m.prepareBlock(y[k-3],y[k-2],y[k-1],y[k],!1,this._$);break;case 14:this.$=m.prepareBlock(y[k-3],y[k-2],y[k-1],y[k],!0,this._$);break;case 15:this.$={open:y[k-5],path:y[k-4],params:y[k-3],hash:y[k-2],blockParams:y[k-1],strip:m.stripFlags(y[k-5],y[k])};break;case 16:this.$={path:y[k-4],params:y[k-3],hash:y[k-2],blockParams:y[k-1],strip:m.stripFlags(y[k-5],y[k])};break;case 17:this.$={path:y[k-4],params:y[k-3],hash:y[k-2],blockParams:y[k-1],strip:m.stripFlags(y[k-5],y[k])};break;case 18:this.$={strip:m.stripFlags(y[k-1],y[k-1]),program:y[k]};break;case 19:var E=m.prepareBlock(y[k-2],y[k-1],y[k],y[k],!1,this._$),T=m.prepareProgram([E],y[k-1].loc);T.chained=!0,this.$={strip:y[k-2].strip,program:T,chain:!0};break;case 20:this.$=y[k];break;case 21:this.$={path:y[k-1],strip:m.stripFlags(y[k-2],y[k])};break;case 22:this.$=m.prepareMustache(y[k-3],y[k-2],y[k-1],y[k-4],m.stripFlags(y[k-4],y[k]),this._$);break;case 23:this.$=m.prepareMustache(y[k-3],y[k-2],y[k-1],y[k-4],m.stripFlags(y[k-4],y[k]),this._$);break;case 24:this.$={type:"PartialStatement",name:y[k-3],params:y[k-2],hash:y[k-1],indent:"",strip:m.stripFlags(y[k-4],y[k]),loc:m.locInfo(this._$)};break;case 25:this.$=m.preparePartialBlock(y[k-2],y[k-1],y[k],this._$);break;case 26:this.$={path:y[k-3],params:y[k-2],hash:y[k-1],strip:m.stripFlags(y[k-4],y[k])};break;case 27:this.$=y[k];break;case 28:this.$=y[k];break;case 29:this.$={type:"SubExpression",path:y[k-3],params:y[k-2],hash:y[k-1],loc:m.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:y[k],loc:m.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:m.id(y[k-2]),value:y[k],loc:m.locInfo(this._$)};break;case 32:this.$=m.id(y[k-1]);break;case 33:this.$=y[k];break;case 34:this.$=y[k];break;case 35:this.$={type:"StringLiteral",value:y[k],original:y[k],loc:m.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(y[k]),original:Number(y[k]),loc:m.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:y[k]==="true",original:y[k]==="true",loc:m.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:m.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:m.locInfo(this._$)};break;case 40:this.$=y[k];break;case 41:this.$=y[k];break;case 42:this.$=m.preparePath(!0,y[k],this._$);break;case 43:this.$=m.preparePath(!1,y[k],this._$);break;case 44:y[k-2].push({part:m.id(y[k]),original:y[k],separator:y[k-1]}),this.$=y[k-2];break;case 45:this.$=[{part:m.id(y[k]),original:y[k]}];break;case 46:this.$=[];break;case 47:y[k-1].push(y[k]);break;case 48:this.$=[];break;case 49:y[k-1].push(y[k]);break;case 50:this.$=[];break;case 51:y[k-1].push(y[k]);break;case 58:this.$=[];break;case 59:y[k-1].push(y[k]);break;case 64:this.$=[];break;case 65:y[k-1].push(y[k]);break;case 70:this.$=[];break;case 71:y[k-1].push(y[k]);break;case 78:this.$=[];break;case 79:y[k-1].push(y[k]);break;case 82:this.$=[];break;case 83:y[k-1].push(y[k]);break;case 86:this.$=[];break;case 87:y[k-1].push(y[k]);break;case 90:this.$=[];break;case 91:y[k-1].push(y[k]);break;case 94:this.$=[];break;case 95:y[k-1].push(y[k]);break;case 98:this.$=[y[k]];break;case 99:y[k-1].push(y[k]);break;case 100:this.$=[y[k]];break;case 101:y[k-1].push(y[k]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(C,o){throw new Error(C)},parse:function(C){var o=this,h=[0],m=[null],w=[],y=this.table,x="",k=0,E=0;this.lexer.setInput(C),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var T=this.lexer.yylloc;w.push(T);var D=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function R(){var oe;return oe=o.lexer.lex()||1,typeof oe!="number"&&(oe=o.symbols_[oe]||oe),oe}for(var H,M,B,W,v={},Y,G,X,ee;;){if(M=h[h.length-1],this.defaultActions[M]?B=this.defaultActions[M]:((H===null||typeof H>"u")&&(H=R()),B=y[M]&&y[M][H]),typeof B>"u"||!B.length||!B[0]){var de="";{ee=[];for(Y in y[M])this.terminals_[Y]&&Y>2&&ee.push("'"+this.terminals_[Y]+"'");this.lexer.showPosition?de="Parse error on line "+(k+1)+`:
49
+ `+this.lexer.showPosition()+`
50
+ Expecting `+ee.join(", ")+", got '"+(this.terminals_[H]||H)+"'":de="Parse error on line "+(k+1)+": Unexpected "+(H==1?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(de,{text:this.lexer.match,token:this.terminals_[H]||H,line:this.lexer.yylineno,loc:T,expected:ee})}}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+H);switch(B[0]){case 1:h.push(H),m.push(this.lexer.yytext),w.push(this.lexer.yylloc),h.push(B[1]),H=null,E=this.lexer.yyleng,x=this.lexer.yytext,k=this.lexer.yylineno,T=this.lexer.yylloc;break;case 2:if(G=this.productions_[B[1]][1],v.$=m[m.length-G],v._$={first_line:w[w.length-(G||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(G||1)].first_column,last_column:w[w.length-1].last_column},D&&(v._$.range=[w[w.length-(G||1)].range[0],w[w.length-1].range[1]]),W=this.performAction.call(v,x,E,k,this.yy,B[1],m,w),typeof W<"u")return W;G&&(h=h.slice(0,-1*G*2),m=m.slice(0,-1*G),w=w.slice(0,-1*G)),h.push(this.productions_[B[1]][0]),m.push(v.$),w.push(v._$),X=y[h[h.length-2]][h[h.length-1]],h.push(X);break;case 3:return!0}}return!0}},j=function(){var p={EOF:1,parseError:function(o,h){if(this.yy.parser)this.yy.parser.parseError(o,h);else throw new Error(o)},setInput:function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var h=o.length,m=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h-1),this.offset-=h;var w=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===w.length?this.yylloc.first_column:0)+w[w.length-m.length].length-m[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-h]),this},more:function(){return this._more=!0,this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
51
+ `+h+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,h,m,w,y;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),k=0;k<x.length&&(m=this._input.match(this.rules[x[k]]),!(m&&(!h||m[0].length>h[0].length)&&(h=m,w=k,!this.options.flex)));k++);return h?(y=h[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(h[0].length),this.matched+=h[0],o=this.performAction.call(this,this.yy,this,x[w],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
52
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return typeof o<"u"?o:this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(o){this.begin(o)}};return p.options={},p.performAction=function(o,h,m,w){function y(x,k){return h.yytext=h.yytext.substring(x,h.yyleng-k+x)}switch(m){case 0:if(h.yytext.slice(-2)==="\\\\"?(y(0,1),this.begin("mu")):h.yytext.slice(-1)==="\\"?(y(0,1),this.begin("emu")):this.begin("mu"),h.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(y(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(h.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return h.yytext=y(1,2).replace(/\\"/g,'"'),80;case 32:return h.yytext=y(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return h.yytext=h.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},p.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],p.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},p}();_.lexer=j;function S(){this.yy={}}return S.prototype=_,_.Parser=S,new S}();l.default=i,c.exports=l.default})(_u,_u.exports);var hg=_u.exports,ku={exports:{}},xu={exports:{}};(function(c,l){l.__esModule=!0;function i(h){return h&&h.__esModule?h:{default:h}}var _=cn,j=i(_);function S(){this.parents=[]}S.prototype={constructor:S,mutating:!1,acceptKey:function(m,w){var y=this.accept(m[w]);if(this.mutating){if(y&&!S.prototype[y.type])throw new j.default('Unexpected node type "'+y.type+'" found when accepting '+w+" on "+m.type);m[w]=y}},acceptRequired:function(m,w){if(this.acceptKey(m,w),!m[w])throw new j.default(m.type+" requires "+w)},acceptArray:function(m){for(var w=0,y=m.length;w<y;w++)this.acceptKey(m,w),m[w]||(m.splice(w,1),w--,y--)},accept:function(m){if(m){if(!this[m.type])throw new j.default("Unknown type: "+m.type,m);this.current&&this.parents.unshift(this.current),this.current=m;var w=this[m.type](m);if(this.current=this.parents.shift(),!this.mutating||w)return w;if(w!==!1)return m}},Program:function(m){this.acceptArray(m.body)},MustacheStatement:p,Decorator:p,BlockStatement:C,DecoratorBlock:C,PartialStatement:o,PartialBlockStatement:function(m){o.call(this,m),this.acceptKey(m,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:p,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(m){this.acceptArray(m.pairs)},HashPair:function(m){this.acceptRequired(m,"value")}};function p(h){this.acceptRequired(h,"path"),this.acceptArray(h.params),this.acceptKey(h,"hash")}function C(h){p.call(this,h),this.acceptKey(h,"program"),this.acceptKey(h,"inverse")}function o(h){this.acceptRequired(h,"name"),this.acceptArray(h.params),this.acceptKey(h,"hash")}l.default=S,c.exports=l.default})(xu,xu.exports);var wf=xu.exports;(function(c,l){l.__esModule=!0;function i(m){return m&&m.__esModule?m:{default:m}}var _=wf,j=i(_);function S(){var m=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=m}S.prototype=new j.default,S.prototype.Program=function(m){var w=!this.options.ignoreStandalone,y=!this.isRootSeen;this.isRootSeen=!0;for(var x=m.body,k=0,E=x.length;k<E;k++){var T=x[k],D=this.accept(T);if(D){var R=p(x,k,y),H=C(x,k,y),M=D.openStandalone&&R,B=D.closeStandalone&&H,W=D.inlineStandalone&&R&&H;D.close&&o(x,k,!0),D.open&&h(x,k,!0),w&&W&&(o(x,k),h(x,k)&&T.type==="PartialStatement"&&(T.indent=/([ \t]+$)/.exec(x[k-1].original)[1])),w&&M&&(o((T.program||T.inverse).body),h(x,k)),w&&B&&(o(x,k),h((T.inverse||T.program).body))}}return m},S.prototype.BlockStatement=S.prototype.DecoratorBlock=S.prototype.PartialBlockStatement=function(m){this.accept(m.program),this.accept(m.inverse);var w=m.program||m.inverse,y=m.program&&m.inverse,x=y,k=y;if(y&&y.chained)for(x=y.body[0].program;k.chained;)k=k.body[k.body.length-1].program;var E={open:m.openStrip.open,close:m.closeStrip.close,openStandalone:C(w.body),closeStandalone:p((x||w).body)};if(m.openStrip.close&&o(w.body,null,!0),y){var T=m.inverseStrip;T.open&&h(w.body,null,!0),T.close&&o(x.body,null,!0),m.closeStrip.open&&h(k.body,null,!0),!this.options.ignoreStandalone&&p(w.body)&&C(x.body)&&(h(w.body),o(x.body))}else m.closeStrip.open&&h(w.body,null,!0);return E},S.prototype.Decorator=S.prototype.MustacheStatement=function(m){return m.strip},S.prototype.PartialStatement=S.prototype.CommentStatement=function(m){var w=m.strip||{};return{inlineStandalone:!0,open:w.open,close:w.close}};function p(m,w,y){w===void 0&&(w=m.length);var x=m[w-1],k=m[w-2];if(!x)return y;if(x.type==="ContentStatement")return(k||!y?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(x.original)}function C(m,w,y){w===void 0&&(w=-1);var x=m[w+1],k=m[w+2];if(!x)return y;if(x.type==="ContentStatement")return(k||!y?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(x.original)}function o(m,w,y){var x=m[w==null?0:w+1];if(!(!x||x.type!=="ContentStatement"||!y&&x.rightStripped)){var k=x.value;x.value=x.value.replace(y?/^\s+/:/^[ \t]*\r?\n?/,""),x.rightStripped=x.value!==k}}function h(m,w,y){var x=m[w==null?m.length-1:w-1];if(!(!x||x.type!=="ContentStatement"||!y&&x.leftStripped)){var k=x.value;return x.value=x.value.replace(y?/\s+$/:/[ \t]+$/,""),x.leftStripped=x.value!==k,x.leftStripped}}l.default=S,c.exports=l.default})(ku,ku.exports);var pg=ku.exports,tn={};tn.__esModule=!0,tn.SourceLocation=yg,tn.id=vg,tn.stripFlags=bg,tn.stripComment=wg,tn.preparePath=_g,tn.prepareMustache=kg,tn.prepareRawBlock=xg,tn.prepareBlock=Cg,tn.prepareProgram=jg,tn.preparePartialBlock=Og;function mg(c){return c&&c.__esModule?c:{default:c}}var gg=cn,Cu=mg(gg);function ju(c,l){if(l=l.path?l.path.original:l,c.path.original!==l){var i={loc:c.path.loc};throw new Cu.default(c.path.original+" doesn't match "+l,i)}}function yg(c,l){this.source=c,this.start={line:l.first_line,column:l.first_column},this.end={line:l.last_line,column:l.last_column}}function vg(c){return/^\[.*\]$/.test(c)?c.substring(1,c.length-1):c}function bg(c,l){return{open:c.charAt(2)==="~",close:l.charAt(l.length-3)==="~"}}function wg(c){return c.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function _g(c,l,i){i=this.locInfo(i);for(var _=c?"@":"",j=[],S=0,p=0,C=l.length;p<C;p++){var o=l[p].part,h=l[p].original!==o;if(_+=(l[p].separator||"")+o,!h&&(o===".."||o==="."||o==="this")){if(j.length>0)throw new Cu.default("Invalid path: "+_,{loc:i});o===".."&&S++}else j.push(o)}return{type:"PathExpression",data:c,depth:S,parts:j,original:_,loc:i}}function kg(c,l,i,_,j,S){var p=_.charAt(3)||_.charAt(2),C=p!=="{"&&p!=="&",o=/\*/.test(_);return{type:o?"Decorator":"MustacheStatement",path:c,params:l,hash:i,escaped:C,strip:j,loc:this.locInfo(S)}}function xg(c,l,i,_){ju(c,i),_=this.locInfo(_);var j={type:"Program",body:l,strip:{},loc:_};return{type:"BlockStatement",path:c.path,params:c.params,hash:c.hash,program:j,openStrip:{},inverseStrip:{},closeStrip:{},loc:_}}function Cg(c,l,i,_,j,S){_&&_.path&&ju(c,_);var p=/\*/.test(c.open);l.blockParams=c.blockParams;var C=void 0,o=void 0;if(i){if(p)throw new Cu.default("Unexpected inverse block on decorator",i);i.chain&&(i.program.body[0].closeStrip=_.strip),o=i.strip,C=i.program}return j&&(j=C,C=l,l=j),{type:p?"DecoratorBlock":"BlockStatement",path:c.path,params:c.params,hash:c.hash,program:l,inverse:C,openStrip:c.strip,inverseStrip:o,closeStrip:_&&_.strip,loc:this.locInfo(S)}}function jg(c,l){if(!l&&c.length){var i=c[0].loc,_=c[c.length-1].loc;i&&_&&(l={source:i.source,start:{line:i.start.line,column:i.start.column},end:{line:_.end.line,column:_.end.column}})}return{type:"Program",body:c,strip:{},loc:l}}function Og(c,l,i,_){return ju(c,i),{type:"PartialBlockStatement",name:c.path,params:c.params,hash:c.hash,program:l,openStrip:c.strip,closeStrip:i&&i.strip,loc:this.locInfo(_)}}ia.__esModule=!0,ia.parseWithoutProcessing=kf,ia.parse=Dg;function Eg(c){if(c&&c.__esModule)return c;var l={};if(c!=null)for(var i in c)Object.prototype.hasOwnProperty.call(c,i)&&(l[i]=c[i]);return l.default=c,l}function _f(c){return c&&c.__esModule?c:{default:c}}var Sg=hg,Ou=_f(Sg),Fg=pg,Pg=_f(Fg),Tg=tn,Lg=Eg(Tg),Ag=Kt;ia.parser=Ou.default;var qa={};Ag.extend(qa,Lg);function kf(c,l){if(c.type==="Program")return c;Ou.default.yy=qa,qa.locInfo=function(_){return new qa.SourceLocation(l&&l.srcName,_)};var i=Ou.default.parse(c);return i}function Dg(c,l){var i=kf(c,l),_=new Pg.default(l);return _.accept(i)}var oa={};oa.__esModule=!0,oa.Compiler=Eu,oa.precompile=Ng,oa.compile=Bg;function xf(c){return c&&c.__esModule?c:{default:c}}var Ig=cn,aa=xf(Ig),sa=Kt,Mg=bf,ua=xf(Mg),Rg=[].slice;function Eu(){}Eu.prototype={compiler:Eu,equals:function(l){var i=this.opcodes.length;if(l.opcodes.length!==i)return!1;for(var _=0;_<i;_++){var j=this.opcodes[_],S=l.opcodes[_];if(j.opcode!==S.opcode||!Cf(j.args,S.args))return!1}i=this.children.length;for(var _=0;_<i;_++)if(!this.children[_].equals(l.children[_]))return!1;return!0},guid:0,compile:function(l,i){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=i,this.stringParams=i.stringParams,this.trackIds=i.trackIds,i.blockParams=i.blockParams||[],i.knownHelpers=sa.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},i.knownHelpers),this.accept(l)},compileProgram:function(l){var i=new this.compiler,_=i.compile(l,this.options),j=this.guid++;return this.usePartial=this.usePartial||_.usePartial,this.children[j]=_,this.useDepths=this.useDepths||_.useDepths,j},accept:function(l){if(!this[l.type])throw new aa.default("Unknown type: "+l.type,l);this.sourceNode.unshift(l);var i=this[l.type](l);return this.sourceNode.shift(),i},Program:function(l){this.options.blockParams.unshift(l.blockParams);for(var i=l.body,_=i.length,j=0;j<_;j++)this.accept(i[j]);return this.options.blockParams.shift(),this.isSimple=_===1,this.blockParams=l.blockParams?l.blockParams.length:0,this},BlockStatement:function(l){jf(l);var i=l.program,_=l.inverse;i=i&&this.compileProgram(i),_=_&&this.compileProgram(_);var j=this.classifySexpr(l);j==="helper"?this.helperSexpr(l,i,_):j==="simple"?(this.simpleSexpr(l),this.opcode("pushProgram",i),this.opcode("pushProgram",_),this.opcode("emptyHash"),this.opcode("blockValue",l.path.original)):(this.ambiguousSexpr(l,i,_),this.opcode("pushProgram",i),this.opcode("pushProgram",_),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(l){var i=l.program&&this.compileProgram(l.program),_=this.setupFullMustacheParams(l,i,void 0),j=l.path;this.useDecorators=!0,this.opcode("registerDecorator",_.length,j.original)},PartialStatement:function(l){this.usePartial=!0;var i=l.program;i&&(i=this.compileProgram(l.program));var _=l.params;if(_.length>1)throw new aa.default("Unsupported number of partial arguments: "+_.length,l);_.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):_.push({type:"PathExpression",parts:[],depth:0}));var j=l.name.original,S=l.name.type==="SubExpression";S&&this.accept(l.name),this.setupFullMustacheParams(l,i,void 0,!0);var p=l.indent||"";this.options.preventIndent&&p&&(this.opcode("appendContent",p),p=""),this.opcode("invokePartial",S,j,p),this.opcode("append")},PartialBlockStatement:function(l){this.PartialStatement(l)},MustacheStatement:function(l){this.SubExpression(l),l.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(l){this.DecoratorBlock(l)},ContentStatement:function(l){l.value&&this.opcode("appendContent",l.value)},CommentStatement:function(){},SubExpression:function(l){jf(l);var i=this.classifySexpr(l);i==="simple"?this.simpleSexpr(l):i==="helper"?this.helperSexpr(l):this.ambiguousSexpr(l)},ambiguousSexpr:function(l,i,_){var j=l.path,S=j.parts[0],p=i!=null||_!=null;this.opcode("getContext",j.depth),this.opcode("pushProgram",i),this.opcode("pushProgram",_),j.strict=!0,this.accept(j),this.opcode("invokeAmbiguous",S,p)},simpleSexpr:function(l){var i=l.path;i.strict=!0,this.accept(i),this.opcode("resolvePossibleLambda")},helperSexpr:function(l,i,_){var j=this.setupFullMustacheParams(l,i,_),S=l.path,p=S.parts[0];if(this.options.knownHelpers[p])this.opcode("invokeKnownHelper",j.length,p);else{if(this.options.knownHelpersOnly)throw new aa.default("You specified knownHelpersOnly, but used the unknown helper "+p,l);S.strict=!0,S.falsy=!0,this.accept(S),this.opcode("invokeHelper",j.length,S.original,ua.default.helpers.simpleId(S))}},PathExpression:function(l){this.addDepth(l.depth),this.opcode("getContext",l.depth);var i=l.parts[0],_=ua.default.helpers.scopedId(l),j=!l.depth&&!_&&this.blockParamIndex(i);j?this.opcode("lookupBlockParam",j,l.parts):i?l.data?(this.options.data=!0,this.opcode("lookupData",l.depth,l.parts,l.strict)):this.opcode("lookupOnContext",l.parts,l.falsy,l.strict,_):this.opcode("pushContext")},StringLiteral:function(l){this.opcode("pushString",l.value)},NumberLiteral:function(l){this.opcode("pushLiteral",l.value)},BooleanLiteral:function(l){this.opcode("pushLiteral",l.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(l){var i=l.pairs,_=0,j=i.length;for(this.opcode("pushHash");_<j;_++)this.pushParam(i[_].value);for(;_--;)this.opcode("assignToHash",i[_].key);this.opcode("popHash")},opcode:function(l){this.opcodes.push({opcode:l,args:Rg.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(l){l&&(this.useDepths=!0)},classifySexpr:function(l){var i=ua.default.helpers.simpleId(l.path),_=i&&!!this.blockParamIndex(l.path.parts[0]),j=!_&&ua.default.helpers.helperExpression(l),S=!_&&(j||i);if(S&&!j){var p=l.path.parts[0],C=this.options;C.knownHelpers[p]?j=!0:C.knownHelpersOnly&&(S=!1)}return j?"helper":S?"ambiguous":"simple"},pushParams:function(l){for(var i=0,_=l.length;i<_;i++)this.pushParam(l[i])},pushParam:function(l){var i=l.value!=null?l.value:l.original||"";if(this.stringParams)i.replace&&(i=i.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),l.depth&&this.addDepth(l.depth),this.opcode("getContext",l.depth||0),this.opcode("pushStringParam",i,l.type),l.type==="SubExpression"&&this.accept(l);else{if(this.trackIds){var _=void 0;if(l.parts&&!ua.default.helpers.scopedId(l)&&!l.depth&&(_=this.blockParamIndex(l.parts[0])),_){var j=l.parts.slice(1).join(".");this.opcode("pushId","BlockParam",_,j)}else i=l.original||i,i.replace&&(i=i.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",l.type,i)}this.accept(l)}},setupFullMustacheParams:function(l,i,_,j){var S=l.params;return this.pushParams(S),this.opcode("pushProgram",i),this.opcode("pushProgram",_),l.hash?this.accept(l.hash):this.opcode("emptyHash",j),S},blockParamIndex:function(l){for(var i=0,_=this.options.blockParams.length;i<_;i++){var j=this.options.blockParams[i],S=j&&sa.indexOf(j,l);if(j&&S>=0)return[i,S]}}};function Ng(c,l,i){if(c==null||typeof c!="string"&&c.type!=="Program")throw new aa.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+c);l=l||{},"data"in l||(l.data=!0),l.compat&&(l.useDepths=!0);var _=i.parse(c,l),j=new i.Compiler().compile(_,l);return new i.JavaScriptCompiler().compile(j,l)}function Bg(c,l,i){if(l===void 0&&(l={}),c==null||typeof c!="string"&&c.type!=="Program")throw new aa.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+c);l=sa.extend({},l),"data"in l||(l.data=!0),l.compat&&(l.useDepths=!0);var _=void 0;function j(){var p=i.parse(c,l),C=new i.Compiler().compile(p,l),o=new i.JavaScriptCompiler().compile(C,l,void 0,!0);return i.template(o)}function S(p,C){return _||(_=j()),_.call(this,p,C)}return S._setup=function(p){return _||(_=j()),_._setup(p)},S._child=function(p,C,o,h){return _||(_=j()),_._child(p,C,o,h)},S}function Cf(c,l){if(c===l)return!0;if(sa.isArray(c)&&sa.isArray(l)&&c.length===l.length){for(var i=0;i<c.length;i++)if(!Cf(c[i],l[i]))return!1;return!0}}function jf(c){if(!c.path.parts){var l=c.path;c.path={type:"PathExpression",data:!1,depth:0,parts:[l.original+""],original:l.original+"",loc:l.loc}}}var Su={exports:{}},Fu={exports:{}},la={},Pu={},za={},Wa={},Of;function Hg(){if(Of)return Wa;Of=1;var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Wa.encode=function(l){if(0<=l&&l<c.length)return c[l];throw new TypeError("Must be between 0 and 63: "+l)},Wa.decode=function(l){var i=65,_=90,j=97,S=122,p=48,C=57,o=43,h=47,m=26,w=52;return i<=l&&l<=_?l-i:j<=l&&l<=S?l-j+m:p<=l&&l<=C?l-p+w:l==o?62:l==h?63:-1},Wa}var Ef;function Sf(){if(Ef)return za;Ef=1;var c=Hg(),l=5,i=1<<l,_=i-1,j=i;function S(C){return C<0?(-C<<1)+1:(C<<1)+0}function p(C){var o=(C&1)===1,h=C>>1;return o?-h:h}return za.encode=function(o){var h="",m,w=S(o);do m=w&_,w>>>=l,w>0&&(m|=j),h+=c.encode(m);while(w>0);return h},za.decode=function(o,h,m){var w=o.length,y=0,x=0,k,E;do{if(h>=w)throw new Error("Expected more digits in base 64 VLQ value.");if(E=c.decode(o.charCodeAt(h++)),E===-1)throw new Error("Invalid base64 digit: "+o.charAt(h-1));k=!!(E&j),E&=_,y=y+(E<<x),x+=l}while(k);m.value=p(y),m.rest=h},za}var Tu={},Ff;function ca(){return Ff||(Ff=1,function(c){function l(M,B,W){if(B in M)return M[B];if(arguments.length===3)return W;throw new Error('"'+B+'" is a required argument.')}c.getArg=l;var i=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,_=/^data:.+\,.+$/;function j(M){var B=M.match(i);return B?{scheme:B[1],auth:B[2],host:B[3],port:B[4],path:B[5]}:null}c.urlParse=j;function S(M){var B="";return M.scheme&&(B+=M.scheme+":"),B+="//",M.auth&&(B+=M.auth+"@"),M.host&&(B+=M.host),M.port&&(B+=":"+M.port),M.path&&(B+=M.path),B}c.urlGenerate=S;function p(M){var B=M,W=j(M);if(W){if(!W.path)return M;B=W.path}for(var v=c.isAbsolute(B),Y=B.split(/\/+/),G,X=0,ee=Y.length-1;ee>=0;ee--)G=Y[ee],G==="."?Y.splice(ee,1):G===".."?X++:X>0&&(G===""?(Y.splice(ee+1,X),X=0):(Y.splice(ee,2),X--));return B=Y.join("/"),B===""&&(B=v?"/":"."),W?(W.path=B,S(W)):B}c.normalize=p;function C(M,B){M===""&&(M="."),B===""&&(B=".");var W=j(B),v=j(M);if(v&&(M=v.path||"/"),W&&!W.scheme)return v&&(W.scheme=v.scheme),S(W);if(W||B.match(_))return B;if(v&&!v.host&&!v.path)return v.host=B,S(v);var Y=B.charAt(0)==="/"?B:p(M.replace(/\/+$/,"")+"/"+B);return v?(v.path=Y,S(v)):Y}c.join=C,c.isAbsolute=function(M){return M.charAt(0)==="/"||i.test(M)};function o(M,B){M===""&&(M="."),M=M.replace(/\/$/,"");for(var W=0;B.indexOf(M+"/")!==0;){var v=M.lastIndexOf("/");if(v<0||(M=M.slice(0,v),M.match(/^([^\/]+:\/)?\/*$/)))return B;++W}return Array(W+1).join("../")+B.substr(M.length+1)}c.relative=o;var h=function(){var M=Object.create(null);return!("__proto__"in M)}();function m(M){return M}function w(M){return x(M)?"$"+M:M}c.toSetString=h?m:w;function y(M){return x(M)?M.slice(1):M}c.fromSetString=h?m:y;function x(M){if(!M)return!1;var B=M.length;if(B<9||M.charCodeAt(B-1)!==95||M.charCodeAt(B-2)!==95||M.charCodeAt(B-3)!==111||M.charCodeAt(B-4)!==116||M.charCodeAt(B-5)!==111||M.charCodeAt(B-6)!==114||M.charCodeAt(B-7)!==112||M.charCodeAt(B-8)!==95||M.charCodeAt(B-9)!==95)return!1;for(var W=B-10;W>=0;W--)if(M.charCodeAt(W)!==36)return!1;return!0}function k(M,B,W){var v=T(M.source,B.source);return v!==0||(v=M.originalLine-B.originalLine,v!==0)||(v=M.originalColumn-B.originalColumn,v!==0||W)||(v=M.generatedColumn-B.generatedColumn,v!==0)||(v=M.generatedLine-B.generatedLine,v!==0)?v:T(M.name,B.name)}c.compareByOriginalPositions=k;function E(M,B,W){var v=M.generatedLine-B.generatedLine;return v!==0||(v=M.generatedColumn-B.generatedColumn,v!==0||W)||(v=T(M.source,B.source),v!==0)||(v=M.originalLine-B.originalLine,v!==0)||(v=M.originalColumn-B.originalColumn,v!==0)?v:T(M.name,B.name)}c.compareByGeneratedPositionsDeflated=E;function T(M,B){return M===B?0:M===null?1:B===null?-1:M>B?1:-1}function D(M,B){var W=M.generatedLine-B.generatedLine;return W!==0||(W=M.generatedColumn-B.generatedColumn,W!==0)||(W=T(M.source,B.source),W!==0)||(W=M.originalLine-B.originalLine,W!==0)||(W=M.originalColumn-B.originalColumn,W!==0)?W:T(M.name,B.name)}c.compareByGeneratedPositionsInflated=D;function R(M){return JSON.parse(M.replace(/^\)]}'[^\n]*\n/,""))}c.parseSourceMapInput=R;function H(M,B,W){if(B=B||"",M&&(M[M.length-1]!=="/"&&B[0]!=="/"&&(M+="/"),B=M+B),W){var v=j(W);if(!v)throw new Error("sourceMapURL could not be parsed");if(v.path){var Y=v.path.lastIndexOf("/");Y>=0&&(v.path=v.path.substring(0,Y+1))}B=C(S(v),B)}return p(B)}c.computeSourceURL=H}(Tu)),Tu}var Lu={},Pf;function Tf(){if(Pf)return Lu;Pf=1;var c=ca(),l=Object.prototype.hasOwnProperty,i=typeof Map<"u";function _(){this._array=[],this._set=i?new Map:Object.create(null)}return _.fromArray=function(S,p){for(var C=new _,o=0,h=S.length;o<h;o++)C.add(S[o],p);return C},_.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},_.prototype.add=function(S,p){var C=i?S:c.toSetString(S),o=i?this.has(S):l.call(this._set,C),h=this._array.length;(!o||p)&&this._array.push(S),o||(i?this._set.set(S,h):this._set[C]=h)},_.prototype.has=function(S){if(i)return this._set.has(S);var p=c.toSetString(S);return l.call(this._set,p)},_.prototype.indexOf=function(S){if(i){var p=this._set.get(S);if(p>=0)return p}else{var C=c.toSetString(S);if(l.call(this._set,C))return this._set[C]}throw new Error('"'+S+'" is not in the set.')},_.prototype.at=function(S){if(S>=0&&S<this._array.length)return this._array[S];throw new Error("No element indexed by "+S)},_.prototype.toArray=function(){return this._array.slice()},Lu.ArraySet=_,Lu}var Au={},Lf;function Vg(){if(Lf)return Au;Lf=1;var c=ca();function l(_,j){var S=_.generatedLine,p=j.generatedLine,C=_.generatedColumn,o=j.generatedColumn;return p>S||p==S&&o>=C||c.compareByGeneratedPositionsInflated(_,j)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return i.prototype.unsortedForEach=function(j,S){this._array.forEach(j,S)},i.prototype.add=function(j){l(this._last,j)?(this._last=j,this._array.push(j)):(this._sorted=!1,this._array.push(j))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(c.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Au.MappingList=i,Au}var Af;function Df(){if(Af)return Pu;Af=1;var c=Sf(),l=ca(),i=Tf().ArraySet,_=Vg().MappingList;function j(S){S||(S={}),this._file=l.getArg(S,"file",null),this._sourceRoot=l.getArg(S,"sourceRoot",null),this._skipValidation=l.getArg(S,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new _,this._sourcesContents=null}return j.prototype._version=3,j.fromSourceMap=function(p){var C=p.sourceRoot,o=new j({file:p.file,sourceRoot:C});return p.eachMapping(function(h){var m={generated:{line:h.generatedLine,column:h.generatedColumn}};h.source!=null&&(m.source=h.source,C!=null&&(m.source=l.relative(C,m.source)),m.original={line:h.originalLine,column:h.originalColumn},h.name!=null&&(m.name=h.name)),o.addMapping(m)}),p.sources.forEach(function(h){var m=h;C!==null&&(m=l.relative(C,h)),o._sources.has(m)||o._sources.add(m);var w=p.sourceContentFor(h);w!=null&&o.setSourceContent(h,w)}),o},j.prototype.addMapping=function(p){var C=l.getArg(p,"generated"),o=l.getArg(p,"original",null),h=l.getArg(p,"source",null),m=l.getArg(p,"name",null);this._skipValidation||this._validateMapping(C,o,h,m),h!=null&&(h=String(h),this._sources.has(h)||this._sources.add(h)),m!=null&&(m=String(m),this._names.has(m)||this._names.add(m)),this._mappings.add({generatedLine:C.line,generatedColumn:C.column,originalLine:o!=null&&o.line,originalColumn:o!=null&&o.column,source:h,name:m})},j.prototype.setSourceContent=function(p,C){var o=p;this._sourceRoot!=null&&(o=l.relative(this._sourceRoot,o)),C!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[l.toSetString(o)]=C):this._sourcesContents&&(delete this._sourcesContents[l.toSetString(o)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},j.prototype.applySourceMap=function(p,C,o){var h=C;if(C==null){if(p.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);h=p.file}var m=this._sourceRoot;m!=null&&(h=l.relative(m,h));var w=new i,y=new i;this._mappings.unsortedForEach(function(x){if(x.source===h&&x.originalLine!=null){var k=p.originalPositionFor({line:x.originalLine,column:x.originalColumn});k.source!=null&&(x.source=k.source,o!=null&&(x.source=l.join(o,x.source)),m!=null&&(x.source=l.relative(m,x.source)),x.originalLine=k.line,x.originalColumn=k.column,k.name!=null&&(x.name=k.name))}var E=x.source;E!=null&&!w.has(E)&&w.add(E);var T=x.name;T!=null&&!y.has(T)&&y.add(T)},this),this._sources=w,this._names=y,p.sources.forEach(function(x){var k=p.sourceContentFor(x);k!=null&&(o!=null&&(x=l.join(o,x)),m!=null&&(x=l.relative(m,x)),this.setSourceContent(x,k))},this)},j.prototype._validateMapping=function(p,C,o,h){if(C&&typeof C.line!="number"&&typeof C.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(p&&"line"in p&&"column"in p&&p.line>0&&p.column>=0&&!C&&!o&&!h)){if(p&&"line"in p&&"column"in p&&C&&"line"in C&&"column"in C&&p.line>0&&p.column>=0&&C.line>0&&C.column>=0&&o)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:p,source:o,original:C,name:h}))}},j.prototype._serializeMappings=function(){for(var p=0,C=1,o=0,h=0,m=0,w=0,y="",x,k,E,T,D=this._mappings.toArray(),R=0,H=D.length;R<H;R++){if(k=D[R],x="",k.generatedLine!==C)for(p=0;k.generatedLine!==C;)x+=";",C++;else if(R>0){if(!l.compareByGeneratedPositionsInflated(k,D[R-1]))continue;x+=","}x+=c.encode(k.generatedColumn-p),p=k.generatedColumn,k.source!=null&&(T=this._sources.indexOf(k.source),x+=c.encode(T-w),w=T,x+=c.encode(k.originalLine-1-h),h=k.originalLine-1,x+=c.encode(k.originalColumn-o),o=k.originalColumn,k.name!=null&&(E=this._names.indexOf(k.name),x+=c.encode(E-m),m=E)),y+=x}return y},j.prototype._generateSourcesContent=function(p,C){return p.map(function(o){if(!this._sourcesContents)return null;C!=null&&(o=l.relative(C,o));var h=l.toSetString(o);return Object.prototype.hasOwnProperty.call(this._sourcesContents,h)?this._sourcesContents[h]:null},this)},j.prototype.toJSON=function(){var p={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(p.file=this._file),this._sourceRoot!=null&&(p.sourceRoot=this._sourceRoot),this._sourcesContents&&(p.sourcesContent=this._generateSourcesContent(p.sources,p.sourceRoot)),p},j.prototype.toString=function(){return JSON.stringify(this.toJSON())},Pu.SourceMapGenerator=j,Pu}var fa={},Du={},If;function qg(){return If||(If=1,function(c){c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2;function l(i,_,j,S,p,C){var o=Math.floor((_-i)/2)+i,h=p(j,S[o],!0);return h===0?o:h>0?_-o>1?l(o,_,j,S,p,C):C==c.LEAST_UPPER_BOUND?_<S.length?_:-1:o:o-i>1?l(i,o,j,S,p,C):C==c.LEAST_UPPER_BOUND?o:i<0?-1:i}c.search=function(_,j,S,p){if(j.length===0)return-1;var C=l(-1,j.length,_,j,S,p||c.GREATEST_LOWER_BOUND);if(C<0)return-1;for(;C-1>=0&&S(j[C],j[C-1],!0)===0;)--C;return C}}(Du)),Du}var Iu={},Mf;function zg(){if(Mf)return Iu;Mf=1;function c(_,j,S){var p=_[j];_[j]=_[S],_[S]=p}function l(_,j){return Math.round(_+Math.random()*(j-_))}function i(_,j,S,p){if(S<p){var C=l(S,p),o=S-1;c(_,C,p);for(var h=_[p],m=S;m<p;m++)j(_[m],h)<=0&&(o+=1,c(_,o,m));c(_,o+1,m);var w=o+1;i(_,j,S,w-1),i(_,j,w+1,p)}}return Iu.quickSort=function(_,j){i(_,j,0,_.length-1)},Iu}var Rf;function Wg(){if(Rf)return fa;Rf=1;var c=ca(),l=qg(),i=Tf().ArraySet,_=Sf(),j=zg().quickSort;function S(h,m){var w=h;return typeof h=="string"&&(w=c.parseSourceMapInput(h)),w.sections!=null?new o(w,m):new p(w,m)}S.fromSourceMap=function(h,m){return p.fromSourceMap(h,m)},S.prototype._version=3,S.prototype.__generatedMappings=null,Object.defineProperty(S.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),S.prototype.__originalMappings=null,Object.defineProperty(S.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),S.prototype._charIsMappingSeparator=function(m,w){var y=m.charAt(w);return y===";"||y===","},S.prototype._parseMappings=function(m,w){throw new Error("Subclasses must implement _parseMappings")},S.GENERATED_ORDER=1,S.ORIGINAL_ORDER=2,S.GREATEST_LOWER_BOUND=1,S.LEAST_UPPER_BOUND=2,S.prototype.eachMapping=function(m,w,y){var x=w||null,k=y||S.GENERATED_ORDER,E;switch(k){case S.GENERATED_ORDER:E=this._generatedMappings;break;case S.ORIGINAL_ORDER:E=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var T=this.sourceRoot;E.map(function(D){var R=D.source===null?null:this._sources.at(D.source);return R=c.computeSourceURL(T,R,this._sourceMapURL),{source:R,generatedLine:D.generatedLine,generatedColumn:D.generatedColumn,originalLine:D.originalLine,originalColumn:D.originalColumn,name:D.name===null?null:this._names.at(D.name)}},this).forEach(m,x)},S.prototype.allGeneratedPositionsFor=function(m){var w=c.getArg(m,"line"),y={source:c.getArg(m,"source"),originalLine:w,originalColumn:c.getArg(m,"column",0)};if(y.source=this._findSourceIndex(y.source),y.source<0)return[];var x=[],k=this._findMapping(y,this._originalMappings,"originalLine","originalColumn",c.compareByOriginalPositions,l.LEAST_UPPER_BOUND);if(k>=0){var E=this._originalMappings[k];if(m.column===void 0)for(var T=E.originalLine;E&&E.originalLine===T;)x.push({line:c.getArg(E,"generatedLine",null),column:c.getArg(E,"generatedColumn",null),lastColumn:c.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++k];else for(var D=E.originalColumn;E&&E.originalLine===w&&E.originalColumn==D;)x.push({line:c.getArg(E,"generatedLine",null),column:c.getArg(E,"generatedColumn",null),lastColumn:c.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++k]}return x},fa.SourceMapConsumer=S;function p(h,m){var w=h;typeof h=="string"&&(w=c.parseSourceMapInput(h));var y=c.getArg(w,"version"),x=c.getArg(w,"sources"),k=c.getArg(w,"names",[]),E=c.getArg(w,"sourceRoot",null),T=c.getArg(w,"sourcesContent",null),D=c.getArg(w,"mappings"),R=c.getArg(w,"file",null);if(y!=this._version)throw new Error("Unsupported version: "+y);E&&(E=c.normalize(E)),x=x.map(String).map(c.normalize).map(function(H){return E&&c.isAbsolute(E)&&c.isAbsolute(H)?c.relative(E,H):H}),this._names=i.fromArray(k.map(String),!0),this._sources=i.fromArray(x,!0),this._absoluteSources=this._sources.toArray().map(function(H){return c.computeSourceURL(E,H,m)}),this.sourceRoot=E,this.sourcesContent=T,this._mappings=D,this._sourceMapURL=m,this.file=R}p.prototype=Object.create(S.prototype),p.prototype.consumer=S,p.prototype._findSourceIndex=function(h){var m=h;if(this.sourceRoot!=null&&(m=c.relative(this.sourceRoot,m)),this._sources.has(m))return this._sources.indexOf(m);var w;for(w=0;w<this._absoluteSources.length;++w)if(this._absoluteSources[w]==h)return w;return-1},p.fromSourceMap=function(m,w){var y=Object.create(p.prototype),x=y._names=i.fromArray(m._names.toArray(),!0),k=y._sources=i.fromArray(m._sources.toArray(),!0);y.sourceRoot=m._sourceRoot,y.sourcesContent=m._generateSourcesContent(y._sources.toArray(),y.sourceRoot),y.file=m._file,y._sourceMapURL=w,y._absoluteSources=y._sources.toArray().map(function(W){return c.computeSourceURL(y.sourceRoot,W,w)});for(var E=m._mappings.toArray().slice(),T=y.__generatedMappings=[],D=y.__originalMappings=[],R=0,H=E.length;R<H;R++){var M=E[R],B=new C;B.generatedLine=M.generatedLine,B.generatedColumn=M.generatedColumn,M.source&&(B.source=k.indexOf(M.source),B.originalLine=M.originalLine,B.originalColumn=M.originalColumn,M.name&&(B.name=x.indexOf(M.name)),D.push(B)),T.push(B)}return j(y.__originalMappings,c.compareByOriginalPositions),y},p.prototype._version=3,Object.defineProperty(p.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function C(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}p.prototype._parseMappings=function(m,w){for(var y=1,x=0,k=0,E=0,T=0,D=0,R=m.length,H=0,M={},B={},W=[],v=[],Y,G,X,ee,de;H<R;)if(m.charAt(H)===";")y++,H++,x=0;else if(m.charAt(H)===",")H++;else{for(Y=new C,Y.generatedLine=y,ee=H;ee<R&&!this._charIsMappingSeparator(m,ee);ee++);if(G=m.slice(H,ee),X=M[G],X)H+=G.length;else{for(X=[];H<ee;)_.decode(m,H,B),de=B.value,H=B.rest,X.push(de);if(X.length===2)throw new Error("Found a source, but no line and column");if(X.length===3)throw new Error("Found a source and line, but no column");M[G]=X}Y.generatedColumn=x+X[0],x=Y.generatedColumn,X.length>1&&(Y.source=T+X[1],T+=X[1],Y.originalLine=k+X[2],k=Y.originalLine,Y.originalLine+=1,Y.originalColumn=E+X[3],E=Y.originalColumn,X.length>4&&(Y.name=D+X[4],D+=X[4])),v.push(Y),typeof Y.originalLine=="number"&&W.push(Y)}j(v,c.compareByGeneratedPositionsDeflated),this.__generatedMappings=v,j(W,c.compareByOriginalPositions),this.__originalMappings=W},p.prototype._findMapping=function(m,w,y,x,k,E){if(m[y]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+m[y]);if(m[x]<0)throw new TypeError("Column must be greater than or equal to 0, got "+m[x]);return l.search(m,w,k,E)},p.prototype.computeColumnSpans=function(){for(var m=0;m<this._generatedMappings.length;++m){var w=this._generatedMappings[m];if(m+1<this._generatedMappings.length){var y=this._generatedMappings[m+1];if(w.generatedLine===y.generatedLine){w.lastGeneratedColumn=y.generatedColumn-1;continue}}w.lastGeneratedColumn=1/0}},p.prototype.originalPositionFor=function(m){var w={generatedLine:c.getArg(m,"line"),generatedColumn:c.getArg(m,"column")},y=this._findMapping(w,this._generatedMappings,"generatedLine","generatedColumn",c.compareByGeneratedPositionsDeflated,c.getArg(m,"bias",S.GREATEST_LOWER_BOUND));if(y>=0){var x=this._generatedMappings[y];if(x.generatedLine===w.generatedLine){var k=c.getArg(x,"source",null);k!==null&&(k=this._sources.at(k),k=c.computeSourceURL(this.sourceRoot,k,this._sourceMapURL));var E=c.getArg(x,"name",null);return E!==null&&(E=this._names.at(E)),{source:k,line:c.getArg(x,"originalLine",null),column:c.getArg(x,"originalColumn",null),name:E}}}return{source:null,line:null,column:null,name:null}},p.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(m){return m==null}):!1},p.prototype.sourceContentFor=function(m,w){if(!this.sourcesContent)return null;var y=this._findSourceIndex(m);if(y>=0)return this.sourcesContent[y];var x=m;this.sourceRoot!=null&&(x=c.relative(this.sourceRoot,x));var k;if(this.sourceRoot!=null&&(k=c.urlParse(this.sourceRoot))){var E=x.replace(/^file:\/\//,"");if(k.scheme=="file"&&this._sources.has(E))return this.sourcesContent[this._sources.indexOf(E)];if((!k.path||k.path=="/")&&this._sources.has("/"+x))return this.sourcesContent[this._sources.indexOf("/"+x)]}if(w)return null;throw new Error('"'+x+'" is not in the SourceMap.')},p.prototype.generatedPositionFor=function(m){var w=c.getArg(m,"source");if(w=this._findSourceIndex(w),w<0)return{line:null,column:null,lastColumn:null};var y={source:w,originalLine:c.getArg(m,"line"),originalColumn:c.getArg(m,"column")},x=this._findMapping(y,this._originalMappings,"originalLine","originalColumn",c.compareByOriginalPositions,c.getArg(m,"bias",S.GREATEST_LOWER_BOUND));if(x>=0){var k=this._originalMappings[x];if(k.source===y.source)return{line:c.getArg(k,"generatedLine",null),column:c.getArg(k,"generatedColumn",null),lastColumn:c.getArg(k,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},fa.BasicSourceMapConsumer=p;function o(h,m){var w=h;typeof h=="string"&&(w=c.parseSourceMapInput(h));var y=c.getArg(w,"version"),x=c.getArg(w,"sections");if(y!=this._version)throw new Error("Unsupported version: "+y);this._sources=new i,this._names=new i;var k={line:-1,column:0};this._sections=x.map(function(E){if(E.url)throw new Error("Support for url field in sections not implemented.");var T=c.getArg(E,"offset"),D=c.getArg(T,"line"),R=c.getArg(T,"column");if(D<k.line||D===k.line&&R<k.column)throw new Error("Section offsets must be ordered and non-overlapping.");return k=T,{generatedOffset:{generatedLine:D+1,generatedColumn:R+1},consumer:new S(c.getArg(E,"map"),m)}})}return o.prototype=Object.create(S.prototype),o.prototype.constructor=S,o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){for(var h=[],m=0;m<this._sections.length;m++)for(var w=0;w<this._sections[m].consumer.sources.length;w++)h.push(this._sections[m].consumer.sources[w]);return h}}),o.prototype.originalPositionFor=function(m){var w={generatedLine:c.getArg(m,"line"),generatedColumn:c.getArg(m,"column")},y=l.search(w,this._sections,function(k,E){var T=k.generatedLine-E.generatedOffset.generatedLine;return T||k.generatedColumn-E.generatedOffset.generatedColumn}),x=this._sections[y];return x?x.consumer.originalPositionFor({line:w.generatedLine-(x.generatedOffset.generatedLine-1),column:w.generatedColumn-(x.generatedOffset.generatedLine===w.generatedLine?x.generatedOffset.generatedColumn-1:0),bias:m.bias}):{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(m){return m.consumer.hasContentsOfAllSources()})},o.prototype.sourceContentFor=function(m,w){for(var y=0;y<this._sections.length;y++){var x=this._sections[y],k=x.consumer.sourceContentFor(m,!0);if(k)return k}if(w)return null;throw new Error('"'+m+'" is not in the SourceMap.')},o.prototype.generatedPositionFor=function(m){for(var w=0;w<this._sections.length;w++){var y=this._sections[w];if(y.consumer._findSourceIndex(c.getArg(m,"source"))!==-1){var x=y.consumer.generatedPositionFor(m);if(x){var k={line:x.line+(y.generatedOffset.generatedLine-1),column:x.column+(y.generatedOffset.generatedLine===x.line?y.generatedOffset.generatedColumn-1:0)};return k}}}return{line:null,column:null}},o.prototype._parseMappings=function(m,w){this.__generatedMappings=[],this.__originalMappings=[];for(var y=0;y<this._sections.length;y++)for(var x=this._sections[y],k=x.consumer._generatedMappings,E=0;E<k.length;E++){var T=k[E],D=x.consumer._sources.at(T.source);D=c.computeSourceURL(x.consumer.sourceRoot,D,this._sourceMapURL),this._sources.add(D),D=this._sources.indexOf(D);var R=null;T.name&&(R=x.consumer._names.at(T.name),this._names.add(R),R=this._names.indexOf(R));var H={source:D,generatedLine:T.generatedLine+(x.generatedOffset.generatedLine-1),generatedColumn:T.generatedColumn+(x.generatedOffset.generatedLine===T.generatedLine?x.generatedOffset.generatedColumn-1:0),originalLine:T.originalLine,originalColumn:T.originalColumn,name:R};this.__generatedMappings.push(H),typeof H.originalLine=="number"&&this.__originalMappings.push(H)}j(this.__generatedMappings,c.compareByGeneratedPositionsDeflated),j(this.__originalMappings,c.compareByOriginalPositions)},fa.IndexedSourceMapConsumer=o,fa}var Mu={},Nf;function Ug(){if(Nf)return Mu;Nf=1;var c=Df().SourceMapGenerator,l=ca(),i=/(\r?\n)/,_=10,j="$$$isSourceNode$$$";function S(p,C,o,h,m){this.children=[],this.sourceContents={},this.line=p??null,this.column=C??null,this.source=o??null,this.name=m??null,this[j]=!0,h!=null&&this.add(h)}return S.fromStringWithSourceMap=function(C,o,h){var m=new S,w=C.split(i),y=0,x=function(){var R=M(),H=M()||"";return R+H;function M(){return y<w.length?w[y++]:void 0}},k=1,E=0,T=null;return o.eachMapping(function(R){if(T!==null)if(k<R.generatedLine)D(T,x()),k++,E=0;else{var H=w[y]||"",M=H.substr(0,R.generatedColumn-E);w[y]=H.substr(R.generatedColumn-E),E=R.generatedColumn,D(T,M),T=R;return}for(;k<R.generatedLine;)m.add(x()),k++;if(E<R.generatedColumn){var H=w[y]||"";m.add(H.substr(0,R.generatedColumn)),w[y]=H.substr(R.generatedColumn),E=R.generatedColumn}T=R},this),y<w.length&&(T&&D(T,x()),m.add(w.splice(y).join(""))),o.sources.forEach(function(R){var H=o.sourceContentFor(R);H!=null&&(h!=null&&(R=l.join(h,R)),m.setSourceContent(R,H))}),m;function D(R,H){if(R===null||R.source===void 0)m.add(H);else{var M=h?l.join(h,R.source):R.source;m.add(new S(R.originalLine,R.originalColumn,M,H,R.name))}}},S.prototype.add=function(C){if(Array.isArray(C))C.forEach(function(o){this.add(o)},this);else if(C[j]||typeof C=="string")C&&this.children.push(C);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+C);return this},S.prototype.prepend=function(C){if(Array.isArray(C))for(var o=C.length-1;o>=0;o--)this.prepend(C[o]);else if(C[j]||typeof C=="string")this.children.unshift(C);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+C);return this},S.prototype.walk=function(C){for(var o,h=0,m=this.children.length;h<m;h++)o=this.children[h],o[j]?o.walk(C):o!==""&&C(o,{source:this.source,line:this.line,column:this.column,name:this.name})},S.prototype.join=function(C){var o,h,m=this.children.length;if(m>0){for(o=[],h=0;h<m-1;h++)o.push(this.children[h]),o.push(C);o.push(this.children[h]),this.children=o}return this},S.prototype.replaceRight=function(C,o){var h=this.children[this.children.length-1];return h[j]?h.replaceRight(C,o):typeof h=="string"?this.children[this.children.length-1]=h.replace(C,o):this.children.push("".replace(C,o)),this},S.prototype.setSourceContent=function(C,o){this.sourceContents[l.toSetString(C)]=o},S.prototype.walkSourceContents=function(C){for(var o=0,h=this.children.length;o<h;o++)this.children[o][j]&&this.children[o].walkSourceContents(C);for(var m=Object.keys(this.sourceContents),o=0,h=m.length;o<h;o++)C(l.fromSetString(m[o]),this.sourceContents[m[o]])},S.prototype.toString=function(){var C="";return this.walk(function(o){C+=o}),C},S.prototype.toStringWithSourceMap=function(C){var o={code:"",line:1,column:0},h=new c(C),m=!1,w=null,y=null,x=null,k=null;return this.walk(function(E,T){o.code+=E,T.source!==null&&T.line!==null&&T.column!==null?((w!==T.source||y!==T.line||x!==T.column||k!==T.name)&&h.addMapping({source:T.source,original:{line:T.line,column:T.column},generated:{line:o.line,column:o.column},name:T.name}),w=T.source,y=T.line,x=T.column,k=T.name,m=!0):m&&(h.addMapping({generated:{line:o.line,column:o.column}}),w=null,m=!1);for(var D=0,R=E.length;D<R;D++)E.charCodeAt(D)===_?(o.line++,o.column=0,D+1===R?(w=null,m=!1):m&&h.addMapping({source:T.source,original:{line:T.line,column:T.column},generated:{line:o.line,column:o.column},name:T.name})):o.column++}),this.walkSourceContents(function(E,T){h.setSourceContent(E,T)}),{code:o.code,map:h}},Mu.SourceNode=S,Mu}var Bf;function Gg(){return Bf||(Bf=1,la.SourceMapGenerator=Df().SourceMapGenerator,la.SourceMapConsumer=Wg().SourceMapConsumer,la.SourceNode=Ug().SourceNode),la}(function(c,l){l.__esModule=!0;var i=Kt,_=void 0;try{var j=Gg();_=j.SourceNode}catch{}_||(_=function(C,o,h,m){this.src="",m&&this.add(m)},_.prototype={add:function(o){i.isArray(o)&&(o=o.join("")),this.src+=o},prepend:function(o){i.isArray(o)&&(o=o.join("")),this.src=o+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function S(C,o,h){if(i.isArray(C)){for(var m=[],w=0,y=C.length;w<y;w++)m.push(o.wrap(C[w],h));return m}else if(typeof C=="boolean"||typeof C=="number")return C+"";return C}function p(C){this.srcFile=C,this.source=[]}p.prototype={isEmpty:function(){return!this.source.length},prepend:function(o,h){this.source.unshift(this.wrap(o,h))},push:function(o,h){this.source.push(this.wrap(o,h))},merge:function(){var o=this.empty();return this.each(function(h){o.add([" ",h,`
53
+ `])}),o},each:function(o){for(var h=0,m=this.source.length;h<m;h++)o(this.source[h])},empty:function(){var o=this.currentLocation||{start:{}};return new _(o.start.line,o.start.column,this.srcFile)},wrap:function(o){var h=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return o instanceof _?o:(o=S(o,this,h),new _(h.start.line,h.start.column,this.srcFile,o))},functionCall:function(o,h,m){return m=this.generateList(m),this.wrap([o,h?"."+h+"(":"(",m,")"])},quotedString:function(o){return'"'+(o+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(o){var h=this,m=[];Object.keys(o).forEach(function(y){var x=S(o[y],h);x!=="undefined"&&m.push([h.quotedString(y),":",x])});var w=this.generateList(m);return w.prepend("{"),w.add("}"),w},generateList:function(o){for(var h=this.empty(),m=0,w=o.length;m<w;m++)m&&h.add(","),h.add(S(o[m],this));return h},generateArray:function(o){var h=this.generateList(o);return h.prepend("["),h.add("]"),h}},l.default=p,c.exports=l.default})(Fu,Fu.exports);var Yg=Fu.exports;(function(c,l){l.__esModule=!0;function i(y){return y&&y.__esModule?y:{default:y}}var _=en,j=cn,S=i(j),p=Kt,C=Yg,o=i(C);function h(y){this.value=y}function m(){}m.prototype={nameLookup:function(x,k){return this.internalNameLookup(x,k)},depthedLookup:function(x){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(x),")"]},compilerInfo:function(){var x=_.COMPILER_REVISION,k=_.REVISION_CHANGES[x];return[x,k]},appendToBuffer:function(x,k,E){return p.isArray(x)||(x=[x]),x=this.source.wrap(x,k),this.environment.isSimple?["return ",x,";"]:E?["buffer += ",x,";"]:(x.appendToBuffer=!0,x)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(x,k){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",x,",",JSON.stringify(k),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(x,k,E,T){this.environment=x,this.options=k,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!T,this.name=this.environment.name,this.isChild=!!E,this.context=E||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(x,k),this.useDepths=this.useDepths||x.useDepths||x.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||x.useBlockParams;var D=x.opcodes,R=void 0,H=void 0,M=void 0,B=void 0;for(M=0,B=D.length;M<B;M++)R=D[M],this.source.currentLocation=R.loc,H=H||R.loc,this[R.opcode].apply(this,R.args);if(this.source.currentLocation=H,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new S.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
54
+ `]),this.decorators.push("return fn;"),T?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
55
+ `),this.decorators.push(`}
56
+ `),this.decorators=this.decorators.merge()));var W=this.createFunctionContext(T);if(this.isChild)return W;var v={compiler:this.compilerInfo(),main:W};this.decorators&&(v.main_d=this.decorators,v.useDecorators=!0);var Y=this.context,G=Y.programs,X=Y.decorators;for(M=0,B=G.length;M<B;M++)G[M]&&(v[M]=G[M],X[M]&&(v[M+"_d"]=X[M],v.useDecorators=!0));return this.environment.usePartial&&(v.usePartial=!0),this.options.data&&(v.useData=!0),this.useDepths&&(v.useDepths=!0),this.useBlockParams&&(v.useBlockParams=!0),this.options.compat&&(v.compat=!0),T?v.compilerOptions=this.options:(v.compiler=JSON.stringify(v.compiler),this.source.currentLocation={start:{line:1,column:0}},v=this.objectLiteral(v),k.srcName?(v=v.toStringWithSourceMap({file:k.destName}),v.map=v.map&&v.map.toString()):v=v.toString()),v},preamble:function(){this.lastContext=0,this.source=new o.default(this.options.srcName),this.decorators=new o.default(this.options.srcName)},createFunctionContext:function(x){var k=this,E="",T=this.stackVars.concat(this.registers.list);T.length>0&&(E+=", "+T.join(", "));var D=0;Object.keys(this.aliases).forEach(function(M){var B=k.aliases[M];B.children&&B.referenceCount>1&&(E+=", alias"+ ++D+"="+M,B.children[0]="alias"+D)}),this.lookupPropertyFunctionIsUsed&&(E+=", "+this.lookupPropertyFunctionVarDeclaration());var R=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&R.push("blockParams"),this.useDepths&&R.push("depths");var H=this.mergeSource(E);return x?(R.push(H),Function.apply(this,R)):this.source.wrap(["function(",R.join(","),`) {
57
+ `,H,"}"])},mergeSource:function(x){var k=this.environment.isSimple,E=!this.forceBuffer,T=void 0,D=void 0,R=void 0,H=void 0;return this.source.each(function(M){M.appendToBuffer?(R?M.prepend(" + "):R=M,H=M):(R&&(D?R.prepend("buffer += "):T=!0,H.add(";"),R=H=void 0),D=!0,k||(E=!1))}),E?R?(R.prepend("return "),H.add(";")):D||this.source.push('return "";'):(x+=", buffer = "+(T?"":this.initializeBuffer()),R?(R.prepend("return buffer + "),H.add(";")):this.source.push("return buffer;")),x&&this.source.prepend("var "+x.substring(2)+(T?"":`;
58
+ `)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
59
+ lookupProperty = container.lookupProperty || function(parent, propertyName) {
60
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
61
+ return parent[propertyName];
62
+ }
63
+ return undefined
64
+ }
65
+ `.trim()},blockValue:function(x){var k=this.aliasable("container.hooks.blockHelperMissing"),E=[this.contextName(0)];this.setupHelperArgs(x,0,E);var T=this.popStack();E.splice(1,0,T),this.push(this.source.functionCall(k,"call",E))},ambiguousBlockValue:function(){var x=this.aliasable("container.hooks.blockHelperMissing"),k=[this.contextName(0)];this.setupHelperArgs("",0,k,!0),this.flushInline();var E=this.topStack();k.splice(1,0,E),this.pushSource(["if (!",this.lastHelper,") { ",E," = ",this.source.functionCall(x,"call",k),"}"])},appendContent:function(x){this.pendingContent?x=this.pendingContent+x:this.pendingLocation=this.source.currentLocation,this.pendingContent=x},append:function(){if(this.isInline())this.replaceStack(function(k){return[" != null ? ",k,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var x=this.popStack();this.pushSource(["if (",x," != null) { ",this.appendToBuffer(x,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(x){this.lastContext=x},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(x,k,E,T){var D=0;!T&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(x[D++])):this.pushContext(),this.resolvePath("context",x,D,k,E)},lookupBlockParam:function(x,k){this.useBlockParams=!0,this.push(["blockParams[",x[0],"][",x[1],"]"]),this.resolvePath("context",k,1)},lookupData:function(x,k,E){x?this.pushStackLiteral("container.data(data, "+x+")"):this.pushStackLiteral("data"),this.resolvePath("data",k,0,!0,E)},resolvePath:function(x,k,E,T,D){var R=this;if(this.options.strict||this.options.assumeObjects){this.push(w(this.options.strict&&D,this,k,E,x));return}for(var H=k.length;E<H;E++)this.replaceStack(function(M){var B=R.nameLookup(M,k[E],x);return T?[" && ",B]:[" != null ? ",B," : ",M]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(x,k){this.pushContext(),this.pushString(k),k!=="SubExpression"&&(typeof x=="string"?this.pushString(x):this.pushStackLiteral(x))},emptyHash:function(x){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(x?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var x=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(x.ids)),this.stringParams&&(this.push(this.objectLiteral(x.contexts)),this.push(this.objectLiteral(x.types))),this.push(this.objectLiteral(x.values))},pushString:function(x){this.pushStackLiteral(this.quotedString(x))},pushLiteral:function(x){this.pushStackLiteral(x)},pushProgram:function(x){x!=null?this.pushStackLiteral(this.programExpression(x)):this.pushStackLiteral(null)},registerDecorator:function(x,k){var E=this.nameLookup("decorators",k,"decorator"),T=this.setupHelperArgs(k,x);this.decorators.push(["fn = ",this.decorators.functionCall(E,"",["fn","props","container",T])," || fn;"])},invokeHelper:function(x,k,E){var T=this.popStack(),D=this.setupHelper(x,k),R=[];E&&R.push(D.name),R.push(T),this.options.strict||R.push(this.aliasable("container.hooks.helperMissing"));var H=["(",this.itemsSeparatedBy(R,"||"),")"],M=this.source.functionCall(H,"call",D.callParams);this.push(M)},itemsSeparatedBy:function(x,k){var E=[];E.push(x[0]);for(var T=1;T<x.length;T++)E.push(k,x[T]);return E},invokeKnownHelper:function(x,k){var E=this.setupHelper(x,k);this.push(this.source.functionCall(E.name,"call",E.callParams))},invokeAmbiguous:function(x,k){this.useRegister("helper");var E=this.popStack();this.emptyHash();var T=this.setupHelper(0,x,k),D=this.lastHelper=this.nameLookup("helpers",x,"helper"),R=["(","(helper = ",D," || ",E,")"];this.options.strict||(R[0]="(helper = ",R.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",R,T.paramsInit?["),(",T.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",T.callParams)," : helper))"])},invokePartial:function(x,k,E){var T=[],D=this.setupParams(k,1,T);x&&(k=this.popStack(),delete D.name),E&&(D.indent=JSON.stringify(E)),D.helpers="helpers",D.partials="partials",D.decorators="container.decorators",x?T.unshift(k):T.unshift(this.nameLookup("partials",k,"partial")),this.options.compat&&(D.depths="depths"),D=this.objectLiteral(D),T.push(D),this.push(this.source.functionCall("container.invokePartial","",T))},assignToHash:function(x){var k=this.popStack(),E=void 0,T=void 0,D=void 0;this.trackIds&&(D=this.popStack()),this.stringParams&&(T=this.popStack(),E=this.popStack());var R=this.hash;E&&(R.contexts[x]=E),T&&(R.types[x]=T),D&&(R.ids[x]=D),R.values[x]=k},pushId:function(x,k,E){x==="BlockParam"?this.pushStackLiteral("blockParams["+k[0]+"].path["+k[1]+"]"+(E?" + "+JSON.stringify("."+E):"")):x==="PathExpression"?this.pushString(k):x==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:m,compileChildren:function(x,k){for(var E=x.children,T=void 0,D=void 0,R=0,H=E.length;R<H;R++){T=E[R],D=new this.compiler;var M=this.matchExistingProgram(T);if(M==null){this.context.programs.push("");var B=this.context.programs.length;T.index=B,T.name="program"+B,this.context.programs[B]=D.compile(T,k,this.context,!this.precompile),this.context.decorators[B]=D.decorators,this.context.environments[B]=T,this.useDepths=this.useDepths||D.useDepths,this.useBlockParams=this.useBlockParams||D.useBlockParams,T.useDepths=this.useDepths,T.useBlockParams=this.useBlockParams}else T.index=M.index,T.name="program"+M.index,this.useDepths=this.useDepths||M.useDepths,this.useBlockParams=this.useBlockParams||M.useBlockParams}},matchExistingProgram:function(x){for(var k=0,E=this.context.environments.length;k<E;k++){var T=this.context.environments[k];if(T&&T.equals(x))return T}},programExpression:function(x){var k=this.environment.children[x],E=[k.index,"data",k.blockParams];return(this.useBlockParams||this.useDepths)&&E.push("blockParams"),this.useDepths&&E.push("depths"),"container.program("+E.join(", ")+")"},useRegister:function(x){this.registers[x]||(this.registers[x]=!0,this.registers.list.push(x))},push:function(x){return x instanceof h||(x=this.source.wrap(x)),this.inlineStack.push(x),x},pushStackLiteral:function(x){this.push(new h(x))},pushSource:function(x){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),x&&this.source.push(x)},replaceStack:function(x){var k=["("],E=void 0,T=void 0,D=void 0;if(!this.isInline())throw new S.default("replaceStack on non-inline");var R=this.popStack(!0);if(R instanceof h)E=[R.value],k=["(",E],D=!0;else{T=!0;var H=this.incrStack();k=["((",this.push(H)," = ",R,")"],E=this.topStack()}var M=x.call(this,E);D||this.popStack(),T&&this.stackSlot--,this.push(k.concat(M,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var x=this.inlineStack;this.inlineStack=[];for(var k=0,E=x.length;k<E;k++){var T=x[k];if(T instanceof h)this.compileStack.push(T);else{var D=this.incrStack();this.pushSource([D," = ",T,";"]),this.compileStack.push(D)}}},isInline:function(){return this.inlineStack.length},popStack:function(x){var k=this.isInline(),E=(k?this.inlineStack:this.compileStack).pop();if(!x&&E instanceof h)return E.value;if(!k){if(!this.stackSlot)throw new S.default("Invalid stack pop");this.stackSlot--}return E},topStack:function(){var x=this.isInline()?this.inlineStack:this.compileStack,k=x[x.length-1];return k instanceof h?k.value:k},contextName:function(x){return this.useDepths&&x?"depths["+x+"]":"depth"+x},quotedString:function(x){return this.source.quotedString(x)},objectLiteral:function(x){return this.source.objectLiteral(x)},aliasable:function(x){var k=this.aliases[x];return k?(k.referenceCount++,k):(k=this.aliases[x]=this.source.wrap(x),k.aliasable=!0,k.referenceCount=1,k)},setupHelper:function(x,k,E){var T=[],D=this.setupHelperArgs(k,x,T,E),R=this.nameLookup("helpers",k,"helper"),H=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:T,paramsInit:D,name:R,callParams:[H].concat(T)}},setupParams:function(x,k,E){var T={},D=[],R=[],H=[],M=!E,B=void 0;M&&(E=[]),T.name=this.quotedString(x),T.hash=this.popStack(),this.trackIds&&(T.hashIds=this.popStack()),this.stringParams&&(T.hashTypes=this.popStack(),T.hashContexts=this.popStack());var W=this.popStack(),v=this.popStack();(v||W)&&(T.fn=v||"container.noop",T.inverse=W||"container.noop");for(var Y=k;Y--;)B=this.popStack(),E[Y]=B,this.trackIds&&(H[Y]=this.popStack()),this.stringParams&&(R[Y]=this.popStack(),D[Y]=this.popStack());return M&&(T.args=this.source.generateArray(E)),this.trackIds&&(T.ids=this.source.generateArray(H)),this.stringParams&&(T.types=this.source.generateArray(R),T.contexts=this.source.generateArray(D)),this.options.data&&(T.data="data"),this.useBlockParams&&(T.blockParams="blockParams"),T},setupHelperArgs:function(x,k,E,T){var D=this.setupParams(x,k,E);return D.loc=JSON.stringify(this.source.currentLocation),D=this.objectLiteral(D),T?(this.useRegister("options"),E.push("options"),["options=",D]):E?(E.push(D),""):D}},function(){for(var y="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),x=m.RESERVED_WORDS={},k=0,E=y.length;k<E;k++)x[y[k]]=!0}(),m.isValidJavaScriptVariableName=function(y){return!m.RESERVED_WORDS[y]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(y)};function w(y,x,k,E,T){var D=x.popStack(),R=k.length;for(y&&R--;E<R;E++)D=x.nameLookup(D,k[E],T);return y?[x.aliasable("container.strict"),"(",D,", ",x.quotedString(k[E]),", ",JSON.stringify(x.source.currentLocation)," )"]:D}l.default=m,c.exports=l.default})(Su,Su.exports);var $g=Su.exports;(function(c,l){l.__esModule=!0;function i(R){return R&&R.__esModule?R:{default:R}}var _=dg,j=i(_),S=bf,p=i(S),C=ia,o=oa,h=$g,m=i(h),w=wf,y=i(w),x=vf,k=i(x),E=j.default.create;function T(){var R=E();return R.compile=function(H,M){return o.compile(H,M,R)},R.precompile=function(H,M){return o.precompile(H,M,R)},R.AST=p.default,R.Compiler=o.Compiler,R.JavaScriptCompiler=m.default,R.Parser=C.parser,R.parse=C.parse,R.parseWithoutProcessing=C.parseWithoutProcessing,R}var D=T();D.create=T,k.default(D),D.Visitor=y.default,D.default=D,l.default=D,c.exports=l.default})(Zs,Zs.exports);var Jg=Zs.exports;const Yn=zl(Jg);var Hf={exports:{}};/*! For license information please see jsoneditor.js.LICENSE.txt */(function(c,l){(function(i,_){c.exports=_()})(self,()=>(()=>{var i={9306:(p,C,o)=>{var h=o(4901),m=o(6823),w=TypeError;p.exports=function(y){if(h(y))return y;throw new w(m(y)+" is not a function")}},5548:(p,C,o)=>{var h=o(3517),m=o(6823),w=TypeError;p.exports=function(y){if(h(y))return y;throw new w(m(y)+" is not a constructor")}},3506:(p,C,o)=>{var h=o(3925),m=String,w=TypeError;p.exports=function(y){if(h(y))return y;throw new w("Can't set "+m(y)+" as a prototype")}},6469:(p,C,o)=>{var h=o(8227),m=o(2360),w=o(4913).f,y=h("unscopables"),x=Array.prototype;x[y]===void 0&&w(x,y,{configurable:!0,value:m(null)}),p.exports=function(k){x[y][k]=!0}},7829:(p,C,o)=>{var h=o(8183).charAt;p.exports=function(m,w,y){return w+(y?h(m,w).length:1)}},679:(p,C,o)=>{var h=o(1625),m=TypeError;p.exports=function(w,y){if(h(y,w))return w;throw new m("Incorrect invocation")}},8551:(p,C,o)=>{var h=o(34),m=String,w=TypeError;p.exports=function(y){if(h(y))return y;throw new w(m(y)+" is not an object")}},235:(p,C,o)=>{var h=o(9213).forEach,m=o(4598)("forEach");p.exports=m?[].forEach:function(w){return h(this,w,arguments.length>1?arguments[1]:void 0)}},7916:(p,C,o)=>{var h=o(6080),m=o(9565),w=o(8981),y=o(6319),x=o(4209),k=o(3517),E=o(6198),T=o(4659),D=o(81),R=o(851),H=Array;p.exports=function(M){var B=w(M),W=k(this),v=arguments.length,Y=v>1?arguments[1]:void 0,G=Y!==void 0;G&&(Y=h(Y,v>2?arguments[2]:void 0));var X,ee,de,oe,ye,_e,ke=R(B),xe=0;if(!ke||this===H&&x(ke))for(X=E(B),ee=W?new this(X):H(X);X>xe;xe++)_e=G?Y(B[xe],xe):B[xe],T(ee,xe,_e);else for(ee=W?new this:[],ye=(oe=D(B,ke)).next;!(de=m(ye,oe)).done;xe++)_e=G?y(oe,Y,[de.value,xe],!0):de.value,T(ee,xe,_e);return ee.length=xe,ee}},9617:(p,C,o)=>{var h=o(5397),m=o(5610),w=o(6198),y=function(x){return function(k,E,T){var D=h(k),R=w(D);if(R===0)return!x&&-1;var H,M=m(T,R);if(x&&E!=E){for(;R>M;)if((H=D[M++])!=H)return!0}else for(;R>M;M++)if((x||M in D)&&D[M]===E)return x||M||0;return!x&&-1}};p.exports={includes:y(!0),indexOf:y(!1)}},9213:(p,C,o)=>{var h=o(6080),m=o(9504),w=o(7055),y=o(8981),x=o(6198),k=o(1469),E=m([].push),T=function(D){var R=D===1,H=D===2,M=D===3,B=D===4,W=D===6,v=D===7,Y=D===5||W;return function(G,X,ee,de){for(var oe,ye,_e=y(G),ke=w(_e),xe=x(ke),Le=h(X,ee),Ee=0,Ue=de||k,Ke=R?Ue(G,xe):H||v?Ue(G,0):void 0;xe>Ee;Ee++)if((Y||Ee in ke)&&(ye=Le(oe=ke[Ee],Ee,_e),D))if(R)Ke[Ee]=ye;else if(ye)switch(D){case 3:return!0;case 5:return oe;case 6:return Ee;case 2:E(Ke,oe)}else switch(D){case 4:return!1;case 7:E(Ke,oe)}return W?-1:M||B?B:Ke}};p.exports={forEach:T(0),map:T(1),filter:T(2),some:T(3),every:T(4),find:T(5),findIndex:T(6),filterReject:T(7)}},597:(p,C,o)=>{var h=o(9039),m=o(8227),w=o(7388),y=m("species");p.exports=function(x){return w>=51||!h(function(){var k=[];return(k.constructor={})[y]=function(){return{foo:1}},k[x](Boolean).foo!==1})}},4598:(p,C,o)=>{var h=o(9039);p.exports=function(m,w){var y=[][m];return!!y&&h(function(){y.call(null,w||function(){return 1},1)})}},926:(p,C,o)=>{var h=o(9306),m=o(8981),w=o(7055),y=o(6198),x=TypeError,k="Reduce of empty array with no initial value",E=function(T){return function(D,R,H,M){var B=m(D),W=w(B),v=y(B);if(h(R),v===0&&H<2)throw new x(k);var Y=T?v-1:0,G=T?-1:1;if(H<2)for(;;){if(Y in W){M=W[Y],Y+=G;break}if(Y+=G,T?Y<0:v<=Y)throw new x(k)}for(;T?Y>=0:v>Y;Y+=G)Y in W&&(M=R(M,W[Y],Y,B));return M}};p.exports={left:E(!1),right:E(!0)}},4527:(p,C,o)=>{var h=o(3724),m=o(4376),w=TypeError,y=Object.getOwnPropertyDescriptor,x=h&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(k){return k instanceof TypeError}}();p.exports=x?function(k,E){if(m(k)&&!y(k,"length").writable)throw new w("Cannot set read only .length");return k.length=E}:function(k,E){return k.length=E}},7680:(p,C,o)=>{var h=o(9504);p.exports=h([].slice)},4488:(p,C,o)=>{var h=o(7680),m=Math.floor,w=function(y,x){var k=y.length;if(k<8)for(var E,T,D=1;D<k;){for(T=D,E=y[D];T&&x(y[T-1],E)>0;)y[T]=y[--T];T!==D++&&(y[T]=E)}else for(var R=m(k/2),H=w(h(y,0,R),x),M=w(h(y,R),x),B=H.length,W=M.length,v=0,Y=0;v<B||Y<W;)y[v+Y]=v<B&&Y<W?x(H[v],M[Y])<=0?H[v++]:M[Y++]:v<B?H[v++]:M[Y++];return y};p.exports=w},7433:(p,C,o)=>{var h=o(4376),m=o(3517),w=o(34),y=o(8227)("species"),x=Array;p.exports=function(k){var E;return h(k)&&(E=k.constructor,(m(E)&&(E===x||h(E.prototype))||w(E)&&(E=E[y])===null)&&(E=void 0)),E===void 0?x:E}},1469:(p,C,o)=>{var h=o(7433);p.exports=function(m,w){return new(h(m))(w===0?0:w)}},6319:(p,C,o)=>{var h=o(8551),m=o(9539);p.exports=function(w,y,x,k){try{return k?y(h(x)[0],x[1]):y(x)}catch(E){m(w,"throw",E)}}},4428:(p,C,o)=>{var h=o(8227)("iterator"),m=!1;try{var w=0,y={next:function(){return{done:!!w++}},return:function(){m=!0}};y[h]=function(){return this},Array.from(y,function(){throw 2})}catch{}p.exports=function(x,k){try{if(!k&&!m)return!1}catch{return!1}var E=!1;try{var T={};T[h]=function(){return{next:function(){return{done:E=!0}}}},x(T)}catch{}return E}},4576:(p,C,o)=>{var h=o(9504),m=h({}.toString),w=h("".slice);p.exports=function(y){return w(m(y),8,-1)}},6955:(p,C,o)=>{var h=o(2140),m=o(4901),w=o(4576),y=o(8227)("toStringTag"),x=Object,k=w(function(){return arguments}())==="Arguments";p.exports=h?w:function(E){var T,D,R;return E===void 0?"Undefined":E===null?"Null":typeof(D=function(H,M){try{return H[M]}catch{}}(T=x(E),y))=="string"?D:k?w(T):(R=w(T))==="Object"&&m(T.callee)?"Arguments":R}},7740:(p,C,o)=>{var h=o(9297),m=o(5031),w=o(7347),y=o(4913);p.exports=function(x,k,E){for(var T=m(k),D=y.f,R=w.f,H=0;H<T.length;H++){var M=T[H];h(x,M)||E&&h(E,M)||D(x,M,R(k,M))}}},1436:(p,C,o)=>{var h=o(8227)("match");p.exports=function(m){var w=/./;try{"/./"[m](w)}catch{try{return w[h]=!1,"/./"[m](w)}catch{}}return!1}},2211:(p,C,o)=>{var h=o(9039);p.exports=!h(function(){function m(){}return m.prototype.constructor=null,Object.getPrototypeOf(new m)!==m.prototype})},2529:p=>{p.exports=function(C,o){return{value:C,done:o}}},6699:(p,C,o)=>{var h=o(3724),m=o(4913),w=o(6980);p.exports=h?function(y,x,k){return m.f(y,x,w(1,k))}:function(y,x,k){return y[x]=k,y}},6980:p=>{p.exports=function(C,o){return{enumerable:!(1&C),configurable:!(2&C),writable:!(4&C),value:o}}},4659:(p,C,o)=>{var h=o(3724),m=o(4913),w=o(6980);p.exports=function(y,x,k){h?m.f(y,x,w(0,k)):y[x]=k}},380:(p,C,o)=>{var h=o(9504),m=o(9039),w=o(533).start,y=RangeError,x=isFinite,k=Math.abs,E=Date.prototype,T=E.toISOString,D=h(E.getTime),R=h(E.getUTCDate),H=h(E.getUTCFullYear),M=h(E.getUTCHours),B=h(E.getUTCMilliseconds),W=h(E.getUTCMinutes),v=h(E.getUTCMonth),Y=h(E.getUTCSeconds);p.exports=m(function(){return T.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!m(function(){T.call(new Date(NaN))})?function(){if(!x(D(this)))throw new y("Invalid time value");var G=this,X=H(G),ee=B(G),de=X<0?"-":X>9999?"+":"";return de+w(k(X),de?6:4,0)+"-"+w(v(G)+1,2,0)+"-"+w(R(G),2,0)+"T"+w(M(G),2,0)+":"+w(W(G),2,0)+":"+w(Y(G),2,0)+"."+w(ee,3,0)+"Z"}:T},3640:(p,C,o)=>{var h=o(8551),m=o(4270),w=TypeError;p.exports=function(y){if(h(this),y==="string"||y==="default")y="string";else if(y!=="number")throw new w("Incorrect hint");return m(this,y)}},2106:(p,C,o)=>{var h=o(283),m=o(4913);p.exports=function(w,y,x){return x.get&&h(x.get,y,{getter:!0}),x.set&&h(x.set,y,{setter:!0}),m.f(w,y,x)}},6840:(p,C,o)=>{var h=o(4901),m=o(4913),w=o(283),y=o(9433);p.exports=function(x,k,E,T){T||(T={});var D=T.enumerable,R=T.name!==void 0?T.name:k;if(h(E)&&w(E,R,T),T.global)D?x[k]=E:y(k,E);else{try{T.unsafe?x[k]&&(D=!0):delete x[k]}catch{}D?x[k]=E:m.f(x,k,{value:E,enumerable:!1,configurable:!T.nonConfigurable,writable:!T.nonWritable})}return x}},9433:(p,C,o)=>{var h=o(4475),m=Object.defineProperty;p.exports=function(w,y){try{m(h,w,{value:y,configurable:!0,writable:!0})}catch{h[w]=y}return y}},4606:(p,C,o)=>{var h=o(6823),m=TypeError;p.exports=function(w,y){if(!delete w[y])throw new m("Cannot delete property "+h(y)+" of "+h(w))}},3724:(p,C,o)=>{var h=o(9039);p.exports=!h(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4055:(p,C,o)=>{var h=o(4475),m=o(34),w=h.document,y=m(w)&&m(w.createElement);p.exports=function(x){return y?w.createElement(x):{}}},6837:p=>{var C=TypeError;p.exports=function(o){if(o>9007199254740991)throw C("Maximum allowed index exceeded");return o}},7400:p=>{p.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:(p,C,o)=>{var h=o(4055)("span").classList,m=h&&h.constructor&&h.constructor.prototype;p.exports=m===Object.prototype?void 0:m},8834:(p,C,o)=>{var h=o(9392).match(/firefox\/(\d+)/i);p.exports=!!h&&+h[1]},7290:(p,C,o)=>{var h=o(516),m=o(9088);p.exports=!h&&!m&&typeof window=="object"&&typeof document=="object"},6763:p=>{p.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},516:p=>{p.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},3202:(p,C,o)=>{var h=o(9392);p.exports=/MSIE|Trident/.test(h)},28:(p,C,o)=>{var h=o(9392);p.exports=/ipad|iphone|ipod/i.test(h)&&typeof Pebble<"u"},8119:(p,C,o)=>{var h=o(9392);p.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(h)},9088:(p,C,o)=>{var h=o(4475),m=o(4576);p.exports=m(h.process)==="process"},6765:(p,C,o)=>{var h=o(9392);p.exports=/web0s(?!.*chrome)/i.test(h)},9392:p=>{p.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},7388:(p,C,o)=>{var h,m,w=o(4475),y=o(9392),x=w.process,k=w.Deno,E=x&&x.versions||k&&k.version,T=E&&E.v8;T&&(m=(h=T.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!m&&y&&(!(h=y.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=y.match(/Chrome\/(\d+)/))&&(m=+h[1]),p.exports=m},9160:(p,C,o)=>{var h=o(9392).match(/AppleWebKit\/(\d+)\./);p.exports=!!h&&+h[1]},8727:p=>{p.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:(p,C,o)=>{var h=o(4475),m=o(7347).f,w=o(6699),y=o(6840),x=o(9433),k=o(7740),E=o(2796);p.exports=function(T,D){var R,H,M,B,W,v=T.target,Y=T.global,G=T.stat;if(R=Y?h:G?h[v]||x(v,{}):h[v]&&h[v].prototype)for(H in D){if(B=D[H],M=T.dontCallGetSet?(W=m(R,H))&&W.value:R[H],!E(Y?H:v+(G?".":"#")+H,T.forced)&&M!==void 0){if(typeof B==typeof M)continue;k(B,M)}(T.sham||M&&M.sham)&&w(B,"sham",!0),y(R,H,B,T)}}},9039:p=>{p.exports=function(C){try{return!!C()}catch{return!0}}},9228:(p,C,o)=>{o(7495);var h=o(9565),m=o(6840),w=o(7323),y=o(9039),x=o(8227),k=o(6699),E=x("species"),T=RegExp.prototype;p.exports=function(D,R,H,M){var B=x(D),W=!y(function(){var X={};return X[B]=function(){return 7},""[D](X)!==7}),v=W&&!y(function(){var X=!1,ee=/a/;return D==="split"&&((ee={}).constructor={},ee.constructor[E]=function(){return ee},ee.flags="",ee[B]=/./[B]),ee.exec=function(){return X=!0,null},ee[B](""),!X});if(!W||!v||H){var Y=/./[B],G=R(B,""[D],function(X,ee,de,oe,ye){var _e=ee.exec;return _e===w||_e===T.exec?W&&!ye?{done:!0,value:h(Y,ee,de,oe)}:{done:!0,value:h(X,de,ee,oe)}:{done:!1}});m(String.prototype,D,G[0]),m(T,B,G[1])}M&&k(T[B],"sham",!0)}},8745:(p,C,o)=>{var h=o(616),m=Function.prototype,w=m.apply,y=m.call;p.exports=typeof Reflect=="object"&&Reflect.apply||(h?y.bind(w):function(){return y.apply(w,arguments)})},6080:(p,C,o)=>{var h=o(7476),m=o(9306),w=o(616),y=h(h.bind);p.exports=function(x,k){return m(x),k===void 0?x:w?y(x,k):function(){return x.apply(k,arguments)}}},616:(p,C,o)=>{var h=o(9039);p.exports=!h(function(){var m=(function(){}).bind();return typeof m!="function"||m.hasOwnProperty("prototype")})},566:(p,C,o)=>{var h=o(9504),m=o(9306),w=o(34),y=o(9297),x=o(7680),k=o(616),E=Function,T=h([].concat),D=h([].join),R={};p.exports=k?E.bind:function(H){var M=m(this),B=M.prototype,W=x(arguments,1),v=function(){var Y=T(W,x(arguments));return this instanceof v?function(G,X,ee){if(!y(R,X)){for(var de=[],oe=0;oe<X;oe++)de[oe]="a["+oe+"]";R[X]=E("C,a","return new C("+D(de,",")+")")}return R[X](G,ee)}(M,Y.length,Y):M.apply(H,Y)};return w(B)&&(v.prototype=B),v}},9565:(p,C,o)=>{var h=o(616),m=Function.prototype.call;p.exports=h?m.bind(m):function(){return m.apply(m,arguments)}},350:(p,C,o)=>{var h=o(3724),m=o(9297),w=Function.prototype,y=h&&Object.getOwnPropertyDescriptor,x=m(w,"name"),k=x&&(function(){}).name==="something",E=x&&(!h||h&&y(w,"name").configurable);p.exports={EXISTS:x,PROPER:k,CONFIGURABLE:E}},6706:(p,C,o)=>{var h=o(9504),m=o(9306);p.exports=function(w,y,x){try{return h(m(Object.getOwnPropertyDescriptor(w,y)[x]))}catch{}}},7476:(p,C,o)=>{var h=o(4576),m=o(9504);p.exports=function(w){if(h(w)==="Function")return m(w)}},9504:(p,C,o)=>{var h=o(616),m=Function.prototype,w=m.call,y=h&&m.bind.bind(w,w);p.exports=h?y:function(x){return function(){return w.apply(x,arguments)}}},7751:(p,C,o)=>{var h=o(4475),m=o(4901);p.exports=function(w,y){return arguments.length<2?(x=h[w],m(x)?x:void 0):h[w]&&h[w][y];var x}},851:(p,C,o)=>{var h=o(6955),m=o(5966),w=o(4117),y=o(6269),x=o(8227)("iterator");p.exports=function(k){if(!w(k))return m(k,x)||m(k,"@@iterator")||y[h(k)]}},81:(p,C,o)=>{var h=o(9565),m=o(9306),w=o(8551),y=o(6823),x=o(851),k=TypeError;p.exports=function(E,T){var D=arguments.length<2?x(E):T;if(m(D))return w(h(D,E));throw new k(y(E)+" is not iterable")}},6933:(p,C,o)=>{var h=o(9504),m=o(4376),w=o(4901),y=o(4576),x=o(655),k=h([].push);p.exports=function(E){if(w(E))return E;if(m(E)){for(var T=E.length,D=[],R=0;R<T;R++){var H=E[R];typeof H=="string"?k(D,H):typeof H!="number"&&y(H)!=="Number"&&y(H)!=="String"||k(D,x(H))}var M=D.length,B=!0;return function(W,v){if(B)return B=!1,v;if(m(this))return v;for(var Y=0;Y<M;Y++)if(D[Y]===W)return v}}}},5966:(p,C,o)=>{var h=o(9306),m=o(4117);p.exports=function(w,y){var x=w[y];return m(x)?void 0:h(x)}},2478:(p,C,o)=>{var h=o(9504),m=o(8981),w=Math.floor,y=h("".charAt),x=h("".replace),k=h("".slice),E=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,T=/\$([$&'`]|\d{1,2})/g;p.exports=function(D,R,H,M,B,W){var v=H+D.length,Y=M.length,G=T;return B!==void 0&&(B=m(B),G=E),x(W,G,function(X,ee){var de;switch(y(ee,0)){case"$":return"$";case"&":return D;case"`":return k(R,0,H);case"'":return k(R,v);case"<":de=B[k(ee,1,-1)];break;default:var oe=+ee;if(oe===0)return X;if(oe>Y){var ye=w(oe/10);return ye===0?X:ye<=Y?M[ye-1]===void 0?y(ee,1):M[ye-1]+y(ee,1):X}de=M[oe-1]}return de===void 0?"":de})}},4475:function(p,C,o){var h=function(m){return m&&m.Math===Math&&m};p.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof o.g=="object"&&o.g)||h(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},9297:(p,C,o)=>{var h=o(9504),m=o(8981),w=h({}.hasOwnProperty);p.exports=Object.hasOwn||function(y,x){return w(m(y),x)}},421:p=>{p.exports={}},3138:p=>{p.exports=function(C,o){try{arguments.length===1?console.error(C):console.error(C,o)}catch{}}},397:(p,C,o)=>{var h=o(7751);p.exports=h("document","documentElement")},5917:(p,C,o)=>{var h=o(3724),m=o(9039),w=o(4055);p.exports=!h&&!m(function(){return Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a!==7})},7055:(p,C,o)=>{var h=o(9504),m=o(9039),w=o(4576),y=Object,x=h("".split);p.exports=m(function(){return!y("z").propertyIsEnumerable(0)})?function(k){return w(k)==="String"?x(k,""):y(k)}:y},3167:(p,C,o)=>{var h=o(4901),m=o(34),w=o(2967);p.exports=function(y,x,k){var E,T;return w&&h(E=x.constructor)&&E!==k&&m(T=E.prototype)&&T!==k.prototype&&w(y,T),y}},3706:(p,C,o)=>{var h=o(9504),m=o(4901),w=o(7629),y=h(Function.toString);m(w.inspectSource)||(w.inspectSource=function(x){return y(x)}),p.exports=w.inspectSource},1181:(p,C,o)=>{var h,m,w,y=o(8622),x=o(4475),k=o(34),E=o(6699),T=o(9297),D=o(7629),R=o(6119),H=o(421),M="Object already initialized",B=x.TypeError,W=x.WeakMap;if(y||D.state){var v=D.state||(D.state=new W);v.get=v.get,v.has=v.has,v.set=v.set,h=function(G,X){if(v.has(G))throw new B(M);return X.facade=G,v.set(G,X),X},m=function(G){return v.get(G)||{}},w=function(G){return v.has(G)}}else{var Y=R("state");H[Y]=!0,h=function(G,X){if(T(G,Y))throw new B(M);return X.facade=G,E(G,Y,X),X},m=function(G){return T(G,Y)?G[Y]:{}},w=function(G){return T(G,Y)}}p.exports={set:h,get:m,has:w,enforce:function(G){return w(G)?m(G):h(G,{})},getterFor:function(G){return function(X){var ee;if(!k(X)||(ee=m(X)).type!==G)throw new B("Incompatible receiver, "+G+" required");return ee}}}},4209:(p,C,o)=>{var h=o(8227),m=o(6269),w=h("iterator"),y=Array.prototype;p.exports=function(x){return x!==void 0&&(m.Array===x||y[w]===x)}},4376:(p,C,o)=>{var h=o(4576);p.exports=Array.isArray||function(m){return h(m)==="Array"}},4901:p=>{var C=typeof document=="object"&&document.all;p.exports=C===void 0&&C!==void 0?function(o){return typeof o=="function"||o===C}:function(o){return typeof o=="function"}},3517:(p,C,o)=>{var h=o(9504),m=o(9039),w=o(4901),y=o(6955),x=o(7751),k=o(3706),E=function(){},T=x("Reflect","construct"),D=/^\s*(?:class|function)\b/,R=h(D.exec),H=!D.test(E),M=function(W){if(!w(W))return!1;try{return T(E,[],W),!0}catch{return!1}},B=function(W){if(!w(W))return!1;switch(y(W)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return H||!!R(D,k(W))}catch{return!0}};B.sham=!0,p.exports=!T||m(function(){var W;return M(M.call)||!M(Object)||!M(function(){W=!0})||W})?B:M},6575:(p,C,o)=>{var h=o(9297);p.exports=function(m){return m!==void 0&&(h(m,"value")||h(m,"writable"))}},2796:(p,C,o)=>{var h=o(9039),m=o(4901),w=/#|\.prototype\./,y=function(D,R){var H=k[x(D)];return H===T||H!==E&&(m(R)?h(R):!!R)},x=y.normalize=function(D){return String(D).replace(w,".").toLowerCase()},k=y.data={},E=y.NATIVE="N",T=y.POLYFILL="P";p.exports=y},4117:p=>{p.exports=function(C){return C==null}},34:(p,C,o)=>{var h=o(4901);p.exports=function(m){return typeof m=="object"?m!==null:h(m)}},3925:(p,C,o)=>{var h=o(34);p.exports=function(m){return h(m)||m===null}},6395:p=>{p.exports=!1},788:(p,C,o)=>{var h=o(34),m=o(4576),w=o(8227)("match");p.exports=function(y){var x;return h(y)&&((x=y[w])!==void 0?!!x:m(y)==="RegExp")}},757:(p,C,o)=>{var h=o(7751),m=o(4901),w=o(1625),y=o(7040),x=Object;p.exports=y?function(k){return typeof k=="symbol"}:function(k){var E=h("Symbol");return m(E)&&w(E.prototype,x(k))}},2652:(p,C,o)=>{var h=o(6080),m=o(9565),w=o(8551),y=o(6823),x=o(4209),k=o(6198),E=o(1625),T=o(81),D=o(851),R=o(9539),H=TypeError,M=function(W,v){this.stopped=W,this.result=v},B=M.prototype;p.exports=function(W,v,Y){var G,X,ee,de,oe,ye,_e,ke=Y&&Y.that,xe=!(!Y||!Y.AS_ENTRIES),Le=!(!Y||!Y.IS_RECORD),Ee=!(!Y||!Y.IS_ITERATOR),Ue=!(!Y||!Y.INTERRUPTED),Ke=h(v,ke),tt=function(Ye){return G&&R(G,"normal",Ye),new M(!0,Ye)},je=function(Ye){return xe?(w(Ye),Ue?Ke(Ye[0],Ye[1],tt):Ke(Ye[0],Ye[1])):Ue?Ke(Ye,tt):Ke(Ye)};if(Le)G=W.iterator;else if(Ee)G=W;else{if(!(X=D(W)))throw new H(y(W)+" is not iterable");if(x(X)){for(ee=0,de=k(W);de>ee;ee++)if((oe=je(W[ee]))&&E(B,oe))return oe;return new M(!1)}G=T(W,X)}for(ye=Le?W.next:G.next;!(_e=m(ye,G)).done;){try{oe=je(_e.value)}catch(Ye){R(G,"throw",Ye)}if(typeof oe=="object"&&oe&&E(B,oe))return oe}return new M(!1)}},9539:(p,C,o)=>{var h=o(9565),m=o(8551),w=o(5966);p.exports=function(y,x,k){var E,T;m(y);try{if(!(E=w(y,"return"))){if(x==="throw")throw k;return k}E=h(E,y)}catch(D){T=!0,E=D}if(x==="throw")throw k;if(T)throw E;return m(E),k}},3994:(p,C,o)=>{var h=o(7657).IteratorPrototype,m=o(2360),w=o(6980),y=o(687),x=o(6269),k=function(){return this};p.exports=function(E,T,D,R){var H=T+" Iterator";return E.prototype=m(h,{next:w(+!R,D)}),y(E,H,!1,!0),x[H]=k,E}},1088:(p,C,o)=>{var h=o(6518),m=o(9565),w=o(6395),y=o(350),x=o(4901),k=o(3994),E=o(2787),T=o(2967),D=o(687),R=o(6699),H=o(6840),M=o(8227),B=o(6269),W=o(7657),v=y.PROPER,Y=y.CONFIGURABLE,G=W.IteratorPrototype,X=W.BUGGY_SAFARI_ITERATORS,ee=M("iterator"),de="keys",oe="values",ye="entries",_e=function(){return this};p.exports=function(ke,xe,Le,Ee,Ue,Ke,tt){k(Le,xe,Ee);var je,Ye,qe,St=function(Xe){if(Xe===Ue&&jt)return jt;if(!X&&Xe&&Xe in ct)return ct[Xe];switch(Xe){case de:case oe:case ye:return function(){return new Le(this,Xe)}}return function(){return new Le(this)}},Nt=xe+" Iterator",_t=!1,ct=ke.prototype,Ge=ct[ee]||ct["@@iterator"]||Ue&&ct[Ue],jt=!X&&Ge||St(Ue),vt=xe==="Array"&&ct.entries||Ge;if(vt&&(je=E(vt.call(new ke)))!==Object.prototype&&je.next&&(w||E(je)===G||(T?T(je,G):x(je[ee])||H(je,ee,_e)),D(je,Nt,!0,!0),w&&(B[Nt]=_e)),v&&Ue===oe&&Ge&&Ge.name!==oe&&(!w&&Y?R(ct,"name",oe):(_t=!0,jt=function(){return m(Ge,this)})),Ue)if(Ye={values:St(oe),keys:Ke?jt:St(de),entries:St(ye)},tt)for(qe in Ye)(X||_t||!(qe in ct))&&H(ct,qe,Ye[qe]);else h({target:xe,proto:!0,forced:X||_t},Ye);return w&&!tt||ct[ee]===jt||H(ct,ee,jt,{name:Ue}),B[xe]=jt,Ye}},7657:(p,C,o)=>{var h,m,w,y=o(9039),x=o(4901),k=o(34),E=o(2360),T=o(2787),D=o(6840),R=o(8227),H=o(6395),M=R("iterator"),B=!1;[].keys&&("next"in(w=[].keys())?(m=T(T(w)))!==Object.prototype&&(h=m):B=!0),!k(h)||y(function(){var W={};return h[M].call(W)!==W})?h={}:H&&(h=E(h)),x(h[M])||D(h,M,function(){return this}),p.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:B}},6269:p=>{p.exports={}},6198:(p,C,o)=>{var h=o(8014);p.exports=function(m){return h(m.length)}},283:(p,C,o)=>{var h=o(9504),m=o(9039),w=o(4901),y=o(9297),x=o(3724),k=o(350).CONFIGURABLE,E=o(3706),T=o(1181),D=T.enforce,R=T.get,H=String,M=Object.defineProperty,B=h("".slice),W=h("".replace),v=h([].join),Y=x&&!m(function(){return M(function(){},"length",{value:8}).length!==8}),G=String(String).split("String"),X=p.exports=function(ee,de,oe){B(H(de),0,7)==="Symbol("&&(de="["+W(H(de),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),oe&&oe.getter&&(de="get "+de),oe&&oe.setter&&(de="set "+de),(!y(ee,"name")||k&&ee.name!==de)&&(x?M(ee,"name",{value:de,configurable:!0}):ee.name=de),Y&&oe&&y(oe,"arity")&&ee.length!==oe.arity&&M(ee,"length",{value:oe.arity});try{oe&&y(oe,"constructor")&&oe.constructor?x&&M(ee,"prototype",{writable:!1}):ee.prototype&&(ee.prototype=void 0)}catch{}var ye=D(ee);return y(ye,"source")||(ye.source=v(G,typeof de=="string"?de:"")),ee};Function.prototype.toString=X(function(){return w(this)&&R(this).source||E(this)},"toString")},741:p=>{var C=Math.ceil,o=Math.floor;p.exports=Math.trunc||function(h){var m=+h;return(m>0?o:C)(m)}},1955:(p,C,o)=>{var h,m,w,y,x,k=o(4475),E=o(3389),T=o(6080),D=o(9225).set,R=o(8265),H=o(8119),M=o(28),B=o(6765),W=o(9088),v=k.MutationObserver||k.WebKitMutationObserver,Y=k.document,G=k.process,X=k.Promise,ee=E("queueMicrotask");if(!ee){var de=new R,oe=function(){var ye,_e;for(W&&(ye=G.domain)&&ye.exit();_e=de.get();)try{_e()}catch(ke){throw de.head&&h(),ke}ye&&ye.enter()};H||W||B||!v||!Y?!M&&X&&X.resolve?((y=X.resolve(void 0)).constructor=X,x=T(y.then,y),h=function(){x(oe)}):W?h=function(){G.nextTick(oe)}:(D=T(D,k),h=function(){D(oe)}):(m=!0,w=Y.createTextNode(""),new v(oe).observe(w,{characterData:!0}),h=function(){w.data=m=!m}),ee=function(ye){de.head||h(),de.add(ye)}}p.exports=ee},6043:(p,C,o)=>{var h=o(9306),m=TypeError,w=function(y){var x,k;this.promise=new y(function(E,T){if(x!==void 0||k!==void 0)throw new m("Bad Promise constructor");x=E,k=T}),this.resolve=h(x),this.reject=h(k)};p.exports.f=function(y){return new w(y)}},5749:(p,C,o)=>{var h=o(788),m=TypeError;p.exports=function(w){if(h(w))throw new m("The method doesn't accept regular expressions");return w}},3904:(p,C,o)=>{var h=o(4475),m=o(9039),w=o(9504),y=o(655),x=o(3802).trim,k=o(7452),E=w("".charAt),T=h.parseFloat,D=h.Symbol,R=D&&D.iterator,H=1/T(k+"-0")!=-1/0||R&&!m(function(){T(Object(R))});p.exports=H?function(M){var B=x(y(M)),W=T(B);return W===0&&E(B,0)==="-"?-0:W}:T},2703:(p,C,o)=>{var h=o(4475),m=o(9039),w=o(9504),y=o(655),x=o(3802).trim,k=o(7452),E=h.parseInt,T=h.Symbol,D=T&&T.iterator,R=/^[+-]?0x/i,H=w(R.exec),M=E(k+"08")!==8||E(k+"0x16")!==22||D&&!m(function(){E(Object(D))});p.exports=M?function(B,W){var v=x(y(B));return E(v,W>>>0||(H(R,v)?16:10))}:E},4213:(p,C,o)=>{var h=o(3724),m=o(9504),w=o(9565),y=o(9039),x=o(1072),k=o(3717),E=o(8773),T=o(8981),D=o(7055),R=Object.assign,H=Object.defineProperty,M=m([].concat);p.exports=!R||y(function(){if(h&&R({b:1},R(H({},"a",{enumerable:!0,get:function(){H(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},W={},v=Symbol("assign detection"),Y="abcdefghijklmnopqrst";return B[v]=7,Y.split("").forEach(function(G){W[G]=G}),R({},B)[v]!==7||x(R({},W)).join("")!==Y})?function(B,W){for(var v=T(B),Y=arguments.length,G=1,X=k.f,ee=E.f;Y>G;)for(var de,oe=D(arguments[G++]),ye=X?M(x(oe),X(oe)):x(oe),_e=ye.length,ke=0;_e>ke;)de=ye[ke++],h&&!w(ee,oe,de)||(v[de]=oe[de]);return v}:R},2360:(p,C,o)=>{var h,m=o(8551),w=o(6801),y=o(8727),x=o(421),k=o(397),E=o(4055),T=o(6119),D="prototype",R="script",H=T("IE_PROTO"),M=function(){},B=function(Y){return"<"+R+">"+Y+"</"+R+">"},W=function(Y){Y.write(B("")),Y.close();var G=Y.parentWindow.Object;return Y=null,G},v=function(){try{h=new ActiveXObject("htmlfile")}catch{}var Y,G,X;v=typeof document<"u"?document.domain&&h?W(h):(G=E("iframe"),X="java"+R+":",G.style.display="none",k.appendChild(G),G.src=String(X),(Y=G.contentWindow.document).open(),Y.write(B("document.F=Object")),Y.close(),Y.F):W(h);for(var ee=y.length;ee--;)delete v[D][y[ee]];return v()};x[H]=!0,p.exports=Object.create||function(Y,G){var X;return Y!==null?(M[D]=m(Y),X=new M,M[D]=null,X[H]=Y):X=v(),G===void 0?X:w.f(X,G)}},6801:(p,C,o)=>{var h=o(3724),m=o(8686),w=o(4913),y=o(8551),x=o(5397),k=o(1072);C.f=h&&!m?Object.defineProperties:function(E,T){y(E);for(var D,R=x(T),H=k(T),M=H.length,B=0;M>B;)w.f(E,D=H[B++],R[D]);return E}},4913:(p,C,o)=>{var h=o(3724),m=o(5917),w=o(8686),y=o(8551),x=o(6969),k=TypeError,E=Object.defineProperty,T=Object.getOwnPropertyDescriptor,D="enumerable",R="configurable",H="writable";C.f=h?w?function(M,B,W){if(y(M),B=x(B),y(W),typeof M=="function"&&B==="prototype"&&"value"in W&&H in W&&!W[H]){var v=T(M,B);v&&v[H]&&(M[B]=W.value,W={configurable:R in W?W[R]:v[R],enumerable:D in W?W[D]:v[D],writable:!1})}return E(M,B,W)}:E:function(M,B,W){if(y(M),B=x(B),y(W),m)try{return E(M,B,W)}catch{}if("get"in W||"set"in W)throw new k("Accessors not supported");return"value"in W&&(M[B]=W.value),M}},7347:(p,C,o)=>{var h=o(3724),m=o(9565),w=o(8773),y=o(6980),x=o(5397),k=o(6969),E=o(9297),T=o(5917),D=Object.getOwnPropertyDescriptor;C.f=h?D:function(R,H){if(R=x(R),H=k(H),T)try{return D(R,H)}catch{}if(E(R,H))return y(!m(w.f,R,H),R[H])}},298:(p,C,o)=>{var h=o(4576),m=o(5397),w=o(8480).f,y=o(7680),x=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];p.exports.f=function(k){return x&&h(k)==="Window"?function(E){try{return w(E)}catch{return y(x)}}(k):w(m(k))}},8480:(p,C,o)=>{var h=o(1828),m=o(8727).concat("length","prototype");C.f=Object.getOwnPropertyNames||function(w){return h(w,m)}},3717:(p,C)=>{C.f=Object.getOwnPropertySymbols},2787:(p,C,o)=>{var h=o(9297),m=o(4901),w=o(8981),y=o(6119),x=o(2211),k=y("IE_PROTO"),E=Object,T=E.prototype;p.exports=x?E.getPrototypeOf:function(D){var R=w(D);if(h(R,k))return R[k];var H=R.constructor;return m(H)&&R instanceof H?H.prototype:R instanceof E?T:null}},1625:(p,C,o)=>{var h=o(9504);p.exports=h({}.isPrototypeOf)},1828:(p,C,o)=>{var h=o(9504),m=o(9297),w=o(5397),y=o(9617).indexOf,x=o(421),k=h([].push);p.exports=function(E,T){var D,R=w(E),H=0,M=[];for(D in R)!m(x,D)&&m(R,D)&&k(M,D);for(;T.length>H;)m(R,D=T[H++])&&(~y(M,D)||k(M,D));return M}},1072:(p,C,o)=>{var h=o(1828),m=o(8727);p.exports=Object.keys||function(w){return h(w,m)}},8773:(p,C)=>{var o={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,m=h&&!o.call({1:2},1);C.f=m?function(w){var y=h(this,w);return!!y&&y.enumerable}:o},2967:(p,C,o)=>{var h=o(6706),m=o(34),w=o(7750),y=o(3506);p.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x,k=!1,E={};try{(x=h(Object.prototype,"__proto__","set"))(E,[]),k=E instanceof Array}catch{}return function(T,D){return w(T),y(D),m(T)&&(k?x(T,D):T.__proto__=D),T}}():void 0)},2357:(p,C,o)=>{var h=o(3724),m=o(9039),w=o(9504),y=o(2787),x=o(1072),k=o(5397),E=w(o(8773).f),T=w([].push),D=h&&m(function(){var H=Object.create(null);return H[2]=2,!E(H,2)}),R=function(H){return function(M){for(var B,W=k(M),v=x(W),Y=D&&y(W)===null,G=v.length,X=0,ee=[];G>X;)B=v[X++],h&&!(Y?B in W:E(W,B))||T(ee,H?[B,W[B]]:W[B]);return ee}};p.exports={entries:R(!0),values:R(!1)}},3179:(p,C,o)=>{var h=o(2140),m=o(6955);p.exports=h?{}.toString:function(){return"[object "+m(this)+"]"}},4270:(p,C,o)=>{var h=o(9565),m=o(4901),w=o(34),y=TypeError;p.exports=function(x,k){var E,T;if(k==="string"&&m(E=x.toString)&&!w(T=h(E,x))||m(E=x.valueOf)&&!w(T=h(E,x))||k!=="string"&&m(E=x.toString)&&!w(T=h(E,x)))return T;throw new y("Can't convert object to primitive value")}},5031:(p,C,o)=>{var h=o(7751),m=o(9504),w=o(8480),y=o(3717),x=o(8551),k=m([].concat);p.exports=h("Reflect","ownKeys")||function(E){var T=w.f(x(E)),D=y.f;return D?k(T,D(E)):T}},9167:(p,C,o)=>{var h=o(4475);p.exports=h},1103:p=>{p.exports=function(C){try{return{error:!1,value:C()}}catch(o){return{error:!0,value:o}}}},916:(p,C,o)=>{var h=o(4475),m=o(550),w=o(4901),y=o(2796),x=o(3706),k=o(8227),E=o(7290),T=o(516),D=o(6395),R=o(7388),H=m&&m.prototype,M=k("species"),B=!1,W=w(h.PromiseRejectionEvent),v=y("Promise",function(){var Y=x(m),G=Y!==String(m);if(!G&&R===66||D&&(!H.catch||!H.finally))return!0;if(!R||R<51||!/native code/.test(Y)){var X=new m(function(de){de(1)}),ee=function(de){de(function(){},function(){})};if((X.constructor={})[M]=ee,!(B=X.then(function(){})instanceof ee))return!0}return!G&&(E||T)&&!W});p.exports={CONSTRUCTOR:v,REJECTION_EVENT:W,SUBCLASSING:B}},550:(p,C,o)=>{var h=o(4475);p.exports=h.Promise},3438:(p,C,o)=>{var h=o(8551),m=o(34),w=o(6043);p.exports=function(y,x){if(h(y),m(x)&&x.constructor===y)return x;var k=w.f(y);return(0,k.resolve)(x),k.promise}},537:(p,C,o)=>{var h=o(550),m=o(4428),w=o(916).CONSTRUCTOR;p.exports=w||!m(function(y){h.all(y).then(void 0,function(){})})},1056:(p,C,o)=>{var h=o(4913).f;p.exports=function(m,w,y){y in m||h(m,y,{configurable:!0,get:function(){return w[y]},set:function(x){w[y]=x}})}},8265:p=>{var C=function(){this.head=null,this.tail=null};C.prototype={add:function(o){var h={item:o,next:null},m=this.tail;m?m.next=h:this.head=h,this.tail=h},get:function(){var o=this.head;if(o)return(this.head=o.next)===null&&(this.tail=null),o.item}},p.exports=C},6682:(p,C,o)=>{var h=o(9565),m=o(8551),w=o(4901),y=o(4576),x=o(7323),k=TypeError;p.exports=function(E,T){var D=E.exec;if(w(D)){var R=h(D,E,T);return R!==null&&m(R),R}if(y(E)==="RegExp")return h(x,E,T);throw new k("RegExp#exec called on incompatible receiver")}},7323:(p,C,o)=>{var h,m,w=o(9565),y=o(9504),x=o(655),k=o(7979),E=o(8429),T=o(5745),D=o(2360),R=o(1181).get,H=o(3635),M=o(8814),B=T("native-string-replace",String.prototype.replace),W=RegExp.prototype.exec,v=W,Y=y("".charAt),G=y("".indexOf),X=y("".replace),ee=y("".slice),de=(m=/b*/g,w(W,h=/a/,"a"),w(W,m,"a"),h.lastIndex!==0||m.lastIndex!==0),oe=E.BROKEN_CARET,ye=/()??/.exec("")[1]!==void 0;(de||ye||oe||H||M)&&(v=function(_e){var ke,xe,Le,Ee,Ue,Ke,tt,je=this,Ye=R(je),qe=x(_e),St=Ye.raw;if(St)return St.lastIndex=je.lastIndex,ke=w(v,St,qe),je.lastIndex=St.lastIndex,ke;var Nt=Ye.groups,_t=oe&&je.sticky,ct=w(k,je),Ge=je.source,jt=0,vt=qe;if(_t&&(ct=X(ct,"y",""),G(ct,"g")===-1&&(ct+="g"),vt=ee(qe,je.lastIndex),je.lastIndex>0&&(!je.multiline||je.multiline&&Y(qe,je.lastIndex-1)!==`
66
+ `)&&(Ge="(?: "+Ge+")",vt=" "+vt,jt++),xe=new RegExp("^(?:"+Ge+")",ct)),ye&&(xe=new RegExp("^"+Ge+"$(?!\\s)",ct)),de&&(Le=je.lastIndex),Ee=w(W,_t?xe:je,vt),_t?Ee?(Ee.input=ee(Ee.input,jt),Ee[0]=ee(Ee[0],jt),Ee.index=je.lastIndex,je.lastIndex+=Ee[0].length):je.lastIndex=0:de&&Ee&&(je.lastIndex=je.global?Ee.index+Ee[0].length:Le),ye&&Ee&&Ee.length>1&&w(B,Ee[0],xe,function(){for(Ue=1;Ue<arguments.length-2;Ue++)arguments[Ue]===void 0&&(Ee[Ue]=void 0)}),Ee&&Nt)for(Ee.groups=Ke=D(null),Ue=0;Ue<Nt.length;Ue++)Ke[(tt=Nt[Ue])[0]]=Ee[tt[1]];return Ee}),p.exports=v},7979:(p,C,o)=>{var h=o(8551);p.exports=function(){var m=h(this),w="";return m.hasIndices&&(w+="d"),m.global&&(w+="g"),m.ignoreCase&&(w+="i"),m.multiline&&(w+="m"),m.dotAll&&(w+="s"),m.unicode&&(w+="u"),m.unicodeSets&&(w+="v"),m.sticky&&(w+="y"),w}},1034:(p,C,o)=>{var h=o(9565),m=o(9297),w=o(1625),y=o(7979),x=RegExp.prototype;p.exports=function(k){var E=k.flags;return E!==void 0||"flags"in x||m(k,"flags")||!w(x,k)?E:h(y,k)}},8429:(p,C,o)=>{var h=o(9039),m=o(4475).RegExp,w=h(function(){var k=m("a","y");return k.lastIndex=2,k.exec("abcd")!==null}),y=w||h(function(){return!m("a","y").sticky}),x=w||h(function(){var k=m("^r","gy");return k.lastIndex=2,k.exec("str")!==null});p.exports={BROKEN_CARET:x,MISSED_STICKY:y,UNSUPPORTED_Y:w}},3635:(p,C,o)=>{var h=o(9039),m=o(4475).RegExp;p.exports=h(function(){var w=m(".","s");return!(w.dotAll&&w.test(`
67
+ `)&&w.flags==="s")})},8814:(p,C,o)=>{var h=o(9039),m=o(4475).RegExp;p.exports=h(function(){var w=m("(?<a>b)","g");return w.exec("b").groups.a!=="b"||"b".replace(w,"$<a>c")!=="bc"})},7750:(p,C,o)=>{var h=o(4117),m=TypeError;p.exports=function(w){if(h(w))throw new m("Can't call method on "+w);return w}},3389:(p,C,o)=>{var h=o(4475),m=o(3724),w=Object.getOwnPropertyDescriptor;p.exports=function(y){if(!m)return h[y];var x=w(h,y);return x&&x.value}},9472:(p,C,o)=>{var h,m=o(4475),w=o(8745),y=o(4901),x=o(6763),k=o(9392),E=o(7680),T=o(2812),D=m.Function,R=/MSIE .\./.test(k)||x&&((h=m.Bun.version.split(".")).length<3||h[0]==="0"&&(h[1]<3||h[1]==="3"&&h[2]==="0"));p.exports=function(H,M){var B=M?2:1;return R?function(W,v){var Y=T(arguments.length,1)>B,G=y(W)?W:D(W),X=Y?E(arguments,B):[],ee=Y?function(){w(G,this,X)}:G;return M?H(ee,v):H(ee)}:H}},7633:(p,C,o)=>{var h=o(7751),m=o(2106),w=o(8227),y=o(3724),x=w("species");p.exports=function(k){var E=h(k);y&&E&&!E[x]&&m(E,x,{configurable:!0,get:function(){return this}})}},687:(p,C,o)=>{var h=o(4913).f,m=o(9297),w=o(8227)("toStringTag");p.exports=function(y,x,k){y&&!k&&(y=y.prototype),y&&!m(y,w)&&h(y,w,{configurable:!0,value:x})}},6119:(p,C,o)=>{var h=o(5745),m=o(3392),w=h("keys");p.exports=function(y){return w[y]||(w[y]=m(y))}},7629:(p,C,o)=>{var h=o(6395),m=o(4475),w=o(9433),y="__core-js_shared__",x=p.exports=m[y]||w(y,{});(x.versions||(x.versions=[])).push({version:"3.36.1",mode:h?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(p,C,o)=>{var h=o(7629);p.exports=function(m,w){return h[m]||(h[m]=w||{})}},2293:(p,C,o)=>{var h=o(8551),m=o(5548),w=o(4117),y=o(8227)("species");p.exports=function(x,k){var E,T=h(x).constructor;return T===void 0||w(E=h(T)[y])?k:m(E)}},8183:(p,C,o)=>{var h=o(9504),m=o(1291),w=o(655),y=o(7750),x=h("".charAt),k=h("".charCodeAt),E=h("".slice),T=function(D){return function(R,H){var M,B,W=w(y(R)),v=m(H),Y=W.length;return v<0||v>=Y?D?"":void 0:(M=k(W,v))<55296||M>56319||v+1===Y||(B=k(W,v+1))<56320||B>57343?D?x(W,v):M:D?E(W,v,v+2):B-56320+(M-55296<<10)+65536}};p.exports={codeAt:T(!1),charAt:T(!0)}},533:(p,C,o)=>{var h=o(9504),m=o(8014),w=o(655),y=o(2333),x=o(7750),k=h(y),E=h("".slice),T=Math.ceil,D=function(R){return function(H,M,B){var W,v,Y=w(x(H)),G=m(M),X=Y.length,ee=B===void 0?" ":w(B);return G<=X||ee===""?Y:((v=k(ee,T((W=G-X)/ee.length))).length>W&&(v=E(v,0,W)),R?Y+v:v+Y)}};p.exports={start:D(!1),end:D(!0)}},2333:(p,C,o)=>{var h=o(1291),m=o(655),w=o(7750),y=RangeError;p.exports=function(x){var k=m(w(this)),E="",T=h(x);if(T<0||T===1/0)throw new y("Wrong number of repetitions");for(;T>0;(T>>>=1)&&(k+=k))1&T&&(E+=k);return E}},706:(p,C,o)=>{var h=o(350).PROPER,m=o(9039),w=o(7452);p.exports=function(y){return m(function(){return!!w[y]()||"​…᠎"[y]()!=="​…᠎"||h&&w[y].name!==y})}},3802:(p,C,o)=>{var h=o(9504),m=o(7750),w=o(655),y=o(7452),x=h("".replace),k=RegExp("^["+y+"]+"),E=RegExp("(^|[^"+y+"])["+y+"]+$"),T=function(D){return function(R){var H=w(m(R));return 1&D&&(H=x(H,k,"")),2&D&&(H=x(H,E,"$1")),H}};p.exports={start:T(1),end:T(2),trim:T(3)}},4495:(p,C,o)=>{var h=o(7388),m=o(9039),w=o(4475).String;p.exports=!!Object.getOwnPropertySymbols&&!m(function(){var y=Symbol("symbol detection");return!w(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&h&&h<41})},8242:(p,C,o)=>{var h=o(9565),m=o(7751),w=o(8227),y=o(6840);p.exports=function(){var x=m("Symbol"),k=x&&x.prototype,E=k&&k.valueOf,T=w("toPrimitive");k&&!k[T]&&y(k,T,function(D){return h(E,this)},{arity:1})}},1296:(p,C,o)=>{var h=o(4495);p.exports=h&&!!Symbol.for&&!!Symbol.keyFor},9225:(p,C,o)=>{var h,m,w,y,x=o(4475),k=o(8745),E=o(6080),T=o(4901),D=o(9297),R=o(9039),H=o(397),M=o(7680),B=o(4055),W=o(2812),v=o(8119),Y=o(9088),G=x.setImmediate,X=x.clearImmediate,ee=x.process,de=x.Dispatch,oe=x.Function,ye=x.MessageChannel,_e=x.String,ke=0,xe={},Le="onreadystatechange";R(function(){h=x.location});var Ee=function(je){if(D(xe,je)){var Ye=xe[je];delete xe[je],Ye()}},Ue=function(je){return function(){Ee(je)}},Ke=function(je){Ee(je.data)},tt=function(je){x.postMessage(_e(je),h.protocol+"//"+h.host)};G&&X||(G=function(je){W(arguments.length,1);var Ye=T(je)?je:oe(je),qe=M(arguments,1);return xe[++ke]=function(){k(Ye,void 0,qe)},m(ke),ke},X=function(je){delete xe[je]},Y?m=function(je){ee.nextTick(Ue(je))}:de&&de.now?m=function(je){de.now(Ue(je))}:ye&&!v?(y=(w=new ye).port2,w.port1.onmessage=Ke,m=E(y.postMessage,y)):x.addEventListener&&T(x.postMessage)&&!x.importScripts&&h&&h.protocol!=="file:"&&!R(tt)?(m=tt,x.addEventListener("message",Ke,!1)):m=Le in B("script")?function(je){H.appendChild(B("script"))[Le]=function(){H.removeChild(this),Ee(je)}}:function(je){setTimeout(Ue(je),0)}),p.exports={set:G,clear:X}},1240:(p,C,o)=>{var h=o(9504);p.exports=h(1 .valueOf)},5610:(p,C,o)=>{var h=o(1291),m=Math.max,w=Math.min;p.exports=function(y,x){var k=h(y);return k<0?m(k+x,0):w(k,x)}},5397:(p,C,o)=>{var h=o(7055),m=o(7750);p.exports=function(w){return h(m(w))}},1291:(p,C,o)=>{var h=o(741);p.exports=function(m){var w=+m;return w!=w||w===0?0:h(w)}},8014:(p,C,o)=>{var h=o(1291),m=Math.min;p.exports=function(w){var y=h(w);return y>0?m(y,9007199254740991):0}},8981:(p,C,o)=>{var h=o(7750),m=Object;p.exports=function(w){return m(h(w))}},2777:(p,C,o)=>{var h=o(9565),m=o(34),w=o(757),y=o(5966),x=o(4270),k=o(8227),E=TypeError,T=k("toPrimitive");p.exports=function(D,R){if(!m(D)||w(D))return D;var H,M=y(D,T);if(M){if(R===void 0&&(R="default"),H=h(M,D,R),!m(H)||w(H))return H;throw new E("Can't convert object to primitive value")}return R===void 0&&(R="number"),x(D,R)}},6969:(p,C,o)=>{var h=o(2777),m=o(757);p.exports=function(w){var y=h(w,"string");return m(y)?y:y+""}},2140:(p,C,o)=>{var h={};h[o(8227)("toStringTag")]="z",p.exports=String(h)==="[object z]"},655:(p,C,o)=>{var h=o(6955),m=String;p.exports=function(w){if(h(w)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return m(w)}},6823:p=>{var C=String;p.exports=function(o){try{return C(o)}catch{return"Object"}}},3392:(p,C,o)=>{var h=o(9504),m=0,w=Math.random(),y=h(1 .toString);p.exports=function(x){return"Symbol("+(x===void 0?"":x)+")_"+y(++m+w,36)}},7040:(p,C,o)=>{var h=o(4495);p.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},8686:(p,C,o)=>{var h=o(3724),m=o(9039);p.exports=h&&m(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},2812:p=>{var C=TypeError;p.exports=function(o,h){if(o<h)throw new C("Not enough arguments");return o}},8622:(p,C,o)=>{var h=o(4475),m=o(4901),w=h.WeakMap;p.exports=m(w)&&/native code/.test(String(w))},511:(p,C,o)=>{var h=o(9167),m=o(9297),w=o(1951),y=o(4913).f;p.exports=function(x){var k=h.Symbol||(h.Symbol={});m(k,x)||y(k,x,{value:w.f(x)})}},1951:(p,C,o)=>{var h=o(8227);C.f=h},8227:(p,C,o)=>{var h=o(4475),m=o(5745),w=o(9297),y=o(3392),x=o(4495),k=o(7040),E=h.Symbol,T=m("wks"),D=k?E.for||E:E&&E.withoutSetter||y;p.exports=function(R){return w(T,R)||(T[R]=x&&w(E,R)?E[R]:D("Symbol."+R)),T[R]}},7452:p=>{p.exports=`
68
+ \v\f\r                 \u2028\u2029\uFEFF`},8706:(p,C,o)=>{var h=o(6518),m=o(9039),w=o(4376),y=o(34),x=o(8981),k=o(6198),E=o(6837),T=o(4659),D=o(1469),R=o(597),H=o(8227),M=o(7388),B=H("isConcatSpreadable"),W=M>=51||!m(function(){var Y=[];return Y[B]=!1,Y.concat()[0]!==Y}),v=function(Y){if(!y(Y))return!1;var G=Y[B];return G!==void 0?!!G:w(Y)};h({target:"Array",proto:!0,arity:1,forced:!W||!R("concat")},{concat:function(Y){var G,X,ee,de,oe,ye=x(this),_e=D(ye,0),ke=0;for(G=-1,ee=arguments.length;G<ee;G++)if(v(oe=G===-1?ye:arguments[G]))for(de=k(oe),E(ke+de),X=0;X<de;X++,ke++)X in oe&&T(_e,ke,oe[X]);else E(ke+1),T(_e,ke++,oe);return _e.length=ke,_e}})},8431:(p,C,o)=>{var h=o(6518),m=o(9213).every;h({target:"Array",proto:!0,forced:!o(4598)("every")},{every:function(w){return m(this,w,arguments.length>1?arguments[1]:void 0)}})},2008:(p,C,o)=>{var h=o(6518),m=o(9213).filter;h({target:"Array",proto:!0,forced:!o(597)("filter")},{filter:function(w){return m(this,w,arguments.length>1?arguments[1]:void 0)}})},113:(p,C,o)=>{var h=o(6518),m=o(9213).find,w=o(6469),y="find",x=!0;y in[]&&Array(1)[y](function(){x=!1}),h({target:"Array",proto:!0,forced:x},{find:function(k){return m(this,k,arguments.length>1?arguments[1]:void 0)}}),w(y)},1629:(p,C,o)=>{var h=o(6518),m=o(235);h({target:"Array",proto:!0,forced:[].forEach!==m},{forEach:m})},3418:(p,C,o)=>{var h=o(6518),m=o(7916);h({target:"Array",stat:!0,forced:!o(4428)(function(w){Array.from(w)})},{from:m})},4423:(p,C,o)=>{var h=o(6518),m=o(9617).includes,w=o(9039),y=o(6469);h({target:"Array",proto:!0,forced:w(function(){return!Array(1).includes()})},{includes:function(x){return m(this,x,arguments.length>1?arguments[1]:void 0)}}),y("includes")},5276:(p,C,o)=>{var h=o(6518),m=o(7476),w=o(9617).indexOf,y=o(4598),x=m([].indexOf),k=!!x&&1/x([1],1,-0)<0;h({target:"Array",proto:!0,forced:k||!y("indexOf")},{indexOf:function(E){var T=arguments.length>1?arguments[1]:void 0;return k?x(this,E,T)||0:w(this,E,T)}})},4346:(p,C,o)=>{o(6518)({target:"Array",stat:!0},{isArray:o(4376)})},3792:(p,C,o)=>{var h=o(5397),m=o(6469),w=o(6269),y=o(1181),x=o(4913).f,k=o(1088),E=o(2529),T=o(6395),D=o(3724),R="Array Iterator",H=y.set,M=y.getterFor(R);p.exports=k(Array,"Array",function(W,v){H(this,{type:R,target:h(W),index:0,kind:v})},function(){var W=M(this),v=W.target,Y=W.index++;if(!v||Y>=v.length)return W.target=void 0,E(void 0,!0);switch(W.kind){case"keys":return E(Y,!1);case"values":return E(v[Y],!1)}return E([Y,v[Y]],!1)},"values");var B=w.Arguments=w.Array;if(m("keys"),m("values"),m("entries"),!T&&D&&B.name!=="values")try{x(B,"name",{value:"values"})}catch{}},8598:(p,C,o)=>{var h=o(6518),m=o(9504),w=o(7055),y=o(5397),x=o(4598),k=m([].join);h({target:"Array",proto:!0,forced:w!==Object||!x("join",",")},{join:function(E){return k(y(this),E===void 0?",":E)}})},2062:(p,C,o)=>{var h=o(6518),m=o(9213).map;h({target:"Array",proto:!0,forced:!o(597)("map")},{map:function(w){return m(this,w,arguments.length>1?arguments[1]:void 0)}})},2712:(p,C,o)=>{var h=o(6518),m=o(926).left,w=o(4598),y=o(7388);h({target:"Array",proto:!0,forced:!o(9088)&&y>79&&y<83||!w("reduce")},{reduce:function(x){var k=arguments.length;return m(this,x,k,k>1?arguments[1]:void 0)}})},4490:(p,C,o)=>{var h=o(6518),m=o(9504),w=o(4376),y=m([].reverse),x=[1,2];h({target:"Array",proto:!0,forced:String(x)===String(x.reverse())},{reverse:function(){return w(this)&&(this.length=this.length),y(this)}})},4782:(p,C,o)=>{var h=o(6518),m=o(4376),w=o(3517),y=o(34),x=o(5610),k=o(6198),E=o(5397),T=o(4659),D=o(8227),R=o(597),H=o(7680),M=R("slice"),B=D("species"),W=Array,v=Math.max;h({target:"Array",proto:!0,forced:!M},{slice:function(Y,G){var X,ee,de,oe=E(this),ye=k(oe),_e=x(Y,ye),ke=x(G===void 0?ye:G,ye);if(m(oe)&&(X=oe.constructor,(w(X)&&(X===W||m(X.prototype))||y(X)&&(X=X[B])===null)&&(X=void 0),X===W||X===void 0))return H(oe,_e,ke);for(ee=new(X===void 0?W:X)(v(ke-_e,0)),de=0;_e<ke;_e++,de++)_e in oe&&T(ee,de,oe[_e]);return ee.length=de,ee}})},5086:(p,C,o)=>{var h=o(6518),m=o(9213).some;h({target:"Array",proto:!0,forced:!o(4598)("some")},{some:function(w){return m(this,w,arguments.length>1?arguments[1]:void 0)}})},6910:(p,C,o)=>{var h=o(6518),m=o(9504),w=o(9306),y=o(8981),x=o(6198),k=o(4606),E=o(655),T=o(9039),D=o(4488),R=o(4598),H=o(8834),M=o(3202),B=o(7388),W=o(9160),v=[],Y=m(v.sort),G=m(v.push),X=T(function(){v.sort(void 0)}),ee=T(function(){v.sort(null)}),de=R("sort"),oe=!T(function(){if(B)return B<70;if(!(H&&H>3)){if(M)return!0;if(W)return W<603;var ye,_e,ke,xe,Le="";for(ye=65;ye<76;ye++){switch(_e=String.fromCharCode(ye),ye){case 66:case 69:case 70:case 72:ke=3;break;case 68:case 71:ke=4;break;default:ke=2}for(xe=0;xe<47;xe++)v.push({k:_e+xe,v:ke})}for(v.sort(function(Ee,Ue){return Ue.v-Ee.v}),xe=0;xe<v.length;xe++)_e=v[xe].k.charAt(0),Le.charAt(Le.length-1)!==_e&&(Le+=_e);return Le!=="DGBEFHACIJK"}});h({target:"Array",proto:!0,forced:X||!ee||!de||!oe},{sort:function(ye){ye!==void 0&&w(ye);var _e=y(this);if(oe)return ye===void 0?Y(_e):Y(_e,ye);var ke,xe,Le=[],Ee=x(_e);for(xe=0;xe<Ee;xe++)xe in _e&&G(Le,_e[xe]);for(D(Le,function(Ue){return function(Ke,tt){return tt===void 0?-1:Ke===void 0?1:Ue!==void 0?+Ue(Ke,tt)||0:E(Ke)>E(tt)?1:-1}}(ye)),ke=x(Le),xe=0;xe<ke;)_e[xe]=Le[xe++];for(;xe<Ee;)k(_e,xe++);return _e}})},4554:(p,C,o)=>{var h=o(6518),m=o(8981),w=o(5610),y=o(1291),x=o(6198),k=o(4527),E=o(6837),T=o(1469),D=o(4659),R=o(4606),H=o(597)("splice"),M=Math.max,B=Math.min;h({target:"Array",proto:!0,forced:!H},{splice:function(W,v){var Y,G,X,ee,de,oe,ye=m(this),_e=x(ye),ke=w(W,_e),xe=arguments.length;for(xe===0?Y=G=0:xe===1?(Y=0,G=_e-ke):(Y=xe-2,G=B(M(y(v),0),_e-ke)),E(_e+Y-G),X=T(ye,G),ee=0;ee<G;ee++)(de=ke+ee)in ye&&D(X,ee,ye[de]);if(X.length=G,Y<G){for(ee=ke;ee<_e-G;ee++)oe=ee+Y,(de=ee+G)in ye?ye[oe]=ye[de]:R(ye,oe);for(ee=_e;ee>_e-G+Y;ee--)R(ye,ee-1)}else if(Y>G)for(ee=_e-G;ee>ke;ee--)oe=ee+Y-1,(de=ee+G-1)in ye?ye[oe]=ye[de]:R(ye,oe);for(ee=0;ee<Y;ee++)ye[ee+ke]=arguments[ee+2];return k(ye,_e-G+Y),X}})},1688:(p,C,o)=>{var h=o(6518),m=o(380);h({target:"Date",proto:!0,forced:Date.prototype.toISOString!==m},{toISOString:m})},739:(p,C,o)=>{var h=o(6518),m=o(9039),w=o(8981),y=o(2777);h({target:"Date",proto:!0,arity:1,forced:m(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1})},{toJSON:function(x){var k=w(this),E=y(k,"number");return typeof E!="number"||isFinite(E)?k.toISOString():null}})},9572:(p,C,o)=>{var h=o(9297),m=o(6840),w=o(3640),y=o(8227)("toPrimitive"),x=Date.prototype;h(x,y)||m(x,y,w)},3288:(p,C,o)=>{var h=o(9504),m=o(6840),w=Date.prototype,y="Invalid Date",x="toString",k=h(w[x]),E=h(w.getTime);String(new Date(NaN))!==y&&m(w,x,function(){var T=E(this);return T==T?k(this):y})},4170:(p,C,o)=>{var h=o(6518),m=o(566);h({target:"Function",proto:!0,forced:Function.bind!==m},{bind:m})},2010:(p,C,o)=>{var h=o(3724),m=o(350).EXISTS,w=o(9504),y=o(2106),x=Function.prototype,k=w(x.toString),E=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,T=w(E.exec);h&&!m&&y(x,"name",{configurable:!0,get:function(){try{return T(E,k(this))[1]}catch{return""}}})},3110:(p,C,o)=>{var h=o(6518),m=o(7751),w=o(8745),y=o(9565),x=o(9504),k=o(9039),E=o(4901),T=o(757),D=o(7680),R=o(6933),H=o(4495),M=String,B=m("JSON","stringify"),W=x(/./.exec),v=x("".charAt),Y=x("".charCodeAt),G=x("".replace),X=x(1 .toString),ee=/[\uD800-\uDFFF]/g,de=/^[\uD800-\uDBFF]$/,oe=/^[\uDC00-\uDFFF]$/,ye=!H||k(function(){var Le=m("Symbol")("stringify detection");return B([Le])!=="[null]"||B({a:Le})!=="{}"||B(Object(Le))!=="{}"}),_e=k(function(){return B("\uDF06\uD834")!=='"\\udf06\\ud834"'||B("\uDEAD")!=='"\\udead"'}),ke=function(Le,Ee){var Ue=D(arguments),Ke=R(Ee);if(E(Ke)||Le!==void 0&&!T(Le))return Ue[1]=function(tt,je){if(E(Ke)&&(je=y(Ke,this,M(tt),je)),!T(je))return je},w(B,null,Ue)},xe=function(Le,Ee,Ue){var Ke=v(Ue,Ee-1),tt=v(Ue,Ee+1);return W(de,Le)&&!W(oe,tt)||W(oe,Le)&&!W(de,Ke)?"\\u"+X(Y(Le,0),16):Le};B&&h({target:"JSON",stat:!0,arity:3,forced:ye||_e},{stringify:function(Le,Ee,Ue){var Ke=D(arguments),tt=w(ye?ke:B,null,Ke);return _e&&typeof tt=="string"?G(tt,ee,xe):tt}})},4731:(p,C,o)=>{var h=o(4475);o(687)(h.JSON,"JSON",!0)},479:(p,C,o)=>{o(687)(Math,"Math",!0)},2892:(p,C,o)=>{var h=o(6518),m=o(6395),w=o(3724),y=o(4475),x=o(9167),k=o(9504),E=o(2796),T=o(9297),D=o(3167),R=o(1625),H=o(757),M=o(2777),B=o(9039),W=o(8480).f,v=o(7347).f,Y=o(4913).f,G=o(1240),X=o(3802).trim,ee="Number",de=y[ee],oe=x[ee],ye=de.prototype,_e=y.TypeError,ke=k("".slice),xe=k("".charCodeAt),Le=E(ee,!de(" 0o1")||!de("0b1")||de("+0x1")),Ee=function(Ke){var tt,je=arguments.length<1?0:de(function(Ye){var qe=M(Ye,"number");return typeof qe=="bigint"?qe:function(St){var Nt,_t,ct,Ge,jt,vt,Xe,st,pt=M(St,"number");if(H(pt))throw new _e("Cannot convert a Symbol value to a number");if(typeof pt=="string"&&pt.length>2){if(pt=X(pt),(Nt=xe(pt,0))===43||Nt===45){if((_t=xe(pt,2))===88||_t===120)return NaN}else if(Nt===48){switch(xe(pt,1)){case 66:case 98:ct=2,Ge=49;break;case 79:case 111:ct=8,Ge=55;break;default:return+pt}for(vt=(jt=ke(pt,2)).length,Xe=0;Xe<vt;Xe++)if((st=xe(jt,Xe))<48||st>Ge)return NaN;return parseInt(jt,ct)}}return+pt}(qe)}(Ke));return R(ye,tt=this)&&B(function(){G(tt)})?D(Object(je),this,Ee):je};Ee.prototype=ye,Le&&!m&&(ye.constructor=Ee),h({global:!0,constructor:!0,wrap:!0,forced:Le},{Number:Ee});var Ue=function(Ke,tt){for(var je,Ye=w?W(tt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),qe=0;Ye.length>qe;qe++)T(tt,je=Ye[qe])&&!T(Ke,je)&&Y(Ke,je,v(tt,je))};m&&oe&&Ue(x[ee],oe),(Le||m)&&Ue(x[ee],de)},9868:(p,C,o)=>{var h=o(6518),m=o(9504),w=o(1291),y=o(1240),x=o(2333),k=o(9039),E=RangeError,T=String,D=Math.floor,R=m(x),H=m("".slice),M=m(1 .toFixed),B=function(G,X,ee){return X===0?ee:X%2==1?B(G,X-1,ee*G):B(G*G,X/2,ee)},W=function(G,X,ee){for(var de=-1,oe=ee;++de<6;)oe+=X*G[de],G[de]=oe%1e7,oe=D(oe/1e7)},v=function(G,X){for(var ee=6,de=0;--ee>=0;)de+=G[ee],G[ee]=D(de/X),de=de%X*1e7},Y=function(G){for(var X=6,ee="";--X>=0;)if(ee!==""||X===0||G[X]!==0){var de=T(G[X]);ee=ee===""?de:ee+R("0",7-de.length)+de}return ee};h({target:"Number",proto:!0,forced:k(function(){return M(8e-5,3)!=="0.000"||M(.9,0)!=="1"||M(1.255,2)!=="1.25"||M(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!k(function(){M({})})},{toFixed:function(G){var X,ee,de,oe,ye=y(this),_e=w(G),ke=[0,0,0,0,0,0],xe="",Le="0";if(_e<0||_e>20)throw new E("Incorrect fraction digits");if(ye!=ye)return"NaN";if(ye<=-1e21||ye>=1e21)return T(ye);if(ye<0&&(xe="-",ye=-ye),ye>1e-21)if(ee=(X=function(Ee){for(var Ue=0,Ke=Ee;Ke>=4096;)Ue+=12,Ke/=4096;for(;Ke>=2;)Ue+=1,Ke/=2;return Ue}(ye*B(2,69,1))-69)<0?ye*B(2,-X,1):ye/B(2,X,1),ee*=4503599627370496,(X=52-X)>0){for(W(ke,0,ee),de=_e;de>=7;)W(ke,1e7,0),de-=7;for(W(ke,B(10,de,1),0),de=X-1;de>=23;)v(ke,8388608),de-=23;v(ke,1<<de),W(ke,1,1),v(ke,2),Le=Y(ke)}else W(ke,0,ee),W(ke,1<<-X,0),Le=Y(ke)+R("0",_e);return _e>0?xe+((oe=Le.length)<=_e?"0."+R("0",_e-oe)+Le:H(Le,0,oe-_e)+"."+H(Le,oe-_e)):xe+Le}})},9085:(p,C,o)=>{var h=o(6518),m=o(4213);h({target:"Object",stat:!0,arity:2,forced:Object.assign!==m},{assign:m})},9904:(p,C,o)=>{o(6518)({target:"Object",stat:!0,sham:!o(3724)},{create:o(2360)})},7945:(p,C,o)=>{var h=o(6518),m=o(3724),w=o(6801).f;h({target:"Object",stat:!0,forced:Object.defineProperties!==w,sham:!m},{defineProperties:w})},4185:(p,C,o)=>{var h=o(6518),m=o(3724),w=o(4913).f;h({target:"Object",stat:!0,forced:Object.defineProperty!==w,sham:!m},{defineProperty:w})},5506:(p,C,o)=>{var h=o(6518),m=o(2357).entries;h({target:"Object",stat:!0},{entries:function(w){return m(w)}})},3851:(p,C,o)=>{var h=o(6518),m=o(9039),w=o(5397),y=o(7347).f,x=o(3724);h({target:"Object",stat:!0,forced:!x||m(function(){y(1)}),sham:!x},{getOwnPropertyDescriptor:function(k,E){return y(w(k),E)}})},1278:(p,C,o)=>{var h=o(6518),m=o(3724),w=o(5031),y=o(5397),x=o(7347),k=o(4659);h({target:"Object",stat:!0,sham:!m},{getOwnPropertyDescriptors:function(E){for(var T,D,R=y(E),H=x.f,M=w(R),B={},W=0;M.length>W;)(D=H(R,T=M[W++]))!==void 0&&k(B,T,D);return B}})},9773:(p,C,o)=>{var h=o(6518),m=o(4495),w=o(9039),y=o(3717),x=o(8981);h({target:"Object",stat:!0,forced:!m||w(function(){y.f(1)})},{getOwnPropertySymbols:function(k){var E=y.f;return E?E(x(k)):[]}})},875:(p,C,o)=>{var h=o(6518),m=o(9039),w=o(8981),y=o(2787),x=o(2211);h({target:"Object",stat:!0,forced:m(function(){y(1)}),sham:!x},{getPrototypeOf:function(k){return y(w(k))}})},9432:(p,C,o)=>{var h=o(6518),m=o(8981),w=o(1072);h({target:"Object",stat:!0,forced:o(9039)(function(){w(1)})},{keys:function(y){return w(m(y))}})},287:(p,C,o)=>{o(6518)({target:"Object",stat:!0},{setPrototypeOf:o(2967)})},6099:(p,C,o)=>{var h=o(2140),m=o(6840),w=o(3179);h||m(Object.prototype,"toString",w,{unsafe:!0})},6034:(p,C,o)=>{var h=o(6518),m=o(2357).values;h({target:"Object",stat:!0},{values:function(w){return m(w)}})},8459:(p,C,o)=>{var h=o(6518),m=o(3904);h({global:!0,forced:parseFloat!==m},{parseFloat:m})},8940:(p,C,o)=>{var h=o(6518),m=o(2703);h({global:!0,forced:parseInt!==m},{parseInt:m})},6499:(p,C,o)=>{var h=o(6518),m=o(9565),w=o(9306),y=o(6043),x=o(1103),k=o(2652);h({target:"Promise",stat:!0,forced:o(537)},{all:function(E){var T=this,D=y.f(T),R=D.resolve,H=D.reject,M=x(function(){var B=w(T.resolve),W=[],v=0,Y=1;k(E,function(G){var X=v++,ee=!1;Y++,m(B,T,G).then(function(de){ee||(ee=!0,W[X]=de,--Y||R(W))},H)}),--Y||R(W)});return M.error&&H(M.value),D.promise}})},2003:(p,C,o)=>{var h=o(6518),m=o(6395),w=o(916).CONSTRUCTOR,y=o(550),x=o(7751),k=o(4901),E=o(6840),T=y&&y.prototype;if(h({target:"Promise",proto:!0,forced:w,real:!0},{catch:function(R){return this.then(void 0,R)}}),!m&&k(y)){var D=x("Promise").prototype.catch;T.catch!==D&&E(T,"catch",D,{unsafe:!0})}},436:(p,C,o)=>{var h,m,w,y=o(6518),x=o(6395),k=o(9088),E=o(4475),T=o(9565),D=o(6840),R=o(2967),H=o(687),M=o(7633),B=o(9306),W=o(4901),v=o(34),Y=o(679),G=o(2293),X=o(9225).set,ee=o(1955),de=o(3138),oe=o(1103),ye=o(8265),_e=o(1181),ke=o(550),xe=o(916),Le=o(6043),Ee="Promise",Ue=xe.CONSTRUCTOR,Ke=xe.REJECTION_EVENT,tt=xe.SUBCLASSING,je=_e.getterFor(Ee),Ye=_e.set,qe=ke&&ke.prototype,St=ke,Nt=qe,_t=E.TypeError,ct=E.document,Ge=E.process,jt=Le.f,vt=jt,Xe=!!(ct&&ct.createEvent&&E.dispatchEvent),st="unhandledrejection",pt=function(fe){var Pe;return!(!v(fe)||!W(Pe=fe.then))&&Pe},zt=function(fe,Pe){var ze,bt,Pt,Xt=Pe.value,nr=Pe.state===1,Wt=nr?fe.ok:fe.fail,At=fe.resolve,Ut=fe.reject,ft=fe.domain;try{Wt?(nr||(Pe.rejection===2&&hr(Pe),Pe.rejection=1),Wt===!0?ze=Xt:(ft&&ft.enter(),ze=Wt(Xt),ft&&(ft.exit(),Pt=!0)),ze===fe.promise?Ut(new _t("Promise-chain cycle")):(bt=pt(ze))?T(bt,ze,At,Ut):At(ze)):Ut(Xt)}catch(er){ft&&!Pt&&ft.exit(),Ut(er)}},Qt=function(fe,Pe){fe.notified||(fe.notified=!0,ee(function(){for(var ze,bt=fe.reactions;ze=bt.get();)zt(ze,fe);fe.notified=!1,Pe&&!fe.rejection&&or(fe)}))},Lt=function(fe,Pe,ze){var bt,Pt;Xe?((bt=ct.createEvent("Event")).promise=Pe,bt.reason=ze,bt.initEvent(fe,!1,!0),E.dispatchEvent(bt)):bt={promise:Pe,reason:ze},!Ke&&(Pt=E["on"+fe])?Pt(bt):fe===st&&de("Unhandled promise rejection",ze)},or=function(fe){T(X,E,function(){var Pe,ze=fe.facade,bt=fe.value;if(rr(fe)&&(Pe=oe(function(){k?Ge.emit("unhandledRejection",bt,ze):Lt(st,ze,bt)}),fe.rejection=k||rr(fe)?2:1,Pe.error))throw Pe.value})},rr=function(fe){return fe.rejection!==1&&!fe.parent},hr=function(fe){T(X,E,function(){var Pe=fe.facade;k?Ge.emit("rejectionHandled",Pe):Lt("rejectionhandled",Pe,fe.value)})},Ft=function(fe,Pe,ze){return function(bt){fe(Pe,bt,ze)}},It=function(fe,Pe,ze){fe.done||(fe.done=!0,ze&&(fe=ze),fe.value=Pe,fe.state=2,Qt(fe,!0))},Mt=function(fe,Pe,ze){if(!fe.done){fe.done=!0,ze&&(fe=ze);try{if(fe.facade===Pe)throw new _t("Promise can't be resolved itself");var bt=pt(Pe);bt?ee(function(){var Pt={done:!1};try{T(bt,Pe,Ft(Mt,Pt,fe),Ft(It,Pt,fe))}catch(Xt){It(Pt,Xt,fe)}}):(fe.value=Pe,fe.state=1,Qt(fe,!1))}catch(Pt){It({done:!1},Pt,fe)}}};if(Ue&&(Nt=(St=function(fe){Y(this,Nt),B(fe),T(h,this);var Pe=je(this);try{fe(Ft(Mt,Pe),Ft(It,Pe))}catch(ze){It(Pe,ze)}}).prototype,(h=function(fe){Ye(this,{type:Ee,done:!1,notified:!1,parent:!1,reactions:new ye,rejection:!1,state:0,value:void 0})}).prototype=D(Nt,"then",function(fe,Pe){var ze=je(this),bt=jt(G(this,St));return ze.parent=!0,bt.ok=!W(fe)||fe,bt.fail=W(Pe)&&Pe,bt.domain=k?Ge.domain:void 0,ze.state===0?ze.reactions.add(bt):ee(function(){zt(bt,ze)}),bt.promise}),m=function(){var fe=new h,Pe=je(fe);this.promise=fe,this.resolve=Ft(Mt,Pe),this.reject=Ft(It,Pe)},Le.f=jt=function(fe){return fe===St||fe===void 0?new m(fe):vt(fe)},!x&&W(ke)&&qe!==Object.prototype)){w=qe.then,tt||D(qe,"then",function(fe,Pe){var ze=this;return new St(function(bt,Pt){T(w,ze,bt,Pt)}).then(fe,Pe)},{unsafe:!0});try{delete qe.constructor}catch{}R&&R(qe,Nt)}y({global:!0,constructor:!0,wrap:!0,forced:Ue},{Promise:St}),H(St,Ee,!1,!0),M(Ee)},3362:(p,C,o)=>{o(436),o(6499),o(2003),o(7743),o(1481),o(280)},7743:(p,C,o)=>{var h=o(6518),m=o(9565),w=o(9306),y=o(6043),x=o(1103),k=o(2652);h({target:"Promise",stat:!0,forced:o(537)},{race:function(E){var T=this,D=y.f(T),R=D.reject,H=x(function(){var M=w(T.resolve);k(E,function(B){m(M,T,B).then(D.resolve,R)})});return H.error&&R(H.value),D.promise}})},1481:(p,C,o)=>{var h=o(6518),m=o(6043);h({target:"Promise",stat:!0,forced:o(916).CONSTRUCTOR},{reject:function(w){var y=m.f(this);return(0,y.reject)(w),y.promise}})},280:(p,C,o)=>{var h=o(6518),m=o(7751),w=o(6395),y=o(550),x=o(916).CONSTRUCTOR,k=o(3438),E=m("Promise"),T=w&&!x;h({target:"Promise",stat:!0,forced:w||x},{resolve:function(D){return k(T&&this===E?y:this,D)}})},825:(p,C,o)=>{var h=o(6518),m=o(7751),w=o(8745),y=o(566),x=o(5548),k=o(8551),E=o(34),T=o(2360),D=o(9039),R=m("Reflect","construct"),H=Object.prototype,M=[].push,B=D(function(){function Y(){}return!(R(function(){},[],Y)instanceof Y)}),W=!D(function(){R(function(){})}),v=B||W;h({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(Y,G){x(Y),k(G);var X=arguments.length<3?Y:x(arguments[2]);if(W&&!B)return R(Y,G,X);if(Y===X){switch(G.length){case 0:return new Y;case 1:return new Y(G[0]);case 2:return new Y(G[0],G[1]);case 3:return new Y(G[0],G[1],G[2]);case 4:return new Y(G[0],G[1],G[2],G[3])}var ee=[null];return w(M,ee,G),new(w(y,Y,ee))}var de=X.prototype,oe=T(E(de)?de:H),ye=w(Y,oe,G);return E(ye)?ye:oe}})},888:(p,C,o)=>{var h=o(6518),m=o(9565),w=o(34),y=o(8551),x=o(6575),k=o(7347),E=o(2787);h({target:"Reflect",stat:!0},{get:function T(D,R){var H,M,B=arguments.length<3?D:arguments[2];return y(D)===B?D[R]:(H=k.f(D,R))?x(H)?H.value:H.get===void 0?void 0:m(H.get,B):w(M=E(D))?T(M,R,B):void 0}})},4864:(p,C,o)=>{var h=o(3724),m=o(4475),w=o(9504),y=o(2796),x=o(3167),k=o(6699),E=o(2360),T=o(8480).f,D=o(1625),R=o(788),H=o(655),M=o(1034),B=o(8429),W=o(1056),v=o(6840),Y=o(9039),G=o(9297),X=o(1181).enforce,ee=o(7633),de=o(8227),oe=o(3635),ye=o(8814),_e=de("match"),ke=m.RegExp,xe=ke.prototype,Le=m.SyntaxError,Ee=w(xe.exec),Ue=w("".charAt),Ke=w("".replace),tt=w("".indexOf),je=w("".slice),Ye=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,qe=/a/g,St=/a/g,Nt=new ke(qe)!==qe,_t=B.MISSED_STICKY,ct=B.UNSUPPORTED_Y;if(y("RegExp",h&&(!Nt||_t||oe||ye||Y(function(){return St[_e]=!1,ke(qe)!==qe||ke(St)===St||String(ke(qe,"i"))!=="/a/i"})))){for(var Ge=function(Xe,st){var pt,zt,Qt,Lt,or,rr,hr=D(xe,this),Ft=R(Xe),It=st===void 0,Mt=[],fe=Xe;if(!hr&&Ft&&It&&Xe.constructor===Ge)return Xe;if((Ft||D(xe,Xe))&&(Xe=Xe.source,It&&(st=M(fe))),Xe=Xe===void 0?"":H(Xe),st=st===void 0?"":H(st),fe=Xe,oe&&"dotAll"in qe&&(zt=!!st&&tt(st,"s")>-1)&&(st=Ke(st,/s/g,"")),pt=st,_t&&"sticky"in qe&&(Qt=!!st&&tt(st,"y")>-1)&&ct&&(st=Ke(st,/y/g,"")),ye&&(Lt=function(Pe){for(var ze,bt=Pe.length,Pt=0,Xt="",nr=[],Wt=E(null),At=!1,Ut=!1,ft=0,er="";Pt<=bt;Pt++){if((ze=Ue(Pe,Pt))==="\\")ze+=Ue(Pe,++Pt);else if(ze==="]")At=!1;else if(!At)switch(!0){case ze==="[":At=!0;break;case ze==="(":Ee(Ye,je(Pe,Pt+1))&&(Pt+=2,Ut=!0),Xt+=ze,ft++;continue;case(ze===">"&&Ut):if(er===""||G(Wt,er))throw new Le("Invalid capture group name");Wt[er]=!0,nr[nr.length]=[er,ft],Ut=!1,er="";continue}Ut?er+=ze:Xt+=ze}return[Xt,nr]}(Xe),Xe=Lt[0],Mt=Lt[1]),or=x(ke(Xe,st),hr?this:xe,Ge),(zt||Qt||Mt.length)&&(rr=X(or),zt&&(rr.dotAll=!0,rr.raw=Ge(function(Pe){for(var ze,bt=Pe.length,Pt=0,Xt="",nr=!1;Pt<=bt;Pt++)(ze=Ue(Pe,Pt))!=="\\"?nr||ze!=="."?(ze==="["?nr=!0:ze==="]"&&(nr=!1),Xt+=ze):Xt+="[\\s\\S]":Xt+=ze+Ue(Pe,++Pt);return Xt}(Xe),pt)),Qt&&(rr.sticky=!0),Mt.length&&(rr.groups=Mt)),Xe!==fe)try{k(or,"source",fe===""?"(?:)":fe)}catch{}return or},jt=T(ke),vt=0;jt.length>vt;)W(Ge,ke,jt[vt++]);xe.constructor=Ge,Ge.prototype=xe,v(m,"RegExp",Ge,{constructor:!0})}ee("RegExp")},7495:(p,C,o)=>{var h=o(6518),m=o(7323);h({target:"RegExp",proto:!0,forced:/./.exec!==m},{exec:m})},8781:(p,C,o)=>{var h=o(350).PROPER,m=o(6840),w=o(8551),y=o(655),x=o(9039),k=o(1034),E="toString",T=RegExp.prototype,D=T[E],R=x(function(){return D.call({source:"a",flags:"b"})!=="/a/b"}),H=h&&D.name!==E;(R||H)&&m(T,E,function(){var M=w(this);return"/"+y(M.source)+"/"+y(k(M))},{unsafe:!0})},1699:(p,C,o)=>{var h=o(6518),m=o(9504),w=o(5749),y=o(7750),x=o(655),k=o(1436),E=m("".indexOf);h({target:"String",proto:!0,forced:!k("includes")},{includes:function(T){return!!~E(x(y(this)),x(w(T)),arguments.length>1?arguments[1]:void 0)}})},7764:(p,C,o)=>{var h=o(8183).charAt,m=o(655),w=o(1181),y=o(1088),x=o(2529),k="String Iterator",E=w.set,T=w.getterFor(k);y(String,"String",function(D){E(this,{type:k,string:m(D),index:0})},function(){var D,R=T(this),H=R.string,M=R.index;return M>=H.length?x(void 0,!0):(D=h(H,M),R.index+=D.length,x(D,!1))})},1761:(p,C,o)=>{var h=o(9565),m=o(9228),w=o(8551),y=o(4117),x=o(8014),k=o(655),E=o(7750),T=o(5966),D=o(7829),R=o(6682);m("match",function(H,M,B){return[function(W){var v=E(this),Y=y(W)?void 0:T(W,H);return Y?h(Y,W,v):new RegExp(W)[H](k(v))},function(W){var v=w(this),Y=k(W),G=B(M,v,Y);if(G.done)return G.value;if(!v.global)return R(v,Y);var X=v.unicode;v.lastIndex=0;for(var ee,de=[],oe=0;(ee=R(v,Y))!==null;){var ye=k(ee[0]);de[oe]=ye,ye===""&&(v.lastIndex=D(Y,x(v.lastIndex),X)),oe++}return oe===0?null:de}]})},5440:(p,C,o)=>{var h=o(8745),m=o(9565),w=o(9504),y=o(9228),x=o(9039),k=o(8551),E=o(4901),T=o(4117),D=o(1291),R=o(8014),H=o(655),M=o(7750),B=o(7829),W=o(5966),v=o(2478),Y=o(6682),G=o(8227)("replace"),X=Math.max,ee=Math.min,de=w([].concat),oe=w([].push),ye=w("".indexOf),_e=w("".slice),ke="a".replace(/./,"$0")==="$0",xe=!!/./[G]&&/./[G]("a","$0")==="";y("replace",function(Le,Ee,Ue){var Ke=xe?"$":"$0";return[function(tt,je){var Ye=M(this),qe=T(tt)?void 0:W(tt,G);return qe?m(qe,tt,Ye,je):m(Ee,H(Ye),tt,je)},function(tt,je){var Ye=k(this),qe=H(tt);if(typeof je=="string"&&ye(je,Ke)===-1&&ye(je,"$<")===-1){var St=Ue(Ee,Ye,qe,je);if(St.done)return St.value}var Nt=E(je);Nt||(je=H(je));var _t,ct=Ye.global;ct&&(_t=Ye.unicode,Ye.lastIndex=0);for(var Ge,jt=[];(Ge=Y(Ye,qe))!==null&&(oe(jt,Ge),ct);)H(Ge[0])===""&&(Ye.lastIndex=B(qe,R(Ye.lastIndex),_t));for(var vt,Xe="",st=0,pt=0;pt<jt.length;pt++){for(var zt,Qt=H((Ge=jt[pt])[0]),Lt=X(ee(D(Ge.index),qe.length),0),or=[],rr=1;rr<Ge.length;rr++)oe(or,(vt=Ge[rr])===void 0?vt:String(vt));var hr=Ge.groups;if(Nt){var Ft=de([Qt],or,Lt,qe);hr!==void 0&&oe(Ft,hr),zt=H(h(je,void 0,Ft))}else zt=v(Qt,qe,Lt,or,hr,je);Lt>=st&&(Xe+=_e(qe,st,Lt)+zt,st=Lt+Qt.length)}return Xe+_e(qe,st)}]},!!x(function(){var Le=/./;return Le.exec=function(){var Ee=[];return Ee.groups={a:"7"},Ee},"".replace(Le,"$<a>")!=="7"})||!ke||xe)},1392:(p,C,o)=>{var h,m=o(6518),w=o(7476),y=o(7347).f,x=o(8014),k=o(655),E=o(5749),T=o(7750),D=o(1436),R=o(6395),H=w("".slice),M=Math.min,B=D("startsWith");m({target:"String",proto:!0,forced:!(!R&&!B&&(h=y(String.prototype,"startsWith"),h&&!h.writable)||B)},{startsWith:function(W){var v=k(T(this));E(W);var Y=x(M(arguments.length>1?arguments[1]:void 0,v.length)),G=k(W);return H(v,Y,Y+G.length)===G}})},2762:(p,C,o)=>{var h=o(6518),m=o(3802).trim;h({target:"String",proto:!0,forced:o(706)("trim")},{trim:function(){return m(this)}})},6412:(p,C,o)=>{o(511)("asyncIterator")},6761:(p,C,o)=>{var h=o(6518),m=o(4475),w=o(9565),y=o(9504),x=o(6395),k=o(3724),E=o(4495),T=o(9039),D=o(9297),R=o(1625),H=o(8551),M=o(5397),B=o(6969),W=o(655),v=o(6980),Y=o(2360),G=o(1072),X=o(8480),ee=o(298),de=o(3717),oe=o(7347),ye=o(4913),_e=o(6801),ke=o(8773),xe=o(6840),Le=o(2106),Ee=o(5745),Ue=o(6119),Ke=o(421),tt=o(3392),je=o(8227),Ye=o(1951),qe=o(511),St=o(8242),Nt=o(687),_t=o(1181),ct=o(9213).forEach,Ge=Ue("hidden"),jt="Symbol",vt="prototype",Xe=_t.set,st=_t.getterFor(jt),pt=Object[vt],zt=m.Symbol,Qt=zt&&zt[vt],Lt=m.RangeError,or=m.TypeError,rr=m.QObject,hr=oe.f,Ft=ye.f,It=ee.f,Mt=ke.f,fe=y([].push),Pe=Ee("symbols"),ze=Ee("op-symbols"),bt=Ee("wks"),Pt=!rr||!rr[vt]||!rr[vt].findChild,Xt=function(et,ht,$e){var lt=hr(pt,ht);lt&&delete pt[ht],Ft(et,ht,$e),lt&&et!==pt&&Ft(pt,ht,lt)},nr=k&&T(function(){return Y(Ft({},"a",{get:function(){return Ft(this,"a",{value:7}).a}})).a!==7})?Xt:Ft,Wt=function(et,ht){var $e=Pe[et]=Y(Qt);return Xe($e,{type:jt,tag:et,description:ht}),k||($e.description=ht),$e},At=function(et,ht,$e){et===pt&&At(ze,ht,$e),H(et);var lt=B(ht);return H($e),D(Pe,lt)?($e.enumerable?(D(et,Ge)&&et[Ge][lt]&&(et[Ge][lt]=!1),$e=Y($e,{enumerable:v(0,!1)})):(D(et,Ge)||Ft(et,Ge,v(1,Y(null))),et[Ge][lt]=!0),nr(et,lt,$e)):Ft(et,lt,$e)},Ut=function(et,ht){H(et);var $e=M(ht),lt=G($e).concat($n($e));return ct(lt,function(Gt){k&&!w(ft,$e,Gt)||At(et,Gt,$e[Gt])}),et},ft=function(et){var ht=B(et),$e=w(Mt,this,ht);return!(this===pt&&D(Pe,ht)&&!D(ze,ht))&&(!($e||!D(this,ht)||!D(Pe,ht)||D(this,Ge)&&this[Ge][ht])||$e)},er=function(et,ht){var $e=M(et),lt=B(ht);if($e!==pt||!D(Pe,lt)||D(ze,lt)){var Gt=hr($e,lt);return!Gt||!D(Pe,lt)||D($e,Ge)&&$e[Ge][lt]||(Gt.enumerable=!0),Gt}},$r=function(et){var ht=It(M(et)),$e=[];return ct(ht,function(lt){D(Pe,lt)||D(Ke,lt)||fe($e,lt)}),$e},$n=function(et){var ht=et===pt,$e=It(ht?ze:M(et)),lt=[];return ct($e,function(Gt){!D(Pe,Gt)||ht&&!D(pt,Gt)||fe(lt,Pe[Gt])}),lt};E||(xe(Qt=(zt=function(){if(R(Qt,this))throw new or("Symbol is not a constructor");var et=arguments.length&&arguments[0]!==void 0?W(arguments[0]):void 0,ht=tt(et),$e=function(lt){var Gt=this===void 0?m:this;Gt===pt&&w($e,ze,lt),D(Gt,Ge)&&D(Gt[Ge],ht)&&(Gt[Ge][ht]=!1);var V=v(1,lt);try{nr(Gt,ht,V)}catch(z){if(!(z instanceof Lt))throw z;Xt(Gt,ht,V)}};return k&&Pt&&nr(pt,ht,{configurable:!0,set:$e}),Wt(ht,et)})[vt],"toString",function(){return st(this).tag}),xe(zt,"withoutSetter",function(et){return Wt(tt(et),et)}),ke.f=ft,ye.f=At,_e.f=Ut,oe.f=er,X.f=ee.f=$r,de.f=$n,Ye.f=function(et){return Wt(je(et),et)},k&&(Le(Qt,"description",{configurable:!0,get:function(){return st(this).description}}),x||xe(pt,"propertyIsEnumerable",ft,{unsafe:!0}))),h({global:!0,constructor:!0,wrap:!0,forced:!E,sham:!E},{Symbol:zt}),ct(G(bt),function(et){qe(et)}),h({target:jt,stat:!0,forced:!E},{useSetter:function(){Pt=!0},useSimple:function(){Pt=!1}}),h({target:"Object",stat:!0,forced:!E,sham:!k},{create:function(et,ht){return ht===void 0?Y(et):Ut(Y(et),ht)},defineProperty:At,defineProperties:Ut,getOwnPropertyDescriptor:er}),h({target:"Object",stat:!0,forced:!E},{getOwnPropertyNames:$r}),St(),Nt(zt,jt),Ke[Ge]=!0},9463:(p,C,o)=>{var h=o(6518),m=o(3724),w=o(4475),y=o(9504),x=o(9297),k=o(4901),E=o(1625),T=o(655),D=o(2106),R=o(7740),H=w.Symbol,M=H&&H.prototype;if(m&&k(H)&&(!("description"in M)||H().description!==void 0)){var B={},W=function(){var oe=arguments.length<1||arguments[0]===void 0?void 0:T(arguments[0]),ye=E(M,this)?new H(oe):oe===void 0?H():H(oe);return oe===""&&(B[ye]=!0),ye};R(W,H),W.prototype=M,M.constructor=W;var v=String(H("description detection"))==="Symbol(description detection)",Y=y(M.valueOf),G=y(M.toString),X=/^Symbol\((.*)\)[^)]+$/,ee=y("".replace),de=y("".slice);D(M,"description",{configurable:!0,get:function(){var oe=Y(this);if(x(B,oe))return"";var ye=G(oe),_e=v?de(ye,7,-1):ee(ye,X,"$1");return _e===""?void 0:_e}}),h({global:!0,constructor:!0,forced:!0},{Symbol:W})}},1510:(p,C,o)=>{var h=o(6518),m=o(7751),w=o(9297),y=o(655),x=o(5745),k=o(1296),E=x("string-to-symbol-registry"),T=x("symbol-to-string-registry");h({target:"Symbol",stat:!0,forced:!k},{for:function(D){var R=y(D);if(w(E,R))return E[R];var H=m("Symbol")(R);return E[R]=H,T[H]=R,H}})},2259:(p,C,o)=>{o(511)("iterator")},2675:(p,C,o)=>{o(6761),o(1510),o(7812),o(3110),o(9773)},7812:(p,C,o)=>{var h=o(6518),m=o(9297),w=o(757),y=o(6823),x=o(5745),k=o(1296),E=x("symbol-to-string-registry");h({target:"Symbol",stat:!0,forced:!k},{keyFor:function(T){if(!w(T))throw new TypeError(y(T)+" is not a symbol");if(m(E,T))return E[T]}})},5700:(p,C,o)=>{var h=o(511),m=o(8242);h("toPrimitive"),m()},8125:(p,C,o)=>{var h=o(7751),m=o(511),w=o(687);m("toStringTag"),w(h("Symbol"),"Symbol")},3500:(p,C,o)=>{var h=o(4475),m=o(7400),w=o(9296),y=o(235),x=o(6699),k=function(T){if(T&&T.forEach!==y)try{x(T,"forEach",y)}catch{T.forEach=y}};for(var E in m)m[E]&&k(h[E]&&h[E].prototype);k(w)},2953:(p,C,o)=>{var h=o(4475),m=o(7400),w=o(9296),y=o(3792),x=o(6699),k=o(687),E=o(8227)("iterator"),T=y.values,D=function(H,M){if(H){if(H[E]!==T)try{x(H,E,T)}catch{H[E]=T}if(k(H,M,!0),m[M]){for(var B in y)if(H[B]!==y[B])try{x(H,B,y[B])}catch{H[B]=y[B]}}}};for(var R in m)D(h[R]&&h[R].prototype,R);D(w,"DOMTokenList")},5575:(p,C,o)=>{var h=o(6518),m=o(4475),w=o(9472)(m.setInterval,!0);h({global:!0,bind:!0,forced:m.setInterval!==w},{setInterval:w})},4599:(p,C,o)=>{var h=o(6518),m=o(4475),w=o(9472)(m.setTimeout,!0);h({global:!0,bind:!0,forced:m.setTimeout!==w},{setTimeout:w})},6031:(p,C,o)=>{o(5575),o(4599)}},_={};function j(p){var C=_[p];if(C!==void 0)return C.exports;var o=_[p]={exports:{}};return i[p].call(o.exports,o,o.exports,j),o.exports}j.d=(p,C)=>{for(var o in C)j.o(C,o)&&!j.o(p,o)&&Object.defineProperty(p,o,{enumerable:!0,get:C[o]})},j.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),j.o=(p,C)=>Object.prototype.hasOwnProperty.call(p,C),j.r=p=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})};var S={};return(()=>{j.r(S),j.d(S,{JSONEditor:()=>ci}),j(2675),j(9463),j(6412),j(2259),j(5700),j(8125),j(8706),j(113),j(1629),j(3418),j(4346),j(3792),j(2712),j(4490),j(4782),j(739),j(9572),j(3288),j(2010),j(4731),j(479),j(2892),j(9085),j(9904),j(4185),j(875),j(9432),j(287),j(6099),j(6034),j(3362),j(7495),j(8781),j(7764),j(3500),j(2953),j(5506),j(4864),j(5440),j(4423);var p=["actionscript","batchfile","c","c++","cpp","coffee","csharp","css","dart","django","ejs","erlang","golang","groovy","handlebars","haskell","haxe","html","ini","jade","java","javascript","json","less","lisp","lua","makefile","matlab","mysql","objectivec","pascal","perl","pgsql","php","python","prql","r","ruby","rust","sass","scala","scss","sh","smarty","sql","sqlserver","stylus","svg","typescript","twig","vbscript","xml","yaml","zig"],C=[function(s){return s.type==="string"&&s.format==="color"&&"colorpicker"},function(s){return s.type==="string"&&["ip","ipv4","ipv6","hostname"].includes(s.format)&&"ip"},function(s){return s.type==="string"&&p.includes(s.format)&&"ace"},function(s){return s.type==="string"&&["xhtml","bbcode"].includes(s.format)&&"sceditor"},function(s){return s.type==="string"&&s.format==="markdown"&&"simplemde"},function(s){return s.type==="string"&&s.format==="jodit"&&"jodit"},function(s){return s.type==="string"&&s.format==="autocomplete"&&"autocomplete"},function(s){return s.type==="string"&&s.format==="uuid"&&"uuid"},function(s){return s.format==="info"&&"info"},function(s){return s.format==="button"&&"button"},function(s){if((s.type==="integer"||s.type==="number")&&s.format==="stepper")return"stepper"},function(s){if(s.links){for(var r=0;r<s.links.length;r++)if(s.links[r].rel&&s.links[r].rel.toLowerCase()==="describedby")return"describedBy"}},function(s){return["string","integer"].includes(s.type)&&["starrating","rating"].includes(s.format)&&"starrating"},function(s){return["string","integer"].includes(s.type)&&["date","time","datetime-local"].includes(s.format)&&"datetime"},function(s){var r,n;return(s.oneOf||s.anyOf)&&((r=(n=s.options)===null||n===void 0?void 0:n.switcher)===null||r===void 0||r)===!0&&"multiple"},function(s){return s.if&&"multiple"},function(s,r){if(s.items&&(s.items=r.expandSchema(s.items)),s.type==="array"&&s.items&&!Array.isArray(s.items)&&["string","number","integer"].includes(s.items.type)){if(s.format==="choices")return"arrayChoices";if(s.uniqueItems){if(s.format==="selectize")return"arraySelectize";if(s.format==="select2")return"arraySelect2";if(s.items.enum)return"multiselect"}}},function(s){if(s.enum){if(s.type==="array"||s.type==="object")return"enum";if(s.type==="number"||s.type==="integer"||s.type==="string")return s.format==="radio"?"radio":s.format==="select2"?"select2":s.format==="selectize"?"selectize":s.format==="choices"?"choices":"select"}},function(s){if(s.enumSource)return s.format==="radio"?"radio":s.format==="select2"?"select2":s.format==="selectize"?"selectize":s.format==="choices"?"choices":"select"},function(s){return s.type==="array"&&s.format==="table"&&"table"},function(s){return s.type==="string"&&s.format==="url"&&window.FileReader&&s.options&&s.options.upload===Object(s.options.upload)&&"upload"},function(s){return s.type==="string"&&s.media&&s.media.binaryEncoding==="base64"&&"base64"},function(s){return s.type==="any"&&"multiple"},function(s){if(s.type==="boolean")return s.format==="checkbox"||s.options&&s.options.checkbox?"checkbox":s.format==="select2"?"select2":s.format==="selectize"?"selectize":s.format==="choices"?"choices":"select"},function(s){return s.type==="string"&&s.format==="signature"&&"signature"},function(s){return typeof s.type=="string"&&["string","number","integer","boolean","null","array","object"].includes(s.type)&&s.type},function(s){return!s.type&&s.properties&&"object"},function(s){return typeof s.type!="string"&&"multiple"},function(s){return typeof s.type=="string"&&"string"}];function o(s,r,n){var u;return u=function(e,t){if(h(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var d=a.call(e,"string");if(h(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r),(r=h(u)=="symbol"?u:u+"")in s?Object.defineProperty(s,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[r]=n,s}function h(s){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},h(s)}function m(s){return!(s===null||h(s)!=="object"||s.nodeType||s===s.window||s.constructor&&!E(s.constructor.prototype,"isPrototypeOf"))}function w(s){return m(s)?y({},s):Array.isArray(s)?s.map(w):s}function y(s){for(var r=arguments.length,n=new Array(r>1?r-1:0),u=1;u<r;u++)n[u-1]=arguments[u];return n.forEach(function(e){e&&Object.keys(e).forEach(function(t){e[t]&&m(e[t])?(E(s,t)||(s[t]={}),y(s[t],e[t])):Array.isArray(e[t])?s[t]=w(e[t]):s[t]=e[t]})}),s}function x(s,r){var n=document.createEvent("HTMLEvents");n.initEvent(r,!0,!0),s.dispatchEvent(n)}function k(s){return s&&(s.toString()==="[object ShadowRoot]"?s:k(s.parentNode))}function E(s,r){return s&&Object.prototype.hasOwnProperty.call(s,r)}j(4170),j(3851),j(825),j(888),j(8598),j(1699),j(1761),j(5276),j(5086),j(1392),j(2062),j(8459),j(8940);var T=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,D=/^\s*(-|\+)?(\d+)\s*$/;function R(){var s=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(s+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=(s+16*Math.random())%16|0;return s=Math.floor(s/16),(r==="x"?n:3&n|8).toString(16)})}function H(s){return s&&h(s)==="object"&&!Array.isArray(s)}function M(s){for(var r=arguments.length,n=new Array(r>1?r-1:0),u=1;u<r;u++)n[u-1]=arguments[u];if(!n.length)return s;var e=n.shift();if(H(s)&&H(e))for(var t in e)H(e[t])?(s[t]||Object.assign(s,o({},t,{})),M(s[t],e[t])):Object.assign(s,o({},t,e[t]));return M.apply(void 0,[s].concat(n))}function B(s,r){(r==null||r>s.length)&&(r=s.length);for(var n=0,u=new Array(r);n<r;n++)u[n]=s[n];return u}function W(s){return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},W(s)}function v(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Y(u.key),u)}}function Y(s){var r=function(n,u){if(W(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(W(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return W(r)=="symbol"?r:r+""}var G=function(){return s=function n(u,e){var t,a;(function(d,b){if(!(d instanceof b))throw new TypeError("Cannot call a class as a function")})(this,n),this.defaults=e,this.jsoneditor=u.jsoneditor,this.theme=this.jsoneditor.theme,this.template_engine=this.jsoneditor.template,this.iconlib=this.jsoneditor.iconlib,this.translate=this.jsoneditor.translate||this.defaults.translate,this.translateProperty=this.jsoneditor.translateProperty||this.defaults.translateProperty,this.original_schema=u.schema,this.schema=this.jsoneditor.expandSchema(this.original_schema),this.active=!0,this.isUiOnly=!1,this.options=y({},this.options||{},this.schema.options||{},u.schema.options||{},u),this.enforceConstEnabled=(t=this.options.enforce_const)!==null&&t!==void 0?t:this.jsoneditor.options.enforce_const,this.formname=this.jsoneditor.options.form_name_root||"root",u.path||this.schema.id||(this.schema.id=this.formname),this.path=u.path||this.formname,this.formname=u.formname||this.path.replace(/\.([^.]+)/g,"[$1]"),this.parent=u.parent,this.key=this.parent!==void 0?this.path.split(".").slice(this.parent.path.split(".").length).join("."):this.path,this.link_watchers=[],this.watchLoop=!1,this.optInWidget=(a=this.options.opt_in_widget)!==null&&a!==void 0?a:this.jsoneditor.options.opt_in_widget,u.container&&this.setContainer(u.container),this.registerDependencies()},r=[{key:"onChildEditorChange",value:function(n,u){this.onChange(!0,!1,u)}},{key:"notify",value:function(){this.path&&this.jsoneditor.notifyWatchers(this.path)}},{key:"change",value:function(n){this.parent?this.parent.onChildEditorChange(this,n):this.jsoneditor&&this.jsoneditor.onChange(n)}},{key:"onChange",value:function(n,u,e){this.notify(),u||this.watch_listener&&this.watch_listener(),n&&this.change(e)}},{key:"register",value:function(){if(this.jsoneditor.registerEditor(this),this.input&&!this.label){var n=this.getTitle()||this.formname;this.input.setAttribute("aria-label",n)}this.onChange()}},{key:"unregister",value:function(){this.jsoneditor&&this.jsoneditor.unregisterEditor(this)}},{key:"getNumColumns",value:function(){return 12}},{key:"isActive",value:function(){return this.active}},{key:"activate",value:function(){this.active=!0,this.optInCheckbox.checked=!0,this.enable(),this.change()}},{key:"deactivate",value:function(){this.isRequired()||(this.active=!1,this.optInCheckbox.checked=!1,this.disable(),this.change())}},{key:"registerDependencies",value:function(){var n=this;this.dependenciesFulfilled=!0;var u=this.options.dependencies;u&&Object.keys(u).forEach(function(e){var t;e.startsWith(n.jsoneditor.root.path)?t=e:((t=n.path.split("."))[t.length-1]=e,t=t.join(".")),n.jsoneditor.watch(t,function(){n.evaluateDependencies()})})}},{key:"evaluateDependencies",value:function(){var n=this,u=this.container||this.control;if(u&&this.jsoneditor!==null){var e=this.options.dependencies;if(e){var t=this.dependenciesFulfilled;this.dependenciesFulfilled=!0,Object.keys(e).forEach(function(d){var b;d.startsWith(n.jsoneditor.root.path)?b=d:((b=n.path.split("."))[b.length-1]=d,b=b.join("."));var P=e[d];n.checkDependency(b,P)}),this.dependenciesFulfilled!==t&&this.notify();var a=this.dependenciesFulfilled?"block":"none";this.options.hidden&&(a="none"),u.tagName==="TD"?Object.keys(u.childNodes).forEach(function(d){return u.childNodes[d].style.display=a}):u.style.display=a}}}},{key:"checkDependency",value:function(n,u){var e=this;if(this.path!==n&&this.jsoneditor!==null){var t=this.jsoneditor.getEditor(n),a=t?t.getValue():void 0;t&&t.dependenciesFulfilled&&a?Array.isArray(u)?this.dependenciesFulfilled=u.some(function(d){if(JSON.stringify(a)===JSON.stringify(d))return!0}):W(u)==="object"?W(a)!=="object"?this.dependenciesFulfilled=u===a:Object.keys(u).some(function(d){return!!E(u,d)&&(E(a,d)&&u[d]===a[d]?void 0:(e.dependenciesFulfilled=!1,!0))}):typeof u=="string"||typeof u=="number"?this.dependenciesFulfilled=this.dependenciesFulfilled&&a===u:typeof u=="boolean"&&(this.dependenciesFulfilled=u?this.dependenciesFulfilled&&(a||a.length>0):this.dependenciesFulfilled&&(!a||a.length===0)):this.dependenciesFulfilled=!1}}},{key:"setContainer",value:function(n){this.container=n,this.setContainerAttributes(),this.schema.id&&this.container.setAttribute("data-schemaid",this.schema.id),this.schema.type&&typeof this.schema.type=="string"&&this.container.setAttribute("data-schematype",this.schema.type),this.container.setAttribute("data-schemapath",this.path)}},{key:"setOptInCheckbox",value:function(){var n,u=this;n=this.optInWidget==="switch"?this.theme.getOptInSwitch(this.formname):this.theme.getOptInCheckbox(this.formname),this.optInCheckbox=n.checkbox,this.optInContainer=n.container,this.optInCheckbox.addEventListener("click",function(){u.isActive()?u.deactivate():u.activate()});var e=this.jsoneditor.options.show_opt_in,t=this.parent.options.show_opt_in!==void 0,a=t&&this.parent.options.show_opt_in===!0,d=t&&this.parent.options.show_opt_in===!1;(a||!d&&e||!t&&e)&&this.parent&&this.parent.schema.type==="object"&&!this.isRequired()&&this.header&&(this.header.insertBefore(this.optInContainer,this.header.firstChild),this.optInAppended=!0)}},{key:"preBuild",value:function(){}},{key:"build",value:function(){}},{key:"postBuild",value:function(){this.setupWatchListeners(),this.addLinks(),this.register(),this.setValue(this.getDefault(),!0),this.updateHeaderText(),this.onWatchedFieldChange(),this.options.titleHidden&&(this.theme.visuallyHidden(this.label),this.theme.visuallyHidden(this.header)),this.enforceConstEnabled&&this.schema.const&&this.disable()}},{key:"setupWatchListeners",value:function(){var n=this;if(this.watched={},this.schema.vars&&(this.schema.watch=this.schema.vars),this.watched_values={},this.watch_listener=function(){n.refreshWatchedFieldValues()&&n.onWatchedFieldChange()},E(this.schema,"watch")){var u,e,t,a,d,b=this.container.getAttribute("data-schemapath");Object.keys(this.schema.watch).forEach(function(P){if(u=n.schema.watch[P],Array.isArray(u)){if(u.length<2)return;e=[u[0]].concat(u[1].split("."))}else e=u.split("."),n.theme.closest(n.container,'[data-schemaid="'.concat(e[0],'"]'))||e.unshift("#");if((t=e.shift())==="#"&&(t=n.jsoneditor.schema.id||n.jsoneditor.root.formname),!(a=n.theme.closest(n.container,'[data-schemaid="'.concat(t,'"]'))))throw new Error("Could not find ancestor node with id ".concat(t));d="".concat(a.getAttribute("data-schemapath"),".").concat(e.join(".")),b.startsWith(d)&&(n.watchLoop=!0),n.jsoneditor.watch(d,n.watch_listener),n.watched[P]=d})}this.schema.headerTemplate&&(this.header_template=this.jsoneditor.compileTemplate(this.schema.headerTemplate,this.template_engine))}},{key:"addLinks",value:function(){if(!this.no_link_holder&&(this.link_holder=this.theme.getLinksHolder(),this.description!==void 0?this.description.parentNode.insertBefore(this.link_holder,this.description):this.container.appendChild(this.link_holder),this.schema.links))for(var n=0;n<this.schema.links.length;n++)this.addLink(this.getLink(this.schema.links[n]))}},{key:"onMove",value:function(){}},{key:"getButton",value:function(n,u,e){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],a="json-editor-btn-".concat(u);u=this.iconlib?this.iconlib.getIcon(u):null,n=this.translate(n,t),e=this.translate(e,t),!u&&e&&(n=e,e=null);var d=this.theme.getButton(n,u,e);return d.classList.add(a),d}},{key:"setButtonText",value:function(n,u,e,t){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[];return e=this.iconlib?this.iconlib.getIcon(e):null,u=this.translate(u,a),t=this.translate(t,a),!e&&t&&(u=t,t=null),this.theme.setButtonText(n,u,e,t)}},{key:"addLink",value:function(n){this.link_holder&&this.link_holder.appendChild(n)}},{key:"getLink",value:function(n){var u,e,t=(n.mediaType||"application/javascript").split("/")[0],a=this.jsoneditor.compileTemplate(n.href,this.template_engine),d=this.jsoneditor.compileTemplate(n.rel?n.rel:n.href,this.template_engine),b=null;if(n.download&&(b=n.download),b&&b!==!0&&(b=this.jsoneditor.compileTemplate(b,this.template_engine)),t==="image"){u=this.theme.getBlockLinkHolder(),(e=document.createElement("a")).setAttribute("target","_blank");var P=document.createElement("img");this.theme.createImageLink(u,e,P),this.link_watchers.push(function(q){var K=a(q),ae=d(q);e.setAttribute("href",K),e.setAttribute("title",ae||K),P.setAttribute("src",K)})}else if(["audio","video"].includes(t)){u=this.theme.getBlockLinkHolder(),(e=this.theme.getBlockLink()).setAttribute("target","_blank");var I=document.createElement(t);I.setAttribute("controls","controls"),this.theme.createMediaLink(u,e,I),this.link_watchers.push(function(q){var K=a(q),ae=d(q);e.setAttribute("href",K),e.textContent=ae||K,I.setAttribute("src",K)})}else e=u=this.theme.getBlockLink(),u.setAttribute("target","_blank"),u.textContent=n.rel,u.style.display="none",this.link_watchers.push(function(q){var K=a(q),ae=d(q);K&&(u.style.display=""),u.setAttribute("href",K),u.textContent=ae||K});return b&&e&&(b===!0?e.setAttribute("download",""):this.link_watchers.push(function(q){e.setAttribute("download",b(q))})),n.class&&n.class.split(" ").forEach(function(q){e.classList.add(q)}),u}},{key:"refreshWatchedFieldValues",value:function(){var n=this;if(this.watched_values){var u={},e=!1;return this.watched&&Object.keys(this.watched).forEach(function(t){var a=n.jsoneditor.getEditor(n.watched[t]),d=a?a.getValue():null;n.watched_values[t]!==d&&(e=!0),u[t]=d}),u.self=this.getValue(),this.watched_values.self!==u.self&&(e=!0),this.watched_values=u,e}}},{key:"getWatchedFieldValues",value:function(){return this.watched_values}},{key:"updateHeaderText",value:function(){if(this.header){var n=this.getHeaderText();if(this.header.children.length){for(var u=0;u<this.header.childNodes.length;u++)if(this.header.childNodes[u].nodeType===3){this.header.childNodes[u].nodeValue=this.cleanText(n);break}}else window.DOMPurify?this.header.innerHTML=window.DOMPurify.sanitize(n):this.header.textContent=this.cleanText(n)}}},{key:"getHeaderText",value:function(n){return this.header_text?this.header_text:n?this.translateProperty(this.schema.title):this.getTitle()}},{key:"getPathDepth",value:function(){return this.path.split(".").length}},{key:"cleanText",value:function(n){var u=document.createElement("div");return u.innerHTML=n,u.textContent||u.innerText}},{key:"onWatchedFieldChange",value:function(){var n,u=this;if(this.header_template){n=y(this.getWatchedFieldValues(),{key:this.key,i:this.key,i0:1*this.key,i1:1*this.key+1,title:this.getTitle()}),this.editors&&Object.keys(this.editors).length&&(n.properties={},Object.keys(this.editors).forEach(function(a){var d=u.editors[a];if(d.schema&&d.schema.enum&&d.schema.options&&d.schema.options.enum_titles){var b=d.schema.enum.indexOf(d.value),P=d.options.enum_titles[b];n.properties[a]={enumTitle:P}}}));var e=this.header_template(n);e!==this.header_text&&(this.header_text=e,this.updateHeaderText(),this.notify())}if(this.link_watchers.length){n=this.getWatchedFieldValues();for(var t=0;t<this.link_watchers.length;t++)this.link_watchers[t](n)}}},{key:"setValue",value:function(n){n=this.applyConstFilter(n),this.value=n}},{key:"applyConstFilter",value:function(n){return this.enforceConstEnabled&&this.schema.const!==void 0&&(n=this.schema.const),n}},{key:"getValue",value:function(){if(this.dependenciesFulfilled)return this.value}},{key:"refreshValue",value:function(){}},{key:"getChildEditors",value:function(){return!1}},{key:"destroy",value:function(){var n=this;this.unregister(this),this.watched&&Object.values(this.watched).forEach(function(u){return n.jsoneditor.unwatch(u,n.watch_listener)}),this.watched=null,this.watched_values=null,this.watch_listener=null,this.header_text=null,this.header_template=null,this.value=null,this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.container=null,this.jsoneditor=null,this.schema=null,this.path=null,this.key=null,this.parent=null}},{key:"isDefaultRequired",value:function(){return this.isRequired()||!!this.jsoneditor.options.use_default_values}},{key:"getDefault",value:function(){if(this.enforceConstEnabled&&this.schema.const)return this.schema.const;if(this.schema.default!==void 0)return this.schema.default;if(this.schema.enum!==void 0)return this.schema.enum[0];var n=this.schema.type||this.schema.oneOf;if(n&&Array.isArray(n)&&(n=n[0]),n&&W(n)==="object"&&(n=n.type),n&&Array.isArray(n)&&(n=n[0]),typeof n=="string"){if(n==="number")return this.isDefaultRequired()?0:void 0;if(n==="boolean")return!this.isDefaultRequired()&&void 0;if(n==="integer")return this.isDefaultRequired()?0:void 0;if(n==="string")return this.isDefaultRequired()?"":void 0;if(n==="null")return null;if(n==="object")return{};if(n==="array")return[]}}},{key:"getTitle",value:function(){return this.translateProperty(this.schema.title||this.key||this.formname)}},{key:"enable",value:function(){this.disabled=!1}},{key:"disable",value:function(){this.disabled=!0}},{key:"isEnabled",value:function(){return!this.disabled}},{key:"isRequired",value:function(){return typeof this.schema.required=="boolean"?this.schema.required:this.parent&&this.parent.schema&&Array.isArray(this.parent.schema.required)?this.parent.schema.required.includes(this.key):!!this.jsoneditor.options.required_by_default}},{key:"getDisplayText",value:function(n){var u=[],e={};n.forEach(function(a){a.title&&(e[a.title]=e[a.title]||0,e[a.title]++),a.description&&(e[a.description]=e[a.description]||0,e[a.description]++),a.format&&(e[a.format]=e[a.format]||0,e[a.format]++),a.type&&(e[a.type]=e[a.type]||0,e[a.type]++)}),n.forEach(function(a){var d;d=typeof a=="string"?a:a.title&&e[a.title]<=1?a.title:a.format&&e[a.format]<=1?a.format:a.type&&e[a.type]<=1?a.type:a.description&&e[a.description]<=1?a.description:a.title?a.title:a.format?a.format:a.type?a.type:a.description?a.description:JSON.stringify(a).length<500?JSON.stringify(a):"type",u.push(d)});var t={};return u.forEach(function(a,d){t[a]=t[a]||0,t[a]++,e[a]>1&&(u[d]="".concat(a," ").concat(t[a]))}),u}},{key:"getValidId",value:function(n){return(n=n===void 0?"":n.toString()).replace(/\s+/g,"-")}},{key:"setInputAttributes",value:function(n,u){if(this.schema.options&&this.schema.options.inputAttributes){var e=this.schema.options.inputAttributes,t=["name","type"].concat(n),a=u||this.input;Object.keys(e).forEach(function(d){t.includes(d.toLowerCase())||a.setAttribute(d,e[d])})}}},{key:"setContainerAttributes",value:function(){var n=this;if(this.schema.options&&this.schema.options.containerAttributes){var u=this.schema.options.containerAttributes,e=["data-schemapath","data-schematype","data-schemaid"];Object.keys(u).forEach(function(t){e.includes(t.toLowerCase())||n.container.setAttribute(t,u[t])})}}},{key:"expandCallbacks",value:function(n,u){var e=this,t=this.defaults.callbacks[n];return Object.entries(u).forEach(function(a){var d,b,P=(b=2,function(K){if(Array.isArray(K))return K}(d=a)||function(K,ae){var se=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(se!=null){var ge,Oe,Ne,Ve,dt=[],yt=!0,Et=!1;try{if(Ne=(se=se.call(K)).next,ae===0){if(Object(se)!==se)return;yt=!1}else for(;!(yt=(ge=Ne.call(se)).done)&&(dt.push(ge.value),dt.length!==ae);yt=!0);}catch(Ae){Et=!0,Oe=Ae}finally{try{if(!yt&&se.return!=null&&(Ve=se.return(),Object(Ve)!==Ve))return}finally{if(Et)throw Oe}}return dt}}(d,b)||function(K,ae){if(K){if(typeof K=="string")return B(K,ae);var se=Object.prototype.toString.call(K).slice(8,-1);return se==="Object"&&K.constructor&&(se=K.constructor.name),se==="Map"||se==="Set"?Array.from(K):se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se)?B(K,ae):void 0}}(d,b)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
69
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),I=P[0],q=P[1];q===Object(q)?u[I]=e.expandCallbacks(n,q):typeof q=="string"&&W(t)==="object"&&typeof t[q]=="function"&&(u[I]=t[q].bind(null,e))}),u}},{key:"showValidationErrors",value:function(n){}}],r&&v(s.prototype,r),Object.defineProperty(s,"prototype",{writable:!1}),s;var s,r}();function X(s){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},X(s)}function ee(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,de(u.key),u)}}function de(s){var r=function(n,u){if(X(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(X(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return X(r)=="symbol"?r:r+""}function oe(s,r,n){return r=ke(r),function(u,e){if(e&&(X(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,ye()?Reflect.construct(r,n||[],ke(s).constructor):r.apply(s,n))}function ye(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ye=function(){return!!s})()}function _e(){return _e=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=ke(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},_e.apply(this,arguments)}function ke(s){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ke(s)}function xe(s,r){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},xe(s,r)}var Le=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),oe(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xe(e,t)}(r,s),n=r,(u=[{key:"register",value:function(){_e(ke(r.prototype),"register",this).call(this),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}},{key:"unregister",value:function(){_e(ke(r.prototype),"unregister",this).call(this),this.input&&(this.input.removeAttribute("name"),this.input.removeAttribute("aria-label"))}},{key:"setValue",value:function(e,t,a){if(e=this.applyConstFilter(e),(!this.template||a)&&(this.shouldBeUnset()||e!=null?X(e)==="object"?e=JSON.stringify(e):this.shouldBeUnset()||typeof e=="string"||(e="".concat(e)):e="",e!==this.serialized)){var d=this.sanitize(e);if(this.input.value!==d){if(this.setValueToInputField(d),this.format==="range"){var b=this.control.querySelector("output");b&&(b.value=d)}var P=a||this.getValue()!==e;return this.refreshValue(),t?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0),this.adjust_height&&this.adjust_height(this.input),P&&this.onChange(!0,a),{changed:P,value:d}}}}},{key:"setValueToInputField",value:function(e){this.input.value=e===void 0?"":e}},{key:"getNumColumns",value:function(){var e,t=Math.ceil(Math.max(this.getTitle().length,this.schema.maxLength||0,this.schema.minLength||0)/5);return e=this.input_type==="textarea"?6:["text","email"].includes(this.input_type)?4:2,Math.min(12,Math.max(t,e))}},{key:"build",value:function(){var e,t=this;if(this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.format=this.schema.format,!this.format&&this.schema.media&&this.schema.media.type&&(this.format=this.schema.media.type.replace(/(^(application|text)\/(x-)?(script\.)?)|(-source$)/g,"")),!this.format&&this.options.default_format&&(this.format=this.options.default_format),this.options.format&&(this.format=this.options.format),this.format)if(this.format==="textarea")this.input_type="textarea",this.input=this.theme.getTextareaInput();else if(this.format==="range"){this.input_type="range";var a=this.schema.minimum||0,d=this.schema.maximum||Math.max(100,a+1),b=1;this.schema.multipleOf&&(a%this.schema.multipleOf&&(a=Math.ceil(a/this.schema.multipleOf)*this.schema.multipleOf),d%this.schema.multipleOf&&(d=Math.floor(d/this.schema.multipleOf)*this.schema.multipleOf),b=this.schema.multipleOf),this.input=this.theme.getRangeInput(a,d,b,this.description,this.formname),this.input.setAttribute("id",this.formname)}else this.input_type="text",["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","reset","search","submit","tel","text","time","url","week"].includes(this.format)&&(this.input_type=this.format),this.input=this.theme.getFormInputField(this.input_type);else this.input_type="text",this.input=this.theme.getFormInputField(this.input_type);this.schema.maxLength!==void 0&&this.input.setAttribute("maxlength",this.schema.maxLength),this.schema.pattern!==void 0?this.input.setAttribute("pattern",this.schema.pattern):this.schema.minLength!==void 0&&this.input.setAttribute("pattern",".{".concat(this.schema.minLength,",}")),this.options.compact?this.container.classList.add("compact"):this.options.input_width&&(this.input.style.width=this.options.input_width),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&(this.disable(!0),this.input.setAttribute("readonly","true")),this.setInputAttributes(["maxlength","pattern","readonly","min","max","step"]),this.input.addEventListener("change",function(ae){if(ae.preventDefault(),ae.stopPropagation(),t.schema.template)ae.currentTarget.value=t.value;else{var se=ae.currentTarget.value,ge=t.sanitize(se);se!==ge&&(ae.currentTarget.value=ge),t.is_dirty=!0,t.refreshValue(),t.onChange(!0)}}),this.options.input_height&&(this.input.style.height=this.options.input_height),this.options.expand_height&&(this.adjust_height=function(ae){if(ae){var se,ge=ae.offsetHeight;if(ae.offsetHeight<ae.scrollHeight)for(se=0;ae.offsetHeight<ae.scrollHeight+3&&!(se>100);)se++,ge++,ae.style.height="".concat(ge,"px");else{for(se=0;ae.offsetHeight>=ae.scrollHeight+3&&!(se>100);)se++,ge--,ae.style.height="".concat(ge,"px");ae.style.height="".concat(ge+1,"px")}}},this.input.addEventListener("keyup",function(ae){t.adjust_height(ae.currentTarget)}),this.input.addEventListener("change",function(ae){t.adjust_height(ae.currentTarget)}),this.adjust_height());var P=(e=this.options.prompt_paste_max_length_reached)!==null&&e!==void 0?e:this.jsoneditor.options.prompt_paste_max_length_reached,I=this.schema.maxLength!==void 0;P&&I&&this.input.addEventListener("paste",function(ae){(ae.clipboardData||window.clipboardData).getData("text").length+t.input.value.length>t.schema.maxLength&&alert(t.translate("paste_max_length_reached",[t.schema.maxLength]))}),this.format&&this.input.setAttribute("data-schemaformat",this.format);var q=this.input;if(this.format==="range"&&(q=this.theme.getRangeControl(this.input,this.theme.getRangeOutput(this.input,this.schema.default||Math.max(this.schema.minimum||0,0)))),this.control=this.theme.getFormControl(this.label,q,this.description,this.infoButton,this.formname),this.container.appendChild(this.control),window.requestAnimationFrame(function(){t.input.parentNode&&t.afterInputReady(),t.adjust_height&&t.adjust_height(t.input),t.format==="range"&&(t.control.querySelector("output").value=t.input.value)}),this.schema.template){var K=this.expandCallbacks("template",{template:this.schema.template});typeof K.template=="function"?this.template=K.template:this.template=this.jsoneditor.compileTemplate(this.schema.template,this.template_engine),this.refreshValue()}else this.refreshValue()}},{key:"setupCleave",value:function(e){var t=this.expandCallbacks("cleave",y({},this.defaults.options.cleave||{},this.options.cleave||{}));X(t)==="object"&&Object.keys(t).length>0&&(this.cleave_instance=new window.Cleave(e,t))}},{key:"setupImask",value:function(e){var t=this.expandCallbacks("imask",y({},this.defaults.options.imask||{},this.options.imask||{}));X(t)==="object"&&Object.keys(t).length>0&&(this.imask_instance=window.IMask(e,this.ajustIMaskOptions(t)))}},{key:"ajustIMaskOptions",value:function(e){var t=this;return Object.keys(e).forEach(function(a){if(e[a]===Object(e[a]))e[a]=t.ajustIMaskOptions(e[a]);else if(a==="mask")if(e[a].substr(0,6)==="regex:"){var d=e[a].match(/^regex:\/(.*)\/([gimsuy]*)$/);if(d!==null)try{e[a]=new RegExp(d[1],d[2])}catch{}}else e[a]=t.getGlobalPropertyFromString(e[a])}),e}},{key:"getGlobalPropertyFromString",value:function(e){if(e.includes(".")){var t=e.split("."),a=t[0],d=t[1];if(window[a]!==void 0&&window[a][d]!==void 0)return window[a][d]}else if(window[e]!==void 0)return window[e];return e}},{key:"shouldBeUnset",value:function(){return!this.jsoneditor.options.use_default_values&&!this.is_dirty}},{key:"getValue",value:function(){var e=!(!this.input||!this.input.value);if(!this.shouldBeUnset()||e)return this.imask_instance&&this.dependenciesFulfilled&&this.options.imask.returnUnmasked?this.imask_instance.unmaskedValue:_e(ke(r.prototype),"getValue",this).call(this)}},{key:"enable",value:function(){this.always_disabled||(this.input.disabled=!1,_e(ke(r.prototype),"enable",this).call(this))}},{key:"disable",value:function(e){e&&(this.always_disabled=!0),this.input.disabled=!0,_e(ke(r.prototype),"disable",this).call(this)}},{key:"afterInputReady",value:function(){this.theme.afterInputReady(this.input),window.Cleave&&!this.cleave_instance?this.setupCleave(this.input):window.IMask&&!this.imask_instance&&this.setupImask(this.input)}},{key:"refreshValue",value:function(){this.input&&(this.value=this.input.value,typeof this.value=="string"||this.shouldBeUnset()||(this.value=""),this.serialized=this.value)}},{key:"destroy",value:function(){this.cleave_instance&&this.cleave_instance.destroy(),this.imask_instance&&this.imask_instance.destroy(),this.template=null,this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),_e(ke(r.prototype),"destroy",this).call(this)}},{key:"sanitize",value:function(e){return e}},{key:"onWatchedFieldChange",value:function(){var e;this.template&&(e=this.getWatchedFieldValues(),this.setValue(this.template(e),!1,!0)),_e(ke(r.prototype),"onWatchedFieldChange",this).call(this)}},{key:"showValidationErrors",value:function(e){var t=this;if(this.jsoneditor.options.show_errors!=="always"){if(!this.is_dirty&&this.previous_error_setting===this.jsoneditor.options.show_errors)return}this.previous_error_setting=this.jsoneditor.options.show_errors;var a=e.reduce(function(d,b){return b.path===t.path&&d.push(b.message),d},[]);a.length?this.theme.addInputError(this.input,"".concat(a.join(". "),".")):this.theme.removeInputError(this.input)}}])&&ee(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function Ee(s){return Ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ee(s)}function Ue(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Ke(u.key),u)}}function Ke(s){var r=function(n,u){if(Ee(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Ee(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Ee(r)=="symbol"?r:r+""}function tt(s,r,n){return r=qe(r),function(u,e){if(e&&(Ee(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,je()?Reflect.construct(r,n||[],qe(s).constructor):r.apply(s,n))}function je(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(je=function(){return!!s})()}function Ye(){return Ye=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=qe(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Ye.apply(this,arguments)}function qe(s){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qe(s)}function St(s,r){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},St(s,r)}var Nt=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),tt(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&St(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t,a){e=this.applyConstFilter(e);var d=Ye(qe(r.prototype),"setValue",this).call(this,e,t,a);d!==void 0&&d.changed&&this.ace_editor_instance&&(this.ace_editor_instance.setValue(d.value),this.ace_editor_instance.session.getSelection().clearSelection(),this.ace_editor_instance.resize())}},{key:"build",value:function(){this.options.format="textarea",Ye(qe(r.prototype),"build",this).call(this),this.input_type=this.schema.format,this.input.setAttribute("data-schemaformat",this.input_type)}},{key:"afterInputReady",value:function(){var e,t=this;if(window.ace){var a=this.input_type;a!=="cpp"&&a!=="c++"&&a!=="c"||(a="c_cpp"),e=this.expandCallbacks("ace",y({},{selectionStyle:"text",minLines:30,maxLines:30},this.defaults.options.ace||{},this.options.ace||{},{mode:"ace/mode/".concat(a)})),this.ace_container=document.createElement("div"),this.ace_container.style.width="100%",this.ace_container.style.position="relative",this.input.parentNode.insertBefore(this.ace_container,this.input),this.input.style.display="none",this.ace_editor_instance=window.ace.edit(this.ace_container,e),this.ace_editor_instance.setValue(this.getValue()),this.ace_editor_instance.session.getSelection().clearSelection(),this.ace_editor_instance.resize(),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&this.ace_editor_instance.setReadOnly(!0),this.ace_editor_instance.on("change",function(){t.input.value=t.ace_editor_instance.getValue(),t.refreshValue(),t.is_dirty=!0,t.onChange(!0)}),this.theme.afterInputReady(this.input)}else Ye(qe(r.prototype),"afterInputReady",this).call(this)}},{key:"getNumColumns",value:function(){return 6}},{key:"enable",value:function(){!this.always_disabled&&this.ace_editor_instance&&this.ace_editor_instance.setReadOnly(!1),Ye(qe(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(e){this.ace_editor_instance&&this.ace_editor_instance.setReadOnly(!0),Ye(qe(r.prototype),"disable",this).call(this,e)}},{key:"destroy",value:function(){this.ace_editor_instance&&(this.ace_editor_instance.destroy(),this.ace_editor_instance=null),Ye(qe(r.prototype),"destroy",this).call(this)}}])&&Ue(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le);function _t(s){return _t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_t(s)}function ct(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Ge(u.key),u)}}function Ge(s){var r=function(n,u){if(_t(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(_t(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return _t(r)=="symbol"?r:r+""}function jt(s,r,n){return r=st(r),function(u,e){if(e&&(_t(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,vt()?Reflect.construct(r,n||[],st(s).constructor):r.apply(s,n))}function vt(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vt=function(){return!!s})()}function Xe(){return Xe=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=st(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Xe.apply(this,arguments)}function st(s){return st=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},st(s)}function pt(s,r){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},pt(s,r)}j(2008),j(4554);var zt=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),jt(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pt(e,t)}(r,s),n=r,u=[{key:"askConfirmation",value:function(){return this.jsoneditor.options.prompt_before_delete!==!0||window.confirm(this.translate("button_delete_node_warning"))!==!1}},{key:"register",value:function(){Xe(st(r.prototype),"register",this).call(this),this.rows&&this.rows.forEach(function(e){return e.register()})}},{key:"unregister",value:function(){Xe(st(r.prototype),"unregister",this).call(this),this.rows&&this.rows.forEach(function(e){return e.unregister()})}},{key:"getNumColumns",value:function(){var e=this.getItemInfo(0);return this.tabs_holder&&this.schema.format!=="tabs-top"?Math.max(Math.min(12,e.width+2),4):e.width}},{key:"enable",value:function(){var e=this;this.always_disabled||(this.setAvailability(this,!1),this.rows&&this.rows.forEach(function(t){t.enable(),e.setAvailability(t,!1)}),Xe(st(r.prototype),"enable",this).call(this))}},{key:"disable",value:function(e){var t=this;e&&(this.always_disabled=!0),this.setAvailability(this,!0),this.rows&&this.rows.forEach(function(a){a.disable(e),t.setAvailability(a,!0)}),Xe(st(r.prototype),"disable",this).call(this)}},{key:"setAvailability",value:function(e,t){e.add_row_button&&(e.add_row_button.disabled=t),e.remove_all_rows_button&&(e.remove_all_rows_button.disabled=t),e.delete_last_row_button&&(e.delete_last_row_button.disabled=t),e.copy_button&&(e.copy_button.disabled=t),e.delete_button&&(e.delete_button.disabled=t),e.moveup_button&&(e.moveup_button.disabled=t),e.movedown_button&&(e.movedown_button.disabled=t)}},{key:"preBuild",value:function(){Xe(st(r.prototype),"preBuild",this).call(this),this.rows=[],this.row_cache=[],this.hide_delete_buttons=this.options.disable_array_delete||this.jsoneditor.options.disable_array_delete,this.hide_delete_all_rows_buttons=this.hide_delete_buttons||this.options.disable_array_delete_all_rows||this.jsoneditor.options.disable_array_delete_all_rows,this.hide_delete_last_row_buttons=this.hide_delete_buttons||this.options.disable_array_delete_last_row||this.jsoneditor.options.disable_array_delete_last_row,this.hide_move_buttons=this.options.disable_array_reorder||this.jsoneditor.options.disable_array_reorder,this.hide_add_button=this.options.disable_array_add||this.jsoneditor.options.disable_array_add,this.show_copy_button=this.options.enable_array_copy||this.jsoneditor.options.enable_array_copy,this.array_controls_top=this.options.array_controls_top||this.jsoneditor.options.array_controls_top}},{key:"build",value:function(){this.options.compact?(this.title=this.theme.getHeader("",this.getPathDepth()),this.container.appendChild(this.title),this.panel=this.theme.getIndentedPanel(),this.container.appendChild(this.panel),this.title_controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.title_controls),this.controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.controls),this.row_holder=document.createElement("div"),this.panel.appendChild(this.row_holder)):(this.header=document.createElement("span"),this.header.textContent=this.getTitle(),this.title=this.theme.getHeader(this.header,this.getPathDepth()),this.container.appendChild(this.title),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText)),this.container.appendChild(this.infoButton)),this.title_controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.title_controls),this.schema.description&&(this.description=this.theme.getDescription(this.translateProperty(this.schema.description)),this.container.appendChild(this.description)),this.error_holder=document.createElement("div"),this.container.appendChild(this.error_holder),this.schema.format==="tabs-top"?(this.controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.controls),this.tabs_holder=this.theme.getTopTabHolder(this.getValidId(this.getItemTitle())),this.container.appendChild(this.tabs_holder),this.row_holder=this.theme.getTopTabContentHolder(this.tabs_holder),this.active_tab=null):this.schema.format==="tabs"?(this.controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.controls),this.tabs_holder=this.theme.getTabHolder(this.getValidId(this.getItemTitle())),this.container.appendChild(this.tabs_holder),this.row_holder=this.theme.getTabContentHolder(this.tabs_holder),this.active_tab=null):(this.panel=this.theme.getIndentedPanel(),this.container.appendChild(this.panel),this.row_holder=document.createElement("div"),this.panel.appendChild(this.row_holder),this.controls=this.theme.getButtonHolder(),this.array_controls_top?this.title.appendChild(this.controls):this.panel.appendChild(this.controls))),this.addControls()}},{key:"postBuild",value:function(){Xe(st(r.prototype),"postBuild",this).call(this),(this.schema.readOnly||this.schema.readonly)&&this.disable()}},{key:"onChildEditorChange",value:function(e,t){this.refreshValue(),this.refreshTabs(!0),this.is_dirty=!0,Xe(st(r.prototype),"onChildEditorChange",this).call(this,e,t)}},{key:"getItemTitle",value:function(){if(!this.item_title)if(this.schema.items&&!Array.isArray(this.schema.items)){var e=this.jsoneditor.expandRefs(this.schema.items);this.item_title=this.translateProperty(e.title)||this.translate("default_array_item_title")}else this.item_title=this.translate("default_array_item_title");return this.cleanText(this.item_title)}},{key:"getItemSchema",value:function(e){return Array.isArray(this.schema.items)?e>=this.schema.items.length?this.schema.additionalItems===!0?{}:this.schema.additionalItems?y({},this.schema.additionalItems):void 0:y({},this.schema.items[e]):this.schema.items?y({},this.schema.items):{}}},{key:"getItemInfo",value:function(e){var t=this.getItemSchema(e);this.item_info=this.item_info||{};var a=JSON.stringify(t);return this.item_info[a]!==void 0||(t=this.jsoneditor.expandRefs(t),this.item_info[a]={title:this.translateProperty(t.title)||this.translate("default_array_item_title"),default:t.default,width:12,child_editors:t.properties||t.items}),this.item_info[a]}},{key:"getElementEditor",value:function(e){var t=this.getItemInfo(e),a=this.getItemSchema(e);(a=this.jsoneditor.expandRefs(a)).title="".concat(t.title," ").concat(e+1);var d,b=this.jsoneditor.getEditorClass(a);this.tabs_holder?(d=this.schema.format==="tabs-top"?this.theme.getTopTabContent():this.theme.getTabContent()).id="".concat(this.path,".").concat(e):d=t.child_editors?this.theme.getChildEditorHolder():this.theme.getIndentedPanel(),this.row_holder.appendChild(d);var P=this.jsoneditor.createEditor(b,{jsoneditor:this.jsoneditor,schema:a,container:d,path:"".concat(this.path,".").concat(e),parent:this,required:!0});return P.preBuild(),P.build(),P.postBuild(),P.title_controls||(P.array_controls=this.theme.getButtonHolder(),d.appendChild(P.array_controls)),P}},{key:"checkParent",value:function(e){return e&&e.parentNode}},{key:"destroy",value:function(){this.empty(!0),this.checkParent(this.title)&&this.title.parentNode.removeChild(this.title),this.checkParent(this.description)&&this.description.parentNode.removeChild(this.description),this.checkParent(this.row_holder)&&this.row_holder.parentNode.removeChild(this.row_holder),this.checkParent(this.controls)&&this.controls.parentNode.removeChild(this.controls),this.checkParent(this.panel)&&this.panel.parentNode.removeChild(this.panel),this.rows=this.row_cache=this.title=this.description=this.row_holder=this.panel=this.controls=null,Xe(st(r.prototype),"destroy",this).call(this)}},{key:"empty",value:function(e){var t=this;if(this.rows!==null){if(this.rows.forEach(function(d,b){e&&(t.checkParent(d.tab)&&d.tab.parentNode.removeChild(d.tab),t.destroyRow(d,!0),t.row_cache[b]=null),t.rows[b]=null}),e)for(var a=this.rows.length;a<this.row_cache.length;a++)this.destroyRow(this.row_cache[a],!0),this.row_cache[a]=null;this.rows=[],e&&(this.row_cache=[])}}},{key:"destroyRow",value:function(e,t){var a=e.container;t?(e.destroy(),a.parentNode&&a.parentNode.removeChild(a),this.checkParent(e.tab)&&e.tab.parentNode.removeChild(e.tab)):(e.tab&&(e.tab.style.display="none"),a.style.display="none",e.unregister())}},{key:"getMax",value:function(){return Array.isArray(this.schema.items)&&this.schema.additionalItems===!1?Math.min(this.schema.items.length,this.schema.maxItems||1/0):this.schema.maxItems||1/0}},{key:"refreshTabs",value:function(e){var t=this;this.rows.forEach(function(a){a.tab&&(e?a.tab_text.textContent=a.getHeaderText():a.tab===t.active_tab?t.theme.markTabActive(a):t.theme.markTabInactive(a))})}},{key:"ensureArraySize",value:function(e){if(Array.isArray(e)||(e=[e]),this.schema.minItems)for(;e.length<this.schema.minItems;)e.push(this.getItemInfo(e.length).default);return this.getMax()&&e.length>this.getMax()&&(e=e.slice(0,this.getMax())),e}},{key:"setValue",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0;if(t=this.applyConstFilter(t),t=this.ensureArraySize(t),JSON.stringify(t)!==this.serialized){t.forEach(function(I,q){if(e.rows[q])e.rows[q].setValue(I,a);else if(e.row_cache[q])e.rows[q]=e.row_cache[q],e.rows[q].setValue(I,a),e.rows[q].container.style.display="",e.rows[q].tab&&(e.rows[q].tab.style.display=""),e.rows[q].register(),e.jsoneditor.trigger("addRow",e.rows[q]);else{var K=e.addRow(I,a);e.jsoneditor.trigger("addRow",K)}});for(var d=t.length;d<this.rows.length;d++)this.destroyRow(this.rows[d]),this.rows[d]=null;this.rows=this.rows.slice(0,t.length);var b=this.rows.find(function(I){return I.tab===e.active_tab}),P=b!==void 0?b.tab:null;!P&&this.rows.length&&(P=this.rows[0].tab),this.active_tab=P,this.refreshValue(a),this.refreshTabs(!0),this.refreshTabs(),this.onChange()}else a&&this.refreshValue(a)}},{key:"setButtonState",value:function(e,t){switch(this.options.button_state_mode||this.jsoneditor.options.button_state_mode){case 1:default:e.style.display=t?"":"none";break;case 2:e.disabled=!t}}},{key:"setupButtons",value:function(e){var t=[];if(this.value.length)if(this.value.length===1){this.setButtonState(this.remove_all_rows_button,!1);var a=!(e||this.hide_delete_last_row_buttons);this.setButtonState(this.delete_last_row_button,a),t.push(a)}else{var d=!(e||this.hide_delete_last_row_buttons);this.setButtonState(this.delete_last_row_button,d),t.push(d);var b=!(e||this.hide_delete_all_rows_buttons);this.setButtonState(this.remove_all_rows_button,b),t.push(b)}else this.setButtonState(this.delete_last_row_button,!1),this.setButtonState(this.remove_all_rows_button,!1);var P=!(this.getMax()&&this.getMax()<=this.rows.length||this.hide_add_button);return this.setButtonState(this.add_row_button,P),t.push(P),t.some(function(I){return I})}},{key:"refreshValue",value:function(e){var t=this,a=this.value?this.value.length:0;if(this.value=this.rows.map(function(b){return b.getValue()}),a!==this.value.length||e){var d=this.schema.minItems&&this.schema.minItems>=this.rows.length;this.rows.forEach(function(b,P){if(b.movedown_button){var I=P!==t.rows.length-1;t.setButtonState(b.movedown_button,I)}b.delete_button&&t.setButtonState(b.delete_button,!d),t.value[P]=b.getValue()}),this.setupButtons(d)&&!this.collapsed?this.controls.style.display="inline-block":this.controls.style.display="none"}this.serialized=JSON.stringify(this.value)}},{key:"addRow",value:function(e,t){var a=this,d=this.rows.length;this.rows[d]=this.getElementEditor(d),this.row_cache[d]=this.rows[d],this.tabs_holder?(this.rows[d].tab_text=document.createElement("span"),this.rows[d].tab_text.textContent=this.rows[d].getHeaderText(),this.schema.format==="tabs-top"?(this.rows[d].tab=this.theme.getTopTab(this.rows[d].tab_text,this.getValidId(this.rows[d].path)),this.theme.addTopTab(this.tabs_holder,this.rows[d].tab)):(this.rows[d].tab=this.theme.getTab(this.rows[d].tab_text,this.getValidId(this.rows[d].path)),this.theme.addTab(this.tabs_holder,this.rows[d].tab)),this.rows[d].tab.addEventListener("click",function(P){a.active_tab=a.rows[d].tab,a.refreshTabs(),P.preventDefault(),P.stopPropagation()}),this._supportDragDrop(this.rows[d].tab)):this._supportDragDrop(this.rows[d].container,!0);var b=this.rows[d].title_controls||this.rows[d].array_controls;return this.hide_delete_buttons||(this.rows[d].delete_button=this._createDeleteButton(d,b)),this.show_copy_button&&(this.rows[d].copy_button=this._createCopyButton(d,b)),d&&!this.hide_move_buttons&&(this.rows[d].moveup_button=this._createMoveUpButton(d,b)),this.hide_move_buttons||(this.rows[d].movedown_button=this._createMoveDownButton(d,b)),e!==void 0&&this.rows[d].setValue(e,t),this.refreshTabs(),this.rows[d]}},{key:"_createDeleteButton",value:function(e,t){var a=this,d=this.getButton(this.getItemTitle(),"delete","button_delete_row_title",[this.getItemTitle()]);return d.classList.add("delete","json-editor-btntype-delete"),d.setAttribute("data-i",e),d.addEventListener("click",function(b){if(b.preventDefault(),b.stopPropagation(),!a.askConfirmation())return!1;var P=1*b.currentTarget.getAttribute("data-i"),I=a.getValue().filter(function(ae,se){return se!==P}),q=null,K=a.rows[P].getValue();a.setValue(I),a.rows[P]?q=a.rows[P].tab:a.rows[P-1]&&(q=a.rows[P-1].tab),q&&(a.active_tab=q,a.refreshTabs()),a.onChange(!0),a.jsoneditor.trigger("deleteRow",K)}),t&&t.appendChild(d),d}},{key:"_createCopyButton",value:function(e,t){var a=this,d=this.getButton(this.getItemTitle(),"copy","button_copy_row_title",[this.getItemTitle()]),b=this.schema;return d.classList.add("copy","json-editor-btntype-copy"),d.setAttribute("data-i",e),d.addEventListener("click",function(P){var I=a.getValue();P.preventDefault(),P.stopPropagation();var q=1*P.currentTarget.getAttribute("data-i");I.forEach(function(K,ae){if(ae===q){if(b.items.type==="string"&&b.items.format==="uuid")K=R();else if(b.items.type==="object"&&b.items.properties)for(var se=0,ge=Object.keys(K);se<ge.length;se++){var Oe=ge[se];b.items.properties&&b.items.properties[Oe]&&b.items.properties[Oe].format==="uuid"&&(K[Oe]=R())}I.push(K)}}),a.setValue(I),a.refreshValue(!0),a.onChange(!0),a.jsoneditor.trigger("copyRow",a.rows[q-1])}),t.appendChild(d),d}},{key:"_createMoveUpButton",value:function(e,t){var a=this,d=this.getButton("",this.schema.format==="tabs-top"?"moveleft":"moveup","button_move_up_title");return d.classList.add("moveup","json-editor-btntype-move"),d.setAttribute("data-i",e),d.addEventListener("click",function(b){b.preventDefault(),b.stopPropagation();var P=1*b.currentTarget.getAttribute("data-i");if(!(P<=0)){var I=a.getValue(),q=I[P-1];I[P-1]=I[P],I[P]=q,a.setValue(I),a.active_tab=a.rows[P-1].tab,a.refreshTabs(),a.onChange(!0),a.jsoneditor.trigger("moveRow",a.rows[P-1])}}),t&&t.appendChild(d),d}},{key:"_createMoveDownButton",value:function(e,t){var a=this,d=this.getButton("",this.schema.format==="tabs-top"?"moveright":"movedown","button_move_down_title");return d.classList.add("movedown","json-editor-btntype-move"),d.setAttribute("data-i",e),d.addEventListener("click",function(b){b.preventDefault(),b.stopPropagation();var P=1*b.currentTarget.getAttribute("data-i"),I=a.getValue();if(!(P>=I.length-1)){var q=I[P+1];I[P+1]=I[P],I[P]=q,a.setValue(I),a.active_tab=a.rows[P+1].tab,a.refreshTabs(),a.onChange(!0),a.jsoneditor.trigger("moveRow",a.rows[P+1])}}),t&&t.appendChild(d),d}},{key:"_supportDragDrop",value:function(e,t){var a=this;Qt(e,function(d,b){var P=a.getValue(),I=P[d];P.splice(d,1),P.splice(b,0,I),a.setValue(P),a.active_tab=a.rows[b].tab,a.refreshTabs(),a.onChange(!0),a.jsoneditor.trigger("moveRow",a.rows[b])},{useTrigger:t})}},{key:"addControls",value:function(){this.collapsed=!1,this.toggle_button=this._createToggleButton(),this.options.collapsed&&x(this.toggle_button,"click"),this.schema.options&&this.schema.options.disable_collapse!==void 0?this.schema.options.disable_collapse&&(this.toggle_button.style.display="none"):this.jsoneditor.options.disable_collapse&&(this.toggle_button.style.display="none"),this.add_row_button=this._createAddRowButton(),this.delete_last_row_button=this._createDeleteLastRowButton(),this.remove_all_rows_button=this._createRemoveAllRowsButton(),this.tabs&&(this.add_row_button.classList.add("je-array-control-btn"),this.delete_last_row_button.classList.add("je-array-control-btn"),this.remove_all_rows_button.classList.add("je-array-control-btn"))}},{key:"_createToggleButton",value:function(){var e=this,t=this.getButton("","collapse","button_collapse");t.classList.add("json-editor-btntype-toggle"),this.title.insertBefore(t,this.title.childNodes[0]);var a=this.row_holder.style.display,d=this.controls.style.display;return t.addEventListener("click",function(b){b.preventDefault(),b.stopPropagation(),e.panel&&e.setButtonState(e.panel,e.collapsed),e.tabs_holder&&e.setButtonState(e.tabs_holder,e.collapsed),e.collapsed?(e.collapsed=!1,e.row_holder.style.display=a,e.controls.style.display=d,e.setButtonText(b.currentTarget,"","collapse","button_collapse")):(e.collapsed=!0,e.row_holder.style.display="none",e.controls.style.display="none",e.setButtonText(b.currentTarget,"","expand","button_expand"))}),t}},{key:"_createAddRowButton",value:function(){var e=this,t=this.getButton(this.getItemTitle(),"add","button_add_row_title",[this.getItemTitle()]);return t.classList.add("json-editor-btntype-add"),t.addEventListener("click",function(a){a.preventDefault(),a.stopPropagation();var d,b=e.rows.length;e.row_cache[b]?(d=e.rows[b]=e.row_cache[b],e.rows[b].setValue(e.rows[b].getDefault(),!0),typeof e.rows[b].deactivateNonRequiredProperties=="function"&&e.rows[b].deactivateNonRequiredProperties(!0),e.rows[b].container.style.display="",e.rows[b].tab&&(e.rows[b].tab.style.display=""),e.rows[b].register()):d=e.addRow(),e.active_tab=e.rows[b].tab,e.refreshTabs(),e.refreshValue(),e.onChange(!0),e.jsoneditor.trigger("addRow",d)}),this.controls.appendChild(t),t}},{key:"_createDeleteLastRowButton",value:function(){var e=this,t=this.getButton("button_delete_last","subtract","button_delete_last_title",[this.getItemTitle()]);return t.classList.add("json-editor-btntype-deletelast"),t.addEventListener("click",function(a){if(a.preventDefault(),a.stopPropagation(),!e.askConfirmation())return!1;var d=e.getValue(),b=null,P=d.pop();e.setValue(d),e.rows[e.rows.length-1]&&(b=e.rows[e.rows.length-1].tab),b&&(e.active_tab=b,e.refreshTabs()),e.onChange(!0),e.jsoneditor.trigger("deleteRow",P)}),this.controls.appendChild(t),t}},{key:"_createRemoveAllRowsButton",value:function(){var e=this,t=this.getButton("button_delete_all","delete","button_delete_all_title");return t.classList.add("json-editor-btntype-deleteall"),t.addEventListener("click",function(a){if(a.preventDefault(),a.stopPropagation(),!e.askConfirmation())return!1;var d=e.getValue();e.empty(!0),e.setValue([]),e.onChange(!0),e.jsoneditor.trigger("deleteAllRows",d)}),this.controls.appendChild(t),t}},{key:"showValidationErrors",value:function(e){var t=this,a=[],d=[];e.forEach(function(b){b.path===t.path?a.push(b):d.push(b)}),this.error_holder&&(a.length?(this.error_holder.innerHTML="",this.error_holder.style.display="",a.forEach(function(b){t.error_holder.appendChild(t.theme.getErrorMessage(b.message))})):this.error_holder.style.display="none"),this.rows.forEach(function(b){return b.showValidationErrors(d)})}}],u&&ct(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function Qt(s,r){(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).useTrigger?s.addEventListener("mousedown",function(n){if(n.ctrlKey){s.draggable=!0;var u=function e(t){s.draggable=!1,document.removeEventListener("dragend",e),document.removeEventListener("mouseup",e)};document.addEventListener("dragend",u),document.addEventListener("mouseup",u)}}):s.draggable=!0,s.addEventListener("dragstart",function(n){window.curDrag=s}),s.addEventListener("dragover",function(n){window.curDrag===null||window.curDrag===s||window.curDrag.parentElement!==s.parentElement?n.dataTransfer.dropEffect="none":n.dataTransfer.dropEffect="move",n.preventDefault()}),s.addEventListener("drop",function(n){if(n.preventDefault(),n.stopPropagation(),window.curDrag!==null&&window.curDrag!==s&&window.curDrag.parentElement===s.parentElement){var u=function(a){for(var d=0,b=a.parentElement.firstElementChild;b!==a&&b!==null;)b=b.nextSibling,++d;return d},e=u(window.curDrag),t=u(s);r(e,t,window.curDrag,s),window.curDrag=null}})}function Lt(s){return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lt(s)}function or(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,rr(u.key),u)}}function rr(s){var r=function(n,u){if(Lt(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Lt(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Lt(r)=="symbol"?r:r+""}function hr(s,r,n){return r=Mt(r),function(u,e){if(e&&(Lt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Ft()?Reflect.construct(r,n||[],Mt(s).constructor):r.apply(s,n))}function Ft(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ft=function(){return!!s})()}function It(){return It=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Mt(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},It.apply(this,arguments)}function Mt(s){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mt(s)}function fe(s,r){return fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},fe(s,r)}zt.rules={".json-editor-btntype-toggle":"margin:0%2010px%200%200",".je-array-control-btn":"width:100%25;text-align:left;margin-bottom:3px"};var Pe=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),hr(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fe(e,t)}(r,s),n=r,(u=[{key:"onInputChange",value:function(){this.value=this.input.value,this.onChange(!0)}},{key:"register",value:function(){It(Mt(r.prototype),"register",this).call(this),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}},{key:"unregister",value:function(){It(Mt(r.prototype),"unregister",this).call(this),this.input&&this.input.removeAttribute("name")}},{key:"getNumColumns",value:function(){var e=this,t=this.getTitle().length;return Object.keys(this.select_values).forEach(function(a){return t=Math.max(t,"".concat(e.select_values[a]).length+4)}),Math.min(12,Math.max(t/7,2))}},{key:"preBuild",value:function(){var e;It(Mt(r.prototype),"preBuild",this).call(this),this.select_options={},this.select_values={},this.option_titles=[],this.option_keys=[],this.option_enum=[];var t=this.jsoneditor.expandRefs(this.schema.items||{}),a=t.enum||[],d=t.options&&t.options.enum||[],b=t.options&&t.options.enum_titles||[];for(e=0;e<a.length;e++)if(this.sanitize(a[e])===a[e]){var P=d[e]||{};"title"in P||(P.title="".concat(b[e]||a[e])),this.option_keys.push("".concat(a[e])),this.option_enum.push(P),this.select_values["".concat(a[e])]=a[e]}}},{key:"build",value:function(){var e,t=this;if(this.options.compact||(this.header=this.label=this.theme.getLabelLike(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),!this.schema.format&&this.option_keys.length<8||this.schema.format==="checkbox"){for(this.input_type="checkboxes",this.inputs={},this.controls={},e=0;e<this.option_keys.length;e++){var a=this.formname+e.toString();this.inputs[this.option_keys[e]]=this.theme.getCheckbox(),this.inputs[this.option_keys[e]].id=a,this.select_options[this.option_keys[e]]=this.inputs[this.option_keys[e]];var d=this.theme.getCheckboxLabel(this.option_enum[e].title);if(d.htmlFor=a,this.option_enum[e].infoText){var b=this.theme.getInfoButton(this.translateProperty(this.option_enum[e].infoText));d.appendChild(b)}this.controls["_"+this.option_keys[e]]=this.theme.getFormControl(d,this.inputs[this.option_keys[e]])}this.control=this.theme.getMultiCheckboxHolder(this.controls,this.label,this.description,this.infoButton),this.inputs.controlgroup=this.inputs.controls=this.control}else{for(this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.input_type="select",this.input=this.theme.getSelectInput(this.option_keys,!0),this.theme.setSelectOptions(this.input,this.option_keys,this.option_enum.map(function(P){return P.title})),this.input.setAttribute("multiple","multiple"),this.input.size=Math.min(10,this.option_keys.length),e=0;e<this.option_keys.length;e++)this.select_options[this.option_keys[e]]=this.input.children[e];this.control=this.theme.getFormControl(this.label,this.input,this.description,this.infoButton,this.formname)}(this.schema.readOnly||this.schema.readonly)&&this.disable(!0),this.container.appendChild(this.control),this.multiselectChangeHandler=function(P){var I=[];for(e=0;e<t.option_keys.length;e++)t.select_options[t.option_keys[e]]&&(t.select_options[t.option_keys[e]].selected||t.select_options[t.option_keys[e]].checked)&&I.push(t.select_values[t.option_keys[e]]);t.updateValue(I),t.onChange(!0)},this.control.addEventListener("change",this.multiselectChangeHandler,!1),window.requestAnimationFrame(function(){t.afterInputReady()})}},{key:"postBuild",value:function(){It(Mt(r.prototype),"postBuild",this).call(this)}},{key:"afterInputReady",value:function(){this.theme.afterInputReady(this.input||this.inputs)}},{key:"setValue",value:function(e,t){var a=this;e=(e=this.applyConstFilter(e))||[],Array.isArray(e)||(e=[e]),e=e.map(function(d){return"".concat(d)}),Object.keys(this.select_options).forEach(function(d){a.select_options[d][a.input_type==="select"?"selected":"checked"]=e.includes(d)}),this.updateValue(e),this.onChange(!0)}},{key:"removeValue",value:function(e){e=[].concat(e),this.setValue(this.getValue().filter(function(t){return!e.includes(t)}))}},{key:"addValue",value:function(e){this.setValue(this.getValue().concat(e))}},{key:"updateValue",value:function(e){for(var t=!1,a=[],d=0;d<e.length;d++)if(this.select_options["".concat(e[d])]){var b=this.sanitize(this.select_values[e[d]]);a.push(b),b!==e[d]&&(t=!0)}else t=!0;return this.value=a,t}},{key:"sanitize",value:function(e){return this.schema.items.type==="boolean"?!!e:this.schema.items.type==="number"?1*e||0:this.schema.items.type==="integer"?Math.floor(1*e||0):"".concat(e)}},{key:"enable",value:function(){var e=this;this.always_disabled||(this.input?this.input.disabled=!1:this.inputs&&Object.keys(this.inputs).forEach(function(t){return e.inputs[t].disabled=!1}),It(Mt(r.prototype),"enable",this).call(this))}},{key:"disable",value:function(e){var t=this;e&&(this.always_disabled=!0),this.input?this.input.disabled=!0:this.inputs&&Object.keys(this.inputs).forEach(function(a){return t.inputs[a].disabled=!0}),It(Mt(r.prototype),"disable",this).call(this)}},{key:"destroy",value:function(){It(Mt(r.prototype),"destroy",this).call(this)}},{key:"escapeRegExp",value:function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},{key:"showValidationErrors",value:function(e){var t=new RegExp("^".concat(this.escapeRegExp(this.path),"(\\.\\d+)?$")),a=e.reduce(function(d,b){return b.path.match(t)&&d.push(b.message),d},[]);a.length?this.theme.addInputError(this.input||this.inputs,"".concat(a.join(". "),".")):this.theme.removeInputError(this.input||this.inputs)}}])&&or(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function ze(s){return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ze(s)}function bt(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Pt(u.key),u)}}function Pt(s){var r=function(n,u){if(ze(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(ze(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return ze(r)=="symbol"?r:r+""}function Xt(s,r,n){return r=At(r),function(u,e){if(e&&(ze(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,nr()?Reflect.construct(r,n||[],At(s).constructor):r.apply(s,n))}function nr(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nr=function(){return!!s})()}function Wt(){return Wt=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=At(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Wt.apply(this,arguments)}function At(s){return At=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},At(s)}function Ut(s,r){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Ut(s,r)}var ft=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Xt(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ut(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t){this.choices_instance?(e=this.applyConstFilter(e),e=[].concat(e).map(function(a){return"".concat(a)}),this.updateValue(e),this.choices_instance.removeActiveItems(),this.choices_instance.setChoiceByValue(this.value),this.onChange(!0)):Wt(At(r.prototype),"setValue",this).call(this,e,t)}},{key:"afterInputReady",value:function(){var e=this;if(window.Choices&&!this.choices_instance){var t=this.expandCallbacks("choices",y({},{removeItems:!0,removeItemButton:!0},this.defaults.options.choices||{},this.options.choices||{},{addItems:!0,editItems:!1,duplicateItemsAllowed:!1}));this.newEnumAllowed=!1,this.choices_instance=new window.Choices(this.input,t),this.control.removeEventListener("change",this.multiselectChangeHandler),this.multiselectChangeHandler=function(a){var d=e.choices_instance.getValue(!0);e.updateValue(d),e.onChange(!0)},this.control.addEventListener("change",this.multiselectChangeHandler,!1)}Wt(At(r.prototype),"afterInputReady",this).call(this)}},{key:"updateValue",value:function(e){e=[].concat(e);for(var t=!1,a=[],d=0;d<e.length;d++)if(!(!this.select_values["".concat(e[d])]&&(t=!0,!this.newEnumAllowed||!this.addNewOption(e[d])))){var b=this.sanitize(this.select_values[e[d]]);a.push(b),b!==e[d]&&(t=!0)}return this.value=a,t}},{key:"addNewOption",value:function(e){return this.option_keys.push("".concat(e)),this.option_titles.push("".concat(e)),this.select_values["".concat(e)]=e,this.schema.items.enum.push(e),this.choices_instance.setChoices([{value:"".concat(e),label:"".concat(e)}],"value","label",!1),!0}},{key:"enable",value:function(){!this.always_disabled&&this.choices_instance&&this.choices_instance.enable(),Wt(At(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(e){this.choices_instance&&this.choices_instance.disable(),Wt(At(r.prototype),"disable",this).call(this,e)}},{key:"destroy",value:function(){this.choices_instance&&(this.choices_instance.destroy(),this.choices_instance=null),Wt(At(r.prototype),"destroy",this).call(this)}}])&&bt(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Pe);function er(s){return er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},er(s)}function $r(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,$n(u.key),u)}}function $n(s){var r=function(n,u){if(er(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(er(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return er(r)=="symbol"?r:r+""}function et(s,r,n){return r=lt(r),function(u,e){if(e&&(er(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,ht()?Reflect.construct(r,n||[],lt(s).constructor):r.apply(s,n))}function ht(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ht=function(){return!!s})()}function $e(){return $e=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=lt(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},$e.apply(this,arguments)}function lt(s){return lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lt(s)}function Gt(s,r){return Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Gt(s,r)}var V=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),et(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gt(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t){e=this.applyConstFilter(e),this.select2_instance?(e=[].concat(e).map(function(a){return"".concat(a)}),this.updateValue(e),this.select2v4?this.select2_instance.val(this.value).change():this.select2_instance.select2("val",this.value),this.onChange(!0)):$e(lt(r.prototype),"setValue",this).call(this,e,t)}},{key:"afterInputReady",value:function(){var e,t=this;window.jQuery&&window.jQuery.fn&&window.jQuery.fn.select2&&!this.select2_instance&&(e=this.expandCallbacks("select2",y({},{tags:!0,width:"100%"},this.defaults.options.select2||{},this.options.select2||{})),this.newEnumAllowed=e.tags=!!e.tags&&this.schema.items&&this.schema.items.type==="string",this.select2_instance=window.jQuery(this.input).select2(e),this.select2v4=E(this.select2_instance.select2,"amd"),this.selectChangeHandler=function(){var a=t.select2v4?t.select2_instance.val():t.select2_instance.select2("val");t.updateValue(a),t.onChange(!0)},this.select2_instance.on("select2-blur",this.selectChangeHandler),this.select2_instance.on("change",this.selectChangeHandler)),$e(lt(r.prototype),"afterInputReady",this).call(this)}},{key:"updateValue",value:function(e){e=[].concat(e);for(var t=!1,a=[],d=0;d<e.length;d++)if(!(!this.select_values["".concat(e[d])]&&(t=!0,!this.newEnumAllowed||!this.addNewOption(e[d])))){var b=this.sanitize(this.select_values[e[d]]);a.push(b),b!==e[d]&&(t=!0)}return this.value=a,t}},{key:"addNewOption",value:function(e){this.option_keys.push("".concat(e)),this.option_titles.push("".concat(e)),this.select_values["".concat(e)]=e,this.schema.items.enum.push(e);var t=this.input.querySelector('option[value="'.concat(e,'"]'));return t?t.removeAttribute("data-select2-tag"):this.input.appendChild(new Option(e,e,!1,!1)).trigger("change"),!0}},{key:"enable",value:function(){!this.always_disabled&&this.select2_instance&&(this.select2v4?this.select2_instance.prop("disabled",!1):this.select2_instance.select2("enable",!0)),$e(lt(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(e){this.select2_instance&&(this.select2v4?this.select2_instance.prop("disabled",!0):this.select2_instance.select2("enable",!1)),$e(lt(r.prototype),"disable",this).call(this)}},{key:"destroy",value:function(){this.select2_instance&&(this.select2_instance.select2("destroy"),this.select2_instance=null),$e(lt(r.prototype),"destroy",this).call(this)}}])&&$r(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Pe);function z(s){return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},z(s)}function te(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,me(u.key),u)}}function me(s){var r=function(n,u){if(z(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(z(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return z(r)=="symbol"?r:r+""}function Se(s,r,n){return r=Ie(r),function(u,e){if(e&&(z(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Me()?Reflect.construct(r,n||[],Ie(s).constructor):r.apply(s,n))}function Me(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Me=function(){return!!s})()}function rt(){return rt=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Ie(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},rt.apply(this,arguments)}function Ie(s){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ie(s)}function at(s,r){return at=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},at(s,r)}var We=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Se(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&at(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t){e=this.applyConstFilter(e),this.selectize_instance?(e=[].concat(e).map(function(a){return"".concat(a)}),this.updateValue(e),this.selectize_instance.setValue(this.value),this.onChange(!0)):rt(Ie(r.prototype),"setValue",this).call(this,e,t)}},{key:"afterInputReady",value:function(){var e,t=this;if(window.jQuery&&window.jQuery.fn&&window.jQuery.fn.selectize&&!this.selectize_instance){e=this.expandCallbacks("selectize",y({},{plugins:["remove_button"],delimiter:!1,createOnBlur:!0,create:!0},this.defaults.options.selectize||{},this.options.selectize||{})),this.newEnumAllowed=e.create=!!e.create&&this.schema.items&&this.schema.items.type==="string",this.selectize_instance=window.jQuery(this.input).selectize(e)[0].selectize,this.control.removeEventListener("change",this.multiselectChangeHandler),this.multiselectChangeHandler=function(P){var I=t.selectize_instance.getValue();t.updateValue(I),t.onChange(!0)},this.selectize_instance.on("change",this.multiselectChangeHandler);var a=this.theme.getHiddenLabel(this.formname);this.input.setAttribute("id",this.formname+"-hidden-input"),a.setAttribute("for",this.formname+"-hidden-input"),this.input.parentNode.insertBefore(a,this.input);var d=this.selectize_instance.$control[0];if(d){var b=this.theme.getHiddenLabel(this.formname);b.setAttribute("for",this.formname+"-selectized"),d.appendChild(b)}}rt(Ie(r.prototype),"afterInputReady",this).call(this)}},{key:"updateValue",value:function(e){e=[].concat(e);for(var t=!1,a=[],d=0;d<e.length;d++)if(!(!this.select_values["".concat(e[d])]&&(t=!0,!this.newEnumAllowed||!this.addNewOption(e[d])))){var b=this.sanitize(this.select_values[e[d]]);a.push(b),b!==e[d]&&(t=!0)}return this.value=a,t}},{key:"addNewOption",value:function(e){return this.option_keys.push("".concat(e)),this.option_titles.push("".concat(e)),this.select_values["".concat(e)]=e,this.selectize_instance.addOption({text:e,value:e}),!0}},{key:"enable",value:function(){!this.always_disabled&&this.selectize_instance&&this.selectize_instance.unlock(),rt(Ie(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(e){this.selectize_instance&&this.selectize_instance.lock(),rt(Ie(r.prototype),"disable",this).call(this,e)}},{key:"destroy",value:function(){this.selectize_instance&&(this.selectize_instance.destroy(),this.selectize_instance=null),rt(Ie(r.prototype),"destroy",this).call(this)}}])&&te(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Pe);function Je(s){return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Je(s)}function Bt(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Hr(u.key),u)}}function Hr(s){var r=function(n,u){if(Je(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Je(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Je(r)=="symbol"?r:r+""}function pr(s,r,n){return r=rn(r),function(u,e){if(e&&(Je(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,fn()?Reflect.construct(r,n||[],rn(s).constructor):r.apply(s,n))}function fn(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fn=function(){return!!s})()}function Vr(){return Vr=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=rn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Vr.apply(this,arguments)}function rn(s){return rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rn(s)}function jn(s,r){return jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},jn(s,r)}var da=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),pr(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jn(e,t)}(r,s),n=r,(u=[{key:"postBuild",value:function(){window.Autocomplete&&(this.autocomplete_wrapper=document.createElement("div"),this.input.parentNode.insertBefore(this.autocomplete_wrapper,this.input.nextSibling),this.autocomplete_wrapper.appendChild(this.input),this.autocomplete_dropdown=document.createElement("ul"),this.input.parentNode.insertBefore(this.autocomplete_dropdown,this.input.nextSibling)),Vr(rn(r.prototype),"postBuild",this).call(this)}},{key:"afterInputReady",value:function(){var e,t=this;window.Autocomplete&&!this.autocomplete_instance&&(e=this.expandCallbacks("autocomplete",y({},{search:function(a){return console.log('No "search" callback defined for autocomplete in property "'.concat(a.key,'"')),[]},onSubmit:function(){t.input.blur()},baseClass:"autocomplete"},this.defaults.options.autocomplete||{},this.options.autocomplete||{})),this.autocomplete_wrapper.classList.add(e.baseClass),this.autocomplete_dropdown.classList.add("".concat(e.baseClass,"-result-list")),this.autocomplete_instance=new window.Autocomplete(this.autocomplete_wrapper,e)),Vr(rn(r.prototype),"afterInputReady",this).call(this)}},{key:"destroy",value:function(){this.autocomplete_instance&&(this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.autocomplete_dropdown&&this.autocomplete_dropdown.parentNode&&this.autocomplete_dropdown.parentNode.removeChild(this.autocomplete_dropdown),this.autocomplete_wrapper&&this.autocomplete_wrapper.parentNode&&this.autocomplete_wrapper.parentNode.removeChild(this.autocomplete_wrapper),this.autocomplete_instance=null),Vr(rn(r.prototype),"destroy",this).call(this)}}])&&Bt(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le);function Fr(s){return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fr(s)}function co(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Ii(u.key),u)}}function Ii(s){var r=function(n,u){if(Fr(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Fr(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Fr(r)=="symbol"?r:r+""}function Mi(s,r,n){return r=nn(r),function(u,e){if(e&&(Fr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Jn()?Reflect.construct(r,n||[],nn(s).constructor):r.apply(s,n))}function Jn(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jn=function(){return!!s})()}function On(){return On=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=nn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},On.apply(this,arguments)}function nn(s){return nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nn(s)}function Kn(s,r){return Kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Kn(s,r)}var Ga=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Mi(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kn(e,t)}(r,s),n=r,(u=[{key:"getNumColumns",value:function(){return 4}},{key:"setFileReaderListener",value:function(e){var t=this;e.addEventListener("load",function(a){if(t.count===t.current_item_index)t.value[t.count][t.key]=a.target.result;else{var d={};for(var b in t.parent.schema.properties)d[b]="";d[t.key]=a.target.result,t.value.splice(t.count,0,d)}t.count+=1,t.count===t.total+t.current_item_index&&t.arrayEditor.setValue(t.value)})}},{key:"build",value:function(){var e=this;if(this.options.compact||(this.title=this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.input=this.theme.getFormInputField("hidden"),this.container.appendChild(this.input),!this.schema.readOnly&&!this.schema.readonly){if(!window.FileReader)throw new Error("FileReader required for base64 editor");this.uploader=this.theme.getFormInputField("file"),this.uploader.style.display="none",this.schema.options&&this.schema.options.multiple&&this.schema.options.multiple===!0&&this.parent&&this.parent.schema.type==="object"&&this.parent.parent&&this.parent.parent.schema.type==="array"&&this.uploader.setAttribute("multiple",""),this.uploader.addEventListener("change",function(a){if(a.preventDefault(),a.stopPropagation(),a.currentTarget.files&&a.currentTarget.files.length)if(a.currentTarget.files.length>1&&e.schema.options&&e.schema.options.multiple&&e.schema.options.multiple===!0&&e.parent&&e.parent.schema.type==="object"&&e.parent.parent&&e.parent.parent.schema.type==="array"){e.arrayEditor=e.jsoneditor.getEditor(e.parent.parent.path),e.value=e.arrayEditor.getValue(),e.total=a.currentTarget.files.length,e.current_item_index=parseInt(e.parent.key),e.count=e.current_item_index;for(var d=0;d<e.total;d++){var b=new FileReader;e.setFileReaderListener(b),b.readAsDataURL(a.currentTarget.files[d])}}else{var P=new FileReader;P.onload=function(I){e.value=I.target.result,e.refreshPreview(),e.onChange(!0),P=null},P.readAsDataURL(a.currentTarget.files[0])}})}this.preview=this.theme.getFormInputDescription(this.translateProperty(this.schema.description)),this.container.appendChild(this.preview),this.control=this.theme.getFormControl(this.label,this.uploader||this.input,this.preview,this.infoButton),this.container.appendChild(this.control);var t=this.getButton("button_upload","upload","button_upload");t.addEventListener("click",function(){e.uploader.click()}),this.control.appendChild(t),this.setInputAttributes(["multiple"],t)}},{key:"refreshPreview",value:function(){if(this.last_preview!==this.value&&(this.last_preview=this.value,this.preview.innerHTML="",this.value)){var e=this.value.match(/^data:([^;,]+)[;,]/);if(e&&(e=e[1]),e){if(this.preview.innerHTML="<strong>Type:</strong> ".concat(e,", <strong>Size:</strong> ").concat(Math.floor((this.value.length-this.value.split(",")[0].length-1)/1.33333)," bytes"),e.substr(0,5)==="image"){this.preview.innerHTML+="<br>";var t=document.createElement("img");t.style.maxWidth="100%",t.style.maxHeight="100px",t.src=this.value,this.preview.appendChild(t)}}else this.preview.innerHTML="<em>Invalid data URI</em>"}}},{key:"enable",value:function(){this.always_disabled||(this.uploader&&(this.uploader.disabled=!1),On(nn(r.prototype),"enable",this).call(this))}},{key:"disable",value:function(e){e&&(this.always_disabled=!0),this.uploader&&(this.uploader.disabled=!0),On(nn(r.prototype),"disable",this).call(this)}},{key:"setValue",value:function(e){e=this.applyConstFilter(e),this.value!==e&&(this.schema.readOnly&&this.schema.enum&&!this.schema.enum.includes(e)?this.value=this.schema.enum[0]:this.value=e,this.input.value=this.value,this.refreshPreview(),this.onChange())}},{key:"destroy",value:function(){this.preview&&this.preview.parentNode&&this.preview.parentNode.removeChild(this.preview),this.title&&this.title.parentNode&&this.title.parentNode.removeChild(this.title),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.uploader&&this.uploader.parentNode&&this.uploader.parentNode.removeChild(this.uploader),On(nn(r.prototype),"destroy",this).call(this)}}])&&co(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function Qn(s){return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qn(s)}function Ya(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,$a(u.key),u)}}function $a(s){var r=function(n,u){if(Qn(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Qn(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Qn(r)=="symbol"?r:r+""}function Hu(s,r,n){return r=En(r),function(u,e){if(e&&(Qn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,fo()?Reflect.construct(r,n||[],En(s).constructor):r.apply(s,n))}function fo(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fo=function(){return!!s})()}function Ri(){return Ri=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=En(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Ri.apply(this,arguments)}function En(s){return En=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},En(s)}function ho(s,r){return ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},ho(s,r)}var ha=function(s){function r(e,t){var a;return function(d,b){if(!(d instanceof b))throw new TypeError("Cannot call a class as a function")}(this,r),(a=Hu(this,r,[e,t])).active=!1,a.isUiOnly=!0,a.parent&&a.parent.schema&&(Array.isArray(a.parent.schema.required)?a.parent.schema.required.includes(a.key)||a.parent.schema.required.push(a.key):a.parent.schema.required=[a.key]),a}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ho(e,t)}(r,s),n=r,(u=[{key:"build",value:function(){var e=this;this.options.compact=!0;var t=this.expandCallbacks("button",y({},{icon:"",validated:!1,align:"left",action:function(d,b){window.alert('No button action defined for "'.concat(d.path,'"'))}},this.defaults.options.button||{},this.options.button||{})),a=this.translateProperty(t.text||this.schema.title)||this.key;this.input=this.getButton(a,t.icon,a),typeof t.action!="function"?window.alert('No button action defined for "'.concat(this.path,'"')):this.input.addEventListener("click",t.action,!1),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&(this.disable(!0),this.input.setAttribute("readonly","true")),this.setInputAttributes(["readonly"]),this.control=this.theme.getFormButtonHolder(t.align),this.control.appendChild(this.input),this.container.appendChild(this.control),this.changeHandler=function(){e.jsoneditor.validate(e.jsoneditor.getValue()).length>0?e.disable():e.enable()},t.validated&&this.jsoneditor.on("change",this.changeHandler)}},{key:"enable",value:function(){this.always_disabled||(this.input.disabled=!1,Ri(En(r.prototype),"enable",this).call(this))}},{key:"disable",value:function(e){e&&(this.always_disabled=!0),this.input.disabled=!0,Ri(En(r.prototype),"disable",this).call(this)}},{key:"getNumColumns",value:function(){return 2}},{key:"activate",value:function(){this.active=!1,this.enable()}},{key:"deactivate",value:function(){this.isRequired()||(this.active=!1,this.disable())}},{key:"destroy",value:function(){this.jsoneditor.off("change",this.changeHandler),this.changeHandler=null,Ri(En(r.prototype),"destroy",this).call(this)}}])&&Ya(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function Sn(s){return Sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Sn(s)}function Ja(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,_r(u.key),u)}}function _r(s){var r=function(n,u){if(Sn(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Sn(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Sn(r)=="symbol"?r:r+""}function pi(s,r,n){return r=Jr(r),function(u,e){if(e&&(Sn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Ni()?Reflect.construct(r,n||[],Jr(s).constructor):r.apply(s,n))}function Ni(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ni=function(){return!!s})()}function Fn(){return Fn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Jr(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Fn.apply(this,arguments)}function Jr(s){return Jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jr(s)}function Bi(s,r){return Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Bi(s,r)}var Ka=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),pi(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bi(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t){e=!!(e=this.applyConstFilter(e));var a=this.getValue()!==e;this.value=e,this.input.checked=this.value,t||(this.is_dirty=!0),this.onChange(a)}},{key:"register",value:function(){Fn(Jr(r.prototype),"register",this).call(this),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}},{key:"unregister",value:function(){Fn(Jr(r.prototype),"unregister",this).call(this),this.input&&this.input.removeAttribute("name")}},{key:"getNumColumns",value:function(){return Math.min(12,Math.max(this.getTitle().length/7,2))}},{key:"setOptInCheckbox",value:function(){Fn(Jr(r.prototype),"setOptInCheckbox",this).call(this),this.optInAppended&&(this.container.insertBefore(this.optInContainer,this.container.firstChild),this.optInContainer.style.verticalAlign="top",this.control.style.marginTop="0")}},{key:"build",value:function(){var e=this;this.parent.options.table_row||(this.label=this.header=this.theme.getCheckboxLabel(this.getTitle(),this.isRequired()),this.label.htmlFor=this.formname),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&!this.options.compact&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),this.input=this.theme.getCheckbox(),this.input.id=this.formname,this.control=this.theme.getFormControl(this.label,this.input,this.description,this.infoButton),this.control.style.display="inline-block",(this.schema.readOnly||this.schema.readonly)&&(this.disable(!0),this.input.disabled=!0),this.input.addEventListener("change",function(t){t.preventDefault(),t.stopPropagation(),e.value=t.currentTarget.checked,e.is_dirty=!0,e.onChange(!0)}),this.container.appendChild(this.control)}},{key:"enable",value:function(){this.always_disabled||(this.input.disabled=!1,Fn(Jr(r.prototype),"enable",this).call(this))}},{key:"disable",value:function(e){e&&(this.always_disabled=!0),this.input.disabled=!0,Fn(Jr(r.prototype),"disable",this).call(this)}},{key:"destroy",value:function(){this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),Fn(Jr(r.prototype),"destroy",this).call(this)}},{key:"showValidationErrors",value:function(e){var t=this,a=this.jsoneditor.options.show_errors,d=a==="change"||a==="interaction";if((a!=="never"||this.is_dirty)&&(!d||this.is_dirty)){var b=e.reduce(function(P,I){return I.path===t.path&&P.push(I.message),P},[]);this.input.controlgroup=this.control,b.length?this.theme.addInputError(this.input,"".concat(b.join(". "),".")):this.theme.removeInputError(this.input)}}}])&&Ja(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function dn(s){return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},dn(s)}function Qa(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Vu(u.key),u)}}function Vu(s){var r=function(n,u){if(dn(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(dn(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return dn(r)=="symbol"?r:r+""}function qu(s,r,n){return r=mr(r),function(u,e){if(e&&(dn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,qr()?Reflect.construct(r,n||[],mr(s).constructor):r.apply(s,n))}function qr(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qr=function(){return!!s})()}function hn(){return hn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=mr(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},hn.apply(this,arguments)}function mr(s){return mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mr(s)}function pa(s,r){return pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},pa(s,r)}j(6910);var Hi=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),qu(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pa(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t){e=this.applyConstFilter(e);var a=this.typecast(e),d=this.enum_options.length>0&&this.enum_values.includes(a),b=!!this.jsoneditor.options.use_default_values||this.schema.default!==void 0;if(this.hasPlaceholderOption||d&&(!t||this.isRequired()||b)||(a=this.enum_values[0]),this.value!==a){var P=this.enum_values.indexOf(a);d&&P!==-1?this.input.value=this.enum_options[P]:this.hasPlaceholderOption?this.input.value="_placeholder_":this.input.value=a,this.value=a,t||(this.is_dirty=!0),this.onChange(),this.change()}}},{key:"register",value:function(){hn(mr(r.prototype),"register",this).call(this),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}},{key:"unregister",value:function(){hn(mr(r.prototype),"unregister",this).call(this),this.input&&this.input.removeAttribute("name")}},{key:"getNumColumns",value:function(){if(!this.enum_options)return 3;for(var e=this.getTitle().length,t=0;t<this.enum_options.length;t++)e=Math.max(e,this.enum_options[t].length+4);return Math.min(12,Math.max(e/7,2))}},{key:"typecast",value:function(e){return this.schema.type==="boolean"?e==="undefined"||e===void 0?void 0:!!e:this.schema.type==="number"?1*e||0:this.schema.type==="integer"?Math.floor(1*e||0):this.schema.enum&&e===void 0?void 0:"".concat(e)}},{key:"getValue",value:function(){if(this.dependenciesFulfilled)return this.typecast(this.value)}},{key:"preBuild",value:function(){var e,t,a,d,b=this;if(this.input_type="select",this.enum_options=[],this.enum_values=[],this.enum_display=[],this.hasPlaceholderOption=((e=this.schema)===null||e===void 0||(e=e.options)===null||e===void 0?void 0:e.has_placeholder_option)||!1,this.placeholderOptionText=((t=this.schema)===null||t===void 0||(t=t.options)===null||t===void 0?void 0:t.placeholder_option_text)||" ",this.enforceConst&&this.schema.const){var P=this.schema.const;this.enum_options=["".concat(P)],this.enum_display=["".concat(this.translateProperty(P)||P)],this.enum_values=[this.typecast(P)]}else if(this.schema.enum){var I=this.schema.options&&this.schema.options.enum_titles||[];this.schema.enum.forEach(function(q,K){b.enum_options[K]="".concat(q),b.enum_display[K]="".concat(b.translateProperty(I[K])||q),b.enum_values[K]=b.typecast(q)})}else if(this.schema.type==="boolean")this.enum_display=this.schema.options&&this.schema.options.enum_titles||["true","false"],this.enum_options=["1",""],this.enum_values=[!0,!1],this.isRequired()||(this.enum_display.unshift(" "),this.enum_options.unshift("undefined"),this.enum_values.unshift(void 0));else{if(!this.schema.enumSource)throw new Error("'select' editor requires the enum property to be set.");if(this.enumSource=[],this.enum_display=[],this.enum_options=[],this.enum_values=[],Array.isArray(this.schema.enumSource))for(a=0;a<this.schema.enumSource.length;a++)typeof this.schema.enumSource[a]=="string"?this.enumSource[a]={source:this.schema.enumSource[a]}:Array.isArray(this.schema.enumSource[a])?this.enumSource[a]=this.schema.enumSource[a]:this.enumSource[a]=y({},this.schema.enumSource[a]);else this.schema.enumValue?this.enumSource=[{source:this.schema.enumSource,value:this.schema.enumValue}]:this.enumSource=[{source:this.schema.enumSource}];for(a=0;a<this.enumSource.length;a++)this.enumSource[a].value&&(typeof(d=this.expandCallbacks("template",{template:this.enumSource[a].value})).template=="function"?this.enumSource[a].value=d.template:this.enumSource[a].value=this.jsoneditor.compileTemplate(this.enumSource[a].value,this.template_engine)),this.enumSource[a].title&&(typeof(d=this.expandCallbacks("template",{template:this.enumSource[a].title})).template=="function"?this.enumSource[a].title=d.template:this.enumSource[a].title=this.jsoneditor.compileTemplate(this.enumSource[a].title,this.template_engine)),this.enumSource[a].filter&&this.enumSource[a].value&&(typeof(d=this.expandCallbacks("template",{template:this.enumSource[a].filter})).template=="function"?this.enumSource[a].filter=d.template:this.enumSource[a].filter=this.jsoneditor.compileTemplate(this.enumSource[a].filter,this.template_engine))}}},{key:"build",value:function(){var e=this;this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),this.input=this.theme.getSelectInput(this.enum_options,!1),this.theme.setSelectOptions(this.input,this.enum_options,this.enum_display,this.hasPlaceholderOption,this.placeholderOptionText),(this.schema.readOnly||this.schema.readonly)&&(this.disable(!0),this.input.disabled=!0),this.setInputAttributes([]),this.input.addEventListener("change",function(t){t.preventDefault(),t.stopPropagation(),e.onInputChange()}),this.control=this.theme.getFormControl(this.label,this.input,this.description,this.infoButton,this.formname),this.container.appendChild(this.control),this.value=this.enum_values[0],window.requestAnimationFrame(function(){e.input.parentNode&&e.afterInputReady()})}},{key:"afterInputReady",value:function(){this.theme.afterInputReady(this.input)}},{key:"onInputChange",value:function(){var e,t=this.typecast(this.input.value);(e=this.enum_values.includes(t)?this.enum_values[this.enum_values.indexOf(t)]:this.enum_values[0])!==this.value&&(this.is_dirty=!0,this.value=e,this.onChange(!0))}},{key:"onWatchedFieldChange",value:function(){var e,t,a=[],d=[];if(this.enumSource){e=this.getWatchedFieldValues();for(var b=0;b<this.enumSource.length;b++)if(Array.isArray(this.enumSource[b]))a=a.concat(this.enumSource[b]),d=d.concat(this.enumSource[b]);else{var P=[];if(P=Array.isArray(this.enumSource[b].source)?this.enumSource[b].source:e[this.enumSource[b].source]){if(this.enumSource[b].slice&&(P=Array.prototype.slice.apply(P,this.enumSource[b].slice)),this.enumSource[b].filter){var I=[];for(t=0;t<P.length;t++)this.enumSource[b].filter({i:t,item:P[t],watched:e})&&I.push(P[t]);P=I}var q=[],K=[];for(t=0;t<P.length;t++){var ae=P[t];this.enumSource[b].value?K[t]=this.typecast(this.enumSource[b].value({i:t,item:ae})):K[t]=P[t],this.enumSource[b].title?q[t]=this.enumSource[b].title({i:t,item:ae}):q[t]=K[t]}this.enumSource[b].sort&&(function(ge,Oe,Ne){ge.map(function(Ve,dt){return{v:Ve,t:Oe[dt]}}).sort(function(Ve,dt){return Ve.v<dt.v?-Ne:Ve.v===dt.v?0:Ne}).forEach(function(Ve,dt){ge[dt]=Ve.v,Oe[dt]=Ve.t})}).bind(null,K,q,this.enumSource[b].sort==="desc"?1:-1)(),a=a.concat(K),d=d.concat(q)}}var se=this.value;this.theme.setSelectOptions(this.input,a,d),this.enum_options=a,this.enum_display=d,this.enum_values=a,a.includes(se)||this.jsoneditor.options.enum_source_value_auto_select!==!1?(this.input.value=se,this.value=se):(this.input.value=a[0],this.value=this.typecast(a[0]||""),this.parent&&!this.watchLoop?this.parent.onChildEditorChange(this):this.jsoneditor.onChange(),this.jsoneditor.notifyWatchers(this.path))}hn(mr(r.prototype),"onWatchedFieldChange",this).call(this)}},{key:"enable",value:function(){this.always_disabled||(this.input.disabled=!1,hn(mr(r.prototype),"enable",this).call(this))}},{key:"disable",value:function(e){e&&(this.always_disabled=!0),this.input.disabled=!0,hn(mr(r.prototype),"disable",this).call(this,e)}},{key:"destroy",value:function(){this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),hn(mr(r.prototype),"destroy",this).call(this)}},{key:"showValidationErrors",value:function(e){var t=this,a=this.jsoneditor.options.show_errors,d=a==="change"||a==="interaction";if((a!=="never"||this.is_dirty)&&(!d||this.is_dirty)){var b=e.reduce(function(P,I){return I.path===t.path&&P.push(I.message),P},[]);b.length?this.theme.addInputError(this.input,"".concat(b.join(". "),".")):this.theme.removeInputError(this.input)}}}])&&Qa(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function zr(s){return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zr(s)}function Zn(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,ma(u.key),u)}}function ma(s){var r=function(n,u){if(zr(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(zr(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return zr(r)=="symbol"?r:r+""}function zu(s,r,n){return r=Pr(r),function(u,e){if(e&&(zr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,mi()?Reflect.construct(r,n||[],Pr(s).constructor):r.apply(s,n))}function mi(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mi=function(){return!!s})()}function pn(){return pn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Pr(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},pn.apply(this,arguments)}function Pr(s){return Pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pr(s)}function po(s,r){return po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},po(s,r)}var ga=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),zu(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&po(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t){if(e=this.applyConstFilter(e),this.choices_instance){var a=this.typecast(e||"");if(this.enum_values.includes(a)||(a=this.enum_values[0]),this.value===a)return;t?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0),this.input.value=this.enum_options[this.enum_values.indexOf(a)],this.choices_instance.setChoiceByValue(this.input.value),this.value=a,this.onChange()}else pn(Pr(r.prototype),"setValue",this).call(this,e,t)}},{key:"afterInputReady",value:function(){if(window.Choices&&!this.choices_instance){var e=this.expandCallbacks("choices",y({},this.defaults.options.choices||{},this.options.choices||{}));this.choices_instance=new window.Choices(this.input,e)}pn(Pr(r.prototype),"afterInputReady",this).call(this)}},{key:"onWatchedFieldChange",value:function(){var e=this;if(pn(Pr(r.prototype),"onWatchedFieldChange",this).call(this),this.choices_instance){var t=this.enum_options.map(function(a,d){return{value:a,label:e.enum_display[d]}});this.choices_instance.setChoices(t,"value","label",!0),this.choices_instance.setChoiceByValue("".concat(this.value))}}},{key:"enable",value:function(){!this.always_disabled&&this.choices_instance&&this.choices_instance.enable(),pn(Pr(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(e){this.choices_instance&&this.choices_instance.disable(),pn(Pr(r.prototype),"disable",this).call(this,e)}},{key:"destroy",value:function(){this.choices_instance&&(this.choices_instance.destroy(),this.choices_instance=null),pn(Pr(r.prototype),"destroy",this).call(this)}}])&&Zn(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Hi);function Xn(s){return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xn(s)}function Za(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Wu(u.key),u)}}function Wu(s){var r=function(n,u){if(Xn(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Xn(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Xn(r)=="symbol"?r:r+""}function Uu(s,r,n){return r=Pn(r),function(u,e){if(e&&(Xn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,mo()?Reflect.construct(r,n||[],Pn(s).constructor):r.apply(s,n))}function mo(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mo=function(){return!!s})()}function Vi(){return Vi=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Pn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Vi.apply(this,arguments)}function Pn(s){return Pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pn(s)}function ya(s,r){return ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},ya(s,r)}ga.rules={".choices > *":"box-sizing:border-box"};var Gu=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Uu(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ya(e,t)}(r,s),n=r,(u=[{key:"build",value:function(){if(Vi(Pn(r.prototype),"build",this).call(this),this.input&&(this.schema.max&&typeof this.schema.max=="string"&&this.input.setAttribute("max",this.schema.max),this.schema.min&&typeof this.schema.max=="string"&&this.input.setAttribute("min",this.schema.min),window.flatpickr&&Xn(this.options.flatpickr)==="object")){this.options.flatpickr.enableTime=this.schema.format!=="date",this.options.flatpickr.noCalendar=this.schema.format==="time",this.schema.type==="integer"&&(this.options.flatpickr.mode="single"),this.input.setAttribute("data-input","");var e=this.input;if(this.options.flatpickr.wrap===!0){var t=[];if(this.options.flatpickr.showToggleButton!==!1){var a=this.getButton("",this.schema.format==="time"?"time":"calendar","flatpickr_toggle_button");a.setAttribute("data-toggle",""),t.push(a)}if(this.options.flatpickr.showClearButton!==!1){var d=this.getButton("","clear","flatpickr_clear_button");d.setAttribute("data-clear",""),t.push(d)}var b=this.input.parentNode,P=this.input.nextSibling,I=this.theme.getInputGroup(this.input,t);I!==void 0?(this.options.flatpickr.inline=!1,b.insertBefore(I,P),e=I):this.options.flatpickr.wrap=!1}this.flatpickr=window.flatpickr(e,this.options.flatpickr),this.options.flatpickr.inline===!0&&this.options.flatpickr.inlineHideInput===!0&&this.input.setAttribute("type","hidden")}}},{key:"getValue",value:function(){if(this.dependenciesFulfilled){if(this.schema.type==="string")return this.value;if(this.value!==""&&this.value!==void 0){var e=this.schema.format==="time"?"1970-01-01 ".concat(this.value):this.value;return parseInt(new Date(e).getTime()/1e3)}}}},{key:"setValue",value:function(e,t,a){if(e=this.applyConstFilter(e),this.schema.type==="string")Vi(Pn(r.prototype),"setValue",this).call(this,e,t,a),this.flatpickr&&this.flatpickr.setDate(e);else if(e>0){var d=new Date(1e3*e),b=d.getFullYear(),P=this.zeroPad(d.getMonth()+1),I=this.zeroPad(d.getDate()),q=this.zeroPad(d.getHours()),K=this.zeroPad(d.getMinutes()),ae=this.zeroPad(d.getSeconds()),se=[b,P,I].join("-"),ge=[q,K,ae].join(":"),Oe="".concat(se,"T").concat(ge);this.schema.format==="date"?Oe=se:this.schema.format==="time"&&(Oe=ge),this.input.value=Oe,this.refreshValue(),this.flatpickr&&this.flatpickr.setDate(Oe)}}},{key:"destroy",value:function(){this.flatpickr&&this.flatpickr.destroy(),this.flatpickr=null,Vi(Pn(r.prototype),"destroy",this).call(this)}},{key:"zeroPad",value:function(e){return"0".concat(e).slice(-2)}}])&&Za(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le);function gi(s){return gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},gi(s)}function Yu(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,$u(u.key),u)}}function $u(s){var r=function(n,u){if(gi(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(gi(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return gi(r)=="symbol"?r:r+""}function Xa(s,r,n){return r=Tr(r),function(u,e){if(e&&(gi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,go()?Reflect.construct(r,n||[],Tr(s).constructor):r.apply(s,n))}function go(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(go=function(){return!!s})()}function mn(){return mn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Tr(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},mn.apply(this,arguments)}function Tr(s){return Tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tr(s)}function yo(s,r){return yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},yo(s,r)}var es=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Xa(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yo(e,t)}(r,s),n=r,(u=[{key:"register",value:function(){if(this.editors){for(var e=0;e<this.editors.length;e++)this.editors[e]&&this.editors[e].unregister();this.editors[this.currentEditor]&&this.editors[this.currentEditor].register()}mn(Tr(r.prototype),"register",this).call(this)}},{key:"unregister",value:function(){if(mn(Tr(r.prototype),"unregister",this).call(this),this.editors)for(var e=0;e<this.editors.length;e++)this.editors[e]&&this.editors[e].unregister()}},{key:"getNumColumns",value:function(){return this.editors[this.currentEditor]?Math.max(this.editors[this.currentEditor].getNumColumns(),4):4}},{key:"enable",value:function(){if(this.editors)for(var e=0;e<this.editors.length;e++)this.editors[e]&&this.editors[e].enable();mn(Tr(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(){if(this.editors)for(var e=0;e<this.editors.length;e++)this.editors[e]&&this.editors[e].disable();mn(Tr(r.prototype),"disable",this).call(this)}},{key:"switchEditor",value:function(){var e=this,t=this.getWatchedFieldValues();if(t){var a=document.location.origin+document.location.pathname+this.template(t);this.editors[this.refs[a]]||this.buildChildEditor(a),this.currentEditor=this.refs[a],this.register(),this.editors.forEach(function(d,b){d&&(e.currentEditor===b?d.container.style.display="":d.container.style.display="none")}),this.refreshValue(),this.onChange(!0)}}},{key:"buildChildEditor",value:function(e){this.refs[e]=this.editors.length;var t=this.theme.getChildEditorHolder();this.editor_holder.appendChild(t);var a=y({},this.schema,this.jsoneditor.refs[e]),d=this.jsoneditor.getEditorClass(a,this.jsoneditor),b=this.jsoneditor.createEditor(d,{jsoneditor:this.jsoneditor,schema:a,container:t,path:this.path,parent:this,required:!0});this.editors.push(b),b.preBuild(),b.build(),b.postBuild()}},{key:"preBuild",value:function(){var e;for(this.refs={},this.editors=[],this.currentEditor="",e=0;e<this.schema.links.length;e++)if(this.schema.links[e].rel.toLowerCase()==="describedby"){this.template=this.jsoneditor.compileTemplate(this.schema.links[e].href,this.template_engine);break}this.schema.links=this.schema.links.slice(0,e).concat(this.schema.links.slice(e+1)),this.schema.links.length===0&&delete this.schema.links,this.baseSchema=y({},this.schema)}},{key:"build",value:function(){this.editor_holder=document.createElement("div"),this.container.appendChild(this.editor_holder),this.switchEditor()}},{key:"onWatchedFieldChange",value:function(){this.switchEditor()}},{key:"onChildEditorChange",value:function(e,t){this.editors[this.currentEditor]&&this.refreshValue(),mn(Tr(r.prototype),"onChildEditorChange",this).call(this,e,t)}},{key:"refreshValue",value:function(){this.editors[this.currentEditor]&&(this.value=this.editors[this.currentEditor].getValue())}},{key:"setValue",value:function(e,t){e=this.applyConstFilter(e),this.editors[this.currentEditor]&&(this.editors[this.currentEditor].setValue(e,t),this.refreshValue(),this.onChange())}},{key:"destroy",value:function(){this.editors.forEach(function(e){e&&e.destroy()}),this.editor_holder&&this.editor_holder.parentNode&&this.editor_holder.parentNode.removeChild(this.editor_holder),mn(Tr(r.prototype),"destroy",this).call(this)}},{key:"showValidationErrors",value:function(e){this.editors.forEach(function(t){t&&t.showValidationErrors(e)})}}])&&Yu(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function gn(s){return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},gn(s)}function ts(s,r){(r==null||r>s.length)&&(r=s.length);for(var n=0,u=new Array(r);n<r;n++)u[n]=s[n];return u}function Ju(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Ku(u.key),u)}}function Ku(s){var r=function(n,u){if(gn(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(gn(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return gn(r)=="symbol"?r:r+""}function qi(s,r,n){return r=Tn(r),function(u,e){if(e&&(gn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,va()?Reflect.construct(r,n||[],Tn(s).constructor):r.apply(s,n))}function va(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(va=function(){return!!s})()}function ei(){return ei=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Tn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},ei.apply(this,arguments)}function Tn(s){return Tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tn(s)}function ba(s,r){return ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},ba(s,r)}var Qu=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),qi(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ba(e,t)}(r,s),n=r,(u=[{key:"getNumColumns",value:function(){return 4}},{key:"build",value:function(){var e=this;this.title=this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired()),this.container.appendChild(this.title),this.options.enum_titles=this.options.enum_titles||[],this.enforceConstEnabled&&this.schema.const?this.enum=[this.schema.const]:this.enum=this.schema.enum,this.selected=0,this.select_options=[],this.html_values=[];for(var t=0;t<this.enum.length;t++)this.select_options[t]=this.options.enum_titles[t]||"Value ".concat(t+1),this.html_values[t]=this.getHTML(this.enum[t]);this.switcher=this.theme.getSwitcher(this.select_options),this.container.appendChild(this.switcher),this.display_area=this.theme.getIndentedPanel(),this.container.appendChild(this.display_area),this.options.hide_display&&(this.display_area.style.display="none"),this.switcher.addEventListener("change",function(a){e.selected=e.select_options.indexOf(a.currentTarget.value),e.value=e.enum[e.selected],e.refreshValue(),e.onChange(!0)}),this.value=this.enum[0],this.refreshValue(),this.enum.length===1&&(this.switcher.style.display="none")}},{key:"refreshValue",value:function(){var e=this;if(this.enum){this.selected=-1;var t=JSON.stringify(this.value);this.enum.forEach(function(a,d){if(t===JSON.stringify(a))return e.selected=d,!1}),this.selected<0?this.setValue(this.enum[0]):(this.switcher.value=this.select_options[this.selected],this.display_area.innerHTML=this.html_values[this.selected])}}},{key:"enable",value:function(){this.always_disabled||(this.switcher.disabled=!1,ei(Tn(r.prototype),"enable",this).call(this))}},{key:"disable",value:function(e){e&&(this.always_disabled=!0),this.switcher.disabled=!0,ei(Tn(r.prototype),"disable",this).call(this)}},{key:"getHTML",value:function(e){var t,a,d=this;if(e===null)return"<em>null</em>";if(gn(e)==="object"){var b="";return t=e,a=function(P,I){var q=d.getHTML(I);Array.isArray(e)||(q="<div><em>".concat(P,"</em>: ").concat(q,"</div>")),b+="<li>".concat(q,"</li>")},Array.isArray(t)||typeof t.length=="number"&&t.length>0&&t.length-1 in t?Array.from(t).forEach(function(P,I){return a(I,P)}):Object.entries(t).forEach(function(P){var I,q,K=(q=2,function(ge){if(Array.isArray(ge))return ge}(I=P)||function(ge,Oe){var Ne=ge==null?null:typeof Symbol<"u"&&ge[Symbol.iterator]||ge["@@iterator"];if(Ne!=null){var Ve,dt,yt,Et,Ae=[],Be=!0,Tt=!1;try{if(yt=(Ne=Ne.call(ge)).next,Oe===0){if(Object(Ne)!==Ne)return;Be=!1}else for(;!(Be=(Ve=yt.call(Ne)).done)&&(Ae.push(Ve.value),Ae.length!==Oe);Be=!0);}catch(Yt){Tt=!0,dt=Yt}finally{try{if(!Be&&Ne.return!=null&&(Et=Ne.return(),Object(Et)!==Et))return}finally{if(Tt)throw dt}}return Ae}}(I,q)||function(ge,Oe){if(ge){if(typeof ge=="string")return ts(ge,Oe);var Ne=Object.prototype.toString.call(ge).slice(8,-1);return Ne==="Object"&&ge.constructor&&(Ne=ge.constructor.name),Ne==="Map"||Ne==="Set"?Array.from(ge):Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne)?ts(ge,Oe):void 0}}(I,q)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
70
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),ae=K[0],se=K[1];return a(ae,se)}),b=Array.isArray(e)?"<ol>".concat(b,"</ol>"):"<ul style='margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;'>".concat(b,"</ul>")}return typeof e=="boolean"?e?"true":"false":typeof e=="string"?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e}},{key:"setValue",value:function(e){e=this.applyConstFilter(e),this.value!==e&&(this.value=e,this.refreshValue(),this.onChange())}},{key:"destroy",value:function(){this.display_area&&this.display_area.parentNode&&this.display_area.parentNode.removeChild(this.display_area),this.title&&this.title.parentNode&&this.title.parentNode.removeChild(this.title),this.switcher&&this.switcher.parentNode&&this.switcher.parentNode.removeChild(this.switcher),ei(Tn(r.prototype),"destroy",this).call(this)}}])&&Ju(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function f(s){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(s)}function g(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,O(u.key),u)}}function O(s){var r=function(n,u){if(f(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(f(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return f(r)=="symbol"?r:r+""}function F(s,r,n){return r=N(r),function(u,e){if(e&&(f(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,A()?Reflect.construct(r,n||[],N(s).constructor):r.apply(s,n))}function A(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A=function(){return!!s})()}function L(){return L=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=N(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},L.apply(this,arguments)}function N(s){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},N(s)}function Q(s,r){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Q(s,r)}var J=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),F(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(r,s),n=r,(u=[{key:"register",value:function(){L(N(r.prototype),"register",this).call(this),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}},{key:"unregister",value:function(){L(N(r.prototype),"unregister",this).call(this),this.input&&this.input.removeAttribute("name")}},{key:"setValue",value:function(e,t,a){if(e=this.applyConstFilter(e),(!this.template||a)&&(e==null?e="":f(e)==="object"?e=JSON.stringify(e):typeof e!="string"&&(e="".concat(e)),e!==this.serialized)){var d=this.sanitize(e);if(this.input.value!==d){this.input.value=d;var b=a||this.getValue()!==e;this.refreshValue(),t?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0),this.adjust_height&&this.adjust_height(this.input),this.onChange(b)}}}},{key:"getNumColumns",value:function(){return 2}},{key:"enable",value:function(){L(N(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(){L(N(r.prototype),"disable",this).call(this)}},{key:"refreshValue",value:function(){this.value=this.input.value,typeof this.value!="string"&&(this.value=""),this.serialized=this.value}},{key:"destroy",value:function(){this.template=null,this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),L(N(r.prototype),"destroy",this).call(this)}},{key:"sanitize",value:function(e){return e}},{key:"onWatchedFieldChange",value:function(){var e;this.template&&(e=this.getWatchedFieldValues(),this.setValue(this.template(e),!1,!0)),L(N(r.prototype),"onWatchedFieldChange",this).call(this)}},{key:"build",value:function(){if(this.format=this.schema.format,!this.format&&this.options.default_format&&(this.format=this.options.default_format),this.options.format&&(this.format=this.options.format),this.input_type="hidden",this.input=this.theme.getFormInputField(this.input_type),this.format&&this.input.setAttribute("data-schemaformat",this.format),this.container.appendChild(this.input),this.schema.template){var e=this.expandCallbacks("template",{template:this.schema.template});typeof e.template=="function"?this.template=e.template:this.template=this.jsoneditor.compileTemplate(this.schema.template,this.template_engine),this.refreshValue()}else this.refreshValue()}}])&&g(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function re(s){return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},re(s)}function pe(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,be(u.key),u)}}function be(s){var r=function(n,u){if(re(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(re(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return re(r)=="symbol"?r:r+""}function le(s,r,n){return r=it(r),function(u,e){if(e&&(re(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Ce()?Reflect.construct(r,n||[],it(s).constructor):r.apply(s,n))}function Ce(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ce=function(){return!!s})()}function it(s){return it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},it(s)}function Ot(s,r){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Ot(s,r)}var mt=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),le(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ot(e,t)}(r,s),n=r,(u=[{key:"build",value:function(){this.options.compact=!1,this.header=this.label=this.theme.getLabelLike(this.getTitle()),this.description=this.theme.getDescription(this.schema.description||""),this.control=this.theme.getFormControl(this.label,this.description,null),this.container.appendChild(this.control)}},{key:"getTitle",value:function(){return this.translateProperty(this.schema.title)}},{key:"getNumColumns",value:function(){return 12}},{key:"disable",value:function(){return!1}},{key:"enable",value:function(){return!1}}])&&pe(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(ha);function tr(s){return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tr(s)}function ar(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,on(u.key),u)}}function on(s){var r=function(n,u){if(tr(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(tr(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return tr(r)=="symbol"?r:r+""}function an(s,r,n){return r=wt(r),function(u,e){if(e&&(tr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,kt()?Reflect.construct(r,n||[],wt(s).constructor):r.apply(s,n))}function kt(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kt=function(){return!!s})()}function yn(){return yn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=wt(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},yn.apply(this,arguments)}function wt(s){return wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wt(s)}function Zt(s,r){return Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Zt(s,r)}var yi=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),an(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zt(e,t)}(r,s),n=r,(u=[{key:"build",value:function(){if(yn(wt(r.prototype),"build",this).call(this),this.schema.minimum!==void 0){var e=this.schema.minimum;this.schema.exclusiveMinimum!==void 0&&(e+=1),this.input.setAttribute("min",e)}if(this.schema.maximum!==void 0){var t=this.schema.maximum;this.schema.exclusiveMaximum!==void 0&&(t-=1),this.input.setAttribute("max",t)}if(this.schema.step!==void 0){var a=this.schema.step||1;this.input.setAttribute("step",a)}this.setInputAttributes(["maxlength","pattern","readonly","min","max","step"])}},{key:"getNumColumns",value:function(){return 2}},{key:"getValue",value:function(){if(this.dependenciesFulfilled)return this.schema.default||this.jsoneditor.options.use_default_values||this.value!==""?function(e){if(e==null)return!1;var t=e.match(T),a=parseFloat(e);return t!==null&&!isNaN(a)&&isFinite(a)}(this.value)?parseFloat(this.value):this.value:void(this.shouldBeUnset()&&(this.input.value=""))}}])&&ar(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le);function Ln(s){return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ln(s)}function sn(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,zi(u.key),u)}}function zi(s){var r=function(n,u){if(Ln(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Ln(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Ln(r)=="symbol"?r:r+""}function un(s,r,n){return r=Kr(r),function(u,e){if(e&&(Ln(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,vn()?Reflect.construct(r,n||[],Kr(s).constructor):r.apply(s,n))}function vn(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vn=function(){return!!s})()}function Kr(s){return Kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kr(s)}function kr(s,r){return kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},kr(s,r)}var vo=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),un(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kr(e,t)}(r,s),n=r,(u=[{key:"getNumColumns",value:function(){return 2}},{key:"getValue",value:function(){if(this.dependenciesFulfilled)return this.schema.default||this.jsoneditor.options.use_default_values||this.value!==""?function(e){if(e==null)return!1;var t=e.match(D),a=parseInt(e);return t!==null&&!isNaN(a)&&isFinite(a)}(this.value)?parseInt(this.value):this.value:void this.shouldBeUnset()}}])&&sn(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(yi);function xr(s){return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},xr(s)}function bn(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Zu(u.key),u)}}function Zu(s){var r=function(n,u){if(xr(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(xr(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return xr(r)=="symbol"?r:r+""}function Xu(s,r,n){return r=wn(r),function(u,e){if(e&&(xr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,rs()?Reflect.construct(r,n||[],wn(s).constructor):r.apply(s,n))}function rs(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rs=function(){return!!s})()}function Dt(){return Dt=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=wn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Dt.apply(this,arguments)}function wn(s){return wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wn(s)}function Lr(s,r){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Lr(s,r)}var vi=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Xu(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lr(e,t)}(r,s),n=r,(u=[{key:"preBuild",value:function(){if(Dt(wn(r.prototype),"preBuild",this).call(this),this.schema.options||(this.schema.options={}),!this.schema.options.cleave)switch(this.format){case"ipv6":this.schema.options.cleave={delimiters:[":"],blocks:[4,4,4,4,4,4,4,4],uppercase:!0};break;case"ipv4":this.schema.options.cleave={delimiters:["."],blocks:[3,3,3,3],numericOnly:!0}}this.options=y(this.options,this.schema.options||{})}}])&&bn(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le);function bi(s){return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bi(s)}function el(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,ns(u.key),u)}}function ns(s){var r=function(n,u){if(bi(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(bi(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return bi(r)=="symbol"?r:r+""}function ti(s,r,n){return r=Wr(r),function(u,e){if(e&&(bi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,bo()?Reflect.construct(r,n||[],Wr(s).constructor):r.apply(s,n))}function bo(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bo=function(){return!!s})()}function gr(){return gr=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Wr(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},gr.apply(this,arguments)}function Wr(s){return Wr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wr(s)}function ri(s,r){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},ri(s,r)}var wo=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),ti(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ri(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t,a){e=this.applyConstFilter(e);var d=gr(Wr(r.prototype),"setValue",this).call(this,e,t,a);d!==void 0&&d.changed&&this.jodit_instance&&this.jodit_instance.setEditorValue(d.value)}},{key:"build",value:function(){this.options.format="textarea",gr(Wr(r.prototype),"build",this).call(this),this.input_type=this.schema.format,this.input.setAttribute("data-schemaformat",this.input_type)}},{key:"afterInputReady",value:function(){var e,t=this;window.Jodit?(e=this.expandCallbacks("jodit",y({},{height:300},this.defaults.options.jodit||{},this.options.jodit||{})),this.jodit_instance=new window.Jodit(this.input,e),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&this.jodit_instance.setReadOnly(!0),this.jodit_instance.events.on("change",function(){t.value=t.jodit_instance.getEditorValue(),t.is_dirty=!0,t.onChange(!0)}),this.theme.afterInputReady(this.input)):gr(Wr(r.prototype),"afterInputReady",this).call(this)}},{key:"getNumColumns",value:function(){return 6}},{key:"enable",value:function(){!this.always_disabled&&this.jodit_instance&&this.jodit_instance.setReadOnly(!1),gr(Wr(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(e){this.jodit_instance&&this.jodit_instance.setReadOnly(!0),gr(Wr(r.prototype),"disable",this).call(this,e)}},{key:"destroy",value:function(){this.jodit_instance&&(this.jodit_instance.destruct(),this.jodit_instance=null),gr(Wr(r.prototype),"destroy",this).call(this)}}])&&el(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le);function _o(s,r,n,u){try{switch(s.format){case"ipv4":(function(e){var t=e.split(".");if(t.length!==4)throw new Error("error_ipv4");t.forEach(function(a){if(isNaN(+a)||+a<0||+a>255)throw new Error("error_ipv4")})})(r);break;case"ipv6":(function(e){if(!e.match("^(?:(?:(?:[a-fA-F0-9]{1,4}:){6}|(?=(?:[a-fA-F0-9]{0,4}:){2,6}(?:[0-9]{1,3}.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){1,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[a-fA-F0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}|(?=(?:[a-fA-F0-9]{0,4}:){0,7}[a-fA-F0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[a-fA-F0-9]{1,4}:){7}:|:(:[a-fA-F0-9]{1,4}){7})$"))throw new Error("error_ipv6")})(r);break;case"hostname":(function(e){if(!e.match("(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9].)+[a-zA-Z]{2,63}$)"))throw new Error("error_hostname")})(r)}return[]}catch(e){return[{path:n,property:"format",message:u(e.message)}]}}function ko(s,r){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(s);r&&(u=u.filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})),n.push.apply(n,u)}return n}function tl(s,r,n){return(r=U(r))in s?Object.defineProperty(s,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[r]=n,s}function Cr(s){return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Cr(s)}function ni(s,r){return function(n){if(Array.isArray(n))return n}(s)||function(n,u){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t,a,d,b,P=[],I=!0,q=!1;try{if(d=(e=e.call(n)).next,u===0){if(Object(e)!==e)return;I=!1}else for(;!(I=(t=d.call(e)).done)&&(P.push(t.value),P.length!==u);I=!0);}catch(K){q=!0,a=K}finally{try{if(!I&&e.return!=null&&(b=e.return(),Object(b)!==b))return}finally{if(q)throw a}}return P}}(s,r)||wa(s,r)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
71
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Vt(s){return function(r){if(Array.isArray(r))return Wi(r)}(s)||function(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}(s)||wa(s)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
72
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function wa(s,r){if(s){if(typeof s=="string")return Wi(s,r);var n=Object.prototype.toString.call(s).slice(8,-1);return n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set"?Array.from(s):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wi(s,r):void 0}}function Wi(s,r){(r==null||r>s.length)&&(r=s.length);for(var n=0,u=new Array(r);n<r;n++)u[n]=s[n];return u}function is(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,U(u.key),u)}}function U(s){var r=function(n,u){if(Cr(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Cr(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Cr(r)=="symbol"?r:r+""}j(8431),j(7945),j(1278);var Z=function(){return s=function n(u,e,t,a){(function(d,b){if(!(d instanceof b))throw new TypeError("Cannot call a class as a function")})(this,n),this.jsoneditor=u,this.schema=e||this.jsoneditor.schema,this.options=t||{},this.translate=this.jsoneditor.translate||a.translate,this.translateProperty=this.jsoneditor.translateProperty||a.translateProperty,this.defaults=a,this._validateSubSchema={dependentRequired:function(d,b,P){var I=[];if(d.dependentRequired!==void 0){var q=[];Object.keys(d.dependentRequired).forEach(function(K){if(b[K]!==void 0){var ae=d.dependentRequired[K];q=ae.filter(function(se){return!E(b,se)})}}),q.length>0&&I.push({message:"Must have the required properties: "+q.join(", "),path:P})}return I},dependentSchemas:function(d,b,P){var I=this,q=[];return Object.keys(d.dependentSchemas).forEach(function(K){if(b[K]!==void 0){var ae=d.dependentSchemas[K],se=I._validateSchema(ae,b,P);q=[].concat(Vt(q),Vt(se))}}),q},contains:function(d,b,P){var I=this,q=[],K=0;b.forEach(function(se){I._validateSchema(d.contains,se,P).length===0&&K++});var ae=K===0;return d.minContains!==void 0?K<d.minContains&&q.push({message:this.translate("error_minContains",[K,d.minContains],d),path:P}):ae&&q.push({message:this.translate("error_contains",null,d),path:P}),d.maxContains!==void 0&&K>d.maxContains&&q.push({message:this.translate("error_maxContains",[K,d.maxContains],d),path:P}),q},if:function(d,b,P){if(d.then===void 0&&d.else===void 0)return[];var I=this._validateSchema(d.if,b,P),q=[],K=[];return d.then!==void 0&&(q=this._validateSchema(d.then,b,P)),d.else!==void 0&&(K=this._validateSchema(d.else,b,P)),d.if===!0?q:d.if===!1?K:I.length===0?q:I.length>0?K:[]},const:function(d,b,P){return JSON.stringify(d.const)===JSON.stringify(b)?[]:[{path:P,property:"const",message:this.translate("error_const",null,d)}]},enum:function(d,b,P){var I=JSON.stringify(b);return d.enum.some(function(q){return I===JSON.stringify(q)})?[]:[{path:P,property:"enum",message:this.translate("error_enum",null,d)}]},extends:function(d,b,P){var I=this;return d.extends.reduce(function(q,K){return q.push.apply(q,Vt(I._validateSchema(K,b,P))),q},[])},allOf:function(d,b,P){var I=this;return d.allOf.reduce(function(q,K){return q.push.apply(q,Vt(I._validateSchema(K,b,P))),q},[])},anyOf:function(d,b,P){var I=this;return d.anyOf.some(function(q){return!I._validateSchema(q,b,P).length})?[]:[{path:P,property:"anyOf",message:this.translate("error_anyOf",null,d)}]},oneOf:function(d,b,P){var I=this,q=0,K=[];d.oneOf.forEach(function(se,ge){var Oe=I._validateSchema(se,b,P);Oe.length||q++,Oe.forEach(function(Ne){Ne.path="".concat(P,".oneOf[").concat(ge,"]").concat(Ne.path.substr(P.length))}),K.push.apply(K,Vt(Oe))});var ae=[];return q!==1&&(ae.push({path:P,property:"oneOf",message:this.translate("error_oneOf",[q],d)}),ae.push.apply(ae,K)),ae},not:function(d,b,P){return this._validateSchema(d.not,b,P).length?[]:[{path:P,property:"not",message:this.translate("error_not",null,d)}]},type:function(d,b,P){var I=this;if(Array.isArray(d.type)){if(!d.type.some(function(q){return I._checkType(q,b)}))return[{path:P,property:"type",message:this.translate("error_type_union",null,d)}]}else if(["date","time","datetime-local"].includes(d.format)&&d.type==="integer"){if(!this._checkType("string","".concat(b)))return[{path:P,property:"type",message:this.translate("error_type",[d.format],d)}]}else if(!this._checkType(d.type,b))return[{path:P,property:"type",message:this.translate("error_type",[d.type],d)}];return[]},disallow:function(d,b,P){var I=this;if(Array.isArray(d.disallow)){if(d.disallow.some(function(q){return I._checkType(q,b)}))return[{path:P,property:"disallow",message:this.translate("error_disallow_union",null,d)}]}else if(this._checkType(d.disallow,b))return[{path:P,property:"disallow",message:this.translate("error_disallow",[d.disallow],d)}];return[]}},this._validateNumberSubSchema={multipleOf:function(d,b,P){return this._validateNumberSubSchemaMultipleDivisible(d,b,P)},divisibleBy:function(d,b,P){return this._validateNumberSubSchemaMultipleDivisible(d,b,P)},maximum:function(d,b,P){var I=d.exclusiveMaximum?b<d.maximum:b<=d.maximum;return window.math?I=window.math[d.exclusiveMaximum?"smaller":"smallerEq"](window.math.bignumber(b),window.math.bignumber(d.maximum)):window.Decimal&&(I=new window.Decimal(b)[d.exclusiveMaximum?"lt":"lte"](new window.Decimal(d.maximum))),I?[]:[{path:P,property:"maximum",message:this.translate(d.exclusiveMaximum?"error_maximum_excl":"error_maximum_incl",[d.maximum],d)}]},minimum:function(d,b,P){var I=d.exclusiveMinimum?b>d.minimum:b>=d.minimum;return window.math?I=window.math[d.exclusiveMinimum?"larger":"largerEq"](window.math.bignumber(b),window.math.bignumber(d.minimum)):window.Decimal&&(I=new window.Decimal(b)[d.exclusiveMinimum?"gt":"gte"](new window.Decimal(d.minimum))),I?[]:[{path:P,property:"minimum",message:this.translate(d.exclusiveMinimum?"error_minimum_excl":"error_minimum_incl",[d.minimum],d)}]}},this._validateStringSubSchema={maxLength:function(d,b,P){var I=[];return"".concat(b).length>d.maxLength&&I.push({path:P,property:"maxLength",message:this.translate("error_maxLength",[d.maxLength],d)}),I},minLength:function(d,b,P){return"".concat(b).length<d.minLength?[{path:P,property:"minLength",message:this.translate(d.minLength===1?"error_notempty":"error_minLength",[d.minLength],d)}]:[]},pattern:function(d,b,P){return new RegExp(d.pattern).test(b)?[]:[{path:P,property:"pattern",message:d.options&&d.options.patternmessage?d.options.patternmessage:this.translate("error_pattern",[d.pattern],d)}]}},this._validateArraySubSchema={items:function(d,b,P){var I=this,q=[];if(Array.isArray(d.items))for(var K=0;K<b.length;K++)if(d.items[K])q.push.apply(q,Vt(this._validateSchema(d.items[K],b[K],"".concat(P,".").concat(K))));else{if(d.additionalItems===!0)break;if(!d.additionalItems){if(d.additionalItems===!1){q.push({path:P,property:"additionalItems",message:this.translate("error_additionalItems",null,d)});break}break}q.push.apply(q,Vt(this._validateSchema(d.additionalItems,b[K],"".concat(P,".").concat(K))))}else b.forEach(function(ae,se){q.push.apply(q,Vt(I._validateSchema(d.items,ae,"".concat(P,".").concat(se))))});return q},maxItems:function(d,b,P){return b.length>d.maxItems?[{path:P,property:"maxItems",message:this.translate("error_maxItems",[d.maxItems],d)}]:[]},minItems:function(d,b,P){return b.length<d.minItems?[{path:P,property:"minItems",message:this.translate("error_minItems",[d.minItems],d)}]:[]},uniqueItems:function(d,b,P){for(var I={},q=0;q<b.length;q++){var K=JSON.stringify(b[q]);if(I[K])return[{path:P,property:"uniqueItems",message:this.translate("error_uniqueItems",null,d)}];I[K]=!0}return[]}},this._validateObjectSubSchema={maxProperties:function(d,b,P){return Object.keys(b).length>d.maxProperties?[{path:P,property:"maxProperties",message:this.translate("error_maxProperties",[d.maxProperties],d)}]:[]},minProperties:function(d,b,P){return Object.keys(b).length<d.minProperties?[{path:P,property:"minProperties",message:this.translate("error_minProperties",[d.minProperties],d)}]:[]},required:function(d,b,P){var I=this,q=[];return Array.isArray(d.required)&&d.required.forEach(function(K){if(b[K]===void 0){var ae=I.jsoneditor.getEditor("".concat(P,".").concat(K));ae&&ae.dependenciesFulfilled===!1||ae&&["button","info"].includes(ae.schema.format||ae.schema.type)||q.push({path:P,property:"required",message:I.translate("error_required",[d&&d.properties&&d.properties[K]&&d.properties[K].title?d.properties[K].title:K],d)})}}),q},properties:function(d,b,P,I){var q=this,K=[];return Object.entries(d.properties).forEach(function(ae){var se=ni(ae,2),ge=se[0],Oe=se[1];I[ge]=!0,K.push.apply(K,Vt(q._validateSchema(Oe,b[ge],"".concat(P,".").concat(ge))))}),K},patternProperties:function(d,b,P,I){var q=this,K=[];return Object.entries(d.patternProperties).forEach(function(ae){var se=ni(ae,2),ge=se[0],Oe=se[1],Ne=new RegExp(ge);Object.entries(b).forEach(function(Ve){var dt=ni(Ve,2),yt=dt[0],Et=dt[1];Ne.test(yt)&&(I[yt]=!0,K.push.apply(K,Vt(q._validateSchema(Oe,Et,"".concat(P,".").concat(yt)))))})}),K}},this._validateObjectSubSchema2={propertyNames:function(d,b,P,I){for(var q,K=this,ae=[],se=Object.keys(b),ge=null,Oe=function(){var Ve="";return ge=se[Ne],typeof d.propertyNames=="boolean"?d.propertyNames===!0?0:(ae.push({path:P,property:"propertyNames",message:K.translate("error_property_names_false",[ge],d)}),1):Object.entries(d.propertyNames).every(function(dt){var yt=ni(dt,2),Et=yt[0],Ae=yt[1],Be=!1;switch(Et){case"maxLength":if(typeof Ae!="number"){Ve="error_property_names_maxlength";break}if(ge.length>Ae){Ve="error_property_names_exceeds_maxlength";break}return!0;case"const":if(Ae!==ge){Ve="error_property_names_const_mismatch";break}return!0;case"enum":if(!Array.isArray(Ae)){Ve="error_property_names_enum";break}if(Ae.forEach(function(Tt){Tt===ge&&(Be=!0)}),!Be){Ve="error_property_names_enum_mismatch";break}return!0;case"pattern":if(typeof Ae!="string"){Ve="error_property_names_pattern";break}if(!new RegExp(Ae).test(ge)){Ve="error_property_names_pattern_mismatch";break}return!0;default:return ae.push({path:P,property:"propertyNames",message:K.translate("error_property_names_unsupported",[Et],d)}),!1}return ae.push({path:P,property:"propertyNames",message:K.translate(Ve,[ge],d)}),!1})?void 0:1},Ne=0;Ne<se.length&&((q=Oe())===0||q!==1);Ne++);return ae},additionalProperties:function(d,b,P,I){for(var q=[],K=Object.keys(b),ae=0;ae<K.length;ae++){var se=K[ae];if(!I[se]){if(!d.additionalProperties){q.push({path:P,property:"additionalProperties",message:this.translate("error_additional_properties",[se],d)});break}if(d.additionalProperties===!0)break;q.push.apply(q,Vt(this._validateSchema(d.additionalProperties,b[se],"".concat(P,".").concat(se))))}}return q},dependencies:function(d,b,P){var I=this,q=[];return Object.entries(d.dependencies).forEach(function(K){var ae=ni(K,2),se=ae[0],ge=ae[1];b[se]!==void 0&&(Array.isArray(ge)?ge.forEach(function(Oe){b[Oe]===void 0&&q.push({path:P,property:"dependencies",message:I.translate("error_dependency",[Oe],d)})}):q.push.apply(q,Vt(I._validateSchema(ge,b,P))))}),q}}},r=[{key:"fitTest",value:function(n,u){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e7,t={match:0,extra:0};if(Cr(n)==="object"&&n!==null){var a=this._getSchema(u);if(a.anyOf){var d,b=function(ge){for(var Oe=1;Oe<arguments.length;Oe++){var Ne=arguments[Oe]!=null?arguments[Oe]:{};Oe%2?ko(Object(Ne),!0).forEach(function(Ve){tl(ge,Ve,Ne[Ve])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ge,Object.getOwnPropertyDescriptors(Ne)):ko(Object(Ne)).forEach(function(Ve){Object.defineProperty(ge,Ve,Object.getOwnPropertyDescriptor(Ne,Ve))})}return ge}({},t),P=function(ge,Oe){var Ne=typeof Symbol<"u"&&ge[Symbol.iterator]||ge["@@iterator"];if(!Ne){if(Array.isArray(ge)||(Ne=wa(ge))){Ne&&(ge=Ne);var Ve=0,dt=function(){};return{s:dt,n:function(){return Ve>=ge.length?{done:!0}:{done:!1,value:ge[Ve++]}},e:function(Be){throw Be},f:dt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
73
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var yt,Et=!0,Ae=!1;return{s:function(){Ne=Ne.call(ge)},n:function(){var Be=Ne.next();return Et=Be.done,Be},e:function(Be){Ae=!0,yt=Be},f:function(){try{Et||Ne.return==null||Ne.return()}finally{if(Ae)throw yt}}}}(a.anyOf);try{for(P.s();!(d=P.n()).done;){var I=d.value,q=this.fitTest(n,I,e);(q.match>b.match||q.match===b.match&&q.extra<b.extra)&&(b=q)}}catch(ge){P.e(ge)}finally{P.f()}return b}var K=this._getSchema(u).properties;for(var ae in K)if(E(K,ae)){if(Cr(n[ae])==="object"&&Cr(K[ae])==="object"&&Cr(K[ae].properties)==="object"){var se=this.fitTest(n[ae],K[ae],e/100);t.match+=se.match,t.extra+=se.extra}n[ae]!==void 0&&(t.match+=e)}else t.extra+=e}return t}},{key:"_getSchema",value:function(n){return n===void 0?y({},this.jsoneditor.expandRefs(this.schema)):n}},{key:"validate",value:function(n){return this._validateSchema(this.schema,n)}},{key:"_validateSchema",value:function(n,u,e){var t=this,a=[];return e=e||this.jsoneditor.root.formname,n=y({},this.jsoneditor.expandRefs(n)),u===void 0?this._validateV3Required(n,u,e):(Object.keys(n).forEach(function(d){t._validateSubSchema[d]&&a.push.apply(a,Vt(t._validateSubSchema[d].call(t,n,u,e)))}),a.push.apply(a,Vt(this._validateByValueType(n,u,e))),n.links&&n.links.forEach(function(d,b){d.rel&&d.rel.toLowerCase()==="describedby"&&(n=t._expandSchemaLink(n,b),a.push.apply(a,Vt(t._validateSchema(n,u,e,t.translate))))}),["date","time","datetime-local"].includes(n.format)&&a.push.apply(a,Vt(this._validateDateTimeSubSchema(n,u,e))),["uuid"].includes(n.format)&&a.push.apply(a,Vt(this._validateUUIDSchema(n,u,e))),a.push.apply(a,Vt(this._validateCustomValidator(n,u,e))),this._removeDuplicateErrors(a))}},{key:"_expandSchemaLink",value:function(n,u){var e=n.links[u].href,t=this.jsoneditor.root.getValue(),a=this.jsoneditor.compileTemplate(e,this.jsoneditor.template),d=document.location.origin+document.location.pathname+a(t);return n.links=n.links.slice(0,u).concat(n.links.slice(u+1)),y({},n,this.jsoneditor.refs[d])}},{key:"_validateV3Required",value:function(n,u,e){return(n.required!==void 0&&n.required===!0||n.required===void 0&&this.jsoneditor.options.required_by_default===!0)&&n.type!=="info"?[{path:e,property:"required",message:this.translate("error_notset",null,n)}]:[]}},{key:"_validateByValueType",value:function(n,u,e){var t=this,a=[];if(u===null)return a;if(typeof u=="number")Object.keys(n).forEach(function(b){t._validateNumberSubSchema[b]&&a.push.apply(a,Vt(t._validateNumberSubSchema[b].call(t,n,u,e)))});else if(typeof u=="string")Object.keys(n).forEach(function(b){t._validateStringSubSchema[b]&&a.push.apply(a,Vt(t._validateStringSubSchema[b].call(t,n,u,e)))});else if(Array.isArray(u))Object.keys(n).forEach(function(b){t._validateArraySubSchema[b]&&a.push.apply(a,Vt(t._validateArraySubSchema[b].call(t,n,u,e)))});else if(Cr(u)==="object"){var d={};Object.keys(n).forEach(function(b){t._validateObjectSubSchema[b]&&a.push.apply(a,Vt(t._validateObjectSubSchema[b].call(t,n,u,e,d)))}),n.additionalProperties!==void 0||!this.jsoneditor.options.no_additional_properties||n.oneOf||n.anyOf||n.allOf||(n.additionalProperties=!1),Object.keys(n).forEach(function(b){t._validateObjectSubSchema2[b]!==void 0&&a.push.apply(a,Vt(t._validateObjectSubSchema2[b].call(t,n,u,e,d)))})}return a}},{key:"_validateUUIDSchema",value:function(n,u,e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(u)?[]:[{path:e,property:"format",message:this.translate("error_pattern",["^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"],n)}]}},{key:"_validateNumberSubSchemaMultipleDivisible",value:function(n,u,e){var t=n.multipleOf||n.divisibleBy,a=u/t===Math.floor(u/t);return window.math?a=window.math.mod(window.math.bignumber(u),window.math.bignumber(t)).equals(0):window.Decimal&&(a=new window.Decimal(u).mod(new window.Decimal(t)).equals(0)),a?[]:[{path:e,property:n.multipleOf?"multipleOf":"divisibleBy",message:this.translate("error_multipleOf",[t],n)}]}},{key:"_validateDateTimeSubSchema",value:function(n,u,e){var t=this,a=this.jsoneditor.getEditor(e),d=a&&a.flatpickr?a.flatpickr.config.dateFormat:{date:'"YYYY-MM-DD"',time:'"HH:MM"',"datetime-local":'"YYYY-MM-DD HH:MM"'}[n.format];if(n.type==="integer")return function(b,P,I){return 1*P<1?[{path:I,property:"format",message:t.translate("error_invalid_epoch",null,b)}]:P!==Math.abs(parseInt(P))?[{path:I,property:"format",message:t.translate("error_".concat(b.format.replace(/-/g,"_")),[d],b)}]:[]}(n,u,e);if(a&&a.flatpickr){if(a)return function(b,P,I,q){if(P!==""){var K;if(q.flatpickr.config.mode!=="single"){var ae=q.flatpickr.config.mode==="range"?q.flatpickr.l10n.rangeSeparator:", ";K=q.flatpickr.selectedDates.map(function(ge){return q.flatpickr.formatDate(ge,q.flatpickr.config.dateFormat)}).join(ae)}try{if(K){if(K!==P)throw new Error("".concat(q.flatpickr.config.mode," mismatch"))}else if(q.flatpickr.formatDate(q.flatpickr.parseDate(P,q.flatpickr.config.dateFormat),q.flatpickr.config.dateFormat)!==P)throw new Error("mismatch")}catch{var se=q.flatpickr.config.errorDateFormat!==void 0?q.flatpickr.config.errorDateFormat:q.flatpickr.config.dateFormat;return[{path:I,property:"format",message:t.translate("error_".concat(q.format.replace(/-/g,"_")),[se],b)}]}}return[]}(n,u,e,a)}else if(!{date:/^(\d{4}\D\d{2}\D\d{2})$/,time:/^(\d{2}:\d{2}(?::\d{2})?)$/,"datetime-local":/^(\d{4}\D\d{2}\D\d{2}[ T]\d{2}:\d{2}(?::\d{2})?)$/}[n.format].test(u))return[{path:e,property:"format",message:this.translate("error_".concat(n.format.replace(/-/g,"_")),[d],n)}];return[]}},{key:"_validateCustomValidator",value:function(n,u,e){var t=this,a=[];a.push.apply(a,Vt(_o.call(this,n,u,e,this.translate)));var d=function(b){a.push.apply(a,Vt(b.call(t,n,u,e)))};return this.defaults.custom_validators.forEach(d),this.options.custom_validators&&this.options.custom_validators.forEach(d),a}},{key:"_removeDuplicateErrors",value:function(n){return n.reduce(function(u,e){var t=!0;return u||(u=[]),u.forEach(function(a){a.message===e.message&&a.path===e.path&&a.property===e.property&&(a.errorcount++,t=!1)}),t&&(e.errorcount=1,u.push(e)),u},[])}},{key:"_checkType",value:function(n,u){var e={string:function(t){return typeof t=="string"},number:function(t){return typeof t=="number"},integer:function(t){return typeof t=="number"&&t===Math.floor(t)},boolean:function(t){return typeof t=="boolean"},array:function(t){return Array.isArray(t)},object:function(t){return t!==null&&!Array.isArray(t)&&Cr(t)==="object"},null:function(t){return t===null}};return typeof n=="string"?!e[n]||e[n](u):!this._validateSchema(n,u).length}}],r&&is(s.prototype,r),Object.defineProperty(s,"prototype",{writable:!1}),s;var s,r}();function ue(s){return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ue(s)}function he(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,ve(u.key),u)}}function ve(s){var r=function(n,u){if(ue(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(ue(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return ue(r)=="symbol"?r:r+""}function Fe(s,r,n){return r=Te(r),function(u,e){if(e&&(ue(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Re()?Reflect.construct(r,n||[],Te(s).constructor):r.apply(s,n))}function Re(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Re=function(){return!!s})()}function He(){return He=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Te(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},He.apply(this,arguments)}function Te(s){return Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Te(s)}function gt(s,r){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},gt(s,r)}var ot=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Fe(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gt(e,t)}(r,s),n=r,(u=[{key:"register",value:function(){if(this.editors){for(var e=0;e<this.editors.length;e++)this.editors[e]&&this.editors[e].unregister();this.editors[this.type]&&this.editors[this.type].register()}He(Te(r.prototype),"register",this).call(this)}},{key:"unregister",value:function(){if(He(Te(r.prototype),"unregister",this).call(this),this.editors)for(var e=0;e<this.editors.length;e++)this.editors[e]&&this.editors[e].unregister()}},{key:"getNumColumns",value:function(){return this.editors[this.type]?Math.max(this.editors[this.type].getNumColumns(),4):4}},{key:"enable",value:function(){if(!this.always_disabled){if(this.editors)for(var e=0;e<this.editors.length;e++)this.editors[e]&&this.editors[e].enable();this.switcher.disabled=!1,He(Te(r.prototype),"enable",this).call(this)}}},{key:"disable",value:function(e){if(e&&(this.always_disabled=!0),this.editors)for(var t=0;t<this.editors.length;t++)this.editors[t]&&this.editors[t].disable(e);this.switcher.disabled=!0,He(Te(r.prototype),"disable",this).call(this)}},{key:"switchEditor",value:function(e){var t=this;this.lastType=this.type,this.editors[e]||this.buildChildEditor(e);var a=this.getValue();this.type=e,this.register(),this.editors.forEach(function(d,b){var P,I;d&&(t.type===b?(t.keep_only_existing_values&&(P=d.getValue(),I=a,Object.keys(I).forEach(function(q){q in P&&(P[q]=I[q])}),a=P),(t.keep_values||t.if)&&d.setValue(a,!0),d.container.style.display=""):d.container.style.display="none")}),this.onChange(!0,!1,{event:"switch",data:{type:this.lastType,path:this.editors[e].path}}),this.refreshValue(),this.refreshHeaderText()}},{key:"buildChildEditor",value:function(e){var t,a,d=this,b=this.types[e],P=this.theme.getChildEditorHolder();this.editor_holder.appendChild(P),typeof b=="string"?(a=y({},this.schema)).type=b:(a=y({},this.schema,b),a=this.jsoneditor.expandRefs(a),b&&b.required&&Array.isArray(b.required)&&this.schema.required&&Array.isArray(this.schema.required)&&(a.required=this.schema.required.concat(b.required))),(t=a)!==null&&t!==void 0&&(t=t.options)!==null&&t!==void 0&&t.dependencies&&delete a.options.dependencies;var I=this.jsoneditor.getEditorClass(a);this.editors[e]=this.jsoneditor.createEditor(I,{jsoneditor:this.jsoneditor,schema:a,container:P,path:this.path,parent:this,required:!0}),this.editors[e].preBuild(),this.editors[e].build(),this.editors[e].postBuild(),this.editors[e].header&&this.theme.visuallyHidden(this.editors[e].header),this.editors[e].option=this.switcher_options[e],P.addEventListener("change_header_text",function(){d.refreshHeaderText()}),e!==this.type&&(P.style.display="none")}},{key:"preBuild",value:function(){if(this.types=[],this.type=0,this.editors=[],this.validators=[],this.keep_values=!0,this.jsoneditor.options.keep_oneof_values!==void 0&&(this.keep_values=this.jsoneditor.options.keep_oneof_values),this.options.keep_oneof_values!==void 0&&(this.keep_values=this.options.keep_oneof_values),this.keep_only_existing_values=!1,this.jsoneditor.options.keep_only_existing_values!==void 0&&(this.keep_only_existing_values=this.jsoneditor.options.keep_only_existing_values),this.options.keep_only_existing_values!==void 0&&(this.keep_only_existing_values=this.options.keep_only_existing_values),this.schema.oneOf)this.oneOf=!0,this.types=this.schema.oneOf,delete this.schema.oneOf;else if(this.schema.anyOf)this.anyOf=!0,this.types=this.schema.anyOf,delete this.schema.anyOf;else if(this.schema.if)this.if=!0,this.ifSchema=JSON.parse(JSON.stringify(this.schema.if)),this.thenSchema={title:"then"},this.elseSchema={title:"else"},this.types=[],this.schema.then&&M(this.thenSchema,this.schema,this.schema.then),this.schema.else&&M(this.elseSchema,this.schema,this.schema.else),this.types.push(this.thenSchema),this.types.push(this.elseSchema),this.types.forEach(function(a){delete a.if,delete a.then,delete a.else}),delete this.schema.if;else{if(this.schema.type&&this.schema.type!=="any")Array.isArray(this.schema.type)?this.types=this.schema.type:this.types=[this.schema.type];else if(this.types=["string","number","integer","boolean","object","array","null"],this.schema.disallow){var e=this.schema.disallow;ue(e)==="object"&&Array.isArray(e)||(e=[e]);var t=[];this.types.forEach(function(a){e.includes(a)||t.push(a)}),this.types=t}delete this.schema.type}this.display_text=this.getDisplayText(this.types)}},{key:"build",value:function(){var e=this,t=this.container;this.header=this.label=this.theme.getLabelLike(this.getTitle(),this.isRequired()),this.switcher=this.theme.getSwitcher(this.display_text),this.switcher.setAttribute("id",this.formname+"switcher"),this.switcherLabel=this.theme.getHiddenLabel(this.formname+" switcher"),this.switcherLabel.setAttribute("for",this.formname+"switcher"),this.if||(this.container.appendChild(this.header),t.appendChild(this.switcherLabel),t.appendChild(this.switcher)),this.switcher.addEventListener("change",function(d){d.preventDefault(),d.stopPropagation(),e.switchEditor(e.display_text.indexOf(d.currentTarget.value)),e.onChange(!0)}),this.editor_holder=document.createElement("div"),t.appendChild(this.editor_holder);var a={};this.jsoneditor.options.custom_validators&&(a.custom_validators=this.jsoneditor.options.custom_validators),this.switcher_options=this.theme.getSwitcherOptions(this.switcher),this.types.forEach(function(d,b){var P;e.editors[b]=!1,typeof d=="string"?(P=y({},e.schema)).type=d:(P=y({},e.schema,d),d.required&&Array.isArray(d.required)&&e.schema.required&&Array.isArray(e.schema.required)&&(P.required=e.schema.required.concat(d.required))),e.validators[b]=new Z(e.jsoneditor,P,a,e.defaults)}),this.jsoneditor.on("change",function(){e.switchIf()}),this.switchEditor(0)}},{key:"onChildEditorChange",value:function(e,t){this.editors[this.type]&&(this.refreshValue(),this.refreshHeaderText()),He(Te(r.prototype),"onChildEditorChange",this).call(this,e,t)}},{key:"refreshHeaderText",value:function(){var e=this.getDisplayText(this.types);Array.from(this.switcher_options).forEach(function(t,a){t.textContent=e[a]})}},{key:"refreshValue",value:function(){this.editors[this.type]&&(this.value=this.editors[this.type].getValue())}},{key:"switchIf",value:function(){if(this.ifSchema&&this.value){var e=this.getIfType(this.value);this.lastType!==e&&(this.switchEditor(e),this.editors[this.type].setValue(this.value,!0)),this.switcher.value=this.display_text[this.type]}}},{key:"getIfType",value:function(e){return this.jsoneditor.validator._validateSchema(this.ifSchema,e).length===0?0:1}},{key:"setValue",value:function(e,t){var a=this;e=this.applyConstFilter(e);var d=this.type,b={match:0,extra:0,i:this.type},P={match:0,i:null};this.validators.forEach(function(K,ae){var se=null;a.anyOf!==void 0&&a.anyOf&&(se=K.fitTest(e),(b.match<se.match||b.match===se.match&&b.extra>se.extra)&&((b=se).i=ae)),K.validate(e).length||P.i!==null?b=P:(P.i=ae,se!==null&&(P.match=se.match))});var I=P.i;this.anyOf!==void 0&&this.anyOf&&P.match<b.match&&(I=b.i),this.if&&(I=this.getIfType(e)),I===null&&(I=this.type),this.type=I,this.switcher.value=this.display_text[I];var q=this.type!==d;q&&(this.switchEditor(this.type),this.editors[this.type].setValue(e,t)),e!==void 0&&this.editors[this.type].setValue(e,t),this.refreshValue(),this.onChange(q)}},{key:"destroy",value:function(){this.editors.forEach(function(e){e&&e.destroy()}),this.editor_holder&&this.editor_holder.parentNode&&this.editor_holder.parentNode.removeChild(this.editor_holder),this.switcher&&this.switcher.parentNode&&this.switcher.parentNode.removeChild(this.switcher),He(Te(r.prototype),"destroy",this).call(this)}},{key:"showValidationErrors",value:function(e){var t=this;if(this.oneOf||this.anyOf){var a=this.oneOf?"oneOf":"anyOf";this.editors.forEach(function(d,b){if(d){var P="".concat(t.path,".").concat(a,"[").concat(b,"]");d.showValidationErrors(e.reduce(function(I,q){if(q.path.startsWith(P)||q.path===P.substr(0,q.path.length)){var K=y({},q);q.path.startsWith(P)&&(K.path=t.path+K.path.substr(P.length)),I.push(K)}return I},[]))}})}else this.editors.forEach(function(d){d&&d.showValidationErrors(e)})}},{key:"addLinks",value:function(){}}])&&he(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function nt(s){return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nt(s)}function xt(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Ze(u.key),u)}}function Ze(s){var r=function(n,u){if(nt(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(nt(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return nt(r)=="symbol"?r:r+""}function qt(s,r,n){return r=sr(r),function(u,e){if(e&&(nt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,yr()?Reflect.construct(r,n||[],sr(s).constructor):r.apply(s,n))}function yr(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yr=function(){return!!s})()}function sr(s){return sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sr(s)}function jr(s,r){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},jr(s,r)}var ln=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),qt(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jr(e,t)}(r,s),n=r,(u=[{key:"getValue",value:function(){if(this.dependenciesFulfilled)return null}},{key:"setValue",value:function(){this.onChange()}},{key:"getNumColumns",value:function(){return 2}}])&&xt(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function ii(s,r){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(s);r&&(u=u.filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})),n.push.apply(n,u)}return n}function ir(s){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ii(Object(n),!0).forEach(function(u){os(s,u,n[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach(function(u){Object.defineProperty(s,u,Object.getOwnPropertyDescriptor(n,u))})}return s}function os(s,r,n){return(r=Uf(r))in s?Object.defineProperty(s,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[r]=n,s}function xo(s,r){return function(n){if(Array.isArray(n))return n}(s)||function(n,u){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t,a,d,b,P=[],I=!0,q=!1;try{if(d=(e=e.call(n)).next,u===0){if(Object(e)!==e)return;I=!1}else for(;!(I=(t=d.call(e)).done)&&(P.push(t.value),P.length!==u);I=!0);}catch(K){q=!0,a=K}finally{try{if(!I&&e.return!=null&&(b=e.return(),Object(b)!==b))return}finally{if(q)throw a}}return P}}(s,r)||function(n,u){if(n){if(typeof n=="string")return Wf(n,u);var e=Object.prototype.toString.call(n).slice(8,-1);return e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set"?Array.from(n):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Wf(n,u):void 0}}(s,r)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
74
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Wf(s,r){(r==null||r>s.length)&&(r=s.length);for(var n=0,u=new Array(r);n<r;n++)u[n]=s[n];return u}function oi(s){return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},oi(s)}function cy(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Uf(u.key),u)}}function Uf(s){var r=function(n,u){if(oi(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(oi(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return oi(r)=="symbol"?r:r+""}function fy(s,r,n){return r=Qr(r),function(u,e){if(e&&(oi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Gf()?Reflect.construct(r,n||[],Qr(s).constructor):r.apply(s,n))}function Gf(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gf=function(){return!!s})()}function An(){return An=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Qr(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},An.apply(this,arguments)}function Qr(s){return Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qr(s)}function rl(s,r){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},rl(s,r)}var Yf=function(s){function r(e,t,a){var d;return function(b,P){if(!(b instanceof P))throw new TypeError("Cannot call a class as a function")}(this,r),(d=fy(this,r,[e,t])).currentDepth=a,d}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rl(e,t)}(r,s),n=r,(u=[{key:"getChildEditors",value:function(){return this.editors}},{key:"register",value:function(){An(Qr(r.prototype),"register",this).call(this),this.editors&&Object.values(this.editors).forEach(function(e){return e.register()})}},{key:"unregister",value:function(){An(Qr(r.prototype),"unregister",this).call(this),this.editors&&Object.values(this.editors).forEach(function(e){return e.unregister()})}},{key:"getNumColumns",value:function(){return Math.max(Math.min(12,this.maxwidth),3)}},{key:"enable",value:function(){this.always_disabled||(this.editjson_control&&(this.editjson_control.disabled=!1),this.addproperty_button&&(this.addproperty_button.disabled=!1),An(Qr(r.prototype),"enable",this).call(this),this.editors&&Object.values(this.editors).forEach(function(e){(e.isActive()||e.isUiOnly)&&e.enable(),e.optInCheckbox&&(e.optInCheckbox.disabled=!1)}))}},{key:"disable",value:function(e){e&&(this.always_disabled=!0),this.editjson_control&&(this.editjson_control.disabled=!0),this.addproperty_button&&(this.addproperty_button.disabled=!0),this.hideEditJSON(),An(Qr(r.prototype),"disable",this).call(this),this.editors&&Object.values(this.editors).forEach(function(t){(t.isActive()||t.isUiOnly)&&t.disable(e),t.optInCheckbox.disabled=!0})}},{key:"layoutEditors",value:function(){var e,t,a=this;if(this.row_container){var d;this.property_order=Object.keys(this.editors),this.property_order=this.property_order.sort(function(Et,Ae){var Be=a.editors[Et].schema.propertyOrder,Tt=a.editors[Ae].schema.propertyOrder;return typeof Be!="number"&&(Be=1e3),typeof Tt!="number"&&(Tt=1e3),Be-Tt});var b,P=this.format==="categories",I=[],q=null,K=null;if(this.format==="grid-strict"){var ae=0;if(b=[],this.property_order.forEach(function(Et){var Ae=a.editors[Et];if(!Ae.property_removed){var Be=Ae.options.hidden?0:Ae.options.grid_columns||Ae.getNumColumns(),Tt=Ae.options.hidden?0:Ae.options.grid_offset||0,Yt=!Ae.options.hidden&&(Ae.options.grid_break||!1),Ar={key:Et,width:Be,offset:Tt,height:Ae.options.hidden?0:Ae.container.offsetHeight};b.push(Ar),I[ae]=b,Yt&&(ae++,b=[])}}),this.layout===JSON.stringify(I))return!1;for(this.layout=JSON.stringify(I),d=document.createElement("div"),e=0;e<I.length;e++)for(b=this.theme.getGridRow(),d.appendChild(b),t=0;t<I[e].length;t++)q=I[e][t].key,(K=this.editors[q]).options.hidden?K.container.style.display="none":this.theme.setGridColumnSize(K.container,I[e][t].width,I[e][t].offset),b.appendChild(K.container)}else if(this.format==="grid"){for(this.property_order.forEach(function(Et){var Ae=a.editors[Et];if(!Ae.property_removed){for(var Be=!1,Tt=Ae.options.hidden?0:Ae.options.grid_columns||Ae.getNumColumns(),Yt=Ae.options.hidden?0:Ae.container.offsetHeight,Ar=0;Ar<I.length;Ar++)I[Ar].width+Tt<=12&&(!Yt||.5*I[Ar].minh<Yt&&2*I[Ar].maxh>Yt)&&(Be=Ar);Be===!1&&(I.push({width:0,minh:999999,maxh:0,editors:[]}),Be=I.length-1),I[Be].editors.push({key:Et,width:Tt,height:Yt}),I[Be].width+=Tt,I[Be].minh=Math.min(I[Be].minh,Yt),I[Be].maxh=Math.max(I[Be].maxh,Yt)}}),e=0;e<I.length;e++)if(I[e].width<12){var se=!1,ge=0;for(t=0;t<I[e].editors.length;t++)(se===!1||I[e].editors[t].width>I[e].editors[se].width)&&(se=t),I[e].editors[t].width*=12/I[e].width,I[e].editors[t].width=Math.floor(I[e].editors[t].width),ge+=I[e].editors[t].width;ge<12&&(I[e].editors[se].width+=12-ge),I[e].width=12}if(this.layout===JSON.stringify(I))return!1;for(this.layout=JSON.stringify(I),d=document.createElement("div"),e=0;e<I.length;e++)for(b=this.theme.getGridRow(),d.appendChild(b),t=0;t<I[e].editors.length;t++)q=I[e].editors[t].key,(K=this.editors[q]).options.hidden?K.container.style.display="none":this.theme.setGridColumnSize(K.container,I[e].editors[t].width),b.appendChild(K.container)}else{if(d=document.createElement("div"),P){var Oe=document.createElement("div"),Ne=this.theme.getTopTabHolder(this.translateProperty(this.schema.title)),Ve=this.theme.getTopTabContentHolder(Ne);for(this.property_order.forEach(function(Et){var Ae=a.editors[Et];if(!Ae.property_removed){var Be=a.theme.getTabContent(),Tt=Ae.schema&&(Ae.schema.type==="object"||Ae.schema.type==="array");Be.isObjOrArray=Tt;var Yt=a.theme.getGridRow();Ae.tab||(a.basicPane===void 0?a.addRow(Ae,Ne,Be):a.addRow(Ae,Ne,a.basicPane)),Be.id=a.getValidId(Ae.tab_text.textContent),Tt?(Be.appendChild(Yt),Ve.appendChild(Be),a.theme.addTopTab(Ne,Ae.tab)):(Oe.appendChild(Yt),Ve.childElementCount>0?Ve.firstChild.isObjOrArray&&(Be.appendChild(Oe),Ve.insertBefore(Be,Ve.firstChild),a.theme.insertBasicTopTab(Ae.tab,Ne),Ae.basicPane=Be):(Be.appendChild(Oe),Ve.appendChild(Be),a.theme.addTopTab(Ne,Ae.tab),Ae.basicPane=Be)),Ae.options.hidden?Ae.container.style.display="none":a.theme.setGridColumnSize(Ae.container,12),Yt.appendChild(Ae.container),Ae.rowPane=Be}});this.tabPanesContainer.firstChild;)this.tabPanesContainer.removeChild(this.tabPanesContainer.firstChild);var dt=this.tabs_holder.parentNode;dt.removeChild(dt.firstChild),dt.appendChild(Ne),this.tabPanesContainer=Ve,this.tabs_holder=Ne;var yt=this.theme.getFirstTab(this.tabs_holder);return void(yt&&x(yt,"click"))}this.property_order.forEach(function(Et){var Ae=a.editors[Et];Ae.property_removed||(b=a.theme.getGridRow(),d.appendChild(b),Ae.options.hidden?Ae.container.style.display="none":a.theme.setGridColumnSize(Ae.container,12),b.appendChild(Ae.container))})}for(;this.row_container.firstChild;)this.row_container.removeChild(this.row_container.firstChild);this.row_container.appendChild(d)}}},{key:"getPropertySchema",value:function(e){var t=this,a=this.schema.properties[e]||{};a=y({},a);var d=!!this.schema.properties[e];return this.schema.patternProperties&&Object.keys(this.schema.patternProperties).forEach(function(b){new RegExp(b).test(e)&&(a.allOf=a.allOf||[],a.allOf.push(t.schema.patternProperties[b]),d=!0)}),!d&&this.schema.additionalProperties&&oi(this.schema.additionalProperties)==="object"&&(a=y({},this.schema.additionalProperties)),a}},{key:"preBuild",value:function(){var e=this;if(An(Qr(r.prototype),"preBuild",this).call(this),this.editors={},this.cached_editors={},this.format=this.options.layout||this.options.object_layout||this.schema.format||this.jsoneditor.options.object_layout||"normal",this.schema.properties=this.schema.properties||{},this.minwidth=0,this.maxwidth=0,this.options.table_row)Object.entries(this.schema.properties).forEach(function(t){var a=xo(t,2),d=a[0],b=a[1],P=e.jsoneditor.getEditorClass(b);e.editors[d]=e.jsoneditor.createEditor(P,{jsoneditor:e.jsoneditor,schema:b,path:"".concat(e.path,".").concat(d),parent:e,compact:!0,required:!0},e.currentDepth+1),e.editors[d].preBuild();var I=e.editors[d].options.hidden?0:e.editors[d].options.grid_columns||e.editors[d].getNumColumns();e.minwidth+=I,e.maxwidth+=I}),this.no_link_holder=!0;else{if(this.options.table)throw new Error("Not supported yet");this.schema.defaultProperties||(this.jsoneditor.options.display_required_only||this.options.display_required_only?this.schema.defaultProperties=Object.keys(this.schema.properties).filter(function(t){return e.isRequiredObject({key:t,schema:e.schema.properties[t]})}):this.schema.defaultProperties=Object.keys(this.schema.properties)),this.maxwidth+=1,Array.isArray(this.schema.defaultProperties)&&this.schema.defaultProperties.forEach(function(t){e.addObjectProperty(t,!0),e.editors[t]&&(e.minwidth=Math.max(e.minwidth,e.editors[t].options.grid_columns||e.editors[t].getNumColumns()),e.maxwidth+=e.editors[t].options.grid_columns||e.editors[t].getNumColumns())})}this.property_order=Object.keys(this.editors),this.property_order=this.property_order.sort(function(t,a){var d=e.editors[t].schema.propertyOrder,b=e.editors[a].schema.propertyOrder;return typeof d!="number"&&(d=1e3),typeof b!="number"&&(b=1e3),d-b})}},{key:"addTab",value:function(e){var t=this,a=this.rows[e].schema&&(this.rows[e].schema.type==="object"||this.rows[e].schema.type==="array");this.tabs_holder&&(this.rows[e].tab_text=document.createElement("span"),this.rows[e].tab_text.textContent=a?this.rows[e].getHeaderText():this.schema.basicCategoryTitle===void 0?"Basic":this.schema.basicCategoryTitle,this.rows[e].tab=this.theme.getTopTab(this.rows[e].tab_text,this.getValidId(this.rows[e].tab_text.textContent)),this.rows[e].tab.addEventListener("click",function(d){t.active_tab=t.rows[e].tab,t.refreshTabs(),d.preventDefault(),d.stopPropagation()}))}},{key:"addRow",value:function(e,t,a){var d=this.rows.length,b=e.schema.type==="object"||e.schema.type==="array";this.rows[d]=e,this.rows[d].rowPane=a,b?(this.addTab(d),this.theme.addTopTab(t,this.rows[d].tab)):this.basicTab===void 0?(this.addTab(d),this.basicTab=d,this.basicPane=a,this.theme.addTopTab(t,this.rows[d].tab)):(this.rows[d].tab=this.rows[this.basicTab].tab,this.rows[d].tab_text=this.rows[this.basicTab].tab_text,this.rows[d].rowPane=this.rows[this.basicTab].rowPane)}},{key:"refreshTabs",value:function(e){var t=this,a=this.basicTab!==void 0,d=!1;this.rows.forEach(function(b){b.tab&&b.rowPane&&b.rowPane.parentNode&&(a&&b.tab===t.rows[t.basicTab].tab&&d||(e?b.tab_text.textContent=b.getHeaderText():(a&&b.tab===t.rows[t.basicTab].tab&&(d=!0),b.tab===t.active_tab?t.theme.markTabActive(b):t.theme.markTabInactive(b))))})}},{key:"build",value:function(){var e=this,t=this.format==="categories";if(this.rows=[],this.active_tab=null,this.options.table_row)this.editor_holder=this.container,Object.entries(this.editors).forEach(function(d){var b=xo(d,2),P=b[0],I=b[1],q=e.theme.getTableCell();e.editor_holder.appendChild(q),I.setContainer(q),I.build(),I.postBuild(),I.setOptInCheckbox(I.header),I.setValue(I.getDefault(),!0),e.editors[P].options.hidden&&(q.style.display="none"),e.editors[P].options.input_width&&(q.style.width=e.editors[P].options.input_width)});else{if(this.options.table)throw new Error("Not supported yet");this.header="",this.options.compact||(this.header=document.createElement("span"),this.header.textContent=this.getTitle()),this.title=this.theme.getHeader(this.header,this.getPathDepth()),this.title.classList.add("je-object__title"),this.controls=this.theme.getButtonHolder(),this.controls.classList.add("je-object__controls"),this.container.appendChild(this.title),this.container.appendChild(this.controls),this.container.classList.add("je-object__container"),this.editjson_holder=this.theme.getModal(),this.editjson_textarea_label=this.theme.getHiddenLabel(this.translate("button_edit_json")),this.editjson_textarea_label.setAttribute("for",this.path+"-edit-json-textarea"),this.editjson_textarea=this.theme.getTextareaInput(),this.editjson_textarea.setAttribute("id",this.path+"-edit-json-textarea"),this.editjson_textarea.setAttribute("aria-labelledby",this.path+"-edit-json-textarea"),this.editjson_textarea.classList.add("je-edit-json--textarea"),this.editjson_save=this.getButton("button_save","save","button_save"),this.editjson_save.classList.add("json-editor-btntype-save"),this.editjson_save.addEventListener("click",function(d){d.preventDefault(),d.stopPropagation(),e.saveJSON()}),this.editjson_copy=this.getButton("button_copy","copy","button_copy"),this.editjson_copy.classList.add("json-editor-btntype-copy"),this.editjson_copy.addEventListener("click",function(d){d.preventDefault(),d.stopPropagation(),e.copyJSON()}),this.editjson_cancel=this.getButton("button_cancel","cancel","button_cancel"),this.editjson_cancel.classList.add("json-editor-btntype-cancel"),this.editjson_cancel.addEventListener("click",function(d){d.preventDefault(),d.stopPropagation(),e.hideEditJSON()}),this.editjson_holder.appendChild(this.editjson_textarea_label),this.editjson_holder.appendChild(this.editjson_textarea),this.editjson_holder.appendChild(this.editjson_save),this.editjson_holder.appendChild(this.editjson_copy),this.editjson_holder.appendChild(this.editjson_cancel),this.addproperty_holder=this.theme.getModal(),this.addproperty_list=document.createElement("div"),this.addproperty_list.classList.add("property-selector"),this.addproperty_add=this.getButton("button_add","add","button_add"),this.addproperty_add.classList.add("json-editor-btntype-add"),this.addproperty_input=this.theme.getFormInputField("text"),this.addproperty_input.setAttribute("placeholder","Property name..."),this.addproperty_input_label=this.theme.getHiddenLabel(this.translate("button_properties")),this.addproperty_input_label.setAttribute("for",this.path+"-property-selector"),this.addproperty_input.classList.add("property-selector-input"),this.addproperty_input.setAttribute("id",this.path+"-property-selector"),this.addproperty_input.setAttribute("aria-labelledby",this.path+"-property-selector"),this.addproperty_add.addEventListener("click",function(d){if(d.preventDefault(),d.stopPropagation(),e.addproperty_input.value){if(e.editors[e.addproperty_input.value])return void window.alert("there is already a property with that name");e.addObjectProperty(e.addproperty_input.value),e.editors[e.addproperty_input.value]&&e.editors[e.addproperty_input.value].disable();var b=e.editors[e.addproperty_input.value].key,P=e.editors[e.addproperty_input.value].type,I=e.editors[e.addproperty_input.value].path;e.onChange(!0,!1,{event:"add",data:{key:b,type:P,path:I}})}}),this.addproperty_input.addEventListener("input",function(d){d.target.previousSibling.previousSibling.childNodes.forEach(function(b){var P=b.innerText,I=d.target.value;e.options.case_sensitive_property_search||e.jsoneditor.options.case_sensitive_property_search||(P=P.toLowerCase(),I=I.toLowerCase()),P.includes(I)?b.style.display="":b.style.display="none"})}),this.addproperty_holder.appendChild(this.addproperty_list),this.addproperty_holder.appendChild(this.addproperty_input_label),this.addproperty_holder.appendChild(this.addproperty_input),this.addproperty_holder.appendChild(this.addproperty_add);var a=document.createElement("div");a.style.clear="both",this.addproperty_holder.appendChild(a),this.onOutsideModalClickListener=this.onOutsideModalClick.bind(this),document.addEventListener("click",this.onOutsideModalClickListener,!0),this.schema.description&&(this.description=this.theme.getDescription(this.translateProperty(this.schema.description)),this.container.appendChild(this.description)),this.error_holder=document.createElement("div"),this.container.appendChild(this.error_holder),this.editor_holder=this.theme.getIndentedPanel(),this.container.appendChild(this.editor_holder),this.row_container=this.theme.getGridContainer(),t?(this.tabs_holder=this.theme.getTopTabHolder(this.getValidId(this.translateProperty(this.schema.title))),this.tabPanesContainer=this.theme.getTopTabContentHolder(this.tabs_holder),this.editor_holder.appendChild(this.tabs_holder)):(this.tabs_holder=this.theme.getTabHolder(this.getValidId(this.translateProperty(this.schema.title))),this.tabPanesContainer=this.theme.getTabContentHolder(this.tabs_holder),this.editor_holder.appendChild(this.row_container)),Object.values(this.editors).forEach(function(d){var b=e.theme.getTabContent(),P=e.theme.getGridColumn(),I=!(!d.schema||d.schema.type!=="object"&&d.schema.type!=="array");if(b.isObjOrArray=I,t){if(I){var q=e.theme.getGridContainer();q.appendChild(P),b.appendChild(q),e.tabPanesContainer.appendChild(b),e.row_container=q}else e.row_container_basic===void 0&&(e.row_container_basic=e.theme.getGridContainer(),b.appendChild(e.row_container_basic),e.tabPanesContainer.childElementCount===0?e.tabPanesContainer.appendChild(b):e.tabPanesContainer.insertBefore(b,e.tabPanesContainer.childNodes[1])),e.row_container_basic.appendChild(P);e.addRow(d,e.tabs_holder,b),b.id=e.getValidId(d.schema.title)}else e.row_container.appendChild(P);d.setContainer(P),d.build(),d.postBuild(),d.setOptInCheckbox(d.header)}),this.rows[0]&&x(this.rows[0].tab,"click"),this.collapsed=!1,this.collapse_control=this.getButton("","collapse","button_collapse"),this.collapse_control.classList.add("json-editor-btntype-toggle"),this.title.insertBefore(this.collapse_control,this.title.childNodes[0]),this.collapse_control.addEventListener("click",function(d){d.preventDefault(),d.stopPropagation(),e.collapsed?(e.editor_holder.style.display="",e.collapsed=!1,e.setButtonText(e.collapse_control,"","collapse","button_collapse")):(e.editor_holder.style.display="none",e.collapsed=!0,e.setButtonText(e.collapse_control,"","expand","button_expand"))}),this.options.collapsed&&x(this.collapse_control,"click"),this.schema.options&&this.schema.options.disable_collapse!==void 0?this.schema.options.disable_collapse&&(this.collapse_control.style.display="none"):this.jsoneditor.options.disable_collapse&&(this.collapse_control.style.display="none"),this.editjson_control=this.getButton("JSON","edit","button_edit_json"),this.editjson_control.classList.add("json-editor-btntype-editjson"),this.editjson_control.addEventListener("click",function(d){d.preventDefault(),d.stopPropagation(),e.toggleEditJSON()}),this.controls.appendChild(this.editjson_control),this.controls.insertBefore(this.editjson_holder,this.controls.childNodes[0]),this.schema.options&&this.schema.options.disable_edit_json!==void 0?this.schema.options.disable_edit_json&&(this.editjson_control.style.display="none"):this.jsoneditor.options.disable_edit_json&&(this.editjson_control.style.display="none"),this.addproperty_button=this.getButton("properties","edit_properties","button_object_properties"),this.addproperty_button.classList.add("json-editor-btntype-properties"),this.addproperty_button.addEventListener("click",function(d){d.preventDefault(),d.stopPropagation(),e.toggleAddProperty()}),this.controls.appendChild(this.addproperty_button),this.controls.insertBefore(this.addproperty_holder,this.controls.childNodes[1]),this.refreshAddProperties(),this.deactivateNonRequiredProperties(!1)}this.options.table_row?(this.editor_holder=this.container,this.property_order.forEach(function(d){e.editor_holder.appendChild(e.editors[d].container)})):(this.layoutEditors(),this.layoutEditors()),(this.schema.readOnly||this.schema.readonly)&&this.disable()}},{key:"deactivateNonRequiredProperties",value:function(e){var t=this,a=this.jsoneditor.options.show_opt_in,d=this.options.show_opt_in!==void 0,b=d&&this.options.show_opt_in===!0,P=d&&this.options.show_opt_in===!1;(b||!P&&a||!d&&a)&&Object.entries(this.editors).forEach(function(I){var q=xo(I,2),K=q[0],ae=q[1];t.isRequiredObject(ae)||t.editors[K].deactivate(),e&&typeof t.editors[K].deactivateNonRequiredProperties=="function"&&t.editors[K].deactivateNonRequiredProperties(e)})}},{key:"showEditJSON",value:function(){this.editjson_holder&&(this.hideAddProperty(),this.editjson_holder.style.left="".concat(this.editjson_control.offsetLeft,"px"),this.editjson_holder.style.top="".concat(this.editjson_control.offsetTop+this.editjson_control.offsetHeight,"px"),this.editjson_textarea.value=JSON.stringify(this.getValue(),null,2),this.disable(),this.editjson_holder.style.display="",this.editjson_control.disabled=!1,this.editing_json=!0)}},{key:"hideEditJSON",value:function(){this.editjson_holder&&this.editing_json&&(this.editjson_holder.style.display="none",this.enable(),this.editing_json=!1)}},{key:"copyJSON",value:function(){this.editjson_holder&&navigator.clipboard.writeText(this.editjson_textarea.value).catch(function(e){return window.alert(e)})}},{key:"saveJSON",value:function(){if(this.editjson_holder)try{var e=JSON.parse(this.editjson_textarea.value);this.setValue(e),this.hideEditJSON(),this.onChange(!0)}catch(t){throw window.alert("invalid JSON"),t}}},{key:"toggleEditJSON",value:function(){this.editing_json?this.hideEditJSON():this.showEditJSON()}},{key:"insertPropertyControlUsingPropertyOrder",value:function(e,t,a){var d;this.schema.properties[e]&&(d=this.schema.properties[e].propertyOrder),typeof d!="number"&&(d=1e3),t.propertyOrder=d;for(var b=0;b<a.childNodes.length;b++){var P=a.childNodes[b];if(t.propertyOrder<P.propertyOrder){this.addproperty_list.insertBefore(t,P),t=null;break}}t&&this.addproperty_list.appendChild(t)}},{key:"addPropertyCheckbox",value:function(e){var t,a=this,d=this.theme.getCheckbox();t=this.schema.properties[e]&&this.schema.properties[e].title?this.schema.properties[e].title:e;var b=this.theme.getCheckboxLabel(t),P=this.theme.getFormControl(b,d,null,null,this.path+"-"+e);return P.style.paddingBottom=P.style.marginBottom=P.style.paddingTop=P.style.marginTop=0,P.style.height="auto",this.insertPropertyControlUsingPropertyOrder(e,P,this.addproperty_list),d.checked=e in this.editors,d.addEventListener("change",function(){d.checked?a.addObjectProperty(e):a.removeObjectProperty(e),a.onChange(!0)}),this.addproperty_checkboxes[e]=d,d}},{key:"showAddProperty",value:function(){this.addproperty_holder&&(this.hideEditJSON(),this.addproperty_holder.style.left="".concat(this.addproperty_button.offsetLeft,"px"),this.addproperty_holder.style.top="".concat(this.addproperty_button.offsetTop+this.addproperty_button.offsetHeight,"px"),this.disable(),this.adding_property=!0,this.addproperty_button.disabled=!1,this.addproperty_holder.style.display="",this.refreshAddProperties())}},{key:"hideAddProperty",value:function(){this.addproperty_holder&&this.adding_property&&(this.addproperty_holder.style.display="none",this.enable(),this.adding_property=!1)}},{key:"toggleAddProperty",value:function(){this.adding_property?this.hideAddProperty():this.showAddProperty()}},{key:"removeObjectProperty",value:function(e){if(this.editors[e]){var t;if((t=this.editors[e].schema)!==null&&t!==void 0&&(t=t.options)!==null&&t!==void 0&&t.dependencies)return;this.editors[e].unregister(),delete this.editors[e],this.refreshValue(),this.layoutEditors()}}},{key:"getSchemaOnMaxDepth",value:function(e){return Object.keys(e).reduce(function(t,a){switch(a){case"$ref":return t;case"properties":case"items":return ir(ir({},t),{},os({},a,{}));case"additionalProperties":case"propertyNames":return ir(ir({},t),{},os({},a,!0));default:return ir(ir({},t),{},os({},a,e[a]))}},{})}},{key:"addObjectProperty",value:function(e,t){if(!this.editors[e]){if(this.cached_editors[e]){if(this.editors[e]=this.cached_editors[e],t)return;this.editors[e].register()}else{if(!(this.canHaveAdditionalProperties()||this.schema.properties&&this.schema.properties[e]||this.schema.patternProperties&&Object.keys(this.schema.patternProperties).find(function(I){return new RegExp(I).test(e)})))return;var a=this.getPropertySchema(e);typeof a.propertyOrder!="number"&&(a.propertyOrder=Object.keys(this.editors).length+1e3);var d=this.jsoneditor.getEditorClass(a),b=this.jsoneditor.options.max_depth;if(this.editors[e]=this.jsoneditor.createEditor(d,{jsoneditor:this.jsoneditor,schema:b&&this.currentDepth>=b?this.getSchemaOnMaxDepth(a):a,path:"".concat(this.path,".").concat(e),parent:this},this.currentDepth+1),this.editors[e].preBuild(),!t){var P=this.theme.getChildEditorHolder();this.editor_holder.appendChild(P),this.editors[e].setContainer(P),this.editors[e].build(),this.editors[e].postBuild(),this.editors[e].setOptInCheckbox(d.header),this.editors[e].activate()}this.cached_editors[e]=this.editors[e]}t||(this.refreshValue(),this.layoutEditors())}}},{key:"onOutsideModalClick",value:function(e){var t=e.path||e.composedPath&&e.composedPath();this.addproperty_holder&&!this.addproperty_holder.contains(t[0])&&this.adding_property&&(e.preventDefault(),e.stopPropagation(),this.toggleAddProperty())}},{key:"onChildEditorChange",value:function(e,t){this.refreshValue(),An(Qr(r.prototype),"onChildEditorChange",this).call(this,e,t)}},{key:"canHaveAdditionalProperties",value:function(){return typeof this.schema.additionalProperties=="boolean"?this.schema.additionalProperties:oi(this.schema.additionalProperties)==="object"&&this.schema.additionalProperties!==null||(typeof this.options.no_additional_properties=="boolean"?!this.options.no_additional_properties:typeof this.jsoneditor.options.no_additional_properties!="boolean"||!this.jsoneditor.options.no_additional_properties)}},{key:"destroy",value:function(){Object.values(this.cached_editors).forEach(function(e){return e.destroy()}),this.editor_holder&&(this.editor_holder.innerHTML=""),this.title&&this.title.parentNode&&this.title.parentNode.removeChild(this.title),this.error_holder&&this.error_holder.parentNode&&this.error_holder.parentNode.removeChild(this.error_holder),this.editors=null,this.cached_editors=null,this.editor_holder&&this.editor_holder.parentNode&&this.editor_holder.parentNode.removeChild(this.editor_holder),this.editor_holder=null,document.removeEventListener("click",this.onOutsideModalClickListener,!0),An(Qr(r.prototype),"destroy",this).call(this)}},{key:"getValue",value:function(){if(this.dependenciesFulfilled){var e=An(Qr(r.prototype),"getValue",this).call(this);return e&&(this.jsoneditor.options.remove_empty_properties||this.options.remove_empty_properties)&&Object.keys(e).forEach(function(t){var a;((a=e[t])===void 0||a===""||a===Object(a)&&Object.keys(a).length===0&&a.constructor===Object)&&delete e[t]}),e&&(this.jsoneditor.options.remove_false_properties||this.options.remove_false_properties)&&Object.keys(e).forEach(function(t){e[t]===!1&&delete e[t]}),e}}},{key:"refreshValue",value:function(){var e=this;this.value={},this.editors&&(Object.keys(this.editors).forEach(function(t){e.editors[t].isActive()&&(e.editors[t].refreshValue(),e.value[t]=e.editors[t].getValue())}),Object.keys(this.editors).forEach(function(t){e.editors[t].isActive()&&e.activateDependentRequired(e.editors[t].key)}),this.adding_property&&this.refreshAddProperties())}},{key:"activateDependentRequired",value:function(e){var t=this;this.getDependentRequired(e).forEach(function(a){var d;Object.entries(t.cached_editors).forEach(function(b){var P=xo(b,2),I=(P[0],P[1]);I.key===a&&(d=I)}),d&&!d.isActive()&&d.activate()})}},{key:"getDependentRequired",value:function(e){return this.schema.dependentRequired&&E(this.schema.dependentRequired,e)?this.schema.dependentRequired[e]:[]}},{key:"refreshAddProperties",value:function(){var e=this;if(this.options.disable_properties||this.options.disable_properties!==!1&&this.jsoneditor.options.disable_properties)this.addproperty_button.style.display="none";else{var t,a=0,d=!1;Object.keys(this.editors).forEach(function(b){return a++}),t=this.canHaveAdditionalProperties()&&!(this.schema.maxProperties!==void 0&&a>=this.schema.maxProperties),this.addproperty_checkboxes&&(this.addproperty_list.innerHTML=""),this.addproperty_checkboxes={},Object.keys(this.cached_editors).forEach(function(b){e.addPropertyCheckbox(b),e.isRequiredObject(e.cached_editors[b])&&b in e.editors&&(e.addproperty_checkboxes[b].disabled=!0),e.schema.minProperties!==void 0&&a<=e.schema.minProperties?(e.addproperty_checkboxes[b].disabled=e.addproperty_checkboxes[b].checked,e.addproperty_checkboxes[b].checked||(d=!0)):b in e.editors?d=!0:t||E(e.schema.properties,b)?(e.addproperty_checkboxes[b].disabled=!1,d=!0):e.addproperty_checkboxes[b].disabled=!0}),this.canHaveAdditionalProperties()&&(d=!0),Object.keys(this.schema.properties).forEach(function(b){e.cached_editors[b]||(d=!0,e.addPropertyCheckbox(b))}),d?this.canHaveAdditionalProperties()?this.addproperty_add.disabled=!t:(this.addproperty_add.style.display="none",this.addproperty_input.style.display="none"):(this.hideAddProperty(),this.addproperty_button.style.display="none")}}},{key:"isRequiredObject",value:function(e){if(e)return typeof e.schema.required=="boolean"?e.schema.required:Array.isArray(this.schema.required)?this.schema.required.includes(e.key):!!this.jsoneditor.options.required_by_default}},{key:"setValue",value:function(e,t){var a=this;(oi(e=(e=this.applyConstFilter(e))||{})!=="object"||Array.isArray(e))&&(e={}),Object.entries(this.cached_editors).forEach(function(d){var b=xo(d,2),P=b[0],I=b[1];e[P]!==void 0?(a.addObjectProperty(P),I.setValue(e[P],t),I.activate(),a.disabled&&I.disable()):t||a.isRequiredObject(I)?I.setValue(I.getDefault(),t):a.jsoneditor.options.show_opt_in||a.options.show_opt_in?I.deactivate():a.removeObjectProperty(P)}),Object.entries(e).forEach(function(d){var b=xo(d,2),P=b[0],I=b[1];a.cached_editors[P]||(a.addObjectProperty(P),a.editors[P]&&a.editors[P].setValue(I,t,!!a.editors[P].template))}),this.refreshValue(),this.layoutEditors(),this.onChange()}},{key:"showValidationErrors",value:function(e){var t=this,a=[],d=[];e.forEach(function(b){b.path===t.path?a.push(b):d.push(b)}),this.error_holder&&(a.length?(this.error_holder.innerHTML="",this.error_holder.style.display="",a.forEach(function(b){b.errorcount&&b.errorcount>1&&(b.message+=" (".concat(b.errorcount," errors)")),t.error_holder.appendChild(t.theme.getErrorMessage(b.message))})):this.error_holder.style.display="none"),this.options.table_row&&(a.length?this.theme.addTableRowError(this.container):this.theme.removeTableRowError(this.container)),Object.values(this.editors).forEach(function(b){b.showValidationErrors(d)})}}])&&cy(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G);function Co(s){return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Co(s)}function dy(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,hy(u.key),u)}}function hy(s){var r=function(n,u){if(Co(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Co(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Co(r)=="symbol"?r:r+""}function py(s,r,n){return r=ai(r),function(u,e){if(e&&(Co(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,$f()?Reflect.construct(r,n||[],ai(s).constructor):r.apply(s,n))}function $f(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($f=function(){return!!s})()}function jo(){return jo=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=ai(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},jo.apply(this,arguments)}function ai(s){return ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ai(s)}function nl(s,r){return nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},nl(s,r)}Yf.rules={".je-object__title":"display:inline-block",".je-object__controls":"margin:0%200%200%2010px",".je-object__container":"position:relative",".je-object__property-checkbox":"margin:0;height:auto",".property-selector":"width:295px;max-height:160px;padding:5px%200;overflow-y:auto;overflow-x:hidden;padding-left:5px",".property-selector-input":"width:220px;margin-bottom:0;display:inline-block",".json-editor-btntype-toggle":"margin:0%2010px%200%200",".je-edit-json--textarea":"height:170px;width:300px;display:block"};var my=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),py(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nl(e,t)}(r,s),n=r,(u=[{key:"preBuild",value:function(){jo(ai(r.prototype),"preBuild",this).call(this)}},{key:"build",value:function(){var e=this;this.label="",this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),this.radioContainer=document.createElement("div"),this.radioGroup=[];for(var t=function(K){e.setValue(K.currentTarget.value),e.onChange(!0),e.radioGroup.forEach(function(ae){ae.checked=ae.value===e.getValue()})},a=0;a<this.enum_values.length;a++){var d={id:"".concat(this.formname,"[").concat(a,"]"),value:this.enum_values[a]};this.jsoneditor.options.use_name_attributes&&(d.name=this.formname),this.input=this.theme.getFormRadio(d),this.setInputAttributes(["id","value","name"]),this.input.addEventListener("change",t,!1),this.radioGroup.push(this.input);var b=this.theme.getFormRadioLabel(this.enum_display[a]);b.htmlFor=this.input.id;var P=this.theme.getFormRadioControl(b,this.input,!(this.options.layout!=="horizontal"&&!this.options.compact));this.radioContainer.appendChild(P)}if(this.schema.readOnly||this.schema.readonly){this.disable(!0);for(var I=0;I<this.radioGroup.length;I++)this.radioGroup[I].disabled=!0;this.radioContainer.classList.add("readonly")}var q=this.theme.getContainer();q.appendChild(this.radioContainer),q.dataset.containerFor="radio",this.input=q,this.control=this.theme.getFormControl(this.label,q,this.description,this.infoButton),this.container.appendChild(this.control),window.requestAnimationFrame(function(){e.input.parentNode&&e.afterInputReady()})}},{key:"enable",value:function(){if(!this.always_disabled){for(var e=0;e<this.radioGroup.length;e++)this.radioGroup[e].disabled=!1;this.radioContainer.classList.remove("readonly"),jo(ai(r.prototype),"enable",this).call(this)}}},{key:"disable",value:function(e){e&&(this.always_disabled=!0);for(var t=0;t<this.radioGroup.length;t++)this.radioGroup[t].disabled=!0;this.radioContainer.classList.add("readonly"),jo(ai(r.prototype),"disable",this).call(this)}},{key:"destroy",value:function(){this.radioContainer.parentNode&&this.radioContainer.parentNode.parentNode&&this.radioContainer.parentNode.parentNode.removeChild(this.radioContainer.parentNode),this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),jo(ai(r.prototype),"destroy",this).call(this)}},{key:"getNumColumns",value:function(){return 2}},{key:"setValue",value:function(e){typeof(e=this.applyConstFilter(e))!="string"&&(e=String(e));for(var t=0;t<this.radioGroup.length;t++){if(this.radioGroup[t].value===e){this.radioGroup[t].checked=!0;break}this.radioGroup[t].checked=!1}this.value=e,this.onChange()}}])&&dy(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Hi);function Oo(s){return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Oo(s)}function gy(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,yy(u.key),u)}}function yy(s){var r=function(n,u){if(Oo(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Oo(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Oo(r)=="symbol"?r:r+""}function vy(s,r,n){return r=_n(r),function(u,e){if(e&&(Oo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Jf()?Reflect.construct(r,n||[],_n(s).constructor):r.apply(s,n))}function Jf(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jf=function(){return!!s})()}function wi(){return wi=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=_n(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},wi.apply(this,arguments)}function _n(s){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_n(s)}function il(s,r){return il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},il(s,r)}var by=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),vy(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&il(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t,a){e=this.applyConstFilter(e);var d=wi(_n(r.prototype),"setValue",this).call(this,e,t,a);d!==void 0&&d.changed&&this.sceditor_instance&&this.sceditor_instance.val(d.value)}},{key:"build",value:function(){this.options.format="textarea",wi(_n(r.prototype),"build",this).call(this),this.input_type=this.schema.format,this.input.setAttribute("data-schemaformat",this.input_type)}},{key:"afterInputReady",value:function(){var e=this;if(window.sceditor){var t=this.expandCallbacks("sceditor",y({},{format:this.input_type,emoticonsEnabled:!1,width:"100%",height:300,readOnly:this.schema.readOnly||this.schema.readonly||this.schema.template},this.defaults.options.sceditor||{},this.options.sceditor||{},{element:this.input})),a=window.sceditor.instance(this.input);a===void 0&&window.sceditor.create(this.input,t),this.sceditor_instance=a||window.sceditor.instance(this.input),this.sceditor_instance.blur(function(){e.value=e.sceditor_instance.val(),e.sceditor_instance.updateOriginal(),e.is_dirty=!0,e.onChange(!0)}),this.theme.afterInputReady(this.input)}else wi(_n(r.prototype),"afterInputReady",this).call(this)}},{key:"getNumColumns",value:function(){return 6}},{key:"enable",value:function(){!this.always_disabled&&this.sceditor_instance&&this.sceditor_instance.readOnly(!1),wi(_n(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(e){this.sceditor_instance&&this.sceditor_instance.readOnly(!0),wi(_n(r.prototype),"disable",this).call(this,e)}},{key:"destroy",value:function(){this.sceditor_instance&&(this.sceditor_instance.destroy(),this.sceditor_instance=null),wi(_n(r.prototype),"destroy",this).call(this)}}])&&gy(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le);function Eo(s){return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Eo(s)}function wy(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,_y(u.key),u)}}function _y(s){var r=function(n,u){if(Eo(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Eo(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Eo(r)=="symbol"?r:r+""}function ky(s,r,n){return r=Dn(r),function(u,e){if(e&&(Eo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Kf()?Reflect.construct(r,n||[],Dn(s).constructor):r.apply(s,n))}function Kf(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kf=function(){return!!s})()}function Ui(){return Ui=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Dn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Ui.apply(this,arguments)}function Dn(s){return Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dn(s)}function ol(s,r){return ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},ol(s,r)}var xy=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),ky(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ol(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t){if(e=this.applyConstFilter(e),this.select2_instance){t?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0);var a=this.updateValue(e);this.input.value=a,this.select2v4?this.select2_instance.val(a).trigger("change"):this.select2_instance.select2("val",a),this.onChange(!0)}else Ui(Dn(r.prototype),"setValue",this).call(this,e,t)}},{key:"afterInputReady",value:function(){var e=this;if(window.jQuery&&window.jQuery.fn&&window.jQuery.fn.select2&&!this.select2_instance){var t=this.expandCallbacks("select2",y({},this.defaults.options.select2||{},this.options.select2||{}));this.newEnumAllowed=t.tags=!!t.tags&&this.schema.type==="string",this.select2_instance=window.jQuery(this.input).select2(t),this.select2v4=E(this.select2_instance.select2,"amd"),this.selectChangeHandler=function(){var a=e.select2v4?e.select2_instance.val():e.select2_instance.select2("val");e.updateValue(a),e.onChange(!0)},this.select2_instance.on("change",this.selectChangeHandler),this.select2_instance.on("select2-blur",this.selectChangeHandler)}Ui(Dn(r.prototype),"afterInputReady",this).call(this)}},{key:"updateValue",value:function(e){var t=this.enum_values[0];return e=this.typecast(e||""),this.enum_values.includes(e)?t=e:this.newEnumAllowed&&(t=this.addNewOption(e)?e:t),this.value=t,t}},{key:"addNewOption",value:function(e){var t,a=this.typecast(e),d=!1;return this.enum_values.includes(a)||a===""||(this.enum_options.push("".concat(a)),this.enum_display.push("".concat(a)),this.enum_values.push(a),this.schema.enum.push(a),(t=this.input.querySelector('option[value="'.concat(a,'"]')))?t.removeAttribute("data-select2-tag"):this.select2_instance.append(new Option(a,a,!1,!1)).trigger("change"),d=!0),d}},{key:"enable",value:function(){this.always_disabled||this.select2_instance&&(this.select2v4?this.select2_instance.prop("disabled",!1):this.select2_instance.select2("enable",!0)),Ui(Dn(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(e){this.select2_instance&&(this.select2v4?this.select2_instance.prop("disabled",!0):this.select2_instance.select2("enable",!1)),Ui(Dn(r.prototype),"disable",this).call(this,e)}},{key:"destroy",value:function(){this.select2_instance&&(this.select2_instance.select2("destroy"),this.select2_instance=null),Ui(Dn(r.prototype),"destroy",this).call(this)}}])&&wy(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Hi);function So(s){return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},So(s)}function Cy(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,jy(u.key),u)}}function jy(s){var r=function(n,u){if(So(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(So(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return So(r)=="symbol"?r:r+""}function Oy(s,r,n){return r=kn(r),function(u,e){if(e&&(So(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Qf()?Reflect.construct(r,n||[],kn(s).constructor):r.apply(s,n))}function Qf(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qf=function(){return!!s})()}function _i(){return _i=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=kn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},_i.apply(this,arguments)}function kn(s){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kn(s)}function al(s,r){return al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},al(s,r)}var Ey=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Oy(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&al(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t){if(e=this.applyConstFilter(e),this.selectize_instance){t?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0);var a=this.updateValue(e);this.input.value=a,this.selectize_instance.clear(!0),this.selectize_instance.setValue(a),this.onChange(!0)}else _i(kn(r.prototype),"setValue",this).call(this,e,t)}},{key:"afterInputReady",value:function(){var e=this;if(window.jQuery&&window.jQuery.fn&&window.jQuery.fn.selectize&&!this.selectize_instance){var t=this.expandCallbacks("selectize",y({},this.defaults.options.selectize||{},this.options.selectize||{}));this.newEnumAllowed=t.create=!!t.create&&this.schema.type==="string",this.selectize_instance=window.jQuery(this.input).selectize(t)[0].selectize,this.control.removeEventListener("change",this.multiselectChangeHandler),this.multiselectChangeHandler=function(a){e.updateValue(a),e.onChange(!0)},this.selectize_instance.on("change",this.multiselectChangeHandler)}_i(kn(r.prototype),"afterInputReady",this).call(this)}},{key:"updateValue",value:function(e){var t=this.enum_values[0];return e=this.typecast(e||""),this.enum_values.includes(e)?t=e:this.newEnumAllowed&&(t=this.addNewOption(e)?e:t),this.value=t,t}},{key:"addNewOption",value:function(e){var t=this.typecast(e),a=!1;return this.enum_values.includes(t)||t===""||(this.enum_options.push("".concat(t)),this.enum_display.push("".concat(t)),this.enum_values.push(t),this.schema.enum.push(t),this.selectize_instance.addItem(t),this.selectize_instance.refreshOptions(!1),a=!0),a}},{key:"onWatchedFieldChange",value:function(){var e=this;_i(kn(r.prototype),"onWatchedFieldChange",this).call(this),this.selectize_instance&&(this.selectize_instance.clear(!0),this.selectize_instance.clearOptions(!0),this.enum_options.forEach(function(t,a){e.selectize_instance.addOption({value:t,text:e.enum_display[a]})}),this.selectize_instance.addItem("".concat(this.value),!0))}},{key:"enable",value:function(){!this.always_disabled&&this.selectize_instance&&this.selectize_instance.unlock(),_i(kn(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(e){this.selectize_instance&&this.selectize_instance.lock(),_i(kn(r.prototype),"disable",this).call(this,e)}},{key:"destroy",value:function(){this.selectize_instance&&(this.selectize_instance.destroy(),this.selectize_instance=null),_i(kn(r.prototype),"destroy",this).call(this)}}])&&Cy(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Hi);function Fo(s){return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fo(s)}function Sy(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Fy(u.key),u)}}function Fy(s){var r=function(n,u){if(Fo(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Fo(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Fo(r)=="symbol"?r:r+""}function Py(s,r,n){return r=as(r),function(u,e){if(e&&(Fo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Zf()?Reflect.construct(r,n||[],as(s).constructor):r.apply(s,n))}function Zf(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zf=function(){return!!s})()}function as(s){return as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},as(s)}function sl(s,r){return sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},sl(s,r)}var Ty=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Py(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sl(e,t)}(r,s),n=r,(u=[{key:"build",value:function(){var e=this;this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description)));var t=this.formname.replace(/\W/g,"");if(typeof SignaturePad=="function"){this.input=this.theme.getFormInputField("hidden"),this.container.appendChild(this.input);var a=document.createElement("div");a.classList.add("signature-container");var d=document.createElement("canvas");this.jsoneditor.options.use_name_attributes&&d.setAttribute("name",t),d.classList.add("signature"),a.appendChild(d),this.signaturePad=new window.SignaturePad(d),this.signaturePad.onEnd=function(){e.signaturePad.isEmpty()?e.input.value="":e.input.value=e.signaturePad.toDataURL(),e.is_dirty=!0,e.refreshValue(),e.watch_listener(),e.jsoneditor.notifyWatchers(e.path),e.parent?e.parent.onChildEditorChange(e):e.jsoneditor.onChange()};var b=document.createElement("div"),P=document.createElement("button");P.classList.add("tiny","button"),P.innerHTML="Clear signature",b.appendChild(P),a.appendChild(b),this.options.compact&&this.container.setAttribute("class","".concat(this.container.getAttribute("class")," compact")),(this.schema.readOnly||this.schema.readonly)&&(this.disable(!0),Array.from(this.inputs).forEach(function(q){d.setAttribute("readOnly","readOnly"),q.disabled=!0})),P.addEventListener("click",function(q){q.preventDefault(),q.stopPropagation(),e.signaturePad.clear(),e.signaturePad.strokeEnd()}),this.control=this.theme.getFormControl(this.label,a,this.description),this.container.appendChild(this.control),this.refreshValue(),d.width=a.offsetWidth,this.options&&this.options.canvas_height?d.height=this.options.canvas_height:d.height="300"}else{var I=document.createElement("p");I.innerHTML="Signature pad is not available, please include SignaturePad from https://github.com/szimek/signature_pad",this.container.appendChild(I)}}},{key:"setValue",value:function(e){if(e=this.applyConstFilter(e),typeof SignaturePad=="function"){var t=this.sanitize(e);return this.value===t?void 0:(this.value=t,this.input.value=this.value,this.signaturePad.clear(),e&&e!==""&&this.signaturePad.fromDataURL(e),this.watch_listener(),this.jsoneditor.notifyWatchers(this.path),!1)}}},{key:"destroy",value:function(){this.signaturePad.off(),delete this.signaturePad}}])&&Sy(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le);function Po(s){return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Po(s)}function Ly(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Ay(u.key),u)}}function Ay(s){var r=function(n,u){if(Po(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Po(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Po(r)=="symbol"?r:r+""}function Dy(s,r,n){return r=xn(r),function(u,e){if(e&&(Po(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Xf()?Reflect.construct(r,n||[],xn(s).constructor):r.apply(s,n))}function Xf(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xf=function(){return!!s})()}function ki(){return ki=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=xn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},ki.apply(this,arguments)}function xn(s){return xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xn(s)}function ul(s,r){return ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},ul(s,r)}j(6031);var Iy=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Dy(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ul(e,t)}(r,s),n=r,(u=[{key:"setValue",value:function(e,t,a){e=this.applyConstFilter(e);var d=ki(xn(r.prototype),"setValue",this).call(this,e,t,a);d!==void 0&&d.changed&&this.simplemde_instance&&this.simplemde_instance.value(d.value)}},{key:"build",value:function(){this.options.format="textarea",ki(xn(r.prototype),"build",this).call(this),this.input_type=this.schema.format,this.input.setAttribute("data-schemaformat",this.input_type)}},{key:"afterInputReady",value:function(){var e,t=this;window.SimpleMDE?(e=this.expandCallbacks("simplemde",y({},{height:300},this.defaults.options.simplemde||{},this.options.simplemde||{},{element:this.input,forceSync:!0})),this.simplemde_instance=new window.SimpleMDE(e),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&(this.simplemde_instance.codemirror.options.readOnly=!0),this.simplemde_instance.codemirror.on("change",function(){t.value=t.simplemde_instance.value(),t.is_dirty=!0,t.onChange(!0)}),e.autorefresh&&this.startListening(this.simplemde_instance.codemirror,this.simplemde_instance.codemirror.state.autoRefresh={delay:250}),this.theme.afterInputReady(this.input)):ki(xn(r.prototype),"afterInputReady",this).call(this)}},{key:"getNumColumns",value:function(){return 6}},{key:"enable",value:function(){!this.always_disabled&&this.simplemde_instance&&(this.simplemde_instance.codemirror.options.readOnly=!1),ki(xn(r.prototype),"enable",this).call(this)}},{key:"disable",value:function(e){this.simplemde_instance&&(this.simplemde_instance.codemirror.options.readOnly=!0),ki(xn(r.prototype),"disable",this).call(this,e)}},{key:"destroy",value:function(){this.simplemde_instance&&(this.simplemde_instance.toTextArea(),this.simplemde_instance=null),ki(xn(r.prototype),"destroy",this).call(this)}},{key:"startListening",value:function(e,t){var a=this,d=function b(){e.display.wrapper.offsetHeight?(a.stopListening(e,t),e.display.lastWrapHeight!==e.display.wrapper.clientHeight&&e.refresh()):t.timeout=window.setTimeout(b,t.delay)};t.timeout=window.setTimeout(d,t.delay),t.hurry=function(){window.clearTimeout(t.timeout),t.timeout=window.setTimeout(d,50)},e.on(window,"mouseup",t.hurry),e.on(window,"keyup",t.hurry)}},{key:"stopListening",value:function(e,t){window.clearTimeout(t.timeout),e.off(window,"mouseup",t.hurry),e.off(window,"keyup",t.hurry)}}])&&Ly(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le);function To(s){return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},To(s)}function My(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Ry(u.key),u)}}function Ry(s){var r=function(n,u){if(To(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(To(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return To(r)=="symbol"?r:r+""}function Ny(s,r,n){return r=Gi(r),function(u,e){if(e&&(To(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,ed()?Reflect.construct(r,n||[],Gi(s).constructor):r.apply(s,n))}function ed(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ed=function(){return!!s})()}function ss(){return ss=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Gi(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},ss.apply(this,arguments)}function Gi(s){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(s)}function ll(s,r){return ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},ll(s,r)}var td=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Ny(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ll(e,t)}(r,s),n=r,(u=[{key:"build",value:function(){var e=this;if(this.options.compact||(this.header=this.label=this.theme.getLabelLike(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),this.ratingContainer=document.createElement("div"),this.ratingContainer.classList.add("starrating"),this.schema.enum===void 0){var t=this.schema.maximum?this.schema.maximum:5;this.schema.exclusiveMaximum&&t--,this.enum_values=[];for(var a=0;a<t;a++)this.enum_values.push(a+1)}else this.enum_values=this.schema.enum;this.radioGroup=[];for(var d=function(ge){ge.preventDefault(),ge.stopPropagation(),e.setValue(ge.currentTarget.value),e.onChange(!0)},b=this.enum_values.length-1;b>-1;b--){var P=this.formname+(b+1),I=this.theme.getFormInputField("radio");I.name="".concat(this.formname,"[starrating]"),I.value=this.enum_values[b],I.id=P,I.addEventListener("change",d,!1),this.radioGroup.push(I);var q=document.createElement("label");q.htmlFor=P,q.title=this.enum_values[b],this.options.displayValue&&q.classList.add("starrating-display-enabled");var K=this.theme.getHiddenText("label");K.textContent=b,q.appendChild(K),this.ratingContainer.appendChild(I),this.ratingContainer.appendChild(q)}if(this.options.displayValue&&(this.displayRating=document.createElement("div"),this.displayRating.classList.add("starrating-display"),this.displayRating.innerText=this.enum_values[0],this.ratingContainer.appendChild(this.displayRating)),this.schema.readOnly||this.schema.readonly){this.disable(!0);for(var ae=0;ae<this.radioGroup.length;ae++)this.radioGroup[ae].disabled=!0;this.ratingContainer.classList.add("readonly")}var se=this.theme.getContainer();se.appendChild(this.ratingContainer),this.input=se,this.control=this.theme.getFormControl(this.label,se,this.description,this.infoButton),this.container.appendChild(this.control),this.refreshValue()}},{key:"enable",value:function(){if(!this.always_disabled){for(var e=0;e<this.radioGroup.length;e++)this.radioGroup[e].disabled=!1;this.ratingContainer.classList.remove("readonly"),this.disabled=!1}}},{key:"disable",value:function(e){e&&(this.always_disabled=!0);for(var t=0;t<this.radioGroup.length;t++)this.radioGroup[t].disabled=!0;this.ratingContainer.classList.add("readonly"),this.disabled=!0}},{key:"destroy",value:function(){this.ratingContainer.parentNode&&this.ratingContainer.parentNode.parentNode&&this.ratingContainer.parentNode.parentNode.removeChild(this.ratingContainer.parentNode),this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),ss(Gi(r.prototype),"destroy",this).call(this)}},{key:"getNumColumns",value:function(){return 2}},{key:"getValue",value:function(){if(this.dependenciesFulfilled)return this.schema.type==="integer"?this.value===""?0:parseInt(this.value):this.value}},{key:"setValue",value:function(e){e=this.applyConstFilter(e),this.value=e;for(var t=0;t<this.radioGroup.length;t++)if(this.radioGroup[t].value==="".concat(e)){this.radioGroup[t].checked=!0,this.value=e,this.options.displayValue&&(this.displayRating.innerHTML=this.value);break}ss(Gi(r.prototype),"setValue",this).call(this,this.value)}}])&&My(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le);function Lo(s){return Lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lo(s)}function By(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Hy(u.key),u)}}function Hy(s){var r=function(n,u){if(Lo(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Lo(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Lo(r)=="symbol"?r:r+""}function Vy(s,r,n){return r=xi(r),function(u,e){if(e&&(Lo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,rd()?Reflect.construct(r,n||[],xi(s).constructor):r.apply(s,n))}function rd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rd=function(){return!!s})()}function _a(){return _a=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=xi(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},_a.apply(this,arguments)}function xi(s){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xi(s)}function cl(s,r){return cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},cl(s,r)}td.rules={".starrating":"direction:rtl;display:inline-block;white-space:nowrap",".starrating > input":"display:none",".starrating > label:before":"content:'%5C2606';margin:1px;font-size:18px;font-style:normal;font-weight:400;line-height:1;font-family:'Arial';display:inline-block",".starrating > label":"color:%23888;cursor:pointer;margin:8px%200%202px%200",".starrating > label.starrating-display-enabled":"margin:1px%200%200%200",".starrating > input:checked ~ label":"color:%23ffca08",".starrating:not(.readonly) > input:hover ~ label":"color:%23ffca08",".starrating > input:checked ~ label:before":"content:'%5C2605';text-shadow:0%200%201px%20rgba(0%2C20%2C20%2C1)",".starrating:not(.readonly) > input:hover ~ label:before":"content:'%5C2605';text-shadow:0%200%201px%20rgba(0%2C20%2C20%2C1)",".starrating .starrating-display":"position:relative;direction:rtl;text-align:center;font-size:10px;line-height:0px"};var qy=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Vy(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cl(e,t)}(r,s),n=r,(u=[{key:"build",value:function(){_a(xi(r.prototype),"build",this).call(this),this.input.setAttribute("type","number"),this.input.getAttribute("step")||this.input.setAttribute("step","1");var e=this.theme.getStepperButtons(this.input);this.control.appendChild(e),this.stepperDown=this.control.querySelector(".stepper-down"),this.stepperUp=this.control.querySelector(".stepper-up")}},{key:"enable",value:function(){_a(xi(r.prototype),"enable",this).call(this),this.stepperDown.removeAttribute("disabled"),this.stepperUp.removeAttribute("disabled")}},{key:"disable",value:function(){_a(xi(r.prototype),"disable",this).call(this),this.stepperDown.setAttribute("disabled",!0),this.stepperUp.setAttribute("disabled",!0)}}])&&By(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(vo);function Ao(s){return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ao(s)}function zy(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Wy(u.key),u)}}function Wy(s){var r=function(n,u){if(Ao(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Ao(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Ao(r)=="symbol"?r:r+""}function Uy(s,r,n){return r=In(r),function(u,e){if(e&&(Ao(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,nd()?Reflect.construct(r,n||[],In(s).constructor):r.apply(s,n))}function nd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nd=function(){return!!s})()}function Yi(){return Yi=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=In(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Yi.apply(this,arguments)}function In(s){return In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},In(s)}function fl(s,r){return fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},fl(s,r)}var Gy=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Uy(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fl(e,t)}(r,s),n=r,u=[{key:"register",value:function(){if(Yi(In(r.prototype),"register",this).call(this),this.rows)for(var e=0;e<this.rows.length;e++)this.rows[e].register()}},{key:"unregister",value:function(){if(Yi(In(r.prototype),"unregister",this).call(this),this.rows)for(var e=0;e<this.rows.length;e++)this.rows[e].unregister()}},{key:"getNumColumns",value:function(){return Math.max(Math.min(12,this.width),3)}},{key:"preBuild",value:function(){var e=this.jsoneditor.expandRefs(this.schema.items||{});this.item_title=e.title||"row",this.item_default=e.default||null,this.item_has_child_editors=e.properties||e.items,this.width=12,this.array_controls_top=this.options.array_controls_top||this.jsoneditor.options.array_controls_top,Yi(In(r.prototype),"preBuild",this).call(this)}},{key:"build",value:function(){this.tableContainer=this.theme.getTableContainer(),this.table=this.theme.getTable(),this.tableContainer.appendChild(this.table),this.container.appendChild(this.tableContainer),this.thead=this.theme.getTableHead(),this.table.appendChild(this.thead),this.header_row=this.theme.getTableRow(),this.thead.appendChild(this.header_row),this.row_holder=this.theme.getTableBody(),this.table.appendChild(this.row_holder);var e=this.getElementEditor(0,!0);if(this.item_default=e.getDefault(),this.width=e.getNumColumns()+2,this.options.compact?(this.panel=document.createElement("div"),this.container.appendChild(this.panel)):(this.header=document.createElement("span"),this.header.textContent=this.getTitle(),this.title=this.theme.getHeader(this.header,this.getPathDepth()),this.container.appendChild(this.title),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText)),this.container.appendChild(this.infoButton)),this.title_controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.title_controls),this.schema.description&&(this.description=this.theme.getDescription(this.translateProperty(this.schema.description)),this.container.appendChild(this.description)),this.panel=this.theme.getIndentedPanel(),this.container.appendChild(this.panel),this.error_holder=document.createElement("div"),this.panel.appendChild(this.error_holder)),this.panel.appendChild(this.tableContainer),this.controls=this.theme.getButtonHolder(),this.array_controls_top?this.title.appendChild(this.controls):this.panel.appendChild(this.controls),this.item_has_child_editors)for(var t=e.getChildEditors(),a=e.property_order||Object.keys(t),d=0;d<a.length;d++){var b=this.theme.getTableHeaderCell(t[a[d]].getTitle());t[a[d]].options.hidden&&(b.style.display="none"),this.header_row.appendChild(b)}else this.header_row.appendChild(this.theme.getTableHeaderCell(this.item_title));e.destroy(),this.row_holder.innerHTML="",this.controls_header_cell=this.theme.getTableHeaderCell(this.translate("table_controls")),this.controls_header_cell.setAttribute("aria-hidden","true"),this.controls_header_cell.style.visibility="hidden",this.header_row.appendChild(this.controls_header_cell),this.addControls()}},{key:"onChildEditorChange",value:function(e,t){this.refreshValue(),Yi(In(r.prototype),"onChildEditorChange",this).call(this,e,t)}},{key:"getItemDefault",value:function(){return y({},{default:this.item_default}).default}},{key:"getItemTitle",value:function(){return this.item_title}},{key:"getElementEditor",value:function(e,t){var a=y({},this.schema.items),d=this.jsoneditor.getEditorClass(a,this.jsoneditor),b=this.row_holder.appendChild(this.theme.getTableRow()),P=b;this.item_has_child_editors||(P=this.theme.getTableCell(),b.appendChild(P));var I=this.jsoneditor.createEditor(d,{jsoneditor:this.jsoneditor,schema:a,container:P,path:"".concat(this.path,".").concat(e),parent:this,compact:!0,table_row:!0});return I.preBuild(),t||(I.build(),I.postBuild(),I.controls_cell=b.appendChild(this.theme.getTableCell()),I.row=b,I.table_controls=this.theme.getButtonHolder(),I.controls_cell.appendChild(I.table_controls),I.table_controls.style.margin=0,I.table_controls.style.padding=0),I}},{key:"destroy",value:function(){this.innerHTML="",this.checkParent(this.title)&&this.title.parentNode.removeChild(this.title),this.checkParent(this.description)&&this.description.parentNode.removeChild(this.description),this.checkParent(this.row_holder)&&this.row_holder.parentNode.removeChild(this.row_holder),this.checkParent(this.table)&&this.table.parentNode.removeChild(this.table),this.checkParent(this.panel)&&this.panel.parentNode.removeChild(this.panel),this.rows=this.title=this.description=this.row_holder=this.table=this.panel=null,Yi(In(r.prototype),"destroy",this).call(this)}},{key:"ensureArraySize",value:function(e){if(Array.isArray(e)||(e=[e]),this.schema.minItems)for(;e.length<this.schema.minItems;)e.push(this.getItemDefault());return this.schema.maxItems&&e.length>this.schema.maxItems&&(e=e.slice(0,this.schema.maxItems)),e}},{key:"setValue",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0;if(t=this.applyConstFilter(t),t=this.ensureArraySize(t),JSON.stringify(t)!==this.serialized){var d=!1;t.forEach(function(I,q){e.rows[q]?e.rows[q].setValue(I):(e.addRow(I),d=!0)});for(var b=t.length;b<this.rows.length;b++){var P=this.rows[b].container;this.item_has_child_editors||this.rows[b].row.parentNode.removeChild(this.rows[b].row),this.rows[b].destroy(),P.parentNode&&P.parentNode.removeChild(P),this.rows[b]=null,d=!0}this.rows=this.rows.slice(0,t.length),this.refreshValue(),(d||a)&&this.refreshRowButtons(),this.onChange()}}},{key:"refreshRowButtons",value:function(){var e=this,t=this.schema.minItems&&this.schema.minItems>=this.rows.length,a=this.schema.maxItems&&this.schema.maxItems<=this.rows.length,d=[];this.rows.forEach(function(ae,se){if(ae.delete_button){var ge=!t;e.setButtonState(ae.delete_button,ge),d.push(ge)}if(ae.copy_button){var Oe=!a;e.setButtonState(ae.copy_button,Oe),d.push(Oe)}if(ae.moveup_button){var Ne=se!==0;e.setButtonState(ae.moveup_button,Ne),d.push(Ne)}if(ae.movedown_button){var Ve=se!==e.rows.length-1;e.setButtonState(ae.movedown_button,Ve),d.push(Ve)}});var b=d.some(function(ae){return ae});this.rows.forEach(function(ae){return e.setButtonState(ae.controls_cell,b)}),this.setButtonState(this.controls_header_cell,b),this.setButtonState(this.table,this.value.length);var P=!(a||this.hide_add_button);this.setButtonState(this.add_row_button,P);var I=!(!this.value.length||t||this.hide_delete_last_row_buttons);this.setButtonState(this.delete_last_row_button,I);var q=!(this.value.length<=1||t||this.hide_delete_all_rows_buttons);this.setButtonState(this.remove_all_rows_button,q);var K=P||I||q;this.setButtonState(this.controls,K)}},{key:"refreshValue",value:function(){var e=this;this.value=[],this.rows.forEach(function(t,a){e.value[a]=t.getValue()}),this.serialized=JSON.stringify(this.value)}},{key:"addRow",value:function(e){var t=this.rows.length;this.rows[t]=this.getElementEditor(t);var a=this.rows[t].table_controls;return this.hide_delete_buttons||(this.rows[t].delete_button=this._createDeleteButton(t,a)),this.show_copy_button&&(this.rows[t].copy_button=this._createCopyButton(t,a)),this.hide_move_buttons||(this.rows[t].moveup_button=this._createMoveUpButton(t,a)),this.hide_move_buttons||(this.rows[t].movedown_button=this._createMoveDownButton(t,a)),this._supportDragDrop(this.rows[t].row),e!==void 0&&this.rows[t].setValue(e),this.rows[t]}},{key:"_createDeleteButton",value:function(e,t){var a=this,d=this.getButton("","delete","button_delete_row_title_short");return d.classList.add("delete","json-editor-btntype-delete"),d.setAttribute("data-i",e),d.addEventListener("click",function(b){if(b.preventDefault(),b.stopPropagation(),!a.askConfirmation())return!1;var P=1*b.currentTarget.getAttribute("data-i"),I=a.getValue(),q=a.getValue()[P];I.splice(P,1),a.setValue(I),a.onChange(!0),a.jsoneditor.trigger("deleteRow",q)}),t.appendChild(d),d}},{key:"_createCopyButton",value:function(e,t){var a=this,d=this.getButton("","copy","button_copy_row_title_short"),b=this.schema;return d.classList.add("copy","json-editor-btntype-copy"),d.setAttribute("data-i",e),d.addEventListener("click",function(P){P.preventDefault(),P.stopPropagation();var I=1*P.currentTarget.getAttribute("data-i"),q=a.getValue(),K=q[I];b.items.type==="string"&&b.items.format==="uuid"?K=R():b.items.type==="object"&&b.items.properties&&q.forEach(function(ae,se){if(I===se)for(var ge=0,Oe=Object.keys(ae);ge<Oe.length;ge++){var Ne=Oe[ge];b.items.properties&&b.items.properties[Ne]&&b.items.properties[Ne].format==="uuid"&&((K=Object.assign({},q[I]))[Ne]=R())}}),q.splice(I+1,0,K),a.setValue(q),a.onChange(!0),a.jsoneditor.trigger("copyRow",a.rows[I+1])}),t.appendChild(d),d}},{key:"_createMoveUpButton",value:function(e,t){var a=this,d=this.getButton("","moveup","button_move_up_title");return d.classList.add("moveup","json-editor-btntype-move"),d.setAttribute("data-i",e),d.addEventListener("click",function(b){b.preventDefault(),b.stopPropagation();var P=1*b.currentTarget.getAttribute("data-i"),I=a.getValue();I.splice(P-1,0,I.splice(P,1)[0]),a.setValue(I),a.onChange(!0),a.jsoneditor.trigger("moveRow",a.rows[P-1])}),t.appendChild(d),d}},{key:"_createMoveDownButton",value:function(e,t){var a=this,d=this.getButton("","movedown","button_move_down_title");return d.classList.add("movedown","json-editor-btntype-move"),d.setAttribute("data-i",e),d.addEventListener("click",function(b){b.preventDefault(),b.stopPropagation();var P=1*b.currentTarget.getAttribute("data-i"),I=a.getValue();I.splice(P+1,0,I.splice(P,1)[0]),a.setValue(I),a.onChange(!0),a.jsoneditor.trigger("moveRow",a.rows[P+1])}),t.appendChild(d),d}},{key:"_supportDragDrop",value:function(e){var t=this;Qt(e,function(a,d){var b=t.getValue(),P=b[a];b.splice(a,1),b.splice(d,0,P),t.setValue(b),t.onChange(!0),t.jsoneditor.trigger("moveRow",t.rows[d])},{useTrigger:!0})}},{key:"addControls",value:function(){var e=this;this.collapsed=!1,this.toggle_button=this._createToggleButton(),this.title_controls&&(this.title.insertBefore(this.toggle_button,this.title.childNodes[0]),this.toggle_button.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation(),e.setButtonState(e.panel,e.collapsed),e.collapsed?(e.collapsed=!1,e.setButtonText(t.currentTarget,"","collapse","button_collapse")):(e.collapsed=!0,e.setButtonText(t.currentTarget,"","expand","button_expand"))}),this.options.collapsed&&x(this.toggle_button,"click"),this.schema.options&&this.schema.options.disable_collapse!==void 0?this.schema.options.disable_collapse&&(this.toggle_button.style.display="none"):this.jsoneditor.options.disable_collapse&&(this.toggle_button.style.display="none")),this.add_row_button=this._createAddRowButton(),this.delete_last_row_button=this._createDeleteLastRowButton(),this.remove_all_rows_button=this._createRemoveAllRowsButton()}},{key:"_createToggleButton",value:function(){var e=this.getButton("","collapse","button_collapse");return e.classList.add("json-editor-btntype-toggle"),e}},{key:"_createAddRowButton",value:function(){var e=this,t=this.getButton(this.getItemTitle(),"add","button_add_row_title",[this.getItemTitle()]);return t.classList.add("json-editor-btntype-add"),t.addEventListener("click",function(a){a.preventDefault(),a.stopPropagation();var d=e.addRow();e.refreshValue(),e.refreshRowButtons(),e.onChange(!0),e.jsoneditor.trigger("addRow",d)}),this.controls.appendChild(t),t}},{key:"_createDeleteLastRowButton",value:function(){var e=this,t=this.getButton("button_delete_last","subtract","button_delete_last_title",[this.getItemTitle()]);return t.classList.add("json-editor-btntype-deletelast"),t.addEventListener("click",function(a){if(a.preventDefault(),a.stopPropagation(),!e.askConfirmation())return!1;var d=e.getValue(),b=d.pop();e.setValue(d),e.onChange(!0),e.jsoneditor.trigger("deleteRow",b)}),this.controls.appendChild(t),t}},{key:"_createRemoveAllRowsButton",value:function(){var e=this,t=this.getButton("button_delete_all","delete","button_delete_all_title");return t.classList.add("json-editor-btntype-deleteall"),t.addEventListener("click",function(a){if(a.preventDefault(),a.stopPropagation(),!e.askConfirmation())return!1;var d=e.getValue();e.setValue([]),e.onChange(!0),e.jsoneditor.trigger("deleteAllRows",d)}),this.controls.appendChild(t),t}}],u&&zy(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(zt);function Do(s){return Do=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Do(s)}function Yy(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,$y(u.key),u)}}function $y(s){var r=function(n,u){if(Do(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Do(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Do(r)=="symbol"?r:r+""}function Jy(s,r,n){return r=Ci(r),function(u,e){if(e&&(Do(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,id()?Reflect.construct(r,n||[],Ci(s).constructor):r.apply(s,n))}function id(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(id=function(){return!!s})()}function ka(){return ka=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Ci(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},ka.apply(this,arguments)}function Ci(s){return Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ci(s)}function dl(s,r){return dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},dl(s,r)}function Io(s){return Io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Io(s)}function Ky(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Qy(u.key),u)}}function Qy(s){var r=function(n,u){if(Io(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Io(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Io(r)=="symbol"?r:r+""}function Zy(s,r,n){return r=ji(r),function(u,e){if(e&&(Io(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,od()?Reflect.construct(r,n||[],ji(s).constructor):r.apply(s,n))}function od(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(od=function(){return!!s})()}function xa(){return xa=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=ji(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},xa.apply(this,arguments)}function ji(s){return ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ji(s)}function hl(s,r){return hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},hl(s,r)}function Mo(s){return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mo(s)}function Xy(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,ev(u.key),u)}}function ev(s){var r=function(n,u){if(Mo(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Mo(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Mo(r)=="symbol"?r:r+""}function tv(s,r,n){return r=Mn(r),function(u,e){if(e&&(Mo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,ad()?Reflect.construct(r,n||[],Mn(s).constructor):r.apply(s,n))}function ad(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ad=function(){return!!s})()}function $i(){return $i=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Mn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},$i.apply(this,arguments)}function Mn(s){return Mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mn(s)}function pl(s,r){return pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},pl(s,r)}j(9868);var us={ace:Nt,array:zt,arrayChoices:ft,arraySelect2:V,arraySelectize:We,autocomplete:da,base64:Ga,button:ha,checkbox:Ka,choices:ga,datetime:Gu,describedBy:es,enum:Qu,hidden:J,info:mt,integer:vo,ip:vi,jodit:wo,multiple:ot,multiselect:Pe,null:ln,number:yi,object:Yf,radio:my,sceditor:by,select:Hi,select2:xy,selectize:Ey,signature:Ty,simplemde:Iy,starrating:td,stepper:qy,string:Le,table:Gy,upload:function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Jy(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dl(e,t)}(r,s),n=r,(u=[{key:"getNumColumns",value:function(){return 4}},{key:"build",value:function(){var e=this;if(this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.hidden&&(this.container.style.display="none"),this.options=this.expandCallbacks("upload",y({},{title:"Browse",icon:"",auto_upload:!1,hide_input:!1,enable_drag_drop:!1,drop_zone_text:"Drag & Drop file here",drop_zone_top:!1,alt_drop_zone:"",mime_type:"",max_upload_size:0,upload_handler:function(d,b,P,I){window.alert('No upload_handler defined for "'.concat(d.path,'". You must create your own handler to enable upload to server'))}},this.defaults.options.upload||{},this.options.upload||{})),this.options.mime_type=this.options.mime_type?[].concat(this.options.mime_type):[],this.input=this.theme.getFormInputField("hidden"),this.container.appendChild(this.input),!this.schema.readOnly&&!this.schema.readonly){if(typeof this.options.upload_handler!="function")throw new Error("Upload handler required for upload editor");if(this.uploader=this.theme.getFormInputField("file"),this.uploader.style.display="none",this.options.mime_type.length&&this.uploader.setAttribute("accept",this.options.mime_type),this.options.enable_drag_drop===!0&&this.options.hide_input===!0||(this.clickHandler=function(d){e.uploader.dispatchEvent(new window.MouseEvent("click",{view:window,bubbles:!0,cancelable:!1}))},this.browseButton=this.getButton(this.options.title,this.options.icon,this.options.title),this.browseButton.addEventListener("click",this.clickHandler),this.fileDisplay=this.theme.getFormInputField("input"),this.fileDisplay.setAttribute("readonly",!0),this.fileDisplay.value="No file selected.",this.fileDisplay.addEventListener("dblclick",this.clickHandler),this.fileUploadGroup=this.theme.getInputGroup(this.fileDisplay,[this.browseButton]),this.fileUploadGroup||(this.fileUploadGroup=document.createElement("div"),this.fileUploadGroup.appendChild(this.fileDisplay),this.fileUploadGroup.appendChild(this.browseButton))),this.options.enable_drag_drop===!0){if(this.options.alt_drop_zone!==""){if(this.altDropZone=document.querySelector(this.options.alt_drop_zone),!this.altDropZone)throw new Error('Error: alt_drop_zone selector "'.concat(this.options.alt_drop_zone,'" not found!'));this.dropZone=this.altDropZone}else this.dropZone=this.theme.getDropZone(this.options.drop_zone_text);this.dropZone&&(this.dropZone.classList.add("upload-dropzone"),this.dropZone.addEventListener("dblclick",this.clickHandler))}this.uploadHandler=function(d){d.preventDefault(),d.stopPropagation();var b=d.target.files||d.dataTransfer.files;if(b&&b.length)if(e.options.max_upload_size!==0&&b[0].size>e.options.max_upload_size)e.theme.addInputError(e.uploader,"".concat(e.translate("upload_max_size")," ").concat(e.options.max_upload_size));else if(e.options.mime_type.length===0||e.isValidMimeType(b[0].type,e.options.mime_type)){e.fileDisplay&&(e.fileDisplay.value=b[0].name);var P=new window.FileReader;P.onload=function(I){e.preview_value=I.target.result,e.refreshPreview(b),e.onChange(!0),P=null},P.readAsDataURL(b[0])}else e.theme.addInputError(e.uploader,"".concat(e.translate("upload_wrong_file_format")," ").concat(e.options.mime_type.toString()))},this.uploader.addEventListener("change",this.uploadHandler),this.dragHandler=function(d){var b=d.dataTransfer.items||d.dataTransfer.files,P=b&&b.length&&(e.options.mime_type.length===0||e.isValidMimeType(b[0].type,e.options.mime_type)),I=d.currentTarget.classList&&d.currentTarget.classList.contains("upload-dropzone")&&P;switch((d.currentTarget===window?"w_":"e_")+d.type){case"w_drop":case"w_dragover":I||(d.dataTransfer.dropEffect="none");break;case"e_dragenter":I?(e.dropZone.classList.add("valid-dropzone"),d.dataTransfer.dropEffect="copy"):e.dropZone.classList.add("invalid-dropzone");break;case"e_dragover":I&&(d.dataTransfer.dropEffect="copy");break;case"e_dragleave":e.dropZone.classList.remove("valid-dropzone","invalid-dropzone");break;case"e_drop":e.dropZone.classList.remove("valid-dropzone","invalid-dropzone"),I&&e.uploadHandler(d)}I||d.preventDefault()},this.options.enable_drag_drop===!0&&(["dragover","drop"].forEach(function(d){window.addEventListener(d,e.dragHandler,!0)}),["dragenter","dragover","dragleave","drop"].forEach(function(d){e.dropZone.addEventListener(d,e.dragHandler,!0)}))}this.preview=document.createElement("div"),this.control=this.input.controlgroup=this.theme.getFormControl(this.label,this.uploader||this.input,this.description,this.infoButton),this.uploader&&(this.uploader.controlgroup=this.control);var t=this.uploader||this.input,a=document.createElement("div");this.dropZone&&!this.altDropZone&&this.options.drop_zone_top===!0&&a.appendChild(this.dropZone),this.fileUploadGroup&&a.appendChild(this.fileUploadGroup),this.dropZone&&!this.altDropZone&&this.options.drop_zone_top!==!0&&a.appendChild(this.dropZone),a.appendChild(this.preview),t.parentNode.insertBefore(a,t.nextSibling),this.container.appendChild(this.control),window.requestAnimationFrame(function(){e.afterInputReady()})}},{key:"afterInputReady",value:function(){var e=this;if(this.value){var t=document.createElement("img");t.style.maxWidth="100%",t.style.maxHeight="100px",t.onload=function(a){e.preview.appendChild(t)},t.onerror=function(a){console.error("upload error",a,a.currentTarget)},t.src=this.container.querySelector("a").href}this.theme.afterInputReady(this.input)}},{key:"refreshPreview",value:function(e){var t=this;if(this.last_preview!==this.preview_value&&(this.last_preview=this.preview_value,this.preview.innerHTML="",this.preview_value)){var a=e[0],d=this.preview_value.match(/^data:([^;,]+)[;,]/);if(a.mimeType=d?d[1]:"unknown",a.size>0){var b=Math.floor(Math.log(a.size)/Math.log(1024));a.formattedSize="".concat(parseFloat((a.size/Math.pow(1024,b)).toFixed(2))," ").concat(["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][b])}else a.formattedSize="0 Bytes";var P=this.getButton("button_upload","upload","button_upload");P.addEventListener("click",function(I){I.preventDefault(),P.setAttribute("disabled","disabled"),t.theme.removeInputError(t.uploader),t.theme.getProgressBar&&(t.progressBar=t.theme.getProgressBar(),t.preview.appendChild(t.progressBar)),t.options.upload_handler(t.path,a,{success:function(q){t.setValue(q),t.parent?t.parent.onChildEditorChange(t):t.jsoneditor.onChange(),t.progressBar&&t.preview.removeChild(t.progressBar),P.removeAttribute("disabled")},failure:function(q){t.theme.addInputError(t.uploader,q),t.progressBar&&t.preview.removeChild(t.progressBar),P.removeAttribute("disabled")},updateProgress:function(q){t.progressBar&&(q?t.theme.updateProgressBar(t.progressBar,q):t.theme.updateProgressBarUnknown(t.progressBar))}})}),this.preview.appendChild(this.theme.getUploadPreview(a,P,this.preview_value)),this.options.auto_upload&&(P.dispatchEvent(new window.MouseEvent("click")),P.parentNode.removeChild(P))}}},{key:"enable",value:function(){this.always_disabled||(this.uploader&&(this.uploader.disabled=!1),ka(Ci(r.prototype),"enable",this).call(this))}},{key:"disable",value:function(e){e&&(this.always_disabled=!0),this.uploader&&(this.uploader.disabled=!0),ka(Ci(r.prototype),"disable",this).call(this)}},{key:"setValue",value:function(e){e=this.applyConstFilter(e),this.value!==e&&(this.value=e,this.input.value=this.value,this.onChange())}},{key:"destroy",value:function(){var e=this;this.options.enable_drag_drop===!0&&(["dragover","drop"].forEach(function(t){window.removeEventListener(t,e.dragHandler,!0)}),["dragenter","dragover","dragleave","drop"].forEach(function(t){e.dropZone.removeEventListener(t,e.dragHandler,!0)}),this.dropZone.removeEventListener("dblclick",this.clickHandler),this.dropZone&&this.dropZone.parentNode&&this.dropZone.parentNode.removeChild(this.dropZone)),this.uploader&&this.uploader.parentNode&&(this.uploader.removeEventListener("change",this.uploadHandler),this.uploader.parentNode.removeChild(this.uploader)),this.browseButton&&this.browseButton.parentNode&&(this.browseButton.removeEventListener("click",this.clickHandler),this.browseButton.parentNode.removeChild(this.browseButton)),this.fileDisplay&&this.fileDisplay.parentNode&&(this.fileDisplay.removeEventListener("dblclick",this.clickHandler),this.fileDisplay.parentNode.removeChild(this.fileDisplay)),this.fileUploadGroup&&this.fileUploadGroup.parentNode&&this.fileUploadGroup.parentNode.removeChild(this.fileUploadGroup),this.preview&&this.preview.parentNode&&this.preview.parentNode.removeChild(this.preview),this.header&&this.header.parentNode&&this.header.parentNode.removeChild(this.header),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),ka(Ci(r.prototype),"destroy",this).call(this)}},{key:"isValidMimeType",value:function(e,t){return t.reduce(function(a,d){return a||new RegExp(d.replace(/\*/g,".*"),"gi").test(e)},!1)}}])&&Yy(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(G),uuid:function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Zy(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hl(e,t)}(r,s),n=r,(u=[{key:"preBuild",value:function(){xa(ji(r.prototype),"preBuild",this).call(this),this.schema.default=this.uuid=this.getUuid(),this.schema.options||(this.schema.options={}),this.schema.options.cleave||(this.schema.options.cleave={delimiters:["-"],blocks:[8,4,4,4,12]})}},{key:"build",value:function(){xa(ji(r.prototype),"build",this).call(this),this.disable(!0),this.input.setAttribute("readonly","true")}},{key:"sanitize",value:function(e){return this.testUuid(e)||(e=this.uuid),e}},{key:"setValue",value:function(e,t,a){e=this.applyConstFilter(e),this.testUuid(e)||(e=this.uuid),this.uuid=e,xa(ji(r.prototype),"setValue",this).call(this,e,t,a)}},{key:"getUuid",value:function(){return R()}},{key:"testUuid",value:function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}}])&&Ky(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le),colorpicker:function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),tv(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pl(e,t)}(r,s),n=r,(u=[{key:"postBuild",value:function(){window.Picker&&(this.input.type="text"),this.input.style.padding="3px"}},{key:"setValue",value:function(e,t,a){e=this.applyConstFilter(e);var d=$i(Mn(r.prototype),"setValue",this).call(this,e,t,a);return this.picker_instance&&this.picker_instance.domElement&&d&&d.changed&&this.picker_instance.setColor(d.value,!0),d}},{key:"getNumColumns",value:function(){return 2}},{key:"afterInputReady",value:function(){$i(Mn(r.prototype),"afterInputReady",this).call(this),this.createPicker(!0)}},{key:"disable",value:function(){if($i(Mn(r.prototype),"disable",this).call(this),this.picker_instance&&this.picker_instance.domElement){this.picker_instance.domElement.style.pointerEvents="none";for(var e=this.picker_instance.domElement.querySelectorAll("button"),t=0;t<e.length;t++)e[t].disabled=!0}}},{key:"enable",value:function(){if($i(Mn(r.prototype),"enable",this).call(this),this.picker_instance&&this.picker_instance.domElement){this.picker_instance.domElement.style.pointerEvents="auto";for(var e=this.picker_instance.domElement.querySelectorAll("button"),t=0;t<e.length;t++)e[t].disabled=!1}}},{key:"destroy",value:function(){this.createPicker(!1),$i(Mn(r.prototype),"destroy",this).call(this)}},{key:"createPicker",value:function(e){var t=this;if(e){if(window.Picker&&!this.picker_instance){var a=this.expandCallbacks("colorpicker",y({},{editor:!1,alpha:!1,color:this.value,popup:"bottom"},this.defaults.options.colorpicker||{},this.options.colorpicker||{},{parent:this.container})),d=function(b){var P=t.picker_instance.settings.editorFormat,I=t.picker_instance.settings.alpha;t.setValue(P==="hex"?I?b.hex:b.hex.slice(0,7):b["".concat(P+(I?"a":""),"String")])};a.popup||typeof a.onChange=="function"?a.popup&&typeof a.onDone!="function"&&(a.onDone=d):a.onChange=d,this.picker_instance=new window.Picker(a),a.popup||(this.input.style.display="none",this.theme.afterInputReady(this.picker_instance.domElement))}}else this.picker_instance&&(this.picker_instance.destroy(),this.picker_instance=null,this.input.style.display="")}}])&&Xy(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(Le)};function sd(s,r){(r==null||r>s.length)&&(r=s.length);for(var n=0,u=new Array(r);n<r;n++)u[n]=s[n];return u}var ud={},ml="en",rv=ml;ud.en={error_notset:"Property must be set",error_notempty:"Value required",error_enum:"Value must be one of the enumerated values",error_const:"Value must be the constant value",error_anyOf:"Value must validate against at least one of the provided schemas",error_oneOf:"Value must validate against exactly one of the provided schemas. It currently validates against {{0}} of the schemas.",error_not:"Value must not validate against the provided schema",error_type_union:"Value must be one of the provided types",error_type:"Value must be of type {{0}}",error_disallow_union:"Value must not be one of the provided disallowed types",error_disallow:"Value must not be of type {{0}}",error_multipleOf:"Value must be a multiple of {{0}}",error_maximum_excl:"Value must be less than {{0}}",error_maximum_incl:"Value must be at most {{0}}",error_minimum_excl:"Value must be greater than {{0}}",error_minimum_incl:"Value must be at least {{0}}",error_maxLength:"Value must be at most {{0}} characters long",error_contains:"No items match contains",error_minContains:"Contains match count {{0}} is less than minimum contains count of {{1}}",error_maxContains:"Contains match count {{0}} exceeds maximum contains count of {{1}}",error_minLength:"Value must be at least {{0}} characters long",error_pattern:"Value must match the pattern {{0}}",error_additionalItems:"No additional items allowed in this array",error_maxItems:"Value must have at most {{0}} items",error_minItems:"Value must have at least {{0}} items",error_uniqueItems:"Array must have unique items",error_maxProperties:"Object must have at most {{0}} properties",error_minProperties:"Object must have at least {{0}} properties",error_required:"Object is missing the required property '{{0}}'",error_additional_properties:"No additional properties allowed, but property {{0}} is set",error_property_names_exceeds_maxlength:"Property name {{0}} exceeds maxLength",error_property_names_enum_mismatch:"Property name {{0}} does not match any enum values",error_property_names_const_mismatch:"Property name {{0}} does not match the const value",error_property_names_pattern_mismatch:"Property name {{0}} does not match pattern",error_property_names_false:"Property name {{0}} fails when propertyName is false",error_property_names_maxlength:"Property name {{0}} cannot match invalid maxLength",error_property_names_enum:"Property name {{0}} cannot match invalid enum",error_property_names_pattern:"Property name {{0}} cannot match invalid pattern",error_property_names_unsupported:"Unsupported propertyName {{0}}",error_dependency:"Must have property {{0}}",error_date:"Date must be in the format {{0}}",error_time:"Time must be in the format {{0}}",error_datetime_local:"Datetime must be in the format {{0}}",error_invalid_epoch:"Date must be greater than 1 January 1970",error_ipv4:"Value must be a valid IPv4 address in the form of 4 numbers between 0 and 255, separated by dots",error_ipv6:"Value must be a valid IPv6 address",error_hostname:"The hostname has the wrong format",upload_max_size:"Filesize too large. Max size is ",upload_wrong_file_format:"Wrong file format. Allowed format(s): ",button_save:"Save",button_copy:"Copy",button_cancel:"Cancel",button_add:"Add",button_delete_all:"All",button_delete_all_title:"Delete All",button_delete_last:"Last {{0}}",button_delete_last_title:"Delete Last {{0}}",button_add_row_title:"Add {{0}}",button_move_down_title:"Move down",button_move_up_title:"Move up",button_properties:"Properties",button_object_properties:"Object Properties",button_copy_row_title:"Copy {{0}}",button_delete_row_title:"Delete {{0}}",button_delete_row_title_short:"Delete",button_copy_row_title_short:"Copy",button_collapse:"Collapse",button_expand:"Expand",button_edit_json:"Edit JSON",button_upload:"Upload",flatpickr_toggle_button:"Toggle",flatpickr_clear_button:"Clear",choices_placeholder_text:"Start typing to add value",default_array_item_title:"item",button_delete_node_warning:"Are you sure you want to remove this item?",table_controls:"Controls",paste_max_length_reached:"Pasted text exceeded maximum length of {{0}} and will be clipped."},Object.entries(us).forEach(function(s){var r=function(e,t){return function(a){if(Array.isArray(a))return a}(e)||function(a,d){var b=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(b!=null){var P,I,q,K,ae=[],se=!0,ge=!1;try{if(q=(b=b.call(a)).next,d===0){if(Object(b)!==b)return;se=!1}else for(;!(se=(P=q.call(b)).done)&&(ae.push(P.value),ae.length!==d);se=!0);}catch(Oe){ge=!0,I=Oe}finally{try{if(!se&&b.return!=null&&(K=b.return(),Object(K)!==K))return}finally{if(ge)throw I}}return ae}}(e,t)||function(a,d){if(a){if(typeof a=="string")return sd(a,d);var b=Object.prototype.toString.call(a).slice(8,-1);return b==="Object"&&a.constructor&&(b=a.constructor.name),b==="Map"||b==="Set"?Array.from(a):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?sd(a,d):void 0}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
75
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(s,2),n=r[0],u=r[1];us[n].options=u.options||{}});var Ji={options:{upload:function(s,r,n){console.log("Upload handler required for upload editor")},use_name_attributes:!0,prompt_before_delete:!0,use_default_values:!0,max_depth:0,button_state_mode:1,case_sensitive_property_search:!0,show_errors:"interaction",prompt_paste_max_length_reached:!1,remove_false_properties:!1,enforce_const:!1,opt_in_widget:"checkbox"},theme:"html",template:"default",themes:{},callbacks:{},templates:{},iconlibs:{},editors:us,languages:ud,resolvers:C,custom_validators:[],default_language:ml,language:rv,translate:function(s,r,n){var u={};n&&n.options&&n.options.error_messages&&n.options.error_messages[Ji.language]&&(u=n.options.error_messages[Ji.language]);var e=Ji.languages[Ji.language];if(!e)throw new Error("Unknown language ".concat(Ji.language));var t=u[s]||e[s]||Ji.languages[ml][s]||s;if(r)for(var a=0;a<r.length;a++)t=t.replace(new RegExp("\\{\\{".concat(a,"}}"),"g"),r[a]);return t},translateProperty:function(s,r){return s}};function Ki(){Ki=function(){return r};var s,r={},n=Object.prototype,u=n.hasOwnProperty,e=Object.defineProperty||function(ie,ne,ce){ie[ne]=ce.value},t=typeof Symbol=="function"?Symbol:{},a=t.iterator||"@@iterator",d=t.asyncIterator||"@@asyncIterator",b=t.toStringTag||"@@toStringTag";function P(ie,ne,ce){return Object.defineProperty(ie,ne,{value:ce,enumerable:!0,configurable:!0,writable:!0}),ie[ne]}try{P({},"")}catch{P=function(ne,ce,De){return ne[ce]=De}}function I(ie,ne,ce,De){var we=ne&&ne.prototype instanceof Ne?ne:Ne,Qe=Object.create(we.prototype),Ct=new Vn(De||[]);return e(Qe,"_invoke",{value:Ar(ie,ce,Ct)}),Qe}function q(ie,ne,ce){try{return{type:"normal",arg:ie.call(ne,ce)}}catch(De){return{type:"throw",arg:De}}}r.wrap=I;var K="suspendedStart",ae="suspendedYield",se="executing",ge="completed",Oe={};function Ne(){}function Ve(){}function dt(){}var yt={};P(yt,a,function(){return this});var Et=Object.getPrototypeOf,Ae=Et&&Et(Et(Dr([])));Ae&&Ae!==n&&u.call(Ae,a)&&(yt=Ae);var Be=dt.prototype=Ne.prototype=Object.create(yt);function Tt(ie){["next","throw","return"].forEach(function(ne){P(ie,ne,function(ce){return this._invoke(ne,ce)})})}function Yt(ie,ne){function ce(we,Qe,Ct,$t){var Jt=q(ie[we],ie,Qe);if(Jt.type!=="throw"){var Zr=Jt.arg,Cn=Zr.value;return Cn&&dr(Cn)=="object"&&u.call(Cn,"__await")?ne.resolve(Cn.__await).then(function(Ir){ce("next",Ir,Ct,$t)},function(Ir){ce("throw",Ir,Ct,$t)}):ne.resolve(Cn).then(function(Ir){Zr.value=Ir,Ct(Zr)},function(Ir){return ce("throw",Ir,Ct,$t)})}$t(Jt.arg)}var De;e(this,"_invoke",{value:function(we,Qe){function Ct(){return new ne(function($t,Jt){ce(we,Qe,$t,Jt)})}return De=De?De.then(Ct,Ct):Ct()}})}function Ar(ie,ne,ce){var De=K;return function(we,Qe){if(De===se)throw Error("Generator is already running");if(De===ge){if(we==="throw")throw Qe;return{value:s,done:!0}}for(ce.method=we,ce.arg=Qe;;){var Ct=ce.delegate;if(Ct){var $t=Oi(Ct,ce);if($t){if($t===Oe)continue;return $t}}if(ce.method==="next")ce.sent=ce._sent=ce.arg;else if(ce.method==="throw"){if(De===K)throw De=ge,ce.arg;ce.dispatchException(ce.arg)}else ce.method==="return"&&ce.abrupt("return",ce.arg);De=se;var Jt=q(ie,ne,ce);if(Jt.type==="normal"){if(De=ce.done?ge:ae,Jt.arg===Oe)continue;return{value:Jt.arg,done:ce.done}}Jt.type==="throw"&&(De=ge,ce.method="throw",ce.arg=Jt.arg)}}}function Oi(ie,ne){var ce=ne.method,De=ie.iterator[ce];if(De===s)return ne.delegate=null,ce==="throw"&&ie.iterator.return&&(ne.method="return",ne.arg=s,Oi(ie,ne),ne.method==="throw")||ce!=="return"&&(ne.method="throw",ne.arg=new TypeError("The iterator does not provide a '"+ce+"' method")),Oe;var we=q(De,ie.iterator,ne.arg);if(we.type==="throw")return ne.method="throw",ne.arg=we.arg,ne.delegate=null,Oe;var Qe=we.arg;return Qe?Qe.done?(ne[ie.resultName]=Qe.value,ne.next=ie.nextLoc,ne.method!=="return"&&(ne.method="next",ne.arg=s),ne.delegate=null,Oe):Qe:(ne.method="throw",ne.arg=new TypeError("iterator result is not an object"),ne.delegate=null,Oe)}function Go(ie){var ne={tryLoc:ie[0]};1 in ie&&(ne.catchLoc=ie[1]),2 in ie&&(ne.finallyLoc=ie[2],ne.afterLoc=ie[3]),this.tryEntries.push(ne)}function ut(ie){var ne=ie.completion||{};ne.type="normal",delete ne.arg,ie.completion=ne}function Vn(ie){this.tryEntries=[{tryLoc:"root"}],ie.forEach(Go,this),this.reset(!0)}function Dr(ie){if(ie||ie===""){var ne=ie[a];if(ne)return ne.call(ie);if(typeof ie.next=="function")return ie;if(!isNaN(ie.length)){var ce=-1,De=function we(){for(;++ce<ie.length;)if(u.call(ie,ce))return we.value=ie[ce],we.done=!1,we;return we.value=s,we.done=!0,we};return De.next=De}}throw new TypeError(dr(ie)+" is not iterable")}return Ve.prototype=dt,e(Be,"constructor",{value:dt,configurable:!0}),e(dt,"constructor",{value:Ve,configurable:!0}),Ve.displayName=P(dt,b,"GeneratorFunction"),r.isGeneratorFunction=function(ie){var ne=typeof ie=="function"&&ie.constructor;return!!ne&&(ne===Ve||(ne.displayName||ne.name)==="GeneratorFunction")},r.mark=function(ie){return Object.setPrototypeOf?Object.setPrototypeOf(ie,dt):(ie.__proto__=dt,P(ie,b,"GeneratorFunction")),ie.prototype=Object.create(Be),ie},r.awrap=function(ie){return{__await:ie}},Tt(Yt.prototype),P(Yt.prototype,d,function(){return this}),r.AsyncIterator=Yt,r.async=function(ie,ne,ce,De,we){we===void 0&&(we=Promise);var Qe=new Yt(I(ie,ne,ce,De),we);return r.isGeneratorFunction(ne)?Qe:Qe.next().then(function(Ct){return Ct.done?Ct.value:Qe.next()})},Tt(Be),P(Be,b,"Generator"),P(Be,a,function(){return this}),P(Be,"toString",function(){return"[object Generator]"}),r.keys=function(ie){var ne=Object(ie),ce=[];for(var De in ne)ce.push(De);return ce.reverse(),function we(){for(;ce.length;){var Qe=ce.pop();if(Qe in ne)return we.value=Qe,we.done=!1,we}return we.done=!0,we}},r.values=Dr,Vn.prototype={constructor:Vn,reset:function(ie){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(ut),!ie)for(var ne in this)ne.charAt(0)==="t"&&u.call(this,ne)&&!isNaN(+ne.slice(1))&&(this[ne]=s)},stop:function(){this.done=!0;var ie=this.tryEntries[0].completion;if(ie.type==="throw")throw ie.arg;return this.rval},dispatchException:function(ie){if(this.done)throw ie;var ne=this;function ce(Jt,Zr){return Qe.type="throw",Qe.arg=ie,ne.next=Jt,Zr&&(ne.method="next",ne.arg=s),!!Zr}for(var De=this.tryEntries.length-1;De>=0;--De){var we=this.tryEntries[De],Qe=we.completion;if(we.tryLoc==="root")return ce("end");if(we.tryLoc<=this.prev){var Ct=u.call(we,"catchLoc"),$t=u.call(we,"finallyLoc");if(Ct&&$t){if(this.prev<we.catchLoc)return ce(we.catchLoc,!0);if(this.prev<we.finallyLoc)return ce(we.finallyLoc)}else if(Ct){if(this.prev<we.catchLoc)return ce(we.catchLoc,!0)}else{if(!$t)throw Error("try statement without catch or finally");if(this.prev<we.finallyLoc)return ce(we.finallyLoc)}}}},abrupt:function(ie,ne){for(var ce=this.tryEntries.length-1;ce>=0;--ce){var De=this.tryEntries[ce];if(De.tryLoc<=this.prev&&u.call(De,"finallyLoc")&&this.prev<De.finallyLoc){var we=De;break}}we&&(ie==="break"||ie==="continue")&&we.tryLoc<=ne&&ne<=we.finallyLoc&&(we=null);var Qe=we?we.completion:{};return Qe.type=ie,Qe.arg=ne,we?(this.method="next",this.next=we.finallyLoc,Oe):this.complete(Qe)},complete:function(ie,ne){if(ie.type==="throw")throw ie.arg;return ie.type==="break"||ie.type==="continue"?this.next=ie.arg:ie.type==="return"?(this.rval=this.arg=ie.arg,this.method="return",this.next="end"):ie.type==="normal"&&ne&&(this.next=ne),Oe},finish:function(ie){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var ce=this.tryEntries[ne];if(ce.finallyLoc===ie)return this.complete(ce.completion,ce.afterLoc),ut(ce),Oe}},catch:function(ie){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var ce=this.tryEntries[ne];if(ce.tryLoc===ie){var De=ce.completion;if(De.type==="throw"){var we=De.arg;ut(ce)}return we}}throw Error("illegal catch attempt")},delegateYield:function(ie,ne,ce){return this.delegate={iterator:Dr(ie),resultName:ne,nextLoc:ce},this.method==="next"&&(this.arg=s),Oe}},r}function ld(s,r,n,u,e,t,a){try{var d=s[t](a),b=d.value}catch(P){return void n(P)}d.done?r(b):Promise.resolve(b).then(u,e)}function cd(s){return function(){var r=this,n=arguments;return new Promise(function(u,e){var t=s.apply(r,n);function a(b){ld(t,u,e,a,d,"next",b)}function d(b){ld(t,u,e,a,d,"throw",b)}a(void 0)})}}function Qi(s,r){return function(n){if(Array.isArray(n))return n}(s)||function(n,u){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t,a,d,b,P=[],I=!0,q=!1;try{if(d=(e=e.call(n)).next,u===0){if(Object(e)!==e)return;I=!1}else for(;!(I=(t=d.call(e)).done)&&(P.push(t.value),P.length!==u);I=!0);}catch(K){q=!0,a=K}finally{try{if(!I&&e.return!=null&&(b=e.return(),Object(b)!==b))return}finally{if(q)throw a}}return P}}(s,r)||function(n,u){if(n){if(typeof n=="string")return fd(n,u);var e=Object.prototype.toString.call(n).slice(8,-1);return e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set"?Array.from(n):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?fd(n,u):void 0}}(s,r)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
76
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function fd(s,r){(r==null||r>s.length)&&(r=s.length);for(var n=0,u=new Array(r);n<r;n++)u[n]=s[n];return u}function dr(s){return dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},dr(s)}function nv(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,iv(u.key),u)}}function iv(s){var r=function(n,u){if(dr(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(dr(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return dr(r)=="symbol"?r:r+""}j(1688);var ov=function(){return s=function e(t){(function(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t||{},this.schema={},this.refs=this.options.refs||{},this.refs_with_info={},this.refs_prefix="#/counter/",this.refs_counter=1,this._subSchema1={type:function(a){dr(a.type)==="object"&&(a.type=this._expandSubSchema(a.type))},disallow:function(a){dr(a.disallow)==="object"&&(a.disallow=this._expandSubSchema(a.disallow))},anyOf:function(a){var d=this;Object.entries(a.anyOf).forEach(function(b){var P=Qi(b,2),I=P[0],q=P[1];a.anyOf[I]=d.expandSchema(q)})},dependencies:function(a){var d=this;Object.entries(a.dependencies).forEach(function(b){var P=Qi(b,2),I=P[0],q=P[1];dr(q)!=="object"||Array.isArray(q)||(a.dependencies[I]=d.expandSchema(q))})},not:function(a){a.not=this.expandSchema(a.not)}},this._subSchema2={allOf:function(a,d){var b=this,P=y({},d);return Object.entries(a.allOf).forEach(function(I){var q=Qi(I,2),K=q[0],ae=q[1];a.allOf[K]=b.expandRefs(ae,!0),P=b.extendSchemas(P,b.expandSchema(ae))}),delete P.allOf,P},extends:function(a,d){var b,P=this;return delete(b=Array.isArray(a.extends)?a.extends.reduce(function(I,q,K){return P.extendSchemas(I,P.expandSchema(q))},d):this.extendSchemas(d,this.expandSchema(a.extends))).extends,b},oneOf:function(a,d){var b=this,P=y({},d);return delete P.oneOf,a.oneOf.reduce(function(I,q,K){return I.oneOf[K]=b.extendSchemas(b.expandSchema(q),P),I},d),d}}},r=[{key:"load",value:(u=cd(Ki().mark(function e(t,a,d){return Ki().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return this.schema=t,b.next=3,this._asyncloadExternalRefs(t,a,this._getFileBase(d),!0);case 3:return b.abrupt("return",this.expandRefs(t));case 4:case"end":return b.stop()}},e,this)})),function(e,t,a){return u.apply(this,arguments)})},{key:"expandRefs",value:function(e,t){var a=this,d=y({},e);if(!d.$ref)return d;var b=d.$ref.split("#");if(b.length===2&&!this.refs_with_info[d.$ref]){var P=this.expandRecursivePointer(this.schema,b[1]),I=this.extendSchemas(d,this.expandSchema(P));return delete I.$ref,I}var q=b.length>2?this.refs_with_info["#"+b[1]]:this.refs_with_info[d.$ref];delete d.$ref;var K=q.$ref.startsWith("#")?q.fetchUrl:"",ae=this._getRef(K,q);if(this.refs[ae]){if(t&&E(this.refs[ae],"allOf")){var se=this.refs[ae].allOf;Object.keys(se).forEach(function(ge){se[ge]=a.expandRefs(se[ge],!0)})}}else console.warn("reference:'".concat(ae,"' not found!"));return b.length>2?this.extendSchemas(d,this.expandSchema(this.expandRecursivePointer(this.refs[ae],b[2]))):this.extendSchemas(d,this.expandSchema(this.refs[ae]))}},{key:"expandRecursivePointer",value:function(e,t){var a=e;return t.split("/").slice(1).forEach(function(d){a[d]&&(a=a[d])}),a.$refs&&a.$refs.startsWith("#")?this.expandRecursivePointer(e,a.$refs):a}},{key:"expandSchema",value:function(e){var t=this;Object.entries(this._subSchema1).forEach(function(d){var b=Qi(d,2),P=b[0],I=b[1];e[P]&&I.call(t,e)});var a=y({},e);return Object.entries(this._subSchema2).forEach(function(d){var b=Qi(d,2),P=b[0],I=b[1];e[P]&&(a=I.call(t,e,a))}),this.expandRefs(a)}},{key:"_getRef",value:function(e,t){var a=e+t;return this.refs[a]?a:e+decodeURIComponent(t.$ref)}},{key:"_expandSubSchema",value:function(e){var t=this;return Array.isArray(e)?e.map(function(a){return dr(a)==="object"?t.expandSchema(a):a}):this.expandSchema(e)}},{key:"_manageRecursivePointer",value:function(e,t){Object.keys(e).forEach(function(a){e[a]!==null&&e[a].$ref&&e[a].$ref.indexOf("#")===0&&(e[a].$ref=t+e[a].$ref)})}},{key:"_getExternalRefs",value:function(e,t){var a=this,d=arguments.length>2&&arguments[2]!==void 0&&arguments[2];d||this._manageRecursivePointer(e,t);var b={},P=function(se){return Object.keys(se).forEach(function(ge){b[ge]=!0})};if(e.$ref&&dr(e.$ref)!=="object"&&(e.$ref.indexOf("#")!==0||!d)){var I=e.$ref,q="";I.indexOf("#")>0&&(I=I.substr(0,I.indexOf("#"))),I!==e.$ref&&(q=e.$ref.substr(e.$ref.indexOf("#")));var K=this.refs_prefix+this.refs_counter++,ae=K+q;e.$ref.substr(0,1)==="#"||this.refs[e.$ref]||(b[I]=!0),this.refs_with_info[K]={fetchUrl:t,$ref:I},e.$ref=ae}return Object.values(e).forEach(function(se){se&&dr(se)==="object"&&(Array.isArray(se)?Object.values(se).forEach(function(ge){ge&&dr(ge)==="object"&&P(a._getExternalRefs(ge,t,d))}):se.$ref&&typeof se.$ref=="string"&&se.$ref.startsWith("#")||P(a._getExternalRefs(se,t,d)))}),e.id&&typeof e.id=="string"&&e.id.substr(0,4)==="urn:"?this.refs[e.id]=e:e.$id&&typeof e.$id=="string"&&e.$id.substr(0,4)==="urn:"&&(this.refs[e.$id]=e),b}},{key:"_getFileBase",value:function(e){if(!e)return"/";var t=this.options.ajaxBase;return t===void 0?this._getFileBaseFromFileLocation(e):t}},{key:"_getFileBaseFromFileLocation",value:function(e){var t=e.split("/");return t.pop(),"".concat(t.join("/"),"/")}},{key:"_joinUrl",value:function(e,t){var a=e;return e.substr(0,7)!=="http://"&&e.substr(0,8)!=="https://"&&e.substr(0,5)!=="blob:"&&e.substr(0,5)!=="data:"&&e.substr(0,1)!=="#"&&e.substr(0,1)!=="/"&&(a=t+e),a.indexOf("#")>0&&(a=a.substr(0,a.indexOf("#"))),a}},{key:"_isUniformResourceName",value:function(e){return e.substr(0,4)==="urn:"}},{key:"_asyncloadExternalRefs",value:(n=cd(Ki().mark(function e(t,a,d){var b,P,I,q,K,ae,se=this,ge=arguments;return Ki().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:b=ge.length>3&&ge[3]!==void 0&&ge[3],P=this._getExternalRefs(t,a,b),I=0,q=Ki().mark(function Ne(){var Ve,dt,yt,Et,Ae,Be,Tt,Yt,Ar,Oi,Go;return Ki().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if((Ve=ae[K])!==void 0){ut.next=3;break}return ut.abrupt("return",0);case 3:if(!se.refs[Ve]){ut.next=5;break}return ut.abrupt("return",0);case 5:if(!se._isUniformResourceName(Ve)){ut.next=40;break}if(se.refs[Ve]="loading",I++,dt=se.options.urn_resolver,yt=Ve,typeof dt=="function"){ut.next=13;break}throw console.log('No "urn_resolver" callback defined to resolve "'.concat(yt,'"')),new Error("Must set urn_resolver option to a callback to resolve ".concat(yt));case 13:return yt.indexOf("#")>0&&(yt=yt.substr(0,yt.indexOf("#"))),ut.prev=14,ut.next=17,dt(yt);case 17:Et=ut.sent,ut.prev=18,Ae=JSON.parse(Et),ut.next=26;break;case 22:throw ut.prev=22,ut.t0=ut.catch(18),console.log(ut.t0),new Error("Failed to parse external ref ".concat(yt));case 26:if(!(typeof Ae!="boolean"&&dr(Ae)!=="object"||Ae===null||Array.isArray(Ae))){ut.next=28;break}throw new Error("External ref does not contain a valid schema - ".concat(yt));case 28:return se.refs[Ve]=Ae,ut.next=31,se._asyncloadExternalRefs(Ae,Ve,d);case 31:ut.next=37;break;case 33:throw ut.prev=33,ut.t1=ut.catch(14),console.log(ut.t1),new Error("Failed to parse external ref ".concat(yt));case 37:if(typeof Et!="boolean"){ut.next=39;break}throw new Error("External ref does not contain a valid schema - ".concat(yt));case 39:return ut.abrupt("return",0);case 40:if(se.options.ajax){ut.next=42;break}throw new Error("Must set ajax option to true to load external ref ".concat(Ve));case 42:if(I++,Be=se._joinUrl(Ve,d),se.options.ajax_cache_responses&&(Yt=se.cacheGet(Be))&&(Tt=Yt),Tt){ut.next=61;break}return ut.next=48,new Promise(function(Vn){var Dr=new XMLHttpRequest;se.options.ajaxCredentials&&(Dr.withCredentials=se.options.ajaxCredentials),Dr.overrideMimeType("application/json"),Dr.open("GET",Be,!0),Dr.onload=function(){Vn(Dr)},Dr.onerror=function(ie){Vn(void 0)},Dr.send()});case 48:if((Ar=ut.sent)!==void 0){ut.next=51;break}throw new Error("Failed to fetch ref via ajax - ".concat(Ve));case 51:ut.prev=51,Tt=JSON.parse(Ar.responseText),se.onSchemaLoaded({schema:Tt,schemaUrl:Be}),se.options.ajax_cache_responses&&se.cacheSet(Be,Tt),ut.next=61;break;case 57:throw ut.prev=57,ut.t2=ut.catch(51),console.log(ut.t2),new Error("Failed to parse external ref ".concat(Be));case 61:if(!(typeof Tt!="boolean"&&dr(Tt)!=="object"||Tt===null||Array.isArray(Tt))){ut.next=63;break}throw new Error("External ref does not contain a valid schema - ".concat(Be));case 63:return se.refs[Ve]=Tt,Oi=se._getFileBaseFromFileLocation(Be),Be!==Ve&&(Go=Be.split("/"),Be=(Ve.substr(0,1)==="/"?"/":"")+Go.pop()),ut.next=68,se._asyncloadExternalRefs(Tt,Be,Oi);case 68:case"end":return ut.stop()}},Ne,null,[[14,33],[18,22],[51,57]])}),K=0,ae=Object.keys(P);case 5:if(!(K<ae.length)){Oe.next=13;break}return Oe.delegateYield(q(),"t0",7);case 7:if(Oe.t0!==0){Oe.next=10;break}return Oe.abrupt("continue",10);case 10:K++,Oe.next=5;break;case 13:if(I){Oe.next=15;break}return Oe.abrupt("return",!0);case 15:this.onAllSchemasLoaded();case 16:case"end":return Oe.stop()}},e,this)})),function(e,t,a){return n.apply(this,arguments)})},{key:"onSchemaLoaded",value:function(e){}},{key:"onAllSchemasLoaded",value:function(){}},{key:"extendSchemas",value:function(e,t){var a=this;e=y({},e),t=y({},t);var d={},b=function(P){typeof P=="string"&&(P=[P]),typeof t.type=="string"&&(t.type=[t.type]),t.type&&t.type.length?d.type=P.filter(function(I){return t.type.includes(I)}):d.type=P,d.type.length===1&&typeof d.type[0]=="string"?d.type=d.type[0]:d.type.length===0&&delete d.type};return Object.entries(e).forEach(function(P){var I=Qi(P,2),q=I[0],K=I[1];t[q]!==void 0?function(ae,se){(function(ge,Oe){return(ge==="required"||ge==="defaultProperties")&&dr(Oe)==="object"&&Array.isArray(Oe)})(ae,se)?d[ae]=se.concat(t[ae]).reduce(function(ge,Oe){return ge.includes(Oe)||ge.push(Oe),ge},[]):ae!=="type"||typeof se!="string"&&!Array.isArray(se)?dr(se)!=="object"||Array.isArray(se)||se===null?d[ae]=se:d[ae]=a.extendSchemas(se,t[ae]):b(se)}(q,K):d[q]=K}),Object.entries(t).forEach(function(P){var I=Qi(P,2),q=I[0],K=I[1];e[q]===void 0&&(d[q]=K)}),d}},{key:"getCacheKey",value:function(e){return["je-cache",e].join("::")}},{key:"getCacheBuster",value:function(){return this.options.ajax_cache_buster||new Date().toISOString().slice(0,10)}},{key:"cacheSet",value:function(e,t){try{window.localStorage.setItem(this.getCacheKey(e),JSON.stringify({cacheBuster:this.getCacheBuster(),schema:t}))}catch(a){console.error(a)}}},{key:"cacheGet",value:function(e){try{var t=window.localStorage.getItem(this.getCacheKey(e));if(t){var a=JSON.parse(t);if(a.cacheBuster&&a.schema&&a.cacheBuster===this.getCacheBuster())return a.schema;this.cacheDelete(e)}}catch(d){console.error(d)}}},{key:"cacheDelete",value:function(e){window.localStorage.removeItem(this.getCacheKey(e))}}],r&&nv(s.prototype,r),Object.defineProperty(s,"prototype",{writable:!1}),s;var s,r,n,u}(),av=(j(2762),{default:function(){return{compile:function(s){var r=s.match(/{{\s*([a-zA-Z0-9\-_ .]+)\s*}}/g),n=r&&r.length;if(!n)return function(){return s};for(var u=[],e=function(a){var d,b,P=r[a].replace(/[{}]+/g,"").trim().split("."),I=P.length;I>1?d=function(q){for(b=q,a=0;a<I&&(b=b[P[a]]);a++);return b}:(P=P[0],d=function(q){return q[P]}),u.push({s:r[a],r:d})},t=0;t<n;t++)e(t);return function(a){for(var d,b="".concat(s),P=0;P<n;P++)d=u[P],b=b.replace(d.s,d.r(a));return b}}}},ejs:function(){return!!window.EJS&&{compile:function(s){var r=new window.EJS({text:s});return function(n){return r.render(n)}}}},handlebars:function(){return window.Handlebars},hogan:function(){return!!window.Hogan&&{compile:function(s){var r=window.Hogan.compile(s);return function(n){return r.render(n)}}}},lodash:function(){return!!window._&&{compile:function(s){return function(r){return window._.template(s)(r)}}}},markup:function(){return!(!window.Mark||!window.Mark.up)&&{compile:function(s){return function(r){return window.Mark.up(s,r)}}}},mustache:function(){return!!window.Mustache&&{compile:function(s){return function(r){return window.Mustache.render(s,r)}}}},swig:function(){return window.swig},underscore:function(){return!!window._&&{compile:function(s){return function(r){return window._.template(s)(r)}}}}});function Ca(s){return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ca(s)}function gl(s,r){(r==null||r>s.length)&&(r=s.length);for(var n=0,u=new Array(r);n<r;n++)u[n]=s[n];return u}function sv(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,uv(u.key),u)}}function uv(s){var r=function(n,u){if(Ca(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Ca(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Ca(r)=="symbol"?r:r+""}var lv={collapse:"",expand:"",delete:"",edit:"",add:"",cancel:"",save:"",moveup:"",movedown:""},si=function(){return s=function n(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lv;(function(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")})(this,n),this.mapping=e,this.icon_prefix=u},(r=[{key:"getIconClass",value:function(n){return this.mapping[n]?this.icon_prefix+this.mapping[n]:this.icon_prefix+n}},{key:"getIcon",value:function(n){var u,e=this.getIconClass(n);if(!e)return null;var t,a=document.createElement("i");return(u=a.classList).add.apply(u,function(d){if(Array.isArray(d))return gl(d)}(t=e.split(" "))||function(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}(t)||function(d,b){if(d){if(typeof d=="string")return gl(d,b);var P=Object.prototype.toString.call(d).slice(8,-1);return P==="Object"&&d.constructor&&(P=d.constructor.name),P==="Map"||P==="Set"?Array.from(d):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?gl(d,b):void 0}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
77
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),a}}])&&sv(s.prototype,r),Object.defineProperty(s,"prototype",{writable:!1}),s;var s,r}();function yl(s){return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},yl(s)}function cv(s,r,n){return r=ls(r),function(u,e){if(e&&(yl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,dd()?Reflect.construct(r,n||[],ls(s).constructor):r.apply(s,n))}function dd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dd=function(){return!!s})()}function ls(s){return ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ls(s)}function vl(s,r){return vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},vl(s,r)}var fv={collapse:"chevron-down",expand:"chevron-right",delete:"trash",edit:"pencil",add:"plus",subtract:"minus",cancel:"floppy-remove",save:"floppy-saved",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"copy",clear:"remove-circle",time:"time",calendar:"calendar",edit_properties:"list"},dv=function(s){function r(){return function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),cv(this,r,["glyphicon glyphicon-",fv])}return function(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),e&&vl(u,e)}(r,s),n=r,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(si);function bl(s){return bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bl(s)}function hv(s,r,n){return r=cs(r),function(u,e){if(e&&(bl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,hd()?Reflect.construct(r,n||[],cs(s).constructor):r.apply(s,n))}function hd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hd=function(){return!!s})()}function cs(s){return cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cs(s)}function wl(s,r){return wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},wl(s,r)}var pv={collapse:"chevron-down",expand:"chevron-right",delete:"trash",edit:"pencil",add:"plus",subtract:"minus",cancel:"ban-circle",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"copy",clear:"remove-circle",time:"time",calendar:"calendar",edit_properties:"list"},mv=function(s){function r(){return function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),hv(this,r,["icon-",pv])}return function(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),e&&wl(u,e)}(r,s),n=r,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(si);function _l(s){return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_l(s)}function gv(s,r,n){return r=fs(r),function(u,e){if(e&&(_l(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,pd()?Reflect.construct(r,n||[],fs(s).constructor):r.apply(s,n))}function pd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pd=function(){return!!s})()}function fs(s){return fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fs(s)}function kl(s,r){return kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},kl(s,r)}var yv={collapse:"caret-square-o-down",expand:"caret-square-o-right",delete:"times",edit:"pencil",add:"plus",subtract:"minus",cancel:"ban",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"files-o",clear:"times-circle-o",time:"clock-o",calendar:"calendar",edit_properties:"list"},vv=function(s){function r(){return function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),gv(this,r,["fa fa-",yv])}return function(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),e&&kl(u,e)}(r,s),n=r,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(si);function xl(s){return xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},xl(s)}function bv(s,r,n){return r=ds(r),function(u,e){if(e&&(xl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,md()?Reflect.construct(r,n||[],ds(s).constructor):r.apply(s,n))}function md(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(md=function(){return!!s})()}function ds(s){return ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ds(s)}function Cl(s,r){return Cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Cl(s,r)}var wv={collapse:"caret-down",expand:"caret-right",delete:"trash",edit:"pen",add:"plus",subtract:"minus",cancel:"ban",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"copy",clear:"times-circle",time:"clock",calendar:"calendar",edit_properties:"list"},_v=function(s){function r(){return function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),bv(this,r,["fas fa-",wv])}return function(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),e&&Cl(u,e)}(r,s),n=r,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(si);function jl(s){return jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},jl(s)}function kv(s,r,n){return r=hs(r),function(u,e){if(e&&(jl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,gd()?Reflect.construct(r,n||[],hs(s).constructor):r.apply(s,n))}function gd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gd=function(){return!!s})()}function hs(s){return hs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hs(s)}function Ol(s,r){return Ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Ol(s,r)}var xv={collapse:"triangle-1-s",expand:"triangle-1-e",delete:"trash",edit:"pencil",add:"plusthick",subtract:"minusthick",cancel:"closethick",save:"disk",moveup:"arrowthick-1-n",moveright:"arrowthick-1-e",movedown:"arrowthick-1-s",moveleft:"arrowthick-1-w",copy:"copy",clear:"circle-close",time:"time",calendar:"calendar",edit_properties:"note"},Cv=function(s){function r(){return function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),kv(this,r,["ui-icon ui-icon-",xv])}return function(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),e&&Ol(u,e)}(r,s),n=r,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(si);function El(s){return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},El(s)}function jv(s,r,n){return r=ps(r),function(u,e){if(e&&(El(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,yd()?Reflect.construct(r,n||[],ps(s).constructor):r.apply(s,n))}function yd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yd=function(){return!!s})()}function ps(s){return ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ps(s)}function Sl(s,r){return Sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Sl(s,r)}var Ov={collapse:"collapse-down",expand:"expand-right",delete:"trash",edit:"pencil",add:"plus",subtract:"minus",cancel:"ban",save:"file",moveup:"arrow-thick-top",moveright:"arrow-thick-right",movedown:"arrow-thick-bottom",moveleft:"arrow-thick-left",copy:"clipboard",clear:"circle-x",time:"clock",calendar:"calendar",edit_properties:"list"},Ev=function(s){function r(){return function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),jv(this,r,["oi oi-",Ov])}return function(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),e&&Sl(u,e)}(r,s),n=r,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(si);function Fl(s){return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fl(s)}function Sv(s,r,n){return r=ms(r),function(u,e){if(e&&(Fl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,vd()?Reflect.construct(r,n||[],ms(s).constructor):r.apply(s,n))}function vd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vd=function(){return!!s})()}function ms(s){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ms(s)}function Pl(s,r){return Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Pl(s,r)}var Fv={collapse:"arrow-down",expand:"arrow-right",delete:"delete",edit:"edit",add:"plus",subtract:"minus",cancel:"cross",save:"check",moveup:"upward",moveright:"forward",movedown:"downward",moveleft:"back",copy:"copy",clear:"close",time:"time",calendar:"bookmark",edit_properties:"menu"},Pv=function(s){function r(){return function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),Sv(this,r,["icon icon-",Fv])}return function(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),e&&Pl(u,e)}(r,s),n=r,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(si);function Tl(s){return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Tl(s)}function Tv(s,r,n){return r=gs(r),function(u,e){if(e&&(Tl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,bd()?Reflect.construct(r,n||[],gs(s).constructor):r.apply(s,n))}function bd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bd=function(){return!!s})()}function gs(s){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gs(s)}function Ll(s,r){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Ll(s,r)}var Lv={collapse:"chevron-down",expand:"chevron-right",delete:"trash",edit:"pencil",add:"plus",subtract:"dash",cancel:"x-circle",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"clipboard",clear:"x-circle",time:"clock",calendar:"calendar",edit_properties:"list-ul"},Av={bootstrap:function(s){function r(){return function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),Tv(this,r,["bi bi-",Lv])}return function(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),e&&Ll(u,e)}(r,s),n=r,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(si),bootstrap3:dv,fontawesome3:mv,fontawesome4:vv,fontawesome5:_v,jqueryui:Cv,openiconic:Ev,spectre:Pv};function ja(s){return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ja(s)}function Dv(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Iv(u.key),u)}}function Iv(s){var r=function(n,u){if(ja(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(ja(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return ja(r)=="symbol"?r:r+""}var wd=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find(function(s){return s in document.documentElement}),ui=function(){return s=function n(u){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{disable_theme_rules:!1};(function(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")})(this,n),this.jsoneditor=u,Object.keys(e).forEach(function(t){u.options[t]!==void 0&&(e[t]=u.options[t])}),this.options=e},r=[{key:"getContainer",value:function(){return document.createElement("div")}},{key:"getOptInCheckbox",value:function(n){var u=document.createElement("span"),e=this.getHiddenLabel(n+" opt-in");e.setAttribute("for",n+"-opt-in"),e.textContent=n+"-opt-in";var t=document.createElement("input");return t.setAttribute("type","checkbox"),t.setAttribute("style","margin: 0 10px 0 0;"),t.setAttribute("id",n+"-opt-in"),t.classList.add("json-editor-opt-in"),u.appendChild(t),u.appendChild(e),{label:e,checkbox:t,container:u}}},{key:"getOptInSwitch",value:function(n){return this.getOptInCheckbox()}},{key:"getFloatRightLinkHolder",value:function(){var n=document.createElement("div");return n.classList.add("je-float-right-linkholder"),n}},{key:"getModal",value:function(){var n=document.createElement("div");return n.style.display="none",n.classList.add("je-modal"),n}},{key:"getGridContainer",value:function(){return document.createElement("div")}},{key:"getGridRow",value:function(){var n=document.createElement("div");return n.classList.add("row"),n}},{key:"getGridColumn",value:function(){return document.createElement("div")}},{key:"setGridColumnSize",value:function(n,u){}},{key:"getLink",value:function(n){var u=document.createElement("a");return u.setAttribute("href","#"),u.appendChild(document.createTextNode(n)),u}},{key:"disableHeader",value:function(n){n.style.color="#ccc"}},{key:"disableLabel",value:function(n){n.style.color="#ccc"}},{key:"enableHeader",value:function(n){n.style.color=""}},{key:"enableLabel",value:function(n){n.style.color=""}},{key:"getInfoButton",value:function(n){var u=document.createElement("span");u.innerText="ⓘ",u.classList.add("je-infobutton-icon");var e=document.createElement("span");return e.classList.add("je-infobutton-tooltip"),e.innerText=n,u.onmouseover=function(){e.style.visibility="visible"},u.onmouseleave=function(){e.style.visibility="hidden"},u.appendChild(e),u}},{key:"getFormInputLabel",value:function(n,u){var e=document.createElement("label");return e.appendChild(document.createTextNode(n)),u&&e.classList.add("required"),e}},{key:"getLabelLike",value:function(n,u){var e=document.createElement("b");return e.appendChild(document.createTextNode(n)),u&&e.classList.add("required"),e}},{key:"getHeader",value:function(n,u){var e=document.createElement("span");return typeof n=="string"?e.textContent=n:e.appendChild(n),e.classList.add("je-header"),e}},{key:"getCheckbox",value:function(){var n=this.getFormInputField("checkbox");return n.classList.add("je-checkbox"),n}},{key:"getCheckboxLabel",value:function(n,u){var e=document.createElement("label");return e.appendChild(document.createTextNode(" ".concat(n))),u&&e.classList.add("required"),e}},{key:"getMultiCheckboxHolder",value:function(n,u,e,t){var a=document.createElement("div");return a.classList.add("control-group"),u&&(u.style.display="block",a.appendChild(u),t&&u.appendChild(t)),Object.values(n).forEach(function(d){d.style.display="inline-block",d.style.marginRight="20px",a.appendChild(d)}),e&&a.appendChild(e),a}},{key:"getFormCheckboxControl",value:function(n,u,e){var t=document.createElement("div");return t.appendChild(n),u.style.width="auto",n.insertBefore(u,n.firstChild),e&&t.classList.add("je-checkbox-control--compact"),t}},{key:"getFormRadio",value:function(n){var u=this.getFormInputField("radio");return Object.keys(n).forEach(function(e){return u.setAttribute(e,n[e])}),u.classList.add("je-radio"),u}},{key:"getFormRadioLabel",value:function(n,u){var e=document.createElement("label");return e.appendChild(document.createTextNode(" ".concat(n))),u&&e.classList.add("required"),e}},{key:"getFormRadioControl",value:function(n,u,e,t){var a=document.createElement("div");return a.appendChild(n),u.style.width="auto",n.insertBefore(u,n.firstChild),e&&a.classList.add("je-radio-control--compact"),u.tagName.toLowerCase()!=="div"&&t&&n&&u&&(u.setAttribute("id",t),u.setAttribute("aria-labelledby",t),n.setAttribute("for",t)),a}},{key:"getSelectInput",value:function(n,u){var e=arguments.length>2&&arguments[2]!==void 0&&arguments[2],t=document.createElement("select");return n&&this.setSelectOptions(t,n,[],e),t}},{key:"getSwitcher",value:function(n){var u=this.getSelectInput(n,!1);return u.classList.add("je-switcher"),u}},{key:"getSwitcherOptions",value:function(n){return n.getElementsByTagName("option")}},{key:"setSwitcherOptions",value:function(n,u,e){this.setSelectOptions(n,u,e)}},{key:"setSelectOptions",value:function(n,u){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],t=arguments.length>3&&arguments[3]!==void 0&&arguments[3],a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:" ";if(n.innerHTML="",t){var d=document.createElement("option");d.setAttribute("value","_placeholder_"),d.textContent=a,d.setAttribute("disabled",""),d.setAttribute("hidden",""),n.appendChild(d)}for(var b=0;b<u.length;b++){var P=document.createElement("option");P.setAttribute("value",u[b]),P.textContent=e[b]||u[b],n.appendChild(P)}}},{key:"getTextareaInput",value:function(){var n=document.createElement("textarea");return n.classList.add("je-textarea"),n}},{key:"getHiddenLabel",value:function(n){var u=document.createElement("label");return u.textContent=n,u.setAttribute("style","position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0,0,0,0);border: 0;"),u}},{key:"visuallyHidden",value:function(n){n&&n.setAttribute("style","position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0,0,0,0);border: 0;")}},{key:"getHiddenText",value:function(n){var u=document.createElement("span");return u.textContent=n,u.setAttribute("style","position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0,0,0,0);border: 0;"),u}},{key:"getRangeInput",value:function(n,u,e,t,a){var d=this.getFormInputField("range");return d.setAttribute("min",n),d.setAttribute("max",u),d.setAttribute("step",e),t&&(t.setAttribute("id",a+"-description"),d.setAttribute("aria-describedby",a+"-description")),d}},{key:"getStepperButtons",value:function(n){var u=document.createElement("div"),e=document.createElement("button");e.setAttribute("type","button"),e.classList.add("stepper-down");var t=document.createElement("button");t.setAttribute("type","button"),t.classList.add("stepper-up"),n.getAttribute("readonly")&&(e.setAttribute("disabled",!0),t.setAttribute("disabled",!0)),e.textContent="-",t.textContent="+";var a=function(P,I){P.value=Number(I||P.value),P.setAttribute("initialized","1")},d=n.getAttribute("min"),b=n.getAttribute("max");return e.addEventListener("click",function(){n.getAttribute("initialized")?d?Number(n.value)>Number(d)&&n.stepDown():n.stepDown():a(n,d),x(n,"change")}),t.addEventListener("click",function(){n.getAttribute("initialized")?b?Number(n.value)<Number(b)&&n.stepUp():n.stepUp():a(n,d),x(n,"change")}),u.appendChild(e),u.appendChild(t),u}},{key:"getRangeOutput",value:function(n){var u=document.createElement("output"),e=function(t){u.value=t.currentTarget.value};return n.addEventListener("change",e,!1),n.addEventListener("input",e,!1),u}},{key:"getRangeControl",value:function(n,u){var e=document.createElement("div");return e.classList.add("je-range-control"),u&&e.appendChild(u),e.appendChild(n),e}},{key:"getFormInputField",value:function(n){var u=document.createElement("input");return u.setAttribute("type",n),u}},{key:"afterInputReady",value:function(n){}},{key:"getFormControl",value:function(n,u,e,t,a){var d=document.createElement("div");return d.classList.add("form-control"),n&&(d.appendChild(n),a&&n.setAttribute("for",a)),u.type!=="checkbox"&&u.type!=="radio"||!n?(t&&n&&n.appendChild(t),d.appendChild(u)):(u.style.width="auto",n.insertBefore(u,n.firstChild),t&&n.appendChild(t)),u.tagName.toLowerCase()!=="div"&&u&&n&&a&&(n.setAttribute("for",a),u.setAttribute("id",a)),u.tagName.toLowerCase()!=="div"&&u&&e&&(e.setAttribute("id",a+"-description"),u.setAttribute("aria-describedby",a+"-description")),e&&d.appendChild(e),d}},{key:"getIndentedPanel",value:function(){var n=document.createElement("div");return n.classList.add("je-indented-panel"),n}},{key:"getTopIndentedPanel",value:function(){var n=document.createElement("div");return n.classList.add("je-indented-panel--top"),n}},{key:"getChildEditorHolder",value:function(){return document.createElement("div")}},{key:"getDescription",value:function(n){var u=document.createElement("p");return window.DOMPurify?u.innerHTML=window.DOMPurify.sanitize(n):u.textContent=this.cleanText(n),u}},{key:"getCheckboxDescription",value:function(n){return this.getDescription(n)}},{key:"getFormInputDescription",value:function(n){return this.getDescription(n)}},{key:"getButtonHolder",value:function(){return document.createElement("span")}},{key:"getHeaderButtonHolder",value:function(){return this.getButtonHolder()}},{key:"getFormButtonHolder",value:function(n){return this.getButtonHolder()}},{key:"getButton",value:function(n,u,e){var t=document.createElement("button");return t.type="button",this.setButtonText(t,n,u,e),t}},{key:"getFormButton",value:function(n,u,e){return this.getButton(n,u,e)}},{key:"setButtonText",value:function(n,u,e,t){for(;n.firstChild;)n.removeChild(n.firstChild);if(e&&(n.appendChild(e),u=" ".concat(u)),!this.jsoneditor.options.iconlib||!this.jsoneditor.options.remove_button_labels||!e){var a=document.createElement("span");a.appendChild(document.createTextNode(u)),n.appendChild(a)}t&&n.setAttribute("title",t)}},{key:"getTableContainer",value:function(){return document.createElement("div")}},{key:"getTable",value:function(){return document.createElement("table")}},{key:"getTableRow",value:function(){return document.createElement("tr")}},{key:"getTableHead",value:function(){return document.createElement("thead")}},{key:"getTableBody",value:function(){return document.createElement("tbody")}},{key:"getTableHeaderCell",value:function(n){var u=document.createElement("th");return u.textContent=n,u}},{key:"getTableCell",value:function(){return document.createElement("td")}},{key:"getErrorMessage",value:function(n){var u=document.createElement("p");return u.style=u.style||{},u.style.color="red",u.appendChild(document.createTextNode(n)),u}},{key:"addInputError",value:function(n,u){n.errmsg.setAttribute("role","alert")}},{key:"removeInputError",value:function(n){}},{key:"addTableRowError",value:function(n){}},{key:"removeTableRowError",value:function(n){}},{key:"getTabHolder",value:function(n){var u=n===void 0?"":n,e=document.createElement("div");return e.innerHTML="<div class='je-tabholder tabs'></div><div class='content' id='".concat(u,"'></div><div class='je-tabholder--clear'></div>"),e}},{key:"getTopTabHolder",value:function(n){var u=n===void 0?"":n,e=document.createElement("div");return e.innerHTML="<div class='tabs je-tabholder--top'></div><div class='je-tabholder--clear'></div><div class='content' id='".concat(u,"'></div>"),e}},{key:"applyStyles",value:function(n,u){Object.keys(u).forEach(function(e){return n.style[e]=u[e]})}},{key:"closest",value:function(n,u){for(;n&&n!==document;){if(!n[wd])return!1;if(n[wd](u))return n;n=n.parentNode}return!1}},{key:"insertBasicTopTab",value:function(n,u){u.firstChild.insertBefore(n,u.firstChild.firstChild)}},{key:"getTab",value:function(n,u){var e=document.createElement("div");return e.appendChild(n),e.id=u,e.classList.add("je-tab"),e}},{key:"getTopTab",value:function(n,u){var e=document.createElement("div");return e.appendChild(n),e.id=u,e.classList.add("je-tab--top"),e}},{key:"getTabContentHolder",value:function(n){return n.children[1]}},{key:"getTopTabContentHolder",value:function(n){return n.children[1]}},{key:"getTabContent",value:function(){return this.getIndentedPanel()}},{key:"getTopTabContent",value:function(){return this.getTopIndentedPanel()}},{key:"markTabActive",value:function(n){this.applyStyles(n.tab,{opacity:1,background:"white"}),n.rowPane!==void 0?n.rowPane.style.display="":n.container.style.display=""}},{key:"markTabInactive",value:function(n){this.applyStyles(n.tab,{opacity:.5,background:""}),n.rowPane!==void 0?n.rowPane.style.display="none":n.container.style.display="none"}},{key:"addTab",value:function(n,u){n.children[0].appendChild(u)}},{key:"addTopTab",value:function(n,u){n.children[0].appendChild(u)}},{key:"getBlockLink",value:function(){var n=document.createElement("a");return n.classList.add("je-block-link"),n}},{key:"getBlockLinkHolder",value:function(){return document.createElement("div")}},{key:"getLinksHolder",value:function(){return document.createElement("div")}},{key:"createMediaLink",value:function(n,u,e){n.appendChild(u),e.classList.add("je-media"),n.appendChild(e)}},{key:"createImageLink",value:function(n,u,e){n.appendChild(u),u.appendChild(e)}},{key:"getFirstTab",value:function(n){return n.firstChild.firstChild}},{key:"getInputGroup",value:function(n,u){}},{key:"cleanText",value:function(n){var u=document.createElement("div");return u.innerHTML=n,u.textContent||u.innerText}},{key:"getDropZone",value:function(n){var u=document.createElement("div");return u.setAttribute("data-text",n),u.classList.add("je-dropzone"),u}},{key:"getUploadPreview",value:function(n,u,e){var t=document.createElement("div");if(t.classList.add("je-upload-preview"),n.mimeType.substr(0,5)==="image"){var a=document.createElement("img");a.src=e,t.appendChild(a)}var d=document.createElement("div");d.innerHTML+="<strong>Name:</strong> ".concat(n.name,"<br><strong>Type:</strong> ").concat(n.type,"<br><strong>Size:</strong> ").concat(n.formattedSize),t.appendChild(d),t.appendChild(u);var b=document.createElement("div");return b.style.clear="left",t.appendChild(b),t}},{key:"getProgressBar",value:function(){var n=document.createElement("progress");return n.setAttribute("max",100),n.setAttribute("value",0),n}},{key:"updateProgressBar",value:function(n,u){n&&n.setAttribute("value",u)}},{key:"updateProgressBarUnknown",value:function(n){n&&n.removeAttribute("value")}}],r&&Dv(s.prototype,r),Object.defineProperty(s,"prototype",{writable:!1}),s;var s,r}();function Ro(s){return Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ro(s)}function Mv(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Rv(u.key),u)}}function Rv(s){var r=function(n,u){if(Ro(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Ro(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Ro(r)=="symbol"?r:r+""}function Nv(s,r,n){return r=Rn(r),function(u,e){if(e&&(Ro(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,_d()?Reflect.construct(r,n||[],Rn(s).constructor):r.apply(s,n))}function _d(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_d=function(){return!!s})()}function Zi(){return Zi=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Rn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Zi.apply(this,arguments)}function Rn(s){return Rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rn(s)}function Al(s,r){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Al(s,r)}var kd=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Nv(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Al(e,t)}(r,s),n=r,(u=[{key:"getFormInputLabel",value:function(e,t){var a=Zi(Rn(r.prototype),"getFormInputLabel",this).call(this,e,t);return a.classList.add("je-form-input-label"),a}},{key:"getFormInputDescription",value:function(e){var t=Zi(Rn(r.prototype),"getFormInputDescription",this).call(this,e);return t.classList.add("je-form-input-label"),t}},{key:"getIndentedPanel",value:function(){var e=Zi(Rn(r.prototype),"getIndentedPanel",this).call(this);return e.classList.add("je-indented-panel"),e}},{key:"getTopIndentedPanel",value:function(){return this.getIndentedPanel()}},{key:"getChildEditorHolder",value:function(){var e=Zi(Rn(r.prototype),"getChildEditorHolder",this).call(this);return e.classList.add("je-child-editor-holder"),e}},{key:"getHeaderButtonHolder",value:function(){var e=this.getButtonHolder();return e.classList.add("je-header-button-holder"),e}},{key:"getTable",value:function(){var e=Zi(Rn(r.prototype),"getTable",this).call(this);return e.classList.add("je-table"),e}},{key:"addInputError",value:function(e,t){var a=this.closest(e,".form-control")||e.controlgroup;e.errmsg?e.errmsg.style.display="block":(e.errmsg=document.createElement("div"),e.errmsg.setAttribute("class","errmsg"),e.errmsg.style=e.errmsg.style||{},e.errmsg.style.color="red",a.appendChild(e.errmsg)),e.errmsg.innerHTML="",e.errmsg.appendChild(document.createTextNode(t)),e.errmsg.setAttribute("role","alert")}},{key:"removeInputError",value:function(e){e.style&&(e.style.borderColor=""),e.errmsg&&(e.errmsg.style.display="none")}}])&&Mv(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(ui);function No(s){return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},No(s)}function Bv(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Hv(u.key),u)}}function Hv(s){var r=function(n,u){if(No(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(No(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return No(r)=="symbol"?r:r+""}function Vv(s,r,n){return r=Nn(r),function(u,e){if(e&&(No(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,xd()?Reflect.construct(r,n||[],Nn(s).constructor):r.apply(s,n))}function xd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xd=function(){return!!s})()}function Xi(){return Xi=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Nn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Xi.apply(this,arguments)}function Nn(s){return Nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nn(s)}function Dl(s,r){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Dl(s,r)}kd.rules={".je-form-input-label":"display:block;margin-bottom:3px;font-weight:bold",".je-form-input-description":"display:inline-block;margin:0;font-size:0.8em;font-style:italic",".je-indented-panel":"padding:5px;margin:10px;border-radius:3px;border:1px%20solid%20%23ddd",".je-child-editor-holder":"margin-bottom:8px",".je-header-button-holder":"display:inline-block;margin-left:10px;font-size:0.8em;vertical-align:middle",".je-table":"margin-bottom:5px;border-bottom:1px%20solid%20%23ccc",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"};var Cd=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Vv(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dl(e,t)}(r,s),n=r,(u=[{key:"getOptInSwitch",value:function(e){var t=this.getHiddenLabel(e+" opt-in");t.setAttribute("for",e+"-opt-in");var a=document.createElement("label");a.classList.add("switch");var d=document.createElement("input");d.setAttribute("type","checkbox"),d.setAttribute("id",e+"-opt-in"),d.classList.add("json-editor-opt-in");var b=document.createElement("span");b.classList.add("switch-slider");var P=document.createElement("span");return P.classList.add("sr-only"),P.textContent=e+"-opt-in",a.appendChild(P),a.appendChild(d),a.appendChild(b),{label:t,checkbox:d,container:a}}},{key:"getSelectInput",value:function(e,t){var a=Xi(Nn(r.prototype),"getSelectInput",this).call(this,e);return a.classList.add("form-control"),a}},{key:"setGridColumnSize",value:function(e,t,a){e.classList.add("col-md-".concat(t)),a&&e.classList.add("col-md-offset-".concat(a))}},{key:"afterInputReady",value:function(e){e.controlgroup||(e.controlgroup=this.closest(e,".form-group"),this.closest(e,".compact")&&(e.controlgroup.style.marginBottom=0))}},{key:"getTextareaInput",value:function(){var e=document.createElement("textarea");return e.classList.add("form-control"),e}},{key:"getRangeInput",value:function(e,t,a,d,b){return Xi(Nn(r.prototype),"getRangeInput",this).call(this,e,t,a,d,b)}},{key:"getFormInputField",value:function(e){var t=Xi(Nn(r.prototype),"getFormInputField",this).call(this,e);return e!=="checkbox"&&e!=="radio"&&t.classList.add("form-control"),t}},{key:"getHiddenLabel",value:function(e){var t=document.createElement("label");return t.textContent=e,t.classList.add("sr-only"),t}},{key:"visuallyHidden",value:function(e){e&&e.classList.add("sr-only")}},{key:"getHiddenText",value:function(e){var t=document.createElement("span");return t.textContent=e,t.classList.add("sr-only"),t}},{key:"getFormControl",value:function(e,t,a,d,b){var P=document.createElement("div");return!e||t.type!=="checkbox"&&t.type!=="radio"?(P.classList.add("form-group"),e&&(e.classList.add("control-label"),P.appendChild(e),d&&e.appendChild(d)),P.appendChild(t)):(P.classList.add(t.type),d&&e.appendChild(d),e.insertBefore(t,e.firstChild),P.appendChild(e)),a&&P.appendChild(a),t.tagName.toLowerCase()!=="div"&&t&&e&&b&&(e.setAttribute("for",b),t.setAttribute("id",b)),t.tagName.toLowerCase()!=="div"&&t&&a&&(a.setAttribute("id",b+"-description"),t.setAttribute("aria-describedby",b+"-description")),P}},{key:"getIndentedPanel",value:function(){var e=document.createElement("div");return e.classList.add("well","well-sm"),e.style.paddingBottom=0,e}},{key:"getInfoButton",value:function(e){var t=document.createElement("span");t.classList.add("glyphicon","glyphicon-info-sign","pull-right"),t.style.padding=".25rem",t.style.position="relative",t.style.display="inline-block";var a=document.createElement("span");return a.style["font-family"]="sans-serif",a.style.visibility="hidden",a.style["background-color"]="rgba(50, 50, 50, .75)",a.style.margin="0 .25rem",a.style.color="#FAFAFA",a.style.padding=".5rem 1rem",a.style["border-radius"]=".25rem",a.style.width="25rem",a.style.position="absolute",a.innerText=e,t.onmouseover=function(){a.style.visibility="visible"},t.onmouseleave=function(){a.style.visibility="hidden"},t.appendChild(a),t}},{key:"getFormInputDescription",value:function(e){var t=document.createElement("p");return t.classList.add("help-block"),window.DOMPurify?t.innerHTML=window.DOMPurify.sanitize(e):t.textContent=this.cleanText(e),t}},{key:"getHeaderContainer",value:function(){return document.createElement("div")}},{key:"getHeader",value:function(e,t){var a=document.createElement("span");return a.classList.add("h3"),typeof e=="string"?a.textContent=e:a.appendChild(e),a}},{key:"getHeaderButtonHolder",value:function(){var e=this.getButtonHolder();return e.style.marginLeft="10px",e}},{key:"getButtonHolder",value:function(){var e=document.createElement("span");return e.classList.add("btn-group"),e}},{key:"getButton",value:function(e,t,a){var d=Xi(Nn(r.prototype),"getButton",this).call(this,e,t,a);return d.classList.add("btn","btn-default"),d}},{key:"getTableContainer",value:function(){var e=Xi(Nn(r.prototype),"getTableContainer",this).call(this);return e.classList.add("table-responsive"),e}},{key:"getTable",value:function(){var e=document.createElement("table");return e.classList.add("table","table-bordered"),e.style.width="auto",e.style.maxWidth="none",e}},{key:"addInputError",value:function(e,t){e.controlgroup&&(e.controlgroup.classList.add("has-error"),e.errmsg?e.errmsg.style.display="":(e.errmsg=document.createElement("p"),e.errmsg.classList.add("help-block","errormsg"),e.controlgroup.appendChild(e.errmsg)),e.errmsg.textContent=t,e.errmsg.setAttribute("role","alert"))}},{key:"removeInputError",value:function(e){e.errmsg&&(e.errmsg.style.display="none",e.controlgroup.classList.remove("has-error"))}},{key:"getTabHolder",value:function(e){var t=e===void 0?"":e,a=document.createElement("div");return a.innerHTML="<ul class='col-md-2 nav nav-pills nav-stacked' id='".concat(t,"' role='tablist'></ul><div class='col-md-10 tab-content active well well-small' id='").concat(t,"'></div>"),a}},{key:"getTopTabHolder",value:function(e){var t=e===void 0?"":e,a=document.createElement("div");return a.innerHTML="<ul class='nav nav-tabs' id='".concat(t,"' role='tablist'></ul><div class='tab-content active well well-small' id='").concat(t,"'></div>"),a}},{key:"getTab",value:function(e,t){var a=document.createElement("li");a.setAttribute("role","presentation");var d=document.createElement("a");return d.setAttribute("href","#".concat(t)),d.appendChild(e),d.setAttribute("aria-controls",t),d.setAttribute("role","tab"),d.setAttribute("data-toggle","tab"),a.appendChild(d),a}},{key:"getTopTab",value:function(e,t){var a=document.createElement("li");a.setAttribute("role","presentation");var d=document.createElement("a");return d.setAttribute("href","#".concat(t)),d.appendChild(e),d.setAttribute("aria-controls",t),d.setAttribute("role","tab"),d.setAttribute("data-toggle","tab"),a.appendChild(d),a}},{key:"getTabContent",value:function(){var e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}},{key:"getTopTabContent",value:function(){var e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}},{key:"markTabActive",value:function(e){e.tab.classList.add("active"),e.rowPane!==void 0?e.rowPane.classList.add("active"):e.container.classList.add("active")}},{key:"markTabInactive",value:function(e){e.tab.classList.remove("active"),e.rowPane!==void 0?e.rowPane.classList.remove("active"):e.container.classList.remove("active")}},{key:"getProgressBar",value:function(){var e=document.createElement("div");e.classList.add("progress");var t=document.createElement("div");return t.classList.add("progress-bar"),t.setAttribute("role","progressbar"),t.setAttribute("aria-valuenow",0),t.setAttribute("aria-valuemin",0),t.setAttribute("aria-valuenax",100),t.innerHTML="".concat(0,"%"),e.appendChild(t),e}},{key:"updateProgressBar",value:function(e,t){if(e){var a=e.firstChild,d="".concat(t,"%");a.setAttribute("aria-valuenow",t),a.style.width=d,a.innerHTML=d}}},{key:"updateProgressBarUnknown",value:function(e){if(e){var t=e.firstChild;e.classList.add("progress","progress-striped","active"),t.removeAttribute("aria-valuenow"),t.style.width="100%",t.innerHTML=""}}},{key:"getInputGroup",value:function(e,t){if(e){var a=document.createElement("div");a.classList.add("input-group"),a.appendChild(e);var d=document.createElement("div");d.classList.add("input-group-btn"),a.appendChild(d);for(var b=0;b<t.length;b++)d.appendChild(t[b]);return a}}}])&&Bv(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(ui);function Bo(s){return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bo(s)}function qv(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,zv(u.key),u)}}function zv(s){var r=function(n,u){if(Bo(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Bo(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Bo(r)=="symbol"?r:r+""}function Wv(s,r,n){return r=Bn(r),function(u,e){if(e&&(Bo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,jd()?Reflect.construct(r,n||[],Bn(s).constructor):r.apply(s,n))}function jd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jd=function(){return!!s})()}function eo(){return eo=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Bn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},eo.apply(this,arguments)}function Bn(s){return Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bn(s)}function Il(s,r){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Il(s,r)}Cd.rules={".switch":"position:relative;display:inline-block;width:28px;height:16px;margin-right:10px",".switch input":"opacity:0;width:0;height:0",".switch-slider":"position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:%23ccc;transition:.1s;border-radius:34px",".switch-slider:before":"position:absolute;content:%22%22;height:12px;width:12px;left:1px;top:2px;background-color:white;transition:.1s;border-radius:50%25","input:checked + .switch-slider":"background-color:%232196F3","input:focus + .switch-slider":"box-shadow:0%200%201px%20%232196F3","input:checked + .switch-slider:before":"transform:translateX(12px)","input:disabled + .switch-slider":"opacity:0.5"};var Uv={disable_theme_rules:!1,input_size:"normal",custom_forms:!1,object_indent:!0,object_background:"bg-light",object_text:"",table_border:!1,table_zebrastyle:!1,tooltip:"bootstrap"},Od=function(s){function r(e){return function(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}(this,r),Wv(this,r,[e,Uv])}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Il(e,t)}(r,s),n=r,(u=[{key:"getSelectInput",value:function(e,t){var a=eo(Bn(r.prototype),"getSelectInput",this).call(this,e);return a.classList.add("form-control"),this.options.custom_forms===!1?(this.options.input_size==="small"&&a.classList.add("form-control-sm"),this.options.input_size==="large"&&a.classList.add("form-control-lg")):(a.classList.remove("form-control"),a.classList.add("custom-select"),this.options.input_size==="small"&&a.classList.add("custom-select-sm"),this.options.input_size==="large"&&a.classList.add("custom-select-lg")),a}},{key:"getContainer",value:function(){var e=document.createElement("div");return this.options.object_indent||e.classList.add("je-noindent"),e}},{key:"getOptInSwitch",value:function(e){var t=this.getHiddenLabel(e+" opt-in");t.setAttribute("for",e+"-opt-in");var a=document.createElement("div");a.classList.add("custom-control","custom-switch","d-inline-block","fs-6");var d=document.createElement("input");d.setAttribute("type","checkbox"),d.setAttribute("id",e+"-opt-in"),d.classList.add("custom-control-input","json-editor-opt-in");var b=document.createElement("label");b.setAttribute("for",e+"-opt-in"),b.classList.add("custom-control-label");var P=document.createElement("span");return P.classList.add("sr-only"),P.textContent=e+"-opt-in",b.appendChild(P),a.appendChild(d),a.appendChild(b),{label:t,checkbox:d,container:a}}},{key:"setGridColumnSize",value:function(e,t,a){e.classList.add("col-md-".concat(t)),a&&e.classList.add("offset-md-".concat(a))}},{key:"afterInputReady",value:function(e){if(!e.controlgroup){var t=e.name;e.id=t;var a=e.parentNode.parentNode.getElementsByTagName("label")[0];a&&(a.htmlFor=t),e.controlgroup=this.closest(e,".form-group")}}},{key:"getTextareaInput",value:function(){var e=document.createElement("textarea");return e.classList.add("form-control"),this.options.input_size==="small"&&e.classList.add("form-control-sm"),this.options.input_size==="large"&&e.classList.add("form-control-lg"),e}},{key:"getRangeInput",value:function(e,t,a,d,b){var P=eo(Bn(r.prototype),"getRangeInput",this).call(this,e,t,a,d,b);return this.options.custom_forms===!0&&(P.classList.remove("form-control"),P.classList.add("custom-range")),P}},{key:"getStepperButtons",value:function(e){var t=document.createElement("div"),a=document.createElement("div"),d=document.createElement("div"),b=document.createElement("button");b.setAttribute("type","button");var P=document.createElement("button");P.setAttribute("type","button"),t.appendChild(a),t.appendChild(e),t.appendChild(d),a.appendChild(b),d.appendChild(P),t.classList.add("input-group"),a.classList.add("input-group-prepend"),d.classList.add("input-group-append"),b.classList.add("btn"),b.classList.add("btn-secondary"),b.classList.add("stepper-down"),P.classList.add("btn"),P.classList.add("btn-secondary"),P.classList.add("stepper-up"),e.getAttribute("readonly")&&(b.setAttribute("disabled",!0),P.setAttribute("disabled",!0)),b.textContent="-",P.textContent="+";var I=function(ae,se){ae.value=Number(se||ae.value),ae.setAttribute("initialized","1")},q=e.getAttribute("min"),K=e.getAttribute("max");return e.addEventListener("change",function(){e.getAttribute("initialized")||e.setAttribute("initialized","1")}),b.addEventListener("click",function(){e.getAttribute("initialized")?q?Number(e.value)>Number(q)&&e.stepDown():e.stepDown():I(e,q),x(e,"change")}),P.addEventListener("click",function(){e.getAttribute("initialized")?K?Number(e.value)<Number(K)&&e.stepUp():e.stepUp():I(e,q),x(e,"change")}),t}},{key:"getFormInputField",value:function(e){var t=eo(Bn(r.prototype),"getFormInputField",this).call(this,e);return e!=="checkbox"&&e!=="radio"&&e!=="file"&&(t.classList.add("form-control"),this.options.input_size==="small"&&t.classList.add("form-control-sm"),this.options.input_size==="large"&&t.classList.add("form-control-lg")),e==="file"&&t.classList.add("form-control-file"),t}},{key:"getHiddenLabel",value:function(e){var t=document.createElement("label");return t.textContent=e,t.classList.add("sr-only"),t}},{key:"visuallyHidden",value:function(e){e&&e.classList.add("sr-only")}},{key:"getHiddenText",value:function(e){var t=document.createElement("span");return t.textContent=e,t.classList.add("sr-only"),t}},{key:"getFormControl",value:function(e,t,a,d,b){var P=document.createElement("div");if(P.classList.add("form-group"),!e||t.type!=="checkbox"&&t.type!=="radio")e&&(P.appendChild(e),d&&P.appendChild(d)),P.appendChild(t);else{var I=document.createElement("div");this.options.custom_forms===!1?(I.classList.add("form-check"),t.classList.add("form-check-input"),e.classList.add("form-check-label")):(I.classList.add("custom-control"),t.classList.add("custom-control-input"),e.classList.add("custom-control-label"),t.type==="checkbox"?I.classList.add("custom-checkbox"):I.classList.add("custom-radio")),I.appendChild(t),I.appendChild(e),d&&I.appendChild(d),P.appendChild(I)}return a&&P.appendChild(a),t.tagName.toLowerCase()!=="div"&&t&&e&&b&&(e.setAttribute("for",b),t.setAttribute("id",b)),t.tagName.toLowerCase()!=="div"&&t&&a&&(a.setAttribute("id",b+"-description"),t.setAttribute("aria-describedby",b+"-description")),P}},{key:"getInfoButton",value:function(e){var t=document.createElement("button");t.type="button",t.classList.add("ml-3","jsoneditor-twbs4-text-button"),t.setAttribute("data-toggle","tooltip"),t.setAttribute("data-placement","auto"),t.title=e;var a=document.createTextNode("ⓘ");return t.appendChild(a),this.options.tooltip==="bootstrap"?window.jQuery&&window.jQuery().tooltip?window.jQuery(t).tooltip():console.warn("Could not find popper jQuery plugin of Bootstrap."):this.options.tooltip==="css"&&t.classList.add("je-tooltip"),t}},{key:"getCheckbox",value:function(){return this.getFormInputField("checkbox")}},{key:"getMultiCheckboxHolder",value:function(e,t,a,d){var b=document.createElement("div");b.classList.add("form-group"),t&&(b.appendChild(t),d&&t.appendChild(d));var P=document.createElement("div");return Object.values(e).forEach(function(I){var q=I.firstChild;P.appendChild(q)}),b.appendChild(P),a&&b.appendChild(a),b}},{key:"getFormRadio",value:function(e){var t=this.getFormInputField("radio");for(var a in e)t.setAttribute(a,e[a]);return this.options.custom_forms===!1?t.classList.add("form-check-input"):t.classList.add("custom-control-input"),t}},{key:"getFormRadioLabel",value:function(e,t){var a=document.createElement("label");return this.options.custom_forms===!1?a.classList.add("form-check-label"):a.classList.add("custom-control-label"),a.appendChild(document.createTextNode(e)),a}},{key:"getFormRadioControl",value:function(e,t,a){var d=document.createElement("div");return this.options.custom_forms===!1?d.classList.add("form-check"):d.classList.add("custom-control","custom-radio"),d.appendChild(t),d.appendChild(e),a&&(this.options.custom_forms===!1?d.classList.add("form-check-inline"):d.classList.add("custom-control-inline")),d}},{key:"getIndentedPanel",value:function(){var e=document.createElement("div");return e.classList.add("card","card-body","mb-3"),this.options.object_background&&e.classList.add(this.options.object_background),this.options.object_text&&e.classList.add(this.options.object_text),e}},{key:"getFormInputDescription",value:function(e){var t=document.createElement("small");return t.classList.add("form-text"),window.DOMPurify?t.innerHTML=window.DOMPurify.sanitize(e):t.textContent=this.cleanText(e),t}},{key:"getHeader",value:function(e,t){var a=document.createElement("span");return a.classList.add("h3"),a.classList.add("card-title"),a.classList.add("level-"+t),typeof e=="string"?a.textContent=e:a.appendChild(e),a.style.display="inline-block",a}},{key:"getHeaderButtonHolder",value:function(){return this.getButtonHolder()}},{key:"getButtonHolder",value:function(){var e=document.createElement("span");return e.classList.add("btn-group"),e}},{key:"getFormButtonHolder",value:function(e){var t=this.getButtonHolder();return t.classList.add("d-block"),e==="center"?t.classList.add("text-center"):e==="right"&&t.classList.add("text-right"),t}},{key:"getButton",value:function(e,t,a){var d=eo(Bn(r.prototype),"getButton",this).call(this,e,t,a);return d.classList.add("btn","btn-secondary","btn-sm"),d}},{key:"getTableContainer",value:function(){var e=eo(Bn(r.prototype),"getTableContainer",this).call(this);return e.classList.add("table-responsive"),e}},{key:"getTable",value:function(){var e=document.createElement("table");return e.classList.add("table","table-sm"),this.options.table_border&&e.classList.add("table-bordered"),this.options.table_zebrastyle&&e.classList.add("table-striped"),e}},{key:"getErrorMessage",value:function(e){var t=document.createElement("div");return t.classList.add("alert","alert-danger"),t.setAttribute("role","alert"),t.appendChild(document.createTextNode(e)),t}},{key:"addInputError",value:function(e,t){e.controlgroup&&(e.controlgroup.classList.add("is-invalid"),e.errmsg||(e.errmsg=document.createElement("p"),e.errmsg.classList.add("invalid-feedback"),e.controlgroup.appendChild(e.errmsg),e.errmsg.style.display="block"),e.errmsg.style.display="block",e.errmsg.textContent=t,e.errmsg.setAttribute("role","alert"))}},{key:"removeInputError",value:function(e){e.errmsg&&(e.errmsg.style.display="none",e.controlgroup.classList.remove("is-invalid"))}},{key:"getTabHolder",value:function(e){var t=document.createElement("div"),a=e===void 0?"":e;return t.innerHTML="<div class='col-md-2' id='".concat(a,"'><ul class='nav flex-column nav-pills'></ul></div><div class='col-md-10'><div class='tab-content' id='").concat(a,"'></div></div>"),t.classList.add("row"),t}},{key:"addTab",value:function(e,t){e.children[0].children[0].appendChild(t)}},{key:"getTabContentHolder",value:function(e){return e.children[1].children[0]}},{key:"getTopTabHolder",value:function(e){var t=e===void 0?"":e,a=document.createElement("div");return a.classList.add("card"),a.innerHTML="<div class='card-header'><ul class='nav nav-tabs card-header-tabs' id='".concat(t,"'></ul></div><div class='card-body'><div class='tab-content' id='").concat(t,"'></div></div>"),a}},{key:"getTab",value:function(e,t){var a=document.createElement("li");a.classList.add("nav-item");var d=document.createElement("a");return d.classList.add("nav-link"),d.setAttribute("href","#".concat(t)),d.setAttribute("data-toggle","tab"),d.appendChild(e),a.appendChild(d),a}},{key:"getTopTab",value:function(e,t){var a=document.createElement("li");a.classList.add("nav-item");var d=document.createElement("a");return d.classList.add("nav-link"),d.setAttribute("href","#".concat(t)),d.setAttribute("data-toggle","tab"),d.appendChild(e),a.appendChild(d),a}},{key:"getTabContent",value:function(){var e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}},{key:"getTopTabContent",value:function(){var e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}},{key:"markTabActive",value:function(e){e.tab.firstChild.classList.add("active"),e.rowPane!==void 0?e.rowPane.classList.add("active"):e.container.classList.add("active")}},{key:"markTabInactive",value:function(e){e.tab.firstChild.classList.remove("active"),e.rowPane!==void 0?e.rowPane.classList.remove("active"):e.container.classList.remove("active")}},{key:"insertBasicTopTab",value:function(e,t){t.children[0].children[0].insertBefore(e,t.children[0].children[0].firstChild)}},{key:"addTopTab",value:function(e,t){e.children[0].children[0].appendChild(t)}},{key:"getTopTabContentHolder",value:function(e){return e.children[1].children[0]}},{key:"getFirstTab",value:function(e){return e.firstChild.firstChild.firstChild}},{key:"getProgressBar",value:function(){var e=document.createElement("div");e.classList.add("progress");var t=document.createElement("div");return t.classList.add("progress-bar"),t.setAttribute("role","progressbar"),t.setAttribute("aria-valuenow",0),t.setAttribute("aria-valuemin",0),t.setAttribute("aria-valuenax",100),t.innerHTML="".concat(0,"%"),e.appendChild(t),e}},{key:"updateProgressBar",value:function(e,t){if(e){var a=e.firstChild,d="".concat(t,"%");a.setAttribute("aria-valuenow",t),a.style.width=d,a.innerHTML=d}}},{key:"updateProgressBarUnknown",value:function(e){if(e){var t=e.firstChild;e.classList.add("progress","progress-striped","active"),t.removeAttribute("aria-valuenow"),t.style.width="100%",t.innerHTML=""}}},{key:"getBlockLink",value:function(){var e=document.createElement("a");return e.classList.add("mb-3","d-inline-block"),e}},{key:"getLinksHolder",value:function(){return document.createElement("div")}},{key:"getInputGroup",value:function(e,t){if(e){var a=document.createElement("div");a.classList.add("input-group"),a.appendChild(e);var d=document.createElement("div");d.classList.add("input-group-append"),a.appendChild(d);for(var b=0;b<t.length;b++)t[b].classList.remove("mr-2","btn-secondary"),t[b].classList.add("btn-outline-secondary"),d.appendChild(t[b]);return a}}}])&&qv(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(ui);function Ho(s){return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ho(s)}function Gv(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Yv(u.key),u)}}function Yv(s){var r=function(n,u){if(Ho(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Ho(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Ho(r)=="symbol"?r:r+""}function $v(s,r,n){return r=Hn(r),function(u,e){if(e&&(Ho(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Ed()?Reflect.construct(r,n||[],Hn(s).constructor):r.apply(s,n))}function Ed(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ed=function(){return!!s})()}function to(){return to=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=Hn(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},to.apply(this,arguments)}function Hn(s){return Hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hn(s)}function Ml(s,r){return Ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Ml(s,r)}Od.rules={".jsoneditor-twbs4-text-button":"background:none;padding:0;border:0;color:currentColor","td > .form-group":"margin-bottom:0",".json-editor-btn-upload":"margin-top:1rem",".je-noindent .card":"padding:0;border:0",".je-tooltip:hover::before":"display:block;position:absolute;font-size:0.8em;color:%23fff;border-radius:0.2em;content:attr(title);background-color:%23000;margin-top:-2.5em;padding:0.3em",".je-tooltip:hover::after":"display:block;position:absolute;font-size:0.8em;color:%23fff",".select2-container--default .select2-selection--single":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__arrow":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__rendered":"line-height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".selectize-control.form-control":"padding:0",".selectize-dropdown.form-control":"padding:0;height:auto",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"};var Jv={disable_theme_rules:!1,input_size:"normal",object_indent:!0,object_background:"bg-light",object_text:"",table_border:!1,table_zebrastyle:!1,tooltip:"bootstrap"},Sd=function(s){function r(e){return function(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}(this,r),$v(this,r,[e,Jv])}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ml(e,t)}(r,s),n=r,(u=[{key:"getSelectInput",value:function(e,t){var a=to(Hn(r.prototype),"getSelectInput",this).call(this,e);return a.classList.add("form-control"),a.classList.add("form-select"),this.options.input_size==="small"&&a.classList.add("form-control-sm"),this.options.input_size==="large"&&a.classList.add("form-control-lg"),a}},{key:"getContainer",value:function(){var e=document.createElement("div");return this.options.object_indent||e.classList.add("je-noindent"),e}},{key:"getOptInSwitch",value:function(e){var t=this.getHiddenLabel(e+" opt-in");t.setAttribute("for",e+"-opt-in");var a=document.createElement("div");a.classList.add("form-check","form-switch","d-inline-block","fs-6");var d=document.createElement("input");d.setAttribute("type","checkbox"),d.setAttribute("role","switch"),d.setAttribute("id",e+"-opt-in"),d.classList.add("form-check-input","json-editor-opt-in");var b=document.createElement("label");b.setAttribute("for",e+"-opt-in"),b.classList.add("form-check-label");var P=document.createElement("span");return P.classList.add("visually-hidden"),P.textContent=e+"-opt-in",b.appendChild(P),a.appendChild(d),a.appendChild(b),{label:t,checkbox:d,container:a}}},{key:"setGridColumnSize",value:function(e,t,a){e.classList.add("col-md-".concat(t)),a&&e.classList.add("offset-md-".concat(a))}},{key:"afterInputReady",value:function(e){if(!e.controlgroup){var t=e.name;e.id=t;var a=e.parentNode.parentNode.getElementsByTagName("label")[0];a&&(a.classList.add("form-label"),a.htmlFor=t),e.controlgroup=this.closest(e,".form-group")}}},{key:"getTextareaInput",value:function(){var e=document.createElement("textarea");return e.classList.add("form-control"),this.options.input_size==="small"&&e.classList.add("form-control-sm"),this.options.input_size==="large"&&e.classList.add("form-control-lg"),e}},{key:"getRangeInput",value:function(e,t,a,d,b){var P=to(Hn(r.prototype),"getRangeInput",this).call(this,e,t,a,d,b);return P.classList.remove("form-control"),P.classList.add("form-range"),P}},{key:"getStepperButtons",value:function(e){var t=document.createElement("div"),a=document.createElement("button");a.setAttribute("type","button");var d=document.createElement("button");d.setAttribute("type","button"),t.appendChild(a),t.appendChild(e),t.appendChild(d),t.classList.add("input-group"),a.classList.add("btn"),a.classList.add("btn-secondary"),a.classList.add("stepper-down"),d.classList.add("btn"),d.classList.add("btn-secondary"),d.classList.add("stepper-up"),e.getAttribute("readonly")&&(a.setAttribute("disabled",!0),d.setAttribute("disabled",!0)),a.textContent="-",d.textContent="+";var b=function(q,K){q.value=Number(K||q.value),q.setAttribute("initialized","1")},P=e.getAttribute("min"),I=e.getAttribute("max");return e.addEventListener("change",function(){e.getAttribute("initialized")||e.setAttribute("initialized","1")}),a.addEventListener("click",function(){e.getAttribute("initialized")?P?Number(e.value)>Number(P)&&e.stepDown():e.stepDown():b(e,P),x(e,"change")}),d.addEventListener("click",function(){e.getAttribute("initialized")?I?Number(e.value)<Number(I)&&e.stepUp():e.stepUp():b(e,P),x(e,"change")}),t}},{key:"getFormInputField",value:function(e){var t=to(Hn(r.prototype),"getFormInputField",this).call(this,e);return e!=="checkbox"&&e!=="radio"&&(t.classList.add("form-control"),this.options.input_size==="small"&&t.classList.add("form-control-sm"),this.options.input_size==="large"&&t.classList.add("form-control-lg")),t}},{key:"getFormControl",value:function(e,t,a,d,b){var P=document.createElement("div");if(P.classList.add("form-group"),!e||t.type!=="checkbox"&&t.type!=="radio")e&&(e.classList.add("form-label"),P.appendChild(e),d&&P.appendChild(d)),P.appendChild(t);else{var I=document.createElement("div");I.classList.add("form-check"),t.classList.add("form-check-input"),e.classList.add("form-check-label"),t.tagName.toLowerCase()!=="div"&&t&&e&&b&&(e.setAttribute("for",b),t.setAttribute("id",b)),t.tagName.toLowerCase()!=="div"&&t&&a&&(a.setAttribute("id",b+"-description"),t.setAttribute("aria-describedby",b+"-description")),I.appendChild(t),I.appendChild(e),d&&I.appendChild(d),P.appendChild(I)}return a&&P.appendChild(a),P}},{key:"getHiddenLabel",value:function(e){var t=document.createElement("label");return t.textContent=e,t.classList.add("visually-hidden"),t}},{key:"visuallyHidden",value:function(e){e&&e.classList.add("visually-hidden")}},{key:"getHiddenText",value:function(e){var t=document.createElement("span");return t.textContent=e,t.classList.add("sr-only"),t}},{key:"getInfoButton",value:function(e){var t=document.createElement("button");t.type="button",t.classList.add("ms-3","jsoneditor-twbs5-text-button"),t.setAttribute("data-toggle","tooltip"),t.setAttribute("data-placement","auto"),t.title=e;var a=document.createTextNode("ⓘ");return t.appendChild(a),this.options.tooltip==="bootstrap"?window.jQuery&&window.jQuery().tooltip?window.jQuery(t).tooltip():console.warn("Could not find popper jQuery plugin of Bootstrap."):this.options.tooltip==="css"&&t.classList.add("je-tooltip"),t}},{key:"getCheckbox",value:function(){return this.getFormInputField("checkbox")}},{key:"getMultiCheckboxHolder",value:function(e,t,a,d){var b=document.createElement("div");b.classList.add("form-group"),t&&(b.appendChild(t),d&&t.appendChild(d));var P=document.createElement("div");return Object.values(e).forEach(function(I){var q=I.firstChild;P.appendChild(q)}),b.appendChild(P),a&&b.appendChild(a),b}},{key:"getFormRadio",value:function(e){var t=this.getFormInputField("radio");for(var a in e)t.setAttribute(a,e[a]);return t.classList.add("form-check-input"),t}},{key:"getFormRadioLabel",value:function(e,t){var a=document.createElement("label");return a.classList.add("form-check-label"),a.appendChild(document.createTextNode(e)),a}},{key:"getFormRadioControl",value:function(e,t,a){var d=document.createElement("div");return d.classList.add("form-check"),d.appendChild(t),d.appendChild(e),a&&d.classList.add("form-check-inline"),d}},{key:"getIndentedPanel",value:function(){var e=document.createElement("div");return e.classList.add("card","card-body","my-3"),this.options.object_background&&e.classList.add(this.options.object_background),this.options.object_text&&e.classList.add(this.options.object_text),e}},{key:"getFormInputDescription",value:function(e){var t=document.createElement("small");return t.classList.add("form-text"),t.classList.add("d-block"),window.DOMPurify?t.innerHTML=window.DOMPurify.sanitize(e):t.textContent=this.cleanText(e),t}},{key:"getHeader",value:function(e,t){var a=document.createElement("span");return a.classList.add("h3"),a.classList.add("card-title"),a.classList.add("level-"+t),typeof e=="string"?a.textContent=e:a.appendChild(e),a.style.display="inline-block",a}},{key:"getHeaderButtonHolder",value:function(){return this.getButtonHolder()}},{key:"getButtonHolder",value:function(){var e=document.createElement("span");return e.classList.add("btn-group"),e}},{key:"getFormButtonHolder",value:function(e){var t=this.getButtonHolder();return t.classList.add("d-block"),e==="center"?t.classList.add("text-center"):e==="right"&&t.classList.add("text-end"),t}},{key:"getButton",value:function(e,t,a){var d=to(Hn(r.prototype),"getButton",this).call(this,e,t,a);return d.classList.add("btn","btn-secondary","btn-sm"),d}},{key:"getTableContainer",value:function(){var e=to(Hn(r.prototype),"getTableContainer",this).call(this);return e.classList.add("table-responsive"),e}},{key:"getTable",value:function(){var e=document.createElement("table");return e.classList.add("table","table-sm"),this.options.table_border&&e.classList.add("table-bordered"),this.options.table_zebrastyle&&e.classList.add("table-striped"),e}},{key:"getErrorMessage",value:function(e){var t=document.createElement("div");return t.classList.add("alert","alert-danger"),t.setAttribute("role","alert"),t.appendChild(document.createTextNode(e)),t}},{key:"addInputError",value:function(e,t){e.controlgroup&&(e.controlgroup.classList.add("is-invalid"),e.errmsg||(e.errmsg=document.createElement("p"),e.errmsg.classList.add("invalid-feedback"),e.controlgroup.appendChild(e.errmsg),e.errmsg.style.display="block"),e.errmsg.style.display="block",e.errmsg.textContent=t,e.errmsg.setAttribute("role","alert"))}},{key:"removeInputError",value:function(e){e.errmsg&&(e.errmsg.style.display="none",e.controlgroup.classList.remove("is-invalid"))}},{key:"getTabHolder",value:function(e){var t=document.createElement("div"),a=e===void 0?"":e;return t.innerHTML="<div class='col-md-2' id='".concat(a,"'><ul class='nav flex-column nav-pills'></ul></div><div class='col-md-10'><div class='tab-content' id='").concat(a,"'></div></div>"),t.classList.add("row"),t}},{key:"addTab",value:function(e,t){e.children[0].children[0].appendChild(t)}},{key:"getTabContentHolder",value:function(e){return e.children[1].children[0]}},{key:"getTopTabHolder",value:function(e){var t=e===void 0?"":e,a=document.createElement("div");return a.classList.add("card"),a.innerHTML="<div class='card-header'><ul class='nav nav-tabs card-header-tabs' id='".concat(t,"'></ul></div><div class='card-body'><div class='tab-content' id='").concat(t,"'></div></div>"),a}},{key:"getTab",value:function(e,t){var a=document.createElement("li");a.classList.add("nav-item");var d=document.createElement("a");return d.classList.add("nav-link"),d.setAttribute("href","#".concat(t)),d.setAttribute("data-toggle","tab"),d.appendChild(e),a.appendChild(d),a}},{key:"getTopTab",value:function(e,t){var a=document.createElement("li");a.classList.add("nav-item");var d=document.createElement("a");return d.classList.add("nav-link"),d.setAttribute("href","#".concat(t)),d.setAttribute("data-toggle","tab"),d.appendChild(e),a.appendChild(d),a}},{key:"getTabContent",value:function(){var e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}},{key:"getTopTabContent",value:function(){var e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}},{key:"markTabActive",value:function(e){e.tab.firstChild.classList.add("active"),e.rowPane!==void 0?e.rowPane.classList.add("active"):e.container.classList.add("active")}},{key:"markTabInactive",value:function(e){e.tab.firstChild.classList.remove("active"),e.rowPane!==void 0?e.rowPane.classList.remove("active"):e.container.classList.remove("active")}},{key:"insertBasicTopTab",value:function(e,t){t.children[0].children[0].insertBefore(e,t.children[0].children[0].firstChild)}},{key:"addTopTab",value:function(e,t){e.children[0].children[0].appendChild(t)}},{key:"getTopTabContentHolder",value:function(e){return e.children[1].children[0]}},{key:"getFirstTab",value:function(e){return e.firstChild.firstChild.firstChild}},{key:"getProgressBar",value:function(){var e=document.createElement("div");e.classList.add("progress");var t=document.createElement("div");return t.classList.add("progress-bar"),t.setAttribute("role","progressbar"),t.setAttribute("aria-valuenow",0),t.setAttribute("aria-valuemin",0),t.setAttribute("aria-valuenax",100),t.innerHTML="".concat(0,"%"),e.appendChild(t),e}},{key:"updateProgressBar",value:function(e,t){if(e){var a=e.firstChild,d="".concat(t,"%");a.setAttribute("aria-valuenow",t),a.style.width=d,a.innerHTML=d}}},{key:"updateProgressBarUnknown",value:function(e){if(e){var t=e.firstChild;e.classList.add("progress","progress-striped","active"),t.removeAttribute("aria-valuenow"),t.style.width="100%",t.innerHTML=""}}},{key:"getBlockLink",value:function(){var e=document.createElement("a");return e.classList.add("mb-3","d-inline-block"),e}},{key:"getLinksHolder",value:function(){return document.createElement("div")}},{key:"getInputGroup",value:function(e,t){if(e){var a=document.createElement("div");a.classList.add("input-group"),a.appendChild(e);for(var d=0;d<t.length;d++)t[d].classList.remove("me-2","btn-secondary"),t[d].classList.add("btn-outline-secondary"),a.appendChild(t[d]);return a}}}])&&Gv(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(ui);function Vo(s){return Vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vo(s)}function Kv(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,Qv(u.key),u)}}function Qv(s){var r=function(n,u){if(Vo(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Vo(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Vo(r)=="symbol"?r:r+""}function Zv(s,r,n){return r=li(r),function(u,e){if(e&&(Vo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Fd()?Reflect.construct(r,n||[],li(s).constructor):r.apply(s,n))}function Fd(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fd=function(){return!!s})()}function qo(){return qo=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=li(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},qo.apply(this,arguments)}function li(s){return li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},li(s)}function Rl(s,r){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Rl(s,r)}Sd.rules={".form-group":"margin-bottom:1rem",".form-text":"display:block",".jsoneditor-twbs5-text-button":"background:none;padding:0;border:0;color:currentColor","td > .form-group":"margin-bottom:0",".json-editor-btn-upload":"margin-top:1rem",".je-noindent .card":"padding:0;border:0",".je-tooltip:hover::before":"display:block;position:absolute;font-size:0.8em;color:%23fff;border-radius:0.2em;content:attr(title);background-color:%23000;margin-top:-2.5em;padding:0.3em",".je-tooltip:hover::after":"display:block;position:absolute;font-size:0.8em;color:%23fff",".select2-container--default .select2-selection--single":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__arrow":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__rendered":"line-height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".selectize-control.form-control":"padding:0",".selectize-dropdown.form-control":"padding:0;height:auto",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"};var Pd=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Zv(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rl(e,t)}(r,s),n=r,(u=[{key:"getTable",value:function(){var e=qo(li(r.prototype),"getTable",this).call(this);return e.setAttribute("cellpadding",5),e.setAttribute("cellspacing",0),e}},{key:"getTableHeaderCell",value:function(e){var t=qo(li(r.prototype),"getTableHeaderCell",this).call(this,e);return t.classList.add("ui-state-active"),t.style.fontWeight="bold",t}},{key:"getTableCell",value:function(){var e=qo(li(r.prototype),"getTableCell",this).call(this);return e.classList.add("ui-widget-content"),e}},{key:"getHeaderButtonHolder",value:function(){var e=this.getButtonHolder();return e.style.marginLeft="10px",e.style.fontSize=".6em",e.style.display="inline-block",e}},{key:"getFormInputDescription",value:function(e){var t=this.getDescription(e);return t.style.marginLeft="10px",t.style.display="inline-block",t}},{key:"getFormControl",value:function(e,t,a,d){var b=qo(li(r.prototype),"getFormControl",this).call(this,e,t,a,d);return t.type==="checkbox"?(b.style.lineHeight="25px",b.style.padding="3px 0"):b.style.padding="4px 0 8px 0",b}},{key:"getDescription",value:function(e){var t=document.createElement("span");return t.style.fontSize=".8em",t.style.fontStyle="italic",window.DOMPurify?t.innerHTML=window.DOMPurify.sanitize(e):t.textContent=this.cleanText(e),t}},{key:"getButtonHolder",value:function(){var e=document.createElement("div");return e.classList.add("ui-buttonset"),e.style.fontSize=".7em",e}},{key:"getFormInputLabel",value:function(e,t){var a=document.createElement("label");return a.style.fontWeight="bold",a.style.display="block",a.textContent=e,t&&a.classList.add("required"),a}},{key:"getButton",value:function(e,t,a){var d=document.createElement("button");d.classList.add("ui-button","ui-widget","ui-state-default","ui-corner-all"),t&&!e?(d.classList.add("ui-button-icon-only"),t.classList.add("ui-button-icon-primary","ui-icon-primary"),d.appendChild(t)):t?(d.classList.add("ui-button-text-icon-primary"),t.classList.add("ui-button-icon-primary","ui-icon-primary"),d.appendChild(t)):d.classList.add("ui-button-text-only");var b=document.createElement("span");return b.classList.add("ui-button-text"),b.textContent=e||a||".",d.appendChild(b),d.setAttribute("title",a),d}},{key:"setButtonText",value:function(e,t,a,d){e.innerHTML="",e.classList.add("ui-button","ui-widget","ui-state-default","ui-corner-all"),a&&!t?(e.classList.add("ui-button-icon-only"),a.classList.add("ui-button-icon-primary","ui-icon-primary"),e.appendChild(a)):a?(e.classList.add("ui-button-text-icon-primary"),a.classList.add("ui-button-icon-primary","ui-icon-primary"),e.appendChild(a)):e.classList.add("ui-button-text-only");var b=document.createElement("span");b.classList.add("ui-button-text"),b.textContent=t||d||".",e.appendChild(b),e.setAttribute("title",d)}},{key:"getIndentedPanel",value:function(){var e=document.createElement("div");return e.classList.add("ui-widget-content","ui-corner-all"),e.style.padding="1em 1.4em",e.style.marginBottom="20px",e}},{key:"afterInputReady",value:function(e){if(!e.controls&&(e.controls=this.closest(e,".form-control"),this.queuedInputErrorText)){var t=this.queuedInputErrorText;delete this.queuedInputErrorText,this.addInputError(e,t)}}},{key:"addInputError",value:function(e,t){e.controls?(e.errmsg?e.errmsg.style.display="":(e.errmsg=document.createElement("div"),e.errmsg.classList.add("ui-state-error"),e.controls.appendChild(e.errmsg)),e.errmsg.textContent=t):this.queuedInputErrorText=t}},{key:"removeInputError",value:function(e){e.controls||delete this.queuedInputErrorText,e.errmsg&&(e.errmsg.style.display="none")}},{key:"markTabActive",value:function(e){e.tab.classList.remove("ui-widget-header"),e.tab.classList.add("ui-state-active"),e.rowPane!==void 0?e.rowPane.style.display="":e.container.style.display=""}},{key:"markTabInactive",value:function(e){e.tab.classList.add("ui-widget-header"),e.tab.classList.remove("ui-state-active"),e.rowPane!==void 0?e.rowPane.style.display="none":e.container.style.display="none"}}])&&Kv(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(ui);function zo(s){return zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zo(s)}function Xv(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,e0(u.key),u)}}function e0(s){var r=function(n,u){if(zo(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(zo(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return zo(r)=="symbol"?r:r+""}function t0(s,r,n){return r=ys(r),function(u,e){if(e&&(zo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Td()?Reflect.construct(r,n||[],ys(s).constructor):r.apply(s,n))}function Td(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Td=function(){return!!s})()}function ys(s){return ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ys(s)}function Nl(s,r){return Nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Nl(s,r)}Pd.rules={'div[data-schemaid="root"]:after':'position:relative;color:red;margin:10px 0;font-weight:600;display:block;width:100%;text-align:center;content:"This is an old JSON-Editor 1.x Theme and might not display elements correctly when used with the 2.x version"'};var Ld=function(s){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t0(this,r,arguments)}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nl(e,t)}(r,s),n=r,(u=[{key:"addInputError",value:function(e,t){if(e.errmsg)e.errmsg.style.display="block";else{var a=this.closest(e,".form-control");e.errmsg=document.createElement("div"),e.errmsg.setAttribute("class","errmsg"),a.nodeName&&a.appendChild(e.errmsg)}e.errmsg.innerHTML="",e.errmsg.appendChild(document.createTextNode(t)),e.errmsg.setAttribute("role","alert")}},{key:"removeInputError",value:function(e){e.style&&(e.style.borderColor=""),e.errmsg&&(e.errmsg.style.display="none")}}])&&Xv(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(ui);function Wo(s){return Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wo(s)}function r0(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,n0(u.key),u)}}function n0(s){var r=function(n,u){if(Wo(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Wo(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Wo(r)=="symbol"?r:r+""}function i0(s,r,n){return r=ur(r),function(u,e){if(e&&(Wo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Ad()?Reflect.construct(r,n||[],ur(s).constructor):r.apply(s,n))}function Ad(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ad=function(){return!!s})()}function vr(){return vr=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=ur(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},vr.apply(this,arguments)}function ur(s){return ur=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ur(s)}function Bl(s,r){return Bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Bl(s,r)}Ld.rules={".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"};var o0={disable_theme_rules:!1,label_bold:!0,align_bottom:!1,object_indent:!1,object_border:!1,table_border:!1,table_zebrastyle:!1,input_size:"normal"},Dd=function(s){function r(e){return function(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}(this,r),i0(this,r,[e,o0])}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bl(e,t)}(r,s),n=r,(u=[{key:"getOptInSwitch",value:function(e){var t=document.createElement("span");t.classList.add("form-group");var a=document.createElement("label");a.classList.add("form-switch","d-inline-block");var d=document.createElement("input");d.setAttribute("type","checkbox"),d.setAttribute("id",e+"-opt-in"),d.classList.add("json-editor-opt-in");var b=document.createElement("i");b.classList.add("form-icon");var P=document.createElement("span");return P.classList.add("sr-only"),P.textContent=e+"-opt-in",a.appendChild(P),a.appendChild(d),a.appendChild(b),t.appendChild(a),{label:a,checkbox:d,container:t}}},{key:"setGridColumnSize",value:function(e,t,a){e.classList.add("col-".concat(t)),a&&e.classList.add("col-mx-auto")}},{key:"getGridContainer",value:function(){var e=document.createElement("div");return e.classList.add("container"),this.options.object_indent||e.classList.add("je-noindent"),e}},{key:"getGridRow",value:function(){var e=document.createElement("div");return e.classList.add("columns"),e}},{key:"getGridColumn",value:function(){var e=document.createElement("div");return e.classList.add("column"),this.options.align_bottom&&e.classList.add("je-align-bottom"),e}},{key:"getIndentedPanel",value:function(){var e=document.createElement("div");return e.classList.add("je-panel"),this.options.object_border&&e.classList.add("je-border"),e}},{key:"getTopIndentedPanel",value:function(){var e=document.createElement("div");return e.classList.add("je-panel-top"),this.options.object_border&&e.classList.add("je-border"),e}},{key:"getHeaderButtonHolder",value:function(){return this.getButtonHolder()}},{key:"getButtonHolder",value:function(){var e=vr(ur(r.prototype),"getButtonHolder",this).call(this);return e.classList.add("btn-group"),e}},{key:"getFormButtonHolder",value:function(e){var t=vr(ur(r.prototype),"getFormButtonHolder",this).call(this);return t.classList.remove("btn-group"),t.classList.add("d-block"),e==="center"?t.classList.add("text-center"):e==="right"?t.classList.add("text-right"):t.classList.add("text-left"),t}},{key:"getFormButton",value:function(e,t,a){var d=vr(ur(r.prototype),"getFormButton",this).call(this,e,t,a);return d.classList.add("btn","btn-primary","mx-2","my-1"),this.options.input_size!=="small"&&d.classList.remove("btn-sm"),this.options.input_size==="large"&&d.classList.add("btn-lg"),d}},{key:"getButton",value:function(e,t,a){var d=vr(ur(r.prototype),"getButton",this).call(this,e,t,a);return d.classList.add("btn","btn-sm","btn-primary","mr-2","my-1"),d}},{key:"getHeader",value:function(e,t){var a=document.createElement("span");return typeof e=="string"?a.textContent=e:a.appendChild(e),a.style.display="inline-block",a}},{key:"getFormInputDescription",value:function(e){var t=vr(ur(r.prototype),"getFormInputDescription",this).call(this,e);return t.classList.add("je-desc","hide-sm"),t}},{key:"getFormInputLabel",value:function(e,t){var a=vr(ur(r.prototype),"getFormInputLabel",this).call(this,e,t);return this.options.label_bold&&a.classList.add("je-label"),a}},{key:"getCheckbox",value:function(){return this.getFormInputField("checkbox")}},{key:"getCheckboxLabel",value:function(e,t){var a=vr(ur(r.prototype),"getCheckboxLabel",this).call(this,e,t),d=document.createElement("i");return d.classList.add("form-icon"),a.classList.add("form-checkbox","pr-0"),a.insertBefore(d,a.firstChild),a}},{key:"getFormCheckboxControl",value:function(e,t,a){return e.insertBefore(t,e.firstChild),a&&e.classList.add("form-inline"),e}},{key:"getMultiCheckboxHolder",value:function(e,t,a,d){return vr(ur(r.prototype),"getMultiCheckboxHolder",this).call(this,e,t,a,d)}},{key:"getFormRadio",value:function(e){var t=this.getFormInputField("radio");for(var a in e)t.setAttribute(a,e[a]);return t}},{key:"getFormRadioLabel",value:function(e,t){var a=vr(ur(r.prototype),"getFormRadioLabel",this).call(this,e,t),d=document.createElement("i");return d.classList.add("form-icon"),a.classList.add("form-radio"),a.insertBefore(d,a.firstChild),a}},{key:"getFormRadioControl",value:function(e,t,a){return e.insertBefore(t,e.firstChild),a&&e.classList.add("form-inline"),e}},{key:"getFormInputField",value:function(e){var t=vr(ur(r.prototype),"getFormInputField",this).call(this,e);return["checkbox","radio"].includes(e)||t.classList.add("form-input"),t}},{key:"getRangeInput",value:function(e,t,a,d,b){var P=vr(ur(r.prototype),"getRangeInput",this).call(this,e,t,a,d,b);return P.classList.add("slider"),P.classList.remove("form-input"),P.setAttribute("oninput",'this.setAttribute("value", this.value)'),P}},{key:"getRangeControl",value:function(e,t){var a=vr(ur(r.prototype),"getRangeControl",this).call(this,e,t);return a.classList.add("text-center"),a}},{key:"getSelectInput",value:function(e,t){var a=vr(ur(r.prototype),"getSelectInput",this).call(this,e);return a.classList.add("form-select"),a}},{key:"getTextareaInput",value:function(){var e=document.createElement("textarea");return e.classList.add("form-input"),e}},{key:"getFormControl",value:function(e,t,a,d,b){var P=document.createElement("div");return P.classList.add("form-group"),!e||t.type!=="checkbox"&&t.type!=="radio"?(e&&(e.classList.add("form-label"),P.appendChild(e),d&&e.appendChild(d)),P.appendChild(t)):(P.classList.add(t.type),d&&e.appendChild(d),e.insertBefore(t,e.firstChild),P.appendChild(e)),this.options.input_size==="small"?t.classList.add("input-sm","select-sm"):this.options.input_size==="large"&&t.classList.add("input-lg","select-lg"),t.type!=="checkbox"&&P.appendChild(t),a&&P.appendChild(a),t.tagName.toLowerCase()!=="div"&&t&&e&&b&&(e.setAttribute("for",b),t.setAttribute("id",b)),t.tagName.toLowerCase()!=="div"&&t&&a&&(a.setAttribute("id",b+"-description"),t.setAttribute("aria-describedby",b+"-description")),P}},{key:"getInputGroup",value:function(e,t){if(e){var a=document.createElement("div");a.classList.add("input-group"),a.appendChild(e);for(var d=0;d<t.length;d++)t[d].classList.add("input-group-btn"),t[d].classList.remove("btn-sm","mr-2","my-1"),a.appendChild(t[d]);return a}}},{key:"getInfoButton",value:function(e){var t=document.createElement("div");t.classList.add("popover","popover-left","float-right");var a=document.createElement("button");a.classList.add("btn","btn-secondary","btn-info","btn-action","s-circle"),a.setAttribute("tabindex","-1"),t.appendChild(a);var d=document.createTextNode("I");a.appendChild(d);var b=document.createElement("div");b.classList.add("popover-container"),t.appendChild(b);var P=document.createElement("div");P.classList.add("card"),b.appendChild(P);var I=document.createElement("div");return I.classList.add("card-body"),I.innerHTML=e,P.appendChild(I),t}},{key:"getTable",value:function(){var e=vr(ur(r.prototype),"getTable",this).call(this);return e.classList.add("table","table-scroll"),this.options.table_border&&e.classList.add("je-table-border"),this.options.table_zebrastyle&&e.classList.add("table-striped"),e}},{key:"getProgressBar",value:function(){var e=vr(ur(r.prototype),"getProgressBar",this).call(this);return e.classList.add("progress"),e}},{key:"getTabHolder",value:function(e){var t=e===void 0?"":e,a=document.createElement("div");return a.classList.add("columns"),a.innerHTML='<div class="column col-2"></div><div class="column col-10 content" id="'.concat(t,'"></div>'),a}},{key:"getTopTabHolder",value:function(e){var t=e===void 0?"":e,a=document.createElement("div");return a.innerHTML='<ul class="tab"></ul><div class="content" id="'.concat(t,'"></div>'),a}},{key:"getTab",value:function(e,t){var a=document.createElement("a");return a.classList.add("btn","btn-secondary","btn-block"),a.setAttribute("href","#".concat(t)),a.appendChild(e),a}},{key:"getTopTab",value:function(e,t){var a=document.createElement("li");a.id=t,a.classList.add("tab-item");var d=document.createElement("a");return d.setAttribute("href","#".concat(t)),d.appendChild(e),a.appendChild(d),a}},{key:"markTabActive",value:function(e){e.tab.classList.add("active"),e.rowPane!==void 0?e.rowPane.style.display="":e.container.style.display=""}},{key:"markTabInactive",value:function(e){e.tab.classList.remove("active"),e.rowPane!==void 0?e.rowPane.style.display="none":e.container.style.display="none"}},{key:"afterInputReady",value:function(e){if(e.localName==="select"){if(e.classList.contains("selectized")){var t=e.nextSibling;t&&(t.classList.remove("form-select"),Array.from(t.querySelectorAll(".form-select")).forEach(function(d){d.classList.remove("form-select")}))}else if(e.classList.contains("select2-hidden-accessible")){var a=e.nextSibling;a&&a.querySelector(".select2-selection--single")&&a.classList.add("form-select")}}e.controlgroup||(e.controlgroup=this.closest(e,".form-group"),this.closest(e,".compact")&&(e.controlgroup.style.marginBottom=0))}},{key:"addInputError",value:function(e,t){e.controlgroup&&(e.controlgroup.classList.add("has-error"),e.errmsg||(e.errmsg=document.createElement("p"),e.errmsg.classList.add("form-input-hint"),e.controlgroup.appendChild(e.errmsg)),e.errmsg.classList.remove("d-hide"),e.errmsg.textContent=t,e.errmsg.setAttribute("role","alert"))}},{key:"removeInputError",value:function(e){e.errmsg&&(e.errmsg.classList.add("d-hide"),e.controlgroup.classList.remove("has-error"))}}])&&r0(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(ui);function Uo(s){return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Uo(s)}function a0(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,s0(u.key),u)}}function s0(s){var r=function(n,u){if(Uo(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(Uo(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return Uo(r)=="symbol"?r:r+""}function u0(s,r,n){return r=cr(r),function(u,e){if(e&&(Uo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(u)}(s,Id()?Reflect.construct(r,n||[],cr(s).constructor):r.apply(s,n))}function Id(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Id=function(){return!!s})()}function Or(){return Or=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,r,n){var u=function(t,a){for(;!Object.prototype.hasOwnProperty.call(t,a)&&(t=cr(t))!==null;);return t}(s,r);if(u){var e=Object.getOwnPropertyDescriptor(u,r);return e.get?e.get.call(arguments.length<3?s:n):e.value}},Or.apply(this,arguments)}function cr(s){return cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cr(s)}function Hl(s,r){return Hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Hl(s,r)}Dd.rules={"*":"--primary-color:%235755d9;--gray-color:%23bcc3ce;--light-color:%23fff",".slider:focus":"box-shadow:none","h4 > label + .btn-group":"margin-left:1rem",".text-right > button":"margin-right:0%20!important",".text-left > button":"margin-left:0%20!important",".property-selector":"font-size:0.7rem;font-weight:normal;max-height:260px%20!important;width:395px%20!important",".property-selector .form-checkbox":"margin:0",textarea:"width:100%25;min-height:2rem;resize:vertical",table:"border-collapse:collapse",".table td":"padding:0.4rem%200.4rem",".mr-5":"margin-right:1rem%20!important","div[data-schematype]:not([data-schematype='object'])":"transition:0.5s","div[data-schematype]:not([data-schematype='object']):hover":"background-color:%23eee",".je-table-border td":"border:0.05rem%20solid%20%23dadee4%20!important",".btn-info":"font-size:0.5rem;font-weight:bold;height:0.8rem;padding:0.15rem%200;line-height:0.8;margin:0.3rem%200%200.3rem%200.1rem",".je-label + select":"min-width:5rem",".je-label":"font-weight:600",".btn-action.btn-info":"width:0.8rem",".je-border":"border:0.05rem%20solid%20%23dadee4",".je-panel":"padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".je-panel-top":"padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".required:after":"content:%22%20*%22;color:red;font:inherit",".je-align-bottom":"margin-top:auto",".je-desc":"font-size:smaller;margin:0.2rem%200",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem;border:3px%20solid%20white;box-shadow:0px%200px%208px%20rgba(0%2C%200%2C%200%2C%200.3);box-sizing:border-box",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red",".columns .container.je-noindent":"padding-left:0;padding-right:0",".selectize-control.multi .item":"background:var(--primary-color)%20!important",".select2-container--default .select2-selection--single .select2-selection__arrow":"display:none",".select2-container--default .select2-selection--single":"border:none",".select2-container .select2-selection--single .select2-selection__rendered":"padding:0",".select2-container .select2-search--inline .select2-search__field":"margin-top:0",".select2-container--default.select2-container--focus .select2-selection--multiple":"border:0.05rem%20solid%20var(--gray-color)",".select2-container--default .select2-selection--multiple .select2-selection__choice":"margin:0.4rem%200.2rem%200.2rem%200;padding:2px%205px;background-color:var(--primary-color);color:var(--light-color)",".select2-container--default .select2-search--inline .select2-search__field":"line-height:normal",".choices":"margin-bottom:auto",".choices__list--multiple .choices__item":"border:none;background-color:var(--primary-color);color:var(--light-color)",".choices[data-type*='select-multiple'] .choices__button":"border-left:0.05rem%20solid%20%232826a6",".choices__inner":"font-size:inherit;min-height:20px;padding:4px%207.5px%204px%203.75px",".choices[data-type*='select-one'] .choices__inner":"padding-bottom:4px",".choices__list--dropdown .choices__item":"font-size:inherit"};var l0={disable_theme_rules:!1,label_bold:!1,object_panel_default:!0,object_indent:!0,object_border:!1,table_border:!1,table_hdiv:!1,table_zebrastyle:!1,input_size:"small",enable_compact:!1},Md=function(s){function r(e){return function(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}(this,r),u0(this,r,[e,l0])}return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hl(e,t)}(r,s),n=r,(u=[{key:"getOptInSwitch",value:function(e){var t=this.getHiddenLabel(e+" opt-in");t.setAttribute("for",e+"-opt-in");var a=document.createElement("label");a.classList.add("switch");var d=document.createElement("input");d.setAttribute("type","checkbox"),d.setAttribute("id",e+"-opt-in"),d.classList.add("json-editor-opt-in");var b=document.createElement("span");b.classList.add("switch-slider","round");var P=document.createElement("span");return P.classList.add("sr-only"),P.textContent=e+"-opt-in",a.appendChild(P),a.appendChild(d),a.appendChild(b),{label:t,checkbox:d,container:a}}},{key:"getGridContainer",value:function(){var e=document.createElement("div");return e.classList.add("flex","flex-col","w-full"),this.options.object_indent||e.classList.add("je-noindent"),e}},{key:"getGridRow",value:function(){var e=document.createElement("div");return e.classList.add("flex","flex-wrap","w-full"),e}},{key:"getGridColumn",value:function(){var e=document.createElement("div");return e.classList.add("flex","flex-col"),e}},{key:"setGridColumnSize",value:function(e,t,a){t>0&&t<12?e.classList.add("w-".concat(t,"/12"),"px-1"):e.classList.add("w-full","px-1"),a&&(e.style.marginLeft="".concat(100/12*a,"%"))}},{key:"getIndentedPanel",value:function(){var e=document.createElement("div");return this.options.object_panel_default?e.classList.add("w-full","p-1"):e.classList.add("relative","flex","flex-col","rounded","break-words","border","bg-white","border-0","border-blue-400","p-1","shadow-md"),this.options.object_border&&e.classList.add("je-border"),e}},{key:"getTopIndentedPanel",value:function(){var e=document.createElement("div");return this.options.object_panel_default?e.classList.add("w-full","m-2"):e.classList.add("relative","flex","flex-col","rounded","break-words","border","bg-white","border-0","border-blue-400","p-1","shadow-md"),this.options.object_border&&e.classList.add("je-border"),e}},{key:"getTitle",value:function(){return this.translateProperty(this.schema.title)}},{key:"getSelectInput",value:function(e,t){var a=Or(cr(r.prototype),"getSelectInput",this).call(this,e);return t?a.classList.add("form-multiselect","block","py-0","h-auto","w-full","px-1","text-sm","text-black","leading-normal","bg-white","border","border-grey","rounded"):a.classList.add("form-select","block","py-0","h-6","w-full","px-1","text-sm","text-black","leading-normal","bg-white","border","border-grey","rounded"),this.options.enable_compact&&a.classList.add("compact"),a}},{key:"afterInputReady",value:function(e){e.controlgroup||(e.controlgroup=this.closest(e,".form-group"),this.closest(e,".compact")&&(e.controlgroup.style.marginBottom=0))}},{key:"getTextareaInput",value:function(){var e=Or(cr(r.prototype),"getTextareaInput",this).call(this);return e.classList.add("block","w-full","px-1","text-sm","leading-normal","bg-white","text-black","border","border-grey","rounded"),this.options.enable_compact&&e.classList.add("compact"),e.style.height=0,e}},{key:"getRangeInput",value:function(e,t,a){var d=this.getFormInputField("range");return d.classList.add("slider"),this.options.enable_compact&&d.classList.add("compact"),d.setAttribute("oninput",'this.setAttribute("value", this.value)'),d.setAttribute("min",e),d.setAttribute("max",t),d.setAttribute("step",a),d}},{key:"getRangeControl",value:function(e,t){var a=Or(cr(r.prototype),"getRangeControl",this).call(this,e,t);return a.classList.add("text-center","text-black"),a}},{key:"getCheckbox",value:function(){var e=this.getFormInputField("checkbox");return e.classList.add("form-checkbox","text-red-600"),e}},{key:"getCheckboxLabel",value:function(e,t){var a=Or(cr(r.prototype),"getCheckboxLabel",this).call(this,e,t);return a.classList.add("inline-flex","items-center"),a}},{key:"getFormCheckboxControl",value:function(e,t,a){return e.insertBefore(t,e.firstChild),a&&e.classList.add("inline-flex flex-row"),e}},{key:"getMultiCheckboxHolder",value:function(e,t,a,d){var b=Or(cr(r.prototype),"getMultiCheckboxHolder",this).call(this,e,t,a,d);return b.classList.add("inline-flex","flex-col"),b}},{key:"getFormRadio",value:function(e){var t=this.getFormInputField("radio");for(var a in t.classList.add("form-radio","text-red-600"),e)t.setAttribute(a,e[a]);return t}},{key:"getFormRadioLabel",value:function(e,t){var a=Or(cr(r.prototype),"getFormRadioLabel",this).call(this,e,t);return a.classList.add("inline-flex","items-center","mr-2"),a}},{key:"getFormRadioControl",value:function(e,t,a){return e.insertBefore(t,e.firstChild),a&&e.classList.add("form-radio"),e}},{key:"getRadioHolder",value:function(e,t,a,d,b){var P=Or(cr(r.prototype),"getRadioHolder",this).call(this,t,a,d,b);return e.options.layout==="h"?P.classList.add("inline-flex","flex-row"):P.classList.add("inline-flex","flex-col"),P}},{key:"getFormInputLabel",value:function(e,t){var a=Or(cr(r.prototype),"getFormInputLabel",this).call(this,e,t);return this.options.label_bold?a.classList.add("font-bold"):a.classList.add("required"),a}},{key:"getFormInputField",value:function(e){var t=Or(cr(r.prototype),"getFormInputField",this).call(this,e);return["checkbox","radio"].includes(e)||t.classList.add("block","w-full","px-1","text-black","text-sm","leading-normal","bg-white","border","border-grey","rounded"),this.options.enable_compact&&t.classList.add("compact"),t}},{key:"getFormInputDescription",value:function(e){var t=document.createElement("p");return t.classList.add("block","mt-1","text-xs"),window.DOMPurify?t.innerHTML=window.DOMPurify.sanitize(e):t.textContent=this.cleanText(e),t}},{key:"getFormControl",value:function(e,t,a,d){var b=document.createElement("div");return b.classList.add("form-group","mb-1","w-full"),e&&(e.classList.add("text-xs"),t.type==="checkbox"&&(t.classList.add("form-checkbox","text-xs","text-red-600","mr-1"),e.classList.add("items-center","flex"),e=this.getFormCheckboxControl(e,t,!1,d)),t.type==="radio"&&(t.classList.add("form-radio","text-red-600","mr-1"),e.classList.add("items-center","flex"),e=this.getFormRadioControl(e,t,!1,d)),b.appendChild(e),!["checkbox","radio"].includes(t.type)&&d&&b.appendChild(d)),["checkbox","radio"].includes(t.type)||(this.options.input_size==="small"?t.classList.add("text-xs"):this.options.input_size==="normal"?t.classList.add("text-base"):this.options.input_size==="large"&&t.classList.add("text-xl"),b.appendChild(t)),a&&b.appendChild(a),b}},{key:"getHeaderButtonHolder",value:function(){var e=this.getButtonHolder();return e.classList.add("text-sm"),e}},{key:"getButtonHolder",value:function(){var e=document.createElement("div");return e.classList.add("flex","relative","inline-flex","align-middle"),e}},{key:"getButton",value:function(e,t,a){var d=Or(cr(r.prototype),"getButton",this).call(this,e,t,a);return d.classList.add("inline-block","align-middle","text-center","text-sm","bg-blue-700","text-white","py-1","pr-1","m-2","shadow","select-none","whitespace-no-wrap","rounded"),d}},{key:"getInfoButton",value:function(e){var t=document.createElement("a");t.classList.add("tooltips","float-right"),t.innerHTML="ⓘ";var a=document.createElement("span");return a.innerHTML=e,t.appendChild(a),t}},{key:"getTable",value:function(){var e=Or(cr(r.prototype),"getTable",this).call(this);return this.options.table_border?e.classList.add("je-table-border"):e.classList.add("table","border","p-0"),e}},{key:"getTableRow",value:function(){var e=Or(cr(r.prototype),"getTableRow",this).call(this);return this.options.table_border&&e.classList.add("je-table-border"),this.options.table_zebrastyle&&e.classList.add("je-table-zebra"),e}},{key:"getTableHeaderCell",value:function(e){var t=Or(cr(r.prototype),"getTableHeaderCell",this).call(this,e);return this.options.table_border?t.classList.add("je-table-border"):this.options.table_hdiv?t.classList.add("je-table-hdiv"):t.classList.add("text-xs","border","p-0","m-0"),t}},{key:"getTableCell",value:function(){var e=Or(cr(r.prototype),"getTableCell",this).call(this);return this.options.table_border?e.classList.add("je-table-border"):this.options.table_hdiv?e.classList.add("je-table-hdiv"):e.classList.add("border-0","p-0","m-0"),e}},{key:"addInputError",value:function(e,t){e.controlgroup&&(e.controlgroup.classList.add("has-error"),e.controlgroup.classList.add("text-red-600"),e.errmsg?e.errmsg.style.display="":(e.errmsg=document.createElement("p"),e.errmsg.classList.add("block","mt-1","text-xs","text-red"),e.controlgroup.appendChild(e.errmsg)),e.errmsg.textContent=t)}},{key:"removeInputError",value:function(e){e.errmsg&&(e.errmsg.style.display="none",e.controlgroup.classList.remove("text-red-600"),e.controlgroup.classList.remove("has-error"))}},{key:"getTabHolder",value:function(e){var t=document.createElement("div"),a=e===void 0?"":e;return t.innerHTML="<div class='w-2/12' id='".concat(a,"'><ul class='list-reset pl-0 mb-0'></ul></div><div class='w-10/12' id='").concat(a,"'></div>"),t.classList.add("flex"),t}},{key:"addTab",value:function(e,t){e.children[0].children[0].appendChild(t)}},{key:"getTopTabHolder",value:function(e){var t=e===void 0?"":e,a=document.createElement("div");return a.innerHTML="<ul class='nav-tabs flex list-reset pl-0 mb-0 border-b border-grey-light' id='".concat(t,"'></ul><div class='p-6 block' id='").concat(t,"'></div>"),a}},{key:"getTab",value:function(e,t){var a=document.createElement("li");a.classList.add("nav-item","flex-col","text-center","text-white","bg-blue-500","shadow-md","border","p-2","mb-2","mr-2","hover:bg-blue-400","rounded");var d=document.createElement("a");return d.classList.add("nav-link","text-center"),d.setAttribute("href","#".concat(t)),d.setAttribute("data-toggle","tab"),d.appendChild(e),a.appendChild(d),a}},{key:"getTopTab",value:function(e,t){var a=document.createElement("li");a.classList.add("nav-item","flex","border-l","border-t","border-r");var d=document.createElement("a");return d.classList.add("nav-link","-mb-px","flex-row","text-center","bg-white","p-2","hover:bg-blue-400","rounded-t"),d.setAttribute("href","#".concat(t)),d.setAttribute("data-toggle","tab"),d.appendChild(e),a.appendChild(d),a}},{key:"getTabContent",value:function(){var e=document.createElement("div");return e.setAttribute("role","tabpanel"),e}},{key:"getTopTabContent",value:function(){var e=document.createElement("div");return e.setAttribute("role","tabpanel"),e}},{key:"markTabActive",value:function(e){e.tab.firstChild.classList.add("block"),e.tab.firstChild.classList.contains("border-b")===!0?(e.tab.firstChild.classList.add("border-b-0"),e.tab.firstChild.classList.remove("border-b")):e.tab.firstChild.classList.add("border-b-0"),e.container.classList.contains("hidden")===!0&&e.container.classList.remove("hidden"),e.container.classList.add("block")}},{key:"markTabInactive",value:function(e){e.tab.firstChild.classList.contains("border-b-0")===!0?(e.tab.firstChild.classList.add("border-b"),e.tab.firstChild.classList.remove("border-b-0")):e.tab.firstChild.classList.add("border-b"),e.container.classList.contains("block")===!0&&(e.container.classList.remove("block"),e.container.classList.add("hidden"))}},{key:"getProgressBar",value:function(){var e=document.createElement("div");e.classList.add("progress");var t=document.createElement("div");return t.classList.add("bg-blue","leading-none","py-1","text-xs","text-center","text-white"),t.setAttribute("role","progressbar"),t.setAttribute("aria-valuenow",0),t.setAttribute("aria-valuemin",0),t.setAttribute("aria-valuenax",100),t.innerHTML="".concat(0,"%"),e.appendChild(t),e}},{key:"updateProgressBar",value:function(e,t){if(e){var a=e.firstChild,d="".concat(t,"%");a.setAttribute("aria-valuenow",t),a.style.width=d,a.innerHTML=d}}},{key:"updateProgressBarUnknown",value:function(e){if(e){var t=e.firstChild;e.classList.add("progress","bg-blue","leading-none","py-1","text-xs","text-center","text-white","block"),t.removeAttribute("aria-valuenow"),t.classList.add("w-full"),t.innerHTML=""}}},{key:"getInputGroup",value:function(e,t){if(e){var a=document.createElement("div");a.classList.add("relative","items-stretch","w-full"),a.appendChild(e);var d=document.createElement("div");d.classList.add("-mr-1"),a.appendChild(d);for(var b=0;b<t.length;b++)d.appendChild(t[b]);return a}}}])&&a0(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(ui);Md.rules={".slider":"-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;display:block;border:none;height:1.2rem;width:100%25",".slider:focus":"box-shadow:0%200%200%200%20rgba(87%2C%2085%2C%20217%2C%200.2);outline:none",".slider.tooltip:not([data-tooltip])::after":"content:attr(value)",".slider::-webkit-slider-thumb":"-webkit-appearance:none;background:%23f17405;border-radius:100%25;height:0.6rem;margin-top:-0.25rem;transition:transform%200.2s;width:0.6rem",".slider:active::-webkit-slider-thumb":"transform:scale(1.25);outline:none",".slider::-webkit-slider-runnable-track":"background:%23b2b4b6;border-radius:0.1rem;height:0.1rem;width:100%25","a.tooltips":"position:relative;display:inline","a.tooltips span":"position:absolute;white-space:nowrap;width:auto;padding-left:1rem;padding-right:1rem;color:%23ffffff;background:rgba(56%2C%2056%2C%2056%2C%200.85);height:1.5rem;line-height:1.5rem;text-align:center;visibility:hidden;border-radius:3px","a.tooltips span:after":"content:%22%22;position:absolute;top:50%25;left:100%25;margin-top:-5px;width:0;height:0;border-left:5px%20solid%20rgba(56%2C%2056%2C%2056%2C%200.85);border-top:5px%20solid%20transparent;border-bottom:5px%20solid%20transparent","a:hover.tooltips span":"visibility:visible;opacity:0.9;font-size:0.8rem;right:100%25;top:50%25;margin-top:-12px;margin-right:10px;z-index:999",".json-editor-btntype-properties + div":"font-size:0.8rem;font-weight:normal",textarea:"width:100%25;min-height:2rem;resize:vertical",table:"width:100%25;border-collapse:collapse",".table td":"padding:0rem%200rem","div[data-schematype]:not([data-schematype='object'])":"transition:0.5s","div[data-schematype]:not([data-schematype='object']):hover":"background-color:%23e6f4fe","div[data-schemaid='root']":"position:relative;width:inherit;display:inherit;overflow-x:hidden;z-index:10","select[multiple]":"height:auto","select[multiple].from-select":"height:auto",".je-table-zebra:nth-child(even)":"background-color:%23f2f2f2",".je-table-border":"border:0.5px%20solid%20black",".je-table-hdiv":"border-bottom:1px%20solid%20black",".je-border":"border:0.05rem%20solid%20%233182ce",".je-panel":"width:inherit;padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".je-panel-top":"width:100%25;padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".required:after":"content:%22%20*%22;color:red;font:inherit;font-weight:bold",".je-desc":"font-size:smaller;margin:0.2rem%200",".container-xl.je-noindent":"padding-left:0;padding-right:0",".json-editor-btntype-add":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%234299e1;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btntype-deletelast":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%23e53e3e;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btntype-deleteall":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%23000000;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btn-save":"float:right;color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%232b6cb0;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btn-back":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%232b6cb0;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btntype-delete":"color:%23e53e3e;background-color:rgba(218%2C%20222%2C%20228%2C%200.1);margin:0.03rem;padding:0.1rem",".json-editor-btntype-move":"color:%23000000;background-color:rgba(218%2C%20222%2C%20228%2C%200.1);margin:0.03rem;padding:0.1rem",".json-editor-btn-collapse":"padding:0em%200.8rem;font-size:1.3rem;color:%23e53e3e;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red",".switch":"position:relative;display:inline-block;width:28px;height:16px;margin-right:10px",".switch input":"opacity:0;width:0;height:0",".switch-slider":"position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:%23ccc;transition:.1s;border-radius:34px",".switch-slider:before":"position:absolute;content:%22%22;height:12px;width:12px;left:1px;top:2px;background-color:white;transition:.1s;border-radius:50%25","input:checked + .switch-slider":"background-color:%232196F3","input:focus + .switch-slider":"box-shadow:0%200%201px%20%232196F3","input:checked + .switch-slider:before":"transform:translateX(12px)","input:disabled + .switch-slider":"opacity:0.5"};var c0={html:kd,bootstrap3:Cd,bootstrap4:Od,bootstrap5:Sd,jqueryui:Pd,barebones:Ld,spectre:Dd,tailwind:Md};const f0={".table-responsive .autocomplete-result-list":"position:relative%20!important",".je-float-right-linkholder":"float:right;margin-left:10px",".je-modal":"background-color:white;border:1px%20solid%20black;box-shadow:3px%203px%20black;position:absolute;z-index:10",".je-infobutton-icon":"font-size:16px;font-weight:bold;padding:0.25rem;position:relative;display:inline-block",".je-infobutton-tooltip":"font-size:12px;font-weight:normal;font-family:sans-serif;visibility:hidden;background-color:rgba(50%2C%2050%2C%2050%2C%200.75);margin:0%200.25rem;color:%23fafafa;padding:0.5rem%201rem;border-radius:0.25rem;width:20rem;position:absolute",".je-not-loaded":"pointer-events:none",".je-header":"display:inline-block",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-checkbox":"display:inline-block;width:auto",".je-checkbox-control--compact":"display:inline-block;margin-right:1rem",".je-radio":"display:inline-block;width:auto",".je-radio-control--compact":"display:inline-block;margin-right:1rem",".je-switcher":"background-color:transparent;display:inline-block;font-style:italic;font-weight:normal;height:auto;width:auto;margin-bottom:0;margin-left:5px;padding:0%200%200%203px",".je-textarea":"width:100%25;height:300px;box-sizing:border-box",".je-range-control":"text-align:center",".je-indented-panel":"padding-left:10px;margin-left:10px;border-left:1px%20solid%20%23ccc",".je-indented-panel--top":"padding-left:10px;margin-left:10px",".je-tabholder":"float:left;width:130px",".je-tabholder .content":"margin-left:120px",".je-tabholder--top":"margin-left:10px",".je-tabholder--clear":"clear:both",".je-tab":"border:1px%20solid%20%23ccc;border-width:1px%200%201px%201px;text-align:center;line-height:30px;border-radius:5px;border-bottom-right-radius:0;border-top-right-radius:0;font-weight:bold;cursor:pointer",".je-tab--top":"float:left;border:1px%20solid%20%23ccc;border-width:1px%201px%200px%201px;text-align:center;line-height:30px;border-radius:5px;padding-left:5px;padding-right:5px;border-bottom-right-radius:0;border-bottom-left-radius:0;font-weight:bold;cursor:pointer",".je-block-link":"display:block",".je-media":"width:100%25"};function ro(s){return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ro(s)}function Vl(s,r){(r==null||r>s.length)&&(r=s.length);for(var n=0,u=new Array(r);n<r;n++)u[n]=s[n];return u}function ql(){ql=function(){return r};var s,r={},n=Object.prototype,u=n.hasOwnProperty,e=Object.defineProperty||function(ie,ne,ce){ie[ne]=ce.value},t=typeof Symbol=="function"?Symbol:{},a=t.iterator||"@@iterator",d=t.asyncIterator||"@@asyncIterator",b=t.toStringTag||"@@toStringTag";function P(ie,ne,ce){return Object.defineProperty(ie,ne,{value:ce,enumerable:!0,configurable:!0,writable:!0}),ie[ne]}try{P({},"")}catch{P=function(ne,ce,De){return ne[ce]=De}}function I(ie,ne,ce,De){var we=ne&&ne.prototype instanceof Ne?ne:Ne,Qe=Object.create(we.prototype),Ct=new Vn(De||[]);return e(Qe,"_invoke",{value:Ar(ie,ce,Ct)}),Qe}function q(ie,ne,ce){try{return{type:"normal",arg:ie.call(ne,ce)}}catch(De){return{type:"throw",arg:De}}}r.wrap=I;var K="suspendedStart",ae="suspendedYield",se="executing",ge="completed",Oe={};function Ne(){}function Ve(){}function dt(){}var yt={};P(yt,a,function(){return this});var Et=Object.getPrototypeOf,Ae=Et&&Et(Et(Dr([])));Ae&&Ae!==n&&u.call(Ae,a)&&(yt=Ae);var Be=dt.prototype=Ne.prototype=Object.create(yt);function Tt(ie){["next","throw","return"].forEach(function(ne){P(ie,ne,function(ce){return this._invoke(ne,ce)})})}function Yt(ie,ne){function ce(we,Qe,Ct,$t){var Jt=q(ie[we],ie,Qe);if(Jt.type!=="throw"){var Zr=Jt.arg,Cn=Zr.value;return Cn&&ro(Cn)=="object"&&u.call(Cn,"__await")?ne.resolve(Cn.__await).then(function(Ir){ce("next",Ir,Ct,$t)},function(Ir){ce("throw",Ir,Ct,$t)}):ne.resolve(Cn).then(function(Ir){Zr.value=Ir,Ct(Zr)},function(Ir){return ce("throw",Ir,Ct,$t)})}$t(Jt.arg)}var De;e(this,"_invoke",{value:function(we,Qe){function Ct(){return new ne(function($t,Jt){ce(we,Qe,$t,Jt)})}return De=De?De.then(Ct,Ct):Ct()}})}function Ar(ie,ne,ce){var De=K;return function(we,Qe){if(De===se)throw Error("Generator is already running");if(De===ge){if(we==="throw")throw Qe;return{value:s,done:!0}}for(ce.method=we,ce.arg=Qe;;){var Ct=ce.delegate;if(Ct){var $t=Oi(Ct,ce);if($t){if($t===Oe)continue;return $t}}if(ce.method==="next")ce.sent=ce._sent=ce.arg;else if(ce.method==="throw"){if(De===K)throw De=ge,ce.arg;ce.dispatchException(ce.arg)}else ce.method==="return"&&ce.abrupt("return",ce.arg);De=se;var Jt=q(ie,ne,ce);if(Jt.type==="normal"){if(De=ce.done?ge:ae,Jt.arg===Oe)continue;return{value:Jt.arg,done:ce.done}}Jt.type==="throw"&&(De=ge,ce.method="throw",ce.arg=Jt.arg)}}}function Oi(ie,ne){var ce=ne.method,De=ie.iterator[ce];if(De===s)return ne.delegate=null,ce==="throw"&&ie.iterator.return&&(ne.method="return",ne.arg=s,Oi(ie,ne),ne.method==="throw")||ce!=="return"&&(ne.method="throw",ne.arg=new TypeError("The iterator does not provide a '"+ce+"' method")),Oe;var we=q(De,ie.iterator,ne.arg);if(we.type==="throw")return ne.method="throw",ne.arg=we.arg,ne.delegate=null,Oe;var Qe=we.arg;return Qe?Qe.done?(ne[ie.resultName]=Qe.value,ne.next=ie.nextLoc,ne.method!=="return"&&(ne.method="next",ne.arg=s),ne.delegate=null,Oe):Qe:(ne.method="throw",ne.arg=new TypeError("iterator result is not an object"),ne.delegate=null,Oe)}function Go(ie){var ne={tryLoc:ie[0]};1 in ie&&(ne.catchLoc=ie[1]),2 in ie&&(ne.finallyLoc=ie[2],ne.afterLoc=ie[3]),this.tryEntries.push(ne)}function ut(ie){var ne=ie.completion||{};ne.type="normal",delete ne.arg,ie.completion=ne}function Vn(ie){this.tryEntries=[{tryLoc:"root"}],ie.forEach(Go,this),this.reset(!0)}function Dr(ie){if(ie||ie===""){var ne=ie[a];if(ne)return ne.call(ie);if(typeof ie.next=="function")return ie;if(!isNaN(ie.length)){var ce=-1,De=function we(){for(;++ce<ie.length;)if(u.call(ie,ce))return we.value=ie[ce],we.done=!1,we;return we.value=s,we.done=!0,we};return De.next=De}}throw new TypeError(ro(ie)+" is not iterable")}return Ve.prototype=dt,e(Be,"constructor",{value:dt,configurable:!0}),e(dt,"constructor",{value:Ve,configurable:!0}),Ve.displayName=P(dt,b,"GeneratorFunction"),r.isGeneratorFunction=function(ie){var ne=typeof ie=="function"&&ie.constructor;return!!ne&&(ne===Ve||(ne.displayName||ne.name)==="GeneratorFunction")},r.mark=function(ie){return Object.setPrototypeOf?Object.setPrototypeOf(ie,dt):(ie.__proto__=dt,P(ie,b,"GeneratorFunction")),ie.prototype=Object.create(Be),ie},r.awrap=function(ie){return{__await:ie}},Tt(Yt.prototype),P(Yt.prototype,d,function(){return this}),r.AsyncIterator=Yt,r.async=function(ie,ne,ce,De,we){we===void 0&&(we=Promise);var Qe=new Yt(I(ie,ne,ce,De),we);return r.isGeneratorFunction(ne)?Qe:Qe.next().then(function(Ct){return Ct.done?Ct.value:Qe.next()})},Tt(Be),P(Be,b,"Generator"),P(Be,a,function(){return this}),P(Be,"toString",function(){return"[object Generator]"}),r.keys=function(ie){var ne=Object(ie),ce=[];for(var De in ne)ce.push(De);return ce.reverse(),function we(){for(;ce.length;){var Qe=ce.pop();if(Qe in ne)return we.value=Qe,we.done=!1,we}return we.done=!0,we}},r.values=Dr,Vn.prototype={constructor:Vn,reset:function(ie){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(ut),!ie)for(var ne in this)ne.charAt(0)==="t"&&u.call(this,ne)&&!isNaN(+ne.slice(1))&&(this[ne]=s)},stop:function(){this.done=!0;var ie=this.tryEntries[0].completion;if(ie.type==="throw")throw ie.arg;return this.rval},dispatchException:function(ie){if(this.done)throw ie;var ne=this;function ce(Jt,Zr){return Qe.type="throw",Qe.arg=ie,ne.next=Jt,Zr&&(ne.method="next",ne.arg=s),!!Zr}for(var De=this.tryEntries.length-1;De>=0;--De){var we=this.tryEntries[De],Qe=we.completion;if(we.tryLoc==="root")return ce("end");if(we.tryLoc<=this.prev){var Ct=u.call(we,"catchLoc"),$t=u.call(we,"finallyLoc");if(Ct&&$t){if(this.prev<we.catchLoc)return ce(we.catchLoc,!0);if(this.prev<we.finallyLoc)return ce(we.finallyLoc)}else if(Ct){if(this.prev<we.catchLoc)return ce(we.catchLoc,!0)}else{if(!$t)throw Error("try statement without catch or finally");if(this.prev<we.finallyLoc)return ce(we.finallyLoc)}}}},abrupt:function(ie,ne){for(var ce=this.tryEntries.length-1;ce>=0;--ce){var De=this.tryEntries[ce];if(De.tryLoc<=this.prev&&u.call(De,"finallyLoc")&&this.prev<De.finallyLoc){var we=De;break}}we&&(ie==="break"||ie==="continue")&&we.tryLoc<=ne&&ne<=we.finallyLoc&&(we=null);var Qe=we?we.completion:{};return Qe.type=ie,Qe.arg=ne,we?(this.method="next",this.next=we.finallyLoc,Oe):this.complete(Qe)},complete:function(ie,ne){if(ie.type==="throw")throw ie.arg;return ie.type==="break"||ie.type==="continue"?this.next=ie.arg:ie.type==="return"?(this.rval=this.arg=ie.arg,this.method="return",this.next="end"):ie.type==="normal"&&ne&&(this.next=ne),Oe},finish:function(ie){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var ce=this.tryEntries[ne];if(ce.finallyLoc===ie)return this.complete(ce.completion,ce.afterLoc),ut(ce),Oe}},catch:function(ie){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var ce=this.tryEntries[ne];if(ce.tryLoc===ie){var De=ce.completion;if(De.type==="throw"){var we=De.arg;ut(ce)}return we}}throw Error("illegal catch attempt")},delegateYield:function(ie,ne,ce){return this.delegate={iterator:Dr(ie),resultName:ne,nextLoc:ce},this.method==="next"&&(this.arg=s),Oe}},r}function Rd(s,r,n,u,e,t,a){try{var d=s[t](a),b=d.value}catch(P){return void n(P)}d.done?r(b):Promise.resolve(b).then(u,e)}function d0(s,r){for(var n=0;n<r.length;n++){var u=r[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,h0(u.key),u)}}function h0(s){var r=function(n,u){if(ro(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,"string");if(ro(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(s);return ro(r)=="symbol"?r:r+""}var ci=function(){function s(t){var a=this,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(function(se,ge){if(!(se instanceof ge))throw new TypeError("Cannot call a class as a function")}(this,s),!(t instanceof Element))throw new Error("element should be an instance of Element");this.element=t,this.options=y({},s.defaults.options,d),this.ready=!1,this.copyClipboard=null,this.schema=this.options.schema,this.template=this.options.template,this.translate=this.options.translate||s.defaults.translate,this.translateProperty=this.options.translateProperty||s.defaults.translateProperty,this.uuid=0,this.__data={};var b=this.options.theme||s.defaults.theme,P=s.defaults.themes[b];if(!P)throw new Error("Unknown theme ".concat(b));this.element.setAttribute("data-theme",b),this.element.classList.add("je-not-loaded"),this.element.classList.remove("je-ready"),this.theme=new P(this);var I=y(f0,this.getEditorsRules()),q=function(se,ge,Oe){return Oe?a.addNewStyleRulesToShadowRoot(se,ge,Oe):a.addNewStyleRules(se,ge)};if(!this.theme.options.disable_theme_rules){var K=k(this.element);q("default",I,K),P.rules!==void 0&&q(b,P.rules,K)}var ae=s.defaults.iconlibs[this.options.iconlib||s.defaults.iconlib];ae&&(this.iconlib=new ae),this.root_container=this.theme.getContainer(),this.element.appendChild(this.root_container),this.promise=this.load()}return r=s,n=[{key:"load",value:(u=ql().mark(function t(){var a,d,b,P,I,q,K=this;return ql().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return a=document.location.origin+document.location.pathname.toString(),(d=new ov(this.options)).onSchemaLoaded=function(se){K.trigger("schemaLoaded",se)},d.onAllSchemasLoaded=function(){K.trigger("allSchemasLoaded")},this.expandSchema=function(se){return d.expandSchema(se)},this.expandRefs=function(se,ge){return d.expandRefs(se,ge)},b=document.location.toString(),ae.next=9,d.load(this.schema,a,b);case 9:P=ae.sent,I=this.options.custom_validators?{custom_validators:this.options.custom_validators}:{},this.validator=new Z(this,null,I,s.defaults),q=this.getEditorClass(P),this.root=this.createEditor(q,{jsoneditor:this,schema:P,required:!0,container:this.root_container}),this.root.preBuild(),this.root.build(),this.root.postBuild(),E(this.options,"startval")&&this.root.setValue(this.options.startval),this.validation_results=this.validator.validate(this.root.getValue()),this.root.showValidationErrors(this.validation_results),this.ready=!0,this.element.classList.remove("je-not-loaded"),this.element.classList.add("je-ready"),window.requestAnimationFrame(function(){K.ready&&(K.validation_results=K.validator.validate(K.root.getValue()),K.root.showValidationErrors(K.validation_results),K.trigger("ready"),K.trigger("change"))});case 24:case"end":return ae.stop()}},t,this)}),e=function(){var t=this,a=arguments;return new Promise(function(d,b){var P=u.apply(t,a);function I(K){Rd(P,d,b,I,q,"next",K)}function q(K){Rd(P,d,b,I,q,"throw",K)}I(void 0)})},function(){return e.apply(this,arguments)})},{key:"getValue",value:function(){if(!this.ready)throw new Error("JSON Editor not ready yet. Make sure the load method is complete");return this.root.getValue()}},{key:"setValue",value:function(t){if(!this.ready)throw new Error("JSON Editor not ready yet. Make sure the load method is complete");return this.root.setValue(t),this}},{key:"validate",value:function(t){if(!this.ready)throw new Error("JSON Editor not ready yet. Make sure the load method is complete");return arguments.length===1?this.validator.validate(t):this.validation_results}},{key:"destroy",value:function(){this.destroyed||this.ready&&(this.schema=null,this.options=null,this.root.destroy(),this.root=null,this.root_container=null,this.validator=null,this.validation_results=null,this.theme=null,this.iconlib=null,this.template=null,this.__data=null,this.ready=!1,this.element.innerHTML="",this.element.removeAttribute("data-theme"),this.destroyed=!0)}},{key:"on",value:function(t,a){return this.callbacks=this.callbacks||{},this.callbacks[t]=this.callbacks[t]||[],this.callbacks[t].push(a),this}},{key:"off",value:function(t,a){if(t&&a){this.callbacks=this.callbacks||{},this.callbacks[t]=this.callbacks[t]||[];for(var d=[],b=0;b<this.callbacks[t].length;b++)this.callbacks[t][b]!==a&&d.push(this.callbacks[t][b]);this.callbacks[t]=d}else t?(this.callbacks=this.callbacks||{},this.callbacks[t]=[]):this.callbacks={};return this}},{key:"trigger",value:function(t,a){if(this.callbacks&&this.callbacks[t]&&this.callbacks[t].length)for(var d=0;d<this.callbacks[t].length;d++)this.callbacks[t][d].apply(this,[a]);return this}},{key:"setOption",value:function(t,a){if(t!=="show_errors")throw new Error("Option ".concat(t," must be set during instantiation and cannot be changed later"));return this.options.show_errors=a,this.onChange(),this}},{key:"getEditorsRules",value:function(){return Object.values(s.defaults.editors).reduce(function(t,a){return a.rules?y(t,a.rules):t},{})}},{key:"getEditorClass",value:function(t){var a,d=this;if(t=this.expandSchema(t),s.defaults.resolvers.find(function(b){return(a=b(t,d))&&s.defaults.editors[a]}),!a)throw new Error("Unknown editor for schema ".concat(JSON.stringify(t)));if(!s.defaults.editors[a])throw new Error("Unknown editor ".concat(a));return s.defaults.editors[a]}},{key:"createEditor",value:function(t,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return new t(a=y({},t.options||{},a),s.defaults,d)}},{key:"onChange",value:function(t){var a=this;if(this.ready&&(t&&this.trigger(t.event,t.data),!this.firing_change))return this.firing_change=!0,window.requestAnimationFrame(function(){a.firing_change=!1,a.ready&&(a.validation_results=a.validator.validate(a.root.getValue()),a.options.show_errors!=="never"?a.root.showValidationErrors(a.validation_results):a.root.showValidationErrors([]),a.trigger("change"))}),this}},{key:"compileTemplate",value:function(t){var a,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s.defaults.template;if(typeof d=="string"){if(!s.defaults.templates[d])throw new Error("Unknown template engine ".concat(d));if(!(a=s.defaults.templates[d]()))throw new Error("Template engine ".concat(d," missing required library."))}else a=d;if(!a)throw new Error("No template engine set");if(!a.compile)throw new Error("Invalid template engine set");return a.compile(t)}},{key:"_data",value:function(t,a,d){if(arguments.length!==3)return t.hasAttribute("data-jsoneditor-".concat(a))?this.__data[t.getAttribute("data-jsoneditor-".concat(a))]:null;var b;t.hasAttribute("data-jsoneditor-".concat(a))?b=t.getAttribute("data-jsoneditor-".concat(a)):(b=this.uuid++,t.setAttribute("data-jsoneditor-".concat(a),b)),this.__data[b]=d}},{key:"registerEditor",value:function(t){return this.editors=this.editors||{},this.editors[t.path]=t,this}},{key:"unregisterEditor",value:function(t){return this.editors=this.editors||{},this.editors[t.path]=null,this}},{key:"getEditor",value:function(t){if(this.editors)return this.editors[t]}},{key:"watch",value:function(t,a){return this.watchlist=this.watchlist||{},this.watchlist[t]=this.watchlist[t]||[],this.watchlist[t].push(a),this}},{key:"unwatch",value:function(t,a){if(!this.watchlist||!this.watchlist[t])return this;if(!a)return this.watchlist[t]=null,this;for(var d=[],b=0;b<this.watchlist[t].length;b++)this.watchlist[t][b]!==a&&d.push(this.watchlist[t][b]);return this.watchlist[t]=d.length?d:null,this}},{key:"notifyWatchers",value:function(t){if(!this.watchlist||!this.watchlist[t])return this;for(var a=0;a<this.watchlist[t].length;a++)this.watchlist[t][a]()}},{key:"isEnabled",value:function(){return!this.root||this.root.isEnabled()}},{key:"enable",value:function(){this.root.enable()}},{key:"disable",value:function(){this.root.disable()}},{key:"setCopyClipboardContents",value:function(t){this.copyClipboard=t}},{key:"getCopyClipboardContents",value:function(){return this.copyClipboard}},{key:"addNewStyleRules",value:function(t,a){var d=document.querySelector("#theme-".concat(t));d||((d=document.createElement("style")).setAttribute("id","theme-".concat(t)),d.appendChild(document.createTextNode("")),document.head.appendChild(d));for(var b=d.sheet?d.sheet:d.styleSheet,P=this.element.nodeName.toLowerCase();b.cssRules.length>0;)b.deleteRule(0);Object.keys(a).forEach(function(I){var q=t==="default"?I:"".concat(P,'[data-theme="').concat(t,'"] ').concat(I);b.insertRule?b.insertRule(q+" {"+decodeURIComponent(a[I])+"}",0):b.addRule&&b.addRule(q,decodeURIComponent(a[I]),0)})}},{key:"addNewStyleRulesToShadowRoot",value:function(t,a,d){var b=this.element.nodeName.toLowerCase(),P="";Object.keys(a).forEach(function(K){var ae=t==="default"?K:"".concat(b,'[data-theme="').concat(t,'"] ').concat(K);P+=ae+" {"+decodeURIComponent(a[K])+`}
78
+ `});var I,q=new CSSStyleSheet;q.replaceSync(P),d.adoptedStyleSheets=[].concat(function(K){if(Array.isArray(K))return Vl(K)}(I=d.adoptedStyleSheets)||function(K){if(typeof Symbol<"u"&&K[Symbol.iterator]!=null||K["@@iterator"]!=null)return Array.from(K)}(I)||function(K,ae){if(K){if(typeof K=="string")return Vl(K,ae);var se=Object.prototype.toString.call(K).slice(8,-1);return se==="Object"&&K.constructor&&(se=K.constructor.name),se==="Map"||se==="Set"?Array.from(K):se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se)?Vl(K,ae):void 0}}(I)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
79
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),[q])}},{key:"showValidationErrors",value:function(t){var a=t??this.validate();Object.values(this.editors).forEach(function(d){d&&(d.is_dirty=!0,d.showValidationErrors(a))})}}],n&&d0(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,u,e}();ci.defaults=Ji,ci.AbstractEditor=G,ci.AbstractTheme=ui,ci.AbstractIconLib=si,Object.assign(ci.defaults.themes,c0),Object.assign(ci.defaults.editors,us),Object.assign(ci.defaults.templates,av),Object.assign(ci.defaults.iconlibs,Av)})(),S})())})(Hf);var Vf=Hf.exports;function Kg(c,l,i,_){if(l===!1||l==null||!l&&(c==="class"||c==="style"))return"";if(l===!0)return" "+(_?c:c+'="'+c+'"');var j=typeof l;return j!=="object"&&j!=="function"||typeof l.toJSON!="function"||(l=l.toJSON()),typeof l=="string"||(l=JSON.stringify(l),i||l.indexOf('"')===-1)?(i&&(l=Ru(l))," "+c+'="'+l+'"'):" "+c+"='"+l.replace(/'/g,"&#39;")+"'"}function Ru(c){var l=""+c,i=Qg.exec(l);if(!i)return c;var _,j,S,p="";for(_=i.index,j=0;_<l.length;_++){switch(l.charCodeAt(_)){case 34:S="&quot;";break;case 38:S="&amp;";break;case 60:S="&lt;";break;case 62:S="&gt;";break;default:continue}j!==_&&(p+=l.substring(j,_)),j=_+1,p+=S}return j!==_?p+l.substring(j,_):p}var Qg=/["&<>]/;function qf(c,l,i,_){if(!(c instanceof Error))throw c;if(!(typeof window>"u"&&l||_))throw c.message+=" on line "+i,c;var j,S,p,C;try{_=_||require("fs").readFileSync(l,{encoding:"utf8"}),j=3,S=_.split(`
80
+ `),p=Math.max(i-j,0),C=Math.min(S.length,i+j)}catch(o){return c.message+=" - could not read from "+l+" ("+o.message+")",void qf(c,null,i)}j=S.slice(p,C).map(function(o,h){var m=h+p+1;return(m==i?" > ":" ")+m+"| "+o}).join(`
81
+ `),c.path=l;try{c.message=(l||"Pug")+":"+i+`
82
+ `+j+`
83
+
84
+ `+c.message}catch{}throw c}function Zg(c){var l="",i,_,j;try{var S=c||{};(function(p,C,o,h,m){j=1,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<div class="g-body-title">',j=1,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+"Form ",j=1,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+"<a"+Kg("href",`#form/${h.id}`,!0,!1)+">",j=1,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+Ru((i=h.name())==null?"":i)+"</a>",j=1,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+"</div>",j=2,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",j=9,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<form id="g-form" role="form">',j=10,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",C===null?(j=11,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<div class="alert alert-warning">',j=12,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+"This form does not have any predefined destination folder for data uploads.",j=13,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+`
85
+ `,j=13,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+"Please select a folder to save the data before filling out the form.</div>",j=15,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<div class="form-group" id="g-data-group">',j=16,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<label class="control-label">',j=16,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+"Destination Folder</label>",j=17,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<div class="input-group input-group-sm">',j=18,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<input class="form-control input-sm" id="g-folder-data-id" type="text" placeholder="Select a folder"/>',j=22,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<div class="input-group-btn">',j=23,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<button class="g-open-browser btn btn-default" type="button">',j=24,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<i class="icon-folder-open"></i></button></div></div></div>'):(j=26,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<div class="alert alert-info">',j=27,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+"Data uploaded through this form is saved in the folder: ",j=27,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<span class="g-bold-part">',j=27,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+Ru((i=o)==null?"":i)+"</span>",j=27,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+".",j=28,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+`
86
+ `,j=28,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+"Note that form can be configured to perform additional path transformations and",j=29,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+`
87
+ `,j=29,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+"and data can end up in a subfolder of the one shown here.</div>"),j=31,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<div class="g-form-container"></div>',j=33,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<div class="form-footer">',j=34,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<a class="g-cancel-form btn btn-small btn-default" data-dismiss="modal">',j=34,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+"Cancel</a>",j=35,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<button class="g-save-form btn btn-small btn-primary" type="submit">',j=36,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<i class="icon-edit"></i>',j=37,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+"Save</button></div>",j=39,_="/home/runner/work/girder-jsonforms/girder-jsonforms/girder_jsonforms/web_client/templates/editFormView.pug",l=l+'<div class="g-validation-failed-message"></div></form>'}).call(this,"AccessType"in S?S.AccessType:typeof AccessType<"u"?AccessType:void 0,"destFolder"in S?S.destFolder:typeof destFolder<"u"?destFolder:void 0,"destFolderPath"in S?S.destFolderPath:typeof destFolderPath<"u"?destFolderPath:void 0,"form"in S?S.form:typeof form<"u"?form:void 0,"level"in S?S.level:typeof level<"u"?level:void 0)}catch(p){qf(p,_,j)}return l}const x0="",Xg=girder.views.widgets.AccessWidget,zf=girder.models.FolderModel,ey=girder.views.widgets.BrowserWidget,ty=girder.views.View,Nu=girder.router,ry=girder.views.widgets.UploadWidget,{getCurrentUser:ny}=girder.auth,{AccessType:iy}=girder.constants;function oy(c){let l="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",_=i.length;let j=0;for(;j<c;)l+=i.charAt(Math.floor(Math.random()*_)),j+=1;return l}function ay(c,l){let i=c;for(let _=0;_<l.length-1;_++)i[l[_]]||(i[l[_]]={}),i=i[l[_]];return i}function Ua(c,l,i){const _=c.jsoneditor.getValue();let j=l.split(".");j.shift();let S=ay(_,j);S[j[j.length-1]]=i,c.jsoneditor.setValue(_)}const sy=ty.extend({events:{"click .g-reload-form":function(c){this.model.fetch().done(()=>{this.render()})},"click .g-edit-form":function(c){Nu.navigate("form/"+this.model.get("_id")+"/edit",{params:this._formSpec,trigger:!0})},"click .g-open-browser":function(){this.dataSelector.setElement(fi("#g-dialog-container")).render()},"click .g-edit-access":"editAccess","click a.g-cancel-form":function(){this.tempFolder.destroy(),Nu.navigate("forms",{trigger:!0})},"submit #g-form":function(c){c.preventDefault(),this.$(".g-validation-failed-message").empty();var l=this.form.validate();if(l.length){this.form.root.showValidationErrors(l),this.$(".g-validation-failed-message").html("<ul>"+l.map(function(i){return`<li> Path ${i.path}: ${i.message} (${i.property})</li>`}).join("")+"</ul>");return}new vs({formId:this.model.id,data:JSON.stringify(this.form.getValue()),sourceId:this.tempFolder.id,destinationId:this.destFolder.id}).save().done(()=>{Nu.navigate("forms",{trigger:!0})})}},initialize:function(c){window.Handlebars=Yn,Yn.registerHelper("multiply",function(S,p){return S*p}),Yn.registerHelper("divide",function(S,p){return S/p}),Yn.registerHelper("add",function(S,p){return S+p}),Yn.registerHelper("subtract",function(S,p){return S-p}),Yn.registerHelper("substr",function(S,p,C){return S!==void 0?S.substr(p,C):""}),Yn.registerHelper("split",function(S,p,C){return S.split(p)[C]}),Yn.registerHelper("join",function(S,p,C){return`${S}${C}${p}`}),Yn.registerHelper("tamupath",function(p,C=!1){if(p==null||p===""||Array.isArray(p)&&p.length===1&&p[0]==="")return"";let o=p.substr(0,3),h=parseInt(p.substr(3,2)),m=Math.trunc(h/8),w=(m*8+1).toString().padStart(2,"0"),y=((m+1)*8).toString().padStart(2,"0"),x=p.split("_")[1],k=x.substr(0,3),E=p.split("_")[2];if(E==="EDS"?E=k==="VAM"?"SEM-EDS":"EDS-EBSD":E==="SHPB"?E=`Compression (SHPB)/${p.split("_")[3]}`:(E==="Tensile"||E==="SPT")&&(E=`${E}/${p.split("_")[3]}`),k==="VAM")return`${o}/${x}/${p.split("_")[0]}/${E}`;if(k==="DED"){let T=`${o}/${x}-${w}-${y}`;return C?`${T}/${E}`:`${T}/${p.split("_")[0]}/${E}`}}),this.schema=this.model.get("schema");const l=this.model.get("folderId");if(this.destFolder=null,l){var i=new zf({_id:l}).once("g:fetched",function(S){this.destFolder=i},this);fi.when(i.fetch()).done(()=>{this._fetchFolderToRoot(this.destFolder)})}this.currentUser=ny(),this.dataSelector=new ey({parentView:this,showItems:!1,selectItem:!1,root:this.currentUser,titleText:"Select a folder for upload",helpText:'Browse to a directory to select it, then click "Save"',showPreview:!1,input:!1,validate:Us.noop});const _=`_temp_${this.model.id}_${oy(5)}`;this.tempFolder=new zf({parentType:"user",parentId:this.currentUser.id,name:_}),this.tempFolder.save().done(()=>{this.tempFolder.addMetadata("formId",this.model.id)});const j=this;window.addEventListener("beforeunload",function(S){j.tempFolder.destroy()}),Vf.JSONEditor.defaults.callbacks.button={button1CB:(function(S,p){const C=S.options.path.replace(/\.button(?!.*\.button)/,".file");Ua(S,C,"Waiting for a file to be uploaded"),this.uploadDialog(S,C,!1,!0)}).bind(this),button2CB:(function(S,p){const C=S.options.path.replace(/\.button(?!.*\.button)/,".file");Ua(S,C,"Waiting for a directory to be uploaded"),this.uploadDialog(S,C,!0)}).bind(this),buttonSample:function(S,p){const C=S.options.path.replace(/\.button(?!.*\.button)/,".file");Ua(S,C,"Waiting for a file to be uploaded"),this.uploadDialog(S,C,!1,!0)}},this.listenTo(this.dataSelector,"g:saved",function(S){this.$("#g-folder-data-id").val(S.attributes.name),this.$("#g-folder-data-id").attr("objId",S.id),this._fetchFolderToRoot(S)}),this.initialValues=c.initialValues,this.form=null},_fetchFolderToRoot:function(c){c.getRootPath().done(l=>{var i=l[0].type;i==="user"?i=`/user/${l[0].object.login}/${l.slice(1).map(_=>_.object.name).join("/")}`.replace(/\/$/g,""):i=`/${i}/${l.map(_=>_.object.name).join("/")}`,this.destFolderPath=`${i}/${c.name()}`,this.destFolder=c,this.render()})},uploadDialog:function(c,l,i,_=!1){var j=!0,S=!1;i===!0&&(j=!1,S=!0);const p=c.parent.getValue(),C=this.model.get("uniqueField","sampleId");var o={[C]:p[C],annotate:!0};p.targetPath&&(o.targetPath=p.targetPath),this.model.get("gdriveFolderId")&&(o.gdriveFolderId=this.model.get("gdriveFolderId")),new ry({el:fi("#g-dialog-container"),parentView:this,title:"Upload a file",multiFile:_,onlyFiles:j,onlyFolders:S,overrideStart:!1,overrideStartText:"Upload",overrideStartIcon:"ok",overrideStartClass:"btn-primary",parent:this.tempFolder,parentType:"folder",otherParams:{reference:JSON.stringify(o)}}).on("g:uploadFinished",function(h){var m="";h.files.length!==0&&(h.files.length===1?m=h.files[0].id:m=Array.from(h.files).map(function(w){return w.id}).join(","),Ua(c,l,m))},this).render()},render:function(){this.$el.html(Zg({form:this.model,level:this.model.getAccessLevel(),AccessType:iy,destFolder:this.destFolder,destFolderPath:this.destFolderPath}));const c=this.$(".g-form-container");if(this.schema){this.form=new Vf.JSONEditor(c[0],{schema:this.schema,theme:"bootstrap3",template:"handlebars",disable_edit_json:!0,disable_properties:!0,disable_collapse:!0,show_errors:"always"}),this.model.get("folderId")&&(this.$("#g-folder-data-id").attr("objId",this.model.get("folderId")),this.$("#g-folder-data-id").val(this.model.get("folderId")));const l=this;fi.when(this.form.promise).done(()=>{l.initialValues&&l.form.setValue(l.initialValues.get("data")),l.destFolder===null?l.form.disable():l.form.enable()})}return this},editAccess:function(){new Xg({el:fi("#g-dialog-container"),model:this.model,modelType:"form",parentView:this}).on("g:accessListSaved",function(c){console.log(c),console.log("Should change access to folderId")},this).render()}}),lo=girder.router,Bu=girder.events;lo.route("forms","forms",function(){Bu.trigger("g:navigateTo",fh)}),lo.route("form/:id/entry","form",function(c,l){const i=new Ea({_id:c}),_=[i.fetch()],j=l&&l.entryId?new vs({_id:l.entryId}):null;j&&_.push(j.fetch()),fi.when(..._).done(()=>{if(j&&j.get("formId")!==c){lo.navigate("form/"+c+"/entry",{trigger:!0,replace:!0});return}Bu.trigger("g:navigateTo",sy,{model:i,initialValues:j},{renderNow:!0})}).fail(()=>{lo.navigate("forms",{trigger:!0,replace:!0})})}),lo.route("form/:id","form",function(c){const l=new Ea({_id:c});l.fetch().done(()=>{Bu.trigger("g:navigateTo",nh,{model:l},{renderNow:!0})}).fail(()=>{lo.navigate("forms",{trigger:!0,replace:!0})})});const{wrap:uy}=girder.utilities.PluginUtils,ly=girder.views.layout.GlobalNavView;uy(ly,"initialize",function(c){c.apply(this,arguments),this.defaultNavItems.push({name:"Forms",icon:"icon-doc",target:"forms"})})});
88
+ //# sourceMappingURL=girder-plugin-jsonforms.umd.cjs.map