PageSourceSearch

https://globalfinancials.com/mxclientsystem/mxui/mxui.js?639004529915235291

js globalfinancials.com collected 2026-10-08 18:46:14 UTC 1,275,988 bytes, 66 lines download raw bytes

1/* @preserve
2Copyright (c) 2005-2025, Mendix BV. All rights reserved.
3See mxclientsystem/licenses.txt for third party licenses that apply.
4*/
5dojoConfig.async=!0,"undefined"==typeof dojo&&(function(e,t){var n=function(){return void 0!==g&&"function"!=typeof g?g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this}(),r=function(){},i=function(e){for(var t in e)return 0;return 1},o={}.toString,a=function(e){return"[object Function]"==o.call(e)},s=function(e){return"[object String]"==o.call(e)},c=function(e){return"[object Array]"==o.call(e)},l=function(e,t){if(e)for(var n=0;n<e.length;)t(e[n++])},u=function(e,t){for(var n in t)e[n]=t[n];return e},d=function(e,t){return u(new Error(e),{src:"dojoLoader",info:t})},f=1,h=function(){return"_"+f++},p=function(e,t,n){return ce(e,t,n,0,p)},g=n,m=g.document,v=m&&m.createElement("DiV"),y=p.has=function(e){return a(b[e])?b[e]=b[e](g,m,v):b[e]},b=y.cache=t.hasCache;for(var w in a(e)&&(e=e(n)),y.add=function(e,t,n,r){return(void 0===b[e]||r)&&(b[e]=t),n&&y(e)},y.add("host-webworker","undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope),y("host-webworker")&&(u(t.hasCache,{"host-browser":0,dom:0,"dojo-dom-ready-api":0,"dojo-sniff":0,"dojo-inject-api":1,"host-webworker":1,"dojo-guarantee-console":0}),t.loaderPatch={injectUrl:function(e,t){try{importScripts(e),t()}catch(e){console.error(e)}}}),e.has)y.add(w,e.has[w],0,1);var x,_=0,S="sync",C=[],E=0,O=r,j=r;p.isXdUrl=r,p.initSyncLoader=function(e,t,n){return E||(E=e,O=t,j=n),{sync:S,requested:1,arrived:2,nonmodule:3,executing:4,executed:5,syncExecStack:C,modules:W,execQ:ue,getModule:Se,injectModule:He,setArrived:pe,signal:M,finishExec:De,execModule:Me,dojoRequirePlugin:E,getLegacyMode:function(){return _},guardCheckComplete:$e}};var k=location.protocol,R=location.host;if(p.isXdUrl=function(e){if(/^\./.test(e))return!1;if(/^\/\//.test(e))return!0;var t=e.match(/^([^\/\:]+\:)\/+([^\/]+)/);return t&&(t[1]!=k||R&&t[2]!=R)},y.add("dojo-force-activex-xhr",!m.addEventListener&&"file:"==window.location.protocol),y.add("native-xhr","undefined"!=typeof XMLHttpRequest),y("native-xhr")&&!y("dojo-force-activex-xhr"))x=function(){return new XMLHttpRequest};else{for(var N,T=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],A=0;A<3;)try{if(N=T[A++],new ActiveXObject(N))break}catch(e){}x=function(){return new ActiveXObject(N)}}p.getXhr=x,y.add("dojo-gettext-api",1),p.getText=function(e,t,n){var r=x();if(r.open("GET",Be(e),!1),r.send(null),200!=r.status&&(location.host||r.status))throw d("xhrFailed",r.status);return n&&n(r.responseText,t),r.responseText};var P=y("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");p.eval=function(e,t){return P(e+"\r\n//# sourceURL="+t)};var D={},I="error",M=p.signal=function(e,t){var n=D[e];l(n&&n.slice(0),(function(e){e.apply(null,c(t)?t:[t])}))},L=p.on=function(e,t){var n=D[e]||(D[e]=[]);return n.push(t),{remove:function(){for(var e=0;e<n.length;e++)if(n[e]===t)return void n.splice(e,1)}}},$=[],F={},B=[],V={},z=p.map={},U=[],W={},q="",H={},G="url:",Z={},K={},X=0;if(!y("foreign-loader"))var Y=function(e,t){var n,r,i,o,a;for(n in t=!1!==t,Z)r=Z[n],(i=n.match(/^url\:(.+)/))?H[G+Ee(i[1],e)]=r:"*now"==n?o=r:"*noref"!=n&&(a=we(n,e,!0),H[a.mid]=H[G+a.url]=r);o&&o(le(e)),t&&(Z={})};var Q=function(e){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,(function(e){return"\\"+e}))},J=function(e,t){for(var n in t.splice(0,t.length),e)t.push([n,e[n],new RegExp("^"+Q(n)+"(/|$)"),n.length]);return t.sort((function(e,t){return t[3]-e[3]})),t},ee=function(e){var t=e.name;t||(e={name:t=e}),(e=u({main:"main"},e)).location=e.location?e.location:t,e.packageMap&&(z[t]=e.packageMap),e.main.indexOf("./")||(e.main=e.main.substring(2)),V[t]=e},te=[],ne=function(e,t,n){for(var r in e){if("waitSeconds"==r&&(p.waitms=1e3*(e[r]||0)),"cacheBust"==r&&(q=e[r]?s(e[r])?e[r]:(new Date).getTime()+"":""),"baseUrl"!=r&&"combo"!=r||(p[r]=e[r]),"async"==r){var i=e[r];p.legacyMode=_=s(i)&&/sync|legacyAsync/.test(i)?i:!i&&S,p.async=!_}e[r]!==b&&(p.rawConfig[r]=e[r],"has"!=r&&y.add("config-"+r,e[r],0,t))}for(r in p.baseUrl||(p.baseUrl="./"),/\/$/.test(p.baseUrl)||(p.baseUrl+="/"),e.has)y.add(r,e.has[r],0,t);for(var o in l(e.packages,ee),e.packagePaths)l(e.packagePaths[o],(function(e){var t=o+"/"+e;s(e)&&(e={name:e}),e.location=t,ee(e)}));if(J(u(z,e.map),U),l(U,(function(e){e[1]=J(e[1],[]),"*"==e[0]&&(U.star=e)})),J(u(F,e.paths),B),c=e.aliases,d=$,l(c,(function(e){d.push([s(e[0])?new RegExp("^"+Q(e[0])+"$"):e[0],e[1]])})),!y("foreign-loader")){if(t)te.push({config:e.config});else for(r in e.config){var a=Se(r,n);a.config=u(a.config||{},e.config[r])}e.cache&&(Y(),Z=e.cache,Y(0,!!e.cache["*noref"]))}var c,d;M("config",[e,p.rawConfig])};y("dojo-cdn");var re,ie,oe,ae=m.getElementsByTagName("script");for(A=0;A<ae.length;)(ie=(Qe=ae[A++]).getAttribute("src"))&&(oe=ie.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))&&(re=oe[3]||"",t.baseUrl=t.baseUrl||re,X=Qe),(ie=Qe.getAttribute("data-dojo-config")||Qe.getAttribute("djConfig"))&&(K=p.eval("({ "+ie+" })","data-dojo-config"),X=Qe);
5if(X=Array.from(ae).find((function(e){return e.src&&!e.src.match(/^\w+-extension:\//)})),p.rawConfig={},ne(t,1),y("dojo-cdn")&&(V.dojo.location=re,re&&(re+="/"),V.dijit.location=re+"../dijit/",V.dojox.location=re+"../dojox/"),ne(e,1),ne(K,1),!y("foreign-loader"))var se=function(e){$e((function(){l(e.deps,He)}))},ce=function(e,t,n,i,o){var a,l;if(s(e)){if((a=Se(e,i,!0))&&a.executed)return a.result;throw d("undefinedModule",e)}if(c(e)||(ne(e,0,i),e=t,t=n),c(e))if(e.length){l="require*"+h();for(var f,g=[],m=0;m<e.length;)f=e[m++],g.push(Se(f,i));a=u(ye("",l,0,""),{injected:2,deps:g,def:t||r,require:i?i.require:p,gc:1}),W[a.mid]=a,se(a);var v=Le&&_!=S;$e((function(){Me(a,v)})),a.executed||ue.push(a),Fe()}else t&&t();return o},le=function(e){if(!e)return p;var t=e.require;return t||(t=function(n,r,i){return ce(n,r,i,e,t)},e.require=u(t,p),t.module=e,t.toUrl=function(t){return Ee(t,e)},t.toAbsMid=function(t){return Ce(t,e)},t.syncLoadNls=function(t){var n=we(t,e),r=W[n.mid];return r&&r.executed||(ze=H[n.mid]||H[G+n.url])&&(qe(ze),r=W[n.mid]),r&&r.executed&&r.result}),t},ue=[],de=[],fe={},he=function(e){e.injected=1,fe[e.mid]=1,e.url&&(fe[e.url]=e.pack||1),Ye()},pe=function(e){e.injected=2,delete fe[e.mid],e.url&&delete fe[e.url],i(fe)&&(Xe(),"xd"==_&&(_=S))},ge=p.idle=function(){return!de.length&&i(fe)&&!ue.length&&!Le};var me=function(e,t){if(t)for(var n=0;n<t.length;n++)if(t[n][2].test(e))return t[n];return 0},ve=function(e){var t,n,r=[];for(e=e.replace(/\\/g,"/").split("/");e.length;)".."==(t=e.shift())&&r.length&&".."!=n?(r.pop(),n=r[r.length-1]):"."!=t&&r.push(n=t);return r.join("/")},ye=function(e,t,n,r){var i=p.isXdUrl(r);return{pid:e,mid:t,pack:n,url:r,executed:0,def:0,isXd:i,isAmd:!!(i||V[e]&&V[e].isAmd)}},be=function(e,t,n,r,i,o,s,c,u,f){var h,p,g,m,v,b,w;if(w=/^\./.test(e),/(^\/)|(\:)|(\.js$)/.test(e)||w&&!t)return ye(0,e,0,e);if(e=ve(w?t.mid+"/../"+e:e),/^\./.test(e))throw d("irrationalPath",e);f||w||!o.star||(m=me(e,o.star[1])),!m&&t&&(m=(m=me(t.mid,o))&&me(e,m[1])),m&&(e=m[1]+e.substring(m[3])),(p=n[h=(oe=e.match(/^([^\/]+)(\/(.+))?$/))?oe[1]:""])?e=h+"/"+(g=oe[3]||p.main):h="";var x=0;return l(c,(function(t){var n=e.match(t[0]);n&&n.length>0&&(x=a(t[1])?e.replace(t[0],t[1]):t[1])})),x?be(x,0,n,r,i,o,s,c,u):(b=r[e])?u?ye(b.pid,b.mid,b.pack,b.url):r[e]:(v=(m=me(e,s))?m[1]+e.substring(m[3]):h?("/"===p.location.slice(-1)?p.location.slice(0,-1):p.location)+"/"+g:y("config-tlmSiblingOfDojo")?"../"+e:e,/(^\/)|(\:)/.test(v)||(v=i+v),ye(h,e,p,ve(v+=".js")))},we=function(e,t,n){return be(e,t,V,W,p.baseUrl,U,B,$,void 0,n)};if(!y("foreign-loader"))var xe=function(e,t,n){return e.normalize?e.normalize(t,(function(e){return Ce(e,n)})):Ce(t,n)},_e=0,Se=function(e,t,n){var r,i,o,a;return(r=e.match(/^(.+?)\!(.*)$/))?(i=Se(r[1],t,n),_!=S||i.executed||(He(i),2!==i.injected||i.executed||$e((function(){Me(i)})),i.executed?Pe(i):ue.unshift(i)),5!==i.executed||i.load||Pe(i),i.load?(o=xe(i,r[2],t),e=i.mid+"!"+(i.dynamic?++_e+"!":"")+o):(o=r[2],e=i.mid+"!"+ ++_e+"!waitingForPlugin"),a={plugin:i,mid:e,req:le(t),prid:o}):a=we(e,t),W[a.mid]||!n&&(W[a.mid]=a)};var Ce=p.toAbsMid=function(e,t){return we(e,t).mid},Ee=p.toUrl=function(e,t){var n=we(e+"/x",t),r=n.url;return Be(0===n.pid?e:r.substring(0,r.length-5))};if(!y("foreign-loader"))var Oe={injected:2,executed:5,def:3,result:3},je=function(e){return W[e]=u({mid:e},Oe)},ke=je("require"),Re=je("exports"),Ne=je("module"),Te={},Ae=0,Pe=function(e){var t=e.result;return e.dynamic=t.dynamic,e.normalize=t.normalize,e.load=t.load,e},De=function(e){for(p.trace("loader-finish-exec",[e.mid]),e.executed=5,e.defOrder=Ae++,l(e.provides,(function(e){e()})),e.loadQ&&(Pe(e),function(e){var t={};l(e.loadQ,(function(n){var r=xe(e,n.prid,n.req.module),i=e.dynamic?n.mid.replace(/waitingForPlugin$/,r):e.mid+"!"+r,o=u(u({},n),{mid:i,prid:r,injected:0});W[i]&&W[i].injected||Ve(W[i]=o),t[n.mid]=W[i],pe(n),delete W[n.mid]})),e.loadQ=0;var n=function(e){for(var n,r=e.deps||[],i=0;i<r.length;i++)(n=t[r[i].mid])&&(r[i]=n)};for(var r in W)n(W[r]);l(ue,n)}(e)),A=0;A<ue.length;)ue[A]===e?ue.splice(A,1):A++;/^require\*/.test(e.mid)&&delete W[e.mid]},Ie=[],Me=function(e,t){if(4===e.executed)return p.trace("loader-circular-dependency",[Ie.concat(e.mid).join("->")]),!e.def||t?Te:e.cjs&&e.cjs.exports;if(!e.executed){if(!e.def)return Te;var n,r,i=e.mid,o=e.deps||[],s=[],c=0;for(e.executed=4;n=o[c++];){if((r=n===ke?le(e):n===Re?e.cjs.exports:n===Ne?e.cjs:Me(n,t))===Te)return e.executed=0,p.trace("loader-exec-module",["abort",i]),Te;s.push(r)}!function(e,t){p.trace("loader-run-factory",[e.mid]);var n,r=e.def;if(C.unshift(e),y("config-dojo-loader-catches"))try{n=a(r)?r.apply(null,t):r}catch(t){M(I,e.result=d("factoryThrew",[e,t]))}else n=a(r)?r.apply(null,t):r;e.result=void 0===n&&e.cjs?e.cjs.exports:n,C.shift(e)}(e,s),De(e)}return e.result},Le=0,$e=function(e){try{Le++,e()}catch(e){throw e}finally{Le--}ge()&&M("idle",[])},Fe=function(){Le||$e((function(){O();for(var e,t,n=0;n<ue.length;)e=Ae,t=ue[n],Me(t),e!=Ae?(O(),n=0):n++}))};var Be="function"==typeof e.fixupUrl?e.fixupUrl:function(e){return(e+="")+(q?(/\?/.test(e)?"&":"?")+q:"")};void 0===y("dojo-loader-eval-hint-url")&&y.add("dojo-loader-eval-hint-url",1);var Ve=function(e){var t=e.plugin;5!==t.executed||t.load||Pe(t),t.load?t.load(e.prid,e.req,(function(t){e.result=t,pe(e),De(e),Fe()})):t.loadQ?t.loadQ.push(e):(t.loadQ=[e],ue.unshift(t),He(t))},ze=0,Ue=0,We=0,qe=function(e,t){if(y("config-stripStrict")&&(e=e.replace(/(["'])use strict\1/g,"")),We=1,y("config-dojo-loader-catches"))try{e===ze?ze.call(null):p.eval(e,y("dojo-loader-eval-hint-url")?t.url:t.mid
5)}catch(e){M(I,d("evalModuleThrew",t))}else e===ze?ze.call(null):p.eval(e,y("dojo-loader-eval-hint-url")?t.url:t.mid);We=0},He=function(e){var t=e.mid,n=e.url;if(!(e.executed||e.injected||fe[t]||e.url&&(e.pack&&fe[e.url]===e.pack||1==fe[e.url])))if(he(e),e.plugin)Ve(e);else{var r=function(){if(Ze(e),2!==e.injected){if(y("dojo-enforceDefine"))return void M(I,d("noDefine",e));pe(e),u(e,Oe),p.trace("loader-define-nonmodule",[e.url])}_?!C.length&&Fe():Fe()};if(ze=H[t]||H[G+e.url])return p.trace("loader-inject",["cache",e.mid,n]),qe(ze,e),void r();if(_)if(e.isXd)_==S&&(_="xd");else if(!e.isAmd||_==S){var i=function(i){if(_==S){if(C.unshift(e),qe(i,e),C.shift(),Ze(e),e.cjs||(pe(e),De(e)),e.finish){var o=t+"*finish",a=e.finish;delete e.finish,tt(o,["dojo",("dojo/require!"+a.join(",")).replace(/\./g,"/")],(function(e){l(a,(function(t){e.require(t)}))})),ue.unshift(Se(o))}r()}else(i=j(e,i))?(qe(i,e),r()):(Ue=e,p.injectUrl(Be(n),r,e),Ue=0)};if(p.trace("loader-inject",["xhr",e.mid,n,_!=S]),y("config-dojo-loader-catches"))try{p.getText(n,_!=S,i)}catch(t){M(I,d("xhrInjectFailed",[e,t]))}else p.getText(n,_!=S,i);return}p.trace("loader-inject",["script",e.mid,n]),Ue=e,p.injectUrl(Be(n),r,e),Ue=0}},Ge=function(e,t,n){p.trace("loader-define-module",[e.mid,t]);var r=e.mid;if(2===e.injected)return M(I,d("multipleDefine",e)),e;u(e,{deps:t,def:n,cjs:{id:e.mid,uri:e.url,exports:e.result={},setExports:function(t){e.cjs.exports=t},config:function(){return e.config}}});for(var i=0;t[i];i++)t[i]=Se(t[i],e);return _&&!fe[r]&&(se(e),ue.push(e),Fe()),pe(e),a(n)||t.length||(e.result=n,De(e)),e},Ze=function(e,t){for(var n,r,i=[];de.length;)r=de.shift(),t&&(r[0]=t.shift()),n=r[0]&&Se(r[0])||e,i.push([n,r[1],r[2]]);Y(e),l(i,(function(e){se(Ge.apply(null,e))}))},Ke=0,Xe=r,Ye=r;Xe=function(){Ke&&clearTimeout(Ke),Ke=0},Ye=function(){Xe(),p.waitms&&(Ke=g.setTimeout((function(){Xe(),M(I,d("timeout",fe))}),p.waitms))},y.add("ie-event-behavior",m.attachEvent&&"undefined"==typeof Windows&&("undefined"==typeof opera||"[object Opera]"!=opera.toString()));var Qe,Je=function(e,t,n,r){return y("ie-event-behavior")?(e.attachEvent(n,r),function(){e.detachEvent(n,r)}):(e.addEventListener(t,r,!1),function(){e.removeEventListener(t,r,!1)})},et=Je(window,"load","onload",(function(){p.pageLoaded=1;try{"complete"!=m.readyState&&(m.readyState="complete")}catch(e){}et()}));for(ae=m.getElementsByTagName("script"),A=0;!X;)/^dojo/.test((Qe=ae[A++])&&Qe.type&&Qe.src&&!Qe.src.match(/^\w+-extension:\//))||(X=Qe);if(p.injectUrl=function(e,t,n){var r=n.node=m.createElement("script"),i=Je(r,"load","onreadystatechange",(function(e){var n=(e=e||window.event).target||e.srcElement;("load"===e.type||/complete|loaded/.test(n.readyState))&&(i(),o(),t&&t())})),o=Je(r,"error","onerror",(function(t){i(),o(),M(I,d("scriptError: "+e,[e,t]))}));return r.type="text/javascript",r.charset="utf-8",r.src=e,X.parentNode.insertBefore(r,X),r},p.log=function(){try{for(var e=0;e<arguments.length;e++);}catch(e){}},p.trace=r,y("foreign-loader"))tt=r;else{var tt=function(e,t,n){var r=arguments.length,i=["require","exports","module"],o=[0,e,t];1==r?o=[0,a(e)?i:[],e]:2==r&&s(e)?o=[e,a(t)?i:[],t]:3==r&&(o=[e,t,n]),p.trace("loader-define",o.slice(0,2));var c,l=o[0]&&Se(o[0]);if(l&&!fe[l.mid])se(Ge(l,o[1],o[2]));else if(!y("ie-event-behavior")||We)de.push(o);else{if(!(l=l||Ue))for(e in fe)if((c=W[e])&&c.node&&"interactive"===c.node.readyState){l=c;break}l?(Y(l),se(Ge(l,o[1],o[2]))):M(I,d("ieDefineFailed",o[0])),Fe()}};tt.amd={vendor:"dojotoolkit.org"}}if(u(u(p,t.loaderPatch),e.loaderPatch),L(I,(function(e){try{if(console.error(e),e instanceof Error)for(var t in e);}catch(e){}})),u(p,{uid:h,cache:H,packs:V}),g.define)M(I,d("defineAlreadyDefined",0));else if(g.define=tt,g.require=p,!y("foreign-loader")){l(te,(function(e){ne(e)}));var nt=K.deps||e.deps||t.deps,rt=K.callback||e.callback||t.callback;p.boot=nt||rt?[nt||[],rt]:0}}((function(e){return e.dojoConfig||e.djConfig||e.require||{}}),{async:0,hasCache:{"config-selectorEngine":"acme","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:"../dijit",name:"dijit"},{location:"../dojox",name:"dojox"},{location:"../themes",name:"themes"},{location:".",name:"dojo"}]}),require({cache:{"dojo/loadInit":function(){define(["./_base/loader"],(function(e){return{dynamic:0,normalize:function(e){return e},load:e.loadInit}}))},"dojo/_base/loader":function(){define(["./kernel","../has","require","module","../json","./lang","./array"],(function(dojo,has,_120,_121,json,lang,_122){var _123=function(e){return{src:_121.id,id:e}},_124=function(e){return e.replace(/\./g,"/")},_125=/\/\/>>built/,_126=[],_127=[],_128=function(e,t,n){_126.push(n),_122.forEach(e.split(","),(function(e){var n=_12c(e,t.module);_127.push(n),_12d(n)})),_12e()},_12e=function(){var e,t;for(t in _130)if(void 0===(e=_130[t]).noReqPluginCheck&&(e.noReqPluginCheck=/loadInit\!/.test(t)||/require\!/.test(t)?1:0),!e.executed&&!e.noReqPluginCheck&&e.injected==_131)return;_132((function(){var e=_126;
5_126=[],_122.forEach(e,(function(e){e(1)}))}))},_139=function(mid,_13a,_13b){_13a([mid],(function(_13c){_13a(_13c.names,(function(){for(var _13d="",args=[],i=0;i<arguments.length;i++)_13d+="var "+_13c.names[i]+"= arguments["+i+"]; ",args.push(arguments[i]);eval(_13d);var _13e=_13a.module,_13f=[],_140,_141={provide:function(e){e=_124(e);var t=_12c(e,_13e);t!==_13e&&_168(t)},require:function(e,t){e=_124(e),t&&(_12c(e,_13e).result=_163),_13f.push(e)},requireLocalization:function(e,t,n){_140||(_140=["dojo/i18n"]),n=(n||dojo.locale).toLowerCase(),e=_124(e)+"/nls/"+(/root/i.test(n)?"":n+"/")+_124(t),_12c(e,_13e).isXd&&_140.push("dojo/i18n!"+e)},loadInit:function(e){e()}},hold={},p;try{for(p in _141)hold[p]=dojo[p],dojo[p]=_141[p];_13c.def.apply(null,args)}catch(e){_149("error",[_123("failedDojoLoadInit"),e])}finally{for(p in _141)dojo[p]=hold[p]}_140&&(_13f=_13f.concat(_140)),_13f.length?_128(_13f.join(","),_13a,_13b):_13b()}))}))},_14a=function(e,t,n){var r,i=/\(|\)/g,o=1;for(i.lastIndex=t;(r=i.exec(e))&&(")"==r[0]?o-=1:o+=1,0!=o););if(0!=o)throw"unmatched paren around character "+i.lastIndex+" in: "+e;return[dojo.trim(e.substring(n,i.lastIndex))+";\n",i.lastIndex]},_150=/\/\/.*|\/\*[\s\S]*?\*\/|("(?:\\.|[^"])*"|'(?:\\.|[^'])*'|`(?:\\.|[^`])*`)/gm,_151=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/gm,_152=/(^|\s)(require|define)\s*\(/m,_153=function(e,t){var n,r,i,o,a=[],s=[],c=[];for(t=t||e.replace(_150,"$1");n=_151.exec(t);)i=(r=_151.lastIndex)-n[0].length,o=_14a(t,r,i),"loadInit"==n[2]?a.push(o[0]):s.push(o[0]),_151.lastIndex=o[1];return(c=a.concat(s)).length||!_152.test(t)?[e.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 && dojo.loadInit("),c.join(""),c]:0},_15c=function(e,t){var n,r,i=[],o=[];if(_125.test(t)||!(n=_153(t)))return 0;for(var a in r=e.mid+"-*loadInit",_12c("dojo",e).result.scopeMap)i.push(a),o.push('"'+a+'"');return"// xdomain rewrite of "+e.mid+"\ndefine('"+r+"',{\n\tnames:"+json.stringify(i)+",\n\tdef:function("+i.join(",")+"){"+n[1]+"}});\n\ndefine("+json.stringify(i.concat(["dojo/loadInit!"+r]))+", function("+i.join(",")+"){\n"+n[0]+"});"},_161=_120.initSyncLoader(_128,_12e,_15c),sync=_161.sync,_131=_161.requested,_162=_161.arrived,_163=_161.nonmodule,_164=_161.executing,_165=_161.executed,_166=_161.syncExecStack,_130=_161.modules,_167=_161.execQ,_12c=_161.getModule,_12d=_161.injectModule,_168=_161.setArrived,_149=_161.signal,_169=_161.finishExec,_16a=_161.execModule,_16b=_161.getLegacyMode,_132=_161.guardCheckComplete,_134,_135;return _128=_161.dojoRequirePlugin,dojo.provide=function(e){var t=_166[0],n=lang.mixin(_12c(_124(e),_120.module),{executed:_164,result:lang.getObject(e,!0)});return _168(n),t&&(t.provides||(t.provides=[])).push((function(){n.result=lang.getObject(e),delete n.provides,n.executed!==_165&&_169(n)})),n.result},has.add("config-publishRequireResult",1,0,0),dojo.require=function(e,t){var n=function(e,t){var n=_12c(_124(e),_120.module);if(_166.length&&_166[0].finish)_166[0].finish.push(e);else{if(n.executed)return n.result;t&&(n.result=_163);var r=_16b();if(_12d(n),r=_16b(),n.executed!==_165&&n.injected===_162&&_161.guardCheckComplete((function(){_16a(n)})),n.executed)return n.result;r==sync?n.cjs?_167.unshift(n):_166.length&&(_166[0].finish=[e]):_167.push(n)}}(e,t);return has("config-publishRequireResult")&&!lang.exists(e)&&void 0!==n&&lang.setObject(e,n),n},dojo.loadInit=function(e){e()},dojo.registerModulePath=function(e,t){var n={};n[e.replace(/\./g,"/")]=t,_120({paths:n})},dojo.platformRequire=function(e){for(var t,n=(e.common||[]).concat(e[dojo._name]||e.default||[]);n.length;)lang.isArray(t=n.shift())?dojo.require.apply(dojo,t):dojo.require(t)},dojo.requireIf=dojo.requireAfterIf=function(e,t,n){e&&dojo.require(t,n)},dojo.requireLocalization=function(e,t,n){_120(["../i18n"],(function(r){r.getLocalization(e,t,n)}))},{extractLegacyApiApplications:_153,require:_128,loadInit:_139}}))},"dojo/_base/kernel":function(){define(["../global","../has","./config","require","module"],(function(e,t,n,r,i){var o,a,s,c={},l={},u={config:n,global:e,dijit:c,dojox:l},d={dojo:["dojo",u],dijit:["dijit",c],dojox:["dojox",l]},f=r.map&&r.map[i.id.match(/[^\/]+/)[0]];for(a in f)d[a]?d[a][0]=f[a]:d[a]=[f[a],{}];for(a in d)(s=d[a])[1]._scopeName=s[0],n.noGlobals||(e[s[0]]=s[1]);u.scopeMap=d,u.baseUrl=u.config.baseUrl=r.baseUrl,u.isAsync=r.async,u.locale=n.locale;var h="$Rev:$".match(/[0-9a-f]{7,}/);u.version={major:1,minor:17,patch:3,flag:"",revision:h?h[0]:NaN,toString:function(){var e=u.version;return e.major+"."+e.minor+"."+e.patch+e.flag+" ("+e.revision+")"}},t("csp-restrictions")||Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(u),u.exit=function(){},t("host-webworker"),t.add("console-as-object",(function(){return Function.prototype.bind&&console&&"object"==typeof console.log})),"undefined"!=typeof console||(console={});var p,g=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];for(o=0;p=g[o++];)console[p]?t("console-as-object")&&(console[p]=Function.prototype.bind.call(console[p],console)):function(){var e=p+"";console[e]="log"in console?function(){var t=Array.prototype.slice.call(arguments);t.unshift(e+":"),console.log(t.join(" "))}:function(){},console[e]._fake=!0}();if(t.add("dojo-debug-messages",!!n.isDebug),u.deprecated=u.experimental=function(){},t("dojo-debug-messages")&&(u.deprecated=function(e,t,n){var r="DEPRECATED: "+e;t&&(r+=" "+t),n&&(r+=" -- will be removed in version: "+n),console.warn(r)},u.experimental=function(e,t){var n="EXPERIMENTAL: "+e+" -- APIs subject to change without notice.";t&&(n+=" "+t),console.warn(n)}),n.modulePaths){u.deprecated("dojo.modulePaths","use paths configuration");var m={};for(a in n.modulePaths)m[a.replace(/\./g,"/")]=n.modulePaths[a];r({paths:m})}return u.moduleUrl=function(e,t){u.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var n=null;return e&&(n=r.toUrl(e.replace(/\./g,"/")+(t?"/"+t:"")+"/*.*").replace(/\/\*\.\*/,"")+(t?"":"/")),n},u._hasResource={},u}))},"dojo/global":function(){define((function(){return"undefined"!=typeof global&&"function"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this}))},"dojo/has":function(){define(["./global","require","module"],(function(e,t,n){var r=t.has||function(){};r.add("dom-addeventlistener",!!document.addEventListener),r.add("touch","ontouchstart"in document||"onpointerdown"in document&&navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints),r.add("touch-events","ontouchstart"in document),r.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window),r.add("MSPointer",window.navigator.msPointerEnabled),r.add("touch-action",r("touch")&&r("pointer-events")),r.add("device-width",screen.availWi
5dth||innerWidth);var i=document.createElement("form");return r.add("dom-attributes-explicit",0==i.attributes.length),r.add("dom-attributes-specified-flag",i.attributes.length>0&&i.attributes.length<40),r.clearElement=function(e){return e.innerHTML="",e},r.normalize=function(e,t){var n=e.match(/[\?:]|[^:\?]*/g),i=0,o=function(e){var t=n[i++];return":"==t?0:"?"==n[i++]?!e&&r(t)?o():(o(!0),o(e)):t||0};return(e=o())&&t(e)},r.load=function(e,t,n){e?t([e],n):n()},r}))},"dojo/_base/config":function(){define(["../global","../has","require"],(function(e,t,n){var r,i={},o=n.rawConfig;for(r in o)i[r]=o[r];if(!i.locale&&"undefined"!=typeof navigator){var a=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language||navigator.userLanguage;a&&(i.locale=a.toLowerCase())}return i}))},"dojo/json":function(){define(["./has"],(function(has){var _1a7="undefined"!=typeof JSON;if(has.add("json-parse",_1a7),has.add("json-stringify",_1a7&&'{"a":1}'==JSON.stringify({a:0},(function(e,t){return t||1}))),has("json-stringify"))return JSON;var _1a8=function(e){return('"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};return{parse:has("json-parse")?JSON.parse:function(str,_1a9){if(_1a9&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(str))throw new SyntaxError("Invalid characters in JSON");return eval("("+str+")")},stringify:function(e,t,n){return"string"==typeof t&&(n=t,t=null),function e(r,i,o){t&&(r=t(o,r));var a,s=typeof r;if("number"==s)return isFinite(r)?r+"":"null";if("boolean"==s)return r+"";if(null===r)return"null";if("string"==typeof r)return _1a8(r);if("function"!=s&&"undefined"!=s){if("function"==typeof r.toJSON)return e(r.toJSON(o),i,o);if(r instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,(function(e,t,n){var i=r["getUTC"+t]()+(n?1:0);return i<10?"0"+i:i}));if(r.valueOf()!==r)return e(r.valueOf(),i,o);var c=n?i+n:"",l=n?" ":"",u=n?"\n":"";if(r instanceof Array){var d=r.length,f=[];for(o=0;o<d;o++)"string"!=typeof(a=e(r[o],c,o))&&(a="null"),f.push(u+c+a);return"["+f.join(",")+u+i+"]"}var h=[];for(o in r){var p;if(r.hasOwnProperty(o)){if("number"==typeof o)p='"'+o+'"';else{if("string"!=typeof o)continue;p=_1a8(o)}if("string"!=typeof(a=e(r[o],c,o)))continue;h.push(u+c+p+":"+l+a)}}return"{"+h.join(",")+u+i+"}"}}(e,"","")}}}))},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],(function(e,t){t.add("bug-for-in-skips-shadowed",(function(){for(var e in{toString:1})return 0;return 1}));var n=t("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],r=n.length,i=function(t,n,r){r||(r=t[0]&&e.scopeMap[t[0]]?e.scopeMap[t.shift()][1]:e.global);try{for(var i=0;i<t.length;i++){var o=t[i];if("__proto__"===o||"constructor"===o)return;if(!(o in r)){if(!n)return;r[o]={}}r=r[o]}return r}catch(e){}},o=Object.prototype.toString,a=function(e,t,n){return(n||[]).concat(Array.prototype.slice.call(e,t||0))},s=/\{([^\}]+)\}/g,c={_extraNames:n,_mixin:function(e,i,o){var a,s,c,l={};for(a in i)s=i[a],a in e&&(e[a]===s||a in l&&l[a]===s)||(e[a]=o?o(s):s);if(t("bug-for-in-skips-shadowed")&&i)for(c=0;c<r;++c)s=i[a=n[c]],a in e&&(e[a]===s||a in l&&l[a]===s)||(e[a]=o?o(s):s);return e},mixin:function(e,t){e||(e={});for(var n=1,r=arguments.length;n<r;n++)c._mixin(e,arguments[n]);return e},setObject:function(e,t,n){var r=e.split("."),o=r.pop(),a=i(r,!0,n);return a&&o?a[o]=t:void 0},getObject:function(e,t,n){return e?i(e.split("."),t,n):n},exists:function(e,t){return void 0!==c.getObject(e,!1,t)},isString:function(e){return"string"==typeof e||e instanceof String},isArray:Array.isArray||function(e){return"[object Array]"==o.call(e)},isFunction:function(e){return"[object Function]"===o.call(e)},isObject:function(e){return void 0!==e&&(null===e||"object"==typeof e||c.isArray(e)||c.isFunction(e))},isArrayLike:function(e){return!!e&&!c.isString(e)&&!c.isFunction(e)&&!(e.tagName&&"form"==e.tagName.toLowerCase())&&(c.isArray(e)||isFinite(e.length))},isAlien:function(e){return e&&!c.isFunction(e)&&/\{\s*\[native code\]\s*\}/.test(String(e))},extend:function(e,t){for(var n=1,r=arguments.length;n<r;n++)c._mixin(e.prototype,arguments[n]);return e},_hitchArgs:function(t,n){var r=c._toArray(arguments,2),i=c.isString(n);return function(){var o=c._toArray(arguments),a=i?(t||e.global)[n]:n;return a&&a.apply(t||this,r.concat(o))}},hitch:function(t,n){if(arguments.length>2)return c._hitchArgs.apply(e,arguments);
5if(n||(n=t,t=null),c.isString(n)){if(!(t=t||e.global)[n])throw['lang.hitch: scope["',n,'"] is null (scope="',t,'")'].join("");return function(){return t[n].apply(t,arguments||[])}}return t?function(){return n.apply(t,arguments||[])}:n},delegate:function(){function e(){}return function(t,n){e.prototype=t;var r=new e;return e.prototype=null,n&&c._mixin(r,n),r}}(),_toArray:t("ie")?function(){function e(e,t,n){for(var r=n||[],i=t||0;i<e.length;i++)r.push(e[i]);return r}return function(t){return(t.item?e:a).apply(this,arguments)}}():a,partial:function(t){return c.hitch.apply(e,[null].concat(c._toArray(arguments)))},clone:function(e){if(!e||"object"!=typeof e||c.isFunction(e))return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);var t,n,r;if(c.isArray(e))for(t=[],n=0,r=e.length;n<r;++n)n in e&&(t[n]=c.clone(e[n]));else t=e.constructor?new e.constructor:{};return c._mixin(t,e,c.clone)},trim:String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(e,t,n){return e.replace(n||s,c.isFunction(t)?t:function(e,n){return c.getObject(n,!1,t)})}};return c.mixin(e,c),c}))},"dojo/sniff":function(){define(["./has"],(function(e){var t=navigator,n=t.userAgent,r=t.appVersion,i=parseFloat(r);if(e.add("air",n.indexOf("AdobeAIR")>=0),e.add("wp",parseFloat(n.split("Windows Phone")[1])||void 0),e.add("msapp",parseFloat(n.split("MSAppHost/")[1])||void 0),e.add("khtml",r.indexOf("Konqueror")>=0?i:void 0),e.add("edge",parseFloat(n.split("Edge/")[1])||void 0),e.add("opr",parseFloat(n.split("OPR/")[1])||void 0),e.add("webkit",!e("wp")&&!e("edge")&&parseFloat(n.split("WebKit/")[1])||void 0),e.add("chrome",!e("edge")&&!e("opr")&&parseFloat(n.split("Chrome/")[1])||void 0),e.add("android",!e("wp")&&parseFloat(n.split("Android ")[1])||void 0),e.add("safari",!(r.indexOf("Safari")>=0)||e("wp")||e("chrome")||e("android")||e("edge")||e("opr")?void 0:parseFloat(r.split("Version/")[1])),e.add("mac",r.indexOf("Macintosh")>=0),e.add("quirks","BackCompat"==document.compatMode),!e("wp")&&n.match(/(iPhone|iPod|iPad)/)){var o=RegExp.$1.replace(/P/,"p"),a=n.match(/OS ([\d_]+)/)?RegExp.$1:"1",s=parseFloat(a.replace(/_/,".").replace(/_/g,""));e.add(o,s),e.add("ios",s)}if(e.add("bb",(n.indexOf("BlackBerry")>=0||n.indexOf("BB10")>=0)&&parseFloat(n.split("Version/")[1])||void 0),e.add("trident",parseFloat(r.split("Trident/")[1])||void 0),e.add("svg","undefined"!=typeof SVGAngle),!e("webkit")){if(n.indexOf("Opera")>=0&&e.add("opera",i>=9.8&&parseFloat(n.split("Version/")[1])||i),!(n.indexOf("Gecko")>=0)||e("wp")||e("khtml")||e("trident")||e("edge")||e.add("mozilla",i),e("mozilla")&&e.add("ff",parseFloat(n.split("Firefox/")[1]||n.split("Minefield/")[1])||void 0),document.all&&!e("opera")){var c=parseFloat(r.split("MSIE ")[1])||void 0,l=document.documentMode;l&&5!=l&&Math.floor(c)!=l&&(c=l),e.add("ie",c)}e.add("wii","undefined"!=typeof opera&&opera.wiiremote)}return e}))},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],(function(e,t,n){var r,i={};function o(e){var n=!e;return function(o,a,s){var c,l=0,u=o&&o.length||0;if(u&&"string"==typeof o&&(o=o.split("")),"string"==typeof a){if(t("csp-restrictions"))throw new TypeError("callback must be a function");a=i[a]||r(a)}if(s){for(;l<u;++l)if(c=!a.call(s,o[l],l,o),e^c)return!c}else for(;l<u;++l)if(c=!a(o[l],l,o),e^c)return!c;return n}}function a(e){var t=1,n=0,r=0;return e||(t=n=r=-1),function(i,o,a,c){if(c&&t>0)return s.lastIndexOf(i,o,a);var l,u=i&&i.length||0,d=e?u+r:n;for(void 0===a?l=e?n:u+r:a<0?(l=u+a)<0&&(l=n):l=a>=u?u+r:a,u&&"string"==typeof i&&(i=i.split(""));l!=d;l+=t)if(i[l]==o)return l;return-1}}t("csp-restrictions")||(r=function(e){return i[e]=new Function("item","index","array",e)});var s={every:o(!1),some:o(!0),indexOf:a(!0),lastIndexOf:a(!1),forEach:function(e,n,o){var a=0,s=e&&e.length||0;if(s&&"string"==typeof e&&(e=e.split("")),"string"==typeof n){if(t("csp-restrictions"))throw new TypeError("callback must be a function");n=i[n]||r(n)}if(o)for(;a<s;++a)n.call(o,e[a],a,e);else for(;a<s;++a)n(e[a],a,e)},map:function(e,n,o,a){var s=0,c=e&&e.length||0,l=new(a||Array)(c);if(c&&"string"==typeof e&&(e=e.split("")),"string"==typeof n){if(t("csp-restrictions"))throw new TypeError("callback must be a function");n=i[n]||r(n)}if(o)for(;s<c;++s)l[s]=n.call(o,e[s],s,e);else for(;s<c;++s)l[s]=n(e[s],s,e);return l},filter:function(e,n,o){var a,s=0,c=e&&e.length||0,l=[];
5if(c&&"string"==typeof e&&(e=e.split("")),"string"==typeof n){if(t("csp-restrictions"))throw new TypeError("callback must be a function");n=i[n]||r(n)}if(o)for(;s<c;++s)a=e[s],n.call(o,a,s,e)&&l.push(a);else for(;s<c;++s)n(a=e[s],s,e)&&l.push(a);return l},clearCache:function(){i={}}};return n.mixin(e,s),s}))},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],(function(e,t,n,r){var i;i=function(e,t,n){r(e,{sync:!!t,headers:{"X-Requested-With":null}}).then(n)};var o={},a=function(e){if(e){var t=(e=e.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"")).match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);t&&(e=t[1])}else e="";return e},s={},c={};return e.cache=function(e,n,r){var s;"string"==typeof e?/\//.test(e)?(s=e,r=n):s=t.toUrl(e.replace(/\./g,"/")+(n?"/"+n:"")):(s=e+"",r=n);var c=null!=r&&"string"!=typeof r?r.value:r,l=r&&r.sanitize;return"string"==typeof c?(o[s]=c,l?a(c):c):null===c?(delete o[s],null):(s in o||i(s,!0,(function(e){o[s]=e})),l?a(o[s]):o[s])},{dynamic:!0,normalize:function(e,t){var n=e.split("!"),r=n[0];return(/^\./.test(r)?t(r):r)+(n[1]?"!"+n[1]:"")},load:function(e,t,n){var r=e.split("!"),l=r.length>1,u=r[0],d=t.toUrl(r[0]),f="url:"+d,h=s,p=function(e){n(l?a(e):e)};if(u in o?h=o[u]:t.cache&&f in t.cache?h=t.cache[f]:d in o&&(h=o[d]),h===s)if(c[d])c[d].push(p);else{var g=c[d]=[p];i(d,!t.async,(function(e){o[u]=o[d]=e;for(var t=0;t<g.length;)g[t++](e);delete c[d]}))}else p(h)}}}))},"dojo/request":function(){define(["./request/default!"],(function(e){return e}))},"dojo/request/default":function(){define(["exports","require","../has"],(function(e,t,n){var r,i=n("config-requestProvider");r="./xhr",i||(i=r),e.getPlatformDefaultId=function(){return r},e.load=function(e,n,o,a){t(["platform"==e?r:i],(function(e){o(e)}))}}))},"dojo/i18n":function(){define(["./_base/kernel","require","./has","./_base/array","./_base/config","./_base/lang","./_base/xhr","./json","module"],(function(e,t,n,r,i,o,a,s,c){n.add("dojo-preload-i18n-Api",1);var l=e.i18n={},u=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,d={},f=function(t,n,r){return r=r?r.toLowerCase():e.locale,t=t.replace(/\./g,"/"),n=n.replace(/\./g,"/"),/root/i.test(r)?t+"/nls/"+n:t+"/nls/"+r+"/"+n},h=e.getL10nName=function(e,t,n){return c.id+"!"+f(e,t,n)},p=function(t,a,c){var l,f,h=u.exec(t),p=h[1]+"/",g=h[5]||h[4],m=p+g,v=h[5]&&h[4],y=v||e.locale||"",b=m+"/"+y,S=v?[y]:(l=y,f=i.extraLocale||[],(f=o.isArray(f)?f:[f]).push(l),f),C=S.length,E=function(){--C||c(o.delegate(d[b]))},O=t.split("*"),j="preload"==O[1];if(n("dojo-preload-i18n-Api")){if(j&&(d[t]||(d[t]=1,w(O[2],s.parse(O[3]),1,a)),c(1)),j||x(t,a,c)&&!d[b])return}else if(j)return void c(1);r.forEach(S,(function(e){var t=m+"/"+e;n("dojo-preload-i18n-Api")&&_(t),d[t]?E():function(e,t,n,r,i,a){e([t],(function(s){var c=o.clone(s.root||s.ROOT),l=function(e,t,n,r){for(var i=[n+r],o=t.split("-"),a="",s=0;s<o.length;s++)a+=(a?"-":"")+o[s],e&&!e[a]||(i.push(n+a+"/"+r),i.specificity=a);return i}(!s._v1x&&s,i,n,r);e(l,(function(){for(var e=1;e<l.length;e++)c=o.mixin(o.clone(c),arguments[e]);d[t+"/"+i]=c,c.$locale=l.specificity,a()}))}))}(a,m,p,g,e,E)}))};n("dojo-preload-i18n-Api");var g,m=l.normalizeLocale=function(t){var n=t?t.toLowerCase():e.locale;return"root"==n?"ROOT":n},v=function(e,n){return n.isXdUrl(t.toUrl(e+".js"))},y=0,b=[],w=l._preloadLocalizations=function(n,i,a,s){function c(e,t){for(var n=e.split("-");n.length;){if(t(n.join("-")))return;n.pop()}t("ROOT")}function l(){y++}function u(){for(--y;!y&&b.length;)p.apply(null,b.shift())}function f(e,t,n,r){return r.toAbsMid(e+t+"/"+n)}function h(e){c(e=m(e),(function(h){if(r.indexOf(i,h)>=0){var p=n.replace(/\./g,"/")+"_"+h;return l(),function(e,t){v(e,s)||a?s([e],t):E([e],t,s)}(p,(function(n){for(var r in n){var i,a,p=n[r],g=r.match(/(.+)\/([^\/]+)$/);if(g&&(i=g[2],a=g[1]+"/",p._localized)){var m;if("ROOT"===h){var v=m=p._localized;delete p._localized,v.root=p,d[t.toAbsMid(r)]=v}else m=p._localized,d[f(a,i,h,t)]=p;h!==e&&function(n,r,i,a){var h=[],p=[];c(e,(function(e){a[e]&&(h.push(t.toAbsMid(n+e+"/"+r)),p.push(f(n,r,e,t)))})),h.length?(l(),s(h,(function(){for(var a=h.length-1;a>=0;a--)i=o.mixin(o.clone(i),arguments[a]),d[p[a]]=i;d[f(n,r,e,t)]=o.clone(i),u()}))):d[f(n,r,e,t)]=i}(a,i,p,m)}}u()})),!0}return!1}))}s=s||t,h(),r.forEach(e.config.extraLocale,h)},x=function(e,t,n){return y&&b.push([e,t,n]),y},_=function(){},S={},C={},E=function(e,t,n){var i=[];r.forEach(e,(function(e){var t=n.toUrl(e+".js");
5function r(n){g||(g=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define = function(mid, factory){define.called = 1; __amdValue.result = factory || mid;},\t   require = function(){define.called = 1;};try{define.called = 0;eval(__bundle);if(define.called==1)return __amdValue;if((__checkForLegacyModules = __checkForLegacyModules(__mid)))return __checkForLegacyModules;}catch(e){}try{return eval('('+__bundle+')');}catch(e){return e;}"));var r=g(n,_,e,S);r===S?i.push(d[t]=S.result):(r instanceof Error&&(console.error("failed to evaluate i18n bundle; url="+t,r),r={}),i.push(d[t]=/nls\/[^\/]+\/[^\/]+$/.test(t)?r:{root:r,_v1x:1}))}if(d[t])i.push(d[t]);else{var o=n.syncLoadNls(e);if(o||(o=_(e.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1"))),o)i.push(o);else if(a)a.get({url:t,sync:!0,load:r,error:function(){i.push(d[t]={})}});else try{n.getText(t,!0,r)}catch(e){i.push(d[t]={})}}})),t&&t.apply(null,i)};return _=function(t){for(var n,r=t.split("/"),i=e.global[r[0]],o=1;i&&o<r.length-1;i=i[r[o++]]);return i&&((n=i[r[o]])||(n=i[r[o].replace(/-/g,"_")]),n&&(d[t]=n)),n},l.getLocalization=function(e,n,r){var i,o=f(e,n,r);return C[o]?C[o]:(p(o,v(o,t)?t:function(e,n){E(e,n,t)},(function(e){C[o]=e,i=e})),i)},o.mixin(l,{dynamic:!0,normalize:function(e,t){return/^\./.test(e)?t(e):e},load:p,cache:d,getL10nName:h})}))},"dojo/_base/xhr":function(){define(["./kernel","./sniff","require","../io-query","../dom","../dom-form","./Deferred","./config","./json","./lang","./array","../on","../aspect","../request/watch","../request/xhr","../request/util"],(function(e,t,n,r,i,o,a,s,c,l,u,d,f,h,p,g){e._xhrObj=p._create;var m=e.config;e.objectToQuery=r.objectToQuery,e.queryToObject=r.queryToObject,e.fieldToObject=o.fieldToObject,e.formToObject=o.toObject,e.formToQuery=o.toQuery,e.formToJson=o.toJson,e._blockAsync=!1;var v=e._contentHandlers=e.contentHandlers={text:function(e){return e.responseText},json:function(e){return c.fromJson(e.responseText||null)},"json-comment-filtered":function(e){s.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.");var t=e.responseText,n=t.indexOf("/*"),r=t.lastIndexOf("*/");if(-1==n||-1==r)throw new Error("JSON was not comment filtered");return c.fromJson(t.substring(n+2,r))},javascript:function(t){return e.eval(t.responseText)},xml:function(e){var n=e.responseXML;if(n&&t("dom-qsa2.1")&&!n.querySelectorAll&&t("dom-parser")&&(n=(new DOMParser).parseFromString(e.responseText,"application/xml")),t("ie")&&(!n||!n.documentElement)){var r=function(e){return"MSXML"+e+".DOMDocument"},i=["Microsoft.XMLDOM",r(6),r(4),r(3),r(2)];u.some(i,(function(t){try{var r=new ActiveXObject(t);r.async=!1,r.loadXML(e.responseText),n=r}catch(e){return!1}return!0}))}return n},"json-comment-optional":function(e){return e.responseText&&/^[^{\[]*\/\*/.test(e.responseText)?v["json-comment-filtered"](e):v.json(e)}};e._ioSetArgs=function(t,n,s,c){var u={args:t,url:t.url},d=null;if(t.form){var f=i.byId(t.form),h=f.getAttributeNode("action");u.url=u.url||(h?h.value:e.doc?e.doc.URL:null),d=o.toObject(f)}var p={};d&&l.mixin(p,d),t.content&&l.mixin(p,t.content),t.preventCache&&(p["dojo.preventCache"]=(new Date).valueOf()),u.query=r.objectToQuery(p),u.handleAs=t.handleAs||"text";var g=new a((function(e){e.canceled=!0,n&&n(e);var t=e.ioArgs.error;return t||((t=new Error("request cancelled")).dojoType="cancel",e.ioArgs.error=t),t}));g.addCallback(s);var v=t.load;v&&l.isFunction(v)&&g.addCallback((function(e){return v.call(t,e,u)}));var y=t.error;y&&l.isFunction(y)&&g.addErrback((function(e){return y.call(t,e,u)}));var b=t.handle;return b&&l.isFunction(b)&&g.addBoth((function(e){return b.call(t,e,u)})),g.addErrback((function(e){return c(e,g)})),m.ioPublish&&e.publish&&!1!==u.args.ioPublish&&(g.addCallbacks((function(t){return e.publish("/dojo/io/load",[g,t]),t}),(function(t){return e.publish("/dojo/io/error",[g,t]),t})),g.addBoth((function(t){return e.publish("/dojo/io/done",[g,t]),t}))),g.ioArgs=u,g};var y=function(e){var t=v[e.ioArgs.handleAs](e.ioArgs.xhr);return void 0===t?null:t},b=function(e,t){return t.ioArgs.args.failOk||console.error(e),e},w=function(t){x<=0&&(x=0,m.ioPublish&&e.publish&&(!t||t&&!1!==t.ioArgs.args.ioPublish)&&e.publish("/dojo/io/stop"))},x=0;return f.after(h,"_onAction",(function(){x-=1})),f.after(h,"_onInFlight",w),e._ioCancelAll=h.cancelAll,e._ioNotifyStart=function(t){m.ioPublish&&e.publish&&!1!==t.ioArgs.args.ioPublish&&(x||e.publish("/dojo/io/start"),x+=1,e.publish("/dojo/io/send",[t]))},e._ioWatch=function(e,t,n,r){e.ioArgs.options=e.ioArgs.args,l.mixin(e,{response:e.ioArgs,isValid:function(n){return t(e)},isReady:function(t){return n(e)},handleResponse:function(t){return r(e)}}),h(e),w(e)},e._ioAddQueryToUrl=function(e){e.query.length&&(e.url+=(-1==e.url.indexOf("?")?"?":"&")+e.query,e.query=null)},e.xhr=function(t,n,r){var i,o=e._ioSetArgs(n,(function(e){i&&i.cancel()}),y,b),a=o.ioArgs;"postData"in n?a.query=n.postData:"putData"in n?a.query=n.putData:"rawBody"in n?a.query=n.rawBody:(arguments.length>2&&!r||-1==="POST|PUT".indexOf(t.toUpperCase()))&&e._ioAddQueryToUrl(a);var s={method:t,handleAs:"text",timeout:n.timeout,withCredentials:n.withCredentials,ioArgs:a};void 0!==n.headers&&(s.headers=n.headers),void 0!==n.contentType&&(s.headers||(s.headers={}),s.headers["Content-Type"]=n.contentType),void 0!==a.query&&(s.data=a.query),void 0!==n.sync&&(s.sync=n.sync),e._ioNotifyStart(o);try{i=p(a.url,s,!0)}catch(e){return o.cancel(),o}return o.ioArgs.xhr=i.response.xhr,i.then((function(){o.resolve(o)})).otherwise((function(e){a.error=e,e.response&&(e.status=e.response.status,e.responseText=e.response.text,e.xhr=e.response.xhr),o.reject(e)})),o},e.xhrGet=function(t){return e.xhr("GET",t)},e.rawXhrPost=e.xhrPost=function(t){return e.xhr("POST",t,!0)},e.rawXhrPut=e.xhrPut=function(t){return e.xhr("PUT",t,!0)},e.xhrDelete=function(t){return e.xhr("DELETE",t)},e._isDocumentOk=function(e){return g.checkStatus(e.status)},e._getText=function(t){var n;return e.xhrGet({url:t,sync:!0,load:function(e){n=e}}),n},l.mixin(e.xhr,{_xhrObj:e._xhrObj,fieldToObject:o.fieldToObject,formToObject:o.toObject,objectToQuery:r.objectToQuery,formToQuery:o.toQuery,formToJson:o.toJson,queryToObject:r.queryToObject,contentHandlers:v,_ioSetArgs:e._ioSetArgs,_ioCancelAll:e._ioCancelAll,_ioNotifyStart:e._ioNotifyStart,_ioWatch:e._ioWatch,_ioAddQueryToUrl:e._ioAddQueryToUrl,_isDocumentOk:e._isDocumentOk,_getText:e._getText,get:e.xhrGet,post:e.xhrPost,put:e.xhrPut,del:e.xhrDelete}),e.xhr}))},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],(function(e,t,n){return e._name="browser",t.mixin(e,{isBrowser:!0,isFF:n("ff"),isIE:n("ie"),isKhtml:n("khtml"),isWebKit:n("webkit"),isMozilla:n("mozilla"),isMoz:n("mozilla"),isOpera:n("opera"),isSafari:n("safari"),isChrome:n("chrome"),isMac:n("mac"),isIos:n("ios"),isAndroid:n("android"),isWii:n("wii"),isQuirks:n("quirks"),isAir:n("air")}),n}))},"dojo/io-query":function(){define(["./_base/lang"],(function(e){var t={};return{objectToQuery:function(n){var r=encodeURIComponent,i=[];for(var o in n){var a=n[o];if(a!=t[o]){var s=r(o)+"=";if(e.isArray(a))for(var c=0,l=a.length;c<l;++c)i.push(s+r(a[c]));else i.push(s+r(a))}}return i.join("&")},queryToObject:function(t){for(var n,r,i,o=decodeURIComponent,a=t.split("&"),s={},c=0,l=a.length;c<l;++c)if((i=a[c]).length){var u=i.indexOf("=");u<0?(n=o(i),r=""):(n=o(i.slice(0,u)),r=o(i.slice(u+1))),"string"==typeof s[n]&&(s[n]=[s[n]]),e.isArray(s[n])?s[n].push(r):s[n]=r}return s}}}))},"dojo/dom":function(){define(["./sniff","./_base/window","./_base/kernel"],(function(e,t,n){if(e("ie")<=7)try{document.execCommand("Backgroun
5dImageCache",!1,!0)}catch(e){}var r={};e("ie")?r.byId=function(e,n){if("string"!=typeof e)return e||null;var r=n||t.doc,i=e&&r.getElementById(e);if(i&&(i.attributes.id.value==e||i.id==e))return i;var o=r.all[e];o&&!o.nodeName||(o=[o]);for(var a=0;i=o[a++];)if(i.attributes&&i.attributes.id&&i.attributes.id.value==e||i.id==e)return i;return null}:r.byId=function(e,n){return("string"==typeof e?(n||t.doc).getElementById(e):e)||null};var i=n.global.document||null;e.add("dom-contains",!(!i||!i.contains)),r.isDescendant=e("dom-contains")?function(e,t){return!(!(t=r.byId(t))||!t.contains(r.byId(e)))}:function(e,t){try{for(e=r.byId(e),t=r.byId(t);e;){if(e==t)return!0;e=e.parentNode}}catch(e){}return!1},e.add("css-user-select",(function(e,t,n){if(!n)return!1;var r=n.style,i=["Khtml","O","Moz","Webkit"],o=i.length,a="userSelect";do{if(void 0!==r[a])return a}while(o--&&(a=i[o]+"UserSelect"));return!1}));var o=e("css-user-select");return r.setSelectable=o?function(e,t){r.byId(e).style[o]=t?"":"none"}:function(e,t){var n=(e=r.byId(e)).getElementsByTagName("*"),i=n.length;if(t)for(e.removeAttribute("unselectable");i--;)n[i].removeAttribute("unselectable");else for(e.setAttribute("unselectable","on");i--;)n[i].setAttribute("unselectable","on")},r}))},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],(function(e,t,n){var r={global:e.global,doc:e.global.document||null,body:function(t){return(t=t||e.doc).body||t.getElementsByTagName("body")[0]},setContext:function(t,n){e.global=r.global=t,e.doc=r.doc=n},withGlobal:function(t,n,i,o){var a=e.global;try{return e.global=r.global=t,r.withDoc.call(null,t.document,n,i,o)}finally{e.global=r.global=a}},withDoc:function(t,i,o,a){var s,c,l,u=r.doc,d=n("quirks"),f=n("ie");try{return e.doc=r.doc=t,e.isQuirks=n.add("quirks","BackCompat"==e.doc.compatMode,!0,!0),n("ie")&&(l=t.parentWindow)&&l.navigator&&(s=parseFloat(l.navigator.appVersion.split("MSIE ")[1])||void 0,(c=t.documentMode)&&5!=c&&Math.floor(s)!=c&&(s=c),e.isIE=n.add("ie",s,!0,!0)),o&&"string"==typeof i&&(i=o[i]),i.apply(o,a||[])}finally{e.doc=r.doc=u,e.isQuirks=n.add("quirks",d,!0,!0),e.isIE=n.add("ie",f,!0,!0)}}};return t.mixin(e,r),r}))},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],(function(e,t,n,r){function i(t,n,r){if(null!==r){var i=t[n];"string"==typeof i?t[n]=[i,r]:e.isArray(i)?i.push(r):t[n]=r}}var o={fieldToObject:function(e){var n=null;if(e=t.byId(e)){var r=e.name,i=(e.type||"").toLowerCase();if(r&&i&&!e.disabled)if("radio"==i||"checkbox"==i)e.checked&&(n=e.value);else if(e.multiple){n=[];for(var o=[e.firstChild];o.length;)for(var a=o.pop();a;a=a.nextSibling){if(1!=a.nodeType||"option"!=a.tagName.toLowerCase()){a.nextSibling&&o.push(a.nextSibling),a.firstChild&&o.push(a.firstChild);break}a.selected&&n.push(a.value)}}else n=e.value}return n},toObject:function(e){for(var n={},r=t.byId(e).elements,a=0,s=r.length;a<s;++a){var c=r[a],l=c.name,u=(c.type||"").toLowerCase();l&&u&&"file|submit|image|reset|button".indexOf(u)<0&&!c.disabled&&(i(n,l,o.fieldToObject(c)),"image"==u&&(n[l+".x"]=n[l+".y"]=n[l].x=n[l].y=0))}return n},toQuery:function(e){return n.objectToQuery(o.toObject(e))},toJson:function(e,t){return r.stringify(o.toObject(e),null,t?4:0)}};return o}
5))},"dojo/_base/Deferred":function(){define(["./kernel","../Deferred","../promise/Promise","../errors/CancelError","../has","./lang","../when"],(function(e,t,n,r,i,o,a){var s=function(){},c=Object.freeze||function(){},l=e.Deferred=function(e){var a,u,d,f,h,p,g,m=this.promise=new n;function v(e){if(u)throw new Error("This deferred has already been resolved");a=e,u=!0,y()}function y(){for(var e;!e&&g;){var n=g;g=g.next,(e=n.progress==s)&&(u=!1);var r=h?n.error:n.resolved;if(i("config-useDeferredInstrumentation")&&h&&t.instrumentRejected&&t.instrumentRejected(a,!!r),r)try{var c=r(a);if(c&&"function"==typeof c.then){c.then(o.hitch(n.deferred,"resolve"),o.hitch(n.deferred,"reject"),o.hitch(n.deferred,"progress"));continue}var l=e&&void 0===c;e&&!l&&(h=c instanceof Error),n.deferred[l&&h?"reject":"resolve"](l?a:c)}catch(e){n.deferred.reject(e)}else h?n.deferred.reject(a):n.deferred.resolve(a)}}this.isResolved=m.isResolved=function(){return 0==f},this.isRejected=m.isRejected=function(){return 1==f},this.isFulfilled=m.isFulfilled=function(){return f>=0},this.isCanceled=m.isCanceled=function(){return d},this.resolve=this.callback=function(e){this.fired=f=0,this.results=[e,null],v(e)},this.reject=this.errback=function(e){h=!0,this.fired=f=1,i("config-useDeferredInstrumentation")&&t.instrumentRejected&&t.instrumentRejected(e,!!g),v(e),this.results=[null,e]},this.progress=function(e){for(var t=g;t;){var n=t.progress;n&&n(e),t=t.next}},this.addCallbacks=function(e,t){return this.then(e,t,s),this},m.then=this.then=function(e,t,n){var r=n==s?this:new l(m.cancel),i={resolved:e,error:t,progress:n,deferred:r};return g?p=p.next=i:g=p=i,u&&y(),r.promise};var b=this;m.cancel=this.cancel=function(){if(!u){var t=e&&e(b);u||(t instanceof Error||(t=new r(t)),t.log=!1,b.reject(t))}d=!0},c(m)};return o.extend(l,{addCallback:function(t){return this.addCallbacks(o.hitch.apply(e,arguments))},addErrback:function(t){return this.addCallbacks(null,o.hitch.apply(e,arguments))},addBoth:function(t){var n=o.hitch.apply(e,arguments);return this.addCallbacks(n,n)},fired:-1}),l.when=e.when=a,l}))},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],(function(e,t,n,r,i){var o="This deferred has already been fulfilled.",a=Object.freeze||function(){},s=function(e,t,n,r,i){2===t&&d.instrumentRejected&&0===e.length&&d.instrumentRejected(n,!1,r,i);for(var o=0;o<e.length;o++)c(e[o],t,n,r)},c=function(e,t,n,r){var i=e[t],o=e.deferred;if(i)try{var a=i(n);if(0===t)void 0!==a&&u(o,t,a);else{if(a&&"function"==typeof a.then)return e.cancel=a.cancel,void a.then(l(o,1),l(o,2),l(o,0));u(o,1,a)}}catch(e){u(o,2,e)}else u(o,t,n);2===t&&d.instrumentRejected&&d.instrumentRejected(n,!!i,r,o.promise)},l=function(e,t){return function(n){u(e,t,n)}},u=function(e,t,n){if(!e.isCanceled())switch(t){case 0:e.progress(n);break;case 1:e.resolve(n);break;case 2:e.reject(n)}},d=function(e){var t,i,l,u=this.promise=new r,f=this,h=!1,p=[];Error.captureStackTrace&&(Error.captureStackTrace(f,d),Error.captureStackTrace(u,d)),this.isResolved=u.isResolved=function(){return 1===t},this.isRejected=u.isRejected=function(){return 2===t},this.isFulfilled=u.isFulfilled=function(){return!!t},this.isCanceled=u.isCanceled=function(){return h},this.progress=function(e,n){if(t){if(!0===n)throw new Error(o);return u}return s(p,0,e,null,f),u},this.resolve=function(e,n){if(t){if(!0===n)throw new Error(o);return u}return s(p,t=1,i=e,null,f),p=null,u};var g=this.reject=function(e,n){if(t){if(!0===n)throw new Error(o);return u}return Error.captureStackTrace&&Error.captureStackTrace(l={},g),s(p,t=2,i=e,l,f),p=null,u};this.then=u.then=function(e,n,r){var o=[r,e,n];return o.cancel=u.cancel,o.deferred=new d((function(e){return o.cancel&&o.cancel(e)})),t&&!p?c(o,t,i,l):p.push(o),o.deferred.promise},this.cancel=u.cancel=function(r,a){if(t){if(!0===a)throw new Error(o)}else{if(e){var s=e(r);r=void 0===s?r:s}if(h=!0,!t)return void 0===r&&(r=new n),g(r),r;if(2===t&&i===r)return r}},a(u)};return d.prototype.toString=function(){return"[object Deferred]"},i&&i(d),d}))},"dojo/errors/CancelError":function(){define(["./create"],(function(e){return e("CancelError",null,null,{dojoType:"cancel",log:!1})}
5))},"dojo/errors/create":function(){define(["../_base/lang"],(function(e){return function(t,n,r,i){r=r||Error;var o=function(e){if(r===Error){Error.captureStackTrace&&Error.captureStackTrace(this,o);var t,i=Error.call(this,e);for(t in i)i.hasOwnProperty(t)&&(this[t]=i[t]);this.message=e,this.stack=i.stack}else r.apply(this,arguments);n&&n.apply(this,arguments)};return o.prototype=e.delegate(r.prototype,i),o.prototype.name=t,o.prototype.constructor=o,o}}))},"dojo/promise/Promise":function(){define(["../_base/lang"],(function(e){function t(){throw new TypeError("abstract")}return e.extend((function(){}),{then:function(e,n,r){t()},cancel:function(e,n){t()},isResolved:function(){t()},isRejected:function(){t()},isFulfilled:function(){t()},isCanceled:function(){t()},finally:function(e){return this.then((function(t){var n=e();return n&&"function"==typeof n.then?n.then((function(){return t})):t}),(function(t){var n=e();if(n&&"function"==typeof n.then)return n.then((function(){throw t}));throw t}))},always:function(e){return this.then(e,e)},catch:function(e){return this.then(null,e)},otherwise:function(e){return this.then(null,e)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})}))},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],(function(e,t,n,r){function i(e,t,n){if(!e||!1!==e.log){var r="";e&&e.stack&&(r+=e.stack),t&&t.stack&&(r+="\n    ----------------------------------------\n    rejected"+t.stack.split("\n").slice(1).join("\n").replace(/^\s+/," ")),n&&n.stack&&(r+="\n    ----------------------------------------\n"+n.stack),console.error(e,r)}}function o(e,t,n,r){t||i(e,n,r)}t.add("config-useDeferredInstrumentation","report-unhandled-rejections");var a=[],s=!1,c=1e3;function l(e,t,n,i){r.some(a,(function(n){if(n.error===e)return t&&(n.handled=!0),!0}))||a.push({error:e,rejection:n,handled:t,deferred:i,timestamp:(new Date).getTime()}),s||(s=setTimeout(u,c))}function u(){var e=(new Date).getTime(),t=e-c;a=r.filter(a,(function(e){return!(e.timestamp<t&&(e.handled||i(e.error,e.rejection,e.deferred),1))})),s=!!a.length&&setTimeout(u,a[0].timestamp+c-e)}return function(r){var i=t("config-useDeferredInstrumentation");if(i){e.on("resolved",n.hitch(console,"log","resolved")),e.on("rejected",n.hitch(console,"log","rejected")),e.on("progress",n.hitch(console,"log","progress"));var a=[];if("string"==typeof i&&(a=i.split(","),i=a.shift()),"report-rejections"===i)r.instrumentRejected=o;else{if("report-unhandled-rejections"!==i&&!0!==i&&1!==i)throw new Error("Unsupported instrumentation usage <"+i+">");r.instrumentRejected=l,c=parseInt(a[0],10)||c}}}}))},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],(function(e,t,n){var r=new n,i=r.emit;function o(e){setTimeout((function(){i.apply(r,e)}),0)}return r.emit=null,t.prototype.trace=function(){var t=e._toArray(arguments);return this.then((function(e){o(["resolved",e].concat(t))}),(function(e){o(["rejected",e].concat(t))}),(function(e){o(["progress",e].concat(t))})),this},t.prototype.traceRejected=function(){var t=e._toArray(arguments);return this.otherwise((function(e){o(["rejected",e].concat(t))})),this},r}))},"dojo/Evented":function(){define(["./aspect","./on"],(function(e,t){var n=e.after;function r(){}return r.prototype={on:function(e,r){return t.parse(this,e,r,(function(e,t){return n(e,"on"+t,r,!0)}))},emit:function(e,n){var r=[this];return r.push.apply(r,arguments),t.emit.apply(t,r)}},r}))},"dojo/aspect":function(){define([],(function(){function e(e){return function(t,n,r,i){var o,a=t[n];a&&a.target==t||(t[n]=o=function(){for(var e=o.nextId,t=arguments,n=o.before;n;)n.advice&&(t=n.advice.apply(this,t)||t),n=n.next;if(o.around)var r=o.around.advice(this,t);for(var i=o.after;i&&i.id<e;){if(i.advice)if(i.receiveArguments){var a=i.advice.apply(this,t);r=void 0===a?r:a}else r=i.advice.call(this,r,t);i=i.next}return r},a&&(o.around={advice:function(e,t){return a.apply(e,t)}}),o.target=t,o.nextId=o.nextId||0);var s=function(e,t,n,r){var i,o=e[t],a="around"==t;if(a){var s=n((function(){return o.advice(this,arguments)}));i={remove:function(){s&&(s=e=n=null)},advice:function(e,t){return s?s.apply(e,t):o.advice(e,t)}}}else i={remove:function(){if(i.advice){var r=i.previous,o=i.next;o||r?(r?r.next=o:e[t]=o,o&&(o.previous=r)):delete e[t],e=n=i.advice
5=null}},id:e.nextId++,advice:n,receiveArguments:r};if(o&&!a)if("after"==t){for(;o.next&&(o=o.next););o.next=i,i.previous=o}else"before"==t&&(e[t]=i,i.next=o,o.previous=i);else e[t]=i;return i}(o||a,e,r,i);return r=null,s}}var t=e("after");return{before:e("before"),around:e("around"),after:t}}))},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],(function(e,t,n){var r=window.ScriptEngineMajorVersion;n.add("jscript",r&&r()+ScriptEngineMinorVersion()/10),n.add("event-orientationchange",n("touch")&&!n("android")),n.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation),n.add("event-focusin",(function(e,t,n){return"onfocusin"in n})),n("touch")&&n.add("touch-can-modify-event-delegate",(function(){var e=function(){};e.prototype=document.createEvent("MouseEvents");try{var t=new e;return t.target=null,null===t.target}catch(e){return!1}}));var i=function(e,t,n,r){return"function"!=typeof e.on||"function"==typeof t||e.nodeType?i.parse(e,t,n,a,r,this):e.on(t,n)};i.pausable=function(e,t,n,r){var o,a=i(e,t,(function(){if(!o)return n.apply(this,arguments)}),r);return a.pause=function(){o=!0},a.resume=function(){o=!1},a},i.once=function(e,t,n,r){var o=i(e,t,(function(){return o.remove(),n.apply(this,arguments)}));return o},i.parse=function(e,t,n,r,o,a){var s;if(t.call)return t.call(a,e,n);if(t instanceof Array?s=t:t.indexOf(",")>-1&&(s=t.split(/\s*,\s*/)),s){for(var c,l=[],u=0;c=s[u++];)l.push(i.parse(e,c,n,r,o,a));return l.remove=function(){for(var e=0;e<l.length;e++)l[e].remove()},l}return r(e,t,n,o,a)};var o=/^touch/;function a(e,t,r,a,s){var c=t.match(/(.*):(.*)/);if(c)return t=c[2],c=c[1],i.selector(c,t).call(s,e,r);if(n("touch")&&(o.test(t)&&(r=_(r)),n("event-orientationchange")||"orientationchange"!=t||(t="resize",e=window,r=_(r))),h&&(r=h(r)),e.addEventListener){var l=t in d,u=l?d[t]:t;return e.addEventListener(u,r,l),{remove:function(){e.removeEventListener(u,r,l)}}}if(t="on"+t,m&&e.attachEvent)return m(e,t,r);throw new Error("Target must be an event emitter")}function s(){this.cancelable=!1,this.defaultPrevented=!0}function c(){this.bubbles=!1}i.matches=function(e,n,r,i,o){for(o=o&&"function"==typeof o.matches?o:t.query,i=!1!==i,1!=e.nodeType&&(e=e.parentNode);!o.matches(e,n,r);)if(e==r||!1===i||!(e=e.parentNode)||1!=e.nodeType)return!1;return e},i.selector=function(e,t,n){return function(r,o){var a="function"==typeof e?{matches:e}:this,s=t.bubble;function c(t){return i.matches(t,e,r,n,a)}return s?i(r,s(c),o):i(r,t,(function(e){var t=c(e.target);if(t)return e.selectorTarget=t,o.call(t,e)}))}};var l=[].slice,u=i.emit=function(e,t,n){var r=l.call(arguments,2),i="on"+t;if("parentNode"in e){var o=r[0]={};for(var a in n)o[a]=n[a];o.preventDefault=s,o.stopPropagation=c,o.target=e,o.type=t,n=o}do{e[i]&&e[i].apply(e,r)}while(n&&n.bubbles&&(e=e.parentNode));return n&&n.cancelable&&n},d=n("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!n("event-stopimmediatepropagation"))var f=function(){this.immediatelyStopped=!0,this.modified=!0},h=function(e){return function(t){if(!t.immediatelyStopped)return t.stopImmediatePropagation=f,e.apply(this,arguments)}};if(n("dom-addeventlistener"))i.emit=function(e,t,n){if(e.dispatchEvent&&document.createEvent){var r=(e.ownerDocument||document).createEvent("HTMLEvents");for(var o in r.initEvent(t,!!n.bubbles,!!n.cancelable),n)o in r||(r[o]=n[o]);return e.dispatchEvent(r)&&r}return u.apply(i,arguments)};else{i._fixEvent=function(e,t){if(e||(e=(t&&(t.ownerDocument||t.document||t).parentWindow||window).event),!e)return e;try{p&&e.type==p.type&&e.srcElement==p.target&&(e=p)}catch(e){}if(!e.target&&(e.target=e.srcElement,e.currentTarget=t||e.srcElement,"mouseover"==e.type&&(e.relatedTarget=e.fromElement),"mouseout"==e.type&&(e.relatedTarget=e.toElement),e.stopPropagation||(e.stopPropagation=y,e.preventDefault=b),"keypress"===e.type)){var n="charCode"in e?e.charCode:e.keyCode;10==n?(n=0,e.keyCode=13):13==n||27==n?n=0:3==n&&(n=99),e.charCode=n,v(e)}return e};var p,g=function(e){this.handle=e};g.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};var m=function(t,r,o){var a;if(a=o,o=function(e){e=i._fixEvent(e,this);var t=a.call(this,e);return e.modified&&(p||setTimeout((function(){p=null})),p=e),t},((t.ownerDocument?t.ownerDocument.parentWindow:t.parentWindow||t.window||window)!=top||n("jscript")<5.8)&&!n("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var s,c=t[r];if(!c||!c.listeners){var l=c;(c=Function("event","var callee = arguments.callee; for(var i = 0; i<callee.listeners.length; i++){var listener = _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}
5")).listeners=[],t[r]=c,c.global=this,l&&c.listeners.push(_dojoIEListeners_.push(l)-1)}return c.listeners.push(s=c.global._dojoIEListeners_.push(o)-1),new g(s)}return e.after(t,r,o,!0)},v=function(e){e.keyChar=e.charCode?String.fromCharCode(e.charCode):"",e.charOrCode=e.keyChar||e.keyCode},y=function(){this.cancelBubble=!0},b=i._preventDefault=function(){if(this.bubbledKeyCode=this.keyCode,this.ctrlKey)try{this.keyCode=0}catch(e){}this.defaultPrevented=!0,this.returnValue=!1,this.modified=!0}}if(n("touch"))var w=function(){},x=window.orientation,_=function(e){return function(t){var r=t.corrected;if(!r){var i=t.type;try{delete t.type}catch(e){}if(t.type){if(n("touch-can-modify-event-delegate"))w.prototype=t,r=new w;else for(var o in r={},t)r[o]=t[o];r.preventDefault=function(){t.preventDefault()},r.stopPropagation=function(){t.stopPropagation()}}else(r=t).type=i;if(t.corrected=r,"resize"==i)return x==window.orientation?null:(x=window.orientation,r.type="orientationchange",e.call(this,r));if("rotation"in r||(r.rotation=0,r.scale=1),window.TouchEvent&&t instanceof TouchEvent){var a=r.changedTouches[0];for(var s in a)delete r[s],r[s]=a[s]}}return e.call(this,r)}};return i}))},"dojo/when":function(){define(["./Deferred","./promise/Promise"],(function(e,t){return function(n,r,i,o){var a=n&&"function"==typeof n.then,s=a&&n instanceof t;if(!a)return arguments.length>1?r?r(n):n:(new e).resolve(n);if(!s){var c=new e(n.cancel);n.then(c.resolve,c.reject,c.progress),n=c.promise}return r||i||o?n.then(r,i,o):n}}))},"dojo/_base/json":function(){define(["./kernel","../json"],(function(dojo,json){return dojo.fromJson=function(js){return eval("("+js+")")},dojo._escapeString=json.stringify,dojo.toJsonIndentStr="\t",dojo.toJson=function(e,t){return json.stringify(e,(function(e,t){if(t){var n=t.__json__||t.json;if("function"==typeof n)return n.call(t)}return t}),t&&dojo.toJsonIndentStr)},dojo}))},"dojo/request/watch":function(){define(["./util","../errors/RequestTimeoutError","../errors/CancelError","../_base/array","../_base/window","../has!host-browser?dom-addeventlistener?:../on:"],(function(e,t,n,r,i,o){var a=null,s=[];function c(){for(var e,n=+new Date,r=0;r<s.length&&(e=s[r]);r++){var i=e.response,o=i.options;e.isCanceled&&e.isCanceled()||e.isValid&&!e.isValid(i)?(s.splice(r--,1),l._onAction&&l._onAction()):e.isReady&&e.isReady(i)?(s.splice(r--,1),e.handleResponse(i),l._onAction&&l._onAction()):e.startTime&&e.startTime+(o.timeout||0)<n&&(s.splice(r--,1),e.cancel(new t("Timeout exceeded",i)),l._onAction&&l._onAction())}l._onInFlight&&l._onInFlight(e),s.length||(clearInterval(a),a=null)}function l(e){e.response.options.timeout&&(e.startTime=+new Date),e.isFulfilled()||(s.push(e),a||(a=setInterval(c,50)),e.response.options.sync&&c())}return l.cancelAll=function(){try{r.forEach(s,(function(e){try{e.cancel(new n("All requests canceled."))}catch(e){}}))}catch(e){}},i&&o&&i.doc.attachEvent&&o(i.global,"unload",(function(){l.cancelAll()})),l}))},"dojo/request/util":function(){define(["exports","../errors/RequestError","../errors/CancelError","../Deferred","../io-query","../_base/array","../_base/lang","../promise/Promise","../has"],(function(e,t,n,r,i,o,a,s,c){function l(e){return c("native-arraybuffer")&&e instanceof ArrayBuffer}function u(e){return c("native-blob")&&e instanceof Blob}e.deepCopy=function(t,n){for(var r in n){var i=t[r],o=n[r];"__proto__"!==r&&i!==o&&(d=void 0,f=void 0,!(s=o)||"object"!=typeof s||(f=s,c("native-formdata")&&f instanceof FormData)||(d=s,"undefined"!=typeof Element?d instanceof Element:1===d.nodeType)||u(s)||l(s)?t[r]=o:"[object Date]"===Object.prototype.toString.call(o)?t[r]=new Date(o):a.isArray(o)?t[r]=e.deepCopyArray(o):i&&"object"==typeof i?e.deepCopy(i,o):t[r]=e.deepCopy({},o))}var s,d,f;return t},e.deepCopyArray=function(t){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];"object"==typeof o?n.push(e.deepCopy({},o)):n.push(o)}return n},e.deepCreate=function(t,n){n=n||{};var r,i,o=a.delegate(t);for(r in t)(i=t[r])&&"object"==typeof i&&(o[r]=e.deepCreate(i,n[r]));return e.deepCopy(o,n)};var d=Object.freeze||function(e){return e};function f(e){return d(e)}function h(e){return void 0!==e.data?e.data:e.text}e.deferred=function(i,o,c,l,u,p){var g=new r((function(e){return o&&o(g,i),e&&(e instanceof t||e instanceof n)?e:new n("Request canceled",i)}));g.response=i,g.isValid=c,g.isReady=l,g.handleResponse=u;var m=g.then(f).otherwise((function(e){throw e.response=i,e}));e.notify&&m.then(a.hitch(e.notify,"emit","load"),a.hitch(e.notify,"emit","error"));var v=m.then(h),y=new s;for(var b in v)v.hasOwnProperty(b)&&(y[b]=v[b]);return y.response=m,d(y),p&&g.then((function(e){p.call(g,e)}),(function(e){p.call(g,i,e)})),g.promise=y,g.then=y.then,g},e.addCommonMethods=function(e,t){o.forEach(t||["GET","POST","PUT","DELETE"],(function(t){e[("DELETE"===t?"DEL":t).toLowerCase()]=function(n,r){return(r=a.delegate(r||{})).method=t,e(n,r)}}))},e.parseArgs=function(e,t,n){var r=t.data,o=t.query;return r&&!n&&("object"!=typeof r||c("native-xhr2")&&(l(r)||u(r))||(t.data=i.objectToQuery(r))),o?("object"==typeof o&&(o=i.objectToQuery(o)),t.preventCache&&(o+=(o?"&":"")+"request.preventCache="+ +new Date)):t.preventCache&&(o="request.preventCache="+ +new Date),e&&o&&(e+=(~e.indexOf("?")?"&":"?")+o),{url:e,options:t,getHeader:function(e){return null}}},e.checkStatus=function(e){return(e=e||0)>=200&&e<300||304===e||1223===e||!e}}))},"dojo/errors/RequestError":function(){define(["./create"],(function(e){return e("RequestError",(function(e,t){this.response=t}))}))},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],(function(e,t){return e("RequestTimeoutError",null,t,{dojoType:"timeout"})}))},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers","./util","../has"],(function(e,t,n,r,i){i.add("native-xhr",(function(){return"undefined"!=typeof XMLHttpRequest})),i.add("dojo-force-activex-xhr",(function(){return i("activex")&&"file:"===window.location.protocol})),i.add("native-xhr2",(function(){if(i("native-xhr")&&!i("dojo-force-activex-xhr")){var e=new XMLHttpRequest;return void 0!==e.addEventListener&&("undefined"==typeof opera||void 0!==e.upload)}})),i.add("native-formdata",(function(){return"undefined"!=typeof FormData})),i.add("native-blob",(function(){return"undefined"!=typeof Blob})),i.add("native-arraybuffer",(function(){return"undefined"!=typeof ArrayBuffer})),i.add("native-response-type",(function(){return i("native-xhr")&&void 0!==(new XMLHttpRequest).responseType})),i.add("native-xhr2-blob",(function(){if(i("native-response-type")){var e=new XMLHttpRequest;e.open("GET","https://dojotoolkit.org/",!0),e.responseType="blob";var t=e.responseType;return e.abort(),"blob"===t}}));var o,a,s,c,l={blob:i("native-xhr2-blob")?"blob":"arraybuffer",document:"document",arraybuffer:"arraybuffer"};function u(t,i){var o,a=t.xhr;t.status=t.xhr.status;try{t.text=a.responseText}catch(e){}if("xml"===t.options.handleAs&&(t.data=a.responseXML),i)this.reject(i);
5else{try{n(t)}catch(e){o=e}r.checkStatus(a.status)?o?this.reject(o):this.resolve(t):o?(i=new e("Unable to load "+t.url+" status: "+a.status+" and an error in handleAs: transformation of response",t),this.reject(i)):(i=new e("Unable to load "+t.url+" status: "+a.status,t),this.reject(i))}}function d(e){return this.xhr.getResponseHeader(e)}i("native-xhr2")?(o=function(e){return!this.isFulfilled()},c=function(e,t){t.xhr.abort()},s=function(t,n,r,i){function o(e){n.handleResponse(r)}function a(t){var i=t.target,o=new e("Unable to load "+r.url+" status: "+i.status,r);n.handleResponse(r,o)}function s(e,t){r.transferType=e,t.lengthComputable?(r.loaded=t.loaded,r.total=t.total,n.progress(r)):3===r.xhr.readyState&&(r.loaded="loaded"in t?t.loaded:t.position,n.progress(r))}function c(e){return s("download",e)}function l(e){return s("upload",e)}return t.addEventListener("load",o,!1),t.addEventListener("error",a,!1),t.addEventListener("progress",c,!1),i&&t.upload&&t.upload.addEventListener("progress",l,!1),function(){t.removeEventListener("load",o,!1),t.removeEventListener("error",a,!1),t.removeEventListener("progress",c,!1),t.upload.removeEventListener("progress",l,!1),t=null}}):(o=function(e){return e.xhr.readyState},a=function(e){return 4===e.xhr.readyState},c=function(e,t){var n=t.xhr,r=typeof n.abort;"function"!==r&&"object"!==r&&"unknown"!==r||n.abort()});var f,h={data:null,query:null,sync:!1,method:"GET"};function p(n,g,m){var v=i("native-formdata")&&g&&g.data&&g.data instanceof FormData,y=r.parseArgs(n,r.deepCreate(h,g),v);n=y.url;var b=!(g=y.options).data&&"POST"!==g.method&&"PUT"!==g.method;i("ie")<=10&&(n=n.split("#")[0]);var w,x=r.deferred(y,c,o,a,u,(function(){w&&w()})),_=y.xhr=p._create();if(!_)return x.cancel(new e("XHR was not created")),m?x:x.promise;y.getHeader=d,s&&(w=s(_,x,y,g.uploadProgress));var S=void 0===g.data?null:g.data,C=!g.sync,E=g.method;try{_.open(E,n,C,g.user||f,g.password||f),g.withCredentials&&(_.withCredentials=g.withCredentials),i("native-response-type")&&g.handleAs in l&&(_.responseType=l[g.handleAs]);var O=g.headers,j=!v&&!b&&"application/x-www-form-urlencoded";if(O)for(var k in O)"content-type"===k.toLowerCase()?j=O[k]:O[k]&&_.setRequestHeader(k,O[k]);j&&!1!==j&&_.setRequestHeader("Content-Type",j),O&&"X-Requested-With"in O||_.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.notify&&r.notify.emit("send",y,x.promise.cancel),_.send(S)}catch(e){x.reject(e)}return t(x),_=null,m?x:x.promise}if(p._create=function(){throw new Error("XMLHTTP not available")},i("native-xhr")&&!i("dojo-force-activex-xhr"))p._create=function(){return new XMLHttpRequest};else if(i("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),p._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(e){try{new ActiveXObject("Microsoft.XMLHTTP"),p._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(e){}}return r.addCommonMethods(p),p}))},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],(function(e,t,n,r){var i;if(r.add("activex","undefined"!=typeof ActiveXObject),r.add("dom-parser",(function(e){return"DOMParser"in e})),r("activex")){var o,a=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"];i=function(e){var t=e.data,i=e.text;function s(e){try{var n=new ActiveXObject(e);n.async=!1,n.loadXML(i),t=n,o=e}catch(e){return!1}return!0}return t&&r("dom-qsa2.1")&&!t.querySelectorAll&&r("dom-parser")&&(t=(new DOMParser).parseFromString(i,"application/xml")),t&&t.documentElement||o&&s(o)||n.some(a,s),t}}var s=function(e){return r("native-xhr2-blob")||"blob"!==e.options.handleAs||"undefined"==typeof Blob?e.xhr.response:new Blob([e.xhr.response],{type:e.xhr.getResponseHeader("Content-Type")})},c={javascript:function(e){return t.eval(e.text||"")},json:function(t){return e.parse(t.text||null)},xml:i,blob:s,arraybuffer:s,document:s};function l(e){var t=c[e.options.handleAs];return e.data=t?t(e):e.data||e.text,e}return l.register=function(e,t){c[e]=t},l}))},"dojo/selector/_loader":function(){define(["../has","require"],(function(e,t){if("undefined"!=typeof document){var n=document.createElement("div");e.add("dom-qsa2.1",!!n.querySelectorAll),e.add("dom-qsa3",(function(){try{return n.innerHTML="<p class='TEST'></p>",1==n.querySelectorAll(".TEST:empty").length}catch(e){}}))}var r,i="./acme",o="./lite";return{load:function(n,a,s,c){if(c&&c.isBuild)s();else{var l=t;if("?"==(n="css2"==(n="default"==n?e("config-selectorEngine")||"css3":n)||"lite"==n?o:"css2.1"==n?e("dom-qsa2.1")?o:i:"css3"==n?e("dom-qsa3")?o:i:"acme"==n?i:(l=a)&&n).charAt(n.length-1)){n=n.substring(0,n.length-1);var u=!0}if(u&&(e("dom-compliant-qsa")||r))return s(r);l([n],(function(e){"./lite"!=n&&(r=e),s(e)}))}}}}))},"dojo/main":function(){define(["./_base/kernel","./has","require","./sniff","./_base/lang","./_base/array","./_base/config","./ready","./_base/declare","./_base/connect","./_base/Deferred","./_base/json","./_base/Color","./has!dojo-firebug?./_firebug/firebug","./_base/browser","./_base/loader"],(function(e,t,n,r,i,o,a,s){a.isDebug&&n(["./_firebug/firebug"]);var c=a.require;return c&&(c=o.map(i.isArray(c)?c:[c],(function(e){return e.replace(/\./g,"/")})),e.isAsync?n(c):s(1,(function(){n(c)}))),e}))},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],(function(e,t,n,r,i){var o=0,a=[],s=0,c=function(){o=1,e._postLoad=e.config.afterOnLoad=!0,l()},l=function(){if(!s){for(s=1;o&&(!r||0==r._Q.length)&&(!n.idle||n.idle())&&a.length;){var e=a.shift();try{e()}catch(e){if(e.info=e.message,!n.signal)throw e;n.signal("error",e)}}s=0}};n.on&&n.on("idle",l),r&&(r._onQEmpty=l);var u=e.ready=e.addOnLoad=function(t,n,r){var o=i._toArray(arguments);"number"!=typeof t?(r=n,n=t,t=1e3):o.shift(),(r=r?i.hitch.apply(e,o):function(){n()}).priority=t;for(var s=0;s<a.length&&t>=a[s].priority;s++);a.splice(s,0,r),l()},d=e.config.addOnLoad;return d&&u[i.isArray(d)?"apply":"call"](e,d),e.config.parseOnLoad&&!e.isAsync&&u(99,(function(){e.parser||(e.deprecated("Add explicit require(['dojo/parser']);","","2.0"),n(["dojo/parser"]))})),r?r(c):c(),u}))},"dojo/domReady":function(){define(["./global","./has"],(function(e,t){var n,r=document,i={loaded:1,complete:1},o="string"!=typeof r.readyState,a=!!i[r.readyState],s=[];function c(e){s.push(e),a&&l()}function l(){if(!n){for(n=!0;s.length;)try{s.shift()(r)}catch(e){console.error(e,"in domReady callback",e.stack)}n=!1,c._onQEmpty()}}if(c.load=function(e,t,n){c(n)},c._Q=s,c._onQEmpty=function(){},o&&(r.readyState="loading"),!a){var u=[],d=function(t){t=t||e.event,a||"readystatechange"==t.type&&!i[r.readyState]||(o&&(r.readyState="complete"),a=1,l())},f=function(e,t){e.addEventListener(t,d,!1),s.push((function(){e.removeEventListener(t,d,!1)}))};if(!t("dom-addeventlistener")){f=function(e,t){t="on"+t,e.attachEvent(t,d),s.push((function(){e.detachEvent(t,d)}))};var h=r.createElement("div");try{h.doScroll&&null===e.frameElement&&u.push((function(){try{return h.doScroll("left"),1}catch(e){}}))}catch(e){}}if(f(r,"DOMContentLoaded"),f(e,"load"),"onreadystatechange"in r?f(r,"readystatechange"):o||u.push((function(){return i[r.readyState]})),u.length){var p=function(){if(!a){for(var e=u.length;e--;)if(u[e]())return void d("poller");setTimeout(p,30)}};p()}}return c}))},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],(function(e,t,n){var r,i=n.mixin,o=Object.prototype,a=o.toString,s=0,c="constructor";function l(e,t){throw new Error("declare"+(t?" "+t:"")+": "+e)}function u(e,t,n,r){var i,a,s,u,d,f,h,p,g,m=this._inherited=this._inherited||{};if("string"==typeof e&&(i=e,e=t,t=n,n=r),"function"==typeof e)u=e,e=t,t=n;else try{u=e.callee}catch(e){if(!(e instanceof TypeError))throw e;l("strict mode inherited() requires the caller function to be passed before arguments",this.declaredClass)}if((i=i||u.nom)||l("can't deduce a name to call inherited()",this.declaredClass),n=r=0,s=(d=this.constructor._meta).bases,g=m.p,i!=c){if(m.c!==u&&(g=0,(d=(f=s[0])._meta).hidden[i]!==u)){(a=d.chains)&&"string"==typeof a[i]&&l("calling chained method with inherited: "+i,this.declaredClass);do{if(d=f._meta,h=f.prototype,d&&(h[i]===u&&h.hasOwnProperty(i)||d.hidden[i]===u))break}while(f=s[++g]);g=f?g:-1}if(f=s[++g])if(h=f.prototype,f._meta&&h.hasOwnProperty(i))n=h[i];else{p=o[i];do{if((n=(h=f.prototype)[i])&&(f._meta?h.hasOwnProperty(i):n!==p))break}while(f=s[++g])}n=f&&n||o[i]}else{if(m.c!==u&&(g=0,(d=s[0]._meta)&&d.ctor!==u)){for((a=d.chains)&&"manual"===a.constructor||l("calling chained constructor with inherited",this.declaredClass);(f=s[++g])&&(!(d=f._meta)||d.ctor!==u););g=f?g:-1}for(;(f=s[++g])&&!(n=(d=f._meta)?d.ctor:f););n=f&&n}if(m.c=n,m.p=g,n)return!0===t?n:n.apply(this,t||e)}function d(e,t,n){return"string"==typeof e?"function"==typeof t?this.__inherited(e,t,n,!0):this.__inherited(e,t,!0):"function"==typeof e?this.__inherited(e,t,!0):this.__inherited(e,!0)}r=t("csp-restrictions")?function(){}:new Function;var f=e.config.isDebug?function(e,t,n,r){var i=this.getInherited(e,t,n);if(i)return i.apply(this,r||n||t||e)}:u;function h(e){for(var t=this.constructor._meta.bases,n=0,r=t.length;n<r;++n)if(t[n]===e)return!0;return this instanceof e}function p(e,r){for(var i in r)i!=c&&r.hasOwnProperty(i)&&(e[i]=r[i]);if(t("bug-for-in-skips-shadowed"))for(var o=n._extraNames,a=o.length;a;)(i=o[--a])!=c&&r.hasOwnProperty(i)&&(e[i]=r[i])}function g(e){return w.safeMixin(this.prototype,e),this}function m(e,t){return e instanceof Array||"function"==typeof e||(t=e,e=void 0),t=t||{},w([this].concat(e=e||[]),t)}function v(e,t,n){return function(){var r,i,o,a=0,s=1;for(n&&(a=t.length-1,s=-1);r=t[a];a+=s)(o=((i=r._meta)?i.hidden:r.prototype)[e])&&o.apply(this,arguments)}}function y(e){r.prototype=e.prototype;var t=new r;return r.prototype=null,t}function b(e){var t=e.callee,n=y(t);return t.apply(n,e),n}function w(e,r,x){"string"!=typeof e&&(x=r,r=e,e=""),x=x||{};var _,S,C,E,O,j,k,R,N,T,A=1,P=r;if("[object Array]"==a.call(r)?(j=function(e,t){for(var n,r,i,o,c,u,d,f,h=[],p=[{cls:0,refs:[]}],g={},m=1,v=e.length,y=0;y<v;++y){for((i=e[y])?"[object Function]"!=a.call(i)&&l("mixin #"+y+" is not a callable constructor.",t):l("mixin #"+y+" is unknown. Did you use dojo.require to pull it in?",t),o=0,n=(r=i._meta?i._meta.bases:[i]).length-1;n>=0;--n)(c=r[n].prototype).hasOwnProperty("declaredClass")||(c.declaredClass="uniqName_"+s++),d=c.declaredClass,g.hasOwnProperty(d)||(g[d]={count:0,refs:[],cls:r[n]}
5,++m),u=g[d],o&&o!==u&&(u.refs.push(o),++o.count),o=u;++o.count,p[0].refs.push(o)}for(;p.length;){for(o=p.pop(),h.push(o.cls),--m;1==(f=o.refs).length;){if(!(o=f[0])||--o.count){o=0;break}h.push(o.cls),--m}if(o)for(y=0,v=f.length;y<v;++y)--(o=f[y]).count||p.push(o)}return m&&l("can't build consistent linearization",t),i=e[0],h[0]=i?i._meta&&i===h[h.length-i._meta.bases.length]?i._meta.bases.length:1:0,h}(r,e),C=j[0],r=j[A=j.length-C]):(j=[0],r?"[object Function]"==a.call(r)?(C=r._meta,j=j.concat(C?C.bases:r)):l("base class is not a callable constructor.",e):null!==r&&l("unknown base class. Did you use dojo.require to pull it in?",e)),r)for(S=A-1;_=y(r),S;--S)((C=j[S])._meta?p:i)(_,C.prototype),(E=t("csp-restrictions")?function(){}:new Function).superclass=r,E.prototype=_,r=_.constructor=E;else _={};for(w.safeMixin(_,x),(C=x.constructor)!==o.constructor&&(C.nom=c,_.constructor=C),S=A-1;S;--S)(C=j[S]._meta)&&C.chains&&(k=i(k||{},C.chains));if(_["-chains-"]&&(k=i(k||{},_["-chains-"])),r&&r.prototype&&r.prototype["-chains-"]&&(k=i(k||{},r.prototype["-chains-"])),C=!k||!k.hasOwnProperty(c),j[0]=E=k&&"manual"===k.constructor?(T=j,function(){var e,t,n=arguments,r=0;if(!(this instanceof n.callee))return b(n);for(;e=T[r];++r)if(e=(t=e._meta)?t.ctor:e){e.apply(this,n);break}(e=this.postscript)&&e.apply(this,n)}):1==j.length?function(e,t){return function(){var n,r=arguments,i=r,o=r[0];if(!(this instanceof r.callee))return b(r);t&&(o&&(n=o.preamble)&&(i=n.apply(this,i)||i),(n=this.preamble)&&n.apply(this,i)),e&&e.apply(this,r),(n=this.postscript)&&n.apply(this,r)}}(x.constructor,C):(R=j,N=C,function(){var e,t,n,r,i=arguments,o=i,a=i[0],s=R.length;if(!(this instanceof i.callee))return b(i);if(N&&(a&&a.preamble||this.preamble))for((r=new Array(R.length))[0]=i,t=0;(a=i[0])&&(e=a.preamble)&&(i=e.apply(this,i)||i),(e=(e=R[t].prototype).hasOwnProperty("preamble")&&e.preamble)&&(i=e.apply(this,i)||i),++t!=s;)r[t]=i;for(t=s-1;t>=0;--t)(e=(n=(e=R[t])._meta)?n.ctor:e)&&e.apply(this,r?r[t]:i);(e=this.postscript)&&e.apply(this,o)}),E._meta={bases:j,hidden:x,chains:k,parents:P,ctor:x.constructor},E.superclass=r&&r.prototype,E.extend=g,E.createSubclass=m,E.prototype=_,_.constructor=E,_.getInherited=d,_.isInstanceOf=h,_.inherited=f,_.__inherited=u,e&&(_.declaredClass=e,n.setObject(e,E)),k)for(O in k)_[O]&&"string"==typeof k[O]&&O!=c&&((C=_[O]=v(O,j,"after"===k[O])).nom=O);return E}return e.safeMixin=w.safeMixin=function(e,r){var i,s;for(i in r)(s=r[i])===o[i]&&i in o||i==c||("[object Function]"==a.call(s)&&(s.nom=i),e[i]=s);if(t("bug-for-in-skips-shadowed")&&r)for(var l=n._extraNames,u=l.length;u;)(s=r[i=l[--u]])===o[i]&&i in o||i==c||("[object Function]"==a.call(s)&&(s.nom=i),e[i]=s);return e},e.declare=w,w}))},"dojo/_base/connect":function(){define(["./kernel","../on","../topic","../aspect","./event","../mouse","./sniff","./lang","../keys"],(function(e,t,n,r,i,o,a,s){function c(n,i,a,c,u){if(c=s.hitch(a,c),!n||!n.addEventListener&&!n.attachEvent)return r.after(n||e.global,i,c,!0);if("string"==typeof i&&"on"==i.substring(0,2)&&(i=i.substring(2)),n||(n=e.global),!u)switch(i){case"keypress":i=l;break;case"mouseenter":i=o.enter;break;case"mouseleave":i=o.leave}return t(n,i,c,u)}a.add("events-keypress-typed",(function(){var e={charCode:0};try{((e=document.createEvent("KeyboardEvent")).initKeyboardEvent||e.initKeyEvent).call(e,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(e){}return 0==e.charCode&&!a("opera")}));var l,u={106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39,229:113},d=a("mac")?"metaKey":"ctrlKey",f=function(e,t){var n=s.mixin({},e,t);return h(n),n.preventDefault=function(){e.preventDefault()},n.stopPropagation=function(){e.stopPropagation()},n};function h(e){e.keyChar=e.charCode?String.fromCharCode(e.charCode):"",e.charOrCode=e.keyChar||e.keyCode}var p={_keypress:l=a("events-keypress-typed")?function(e,n){var r=t(e,"keydown",(function(e){var t=e.keyCode,r=13!=t&&32!=t&&(27!=t||!a("ie"))&&(t<48||t>90)&&(t<96||t>111)&&(t<186||t>192)&&(t<219||t>222)&&229!=t;if(r||e.ctrlKey){var i=r?0:t;if(e.ctrlKey){if(3==t||13==t)return n.call(e.currentTarget,e);i>95&&i<106?i-=48:!e.shiftKey&&i>=65&&i<=90?i+=32:i=u[i]||i}var o=f(e,{type:"keypress",faux:!0,charCode:i});n.call(e.currentTarget,o),a("ie")&&function(e,t){try{return e.keyCode=t}catch(e){return 0}}(e,o.keyCode)}})),i=t(e,"keypress",(function(e){var t=e.charCode;
5return e=f(e,{charCode:t=t>=32?t:0,faux:!0}),n.call(this,e)}));return{remove:function(){r.remove(),i.remove()}}}:a("opera")?function(e,n){return t(e,"keypress",(function(e){var t=e.which;return 3==t&&(t=99),t=t<32&&!e.shiftKey?0:t,e.ctrlKey&&!e.shiftKey&&t>=65&&t<=90&&(t+=32),n.call(this,f(e,{charCode:t}))}))}:function(e,n){return t(e,"keypress",(function(e){return h(e),n.call(this,e)}))},connect:function(e,t,n,r,i){var o=arguments,a=[],s=0;a.push("string"==typeof o[0]?null:o[s++],o[s++]);var l=o[s+1];a.push("string"==typeof l||"function"==typeof l?o[s++]:null,o[s++]);for(var u=o.length;s<u;s++)a.push(o[s]);return c.apply(this,a)},disconnect:function(e){e&&e.remove()},subscribe:function(e,t,r){return n.subscribe(e,s.hitch(t,r))},publish:function(e,t){return n.publish.apply(n,[e].concat(t))},connectPublisher:function(e,t,n){var r=function(){p.publish(e,arguments)};return n?p.connect(t,n,r):p.connect(t,r)},isCopyKey:function(e){return e[d]}};return p.unsubscribe=p.disconnect,s.mixin(e,p),p}))},"dojo/topic":function(){define(["./Evented"],(function(e){var t=new e;return{publish:function(e,n){return t.emit.apply(t,arguments)},subscribe:function(e,n){return t.on.apply(t,arguments)}}}))},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],(function(e,t,n,r){if(t._fixEvent){var i=t._fixEvent;t._fixEvent=function(e,t){return(e=i(e,t))&&r.normalizeEvent(e),e}}var o={fix:function(e,n){return t._fixEvent?t._fixEvent(e,n):e},stop:function(e){n("dom-addeventlistener")||e&&e.preventDefault?(e.preventDefault(),e.stopPropagation()):((e=e||window.event).cancelBubble=!0,t._preventDefault.call(e))}};return e.fixEvent=o.fix,e.stopEvent=o.stop,o}))},"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],(function(e,t,n,r){var i={boxModel:"content-box"};e("ie")&&(i.boxModel="BackCompat"==document.compatMode?"border-box":"content-box"),i.getPadExtents=function(e,t){e=n.byId(e);var i=t||r.getComputedStyle(e),o=r.toPixelValue,a=o(e,i.paddingLeft),s=o(e,i.paddingTop),c=o(e,i.paddingRight),l=o(e,i.paddingBottom);return{l:a,t:s,r:c,b:l,w:a+c,h:s+l}};var o="none";function a(e,t,n,r,i,o){o=o||"px";var a=e.style;isNaN(t)||(a.left=t+o),isNaN(n)||(a.top=n+o),r>=0&&(a.width=r+o),i>=0&&(a.height=i+o)}function s(e){return"button"==e.tagName.toLowerCase()||"input"==e.tagName.toLowerCase()&&"button"==(e.getAttribute("type")||"").toLowerCase()}function c(e){return"border-box"==i.boxModel||"table"==e.tagName.toLowerCase()||s(e)}function l(e){var t,n={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0};try{t=e.getBoundingClientRect()}catch(e){return n}return void 0===t.left?n:t}i.getBorderExtents=function(e,t){e=n.byId(e);var i=r.toPixelValue,a=t||r.getComputedStyle(e),s=a.borderLeftStyle!=o?i(e,a.borderLeftWidth):0,c=a.borderTopStyle!=o?i(e,a.borderTopWidth):0,l=a.borderRightStyle!=o?i(e,a.borderRightWidth):0,u=a.borderBottomStyle!=o?i(e,a.borderBottomWidth):0;return{l:s,t:c,r:l,b:u,w:s+l,h:c+u}},i.getPadBorderExtents=function(e,t){e=n.byId(e);var o=t||r.getComputedStyle(e),a=i.getPadExtents(e,o),s=i.getBorderExtents(e,o);return{l:a.l+s.l,t:a.t+s.t,r:a.r+s.r,b:a.b+s.b,w:a.w+s.w,h:a.h+s.h}},i.getMarginExtents=function(e,t){e=n.byId(e);var i=t||r.getComputedStyle(e),o=r.toPixelValue,a=o(e,i.marginLeft),s=o(e,i.marginTop),c=o(e,i.marginRight),l=o(e,i.marginBottom);return{l:a,t:s,r:c,b:l,w:a+c,h:s+l}},i.getMarginBox=function(t,a){t=n.byId(t);var s,c=a||r.getComputedStyle(t),l=i.getMarginExtents(t,c),u=t.offsetLeft-l.l,d=t.offsetTop-l.t,f=t.parentNode,h=r.toPixelValue;return 8!=e("ie")||e("quirks")||f&&(u-=(s=r.getComputedStyle(f)).borderLeftStyle!=o?h(t,s.borderLeftWidth):0,d-=s.borderTopStyle!=o?h(t,s.borderTopWidth):0),{l:u,t:d,w:t.offsetWidth+l.w,h:t.offsetHeight+l.h}},i.getContentBox=function(t,a){t=n.byId(t);var s,c=a||r.getComputedStyle(t),l=t.clientWidth,u=i.getPadExtents(t,c),d=i.getBorderExtents(t,c),f=t.offsetLeft+u.l+d.l,h=t.offsetTop+u.t+d.t;if(l?s=t.clientHeight:(l=t.offsetWidth-d.w,s=t.offsetHeight-d.h),8==e("ie")&&!e("quirks")){var p,g=t.parentNode,m=r.toPixelValue;g&&(f-=(p=r.getComputedStyle(g)).borderLeftStyle!=o?m(t,p.borderLeftWidth):0,h-=p.borderTopStyle!=o?m(t,p.borderTopWidth):0)}return{l:f,t:h,w:l-u.w,h:s-u.h}},i.setContentSize=function(e,t,r){e=n.byId(e);var o=t.w,s=t.h;if(c(e)){var l=i.getPadBorderExtents(e,r);o>=0&&(o+=l.w),s>=0&&(s+=l.h)}a(e,NaN,NaN,o,s)};var u={l:0,t:0,w:0,h:0};return i.setMarginBox=function(t,o,l){t=n.byId(t);var d=l||r.getComputedStyle(t),f=o.w,h=o.h,p=c(t)?u:i.getPadBorderExtents(t,d),g=i.getMarginExtents(t,d);if(e("webkit")&&s(t)){var m=t.style;f>=0&&!m.width&&(m.width="4px"),h>=0&&!m.height&&(m.height="4px")}f>=0&&(f=Math.max(f-p.w-g.w,0)),h>=0&&(h=Math.max(h-p.h-g.h,0)),a(t,o.l,o.t,f,h)},i.isBodyLtr=function(e){return e=e||t.doc,"ltr"==(t.body(e).dir||e.documentElement.dir||"ltr").toLowerCase()},i.docScroll=function(n){var r=(n=n||t.doc).parentWindow||n.defaultView;return"pageXOffset"in r?{x:r.pageXOffset,y:r.pageYOffset}:(r=e("quirks")?t.body(n):n.documentElement)&&{x:i.fixIeBiDiScrollLeft(r.scrollLeft||0,n),y:r.scrollTop||0}},i.getIeDocumentElementOffset=function(e){return{x:0,y:0}},i.fixIeBiDiScrollLeft=function(n,r){r=r||t.doc;var o=e("ie");if(o&&!i.isBodyLtr(r)){var a=e("quirks"),s=a?t.body(r):r.documentElement,c=t.global;return 6==o&&!a&&c.frameElement&&s.scrollHeight>s.clientHeight&&(n+=s.clientLeft),o<8||a?n+s.clientWidth-s.scrollWidth:-n}return n},i.position=function(r,o){r=n.byId(r);var a=t.body(r.ownerDocument),s=l(r);if(s={x:s.left,y:s.top,w:s.right-s.left,h:s.bottom-s.top},e("ie")<9&&(s.x-=e("quirks")?a.clientLeft+a.offsetLeft:0,s.y-=e("quirks")?a.clientTop+a.offsetTop:0),o){var c=i.docScroll(r.ownerDocument);s.x+=c.x,s.y+=c.y}return s},i.getMarginSize=function(e,t){e=n.byId(e);var o=i.getMarginExtents(e,t||r.getComputedStyle(e)),a=l(e);return{w:a.right-a.left+o.w,h:a.bottom-a.top+o.h}},i.normalizeEvent=function(t){if("layerX"in t||(t.layerX=t.offsetX,t.layerY=t.offsetY),!("pageX"in t)){var n=t.target,r=n&&n.ownerDocument||document,o=e("quirks")?r.body:r.documentElement;t.pageX=t.clientX+i.fixIeBiDiScrollLeft(o.scrollLeft||0,r),t.pageY=t.clientY+(o.scrollTop||0)}},i}))},"dojo/dom-style":function(){define(["./sniff","./dom","./_base/window"],(function(e,t,n){var r,i,o={};r=e("webkit")?function(e){var t;if(1==e.nodeType){var n=e.ownerDocument.defaultView;!(t=n.getComputedStyle(e,null))&&e.style&&(e.style.display="",t=n.getComputedStyle(e,null))}return t||{}}:e("ie")&&(e("ie")<9||e("quirks"))?function(e){return 1==e.nodeType&&e.currentStyle?e.currentStyle:{}}:function(e){if(1===e.nodeType){var t=e.ownerDocument.defaultView;return(t.opener?t:n.global.window).getComputedStyle(e,null)}return{}},o.getComputedStyle=r,i=e("ie")?function(e,t){if(!t)return 0;if("medium"==t)return 4;if(t.slice&&"px"==t.slice(-2))return parseFloat(t);var n=e.style,r=e.runtimeStyle,i=e.currentStyle,o=n.left,a=r.left;r.left=i.left;try{n.left=t,t=n.pixelLeft}catch(e){t=0}return n.left=o,r.left=a,t}:function(e,t){return parseFloat(t)||0},o.toPixelValue=i;var a="DXImageTransform.Microsoft.Alpha",s=function(e,t){try{return e.filters.item(a)}catch(e){return t?{}:null}},c=e("ie")<9||e("ie")<10&&e("quirks")?function(e){try{return s(e).Opacity/100}catch(e){return 1}}:function(e){return r(e).opacity},l=e("ie")<9||e("ie")<10&&e("quirks")?function(e,t){""===t&&(t=1);var n=100*t;if(1===t?(e.style.zoom="",s(e)&&(e.style.filter=e.style.filter.replace(new RegExp("\\s*progid:"+a+"\\([^\\)]+?\\)","i"),""))):(e.style.zoom=1,s(e)?s(e,1).Opacity=n:e.style.filter+=" progid:"+a+"(Opacity="+n+")",s(e,1).Enabled=!0),"tr"==e.tagName.toLowerCase())for(var r=e.firstChild;r;r=r.nextSibling)"td"==r.tagName.toLowerCase()&&l(r,t);return t}:function(e,t){return e.style.opacity=t},u={left:!0,top:!0},d=/margin|padding|width|height|max|min|offset/,f={cssFloat:1,styleFloat:1,float:1};return o.get=function(e,n){var r=t.byId(e),a=arguments.length;if(2==a&&"opacity"==n)return c(r);n=f[n]?"cssFloat"in r.style?"cssFloat":"styleFloat":n;var s=o.getComputedStyle(r);return 1==a?s:function(e,t,n){if(t=t.toLowerCase(),"auto"==n){if("height"==t)return e.offsetHeight;if("width"==t)return e.offsetWidth}return"fontweight"==t?700===n?"bold":"normal":(t in u||(u[t]=d.test(t)),u[t]?i(e,n):n)}(r,n,s[n]||r.style[n])},o.set=function(e,n,r){var i=t.byId(e),a=arguments.length,s="opacity"==n;if(n=f[n]?"cssFloat"in i.style?"cssFloat":"styleFloat":n,3==a)return s?l(i,r):i.style[n]=r;for(var c in n)o.set(e,c,n[c]);return o.getComputedStyle(i)},o}))},"dojo/mouse":function(){define(["./_base/kernel","./on","./has","./dom","./_base/window"],(function(e,t,n,r,i){var o,a;function s(e,n){var i=function(i,o){return t(i,e,(function(e){return n?n(e,o):r.isDescendant(e.relatedTarget,i
5)?void 0:o.call(this,e)}))};return i.bubble=function(t){return s(e,(function(e,n){var r=t(e.target),i=e.relatedTarget;if(r&&r!=(i&&1==i.nodeType&&t(i)))return n.call(r,e)}))},i}return n.add("dom-quirks",i.doc&&"BackCompat"==i.doc.compatMode),n.add("events-mouseenter",i.doc&&"onmouseenter"in i.doc.createElement("div")),n.add("events-mousewheel",i.doc&&"onmousewheel"in i.doc),o=n("dom-quirks")&&n("ie")||!n("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,t){return e.button&t},isLeft:function(e){return 1&e.button},isMiddle:function(e){return 4&e.button},isRight:function(e){return 2&e.button}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,t){return e.button==t},isLeft:function(e){return 0==e.button},isMiddle:function(e){return 1==e.button},isRight:function(e){return 2==e.button}},e.mouseButtons=o,a=n("events-mousewheel")?"mousewheel":function(e,n){return t(e,"DOMMouseScroll",(function(e){e.wheelDelta=-e.detail,n.call(this,e)}))},{_eventHandler:s,enter:s("mouseover"),leave:s("mouseout"),wheel:a,isLeft:o.isLeft,isMiddle:o.isMiddle,isRight:o.isRight}}))},"dojo/keys":function(){define(["./_base/kernel","./sniff"],(function(e,t){return e.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:t("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:t("mac")&&!t("air")?t("safari")?91:224:17}}))},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],(function(e,t,n,r){var i=e.Color=function(e){e&&this.setColor(e)};return i.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:r.transparentColor||[0,0,0,0]},t.extend(i,{r:255,g:255,b:255,a:1,_set:function(e,t,n,r){var i=this;i.r=e,i.g=t,i.b=n,i.a=r},setColor:function(e){return t.isString(e)?i.fromString(e,this):t.isArray(e)?i.fromArray(e,this):(this._set(e.r,e.g,e.b,e.a),e instanceof i||this.sanitize()),this},sanitize:function(){return this},toRgb:function(){var e=this;return[e.r,e.g,e.b]},toRgba:function(){var e=this;return[e.r,e.g,e.b,e.a]},toHex:function(){return"#"+n.map(["r","g","b"],(function(e){var t=this[e].toString(16);return t.length<2?"0"+t:t}),this).join("")},toCss:function(e){var t=this,n=t.r+", "+t.g+", "+t.b;return(e?"rgba("+n+", "+t.a:"rgb("+n)+")"},toString:function(){return this.toCss(!0)}}),i.blendColors=e.blendColors=function(e,t,n,r){var o=r||new i;return o.r=Math.round(e.r+(t.r-e.r)*n),o.g=Math.round(e.g+(t.g-e.g)*n),o.b=Math.round(e.b+(t.b-e.b)*n),o.a=e.a+(t.a-e.a)*n,o.sanitize()},i.fromRgb=e.colorFromRgb=function(e,t){var n=e.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return n&&i.fromArray(n[1].split(/\s*,\s*/),t)},i.fromHex=e.colorFromHex=function(e,t){var r=t||new i,o=4==e.length?4:8,a=(1<<o)-1;return e=Number("0x"+e.substr(1)),isNaN(e)?null:(n.forEach(["b","g","r"],(function(t){var n=e&a;e>>=o,r[t]=4==o?17*n:n})),r.a=1,r)},i.fromArray=e.colorFromArray=function(e,t){var n=t||new i;return n._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(n.a)&&(n.a=1),n.sanitize()},i.fromString=e.colorFromString=function(e,t){var n=i.named[e];return n&&i.fromArray(n,t)||i.fromRgb(e,t)||i.fromHex(e,t)},i}))},"dojo/_base/browser":function(){require.has&&require.has.add("config-selectorEngine","acme"),define(["../ready","./kernel","./connect","./unload","./window","./event","./html","./NodeList","../query","./xhr","./fx"],(function(e){return e}))},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],(function(e,t,n){var r=window,i={addOnWindowUnload:function(i,o){e.windowUnloaded||n(r,"unload",e.windowUnloaded=function(){}),n(r,"unload",t.hitch(i,o))},addOnUnload:function(e,i){n(r,"beforeunload",t.hitch(e,i))}};return e.addOnWindowUnload=i.addOnWindowUnload,e.addOnUnload=i.addOnUnload,i}))},"dojo/_base/html":function(){define(["./kernel","../dom","../dom-style","../dom-attr","../dom-prop","../dom-class","../dom-construct","../dom-geometry"],(function(e,t,n,r,i,o,a,s){return e.byId=t.byId,e.isDescendant=t.isDescendant,e.setSelectable=t.setSelectable,e.getAttr=r.get,e.setAttr=r.set,e.hasAttr=r.has,e.removeAttr=r.remove,e.getNodeProp=r.getNodeProp,e.attr=function(e,t,n){return 2==arguments.length?r["
5string"==typeof t?"get":"set"](e,t):r.set(e,t,n)},e.hasClass=o.contains,e.addClass=o.add,e.removeClass=o.remove,e.toggleClass=o.toggle,e.replaceClass=o.replace,e._toDom=e.toDom=a.toDom,e.place=a.place,e.create=a.create,e.empty=function(e){a.empty(e)},e._destroyElement=e.destroy=function(e){a.destroy(e)},e._getPadExtents=e.getPadExtents=s.getPadExtents,e._getBorderExtents=e.getBorderExtents=s.getBorderExtents,e._getPadBorderExtents=e.getPadBorderExtents=s.getPadBorderExtents,e._getMarginExtents=e.getMarginExtents=s.getMarginExtents,e._getMarginSize=e.getMarginSize=s.getMarginSize,e._getMarginBox=e.getMarginBox=s.getMarginBox,e.setMarginBox=s.setMarginBox,e._getContentBox=e.getContentBox=s.getContentBox,e.setContentSize=s.setContentSize,e._isBodyLtr=e.isBodyLtr=s.isBodyLtr,e._docScroll=e.docScroll=s.docScroll,e._getIeDocumentElementOffset=e.getIeDocumentElementOffset=s.getIeDocumentElementOffset,e._fixIeBiDiScrollLeft=e.fixIeBiDiScrollLeft=s.fixIeBiDiScrollLeft,e.position=s.position,e.marginBox=function(e,t){return t?s.setMarginBox(e,t):s.getMarginBox(e)},e.contentBox=function(e,t){return t?s.setContentSize(e,t):s.getContentBox(e)},e.coords=function(r,i){e.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox()."),r=t.byId(r);var o=n.getComputedStyle(r),a=s.getMarginBox(r,o),c=s.position(r,i);return a.x=c.x,a.y=c.y,a},e.getProp=i.get,e.setProp=i.set,e.prop=function(e,t,n){return 2==arguments.length?i["string"==typeof t?"get":"set"](e,t):i.set(e,t,n)},e.getStyle=n.get,e.setStyle=n.set,e.getComputedStyle=n.getComputedStyle,e.__toPixelValue=e.toPixelValue=n.toPixelValue,e.style=function(e,t,r){switch(arguments.length){case 1:return n.get(e);case 2:return n["string"==typeof t?"get":"set"](e,t)}return n.set(e,t,r)},e}))},"dojo/dom-attr":function(){define(["exports","./sniff","./_base/lang","./dom","./dom-style","./dom-prop"],(function(e,t,n,r,i,o){var a={innerHTML:1,textContent:1,className:1,htmlFor:t("ie")?1:0,value:1},s={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};function c(e,t){var n=e.getAttributeNode&&e.getAttributeNode(t);return!!n&&n.specified}e.has=function(e,t){var n=t.toLowerCase();return!!a[o.names[n]||t]||c(r.byId(e),s[n]||t)},e.get=function(e,t){e=r.byId(e);var i=t.toLowerCase(),l=o.names[i]||t,u=a[l],d=e[l];if(u&&void 0!==d)return d;if("textContent"==l)return o.get(e,l);if("href"!=l&&("boolean"==typeof d||n.isFunction(d)))return d;var f=s[i]||t;return c(e,f)?e.getAttribute(f):null},e.set=function(t,c,l){if(t=r.byId(t),2==arguments.length){for(var u in c)e.set(t,u,c[u]);return t}var d=c.toLowerCase(),f=o.names[d]||c,h=a[f];return"style"==f&&"string"!=typeof l?(i.set(t,l),t):h||"boolean"==typeof l||n.isFunction(l)?o.set(t,c,l):(t.setAttribute(s[d]||c,l),t)},e.remove=function(e,t){r.byId(e).removeAttribute(s[t.toLowerCase()]||t)},e.getNodeProp=function(e,t){e=r.byId(e);var n=t.toLowerCase(),i=o.names[n]||t;if(i in e&&"href"!=i)return e[i];var a=s[n]||t;return c(e,a)?e.getAttribute(a):null}}))},"dojo/dom-prop":function(){define(["exports","./_base/kernel","./sniff","./_base/lang","./dom","./dom-style","./dom-construct","./_base/connect"],(function(e,t,n,r,i,o,a,s){var c={},l=1,u=t._scopeName+"attrid";function d(e){for(var t,n="",r=e.childNodes,i=0;t=r[i];i++)8!=t.nodeType&&(1==t.nodeType?n+=d(t):n+=t.nodeValue);return n}n.add("dom-textContent",(function(e,t,n){return"textContent"in n})),e.names={class:"className",for:"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"},e.get=function(t,r){t=i.byId(t);var o=r.toLowerCase(),a=e.names[o]||r;return"textContent"!=a||n("dom-textContent")?t[a]:d(t)},e.set=function(t,d,f){if(t=i.byId(t),2==arguments.length&&"string"!=typeof d){for(var h in d)e.set(t,h,d[h]);return t}var p=d.toLowerCase(),g=e.names[p]||d;if("style"==g&&"string"!=typeof f)return o.set(t,f),t;if("innerHTML"==g)return n("ie")&&t.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(a.empty(t),t.appendChild(a.toDom(f,t.ownerDocument))):t[g]=f,t;if("textContent"==g&&!n("dom-textContent"))return a.empty(t),t.appendChild(t.ownerDocument.createTextNode(f)),t;if(r.isFunction(f)){var m=t[u];m||(m=l++,t[u]=m),c[m]||(c[m]={});var v=c[m][g];if(v)s.disconnect(v);else try{delete t[g]}catch(e){}return f?c[m][g]=s.connect(t,g,f):t[g]=null,t}return t[g]=f,t}}))},"dojo/dom-construct":function(){define(["exports","./_base/kernel","./sniff","./_base/window","./dom","./dom-attr"],(function(e,t,n,r,i,o){var a,s={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},c=/<\s*([\w\:]+)/,l={},u=0,d="__"+t._scopeName+"ToDomId";for(var f in s)if(s.hasOwnProperty(f)){var h=s[f];h.pre="option"==f?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}function p(e,t){var n=t.parentNode;n&&n.insertBefore(e,t)}n("ie")<=8&&(a=function(e){e.__dojo_html5_tested="yes";var t=g("div",{innerHTML:"<nav>a</nav>",style:{visibility:"hidden"}},e.body);1!==t.childNodes.length&&"abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video".replace(/\b\w+\b/g,(function(t){e.createElement(t)})),v(t)}
5),e.toDom=function(e,t){var i=(t=t||r.doc)[d];i||(t[d]=i=++u+"",l[i]=t.createElement("div")),n("ie")<=8&&!t.__dojo_html5_tested&&t.body&&a(t);var o,f,h,p,g=(e+="").match(c),m=g?g[1].toLowerCase():"",v=l[i];if(g&&s[m])for(o=s[m],v.innerHTML=o.pre+e+o.post,f=o.length;f;--f)v=v.firstChild;else v.innerHTML=e;if(1==v.childNodes.length)return v.removeChild(v.firstChild);for(p=t.createDocumentFragment();h=v.firstChild;)p.appendChild(h);return p},e.place=function(t,n,r){if(n=i.byId(n),"string"==typeof t&&(t=/^\s*</.test(t)?e.toDom(t,n.ownerDocument):i.byId(t)),"number"==typeof r){var o=n.childNodes;!o.length||o.length<=r?n.appendChild(t):p(t,o[r<0?0:r])}else switch(r){case"before":p(t,n);break;case"after":!function(e,t){var n=t.parentNode;n&&(n.lastChild==t?n.appendChild(e):n.insertBefore(e,t.nextSibling))}(t,n);break;case"replace":n.parentNode.replaceChild(t,n);break;case"only":e.empty(n),n.appendChild(t);break;case"first":if(n.firstChild){p(t,n.firstChild);break}default:n.appendChild(t)}return t};var g=e.create=function(t,n,a,s){var c=r.doc;return a&&(c=(a=i.byId(a)).ownerDocument),"string"==typeof t&&(t=c.createElement(t)),n&&o.set(t,n),a&&e.place(t,a,s),t};function m(e){if("innerHTML"in e)try{return void(e.innerHTML="")}catch(e){}for(var t;t=e.lastChild;)e.removeChild(t)}e.empty=function(e){m(i.byId(e))};var v=e.destroy=function(e){(e=i.byId(e))&&function(e,t){e.firstChild&&m(e),t&&(n("ie")&&t.canHaveChildren&&"removeNode"in e?e.removeNode(!1):t.removeChild(e))}(e,e.parentNode)}}))},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],(function(e,t,n){var r,i="className",o=/\s+/,a=[""];function s(e){if("string"==typeof e||e instanceof String){if(e&&!o.test(e))return a[0]=e,a;var n=e.split(o);return n.length&&!n[0]&&n.shift(),n.length&&!n[n.length-1]&&n.pop(),n}return e?t.filter(e,(function(e){return e})):[]}var c={};return r={contains:function(e,t){return(" "+n.byId(e)[i]+" ").indexOf(" "+t+" ")>=0},add:function(e,t){e=n.byId(e),t=s(t);var r,o=e[i];r=(o=o?" "+o+" ":" ").length;for(var a,c=0,l=t.length;c<l;++c)(a=t[c])&&o.indexOf(" "+a+" ")<0&&(o+=a+" ");r<o.length&&(e[i]=o.substr(1,o.length-2))},remove:function(t,r){var o;if(t=n.byId(t),void 0!==r){r=s(r),o=" "+t[i]+" ";for(var a=0,c=r.length;a<c;++a)o=o.replace(" "+r[a]+" "," ");o=e.trim(o)}else o="";t[i]!=o&&(t[i]=o)},replace:function(e,t,o){e=n.byId(e),c[i]=e[i],r.remove(c,o),r.add(c,t),e[i]!==c[i]&&(e[i]=c[i])},toggle:function(e,t,i){if(e=n.byId(e),void 0===i)for(var o,a=0,c=(t=s(t)).length;a<c;++a)o=t[a],r[r.contains(e,o)?"remove":"add"](e,o);else r[i?"add":"remove"](e,t);return i}}}))},"dojo/_base/NodeList":function(){define(["./kernel","../query","./array","./html","../NodeList-dom"],(function(e,t,n){var r=t.NodeList,i=r.prototype;return i.connect=r._adaptAsForEach((function(){return e.connect.apply(this,arguments)})),i.coords=r._adaptAsMap(e.coords),r.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"],n.forEach(r.events,(function(e){var t="on"+e;i[t]=function(e,n){return this.connect(t,e,n)}})),e.NodeList=r,r}))},"dojo/query":function(){define(["./_base/kernel","./has","./dom","./on","./_base/array","./_base/lang","./selector/_loader","./selector/_loader!default"],(function(e,t,n,r,i,o,a,s){t.add("array-extensible",(function(){return 1==o.delegate([],{length:1}).length&&!t("bug-for-in-skips-shadowed")}));var c=Array.prototype,l=c.slice,u=c.concat,d=i.forEach,f=function(t,n,r){return n=[0].concat(l.call(n,0)),r=r||e.global,function(e){return n[0]=e,t.apply(r,n)}},h=function(e){var n=this instanceof p&&t("array-extensible");"number"==typeof e&&(e=Array(e));var r=e&&"length"in e?e:arguments;if(n||!r.sort){for(var i=n?this:[],a=i.length=r.length,s=0;s<a;s++)i[s]=r[s];if(n)return i;r=i}return o._mixin(r,g),r._NodeListCtor=function(e){return p(e)},r},p=h,g=p.prototype=t("array-extensible")?[]:{};function m(e,t){var r=function(r,i){if("string"==typeof i&&!(i=n.byId(i)))return new t([]);var o="string"==typeof r?e(r,i):r?r.end&&r.on?r:[r]:[];return o.end&&o.on?o:new t(o)};if(r.matches=e.match||function(e,t,n){return r.filter([e],t,n).length>0},r.filter=e.filter||function(e,t,n){return r(t,n).filter((function(t){return i.indexOf(e,t)>-1}))},"function"!=typeof e){var o=e.search;e=function(e,t){return o(t||document,e)}}return r}p._wrap=g._wrap=function(e,t,n){var r=new(n||this._NodeListCtor||p)(e);return t?r._stash(t):r},p._adaptAsMap=function(e,t){return function(){return this.map(f(e,arguments,t))}},p._adaptAsForEach=function(e,t){return function(){return this.forEach(f(e,arguments,t)),this}},p._adaptAsFilter=function(e,t){return function(){return this.filter(f(e,arguments,t))}},p._adaptWithCondition=function(t,n,r){return function(){var i=arguments,o=f(t,i,r);return n.call(r||e.global,i)?this.map(o):(this.forEach(o),this)}},d(["slice","splice"],(function(e){var t=c[e];g[e]=function(){return this._wrap(t.apply(this,arguments),"slice"==e?this:null)}})),d(["indexOf","lastIndexOf","every","some"],(function(t){var n=i[t];g[t]=function(){return n.apply(e,[this].concat(l.call(arguments,0)))}})),o.extend(h,{constructor:p,_NodeListCtor:p,toString:function(){return this.join(",")},_stash:function(e){return this._parent=e,this},on:function(e,t){var n=this.map((function(n){return r(n,e,t)}));return n.remove=function(){for(var e=0;e<n.length;e++)n[e].remove()},n},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(e){var t=l.call(this,0),n=i.map(arguments,(function(e){return l.call(e,0)}));return this._wrap(u.apply(t,n),this)},map:function(e,t){return this._wrap(i.map(this,e,t),this)}
5,forEach:function(e,t){return d(this,e,t),this},filter:function(e){var t=arguments,n=this,r=0;if("string"==typeof e){if(n=v._filterResult(this,t[0]),1==t.length)return n._stash(this);r=1}return this._wrap(i.filter(n,t[r],t[r+1]),this)},instantiate:function(e,t){var n=o.isFunction(e)?e:o.getObject(e);return t=t||{},this.forEach((function(e){new n(t,e)}))},at:function(){var e=new this._NodeListCtor(0);return d(arguments,(function(t){t<0&&(t=this.length+t),this[t]&&e.push(this[t])}),this),e._stash(this)}});var v=m(s,h);return e.query=m(s,(function(e){return h(e)})),v.load=function(e,t,n){a.load(e,t,(function(e){n(m(e,h))}))},e._filterQueryResult=v._filterResult=function(e,t,n){return new h(v.filter(e,t,n))},e.NodeList=v.NodeList=h,v}))},"dojo/selector/acme":function(){define(["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],(function(e,t,n,r,i){var o=r.trim,a=n.forEach,s=function(){return i.doc},c="BackCompat"==s().compatMode,l=">~+",u=!1,d=function(){return!0},f=function(e){l.indexOf(e.slice(-1))>=0?e+=" * ":e+=" ";for(var t,n,r=function(t,n){return o(e.slice(t,n))},i=[],a=-1,s=-1,c=-1,d=-1,f=-1,h=-1,p=-1,g="",m="",v=0,y=e.length,b=null,w=null,x=function(){h>=0&&(b.id=r(h,v).replace(/\\/g,""),h=-1),function(){if(p>=0){var e=p==v?null:r(p,v);b[l.indexOf(e)<0?"tag":"oper"]=e,p=-1}}(),f>=0&&(b.classes.push(r(f+1,v).replace(/\\/g,"")),f=-1)};g=m,m=e.charAt(v),v<y;v++)if("\\"!=g)if(b||(n=v,b={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return u?this.otag:this.tag}},p=v),t)m==t&&(t=null);else if("'"!=m&&'"'!=m)if(a>=0){if("]"==m){w.attr?w.matchFor=r(c||a+1,v):w.attr=r(a+1,v);var _=w.matchFor;_&&('"'!=_.charAt(0)&&"'"!=_.charAt(0)||(w.matchFor=_.slice(1,-1))),w.matchFor&&(w.matchFor=w.matchFor.replace(/\\/g,"")),b.attrs.push(w),w=null,a=c=-1}else if("="==m){var S="|~^$*".indexOf(g)>=0?g:"";w.type=S+m,w.attr=r(a+1,v-S.length),c=v+1}}else s>=0?")"==m&&(d>=0&&(w.value=r(s+1,v)),d=s=-1):"#"==m?(x(),h=v+1):"."==m?(x(),f=v):":"==m?(x(),d=v):"["==m?(x(),a=v,w={}):"("==m?(d>=0&&(w={name:r(d+1,v),value:null},b.pseudos.push(w)),s=v):" "==m&&g!=m&&(x(),d>=0&&b.pseudos.push({name:r(d+1,v)}),b.loops=b.pseudos.length||b.attrs.length||b.classes.length,b.oquery=b.query=r(n,v),b.otag=b.tag=b.oper?null:b.tag||"*",b.tag&&(b.tag=b.tag.toUpperCase()),i.length&&i[i.length-1].oper&&(b.infixOper=i.pop(),b.query=b.infixOper.query+" "+b.query),i.push(b),b=null);else t=m;return i},h=function(e,t){return e?t?function(){return e.apply(window,arguments)&&t.apply(window,arguments)}:e:t},p=function(e,t){var n=t||[];return e&&n.push(e),n},g=function(e){return 1==e.nodeType},m=function(e,t){return e?"class"==t?e.className||"":"for"==t?e.htmlFor||"":"style"==t?e.style.cssText||"":(u?e.getAttribute(t):e.getAttribute(t,2))||"":""},v={"*=":function(e,t){return function(n){return m(n,e).indexOf(t)>=0}},"^=":function(e,t){return function(n){return 0==m(n,e).indexOf(t)}},"$=":function(e,t){return function(n){var r=" "+m(n,e),i=r.lastIndexOf(t);return i>-1&&i==r.length-t.length}},"~=":function(e,t){var n=" "+t+" ";return function(t){return(" "+m(t,e)+" ").indexOf(n)>=0}},"|=":function(e,t){var n=t+"-";return function(r){var i=m(r,e);return i==t||0==i.indexOf(n)}},"=":function(e,t){return function(n){return m(n,e)==t}}},y=s().documentElement,b=!(y.nextElementSibling||"nextElementSibling"in y),w=b?"nextSibling":"nextElementSibling",x=b?"previousSibling":"previousElementSibling",_=b?g:d,S=function(e){for(;e=e[x];)if(_(e))return!1;return!0},C=function(e){for(;e=e[w];)if(_(e))return!1;return!0},E=function(e){var n=e.parentNode,r=0,i=(n=7!=n.nodeType?n:n.nextSibling).children||n.childNodes,o=e._i||e.getAttribute("_i")||-1,a=n._l||(void 0!==n.getAttribute?n.getAttribute("_l"):-1);if(!i)return-1;var s=i.length;if(a==s&&o>=0&&a>=0)return o;t("ie")&&void 0!==n.setAttribute?n.setAttribute("_l",s):n._l=s,o=-1;for(var c=n.firstElementChild||n.firstChild;c;c=c[w])_(c)&&(t("ie")?c.setAttribute("_i",++r):c._i=++r,e===c&&(o=r));return o},O=function(e){return!(E(e)%2)},j=function(e){return E(e)%2},k={checked:function(e,t){return function(e){return!!("checked"in e?e.checked:e.selected)}},disabled:function(e,t){return function(e){return e.disabled}},enabled:function(e,t){return function(e){return!e.disabled}},"first-child":function(){return S},"last-child":function(){return C},"only-child":function(e,t){return function(e){return S(e)&&C(e)}},empty:function(e,t){return function(e){for(var t=e.childNodes,n=e.childNodes.length-1;n>=0;n--){var r=t[n].nodeType;if(1===r||3==r)return!1}return!0}},contains:function(e,t){var n=t.charAt(0);
5return'"'!=n&&"'"!=n||(t=t.slice(1,-1)),function(e){return e.innerHTML.indexOf(t)>=0}},not:function(e,t){var n=f(t)[0],r={el:1};"*"!=n.tag&&(r.tag=1),n.classes.length||(r.classes=1);var i=N(n,r);return function(e){return!i(e)}},"nth-child":function(e,t){var n=parseInt;if("odd"==t)return j;if("even"==t)return O;if(-1!=t.indexOf("n")){var r=t.split("n",2),i=r[0]?"-"==r[0]?-1:n(r[0]):1,o=r[1]?n(r[1]):0,a=0,s=-1;if(i>0?o<0?o=o%i&&i+o%i:o>0&&(o>=i&&(a=o-o%i),o%=i):i<0&&(i*=-1,o>0&&(s=o,o%=i)),i>0)return function(e){var t=E(e);return t>=a&&(s<0||t<=s)&&t%i==o};t=o}var c=n(t);return function(e){return E(e)==c}}},R=t("ie")<9||9==t("ie")&&t("quirks")?function(e){var t=e.toLowerCase();return"class"==t&&(e="className"),function(n){return u?n.getAttribute(e):n[e]||n[t]}}:function(e){return function(t){return t&&t.getAttribute&&t.hasAttribute(e)}},N=function(e,t){if(!e)return d;var n=null;return"el"in(t=t||{})||(n=h(n,g)),"tag"in t||"*"!=e.tag&&(n=h(n,(function(t){return t&&(u?t.tagName:t.tagName.toUpperCase())==e.getTag()}))),"classes"in t||a(e.classes,(function(e,t,r){var i=new RegExp("(?:^|\\s)"+e+"(?:\\s|$)");(n=h(n,(function(e){return i.test(e.className)}))).count=t})),"pseudos"in t||a(e.pseudos,(function(e){var t=e.name;k[t]&&(n=h(n,k[t](t,e.value)))})),"attrs"in t||a(e.attrs,(function(e){var t,r=e.attr;e.type&&v[e.type]?t=v[e.type](r,e.matchFor):r.length&&(t=R(r)),t&&(n=h(n,t))})),"id"in t||e.id&&(n=h(n,(function(t){return!!t&&t.id==e.id}))),n||"default"in t||(n=d),n},T=function(e,t){var r=function(e){var t=[];try{t=Array.prototype.slice.call(e)}catch(i){for(var n=0,r=e.length;n<r;n++)t.push(e[n])}return t};return e=e||d,function(i,o,a){var s,c=0,l=[];
5for(l=r(i.children||i.childNodes),t&&n.forEach(l,(function(e){1===e.nodeType&&(l=l.concat(r(e.getElementsByTagName("*"))))}));s=l[c++];)_(s)&&(!a||Z(s,a))&&e(s,c)&&o.push(s);return o}},A=function(e,t){for(var n=e.parentNode;n&&n!=t;)n=n.parentNode;return!!n},P={},D=function(t){var r=P[t.query];if(r)return r;var i,o,a=t.infixOper,l=a?a.oper:"",u=N(t,{el:1}),f="*"==t.tag,h=s().getElementsByClassName;if(l){var m={el:1};f&&(m.tag=1),u=N(t,m),"+"==l?(o=u,r=function(e,t,n){for(;e=e[w];)if(!b||g(e)){n&&!Z(e,n)||!o(e)||t.push(e);break}return t}):"~"==l?(i=u,r=function(e,t,n){for(var r=e[w];r;){if(_(r)){if(n&&!Z(r,n))break;i(r)&&t.push(r)}r=r[w]}return t}):">"==l&&(r=T(u))}else if(t.id)u=!t.loops&&f?d:N(t,{el:1,id:1}),r=function(r,i){var o=e.byId(t.id,r.ownerDocument||r);if(r.ownerDocument&&!A(r,r.ownerDocument)){var a=11===r.nodeType?r.childNodes:[r];n.some(a,(function(e){var n=T((function(e){return e.id===t.id}),!0)(e,[]);if(n.length)return o=n[0],!1}))}if(o&&u(o))return 9==r.nodeType||A(o,r)?p(o,i):void 0};else if(h&&/\{\s*\[native code\]\s*\}/.test(String(h))&&t.classes.length&&!c){u=N(t,{el:1,classes:1,id:1});var v=t.classes.join(" ");r=function(e,t,n){for(var r,i=p(0,t),o=0,a=e.getElementsByClassName(v);r=a[o++];)u(r,e)&&Z(r,n)&&i.push(r);return i}}else f||t.loops?(u=N(t,{el:1,tag:1,id:1}),r=function(e,n,r){for(var i,o=p(0,n),a=0,s=t.getTag(),c=s?e.getElementsByTagName(s):[];i=c[a++];)u(i,e)&&Z(i,r)&&o.push(i);return o}
5):r=function(e,n,r){for(var i,o=p(0,n),a=0,s=t.getTag(),c=s?e.getElementsByTagName(s):[];i=c[a++];)Z(i,r)&&o.push(i);return o};return P[t.query]=r},I={},M={},L=function(e){var t=f(o(e));if(1==t.length){var n=D(t[0]);return function(e){var t=n(e,[]);return t&&(t.nozip=!0),t}}return function(e){return function(e,t){for(var n,r,i,o,a=p(e),s=t.length,c=0;c<s;c++){o=[],n=t[c],a.length-1>0&&(i={},o.nozip=!0);for(var l=D(n),u=0;r=a[u];u++)l(r,o,i);if(!o.length)break;a=o}return o}(e,t)}},$=t("ie")?"commentStrip":"nozip",F="querySelectorAll",B=!!s()[F],V=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g,z=function(e,t,n,r){return n?(t?t+" ":"")+n+(r?" "+r:""):e},U=/([^[]*)([^\]]*])?/g,W=function(e,t,n){return t.replace(V,z)+(n||"")},q=function(e,n){if(e=e.replace(U,W),B){var r=M[e];if(r&&!n)return r}var i=I[e];if(i)return i;var o=e.charAt(0),a=-1==e.indexOf(" ");if(e.indexOf("#")>=0&&a&&(n=!0),B&&!n&&-1==l.indexOf(o)&&(!t("ie")||-1==e.indexOf(":"))&&!(c&&e.indexOf(".")>=0)&&-1==e.indexOf(":contains")&&-1==e.indexOf(":checked")&&-1==e.indexOf("|=")){var s=l.indexOf(e.charAt(e.length-1))>=0?e+" *":e;return M[e]=function(t){if(9==t.nodeType||a)try{var n=t[F](s);return n[$]=!0,n}catch(e){}return q(e,!0)(t)}}var u=e.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return I[e]=u.length<2?L(e):function(e){for(var t,n=0,r=[];t=u[n++];)r=r.concat(L(t)(e));return r}},H=0,G=t("ie")?function(e){return u?e.getAttribute("_uid")||e.setAttribute("_uid",++H)||H:e.uniqueID}:function(e){return e._uid||(e._uid=++H)},Z=function(e,t){if(!t)return 1;var n=G(e);return t[n]?0:t[n]=1},K="_zipIdx",X=function(e,n){var r=(n=n||s()).ownerDocument||n;u="div"===r.createElement("div").tagName;var i=q(e)(n);return i&&i.nozip?i:function(e){if(e&&e.nozip)return e;if(!e||!e.length)return[];if(e.length<2)return[e[0]];var n,r,i=[];if(H++,t("ie")&&u){var o=H+"";for(n=0;n<e.length;n++)(r=e[n])&&r.getAttribute(K)!=o&&(i.push(r),r.setAttribute(K,o))}else if(t("ie")&&e.commentStrip)try{for(n=0;n<e.length;n++)(r=e[n])&&g(r)&&i.push(r)}catch(e){}else for(n=0;n<e.length;n++)(r=e[n])&&r[K]!=H&&(i.push(r),r[K]=H);return i}(i)};return X.filter=function(t,r,i){for(var o,a=[],s=f(r),c=1!=s.length||/[^\w#\.]/.test(r)?function(t){return-1!=n.indexOf(X(r,e.byId(i)),t)}:N(s[0]),l=0;o=t[l];l++)c(o)&&a.push(o);return a},X}))},"dojo/NodeList-dom":function(){define(["./_base/kernel","./query","./_base/array","./_base/lang","./dom-class","./dom-construct","./dom-geometry","./dom-attr","./dom-style"],(function(e,t,n,r,i,o,a,s,c){var l=function(e){return 1==e.length&&"string"==typeof e[0]},u=function(e){var t=e.parentNode;t&&t.removeChild(e)},d=t.NodeList,f=d._adaptWithCondition,h=d._adaptAsForEach,p=d._adaptAsMap;function g(e){return function(t,n,r){return 2==arguments.length?e["string"==typeof n?"get":"set"](t,n):e.set(t,n,r)}}return r.extend(d,{_normalize:function(t,n){var i=!0===t.parse;if("string"==typeof t.template){var a=t.templateFunc||e.string&&e.string.substitute;t=a?a(t.template,t):t}var s=typeof t;return"string"==s||"number"==s?t=11==(t=o.toDom(t,n&&n.ownerDocument)).nodeType?r._toArray(t.childNodes):[t]:r.isArrayLike(t)?r.isArray(t)||(t=r._toArray(t)):t=[t],i&&(t._runParse=!0),t},_cloneNode:function(e){return e.cloneNode(!0)},_place:function(t,n,r,i){if(1==n.nodeType||"only"!=r)for(var a,s=n,c=t.length,l=c-1;l>=0;l--){var u=i?this._cloneNode(t[l]):t[l];if(t._runParse&&e.parser&&e.parser.parse)for(a||(a=s.ownerDocument.createElement("div")),a.appendChild(u),e.parser.parse(a),u=a.firstChild;a.firstChild;)a.removeChild(a.firstChild);l==c-1?o.place(u,s,r):s.parentNode.insertBefore(u,s),s=u}},position:p(a.position),attr:f(g(s),l),style:f(g(c),l),addClass:h(i.add),removeClass:h(i.remove),toggleClass:h(i.toggle),replaceClass:h(i.replace),empty:h(o.empty),removeAttr:h(s.remove),marginBox:p(a.getMarginBox),place:function(e,n){var r=t(e)[0];return this.forEach((function(e){o.place(e,r,n)}))},orphan:function(e){return(e?t._filterResult(this,e):this).forEach(u)},adopt:function(e,n){return t(e).place(this[0],n)._stash(this)},query:function(e){if(!e)return this;var n=new d;return this.map((function(r){t(e,r).forEach((function(e){void 0!==e&&n.push(e)}))})),n._stash(this)},filter:function(e){var r=arguments,i=this,o=0;if("string"==typeof e){if(i=t._filterResult(this,r[0]),1==r.length)return i._stash(this);o=1}return this._wrap(n.filter(i,r[o],r[o+1]),this)},addContent:function(e,t){e=this._normalize(e,this[0]);for(var n,r=0;n=this[r];r++)e.length?this._place(e,n,t,r>0):o.empty(n);return this}}),d}))},"dojo/_base/fx":function(){define(["./kernel","./config","./lang","../Evented","./Color","../aspect","../sniff","../dom","../dom-style"],(function(e,t,n,r,i,o,a,s,c){var l=n.mixin,u={},d=u._Line=function(e,t){this.start=e,this.end=t};d.prototype.getValue=function(e){return(this.end-this.start)*e+this.start};var f=u.Animation=function(e){l(this,e),n.isArray(this.curve)&&(this.curve=new d(this.curve[0],this.curve[1]))};f.prototype=new r,n.extend(f,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var e=this._percent,t=this.easing;return t?t(e):e},_fire:function(e,n){var r=n||[];if(this[e])if(t.debugAtAllCosts)this[e].apply(this,r);else try{this[e].apply(this,r)}catch(t){console.error("exception in animation handler for:",e),console.error(t)}return this},play:function(e,t){var r=this;if(r._delayTimer&&r._clearTimer(),t)r._stopTimer(),r._active=r._paused=!1,r._percent=0;else if(r._active&&!r._paused)return r;r._fire("beforeBegin",[r.node]);var i=e||r.delay,o=n.hitch(r,"_play",t);return i>0?(r._delayTimer=setTimeout(o,i),r):(o(),r)},_play:function(e){var t=this;t._delayTimer&&t._clearTimer(),t._startTime=(new Date).valueOf(),t._paused&&(t._startTime-=t.duration*t._percent),t._active=!0,t._paused=!1;var n=t.curve.getValue(t._getStep());return t._percent||(t._startRepeatCount||(t._startRepeatCount=t.repeat),t._fire("onBegin",[n])),t._fire("onPlay",[n]),t._cycle(),t},pause:function(){var e=this;return e._delayTimer&&e._clearTimer(),e._stopTimer(),e._active?(e._paused=!0,e._fire("onPause",[e.curve.getValue(e._getStep())]),e):e},gotoPercent:function(e,t){var n=this;return n._stopTimer(),n._active=n._paused=!0,n._percent=e,t&&n.play(),n},stop:function(e){var t=this;return t._delayTimer&&t._clearTimer(),t._timer?(t._stopTimer(),e&&(t._percent=1),t._fire("onStop",[t.curve.getValue(t._getStep())]),t._active=t._paused=!1,t):t},destroy:function(){this.stop()},status:function(){return this._active?this._paused?"paused":"playing":"stopped"},_cycle:function(){var e=this;if(e._active){var t=(new Date).valueOf(),n=0===e.duration?1:(t-e._startTime)/e.duration;n>=1&&(n=1),e._percent=n,e.easing&&(n=e.easing(n)),e._fire("onAnimate",[e.curve.getValue(n)]),e._percent<1?e._startTimer():(e._active=!1,e.repeat>0?(e.repeat--,e.play(null,!0)):-1==e.repeat?e.play(null,!0):e._startRepeatCount&&(e.repeat=e._startRepeatCount,e._startRepeatCount=0),e._percent=0,e._fire("onEnd",[e.node]),!e.repeat&&e._stopTimer())}return e},_clearTimer:function(){clearTimeout(this._delayTimer),delete this._delayTimer}});var h=0,p=null,g={run:function(){}};n.extend(f,{_startTimer:function(){this._timer||(this._timer=o.after(g,"run",n.hitch(this,"_cycle"),!0),h++),p||(p=setInterval(n.hitch(g,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,h--),h<=0&&(clearInterval(p),p=null,h=0)}});var m=a("ie")?function(e){var t=e.style;t.width.length||"auto"!=c.get(e,"width")||(t.width="auto")}:function(){};u._fade=function(e){e.node=s.byId(e.node);var t=l({properties:{}},e),r=t.properties.opacity={};r.start="start"in t?t.start:function(){return+c.get(t.node,"opacity")||0},r.end=t.end;var i=u.animateProperty(t);return o.after(i,"beforeBegin",n.partial(m,t.node),!0),i},u.fadeIn=function(e){return u._fade(l({end:1},e))},u.fadeOut=function(e){return u._fade(l({end:0},e))},u._defaultEasing=function(e){return.5+Math.sin((e+1.5)*Math.PI)/2};var v=function(e){for(var t in this._properties=e,e){var n=e[t];n.start instanceof i&&(n.tempColor=new i)}};return v.prototype.getValue=function(e){var t={};for(var r in this._properties){var o=this._properties[r],a=o.start;a instanceof i?t[r]=i.blendColors(a,o.end,e,o.tempColor).toCss():n.isArray(a)||(t[r]=(o.end-a)*e+a+("opacity"!=r?o.units||"px":0))}return t}
5,u.animateProperty=function(t){var r=t.node=s.byId(t.node);t.easing||(t.easing=e._defaultEasing);var a=new f(t);return o.after(a,"beforeBegin",n.hitch(a,(function(){var e={};for(var t in this.properties){"width"!=t&&"height"!=t||(this.node.display="block");var o=this.properties[t];n.isFunction(o)&&(o=o(r)),o=e[t]=l({},n.isObject(o)?o:{end:o}),n.isFunction(o.start)&&(o.start=o.start(r)),n.isFunction(o.end)&&(o.end=o.end(r));var a=t.toLowerCase().indexOf("color")>=0,s=function(e,t){var n={height:e.offsetHeight,width:e.offsetWidth}[t];return void 0!==n?n:(n=c.get(e,t),"opacity"==t?+n:a?n:parseFloat(n))};"end"in o?"start"in o||(o.start=s(r,t)):o.end=s(r,t),a?(o.start=new i(o.start),o.end=new i(o.end)):o.start="opacity"==t?+o.start:parseFloat(o.start)}this.curve=new v(e)})),!0),o.after(a,"onAnimate",n.hitch(c,"set",a.node),!0),a},u.anim=function(e,t,n,r,i,o){return u.animateProperty({node:e,duration:n||f.prototype.duration,properties:t,easing:r,onEnd:i}).play(o||0)},l(e,u),e._Animation=f,u}))}}}),function(){var e=this.require;e({cache:{}}),!e.async&&e(["dojo"]),e.boot&&e.apply(null,e.boot)}()),require(["dojo/sniff","dojo/_base/lang","dojo/ready","dojo/_base/connect","dojo/_base/array","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/window","dojo/dom","dojo/dom-construct","dojo/json","dojo/on","dojo/_base/event","dojo/_base/declare","dojo/aspect","dojo/_base/config","dojo/dom-attr","dojo/has","dojo/_base/kernel","dojo/when","dojo/topic","dojo/query","dojo/keys","dojo/mouse","dojo/domReady","dojo/Evented","dojo/_base/fx","dojo/text","dojo/_base/json","dojo","dojo/Deferred"],((e,t,n,r,i,o,a,s,c,l,u,d,f,h,p,g,m,v,y,b,w,x,_,S,C,E,O,j,k,R,N,T)=>(()=>{var A,P,D={9456:(e,t,n)=>{n.r(t);var r=n(2736),i=n(4036);const o=n(1015);function a(e){console.warn("DEPRECATED: "+e+" -- will be removed in version: 10.0")}Object.defineProperty(window.mx,"baseUrl",{get:()=>(a('mx.baseUrl. Use mx.remoteUrl + "xas" instead.'),window.mx.remoteUrl+"xas/")}),window.mx.session.getUserAttribute=function(e){return a("mx.session.getUserAttribute"),this.getUserObject().get(e)},window.mx.session.getUserClass=function(){return a("mx.session.getUserClass"),this.getUserObject().getEntity()},window.mx.server.get=function(e){a("mx.server.get, use fetch() instead."),(0,i.get)(window.mx.appUrl+e.url,"xml"!==e.handleAs?e.handleAs:"text").then((t=>e.load("xml"!==e.handleAs?t:o.parseXml(t))),e.error)},r.V.prototype.getEnumKVPairs=function(e){return a("MxMetaObject.getEnumKVPairs, use MxMetaObject.getEnumMap instead."),this.isEnum(e)?Object.fromEntries(this.getEnumMap(e).map((e=>[e.key,e.caption]))):null}},5875:()=>{const e=["trace","debug","info","warn","error","critical","log"];function t(t){const n={};return e.forEach((e=>{n[e]=function(){var n;n=`${t}, use console.${e} instead`,console.warn("DEPRECATED: "+n+" -- will be removed in version: 11.0"),console[e](...arguments)}})),n}window.logger=t("logger"),window.mx.logger=t("mx.logger")},9440:(e,t,n)=>{n.r(t);var r=n(4296),i=n(3380),o=n(3302),a=n.n(o),s=n(9726),c=n(8157),l=n(2959),u=n(2736),d=n(3482),f=n(1525),h=n(7478),p=n(8934);window.mendix={lang:r,lib:{MxObject:d.MxObject,MxMetaObject:u.V,MxContext:l.MxContext,ObjectValidation:f.L,MxValidator:f.L,ServerError:h.n,ConnectionError:s.h,DescribedServerError:c.j,ValidationError:p.ValidationError}},r.registerInDojo("mendix/lang",r),r.registerInDojo("mendix/validator",i),r.registerInDojo("mendix/lib/MxContext",l.MxContext),r.registerInDojo("mendix/lib/MxMetaObject",u.V),r.registerInDojo("mendix/lib/ObjectValidation",f.L),r.registerInDojo("big/big",a()),r.registerInDojo("big.js",a())},394:(e,t,n)=>{n.r(t);var r=n(3482);const i=[];window.mx.addOnLoad((()=>{const e=window.mx.ui.getContentForm(),t=e.onPersistViewState.bind(e);e.onPersistViewState=function(){t(...arguments);const n=i.length>=5?i.shift():[],o=e.getContext();i.push(Object.entries(o.getWidgetObjectMap()).filter((e=>{let[t,n]=e;return t.startsWith("$")&&n instanceof r.MxObject})).map((e=>{let[,t]=e;return window.mx.data.subscribe({guid:t.getGuid(),tag:"previous page in history"})}))),n.forEach((e=>{window.mx.data.unsubscribe(e)}))}}))},4296:(e,t,n)=>{n.r(t),n.d(t,{arrayFromObject:()=>v,capitalize:()=>E,clone:()=>w,collect:()=>d,curry:()=>s,curryN:()=>c,find:()=>f,findIndex:()=>p,findLast:()=>h,firstKey:()=>S,flatten:()=>g,forEach:()=>a,getFileError:()=>j,getUniqueId:()=>O,groupBy:()=>b,mapObject:()=>o,objectFromArray:()=>y,objectIsEmpty:()=>_,registerInDojo:()=>k,sequence:()=>u,toArray:()=>m,unique:()=>C,waitUntilPredicateHolds:()=>x});var r=n(8157),i=0;function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.keys(e).reduce((function(r,i){return r[i]=t.call(n,e[i],i),r}),{})}function a(e,t,n){if(null!=e)if(e.length===+e.length)for(var r=0;r<e.length;r++)t.call(n,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function s(e){return l(e.length,[],e)}function c(e,t){return l(e,[],t)}function l(e,t,n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];const a=t.concat(i);return a.length>=e?n.apply(this,a.slice(0,e)):l(e,a,n)}}function u(e,t,n){if(t&&"object"==typeof t&&(n=t,t=null),!(e instanceof Array))throw new Error("mendix/lang.sequence: sequence is not an array");var r,i,o,a=0,s=function(){r=!0,i&&o()};(o=function(){for(;a<e.length;){r=!1,i=!1;var o=e[a++];if("function"==typeof o)o.call(n,s);else{if(!n||"function"!=typeof n[o])throw new Error("mendix/lang.sequence: #"+a+" is not a function");n[o](s)}if(!r)return void(i=!0)}t&&t.call(n)})()}function d(e,t,n){if(t&&"object"==typeof t&&(n=t,t=null),!(e instanceof Array))throw new Error("mendix/lang.collect: collection is not an array");for(var r=0,i=e.length+1,o=function(){0==--i&&t&&t.call(n)};r<e.length;){var a=e[r++];if("function"==typeof a)a.call(n,o);else{if(!n||"function"!=typeof n[a])throw new Error("mendix/lang.collect: #"+r+" is not a function");n[a](o)}}o()}function f(e,t,n){for(var r=0;r<e.length;r++)if(t.call(n,e[r],r,e))return e[r]}function h(e,t,n){for(var r=e.length-1;r>=0;r--)if(t.call(n,e[r],r,e))return e[r]}function p(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return n;return-1}function g(e){const t=[];return e.forEach((e=>{t.push.apply(t,e)})),t}function m(e){return[].slice.call(e)}function v(e){return Object.keys(e).map((function(t){return[t,e[t]]}))}function y(e){return e.reduce((function(e,t){return e[t[0]]=t[1],e}),{})}function b(e,t){return e.map((e=>[t(e),e])).reduce(((e,t)=>
5{let[n,r]=t;return e[n]||(e[n]=[]),e[n].push(r),e}),{})}function w(e){return JSON.parse(JSON.stringify(e))}function x(e,t,n){if(0===n.length||e())t();else{var r=n.shift();setTimeout((function(){x(e,t,n)}),r)}}function _(e){for(var t in e)return!1;return!0}function S(e){for(var t in e)return t;return null}function C(e){return Array.from(new Set(e))}function E(e){return e.length>0?e[0].toUpperCase()+e.slice(1):""}function O(){return+new Date+"-"+i++}function j(e){var t,n,i=null;return(t=e.getElementsByTagName("textarea")[0])&&(n=JSON.parse(t.value)).type&&"exception"===n.type&&((i=new r.j(n.description))._type="exception"),i}function k(e,t){window.dojoDynamicRequire.cache[e]=function(){window.define([],(function(){return t}))}}},2959:(e,t,n)=>{n.r(t),n.d(t,{MxContext:()=>c,createContext:()=>l});var r=n(4037),i=n(7606),o=n(3482);const a=i.LogManager.get().getLogger();let s=0;class c{constructor(e){this.id=this.ident=++s,this.trackId="",this.trackEntity="",this.trackObject=null,this.localParams={},this.constraintby=[],this._entityToGuid={},this._mxidToObject={},e&&(e.mxcontext&&this.dupFrom(e.mxcontext),e.classname&&e.mendixguid?this.setContext(e.classname,e.mendixguid):e.entity&&e.guid&&this.setContext(e.entity,e.guid))}hasTrackEntity(){return""!==this.trackEntity}hasTrackId(){return!!this.trackId}hasTrackObject(){return!!this.trackObject}getTrackEntity(){return this.trackEntity}getTrackId(){return this.trackId}getTrackObject(){return this.trackObject}setTrackObject(e){e&&this.setContext(e.getEntity(),e.getGuid()),this.trackObject=e}getObject(){return this.trackObject}setConstraints(e){null!=e&&""!==e&&0!==e.length&&(this.constraintby="string"==typeof e?e.split(","):e)}getConstraints(){for(var e=[],t=0;t<this.constraintby.length;t++)e.push(this.constraintby[t]);return e}hasBacktrack(){return 0!==this.constraintby.length}getEntities(){return Object.keys(this._entityToGuid).filter((e=>void 0!==e&&""!==this._entityToGuid[e]))}setContext(e,t){if(1===arguments.length&&arguments[0]instanceof o.MxObject){var n=arguments[0];e=n.getEntity(),t=n.getGuid()}this.trackEntity=null==e?"":e,this.trackId=null==t?"":t,this.trackObject=null,this._entityToGuid[this.trackEntity]=this.trackId}unsetContext(e){if("string"!=typeof e)throw new Error("mendix/lib/MxContext.unsetContext: parameter entity is not of type String");delete this._entityToGuid[e]}getContext(e){var t;if("string"!=typeof e)throw new Error("mendix/lib/MxContext.getContext: parameter entity is not of type String");if(e in this._entityToGuid)return this._entityToGuid[e];var n=(0,r.getEntityMeta)(e),i=null;return(null!==(t=null==n?void 0:n.specializations)&&void 0!==t?t:[]).some((e=>e in this._entityToGuid&&(i=this._entityToGuid[e],!0))),i}hasContext(e){if("string"!=typeof e)throw new Error("mendix/lib/MxContext.hasContext: parameter entity is not of type String");return null!=this.getContext(e)}reset(){this._entityToGuid={},this._mxidToObject={},this.trackId=null,this.trackEntity="",this.trackObject=null}dupFrom(e){this.reset(),this.mixin(e)}mixin(e){if(e)e.getEntities().forEach((t=>this.setContext(t,e.getContext(t)))),e.getWidgetIds().forEach((t=>this.setWidgetObject(t,e.getWidgetObject(t)))),this.setParams(e.getParams()),this.setConstraints(e.getConstraints()),this.setContext(e.getTrackEntity(),e.getTrackId()),this.setTrackObject(e.getTrackObject());else{const e=this.getTrackEntity();e&&this.unsetContext(e),this.setContext(null,null)}}hasParam(e){return e in this.localParams}getParam(e){return this.hasParam(e)?this.localParams[e]:null}getParams(){return this.localParams}setParam(e,t){if(null==e)throw new Error("mendix/lib/MxContext["+this.ident+"].setParam key is null");this.localParams[e]=t}setParams(e){if("object"!=typeof e)throw new Error("mendix/lib/MxContext["+this.ident+"].setParams requires an Object.");for(var t in e)this.localParams[t]=e[t]}unsetParam(e){delete this.localParams[e]}resetParams(){this.localParams={}}isEmpty(){for(var e in this._entityToGuid)return!0;return!1}getGuids(){for(var e=this.getEntities(),t=this.getTrackId(),n=t?[t]:[],i=0,o=e.length;i<o;i++){var a=e[i];if(a!==r.SystemAttribute.Owner&&a!==r.SystemAttribute.ChangedBy){var s=this.getContext(a);s!==t&&n.push(s)}}return n}getWidgetIds(){return Object.keys(this._mxidToObject)}getWidgetObject(e){return this._mxidToObject[e]}setWidgetObject(e,t){(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.setTrackObject(t),this._mxidToObject[e]=t}getWidgetObjectMap(){return{...this._mxidToObject}}freeze(){this.setTrackObject=this.setConstraints=this.setContext=this.unsetContext=this.reset=this.dupFrom=this.setParam=this.setParams=this.unsetParam=this.setWidgetObject=this.resetParams=function(){return a.error("mendix/lib/MxContext["+this.ident+"].freeze: context is readonly"),!1}}}async function l(e,t){const n=new c,r=Object.values(e).filter((e=>e)),i=r.length?await new Promise(((e,t)=>window.mx.data.get({guids:r,callback:e,error:t}))):[],o=1===Object.keys(e).length;return Object.entries(e).forEach((e=>{let[t,r]=e;
5n.setWidgetObject(t,i.find((e=>e.getGuid()===r)),o)})),t&&n.setParams(t),n}},3482:(e,t,n)=>{n.r(t),n.d(t,{MxObject:()=>g,MxObjectSnapshot:()=>y});var r=n(6218),i=n(2708),o=n(4037),a=n(3282),s=n(3380),c=n(234),l=n(7613),u=n(4296),d=n(1881),f=n(2351);const h=Symbol("snapshot"),p=Symbol("publishLock");class g{constructor(e){var t,n;if(this._guid="0",this._unavailable=!1,this.metaData=null,this.jsonData=null,this.id="mendix.lib.MxObject",this.publishQueue=[],this[p]=0,!(e.meta&&e.json&&e.json.objectType))throw new c.AssertionError(`new MxObject(): cannot create Mendix object. Check entity access for entity ${e.json.objectType}`);this.metaData=e.meta,this._isPartial=null!==(t=e.isPartial)&&void 0!==t&&t,this._setJsonData(e.json),this.id+="("+this.jsonData.objectType+":"+this._guid+")",this._isPartial&&(this._partialTreeId=null!==(n=e.partialTreeId)&&void 0!==n?n:(0,l.newId)("partial"))}resetFromJSON(e){this._setJsonData(e)}markAsUnavailable(){this._setJsonData({guid:this._guid,attributes:{}}),this._unavailable=!0}_setJsonData(e){for(var t in this.jsonData=e,this._guid=e.guid,e.attributes)this._setAttributeValue(t,this._getAttributeValue(t))}getGuid(){return this._guid}hasChanges(){return!(0,u.objectIsEmpty)(window.mx.data.getChanges(this._guid))}snapshot(){return this[h]||(this[h]=new y(this))}isUnavailable(){return this._unavailable}isPartial(){return this._isPartial}set(e,t){this._setContent(e,t)}set2(e,t){this._setContent(e,(0,r.K8)(t))}isReadonlyAttr(e){if(this.has(e))return!!this.jsonData.attributes[e].readonly;{const t=this.metaData.attributes[e];return void 0===t||t.isAlwaysReadOnly}}fetch(e,t,n){let r;r=e?e instanceof Array?e.slice():e.split("/"):[],this.isA(r[0])&&r.shift();let i=this;const o=()=>{if(0===r.length)t(i);else if(1===r.length)t(i.get(r[0]));else{const e=r.shift(),n=r.shift();i._fetchReference(e,n,(e=>{void 0===e?t(null):Array.isArray(e)?0===r.length?t(e):a(new c.AssertionError(this.id+".fetch : "+i+" reference set should be last reference in path")):(i=e,o())}),a)}};function a(e){n?n(e):(0,d.handleError)(e)}o()}_fetchReference(e,t,n,r){const i=this.getReferences(e);0!==i.length?window.mx.data.get({guids:i,callback:r=>{if(this.isObjectReferenceSet(e))0===r.length||r[0].isA(t)?n(r):n(void 0);else{const e=r[0];e&&e.isA(t)?n(e):n(void 0)}},error:r}):n(void 0)}get(e){if("string"!=typeof e)throw new c.AssertionError("parameter attr "+e+" is not of type String");return this.has(e)?this._convertToClientValue(e,this.getRawValue(e)):null}get2(e){if("string"!=typeof e)throw new c.AssertionError("parameter attr "+e+" is not of type String");return(0,r.vu)(this.has(e)?this._convertToClientValue(e,this.getRawValue(e)):null,this.getAttributeType(e))}getOriginalValue(e){if("string"!=typeof e)throw new c.AssertionError("parameter attr "+e+" is not of type String");return this.has(e)?this._convertToClientValue(e,this._getRawOriginalValue(e)):null}has(e){if("string"!=typeof e)throw new c.AssertionError("attribute parameter is not a string");return(0,a.hasKey)(this.jsonData.attributes,e)}getReferences(e){if("string"!=typeof e)throw new c.AssertionError("parameter attr "+e+" is not of type String.");if(!this.has(e))return[];if(!this.isReference(e))throw new c.AssertionError("attribute "+e+" is not an ObjectReference(Set).");const t=this.getRawValue(e);return this.isObjectReference(e)?null==t?[]:[t]:null==t?[]:t.slice()}getOriginalReferences(e){if("string"!=typeof e)throw new c.AssertionError("parameter attr "+e+" is not of type String.");if(!this.has(e))return[];if(!this.isReference(e))throw new c.AssertionError("attribute "+e+" is not an ObjectReference(Set).");const t=this._getRawOriginalValue(e);return this.isObjectReference(e)?null==t?[]:[t]:null==t?[]:t.slice()}getReference(e){return this.get(e)}isEnum(e){var t;return"Enum"===(null===(t=this.metaData.attributes[e])||void 0===t?void 0:t.type)}isNumeric(e){var t;return(0,a.isNumericType)(null===(t=this.metaData.attributes[e])||void 0===t?void 0:t.type)}isPassword(e){var t;return"HashString"===(null===(t=this.metaData.attributes[e])||void 0===t?void 0:t.type)}isDate(e){var t;return"DateTime"===(null===(t=this.metaData.attributes[e])||void 0===t?void 0:t.type)}isLocalizedDate(e){var t;return Boolean(null===(t=this.metaData.attributes[e])||void 0===t?void 0:t.isDateLocalized)}isBoolean(e){var t;return"Boolean"===(null===(t=this.metaData.attributes[e])||void 0===t?void 0:t.type)}isReference(e){var t;return(0,a.isReferenceType)(null===(t=this.metaData.attributes[e])||void 0===t?void 0:t.type)}isObjectReference(e){var t;return"ObjectReference"===(null===(t=this.metaData.attributes[e])||void 0===t?void 0:t.type)}isObjectReferenceSet(e){var t;return"ObjectReferenceSet"===(null===(t=this.metaData.attributes[e])||void 0===t?void 0:t.type)}hasChildren(e){if("string"!=typeof e)throw new c.AssertionError("parameter attr ("+e+") is not of type Str
5ing.");return!this._attributeChanged(e)&&this._hasChildren(e)}getChildren(e){if("string"!=typeof e)throw new c.AssertionError("parameter attr ("+e+") is not of type String.");if(!this.has(e))return[];if(!this.isReference(e))throw new c.AssertionError("attribute "+e+" is not an ObjectReference(Set).");return this._attributeChanged(e)?[]:this._hasChildren(e)?this._getChildren(e):[]}getChild(e){if("string"!=typeof e)throw new c.AssertionError("parameter attr("+e+") is not of type String.");if(!this.has(e))return;if(!this.isObjectReference(e))throw new c.AssertionError("attribute "+e+" is not an ObjectReference.");const t=this.getChildren(e);return 0===t.length?null:t[0]}removeReferences(e,t){if("string"!=typeof e)throw new c.AssertionError("parameter attr is not of type String.");if(!this.has(e))return!1;if(!this.isReference(e))throw new c.AssertionError("attempt to remove Reference from non-Reference attribute : "+e);if(Array.isArray(t)||(t=[t]),this._attributeChanged(e)||!this._hasChildren(e))this.isObjectReference(e)?this._setContent(e,null):this._setContent(e,v(this.getReferences(e),t));else{if(!this.isObjectReference(e)){for(var n=0;n<t.length;n++)delete this.jsonData.attributes[e].value[t[n]];var r=v(this.getReferences(e),t);return this._makeChange(e,r)}this._setContent(e,null)}return!0}addReference(e,t){if("string"!=typeof e)throw new c.AssertionError("parameter attr is not of type String.");if(!t)throw new c.AssertionError("parameter guid is not set.");if(!this.has(e))return!1;if(!this.isReference(e))throw new c.AssertionError("attempt to add Reference to non-Reference attribute : "+e);if(this.isObjectReference(e))this._setContent(e,t);else{var n=this.getReferences(e);n.join(";").match(t)||(n.push(t),this._setContent(e,n))}return!0}addReferences(e,t){if("string"!=typeof e)throw new c.AssertionError("parameter attr is not of type String.");if(!Array.isArray(t))throw new c.AssertionError("parameter guids is not an Array.");if(!this.has(e))return!1;if(!this.isObjectReferenceSet(e))throw new c.AssertionError("attempt to add References to non-ReferenceSet attribute : "+e);const n=this.getReferences(e),r=t.filter((e=>!n.includes(e)));return r.length>0&&this._setContent(e,n.concat(r)),!0}getReferenceAttributes(){return Object.values(this.metaData.attributes).filter((e=>(0,a.isReferenceType)(e.type)&&this.has(e.name))).map((e=>e.name))}getAttributes(){return Object.values(this.metaData.attributes).filter((e=>this.has(e.name))).map((e=>e.name))}getPrimitives(){return Object.values(this.metaData.attributes).filter((e=>!(0,a.isReferenceType)(e.type)&&this.has(e.name))).map((e=>e.name))}getAttributeType(e){return!!this.has(e)&&this.metaData.attributes[e].type}getSelectorEntity(e){var t,n;return this.has(e)?null!==(t=null===(n=this.metaData.attributes[e])||void 0===n?void 0:n.referenceEntity)&&void 0!==t&&t:null}getEntity(){return this.metaData.name}isPersistable(){return this.metaData.isPersistable}isRemoteFileEntity(){return this.metaData.isRemoteFileEntity()}isNew(){return window.mx.data.isNew(this._guid)}isA(e){return(0,o.isEntityA)(this.metaData.name,e)}hasSuperEntities(){return this.metaData.generalizations.length>0}getSuperEntities(){return this.metaData.generalizations}hasSubEntities(){return this.metaData.specializations.length>0}getSubEntities(){return this.metaData.specializations}inheritsFrom(e){return this.metaData.generalizations.includes(e)}toJSON(){return this.jsonData}toString(){return this._partialTreeId?`${this.getGuid()}_${this._partialTreeId}`:this.getGuid()}getRawValue(e){const t=window.mx.data.getChanges(this._guid);return Object.prototype.hasOwnProperty.call(t,e)?t[e].value:this._getRawOriginalValue(e)}_getRawOriginalValue(e){return this._hasChildren(e)?this._getChildValue(e):this._getAttributeValue(e)}_attributeChanged(e){const t=window.mx.data.getChanges(this._guid);return Object.prototype.hasOwnProperty.call(t,e)}_getChildren(e){return(this.isObjectReference(e)?[this._getAttributeValue(e)]:Object.values(this._getAttributeValue(e))).map((e=>g.fromJson(e,this._isPartial,this._partialTreeId)))}_getChildValue(e){const t=this._getChildren(e).map((e=>e.getGuid()));return this.isObjectReference(e)?0===t.length?null:t[0]:t}_convertToRuntimeValue(e,t){const n=this.getAttributeType(e),o=(0,r.cT)(t,n),a=(0,r.G0)(o,"String"===n&&""===t);if(this.isNumeric(e)&&(0,s.validate)(a,n)!==s.validation.OK)throw new Error(`Cannot set invalid value '${t}' to MxObject attribute '${e}'`);return this.isDate(e)&&!this.isLocalizedDate(e)&&"number"==typeof a?(0,i.delocalizeEpoch)(a):this.isPassword(e)?t.replace(/[\s\t]+$/,"").replace(/^[\s\t]+/,""):a}_convertToClientValue(e,t){var n;if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isDate : parameter attr is not of type Str
5ing.");const o=(0,r.OA)(t,null===(n=this.metaData.attributes[e])||void 0===n?void 0:n.type);return this.isDate(e)&&""!==o?this.isLocalizedDate(e)?o:(0,i.localizeEpoch)(o):o}_setContent(e,t){if("string"!=typeof e)throw new c.AssertionError("parameter attr ("+e+") is not of type String.");if(!(0,a.hasKey)(this.metaData.attributes,e))return;const n=this._convertToRuntimeValue(e,t),r=this.getRawValue(e);if(n!==r){var i;const t=this.lockPublish();this._makeChange(e,n),null!==(i=this.metaData.attributes[e])&&void 0!==i&&i.isBidiReference&&(m(this.isObjectReference(e)?[r]:v(r,n)).filter((t=>!t.isReadonlyAttr(e)&&t.getReferences(e).includes(this._guid))).forEach((t=>t.removeReferences(e,[this._guid]))),m(this.isObjectReference(e)?[n]:v(n,r)).filter((t=>!t.isReadonlyAttr(e)&&!t.getReferences(e).includes(this._guid))).forEach((t=>t.addReference(e,this._guid)))),t().catch(d.handleError)}}_hasChildren(e){if(!this.isReference(e))return!1;const t=this._getAttributeValue(e);return t&&"object"==typeof t&&null==t.length}_getAttributeValue(e){var t=this.jsonData.attributes[e];return void 0===t&&(t=null),t&&"object"==typeof t&&"value"in t?t.value:t}_setAttributeValue(e,t){var n=this.jsonData.attributes[e];void 0===t&&(t=null),n&&"object"==typeof n&&"value"in n?n.value=t:this.jsonData.attributes[e]=t}_makeChange(e,t){if(this.isUnavailable())throw new c.AssertionError(`Cannot modify attribute ${e} of an unavailable object.`);window.mx.data.makeChange(this._guid,e,t),this.publish({guid:this._guid,attr:e}).catch(d.handleError)}lockPublish(){return this[p]++,async()=>{this[p]--,await this.processPublishQueue()}}async publish(e){this.publishQueue.push(e),await this.processPublishQueue()}async processPublishQueue(){if(0!==this[p])return;const e=this.publishQueue.splice(0);await(0,f.publish)(...e)}static fromJson(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return new g({json:e,meta:(0,o.getEntityMeta)(e.objectType),isPartial:t,partialTreeId:n})}}function m(e){return e.map((e=>window.mx.data.getCachedObject(e))).filter((e=>null!=e))}function v(e,t){return e.filter((e=>!t.includes(e)))}class y extends g{constructor(e){super({meta:e.metaData,json:{guid:e.getGuid(),objectType:e.getEntity()}}),this._mxObject=e,this.isSnapshot=!0}resetFromJSON(e){super.resetFromJSON(e),this._mxObject.resetFromJSON(e)}markAsUnavailable(){super.markAsUnavailable(),this._mxObject.markAsUnavailable()}hasChanges(){return!1}snapshot(){return this}isReadonlyAttr(e){return!0}isPartial(){return this._mxObject.isPartial()}toString(){return this._mxObject.toString()}_fetchReference(e,t,n,r){super._fetchReference(e,t,(e=>{e instanceof g?n(e.snapshot()):Array.isArray(e)?n(e.map((e=>e.snapshot()))):n(e)}),r)}has(e){return this._mxObject.has(e)}toJSON(){return this._mxObject.toJSON()}_attributeChanged(e){return!1}getRawValue(e){return this._mxObject._getRawOriginalValue(e)}_getAttributeValue(e){return this._mxObject._getAttributeValue(e)}_makeChange(e,t){throw new c.AssertionError(`Cannot modify attribute ${e} of a read-only object.`)}_getChildren(e){return this._mxObject._getChildren(e).map((e=>e.snapshot()))}convertToEditable(){return window.mx.data.removeChanges(this.getGuid()),this._mxObject}}},1525:(e,t,n)=>{n.d(t,{L:()=>i});var r=n(2749);class i{constructor(e,t){this._guid=e,this._fields=t}getGuid(){return this._guid}getAttributes(){return Object.keys(this._fields).map((e=>({name:e,reason:this._fields[e]})))}getFields(){return this.getAttributes()}static describe(e){const t=[];for(let n=0;void 0!==e[n];n++){const i=e[n].getFields();for(let e=0;void 0!==i[e];e++)t.push((0,r.translate)("mendix.lib.Validations","field_issue",i[e].name,i[e].reason))}return t.join("\n")}addAttribute(e,t){return!(e in this._fields)&&(this._fields[e]=t,!0)}addField(){return this.addAttribute(...arguments)}removeAttribute(e){return e in this._fields&&(delete this._fields[e],!0)}removeField(){return this.removeAttribute(...arguments)}getErrorReason(e){return this._fields[e]}getReasonByAttribute(){return this.getErrorReason(...arguments)}clone(){return new i(this._guid,Object.assign({},this._fields))}toString(){return Object.keys(this._fields).map((e=>`${e} ${this._fields[e]}`)).join("; ")}}i.fromResponse=function(e){return e.map((e=>{let{guid:t,errorFields:n}=e;const r={};
5return n.forEach((e=>{let{name:t,message:n}=e;r[t]=n})),new i(t,r)}))}},2736:(e,t,n)=>{n.d(t,{V:()=>c,h:()=>s});var r=n(945),i=n(7606),o=n(3282);const a=i.LogManager.get().getLogger();function s(){let e;this.startup=function(){e||(e={},window.mx.session.getConfig("metadata").forEach((function(t){const n=new c({json:t});e[n.getEntity()]=n})))},this.getMap=function(){return this.startup(),e},this.getEntity=function(t){this.startup();const n=e[t];return n||a.error("No permission to read or write entity "+t+", check security!"),n}}function c(e){var t=e.json;if(!(t&&t.attributes&&t.objectType&&t.properties))throw new Error("MxMetaObject: invalid initialization");this.has=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.has: parameter attr is not of type String.");return Object.prototype.hasOwnProperty.call(t.attributes,e)},this.isEnum=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isEnum : parameter attr is not of type String.");return/^(Enum|EnumSet)$/.test(this.getAttributeType(e))},this.isNumeric=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isNumeric : parameter attr is not of type String.");return/^(Integer|Long|Decimal)$/.test(this.getAttributeType(e))},this.isPassword=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isDate : parameter attr is not of type String.");return"HashString"===this.getAttributeType(e)},this.isDate=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isDate : parameter attr is not of type String.");return/^(Date|DateTime)$/.test(this.getAttributeType(e))},this.isLocalizedDate=function(e){return this.isDate(e)?/true/.test(t.attributes[e].localize):null},this.isBoolean=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isBoolean : parameter attr is not of type String.");return"Boolean"===this.getAttributeType(e)},this.isReference=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isReference : parameter attr is not of type String.");return/^(ObjectReference|ObjectReferenceSet)$/.test(this.getAttributeType(e))},this.isObjectReference=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isObjectReference : parameter attr is not of type String.");return"ObjectReference"===this.getAttributeType(e)},this.isObjectReferenceSet=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isObjectReferenceSet : parameter attr is not of type String.");return"ObjectReferenceSet"===this.getAttributeType(e)},this.isBidirectionalReference=function(e){return this.isReference(e)&&Boolean(t.attributes[e].both)},this.getReferenceAttributes=function(){var e=[];for(var n in t.attributes)this.isReference(n)&&e.push(n);return e},this.getAttributes=function(){var e=[];for(var n in t.attributes)e.push(n);return e},this.getAttributesWithoutReferences=function(){var e=[];for(var n in t.attributes)this.isReference(n)||e.push(n);return e},this.getAttributeType=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.getAttributeType : parameter attr is not of type String.");return!!this.has(e)&&t.attributes[e].type},this.getSelectorEntity=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.getSelectorEntity : parameter attr is not of type String.");return!!this.isReference(e)&&t.attributes[e].klass},this.getEnumeration=function(e){if(!this.isEnum(e))throw new Error("mendix/lib/MxMetaObject.getEnumeration : attr is not of type Enum.");return(0,o.ensure)(t.attributes[e].klass)},this.getEnumCaption=function(e,t){return this.isEnum(e)?null!=t&&""!==t?(0,r.translateEnumeration)(this.getEnumeration(e),t):"":null},this.getEnumMap=function(e){if(!this.isEnum(e))return null;const t=this.getEnumeration(e);return(0,r.getEnumerationOptions)(t).map((e=>({key:e,caption:(0,r.translateEnumeration)(t,e)})))},this.getOptions=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.getOptions : parameter attr is not of type String.");if(!this.isEnum(e))throw new Error("mendix/lib/MxMetaObject.getOptions : attribute '"+e+"' is not an Enumeration.");return this.isEnum(e)?(0,r.getEnumerationOptions)(this.getEnumeration(e)):[]},this.getEntity=function(){return t.objectType},this.isA=function(e){return this.getEntity()===e||this.inheritsFrom(e)},this.hasSuperEntities=function(){return 0!==t.properties.superclasses.length}
5,this.getSuperEntities=function(){var e=t.properties.superclasses;return"string"==typeof e?[e]:e},this.hasSubEntities=function(){return 0!==t.properties.subclasses.length},this.getSubEntities=function(){var e=t.properties.subclasses;return"string"==typeof e?[e]:e},this.inheritsFrom=function(e){return(this.getSuperEntities()||[]).includes(e)}}},3011:(e,t,n)=>{n.d(t,{Y:()=>m});var r=n(945),i=n(5298),o=n(2736),a=n(3482),s=n(8426),c=n(1021),l=n(3302),u=n(2749);class d{formatValue(e,t,n){if(""===e||null===e)return"";switch(t.toLowerCase()){case"decimal":case"integer":case"long":{if("string"==typeof e||"number"==typeof e)try{e=new l.Big(e)}catch(t){throw new Error(`Value '${e}' cannot be formatted as a numeric value.`)}if(!(e instanceof l.Big))throw new Error(`Value '${e}' cannot be formatted as a numeric value.`);const r=f(n),i=r&&r.groupDigits,o=r&&r.decimalPrecision,a="decimal"===t.toLowerCase()?void 0:0;return(0,c.formatNumber)(e,i,void 0!==o?o:a)}case"datetime":{if(!("number"==typeof e||e instanceof Date))throw new Error(`Value '${e}' cannot be formatted as Date.`);const t=h(n);return(0,s.formatDate)(new Date(e),t)}case"boolean":if("boolean"!=typeof e)throw new Error(`Value '${e}' cannot be formatted as boolean.`);return(0,u.translate)("mxui.common",e.toString());default:return String(e)}}formatAttribute(e,t,n){const r=e.getAttributeType(t),i=e.get(t);return"Enum"===r?e.getEnumCaption(t)||i:this.formatValue(i,r,n)}parseValue(e,t,n){if(""===e)return"";switch(t.toLowerCase()){case"integer":case"long":case"decimal":{const t=f(n),r=t&&t.decimalPrecision;return(0,c.parseNumber)(e,r)||null}case"datetime":{const t=h(n);return(0,s.parseDate)(e,t)||null}case"enum":default:return e;case"boolean":return e===(0,u.translate)("mxui.common","true")}}}function f(e){if(e)return"places"in e?{decimalPrecision:e.places,groupDigits:Boolean(e.groups)}:e}function h(e){return e?"datePattern"in e&&e.datePattern?{type:"custom",pattern:e.datePattern}:"selector"in e?{type:e.selector}:e:{type:"date"}}var p=n(1881),g=n(2351);function m(){window.mx.data.update=function(e){(0,g.publish)(e).then(e.callback,window.mx.onError)},window.mx.ui.openForm=function(e,t,n){const r=t.context&&t.context.getTrackId()||void 0,i=Object.assign({location:"content"},t,{context:void 0,contextParams:t.context?t.context.getParams():{}},t.domNode?{location:"node"}:void 0),o=t.callback?t.callback.bind(n):void 0,a=t.error?t.error.bind(n):window.mx.onError;window.mx.ui.getPageParameters(e).then((n=>{if(n.length>1)throw new Error(`Cannot open form '${e}', as it expects multiple parameters`);const s=n.length?{["$"+n[0]]:r}:{};window.mx.ui.openForm2(e,s,t.title,window.mx.ui.getContentForm(),i).then(o,a)})).catch(a)},window.mx.server={getCacheBust:()=>window.mx.session.getConfig("cachebust")},window.mx.session.getUserName=function(){return this.getUserObject().get("Name")},i.FormBase.prototype.commit=function(e,t){const n=this;function r(e){n.setSuspend(!1),t?t(e):window.mx.onError(e)}this.setSuspend(!0),this.publish("submit",(function(){n.publish("commit",(function(){window.mx.data.commit({mxobjs:n.getSubmitObjects(),callback(){n.setSuspend(!1),e&&e()},error:r})}),r)}),r)},i.FormBase.prototype.rollback=function(e,t){const n=this;function r(e){n.setSuspend(!1),t?t(e):window.mx.onError(e)}this.setSuspend(!0),this.publish("rollback",(function(){window.mx.data.rollback({mxobjs:n.getSubmitObjects(),callback(){n.setSuspend(!1),e&&e()},error:r})}),r)},i.FormBase.prototype.validate=function(e,t){this.triggerValidation().then(e,t)},a.MxObject.prototype.getEnumCaption=function(e){const t=this.metaData.attributes[e],n=this.get(e);return null!=n&&""!==n&&null!=t&&t.enumeration?(0,r.translateEnumeration)(t.enumeration,n):n||""},a.MxObject.prototype.getEnumMap=function(e){var t;const n=null===(t=this.metaData.attributes[e])||void 0===t?void 0:t.enumeration;return n?(0,r.getEnumerationOptions)(n).map((e=>({key:e,caption:(0,r.translateEnumeration)(n,e)}))):null},a.MxObject.prototype.getOptions=function(e){var t;const n=null===(t=this.metaData.attributes[e])||void 0===t?void 0:t.enumeration;return n?(0,r.getEnumerationOptions)(n):[]},window.mx.parser=new d,window.mx.meta=new o.h,window.mx.onError=function(e){(0,p.handleError)(e)}}},3380:(e,t,n)=>{n.r(t),n.d(t,{validate:()=>f,validation:()=>d});var r=n(3302),i=n.n(r),o=new(i())("1e20"),a=new(i())(2).pow(31).times(-1),s=new(i())(2).pow(31).minus(1),c=new(i())(2).pow(63).times(-1),l=new(i())(2).pow(63).minus(1);function u(e,t,n){return e.gte(t)&&e.lte(n)}const d={OK:0,NOT_INTEGER:1,RANGE_INTEGER:2,RANGE_LONG:3,RANGE_DECIMAL:4};function f(e,t){if(/^(Integer|Long|Decimal)$/.test(t)){if(""===e||null===e)return d.OK;if(e instanceof i()||(e=new(i())(e)),("Integer"===t||"Long"===t)&&function(e){return!e.mod(1).eq(0)}(e))return d.NOT_INTEGER;if("Integer"===t&&!u(e,a,s))return d.RANGE_INTEGER;if("Long"===t&&!u(e,c,l))return d.RANGE_LONG;if("Decimal"===t&&e.abs().gte(o))return d.RANGE_DECIMAL;if("Decimal"===t&&!e.mod(1e-8).eq(0))return d.RANGE_DECIMAL}return d.OK}}
5,8388:(e,t,n)=>{n.d(t,{K:()=>ut});var r=n(4296),i=n(7680),o=n(4037),a=n(2351),s=n(234),c=n(7606),l=n(2959),u=n(3482),d=n(1525);function f(e){for(var t in this.__values={},e)this.__values[t+""]=!0}f.of=f.prototype.of=function(e){return f.fromArray([e])},f.fromArray=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return new f(t)},f.empty=f.prototype.empty=function(){return f.fromArray([])},f.prototype.contains=function(e){return this.__values[e]||!1},f.prototype.union=f.prototype.concat=function(e){var t={};for(var n in this.__values)t[n]=!0;for(var r in e.__values)t[r]=!0;return new f(t)},f.prototype.intersection=function(e){var t={};for(var n in this.__values)e.contains(n)&&(t[n]=!0);return new f(t)},f.prototype.difference=function(e){var t={};for(var n in this.__values)e.contains(n)||(t[n]=!0);return new f(t)},f.prototype.length=function(){return this.values().length},f.prototype.reduce=function(e,t){return this.values().reduce(e,t)},f.prototype.chain=function(e){return this.reduce((function(t,n){return t.concat(e(n))}),this.empty())},f.prototype.map=function(e){return this.chain(function(t){return this.of(e(t))}.bind(this))},f.prototype.values=function(){return Object.keys(this.__values)},f.prototype.toString=function(){return"StringSet("+this.values()+")"};var h=n(2188),p=n(2664),g=n(1001),m=n(1016),v=n(1881),y=n(6671),b=n(5835),w=n(3302),x=n.n(w);const _={equals:"=",lessThan:"<",lessThanOrEquals:"<=",greaterThan:">",greaterThanOrEquals:">=",contains:"contains"};function S(e,t){const n=C((0,o.getEntityMeta)(e),t);return n.length>1?{type:"function",name:"and",parameters:n}:n[0]}function C(e,t){return t.map((t=>{var n,r;switch(t.operator){case"and":case"or":return{type:"function",name:t.operator,parameters:C(e,t.constraints)};default:const i=null!==(r=null===(n=null==e?void 0:e.attributes[t.attribute])||void 0===n?void 0:n.type)&&void 0!==r?r:"String",o={type:"function",name:_[t.operator],parameters:[{type:"attribute",attribute:t.attribute,attributeType:i},{type:"value",value:E(t.value,i),isGuid:"ObjectReference"===i}]};return t.negate?{type:"function",name:"not",parameters:[o]}:o}}))}function E(e,t){if(null!=e)switch(t){case"Boolean":return"true"===e;case"DateTime":return new Date(Number(e));case"Decimal":case"Integer":case"Long":return new w.Big(String(e));default:return String(e)}}var O=n(5087),j=n(7223);const k=c.LogManager.get().getLogger();function R(e,t){e=e||{};var n=this;const c=[];let w,x;const _=(0,r.curryN)(3,T),C=(0,r.curry)(A);function E(e){if("object"!=typeof e)throw new s.AssertionError("args is not an object");if("function"!=typeof e.callback)throw new s.AssertionError("callback is not a function");if(e.mxobj&&!(e.mxobj instanceof u.MxObject))throw new s.AssertionError("mxobj is not a MxObject");if(e.mxobjs&&!(e.mxobjs instanceof Array))throw new s.AssertionError("mxobjs is not an Array");if(!e.mxobj&&!e.mxobjs||e.mxobj&&e.mxobjs)throw new s.AssertionError("one of mxobj or mxobjs should be passed");return e.mxobj?[e.mxobj]:e.mxobjs}function R(){const n=t.getAllObjects(),i=f.fromArray(n.map((e=>e.getGuid()))),o=i.difference(f.fromArray(function(){const e=(0,m.getSession)(),t=e.getUserId(),r=e.getSessionObjectId(),i=new Set((0,a.getSubscribedGuids)().concat(c.map((e=>e.guid))).concat([t,r]));return(0,g.op)(n,i)}())).values();e.logCleanupStatistics&&k.debug(function(){const e=(0,r.groupBy)(o,(e=>t.getObject(e).getEntity())),n=(0,r.arrayFromObject)(e).map((e=>{let[t,n]=e;return t+": "+n.join(", ")})).join("\n");return`Garbage collecting ${o.length} of ${i.length()}\n${n}`}()),t.removeObjects(o)}function N(e,t){return function(){T(e,t)}}function T(e,t){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];e&&e.apply(t,r)}catch(e){(0,v.handleError)(e)}}function A(e,t,n){e?e.call(t,n):(0,v.handleError)(n)}function P(e){return t.has(e.getGuid())}function D(e){return e.getGuid()}function I(e){return e.getEntity()}this.getBacktrack=function(e,t,r,i,a){if("function"!=typeof i&&(a=i,i=null),t&&0!==t.length){var c=null,l=[],u=0,d=!0,f=function(){var e=t[u++];e?function(e,t,r,i){var a=t.split("/"),c=function(e){var t,n=a.shift(),i=a.shift();if(null!=e&&null!=e.length&&0!==e.length){for(var o=[],s=0;s<e.length;s++)null!=e[s]&&o.push("id='"+e[s].getGuid()+"'");o.length?(t="["+i+"/"+n+"["+o.join(" or ")+"]]",1===a.length?r(t):(n=a.shift(),i=a.shift(),r("["+i+"/"+n+t+"]"))):r(null)}else r(null)};!function(){var t=a.shift(),l=a.shift();if(1===a.length){var u="["+l+"='"+e.getGuid()+"']";return void r(u)}
5const d=(0,o.getEntityMeta)(t);null!=d?e.isA(t)?(0,o.isReferenceAttribute)(d,l)?""!==e.get(l)?n.get({guids:e.getReferences(l),callback:c,error:i}):r(null):A(i,null,new Error(`Reference ${l} not found in entity ${t}`)):A(i,null,new s.AssertionError(`Entity ${e.getEntity()} is not a ${t} or one of its subclasses`)):A(i,null,new Error(`Entity ${t} does not exist`))}()}(c,e,(function(e){e?l.push(e):d=!1,f()}),C(i,a)):r.call(a,l.join(""),d)};e?n.get({guid:e,callback:function(e){e?(c=e,f()):r.call(a,"",!1)},error:C(i,a)}):r.call(a,"",!1)}else r.call(a,"",!0)},this.toString=function(){return"mendix.sys.Data"},this.startup=function(t){w=t;const n=null!=e.garbageCollectionInterval?Number(e.garbageCollectionInterval):1e4;0!==n&&(x=window.setInterval(R,n))},this.subscribe=function(e,n){if(!e.val||e.attr)return(0,a.subscribe)(Object.assign({},e,{callback(){if(e.callback){if(e.entity)return e.callback.apply(n,[e.entity]);if(e.attr){const r=t.getObject(e.guid),i=null!=r?r.get(e.attr):null;return e.callback.apply(n,[e.guid,e.attr,null!=i?i:""])}return e.callback.apply(n,[e.guid])}}}));const r=Object.assign({},e,{callback(){if(e.callback){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e.callback.apply(n,r)}}});return c.push(r),{unsubscribe:()=>{const e=c.indexOf(r);-1!==e&&c.splice(e,1)}}},this.unsubscribe=function(e){if(!("unsubscribe"in e))throw new s.AssertionError("Trying to unsubscribe using an invalid subscription handle");e.unsubscribe()},this.sendValidationUpdates=(0,h.action)((async function(e){const t=[];e.forEach((e=>{const n=e.clone();c.filter((t=>t.guid===e.getGuid())).forEach((t=>{let{callback:r}=t;const i=e.clone();r([i]);const o=i.getAttributes().map((e=>e.name));n.getAttributes().forEach((e=>{let{name:t}=e;o.includes(t)||n.removeAttribute(t)}))})),t.push(n)}));const n=e.flatMap((e=>e.getAttributes().map((t=>{let{name:n,reason:r}=t;return{guid:e.getGuid(),attr:n,val:r}})))),{handled:r}=await(0,a.publish)(...n);r.forEach((e=>{let{guid:n,attr:r}=e;t.find((e=>e.getGuid()===n)).removeAttribute(r)}));const i=t.filter((e=>e.getAttributes().length));if(i.length){const e=d.L.describe(i);window.mx.ui.showMessage("error",e,!1)}})),this.updateInCache=function(e){return t.removeAllChanges([e.guid]),t.setMxObjects([e]),t.getObject(e.guid)},this.removeChanges=function(e){t.removeAllChanges([e])},this.action=function(e){w.action(e.params,e.context||new l.MxContext,e.origin,!!e.async,e.onValidation).then(e.callback,C(e.error,null))},this.callNanoflow=function(e){let{nanoflow:n,context:r,origin:i,callback:o,error:a}=e;(async function(){const e=n.nanoflow,o=n.paramsSpec,a=Object.keys(o).map((e=>{const t=r.getContext(o[e]);return{name:e,guid:null!==t?t:void 0}})),s=a.filter((e=>Boolean(e.guid))).map((e=>e.guid)),c=await(u=s,new Promise(((e,t)=>{window.mx.data.get({guids:u,callback:e,error:t})}))),l=a.map((e=>{let{name:t,guid:n}=e;return{name:t,value:c.find((e=>e.getGuid()===n))}}));var u;try{return await O.Wi.execute(e,l,i)}catch(e){throw await(0,y.sI)(t,e),e}})().then(_(o,null),C(a,null))},this.get=function(e,r){var i=e.xpath,o=e.path,a=e.guid,c=!("guids"in e)&&a?[a]:""===e.guids?[]:e.guids,u=e.entity,d=e.direction||"reverse",f=e.callback,h=e.error,p=!!e.count,g=e.filter,m=e.context||new l.MxContext,v=e.microflow;if("guid"in e&&null==a)T(f,r,null);else{if(!(i||c||v||u))throw new s.AssertionError("xpath, guid|guids and microflow arguments are undefined");if(o&&1!==c.length)throw new s.AssertionError("path can only be used with a single guid");if("function"!=typeof f)throw new s.AssertionError("callback is not a function");if(h&&"function"!=typeof h)throw new s.AssertionError("error is not a function");g&&g.limit&&(g.amount=g.limit,delete g.limit);var y=null,b=function(e,t,n){if(!t)return e;for(var r in n)r in t&&null!=t[r]&&(e[r]=t[r]);return e}({},g,a?{id:y}:{id:y,attributes:y,offset:y,sort:y,amount:y,distinct:y,references:y}),x=C(h,r);if(b.id&&c&&!a&&delete b.id,b.id&&(delete b.attributes,delete b.distinct),v){var S=c?"selection":i?"set":"none",E={actionname:v,applyto:S};"selection"===S?E.guids=c:"set"===S&&(E.xpath=i,b.sort&&(E.sort=b.sort)),n.action({params:E,context:m,callback:_(f,r),error:x})}else if(o&&c)w.getByPath(c[0],o,u,d).then((e=>{let{mxobjs:t,count:n}=e;
5T(f,r,t,{count:n})}),C(h,r));else if(c){if(0===c.length)return void T(f,r,a?null:[],{count:0});const e=c.every((e=>t.has(e)))?Promise.resolve(function(e,n){n=n||{};let r=e.map((e=>t.getObject(e))).filter((e=>null!=e));n.sort&&n.sort.forEach((e=>{var t=e[0],n=e[1];r=r.sort(((e,r)=>(e=e.get(t))<(r=r.get(t))?"asc"===n?-1:1:e>r?"asc"===n?1:-1:0))}));const i=n.offset;if(i){const e=n.amount;r=e?r.slice(i,i+e):r.slice(i)}return{mxobjs:r,count:r.length}}(c,b)):w.getByGuid(c,b);e.then((e=>{let{mxobjs:t,count:n}=e;var i;i=a?b.id?t.find((e=>e.getGuid()===a))||null:t[0]||null:t,T(f,r,i,{count:n})}),x)}else if(u)if(window.mx.isOffline()){const{amount:e,offset:t,sort:n}=b;(0,j.offlineData)().retrieveUncached(u,void 0,{limit:e,offset:t,sort:n}).then((e=>{let{mxobjs:t,count:n}=e;T(f,r,t,{count:n})}))}else{const{amount:e,offset:t,sort:n}=b;w.getByXPath(`//${u}`,{amount:e,offset:t,sort:n},p).then((e=>{let{mxobjs:t,count:n,hasMoreItems:i}=e;T(f,r,t,{count:n,hasMoreItems:i})}),x)}else w.getByXPath(i,b,p).then((e=>{let{mxobjs:t,count:n,hasMoreItems:i,aggregates:o}=e;T(f,r,t,{count:n,hasMoreItems:i,aggregates:o})}),x)}},this.getOffline=function(e,t,n,r,i){const o=n?{offset:n.offset,sort:n.sort,amount:n.limit}:{};(0,j.offlineData)().retrieveUncached(e,S(e,t),o).then((e=>{let{mxObjects:t,count:n}=e;T(r,null,t,n)})).catch(C(i,null))},this.create=function(e,t){if("function"!=typeof e.callback)throw new s.AssertionError("callback is not a function");if(e.error&&"function"!=typeof e.error)throw new s.AssertionError("error is not a function");if("string"!=typeof e.entity)throw new s.AssertionError("entity is not a string");(window.mx.isOffline()?(0,j.offlineData)().create(e.entity):w.create(e.entity)).then((function(r){e.context&&n.setObjectToContext(r,e.context),T(e.callback,t,r)}),C(e.error,t))},this.remove=function(e){const t="guid"in e?[e.guid]:""===e.guids?[]:e.guids;if("guids"in e&&!(e.guids instanceof Array))throw new s.AssertionError("parameter guids set but not of type Array");if(e.error&&"function"!=typeof e.error)throw new s.AssertionError("parameter error set but not of type Function");if(e.callback&&"function"!=typeof e.callback)throw new s.AssertionError("parameter callback set but not of type Function");w.remove(t).then(N(e.callback),C(e.error,null))},this.validate=function(e,t,n){0!==e.length?w.validate(e.map(D)).then(N(t),C(n,null)):T(t)},this.commit=function(e,n){const i=N(e.callback,n),o=C(e.error,n),s=E(e);if(0===s.length&&e.callback)return void i();const c=s.map((e=>e.getGuid()));w.commit(c,e.context||new l.MxContext,e.store,e.onValidation).then((function(e){(0,b.Mb)(t,s,e);const n=(0,r.unique)(s.filter(P).map(I)).map((e=>({entity:e}))),c=(0,r.unique)(s.map(D)).map((e=>({guid:e}))),l=n.concat(c);(0,a.publish)(...l).then(i,o)}),o)},this.rollback=function(e,n){const i=C(e.error,n),o=E(e);if(0===o.length)return void T(e.callback,n);const s=(0,r.unique)(o.map(I)).map((e=>({entity:e}))),c=o.map((e=>e.getGuid()));w.rollback(c).then((function(c){(0,b.Mb)(t,o,c);const l=(0,r.unique)(o.filter(P).map(D)).map((e=>({guid:e}))),u=s.concat(l);(0,a.publish)(...u).then(_(e.callback,n),i)}),i)},this.synchronizeOffline=async function(){let{fullReset:e,incompatibleEntities:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fullReset:!1};window.mx.isOffline()&&await(0,j.offlineData)().runFullSynchronization(e,t)},this.saveDocument=function(e,t,n,r,i,o){const s=C(o,null);w.saveDocument(e,t,n,r).then((function(){(0,a.publish)({guid:e}).then(i,s)}),s)},this.generateReport=function(e,t,n,r,i,o){w.generateReport(e,t,n,r).then(i,C(o,null))},this.generateExcelReport=function(e,t,n,r){w.generateExcelReport(e,t).then(n,C(r,null))},this.getReportParameters=function(e,t,n){w.getReportParameters(e).then(t,C(n,null))},this.setObjectToContext=function(e,t){if("object"!=typeof e)throw new s.AssertionError("parameter mxObj is not of type Object");if("object"!=typeof t)throw new s.AssertionError("parameter context is not of type Object");for(var n=e.getAttributes(),r=0;r<n.length;r++)if(e.isReference(n[r])){var i,a,c=e.getSelectorEntity(n[r]);if((0,o.isSystemAttribute)(n[r]))continue;t.hasContext(c)&&e.addReference(n[r],t.getContext(c));
5for(var l=null!==(i=null===(a=(0,o.getEntityMeta)(c))||void 0===a?void 0:a.specializations)&&void 0!==i?i:[],u=0;u<l.length;u++)t.hasContext(l[u])&&e.addReference(n[r],t.getContext(l[u]))}},this.getObjectFromContext=function(e,t){var n=e.getObject(),r=e.getTrackId();n?t(n):r?window.mx.data.get({guid:r,callback:function(e){e||(0,v.handleError)("Error while fetching object with guid "+r),t(e)},error:function(e){(0,v.handleError)(e),t(null)}},this):t(null)},this.isNew=function(e){return t.isNew(e)},this.makeChange=function(e,n,r){t.makeChange(e,n,r)},this.getChanges=function(e){return t.getChanges(e)},this.getCachedObject=function(e){return t.getObject(e)},this.dehydrateCache=function(){return{objectCache:t.dehydrate(),objectIdCache:(0,i.CN)()}},this.hydrateCache=function(e){t.hydrate(e.objectCache),(0,i.RK)(e.objectIdCache)},this.getDocumentUrl=function(e,t,n,r){return w.getDocumentUrl(e,t,n,r)},this.getImageUrl=function(e,t,n){w.getImageUrl(e).then(t,n)},this.clear=function(e){t.clear(),w.cleanup().then(e)},this.uninitialize=function(){x&&window.clearInterval(x)},this.getObjectsStatistics=function(){return t.getAllGuids(!0).map((e=>{const n=t.getObject(e);return{guid:e,object:n,changes:(0,p.d)(t.getChanges(e)),uncommitted:t.isNew(e),subscriptions:(0,a.getTags)(e).concat(c.filter((t=>t.guid===e)).map((e=>e.tag)))}}))}}var N=n(9120),T=n(6559);function A(e){var t;if("string"==typeof e)return e;if(e instanceof Error){const n=`${e.message} ${e.stack}`;return`${2===(null!==(t=n.match(/Nanoflow stack:/g))&&void 0!==t?t:[]).length?n.replace(/^Nanoflow stack:\n(.*\n)*$/m,""):n}`}if(null==e?void 0:e.outerHTML)return e.outerHTML;try{return JSON.stringify(e)}catch(e){return"[Unserializable data. See browser console for the details]"}}var P=n(3282);class D{constructor(e){this.url=e,this.connectHandlers=[],this.instructionHandlers=[],window.setInterval((()=>{this.send(JSON.stringify({type:"ping"}))}),1e4)}isConnected(){return void 0!==this.socket&&this.socket.readyState===WebSocket.OPEN}onConnect(e){this.isConnected()?e():this.connectHandlers.push(e)}onInstruction(e,t){this.instructionHandlers.push({type:e,handler:t})}sendLog(e,t,n){if(this.isConnected()){const r=6e4;for(let i=0;i<n.length;i+=r){const o=n.substr(i,r);this.send(JSON.stringify({type:"log",node:t,data:`${e}:${o}`}))}}}send(e){this.isConnected()&&(0,P.ensure)(this.socket).send(e)}connect(){try{this.socket=new WebSocket(this.url),this.socket.onopen=()=>{this.connectHandlers.forEach((e=>e())),this.connectHandlers.splice(0)},this.socket.onmessage=({data:e})=>{const t=JSON.parse(e);this.instructionHandlers.slice().filter((({type:e})=>e===t.type)).forEach((({handler:e})=>e(t)))},this.socket.onclose=()=>this.reconnect()}catch(e){this.reconnect()}}reconnect(){this.socket=void 0,setTimeout((()=>this.connect()),1e3)}}class I{constructor(e,t=c.LogManager.get()){this.reloadHandlers=[],this.updateStylingHandlers=[],this.deploymentId=void 0,this.connection=new D(e.replace(/^http/,"ws")+"mxdevtools/"),this.connection.onInstruction("set_deployment_id",(e=>{void 0!==this.deploymentId&&e.deploymentId!==this.deploymentId&&this.reloadHandlers.forEach((e=>e(!1))),this.deploymentId=e.deploymentId})),this.connection.onInstruction("reload",(()=>{this.reloadHandlers.forEach((e=>e(!0)))})),this.connection.onInstruction("update_styling",(()=>{this.updateStylingHandlers.forEach((e=>e()))})),t.addHandler(((e,t,...n)=>{this.log(e,t,...n)})),(0,O.Ei)(this.connection,t)}async connect(){this.connection.connect(),await(0,O.ax)()}addOnReload(e){this.reloadHandlers.push(e)}addOnUpdateStyling(e){this.updateStylingHandlers.push(e)}log(e,t,...n){const r=n.map(A),i="Client"===t?t:`Client_${t}`;this.connection.onConnect((()=>this.connection.sendLog(e,i,r.join("\n"))))}}var M=n(7566),L=n(6218),$=n(6355),F=n(3698),B=n(4644);class V{constructor(e){this.objectCache=e}async retrieveByXPath(e,t,n,r,i){const o=await(0,$.m_)({queryId:e,args:t,xpathConstraint:n,options:r,wantCount:i},(()=>(0,B.Jv)(e,t,{...r,wantCount:i,extraXpath:n},{},[])));return await(0,y.Pz)(this.objectCache,o),{...this.processResult(o),count:o.count,hasMoreItems:o.hasMoreItems}}async retrieveByPath(e,t){const[n,r]=(0,b.p1)(this.objectCache,[e]),i=await(0,$.m_)({guid:e,queryId:t},(()=>(0,B.Jv)(t,{CurrentObject:{guid:e}},{},n,r)));return await(0,y.Pz)(this.objectCache,i),this.processResult(i)}async retrieveByPathUsingQueryIdOrCache(e,t,n,r,i){let a=[];
5const s=(0,o.getEntityMeta)(r),c=void 0!==s&&function(e,t){const n=t.split("/").length;return!e.isPersistable&&!e.needsReachableState.retrieve&&1===n}(s,t);if(!i&&!c)throw new Error(`Error trying to retrieve an object of type ${r}`);return i&&!c||({cachedObjects:a}=(0,F.OF)(e,n,t,this.objectCache)),i&&0===a.length?this.retrieveByPath(e,i):{mxObjects:a,count:a.length}}async retrieveByMicroflow(e,t,n,r){let i;try{const[r,o]=(0,b.XF)(this.objectCache,e,(0,M.vh)(n).concat((0,b.Go)()));i=await(0,B.Jv)(t,n,{},r,o)}catch(e){throw await(0,y.sI)(this.objectCache,e),e}const o=(0,y.kY)(i).map((t=>(0,a.subscribe)({guid:t,tag:`result objects of microflow with operation ${e}`})));try{return await(0,y.Pz)(this.objectCache,i,r),{...this.processResult(i),hasMoreItems:i.hasMoreItems}}finally{o.forEach((e=>e.unsubscribe()))}}processResult(e){return e.partialObjects.length?{mxObjects:e.partialObjects.map((e=>u.MxObject.fromJson(e,!0).snapshot())),extra:[]}:{mxObjects:e.resultGuids.map((e=>(0,P.ensure)(this.objectCache.getObject(e)))),extra:e.extraGuids.map((e=>(0,P.ensure)(this.objectCache.getObject(e))))}}async executeMicroflow(e,t,n,r=[],i=!1){let o;try{const n=Object.values(t).some((e=>"xpath"in e)),[a,s]=n?(0,b.yO)(this.objectCache):(0,b.XF)(this.objectCache,e,(0,M.vh)(t).concat((0,b.Go)()));o=i?await(0,b.Wi)((n=>(0,B.df)(e,t,a,s,r,n))):await(0,B.df)(e,t,a,s,r)}catch(e){throw await(0,y.sI)(this.objectCache,e),e}const s=(0,y.kY)(o).map((t=>(0,a.subscribe)({guid:t,tag:`result objects of microflow with operation ${e}`})));try{await(0,y.Pz)(this.objectCache,o,n);const e=o.actionResult;if(null==e)return;const{value:t,type:r}=e;return(0,L.FB)(t,r,(e=>(0,P.ensure)(this.objectCache.getObject(e))))}finally{s.forEach((e=>e.unsubscribe()))}}async executeExternalAction(e,t,n){const r=t.getGuid(),i=(0,P.unique)(n.map((e=>e.getGuid()))),[o,s]=(0,b.HR)(this.objectCache,r,i);let c;try{const t={Object:{guid:r}};i.length>0&&(t.Objects={guids:i}),c=await(0,B.df)(e,t,o,s)}catch(e){throw await(0,y.sI)(this.objectCache,e),e}await(0,y.Pz)(this.objectCache,c),(0,b.Mb)(this.objectCache,n,c);const{commits:l=[]}=c,u=(0,P.unique)(n.filter((e=>l.includes(e.getGuid())))),d=u.map((e=>({entity:e.getEntity()}))),f=u.map((e=>({guid:e.getGuid()})));await(0,a.publish)(...d,...f)}async createObject(e,t){const n=(0,o.getEntityMeta)(e);if(void 0!==n&&(!t||function(e){return!e.isPersistable&&!e.needsReachableState.create&&Object.values(e.attributes).every((e=>!e.isAlwaysReadOnly&&!(0,o.isSystemAttribute)(e.name)))}(n))){const e=(0,i.Bi)(n);return this.objectCache.onCreate([e]),this.objectCache.setMxObjects([(0,F.UA)(e,n)]),this.objectCache.getObject(e)}if(void 0!==t)return this.executeCreateObjectAction(t,e);throw new Error(`Error trying to create an object of type ${e}`)}async executeCreateObjectAction(e,t){var n;const[r,i]=(null===(n=(0,o.getEntityMeta)(t))||void 0===n?void 0:n.needsReachableState.create)?(0,b.p1)(this.objectCache,[]):(0,b.sL)(this.objectCache,[]);let a;try{a=await(0,B.df)(e,{},r,i)}catch(e){throw await(0,y.sI)(this.objectCache,e),e}await(0,y.Pz)(this.objectCache,a);const s=(0,P.ensure)(a.actionResult).value;return(0,P.ensure)(this.objectCache.getObject(s))}async executeObjectAction(e,t,n){if(0===n.length)return;const r=(0,P.unique)(n.map((e=>e.getGuid()))),[i,o]=(0,b.P5)(this.objectCache,r,t),s=(0,P.indexByKey)((e=>e.getGuid()))(n),c=r.reduce(((e,t)=>(e[t]=s[t].getEntity(),e)),{});let l;try{l=await(0,B.df)(e,{Objects:{guids:r}},i,o)}catch(e){throw await(0,y.sI)(this.objectCache,e),e}await(0,y.Pz)(this.objectCache,l),(0,b.Mb)(this.objectCache,n,l);const{commits:u=[],deletes:d=[],resets:f={}}=l,h=Object.keys(f),p="rollback"===t?[...r]:[...u,...d,...h].filter((e=>r.includes(e))),g="rollback"===t?[...r]:[...u,...h],m=(0,P.unique)(p.map((e=>c[e]))).filter((e=>void 0!==e)).map((e=>({entity:e}))),v=(0,P.unique)(g).filter((e=>r.includes(e))).map((e=>({guid:e})));await(0,a.publish)(...m,...v)}async generateExport(e){var t;const n=null!==(t=null==e?void 0:e.guids)&&void 0!==t?t:[],[r,i]=(0,b.p1)(this.objectCache,n);let o;try{o=await(0,b.Wi)((t=>(0,B.xD)(e,r,i,t)))}
5catch(e){throw await(0,y.sI)(this.objectCache,e),e}await(0,y.Pz)(this.objectCache,o)}}var z=n(5247),U=n(2813),W=n(6199);class q extends z.W{constructor(e,t){super(),this._getImageUri=e&&e.getImgUriFn?(0,U.callbackToPromiseFactory)(e.getImgUriFn):H,this._objectCache=t}async getByGuid(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await(0,$.m_)({guids:e,filter:t},(()=>B.L8(e,t)));let r;if(await(0,y.Pz)(this._objectCache,n),n.resultGuids)r=n.resultGuids.map((e=>this._objectCache.getObject(e)));else{const e=n.mxobjects||[];e.map((e=>e.guid)).forEach((e=>(0,b.XJ)(this._objectCache,e))),r=e.map(u.MxObject.fromJson)}return{mxobjs:r,count:r.length}}async getByPath(e,t,n,r){const[i,o]=(0,b.p1)(this._objectCache,[e]),a=await(0,$.m_)({guid:e,path:t,entity:n},(()=>B.eN(e,t,n,r,i,o)));await(0,y.Pz)(this._objectCache,a);const s=a.resultGuids||[];return{mxobjs:s.map((e=>this._objectCache.getObject(e))),count:s.length}}async getByXPath(e,t,n){const r=await(0,$.m_)({xpath:e,filter:t,wantCount:n},(()=>B.Sc(e,t,n)));await(0,y.Pz)(this._objectCache,r);const i=r.count||0,o=r.aggregates||[],a=r.hasMoreItems;let s;if(Array.isArray(r.resultGuids))s=r.resultGuids.map((e=>this._objectCache.getObject(e)));else{const e=r.mxobjects||[];e.map((e=>e.guid)).forEach((e=>(0,b.XJ)(this._objectCache,e))),s=e.map(u.MxObject.fromJson)}return{mxobjs:s,count:i,hasMoreItems:a,aggregates:o.map((function(e){return null==e?"":new(x())(e)}))}}async action(e,t,n,r,i){const o=e&&e.actionname?e.actionname:null,s=(0,b.GO)(o);let c=e&&e.guids?e.guids:[];null!=t&&(c=c.concat(null!=s?s.parameters.map((e=>t.getContext(e))).filter((e=>null!=e)):t.getGuids()));const[l,u]=(0,b.XF)(this._objectCache,void 0,c.concat((0,b.Go)()));let d;try{d=r?await(0,b.Wi)((n=>B.jo(e,t,l,u,n))):await B.jo(e,t,l,u)}catch(e){throw await(0,y.sI)(this._objectCache,e,i),e}const f=(0,y.kY)(d).map((t=>(0,a.subscribe)({guid:t,tag:`result objects of action ${e.actionname}`})));try{return await(0,y.Pz)(this._objectCache,d,n),d.actionResult&&Array.isArray(d.actionResult.resultGuids)?d.actionResult.resultGuids.map((e=>this._objectCache.getObject(e))):d.actionResult}finally{f.forEach((e=>e.unsubscribe()))}}async create(e){var t;const[n,r]=null!==(t=(0,o.getEntityMeta)(e))&&void 0!==t&&t.needsReachableState.create?(0,b.p1)(this._objectCache,[]):(0,b.sL)(this._objectCache,[]);let i;try{i=await B._K(e,n,r)}catch(e){throw await(0,y.sI)(this._objectCache,e),e}return await(0,y.Pz)(this._objectCache,i),this._objectCache.getObject(i.actionResult)}async commit(e,t,n,r){const[i,o]=(0,b.P5)(this._objectCache,e,"commit");let a;try{a=await B.th(e,t,i,o)}catch(e){throw await(0,y.sI)(this._objectCache,e,r),e}return await(0,y.Pz)(this._objectCache,a,n),a}async rollback(e){const[t,n]=(0,b.P5)(this._objectCache,e,"rollback");let r;try{r=await B.WV(e,t,n)}catch(e){throw await(0,y.sI)(this._objectCache,e),e}return await(0,y.Pz)(this._objectCache,r),r}async remove(e){const[t,n]=(0,b.P5)(this._objectCache,e,"delete");let r;try{r=await B.TL(e,t,n)}catch(e){throw await(0,y.sI)(this._objectCache,e),e}return await(0,y.Pz)(this._objectCache,r),r}async validate(e){const[t,n]=(0,b.sL)(this._objectCache,e);try{return await B.Gu(t,n)}catch(e){throw await(0,y.sI)(this._objectCache,e),e}}async saveDocument(e,t,n,r){const[i,o]=(0,b.P5)(this._objectCache,[e],"commit");let a;try{a=await B.ws(e,t,n,r,i,o)}catch(e){throw await(0,y.sI)(this._objectCache,e),e}return await(0,y.Pz)(this._objectCache,a),a}async generateReport(e,t,n,r){let i;try{i=await B.Hj(e,r,t,n)}catch(e){throw await(0,y.sI)(this._objectCache,e),e}return await(0,y.Pz)(this._objectCache,i),i.report}async generateExcelReport(e,t){let n;try{n=await B.Ot(e,t)}catch(e){throw await(0,y.sI)(this._objectCache,e),e}return await(0,y.Pz)(this._objectCache,n),u.MxObject.fromJson(n.mxobject)}getReportParameters(e){return B._C(e)}getDocumentUrl(e,t,n,r){return(0,W.getRemoteDynamicResourceUrl)(e,t,n,r)}getImageUrl(e){return this._getImageUri(e)}cleanup(){return Promise.resolve()}}function H(e){return Promise.resolve(e)}
6/*! js-cookie v3.0.1 | MIT */
7function G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}const Z=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=G({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
7URIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",G({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,G({},this.attributes,t))},withConverter:function(t){return e(G({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});n(7563);var K=n(945),X=n(5991),Y=n(9726),Q=n(8582),J=n(8715);function ee(e){const t=["get_session_data","login","logout"];let n,r=0;return async(i,o)=>{const a=r;try{return await o(i)}catch(s){const c=(0,P.isJson)(i.body)?i.body.action:void 0;if(!(s instanceof J.y)||void 0!==c&&t.includes(c))throw s;if(a!==r)return await o(i);if(n)return await n,await o(i);n=e();try{await n}finally{n=void 0}return++r,await o(i)}}}var te=n(7478);class ne{constructor(e,t,n,r,i,o,a,s){var l;this.sessionStore=e,this.tokenStore=t,this.startupLogger=n,this.authLogger=r,this.bundleVersion=i,this.mxVersion=o,this.shouldGenerateToken=a,this.onUnauthorized=s,this.unregisterRetryGetSessionDataMiddleware=(0,Q.Iy)((2,l="get_session_data",(e,t)=>{let n=2;const r=c.LogManager.get().getLogger(c.LogNode.Network);return t(e).catch((async function i(o){var a;const s=o instanceof Y.h&&n-- >0;if(s){const t=null===(a=e.init.method)||void 0===a?void 0:a.toUpperCase();r.trace(`Retrying ${t} ${e.url}. Attempts left: ${n}`)}const c=l&&(0,P.isJson)(e.body)?e.body.action:void 0;return s&&c===l?t(e).catch(i):Promise.reject(o)}))}))}isValid(){return void 0!==this.sessionData}getConfig(e){if(void 0===this.sessionData)throw new Error("Session is not available");if(!e)return(0,p.d)(this.sessionData);const t=e.split(".");let n=this.sessionData;for(let e=0;e<t.length&&n;e++)n=n[(0,P.ensure)(t[e])];return(0,p.d)(n)}getUserObject(){return this.userObject||(this.userObject=u.MxObject.fromJson(this.getConfig("user"))),this.userObject}isGuest(){return this.getConfig("user.attributes.IsAnonymous.value")}isOffline(){return!!this.getConfig("sync_config")}getOfflineConfig(){var e;return null!==(e=this.getConfig("sync_config"))&&void 0!==e?e:void 0}getOfflineMetadata(){const e=new Set((0,P.ensure)(this.getOfflineConfig()).schema);return(0,P.ensure)(this.getConfig("metadata")).filter((({objectType:t})=>e.has(t)))}getSessionObjectId(){return this.getConfig("sessionObjectId")}getUserId(){return this.getUserObject().getGuid()}getUserRoleNames(){return this.getConfig("roles")}hasSomeRole(e){if(void 0===e)return!0;const t=this.getUserRoleNames();return e.some((e=>t.includes(e)))}getConstants(){return this.getConfig("constants")}async login(e){var t;const n=new T.u;this.authLogger.debug("Logging in user.");const r=await(0,B.x4)(e.username,e.password,this.shouldGenerateToken);await this.clearCachedSessionDataOnLogin(),r.authtoken&&await(null===(t=this.tokenStore)||void 0===t?void 0:t.set(r.authtoken)),this.authLogger.debug(`Login completed in ${n.measure()} milliseconds with${r.authtoken?"":"out"} an authentication token`)}destroySession(e){e()}async clearCachedSessionData(){await this.sessionStore.remove()}async clearCachedSessionDataOnLogin(){Z.remove("clear_cache"),await this.clearCachedSessionData()}async logout(){var e,t;const n=new T.u;let r;this.authLogger.debug("Starting logout.");try{r=await(null===(e=this.tokenStore)||void 0===e?void 0:e.get()),await(0,B.kS)(r)}catch(e){if(!(e instanceof Y.h))throw e;r||Z.set("OfflineLogout","1",{expires:365})}finally{r&&(this.authLogger.debug("Removing auth tokens."),await(null===(t=this.tokenStore)||void 0===t?void 0:t.remove())),await this.clearCachedSessionData(),this.authLogger.debug(`Logged out the user in ${n.measure()} milliseconds`)}}async startup(e,t=!1){var n;const r=await(null===(n=this.tokenStore)||void 0===n?void 0:n.get());this.startupLogger.debug(`Found ${r?"an":"no"} authentication token.`),this.sessionParams=e,"1"===Z.get("clear_cache")&&await this.clearCachedSessionDataOnLogin();const i=await this.loadSessionData(t,function({profile:e,hybrid:t,offline:n}){if(t&&n)return!0;switch(e){case"ResponsiveOffline":case"NativePhone":case"TabletOffline":case"PhoneOffline":case"HybridPhoneOffline":case"HybridTabletOffline":return!0;default:return!1}}({profile:e.profile,hybrid:"hybrid"in e&&e.hybrid,offline:e.offline}));var o,a;return this.sessionData=i,(0,K.addEnumerations)(i.enumerations),(r||this.isGuest
7())&&this.isOffline()?(0,Q.Iy)(ee(this.restoreSessionOnUnauthorized.bind(this))):r?(0,Q.Iy)(ee((async()=>mx.reload()))):(0,Q.Iy)((o=this.failOnUnauthorized.bind(this),async(e,t)=>{try{return await t(e)}catch(t){const n=(0,P.isJson)(e.body)&&e.body.action;if(t instanceof J.y&&"login"!==n)return await o(t);throw t}})),!r&&i.keepalive&&setInterval((()=>{(0,B.Hw)().catch((()=>{}))}),i.keepalive),(0,Q.Iy)((a=()=>(0,P.ensure)(this.sessionData).csrftoken,(e,t)=>{const n={url:e.url,init:{...e.init,headers:new Headers(e.init.headers)},body:e.body};return n.init.headers.append("X-Csrf-Token",a()),t(n)})),i}async loadCachedSessionData(){const e=await this.sessionStore.get();return void 0!==e?JSON.parse(e):void 0}async saveSessionData(){await this.sessionStore.set(JSON.stringify((0,P.ensure)(this.sessionData)))}async getCachedProfile(){const e=await this.sessionStore.get(),t=void 0!==e?JSON.parse(e):void 0;if(t)return t.uiconfig.profile.kind}async loadSessionData(e,t){var n;const r=t?await this.loadCachedSessionData():void 0;if(r){const{isDevModeEnabled:e,bundleVersion:t,mxVersion:n}=r;this.startupLogger.debug(`Found a cached session data created by the bundle ${t} in Mendix ${n}. The cached session is ${e?"":"not "}in development mode.`)}const i=r&&this.bundleVersion&&r.bundleVersion===this.bundleVersion;r&&this.startupLogger.debug(`The cached session data is ${i?"":"not "}valid.`);const o=e&&(null==r?void 0:r.isDevModeEnabled)&&!1!==navigator.onLine;if(i&&!o)return this.startupLogger.debug("The app will use the cached session data."),r;this.startupLogger.debug("The app will not use the cached session data.");try{const e=new T.u;this.startupLogger.trace("Getting a new session from runtime.");
7const t={...await this.getSessionData(),bundleVersion:this.bundleVersion,mxVersion:this.mxVersion},n=e.measure();return this.startupLogger.log(n.ms>5e3?"warning":"debug",`Created a new session in ${n} milliseconds`),t}catch(e){if(e instanceof te.n&&401===e.status)this.startupLogger.error("Could not create a session because the server responded with 401 (Unauthorized). This may happen if the authentication token is no longer valid. The app will clear the stored session and token and restart."),await this.clearCachedSessionData(),await(null===(n=this.tokenStore)||void 0===n?void 0:n.remove());else{const t=e instanceof Y.h||i?"debug":"error";if(this.startupLogger.log(t,"An error occurred while creating a new session."+(i?" The app will start using the cached session data.":""),e),i)return r}throw e}finally{this.unregisterRetryGetSessionDataMiddleware()}}async getSessionData(){var e;const t=await(null===(e=this.tokenStore)||void 0===e?void 0:e.get()),n=(0,P.ensure)(this.sessionParams);return(0,B.gP)(t?{authtoken:t,...n}:n)}async restoreSessionOnUnauthorized(){try{const{csrftoken:e}
7=await this.getSessionData();(0,P.ensure)(this.sessionData).csrftoken=e,await this.sessionStore.set(JSON.stringify(this.sessionData))}catch(e){if(!(e instanceof J.y))throw e;await this.failOnUnauthorized(e)}}async failOnUnauthorized(e){var t;await this.clearCachedSessionData(),await(null===(t=this.tokenStore)||void 0===t?void 0:t.remove());const n=401===e.status?419:e.status;return this.authLogger.info(`The client is not authorized. Request failed with status code ${n}. Removing token and session.`),await this.onUnauthorized(n,this.isOffline()&&this.shouldGenerateToken),(0,X.never)()}}var re=n(4160),ie=n(8934),oe=n(6598),ae=n(2749),se=n(3772);const ce=n(5082),le=n(7950),ue=n(2180),de=n(2260),fe=n(9658),he=n(3524),pe=n(2544),ge=n(136),me=n(4041),ve=n(1015),{get:ye}=n(4036),{AssertionError:be}=n(234),we=n(7563),xe=n(8007),_e=n(1178),Se=n(9687),Ce=n(455),Ee=n(9488),Oe=n(6618),je=n(646);function ke(e,t,r){e=e||{};const i=r.getLogger(c.LogNode.Navigation);var o=this,s=!1,l=null,u=null,d=!1,f="desktop",h=null,p=e.openUrlFn||function(e,t,n){window.open(e,n)};this.startup=function(e){const t=(0,m.getSession)();var r,i,a=t.getConfig("uiconfig");!function(){const e=(0,oe.getLocale)();document.documentElement.lang=e.languageTag}(),function(e){xe.remove(document.body,"profile-"+f),f=e.profile.name.toLowerCase(),h=e.profile.loginPageSettings,xe.add(document.body,"profile-"+f)}(a),r=t.getUserRoleNames(),i=Ee.map(r,(function(e){return"role-"+e.toLowerCase()})),xe.add(document.body,i),_e(window,"resize",Oe.hitch(o,"resize")),function(){l=new ue,u=new de;const e=(0,m.getSession)();var t=e.getConfig("demoUsers");if(t){Ee.forEach(t,(function(t){t.active=t.name===e.getUserObject().get("Name")}));var n=new he({demoUsers:t});document.body.appendChild(n.domNode),n.startup()}}(),function(e,t){e.hasReporting?n.e(4).then(function(){var e=[n(8543)];t.apply(null,e)}.bind(this)).catch(n.oe):t()}(a,(function(){!function(e){const t=(0,m.getSession)(),n=t.getConfig("uiconfig.widgets"),r=t.getConfig("uiconfig.pluginWidgets");if(n.length||r.length){a=(o=document.querySelector("head")).querySelector("link[href*='.css']"),s=ve.createCssLink("widgets/widgets.css"),a?o.insertBefore(s,a):o.appendChild(s);var i=window.mx.modulePath.substr(0,window.mx.modulePath.length-1);window.dojo.registerModulePath("widgets",i)}var o,a,s;n.length&&(Ee.forEach(n,(function(e){var t=e.split(".")[0];window.dojo.registerModulePath(t,window.mx.modulePath+t)})),dojoDynamicRequire(["widgets/widgets"])),Ce(e)}((function(){d="rtl"==document.body.dir.toLowerCase(),s=!0,e()}))}))},this.toString=function(){return"mxui.sys.UI"},this.getProfile=function(){return f},this.isRtl=function(){return d},this.resize=function(){this.getContentForm().resize()};const g=Symbol("isExecuting");this.execute=function(e,t){if(e.disabledDuringExecution&&e[g])return;const n=Object.assign({},t,{context:void 0,extraParams:void 0,origin:void 0,callback:void 0,error:void 0,currentForm:t.origin}),r={};Object.keys(e.argMap).forEach((n=>{const i=e.argMap[n],o=t.context.getWidgetObject(i.widget),a=o?{object:o}:t.extraParams?t.extraParams[i.widget+"|"+i.source]:void 0;a&&(r[n]=a)})),e.disabledDuringExecution?(e[g]=!0,(0,se.j)(e,n,r,(()=>{delete e[g],t.callback&&t.callback()}),(n=>{delete e[g],t.error?t.error(n):n instanceof ie.ValidationError||(0,v.handleError)(n)}))):(0,se.j)(e,n,r,t.callback,t.error)},this.back=function(){ge.back()},this.showProgress=function(e,t){return l.add(e||"",t)},this.hideProgress=function(e){return l.remove(e)},this.showUnderlay=function(e){u.show(e),document.body.setAttribute("data-disable-interaction",!0)},this.hideUnderlay=function(e){u.hide(e),document.body.removeAttribute("data-disable-interaction")},this.toggleSidebar=function(){i.debug("Toggle sidebar");var e=this.getContentForm();if(!e)throw new Error("Trying to toggle the sidebar but no form is yet available.");e.publish("toggleSidebar")},this.showLogin=function(n){if(402!==n)if(h&&h.page)this.openForm2(h.page,{},h.title,t.getContentForm(),{location:h.location});else{var r,i=je.get("originURI");if(i){const e="https:"===window.location.protocol?{sameSite:"None",secure:!0}:{};return je.remove("originURI",e),void window.mx.redirect(n?function(e){const t=we.parseUrl(e);return t.url+"?"+we.stringify(Object.assign({},t.query,{messageCode:n}))}(i):i)}r=function(){e.customLoginFn?e.customLoginFn(n):new fe({messageCode:n}).show()},s||xe.add(document.body,"profile-"+f),window.i18nMap?r():ye(window.mx.appUrl+"js/login_i18n.json","json").then((e=>{window.i18nMap=e})).then(r)}else this.exception((0,ae.translateLoginMessage)("http402"))},this.openForm2=async function(e,n,r,o,s,c){const l=Object.entries(n).filter((e=>{let[,t]=e;return t})).map((e=>{let[t,n]=e;return(0,a.subscribe)({guid:n,tag:`currently loading page (${t})`})}));c&&o.closePage(c,!0),i.debug(`Open a page with id: ${e}. ${c?` Number of pages to close: ${c}`:""}`);try{switch(s.location){case"popup":case"modal":return await t.openFormInPopup(e,n,r,s
7);case"content":return await t.openFormInContent(e,n,r,s);case"node":return await t.openFormInNode(s.domNode,e,n,r,s);default:throw new be}}finally{l.forEach((e=>e.unsubscribe()))}},this.getPageParameters=async function(e){return new Promise(((t,n)=>ce.get(e,(e=>t(e.parameters)),n)))},this.reload=function(e){i.debug("Reload");var t=this.getContentForm();if(!t)throw new Error("Trying to refresh the content form but no form is yet available.");t.reload(e)},this.getTemplate=function(e,n){return t.getTemplate(e,n)},this.getContentForm=function(){return t.getContentForm()},this.makeShareId=function(e,t){return"context_seed_"+t+"_"+e.hash},this.info=function(e,t){this.showMessage("info",e,t)},this.warning=function(e,t){this.showMessage("warning",e,t)},this.error=function(e,t){this.showMessage("error",e,t)},this.exception=function(e){this.showMessage("error",e,!0)},this.showMessage=function(e,t,n){(function(e,t){return new le({type:t,content:e})})(t,e).show(n)},this.confirmation=function(e){new pe({content:e.content,proceed:e.proceed||(0,ae.translate)("mxui.widget.DialogMessage","ok"),cancel:e.cancel||(0,ae.translate)("mxui.widget.DialogMessage","cancel"),handler:e.handler,onCancel:e.onCancel}).show()},this.canMoveBack=function(){return!ge.isAtBeginning()},this.downloadFile=function(e){let t="";const n=e&&e.mxobject,r=n.metaData.isRemoteFileEntity;var i,o;function a(){p(t,n.get("Name"),"mendix_file")}(n&&n.get("HasContents")||r)&&(t=window.mx.data.getDocumentUrl(n.getGuid(),r?void 0:n.get("changedDate"),!1,r?void 0:encodeURIComponent(n.get("Name"))),"window"===e.target||(i=Se("chrome")&&void 0!==window.externalHost,o=Se("mobile"),i||o)?(t+="&target=window",(Se("iphone")||Se("ipad"))&&(Se("safari")||window.navigator.standalone)?new pe({caption:(0,ae.translate)("mxui.widget.DialogMessage","file_download"),content:(0,ae.translate)("mxui.widget.DialogMessage","file_download_message"),proceed:(0,ae.translate)("mxui.widget.FileInput","download"),cancel:(0,ae.translate)("mxui.widget.DialogMessage","cancel"),handler:a}).show():a()):me.download({url:t+"&target=internal",target:e.target,error:function(t){e.error?e.error(t):(0,v.handleError)(t)}}))},this.customBackButtonHandler=null}async function Re(e,t){if(!e.url.startsWith("file://"))return t(e);if(e.init.method&&"get"!==e.init.method.toLowerCase())throw new TypeError("Only GET requests are supported for file-urls");return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.onload=()=>{t(new Response(r.response,{status:r.status||200,statusText:r.statusText||"OK"}))},r.onerror=()=>{n(new TypeError("File request failed"))},r.open("get",e.url,!0),r.send(void 0)}))}n(8923);let Ne={},Te=0;async function Ae(e,t){const n=(new Date).getTime(),r=`${n}-${Te++}`,i={url:e.url,init:{...e.init,headers:new Headers(e.init.headers)},body:e.body};i.init.headers.append("X-Mx-ReqToken",r),(0,P.isJson)(i.body)&&Object.keys(Ne).length>0&&(i.body={...i.body,profiledata:Ne},Ne={});const o=await t(i);return Ne[r]=(new Date).getTime()-n,o}var Pe=n(4036);function De(){return!("cordova"in window)&&"serviceWorker"in navigator}var Ie=n(2726);class Me{constructor(e,t){this.fileBackend=e,this.logger=t.getLogger(c.LogNode.FileSystem)}async downloadFile(e,t){this.logger.trace(`Download file from "${e}" to "${t}"`);const n=new T.u;await this.fileBackend.downloadFile(e,t),this.logger.trace(`Download file from ${e} completed after ${n.measure()} milliseconds`)}async listDir(e){return this.fileBackend.listDir(e)}async moveFile(e,t){return this.logger.trace(`Move file from "${e}" to "${t}"`),this.fileBackend.moveFile(e,t)}async moveDir(e,t){return this.logger.trace(`Move dir from "${e}" to "${t}"`),this.fileBackend.moveDir(e,t)}async readFile(e){return this.logger.trace(`Read file from "${e}"`),this.fileBackend.readFile(e)}async removeDir(e){return this.logger.trace(`Remove dir from "${e}"`),this.fileBackend.removeDir(e)}async removeFile(e){return this.logger.trace(`Remove file from "${e}"`),this.fileBackend.removeFile(e)}async storeFile(e,t){return this.logger.trace(`Store blob to file "${t}"`),this.fileBackend.storeFile(e,t)}toAbsolutePath(e){return this.fileBackend.toAbsolutePath(e)}}var Le=n(2381),$e=n(7754),Fe=n(9505),Be=n(6201),Ve=n(4337),ze=n(8609),Ue=n(6304);class We{supported(){return!1}getTransaction(){throw new s.AssertionError("Unsupported instruction has no transaction")}getDescription(){throw new s.AssertionError("Unsupported instruction has no description")}async postMigrate(){return Promise.resolve()}}class qe extends We{}class He extends We{}class Ge extends We{}class Ze extends We{}class Ke extends We{}class Xe extends We{constructor(e,t,n){super(),this.entity=e,this.droppedAttributes=t,this.newAttributesMeta=n}supported(){return!0}getDescription(){return`Drop columns (${this.droppedAttributes.join(", ")}) from '${this.entity}'.`}getTransaction(){const[e,t]=Object.entries(this.newAttributesMeta).reduce((([e,t],[n,r])=>{const i=(0,Ue.Q2)(n);return e.push(i),t.push({name:i,type:(0,Fe.Sp)(r.type)}),[e,t]}),[[],[]]),n="temp_table",r=(0,Fe.VB)(n,t.concat({name:ze.vK,type:"text"}),ze.vK),i=e.concat(ze.vK).join(", "),o=[r,[`INSERT INTO ${n} (${i}) SELECT ${i} FROM ${(0,Ve.toUserScopedName)((0,Ue.Q2)(this.entity))}`,[]],(0,Be.W)((0,Ue.Q2)(this.entity)),[`ALTER TABLE ${n} RENAME TO ${(0,Ve.toUserScopedName)((0,Ue.Q2)(this.entity))}`,[]]];return(0,$e.Fe)(o)}}var Ye=n(2235),Qe=n(7946);class Je extends We{constructor(e,t){super(),this.entity=e,this.fileType=t,this.filesToDelete=[]}supported(){return!0}getDescription(){return`Drop table '${this.entity}'.`}getTransaction(){let e=new $e.YW;"none"!==this.fileType&&(e=(0,$e.Rj)((0,Qe.Q)(this.entity)).chain((e=>{e.forEach((e=>{const t={guid:e[ze.vK],changedDate:e[ze.FH],isThumb:!1};this.filesToDelete.push(t),"image"===this.fileType&&this.filesToDelete.push({...t,isThumb:!0})}))})));const t=[(0,Be.W)((0,Ue.Q2)(this.entity)),...(0,Ye.CW)([this.entity])];return e.chain((()=>(0,$e.Fe)(t)))}async postMigrate(){(0,j.offlineData)().deleteFiles(this.filesToDelete)}}function et(e,t,n){const r=(0,P.indexByKey)((([,e])=>(0,P.ensure)(e.modelId))),i=r(Object.entries(t)),o=r(Object.entries(n)),a=new Set([...Object.keys(i),...Object.keys(o)]),s=[],{droppedAttributes:c,renamedAttributes:l,typeChangeAttributes:u,addedAttributes:d}=Array.from(a).reduce(((e,t)=>(i[t]&&o[t]?(i[t][0]!==o[t][0]&&e.renamedAttributes.push([i[t][0],o[t][0]]),i[t][1].type!==o[t][1].type&&e.typeChangeAttributes.push([i[t][0],i[t][1].type,o[t][1].type])):i[t]&&!o[t]?e.droppedAttributes.push(i[t][0]):!i[t]&&o[t]&&e.addedAttributes.push([o[t][0],o[t][1].type]),e)),{droppedAttributes:[],addedAttributes:[],renamedAttributes:[],typeChangeAttributes:[]});return 0!==c.length&&s.push(new Xe(e,c,n)),0!==l.length&&s.push(new Ge),0!==u.length&&s.push(new Ze),0!==d.length&&s.push(new Ke),s}function tt(e){return"System.FileDocument"===e.objectType||e.properties.superclasses.includes("System.FileDocument")}var nt=n(6596);function rt(e,t){const n=t.sync_config;if(!n)return{shouldSync:!1};if(!e)return{shouldSync:!0};if(e.bundleVersion===t.bundleVersion)return{shouldSync:!1};const r=e.sync_config,i=new Set((0,P.ensure)(null==r?void 0:r.schema)),o=e.metadata.filter((({objectType:e})=>i.has(e))),a=new Set((0,P.ensure)(n.schema)),s=t.metadata.filter((({objectType:e})=>a.has(e)));if(![...o,...s].every((e=>void 0!==e.modelId&&Object.values(e.attributes).every((e=>void 0!==e.modelId))))){const i=h.comparer.structural;return i(r,n)?{shouldSync:!n.schema.map((n=>({oldAttrs:e.metadata.find((e=>e.objectType===n)).attributes,newAttrs:t.metadata.find((e=>e.objectType===n)).attributes}))).every((({oldAttrs:e,newAttrs:t})=>i(e,t)))}:{shouldSync:!0}}const c=function(e,t){const n=(0,P.indexByKey)((e=>(0,P.ensure)(e.modelId))),r=n(e),i=n(t),{droppedMetadata:o,addedMetadata:a,comparableMetadata:s}=function(e,t){const n=new Set([...Object.keys(e),...Object.keys(t)]);return Array.from(n).reduce(((n,r)=>(e[r]&&t[r]?n.comparableMetadata.set(r,{oldMetadata:e[r],newMetadata:t[r]}):e[r]&&!t[r]?n.droppedMetadata.push(e[r]):!e[r]&&t[r]&&n.addedMetadata.push(t[r]),n)),{comparableMetadata:new Map,droppedMetadata:[],addedMetadata:[]})}(r,i),c=[],l=a.map((e=>e.objectType));0!==o.length&&c.push(...o.map((e=>{return new Je(e.objectType,tt(t=e)?function(e){return tt(e)&&("System.Image"===e.objectType||e.properties.superclasses.includes("System.Image"))}(t)?"image":"file":"none");var t}))),0!==l.length&&c.push(...l.map((e=>new He)));const u=function(e){const t=[];for(const[,{oldMetadata:n,newMetadata:r}]of e)n.objectType!==r.objectType&&t.push(new qe),t.push(...et(n.objectType,n.attributes,r.attributes));return t}(s);return c.push(...u),c}(o,s);return 0===c.length?{shouldSync:!1}:c.every((e=>e.supported()))?{shouldSync:!1,dbModelSyncInstructions:c}:{shouldSync:!0}}const it=n(7563),ot=n(4362),{reloadApp:at,tryRestorePage:st}=n(5233),{MxObjectCache:ct}=n(5804),lt=n(4238);function ut(e){var t=this,r=!1,i=[];this.version="9.24.33.59499",this.appUrl=e.appUrl,this.homeUrl=e.homeUrl,this.remoteUrl=e.remoteUrl,this.afterLoginAction=e.afterLoginAction,this.modulePath=e.modulePath,(0,v.setErrorHandler)(re.x);const o={handleErrors:!0,isQuiet:!1,...e.logger};o.isQuiet||(0,c.registerConsoleLogsListener)(),o.handleErrors&&(0,c.logUnhandledErrors)();const a=c.LogManager.get();a.setLogFilter(c.defaultLogFilter),this.startupLogger=a.getLogger(c.LogNode.Startup),this.authLogger=a.getLogger(c.LogNode.Auth);const{sessionStore:s,tokenStore:l,shouldGenerateToken:u,bundleVersion:d}=e.session,f=`Starting app on web using bundle with deployment id: ${d}.\nMX Client version is ${this.version}.`;this.startupLogger.debug(f);const h=new ne(s,l,this.startupLogger,this.authLogger,d,this.version,u,(function(e,n){(function(e,t){sessionStorage.setItem("reloginReason",JSON.stringify({code:e,showLogin:t,expires:(new Date).getTime()+6e5}))})(e,n),t.reload()}));m.setSession(h),this.session=h;const p=new ct;this.data=new R(e.data,p);const g=new ot;async function b(r,i){let o,s;if(t.isOffline()){var l,u,d;if(!window.isSecureContext)throw new Error("Offline functionality is not available because the app is not opened in a Secure Context (using https).");const{buildOfflineDataBackend:r}=await n.e(2).then(n.bind(n,6041)),{FileBackend:o}=await n.e(2).then(n.bind(n,7792)),f=e.offlineBackend.createStoreFn?e.offlineBackend.createStoreFn():await async function(e){const t=await(0,N.h)("mendixapp.db",e);return window.__internal_db_dontUse__=t,t}(window.wasqliteOptions),h=function(e,t){return function(e,t){const n=e=>t=>e(r(t)),r=e=>({executeSql:(n,r,i,o)=>{const a=new T.u;e.executeSql(n,r,((e,r)=>{t.debounced.trace(`SQL request was completed in ${a.measure()} milliseconds. Rows count: ${r.rows.length}. Rows affected: ${r.rowsAffected}. Query: "${n}`),null==i||i(e,r)}),((e,r)=>{var i;return t.warn(`SQL request was failed with the error: ${r}. Query: "${n}`),null!==(i=null==o?void 0:o(e,r))&&void 0!==i&&i}))}});return{original:e,...e,readTransaction:(t,r,i)=>e.readTransaction(n(t),r,i),transaction:(t,r,i)=>e.transaction(n(t),r,i)}}(e,t.getLogger(c.LogNode.Database))}(f,a),g=t.session.getOfflineConfig();let m;if(!(window.cordova||null!==(l=e.offlineBackend)&&void 0!==l&&l.getDocumentUrlFn)){const{setUserScopedNamePrefix:r}=await Promise.resolve().then(n.bind(n,4337));t.startupLogger.debug("Using scoped database and file system."),r(`mx${w(i)}`),m=x(i),await async function(e,n){if(window.localStorage.getItem(_))return void t.startupLogger.debug("The client uses user scoped files directories.");const r=`${Le.YC}/${Le.iT}`,i=`${Le.YC}/${Le.AB}`;if(await e.listDir(r).length)return t.startupLogger.debug("The client doesn't need an upgrade to user scoped files directories."),void window.localStorage.setItem(_,"true");t.startupLogger.debug("Migration to user scoped files directories started.");const o=`${x(n)}/${Le.iT}`,a=`${x(n)}/${Le.AB}`,s=new T.u;try{await e.moveDir(r,o),await e.moveDir(i,a),t.startupLogger.debug(`Migration to user scoped files directories completed in ${s.measure()} milliseconds`)}catch(e){throw t.startupLogger.error("Migration to user scoped files directories failed!",e),e}window.localStorage.setItem(_,"true")}(new Me(new o(e.offlineBackend,m),a),i)}const v=null!==(u=null===(d=e.offlineBackend)||void 0===d?void 0:d.getDocumentUrlFn)&&void 0!==u?u:(e,t,n
7)=>`filesystem:${window.mx.appUrl}temporary/${m?`${m}/`:""}${n?Le.AB:Le.iT}/${e}?${Date.now()}`,y=await r(p,h,g,new Me(new o(e.offlineBackend,m),a),a,v,function(){try{var e,n;return null===(e=(n=window).openDatabase)||void 0===e?void 0:e.call(n,"MendixDatabase","1","Mendix Database",10485760)}catch(e){String(e).includes("Web SQL is deprecated")||t.startupLogger.error("create Web SQL database failed!",e)}}());s=y.offlineData,t.data.startup(y.dataBackend)}else{const n=new q(e.data.onlineBackend,p);await(0,y.Pz)(p,Object.assign({},t.session.getConfig(),{instructions:void 0})),o=new V(p),t.data.startup(n)}(0,j.initializeCore)(t.session.getConfig(),r.languages,t.session.getConfig("microflows"),o,s)}function w(e){return e.isGuest()?"anonymous":e.getUserId()}function x(e){return`${Le.YC}/app/${w(e)}`}this.ui=new ke(e.ui,g,c.LogManager.get()),this.toString=function(){return"mendix.Client"},this.isLoaded=function(){return r},this.isOffline=function(){return this.session.isOffline()},this.addOnLoad=function(e){r?e():i.push(e)},this.reload=function(){this.redirect(this.homeUrl)},this.reloadWithState=function(){at(!0)},this.redirect=function(e){(window.cordova?/^(https?|file|app):\/\//:/^(https?|file):\/\//).test(e)||"/"===e[0]||(e=this.appUrl+e);const t=it.parseUrl(e),n=it.stringify(Object.assign({},t.query,it.parse(window.location.search))),r=t.url+(""!==n?`?${n}`:"")+window.location.hash;window.location.href===r?window.location.reload():window.location.href=r},this.startup=async function(){if(r)throw new Error("Client has already been started up!");const o=function(){const e=sessionStorage.getItem("reloginReason");if(!e)return null;sessionStorage.removeItem("reloginReason");const t=JSON.parse(e);return t.expires>(new Date).getTime()?t:null}();try{await async function(){var t;window.cordova&&(0,Q.Iy)(Re),e.timeout&&(0,Q.Iy)((t=e.timeout,(e,n)=>{const r=n(e),i=new Promise(((n,r)=>{setTimeout((()=>r(new Y.h(`Request ${function(e){var t;return(null!==(t=e.init.method)&&void 0!==t?t:"get").toUpperCase()+" "+e.url+((0,P.isJson)(e.body)&&e.body.action?`(${e.body.action})`:"")}(e)} timed out after ${t} ms.`))),t)}));return Promise.race([r,i])})),(0,Q.Iy)(Ae),window.cordova&&-1===window.XMLHttpRequest.toString().indexOf("[native code]")&&(delete window.fetch,await n.e(5).then(n.bind(n,7147)))}();const r=await(0,Pe.get)((0,W.getStaticResourceUrlFromPath)(`metamodel.json?${window.dojoConfig.cacheBust}`),"json");if((0,ae.setSystemTexts)(r.systemTexts),o&&!0===o.showLogin)return void mx.ui.showLogin(o.code);let i;try{const t=await this.session.getCachedProfile();i=await this.session.startup(Object.assign({hybrid:Boolean(window.cordova),offline:void 0!==e.offline?Boolean(e.offline):De()&&window.isSecureContext,referrer:e.referrer||null,profile:it.parse(document.location.search).profile||e.profile||t||"",timezoneoffset:(new Date).getTimezoneOffset(),timezoneId:Intl.DateTimeFormat().resolvedOptions().timeZone,preferredLanguages:navigator.languages?navigator.languages:navigator.language?[navigator.language]:[]},navigator&&navigator.standalone?{longLiveTheCookie:!0}:null,e.hybridTabletProfile?{hybridTabletProfile:e.hybridTabletProfile}:null,e.hybridPhoneProfile?{hybridPhoneProfile:e.hybridPhoneProfile}:null))}catch(e){return void function(e,t,n){if(e instanceof te.n&&e.status&&409===e.status)t.exception(e.message);else if(e instanceof Y.h)t.exception((0,Ie.translatedError)(e).content);else{const r=e instanceof te.n&&e.status&&[402,404,403,500,503].includes(e.status)?e.status:0;t.showLogin(n?n.code:r)}}(e,this.ui,o)}const s="rtl"===this.session.getConfig("uiconfig.direction")?e.rtlRedirect:e.ltrRedirect;if(s)return void this.redirect(s);const c=t.session.getConfig("isDevModeEnabled"),l=t.session.getUserRoleNames().map((e=>`"${e}"`)),u=l.length?`the roles ${l.join(", ")}`:"no roles";if(t.startupLogger.debug("The app "+(c?"is in development mode and ":"")+`will start with ${t.session.isGuest()?"an anonymous":"a named"} user `+`with ${u} `+`in ${t.session.isOffline()?"offline":"online"} mode.`),await async function(){if(t.session.getConfig("isDevModeEnabled")){const e=new I(t.remoteUrl,a);e.addOnReload((e=>at(e,!0))),e.addOnUpdateStyling((()=>function(){const e=document.head.querySelectorAll('link[rel="stylesheet"][href^="theme.compiled.css?"]');if(0===e.length)return;const t=()=>e.forEach((e=>document.head.removeChild(e))),n=document.createElement("link");n.rel="stylesheet",n.href=`theme.compiled.css?${Date.now()}`,n.addEventListener("load",(()=>{requestAnimationFrame(t)})),document.head.appendChild(n)}())),await e.connect()}}(),await b(r,this.session),await async function(){g.startup({profile:t.session.getConfig("uiconfig.profile.title")||"Mendix",urlPrefix:e.appPath}),await new Promise((e=>t.ui.startup(e))),e.afterNavigationAction&&lt.after(g.getContentForm(
7),"onNavigation",e.afterNavigationAction)}(),this.isOffline()){const e=this.ui.showProgress(void 0,!0);try{const e=rt(await this.session.loadCachedSessionData(),i);this.startupLogger.debug(` The app will ${e.shouldSync?"":"not "}perform a startup sync.`);const t=this.session.getOfflineMetadata(),n=await(0,j.offlineData)().retrieveOfflineMetadata();await async function({shouldSync:e,dbModelSyncInstructions:t},n,r,i){if(e)await o();else if(t){const e=t.length>1;i.info(`Found ${t.length} instruction${e?"s":""} to update the local database to match the new domain model.`);try{const e=new T.u;i.info("Updating the local database to match the new domain model."),await(0,j.offlineData)().executeDBModelSyncInstructions(t,n);const r=e.measure();i.info(`Updating the local database to match the new domain model completed in ${r} milliseconds.`)}catch(e){i.warn("An error occurred while updating the local database schema. Falling back to a full startup synchronization.",e),await o()}}async function o(){const e=new T.u,t=(0,nt._x)(r,n);await(0,j.offlineData)().runFullSynchronization(!0,t);const o=e.measure();i.log(o.ms>nt.mR?"warning":"info",`Startup synchronization completed in ${o} milliseconds.`)}}(e,t,n,this.startupLogger)}finally{this.ui.hideProgress(e)}await this.session.saveSessionData()}await async function(){st()||await(0,y.Pz)(p,{instructions:t.session.getConfig().instructions},g.getContentForm())}(),r.registerServiceWorker&&De()&&null!=t.session.getConfig("uiconfig.profile.progressiveWebApp")&&(function({offline:e,precaching:t,profileKind:n,languageCode:r,isReactClient:i}){const o=new URL(mx.appUrl);o.pathname+="service-worker.js",e&&o.searchParams.set("offline","true"),t&&o.searchParams.set("precaching","true"),i&&o.searchParams.set("isReactClient","true"),o.searchParams.set("profileKind",encodeURIComponent(n)),o.searchParams.set("languageCode",encodeURIComponent(r)),navigator.serviceWorker.register(o.toString()).catch((e=>(0,v.handleError)(e)))}({offline:t.isOffline(),precaching:t.session.getConfig("uiconfig.profile.progressiveWebApp.precaching"),profileKind:t.session.getConfig("uiconfig.profile.kind"),languageCode:t.session.getConfig("locale.code"),isReactClient:!1,cachebust:t.session.getConfig("cachebust")}),!1===t.session.getConfig("uiconfig.profile.progressiveWebApp.installPrompt")&&window.addEventListener("beforeinstallprompt",(e=>{e.preventDefault()})))}catch(e){return void this.onError(e)}for(r=!0;i.length>0;)i.shift()()},this.login=function(e,t,n,i){this.session.login({username:e,password:t}).then((()=>{n&&n(),this.afterLoginAction?this.afterLoginAction():r?this.reload():this.startup()}),i)},this.logout=function(){this.session.logout().then((()=>this.data.clear((()=>this.reload()))))};const _="usesScopedDirectories"}c.LogManager.get().getLogger()},9513:(e,t,n)=>{const r=n(6618),{ValidationError:i}=n(8934),{handleError:o}=n(1881);window.mx.ui.action=function(e,t,n){var a;function s(e){return function(){try{e&&e.apply(n,arguments)}finally{void 0!==a&&window.mx.ui.hideProgress(a),t.complete&&t.complete.apply(n)}}}console.warn("DEPRECATED: mx.ui.action. Use mx.data.action directly instead. -- will be removed in version: 10.0"),t=t||{},r.setObject("params.actionname",e,t),"progress"in t&&(a=window.mx.ui.showProgress(t.progressMsg,"modal"===t.progress)),window.mx.data.action({callback:s(t.callback),error:s((function(e){t.error?t.error.call(n,e):e instanceof i||o(e)})),context:t.context,async:t.async,params:t.params,origin:t.origin||window.mx.ui.getContentForm()})}},1015:(e,t,n)=>{const r=n(5034),i=n(4296),{getStaticResourceUrl:o}=n(6199),a=n(4784),s=n(6618),c=n(329),l=n(9488),u=n(8007),d=n(1120),f=n(2496),h=n(2153);var p=0,g=document.createElement("p");function m(e){e=e||{};var t=function(e,t){return e||(e=p++,t.setAttribute("data-id",e)),e};return function(n,r,o){var a="string"==typeof n?n:n.getAttribute("data-id"),c=e[a];switch(arguments.length){case 1:return c;case 2:return null===r?void delete e[a]:"object"==typeof r?c?s.mi
7xin(c,r):e[t(a,n)]=r:c&&c[r];case 3:return null===o?(c&&delete c[r],void(i.objectIsEmpty(c)&&delete e[a])):(c||(c=e[t(a,n)]={}),c[r]=o)}}}var v={minContainerHeight:100,nodeTypes:{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12},walkNode:function(e,t,n){var r,i=[0],o=function(e){try{r=!!e&&!1!==t.call(n,e,i.slice())}catch(e){r=!1}if(r&&e.hasChildNodes){for(var a=i.push(0)-1,s=null,c=e.firstChild;c;)c=(s=c).nextSibling,o(s),i[a]++;i.pop()}};o(e)},nextNode:function(e,t){if(!e||!t)return!0;var n=t.length,r=e.length,i=t.length-1;return r>n||n==r&&t[i]>e[i]},getAncestorNode:function(e,t,n){return e?e.nodeName===t?e:0!=--n&&v.getAncestorNode(e.parentNode,t,n):null},findOverflowParent:function(e){for(;(e=e.parentNode)&&e!==document.body;){var t=f.get(e,"overflow");if("auto"===t||"scroll"===t)return e}return document.documentElement.scrollTop>0?document.documentElement:document.body},scrollOverflowParentTo:function(e,t){var n=v.findOverflowParent(e);n&&(n.scrollTop=t)},getElementsByTagNameNoNS:function(e,t){if(e.getElementsByTagNameNS)return e.getElementsByTagNameNS("*",t);if("selectNodes"in e)return e.setProperty("SelectionLanguage","XPath"),e.selectNodes("//*[local-name() = '"+t+"']");throw new Error("mxui.dom.getElementsByTagNameNoNS not supported")},escapeHTMLQuotes:function(e){return e.replace(/'/g,"&#39;").replace(/\"/g,"&#34;")},convertNlToBr:function(e){return e.replace(/\n/g,"<br />")},setSelectOptions:function(e,t,n){var r=v.create;if(e)for(var i in t=t||{},v.empty(e),e.appendChild(r("option",{value:""},"")),t){var o=r("option",{value:i},t[i]);e.appendChild(o),i==n&&(o.selected=!0)}},getSelectedValue:function(e){return"select"==e.nodeName.toLowerCase()&&-1!=e.selectedIndex?e.options[e.selectedIndex].value:null},getSelectedText:function(e){return e.options[e.selectedIndex].text},selectOptionByValue:function(e,t){for(var n=0;n<e.length;++n)e.options[n].value==t&&(e.options[n].selected=!0)},selectOptionByText:function(e,t){for(var n=0;n<e.length;++n)e.options[n].text==t&&(e.options[n].selected=!0)},enableNode:function(e){e.removeAttribute("readonly"),e.removeAttribute("disabled")},disableNode:function(e){e.setAttribute("disabled","disabled"),e.setAttribute("readonly","readonly")},disableSelection:function(e){return e.unselectable="on",!0},clearSelection:function(){var e=window,t=document.selection;if(t)try{t.empty&&t.empty()}catch(e){}else(t=e.getSelection&&e.getSelection())&&t.removeAllRanges&&t.removeAllRanges()},selectTextRange:function(e,t,n){if(e.createTextRange){var r=e.createTextRange();r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r.select()}else e.setSelectionRange&&e.setSelectionRange(t,n)},getCursorPosition:function(e){if(document.selection){var t=Math.abs(document.selection.createRange().moveStart("character",-1e6));return document.selection.createRange().moveEnd("character",-1e6),t}if(e.setSelectionRange)return e.selectionStart},getSelection:function(e){return document.selection?{start:Math.abs(document.selection.createRange().moveStart("character",-1e6)),end:Math.abs(document.selection.createRange().moveEnd("character",-1e6))}:e.setSelectionRange?{start:e.selectionStart,end:e.selectionEnd}:void 0},insertAtCaret:function(e,t){var n=this.getSelection(e),r=n.start+t.length,i=e.value;e.value=i.substring(0,n.start)+t+i.substring(n.end,i.length),this.selectTextRange(e,r,r)},liveConnect:function(e,t,n,r,i){3==arguments.length&&(r=n,n=null);var o={},a=[];for(var s in r){var l=s.split("."),d=l[0],f=l[1],h=r[s];if("string"==typeof h&&n[h]||"function"==typeof h){var p={fnc:h};d?o[String(d).toUpperCase()]=p:f&&a.push(p),f&&(p.clazz=f)}}var g=function(e){for(var t,n=0;t=a[n];n++)if(u.contains(e,t.clazz))return t;return null},m=function(e,t){"function"==typeof e?e(t):n&&n[e]&&n[e](t)};return c.connect(e,t,(function(t){var n=t.target,r=e,a={target:t.target};for(var s in t){var c=t[s];null!=c&&c instanceof Object||(a[s]=c)}for(;n!=r&&null!=n;){var l=o[n.nodeName],d=g(n);if(l){var f=l.clazz;l=!f||u.contains(n,f)?l:null}if(a.currentTarget=n,l&&m(l.fnc,a),d&&m(d.fnc,a),i&&(l||d))break;n=n.parentNode}}))},liveDisconnect:function(e){c.disconnect(e)}
7,create:function(e,t,n){var r,i=[].slice.call(arguments,1);if((t=t||{}).nodeName||"string"==typeof t?(n=i,t={}):n=i.slice(1),"#"==e)r=document.createDocumentFragment();else for(var o in r=document.createElement(e),t){var a=t[o];if("style"==o&&"string"!=typeof a){var s=r.style;for(var c in a)s[c]=a[c]}else r.setAttribute(o,a)}return l.forEach(n,(function(e){"string"==typeof e?l.forEach(e.split("\r\n"),(function(e,t){t>0&&r.appendChild(v.create("br")),r.appendChild(document.createTextNode(e))})):r.appendChild(e)})),r},synthesizeEvent:function(e,t){var n=s.mixin({},e,t);return n.preventDefault=function(){e.preventDefault()},n.stopPropagation=function(){e.stopPropagation()},n},capture:function(e,t,n){var r=!e.addEventListener,i=e[r?"attachEvent":"addEventListener"],o=e[r?"detachEvent":"removeEventListener"],a=r?"on"+t:t;return i.call(e,a,n,!0),{remove:function(){o.call(e,a,n,!0)}}},supports:function(e){if(e in document.body.style)return e},text:function(e,t){if(void 0===t)return"textContent"in e?e.textContent:e.innerText;e.innerHTML="",e.appendChild(document.createTextNode(t))},html:function(e,t){if(void 0===t)return e.innerHTML;e.innerHTML=t},orphan:function(e){var t=e.parentNode;t&&t.removeChild(e)},isOrphan:function(e){return!e.parentNode||e.parentNode.nodeType==v.nodeTypes.DOCUMENT_FRAGMENT_NODE},empty:function(e){for(var t;t=e.firstChild;)e.removeChild(t)},toArray:function(e){return l.map(e,(function(e){return e}))},escapeString:function(e){for(var t=e.split(/\r\n|\n/),n=[],r=0;r<t.length;++r)v.text(g,t[r]),n.push(g.innerHTML);return n.join("\n")},unescapeString:function(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&amp;/g,"&")},getCss:function(e,t){return t=t||document,e=o(e),i.find(t.getElementsByTagName("link"),(function(t){return t.href==e}))},createCssLink:function(e,t){var n={rel:"stylesheet",href:o(e)};return t&&(n.media=t),v.create("link",n)},addCss:function(e,t,n){t=t||document;var r=v.getCss(e,t);if(r)return r;var i=v.createCssLink(e,n);return t.querySelector("head").appendChild(i),i},removeCss:function(e,t){var n=v.getCss(e,t);return!!n&&(n.parentNode.removeChild(n),!0)},parseXml:function(e){const t=(new DOMParser).parseFromString(e,"text/xml");if(t.querySelector("parsererror"))throw new Error("Invalid XML received");return t},ieFocusable:{a:!0,body:!0,button:!0,frame:!0,iframe:!0,input:!0,isIndex:!0,object:!0,select:!0,textarea:!0},getTabIndex:function(e){if(!e||!e.getAttribute)return null;const t=e.getAttribute("tabindex");return"-32768"===t?"":t},moveFocusTo:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.setFocus;a("mobile")?r.clearFocus():t(e)},data:m(),getScopedData:m,moveIntoView:function(e,t){t=t||0;var n=d.position(e),r=h.getBox(),i=e.style,o=n.y+n.h+t,s=n.x+n.w+t;a("ios")&&(n.y=n.y+r.t,r.h=r.h+r.t,r.t=0),n.y<t||n.h+2*t>r.h?i.top=t+"px":o>r.h&&(i.top=n.y-(o-r.h)+"px"),n.x<t||n.w+2*t>r.w?i.left=t+"px":s>r.w&&(i.left=n.x-(s-r.w)+"px")},getNodeExtents:function(e){var t=f.getComputedStyle(e),n=d.getMarginExtents(e,t),r=d.getBorderExtents(e,t),i=d.getPadExtents(e,t);return{w:n.w+r.w+i.w,h:n.h+r.h+i.h}},dispatchEvent:function(e,t){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(t.substr(2,t.length),!0,!0),e.dispatchEvent(n)}else e.fireEvent&&e.fireEvent([t])}};e.exports=v},6309:(e,t,n)=>{const r=n(4296),i=n(6618),o=n(5454),a=n(708),s=n(1015),c=n(1219),l=n(4525),u=n(987),d=n(7074),f=n(7715),h=n(2260),p=n(9376),g=n(7950),m=n(8105),v=n(9658),y=n(2180),b=n(2062),w=n(8778),x=n(3668),_=n(9791),S=n(5501),C=n(4627),E=n(4708),O=n(7801),j=n(7632),k=n(2544),R=n(3432),N=n(3656),T=n(4984),A=n(6795),P=n(3792),D=n(3760),I=n(4823),M=n(6716),L=n(9032),$=n(4441),F=n(5717),B=n(6765),V=n(7294),z=n(3935),U=n(5893),W=n(259),q=n(1244),H=n(5794),G=n(2487),Z=n(4478),{Icon:K}=n(8128),X=n(9533),{FormatterType:Y}=n(45),Q=n(4046);window.mxui={html:{parser:a},dom:s,wm:{focus:o},widget:i.mixin(l,{_Widget:u,_WidgetBase:d,_Button:f,Underlay:h,Dialog:p,DialogMessage:g,Window:m,LoginDialog:v,Progress:y,DataGrid:b,TemplateGrid:w,TabContainer:x,TabContent:_,ReferenceSetSelector:S,DatePicker:C,SearchInput:E,HorizontalScrollC
7ontainer:O,VerticalScrollContainer:j,ConfirmationDialog:k,LoginButton:R,DropDownButton:N,DropDownItem:T,SidebarToggleButton:A,Button:P,GroupBox:D,DataView:I,ListView:M,NavigationList:L,NavigationListItem:$,SelectBox:F,ValidationMessage:B,ReactCustomWidgetWrapper:W,ReactWidgetWrapper:q}),mixin:{_Pluggable:H,_Contextable:G,_Stateful:Z}},r.registerInDojo("mxui/dom",s),r.registerInDojo("mxui/html/parser",a),r.registerInDojo("mxui/widget/_Button",f),r.registerInDojo("mxui/widget/_WidgetBase",d),r.registerInDojo("mxui/mixin/_Stateful",Z),r.registerInDojo("mxui/lib/ColumnResizer",c),r.registerInDojo("react",V),r.registerInDojo("react-dom",z),r.registerInDojo("react/jsx-runtime",U),r.registerInDojo("react/jsx-runtime.js",U),r.registerInDojo("mendix/components/web/Icon",{Icon:K}),r.registerInDojo("mendix/filters/builders",X),r.registerInDojo("mendix",{FormatterType:Y}),r.registerInDojo("mendix/hooks",Q)},50:(e,t,n)=>{const r=n(4238),i=n(136);var o=[],a={onTransitionBack:function(e){},onTransitionForward:function(e){}};function s(){return o[o.length-1]}r.after(i,"onNavigation",(function(e,t){var n=e?e.id:null;if(function(e,t,n){return e&&e.oldId===n&&e.newId===t}(s(),n,t.id)){o.pop();var r=s(),i=r?r.state:void 0;a.onTransitionBack(i)}else{var c={};a.onTransitionForward(c),o.length>=10&&(o[o.length-10].state=void 0),o.push({oldId:n,newId:t.id,state:c})}}),!0),e.exports=a},1654:()=>{var e=null,t=null,n=null;function r(n,r){var i=t.pageX>e.pageX?"right":"left",o="";"touchend"===n?o="end":"touchcancel"===n&&(o="cancel");var a=new CustomEvent("swipe"+i+o,{detail:{originPageX:e.pageX,originPageY:e.pageY,pageX:t.pageX,pageY:t.pageY},bubbles:!0});r.dispatchEvent(a)}function i(t){n&&r(t.type,t.target),n=null,e=null}window.document.addEventListener("touchstart",(function(t){if(!(t.touches.length>1)){var n=t.touches[0];e={pageX:n.pageX,pageY:n.pageY}}}),!0),window.document.addEventListener("touchmove",(function(i){var o,a=i.touches[0];t={pageX:a.pageX,pageY:a.pageY},null===n&&e&&(o=Math.abs(t.pageX-e.pageX),n=Math.abs(t.pageY-e.pageY)<=40&&o>40?"horizontalSwipe":null),n&&r(i.type,i.target)}),!0),window.document.addEventListener("touchend",i,!0),window.document.addEventListener("touchcancel",i,!0)},5619:(e,t,n)=>{const r=n(1015),i=n(4238),o=(n(1178),n(8007),n(4784)),a=n(136),s=n(50);!function(){if(o("ios")&&"cordova"in window&&"screenshot"in window.navigator){var t={NAVIGATING:1,TAKING_SCREENSHOT:2,IDLE:3,SWIPING:4,TRANSITIONING_TO_OFF_SCREEN:5,TRANSITIONING_BACK_TO_ORIGIN:6,TOUCH_CANCELED:7},n=t.NAVIGATING,c="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",l=b("mx-screenshot-previous-page");l.src=c;var u=b("mx-screenshot-current-page");document.body.appendChild(l),document.body.appendChild(u),document.addEventListener("swiperight",h),document.addEventListener("swiperightend",p),document.addEventListener("swipeleft",h),document.addEventListener("swipeleftend",p),document.addEventListener("swipeleftcancel",g),document.addEventListener("swiperightcancel",g),document.addEventListener("touchstart",f,!0),u.addEventListener("load",(function(){n===t.TAKING_SCREENSHOT&&(n=t.IDLE)}));var d=null;i.after(s,"onTransitionForward",(function(e){n=t.NAVIGATING,l.src=u.src,e.src=u.src,e.orientation=window.orientation}),!0),i.after(s,"onTransitionBack",(function(e){n=t.NAVIGATING,e&&e.orientation===window.orientation?d=e.src:l.src=c}),!0),i.after(window.mx.ui.getContentForm(),"onNavigation",(function(){n=t.TAKING_SCREENSHOT,d&&(l.src=d,d=null),setTimeout(w,0)})),e.exports={remove:function(){document.body.removeChild(l),document.body.removeChild(u),document.removeEventListener("swiperight",h),document.removeEventListener("swiperightend",p),document.removeEventListener("swipeleft",h),document.removeEventListener("swipeleftend",p),document.removeEventListener("swipeleftcancel",g),document.removeEventListener("swiperightcancel",g),document.removeEventListener("touchstart",f,!0)}}}function f(){n===t.IDLE&&w()}function h(e){var r=e.detail.originPageX<20;n!==t.IDLE&&n!==t.SWIPING||!r||a.isAtBeginning()||(n=t.SWIPING,"none"===u.style.display&&(l.style.display="",u.style.display=""),u.style.left=e.detail.pageX+"px")}function p(e){n===t.SWIPING&&(e.detail.pageX>=.5*window.screen.width?(n=t.TRANSITIONING_TO_OFF_SCREEN,m("100%",v)):(n=t.TRANSITIONING_BACK_TO_ORIGIN,m("0",y)))}function g(){n===t.SWIPING&&(n=t.TOUCH_CANCELED,m("0",y))}function m(e,t){u.style.transition="left 100ms ease-out",window.setTimeout((function(){u.style.transition="",t()}),400),u.style.left=e}function v(){if(n===t.TRANSITIONING_TO_OFF_SCREEN){var e=r.create("div",{class:"mx-swipe-navigation-progress"}),o=setTimeout((function(){document.body.appendChild(e)}
7),200),s=i.after(window.mx.ui.getContentForm(),"onNavigation",(function(){s.remove(),clearTimeout(o),r.orphan(e),y()}));a.back()}}function y(){l.style.display="none",u.style.left=0,u.style.display="none",n!==t.TOUCH_CANCELED&&n!==t.TRANSITIONING_BACK_TO_ORIGIN||(n=t.IDLE)}function b(e){return r.create("img",{class:e,style:{position:"absolute",top:"-20px",left:0,width:window.screen.width+"px",height:window.screen.height+"px",display:"none"}})}function w(){window.navigator.screenshot.URI((function(e,t){u.src=t.URI}),40)}}()},708:(e,t,n)=>{const r=n(1015),i=n(4296),o=n(507),a=n(9488),s=n(6618);function c(e,t,n){var i="data-mendix-",c=i+"id",l=i+"type",u=i+"props",d=[];function f(e,t,n){e.parentNode&&e.parentNode.replaceChild(r.create("div",{style:"color:red"},t),e)}return n=n?n+"_":"",a.forEach(e,(function(e){var i=e.getAttribute(c),a=e.getAttribute(u),h=e.getAttribute(l),p=s.getObject(h),g=a&&o.parse("{"+a+"}"),m=s.mixin(g,t,{mxid:i,uniqueid:n+i,class:e.className,style:e.style.cssText,focusIndex:r.getTabIndex(e)});if(e.removeAttribute(l),e.removeAttribute(u),p)try{d.push(new p(m,e))}catch(t){f(e,"Could not create widget "+h)}else f(e,"No constructor found for widget "+h)})),a.forEach(d,(function(e){if(e.startup&&!e._started)try{e.startup()}catch(t){e.actLoaded(),f(e.domNode,"Could not create widget "+e.declaredClass)}})),d}var l={instantiate:c,parse:function(e,t,n){e=e||document.body;var r=i.toArray(e.querySelectorAll("[data-mendix-type]"));return e.getAttribute("data-mendix-type")&&r.unshift(e),c(r,t,n)},parseTopLevel:function(e,t,n){var i=[];return r.walkNode(e,(function(e){return!e.getAttribute||!e.getAttribute("data-mendix-type")||(i.push(e),!1)})),c(i,t,n)}};e.exports=l},4810:(e,t,n)=>{n.r(t);var r=n(3935),i=n(2188),o=n(7606);(0,i.configure)({reactionScheduler:r.unstable_batchedUpdates});const a=o.LogManager.get().getLogger(),s=n(4784);if(s.add("mobile",s("ios")||s("android")||void 0),s.add("edge",parseFloat(window.navigator.userAgent.
7split("Edge/")[1])||void 0),window.dojoDynamicRequire=window.require,dojoDynamicRequire.baseUrl=function(e){if(/^(\w+:\/\/|\/)/.test(e))return e;var t=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),n=window.location.pathname;return t+n.slice(0,n.lastIndexOf("/")+1)+e}(dojoDynamicRequire.baseUrl),s.add("config-dojo-loader-catches",!0,!0,!0),dojoDynamicRequire.on("error",(function(e){let t,n;"evalModuleThrew"===e.message?t=e.info.mid:"factoryThrew"===e.message&&(t=e.info[0].mid,n=e.info[1]),a.error(t?"Loading module "+t+" failed! Check script file for syntax errors.":"Loading module failed! Check console log for more detailed debug information."),n&&a.error(n)})),window.dojo.provide=window.dojo.require=function(){throw new Error("dojo.require and dojo.provide are not supported in Mendix 7. Please, use AMD style for custom widgets.")},window.cordova&&/iPad|iPhone|iPod/.test(window.navigator.platform)){const e=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(){"blob"===this.responseType&&(this.responseType="text"),e.apply(this,arguments)}}},4041:(e,t,n)=>{const r=n(4296),i=n(2496),o=n(6618);var a={download:function(e){if(!this._iframe){var t=this._iframe=document.createElement("iframe");i.set(t,{top:"-10px",height:"1px",position:"absolute",visibility:"hidden"}),document.body.appendChild(t),t.onload=o.hitch(this,"onload")}this._error=e.error,this._iframe.contentWindow.location=e.url},onload:function(){var e=this._iframe,t=this._error,n=e.contentDocument||e.document,i=r.getFileError(n);i&&t&&t(i),delete this._error}};e.exports=a},1219:(e,t,n)=>{const r=n(1015),i=n(1120),o=n(2496),a=n(1178),s=n(503),c=n(9488),l=n(6618);var u=n(7136)(null,{declaredClass:"mxui.lib.ColumnResizer",columns:null,thNodes:null,colUnits:"",tableNode:null,rowNode:null,minWidth:40,cssClass:"mx-datagrid-column-resizer",rtl:!1,autoColums:null,active:0,startPos:0,startWidth:0,totalWidth:0,bodyCursor:"",handles:null,connects:null,resizing:!1,constructor:function(e){var t=(e=e||{}).thNodes,n=e.colNodes;this.columns=[],this.autoColumns=[],this.thNodes=t,this.colUnits=e.colUnits,this.tableNode=e.tableNode,this.rowNode=t[0].parentNode,this.minWidth=e.minWidth||40,this.rtl=e.rtl,this.prepareTable(t,n)},prepareTable:function(e,t){var n=0,i=!1;c.forEach(e,(function(e,o){if(this.rtl?o<this.thNodes.length-1:o>0){var a=r.create("div",{class:this.cssClass});r.data(a,"index",this.rtl?o+1:o),e.appendChild(a)}var s=t[o].style.width,c="auto"===s,l=this.columns[o]={node:e,col:t[o],width:0,rounded:0,minWidth:0,startWidth:0,isAuto:c};e.style.width=l.col.style.width,"px"===this.colUnits?c?(i=!0,this.autoColumns.push(l)):n+=parseInt(s,10):i=!0}),this),i||(this.tableNode.style.width=n+"px"),c.forEach(this.columns,(function(e){e.width=this.getColWidth(e)}),this),this.setRatios();var o=this;this.connects=[a(this.rowNode,"."+this.cssClass+":click",s.stop),a(this.rowNode,"."+this.cssClass+":mousedown",(function(e){var t=r.data(this,"index");o.startResize(t-1,e)}))]},startResize:function(e,t){this.resizing?this.endResize():(this.resizing=!0,this.active=e,this.startPos=t.pageX,this.startWidth=0,this.totalWidth=this.rowNode.offsetWidth,this.bodyCursor=o.get(document.body,"cursor"),o.set(document.body,"cursor","col-resize"),c.forEach(this.columns,(function(t,n){var r=this.getColWidth(t);t.width=t.startWidth=r,t.minWidth=Math.min(r,this.minWidth),n<=e&&(this.startWidth+=r)}),this),this.handles=[a(document,"mousemove",l.hitch(this,"moveResize")),a(document,"mouseup",l.hitch(this,"endResize"))],t.preventDefault())},moveResize:function(e){var t=0,n=this.active,r=this.columns,i=this.startWidth+(this.rtl?-1:1)*(e.pageX-this.startPos);this.scaleColumns(n,i);for(var o,a=0;o=r[a];a++){var s=Math.round(o.width);this.setColWidth(o,s),t+=s}var c=this.totalWidth-t;this.setColWidth(r[n],r[n].rounded+c),e.preventDefault()},endResize:function(){for(this.resizing=!1;this.handles.length;)this.handles.pop().remove();var e=this.columns;
7c.forEach(e,(function(e){if("%"===this.colUnits){var t=e.rounded/this.totalWidth*100;this.setColWidth(e,t,"%")}else this.setRatios()}),this),o.set(document.body,"cursor",this.bodyCursor)},recalculate:function(){if("px"===this.colUnits){var e=0,t=!1;if(c.forEach(this.columns,(function(n){n.isAuto?t=!0:e+=n.width})),t){var n=i.getContentBox(this.tableNode.parentNode).w-i.getBorderExtents(this.tableNode).w-e,r=n;c.forEach(this.autoColumns,(function(e){var t=Math.max(Math.min(Math.round(e.ratio*n),r),this.minWidth);r-=t,e.width=t,this.setColWidth(e,t)}),this)}}},getColWidth:function(e){return e.node.offsetWidth},setColWidth:function(e,t,n){"px"===(n=n||"px")&&(e.rounded=t),e.col.style.width=t+n,e.node.style.width=t+n},setRatios:function(){var e=0;c.forEach(this.autoColumns,(function(t){e+=this.getColWidth(t)}),this),c.forEach(this.autoColumns,(function(t){t.ratio=t.width/e}),this)},scaleColumns:function(e,t){for(var n,r=this.columns,i=r.slice(0,e+1),o=r.slice(e+1).reverse(),a=this.totalWidth,s=0,c=0;c<=e;c++)s+=r[c].width;t<s?(n=this.calcScale(i,t),this.calcScale(o,a-n)):t>s&&(n=this.calcScale(o,a-t),this.calcScale(i,a-n))},calcScale:function(e,t){var n=0,r=0,i=0,o=e.pop();return c.forEach(e,(function(e){n+=e.minWidth,r+=e.startWidth})),o.width=Math.max(o.minWidth,t-r),t-=o.width,c.forEach(e,(function(e){n-=e.minWidth;var o=Math.min(e.startWidth,t-i-n),a=Math.min(o,e.startWidth/r*t);e.width=Math.max(e.minWidth,a),i+=e.width})),i+o.width},destroy:function(){for(;this.connects.length;)this.connects.pop().remove();c.forEach(this.thNodes,(function(e){r.data(e,"index",null)}))}});e.exports=u},7853:(e,t,n)=>{n.r(t),n.d(t,{ConditionalFormatter:()=>p});var r=n(1409),i=n(920),o=n(5931),a=(n(4160),n(7606)),s=n(1881);const c=n(1015),l=n(4525),u=n(4296),d=n(9724),f=n(7136),h=a.LogManager.get().getLogger(),p=f(null,{_rootNode:null,_conditions:null,_hiddenNodes:null,_hiddenWidgets:null,_unparsedMxids:null,_conditionallyVisibleMxids:null,_staticClassesByMxid:null,_parseWidgetNode:null,_shouldVisitNode:null,constructor:function(e){this._conditions=e.conditions,this._hiddenNodes={},this._hiddenWidgets={},this._conditionallyVisibleMxids={},this._staticClassesByMxid={};for(let e in this._conditions)"visible"in this._conditions[e]&&(this._conditionallyVisibleMxids[e]=1);this._unparsedMxids=u.clone(this._conditionallyVisibleMxids),this._rootNode=e.rootNode,this._parseWidgetNode=e.parseWidgetNode,this._shouldVisitNode=e.shouldVisitNode},parse:function(){return this._parseNode(this._rootNode)},update:function(e,t,n){const a=[];let c=[],u=[],d=!1;const f=(t,n)=>{if(!(t=this._getRealNode(t)))return;const l=this._getMxidFromNode(t),p=this._conditions[l]||{};let y=!0;if("visible"in p){let l=!1;try{l=function(e,t,n){try{return(0,r.J8)(e,t,n)}catch(e){if(e instanceof o.w||e instanceof i.$)return h.debug(m(e)),!1;throw e}}(p.visible,e,a)}catch(e){(0,s.handleError)(new Error(m(e)))}if(l){const e=this._isWidgetNode(t),[r,i]=this._show(t);t=r,c=c.concat(i),n&&(u=u.concat(i),e&&(n=!1)),d=!0}else this._hide(t),y=!1}if("editable"in p)try{const n=function(e,t,n){try{return(0,r.J8)(e,t,n)}catch(e){if(e instanceof o.w||e instanceof i.$)return void h.debug(g(e));throw e}}(p.editable,e,a);void 0!==n&&this._setEnabled(t,n)}catch(e){(0,s.handleError)(new Error(g(e)))}if("dynamicClasses"in p)try{const n=function(e,t,n){try{return(0,r.J8)(e,t,n)}catch(e){if(e instanceof o.w||e instanceof i.$)return h.debug(v(e.message)),"";throw e}}(p.dynamicClasses,e,a);this._setDynamicClasses(l,t,n)}catch(e){(0,s.handleError)(new Error(v(e)))}y&&this._shouldVisitNode(t)&&Array.from(t.childNodes).forEach((e=>f(e,n)))};f(this._rootNode,!0),l.ready(c,(()=>t(u,d,(()=>n(a)))))},_parseNode:function(e){var t=[],n=!0;return function e(r){if(r=this._getRealNode(r)){var i=n,o=this._getMxidFromNode(r);if(n=!1,o)if(!i&&o in this._conditionallyVisibleMxids)this._hide(r);else{if(this._isWidgetNode(r)){var a=this._parseWidgetNode(r);a&&(t.push(a),r=a.domNode)}this._shouldVisitNode(r)&&Array.from(r.childNodes).forEach(e,this)}else Array.from(r.childNodes).forEach(e,this)}}.call(this,e),t},_setEnabled:function(e,t){var n=d.byNode(e);n?n.set("disabled",!t):d.findWidgets(e).forEach((e=>e.set("disabled",!t)))}
7,_setDynamicClasses:function(e,t,n){e in this._staticClassesByMxid||(this._staticClassesByMxid[e]=t.className),t.className=`${this._staticClassesByMxid[e]} ${n}`.trim()},_show:function(e){const t=d.byNode(e),n=this._getMxidFromNode(e);let r=[];return delete this._hiddenWidgets[n],t&&t.show?(t.show(),r=[t]):n in this._hiddenNodes&&(this._showRealNode(e,n),t?r=[t]:n in this._unparsedMxids?(r=this._parseNode(e),c.isOrphan(e)&&(e=r[0].domNode),delete this._unparsedMxids[n]):r=d.findWidgets(e)),[e,r]},_hide:function(e){const t=d.byNode(e),n=this._getMxidFromNode(e);if(t&&(this._hiddenWidgets[n]=t),t&&t.hide)t.hide();else if(!(n in this._hiddenNodes)){const t=document.createComment("mxid:"+n);e.parentNode.replaceChild(t,e),this._hiddenNodes[n]={realNode:e,comment:t}}},_showRealNode:function(e,t){const n=this._hiddenNodes[t].comment;n.parentNode.replaceChild(e,n),delete this._hiddenNodes[t]},_getRealNode:function(e){if(e.nodeType===Node.ELEMENT_NODE)return e;if(e.nodeType===Node.COMMENT_NODE&&e.nodeValue.startsWith("mxid:")){const t=e.nodeValue.slice(5);return this._hiddenNodes[t].realNode}const t=/widgetId:([^\s]+)/;if(e.nodeType===Node.COMMENT_NODE&&t.test(e.nodeValue)){const n=t.exec(e.nodeValue)[1];return d.byId(n).domNode}return null},uninitialize:function(){Object.keys(this._hiddenWidgets).map((e=>this._hiddenWidgets[e])).forEach((e=>e.destroyRecursive())),Object.keys(this._hiddenNodes).map((e=>
7this._hiddenNodes[e].realNode)).forEach((e=>l.destroyWidgetsIn(e)))},_isWidgetNode:function(e){return e.hasAttribute("data-mendix-type")},_getMxidFromNode:function(e){return e.getAttribute("data-mendix-id")}});function g(e){return`An error occurred while evaluating editability expression: ${e.message}`}function m(e){return`An error occurred while evaluating visibility expression: ${e.message}`}function v(e){return`An error occurred while evaluating dynamic classes expression: ${e.message}`}},8849:(e,t,n)=>{const r=n(1015),i=n(4296),o=n(1178),a=n(4298),s=n(2495),c=n(1120),l=n(503),u=n(6618);var d=n(7136)(null,{declaredClass:"mxui.lib.Moveable",node:null,handle:null,margin:0,delay:0,_events:null,_start:null,_moving:!1,constructor:function(e,t){t=t||{},this.node=e,this.handle=t.handle||e,this.margin=t.margin||0,this.delay=t.delay||0,this._events=[o(this.handle,"dragstart",l.stop),o(this.handle,"selectstart",l.stop)],s.setSelectable(this.handle,!1),i.forEach(this.handle.querySelectorAll("button"),(e=>s.setSelectable(e,!0))),this._reset()},_reset:function(){this._clean(),this._events.push(o(this.handle,a.press,u.hitch(this,"_onMouseDown")))},_clean:function(){for(;this._events.length>3;)this._events.pop().remove()},_prepare:function(e){var t=c.position(this.node);this._start={t:t.y,l:t.x,x:e.pageX,y:e.pageY}},_onMouseDown:function(e){this.delay||this.onMoveStart(e),this._clean(),this._prepare(e),this._events.push(o(document,a.move,u.hitch(this,"_onMouseMove")),o(document,a.release,u.hitch(this,"_onMouseUp")))},_onMouseMove:function(e){var t=this.node.style,n=this._start,r={};this._moving?(t.top=r.t=n.t+(e.pageY-n.y)+"px",t.left=r.l=n.l+(e.pageX-n.x)+"px",this.onMoving(r),e.preventDefault()):Math.sqrt(Math.pow(e.pageX-n.x,2)+Math.pow(e.pageY-n.y,2))>this.delay&&(this.onMoveStart(e),this._prepare(e))},_onMouseUp:function(e){this._moving&&this.onMoveStop(e),this._reset()},onMoveStart:function(){this._moving=!0},onMoving:function(e){},onMoveStop:function(){this._moving=!1,r.moveIntoView(this.node,this.margin)},destroy:function(){for(;this._events.length;)this._events.pop().remove()}});e.exports=d},2588:(e,t,n)=>{const r=n(6618),{getSession:i}=n(1016);e.exports=function(e){var t=e.config,n={},o=[];this.gridSetting=function(e){var n=t.gridpresentation;return r.mixin({pageSize:n.rows*n.columns},n)[e]},this.gridTools=function(){return o},this.getActionsByKey=function(e){return n[e]},this.searchBarItems=function(){return t.searchElements},this.gridAttributes=function(){return t.griddata},this.searchBarConfig=function(){return t.searchOptions},this.getDataSource=function(){return t.datasource},this.getDefaultButton=function(){return t.defaultButton},this.getPlugins=function(){return t.plugins||{}},this.toString=function(){return"mxui.lib.MxGridConfig"},function(){var e=t.controlBar.gridTools,n=t.defaultButton;const a=i();for(var s,c=0;s=e[c];c++){var l=a.hasSomeRole(s.visibleForRoles),u=!(a.isGuest()&&s.namedUser);if(l&&u){var d=n&&s.mxid===n.mxid&&"single"===n.clickType;o.push(r.mixin({alwaysHidden:d},s))}}}(),function(){for(var e,r=t.controlBar.gridActions,i=0;e=r[i];i++)n[e.keyValue]={actionCall:e.gridFunction,params:e.params}}()}},6466:(e,t,n)=>{const r=n(1015),i=n(1178),o=n(4298),a=n(2153),s=n(2495),c=n(1120),l=n(503),u=n(6618),d=n(7136);var f=r.create,h=d(null,{declaredClass:"mxui.lib.Resizable",node:null,margin:0,resizer:null,minWidth:0,minHeight:0,_events:null,_start:null,_resizing:!1,constructor:function(e,t){t=t||{},this.node=e,this.margin=t.margin||0,this.resizer=t.resizer,this.minWidth=t.minWidth||0,this.minHeight=t.minHeight||0;for(var n,r=f("#"),i=["n","e","s","w","ne","se","sw","nw"],o=0;n=i[o];o++){var a=f("div",{class:"mx-resizer mx-resizer-"+n,"data-resize-dir":n});s.setSelectable(a,!1),r.appendChild(a)}e.appendChild(r),this._events=[],this.reset()},reset:function(){this.clean();var e=this;this._events=[i(this.node,o.press,(function(t){var n=t.target.getAttribute("data-resize-dir");n&&e.onMouseDown(n,t)}))]},clean:function(){for(;this._events.length;)this._events.pop().remove()},onMouseDown:function(e,t){this.onResizeStart(t),this.clean();var n=c.getMarginBox(this.node);
7this._start={box:n,viewport:a.getBox(),pageX:t.pageX,pageY:t.pageY,minWidth:Math.min(this.minWidth,n.w),minHeight:Math.min(this.minHeight,n.h)},this._events.push(i(document,o.move,u.hitch(this,"onMouseMove",e)),i(document,o.release,u.hitch(this,"onMouseUp"))),l.stop(t)},onMouseMove:function(e,t){var n=this._start,r=n.box,i=this.margin,o={};if(/e|w/.test(e)){var a=/w/.test(e),s=a?n.pageX-t.pageX:t.pageX-n.pageX,u=(a?r.l+r.w:n.viewport.w-r.l)-i;o.w=Math.max(n.minWidth,Math.min(u,r.w+s)),a&&(o.l=Math.max(i,r.l+r.w-o.w))}if(/n|s/.test(e)){var d=/n/.test(e),f=d?n.pageY-t.pageY:t.pageY-n.pageY,h=(d?r.t+r.h:n.viewport.h-r.t)-i;o.h=Math.max(n.minHeight,Math.min(h,r.h+f)),d&&(o.t=Math.max(i,r.t+r.h-o.h))}this.resizer?this.resizer(o):c.setMarginBox(this.node,o),this.onResizing(),l.stop(t)},onMouseUp:function(e){this.onResizeStop(e),this.reset()},onResizeStart:function(){this._resizing=!0},onResizing:function(e){},onResizeStop:function(){this._resizing=!1},destroy:function(){this.clean()}});e.exports=h},2565:(e,t,n)=>{n.r(t),n.d(t,{TextExpression:()=>c});var r=n(2188),i=n(2959),o=n(567),a=n(1409),s=n(8714);class c{constructor(e,t){const[n,c]=(0,s.useValue)("Context",[new i.MxContext]);this._setContext=(0,r.action)(c);const l=(0,a.pI)("Text template",e,(e=>(0,s.fromComputation$)("Text template parameter",(()=>{const t=n.dependOn()[0].getWidgetObject(e);return t?(0,o.available)(t):(0,o.unavailable)()}))));this._disposer=(0,r.reaction)((()=>l.dependOn()),(e=>{t((0,o.getOrElseL)(e,""))}),{fireImmediately:!0})}update(e){this._setContext([e])}destroy(){this._disposer()}}},795:e=>{var t={history:{back:function(e){window.history.go(-e)},forward:function(){window.history.forward()},pushState:function(e,t,n){window.history.pushState(e,window.dojoConfig.isEmbedded?"":t,n)},replaceState:function(e,t,n){window.history.replaceState(e,window.dojoConfig.isEmbedded?"":t,n)},onPopstate:function(e){window.addEventListener("popstate",e,!1)}},location:{pathname:function(){var e=window.location.pathname;return"/"!==e.charAt(0)&&(e="/"+e),e},search:function(){return window.location.search},hash:function(){return window.location.hash},setHash:function(e){window.location.hash=e}},setTimeout:function(e,t){return window.setTimeout(e,t)},title:function(e){return window.dojoConfig.isEmbedded?"":(void 0!==e&&(window.document.title=e),window.document.title)}};e.exports=t},736:(e,t,n)=>{const r=n(1015);var i={show:function(e,t){var n=e.querySelector(".mx-validation-message");n?r.text(n,t):(n=r.create("div",{class:"alert alert-danger mx-validation-message"},t),e.appendChild(n))},hide:function(e){var t=e.querySelector(".mx-validation-message");t&&e.removeChild(t)}};e.exports=i},2171:(e,t,n)=>{const r=n(5082),i=n(8046),o=n(4142),{WebForm:a}=n(4380),s=n(5034),c=n(4525),l=n(1015),u=n(4296),{createContext:d}=n(2959),{NavigationError:f}=n(3787),h=n(5599),p=n(9408),{addEnumerations:g}=n(945),{registerNanoflows:m}=n(3896),{applyStyleObject:v}=n(7020),{handleError:y}=n(1881),b=l.create;function w(e){const t=new h;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e(...r,(e=>{t.resolve(e)}),(e=>{t.reject(e)})),t}e.exports={ContentForm:class extends a{constructor(){super("content"),this._currentLayouts=[],this._pendingRequest=null,this.widgetTemplates=null,this.id="ContentForm",this.domNode=b("div",{class:"mx-page","data-focusindex":"0"},b("div",{class:"mx-placeholder","data-mx-placeholder":"main"}))}_updatePropertiesFrom(e,t,n,r){this._context=t,this.id=e.id,this.path=e.path,this.hash=u.getUniqueId(),this.title=r||e.title,this.url=e.url,this.widgetTemplates=e.widgetTemplates,this.viewState=n,this.historyId=(n?n.formHistoryId:void 0)||u.getUniqueId(),m(e.nanoflows),g(e.enumerations),this.onLoading()}onPersistViewState(e){super.onPersistViewState(e),e.formHistoryId=this.historyId}navigateTo(e,t,n,a,u,g,m,b){let x=[];this._pendingRequest&&this._pendingRequest.cancel(new f("Loading of a page has been superseded by request for "+e)),this._pendingRequest=function(e){const t=new h;return e.then((e=>{t.resolve(e)}),(e=>{t.reject(e)})),t}(d(n,a)).then((t=>w(r.get,e).then((e=>({context:t,page:e}))))).then((e=>{let{page:t,context:n}=e;return w(i.composeNewComponentsIn,t,this._currentLayouts).then((e=>({page:e,context:n})))})).then((e=>{let{page:n,context:r}=e;return x=n.components.map((e=>function(e,t){const n=e.findPlaceholder(t),r=o.conceiveSuccessor(n);return e.appendTo(r),r}(e,this.domNode))),this._updatePropertiesFrom(n,r,g,t),u=Object.assign({},u,{mxform:this}),p(x.map((e=>w(c.loadWidgetsIn,e,u,r)))).then((()=>n))})).then((e=>{this._currentLayouts=e.layouts,this.domNode.className="mx-page "+e.class,v(this.domNode,e.style),x.forEach((e=>{o.hatch(e),l.scrollOverflowParentTo(e,0)})),this.onNavigation(),this.resize(!0),s.getFocus()||l.moveFocusTo(this.domNode,s.focusFirst),this._pendingRequest=null,m&&m()})).otherwise((function(e){x.forEach((e=>o.abort(e))),b?b(e):y(e)}))}resize(e){!e&&this._pendingRequest||super.resize(e)}onResize(){this.domNode.style.height="100%",c.resizeWidgetsIn(this.domNode),this.domNode.style.height=""}onLoading(){}}}}
7,6014:(e,t,n)=>{const{InlineForm:r}=n(1988),i=n(5082),o=n(8046),a=n(8105),s=n(4238),c=n(8007),l=n(6618),{cancelChanges:u}=n(2449),{addEnumerations:d}=n(945),{registerNanoflows:f}=n(3896),{getButtonAction:h}=n(6223),{handleError:p}=n(1881);function g(e,t,n){i.get(e,(function(e){o.composeAllComponentsIn(e,t,n)}),n)}function m(e){this._templateProvider=e}m.prototype.openPopupForm=function(e,t,n,i,o,c,h){var m=this;g(e,(function(e){m._templateProvider.add(e.widgetTemplates),f(e.nanoflows),d(e.enumerations);var h=new r("popup",e,i,t.title),g=new a({title:h.title,width:t.width,height:t.height,resizable:!("resizable"in t)||t.resizable,content:h.domNode,cssClass:e.class,cssStyle:e.style});s.after(h,"onResize",l.hitch(g,"resize")),s.after(g,"onClose",(function(){const t=h.domNode.querySelector(`[data-button-id='${e.closeButton}']`);if(t&&"true"!==t.getAttribute("data-disabled")){const e=new MouseEvent("click",{bubbles:!0,cancelable:!0,detail:1,button:0});t.dispatchEvent(e)}else e.cancelChangesOperationId?u({operationId:e.cancelChangesOperationId,closePage:!0},{currentForm:h}).catch((e=>{p(e)})):h.close()})),s.before(g,"onBeforeShow",(function(){h.onBeforeShow(),h.onNavigation()})),s.before(g,"onAfterShow",l.hitch(h,"onAfterShow")),h.listen("close",(function(e,t){const n=g.hide(e);if(n>0){const r=e&&e.data&&e.data.allowBackToInitialPage||!1;o(e,t,{numberOfFormsToClose:n,allowBackToInitialPage:r})}})),s.before(g,"onHide",l.hitch(h,"onBeforeHide")),s.before(g,"destroy",(function(){h.onAfterHide(),h.destroy()})),h.loadWidgets(n,(function(){g.show(t.modal,(function(){c&&c(h)}))}))}),h)},m.prototype.openInlineForm=function(e,t,n,i,o,a){var s=this;g(e,(function(e){s._templateProvider.add(e.widgetTemplates),f(e.nanoflows),d(e.enumerations);var a=new r("custom",e,i);c.add(a.domNode,"mx-offscreen"),t.appendChild(a.domNode),a.listen("close",(function(e){a.onBeforeHide(),c.add(a.domNode,"mx-offscreen"),a.onAfterHide(),a.destroy(),e&&e()})),a.loadWidgets(n,(function(){a.onBeforeShow(),a.onNavigation(),c.remove(a.domNode,"mx-offscreen"),a.onAfterShow(),o&&o(a)}))}),a)},e.exports=m},1988:(e,t,n)=>{const{WebForm:r}=n(4380),i=n(4525),o=n(1015),a=n(6618);e.exports={InlineForm:class extends r{constructor(e,t,n,r){if(super(e),this.path=t.path,this.title=r||t.title,this._params=a.mixin({},n,{mxform:this}),this.domNode=o.create("div",{"data-focusindex":"0"}),1!=t.components.length)throw new Error("Got "+t.components.length+" top level templates while expecting only one, on page "+this.path);t.components[0].appendTo(this.domNode)}loadWidgets(e,t){this._context=e,i.loadWidgetsIn(this.domNode,this._params,e,t)}destroy(){o.orphan(this.domNode),i.destroyWidgetsIn(this.domNode)}onBeforeShow(){}onAfterShow(){}onBeforeHide(){}onAfterHide(){}}}},4380:(e,t,n)=>{n.r(t),n.d(t,{WebForm:()=>f});const{ValidationError:r}=n(8934),{FormBase:i}=n(5298),o=n(4525),{translate:a}=n(2749),s=n(4296),c=n(9724),{AssertionError:l}="../../../src/util/AssertionError";let u,d;class f extends i{constructor(e){super(e),this.id="",this.title="",this.path="",this.domNode=null,this.viewState=null,this._objectProviders=[],this._context=null,this.hash=s.getUniqueId()}getContext(){return this._context}reload(e){o.applyContext(c.findWidgets(this.domNode),this._context,e)}onNavigation(){}onPersistViewState(e){}closePage(e,t){return new Promise(((n,r)=>(n.data={numberOfFormsToClose:e,allowBackToInitialPage:t},this.publish("close",n,r))))}addSubmitProvider(e,t){return this._objectProviders.push(t),{remove:()=>{const e=this._objectProviders.indexOf(t);-1!==e&&this._objectProviders.splice(e,1)}}}getSubmitObjects(){return Object.values(s.flatten(this._objectProviders.map((e=>e()))).reduce(((e,t)=>(e[t.getGuid()]=t,e)),{}))}getChildren(e){return e?o.getDescendantWidgets(this.domNode):c.findWidgets(this.domNode)}callRecursive(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.getChildren(!1).filter((t=>"function"==typeof t[e])).forEach((t=>{t[e].apply(t,n)}))}enable(){this.callRecursive("set","disabled",!0)}disable(){this.callRecursive("set","disabled",!1)}setSuspend(e){const t=this.isSuspended();super.setSuspend(e),t!==e&&this.publish(e?"suspend":"resume")}resize(e){window.clearTimeout(u),!0===e?this.onResize():u=window.setTimeout(this.onResize.bind(this),0)}onResize(){}markInvalid(){window.clearTimeout(d),d=window.setTimeout(this.onInvalid.bind(this),0)}
7onInvalid(){if("phone"===window.mx.ui.getProfile()){const e=Array.from(this.domNode.querySelectorAll(".has-error")),t=e.find((e=>e.offsetParent&&e.offsetWidth&&e.offsetHeight));if(t){let e=t;for(;e&&!e.classList.contains("form-group");)e=e.parentNode;return void(e||t).scrollIntoView()}0!==e.length&&window.mx.ui.showMessage("error",a("mxui.widget.DataView","validation_error"))}}async triggerValidation(){const e=this.getChildren(!0).map((e=>"isValidAsync"in e?e.isValidAsync():!("isValid"in e)||e.isValid()));if(await Promise.all(e).then((e=>e.some((e=>!e)))))throw new r}}},4142:(e,t,n)=>{const r=n(4525),i=n(1015),o=n(4296);var a=null,s=[],c={conceiveSuccessor:function(e){var t=e.cloneNode(!1);return s.push({predecessor:e,embryo:t}),(a||(a=i.create("div",{class:"mx-incubator mx-offscreen"}),document.body.appendChild(a)),a).appendChild(t),t},abort:function(e){var t=o.findIndex(s,(function(t){return t&&t.embryo==e}));-1!=t&&(s.splice(t,1),r.destroyWidgetsIn(e),i.orphan(e))},hatch:function(e){var t=o.findIndex(s,(function(t){return t&&t.embryo==e}));if(-1!=t){var n=s[t].predecessor;r.destroyWidgetsIn(n),n.parentNode.replaceChild(e,n),s.splice(t,1)}}};e.exports=c},275:(e,t,n)=>{const r=n(2496);var i={showOverflow:function(e){o(e,!0)},hideOverflow:function(e){o(e,!1)}};function o(e,t){var n=function(e,t){for(var n=document.documentElement;e=e.parentNode;)if(e===n||r.get(e,"overflow")===t)return e}(e,t?"hidden":"auto");n&&n.clientHeight>=n.scrollHeight&&r.set(n,"overflow",t?"auto":"hidden")}e.exports=i},1528:(e,t,n)=>{const r=n(9488),i=n(6618);function o(e,t){this._id=e,this._content=t}o.prototype.findPlaceholder=function(e){return e.querySelector("[data-mx-placeholder='"+this._id+"']")},o.prototype.appendTo=function(e){r.forEach(this._content,i.hitch(e,e.appendChild))},e.exports=o},546:(e,t,n)=>{const r=n(6618);function i(){this._templates={}}i.prototype.add=function(e){r.mixin(this._templates,e)},i.prototype.get=function(e,t){var n=this._templates[e];return n&&r.clone(n[t])},e.exports=i},8046:(e,t,n)=>{const r=n(5082),i=n(4296),o=n(9488),a=n(6618),{registerNanoflows:s}=n(3896);var c={composeNewComponentsIn:function(e,t,n,c){!function(e,t,n,c){var l,u=[],d=a.mixin({},t.widgetTemplates),f=a.mixin({},t.enumerations);u[e.length]=t.components,i.collect(o.map(e,(function(e,t){return function(n){r.get(e,(function(e){u[t]=e.components,d=a.mixin(d,e.widgetTemplates),f=a.mixin(f,e.enumerations),s(e.nanoflows),n()}),(function(e){l=e,n()}))}})),(function(){if(l)c(l);else{var e,t,r,a=(e=u[0],t=i.flatten(u.slice(1)),r=document.createDocumentFragment(),o.forEach(e,(function(e){e.appendTo(r)})),o.forEach(t,(function(e){const t=e.findPlaceholder(r);t&&e.appendTo(t)})),e);n(a,d,f)}}))}(function(e,t){for(var n=0;n<t.length;++n)if(t[n]!=e[n])return t.slice(n);return[]}(t,e.layouts),e,(function(t,r,i){n(a.mixin({},e,{components:t,widgetTemplates:r,enumerations:i}))}),c)},composeAllComponentsIn:function(e,t,n){c.composeNewComponentsIn(e,[],t,n)}};e.exports=c},5082:(e,t,n)=>{const{get:r}=n(4036),{getStaticResourceUrl:i}=n(6199),{applyStyleObject:o}=n(7020),{getSession:a}=n(1016),s=n(2791),c=n(1528),l=n(1015),u=n(9488),d=n(6618);function f(e){return Array.from(e.childNodes).filter((e=>1===e.nodeType)).map((e=>document.importNode(e,!0))).map((e=>s.filterDom(e))).map((e=>e instanceof Element?(Array.from(e.querySelectorAll("[data-style]")).concat(e.hasAttribute("data-style")?[e]:[]).forEach((e=>{const t=e.dataset.style;o(e,t),e.removeAttribute("data-style")})),e):e)).filter((e=>null!=e))}function h(e){var t=document.createDocumentFragment();return u.forEach(e,d.hitch(t,t.appendChild)),t}function p(e){return u.map(l.getElementsByTagNameNoNS(e,"layout"),(function(e){return e.getAttribute("path")})).reverse()}function g(e){return u.map(l.getElementsByTagNameNoNS(e,"argument"),(function(e){return new c(e.getAttribute("parameterName")||"main",f(e))}))}function m(e){var t={};return u.forEach(l.getElementsByTagNameNoNS(e,"template"),(function(e){var n={widgetId:e.getAttribute("widget-id"),templateName:e.getAttribute("name"),content:h(f(e))};t[n.widgetId]||(t[n.widgetId]={}),t[n.widgetId][n.templateName]=n.content})),t}function v(e){const t=l.getElementsByTagNameNoNS(e,"nanoflows")[0],n=void 0!==t?JSON.parse(t.textContent):{},r={};
7return Object.keys(n).forEach((e=>{r[e]=()=>n[e]})),r}function y(e){const t=l.getElementsByTagNameNoNS(e,"enums")[0];return void 0!==t?JSON.parse(t.textContent):{}}function b(e){const t=l.getElementsByTagNameNoNS(e,"parameters")[0];return void 0!==t?JSON.parse(t.textContent):void 0}var w={get:function(e,t,n){const o="pages/"+a().getConfig("locale.code");r(i(o+"/"+e),"text").then((n=>t(function(e,t){const n=l.parseXml(e),r=n.documentElement;return{id:r.getAttribute("id")||"",title:r.getAttribute("title")||"",class:r.getAttribute("class")||"",style:r.getAttribute("data-style")||"",url:r.getAttribute("url"),closeButton:r.getAttribute("closeButton"),cancelChangesOperationId:r.getAttribute("cancelChangesOperationId"),path:t,layouts:p(n),components:g(n),widgetTemplates:m(n),nanoflows:v(n),enumerations:y(n),parameters:b(n)}}(n,e))),n)}};e.exports=w},2791:(e,t,n)=>{const r=n(1015),i=n(4296),{getSession:o}=n(1016),a="data-mendix-roles",s="data-mendix-named-user";function c(e,t){const n=e.getAttribute(t);return e.removeAttribute(t),n}function l(e,t,n){return c(e,s)&&n||function(e,t){if(!e.hasAttribute(a))return!1;return!c(e,a).split(",").some((e=>t.includes(e)))}(e,t)}e.exports={filterDom:function(e){if(!(e instanceof Element))return e;const t=o(),n=t.getUserRoleNames(),c=t.isGuest();return l(e,n,c)?null:(i.toArray(e.querySelectorAll("["+a+"],["+s+"]")).forEach((e=>{l(e,n,c)&&r.orphan(e)})),e)}}},1948:(e,t,n)=>{const r=n(275),i=n(5034),o=n(2260),a=n(4296),s=n(9488),c=n(2153),l=n(1120),u=n(2496);var d=0,f=new o,h={},p=[{name:"popup",index:100,stack:[]},{name:"dialog",index:1e3,stack:[]}],g={add:function(e){r.hideOverflow(document.body),document.body.appendChild(e.domNode)},show:function(e,t,n){h[e.id]||(d>0&&(t=!0),function(e,t){t&&(0===d&&f.show(),d++),e.domNode.setAttribute("data-focus-capturing",t?"modal":"non-modal"),h[e.id]={modal:t,focus:i.getFocus()},v(e).push(e)}(e,t),g.focus(e),e.onBeforeShow(),r.showOverflow(document.body),t||"center"==e.getPositionName()?e.center():(function(e){var t=v(e),n=c.getBox(),r=l.getMarginBox(e.domNode),i=(n.w-r.w)/2,o=(n.h-r.h)/2*.7,a=t.slice();a.sort((function(e,t){return e.domNode.offsetLeft-t.domNode.offsetLeft}));for(var s=0;s<t.length;s++)if(a[s]!==e){var d=a[s].domNode,f=i-10,h=f+20;f<d.offsetLeft&&d.offsetLeft<h&&(i+=20,o+=20)}u.set(e.domNode,{left:i+"px",top:o+"px"})}(e),e.moveIntoView()),e.onShow((function(){e.onAfterShow(),n&&n()})))},hide:function(e,t){if(!h[e.id])return;const n=t&&t.data&&t.data.numberOfFormsToClose||1,r=v(e).slice(-n).reverse();if(0===r.length)return 0;const i=n-r.length;for(let e=0;e<r.length;e++)e===r.length-1&&i<1?y(r[e],t):y(r[e]);return i},focus:function(e){if(h[e.id]){var t=m(e),n=t.index,r=[];s.forEach(t.stack,(function(t){t.id!=e.id?(r.push(t),t.deactivate&&t.deactivate()):t.activate&&t.activate()})),r.sort((function(e,t){return e.domNode.style.zIndex-t.domNode.style.zIndex})),r.push(e),t.stack=r;for(var i,o=0;i=t.stack[o];o++)n+=2,i.domNode.style.zIndex=n;h[e.id].modal&&!function(e){var t=s.indexOf(p,m(e));return s.some(p.slice(t+1),(function(e){return s.some(e.stack,(function(e){return h[e.id].modal}))}))}(e)&&f.setZIndex(n-1)}}};function m(e){return a.find(p,(function(t){return t.name==e.getLayerName()}))}function v(e){return m(e).stack}function y(e,t){const n=h[e.id];n&&(function(e,t){t&&0==--d&&f.hide(),e.domNode.removeAttribute("data-focus-capturing"),delete h[e.id];var n=v(e);n.splice(s.indexOf(n,e),1)}(e,n.modal),function(e,t){if(t){var n=i.getFocus();n&&e.domNode.contains(n)&&i.setFocus(t)}}(e,n.focus),e.onHide((function(){const n=function(e){var t=s.indexOf(p,m(e));do{for(var n=p[t].stack,r=n.length-1;r>=0;r--)if(h[n[r].id])return n[r]}while(t-- >0);return null}(e);n&&g.focus(n),e.destroy(),t&&t()})))}
7e.exports=g},1636:(e,t,n)=>{n.r(t),n.d(t,{openSelectPage:()=>a});var r=n(4204),i=n(245),o=n(1881);function a(e){let{selectionMode:t,initialSelection:n,pageSettings:a,datasourceConfig:s,currentObjectId:c,constrainedBy:l,onSelectionChange:u,onFinished:d}=e;const f=(s.constraint||"").replace(/\[%CurrentObject%\]/g,c),h=(0,i.createPageSelectionTopic)();window.mx.data.getBacktrack(c,l,((e,c)=>{(0,r.openPage)(a,{abortOnClientValidations:!1,abortOnServerValidations:!1,currentForm:null,formParams:{initialSelection:n,pageSelectionTopic:h,listViewSelectionMode:t,dataSourceMixin:{extra:{constraint:c?e+f:"[0=1]",offlineConstraints:s.offlineConstraints}}}},{}).then((e=>{e.listen("commit",(e=>{const t=(0,i.readTopic)(h);(0,i.removeTopic)(h),void 0!==t&&u(t),e()}))}),o.handleError).finally(d)}))}},3283:(e,t,n)=>{const r=n(2496);var i=n(7136)(n(244),{containerClass:"push",_oppositeRegion:null,constructor:function(){this._toggleNode=this._containerNode,r.set(this._toggleRegion.node,"display","none");var e=this._regions["left"===this._toggleRegion.position?"right":"left"];if(e){var t=e.node.style.width;e.cssWidth=parseInt(t,10),e.cssUnit=-1!==t.indexOf("%")?"%":"px",this._oppositeRegion=e}this._toggleRegionContents.concat(this._toggleRegionToggleButtons).forEach((e=>{e.setAttribute("aria-hidden",!0),e.setAttribute("data-focusindex",-1)}))},show:function(){this.inherited(arguments),this._transitionTo(this._containerNode,"left",this._computeLeftPosition(!0))},hide:function(){this.inherited(arguments),this._transitionTo(this._containerNode,"left",this._computeLeftPosition(!1))},resize:function(){this.inherited(arguments),r.set(this._containerNode,"width","");var e=this._containerNode.offsetWidth;this._oppositeRegion&&"%"===this._oppositeRegion.cssUnit&&r.set(this._oppositeRegion.node,"width",this._oppositeRegion.cssWidth*e/100+"px");var t=this._computeRegionWidth();r.set(this._toggleRegion.node,{display:"",width:t+"px"}),this._toggleRegion.width=this._toggleRegion.node.offsetWidth,r.set(this._containerNode,{width:e+this._toggleRegion.width+"px",left:this._computeLeftPosition(this.isVisible())})}});e.exports=i},8458:(e,t,n)=>{const r=n(2496);var i=n(7136)(n(244),{closeOnBlur:!1,containerClass:"shrink",constructor:function(){this._toggleNode=this._toggleRegion.node,r.set(this._toggleRegion.node,"width","0"),this._toggleRegionContents.forEach((e=>{e.setAttribute("aria-hidden",!0),e.setAttribute("data-focusindex",-1)})),this._toggleRegionToggleButtons.forEach((e=>{e.getAttribute("tabindex")<0&&e.setAttribute("tabindex",0)}))},show:function(){this.inherited(arguments),this._transitionTo(this._toggleRegion.node,"width",this._toggleRegion.width+"px")},hide:function(){this.inherited(arguments),this._transitionTo(this._toggleRegion.node,"width","0")},resize:function(){this.inherited(arguments),this._toggleRegion.width=this._computeRegionWidth(),this.isVisible()&&r.set(this._toggleRegion.node,"width",this._toggleRegion.width+"px"),r.set(this._toggleRegion.wrapper,"width",this._toggleRegion.width+"px")}});e.exports=i},7358:(e,t,n)=>{const r=n(2496),i=n(7136)(n(244),{containerClass:"slide",constructor:function(){this._toggleNode=this._toggleRegion.wrapper,r.set(this._toggleRegion.node,"width","0"),this._toggleRegionContents.concat(this._toggleRegionToggleButtons).forEach((e=>{e.setAttribute("aria-hidden",!0),e.setAttribute("data-focusindex",-1)}))},show:function(){this.inherited(arguments),this._transitionTo(this._toggleRegion.wrapper,"left",this._computeLeftPosition(!0))},hide:function(){this.inherited(arguments),this._transitionTo(this._toggleRegion.wrapper,"left",this._computeLeftPosition(!1))},resize:function(){this.inherited(arguments),this._toggleRegion.width=this._computeRegionWidth(),r.set(this._toggleNode,{width:this._toggleRegion.width+"px",left:this._computeLeftPosition(this.isVisible())})}});e.exports=i},244:(e,t,n)=>{const{partition:r}=n(3282),i=n(1178),o=n(4298),a=n(8007),s=n(2496),c=n(7136),l=n(2231),u=["mx-navigationtree","mx-navigationlist","mx-navbar","mx-menubar","mx-button","mx-link"].map((e=>"."+e)).join(",");var d=c(l,{_containerNode:null,_toggleNode:null,_toggleRegion:null,_regions:null,_isVisible:!1,_toggleRegionContents:null,_toggleRegionToggleButtons:null,closeOnBlur:!0,containerClass:"",constructor:function(e,t,n){this._toggleRegion=n[t],this._containerNode=e,this._regions=n;const[c,l]=r((e=>(e.getAttribute("widgetid")||"").includes("SidebarToggleButton")),this._toggleRegion.node.querySelectorAll(u));this._toggleRegionContents=l,this._toggleRegionToggleButtons=c;var d=this._toggleRegion.node.style.width;if(this._toggleRegion.cssWidth=parseInt(d,10),this._toggleRegion.cssUnit=-1!==d.indexOf("%")?"%":"px",a.add(this._toggleRegion.node,"mx-scrollcontainer-toggleable"),a.add(this._containerNode,"mx-scrollcontainer-"+this.containerClass),s.set(e.parentNode,"overflowX","hidden"),this._toggleRegion.node.setAttribute("data-focusindex",-1),this.closeOnBlur){var f=this;this.own(i(e,o.press,(function(e){var t=e.target||e.srcElement;f.isVisible()&&!f._toggleRegion.node.contains(t)&&f.hide()})))}},show:function(e){this._isVisible=!0,a.add(this._containerNode,"mx-scrollcontainer-open"),a.remove(this._toggleNode,"mx-scrollcontainer-move-out"),e||a.add(this._toggleNode,"mx-scrollcontainer-move-in"),this._toggleRegionContents.forEac
7h((e=>{e.removeAttribute("aria-hidden"),e.setAttribute("data-focusindex",0)}))},hide:function(){this._isVisible=!1,a.remove(this._containerNode,"mx-scrollcontainer-open"),a.replace(this._toggleNode,"mx-scrollcontainer-move-out","mx-scrollcontainer-move-in"),this._toggleRegionContents.forEach((e=>{e.setAttribute("aria-hidden",!0),e.setAttribute("data-focusindex",-1)}))},resize:function(){},_computeRegionWidth:function(){if("%"===this._toggleRegion.cssUnit){var e=this._containerNode.offsetWidth;return this._toggleRegion.cssWidth*e/100}return this._toggleRegion.cssWidth},_computeLeftPosition:function(e){var t=window.mx.ui.isRtl();return("left"===this._toggleRegion.position?e?0:t?this._toggleRegion.width:-this._toggleRegion.width:e?t?this._toggleRegion.width:-this._toggleRegion.width:0)+"px"},_triggersTransition:function(e,t,n){if(e.style[t]===n)return!1;var r=s.get(e,"transitionProperty");return r===t||"all"===r},_transitionTo:function(e,t,n){var r=this,o=this._triggersTransition(e,t,n);function s(){a.remove(r._toggleNode,"mx-scrollcontainer-move-in mx-scrollcontainer-move-out")}function c(){r._transitionEndHandler.remove(),r._transitionEndHandler=null}e.style[t]=n,this._transitionEndHandler&&c(),o?this._transitionEndHandler=i(e,"transitionend",(function(t){t.target===e&&(c(),s())})):s()},isVisible:function(){return this._isVisible}});e.exports=d},8125:(e,t,n)=>{const{createWidgetSelectionTopic:r,removeTopic:i,storeTopic:o}=n(245),{publish:a}=n(2351),s=n(7136)(null,{initialSelection:void 0,selection:void 0,pageSelectionTopic:void 0,_widgetSelectionTopic:void 0,postMixInProperties:function(){this.shouldPreserveSelection=void 0!==this.initialSelection,this.initialSelection=this.initialSelection||[],this.selection=Array.from(this.initialSelection),this._widgetSelectionTopic=r(this.mxform,this.mxid)},getSelected:function(){return this.selection},_addToSelection:function(e){this.selection.includes(e)||this.selection.push(e)},_removeFromSelection:function(e){const t=this.selection.indexOf(e);-1!==t&&this.selection.splice(t,1)},_isSelected:function(e){return this.selection.includes(e)},_hasSelection:function(){return this.selection.length>0},_shareWidgetSelection:function(){const e=this.selection.length>0?this.selection[this.selection.length-1]:void 0;o(this._widgetSelectionTopic,e),a({topic:this._widgetSelectionTopic})},_sharePageSelection:function(){const e=this.getSelected();(this.initialSelection.length!==e.length||this.initialSelection.find((t=>!e.includes(t))))&&o(this.pageSelectionTopic,e)},_destroySelection:function(){i(this._widgetSelectionTopic)}});e.exports=s},2487:(e,t,n)=>{const{MxContext:r}=n(2959);var i=n(7136)(null,{initContext:function(){this.mxcontext||(this.mxcontext=this.createContext())},cloneContext:function(e){null!=this.mxcontext&&""!==this.mxcontext||(this.mxcontext=this.createContext()),this.mxcontext.dupFrom(e)},createContext:function(){return new r}});e.exports=i},9795:(e,t,n)=>{const r=n(1015),i=n(2789),o=n(9687);var a=n(7136)(null,{createBackgroundIframe:function(){if(o("config-bgIframe")){var e=new i(this.domNode);this.addOnDestroy((function(){e.destroy()})),this.domNode.appendChild(r.create("div",{class:"mx-ie-event-shield"}))}}});e.exports=a},5794:(e,t,n)=>{const r=n(1374),i=n(3866),o=n(1079),a=n(9488),s=n(7136),{LogManager:c}=n(7606),l=c.get().getLogger();var u=s(null,{plugins:null,pluginEvents:null,_normalizePluginName:function(e){return-1==e.indexOf(".")&&(e="mxui.widget.plugins."+this.declaredClass.split(".").pop()+"."+e),e},loadPlugin:function(e,t){this.plugins=this.plugins||{};var n={"mxui.widget.plugins.DataGrid.Calculations":r,"mxui.widget.plugins.DataGrid.GridEditor":i,"mxui.widget.plugins.DataGrid.HoverPreview":o}[this._normalizePluginName(e)];this.plugins[e]=new n({parent:this,config:t})},hasPlugin:function(e){return this.plugins&&this._normalizePluginName(e)in this.plugins},registerToPluginEvent:function(e,t,n){this.pluginEvents=this.pluginEvents||{},this.pluginEvents[e]||(this.pluginEvents[e]=[]),t._async=n,this.pluginEvents[e].push(t)},triggerPluginEvent:function(e,t,n){var r=this.pluginEvents&&this.pluginEvents[e],i=1,o=function(){0==--i&&n&&n()};r&&a.forEach(r,(function(n){try{n._async?(i++,n(t,o)):n(t)}catch(t){l.error(`${this.friendlyId}: An error occurred in listener of event '${e}': ${t}`)}}),this),o()},uninitialize:function(){for(var e in this.plugins)try{this.plugins[e].destroy&&this.plugins[e].destroy()}catch(t){l.warn(`${this.friendlyId}: An error occurred in destroy method of plugin '${e}': ${t}`)}}});e.exports=u},4478:(e,t,n)=>{const r=n(4238),i=n(6618);var o=n(7136)(null,{constructor:function(){r.before(this,"postCreate",i.hitch(this,"_registerStoreState"))},_registerStoreState:function(){if(!this.uniqueid)throw new Error("All _Stateful widgets must have a deterministic uniqueid provided. See _WidgetBase#uniqueid.");this.connect(this.mxform,"onPersistViewState",(function(e){var t=e[this.uniqueid]||(e[this.uniqueid]={});this.storeState((function(e,n){t[e]=n}))}))},getState:function(e,t){var n=this.mxform&&this.mxform.viewState?this.mxform.viewState[this.uniqueid]:void 0;return 0===arguments.length?n:n&&e in n?n[e]:t},storeState:function(e){throw new Error("All stateful widgets must implement storeState method, as it is the only method where their state can be stored")}});e.exports=o},5603:(e,t,n)=>{const r=n(7136),{AssertionError:i}=(n(4238),n(234)),o=r(null,{initSubscriptionSuspendable:function(){this._resumeQueue=[],this._resumeSub=void 0},subscribe:function(e){var t=this;const n=Object.assign({},e);e.callback&&!e.val&&(n.callback=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t._runSubscription(r,e)});let r=window.mx.data.subscribe(n,this);return{unsubscribe:()=>{r&&(window.mx.data.unsubscribe(r),this._resumeQueue=this._resumeQueue.filter((t=>{let{sub:n}=t;return n!==e})),r=void 0)}}},unsubscribe:function(e){if(!("unsubscribe"in e))throw new i("Trying to unsubscribe using an invali
7d subscription handle");e.unsubscribe()},_runSubscription:function(e,t){return this.mxform.isSuspended()?(this._resumeSub||(this._resumeSub=this.own({destroy:this.mxform.listen("resume",(e=>this._resume(e)))})[0]),void(this._resumeQueue=this._resumeQueue.filter((e=>{let{sub:n}=e;return n.callback!==t.callback})).concat({args:e,sub:t}))):t.callback.apply(this,e)},_resume:function(e){this._resumeSub.destroy(),this._resumeSub=void 0;const t=this._resumeQueue;this._resumeQueue=[],t.forEach((e=>{let{args:t,sub:n}=e;n.callback.apply(this,t)})),e()}});e.exports=o},9662:(e,t,n)=>{const r=n(7005);var i=n(7136)(r,{destroyRendering:function(){this._attachPoints=[],this.inherited(arguments)}});e.exports=i},8713:(e,t,n)=>{n.r(t),n(7563);const r=window.location.origin+window.location.pathname,i=r.slice(0,r.lastIndexOf("/")+1),o=n(8388).K,{callbackToPromiseFactory:a}=n(2813),s=n(646),c=n(9375),l=c.appbase||i,u=c.remotebase||l,d=c.apppath||((f=l.match(/^(?:[^:]+:)?\/\/\/?[^\/]+\/(.*?)\/?$/)[1])&&"/"!==f[0]?"/"+f:f);var f;const h=c.homeurl||((p=window.location.hash.slice(1))&&"/"===p[0]?p:null);var p;window.cordova||function(e=i){var t;const n=document.createElement("base");n.href=e,null===(t=document.getElementsByTagName("head")[0])||void 0===t||t.appendChild(n)}(l);const g=Object.assign({garbageCollectionInterval:1e4,logCleanupStatistics:!1,onlineBackend:{}},c.data),m={shouldGenerateToken:c.session&&c.session.shouldGenerateToken,bundleVersion:c.cacheBust,tokenStore:c.session&&c.session.tokenStore?{get:a(c.session.tokenStore.get),set:a(c.session.tokenStore.set),remove:a(c.session.tokenStore.remove)}:{get:()=>Promise.resolve(null),set:e=>Promise.resolve(),remove:()=>Promise.resolve()},sessionStore:{get:()=>Promise.resolve(window.localStorage.session),set:e=>(window.localStorage.session=e,Promise.resolve()),remove:()=>(delete window.localStorage.session,Promise.resolve())}},v=Object.assign({createStoreFn:c.store&&c.store.createStoreFn},c.data&&c.data.offlineBackend);if(!("cacheBust"in c))throw window.alert("The 'cacheBust' parameter is missing. Update the index page in the theme by adding the cachebust to the 'dojoConfig' and to every url pointing to a static resource (e.g. scripts and stylesheets). See index-example.html in the deployment/web directory for an example of what the index page should look like."),new Error("No cachebust");if(!function(){if(/^https?:/.test(window.location.protocol)){if(!1===navigator.cookieEnabled)return!1;{const e="https:"===window.location.protocol?{sameSite:"None",secure:!0}:{};s.set("mx-cookie-test","allowed",e);const t="allowed"===s.get("mx-cookie-test");return s.remove("mx-cookie-test",e),t}}return navigator.cookieEnabled}())throw window.alert("This application requires cookies to be enabled."),new Error("No cookies");if(v.downloadFileFn){const e=v.downloadFileFn;v.downloadFileFn=function(t,n,r,i){const o=t.substr(window.mx.remoteUrl.length);e(o,n.replace(/^files\//,""),r,i)}}window.mx=new o({appUrl:l,homeUrl:r,remoteUrl:u,modulePath:`${l}widgets/`,appPath:d,referrer:h,offline:c.offline,hybridTabletProfile:c.hybridTabletProfile,hybridPhoneProfile:c.hybridPhoneProfile,timeout:c.timeout||c.server&&c.server.timeout,data:g,ui:c.ui,session:m,offlineBackend:v,afterLoginAction:c.afterLoginFn,afterNavigationAction:c.afterNavigationFn,rtlRedirect:c.rtlRedirect,ltrRedirect:c.ltrRedirect}),window.mx.startup()},4160:(e,t,n)=>{n.d(t,{x:()=>c});const{translatedError:r}=n(2726),{LogManager:i}=n(7606),o=n(7950);let a;const s=i.get().getLogger();function c(e){window.setTimeout((()=>{s.error(e),a&&a.hide(),a=new o(r(e)),a.show(!0)}),0)}},5233:(e,t,n)=>{n.r(t),n.d(t,{reloadApp:()=>l,tryRestorePage:()=>u});var r=n(1016),i=n(3282),o=n(1881);const a=n(8818),s=n(4238),c="mx.reload";function l(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Object.assign(e?function(){const e=window.mx.ui.getContentForm(),t=e.getContext(),n=(0,r.getSession)();return{page:{path:e.path,params:d(t),title:e.title},cache:window.mx.data.dehydrateCache(),lang:n.getConfig("locale.code")}}():{},{enableCustomError:t});window.sessionStorage.setItem(c,JSON.stringify(n)),window.mx.reload()}function u(){const e=window.sessionStorage.getItem(c);window.sessionStorage.removeItem(c);const{cache:t,page:n,lang:l,enableCustomError:u}=e?JSON.parse(e):{};return!!(t&&n&&l)&&((0,r.getSession)().getConfig("locale.code")!==l&&delete n.title,window.mx.data.hydrateCache(t),function(e){window.mx.ui.openForm2(e.path,(0,i.mapValues)(e.params,(e=>
7null===e?void 0:e)),e.title,window.mx.ui.getContentForm(),{location:"content"}).catch(o.handleError)}(n),u&&(s.after(window.mx,"onError",f),(new a).show()),!0)}function d(e){return(0,i.mapValues)(e.getWidgetObjectMap(),(e=>void 0!==e?e.getGuid():null))}function f(){window.mx.ui.confirmation({content:"An error has occurred that might have been caused by fast reload. Refresh the page to fix it.",proceed:"Refresh page",handler:()=>window.mx.reload()})}},4362:(e,t,n)=>{const{ContentForm:r}=n(2171),i=n(6014),o=n(546),a=n(795),s=n(136),{createContext:c}=n(2959),{LogManager:l}=n(7606),{NavigationError:u}=n(3787),d=n(4296),f=n(4238),{handleError:h}=n(1881),p=l.get().getLogger();function g(){this._templateProvider=new o,this._contentForm=new r,this._formFactory=new i(this._templateProvider),this._onCloseQueue=[]}g.prototype.startup=function(e){const t=this;let n=null,r=null;s.init();const i=document.getElementById("content");i?(i.setAttribute("data-focus-capturing","non-modal"),i.appendChild(this._contentForm.domNode),a.title(e.profile),this._contentForm.listen("close",((e,n)=>{const r=e&&e.data&&e.data.numberOfFormsToClose||1,i=e&&e.data&&e.data.allowBackToInitialPage||!1;s.back(r,i)?t._onCloseQueue.push({callback:e,error:n}):e()})),f.after(this._contentForm,"onLoading",(()=>this._templateProvider.add(this._contentForm.widgetTemplates))),f.after(this._contentForm,"onNavigation",(()=>{const n=e.profile+" - "+t._contentForm.title;let r=this._contentForm.url?e.urlPrefix+this._contentForm.url:a.location.pathname();r=r.replace("{Id}",this._contentForm.getContext().getTrackId()||""),s.replace(n,r+a.location.search())})),f.after(s,"onNavigation",(async function(e,i){const o=i.formParams;let a;null===n&&(n=window.mx.ui.showProgress());try{e&&(a={},t._contentForm.onPersistViewState(a)),await new Promise(((e,n)=>t._contentForm.navigateTo(o.path,o.customTitle,o.formParameters,o.contextParams,o.formParams||{},i.id in s.viewStates?JSON.parse(s.viewStates[i.id]):{},e,n))),l(),c("callback"),window.mx.ui.hideProgress(n),n=null}catch(e){l(),e instanceof u?(r=i.id,p.debug("Page "+o.path+": "+e.message)):(c("error",e),window.mx.ui.hideProgress(n),n=null,h(e))}function c(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const o=t._onCloseQueue;t._onCloseQueue=[],o.forEach((t=>{t[e](...r)}))}function l(){if(e)if(e.id===r)r=null;else try{s.addViewState(e.id,a)}catch(e){p.error("One of the widgets on the previous page tried to store a complex object in its viewState",e)}}}),!0)):window.alert("You are using an outdated index page. Please update your index page. See index-example.html in the deployment directory for an example of what the index page should look like.")},g.prototype.openFormInContent=function(e,t,n,r){return s.push({id:d.getUniqueId(),formParams:{path:e,formParameters:t,customTitle:n,contextParams:r.contextParams,formParams:r.formParams}}),new Promise(((e,t)=>this._onCloseQueue.push({callback:()=>e(this._contentForm),error:t})))},g.prototype.openFormInPopup=async function(e,t,n,r){const i=window.mx.ui.showProgress();try{const i=await c(t,r.contextParams),o={width:r.width,height:r.height,resizable:r.resizable,title:n,modal:"modal"===r.location};return await new Promise(((t,n)=>this._formFactory.openPopupForm(e,o,i,r.formParams||{},((e,t,n)=>{let{numberOfFormsToClose:r,allowBackToInitialPage:i}=n;s.back(r,i),this._onCloseQueue.push({callback:e,error:t})}),t,n)))}finally{window.mx.ui.hideProgress(i)}},g.prototype.openFormInNode=async function(e,t,n,r,i){const o=window.mx.ui.showProgress();try{const r=await c(n,i.contextParams);return await new Promise(((n,o)=>this._formFactory.openInlineForm(t,e,r,i.formParams||{},n,o)))}finally{window.mx.ui.hideProgress(o)}},g.prototype.getTemplate=function(e,t){return this._templateProvider.get(e,t)},g.prototype.getContentForm=function(){return this._contentForm},e.exports=g},136:(e,t,n)=>{const r=n(795),i=n(4296),{LogManager:o}=n(7606),a=o.get().getLogger();var s,c,l;let u=[],d=-1;const f={};var h={_queue:[],_process:function(){for(;this._queue[0];)this._queue.shift().call()},startPush:function(){this._queue.push(null)},endPush:function(){if(0===this._queue.length||null!==this._queue[0])throw new Error("Invalid state of the queue");this._queue.shift(),this._process()},push:function(e){this._queue.push(e),this._process()},empty:function(){return 0===this._queue.length}},p={viewStates:f,addViewState:function(e,t){if(u.some((t=>e===t)))try{f[e]=JSON.stringify(t)}catch(e){a.error("One of the widgets on the previous page tried to store a complex object in its viewState",e)}},init:function(){s=i.getUniqueId(),l=null,c={id:s},r.history.replaceState(c,"",m()),r.history.onPopstate((function(e){r.setTimeout((function(){g(e.state),h.empty()?e.state&&(e.state.id===s?d=0:e.state.id===u[d-1]?d--:d++):h.endPush()}),0)}))},back:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&0===d&&1===e)h.startPush(),r.history.back(1);else{const t=Math.min(d,e);if(!(t>0))return!1;h.startPush(),r.history.back(t),d-=t}return!0},forward:function(){h.startPush(),r.history.forward()},push:function(e){h.push((function(){const t={id:e.id||i.getUniqueId(),pageInfo:e};r.history.pushState(t,"",m());const n=g(t);"push"===n?(function(){for(;Object.keys(f).length>50;){const e=u.find((e=>f[e]));if(void 0===e){a.warn("viewStates cleanup has failed");break}delete f[e]}}
7(),d++):"replace_home"===n&&(d=0),u[d]=t.id}))},replace:function(e,t){h.empty()&&(r.history.replaceState(c,e,t),r.title(e))},onNavigation:function(){},isAtBeginning:function(){return null===l||c.id===l}};function g(e){if(null!==e){if(e.id!==s)return p.onNavigation(c.pageInfo,e.pageInfo),c=e,null===l?(l=c.id,"replace_home"):"push";l=null}else r.history.replaceState(c,r.title(),m())}function m(){return r.location.pathname()+r.location.search()+r.location.hash()}e.exports=p},4525:(e,t,n)=>{const r=n(7715),i=n(7074),o=n(708),a=n(4296),s=n(9724),c=n(1120),l=n(9488),{LogManager:u}=n(7606),d=u.get().getLogger();e.exports.findWidgetByMxId=function(e,t){var n=t.querySelector("[data-mendix-id='"+e+"']");return n&&s.byNode(n)||null},e.exports.getDisableables=function(e){var t=[],n=function(e){for(var o,a=e.childNodes,c=0;o=a[c];c++)if(1==o.nodeType){var l=o.getAttribute("widgetId"),u=s.byId(l);u&&!(/^dijit/.test(l)||u._btn_||u instanceof r)&&t.push(u),u instanceof i||n(o)}};return n(e),t},e.exports.findNonPlaceholderParent=function(e){for(var t=e.parentNode;t&&t.hasAttribute("data-mx-placeholder");)t=t.parentNode;return t},e.exports.resizeWidgetsIn=function(t,n){var r=s.findWidgets(t);if(!n&&1===r.length&&1===t.children.length){var i=r[0],o=i.domNode;if(!o.previousSibling&&!o.nextSibling){var a=e.exports.findNonPlaceholderParent(o);if(a===t||a===i.mxform.domNode){var u=c.getContentBox(t),d=i.domNode.style;return d.marginTop=d.marginBottom="0",void i.resize({w:u.w,h:u.h})}}}l.forEach(r,(function(e){e.resize()}))},e.exports.fireOnReady=function(e,t){var n=[];e.forEach((function(e){e.addOnLoad&&n.push((function(t){e.addOnLoad(t)}))})),a.sequence(n,t)},e.exports.destroyWidgetsIn=function(t){var n=s.findWidgets(t),r=e.exports.getDescendantWidgets(t);l.forEach(n,(function(e){try{e.destroyRecursive()}catch(t){d.warn(e.friendlyId+": Unable to destroy:"+t.message)}})),l.forEach(r,(function(e){e._destroyed||d.warn(e.friendlyId+": widget not destroyed, check parent's uninitialize method")}))},e.exports.createCSSMap=function(e,t){for(var n in t)t[n]=e+"-"+t[n];return t.baseClass=e,t},e.exports.getDescendantWidgets=function(e){return e?l.map(e.querySelectorAll("[widgetId]"),s.byNode):[]},e.exports.loadWidgetsIn=function(t,n,r,i){o.parse(t,n);var c=s.findWidgets(t);a.collect(l.map(c,(function(t){var n=e.exports.getDescendantWidgets(t.domNode).concat([t]);return function(i){e.exports.fireOnReady(n,(function(){e.exports.applyContext([t],r,i)}))}})),i)},e.exports.ready=function(e,t,n){var r=[];l.forEach(e,(function(e){e.addOnLoad&&r.push((function(t){e.addOnLoad(t)}))})),a.collect(r,t,n)},e.exports.applyContext=function(t,n,r){a.collect(l.map(t,(function(t){return t.applyContext?function(e){try{t.applyContext(n,e)}catch(e){throw new Error(`${t.friendlyId}: Error while applying context ${e}`)}}:function(r){try{var i=s.findWidgets(t.domNode);e.exports.applyContext(i,n,r)}catch(e){throw new Error(`${t.friendlyId}: Error while applying context ${e}`)}}})),r)}},3792:(e,t,n)=>{const r=n(7715);var i=n(7136)(r,{declaredClass:"mxui.widget.Button"});e.exports=i},2544:(e,t,n)=>{const r=n(9376),i=n(1015),o=n(7136);var a=i.create,s=o(r,{declaredClass:"mxui.widget.ConfirmationDialog",cancel:"",proceed:"",handler:null,onCancel:null,buildRendering:function(){this.caption=this.caption||this.translate("caption"),this.closeCaption=this.cancel,this.inherited(arguments);var e=a("button",{class:"btn"},this.cancel),t=a("button",{class:"btn btn-primary"},this.proceed),n=a("p");n.innerHTML=i.convertNlToBr(i.escapeString(this.content)),this.setContent(n),this.setButtons([t,e]),this.connect(e,"click",(function(){this.hide(),this.onCancel&&this.onCancel()})),this.connect(t,"click",(function(){this.hide(),this.handler()}))},show:function(){this.inherited(arguments,[!0])},onClose:function(){this.inherited(arguments),this.onCancel&&this.onCancel()}});e.exports=s},4509:(e,t,n)=>{const r=n(4010);var i=n(7136)(r,{declaredClass:"mxui.widget.ControlBarButton",alwaysHidden:!1,_isConditionallyVisible:!0,buildRendering:function(){this.inherited(arguments),this.alwaysHidden&&(this.domNode.style.display="none")},hide:function(){this._isConditionallyVisible=!1,this.domNode.style.display="none"},show:function(){this._isConditionallyVisible=!0,this.alwaysHidden||(this.domNode.style.display="")},isConditionallyVisible:function(){return this._isConditionallyVisible}});e.exports=i}
7,2062:(e,t,n)=>{const{AssertionError:r}=n(234),i=n(4665),o=n(4525),a=n(1015),s=n(1219),c=n(4296),{getStaticResourceUrlFromPath:l}=n(6199),{formatAttribute:u}=n(6598),d=n(442).B,f=n(1178),h=n(8007),p=n(9488),g=n(6618),m=n(7136),v=n(8162),y=n(8048),b=y.NavigationKeys,{TextExpression:w}=n(2565),x=n(4677),{onlineData:_}=n(7223),{applyStyleObject:S}=n(7020),{handleError:C}=n(1881);var E=m(i,{declaredClass:"mxui.widget.DataGrid",templateString:v,subClass:"mx-datagrid",cssmap:o.createCSSMap("mx-datagrid",{sortText:"sort-text",sortIcon:"sort-icon",headCaption:"head-caption",columnResizer:"column-resizer",dataWrapper:"data-wrapper"}),readOnly:!1,caption:null,gridBodyNode:null,gridFootNode:null,gridCaptionNode:null,_deferSyncQueue:0,_deferSyncCallback:null,_mxObjects:null,_gridColumnNodes:null,_gridRowNodes:null,_gridMatrix:null,_visibleColumns:null,_hiddenAggregates:null,_captionTextExpression:null,constructor:function(){this._mxObjects=[],this._gridColumnNodes=[],this._gridRowNodes=[],this._gridMatrix=[],this._visibleColumns=[],this._hiddenAggregates=[],this._gridState={sortable:!0,selectable:!0,selectionmode:"single",searchbar:!0,controlbar:!0,pagingbar:x.yesWithoutTotalCount,inDenial:!1,searchBarVisible:!1,searchBarTogglable:!0,xpathConstraint:"",loading:!1,invertedSelection:!1}},postCreate:function(){this.inherited(arguments),this._metaEntity&&(this._addKeyListener(),this.buildCaption(),this.buildGridBody(),this.loadPlugins(),this.doGridAttributes(),this.triggerOnLoad()),this.actLoaded()},setColumnStyle:function(e,t){var n=t.display,r=n.align||"left";window.mx.ui.isRtl()&&(r="right"===r?"left":"right"),S(e,n.cssStyle),h.add(e,[t.name?"mx-name-"+t.name:"","mx-"+r+"-aligned"]),h.add(e,n.cssClass)},buildGridRow:function(e,t){var n,r=a.create,i=r("tr",{class:"mx-name-index-"+t});return this.domData(i,"gridrow",t),n=p.map(e,(function(e,n){var o=r("td");return this.domData(o,{row:t,column:n,key:e.tag,name:e.name}),this.setColumnStyle(o,e),o.appendChild(r("div",{class:this.cssmap.dataWrapper})),i.appendChild(o),o}),this),this._gridMatrix.push(n),i},setNodeTitle:function(e,t,n){if(e){var r=n||a.text(t||e);e.setAttribute("title",g.trim(r))}},createFormatAttributeConfig:function(e){const t=e.display,n=t.formatSettings||{},r=n.dateFormat||"date";return{numberFormat:{groupDigits:t.formatted,decimalPrecision:t.precision},dateFormat:"custom"===r.toLowerCase()||n.format?{type:"custom",pattern:n.format}:{type:r.toLowerCase()}}},gridbodyFillCell:function(e,t,n){if(t.has(n))switch(e.render.toLowerCase()){case"icon":case"enumicon":const r=e.display.mapping[t.get(n)];return r?"<img src='"+l(r)+"'>":"";case"weblink":return t.get(n);default:const i=u(t,n,this.createFormatAttributeConfig(e));return a.escapeString(i.replace(/\n/g," "))}},disableRow:function(e){e.style.display="",p.forEach(e.getElementsByTagName("td"),(function(e){e.firstChild.innerHTML="&nbsp",e.setAttribute("title","")}))},setupGridState:function(){this.inherited(arguments),this._gridState.sortable=this._gridConfig.gridSetting("sortable")},loadPlugins:function(){this.hideFootNode(),this._gridState.editable&&this.loadPlugin("GridEditor");var e=this._gridConfig.getPlugins();for(var t in e)this.loadPlugin(t,e[t])},resize:function(e){this.inherited(arguments),this._resizer.recalculate()},buildCaption:function(){this.caption&&(this._captionTextExpression=new w(this.caption,(e=>{a.text(this.gridCaptionNode,e)})))},updateSortIcons:function(e,t){this._gridColumnNodes.forEach((n=>{const r=n.querySelector(`.${this.cssmap.sortIcon}`);this.domData(n,"datakey")===e?(n.querySelector(`.${this.cssmap.sortText}`).innerHTML=t?"&#9650;":"&#9660;",r.style.display=""):r.style.display="none"}))},applyContext:function(e,t){this.inherited(arguments),this._captionTextExpression&&this._captionTextExpression.update(e)},buildGridBody:function(){var e=this,t=a.create,n=this._gridConfig.gridAttributes(),r=[],i=[],o=t("tr",{class:"mx-name-head-row"}),c=t("div",{class:this.cssmap.headCaption}),l={},u=this._gridConfig.getPlugins().Calculations||{};if(a.disableSelection(o),p.forEach(this.getState("sortOptions",this._gridConfig.gridSetting("sortparams")),(function(e){l[e[0]]=e})),p.forEach(n,(function(e,t){var n=e.display.width,r=null!=n&&("0px"==n||"0%"==n);e.tag in u&&i.push(r),r||this._visibleColumns.push(e)}),this),p.forEach(i,(function(e,t){e&&this._hiddenAggregates.push(t)}),this),p.forEach(this._visibleColumns,(function(e){var n=t("th");this.domData(n,{datakey:e.tag,sortable:!1!==e.sortable}),this.setColumnStyle(n,e);var i=t("span",{class:this.cssmap.sortText}),a=t("div",{class:this.cssmap.sortIcon},i);a.style.display="none";var s=l[e.tag];if(s){var u=s[1];this.domData(n,"sortorder",u),i.innerHTML="asc"===u?"&#9650;":"&#9660;",a.style.display=""}var d=c.cloneNode(!0);d.innerHTML=e.display.string||"&nbsp;",n.appendChild(a),n.appendChild(d),this.setNodeTitle(n,d);var f=t("col"),p="width:"+e.display.width+";";f.style.width=e.display.width,e.display.cssClass&&h.add(f,e.display.cssClass),e.display.cssStyle&&(p+=e.display.cssStyle),S(f,p),f.setAttribute("data-mendix-id",e.dataMendixId),this.colGroupNode.appendChild(f),r.push(f),this._gridColumnNodes.push(n),o.appendChild(n)}),this),this.gridHeadNode.appendChild(o),this._gridState.sortable&&this.own(f(this.gridHeadNode,"th:click",(function(t){e.domData(this,"sortable")&&e.eventColumnClicked(t,this)}))),this._resizer=new s({thNodes:a.toArray(o.children),colNodes:r,colUnits:n[0].display.width.indexOf("%")>0?"%":"px",rtl:!this.isLeftToRight(),tableNode:this.gridTable}),this._gridState.showemptyrows)for(var d=this._gridConfig.gridSetting("rows"),g=0;g<d;g++)this.addNewRow();this._gridState.editable||y.enableRoving(this.contentNode,b.UpDown,(()=>
7this._gridRowNodes)),this.own(f(this.gridBodyNode,"tr:click",(function(t){e.eventItemClicked(t,this)}))),this.own(f(this.gridBodyNode,"td:click",(function(t){e.eventCellClicked(t)}))),this.own(f(this.gridBodyNode,"tr:mouseover",(function(t){e.eventRowMouseOver(t,this)}))),this.own(f(this.gridBodyNode,"tr:mouseout",(function(t){e.eventRowMouseOut(t,this)})));var m=this._gridConfig.getDefaultButton();if(m){var v="single"===m.clickType?"click":"dblclick";this.own(f(this.gridBodyNode,"tr:"+v,(function(){e.triggerDefaultAction(this)})))}},addNewRow:function(){var e=this._visibleColumns,t=this._gridConfig.gridSetting("rows"),n=this._gridRowNodes.length;if(n>t)return null;var r=this.buildGridRow(e,n);return this._gridRowNodes.push(r),this.gridBodyNode.appendChild(r),r},doGridAttributes:function(){var e=this._visibleColumns;p.forEach(e,(function(e){var t=e.tag.split("/");if(2===t.length||4===t.length)throw new r(`${this.friendlyId}: incorrect export, path ${t} is of an even length`);e.attrs=t}),this)},fillGrid:function(){this._mxObjects=this._dataSource.getObjects()||[];var e=this._visibleColumns,t=!1;this._gridState.selectfirst&&!this._gridState.invertedSelection&&this._mxObjects.length>0&&!this._hasSelection()&&this._addToSelection(this._mxObjects[0].getGuid()),this._shareWidgetSelection();var n=this._mxObjects.length-this._gridRowNodes.length;if(n>0){for(;n--;)this.addNewRow();t=!0}else n<0&&p.forEach(this._gridRowNodes.slice(this._mxObjects.length),(function(e){h.remove(e,"selected"),this._gridState.showemptyrows?this.disableRow(e):e.style.display="none"}),this);p.forEach(this._mxObjects,(function(t,n){var r=t.getGuid(),i=this._gridRowNodes[n];this._gridbodyFillRow(t,this._gridMatrix[n],e),this._isSelected(r)?this.selectRow(i):this.deselectRow(i),i.style.display=""}),this),t&&this.mxform.resize()},refreshGrid:function(){this.triggerPreRefresh(),this.inherited(arguments),this.triggerOnRefresh()},triggerOnLoad:function(){this.triggerPluginEvent("onLoad")},triggerOnSync:function(){this.triggerPluginEvent("onSync")},triggerOnRefresh:function(){this.triggerPluginEvent("onRefresh")},triggerPreRefresh:function(){this.triggerPluginEvent("preRefresh")},triggerOnSearchChanged:function(){this.triggerPluginEvent("onSearchChanged")},actDeferSyncAction:function(e){if(0===this._deferSyncQueue)e&&e();else{if(null!=this._deferSyncCallback)throw new r;this._deferSyncCallback=e}},eventCellClicked:function(e){this.triggerPluginEvent("onCellClicked",e)},eventRowMouseOver:function(e,t){this.triggerPluginEvent("onRowMouseOver",{event:e,node:t})},eventRowMouseOut:function(e,t){this.triggerPluginEvent("onRowMouseOut",{event:e,node:t})},eventSelectRow:function(e){this.triggerPluginEvent("onSelectRow",e)},eventColumnClicked:function(e,t){e.shiftKey&&a.clearSelection();const n=this.getPagingObject(this.mxcontext);if(n&&!n.get("IsSortable"))return;const r=e.shiftKey&&!n;r||p.forEach(this._gridColumnNodes,(function(e){e.querySelector("."+this.cssmap.sortIcon).style.display="none"}),this);const i=this.domData(t,"datakey");let o="asc";this.domData(t,"sortorder")&&(o=this.domData(t,"sortorder"),o="asc"===o?"desc":"asc"),this.domData(t,"sortorder",o);const s=t.querySelector(`.${this.cssmap.sortText}`);s.innerHTML="asc"===o?"&#9650;":"&#9660;",s.parentNode.style.display="",n?this.setPagingSort(n,i,o):(r?this._dataSource.addSort(i,o):this._dataSource.setSort(i,o),this.constraintsFilled()&&this._dataSource.reload((()=>this.refreshGrid())))},deselectGridRows:function(){p.forEach(this._gridRowNodes,(function(e){this.deselectRow(e)}),this)},getAggregates:function(){return this._dataSource.getAggregates()},actionExport:function(e){if(this.constraintsFilled()){var t=window.mx.ui.showProgress("",!0);const n=this._dataSource instanceof d?{xpath:this._dataSource.getCurrentXPath()}:{guids:this._dataSource.getAllObjects().map((e=>e.getGuid()))},r=this._dataSource instanceof d?{sort:this._dataSource.getSortSettings()}:{};_().generateExport(Object.assign({gridid:this.schema},e,n,r)).then((()=>window.mx.ui.hideProgress(t)),(e=>{window.mx.ui.hideProgress(t),C(e)}))}},actionInsertNewAtTop:function(e){var t=this._getEntity(e);t&&this._insertNewFirstOrLast(t,e[t],!1)},actionInsertNewAtBottom:function(e){var t=this._getEntity(e);t&&this._insertNewFirstOrLast(t,e[t],!0)},getCellNode:function(e,t){var n=this._gridMatrix[e];if(n)for(var r=0;r<n.length;r++)if(this.domData(n[r],"key")===t)return n[r];return null},getMxObjectAtRow:function(e){return this._mxObjects.length>=e&&this._mxObjects[e]},getRowForMxObject:function(e){for(var t=this._mxObjects,n=0;n<t.length;++n)if(t[n].getGuid()===e.getGuid())return n},getEntityProperties:function(){return this._visibleColumns},getHiddenAggregates:function(){return this._hiddenAggregates.slice()},getActionProperties:function(e,t){var n=this._gridConfig.dataEntityConfigs(),r=null;return n[e]&&(r=n[e][t]),r},getCurrentGridSize:function(){return this._mxObjects.length},getGridNodeHash:function(){return this._gridMatrix},getCurrentXPath:function(){return(this._dataSource&&this._dataSource.getCurrentXPath()||"")+this._gridState.xpathConstraint},preventUpdates:function(){this._gridState.inDenial=!0},acceptUpdates:function(){this._gridState.inDenial=!1},acceptingUpdates:function(){return!this._gridState.inDenial},updateMxObject:function(e,t){var n=this.getRowForMxObject(e);n||this._gridbodyFillRow(e,this._gridMatrix[n],this._visibleColumns),t&&t()},showFootNode:function(){this.gridFootNode.style.display=""},hideFootNode:function(){this.gridFootNode.style.display="none"},addToSyncDeferQueue:function(){this._deferSyncQueue++},removeFromSyncDeferQueue:function(){this._deferSyncQueue--,0===this._deferSyncQueue&&null!=this._deferSyncCallback&&(this._deferSyncCallback(),this._deferSyncCallback=null)},uninitialize:function(){this._captionTextExpression&&this._captionTextExpression.destroy(),this._resizer.destroy(),this.triggerPluginEvent("onDestroy"),y.disableRoving(this.contentNode)},_setSelectableAttr:function(e){this._gridState.selectable=!!e},_setDisabledAttr:function(e){},_setReadOnlyAttr:function(e){var t=this;this._gridState.controlbar&&e!=this.readOnly&&(function(e,n){p.forEach(e,(function(e){if(e.mxid){var t=this._gridConfig.getActionsByKey(e.mxid);t&&/AddRef|DeleteRef|CreateRef/.test(t.actionCall)&&n&&n(e)}}),t)}(this._gridConfig.gridTools(),e?function(e){t.toolBarNode.removeChild(e._domNode)}:function(e){e._nextNode?t.toolBarNode.insertBefore(e._domNode,e._nextNode):t.toolBarNode.appendChild(e._domNode)}),this.readOnly=!!e)},_renderObjectsToCell:function(e,t,n){var r=n.attrs.slice(-1)[0],i=t.firstChild,o=[],a=[];t.firstChild.innerHTML="",p.forEach(e,(function(e){var t=this.gridbodyFillCell(n,e,r);null!=t&&(o.push(t),/^(enum)?icon$/i.test(n.render)&&a.push(u(e,r)))}),this),i.innerHTML=o.join(", ")||"&nbsp;",0!==a.length?t.setAttribute("title",a.join(";")):this.setNodeTitle(t)}
7,_gridbodyFillRow:function(e,t,n){p.forEach(t,(function(t,i){var o=[],a=n[i],s=!1,c=a.attrs;if(1===c.length)o.push(e);else{for(var l,u=e,d=0;d<c.length-1;d+=2){var f=c[d],h=c[d+1];if(!((l=u.getChildren(f)).length>0)){if(3===c.length){s=!!e.get(f);break}break}if(d>0&&!l[0].isA(h))throw new r;u=l[0]}[].push.apply(o,l)}s?window.mx.data.get({guids:e.getReferences(c[0]),callback:e=>{this._renderObjectsToCell(e,t,a)},error:C}):this._renderObjectsToCell(o,t,a)}),this)},_insertNewFirstOrLast:function(e,t,n){this.triggerOnSync(),this.sequence([function(t){window.mx.data.create({entity:e,context:this.mxcontext,callback:function(e){n?this._dataSource.insertMxObjectAtEnd(e):this._dataSource.insertMxObjectAtStart(e),t()},error:C},this)},"actDeferSyncAction",function(){this.refreshGrid();var e=n?this._dataSource.getObjects().length-1:0;this.eventSelectRow({row:e})}])},_getEntity:function(e){return c.firstKey(e)},_getCurrentGuid:function(){return this.selection[this.selection.length-1]},_getNodeFromEvent:function(e){return a.getAncestorNode(e.target,"TR")},_getObjectFromNode:function(e){return this._mxObjects[this.domData(e,"gridrow")]},_addKeyListener:function(){this._gridState.editable||this.contentNode.addEventListener("keydown",(e=>{const t=this._getNodeFromEvent(e);switch(e.key){case" ":case"Spacebar":this.eventItemClicked(e,t);break;case"Enter":this._onDefaultAction(t);break;case"ArrowLeft":case"Left":this._onPreviousPage();break;case"ArrowRight":case"Right":this._onNextPage();break;default:return}e.preventDefault()}))},_onDefaultAction:function(e){this._gridConfig.getDefaultButton()&&e&&this.triggerDefaultAction(e)},_onPreviousPage:function(){this._dataSource.atBeginning()||this._dataSource.previous((()=>{this.refreshGrid()}))},_onNextPage:function(){this._dataSource.hasMoreItems()&&this._dataSource.next((()=>{this.refreshGrid()}))}});e.exports=E},4823:(e,t,n)=>{const r=n(7074),i=n(4525),o=n(1015),{ConditionalFormatter:a}=n(7853),{DirectObjectSource:s}=n(9989),{MicroflowObjectSource:c}=n(8481),{NanoflowObjectSource:l}=n(9162),{ListeningObjectSource:u}=n(8528),{MxContext:d}=n(2959),{AssertionError:f}=n(234),h=n(9724),p=n(1120),g=n(6618),m=n(7136),{handleError:v}=n(1881);var y=m(r,{declaredClass:"mxui.widget.DataView",entity:"",autoLoad:!1,datasource:null,conditions:null,hideFooter:!1,noEntityMessage:"",_mxObject:void 0,_source:null,_parentContext:null,_conditionalFormatter:null,_contentNode:null,_controlsNode:null,_messageNode:null,constructor:function(){this._parentContext=new d,this._loadNewWidgets=this._loadNewWidgets.bind(this)},postMixInProperties:function(){this.doParse=!0},buildRendering:function(){var e=o.create,t=this.getTemplate("content"),n=this.getTemplate("footer");if(this.domNode=e("div",{class:"mx-dataview"},e("div",{class:"mx-dataview-content"},t||"")),this._contentNode=this.domNode.firstChild,this.noEntityMessage&&(this._messageNode=e("div",{class:"mx-dataview-message",style:"display: none"},e("div",e("p",this.noEntityMessage))),this.domNode.appendChild(this._messageNode)),n){var r=this._controlsNode=e("div",{class:"mx-dataview-controls"},n);this.hideFooter&&(r.style.display="none"),this.domNode.appendChild(r)}},postCreate:function(){this.readOnly||this.own(this.mxform.addSubmitProvider(this.id,this._getSubmitObjects.bind(this))),this._conditionalFormatter=new a({conditions:this.conditions||{},rootNode:this.domNode,parseWidgetNode:this._parseWidgetNode.bind(this),shouldVisitNode:this._shouldVisitNode.bind(this)}),this.createSource()},createSource:function(){var e=this.datasource;if(e)switch(e.type){case"listen":this._source=new u({listenTo:e.contextsource,queryId:e.queryId,form:this.mxform,friendlyId:this.friendlyId});break;case"direct":this._source=new s({context:this._parentContext,path:e.path||this.entity,sourceVariable:e.sourceVariable,queryId:e.queryId,friendlyId:this.friendlyId});break;case"microflow":this._source=new c({context:this._parentContext,operationId:e.operationId,queryId:e.queryId,argMap:e.argMap,friendlyId:this.friendlyId});break;case"nanoflow":this._source=new l({context:this._parentContext,nanoflow:e.nanoflow,argMap:e.argMap,allowedRoles:e.allowedRoles,origin:this.mxform,friendlyId:this.friendlyId});break;default:throw new f("unknown datasource type: "+e)}},startup:function(){var e=this._conditionalFormatter.parse();i.ready(e,g.hitch(this,"actLoaded"))},applyContext:function(e,t){this.mxcontext.mixin(e),this._parentContext.mixin(e),this._update(!0,t)},_update:function(e,t){var n=this;this._source.fetch((function(r){n._destroyed||n._doUpdate(r,e,t)}),(function(r){v(r),n._destroyed||n._doUpdate(null,e,t)}))},_doUpdate:function(e,t,n){e!==this._mxObject||t?(this._mxObject=e,null==e?(this.mxcontext.setContext(this.entity,""),this.mxcontext.setWidgetObject(this.mxid,void 0)):this.mxcontext.setWidgetObject(this.mxid,e),this.refresh(n)):this._applyConditions()},_setSubscriptions:function(e){this.unsubscribeAll(),this._mxObject&&this.subscribe({guid:this._mxObject.getGuid(),callback:()=>{null===this._mxObject||this._mxObject.isUnavailable()?this._update(!0):this._applyConditions()}}),e.filter((e=>e.attr||!this._mxObject||e.guid!==this._mxObject.getGuid())).forEac
7h((e=>{this.subscribe(Object.assign({},e,{callback:()=>this._applyConditions()}))})),this._source.getDependencies().forEach((function(e){e.callback=this._update.bind(this,!1,null),this.subscribe(e)}),this)},_applyConditions:function(e,t){const n=t?(e,t,n)=>{n&&n()}:this._loadNewWidgets;this._conditionalFormatter.update(this.mxcontext,n,(t=>{this._setSubscriptions(t),e&&e()}))},refresh:function(e){this.set("disabled",!this._mxObject),this._messageNode&&(this._mxObject?this._messageNode.style.display="none":this._messageNode.style.display="block"),this._applyConditions((()=>this.passContext(h.findWidgets(this.domNode),e)),!0)},resize:function(e){if(e){var t=e.h-o.getNodeExtents(this.domNode).h;this._controlsNode&&(t-=p.getMarginBox(this._controlsNode).h),p.setContentSize(this._contentNode,{h:t})}else this._contentNode.style.height="auto";this._contentNode.style.overflow=e?"auto":"",this.resizeChildren(this._contentNode,!e)},getChildren:function(e){if(e){var t=[];return o.walkNode(this.domNode,(function(e){var n=e.nodeType===o.nodeTypes.ELEMENT_NODE&&h.byNode(e);return!(n&&n!=this&&(t.push(n),n instanceof this.constructor))})),t}this.inherited(arguments)},uninitialize:function(){this._conditionalFormatter.uninitialize()},_getSubmitObjects:function(){return!this._mxObject||this._mxObject.isUnavailable()||this.get("disabled")?[]:[this._mxObject]},_parseWidgetNode:function(e){var t=this.parseContent(e,{doParse:!1},!0)[0];return t&&this._patchWidget(t),t},_patchWidget:function(e){var t=e.name;e instanceof r||"function"!=typeof e.onChange||!t||this.connect(e,"onChange",(function(){var n=e.get("value");
7this._mxObject.set(t,n)}))},_shouldVisitNode:function(e){return e===this.domNode||!(h.byNode(e)instanceof this.constructor)},_loadNewWidgets:function(e,t,n){this.passContext(e,(function(){(e.length||t)&&this.mxform.resize(),n&&n()}))}});e.exports=y},4627:(e,t,n)=>{const r=n(7294),i=n(3935),o=n(5034),{DatePickerWrapper:a}=n(2865),s=n(7074),c=n(7136)(s,{declaredClass:"mxui.widget.DatePicker",placeholder:"",formatSettings:{selector:void 0,mode:"date",format:void 0},_markerNode:null,_contentNode:null,_value:void 0,_isValid:!0,_enabled:!0,_reactBaseProps:{},buildRendering:function(){this.inherited(arguments),this._markerNode=document.createComment(" react-mount-point-unstable "),this.domNode.parentNode.insertBefore(this._markerNode,this.domNode),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);const e="custom"===this.formatSettings.selector?{type:"custom",pattern:this.formatSettings.format}:{type:this.formatSettings.mode};this._reactBaseProps={id:this.id+"_input",mode:this.formatSettings.mode,dateFormat:e,placeholder:this.placeholder,buttonLabel:this.translate("open_datepicker"),onChange:this._onValueChange.bind(this),onInputKeyUp:e=>this.onKeyUp(e)},this._renderReact(),this.set("loaded",!0)},_renderReact(){const e=Object.assign({},this._reactBaseProps,{value:this._value,enabled:this._enabled}),t=r.createElement(a,e);i.render(t,this._markerNode,(()=>{this._contentNode=this._markerNode.previousSibling,this.domNode=this._contentNode}))},_onValueChange:function(e,t){this._value=e,this._isValid=t,this.onChange(),this._renderReact()},enable:function(){this._enabled=!0,this._renderReact()},disable:function(){this._enabled=!1,this._renderReact()},focus:function(){const e=o.findFirst(this._contentNode);e&&o.setFocus(e)},onChange:function(){},onKeyUp:function(){},isValid:function(){return this._isValid},_getValueAttr:function(){return this._value||""},_setValueAttr:function(e){this._value=e?new Date(e):void 0,this._renderReact()},uninitialize:function(){i.unmountComponentAtNode(this._markerNode),this._markerNode.parentNode&&this._markerNode.parentNode.removeChild(this._markerNode)}});e.exports=c},3524:(e,t,n)=>{const r=n(7074),i=n(9662),o=n(1015),a=(n(1178),n(3869)),s=n(9488),c=n(7136),l=n(3802),{getSession:u}=n(1016);var d=c([r,i],{declaredClass:"mxui.widget.DemoUserSwitcher",templateString:l,demoUsers:null,_listNode:null,_toggleNode:null,_collapsed:!0,postCreate:function(){var e=this;this.on(".mx-demouserswitcher-toggle:click",(function(){e._toggleVisibility()})),this.on("li:click",(function(t){e._onUserClick(o.data(this)),t.preventDefault()})),this._renderList()},startup:function(){this.domNode.style.right=-this.domNode.offsetWidth+"px"},_renderList:function(){s.forEach(this.demoUsers,(function(e){var t=o.create("li",o.create("a",{href:"#"},o.create("h3",e.name),o.create("p",e.roles.join(", "))));e.active&&t.setAttribute("class","active"),o.data(t,e),this._listNode.appendChild(t)}),this)},_onUserClick:function(e){u().logout().then((function(){mx.login(e.name,e.password,null,(function(){mx.reload()}))}))},_toggleVisibility:function(){var e=this._collapsed?0:-this.domNode.offsetWidth;a.animateProperty({node:this.domNode,duration:150,properties:{right:{end:e,units:"px"}}}).play(),this._collapsed=!this._collapsed,document.documentElement.style.overflow=document.body.style.overflow=this._collapsed?"":"hidden"}});e.exports=d},9376:(e,t,n)=>{const r=n(6461),i=n(5034),o=n(1015),a=n(1120),s=n(2496),c=n(2860);var l=n(7136)(r,{declaredClass:"mxui.widget.Dialog",caption:"",closeCaption:"",content:"",buttons:null,closable:!0,resizable:!0,_handler:null,_headerNode:null,_bodyNode:null,_footerNode:null,_captionNode:null,_closeButton:null,buildRendering:function(){this.buildDialog(),this.setCaption(this.caption),this.setContent(this.content),this.setButtons(this.buttons),this.setCloseCaption(this.closeCaption),this.inherited(arguments)},buildDialog:function(){var e=o.create;if(this.domNode=e("div",{role:"dialog",class:"modal-dialog mx-dialog","aria-labelledby":this.id+"_caption","aria-describedby":this.id+"_content","aria-modal":"false"},this._contentNode=e("div",{class:"modal-content mx-dialog-content"},this._headerNode=e("div",{class:"modal-header mx-dialog-header","data-focusindex":"-1"},this._captionNode=e("h4",{class:"caption mx-dialog-caption",id:this.id+"_caption"})),this._bodyNode=e("div",{class:"modal-body mx-dialog-body",id:this.id+"_content"}),this._footerNode=e("div",{"data-focusindex":"0",class:"modal-footer mx-dialog-footer"}))),s.set(this.domNode,"opacity",0),this._footerNode.style.display="none",this.closable){var t=this._closeButton=e("button",{type:"button",class:"close mx-dialog-close","aria-hidden":"true"});t.innerHTML="&times;",this._headerNode.insertBefore(t,this._captionNode),this.connect(t,"click",(function(){this.onClose()}))}},onBeforeShow:function(){this.inherited(arguments),o.moveFocusTo(i.findFirst(this.domNode)||this.domNode),this.connect(window,"orientationchange","center"),this.resize()},onClose:function(){this.hide()},getLayerName:function(){return"dialog"},getPositionName:function(){return"center"},layout:function(){var e=a.getContentBox(this.domNode).h,t=a.getMarginBox(this._headerNode).h,n=a.getMarginBox(this._footerNode).h,r=o.getNodeExtents(this._contentNode).h;a.setContentSize(this._bodyNode,{h:e-r-t-n})},setCaption:function(e){var t=o.escapeString(e);this._captionNode.innerHTML=t||"&nbsp;"},setContent:function(e){o.empty(this._bodyNode),e&&this._bodyNode.appendChild(o.create("#",e))},setButtons:function(e){if(o.empty(this._footerNode),e){for(var t,n=0;t=e[n];n++)this._footerNode.appendChild(t);this._footerNode.style.display=""}},setCloseCaption:function(e){this.closable&&e&&c.set(this._closeButton,"title",e)}});e.exports=l},7950:(e,t,n)=>{const r=n(9376),i=n(1015),o=n(8007);var a=n(7136)(r,{declaredClass:"mxui.widget.DialogMessage",type:"",content:null,buildRendering:function(){this.caption=this.caption||this.translateWithFallback(this.type,"Message"),this.closeCaption=this.translateWithFallback("ok","Ok");var e=i.create("p");e.innerHTML=i.convertNlToBr(i.escapeString(this.content)),this.content=e;var t=i.create("button",{class:"btn btn-primary"},this.closeCaption);this.connect(t,"click",(function(){this.hide()})),this.buttons=[t],this.inherited(arguments),o.add(this.domNode,"mx-dialog-"+this.t
7ype)}});e.exports=a},3656:(e,t,n)=>{const r=n(4010),i=n(9376),o=n(708),a=n(1015),s=n(2239),c=n(7136),{translate:l}=n(2749);var u=c(r,{declaredClass:"mxui.widget.DropDownButton",items:null,_dialog:null,buildRendering:function(){this.inherited(arguments),s.place(a.create("span",{class:"caret"}),this.domNode),this.domNode.setAttribute("aria-haspopup","true")},onClick:function(e){this._dialog&&(this._dialog.hide(),this._dialog=null);const t=a.create,n=t("ul",{class:"mx-dropdown-list",role:"menu","aria-labelledby":this.domNode.id},this.getTemplate("content")),r=t("button",{class:"btn primary"},l("mxui.widget.DropDownButton","close_button")),s=this._dialog=new i;s.setContent(n),s.setButtons([r]),this.connect(r,"click",(()=>{s.hide()})),o.parse(n,{dialog:s,mxform:this.mxform,parent:this}),this.domNode.setAttribute("aria-controls",this._dialog.id),s.show()},uninitialize:function(){this._dialog&&this._dialog.hide()}});e.exports=u},4984:(e,t,n)=>{const r=n(7074),i=n(1015),{getStaticResourceUrlFromPath:o}=n(6199),a=n(2239);var s=n(7136)(r,{declaredClass:"mxui.widget.DropDownItem",icon:"",caption:"",action:null,dialog:null,parent:null,buildRendering:function(){const e=i.create,t=e("label",{id:`${this.id}-label`},this.caption),n=this.domNode=e("li",{role:"menuitem","aria-labelledby":t.id,tabIndex:0},t);this.icon&&a.place(e("img",{src:o(this.icon)}),n,"first"),this.connect(n,"click","onClick")},onClick:function(){this.dialog.hide(),window.mx.ui.execute(this.action,{origin:this.mxform,context:this.parent.mxcontext,abortOnClientValidations:!0})}});e.exports=s},3760:(e,t,n)=>{const r=n(7074),i=n(4478),{TextExpression:o}=n(2565),a=n(9724),s=n(8007),c=n(2860);var l=n(7136)([r,i],{declaredClass:"mxui.widget.GroupBox",caption:null,collapsed:!1,collapsable:!1,_iconNode:null,_headerNode:null,_bodyNode:null,_captionTextExpression:null,buildRendering:function(){this.inherited(arguments),this._headerNode=this.domNode.querySelector(".mx-groupbox-header"),this._bodyNode=this.domNode.querySelector(".mx-groupbox-body");var e=this.uniqueid+"_header";if(c.set(this.domNode,"data-focusindex",c.get(this.domNode,"tabindex")),c.remove(this.domNode,"tabindex"),c.set(this._bodyNode,"aria-labelledby",e),this.collapsable){var t=this.uniqueid+"_body";c.set(this._bodyNode,"id",t),c.set(this._bodyNode,"data-focusindex",0),c.set(this._headerNode,"aria-controls",t),c.set(this._headerNode,"tabindex",0),this._iconNode=this.domNode.querySelector("i"),this.collapsed=this.getState("collapsed",this.collapsed),this._doCollapse(),this.connect(this._headerNode,"click",(function(e){this.toggleCollapsed(),e.stopPropagation()})),this.connect(this._headerNode,"keyup",(function(e){"Enter"!==e.key&&" "!==e.key||(this.toggleCollapsed(),e.stopPropagation())}))}if(this.caption){var n=document.createTextNode(" ");c.set(this._headerNode,"id",e),this._headerNode.appendChild(n),this._captionTextExpression=new o(this.caption,(function(e){n.nodeValue=e||" "}))}},update:function(e,t){this._captionTextExpression&&this._captionTextExpression.update(this.mxcontext),this.passContext(a.findWidgets(this.domNode),t)},toggleCollapsed:function(){this.set("collapsed",!this.collapsed)},_setCollapsedAttr:function(e){this.collapsed!=e&&(this.collapsed=e,this._doCollapse())},_doCollapse:function(){this.collapsed?(s.add(this.domNode,"collapsed"),c.set(this._headerNode,"aria-expanded","false"),this._iconNode&&s.replace(this._iconNode,"glyphicon-plus","glyphicon-minus")):(s.remove(this.domNode,"collapsed"),c.set(this._headerNode,"aria-expanded","true"),this._iconNode&&s.replace(this._iconNode,"glyphicon-minus","glyphicon-plus"),this.mxform.resize())},storeState:function(e){e("collapsed",this.collapsed)},uninitialize:function(){this._captionTextExpression&&this._captionTextExpression.destroy()}});e.exports=l},7801:(e,t,n)=>{const r=n(548),i=n(4478),o=n(7136);n(6618);var a={pushContentAside:n(3283),slideOverContent:n(7358),shrinkContent:n(8458)},s=o([r,i],{declaredClass:"mxui.widget.HorizontalScrollContainer",_toggleRegion:null,_sidebarRenderer:null,startup:function(){for(var e in this.inherited(arguments),this._regions){var t=this._regions[e];t.width=t.node.offsetWidth,t.toggleMode&&(this._toggleRegion=t)}if(this._toggleRegion&&"content"===this.mxform.place){var n=a[this._toggleRegion.toggleMode];this._sidebarRenderer=new n(this.domNode,this._toggleRegion.position,this._regions),this.get
7State("sidebarVisible",this._toggleRegion.initiallyOpen)&&this._sidebarRenderer.show(!0),this.listen("toggleSidebar",this._toggleSidebar),this._sidebarRenderer.closeOnBlur&&this.connect(this.mxform,"onPersistViewState",(function(){this._sidebarRenderer.hide()})),this.connect(this.mxform,"onNavigation",this._restoreFocus)}},resize:function(e){this._sidebarRenderer&&this._sidebarRenderer.resize();var t=e?e.h:void 0;this._resizeRegions(this._regions,t),this._sidebarRenderer&&this._sidebarRenderer.resize()},_toggleSidebar:function(){this._sidebarRenderer.isVisible()?this._sidebarRenderer.hide():this._sidebarRenderer.show()},_restoreFocus:function(){setTimeout((()=>{this._toggleRegion.node.setAttribute("data-focusindex",0)}),0)},storeState:function(e){this._sidebarRenderer&&!this._sidebarRenderer.closeOnBlur&&e("sidebarVisible",this._sidebarRenderer.isVisible())},uninitialize:function(){this._sidebarRenderer&&this._sidebarRenderer.destroy()}});e.exports=s},6716:(e,t,n)=>{const r=n(3792),i=n(5034),o=n(7074),a=n(4478),s=n(8125),c=n(1015),l=n(4525),{MxContext:u}=n(2959),d=n(4296),f=n(5020),h=n(8007),p=n(2239),g=n(4238),m=n(9488),v=n(7136),y=n(6618),b=n(4784),w=n(9724),x=n(6017),{getStaticResourceUrl:_}=n(6199),S=c.create,C=v(o,{declaredClass:"mxui.widget.ListViewItem",autoLoad:!1,datasource:null,listview:null,template:null,action:null,selectable:"",_index:-1,_selected:!1,_checknode:null,buildRendering:function(){const e=this.selectable,t=e||"doNothing"!==this.action.type,n=this.domNode=S("li",t?{tabindex:"0",role:"button"}:{tabindex:"-1"});if("single"===e||"multi"===e){const t=S("#");t.appendChild(S("div",{class:"mx-listview-selection"},this._checknode=S("input","multi"===e?{type:"checkbox"}:{type:"radio"}))),t.appendChild(S("div",{class:"mx-listview-content"},this.template||"")),n.appendChild(t)}else this.template&&n.appendChild(this.template);this.connect(this.domNode,"click","onClick"),t&&this.connect(this.domNode,"keydown","onKeyDown")},startup:function(){const e=this.parseContent(this.domNode);l.ready(e,this.actLoaded.bind(this))},select:function(){h.add(this.domNode,"selected"),this._checknode&&(this._checknode.checked=!0),this._selected=!0},deselect:function(){h.remove(this.domNode,"selected"),this._checknode&&(this._checknode.checked=!1),this._selected=!1},getGuid:function(){return this.mxcontext.getTrackId()},_setIndexAttr:function(e){if(e===this._index)return;const t="mx-name-index-";h.remove(this.domNode,t+this._index),h.add(this.domNode,t+e),this._index=e},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.triggerAction(e))},onClick:function(e){this.triggerAction(e)},triggerAction:function(e){if(this.selectable)this._selected?this.listview._deselectItem(this):this.listview._selectItem(this);else if("doNothing"!==this.action.type){e.stopPropagation();const t=new u;t.mixin(this.mxcontext),t.setTrackObject(null),window.mx.ui.execute(this.action,{origin:this.mxform,context:t,abortOnClientValidations:!0})}}}),E=v([o,a,s],{declaredClass:"mxui.widget.ListView",datasource:null,dataSourceMixin:null,page:5,hasSearch:!1,action:null,selectable:"",templateMap:null,_entity:"",_datasource:null,_itemList:null,_loadButton:null,_clearButton:null,_searchNode:null,_listNode:null,_emptyNode:null,_loadNode:null,_lastLoadId:"",_lastRenderId:"",postMixInProperties:function(){this.inherited(arguments),this.listViewSelectionMode&&(this.selectable=this.listViewSelectionMode)},buildRendering:function(){this._loadButton=new r({caption:this.translate("load_more"),iconClass:"glyphicon glyphicon-repeat",onClick:y.hitch(this,"_loadMore"),class:"mx-listview-loadMore"}),this.domNode=S("div",{class:"mx-listview"},this._listNode=S("ul")),"single"!==this.selectable&&"multi"!==this.selectable||h.add(this.domNode,"mx-listview-selectable"),"doNothing"!==this.action.type&&h.add(this.domNode,"mx-listview-clickable"),this._emptyNode=S("li",{class:"mx-listview-empty"},S("label",this.translate("no_items"))),this._loadNode=S("li",{class:"mx-listview-loading"},S("img",{src:_(x)})),this.hasSearch&&(this._clearButton=new r({iconClass:"glyphicon glyphicon-refresh",onClick:y.hitch(this,"_clearSearchNode")}),p.place(S("div",{class:"mx-listview-searchbar"},this._searchNode=S("input",{type:"text",placeholder:this.translate("search"),class:"form-control",value:this.getState("searchValue","")}),this._clearButton.domNode),this.domNode,"first"),this.connect(this._searchNode,"keyup","_searchKeyDown"))},postCreate:function(){this._createSource(),this._itemList=[],this.templateMap=this.templateMap||[],this.selection=this.getState("selection",this.selection)},_onLoad:function(){if(this.selectable){if(!this.shouldPreserveSelection){const e=m.map(this._datasource.getObjects(),(function(e){return e.getGuid()}));this.selection=m.filter(this.selection,(function(t){return-1!=m.indexOf(e,t)}))}this._ensureSelection(),this._shareWidgetSelection()}},update:function(e,t){this._registerSubscriptions(),this._loadData(t)},_registerSubscriptions:function(){this.unsubscribeAll(),this.subscribe({entity:this._entity,callback:()=>new Promise((e=>this.update(null,e)))});const e=this.mxcontext.getTrackId();e&&this.subscribe({guid:e,callback:()=>new Promise((e=>this.update(null,e)))})},storeState:function(e){this._searchNode&&e("searchValue",this._searchNode.value),e("datasourceOffset",this._datasource.getOffset()),e("selection",this.get
7Selected())},uninitialize:function(){this._clearData(),this._datasource.destroy(),this._destroySelection()},_createSource:function(){this._datasource=f.create(y.mixin({context:this.mxcontext,page:this.page,origin:this.mxform,friendlyId:this.friendlyId},this.datasource,this.dataSourceMixin)),this._entity="entity"in this.datasource?this.datasource.entity:this.datasource.path.split("/").pop(),this.hasSearch&&this._datasource.setSearchText(this._getSearchText());const e=this.getState("datasourceOffset",0);if(e){this._datasource.setPageSize(e+this.page),this._datasource.setOffset(0);const t=this,n=g.after(this,"_onLoad",(function(){t._datasource.setPageSize(t.page),t._datasource.setOffset(e),n.remove()}))}},_clearData:function(){for(;this._itemList.length;){const e=this._itemList.pop();e.domNode&&e.destroy()}},_showLoadingIcon:function(){this._listNode.appendChild(this._loadNode)},_hideLoadingIcon:function(){c.orphan(this._loadNode)},_showLoadMoreButton:function(){this.domNode.appendChild(this._loadButton.domNode)},_hideLoadMoreButton:function(){c.orphan(this._loadButton.domNode)},_updateLoadMoreButton:function(){this._datasource.hasMoreItems()?this._showLoadMoreButton():this._hideLoadMoreButton()},_updateEmptyMessage:function(){0===this._itemList.length?this._listNode.appendChild(this._emptyNode):c.orphan(this._emptyNode)},_searchKeyDown:function(e){const t=this,n=this._datasource;13===e.keyCode&&b("mobile")?this._searchNode.blur():(this._clearButton.set("iconClass",this._searchNode.value?"glyphicon glyphicon-remove":"glyphicon glyphicon-refresh"),clearTimeout(this._searchTimeout),this._searchTimeout=setTimeout((function(){t._clearData(),t._showLoadingIcon(),t._hideLoadMoreButton(),n.setSearchText(t._getSearchText()),t.update()}),500))},_clearSearchNode:function(){clearTimeout(this._searchTimeout),this._clearButton.set("iconClass","glyphicon glyphicon-refresh"),this._searchNode.value="",this._datasource.setSearchText(""),this.update()},_selectItem:function(e){const t=e.getGuid();if(/^(single|singleandmaintain)$/.test(this.selectable)){const e=this.selection[0],n=d.find(this._itemList,(function(t){return t.getGuid()==e}));n&&n.deselect(),this.selection=[t]}else this._addToSelection(t);this._shareWidgetSelection(),this._sharePageSelection(),e.select()},_deselectItem:function(e){"singleandmaintain"!==this.selectable&&(this._removeFromSelection(e.getGuid()),this._shareWidgetSelection(),this._sharePageSelection(),e.deselect())},_getSearchText:function(){return c.escapeHTMLQuotes(this._searchNode.value)},_loadData:function(e){const t=this._lastLoadId=d.getUniqueId();this._datasource.setOffset(0),this._datasource.reload((()=>{this._lastLoadId===t?this._renderData((()=>{this._onLoad(),e&&e()})):e&&e()}))},_loadMore:function(){this._showLoadingIcon(),this._hideLoadMoreButton(),this._datasource.next((()=>this._renderData()))},_sourceReload:function(e){this._datasource.reload(e)},_renderData:function(e){if(this._destroyed)return void(e&&e());const t=this._datasource.getObjects(),n=this._datasource.getOffset(),r=this._itemList.slice(n),o=[],a=[],s=i.getFocus();m.forEach(t,(function(e,t){const i=e.getGuid(),s=d.findIndex(r,(e=>e.getGuid()===i));let c;s>-1?(c=r[s],r.splice(s,1)):(c=this._createListItem(e,n+t),a.push(c)),o.push(c)}),this);const u=S("div",{class:"mx-offscreen"});this.domNode.appendChild(u),a.forEach((e=>u.appendChild(e.domNode))),a.forEach((e=>e.startup())),l.ready(a,(()=>{this.actLoaded();const l=this._lastRenderId=d.getUniqueId();this._loadListItems(o,t,(()=>{if(c.orphan(u),l!==this._lastRenderId)return m.forEach(a,(e=>e.destroy())),void e();m.forEach(r,(e=>e.destroy())),this._itemList=this._itemList.slice(0,n).concat(o),this._updateStatusInfo(),this._flushItemsToDom(o,n),i.getFocus()||s&&this._listNode.contains(s)&&i.setFocus(s),e&&e()}))}))},_flushItemsToDom:function(e,t){m.forEach(e,(function(e,n){e.set("index",t+n);const r=this._listNode.children[t+n];if(r){const t=w.byNode(r);t.getGuid()!==e.getGuid()&&this._listNode.insertBefore(e.domNode,t.domNode)}else this._listNode.appendChild(e.domNode)}),this)},_updateStatusInfo:function(){this._hideLoadingIcon(),this._updateLoadMoreButton(),this._updateEmptyMessage()},_createListItem:function(e,t){let n=this.templateMap[e.getEntity()];n||m.some(e.getSuperEntities(),(function(e){return n=this.templateMap[e]}),this);const r=new C({index:t,uniqueid:this.uniqueid+"_obj"+e.getGuid(),listview:this,template:this.getTemplate(n),action:Object.create(this.action),selectable:this.selectable,mxform:this.mxform,validator:this.validator,readOnly:this.readOnly,ignoreUpdates:this.ignoreUpdates});return this.selectable&&this._isSelected(e.getGuid())&&r.select(),r},_loadListItems:function(e,t,n){this.collect(m.map(e,(function(e,n){return function(r){const i=new u({mxcontext:this.mxcontext});i.setWidgetObject(this.mxid,t[n]),e.applyContext(i,r)}})),n)},_ensureSelection:function(){const e=this._itemList;"singleandmaintain"===this.selectable&&!this._hasSelection()&&e.length&&(this._addToSelection(e[0].getGuid()),e[0].select())}});e.exports=E},3432:(e,t,n)=>{const{get:r}=n(4036),{getStaticResourceUrl:i}=n(6199),{translateLoginMessage:o}=n(2749),a=n(795),s=n(4010),c=n(7950),l=n(1984),u=n(7136)(s,{declaredClass:"mxui.widget.LoginButton",loginIdTextBoxId:null,passwordTextBoxId:null,validationMessageWidgetId:null,pageHash:null,
7startup:function(){const e=JSON.parse(sessionStorage.getItem("reloginReason"));sessionStorage.removeItem("reloginReason"),e&&this._showFailureCode(e.code),this.pageHash=a.location.hash()},onClick:function(){const e=this.mxform.domNode.querySelector("[id='"+this.loginIdTextBoxId+"']"),t=this.mxform.domNode.querySelector("[id='"+this.passwordTextBoxId+"']");window.mx.login(e.value,t.value,null,(e=>this._showFailureCode(e&&e.status)))},_showFailureCode:function(e){if(!window.i18nMap)return void r(i("js/login_i18n.json"),"json").then((e=>{window.i18nMap=e})).then((()=>this._showFailureCode(e)));const t=o("http"+e)||o("httpdefault");this.validationMessageWidgetId?l.publish(window.mx.ui.makeShareId(this.mxform,this.validationMessageWidgetId),t):new c({type:"error",content:t}).show()}});e.exports=u},9658:(e,t,n)=>{const{translateLoginMessage:r}=n(2749),i=n(9376),o=n(1015),a=n(8007),s=n(7136),c=n(503);var l=s(i,{declaredClass:"mxui.widget.LoginDialog",messageCode:0,closable:!1,_userNode:null,_passNode:null,_cancelBtn:null,_goHomeBtn:null,_loginCallback:null,buildRendering:function(){var e,t,n,i=o.create;this.caption=r("loginButton"),this.inherited(arguments),a.add(this.domNode,"mx-login"),this.domNode.removeChild(this._contentNode),this._contentNode=e=i("form",{class:"modal-content mx-dialog-content"},this._headerNode,this._bodyNode,this._footerNode),this.domNode.appendChild(e),this.setContent(i("#",t=this._userNode=i("input",{class:"form-control",name:"username",type:"text",autocorrect:"off",autocapitalize:"none",placeholder:r("username")}),n=this._passNode=i("input",{class:"form-control",name:"password",type:"password",autocorrect:"off",autocapitalize:"none",placeholder:r("password")})));var s=i("button",{type:"submit",class:"btn btn-primary"},r("loginButton")),c=this._cancelBtn=i("button",{type:"button",class:"btn"},r("cancel")),l=this._goHomeBtn=i("button",{type:"button",class:"btn go-to-homepage"},r("goHomeButton"));this.setButtons([s,c,l]),this.connect(t,"keydown","reset"),this.connect(n,"keydown","reset"),this.connect(e,"submit","submit"),this.connect(c,"click",this.hide.bind(this,null)),this.connect(l,"click",this.goHome.bind(this))},getStatusMessage:function(e){return r("http"+e)||r("httpdefault")},submit:function(e){c.stop(e);var t=this;mx.login(this._userNode.value,this._passNode.value,(function(){t.hide()}),(function(e){t.setCaption(t.getStatusMessage(e&&e.status)),a.add(t.domNode,"error")}))},onShow:function(e){this.messageCode&&this.setCaption(this.getStatusMessage(this.messageCode)),this._cancelBtn.style.display=window.mx.isLoaded()?"":"none",this._goHomeBtn.style.display=403==this.messageCode?"":"none",this.inherited(arguments,[e])},reset:function(){this.setCaption(r("loginButton")),a.remove(this.domNode,"error")},goHome:function(){location.href=window.mx.homeUrl}});e.exports=l},8646:(e,t,n)=>{const r=n(7074),i=n(9662),o=n(1015),{getLocale:a}=n(6598),{translate:s}=n(2749),c=(n(4784),n(503)),l=n(2495),u=n(1120),d=n(6618),f=n(7136),h=n(5122);var p=function(e,t){return e.getAttribute(t)},g=f([r,i],{declaredClass:"mxui.widget.MxInlineEditor",domNode:null,form:null,text:null,enumtext:null,select:null,minWidth:40,minHeight:200,templateString:h,textValue:"",targetNode:null,_options:null,_nodeList:[],_status:"inactive",_previousValue:"",_editingmode:"text",constructor:function(){this.boolOptions={},this.boolOptions[s("mxui.common","true")]="true",this.boolOptions[s("mxui.common","false")]="false",this._locale=a()},postCreate:function(){this._nodeList=[this.text,this.select,this.readonly,this.enumtext],this.connect(document.body,"onkeydown","eventOnKeyDown"),this.connect(this.form,"onsubmit","eventOnSubmit"),this.connect(this.form,"onclick","eventOnClick"),this.connect(this.select,"onclick","selectClicked"),this.connect(this.text,"keydown","onKeyDown")},selectClicked:function(e){return c.stop(e),!1},_hideNodes:function(){for(var e=0;e<this._nodeList.length;e++)this._nodeList[e].style.display="none"},editNode:function(e,t,n){this._options=n,this._editingmode=t.toLowerCase();var r=this.targetNode&&this.targetNode.parentNode;r&&(this.targetNode.style.display="",l.setSelectable(r,!1)),this.targetNode=e,this._hideNodes();var i=this.targetNode.parentNode;i.appendChild(this.form),l.setSelectable(i,!0),this.textValue=o.unescapeString(this.targetNode.innerHTML),"&nbsp;"===this.textValue&&(this.textValue=""),0===this.textValue.length&&(this.targetNode.innerHTML="&nbsp;"),this._previousValue=this.textValue,this.setupEditNode()},setStyleFromTarget:function(e){e.value=d.trim(this.textValue),e.style.fontSize=function(e,t){return parseInt(e.getAttribute("font-size"))}(this.targetNode),e.style.fontWeight=p(this.targetNode,"font-weight"),e.style.fontStyle=p(this.targetNode,"font-style");var t=u.getMarginBox(this.targetNode);return e.style.width="100%",t},setupTextNode:function(){this.text.style.textAlign=this.targetNode.parentNode.style.textAlign;var e=this.text;e.value=d.trim(this.textValue),e.style.display="",this.setStyleFromTarget(e),this.form.style.display="",this.targetNode.style.display="none";try{e.select(),e.focus(),e.setAttribute("readonly","readonly")}catch(e){}},setupEditNode:function(){switch(this._editingmode){case"text":case"date":this.setupTextNode();break;case"reference":case"boolean":case"enum":this.setupEnumNode();break;case"readonly":this.setupReadOnlyNode()}this._status="ready"},setupEnumNode:function(){this.setStyleFromTarget(this.enumtext),this.setStyleFromTarget(this.select),this.enumtext.style.display="",this.enumtext.value=this._options.items[this._options.selected]||"",this.enumtext.setAttribute("readonly","readonly"),o.setSelectOptions(this.select,this._options.items,this._options.selected),this.form.style.display="",this.targetNode.style.display="none";try{this.enumtext.select(),this.enumtext.focus()}catch(e){}},setupReadOnlyNode:function(){this.setStyleFromTarget(this.readonly),this.targetNode.style.display="none",this.readonly.style.display="",this.readonly.value=this.textValue,this.form.style.display="",this.readonly.focus(),this.readonly.setAttribute("readonly","readonly")}
7,undoChanges:function(){"active"!==this._status&&"ready"!==this._status||(this.targetNode&&(this.targetNode.innerHTML=this._previousValue),"enum"===this._editingmode||"reference"===this._editingmode||"boolean"===this._editingmode?o.selectOptionByText(this.select,this._previousValue):"readonly"===this._editingmode||(this.text.value=o.unescapeString(this._previousValue)))},startEditing:function(e){switch(this._editingmode){case"date":case"text":this.text.removeAttribute("readonly"),e&&(this.text.value=o.unescapeString(e));try{this.text.select(),this.text.focus(),this._status="active"}catch(e){this.endEdit()}break;case"boolean":case"reference":case"enum":this.enumtext.style.display="none",this.select.style.display="",this.select.removeAttribute("readonly"),this.select.focus(),this._status="active";break;case"readonly":this._status="ready"}},stopEditing:function(){switch(this._editingmode){case"text":case"date":this.text.setAttribute("readonly","readonly");break;case"boolean":case"reference":case"enum":this.select.setAttribute("readonly","readonly")}this._status="ready"},endEdit:function(){"ready"!==this._status&&"active"!==this._status||(this.domNode.appendChild(this.form),this.targetNode&&(this.targetNode.style.display=""),this._status="inactive")},eventOnClick:function(){"ready"===this._status&&this.startEditing()},eventOnKeyDown:function(e){this.eventKeyHandler(e)},onKeyDown:function(e){if(this._options&&this._options.hasDecimalPoint&&110===e.keyCode){e.preventDefault();var t=this._locale.numbers.decimalSeparator;o.insertAtCaret(this.text,t)}},hasChanges:function(){if("readonly"===this._editingmode||"inactive"===this._status)return!1;var e="";switch(this._editingmode){case"boolean":case"reference":case"enum":e=o.getSelectedText(this.select);break;default:e=this.text.value}return this._previousValue!=e},getValue:function(){return"enum"===this._editingmode||"reference"===this._editingmode||"boolean"===this._editingmode?(this.targetNode.innerHTML=o.getSelectedText(this.select),this.textValue=o.getSelectedValue(this.select)):"readonly"!==this._editingmode&&(this.textValue=this.text.value,o.text(this.targetNode,this.textValue),this.textValue)},getEditorStatus:function(){return this._status},isActive:function(){return"active"===this._status},isInActive:function(){return"inactive"===this._status},isReady:function(){return"ready"===this._status},eventKeyHandler:function(){},eventOnSubmit:function(){return!1}});e.exports=g},9032:(e,t,n)=>{const r=n(7074),i=n(4478),o=n(4296),a=n(9488),s=n(1178),c=n(8007),l=n(7136),{enableRoving:u,NavigationKeys:d}=n(8048);var f,h;f=l([r,i],{declaredClass:"mxui.widget.NavigationList",_view:null,_currentActive:-1,_initialActive:-1,buildRendering:function(){this._view=new h(this.srcNodeRef,this),this.domNode=this._view.domNode;var e=this;this._view.subscribeToClick((function(t){e._currentActive=t,e._view.deactivateAll(),e._view.activate(t)})),this._restoreSelection(),this.connect(this.mxform,"onNavigation",this._restoreSelection),u(this.domNode,d.UpDown,(e=>e.querySelectorAll(":scope > li")))},_restoreSelection:function(){this._currentActive=this.getState("activeItem",this._currentActive),this._initialActive=this._currentActive,this._view.deactivateAll(),this._view.activate(this._currentActive)},storeState:function(e){e("activeItem",this._initialActive)}}),h=l(null,{_list:null,_handlerScope:null,constructor:function(e,t){this.domNode=e,this._list=e,this._handlerScope=t},subscribeToClick:function(e){var t=this;this._handlerScope.own(s(this._list,"li.mx-navigationlist-item:click",(function(){e(a.indexOf(t._list.childNodes,this))})))},activate:function(e){-1!=e&&c.add(this._list.childNodes[e],"active")},deactivateAll:function(){o.forEach(this._list.querySelectorAll("li.mx-navigationlist-item.active"),(function(e){c.remove(e,"active")}))}}),e.exports=f},4441:(e,t,n)=>{const r=n(7074);var i=n(7136)(r,{declaredClass:"mxui.widget.NavigationListItem",action:null,buildRendering:function(){this.inherited(arguments),this.connect(this.domNode,"click","onClick"),this.connect(this.domNode,"keydown","onKeyDown"),this.action&&"doNothing"!==this.action.type&&this.domNode.setAttribute("role","button")},onClick:function(e){this.triggerAction(e)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||this.triggerAction(e)},triggerAction:function(e){e.preventDefault(),e.stopPropagation(),window.mx.ui.execute(this.action,{origin:this.mxform,context:this.mxcontext,abortOnClientValidations:!0})}});e.exports=i},4677:e=>{e.exports={no:"No",yesWithTotalCount:"YesWithTotalCount",yesWithoutTotalCount:"YesWithoutTotalCount"}}
7,2180:(e,t,n)=>{const r=n(7074),i=n(1015),o=n(4296),a=n(2496),s=n(6618),c=n(7136),{LogManager:l}=n(7606),u=l.get().getLogger();var d=c(r,{declaredClass:"mxui.widget.Progress",showDelay:500,_showing:!1,_messageId:0,_messages:null,_showTimer:null,_msgNode:null,_hideCon:null,constructor:function(){this._messages=[]},buildRendering:function(){this.domNode=i.create("div",{class:"mx-progress mx-progress-hidden",role:"alert","aria-live":"assertive"},this._msgNode=i.create("div",{class:"mx-progress-message"}),i.create("div",{class:"mx-progress-indicator"}))},add:function(e,t){var n=this._messageId++;return this._messages.push({id:n,text:e,modal:t}),this._updateMessage(),this._showing?t&&(this._showTimer?(clearTimeout(this._showTimer),this._showTimer=null,this._show(!0)):window.mx.ui.showUnderlay()):this._show(t),n},remove:function(e){var t=o.find(this._messages,(function(t){return t.id==e}));t?(t.modal&&window.mx.ui.hideUnderlay(),this._removeMessage(e),this._messages.length>0?this._updateMessage():this._hide()):u.error(`Progress.remove: message ${e} is not shown`)},_show:function(e){this._showing=!0,e&&window.mx.ui.showUnderlay();var t=s.hitch(this,(function(){this._showTimer=null,this._hideCon?(this._hideCon.remove(),this._hideCon=null):(document.body.appendChild(this.domNode),a.get(this.domNode,"width")),this.domNode.setAttribute("aria-busy","true"),this.domNode.classList.remove("mx-progress-hidden")}));this._hideCon||e?t():this._showTimer=setTimeout(t,this.showDelay)},_hide:function(e){if(this._showing=!1,this._showTimer)clearTimeout(this._showTimer),this._showTimer=null;else{e&&window.mx.ui.hideUnderlay();var t="0"===a.get(this.domNode,"opacity");i.supports("transition")&&!t?this._hideCon=this.connect(this.domNode,"transitionend",(function(){this._hideCon.remove(),this._hideCon=null,document.body.removeChild(this.domNode)})):document.body.removeChild(this.domNode),this.domNode.setAttribute("aria-busy","false"),this.domNode.classList.add("mx-progress-hidden")}},_updateMessage:function(){var e=o.findLast(this._messages,(function(e){return e.text}));e?this.domNode.classList.remove("mx-progress-empty"):this.domNode.classList.add("mx-progress-empty"),i.text(this._msgNode,e?e.text:"")},_removeMessage:function(e){var t=o.findIndex(this._messages,(function(t){return t.id==e}));this._messages.splice(t,1)}});e.exports=d},259:(e,t,n)=>{const r=n(7074),i=n(7136),o=n(7294),a=n(3935),{ErrorHandler:s}=n(2685),c=i(r,{declaredClass:"mxui.widget.ReactCustomWidgetWrapper",props:null,widget:"",autoLoad:!1,WidgetReactComponent:null,buildRendering:function(){this.inherited(arguments),this._markerNode=document.createComment(" react-mount-point-unstable "),this.domNode.parentNode.insertBefore(this._markerNode,this.domNode),dojoDynamicRequire([this.widget.replace(/\./g,"/")],(e=>{this.WidgetReactComponent="function"==typeof e?e:e.default,this._render(),this.set("loaded",!0)}))},update:function(e,t){this._render({mxObject:e}),t&&t()},uninitialize:function(){a.unmountComponentAtNode(this._markerNode)},_render:function(e){a.render(o.createElement(s,{widgetId:this.widget},o.createElement(this.WidgetReactComponent,Object.assign({},this.props,{uniqueid:this.uniqueid,readOnly:this.readOnly,mxform:this.mxform},e))),this._markerNode,(()=>{this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);const e=this._markerNode.previousSibling;null!==e&&e.nodeType===Node.ELEMENT_NODE&&(e.setAttribute("data-mendix-id",this.mxid),e.setAttribute("widgetId",this.id),e.setAttribute("id",this.id),e.setAttribute("data-focusindex",this.props.tabindex))}))}});e.exports=c},1244:(e,t,n)=>{const r=n(7294),i=n(3935),{runInAction:o,reaction:a}=n(2188),{publish:s,subscribe:c}=n(2351),{LogManager:l}=n(7606),{pageScope:u}=n(2550),{RootStoreProvider:d}=n(8135),{ErrorBoundaryFallbackContext:f}=n(3497),{ErrorFallbackWeb:h}=n(1311),{StoreBackend:p}=n(7772),{rootPath:g}=n(8292),{applyViewState:m,collectViewState:v}=n(8865),{buildComponentTree:y,findWidgetNames:b}=n(5645),{unique:w}=n(3282),{readUntracked:x,useValue:_}=n(8714),{available:S,unavailable:C}=n(567),{forceReactionExecution:E}=n(8559),{newId:O}=n(7613),{WidgetRegistry:j}=n(4264),{CommentNode:k}=n(7481),{createWidgetSelectionTopic:R,readTopic:N,storeTopic:T}=n(245),A=n(4478),P=n(7074),D=n(7136),{handleError:I}=n(1881),M=l.get().getLogger(),L=D([P,A],{declaredClass:"mxui.widget.Wrapper",widgetTree:void 0,listenTargets:void 0,autoLoad:!1,_visible:!0,_reactTree:void 0,_storeBackend:void 0,_markerNode:void 0,_scriptNode:null,_invalidCount:0,_setFormSuspended:void 0,postMixInProperties:function(){this._storeBackend=new p,m(this.getState("store",[]),this._storeBackend);const e=()=>this._storeBackend.set(u,"form",g,[this.mxform,O("form")]);e(),this.connect(this.mxform,"onNavigation",e),this._setupValidation(),this._storeBackend.set(u,"subtreeReadonly",g,this.readOnly),this._setFormSuspended=e=>this._storeBackend.set(u,"formSuspended",g,e),this._setFormSuspended(this.mxform.isSuspended());const t=this.mxform.listen("suspend",(e=>{o((()=>this._setFormSuspended(!0))),e()})),n=this.mxform.listen("resume",(e=>{o((()=>this._setFormSuspended(!1))),e()}));this.own({destroy:t}),this.own({destroy:n}),this.own(this.mxform.addSubmitProvider(this.uniqueid,this._getSubmitObjects.bind(this)));const r=this.listenTargets.map((e=>{const t=R(this.mxform,e),n=()=>{const n=N(t);
7this._storeBackend.set(e,"selection",g,n?[n]:void 0)};return n(),c({topic:t,callback:n})}));this.own({destroy:()=>r.forEach((e=>e.unsubscribe()))});let i=!0;const l=this._storeBackend.getAllEntries$("selection"),d=a((()=>l.dependOn()),(e=>{const t=e.filter((e=>!this.listenTargets.includes(e.widgetId))).filter((e=>!i||void 0!==e.value)).map((e=>({topic:R(this.mxform,e.widgetId),value:e.value})));i=!1,t.forEach((e=>T(e.topic,Array.isArray(e.value)?e.value[e.value.length-1]:e.value))),s(...t.map((e=>({topic:e.topic})))).catch(I)}),{name:`share selection of ${this.friendlyId}`,fireImmediately:!0});this.own({destroy:d})},buildRendering:function(){this.inherited(arguments),this._markerNode=document.createComment(" react-mount-point-unstable "),this.domNode.parentNode.insertBefore(this._markerNode,this.domNode);const e=new j,t=e.filterCoreWidgets(b(this.widgetTree));t.length>0?e.loadWidgets(t).then((()=>{this._createComponentTree(e)})):this._createComponentTree(e)},update:function(e,t){if(o((()=>{this.mxcontext.getWidgetIds().forEach((e=>{const t=this.mxcontext.getWidgetObject(e);this._storeBackend.set(e,"object",g,t?S(t):C()),this._storeBackend.set(e,"firstLoadDone",g,!0)}))})),t){const e=this._storeBackend.getAllEntries$("firstLoadDone");if(x(e).every((e=>!1!==e.value)))t();else{const n=(new Date).getTime();let r;const i=()=>{r=setTimeout((()=>{const t=x(e).filter((e=>!1===e.value));if(t.length){const e=Math.floor(((new Date).getTime()-n)/1e3);M.debug(`Widgets not loaded yet after ${e}s:`,t.map((e=>e.widgetId))),i()}}),1e4)};let o;i();const s=()=>{o(),clearTimeout(r),setTimeout(t,0)};o=a((()=>e.dependOn()),(e=>{e.every((e=>!1!==e.value))&&s()})),this.own({remove:s})}}},isValid:function(){return E((()=>this._storeBackend.set(u,"validationRequest",g,O("validation_request")))),0===this._invalidCount},isValidAsync:function(){return this.isValid(),new Promise((e=>setTimeout((()=>e(0===this._invalidCount)))))},show:function(){this._visible||(this._visible=!0,this._render())},hide:function(){this._visible&&(this._visible=!1,this._render())},enable:function(){},disable:function(){},_getSubmitObjects:function(){const e=x(this._storeBackend.getAllEntries$("editableObject"));return w(e.map((e=>e.value&&e.value.value)).filter((e=>e)))},_createComponentTree:function(e){const t=this.widgetTree.map((t=>y(t,e)));this._reactTree=r.createElement(d,{backend:this._storeBackend},r.createElement(f.Provider,{value:h},t)),this._render(),this.set("loaded",!0)},_render:function(){this._visible?E((()=>{i.render(this._reactTree,this._markerNode,(()=>{this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this._scriptNode||(this._scriptNode=document.createElement("script"),this._scriptNode.setAttribute("type","mendix/widget"),this._scriptNode.setAttribute("id",this.id),this._scriptNode.setAttribute("widgetId",this.id),this._scriptNode.setAttribute("data-mendix-id",this.mxid)),this._markerNode.parentNode.insertBefore(this._scriptNode,this._markerNode.nextSibling)}))})):i.render(r.createElement(k,{widgetId:this.id}),this._markerNode)},_setupValidation:function(){const e=this._storeBackend.getAllEntries$("isInvalid"),t=a((()=>e.dependOn().map((e=>e.value)).filter(Boolean).length),(e=>{if(this.validator){for(let t=e-this._invalidCount;t>0;--t)this.validator.addNotification();for(let t=this._invalidCount-e;t>0;--t)this.validator.removeNotification()}0===this._invalidCount&&e>0&&(this.mxform.resize(),this.mxform.markInvalid()),this._invalidCount=e}));this.own({destroy:t})},storeState:function(e){e("store",v(this._storeBackend))},resize:function(){},uninitialize:function(){i.unmountComponentAtNode(this._markerNode),this._markerNode.parentNode.removeChild(this._markerNode),this._scriptNode&&this._scriptNode.parentNode&&this._scriptNode.parentNode.removeChild(this._scriptNode)}});e.exports=L},5501:(e,t,n)=>{const r=n(2062),i=n(2804).N,o=n(7074),a=n(2487),{openSelectPage:s}=n(1636),c=n(1015),{translate:l}=n(2749),{openPage:u}=n(4204),d=n(8007),f=n(6618),h=n(7136),p=n(3945),g=n(6447),m=n(4677),{handleError:v}=n(1881);var y=h([o,p,g,a],{declaredClass:"mxui.widget.ReferenceSetSelector",entity:"",xpathConstraint:"",config:null,_datasource:null,_datagrid:null,_sourceObject:null,_mendixGuid:null,_oldXPath:null,_errorNode:null,_hasError:!1,_isExecuting:!1,postCreate:function(){this.initContext(),this.entity=this.config.datasource.entity,this.sourceReference=this.config.datasource.reference,this.createGrid(),this.domNode.removeAttribute("tabindex")},createGrid:function(){this._datasource=new i(f.mixin({context:this.mxcontext,schemaId:this.schema,friendlyId:this.friendlyId,wantCount:this.config.gridpresentation.pagingbar===m.yesWithTotalCount},this.config.datasource)),this._datagrid=new r({mxid:this.mxid,uniqueid:this.uniqueid+"_grid",mxform:this.mxform,contextname:this.contextname,entity:this.entity,schema:this.schema,customDataSource:this._datasource,config:this.config}),this._datagrid.addOnLoad(f.hitch(this,"actLoaded")),f.mixin(this._datagrid,{actionAddRef:f.hitch(this,"handlerAdd"),actionCreateRef:f.hitch(this,"handlerCreate"),actionDeleteRef:()=>this.handleRemove(),registerSubscriptions:f.hitch(this,"registerSubscriptions")}),this.domNode.appendChild(this._datagrid.domNode)},handlerAdd:function(e){this._sourceObject&&this._openAddForm(e[this.entity].pageSettings)},handlerCreate:function(e){if(this._sourceObject){var t=this._getEntity(e);window.mx.data.create({entity:t,callback:n=>{u(e[t].pageSettings,{currentForm:this.mxform},{[e[t].pageParameter]:{object:n}}).then((e=>{e.listen("commit",(e=>{this._sourceObject.addReferences(this.sourceReference,[n.getGuid()]),this.onChange(),e()}))}),v)},error:function(e){v(e)}},this)}},handleRemove:function(){const e=this._datagrid.getSelected();if(0===e.length)window.mx.ui.showMessage("info",l("mxui.widget.DataGrid","no_selection"));else{const t=e.length,n=l("mxui.widget.ReferenceSetSelector",1===t?"confirm_remove_reference":"confirm_remove_references",t.toString());window.mx.ui.confirmation({content:n,handler:()=>{this._sourceObject.removeReferences(this.sourceReference,e),this.onChange(),this._datagrid.deselectAll(),this._datagrid.reload()}})}},registerSubscriptions:function(){this.unsubscribeAll(),this.subscribe({guid:this._mendixguid,attr:this.sourceReference,callback:f.hitch(this,(function(e){this.objectUpdate(e)}))}),this.subscribe({entity:this.entity,callback:f.hitch(this,(function(){this._datagrid.update()}))}),this.subscribe({guid:this._mendixguid,callback:f.hitch(this,"objectUpdate")}),this.subscribe({guid:this._mendixguid,val:!0,callback:f.hitch(this,"onValidation")})},applyContext:function(e,t){if(null!=e&&e.hasTrackId()){this.cloneContext(e);var n=null==this._mendixguid||this._mendixguid!=e.getTrackId();this._mendixguid=e.getTrackId(),this.mxcontext.setConstraints(this.constrainedBy),this.registerSubscriptions(),this.updateSequence(n,t)}else this.unsubscribeAll(),this.removeContext(t);this.removeError()},removeContext:function(e){this._datagrid.removeContext?this._datagrid.removeContext(e):e&&e()},updateSequence:function(e,t){if(this.mxcontext.hasTrackObject()){const e=this.mxcontext.getTrackObject();this._sourceObject=e,this._datagrid.set("readOnly",e.isReadonlyAttr(this.sourceReference))}const n=["actUpdateGrid"];e||n.push("actCompareSet"),this.sequence(n,t)},actUpdateGrid:function(e){this._oldXPath=this._datagrid.getCurrentXPath(),this._datagrid.applyContext(this.mxcontext,e)},actCompareSet:function(e){var t=this._datagrid.getCurrentXPath();this._oldXPath.match("[1=0]")||this._oldXPath==t?e&&e():(this._sourceObject.set(this.sourceReference,[]),this.onChange())},objectUpdate:function(e,t){this.updateSequence(),t&&t()},_setDisabledAttr:function(e){var t=this._datagrid,n=!0===e;t.set("disabled",e),t.set("selectable",!n),t.set("toolbar",n)},_getDisabledAttr:function(){return this._datagrid.get("disabled")},onChange:function(){this.removeError(),this.events&&this.events.change&&window.mx.ui.execute(this.events.change,{origin:this.mxform,context:this.mxcontext,abortOnClientValidations:!0,widgetIsValid:!0})},onValidation:function(e){var t=e[0],n=this.sourceReference,r=t.getReasonByAttribute(n);r&&(this.addError(r),t.removeAttribute(n))},addError:function(e){this.removeError(),this._hasError=!0,e&&(this._errorNode=c.create("div",{id:`${this.domNode.id}-error`,role:"alert","aria-live":"true",class:"alert alert-danger"},e),this.domNode.appendChild(this._errorNode),this.domNode.setAttribute("aria-invalid","true"),this.domNode.setAttribute("aria-describedby",`${this.domNode.id}-error`),this.mxform.resize()),d.add(this.domNode,"has-error"),this.validator&&this.validator.addNotification()},removeError:function(){this._errorNode&&(c.orphan(this._errorNode),this._errorNode=null,this.domNode.removeAttribute("aria-invalid"),this.domNode.removeAttribute("aria-describedby")),d.remove(this.domNode,"has-error"),this.validator&&this._hasError&&this.validator.removeNotification(),this._hasError=!1},_openAddForm:function(e){this._isExecuting||(this._isExecuting=!0,s({pageSettings:e,selectionMode:"multi",initialSelection:[],datasourceConfig:{constraint:this.xpathConstraint},currentObjectId:this._sourceObject.getGuid(),constrainedBy:this.constrainedBy,onSelectionChange:e=>{this._sourceObject.addReferences(this.sourceReference,e),this.onChange()},onFinished:()=>{this._isExecuting=!1}}))},_getEntity:function(e){for(var t in e)return t}});e.exports=y},8818:(e,t,n)=>{const r=n(7074),i=n(1015),o=n(8833),a=n(3869),s=n(329),c=n(7136)([r],{declaredClass:"mxui.widget.ReloadNotification",buildRendering:function(){this.domNode=i.create("div",{class:"mx-reload-notification"},"App has been reloaded"),this._connectEvents()},_connectEvents:function(){this._hideHandlers=[this.connect(o.body(),"mousemove","hide"),this.connect(o.body(),"touchmove","hide")]}
7,_disconnectEvents:function(){this._hideHandlers.forEach((e=>s.disconnect(e)))},show:function(){o.body().appendChild(this.domNode)},hide:function(){this._disconnectEvents(),setTimeout((()=>{a.fadeOut({node:this.domNode,duration:200,onEnd:()=>{i.orphan(this.domNode)}}).play()}),400)},destroy:function(){this._disconnectEvents()}});e.exports=c},4708:(e,t,n)=>{const r=n(7074),i=n(5034),{formatAttribute:o}=n(6598),{validate:a,validation:s}=n(3380),{parseNumber:c}=n(1021),l=n(1015),u=n(736),d=n(442).B,{getAttributeEnumerationType:f,getAttributeType:h,getEntityMeta:p}=n(4037),{getEnumerationOptions:g,translateEnumeration:m}=n(945),{translate:v}=n(2749),{isNumericType:y}=n(3282),{LogManager:b}=n(7606),{delocalizeEpoch:w,localizeEpoch:x}=n(2708),_=n(8007),S=n(9488),C=n(6618),E=n(8069),O=n(7136),j=b.get().getLogger(),k=l.create,R=O(r,{declaredClass:"mxui.widget.SearchInput",path:"",operator:"",caption:"",entity:"",defaults:"",hidden:!1,disabled:!1,defaultsParser:"",queryBuilder:"",retriever:"",datasource:"",widget:"",mxcontext:null,_attribute:"",_input:null,_isSelect:null,_widget:null,_datasource:null,_defaultsValue:null,_doDefaultsParser:null,_doQueryBuilder:null,_doRetriever:null,_isLoaded:!1,postMixInProperties:function(){const e=this.path.split("/");e.length>1&&(this.entity=e[e.length-2]),this._attribute=e[e.length-1],this._doRetriever=this.retriever?C.hitch(this,"_retrieve"+this.retriever+"Options"):null,this._doQueryBuilder=this["_build"+(this.queryBuilder&&this.queryBuilder.name||"Simple")+"Query"],this._initDataSource(),this._initDefaultsValue()},buildRendering:function(){let e,t;const n=this.id+"_input",r=this.id+"_label";if(this.domNode=k("div",{class:"mx-grid-search-item"},k("div",{class:"mx-grid-search-label"},k("label",{for:n,id:r},this.caption||"")),t=k("div",{class:"mx-grid-search-input mx-name-"+this.searchInputName})),this.widget){e=C.getObject(this.widget.type);const n=t.appendChild(k("div"));this._widget=new e(Object.assign({},this.widget.params,{labelId:r}),n),this.connect(this._widget,"onKeyUp","onKeyUp"),this.connect(this._widget,"onChange","onChange")}else this.retriever||this.datasource?(this._input=k("select",{class:"form-control",id:n}),this._isSelect=!0):(this._input=k("input",{type:"text",class:"form-control",id:n}),this._isSelect=!1),t.appendChild(this._input),this.connect(this._input,"keyup","onKeyUp"),this.connect(this._input,"blur","onChange");this.retriever&&this._fillInput(this._doRetriever(),""),this.get("hidden")&&(this.domNode.style.display="none")},startup:function(){this.inherited(arguments),this.set("disabled",this.disabled)},reset:function(){this._hideValidationMessage(),this.set("value",this._defaultsValue)},reinit:function(e){const t=this._isLoaded?this.get("value"):this._defaultsValue;this._datasource?this._datasource.reload((()=>{const n=this._datasource.getObjects().filter((e=>e.has(this._attribute))).map((e=>({key:e.get(this._attribute).toString(),caption:o(e,this._attribute)}))).reduce(((e,t)=>e.find((e=>e.key===t.key))?e:[...e,t]),[]);this._fillInput(n,t),this._isLoaded=!0,e&&e()})):(this.set("value",t),this._isLoaded=!0,e&&e())},focus:function(){this._widget?this._widget.focus?this._widget.focus():i.setFocus(this._widget.domNode):i.setFocus(this._input)},onChange:function(){const e=this._getRawValue();this._isValid(e)?this._hideValidationMessage():this._showValidationMessage()},onKeyUp:function(e){"Enter"!==e.key||e.shiftKey||this.onChange()},cleanup:function(){this._hideValidationMessage()},uninitialize:function(){this._widget&&this._widget.destroy()},_retrieveBoolOptions:function(){return[{key:"true",caption:v("mxui.common","true")},{key:"false",caption:v("mxui.common","false")}]},_retrieveEnumOptions:function(){const e=f(this.entity,this._attribute),t=g(e).map((t=>({key:t,caption:m(e,t)})));return t.unshift({key:""}),t},_defaultSimpleValue:function(e){return""===e?"":e||null},_defaultJsonValue:function(e){return E.fromJson(e||"''")},_defaultDateValue:function(e){let t=null;return e&&(t="[%CurrentDateTime%]"===e?+new Date:"[%BeginOfCurrentDay%]"===e?+(new Date).setHours(0,0,0,0):x(+e)),t},_buildRangeQuery:function(e){const{path:t,toPath:n,operator:r,toOperator:i,value:o}=e;return this._createRangeQueryString(t,r,n,i,o,o)},_buildSimpleQuery:function(e){return this._xpString(e.path,e.operator,e.value)},_addDay:function(e){const t=new Date(e);return t.setDate(t.getDate()+1),t.getTime()},_adjustDateCondition:function(e,t){let n=e,r=t;if("date"!==this.widget.params.formatSettings.mode)return{adjustedOperator:n,adjustedValue:r};const i=this._addDay(t);switch(e){case">":n=">=",r=i;break;case"<=":n="<",r=i}return{adjustedOperator:n,adjustedValue:r}},_buildDateQuery:function(e){const t=this._addDay(e.value);if("="===e.operator)return this._createNestableExpression(e.path,
7(n=>`${n}>=${e.value} and ${n}<${t}`));{const{adjustedOperator:t,adjustedValue:n}=this._adjustDateCondition(e.operator,e.value);return this._xpString(e.path,t,n+"")}},_buildDateRangeQuery:function(e){const{path:t,operator:n,toPath:r,toOperator:i,value:o}=e,{adjustedOperator:a,adjustedValue:s}=this._adjustDateCondition(n,o),{adjustedOperator:c,adjustedValue:l}=this._adjustDateCondition(i,o);return this._createRangeQueryString(t,a,r,c,s,l)},_createRangeQueryString:function(e,t,n,r,i,o){let a;if(e===n)a=e.lastIndexOf("/")+1;else{let t=0;for(;t<e.length&&t<n.length&&e[t]===n[t];)t++;a=e.substring(0,t).lastIndexOf("/")+1}const s=e.substring(a),c=n.substring(a),l=a?e.substring(0,a-1):"",u=`(${this._createOrEmptyExpression(s,t,i)}) and (${this._createOrEmptyExpression(c,r,o)})`;return l?`${l}[${u}]`:u},_createOrEmptyExpression:function(e,t,n){return this._createNestableExpression(e,(e=>`${e}${t}${n} or ${e}=empty`))},_createNestableExpression:function(e,t){let n,r;const i=e.lastIndexOf("/")+1;i?(n=e.substring(0,i-1),r=e.substring(i)):r=e;const o=t(r);return n?`${n}[${o}]`:o},_initDefaultsValue:function(){const e=this["_default"+(this.defaultsParser||"Simple")+"Value"];this._defaultsValue=e.call(this,this.defaults)},_initDataSource:function(){this.datasource&&"database"===this.datasource.type&&(this._datasource=new d(C.mixin({},{entity:this.entity,attributes:[this._attribute],context:this.mxcontext,distinct:!0,wantCount:!1,friendlyId:this.friendlyId},this.datasource.params)))},_showValidationMessage:function(){const e="DateTime"===h(this.entity,this._attribute)?"invalid_date":"invalid_number";u.show(this.domNode,v("mendix.lib.Validations",e))},_hideValidationMessage:function(){u.hide(this.domNode)},_fillInput:function(e,t){e.length>1e3&&j.warn(`${this.friendlyId.replace(/ .*/g,"")}.${this.searchInputName}: contains more than a 1000 options (including 1000s or more options that need to be retrieved from the server will impact page loading performance considerably on older browsers)`);const n=v("mxui.widget.SearchInput","empty_dropdown_value");e=e.map((e=>e.key?e:{key:"",caption:n})),this._widget?this._widget.set("items",e):(l.empty(this._input),[k("option",{value:""},"")].concat(e.map((e=>k("option",{value:this.id+"_"+e.key},e.caption)))).forEach((e=>this._input.appendChild(e)))),this.set("value",t)},_stringForOperator:function(e,t,n){return e+t+n},_stringForContains:function(e,t,n){return t+"("+e+","+n+")"},_xpString:function(e,t,n){return/contains|starts-with/.test(t)?this._stringForContains(e,t,n):this._stringForOperator(e,t,n)},_isValid:function(e){if(this._widget&&this._widget.isValid)return this._widget.isValid();if(null===e)return!0;const t=h(this.entity,this._attribute);if(y(t)||"AutoNumber"===t){if(""===e)return!0;let n=[];return C.isArray(e)?n=e:n.push(e),n.every((e=>{const n=c(e);return void 0!==n&&a(n,t)===s.OK}))}return!0},_setValueAttr:function(e){this._widget?this._widget.set("value",e):this._input.value=null===e?"":this._isSelect?this.id+"_"+e:e},_getRawValue:function(){let e;if(this._widget){if(e=this._widget.get("value"),!e||0===e.length)return null}else{if(e=this._input.value,""===e)return null;this._isSelect&&(e=e.replace(this.id+"_",""))}return e},_getValueAttr:function(){if(!this._isLoaded)return this._defaultsValue;const e=this._getRawValue();return this._isValid(e)?e:null},_getQueryAttr:function(){const e=this.get("value");let t;if(t=C.isArray(e)?e:null===e?[]:[e],0===t.length)return"";const n="!="===this.operator?" and ":" or ",r=(p(this.entity)||{}).attributes[this._attribute]||{},i=y(r.type)||"AutoNumber"===r.type,o="Enum"===r.type,a="DateTime"===r.type,s="String"===r.type,u=a&&r.isDateLocalized;return t=t.reduce(((e,t)=>(s&&""===t?(e.push(void 0),e.push(t)):(i||o)&&""===t?e.push(void 0):e.push(t),e)),[]),"("+S.map(t,C.hitch(this,(function(e){return a?(e=+e,u||(e=w(e))):i?i&&(e=void 0!==e?c(e).toString():"empty"):e=void 0!==e?"'"+l.escapeHTMLQuotes(e)+"'":"empty",this._doQueryBuilder(C.mixin({},this.queryBuilder.params,{path:this.path,operator:this.operator,value:e}))}))).join(n)+")"},_getHiddenAttr:function(){return this.hidden},_setHiddenAttr:function(e){this.hidden=e},_setDisabledAttr:function(e){let t;this.disabled=e,this._widget?(t=this._widget.domNode,this._widget.set("disabled",e)):(t=this._input,e?(t.setAttribute("readonly","readonly"),l.disableNode(t)):(t.removeAttribute("readonly","readonly"),l.enableNode(t))),e?_.add(t,"MxClient_formDisabled"):_.remove(t,"MxClient_formDisabled")},_getDisabledAttr:function(){return this.disabled}});e.exports=R},5717:(e,t,n)=>{const r=n(7074),i=n(5034),{enableRoving:o,disableRoving:a,NavigationKeys:s}=n(8048),c=n(1015),l=n(2239),u=n(1120),d=n(8007),f=n(2496),h=n(1178),p=n(4298),g=n(2153),m=n(5408),v=n(9488),y=n(7136);
7var b=c.create,w=y(r,{declaredClass:"mxui.widget.SelectBox",items:null,_dropDown:null,_isVisible:!1,_docMouseDown:null,_textNode:null,_cancelAnimationLoop:null,buildRendering:function(){this._textNode=document.createTextNode(""),this.domNode=b("button",{type:"button",class:"form-control mx-selectbox",...this.params.labelId?{"aria-labelledby":this.params.labelId}:void 0},b("div",{class:"mx-selectbox-caret-wrapper"},b("span",{class:"caret"})),this._textNode),this.connect(this.domNode,"keydown","_buttonKeyDown"),this.connect(this.domNode,p.release,"_toggleDropDown"),this.connect(this.mxform,"onBeforeHide","_hideDropDown"),this._createDropDown()},_buttonKeyDown:function(e){e.keyCode===m.DOWN_ARROW&&(this._showDropDown(),e.preventDefault())},_toggleDropDown:function(){this._isVisible?this._hideDropDown():this._showDropDown()},_showDropDown:function(){if(!this._isVisible){this._isVisible=!0;var e=u.position(this.domNode),t={top:e.y+e.h+"px",overflowY:"auto"};window.mx.ui.isRtl()?t.right=g.getBox().w-e.x-e.w+"px":t.left=e.x+"px",t.maxHeight=this._getDropDownMaxHeight()+"px",f.set(this._dropDown,t),document.body.appendChild(this._dropDown),this._docMouseDown=this.connect(document,p.press,(function(e){e.target!=this.domNode&&this._hideDropDown()})),this._dropDown.firstChild&&i.setFocus(this._dropDown.firstChild),this._startObserveDomNodePosition()}},_getDropDownMaxHeight:function(){const{bottom:e}=this.domNode.getBoundingClientRect(),t=document.documentElement.clientHeight;return Math.max(t-e-16,100)},_animationLoop:function(e){let t;const n=()=>{t=window.requestAnimationFrame((()=>{e()&&n()}))};return n(),()=>window.cancelAnimationFrame(t)},_startObserveDomNodePosition:function(){this._stopObserveDomNodePosition();const e=(e=>()=>{let t=!0;return e()&&(this._hideDropDown(),t=!1),t})((()=>{let e;return()=>{const{bottom:t}=this.domNode.getBoundingClientRect();return e=void 0===e?t:e,e!==t}})());this._cancelAnimationLoop=this._animationLoop(e)},_stopObserveDomNodePosition:function(){"function"==typeof this._cancelAnimationLoop&&(this._cancelAnimationLoop(),this._cancelAnimationLoop=null)},_hideDropDown:function(){this._isVisible&&(this._isVisible=!1,this._docMouseDown.remove(),c.orphan(this._dropDown),this._stopObserveDomNodePosition())},_createDropDown:function(){var e=b("ul",{class:"mx-dropdown dropdown-menu"}),t=this;this.own(h(e,h.selector("li","click"),(function(e){t._selectItem(this)}))),this.connect(e,p.press,(function(e){e.stopPropagation()})),this._dropDown=e,e.style.display="block",o(this._dropDown,s.UpDown),this._dropDown.addEventListener("keydown",(e=>{" "===e.key&&e.preventDefault(),"Tab"===e.key&&(this._hideDropDown(),(e.shiftKey?this.domNode:i.findNext(this.domNode)).focus(),e.stopPropagation(),e.preventDefault())})),this._dropDown.addEventListener("keyup",(e=>{switch(e.key){case" ":case"Spacebar":"INPUT"!==e.target.nodeName&&this._selectItem(e.target);break;case"Enter":case"Escape":case"Esc":this._hideDropDown(),this.domNode.focus(),e.stopPropagation();break;default:return}e.preventDefault()}))},_selectItem:function(e){var t=this.items[c.data(e,"index")];t.checkbox.checked=t.selected=!t.selected,d.toggle(e,"selected"),i.setFocus(e),this._updateCaption()},_setItemsAttr:function(e){this.items=e,l.empty(this._dropDown),v.forEach(this.items,(function(e,t){var n=e.checkbox=b("input",{type:"checkbox",tabIndex:-1}),r=b("li",{tabIndex:0},n," ",b("label",e.caption));e.selected&&(n.checked=!0,d.add(r,"selected")),c.data(r,"index",t),this._dropDown.appendChild(r)}),this),this._updateCaption()},_getValueAttr:function(){var e=[];return v.forEach(this.items,(function(t){t.checkbox.checked&&e.push(t.key)})),e},_setValueAttr:function(e){"string"==typeof e&&(e=[e]),v.forEach(this.items,(function(t){t.checkbox.checked=t.selected=v.indexOf(e,t.key)>=0})),this._updateCaption()},_updateCaption:function(){var e,t=[];v.forEach(this.items,(function(e){e.checkbox.checked&&t.push(e.caption)})),e=0===t.length?"":1===t.length?t[0]:this.translate("itemsSelected",t.length.toString()),this._textNode.nodeValue=e},uninitialize:function(){this._hideDropDown(),v.forEach(this._dropDown.children,(function(e){c.data(e,null)})),a(this._dropDown)}});e.exports=w},6795:(e,t,n)=>{const r=n(4010);var i=n(7136)(r,{declaredClass:"mxui.widget.SidebarToggleButton",onClick:function(){this.mxform.publish("toggleSidebar")}});e.exports=i},3668:(e,t,n)=>{const r=n(7074),i=n(4478),o=n(9724),a=n(1015),s=n(1178),c=n(8007),l=n(1120),u=n(9488),d=n(7136),f=n(8048),h=f.NavigationKeys,{TextExpression:p}=n(2565);var g=a.create,m=d([r,i],{declaredClass:"mxui.widget.TabContainer",validator:null,_active:null,_tabList:null,_tabPanes:null,_tabContent:null,_clickHandler:null,_badgeList:null,postMixInProperties:function(){this.doParse=!0},buildRendering:function(){var e=this._tabList=g("ul",{class:"nav nav-tabs mx-tabcontainer-tabs",role:"tablist"}),t=this._tabContent=g("div",{class:"tab-content mx-tabcontainer-content","data-focusindex":"0"},this.getTemplate("pages"));this.domNode=g("div",{class:"mx-tabcontainer"},e,t);var n=this;this._clickHandler=s(e,s.selector("li","click"),(function(e){n.showTab(n.domData(this,"tab")),e.preventDefault()}))},startup:function(){var e=this._tabList,t=this._tabContent.childNodes,n=0,r=this._tabPanes=[];this._badgeList=[];for(var i,o=0;i=t[o];o++){const t=`${this.id}_tab-${o}`;var a=g("li",{role:"presentation"}),s=this.parseContent(i,{index:o,button:a,container:this,validator:this})[0];
7this.domData(a,"tab",s),s.selected&&(n=o),s.domNode.setAttribute("aria-labelledby",t);const c=g("a",{href:"#",class:"mx-name-"+s.tabName,id:t,"aria-controls":s.id,role:"tab","aria-selected":"false"},s.title);if(s.badge){const e=g("span",{class:"mx-tabcontainer-badge",style:{display:"none"}},"");this._badgeList.push(new p(s.badge,(t=>{t?(e.style.display="inline-block",e.textContent=t):e.style.display="none"}))),c.appendChild(e)}a.appendChild(c),a.appendChild(s.indicator),e.appendChild(a),r.push(s)}f.enableRoving(e,h.LeftRight,(()=>e.querySelectorAll("a"))),this.showTab(r[this.getState("selected",n)])},showTab:function(e){var t=this,n=this._active;n&&n.hideTab(),this._active=e,c.add(this._tabContent,"loading"),e.showTab((function(){t._active===e&&c.remove(t._tabContent,"loading"),t.mxform.resize()}))},onShowTab:function(e){this._active||(this.showTab(e),this.domNode.style.display="")},onHideTab:function(e){if(e===this._active){for(var t,n,r=e.index,i=this._tabPanes,o=i.slice(r+1).concat(i.slice(0,r)),a=0;n=o[a];a++)if(!n._hidden){t=n;break}e.hideTab(),t?this.showTab(t):(this._active=null,this.domNode.style.display="none")}},resize:function(e){var t=!0,n=this._tabPanes;if(e){var r=e.h-l.getMarginBox(this._tabList,null).h;r>a.minContainerHeight?(t=!1,l.setMarginBox(this._tabContent,{h:r})):this._tabContent.style.height="auto"}this._tabContent.style.overflow=t?"":"auto";for(var i,o=0;i=n[o];o++)i.resize(t)},isValid:function(){return u.every(this._tabPanes,(function(e){return!e.isValid||e.isValid()}))},update:function(e,t){this._badgeList.forEach((e=>e.update(this.mxcontext))),this.passContext(o.findWidgets(this.domNode),t)},uninitialize:function(){this._clickHandler.remove(),this._badgeList.forEach((e=>e.destroy()))},storeState:function(e){e("selected",this._active&&this._active.index)}});e.exports=m},9791:(e,t,n)=>{const r=n(7074),i=(n(3668),n(1244)),o=n(4525),a=n(1015),s=n(8007),c=n(2496),l=n(6618),u=n(7136),d=a.create;var f=u(r,{declaredClass:"mxui.widget.TabContent",index:0,title:"",button:null,container:null,indicator:null,delayLoading:!1,refreshOnShow:!1,_hidden:!1,_parsed:!1,_loading:!1,_visible:!1,_cachedResize:null,_notifies:0,_children:null,_contextInitialized:!1,buildRendering:function(){this.indicator=d("span",{class:"mx-tabcontainer-indicator"}),this.domNode=d("div",{class:"tab-pane mx-tabcontainer-pane",role:"tabpanel"})},startup:function(){this.delayLoading||this.parse(),this._updateNotification()},applyContext:function(e,t){!this._contextInitialized&&this._hidden&&this.container.onHideTab(this),this._contextInitialized=!0,this._parsed?o.ready(this._children,(()=>this.inherited(arguments))):(this.mxcontext.mixin(e),t&&t())},parse:function(){var e=this.getTemplate("content");this.domNode.appendChild(d("#",e||"")),this._children=this.parseContent(this.domNode,{validator:this}),this._parsed=!0},refresh:function(e){this._loading=!0;var t=this.getChildren();o.ready(t,l.hitch(this,"passContext",t,l.hitch(this,(function(){this._loading=!1,e&&e()}))))},show:function(){this._hidden=!1,c.set(this.button,"display",""),c.set(this.domNode,"display",""),this.container.onShowTab(this)},hide:function(){this._hidden=!0,c.set(this.button,"display","none"),c.set(this.domNode,"display","none"),this._contextInitialized&&this.container.onHideTab(this)},showTab:function(e){this._visible=!0;const t=this.button.querySelector("a");if(!this._loading){var n=this,r=function(){n._visible&&(s.add(n.domNode,"active"),null!=n._cachedResize&&(n.resize(n._cachedResize),n._cachedResize=null)),e&&e()};if(s.add(this.button,"active"),t.setAttribute("aria-selected","true"),this._parsed)this.refreshOnShow&&this._contextInitialized&&(this.getChildren(!0).filter((e=>e instanceof i)).forEach((e=>{e.hide(),e.show()})),this.refresh(r));else if(this.parse(),this._contextInitialized)return void this.refresh(r);r()}},hideTab:function(){this._visible=!1;const e=this.button.querySelector("a");s.remove(this.button,"active"),e.setAttribute("aria-selected","false"),s.remove(this.domNode,"active")},resize:function(e){this._visible?this.resizeChildren(this.domNode,e):this._cachedResize=e},isValid:function(){return!this._parsed||this._children.every((e=>!e.isValid||e.isValid()))},addNotification:function(){++this._notifies,this._updateNotification();var e=this.container.validator;return e&&e.addNotification(),!0},removeNotification:function(){--this._notifies,this._updateNotification();var e=this.container.validator;e&&e.removeNotification()},_updateNotification:function(){0===this._notifies?c.set(this.indicator,"display","none"):("none"==this.domNode.style.display&&window.mx.ui.showMessage("error",this.translate("hidden_validations",(this.index+1).toString())),c.set(this.indicator,"display","")),a.text(this.indicator,this._notifies+"")},_setTitleAttr:function(){}});e.exports=f},8778:(e,t,n)=>{const r=n(4665),i=n(4029),{MxContext:o}=n(2959),a=n(4525),s=n(1015),c=n(4296),l=(n(4784),n(1178)),u=n(6618),d=n(7136),f=n(983),h=n(4677);var p=s.create,g=d(r,{declaredClass:"mxui.widget.TemplateGrid",templateString:f,subClass:"mx-templategrid",cssma
7p:a.createCSSMap("mx-templategrid",{row:"row",item:"item",empty:"empty"}),itemNode:null,_mxObjects:[],_itemCache:[],constructor:function(){this._mxObjects=[],this._itemCache=[],this._gridState={selectable:!0,selectionmode:"single",searchbar:!0,controlbar:!0,pagingbar:h.yesWithoutTotalCount,inDenial:!1,searchBarVisible:!1,searchBarTogglable:!0,xpathConstraint:"",dynamicconstraint:"",loading:!1,invertedSelection:!1}},postCreate:function(){this.inherited(arguments),this._metaEntity&&this.connectEvents(),this.actLoaded()},setupGridState:function(){this.inherited(arguments),this._gridState.columns=this._gridConfig.gridSetting("columns"),this._gridState.rows=this._gridConfig.gridSetting("rows"),this._gridState.cellwidth=String(100/this._gridState.columns)+"%"},connectEvents:function(){var e=this;this.own(l(this.itemNode,l.selector("."+this.cssmap.item,"click"),(function(t){e.eventItemClicked(t,this)})));var t=this._gridConfig.getDefaultButton();if(t){var n="single"===t.clickType?"click":"dblclick";this.own(l(this.itemNode,l.selector("."+this.cssmap.item,n),(function(){e.triggerDefaultAction(this)})))}},fillGrid:function(){this._mxObjects=this._dataSource.getObjects(),this._gridState.selectfirst&&!this._gridState.invertedSelection&&this._mxObjects.length>0&&!this._hasSelection()&&this._addToSelection(this._mxObjects[0].getGuid()),this._shareWidgetSelection();for(var e,t=p("#"),n=this._itemCache.length,r=0,l=!1,d=[],f=0;f<this._gridState.rows;++f){var h=p("div",{class:this.cssmap.row});t.appendChild(h);for(var g=0;g<this._gridState.columns;++g){if(r<this._mxObjects.length)r>=this._itemCache.length&&(this._itemCache[r]=new i({uniqueid:this.uniqueid+"_obj"+this._mxObjects[r].getGuid(),name:"mx-name-index-"+r,mxform:this.mxform,template:window.mx.ui.getTemplate(this.mxid,"content"),cssClass:this.cssmap.item}),l=!0),(e=this._itemCache[r].domNode).style.width=this._gridState.cellwidth,this.domData(e,{gridrow:r,mendixguid:this._mxObjects[r].getGuid()}),h.appendChild(e),this._isSelected(this._mxObjects[r].getGuid())?this.selectRow(e):this.deselectRow(e);else{var m=p("div",{class:this.cssmap.empty},p("br"));h.appendChild(m)}++r}if(r>=this._mxObjects.length&&!this._gridState.showemptyrows)break}s.empty(this.itemNode),this.itemNode.appendChild(t);var v=this._itemCache.slice(n);v.forEach((e=>e.startup())),a.ready(v,(()=>{for(this.actLoaded(),r=0;r<this._mxObjects.length;++r){var e=new o({mxcontext:this.mxcontext});e.setWidgetObject(this.mxid,this._mxObjects[r]),d.push(u.hitch(this._itemCache[r],"applyContext",e))}this._itemCache.splice(this._mxObjects.length,this._itemCache.length).forEach((e=>e.destroy())),c.collect(d,(function(){l&&this.mxform.resize()}),this)}))},deselectGridRows:function(){for(var e=0,t=this._itemCache.length;e<t;++e)this.deselectRow(this._itemCache[e].domNode)},_getEntity:function(e){return c.firstKey(e)},_getCurrentGuid:function(){return this.selection[0]},_getObjectFromNode:function(e){return this._mxObjects[this.domData(e,"gridrow")]}});e.exports=g},4029:(e,t,n)=>{const r=n(7074),i=n(1015),o=n(4525);var a=n(7136)(r,{declaredClass:"mxui.widget.TemplateGridItem",autoLoad:!1,name:"",cssClass:"",template:null,root:null,buildRendering:function(){this.domNode=i.create("div",{class:[this.name,this.cssClass].join(" ")}),this.template&&this.domNode.appendChild(this.template)},startup:function(){var e=this.parseContent(this.domNode,{ignoreUpdates:!0});o.ready(e,this.actLoaded.bind(this)),this.root=e[0]||null},_setDisabledAttr:function(e){this.root&&this.root.set("disabled",e)}});e.exports=a},2260:(e,t,n)=>{const r=n(7074),i=n(9795),o=n(1015),a=n(2496),s=n(3869),c=n(8833);var l=n(7136)([r,i],{declaredClass:"mxui.widget.Underlay",_count:0,buildRendering:function(){this.domNode=o.create("div",{class:"mx-underlay"})},postCreate:function(){this.createBackgroundIframe()},show:function(e){if(0==this._count++){var t=this.domNode;e?(a.set(t,"opacity","0"),c.body().appendChild(t),s.fadeIn({end:.5,node:t,duration:e}).play()):c.body().appendChild(t)}},hide:function(e){if(0==--this._count){var t=this.domNode;e?s.fadeOut({node:t,duration:e,onEnd:function(){o.orphan(t)}}).play():o.orphan(t)}},setZIndex:function(e){this.domNode.style.zIndex=e}});e.exports=l},6765:(e,t,n)=>{const r=n(7074),i=n(1015),o=n(1984),a=n(7136)(r,{declaredClass:"mxui.widget.ValidationMessage",buildRendering:function(){this.domNode=i.create("div",{class:"alert alert-danger",style:"display: none"});const e=window.mx.ui.makeShareId(this.mxform,this.mxid);this.own(o.subscribe(e,(e=>
7this._showMessage(e))))},_showMessage:function(e){this.domNode.innerHTML=e,this.domNode.style.display=""}});e.exports=a},7632:(e,t,n)=>{const r=n(4296),i=n(548);var o=n(7136)(i,{declaredClass:"mxui.widget.VerticalScrollContainer",startup:function(){this.inherited(arguments),r.forEach(["top","bottom"],(function(e){var t=this._regions[e];t&&t.wrapper.style.height&&(t.heightSpecified=!0,t.wrapper.style.overflow="auto")}),this)},resize:function(e){var t=e?e.h:void 0;r.forEach(["top","bottom"],(function(e){var n=this._regions[e];n&&(this.resizeChildren(n.wrapper,!n.heightSpecified),t-=n.node.offsetHeight)}),this),this._resizeRegions({middle:this._regions.middle},t)}});e.exports=o},8105:(e,t,n)=>{const r=n(6461),i=n(5034),o=n(1015),a=n(2239),s=n(2496),c=n(8007),l=n(1120),u=n(7136),{applyStyleObject:d}=n(7020);var f=o.create,h=u(r,{declaredClass:"mxui.widget.Window",title:"",width:0,height:0,resizable:!0,content:null,cssStyle:"",cssClass:"",_headerNode:null,buildRendering:function(){this.domNode=f("div",{role:"dialog",class:"modal-dialog mx-window "+this.cssClass,"aria-labelledby":this.id+"_caption","aria-modal":"false"},this._contentNode=f("div",{class:"modal-content mx-window-content"},this._headerNode=f("div",{class:"modal-header mx-window-header"},f("h4",{id:this.id+"_caption"},this.title||"...")),this.content)),c.add(this.content,"modal-body mx-window-body"),d(this.domNode,this.cssStyle);var e=this.translateWithFallback("close","close"),t=f("button",{type:"button",class:"close",title:e,"aria-label":e});t.innerHTML="&times;",a.place(t,this._headerNode,"first"),this.connect(t,"click",(function(){this.onClose()})),this.inherited(arguments),s.set(this.domNode,"opacity","0")},onBeforeShow:function(){this.inherited(arguments),o.moveFocusTo(i.findFirst(this.content)||i.findFirst(this.domNode)||this.domNode);var e={};this.width&&(e.w=this.width),this.height&&(e.h=this.height),this.resize(e)},onClose:function(){},layout:function(){var e=l.getContentBox(this.domNode).h,t=l.getMarginBox(this._headerNode).h,n=o.getNodeExtents(this._contentNode).h;l.setContentSize(this.content,{h:Math.max(0,e-n-t)}),this.resizeChildren(this.content)},activate:function(){c.add(this.domNode,"mx-window-active")},deactivate:function(){c.remove(this.domNode,"mx-window-active")},_setTitleAttr:function(){}});e.exports=h},7715:(e,t,n)=>{const r=n(7074),i=n(1015),{getStaticResourceUrl:o}=n(6199),a=n(6618),s=n(503),c=n(7136),{applyStyleObject:l}=n(7020);var u=i.create,d=c(r,{declaredClass:"mxui.widget._Button",renderType:"button",iconUrl:"",iconClass:"",cssClasses:null,additionalAttributes:{},cssStyle:"",_textNode:null,_iconNode:null,_isCls:!1,buildRendering:function(){this._textNode=document.createTextNode("");var e=Object.assign({},this.additionalAttributes),t=this.cssClasses||[];"string"==typeof t&&(t=[t]);var n=t.join(" ");"link"===this.renderType?this.domNode=u("span",a.mixin(e,{class:"mx-link "+n})," ",u("a",{tabindex:-1},this._textNode)," "):this.domNode=u("button",a.mixin(e,{type:"button",class:"btn mx-button "+n})," ",this._textNode," "),l(this.domNode,this.cssStyle),this._connectEvents()},_connectEvents:function(){this.connect(this.domNode,"click","_onClick"),this.connect(this.domNode,"keyup","onKeyUp")},onClick:function(e){},onKeyUp:function(e){},_onClick:function(e){s.stop(e),this.domNode.focus(),this.onClick(e)},checkDisabled:function(){return this._disabled},enable:function(){"button"==this.renderType&&this.domNode.removeAttribute("disabled")},disable:function(){"button"==this.renderType&&this.domNode.setAttribute("disabled","disabled")},_setCaptionAttr:function(e){this._textNode.nodeValue=e},_setIconClassAttr:function(e){this._setIcon(e,!0)},_setIconUrlAttr:function(e){this._setIcon(e,!1)},_setIconVisibleAttr:function(e){this._iconNode.style.display=e?"":"none"},_setIcon:function(e,t){this._iconNode&&(i.orphan(this._iconNode),this._iconNode=null),e&&(this._iconNode=t?u("span",{class:e}):u("img",{src:o(e)}),this.domNode.insertBefore(this._iconNode,this.domNode.firstChild))},_setFocusIndexAttr:function(e){this.domNode.setAttribute("tabindex",e)}});e.exports=d},4010:(e,t,n)=>{const r=n(7715),{TextExpression:i}=n(2565);var o=n(7136)(r,{caption:null,needsObject:!1,_captionTextExpression:null,postCreate:function(){var e=this;this._captionTextExpression=new i(this.caption,(function(t){e.set("caption",t)}))},checkDisabled:function(){return this.inherited(arguments)||this.needsObject&&!this.mxcontext.hasTrackId()},update:function(e,t){this.updateDisabled(),this._captionTextExpression.update(this.mxcontext),t&&t()},uninitialize:function(){this._captionTextExpression.destroy()}});e.exports=o},4665:(e,t,n)=>{const r=n(2487),i=n(4478),o=n(5794),a=n(8125),s=n(9662),c=n(2588),l=n(4708),u=n(3792),d=n(4509),f=n(7074),h=n(4525),p=n(1015),{MxContext:g}=n(2959),{MxObject:m}
7=n(3482),{getEntityMeta:v}=n(4037),{translate:y}=n(2749),{AssertionError:b}=n(234),{LogManager:w}=n(7606),{saveChanges:x}=n(7340),{ValidationError:_}=n(8934),S=n(5020),{XPathSource:C}=n(7188),E=n(7399),O=n(4784),j=n(8007),k=n(2496),R=n(1120),N=n(9488),T=n(6618),A=n(503),P=n(3033),D=n(7136),I=n(8048),M=I.NavigationKeys,L=n(4677),{handleError:$}=n(1881),F=w.get().getLogger();var B=D([P,f,s,r,i,o,a],{baseClass:"mx-grid",css:h.createCSSMap("mx-grid",{pagingStatus:"paging-status",searchButton:"search-button",resetButton:"reset-button"}),entity:"",schema:void 0,customDataSource:null,dataSourceMixin:null,_previousSearchConstraints:"",pagingBarNode:null,searchNode:null,toolBarNode:null,messageNode:null,searchButton:null,resetButton:null,_dataSource:null,_gridConfig:null,_gridState:null,_metaEntity:null,_toolWidgets:null,_pagingStatusNode:null,_defaultButtonWidget:null,_restoreSearchState:!0,_isSearchFieldsInitialized:!1,fetchMetaObject:function(){return this._metaEntity=v(this.entity),null!=this._metaEntity||(F.error(this.friendlyId+": This grid has been configured for an entity the current user doesn't have access to."),!1)},setupGridConfig:function(){this._gridConfig=new c({config:this.config,nested:this.nested})},setupGridState:function(){var e=this._gridConfig,t=this._gridState;t.updateperiod=e.gridSetting("refresh"),t.searchbar=e.gridSetting("searchbar"),t.controlbar=e.gridSetting("controlbar"),t.pagingbar=e.gridSetting("pagingbar"),t.selectionmode=e.gridSetting("selectionmode"),t.selectable="none"!==t.selectionmode,t.editable=e.gridSetting("editable"),t.showemptyrows=e.gridSetting("showemptyrows"),t.selectfirst=e.gridSetting("selectfirst")},setupDataSource:function(){var e,t=this._gridConfig,r=t.getDataSource(),i=this.getState("pageOffset",0),o=t.gridSetting("pageSize");if(this.customDataSource){(e=this.customDataSource).setPageSize(o),e.setOffset(i);var a=this.getState("sortOptions",t.gridSetting("sortparams"));if(a&&a.length){const[t,n]=a[0];e.setSort(t,n)}}else r&&(e=S.create(T.mixin({sort:this.getState("sortOptions",t.gridSetting("sortparams")),schemaId:this instanceof n(2062)?this.schema:"",context:this.mxcontext,page:o,offset:i,origin:this.mxform,friendlyId:this.friendlyId,wantCount:this._gridState.pagingbar===L.yesWithTotalCount},r,this.dataSourceMixin)));this._dataSource=e},resizeGrid:function(){this.contentNode.scrollTop=0},setUpdateInterval:function(){var e=this._gridState.updateperiod;e&&"0"!=e.toString()&&(this.clearInterval(),this._gridState.update=setInterval(T.hitch(this,"reload"),parseInt(1e3*e,10)))},clearInterval:function(){null!=this._gridState.update&&clearInterval(this._gridState.update)},actionSelectPage:function(){if(!this._gridState.invertedSelection)for(var e,t=0,n=this._dataSource.getObjects();e=n[t];t++)this._addToSelection(e.getGuid());this.refreshGrid()},actionSelectAllPages:function(){this.selection=[],this._gridState.invertedSelection=!0,this.refreshGrid()},actionClearSelection:function(){(this._hasSelection()||this._gridState.invertedSelection)&&(this._clearSelection(),this.refreshGrid())},selectRow:function(e){this._gridState.invertedSelection?j.remove(e,"selected"):j.add(e,"selected")},deselectRow:function(e){this._gridState.invertedSelection?j.add(e,"selected"):j.remove(e,"selected")},postCreate:function(){this.initContext(),this._previousSearchConstraints=this.getState("searchConstraints",""),this.fetchMetaObject()&&(this.setupGridConfig(),this.setupGridState(),this.buildSearchBar(),this.buildControlBar(),this.setupDataSource())},getSchemaId:function(){return this.schema},deselectAll:function(){this._clearSelection(),this.deselectGridRows()},registerSubscriptions:function(){this.unsubscribeAll();var e=this.mxcontext.getTrackId();e&&this.subscribe({guid:e,callback:(e,t)=>this.update(null,t)}),this.subscribe({entity:this.entity,callback:(e,t)=>this.update(null,t)})},eventItemClicked:function(e,t){if(this._gridState.selectable){var n=this._getObjectFromNode(t);if(n){var r=N.indexOf(this.selection,n.getGuid()),i=this._gridState.selectionmode,o="singleandmaintain"!=i||this.selection.length>1;"simplemulti"==i||"multi"==i&&(O("mac")&&e.metaKey||e.ctrlKey)?-1==r?(this.selectRow(t),this._addToSelection(n.getGuid())):o&&(this.deselectRow(t),this._removeFromSelection(n.getGuid())):-1==r?(this.deselectAll(),this.selectRow(t),this._addToSelection(n.getGuid())):o&&(this.deselectRow(t),this._removeFromSelection(n.getGuid())),this._shareWidgetSelection()}}},triggerDefaultAction:function(e){var t=this._getObjectFromNode(e);t&&this._defaultButtonWidget&&this._defaultButtonWidget.isConditionallyVisible()&&(this.deselectAll(),this._gridState.selectable&&(this.selectRow(e),p.clearSelection()),this._addToSelection(t.getGuid()),this.eventControlBarButtonClicked(this._defaultButtonWidget.domNode),this._gridState.selectable||this.deselectAll())},eventControlBarButtonClicked:function(e){var t=e.getAttribute("data-mendix-id"),n=this._gridConfig.getActionsByKey(t);"ActionSelected"===n.actionCall?n.actionCall="EditSelection":"Create"===n.actionCall&&(n.actionCall="InsertNew");var r="action"+n.actionCall;if(!this[r])throw new b("Called function '"+r+"' does not exist in this component");this[r](n.params)},actionInvokeAction:function(e){this.triggerPluginEvent("invokeAction",null,T.hitch(this,"invokeAction",e))},_clearSelection:function(){this.selection=[],this._gridState.invertedSelection=!1},_isMultiSelect:function(){return["multi","simplemulti"].includes(this._gridState.selectionmode)},_getSelectionForAction:function(e,t){const n=this;if("openPage"===e.type)return r(n._dataSource.getObjects());switch(t){case"selection":return this._dataSource instanceof C?this._gridState.invertedSelection?function(){const e=n._dataSource.getSetSize()-n.selection.length,t=n._dataSource.getCurrentXPath();if(0===e)return;const r=(n.selection||[]).map((e=>`id!="${e}"`)).join(" and ");return{xpath:t+(r?`[${r}]`:""),sort:n._dataSource.getSortSettings()}}():function(){const e=n._dataSource.getObjects(),t=n.selection.map((t=>e.find((e=>e.getGuid()===t))||m.fromJson({guid:t,objectType:n.entity,attributes:{}})));return t.length?n._isMultiSelect()?{objects:t}:{object:t[0]}:void 0}():r(n._dataSource.getAllObjects());case"allpages":if(this._dataSource instanceof C){const e=this._dataSource.getCurrentXPath(),t=this._dataSource.getSortSettings();return e?{xpath:e,sort:t}:{guids:[],sort:t}}return{objects:this._dataSource.getAllObjects()};default:return{}}function r(e){const t=e.filter((e=>n._gridState.invertedSelection!==n.selection.includes(e.getGuid())));return t.length?n._isMultiSelect()?{objects:t}:{object:t[0]}:void 0}},invokeAction:function(e){const t=this,n=e.action,r={abortOnClientValidations:"callMicroflow"===n.type,abortOnServerValidations:"callMicroflow"===n.type,origin:this.mxform,extraParams:{},context:this.mxcontext,callback:function(){t._destroyed||e.maintainSelection||"singleandmaintain"===t._gridState.selectionmode||(t.deselectAll(),t._shareWidgetSelection())}};for(const e of Object.values(n.argMap).filter((e=>{let{widget:t}=e;return t===this.mxid}))){const t=this._getSelectionForAction(n,e.source);if(!t)return void window.mx.ui.showMessage("info",y("mxui.widget.DataGrid","no_selection"));Object.assign(r.extraParams,{[this.mxid+"|"+e.source]:t})}function i(){window.mx.ui.execute(n,r)}this.actDeferSyncAction?this.actDeferSyncAction(i):i()},actionReturnSelection:function(e){this._sharePageSelection(),x({operationId:e.operationId,syncAutomatically:!1,closePage:!0},{currentForm:this.mxform}).catch((e=>{e instanceof _||$(e)}))},controlNode:null,_setToolbarAttr:function(e){for(var t,n=0;t=this._toolWidgets[n++];)t.set("disabled",e)},buildControlBar:function(){this._gridState.controlbar||this._gridState.pagingbar!==L.no||(this.controlNode.style.display="none"),this.buildToolBar(),this.buildPagingBar()},buildToolBar:function(){this._toolWidgets=[],this._gridState.controlbar||(this.toolBarNode.style.display="none");var e=this._gridConfig.gridTools(),t=document.createDocumentFragment(),n=this._gridConfig.getDefaultButton();for(var r in e){var i=e[r],o={mxid:i.mxid,caption:i.caption,title:i.title,onClick:T.hitch(this,(function(e){this.eventControlBarButtonClicked(e.currentTarget)}
7)),cssClasses:"mx-name-"+i.name+(i.cssClass?" "+i.cssClass:""),cssStyle:i.cssStyle,alwaysHidden:i.alwaysHidden};i.iconClass?o.iconClass=i.iconClass:i.iconUrl&&(o.iconUrl=i.iconUrl);var a=new d(o),s=a.domNode;n&&i.mxid===n.mxid&&(this._defaultButtonWidget=a),a.applyContext(this.mxcontext),this._toolWidgets.push(a),e[r].gridFunction&&(s.setAttribute("gridFunction",e[r].gridFunction),s.setAttribute("param",e[r].param),e[r].background&&s.setAttribute("background-job",e[r].background),e[r].progress&&s.setAttribute("progress",e[r].progress),e[r].message&&s.setAttribute("message",e[r].message)),r>0&&(e[r-1]._nextNode=s),e[r]._domNode=s,t.appendChild(s),a.startup()}this.toolBarNode.appendChild(t),p.disableSelection(this.toolBarNode),this._toolWidgets.length&&I.enableRoving(this.toolBarNode,M.LeftRight)},buildPagingBar:function(){if(this._gridState.pagingbar!==L.no){this.pagingBarNode.setAttribute("aria-label",y("mxui.widget.Grid.a11y","navigation_aria_label"));var e=this.isLeftToRight(),t=document.createDocumentFragment(),n=p.create;this.btFirst=new u({iconClass:e?"glyphicon glyphicon-step-backward":"glyphicon glyphicon-step-forward",onClick:T.hitch(this,"eventPagingFirstClicked"),class:"mx-name-paging-first","aria-label":y("mxui.widget.Grid.a11y","first_page")}),t.appendChild(this.btFirst.domNode),this.btPrevious=new u({iconClass:e?"glyphicon glyphicon-backward":"glyphicon glyphicon-forward",onClick:T.hitch(this,"eventPagingPreviousClicked"),class:"mx-name-paging-previous","aria-label":y("mxui.widget.Grid.a11y","previous_page")}),t.appendChild(this.btPrevious.domNode),this._pagingStatusNode=n("div",{class:"dijitInline "+this.css.pagingStatus,"aria-hidden":"true"}),t.appendChild(n("#",this._pagingStatusNode," ")),this._pagingStatusNodeSrOnly=n("span",{class:"sr-only",tabindex:"0"}),t.appendChild(n("#",this._pagingStatusNodeSrOnly," ")),this.btNext=new u({iconClass:e?"glyphicon glyphicon-forward":"glyphicon glyphicon-backward",onClick:T.hitch(this,"eventPagingNextClicked"),class:"mx-name-paging-next","aria-label":y("mxui.widget.Grid.a11y","next_page")}),t.appendChild(this.btNext.domNode),this._gridState.pagingbar===L.yesWithTotalCount&&(this.btLast=new u({iconClass:e?"glyphicon glyphicon-step-forward":"glyphicon glyphicon-step-backward",onClick:T.hitch(this,"eventPagingLastClicked"),class:"mx-name-paging-last","aria-label":y("mxui.widget.Grid.a11y","last_page")}),t.appendChild(this.btLast.domNode)),this.pagingBarNode.appendChild(t),p.disableSelection(this.pagingBarNode),I.enableRoving(this.pagingBarNode,M.LeftRight)}else this.pagingBarNode.style.display="none"},updatePagingStatus:function(){if(this._gridState.pagingbar!==L.no){var e=this._dataSource.getStatusMessage();p.text(this._pagingStatusNode,e),p.text(this._pagingStatusNodeSrOnly,y("mxui.widget.Grid.a11y","page_status")+" "+e),this._dataSource.atBeginning()?(this.btFirst.set("disabled",!0),this.btPrevious.set("disabled",!0)):(this.btFirst.set("disabled",!1),this.btPrevious.set("disabled",!1)),this._dataSource.hasMoreItems()?(this.btNext.set("disabled",!1),this.btLast&&this.btLast.set("disabled",!1)):(this.btNext.set("disabled",!0),this.btLast&&this.btLast.set("disabled",!0))}},eventPagingFirstClicked:function(){this._dataSource.atBeginning()||this._dataSource.first((()=>this.refreshGrid()))},eventPagingPreviousClicked:function(){this._dataSource.atBeginning()||this._dataSource.previous((()=>this.refreshGrid()))},eventPagingNextClicked:function(){this._dataSource.hasMoreItems()&&this._dataSource.next((()=>this.refreshGrid()))},eventPagingLastClicked:function(){this._dataSource.atEnd()||this._dataSource.last((()=>this.refreshGrid()))},_searchElements:null,_searchFilled:!1,searchArgumentNode:null,searchControlNode:null,_searchGetConstraints:function(){var e="",t=[];return N.forEach(this._searchElements,(function(e){var n=e.get("query");""!==n&&t.push(n)})),t.length&&(e="["+t.join(" and ")+"]"),e+this._gridState.xpathConstraint},buildSearchBlock:function(){var e=this.searchButton=new u({caption:y("mxui.widget.DataGrid","search"),onClick:T.hitch(this,"eventSearchActivated"),class:"btn-default mx-name-search "+this.css.searchButton});this.searchControlNode.appendChild(e.domNode);var t=this.resetButton=new u({caption:y("mxui.widget.DataGrid","reset"),onClick:T.hitch(this,"eventSearchResetClicked"),class:"btn-default mx-name-reset "+this.css.resetButton});this.searchControlNode.appendChild(t.domNode);var n=document.createDocumentFragment();this._searchElements=N.map(this._gridConfig.searchBarItems(),T.hitch(this,(function(e){const t=new g({mxcontext:this.mxcontext});t.setConstraints([]);var r=new l(T.mixin({entity:this.entity,mxcontext:t,friendlyId:`${this.friendlyId} (search input ${e.caption})`},e));return this.connect(r,"onKeyUp","eventSearchActivated"),n.appendChild(r.domNode),r.startup(),r}))),this.searchArgumentNode.appendChild(n)},buildSearchBar:function(){if(!this._gridState.searchbar)return this.searchNode.style.display="none",void(this._searchFilled=!0);var e=this._gridConfig.searchBarConfig();this._gridState.searchBarVisible=this.getState("searchBarVisible",!e.toggledByDefault),this._gridState.searchBarTogglable=!!e.toggleable,this.buildSearchBlock(),this._gridState.searchBarVisible||(this.searchNode.style.display="none"),this.checkSearchFields()},eventSearchActivated:function(e){A.stop(e),("click"===e.type||13===e.keyCode&&!e.shiftKey)&&(this.checkSearchFields(),this.constraintsFilled()&&(this.searchButton.set("disabled",!0),this._dataSource.setConstraints(this._searchGetConstraints()).reload((()=>{this.shouldPreserveSelection||this._clearSelection(),this.refreshGrid(),this.triggerOnSearchChanged&&this.triggerOnSearchChanged(),this.searchButton.set("disabled",!1)}))))}
7,eventSearchResetClicked:function(){this._searchElements.forEach((e=>e.reset())),this.checkSearchFields(),this.constraintsFilled()&&this._dataSource.setConstraints(this._searchGetConstraints()).reload((()=>{this.refreshGrid(),this.triggerOnSearchChanged&&this.triggerOnSearchChanged()}))},checkSearchFields:function(){if(!this._gridConfig.gridSetting("waitforsearch"))return this._searchFilled=!0,void(this.messageNode.style.display="none");this._searchFilled=N.some(this._searchElements,(function(e){return""!==e.get("query")})),this._searchFilled?(this.messageNode.innerHTML="",this.messageNode.style.display="none"):(this.messageNode.innerHTML=y("mxui.widget.DataGrid","waitForSearch"),this.messageNode.style.display="")},constraintsFilled:function(){return this._searchFilled},reload:function(e){this.constraintsFilled()&&this._dataSource.reload((()=>{this.refreshGrid(),e&&e()}))},actionToggleSearch:function(){if(this._gridState.searchBarVisible=!this._gridState.searchBarVisible,this._gridState.searchBarVisible)if(this._searchWipeIn=this._searchWipeIn||E.wipeIn({node:this.searchNode,duration:200,onEnd:()=>{setTimeout((()=>this.resize(this._resizeBox)),0),N.some(this._searchElements,(e=>!e.get("hidden")&&(e.focus(),!0)))}}),this._isSearchFieldsInitialized)this._searchWipeIn.play();else{const e=window.mx.ui.showProgress();this.reinitSearchFields((()=>{window.mx.ui.hideProgress(e),this._searchWipeIn.play()})),this._isSearchFieldsInitialized=!0}else this._searchWipeOut=this._searchWipeOut||E.wipeOut({node:this.searchNode,duration:200,onEnd:()=>{setTimeout((()=>this.resize(this._resizeBox)),0),this._searchElements.forEach((e=>e.cleanup()))}}),this._searchWipeOut.play()},applyContext:function(e,t){if(null!=this._metaEntity){if(this.mxcontext.hasTrackId()||this.restorePagingData(e),this.cloneContext(e),this.setUpdateInterval(),N.forEach(this._toolWidgets,(function(e){e.applyContext(this.mxcontext)}),this),this._searchElements){const e=new g({mxcontext:this.mxcontext});e.setConstraints([]),this._searchElements.forEach((t=>t.applyContext(e)))}this._gridState.xpathConstraint="";var n=this.mxcontext.getParam("xpathConstraint");if(n&&(this._gridState.xpathConstraint+=n),this.registerSubscriptions(),this._gridState.inDenial)t();else{var r=this._gridState.searchBarVisible?[this.reinitSearchFields]:[];r.push((function(e){if(this.constraintsFilled()){if(this._dataSource.setConstraints){var t=this._previousSearchConstraints?this._previousSearchConstraints:this._searchGetConstraints();this._previousSearchConstraints="",this._dataSource.setConstraints(t)}this._dataSource.setOffset(this.getState("pageOffset",0)).reload(e)}else this._clearSelection(),this._dataSource.clean(),e&&e()})),this.sequence(r,(function(){this.shouldPreserveSelection||(this.selection=this.getState("selectedGuids",[]),this._gridState.invertedSelection=this.getState("invertedSelection",!1),this.filterSelected()),this.refreshGrid(),t()}),this)}}else t&&t()},reinitSearchFields:function(e){var t=this._restoreSearchState&&this.getState("searchInput")||{};this._restoreSearchState=!1,this.collect(this._searchElements.map((e=>n=>function(e,n){e.reinit((()=>{e.searchInputName in t&&e.set("value",t[e.searchInputName]),n()}))}(e,n))),(()=>{this.checkSearchFields(),e()}))},filterSelected:function(){this.selection=N.filter(this.selection,(function(e){return null!=this._dataSource.getObject(e)}),this)},update:function(e,t){!this._gridState.inDenial&&this.constraintsFilled()&&this._dataSource.reload((()=>{this.filterSelected(),this.refreshGrid()}))},refreshGrid:function(){this._dataSource.afterEnd()?this._dataSource.first((()=>this.refreshGrid())):(this.updatePagingStatus(),this.fillGrid(),this.resizeGrid())},resize:function(e){var t=!1;if(e){var n=R.getMarginBox(this.domNode),r=R.getMarginBox(this.contentNode),i=e.h-(n.h-r.h);i>p.minContainerHeight&&(k.set(this.contentNode,"height",i+"px"),t=!0,this.headTable&&k.set(this.headTable,"top","0px"))}this.contentNode.style.overflow=t?"auto":"",t||k.set(this.contentNode,"height","auto"),this._resizeBox=e},onHide:function(){N.forEach(this._searchElements,(function(e){e.cleanup()}))},storeState:function(e){if(!this._dataSource)return;e("searchBarVisible",this._gridState.searchBarVisible),e("searchConstraints",this._dataSource.getConstraints&&this._dataSource.getConstraints()),e("pageOffset",this._dataSource.getOffset()),this._gridState.selectable&&(e("selectedGuids",this.selection),e("invertedSelection",this._gridState.invertedSelection)),this._dataSource.getSortSettings&&e("sortOptions",this._dataSource.getSortSettings());var t={};
7N.forEach(this._searchElements,(function(e){t[e.searchInputName]=e.get("value")})),e("searchInput",t);const n=this.getPagingObject(this.mxcontext);n&&(n.get("IsSortable")&&e("sortOptions",[[n.get("SortAttribute"),n.get("SortAscending")?"asc":"desc"]]),e("pageNumber",n.get("PageNumber")))},getPagingObject:function(e){return window.mx.data.getCachedObject(e.getContext("System.Paging"))},setPagingSort:function(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e.set("SortAttribute",t),e.set("SortAscending","asc"===n),e.set("PageNumber",1),r&&window.mx.data.commit({mxobjs:[e],callback:()=>{}})},restorePagingData:function(e){const t=this.getPagingObject(e);if(t){if(t.get("IsSortable")){const e=this.getState("sortOptions",this._gridConfig.gridSetting("sortparams")),n=e&&e[0];if(n){const[e,r]=n;this.setPagingSort(t,e,r,!1)}else this.updateSortIcons&&this.updateSortIcons(t.get("SortAttribute"),t.get("SortAscending"))}const e=this.getState("pageNumber");e&&t.set("PageNumber",e)}},uninitialize:function(){this.clearInterval(),I.disableRoving(this.toolBarNode),I.disableRoving(this.pagingBarNode),h.destroyWidgetsIn(this.searchControlNode),h.destroyWidgetsIn(this.toolBarNode),h.destroyWidgetsIn(this.pagingBarNode),this.itemNode&&h.destroyWidgetsIn(this.itemNode),this._dataSource&&this._dataSource.destroy(),this._destroySelection(),N.forEach(this._searchElements,(function(e){e.destroy()}))}});e.exports=B},1837:(e,t,n)=>{const r=n(9662),i=n(4525),o=n(4296),a=n(2153),s=n(8007),c=n(2496),l=n(1120),u=n(7136),d=n(7805),f=n(9801);var h=u([d._MasterTooltip,r],{declaredClass:"mxui.widget._MasterTooltip",constructor:function(){this.templateString=f},postCreate:function(){this.inherited(arguments),this.connect(window.mx.ui,"resize",this.resize)},show:function(e,t,n){var r=this.contentNode,i=this.prepareNode;if(e){if(r.style.display="block",i.style.display="none","string"==typeof e)r.innerHTML=e;else if(null!=e.nodeName){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(e)}}else r.style.display="none",i.style.display="block";this.inherited(arguments,[e,t,n]),s.add(this.domNode,"mx-tooltip"),e&&this.resize()},_onHide:function(){this.inherited(arguments),this.onHide(),this.destroy()},onHide:function(){},resize:function(){var e=a.getBox().h-parseInt(this.domNode.style.top);o.forEach([this.domNode,this.contentNode.parentNode],(function(t){var n=c.getComputedStyle(t),r=l.getMarginExtents(t,n),i=l.getBorderExtents(t,n);e-=r.h+i.h})),this.contentNode.style.maxHeight=e+"px",this.domNode.style.width="auto",i.resizeWidgetsIn(this.contentNode,!0)}});e.exports=h},6461:(e,t,n)=>{const r=n(7074),i=n(9795),o=n(5034),a=n(8849),s=n(6466),c=n(1948),l=n(1015),u=n(5408),d=n(2153),f=n(2496),h=n(1120),p=n(3869),g=n(6618);var m=n(7136)([r,i],{delay:200,_mover:null,_resizer:null,_prevBox:null,_maximized:!1,_visible:!1,_minWidth:300,_minHeight:200,_margin:20,_mutationObserver:null,_preferredBox:null,getLayerName:function(){return"popup"},getPositionName:function(){return"stack"},getViewport:function(){return d.getBox()},setModalMode:function(e){this.domNode.setAttribute("aria-modal",e?"true":"false")},buildRendering:function(){this.capture(this.domNode,"mousedown",(function(){c.focus(this)})),this.domNode.setAttribute("tabindex",-1),this.connect(this.domNode,"keyup",(function(e){e.keyCode!==u.ESCAPE||"SELECT"===e.target.nodeName||e.target.getAttribute("data-handles-escape")||document.body.hasAttribute("data-disable-interaction")||window.setTimeout((()=>{o.setFocus(this.domNode),this.onClose()}),0)})),this._mutationObserver=new MutationObserver((e=>this._detectResizeNeeded(e))),this._mutationObserver.observe(this.domNode,{childList:!0,subtree:!0,characterData:!0})},postCreate:function(){this.createBackgroundIframe(),this._mover=new a(this.domNode,{handle:this._headerNode,margin:this._margin,delay:5}),this.connect(this._mover,"onMoveStart",(function(e){if(this._maximized){var t=this._prevBox;this.resize({l:e.pageX-t.w/2,w:t.w,h:t.h})}})),this.connect(this._mover,"onMoveStop",(function(){this._setPreferredBox()})),c.add(this),this._setDimensions({})},show:function(e,t){this.setModalMode(e),c.show(this,e,t),this.connect(window.mx.ui,"resize",(function(){this.resize({...this._preferredBox},!0,!1)}))},onBeforeShow:function(){this._visible=!0;var e=l.getNodeExtents(this.domNode);this._minWidth+=e.w,this._minHeight+=e.h,this.resizable&&(this._resizer=new s(this.domNode,{margin:this._margin,resizer:g.hitch(this,"resize"),minWidth:this._minWidth,minHeight:this._minHeight}),this.connect(this._headerNode,"dblclick",(function(){this.maximize()})))},onShow:function(e){this.delay?p.fadeIn({node:this.domNode,duration:this.delay,onEnd:e}).play():(f.set(this.domNode,"opacity",1),e())},onAfterShow:function(){this._setPreferredBox()},hide:function(e){return c.hide(this,e)},onHide:function(e){this.delay?p.fadeOut({node:this.domNode,duration:this.delay,onEnd:e}).play():e()}
7,center:function(){var e=this.domNode,t=h.getMarginBox(e),n=this.getViewport();f.set(e,{top:Math.max(0,.7*(n.h/2-t.h/2))+"px",left:Math.max(0,n.w/2-t.w/2)+"px"})},maximize:function(e){if(this._maximized&&!e)this._maximized=!1,this.resize(this._prevBox);else{var t=this.getViewport(),n=e?this._prevBox:h.getMarginBox(this.domNode);this.resize({t:0,l:0,w:t.w,h:t.h}),this._prevBox=n,this._maximized=!0}},_setDimensions:function(e){var t=this._getMaximumSize(),n=g.mixin(h.getMarginBox(this.domNode),e);n.w>t.w&&(e.w=t.w),n.h>t.h&&(e.h=t.h),e.w&&(this.domNode.style.width=e.w+"px"),this._visible&&(e.h&&(this.domNode.style.height=e.h+"px"),(e.w||e.h)&&this.layout())},_detectResizeNeeded:function(e){this.domNode.parentNode&&(e.every((function(e){const{type:t,target:{nodeType:n,tagName:r,parentElement:i}}=e;return!("characterData"!==t||3!==n||!i||"textarea"!==i.tagName.toLowerCase())||"childList"===t&&1===n&&"textarea"===r.toLowerCase()}))||this._visible&&!this._mover._moving&&this.resize())},resize:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this._visible){if(this._maximized){if(t)return void this.maximize(!0);this._maximized=!1}e=e||{},this._setDimensions(e),e.l&&(this.domNode.style.left=e.l+"px"),e.t&&(this.domNode.style.top=e.t+"px"),this.moveIntoView(),n&&this._setPreferredBox()}},moveIntoView:function(){l.moveIntoView(this.domNode,this._margin)},uninitialize:function(){this._mover.destroy(),this._resizer&&this._resizer.destroy(),this._mutationObserver.disconnect()},_getMaximumSize:function(){var e=this.getViewport();return{w:e.w-2*this._margin,h:e.h-2*this._margin}},_setPreferredBox:function(){this._preferredBox=h.getMarginBox(this.domNode)}});e.exports=m},548:(e,t,n)=>{const r=n(6618),i=n(4296),o=n(7074);var a=n(7136)(o,{config:null,fixed:!1,_regions:null,_mutationObserver:null,startup:function(){this._regions={},i.forEach(this.domNode.children,(function(e,t){var n=this.config[t],i=e.children[0];this._regions[n.position]=r.mixin({node:e,wrapper:i},n)}),this),this._mutationObserver=new MutationObserver((()=>this._detectResizeNeeded())),this._mutationObserver.observe(this.domNode.parentNode,{childList:!0,subtree:!0,characterData:!0})},_detectResizeNeeded:function(){if(!this.domNode.parentNode)return;let e=!1;for(const t in this._regions){const n=this._regions[t],{wrapper:r,lastPosition:i}=n,{offsetTop:o,offsetLeft:a}=r;if(n.lastPosition={top:o,left:a},!i||i.top!==o||i.left!==a){e=!0;break}}e&&this.mxform.resize()},_resizeRegions:function(e,t){for(var n in e){var r=e[n].wrapper;if(null!=t){var i=t>=100,o=Math.max(0,t)+"px";this.fixed?(r.style.height=i?o:"auto",this.resizeChildren(r,!i)):(r.style.minHeight=i?o:"",this.resizeChildren(r,!0))}else r.style.height="auto",this.resizeChildren(r,!0)}},uninitialize:function(){this._mutationObserver.disconnect()}});e.exports=a},987:(e,t,n)=>{const r=n(1015),i=n(5603),o=n(4296),a=n(3033),s=n(9724),c=n(6275),l=n(9488),u=n(6618),d=n(7136),{LogManager:f}
7=n(7606),{methodToPromise:h}=n(5991),{handleError:p}=n(1881),g=f.get().getLogger();a.prototype.destroy=function(e){this._beingDestroyed=!0,this.uninitializer&&this.uninitializer();try{this.uninitialize()}catch(e){throw new Error(`${this.friendlyId}: Error while uninitialize ${e}`)}function t(t){t.destroyRecursive?t.destroyRecursive(e):t.destroy&&t.destroy(e)}l.forEach(this._connects,u.hitch(this,"disconnect")),l.forEach(this._supportingWidgets,t),this.domNode&&l.forEach(s.findWidgets(this.domNode),t),this.destroyRendering(e),s.remove(this.id),this._destroyed=!0};var m=d(null,{applyContext:function(e,t){if(this.mxcontext=e,this.isContainer)this.applyContextRecursive(t);else if("function"==typeof this.update){var n=e.getTrackObject(),r=e.getTrackId();n?this.update(n,t):r?window.mx.data.get({guid:r,callback:function(e){e||g.error(`${this.friendlyId}: Error while fetching object with guid ${r}`),this.update(e,t)},error:function(e){p(e),this.update(null,t)}},this):this.update(null,t)}else t&&t()},applyContextRecursive:function(e){var t=s.findWidgets(this.domNode);0!==t.length?this.callFetchOnChildren(this.mxcontext,t,e):e&&e()},patchChildImpl:function(e){null==e.applyContext&&(e.constructor?u.extend(e.constructor,m.prototype):u.mixin(e,m.prototype))},callFetchOnChildren:function(e,t,n){var r=this.id,i=[],a=null;this.createContext?(a=this.createContext()).dupFrom(e):a=e,a.freeze(),l.forEach(t,(function(e,t){this.patchChildImpl(e),i.push((function(n){var i=function(){try{e.applyContext(a,n)}catch(t){g.error(r+".applyContextRecursive: ERROR:"+e.id+": "+t.message,t),n()}};(t+1)%10==0?setTimeout(i,0):i()}))}),this);var s=u.hitch(window.mx.ui,"cleanContext",a.ident,this);o.sequence(i,(function(){s(),n&&n()}))},isLoadedRecursive:function(e,t){var n=c("[widgetId]",null!=t?t:this.domNode).map(s.byNode),r=[];this.id,l.forEach(n,(function(e){e.addOnLoad&&r.push((function(t){e.addOnLoad(t)}))})),o.collect(r,(function(){e&&e()}))}}),v=d([m,i],{declaredClass:"mxui.widget._Widget",_mx_:!0,_loaded:!1,_loadCalls:null,_destroyCalls:null,_liveConnects:null,_subscriptions:null,mxid:"",uniqueid:"",friendlyId:"",content_id:"",tabIndex:"",focusIndex:"",isInactive:!1,attributeMap:u.delegate(a.prototype.attributeMap,{mxid:"",isInactive:"",focusIndex:""}),constructor:function(){this._loadCalls=[],this._destroyCalls=[],this._liveConnects=[],this._subscriptions=[],this.initSubscriptionSuspendable()},_getDisabledAttr:function(){return this.isInactive},_setDisabledAttr:function(e){this.isInactive=!!e},loaded:function(){this._loaded=!0;for(var e=this._loadCalls;0!==e.length;)e.shift()();return this.loaded=function(){return!1},!0},actLoaded:function(e){this.loaded(),e&&e()},isLoaded:function(){return this._loaded},addOnLoad:function(e){this._loaded?e():this._loadCalls.push(e)},addOnDestroy:function(e){this._destroyCalls.push(e)},subscribe:function(e){const t=this.inherited(arguments,[Object.assign({tag:this.friendlyId},e)]);return this._subscriptions.push(t),t},unsubscribe:function(e){this.inherited(arguments),this._subscriptions=this._subscriptions.filter((t=>t!==e))},removeSubscriptions:function(){this._subscriptions.forEach((e=>this.unsubscribe(e)))},liveConnect:function(e,t,n){this._liveConnects.push(r.liveConnect(e,t,this,n))},liveDisconnect:function(e){for(var t,n=this._liveConnects,i=0;t=n[i];i++)if(t==e)return r.liveDisconnect(e),void n.splice(i,1)},domData:function(){return this.domData=r.getScopedData(),this.domData.apply(this,arguments)},markupFactory:function(e,t,n){var i=r.getTabIndex(t);return i&&(e.focusIndex=i),e.content_id=e.content_id?e.content_id:t.getAttribute("content_id"),new n(e,t)},resizeContent:function(){this.mxform.resize()},disposeContent:function(){h(this.mxform,"close")},getTitle:function(){return this.mxform.getTitle()},getUIPlace:function(){return this.mxform.place},getContent:function(){return this.content_id},objectUpdate:function(e,t){2==this.objectUpdateNotification.length?this.objectUpdateNotification(e,t):(this.objectUpdateNotification(e),t&&t())},objectUpdateNotification:function(e){},validationUpdate:function(){return this.refresh()},sequence:function(e,t){o.sequence(e,t,this)},collect:function(e,t){o.collect(e,t,this)},resize:function(e){},uninitialize:function(){if(v.prototype.isLoaded.call(this)){this.removeSubscriptions();for(var e=this._liveConnects,t=this._destroyCalls;e.length;)r.liveDisconnect(e.pop());for(;t.length;)t.shift().call(this)}else g.error("Widget "+this.friendlyId+" was not loaded before uninitialize, check the structure of the widget"),this.addOnLoad((()=>{try{this.uninitialize()}catch(e){g.error(`${this.friendlyId}: ERROR when calling uninitialize`,e)}}))}});e.exports=v}
7,7074:(e,t,n)=>{const{NO_TRANSLATION:r,translate:i}=n(2749),{toFriendlyId:o}=n(3282),{LogManager:a}=n(7606),s=n(1015),c=n(4525),l=n(708),u=n(5603),d=n(4296),{MxContext:f}=n(2959),h=n(4550),p=n(9724),g=n(2860),m=n(9488),v=n(6618),y=n(7136),b=a.get().getLogger();var w=y([h,u],{declaredClass:"mxui.widget._WidgetBase",mxid:"",uniqueid:"",friendlyId:"",mxform:null,mxcontext:null,doParse:!0,readOnly:!1,ignoreUpdates:!1,autoLoad:!0,_loaded:!1,_destroyed:!1,_disabled:!1,_cachedDisabled:!1,_loadCalls:null,_destroyCalls:null,_listeners:null,_subscriptions:null,"-chains-":{constructor:"after",uninitialize:"before"},constructor:function(e,t){this._loadCalls=[],this._destroyCalls=[],this._listeners=[],this._subscriptions=[],this.friendlyId=o((e||{}).mxid||""),this.mxcontext=new f,this.autoLoad&&this.set("loaded",!0),this._cachedDisabled=this.readOnly,this.initSubscriptionSuspendable()},getTemplate:function(e){return window.mx.ui.getTemplate(this.mxid,e)},parseContent:function(e,t,n){var r={mxform:this.mxform,validator:this.validator,ignoreUpdates:this.ignoreUpdates};return this.readOnly&&(r.readOnly=!0),this.doParse?l[n?"parseTopLevel":"parse"](e||this.domNode,v.mixin(r,t),this.uniqueid):[]},getChildren:function(e){return e?c.getDescendantWidgets(this.domNode):p.findWidgets(this.domNode)},resizeChildren:function(e,t){return c.resizeWidgetsIn(e,t)},applyContext:function(e,t){var n=this.mxcontext;if(n.mixin(e),"function"==typeof this.update){var r=this;window.mx.data.getObjectFromContext(n,(function(e){try{r.update(e,t)}catch(e){throw new Error(`${r.friendlyId}: Error while applying context ${e}`)}}))}else{var i=p.findWidgets(this.domNode);this.passContext(i,e,t)}},passContext:function(e,t,n){"function"==typeof t?(n=t,t=this.mxcontext):t=t||this.mxcontext,c.applyContext(e,t,v.hitch(this,n))},subscribe:function(e){if(this.ignoreUpdates)return;const t=this.inherited(arguments,[Object.assign({tag:this.friendlyId},e)]);return this._subscriptions.push(t),t},unsubscribe:function(e){this.ignoreUpdates||(this.inherited(arguments),this._subscriptions=this._subscriptions.filter((t=>t!==e)))},unsubscribeAll:function(){this._subscriptions.forEach((e=>this.unsubscribe(e)))},listen:function(e,t){var n=this.mxform.listen(e,v.hitch(this,t));return this._listeners.push(n),n},unlisten:function(e){for(var t,n=this._listeners,r=0;t=n[r];r++)if(t==e){this.mxform.unlisten(e),n.splice(r,1);break}},capture:function(e,t,n){var r=s.capture(e,t,v.hitch(this,n));this.addOnDestroy(r.remove)},collect:function(e,t){d.collect(e,t,this)},sequence:function(e,t){d.sequence(e,t,this)},translate:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i(this.declaredClass,e,...n)},translateWithFallback:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];const s=i(this.declaredClass,e,...o);return s===r?t:s},domData:function(){return this.domData=s.getScopedData(),this.domData.apply(this,arguments)},checkDisabled:function(){return this.readOnly||this._disabled},updateDisabled:function(){this.set("disabled",void 0)},_getDisabledAttr:function(){return this._cachedDisabled},_setDisabledAttr:function(e){null!=e&&(this._disabled=!!e),(e=this.checkDisabled())!==this._cachedDisabled&&(this._cachedDisabled=e,e?this.disable():this.enable())},enable:function(){},disable:function(){},resize:function(e){this.resizeChildren(this.domNode,!e)},_setMxidAttr:function(e){g.set(this.domNode,"data-mendix-id",e)},_setFocusIndexAttr:function(e){null!=e&&g.set(this.domNode,"data-focusindex",e)},_getLoadedAttr:function(){return this._loaded},_setLoadedAttr:function(e){if(this._loaded=!!e,e)for(var t=this._loadCalls;t.length;)t.shift()()},actLoaded:function(e){this.set("loaded",!0),e&&e()},addOnLoad:function(e){this._loaded?e():this._loadCalls.push(e)},addOnDestroy:function(e){this._destroyed?e():this._destroyCalls.push(e)},destroy:function(e){this._beingDestroyed=!0;try{this.uninitialize()}catch(e){throw new Error(`${this.friendlyId}: Error while uninitialize ${e}`)}function t(t){t.destroyRecursive?t.destroyRecursive(e):t.destroy&&t.destroy(e)}m.forEach(this._connects,v.hitch(this,"disconnect")),m.forEach(this._supportingWidgets,t),this.domNode&&m.forEach(p.findWidgets(this.domNode),t),this.destroyRendering(e),p.remove(this.id
7),this._destroyed=!0},destroyRendering:function(){var e=this.domNode,t=this.srcNodeRef;this.inherited(arguments,[!0]),e&&s.orphan(e),this.domNode=e,this.srcNodeRef=t},uninitialize:function(){if(this._loaded){for(var e=this._listeners,t=this._destroyCalls;e.length;)this.mxform.unlisten(e.pop());for(this.unsubscribeAll();t.length;)t.shift().call(this)}else b.error(this.friendlyId+": attempt to uninitialize widget that is not loaded yet, check widget structure"),this.addOnLoad((()=>{try{this.uninitialize()}catch(e){throw new Error(`${this.friendlyId}: Error while uninitialize ${e}`)}}))}});e.exports=w},1374:(e,t,n)=>{const{AssertionError:r}=n(234),{formatNumber:i}=n(1021),o=n(1015),a=n(6618),s=n(3302);var c=o.create;e.exports=function(e){var t=e.parent,n=e.config;if(!t&&"DataGrid"!=t.widgetType)throw new r("Can only register to DataGrid!");var o={onRefresh:"plugineventOnRefresh"},l={},u=t.getEntityProperties();for(var d in this.plugineventOnRefresh=function(){t.constraintsFilled()?function(e){if(e){for(var r=0,o=t.getHiddenAggregates().reverse(),a=0;a<o.length;a++)e.splice(o[a],1);for(var c,d=0;c=u[d];d++){var f=c.tag;if(n[f]){var h=e[r++],p=u[d].display,g=p.precision;if(null==h)continue;""==h&&(h=new s(0)),n[f].usesPrecision||(g=0),l[d].innerHTML=i(h,p.formatted,g)}}}}(t.getAggregates()):function(){for(var e=0;u[e];e++)l[e].innerHTML="&nbsp;"}()},function(){t.showFootNode();var e=c("tr"),r=c("tr");t.gridFootNode.appendChild(e),t.gridFootNode.appendChild(r);for(var i,o,a=null,s=0;o=u[s];s++){var d=o.tag;if(i=c("th"),a=c("td"),t.setColumnStyle(i,o),t.setColumnStyle(a,o),n[d]){i.innerHTML=n[d].title||"";var f=o.render.toLowerCase();n[d].usesPrecision="integer"!==f&&"long"!==f}a.innerHTML="&nbsp;",l[s]=a,e.appendChild(i),r.appendChild(a)}}(),o)t.registerToPluginEvent(d,a.hitch(this,o[d]))}},3866:(e,t,n)=>{const r=n(8646),i=n(1015),o=n(4296),a=n(442).B,s=n(3482).MxObjectSnapshot,{getAttributeEnumerationType:c,getEntityMeta:l,isReferenceAttribute:u}=n(4037),{formatAttribute:d}=n(6598),{getEnumerationOptions:f,translateEnumeration:h}=n(945),{translate:p}=n(2749),{formatDate:g,parseDate:m}=n(8426),{parseNumber:v}=n(1021),y=n(5408),b=n(1178),w=n(503),x=n(6618),{handleError:_}=n(1881);e.exports=function(e){var t="plugins.GridEditor";this._connects=[];var n,S,C=null,E={mxobject:null,subscription:null,node:null,row:-1,key:"",attr:"",attrclass:"",valid:!0,invalidmsg:"",saving:!1},O=e.parent,j=null;t=O.id+"."+t;var k=null,R={},N="",T="",A=!1,P={},D=[],I=function(){j.stopEditing(),j.endEdit(),E.saving&&O.acceptUpdates()},M={onLoad:"plugineventOnLoad",preRefresh:"plugineventPreRefresh",onRefresh:"plugineventOnRefresh",onSync:"plugineventOnSync",onCellClicked:"plugineventCellClicked",onSelectRow:"plugineventSelectRow"},L=function(e){var t=E.mxobject&&E.mxobject.getGuid(),n=e&&e.getGuid();n!==t&&(t&&(window.mx.data.unsubscribe(E.subscription),E.subscription=null,E.mxobject=null),E.valid=!0,E.invalidmsg="",E.saving=!1,n&&(E.subscription=window.mx.data.subscribe({guid:n,tag:O.friendlyId+" (inline editor)"}),e instanceof s&&(e=e.convertToEditable()),E.mxobject=e))},$=function(){return E.mxobject},F=function(e){var t=e.mxObject,n=e.attribute,r=e.value;if("string"!=typeof r&&(r=r.toString()),""==r)return!0;switch(t.getAttributeType(n)){case"Enum":return f(c(t.getEntity(),n)).includes(r);case"Integer":case"Long":return""==r.replace(/^-/,"").replace(/(\,|\.)/g,"").replace(/\d/g,"");case"Date":case"DateTime":return null!=r.match(/^\d+([\/\-.])\d+\1\d+$/)&&void 0!==m(r,{type:"date"});default:return!0}};
7isValid=function(){var e=$();if(!e)return!0;if("active"!=j.getEditorStatus())return!0;if(j.hasChanges()){var t=j.getValue(),n=E.attr;return!!u(C,n)||!!F({mxObject:e,attribute:n,value:t})}return!0},n=function(){var e=$();if(!e)return!1;if(j.hasChanges()){var t=j.getValue(),n=E.attr;if(u(C,n))e.set(n,t);else if(F({mxObject:e,attribute:n,value:t})){let r;switch(E.valid=!0,E.invalidmsg="",E.attrclass){case"Date":case"DateTime":r=""!==t&&m(t,{type:"date"}),r=void 0===r?"":r.getTime();break;case"Enum":default:r=t;break;case"Long":case"Integer":r=v(t),r=void 0===r?"":r;break;case"Decimal":r=v(t,k[E.col].display.precision),r=void 0===r?"":r;break;case"String":case"Text":r=i.unescapeString(t);break;case"Boolean":r="true"===t}e.set(n,r)}else{E.valid=!1,j.undoChanges();var r=E.invalidmsg=p("mendix.lib.Validations","invalid_attribute",t,e.getEntity()+"/"+E.key);window.mx.ui.showMessage("error",r)}}return e.hasChanges()};var B=function(){A&&(O.removeFromSyncDeferQueue(),A=!1)},V=function(e){if(E._def&&(E._def.reject(new Error("")),E._def=null),D=[],E.valid=!1,E.saving=!1,O){O.acceptUpdates();const e=$();var t,n;e&&(null===(t=(n=O).objectUpdate)||void 0===t||t.call(n,e)),B()}};S=function(e){if(e&&D.push(e),!E.saving){var t=$();t&&t.hasChanges()?(O.preventUpdates(),E.saving=!0,function(e){var t=e.getGuid(),n=function(){P[t]&&(window.mx.data.unsubscribe(P[t].sub),window.mx.data.unsubscribe(P[t].val),delete P[t])},r=P[t];r?clearTimeout(r.timer):r=P[t]=new function(){this.objectUpdate=function(t){"object"!=typeof t&&t!=(e&&e.getGuid())&&(clearTimeout(this.timer),n(),window.mx.data.get({xpath:"//"+e.getEntity()+"[id="+t+"]",filter:{id:O.getSchemaId()},callback:function(e){O.updateMxObject(e[0])},error:function(e){_(e)}}))},this.validationUpdate=function(e){E.invalidmsg=e[0].getErrorReason(E.key)}},r.timer=setTimeout(n,5e3),r.sub=window.mx.data.subscribe({guid:t,tag:O.friendlyId+" (inline editor)",callback:x.hitch(r,"objectUpdate")}),r.val=window.mx.data.subscribe({guid:t,val:!0,tag:O.friendlyId+" (inline editor)",callback:x.hitch(r,"validationUpdate")})}(t),window.mx.data.commit({mxobjs:[t],callback:function(){E.valid=!0,E.invalidmsg="",E.saving=!1,E._def&&(E._def.resolve(),E._def=null),O&&(O.acceptUpdates(),B()),o.collect(D)},error:V}
7)):o.collect(D)}};var z=!1,U=[],W=function(e,t){var r,o=i.getAncestorNode(e,"TD");r="div"===e.nodeName.toLowerCase()?e:e.querySelector("div:first-child");const a=(o&&O.domData(o,"row"))!==E.row;if("active"!==j.getEditorStatus()&&"ready"!==j.getEditorStatus()||!a||n()&&S(),r&&o){if(function(e){E.node=e,E.row=O.domData(e,"row"),E.key=O.domData(e,"key"),E.col=O.domData(e,"column"),E.datakey=E.key,E.gridsize=O.getCurrentGridSize();var t=E.key;null!=t.match("/")&&(t=t.split("/")[0]),E.attrclass=C.attributes[t].type,E.attr=t,E.row=parseInt(E.row,10),E.key.match(/\//)&&(E.key=E.key.replace(/^.*\//,"")),L(O.getMxObjectAtRow(E.row))}(o),E.row>=E.gridsize)return;var s,c=E.datakey,l=c.split("/");l.length>1&&(c=l[0],s=l[2]);var m=$();if(k[E.col].editable)if(u(C,c)){var v=function(e){const n=R[E.datakey].source.getObjects(),i=O.createFormatAttributeConfig(k[E.col]),o=n.reduce(((e,t)=>{const n=t.getGuid();return"DateTime"===t.getAttributeType(s)?e[n]=g(t.get(s),{type:"date"}):e[n]=d(t,s,i),e}),{});j.editNode(r,"reference",{selected:m.getReference(c),items:o}),t&&j.startEditing(),e&&e()};z?v():U.push(v)}else switch(C.attributes[c].type){case"Boolean":j.editNode(r,"boolean",{selected:m.get(c)+"",items:{false:p("mxui.common","false"),true:p("mxui.common","true")}}),t&&j.startEditing();break;case"Date":case"DateTime":j.editNode(r,"date");break;case"Enum":const e=C.attributes[c].enumeration;j.editNode(r,"enum",{selected:m.get(c),items:Object.fromEntries(f(e).map((t=>[t,h(e,t)])))}),t&&j.startEditing();break;case"Decimal":j.editNode(r,"text",{hasDecimalPoint:!0});break;default:j.editNode(r,"text")}else"active"!==j.getEditorStatus()||a||S(),I(),L(null)}},q=function(){if(n()&&S(),0!=E.row){var e=O.getCellNode(E.row-1,E.datakey);W(e)}else I(),L(null)},H=function(){if(n()&&S(),E.row!=E.gridsize-1){var e=O.getCellNode(E.row+1,E.datakey);e&&e!=E.node&&W(e)}else I(),L(null)},G=function(){if(E.datakey==N&&0!=E.row)E.datakey=T,q();else if(E.datakey!=N){n();var e=O.getCellNode(E.row,function(){for(var e,t="",n=0;e=k[n];n++){if(n==E.col)return t;e.editable&&(t=e.tag)}}());e&&W(e)}else n()&&S(),I(),L(null)},Z=function(){if(E.datakey==T)E.row!=E.gridsize-1?(E.datakey=N,H()):(n()&&S(),I(),L(null));else if(E.datakey!=T){n();var e=O.getCellNode(E.row,function(){for(var e,t=!1,n=0;e=k[n];n++){if(t&&e.editable)return e.tag;n==E.col&&(t=!0)}}());e&&W(e)}},K=function(){if(E.valid&&n()){S();var e=O.getEntityProperties().find((e=>E.attr===e.tag)),t=d($(),E.attr,O.createFormatAttributeConfig(e));j.startEditing(t),O.setNodeTitle(E.node,void 0,t)}};this.plugineventOnLoad=function(e){O.domNode.className+=" inlineGrid"},this.plugineventOnSync=function(e){j.hasChanges()&&(A||(O.addToSyncDeferQueue(),A=!0),j.stopEditing(),n()?S():B())},this.plugineventOnDestroy=function(e){I(),j.hasChanges()&&n();var t=$();t&&t.hasChanges()&&S()},this.plugineventSelectRow=function(e){var t=e.row,n=O.getCellNode(t,E.datakey||N);n&&W(n)},this.plugineventOnRefresh=function(e){if(0!=O.getCurrentGridSize())switch(j.getEditorStatus()){case"inactive":break;case"active":case"ready":!function(){if(0!=O.getCurrentGridSize()){var e=0,t=$();null!=t&&null==(e=O.getRowForMxObject(t))&&(e=0);var n=O.getCellNode(e,E.datakey||N);n&&W(n)}}()}},this.plugineventPreRefresh=function(e){j.hasChanges()&&n();var t=$();t&&t.hasChanges()&&S(),I()},this.plugineventCellClicked=function(e){j.hasChanges()&&K(),W(e.target,!0),"select"==e.target.nodeName.toLowerCase()?w.stop(e):this._editorClicked=!0},this.editorClickHandler=function(e){this._editorClicked||(E.valid&&n()&&S(),I(),L(null)),this._editorClicked=!1},this.editorKeyHandler=function(e){var t=e.keyCode;switch(j.getEditorStatus()){case"inactive":break;case"ready":switch(t){case 37:G();break;case 38:q();break;case 9:if(e.stopPropagation(),e.preventDefault(),!0===e.shiftKey){G();break}case 39:Z();break;case 40:H();break;case 13:case 18:case 32:case 27:case 113:j.startEditing();break;case y.BACKSPACE:j.startEditing("");break;default:t>=48&&t<=110&&j.startEditing()}break;case"active":switch(t){case 9:e.stopPropagation(),e.preventDefault();case 13:K(),j.stopEditing(),Z();break;case 27:j.undoChanges(),Z()}}return!1},this.destroy=function(){try{for(;0!=this._connects.length;)this._connects.pop().remove();for(var e in this.plugineventOnDestroy(),j.destroy(),R)R[e].source.destroy();R=null}catch(e){}O=null},(j=new r).eventKeyHandler=this.editorKeyHandler,C=l(O.entity),k=O.getEntityProperties();for(var X,Y=[],Q=0;X=k[Q];Q++){var J=X.tag;if(Y=J.split(/\//),X.editable&&(""==N&&(N=J),T=J),X.editable)try{u(C,Y[0])&&(R[J]={ke
7y:Y[Y.length],source:new a({entity:Y[Y.length-2],page:100,wantCount:!1,friendlyId:O.friendlyId+" (inline editor)"})},R[J].source.reload((function(){z=!0,o.sequence(U)})))}catch(e){}}for(var Q in M)O.registerToPluginEvent(Q,x.hitch(this,M[Q]));this._connects.push(b(document.body,"click",x.hitch(this,"editorClickHandler"))),O.registerToPluginEvent("invokeAction",(function(e,t){S(t)}),!0)}},1079:(e,t,n)=>{const{AssertionError:r}=n(234),i=n(1837),{MxContext:o}=n(2959),a=n(4525),s=n(1015),c=n(4296),l=n(4238),u=n(1178),d=n(6618),f=n(1120),{handleError:h}=n(1881);e.exports=function(e){var t,n=this,p=e.parent,g=e.config,m=null,v=0,y={onLoad:"plugineventOnLoad",onRefresh:"plugineventOnRefresh",onDestroy:"plugineventOnDestroy",onRowMouseOver:"plugineventOnRowMouseOver",onRowMouseOut:"plugineventOnRowMouseOut"},b=null,w={active:!1,node:null,mxobject:null,oldNode:null,firstTime:!0,closable:!0,closeTimer:null,openTimer:null,tooltip:null},x=null,_=function(e){e.stopPropagation(),j()},S=function(e){e.stopPropagation(),O()},C=function(){w.active=!1,w.firstTime=!0,null!=w.oldNode&&(x.remove(),t.remove(),x=t=null,w.tooltip.hide(w.tooltip.aroundNode),w.tooltip=null,w.oldNode=null,w.mxobject=null)},E=function(){var e=f.position(w.node);if((e.x||e.y)&&w.oldNode!=w.node){if(w.oldNode=w.node,!w.active){w.active=!0,x=u(m.domNode,"mouseover",_),t=u(m.domNode,"mouseleave",S);var n=w.tooltip=new i;l.after(n,"onHide",(function(){n.domNode.contains(m.domNode)&&(s.orphan(m.domNode),a.applyContext(m.getChildren(),new o))}))}w.tooltip.show(null,w.node),w.mxobject&&window.mx.data.get({guid:w.mxobject.getGuid(),callback:e=>{w.mxobject=e;const t=new o;t.setWidgetObject(g.pageParameter,e);const n=+new Date;v=n,a.applyContext(m.getChildren(),t,(()=>{n===v&&e===w.mxobject&&w.active&&w.tooltip.show(m.domNode,w.node)}))}})}};function O(){w.closable=!0,w.closeTimer||(w.closeTimer=setTimeout(k,200))}function j(){w.closable=!1,w.closeTimer&&(clearTimeout(w.closeTimer),w.closeTimer=null)}function k(){w.closeTimer=null,w.closable&&(b&&clearTimeout(b),C())}if(this.plugineventOnLoad=function(){},this.plugineventOnDestroy=function(){this.destroy(),w.active&&C()},this.plugineventOnRefresh=function(){w.active&&C()},this.plugineventOnRowMouseOver=function(e){var t=e.node,n=e.event.target;p.domData(n,"name")||(n=s.getAncestorNode(n,"TD",3));var r=p.domData(n,"name");if(!g.hoveron.includes(r))return!0;n.setAttribute("title",""),j();var i=p.getMxObjectAtRow(parseInt(p.domData(t,"gridrow"))),o=i&&i.getGuid(),a=w.mxobject&&w.mxobject.getGuid();null!=a&&null!=o&&o===a||(t=n,w.mxobject=i,w.node=t),o?w.openTimer=setTimeout(E,200):O()},this.plugineventOnRowMouseOut=function(e){O();var t=p.getMxObjectAtRow(parseInt(p.domData(e.node,"gridrow")));w.mxobject==t&&clearTimeout(w.openTimer)},this.destroy=function(){k(),p=g=null,m&&m.destroy()},!p&&"DataGrid"!=p.widgetType)throw new r("Can only register to DataGrid!");if(!g.form)throw new r("Requires a path parameter!");c.sequence([function(e){var t=s.create("div",{style:"height: 0; overflow: hidden;"});p.domNode.appendChild(t),window.mx.ui.openForm2(g.form,{[g.pageParameter]:void 0},void 0,p.mxform,{location:"node",domNode:t,formParams:{readOnly:!0,hideFooter:!0}}).then((t=>{m=t,e()}),h)},function(e){for(var t in y)p.registerToPluginEvent(t,d.hitch(n,y[t]));e()}])}},5454:(e,t,n)=>{const r=n(455),i=n(5034);e.exports.name="mxui.wm.focus",e.exports.start=function(){this._started||(this._started=!0,i.initialize())},r((()=>e.exports.start()))},5804:(e,t,n)=>{n.r(t),n.d(t,{MxObjectCache:()=>a});var r=n(3482),i=n(2664),o=n(3282);function a(){this._objectCache={},this._newGuids={},this._changes={}}a.prototype.getAllObjects=function(){return Object.values(this._objectCache)},a.prototype.dehydrate=function(){return(0,i.d)({data:this.getAllObjects().map((e=>e.toJSON())),newGuids:this._newGuids,changes:this._changes})},a.prototype.hydrate=function(e){let{data:t,newGuids:n,changes:o}=e;this._objectCache={},t.map((e=>r.MxObject.fromJson(e))).forEach((e=>{this._objectCache[e.getGuid()]=e})),this._newGuids=(0,i.d)(n),this._changes=(0,i.d)(o)},a.prototype.getObject=function(e){return this._objectCache[e]||null},a.prototype.removeObjectKeepChanges=function(e){delete this._objectCache[e],delete this._newGuids[e]},a.prototype.setMxObjects=function(e){e.forEach((function(e){const t=e.guid,n=this._objectCache[t];n?n.resetFromJSON(e):this._objectCache[t]=r.MxObject.fromJson(e)}),this)},a.prototype.has=function(e){return!!this.getObject(e)},a.prototype.isNew=function(e){return this.has(e)&&Boolean(this._newGuids[e])},a.prototype.clear=function(){this._objectCache={},this._newGuids={},this._changes={}},a.prototype.hasChanges=function(e){return e in this._changes},a.prototype.getChanges=function(e){return this._changes[e]||{}},a.prototype.makeChange=function(e,t,n){this._changes[e]=this._changes[e]||{},this._changes[e][t]={value:n}},a.prototype.removeAllChanges=function(e){e.forEach((function(e){delete this._changes[e]}),this)},a.prototype.removeChanges=function(e){Object.keys(e).forEach((t=>{const n=this._changes[t];
7n&&(e[t].forEach((e=>delete n[e])),0===Object.keys(n).length&&delete this._changes[t])}))},a.prototype.onCreate=function(e){e.forEach((e=>{this._newGuids[e]=!0}))},a.prototype.onCommit=function(e){e.forEach((e=>delete this._newGuids[e]))},a.prototype.onDelete=function(e){for(const t of e)t in this._objectCache&&this._objectCache[t].markAsUnavailable();this.removeObjects(e)},a.prototype.addChanges=function(e){for(const t in e){const n=e[t];null==this._changes[t]&&(this._changes[t]={});const r=this._changes[t];for(const e in n)n[e].hasOwnProperty("value")?r[e]=n[e]:void 0!==r[e]&&(r[e].hash=n[e].hash)}},a.prototype.removeObjects=function(e){e.forEach((e=>{delete this._objectCache[e],delete this._newGuids[e],delete this._changes[e]}))},a.prototype.getAllGuids=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=(0,o.unique)(Object.keys(this._objectCache));return e?t.concat(Object.keys(this._changes)):t}},5247:(e,t,n)=>{n.d(t,{W:()=>i});var r=n(2265);class i{getByGuid(e,t){return Promise.reject(new r.n("getByGuid"))}getByPath(e,t,n,i){return Promise.reject(new r.n("getByPath"))}getByXPath(e,t,n){return Promise.reject(new r.n("getByXPath"))}action(e,t,n,i,o){return Promise.reject(new r.n("action"))}create(e){return Promise.reject(new r.n("create"))}commit(e,t,n,i){return Promise.reject(new r.n("commit"))}rollback(e){return Promise.reject(new r.n("rollback"))}remove(e){return Promise.reject(new r.n("remove"))}validate(e){return Promise.reject(new r.n("validate"))}saveDocument(e,t,n,i){return Promise.reject(new r.n("saveDocument"))}generateReport(e,t,n,i){return Promise.reject(new r.n("generateReport"))}generateExcelReport(e,t){return Promise.reject(new r.n("generateExcelReport"))}getReportParameters(e){return Promise.reject(new r.n("getReportParameters"))}getDocumentUrl(e,t,n){throw new r.n("getDocumentUrl")}getImageUrl(e){return Promise.reject(new r.n("getImageUrl"))}cleanup(){return Promise.reject(new r.n("cleanup"))}}},5020:(e,t,n)=>{const r=n(7097).F,i=n(9011).H,o=n(9730).N,a=n(7267).Z,s=n(442).B,c=n(7188).XPathSource,l=n(8857).B,{getFunctionConstraint:u}=n(2672);var d={create:function(e){if("database"===e.type&&window.mx.isOffline()){const t=e.extra?e.extra.offlineConstraints:void 0,n=[e.offlineConstraints,t].filter((e=>e));return new r({path:e.path,sourceVariable:e.sourceVariable,sourceVariableName:e.sourceVariableName,sort:e.sort,page:e.page,offset:e.offset,constraints:n.length>1?u("and",n):n[0],searchPaths:e.searchPaths||[],context:e.context,useCache:!(e.schemaId||e.attributes),useSnapshots:!e.queryId,friendlyId:e.friendlyId})}return"nanoflow"===e.type?new a({nanoflow:e.nanoflow,argMap:e.argMap,allowedRoles:e.allowedRoles,page:e.page,offset:e.offset,context:e.context,origin:e.origin,friendlyId:e.friendlyId}):"microflow"===e.type?new o({operationId:e.operationId,argMap:e.argMap,page:e.page,offset:e.offset,context:e.context,queryId:e.queryId,friendlyId:e.friendlyId}):"entityPath"===e.type?new i({path:e.path,queryId:e.queryId,sourceVariable:e.sourceVariable,page:e.page,offset:e.offset,context:e.context,friendlyId:e.friendlyId}):e.queryId?new l({path:e.path,sourceVariable:e.sourceVariable,sort:e.sort,constraint:e.extra&&e.extra.constraint||"",searchPaths:e.searchPaths||[],page:e.page,offset:e.offset,context:e.context,queryId:e.queryId,hasParameter:e.hasParameter,wantCount:e.wantCount,friendlyId:e.friendlyId}):e.schemaId||e.attributes?new s({path:e.path,sourceVariable:e.sourceVariable,sort:e.sort,constraint:(e.constraint||"")+(e.extra&&e.extra.constraint||""),page:e.page,offset:e.offset,context:e.context,schemaId:e.schemaId,attributes:e.attributes,wantCount:e.wantCount,friendlyId:e.friendlyId}):new c({path:e.path,sourceVariable:e.sourceVariable,sort:e.sort,constraint:(e.constraint||"")+(e.extra&&e.extra.constraint||""),page:e.page,offset:e.offset,context:e.context,wantCount:e.wantCount,friendlyId:e.friendlyId})}};e.exports=d},4186:(e,t,n)=>{n.d(t,{o:()=>s});var r=n(2265),i=n(2749);const{LogManager:o}=n(7606),a=o.get().getLogger();class s{constructor(e){this.context=e.context,this.friendlyId=e.friendlyId,this._pageSize=e.page||0,this._offset=e.offset||0,this._pageObjs=[],this._setSize=0,this._hasMoreItems=void 0,this._wantCount=void 0===e.wantCount||e.wantCount}reload(e){throw new r.n("reload")}getSetSize(){return this._setSize||0}getObjects(){return this._pageObjs||[]}getAllObjects(){throw new r.n("getAllObjects")}getPageSize(){return this._pageSize}setPageSize(e){return this._pageSize=e,this}getOffset(){return this._offset}setOffset(e){return this._offset=e,this}first(e){this._setFirstPage(),this.reload(e)}last(e){this._setLastPage(),this.reload(e)}next(e){this._setNextPage(),this.reload(e)}previous(e){this._setPreviousPage(),this.reload(e)}getStatusMessage(){const e=this.getSetSize();if(0!==e){const t=(this._offset+1).toString(),n=Math.min(this._offset+this._pageSize,e).toString();return(0,i.translate)("mendix.lib.MxDataSource","status",t,n,e.toString())}return this._wantCount?(0,i.translate)("mendix.lib.MxDataSource","status","0","0","0"):(0,i.translate)("mxui.widget.DataGrid","page_number",(Math.ceil((this._offset+1)/this._pageSize)||1).toString())}atBeginning(){return 0===this._offset}atEnd(){return 0===this._pageSize||this._offset>=this.getSetSize()-this._pageSize}afterEnd(){return this._pageSize>
70&&this.getSetSize()>0&&this._offset>=this.getSetSize()}hasMoreItems(){return void 0!==this._hasMoreItems?this._hasMoreItems:!this.atEnd()}getObject(e){const t=this.getObjects().filter((t=>t.getGuid()===e));return t.length>0?t[0]:null}insertMxObjectAtStart(e){return this._pageObjs=[e].concat(this._pageObjs).slice(0,this._pageSize>0?this._pageSize:1/0),this._setSize++,this}insertMxObjectAtEnd(e){return this._pageObjs=this._pageObjs.concat([e]).slice(this._pageSize>0?-this._pageSize:0),this._setSize++,this}clean(){return this._setSize=0,this._offset=0,this._pageObjs=[],this}destroy(){}_log(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.debug(`${this.friendlyId}: ${e}`,...n)}_setSetSize(e){return this._setSize=e,this}_setHasMoreItems(e){this._hasMoreItems=e}_setPageObjects(e){return this._pageObjs=e,this}_setLastPage(){this._pageSize>=this._setSize?this._offset=0:this._offset=Math.floor((this._setSize-1)/this._pageSize)*this._pageSize}_setNextPage(){this.hasMoreItems()?this._offset+=this._pageSize:void 0!==this._setSize&&(this._offset=this._setSize-this._pageSize)}_setPreviousPage(){this._wantCount&&this.getSetSize()<this._pageSize||this._offset-this._pageSize<=0?this._offset=0:this._offset-=this._pageSize}_setFirstPage(){this._offset=0}}},9011:(e,t,n)=>{n.d(t,{H:()=>l});var r=n(4296),i=n(4186),o=n(1881),a=n(7223),s=n(1693),c=n(121);class l extends((0,c.Q)((0,s.K)(i.o))){constructor(e){super(e),this._pathElements=e.path.split("/"),this._sourceVariable=e.sourceVariable,this._queryId=e.queryId}reload(e){const t=this._sourceVariable?this.context.getWidgetObject(this._sourceVariable):this.context.getTrackObject(),n=this._lastLoadId=r.getUniqueId();if(t&&!t.isUnavailable()){const r=t.getGuid();this._log(`fetching data with source object '${r}' path:`,this._pathElements),this._fetch(r,(t=>{let{mxObjects:i,extra:o}=t;if(this._lastLoadId!==n)return this._log(`discarding received data for outdated source object '${r}'`),void(e&&e());this._cleanup(),this._log(`received ${i.length} objects with ${o.length} schema objects included`,"object ids:",i.concat(o).map((e=>e.getGuid()))),this._keep(i.concat(o)),this._setAllObjects(i),this._updateClientPaging(i,e)}),(t=>{(0,o.handleError)(t),e&&e()}))}else this._log("clearing data because there is no source object"),this._cleanup(),this._updateClientPaging([],e)}_fetch(e,t,n){window.mx.isOffline()?window.mx.data.get({guid:e,path:this._pathElements[0],entity:this._pathElements[1],callback:e=>t({mxObjects:e,extra:[]}),error:n}):(0,a.onlineData)().retrieveByPath(e,this._queryId).then(t,n)}destroy(){this._cleanup()}}},9730:(e,t,n)=>{n.d(t,{N:()=>c});var r=n(4186),i=n(1881),o=n(7223),a=n(1693),s=n(121);class c extends((0,s.Q)((0,a.K)(r.o))){constructor(e){super(e),this._operationId=e.operationId||"",this._argMap=e.argMap,this._queryId=e.queryId}reload(e){const t={};Object.keys(this._argMap).forEach((e=>{const n=this._argMap[e].widget,r=this.context.getWidgetObject(n);r&&(t[e]={guid:r.getGuid()})})),this._log(`fetching data using microflow '${this._operationId}'`,"parameter mapping:",t),(this._queryId?(0,o.onlineData)().retrieveByMicroflow(this._operationId,this._queryId,t):(0,o.onlineData)().executeMicroflow(this._operationId,t,void 0).then((e=>({mxObjects:Array.isArray(e)?e:[],extra:[]})))).then((t=>{let{mxObjects:n,extra:r}=t;this._cleanup(),this._log(`received ${n.length} objects and ${r.length} objects over schema`,"object ids:",n.concat(r).map((e=>e.getGuid()))),this._keep(n.concat(r)),this._setAllObjects(n),this._updateClientPaging(n,e)}),(t=>{(0,i.handleError)(t),e&&e()}))}destroy(){this._cleanup()}}},7267:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(4186),i=n(178),o=n(7566),a=n(1016),s=n(1881),c=n(5087),l=n(1693),u=n(121);class d extends((0,u.Q)((0,l.K)(r.o))){constructor(e){super(e),this._nanoflow=e.nanoflow,this._allowedRoles=e.allowedRoles,this._currentForm=e.origin,this._argMap=e.argMap}reload(e){if(!(0,a.getSession)().hasSomeRole(this._allowedRoles))return void d._handleError(new i.W("Unable to execute action because you do not have sufficient permissions."),e);this._log("fetching data using nanoflow",this._nanoflow,"origin:",this._currentForm.path);const t=(0,o.vc)(this.context,this._argMap);c.Wi.execute(this._nanoflow,t,this._currentForm).then((t=>this._handleResult(t,e)),(t=>d._handleError(t,e)))}destroy(){this._cleanup()}_handleResult(e,t){this._cleanup();const n=Array.isArray(e)?e:[];this._log(`received ${n.length} objects`,"object ids:",n.map((e=>e.getGuid()))),this._keep(n),this._setAllObjects(n),this._updateClientPaging(n,t)}static _handleError(e,t){(0,s.handleError)(e),t&&t()}}},7097:(e,t,n)=>{n.d(t,{F:()=>l});var r=n(4186),i=n(3282),o=n(2672),a=n(1881),s=n(7223),c=n(6610);class l extends r.o{constructor(e){super(e);const t=e.path.split("/");this._sourceVariable=e.sourceVariable,this._sourceVariableName=e.sourceVariableName,this._entity=1===t.length?t[0]:t[1],this._useScope=t.length>1,this._sort=e.sort||[],this._constraints=e.constraints,this._searchConstraints=null,this._searchAttrs=e.searchPaths,this._useCache=!!e.useCache,this._useSnapshots=!!e.useSnapshots}reload(e){this._log(`fetching data for entity '${this._entity}'`);const t=this._useScope?this._sourceVariable?this.context.getWidgetObject(this._sourceVariable):this.context.getTrackObject():void 0,n=this._sourceVariableName||"currentObject";if(this._useScope&&(!t||t.isUnavailable()))return this._setPageObjects([]),this._setSetSize(0),void(e&&e());const r=this._getConstraints(),o=r?(0,c.By)(r,this._useScope?e=>e===n?t:(0,i.crash)():i.crash):void 0,l={offset:this.getOffset(),amount:this.getPageSize(),sort:this._sort};(this._useCache?(0,s.offlineData)().retrieve(this._entity,o,l):(0,s.offlineData)().retrieveUncached(this._entity,o,l)).then((t=>{let{mxObjects:n,count:r}=t;this._log(`received ${n.length} objects of ${r} total`,"object ids:",n.map((e=>e.getGuid()))),this._setPageObjects(this._useSnapshots?n.map((e=>e.snapshot())):n),this._setSetSize(r),e&&e()})).catch((t=>{(0,a.handleError)(t),e&&e()}))}setSort(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";return this.setOffset(0),this._sort=[[e,t]],this}addSort(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";return this.setSort(e,t),this}setSearchText(e){if(e&&""!==e.trim()&&0!==this._searchAttrs.length){const t=this._searchAttrs.map((t=>(0,o.getFunctionConstraint)("contains",[{type:"attribute",attribute:t,attributeType:"String"},{type:"literal",value:e}])));this._searchConstraints=t.length>1?(0,o.getFunctionConstraint)("or",t):t[0]}else this._searchConstraints=null;return this}_getConstraints(){return this._constraints&&this._searchConstraints?(0,o.getFunctionConstraint)("and",[this._constraints,this._searchConstraints]):this._constraints||this._searchConstraints}}},8857:(e,t,n)=>{n.d(t,{B:()=>a});var r=n(4186),i=n(1881),o=n(7223);class a extends r.o{constructor(e){super(e);const t=e.path?e.path.split("/"):[];this._sourceVariable=e.sourceVariable,this._entity=t.length?t.pop():e.entity,this._queryId=e.queryId,this._hasParameter=e.hasParameter,this._sorting=e.sort||[],this._constraints="",this._staticConstraints=e.constraint||"",this._searchPaths=e.searchPaths||[]}reload(e){const t=this,n=this._hasParameter?this._sourceVariable?this.context.getWidgetObject(this._sourceVariable):this.context.getTrackObject():void 0;if(this._hasParameter&&(!n||n.isUnavailable()))return void c([],0);const r=Object.assign({},this._sorting.length?{sort:this._sorting}:{},this.getPageSize()>0?{offset:this.getOffset(),amount:this.getPageSize()}:{}),a=this._hasParameter?n.getGuid():void 0,s=this._staticConstraints+this._constraints;function c(n,r,i){t._setPageObjects(n),t._setSetSize(r),t._setHasMoreItems(i),e&&e()}this._log(`fetching data using query id '${this._queryId}'`,`constraints: '${s}'`,`context: ${a}`,"options:",r),(0,o.onlineData)().retrieveByXPath(this._queryId,a?{CurrentObject:{guid:a}}:{},s,r,this._wantCount).then((e=>{let{mxObjects:t,count:n,hasMoreItems:r}=e;void 0!==n?this._log(`received ${t.length} objects of ${n} total`,"object ids:",t.map((e=>e.getGuid()))):this._log(`received ${t.length} objects`,"object ids:",t.map((e=>e.getGuid()))),c(t,n,r)}),(e=>{(0,i.handleError)(e),c([],0)}
7))}setSearchText(e){if(this._constraints="",e&&""!==e.trim()){const t=this._searchPaths.map((t=>`contains(${t},'${e}')`));this._constraints=`[${t.join(" or ")}]`}return this._setFirstPage(),this}}},2804:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(442);class i extends r.B{constructor(e){super(e),this._reference=e.reference||""}_fetch(e,t,n){0!==this._getReferences().length?super._fetch(e,t,n):t([],0)}getCurrentXPath(){return super.getCurrentXPath()||"[1=0]"}_getReferences(){return this.context.hasTrackObject()?this.context.getTrackObject().getReferences(this._reference):[]}_calculateContextConstraint(){const e=this._getReferences();return e.length>0?"["+e.map((e=>`id="${e}"`)).join(" or ")+"]":"[1=0]"}}},442:(e,t,n)=>{n.d(t,{B:()=>i});var r=n(7188);class i extends r.XPathSource{constructor(e){super(e),this._schemaOptions={id:e.schemaId,attributes:e.attributes,distinct:e.distinct},this._aggregates=null}getAggregates(){return this._aggregates}_fetch(e,t,n){const r=Object.assign({},e,this._schemaOptions);this._log(`fetching data using XPath '${this.getCurrentXPath()}'`,"filter:",r),window.mx.data.get({xpath:this.getCurrentXPath(),filter:r,count:this._wantCount,callback:(e,n)=>{let{aggregates:r,count:i,hasMoreItems:o}=n;void 0!==i?this._log(`received ${e.length} objects of ${i} total`,"object ids:",e.map((e=>e.getGuid()))):this._log(`received ${e.length} objects`,"object ids:",e.map((e=>e.getGuid()))),this._aggregates=r,t(e,i,o)},error:e=>{this._aggregates=null,n(e)}})}}},7188:(e,t,n)=>{n.r(t),n.d(t,{XPathSource:()=>o});var r=n(4186),i=n(1881);class o extends r.o{constructor(e){super(e);const t=e.path?e.path.split("/"):[];this._sourceVariable=e.sourceVariable,this._entity=t.length?t.pop():e.entity;const n=t.reverse().join("/");this._pathConstraint=t.length?`[${n}="[%CurrentObject%]"]`:"",this._sorting=e.sort||[],this._staticconstraint=e.constraint||"",this._constraints="",this._currentXPath=""}reload(e){const t=this;function n(n,r,i){t._setPageObjects(n.map((e=>e.snapshot()))),t._setSetSize(r),t._setHasMoreItems(i),e&&e()}this._calculateBacktrackConstraint(((e,r)=>{if(!r)return void n([],0);if(this._currentXPath=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(e,t){if(t&&!t.isUnavailable()){const n=t.getGuid();return e.replace(/\[%CurrentObject%\]/g,n)}return/\[%CurrentObject%\]/.test(e)?"":e}(["//",t._entity,e,t._pathConstraint,t._staticconstraint,t.getConstraints(),t._calculateContextConstraint()].join(""),t._getContextObject())}(e),!this._currentXPath)return void n([],0);const o=Object.assign({},this._sorting.length?{sort:this._sorting}:{},this.getPageSize()>0?{offset:this.getOffset(),amount:this.getPageSize()}:{});this._fetch(o,((e,t,r)=>{n(e,t,r)}),(e=>{(0,i.handleError)(e),n([],0)}))}))}getSortSettings(){return this._sorting}addSort(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";for(t=0;t<this._sorting.length;++t){const[n]=this._sorting[t];if(n===e)break}return t===this._sorting.length?this._sorting.push([e,n]):this._sorting[t]=[e,n],this}setSort(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";return this.setOffset(0),this._sorting=[[e,t]],this}getCurrentXPath(){return this._currentXPath}setConstraints(e){return this._constraints=e,this._setFirstPage(),this}getConstraints(){return this._constraints}_calculateBacktrackConstraint(e){const t=this._getContextObject();if(t&&!t.isUnavailable()){const n=t.getGuid();window.mx.data.getBacktrack(n,this.context.getConstraints(),e,(t=>{(0,i.handleError)(t),e&&e("",!1)}))}else e&&e("",!0)}_calculateContextConstraint(){return""}_fetch(e,t,n){window.mx.data.get({xpath:this.getCurrentXPath(),filter:e,count:this._wantCount,callback:(e,n)=>t(e,n.count,n.hasMoreItems),error:n})}_getContextObject(){return this._sourceVariable?this.context.getWidgetObject(this._sourceVariable):this.context&&this.context.getTrackObject()}}},1693:(e,t,n)=>{function r(e){return class extends e{constructor(){super(...arguments),this._allObjects=[]}getAllObjects(){return this._allObjects}_updateClientPaging(e,t){const n=this.getOffset(),r=this.getPageSize()>0?e.slice(n,n+this.getPageSize()):e;this._setPageObjects(r),this._setSetSize(e.length),t&&t()}first(e){this._setFirstPage(),this._updateClientPaging(this._allObjects,e)}last(e){this._setLastPage(),this._updateClientPaging(this._allObjects,e)}next(e){this._setNextPage(),this._updateClientPaging(this._allObjects,e)}previous(e){this._setPreviousPage(),this._updateClientPaging(this._allObjects,e)}_setAllObjects(e){this._allObjects=e}}}n.d(t,{K:()=>r})},121:(e,t,n)=>{function r(e){return class extends e{constructor(e){super(e),this._subscriptions=[]}_keep(e){this._subscriptions=e.map((e=>window.mx.data.subscribe({guid:e.getGuid(),tag:this.friendlyId,callback:function(){}})))}_cleanup(){this._subscriptions.forEach((e=>window.mx.data.unsubscribe(e)))}}}n.d(t,{Q:()=>r})}
7,9989:(e,t,n)=>{n.r(t),n.d(t,{DirectObjectSource:()=>o});var r=n(5128),i=n(7223);class o extends r.s{constructor(){let{path:e,sourceVariable:t,queryId:n,context:r,friendlyId:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({friendlyId:i});const o=e.split("/");this._path=o.length>1?o:[],this._entity=o.slice(-1)[0],this._sourceVariable=t,this._queryId=n,this._context=r}fetch(e,t){const n=t=>{null!=t?t.isA(this._entity)?(this._log(`returning object '${t.getGuid()}'`),e(t)):(this._log(`received '${t.getEntity()}' object does not match expected entity '${this._entity}'`),e(null)):(this._log(`requested '${this._entity}' object does not exist`),e(null))},r=this._sourceVariable?this._context.getWidgetObject(this._sourceVariable):this._context.getTrackObject();null==r||r.isUnavailable()?n(void 0):a(r,this._path,n)||(window.mx.isOffline()?window.mx.data.get({guid:r.getGuid(),entity:this._entity,path:this._path.join("/"),direction:"direct",callback:e=>n(e[0]),error:t}):(0,i.onlineData)().retrieveByPath(r.getGuid(),this._queryId).then((e=>n(e.mxObjects[0])),t))}getDependencies(){const e=this._path.length>0?this._path[0]:"",t=this._context.getTrackId();return e&&t?[{guid:t},{guid:t,attr:e}]:[]}}function a(e,t,n){if(!t.length)return n(e),!0;const r=e.getReference(t[0]);if(!r)return n(void 0),!0;const i=window.mx.data.getCachedObject(r);return!!i&&(i.isA(t[1])?a(i,t.slice(2),n):(n(void 0),!0))}},8528:(e,t,n)=>{n.r(t),n.d(t,{ListeningObjectSource:()=>a});var r=n(245),i=n(5128),o=n(7223);class a extends i.s{constructor(e){let{listenTo:t,form:n,queryId:i,friendlyId:o}=e;super({friendlyId:o}),this._queryId=i,this._widgetSelectionTopic=(0,r.createWidgetSelectionTopic)(n,t)}fetch(e,t){const n=t=>{this._log(`received object ${t?t.getGuid():"(none)"}`),e(t)},i=(0,r.readTopic)(this._widgetSelectionTopic);if(void 0===i)return void n(null);const a=window.mx.data.getCachedObject(i);a?n(a.isUnavailable()?null:a):(this._log(`fetching object ${i} selected in the list widget`),window.mx.isOffline()?window.mx.data.get({guid:i,callback:n,error:t}):(0,o.onlineData)().retrieveByPath(i,this._queryId).then((e=>n(e.mxObjects[0])),t))}getDependencies(){return[{topic:this._widgetSelectionTopic}]}}},8481:(e,t,n)=>{n.r(t),n.d(t,{MicroflowObjectSource:()=>o});var r=n(5128),i=n(7223);class o extends r.s{constructor(){let{operationId:e,queryId:t,argMap:n,context:r,friendlyId:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({friendlyId:i}),this._operationId=e,this._context=r,this._argMap=n,this._queryId=t}fetch(e,t){this._log(`fetching object through microflow '${this._operationId}'`),(0,i.onlineData)().retrieveByMicroflow(this._operationId,this._queryId,this._getMicroflowParams(),void 0).then((t=>{let{mxObjects:n}=t;this._log("received object",n[0]),e(n[0]||null)}),t)}getDependencies(){return Object.values(this._getMicroflowParams())}_getMicroflowParams(){const e={};return Object.keys(this._argMap).forEach((t=>{const n=this._argMap[t].widget,r=this._context.getWidgetObject(n);r&&(e[t]={guid:r.getGuid()})})),e}}},9162:(e,t,n)=>{n.r(t),n.d(t,{NanoflowObjectSource:()=>u});var r=n(178),i=n(3482),o=n(5128),a=n(7566),s=n(1016),c=n(1881),l=n(5087);class u extends o.s{constructor(e){super(e),this._nanoflow=e.nanoflow,this._allowedRoles=e.allowedRoles,this._currentForm=e.origin,this._context=e.context,this._argMap=e.argMap}fetch(e,t){if(!(0,s.getSession)().hasSomeRole(this._allowedRoles))return(0,c.handleError)(new r.W("Unable to execute action because you do not have sufficient permissions.")),void(e&&e());this._log("fetching data using nanoflow",this._nanoflow,"argMap:",this._argMap,"origin:",this._currentForm.path);const n=(0,a.vc)(this._context,this._argMap);l.Wi.execute(this._nanoflow,n,this._currentForm).then(e,t)}getDependencies(){return(0,a.vc)(this._context,this._argMap).filter((e=>e.value instanceof i.MxObject)).map((e=>({guid:e.value.getGuid()})))}}},5128:(e,t,n)=>{n.d(t,{s:()=>a});var r=n(2265);const{LogManager:i}=n(7606),o=i.get().getLogger();class a{constructor(e){let{friendlyId:t}=e;this.friendlyId=t}fetch(e,t){throw new r.n("fetch")}getDependencies(){return[]}_log(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.debug(`${this.friendlyId}: ${e}`,...n)}}},2813:(e,t,n)=>{function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return i(e.bind(t),...r)}}function i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise(((t,r)=>{const i=n.concat([t,r]);e(...i)}))}n.r(t),n.d(t,{callbackToPromise:()=>i,callbackToPromiseFactory:()=>r})}
vendor: 4,572 bytes, line 7
7,2672:(e,t,n)=>{function r(e,t){return{type:"function",name:e,parameters:t}}n.r(t),n.d(t,{getFunctionConstraint:()=>r})},245:(e,t,n)=>{n.r(t),n.d(t,{createPageSelectionTopic:()=>a,createWidgetSelectionTopic:()=>o,readTopic:()=>c,removeTopic:()=>l,storeTopic:()=>s});var r=n(4296);const i={};function o(e,t){return`${e.hash}#${t}`}function a(){return(0,r.getUniqueId)()}function s(e,t){i[e]=t}function c(e){return i[e]}function l(e){delete i[e]}},6606:e=>{e.exports=void 0},3302:function(e,t,n){var r;!function(i){var o,a=1e6,s="[big.js] ",c=s+"Invalid ",l=c+"decimal places",u=c+"rounding mode",d=s+"Division by zero",f={},h=void 0,p=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function g(e,t,n,r){var i=e.c;if(n===h&&(n=e.constructor.RM),0!==n&&1!==n&&2!==n&&3!==n)throw Error(u);if(t<1)r=3===n&&(r||!!i[0])||0===t&&(1===n&&i[0]>=5||2===n&&(i[0]>5||5===i[0]&&(r||i[1]!==h))),i.length=1,r?(e.e=e.e-t+1,i[0]=1):i[0]=e.e=0;else if(t<i.length){if(r=1===n&&i[t]>=5||2===n&&(i[t]>5||5===i[t]&&(r||i[t+1]!==h||1&i[t-1]))||3===n&&(r||!!i[0]),i.length=t--,r)for(;++i[t]>9;)i[t]=0,t--||(++e.e,i.unshift(1));for(t=i.length;!i[--t];)i.pop()}return e}function m(e,t,n){var r=e.e,i=e.c.join(""),o=i.length;if(t)i=i.charAt(0)+(o>1?"."+i.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)i="0"+i;i="0."+i}else if(r>0)if(++r>o)for(r-=o;r--;)i+="0";else r<o&&(i=i.slice(0,r)+"."+i.slice(r));else o>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&n?"-"+i:i}f.abs=function(){var e=new this.constructor(this);return e.s=1,e},f.cmp=function(e){var t,n=this,r=n.c,i=(e=new n.constructor(e)).c,o=n.s,a=e.s,s=n.e,c=e.e;if(!r[0]||!i[0])return r[0]?o:i[0]?-a:0;if(o!=a)return o;if(t=o<0,s!=c)return s>c^t?1:-1;for(a=(s=r.length)<(c=i.length)?s:c,o=-1;++o<a;)if(r[o]!=i[o])return r[o]>i[o]^t?1:-1;return s==c?0:s>c^t?1:-1},f.div=function(e){var t=this,n=t.constructor,r=t.c,i=(e=new n(e)).c,o=t.s==e.s?1:-1,s=n.DP;if(s!==~~s||s<0||s>a)throw Error(l);if(!i[0])throw Error(d);if(!r[0])return e.s=o,e.c=[e.e=0],e;var c,u,f,p,m,v=i.slice(),y=c=i.length,b=r.length,w=r.slice(0,c),x=w.length,_=e,S=_.c=[],C=0,E=s+(_.e=t.e-e.e)+1;for(_.s=o,o=E<0?0:E,v.unshift(0);x++<c;)w.push(0);do{for(f=0;f<10;f++){if(c!=(x=w.length))p=c>x?1:-1;else for(m=-1,p=0;++m<c;)if(i[m]!=w[m]){p=i[m]>w[m]?1:-1;break}if(!(p<0))break;for(u=x==c?i:v;x;){if(w[--x]<u[x]){for(m=x;m&&!w[--m];)w[m]=9;--w[m],w[x]+=10}w[x]-=u[x]}for(;!w[0];)w.shift()}S[C++]=p?f:++f,w[0]&&p?w[x]=r[y]||0:w=[r[y]]}while((y++<b||w[0]!==h)&&o--);return S[0]||1==C||(S.shift(),_.e--,E--),C>E&&g(_,E,n.RM,w[0]!==h),_},f.eq=function(e){return 0===this.cmp(e)},f.gt=function(e){return this.cmp(e)>0},f.gte=function(e){return this.cmp(e)>-1},f.lt=function(e){return this.cmp(e)<0},f.lte=function(e){return this.cmp(e)<1},f.minus=f.sub=function(e){var t,n,r,i,o=this,a=o.constructor,s=o.s,c=(e=new a(e)).s;if(s!=c)return e.s=-c,o.plus(e);var l=o.c.slice(),u=o.e,d=e.c,f=e.e;if(!l[0]||!d[0])return d[0]?e.s=-c:l[0]?e=new a(o):e.s=1,e;if(s=u-f){for((i=s<0)?(s=-s,r=l):(f=u,r=d),r.reverse(),c=s;c--;)r.push(0);r.reverse()}else for(n=((i=l.length<d.length)?l:d).length,s=c=0;c<n;c++)if(l[c]!=d[c]){i=l[c]<d[c];break}if(i&&(r=l,l=d,d=r,e.s=-e.s),(c=(n=d.length)-(t=l.length))>0)for(;c--;)l[t++]=0;for(c=t;n>s;){if(l[--n]<d[n]){for(t=n;t&&!l[--t];)l[t]=9;--l[t],l[n]+=10}l[n]-=d[n]}for(;0===l[--c];)l.pop();for(;0===l[0];)l.shift(),--f;return l[0]||(e.s=1,l=[f=0]),e.c=l,e.e=f,e},f.mod=function(e){var t,n=this,r=n.constructor,i=n.s,o=(e=new r(e)).s;if(!e.c[0])throw Error(d);return n.s=e.s=1,t=1==e.cmp(n),n.s=i,e.s=o,t?new r(n):(i=r.DP,o=r.RM,r.DP=r.RM=0,n=n.div(e),r.DP=i,r.RM=o,this.minus(n.times(e)))},f.plus=f.add=function(e){var t,n,r,i=this,o=i.constructor;if(e=new o(e),i.s!=e.s)return e.s=-e.s,i.minus(e);var a=i.e,s=i.c,c=e.e,l=e.c;if(!s[0]||!l[0])return l[0]||(s[0]?e=new o(i):e.s=i.s),e;if(s=s.slice(),t=a-c){for(t>0?(c=a,r=l):(t=-t,r=s),r.reverse();t--;)r.push(0);r.reverse()}for(s.length-l.length<0&&(r=l,l=s,s=r),t=l.length,n=0;t;s[t]%=10)n=(s[--t]=s[t]+l[t]+n)/10|0;for(n&&(s.unshift(n),++c),t=s.length;0===s[--t];)s.pop();return e.c=s,e.e=c,e},f.pow=function(e){var t=this,n=new t.constructor("1"),r=n,i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(c+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?n.div(r):r},f.prec=function(e,t){if(e!==~~e||e<1||e>a)throw Error(c+"precision");return g(new this.constructor(this),e,t)},f.round=function(e,t){if(e===h)e=0;else if(e!==~~e||e<-a||e>a)throw Error(l);return g(new this.constructor(this),e+this.e+1,t)},f.sqrt=function(){var e,t,n,r=this,i=r.constructor,o=r.s,a=r.e,c=new i("0.5");
7if(!r.c[0])return new i(r);if(o<0)throw Error(s+"No square root");0===(o=Math.sqrt(r+""))||o===1/0?((t=r.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),e=new i(((o=Math.sqrt(t))==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+a)):e=new i(o+""),a=e.e+(i.DP+=4);do{n=e,e=c.times(n.plus(r.div(n)))}while(n.c.slice(0,a).join("")!==e.c.slice(0,a).join(""));return g(e,(i.DP-=4)+e.e+1,i.RM)},f.times=f.mul=function(e){var t,n=this,r=n.constructor,i=n.c,o=(e=new r(e)).c,a=i.length,s=o.length,c=n.e,l=e.e;if(e.s=n.s==e.s?1:-1,!i[0]||!o[0])return e.c=[e.e=0],e;for(e.e=c+l,a<s&&(t=i,i=o,o=t,l=a,a=s,s=l),t=new Array(l=a+s);l--;)t[l]=0;for(c=s;c--;){for(s=0,l=a+c;l>c;)s=t[l]+o[c]*i[l-c-1]+s,t[l--]=s%10,s=s/10|0;t[l]=s}for(s?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},f.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==h){if(e!==~~e||e<0||e>a)throw Error(l);for(n=g(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return m(n,!0,!!r)},f.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==h){if(e!==~~e||e<0||e>a)throw Error(l);for(e=e+(n=g(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length<e;)n.c.push(0)}return m(n,!1,!!r)},f.toJSON=f.toString=function(){var e=this,t=e.constructor;return m(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},f.toNumber=function(){var e=Number(m(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(s+"Imprecise conversion");return e},f.toPrecision=function(e,t){var n=this,r=n.constructor,i=n.c[0];if(e!==h){if(e!==~~e||e<1||e>a)throw Error(c+"precision");for(n=g(new r(n),e,t);n.c.length<e;)n.c.push(0)}return m(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!i)},f.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(s+"valueOf disallowed");return m(e,e.e<=t.NE||e.e>=t.PE,!0)},(o=function e(){function t(n){var r=this;if(!(r instanceof t))return n===h?e():new t(n);if(n instanceof t)r.s=n.s,r.e=n.e,r.c=n.c.slice();else{if("string"!=typeof n){if(!0===t.strict)throw TypeError(c+"number");n=0===n&&1/n<0?"-0":String(n)}!function(e,t){var n,r,i;if(!p.test(t))throw Error(c+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),i=t.length,r=0;r<i&&"0"==t.charAt(r);)++r;if(r==i)e.c=[e.e=0];else{for(;i>0&&"0"==t.charAt(--i););for(e.e=n-r-1,e.c=[],n=0;r<=i;)e.c[n++]=+t.charAt(r++)}}(r,n)}r.constructor=t}return t.prototype=f,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.strict=!1,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}()).default=o.Big=o,void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},4184:(e,t)=>{var n;
8/*!
9	Copyright (c) 2018 Jed Watson.
10	Licensed under the MIT License (MIT), see
11	http://jedwatson.github.io/classnames
12*/!function(){var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},4941:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(3427).Z},4314:(e,t,n)=>{n.d(t,{j:()=>i});var r={};function i(){return r}},7621:(e,t,n)=>{n.d(t,{Z:()=>o});var r=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},i=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const o={p:i,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return r(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(a,t)).replace("{{time}}",i(s,t))}}}
12,4262:(e,t,n)=>{function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:()=>r})},9702:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(9013),i=n(6979),o=n(7032),a=n(3882),s=6048e5;function c(e){(0,a.Z)(1,arguments);var t=(0,r.Z)(e),n=(0,i.Z)(t).getTime()-function(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,i.Z)(n)}(t).getTime();return Math.round(n/s)+1}},7032:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(9013),i=n(3882),o=n(6979);function a(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.Z)(a),c=new Date(0);c.setUTCFullYear(n,0,4),c.setUTCHours(0,0,0,0);var l=(0,o.Z)(c);return t.getTime()>=s.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}},3324:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(9013),i=n(9025),o=n(7651),a=n(3882),s=n(3946),c=n(4314),l=6048e5;function u(e,t){(0,a.Z)(1,arguments);var n=(0,r.Z)(e),u=(0,i.Z)(n,t).getTime()-function(e,t){var n,r,l,u,d,f,h,p;(0,a.Z)(1,arguments);var g=(0,c.j)(),m=(0,s.Z)(null!==(n=null!==(r=null!==(l=null!==(u=null==t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null==t||null===(d=t.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:g.firstWeekContainsDate)&&void 0!==r?r:null===(h=g.locale)||void 0===h||null===(p=h.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1),v=(0,o.Z)(e,t),y=new Date(0);return y.setUTCFullYear(v,0,m),y.setUTCHours(0,0,0,0),(0,i.Z)(y,t)}(n,t).getTime();return Math.round(u/l)+1}},7651:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(9013),i=n(3882),o=n(9025),a=n(3946),s=n(4314);function c(e,t){var n,c,l,u,d,f,h,p;(0,i.Z)(1,arguments);var g=(0,r.Z)(e),m=g.getUTCFullYear(),v=(0,s.j)(),y=(0,a.Z)(null!==(n=null!==(c=null!==(l=null!==(u=null==t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null==t||null===(d=t.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:v.firstWeekContainsDate)&&void 0!==c?c:null===(h=v.locale)||void 0===h||null===(p=h.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(m+1,0,y),b.setUTCHours(0,0,0,0);var w=(0,o.Z)(b,t),x=new Date(0);x.setUTCFullYear(m,0,y),x.setUTCHours(0,0,0,0);var _=(0,o.Z)(x,t);return g.getTime()>=w.getTime()?m+1:g.getTime()>=_.getTime()?m:m-1}},5267:(e,t,n)=>{n.d(t,{Do:()=>a,Iu:()=>o,qp:()=>s});var r=["D","DD"],i=["YY","YYYY"];function o(e){return-1!==r.indexOf(e)}function a(e){return-1!==i.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
12concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},3882:(e,t,n)=>{function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:()=>r})},6979:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9013),i=n(3882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}},9025:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(9013),i=n(3882),o=n(3946),a=n(4314);function s(e,t){var n,s,c,l,u,d,f,h;(0,i.Z)(1,arguments);var p=(0,a.j)(),g=(0,o.Z)(null!==(n=null!==(s=null!==(c=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==c?c:p.weekStartsOn)&&void 0!==s?s:null===(f=p.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,r.Z)(e),v=m.getUTCDay(),y=(v<g?7:0)+v-g;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}},3946:(e,t,n)=>{function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:()=>r})},7349:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(3946),i=n(9013),o=n(3882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),a=(0,r.Z)(t);return isNaN(a)?new Date(NaN):a?(n.setDate(n.getDate()+a),n):n}},1820:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(3946),i=n(9013),o=n(3882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e).getTime(),a=(0,r.Z)(t);return new Date(n+a)}},1640:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(3946),i=n(9013),o=n(3882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),a=(0,r.Z)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),c=new Date(n.getTime());return c.setMonth(n.getMonth()+a+1,0),s>=c.getDate()?c:(n.setFullYear(c.getFullYear(),c.getMonth(),s),n)}},1593:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(3946),i=n(1640),o=n(3882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,12*n)}},3894:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9013),i=n(3882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(23,59,59,999),t}},4135:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9013),i=n(3882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},7090:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(4314),i=n(9013),o=n(3946),a=n(3882);function s(e,t){var n,s,c,l,u,d,f,h;(0,a.Z)(1,arguments);var p=(0,r.j)(),g=(0,o.Z)(null!==(n=null!==(s=null!==(c=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==c?c:p.weekStartsOn)&&void 0!==s?s:null===(f=p.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,i.Z)(e),v=m.getDay(),y=6+(v<g?-7:0)-(v-g);return m.setDate(m.getDate()+y),m.setHours(23,59,59,999),m}},876:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9013),i=n(3882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}},1532:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(3882);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=n(9013);var a=n(1218),s=n(9702),c=n(7032),l=n(3324),u=n(7651);function d(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}const f=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return d("yy"===t?r%100:r,t.length)},h=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):d(n+1,2)},p=function(e,t){return d(e.getUTCDate(),t.length)},g=function(e,t){return d(e.getUTCHours()%12||12,t.length)},m=function(e,t){return d(e.getUTCHours(),t.length)},v=function(e,t){return d(e.getUTCMinutes(),t.length)},y=function(e,t){return d(e.getUTCSeconds(),t.length)},b=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return d(Math.floor(r*Math.pow(10,n-3)),t.length)};function w(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+d(o,2)}function x(e,t){return e%60==0?(e>0?"-":"+")+d(Math.abs(e)/60,2):_(e,t)}function _(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+d(Math.floor(i/60),2)+n+d(i%60,2)}const S={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return f(e,t)},Y:function(e,t,n,r){var i=(0,u.Z)(e,r),o=i>0?i:1-i;return"YY"===t?d(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):d(o,t.length)},R:function(e,t){return d((0,c.Z)(e),t.length)},u:function(e,t){return d(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return d(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return d(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return h(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return d(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,l.Z)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):d(i,t.length)},I:function(e,t,n){var r=(0,s.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):d(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):p(e,t)},D:function(e,t,n){var i=function(e){(0,r.Z)(1,arguments);var t=(0,o.Z)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=n-t.getTime();return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):d(i,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return d(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return d(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return d(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/12>
12=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return g(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):m(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):v(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):y(e,t)},S:function(e,t){return b(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return x(i);case"XXXX":case"XX":return _(i);default:return _(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return x(i);case"xxxx":case"xx":return _(i);default:return _(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(i,":");default:return"GMT"+_(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(i,":");default:return"GMT"+_(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return d(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return d((r._originalDate||e).getTime(),t.length)}};var C=n(7621),E=n(4262),O=n(5267),j=n(3946),k=n(4314),R=n(4941),N=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A=/^'([^]*?)'?$/,P=/''/g,D=/[a-zA-Z]/;function I(e,t,n){var s,c,l,u,d,f,h,p,g,m,v,y,b,w,x,_,I,M;(0,r.Z)(2,arguments);var L=String(t),$=(0,k.j)(),F=null!==(s=null!==(c=null==n?void 0:n.locale)&&void 0!==c?c:$.locale)&&void 0!==s?s:R.Z,B=(0,j.Z)(null!==(l=null!==(u=null!==(d=null!==(f=null==n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null==n||null===(h=n.locale)||void 0===h||null===(p=h.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==d?d:$.firstWeekContainsDate)&&void 0!==u?u:null===(g=$.locale)||void 0===g||null===(m=g.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==l?l:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=(0,j.Z)(null!==(v=null!==(y=null!==(b=null!==(w=null==n?void 0:n.weekStartsOn)&&void 0!==w?w:null==n||null===(x=n.locale)||void 0===x||null===(_=x.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==b?b:$.weekStartsOn)&&void 0!==y?y:null===(I=$.locale)||void 0===I||null===(M=I.options)||void 0===M?void 0:M.weekStartsOn)&&void 0!==v?v:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw new RangeError("locale must contain localize property");if(!F.formatLong)throw new RangeError("locale must contain formatLong property");var z=(0,o.Z)(e);if(!function(e){if((0,r.Z)(1,arguments),!function(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"===i(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=(0,o.Z)(e);return!isNaN(Number(t))}(z))throw new RangeError("Invalid time value");var U=(0,E.Z)(z),W=(0,a.Z)(z,U),q={firstWeekContainsDate:B,weekStartsOn:V,locale:F,_originalDate:z};return L.match(T).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,C.Z[t])(e,F.formatLong):e})).join("").match(N).map((function(r){if("''"===r)return"'";var i,o,a=r[0];if("'"===a)return(o=(i=r).match(A))?o[1].replace(P,"'"):i;var s=S[a];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!(0,O.Do)(r)||(0,O.qp)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,O.Iu)(r)||(0,O.qp)(r,t,String(e)),s(W,r,F.localize,q);
12if(a.match(D))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r})).join("")}},1942:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(5888),i=n(9013),o=n(3946),a=n(3882),s=n(4314);function c(e,t){var n,c,l,u,d,f,h,p;(0,a.Z)(1,arguments);var g=(0,i.Z)(e),m=g.getFullYear(),v=(0,s.j)(),y=(0,o.Z)(null!==(n=null!==(c=null!==(l=null!==(u=null==t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null==t||null===(d=t.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:v.firstWeekContainsDate)&&void 0!==c?c:null===(h=v.locale)||void 0===h||null===(p=h.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setFullYear(m+1,0,y),b.setHours(0,0,0,0);var w=(0,r.Z)(b,t),x=new Date(0);x.setFullYear(m,0,y),x.setHours(0,0,0,0);var _=(0,r.Z)(x,t);return g.getTime()>=w.getTime()?m+1:g.getTime()>=_.getTime()?m:m-1}},8486:(e,t,n)=>{function r(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{Z:()=>r})},6723:(e,t,n)=>{function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].test(s))return n}(c):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n].test(s))return n}(c);return a=e.valueCallback?e.valueCallback(l):l,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}n.d(t,{Z:()=>r})},3427:(e,t,n)=>{n.d(t,{Z:()=>d});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var s=n(8486);const c={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,s.Z)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,s.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
12ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};var l,u=n(6723);const d={code:"en-US",formatDistance:function(e,t,n){var i,o=r[e];return i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:c,match:{ordinalNumber:(l={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(l.matchPattern);if(!n)return null;var r=n[0],i=e.match(l.parsePattern);if(!i)return null;var o=l.valueCallback?l.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:(0,u.Z)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,u.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,u.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,u.Z)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,u.Z)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},9119:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9013),i=n(3882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(0,0,0,0),t}},2383:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9013),i=n(3882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setMinutes(0,0,0),t}},8717:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9013),i=n(3882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setSeconds(0,0),t}},3703:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9013),i=n(3882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},5888:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(9013),i=n(3946),o=n(3882),a=n(4314);function s(e,t){var n,s,c,l,u,d,f,h;(0,o.Z)(1,arguments);var p=(0,a.j)(),g=(0,i.Z)(null!==(n=null!==(s=null!==(c=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==c?c:p.weekStartsOn)&&void 0!==s?s:null===(f=p.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,r.Z)(e),v=m.getDay(),y=(v<g?7:0)+v-g;return m.setDate(m.getDate()-y),m.setHours(0,0,0,0),m}}
12,8148:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9013),i=n(3882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},7069:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(7349),i=n(3882),o=n(3946);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(t);return(0,r.Z)(e,-n)}},1218:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1820),i=n(3882),o=n(3946);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(t);return(0,r.Z)(e,-n)}},4559:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(3946),i=n(1640),o=n(3882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,-n)}},9319:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(3946),i=n(1593),o=n(3882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,-n)}},9013:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3882);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===i(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},4020:e=>{var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=i(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var i=o(n[0]);i!==n[0]&&(t[n[0]]=i)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},9996:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,c){(c=c||{}).arrayMerge=c.arrayMerge||i,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=r;var l=Array.isArray(n);return l===Array.isArray(e)?l?c.arrayMerge(e,n,c):function(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}(e,n,c):r(n,c)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var c=s;e.exports=c},2789:(e,t,n)=>{var r,i;n.dr("dijit/BackgroundIframe",e),r=[n,n(4387),n(9375),n(2239),n(2496),n(6618),n(1178),n(4784)],void 0===(i=function(e,t,r,i,o,a,s,c){c.add("config-bgIframe",(c("ie")||c("trident"))&&!/IEMobile\/10\.0/.test(navigator.userAgent));var l=new function(){var e=[];this.pop=function(){var t;if(e.length)(t=e.pop()).style.display="";else{if(c("ie")<9){var a="<iframe src='"+(r.dojoBlankHtmlUrl||n(5002)||'javascript:""')+"' role='presentation' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>";t=document.createElement(a)}else(t=i.create("iframe")).src='javascript:""',t.className="dijitBackgroun
12dIframe",t.setAttribute("role","presentation"),o.set(t,"opacity",.1);t.tabIndex=-1}return t},this.push=function(t){t.style.display="none",e.push(t)}};return t.BackgroundIframe=function(e){if(!e.id)throw new Error("no id");if(c("config-bgIframe")){var t=this.iframe=l.pop();e.appendChild(t),c("ie")<7||c("quirks")?(this.resize(e),this._conn=s(e,"resize",a.hitch(this,"resize",e))):o.set(t,{width:"100%",height:"100%"})}},a.extend(t.BackgroundIframe,{resize:function(e){this.iframe&&o.set(this.iframe,{width:e.offsetWidth+"px",height:e.offsetHeight+"px"})},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null),this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),l.push(this.iframe),delete this.iframe)}}),t.BackgroundIframe}.apply(t,r))||(e.exports=i)},2231:(e,t,n)=>{var r,i;n.dr("dijit/Destroyable",e),r=[n(9488),n(4238),n(7136)],void 0===(i=function(e,t,n){return n("dijit.Destroyable",null,{destroy:function(e){this._destroyed=!0},own:function(){var n=["destroyRecursive","destroy","remove"];return e.forEach(arguments,(function(r){var i,o=t.before(this,"destroy",(function(e){r[i](e)})),a=[];function s(){o.remove(),e.forEach(a,(function(e){e.remove()}))}r.then?(i="cancel",r.then(s,s)):e.forEach(n,(function(e){"function"==typeof r[e]&&(i||(i=e),a.push(t.after(r,e,s,!0)))}))}),this),arguments}})}.apply(t,r))||(e.exports=i)},7805:(e,t,n)=>{var r,i;n.dr("dijit/Tooltip",e),r=[n(9488),n(7136),n(3869),n(2495),n(8007),n(1120),n(2496),n(6618),n(3600),n(1178),n(4784),n(1670),n(7554),n(3033),n(7005),n(2789),n(2080),n(4387)],void 0===(i=function(e,t,n,r,i,o,a,s,c,l,u,d,f,h,p,g,m,v){var y=t("dijit._MasterTooltip",[h,p],{duration:d.defaultDuration,templateString:m,postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode),this.bgIframe=ne
12w g(this.domNode),this.fadeIn=n.fadeIn({node:this.domNode,duration:this.duration,onEnd:s.hitch(this,"_onShow")}),this.fadeOut=n.fadeOut({node:this.domNode,duration:this.duration,onEnd:s.hitch(this,"_onHide")})},show:function(e,t,n,r,i,o,c){if(!this.aroundNode||this.aroundNode!==t||this.containerNode.innerHTML!=e)if("playing"!=this.fadeOut.status()){this.containerNode.innerHTML=e,i&&this.set("textDir",i),this.containerNode.align=r?"right":"left";var l=f.around(this.domNode,t,n&&n.length?n:C.defaultPosition,!r,s.hitch(this,"orient")),u=l.aroundNodePos;"M"==l.corner.charAt(0)&&"M"==l.aroundCorner.charAt(0)?(this.connectorNode.style.top=u.y+(u.h-this.connectorNode.offsetHeight>>1)-l.y+"px",this.connectorNode.style.left=""):"M"==l.corner.charAt(1)&&"M"==l.aroundCorner.charAt(1)?this.connectorNode.style.left=u.x+(u.w-this.connectorNode.offsetWidth>>1)-l.x+"px":(this.connectorNode.style.left="",this.connectorNode.style.top=""),a.set(this.domNode,"opacity",0),this.fadeIn.play(),this.isShowingNow=!0,this.aroundNode=t,this.onMouseEnter=o||S,this.onMouseLeave=c||S}else this._onDeck=arguments},orient:function(e,t,n,r,i){this.connectorNode.style.top="";var a=r.h,s=r.w;e.className="dijitTooltip "+{"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[t+"-"+n],this.domNode.style.width="auto";var c=o.position(this.domNode);(u("ie")||u("trident"))&&(c.w+=2);var l=Math.min(Math.max(s,1),c.w);if(o.setMarginBox(this.domNode,{w:l}),"B"==n.charAt(0)&&"B"==t.charAt(0)){var d=o.position(e),f=this.connectorNode.offsetHeight;if(d.h>a){var h=a-(i.h+f>>1);this.connectorNode.style.top=h+"px",this.connectorNode.style.bottom=""}else this.connectorNode.style.bottom=Math.min(Math.max(i.h/2-f/2,0),d.h-f)+"px",this.connectorNode.style.top=""}else this.connectorNode.style.top="",this.connectorNode.style.bottom="";return Math.max(0,c.w-s)},_onShow:function(){u("ie")&&(this.domNode.style.filter="")},hide:function(e){this._onDeck&&this._onDeck[1]==e?this._onDeck=null:this.aroundNode===e&&(this.fadeIn.stop(),this.isShowingNow=!1,this.aroundNode=null,this.fadeOut.play()),this.onMouseEnter=this.onMouseLeave=S},_onHide:function(){this.domNode.style.cssText="",this.containerNode.innerHTML="",this._onDeck&&(this.show.apply(this,this._onDeck),this._onDeck=null)}});v.showTooltip=function(t,n,r,i,o,a,s){return r&&(r=e.map(r,(function(e){return{after:"after-centered",before:"before-centered"}[e]||e}))),C._masterTT||(v._masterTT=C._masterTT=new y),C._masterTT.show(t,n,r,i,o,a,s)},v.hideTooltip=function(e){return C._masterTT&&C._masterTT.hide(e)};var b="DORMANT",w="SHOW TIMER",x="SHOWING",_="HIDE TIMER";function S(){}var C=t("dijit.Tooltip",h,{label:"",showDelay:400,hideDelay:400,connectId:[],position:[],selector:"",_setConnectIdAttr:function(t){e.forEach(this._connections||[],(function(t){e.forEach(t,(function(e){e.remove()}))}),this),this._connectIds=e.filter(s.isArrayLike(t)?t:t?[t]:[],(function(e){return r.byId(e,this.ownerDocument)}),this),this._connections=e.map(this._connectIds,(function(e){var t=r.byId(e,this.ownerDocument),n=this.selector,i=n?function(e){return l.selector(n,e)}:function(e){return e},o=this;return[l(t,i(c.enter),(function(){o._onHover(this)})),l(t,i("focusin"),(function(){o._onHover(this)})),l(t,i(c.leave),s.hitch(o,"_onUnHover")),l(t,i("focusout"),s.hitch(o,"set","state",b))]}),this),this._set("connectId",t)},addTarget:function(t){var n=t.id||t;-1==e.indexOf(this._connectIds,n)&&this.set("connectId",this._connectIds.concat(n))},removeTarget:function(t){var n=t.id||t,r=e.indexOf(this._connectIds,n);r>=0&&(this._connectIds.splice(r,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments),i.add(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var t=this.connectId;e.forEach(s.isArrayLike(t)?t:[t],this.addTarget,this)},getContent:function(e){return this.label||this.domNode.innerHTML},state:b,_setStateAttr:function(e){if(!(this.state==e||e==w&&this.state==x||e==_&&this.state==b)){switch(this._hideTimer&&(this._hideTimer.remove(),delete this._hideTimer),this._showTimer&&(this._showTimer.remove(),delete this._showTimer),e){case b:this._connectNode&&(C.hide(this._connectNode),delete this._connectNode,this.onHide());break;case w:this.state!=x&&(this._showTimer=this.defer((function(){this.set("state",x)}),this.showDelay));break;case x:var t=this.getContent(this._connectNode);
12if(!t)return void this.set("state",b);C.show(t,this._connectNode,this.position,!this.isLeftToRight(),this.textDir,s.hitch(this,"set","state",x),s.hitch(this,"set","state",_)),this.onShow(this._connectNode,this.position);break;case _:this._hideTimer=this.defer((function(){this.set("state",b)}),this.hideDelay)}this._set("state",e)}},_onHover:function(e){this._connectNode&&e!=this._connectNode&&this.set("state",b),this._connectNode=e,this.set("state",w)},_onUnHover:function(e){this.set("state",_)},open:function(e){this.set("state",b),this._connectNode=e,this.set("state",x)},close:function(){this.set("state",b)},onShow:function(){},onHide:function(){},destroy:function(){this.set("state",b),e.forEach(this._connections||[],(function(t){e.forEach(t,(function(e){e.remove()}))}),this),this.inherited(arguments)}});return C._MasterTooltip=y,C.show=v.showTooltip,C.hide=v.hideTooltip,C.defaultPosition=["after-centered","before-centered"],C}.apply(t,r))||(e.exports=i)},6362:(e,t,n)=>{var r,i;n.dr("dijit/Viewport",e),r=[n(9546),n(1178),n(1232),n(4784),n(2153)],void 0===(i=function(e,t,n,r,i){var o,a=new e;return n((function(){var e=i.getBox();if(a._rlh=t(window,"resize",(function(){var t=i.getBox();
12e.h==t.h&&e.w==t.w||(e=t,a.emit("resize"))})),8==r("ie")){var n=screen.deviceXDPI;setInterval((function(){screen.deviceXDPI!=n&&(n=screen.deviceXDPI,a.emit("resize"))}),500)}r("ios")&&(t(document,"focusin",(function(e){o=e.target})),t(document,"focusout",(function(e){o=null})))})),a.getEffectiveBox=function(e){var t=i.getBox(e),n=o&&o.tagName&&o.tagName.toLowerCase();if(r("ios")&&o&&!o.readOnly&&("textarea"==n||"input"==n&&/^(color|email|number|password|search|tel|text|url)$/.test(o.type))){t.h*=0==orientation||180==orientation?.66:.4;var a=o.getBoundingClientRect();t.h=Math.max(t.h,a.top+a.height)}return t},a}.apply(t,r))||(e.exports=i)},3675:(e,t,n)=>{var r,i;n.dr("dijit/_AttachMixin",e),r=[n,n(9488),n(329),n(7136),n(6618),n(3600),n(1178),n(4298),n(4550)],void 0===(i=function(e,t,r,i,o,a,s,c,l){var u,d=o.delegate(c,{mouseenter:a.enter,mouseleave:a.leave,keypress:r._keypress}),f=i("dijit._AttachMixin",null,{constructor:function(){this._attachPoints=[],this._attachEvents=[]},buildRendering:function(){this.inherited(arguments),this._attachTemplateNodes(this.domNode),this._beforeFillContent()},_beforeFillContent:function(){},_attachTemplateNodes:function(e){for(var t=e;;)if(1==t.nodeType&&(this._processTemplateNode(t,(function(e,t){return e.getAttribute(t)}),this._attach)||this.searchContainerNode)&&t.firstChild)t=t.firstChild;else{if(t==e)return;for(;!t.nextSibling;)if((t=t.parentNode)==e)return;t=t.nextSibling}},_processTemplateNode:function(e,t,n){var r=!0,i=this.attachScope||this,a=t(e,"dojoAttachPoint")||t(e,"data-dojo-attach-point");if(a)for(var s,c=a.split(/\s*,\s*/);s=c.shift();)o.isArray(i[s])?i[s].push(e):i[s]=e,r="containerNode"!=s,this._attachPoints.push(s);var l=t(e,"dojoAttachEvent")||t(e,"data-dojo-attach-event");
12if(l)for(var u,d=l.split(/\s*,\s*/),f=o.trim;u=d.shift();)if(u){var h=null;if(-1!=u.indexOf(":")){var p=u.split(":");u=f(p[0]),h=f(p[1])}else u=f(u);h||(h=u),this._attachEvents.push(n(e,u,o.hitch(i,h)))}return r},_attach:function(e,t,r){return t="dijitclick"==(t=t.replace(/^on/,"").toLowerCase())?u||(u=n(2473)):d[t]||t,s(e,t,r)},_detachTemplateNodes:function(){var e=this.attachScope||this;t.forEach(this._attachPoints,(function(t){delete e[t]})),this._attachPoints=[],t.forEach(this._attachEvents,(function(e){e.remove()})),this._attachEvents=[]},destroyRendering:function(){this._detachTemplateNodes(),this.inherited(arguments)}});return o.extend(l,{dojoAttachEvent:"",dojoAttachPoint:""}),f}.apply(t,r))||(e.exports=i)},6447:(e,t,n)=>{var r,i;n.dr("dijit/_Contained",e),r=[n(7136),n(9724)],void 0===(i=function(e,t){return e("dijit._Contained",null,{_getSibling:function(e){var t=this.getParent();return t&&t._getSiblingOfChild&&t._getSiblingOfChild(this,"previous"==e?-1:1)||null},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var e=this.getParent();return e&&e.getIndexOfChild?e.getIndexOfChild(this):-1}})}.apply(t,r))||(e.exports=i)},3945:(e,t,n)=>{var r,i;n.dr("dijit/_Container",e),r=[n(9488),n(7136),n(2239),n(4576)],void 0===(i=function(e,t,n,r){return t("dijit._Container",null,{buildRendering:function(){this.inherited(arguments),this.containerNode||(this.containerNode=this.domNode)},addChild:function(e,t){var r=this.containerNode;if(t>0){for(r=r.firstChild;t>0;)1==r.nodeType&&t--,r=r.nextSibling;r?t="before":(r=this.containerNode,t="last")}n.place(e.domNode,r,t),this._started&&!e._started&&e.startup()},removeChild:function(e){if("number"==typeof e&&(e=this.getChildren()[e]),e){var t=e.domNode;t&&t.parentNode&&t.parentNode.removeChild(t)}},hasChildren:function(){return this.getChildren().length>0},_getSiblingOfChild:function(t,n){var r=this.getChildren();return r[e.indexOf(r,t)+n]},getIndexOfChild:function(t){return e.indexOf(this.getChildren(),t)}})}.apply(t,r))||(e.exports=i)},4516:(e,t,n)=>{var r,i;n.dr("dijit/_FocusMixin",e),r=[n(1282),n(4550),n(7136),n(6618)],void 0===(i=function(e,t,n,r){return r.extend(t,{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}}),n("dijit._FocusMixin",null,{_focusManager:e})}.apply(t,r))||(e.exports=i)},5813:(e,t,n)=>{var r,i;n.dr("dijit/_OnDijitClickMixin",e),r=[n(1178),n(9488),n(5408),n(7136),n(9687),n(2473)],void 0===(i=function(e,t,n,r,i,o){var a=r("dijit._OnDijitClickMixin",null,{connect:function(e,t,n){return this.inherited(arguments,[e,"ondijitclick"==t?o:t,n])}});return a.a11yclick=o,a}.apply(t,r))||(e.exports=i)},7005:(e,t,n)=>{var r,i;n.dr("dijit/_TemplatedMixin",e),r=[n(8817),n(7136),n(2239),n(6618),n(1178),n(4784),n(912),n(3675)],void 0===(i=function(e,t,n,r,i,o,a,s){var c=t("dijit._TemplatedMixin",s,{templateString:null,templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(e){var t=this.declaredClass,n=this;return a.substitute(e,this,(function(e,i){if("!"==i.charAt(0)&&(e=r.getObject(i.substr(1),!1,n)),void 0===e)throw new Error(t+" template:"+i);return null==e?"":"!"==i.charAt(0)?e:this._escapeValue(""+e)}),this)},_escapeValue:function(e){return e.replace(/["'<>&]/g,(function(e){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}[e]}))},buildRendering:function(){if(!this._rendered){this.templateString||(this.templateString=e(this.templatePath,{sanitize:!0}));var t,i=c.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument);if(r.isString(i)){if(1!=(t=n.toDom(this._stringRepl(i),this.ownerDocument)).nodeType)throw new Error("Invalid template: "+i)}else t=i.cloneNode(!0);this.domNode=t}this.inherited(arguments),this._rendered||this._fillContent(this.srcNodeRef),this._rendered=!0},_fillContent:function(e){var t=this.containerNode;if(e&&t)for(;e.hasChildNodes();)t.appendChild(e.firstChild)}});return c._templateCache={},c.getCachedTemplate=function(e,t,r){var i=c._templateCache,o=e,s=i[o];if(s){try{if(!s.ownerDocument||s.ownerDocument==(r||document))return s}catch(e){}n.destroy(s)}if(e=a.trim(e),t||e.match(/\$\{([^\}]+)\}/g))return i[o]=e;var l=n.toDom(e,r);if(1!=l.nodeType)throw new Error("Invalid template: "+e);return i[o]=l},o("ie")&&i(window,"unload",(function(){var e=c._templateCache;for(var t in e){var r=e[t];"object"==typeof r&&n.destroy(r),delete e[t]}})),c}.apply(t,r))||(e.exports=i)}
12,3033:(e,t,n)=>{var r,i;n.dr("dijit/_Widget",e),r=[n(4238),n(9375),n(329),n(7136),n(9687),n(4576),n(6618),n(6275),n(455),n(9724),n(4550),n(5813),n(4516),n(6147),n(196)],void 0===(i=function(e,t,n,r,i,o,a,s,c,l,u,d,f){function h(){}function p(e){return function(t,r,i,o){return t&&"string"==typeof r&&t[r]==h?t.on(r.substring(2).toLowerCase(),a.hitch(i,o)):e.apply(n,arguments)}}e.around(n,"connect",p),o.connect&&e.around(o,"connect",p);var g=r("dijit._Widget",[u,d,f],{onClick:h,onDblClick:h,onKeyDown:h,onKeyPress:h,onKeyUp:h,onMouseDown:h,onMouseMove:h,onMouseOut:h,onMouseOver:h,onMouseLeave:h,onMouseEnter:h,onMouseUp:h,constructor:function(e){for(var t in this._toConnect={},e)this[t]===h&&(this._toConnect[t.replace(/^on/,"").toLowerCase()]=e[t],delete e[t])},postCreate:function(){for(var e in this.inherited(arguments),this._toConnect)this.on(e,this._toConnect[e]);delete this._toConnect},on:function(e,t){return this[this._onMap(e)]===h?n.connect(this.domNode,e.toLowerCase(),this,t):this.inherited(arguments)},_setFocusedAttr:function(e){this._focused=e,this._set("focused",e)},setAttribute:function(e,t){o.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0"),this.set(e,t)},attr:function(e,t){return arguments.length>=2||"object"==typeof e?this.set.apply(this,arguments):this.get(e)},getDescendants:function(){return o.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0"),this.containerNode?s("[widgetId]",this.containerNode).map(l.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}});return g}.apply(t,r))||(e.exports=i)},4550:(e,t,n)=>{var r,i;n.dr("dijit/_WidgetBase",e),r=[n,n(9488),n(4238),n(9375),n(329),n(7136),n(2495),n(2860),n(8007),n(2239),n(1120),n(2496),n(9687),n(4576),n(6618),n(1178),n(455),n(2827),n(1984),n(8833),n(2231),n(6606),n(9724)],void 0===(i=function(e,t,r,i,o,a,s,c,l,u,d,f,h,p,g,m,v,y,b,w,x,_,S){h.add("dijit-legacy-requires",!p.isAsync),h.add("dojo-bidi",!1);var C={};function E(e){return function(t){c[t?"set":"remove"](this.domNode,e,t),this._set(e,t)}}var O=a("dijit._WidgetBase",[y,x],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:E("lang"),dir:"",_setDirAttr:E("dir"),class:"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(e){this._set("ownerDocument",e)},attributeMap:{},_blankGif:i.blankGif||n(9042),textDir:"",_introspect:function(){var e=this.constructor;if(!e._setterAttrs){var t=e.prototype,n=e._setterAttrs=[],r=e._onMap={};for(var i in t.attributeMap)n.push(i);for(i in t)/^on/.test(i)&&(r[i.substring(2).toLowerCase()]=i),/^_set[A-Z](.*)Attr$/.test(i)&&(i=i.charAt(4).toLowerCase()+i.substr(5,i.length-9),t.attributeMap&&i in t.attributeMap||n.push(i))}},postscript:function(e,t){this.create(e,t)},create:function(e,t){var n;if(this._introspect(),this.srcNodeRef=s.byId(t),this._connects=[],this._supportingWidgets=[],this.srcNodeRef&&this.srcNodeRef.id&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id),e&&(this.params=e,g.mixin(this,e)),this.postMixInProperties(),this.id||(this.id=S.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id),this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document),this.ownerDocumentBody=w.body(this.ownerDocument),S.add(this),this.buildRendering(),this.domNode){this._applyAttributes();var r=this.srcNodeRef;r&&r.parentNode&&this.domNode!==r&&(r.parentNode.replaceChild(this.domNode,r),n=!0),this.domNode.setAttribute("widgetId",this.id)}this.postCreate(),n&&delete this.srcNodeRef,this._created=!0},_applyAttributes:function(){var e={};for(var n in this.params||{})e[n]=this._get(n);for(n in t.forEach(this.constructor._setterAttrs,(function(t){if(!(t in e)){var n=this._get(t);n&&this.set(t,n)}}),this),e)this.set(n,e[n])},postMixInProperties:function(){},buildRendering:function(){if(this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div")),this.baseClass){var e=this.baseClass.split(" ");this.isLeftToRight()||(e=e.concat(t.map(e,(function(e){return e+"Rtl"})))),l.add(this.domNode,e)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,t.forEach(this.getChildren(),(function(e){e._started||e._destroyed||!g.isFunction(e.startup)||(e.startup(),e._started=!0)})))},destroyRecursive:function(e){this._beingDestroyed=!0,this.destroyDescendants(e),this.destroy(e)},destroy:function(e){function n(t){t.destroyRecursive?t.destroyRecursive(e):t.destroy&&t.destroy(e)}this._beingDestroyed=!0,this.uninitialize(),t.forEach(this._connects,g.hitch(this,"disconnect")),t.forEach(this._supportingWidgets,n),this.domNode&&t.forEach(S.findWidgets(this.domNode,this.containerNode),n),this.destroyRendering(e),S.remove(this.id
12),this._destroyed=!0},destroyRendering:function(e){this.bgIframe&&(this.bgIframe.destroy(e),delete this.bgIframe),this.domNode&&(e?c.remove(this.domNode,"widgetId"):u.destroy(this.domNode),delete this.domNode),this.srcNodeRef&&(e||u.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(e){t.forEach(this.getChildren(),(function(t){t.destroyRecursive&&t.destroyRecursive(e)}))},uninitialize:function(){return!1},_setStyleAttr:function(e){var t=this.domNode;g.isObject(e)?f.set(t,e):t.style.cssText?t.style.cssText+="; "+e:t.style.cssText=e,this._set("style",e)},_attrToDom:function(e,n,r){r=arguments.length>=3?r:this.attributeMap[e],t.forEach(g.isArray(r)?r:[r],(function(t){var r=this[t.node||t||"domNode"];switch(t.type||"attribute"){case"attribute":g.isFunction(n)&&(n=g.hitch(this,n));var i=t.attribute?t.attribute:/^on[A-Z][a-zA-Z]*$/.test(e)?e.toLowerCase():e;r.tagName?c.set(r,i,n):r.set(i,n);break;case"innerText":r.innerHTML="",r.appendChild(this.ownerDocument.createTextNode(n));break;case"textContent":r.textContent=n;break;case"innerHTML":r.innerHTML=n;break;case"class":l.replace(r,n,this[e]);break;case"toggleClass":l.toggle(r,t.className||e,n)}}),this)},get:function(e){var t=this._getAttrNames(e);return this[t.g]?this[t.g]():this._get(e)},set:function(e,t){if("object"==typeof e){for(var n in e)this.set(n,e[n]);return this}var r=this._getAttrNames(e),i=this[r.s];if(g.isFunction(i))var o=i.apply(this,Array.prototype.slice.call(arguments,1));else{var a=this.focusNode&&!g.isFunction(this.focusNode)?"focusNode":"domNode",s=this[a]&&this[a].tagName,c=s&&(C[s]||(C[s]=function(e){var t={};for(var n in e)t[n.toLowerCase()]=!0;return t}(this[a]))),l=e in this.attributeMap?this.attributeMap[e]:r.s in this?this[r.s]:c&&r.l in c&&"function"!=typeof t||/^aria-|^data-|^role$/.test(e)?a:null;null!=l&&this._attrToDom(e,t,l),this._set(e,t)}return o||this},_attrPairNames:{},_getAttrNames:function(e){var t=this._attrPairNames;if(t[e])return t[e];var n=e.replace(/^[a-z]|-[a-zA-Z]/g,(function(e){return e.charAt(e.length-1).toUpperCase()}));return t[e]={n:e+"Node",s:"_set"+n+"Attr",g:"_get"+n+"Attr",l:n.toLowerCase()}},_set:function(e,t){var n,r,i=this[e];this[e]=t,!this._created||(n=i)===(r=t)||n!=n&&r!=r||(this._watchCallbacks&&this._watchCallbacks(e,i,t),this.emit("attrmodified-"+e,{detail:{prevValue:i,newValue:t}}))},_get:function(e){return this[e]},emit:function(e,t,n){void 0===(t=t||{}).bubbles&&(t.bubbles=!0),void 0===t.cancelable&&(t.cancelable=!0),t.detail||(t.detail={}),t.detail.widget=this;var r,i=this["on"+e];return i&&(r=i.apply(this,n||[t])),this._started&&!this._beingDestroyed&&m.emit(this.domNode,e.toLowerCase(),t),r},on:function(e,t){var n=this._onMap(e);return n?r.after(this,n,t,!0):this.own(m(this.domNode,e,t))[0]},_onMap:function(e){var t=this.constructor,n=t._onMap;if(!n)for(var r in n=t._onMap={},t.prototype)/^on/.test(r)&&(n[r.replace(/^on/,"").toLowerCase()]=r);return n["string"==typeof e&&e.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?S.findWidgets(this.containerNode):[]},getParent:function(){return S.getEnclosingWidget(this.domNode.parentNode)},connect:function(e,t,n){return this.own(o.connect(e,t,this,n))[0]},disconnect:function(e){e.remove()},subscribe:function(e,t){return this.own(b.subscribe(e,g.hitch(this,t)))[0]},unsubscribe:function(e){e.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir.toLowerCase():d.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&"none"!=f.get(this.domNode,"display")},placeAt:function(e,t){var n=!e.tagName&&S.byId(e);if(!n||!n.addChild||t&&"number"!=typeof t){var r=n&&"domNode"in n?n.containerNode&&!/after|before|replace/.test(t||"")?n.containerNode:n.domNode:s.byId(e,this.ownerDocument);u.place(this.domNode,r,t),!this._started&&(this.getParent()||{})._started&&this.startup()}else n.addChild(this,t);return this},defer:function(e,t){var n=setTimeout(g.hitch(this,(function(){n&&(n=null,this._destroyed||g.hitch(this,e)())})),t||0);return{remove:function(){return n&&(clearTimeout(n),n=null),null}}}});return O}.apply(t,r))||(e.exports=i)},1670:(e,t,n)=>{var r,i;n.dr("dijit/_base/manager",e),r=[n(9488),n(9375),n(6618),n(9724),n(4387)],i=function(e,t,n,r,i){var o={};return e.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],(function(e){o[e]=r[e]})),n.mixin(o,{defaultDuration:t.defaultDuration||200}
12),n.mixin(i,o),i}.apply(t,r),void 0===i||(e.exports=i)},584:(e,t,n)=>{var r,i;n.dr("dijit/a11y",e),r=[n(9488),n(2495),n(2860),n(2496),n(6618),n(4784),n(4387)],void 0===(i=function(e,t,n,r,i,o,a){var s,c={_isElementShown:function(e){var t=r.get(e);return"hidden"!=t.visibility&&"collapsed"!=t.visibility&&"none"!=t.display&&"hidden"!=n.get(e,"type")},hasDefaultTabStop:function(e){switch(e.nodeName.toLowerCase()){case"a":return n.has(e,"href");case"area":case"button":case"input":case"object":case"select":case"textarea":return!0;case"iframe":var t;try{var r=e.contentDocument;if("designMode"in r&&"on"==r.designMode)return!0;t=r.body}catch(n){try{t=e.contentWindow.document.body}catch(e){return!1}}return t&&("true"==t.contentEditable||t.firstChild&&"true"==t.firstChild.contentEditable);default:return"true"==e.contentEditable}},effectiveTabIndex:function(e){return n.get(e,"disabled")?s:n.has(e,"tabIndex")?+n.get(e,"tabIndex"):c.hasDefaultTabStop(e)?0:s},isTabNavigable:function(e){return c.effectiveTabIndex(e)>=0},isFocusable:function(e){return c.effectiveTabIndex(e)>=-1},_getTabNavigable:function(e){var t,r,i,a,s,l,u={};function d(e){return e&&"input"==e.tagName.toLowerCase()&&e.type&&"radio"==e.type.toLowerCase()&&e.name&&e.name.toLowerCase()}var f=c._isElementShown,h=c.effectiveTabIndex,p=function(e){for(var c=e.firstChild;c;c=c.nextSibling)if(!(1!=c.nodeType||o("ie")<=9&&"HTML"!==c.scopeName)&&f(c)){var g=h(c);if(g>=0){0==g?(t||(t=c),r=c):g>0&&((!i||g<a)&&(a=g,i=c),(!s||g>=l)&&(l=g,s=c));var m=d(c);n.get(c,"checked")&&m&&(u[m]=c)}"SELECT"!=c.nodeName.toUpperCase()&&p(c)}};function g(e){return u[d(e)]||e}return f(e)&&p(e),{first:g(t),last:g(r),lowest:g(i),highest:g(s)}},getFirstInTabbingOrder:function(e,n){var r=c._getTabNavigable(t.byId(e,n));return r.lowest?r.lowest:r.first},getLastInTabbingOrder:function(e,n){var r=c._getTabNavigable(t.byId(e,n));return r.last?r.last:r.highest}};return i.mixin(a,c),c}.apply(t,r))||(e.exports=i)},2473:(e,t,n)=>{var r,i;n.dr("dijit/a11yclick",e),r=[n(5408),n(3600),n(1178),n(4298)],void 0===(i=function(e,t,n,r){function i(t){if((t.keyCode===e.ENTER||t.keyCode===e.SPACE)&&!/input|button|textarea/i.test(t.target.nodeName))for(var n=t.target;n;n=n.parentNode)if(n.dojoClick)return!0}var o;n(document,"keydown",(function(e){i(e)?(o=e.target,e.preventDefault()):o=null})),n(document,"keyup",(function(e){i(e)&&e.target==o&&(o=null,n.emit(e.target,"click",{cancelable:!0,bubbles:!0,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,altKey:e.altKey,_origType:e.type}))}));var a=function(e,t){return e.dojoClick=!0,n(e,"click",t)};return a.click=a,a.press=function(i,o){var a=n(i,r.press,(function(e){("mousedown"!=e.type||t.isLeft(e))&&o(e)})),s=n(i,"keydown",(function(t){t.keyCode!==e.ENTER&&t.keyCode!==e.SPACE||o(t)}));return{remove:function(){a.remove(),s.remove()}}},a.release=function(i,o){var a=n(i,r.release,(function(e){("mouseup"!=e.type||t.isLeft(e))&&o(e)})),s=n(i,"keyup",(function(t){t.keyCode!==e.ENTER&&t.keyCode!==e.SPACE||o(t)}));return{remove:function(){a.remove(),s.remove()}}},a.move=r.move,a}.apply(t,r))||(e.exports=i)},1282:(e,t,n)=>{var r,i;n.dr("dijit/focus",e),r=[n(4238),n(7136),n(2495),n(2860),n(8007),n(2239),n(9546),n(6618),n(1178),n(1232),n(4784),n(2827),n(8833),n(2153),n(584),n(9724),n(4387)],void 0===(i=function(e,t,n,r,i,o,a,s,c,l,u,d,f,h,p,g,m){var v,y,b=new(t([d,a],{curNode:null,activeStack:[],constructor:function(){var t=s.hitch(this,(function(e){n.isDescendant(this.curNode,e)&&this.set("curNode",null),n.isDescendant(this.prevNode,e)&&this.set("prevNode",null)}));e.before(o,"empty",t),e.before(o,"destroy",t)},registerIframe:function(e){return this.registerWin(e.contentWindow,e)},registerWin:function(e,t){var n=this,r=e.document&&e.document.body;if(r){var i=u("pointer-events")?"pointerdown":u("MSPointer")?"MSPointerDown":u("touch-events")?"mousedown, touchstart":"mousedown",o=c(e.document,i,(function(e){e&&e.target&&null==e.target.parentNode||n._onTouchNode(t||e.target,"mouse")})),a=c(r,"focusin",(function(e){if(e.target.tagName){var r=e.target.tagName.toLowerCase();"#document"!=r&&"body"!=r&&(p.isFocusable(e.target)?n._onFocusNode(t||e.target):n._onTouchNode(t||e.target))}})),s=c(r,"focusout",(function(e){n._onBlurNode(t||e.target)}));return{remove:function(){o.remove(),a.remove(),s.remove(),o=a=s=null,r=null}}}},_onBlurNode:function(e){var t=(new Date).getTime();t<v+100||(this._clearFocusTimer&&clearTimeout(this._clearFocusTimer),this._clearFocusTimer=setTimeout(s.hitch(this,(function(){this.set("prevNode",this.curNode),this.set("curNode",null)})),0),this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),t<y+100||(this._clearActiveWidgetsTimer=setTimeout(s.hitch(this,(function(){delete this._clearActiveWidgetsTimer,this._setStack([])})),0)))},_onTouchNode:function(e,t){y=(new Date).getTime(),this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer),i.contains(e,"dijitPopup")&&(e=e.firstChild);var n=[];try{for(;e;){var o=r.get(e,"dijitPopupParent");
12if(o)e=g.byId(o).domNode;else if(e.tagName&&"body"==e.tagName.toLowerCase()){if(e===f.body())break;e=h.get(e.ownerDocument).frameElement}else{var a=e.getAttribute&&e.getAttribute("widgetId"),s=a&&g.byId(a);!s||"mouse"==t&&s.get("disabled")||n.unshift(a),e=e.parentNode}}}catch(e){}this._setStack(n,t)},_onFocusNode:function(e){e&&9!=e.nodeType&&(v=(new Date).getTime(),this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),delete this._clearFocusTimer),this._onTouchNode(e),e!=this.curNode&&(this.set("prevNode",this.curNode),this.set("curNode",e)))},_setStack:function(e,t){var n=this.activeStack,r=n.length-1,i=e.length-1;if(e[i]!=n[r]){var o,a;for(this.set("activeStack",e),a=r;a>=0&&n[a]!=e[a];a--)(o=g.byId(n[a]))&&(o._hasBeenBlurred=!0,o.set("focused",!1),o._focusManager==this&&o._onBlur(t),this.emit("widget-blur",o,t));for(a++;a<=i;a++)(o=g.byId(e[a]))&&(o.set("focused",!0),o._focusManager==this&&o._onFocus(t),this.emit("widget-focus",o,t))}},focus:function(e){if(e)try{e.focus()}catch(e){}}}));for(var w in l((function(){var e=b.registerWin(h.get(document));u("ie")&&c(window,"unload",(function(){e&&(e.remove(),e=null)}))})),m.focus=function(e){b.focus(e)},b)/^_/.test(w)||(m.focus[w]="function"==typeof b[w]?s.hitch(b,w):b[w]);return b.watch((function(e,t,n){m.focus[e]=n})),b}.apply(t,r))||(e.exports=i)},196:(e,t,n)=>{var r,i;n.dr("dijit/hccss",e),r=[n(8007),n(7758),n(1232),n(8833)],void 0===(i=function(e,t,n,r){return n((function(){t("highcontrast")&&e.add(r.body(),"dijit_a11y")})),t}.apply(t,r))||(e.exports=i)},4387:(e,t,n)=>{var r,i;n.dr("dijit/main",e),r=[n(4576)],void 0===(i=function(e){return e.dijit}.apply(t,r))||(e.exports=i)},7554:(e,t,n)=>{var r,i;n.dr("dijit/place",e),r=[n(9488),n(1120),n(2496),n(4576),n(8833),n(6362),n(4387)],void 0===(i=function(e,t,n,r,i,o,a){function s(r,a,s,c){var l=o.getEffectiveBox(r.ownerDocument);r.parentNode&&"body"==String(r.parentNode.tagName).toLowerCase()||i.body(r.ownerDocument).appendChild(r);var u=null;e.some(a,(function(e){var n=e.corner,i=e.pos,o=0,a={w:{L:l.l+l.w-i.x,R:i.x-l.l,M:l.w}[n.charAt(1)],h:{T:l.t+l.h-i.y,B:i.y-l.t,M:l.h}[n.charAt(0)]},d=r.style;if(d.left=d.right="auto",s){var f=s(r,e.aroundCorner,n,a,c);o=void 0===f?0:f}var h=r.style,p=h.display,g=h.visibility;"none"==h.display&&(h.visibility="hidden",h.display="");var m=t.position(r);h.display=p,h.visibility=g;var v={L:i.x,R:i.x-m.w,M:Math.max(l.l,Math.min(l.l+l.w,i.x+(m.w>>1))-m.w)}[n.charAt(1)],y={T:i.y,B:i.y-m.h,M:Math.max(l.t,Math.min(l.t+l.h,i.y+(m.h>>1))-m.h)}[n.charAt(0)],b=Math.max(l.l,v),w=Math.max(l.t,y),x=Math.min(l.l+l.w,v+m.w)-b,_=Math.min(l.t+l.h,y+m.h)-w;return o+=m.w-x+(m.h-_),(null==u||o<u.overflow)&&(u={corner:n,aroundCorner:e.aroundCorner,x:b,y:w,w:x,h:_,overflow:o,spaceAvailable:a}),!o})),u.overflow&&s&&s(r,u.aroundCorner,u.corner,u.spaceAvailable,c);var d=u.y,f=u.x,h=i.body(r.ownerDocument);/relative|absolute/.test(n.get(h,"position"))&&(d-=n.get(h,"marginTop"),f-=n.get(h,"marginLeft"));var p=r.style;return p.top=d+"px",p.left=f+"px",p.right="auto",u}var c={TL:"BR",TR:"BL",BL:"TR",BR:"TL"},l={at:function(t,n,r,i,o){return s(t,e.map(r,(function(e){var t={corner:e,aroundCorner:c[e],pos:{x:n.x,y:n.y}};return i&&(t.pos.x+="L"==e.charAt(1)?i.x:-i.x,t.pos.y+="T"==e.charAt(0)?i.y:-i.y),t})),o)},around:function(i,o,a,c,l){var u;if("string"==typeof o||"offsetWidth"in o||"ownerSVGElement"in o){if(u=t.position(o,!0),/^(above|below)/.test(a[0])){var d=t.getBorderExtents(o),f=o.firstChild?t.getBorderExtents(o.firstChild):{t:0,l:0,b:0,r:0},h=t.getBorderExtents(i),p=i.firstChild?t.getBorderExtents(i.firstChild):{t:0,l:0,b:0,r:0};u.y+=Math.min(d.t+f.t,h.t+p.t),u.h-=Math.min(d.t+f.t,h.t+p.t)+Math.min(d.b+f.b,h.b+p.b)}}else u=o;if(o.parentNode)for(var g="absolute"==n.getComputedStyle(o).position,m=o.parentNode;m&&1==m.nodeType&&"BODY"!=m.nodeName;){var v=t.position(m,!0),y=n.getComputedStyle(m);if(/relative|absolute/.test(y.position)&&(g=!1),!g&&/hidden|auto|scroll/.test(y.overflow)){var b=Math.min(u.y+u.h,v.y+v.h),w=Math.min(u.x+u.w,v.x+v.w);u.x=Math.max(u.x,v.x),u.y=Math.max(u.y,v.y),u.h=b-u.y,u.w=w-u.x}"absolute"==y.position&&(g=!0),m=m.parentNode}var x=u.x,_=u.y,S="w"in u?u.w:u.w=u.width,C="h"in u?u.h:(r.deprecated("place.around: dijit/place.__Rectangle: { x:"+x+", y:"+_+", height:"+u.height+", width:"+S+" } has been deprecated.  Please use { x:"+x+", y:"+_+", h:"+u.height+", w:"+S+" }","","2.0"),u.h=u.height),E=[];function O(e,t){E.push({aroundCorner:e,corner:t,pos:{x:{L:x,R:x+S,M:x+(S>>1)}[e.charAt(1)],y:{T:_,B:_+C,M:_+(C>>1)}[e.charAt(0)]}})}e.forEach(a,(function(e){var t=c;switch(e){case"above-centered":O("TM","BM");break;case"below-centered":O("BM","TM");break;case"after-centered":t=!t;case"before-centered":O(t?"ML":"MR",t?"MR":"ML");break;case"after":t=!t;case"before":O(t?"TL":"TR",t?"TR":"TL"),O(t?"BL":"BR",t?"BR":"BL");break;case"below-alt":t=!t;case"below":O(t?"BL":"BR",t?"TL":"TR"),O(t?"BR":"BL",t?"TR":"TL");break;case"above-alt":t=!t;case"above":O(t?"TL":"TR",t?"BL":"BR"),O(t?"TR":"TL",t?"BR":"BL");break;default:O(e.aroundCorner,e.corner)}}));var j=s(i,E,l,{w:S,h:C});return j.aroundNodePos=u,j}};return a.place=l}.apply(t,r))||(e.exports=i)},9724:(e,t,n)=>{var r,i;n.dr("dijit/registry",e),r=[n(9488),n(8833),n(4387)],void 0===(i=function(e,t,n){var r={},i={},o={length:0,add:function(e){if(i[e.id])throw new Error("Tried to register widget with i
12d=="+e.id+" but that id is already registered");i[e.id]=e,this.length++},remove:function(e){i[e]&&(delete i[e],this.length--)},byId:function(e){return"string"==typeof e?i[e]:e},byNode:function(e){return i[e.getAttribute("widgetId")]},toArray:function(){var e=[];for(var t in i)e.push(i[t]);return e},getUniqueId:function(e){var t;do{t=e+"_"+(e in r?++r[e]:r[e]=0)}while(i[t]);return"dijit"==n._scopeName?t:n._scopeName+"_"+t},findWidgets:function(e,t){var n=[];return function e(r){for(var o=r.firstChild;o;o=o.nextSibling)if(1==o.nodeType){var a=o.getAttribute("widgetId");if(a){var s=i[a];s&&n.push(s)}else o!==t&&e(o)}}(e),n},_destroyAll:function(){n._curFocus=null,n._prevFocus=null,n._activeStack=[],e.forEach(o.findWidgets(t.body()),(function(e){e._destroyed||(e.destroyRecursive?e.destroyRecursive():e.destroy&&e.destroy())}))},getEnclosingWidget:function(e){for(;e;){var t=1==e.nodeType&&e.getAttribute("widgetId");if(t)return i[t];e=e.parentNode}return null},_hash:i};return n.registry=o,o}.apply(t,r))||(e.exports=i)},2827:(e,t,n)=>{var r,i;n.dr("dojo/Stateful",e),r=[n(7136),n(6618),n(9488),n(7112)],void 0===(i=function(e,t,n,r){return e("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(e){var t=this._attrPairNames;return t[e]?t[e]:t[e]={s:"_"+e+"Setter",g:"_"+e+"Getter"}},postscript:function(e){e&&this.set(e)},_get:function(e,t){return"function"==typeof this[t.g]?this[t.g]():this[e]},get:function(e){return this._get(e,this._getAttrNames(e))},set:function(e,t){if("object"==typeof e){for(var n in e)e.hasOwnProperty(n)&&"_watchCallbacks"!=n&&this.set(n,e[n]);return this}var i,o=this._getAttrNames(e),a=this._get(e,o),s=this[o.s];if("function"==typeof s?i=s.apply(this,Array.prototype.slice.call(arguments,1)):this[e]=t,this._watchCallbacks){var c=this;r(i,(function(){c._watchCallbacks(e,a,t)}))}return this},_changeAttrValue:function(e,t){var n=this.get(e);return this[e]=t,this._watchCallbacks&&this._watchCallbacks(e,n,t),this},watch:function(e,t){var r=this._watchCallbacks;if(!r){var i=this;r=this._watchCallbacks=function(e,t,n,o){var a=function(r){if(r)for(var o=0,a=(r=r.slice()).length;o<a;o++)r[o].call(i,e,t,n)};a(r["_"+e]),o||a(r["*"])}}t||"function"!=typeof e?e="_"+e:(t=e,e="*");var o=r[e];"object"!=typeof o&&(o=r[e]=[]),o.push(t);var a={};return a.unwatch=a.remove=function(){var e=n.indexOf(o,t);e>-1&&o.splice(e,1)},a}})}.apply(t,r))||(e.exports=i)},8817:(e,t,n)=>{var r,i;n.dr("dojo/cache",e),r=[n(4576),n(6912)],void 0===(i=function(e){return e.cache}.apply(t,r))||(e.exports=i)}
12,7399:(e,t,n)=>{var r,i;n.dr("dojo/fx",e),r=[n(6618),n(9546),n(4576),n(9488),n(4238),n(3869),n(2495),n(2496),n(1120),n(455),n],void 0===(i=function(e,t,r,i,o,a,s,c,l,u,d){r.isAsync||u(0,(function(){n.dj("dojo")(["./fx/Toggler"])}));var f=r.fx={},h={_fire:function(e,t){return this[e]&&this[e].apply(this,t||[]),this}},p=function(e){this._index=-1,this._animations=e||[],this._current=this._onAnimateCtx=this._onEndCtx=null,this.duration=0,i.forEach(this._animations,(function(e){e&&(void 0!==e.duration&&(this.duration+=e.duration),e.delay&&(this.duration+=e.delay))}),this)};p.prototype=new t,e.extend(p,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){this._onAnimateCtx.remove(),this._onEndCtx.remove(),this._onAnimateCtx=this._onEndCtx=null,this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=o.after(this._current,"onAnimate",e.hitch(this,"_onAnimate"),!0),this._onEndCtx=o.after(this._current,"onEnd",e.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(t,n){if(this._current||(this._current=this._animations[this._index=0]),!n&&"playing"==this._current.status())return this;var r=o.after(this._current,"beforeBegin",e.hitch(this,(function(){this._fire("beforeBegin")})),!0),i=o.after(this._current,"onBegin",e.hitch(this,(function(e){this._fire("onBegin",arguments)})),!0),a=o.after(this._current,"onPlay",e.hitch(this,(function(e){this._fire("onPlay",arguments),r.remove(),i.remove(),a.remove()})));return this._onAnimateCtx&&this._onAnimateCtx.remove(),this._onAnimateCtx=o.after(this._current,"onAnimate",e.hitch(this,"_onAnimate"),!0),this._onEndCtx&&this._onEndCtx.remove(),this._onEndCtx=o.after(this._current,"onEnd",e.hitch(this,"_onEnd"),!0),this._current.play.apply(this._current,arguments),this},pause:function(){if(this._current){var t=o.after(this._current,"onPause",e.hitch(this,(function(e){this._fire("onPause",arguments),t.remove()})),!0);this._current.pause()}return this},gotoPercent:function(e,t){this.pause();var n=this.duration*e;return this._current=null,i.some(this._animations,(function(e,t){return n<=e.duration?(this._current=e,this._index=t,!0):(n-=e.duration,!1)}),this),this._current&&this._current.gotoPercent(n/this._current.duration),t&&this.play(),this},stop:function(t){if(this._current){if(t){for(;this._index+1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var n=o.after(this._current,"onStop",e.hitch(this,(function(e){this._fire("onStop",arguments),n.remove()})),!0);this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this.stop(),this._onAnimateCtx&&this._onAnimateCtx.remove(),this._onEndCtx&&this._onEndCtx.remove()}}),e.extend(p,h),f.chain=function(t){return new p(e.isArray(t)?t:Array.prototype.slice.call(t,0))};var g=function(t){this._animations=t||[],this._connects=[],this._finished=0,this.duration=0,i.forEach(t,(function(t){var n=t.duration;t.delay&&(n+=t.delay),this.duration<n&&(this.duration=n),this._connects.push(o.after(t,"onEnd",e.hitch(this,"_onEnd"),!0))}),this),this._pseudoAnimation=new a.Animation({curve:[0,1],duration:this.duration});var n=this;i.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],(function(e){n._connects.push(o.after(n._pseudoAnimation,e,(function(){n._fire(e,arguments)}),!0))}))};return e.extend(g,{_doAction:function(e,t){return i.forEach(this._animations,(function(n){n[e].apply(n,t)})),this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(e,t){var n=this._pseudoAnimation;n[e].apply(n,t)},play:function(e,t){return this._finished=0,this._doAction("play",arguments),this._call("play",arguments),this},pause:function(){return this._doAction("pause",arguments),this._call("pause",arguments),this},gotoPercent:function(e,t){var n=this.duration*e;return i.forEach(this._animations,(function(e){e.gotoPercent(e.duration<n?1:n/e.duration,t)})),this._call("gotoPercent",arguments),this},stop:function(e){return this._doAction("stop",arguments),this._call("stop",arguments),this},status:function(){return this._pseudoAnimation.status()}
12,destroy:function(){this.stop(),i.forEach(this._connects,(function(e){e.remove()}))}}),e.extend(g,h),f.combine=function(t){return new g(e.isArray(t)?t:Array.prototype.slice.call(t,0))},f.wipeIn=function(t){var n,r=t.node=s.byId(t.node),i=r.style,l=a.animateProperty(e.mixin({properties:{height:{start:function(){if(n=i.overflow,i.overflow="hidden","hidden"==i.visibility||"none"==i.display)return i.height="1px",i.display="",i.visibility="",1;var e=c.get(r,"height");return Math.max(e,1)},end:function(){return r.scrollHeight}}}},t)),u=function(){i.height="auto",i.overflow=n};return o.after(l,"onStop",u,!0),o.after(l,"onEnd",u,!0),l},f.wipeOut=function(t){var n,r=(t.node=s.byId(t.node)).style,i=a.animateProperty(e.mixin({properties:{height:{end:1}}},t));o.after(i,"beforeBegin",(function(){n=r.overflow,r.overflow="hidden",r.display=""}),!0);var c=function(){r.overflow=n,r.height="auto",r.display="none"};return o.after(i,"onStop",c,!0),o.after(i,"onEnd",c,!0),i},f.slideTo=function(t){var n,r=t.node=s.byId(t.node),i=null,u=null,d=(n=r,function(){var e=c.getComputedStyle(n),t=e.position;if(i="absolute"==t?n.offsetTop:parseInt(e.top)||0,u="absolute"==t?n.offsetLeft:parseInt(e.left)||0,"absolute"!=t&&"relative"!=t){var r=l.position(n,!0);i=r.y,u=r.x,n.style.position="absolute",n.style.top=i+"px",n.style.left=u+"px"}});d();var f=a.animateProperty(e.mixin({properties:{top:t.top||0,left:t.left||0}},t));return o.after(f,"beforeBegin",d,!0),f},f}.apply(t,r))||(e.exports=i)},7758:(e,t,n)=>{var r,i;n.dr("dojo/hccss",e),r=[n,n(9375),n(8007),n(2496),n(9687),n(1232),n(8833)],void 0===(i=function(e,t,r,i,o,a,s){return o.add("highcontrast",(function(){var e=s.doc.createElement("div");try{e.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+(t.blankGif||n(9042))+'");',s.body().appendChild(e);var r=i.getComputedStyle(e),a=r.backgroundImage;return r.borderTopColor==r.borderRightColor||a&&("none"==a||"url(invalid-url:)"==a)}catch(e){return console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+e.toString()),!1}finally{o("ie")<=8?e.outerHTML="":s.body().removeChild(e)}})),a((function(){o("highcontrast")&&r.add(s.body(),"dj_a11y")})),o}.apply(t,r))||(e.exports=i)},9408:(e,t,n)=>{var r,i;n.dr("dojo/promise/all",e),r=[n(9488),n(6618),n(5599),n(7112)],void 0===(i=function(e,t,n,r){var i=e.some;return function(e){var o,a,s;t.isArray(e)?a=e:e&&"object"==typeof e&&(o=e);var c=[];if(o){for(var l in a=[],o)Object.hasOwnProperty.call(o,l)&&(c.push(l),a.push(o[l]));s={}}else a&&(s=[]);if(!a||!a.length)return(new n).resolve(s);var u=new n;u.promise.always((function(){s=c=null}));var d=a.length;return i(a,(function(e,t){return o||c.push(t),r(e,(function(e){u.isFulfilled()||(s[c[t]]=e,0==--d&&u.resolve(s))}),u.reject),u.isFulfilled()})),u.promise}}.apply(t,r))||(e.exports=i)},912:(e,t,n)=>{var r,i;n.dr("dojo/string",e),r=[n(4576),n(6618)],void 0===(i=function(e,t){var n=/[&<>'"\/]/g,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"},i={};return t.setObject("dojo.string",i),i.escape=function(e){return e?e.replace(n,(function(e){return r[e]})):""},i.codePointAt=String.prototype.codePointAt?function(e,t){return String.prototype.codePointAt.call(e,t)}:function(e,t){if(null==e)throw new TypeError("codePointAt called on null or undefined");var n,r,i,o;if(n=(e=String(e)).length,(o=t?Number(t):0)!=o&&(o=0),!(o<0||o>=n))return(r=e.charCodeAt(o))>=55296&&r<=56319&&n>o+1&&(i=e.charCodeAt(o+1))>=56320&&i<=57343?1024*(r-55296)+i-56320+65536:r},i.fromCodePoint=String.fromCodePoint||function(){var e,t,n=[],r=0,i="";for(t=0,len=arguments.length;t!==len;++t){if(!((e=+arguments[t])<1114111&&e>>>0===e))throw RangeError("Invalid code point: "+e);e<=65535?r=n.push(e):(e-=65536,r=n.push(55296+(e>>10),e%1024+56320)),r>=16383&&(i+=String.fromCharCode.apply(null,n),n.length=0)}return i+String.fromCharCode.apply(null,n)},i.rep=function(e,t){if(t<=0||!e)return"";for(var n=[];1&t&&n.push(e),t>>=1;)e+=e;return n.join("")},i.pad=function(e,t,n,r){n||(n="0");var o=String(e),a=i.rep(n,Math.ceil((t-o.length)/n.length));return r?o+a:a+o},i.substitute=function(n,r,i,o){return o=o||e.global,i=i?t.hitch(o,i):function(e){return e},n.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,n,a){if(""==n)return"$";var s=t.getObject(n,!1,r);
12a&&(s=t.getObject(a,!1,o).call(o,s,n));var c=i(s,n);if(void 0===c)throw new Error('string.substitute could not find key "'+n+'" in template');return c.toString()}))},i.trim=String.prototype.trim?t.trim:function(e){for(var t=(e=e.replace(/^\s+/,"")).length-1;t>=0;t--)if(/\S/.test(e.charAt(t))){e=e.substring(0,t+1);break}return e},i}.apply(t,r))||(e.exports=i)},4298:(e,t,n)=>{var r,i;n.dr("dojo/touch",e),r=[n(4576),n(4238),n(2495),n(8007),n(6618),n(1178),n(9687),n(3600),n(1232),n(8833)],void 0===(i=function(e,t,n,r,i,o,a,s,c,l){var u,d,f,h,p,g,m,v,y,b,w=a("ios")<5,x=a("pointer-events")||a("MSPointer"),_=function(){var e={};for(var t in{down:1,move:1,up:1,cancel:1,over:1,out:1})e[t]=a("MSPointer")?"MSPointer"+t.charAt(0).toUpperCase()+t.slice(1):"pointer"+t;return e}(),S=a("touch-events"),C=!1;function E(e,t,n){return x&&n?function(e,t){return o(e,n,t)}:S?function(n,r){var i=o(n,t,(function(e){r.call(this,e),y=(new Date).getTime()})),a=o(n,e,(function(e){(!y||(new Date).getTime()>y+1e3)&&r.call(this,e)}));return{remove:function(){i.remove(),a.remove()}}}:function(t,n){return o(t,e,n)}}function O(e,t,i){if(!s.isRight(e)){var a=function(e){do{if(void 0!==e.dojoClick)return e}while(e=e.parentNode)}(e.target);if((d=!e.target.disabled&&a&&a.dojoClick)&&(f=(C="useTarget"==d)?a:e.target,C&&e.preventDefault(),h=e.changedTouches?e.changedTouches[0].pageX-l.global.pageXOffset:e.clientX,p=e.changedTouches?e.changedTouches[0].pageY-l.global.pageYOffset:e.clientY,g=("object"==typeof d?d.x:"number"==typeof d?d:0)||4,m=("object"==typeof d?d.y:"number"==typeof d?d:0)||4,!u)){u=!0;var c=function(e){d=C?n.isDescendant(l.doc.elementFromPoint(e.changedTouches?e.changedTouches[0].pageX-l.global.pageXOffset:e.clientX,e.changedTouches?e.changedTouches[0].pageY-l.global.pageYOffset:e.clientY),f):d&&(e.changedTouches?e.changedTouches[0].target:e.target)==f&&Math.abs((e.changedTouches?e.changedTouches[0].pageX-l.global.pageXOffset:e.clientX)-h)<=g&&Math.abs((e.changedTouches?e.changedTouches[0].pageY-l.global.pageYOffset:e.clientY)-p)<=m};l.doc.addEventListener(t,(function(e){s.isRight(e)||(c(e),C&&e.preventDefault())}),!0),l.doc.addEventListener(i,(function(e){if(!s.isRight(e)&&(c(e),d)){v=(new Date).getTime();var t=C?f:e.target;"LABEL"===t.tagName&&(t=n.byId(t.getAttribute("for"))||t);var r=e.changedTouches?e.changedTouches[0]:e,i=function(t){var n=document.createEvent("MouseEvents");return n._dojo_click=!0,n.initMouseEvent(t,!0,!0,e.view,e.detail,r.screenX,r.screenY,r.clientX,r.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null),n},a=i("mousedown"),l=i("mouseup"),u=i("click");setTimeout((function(){o.emit(t,"mousedown",a),o.emit(t,"mouseup",l),o.emit(t,"click",u),v=(new Date).getTime()}),0)}}),!0);var y=function(e){l.doc.addEventListener(e,(function(t){var n=t.target;d&&!t._dojo_click&&(new Date).getTime()<=v+1e3&&("INPUT"!=n.tagName||!r.contains(n,"dijitOffScreen"))&&(t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),"click"==e&&("INPUT"!=n.tagName||"radio"==n.type&&(r.contains(n,"dijitCheckBoxInput")||r.contains(n,"mblRadioButton"))||"checkbox"==n.type&&(r.contains(n,"dijitCheckBoxInput")||r.contains(n,"mblCheckBox")))&&"TEXTAREA"!=n.tagName&&"AUDIO"!=n.tagName&&"VIDEO"!=n.tagName&&t.preventDefault())}),!0)};y("click"),y("mousedown"),y("mouseup")}}}a("touch")&&c(x?function(){l.doc.addEventListener(_.down,(function(e){O(e,_.move,_.up)}),!0)}:function(){function e(e){var t=i.delegate(e,{bubbles:!0});return a("ios")>=6&&(t.touches=e.touches,t.altKey=e.altKey,t.changedTouches=e.changedTouches,t.ctrlKey=e.ctrlKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.targetTouches=e.targetTouches),t}b=l.body(),l.doc.addEventListener("touchstart",(function(e){y=(new Date).getTime();var t=b;b=e.target,o.emit(t,"dojotouchout",{relatedTarget:b,bubbles:!0}),o.emit(b,"dojotouchover",{relatedTarget:t,bubbles:!0}),O(e,"touchmove","touchend")}),!0),o(l.doc,"touchmove",(function(t){y=(new Date).getTime();var n=l.doc.elementFromPoint(t.pageX-(w?0:l.global.pageXOffset),t.pageY-(w?0:l.global.pageYOffset));n&&(b!==n&&(o.emit(b,"dojotouchout",{relatedTarget:n,bubbles:!0}),o.emit(n,"dojotouchover",{relatedTarget:b,bubbles:!0}),b=n),o.emit(n,"dojotouchmove",e(t))||t.preventDefault())})),o(l.doc,"touchend",(function(t){y=(new Date).getTime();var n=l.doc.elementFromPoint(t.pageX-(w?0:l.global.pageXOffset),t.pageY-(w?0:l.global.pageYOffset))||l.body();o.emit(n,"dojotouchend",e(t))}))});var j={press:E("mousedown","touchstart",_.down),move:E("mousemove","dojotouchmove",_.move),release:E("mouseup","dojotouchend",_.up),cancel:E(s.leave,"touchcancel",x?_.cancel:null),over:E("mouseover","dojotouchover",_.over),out:E("mouseout","dojotouchout",_.out),enter:s._eventHandler(E("mouseover","dojotouchover",_.over)),leave:s._eventHandler(E("mouseout","dojotouchout",_.out))};return e.touch=j,j}.apply(t,r))||(e.exports=i)},6147:(e,t,n)=>{var r,i;n.dr("dojo/uacss",e),r=[n(1120),n(6618),n(1232),n(4784),n(8833)],void 0===(i=function(e,t,n,r,i){var o=i.doc.documentElement,a=r("ie"),s=r("trident"),c=r("opera"),l=Math.floor,u=r("ff"),d=e.boxModel.replace(/-/,""),f={dj_quirks:r("quirks"),dj_opera:c,dj_khtml:r("khtml"),dj_webkit:r("webkit"),dj_safari:r("safari"),dj_chrome:r("chrome"),dj_edge:r("edge"),dj_gecko:r("mozilla"),dj_ios:r
12("ios"),dj_android:r("android")};a&&(f.dj_ie=!0,f["dj_ie"+l(a)]=!0,f.dj_iequirks=r("quirks")),s&&(f.dj_trident=!0,f["dj_trident"+l(s)]=!0),u&&(f["dj_ff"+l(u)]=!0),f["dj_"+d]=!0;var h="";for(var p in f)f[p]&&(h+=p+" ");return o.className=t.trim(o.className+" "+h),n((function(){if(!e.isBodyLtr()){var n="dj_rtl dijitRtl "+h.replace(/ /g,"-rtl ");o.className=t.trim(o.className+" "+n+"dj_rtl dijitRtl "+h.replace(/ /g,"-rtl "))}})),r}.apply(t,r))||(e.exports=i)},2153:(e,t,n)=>{var r,i;n.dr("dojo/window",e),r=[n(6618),n(4784),n(8833),n(2495),n(1120),n(2496),n(2239)],void 0===(i=function(e,t,n,r,i,o,a){t.add("rtl-adjust-position-for-verticalScrollBar",(function(e,t){var r=n.body(t),o=a.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},r,"last"),s=a.create("div",{style:{overflow:"hidden",direction:"ltr"}},o,"last"),c=0!=i.position(s).x;return o.removeChild(s),r.removeChild(o),c})),t.add("position-fixed-support",(function(e,t){var r=n.body(t),o=a.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},r,"last"),s=a.create("span",{style:{position:"fixed",left:"0",top:"0"}},o,"last"),c=i.position(s).x!=i.position(o).x;return o.removeChild(s),r.removeChild(o),c}));var s={getBox:function(e){var r,o,a="BackCompat"==(e=e||n.doc).compatMode?n.body(e):e.documentElement,c=i.docScroll(e);if(t("touch")){var l=s.get(e);r=l.innerWidth||a.clientWidth,o=l.innerHeight||a.clientHeight}else r=a.clientWidth,o=a.clientHeight;return{l:c.x,t:c.y,w:r,h:o}},get:function(e){if(t("ie")&&s!==document.parentWindow){e.parentWindow.execScript("document._parentWindow = window;","Javascript");var n=e._parentWindow;return e._parentWindow=null,n}return e.parentWindow||e.defaultView},scrollIntoView:function(e,a){try{var s=(e=r.byId(e)).ownerDocument||n.doc,c=n.body(s),l=s.documentElement||c.parentNode,u=t("ie")||t("trident"),d=t("webkit");if(e==c||e==l)return;if(!(t("mozilla")||u||d||t("opera")||t("trident")||t("edge"))&&"scrollIntoView"in e)return void e.scrollIntoView(!1);var f="BackCompat"==s.compatMode,h=Math.min(c.clientWidth||l.clientWidth,l.clientWidth||c.clientWidth),p=Math.min(c.clientHeight||l.clientHeight,l.clientHeight||c.clientHeight),g=d||f?c:l,m=a||i.position(e),v=e.parentNode,y=function(e){return!(u<=6||7==u&&f)&&"fixed"==o.get(e,"position").toLowerCase()},b=this,w=function(e,t,n){"BODY"==e.tagName||"HTML"==e.tagName?b.get(e.ownerDocument).scrollBy(t,n):(t&&(e.scrollLeft+=t),n&&(e.scrollTop+=n))};if(y(e))return;for(;v;){v==c&&(v=g);var x=i.position(v),_=y(v),S="rtl"==o.getComputedStyle(v).direction.toLowerCase();if(v==g)x.w=h,x.h=p,g==l&&(u||t("trident"))&&S&&(x.x+=g.offsetWidth-x.w),x.x=0,x.y=0;else{var C=i.getPadBorderExtents(v);x.w-=C.w,x.h-=C.h,x.x+=C.l,x.y+=C.t;var E=v.clientWidth,O=x.w-E;E>0&&O>0&&(S&&t("rtl-adjust-position-for-verticalScrollBar")&&(x.x+=O),x.w=E),E=v.clientHeight,O=x.h-E,E>0&&O>0&&(x.h=E)}_&&(x.y<0&&(x.h+=x.y,x.y=0),x.x<0&&(x.w+=x.x,x.x=0),x.y+x.h>p&&(x.h=p-x.y),x.x+x.w>h&&(x.w=h-x.x));var j,k,R=m.x-x.x,N=m.y-x.y,T=R+m.w-x.w,A=N+m.h-x.h;T*R>0&&(v.scrollLeft||v==g||v.scrollWidth>v.offsetHeight)&&(j=Math[R<0?"max":"min"](R,T),S&&(8==u&&!f||t("trident")>=5)&&(j=-j),k=v.scrollLeft,w(v,j,0),j=v.scrollLeft-k,m.x-=j),A*N>0&&(v.scrollTop||v==g||v.scrollHeight>v.offsetHeight)&&(j=Math.ceil(Math[N<0?"max":"min"](N,A)),k=v.scrollTop,w(v,0,j),j=v.scrollTop-k,m.y-=j),v=v!=g&&!_&&v.parentNode}}catch(t){console.error("scrollIntoView: "+t),e.scrollIntoView(!1)}}};
12return e.setObject("dojo.window",s),s}.apply(t,r))||(e.exports=i)},4063:e=>{e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},2806:e=>{e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o<r.length;o++){var a=r[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},646:function(e){e.exports=function(){function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}return function t(n,r){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=t+"="+n.write(i,t)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],r={},i=0;i<t.length;i++){var o=t[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=n.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(t,n){i(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},9146:e=>{function t(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}t.prototype.define=function(e,t){for(let n in e){let r=e[n].map((function(e){return e.toLowerCase()}));n=n.toLowerCase();for(let e=0;e<r.length;e++){const i=r[e];if("*"!==i[0]){if(!t&&i in this._types)throw new Error('Attempt to change mapping for "'+i+'" extension from "'+this._types[i]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+i+'" from the list of extensions for "'+n+'".');this._types[i]=n}}if(t||!this._extensions[n]){const e=r[0];this._extensions[n]="*"!==e[0]?e:e.substr(1)}}},t.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),r=t.length<e.length;return(n.length<t.length-1||!r)&&this._types[n]||null},t.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},e.exports=t},3893:(e,t,n)=>{let r=n(9146);e.exports=new r(n(4415),n(3014))},3014
vendor: 14,461 bytes, line 12
12:e=>{e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smz
vendor: 11,432 bytes, line 12
12ip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},
124415:e=>{e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["w
12off"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},2188:(e,t,n)=>{n.r(t),n.d(t,{$mobx:()=>_,FlowCancellationError:()=>Et,IDerivationState:()=>Y,ObservableMap:()=>vn,ObservableSet:()=>wn,Reaction:()=>Ge,_allowStateChanges:()=>_e,_allowStateChangesInsideComputed:()=>Ee,_allowStateReadsEnd:()=>he,_allowStateReadsStart:()=>fe,_endAction:()=>xe,_getAdministration:()=>Nn,_getGlobalState:()=>Le,_interceptReads:()=>Rt,_isComputingDerivation:()=>oe,_resetGlobalState:()=>$e,_startAction:()=>we,action:()=>it,autorun:()=>ct,comparer:()=>O,computed:()=>te,configure:()=>gt,createAtom:()=>E,decorate:()=>mt,entries:()=>Ft,extendObservable:()=>vt,flow:()=>jt,get:()=>Ut,getAtom:()=>Rn,getDebugName:()=>Tn,getDependencyTree:()=>wt,getObserverTree:()=>_t,has:()=>zt,intercept:()=>Nt,isAction:()=>at,isArrayLike:()=>g,isBoxedObservable:()=>je,isComputed:()=>At,isComputedProp:()=>Pt,isFlowCancellationError:()=>Ot,isObservable:()=>It,isObservableArray:()=>pn,isObservableMap:()=>yn,isObservableObject:()=>kn,isObservableProp:()=>Mt,isObservableSet:()=>xn,keys:()=>Lt,observable:()=>K,observe:()=>Wt,onBecomeObserved:()=>ft,onBecomeUnobserved:()=>ht,onReactionError:()=>Ze,reaction:()=>dt,remove:()=>Vt,runInAction:()=>ot,set:()=>Bt,spy:()=>tt,toJS:()=>Zt,trace:()=>Kt,transaction:()=>Xt,untracked:()=>le,values:()=>$t,when:()=>Yt});var r="An invariant failed, however the error is obfuscated because this is a production build.",i=[];Object.freeze(i);var o={};function a(){return++Me.mobxGuid}function s(e){throw c(!1,e),"X"}function c(e,t){if(!e)throw new Error("[mobx] "+(t||r))}function l(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}Object.freeze(o);var u=function(){};function d(e){return null!==e&&"object"==typeof e}function f(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function h(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function p(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return d(e)&&!0===e[n]}}function g(e){return Array.isArray(e)||pn(e)}function m(e){return e instanceof Map}function v(e){return e instanceof Set}function y(e){var t=new Set;for(var n in e)t.add(n);return Object.getOwnPropertySymbols(e).forEach((function(n){Object.getOwnPropertyDescriptor(e,n).enumerable&&t.add(n)})),Array.from(t)}function b(e){return e&&e.toString?e.toString():new String(e).toString()}function w(e){return null===e?null:"object"==typeof e?""+e:e}var x="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,_=Symbol("mobx administration"),S=function(){function e(e){void 0===e&&(e="Atom@"+a()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Y.NOT_TRACKING}return e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEac
vendor: 4,937 bytes, lines 12-26
12h((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.reportObserved=function(){return We(this)},e.prototype.reportChanged=function(){ze(),function(e){e.lowestObserverState!==Y.STALE&&(e.lowestObserverState=Y.STALE,e.observers.forEach((function(t){t.dependenciesState===Y.UP_TO_DATE&&(t.isTracing!==Q.NONE&&qe(t,e),t.onBecomeStale()),t.dependenciesState=Y.STALE})))}(this),Ue()},e.prototype.toString=function(){return this.name},e}(),C=p("Atom",S);function E(e,t,n){void 0===t&&(t=u),void 0===n&&(n=u);var r=new S(e);return t!==u&&ft(r,t),n!==u&&ht(r,n),r}var O={identity:function(e,t){return e===t},structural:function(e,t){return Pn(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return Pn(e,t,1)}},j=function(e,t){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},j(e,t)},k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},k.apply(this,arguments)};
13/*! *****************************************************************************
14Copyright (c) Microsoft Corporation. All rights reserved.
15Licensed under the Apache License, Version 2.0 (the "License"); you may not use
16this file except in compliance with the License. You may obtain a copy of the
17License at http://www.apache.org/licenses/LICENSE-2.0
18
19THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
21WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
22MERCHANTABLITY OR NON-INFRINGEMENT.
23
24See the Apache Version 2.0 License for specific language governing permissions
25and limitations under the License.
26***************************************************************************** */function R(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function N(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function T(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(N(arguments[t]));return e}var A=Symbol("mobx did run lazy initializers"),P=Symbol("mobx pending decorators"),D={},I={};function M(e){var t,n;if(!0!==e[A]){var r=e[P];if(r){h(e,A,!0);var i=T(Object.getOwnPropertySymbols(r),Object.keys(r));try{for(var o=R(i),a=o.next();!a.done;a=o.next()){var s=r[a.value];s.propertyCreator(e,s.prop,s.descriptor,s.decoratorTarget,s.decoratorArguments)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}}}function L(e,t){return function(){var n,r,o=function(r,i,o,a){if(!0===a)return t(r,i,o,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,P)){var s=r[P];h(r,P,k({},s))}return r[P][i]={prop:i,propertyCreator:t,descriptor:o,decoratorTarget:r,decoratorArguments:n},function(e,t){var n=t?D:I;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return M(this),this[e]},set:function(t){M(this),this[e]=t}})}(i,e)};return(2===(r=arguments).length||3===r.length)&&("string"==typeof r[1]||"symbol"==typeof r[1])||4===r.length&&!0===r[3]?(n=i,o.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),o)}}function $(e,t,n){return It(e)?e:Array.isArray(e)?K.array(e,{name:n}):f(e)?K.object(e,void 0,{name:n}):m(e)?K.map(e,{name:n}):v(e)?K.set(e,{name:n}):e}function F(e){return e}function B(e){c(e);var t=L(!0,(function(t,n,r,i,o){var a=r?r.initializer?r.initializer.call(t):r.value:void 0;Sn(t).addObservableProp(n,a,e)})),n=("undefined"!=typeof process&&process.env,t);return n.enhancer=e,n}var V={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function z(e){return null==e?V:"string"==typeof e?{name:e,deep:!0,proxy:!0}:e}Object.freeze(V);var U=B($),W=B((function(e,t,n){return null==e||kn(e)||pn(e)||yn(e)||xn(e)?e:Array.isArray(e)?K.array(e,{name:n,deep:!1}):f(e)?K.object(e,void 0,{name:n,deep:!1}):m(e)?K.map(e,{name:n,deep:!1}):v(e)?K.set(e,{name:n,deep:!1}):s(!1)})),q=B(F),H=B((function(e,t,n){return Pn(e,t)?t:e}));function G(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?F:$}var Z={box:function(e,t){arguments.length>2&&X("box");var n=z(t);return new Oe(e,G(n),n.name,!0,n.equals)},array:function(e,t){arguments.length>2&&X("array");var n=z(t);return function(e,t,n,r){void 0===n&&(n="ObservableArray@"+a()),void 0===r&&(r=!1);var i,o,s,c=new un(n,t,r);i=c.values,o=_,s=c,Object.defineProperty(i,o,{enumerable:!1,writable:!1,
26configurable:!0,value:s});var l=new Proxy(c.values,ln);if(c.proxy=l,e&&e.length){var u=Se(!0);c.spliceWithArray(0,0,e),Ce(u)}return l}(e,G(n),n.name)},map:function(e,t){arguments.length>2&&X("map");var n=z(t);return new vn(e,G(n),n.name)},set:function(e,t){arguments.length>2&&X("set");var n=z(t);return new wn(e,G(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&X("object");var r=z(n);if(!1===r.proxy)return vt({},e,t,r);var i=yt(r),o=function(e){var t=new Proxy(e,tn);return e[_].proxy=t,t}(vt({},void 0,void 0,r));return bt(o,e,t,i),o},ref:q,shallow:W,deep:U,struct:H},K=function(e,t,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return U.apply(null,arguments);if(It(e))return e;var r=f(e)?K.object(e,t,n):Array.isArray(e)?K.array(e,t):m(e)?K.map(e,t):v(e)?K.set(e,t):e;if(r!==e)return r;s(!1)};function X(e){s("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(Z).forEach((function(e){return K[e]=Z[e]}));var Y,Q,J=L(!1,(function(e,t,n,r,i){var o=n.get,a=n.set,s=i[0]||{};Sn(e).addComputedProp(e,t,k({get:o,set:a,context:e},s))})),ee=J({equals:O.structural}),te=function(e,t,n){if("string"==typeof t)return J.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return J.apply(null,arguments);var r="object"==typeof t?t:{};return r.get=e,r.set="function"==typeof t?t:r.set,r.name=r.name||e.name||"",new ke(r)};te.struct=ee,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(Y||(Y={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Q||(Q={}));var ne=function(e){this.cause=e};function re(e){return e instanceof ne}function ie(e){switch(e.dependenciesState){case Y.UP_TO_DATE:return!1;case Y.NOT_TRACKING:case Y.STALE:return!0;case Y.POSSIBLY_STALE:for(var t=fe(!0),n=ue(),r=e.observing,i=r.length,o=0;o<i;o++){var a=r[o];if(Re(a)){if(Me.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return de(n),he(t),!0}if(e.dependenciesState===Y.STALE)return de(n),he(t),!0}}return pe(e),de(n),he(t),!1}}function oe(){return null!==Me.trackingDerivation}function ae(e){var t=e.observers.size>0;Me.computationDepth>0&&t&&s(!1),Me.allowStateChanges||!t&&"strict"!==Me.enforceActions||s(!1)}function se(e,t,n){var r=fe(!0);pe(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Me.runId;var i,o=Me.trackingDerivation;if(Me.trackingDerivation=e,!0===Me.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new ne(e)}return Me.trackingDerivation=o,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=Y.UP_TO_DATE,i=0,o=e.unboundDepsCount,a=0;a<o;a++)0===(s=n[a]).diffValue&&(s.diffValue=1,i!==a&&(n[i]=s),i++),s.dependenciesState>r&&(r=s.dependenciesState);for(n.length=i,e.newObserving=null,o=t.length;o--;)0===(s=t[o]).diffValue&&Be(s,e),s.diffValue=0;for(;i--;){var s;1===(s=n[i]).diffValue&&(s.diffValue=0,Fe(s,e))}r!==Y.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),he(r),i}function ce(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Be(t[n],e);e.dependenciesState=Y.NOT_TRACKING}function le(e){var t=ue();try{return e()}finally{de(t)}}function ue(){var e=Me.trackingDerivation;return Me.trackingDerivation=null,e}function de(e){Me.trackingDerivation=e}function fe(e){var t=Me.allowStateReads;return Me.allowStateReads=e,t}function he(e){Me.allowStateReads=e}function pe(e){if(e.dependenciesState!==Y.UP_TO_DATE){e.dependenciesState=Y.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=Y.UP_TO_DATE}}var ge=0,me=1,ve=Object.getOwnPropertyDescriptor((function(){}),"name");function ye(e,t,n){var r=function(){return be(e,t,n||this,arguments)};return r.isMobxAction=!0,r}function be(e,t,n,r){var i=we();try{return t.apply(n,r)}catch(e){throw i.error=e,e}finally{xe(i)}}function we(e,t,n){var r=ue();ze();var i={prevDerivation:r,prevAllowStateChanges:Se(!0),prevAllowStateReads:fe(!0),notifySpy:!1,startTime:0,actionId:me++,parentActionId:ge};return ge=i.actionId,i}function xe(e){ge!==e.actionId&&s("invalid action stack. did you forget to finish an action?"),ge=e.parentActionId,void 0!==e.error&&(Me.suppressReactionErrors=!0),Ce(e.prevAllowStateChanges),he(e.prevAllowStateReads),Ue(),de(e.prevDerivation),e.notifySpy,Me.suppressReactionErrors=!1}function _e(e,t){var n,r=Se(e);try{n=t()}finally{Ce(r)}return n}function Se(e){var t=Me.allowStateChanges;return Me.allowStateChanges=e,t}function Ce(e){Me.allowStateChanges=e}function Ee(e){var t,n=Me.computationDepth;Me.computationDepth=0;try{t=e()}finally{Me.computationDepth=n}return t}ve&&ve.configurable;var Oe=function(e){function t(t,n,r,i,o){void 0===r&&(r="ObservableValue@"+a()),void 0===i&&(i=!0),void 0===o&&(o=O.default);var s=e.call(this,r)||this;return s.enhancer=n,s.name=r,s.equals=o,s.hasUnreportedChange=!1,s.value=n(t,void 0,r),s}return function(e,t){function n(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){this.value,(e=this.prepareNewValue(e))!==Me.UNCHANGED&&this.setNewValue(e)},t.prototype.prepareNewValue=function(e){if(ae(this),nn(this)){var t=on(this,{object:this,type:"update",newValue:e});if(!t)return Me.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Me.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),an(this)&&cn(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return rn(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),sn(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return w(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(S),je=p("ObservableValue",Oe),ke=function(){function e(e){this.dependenciesState=Y.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Y.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+a(),this.value=new ne(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Q.NONE,c(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+a(),e.set&&(this.setter=ye(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?O.structural
26:O.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){e.lowestObserverState===Y.UP_TO_DATE&&(e.lowestObserverState=Y.POSSIBLY_STALE,e.observers.forEach((function(t){t.dependenciesState===Y.UP_TO_DATE&&(t.dependenciesState=Y.POSSIBLY_STALE,t.isTracing!==Q.NONE&&qe(t,e),t.onBecomeStale())})))}(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.get=function(){this.isComputing&&s("Cycle detected in computation "+this.name+": "+this.derivation),0!==Me.inBatch||0!==this.observers.size||this.keepAlive?(We(this),ie(this)&&this.trackAndCompute()&&function(e){e.lowestObserverState!==Y.STALE&&(e.lowestObserverState=Y.STALE,e.observers.forEach((function(t){t.dependenciesState===Y.POSSIBLY_STALE?t.dependenciesState=Y.STALE:t.dependenciesState===Y.UP_TO_DATE&&(e.lowestObserverState=Y.UP_TO_DATE)})))}(this)):ie(this)&&(this.warnAboutUntrackedRead(),ze(),this.value=this.computeValue(!1),Ue());var e=this.value;if(re(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(re(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){c(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else c(!1,!1)}
26,e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===Y.NOT_TRACKING,n=this.computeValue(!0),r=t||re(e)||re(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Me.computationDepth++,e)t=se(this,this.derivation,this.scope);else if(!0===Me.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new ne(e)}return Me.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(ce(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,i=void 0;return ct((function(){var o=n.get();if(!r||t){var a=ue();e({type:"update",object:n,newValue:o,oldValue:i}),de(a)}r=!1,i=o}))},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return w(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(),Re=p("ComputedValue",ke),Ne=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],Te=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Ae={};function Pe(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:Ae}var De=!0,Ie=!1,Me=function(){var e=Pe();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(De=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Te).version&&(De=!1),De?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Te):(setTimeout((function(){Ie||s("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Te)}();function Le(){return Me}function $e(){var e=new Te;for(var t in e)-1===Ne.indexOf(t)&&(Me[t]=e[t]);Me.allowStateChanges=!Me.enforceActions}function Fe(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Be(e,t){e.observers.delete(t),0===e.observers.size&&Ve(e)}function Ve(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Me.pendingUnobservations.push(e))}function ze(){Me.inBatch++}function Ue(){if(0==--Me.inBatch){Ye();for(var e=Me.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof ke&&n.suspend())}Me.pendingUnobservations=[]}}function We(e){var t=Me.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.size&&Me.inBatch>0&&Ve(e),!1)}
26function qe(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Q.BREAK){var n=[];He(wt(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof ke?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n    ")()}}function He(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return He(e,t,n+1)})))}var Ge=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+a()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=Y.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+a(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Q.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Me.pendingReactions.push(this),Ye())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(ze(),this._isScheduled=!1,ie(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}Ue()}},e.prototype.track=function(e){if(!this.isDisposed){ze(),this._isRunning=!0;var t=se(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ce(this),re(t)&&this.reportExceptionInDerivation(t.cause),Ue()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Me.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Me.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Me.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(ze(),ce(this),Ue()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[_]=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),Kt(this,e)},e}();function Ze(e){return Me.globalReactionErrorHandlers.push(e),function(){var t=Me.globalReactionErrorHandlers.indexOf(e);t>=0&&Me.globalReactionErrorHandlers.splice(t,1)}}var Ke=100,Xe=function(e){return e()};function Ye(){Me.inBatch>0||Me.isRunningReactions||Xe(Qe)}function Qe(){Me.isRunningReactions=!0;for(var e=Me.pendingReactions,t=0;e.length>0;){++t===Ke&&(console.error("Reaction doesn't converge to a stable state after "+Ke+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction()}Me.isRunningReactions=!1}var Je=p("Reaction",Ge);function et(e){var t=Xe;Xe=function(n){return e((function(){return t(n)}))}}function tt(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function nt(){s(!1)}function rt(e){return function(t,n,r){if(r){if(r.value)return{value:ye(e,r.value),enumerable:!1,configurable:!0,writable:!0};var i=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return ye(e,i.call(this))}}}return function(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){h(this,n,it(e,t))}})}}(e).apply(this,arguments)}}var it=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?ye(e.n
26ame||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?ye(e,t):1===arguments.length&&"string"==typeof e?rt(e):!0!==r?rt(t).apply(null,arguments):void h(e,t,ye(e.name||t,n.value,this))};function ot(e,t){return be("string"==typeof e||e.name,"function"==typeof e?e:t,this,void 0)}function at(e){return"function"==typeof e&&!0===e.isMobxAction}function st(e,t,n){h(e,t,ye(t,n.bind(e)))}function ct(e,t){void 0===t&&(t=o);var n,r=t&&t.name||e.name||"Autorun@"+a();if(t.scheduler||t.delay){var i=ut(t),s=!1;n=new Ge(r,(function(){s||(s=!0,i((function(){s=!1,n.isDisposed||n.track(c)})))}),t.onError,t.requiresObservable)}else n=new Ge(r,(function(){this.track(c)}),t.onError,t.requiresObservable);function c(){e(n)}return n.schedule(),n.getDisposer()}it.bound=function(e,t,n,r){return!0===r?(st(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return st(this,t,n.value||n.initializer.call(this)),this[t]},set:nt}:{enumerable:!1,configurable:!0,set:function(e){st(this,t,e)},get:function(){}}};var lt=function(e){return e()};function ut(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:lt}function dt(e,t,n){void 0===n&&(n=o);var r,i,s,c=n.name||"Reaction@"+a(),l=it(c,n.onError?(r=n.onError,i=t,function(){try{return i.apply(this,arguments)}catch(e){r.call(this,e)}}):t),u=!n.scheduler&&!n.delay,d=ut(n),f=!0,h=!1,p=n.compareStructural?O.structural:n.equals||O.default,g=new Ge(c,(function(){f||u?m():h||(h=!0,d(m))}),n.onError,n.requiresObservable);function m(){if(h=!1,!g.isDisposed){var t=!1;g.track((function(){var n=e(g);t=f||!p(s,n),s=n})),f&&n.fireImmediately&&l(s,g),f||!0!==t||l(s,g),f&&(f=!1)}}return g.schedule(),g.getDisposer()}function ft(e,t,n){return pt("onBecomeObserved",e,t,n)}function ht(e,t,n){return pt("onBecomeUnobserved",e,t,n)}function pt(e,t,n,r){var i="function"==typeof r?Rn(t,n):Rn(t),o="function"==typeof r?r:n,a=e+"Listeners";return i[a]?i[a].add(o):i[a]=new Set([o]),"function"!=typeof i[e]?s(!1):function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function gt(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,i=e.disableErrorBoundaries,o=e.reactionScheduler,a=e.reactionRequiresObservable,c=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Me.pendingReactions.length||Me.inBatch||Me.isRunningReactions)&&s("isolateGlobalState should be called before MobX is running any reactions"),Ie=!0,De&&(0==--Pe().__mobxInstanceCount&&(Pe().__mobxGlobals=void 0),Me=new Te)),void 0!==t){var l=void 0;switch(t){case!0:case"observed":l=!0;break;case!1:case"never":l=!1;break;case"strict":case"always":l="strict";break;default:s("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}Me.enforceActions=l,Me.allowStateChanges=!0!==l&&"strict"!==l}void 0!==n&&(Me.computedRequiresReaction=!!n),void 0!==a&&(Me.reactionRequiresObservable=!!a),void 0!==c&&(Me.observableRequiresReaction=!!c,Me.allowStateReads=!Me.observableRequiresReaction),void 0!==r&&(Me.computedConfigurable=!!r),void 0!==i&&(!0===i&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),Me.disableErrorBoundaries=!!i),o&&et(o)}function mt(e,t){var n="function"==typeof e?e.prototype:e,r=function(e){var r=t[e];Array.isArray(r)||(r=[r]);var i=Object.getOwnPropertyDescriptor(n,e),o=r.reduce((function(t,r){return r(n,e,t)}),i);o&&Object.defineProperty(n,e,o)};for(var i in t)r(i);return e}function vt(e,t,n,r){var i=yt(r=z(r));return M(e),Sn(e,r.name,i.enhancer),t&&bt(e,t,n,i),e}function yt(e){return e.defaultDecorator||(!1===e.deep?q:U)}function bt(e,t,n,r){var i,o;ze();try{var a=x(t);try{for(var s=R(a),c=s.next();!c.done;c=s.next()){var l=c.value,u=Object.getOwnPropertyDescriptor(t,l),d=(n&&l in n?n[l]:u.get?J:r)(e,l,u,!0);d&&Object.defineProperty(e,l,d)}}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}finally{Ue()}}function wt(e,t){return xt(Rn(e,t))}function xt(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(xt)),r}function _t(e,t){return St(Rn(e,t))}function St(e){var t={name:e.name};return function(e){return e.observers&&e.observers.size>0}(e)&&(t.observers=Array.from(function(e){return e.observers}(e)).map(St)),t}var Ct=0;function Et(){this.message="FLOW_CANCELLED"}function Ot(e){return e instanceof Et}function jt(e){1!==arguments.length&&s("Flow expects 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var n,r=arguments,i=++Ct,o=it(t+" - runid: "+i+" - init",e).apply(this,r),a=void 0,s=new Promise((function(e,r){var s=0;function c(e){var n;a=void 0;try{n=it(t+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return r(e)}u(n)}function l(e){var n;a=void 0;try{n=it(t+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return r(e)}u(n)}function u(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(a=Promise.resolve(t.value)).then(c,l);t.then(u,r)}n=r,c(void 0)}));return s.cancel=it(t+" - runid: "+i+" - cancel",(function(){try{a&&kt(a);var e=o.return(void 0),t=Promise.resolve(e.value);t.then(u,u),kt(t),n(new Et)}catch(e){n(e)}})),s}}function kt(e){"function"==typeof e.cancel&&e.cancel()}function Rt(e,t,n){var r;if(yn(e)||pn(e)||je(e))r=Nn(e);else{if(!kn(e))return s(!1);if("string"!=typeof t)return s(!1);r=Nn(e,t)}return void 0!==r.dehancer?s(!1):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})}function Nt(e,t,n){return"function"==typeof n?function(e,t,n){return Nn(e,t).intercept(n)}
26(e,t,n):function(e,t){return Nn(e).intercept(t)}(e,t)}function Tt(e,t){if(null==e)return!1;if(void 0!==t){if(!1===kn(e))return!1;if(!e[_].values.has(t))return!1;var n=Rn(e,t);return Re(n)}return Re(e)}function At(e){return arguments.length>1?s(!1):Tt(e)}function Pt(e,t){return"string"!=typeof t?s(!1):Tt(e,t)}function Dt(e,t){return null!=e&&(void 0!==t?!!kn(e)&&e[_].values.has(t):kn(e)||!!e[_]||C(e)||Je(e)||Re(e))}function It(e){return 1!==arguments.length&&s(!1),Dt(e)}function Mt(e,t){return"string"!=typeof t?s(!1):Dt(e,t)}function Lt(e){return kn(e)?e[_].getKeys():yn(e)||xn(e)?Array.from(e.keys()):pn(e)?e.map((function(e,t){return t})):s(!1)}function $t(e){return kn(e)?Lt(e).map((function(t){return e[t]})):yn(e)?Lt(e).map((function(t){return e.get(t)})):xn(e)?Array.from(e.values()):pn(e)?e.slice():s(!1)}function Ft(e){return kn(e)?Lt(e).map((function(t){return[t,e[t]]})):yn(e)?Lt(e).map((function(t){return[t,e.get(t)]})):xn(e)?Array.from(e.entries()):pn(e)?e.map((function(e,t){return[t,e]})):s(!1)}function Bt(e,t,n){if(2!==arguments.length||xn(e))if(kn(e)){var r=e[_];r.values.get(t)?r.write(t,n):r.addObservableProp(t,n,r.defaultEnhancer)}else if(yn(e))e.set(t,n);else if(xn(e))e.add(t);else{if(!pn(e))return s(!1);"number"!=typeof t&&(t=parseInt(t,10)),c(t>=0,"Not a valid index: '"+t+"'"),ze(),t>=e.length&&(e.length=t+1),e[t]=n,Ue()}else{ze();var i=t;try{for(var o in i)Bt(e,o,i[o])}finally{Ue()}}}function Vt(e,t){if(kn(e))e[_].remove(t);else if(yn(e))e.delete(t);else if(xn(e))e.delete(t);else{if(!pn(e))return s(!1);"number"!=typeof t&&(t=parseInt(t,10)),c(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}}function zt(e,t){return kn(e)?Nn(e).has(t):yn(e)||xn(e)?e.has(t):pn(e)?t>=0&&t<e.length:s(!1)}function Ut(e,t){if(zt(e,t))return kn(e)?e[t]:yn(e)?e.get(t):pn(e)?e[t]:s(!1)}function Wt(e,t,n,r){return"function"==typeof n?function(e,t,n,r){return Nn(e,t).observe(n,r)}(e,t,n,r):function(e,t,n){return Nn(e).observe(t,n)}(e,t,n)}Et.prototype=Object.create(Error.prototype);var qt={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Ht(e,t,n,r){return r.detectCycles&&e.set(t,n),n}function Gt(e,t,n){if(!t.recurseEverything&&!It(e))return e;if("object"!=typeof e)return e;if(null===e)return null;if(e instanceof Date)return e;if(je(e))return Gt(e.get(),t,n);if(It(e)&&Lt(e),!0===t.detectCycles&&null!==e&&n.has(e))return n.get(e);if(pn(e)||Array.isArray(e)){var r=Ht(n,e,[],t),i=e.map((function(e){return Gt(e,t,n)}));r.length=i.length;for(var o=0,a=i.length;o<a;o++)r[o]=i[o];return r}if(xn(e)||Object.getPrototypeOf(e)===Set.prototype){if(!1===t.exportMapsAsObjects){var s=Ht(n,e,new Set,t);return e.forEach((function(e){s.add(Gt(e,t,n))})),s}var c=Ht(n,e,[],t);return e.forEach((function(e){c.push(Gt(e,t,n))})),c}if(yn(e)||Object.getPrototypeOf(e)===Map.prototype){if(!1===t.exportMapsAsObjects){var l=Ht(n,e,new Map,t);return e.forEach((function(e,r){l.set(r,Gt(e,t,n))})),l}var u=Ht(n,e,{},t);return e.forEach((function(e,r){u[r]=Gt(e,t,n)})),u}var d=Ht(n,e,{},t);return y(e).forEach((function(r){d[r]=Gt(e[r],t,n)})),d}function Zt(e,t){var n;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=qt),t.detectCycles=void 0===t.detectCycles?!0===t.recurseEverything:!0===t.detectCycles,t.detectCycles&&(n=new Map),Gt(e,t,n)}function Kt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var r=function(e){switch(e.length){case 0:return Me.trackingDerivation;case 1:return Rn(e[0]);case 2:return Rn(e[0],e[1])}}(e);if(!r)return s(!1);r.isTracing===Q.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled"),r.isTracing=n?Q.BREAK:Q.LOG}function Xt(e,t){void 0===t&&(t=void 0),ze();try{return e.apply(t)}finally{Ue()}}function Yt(e,t,n){return 1===arguments.length||t&&"object"==typeof t?function(e,t){var n,r=new Promise((function(r,i){var o=Qt(e,r,k(k({},t),{onError:i}));n=function(){o(),i("WHEN_CANCELLED")}}));return r.cancel=n,r}(e,t):Qt(e,t,n||{})}function Qt(e,t,n){var r;"number"==typeof n.timeout&&(r=setTimeout((function(){if(!o[_].isDisposed){o();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}}),n.timeout)),n.name=n.name||"When@"+a();var i=ye(n.name+"-effect",t),o=ct((function(t){e()&&(t.dispose(),r&&clearTimeout(r),i())}),n);return o}function Jt(e){return e[_]}function en(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e}var tn={has:function(e,t){if(t===_||"constructor"===t||t===A)return!0;var n=Jt(e);return en(t)?n.has(t):t in e},get:function(e,t){if(t===_||"constructor"===t||t===A)return e[t];var n=Jt(e),r=n.values.get(t);if(r instanceof S){var i=r.get();return void 0===i&&n.has(t),i}return en(t)&&n.has(t),e[t]},set:function(e,t,n){return!!en(t)&&(Bt(e,t,n),!0)},deleteProperty:function(e,t){return!!en(t)&&(Jt(e).remove(t),!0)},ownKeys:function(e){return Jt(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return s("Dynamic observable objects cannot be frozen"),!1}};function nn(e){return void 0!==e.interceptors&&e.interceptors.length>0}function rn(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),l((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function on(e,t){var n=ue();try{for(var r=T(e.interceptors||[]),i=0,o=r.length;i<o&&(c(!(t=r[i](t))||t.type,"Intercept handlers should return nothing or a change object"),t);i++);return t}finally{de(n)}}function an(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function sn(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),l((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function cn(e,t){var n=ue(),r=e.changeListeners;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);de(n)}}var ln={get:function(e,t){return t===_?e[_]:"length"===t?e[_].getArrayLength():"number"==typeof t?dn.get.call(e,t):"string"!=typeof t||isNaN(t)?dn.hasOwnProperty(t)?dn[t]:e[t]:dn.get.call(e,parseInt(t))},set:function(e,t,n){return"length"===t&&e[_].setArrayLength(n),"number"==typeof t&&dn.set.call(e,t,n),"symbol"==typeof t||isNaN(t)?e[t]=n:dn.set.call(e,parseInt(t),n),!0},preventExtensions:function(e){return s("Observable arrays cannot be frozen"),!1}},un=function(){function e(e,t,n){this.owned=n,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new S(e||"ObservableArray@"+a()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return rn(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),sn(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)}
vendor: 17,017 bytes, line 26
26,e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=t},e.prototype.spliceWithArray=function(e,t,n){var r=this;ae(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=i),nn(this)){var a=on(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!a)return i;t=a.removedCount,n=a.added}n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}));var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,T([e,t],n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&!1,i=an(this),o=i||r?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:n}:null;this.atom.reportChanged(),i&&cn(this,o)},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&!1,i=an(this),o=i||r?{object:this.proxy,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom.reportChanged(),i&&cn(this,o)},e}(),dn={intercept:function(e){return this[_].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[_].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[_];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=this[_];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray(e);case 2:return i.spliceWithArray(e,t)}return i.spliceWithArray(e,t,n)},spliceWithArray:function(e,t,n){return this[_].spliceWithArray(e,t,n)},push:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this[_];return n.spliceWithArray(n.values.length,0,e),n.values.length},pop:function(){return this.splice(Math.max(this[_].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this[_];return n.spliceWithArray(0,0,e),n.values.length},reverse:function(){var e=this.slice();return e.reverse.apply(e,arguments)},sort:function(e){var t=this.slice();return t.sort.apply(t,arguments)},remove:function(e){var t=this[_],n=t.dehanceValues(t.values).indexOf(e);return n>-1&&(this.splice(n,1),!0)},get:function(e){var t=this[_];if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},set:function(e,t){var n=this[_],r=n.values;if(e<r.length){ae(n.atom);var i=r[e];if(nn(n)){var o=on(n,{type:"update",object:n.proxy,index:e,newValue:t});if(!o)return;t=o.newValue}(t=n.enhancer(t,i))!==i&&(r[e]=t,n.notifyArrayChildUpdate(e,t,i))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach((function(e){"function"==typeof Array.prototype[e]&&(dn[e]=function(){var t=this[_];t.atom.reportObserved();var n=t.dehanceValues(t.values);return n[e].apply(n,arguments)})})),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach((function(e){"function"==typeof Array.prototype[e]&&(dn[e]=function(t,n){var r=this,i=this[_];return i.atom.reportObserved(),i.dehanceValues(i.values)[e]((function(e,i){return t.call(n,e,i,r)}),n)})})),["reduce","reduceRight"].forEach((function(e){dn[e]=function(){var t=this,n=this[_];n.atom.reportObserved();var r=arguments[0];return arguments[0]=function(e,i,o){return i=n.dehanceValue(i),r(e,i,o,t)},n.values[e].apply(n.values,arguments)}}));var fn,hn=p("ObservableArrayAdministration",un);function pn(e){return d(e)&&hn(e[_])}var gn,mn={},vn=function(){function e(e,t,n){if(void 0===t&&(t=$),void 0===n&&(n="ObservableMap@"+a()),this.enhancer=t,this.name=n,this[fn]=mn,this._keysAtom=E(this.name+".keys()"),this[Symbol.toStringTag]="Map","function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!Me.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var r=n=new Oe(this._has(e),F,this.name+"."+b(e)+"?",!1);this._hasMap.set(e,r),ht(r,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(nn(this)){var r=on(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(ae(this._keysAtom),nn(this)&&!(r=on(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=an(this),r=n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return Xt((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),n&&cn(this,r),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==Me.UNCHANGED){var r=an(this),i=r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;n.setNewValue(t),r&&cn(this,i)}},e.prototype._addValue=function(e,t){var n=this;ae(this._keysAtom),Xt((function(){var r=new Oe(t,n.enhancer,n.name+"."+b(e),!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keysAtom.reportChanged()}));var r=an(this);r&&cn(this,r?{type:"add",object:this,name:e,newValue:t}:null)},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=this.keys();return Ln({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},e.prototype.entries=function(){var e=this,t=this.keys();return Ln({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},e.prototype[(fn=_,Symbol.iterator)]=function(){return this.entries()},e.prototype.forEach=function(e,t){var n,r;try{for(var i=R(this),o=i.next();!o.done;o=i.next()){var a=N(o.value,2),s=a[0],c=a[1];e.call(t,c,s,this)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.merge=function(e){var t=this;return yn(e)&&(e=e.toJS()),Xt((function(){var n=Se(!0);try{f(e)?y(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=N(e,2),r=n[0],i=n[1];return t.set(r,i)})):m(e)?(e.constructor!==Map&&s("Cannot initialize from classes that inherit from Map: "+e.constructor.name),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&s("Cannot initialize map from "+e)}finally{Ce(n)}})),this},e.prototype.clear=function(){var e=this;Xt((function(){le((function(){var t,n;try{for(var r=R(e.keys()),i=r.next();!i.done;i=r.next()){var o=i.value;e.delete(o)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}))}))},e.prototype.replace=function(e){var t=this;return Xt((function(){var n,r,i,o,a=function(e){if(m(e)||yn(e))return e;if(Array.isArray(e))return new Map(e);if(f(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return s("Cannot convert to map from '"+e+"'")}(e),c=new Map,l=!1;try{for(var u=R(t._data.keys()),d=u.next();!d.done;d=u.next()){var h=d.value;if(!a.has(h))if(t.delete(h))l=!0;else{var p=t._data.get(h);c.set(h,p)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}try{for(var g=R(a.entries()),v=g.next();!v.done;v=g.next()){var y=N(v.value,2),b=(h=y[0],p=y[1],t._data.has(h));if(t.set(h,p),t._data.has(h)){var w=t._data.get(h);c.set(h,w),b||(l=!0)}}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}if(!l)if(t._data.size!==c.size)t._keysAtom.reportChanged();else for(var x=t._data.keys(),_=c.keys(),S=x.next(),C=_.next();!S.done;){if(S.value!==C.value){t._keysAtom.reportChanged();break}S=x.next(),C=_.next()}t._data=c})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e,t,n={};try{for(var r=R(this),i=r.next();!i.done;i=r.next()){var o=N(i.value,2),a=o[0],s=o[1];n["symbol"==typeof a?a:b(a)]=s}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+Array.from(this.keys()).map((function(t){return b(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return sn(this,e)},e.prototype.intercept=function(e){return rn(this,e)},e}(),yn=p("ObservableMap",vn),bn={},wn=function(){function e(e,t,n){if(void 0===t&&(t=$),void 0===n&&(n="ObservableSet@"+a()),this.name=n,this[gn]=bn,this._data=new Set,this._atom=E(this.name),this[Symbol.toStringTag]="Set","function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,r){return t(e,r,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;Xt((function(){le((function(){var t,n;try{for(var r=R(e._data.values()),i=r.next();!i.done;i=r.next()){var o=i.value;e.delete(o)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}))}))},e.prototype.forEach=function(e,t){var n,r;try{for(var i=R(this),o=i.next();!o.done;o=i.next()){var a=o.value;e.call(t,a,a,this)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if(ae(this._atom),nn(this)&&!(r=on(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){Xt((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=an(this),r=n?{type:"add",object:this,newValue:e}:null;n&&cn(this,r)}return this},e.prototype.delete=function(e){var t=this;if(nn(this)&&!(r=on(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=an(this),r=n?{type:"delete",object:this,oldValue:e}:null;return Xt((function(){t._atom.reportChanged(),t._data.delete(e)})),n&&cn(this,r),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Ln({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e=this,t=0,n=Array.from(this._data.values());return Ln({next:function(){return t<n.length?{value:e.dehanceValue(n[t++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return xn(e)&&(e=e.toJS()),Xt((function(){var n=Se(!0);try{Array.isArray(e)||v(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&s("Cannot initialize set from "+e)}finally{Ce(n)}})),this},e.prototype.observe=function(e,t){return sn(this,e)},e.prototype.intercept=function(e){return rn(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},e.prototype[(gn=_,Symbol.iterator)]=function(){return this.values()},e}(),xn=p("ObservableSet",wn),_n=function(){function e(e,t,n,r){void 0===t&&(t=new Map),this.target=e,this.values=t,this.name=n,this.defaultEnhancer=r,this.keysAtom=new S(n+".keys")}return e.prototype.read=function(e){return this.values.get(e).get()},e.prototype.write=function(e,t){var n=this.target,r=this.values.get(e);if(r instanceof ke)r.set(t);else{if(nn(this)){if(!(o=on(this,{type:"update",object:this.proxy||n,name:e,newValue:t})))return;t=o.newValue}if((t=r.prepareNewValue(t))!==Me.UNCHANGED){var i=an(this),o=i?{type:"update",object:this.proxy||n,oldValue:r.value,name:e,newValue:t}:null;r.setNewValue(t),i&&cn(this,o)}}},e.prototype.has=function(e){var t=this.pendingKeys||(this.pendingKeys=new Map),n=t.get(e);if(n)return n.get();var r=!!this.values.get(e);return n=new Oe(r,F,this.name+"."+b(e)+"?",!1),t.set(e,n),n.get()},e.prototype.addObservableProp=function(e,t,n){void 0===n&&(n=this.defaultEnhancer);var r=this.target;if(nn(this)){var i=on(this,{object:this.proxy||r,name:e,type:"add",newValue:t});if(!i)return;t=i.newValue}var o=new Oe(t,n,this.name+"."+b(e),!1);this.values.set(e,o),t=o.value,Object.defineProperty(r,e,function(e){return Cn[e]||(Cn[e]={configurable:!0,enumerable:!0,get:function(){return this[_].read(e)},set:function(t){this[_].write(e,t)}})}(e)),this.notifyPropertyAddition(e,t)},e.prototype.addComputedProp=function(e,t,n){var r,i,o,a=this.target;n.name=n.name||this.name+"."+b(t),this.values.set(t,new ke(n)),(e===a||(r=e,i=t,!(o=Object.getOwnPropertyDescriptor(r,i))||!1!==o.configurable&&!1!==o.writable))&&Object.defineProperty(e,t,function(e){return En[e]||(En[e]={configurable:Me.computedConfigurable,enumerable:!1,get:function(){return On(this).read(e)},set:function(t){On(this).write(e,t)}})}(t))},e.prototype.remove=function(e){if(this.values.has(e)){var t=this.target;if(nn(this)&&!(a=on(this,{object:this.proxy||t,name:e,type:"remove"})))return;try{ze();var n=an(this),r=this.values.get(e),i=r&&r.get();if(r&&r.set(void 0),this.keysAtom.reportChanged(),this.values.delete(e),this.pendingKeys){var o=this.pendingKeys.get(e);o&&o.set(!1)}delete this.target[e];var a=n?{type:"remove",object:this.proxy||t,oldValue:i,name:e}:null;n&&cn(this,a)}finally{Ue()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return sn(this,e)},e.prototype.intercept=function(e){return rn(this,e)},e.prototype.notifyPropertyAddition=function(e,t){var n=an(this),r=n?{type:"add",object:this.proxy||this.target,name:e,newValue:t}:null;if(n&&cn(this,r),this.pendingKeys){var i=this.pendingKeys.get(e);i&&i.set(!0)}this.keysAtom.reportChanged()},e.prototype.getKeys=function(){var e,t;this.keysAtom.reportObserved();var n=[];try{for(var r=R(this.values),i=r.next();!i.done;i=r.next()){var o=N(i.value,2),a=o[0];o[1]instanceof Oe&&n.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e}();function Sn(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n=$),Object.prototype.hasOwnProperty.call(e,_))return e[_];f(e)||(t=(e.constructor.name||"ObservableObject")+"@"+a()),t||(t="ObservableObject@"+a());var r=new _n(e,new Map,b(t),n);return h(e,_,r),r}var Cn=Object.create(null),En=Object.create(null);function On(e){return e[_]||(M(e),e[_])}var jn=p("ObservableObjectAdministration",_n);function kn(e){return!!d(e)&&(M(e),jn(e[_]))}function Rn(e,t){if("object"==typeof e&&null!==e){if(pn(e))return void 0!==t&&s(!1),e[_].atom;if(xn(e))return e[_];if(yn(e)){var n=e;return void 0===t?n._keysAtom:((r=n._data.get(t)||n._hasMap.get(t))||s(!1),r)}var r;if(M(e),t&&!e[_]&&e[t],kn(e))return t?((r=e[_].values.get(t))||s(!1),r):s(!1);if(C(e)||Re(e)||Je(e))return e}else if("function"==typeof e&&Je(e[_]))return e[_];return s(!1)}function Nn(e,t){return e||s("Expecting some object"),void 0!==t?Nn(Rn(e,t)):C(e)||Re(e)||Je(e)||yn(e)||xn(e)?e:(M(e),e[_]?e[_]:void s(!1))}function Tn(e,t){return(void 0!==t?Rn(e,t):kn(e)||yn(e)||xn(e)?Nn(e):Rn(e)).name}var An=Object.prototype.toString;function Pn(e,t,n){return void 0===n&&(n=-1),Dn(e,t,n)}function Dn(e,t,n,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=An.call(e);
26if(a!==An.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=In(e),t=In(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var c=e.constructor,l=t.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return i[u]===t;if(r.push(e),i.push(t),s){if((u=e.length)!==t.length)return!1;for(;u--;)if(!Dn(e[u],t[u],n-1,r,i))return!1}else{var d=Object.keys(e),f=void 0;if(u=d.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!Mn(t,f=d[u])||!Dn(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function In(e){return pn(e)?e.slice():m(e)||yn(e)||v(e)||xn(e)?Array.from(e.entries()):e}function Mn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ln(e){return e[Symbol.iterator]=$n,e}function $n(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:tt,extras:{getDebugName:Tn},$mobx:_})},7563:(e,t,n)=>{const r=n(610),i=n(4020),o=n(500),a=n(2806),s=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=p(n[e],t);else r[e]=p(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=h,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",i,"]"].join("")]:[...n,[l(t,e),"[",l(i,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),":list="].join("")]:[...n,[l(t,e),":list=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[l(n,e),t,l(i,e)].join("")]:[[r,l(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?l(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":i.reduce(r(n),[]).join("&"):l(n,t)+"="+l(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>
26{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:g(h(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=f(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let c=t.stringify(a,n);c&&(c=`?${c}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?l(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${c}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:c},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},4448:(e,t,n)=>{
27/**
28 * @license React
29 * react-dom.production.min.js
30 *
31 * Copyright (c) Facebook, Inc. and its affiliates.
32 *
33 * This source code is licensed under the MIT license found in the
34 * LICENSE file in the root directory of this source tree.
35 */
36var r=n(7294),i=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function g(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;
vendor: 9,112 bytes, line 36
36if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),_=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),j=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var M,L=Object.assign;function $(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var c="\n"+i[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$(e):""}function V(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case _:return"Portal";case E:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function H(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){Y(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));
vendor: 3,311 bytes, line 36
36if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 5,932 bytes, line 36
36odeType?e.parentNode:e}var _e=null,Se=null,Ce=null;function Ee(e){if(e=bi(e)){if("function"!=typeof _e)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),_e(e.stateNode,e.type,t))}}function Oe(e){Se?Ce?Ce.push(e):Ce=[e]:Se=e}function je(){if(Se){var e=Se,t=Ce;if(Ce=Se=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function ke(e,t){return e(t)}function Re(){}var Ne=!1;function Te(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return ke(e,t,n)}finally{Ne=!1,(null!==Se||null!==Ce)&&(Re(),je())}}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Pe=!1;if(u)try{var De={};Object.defineProperty(De,"passive",{get:function(){Pe=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ue){Pe=!1}function Ie(e,t,n,r,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Me=!1,Le=null,$e=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function Ve(e,t,n,r,i,o,a,s,c){Me=!1,Le=null,Ie.apply(Be,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(ze(e)!==e)throw Error(o(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return We(i),e;if(a===r)return We(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=a;break}if(c===r){s=!0,r=i,n=a;break}c=c.sibling}if(!s){for(c=a.child;c;){if(c===n){s=!0,n=a,r=i;break}if(c===r){s=!0,r=a,n=i;break}c=c.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?He(e):null}function He(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=He(e);if(null!==t)return t;e=e.sibling}return null}var Ge=i.unstable_scheduleCallback,Ze=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Ye=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/ct|0)|0},st=Math.log,ct=Math.LN2,lt=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!=(o&=a)&&(r=dt(o))}else 0!=(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=lt;return 0==(4194240&(lt<<=1))&&(lt=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var xt,_t,St,Ct,Et,Ot=!1,jt=[],kt=null,Rt=null,Nt=null,Tt=new Map,At=new Map,Pt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&_t(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=yi(e.target);if(null!==t){var n=ze(t);
vendor: 14,538 bytes, line 36
36if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Et(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function $t(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){$t(e)&&n.delete(t)}function Bt(){Ot=!1,null!==kt&&$t(kt)&&(kt=null),null!==Rt&&$t(Rt)&&(Rt=null),null!==Nt&&$t(Nt)&&(Nt=null),Tt.forEach(Ft),At.forEach(Ft)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bt)))}function zt(e){function t(t){return Vt(t,e)}if(0<jt.length){Vt(jt[0],e);for(var n=1;n<jt.length;n++){var r=jt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kt&&Vt(kt,e),null!==Rt&&Vt(Rt,e),null!==Nt&&Vt(Nt,e),Tt.forEach(t),At.forEach(t),n=0;n<Pt.length;n++)(r=Pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Pt.length&&null===(n=Pt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Pt.shift()}var Ut=w.ReactCurrentBatchConfig,Wt=!0;function qt(e,t,n,r){var i=bt,o=Ut.transition;Ut.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=i,Ut.transition=o}}function Ht(e,t,n,r){var i=bt,o=Ut.transition;Ut.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=i,Ut.transition=o}}function Gt(e,t,n,r){if(Wt){var i=Kt(e,t,n,r);if(null===i)Wr(e,t,r,Zt,n),It(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return kt=Mt(kt,e,t,n,r,i),!0;case"dragenter":return Rt=Mt(Rt,e,t,n,r,i),!0;case"mouseover":return Nt=Mt(Nt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Tt.set(o,Mt(Tt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,At.set(o,Mt(At.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&xt(o),null===(o=Kt(e,t,n,r))&&Wr(e,t,r,Zt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Zt=null;function Kt(e,t,n,r){if(Zt=null,null!==(e=yi(e=xe(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Qt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Qt,r=n.length,i="value"in Yt?Yt.value:Yt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,cn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(ln),dn=L({},ln,{view:0,detail:0}),fn=on(dn),hn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(an=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=an=0,cn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),gn=on(L({},hn,{dataTransfer:0})),mn=on(L({},dn,{relatedTarget:0})),vn=on(L({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},ln,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function En(){return Cn}var On=L({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jn=on(On),kn=on(L({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Nn=on(L({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=L({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=on(Tn),Pn=[9,13,27,32],Dn=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var Mn=u&&"TextEvent"in window&&!In,Ln=u&&(!Dn||In&&8<In&&11>=In),$n=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function qn(e,t,n,r){Oe(r),0<(t=Hr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,Gn=null;function Zn(e){$r(e,0)}function Kn(e){if(G(wi(e)))return e}function Xn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Qn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Qn=Jn}else Qn=!1;Yn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Hn&&(Hn.detachEvent("onpropertychange",nr),Gn=Hn=null)}function nr(e){if("value"===e.propertyName&&Kn(Gn)){var t=[];qn(t,Gn,e,xe(e)),Te(Zn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Hn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Gn)}function or(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==Z(r)||(r="selectionStart"in(r=mr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&cr(yr,r)||(yr=r,0<(r=Hr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Sr={},Cr={};function Er(e){if(Sr[e])return Sr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return Sr[e]=n[t];return e}u&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Or=Er("animationend"),jr=Er("animationiteration"),kr=Er("animationstart"),Rr=Er("transitionend"),Nr=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){Nr.set(e,t),c(t,[e])}for(var Pr=0;Pr<Tr.length;Pr++){var Dr=Tr[Pr];Ar(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Ar(Or,"onAnimationEnd"),Ar(jr,"onAnimationIteration"),Ar(kr,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(Rr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focu
36sin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,c,l){if(Ve.apply(this,arguments),Me){if(!Me)throw Error(o(198));var u=Le;Me=!1,Le=null,$e||($e=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function $r(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&i.isPropagationStopped())break e;Lr(i,s,l),o=c}else for(a=0;a<r.length;a++){if(c=(s=r[a]).instance,l=s.currentTarget,s=s.listener,c!==o&&i.isPropagationStopped())break e;Lr(i,s,l),o=c}}}if($e)throw e=Fe,$e=!1,Fe=null,e}function Fr(e,t){var n=t[gi];void 0===n&&(n=t[gi]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Vr]){e[Vr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Br("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Xt(t)){case 1:var i=qt;break;case 4:i=Ht;break;default:i=Gt}n=i.bind(null,t,n,e),i=void 0,!Pe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===i||8===c.nodeType&&c.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(c=a.tag)||6===c){r=o=a;continue e}s=s.parentNode}}r=r.return}Te((function(){var r=o,i=xe(n),a=[];e:{var s=Nr.get(e);if(void 0!==s){var c=un,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":c=jn;break;case"focusin":l="focus",c=mn;break;case"focusout":l="blur",c=mn;break;case"beforeblur":case"afterblur":c=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Rn;break;case Or:case jr:case kr:c=vn;break;case Rr:c=Nn;break;case"scroll":c=fn;break;case"wheel":c=An;break;case"copy":case"cut":case"paste":c=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=kn}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&null!=(g=Ae(p,f))&&u.push(qr(p,g,h))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(l=n.relatedTarget||n.fromElement)||!yi(l)&&!l[pi])&&(c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(l=(l=n.relatedTarget||n.toElement)?yi(l):null)&&(l!==(d=ze(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=r),c!==l)){if(u=pn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=kn,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==c?s:wi(c),h=null==l?s:wi(l),(s=new u(g,p+"leave",c,n,i)).target=d,s.relatedTarget=h,g=null,yi(i)===r&&((u=new u(f,p+"enter",l,n,i)).target=h,u.relatedTarget=d,g=u),d=g,c&&l)e:{for(f=l,p=0,h=u=c;h;h=Gr(h))p++;for(h=0,g=f;g;g=Gr(g))h++;for(;0<p-h;)u=Gr(u),p--;for(;0<h-p;)f=Gr(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=Gr(u),f=Gr(f)}u=null}else u=null;null!==c&&Zr(a,s,c,u,!1),null!==l&&null!==d&&Zr(a,d,l,u,!0)}if("select"===(c=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var m=Xn;else if(Wn(s))if(Yn)m=ar;else{m=ir;var v=rr}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=or);switch(m&&(m=m(e,r))?qn(a,m,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?wi(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(mr=v,vr=r,yr=null);break;case"focusout":yr=vr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");
vendor: 32,650 bytes, line 36
36b&&(Ln&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=en()):(Qt="value"in(Yt=i)?Yt.value:Yt.textContent,zn=!0)),0<(v=Hr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:v}),(y||null!==(y=Vn(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Fn=!0,$n);case"textInput":return(e=t.data)===$n&&Fn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Dn&&Bn(e,t)?(e=en(),Jt=Qt=Yt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Hr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}$r(a,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ae(e,n))&&r.unshift(qr(e,o,i)),null!=(o=Ae(e,t))&&r.push(qr(e,o,i))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(null!==c&&c===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(c=Ae(n,o))&&a.unshift(qr(n,c,s)):i||null!=(c=Ae(n,o))&&a.push(qr(n,c,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Xr,"")}function Qr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ci(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);zt(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,hi="__reactProps$"+di,pi="__reactContainer$"+di,gi="__reactEvents$"+di,mi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[fi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[hi]||null}var _i=[],Si=-1;function Ci(e){return{current:e}}function Ei(e){0>Si||(e.current=_i[Si],_i[Si]=null,Si--)}function Oi(e,t){Si++,_i[Si]=e.current,e.current=t}var ji={},ki=Ci(ji),Ri=Ci(!1),Ni=ji;function Ti(e,t){var n=e.type.contextTypes;if(!n)return ji;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ai(e){return null!=e.childContextTypes}function Pi(){Ei(Ri),Ei(ki)}function Di(e,t,n){if(ki.current!==ji)throw Error(o(168));Oi(ki,t),Oi(Ri,n)}function Ii(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,U(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ji,Ni=ki.current,Oi(ki,e),Oi(Ri,Ri.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ii(e,t,Ni),r.__reactInternalMemoizedMergedChildContext=e,Ei(Ri),Ei(ki),Oi(ki,e)):Ei(Ri),Oi(Ri,n)}var $i=null,Fi=!1,Bi=!1;function Vi(e){null===$i?$i=[e]:$i.push(e)}function zi(){if(!Bi&&null!==$i){Bi=!0;var e=0,t=bt;try{var n=$i;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}$i=null,Fi=!1}catch(t){throw null!==$i&&($i=$i.slice(e+1)),Ge(Je,zi),t}finally{bt=t,Bi=!1}}return null}var Ui=[],Wi=0,qi=null,Hi=0,Gi=[],Zi=0,Ki=null,Xi=1,Yi="";function Qi(e,t){Ui[Wi++]=Hi,Ui[Wi++]=qi,qi=e,Hi=t}function Ji(e,t,n){Gi[Zi++]=Xi,Gi[Zi++]=Yi,Gi[Zi++]=Ki,Ki=e;var r=Xi;e=Yi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-at(t)+i|n<<i|r,Yi=o+e}else Xi=1<<o|n<<i|r,Yi=e}function eo(e){null!==e.return&&(Qi(e,1),Ji(e,1,0))}function to(e){for(;e===qi;)qi=Ui[--Wi],Ui[Wi]=null,Hi=Ui[--Wi],Ui[Wi]=null;for(;e===Ki;)Ki=Gi[--Zi],Gi[Zi]=null,Yi=Gi[--Zi],Gi[Zi]=null,Xi=Gi[--Zi],Gi[Zi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Al(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ki?{id:Xi,overflow:Yi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Al(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function co(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function lo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(co(e))throw Error(o(418));t=li(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(co(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(co(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=li(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=li(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?li(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=li(e.nextSibling)}function po(){ro=no=null,io=!1}function go(e){null===oo?oo=[e]:oo.push(e)}var mo=w.ReactCurrentBatchConfig;function vo(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=Ci(null),bo=null,wo=null,xo=null;function _o(){xo=wo=bo=null}function So(e){var t=yo.current;Ei(yo),e._currentValue=t}function Co(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Eo(e,t){bo=e,xo=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===bo)throw Error(o(308));wo=e,bo.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var jo=null;function ko(e){null===jo?jo=[e]:jo.push(e)}function Ro(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,ko(t)):(n.next=i.next,i.next=n),t.interleaved=n,No(e,r)}function No(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var To=!1;function Ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Po(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Do(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Rc)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,No(e,n)}return null===(i=r.interleaved)?(t.next=t,ko(r)):(t.next=i.next,i.next=t),r.interleaved=t,No(e,n)}function Mo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $o(e,t,n,r){var i=e.updateQueue;To=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var c=s,l=c.next;c.next=null,null===a?o=l:a.next=l,a=c;var u=e.alternate;null!==u&&(s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c)}if(null!==o){var d=i.baseState;for(a=0,u=l=c=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(f=t,h=n,g.tag){case 1:if("function"==typeof(p=g.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=g.payload)?p.call(h,d,f):p))break e;d=L({},d,f);break e;case 2:To=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(l=u=h,c=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Lc|=a,e.lanes=a,e.memoizedState=d}}function Fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Bo=(new r.Component).refs;function Vo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var zo={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tl(),i=nl(e),o=Do(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,i))&&(rl(t,e,i,r),Mo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tl(),i=nl(e),o=Do(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,i))&&(rl(t,e,i,r),Mo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tl(),r=nl(e),i=Do(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Io(e,i,r))&&(rl(t,e,r,n),Mo(t,e,r))}};function Uo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(i,o))}function Wo(e,t,n){var r=!1,i=ji,o=t.contextType;return"object"==typeof o&&null!==o?o=Oo(o):(i=Ai(t)?Ni:ki.current,o=(r=null!=(r=t.contextTypes))?Ti(e,i):ji),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function qo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zo.enqueueReplaceState(t,t.state,null)}function Ho(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Bo,Ao(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Oo(o):(o=Ai(t)?Ni:ki.current,i.context=Ti(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Vo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&zo.enqueueReplaceState(i,i.state,null),$o(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Go(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Bo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Zo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ko(e){return(0,e._init)(e._payload)}function Xo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Dl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=$l(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===A&&Ko(o)===t.type)?((r=i(t,n.props)).ref=Go(e,t,n),r.return=e,r):((r=Il(n.type,n.key,n.props,null,e.mode,r)).ref=Go(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Ml(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=$l(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Il(t.type,t.key,t.props,null,e.mode,n)).ref=Go(e,null,t),n.return=e,n;case _:return(t=Fl(t,e.mode,n)).return=e,t;case A:return f(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Ml(t,e.mode,n,null)).return=e,t;Zo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case A:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||I(n))return null!==i?null:d(e,t,n,r,null);Zo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case A:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,i,null);Zo(t,r)}return null}function g(i,o,s,c){for(var l=null,u=null,d=o,g=o=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(i,d,s[g],c);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,g),null===u?l=v:u.sibling=v,u=v,d=m}if(g===s.length)return n(i,d),io&&Qi(i,g),l;if(null===d){for(;g<s.length;g++)null!==(d=f(i,s[g],c))&&(o=a(d,o,g),null===u?l=d:u.sibling=d,u=d);return io&&Qi(i,g),l}for(d=r(i,d);g<s.length;g++)null!==(m=p(d,i,g,s[g],c))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=a(m,o,g),null===u?l=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(i,e)})),io&&Qi(i,g),l}function m(i,s,c,l){var u=I(c);if("function"!=typeof u)throw Error(o(150));if(null==(c=u.call(c)))throw Error(o(151));for(var d=u=null,g=s,m=s=0,v=null,y=c.next();null!==g&&!y.done;m++,y=c.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=h(i,g,y.value,l);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(i,g),s=a(b,s,m),null===d?u=b:d.sibling=b,d=b,g=v}if(y.done)return n(i,g),io&&Qi(i,m),u;if(null===g){for(;!y.done;m++,y=c.next())null!==(y=f(i,y.value,l))&&(s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return io&&Qi(i,m),u}for(g=r(i,g);!y.done;m++,y=c.next())null!==(y=p(g,i,m,y.value,l))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(i,e)})),io&&Qi(i,m),u}return function e(r,o,a,c){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var l=a.key,u=o;null!==u;){if(u.key===l){if((l=a.type)===S){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===A&&Ko(l)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=Go(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===S?((o=Ml(a.props.children,r.mode,c,a.key)).return=r,r=o):((c=Il(a.type,a.key,a.props,null,r.mode,c)).ref=Go(r,o,a),c.return=r,r=c)}return s(r);case _:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Fl(a,r.mode,c)).return=r,r=o}return s(r);case A:return e(r,o,(u=a._init)(a._payload),c)}if(te(a))return g(r,o,a,c);if(I(a))return m(r,o,a,c);Zo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=$l(a,r.mode,c)).return=r,r=o),s(r)):n(r,o)}}var Yo=Xo(!0),Qo=Xo(!1),Jo={},ea=Ci(Jo),ta=Ci(Jo),na=Ci(Jo);function ra(e){if(e===Jo)throw Error(o(174));return e}function ia(e,t){switch(Oi(na,t),Oi(ta,e),Oi(ea,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(ea),Oi(ea,t)}function oa(){Ei(ea),Ei(ta),Ei(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=ce(t,e.type);t!==n&&(Oi(ta,e),Oi(ea,n))}function sa(e){ta.current===e&&(Ei(ea),Ei(ta))}var ca=Ci(0);function la(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function da(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var fa=w.ReactCurrentDispatcher,ha=w.ReactCurrentBatchConfig,pa=0,ga=null,ma=null,va=null,ya=!1,ba=!1,wa=0,xa=0;function _a(){throw Error(o(321))}function Sa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ca(e,t,n,r,i,a){if(pa=a,ga=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:cs,e=n(r,i),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(o(301));a+=1,va=ma=null,t.updateQueue=null,fa.current=ls,e=n(r,i)}while(ba)}if(fa.current=as,t=null!==ma&&null!==ma.next,pa=0,va=ma=ga=null,ya=!1,t)throw Error(o(300));return e}function Ea(){var e=0!==wa;return wa=0,e}function Oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ga.memoizedState=va=e:va=va.next=e,va}function ja(){if(null===ma){var e=ga.alternate;e=null!==e?e.memoizedState:null}else e=ma.next;var t=null===va?ga.memoizedState:va.next;if(null!==t)va=t,ma=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ma=e).memoizedState,baseState:ma.baseState,baseQueue:ma.baseQueue,queue:ma.queue,next:null},null===va?ga.memoizedState=va=e:va=va.next=e}return va}function ka(e,t){return"function"==typeof t?t(e):t}function Ra(e){var t=ja(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ma,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var c=s=null,l=null,u=a;do{var d=u.lane;if((pa&d)===d)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(c=l=f,s=r):l=l.next=f,ga.lanes|=d,Lc|=d}u=u.next}while(null!==u&&u!==a);null===l?s=r:l.next=c,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,ga.lanes|=a,Lc|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Na(e){var t=ja(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ta(){}function Aa(e,t){var n=ga,r=ja(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,ws=!0),r=r.queue,Wa(Ia.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,Fa(9,Da.bind(null,n,r,i,t),void 0,null),null===Nc)throw Error(o(349));0!=(30&pa)||Pa(n,t,i)}return i}function Pa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ga.updateQueue)?(t={lastEffect:null,stores:null},ga.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Da(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&La(e)}function Ia(e,t,n){return n((function(){Ma(t)&&La(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function La(e){var t=No(e,1);null!==t&&rl(t,e,1,-1)}function $a(e){var t=Oa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ga,e),[t.memoizedState,e]}function Fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ga.updateQueue)?(t={lastEffect:null,stores:null},ga.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ba(){return ja().memoizedState}function Va(e,t,n,r){var i=Oa();ga.flags|=e,i.memoizedState=Fa(1|t,n,void 0,void 0===r?null:r)}function za(e,t,n,r){var i=ja();r=void 0===r?null:r;var o=void 0;if(null!==ma){var a=ma.memoizedState;if(o=a.destroy,null!==r&&Sa(r,a.deps))return void(i.memoizedState=Fa(t,n,o,r))}ga.flags|=e,i.memoizedState=Fa(1|t,n,o,r)}function Ua(e,t){return Va(8390656,8,e,t)}function Wa(e,t){return za(2048,8,e,t)}function qa(e,t){return za(4,2,e,t)}function Ha(e,t){return za(4,4,e,t)}function Ga(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Za(e,t,n){return n=null!=n?n.concat([e]):null,za(4,4,Ga.bind(null,t,e),n)}function Ka(){}function Xa(e,t){var n=ja();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ya(e,t){var n=ja();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return 0==(21&pa)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=gt(),ga.lanes|=n,Lc|=n,e.baseState=!0),t)}function Ja(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ha.transition;ha.transition={};try{e(!1),t()}finally{bt=n,ha.transition=r}}function es(){return ja().memoizedState}function ts(e,t,n){var r=nl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?is(t,n):null!==(n=Ro(e,t,n,r))&&(rl(n,e,r,tl()),os(n,t,r))}function ns(e,t,n){var r=nl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var c=t.interleaved;return null===c?(i.next=i,ko(t)):(i.next=c.next,c.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Ro(e,t,i,r))&&(rl(n,e,r,i=tl()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===ga||null!==t&&t===ga}function is(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:Oo,useCallback:_a,useContext:_a,useEffect:_a,useImperativeHandle:_a,useInsertionEffect:_a,useLayoutEffect:_a,useMemo:_a,useReducer:_a,useRef:_a,useState:_a,useDebugValue:_a,useDeferredValue:_a,useTransition:_a,useMutableSource:_a,useSyncExternalStore:_a,useId:_a,unstable_isNewReconciler:!1},ss={readContext:Oo,useCallback:function(e,t){return Oa().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:Ua,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Va(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Va(4194308,4,e,t)},useInsertionEffect:function(e,t){return Va(4,2,e,t)},useMemo:function(e,t){var n=Oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,ga,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oa().memoizedState=e},useState:$a,useDebugValue:Ka,useDeferredValue:function(e){return Oa().memoizedState=e},useTransition:function(){var e=$a(!1),t=e[0];return e=Ja.bind(null,e[1]),Oa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ga,i=Oa();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Nc)throw Error(o(349));0!=(30&pa)||Pa(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ua(Ia.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,Da.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Oa(),t=Nc.identifierPrefix;if(io){var n=Yi;t=":"+t+"R"+(n=(Xi&~(1<<32-at(Xi)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cs={readContext:Oo,useCallback:Xa,useContext:Oo,useEffect:Wa,useImperativeHandle:Za,useInsertionEffect:qa,useLayoutEffect:Ha,useMemo:Ya,useReducer:Ra,useRef:Ba,useState:function(){return Ra(ka)},useDebugValue:Ka,useDeferredValue:function(e){return Qa(ja(),ma.memoizedState,e)},useTransition:function(){return[Ra(ka)[0],ja().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Aa,useId:es,unstable_isNewReconciler:!1},ls={readContext:Oo,useCallback:Xa,useContext:Oo,useEffect:Wa,useImperativeHandle:Za,useInsertionEffect:qa,useLayoutEffect:Ha,useMemo:Ya,useReducer:Na,useRef:Ba,useState:function(){return Na(ka)},useDebugValue:Ka,useDeferredValue:function(e){var t=ja();return null===ma?t.memoizedState=e:Qa(t,ma.memoizedState,e)},useTransition:function(){return[Na(ka)[0],ja().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Aa,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Do(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qc||(qc=!0,Hc=r),fs(0,t)},n}function gs(e,t,n){(n=Do(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===Gc?Gc=new Set([this]):Gc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ol.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Do(-1,1)).tag=2,Io(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=w.ReactCurrentOwner,ws=!1;function xs(e,t,n,r){t.child=null===e?Qo(t,null,n,r):Yo(t,e.child,n,r)}function _s(e,t,n,r,i){n=n.render;var o=t.ref;return Eo(t,i),r=Ca(e,t,n,r,o,i),n=Ea(),null===e||ws?(io&&n&&eo(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Pl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Il(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cs(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(a,r)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,(e=Dl(o,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(cr(o,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,qs(e,t,i);0!=(131072&e.flags)&&(ws=!0)}}return js(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oi(Dc,Pc),Pc|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oi(Dc,Pc),Pc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Oi(Dc,Pc),Pc|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Oi(Dc,Pc),Pc|=r;return xs(e,t,i,n),t.child}function Os(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 17,571 bytes, line 36
36function js(e,t,n,r,i){var o=Ai(n)?Ni:ki.current;return o=Ti(t,o),Eo(t,i),n=Ca(e,t,n,r,o,i),r=Ea(),null===e||ws?(io&&r&&eo(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function ks(e,t,n,r,i){if(Ai(n)){var o=!0;Mi(t)}else o=!1;if(Eo(t,i),null===t.stateNode)Ws(e,t),Wo(t,n,r),Ho(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;l="object"==typeof l&&null!==l?Oo(l):Ti(t,l=Ai(n)?Ni:ki.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==l)&&qo(t,a,r,l),To=!1;var f=t.memoizedState;a.state=f,$o(t,r,a,i),c=t.memoizedState,s!==r||f!==c||Ri.current||To?("function"==typeof u&&(Vo(t,n,u,r),c=t.memoizedState),(s=To||Uo(t,n,s,r,f,c,l))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Po(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:vo(t.type,s),a.props=l,d=t.pendingProps,f=a.context,c="object"==typeof(c=n.contextType)&&null!==c?Oo(c):Ti(t,c=Ai(n)?Ni:ki.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==c)&&qo(t,a,r,c),To=!1,f=t.memoizedState,a.state=f,$o(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Ri.current||To?("function"==typeof h&&(Vo(t,n,h,r),p=t.memoizedState),(l=To||Uo(t,n,l,r,f,p,c)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,o,i)}function Rs(e,t,n,r,i,o){Os(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),qs(e,t,o);r=t.stateNode,bs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Yo(t,e.child,null,o),t.child=Yo(t,null,s,o)):xs(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Ns(e){var t=e.stateNode;t.pendingContext?Di(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Di(0,t.context,!1),ia(e,t.containerInfo)}function Ts(e,t,n,r,i){return po(),go(i),t.flags|=256,xs(e,t,n,r),t.child}var As,Ps,Ds,Is,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function $s(e,t,n){var r,i=t.pendingProps,a=ca.current,s=!1,c=0!=(128&t.flags);if((r=c)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Oi(ca,1&a),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(c=i.children,e=i.fallback,s?(i=t.mode,s=t.child,c={mode:"hidden",children:c},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=c):s=Ll(c,i,0,null),e=Ml(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=Ms,e):Fs(t,c));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Ll({mode:"visible",children:r.children},i,0,null),(a=Ml(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Yo(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Ms,a);if(0==(1&t.mode))return Bs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var c=r.dgst;return r=c,Bs(e,t,s,r=ds(a=Error(o(419)),r,void 0))}if(c=0!=(s&e.childLanes),ws||c){if(null!==(r=Nc)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,No(e,i),rl(r,e,i,-1))}return ml(),Bs(e,t,s,r=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=kl.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=li(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Gi[Zi++]=Xi,Gi[Zi++]=Yi,Gi[Zi++]=Ki,Xi=e.id,Yi=e.overflow,Ki=t),(t=Fs(t,r.children)).flags|=4096,t)}(e,t,c,i,r,a,n);if(s){s=i.fallback,c=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&c)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Dl(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Dl(r,s):(s=Ml(s,c,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,c=null===(c=e.child.memoizedState)?Ls(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Dl(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=Ll({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&go(r),Yo(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Co(e.return,t,n)}function zs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Us(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xs(e,t,r.children,n),0!=(2&(r=ca.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vs(e,n,t);else if(19===e.tag)Vs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oi(ca,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===la(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===la(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zs(t,!0,n,null,o);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Lc|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Dl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Zs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Ai(t.type)&&Pi(),Gs(t),null;case 3:return r=t.stateNode,oa(),Ei(Ri),Ei(ki),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(sl(oo),oo=null))),Ps(e,t),Gs(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Gs(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[hi]=a,e=0!=(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<Ir.length;i++)Fr(Ir[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":X(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":ie(r,a),Fr("invalid",r)}for(var c in ye(n,a),i=null,a)if(a.hasOwnProperty(c)){var l=a[c];"children"===c?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,l,e),i=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,l,e),i=["children",""+l]):s.hasOwnProperty(c)&&null!=l&&"onScroll"===c&&Fr("scroll",r)}switch(n){case"input":H(r),J(r,a,!0);break;case"textarea":H(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{c=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[fi]=t,e[hi]=r,As(e,t,!1,!1),t.stateNode=e;e:{switch(c=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ir.length;i++)Fr(Ir[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":X(e,r),i=K(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(a in ye(n,i),l=i)if(l.hasOwnProperty(a)){var u=l[a];"style"===a?me(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&b(e,a,u,c))}switch(n){case"input":H(e),J(e,r,!1);break;case"textarea":H(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Is(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Gs(t),null;case 13:if(Ei(ca),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else po(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),a=!1}else null!==oo&&(sl(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ca.current)?0===Ic&&(Ic=3):ml())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return oa(),Ps(e,t),null===e&&zr(t.stateNode.containerInfo),Gs(t),null;case 10:return So(t.type._context),Gs(t),null;case 19:if(Ei(ca),null===(a=t.memoizedState))return Gs(t),null;if(r=0!=(128&t.flags),null===(c=a.rendering))if(r)Hs(a,!1);else{if(0!==Ic||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(c=la(e))){for(t.flags|=128,Hs(a,!1),null!==(r=c.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oi(ca,1&ca.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>Uc&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=la(c))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!io)return Gs(t),null}else 2*Ye()-a.renderingStartTime>Uc&&1073741824!==n&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=a.last)?n.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=ca.current,Oi(ca,r?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return fl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Pc)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ks(e,t){switch(to(t),t.tag){case 1:return Ai(t.type)&&Pi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Ei(Ri),Ei(ki),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Ei(ca),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(ca),null;case 4:return oa(),null;case 10:return So(t.type._context),null;case 22:case 23:return fl(),null;default:return null}}As=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},Ds=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=K(e,i),r=K(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var c=i[u];for(o in c)c.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];
vendor: 33,443 bytes, line 36
36if(c=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(o in c)!c.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&c[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Fr("scroll",e),a||c===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Is=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xs=!1,Ys=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Js=null;function ec(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){El(e,t,n)}else n.current=null}function tc(e,t,n){try{n()}catch(n){El(e,t,n)}}var nc=!1;function rc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tc(t,n,o)}i=i.next}while(i!==r)}}function ic(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ac(e){var t=e.alternate;null!==t&&(e.alternate=null,ac(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fi],delete t[hi],delete t[gi],delete t[mi],delete t[vi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sc(e){return 5===e.tag||3===e.tag||4===e.tag}function cc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(lc(e,t,n),e=e.sibling;null!==e;)lc(e,t,n),e=e.sibling}function uc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(uc(e,t,n),e=e.sibling;null!==e;)uc(e,t,n),e=e.sibling}var dc=null,fc=!1;function hc(e,t,n){for(n=n.child;null!==n;)pc(e,t,n),n=n.sibling}function pc(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Ys||ec(n,t);case 6:var r=dc,i=fc;dc=null,hc(e,t,n),fc=i,null!==(dc=r)&&(fc?(e=dc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dc.removeChild(n.stateNode));break;case 18:null!==dc&&(fc?(e=dc,n=n.stateNode,8===e.nodeType?ci(e.parentNode,n):1===e.nodeType&&ci(e,n),zt(e)):ci(dc,n.stateNode));break;case 4:r=dc,i=fc,dc=n.stateNode.containerInfo,fc=!0,hc(e,t,n),dc=r,fc=i;break;case 0:case 11:case 14:case 15:if(!Ys&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&tc(n,t,a),i=i.next}while(i!==r)}hc(e,t,n);break;case 1:if(!Ys&&(ec(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){El(n,t,e)}hc(e,t,n);break;case 21:hc(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,hc(e,t,n),Ys=r):hc(e,t,n);break;default:hc(e,t,n)}}function gc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Rl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function mc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,c=s;e:for(;null!==c;){switch(c.tag){case 5:dc=c.stateNode,fc=!1;break e;case 3:case 4:dc=c.stateNode.containerInfo,fc=!0;break e}c=c.return}if(null===dc)throw Error(o(160));pc(a,s,i),dc=null,fc=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){El(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vc(t,e),t=t.sibling}function vc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mc(t,e),yc(e),4&r){try{rc(3,e,e.return),ic(3,e)}catch(t){El(e,e.return,t)}try{rc(5,e,e.return)}catch(t){El(e,e.return,t)}}break;case 1:mc(t,e),yc(e),512&r&&null!==n&&ec(n,n.return);break;case 5:if(mc(t,e),yc(e),512&r&&null!==n&&ec(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){El(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,c=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===c&&"radio"===a.type&&null!=a.name&&Y(i,a),be(c,s);var u=be(c,a);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];"style"===d?me(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,u)}switch(c){case"input":Q(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(t){El(e,e.return,t)}}break;case 6:if(mc(t,e),yc(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){El(e,e.return,t)}}break;case 3:if(mc(t,e),yc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){El(e,e.return,t)}break;case 4:default:mc(t,e),yc(e);break;case 13:mc(t,e),yc(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(zc=Ye())),4&r&&gc(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(u=Ys)||d,mc(t,e),Ys=u):mc(t,e),yc(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(p=(h=Js).child,h.tag){case 0:case 11:case 14:case 15:rc(4,h,h.return);break;case 1:ec(h,h.return);var g=h.stateNode;if("function"==typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){El(r,n,e)}}break;case 5:ec(h,h.return);break;case 22:if(null!==h.memoizedState){_c(f);continue}}null!==p?(p.return=h,Js=p):_c(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(c=f.stateNode,s=null!=(l=f.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,c.style.display=ge("display",s))}catch(t){El(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){El(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:mc(t,e),yc(e),4&r&&gc(e);case 21:}}function yc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sc(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),uc(e,cc(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;lc(e,cc(e),a);break;default:throw Error(o(161))}}catch(t){El(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bc(e,t,n){Js=e,wc(e,t,n)}function wc(e,t,n){for(var r=0!=(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Xs;if(!a){var s=i.alternate,c=null!==s&&null!==s.memoizedState||Ys;s=Xs;var l=Ys;if(Xs=a,(Ys=c)&&!l)for(Js=i;null!==Js;)c=(a=Js).child,22===a.tag&&null!==a.memoizedState?Sc(i):null!==c?(c.return=a,Js=c):Sc(i);for(;null!==o;)Js=o,wc(o,t,n),o=o.sibling;Js=i,Xs=s,Ys=l}xc(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Js=o):xc(e)}}function xc(e){for(;null!==Js;){var t=Js;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||ic(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:vo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fo(t,s,n)}break;case 5:var c=t.stateNode;if(null===n&&4&t.flags){n=c;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&zt(f)}}}break;default:throw Error(o(163))}Ys||512&t.flags&&oc(t)}catch(e){El(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function _c(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sc(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ic(4,t)}catch(e){El(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){El(t,i,e)}}var o=t.return;try{oc(t)}catch(e){El(t,o,e)}break;case 5:var a=t.return;try{oc(t)}catch(e){El(t,a,e)}}}catch(e){El(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Cc,Ec=Math.ceil,Oc=w.ReactCurrentDispatcher,jc=w.ReactCurrentOwner,kc=w.ReactCurrentBatchConfig,Rc=0,Nc=null,Tc=null,Ac=0,Pc=0,Dc=Ci(0),Ic=0,Mc=null,Lc=0,$c=0,Fc=0,Bc=null,Vc=null,zc=0,Uc=1/0,Wc=null,qc=!1,Hc=null,Gc=null,Zc=!1,Kc=null,Xc=0,Yc=0,Qc=null,Jc=-1,el=0;function tl(){return 0!=(6&Rc)?Ye():-1!==Jc?Jc:Jc=Ye()}function nl(e){return 0==(1&e.mode)?1:0!=(2&Rc)&&0!==Ac?Ac&-Ac:null!==mo.transition?(0===el&&(el=gt()),el):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function rl(e,t,n,r){if(50<Yc)throw Yc=0,Qc=null,Error(o(185));vt(e,n,r),0!=(2&Rc)&&e===Nc||(e===Nc&&(0==(2&Rc)&&($c|=n),4===Ic&&cl(e,Ac)),il(e,r),1===n&&0===Rc&&0==(1&t.mode)&&(Uc=Ye()+500,Fi&&zi()))}function il(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,c=i[a];-1===c?0!=(s&n)&&0==(s&r)||(i[a]=ht(s,t)):c<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Nc?Ac:0);if(0===r)null!==n&&Ze(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ze(n),1===t)0===e.tag?function(e){Fi=!0,Vi(e)}(ll.bind(null,e)):Vi(ll.bind(null,e)),ai((function(){0==(6&Rc)&&zi()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nl(n,ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ol(e,t){if(Jc=-1,el=0,0!=(6&Rc))throw Error(o(327));var n=e.callbackNode;if(Sl()&&e.callbackNode!==n)return null;var r=ft(e,e===Nc?Ac:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=vl(e,r);else{t=r;var i=Rc;Rc|=2;var a=gl();for(Nc===e&&Ac===t||(Wc=null,Uc=Ye()+500,hl(e,t));;)try{bl();break}catch(t){pl(e,t)}_o(),Oc.current=a,Rc=i,null!==Tc?t=0:(Nc=null,Ac=0,t=Ic)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=al(e,i)),1===t)throw n=Mc,hl(e,0),cl(e,r),il(e,Ye()),n;if(6===t)cl(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=vl(e,r))&&0!==(a=pt(e))&&(r=a,t=al(e,a)),1===t))throw n=Mc,hl(e,0),cl(e,r),il(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:_l(e,Vc,Wc);break;case 3:if(cl(e,r),(130023424&r)===r&&10<(t=zc+500-Ye())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_l.bind(null,e,Vc,Wc),t);break}_l(e,Vc,Wc);break;case 4:if(cl(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ec(r/1960))-r)){e.timeoutHandle=ri(_l.bind(null,e,Vc,Wc),r);break}_l(e,Vc,Wc);break;default:throw Error(o(329))}}}return il(e,Ye()),e.callbackNode===n?ol.bind(null,e):null}function al(e,t){var n=Bc;return e.current.memoizedState.isDehydrated&&(hl(e,t).flags|=256),2!==(e=vl(e,t))&&(t=Vc,Vc=n,null!==t&&sl(t)),e}function sl(e){null===Vc?Vc=e:Vc.push.apply(Vc,e)}function cl(e,t){for(t&=~Fc,t&=~$c,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function ll(e){if(0!=(6&Rc))throw Error(o(327));Sl();var t=ft(e,0);if(0==(1&t))return il(e,Ye()),null;var n=vl(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=al(e,r))}if(1===n)throw n=Mc,hl(e,0),cl(e,t),il(e,Ye()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e,Vc,Wc),il(e,Ye()),null}function ul(e,t){var n=Rc;Rc|=1;try{return e(t)}finally{0===(Rc=n)&&(Uc=Ye()+500,Fi&&zi())}}function dl(e){null!==Kc&&0===Kc.tag&&0==(6&Rc)&&Sl();var t=Rc;Rc|=1;var n=kc.transition,r=bt;try{if(kc.transition=null,bt=1,e)return e()}finally{bt=r,kc.transition=n,0==(6&(Rc=t))&&zi()}}function fl(){Pc=Dc.current,Ei(Dc)}function hl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Tc)for(n=Tc.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Pi();break;case 3:oa(),Ei(Ri),Ei(ki),da();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:Ei(ca);break;case 10:So(r.type._context);break;case 22:case 23:fl()}n=n.return}if(Nc=e,Tc=e=Dl(e.current,null),Ac=Pc=t,Ic=0,Mc=null,Fc=$c=Lc=0,Vc=Bc=null,null!==jo){for(t=0;t<jo.length;t++)if(null!==(r=(n=jo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}jo=null}return e}function pl(e,t){for(;;){var n=Tc;try{if(_o(),fa.current=as,ya){for(var r=ga.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ya=!1}if(pa=0,va=ma=ga=null,ba=!1,wa=0,jc.current=null,null===n||null===n.return){Ic=1,Mc=t,Tc=null;break}e:{var a=e,s=n.return,c=n,l=t;if(t=Ac,c.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,d=c,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=vs(s);if(null!==p){p.flags&=-257,ys(p,s,c,0,t),1&p.mode&&ms(a,u,t),l=u;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(l),t.updateQueue=m}else g.add(l);break e}if(0==(1&t)){ms(a,u,t),ml();break e}l=Error(o(426))}else if(io&&1&c.mode){var v=vs(s);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),ys(v,s,c,0,t),go(us(l,c));break e}}a=l=us(l,c),4!==Ic&&(Ic=2),null===Bc?Bc=[a]:Bc.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,ps(0,l,t));break e;case 1:c=l;var y=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Gc||!Gc.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,gs(a,c,t));break e}}a=a.return}while(null!==a)}xl(n)}catch(e){t=e,Tc===n&&null!==n&&(Tc=n=n.return);continue}break}}function gl(){var e=Oc.current;return Oc.current=as,null===e?as:e}function ml(){0!==Ic&&3!==Ic&&2!==Ic||(Ic=4),null===Nc||0==(268435455&Lc)&&0==(268435455&$c)||cl(Nc,Ac)}function vl(e,t){var n=Rc;Rc|=2;var r=gl();for(Nc===e&&Ac===t||(Wc=null,hl(e,t));;)try{yl();break}catch(t){pl(e,t)}if(_o(),Rc=n,Oc.current=r,null!==Tc)throw Error(o(261));return Nc=null,Ac=0,Ic}function yl(){for(;null!==Tc;)wl(Tc)}function bl(){for(;null!==Tc&&!Ke();)wl(Tc)}function wl(e){var t=Cc(e.alternate,e,Pc);e.memoizedProps=e.pendingProps,null===t?xl(e):Tc=t,jc.current=null}function xl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Zs(n,t,Pc)))return void(Tc=n)}else{if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Tc=n);if(null===e)return Ic=6,void(Tc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tc=t);Tc=t=e}while(null!==t);0===Ic&&(Ic=5)}function _l(e,t,n){var r=bt,i=kc.transition;try{kc.transition=null,bt=1,function(e,t,n,r){do{Sl()}while(null!==Kc);if(0!=(6&Rc))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Nc&&(Tc=Nc=null,Ac=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Zc||(Zc=!0,Nl(tt,(function(){return Sl(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=kc.transition,kc.transition=null;var s=bt;bt=1;var c=Rc;Rc|=4,jc.current=null,function(e,t){if(ei=Wt,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,c=-1,l=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(c=s+i),f!==a||0!==r&&3!==f.nodeType||(l=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===i&&(c=s),h===a&&++d===r&&(l=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===c||-1===l?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Wt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var g=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:vo(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(e){El(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}g=nc,nc=!1}(e,n),vc(n,e),pr(ti),Wt=!!ei,ti=ei=null,e.current=n,bc(n,e,i),Xe(),Rc=c,bt=s,kc.transition=a}else e.current=n;if(Zc&&(Zc=!1,Kc=e,Xc=i),0===(a=e.pendingLanes)&&(Gc=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),il(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(qc)throw qc=!1,e=Hc,Hc=null,e;0!=(1&Xc)&&0!==e.tag&&Sl(),0!=(1&(a=e.pendingLanes))?e===Qc?Yc++:(Yc=0,Qc=e):Yc=0,zi()}(e,t,n,r)}finally{kc.transition=i,bt=r}return null}function Sl(){if(null!==Kc){var e=wt(Xc),t=kc.transition,n=bt;try{if(kc.transition=null,bt=16>e?16:e,null===Kc)var r=!1;else{if(e=Kc,Kc=null,Xc=0,0!=(6&Rc))throw Error(o(331));var i=Rc;for(Rc|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!=(16&Js.flags)){var c=a.deletions;if(null!==c){for(var l=0;l<c.length;l++){var u=c[l];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rc(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var h=(d=Js).sibling,p=d.return;if(ac(d),d===u){Js=null;break}if(null!==h){h.return=p,Js=h;break}Js=p}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Js=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!=(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:rc(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!=(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!=(2048&(c=Js).flags))try{switch(c.tag){case 0:case 11:case 15:ic(9,c)}}catch(e){El(c,c.return,e)}if(c===s){Js=null;break e}var x=c.sibling;if(null!==x){x.return=c.return,Js=x;break e}Js=c.return}}if(Rc=i,zi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,kc.transition=t}}return!1}function Cl(e,t,n){e=Io(e,t=ps(0,t=us(n,t),1),1),t=tl(),null!==e&&(vt(e,1,t),il(e,t))}function El(e,t,n){if(3===e.tag)Cl(e,e,n);else for(;null!==t;){if(3===t.tag){Cl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gc||!Gc.has(r))){t=Io(t,e=gs(t,e=us(n,e),1),1),e=tl(),null!==t&&(vt(t,1,e),il(t,e));break}}t=t.return}}function Ol(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tl(),e.pingedLanes|=e.suspendedLanes&n,Nc===e&&(Ac&n)===n&&(4===Ic||3===Ic&&(130023424&Ac)===Ac&&500>Ye()-zc?hl(e,0):Fc|=n),il(e,t)}function jl(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tl();null!==(e=No(e,t))&&(vt(e,t,n),il(e,n))}function kl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),jl(e,n)}function Rl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),jl(e,n)}function Nl(e,t){return Ge(e,t)}function Tl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Al(e,t,n,r){return new Tl(e,t,n,r)}function Pl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dl(e,t){var n=e.alternate;return null===n?((n=Al(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Il(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Pl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Ml(n.children,i,a,t);case C:s=8,i|=8;break;case E:return(e=Al(12,n,t,2|i)).elementType=E,e.lanes=a,e;case R:return(e=Al(13,n,t,i)).elementType=R,e.lanes=a,e;case N:return(e=Al(19,n,t,i)).elementType=N,e.lanes=a,e;case P:return Ll(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case j:s=9;break e;case k:s=11;break e;case T:s=14;break e;case A:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Al(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Ml(e,t,n,r){return(e=Al(7,e,r,t)).lanes=n,e}function Ll(e,t,n,r){return(e=Al(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function $l(e,t,n){return(e=Al(6,e,null,t)).lanes=n,e}function Fl(e,t,n){return(t=Al(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bl(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Vl(e,t,n,r,i,o,a,s,c){return e=new Bl(e,t,n,s,c),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Al(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ao(o),e}function zl(e){if(!e)return ji;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ai(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ai(n))return Ii(e,n,t)}return t}function Ul(e,t,n,r,i,o,a,s,c){return(e=Vl(n,r,!0,e,0,o,0,s,c)).context=zl(null),n=e.current,(o=Do(r=tl(),i=nl(n))).callback=null!=t?t:null,Io(n,o,i),e.current.lanes=i,vt(e,i,r),il(e,r),e}function Wl(e,t,n,r){var i=t.current,o=tl(),a=nl(i);return n=zl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Do(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Io(i,t,a))&&(rl(e,i,a,o),Mo(e,i,a)),a}function ql(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gl(e,t){Hl(e,t),(e=e.alternate)&&Hl(e,t)}Cc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ri.current)ws=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Ns(t),po();break;case 5:aa(t);break;case 1:Ai(t.type)&&Mi(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Oi(yo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oi(ca,1&ca.current),t.flags|=128,null):0!=(n&t.child.childLanes)?$s(e,t,n):(Oi(ca,1&ca.current),null!==(e=qs(e,t,n))?e.sibling:null);Oi(ca,1&ca.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Us(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Oi(ca,ca.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return qs(e,t,n)}(e,t,n);ws=0!=(131072&e.flags)}else ws=!1,io&&0!=(1048576&t.flags)&&Ji(t,Hi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ws(e,t),e=t.pendingProps;var i=Ti(t,ki.current);Eo(t,n),i=Ca(null,t,r,e,i,n);var a=Ea();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ai(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ao(t),i.updater=zo,t.stateNode=i,i._reactInternals=t,Ho(t,r,e,n),t=Rs(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),xs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Pl(e)?1:0;if(null!=e){if((e=e.$$typeof)===k)return 11;if(e===T)return 14}return 2}(r),e=vo(r,e),i){case 0:t=js(null,t,r,e,n);break e;case 1:t=ks(null,t,r,e,n);break e;case 11:t=_s(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,vo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,js(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 1:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 3:e:{if(Ns(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Po(e,t),$o(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ts(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Ts(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=li(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Qo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=qs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&lo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Os(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&lo(t),null;case 13:return $s(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Yo(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,_s(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Oi(yo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ri.current){t=qs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var c=a.dependencies;if(null!==c){s=a.child;for(var l=c.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Do(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Co(a.return,n,t),c.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Co(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Eo(t,n),r=r(i=Oo(i)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return i=vo(r=t.type,t.pendingProps),Ss(e,t,r,i=vo(r.type,i),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vo(r,i),Ws(e,t),t.tag=1,Ai(r)?(e=!0,Mi(t)):e=!1,Eo(t,n),Wo(t,r,i),Ho(t,r,i,n),Rs(null,t,r,!0,e,n);case 19:return Us(e,t,n);case 22:return Es(e,t,n)}throw Error(o(156,t.tag))};var Zl="function"==typeof reportError?reportError:function(e){console.error(e)};function Kl(e){this._internalRoot=e}function Xl(e){this._internalRoot=e}function Yl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jl(){}function eu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=ql(a);s.call(e)}}Wl(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=ql(a);o.call(e)}}var a=Ul(t,r,e,0,null,!1,0,"",Jl);return e._reactRootContainer=a,e[pi]=a.current,zr(8===e.nodeType?e.parentNode:e),dl(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=ql(c);s.call(e)}}var c=Vl(e,0,!1,null,0,!1,0,"",Jl);return e._reactRootContainer=c,e[pi]=c.current,zr(8===e.nodeType?e.parentNode:e),dl((function(){Wl(t,c,n,r)})),c}(n,t,e,i,r);return ql(a)}Xl.prototype.render=Kl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Wl(e,t,null,null)},Xl.prototype.unmount=Kl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dl((function(){Wl(null,e,null,null)})),t[pi]=null}},Xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pt.length&&0!==t&&t<Pt[n].priority;n++);Pt.splice(n,0,e),0===n&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),il(t,Ye()),0==(6&Rc)&&(Uc=Ye()+500,zi()))}break;case 13:dl((function(){var t=No(e,1);if(null!==t){var n=tl();rl(t,e,1,n)}})),Gl(e,1)}},_t=function(e){if(13===e.tag){var t=No(e,134217728);null!==t&&rl(t,e,134217728,tl()),Gl(e,134217728)}},St=function(e){if(13===e.tag){var t=nl(e),n=No(e,t);null!==n&&rl(n,e,t,tl()),Gl(e,t)}},Ct=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}}
vendor: 4,071 bytes, line 36
36,_e=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xi(r);if(!i)throw Error(o(90));G(r),Q(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},ke=ul,Re=dl;var tu={usingClientEntryPoint:!1,Events:[bi,wi,xi,Oe,je,ul]},nu={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{it=iu.inject(ru),ot=iu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yl(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yl(e))throw Error(o(299));var n=!1,r="",i=Zl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Vl(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,zr(8===e.nodeType?e.parentNode:e),new Kl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return dl(e)},t.hydrate=function(e,t,n){if(!Ql(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yl(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Zl;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Ul(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,zr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Xl(t)},t.render=function(e,t,n){if(!Ql(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ql(e))throw Error(o(40));return!!e._reactRootContainer&&(dl((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=ul,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ql(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},3935:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},1749:function(e,t,n){var r;e.exports=(r=n(7294),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}
36([function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(3);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return r(a).default}});var s=r(n(11)),c=r(n(9)),l=r(n(5)),u=n(2),d=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return o.setRef=o.setRef.bind(o),o.onBlur=o.onBlur.bind(o),o.onChange=o.onChange.bind(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"setRef",value:function(e){this.inputElement=e}},{key:"initTextMask",value:function(){var e=this.props,t=this.props.value;this.textMaskInputElement=(0,l.default)(i({inputElement:this.inputElement},e)),this.textMaskInputElement.update(t)}},{key:"componentDidMount",value:function(){this.initTextMask()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.pipe,i=t.mask,o={guide:t.guide,placeholderChar:t.placeholderChar,showMask:t.showMask},a="function"==typeof r&&"function"==typeof e.pipe?r.toString()!==e.pipe.toString():(0,u.isNil)(r)&&!(0,u.isNil)(e.pipe)||!(0,u.isNil)(r)&&(0,u.isNil)(e.pipe),s=i.toString()!==e.mask.toString(),c=Object.keys(o).some((function(t){return o[t]!==e[t]}))||s||a;(n!==this.inputElement.value||c)&&this.initTextMask()}},{key:"render",value:function(){var e=this.props,t=e.render,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["render"]);return delete n.mask,delete n.guide,delete n.pipe,delete n.placeholderChar,delete n.keepCharPositions,delete n.value,delete n.onBlur,delete n.onChange,delete n.showMask,t(this.setRef,i({onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value},n))}},{key:"onChange",value:function(e){this.textMaskInputElement.update(),"function"==typeof this.props.onChange&&this.props.onChange(e)}},{key:"onBlur",value:function(e){"function"==typeof this.props.onBlur&&this.props.onBlur(e)}}]),t}(s.default.PureComponent);t.default=d,d.propTypes={mask:c.default.oneOfType([c.default.array,c.default.func,c.default.bool,c.default.shape({mask:c.default.oneOfType([c.default.array,c.default.func]),pipe:c.default.func})]).isRequired,guide:c.default.bool,value:c.default.oneOfType([c.default.string,c.default.number]),pipe:c.default.func,placeholderChar:c.default.string,keepCharPositions:c.default.bool,showMask:c.default.bool},d.defaultProps={render:function(e,t){return s.default.createElement("input",i({ref:e},t))}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t,n){function r(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.placeholderChar;if(!r(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")},t.isArray=r,t.isString=function(e){return"string"==typeof e||e instanceof String},t.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},t.isNil=function(e){return null==e},t.processCaretTraps=function(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(a));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}};var i=n(1),o=[],a="[]"}
vendor: 5,102 bytes, line 36
36,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,i.isArray)(t)){if((void 0===t?"undefined":r(t))!==o.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,i.processCaretTraps)(t).maskWithoutCaretTraps}var c=n.guide,l=void 0===c||c,u=n.previousConformedValue,d=void 0===u?s:u,f=n.placeholderChar,h=void 0===f?o.placeholderChar:f,p=n.placeholder,g=void 0===p?(0,i.convertMaskToPlaceholder)(t,h):p,m=n.currentCaretPosition,v=n.keepCharPositions,y=!1===l&&void 0!==d,b=e.length,w=d.length,x=g.length,_=t.length,S=b-w,C=S>0,E=m+(C?-S:0),O=E+Math.abs(S);if(!0===v&&!C){for(var j=s,k=E;k<O;k++)g[k]===h&&(j+=h);e=e.slice(0,E)+j+e.slice(E,b)}for(var R=e.split(s).map((function(e,t){return{char:e,isNew:t>=E&&t<O}})),N=b-1;N>=0;N--){var T=R[N].char;T!==h&&T===g[N>=E&&w===_?N-S:N]&&R.splice(N,1)}var A=s,P=!1;e:for(var D=0;D<x;D++){var I=g[D];if(I===h){if(R.length>0)for(;R.length>0;){var M=R.shift(),L=M.char,$=M.isNew;if(L===h&&!0!==y){A+=h;continue e}if(t[D].test(L)){if(!0===v&&!1!==$&&d!==s&&!1!==l&&C){for(var F=R.length,B=null,V=0;V<F;V++){var z=R[V];if(z.char!==h&&!1===z.isNew)break;if(z.char===h){B=V;break}}null!==B?(A+=L,R.splice(B,1)):D--}else A+=L;continue e}P=!0}!1===y&&(A+=g.substr(D,x));break}A+=I}if(y&&!1===C){for(var U=null,W=0;W<A.length;W++)g[W]===h&&(U=W);A=null!==U?A.substr(0,U+1):s}return{conformedValue:A,meta:{someCharsRejected:P}}};var i=n(2),o=n(1),a=[],s=""},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.previousConformedValue,i=void 0===t?r:t,o=e.previousPlaceholder,a=void 0===o?r:o,s=e.currentCaretPosition,c=void 0===s?0:s,l=e.conformedValue,u=e.rawValue,d=e.placeholderChar,f=e.placeholder,h=e.indexesOfPipedChars,p=void 0===h?n:h,g=e.caretTrapIndexes,m=void 0===g?n:g;if(0===c||!u.length)return 0;var v=u.length,y=i.length,b=f.length,w=l.length,x=v-y,_=x>0;if(x>1&&!_&&0!==y)return c;var S=0,C=void 0,E=void 0;if(!_||i!==l&&l!==f){var O=l.toLowerCase(),j=u.toLowerCase().substr(0,c).split(r).filter((function(e){return-1!==O.indexOf(e)}));E=j[j.length-1];var k=a.substr(0,j.length).split(r).filter((function(e){return e!==d})).length,R=f.substr(0,j.length).split(r).filter((function(e){return e!==d})).length,N=R!==k,T=void 0!==a[j.length-1]&&void 0!==f[j.length-2]&&a[j.length-1]!==d&&a[j.length-1]!==f[j.length-1]&&a[j.length-1]===f[j.length-2];!_&&(N||T)&&k>0&&f.indexOf(E)>-1&&void 0!==u[c]&&(C=!0,E=u[c]);for(var A=p.map((function(e){return O[e]})),P=A.filter((function(e){return e===E})).length,D=j.filter((function(e){return e===E})).length,I=f.substr(0,f.indexOf(d)).split(r).filter((function(e,t){return e===E&&u[t]!==e})).length,M=I+D+P+(C?1:0),L=0,$=0;$<w&&(S=$+1,O[$]===E&&L++,!(L>=M));$++);}else S=c-x;if(_){for(var F=S,B=S;B<=b;B++)if(f[B]===d&&(F=B),f[B]===d||-1!==m.indexOf(B)||B===b)return F}else if(C){for(var V=S-1;V>=0;V--)if(l[V]===E||-1!==m.indexOf(V)||0===V)return V}else for(var z=S;z>=0;z--)if(f[z-1]===d||-1!==m.indexOf(z)||0===z)return z};var n=[],r=""},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){document.activeElement===e&&(p?g((function(){return e.setSelectionRange(t,t,f)}),0):e.setSelectionRange(t,t,f))}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,f=r.inputElement,p=r.mask,g=r.guide,m=r.pipe,v=r.placeholderChar,y=void 0===v?u.placeholderChar:v,b=r.keepCharPositions,w=void 0!==b&&b,x=r.showMask,_=void 0!==x&&x;if(void 0===n&&(n=f.value),n!==t.previousConformedValue){(void 0===p?"undefined":a(p))===h&&void 0!==p.pipe&&void 0!==p.mask&&(m=p.pipe,p=p.mask);var S=void 0,C=void 0;if(p instanceof Array&&(S=(0,l.convertMaskToPlaceholder)(p,y)),!1!==p){var E=function(e){if((0,l.isString)(e))return e;if((0,l.isNumber)(e))return String(e);if(null==e)return d;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}(n),O=f.selectionEnd,j=t.previousConformedValue,k=t.previousPlaceholder,R=void 0;if((void 0===p?"undefined":a(p))===u.strFunction){if(!1===(C=p(E,{currentCaretPosition:O,previousConformedValue:j,placeholderChar:y}
36)))return;var N=(0,l.processCaretTraps)(C);C=N.maskWithoutCaretTraps,R=N.indexes,S=(0,l.convertMaskToPlaceholder)(C,y)}else C=p;var T={previousConformedValue:j,guide:g,placeholderChar:y,pipe:m,placeholder:S,currentCaretPosition:O,keepCharPositions:w},A=(0,c.default)(E,C,T).conformedValue,P=(void 0===m?"undefined":a(m))===u.strFunction,D={};P&&(!1===(D=m(A,o({rawValue:E},T)))?D={value:j,rejected:!0}:(0,l.isString)(D)&&(D={value:D}));var I=P?D.value:A,M=(0,s.default)({previousConformedValue:j,previousPlaceholder:k,conformedValue:I,placeholder:S,rawValue:E,currentCaretPosition:O,placeholderChar:y,indexesOfPipedChars:D.indexesOfPipedChars,caretTrapIndexes:R}),L=I===S&&0===M?_?S:d:I;t.previousConformedValue=L,t.previousPlaceholder=S,f.value!==L&&(f.value=L,i(f,M))}}}}};var s=r(n(4)),c=r(n(3)),l=n(2),u=n(1),d="",f="none",h="object",p="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout},function(e,t){function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){var r=function(e){};e.exports=function(e,t,n,i,o,a,s,c){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,o,a,s,c],d=0;(l=new Error(t.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){var r=n(6),i=n(7),o=n(10);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"function"==typeof Symbol&&Symbol.iterator,e.exports=n(8)()},function(e,t){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=r}]))},5251:(e,t,n)=>{
37/**
38 * @license React
39 * react-jsx-runtime.production.min.js
40 *
41 * Copyright (c) Facebook, Inc. and its affiliates.
42 *
43 * This source code is licensed under the MIT license found in the
44 * LICENSE file in the root directory of this source tree.
45 */
46var r=n(7294),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},2408:(e,t)=>{
47/**
48 * @license React
49 * react.production.min.js
50 *
51 * Copyright (c) Facebook, Inc. and its affiliates.
52 *
53 * This source code is licensed under the MIT license found in the
54 * LICENSE file in the root directory of this source tree.
55 */
56var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,g(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,S={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,i)&&!C.hasOwnProperty(i)&&(o[i]=t[i]);var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps)void 0===o[i]&&(o[i]=c[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:S.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var j=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return a=a(c=e),e=""===o?"."+k(c,0):o,x(a)?(i="",null!=e&&(i=e.replace(j,"$&/")+"/"),R(a,t,i,"",(function(e){return e}
vendor: 4,110 bytes, line 56
56))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(j,"$&/")+"/")+e)),t.push(a)),1;if(c=0,o=""===o?".":o+":",x(e))for(var l=0;l<e.length;l++){var u=o+k(s=e[l],l);c+=R(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(s=e.next()).done;)c+=R(s=s.value,t,i,u=o+k(s,l++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function N(e,t,n){if(null==e)return e;var r=[],i=0;return R(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},P={transition:null},D={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:P,ReactCurrentOwner:S};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=g({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)_.call(t,l)&&!C.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return A.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{e.exports=n(2408)}
56,5893:(e,t,n)=>{e.exports=n(5251)},5964:(e,t,n)=>{const r=n(8776)(170,181,186,748,750,895,902,908,1369,1749,1791,1808,1969,2042,2074,2084,2088,2365,2384,2482,2493,2510,2556,2654,2749,2768,2809,2877,2929,2947,2972,3024,3133,3200,3261,3294,3389,3406,3517,3716,3749,3773,3782,3840,4159,4193,4238,4295,4301,4696,4800,6103,6108,6314,6823,7418,8025,8027,8029,8126,8305,8319,8450,8455,8469,8484,8486,8488,8526,11559,11565,11631,11823,43259,43471,43642,43697,43712,43714,64285,64318,67592,67644,68096,69415,69956,69959,70006,70106,70108,70280,70461,70480,70855,71236,71352,71945,71999,72001,72161,72163,72192,72250,72272,72349,72768,73030,73112,73648,94032,94179,119970,119995,120134,123214,125259,126500,126503,126521,126523,126530,126535,126537,126539,126548,126551,126553,126555,126557,126559,126564,126590);r.addRange(65,90).addRange(97,122).addRange(192,214).addRange(216,246).addRange(248,705).addRange(710,721).addRange(736,740).addRange(880,884).addRange(886,887).addRange(890,893).addRange(904,906).addRange(910,929).addRange(931,1013).addRange(1015,1153).addRange(1162,1327).addRange(1329,1366).addRange(1376,1416).addRange(1488,1514).addRange(1519,1522).addRange(1568,1610).addRange(1646,1647).addRange(1649,1747).addRange(1765,1766).addRange(1774,1775).addRange(1786,1788).addRange(1810,1839).addRange(1869,1957).addRange(1994,2026).addRange(2036,2037).addRange(2048,2069).addRange(2112,2136).addRange(2144,2154).addRange(2208,2228).addRange(2230,2247).addRange(2308,2361).addRange(2392,2401).addRange(2417,2432).addRange(2437,2444).addRange(2447,2448).addRange(2451,2472).addRange(2474,2480).addRange(2486,2489).addRange(2524,2525).addRange(2527,2529).addRange(2544,2545).addRange(2565,2570).addRange(2575,2576).addRange(2579,2600).addRange(2602,2608).addRange(2610,2611).addRange(2613,2614),r.addRange(2616,2617).addRange(2649,2652).addRange(2674,2676).addRange(2693,2701).addRange(2703,2705).addRange(2707,2728).addRange(2730,2736).addRange(2738,2739).addRange(2741,2745).addRange(2784,2785).addRange(2821,2828).addRange(2831,2832).addRange(2835,2856).addRange(2858,2864).addRange(2866,2867).addRange(2869,2873).addRange(2908,2909).addRange(2911,2913).addRange(2949,2954).addRange(2958,2960).addRange(2962,2965).addRange(2969,2970).addRange(2974,2975).addRange(2979,2980).addRange(2984,2986).addRange(2990,3001).addRange(3077,3084).addRange(3086,3088).addRange(3090,3112).addRange(3114,3129).addRange(3160,3162).addRange(3168,3169).addRange(3205,3212).addRange(3214,3216).addRange(3218,3240).addRange(3242,3251).addRange(3253,3257).addRange(3296,3297).addRange(3313,3314).addRange(3332,3340).addRange(3342,3344).addRange(3346,3386).addRange(3412,3414).addRange(3423,3425).addRange(3450,3455).addRange(3461,3478).addRange(3482,3505).addRange(3507,3515).addRange(3520,3526).addRange(3585,3632).addRange(3634,3635),r.addRange(3648,3654).addRange(3713,3714).addRange(3718,3722).addRange(3724,3747).addRange(3751,3760).addRange(3762,3763).addRange(3776,3780).addRange(3804,3807).addRange(3904,3911).addRange(3913,3948).addRange(3976,3980).addRange(4096,4138).addRange(4176,4181).addRange(4186,4189).addRange(4197,4198).addRange(4206,4208).addRange(4213,4225).addRange(4256,4293).addRange(4304,4346).addRange(4348,4680).addRange(4682,4685).addRange(4688,4694).addRange(4698,4701).addRange(4704,4744).addRange(4746,4749).addRange(4752,4784).addRange(4786,4789).addRange(4792,4798).addRange(4802,4805).addRange(4808,4822).addRange(4824,4880).addRange(4882,4885).addRange(4888,4954).addRange(4992,5007).addRange(5024,5109).addRange(5112,5117).addRange(5121,5740).addRange(5743,5759).addRange(5761,5786).addRange(5792,5866).addRange(5873,5880).addRange(5888,5900).addRange(5902,5905).addRange(5920,5937).addRange(5952,5969).addRange(5984,5996).addRange(5998,6e3).addRange(6016,6067).addRange(6176,6264).addRange(6272,6276).addRange(6279,6312),r.addRange(6320,6389).addRange(6400,6430).addRange(6480,6509).addRange(6512,6516).addRange(6528,6571).addRange(6576,6601).addRange(6656,6678).addRange(6688,6740).addRange(6917,6963).addRange(6981,6987).addRange(7043,7072).addRange(7086,7087).addRange(7098,7141).addRange(7168,7203).addRange(7245,7247).addRange(7258,7293).addRange(7296,7304).addRange(7312,7354).addRange(7357,7359).addRange(7401,7404).addRange(7406,7411).addRange(7413,7414).addRange(7424,7615).addRange(7680,7957).addRange(7960,7965).addRange(7968,8005).addRange(8008,8013).addRange(8016,8023).addRange(8031,8061).addRange(8064,8116).addRange(8118,8124).addRange(8130,8132).addRange(8134,8140).addRange(8144,8147).addRange(8150,8155).addRange(8160,8172).addRange(8178,8180).addRange(8182,8188).addRange(8336,8348).addRange(8458,8467).addRange(8473,8477).addRange(8490,8493).addRange(8495,8505).addRange(8508,8511).addRange(8517,8521).addRange(8579,8580).addRange(11264,11310).addRange(11312,11358).addRange(11360,11492).addRange(11499,11502).addRange(11506,11507),r.addRange(11520,11557).addRange(11568,11623).addRange(11648,11670).addRange(11680,11686).addRange(11688,11694).addRange(11696,11702).addRange(11704,11710).addRange(11712,11718).addRange(11720,11726).addRange(11728,11734).addRange(11736,11742).addRange(12293,12294).addRange(12337,12341).addRange(12347,12348).addRange(12353,12438).addRange(12445,12447).addRange(12449,12538).addRange(12540,12543).addRange(12549,12591).addRange(12593,12686).addRange(12704,12735).addRange(12784,12799).addRange(13312,19903).addRange(19968,40956).addRange(40960,42124).addRange(42192,42237).addRange(42240,42508).addRange(42512,42527).addRange(42538,42539).addRange(42560,42606).addRange(42623,42653).addRange(42656,42725).addRange(42775,42783).addRange(42786,42888).addRange(4289
561,42943).addRange(42946,42954).addRange(42997,43009).addRange(43011,43013).addRange(43015,43018).addRange(43020,43042).addRange(43072,43123).addRange(43138,43187).addRange(43250,43255).addRange(43261,43262).addRange(43274,43301).addRange(43312,43334).addRange(43360,43388).addRange(43396,43442).addRange(43488,43492).addRange(43494,43503).addRange(43514,43518),r.addRange(43520,43560).addRange(43584,43586).addRange(43588,43595).addRange(43616,43638).addRange(43646,43695).addRange(43701,43702).addRange(43705,43709).addRange(43739,43741).addRange(43744,43754).addRange(43762,43764).addRange(43777,43782).addRange(43785,43790).addRange(43793,43798).addRange(43808,43814).addRange(43816,43822).addRange(43824,43866).addRange(43868,43881).addRange(43888,44002).addRange(44032,55203).addRange(55216,55238).addRange(55243,55291).addRange(63744,64109).addRange(64112,64217).addRange(64256,64262).addRange(64275,64279).addRange(64287,64296).addRange(64298,64310).addRange(64312,64316).addRange(64320,64321).addRange(64323,64324).addRange(64326,64433).addRange(64467,64829).addRange(64848,64911).addRange(64914,64967).addRange(65008,65019).addRange(65136,65140).addRange(65142,65276).addRange(65313,65338).addRange(65345,65370).addRange(65382,65470).addRange(65474,65479).addRange(65482,65487).addRange(65490,65495).addRange(65498,65500).addRange(65536,65547).addRange(65549,65574).addRange(65576,65594).addRange(65596,65597).addRange(65599,65613).addRange(65616,65629).addRange(65664,65786),r.addRange(66176,66204).addRange(66208,66256).addRange(66304,66335).addRange(66349,66368).addRange(66370,66377).addRange(66384,66421).addRange(66432,66461).addRange(66464,66499).addRange(66504,66511).addRange(66560,66717).addRange(66736,66771).addRange(66776,66811).addRange(66816,66855).addRange(66864,66915).addRange(67072,67382).addRange(67392,67413).addRange(67424,67431).addRange(67584,67589).addRange(67594,67637).addRange(67639,67640).addRange(67647,67669).addRange(67680,67702).addRange(67712,67742).addRange(67808,67826).addRange(67828,67829).addRange(67840,67861).addRange(67872,67897).addRange(67968,68023).addRange(68030,68031).addRange(68112,68115).addRange(68117,68119).addRange(68121,68149).addRange(68192,68220).addRange(68224,68252).addRange(68288,68295).addRange(68297,68324).addRange(68352,68405).addRange(68416,68437).addRange(68448,68466).addRange(68480,68497).addRange(68608,68680).addRange(68736,68786).addRange(68800,68850).addRange(68864,68899).addRange(69248,69289).addRange(69296,69297).addRange(69376,69404).addRange(69424,69445).addRange(69552,69572).addRange(69600,69622).addRange(69635,69687),r.addRange(69763,69807).addRange(69840,69864).addRange(69891,69926).addRange(69968,70002).addRange(70019,70066).addRange(70081,70084).addRange(70144,70161).addRange(70163,70187).addRange(70272,70278).addRange(70282,70285).addRange(70287,70301).addRange(70303,70312).addRange(70320,70366).addRange(70405,70412).addRange(70415,70416).addRange(70419,70440).addRange(70442,70448).addRange(70450,70451).addRange(70453,70457).addRange(70493,70497).addRange(70656,70708).addRange(70727,70730).addRange(70751,70753).addRange(70784,70831).addRange(70852,70853).addRange(71040,71086).addRange(71128,71131).addRange(71168,71215).addRange(71296,71338).addRange(71424,71450).addRange(71680,71723).addRange(71840,71903).addRange(71935,71942).addRange(71948,71955).addRange(71957,71958).addRange(71960,71983).addRange(72096,72103).addRange(72106,72144).addRange(72203,72242).addRange(72284,72329).addRange(72384,72440).addRange(72704,72712).addRange(72714,72750).addRange(72818,72847).addRange(72960,72966).addRange(72968,72969).addRange(72971,73008).addRange(73056,73061).addRange(73063,73064).addRange(73066,73097).addRange(73440,73458),r.addRange(73728,74649).addRange(74880,75075).addRange(77824,78894).addRange(82944,83526).addRange(92160,92728).addRange(92736,92766).addRange(92880,92909).addRange(92928,92975).addRange(92992,92995).addRange(93027,93047).addRange(93053,93071).addRange(93760,93823).addRange(93952,94026).addRange(94099,94111).addRange(94176,94177).addRange(94208,100343).addRange(100352,101589).addRange(101632,101640).addRange(110592,110878).addRange(110928,110930).addRange(110948,110951).addRange(110960,111355).addRange(113664,113770).addRange(113776,113788).addRange(113792,113800).addRange(113808,113817).addRange(119808,119892).addRange(119894,119964).addRange(119966,119967).addRange(119973,119974).addRange(119977,119980).addRange(119982,119993).addRange(119997,120003).addRange(120005,120069).addRange(120071,120074).addRange(120077,120084).addRange(120086,120092).addRange(120094,120121).addRange(120123,120126).addRange(120128,120132).addRange(120138,120144).addRange(120146,120485).addRange(120488,120512).addRange(120514,120538).addRange(120540,120570).addRange(120572,120596).addRange(120598,120628).addRange(120630,120654).addRange(120656,120686).addRange(120688,120712).addRange(120714,120744),r.addRange(120746,120770).addRange(120772,120779).addRange(123136,123180).addRange(123191,123197).addRange(123584,123627).addRange(124928,125124).addRange(125184,125251).addRange(126464,126467).addRange(126469,126495).addRange(126497,126498).addRange(126505,126514).addRange(126516,126519).addRange(126541,126543).addRange(126545,126546).addRange(126561,126562).addRange(126567,126570).addRange(126572,126578).addRange(126580,126583).addRange(126585,126588).addRange(126592,126601).addRange(126603,126619).addRange(126625,126627).addRange(126629,126633).addRange(126635,126651).addRange(131072,173789).addRange(173824,177972).addRange(177984,178205).addRange(178208,183969).addRange(183984,191456).addRange(194560,195101).addRange(196608,201546),e.exports=r},9340:(e,t,n)=>{const r=n(8776)(181,257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,314,316,318,320,322,324,326,331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,387,389,392,402,405,414,417,419,421,424,429,432,436,438,454,457,460,462,464,466,468,470,472,474,479,481,483,485,487,489,491,493,499,501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,545,547,549,551,553,555,557,559,561,572,578,583,585,587,589,881,883,887,912,985,987,989,991,993,995,997,999,1001,1003,1005,1013,1016,1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7
56733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,7839,7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,8126,8458,8467,8495,8500,8505,8526,8580,11361,11368,11370,11372,11377,11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,11500,11502,11507,11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,42651,42787,42789,42791,42793,42795,42797,42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,42863,42874,42876,42879,42881,42883,42885,42887,42892,42894,42897,42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42927,42933,42935,42937,42939,42941,42943,42947,42952,42954,42998,43002,119995,120779);r.addRange(97,122).addRange(223,246).addRange(248,255).addRange(311,312).addRange(328,329).addRange(382,384).addRange(396,397).addRange(409,411).addRange(426,427).addRange(441,442).addRange(445,447).addRange(476,477).addRange(495,496).addRange(563,569).addRange(575,576).addRange(591,659).addRange(661,687).addRange(891,893).addRange(940,974).addRange(976,977).addRange(981,983).addRange(1007,1011).addRange(1019,1020).addRange(1072,1119).addRange(1230,1231).addRange(1376,1416).addRange(4304,4346).addRange(4349,4351).addRange(5112,5117).addRange(7296,7304).addRange(7424,7467).addRange(7531,7543).addRange(7545,7578).addRange(7829,7837).addRange(7935,7943).addRange(7952,7957).addRange(7968,7975).addRange(7984,7991).addRange(8e3,8005).addRange(8016,8023).addRange(8032,8039).addRange(8048,8061).addRange(8064,8071).addRange(8080,8087).addRange(8096,8103).addRange(8112,8116).addRange(8118,8119).addRange(8130,8132).addRange(8134,8135).addRange(8144,8147).addRange(8150,8151),r.addRange(8160,8167).addRange(8178,8180).addRange(8182,8183).addRange(8462,8463).addRange(8508,8509).addRange(8518,8521).addRange(11312,11358).addRange(11365,11366).addRange(11379,11380).addRange(11382,11387).addRange(11491,11492).addRange(11520,11557).addRange(42799,42801).addRange(42865,42872).addRange(42899,42901).addRange(43824,43866).addRange(43872,43880).addRange(43888,43967).addRange(64256,64262).addRange(64275,64279).addRange(65345,65370).addRange(66600,66639).addRange(66776,66811).addRange(68800,68850).addRange(71872,71903).addRange(93792,93823).addRange(119834,119859).addRange(119886,119892).addRange(119894,119911).addRange(119938,119963).addRange(119990,119993).addRange(119997,120003).addRange(120005,120015).addRange(120042,120067).addRange(120094,120119).addRange(120146,120171).addRange(120198,120223).addRange(120250,120275).addRange(120302,120327).addRange(120354,120379).addRange(120406,120431).addRange(120458,120485).addRange(120514,120538).addRange(120540,120545).addRange(120572,120596).addRange(120598,120603).addRange(120630,120654).addRange(120656,120661).addRange(120688,120712).addRange(120714,120719).addRange(120746,120770),r.addRange(120772,120777).addRange(125218,125251),e.exports=r},55:(e,t,n)=>{const r=n(8776)(185,8304,11517,12295,66369,66378);r.addRange(48,57).addRange(178,179).addRange(188,190).addRange(1632,1641).addRange(1776,1785).addRange(1984,1993).addRange(2406,2415).addRange(2534,2543).addRange(2548,2553).addRange(2662,2671).addRange(2790,2799).addRange(2918,2927).addRange(2930,2935).addRange(3046,3058).addRange(3174,3183).addRange(3192,3198).addRange(3302,3311).addRange(3416,3422).addRange(3430,3448).addRange(3558,3567).addRange(3664,3673).addRange(3792,3801).addRange(3872,3891).addRange(4160,4169).addRange(4240,4249).addRange(4969,4988).addRange(5870,5872).addRange(6112,6121).addRange(6128,6137).addRange(6160,6169).addRange(6470,6479).addRange(6608,6618).addRange(6784,6793).addRange(6800,6809).addRange(6992,7001).addRange(7088,7097).addRange(7232,7241).addRange(7248,7257).addRange(8308,8313).addRange(8320,8329).addRange(8528,8578).addRange(8581,8585).addRange(9312,9371).addRange(9450,9471).addRange(10102,10131).addRange(12321,12329).addRange(12344,12346).addRange(12690,12693).addRange(12832,12841).addRange(12872,12879).addRange(12881,12895),r.addRange(12928,12937).addRange(12977,12991).addRange(42528,42537).addRange(42726,42735).addRange(43056,43061).addRange(43216,43225).addRange(43264,43273).addRange(43472,43481).addRange(43504,43513).addRange(43600,43609).addRange(44016,44025).addRange(65296,65305).addRange(65799,65843).addRange(65856,65912).addRange(65930,65931).addRange(66273,66299).addRange(66336,66339).addRange(66513,66517).addRange(66720,66729).addRange(67672,67679).addRange(67705,67711).addRange(67751,67759).addRange(67835,67839).addRange(67862,67867).addRange(68028,68029).addRange(68032,68047).addRange(68050,68095).addRange(68160,68168).addRange(68221,68222).addRange(68253,68255).addRange(68331,68335).addRange(68440,68447).addRange(68472,68479).addRange(68521,68527).addRange(68858,68863).addRange(68912,68921).addRange(69216,69246).addRange(69405,69414).addRange(69457,69460).addRange(69573,69579).addRange(69714,69743).addRange(69872,69881).addRange(69942,69951).addRange(70096,70105).addRange(70113,70132).addRange(70384,70393).addRange(70736,70745).addRange(70864,70873).addRange(71248,71257).addRange(71360,71369).addRange(71472,71483),r.addRange(71904,71922).addRange(72016,72025).addRange(72784,72812).addRange(73040,73049).addRange(73120,73129).addRange(73664,73684).addRange(74752,74862).addRange(92768,92777).addRange(93008,93017).addRange(93019,93025).addRange(93824,93846).addRange(119520,119539).addRange(119648,119672).addRange(120782,120831).addRange(123200,123209).addRange(123632,123641
56).addRange(125127,125135).addRange(125264,125273).addRange(126065,126123).addRange(126125,126127).addRange(126129,126132).addRange(126209,126253).addRange(126255,126269).addRange(127232,127244).addRange(130032,130041),e.exports=r},8829:(e,t,n)=>{const r=n(8776)(256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,379,381,388,418,420,425,428,437,444,452,455,458,461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,497,500,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,577,584,586,588,590,880,882,886,895,902,908,975,984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1012,1015,1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,4295,4301,7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,8025,8027,8029,8031,8450,8455,8469,8484,8486,8488,8517,8579,11360,11367,11369,11371,11378,11381,11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,42934,42936,42938,42940,42942,42946,42953,42997,119964,119970,120134,120778);r.addRange(65,90).addRange(192,214).addRange(216,222).addRange(376,377).addRange(385,386).addRange(390,391).addRange(393,395).addRange(398,401).addRange(403,404).addRange(406,408).addRange(412,413).addRange(415,416).addRange(422,423).addRange(430,431).addRange(433,435).addRange(439,440).addRange(502,504).addRange(570,571).addRange(573,574).addRange(579,582).addRange(904,906).addRange(910,911).addRange(913,929).addRange(931,939).addRange(978,980).addRange(1017,1018).addRange(1021,1071).addRange(1216,1217).addRange(1329,1366).addRange(4256,4293).addRange(5024,5109).addRange(7312,7354).addRange(7357,7359).addRange(7944,7951).addRange(7960,7965).addRange(7976,7983).addRange(7992,7999).addRange(8008,8013).addRange(8040,8047).addRange(8120,8123).addRange(8136,8139).addRange(8152,8155).addRange(8168,8172).addRange(8184,8187).addRange(8459,8461).addRange(8464,8466).addRange(8473,8477).addRange(8490,8493).addRange(8496,8499).addRange(8510,8511).addRange(11264,11310),r.addRange(11362,11364).addRange(11373,11376).addRange(11390,11392).addRange(42877,42878).addRange(42922,42926).addRange(42928,42932).addRange(42948,42951).addRange(65313,65338).addRange(66560,66599).addRange(66736,66771).addRange(68736,68786).addRange(71840,71871).addRange(93760,93791).addRange(119808,119833).addRange(119860,119885).addRange(119912,119937).addRange(119966,119967).addRange(119973,119974).addRange(119977,119980).addRange(119982,119989).addRange(120016,120041).addRange(120068,120069).addRange(120071,120074).addRange(120077,120084).addRange(120086,120092).addRange(120120,120121).addRange(120123,120126).addRange(120128,120132).addRange(120138,120144).addRange(120172,120197).addRange(120224,120249).addRange(120276,12
vendor: 7,367 bytes, line 56
560301).addRange(120328,120353).addRange(120380,120405).addRange(120432,120457).addRange(120488,120512).addRange(120546,120570).addRange(120604,120628).addRange(120662,120686).addRange(120720,120744).addRange(125184,125217),e.exports=r},8776:function(e,t,n){var r;/*! https://mths.be/regenerate v1.4.2 by @mathias | MIT license */e=n.nmd(e),function(i){var o=(e&&e.exports,"object"==typeof n.g&&n.g);o.global!==o&&o.window;var a="A range’s `stop` value must be greater than or equal to the `start` value.",s="Invalid code point value. Code points range from U+000000 to U+10FFFF.",c=55296,l=56319,u=56320,d=57343,f=/\\x00([^0123456789]|$)/g,h={},p=h.hasOwnProperty,g=function(e,t){for(var n=-1,r=e.length;++n<r;)t(e[n],n)},m=h.toString,v=function(e){return"[object Array]"==m.call(e)},y=function(e){return"number"==typeof e||"[object Number]"==m.call(e)},b=function(e,t){var n=String(e);return n.length<t?("0000"+n).slice(-t):n},w=function(e){return Number(e).toString(16).toUpperCase()},x=[].slice,_=function(e,t){for(var n,r,i=0,o=e.length;i<o;){if(n=e[i],r=e[i+1],t>=n&&t<r)return t==n?r==n+1?(e.splice(i,2),e):(e[i]=t+1,e):t==r-1?(e[i+1]=t,e):(e.splice(i,2,n,t,t+1,r),e);i+=2}return e},S=function(e,t,n){if(n<t)throw Error(a);for(var r,i,o=0;o<e.length;){if(r=e[o],i=e[o+1]-1,r>n)return e;if(t<=r&&n>=i)e.splice(o,2);else{if(t>=r&&n<i)return t==r?(e[o]=n+1,e[o+1]=i+1,e):(e.splice(o,2,r,t,n+1,i+1),e);if(t>=r&&t<=i)e[o+1]=t;else if(n>=r&&n<=i)return e[o]=n+1,e;o+=2}}return e},C=function(e,t){var n,r,i=0,o=null,a=e.length;if(t<0||t>1114111)throw RangeError(s);for(;i<a;){if(n=e[i],r=e[i+1],t>=n&&t<r)return e;if(t==n-1)return e[i]=t,e;if(n>t)return e.splice(null!=o?o+2:0,0,t,t+1),e;if(t==r)return t+1==e[i+2]?(e.splice(i,4,n,e[i+3]),e):(e[i+1]=t+1,e);o=i,i+=2}return e.push(t,t+1),e},E=function(e,t){for(var n,r,i=0,o=e.slice(),a=t.length;i<a;)o=(n=t[i])==(r=t[i+1]-1)?C(o,n):O(o,n,r),i+=2;return o},O=function(e,t,n){if(n<t)throw Error(a);if(t<0||t>1114111||n<0||n>1114111)throw RangeError(s);for(var r,i,o=0,c=!1,l=e.length;o<l;){if(r=e[o],i=e[o+1],c){if(r==n+1)return e.splice(o-1,2),e;if(r>n)return e;r>=t&&r<=n&&(i>t&&i-1<=n?(e.splice(o,2),o-=2):(e.splice(o-1,2),o-=2))}else{if(r==n+1||r==n)return e[o]=t,e;if(r>n)return e.splice(o,0,t,n+1),e;if(t>=r&&t<i&&n+1<=i)return e;t>=r&&t<i||i==t?(e[o+1]=n+1,c=!0):t<=r&&n+1>=i&&(e[o]=t,e[o+1]=n+1,c=!0)}o+=2}return c||e.push(t,n+1),e},j=function(e,t){var n=0,r=e.length,i=e[n],o=e[r-1];if(r>=2&&(t<i||t>o))return!1;for(;n<r;){if(i=e[n],o=e[n+1],t>=i&&t<o)return!0;n+=2}return!1},k=function(e){return!e.length},R=function(e){return 2==e.length&&e[0]+1==e[1]},N=function(e){for(var t,n,r=0,i=[],o=e.length;r<o;){for(t=e[r],n=e[r+1];t<n;)i.push(t),++t;r+=2}return i},T=Math.floor,A=function(e){return parseInt(T((e-65536)/1024)+c,10)},P=function(e){return parseInt((e-65536)%1024+u,10)},D=String.fromCharCode,I=function(e){return 9==e?"\\t":10==e?"\\n":12==e?"\\f":13==e?"\\r":45==e?"\\x2D":92==e?"\\\\":36==e||e>=40&&e<=43||46==e||47==e||63==e||e>=91&&e<=94||e>=123&&e<=125?"\\"+D(e):e>=32&&e<=126?D(e):e<=255?"\\x"+b(w(e),2):"\\u"+b(w(e),4)},M=function(e){return e<=65535?I(e):"\\u{"+e.toString(16).toUpperCase()+"}"},L=function(e){var t,n=e.length,r=e.charCodeAt(0);return r>=c&&r<=l&&n>1?(t=e.charCodeAt(1),1024*(r-c)+t-u+65536):r},$=function(e){var t,n,r="",i=0,o=e.length;if(R(e))return I(e[0]);for(;i<o;)r+=(t=e[i])==(n=e[i+1]-1)?I(t):t+1==n?I(t)+I(n):I(t)+"-"+I(n),i+=2;return"["+r+"]"},F=function(e){if(!e.length)return[];for(var t,n,r,i,o,a,s=0,c=[],l=e.length;s<l;){t=e[s],n=e[s+1]-1,r=A(t),i=P(t),o=A(n);var f=(a=P(n))==d,h=!1;r==o||i==u&&f?(c.push([[r,o+1],[i,a+1]]),h=!0):c.push([[r,r+1],[i,57344]]),!h&&r+1<o&&(f?(c.push([[r+1,o+1],[u,a+1]]),h=!0):c.push([[r+1,o],[u,57344]])),h||c.push([[o,o+1],[u,a+1]]),s+=2}return function(e){for(var t,n,r,i,o,a,s=[],c=[],l=!1,u=-1,d=e.length;++u<d;)if(t=e[u],n=e[u+1]){for(r=t[0],i=t[1],o=n[0],a=n[1],c=i;o&&r[0]==o[0]&&r[1]==o[1];)c=R(a)?C(c,a[0]):O(c,a[0],a[1]-1),r=(t=e[++u])[0],i=t[1],o=(n=e[u+1])&&n[0],a=n&&n[1],l=!0;s.push([r,l?c:i]),l=!1}else s.push(t);return function(e){if(1==e.length)return e;for(var t=-1,n=-1;++t<e.length;){var r=e[t],i=r[1],o=i[0],a=i[1];for(n=t;++n<e.length;){var s=e[n],c=s[1],l=c[0],u=c[1];o==l&&a==u&&2===c.length&&(R(s[0])?r[0]=C(r[0],s[0][0]):r[0]=O(r[0],s[0][0],s[0][1]-1),e.splice(n,1),--n)}}return e}(s)}(c)},B=function(e){return arguments.length>1&&(e=x.call(arguments)),this instanceof B?(this.data=[],e?this.add(e):this):(new B).add(e)};B.version="1.4.2";var V=B.prototype;!function(e,t){var n;for(n in t)p.call(t,n)&&(e[n]=t[n])}(V,{add:function(e){var t=this;return null==e?t:e instanceof B?(t.data=E(t.data,e.data),t):(arguments.length>1&&(e=x.call(arguments)),v(e)?(g(e,(function(e){t.add(e)})),t):(t.data=C(t.data,y(e)?e:L(e)),t))},remove:function(e){var t=this;return null==e?t:e instanceof B?(t.data=function(e,t){for(var n,r,i=0,o=e.slice(),a=t.length;i<a;)o=(n=t[i])==(r=t[i+1]-1)?_(o,n):S(o,n,r),i+=2;return o}(t.data,e.data),t):(arguments.length>1&&(e=x.call(arguments)),v(e)?(g(e,(function(e){t.remove(e)})),t):(t.data=_(t.data,y(e)?e:L(e)),t))},addRange:function(e,t){var n=this;return n.data=O(n.data,y(e)?e:L(e),y(t)?t:L(t)),n},removeRange:function(e,t){var n=this,r=y(e)?e:L(e),i=y(t)?t:L(t);return n.data=S(n.data,r,i),n},intersection:function(e){var t=this,n=e instanceof B?N(e.data):e;return t.data=function(e,t){for(var n,r=0,i=t.length,o=[];r<i;)n=t[r],j(e,n)&&o.push(n),++r;return function(e){for(var t,n=-1,r=e.length,i=r-1,o=[],a=!0,s=0;++n<r;)if(t=e[n],a)o.push(t),s=t,a=!1;else if(t==s+1){if(n!=i){s=t;continue}a=!0,o.push(t+1)}else o.push(s+1,t),s=t;return a||o.push(t+1),o}(o)}(t.data,n),t},contains:function(e){return j(this.data,y(e)?e:L(e))},clone:function(){var e=new B;return e.data=this.data.slice(0),e},toString:function(e){var t=function(e,t,n){if(n)return function(e){var t,n,r="",i=0,o=e.length;if(R(e))return M(e[0]);for(;i<o;)r+=(t=e[i])==(n=e[i+1]-1)?M(t):t+1==n?M(t)+M(n):M(t)+"-"+M(n),i+=2;return"["+r+"]"}(e);var r=[],i=function(e){for(var t,n,r=[],i=[],o=[],a=[],s=0,f=e.length;s<f;)t=e[s],n=e[s+1]-1,t<c?(n<c&&o.push(t,n+1),n>=c&&n<=l&&(o.push(t,c),r.push(c,n+1)),n>=u&&n<=d&&(o.push(t,c),r.push(c,56320),i.push(u,n+1)),n>d&&(o.push(t,c),r.push(c,56320),i.push(u,57344),n<=65535?o.push(57344,n+1):(o.push(57344,65536),a.push(65536,n+1)))):t>=c&&t<=l?(n>=c&&n<=l&&r.push(t,n+1),n>=u&&n<=d&&(r.push(t,56320),i.push(u,n+1)),n>d&&(r.push(t,56320),i.push(u,57344),n<=65535?o.push(57344,n+1):(o.push(57344,65536),a.push(65536,n+1)))):t>=u&&t<=d?(n>=u&&n<=d&&i.push(t,n+1),n>d&&(i.push(t,57344),n<=65535?o.push(57344,n+1):(o.push(57344,65536),a.push(65536,n+1)))):t>d&&t<=65535?n<=65535?o.push(t,n+1):(o.push(t,65536),a.push(65536,n+1)):a.push(t,n+1),s+=2;return{loneHighSurrogates:r,loneLowSurrogates:i,bmp:o,astral:a}}(e),o=i.loneHighSurrogates,a=i.loneLowSurrogates,s=i.bmp,f=i.astral,h=!k(o),p=!k(a),m=F(f);return t&&(s=E(s,o),h=!1,s=E(s,a),p=!1),k(s)||r.push($(s)),m.length&&r.push(function(e){var t=[];return g(e,(function(e){var n=e[0],r=e[1];t.push($(n)+$(r))})),t.join("|")}(m)),h&&r.push($(o)+"(?![\\uDC00-\\uDFFF])"),p&&r.push("(?:[^\\uD800-\\uDBFF]|^)"+$(a)),r.join("|")}(this.data,!!e&&e.bmpOnly,!!e&&e.hasUnicodeFlag);return t?t.replace(f,"\\0$1"):"[]"},toRegExp:function(e){var t=this.toString(e&&-1!=e.indexOf("u")?{hasUnicodeFlag:!0}:null);return RegExp(t,e||"")}
vendor: 4,555 bytes, lines 56-66
56,valueOf:function(){return N(this.data)}}),V.toArray=V.valueOf,void 0===(r=function(){return B}.call(t,n,t,e))||(e.exports=r)}()},53:(e,t)=>{
57/**
58 * @license React
59 * scheduler.production.min.js
60 *
61 * Copyright (c) Facebook, Inc. and its affiliates.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE file in the root directory of this source tree.
65 */
66function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>o(c,n))l<i&&0>o(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else{if(!(l<i&&0>o(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],u=[],d=1,f=null,h=3,p=!1,g=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(l,t)}t=r(u)}}function x(e){if(m=!1,w(e),!g)if(null!==r(l))g=!0,P(_);else{var t=r(u);null!==t&&D(x,t.startTime-e)}}function _(e,n){g=!1,m&&(m=!1,y(O),O=-1),p=!0;var o=h;try{for(w(n),f=r(l);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"==typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(l)&&i(l),w(n)}else i(l);f=r(l)}if(null!==f)var c=!0;else{var d=r(u);null!==d&&D(x,d.startTime-n),c=!1}return c}finally{f=null,h=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,E=null,O=-1,j=5,k=-1;function R(){return!(t.unstable_now()-k<j)}function N(){if(null!==E){var e=t.unstable_now();k=e;var n=!0;try{n=E(!0,e)}finally{n?S():(C=!1,E=null)}}else C=!1}if("function"==typeof b)S=function(){b(N)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,A=T.port2;T.port1.onmessage=N,S=function(){A.postMessage(null)}}else S=function(){v(N,0)};function P(e){E=e,C||(C=!0,S())}function D(e,n){O=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,P(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(l)&&e===r(u)&&(m?(y(O),O=-1):m=!0,D(x,o-a))):(e.sortIndex=s,n(l,e),g||p||(g=!0,P(_))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},3840:(e,t,n)=>{e.exports=n(53)},500:e=>{e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},610:e=>{e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))}
66,2449:(e,t,n)=>{n.r(t),n.d(t,{cancelChanges:()=>o});var r=n(7223),i=n(5991);async function o(e,{currentForm:t}){t.setSuspend(!0);try{await(0,i.methodToPromise)(t,"publish","rollback");const n=t.getSubmitObjects();mx.isOffline()?await new Promise(((e,t)=>mx.data.rollback({mxobjs:n,callback:e,error:t}))):await(0,r.onlineData)().executeObjectAction(e.operationId,"rollback",n),e.closePage&&await(0,i.methodToPromise)(t,"close")}finally{t.setSuspend(!1)}}},3772:(e,t,n)=>{n.d(t,{j:()=>x});var r=n(8934),i=n(1016),o=n(3282),a=n(234),s=n(178),c=n(1881),l=n(7223),u=n(5991),d=n(7340),f=n(7566),h=n(5087),p=n(2449),g=n(1409),m=n(6921),v=n(4204),y=n(2749);const b=n(7606).LogManager.get().getLogger();var w=n(8673);function x(e,t,n,x,_){const S=(0,i.getSession)();function C(e){return"$object"in e&&e.$object?"object"in e.$object?e.$object.object:(0,o.crash)():void 0}function E(e){_?_(e):e instanceof r.ValidationError||(0,c.handleError)(e)}S.hasSomeRole(e.config.allowedRoles)?async function(){switch(e.type){case"callMicroflow":return async function(e,t,n){const i=e.confirmation;if(i&&!await new Promise((e=>mx.ui.confirmation({cancel:i.cancel,proceed:i.proceed,content:i.question,handler:()=>e(!0),onCancel:()=>e(!1)}))))return;if(t.beforeExecuteAction&&t.beforeExecuteAction(),t.abortOnClientValidations)switch(e.validate){case"node":if(!t.widgetIsValid)throw new r.ValidationError;break;case"view":await t.currentForm.triggerValidation()}const o=e.progress?mx.ui.showProgress(e.progress.message,e.progress.modal):void 0;
66try{await(0,u.methodToPromise)(t.currentForm,"publish","submit");const r=t.abortOnServerValidations?t.currentForm.getSubmitObjects().map((e=>e.getGuid())):[];await(0,l.onlineData)().executeMicroflow(e.operationId,(0,f.Db)(n),t.currentForm,r,Boolean(e.async))}finally{void 0!==o&&mx.ui.hideProgress(o)}}(e.config,t,n);case"callNanoflow":return async function(e,t,n){t.beforeExecuteAction&&t.beforeExecuteAction(),t.abortOnClientValidations&&await t.currentForm.triggerValidation(),await(0,u.methodToPromise)(t.currentForm,"publish","submit"),await h.Wi.execute(e.nanoflow,await(0,f.u9)(n),t.currentForm)}(e.config,t,n);case"cancelChanges":return(0,p.cancelChanges)(e.config,t);case"closePage":return async function(e,{currentForm:t},n){const r=e.numberOfPagesToClose?(0,m.H)(await(0,g._M)(e.numberOfPagesToClose,n)):1;if(r<1)throw new a.AssertionError(`The number of pages to close evaluated to ${r}. It must be at least 1.`);return t.closePage(r)}(e.config,t,n);case"doNothing":return;case"openLink":return async function(e,t){const n="addressAttribute"in e?await(0,u.methodToProm
66ise)((0,o.ensure)(t),"fetch",e.addressAttribute):e.address,r=function(e,t){if(null!=t)switch(e){case"email":return`mailto:${escape(t)}`;case"call":return`tel:${escape(t)}`;case"text":return`sms:${escape(t)}`;default:const e=t.trim().toLowerCase();return e.startsWith("javascript:")||e.startsWith("vbscript:")||e.startsWith("data:")?void b.error("Attempted to open invalid link URL",t):t}else b.error("Attempted to open missing link URL")}(e.schema,n);void 0!==r&&("web"===e.schema?window.open(r,"_blank","noopener"):window.open(r,"_self"))}(e.config,C(n));case"openPage":return(0,v.openPage)(e.config,t,n).then((()=>{}));case"saveChanges":return(0,d.saveChanges)(e.config,t);case"signOut":return async function(){(0,i.getSession)().isGuest()||(mx.ui.showProgress(void 0,!0),mx.logout())}();case"synchronize":return(0,w.B)();case"deleteObject":return async function(e,{currentForm:t},n){let r;if(n)if("object"in n)r=[n.object];else{if(!("objects"in n))throw new a.AssertionError;r=n.objects}else r=[];const i=(0,y.translate)(r.length>1?"mxui.widget.DataGrid":"mxui.sys.UI","confirm_delete",r.length.toString());if(await new Promise((e=>mx.ui.confirmation({content:i,handler:()=>{e(!0)},onCancel:()=>{e(!1)}})))){t.setSuspend(!0);try{mx.isOffline()?await(0,l.offlineData)().delete(r):e.operationId&&await(0,l.onlineData)().executeObjectAction(e.operationId,"delete",r),e.closePage&&await(0,u.methodToProm
66ise)(t,"close")}finally{t.setSuspend(!1)}}}(e.config,t,n.$object);case"createObject":return async function(e,t,{$object:n,...r}){const i=n?"object"in n?n.object:(0,o.crash)():void 0;if("association"in e&&void 0===i)throw new a.AssertionError;const s=mx.ui.showProgress("",!1);try{let n;n=mx.isOffline()?await(0,l.offlineData)().create(e.entity):await(0,l.onlineData)().createObject(e.entity,e.operationId),e.association&&n.addReference(e.association,i.getGuid()),await(0,v.openPage)({...e.pageSettings,numberOfPagesToClose:e.numberOfPagesToClose},t,{[e.objectParameter]:{object:n},...r})}finally{mx.ui.hideProgress(s)}}(e.config,t,n);case"callExternalAction":return async function(e,{currentForm:t},n){e.commit&&await t.triggerValidation(),e.closePage&&t.setSuspend(!0);try{const r=e.confirmation;if(r&&!await new Promise((e=>mx.ui.confirmation({cancel:r.cancel,proceed:r.proceed,content:r.question,handler:()=>e(!0),onCancel:()=>e(!1)}))))return;const i=e.commit?await(0,d.getUnsavedObjects)(t):[];await(0,l.onlineData)().executeExternalAction(e.operationId,n,i),e.closePage&&await(0,u.methodToProm
66ise)(t,"close")}finally{t.setSuspend(!1)}}(e.config,t,(0,o.ensure)(C(n)));default:throw new a.AssertionError}}().then(x,E):S.isGuest()?mx.ui.showLogin():E(new s.W("Unable to execute action because you do not have sufficient permissions."))}},4204:(e,t,n)=>{n.r(t),n.d(t,{openPage:()=>l});var r=n(3698),i=n(1409),o=n(6921),a=n(3282),s=n(234),c=n(5991);async function l(e,t,n){const[l,d]=function(e){const t={},n={};return Object.keys(e).forEach((r=>{r.startsWith(u)?t["$"+r.substring(u.length)]=e[r]:n[r]=e[r]})),[t,n]}(n);let f=[{}];for(const[e,t]of Object.entries(l))if(t){if("object"in t)f.forEach((n=>n[e]=t.object));else if("objects"in t){if(1!==f.length)throw new s.AssertionError("Multiple parameters with multiple objects are not supported");const n=f[0];f=t.objects.map((t=>({...n,[e]:t})))}else if("selection"in t){if(Array.isArray(t.selection))throw new s.AssertionError("Parameters with multi-selection are not supported");const n=await(0,r.m3)(t.selection);f.forEach((t=>t[e]=n))}}else f.forEach((t=>t[e]=void 0));t.abortOnClientValidations&&await t.currentForm.triggerValidation(),t.abortOnServerValidations&&await(0,c.methodToProm
66ise)(mx.data,"validate",t.currentForm.getSubmitObjects());const h=await Promise.all(f.map((async function(n){var r;let s;if(e.specializations){const t=n[e.specializations.argument];s=t?e.specializations.pageSettings[t.getEntity()]:void 0}const c=null!=s?s:e,l=c.title?null!==(r=await(0,i._M)(c.title,d))&&void 0!==r?r:"":void 0,u=e.numberOfPagesToClose?(0,o.H)(await(0,i._M)(e.numberOfPagesToClose,d)):void 0,f=c.params?(0,a.mapValues)(c.params,(e=>{var t;return null===(t=n[e])||void 0===t?void 0:t.getGuid()})):(0,a.mapValues)(n,(e=>null==e?void 0:e.getGuid()));return mx.ui.openForm2(c.name,f,l,t.currentForm,{...c,formParams:t.formParams},u)})));return f.length>1?h:h[0]}const u="param$"},7340:(e,t,n)=>{n.r(t),n.d(t,{getUnsavedObjects:()=>s,saveChanges:()=>a});var r=n(7223),i=n(5991),o=n(8673);async function a(e,{currentForm:t}){await t.triggerValidation(),t.setSuspend(!0);try{const n=await s(t);mx.isOffline()?await new Promise(((e,t)=>{mx.data.commit({mxobjs:n,callback:e,error:t})})):await(0,r.onlineData)().executeObjectAction(e.operationId,"commit",n);try{e.syncAutomatically&&await(0,o.B)()}
66finally{e.closePage&&await(0,i.methodToPromise)(t,"close")}}finally{t.setSuspend(!1)}}async function s(e){return await(0,i.methodToPromise)(e,"publish","submit"),await(0,i.methodToPromise)(e,"publish","commit"),e.getSubmitObjects()}},8673:(e,t,n)=>{async function r(){const e=mx.ui.showProgress(void 0,!0);try{await mx.data.synchronizeOffline()}finally{mx.ui.hideProgress(e)}}n.d(t,{B:()=>r})},8128:(e,t,n)=>{n.r(t),n.d(t,{Icon:()=>i});var r=n(5893);function i({icon:e,altText:t}){if(!e)return null;switch(e.type){case"image":return(0,r.jsx)("img",{src:e.iconUrl,alt:null!=t?t:""});case"glyph":return(0,r.jsx)("span",{className:`glyphicon ${e.iconClass}`,...t?{"aria-label":t}:{"aria-hidden":!0}});case"icon":return(0,r.jsx)("span",{className:e.iconClass,...t?{"aria-label":t}:{"aria-hidden":!0}})}}},9533:(e,t,n)=>{n.r(t),n.d(t,{and:()=>v,association:()=>m,attribute:()=>h,contains:()=>k,dayEquals:()=>T,dayGreaterThan:()=>P,dayGreaterThanOrEqual:()=>I,dayLessThan:()=>D,dayLessThanOrEqual:()=>M,dayNotEqual:()=>A,empty:()=>g,endsWith:()=>N,equals:()=>w,greaterThan:()=>S,greaterThanOrEqual:()=>E,lessThan:()=>C,lessThanOrEqual:()=>O,literal:()=>p,not:()=>b,notEqual:()=>x,or:()=>y,startsWith:()=>R});var r=n(3302),i=n.n(r),o=n(4063),a=n.n(o),s=n(9255),c=n(293),l=n(5215),u=n(365),d=n(3282),f=n(234);function h(e){return function(e){if(!function(e){return"string"==typeof e&&void 0!==(0,l.it)(e)}(e))throw new f.AssertionError(`Argument of function "attribute" is not a valid attribute id: ${e}`);if(!(0,s.eT)(e))throw new f.AssertionError(`Argument of function "attribute" is not a filterable attribute id: ${e}`)}(e),(0,s.T9)({type:"attribute",attributeId:e})}function p(e){const t=function(e){const t=typeof e;switch(t){case"boolean":case"string":case"undefined":return t;case"object":if(e instanceof i())return"Numeric";if(e instanceof Date)return"DateTime";if((0,u.Rd)(e))return"Reference";if((0,u.cC)(e)){if(0===e.length)throw new f.AssertionError('Argument of function "literal" cannot be an empty array, use empty() instead.');return"ReferenceSet"}}throw new f.AssertionError(`Argument of function "literal" is not a valid literal value: ${e}`)}(e),n=function(e,t){switch(t){case"Reference":const t=e;return{value:t.id,[s.Bc]:(0,u.$g)(t)};case"ReferenceSet":const n=e,r=n.map(u.$g);if((0,d.unique)(r).length>1)throw new f.AssertionError('Argument of function "literal" cannot contain object items from multiple data sources');return{value:Object.freeze(n.map((e=>e.id))),[s.Bc]:r[0]};default:return{value:Object.freeze(e)}}}(e,t);return(0,s.T9)({type:"literal",...n,valueType:t})}function g(){return p(void 0)}function m(e){return function(e){if(!function(e){return"string"==typeof e&&void 0!==(0,c.Pk)(e)}(e))throw new f.AssertionError(`Argument of function "association" is not a valid association id: ${e}`);if(!(0,s.eT)(e))throw new f.AssertionError(`Argument of function "association" is not a filterable association id: ${e}`)}(e),(0,s.T9)({type:"association",associationId:e})}function v(...e){return B("and",e),V("and",e),$("and",...e)}function y(...e){return B("or",e),V("or",e),$("or",...e)}function b(e){return z("not",e),function(e,t){return F("not",{arg:t})}(0,e)}function w(e,t){return U("equals",e,0),U("equals",t,1),G("equals",e,t),Q("equals",e,t),K("equals",e,t),L("=",e,t)}function x(e,t){return U("notEqual",e,0),U("notEqual",t,1),G("notEqual",e,t),Q("notEqual",e,t),K("notEqual",e,t),L("!=",e,t)}const _=["string","Numeric","DateTime"];function S(e,t){return U("greaterThan",e,0),U("greaterThan",t,1),G("greaterThan",e,t,_),L(">",e,t)}function C(e,t){return U("lessThan",e,0),U("lessThan",t,1),G("lessThan",e,t,_),L("<",e,t)}function E(e,t){return U("greaterThanOrEqual",e,0),U("greaterThanOrEqual",t,1),G("greaterThanOrEqual",e,t,_),L(">=",e,t)}function O(e,t){return U("lessThanOrEqual",e,0),U("lessThanOrEqual",t,1),G("lessThanOrEqual",e,t,_),L("<=",e,t)}const j=["String","Integer","Long","Decimal","AutoNumber"];function k(e,t){switch(H("attribute or association expression",(e=>(0,s.k0)(e)||(0,s.Ng)(e)),"contains",e,0),q("contains",t,1),e.type){case"association":J("contains",0,re(e.associationId),["ReferenceSet"]),J("contains",1,ee(t),["Reference","ReferenceSet"]),Z("contains",e,t);break;
66case"attribute":J("contains",0,ne(e.attributeId),j),J("contains",1,ee(t),["string"]);break;default:(0,d.crash)()}return L("contains",e,t)}function R(e,t){return W("startsWith",e,0),q("startsWith",t,1),J("startsWith",0,ne(e.attributeId),j),J("startsWith",1,ee(t),["string"]),L("starts-with",e,t)}function N(e,t){return W("endsWith",e,0),q("endsWith",t,1),J("endsWith",0,ne(e.attributeId),j),J("endsWith",1,ee(t),["string"]),L("ends-with",e,t)}function T(e,t){return W("dayEquals",e,0),q("dayEquals",t,1),G("dayEquals",e,t,["DateTime"]),L("day:=",e,t)}function A(e,t){return W("dayNotEqual",e,0),q("dayNotEqual",t,1),G("dayNotEqual",e,t,["DateTime"]),L("day:!=",e,t)}function P(e,t){return W("dayGreaterThan",e,0),q("dayGreaterThan",t,1),G("dayGreaterThan",e,t,["DateTime"]),L("day:>",e,t)}function D(e,t){return W("dayLessThan",e,0),q("dayLessThan",t,1),G("dayLessThan",e,t,["DateTime"]),L("day:<",e,t)}function I(e,t){return W("dayGreaterThanOrEqual",e,0),q("dayGreaterThanOrEqual",t,1),G("dayGreaterThanOrEqual",e,t,["DateTime"]),L("day:>=",e,t)}function M(e,t){return W("dayLessThanOrEqual",e,0),q("dayLessThanOrEqual",t,1),G("dayLessThanOrEqual",e,t,["DateTime"]),L("day:<=",e,t)}function L(e,t,n){return F(e,{arg1:t,arg2:n})}function $(e,...t){return F(e,{args:Object.freeze(t)})}function F(e,t){return(0,s.T9)({type:"function",name:e,...t})}function B(e,t){if(t.length<2)throw new f.AssertionError(`The "${e}" function requires at least two arguments.`)}function V(e,t){t.forEach(((t,n)=>z(e,t,n)))}function z(e,t,n){H("filter condition",s._r,e,t,n)}function U(e,t,n){H("value expression",s.yB,e,t,n)}function W(e,t,n){H("attribute expression",s.k0,e,t,n)}function q(e,t,n){H("literal expression",s.xH,e,t,n)}function H(e,t,n,r,i){const o=void 0!==i?`Argument #${i}`:"Argument";if(null==r)throw new f.AssertionError(`${o} of function "${n}" cannot be ${r}`);if(!t(r))throw new f.AssertionError(`${o} of function "${n}" is not a valid ${e}`)}function G(e,t,n,r=[]){const i=ee(t),o=ee(n);if(J(e,0,i,r),J(e,1,o,r),i!==o&&"undefined"!==i&&"undefined"!==o)throw new f.AssertionError(`The arguments of function "${e}" have incompatible types (${i} != ${o}).`);Z(e,t,n)}function Z(e,t,n){const r=te(t),i=te(n);if(r!==i&&void 0!==r&&void 0!==i)throw new f.AssertionError(`The arguments of function "${e}" are incompatible, because they are not referring to objects from the same data source.`)}function K(e,t,n){if(X(e,0,t),X(e,1,n),Y(t)&&Y(n))throw new f.AssertionError(`The arguments of function "${e}" cannot both be reference set associations.`)}function X(e,t,n){if((0,s.xH)(n)&&"ReferenceSet"===n.valueType)throw new f.AssertionError(`Argument #${t} of function "${e}" cannot be a reference set literal, only empty().`)}function Y(e){return"association"===e.type&&"ReferenceSet"===re(e.associationId)}function Q(e,t,n){const r=ie(t)?oe(t.attributeId):void 0,i=ie(n)?oe(n.attributeId):void 0;if(void 0===r&&void 0===i)return;if(void 0!==r&&void 0!==i){if(!a()(r,i)){const t=`[${r.join(", ")}]`,n=`[${i.join(", ")}]`;throw new f.AssertionError(`Arguments of function "${e}" are incompatible enum attributes (${t} != ${n}).`)}return}const o=null!=r?r:i;function s(t,n){if("literal"!==n.type)return;const r=n.value;if(void 0!==r&&!o.includes(r)){const n=`[${o.join(", ")}]`;throw new f.AssertionError(`Argument #${t} of function "${e}" has an invalid enum literal value (${r} != ${n}).`)}}s(0,t),s(1,n)}function J(e,t,n,r){if(0!==r.length&&!r.includes(n)){const i=1===r.length?r[0]:`[${r.join(", ")}]`;throw new f.AssertionError(`Argument #${t} of function "${e}" has an incompatible type (${n} != ${i}).`)}}function ee(e){switch(e.type){case"attribute":return function(e){const t=ne(e);switch(t){case"Boolean":return"boolean";case"DateTime":return"DateTime";case"AutoNumber":case"Integer":case"Long":case"Decimal":return"Numeric";case"Enum":case"String":case"HashString":return"string";case"Binary":case"EnumSet":case"ObjectReference":case"ObjectReferenceSet":throw new f.AssertionError("Unsupported attribute type: "+t)}}(e.attributeId);case"literal":return e.valueType;case"association":return re(e.associationId)}}function te(e){var t;switch(e.type){case"attribute":return;case"literal":return e[s.Bc];case"association":return null===(t=(0,c.Pk)(e.associationId))||void 0===t?void 0:t.selectableObjectsId}}function ne(e){return(0,d.ensure)((0,l.WF)(e))}function re(e){return(0,d.ensure)((0,c.ec)(e))}function ie(e){return"attribute"===e.type&&"Enum"===ne(e.attributeId)}function oe(e){return(0,d.ensure)((0,l.KJ)(e))}},45:(e,t,n)=>{var r;n.r(t),n.d(t,{FormatterType:()=>r}),function(e){e.Number="number",e.DateTime="datetime"}(r||(r={}))},4046:(e,t,n)=>{n.r(t),n.d(t,{useHistoryFrameId:()=>l,usePersistentState:()=>d});var r=n(7294),i=n(6261),o=n(8135),a=n(2550),s=n(3282),c=n(8714);function l(){const e=`useCurrentFormId(${(0,r.useContext)(i.KP)})`;(0,r.useDebugValue)(e);const[t]=(0,o.useStoreBackendValue)(a.pageScope,"form"),n=(0,r.useMemo)((()=>(0,c.fromComputation$)(e,(()=>(0,s.ensure)(t.dependOn())[0].getHistoryId()))),[]);return(0,s.useDependableValue)(n)}var u=n(234);function d(e,t){if("string"!=typeof e||0===e.length)throw new u.AssertionError("Ke
66y must be defined");const n=(0,r.useContext)(i.KP),a=`usePersistentState(${e}, ${n})`;(0,r.useDebugValue)(a),(0,s.useEnsureConstantValues)(e,n);const l=`hook:${e}`,[d,h]=(0,o.useStoreBackendValue)(n,l);(0,o.useOwnStoreBackendSlot)(n,l);const p=(0,r.useCallback)((e=>{e instanceof Function?p(e((0,c.readUntracked)(d))):void 0!==e?(f(e),h(JSON.parse(JSON.stringify(e)))):h(void 0)}),[d]);return(0,r.useMemo)((()=>{void 0===(0,c.readUntracked)(d)&&p("function"==typeof t?t():t)}),[]),[(0,s.useDependableValue)(d),p]}function f(e){if(!["boolean","number","string"].includes(typeof e)&&null!==e)if(Array.isArray(e))e.forEach(f);else{if(!(0,s.isJson)(e))throw new u.AssertionError(`usePersistentState: received non-primitive value ${e}`);Object.values(e).forEach(f)}}},6077:(e,t,n)=>{n.d(t,{Y:()=>c,y:()=>o});var r=n(1016);let i;function o(){if(void 0===i){const e=(0,r.getSession)();i="rtl"===e.getConfig("uiconfig.direction")}return i}var a=n(6598);let s;function c(){return void 0===s&&(s=(0,a.getLocale)().numbers.decimalSeparator),s}},7606:(e,t,n)=>{n.r(t),n.d(t,{LogManager:()=>o,LogNode:()=>i,defaultLogFilter:()=>c,logUnhandledErrors:()=>a,registerConsoleLogsListener:()=>s});const r=["trace","debug","info","warn","error","critical"],i={Auth:"Auth",AppCenter:"AppCenter",Client:"Client",OTA:"OTA",SelectiveSync:"SelectiveSync",Nanoflow:"Nanoflow",NanoflowDebugger:"NanoflowDebugger",Database:"Database",FileSystem:"FileSystem",Navigation:"Navigation",Network:"Network",Startup:"Startup",Synchronization:"Synchronization"};class o{constructor(){this.logHandlers=[],this.loggers=new Map,this.delayedLogs=[],this.processLog=(e,t,...n)=>{this.shouldProcessLog(e,t,...n)&&this.logHandlers.forEach((r=>r(e,t,...n)))},this.processLogDebounced=(e,t,...n)=>{this.shouldProcessLog(e,t,...n)&&(void 0!==this.delayTimer&&clearTimeout(this.delayTimer),this.delayedLogs.push({level:e,node:t,args:n}),this.delayTimer=setTimeout((()=>{this.delayedLogs.forEach((e=>{this.logHandlers.forEach((t=>t(e.level,e.node,...e.args)))})),this.delayedLogs=[]}),500))}}addHandler(e){this.logHandlers.push(e)}removeHandler(e){const t=this.logHandlers.indexOf(e);-1!==t&&this.logHandlers.splice(t,1)}getLogFilter(){return this.filter}setLogFilter(e){this.filter=e}getLogger(e=i.Client){if(!this.loggers.has(e)){if(!Object.prototype.hasOwnProperty.call(i,e)){const t=this.getLogger();return t.warn(`Invalid log node requested: "${e}". Returning a logger with default node instead.`),t}const t=t=>Object.assign({},...r.map((n=>({[n]:(...r)=>{t("warn"===n?"warning":n,e,...r)}}))),{log:(n,...r)=>{t(n,e,...r)}}),n={...t(this.processLog),debounced:t(this.processLogDebounced)};this.loggers.set(e,n)}return this.loggers.get(e)}shouldProcessLog(e,t,...n){return void 0===this.filter||this.filter(e,t,...n)}static get(){return o.instance||(o.instance=new o),o.instance}}function a(){if("function"==typeof window.addEventListener){const e=o.get().getLogger();window.addEventListener("error",(t=>{var n;return e.error(null!==(n=t.error)&&void 0!==n?n:t.message)})),window.addEventListener("unhandledrejection",(t=>e.error(t.reason)))}}function s(){o.get().addHandler(function(){const e={};return["debug","info","log","warn","error"].forEach((t=>{e[t]=console[t];const n=function(e){switch(e){case"warn":return"warning";case"log":return"debug";default:return e}}(t);console[t]=(...e)=>o.get().getLogger().log(n,...e)})),(t,n,...r)=>{const i=function(e){switch(e){case"trace":return"debug";case"critical":return"error";case"warning":return"warn";default:return e}}(t);if(void 0===i)return;const[o,...a]=r,s="string"==typeof o?[`[${n}] ${o}`,...a]:[`[${n}]`,...r];e[i].call(console,...s)}}())}const c=(e,t,...n)=>!n.some((e=>"string"==typeof e&&e.includes("setstate-in-render")))},1016:(e,t,n)=>{n.r(t),n.d(t,{getSession:()=>o,setSession:()=>a});var r=n(3282);let i;function o(){return(0,r.ensure)(i)}function a(e){i=e}},6559:(e,t,n)=>{n.d(t,{u:()=>r});class r{constructor(){this.startedAt=0,this.reset()}measure(){const e=performance.now()-this.startedAt;return{ms:e,toString:()=>e.toFixed(1)}}reset(){this.startedAt=performance.now()}}}
66,3698:(e,t,n)=>{n.d(t,{Ku:()=>u,MR:()=>o,OF:()=>l,UA:()=>c,h0:()=>d,m3:()=>a});var r=n(4037),i=n(1016);async function o(e){return new Promise(((t,n)=>mx.data.get({guids:e,callback:t,error:n})))}async function a(e){return new Promise(((t,n)=>mx.data.get({guid:e,callback(e){t(null!=e?e:void 0)},error:n})))}const s={String:null,Integer:null,Long:null,Decimal:null,Enum:null,HashString:null,ObjectReference:null,ObjectReferenceSet:[],DateTime:null,Boolean:!1,AutoNumber:"0",Binary:null,EnumSet:null};function c(e,t){const n={guid:e,objectType:t.name,attributes:{}};return(0,r.getAttributesMeta)(t.name).forEach((e=>{const o=!t.isPersistable&&(0,r.isSystemAttribute)(e.name)?function(e){switch(e){case r.SystemAttribute.Owner:case r.SystemAttribute.ChangedBy:return(0,i.getSession)().getUserId();case r.SystemAttribute.CreatedDate:case r.SystemAttribute.ChangedDate:return Date.now()}}(e.name):void 0===e.defaultValue?s[e.type]:"DateTime"===e.type&&"[%CurrentDateTime%]"===e.defaultValue?(new Date).getTime():e.defaultValue;n.attributes[e.name]={value:o,readonly:e.isAlwaysReadOnly}})),n}function l(e,t,n,r){let i=[],o=[];const a=d(n);if("reverse"===t)i=r.getAllObjects().filter((t=>t.getReferences(a).includes(e)));else{const t=r.getObject(e);t&&({cachedObjects:i,uncachedGuids:o}=u(t,r,a))}return{cachedObjects:i,uncachedGuids:o}}function u(e,t,n){const r=e.getReferences(n);return{cachedObjects:r.map((e=>t.getObject(e))).filter((e=>null!==e)),uncachedGuids:r.filter((e=>!t.has(e)))}}function d(e){const t=e.split("/");return 1===t.length?e:t[0]}},2351:(e,t,n)=>{n.r(t),n.d(t,{getSubscribedGuids:()=>u,getTags:()=>l,publish:()=>c,subscribe:()=>s,testClearEventBus:()=>d});var r=n(2188),i=n(234),o=n(4037);const a=new Map;function s(e){var t;const n=f(e),r=null!==(t=a.get(n))&&void 0!==t?t:[];return r.push(e),a.set(n,r),{unsubscribe:()=>{const t=a.has(n)?a.get(n):[],r=t.indexOf(e);-1!==r&&(t.splice(r,1),0===t.length&&a.delete(n))}}}async function c(...e){var t,n;const i=[],s=[];for(const r of e){let e;if("entity"in r)e=[r.entity].concat(null!==(n=null===(t=(0,o.getEntityMeta)(r.entity))||void 0===t?void 0:t.generalizations)&&void 0!==n?n:[]).reduce(((e,t)=>{var n;return null===(n=a.get(t))||void 0===n||n.forEach((t=>e.push(t))),e}),[]);else{const t=f(r);e=a.has(t)?a.get(t):[]}e.length&&(i.push(...e.map((e=>{var t,n;return"val"in r?null===(t=e.callback)||void 0===t?void 0:t.bind(e,r.val):null===(n=e.callback)||void 0===n?void 0:n.bind(e,void 0)}))),s.push(r))}if(i.length>0){const e=(0,r.runInAction)((()=>i.map((e=>null==e?void 0:e.apply(void 0)))));await Promise.all(e)}return{handled:s}}function l(e){const t=[];for(const n of a.values())for(const r of n){if(!("guid"in r)||r.guid!==e||void 0===r.tag)break;t.push(r.tag)}return t}function u(){const e=[];for(const t of a.values())for(const n of t){if(!("guid"in n))break;e.push(n.guid)}return e}function d(){a.clear()}function f(e){if("guid"in e&&"attr"in e&&"val"in e&&e.val)return`${e.guid}:${e.attr}:validation`;if("guid"in e&&"attr"in e)return`${e.guid}:${e.attr}`;if("guid"in e)return e.guid;if("entity"in e)return e.entity;if("topic"in e)return e.topic;if("param"in e)return e.param;throw new i.AssertionError("Unknown subscription or message")}},7680:(e,t,n)=>{n.d(t,{Bi:()=>s,CN:()=>c,RK:()=>l});var r=n(3302),i=n.n(r),o=n(234);const a=new Map;function s(e){var t;if(void 0===e.maxObjectId)throw new o.AssertionError(`Can't create a Mendix guid for "${e}"`);const n=null!==(t=a.get(e.name))&&void 0!==t?t:new(i())(e.maxObjectId);return a.set(e.name,n.minus(1)),n.toString()}function c(){const e={};return a.forEach(((t,n)=>e[n]=t.toString())),e}function l(e){Object.entries(e).forEach((([e,t])=>{a.set(e,new(i())(t))}))}},7223:(e,t,n)=>{n.r(t),n.d(t,{initializeCore:()=>d,offlineData:()=>u,onlineData:()=>l,testSetOfflineData:()=>h,testSetOnlineData:()=>f});var r=n(6598),i=n(2749),o=n(3282),a=n(5835);let s,c;function l(){return(0,o.ensure)(s)}function u(){return(0,o.ensure)(c)}function d(e,t,n,o,l){(0,r.startupLocalization)(e.locale,e.uiconfig.roundingmode),(0,i.updateActiveLanguageIndex)(t,e.locale.code),(0,a.ku)(n),s=o,c=l}function f(e){s=e}function h(e){c=e}},4037:(e,t,n)=>{n.r(t),n.d(t,{SystemAttribute:()=>p,computeSupermostEntityWithAttribute:()=>h,getAttributeEnumerationType:()=>l,getAttributeType:()=>c,getAttributesMeta:()=>
66s,getEntityMeta:()=>a,isEntityA:()=>d,isFileDocument:()=>m,isFileDocumentWithContents:()=>y,isImage:()=>v,isReferenceAttribute:()=>u,isSystemAttribute:()=>g});var r=n(3282),i=n(234),o=n(1016);function a(e){return w().get(e)}function s(e){var t,n;return Object.values(null!==(n=null===(t=a(e))||void 0===t?void 0:t.attributes)&&void 0!==n?n:{})}function c(e,t){var n,r;return null===(r=null===(n=w().get(e))||void 0===n?void 0:n.attributes[t])||void 0===r?void 0:r.type}function l(e,t){var n,r;const o=null===(r=null===(n=w().get(e))||void 0===n?void 0:n.attributes[t])||void 0===r?void 0:r.enumeration;if(!o)throw new i.AssertionError(`Attribute ${t} is not accessible or not enumeration`);return o}function u(e,t){var n;return(0,r.isReferenceType)(null===(n=null==e?void 0:e.attributes[t])||void 0===n?void 0:n.type)}function d(e,t){var n;return e===t||Boolean(null===(n=a(e))||void 0===n?void 0:n.generalizations.includes(t))}const f=new Map;function h(e,t){const n=`${e}.${t}`,r=f.get(n);if(void 0!==r&&!x)return r;const i=a(e);if(!(null==i?void 0:i.attributes[t]))return;const o=i.generalizations.filter((e=>{var n;return null===(n=a(e))||void 0===n?void 0:n.attributes[t]})).pop(),s=null!=o?o:e;return f.set(n,s),s}var p;function g(e){return Object.values(p).includes(e)}function m(e,t=!1){return d(e,t?"System.Image":"System.FileDocument")}function v(e){return d(e,"System.Image")}function y(e,t=!1){return m(e.objectType,t)&&!0===(0,r.ensure)(e.attributes.HasContents).value}!function(e){e.ChangedBy="System.changedBy",e.Owner="System.owner",e.CreatedDate="createdDate",e.ChangedDate="changedDate"}(p||(p={}));const b=new Map;function w(){return x&&b.clear(),0===b.size&&(0,o.getSession)().getConfig("metadata").forEach((e=>{const t=Object.freeze({name:e.objectType,generalizations:Object.freeze(e.properties.superclasses),specializations:Object.freeze(e.properties.subclasses),isPersistable:e.persistable,maxObjectId:e.maxObjectId,...e.isRemoteFileEntity&&{isRemoteFileEntity:e.isRemoteFileEntity},needsReachableState:Object.freeze(e.needsReachableState),attributes:Object.freeze(Object.fromEntries(Object.entries(e.attributes).map((([e,t])=>[e,Object.freeze({name:e,type:t.type,referenceEntity:(0,r.isReferenceType)(t.type)?t.klass:void 0,enumeration:"Enum"===t.type?t.klass:void 0,isDateLocalized:"DateTime"===t.type?Boolean(t.localize):void 0,isBidiReference:(0,r.isReferenceType)(t.type)?Boolean(t.both):void 0,isSyncable:!1!==t.sync,isAlwaysReadOnly:Boolean(t.readonly),defaultValue:t.defaultValue})]))))});b.set(e.objectType,t)})),b}const x=!1},9726:(e,t,n)=>{n.d(t,{h:()=>i});var r=n(5348);class i extends r.Z{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},8157:(e,t,n)=>{n.d(t,{j:()=>i});var r=n(178);class i extends r.W{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},7478:(e,t,n)=>{n.d(t,{n:()=>r});class r extends Error{constructor(e,t){super(null!=t?t:"Internal server error"),this.status=e,Object.setPrototypeOf(this,r.prototype)}}},8715:(e,t,n)=>{n.d(t,{y:()=>i});var r=n(7478);class i extends r.n{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},8934:(e,t,n)=>{n.r(t),n.d(t,{ValidationError:()=>r});class r extends Error{constructor(e={}){super(),this.original=e,Object.setPrototypeOf(this,r.prototype)}}},8582:(e,t,n)=>{n.d(t,{Iy:()=>o,md:()=>a});var r=n(3282);let i=[];function o(e){return i.push(e),()=>{const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}async function a(e,t){return async function e(n,o){return n===i.length?t(o):(0,r.ensure)(i[n])(o,(t=>e(n+1,t)))}(0,e)}},4036:(e,t,n)=>{n.r(t),n.d(t,{get:()=>p,post:()=>g});var r=n(3282),i=n(7606),o=n(6559),a=n(9726),s=n(8157),c=n(8582);class l extends Error{}var u=n(7478),d=n(8715),f=n(8934);const h=i.LogManager.get().getLogger(i.LogNode.Network);async function p(e,t){h.trace(`Starting GET ${e}`);const n=new o.u,r={url:e,init:{method:"get",headers:new Headers,cache:"force-cache",credentials:"include"}},i=await(0,c.md)(r,m);if(h.trace(`Finished GET ${e} in ${n.measure()} milliseconds. Response code ${i.status}.`),!i.ok)throw new u.n(i.status,i.statusText);switch(t){case"text":return i.text();case"json":return y(i);case"blob":return i.blob()}}async function g(e,t){const n={url:e,body:t,init:{method:"post",headers:new Headers({Accept:"application/json",...(0,r.isJson)(t)?{"Content-Type":"application/json"}:{}}),redirect:"error",credentials:"include"}};return y(await(0,c.md)(n,m))}async function m(e){let t;e.init.body=(0,r.isJson)(e.body)?JSON.stringify(e.body):e.body;try{t=await window.fetch(e.url,e.init)}catch(e){throw new a.h(e instanceof Error?e.message:String(e))}switch(t.status){case 200:return t;case 400:case 401:case 402:case 403:case 460:throw new d.y(t.status);case 502:case 504:throw new u.n(t.status,t.statusText);case 551:throw new f.ValidationError(await t.json());case 560:const e=await v(t);throw e?new s.j(e):new u.n(t.status);case 12029:throw new a.h("No connection");default:throw new u.n(t.status,await v(t))}}async function v(e){const t=await y(e);return t&&"description"in t?t.description:void 0}async function y(e){const t=await e.text();try{return JSON.parse(t)}catch(e){throw new l(`Expected response body to be JSON. Instead received: "${t}"`)}}}
66,2228:(e,t,n)=>{n.d(t,{t:()=>c,v:()=>s});var r=n(234),i=n(4037),o=n(6596);class a{constructor(){this.guidMap={}}add(e,t){this.guidMap[e]=t}has(e){return e in this.guidMap}remove(e){delete this.guidMap[e]}map(e){return Array.isArray(e)?e.map(this.mapGuid.bind(this)):this.mapGuid(e)}mapChange(e,t){const n={};return Object.entries(e).forEach((([e,r])=>{var i;if(void 0!==r.value){const o="ObjectReference"===(null===(i=t.attributes[e])||void 0===i?void 0:i.type)&&null!=r.value?this.map(r.value):r.value;n[e]={...r,value:o}}else n[e]={...r}})),n}mapMxObjectJSON(e){const t=(0,i.getEntityMeta)(e.objectType),n={};return Object.entries(e.attributes).forEach((([e,r])=>{(0,i.isReferenceAttribute)(t,e)?n[e]={...r,value:this.map(r.value)}:n[e]=r})),{...e,guid:this.map(e.guid),attributes:n}}import(...e){e.forEach((e=>Object.entries(e.guidMap).forEach((([e,t])=>this.add(e,t)))))}entries(){return Object.entries(this.guidMap)}testClear(){Object.keys(this.guidMap).forEach((e=>delete this.guidMap[e]))}reverseCopyTo(e){Object.keys(this.guidMap).forEach((t=>e.add(this.map(t),t)))}mapGuid(e){var t;return null!==(t=this.guidMap[e])&&void 0!==t?t:e}}class s extends a{constructor(){super(...arguments),this._typeMarker=!0}add(e,t){if((0,o.AF)(e)||!(0,o.AF)(t))throw new r.AssertionError;super.add(e,t)}reverse(){const e=new c;return super.reverseCopyTo(e),e}}class c extends a{constructor(){super(...arguments),this._typeMarker=!0}add(e,t){if(!(0,o.AF)(e)||(0,o.AF)(t))throw new r.AssertionError;super.add(e,t)}reverse(){const e=new s;return super.reverseCopyTo(e),e}}},1488:(e,t,n)=>{n.d(t,{t:()=>i});var r=n(5348);class i extends r.Z{constructor(e="Could temporarily not synchronize data. Please try again later."){super(e),Object.setPrototypeOf(this,i.prototype)}}},9120:(e,t,n)=>{n.d(t,{B:()=>Fe,h:()=>$e});const r=0,i=10,o=21,a=25,s=27,c=100,l=101,u=2,d=4,f=64,h=1,p=2,g=3,m=4,v=5,y=0x7fffffffffffffffn,b=-0x8000000000000000n;class w extends Error{constructor(e,t){super(e),this.code=t}}const x=!0;function _(e){const t=[],n=e.match(/([ns@]*):([nsv@])/);switch(n[2]){case"n":t.push("number");break;case"s":t.push("string");break;case"v":t.push(null)}const r=[];for(let e of n[1])switch(e){case"n":r.push("number");break;case"s":r.push("string")}return t.push(r),t}class S{constructor(){var e,t,n;e=this,n=64,(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t="mxPathName"))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}xClose(e){return i}xRead(e,t,n){return i}xWrite(e,t,n){return i}xTruncate(e,t){return i}xSync(e,t){return r}xFileSize(e,t){return i}xLock(e,t){return r}xUnlock(e,t){return r}xCheckReservedLock(e,t){return t.setInt32(0,0,!0),r}xFileControl(e,t,n){return 12}xSectorSize(e){return 512}xDeviceCharacteristics(e){return 0}xOpen(e,t,n,r){return 14}xDelete(e,t){return i}xAccess(e,t,n){return i}handleAsync(e){return e()}}function C(e,t){O(e,t),t.add(e)}function E(e,t,n){O(e,t),t.set(e,n)}function O(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function j(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,N(e,t,"set"),n),n}function k(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function R(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,N(e,t,"get"))}function N(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}[256,2048,512,4096,1024,8192,16384].reduce(((e,t)=>e|t));var T=new WeakMap,A=new WeakMap,P=new WeakMap,D=new WeakSet,I=new WeakSet,M=new WeakSet;class L{constructor(){var e,t,n;C(this,M),C(this,I),C(this,D),E(this,T,{writable:!0,value:0}),e=this,n=0,(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t="timeoutMillis"))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,E(this,A,{writable:!0,value:new Map}),E(this,P,{writable:!0,value:Promise.resolve(0)})}get state(){return R(this,T)}async lock(e){return k(this,D,$).call(this,k(this,I,F),e)}async unlock(e){return k(this,D,$).call(this,k(this,M,B),e)}async isSomewhereReserved(){throw new Error("unimplemented")}async _NONEtoSHARED(){}async _SHAREDtoEXCLUSIVE(){await this._SHAREDtoRESERVED(),await this._RESERVEDtoEXCLUSIVE()}async _SHAREDtoRESERVED(){}async _RESERVEDtoEXCLUSIVE(){}async _EXCLUSIVEtoRESERVED(){}async _EXCLUSIVEtoSHARED(){await this._EXCLUSIVEtoRESERVED(),await this._RESERVEDtoSHARED()}async _EXCLUSIVEtoNONE(){await this._EXCLUSIVEtoRESERVED(),await this._RESERVEDtoSHARED(),await this._SHAREDtoNONE()}async _RESERVEDtoSHARED(){}async _RESERVEDtoNONE(){await this._RESERVEDtoSHARED(),await this._SHAREDtoNONE()}async _SHAREDtoNONE(){}_acquireWebLock(e,t){return new Promise((async(n,r)=>{try{await navigator.locks.request(e,t,(t=>{if(n(t),t)return new Promise((t=>R(this,A).set(e,t)))}))}catch(e){r(e)}}))}_releaseWebLock(e){var t;null===(t=R(this,A).get(e))||void 0===t||t(),R(this,A).delete(e)}async _pollWebLock(e){var t;return null===(t=(await navigator.locks.query()).held.find((t=>{let{name:n}=t;return n===e})))||void 0===t?void 0:t.mode}_getTimeoutSignal(){if(this.timeoutMillis){const e=new AbortController;return setTimeout((()=>e.abort()),this.timeoutMillis),e.signal}}}async function $(e,t){const n=7&t;try{const t=()=>e.call(this,n);return await j(this,P,R(this,P).then(t,t)),j(this,T,n),r}catch(e){return"AbortError"===e.name?5:(console.error(e),3850)}}async function F(e){if(e===R(this,T))return r;switch(R(this,T)){case 0:if(1===e)return this._NONEtoSHARED();throw new Error(`unexpected transition ${R(this,T)} -> ${e}`);case 1:switch(e){case 2:return this._SHAREDtoRESERVED();case 4:return this._SHAREDtoEXCLUSIVE();default:throw new Error(`unexpected transition ${R(this,T)} -> ${e}`)}case 2:if(4===e)return this._RESERVEDtoEXCLUSIVE();throw new Error(`unexpected transition ${R(this,T)} -> ${e}`);default:throw new Error(`unexpected transition ${R(this,T)} -> ${e}`)}}async function B(e){if(e===R(this,T))return r;switch(R(this,T)){case 4:switch(e){case 1:return this._EXCLUSIVEtoSHARED();case 0:return this._EXCLUSIVEtoNONE();default:throw new Error(`unexpected transition ${R(this,T)} -> ${e}`)}case 2:switch(e){case 1:return this._RESERVEDtoSHARED();case 0:return this._RESERVEDtoNONE();default:throw new Error(`unexpected transition ${R(this,T)} -> ${e}`)}case 1:if(0===e)return this._SHAREDtoNONE();throw new Error(`unexpected transition ${R(this,T)} -> ${e}`);default:throw new Error(`unexpected transition ${R(this,T)} -> ${e}`)}}class V extends L{constructor(e){super(),this._lockName=e+"-outer",this._reservedName=e+"-reserved"}async isSomewhereReserved(){return"exclusive"===await this._pollWebLock(this._reservedName)}async _NONEtoSHARED(){await this._acquireWebLock(this._lockName,{mode:"exclusive",signal:this._getTimeoutSignal()})}async _SHAREDtoRESERVED(){await this._acquireWebLock(this._reservedName,{mode:"exclusive",signal:this._getTimeoutSignal()})}async _RESERVEDtoSHARED(){this._releaseWebLock(this._reservedName)}async _SHAREDtoNONE(){this._releaseWebLock(this._lockName)}}function z(e,t,n){U(e,t),t.set(e,n)}function U(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function W(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,H(e,t,"get"))}function q(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,H(e,t,"set"),n),n}function H(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}let G=0;const Z=new WeakMap;
66var K=new WeakMap,X=new WeakMap,Y=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakSet;class re{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{durability:"default"};var n;U(this,n=ne),n.add(this),z(this,K,{writable:!0,value:void 0}),z(this,X,{writable:!0,value:void 0}),z(this,Y,{writable:!0,value:void 0}),z(this,Q,{writable:!0,value:null}),z(this,J,{writable:!0,value:0}),z(this,ee,{writable:!0,value:Promise.resolve()}),z(this,te,{writable:!0,value:Promise.resolve()}),q(this,X,Promise.resolve(e).then((e=>q(this,K,e)))),q(this,Y,t)}async close(){var e;const t=null!==(e=W(this,K))&&void 0!==e?e:await W(this,X);await W(this,ee),await this.sync(),t.close()}async run(e,t){const n=W(this,ee).then((()=>function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,ne,ie).call(this,e,t)));return q(this,ee,n.catch((()=>{}))),n}async sync(){await W(this,ee),await W(this,te),q(this,te,Promise.resolve())}}async function ie(e,t){var n,r;const i=null!==(n=W(this,K))&&void 0!==n?n:await W(this,X);if("readwrite"===e&&"readonly"===(null===(r=W(this,Q))||void 0===r?void 0:r.mode))q(this,Q,null);else if(performance.now()-W(this,J)>5e3){try{var o;null===(o=W(this,Q))||void 0===o||o.commit()}catch(e){if("InvalidStateError"!==e.name)throw e}await new Promise((e=>setTimeout(e))),q(this,Q,null)}for(let n=0;n<2;++n){if(!W(this,Q)){q(this,Q,i.transaction(i.objectStoreNames,e,W(this,Y)));const t=q(this,J,performance.now());q(this,te,W(this,te).then((()=>new Promise(((e,n)=>{W(this,Q).addEventListener("complete",(t=>{e(),W(this,Q)===t.target&&q(this,Q,null),Z.get(t.target)})),W(this,Q).addEventListener("abort",(e=>{console.warn("tx abort",(performance.now()-t)/1e3);const r=e.target.error;n(r),W(this,Q)===e.target&&q(this,Q,null),Z.get(e.target)}))}))))),Z.set(W(this,Q),G++)}try{const e=Object.fromEntries(Array.from(i.objectStoreNames,(e=>[e,new se(W(this,Q).objectStore(e))])));return await t(e)}catch(e){if(q(this,Q,null),n)throw e}}}function oe(e){return new Promise(((t,n)=>{e.addEventListener("success",(()=>t(e.result))),e.addEventListener("error",(()=>n(e.error)))}))}var ae=new WeakMap;class se{constructor(e){z(this,ae,{writable:!0,value:void 0}),q(this,ae,e)}get(e){return W(this,ae).name,oe(W(this,ae).get(e))}getAll(e,t){return W(this,ae).name,oe(W(this,ae).getAll(e,t))}getKey(e){return W(this,ae).name,oe(W(this,ae).getKey(e))}getAllKeys(e,t){return W(this,ae).name,oe(W(this,ae).getAllKeys(e,t))}put(e,t){return W(this,ae).name,oe(W(this,ae).put(e,t))}delete(e){return W(this,ae).name,oe(W(this,ae).delete(e))}clear(){return W(this,ae).name,oe(W(this,ae).clear())}index(e){return new le(W(this,ae).index(e))}}var ce=new WeakMap;class le{constructor(e){z(this,ce,{writable:!0,value:void 0}),q(this,ce,e)}getAllKeys(e,t){return W(this,ce).objectStore.name,W(this,ce).name,oe(W(this,ce).getAllKeys(e,t))}}function ue(e,t){fe(e,t),t.add(e)}function de(e,t,n){fe(e,t),t.set(e,n)}function fe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function he(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function pe(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,me(e,t,"get"))}function ge(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,me(e,t,"set"),n),n}function me(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}const ve={durability:"default",purge:"deferred",purgeAtLeast:16};var ye=new WeakMap,be=new WeakMap,we=new WeakMap,xe=new WeakMap,_e=new WeakMap,Se=new WeakMap,Ce=new WeakMap,Ee=new WeakSet,Oe=new WeakSet,je=new WeakSet,ke=new WeakSet,Re=new WeakSet;class Ne extends S{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wa-sqlite",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ve;super(),ue(this,Re),ue(this,ke),ue(this,je),ue(this,Oe),ue(this,Ee),de(this,ye,{writable:!0,value:void 0}),de(this,be,{writable:!0,value:new Map}),de(this,we,{writable:!0,value:void 0}),de(this,xe,{writable:!0,value:new Set}),de(this,_e,{writable:!0,value:performance.now()}),de(this,Se,{writable:!0,value:new Set}),de(this,Ce,{writable:!0,value:null}),this.name=e,ge(this,ye,Object.assign({},ve,t)),ge(this,we,new re(function(e){return new Promise(((t,n)=>{const r=globalThis.indexedDB.open(e,5);r.addEventListener("upgradeneeded",(function(){r.result.createObjectStore("blocks",{keyPath:["path","offset","version"]}).createIndex("version",["path","version"])})),r.addEventListener("success",(()=>{t(r.result)})),r.addEventListener("error",(()=>{n(r.error)}))}
66))}(e),{durability:pe(this,ye).durability}))}async close(){var e;for(const e of pe(this,be).keys())await this.xClose(e);await(null===(e=pe(this,we))||void 0===e?void 0:e.close()),ge(this,we,null)}xOpen(e,t,n,i){var o;const a=this.handleAsync((async()=>{null===e&&(e=`null_${t}`),t.toString(16),n.toString(16);try{const o=new URL(e,"http://localhost/"),a={path:o.pathname,flags:n,block0:null,isMetadataChanged:!0,locks:new V(o.pathname)};return pe(this,be).set(t,a),await pe(this,we).run("readwrite",(async e=>{let{blocks:t}=e;if(a.block0=await t.get(he(this,ke,De).call(this,a,0)),!a.block0){if(!(n&d))throw new Error(`file not found: ${a.path}`);a.block0={path:a.path,offset:0,version:0,data:new Uint8Array(0),fileSize:0},t.put(a.block0)}})),!i.buffer.detached&&i.buffer.byteLength||(i=new DataView(new ArrayBuffer(4)),ge(this,Ce,(e=>{e.setInt32(0,i.getInt32(0,!0),!0)}))),i.setInt32(0,1&n,!0),r}catch(e){return console.error(e),14}}));return null===(o=pe(this,Ce))||void 0===o||o.call(this,i),ge(this,Ce,null),a}xClose(e){return this.handleAsync((async()=>{try{const t=pe(this,be).get(e);return t&&(t.path,pe(this,be).delete(e),8&t.flags&&pe(this,we).run("readwrite",(e=>{let{blocks:n}=e;n.delete(IDBKeyRange.bound([t.path],[t.path,[]]))}))),r}catch(e){return console.error(e),i}}))}xRead(e,t,n){var o;const a=t.byteLength,s=this.handleAsync((async()=>{const o=pe(this,be).get(e);o.path,t.byteLength;try{return await pe(this,we).run("readonly",(async e=>{let{blocks:i}=e;!t.buffer.detached&&t.buffer.byteLength||(t=new Uint8Array(a),ge(this,Ce,(e=>e.set(t))));let s=0;for(;s<t.byteLength;){const e=n+s,r=e<o.block0.data.byteLength?o.block0:await i.get(he(this,ke,De).call(this,o,-e));if(!r||r.data.byteLength-r.offset<=e)return t.fill(0,s),522;const a=t.subarray(s),c=e+r.offset,l=Math.min(Math.max(r.data.byteLength-c,0),a.byteLength);a.set(r.data.subarray(c,c+l)),s+=l}return r}))}catch(e){return console.error(e),i}}));return null===(o=pe(this,Ce))||void 0===o||o.call(this,t),ge(this,Ce,null),s}xWrite(e,t,n){const r=pe(this,Se).has(e);if(r||performance.now()-pe(this,_e)>3e3){const i=this.handleAsync((async()=>{this.handleAsync!==super.handleAsync&&pe(this,Se).add(e),await new Promise((e=>setTimeout(e)));const r=he(this,Ee,Te).call(this,e,t.slice(),n);return ge(this,_e,performance.now()),r}));return r&&pe(this,Se).delete(e),i}return he(this,Ee,Te).call(this,e,t,n)}xTruncate(e,t){const n=pe(this,be).get(e);n.path;try{Object.assign(n.block0,{fileSize:t,data:n.block0.data.slice(0,t)});const e=Object.assign({},n.block0);return pe(this,we).run("readwrite",(r=>{let{blocks:i}=r;i.delete(he(this,ke,De).call(this,n,-1/0,-t)),i.put(e)})),r}catch(e){return console.error(e),i}}xSync(e,t){const n=pe(this,Se).has(e);if(n||"relaxed"!==pe(this,ye).durability||performance.now()-pe(this,_e)>3e3){const r=this.handleAsync((async()=>{this.handleAsync!==super.handleAsync&&pe(this,Se).add(e);const n=await he(this,Oe,Ae).call(this,e,t);return ge(this,_e,performance.now()),n}));return n&&pe(this,Se).delete(e),r}return pe(this,be).get(e).path,r}xFileSize(e,t){const n=pe(this,be).get(e);return n.path,t.setBigInt64(0,BigInt(n.block0.fileSize),!0),r}xLock(e,t){return this.handleAsync((async()=>{const n=pe(this,be).get(e);n.path;try{const e=await n.locks.lock(t);return e===r&&1===n.locks.state&&(n.block0=await pe(this,we).run("readonly",(e=>{let{blocks:t}=e;return t.get(he(this,ke,De).call(this,n,0))}))),e}catch(e){return console.error(e),i}}))}xUnlock(e,t){return this.handleAsync((async()=>{const n=pe(this,be).get(e);n.path;try{return n.locks.unlock(t)}catch(e){return console.error(e),i}}))}xCheckReservedLock(e,t){var n;const i=this.handleAsync((async()=>{const n=pe(this,be).get(e);n.path;const i=await n.locks.isSomewhereReserved();return!t.buffer.detached&&t.buffer.byteLength||(t=new DataView(new ArrayBuffer(4)),ge(this,Ce,(e=>{e.setInt32(0,t.getInt32(0,!0),!0)}))),t.setInt32(0,i?1:0,!0),r}));return null===(n=pe(this,Ce))||void 0===n||n.call(this,t),ge(this,Ce,null),i}xSectorSize(e){return 512}xDeviceCharacteristics(e){return 19968}xFileControl(e,t,n){const o=pe(this,be).get(e);switch(o.path,t){case 11:return o.overwrite=!0,r;case 21:if(o.overwrite)try{return this.handleAsync((async()=>(await he(this,Re,Ie).call(this,o),r)))}catch(e){return console.error(e),i}if(o.isMetadataChanged)try{pe(this,we).run("readwrite",(async e=>{let{blocks:t}=e;await t.put(o.block0)})),o.isMetadataChanged=!1}catch(e){return console.error(e),i}return r;case 22:return o.overwrite=!1,r;case 31:return this.handleAsync((async()=>{try{return o.block0.version--,o.changedPages=new Set,pe(this,we).run("readwrite",(async e=>{let{blocks:t}=e;const n=await t.index("version").getAllKeys(IDBKeyRange.bound([o.path],[o.path,o.block0.version]
66));for(const e of n)t.delete(e)})),r}catch(e){return console.error(e),i}}));case 32:try{const e=Object.assign({},o.block0);e.data=e.data.slice();const t=o.changedPages;return o.changedPages=null,o.isMetadataChanged=!1,pe(this,we).run("readwrite",(async n=>{var r;let{blocks:i}=n;i.put(e);const a=null!==(r=await i.get([o.path,"purge",0]))&&void 0!==r?r:{path:o.path,offset:"purge",version:0,data:new Map,count:0};a.count+=t.size;for(const n of t)a.data.set(n,e.version);i.put(a),he(this,je,Pe).call(this,o.path,a.count)})),r}catch(e){return console.error(e),i}case 33:return this.handleAsync((async()=>{try{return o.changedPages=null,o.isMetadataChanged=!1,o.block0=await pe(this,we).run("readonly",(e=>{let{blocks:t}=e;return t.get([o.path,0,o.block0.version+1])})),r}catch(e){return console.error(e),i}}));default:return 12}}xAccess(e,t,n){var o;const a=this.handleAsync((async()=>{try{const t=new URL(e,"file://localhost/").pathname,i=await pe(this,we).run("readonly",(e=>{let{blocks:n}=e;return n.getKey(he(this,ke,De).call(this,{path:t},0))}));return!n.buffer.detached&&n.buffer.byteLength||(n=new DataView(new ArrayBuffer(4)),ge(this,Ce,(e=>{e.setInt32(0,n.getInt32(0,!0),!0)}))),n.setInt32(0,i?1:0,!0),r}catch(e){return console.error(e),i}}));return null===(o=pe(this,Ce))||void 0===o||o.call(this,n),ge(this,Ce,null),a}xDelete(e,t){return this.handleAsync((async()=>{const n=new URL(e,"file://localhost/").pathname;try{return pe(this,we).run("readwrite",(e=>{let{blocks:t}=e;return t.delete(IDBKeyRange.bound([n],[n,[]]))})),t&&await pe(this,we).sync(),r}catch(e){return console.error(e),i}}))}async purge(e){Date.now(),await pe(this,we).run("readwrite",(async t=>{let{blocks:n}=t;const r=await n.get([e,"purge",0]);if(r){for(const[t,i]of r.data)n.delete(IDBKeyRange.bound([e,t,i],[e,t,1/0],!0,!1));await n.delete([e,"purge",0])}null==r||r.data.size,Date.now()}))}}function Te(e,t,n){const o=pe(this,be).get(e);o.path,t.byteLength;try{const e=o.block0.fileSize;o.block0.fileSize<n+t.byteLength&&(o.block0.fileSize=n+t.byteLength,o.isMetadataChanged=!0);const i=0===n?o.block0:{path:o.path,offset:-n,version:o.block0.version,data:null};return i.data=t.slice(),o.changedPages?(e===o.block0.fileSize&&o.changedPages.add(-n),0!==n&&pe(this,we).run("readwrite",(e=>{let{blocks:t}=e;return t.put(i)}))):pe(this,we).run("readwrite",(e=>{let{blocks:t}=e;return t.put(i)})),o.isMetadataChanged=0!==n&&o.isMetadataChanged,r}catch(e){return console.error(e),i}}async function Ae(e,t){const n=pe(this,be).get(e);n.path;try{n.isMetadataChanged&&(pe(this,we).run("readwrite",(async e=>{let{blocks:t}=e;await t.put(n.block0)})),n.isMetadataChanged=!1),await pe(this,we).sync()}catch(e){return console.error(e),i}return r}function Pe(e,t){"manual"===pe(this,ye).purge||pe(this,xe).has(e)||t<pe(this,ye).purgeAtLeast||(globalThis.requestIdleCallback?globalThis.requestIdleCallback((()=>{this.purge(e),pe(this,xe).delete(e)})):setTimeout((()=>{this.purge(e),pe(this,xe).delete(e)})),pe(this,xe).add(e))}function De(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=!t||-t<e.block0.data.length?-1/0:e.block0.version;return IDBKeyRange.bound([e.path,t,r],[e.path,n,1/0])}async function Ie(e){const t=e.block0.data.length;if(t<18)return;const n=new DataView(e.block0.data.buffer,e.block0.data.byteOffset);let r=n.getUint16(16);if(1===r&&(r=65536),r===t)return;const i=Math.max(t,r),o=i/t,a=i/r,s=n.getUint32(28)*r,c=e.block0.version;await pe(this,we).run("readwrite",(async t=>{let{blocks:n}=t;const l=await n.index("version").getAllKeys(IDBKeyRange.bound([e.path,c+1],[e.path,1/0]));for(const e of l)n.delete(e);n.delete([e.path,"purge",0]);for(let t=0;t<s;t+=i){const l=await n.getAll(IDBKeyRange.lowerBound([e.path,-(t+i),1/0]),o);for(const e of l)n.delete([e.path,e.offset,e.version]);if(1===a){const i=new Uint8Array(r);for(const e of l)i.set(e.data,-(t+e.offset));const o={path:e.path,offset:-t,version:c,data:i};0===o.offset&&(o.fileSize=s,e.block0=o),n.put(o)}else{const i=l[0];for(let o=0;o<a;++o){const a=-(t+o*r);if(-a>=s)break;const l={path:i.path,offset:a,version:c,data:i.data.subarray(o*r,(o+1)*r)};0===l.offset&&(l.fileSize=s,e.block0=l),n.put(l)}}}}))}var Me=n(3282);const Le={wasmMemorySize:32833536,cacheSize:-16e3};async function $e(e,t){var i;const S={...Le,...t}
66,C="object"==typeof process&&void 0!==S.wasmLocation?{locateFile:e=>`${S.wasmLocation}${e}`}:{},E=await async function(e){const{default:t}=await n.e(1).then(n.bind(n,5025));if("object"==typeof process){const n=globalThis.importScripts;globalThis.importScripts=function(){};const r=await t(e);return globalThis.importScripts=n,r}return t(e)}(C);E._free(E._malloc(S.wasmMemorySize));const O=function(e){const t={},n=e._getSqliteFree(),i=e._malloc(8),f=[i,i+4];function S(t){if("string"!=typeof t)return 0;const n=e.lengthBytesUTF8(t),r=e._sqlite3_malloc(n+1);return e.stringToUTF8(t,r,n+1),r}function C(e,t){return BigInt(t)<<32n|0xffffffffn&BigInt(e)}const E=function(){const e=BigInt(Number.MAX_SAFE_INTEGER)>>32n,t=BigInt(Number.MIN_SAFE_INTEGER)>>32n;return function(n,r){return r>e||r<t?C(n,r):4294967296*r+(2147483647&n)-(2147483648&n)}}(),O=new Set;function j(e){if(!O.has(e))throw new w("not a database",o)}const k=new Map;function R(e){if(!k.has(e))throw new w("not a statement",o)}t.bind_collection=function(e,n){R(e);const i=Array.isArray(n),o=t.bind_parameter_count(e);for(let r=1;r<=o;++r){const o=n[i?r-1:t.bind_parameter_name(e,r)];void 0!==o&&t.bind(e,r,o)}return r},t.bind=function(e,n,r){switch(R(e),typeof r){case"number":return r===(0|r)?t.bind_int(e,n,r):t.bind_double(e,n,r);case"string":return t.bind_text(e,n,r);default:return r instanceof Uint8Array||Array.isArray(r)?t.bind_blob(e,n,r):null===r?t.bind_null(e,n):"bigint"==typeof r?t.bind_int64(e,n,r):void 0===r?s:(console.warn("unknown binding converted to null",r),t.bind_null(e,n))}},t.bind_blob=function(){const t="sqlite3_bind_blob",r=e.cwrap(t,..._("nnnnn:n"));return function(i,o,a){var s;R(i);const c=null!==(s=a.byteLength)&&void 0!==s?s:a.length,l=e._sqlite3_malloc(c);e.HEAPU8.subarray(l).set(a);const u=r(i,o,l,c,n);return A(t,u,k.get(i))}}(),t.bind_parameter_count=function(){const t=e.cwrap("sqlite3_bind_parameter_count",..._("n:n"));return function(e){return R(e),t(e)}}(),t.bind_double=function(){const t="sqlite3_bind_double",n=e.cwrap(t,..._("nnn:n"));return function(e,r,i){R(e);const o=n(e,r,i);return A(t,o,k.get(e))}}(),t.bind_int=function(){const t="sqlite3_bind_int",n=e.cwrap(t,..._("nnn:n"));return function(e,r,i){if(R(e),i>2147483647||i<-2147483648)return a;const o=n(e,r,i);return A(t,o,k.get(e))}}(),t.bind_int64=function(){const t="sqlite3_bind_int64",n=e.cwrap(t,..._("nnnn:n"));return function(e,r,i){if(R(e),i>y||i<b)return a;const o=i>>32n,s=n(e,r,Number(0xffffffffn&i),Number(o));return A(t,s,k.get(e))}}(),t.bind_null=function(){const t="sqlite3_bind_null",n=e.cwrap(t,..._("nn:n"));return function(e,r){R(e);const i=n(e,r);return A(t,i,k.get(e))}}(),t.bind_parameter_name=function(){const t=e.cwrap("sqlite3_bind_parameter_name",..._("n:s"));return function(e,n){return R(e),t(e,n)}}(),t.bind_text=function(){const t="sqlite3_bind_text",r=e.cwrap(t,..._("nnnnn:n"));return function(e,i,o){R(e);const a=S(o),s=r(e,i,a,-1,n);return A(t,s,k.get(e))}}(),t.changes=function(){const t=e.cwrap("sqlite3_changes",..._("n:n"));return function(e){return j(e),t(e)}}(),t.close=function(){const t="sqlite3_close",n=e.cwrap(t,..._("n:n"),{async:x});return async function(e){j(e);const r=await n(e);return O.delete(e),A(t,r,e)}}(),t.column=function(n,r){R(n);const i=t.column_type(n,r);switch(i){case m:return t.column_blob(n,r);case p:return t.column_double(n,r);case h:const o=t.column_int(n,r),a=e.getTempRet0();return E(o,a);case v:return null;case g:return t.column_text(n,r);default:throw new w("unknown type",i)}},t.column_blob=function(){const n=e.cwrap("sqlite3_column_blob",..._("nn:n"));return function(r,i){R(r);const o=t.column_bytes(r,i),a=n(r,i);return e.HEAPU8.subarray(a,a+o)}}(),t.column_bytes=function(){const t=e.cwrap("sqlite3_column_bytes",..._("nn:n"));return function(e,n){return R(e),t(e,n)}}(),t.column_count=function(){const t=e.cwrap("sqlite3_column_count",..._("n:n"));return function(e){return R(e),t(e)}}(),t.column_double=function(){const t=e.cwrap("sqlite3_column_double",..._("nn:n"));return function(e,n){return R(e),t(e,n)}}(),t.column_int=function(){const t=e.cwrap("sqlite3_column_int64",..._("nn:n"));return function(e,n){return R(e),t(e,n)}}(),t.column_int64=function(){const t=e.cwrap("sqlite3_column_int64",..._("nn:n"));return function(n,r){return R(n),C(t(n,r),e.getTempRet0())}}(),t.column_name=function(){const t=e.cwrap("sqlite3_column_name",..._("nn:s"));return function(e,n){return R(e),t(e,n)}}(),t.column_names=function(e){const n=[],r=t.column_count(e);for(let i=0;i<r;++i)n.push(t.column_name(e,i));return n},t.column_text=function(){const t=e.cwrap("sqlite3_column_text",..._("nn:s"));return function(e,n){return R(e),t(e,n)}}(),t.column_type=function(){const t=e.cwrap("sqlite3_column_type",..._("nn:n"));return function(e,n){return R(e),t(e,n)}}(),t.create_function=function(t,n,r,i,a,s,c,l){if(j(t),s&&!c&&!l)return A("sqlite3_create_function",e.createFunction(t,n,r,i,a,s),t);if(!s&&c&&l)return A("sqlite3_create_function",e.createAggregate(t,n,r,i,a,c,l),t);throw new w("invalid function combination",o)},t.create_module=function(t,n,r,i){return j(t),A("sqlite3_create_module",e.createModule(t,n,r,i),t)},t.data_count=function(){const t=e.cwrap("sqlite3_data_count",..._("n:n"));return function(e){return R(e),t(e)}}(),t.declare_vtab=function(){const t=e.cwrap("sqlite3_declare_vtab",..._("ns:n"));return function(e,n){return A("sqlite3_declare_vtab",t(e,n))}}(),t.exec=async function(e,n,i){for await(const r of t.statements(e,n)){let e;for(;await t.step(r)===c;)if(i){var o;e=null!==(o=e)&&void 0!==o?o:t.column_names(r);const n=t.row(r);await i(n,e)}}return r},t.finalize=function(){const t=e.cwrap("sqlite3_finalize",..._("n:n"),{async:x});return async function(e){if(!k.has(e))return o;const n=await t(e);return k.get(e),k.delete(e),n}}(),t.get_autocommit=function(){const t=e.cwrap("sqlite3_get_autocommit",..._("n:n"));return function(e){return t(e)}}(),t.libversion=function(){const t=e.cwrap("sqlite3_libversion",..._(":s"));return function(){return t()}}(),t.libversion_number=function(){const t=e.cwrap("sqlite3_libversion_number",..._(":n"));return function(){return t()}}(),t.limit=function(){const t=e.cwrap("sqlite3_limit",..._("nnn:n"));return function(e,n,r){return t(e,n,r)}}(),t.open_v2=function(){const t="sqlite3_open_v2",n=e.cwrap(t,..._("snnn:n"),{async:x});return async function(r,i,o){i=i||d|u,o=S(o);const a=await n(r,f[0],i,o),s=e.getValue(f[0],"*");return O.add(s),e._sqlite3_free(o),e.ccall("RegisterExtensionFunctions","void",["number"],[s]),A(t,a),s}}(),t.prepare_v2=function(){const t="sqlite3_prepare_v2",n=e.cwrap(t,..._("nnnnn:n"),{async:x});return async function(r,i){const o=await n(r,i,-1,f[0],f[1]);A(t,o,r);const a=e.getValue(f[0],"*");return a?(k.set(a,r),{stmt:a,sql:e.getValue(f[1],"*")}):null}}(),t.progress_handler=function(t,n,r,i){j(t),e.progressHandler(t,n,r,i)},t.reset=function(){const t="sqlite3_reset",n=e.cwrap(t,..._("n:n"),{async:x});return async function(e){R(e);const r=await n(e);return A(t,r,k.get(e))}}(),t.result=function(e,n){switch(typeof n){case"number":n===(0|n)?t.result_int(e,n):t.result_double(e,n);break;case"string":t.result_text(e,n);break;default:if(n instanceof Uint8Array||Array.isArray(n))t.result_blob(e,n);else if(null===n)t.result_null(e);else{if("bigint"==typeof n)return t.result_int64(e,n);console.warn("unknown result converted to null",n),t.result_null(e)}}},t.result_blob=function(){const t=e.cwrap("sqlite3_result_blob",..._("nnnn:n"));return function(r,i){var o;const a=null!==(o=i.byteLength)&&void 0!==o?o:i.length,s=e._sqlite3_malloc(a);e.HEAPU8.subarray(s).set(i),t(r,s,a,n)}}(),t.result_double=function(){const t=e.cwrap("sqlite3_result_double",..._("nn:n"));return function(e,n){t(e,n)}}(),t.result_int=function(){const t=e.cwrap("sqlite3_result_int",..._("nn:n"));return function(e,n){t(e,n)}}(),t.result_int64=function(){const t=e.cwrap("sqlite3_result_int64",..._("nnn:n"));return function(e,n){if(n>y||n<b)return a;const r=n>>32n;t(e,Number(0xffffffffn&n),Number(r))}}(),t.result_null=function(){const t=e.cwrap("sqlite3_result_null",..._("n:n"));return function(e){t(e)}}(),t.result_text=function(){const t=e.cwrap("sqlite3_result_text",..._("nnnn:n"));return function(e,r){const i=S(r);t(e,i,-1,n)}}(),t.row=function(n){const r=[],i=t.data_count(n);for(let o=0;o<i;++o){const i=t.column(n,o);
66r.push((null==i?void 0:i.buffer)===e.HEAPU8.buffer?i.slice():i)}return r},t.set_authorizer=function(t,n,r){return j(t),A("sqlite3_set_authorizer",e.setAuthorizer(t,n,r),t)},t.sql=function(){const t=e.cwrap("sqlite3_sql",..._("n:s"));return function(e){return R(e),t(e)}}(),t.statements=function(e,n){return async function*(){const r=t.str_new(e,n);let i={stmt:null,sql:t.str_value(r)};try{for(;i=await t.prepare_v2(e,i.sql);)yield i.stmt,t.finalize(i.stmt),i.stmt=null}finally{var o;null!==(o=i)&&void 0!==o&&o.stmt&&t.finalize(i.stmt),t.str_finish(r)}}()},t.step=function(){const t="sqlite3_step",n=e.cwrap(t,..._("n:n"),{async:x});return async function(e){R(e);const r=await n(e);return A(t,r,k.get(e),[c,l])}}();let N=0;const T=new Map;function A(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if((arguments.length>3&&void 0!==arguments[3]?arguments[3]:[r]).includes(n))return n;const o=i?e.ccall("sqlite3_errmsg","string",["number"],[i]):t;throw new w(o,n)}return t.str_new=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=e.lengthBytesUTF8(n),i=4294967295&N++,o={offset:e._sqlite3_malloc(r+1),bytes:r};return T.set(i,o),e.stringToUTF8(n,o.offset,o.bytes+1),i},t.str_appendall=function(t,n){if(!T.has(t))throw new w("not a string",o);const r=T.get(t),i=e.lengthBytesUTF8(n),a=r.bytes+i,s=e._sqlite3_malloc(a+1);e.HEAPU8.subarray(s,s+a+1).set(e.HEAPU8.subarray(r.offset,r.offset+r.bytes)),e.stringToUTF8(n,s+r.bytes,i+1),e._sqlite3_free(r.offset),r.offset=s,r.bytes=a,T.set(t,r)},t.str_finish=function(t){if(!T.has(t))throw new w("not a string",o);const n=T.get(t);T.delete(t),e._sqlite3_free(n.offset)},t.str_value=function(e){if(!T.has(e))throw new w("not a string",o);return T.get(e).offset},t.user_data=function(t){return e.getFunctionUserData(t)},t.value=function(n){const r=t.value_type(n);switch(r){case m:return t.value_blob(n);case p:return t.value_double(n);case h:const i=t.value_int(n),o=e.getTempRet0();return E(i,o);case v:return null;case g:return t.value_text(n);default:throw new w("unknown type",r)}},t.value_blob=function(){const n=e.cwrap("sqlite3_value_blob",..._("n:n"));return function(r){const i=t.value_bytes(r),o=n(r);return e.HEAPU8.subarray(o,o+i)}}(),t.value_bytes=function(){const t=e.cwrap("sqlite3_value_bytes",..._("n:n"));return function(e){return t(e)}}(),t.value_double=function(){const t=e.cwrap("sqlite3_value_double",..._("n:n"));return function(e){return t(e)}}(),t.value_int=function(){const t=e.cwrap("sqlite3_value_int64",..._("n:n"));return function(e){return t(e)}}(),t.value_int64=function(){const t=e.cwrap("sqlite3_value_int64",..._("n:n"));return function(n){return C(t(n),e.getTempRet0())}}(),t.value_text=function(){const t=e.cwrap("sqlite3_value_text",..._("n:s"));return function(e){return t(e)}}(),t.value_type=function(){const t=e.cwrap("sqlite3_value_type",..._("n:n"));return function(e){return t(e)}}(),t.vfs_register=function(t,n){return A("sqlite3_vfs_register",e.registerVFS(t,n))},t}(E);":memory:"!==e&&O.vfs_register(new Ne("idb-batch-atomic",{durability:"strict"}));const j=await O.open_v2(e,d|u|f,":memory:"===e?void 0:"idb-batch-atomic"),k=[`PRAGMA cache_size=${S.cacheSize}`,...null!==(i=S.additionalPragmas)&&void 0!==i?i:[]];for await(const e of k)await O.exec(j,e);return new Fe(O,j)}class Fe{constructor(e,t){this.api=e,this.db=t,this.queue={},this.stmtCache=new Be(100,(e=>this.finalizeStatements(e))),this.version="1"}changeVersion(){throw new Error("'changeVersion' API is not implemented")}readTransaction(e,t,n){this.serialize("transaction",(async()=>{try{await e(this),null==n||n()}catch(e){null==t||t(this.asSqlError(e))}})).then((()=>{}),(()=>{}))}transaction(e,t,n){this.serialize("transaction",(async()=>{await this.executeInternal("BEGIN");try{await e(this),await this.executeInternal("COMMIT"),null==n||n()}catch(e){await this.executeInternal("ROLLBACK"),null==t||t(this.asSqlError(e))}})).then((()=>{}),(()=>{}))}executeSql(e,t,n,r){this.executeInternal(e.toString(),t).then((e=>null==n?void 0:n(this,e))).catch((e=>null==r?void 0:r(this,this.asSqlError(e))))}async executeInternal(e,t){return this.serialize("exec",(async()=>{const n=[];for await(const{stmt:r,cols:i}of this.prepareStatements(e)){if(t){await this.api.reset(r);for(let e=0;e<t.length;e++){const n=t[e];this.api.bind(r,e+1,"boolean"==typeof n?n?1:0:n)}}for(;await this.api.step(r)===c;){const e={};for(let t=0;t<i.length;t++)e[(0,Me.ensure)(i[t])]=this.api.column(r,t);n.push(e)}}return function(t,n,r){return/^\s*UPDATE\b/i.test(e)?t=0:/^\s*CREATE\s+TABLE\b/i.test(e)||/^\s*DROP\s+TABLE\b/i.test(e)?(t=0,n=0):/^\s*INSERT\b/i.test(e)||(t=0),{insertId:t,rowsAffected:n,rows:{length:r.length,item:e=>r[e]}}}(0,this.api.changes(this.db),n)}))}prepareStatements(e){const t=this;return async function*(){const n=t.stmtCache.get(e);if(void 0!==n)for await(const e of n)yield e;else{const n=[];let r=0;const i=t.api.str_new(t.db,e);try{let o={stmt:0,sql:t.api.str_value(i)};for(;o=await t.api.prepare_v2(t.db,o.sql);){r=o.stmt;
66const e={stmt:r,cols:t.api.column_names(r)};n.push(e),yield e,r=0}await t.stmtCache.put(e,n)}finally{t.api.str_finish(i),r>0&&(await t.api.finalize(r),await t.finalizeStatements(n))}}}()}async finalizeStatements(e){await Promise.all(e.map((async({stmt:e})=>this.api.finalize(e))))}async serialize(e,t){var n;const r=(null!==(n=this.queue[e])&&void 0!==n?n:Promise.resolve()).then((()=>t()));return this.queue[e]=r.catch((()=>{})),r}asSqlError(e){return"string"==typeof e.message&&"number"==typeof e.code?e:{message:e.toString(),code:0}}}class Be{constructor(e,t){this.maxSize=e,this.cleanUpFn=t,this.counter=0,this.size=0,this.map={}}get(e){const t=this.map[e];return void 0!==t&&(t.lastUsed=this.counter++),null==t?void 0:t.value}async put(e,t){var n;if(this.size===this.maxSize){const[e,t]=Object.entries(this.map).reduce((([e,t],[n,r])=>t.lastUsed<r.lastUsed?[e,t]:[n,r]));await(null===(n=this.cleanUpFn)||void 0===n?void 0:n.call(this,t.value)),delete this.map[e],this.size--}this.size++,this.map[e]={value:t,lastUsed:this.counter++}}}},7754:(e,t,n)=>{n.d(t,{Fe:()=>o,Rj:()=>i,YW:()=>a});var r=n(9120);function i([e,t]){return a.inside(((n,r,i)=>{n.executeSql(e,t,((e,t)=>{const n=[];for(let e=0;e<t.rows.length;e++)n.push(t.rows.item(e));r(n)}),((e,t)=>(i(t),!0)))}))}function o(e){return a.inside(((t,n,r)=>{if(0===e.length)return void n([]);const i=[];e.forEach((([o,a])=>t.executeSql(o,a,((t,r)=>{const o=[];for(let e=0;e<r.rows.length;e++)o.push(r.rows.item(e));i.push(o),i.length===e.length&&n(i)}),((e,t)=>(r(t),!0)))))}))}class a{constructor(){this.work=[]}chain(e){const t=new a;return t.work.push(...this.work,{action:!1,item:e}),t}async read(e){var t;return(null!==(t=e.original)&&void 0!==t?t:e)instanceof r.B?this.executeWithPromise(((t,n)=>e.readTransaction(t,n))):this.execute(((t,n)=>e.readTransaction(t,n)))}async write(e){var t;return(null!==(t=e.original)&&void 0!==t?t:e)instanceof r.B?this.executeWithPromise(((t,n)=>e.transaction(t,n))):this.execute(((t,n)=>e.transaction(t,n)))}async execute(e){return new Promise(((t,n)=>e((e=>this.processTransaction(e,t,n)),n)))}async executeWithPromise(e){return new Promise(((t,n)=>e((e=>new Promise(((t,n)=>{this.processTransaction(e,t,n)})).then(t,(e=>{throw n(e),e}))),n)))}processTransaction(e,t,n){const r=Array.from(this.work);!function i(o){if(o instanceof Promise)return void o.then(i,n);o instanceof a&&(r.unshift(...o.work),o=void 0);const s=r.shift();if(s)try{if(s.action)s.item(e,i,n);else{i(s.item(o))}}catch(e){n(e)}else t(o)}(e)}static inside(e){const t=new a;return t.work.push({action:!0,item:e}),t}}},6297:(e,t,n)=>{n.d(t,{Jw:()=>a,qf:()=>i,sA:()=>o,tt:()=>s});const r=new Set;function i(e){e.forEach((e=>r.add(e)))}function o(e){e.forEach((e=>r.delete(e)))}function a(){r.clear()}function s(e){return r.has(e)}},6596:(e,t,n)=>{n.d(t,{AF:()=>h,GA:()=>v,LV:()=>p,NW:()=>f,_x:()=>w,as:()=>m,fc:()=>l,mR:()=>d,pw:()=>b,rJ:()=>y,yP:()=>g});var r=n(3282),i=n(7613),o=n(4037),a=n(7754),s=n(3354),c=n(8609);function l(e){const t=(0,r.ensure)((0,o.getEntityMeta)(e.objectType)),n=Object.entries(e.attributes).filter((([e,n])=>{var r;return(null===(r=t.attributes[e])||void 0===r?void 0:r.isSyncable)&&!n.readonly})).map((([e,t])=>({[e]:{value:t.value}})));return Object.assign({},...n)}const u="GUID:",d=6e4;function f(){return u+(0,i.newId)()}function h(e){return!e.startsWith(u)}const p=(0,r.indexByKey)((e=>e.guid)),g=(0,r.indexByKey)((e=>e.getGuid()));function m(e,t){const n=(0,s.L5)(t),i=(0,s.sT)(c.rV);return(0,a.Fe)([n,i]).chain((([n,i=[]])=>{const o=parseInt((0,r.ensure)(i[0])[c.z1],10);return Array.from({length:t},((t,n)=>{const r=Math.round(1e4*Math.random());return`${e}:${o-n}:${r}`}))}))}function v(e){return e[`${c.c1}.${c.vK}`]}function y(e){const t=Object.keys(e.attributes).map((t=>{var n;return{[t]:{value:null===(n=e.attributes[t])||void 0===n?void 0:n.value}}}));return Object.assign({},...t)}function b(e){var t;const{attributes:n}=e;return["FileID","HasContents","Size"].every((e=>e in n))&&Boolean(parseInt((null===(t=n.HasContents)||void 0===t?void 0:t.value)||"0",10))}function w(e,t){const n=o(e),r=o(t),i=[];
66for(const[e,t]of n){if(!r.has(e)){i.push(e);continue}const n=r.get(e);for(const[r,o]of t){const t=n.get(r);if(t&&t!==o){i.push(e);break}}}return new Set(i);function o(e){return new Map(e.map((e=>[e.objectType,new Map(Object.entries(e.attributes).map((([e,{type:t}])=>[e,t])))])))}}},4802:(e,t,n)=>{n.d(t,{I:()=>l,O:()=>u});var r=n(3282),i=n(234),o=n(8609),a=n(6304),s=n(1070);const c=999;function l(e){const t=[];for(let n=0;n<e.length;n+=c)t.push(e.slice(n,n+c));return t}function u(e,t){switch(e.type){case"attribute":return{type:"Boolean"===e.attributeType||"DateTime"===e.attributeType?"int":"string",expr:`${t}.[${"id"!==e.attribute?(0,a.Q2)(e.attribute):"guid"}]`,params:[]};case"value":const n=e.isGuid?(0,s.u)(e.value):(0,a.hO)(e.value);return null===n?{type:"null",expr:"NULL",params:[]}:{type:"number"==typeof n?"int":"string",expr:"?",params:[n]};case"function":const c=e.parameters.map((e=>u(e,t)));switch(e.name){case"true":return d;case"false":return f;case"not":{const e=h((0,r.ensure)(c[0]));return{type:"int",expr:`(not ${e.expr})`,params:e.params}}case"or":case"and":{const t=c.map(h);return{type:"int",expr:"("+t.map((e=>e.expr)).join(` ${e.name} `)+")",params:g(...t)}}case"=":case"!=":case">":case">=":case"<":case"<=":{let[t,n]=c.some((e=>"int"===e.type))?c.map(p):c;const i="="===e.name?"is":"!="===e.name?"is not":e.name;return t=(0,r.ensure)(t),n=(0,r.ensure)(n),{type:"int",expr:`(${t.expr} ${i} ${n.expr})`,params:g(t,n)}}case"contains":case"starts-with":case"ends-with":{const t=(0,r.ensure)(c[0]),n=(0,r.ensure)(c[1]);if("null"===n.type)return d;if("null"===t.type)return f;const i=(0,a.rx)(n.expr,"~"),s="starts-with"===e.name?`${i} || '${o.Xz}'`:"ends-with"===e.name?`'${o.Xz}' || ${i}`:`'${o.Xz}' || ${i} || '${o.Xz}'`;return{type:"int",expr:`(${t.expr} like ${s} escape '~')`,params:t.params.concat(n.params)}}case"length":case"string-length":const t=(0,r.ensure)(c[0]);return"null"===t.type?f:{type:"int",expr:`length(${t.expr})`,params:t.params};case"in":const n=(0,r.ensure)(c[0]),s=(0,r.ensure)(c[1]);if(!Array.isArray(s.params[0]))throw new i.AssertionError("'in' function expect array of values");return{type:"string",expr:`${n.expr} in (${new Array(s.params[0].length).fill("?").join(",")})`,params:s.params[0]};default:throw new i.AssertionError(`Operator ${e.name} is not yet supported`)}case"association":const l=e.associationPath.split("/")[0];return{type:"string",expr:`${t}.[${(0,a.Q2)(l)}]`,params:[]}}}const d={type:"int",expr:"1",params:[]},f={type:"int",expr:"0",params:[]};function h(e){return"null"===e.type?{type:"int",expr:"0",params:[]}:e}function p(e){return"string"===e.type?{type:"int",expr:`cast(${e.expr} as integer)`,params:e.params}:e}function g(...e){return[].concat(...e.map((e=>e.params)))}},9505:(e,t,n)=>{n.d(t,{Sp:()=>f,UV:()=>s,VB:()=>d,ZI:()=>c,cU:()=>l});var r=n(4037),i=n(8609),o=n(6304),a=n(4337);function s(e){return[u(),...e.map((e=>function(e){const t=(0,r.getAttributesMeta)(e).map((e=>({name:(0,o.Q2)(e.name),type:f(e.type)}))).concat({name:i.vK,type:"text"});return d((0,a.toUserScopedName)((0,o.Q2)(e)),t,i.vK)}(e)))]}function c(e){const t=[{name:i.AU,type:"text"},{name:i.z1,type:"text"}],n=d(i.IX,t,i.AU),r={[i.EK]:e.toString(),[i.rV]:"0",[(0,a.toUserScopedName)(i.Zf)]:"[]"};return[n,...Object.entries(r).map((([e,t])=>[`INSERT OR IGNORE INTO "${i.IX}" (name, value) VALUES (?,?)`,[e,t]]))]}function l(){const e=[{name:i.vK,type:"text"},{name:i.RG,type:"text"}];return d((0,a.toUserScopedName)(i.qI),e,i.vK)}function u(){const e=[{name:i.vK,type:"text"},{name:i.wu,type:"text"},{name:i.RG,type:"text"},{name:i.Cm,type:"text"}];return d((0,a.toUserScopedName)(i.c1),e,i.vK)}function d(e,t,n){if(t.length>990)throw new Error(`Unable to create table '${e}' with more than 990 columns.`);return[[`CREATE TABLE IF NOT EXISTS "${e}" (`,t.map((e=>[`"${e.name}"`,e.type,"text"===e.type?"COLLATE NOCASE":"",e.name===n?"PRIMARY KEY":""].join(" ").trim())).join(", "),")"].join(""),[]]}function f(e){switch(e){case"Decimal":case"Enum":case"HashString":case"Integer":case"Long":case"ObjectReference":case"String":case"EnumSet":case"ObjectReferenceSet":return"text";case"AutoNumber":case"Boolean":case"DateTime":return"integer";case"Binary":return"blob"}}}
66,3354:(e,t,n)=>{n.d(t,{L5:()=>a,SW:()=>o,sT:()=>i});var r=n(8609);function i(e){return[`SELECT ${r.z1} FROM "${r.IX}" WHERE "${r.AU}" = ?`,[e]]}function o(e,t){return[`UPDATE "${r.IX}" SET "${r.z1}" = ? WHERE ${r.AU} = ?`,[t,e]]}function a(e){return[`UPDATE "${r.IX}" SET "${r.z1}" = "${r.z1}" + ${e} WHERE ${r.AU} = ?`,[r.rV]]}},6201:(e,t,n)=>{n.d(t,{E:()=>o,W:()=>i});var r=n(4337);function i(e){return[`DROP TABLE IF EXISTS "${(0,r.toUserScopedName)(e)}"`,[]]}function o(){return["VACUUM",[]]}},2235:(e,t,n)=>{n.d(t,{$P:()=>w,CW:()=>b,FA:()=>m,Fm:()=>h,P2:()=>f,Vf:()=>y,WU:()=>g,dT:()=>p,ku:()=>v});var r=n(234),i=n(6355),o=n(4037),a=n(6596),s=n(8609),c=n(6304),l=n(4802),u=n(4337),d=n(8718);function f(e){if(0===e.length)throw new r.AssertionError("No guids specified");return(0,l.I)(e).map((e=>{const t=new Array(e.length).fill("?").join(", ");return[`SELECT "${s.vK}", "${s.wu}" FROM "${(0,u.toUserScopedName)(s.c1)}" WHERE "${s.vK}" IN (${t})`,e]}))}function h(e=new Set){const t=e.size>0?` AND "${s.wu}" NOT IN (${Array.from(e).map((e=>`'${e}'`)).join(", ")})`:"";return[`SELECT "${s.vK}", "${s.wu}" FROM "${(0,u.toUserScopedName)(s.c1)}" WHERE "${s.RG}" IS NOT NULL${t}`,[]]}function p(e){return(0,l.I)(e).map((e=>{const t=new Array(e.length).fill("?").join(", ");return[`SELECT "${s.vK}", "${s.RG}" FROM "${(0,u.toUserScopedName)(s.c1)}" WHERE "${s.vK}" IN (${t})`,e]}))}function g(e){if(0===e.length)throw new r.AssertionError("No guids specified");return(0,l.I)(e).map((e=>{const t=new Array(e.length).fill("?").join(", ");return[`UPDATE "${(0,u.toUserScopedName)(s.c1)}" SET "${s.RG}" = NULL WHERE "${s.vK}" IN (${t})`,e]}))}function m(e){return["SELECT COUNT(name) as cnt FROM sqlite_master WHERE type='table' AND name=?",[(0,u.toUserScopedName)(e)]]}function v(e,t){return e.filter((e=>t.has(e.getGuid()))).flatMap((e=>{const n=(0,u.toUserScopedName)((0,c.Q2)(e.getEntity())),r=(0,u.toUserScopedName)(s.c1),i=e.getGuid(),o=[t.map(i),i];return[[`UPDATE ${n} SET ${s.vK} = ? WHERE ${n}.[${s.vK}] = ?`,o],[`UPDATE ${r} SET ${s.vK} = ? WHERE ${r}.[${s.vK}] = ?`,o]]}))}function y(e,t,n){const r=(0,a.yP)(e),o=(0,i.XG)((e=>w(e,n)));return t.entries().flatMap((([e,t])=>{var n;const i=null!==(n=r[e])&&void 0!==n?n:r[t];if(void 0===i)return[];const a=o(i.getEntity());return a?(0,d._)(a,e,t):[]}))}function b(e){return(0,l.I)(e).map((e=>{const t=new Array(e.length).fill("?").join(", ");return[`DELETE FROM "${(0,u.toUserScopedName)(s.c1)}" WHERE "tableName" IN (${t})`,e]}))}function w(e,t,n=!0){var r,i;const a=new Set([e,...null!==(i=null===(r=(0,o.getEntityMeta)(e))||void 0===r?void 0:r.generalizations)&&void 0!==i?i:[]]);return Object.assign({},...t.map((e=>{var t;const r=(0,o.getEntityMeta)(e),i=Object.values(null!==(t=null==r?void 0:r.attributes)&&void 0!==t?t:{}).filter((e=>e.referenceEntity&&a.has(e.referenceEntity)&&(n||"ObjectReferenceSet"!==e.type))).map((e=>e.name));return i.length>0?{[e]:i}:{}})))}},7946:(e,t,n)=>{n.d(t,{Q:()=>l,k:()=>c});var r=n(234),i=n(8609),o=n(6304),a=n(4802),s=n(4337);function c(e,t){if(0===t.length)throw new r.AssertionError("No guids specified");return(0,a.I)(t).map((t=>{const n=new Array(t.length).fill("?").join(", "),r=(0,o.Q2)(e),a=(0,s.toUserScopedName)(r),c=(0,s.toUserScopedName)(i.c1);return[[`SELECT ${r}.*,`,i.mX.map((e=>`${i.c1}.[${e}
66] AS "${i.c1}.${e}"`)).join(", "),`FROM "${a}" AS ${r}`,`JOIN ${c} AS ${i.c1} USING (${i.vK})`,`WHERE ${i.c1}.${i.vK} IN (${n})`].join(" "),t]}))}function l(e){const t=(0,o.Q2)((0,s.toUserScopedName)(e));return[`SELECT ${[i.vK,i.FH].join(", ")} FROM "${t}" WHERE ${i.Tb} = 1`,[]]}},4337:(e,t,n)=>{n.r(t),n.d(t,{getUserScopedNamePrefix:()=>i,setUserScopedNamePrefix:()=>o,toUserScopedName:()=>a});let r="";const i=()=>r,o=e=>{r=e},a=e=>r?`${r}$${e}`:e},8718:(e,t,n)=>{n.d(t,{_:()=>l,c:()=>c});var r=n(3282),i=n(234),o=n(4037),a=n(6304),s=n(4337);function c(e,t,n,o){if(0===Object.keys(t).length)throw new i.AssertionError("No updates specified.");const c=[],l=[];Object.entries(t).forEach((([t,n])=>{var i;l.push(`"${(0,a.Q2)(t)}" = ?`),c.push((0,a.ml)(n,(0,r.ensure)(null===(i=e.attributes[t])||void 0===i?void 0:i.type)))}));const u=(0,s.toUserScopedName)((0,a.Q2)(e.name)),d=`WHERE ${u}.[${(0,a.Q2)(n)}] = ?`;return[`UPDATE ${u} SET ${l.join(", ")} ${d}`,[...c,(0,a.hO)(o)]]}function l(e,t,n){return Object.entries(e).flatMap((([e,i])=>i.map((i=>{const a={[i]:n};return c((0,r.ensure)((0,o.getEntityMeta)(e)),a,i,t)}))))}},8609:(e,t,n)=>{n.d(t,{AU:()=>f,Cm:()=>c,EK:()=>p,FH:()=>b,IX:()=>d,No:()=>r,RG:()=>l,Tb:()=>w,WB:()=>y,Xz:()=>v,Zf:()=>m,c1:()=>i,mX:()=>u,qI:()=>o,rV:()=>g,vK:()=>a,wu:()=>s,z1:()=>h});const r=20,i="_guidToTable",o="_tombstoneTable",a="guid",s="tableName",c="readonlyAttrs",l="syncId",u=[a,s,c,l],d="_db_meta",f="name",h="value",p="version",g="cnt",m="offline_metadata",v="%",y="_",b="changedDate",w="HasContents"},6304:(e,t,n)=>{n.d(t,{Q2:()=>a,hO:()=>c,jd:()=>l,kK:()=>s,ml:()=>u,rx:()=>f});var r=n(3302),i=n(234),o=n(8609);function a(e){return e.replace(".","$")}function s(e){return e.replace("$",".")}function c(e){if(void 0===e)return null;if(e instanceof r.Big)return d(e);if(e instanceof Date)return Number(e);if("boolean"==typeof e)return e?1:0;if(Array.isArray(e))throw new i.AssertionError;return e}function l(e,t){if(null===e)return null;switch(t){case"DateTime":return e;case"Boolean":return Boolean(e);case"Decimal":case"Integer":case"Long":return function(e){const t=e.startsWith("-")?"-":"",n=e.replace(/^-?0*/,"");return t+(""!==n?n:"0")}(e);case"ObjectReferenceSet":return""===e?null:e.split(",");default:return String(e)}}function u(e,t){switch(t){case"AutoNumber":case"Binary":case"HashString":case"Enum":case"ObjectReference":case"ObjectReferenceSet":case"String":return null!=e?String(e):null;case"DateTime":return null!=e?Number(e):null;case"Boolean":return Number(e);case"Decimal":case"Integer":case"Long":return null==(n=e)?null:d(new r.Big(n));default:throw new i.AssertionError}var n}function d(e){const t=o.No-Math.max(0,e.e)-1;return(e.s<0?"-":"")+new Array(t+1).join("0")+e.abs().toFixed()}function f(e,t){return`replace(replace(replace(${e}, '${t}', '${t+t}'), '${o.Xz}', '${t+o.Xz}'), '${o.WB}', '${t+o.WB}')`}},1070:(e,t,n)=>{n.d(t,{l:()=>r,u:()=>i});const r=new(n(2228).t);function i(e){return r.reverse().map(e)}},2381:(e,t,n)=>{n.d(t,{AB:()=>p,GG:()=>S,Vd:()=>w,X9:()=>_,YC:()=>g,bM:()=>b,iT:()=>h,kL:()=>y,mt:()=>x,wt:()=>v});var r=n(3282),i=n(234),o=n(6355),a=n(5991),s=n(6199),c=n(4037),l=n(9726),u=n(4644),d=n(6559),f=n(6297);const h="documents",p="thumbnails",g="files";function m(e){var t;return null!==(t=(0,r.ensure)(null==e?void 0:e.attributes.changedDate).value)&&void 0!==t?t:null}function v(e,t){return e.replace(/:/g,"_")+"@"+(null!=t&&""!==t?t.toString():"local")}function y(e,t,n){var r;return n+v(t.map(e.guid),(null!==(r=m(e))&&void 0!==r?r:"").toString())}function b(e,t){return e+"/"+t}async function w(e,t,n,i,a){const l=i.reverse(),u=(0,o.XG)((e=>(0,c.isFileDocument)(e))),d=t.filter((e=>u(e.objectType))),g=(0,r.indexByKey)((e=>i.map(e.guid)))(d),v={downloads:[],moves:[],deletes:[]},[b,w]=(0,r.partition)((e=>e.guid in g),e);if(w.filter((e=>R(e))).forEach((e=>E(e))),!n){const t=(0,r.indexByKey)((e=>l.map(e.guid)))(e);d.filter((e=>!(e.guid in t))).filter(R).forEach(S)}const[x,_]=(0,r.partition)((e=>(0,f.tt)(e.guid)),b);return _.filter((e=>m(e)!==m(g[e.guid]))).forEach((e=>{R(e)&&E(e),S(g[e.guid])})),x.filter((e=>{const t=g[e.guid];return R(e)&&R(t)&&m(e)!==m(t)}
66)).forEach((e=>{if(n){const t=g[e.guid];!function(e,t,n=!0){const r=j(e,!1),i=j(t,!1);if(v.moves.push([r,i,e.guid]),n&&(0,c.isImage)(e.objectType)){const n=j(e,!0),r=j(t,!0);v.moves.push([n,r,e.guid])}}(e,t,!1),(0,c.isImage)(e.objectType)&&C(t)}else E(e),S(g[e.guid])})),x.filter((e=>R(e)&&!R(g[e.guid]))).forEach((e=>E(e))),x.filter((e=>!R(e)&&R(g[e.guid]))).forEach((e=>S(g[e.guid]))),v;function S(e){const t=k(e,!1);v.downloads.push([O(e,!1),t,e.guid]),v.moves.push([t,j(e,!1),e.guid]),(0,c.isImage)(e.objectType)&&C(e)}function C(e){const t=k(e,!0);v.downloads.push([O(e,!0),t,e.guid]),v.moves.push([t,j(e,!0),e.guid])}function E(e){const t=j(e,!1);v.deletes.push(t),(0,c.isImage)(e.objectType)&&v.deletes.push(j(e,!0))}function O(e,t){return(0,s.getRemoteDynamicResourceUrl)(e.guid,m(e),t)}function j(e,t){return y(e,l,a.toAbsolutePath((t?p:h)+"/"))}function k(e,t){return j(e,t)+"_tmp"}function R(e){return!0===(0,r.ensure)(e.attributes.HasContents).value}}async function x({downloads:e,moves:t,deletes:n},r,i){const o=new d.u;let a;if(void 0!==e&&(null==i||i.trace(`Downloading ${e.length} file documents.`),o.reset(),a=await S(e,r,i),null==i||i.trace(`Downloaded ${e.length} file documents in ${o.measure()} milliseconds.`)),void 0!==t&&(null==i||i.trace(`Moving ${t.length} file objects.`),o.reset(),await Promise.all(t.map((([e,t])=>r.moveFile(e,t)))),null==i||i.trace(`Moved ${t.length} file objects in ${o.measure()} milliseconds.`)),void 0!==n){let e=0;null==i||i.trace(`Attempting to delete ${n.length} file objects.`),o.reset(),await Promise.all(n.map((async t=>{try{await r.removeFile(t)}catch(t){if(t instanceof DOMException&&"NotFoundError"===t.name)return++e,void(null==i||i.trace(t.message));throw t}}))),null==i||i.trace(`Deleted ${n.length-e} file objects in ${o.measure()} milliseconds.`)}return{rejectedDownloadGUIDs:a}}async function _(e,t){const n=h+"/"+v(t.guid,(0,r.ensure)(t.attributes.changedDate).value),o=await e.readFile(e.toAbsolutePath(n)),s=await async function(e,t,n,r){for(let e=0;e<=2;e++)try{return await(0,u.ws)("__sync__","",{},n,{},[])}catch(t){if(!(e<2))throw t;{const t=Math.pow(2,e);await(0,a.wait)(t)}}throw new i.AssertionError}(0,0,o);return{tempGuid:s.commits[0],fileObjGuid:t.guid}}async function S(e,t,n){const r=[];for(let i=0;i<e.length;i+=4){const o=e.slice(i,i+4);await Promise.all(o.map((async([e,i,o])=>{try{await t.downloadFile(e,i)}catch(e){if(e instanceof l.h)throw null==n||n.trace(`Could not download file content for object ${o} due to a connection errorSynchronization will be aborted`),e;null==n||n.trace(`Could not download the file content for the object with guid ${o} due to an error.This may be due to broken file content on the server. Synchronization will continue and ignore this object`,e),r.push(o)}})))}return new Set(r)}},8569:(e,t,n)=>{n.d(t,{K:()=>c,M:()=>s});var r=n(2749),i=n(178),o=n(2351);let a=!1;async function s(e){if(a)throw new i.W((0,r.translate)("mxui.sys.UI","simultaneous_sync_error"));a=!0,await(0,o.publish)({param:"synchronizationState"});try{return await e()}finally{a=!1,await(0,o.publish)({param:"synchronizationState"})}}function c(){return a}},6610:(e,t,n)=>{n.d(t,{By:()=>u,dp:()=>f,zj:()=>p});var r=n(3302),i=n(3482),o=n(8862),a=n(3282),s=n(234),c=n(6218);const l=(0,o.t)((()=>new Date));function u(e,t){switch(e.type){case"attribute":return e;case"function":return{type:"function",name:e.name,parameters:e.parameters.map((e=>u(e,t)))};case"literal":return{type:"value",...d(e.value)};case"token":const n=(0,a.ensure)(l[e.name])();return{type:"value",value:n,isGuid:"string"==typeof n};case"variable":return{type:"value",...d(t(e.name),e.attribute)}}}function d(e,t){if(null==e)return{value:void 0,isGuid:!1};if("string"==typeof e||"boolean"==typeof e||e instanceof Date||e instanceof r.Big)return{value:e,isGuid:!1};if("number"==typeof e)return{value:new r.Big(e),isGuid:!1};if(e instanceof i.MxObject){if(void 0!==t){const n=e.getAttributeType(t);return{value:(0,c.vu)((0,c.OA)(e.getRawValue(t),n),n),isGuid:"ObjectReference"===n}}return{value:e.getGuid(),isGuid:!0}}throw new s.AssertionError(`Cannot use value '${e}' in query filter`)}function f(e){switch(e.type){case"attribute":return e.attribute;case"value":const t=e.value;if(void 0===t)return"empty";if("string"==typeof t)return`'${(0,a.escapeXml)(t)}'`;if("boolean"==typeof t)return t?"true()":"false()";if(t instanceof r.Big)return t.toString();if(t instanceof Date)return t.getTime().toString();throw new s.AssertionError;case"function":const n=e.parameters.find((e=>"association"===e.type));return n?function(e,t){const n=t.parameters.find((e=>"value"===e.type));if(!n)return h(t);const r=f(e),i=n.value;if(void 0===i)switch(t.name){case"=":return`not(${r})`;case"!=":return r;default:(0,a.crash)()}switch(t.name){case"=":break;case"!=":return`(${r} != ${f(n)} or not(${r}))`;case"contains":if("ReferenceSet"===e.associationType)return Array.isArray(i)?`(${i.map((e=>`${r} = '${e}'`)).join(" and ")})`:`(${r} = ${f(n)})`;break;default:(0,a.crash)()}return h(t)}(n,e):h(e);case"association":return e.associationPath}}function h(e){return/^(\W+|and|or)$/.test(e.name)?"("+e.parameters.map(f).join(` ${e.name} `)+")":`${e.name}(`+e.parameters.map(f).join(", ")+")"}function p(e,t){switch(e.type){case"function":const n={};
66return e.parameters.forEach((e=>Object.assign(n,p(e,t)))),n;case"variable":const r=e.attribute&&"id"!==e.attribute?e.attribute:void 0,o=e.name+(r?"$"+r:""),a=t(e.name),s=a instanceof i.MxObject&&r?(0,c.K$)(a,r):(0,c.iF)(a);return void 0!==s?{[o]:s}:{};default:return{}}}},4644:(e,t,n)=>{n.d(t,{Gu:()=>g,Hj:()=>E,Hw:()=>S,Jv:()=>d,L8:()=>c,OP:()=>h,Ot:()=>O,Sc:()=>u,TL:()=>y,WV:()=>v,_C:()=>j,_K:()=>p,df:()=>b,eN:()=>l,eO:()=>A,gP:()=>x,jo:()=>f,kS:()=>_,qh:()=>k,th:()=>m,vx:()=>R,ws:()=>N,x4:()=>w,xD:()=>C});var r=n(7563),i=n(7606),o=n(4036),a=n(6559);const s=function(e){const t=i.LogManager.get().getLogger(i.LogNode.Network);return async function(n,r){const i="object"==typeof(o=r)&&null!==o&&"action"in o&&"string"==typeof o.action?r.action:void 0;var o;void 0!==i?t.trace(`Starting runtime action: ${i}`):t.trace(`Starting POST ${n}`);const s=new a.u,c=await e(n,r);return void 0!==i?t.trace(`Finished runtime action "${i}" in ${s.measure()} milliseconds.`):t.trace(`Finished POST ${n} in ${s.measure()} milliseconds.`),
66c}}(o.post);async function c(e,t){return s(T(),{action:"retrieve_by_ids",params:{ids:e,schema:t}})}async function l(e,t,n,r,i,o){return s(T(),{action:"retrieve_by_path",params:{id:e,path:t,entity:n,direction:r},changes:i,objects:o})}async function u(e,t={},n=!1){return s(T(),{action:"retrieve_by_xpath",params:{xpath:e,schema:t,count:n}})}async function d(e,t,n,r,i){return s(T(),{action:"retrieve",params:{queryId:e,params:t,options:n},changes:r,objects:i})}async function f(e,t,n,r,i){return s(T(),{action:"executeaction",params:{...e,asyncid:i},changes:n,objects:r,context:t.getGuids()})}async function h(e){return s(T(),{action:"poll_background_job",params:{asyncid:e}})}async function p(e,t,n){return s(T(),{action:"instantiate",params:{objecttype:e},changes:t,objects:n})}async function g(e,t){return s(T(),{action:"validate",params:{},changes:e,objects:t})}async function m(e,t,n,r){return s(T(),{action:"commit",params:{guids:e},changes:n,objects:r,context:t.getGuids()})}async function v(e,t,n){return s(T(),{action:"rollback",params:{guids:e},changes:t,objects:n})}async function y(e,t,n){return s(T(),{action:"delete",params:{guids:e},changes:t,objects:n})}async function b(e,t,n,r,i,o){return s(T(),{action:"runtimeOperation",operationId:e,params:t,asyncid:o,validationGuids:i,changes:n,objects:r})}async function w(e,t,n){return s(T(),{action:"login",params:{username:e,password:t,shouldgeneratetoken:n}})}async function x(e){return s(T(),{action:"get_session_data",params:{...e,version:2}})}async function _(e){return s(T(),{action:"logout",params:e?{authtoken:e}:{}})}async function S(){return s(T(),{action:"keepalive",params:{}})}async function C(e,t,n,r){await s(T(),{action:"export",params:{...e,asyncid:r},changes:t,objects:n})}async function E(e,t={},n=0,r){return s(T(),{action:"report",params:{reportid:e,offset:n,limit:r,params:t}})}async function O(e,t={}){return s(T(),{action:"report_export_excel",params:{reportid:e,params:t}})}async function j(e){return s(T(),{action:"report_retrieve_params",params:{reportid:e}})}async function k(e,t,n,r,i,o){return s(T(),{action:"synchronize_objects",changes:e,fileGuidMapping:t,returnObjects:n,deletes:r,extraGuidsToRetrieve:null!=i?i:[],incompatibleChanges:null!=o?o:[]})}async function R(e){return s(T(),{action:"create_guids",params:{entities:e}})}async function N(e,t,n,i,o,a){const c=mx.remoteUrl+"file?"+(0,r.stringify)({...n,guid:e}),l=new FormData;return l.append("data",JSON.stringify({changes:o,objects:a})),t?l.append("blob",i,t):l.append("blob",i),s(c,l)}function T(e=mx.remoteUrl){return e+"xas/"}var A;!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(A||(A={}))},6671:(e,t,n)=>{n.d(t,{kY:()=>y,sI:()=>g,Pz:()=>p,gH:()=>m});var r=n(1525),i=n(2351),o=n(4037),a=n(8934),s=n(3282),c=n(234),l=n(1881),u=n(3698);async function d(e){for(const t of null!=e?e:[])switch(t.type){case"logout":mx.logout();break;case"show_login":mx.ui.showLogin();break;case"download_file":const e=await(0,u.m3)(t.args.FileDocumentGuid);mx.ui.downloadFile({mxobject:(0,s.ensure)(e),target:t.args.Target});break;case"text_message":mx.ui.showMessage(t.args.MessageType,t.args.MessageContent,t.args.MessageBlock)}}var f=n(9568),h=n(4644);async function p(e,t,n){var r,o;const a=(0,f.Q)(e,t);await m(e,t);const u=(null!==(r=t.instructions)&&void 0!==r?r:[]).filter((e=>"close"===e.type)),h=(null!==(o=t.instructions)&&void 0!==o?o:[]).filter((e=>"open_form"===e.type));!function(e,t,n){if(0===e.length)return;const r=e.reduce(((e,t)=>e+t.args.NumberOfPagesToClose),0);if(r<1)throw new c.AssertionError(`The number of pages to close evaluated to ${r}. It must be at least 1.`);const i=(0,s.ensure)(t);i.setSuspend(!0),i.closePage(r,!0,n).finally((()=>{i.setSuspend(!1)})).catch((e=>{(0,l.handleError)(e)}))}(u,n,h.some((e=>"content"===e.args.FormTarget))),await(0,i.publish)(...a),await async function(e,t){const n=[],r=[...e].reverse().find((e=>"content"===e.args.FormTarget));for(const t of e){const e=t.args.FormTarget,i="content"===e&&t!==r;n.push(mx.ui.openForm2(t.args.FormPath,(0,s.mapValues)(t.args.FormParameters,(e=>null===e?void 0:e)),t.args.FormTitle,undefined,{location:e,url:t.args.FormUrl,width:t.args.FormWidth,height:t.args.FormHeight,resizable:t.args.FormResizable,pageUpdateSuspended:i,preferUnderlyingModalOverLastFocusedElement:!0}))}await Promise.all(n)}(h),await d(t.instructions),await v(t.datavalidation)}async function g(e,t,n){if(t instanceof a.ValidationError){const r=t.original,o=(0,f.Q)(e,r).filter((e=>!("attr"in e)));await(0,i.publish)(...o),await d(r.instructions),await v(r.datavalidation,n)}}async function m(e,{objects:t=[],changes:n={},newpersistable:r=[],commits:i=[],deletes:a=[],resets:s={},committedObjectsOmitted:c=!1}){e.removeChanges(s),e.addChanges(n);const l=t.filter((t=>{return n=t,!e.has(n.guid);var n})).filter((e=>
66{return t=e,Boolean(null===(n=(0,o.getEntityMeta)(t.objectType))||void 0===n?void 0:n.isPersistable)?r.includes(e.guid):!i.includes(e.guid);var t,n})).map((e=>e.guid));if(e.onCreate(l),e.onDelete(a),e.onCommit(i),e.setMxObjects(t),c){const n=i.filter((n=>e.has(n)&&!t.some((e=>e.guid===n))));if(n.length>0){const t=await(0,h.L8)(n,{});await p(e,t)}}}async function v(e,t){const n=r.L.fromResponse(null!=e?e:[]);await mx.data.sendValidationUpdates(n),n.length>0&&t&&t(n)}function y({objects:e=[],committedObjectsOmitted:t=!1,commits:n=[]}){const r=e.map((e=>e.guid)),i=t?n.filter((t=>!e.some((e=>e.guid===t)))):[];return r.concat(i)}},9568:(e,t,n)=>{n.d(t,{Q:()=>a});var r=n(3482),i=n(3282),o=n(4037);function a(e,t){var n,a,c,l,u,d;const f=Object.entries(null!==(n=t.changes)&&void 0!==n?n:{}).map((([e,t])=>Object.keys(t).map((t=>({guid:e,attr:t}))))),h=Object.entries(null!==(a=t.resets)&&void 0!==a?a:{}).map((([e,t])=>t.map((t=>({guid:e,attr:t}))))),p=(null!==(c=t.objects)&&void 0!==c?c:[]).map((t=>{const n=e.getObject(t.guid);return null!==n?function(e,t){const n=r.MxObject.fromJson(t);return(0,o.getAttributesMeta)(t.objectType).map((e=>e.name)).filter((t=>!function(e,t,n){if(e.isReadonlyAttr(n)!==t.isReadonlyAttr(n))return!1;if(e.isReference(n))return n===o.SystemAttribute.ChangedBy||n===o.SystemAttribute.Owner||e.getOriginalReferences(n).sort(((e,t)=>e.localeCompare(t))).join(",")===t.getOriginalReferences(n).sort(((e,t)=>e.localeCompare(t))).join(",");const r=e.getOriginalValue(n),i=t.getOriginalValue(n);return r===i||null!=r&&null!=i&&r.valueOf()===i.valueOf()}(e,n,t)))}(n,t).map((e=>({guid:t.guid,attr:e}))):[]})),g=(0,i.unique)((0,i.concat)((null!==(l=t.instructions)&&void 0!==l?l:[]).map(s)).concat(null!==(u=t.deletes)&&void 0!==u?u:[])),m=(0,i.uniqueBy)([f,h,p].flat(2),(e=>`${e.guid}:${e.attr}`)).map((({guid:e,attr:t})=>({guid:e,attr:t}))).filter((({guid:t})=>!g.includes(t)&&e.has(t))),v=g.filter((t=>e.has(t))).map((e=>({guid:e}))),y=(0,i.unique)((0,i.concat)((null!==(d=t.instructions)&&void 0!==d?d:[]).map((e=>"refresh_class"===e.type?e.args.classnames:[])))).map((e=>({entity:e})));return(0,i.concat)([m,v,y])}function s(e){return"refresh_object_list"===e.type?e.args.ObjectIds:[]}},1001:(e,t,n)=>{n.d(t,{I5:()=>c,ss:()=>s,op:()=>a});var r=n(3282),i=n(4037);class o{constructor(){this.labels=[],this.labelMap={},this.graph=[]}addEdge(e,t){const n=this.getOrCreateLabelIndex(e),r=this.getOrCreateLabelIndex(t),i=this.graph[n];i.includes(r)||i.push(r)}neighborsOf(e){const t=this.getOrCreateLabelIndex(e);return this.graph[t].map((e=>this.indexToLabel(e)))}reachableLabels(e){const t=e.map((e=>this.getOrCreateLabelIndex(e)));return function(e,t){const n=new Array(e.length);!function t(r){for(const i of r){if(i<0||i>=n.length)throw new Error(`graph: index ${i} out of bounds in graph of size ${e.length}`);n[i]||(n[i]=!0,t(e[i]))}}(t);const r=[];for(let e=0;e<n.length;++e)n[e]&&r.push(e);return r}(this.graph,t).map((e=>this.indexToLabel(e)))}indexToLabel(e){return this.labels[e]}getOrCreateLabelIndex(e){if(e in this.labelMap)return this.labelMap[e];this.labels.push(e),this.graph.push([]);const t=this.labels.length-1;return this.labelMap[e]=t,t}}function a(e,t){return c(e,t).reachableLabels(Array.from(t))}function s(e,t,n){const o=(0,r.indexByKey)((e=>e.getGuid()))(e),a=null!=n?function(e,t){const n=[];return e.forEach((e=>{t.forEach((t=>{if(!e.has(t.association))return;const r=(0,i.computeSupermostEntityWithAttribute)(e.getEntity(),t.association),o=e.getSelectorEntity(t.association);t.fromEntity===r&&u(e,t.association).forEach((t=>n.push({from:e.getGuid(),to:t}))),t.fromEntity===o&&u(e,t.association).forEach((t=>n.push({from:t,to:e.getGuid()})))}))})),n}(e,n):l(e);return d(a).reachableLabels(t).filter((e=>o[e]))}function c(e,t){e=e.filter((e=>!e.isPersistable()||e.hasChanges()||e.isNew()||t.has(e.getGuid())));const n=(0,r.indexByKey)((e=>e.getGuid()))(e);return d(l(e).filter((({from:e,to:t})=>i(e)&&i(t))));function i(e){return t.has(e)||e in n}}function l(e){const t=[],n=new Map;for(const t of e)n.has(t.getEntity())||n.set(t.getEntity(),(0,i.getAttributesMeta)(t.getEntity()).filter((e=>("ObjectReference"===e.type||"ObjectReferenceSet"===e.type)&&e.name!==i.SystemAttribute.Owner&&e.name!==i.SystemAttribute.ChangedBy)).map((e=>e.name)));return e.forEach((e=>
66{n.get(e.getEntity()).forEach((n=>{e.has(n)&&u(e,n).forEach((n=>t.push({from:n,to:e.getGuid()},{from:e.getGuid(),to:n})))}))})),t}function u(e,t){return e.getReferences(t).concat(e.getOriginalReferences(t))}function d(e){const t=new o;return e.forEach((({from:e,to:n})=>t.addEdge(e,n))),t}},6393:(e,t,n)=>{function r(e){return o(e,[{existing:"yyy",replacement:"yyyy"},{existing:"E",replacement:"e"},{existing:"EE",replacement:"ee"},{existing:"YYY",replacement:"YYYY"},{existing:"Z",replacement:"XX"},{existing:"ZZ",replacement:"XX"},{existing:"ZZZ",replacement:"XX"},{existing:"ZZZZ",replacement:"zzzz"}])}function i(e){return o(e,[{existing:"GGGG",replacement:"GGG"},{existing:"GGGGG",replacement:"GGG"},{existing:"GGGGGG",replacement:"GGG"},{existing:"MMMMM",replacement:"MMMM"},{existing:"E",replacement:"EEE"},{existing:"EE",replacement:"EEE"},{existing:"EEEEE",replacement:"EEEE"},{existing:"EEEEEE",replacement:"EEEE"},{existing:"S",replacement:"SSS"},{existing:"SS",replacement:"SSS"},{existing:"SSSS",replacement:"'0'SSS"},{existing:"SSSSS",replacement:"'00'SSS"},{existing:"SSSSSS",replacement:"'000'SSS"},{existing:"W",replacement:"'W'"},{existing:"WW",replacement:"'WW'"},{existing:"WWW",replacement:"'WWW'"},{existing:"WWWW",replacement:"'WWWW'"},{existing:"WWWWW",replacement:"'WWWWW'"},{existing:"WWWWWW",replacement:"'WWWWWW'"},{existing:"F",replacement:"'F'"},{existing:"FF",replacement:"'FF'"},{existing:"FFF",replacement:"'FFF'"},{existing:"FFFF",replacement:"'FFFF'"},{existing:"FFFFF",replacement:"'FFFFF'"},{existing:"FFFFFF",replacement:"'FFFFFF'"},{existing:"Z",replacement:"'Z'"},{existing:"ZZ",replacement:"'ZZ'"},{existing:"ZZZ",replacement:"'ZZZ'"},{existing:"ZZZZ",replacement:"'ZZZZ'"},{existing:"ZZZZZ",replacement:"'ZZZZZ'"},{existing:"ZZZZZZ",replacement:"'ZZZZZZ'"},{existing:"z",replacement:"'z'"},{existing:"zz",replacement:"'zz'"},{existing:"zzz",replacement:"'zzz'"},{existing:"zzzz",replacement:"'zzzz'"},{existing:"zzzzz",replacement:"'zzzzz'"},{existing:"zzzzzz",replacement:"'zzzzzz'"},{existing:"X",replacement:"'X'"},{existing:"XX",replacement:"'XX'"},{existing:"XXX",replacement:"'XXX'"},{existing:"XXXX",replacement:"'XXXX'"},{existing:"XXXXX",replacement:"'XXXXX'"},{existing:"XXXXXX",replacement:"'XXXXXX'"}])}function o(e,t){var n;const r=null!==(n=e.match(/''|'(?:''|[^'])+(?:'|$)|(.)\1*/g))&&void 0!==n?n:[];return t.reduce(((e,{existing:t,replacement:n})=>e.map((e=>e===t?n:e))),r).join("")}n.d(t,{$M:()=>i,Az:()=>r,v4:()=>o})},8426:(e,t,n)=>{n.r(t),n.d(t,{formatDate:()=>Mi,getDateFnsOptions:()=>Vi,getDateFormatPlaceholder:()=>Bi,parseDate:()=>Li});var r=n(1532),i=n(4941),o=n(1218),a=n(9013);function s(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var c=n(7621),l=n(4262),u=n(5267),d=n(3946),f=n(3882);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function p(e,t){if("function"!=typeof t&&null!==t)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}}),t&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?v(e):t}(this,n)}}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(){function e(){b(this,e),_(this,"subPriority",0)}return x(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),C=function(e){p(n,e);var t=m(n);function n(e,r,i,o,a){var s;return b(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=i,s.priority=o,a&&(s.subPriority=a),s}return x(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,
66n)}}]),n}(S),E=function(e){p(n,e);var t=m(n);function n(){var e;b(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return _(v(e=t.call.apply(t,[this].concat(i))),"priority",10),_(v(e),"subPriority",-1),e}return x(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(S);function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var j=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{key:"run",value:function(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new C(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}])&&O(t.prototype,n),e}();function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t){return N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},N(e,t)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&N(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=A(r);if(i){var n=A(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?T(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return P(T(e=o.call.apply(o,[this].concat(n))),"priority",140),P(T(e),"incompatibleTokens",["R","u","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}])&&R(t.prototype,n),a}(j),I=(Math.pow(10,8),/^(1[0-2]|0?\d)/),M=/^(3[0-1]|[0-2]?\d)/,L=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,$=/^(5[0-3]|[0-4]?\d)/,F=/^(2[0-3]|[0-1]?\d)/,B=/^(2[0-4]|[0-1]?\d)/,V=/^(1[0-1]|0?\d)/,z=/^(1[0-2]|0?\d)/,U=/^[0-5]?\d/,W=/^[0-5]?\d/,q=/^\d/,H=/^\d{1,2}/,G=/^\d{1,3}/,Z=/^\d{1,4}/,K=/^-?\d+/,X=/^-?\d/,Y=/^-?\d{1,2}/,Q=/^-?\d{1,3}/,J=/^-?\d{1,4}/,ee=/^([+-])(\d{2})(\d{2})?|Z/,te=/^([+-])(\d{2})(\d{2})|Z/,ne=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,re=/^([+-])(\d{2}):(\d{2})|Z/,ie=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function oe(e,t){return e?{value:t(e.value),rest:e.rest}:e}function ae(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function se(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function ce(e){return ae(K,e)}function le(e,t){switch(e){case 1:return ae(q,t);case 2:return ae(H,t);case 3:return ae(G,t);case 4:return ae(Z,t);default:return ae(new RegExp("^\\d{1,"+e+"}"),t)}}function ue(e,t){switch(e){case 1:return ae(X,t);case 2:return ae(Y,t);case 3:return ae(Q,t);case 4:return ae(J,t);default:return ae(new RegExp("^-?\\d{1,"+e+"}"),t)}}function de(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function fe(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function he(e){return e%400==0||e%4==0&&e%100!=0}function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function me(e,t){return me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},me(e,t)}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&me(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ye(r);if(i){var n=ye(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==pe(t)&&"function"!=typeof t?ve(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return be(ve(e=o.call.apply(o,[this].concat(n))),"priority",130),be(ve(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return oe(le(4,e),r);case"yo":return oe(n.ordinalNumber(e,{unit:"year"}),r);default:return oe(le(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=fe(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}])&&ge(t.prototype,n),a}(j),xe=n(7651),_e=n(9025);function Se(e){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e,t){return Ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ee(e,t)}function Oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},je(e)}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Ee(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=je(r);
66if(i){var n=je(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?Oe(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ke(Oe(e=o.call.apply(o,[this].concat(n))),"priority",130),ke(Oe(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return oe(le(4,e),r);case"Yo":return oe(n.ordinalNumber(e,{unit:"year"}),r);default:return oe(le(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var i=(0,xe.Z)(e,r);if(n.isTwoDigitYear){var o=fe(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,_e.Z)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,_e.Z)(e,r)}}])&&Ce(t.prototype,n),a}(j),Ne=n(6979);function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pe(e,t){return Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pe(e,t)}function De(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ie(e){return Ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ie(e)}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Pe(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ie(r);if(i){var n=Ie(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Te(t)&&"function"!=typeof t?De(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Me(De(e=o.call.apply(o,[this].concat(n))),"priority",130),Me(De(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t){return ue("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,Ne.Z)(r)}}])&&Ae(t.prototype,n),a}(j);function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function Fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Be(e,t){return Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Be(e,t)}function Ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ze(e){return ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ze(e)}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var We=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Be(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ze(r);if(i){var n=ze(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?Ve(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ue(Ve(e=o.call.apply(o,[this].concat(n))),"priority",130),Ue(Ve(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t){return ue("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}])&&Fe(t.prototype,n),a}(j);function qe(e){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(e)}function He(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ge(e,t){return Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ge(e,t)}function Ze(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ke(e)}function Xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Ge(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ke(r);if(i){var n=Ke(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==qe(t)&&"function"!=typeof t?Ze(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xe(Ze(e=o.call.apply(o,[this].concat(n))),"priority",120),Xe(Ze(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return le(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}])&&He(t.prototype,n),a}(j);function Qe(e){return Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(e)}function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function et(e,t){return et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},et(e,t)}function tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var it=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&et(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=nt(r);if(i){var n=nt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Qe(t)&&"function"!=typeof t?tt(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rt(tt(e=o.call.apply(o,[this].concat(n))),"priority",120),rt(tt(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return le(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}])&&Je(t.prototype,n),a}(j);function ot(e){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ot(e)}function at(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function st(e,t){return st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},st(e,t)}function ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lt(e){return lt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lt(e)}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}
66),t&&st(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lt(r);if(i){var n=lt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==ot(t)&&"function"!=typeof t?ct(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ut(ct(e=o.call.apply(o,[this].concat(n))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),ut(ct(e),"priority",110),e}return t=a,(n=[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return oe(ae(I,e),r);case"MM":return oe(le(2,e),r);case"Mo":return oe(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}])&&at(t.prototype,n),a}(j);function ft(e){return ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ft(e)}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pt(e,t){return pt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pt(e,t)}function gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mt(e){return mt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mt(e)}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&pt(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=mt(r);if(i){var n=mt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==ft(t)&&"function"!=typeof t?gt(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vt(gt(e=o.call.apply(o,[this].concat(n))),"priority",110),vt(gt(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return oe(ae(I,e),r);case"LL":return oe(le(2,e),r);case"Lo":return oe(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}])&&ht(t.prototype,n),a}(j),bt=n(3324);function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _t(e,t){return _t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_t(e,t)}function St(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ct(e){return Ct=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ct(e)}function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ot=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&_t(e,t)}(s,e);var t,n,r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ct(r);if(i){var n=Ct(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==wt(t)&&"function"!=typeof t?St(e):t}(this,e)});function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Et(St(e=o.call.apply(o,[this].concat(n))),"priority",100),Et(St(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return t=s,n=[{key:"parse",value:function(e,t,n){switch(t){case"w":return ae($,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return le(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,_e.Z)(function(e,t,n){(0,f.Z)(2,arguments);var r=(0,a.Z)(e),i=(0,d.Z)(t),o=(0,bt.Z)(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}}],n&&xt(t.prototype,n),s}(j),jt=n(9702);function kt(e){return kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(e)}function Rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nt(e,t){return Nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nt(e,t)}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},At(e)}function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Nt(e,t)}(s,e);var t,n,r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=At(r);if(i){var n=At(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==kt(t)&&"function"!=typeof t?Tt(e):t}(this,e)});function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Pt(Tt(e=o.call.apply(o,[this].concat(n))),"priority",100),Pt(Tt(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return t=s,n=[{key:"parse",value:function(e,t,n){switch(t){case"I":return ae($,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return le(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,Ne.Z)(function(e,t){(0,f.Z)(2,arguments);var n=(0,a.Z)(e),r=(0,d.Z)(t),i=(0,jt.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}}],n&&Rt(t.prototype,n),s}(j);function It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function Mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t){return Lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Lt(e,t)}function $t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ft(e){return Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ft(e)}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vt=[31,28,31,30,31,30,31,31,30,31,30,31],zt=[31,29,31,30,31,30,31,31,30,31,30,31],Ut=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}
66),t&&Lt(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ft(r);if(i){var n=Ft(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==It(t)&&"function"!=typeof t?$t(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Bt($t(e=o.call.apply(o,[this].concat(n))),"priority",90),Bt($t(e),"subPriority",1),Bt($t(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"d":return ae(M,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return le(t.length,e)}}},{key:"validate",value:function(e,t){var n=he(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=zt[r]:t>=1&&t<=Vt[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}])&&Mt(t.prototype,n),a}(j);function Wt(e){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(e)}function qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ht(e,t){return Ht=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ht(e,t)}function Gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zt(e){return Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zt(e)}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Ht(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Zt(r);if(i){var n=Zt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Wt(t)&&"function"!=typeof t?Gt(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Kt(Gt(e=o.call.apply(o,[this].concat(n))),"priority",90),Kt(Gt(e),"subpriority",1),Kt(Gt(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return ae(L,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return le(t.length,e)}}},{key:"validate",value:function(e,t){return he(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}])&&qt(t.prototype,n),a}(j),Yt=n(4314);function Qt(e,t,n){var r,i,o,s,c,l,u,h;(0,f.Z)(2,arguments);var p=(0,Yt.j)(),g=(0,d.Z)(null!==(r=null!==(i=null!==(o=null!==(s=null==n?void 0:n.weekStartsOn)&&void 0!==s?s:null==n||null===(c=n.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:p.weekStartsOn)&&void 0!==i?i:null===(u=p.locale)||void 0===u||null===(h=u.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==r?r:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,a.Z)(e),v=(0,d.Z)(t),y=((v%7+7)%7<g?7:0)+v-m.getUTCDay();return m.setUTCDate(m.getUTCDate()+y),m}function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
66function tn(e,t){return tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tn(e,t)}function nn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rn(e)}function on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var an=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&tn(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=rn(r);if(i){var n=rn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Jt(t)&&"function"!=typeof t?nn(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return on(nn(e=o.call.apply(o,[this].concat(n))),"priority",90),on(nn(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Qt(e,n,r)).setUTCHours(0,0,0,0),e}}])&&en(t.prototype,n),a}(j);function sn(e){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sn(e)}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ln(e,t){return ln=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ln(e,t)}function un(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dn(e){return dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dn(e)}function fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&ln(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=dn(r);if(i){var n=dn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==sn(t)&&"function"!=typeof t?un(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
66return fn(un(e=o.call.apply(o,[this].concat(n))),"priority",90),fn(un(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return oe(le(t.length,e),i);case"eo":return oe(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Qt(e,n,r)).setUTCHours(0,0,0,0),e}}])&&cn(t.prototype,n),a}(j);function pn(e){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pn(e)}function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mn(e,t){return mn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mn(e,t)}function vn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yn(e)}function bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&mn(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=yn(r);if(i){var n=yn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==pn(t)&&"function"!=typeof t?vn(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bn(vn(e=o.call.apply(o,[this].concat(n))),"priority",90),bn(vn(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return oe(le(t.length,e),i);case"co":return oe(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Qt(e,n,r)).setUTCHours(0,0,0,0),e}}])&&gn(t.prototype,n),a}(j);function xn(e){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xn(e)}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
66function Sn(e,t){return Sn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sn(e,t)}function Cn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function En(e){return En=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},En(e)}function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Sn(e,t)}(s,e);var t,n,r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=En(r);if(i){var n=En(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==xn(t)&&"function"!=typeof t?Cn(e):t}(this,e)});function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return On(Cn(e=o.call.apply(o,[this].concat(n))),"priority",90),On(Cn(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return t=s,n=[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return le(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return oe(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return oe(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return oe(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return oe(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){(0,f.Z)(2,arguments);var n=(0,d.Z)(t);n%7==0&&(n-=7);var r=(0,a.Z)(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n),e.setUTCHours(0,0,0,0),e}}],n&&_n(t.prototype,n),s}(j);function kn(e){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kn(e)}function Rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nn(e,t){return Nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nn(e,t)}function Tn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function An(e){return An=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},An(e)}function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Nn(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=An(r);if(i){var n=An(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==kn(t)&&"function"!=typeof t?Tn(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
66return Pn(Tn(e=o.call.apply(o,[this].concat(n))),"priority",80),Pn(Tn(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(de(n),0,0,0),e}}])&&Rn(t.prototype,n),a}(j);function In(e){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},In(e)}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ln(e,t){return Ln=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ln(e,t)}function $n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fn(e){return Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fn(e)}function Bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Ln(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Fn(r);if(i){var n=Fn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==In(t)&&"function"!=typeof t?$n(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Bn($n(e=o.call.apply(o,[this].concat(n))),"priority",80),Bn($n(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(de(n),0,0,0),e}}])&&Mn(t.prototype,n),a}(j);function zn(e){return zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(e)}function Un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wn(e,t){return Wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wn(e,t)}function qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hn(e){return Hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hn(e)}function Gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Wn(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Hn(r);if(i){var n=Hn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==zn(t)&&"function"!=typeof t?qn(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
66return Gn(qn(e=o.call.apply(o,[this].concat(n))),"priority",80),Gn(qn(e),"incompatibleTokens",["a","b","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(de(n),0,0,0),e}}])&&Un(t.prototype,n),a}(j);function Kn(e){return Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn(e)}function Xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yn(e,t){return Yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yn(e,t)}function Qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jn(e){return Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jn(e)}function er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Yn(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Jn(r);if(i){var n=Jn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Kn(t)&&"function"!=typeof t?Qn(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return er(Qn(e=o.call.apply(o,[this].concat(n))),"priority",70),er(Qn(e),"incompatibleTokens",["H","K","k","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"h":return ae(z,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return le(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}])&&Xn(t.prototype,n),a}(j);function nr(e){return nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nr(e)}function rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ir(e,t){return ir=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ir(e,t)}function or(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ar(e){return ar=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ar(e)}function sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&ir(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ar(r);if(i){var n=ar(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==nr(t)&&"function"!=typeof t?or(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return sr(or(e=o.call.apply(o,[this].concat(n))),"priority",70),sr(or(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"H":return ae(F,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return le(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}])&&rr(t.prototype,n),a}(j);function lr(e){return lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lr(e)}function ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dr(e,t){return dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dr(e,t)}function fr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hr(e){return hr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hr(e)}function pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&dr(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=hr(r);if(i){var n=hr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==lr(t)&&"function"!=typeof t?fr(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pr(fr(e=o.call.apply(o,[this].concat(n))),"priority",70),pr(fr(e),"incompatibleTokens",["h","H","k","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"K":return ae(V,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return le(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}])&&ur(t.prototype,n),a}(j);function mr(e){return mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mr(e)}function vr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yr(e,t){return yr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yr(e,t)}function br(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wr(e){return wr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wr(e)}function xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&yr(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=wr(r);if(i){var n=wr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==mr(t)&&"function"!=typeof t?br(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xr(br(e=o.call.apply(o,[this].concat(n))),"priority",70),xr(br(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"k":return ae(B,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return le(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}])&&vr(t.prototype,n),a}(j);function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Er(e,t){return Er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Er(e,t)}function Or(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jr(e){return jr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jr(e)}function kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Er(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=jr(r);if(i){var n=jr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Sr(t)&&"function"!=typeof t?Or(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kr(Or(e=o.call.apply(o,[this].concat(n))),"priority",60),kr(Or(e),"incompatibleTokens",["t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"m":return ae(U,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return le(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}])&&Cr(t.prototype,n),a}(j);function Nr(e){return Nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nr(e)}function Tr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ar(e,t){return Ar=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ar(e,t)}function Pr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dr(e){return Dr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Dr(e)}function Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Ar(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Dr(r);if(i){var n=Dr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Nr(t)&&"function"!=typeof t?Pr(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
66return Ir(Pr(e=o.call.apply(o,[this].concat(n))),"priority",50),Ir(Pr(e),"incompatibleTokens",["t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t,n){switch(t){case"s":return ae(W,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return le(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}])&&Tr(t.prototype,n),a}(j);function Lr(e){return Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lr(e)}function $r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fr(e,t){return Fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fr(e,t)}function Br(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vr(e){return Vr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vr(e)}function zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ur=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Fr(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Vr(r);if(i){var n=Vr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Lr(t)&&"function"!=typeof t?Br(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return zr(Br(e=o.call.apply(o,[this].concat(n))),"priority",30),zr(Br(e),"incompatibleTokens",["t","T"]),e}return t=a,(n=[{key:"parse",value:function(e,t){return oe(le(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}])&&$r(t.prototype,n),a}(j);function Wr(e){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(e)}function qr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hr(e,t){return Hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hr(e,t)}function Gr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zr(e){return Zr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zr(e)}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Hr(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Zr(r);if(i){var n=Zr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Wr(t)&&"function"!=typeof t?Gr(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
66return Kr(Gr(e=o.call.apply(o,[this].concat(n))),"priority",10),Kr(Gr(e),"incompatibleTokens",["t","T","x"]),e}return t=a,(n=[{key:"parse",value:function(e,t){switch(t){case"X":return se(ee,e);case"XX":return se(te,e);case"XXXX":return se(ne,e);case"XXXXX":return se(ie,e);default:return se(re,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}])&&qr(t.prototype,n),a}(j);function Yr(e){return Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yr(e)}function Qr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jr(e,t){return Jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jr(e,t)}function ei(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ti(e){return ti=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ti(e)}function ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ri=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&Jr(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ti(r);if(i){var n=ti(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Yr(t)&&"function"!=typeof t?ei(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ni(ei(e=o.call.apply(o,[this].concat(n))),"priority",10),ni(ei(e),"incompatibleTokens",["t","T","X"]),e}return t=a,(n=[{key:"parse",value:function(e,t){switch(t){case"x":return se(ee,e);case"xx":return se(te,e);case"xxxx":return se(ne,e);case"xxxxx":return se(ie,e);default:return se(re,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}])&&Qr(t.prototype,n),a}(j);function ii(e){return ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ii(e)}function oi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ai(e,t){return ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ai(e,t)}function si(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ci(e){return ci=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ci(e)}function li(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ui=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&ai(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ci(r);if(i){var n=ci(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==ii(t)&&"function"!=typeof t?si(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return li(si(e=o.call.apply(o,[this].concat(n))),"priority",40),li(si(e),"incompatibleTokens","*"),e}return t=a,(n=[{key:"parse",value:function(e){return ce(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}])&&oi(t.prototype,n),a}(j);function di(e){return di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},di(e)}function fi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
66function hi(e,t){return hi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hi(e,t)}function pi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gi(e){return gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gi(e)}function mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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}}),t&&hi(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=gi(r);if(i){var n=gi(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==di(t)&&"function"!=typeof t?pi(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mi(pi(e=o.call.apply(o,[this].concat(n))),"priority",20),mi(pi(e),"incompatibleTokens","*"),e}return t=a,(n=[{key:"parse",value:function(e){return ce(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}])&&fi(t.prototype,n),a}(j),yi={G:new D,y:new we,Y:new Re,R:new Le,u:new We,Q:new Ye,q:new it,M:new dt,L:new yt,w:new Ot,I:new Dt,d:new Ut,D:new Xt,E:new an,e:new hn,c:new wn,i:new jn,a:new Dn,b:new Vn,B:new Zn,h:new tr,H:new cr,K:new gr,k:new _r,m:new Rr,s:new Mr,S:new Ur,X:new Xr,x:new ri,t:new ui,T:new vi};function bi(e){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(e)}function wi(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _i=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Si=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ci=/^'([^]*?)'?$/,Ei=/''/g,Oi=/\S/,ji=/[a-zA-Z]/;function ki(e,t,n,r){var h,p,g,m,v,y,b,w,x,_,S,C,O,j,k,R,N,T;(0,f.Z)(3,arguments);var A=String(e),P=String(t),D=(0,Yt.j)(),I=null!==(h=null!==(p=null==r?void 0:r.locale)&&void 0!==p?p:D.locale)&&void 0!==h?h:i.Z;if(!I.match)throw new RangeError("locale must contain match property");var M=(0,d.Z)(null!==(g=null!==(m=null!==(v=null!==(y=null==r?void 0:r.firstWeekContainsDate)&&void 0!==y?y:null==r||null===(b=r.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==v?v:D.firstWeekContainsDate)&&void 0!==m?m:null===(x=D.locale)||void 0===x||null===(_=x.options)||void 0===_?void 0:_.firstWeekContainsDate)&&void 0!==g?g:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=(0,d.Z)(null!==(S=null!==(C=null!==(O=null!==(j=null==r?void 0:r.weekStartsOn)&&void 0!==j?j:null==r||null===(k=r.locale)||void 0===k||null===(R=k.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==O?O:D.weekStartsOn)&&void 0!==C?C:null===(N=D.locale)||void 0===N||null===(T=N.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==S?S:0);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===P)return""===A?(0,a.Z)(n):new Date(NaN);var $,F={firstWeekContainsDate:M,weekStartsOn:L,locale:I},B=[new E],V=P.match(Si).map((function(e){var t=e[0];return t in c.Z?(0,c.Z[t])(e,I.formatLong):e})).join("").match(_i),z=[],U=wi(V);try{var W=function(){var t=$.value;null!=r&&r.useAdditionalWeekYearTokens||!(0,u.Do)(t)||(0,u.qp)(t,P,e),null!=r&&r.useAdditionalDayOfYearTokens||!(0,u.Iu)(t)||(0,u.qp)(t,P,e);var n=t[0],i=yi[n];if(i){var o=i.incompatibleTokens;if(Array.isArray(o)){var a=z.find((function(e){return o.includes(e.token)||e.token===n}));
66if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===i.incompatibleTokens&&z.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));z.push({token:n,fullToken:t});var s=i.run(A,t,I.match,F);if(!s)return{v:new Date(NaN)};r.mxBuddhistCalendar&&["y","Y"].includes(n)&&(s.setter.value.year-=543),B.push(s.setter),A=s.rest}else{if(n.match(ji))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(Ci)[1].replace(Ei,"'")),0!==A.indexOf(t))return{v:new Date(NaN)};A=A.slice(t.length)}};for(U.s();!($=U.n()).done;){var q=W();if("object"===bi(q))return q.v}}catch(e){U.e(e)}finally{U.f()}if(A.length>0&&Oi.test(A))return new Date(NaN);var H=B.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return B.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),G=(0,a.Z)(n);if(isNaN(G.getTime()))return new Date(NaN);var Z,K=(0,o.Z)(G,(0,l.Z)(G)),X={},Y=wi(H);try{for(Y.s();!(Z=Y.n()).done;){var Q=Z.value;if(!Q.validate(K,F))return new Date(NaN);var J=Q.set(K,X,F);Array.isArray(J)?(K=J[0],s(X,J[1])):K=J}}catch(e){Y.e(e)}finally{Y.f()}return K}var Ri=n(6393),Ni=n(1942),Ti=n(6598);function Ai(){return/th$/i.test((0,Ti.getLocale)().languageTag)}function Pi(e){return e.toString().slice(-2)}const Di="i",Ii="u";function Mi(e,t){let n=(0,Ri.Az)(Fi(t));if(Ai()&&(n=function(e,t){const n=function(e){return(0,f.Z)(1,arguments),(0,a.Z)(e).getFullYear()}(e)+543,r=(0,Ni.Z)(e,{locale:(0,Ti.getDateFnsLocale)()})+543;return(0,Ri.v4)(t,[{existing:"yy",replacement:`'${Pi(n)}'`},{existing:"yyyy",replacement:`'${n}'`},{existing:"YY",replacement:`  ${Pi(r)}'`},{existing:"YYYY",replacement:`'${r}'`}])}(e,n)),n.includes(Ii)){const{startIndex:t,endIndex:i,convertedPattern:o}=zi(n),a=(0,r.Z)(e,o,Vi());return a.slice(0,t)+"0".repeat(i-t)+a.slice(t)}return(0,r.Z)(e,n,Vi())}function Li(e,t,n=new Date){const r=(0,Ri.Az)(Fi(t)),i={...Vi(),mxBuddhistCalendar:Ai()},o=(0,Ri.v4)(r,[{existing:"yyyy",replacement:"yy"}]),a=[o,r,$i(r),$i(o)];for(const t of a){const{startIndex:r,endIndex:o,convertedPattern:a}=zi(t),s=ki(e.slice(0,r)+e.slice(o),a,n,i);if(!isNaN(s.getTime()))return s}}function $i(e){return e.replace(" "," ").replace(" "," ").replace(" "," ")}function Fi(e={type:"datetime"}){return"custom"!==e.type?(0,Ti.getLocale)().patterns[e.type]:e.pattern}function Bi(e){return Fi(e).replace(/('.*?(?:'|$))|(\w)+/g,((e,t,n)=>t?"''"===t?"'":t.replace(/'/g,""):"a"===n?(0,Ti.getLocale)().dates.dayPeriods.join("/"):e.toLowerCase()))}function Vi(){return{useAdditionalDayOfYearTokens:!0,useAdditionalWeekYearTokens:!0,locale:(0,Ti.getDateFnsLocale)()}}function zi(e){return{startIndex:e.indexOf(Ii),endIndex:e.lastIndexOf(Ii),convertedPattern:e.replace(/u+/g,Di)}}},945:(e,t,n)=>{n.r(t),n.d(t,{addEnumerations:()=>o,getEnumerationOptions:()=>s,testClearEnumerations:()=>c,translateEnumeration:()=>a});var r=n(3282);const i=new Map;function o(e){Object.entries(e).forEach((([e,t])=>{i.has(e)||i.set(e,t)}))}function a(e,t){const n=(0,r.ensure)(i.get(e)).find((([e])=>e===t));return n?n[1]:t}function s(e){return(0,r.ensure)(i.get(e)).map((([e])=>e))}function c(){i.clear()}},2726:(e,t,n)=>{n.r(t),n.d(t,{translatedError:()=>d});var r=n(9726),i=n(8157),o=n(7478),a=n(1488),s=n(7026),c=n(9372),l=n(178),u=n(2749);function d(e){switch(!0){case e instanceof s.q:return{type:"error",content:e.description};case e instanceof c.u:return d(e.innerError);case e instanceof l.W:case e instanceof i.j:return{type:"error",content:e.message};case e instanceof r.h:return{type:"error",content:(0,u.translate)("mxui.sys.UI","connection_error")};case e instanceof a.t:return{type:"info",content:(0,u.translate)("mxui.sys.UI","sync_error")};case e instanceof o.n:return{type:"error",content:402===e.status?(0,u.translate)("mendix.signin","http402"):(0,u.translate)("mxui.sys.UI","internal_error")};default:return{type:"error",content:(0,u.translate)("mxui.sys.UI","internal_error")}}}}
66,6598:(e,t,n)=>{n.r(t),n.d(t,{formatAttribute:()=>_,formatValue:()=>x,getDateFnsLocale:()=>w,getLocale:()=>b,parseValue:()=>S,startupLocalization:()=>y});var r=n(3302),i=n(4037),o=n(8486),a=n(6723),s=n(3427),c=n(3282);function l(e){return new RegExp(`^(${e.map(d).join("|")})`,"i")}function u(e){return e.map((e=>new RegExp(`^${d(e)}`,"i")))}function d(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var f=n(8426),h=n(945),p=n(1021),g=n(2749);let m,v;function y(e,t){const n=e.code.toLowerCase().replace("_","-");m={...e,code:n},v=function({dates:e,firstDayOfWeek:t,minimalDaysInFirstWeek:n}){const r={wide:e.eras},i={narrow:e.shortMonths,abbreviated:e.shortMonths,wide:e.months},d={narrow:e.shortWeekdays,short:e.shortWeekdays,abbreviated:e.shortWeekdays,wide:e.weekdays},f={wide:{am:e.dayPeriods[0],pm:e.dayPeriods[1]}},h={any:l(e.eras)},p={any:u(e.eras)},g={narrow:l(e.shortMonths),abbreviated:l(e.shortMonths),wide:l(e.months)},m={narrow:u(e.shortMonths),abbreviated:u(e.shortMonths),wide:u(e.months)},v={narrow:l(e.shortWeekdays),short:l(e.shortWeekdays),abbreviated:l(e.shortWeekdays),wide:l(e.weekdays)},y={narrow:u(e.shortWeekdays),short:u(e.shortWeekdays),abbreviated:u(e.shortWeekdays),wide:u(e.weekdays)},b={any:l(e.dayPeriods)},w={any:{am:(0,c.ensure)(u(e.dayPeriods)[0]),pm:(0,c.ensure)(u(e.dayPeriods)[1])}};return{...s.Z,options:{weekStartsOn:t,firstWeekContainsDate:n},localize:{...s.Z.localize,era:(0,o.Z)({values:r,defaultWidth:"wide"}),month:(0,o.Z)({values:i,defaultWidth:"wide"}),day:(0,o.Z)({values:d,defaultWidth:"wide"}),dayPeriod:(0,o.Z)({values:f,defaultWidth:"wide"})},match:{...s.Z.match,era:(0,a.Z)({matchPatterns:h,defaultMatchWidth:"any",parsePatterns:p,defaultParseWidth:"any"}),month:(0,a.Z)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:m,defaultParseWidth:"wide"}),day:(0,a.Z)({matchPatterns:v,defaultMatchWidth:"wide",parsePatterns:y,defaultParseWidth:"wide"}),dayPeriod:(0,a.Z)({matchPatterns:b,defaultMatchWidth:"any",parsePatterns:w,defaultParseWidth:"any"})}}}(m),r.Big.RM="HALF_UP"===t?1:2}function b(){if(!m)throw new Error("Locale not initialized");return m}function w(){if(!v)throw new Error("DateFns locale not initialized");return v}function x(e,t,n){if(void 0===e)return"";switch(t){case"Decimal":case"Integer":case"Long":if(!(e instanceof r.Big))throw new Error(`Value '${e}' cannot be formatted as a numeric value.`);const t=n,i=null==t?void 0:t.groupDigits,o=null==t?void 0:t.decimalPrecision;return(0,p.formatNumber)(e,i,o);case"DateTime":if(!(e instanceof Date))throw new Error(`Value '${e}' cannot be formatted as Date.`);return(0,f.formatDate)(e,n);case"Boolean":return(0,g.translate)("mxui.common",e.toString());default:return String(e)}}function _(e,t,n){const r=e.getAttributeType(t),o=e.get2(t);let a;switch(r){case"Enum":return void 0!==o?(0,h.translateEnumeration)((0,i.getAttributeEnumerationType)(e.getEntity(),t),o):"";case"Decimal":case"Integer":case"Long":a=null==n?void 0:n.numberFormat;break;
66case"DateTime":a=null==n?void 0:n.dateFormat}return x(o,r,a)}function S(e,t){switch(t){case"Decimal":case"Integer":case"Long":return(0,p.parseNumber)(e);case"DateTime":return(0,f.parseDate)(e);case"Boolean":return e===(0,g.translate)("mxui.common","true");default:return e}}},1021:(e,t,n)=>{n.r(t),n.d(t,{formatNumber:()=>a,parseNumber:()=>o});var r=n(3302),i=n(6598);function o(e,t){const{numbers:n}=(0,i.getLocale)();if(!function(e,t,n){const r=`\\${n}\\d+`;return Boolean(new RegExp(`^-?((\\d+|\\d{1,3}(?:\\${t}\\d{3})*)(${r})?|${r})(e[+-]?\\d+)?$`).exec(e))}(e,n.groupingSeparator,n.decimalSeparator))return;let o;try{o=new r.Big(e.split(n.groupingSeparator).join("").split(n.decimalSeparator).join("."))}catch(e){return}return null!=t&&t>=0?o.round(t):o}function a(e,t,n){const{numbers:r}=(0,i.getLocale)(),o=e.lt(0),a=void 0!==n&&n<0?void 0:n;let[s,c=""]=e.toFixed(a).split(".");if(!s)throw new Error(`Value '${e}' cannot be formatted as number.`);return o&&(s=s.slice(1)),t&&(s=function(e,t=3){const n=[];let r=e;for(;r.length>t;){const e=r.length-t;n.unshift(r.substring(e)),r=r.substring(0,e)}return r&&n.unshift(r),n}(s).join(r.groupingSeparator)),c&&(c=r.decimalSeparator+c),(o?r.minusSign:"")+s+c}},2749:(e,t,n)=>{n.r(t),n.d(t,{NO_TRANSLATION:()=>a,selectTranslation:()=>s,setSystemTexts:()=>l,translate:()=>u,translateLoginMessage:()=>d,updateActiveLanguageIndex:()=>c});var r=n(3282);let i=0,o={};
66const a="[No translation]";function s(e){return e[i]}function c(e,t){const n=e.indexOf(t);i=n>-1?n:0}function l(e){o=e}function u(e,t,...n){const i=o[`${e}.${t}`];return i?(0,r.ensure)(s(i)).replace(/\{(\d+)\}/g,((e,t)=>{var r;return null!==(r=n[t-1])&&void 0!==r?r:e})):a}function d(e){let t=u("mendix.signin",e);return t===a&&window.i18nMap&&(t=window.i18nMap[e]),t}},920:(e,t,n)=>{n.d(t,{$:()=>r});class r extends Error{constructor(e,t,n){super(`Unable to get a member from variable $${e}, because you do not have sufficient permissions to "${t}.${n}".`),this.variableName=e,this.entityName=t,this.attributeName=n,Object.setPrototypeOf(this,r.prototype)}}},5931:(e,t,n)=>{n.d(t,{w:()=>r});class r extends Error{constructor(e){super(`Unable to get a member from an empty variable $${e}.`),this.variableName=e,Object.setPrototypeOf(this,r.prototype)}}},1118:(e,t,n)=>{function r(e,t,n){return{type:"conditional",condition:e,then:t,else:n}}function i(e,t,n){return{type:"function",name:e,parameters:void 0===n?[t]:[t,n]}}function o(e){return{type:"literal",value:e}}function a(e,t){return void 0!==t?{type:"variable",variable:e,path:t}:{type:"variable",variable:e}}n.d(t,{Kb:()=>a,WE:()=>r,mf:()=>i,nj:()=>o})},209:(e,t,n)=>{n.d(t,{L6:()=>fe,CF:()=>de,S9:()=>ue});var r=n(6297),i=n(8569),o=n(1016),a=n(3302),s=n(9013),c=n(3882),l=n(1820),u=n(3946);function d(e,t){(0,c.Z)(2,arguments);var n=(0,u.Z)(t);return(0,l.Z)(e,1e3*n)}function f(e,t){(0,c.Z)(2,arguments);var n=(0,u.Z)(t);return(0,l.Z)(e,6e4*n)}function h(e,t){(0,c.Z)(2,arguments);var n=(0,u.Z)(t);return(0,l.Z)(e,36e5*n)}var p=n(7349);function g(e,t){(0,c.Z)(2,arguments);var n=7*(0,u.Z)(t);return(0,p.Z)(e,n)}var m=n(1640);function v(e,t){(0,c.Z)(2,arguments);var n=3*(0,u.Z)(t);return(0,m.Z)(e,n)}var y=n(1593),b=n(9119),w=n(3703),x=n(8148),_=n(3894),S=n(4135),C=n(876),E=n(5888),O=n(7090),j=n(1218),k=n(7069),R=n(4559),N=n(9319),T=n(8717),A=n(2383),P=n(6598),D=n(3282),I=n(2708),M=n(6921);const L={calendarMonthsBetween:function(e,t){(0,c.Z)(2,arguments);var n=(0,s.Z)(e),r=(0,s.Z)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())},calendarYearsBetween:function(e,t){(0,c.Z)(2,arguments);var n=(0,s.Z)(e),r=(0,s.Z)(t);return n.getFullYear()-r.getFullYear()}},$={addMilliseconds:l.Z,addSeconds:d,addMinutes:f,addHours:h,addDays:p.Z,addWeeks:g,addMonths:m.Z,addQuarters:v,addYears:y.Z},F={beginOfDay:b.Z,beginOfMonth:w.Z,beginOfYear:x.Z},B={endOfDay:_.Z,endOfMonth:S.Z,endOfYear:C.Z},V={beginOfWeek:E.Z,endOfWeek:O.Z}
66,z={subtractMilliseconds:j.Z,subtractSeconds:function(e,t){return(0,c.Z)(2,arguments),d(e,-(0,u.Z)(t))},subtractMinutes:function(e,t){return(0,c.Z)(2,arguments),f(e,-(0,u.Z)(t))},subtractHours:function(e,t){return(0,c.Z)(2,arguments),h(e,-(0,u.Z)(t))},subtractDays:k.Z,subtractWeeks:function(e,t){return(0,c.Z)(2,arguments),g(e,-(0,u.Z)(t))},subtractMonths:R.Z,subtractQuarters:function(e,t){return(0,c.Z)(2,arguments),v(e,-(0,u.Z)(t))},subtractYears:N.Z},U={trimToSeconds:function(e){(0,c.Z)(1,arguments);var t=(0,s.Z)(e);return t.setMilliseconds(0),t},trimToMinutes:T.Z,trimToHours:A.Z,trimToDays:b.Z,trimToMonths:w.Z,trimToYears:x.Z},W={dateTime:(...e)=>q(e,!1,(()=>(0,M.o)("dateTime",...e))),dateTimeUTC:(...e)=>q(e,!0,(()=>(0,M.o)("dateTimeUTC",...e))),dateTimeToEpoch(e){if(e instanceof Date)return new a.Big(e.getTime());throw new Error((0,M.o)("dateTimeToEpoch",e))},epochToDateTime(e){if(e instanceof a.Big)return new Date(Number(e));throw new Error((0,M.o)("epochToDateTime",e))},...Z({millisecondsBetween:1,secondsBetween:1e3,minutesBetween:6e4,hoursBetween:36e5,daysBetween:864e5,weeksBetween:6048e5},(function(e,t,n){const r=e[0],i=e[1];if(r instanceof Date&&i instanceof Date)return new a.Big(r.getTime()).sub(i.getTime()).abs().div(t);throw new Error(n())}),!1),...Z(L,(function(e,t,n){const[r,i]=e;if(r instanceof Date&&i instanceof Date)return new a.Big(t(r,i)).abs();throw new Error(n())}),!1),...Z($,H,!0),...Z(F,G,!1),...Z(V,(function(e,t,n){const r=e[0];if(r instanceof Date)return t(r,{locale:(0,P.getDateFnsLocale)()});throw new Error(n())}),!1),...Z(B,G,!1),...Z(z,H,!0),...Z(U,(function(e,t,n,r){let i=e[0];if(i instanceof Date){r&&(i=(0,I.localizeDate)(i));let e=t(i);return r&&(e=(0,I.delocalizeDate)(e)),e}throw new Error(n())}),!0)};function q(e,t,n){const r=e.map((e=>{if(e instanceof a.Big)return Number(e);throw new Error(n())}));return 1===r.length&&r.push(1),r[1]=(0,D.ensure)(r[1])-1,t?new Date(Date.UTC(...r)):new Date(...r)}function H(e,t,n,r){let i=e[0];const o=e[1];if(i instanceof Date&&o instanceof a.Big){r&&(i=(0,I.localizeDate)(i));let e=t(i,Number(o));return r&&(e=(0,I.delocalizeDate)(e)),e}throw new Error(n())}function G(e,t,n){const r=e[0];if(r instanceof Date)return t(r);throw new Error(n())}function Z(e,t,n){return Object.entries(e).reduce(((e,[r,i])=>{if(e[r]=(...e)=>t(e,i,(()=>(0,M.o)(r,...e))),n){const n=`${r}UTC`;e[n]=(...e)=>t(e,i,(()=>(0,M.o)(n,...e)),!0)}return e}),{})}var K=n(5931),X=n(6393),Y=n(8426),Q=n(945),J=n(1021);const ee={toString:e=>e instanceof a.Big?e.toString():void 0===e?"":e instanceof Date?(0,Y.formatDate)(e,{type:"datetime"}):String(e),parseInteger(e,t){if("string"==typeof e){if(/^-?\d+$/.test(e)){const t=new a.Big(e);return t.eq(-0)?t.abs():t}if(void 0===t)throw new Error(`Not parsable to Integer: ${e}`);return t}throw new Error((0,M.o)("parseInteger",e))},parseDecimal(e,t){if("string"==typeof e){const n=(0,J.parseNumber)(e);if(void 0===n&&void 0===t)throw new Error(`Not parsable to Decimal: ${e}`);return void 0===n?t:n}throw new Error((0,M.o)("parseDecimal",e))},formatDecimal(e){if(e instanceof a.Big)return(0,J.formatNumber)(e);throw new Error((0,M.o)("formatDecimal",e))},parseDateTime:(...e)=>te(e,!1,(0,M.o)("parseDateTime",...e)),parseDateTimeUTC:(...e)=>te(e,!0,(0,M.o)("parseDateTimeUTC",...e)),formatDate:e=>ne(e,{type:"date"},!1,(0,M.o)("formatDate",e)),formatDateUTC:e=>ne(e,{type:"date"},!0,(0,M.o)("formatDateUTC",e)),formatTime:e=>ne(e,{type:"time"},!1,(0,M.o)("formatTime",e)),formatTimeUTC:e=>ne(e,{type:"time"},!0,(0,M.o)("formatTimeUTC",e)),formatDateTime:(...e)=>ne(e[0],re(e[1]),!1,(0,M.o)("formatDateTime",...e)),formatDateTimeUTC:(...e)=>ne(e[0],re(e[1]),!0,(0,M.o)("formatDateTimeUTC",...e)),getCaption(e,t){if(void 0===e)return"";if("string"==typeof e&&"string"==typeof t)return(0,Q.translateEnumeration)(t,e);throw new Error((0,M.o)("getCaption",e,t))},getKey(e){if(void 0===e)return"";if("string"==typeof e)return e;throw new Error((0,M.o)("getKey",e))},_format(e,t){if("string"==typeof t){const n=JSON.parse(t),r=e instanceof a.Big?"Decimal":e instanceof Date?"DateTime":"boolean"==typeof e?"Boolean":"Str
66ing";return(0,P.formatValue)(e,r,n)}throw new Error((0,M.o)("_format",e,t))}};function te(e,t,n){const[r,i,o]=e;if("string"==typeof r&&"string"==typeof i){const e=(0,Y.parseDate)(r.trim(),{type:"custom",pattern:(0,X.$M)(i.trim())});if(e instanceof Date)return t?(0,I.delocalizeDate)(e):e;if(o instanceof Date)return o;throw new Error(`Unparseable date: "${r}"`)}throw new Error(n)}function ne(e,t,n,r){if(e instanceof Date)return n&&(e=(0,I.localizeDate)(e)),"custom"!==t.type&&(t={type:"custom",pattern:(0,P.getLocale)().nanoflowPatterns[t.type]}),(0,Y.formatDate)(e,t);throw new Error(r)}function re(e){return"string"==typeof e?{type:"custom",pattern:(0,X.$M)(e)}:{type:"datetime"}}function ie(e,t){if(e instanceof Array)return e;if((0,D.isString)(e))return e.length>0?[e]:[];if(void 0===e)return[];throw new Error(t)}const oe={toUpperCase:e=>ae(e).toUpperCase(),toLowerCase:e=>ae(e).toLowerCase(),trim:e=>ae(e).trim(),startsWith:(e,t)=>(e=ae(e),t=ae(t),e.substr(0,t.length)===t),endsWith:(e,t)=>(e=ae(e),t=ae(t),e.substr(e.length-t.length)===t),substring(e,t,n){if(e=ae(e),null==t?void 0:t.gte(0)){if(2===arguments.length)return e.substr(Number(t));if(null==n?void 0:n.gte(0))return e.substr(Number(t),Number(n))}throw new Error((0,M.o)("substring",e,t,n))},find(e,t,n){if(e=ae(e),t=ae(t),2===arguments.length)return new a.Big(e.indexOf(t));if(void 0!==n)return new a.Big(e.indexOf(t,Number(n)));throw new Error((0,M.o)("find",e,t,n))},findLast(e,t,n){if(e=ae(e),t=ae(t),2===arguments.length)return new a.Big(e.lastIndexOf(t));if(void 0!==n)return new a.Big(e.lastIndexOf(t,Number(n)));throw new Error((0,M.o)("findLast",e,t,n))},length:e=>new a.Big(ae(e).length),urlEncode:e=>encodeURIComponent(ae(e)).replace("%20","+"),urlDecode:e=>decodeURIComponent(ae(e).replace("+","%20")),isMatch(e,t){if(void 0!==t)return new RegExp(`^(${t})$`).test(ae(e));throw new Error((0,M.o)("isMatch",e,t))},replaceFirst(e,t,n){if(void 0!==t&&void 0!==n){const r=n.replace(/\$/g,"$$$$");return ae(e).replace(new RegExp(t),r)}throw new Error((0,M.o)("replaceFirst",e,t))},replaceAll(e,t,n){if(void 0!==t&&void 0!==n){const r=n.replace(/\$/g,"$$$$");return ae(e).replace(new RegExp(t,"g"),r)}throw new Error((0,M.o)("replaceAll",e,t))}};function ae(e){return void 0===e?"":e}const se={not:e=>!e,"=":(e,t)=>e instanceof a.Big&&t instanceof a.Big?e.eq(t):e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():"string"==typeof e||"string"==typeof t?(null!=e?e:"")===(null!=t?t:""):e instanceof Array&&t instanceof Array?e.length===t.length&&e.every((e=>t.includes(e))):e instanceof Array&&void 0===t?0===e.length:void 0===e&&t instanceof Array?0===t.length:e===t,"!=":(e,t)=>!se["="](e,t),">"(e,t){if(e instanceof a.Big&&t instanceof a.Big)return e.gt(t);if(e instanceof Date&&t instanceof Date)return e.getTime()>t.getTime();if(void 0===e||void 0===t)throw new Error((0,M.o)(">",e,t));return e>t},">=":(e,t)=>se["="](e,t)||se[">"](e,t),"<"(e,t){if(e instanceof a.Big&&t instanceof a.Big)return e.lt(t);if(e instanceof Date&&t instanceof Date)return e.getTime()<t.getTime();if(void 0===e||void 0===t)throw new Error((0,M.o)("<",e,t));return e<t},"<=":(e,t)=>se["="](e,t)||se["<"](e,t),contains:(e,t)=>e instanceof Array&&"string"==typeof t?e.includes(t):e instanceof Array&&t instanceof Array?t.every((t=>e.includes(t))):ae(e).includes(ae(t))},ce={"+"(e,t){if(e instanceof a.Big&&t instanceof a.Big)return e.plus(t);if("string"==typeof e)return e+(void 0!==t?t.toString():"");if("string"==typeof t)return(void 0!==e?e.toString():"")+t;throw new Error((0,M.o)("+",e,t))},"-"(e,t){if(1===arguments.length&&void 0!==e)return e.times(-1);if(void 0!==e&&void 0!==t)return e.minus(t);throw new Error((0,M.o)("-",e,t))},"*"(e,t){if(void 0!==e&&void 0!==t)return e.times(t);throw new Error((0,M.o)("*",e,t))},div(e,t){if(void 0!==e&&void 0!==t)return e.div(t);throw new Error((0,M.o)("div",e,t))},mod(e,t){if(void 0!==e&&void 0!==t)return e.mod(t);throw new Error((0,M.o)("mod",e,t))},":":(e,t)=>ce.div(e,t),max(...e){if(e[0]instanceof a.Big)return e.reduce(((e,t)=>e.gt(t)?e:t));if(e[0]instanceof Date)return e.reduce(((e,t)=>e.getTime()>t.getTime()?e:t));throw new Error((0,M.o)("max",...e))},min(...e){if(e[0]instanceof a.Big)return e.reduce(((e,t)=>e.lt(t)?e:t));if(e[0]instanceof Date)return e.reduce(((e,t)=>e.getTime()<t.getTime()?e:t));throw new Error((0,M.o)("min",...e))},round(e,t){if(e instanceof a.Big)return e.round(void 0===t?0:Number(t));throw new Error((0,M.o)("round",e))},random:()=>new a.Big(Math.random()),floor(e){if(e instanceof a.Big){const t=e.mod(1);
66return t.eq(0)?e.eq(-0)?e.abs():e:e.minus(t).minus(e.lt(0)?1:0)}throw new Error((0,M.o)("floor",e))},ceil(e){if(e instanceof a.Big){const t=ce.floor(e.times(-1));return t.eq(0)?t:t.times(-1)}throw new Error((0,M.o)("ceil",e))},pow(e,t){if(e instanceof a.Big&&t instanceof a.Big)return Number(t)===Math.floor(Number(t))?e.pow(Number(t)):new a.Big(Math.pow(Number(e),Number(t)));throw new Error((0,M.o)("pow",e))},abs(e){if(e instanceof a.Big)return e.abs();throw new Error((0,M.o)("abs",e))},sqrt(e){if(e instanceof a.Big&&e.gte(0))return e.sqrt();throw new Error((0,M.o)("sqrt",e))}},le={...W,...{_newList:()=>[],_toList:e=>ie(e,(0,M.o)("_toList",e)),_addToList(e,t){const n=ie(e,(0,M.o)("_addToList",e,t)),r=ie(t,(0,M.o)("_addToList",e,t));return n.concat(r.filter((e=>!n.includes(e))))},_removeFromList(e,t){const n=ie(e,(0,M.o)("_removeFromList",e,t)),r=ie(t,(0,M.o)("_removeFromList",e,t));return n.filter((e=>!r.includes(e)))},_intersectLists(e,t){const n=ie(e,(0,M.o)("_intersectLists",e,t)),r=ie(t,(0,M.o)("_intersectLists",e,t));return n.filter((e=>r.includes(e)))},_listContains(e,t){const n=ie(e,(0,M.o)("_listContains",e,t)),r=ie(t,(0,M.o)("_listContains",e,t));return r.length>0&&r.every((e=>n.includes(e)))},_head(e){if(e instanceof Array)return e.length>0?e[0]:void 0;if(void 0!==e)throw new Error((0,M.o)("_head",e))}},...se,...ce,...oe,...ee,isNew:e=>void 0!==e&&mx.data.isNew(e),isSynced(e){if(void 0!==e)return!(0,r.tt)(e);throw new Error((0,M.o)("isSynced",e))},isSyncing:{fn:()=>(0,i.K)(),staticDependencies:[{param:"synchronizationState"}]},_hasSomeRole:(...e)=>(0,o.getSession)().hasSomeRole(e),_isNamedUser:()=>!(0,o.getSession)().isGuest(),_catchEmptyVar:{fn:(e,t)=>null!=e?e:t,errorHandler:(e,t)=>0===t&&e instanceof K.w?{value:void 0}:void 0}};function ue(e){return"staticDependencies"in e}function de(e){return"errorHandler"in e}const fe=(he=le,e=>{const t=he[e];if(function(e){return"object"==typeof e&&null!==e?!(!("fn"in e)||"function"!=typeof e.fn||"staticDependencies"in e&&!Array.isArray(e.staticDependencies)||"errorHandler"in e&&"function"!=typeof e.errorHandler):"function"==typeof e}(t))return t;throw new Error(`Function ${e} is not known`)});var he},1409:(e,t,n)=>{n.d(t,{_M:()=>k,J8:()=>O,Px:()=>R,yG:()=>N,lq:()=>j,pI:()=>P,_Z:()=>T,Qr:()=>A});var r=n(2188),i=n(3698),o=n(7606),a=n(1016),s=n(3282),c=n(234),l=n(6218),u=n(8714),d=n(1881),f=n(567),h=n(920),p=n(5931),g=n(3302),m=n(209);function v(e,t){return e.some((e=>e instanceof Promise))?Promise.all(e).then(t):t(e)}var y=n(4063),b=n.n(y),w=n(3482),x=n(4037);class _{constructor(e,t){this.getVariable=e,this.dependencies=[];const{trackDependencies:n=!0,allowEmptyVariablesAccess:r=!1}=null!=t?t:{};this.trackDependencies=n,this.allowEmptyVariableAccess=r}resolveVariable(e){const t=this.getVariable(e);return this.trackDependencies&&((0,s.isArrayOf)(w.MxObject,t)?t.forEach((e=>this.addDependency({guid:e.getGuid()}))):t instanceof w.MxObject&&this.addDependency({guid:t.getGuid()})),(0,l.AO)(t)}resolveAttribute(e,t){const n=this.resolveObjectVariable(e);return void 0===n?void 0:this.resolveAttributeOf(n,t,e)}async resolvePath(e,t){const n=t.split("/"),r=n.length%2==1?n.pop():void 0,o=this.resolveObjectVariable(e);if(void 0===o)return o;let a=[o],l=!1,u=(0,s.ensure)(a[0]).getEntity();for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1],c=(0,x.getAttributeType)(u,r);if(!c)throw new h.$(e,u,r);"ObjectReferenceSet"===c&&(l=!0);const d=u;u=o;const f=(0,s.uniqueBy)(a.flatMap((t=>{if(!t.has(r))throw new h.$(e,d,r);return t.getChildren(r)})),(e=>e.getGuid()));if(f.length){a=f.filter((e=>e.isA(o)));continue}const p=(0,s.unique)(a.flatMap((t=>{if(this.addDependency({guid:t.getGuid(),attr:r}),!t.has(r))throw new h.$(e,d,r);return t.getReferences(r)})));this.trackDependencies&&p.forEach((e=>this.addDependency({guid:e}))),a=(await(0,i.MR)(p)).filter((e=>e.isA(o)))}if(void 0===r){const e=a.map((e=>e.getGuid()));return l?e:e[0]}if(l)throw new c.AssertionError;return a.length?this.resolveAttributeOf((0,s.ensure)(a[0]),r,e):void 0}getDependencies(){return this.dependencies.slice()}resolveObjectVariable(e){const t=this.getVariable(e);if(void 0!==t){if(!(t instanceof w.MxObject))throw new c.AssertionError;this.addDependency({guid:t.getGuid()})}else if(!this.allowEmptyVariableAccess)throw new p.w(e);return t}resolveAttributeOf(e,t,n){if("type"===t)return e.getEntity();if(!e.has(t))throw new h.$(n,e.getEntity(),t);return this.addDependency({guid:e.getGuid(),attr:t}),e.get2(t)}addDependency(e){this.trackDependencies&&(this.dependencies.find((t=>b()(t,e)))||this.dependencies.push(e))}}var S=n(8862);const C=o.LogManager.get().getLogger(),E=new class{constructor(e,t,n){this.getExpressionFunction=e,this.expressionTokens=t,this.getConstants=n}evaluate(e,t){switch(e.type){case"variable":return e.path?e.path.includes("/")?t.resolvePath(e.variable,e.path):t.resolveAttribute(e.variable,e.path):t.resolveVariable(e.variable);case"conditional":return v([this.evaluate(e.condition,t)],(([n])=>this.evaluate(n?e.then:e.else,t)));case"function":const n=this.getExpressionFunction(e.name),r=(0,m.CF)(n)?n.errorHandler:void 0;return v(function(e,t,n,r){const i=[];let o=!1;
66return n.forEach(((n,a)=>{let s;try{s=e.evaluate(n,t),s instanceof Promise&&(s=s.then(void 0,(e=>{const t=null==r?void 0:r(e,a);return t?Promise.resolve(t.value):Promise.reject(e)})),o=!0)}catch(e){const t=null==r?void 0:r(e,a);if(t)s=t.value;else{if(!o)throw e;s=Promise.reject(e)}}i.push(s)})),i}(this,t,e.parameters,r),(e=>{const r="fn"in n?n.fn:n;return(0,m.S9)(n)&&n.staticDependencies.forEach((e=>{t.addDependency(e)})),r(...e)}));case"literal":return"number"==typeof e.value?new g.Big(e.value):null===e.value?void 0:e.value;case"token":return(0,s.ensure)(this.expressionTokens[e.name])();case"constant":const i=(0,s.ensure)(this.getConstants().find((({name:t})=>e.name===t)));return(0,l.N5)(i.value,i.type)}}}(m.L6,(0,S.t)((()=>new Date)),(()=>(0,a.getSession)().getConstants()));function O(e,t,n,r={}){const i=new _((n=>(0,s.containsKey)(n,r)?(0,s.ensure)(r[n])():function(e,t){const n=e.getWidgetObject(t);return(null==n?void 0:n.isUnavailable())?void 0:n}(t,(0,s.ensure)(e.args[n])))),o=E.evaluate(e.expr,i);return n.push(...i.getDependencies()),D(o)}function j(e,t){const n=new _((e=>(0,s.ensure)(t[e])()));return D(E.evaluate(e.expr,n))}async function k(e,t){const n=new _((e=>(0,l.IA)(t[e])));return E.evaluate(e,n)}async function R(e,t){const n=new _((e=>"currentObject"===e?t:(0,s.crash)()),{trackDependencies:!1});return E.evaluate(e,n)}async function N(e,t,n){const r=await E.evaluate(e,new _((e=>t.get(e)),{trackDependencies:!1,allowEmptyVariablesAccess:!0}));switch(n){case"primitive":return r;case"list":return Array.isArray(r)?(0,i.MR)(r):void 0===r?[]:(0,s.crash)();case"object":return"string"==typeof r?(0,i.m3)(r):void 0===r?void 0:(0,s.crash)()}}function T(e,t,n,r={}){return P(e,t,(t=>A(e,n,t)),r)}function A(e,t,n){const[r]=t.useSlot(n,"object");return(0,u.fromComputation$)(`Parameter of ${(0,s.lowerCaseFirst)(e)}: ${(0,s.toFriendlyId)(n)}`,(()=>{var e;return null!==(e=r.dependOn())&&void 0!==e?e:(0,f.loading)()}))}function P(e,t,n,i={}
66){const o=(0,s.mapValues)(t.args,n),[a,l]=(0,u.useValue)(`Dependencies of ${(0,s.lowerCaseFirst)(e)}`,{}),g=(0,u.fromRequest$)(`Computation of ${(0,s.lowerCaseFirst)(e)}`,(()=>{a.dependOn();const n=[],r=new _((e=>{if((0,s.containsKey)(e,i)){const t=(0,s.ensure)(i[e]);return n.push((()=>t.dependOn())),(0,u.readUntracked)(t)}const t=(0,s.ensure)(o[e]);n.push((()=>t.dependOn()));const r=(0,u.readUntracked)(t);if("loading"===r.status)throw new I;return"available"===r.status?r.value:void 0}));try{const e=E.evaluate(t.expr,r);return e instanceof Promise?[c((0,f.loading)()),e.then((e=>c((0,f.available)(e))),l)]:c((0,f.available)(e))}catch(e){return l(e)}function c(e){return n.push(...r.getDependencies().map((e=>()=>(0,u.dependOnSubscription)(e)))),(0,f.available)((0,s.tuple)(e,n))}function l(t){return t instanceof I?c((0,f.loading)()):t instanceof h.$||t instanceof p.w?(C.debug(`An error occurred while evaluating ${(0,s.lowerCaseFirst)(e)}: ${t.message}`),c((0,f.unavailable)())):((0,d.handleError)(new Error(`An error occurred while evaluating ${(0,s.lowerCaseFirst)(e)}: ${t instanceof Error?t.message:t}`)),c((0,f.unavailable)()))}})),m=(0,u.getPreviousValue$)(g);return(0,u.fromComputation$)(e,(()=>{const e=g.dependOn();if("available"!==e.status)throw new c.AssertionError;return e.value[1].forEach((e=>e())),e===m.dependOn()&&(0,u.scheduleSideEffect)((0,r.action)((()=>l({})))),e.value[0]}))}function D(e){if(e instanceof Promise)throw new c.AssertionError;return e}class I extends Error{constructor(){super(),Object.setPrototypeOf(this,I.prototype)}}},8862:(e,t,n)=>{n.d(t,{t:()=>S});var r=n(7349),i=n(7069),o=n(8717),a=n(9013),s=n(3882),c=n(2383),l=n(9119),u=n(3894),d=n(5888),f=n(7090),h=n(3703),p=n(4135),g=n(8148),m=n(876),v=n(1016),y=n(6598),b=n(2708);function w(e,t){return(n,i)=>(0,r.Z)(e(n,i),t)}function x(e,t){return(n,r)=>(0,i.Z)(e(n,r),t)}const _={beginOfCurrentMinute:o.Z,endOfCurrentMinute:function(e){(0,s.Z)(1,arguments);var t=(0,a.Z)(e);return t.setSeconds(59,999),t},beginOfCurrentHour:c.Z,endOfCurrentHour:function(e){(0,s.Z)(1,arguments);var t=(0,a.Z)(e);return t.setMinutes(59,59,999),t},beginOfCurrentDay:l.Z,endOfCurrentDay:u.Z,beginOfCurrentWeek:d.Z,endOfCurrentWeek:f.Z,beginOfCurrentMonth:h.Z,endOfCurrentMonth:p.Z,beginOfCurrentYear:g.Z,endOfCurrentYear:m.Z,beginOfYesterday:x(l.Z,1),endOfYesterday:x(u.Z,1),beginOfTomorrow:w(l.Z,1),endOfTomorrow:w(u.Z,1)};function S(e){const t={currentUser:()=>(0,v.getSession)().getUserId(),currentDateTime:e};return Object.entries(_).forEach((([n,r])=>{t[n]=()=>r(e(),{locale:(0,y.getDateFnsLocale)()}),t[n+"UTC"]=()=>(0,b.delocalizeDate)(r((0,b.localizeDate)(e())))})),t}},6921:(e,t,n)=>{n.d(t,{H:()=>o,o:()=>i});var r=n(234);function i(e,...t){return`Operator ${e} not supported in expression ${e}(${t.join(", ")})`}function o(e){const t=Number(e);if(isNaN(t))throw new r.AssertionError("Unexpected expression value");return t}},7026:(e,t,n)=>{n.d(t,{q:()=>i});var r=n(178);class i extends r.W{constructor(e,t,n){super(`${e}\n\nNanoflow stack:\n${n}`),this.nanoflowStack=n,Object.setPrototypeOf(this,i.prototype),this.description=e,this.stack=t}}},9372:(e,t,n)=>{n.d(t,{u:()=>r});class r extends Error{constructor(e,t){super(`${e instanceof Error?e.message:String(e)}\n\nNanoflow stack:\n${t}`),this.innerError=e,this.nanoflowStack=t,Object.setPrototypeOf(this,r.prototype),e instanceof Error&&(this.stack=e.stack)}}},5087:(e,t,n)=>{n.d(t,{Ei:()=>xe,Wi:()=>be,ax:()=>_e});class r{begin(){}end(){}}class i{begin(e){performance.mark(e)}end(e){performance.measure(e,e)}}function o(){return(null===window||void 0===window?void 0:window.MX_ENABLE_PERFORMANCE_TRACKING)&&"undefined"!=typeof performance}var a,s=n(3282),c=n(234),l=n(5991),u=n(1409),d=n(3302),f=n(3896);function h(e){switch(e.type){case"nanoflowCall":return`Call nanoflow: ${(0,f.getNanoflow)(e.flow).name}`;case"microflowCall":return`Call microflow: ${e.operationId}`;case"javaScriptActionCall":return"string"==typeof e.action?`Call JavaScript Action: ${e.action}`:"Call JavaScript Action";case"openForm":return"Show page"+e.path;case"aggregate":return`Aggregate list $${e.inputVar}`;case"sortList":return`Sort list $${e.inputVar}`;case"filterListByExpression":case"filterList":return`Filter list $${e.inputVar}`;case"rangeFromList":return`Range from list $${e.inputVar}`;case"setVariable":return`Set variable $${e.outputVar}`;case"synchronize":const t="specific"===e.syncType?`: ${e.variableNames.map((e=>`$${e}`)).join(", ")}`:"";return`Synchronize ${e.syncType} objects${t}`;case"associationRetrieve":return`Retrieve $${e.inputVar}/${e.association}`;case"databaseRetrieve":return`Retrieve ${e.entity} from database`;case"createObject":return`Create object $${e.outputVar}`;
66case"changeObject":return`Change object $${e.inputVar}/${e.member}`;case"commitObjects":return`Commit object(s) $${e.inputVar}`;case"deleteObjects":return`Delete object(s) $${e.inputVar}`;case"rollbackObjects":return`Rollback object(s) $${e.inputVar}`;case"whileLoop":return"Loop (while)";case"listLoop":return`Loop list $${e.listVar}`;default:return e.type.charAt(0).toUpperCase()+e.type.slice(1)}}!function(e){e.Sum="Sum",e.Average="Average",e.Count="Count",e.Minimum="Minimum",e.Maximum="Maximum"}(a||(a={}));class p{constructor(){this.instructionType="aggregate"}async execute(e,t){const n=t.getScope().get(e.inputVar);if(!Array.isArray(n))throw new c.AssertionError;e.operation===a.Count?t.getScope().set(e.outputVar,new d.Big(n.length)):t.getScope().set(e.outputVar,function(e,t,n){const r=e.map((e=>e.get2(n))).filter((e=>e instanceof d.Big));switch(t){case a.Minimum:return 0===r.length?void 0:r.reduce(((e,t)=>t.lt(e)?t:e),(0,s.ensure)(r[0]));case a.Maximum:return 0===r.length?void 0:r.reduce(((e,t)=>t.gt(e)?t:e),(0,s.ensure)(r[0]));case a.Average:return 0===r.length?void 0:g(r).div(r.length);case a.Sum:return g(r);default:return}}(n,e.operation,e.member))}}function g(e){return e.reduce(((e,t)=>e.plus(t)),new d.Big(0))}class m{constructor(e){this.evaluateExp=e,this.instructionType="filterListByExpression"}async execute(e,t){const n=t.getScope().get(e.inputVar);let r;const i=t.getScope();try{if(!Array.isArray(n))throw new c.AssertionError;if(e.retrieveSingleObject){for(const o of n)if(i.set("currentObject",o),await this.evaluateExp(e.expr,t.getScope(),"primitive")){r=o;break}}else{r=[];for(const o of n)i.set("currentObject",o),await this.evaluateExp(e.expr,t.getScope(),"primitive")&&r.push(o)}}finally{i.set("currentObject",void 0)}i.set(e.outputVar,r)}}const v=(0,n(209).L6)("=");class y{constructor(e){this.evaluateExp=e,this.instructionType="filterList"}async execute(e,t){const n=t.getScope().get(e.inputVar),r=await this.evaluateExp(e.expectedValue,t.getScope(),"primitive");if(!Array.isArray(n))throw new c.AssertionError;function i(t){const n=t.get2(e.attribute);return v(n,r)}e.retrieveSingleObject?t.getScope().set(e.outputVar,n.find(i)):t.getScope().set(e.outputVar,n.filter(i))}}var b=n(6218);class w{constructor(e,t){this.evaluateExp=e,this.executeNanoflow=t,this.instructionType="javaScriptActionCall"}async execute(e,t){const n=await Promise.all(e.parameters.map((async e=>"nanoflowId"===e.kind?this.createNanoflowWrapper(e.value,t):this.evaluateExp(e.value,t.getScope(),e.kind)))),r=await(0,f.getJavaScriptAction)(e.action),i=await r(...n);e.outputVar&&t.getScope().set(e.outputVar,(0,b.qL)(i))}createNanoflowWrapper(e,t){if(void 0!==e)return(n={})=>{const r=Object.keys(n).map((e=>({name:e,value:(0,b.qL)(n[e])})));return this.executeNanoflow(e,r,t)}}}class x{constructor(){this.instructionType="jump"}async execute(e,t){return{goto:e.target}}}class _{constructor(e){this.executeInstructions=e,this.instructionType="listLoop"}async execute(e,t){const n=t.getScope().get(e.listVar);if(!Array.isArray(n))throw new c.AssertionError;for(const r of n)if(t.getScope().set(e.iteratorVar,r),await this.executeInstructions(e.body,t))break}}var S=n(3482),C=n(7223),E=n(7606),O=n(6559);class j{constructor(e){this.evaluateFlowExpression=e,this.instructionType="microflowCall",this.logger=E.LogManager.get().getLogger(E.LogNode.Nanoflow)}async execute({operationId:e,parameters:t,outputVar:n},r){const i=new O.u;this.logger.debug(`[${r.executionId}] Starting microflow call ${e}.`);const o=await this.toRuntimeArguments(t,r),a=mx.isOffline()?await(0,C.offlineData)().executeMicroflow(e,o):await(0,C.onlineData)().executeMicroflow(e,o,r.currentForm);void 0!==n&&r.getScope().set(n,a),this.logger.debug(`[${r.executionId}] Finished microflow call ${e} in ${i.measure()} milliseconds.`)}async toRuntimeArguments(e,t){const n={};for(const{name:r,value:i,kind:o}of e){const e=await this.evaluateFlowExpression(i,t.getScope(),o);if("object"===o&&e instanceof S.MxObject)n[r]={guid:e.getGuid()};else if("list"===o&&Array.isArray(e))n[r]={guids:e.map((e=>e.getGuid()))};else if("primitive"===o){const t=(0,b.dw)(e);null!==t&&(n[r]={value:t})}}return n}}class k{constructor(e,t){this.evaluateExpression=e,this.executeNanoflow=t,this.instructionType="nanoflowCall"}async execute({flow:e,parameters:t,outputVar:n},r){const i=await Promise.all(t.map((async e=>({name:e.name,value:await this.evaluateExpression(e.value,r.getScope(),e.kind)})))),o=await this.executeNanoflow(e,i,r);void 0!==n&&r.getScope().set(n,o)}}class R{constructor(){this.instructionType="associationRetrieve"}async execute(e,t){const{inputVar:n,association:r,entity:i,retrieveSingleObject:o,direction:a,outputVar:s,queryId:l}=e,u=t.getScope().get(n);if(void 0===u)return void t.getScope().set(s,o?void 0:[]);if(!(u instanceof S.MxObject))throw new c.AssertionError;const d=mx.isOffline()?await async function(e,t,n,r){return new Promise(((i,o)=>{mx.data.get({guid:e.getGuid(),path:t,entity:n,direction:r,callback:i,error:o})}))}(u,r,i,a):(await(0,C.onlineData)().retrieveByPathUsingQueryIdOrCache(u.getGuid(),r,a,i,l)).mxObjects;t.getScope().set(s,o?d[0]:d)}}class N{constructor(e){this.evaluateExp=e,this.instructionType="changeOb
66ject"}async execute(e,t){const n=t.getScope().get(e.inputVar);if(void 0===n)return;if(!(n instanceof S.MxObject))throw new c.AssertionError;if(n.isReadonlyAttr(e.member))throw new Error(`Cannot set $${e.inputVar}/${e.member} because it is read-only`);const r=await this.evaluateExp(e.value,t.getScope(),"primitive");n.set2(e.member,r instanceof d.Big?r.round(8):r)}}function T(e,t){const n=t.getScope().get(e);if(n instanceof S.MxObject)return[n];if(Array.isArray(n)||void 0===n)return n;throw new c.AssertionError}class A{constructor(){this.instructionType="commitObjects"}async execute(e,t){const n=T(e.inputVar,t);void 0!==n&&(mx.isOffline()?await new Promise(((e,t)=>mx.data.commit({mxobjs:n,callback:e,error:t}))):await(0,C.onlineData)().executeObjectAction(e.operationId,"commit",n))}}class P{constructor(){this.instructionType="createObject"}async execute(e,t){let n;n=mx.isOffline()?await(0,C.offlineData)().create(e.objectType):await(0,C.onlineData)().createObject(e.objectType,e.operationId),t.getScope().set(e.outputVar,n)}}var D=n(6610);class I{constructor(e){this.evaluateExp=e,this.instructionType="databaseRetrieve"}async execute(e,t){const{entity:n,constraints:r,limitExpr:i,offsetExpr:o,takeFirst:a,sort:s,outputVar:c}=e,l=t.getScope(),u=i?await this.evaluateExp(i,l,"primitive"):void 0,d=o?await this.evaluateExp(o,l,"primitive"):void 0,f={...d?{offset:Number(d)}:{},...u?{amount:Number(u)}:{},...s?{sort:s}:{}},{mxObjects:h}=mx.isOffline()?await(0,C.offlineData)().retrieve(n,r?(0,D.By)(r,(e=>l.get(e))):void 0,f):await(0,C.onlineData)().retrieveByXPath(e.queryId,r?(0,D.zj)(r,(e=>l.get(e))):{},"",f,!1);l.set(c,a?h[0]:h)}}class M{constructor(){this.instructionType="deleteObjects"}async execute(e,t){const n=t.getScope().get(e.inputVar);let r=[];if(n instanceof S.MxObject)r=[n];else{if(!Array.isArray(n)){if(void 0===n)return;throw new c.AssertionError}if(0===n.length)return;r=(0,s.uniqueBy)(n,(e=>e.getGuid()))}mx.isOffline()?await(0,C.offlineData)().delete(r):await(0,C.onlineData)().executeObjectAction(e.operationId,"delete",r)}}class L{constructor(){this.instructionType="rollbackObjects"}async execute(e,t){const n=T(e.inputVar,t);void 0!==n&&(mx.isOffline()?await new Promise(((e,t)=>mx.data.rollback({mxobjs:n,callback:e,error:t}))):await(0,C.onlineData)().executeObjectAction(e.operationId,"rollback",n))}}class ${constructor(){this.instructionType="synchronize"}async execute(e,t){if(mx.isOffline())switch(e.syncType){case"all":await(0,C.offlineData)().runFullSynchronization();break;case"unsynchronized":const{dirtyObjects:n}=await(0,C.offlineData)().retrieveDirtyObjects(!0),r=await(0,C.offlineData)().retrieveDeletes();(n.length>0||Object.keys(r).length>0)&&await(0,C.offlineData)().selectiveSync(n,r);break;case"specific":const{variableNames:i}=e,o=i.flatMap((e=>{const n=t.getScope().get(e);if(n instanceof S.MxObject||Array.isArray(n))return n;if(void 0===n)return[];throw new c.AssertionError}));o.length>0&&await(0,C.offlineData)().selectiveSync((0,s.uniqueBy)(o,(e=>e.getGuid())))}}}var F=n(6921);class B{constructor(e){this.evaluateExp=e,this.instructionType="rangeFromList"}async execute(e,t){const n=t.getScope().get(e.inputVar);if(!Array.isArray(n))throw new c.AssertionError;const r=(0,F.H)(await this.evaluateExp(e.offset,t.getScope(),"primitive")),i=(0,F.H)(await this.evaluateExp(e.limit,t.getScope(),"primitive")),o=r<=0?0:r,a=i<=0?Number.MAX_SAFE_INTEGER:i;t.getScope().set(e.outputVar,n.slice(o,o+a))}}class V{constructor(e){this.evaluateExp=e,this.instructionType="return"}async execute(e,t){return{result:await this.evaluateExp(e.result,t.getScope(),e.resultKind)}}}class z{constructor(e){this.evaluateExp=e,this.instructionType="setVariable"}async execute(e,t){t.getScope().set(e.outputVar,await this.evaluateExp(e.value,t.getScope(),e.outputKind))}}var U=n(4037);class W{constructor(){this.instructionType="sortList"}async execute(e,t){const n=t.getScope().get(e.inputVar);if(!Array.isArray(n))throw new c.AssertionError;let r=n.slice();const i=(0,U.getEntityMeta)(e.entity);e.items.slice().reverse().forEach((e=>{var t,n;const o=null!==(n=null===(t=null==i?void 0:i.attributes[e.attribute])||void 0===t?void 0:t.type)&&void 0!==n?n:"String",[a,c]=(0,s.partition)((t=>{const n=t.get2(e.attribute);return""!==n&&null!=n}),r);
66switch(o){case"DateTime":a.sort(q(e.order,((t,n)=>(0,b.K8)(t.get2(e.attribute))-(0,b.K8)(n.get2(e.attribute)))));break;case"String":case"Enum":case"HashString":a.sort(q(e.order,((t,n)=>{const r=t.get2(e.attribute),i=n.get2(e.attribute);return(r>i?1:0)-(i>r?1:0)})));break;case"AutoNumber":case"Long":case"Integer":case"Decimal":a.sort(q(e.order,((t,n)=>{const r=t.get2(e.attribute),i=n.get2(e.attribute);return r.cmp(i)})));break;case"Boolean":a.sort(q(e.order,((t,n)=>{const r=t.get2(e.attribute);return r===n.get2(e.attribute)?0:r?1:-1})));break;default:throw new Error("Unsupported data type")}r=a.concat(c)})),t.getScope().set(e.outputVar,r)}}function q(e,t){return(n,r)=>{const i=t(n,r);return"desc"===e?-1*i:i}}class H{constructor(e){this.exprEvaluator=e,this.instructionType="switch"}async execute(e,t){const n=await this.exprEvaluator(e.condition,t.getScope(),"primitive"),r=void 0!==n?n.toString():"";if(!(r in e.targets))throw new c.AssertionError;return{goto:(0,s.ensure)(e.targets[r])}}}var G=n(2351);const Z="latestError";class K{constructor(){this.subscriptions=new Map,this.map={},this.map[Z]=void 0}set(e,t){this.map[e]=t,t instanceof S.MxObject?this.subscribeToObjects([t]):Array.isArray(t)&&this.subscribeToObjects(t)}get(e){if(!(e in this.map))throw new c.AssertionError;const t=this.map[e];return t instanceof S.MxObject&&t.isUnavailable()?void 0:Array.isArray(t)?t.filter((e=>!e.isUnavailable())):t}all(){return Object.keys(this.map)}destroy(){this.subscriptions.forEach((e=>e.unsubscribe())),this.subscriptions.clear()}subscribeToObjects(e){for(const t of e){const e=t.getGuid();this.subscriptions.has(e)||this.subscriptions.set(e,(0,G.subscribe)({guid:e}))}}}class X{constructor(e){this.executeInstructions=e,this.instructionType="tryCatch"}async execute(e,t){try{return void await this.executeInstructions(e.body,t)}catch(n){return n instanceof Error?t.getScope().set(Z,n.message):null!=n?t.getScope().set(Z,String(n)):t.getScope().set(Z,void 0),{goto:e.catchTarget}}}}var Y=n(178),Q=n(1881);class J{constructor(e){this.evaluateExp=e,this.instructionType="closeForm"}async execute(e,t){const n=e.numberOfPagesToClose?(0,F.H)(await this.evaluateExp(e.numberOfPagesToClose,t.getScope(),"primitive")):1;if(n<1)throw new Error(`The number of pages to close evaluated to ${n}. It must be at least 1.`);const{currentForm:r}=t;if(void 0===r)throw new Y.W("Cannot close the current page. No open page found.");r.closePage(n).catch((e=>(0,Q.handleError)(e)))}}class ee{constructor(e){this.evaluateExp=e,this.instructionType="openForm"}async execute(e,t){var n,r;const i=e.title?null!==(n=await this.evaluateExp(e.title,t.getScope(),"primitive"))&&void 0!==n?n:"":void 0,o=(await Promise.all(Object.entries(null!==(r=e.inputArgs)&&void 0!==r?r:{}).map((([e,n])=>this.evaluateExp(n,t.getScope(),"object").then((t=>(0,s.tuple)(e,null==t?void 0:t.getGuid()))))))).reduce(((e,[t,n])=>({...e,[t]:n})),{}),a=e.numberOfPagesToClose?(0,F.H)(await this.evaluateExp(e.numberOfPagesToClose,t.getScope(),"primitive")):0;await mx.ui.openForm2(e.path,o,i,t.currentForm,e.params,a)}}class te{constructor(e){this.evaluateExp=e,this.instructionType="showMessage"}async execute(e,t){const n=await this.evaluateExp(e.message,t.getScope(),"primitive"),r=void 0===n?"":n;mx.ui.showMessage(e.messageType,r,e.blocking)}}var ne=n(1525);class re{constructor(e){this.evaluateExp=e,this.instructionType="showValidation"}async execute(e,t){const n=t.getScope().get(e.inputVar);if(void 0===n)throw new Error(`Cannot refresh $${e.inputVar} as it is empty`);if(!(n instanceof S.MxObject))throw new c.AssertionError;const r=await this.evaluateExp(e.text,t.getScope(),"primitive"),i=void 0===r?"":r,o=function(e,t){const n=e[ie]||(e[ie]={});return n[t]||(n[t]={})}(t.getScope(),n.getGuid());o[e.member]=i;const a=new ne.L(n.getGuid(),o);await mx.data.sendValidationUpdates([a])}}const ie=Symbol("validations");class oe{constructor(e){this.evaluateExp=e,this.instructionType="writeLog"}async execute(e,t){const n=await this.evaluateExp(e.message,t.getScope(),"primitive");E.LogManager.get().getLogger(E.LogNode.Nanoflow).log(e.level,n)}}class ae{constructor(e,t){this.executeInstructions=e,this.exprEvaluator=t,this.instructionType="whileLoop"}async execute(e,t){for(;await this.exprEvaluator(e.condition,t.getScope(),"primitive")&&!await this.executeInstructions(e.body,t););}}var se=n(1532),ce=n(2708);class le{constructor(e,t,n=E.LogManager.get()){let r;this.connection=e,this.getNanoflow=t,this.breakpoints=new Map,this.debuggedNanoflows={}
66,this.logger=n.getLogger(E.LogNode.NanoflowDebugger),this.breakpointsReadyPromise=new Promise((e=>{r=e})),e.onInstruction("set_breakpoints",(e=>{this.breakpoints.clear();for(const{label:t,condition:n}of e.breakpoints)this.breakpoints.set(t,n);r()})),e.onInstruction("debugger_step",(e=>{(0,s.ensure)(this.debuggedNanoflows[e.executionId]).handleInstruction(e)})),e.onInstruction("get_debugger_variable",(({executionId:e,variableName:t,index:n})=>{const r=(0,s.ensure)(this.debuggedNanoflows[e]).context.getScope().get(t);this.send({type:"debugger_variable",data:this.serializeVariableContent(r,n)})})),e.onConnect((()=>{Object.keys(this.debuggedNanoflows).forEach((e=>this.send({type:"paused_nanoflow",data:this.createPausedNanoflow((0,s.ensure)(this.debuggedNanoflows[e]).context)})))}))}async waitForBreakpoints(){return this.breakpointsReadyPromise}async handleInstruction({context:e,instruction:t}){if(await this.shouldBreak(t,e)){const n=await this.activateDebugger(t,e),r=(0,s.ensure)(this.debuggedNanoflows[e.executionId]);switch(n.mode){case"continue":r.maxStackDepthToPause=-1/0;break;case"step_into":r.maxStackDepthToPause=1/0;break;case"step_over":r.maxStackDepthToPause=e.getStackSize();break;case"step_out":r.maxStackDepthToPause=e.getStackSize()-1}}}handleNanoflowCompletion({executionId:e}){delete this.debuggedNanoflows[e]}async shouldBreak(e,t){if(void 0===e.label||"jump"===e.type)return!1;if(this.breakpoints.has(e.label)){const n=this.breakpoints.get(e.label);if(!n)return!0;try{return!0===await(0,u.yG)(n,t.getScope(),"primitive")}catch(e){return this.logger.error(`Failed to evaluate breakpoint expression: ${e instanceof Error?e.message:e}`),!1}}const n=this.debuggedNanoflows[t.executionId];return void 0!==n&&t.getStackSize()<=n.maxStackDepthToPause}async activateDebugger(e,t){const n=this.getNanoflow(t.getCurrentNanoflowId());return this.debuggedNanoflows[t.executionId]={context:t,maxStackDepthToPause:1/0,nanoflow:n.name,objectId:e.label,handleInstruction:()=>{}},new Promise((e=>{(0,s.ensure)(this.debuggedNanoflows[t.executionId]).handleInstruction=e,this.send({type:"paused_nanoflow",data:this.createPausedNanoflow(t)})}))}createPausedNanoflow(e){const{executionId:t}=e,{nanoflow:n,objectId:r}=(0,s.ensure)(this.debuggedNanoflows[t]);return{nanoflow:n,objectId:r,executionId:t,variables:this.getVariables(e.getScope())}}getVariables(e){const t={};for(const n of e.all().filter((e=>e!==Z))){const r=e.get(n);switch(typeof r){case"boolean":t[n]={type:"boolean",value:r};break;case"string":t[n]={type:"string",value:r};break;case"undefined":t[n]={type:"null"};break;case"object":r instanceof Date?t[n]={type:"date_time",...ue(r)}:r instanceof d.Big?t[n]={type:"decimal",value:r.toString()}:Array.isArray(r)?t[n]={type:"list",size:r.length}:t[n]=this.serializeObject(r,!1);break;default:this.logger.error("Unknown variable type: "+typeof r),t[n]={type:"unknown",value:r}}}return t}serializeVariableContent(e,t){return e instanceof S.MxObject?this.serializeObject(e,!0):Array.isArray(e)&&void 0===t?{objects:e.map((e=>this.serializeObject(e,!1)))}:Array.isArray(e)&&void 0!==t&&e[t]instanceof S.MxObject?this.serializeObject(e[t],!0):{type:"null"}}serializeObject(e,t){if(e instanceof S.MxObject){const n=e.getGuid(),r={type:"object",id:n,entity:e.getEntity(),state:mx.data.isNew(n)?"INSTANTIATED":"NORMAL"};if(t){const t={},n=(0,U.getAttributesMeta)(e.getEntity()).filter((t=>e.has(t.name)));for(const r of n){const n=e.get2(r.name);switch(r.type){case"AutoNumber":t[r.name]={type:"auto_number",value:n};break;case"Binary":t[r.name]={type:"binary"};break;case"Boolean":t[r.name]={type:"boolean",value:n};break;case"DateTime":{const e={type:"date_time"};n&&Object.assign(e,ue(n)),t[r.name]=e}break;case"Decimal":t[r.name]={type:"decimal",value:n};break;case"Enum":t[r.name]={type:"enum",value:n,enumeration_name:(0,s.ensure)(r.enumeration)};break;case"HashString":t[r.name]={type:"hash_string",value:n};break;case"Integer":t[r.name]={type:"integer",value:n};break;case"Long":t[r.name]={type:"long",value:n};break;case"ObjectReference":{const e=(0,s.ensure)(r.referenceEntity),i={type:"reference"};n&&(i.value={type:String(e),object_id:n.toString()}),t[r.name]=i}break;case"ObjectReferenceSet":{const e=(0,s.ensure)(r.referenceEntity),i={type:"reference_set",value:[]};n&&(i.value=n.map((t=>({type:String(e),object_id:t})))),t[r.name]=i}break;case"String":t[r.name]={type:"string",value:n};break;default:this.logger.error(`Unknown attribute type: ${r.type}`),t[r.name]={type:"unknown",value:String(n)}}}return{...r,members:t}}return r}return{type:"null"}}send(e){this.connection.send(JSON.stringify(e))}}function ue(e){return{value:(0,se.Z)((0,ce.localizeDate)(e),"yyyy-MM-dd HH:mm:ss.SSS"),session_time:(0,se.Z)(e,"yyyy-MM-dd HH:mm:ss.SSS xxxx")}}var de=n(9726),fe=n(7026),he=n(7613);class pe{constructor(e,t=void 0,n=void 0,r=(0,he.newId)("flow"),i=0,o=void 0){this.currentForm=e,this.nanoflowId=t,this.scope=n,this.executionId=r,this.depth=i,this.parentContext=o}getScope(){return this.scope}getCurrentNanoflowId(){var e,t;return null!==(e=this.nanoflowId)&&void 0!==e?e:null===(t=this.parentContext)||void 0===t?void 0:t.getCurrentNanoflowId()}getStackSize(){return this.depth}getCurrentInstruction(){return this.currentInstruction}setCurrentInstruction(e){this.currentInstruction=e}getLeafContext(){var e,t;return null!==(t=null===(e=this.childContext)||void 0===e?void 0:e.getLeafContext())&&void 0!==t?t:this}getParentContext(){return this.parentContext}async insideNewStack(e,t){const n=void 0!==t?new K:this.scope;this.childContext=new pe(this.currentForm,null!=t?t:this.nanoflowId,n,this.executionId,this.depth+1,this);try{return await e(this.childContext)}finally{void 0!==t&&n.destroy(),this.childContext=void 0}}}var ge=n(9372);function me(e){return"object"==typeof e&&"result"in e}class ve{constructor(){this.performanceTracker=o()?new i:new r}startTracking(e){e.onNanoflowExecutionEvent("nanoflowStart",this.onNanoflowStart.bind(this)),e.onNanoflowExecutionEvent("nanoflowEnd",this.onNanoflowEnd.bind(this)),e.onNanoflowExecutionEvent("instructionStart",this.onInstructionStart.bind(this)),e.onNanoflowExecutionEvent("instructionEnd",this.onInstructionEnd.bind(this))}onNanoflowStart({nanoflowId:e}){const t=ve.getNanoflowName(e);this.performanceTracker.begin(`Nanoflow: ${t}`)}onNanoflowEnd({nanoflowId:e}){const t=ve.getNanoflowName(e);this.performanceTracker.end(`Nanoflow: ${t}`)}onInstructionStart({instruction:e}){const t=h(e);this.performanceTracker.begin(t)}onInstructionEnd({instruction:e}){const t=h(e);this.performanceTracker.end(t)}static getNanoflowName(e){if("string"==typeof e)return e;if("name"in e)return e.name;throw new c.AssertionError("Nanoflow could not be identified")}}function ye(e){return[e.instructionType,e]}const be=new class{constructor(e,t){this.getNanoflowFromRegistry=t,this.executionEventHandlers={nanoflowStart:[],nanoflowEnd:[],instructionStart:[],instructionEnd:[]},this.runningNanoflows=new Array,this.logger=E.LogManager.get().getLogger(E.LogNode.Nanoflow),this.executors=e(((e,t)=>t.insideNewStack((t=>this.executeInstructions(e,t)))),this.executeInstructions.bind(this),this.executeNanoflow.bind(this))}async execute(e,t,n){const r=new pe(n,e),i=this.getNanoflowFromRegistry(e).name,o=new O.u;this.logger.debug(`[${r.executionId}] Starting execution of nanoflow ${i}.`),this.runningNanoflows.push(r),await this.raiseEvent("nanoflowStart",{nanoflowId:e,executionId:r.executionId});try{return await(0,l.wait)(0),await this.executeNanoflow(e,t,r)}finally{this.runningNanoflows.splice(this.runningNanoflows.indexOf(r),1),this.logger.debug(`[${r.executionId}
66] Finished execution of nanoflow ${i}. Execution took ${o.measure()} milliseconds.`),await this.raiseEvent("nanoflowEnd",{nanoflowId:e,executionId:r.executionId})}}onNanoflowExecutionEvent(e,t){const n=this.executionEventHandlers[e];return n.push(t),{unsubscribe(){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}}generateCallStackOfExecutingNanoflows(){return this.runningNanoflows.map((e=>[this.getNanoflowFromRegistry(e.getCurrentNanoflowId()).name,this.generateCallStack(e)]))}generateCallStack(e){const t=new Array;let n=e.getLeafContext(),r=0;for(;void 0!==(null==n?void 0:n.getCurrentInstruction());)t.push(`${r>0?new Array(r).fill(" ").join(""):""} "${h(n.getCurrentInstruction())}" in nanoflow "${this.getNanoflowFromRegistry(n.getCurrentNanoflowId()).name}"`),n=n.getParentContext(),r++;return t.join("\n")}async raiseEvent(e,t){const n=this.executionEventHandlers[e];n.length>0&&await Promise.all(n.map((e=>e(t))))}getRunningNanoflows(){return[...this.runningNanoflows]}async executeNanoflow(e,t,n){return n.insideNewStack((n=>(t.forEach((({name:e,value:t})=>n.getScope().set(e,t))),this.executeInstructions(this.getNanoflowFromRegistry(e).instructions,n))),e)}async executeInstructions(e,t){let n=0;for(;n<e.length;){const i=(0,s.ensure)(e[n]),o=this.executors.get(i.type);if(void 0===o)throw new c.AssertionError;let a;await this.raiseEvent("instructionStart",{context:t,instruction:i}),t.setCurrentInstruction(i);try{a=await o.execute(i,t)}catch(e){throw e instanceof ge.u||e instanceof fe.q||e instanceof de.h?e:e instanceof Y.W?new fe.q(e.message,e.stack,this.generateCallStack(t)):new ge.u(e,this.generateCallStack(t))}finally{await this.raiseEvent("instructionEnd",{context:t,instruction:i})}if("object"==typeof(r=a)&&"goto"in r){const t=a.goto;if(n=e.findIndex((e=>e.label===t)),-1===n)throw new c.AssertionError}else{if(me(a))return a.result;n++}}var r;throw new c.AssertionError}}(((e,t,n)=>new Map([ye(new x),ye(new H(u.yG)),ye(new _(e)),ye(new ae(e,u.yG)),ye(new X(t)),ye(new V(u.yG)),ye(new P),ye(new N(u.yG)),ye(new A),ye(new M),ye(new L),ye(new z(u.yG)),ye(new ee(u.yG)),ye(new J(u.yG)),ye(new re(u.yG)),ye(new I(u.yG)),ye(new R),ye(new oe(u.yG)),ye(new w(u.yG,n)),ye(new $),ye(new y(u.yG)),ye(new m(u.yG)),ye(new B(u.yG)),ye(new W),ye(new p),ye(new te(u.yG)),ye(new k(u.yG,n)),ye(new j(u.yG))])),f.getNanoflow);let we;function xe(e,t){if(void 0!==we)throw new c.AssertionError;we=new le(e,f.getNanoflow,t),be.onNanoflowExecutionEvent("instructionStart",we.handleInstruction.bind(we)),be.onNanoflowExecutionEvent("nanoflowEnd",we.handleNanoflowCompletion.bind(we))}async function _e(){return Promise.race([(0,s.ensure)(we).waitForBreakpoints(),(0,l.wait)(500)])}o()&&(new ve).startTracking(be)},3896:(e,t,n)=>{n.r(t),n.d(t,{getJavaScriptAction:()=>l,getNanoflow:()=>a,registerNanoflows:()=>s,testClearNanoflows:()=>c});var r=n(3282),i=n(234);const o={};function a(e){return(0,r.ensure)(o[e])()}function s(e){Object.assign(o,e)}function c(){Object.keys(o).forEach((e=>delete o[e]))}async function l(e){return new Promise((t=>{dojoDynamicRequire([`${mx.appUrl}jsactions.js`],(n=>{const r=n[e.replace(".","$")];if("function"!=typeof r)throw new i.AssertionError(`Unknown action ${e}`);t(r())}))}))}},3497:(e,t,n)=>{n.r(t),n.d(t,{ErrorBoundary:()=>a,ErrorBoundaryFallbackContext:()=>o});var r=n(5893),i=n(7294);const o=(0,i.createContext)((()=>null));class a extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}render(){return this.state.hasError?(0,r.jsx)(o.Consumer,{children:e=>(0,i.createElement)(e,{errorMessage:`Could not render widget '${this.props.widgetId}'`})}):this.props.children}static getDerivedStateFromError(){return{hasError:!0}}}},701:(e,t,n)=>{n.d(t,{$k:()=>d,Ce:()=>m,ME:()=>p,Ul:()=>u,lk:()=>h,tz:()=>g,yE:()=>l});var r=n(3698),i=n(3282),o=n(5537),a=n(8714),s=n(567),c=n(2550);function l(e,t){const[n]=e.useSlot(t,"object");return u(t,n)}function u(e,t){return(0,a.fromComputation$)(`Object of ${e}`,(()=>{var n;return(0,s.flatMapL)(null!==(n=t.dependOn())&&void 0!==n?n:(0,s.loading)(),(t=>((0,a.dependOnSubscription)({guid:t.getGuid(),tag:e}),t.isUnavailable()?(0,s.unavailable)():(0,s.available)(t))))}))}function d(e,t,n){return(0,a.fromComputation$)(`Subscribe to objects of ${e}`,(()=>{const r=t.dependOn();return"available"===r.status&&n(r.value).filter(f).forEach((t=>
66(0,a.dependOnSubscription)({tag:e,guid:t.getGuid()}))),r}))}function f(e){const t=e.getGuid();return!e.isPartial()||mx.data.isNew(t)||Object.keys(mx.data.getChanges(t)).length}function h(e,t,n=!1){const r=p(e,t,n);return(0,a.fromComputation$)(`Get single object from retrieve by ${t}`,(()=>(0,s.flatMapL)(r.dependOn(),(e=>"cacheMiss"!==e?1===e.length?(0,s.available)(e[0]):0===e.length?(0,s.unavailable)():(0,i.crash)():(0,s.available)("cacheMiss")))))}function p(e,t,n=!1){const i=t.split("/");let o=(0,a.fromComputation$)(`Root object to fetch ${t} from`,(()=>(0,s.mapL)(e.dependOn(),(e=>[e]))));for(;i.length>0;){const[e,c]=i.splice(0,2),l=o,u=(0,a.fromRequest$)(`Fetch ${e} of ${t}`,(()=>{const t=l.dependOn();if("available"!==t.status||"cacheMiss"===t.value)return t;const i=new Set,o=new Set;let c=[];for(const n of t.value){if(n.isPartial()||((0,a.dependOnSubscription)({guid:n.getGuid()}),(0,a.dependOnSubscription)({guid:n.getGuid(),attr:e})),!n.has(e))return(0,s.unavailable)();const t=n.getChildren(e);if(t.length)c.push(...t);else for(const t of n.getReferences(e)){const e=mx.data.getCachedObject(t);e?o.add(e):i.add(t)}}const u=new Set(Array.from(o).map((e=>e.getGuid())));for(const e of c.map((e=>e.getGuid())))(i.has(e)||u.has(e)||c.filter((t=>t.getGuid()===e)).length>1)&&(c=c.filter((t=>t.getGuid()!==e)),u.has(e)||i.add(e));return 0===i.size?(0,s.available)(c.concat(...o)):n?(0,s.available)("cacheMiss"):(0,r.MR)(Array.from(i)).then((e=>(0,s.available)(e.concat(...c,...o))))}));o=(0,a.fromComputation$)(`Cast fetch result of ${e} in ${t}`,(()=>{const e=u.dependOn();return"available"!==e.status||"cacheMiss"===e.value?e:(e.value.forEach((e=>(0,a.dependOnSubscription)({guid:e.getGuid()}))),(0,s.available)(e.value.filter((e=>!e.isUnavailable()&&e.isA(c)))))}))}return o}function g(e,t){return(0,a.fromComputation$)(`Value of ${t}`,(()=>(0,s.mapL)(e.dependOn(),(e=>(e.isPartial()||((0,a.dependOnSubscription)({guid:e.getGuid()}),(0,a.dependOnSubscription)({guid:e.getGuid(),attr:t})),e.has(t)?(0,o.Fj)(e.get2(t),e.isReadonlyAttr(t)?o.Nv.Read:o.Nv.Write):(0,o.jx)())))))}function m(e,t,n,r){const[i]=e.useSlot(c.pageScope,"formSuspended"),[o]=e.useSlot(t,"firstLoadDone");let s;return(0,a.fromComputation$)(`Load trigger when not suspended of data source of ${t}`,(()=>{const e=i.dependOn(),t=n.dependOn(),c=!0!==(0,a.readUntracked)(o);return e&&(null==r||r()),e&&!c&&void 0!==s||(s=t),s}))}},6261:(e,t,n)=>{n.d(t,{FI:()=>g,KP:()=>p});var r=n(5893),i=n(2188),o=n(7294),a=n(3282),s=n(234),c=n(8714),l=n(3497),u=n(798),d=n(8135),f=n(2550);const h=new Map,p=(0,o.createContext)("not a widget");function g(e){const t=h.get(e);if(void 0!==t)return t;const n=(0,a.friendlyName)(e),u=function(e,t){const n=(0,o.memo)(function(e,t){var n;if(null===(n=e.prototype)||void 0===n?void 0:n.isReactComponent){const n=t=>(0,o.createElement)(e,t);return n.displayName=t,n}return e.displayName=t,e}(e,t));return e=>{const[u]=(0,o.useState)((()=>e.$widgetId));if(e.$widgetId!==u||void 0===u)throw new s.AssertionError(`Parent of component ${t} did not correctly assign keys.`);const h=(0,d.useComponentStore)(),[g]=h.useSlot(f.pageScope,"formSuspended"),[v,y]=(0,o.useMemo)((()=>m(e,h,e.$widgetId,"")),[]);let b;const[w,x]=(0,o.useState)((()=>{if(!(0,c.isDependable)(v))return v;let t=!0,n={};return b=(0,i.autorun)((()=>
66{const e=v.dependOn(),r=g.dependOn();t?n=e:r||x(e)}),{name:`Props of ${e.$widgetId}`}),t=!1,n}));return(0,o.useLayoutEffect)((()=>b),[]),y.length&&(0,o.useLayoutEffect)((()=>y.forEach((e=>e()))),[w]),(0,r.jsx)(p.Provider,{value:u,children:(0,r.jsx)(l.ErrorBoundary,{widgetId:(0,a.toFriendlyId)(u),children:(0,r.jsx)(n,{...w})})})}}(e,n);return u.displayName=`pluginWidget(${n})`,h.set(e,u),u}function m(e,t,n,r){const i=Object.entries(e).map((([e,i])=>"$widgetId"===e?(0,a.tuple)("name",(0,a.tuple)((0,a.toWidgetName)(n),[])):(0,a.tuple)(e,v(i,t,n,`${r}/${e}`))));return[i.some((([e,[t]])=>(0,c.isDependable)(t)))?(0,c.fromComputation$)(`Prop ${r||"root"} of ${n}`,(()=>Object.fromEntries(i.map((([e,[t]])=>[e,(0,c.isDependable)(t)?t.dependOn():t]))))):Object.fromEntries(i.map((([e,[t]])=>[e,t]))),i.flatMap((([,[,e]])=>e))]}function v(e,t,n,r){if((0,u.X0)(e))return[(0,u.Tn)(e),[]];if((0,u.lr)(e)){const[i,o]=(0,u.wg)(e,t,n,r);return[i,o?[o]:[]]}if(Array.isArray(e)){if(i=e,(0,o.isValidElement)(i[0])||function(e){return 0===e.length||e.every((e=>null===e||"object"!=typeof e))}(e))return[e,[]];const a=e.map(((e,i)=>v(e,t,n,`${r}/${i}`)));return[a.some((([e])=>(0,c.isDependable)(e)))?(0,c.fromComputation$)(`Prop ${r} of ${n}`,(()=>a.map((([e])=>(0,c.isDependable)(e)?e.dependOn():e)))):a.map((([e])=>e)),a.flatMap((([e,t])=>t))]}return!(0,o.isValidElement)(e)&&(0,a.isJson)(e)?m(e,t,n,r):[e,[]];var i}},798:(e,t,n)=>{n.d(t,{Gb:()=>l,Tn:()=>c,X0:()=>s,eo:()=>u,lr:()=>i,wg:()=>o});const r=Symbol("compute");function i(e){return"object"==typeof e&&null!=e&&null!=e[r]}function o(e,t,n,i){return e[r](t,n,i)}const a=Symbol("result");function s(e){return"object"==typeof e&&null!=e&&null!=e[a]}function c(e){return e[a]}function l(e){return{[a]:e}}function u(e){return t=>({[r]:(n,r,i)=>{const o=e(t,n,r,i);return Array.isArray(o)?o:[o,void 0]}})}},4663:(e,t,n)=>{n.d(t,{w:()=>o});var r=n(45),i=n(8426);class o{constructor(e){this.config=e,this.type=r.FormatterType.DateTime}format(e){return!e||isNaN(e.getTime())?"":(0,i.formatDate)(e,this.config)}parse(e,t){if(""===e)return{valid:!0,value:void 0};const n=(0,i.parseDate)(e,this.config,t);return void 0===n?{valid:!1}:{valid:!0,value:n}}getFormatPlaceholder(){return(0,i.getDateFormatPlaceholder)(this.config)}withConfig(e){return new o(e)}}},9255:(e,t,n)=>{n.d(t,{Bc:()=>y,LN:()=>z,MA:()=>S,MY:()=>w,Mn:()=>D,Ng:()=>T,T9:()=>C,TK:()=>I,YG:()=>_,_r:()=>j,eT:()=>x,fQ:()=>O,k0:()=>R,xH:()=>N,yB:()=>k,zT:()=>P});var r=n(3302),i=n.n(r),o=n(9119),a=n(7349),s=n(4063),c=n.n(s),l=n(9533),u=n(6610),d=n(1118),f=n(3282),h=n(234),p=n(2708),g=n(293),m=n(5215);const v=Symbol("filterExpression"),y=Symbol("dataSourceId"),b={};function w(e,t){b[e]=t}function x(e){return b[e]}function _(e){return void 0!==e?function e(t){return"literal"===t.type?function(e){switch(e.valueType){case"DateTime":return E(e.valueType,e.value.getTime());case"Numeric":return E(e.valueType,e.value.toString());case"Reference":case"ReferenceSet":const t=e[y];return E(e.valueType,e.value,{dataSourceId:t});default:return E(e.valueType,e.value)}}(t):(0,f.mapValues)(t,(t=>Array.isArray(t)?t.map(e):"object"==typeof t?e(t):t))}(e):void 0}
66function S(e){return void 0!==e?function e(t){const n="literal"===t.type?function(e){switch(e.valueType){case"DateTime":return(0,l.literal)(new Date(e.value));case"Numeric":return(0,l.literal)(new(i())(e.value));case"Reference":case"ReferenceSet":return C({type:"literal",value:e.value,valueType:e.valueType,[y]:e.dataSourceId});default:return(0,l.literal)(e.value)}}(t):(0,f.mapValues)(t,(t=>Array.isArray(t)?Object.freeze(t.map(e)):"object"==typeof t?e(t):t));return C(n)}(e):void 0}function C(e){return e[v]||(e[v]=!0,Object.freeze(e)),e}function E(e,t,n){return{type:"literal",value:t,valueType:e,...n}}function O(e,t){if(void 0===e)return!0;if(!j(e))throw new h.AssertionError("setFilter: argument must be a FilterCondition and be created with the filter API or obtained from a ListValue");return function e(n){switch(n.type){case"attribute":const r=(0,m.it)(n.attributeId);if(void 0===r)throw new h.AssertionError(`setFilter: FilterCondition uses an attribute with invalid id '${n.attributeId}'`);if(!x(n.attributeId))throw new h.AssertionError(`setFilter: FilterCondition uses an attribute with id '${n.attributeId}' which is not filterable`);if(r.dataSourceId!==t)throw new h.AssertionError(`"setFilter: FilterCondition uses an attribute with id '${n.attributeId}' which is linked to a different data source`);break;case"literal":break;case"function":"arg"in n?e(n.arg):"arg1"in n?(e(n.arg1),e(n.arg2)):n.args.forEach(e);break;case"association":const i=(0,g.Pk)(n.associationId);if(void 0===i)throw new h.AssertionError(`setFilter: FilterCondition uses an association with invalid id '${n.associationId}'`);if(!x(n.associationId))throw new h.AssertionError(`setFilter: FilterCondition uses an association with id '${n.associationId}' which is not filterable`);if(i.dataSourceId!==t)throw new h.AssertionError(`"setFilter: FilterCondition uses an association with id '${n.associationId}' which is linked to a different data source`)}}(e),!0}function j(e){return A(e)&&"function"===e.type}function k(e){return R(e)||N(e)||T(e)}function R(e){return A(e)&&"attribute"===e.type}function N(e){return A(e)&&"literal"===e.type}function T(e){return A(e)&&"association"===e.type}function A(e){return"object"==typeof e&&null!==e&&v in e&&Object.isFrozen(e)}function P(e,t){return c()(e,t)}function D(e){if(void 0===e)return"";const t=z(e);return`[${(0,u.dp)(t)}]`}function I(e){var t;switch(e.type){case"attribute":const n=(0,f.ensure)((0,m.it)(e.attributeId)).attributePath;return(0,d.Kb)("currentObject",n);case"literal":return(0,d.nj)(null!==(t=e.value)&&void 0!==t?t:null);case"function":if("arg"in e)return(0,d.mf)(e.name,I(e.arg));if("arg1"in e){if(L(e))return I($(e));const t=function(e){switch(e.name){case"starts-with":case"ends-with":return!0;case"contains":case"=":case"!=":case">":case">=":case"<":case"<=":return F(e.arg1)&&F(e.arg2);default:return!1}}(e),n=e=>t?(0,d.mf)("toLowerCase",e):e,r=n(I(e.arg1)),i=n(I(e.arg2)),o=(0,d.mf)(B[e.name],r,i);return V.includes(e.name)?(0,d.WE)((0,d.mf)("=",r,(0,d.nj)(null)),(0,d.nj)(!1),(0,d.WE)((0,d.mf)("=",i,(0,d.nj)(null)),(0,d.nj)(!1),o)):o}return e.args.map(I).reduce(((t,n)=>"and"===e.name?(0,d.WE)(t,n,(0,d.nj)(!1)):(0,d.WE)(t,(0,d.nj)(!0),n)));case"association":const r=(0,f.ensure)((0,g.Pk)(e.associationId)).associationPath;return(0,d.Kb)("currentObject",r)}}const M=["day:=","day:!=","day:>","day:>=","day:<","day:<="];function L(e){return M.includes(e.name)}function $(e){const t=e.arg1,n=(0,o.Z)(e.arg2.value);switch(e.name){case"day:=":return(0,l.and)((0,l.greaterThanOrEqual)(t,(0,l.literal)(n)),(0,l.lessThan)(t,(0,l.literal)((0,a.Z)(n,1))));case"day:!=":return(0,l.or)((0,l.lessThan)(t,(0,l.literal)(n)),(0,l.greaterThanOrEqual)(t,(0,l.literal)((0,a.Z)(n,1))));case"day:>":return(0,l.greaterThanOrEqual)(t,(0,l.literal)((0,a.Z)(n,1)));case"day:>=":return(0,l.greaterThanOrEqual)(t,(0,l.literal)(n));case"day:<":return(0,l.lessThan)(t,(0,l.literal)(n));case"day:<=":return(0,l.lessThan)(t,(0,l.literal)((0,a.Z)(n,1)))}}function F(e){switch(e.type){case"literal":return"string"===e.valueType;case"attribute":return"String"===(0,f.ensure)((0,m.WF)(e.attributeId));case"association":return!1}}const B={"=":"=","!=":"!=",">":">",">=":">
66=","<":"<","<=":"<=",contains:"contains","starts-with":"startsWith","ends-with":"endsWith"},V=[">",">=","<","<="];function z(e,t=!1,n=!0){switch(e.type){case"attribute":return{type:"attribute",attribute:(0,f.ensure)((0,m.it)(e.attributeId)).attributePath,attributeType:(0,f.ensure)((0,m.WF)(e.attributeId))};case"literal":return{type:"value",value:"DateTime"===e.valueType&&t?(0,p.delocalizeDate)(e.value):e.value,isGuid:"Reference"===e.valueType||"ReferenceSet"===e.valueType};case"function":if(L(e))return z($(e));if(n&&"="===(r=e).name&&(W(r.arg1)||W(r.arg2)))return function(e){const t=z(e,!1,!1),n=[e.arg1,e.arg2].find(R);if(n){const e=(0,f.ensure)((0,m.it)(n.attributeId)).attributePath.split("/");if(1===e.length)return t;e.pop();const r=[t],i={type:"value",value:void 0,isGuid:!0};for(;e.length;){const t=e.join("/");e.splice(e.length-2,2),r.unshift({type:"function",name:"=",parameters:[{type:"association",associationPath:t,associationType:"Reference"},i]})}return{type:"function",name:"or",parameters:r}}return t}(e);const i="arg"in e?[e.arg]:"arg1"in e?[e.arg1,e.arg2]:e.args,o=i.some(U);return{type:"function",name:e.name,parameters:i.map((e=>z(e,o)))};case"association":return{type:"association",associationPath:(0,f.ensure)((0,g.Pk)(e.associationId)).associationPath,associationType:(0,f.ensure)((0,g.ec)(e.associationId))}}var r}function U(e){return"attribute"===e.type&&(0,m.Mt)(e.attributeId)}function W(e){return"literal"===e.type&&void 0===e.value}},293:(e,t,n)=>{n.d(t,{A5:()=>u,Pk:()=>l,Xr:()=>c,ec:()=>d});var r=n(7613);const i={},o={},a={},s="assoc";function c(e,t,n){const a=JSON.stringify([e,t,n]),c=i[a];if(c)return c;const l=(0,r.newId)(s);return i[a]=l,o[l]=Object.freeze({associationPath:e,dataSourceId:t,selectableObjectsId:n}),l}function l(e){return o[e]}function u(e,t){a[e]=t}function d(e){return a[e]}},5215:(e,t,n)=>{n.d(t,{KJ:()=>h,MA:()=>c,Mt:()=>f,WF:()=>d,it:()=>l,yN:()=>u});var r=n(7613);const i={},o={},a={},s="attr";function c(e,t){const n=JSON.stringify([e,t]),a=i[n];if(a)return a;const c=(0,r.newId)(s);return i[n]=c,o[c]=Object.freeze({attributePath:e,dataSourceId:t}),c}function l(e){return o[e]}function u(e,t,n=!1,r){a[e]=[t,n,r]}function d(e){var t;return null===(t=a[e])||void 0===t?void 0:t[0]}function f(e){var t,n;return null!==(n=null===(t=a[e])||void 0===t?void 0:t[1])&&void 0!==n&&n}function h(e){var t;return null===(t=a[e])||void 0===t?void 0:t[2]}},365:(e,t,n)=>{n.d(t,{$g:()=>l,Rd:()=>s,V7:()=>u,cC:()=>c,u_:()=>a,z$:()=>o});const r=Symbol("mxObject"),i=Symbol("dataSourceId");function o(e,t){return{id:e.getGuid(),[r]:e,[i]:t}}function a(e,t,n){function i(e){throw new Error(n?`${e} (${n})`:e)}return s(e)||i("Only an ObjectItem can be passed to a template."),u(e,t)||i("An ObjectItem can only be passed to a template that is linked to the same data source."),e[r]}function s(e){return"object"==typeof e&&null!=e&&r in e&&i in e}function c(e){return Array.isArray(e)&&e.every(s)}function l(e){return e[i]}function u(e,t){return l(e)===t}},2550:(e,t,n)=>{n.r(t),n.d(t,{pageScope:()=>r});const r="$$globalScope"},7772:(e,t,n)=>{n.r(t),n.d(t,{StoreBackend:()=>f});var r=n(655),i=n(4063),o=n.n(i),a=n(2188),s=n(3282),c=n(8714),l=n(8559),u=n(8292);const d="»";class f{constructor(){this.recordGroups=new Map,this.slotObservers=new Map}get$(e,t,n){const r=this.getOrCreateGroup(e,t);let i;return(0,c.fromComputation$)(`backend.get$(${e}, ${t}, ${n})`,(()=>{if(i)return i.get();const e=r.filter((([e])=>(0,u.isAncestorOrSelf)(e,n))).pop();return e?(e[0]===n&&(i=e[1]),e[1].get()):void 0}))}set(e,t,n,r){const i=this.getOrCreateGroup(e,t),c=i.filter((([e])=>(0,u.isAncestorOrSelf)(e,n))).pop();if(c)return void c[1].set(r);const l=(0,s.tuple)(n,a.observable.box(r,{deep:!1,name:`backend.box(${e}, ${t}, ${n})`,equals:o()})),d=i.findIndex((([e])=>e.length>l.length));-1===d?i.push(l):i.splice(d,0,l)}getAllEntries$(e,t){var n;const r=null!==(n=this.slotObservers.get(e))&&void 0!==n?n:(0,a.createAtom)(`backend.slot(${e})`);return this.slotObservers.set(e,r),(0,c.fromComputation$)(`backend.getAll$(${e}, ${t})`,(()=>{r.reportObserved();const n=[];for(const[r,i]of this.recordGroups.entries()){const[o,a]=r.split(d);if(o===e)for(const[e,r]of i.toJS().reverse())t&&!(0,u.isAncestorOrSelf)(t,e)||n.push({widgetId:a,path:e,value:r.get()})}return n}))}free(e,t,n){const r=`${t}${d}${e}`,i=this.recordGroups.get(r);void 0!==i&&(i.filter((([e])=>
66(0,u.isAncestorOrSelf)(n,e))).forEach((e=>i.remove(e))),0===i.length&&this.recordGroups.delete(r))}getUsedSlots(){return(0,s.unique)(Array.from(this.recordGroups.keys()).map((e=>(0,s.ensure)(e.split(d)[0]))))}getOrCreateGroup(e,t){const n=`${t}${d}${e}`,r=this.recordGroups.get(n);if(r)return r;const i=a.observable.array([],{deep:!1,name:`backend.group(${e}, ${t})`});return this.recordGroups.set(n,i),(0,l.runActionInComputed)((()=>{var e;return null===(e=this.slotObservers.get(t))||void 0===e?void 0:e.reportChanged()})),i}}(0,r.gn)([a.action],f.prototype,"set",null),(0,r.gn)([a.action],f.prototype,"free",null)},8292:(e,t,n)=>{n.r(t),n.d(t,{createStorePath:()=>a,isAncestorOrSelf:()=>s,rootPath:()=>o});var r=n(234);const i=";",o=`*${i}`;function a(e,t){if(t.includes(i))throw new r.AssertionError(`Illegal character '${i}' in namespace: ${t}`);return`${e}${t}${i}`}function s(e,t){return t.startsWith(e)}},8865:(e,t,n)=>{n.r(t),n.d(t,{applyViewState:()=>u,collectViewState:()=>l});var r=n(3282),i=n(8714),o=n(9255);const a=["form","formSuspended","object","editableObject","isInvalid","validationRequest","subtreeReadonly","uniqueId","firstLoadDone"],s=[/^.*\/items$/];function c(e){return!a.includes(e)&&!s.some((t=>t.test(e)))}function l(e){const t=e.getUsedSlots().filter(c).flatMap((t=>(0,i.readUntracked)(e.getAllEntries$(t)).map((e=>({...e,slot:t}))))).map((e=>{return{...e,value:(t=e.slot,n=e.value,t.endsWith("/filter")?(0,o.YG)(n):n)};var t,n})).filter((({value:e})=>void 0!==e));return(0,r.groupBy)(t,(({slot:e,widgetId:t})=>`${e}|${t}`)).map((({values:e})=>{const{slot:t,widgetId:n}=e[0];return{slot:t,widgetId:n,values:e.map((({path:e,value:t})=>(0,r.tuple)(e,(0,r.ensure)(t))))}}))}function u(e,t){e.forEach((({slot:e,widgetId:n,values:r})=>r.forEach((([r,i])=>t.set(n,e,r,function(e,t){return e.endsWith("/filter")?(0,o.MA)(t):t}(e,i))))))}},8135:(e,t,n)=>{n.r(t),n.d(t,{NestedStoreProvider:()=>w,RootStoreProvider:()=>m,testCreateStore:()=>_,useComponentStore:()=>v,useOwnStoreBackendSlot:()=>b,useStoreBackendValue:()=>y});var r=n(5893),i=n(7294),o=n(3282),a=n(7772),s=n(655),c=n(4063),l=n.n(c),u=n(2188),d=n(8714);class f{constructor(e,t,n){this.backend=e,this.path=t,this.onBackendUpdateRequested=n,this.localMirrors=new Map}useSlot(e,t){const n=this.getOrCreateLocalMirror(e,t);return(0,o.tuple)(n.value$,(0,u.action)(n.setValue))}getAll$(e){const t=this.backend.getAllEntries$(e,this.path);return(0,d.fromComputation$)("getAll$({slot})",(()=>t.dependOn().map((e=>e.value))))}updateFromBackend(){for(const e of this.localMirrors.values())e.updateFromBackend()}destroy(){for(const e of this.localMirrors.values())e.free();this.localMirrors.clear()}getOrCreateLocalMirror(e,t){const n=`${e}→${t}`,r=this.localMirrors.get(n);if(r)return r;let i;const a=this.backend.get$(e,t,this.path);let s,c;const[f,h]=(0,d.useDependency)(`localValue(${e}, ${t})`,(()=>{(0,o.ensure)(c)(),c=void 0}),(()=>{s=i=(0,d.readUntracked)(a),c=(0,u.reaction)((()=>a.dependOn()),(e=>{e!==s&&(s=e,this.onBackendUpdateRequested())}),{name:`copy backendValue for (${e}, ${t})`})}));let p=!1;const g={value$:(0,d.fromComputation$)(`get$(${e}, ${t})`,(()=>(f.dependOn(),i))),setValue:r=>{if(!this.localMirrors.has(n))throw new Error(`Error trying to set value to ${n}. The slot has already been freed.`);p=!0,l()(r,i)||h(),this.backend.set(e,t,this.path,r),s=i=r},updateFromBackend:()=>
66{void 0===c||l()(s,i)||(h(),i=s)},free:()=>{p&&this.backend.free(e,t,this.path)}};return this.localMirrors.set(n,g),g}}(0,s.gn)([u.action],f.prototype,"updateFromBackend",null),(0,s.gn)([u.action],f.prototype,"destroy",null);var h=n(8292);const p=(0,i.createContext)(void 0),g=(0,i.createContext)(void 0);function m(e){return(0,r.jsx)(p.Provider,{value:e.backend,children:(0,r.jsx)(g.Provider,{value:h.rootPath,children:e.children})})}function v(){const e=(0,o.ensure)((0,i.useContext)(p)),t=(0,o.ensure)((0,i.useContext)(g)),n=(0,o.useForceUpdate)(),r=(0,i.useMemo)((()=>new f(e,t,n)),[e,t,n]);return(0,i.useLayoutEffect)((()=>()=>r.destroy()),[e]),r.updateFromBackend(),r}function y(e,t){const n=(0,o.ensure)((0,i.useContext)(p)),r=(0,o.ensure)((0,i.useContext)(g));return(0,o.useEnsureConstantValues)(n,r,e,t),[(0,i.useMemo)((()=>n.get$(e,t,r)),[]),(0,i.useCallback)((i=>n.set(e,t,r,i)),[])]}function b(e,t){const n=(0,o.ensure)((0,i.useContext)(p)),r=(0,o.ensure)((0,i.useContext)(g));(0,o.useEnsureConstantValues)(n,r,e,t),(0,i.useEffect)((()=>()=>n.free(e,t,r)),[])}function w(e){const t=(0,o.ensure)((0,i.useContext)(g)),n=(0,h.createStorePath)(t,e.namespace);return(0,r.jsxs)(g.Provider,{value:n,children:[e.setupStore?(0,r.jsx)(x,{callback:e.setupStore}):null,e.children]})}function x(e){const t=v();return(0,i.useMemo)((()=>e.callback(t)),[e.callback,t]),null}function _(e=new a.StoreBackend){return new f(e,h.rootPath,(()=>{}))}},5645:(e,t,n)=>{n.r(t),n.d(t,{buildComponentTree:()=>Ct,findWidgetNames:()=>kt});var r=n(7294),i=n(3282),o=n(6261),a=n(2188),s=n(3772),c=n(7606),l=n(8934),u=n(1016),d=n(7566),f=n(8714),h=n(1881),p=n(5348),g=n(567),m=n(2550),v=n(798);const y=c.LogManager.get().getLogger(),b=(0,v.eo)(((e,t,n)=>w(e,t,n)));function w(e,t,n,r){var o;const[c,v]=(0,f.useValue)(`Actions in progress for ${n}`,0),b=(0,f.fromComputation$)(`Action is executing for ${n}`,(()=>c.dependOn()>0)),[w]=t.useSlot(n,"isInvalid"),[x]=t.useSlot(m.pageScope,"form"),_=(0,u.getSession)(),S=_.hasSomeRole(e.action.config.allowedRoles),C=null!==(o=e.action.config.namedUser)&&void 0!==o&&o,E=S&&!(C&&_.isGuest()),O=_.isGuest()&&!S,j=(0,d.IH)(e.action.argMap,t,r),k=(0,f.fromComputation$)(`Action for ${n} can execute`,(()=>(E||O)&&Object.values(j.dependOn()).every((e=>"available"===e.status)))),R=e.action.disabledDuringExecution;return(0,f.fromComputation$)(`Action value for ${n}`,(()=>{const e=k.dependOn(),t=b.dependOn();return{isAuthorized:E,canExecute:e,isExecuting:t,disabledDuringExecution:R,execute:(0,a.action)(N)}}));function N(){var t;if(!(0,f.readUntracked)(k)||R&&(0,f.readUntracked)(b))return void y.debug(`Widget is attempting to execute a ${e.action.type} action which is not executable.`);const r=(0,i.mapValues)((0,f.readUntracked)(j),g.getOrCrashL),o=(0,f.readUntracked)(w),u=(0,i.ensure)((0,f.readUntracked)(x))[0];v((0,f.readUntracked)(c)+1),(0,s.j)(e.action,{abortOnClientValidations:!e.skipClientValidation,abortOnServerValidations:null!==(t=e.abortOnServerValidation)&&void 0!==t&&t,widgetIsValid:!o,currentForm:u},r,(0,a.action)((()=>{v((0,f.readUntracked)(c)-1)})),(0,a.action)((e=>{v((0,f.readUntracked)(c)-1),e instanceof p.Z?(0,h.handleError)(e):e instanceof l.ValidationError||(0,h.handleError)(new Error(`An error occurred while executing an action of ${(0,i.toFriendlyId)(n)}: ${e.message}`))})))}}var x=n(8559),_=n(365);const S=c.LogManager.get().getLogger();function C(e,t,n,r){return E(e,t,n,r,!0)}function E(e,t,n,r,o=!1){let s={};const c=new Set,[l,u]=(0,f.useDependency)(`Update ${t}`,(()=>{Object.values(s).forEach((e=>e.disposer())),s={}}));return[(0,f.fromComputation$)(`Value for ${t}`,(()=>{l.dependOn();const d=r=>function(r){let o=!0;c.add(r.id);const l=(0,_.u_)(r,n,t),d=s[r.id];if(d&&d.source!==l&&(d.disposer(),delete s[r.id]),!(r.id in s)){const t=e(l),n={source:l};n.disposer=(0,a.reaction)((()=>(o||(0,x.scheduleAction)(u),t.dependOn())),(e=>n.value=e),{fireImmediately:!0}),s[r.id]=n}return o=!1,(0,i.ensure)(s[r.id]).value}(r);return Object.assign(o?e=>(S.warn(`DEPRECATED: direct usage of ${t} as a function, use .get() instead -- will be removed in version: 10.0`),d(e)):{},r,{get:d})}
66)),function(){Object.entries(s).forEach((([e,t])=>{c.has(e)||(t.disposer(),delete s[e])})),c.clear()}]}const O=(0,v.eo)(((e,t,n,r)=>C((r=>w(e,t,n,{[n]:{object:{object:r}}})),`List action "${n}/${r}"`,e.dataSourceId)));var j=n(3302),k=n.n(j),R=n(7613);const N=(0,v.eo)(((e,t)=>{const[n,r]=t.useSlot(e.widgetId,"uniqueId");return(0,f.fromComputation$)(`Derived unique id for ${e.widgetId}`,(()=>{const t=(0,f.readUntracked)(n);if(t)return t;const i=(0,R.newId)(e.widgetId);return(0,x.runActionInComputed)((()=>r(i))),i}))}));var T=n(1409);const A=(0,v.eo)(((e,t,n)=>{const r=(0,g.asDynamicValue$)((0,T._Z)(`Dynamic classes of ${(0,i.toFriendlyId)(n)}`,e.dynamicClasses,t));return(0,f.fromComputation$)(`Dynamic class property of ${n}`,(()=>{const t=r.dependOn().value;return`${e.staticClasses} ${null!=t?t:""}`.trim()}))}));var P=n(4063),D=n.n(P),I=n(234),M=n(701),L=n(6218);function $({scope:e,dataSourceId:t,editable:n},r,i,o,a){const s=F(e,r,i);let c=-1;const l=(0,f.fromComputation$)(`Load trigger of data source of ${i}`,(()=>s.dependOn()?(0,g.mapL)(o.dependOn(),(e=>({parameters:e,id:++c}))):(0,g.loading)())),u=(0,M.Ce)(r,i,l),d=(0,f.fromRequest$)(`Load data of data source of ${i}`,(()=>{const e=u.dependOn();return"available"!==e.status?e:a(e.value.parameters)})),h=B((0,M.Ul)(i,d),r,i,n);return(0,g.asDynamicValue$)((0,f.fromComputation$)(`Returned data of data source of ${i}`,(()=>(0,g.mapL)(h.dependOn(),(e=>(0,_.z$)(e,t))))))}function F(e,t,n){if(e){const[r]=t.useSlot(e,"firstLoadDone");return(0,f.fromComputation$)(`Is parent ${e} of ${n} ready?`,(()=>Boolean(r.dependOn())))}return(0,f.fromConstant$)(!0)}function B(e,t,n,r){const[i,o]=t.useSlot(n,"firstLoadDone"),[,a]=t.useSlot(n,"editableObject"),[s,c]=t.useSlot(n,"object"),l=e=>{r&&a(e),c(e)};return(0,f.withSideEffect$)(`Share object of ${n}`,e,(e=>{if((0,f.readUntracked)(i)||o("loading"!==e.status),"loading"===e.status){const e=(0,f.readUntracked)(s);void 0!==e&&"unavailable"!==e.status||l((0,g.loading)())}else l(e)}))}var V=n(9255),z=n(1118),U=n(5215);const W={};function q(e,t){W[e]=t}function H(e){const t=(0,U.it)(e),n=W[e];if(void 0===t||void 0===n)throw new I.AssertionError(`Sort order item: invalid attribute id '${e}'`);return{attributePath:t.attributePath,sortable:n}}function G(e){return e.map((e=>[H(e[0]).attributePath,e[1]]))}function Z(e,t){return e.map((e=>{const n=(0,U.MA)(e[0],t);return q(n,!0),[n,e[1]]}))}function K(e,t){return D()(e,t)}function X(e,t,n,r,i){const[o,s]=(0,f.fromMxSubscription$)(`Entity subscription of data source of ${r}`,{entity:e.entity}),c=e.refreshTime?(0,f.fromTimer$)(`Refresh of data source of ${r}`,e.refreshTime):(0,f.fromConstant$)(void 0),l=F(e.scope,n,r),u=function(e){const[t,n]=(0,f.useValue)(`Load delay of data source of ${e}`,!0);return setTimeout((0,a.action)((()=>n(!1))),1),t}(r),d=(0,f.fromComputation$)(`Load breaker of ${r}`,(()=>l.dependOn()&&!u.dependOn())),[h,p]=n.useSlot(r,`${e.dataSourceId}/limit`),m=(0,f.fromComputation$)(`Return empty of ${r}`,(()=>{var e;return(null!==(e=h.dependOn())&&void 0!==e?e:Number.POSITIVE_INFINITY)<=0})),v=(0,f.getPreviousValue$)(i),[y,b]=n.useSlot(r,`${e.dataSourceId}/sortOrder`),[w,_]=n.useSlot(r,`${e.dataSourceId}/filter`),[S,C]=(0,f.useValue)(`Reload ${r}`,[]);let E=-1;const O=(0,f.fromComputation$)(`Load trigger of data source of ${r}`,(()=>{if(o.dependOn(),c.dependOn(),S.dependOn(),d.dependOn()){const e=i.dependOn();return"unavailable"===e.status&&s(),(0,g.mapL)(e,(e=>m.dependOn()?{empty:!0}:{empty:!1,parameters:e,id:++E}))}return s(),(0,g.loading)()})),j=(0,M.Ce)(n,r,O,s),[k,R]=n.useSlot(r,`${e.dataSourceId}/offset`),N=(0,f.fromMutableComputation$)(`Retrieve parameters info of data source of ${r}`,(()=>{const e=h.dependOn();let n=k.dependOn();const r=y.dependOn(),o=w.dependOn();
66if(d.dependOn()){const e=v.dependOn();void 0===e||D()(i.dependOn(),e)||(n=0,(0,f.scheduleSideEffect)((()=>P)))}return{offset:null!=n?n:0,limit:null!=e?e:Number.POSITIVE_INFINITY,sortOrder:null!=r?r:t,filter:o}})),[T,A]=(0,f.useValue)(`Request total count of ${r}`,!1),P=()=>N.muted((()=>R(0)));return{fetchTrigger$:j,retrieveParameters$:N,silentlyResetOffset:P,needTotalCount$:T,immediateRetrieveParametersSetters:$(a.runInAction),delayedRetrieveParametersSetters:$(x.scheduleAction),loadedCallback:s};function $(t){return{setOffset(e){(0,L.TG)(e)&&Number.isFinite(e)&&t((()=>R(e)))},setLimit(e){(void 0===e||(0,L.TG)(e))&&t((()=>p(Number.isFinite(e)?e:void 0)))},requestTotalCount(e){(0,L.Xy)(e)&&t((()=>A(e)))},setSortOrder:n=>{(function(e,t){if(void 0===e)return!0;if(!Array.isArray(e))throw new I.AssertionError("Sort order: must be array");return e.forEach((e=>function(e){if(!Array.isArray(e)||2!==e.length)throw new I.AssertionError("Sort order item: must be an array with 2 elements");const[n,r]=e;if(!function(e){return H(e).sortable}(n))throw new I.AssertionError(`Sort order item: attribute with id '${n}' is not sortable`);if((0,U.it)(n).dataSourceId!==t)throw new I.AssertionError(`Sort order item: attribute with id '${n}' is linked to a different data source`);if("asc"!==r&&"desc"!==r)throw new I.AssertionError(`Sort order item: sort direction must be 'asc' or 'desc'. Got: '${r}'`)}(e))),!0})(n,e.dataSourceId)&&t((()=>{K((0,f.readUntracked)(y),n)||b(n)}))},setFilter:n=>{(0,V.fQ)(n,e.dataSourceId)&&t((()=>{(0,V.zT)((0,f.readUntracked)(w),n)||_(n)}))},reload:()=>{t((()=>{C([])}))}}}}function Y(e,t,n,r){const i=r?`${n}/${r}`:n,[o,a]=t.useSlot(i,"firstLoadDone");return(0,f.withSideEffect$)(`Share firstLoadDone state of ${i}`,e,(e=>{(0,f.readUntracked)(o)||a("loading"!==e.status)}))}function Q(e){return(0,g.asReloadable$)(e,(e=>{const{filter:t,sortOrder:n,offset:r,limit:i,items:o,totalCount:a,hasMoreItems:s}=e;return{filter:t,sortOrder:n,offset:r,limit:i,items:o,totalCount:a,hasMoreItems:s}}))}function J(e,t,n,r){const[,i]=r.useSlot(e,`${t}/items`);return(0,f.withSideEffect$)(`Published list value of data source: ${t}`,n,(({status:e,items:t})=>i("available"===e?{status:e,value:t}:{status:e})))}var ee=n(45),te=n(4037),ne=n(945),re=n(5537),ie=n(6598),oe=n(4663);class ae{constructor(e){this.enumeration=e}format(e){return e?(0,ne.translateEnumeration)(this.enumeration,e):""}parse(e){throw new Error("Enumeration values cannot be parsed")}}var se=n(1021);class ce{constructor(e){this.config=e,this.type=ee.FormatterType.Number}format(e){return e?(0,se.formatNumber)(e,this.config.groupDigits,this.config.decimalPrecision):""}parse(e){if(""===e)return{valid:!0,value:void 0};const t=(0,se.parseNumber)(e,this.config.decimalPrecision);return void 0===t?{valid:!1}:{valid:!0,value:t}}withConfig(e){return new ce(e)}}function le(e,t,n){const r=(0,te.getAttributeType)(e,t);return void 0===r?function(){const e={format:e=>void 0===e?"":String(e),parse:e=>({valid:!0,value:e}),withConfig:()=>e,getFormatPlaceholder:()=>{}};return e}():"Enum"===r?new ae((0,te.getAttributeEnumerationType)(e,t)):ue(r,n)}function ue(e,t){var n,r;switch(e){case"DateTime":return new oe.w(null!==(n=t.dateFormat)&&void 0!==n?n:{type:"date"});case"Integer":case"Long":case"Decimal":return new ce(null!==(r=t.numberFormat)&&void 0!==r?r:{groupDigits:!1});default:return function(e){const t={format:t=>(0,ie.formatValue)(t,e),parse:t=>{const n=(0,ie.parseValue)(t,e);return void 0!==n?{valid:!0,value:n}:{valid:!1}},withConfig:()=>t,getFormatPlaceholder:()=>{}};return t}(e)}}var de=n(3380),fe=n(2749);function he(e,t){return t?(0,i.mapValues)(t.expression.args,(t=>{const[n]=e.useSlot(t,"object");return()=>{var e;return(0,g.getOrElseL)(null!==(e=(0,f.readUntracked)(n))&&void 0!==e?e:(0,g.loading)(),void 0)}})):{}}function pe(e,t,n,r,o,a){var s,c;return null!==(c=null!==(s=function(e,t){const n=(0,L.K8)(e),r=(0,de.validate)(n,t);if(r!==de.validation.OK)return(0,fe.translate)("mendix.lib.Validations",(0,i.ensure)(ge[r]))}(t,n))&&void 0!==s?s:r?r(e):void 0)&&void 0!==c?c:o.validation?function(e,t,n,r){if(!(0,T.lq)(r.expression,{...n,value:()=>{switch(t){case"ObjectReference":default:return e;case"ObjectReferenceSet":return(0,i.crash)()}}}))return r.message||(0,fe.translate)("mendix.lib.Validations","required_field")}(t,n,a,o.validation):void 0}const ge={[de.validation.NOT_INTEGER]:"invalid_number",[de.validation.RANGE_INTEGER]:"range_integer",[de.validation.RANGE_LONG]:"range_long",[de.validation.RANGE_DECIMAL]:"range_decimal"};function me(e,t,n,r,o,a,s,c){const[l,u]=(0,f.useValue)(`Invalid value of ${c}`,void 0),d=(0,f.getPreviousValue$)(e),p=(0,f.fromComputation$)(`Server validation of ${c}`,(()=>
66{const t=e.dependOn();return"available"!==t.status?[void 0]:(0,f.dependOnSubscription)({guid:t.value.object.getGuid(),attr:o.attribute,val:!0,tag:`Validation of ${c}`})})),g=(0,f.getPreviousValue$)(p),[v]=a.useSlot(m.pageScope,"validationRequest"),y=(0,f.getPreviousValue$)(v),[b,w]=(0,f.useValue)(`Local value validation of ${c}`,void 0),[,x]=a.useSlot(s,"isInvalid"),_=(0,f.withSideEffect$)(`Published validation of ${c}`,(0,f.fromComputation$)(`Validation of ${c}`,(()=>{const o=e.dependOn(),a=d.dependOn(),c=p.dependOn(),u=g.dependOn(),m=v.dependOn(),w=y.dependOn(),x=b.dependOn();if(o===a)return c!==u?c[0]:m!==w?function(){var o;const a=(0,f.readUntracked)(e);if("available"!==a.status)return;const c=null!==(o=(0,f.readUntracked)(l))&&void 0!==o?o:t(a.value);try{return n(c,a.value.object,r())}catch(e){return void function(e,t){(0,h.handleError)(new Error(`An error occurred while validating current value in ${(0,i.toFriendlyId)(e)}: ${t instanceof Error?t.message:t}`))}(s,e)}}():x})),(e=>x(void 0!==e)));return{validation$:_,invalidValue$:l,setValidation:function(e,t){w(e),u(t)}}}const ve=c.LogManager.get().getLogger(),ye=(0,v.eo)(((e,t,n,r)=>{var o;const s=`${n}/${r}`,c=le(e.entity,e.attribute,null!==(o=e.formatting)&&void 0!==o?o:{}),l=xe(e.entity,e.attribute),[u,p]=(0,f.useValue)(`Formatter for ${s}`,c);let v;const y=we(e,t,n,r,s),b=(0,f.getPreviousValue$)(y),w=function(e,t){const n=he(e,t.validation);return(e,r,i)=>{const o=r.getAttributeType(t.attribute);return"unparsed"===e.state?function(e,t,n){switch(n){case"Enum":case"Boolean":case"ObjectReference":case"ObjectReferenceSet":return(0,fe.translate)("mendix.lib.Validations","invalid_attribute",e,t);case"DateTime":return(0,fe.translate)("mendix.lib.Validations","invalid_date");case"Integer":case"Long":case"Decimal":return(0,fe.translate)("mendix.lib.Validations","invalid_number");default:throw new Error(`Attribute type ${n} is not supported.`)}}(e.value,t.attribute,o):pe(e.value,e.value,o,i,t,n)}}(t,e),{validation$:_,invalidValue$:S,setValidation:C}=me(y,(e=>({state:"parsed",value:e.attribute})),w,(()=>v),e,t,n,s),E=(0,d.IH)(e.onChange.argMap,t),[O]=t.useSlot(m.pageScope,"form"),j=(0,f.fromComputation$)(`Editable value of ${s}`,(()=>{const t=y.dependOn();b.dependOn()!==t&&(0,x.runActionInComputed)((()=>{C(void 0,void 0)}));const r=_.dependOn(),i=S.dependOn(),o=u.dependOn(),s="available"!==t.status||void 0!==i&&"unparsed"===i.state?void 0:void 0!==i?i.value:t.value.attribute,d="available"!==t.status?"":void 0!==i&&"unparsed"===i.state?i.value:o.format(void 0!==i?i.value:t.value.attribute);return{status:t.status,value:s,displayValue:d,readOnly:"available"!==t.status||t.value.readOnly,validation:r,formatter:o,universe:l,setValidator:e=>{v=e},setValue:(0,a.action)((r=>"available"!==t.status?_e(e,n):t.value.readOnly?Se(e,n):k({state:"parsed",value:r},t.value))),setTextValue:(0,a.action)((r=>"available"!==t.status?_e(e,n):t.value.readOnly?Se(e,n):k({state:"unparsed",value:r},t.value))),setFormatter:(0,a.action)((e=>p(null!=e?e:c)))}}));return(0,g.asReloadable$)(j,(e=>({value:e.value,displayValue:e.displayValue})));function k(t,r){if("unparsed"===t.state){const e=r.attribute,n=(0,f.readUntracked)(u),i=n.type===ee.FormatterType.DateTime&&e instanceof Date?n.parse(t.value,e):n.parse(t.value);t=i.valid?{state:"parsed",value:i.value}:t}else(0,L.pS)(t.value,e.entity,e.attribute);try{const i=r.object,o=w(t,i,v);if(void 0!==o)C(o,t);else{const r=i.get2(e.attribute);a.comparer.structural(r,t.value)?C(void 0,void 0):(i.set2(e.attribute,t.value),be(E,O,e.onChange,n))}}catch(e){!function(e,t){(0,h.handleError)(new Error(`An error occurred while validating new value set by ${(0,i.toFriendlyId)(e)}: ${t instanceof Error?t.message:t}`))}(n,e)}}}));function be(e,t,n,r){const o=(0,f.readUntracked)(e),a=(0,i.ensure)((0,f.readUntracked)(t))[0];setTimeout((()=>{(0,s.j)(n,{abortOnClientValidations:!0,abortOnServerValidations:!1,widgetIsValid:!0,currentForm:a},(0,i.mapValues)(o,(e=>(0,g.getOrElseL)(e,void 0))),void 0,(e=>function(e,t){t instanceof l.ValidationError||(0,h.handleError)(new Error(`An error occurred while executing On change at ${(0,i.toFriendlyId)(e)}: ${t.message}`))}(r,e)))}),0)}function we(e,t,n,r,o){const[a]=t.useSlot(m.pageScope,"subtreeReadonly"),s=e.isEditable?(0,T._Z)(`Conditional editability of ${(0,i.toFriendlyId)(n)}`,e.isEditable,t):(0,f.fromConstant$)((0,g.available)(!0)),c=(0,M.yE)(t,e.scope),l=e.path?(0,M.lk)(c,e.path):c,u=(0,M.tz)(l,e.attribute),d=(0,f.fromComputation$)(`Submitted value of ${o}`,(()=>{var t;const r=null!==(t=a.dependOn())&&void 0!==t&&t,o=l.dependOn();return(0,g.flatMapL)(u.dependOn(),(t=>t.access===re.Nv.None?(function(e,t){ve.debug(`No access to attribute "${e.attribute}" of entity "${e.entity}" in widget ${(0,i.toFriendlyId)(t)}.`)}(e,n),(0,g.unavailable)()):(0,g.mapL)(s.dependOn(),(e=>({object:(0,g.getOrCrashL)(o),attribute:t.value,readOnly:t.access===re.Nv.Read||r||!e})))))}
66)),[,h]=t.useSlot(`${n}.${r}`,"editableObject");return(0,f.withSideEffect$)(`Published editable object of ${o}`,d,(e=>h((0,g.flatMapL)(e,(e=>e.readOnly?(0,g.unavailable)():(0,g.available)(e.object))))))}function xe(e,t){switch((0,te.getAttributeType)(e,t)){case"Enum":return(0,ne.getEnumerationOptions)((0,te.getAttributeEnumerationType)(e,t));case"Boolean":return[!0,!1];default:return}}function _e(e,t){ve.debug(`Widget ${(0,i.toFriendlyId)(t)} is attempting to change the value of attribute "${e.attribute}" of entity "${e.entity}" which is not available.`)}function Se(e,t){ve.debug(`Widget ${(0,i.toFriendlyId)(t)} is attempting to change the value of attribute "${e.attribute}" of entity "${e.entity}" which is not writable.`)}const Ce=(0,v.eo)(((e,t,n,r)=>{const i=`${n}/${r}`,o=we(e,t,n,r,i),s=(0,f.fromComputation$)("Parent object of association",(()=>(0,g.mapL)(o.dependOn(),(e=>e.object)))),c=`${e.attribute}/${e.endpointEntity}`;switch(e.type){case"Reference":return l((0,M.lk)(s,c),(e=>null==e?void 0:e.id),(e=>e?[e]:[]),_.Rd,((e,t)=>{const n=t.find((t=>t.id===e));return{match:n,isFullMatch:(null==n?void 0:n.id)===e}}));case"ReferenceSet":return l((0,M.ME)(s,c),(e=>{var t;return null!==(t=null==e?void 0:e.map((e=>e.id)))&&void 0!==t?t:[]}),(e=>null!=e?e:[]),_.cC,((e,t)=>{const n=null==e?void 0:e.map((e=>t.find((t=>t.id===e)))).filter((e=>void 0!==e));return{match:null!=n?n:[],isFullMatch:(null==n?void 0:n.length)===(null==e?void 0:e.length)}}))}function l(s,c,l,u,h){let p;const[v,y]=(0,f.useValue)("Object from setValue",void 0),b=function(e,t,n){const r=he(e,t.validation);return(e,i,o)=>{const a=i.getAttributeType(t.attribute);return pe(e,n(e),a,o,t,r)}}(t,e,c),[w]=t.useSlot(n,`${e.selectableObjectsId}/items`),[x]=t.useSlot(n,`${e.selectableObjectsId}/limit`),[S]=t.useSlot(m.pageScope,"formSuspended"),C=Ee(i,s,e);let E=[],O=!1;const j=(0,f.fromComputationWithDeepEquality$)(`Referenced object of ${i}`,(()=>{var t;const n=null!==(t=w.dependOn())&&void 0!==t?t:(0,g.loading)(),r="loading"===n.status;E="available"===n.status?n.value:"unavailable"===n.status?[]:E,O||(O=!r);const i=v.dependOn(),s=N.dependOn(),l=(0,g.mapL)(o.dependOn(),(e=>e.attribute));if(s)return(0,g.available)(s);if(r&&!O)return(0,g.loading)();if("available"===l.status){const t=l.value,{match:n,isFullMatch:o}=h(t,E);if(o)return(0,g.available)(n);const s=S.dependOn();return!e.restrictToDataSource||r||0===(0,f.readUntracked)(x)||s?i&&D()(c(i),l.value)?(0,g.available)(i):C.dependOn():(function(e){setTimeout((0,a.action)((()=>{"loading"===(0,f.readUntracked)(w).status||(0,f.readUntracked)(S)||L(e)})))}(n),(0,g.loading)())}return l})),{validation$:k,setValidation:R,invalidValue$:N}=me(o,(e=>{const t=(0,f.readUntracked)(j);return"available"!==t.status?void 0:t.value}),b,(()=>p),e,t,n,i),T=(0,d.IH)(e.onChange.argMap,t),[A]=t.useSlot(m.pageScope,"form"),P=(0,f.fromComputation$)(`Readonly & Status value of ${i}`,(()=>"loading"===j.dependOn().status?(0,g.loading)():o.dependOn())),M=Y((0,f.fromComputation$)(`Modifiable value of ${i}`,(()=>{const t=j.dependOn(),r=k.dependOn(),i=P.dependOn(),o="available"!==i.status||i.value.readOnly,s=i.status,c="available"!==t.status?void 0:t.value;return{status:s,value:Object.freeze(c),type:e.type,validation:r,setValue:(0,a.action)((t=>"available"!==s?_e(e,n):o?Se(e,n):L(t))),readOnly:o,setValidator:e=>{p=e}}})),t,n,r);return(0,g.asReloadable$)(M,(e=>({value:e.value})));function L(t){const r=(0,f.readUntracked)(o);if("available"!==r.status)return void _e(e,n);if(void 0!==t&&!u(t))throw new I.AssertionError(`Value ${t} is not assignable to association of type ${e.type}.`);const a=r.value;if(l(t).some((t=>!(0,_.V7)(t,e.selectableObjectsId))))throw new I.AssertionError(`An ObjectItem can only be passed to an association property that belongs to the same selectable objects source. ${i}`);const s=a.object,d=b(t,s,p);if(void 0!==d)R(d,t);else{const r=s.get2(e.attribute),i=c(t);!function(e,t){const n=e=>Array.isArray(e)?e.sort(((e,t)=>e.localeCompare(t))):e;return D()(n(e),n(t))}(r,i)?(a.object.set2(e.attribute,null!=i?i:""),y(t),be(T,A,e.onChange,n)):R(void 0,void 0)}}}}));function Ee(e,t,n){return(0,f.fromComputation$)(`Referenced objects of ${e}`,(()=>(0,g.mapL)(t.dependOn(),(e=>Array.isArray(e)?e.map((e=>(0,_.z$)(e,n.selectableObjectsId))):(0,_.z$)(e,n.selectableObjectsId)))))}var Oe=n(293);const je=(0,v.eo)(((e,t,n,r)=>{const i=`List reference "${n}/${r}"`;function o(t){const n=Ee(i,t,e),r=(0,f.fromComputation$)(`Readable value of ${i}`,(()=>{const e=n.dependOn(),t=e.status,r="available"!==e.status?void 0:e.value;return{status:t,value:Object.freeze(r)}}));return(0,g.asReloadable$)(r,(e=>({value:e.value})))}const a=`${e.attribute}/${e.endpointEntity}`,s=e.path?`${e.path}/${a}`:a,c=(0,Oe.Xr)(s,e.dataSourceId,e.selectableObjectsId),l=e.filterable&&!(mx.isOffline()&&e.path);return(0,Oe.A5)(c,e.type),(0,V.MY)(c,l),E((function(t){const n=(0,f.fromConstant$)((0,g.available)(t));switch(e.type){case"Reference":return o((0,M.lk)(n,s));case"ReferenceSet":return o((0,M.ME)(n,s))}}),i,e.dataSourceId,{type:e.type,id:c,filterable:l})})),ke=c.LogManager.get().getLogger(),Re=(0,v.eo)(((e,t,n,r)=>{var o;const a=le(e.entity,e.attribute,null!==(o=e.formatting)&&void 0!==o?o:{}),s=`List attribute "${n}/${r}"`,c=e.path?`${e.path}/${e.attribute}`:e.attribute,l=e.sortable&&!(mx.isOffline()&&e.path),u=e.filterable&&!(mx.isOffline()&&e.path),d=(0,U.MA)(c,e.dataSourceId),h=e.attributeType,p=xe(e.entity,e.attribute),m="Enum"===h?p:void 0;return(0,U.yN)(d,h,function(e){var t,n;const r=e.path?e.path.split("/").reverse()[0]:e.entity,i=null===(n=null===(t=(0,te.getEntity
66Meta)(r))||void 0===t?void 0:t.attributes[e.attribute])||void 0===n?void 0:n.isDateLocalized;return void 0!==i&&!i}(e),m),q(d,l),(0,V.MY)(d,u),C((function(t){const r=(0,f.fromConstant$)((0,g.available)(t)),o=e.path?(0,M.lk)(r,e.path):r,c=(0,M.tz)(o,e.attribute),l=(0,f.fromComputation$)(`${s} for object ${t.getGuid()}`,(()=>{const t=(0,g.flatMapL)(c.dependOn(),(t=>t.access===re.Nv.None?(function(e,t){ke.debug(`No access to attribute "${e.attribute}" of entity "${e.entity}" in widget ${(0,i.toFriendlyId)(t)}.`)}(e,n),(0,g.unavailable)()):(0,g.available)(t.value))),r=(0,g.getOrElseL)(t,void 0),o=a.format(r);return{status:t.status,value:r,displayValue:o,formatter:a,readOnly:!0,setFormatter:()=>Ne("setFormatter",n),setValue:()=>Ne("setValue",n),setTextValue:()=>Ne("setTextValue",n),validation:void 0,setValidator:()=>Ne("setValidator",n)}}));return(0,g.asReloadable$)(l,(({value:e,displayValue:t})=>({value:e,displayValue:t})))}),s,e.dataSourceId,{id:d,sortable:l,filterable:u,type:h,formatter:a,universe:p})}));function Ne(e,t){throw new Error(`Widget ${(0,i.toFriendlyId)(t)} is attempting to call "${e}". This operation is not yet supported on attributes linked to a datasource.`)}const Te=(0,v.eo)((({selectionType:e,dataSourceId:t,onChange:n},r,o,s)=>{const c=`${o}/${s}`,[l,u]=r.useSlot(o,"selection"),[h]=r.useSlot(o,`${t}/items`),[p,v]=(0,f.useValue)(`Selected items of ${c}`,[]),y=function(){if(!n)return;const e=(0,d.IH)(n.argMap,r),[t]=r.useSlot(m.pageScope,"form");return(r,i)=>{D()(r,i)||be(e,t,n,o)}}();switch(e){case"Single":return w();case"Multi":return void 0===(0,f.readUntracked)(l)&&u([]),w()}function b(t){const n=t.map((e=>e.id)),r="Single"===e?n[0]:n,i=(0,f.readUntracked)(l);u(r),v(t),null==y||y(r,i)}function w(){const n=(0,f.fromComputationWithDeepEquality$)(`Selected items from data source of ${c}`,(()=>{var e;const t=S(l.dependOn()),n=null!==(e=h.dependOn())&&void 0!==e?e:(0,g.loading)();switch(n.status){case"loading":return p.dependOn();case"unavailable":return r(t,[]);case"available":return r(t,n.value)}}));function r(e,t){const n=(0,i.toObjectByKey)(t,(e=>e.id)),r=e.map((e=>n[e])).filter((e=>e));return(0,x.scheduleAction)((()=>b(r))),r.length===e.length?r:p.dependOn()}return(0,f.fromComputation$)(`Selection value of ${c}`,(()=>{const r=(i=n.dependOn(),"Single"===e?i[0]:i);var i;return{type:e,name:c,selection:Object.freeze(r),setSelection:(0,a.action)((n=>function(n){if(!function(t){return"Single"===e&&(void 0===t||(0,_.Rd)(t))||"Multi"===e&&(0,_.cC)(t)}(n))throw new I.AssertionError(`Value ${n} is not assignable to selection of type ${e}. (${c})`);const r=S(n);if(r.some((e=>!(0,_.V7)(e,t))))throw new I.AssertionError(`An ObjectItem can only be passed to a selection property that belongs to the same data source. (${c})`);if(r.length>1&&new Set(r.map((e=>e.id))).size!==r.length)throw new I.AssertionError(`A multi-selection may not contain duplicate objects. (${c})`);(0,a.runInAction)((()=>b(r)))}(n)))}}))}function S(e){return Array.isArray(e)?e:e?[e]:[]}})),Ae=(0,v.eo)((({slot:e,type:t,initialValue:n},r,i)=>{const[o,s]=r.useSlot(i,e);void 0===(0,f.readUntracked)(o)&&void 0!==n&&s(n);const c=ue(t,{}),l=(0,f.fromComputation$)(`Submitted value '${e}' for widget ${i}`,(()=>o.dependOn())),[u,d]=(0,f.useValue)(`Unsubmitted value of widget variable '${e}' for widget ${i}`,void 0),h=a.observable.box(c,{deep:!1});let p;const g=(0,f.getPreviousValue$)(l);return(0,f.fromComputation$)(`Widget variable '${e}' for widget ${i}`,(()=>
66{const e=l.dependOn();g.dependOn()!==e&&(0,x.runActionInComputed)((()=>d(void 0)));const t=u.dependOn(),n=void 0!==t&&"unparsed"===t.state?void 0:void 0!==t?t.value:e,r=void 0!==t&&"unparsed"===t.state?t.value:h.get().format(void 0!==t?t.value:e);return{status:"available",validation:void 0!==t?t.message:void 0,universe:void 0,readOnly:!1,formatter:h.get(),value:n,displayValue:r,setValidator:e=>p=e,setFormatter:(0,a.action)((e=>h.set(null!=e?e:c))),setTextValue:(0,a.action)((e=>function(e){const t=h.get().parse(e);t.valid?m(t.value):d({state:"unparsed",value:e,message:(0,fe.translate)("mendix.lib.Validations","invalid_value")})}(e))),setValue:(0,a.action)((e=>m(e)))}}));function m(e){(0,L.cs)(e,t,!0);const n=void 0!==p?p(e):void 0;void 0!==n?d({state:"parsed",value:e,message:n}):s(e)}})),Pe=(0,v.eo)(((e,t,n)=>{const[r]=t.useSlot(m.pageScope,"form"),o=(0,f.fromComputation$)(`Form page title of ${n}`,(()=>(0,i.ensure)(r.dependOn())[0].getTitle()));return(0,g.asDynamicValue$)((0,T._Z)(`Value of ${(0,i.toFriendlyId)(n)}`,e.expression,t,{pageTitle:o}))}));function De(e,t,n,r,i,o,a,s){const c=(0,M.yE)(r,t),l=n?(0,M.lk)(c,n):c,u=s?B(l,r,i,!1):function(e,t,n){const[r,i]=t.useSlot(n,"firstLoadDone");return(0,f.withSideEffect$)(`Share first load done of ${n}`,e,(e=>{(0,f.readUntracked)(r)||i("loading"!==e.status)}))}(l,r,i),d=(0,M.tz)(u,"HasContents"),h=(0,M.tz)(u,"Contents"),p=(0,M.tz)(u,"changedDate"),m=(0,M.tz)(u,"Name");return(0,f.fromComputation$)(e,(()=>(0,g.flatMapL)(u.dependOn(),(e=>{var t,n;if(e.metaData.isRemoteFileEntity)return(0,g.getOrCrashL)(h.dependOn()).access===re.Nv.None?(0,g.unavailable)():(0,g.available)({uri:mx.data.getDocumentUrl(e.getGuid(),"",!1)});const r=(0,g.getOrCrashL)(d.dependOn()),i=(0,g.getOrCrashL)(p.dependOn()),s=(0,g.getOrCrashL)(m.dependOn());if(r.access===re.Nv.None||!r.value||s.access===re.Nv.None)return(0,g.unavailable)();if(o&&i.access===re.Nv.None)return(0,g.unavailable)();const c=mx.data.getDocumentUrl(e.getGuid(),null!==(n=null===(t=i.access!==re.Nv.None?i.value:void 0)||void 0===t?void 0:t.getTime())&&void 0!==n?n:"",a,s.value);return(0,g.available)({uri:c,name:s.value})}))))}const Ie=(0,v.eo)((({scope:e,path:t},n,r,i)=>(0,g.asDynamicValue$)(De(`File property of ${r}/${i}`,e,t,n,r,!1,!1,!1)))),Me=c.LogManager.get().getLogger(),Le=(0,v.eo)(((e,t,n,r)=>{const o=(0,M.yE)(t,e.scope),[s]=t.useSlot(m.pageScope,"subtreeReadonly"),c=e.isEditable?(0,T._Z)(`Conditional editability of ${(0,i.toFriendlyId)(n)}`,e.isEditable,t):(0,f.fromConstant$)((0,g.available)(!0)),l=(0,f.fromComputation$)(`Readonly of ${n}/${r}`,(()=>"available"!==o.dependOn().status||!(0,g.getOrElseL)(c.dependOn(),!1)||Boolean(s.dependOn())));let u;function d(e){u=e}const[h,p]=(0,f.useValue)(`Validation of ${n}/${r}`,void 0),[,v]=t.useSlot(n,"isInvalid"),[y,b]=(0,f.useValue)(`Selected file of ${n}/${r}`,void 0);function w(e){if((0,f.readUntracked)(l))return void Me.debug(`Widget ${(0,i.toFriendlyId)(n)} is attempting to upload a file while it is readonly.`);const t=void 0!==u?u(e):void 0;(0,a.runInAction)((()=>{p(t),v(void 0!==t),b(e)}))}const _=(0,f.getPreviousValue$)(o);return function(e,t,n,r,o,a){let s;return(0,f.withSideEffect$)(`Upload value of ${o}/${a}`,e,void 0,(()=>{s()}),(()=>{const o=(0,i.ensure)((0,f.readUntracked)(t))[0];s=o.listen("submit",((t,i)=>{const o=(0,f.readUntracked)(n),{value:a,validation:s}=(0,f.readUntracked)(e);if(!a||s)return void t();if("available"!==o.status)return void i(new I.AssertionError);const c=mx.ui.showProgress();mx.data.saveDocument(o.value.getGuid(),null,null!=r?r:{},a,(()=>{mx.ui.hideProgress(c),t()}),(e=>{mx.ui.hideProgress(c),i(e)}))}))}))}((0,f.fromComputation$)(`File upload value of ${n}/${r}`,(()=>{var e;const t=(0,g.getOrElseL)(o.dependOn(),void 0),n=(0,g.getOrElseL)(null!==(e=_.dependOn())&&void 0!==e?e:(0,g.unavailable)(),void 0),r=l.dependOn();return(t!==n||r)&&(0,x.runActionInComputed)((()=>{p(void 0),v(!1),b(void 0)})),{readOnly:r,value:y.dependOn(),validation:h.dependOn(),setValidator:d,setValue:w}})),t.useSlot(m.pageScope,"form")[0],o,e.thumbnailSize,n,r)})),$e=(Fe=e=>new Promise(((t,n)=>{mx.data.getImageUrl(e,(e=>t(e)),n)})),!1,(0,v.eo)((({scope:e,path:t,showAsThumbnail:n,shareObject:r},i,o,a)=>{const s=De(`Image path of ${o}/${a}`,e,t,i,o,false,Boolean(n),Boolean(r));return(0,g.asDynamicValue$)((0,f.fromRequest$)(`Fetch an image for ${o}/${a}`,(()=>{const e=s.dependOn();return"available"!==e.status?e:Fe(e.value.uri,e.value.name).then((t=>(0,g.available)({uri:t,...e.value.name&&{name:e.value.name}})))}
66)))})));var Fe,Be=n(5517),Ve=n(6199);const ze=(0,v.eo)((e=>{return(0,f.fromConstant$)((0,Be.fp)({uri:(0,Ve.getStaticResourceUrlFromPath)(e.image.uri),name:(t=e.image.uri,null!==(r=null===(n=/([^/$]+?)(\?|$)/.exec(t))||void 0===n?void 0:n[1])&&void 0!==r?r:"")}));var t,n,r})),Ue=(0,v.eo)(((e,t,n,r)=>C((r=>function(e,t,n,r){const o=`Value of ${(0,i.toFriendlyId)(n)}`,a=(0,f.fromConstant$)((0,g.available)(r));return(0,g.asDynamicValue$)((0,T.pI)(o,e.expression,(e=>e===n?a:(0,T.Qr)(o,t,e))))}(e,t,n,r)),`List expression "${n}/${r}"`,e.dataSourceId)));var We=n(7223);function qe(e,t,n){t instanceof p.Z?(0,h.handleError)(t):(0,h.handleError)(new Error(`An error occurred while executing ${n} data source for widget ${(0,i.toFriendlyId)(e)}: ${t instanceof Error?t.message:t}`))}function He(e,t,n,r,o){const{fetchTrigger$:a,retrieveParameters$:s,silentlyResetOffset:c,needTotalCount$:l,delayedRetrieveParametersSetters:u,immediateRetrieveParametersSetters:d,loadedCallback:h}=X(e,[],t,n,r),p=(0,f.fromRequest$)(`Load data of ${n}`,(()=>{const e=a.dependOn();return"available"!==e.status?e:e.value.empty?(0,g.available)({main:[],extra:[]}):o(e.value.parameters)})),m=(0,M.$k)(n,p,(e=>e.main.concat(e.extra))),v=(0,f.fromComputation$)(`Filter of ${n}`,(()=>s.dependOn().filter)),y=(0,f.fromRequest$)(`Filtered data of ${n}`,(()=>{const e=m.dependOn();return"available"!==e.status||0===e.value.main.length?(0,g.mapL)(e,(e=>e.main)):async function(e,t){if(!e)return t;const n=(0,V.TK)(e);return(await Promise.all(t.map((e=>(0,T.Px)(n,e).then((t=>t?e:void 0)))))).filter((e=>!!e))}(v.dependOn(),e.value.main).then((e=>(0,g.available)(e)))})),b=(0,f.fromComputation$)(`Sort order of ${n}`,(()=>s.dependOn().sortOrder)),w=(0,f.fromRequest$)(`Sorted data of ${n}`,(()=>{const e=y.dependOn();return"available"!==e.status||0===e.value.length?e:async function(e,t){return 0===e.length?t:(await Promise.all(t.map((t=>Promise.all(e.map((e=>{const n=function(e){const t=(0,i.ensure)((0,U.it)(e[0])).attributePath,n=(0,i.ensure)((0,U.WF)(e[0])),r=(0,z.Kb)("currentObject",t);return"String"===n?(0,z.mf)("toLowerCase",r):r}(e);return(0,T.Px)(n,t)}))).then((e=>({sortValues:e,mxObject:t}))))))).sort(function(e){return function(t,n){let r=0;for(let o=0;o<e.length&&0===r;o++){const a=t.sortValues[o],s=n.sortValues[o],c=(0,i.ensure)(e[o]),l="asc"===c[1]?1:-1;if(a!==s){if(void 0===a||""===a){r=l;break}if(void 0===s||""===s){r=-l;break}switch((0,i.ensure)((0,U.WF)(c[0]))){case"AutoNumber":r=k()(a).cmp(k()(s));break;case"String":case"Enum":case"HashString":r=a>s?1:-1;break;case"Long":case"Integer":case"Decimal":a instanceof k()&&s instanceof k()||(0,i.crash)(),r=a.cmp(s);break;
66case"DateTime":a instanceof Date&&s instanceof Date||(0,i.crash)(),r=a.getTime()>s.getTime()?1:-1;break;case"Boolean":r=a?1:-1;break;default:(0,i.crash)()}r*=l}}if(0===r){const o="asc"===(0,i.ensure)(e[0])[1]?1:-1;r=t.mxObject.getGuid()>n.mxObject.getGuid()?o:-o}return r}}(e)).map((e=>e.mxObject))}(b.dependOn(),e.value).then((e=>(0,g.available)(e)))})),x=()=>setTimeout(h,0),S=(0,f.fromComputation$)(`Paged data of ${n}`,(()=>{const t=w.dependOn();switch(t.status){case"loading":return{status:"loading",...(0,f.readUntracked)(s),...d};case"unavailable":return x(),{status:"unavailable",...s.dependOn(),...d};case"available":let{offset:n,limit:r,sortOrder:i,filter:o}=s.dependOn();return n>=t.value.length&&(n=0,(0,f.scheduleSideEffect)(c)),x(),{status:"available",offset:n,limit:r,sortOrder:i,filter:o,items:t.value.slice(n,n+r).map((t=>(0,_.z$)(t,e.dataSourceId))),totalCount:l.dependOn()?t.value.length:void 0,hasMoreItems:n+r<t.value.length||0===r,...u}}}));return Q(Y(J(n,e.dataSourceId,S,t),t,n))}const Ge=c.LogManager.get().getLogger(),Ze=(0,v.eo)(((e,t,n)=>{const r=(0,i.toFriendlyId)(n),o=(0,M.yE)(t,e.scope),a=e.directPath?(0,M.ME)(o,e.directPath,!0):(0,f.fromConstant$)((0,g.available)("cacheMiss"));return He(e,t,n,o,(async function(t){const i=a.dependOn();if("available"===i.status&&"cacheMiss"!==i.value)return s({mxObjects:i.value,extra:[]}),(0,g.available)({main:i.value,extra:[]});let o;var c;c=t.getGuid(),Ge.debug(`Fetching data with context '${c}' and queryId '${e.queryId}' for widget ${r}`);try{o=await(0,We.onlineData)().retrieveByPath(t.getGuid(),e.queryId)}catch(e){return qe(n,e,"association"),(0,g.unavailable)()}return s(o),(0,g.available)({main:o.mxObjects,extra:o.extra})}));function s({mxObjects:e,extra:t}){Ge.debug(`Received ${e.length} objects and ${t.length} objects over schema for widget ${r}`,"object ids:",e.map((e=>e.getGuid())),"extra ids:",t.map((e=>e.getGuid())))}}));var Ke=n(6610);function Xe(e,t,n,r,i,o){const{fetchTrigger$:a,retrieveParameters$:s,silentlyResetOffset:c,needTotalCount$:l,immediateRetrieveParametersSetters:u,delayedRetrieveParametersSetters:d,loadedCallback:h}=X(e,t,n,r,i),p=(0,f.fromRequest$)(`Load data of ${r}`,(()=>{const e=a.dependOn();if("available"!==e.status)return e;const t=s.dependOn();if(e.value.empty)return(0,g.available)({offset:t.offset,limit:0,sortOrder:t.sortOrder,filter:t.filter,objects:[],hasMoreItems:!0,parameters:void 0,triggerId:-1,requestedTotalCount:!1});const{parameters:n,id:r}=e.value,i=l.dependOn(),c=(0,f.readUntracked)(m),{sliceToKeep:u,pageToFetch:d,loadAtEnd:h}=function(e,t){if("available"!==e.status)return{};if(!K(e.value.sortOrder,t.sortOrder))return{};if(!(0,V.zT)(e.value.filter,t.filter))return{};const[n,r]=[e.value.offset,e.value.offset+e.value.limit],[i,o]=[t.offset,t.offset+t.limit],[a,s]=[Math.max(n,i),Math.min(r,o)];if(a>=s)return{};if(i<a&&o>s)return{};const c=o>r,l={offset:c?s:i,limit:o-i-(s-a)};return{sliceToKeep:[a-n,s-n],loadAtEnd:c,pageToFetch:l.limit>0?l:void 0}}(c,t);if("available"!==c.status||c.value.triggerId!==r||i&&!c.value.requestedTotalCount||void 0===u)return o(n,t,i).then((({mxObjects:e,totalCount:o,hasMoreItems:a})=>(0,g.available)({...t,parameters:n,triggerId:r,objects:e,totalCount:o,hasMoreItems:a,requestedTotalCount:i})));if(void 0===d)return(0,g.available)({...c.value,...t,objects:c.value.objects.slice(...u),hasMoreItems:u[1]&&u[1]<c.value.objects.length||c.value.hasMoreItems,totalCount:i?c.value.totalCount:void 0,requestedTotalCount:i});{const e=c.value.objects.slice(...u);return[c,o(n,{...d,sortOrder:t.sortOrder,filter:t.filter},i).then((({mxObjects:n,hasMoreItems:r,totalCount:o})=>(0,g.available)({...c.value,...t,objects:h?e.concat(n):n.concat(e),hasMoreItems:h?r:c.value.hasMoreItems,totalCount:o,requestedTotalCount:i})))]}})),m=(0,f.fromRequest$)(`Retry to load data of ${r}`,(()=>{const e=p.dependOn();if("available"!==e.status)return e;if(e.value.objects.length>0||0===e.value.offset)return e;if((0,f.scheduleSideEffect)(c),0===e.value.limit)return(0,g.available)({...e.value,offset:0});const{limit:t,sortOrder:n,filter:r}=(0,f.readUntracked)(s),i=(0,f.readUntracked)(l);return o(e.value.parameters,{limit:t,offset:0,sortOrder:n,filter:r},i).then((({mxObjects:i,totalCount:o,hasMoreItems:a})=>(0,g.available)({...e.value,limit:t,sortOrder:n,filter:r,offset:0,objects:i,totalCount:o,hasMoreItems:a})))})),v=(0,M.$k)(r,m,(e=>e.objects)),y=(0,f.fromComputation$)(`Prepare data of ${r}`,(()=>
66{const t=v.dependOn();let n;if("available"===t.status){const{objects:r,totalCount:i,offset:o,limit:a,hasMoreItems:s,sortOrder:c,filter:l}=t.value;n={status:"available",offset:o,limit:a,sortOrder:c,filter:l,items:r.map((t=>(0,_.z$)(t,e.dataSourceId))),hasMoreItems:s,totalCount:i,...d}}else n={status:t.status,...(0,f.readUntracked)(s),...u};return"loading"!==n.status&&setTimeout(h,0),n}));return Q(Y(J(r,e.dataSourceId,y,n),n,r))}const Ye=c.LogManager.get().getLogger(),Qe=(0,v.eo)(((e,t,n,r)=>{var o;const a=Object.fromEntries(Object.entries(null!==(o=e.arguments)&&void 0!==o?o:{}).map((([e,[n]])=>(0,i.tuple)((0,i.ensure)(e.split("$")[0]),(0,M.yE)(t,n))))),s=e.constraints,c=s?(0,f.fromComputation$)(`queryFilter for ${n}/${r}`,(()=>{const t=(0,i.mapValues)(a,(e=>e.dependOn()));return Object.values(t).some((e=>"loading"===e.status))?(0,g.loading)():Object.values(t).some((e=>"unavailable"===e.status))&&e.fetchOnlyWithAllParams?(0,g.unavailable)():(0,g.available)((0,Ke.By)(s,(e=>(0,g.getOrElseL)((0,i.ensure)(t[e]),void 0))))})):(0,f.fromConstant$)((0,g.available)(void 0));return Xe(e,e.sort?Z(e.sort,e.dataSourceId):[],t,n,c,(async function(t,{offset:r,limit:o,sortOrder:a,filter:s},c){const l={offset:r,...o!==Number.POSITIVE_INFINITY?{amount:o}:{},sort:G(a)},u=function(e,t){if(void 0===t)return e;const n=(0,V.LN)(t);return void 0===e?n:{type:"function",name:"and",parameters:[e,n]}}(t,s);Ye.debug(`Fetching data for entity '${e.entity}' for widget ${(0,i.toFriendlyId)(n)}`);const{mxObjects:d,count:f}=await(0,We.offlineData)().retrieve(e.entity,u,l);return h=d,Ye.debug(`Received ${h.length} objects for widget ${(0,i.toFriendlyId)(n)}`,"object ids:",h.map((e=>e.getGuid()))),{mxObjects:d,totalCount:c?f:void 0,hasMoreItems:r+o<f};var h}))})),Je=c.LogManager.get().getLogger(),et=(0,v.eo)(((e,t,n,r)=>Xe(e,e.sort?Z(e.sort,e.dataSourceId):[],t,n,function(o=!1){var a;const s=Object.entries(null!==(a=e.arguments)&&void 0!==a?a:{}).map((([e,[i,o]])=>{const[a]=t.useSlot(i,"object");return{name:e,value$:(0,f.fromComputation$)(`Subexpression ${e} in ${n}/${r}`,(()=>{var e;return(0,g.mapL)((0,g.flatMapL)(null!==(e=a.dependOn())&&void 0!==e?e:(0,g.loading)(),(e=>e.isUnavailable()?(0,g.unavailable)():(0,g.available)(e))),(e=>((0,f.dependOnSubscription)({guid:e.getGuid(),tag:n}),void 0===o?(0,L.iF)(e):((0,f.dependOnSubscription)({guid:e.getGuid(),attr:o,tag:n}),(0,L.K$)(e,o)))))}))}}));return(0,f.fromComputation$)(`Runtime arguments of ${n}/${r}`,(()=>{const e=s.map((({name:e,value$:t})=>({name:e,value:t.dependOn()})));if(e.some((({value:e})=>"loading"===e.status)))return(0,g.loading)();if(e.some((({value:e})=>"unavailable"===e.status))&&o)return(0,g.unavailable)();const t=e.map((({name:e,value:t})=>({name:e,value:(0,g.getOrElseL)(t,void 0)}))).filter((({value:e})=>void 0!==e)).map((({name:e,value:t})=>(0,i.tuple)(e,(0,i.ensure)(t))));return(0,g.available)(Object.fromEntries(t))}))}(e.fetchOnlyWithAllParams),(async function(t,{offset:r,limit:o,sortOrder:a,filter:s},c){!function(t){const r=(0,i.toFriendlyId)(n);Je.debug(Object.values(t).length?`Fetching data using XPath with arguments '${JSON.stringify(t)}' and queryId '${e.queryId}' for widget ${r}`:`Fetching data using XPath with queryId '${e.queryId}' for widget ${r}`)}(t);const l=await(0,We.onlineData)().retrieveByXPath(e.queryId,t,(0,V.Mn)(s),{offset:r,amount:o,sort:G(a)},c);return u=l.mxObjects,Je.debug(`Received ${u.length} objects for widget ${(0,i.toFriendlyId)(n)}`,"object ids:",u.map((e=>e.getGuid()))),{mxObjects:l.mxObjects,hasMoreItems:l.hasMoreItems,totalCount:l.count};var u})))),tt=c.LogManager.get().getLogger(),nt=(0,v.eo)(((e,t,n)=>{var r;const[o]=t.useSlot(m.pageScope,"form"),a=null===(r=(0,f.readUntracked)(o))||void 0===r?void 0:r[0];return He(e,t,n,(0,d._H)(e.argMap,t,`data source of ${n}`,e.fetchOnlyWithAllParams),(async function(t){let r;!function(t){tt.debug(`Fetching data using microflow '${e.operationId}' for widget ${(0,i.toFriendlyId)(n)}`,"parameter mapping:",t)}(t);try{r=await(0,We.onlineData)().retrieveByMicroflow(e.operationId,e.queryId,t,a)}catch(e){return qe(n,e,"microflow"),(0,g.unavailable)()}return function({mxObjects:e,extra:t}){tt.debug(`Received ${e.length} objects and ${t.length} objects over schema for widget ${(0,i.toFriendlyId)(n)}`,"object ids:",e.map((e=>e.getGuid())),"extra ids:",t.map((e=>e.getGuid())))}(r),(0,g.available)({main:r.mxObjects,extra:r.extra})}))}));var rt=n(5087),it=n(178);const ot=c.LogManager.get().getLogger(),at=(0,v.eo)(((e,t,n)=>{const r=e.source.allowedRoles,o=(0,u.getSession)();if(void 0!==r&&!o.hasSomeRole(r)){(0,h.handleError)(new it.W("Unable to execute action because you do not have sufficient permissions."));const r=X(e,[],t,n,(0,f.fromConstant$)((0,g.available)(void 0)));return setTimeout(r.loadedCallback,0),(0,f.fromConstant$)({status:"unavailable",...(0,f.readUntracked)(r.retrieveParameters$),...r.immediateRetrieveParametersSetters})}const[a]=t.useSlot(m.pageScope,"form");return He(e,t,n,(0,d.i3)(e.argMap,t,`data source of ${n}`,e.fetchOnlyWithAllParams),(async function(t){const[r]=(0,i.ensure)((0,f.readUntracked)(a)
66);let o;!function(t){ot.debug(`Fetching data using nanoflow '${e.source.nanoflow}' for widget ${(0,i.toFriendlyId)(n)}`,"parameter mapping:",t)}(t);try{const n=await rt.Wi.execute(e.source.nanoflow,t,r);o=void 0===n?[]:Array.isArray(n)?n:(0,i.crash)()}catch(e){return qe(n,e,"nanoflow"),(0,g.unavailable)()}return s=o,ot.debug(`Received ${s.length} objects for widget ${(0,i.toFriendlyId)(n)}`,"object ids:",s.map((e=>e.getGuid()))),(0,g.available)({main:o,extra:[]});var s}))}));var st=n(3482);const ct=c.LogManager.get().getLogger(),lt=(0,v.eo)(((e,t,n)=>{const r=(0,M.yE)(t,(0,i.ensure)(e.scope)),o=(0,i.toFriendlyId)(n);return!e.path||mx.isOffline()?$(e,t,n,e.path?(0,M.lk)(r,e.path):r,(e=>(a(e),(0,g.available)(e)))):$(e,t,n,(0,M.lk)(r,e.path,!0),(t=>{if(t instanceof st.MxObject)return a(t),(0,g.available)(t);const n=(0,g.getOrCrashL)((0,f.readUntracked)(r)).getGuid();return function(t){ct.debug(`Fetching object with context object '${t}' and queryId '${e.queryId}' for widget ${o}`)}(n),(0,We.onlineData)().retrieveByPath(n,(0,i.ensure)(e.queryId)).then((({mxObjects:e,extra:t})=>{const n=e.length?e[0]:void 0;return function(e,t){const n=null==e?void 0:e.getGuid();ct.debug(n?`Received object '${n}' and ${t.length} objects over schema for widget ${o}`:`Received no object for widget ${o}`,"extra ids:",t.map((e=>e.getGuid())))}(n,t),n?(0,g.available)(n):(0,g.unavailable)()}))}));function a(e){ct.debug(`Using object '${e.getGuid()}' for widget ${o}`)}}));var ut=n(3698);const dt=c.LogManager.get().getLogger(),ft=(0,v.eo)(((e,t,n)=>{const r=(0,i.toFriendlyId)(n),[o]=t.useSlot(e.listenTo,"selection"),a=(0,f.fromComputation$)(`Selected object for widget ${r}`,(()=>{const e=o.dependOn(),t=Array.isArray(e)?e[0]:e;return t?(0,g.available)(t):(0,g.unavailable)()}));return $(e,t,n,a,(t=>{if(mx.isOffline())return s(t),(0,ut.m3)(t).then((e=>(c(e,[]),e?(0,g.available)(e):(0,g.unavailable)())));const n=mx.data.getCachedObject(t);return n?(function(e){dt.debug(`Using selected object '${e}' for widget ${r}`)}(t),n.isUnavailable()?(0,g.unavailable)():(0,g.available)(n)):(s(t),(0,We.onlineData)().retrieveByPath(t,(0,i.ensure)(e.queryId)).then((({mxObjects:e,extra:t})=>{const n=e.length?e[0]:void 0;return c(n,t),n?(0,g.available)(n):(0,g.unavailable)()})))}));function s(t){dt.debug(e.queryId?`Fetching selected object '${t}' with queryId '${e.queryId}' for widget ${r}`:`Fetching selected object '${t}' for widget ${r}`)}function c(e,t){const n=null==e?void 0:e.getGuid();dt.debug(n?`Received selected object '${n}' and ${t.length} objects over schema for widget ${r}`:`Received no selected object for widget ${r}`,"extra ids:",t.map((e=>e.getGuid())))}})),ht=c.LogManager.get().getLogger(),pt=(0,v.eo)(((e,t,n)=>{var r;const o=(0,i.toFriendlyId)(n),[a]=t.useSlot(m.pageScope,"form"),s=null===(r=(0,f.readUntracked)(a))||void 0===r?void 0:r[0];return $(e,t,n,(0,d._H)(e.argMap,t,`data source of ${n}`),(async t=>{try{!function(t){ht.debug(`Fetching object using microflow '${e.operationId}' for widget ${o}`,"parameter mapping:",t)}(t);const n=await(0,We.onlineData)().retrieveByMicroflow(e.operationId,e.queryId,t,s);return function(e,t){const n=null==e?void 0:e.getGuid();ht.debug(n?`Received object '${n}' and ${t.length} objects over schema for widget ${o}`:`Received no object for widget ${o}`,"extra ids",t.map((e=>e.getGuid())))}(n.mxObjects[0],n.extra),n.mxObjects[0]?(0,g.available)(n.mxObjects[0]):(0,g.unavailable)()}catch(e){return qe(n,e,"microflow"),(0,g.unavailable)()}}))})),gt=c.LogManager.get().getLogger(),mt=(0,v.eo)(((e,t,n)=>{const r=e.source.allowedRoles,o=(0,u.getSession)();if(void 0!==r&&!o.hasSomeRole(r))return(0,h.handleError)(new it.W("Unable to execute action because you do not have sufficient permissions.")),(0,f.fromConstant$)((0,Be.Vi)());const[a]=t.useSlot(m.pageScope,"form");return $(e,t,n,(0,d.i3)(e.argMap,t,`data source of ${n}`),(async t=>{!function(t){gt.debug(`Fetching object using nanoflow '${e.source.nanoflow}' for widget ${(0,i.toFriendlyId)(n)}`,"parameter mapping:",t)}(t);try{const r=await rt.Wi.execute(e.source.nanoflow,t,(0,i.ensure)((0,f.readUntracked)(a)
66)[0]),o=r instanceof st.MxObject?r:void 0;return function(e){gt.debug(e?`Received object '${e.getGuid()}' for widget ${(0,i.toFriendlyId)(n)}`:`Received no object for widget ${(0,i.toFriendlyId)(n)}`)}(o),o?(0,g.available)(o):(0,g.unavailable)()}catch(e){return qe(n,e,"nanoflow"),(0,g.unavailable)()}}))})),vt=(0,v.eo)(((e,t,n)=>{const[r]=t.useSlot(m.pageScope,"form");return(0,f.fromComputation$)(`Content of ${n}`,(()=>{const t=(0,i.ensure)(r.dependOn())[0],n=t.getPlaceholderContent(e.id);return"function"==typeof n?n(t.getHistoryId()):n}))}));var yt=n(5893),bt=n(8135);const wt=c.LogManager.get().getLogger(),xt=(0,v.eo)((({children:e,dataSourceId:t,editable:n},i,o,a)=>{const s=`widget template "${o}/${a}"`,c=t=>{const n=`${o}/${a}/${t.id}`;return(0,yt.jsx)(u,{namespace:n,item:t,children:e()},n)},l=e=>(wt.warn(`DEPRECATED: direct usage of ${s} as a function, use .get() instead -- will be removed in version: 10.0`),c(e));return l.get=c,(0,f.fromConstant$)(l);function u(e){return(0,yt.jsx)(bt.NestedStoreProvider,{namespace:e.namespace,setupStore:(0,r.useCallback)((r=>{const[,i]=r.useSlot(o,"object"),[,a]=r.useSlot(o,"editableObject"),c=(0,g.available)((0,_.u_)(e.item,t,s));i(c),n&&a(c)}),[e.item]),children:e.children})}})),_t=(0,v.eo)((({inputWidgetId:e},t,n)=>{const[r]=t.useSlot(e,"isInvalid");return(0,f.fromComputation$)(`Validity of ${e} (used by ${n})`,(()=>(0,Be.fp)(Boolean(r.dependOn()))))})),St={ActionProperty:b,AssociationObjectListProperty:Ze,AssociationObjectProperty:lt,AssociationProperty:Ce,AttributeProperty:ye,DatabaseObjectListProperty:e=>mx.isOffline()?Qe(e):et(e),DecimalProperty:e=>(0,v.Gb)(new(k())(e.value)),DerivedUniqueIdProperty:N,DynamicClassProperty:A,DynamicFileProperty:Ie,DynamicImageProperty:$e,ExpressionProperty:Pe,FileUploadProperty:Le,IconProperty:({icon:e})=>{if(!e)throw new I.AssertionError;switch(e.type){case"image":return(0,v.Gb)((0,Be.fp)({type:e.type,iconUrl:(0,Ve.getStaticResourceUrlFromPath)(e.iconUrl)}));case"glyph":case"icon":return(0,v.Gb)((0,Be.fp)(e))}},ListActionProperty:O,ListAttributeProperty:Re,ListAssociationProperty:je,ListExpressionProperty:Ue,ListenObjectProperty:ft,MicroflowObjectListProperty:nt,MicroflowObjectProperty:pt,NanoflowObjectListProperty:at,NanoflowObjectProperty:mt,PlaceholderProperty:vt,SelectionProperty:Te,StaticImageProperty:ze,TemplatedWidgetProperty:xt,TextProperty:e=>(0,v.Gb)((0,Be.fp)(e.value)),ValidationProperty:_t,WidgetVariableProperty:Ae};function Ct(e,t){const n=t.findByName(e.widget),a={key:e.$widgetId,$widgetId:e.$widgetId};return Object.entries(e.props).forEach((([e,t])=>a[e]=s(t))),(0,r.createElement)((0,o.FI)(n),a);function s(e){if(null!==e)return"object"!=typeof e?e:Et(e)?e.map((e=>Ct(e,t))):Array.isArray(e)?e.map(s):Ot(e)?function(e){const t=St[e.$type];if("function"!=typeof t)throw new Error(`Unknown type: ${e.$type}`);return t(e)}(e):jt(e)?xt({children:()=>e.$template.map((e=>Ct(e,t))),dataSourceId:e.dataSourceId,editable:e.editable}):(0,i.mapValues)(e,s)}}function Et(e){if(Array.isArray(e)&&e.length>0){const t=e[0];return null!=t&&"object"==typeof t&&"$widgetId"in t}return!1}function Ot(e){return null!==e&&"object"==typeof e&&"$type"in e}function jt(e){return null!==e&&"object"==typeof e&&"$template"in e}function kt(e){const t={};return e.forEach((e=>{t[e.widget]=!0,n(e.props)})),Object.keys(t);function n(e){"object"==typeof e&&null!==e&&(Et(e)?r(e):Array.isArray(e)?e.forEach((e=>n(e))):Ot(e)||(jt(e)?r(e.$template):Object.values(e).forEach(n)))}function r(e){kt(e).forEach((e=>t[e]=!0))}}},5298:(e,t,n)=>{n.r(t),n.d(t,{FormBase:()=>o});var r=n(1881),i=n(7613);class o{constructor(e){this.place=e,this.listeners={},this.suspended=!1,this.title="",this.historyId=(0,i.newId)("form")}getTitle(){return this.title}setSuspend(e){this.suspended!==e&&(this.suspended=e)}isSuspended(){return this.suspended}publish(e,t,n){var i;const o=(null!==(i=this.listeners[e])&&void 0!==i?i:[]).slice();!function e(){o.length?(e.data=null==t?void 0:t.data,o.pop()(e,null!=n?n:r.handleError)):void 0!==t&&t()}()}listen(e,t){var n;const r=null!==(n=this.listeners[e])&&void 0!==n?n:[];return this.listeners[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)}unlisten(e){e()}close(e,t){this.closePage(1,!1).then(e).catch(t)}getHistoryId(){return this.historyId}}},3787:(e,t,n)=>{n.r(t),n.d(t,{NavigationError:()=>r});
66class r extends Error{constructor(e){super(e),Object.setPrototypeOf(this,r.prototype)}}},1311:(e,t,n)=>{n.r(t),n.d(t,{ErrorFallbackWeb:()=>i});var r=n(5893);const i=({errorMessage:e})=>(0,r.jsx)("div",{style:{color:"red"},children:e})},5034:(e,t,n)=>{n.r(t),n.d(t,{DISABLE_INTERACTION_ATTRIBUTE:()=>o,FOCUS_CAPTURING_ATTRIBUTE:()=>s,FOCUS_CAPTURING_MODAL:()=>c,FOCUS_CAPTURING_NON_MODAL:()=>l,clearFocus:()=>m,findFirst:()=>b,findNext:()=>w,focusFirst:()=>v,focusNext:()=>y,getFocus:()=>g,getFocusableContainer:()=>M,getHTMLElement:()=>F,initialize:()=>u,isHTMLElement:()=>B,isInteractive:()=>$,isNavigableElement:()=>I,moveFocusTo:()=>V,setFocus:()=>p});var r=n(3282),i=n(8314);const o="data-disable-interaction",a="data-focusindex",s="data-focus-capturing",c="modal",l="non-modal";function u(){document.body.addEventListener("keydown",f),document.body.addEventListener("focusin",h),document.body.addEventListener("mousedown",d)}function d(e){document.body.hasAttribute(o)&&e.preventDefault()}function f(e){if(document.body.hasAttribute(o))e.preventDefault();else if("Tab"===e.key){const t=w(e.target,e.shiftKey);t&&(e.preventDefault(),p(t))}}function h(e){const t=e.target;if(t===document.body)return;const n=S(t);n.contains(t)||v(n)}function p(e){!function(){const e=document.getSelection();null===e||function(e){if(1===e.rangeCount){const t=e.getRangeAt(0);return t.startOffset===t.endOffset}return 0===e.rangeCount}(e)||(e.removeAllRanges(),e.addRange(document.createRange()))}(),e.focus(),function(e){const t=e;"text"!==t.type&&"password"!==t.type||t.select()}(e)}function g(){const e=document.activeElement&&F(document.activeElement);return e!==document.body?e:null}function m(){const e=g();e&&e.blur()}function v(e){const t=b(e);t&&p(t)}function y(){const e=w(g());e&&p(e)}function b(e){return E(e,!1)}function w(e,t=!1){var n;const r=e&&F(e);return null!==(n=r&&x(r,t))&&void 0!==n?n:(()=>{var e;return x(null!==(e=C(r))&&void 0!==e?e:document.body,t)})()}function x(e,t=!1){const n=S(e);let r,i;if(n.contains(e))r=e;else{if(D(n))return n;r=n}if(!t&&R(r)&&!P(r)&&(i=E(r,!!t),i))return i;do{const e=_(r,n);if(i=E(e,!!t,r),i)return i;if(t&&D(e))return e;r=e}while(r!==n);return null}function _(e,t){if(e===t)return t;let n=e;for(;n!==t&&n.parentElement;)if(n=n.parentElement,R(n))return n;return t}function S(e){var t;const n=C(e);return n?null!==(t=function(){const e=document.querySelectorAll(`[${s}=${c}]`);return Array.from(e).filter(B).sort(((e,t)=>Number(t.style.zIndex)-Number(e.style.zIndex)))[0]}())&&void 0!==t?t:n:document.body}function C(e){if(!e||e===document.body)return document.body;let t=e;for(;t&&B(t);){const e=t.getAttribute(s);if(e===c||e===l)return t;t=t.parentElement}return null}function E(e,t,n){const i=n&&n!==e?N(n):void 0,o=j(e),a=Object.keys(o).map((e=>parseInt(e,10))).filter(function(e,t){return void 0===e?e=>!0:t?t=>k(t,e)<=0:t=>k(t,e)>=0}(i,t)).sort(k);t&&a.reverse();for(const e of a)if(e in o){let a=(0,r.ensure)(o[e]);t&&a.reverse(),e===i&&(a=a.slice(a.indexOf(n)+1));const s=O(a,t);if(s)return s}return null}function O(e,t){for(const n of e){if(!t&&D(n))return n;if(R(n)&&!P(n)){const e=E(n,t);if(e)return e}if(t&&D(n))return n}return null}function j(e,t={}){var n;for(let r=0;r<e.children.length;r++){const i=e.children.item(r);if(!B(i))continue;const o=N(i);(t[o]=null!==(n=t[o])&&void 0!==n?n:[]).push(i),R(i)||j(i,t)}return t}function k(e,t){return e===t?0:0===e?1:0===t?-1:e-t}function R(e){return e===document.body||null!==e.getAttribute(a)}function N(e){const t=A(e,a),n=null!==t?t:T(e);return Math.max(0,null!=n?n:0)}function T(e){const t=A(e,"tabindex");return-32768!==t?t:null}function A(e,t){const n=e.getAttribute(t);return n?parseInt(n,10):null}function P(e){return"-1"===e.getAttribute(a)}function D(e){return I(e)&&$(e)}function I(e){if(P(e))return!1;const t=T(e);return(null===t?L(e):t)>=0}function M(e){let t=F(e);for(;t;){if(null!==T(t)||0===L(t))return t;t=t.parentElement}return null}function L(e){switch(e.tagName.toLowerCase()){case"a":case"area":case"button":case"input":case"object":case"select":case"textarea":return 0;default:return e.getAttribute("contenteditable")?0:-1}}function $(e){return function(e){return(0!==e.offsetWidth||0!==e.offsetHeight)&&"visible"===window.getComputedStyle(e).visibility}(e)&&function(e){return!e.disabled}(e)}function F(e){return B(e)?e:function(e){return"parentElement"in e}(e)?e.parentElement:null}function B(e){return"offsetParent"in e}function V(e){(0,i.s)()?m():p(e)}}
66,8048:(e,t,n)=>{n.r(t),n.d(t,{NavigationKeys:()=>r,RovingTabIndex:()=>u,disableRoving:()=>l,enableRoving:()=>c});var r,i,o=n(6077),a=n(3282),s=n(5034);function c(e,t,n){l(e),e.rovingTabIndex=new u(t,e,n)}function l(e){(function(e){return!!e.rovingTabIndex})(e)&&(e.rovingTabIndex.destroy(),delete e.rovingTabIndex)}!function(e){e[e.UpDown=0]="UpDown",e[e.LeftRight=1]="LeftRight"}(r||(r={})),function(e){e[e.FORWARD=0]="FORWARD",e[e.BACKWARD=1]="BACKWARD"}(i||(i={}));class u{constructor(e,t,n=p){this.children=[],this.currentIndex=-1,this.focused=!1,this.updating=!1,this.shiftingFocus=!1,this.mutationObserver=new MutationObserver(this.onMutation.bind(this)),this.keys=e,this.container=t,this.childQuery=n,this.keyListener=this.createKeyListener(),this.focusInListener=this.createFocusInListener(),this.focusOutListener=this.createFocusOutListener(),this.addListeners(),this.handleMutation()}onMutation(e){this.handleMutation()}handleMutation(){const e=(t=this.childQuery(this.container),Array.isArray(t)?t:Array.from(t).filter((e=>e instanceof HTMLElement))).filter((e=>!e.hasAttribute("data-roving-inactive")));var t;this.doWithoutMutations((()=>this.updateChildren(e)))}setChildQuery(e=p){this.childQuery=e}setOnActiveRowChange(e){this.onActiveRowChange=e}setContainer(e){this.container!==e&&(this.removeListeners(),this.container=e,this.addListeners(),this.handleMutation())}updateChildren(e){const t=this.getCurrentElement();if(function(e,t){if(r=t,(n=e).length===r.length&&n.every(((e,t)=>e===r[t])))return!1;var n,r;const i=new Set;return e.forEach((e=>i.add(e))),t.forEach((e=>{i.delete(e)||e.setAttribute("data-roving-tabindex","")})),i.forEach((e=>d(e))),!0}(this.children,e)&&(this.children=e.slice()),t){const n=e.indexOf(t);if(this.setCurrentIndex(-1!==n?n:this.findValidIndex(!1,0)),this.focused){const e=this.getCurrentElement();setTimeout((()=>this.restoreFocus(t!==e)),0)}}else this.updateTabIndices();this.updateState()}restoreFocus(e){if(this.shiftingFocus&&!e)return;const t=(0,s.getFocus)(),n=this.getCurrentElement();(e||!t||n&&n!==t&&n.contains(t))&&this.focusCurrentElement()}updateState(){const e=this.getCurrentElement();e&&g(e)||(this.setCurrentIndex(this.findValidIndex()),this.focused&&this.focusCurrentElement())}destroy(){this.mutationObserver.disconnect(),this.removeListeners(),this.children.forEach(d)}addListeners(){this.container.addEventListener("keydown",this.keyListener),this.container.addEventListener("focusin",this.focusInListener),this.container.addEventListener("focusout",this.focusOutListener)}removeListeners(){this.container.removeEventListener("keydown",this.keyListener),this.container.removeEventListener("focusin",this.focusInListener),this.container.removeEventListener("focusout",this.focusOutListener)}doWithoutMutations(e){const t=this.updating;t||(this.updating=!0,this.mutationObserver.disconnect()),e(),t||(this.mutationObserver.observe(this.container,{childList:!0,attributes:!0,subtree:!0}),this.updating=!1)}createKeyListener(){return e=>{const t=this.getNavigationCommand(e);if(null!==t){e.preventDefault();const n=t.valueOf()===i.BACKWARD.valueOf();this.setCurrentIndex(this.findValidIndex(n)),this.focusCurrentElement()}}}createFocusInListener(){return e=>{const t=(0,s.getHTMLElement)((0,a.ensure)(e.target));let n=-1,r=t;for(;r&&(n=this.children.indexOf(r),-1===n);)r=r.parentElement;-1!==n&&this.setCurrentIndex(n),t&&t!==r&&!(0,s.isNavigableElement)(t)&&window.setTimeout((()=>this.focusCurrentElement()),0),this.focused=!0}}createFocusOutListener(){return e=>{var t;const n=this.getCurrentElement(),r=(0,s.getHTMLElement)((0,a.ensure)(null!==(t=e.relatedTarget)&&void 0!==t?t:document.activeElement));this.shiftingFocus=!0,r&&this.container.contains(r)||window.setTimeout((()=>{this.focused=!1}),0),(0,a.ensure)(e.target)===n&&window.setTimeout((()=>{g(n)&&null!==n.parentNode||this.doWithoutMutations((()=>{this.updateState(),this.focusCurrentElement()}))}),0),window.setTimeout((()=>{this.shiftingFocus=!1}),0)}}getNavigationCommand(e){switch(this.keys){case r.UpDown:switch(e.key){case"ArrowUp":case"Up":return i.BACKWARD;case"ArrowDown":case"Down":return i.FORWARD}break;case r.LeftRight:{const t=(0,o.y)();switch(e.key){case"ArrowLeft":case"Left":return t?i.FORWARD:i.BACKWARD;case"ArrowRight":case"Right":return t?i.BACKWARD:i.FORWARD}break}}return null}setCurrentIndex(e){this.currentIndex=e,this.updateTabIndices(),this.onActiveRowChange&&this.onActiveRowChange(e)}focusCurrentElement(){const e=this.getCurrentElement();e&&e.focus()}updateTabIndices(){this.doWithoutMutations((()=>
66{this.children.forEach(((e,t)=>e.setAttribute("tabindex",t===this.currentIndex?"0":"-1")))}))}findValidIndex(e=!1,t=1,n=this.currentIndex){const r=e?h(this.children,g,n-t):f(this.children,g,n+t);return-1!==r?r:e?f(this.children,g):h(this.children,g)}getCurrentElement(){return-1!==this.currentIndex?this.children[this.currentIndex]:null}}function d(e){e.removeAttribute("tabindex"),e.removeAttribute("data-roving-tabindex")}function f(e,t,n=0){const r=e.slice(n).findIndex(t);return-1===r?-1:r+n}function h(e,t,n=e.length-1){const r=e.slice(0,n+1).reverse().findIndex(t);return-1===r?-1:n-r}function p(e,t=[]){for(let n=0,r=e.children.length;n<r;n++){const r=e.children.item(n);(0,s.isHTMLElement)(r)&&((r.hasAttribute("data-roving-tabindex")||(0,s.isNavigableElement)(r))&&t.push(r),p(r,t))}return t}function g(e){return function(e){const t=window.getComputedStyle(e);return"visible"===t.visibility&&"none"!==t.display}(e)&&function(e){return!e.disabled}(e)}},5537:(e,t,n)=>{var r;function i(e,t=r.Write){return{access:t,value:e}}function o(){return{access:r.None}}n.d(t,{Fj:()=>i,Nv:()=>r,jx:()=>o}),function(e){e[e.None=0]="None",e[e.Read=1]="Read",e[e.Write=2]="Write"}(r||(r={}))},234:(e,t,n)=>{n.r(t),n.d(t,{AssertionError:()=>r});class r extends Error{constructor(e="Unexpected error occurred, please contact your system administrator."){super(e),Object.setPrototypeOf(this,r.prototype)}}},8714:(e,t,n)=>{n.r(t),n.d(t,{dependOnSubscription:()=>_,fromComputation$:()=>m,fromComputationWithDeepEquality$:()=>v,fromConstant$:()=>p,fromMutableComputation$:()=>w,fromMxSubscription$:()=>f,fromRequest$:()=>g,fromTimer$:()=>h,getPreviousValue$:()=>b,isDependable:()=>j,readUntracked:()=>C,scheduleSideEffect:()=>E,useDependency:()=>S,useValue:()=>y,withSideEffect$:()=>x});var r=n(4063),i=n.n(r),o=n(2188),a=n(2351),s=n(234),c=n(1881),l=n(567),u=n(3282);const d=Symbol("mobxComputed");function f(e,t){let n;const r=[],i=(0,o.createAtom)(e,(()=>{n=(0,a.subscribe)({tag:e,...t,callback:()=>new Promise((e=>{r.push(e),i.reportChanged()}))})}),(()=>{(0,u.ensure)(n).unsubscribe(),n=void 0,s()})),s=()=>{r.splice(0).forEach((e=>e()))};return[O(e,(()=>i.reportObserved())),s]}function h(e,t){let n;const r=(0,o.createAtom)(e,(()=>{n=setInterval((()=>r.reportChanged()),t)}),(()=>{clearInterval((0,u.ensure)(n)),n=void 0}));return O(e,(()=>r.reportObserved()))}function p(e){return O(`Constant value ${e}`,(()=>e))}function g(e,t){const n=(0,o.computed)((()=>(N(),t())),{name:e});let r,i;return m(`Handle response of ${(0,u.lowerCaseFirst)(e)}`,(()=>{const e=n.get();if("status"in e)return r=void 0,i=void 0,e;if(e===r)return(0,u.ensure)(i).get();const t=Array.isArray(e)?e[0]:(0,l.loading)(),a=o.observable.box(t,{deep:!1});return(Array.isArray(e)?e[1]:e).then((0,o.action)((e=>a.set(e))),(0,o.action)((e=>{(0,c.handleError)(e),a.set((0,l.unavailable)())}))),r=e,i=a,i.get()}))}function m(e,t){const n=(0,o.computed)(t,{name:e});return O(e,(()=>n.get()),n)}function v(e,t){const n=(0,o.computed)(t,{name:e,equals:i()});return O(e,(()=>n.get()),n)}function y(e,t){const n=o.observable.box(t,{deep:!1,name:`Box for ${e}`});return[O(e,(()=>n.get())),e=>n.set(e)]}function b(e){let t;return O(`Previous value of ${(0,u.lowerCaseFirst)(e.name)}`,(()=>{const n=t;return t=e.dependOn(),n}))}function w(e,t){const n=(0,o.computed)(t,{name:e});return{...O(e,(()=>n.get()),n),muted:function(e){if(n.dependenciesState!==o.IDerivationState.UP_TO_DATE)e();else{const t=n.get.bind(n);n.onBecomeStale=()=>{n.get=()=>{n.dependenciesState=o.IDerivationState.STALE;try{return t()}finally{n.dependenciesState=o.IDerivationState.UP_TO_DATE,delete n.get}},E((()=>n.observing.forEach((e=>{e.get&&e.get(),e.lowestObserverState=o.IDerivationState.UP_TO_DATE}))))};try{e()}finally{delete n.onBecomeStale,n.dependenciesState=o.IDerivationState.UP_TO_DATE}}}}}function x(e,t,n,r,i){k();const a=(0,o.computed)((()=>t.dependOn()),{name:`Computation for ${(0,u.lowerCaseFirst)(e)}`});let s;const c=(0,o.createAtom)(e,(()=>{i&&(0,o.runInAction)(i),n&&(s=a.observe((0,o.action)((({newValue:e,oldValue:t})=>n(e,t))),!0))}),(()=>{s&&s(),r&&(0,o.runInAction)(r)}));return O(e,(()=>(c.reportObserved(),a.get())),a)}function _(e){N();const t=(0,o._getGlobalState)().trackingDerivation;if(!t)throw new s.AssertionError;const n=t.__subscriptionHandlers||(t.__subscriptionHandlers=new Map),r=JSON.stringify(e);let i=n.get(r);if(!i){const t=o.observable.box((0,u.tuple)(void 0),{deep:!1,name:`Store for subscription ${r}`});let s;i={name:r,atom:(0,o.createAtom)(r,(()=>{s=(0,a.subscribe)({...e,callback:e=>{t.set([e])}})}),(()=>{(0,u.ensure)(s).unsubscribe(),s=void 0})),box:t},n.set(r,i)}return i.atom.reportObserved(),i.box.get()}function S(e,t,n){const r=(0,o.createAtom)(e,n,t);return(0,u.tuple)(O(e,(()=>{r.reportObserved(),r.isBeingObserved||(null==n||n(),null==t||t())})),(()=>r.reportChanged()))}function C(e){const t=R;R=!0;try{const t=e[d];
66return t&&t.dependenciesState!==o.IDerivationState.NOT_TRACKING?t.value:(0,o.untracked)((()=>e.dependOn()))}finally{R=t}}function E(e){new o.Reaction(`Run side effect ${e.name}`,e).schedule()}function O(e,t,n){return k(),{name:e,dependOn:()=>(N(),t()),...n?{[d]:n}:{}}}function j(e){return null!=e&&"object"==typeof e&&"dependOn"in e}function k(){if(T())throw new s.AssertionError}let R=!1;function N(){if(!T()&&!R)throw new s.AssertionError}function T(){return null!=(0,o._getGlobalState)().trackingDerivation}},178:(e,t,n)=>{n.d(t,{W:()=>i});var r=n(5348);class i extends r.Z{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},5517:(e,t,n)=>{n.d(t,{Vi:()=>a,cg:()=>s,fp:()=>o});const r={status:"unavailable",value:void 0},i={status:"loading",value:void 0};function o(e){return{status:"available",value:e}}function a(){return r}function s(e){switch(e.status){case"available":return o(e.value);case"unavailable":return a();case"loading":return i}}},1881:(e,t,n)=>{let r;function i(e){r=e}function o(e,t){r(e,t)}n.r(t),n.d(t,{handleError:()=>o,setErrorHandler:()=>i})}
66,5348:(e,t,n)=>{n.d(t,{Z:()=>r});class r extends Error{constructor(e){super(e),Object.setPrototypeOf(this,r.prototype)}}},567:(e,t,n)=>{n.r(t),n.d(t,{asDynamicValue$:()=>y,asReloadable$:()=>_,available:()=>d,bindL:()=>g,flatMapL:()=>v,getOrCrashL:()=>h,getOrElseL:()=>f,liftL:()=>p,loading:()=>c,mapL:()=>m,testSetDebounceEnabled:()=>x,unavailable:()=>u});var r=n(2188),i=n(8714),o=n(5517),a=n(3282);const s={status:"loading"};function c(){return s}const l={status:"unavailable"};function u(){return l}function d(e){return{status:"available",value:e}}function f(e,t){return"available"===e.status?e.value:t}function h(e){return"available"===e.status?e.value:(0,a.crash)()}function p(e){return t=>m(t,e)}function g(e){return t=>v(t,e)}function m(e,t){return v(e,(e=>d(t(e))))}function v(e,t){return"available"===e.status?t(e.value):e}function y(e){return _((0,i.fromComputation$)(`Dynamic ${(0,a.lowerCaseFirst)(e.name)}`,(()=>(0,o.cg)(e.dependOn()))),(e=>({value:e.value})))}const b=100;let w=!0;function x(e){w=e}function _(e,t){let n,o,s={};const[c,l]=(0,i.useDependency)(`Reloadable monitor of ${(0,a.lowerCaseFirst)(e.name)}`),u=(0,i.getPreviousValue$)(e);return(0,i.fromComputation$)(`Reloadable ${(0,a.lowerCaseFirst)(e.name)}`,(()=>{c.dependOn();const i=e.dependOn(),a=i===u.dependOn();switch(void 0===(d=o)||d>=S.length||(S[d]=void 0),i.status){case"available":return s=t(i),n=i;case"unavailable":return s={},n=i;case"loading":return n?w?(a||(o=function(e){const t=S.length;return S.push((()=>{n={...i,...s},l(),o=void 0})),1===S.length&&setTimeout((()=>(0,r.runInAction)((()=>S.splice(0).forEach((e=>null==e?void 0:e()))))),b),t}()),n):n={...i,...s}:n=i}var d}))}const S=[]},2265:(e,t,n)=>{n.d(t,{n:()=>r});class r extends Error{constructor(e=""){super("Not implemented"+(""!==e?": "+e:"")),Object.setPrototypeOf(this,r.prototype)}}},7566:(e,t,n)=>{n.d(t,{Db:()=>u,IH:()=>c,_H:()=>g,i3:()=>p,u9:()=>d,vc:()=>h,vh:()=>f});var r=n(3698),i=n(701),o=n(8714),a=n(567),s=n(3282);function c(e,t,n){const r=(0,s.mapValues)(e,(({source:e,widget:r})=>{var i;const s=null!==(i=null==n?void 0:n[r])&&void 0!==i?i:{};return e in s?(0,o.fromConstant$)((0,a.available)(s[e])):l(t,e,r)}));return(0,o.fromComputation$)("Load action parameters",(()=>(0,s.mapValues)(r,(e=>e.dependOn()))))}function l(e,t,n){switch(t){case"object":return function(e,t){const n=(0,i.yE)(e,t);return(0,o.fromComputation$)(`Load object of ${t}`,(()=>(0,a.mapL)(n.dependOn(),(e=>({object:e})))))}(e,n);case"selection":return function(e,t){const[n]=e.useSlot(t,"selection");return(0,o.fromComputation$)(`Load selection of ${t}`,(()=>{const e=n.dependOn();return e?(0,a.available)({selection:e}):(0,a.unavailable)()}))}(e,n);default:(0,s.crash)()}}function u(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(r)if("objects"in r)t[n]={guids:r.objects.map((e=>e.getGuid()))};else if("object"in r)t[n]={guid:r.object.getGuid()};else if("selection"in r){const e=r.selection;t[n]=Array.isArray(e)?{guids:e}:{guid:e}}else t[n]=r})),t}async function d(e){const t=new Set;Object.keys(e).forEach((n=>{const r=e[n];void 0!==r&&(("object"in r?[r.object]:"objects"in r?r.objects:[]).filter((e=>e.isPartial())).forEach((e=>t.add(e.getGuid()))),"selection"in r&&(Array.isArray(r.selection)?r.selection.forEach((e=>t.add(e))):t.add(r.selection)))}));const n=(0,s.toObjectByKey)(await(0,r.MR)(Array.from(t)),(e=>e.getGuid()));function i(e){return"string"==typeof e?n[e]:e.isPartial()?n[e.getGuid()]:e}function o(e){return e.map(i).filter((e=>e))}return Object.keys(e).map((t=>{const n=e[t];return{name:t,value:n&&("object"in n?i(n.object):"objects"in n?o(n.objects):"selection"in n?Array.isArray(n.selection)?o(n.selection):i(n.selection):(0,s.crash)())}}))}function f(e){const t=[];return Object.values(e).forEach((e=>{"guid"in e?t.push(e.guid):"guids"in e&&t.push(...e.guids)})),t}function h(e,t){return Object.entries(t).map((([t,{widget:n}])=>({name:t,value:e.getWidgetObject(n)})))}function p(e,t,n,i=!1){const c=Object.entries(e).map((([e,{source:i,widget:c}])=>{const u=l(t,i,c);return{name:e,value$:(0,o.fromRequest$)(`Parameter ${e} of ${n}`,(()=>
66{const e=u.dependOn();if("available"!==e.status)return e;const t=e.value;return void 0!==t?"object"in t?(0,a.available)(t.object):"objects"in t?(0,a.available)(t.objects):"selection"in t?async function(e){return Array.isArray(e)?(0,r.MR)(e).then((t=>{const n=(0,s.toObjectByKey)(t,(e=>e.getGuid())),r=e.map((e=>n[e])).filter((e=>e));return(0,a.available)(r)})):(0,r.m3)(e).then((e=>e?(0,a.available)(e):(0,a.unavailable)()))}(t.selection):(0,s.crash)():(0,s.crash)()}))}}));return(0,o.fromComputation$)(`Parameters of ${n}`,(()=>{const e=c.map((({name:e,value$:t})=>({name:e,value:t.dependOn()})));return e.every((({value:e})=>"loading"!==e.status))?i&&e.some((({value:e})=>"available"!==e.status))?(0,a.unavailable)():(0,a.available)(e.map((({name:e,value:t})=>({name:e,value:(0,a.getOrElseL)(t,void 0)})))):(0,a.loading)()}))}function g(e,t,n,r=!1){const i=Object.entries(e).map((([e,t])=>({name:e,value$:c(e,t)})));return(0,o.fromComputation$)(`Parameters of ${n}`,(()=>{const e=i.map((({name:e,value$:t})=>({name:e,value:t.dependOn()})));return e.every((({value:e})=>"loading"!==e.status))?r&&e.some((({value:e})=>"available"!==e.status))?(0,a.unavailable)():(0,a.available)(Object.fromEntries(e.filter((({value:e})=>"available"===e.status)).map((({name:e,value:t})=>(0,s.tuple)(e,(0,a.getOrCrashL)(t)))))):(0,a.loading)()}));function c(e,r){const i=`Value of ${e} parameter of ${n}`,c=l(t,r.source,r.widget);return(0,o.fromComputation$)(i,(()=>(0,a.mapL)(c.dependOn(),(e=>void 0!==e?"object"in e?{guid:e.object.getGuid()}:"objects"in e?{guids:e.objects.map((e=>e.getGuid()))}:"selection"in e?Array.isArray(e.selection)?{guids:e.selection}:{guid:e.selection}:(0,s.crash)():(0,s.crash)()))))}}},2664:(e,t,n)=>{n.d(t,{d:()=>r});const r=e=>{if(null===e||"object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((n=>t[n]=r(e[n]))),t}},6218:(e,t,n)=>{n.d(t,{AO:()=>g,FB:()=>d,G0:()=>y,IA:()=>x,K$:()=>E,K8:()=>u,N5:()=>f,OA:()=>p,TG:()=>_,Xy:()=>S,cT:()=>b,cs:()=>v,dw:()=>h,iF:()=>C,pS:()=>m,qL:()=>w,vu:()=>l});var r=n(3302),i=n(3482),o=n(4037),a=n(945),s=n(234),c=n(3282);function l(e,t){switch(t){case"DateTime":return""!==e?new Date(e):void 0;case"AutoNumber":return new r.Big(e);case"String":return e;default:return""!==e?e:void 0}}function u(e){return void 0===e?"":e instanceof Date?e.getTime():e}function d(e,t,n){return function(e,t,n){switch(t){case"ObjectReferenceSet":return Array.isArray(e)?e.map((e=>n(e))):new Array;case"ObjectReference":return void 0!==e?n(e):void 0;default:return e}}(f(e,t),t,n)}function f(e,t){return l(p(e,t),t)}function h(e){return y(u(g(e)),""===e)}function p(e,t){if(null==e)return"";switch(t){case"Integer":case"Long":case"Decimal":return new r.Big(e);case"Date":case"DateTime":return e;case"Boolean":return Boolean(e);case"ObjectReferenceSet":return Array.isArray(e)&&e.length>0?e:"";default:return String(e)}}function g(e){return(0,c.isArrayOf)(i.MxObject,e)?e.map((e=>e.getGuid())):e instanceof i.MxObject?e.getGuid():e}function m(e,t,n){const r=(0,o.getAttributeType)(t,n);if(!r)throw new s.AssertionError(`Attribute ${n} is not accessible.`);"Enum"===r?function(t){if(!t)throw new s.AssertionError(`Value ${e} is not assignable to attribute of type ${r}.`)}(void 0===e||"string"==typeof e&&(0,a.getEnumerationOptions)((0,o.getAttributeEnumerationType)(t,n)).includes(e)):v(e,r)}function v(e,t,n=!1){switch(t){case"String":case"ObjectReference":case"HashString":return i("string"==typeof e||void 0===e);case"ObjectReferenceSet":return i(Array.isArray(e)&&e.every((e=>"string"==typeof e))||void 0===e&&n);case"Boolean":return i("boolean"==typeof e);case"DateTime":return i(void 0===e||e instanceof Date&&!isNaN(e.getTime()));case"Integer":case"Long":case"Decimal":return i(e instanceof r.Big||void 0===e);default:throw new s.AssertionError(`Attribute type ${t} is not supported.`)}function i(n){if(!n)throw new s.AssertionError(`Value ${e} is not assignable to attribute of type ${t}.`)}}function y(e,t=!1){return""===e?t?"":null:e instanceof r.Big?e.toString():e}function b(e,t){if(null==e||""===e)return"ObjectReferenceSet"===t?[]:"";switch(t){case"Boolean":return Boolean(e);case"Decimal":case"Integer":case"Long":return new r.Big(e);case"DateTime":return Number(e);case"ObjectReference":if(Array.isArray(e))throw new Error("Trying to set single object reference to multiple values");return e.toString();case"ObjectReferenceSet":if(!Array.isArray(e))throw new Error("Trying to set object reference set to single value");return e.map((e=>e.toString()));default:return String(e)}}function w(e){switch(typeof e){case"undefined":case"string":case"boolean":return e;case"number":return new r.Big(e);default:if(e instanceof r.Big||e instanceof Date||e instanceof i.MxObject)return e;if(null===e)return;if(Array.isArray(e)){if(e.every((e=>e instanceof i.MxObject)))return e;throw new s.AssertionError(`Array ${e.join(", ")}
66 cannot be used as Nanoflow variable, because it contains something else then MxObjects.`)}throw new s.AssertionError(`Value ${e} cannot be used as Nanoflow variable.`)}}function x(e){if(e){if("object"in e)return e.object;if("objects"in e)return e.objects;throw new s.AssertionError}}function _(e){if("number"==typeof e&&e>=0&&Math.floor(e)===e)return!0;throw new s.AssertionError(`Value ${e} should be a positive integer.`)}function S(e){if("boolean"==typeof e)return!0;throw new s.AssertionError(`Value ${e} should be a boolean.`)}function C(e){if(void 0!==e)return Array.isArray(e)?{guids:e.map((e=>e.getGuid()))}:e instanceof i.MxObject?{guid:e.getGuid()}:{value:h(e)}}function E(e,t){return function(e,t){if(""!==e&&null!=e)return Array.isArray(e)?e.length?{guids:e}:void 0:"ObjectReference"===t?{guid:"string"==typeof e?e:(0,c.crash)()}:{value:e}}(e.getRawValue(t),e.getAttributeType(t))}},5835:(e,t,n)=>{n.d(t,{Wi:()=>a,yO:()=>l,Go:()=>u,GO:()=>w,sL:()=>c,HR:()=>m,p1:()=>f,XF:()=>h,P5:()=>g,Mb:()=>v,XJ:()=>_,ku:()=>b});var r=n(4644),i=n(5991);let o=(new Date).getTime();async function a(e){const t=o++;await e(t);let n=500;for(;;){const e=await(0,r.OP)(t);if(e.response.finished)return e;await(0,i.wait)(n),n=Math.min(n+500,8e3)}}var s=n(1016);function c(e,t){const n={};t.filter((t=>e.hasChanges(t))).forEach((t=>{n[t]=e.getChanges(t)}));const r=t.filter((t=>e.has(t))).map((t=>e.getObject(t))).filter((t=>!t.isPersistable()||e.isNew(t.getGuid()))).map((e=>e.jsonData));return[n,r]}function l(e){const t=e.getAllGuids(),n=(0,s.getSession)();return[n.getUserId(),n.getSessionObjectId()].filter((e=>!t.includes(e))).forEach((e=>t.push(e))),c(e,t)}function u(){const e=(0,s.getSession)();return[e.getUserId(),e.getSessionObjectId()]}var d=n(1001);function f(e,t){const n=(0,s.getSession)(),r=[n.getUserId(),n.getSessionObjectId()],i=e.getAllObjects();return c(e,(0,d.ss)(i,t.concat(r)))}function h(e,t,n){const r=w(t),i=e.getAllObjects(),o=(0,d.ss)(i,n,null==r?void 0:r.followedAssociations);return n.filter((e=>!o.includes(e))).forEach((e=>o.push(e))),c(e,o)}var p=n(3282);function g(e,t,n){let r=[];const i=e.getAllObjects(),[o,a]=(0,p.partition)((t=>{var r;const i=e.getObject(t);return null!==(r=null==i?void 0:i.metaData.needsReachableState[n])&&void 0!==r&&r}),t);if(0!==o.length){const e=(0,s.getSession)(),t=[e.getUserId(),e.getSessionObjectId()];r=r.concat((0,d.ss)(i,o.concat(t)))}const[l,u]=(0,p.partition)((t=>e.isNew(t)),a),[f,h]=(0,p.partition)((t=>e.isNew(t.getGuid())),i);return r=r.concat((0,d.ss)(f,a)),r=r.concat(u),r=r.concat((0,d.ss)(h,l)),c(e,r)}function m(e,t,n){const[r,i]=f(e,[t]),[o,a]=g(e,n,"commit"),s={...r,...o},c=[...i];for(const e of a)c.find((t=>t.guid===e.guid))||c.push(e);return[s,c]}function v(e,t,n){const{commits:r=[],deletes:i=[]}=n;t.forEach((t=>{const n=t.getGuid();if(r.includes(n)){const r=e.getObject(n);if(!r)throw new Error("inconsistent response: committed object is missing from response and cache");t.resetFromJSON(r.jsonData)}else i.includes(n)&&t.markAsUnavailable()}))}const y={};function b(e={}){for(const[t,n]of Object.entries(e))for(const e of n.split(",")){const n=JSON.parse(t);y[e]={parameters:n.p},n.a&&(y[e].followedAssociations=n.a.map((([e,t])=>({association:e,fromEntity:t}))))}}function w(e){return y[e]}var x=n(2351);function _(e,t){(0,x.getSubscribedGuids)().includes(t)||e.removeObjectKeepChanges(t)}},3282:(e,t,n)=>{n.r(t),n.d(t,{concat:()=>S,containsKey:()=>O,crash:()=>u,ensure:()=>l,escapeXml:()=>E,flatten:()=>j,friendlyName:()=>d,groupBy:()=>F,hasKey:()=>L,indexByKey:()=>P,isArrayOf:()=>g,isDefined:()=>f,isJson:()=>p,isNumericType:()=>M,isReferenceType:()=>I,isString:()=>h,isStringArray:()=>m,lowerCaseFirst:()=>k,mapValues:()=>x,partition:()=>b,repeat:()=>A,splitAttributePath:()=>v,subtract:()=>C,toFriendlyId:()=>R,toObjectByKey:()=>D,toWidgetName:()=>N,tuple:()=>w,unique:()=>y,uniqueBy:()=>_,useDependableValue:()=>V,useEnsureConstantValues:()=>B,useForceUpdate:()=>$,useIsFirstRender:()=>T});var r=n(9996),i=n.n(r),o=n(2188),a=n(7294),s=n(234),c=n(8714);function l(e){if(null==e)throw new Error("Did not expect an argument to be undefined");return e}function u(){throw new s.AssertionError}function d(e){var t,n;return null!==(n=null!==(t=e.displayName)&&void 0!==t?t:e.name)&&void 0!==n?n:"<component>"}function f(e){return void 0!==e}function h(e){return"string"==typeof e}function p(e){return null!=e&&"object"==typeof e&&e.constructor==={}.constructor}function g(e,t){return t instanceof Array&&t.every((t=>void 0===t||t instanceof e))}function m(e){return e instanceof Array&&e.every((e=>void 0===e||"string"==typeof e))}function v(e){const t=e.split("/");return t.length>1&&t.shift(),{attribute:t.pop(),entityPath:t.length?t.join("/"):void 0}}function y(e){return Array.from(new Set(e))}function b(e,t){const n=new Array,r=new Array;return t.forEach((t=>e(t)?n.push(t):r.push(t))),[n,r]}function w(...e){return e}function x(e,t){const n={};return Object.keys(e).forEach((r=>n[r]=t(e[r],r))),n}function _(e,t){const n=[],r={};return e.forEach((e=>{const i=t(e);Object.prototype.hasOwnProperty.call(r,i)||(r[i]=!0,n.push(e))})),n}function S(e){return[].concat(...e)}function C(e,t){return e.filter((e=>!t.includes(e)))}function E(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function O(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function j(e){return i().all(e.filter((e=>{return void 0!==e&&(t=e,!(0===Object.getOwnPropertyNames(t).length&&t.constructor===Object));var t}
66)),{clone:!1})}function k(e){return"string"==typeof e[0]?e[0].toLowerCase()+e.slice(1):""}function R(e){const t=e.split(/\./g);return t.length>=4?t.slice(1,4).join("."):e}function N(e){const t=e.split(/\./g);return t.length>=4?t[3]:void 0}function T(){let e=!1;return(0,a.useMemo)((()=>{e=!0}),[]),e}function A(e,t){return Array.from({length:e}).map(((e,n)=>t(n)))}function P(e){return t=>t.reduce(((t,n)=>(t[e(n)]=n,t)),Object.create(null))}function D(e,t){return P(t)(e)}function I(e){return"ObjectReference"===e||"ObjectReferenceSet"===e}function M(e){return"Decimal"===e||"Integer"===e||"Long"===e}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $(){const[,e]=(0,a.useState)({});return(0,a.useCallback)((()=>e({})),[])}function F(e,t){const n=[];for(const r of e){const e=t(r),i=n.find((t=>t.key===e));i?i.values.push(r):n.push({key:e,values:[r]})}return n}function B(...e){const t=(0,a.useRef)([...e]);if(t.current.length!==e.length||t.current.some(((t,n)=>e[n]!==t)))throw new s.AssertionError("The hook is called with different parameters than previously")}function V(e){B(e);const[t,n]=(0,a.useState)((()=>(0,c.readUntracked)(e)));return(0,a.useEffect)((()=>(0,o.reaction)((()=>e.dependOn()),n,{name:`Copy '${e.name}' to state`,fireImmediately:!1})),[]),t}},6355:(e,t,n)=>{n.d(t,{XG:()=>a,m_:()=>o});var r=n(5991);const i={};async function o(e,t){const n=JSON.stringify(e);return n in i?i[n]:i[n]=(0,r.withFinally)(t(e),(()=>{delete i[n]}))}function a(e){const t=Object.create(null);return(n,...r)=>(n in t||(t[n]=e(n,...r)),t[n])}},8559:(e,t,n)=>{n.r(t),n.d(t,{forceReactionExecution:()=>i,runActionInComputed:()=>o,scheduleAction:()=>s});var r=n(2188);function i(e){const t=(0,r._getGlobalState)(),n=t.inBatch,i=t.isRunningReactions,o=t.pendingReactions;t.inBatch=0,i&&(t.isRunningReactions=!1,t.pendingReactions=[]);try{e()}finally{t.inBatch=n,i&&(t.pendingReactions=o,t.isRunningReactions=i)}}function o(e){return(0,r._allowStateChangesInsideComputed)((()=>(0,r.runInAction)(e)))}(0,r.configure)({enforceActions:"always"});const a=[];function s(e){a.push(e),1===a.length&&setTimeout((()=>(0,r.runInAction)((()=>a.splice(0).forEach((e=>e()))))),0)}},5991:(e,t,n)=>
66{n.r(t),n.d(t,{methodToPromise:()=>s,never:()=>o,runInMicrotask:()=>c,wait:()=>a,withFinally:()=>i});var r=n(1881);async function i(e,t){return e.then((e=>(t(),e)),(e=>(t(),Promise.reject(e))))}async function o(){return new Promise((()=>{}))}async function a(e=0){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}async function s(e,t,...n){return new Promise(((r,i)=>e[t](...n,r,i)))}function c(e){Promise.resolve().then(e).catch((e=>(0,r.handleError)(e)))}},7613:(e,t,n)=>{n.r(t),n.d(t,{newId:()=>o});const r=Array(3).fill(null).map((()=>Math.floor(20*Math.random()))).map((e=>"abcdefghijklmnopqrst"[e])).join("");let i=0;function o(e="id"){return`${e}_${r}_${i++}`}},7020:(e,t,n)=>{n.r(t),n.d(t,{applyStyleObject:()=>i});var r=n(3282);function i(e,t){e.removeAttribute("style"),void 0!==t&&t.split(";").forEach((t=>{const[n,i]=t.split(":",2),o="float"===n?"cssFloat":(0,r.ensure)(n);o.startsWith("--")?e.style.setProperty(o,null!=i?i:null):e.style[o]=i}))}},2708:(e,t,n)=>{function r(e){return o(new Date(e)).getTime()}function i(e){return a(new Date(e)).getTime()}function o(e){const t=new Date;return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}function a(e){const t=new Date;return t.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}function s(e,t,n){let r=new Date(e);switch(n){case"date":c(r,t);break;case"time":l(r,t);break;case"datetime":c(r,t),l(r,t);break;default:r=t}return r}function c(e,t){e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate())}function l(e,t){e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}n.r(t),n.d(t,{delocalizeDate:()=>a,delocalizeEpoch:()=>i,localizeDate:()=>o,localizeEpoch:()=>r,mergeDates:()=>s})},6199:(e,t,n)=>{n.r(t),n.d(t,{getRemoteDynamicResourceUrl:()=>a,getStaticResourceUrl:()=>o,getStaticResourceUrlFromPath:()=>i});var r=n(1016);function i(e){return e.startsWith("data:")?e:mx.appUrl+e}function o(e){if(e.startsWith("data:"))return e;/^\w+:\/\//.test(e)||(e=i(e));const t=(0,r.getSession)().getConfig("cachebust");return e.startsWith(mx.appUrl)&&!e.endsWith(t)&&(e+=(e.includes("?")?"&":"?")+t),e}function a(e,t,n,r){return`${mx.remoteUrl}file?guid=${e}`+(t?`&changedDate=${t}`:"")+(n?"&thumb=true":"")+(r?`&name=${encodeURIComponent(r)}`:"")}},7744:()=>{const e=Object.getPrototypeOf(document.body.style),t=e.setProperty;e.setProperty=function(e,n,r){e.startsWith("--mx-important-")&&(e=e.replace("--mx-important-",""),r="important"),t.call(this,e,n,null!=r?r:"")}},6223:(e,t,n)=>{n.r(t),n.d(t,{ActionButton:()=>u,getButtonAction:()=>l});var r=n(5893),i=n(4184),o=n.n(i),a=n(7294),s=n(8128);const c=new Map,l=e=>c.get(e);class u extends a.Component{constructor(){super(...arguments),this.state=this.deriveState(this.props,{disabled:!0,showDisabled:!1}),this.onClickHandler=this.onClick.bind(this),this.onKeyDownHandler=this.onKeyDown.bind(this)}UNSAFE_componentWillReceiveProps(e){this.setState((t=>this.deriveState(e,t)))}componentDidMount(){this.actionButtonRef&&this.actionButtonRef.addEventListener("click",this.onClickHandler),this.props.action&&!this.state.disabled&&c.set(this.props.buttonId,this.props.action.execute)}componentDidUpdate(){this.props.action&&!this.state.disabled?c.set(this.props.buttonId,this.props.action.execute):c.delete(this.props.buttonId)}componentWillUnmount(){this.actionButtonRef&&this.actionButtonRef.removeEventListener("click",this.onClickHandler),window.clearTimeout(this.disableTimeout),c.delete(this.props.buttonId)}onClick(e){this.suppressEvent(e),"button"===this.props.renderType&&this.actionButtonRef.focus(),this.executeAction()}executeAction(){this.props.action&&!this.state.disabled&&this.props.action.execute()}onKeyDown(e){"Enter"!==e.key&&" "!==e.key||(this.suppressEvent(e),this.executeAction())}suppressEvent(e){e.preventDefault(),this.props.action&&e.stopPropagation()}render(){return"button"===this.props.renderType?this.renderButton():this.renderLink()}renderButton(){const e=this.state.showDisabled?{"aria-disabled":!0}:{};return(0,r.jsxs)("button",{type:"button",className:o()("btn","mx-button",this.props.class,this.props.buttonClass),style:this.props.style,title:this.props.tooltip.value,"aria-label":this.getAriaLabel(),tabIndex:this.props.tabIndex,disabled:!!this.props.action&&!this.props.action.canExecute,"data-button-id":this.props.buttonId,"data-disabled":this.state.disabled,ref:e=>this.actionButtonRef=null!=e?e:void 0,...e,children:[this.renderIcon()," ",this.props.caption.value]})}renderLink(){const e=this.state.showDisabled?{"aria-disabled":!0}:{};return(0,r.jsxs)("a",{className:o()("mx-link",this.props.class),style:this.props.style,href:"#",role:this.props.role,title:this.props.tooltip.value,"aria-label":this.getAriaLabel(),tabIndex:!this.props.action||this.props.action.canExecute?this.props.tabIndex:-1,onKeyDown:this.onKeyDown
66Handler,"data-button-id":this.props.buttonId,"data-disabled":this.state.disabled,ref:e=>this.actionButtonRef=null!=e?e:void 0,...e,children:[this.renderIcon()," ",this.props.caption.value]})}getAriaLabel(){if(!this.props.caption.value&&this.props.tooltip.value)return this.props.tooltip.value}renderIcon(){return this.props.icon&&(0,r.jsx)(s.Icon,{icon:this.props.icon.value})}deriveState(e,t){const n=e.action;return n&&!n.canExecute?{disabled:!0,showDisabled:!0}:(null==n?void 0:n.isExecuting)&&n.disabledDuringExecution?(void 0===this.disableTimeout&&(this.disableTimeout=window.setTimeout((()=>{this.setState({showDisabled:!0}),this.disableTimeout=void 0}),1e3)),{disabled:!0,showDisabled:t.showDisabled}):(window.clearTimeout(this.disableTimeout),this.disableTimeout=void 0,{disabled:!1,showDisabled:!1})}}},7481:(e,t,n)=>{n.r(t),n.d(t,{CommentNode:()=>o});var r=n(7294),i=n(3935);class o extends r.Component{componentDidMount(){this.originalNode=(0,i.findDOMNode)(this),this.commentNode=document.createComment(` widgetId:${this.props.widgetId} `),o.replace(this.commentNode,this.originalNode)}componentWillUnmount(){o.replace(this.originalNode,this.commentNode)}render(){return(0,r.createElement)("div")}static replace(e,t){const n=t.parentNode;n.insertBefore(e,t),n.removeChild(t)}}},8743:(e,t,n)=>{n.d(t,{M:()=>ge});var r,i,o,a,s=n(5893),c=n(4184),l=n.n(c),u=n(4063),d=n.n(u),f=n(7294);!function(e){e.Month="months",e.DayOfWeek="days"}(r||(r={})),function(e){e.Long="wide",e.Short="abbr",e.Narrow="narrow"}(i||(i={})),function(e){e.Date="date",e.Time="time",e.DateTime="datetime"}(o||(o={})),function(e){e.Short="short",e.Medium="medium",e.Long="long",e.Full="full"}(a||(a={}));var h,p=n(6598),g=n(3282);function m(e,t=i.Long){const{dates:n}=(0,p.getLocale)(),r=e-1;switch(t){case i.Long:return(0,g.ensure)(n.months[r]);case i.Narrow:case i.Short:return(0,g.ensure)(n.shortMonths[r])}}function v(e,t=i.Long){const{dates:n}=(0,p.getLocale)();switch(t){case i.Long:return(0,g.ensure)(n.weekdays[e]);case i.Narrow:case i.Short:return(0,g.ensure)(n.shortWeekdays[e])}}!function(e){e.Gregorian="gregorian",e.ThaiBuddhist="thai-buddhist"}(h||(h={}));var y=n(9013),b=n(3882);function w(e){(0,b.Z)(1,arguments);var t=(0,y.Z)(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}var x=n(1593),_=n(9319),S=n(1640),C=n(4559),E=n(7349),O=n(7069),j=n(3946);class k{constructor(e,t,n,r){this.year=e,this.monthOfYear=t,this.dayOfMonth=n,this.chronology=r}isSameDate(e){return this.chronology===e.chronology&&this.getYear()===e.getYear()&&this.getMonthOfYear()===e.getMonthOfYear()&&this.getDayOfMonth()===e.getDayOfMonth()}getChronology(){return this.chronology}getYear(){return this.year}getMonthOfYear(){return this.monthOfYear}getDayOfMonth(){return this.dayOfMonth}getDayOfWeek(){return this.chronology.getDayOfWeek(this)}lengthOfYearInMonths(){return this.chronology.lengthOfYearInMonths(this.year)}plusYears(e){return this.chronology.plusYears(this,e)}plusMonths(e){return this.chronology.plusMonths(this,e)}plusDays(e){return this.chronology.plusDays(this,e)}minusYears(e){return this.chronology.minusYears(this,e)}minusMonths(e){return this.chronology.minusMonths(this,e)}minusDays(e){return this.chronology.minusDays(this,e)}withDayOfMonth(e){return this.chronology.withDayOfMonth(this,e)}withMonthOfYear(e){return this.chronology.withMonthOfYear(this,e)}withYear(e){return this.chronology.withYear(this,e)}toJsDate(){return this.chronology.toJsDate(this)}toString(){const e=R(this.monthOfYear,2),t=R(this.dayOfMonth,2),n=N[this.getDayOfWeek()],r=this.getChronology().getCalendarSystem();return`${this.year}-${e}-${t} ${n} (${r})`}}function R(e,t){const n=e.toString();return new Array(t-n.length+1).join("0")+n}const N=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];class T{constructor(e=0,t=0,n=0,r=0){this.hour=e,this.minute=t,this.second=n,this.millisecond=r}getHour(){return this.hour}getMinute(){return this.minute}getSecond(){return this.second}getMillisecond(){return this.millisecond}isSameTime(e){return this.hour===e.hour&&this.minute===e.minute&&this.second===e.second&&this.millisecond===e.millisecond}toString(){return A(this.hour,2)+":"+A(this.minute,2)+":"+A(this.second,2)+"."+A(this.millisecond,3)}}function A(e,t){const n=e.toString();return new Array(t-n.length+1).join("0")+n}class P{constructor(e,t=new T){this.date=e,this.time=t}getDate(){return this.date}getTime(){return this.time}withDate(e){return new P(e,this.time)}withTime(e){return new P(this.date,e)}toJsDate(){return this.date.getChronology().toJsDate(this)}isSameDateTime(e){return this.date.isSameDate(e.date)&&this.time.isSameTime(e.time)}getChronology(){return this.date.getChronology()}toString(){return this.date.toString()+" "+this.time.toString()}}class D{constructor(e){this.calendarSystem=e}getCalendarSystem(){return this.calendarSystem}convertInput(e){if(e.getChronology()!==this)throw new Error(`Incompatible chronology: LocalDate should be ${this.getCalendarSystem()} but was ${e.getChronology().getCalendarSystem()}`);return{localDate:e instanceof k?e:e.getDate(),localTime:e instanceof k?new T:e.getTime()}}static getInstance(){return this.instance}}class I extends D{constructor(e=0,t=h.Gregorian){super(t),this.yearOffset=e}getDayOfWeek(e){return function(e){return(0,b.Z)(1,arguments),(0,y.Z)(e).getDay()}(this.toJsDate(e))}lengthOfMonthInDays(e,t){return w(new Date(e,t-1,1))}lengthOfYearInMonths(e){return 12}plusYears(e,t){return M(this.fromJsDate((0,x.Z)(this.toJsDate(e),t)),e)}minusYears(e,t){return M(this.fromJsDate((0,_.Z)(this.toJsDate(e),t)),e)}plusMonths(e,t){return M(this.fromJsDate((0,S.Z)(this.toJsDate(e),t)),e)}minusMonths(e,t){return M(this.fromJsDate((0,C.Z)(this.toJsDate(e),t)),e)}plusDays(e,t){return M(this.fromJsDate((0,E.Z)(this.toJsDate(e),t)),e)}minusDays(e,t){return M(this.fromJsDate((0,O.Z)(this.toJsDate(e),t)),e)}withDayOfMonth(e,t){return M(this.fromJsDate(function(e,t){(0,b.Z)(2,arguments);var n=(0,y.Z)(e),r=(0,j.Z)(t);return n.setDate(r),n}(this.toJsDate(e),t)),e)}withMonthOfYear(e,t){return M(this.fromJsDate(function(e,t){(0,b.Z)(2,arguments);var n=(0,y.Z)(e),r=(0,j.Z)(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=w(a);return n.setMonth(r,Math.min(o,s)),n}(this.toJsDate(e),t-1)),e)}withYear(e,t){return M(this.fromJsDate(function(e,t){(0,b.Z)(2,arguments);var n=(0,y.Z)(e),r=(0,j.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}(this.toJsDate(e),t)),e)}fromJsDate(e){const t=new k(e.getFullYear()+this.yearOffset,e.getMonth()+1,e.getDate(),this),n=new T(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return new P(t,n)}toJsDate(e){const{localDate:t,localTime:n}=this.convertInput(e);return new Date(t.getYear()-this.yearOffset,t.getMonthOfYear()-1,t.getDayOfMonth(),n.getHour(),n.getMinute(),n.getSecond(),n.getMillisecond())}}function M(e,t){return t instanceof k?e.getDate():e}I.instance=new I;class L extends I{}function $(){switch(/th$/i.test((0,p.getLocale)().languageTag)?h.ThaiBuddhist:h.Gregorian){case h.ThaiBuddhist:return L.getInstance();case h.Gregorian:return I.getInstance()}}L.instance=new L(543,h.ThaiBuddhist);var F=n(4644),B=n(6077);class V extends f.PureComponent{render(){var e;const t=f.Children.only(this.props.children),n=Object.keys(this.props).filter((e=>["top","right","bottom","left"].includes(e))).map((e=>({[e]:`${this.props[e]}px`}))),r=Object.assign({...t.props.style,position:null!==(e=this.props.position)&&void 0!==e?e:"absolute"},...n);return(0,f.cloneElement)(t,{style:r})}}var z,U=n(5034),W=n(2003);!function(e){e.Current="current",e.Previous="previous",e.Next="next"}(z||(z={}));class q extends f.Component{constructor(){super(...arguments),this.onClickHandler=this.onClick.bind(this)}onClick(){this.props.onSelect(this.props.date)}componentDidMount(){this.focusIfHighlighted()}componentDidUpdate(){this.focusIfHighlighted()}focusIfHighlighted(){this.props.isCalendarFocused&&this.props.isHighlighted&&this.focus()}focus(){this.ref&&this.ref.focus()}render(){return(0,s.jsx)("td",{className:l()({"mx-calendar-day-month-current":this.props.relativeMonth===z.Current,"mx-calendar-day-month-previous":this.props.relativeMonth===z.Previous,"mx-calendar-day-month-next":this.props.relativeMonth===z.Next,"mx-calendar-day-selected":this.props.isSelected,"mx-calendar-day-active":this.props.isHighlighted,"mx-calendar-day-today":this.props.isToday}),role:"gridcell",onClick:this.onClickHandler,tabIndex:this.props.isHighlighted?0:-1,"aria-label":this.props.dayLabel,"aria-selected":this.props.isSelected,ref:e=>this.ref=null!=e?e:void 0,children:this.props.date.getDayOfMonth()})}}const H=e=>(0,s.jsx)("tr",{role:"row",children:e.days.map((t=>(0,f.createElement)(q,{...t,isSelected:!!e.selectedDate&&t.date.isSameDate(e.selectedDate),isHighlighted:t.date.isSameDate(e.highlightedDate),isCalendarFocused:e.isCalendarFocused,isToday:t.date.isSameDate(e.today),dayLabel:e.dayFormatter(t.date),onSelect:e.onSelect,key:t.date.getDayOfMonth()})))}),G=e=>(0,s.jsx)("th",{role:"columnheader",scope:"col",title:v(e.day),children:v(e.day,i.Narrow)}),Z=[F.eO.Sunday,F.eO.Monday,F.eO.Tuesday,F.eO.Wednesday,F.eO.Thursday,F.eO.Friday,F.eO.Saturday];function K(e){const t=Z.slice(e.firstDayOfWeek).concat(Z.slice(0,e.firstDayOfWeek));return(0,s.jsx)("tr",{role:"row",children:t.map((e=>(0,s.jsx)(G,{day:e},e)))})}class X extends f.Component{constructor(){super(...arguments),this.prepareWeeks=()=>function(e,t){const n=e.getMonthOfYear(),r=e.withDayOfMonth(1),i=(r.getDayOfWeek()-t+7)%7,o=r.minusDays(i);let a=0;const s=[];for(let e=0;e<6;e++){const e=[];for(let t=0;t<7;t++,a++){const t=o.plusDays(a),r=Y(a,i,n===t.getMonthOfYear());e.push({date:t,relativeMonth:r})}s.push(e)}return s}(this.props.highlightedDate,this.props.firstDayOfWeek)}renderHead(){return(0,s.jsx)("thead",{children:(0,s.jsx)(K,{firstDayOfWeek:this.props.firstDayOfWeek})})}
66renderBody(){const e=$().fromJsDate(new Date(Date.now())).getDate();return(0,s.jsx)("tbody",{children:this.prepareWeeks().map(((t,n)=>(0,s.jsx)(H,{days:t,selectedDate:this.props.selectedDate,highlightedDate:this.props.highlightedDate,isCalendarFocused:this.props.isCalendarFocused,dayFormatter:this.props.dayFormatter,onSelect:this.props.onDateSelect,today:e},n)))})}render(){return(0,s.jsxs)("table",{role:"grid",summary:m(this.props.highlightedDate.getMonthOfYear()),children:[this.renderHead(),this.renderBody()]})}}function Y(e,t,n){return e<t?z.Previous:n?z.Current:z.Next}var Q=n(8128),J=n(7613);class ee extends f.Component{constructor(){super(...arguments),this.state={showDropDown:!1},this.id=(0,J.newId)("MonthDropDown"),this.onClickHandler=this.onClick.bind(this),this.onLeaveHandler=this.onLeave.bind(this),this.onSelectHandler=this.onSelect.bind(this)}onClick(){this.setState((e=>({showDropDown:!e.showDropDown})))}onLeave(){this.setState({showDropDown:!1})}onSelect(e){this.props.onChange(e)}render(){return(0,s.jsx)(W.s,{onLeave:this.onLeaveHandler,children:(0,s.jsxs)("div",{className:"mx-calendar-month-dropdown",onClick:this.onClickHandler,tabIndex:-1,role:"button",id:this.id,"aria-haspopup":"true","aria-expanded":this.state.showDropDown,"aria-owns":`${this.id}_mdd`,children:[(0,s.jsx)(te,{highlightedDate:this.props.highlightedDate}),(0,s.jsx)(Q.Icon,{icon:{type:"glyph",iconClass:"glyphicon-chevron-down"}}),this.renderOptions()]})})}renderOptions(){return this.state.showDropDown&&(0,s.jsx)(ne,{highlightedDate:this.props.highlightedDate,onSelect:this.onSelectHandler,parentId:this.id})}}class te extends f.PureComponent{render(){return(0,s.jsxs)("div",{className:"mx-calendar-month-current",children:[(0,s.jsx)("div",{className:"mx-calendar-month-spacer","aria-hidden":"true",children:ie(this.props.highlightedDate).map((e=>(0,s.jsx)("div",{children:m(e)},e)))}),(0,s.jsx)("div",{className:"mx-calendar-month-label",children:m(this.props.highlightedDate.getMonthOfYear())})]})}}class ne extends f.PureComponent{render(){return(0,s.jsx)("div",{className:"mx-calendar-month-dropdown-options",id:`${this.props.parentId}_mdd`,children:ie(this.props.highlightedDate).map((e=>(0,s.jsx)(re,{month:e,onSelect:()=>this.props.onSelect(this.props.highlightedDate.withMonthOfYear(e))},e)))})}}const re=({month:e,onSelect:t})=>(0,s.jsx)("div",{onClick:t,children:m(e)}),ie=e=>Array.from(Array(e.lengthOfYearInMonths()).keys()).map((e=>e+1)),oe=e=>(0,s.jsxs)("div",{className:"mx-calendar-month-header","aria-hidden":"true",children:[(0,s.jsx)("button",{className:"mx-calendar-month-previous",tabIndex:-1,onClick:()=>e.onChange(e.highlightedDate.minusMonths(1)),children:(0,s.jsx)(Q.Icon,{icon:{type:"glyph",iconClass:"glyphicon-minus"}})}),(0,s.jsx)(ee,{highlightedDate:e.highlightedDate,onChange:e.onChange}),(0,s.jsx)("button",{className:"mx-calendar-month-next",tabIndex:-1,onClick:()=>e.onChange(e.highlightedDate.plusMonths(1)),children:(0,s.jsx)(Q.Icon,{icon:{type:"glyph",iconClass:"glyphicon-plus"}})})]}),ae=e=>{const t=e.highlightedDate.minusYears(1),n=e.highlightedDate.plusYears(1);return(0,s.jsxs)("div",{className:"mx-calendar-year-switcher",role:"presentation",children:[(0,s.jsx)(se,{type:"previous",year:t.getYear(),onSelect:()=>e.onChange(t)}),(0,s.jsx)(se,{type:"selected",year:e.highlightedDate.getYear()}),(0,s.jsx)(se,{type:"next",year:n.getYear(),onSelect:()=>e.onChange(n)})]})},se=({type:e,onSelect:t,year:n})=>(0,s.jsx)("span",{className:`mx-calendar-year-${e}`,tabIndex:-1,onClick:t,children:n});class ce extends f.Component{constructor(){super(...arguments),this.state=ce.getStateFromProps(this.props,{isFocused:!1,highlightedDate:this.props.defaultDate}),this.onDateSelectHandler=this.onDateSelect.bind(this),this.onHighlightedDateChangeHandler=this.onHighlightedDateChange.bind(this),this.onKeyDownHandler=this.onKeyDown.bind(this),this.onKeyUpHandler=this.onKeyUp.bind(this),this.onEnterHandler=this.onEnter.bind(this),this.onLeaveHandler=this.onLeave.bind(this),this.onMouseDownHandler=this.onMouseDown.bind(this)}componentDidMount(){this.focus()}UNSAFE_componentWillReceiveProps(e){var t;e.selectedDate&&!(null===(t=this.props.selectedDate)||void 0===t?void 0:t.isSameDate(e.selectedDate))&&this.setState((t=>ce.getStateFromProps(e,t)))}onDateSelect(e){this.props.onChange(e)}onHighlightedDateChange(e){this.setHighlightedDate(e)}setHighlightedDate(e){this.setState({highlightedDate:e})}onKeyDown(e){const t=this.state.highlightedDate,n=this.props.rightToLeft;switch(e.key){case"ArrowUp":this.setHighlightedDate(t.minusDays(7));break;case"ArrowDown":this.setHighlightedDate(t.plusDays(7));break;case"ArrowLeft":this.setHighlightedDate(n?t.plusDays(1):t.minusDays(1));break;case"ArrowRight":this.setHighlightedDate(n?t.minusDays(1):t.plusDays(1));break;case"PageUp":this.setHighlightedDate(e.ctrlKey||e.altKey?t.minusYears(1):t.minusMonths(1));break;case"PageDown":this.setHighlightedDate(e.ctrlKey||e.altKey?t.plusYears(1):t.plusMonths(1));break;case"Home":this.setHighlightedDate(t.withDayOfMonth(1));break;case"End":this.setHighlightedDate(t.withDayOfMonth(1).plusMonths(1).minusDays(1));break;default:return}e.preventDefault(),e.stopPropagation()}onKeyUp(e){const t=this.state.highlightedDate;switch(e.key){case" ":case"Enter":this.onDateSelect(t);break;default:return}e.preventDefault(),e.stopPropagation()}focus(){this.setState({isFocused:!0})}onEnter(){this.setState({isFocused:!0})}onLeave(){this.setState({isFocused:!1})}onMouseDown(e){const t=(0,U.getFocusableContainer)(e.target);t?(e.preventDefault(),t.focus()):(e.preventDefault(),this.focus())}render(){return(0,s.jsx)(W.s,{onEnter:this.onEnterHandler,onLeave:this.onLeaveHandler,children:(0,s.jsxs)("div",{className:"mx-calendar",role:"presentation",style:this.props.style,onKeyDown:this.onKeyDown
66Handler,onKeyUp:this.onKeyUpHandler,onMouseDown:this.onMouseDownHandler,children:[(0,s.jsx)(oe,{highlightedDate:this.state.highlightedDate,onChange:this.onHighlightedDateChangeHandler}),(0,s.jsx)(X,{selectedDate:this.props.selectedDate,highlightedDate:this.state.highlightedDate,isCalendarFocused:this.state.isFocused,firstDayOfWeek:this.props.firstDayOfWeek,dayFormatter:this.props.dayFormatter,onDateSelect:this.onDateSelectHandler}),(0,s.jsx)(ae,{highlightedDate:this.state.highlightedDate,onChange:this.onHighlightedDateChangeHandler})]})})}static getStateFromProps(e,t){var n,r;return{highlightedDate:null!==(r=null!==(n=t.isFocused?t.highlightedDate:void 0)&&void 0!==n?n:e.selectedDate)&&void 0!==r?r:e.defaultDate,isFocused:t.isFocused}}}var le=n(3935);class ue extends f.Component{constructor(){super(...arguments),this.onAnimationFrameHandler=this.onAnimationFrame.bind(this)}componentDidMount(){this.requestFrame()}requestFrame(){this.requestId=window.requestAnimationFrame(this.onAnimationFrameHandler)}componentWillUnmount(){window.cancelAnimationFrame(this.requestId)}onAnimationFrame(){this.props.callback(),this.requestFrame()}render(){return null}}class de extends f.Component{constructor(){super(...arguments),this.onAnimationFrameHandler=this.onAnimationFrame.bind(this)}onAnimationFrame(){var e,t;this.element||(this.element=null!==(e=(0,le.findDOMNode)(this))&&void 0!==e?e:void 0);const n=null===(t=this.element)||void 0===t?void 0:t.getBoundingClientRect();de.shouldUpdatePosition(n,this.position)&&(this.position=n,this.props.callback(n))}componentWillUnmount(){delete this.element}render(){const e=(0,f.cloneElement)(f.Children.only(this.props.children),{key:1});return(0,s.jsxs)(f.Fragment,{children:[e,this.props.active?(0,s.jsx)(ue,{callback:this.onAnimationFrameHandler},2):null]})}static shouldUpdatePosition(e,t){return!e||!t||e.height!==t.height||e.width!==t.width||e.bottom!==t.bottom||e.top!==t.top||e.left!==t.left||e.right!==t.right}}var fe=n(3586),he=n(783),pe=n(8314);class ge extends f.Component{constructor(){var e,t,n;super(...arguments),this.chronology=$(),this.native=(t=this.props,n=this.chronology.getCalendarSystem(),(0,pe.s)()&&function(e){const t=document.createElement("input");return t.type=e,t.value=":)",t.type===e&&":)"!==t.value}(me(t.mode))&&n!==h.ThaiBuddhist),this.defaultFormatter=this.props.inputValue.formatter,this.formatter=this.createFormatter(this.defaultFormatter),this.dayFormatter=this.createDayFormatter(this.defaultFormatter),this.defaultPlaceholder=null!==(e=this.defaultFormatter.getFormatPlaceholder())&&void 0!==e?e:"",this.state={showCalendar:!1},this.onChangeHandler=this.onChange.bind(this),this.onKeyUpHandler=this.onKeyUp.bind(this),this.onInputKeyUpHandler=this.onInputKeyUp.bind(this),this.onButtonClickHandler=this.onButtonClick.bind(this),this.onInputPositionHandler=this.onInputPosition.bind(this),this.onCalendarPositionHandler=this.onCalendarPosition.bind(this),this.onSelectDateHandler=this.onSelectDate.bind(this),this.onEnterHandler=this.onEnter.bind(this),this.onLeaveHandler=this.onLeave.bind(this),this.today=this.chronology.fromJsDate(new Date).getDate()}createFormatter(e){return this.native?e.withConfig({type:"custom",pattern:ve(this.props.mode)}):e}createDayFormatter(e){const t=e.withConfig({type:"date"});return e=>t.format(e.toJsDate())}componentDidUpdate(e,t){if(setTimeout((()=>{this.inputRef&&(this.inputRef.defaultValue="")}),0),!t.editedValue)return;const{value:n,displayValue:r}=this.props.inputValue,{value:i,displayValue:o}=e.inputValue;!this.props.inputValue.readOnly&&d()(n,i)&&r===o||this.setState({editedValue:void 0})}toLocalDateTime(e){return e&&this.chronology.fromJsDate(e)}formatValue(e){const t=e instanceof P?e.toJsDate():e;return this.formatter.format(t)}onChange(e){this.setState({editedValue:this.parseValue(e.target.value)},(()=>{this.native&&this.submitValue()}))}parseValue(e){e=this.native&&e.length>16?e.substring(0,16):e;const t=this.props.inputValue.value,n=this.formatter.parse(e,t);return{displayValue:e,internalValue:n.valid?{valid:!0,value:this.toLocalDateTime(n.value)}:n}}combineDateTime(e,t){if(!e||!t)return t;switch(this.props.mode){case"date":return t.withTime(e.getTime());case"time":return t.withDate(e.getDate());case"datetime":return t}throw new Error(`Unknown date picker mode '${this.props.mode}`)}onEnter(){this.dispatchAction("onEnter")}
66onLeave(){this.submitValue(),this.closeCalendar(),this.dispatchAction("onLeave")}submitValue(){const e=this.state.editedValue;if(e){if(e.internalValue.valid){const r=this.toLocalDateTime(this.props.inputValue.value),i=this.combineDateTime(r,e.internalValue.value);n=r,((t=i)&&n?t.isSameDateTime(n):t===n)&&this.parseValue(this.props.inputValue.displayValue).internalValue.valid||this.props.inputValue.setValue(i?i.toJsDate():void 0)}else e.displayValue!==this.props.inputValue.displayValue&&this.props.inputValue.setTextValue(e.displayValue);var t,n;this.setState({editedValue:void 0})}}onKeyUp(e){"Escape"===e.key&&this.closeCalendarAndFocusInput()}onInputKeyUp(e){"ArrowDown"===e.key&&this.supportsCalendar()?this.openCalendar():"Enter"===e.key&&(this.submitValue(),this.closeCalendar()),this.props.onInputKeyUp&&this.props.onInputKeyUp(e)}supportsCalendar(){return!this.native&&this.props.showCalendarButton}onButtonClick(){this.state.showCalendar?this.closeCalendarAndFocusInput():this.openCalendar()}dispatchAction(e){const t=this.props[e];"available"===this.props.inputValue.status&&t&&t.execute()}onInputPosition(e){this.setState({inputPosition:e})}onCalendarPosition(e){this.setState({calendarSize:e?{width:e.width,height:e.height}:void 0})}onSelectDate(e){let t=new P(e);if(void 0!==this.state.editedValue){const n=this.state.editedValue.internalValue;n.valid&&void 0!==n.value&&(t=new P(e,n.value.getTime()))}else{const n=this.toLocalDateTime(this.props.inputValue.value);t=new P(e,null==n?void 0:n.getTime())}const n={displayValue:this.formatValue(t),internalValue:{valid:!0,value:t}};this.setState({editedValue:n},(()=>this.submitValue())),this.closeCalendarAndFocusInput()}openCalendar(){this.setState({showCalendar:!0},(()=>{var e;return null===(e=this.calendarRef)||void 0===e?void 0:e.focus()}))}closeCalendarAndFocusInput(){this.closeCalendar(),this.inputRef&&this.inputRef.focus()}closeCalendar(){this.setState({showCalendar:!1,calendarSize:void 0})}getDisplayValue(){return void 0!==this.state.editedValue?this.state.editedValue.displayValue:this.native?this.formatValue(this.props.inputValue.value):this.props.inputValue.displayValue}render(){return(0,s.jsxs)(f.Fragment,{children:["control"!==this.props.readOnlyStyle&&this.props.inputValue.readOnly?this.renderAsText():this.renderAsInput(),(0,s.jsx)(fe.b,{id:`${this.props.id}-error`,validation:this.props.inputValue.validation})]})}renderAsInput(){var e;return(0,s.jsx)(W.s,{onEnter:this.onEnterHandler,onLeave:this.onLeaveHandler,children:(0,s.jsxs)("div",{className:"mx-compound-control",onKeyUp:this.onKeyUpHandler,children:[(0,s.jsx)(de,{active:this.state.showCalendar,callback:this.onInputPositionHandler,children:(0,s.jsx)("input",{className:l()("form-control",{"has-value":this.native&&!!this.getDisplayValue()}),type:this.native?me(this.props.mode):"text",value:this.getDisplayValue(),placeholder:this.props.inputValue.readOnly?void 0:this.props.placeholder.value&&this.props.placeholder.value.length>0?this.props.placeholder.value:this.native?" ":this.defaultPlaceholder,id:this.props.id,tabIndex:this.props.tabIndex,disabled:this.props.inputValue.readOnly,onChange:this.onChangeHandler,onKeyUp:this.onInputKeyUpHandler,ref:e=>this.inputRef=null!=e?e:void 0,"data-handles-escape":this.state.showCalendar||void 0,...(0,he.k)(null===(e=this.props.ariaLabel)||void 0===e?void 0:e.value),...(0,he.$)(this.props.inputValue.validation,this.props.id),"aria-required":this.props.ariaRequired})}),this.renderButton(),this.renderCalendar()]})})}renderButton(){const e=this.props.inputValue;return"available"===e.status&&this.supportsCalendar()?(0,s.jsx)("button",{type:"button",className:"btn mx-button","aria-label":this.props.buttonLabel.value,tabIndex:-1,disabled:e.readOnly,onClick:this.onButtonClickHandler,"data-handles-escape":this.state.showCalendar||void 0,children:(0,s.jsx)("span",{className:"glyphicon glyphicon-calendar"})}):null}renderAsText(){return(0,s.jsx)("div",{className:"form-control-static",children:this.props.inputValue.displayValue||" "})}renderCalendar(){if(!this.state.showCalendar||!this.state.inputPosition)return null;let e={},t={};if(this.state.calendarSize){const{clientWidth:n,clientHeight:r}=document.body,i=this.state.inputPosition,o=this.state.calendarSize.height;e=(0,B.y)()?{right:n-i.right}:{left:i.left},t=r>=i.bottom+o?{top:i.bottom}:i.top>=o?{bottom:r-i.top}:{bottom:0}}const n=this.state.editedValue?this.state.editedValue.internalValue.valid?this.state.editedValue.internalValue.value:void 0:this.toLocalDateTime(this.props.inputValue.value),r=void 0!==n?n.getDate():void 0,i=(0,p.getLocale)().firstDayOfWeek;return(0,W.i)((0,s.jsx)(de,{active:!0,callback:this.onCalendarPositionHandler,children:(0,s.jsx)(V,{position:"fixed",...e,...t,children:(0,s.jsx)(ce,{selectedDate:r,defaultDate:this.today,onChange:this.onSelectDateHandler,firstDayOfWeek:i,rightToLeft:(0,B.y)(),dayFormatter:this.dayFormatter,ref:e=>this.calendarRef=null!=e?e:void 0,style:this.state.calendarSize?{}:{opacity:0}
66})})}),document.body)}}function me(e){switch(e){case"date":return"date";case"time":return"time";case"datetime":return"datetime-local"}}function ve(e){switch(e){case"date":return"yyyy-MM-dd";case"time":return"HH:mm";case"datetime":return"yyyy-MM-dd'T'HH:mm"}}},2865:(e,t,n)=>{n.r(t),n.d(t,{DatePickerWrapper:()=>c});var r=n(5893),i=n(7294),o=n(4663),a=n(5517),s=n(8743);class c extends i.PureComponent{constructor(){var e;super(...arguments),this.formatter=new o.w(null!==(e=this.props.dateFormat)&&void 0!==e?e:{type:this.props.mode}),this.placeholder=(0,a.fp)(this.props.placeholder),this.buttonLabel=(0,a.fp)(this.props.buttonLabel),this.inputKeyUpHandler=this.props.onInputKeyUp.bind(this),this.state={}}render(){var e;const t={displayValue:null!==(e=this.state.textValue)&&void 0!==e?e:this.formatter.format(this.props.value),formatter:this.formatter,readOnly:!this.props.enabled,status:"available",validation:void 0,value:this.props.value,setFormatter(){},setTextValue:(e,t)=>{this.setState({textValue:e});const n=this.formatter.parse(e,t);this.setState({textValue:n.valid?void 0:e}),this.props.onChange(n.value,n.valid)},setValidator(){},setValue:e=>{this.setState({textValue:void 0}),this.props.onChange(e,!0)}};return(0,r.jsx)(s.M,{id:this.props.id,mode:this.props.mode,showCalendarButton:"time"!==this.props.mode,inputValue:t,onInputKeyUp:this.inputKeyUpHandler,placeholder:this.placeholder,buttonLabel:this.buttonLabel,readOnlyStyle:"control",ariaLabel:this.props.ariaLabel})}}},2685:(e,t,n)=>{n.r(t),n.d(t,{ErrorHandler:()=>i});var r=n(7294);class i extends r.Component{constructor(){super(...arguments),this.state={error:void 0}}componentDidCatch(e,t){this.setState({error:e})}render(){return this.state.error?(0,r.createElement)("div",{className:"alert alert-danger"},`An error occurred in a "${this.props.widgetId}" widget. Check updates for the widget in the Mendix App Store or contact the widget developer.`):this.props.children}}},3586:(e,t,n)=>{n.d(t,{b:()=>i});var r=n(5893);const i=e=>e.validation?(0,r.jsx)("div",{id:e.id,className:"alert alert-danger mx-validation-message",role:"alert",children:e.validation}):null},2003:(e,t,n)=>{n.d(t,{s:()=>l,i:()=>u});var r=n(5893),i=n(7294),o=n(3935),a=n(5034),s=n(7613);const c=(0,i.createContext)("");class l extends i.Component{constructor(){super(...arguments),this.id=(0,s.newId)(),this.onFocusHandler=this.onFocus.bind(this),this.onBlurHandler=this.onBlur.bind(this)}onFocus(){this.focused||(this.focused=!0,this.props.onEnter&&this.props.onEnter())}onBlur(e){var t;this.isDescendant(null!==(t=e.relatedTarget)&&void 0!==t?t:document.activeElement)?e.stopPropagation():(this.focused=!1,this.onLeave())}isDescendant(e){const t=(0,o.findDOMNode)(this);let n=e&&(0,a.getHTMLElement)(e);for(;n;){if(n===t||n.getAttribute("data-focuscontainer")===this.id)return!0;n=n.parentElement}return!1}onLeave(){this.props.onLeave&&this.props.onLeave()}componentWillUnmount(){this.focused&&this.onLeave()}render(){return(0,r.jsx)(c.Provider,{value:this.id,children:(0,i.cloneElement)(i.Children.only(this.props.children),{onFocus:this.onFocusHandler,onBlur:this.onBlurHandler})})}}const u=(e,t,n)=>(0,o.createPortal)((0,r.jsx)(c.Consumer,{children:t=>(0,i.cloneElement)(i.Children.only(e),{ref:e=>{const n=(0,o.findDOMNode)(e);null!==n&&t&&n.setAttribute("data-focuscontainer",t)}})}),t,n)},783:(e,t,n)=>{n.d(t,{$:()=>r,k:()=>i});const r=(e,t)=>e?{"aria-invalid":!0,"aria-describedby":`${t}-error`}:void 0,i=e=>e?{"aria-label":e}:{}},8314:(e,t,n)=>{function r(){return/(iPhone|iPod|iPad|Android|Windows Phone)/.test(navigator.userAgent)}n.d(t,{s:()=>r})},4264:(e,t,n)=>{n.r(t),n.d(t,{WidgetRegistry:()=>Pe});var r=n(7294),i=n(3282),o=n(5893),a=n(6223),s=n(3586),c=n(783);class l extends r.Component{constructor(){super(...arguments),this.onChangeHandler=this.onChange.bind(this),this.onEnterHandler=this.onEnter.bind(this),this.onLeaveHandler=this.onLeave.bind(this)}onChange(e){this.props.value.setValue(e.target.checked)}onEnter(){this.dispatchAction("onEnter")}onLeave(){this.dispatchAction("onLeave")}render(){const e=this.props.value.value,t="available"===this.props.value.status&&void 0!==e?this.props.value.formatter.format(e):"",n=this.props.value.readOnly&&"text"===this.props.readOnlyStyle;return(0,o.jsxs)(r.Fragment,{children:[n?(0,o.jsx)("div",{className:"form-control-static",children:t}):this.renderInput(),this.renderLabel(),(0,o.jsx)(s.b,{id:`${this.props.id}-error`,validation:this.props.value.validation})]})}renderLabel(){return this.props.caption&&(0,o.jsx)("label",{className:"control-label",htmlFor:this.props.id,children:this.props.caption.value})}renderInput(){var e,t;return(0,o.jsx)("input",{type:"checkbox",id:this.props.id,tabIndex:this.props.tabIndex,onChange:this.onChangeHandler,onFocus:this.onEnterHandler,onBlur:this.onLeaveHandler,checked:null!==(e=this.props.value.value)&&void 0!==e&&e,disabled:this.props.value.readOnly,...(0,c.k)(null===(t=this.props.ariaLabel)||void 0===t?void 0:t.value),...(0,c.$)(this.props.value.validation,this.props.id)})}dispatchAction(e){const t=this.props[e];"available"===this.props.value.status&&t&&t.execute()}}function u(e){const{tabIndex:t,onClick:n}=e;if(null==n?void 0:n.canExecute){const e=()=>{n.isExecuting&&n.disabledDuringExecution||n.execute()},r=t=>{t.preventDefault(),t.stopPropagation(),e()};return{tabIndex:null!=t?t:0,role:"button",onClick:r,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||e.target!==e.currentTarget||r(e)}}}}var d=n(4184),f=n.n(d),h=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}}
66,p=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},g={top:0,right:0,bottom:0,left:0},m=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){throw new Error("Invariant failed")}(),n},v=function(e){return t=e.getBoundingClientRect(),n=window.getComputedStyle(e),function(e){var t,n,r=e.borderBox,i=e.margin,o=void 0===i?g:i,a=e.border,s=void 0===a?g:a,c=e.padding,l=void 0===c?g:c,u=h((n=o,{top:(t=r).top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right})),d=h(p(r,s)),f=h(p(d,l));return{marginBox:u,borderBox:h(r),paddingBox:d,contentBox:f,margin:o,border:s,padding:l}}({borderBox:t,margin:{top:m(n.marginTop),right:m(n.marginRight),bottom:m(n.marginBottom),left:m(n.marginLeft)},padding:{top:m(n.paddingTop),right:m(n.paddingRight),bottom:m(n.paddingBottom),left:m(n.paddingLeft)},border:{top:m(n.borderTopWidth),right:m(n.borderRightWidth),bottom:m(n.borderBottomWidth),left:m(n.borderLeftWidth)}});var t,n};function y(e,t,n=[]){(0,i.useEnsureConstantValues)(e,t);const o=(0,r.useRef)([]);function a(n,r){var a,s;const c=function(e){for(;null==e?void 0:e.classList.contains("mx-placeholder");)e=e.parentElement;if(e)return 1===w.filter((t=>e.classList.contains(t))).length?e:void 0}(null!==(s=null===(a=e.current)||void 0===a?void 0:a.parentElement)&&void 0!==s?s:null);if(!c)return;const l=c.classList.contains("mx-tabcontainer-pane")?(0,i.ensure)(c.parentElement):c,u=()=>{e.current&&t(function(e,t){return"auto"!==t.style.height&&1===b(e)}(c,l)?l:void 0)};l!==c?(x(o,l,{attributes:!0,attributeFilter:["style"]},u),x(o,c,{childList:!0},u)):x(o,c,{attributes:!0,attributeFilter:["style"],childList:!0},u),n.forEach((({node:e,options:t})=>{e.current&&x(o,e.current,t,u)})),r&&u()}(0,r.useEffect)((()=>()=>o.current.forEach((e=>e.disconnect()))),[]),(0,r.useEffect)((()=>{const t=(0,i.ensure)(e.current),r=(null===(c=null==(s=t)?void 0:s.parentElement)||void 0===c?void 0:c.classList.contains("mx-placeholder"))&&(null===(l=s.parentElement.parentElement)||void 0===l?void 0:l.classList.contains("mx-incubator"))?s.parentElement.parentElement:void 0;var s,c,l;if(r){const e=x(o,r,{childList:!0},(r=>{r.forEach((r=>{Array.from(r.removedNodes).includes(t.parentElement)&&(e.disconnect(),a(n,!0))}))}))}else a(n,!1)}),[])}function b(e){return Array.from(e.children).filter((e=>"SCRIPT"!==e.nodeName)).reduce(((e,t)=>e+(t.classList.contains("mx-placeholder")?b(t):1)),0)}const w=["mx-window-body","mx-page","mx-dataview-content","mx-scrollcontainer-wrapper","mx-tabcontainer-pane"];function x(e,t,n,r){const i=new MutationObserver(r);return i.observe(t,n),e.current.push(i),i}var _=n(8743);class S extends r.Component{constructor(){super(...arguments),this.onChangeHandler=this.onChange.bind(this),this.onFocusHandler=this.onFocus.bind(this),this.onBlurHandler=this.onBlur.bind(this)}getCaption(e){var t;return"available"!==this.props.value.status?"":void 0===e||""===e?null!==(t=this.props.emptyOptionCaption.value)&&void 0!==t?t:"":this.props.value.formatter.format(e)}onChange(e){this.props.value.setValue(e.target.value||void 0)}onFocus(){this.dispatchAction("onEnter")}onBlur(){this.dispatchAction("onLeave")}render(){return(0,o.jsxs)(r.Fragment,{children:["control"!==this.props.readOnlyStyle&&this.props.value.readOnly?this.renderAsText():this.renderAsInput(),(0,o.jsx)(s.b,{id:`${this.props.id}-error`,validation:this.props.value.validation})]})}renderAsInput(){var e,t;return(0,o.jsx)("select",{id:this.props.id,className:"form-control",value:null!==(e=this.props.value.value)&&void 0!==e?e:"",tabIndex:this.props.tabIndex,onChange:this.onChangeHandler,onFocus:this.onFocusHandler,onBlur:this.onBlurHandler,disabled:this.props.value.readOnly,...(0,c.k)(null===(t=this.props.ariaLabel)||void 0===t?void 0:t.value),...(0,c.$)(this.props.value.validation,this.props.id),"aria-required":this.props.ariaRequired,children:this.renderOptions()})}renderOptions(){if("available"!==this.props.value.status)return[];const e=this.props.value.universe;if(!e)return[];const t=this.props.value.value,n=t&&!e.includes(t)?[t]:[];return["",...e,...n].map((e=>this.renderOption(e)))}renderOption(e){return(0,o.jsx)("option",{value:e,children:this.getCaption(e)},e)}renderAsText(){return(0,o.jsx)("div",{className:"form-control-static",children:this.getCaption(this.props.value.value)||" "})}dispatchAction(e){const t=this.props[e];"available"===this.props.value.status&&t&&t.execute()}}var C=n(2749);function E(e){var t,n;return(0,o.jsxs)("button",{type:"button",disabled:!e.download.value,className:"btn mx-button mx-fileinput-download-button",id:`${e.id}-download`,"aria-labelledby":`${e.id}-label ${e.id}-download`,onClick:t=>function(e,t,n){var r,i;if(e.stopPropagation(),!t)return;const o=null===(i=null===(r=window.dojoConfig)||void 0===r?void 0:r.ui)||void 0===i?void 0:i.openUrlFn;if(n||o){const e=`${t.uri}&target=window`;o?o(e,t.name,"mendix_file"):window.open(e,"mendix_file")}else window.open(`${t.uri}&target=inline`,"_self")}(t,e.download.value,e.showInBrowser),children:[(0,C.translate)("mxui.widget.FileInput","download"),(0,o.jsx)("span",{className:"sr-only",children:null!==(n=null===(t=e.download.value)||void 0===t?void 0:t.name)&&void 0!==n?n:""})]})}var O=n(3893);function j(e){const t=(0,r.useRef)(null),n=(0,r.useRef)(null),a=function(e){if(!("cordova"in window)&&
66!function(){const e=window.navigator.userAgent,t=/iP(ad|hone)/i.test(e),n=/WebKit/i.test(e);return t&&n&&!/(CriOS|FxiOS|OPiOS|mercury)/i.test(e)}())return e;const t=new Set;for(const n of e.split(",")){const e=(0,O.getType)(n);if(!e)return"*/*";t.add(e)}return t.size?Array.from(t).join("cordova"in window?";":","):"*/*"}(e.extensions);return(0,r.useEffect)((()=>e.upload.setValidator((t=>function(e,t,n){if(e){const r=(0,i.ensure)(e.name.toLowerCase().split(".").pop());if(t&&void 0===t.split(",").find((e=>e.trim()===`.${r.trim()}`)))return(0,C.translate)("mxui.widget.FileInput","incorrect_extension",t);const o=Number(e.size)/1048576;if(o>n)return(0,C.translate)("mxui.widget.FileInput","file_too_large",o.toFixed(2),n.toString())}}(t,e.extensions,e.maxFileSize)))),[]),(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)("form",{className:"sr-only",encType:"multipart/form-data",method:"POST",onSubmit:()=>!1,children:(0,o.jsx)("input",{type:"file",disabled:e.upload.readOnly,tabIndex:-1,...a&&"*/*"!==a?{accept:a}:{},ref:t,onChange:t=>{var n;const r=null===(n=(0,i.ensure)(t.target).files)||void 0===n?void 0:n[0];e.upload.setValue(r)}})}),(0,o.jsx)("input",{type:"text",className:"form-control",readOnly:!0,value:e.upload.value?e.upload.value.name:(0,C.translate)("mxui.widget.FileInput","no_file_selected"),"aria-labelledby":`${e.id}-label`,onClick:()=>(0,i.ensure)(n.current).focus()}),(0,o.jsx)("button",{type:"button",disabled:e.upload.readOnly,className:"btn mx-button mx-fileinput-upload-button",id:`${e.id}-upload`,"aria-labelledby":`${e.id}-label ${e.id}-upload`,ref:n,onClick:()=>{t.current&&(t.current.value=""),(0,i.ensure)(t.current).click()},onKeyUp:t=>{"Delete"!==t.key&&"Backspace"!==t.key||(e.upload.setValue(void 0),t.stopPropagation())},children:(0,C.translate)("mxui.widget.FileInput","upload")})]})}const k=e=>void 0!==e.caption;var R=n(4046);function N(e){return(0,o.jsx)(o.Fragment,{children:e.caption.value&&e.caption.value.length>0?e.caption.value:" "})}function T(e,t,n){return{role:"button",tabIndex:0,"aria-expanded":!t,onClick:()=>n(!t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||n(!t)},"aria-controls":e}}var A=n(3935);function P(e){return e.endsWith("px")}const D=({src:e,alt:t,onClick:n})=>((0,r.useEffect)((()=>{const e=window.pageYOffset;return document.getElementById("content").style.display="none",()=>{document.getElementById("content").style.display="",setTimeout((()=>window.scrollTo(0,e)),0)}}),[]),(0,o.jsx)("div",{className:"mx-imagezoom",onClick:n,role:"button",tabIndex:0,children:(0,o.jsx)("div",{className:"mx-imagezoom-wrapper",children:(0,o.jsx)("img",{className:"mx-imagezoom-image",src:e,alt:t})})}));var I=n(9533),M=n(6199),L=n(6017);function $(e){var t,n;return(0,o.jsxs)("ul",{children:[0===(null===(t=e.listValue.items)||void 0===t?void 0:t.length)&&(0,o.jsx)("li",{className:"mx-listview-empty",children:(0,o.jsx)("label",{children:(0,C.translate)("mxui.widget.ListView","no_items")})}),(null!==(n=e.listValue.items)&&void 0!==n?n:[]).map(((t,n)=>{var r,i,a;const s=e.selection,c=null===(r=e.onClick)||void 0===r?void 0:r.get(t),l=c?e=>function(e,t){e.stopPropagation(),!t.canExecute||t.disabledDuringExecution&&t.isExecuting||t.execute()}(e,c):s?()=>function(e,t){var n;(null===(n=t.value)||void 0===n?void 0:n.includes(e.id))||t.setValue([e.id])}(t,s):void 0;return(0,o.jsx)("li",{className:f()(`mx-name-index-${n}`,{selected:null===(i=null==s?void 0:s.value)||void 0===i?void 0:i.includes(t.id)}),tabIndex:l?0:-1,role:l?"button":void 0,onClick:l,onKeyDown:l?e=>function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t(e))}(e,l):void 0,children:(0,o.jsx)("div",{className:"mx-dataview","data-focusindex":"0",children:(0,o.jsx)("div",{className:"mx-dataview-content",children:null===(a=e.itemTemplate)||void 0===a?void 0:a.get(t)})})},t.id)})),e.isLoadingMore&&(0,o.jsx)("li",{className:"mx-listview-loading",children:(0,o.jsx)("img",{src:(0,M.getStaticResourceUrl)(L)})})]})}var F=n(8128);function B(e){return V(e,"").flatMap(z)}function V(e,t){return e.map(((e,n)=>{const r=`${t}${n}`;return{stableId:r,caption:e.caption,icon:e.icon,altCaption:e.altCaption,action:e.action,items:e.items?V(e.items,`${r}-`):void 0}}))}function z(e){if(e.action&&!e.action.isAuthorized)return[];if(e.items){const t=e.items.flatMap(z);return t.length?[{...e,items:t}]:[]}return[e]}function U(e,t,n,r,i={}){var a,s,c,l,u;const d=null!==(s=null===(a=t.caption)||void 0===a?void 0:a.value)&&void 0!==s?s:"",h=null===(c=t.items)||void 0===c?void 0:c.length;return(0,o.jsxs)("a",{...i,className:f()(`mx-name-${e}-${t.stableId}`,i.className),href:"#",role:"menuitem",title:d,onClick:e=>{e.preventDefault(),e.stopPropagation(),r(t)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),r(t))},"aria-haspopup":!!h||void 0,"aria-expanded":h?n:void 0,children:[t.icon?(0,o.jsx)(F.Icon,{icon:t.icon.value,altText:(null===(l=t.caption)||void 0===l?void 0:l.value)||null===(u=t.altCaption)||void 0===u?void 0:u.value}):null," "+d,i.children]})}function W(){const[e,t]=q();return[e,(0,r.useCallback)((e=>{var n;(void 0===e.action||e.action.canExecute&&(!e.action.disabledDuringExecution||!e.action.isExecuting))&&(null===(n=e.action)||void 0===n||n.execute(),t(e.stableId))}),[])]}function q(){var e,t;const n=(0,R.useHistoryFrameId)(),[i,o]=(0,R.usePersistentState)("activeItem",(()=>({[n]:null}))),[a,s]=(0,r.useState)(null!==(e=i[n])&&void 0!==e?e:void 0),c=(0,r.useRef)(n);return c.current!==n&&(n in i?s(null!==(t=i[n])&&void 0!==t?t:void 0):o({...i,[n]:null!=a?a:null}),c.current=n),[a,s]}var H=n(8048);function G(e,t,n){(0,r.useLayoutEffect)((()=>{const r=new H.RovingTabIndex(t,(0,i.ensure)(e.current),n);return()=>r.destroy()}),[e,t,n])}var Z=n(2003);class K extends r.Component{constructor(){super(...arguments),this.onChangeHandler=this.onChange.bind(this),this.onFocusHandler=this.onFocus.bind(this),this.onBlurHandler=this.onBlur.bind(this)}getCaption(e){return this.props.value.formatter.format(e)}onChange(e){const t=this.props.value.universe.find((t=>t.toString()===e.target.value));this.props.value.setValue(t)}onFocus(){this.dispatchAction("onEnter")}onBlur(){this.dispatchAction("onLeave")}render(){return(0,o.jsxs)(r.Fragment,{children:["control"!==this.props.readOnlyStyle&&this.props.value.readOnly?this.renderAsText():this.renderAsInput(),(0,o.jsx)(s.b,{id:`${this.props.id}-error`,validation:this.props.value.validation})]})}renderAsInput(){var e;return(0,o.jsx)(Z.s,{onEnter:this.onFocusHandler,onLeave:this.onBlurHandler,children:(0,o.jsx)("div",{id:this.props.id,className:"mx-radiogroup",...this.props.ariaLabel?{}:{"aria-labelledby":this.props.id+"-label"},role:"radiogroup",...(0,c.k)(null===(e=this.props.ariaLabel)||void 0===e?void 0:e.value),...(0,c.$)(this.props.value.validation,this.props.id),"aria-required":this.props.ariaRequired,children:this.renderRadioButtons()})})}renderRadioButtons(){const e=this.props.value.universe;if(!e)return[];const t=this.props.value.value,n=void 0===t||e.includes(t)?[]:[t];return[...e,...n].map(((e,t)=>this.renderRadioButton(e,t)))}renderRadioButton(e,t){const{id:n,tabIndex:r,value:i}=this.props,{value:a,readOnly:s}=i,c=`${n}_${t}`,l=void 0===a&&0===t||a===e?r:-1;return(0,o.jsxs)("div",{className:"radio",children:[(0,o.jsx)("input",{type:"radio",id:c,name:n,value:e.toString(),checked:a===e,onChange:this.onChangeHandler,disabled:s,tabIndex:l}),(0,o.jsx)("label",{htmlFor:c,children:this.getCaption(e)})]},e.toString())}renderAsText(){return(0,o.jsx)("div",{className:"form-control-static",children:this.props.value.displayValue||" "})}dispatchAction(e){const t=this.props[e];"available"===this.props.value.status&&t&&t.execute()}}var X=n(1636),Y=n(2188),Q=n(8135),J=n(7613);function ee({renderKey:e,children:t}){const[n,i]=(0,r.useState)(e);return(0,r.useEffect)((()=>i(e)),[e]),e!==n?null:(0,o.jsx)(r.Fragment,{children:t})}function te(e){return!e.isVisible||"loading"===e.isVisible.status&&void 0===e.isVisible.value||Boolean(e.isVisible.value)}function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ne.apply(this,arguments)}const re=r.useLayoutEffect;var ie=function(e,t){"function"!=typeof e?e.current=t:e(t)};var oe={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},ae=function(e){Object.keys(oe).forEach((function(t){e.style.setProperty(t,oe[t],"important")}))},se=null,ce=function(){},le=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],ue=!!document.documentElement.currentStyle,de=function(e,t){var n=e.cacheMeasurements,i=e.maxRows,o=e.minRows,a=e.onChange,s=void 0===a?ce:a,c=e.onHeightChange,l=void 0===c?ce:c,u=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),d=void 0!==u.value,f=(0,r.useRef)(null),h=function(e,t){var n=(0,r.useRef)();return(0,r.useCallback)((function(r){e.current=r,n.current&&ie(n.current,null),n.current=t,t&&ie(t,r)}),[t])}(f,t),p=(0,r.useRef)(0),g=(0,r.useRef)(),m=function(){var e=f.current,t=n&&g.current?g.current:function(e){var t=window.getComputedStyle(e);
66if(null===t)return null;var n,r=(n=t,le.reduce((function(e,t){return e[t]=n[t],e}),{})),i=r.boxSizing;return""===i?null:(ue&&"border-box"===i&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){g.current=t;var r=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),se||((se=document.createElement("textarea")).setAttribute("tabindex","-1"),se.setAttribute("aria-hidden","true"),ae(se)),null===se.parentNode&&document.body.appendChild(se);var i=e.paddingSize,o=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;se.style[t]=a[t]})),ae(se),se.value=t;var c=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(se,e);se.value="x";var l=se.scrollHeight-i,u=l*n;"border-box"===s&&(u=u+i+o),c=Math.max(u,c);var d=l*r;return"border-box"===s&&(d=d+i+o),[c=Math.min(d,c),l]}(t,e.value||e.placeholder||"x",o,i),a=r[0],s=r[1];p.current!==a&&(p.current=a,e.style.setProperty("height",a+"px","important"),l(a,{rowHeight:s}))}};return(0,r.useLayoutEffect)(m),function(e){var t,n,i=(t=e,n=r.useRef(t),re((function(){n.current=t})),n);(0,r.useLayoutEffect)((function(){var e=function(e){i.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])}(m),(0,r.createElement)("textarea",ne({},u,{onChange:function(e){d||m(),s(e)},ref:h}))};const fe=(0,r.forwardRef)(de);function he(e,t){let n;return(...r)=>{clearTimeout(n),n=window.setTimeout((function(){n=void 0,e(...r)}),t)}}class pe extends r.Component{constructor(){super(...arguments),this.state={},this.onChangeHandler=this.onChange.bind(this),this.onFocusHandler=this.onFocus.bind(this),this.onBlurHandler=this.onBlur.bind(this),this.onChangeBehaviourHandler=this.createOnChangeBehaviour()}componentDidMount(){const e=this.props.maxLength;void 0!==e&&this.props.inputValue.setValidator((t=>void 0!==t&&t.length>e?this.props.textTooLongMessage.value:void 0))}componentDidUpdate(e){this.props.inputValue.displayValue!==e.inputValue.displayValue&&this.setState({editedValue:void 0}),"available"!==e.inputValue.status&&"available"===this.props.inputValue.status&&this.props.autoGrow&&setTimeout((()=>window.dispatchEvent(new Event("resize"))),0)}createOnChangeBehaviour(){return this.props.submitWhileEditing?he(this.submitValue.bind(this),(0,i.ensure)(this.props.submitDelay)):()=>{}}getCurrentValue(){return void 0!==this.state.editedValue?this.state.editedValue:this.props.inputValue.displayValue}submitValue(){const e=this.props.inputValue,t=this.getCurrentValue();t!==e.displayValue&&e.setValue(t),this.setState({editedValue:void 0})}onChange(e){this.setState({editedValue:e.target.value},(()=>{!this.props.inputValue.readOnly&&e.target instanceof HTMLTextAreaElement&&document.activeElement!==e.target&&this.submitValue()})),this.onChangeBehaviourHandler()}onFocus(){this.dispatchAction("onEnter")}onBlur(){this.submitValue(),this.dispatchAction("onLeave")}render(){return(0,o.jsxs)(r.Fragment,{children:[this.props.inputValue.readOnly&&"control"!==this.props.readOnlyStyle?this.renderAsText():this.renderAsInput(),this.renderCounterMessage(),(0,o.jsx)(s.b,{id:`${this.props.id}-error`,validation:this.props.inputValue.validation})]})}renderCounterMessage(){return!this.props.inputValue.readOnly&&this.props.maxLength&&this.props.counterMessage&&this.props.counterMessage.value?(0,o.jsx)("label",{className:"mx-textarea-counter",children:this.props.counterMessage.value.replace("{1}",this.getCurrentValue().length.toString()).replace("{2}",this.props.maxLength.toString())}):null}renderAsInput(){var e;return(0,o.jsx)(fe,{id:this.props.id,className:f()("form-control","mx-textarea-input",{"mx-textarea-noresize":!this.props.autoGrow}),value:this.getCurrentValue(),tabIndex:this.props.tabIndex,maxLength:this.props.maxLength,minRows:this.props.autoGrow?2:this.props.numberOfLines,maxRows:this.props.autoGrow?void 0:this.props.numberOfLines,placeholder:this.props.placeholder.value&&this.props.placeholder.value.length>0?this.props.placeholder.value:void 0,onChange:this.onChangeHandler,onFocus:this.onFocusHandler,onBlur:this.onBlurHandler,disabled:this.props.inputValue.readOnly,...(0,c.k)(null===(e=this.props.ariaLabel)||void 0===e?void 0:e.value),...(0,c.$)(this.props.inputValue.validation,this.props.id),"aria-required":this.props.ariaRequired})}renderAsText(){return(0,o.jsx)("div",{className:"form-control-static",children:this.getCurrentValue()||" "})}dispatchAction(e){const t=this.props[e];"available"===this.props.inputValue.status&&t&&t.execute()}}var ge=n(4063),me=n.n(ge),ve=n(45),ye=n(6077),be=n(1749),we=n.n(be),xe=n(5964),_e=n.n(xe),Se=n(9340),Ce=n.n(Se),Ee=n(55),Oe=n.n(Ee),je=n(8829),ke=n.n(je);class Re extends r.Component{constructor(){super(...arguments),this.state={focused:!1},this.mask=Re.createInputMask(this.props.mask),this.onFocusHandler=this.onFocus.bind(this),this.onBlurHandler=this.onBlur.bind(this),this.onChangeHandler=this.onChange.bind(this),this.onKeyDown
66Handler=this.onKeyDown.bind(this),this.pipeHandler=this.pipe.bind(this)}pipe(e,{placeholder:t}){return this.filteredValue=e===t?"":e,this.state.focused?e:this.filteredValue}onFocus(e){setTimeout((()=>{this.setState({focused:!0})}),0),void 0!==this.props.onFocus&&this.props.onFocus(e)}onBlur(e){this.setState({focused:!1}),void 0!==this.props.onBlur&&this.props.onBlur(e)}onChange(e){this.dispatchOnChangeEvent(e,this.filteredValue)}onKeyDown(e){var t,n,r,i,o;null===(n=(t=this.props).onKeyDown)||void 0===n||n.call(t,e);const a=e.target,s=Math.abs((null!==(r=a.selectionEnd)&&void 0!==r?r:0)-(null!==(i=a.selectionStart)&&void 0!==i?i:0));("Delete"===e.key||"Backspace"===e.key)&&s>0&&(null===(o=this.filteredValue)||void 0===o?void 0:o.length)===s&&this.dispatchOnChangeEvent(e,"")}dispatchOnChangeEvent(e,t){var n,r;const i={...e.target,value:t},o={...e,target:i};null===(r=(n=this.props).onChange)||void 0===r||r.call(n,o)}render(){return void 0!==this.mask?(0,r.createElement)(we(),{...this.props,maxLength:void 0,onChange:this.onChangeHandler,onKeyDown:this.onKeyDownHandler,onFocus:this.onFocusHandler,onBlur:this.onBlurHandler,mask:this.mask,pipe:this.pipeHandler,showMask:this.state.focused}):(0,r.createElement)("input",this.props)}static createInputMask(e){if(""===e)return;const t={9:Oe().toRegExp(),Z:_e().toRegExp(),U:ke().toRegExp(),L:Ce().toRegExp(),"*":_e().clone().add(Oe()).toRegExp()},n=e.match(/[^\\]|\\./g);return n?n.map((e=>{var n;return e[1]?e[1]:null!==(n=t[e])&&void 0!==n?n:e})):void 0}}class Ne extends r.Component{constructor(){super(...arguments),this.state={},this.onChangeHandler=this.onChange.bind(this),this.onKeyDownHandler=this.onKeyDown.bind(this),this.onKeyUpHandler=this.onKeyUp.bind(this),this.onFocusHandler=this.onFocus.bind(this),this.onBlurHandler=this.onBlur.bind(this),this.onSelectHandler=this.onSelect.bind(this),this.onChangeBehaviourHandler=this.createOnChangeBehaviour(),this.hadEnterKeyDown=!1}componentDidUpdate(e,t){if(!t.editedValue)return;const{value:n,displayValue:r}=this.props.inputValue,{value:i,displayValue:o}=e.inputValue;!this.props.inputValue.readOnly&&me()(n,i)&&r===o||this.setState({editedValue:void 0})}createOnChangeBehaviour(){return this.props.submitWhileEditing?he(this.submitValue.bind(this),(0,i.ensure)(this.props.submitDelay)):()=>{}}onChange(e){this.setDisplayValue(e.target.value,(()=>{!this.props.inputValue.readOnly&&e.target instanceof HTMLInputElement&&document.activeElement!==e.target&&this.submitValue()})),this.onChangeBehaviourHandler()}setDisplayValue(e,t){this.setState({editedValue:{displayValue:e,internalValue:this.props.inputValue.formatter.parse(e)}},t)}onKeyDown(e){"Enter"===e.key&&(this.hadEnterKeyDown=!0),this.isNumberTextBox()&&110===e.keyCode&&this.convertNumpadDecimalToLocaleDecimalSeparator(e)}isNumberTextBox(){return this.props.inputValue.formatter.type===ve.FormatterType.Number}convertNumpadDecimalToLocaleDecimalSeparator(e){const t=e.target,n=t.value,r=t.selectionStart,i=t.selectionEnd,o=n.substring(0,Math.min(r,i))+(0,ye.Y)(),a=n.substring(Math.max(r,i));t.value=o+a,t.selectionStart=t.selectionEnd=o.length,e.preventDefault(),this.setDisplayValue(t.value)}onKeyUp(e){"Enter"===e.key&&this.hadEnterKeyDown&&(this.submitValue(),this.dispatchAction("onEnterKeyPress"),this.hadEnterKeyDown=!1)}onFocus(){this.setState({afterFocus:!0}),this.dispatchAction("onEnter")}onBlur(){this.submitValue(),this.dispatchAction("onLeave"),this.props.inputValue.setFormatter(void 0)}submitValue(){const e=this.state.editedValue;if(e){if(e.internalValue.valid){const t=e.internalValue.value;void 0===this.props.inputValue.validation&&this.isSameValue(t,this.props.inputValue.value)||this.props.inputValue.setValue(t)}else e.displayValue!==this.props.inputValue.displayValue&&this.props.inputValue.setTextValue(e.displayValue);this.setState({editedValue:void 0})}}isSameValue(e,t){const n=this.props.inputValue.formatter;return n.format(e)===n.format(t)}onSelect(e){if(this.state.afterFocus){const t=e.target,n=this.props.inputValue.displayValue,r=t.selectionStart,i=t.selectionEnd,o=this.props.inputValue.formatter;o.type===ve.FormatterType.Number&&this.props.inputValue.setFormatter(o.withConfig({...o.config,groupDigits:!1})),this.setState({afterFocus:void 0},(()=>{const e=this.props.inputValue.displayValue;
66e!==n&&(t.selectionStart=Te(n,r,e),t.selectionEnd=Te(n,i,e))}))}}render(){return(0,o.jsxs)(r.Fragment,{children:[this.props.inputValue.readOnly&&"control"!==this.props.readOnlyStyle?this.renderAsText():this.renderAsInput(),(0,o.jsx)(s.b,{id:`${this.props.id}-error`,validation:this.props.inputValue.validation})]})}renderAsInput(){var e,t;return(0,o.jsx)(Re,{id:this.props.id,className:"form-control",type:this.props.isPassword?"password":"text",value:(null!==(e=this.state.editedValue)&&void 0!==e?e:this.props.inputValue).displayValue,tabIndex:this.props.tabIndex,maxLength:this.props.maxLength,placeholder:this.props.placeholder.value&&this.props.placeholder.value.length>0?this.props.placeholder.value:void 0,onChange:this.onChangeHandler,onFocus:this.onFocusHandler,onBlur:this.onBlurHandler,onKeyDown:this.onKeyDownHandler,onKeyUp:this.onKeyUpHandler,onSelect:this.onSelectHandler,disabled:this.props.inputValue.readOnly,mask:this.props.mask,autoComplete:this.props.autocomplete,...(0,c.k)(null===(t=this.props.ariaLabel)||void 0===t?void 0:t.value),...(0,c.$)(this.props.inputValue.validation,this.props.id),"aria-required":this.props.ariaRequired})}renderAsText(){return(0,o.jsx)("div",{className:"form-control-static",children:(this.props.isPassword?"":this.props.inputValue.displayValue)||" "})}dispatchAction(e){const t=this.props[e];"available"===this.props.inputValue.status&&t&&t.execute()}}function Te(e,t,n){if(n===e)return Math.min(n.length,t);let r=0;const i=Math.min(e.length,t);for(let t=0;t<i&&r<n.length;t++)e[t]===n[r]&&r++;return r}const Ae={ActionButton:a.ActionButton,CheckBox:l,ConditionalVisibilityWrapper:e=>e.visible.value?e.contents:null,Container:function(e){const t=e.renderMode;return(0,o.jsx)(t,{className:e.class,style:e.style,...u(e),...e.ariaHidden?{"aria-hidden":!0}:{},children:e.content})},DataView:e=>{const t=(0,r.useRef)(null),n=(0,r.useRef)(null),a=(0,r.useRef)(null);return y(t,(0,r.useCallback)((function(r){const o=(0,i.ensure)(a.current);if(!r)return o.style.height="auto",void(o.style.overflow="");const s=v(r),c=v(t.current),l=s.contentBox.height-(c.marginBox.height-c.contentBox.height)-(e.footer?v(n.current).marginBox.height:0);o.style.height=`${l}px`,o.style.overflow="auto"}),[t,n,a]),[{node:n,options:{childList:!0,subtree:!0,characterData:!0}}]),(0,o.jsxs)("div",{className:f()("mx-dataview",e.class),style:e.style,"data-focusindex":e.tabIndex,ref:t,children:[(0,o.jsx)("div",{className:"mx-dataview-content",ref:a,children:e.body}),e.emptyMessage.value&&"unavailable"===e.object.status&&(0,o.jsx)("div",{className:"mx-dataview-message",children:(0,o.jsx)("div",{children:(0,o.jsx)("p",{children:e.emptyMessage.value})})}),e.footer&&(0,o.jsx)("div",{className:"mx-dataview-controls",style:e.hideFooter?{display:"none"}:{},ref:n,children:e.footer})]})},DatePicker:_.M,Div:e=>(0,o.jsx)("div",{className:e.class,style:e.style,children:e.content}),EnumSelect:S,FileManager:function({class:e,style:t,tabIndex:n,...r}){return(0,o.jsxs)("div",{className:f()("mx-compound-control",e),"data-focusindex":null!=n?n:0,style:t,children:["upload"in r?(0,o.jsx)(j,{...r}):null,"download"in r?(0,o.jsx)(E,{...r}):null,"upload"in r?(0,o.jsx)(s.b,{id:`${r.id}-error`,validation:r.upload.validation}):null]})},FormGroup:e=>(0,o.jsxs)("div",{className:f()(e.class,"form-group",{"has-error":e.hasError.value,"no-columns":"vertical"===e.orientation}),style:e.style,children:[k(e)&&(0,o.jsx)("label",{className:f()("control-label",{[`col-sm-${e.width}`]:"horizontal"===e.orientation}),htmlFor:e.labelFor,id:e.labelFor&&e.labelFor+"-label",children:e.caption.value}),"horizontal"===e.orientation?(0,o.jsx)("div",{className:f()("col-sm-"+(12-e.width),{[`col-sm-offset-${e.width}`]:!k(e)}),children:e.control}):e.control]}),Fragment:e=>(0,o.jsx)(r.Fragment,{children:e.content}),GroupBox:e=>{var t;const n=e.renderMode,r=`${e.id}_body`,i=`${e.id}_header`,a="no"!==e.collapsible,[s,c]=(0,R.usePersistentState)("collapsed","yes"===e.collapsible);return(0,o.jsxs)("div",{className:f()("mx-groupbox",{"mx-groupbox-collapsible":a,collapsed:s},e.class),"data-focusindex":null!==(t=e.tabIndex)&&void 0!==t?t:0,style:e.style,children:[e.header&&(0,o.jsxs)(n,{id:i,className:"mx-groupbox-header",...a?T(r,s,c):{},children:[a&&(0,o.jsx)("i",{className:f()("glyphicon mx-groupbox-collapse-icon",{"glyphicon-minus":!s,"glyphicon-plus":s})}),(0,o.jsx)(N,{caption:e.header})]}),(0,o.jsx)("div",{id:r,className:"mx-groupbox-body",role:"region","aria-labelledby":i,...e.header&&a?{"data-focusindex":"0"}:void 0,children:e.content})]})},Image:e=>{var t,n,i,a,s,c,l;const[u,d]=(0,r.useState)(!1),h=null!==(t=e.source.value)&&void 0!==t?t:null===(n=e.placeholder)||void 0===n?void 0:n.value;if(!h)return(0,o.jsx)("img",{style:{display:"none"}});const p=(null===(i=e.alternativeText)||void 0===i?void 0:i.value)||e.onClick?{tabIndex:e.tabIndex?e.tabIndex:0}:{},g={...(null===(a=e.alternativeText)||void 0===a?void 0:a.value)?{alt:e.alternativeText.value}:{role:"presentation"},...e.onClick||e.onClickEnlarge?{role:"button"}:{},...p},m=e.width&&e.height&&P(e.width)&&P(e.height),v=e.onClickEnlarge?()=>d(!0):(null===(s=e.onClick)||void 0===s?void 0:s.canExecute)?()=>{var t;return(null===(t=e.onClick)||void 0===t?void 0:t.canExecute)&&e.onClick.execute()}:void 0;return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)("img",{className:f()("mx-image",e.class,{"img-responsive":e.responsive}),src:h.uri,onClick:v,...g,style:{...e.style,cursor:v?"pointer":void 0,maxHeight:m?e.height:void 0,maxWidth:m?e.width:void 0,height:m?void 0:e.he
66ight,width:m?void 0:e.width}}),u?A.createPortal((0,o.jsx)(D,{src:h.uri,alt:null!==(l=null===(c=e.alternativeText)||void 0===c?void 0:c.value)&&void 0!==l?l:void 0,onClick:()=>d(!1)}),document.body):null]})},InlineText:N,Label:e=>(0,o.jsx)("label",{id:e.id,className:e.class,style:e.style,children:(0,o.jsx)(N,{caption:e.caption})}),ListView:function(e){var t,n;(0,i.useIsFirstRender)()&&e.listValue.limit===Number.POSITIVE_INFINITY&&0!==e.pageSize&&e.listValue.setLimit(e.pageSize);const[a,s]=(0,r.useState)(!1),c=(0,r.useRef)();if(!a||"available"===e.listValue.status&&e.listValue.items===c.current||s(!1),"available"===e.listValue.status&&e.listValue.items&&e.selection){const r=null===(t=e.selection.value)||void 0===t?void 0:t[0],i=null===(n=e.listValue.items[0])||void 0===n?void 0:n.id;r!==i&&e.listValue.items.every((e=>e.id!==r))&&e.selection.setValue(i?[i]:void 0)}const[l,u]=(0,r.useState)(p);(0,r.useEffect)((()=>u(p())),[e.listValue.filter]),(0,r.useEffect)((function(){const t=l.trim();t!==p()&&(clearTimeout(d.current),d.current=window.setTimeout((()=>{const n=""!==t?e.searchAttributes.map((e=>(0,I.contains)((0,I.attribute)(e.id),(0,I.literal)(t)))):[],r=0===n.length?void 0:1===n.length?n[0]:(0,I.or)(...n);e.listValue.setFilter(r)}),500))}),[l]);const d=(0,r.useRef)(),h={listValue:e.listValue,itemTemplate:e.itemTemplate,selection:e.selection,onClick:e.onClick,isLoadingMore:a};return(0,o.jsxs)("div",{className:f()("mx-listview",e.class,{"mx-listview-clickable":null!=e.onClick}),style:e.style,children:[e.searchAttributes&&(0,o.jsxs)("div",{className:"mx-listview-searchbar",children:[(0,o.jsx)("input",{type:"text",placeholder:(0,C.translate)("mxui.widget.ListView","search"),className:"form-control",value:l,onChange:e=>u(e.target.value),"aria-label":(0,C.translate)("mxui.widget.ListView","search")}),(0,o.jsx)("button",{className:"btn mx-button",onClick:()=>{""!==l?u(""):(e.listValue.reload(),0!==e.pageSize&&e.listValue.setLimit(e.pageSize))},"aria-label":(0,C.translate)("mxui.widget.ListView","refresh"),title:(0,C.translate)("mxui.widget.ListView","refresh"),children:(0,o.jsx)("span",{className:f()("glyphicon",l?"glyphicon-remove":"glyphicon-refresh")})})]}),(0,r.useMemo)((()=>(0,o.jsx)($,{...h})),Object.values(h)),e.listValue.hasMoreItems&&!a&&(0,o.jsxs)("button",{type:"button",className:"btn mx-button mx-listview-loadMore",onClick:function(t){t.stopPropagation(),e.listValue.setLimit(e.listValue.limit+e.pageSize),s(!0),c.current=e.listValue.items},children:[(0,o.jsx)("span",{className:"glyphicon glyphicon-repeat"})," ",(0,C.translate)("mxui.widget.ListView","load_more")]})]});function p(){const t=e.listValue.filter;if(void 0!==t){const e="or"===t.name?t.args[0]:t;if("contains"===e.name&&"string"===e.arg2.valueType)return e.arg2.value}return""}}
66,MenuBar:function(e){const[t,n]=W(),[i,a]=(0,r.useState)();function s(e){var t;(null===(t=e.items)||void 0===t?void 0:t.length)?a((t=>t!==e.stableId?e.stableId:void 0)):(n(e),a(void 0))}return(0,r.useEffect)((()=>{const e=()=>a(void 0);return document.addEventListener("click",e),()=>document.removeEventListener("click",e)}),[]),(0,o.jsx)("div",{className:f()("navbar","navbar-default","mx-navbar",e.class),style:e.style,tabIndex:-1,children:(0,o.jsx)("ul",{className:"nav navbar-nav",role:"menu",children:B(e.menu).map(((n,r)=>{var a;const c=Boolean(null===(a=n.items)||void 0===a?void 0:a.length);return(0,o.jsxs)("li",{className:f()("mx-navbar-item",{dropdown:c,active:t===n.stableId,open:i===n.stableId}),role:"none",children:[U(e.name,n,i===n.stableId,s,c?{children:(0,o.jsx)("b",{className:"caret"})}:{}),c&&(0,o.jsx)("ul",{className:"dropdown-menu mx-navbar-submenu",role:"menu",children:n.items.map(((n,r)=>(0,o.jsx)("li",{className:f()("mx-navbar-subitem",{active:t===n.stableId}),role:"none",children:U(e.name,n,!1,s)},r)))})]},r)}))})})},NavigationList:function(e){const[t,n]=q(),i=(0,r.useRef)(null);return G(i,H.NavigationKeys.UpDown,(0,r.useCallback)((e=>e.querySelectorAll(":scope > li")),[])),(0,o.jsx)("ul",{className:f()("mx-list","mx-navigationlist",e.class),style:e.style,ref:i,children:(a=e.items,a.map(((e,t)=>({...e,stableId:t.toString()}))).filter((e=>{var t;return!1!==(null===(t=e.visible)||void 0===t?void 0:t.value)}))).map(((e,n)=>(0,o.jsx)("li",{className:f()(e.class,"mx-navigationlist-item",{active:e.stableId===t}),style:e.style,onClick:t=>s(t,e),onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||s(t,e)},role:void 0!==e.action?"button":void 0,children:e.content},n)))});var a;function s(e,t){var r;e.preventDefault(),e.stopPropagation(),n(t.stableId),!(null===(r=t.action)||void 0===r?void 0:r.canExecute)||t.action.disabledDuringExecution&&t.action.isExecuting||t.action.execute()}}
66,NavigationTree:function(e){const[t,n]=W(),[r,i]=(0,R.usePersistentState)("expandedItems",[]);function a(e){var t;(null===(t=e.items)||void 0===t?void 0:t.length)?i(r.includes(e.stableId)?r.filter((t=>t!==e.stableId)):r.concat([e.stableId])):n(e)}return(0,o.jsx)("div",{className:f()("mx-navigationtree",e.class),style:e.style,tabIndex:-1,children:(0,o.jsx)("div",{className:"navbar-inner",children:function n(i){return(0,o.jsx)("ul",{role:"menu",children:i.map(((i,s)=>{var c;const l=Boolean(null===(c=i.items)||void 0===c?void 0:c.length);return(0,o.jsxs)("li",{className:f()({"mx-navigationtree-has-items":l,"mx-navigationtree-collapsed":l&&!r.includes(i.stableId)}),role:"none",children:[U(e.name,i,r.includes(i.stableId),a,{className:f()({active:t===i.stableId,dropbox:l}),children:l?(0,o.jsx)("span",{className:"caret"}):null}),l&&n(i.items)]},s)}))})}(B(e.menu))})})},RadioButtonGroup:K,ReferenceInput:e=>{var t,n;const[a,c]=(0,r.useState)(!1),l=e.gotoAction&&e.valueObject.value?e.gotoAction.get(e.valueObject.value):void 0,u=e.valueObject.value?e.attribute.get(e.valueObject.value).displayValue:"";return(0,o.jsxs)("div",{className:"mx-compound-control","data-focusindex":null!==(t=e.tabIndex)&&void 0!==t?t:0,children:[e.value.readOnly&&"text"===e.readOnlyStyle?(0,o.jsx)("div",{className:"form-control-static",children:u||" "}):(0,o.jsx)("input",{type:"text",disabled:e.value.readOnly,value:u,id:e.id,"aria-label":null===(n=e.ariaLabel)||void 0===n?void 0:n.value,className:"form-control",readOnly:!0,onKeyDown:e.value.readOnly?void 0:d}),e.gotoAction&&(0,o.jsx)("button",{type:"button",disabled:!(null==l?void 0:l.canExecute),className:"btn mx-button mx-referenceselector-goto-button",onClick:()=>null==l?void 0:l.execute(),children:(0,o.jsx)("span",{className:"glyphicon glyphicon-eye-open"})}),!e.value.readOnly&&(0,o.jsx)("button",{type:"button",disabled:a,className:"btn mx-button mx-referenceselector-select-button",onClick:function(){var t;if(a)return;c(!0);const n=(0,i.ensure)(e.selectPage);(0,X.openSelectPage)({selectionMode:"single",initialSelection:e.value.value?[e.value.value]:[],datasourceConfig:{constraint:n.xpathConstraint,offlineConstraints:n.offlineConstraints},pageSettings:n.config,currentObjectId:(0,i.ensure)(null===(t=e.valueScope.value)||void 0===t?void 0:t.id),constrainedBy:n.constrainedBy,onSelectionChange:t=>e.value.setValue(t[0]),onFinished:()=>{c(!1)}})},onKeyDown:d,children:(0,o.jsx)("span",{className:"glyphicon glyphicon-share-alt"})}),(0,o.jsx)(s.b,{id:`${e.id}-error`,validation:e.value.validation})]});function d(t){"Delete"!==t.key||t.altKey||t.shiftKey||(t.stopPropagation(),mx.ui.confirmation({content:(0,C.translate)("mxui.widget.ReferenceSelector","clean_confirmation"),handler:()=>e.value.setValue(void 0),onCancel:()=>{}}))}},ReferenceSelector:e=>{var t,n,a,c,l,u;const[d,f,h]=function(e,t){const n=(0,r.useRef)(0);"available"===e.status&&(n.current=e.readOnly?0:void 0),t.limit!==n.current&&t.setLimit(n.current);const o=void 0===t.items||0===t.limit,a=o?e.value?[e.value]:[]:t.items,s="loading"===e.status||o&&void 0===n.current;return(0,i.tuple)(a,e.value,s)}(e.value,e.valueOptions),p=e.gotoAction&&f?e.gotoAction.get(f):void 0;return(0,o.jsxs)("div",{className:"mx-compound-control","data-focusindex":null!==(t=e.tabIndex)&&void 0!==t?t:0,children:["text"===e.readOnlyStyle&&e.value.readOnly?(0,o.jsx)("div",{className:"form-control-static",children:(f?e.attribute.get(f).displayValue:"")||" "}):(0,o.jsxs)("select",{disabled:e.value.readOnly,"aria-disabled":e.value.readOnly||h||void 0,value:null!==(a=null===(n=e.value.value)||void 0===n?void 0:n.id)&&void 0!==a?a:"",className:"form-control",id:e.id,"aria-label":null===(c=e.ariaLabel)||void 0===c?void 0:c.value,onChange:t=>{e.value.setValue(d.find((e=>e.id===t.target.value)))},children:[(0,o.jsx)("option",{value:"",children:null!==(u=null===(l=e.emptyCaption)||void 0===l?void 0:l.value)&&void 0!==u?u:""},"empty"),d.map((t=>(0,o.jsx)("option",{value:t.id,children:e.attribute.get(t).displayValue},t.id))),h&&(0,o.jsx)("option",{disabled:!0,value:"...",children:"..."},"...")]}),e.gotoAction&&(0,o.jsx)("button",{type:"button",disabled:!(null==p?void 0:p.canExecute),className:"btn mx-button mx-referenceselector-goto-button",onClick:()=>(0,i.ensure)(p).execute(),children:(0,o.jsx)("span",{className:"glyphicon glyphicon-eye-open"})}),(0,o.jsx)(s.b,{id:`${e.id}-error`,validation:e.value.validation})]})},ReferenceSetInput:e=>{var t,n,a;const[c,l]=(0,r.useState)(!1),u=(null!==(t=e.valueItems.items)&&void 0!==t?t:[]).map(e.valueAttribute.get).map((e=>e.displayValue)).join(", ");return(0,o.jsxs)("div",{className:"mx-compound-control","data-focusindex":null!==(n=e.tabIndex)&&void 0!==n?n:0,children:[e.value.readOnly&&"text"===e.readOnlyStyle?(0,o.jsx)("div",{className:"form-control-static",children:u||" "}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("input",{type:"text",disabled:e.value.readOnly,value:u,id:e.id,"aria-label":null===(a=e.ariaLabel)||void 0===a?void 0:a.value,className:"form-control",readOnly:!0,onClick:d}),(0,o.jsx)("button",{type:"button",disabled:e.value.readOnly||c,className:"btn mx-button mx-referencesetselector-select-button",onClick:d,children:(0,o.jsx)("span",{className:"glyphicon glyphicon-share-alt"})})]}),(0,o.jsx)(s.b,{id:`${e.id}-error`,validation:e.value.validation})]});function d(){var t,n;if(c)return;l(!0);const r=(0,i.ensure)(e.selectPage);(0,X.openSelectPage)({selectionMode:"multi",initialSelection:null!==(t=e.value.value)&&void 0!==t?t:[],datasourceConfig:{constraint:r.xpathConstraint,offlineConstraints:r.offlineConstraints},pageSettings:r.config,currentObjectId:(0,i.ensure)(null===(n=e.valueScope.value)||void 0===n?void 0:n.id),constrainedBy:r.constrainedBy,onSelectionChange:t=>e.value.setValue(t),onFinished:()=>{l(!1)}})}}
66,SimpleMenuBar:function(e){const[t,n]=W();return(0,o.jsx)("div",{className:f()("mx-menubar",`mx-menubar-${e.orientation}`,e.class),style:e.style,children:(0,o.jsx)("ul",{className:f()("nav nav-pills mx-menubar-list",{"nav-stacked":"vertical"===e.orientation}),role:"menu",children:B(e.menu).map(((r,i)=>(0,o.jsx)("li",{className:f()(`mx-menubar-item mx-name-index-${i}`,{active:t===r.stableId}),role:"none",children:U(e.name,r,!1,n)},i)))})})},TabContainer:function(e){const t=(0,r.useState)((()=>(0,J.newId)()))[0],[n,a,s]=function(e,t){const[n,o]=(0,R.usePersistentState)("selectedTab",t);let a=n;for(;!te((0,i.ensure)(e[a]))&&(a=(a+1)%e.length,a!==n););a!==n&&o(a);const s=(0,r.useRef)(a),c=s.current!==a;s.current=a;const l=(0,i.useForceUpdate)();return(0,i.tuple)(a,c,(function(e){e===a?(s.current=-1,l()):o(e)}))}(e.tabs,e.defaultTab),c=function(e,t,n){const o=(0,r.useRef)(e.map((e=>!e.isDelayed&&te(e)?{key:0}:"hidden"))),a=(0,i.ensure)(o.current[t]);return"hidden"===a?o.current[t]={key:0}:n&&(0,i.ensure)(e[t]).refreshOnShow&&(a.key+=1),o.current}(e.tabs,n,a),[l,u]=function(e,t){const[n,o]=(0,r.useState)((()=>(0,i.repeat)(t,(()=>0)))),a=(0,r.useRef)((0,i.repeat)(t,(()=>{})));return(0,r.useEffect)((()=>()=>a.current.forEach((e=>null==e?void 0:e()))),[]),(0,i.tuple)(n,(function(t,n){var r,i;null===(i=(r=a.current)[n])||void 0===i||i.call(r);const s=t.getAll$("isInvalid");a.current[n]=(0,Y.reaction)((()=>s.dependOn().filter(Boolean).length),(e=>{o((t=>{const r=[...t];return r[n]=e,r}))}),{fireImmediately:!1,name:`Validation of tab ${n} of ${e}`})}))}(e.name,e.tabs.length),d=(0,r.useRef)(null),h=(0,r.useRef)(null),p=(0,r.useRef)(null);return G(h,H.NavigationKeys.LeftRight,(0,r.useCallback)((e=>e.querySelectorAll("a")),[])),y(d,(0,r.useCallback)((function(e){const t=(0,i.ensure)(p.current);if(!e)return t.style.height="auto",void(t.style.overflow="");const n=v(e),r=v((0,i.ensure)(h.current)),o=n.contentBox.height-r.marginBox.height;o>100?(t.style.height=`${o}px`,t.style.overflow="auto"):(t.style.height="auto",t.style.overflow="")}),[p,h])),(0,o.jsxs)("div",{className:f()("mx-tabcontainer",e.class),style:e.style,"data-focusindex":e.tabIndex,ref:d,children:[(0,o.jsx)("ul",{className:"nav nav-tabs mx-tabcontainer-tabs",role:"tablist",ref:h,children:e.tabs.map(((e,r)=>(0,o.jsxs)("li",{className:f()({active:n===r}),style:te(e)?void 0:{display:"none"},role:"presentation",onClick:e=>{s(r),e.preventDefault()},children:[(0,o.jsxs)("a",{href:"#",className:`mx-name-${e.name}`,id:`${t}-t${r}`,"aria-controls":`${t}-p${r}`,role:"tab","aria-selected":n===r,children:[e.caption.value,e.badge&&(0,o.jsx)("span",{className:"mx-tabcontainer-badge",style:{display:e.badge.value?"inline-block":"none"},children:e.badge.value})]}),(0,i.ensure)(l[r])>0&&(0,o.jsx)("span",{className:"mx-tabcontainer-indicator",children:l[r]})]},r)))}),(0,o.jsx)("div",{className:"tab-content mx-tabcontainer-content","data-focusindex":"0",ref:p,children:e.tabs.map(((a,s)=>{const l=(0,i.ensure)(c[s]);return(0,o.jsx)("div",{className:f()("tab-pane mx-tabcontainer-pane",{active:n===s}),style:te(a)?void 0:{display:"none"},id:`${t}-p${s}`,role:"tabpanel","aria-labelledby":`${t}-t${s}`,children:(0,o.jsx)(Q.NestedStoreProvider,{namespace:`${e.widgetId}.${s}`,setupStore:(0,r.useCallback)((e=>u(e,s)),[]),children:"hidden"!==l?(0,o.jsx)(ee,{renderKey:l.key,children:a.content}):null})},s)}))})]})},Table:e=>(0,o.jsxs)("table",{className:f()("mx-table",e.class),style:{...e.style,...e.autoWidth?{width:"auto"}:{}},children:[(0,o.jsx)("colgroup",{children:e.columnWidths.map(((e,t)=>(0,o.jsx)("col",{style:{width:e}},t)))}),(0,o.jsx)("tbody",{children:e.rows})]}),TableRow:e=>(0,o.jsx)("tr",{className:e.class,style:e.style,children:e.cells.map(((e,t)=>(0,r.createElement)(e.header?"th":"td",{className:e.class,style:e.style,colSpan:e.width&&e.width>1?e.width.toString():void 0,rowSpan:e.height&&e.height>1?e.height.toString():void 0,key:t},e.content)))}),Text:e=>(0,r.createElement)(e.renderMode,{className:f()("mx-text",e.class),style:e.style},(0,r.createElement)(N,{caption:e.caption})),TextArea:pe,TextBox:Ne,Title:e=>(0,o.jsx)("h1",{className:f()("mx-title",e.class),style:e.style,children:(0,o.jsx)(N,{caption:e.caption})}),Header:e=>(0,o.jsxs)("div",{className:f()("mx-header",e.class),style:e.style,children:[(0,o.jsx)("div",{className:"mx-header-center",children:e.content}),e.leftWidgets&&(0,o.jsx)("div",{className:"mx-header-left",children:e.leftWidgets}),e.rightWidgets&&(0,o.jsx)("div",{className:"mx-header-right",children:e.rightWidgets})]})};class Pe{constructor(){this.externalWidgets={}}filterCoreWidgets(e){const t=Object.keys(Ae);return e.filter((e=>!t.includes(e)))}findByName(e){const t=Ae[e],n=this.externalWidgets[e];return t||n||(i=`Unknown widget '${e}'.`,()=>(0,r.createElement)(s.b,{validation:i}));var i}async loadWidgets(e){await Promise.all(e.map((e=>this.loadWidget(e))))}async loadWidget(e){await new Promise((t=>{window.dojoDynamicRequire(["widgets/"+e.replace(/\./g,"/")],(n=>{const r=(0,i.ensure)(e.split(".").pop());let o;n||t(),r in n?o=n[r]:n.default?o=n.default:"function"==typeof n&&(o=n),void 0!==o&&(this.externalWidgets[e]=o),t()}))}))}}},655:(e,t,n)=>{function r(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}n.d(t,{gn:()=>r}),Object.create,Object.create},9042:e=>{M.dr("dojo/resources/blank.gif",e),e.exports="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="},5002:e=>{M.dr("dojo/resources/blank.html",e),e.exports="data:text/html;charset=utf-8;base64,PGh0bWw+PGhlYWQ+PHNjcmlwdD5pc0xvYWRlZCA9IHRydWU7PC9zY3JpcHQ+PC9oZWFkPjxib2R5PjwvYm9keT48L2h0bWw+Cg=="},8162:e=>{e.exports='<div class="mx-grid mx-datagrid">\n    <div class="mx-grid-searchbar" dojoAttachPoint="searchNode">\n        <div class="mx-grid-search-inputs" dojoAttachPoint="searchArgumentNode"></div>\n        <div class="mx-grid-search-controls" dojoAttachPoint="searchControlNode"></div>\n        <div class="mx-grid-search-message" dojoAttachPoint="messageNode"></div>\n    </div>\n\n    <div class="mx-grid-controlbar" dojoAttachPoint="controlNode">\n        <div class="mx-grid-toolbar" dojoAttachPoint="toolBarNode"></div>\n        <div class="mx-grid-pagingbar" dojoAttachPoint="pagingBarNode" role="navigation"></div>\n    </div>\n\n    <div class="mx-grid-content" dojoAttachPoint="contentNode">\n        <table dojoAttachPoint="gridTable">\n            <caption class="sr-only" dojoAttachPoint="gridCaptionNode"></caption>\n            <colgroup dojoAttachPoint="colGroupNode"></colgroup>\n            <thead dojoAttachPoint="gridHeadNode"></thead>\n            <tbody dojoAttachPoint="gridBodyNode"></tbody>\n            <tfoot dojoAttachPoint="gridFootNode"></tfoot>\n        </table>\n    </div>\n</div>\n'},3802:e=>{e.exports='<div class="mx-demouserswitcher">\n    <div class="mx-demouserswitcher-toggle" data-dojo-attach-point="_toggleNode"></div>\n    <div class="mx-demouserswitcher-content">\n        <h2>Select user</h2>\n        <p>Select one of the demo users to view the application with the associated user roles.</p>\n        <ul data-dojo-attach-point="_listNode"></ul>\n    </div>\n</div>\n'},5122:e=>
66{e.exports='<div class="MxInlineEditor">\n    <form class="inlineEditBox" style="display: none;" dojoAttachPoint="form" onsubmit="return false;">\n        <input type="text" dojoAttachPoint="readonly" style="display: none;" class="inlineEditBox_readOnly form-control"/>\n        <input type="text" dojoAttachPoint="enumtext" style="display: none;" class="inlineEditBox_focusEnum form-control"/>\n        <input type="text" dojoAttachPoint="text" style="display: none;" class="inlineEditBox_editable form-control"/>\n        <select type="select" dojoAttachPoint="select" style="display: none;" class="inlineEditBox_selectbox form-control"></select>\n    </form>\n</div>\n'},983:e=>{e.exports='<div class="mx-grid mx-templategrid">\n    <div class="mx-grid-searchbar" dojoAttachPoint="searchNode">\n        <div class="mx-grid-search-inputs" dojoAttachPoint="searchArgumentNode"></div>\n        <div class="mx-grid-search-controls" dojoAttachPoint="searchControlNode"></div>\n        <div class="mx-grid-search-message" dojoAttachPoint="messageNode"></div>\n    </div>\n    \n    <div class="mx-grid-controlbar" dojoAttachPoint="controlNode">\n        <div class="mx-grid-toolbar" dojoAttachPoint="toolBarNode"></div>\n        <div class="mx-grid-pagingbar" dojoAttachPoint="pagingBarNode"></div>\n    </div>\n    \n    <div class="mx-grid-content" dojoAttachPoint="contentNode">\n        <div class="mx-templategrid-content-wrapper" dojoAttachPoint="itemNode"></div>\n    </div>\n</div>\n'},9801:e=>{e.exports='<div class="dijitTooltip dijitTooltipLeft" id=dojoTooltip>\n\t<div class="dijitTooltipContainer dijitTooltipContents" style="display:none" dojoAttachPoint="containerNode" role=\'alert\'></div>\n\t<div class="dijitTooltipContainer dijitTooltipContents">\n\t\t<div class="mx-tooltip-content" dojoAttachPoint="contentNode"></div>\n\t\t<div class="mx-tooltip-prepare" dojoAttachPoint="prepareNode"></div>\n\t</div>\n\t<div class="dijitTooltipConnector" dojoAttachPoint="connectorNode"></div>\n</div>\n'},2080:e=>{M.dr("dijit/templates/Tooltip.html",e),e.exports='<div class="dijitTooltip dijitTooltipLeft" id="dojoTooltip" data-dojo-attach-event="mouseenter:onMouseEnter,mouseleave:onMouseLeave"\n\t><div class="dijitTooltipConnector" data-dojo-attach-point="connectorNode"></div\n\t><div class="dijitTooltipContainer dijitTooltipContents" data-dojo-attach-point="containerNode" role=\'alert\'></div\n></div>\n'},6017:(e,t,n)=>{e.exports=n.p+"images/loading.gif"},8923:e=>{e.exports=N},5599:e=>{e.exports=T},9546:e=>{e.exports=O},9488:e=>{e.exports=i},9375:e=>{e.exports=m},329:e=>{e.exports=r},7136:e=>{e.exports=p},503:e=>{e.exports=h},3869:e=>{e.exports=j},8069:e=>{e.exports=R},4576:e=>{e.exports=b},6618:e=>{e.exports=t},8833:e=>{e.exports=c},4238:e=>{e.exports=g},2495:e=>{e.exports=l},2860:e=>{e.exports=v},8007:e=>{e.exports=o},2239:e=>{e.exports=u},1120:e=>{e.exports=a},2496:e=>{e.exports=s},1232:e=>{e.exports=E},9687:e=>{e.exports=y},507:e=>{e.exports=d},5408:e=>{e.exports=S},3600:e=>{e.exports=C},1178:e=>{e.exports=f},6275:e=>{e.exports=_},455:e=>{e.exports=n},4784:t=>{t.exports=e},6912:e=>{e.exports=k},1984:e=>{e.exports=x},7112:e=>{e.exports=w}},I={};function M(e){var t=I[e];if(void 0!==t)return t.exports;var n=I[e]={id:e,loaded:!1,exports:{}};return D[e].call(n.exports,n,n.exports,M),n.loaded=!0,n.exports}M.m=D,M.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return M.d(t,{a:t}),t},M.d=(e,t)=>{for(var n in t)M.o(t,n)&&!M.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},M.f={},M.e=e=>Promise.all(Object.keys(M.f).reduce(((t,n)=>(M.f[n](e,t),t)),[])),M.u=e=>"mxui/mxui."+e+".js",M.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),M.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),A={},P="mxui:",M.l=(e,t,n,r)=>{if(A[e])A[e].push(t);else{var i,o;if(void 0!==n)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var c=a[s];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==P+n){i=c;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,M.nc&&i.setAttribute("nonce",M.nc),i.setAttribute("data-webpack",P+n),i.src=window.mx.appUrl+e.replace(/^\//,"")+"?"+window.dojoConfig.cacheBust),A[e]=[t];var l=(t,n)=>{i.onerror=i.onload=null,clearTimeout(u);var r=A[e];if(delete A[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),o&&document.head.appendChild(i)}},M.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
66),Object.defineProperty(e,"__esModule",{value:!0})},M.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),M.p="mxclientsystem/",M.dr=function(e,t){window.require.cache[e]=function(){define([],(function(){return t.exports}))}},M.dj=function(e){return function(){if(!(arguments[0]instanceof Array))throw new Error("Currently not supported");return arguments[0]=arguments[0].map((function(t){return"."===t[0]?e+"/"+t:t})),window.require.apply(null,arguments)}},(()=>{M.b=document.baseURI||self.location.href;var e={0:0};M.f.j=(t,n)=>{var r=M.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var o=M.p+M.u(t),a=new Error;M.l(o,(n=>{if(M.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,a,s]=n,c=0;if(o.some((t=>0!==e[t]))){for(r in a)M.o(a,r)&&(M.m[r]=a[r]);s&&s(M)}for(t&&t(n);c<o.length;c++)i=o[c],M.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.mxJsonp=self.mxJsonp||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var L={};return(()=>{M.r(L),M(7744);var e=M(4296),t=M(7606),n=M(1016),r=M(1001);const i=t.LogManager.get().getLogger();function o(t,r,i){const c={};!(0,e.objectIsEmpty)(r.changes)&&r.object.isPersistable()&&(c.changes=r.changes),r.subscriptions.length>0&&(c.subscribedWidgets=Array.from(new Set(r.subscriptions))),i.length>0&&(c.referencedBy=i.map((e=>function(e,t){const r=e.find((e=>e.object.getGuid()===t));if(r)return[s(r)+" ("+a(r)+")",o(e,r,[])];const i=(0,n.getSession)();return t===i.getUserId()?["$currentUser (System.User)",{}]:["$currentSession (System.Session)",{}]}(t,e))).reduce(((e,[t,n])=>(e[t]=n,e)),{}));const l=(0,n.getSession)(),u=r.object.getGuid()===l.getUserId(),d=!c.subscribedWidgets&&!c.referencedBy;return u&&d&&(c.note="Current user is always in cache"),!d||u?c:""}function a(e){return e.object.getEntity()+(e.object.isPersistable()?"":" [NPE]")}function s(e){const t=[];return e.uncommitted&&t.push("new"),Object.keys(e.changes).length>0&&t.push("changed"),e.guid+(t.length>0?` (${t.join(", ")})`:"")}window.addEventListener("keydown",(t=>{const c=t.key||String.fromCharCode(t.keyCode);t.ctrlKey&&t.altKey&&("g"===c.toLowerCase()||"KeyG"===t.code)&&i.info(`State details per entity (${(new Date).toLocaleTimeString()}):`,function(){const t=mx.data.getObjectsStatistics().filter((e=>null!=e.object)),i=function(t){const i=(0,n.getSession)(),o=i.getUserId(),a=i.getSessionObjectId(),s=t.map((e=>e.object)),c=t.filter((t=>!(0,e.objectIsEmpty)(t.changes)&&t.object.isPersistable()||t.subscriptions.length>0)).map((e=>e.object.getGuid()));return(0,r.I5)(s,new Set(c.concat([o,a])))}(t),c={};return t.forEach((e=>{const n=a(e),r=s(e);c[n]||(c[n]={}),c[n][r]=o(t,e,i.neighborsOf(e.object.getGuid()))||"Going to be garbage collected †"})),c}())})),M(4810),M(9440),M(6309),M(8713),M(3011).Y(),M(9456),M(5875),M(9513),M(1654),M(5619),M(394)})(),L})()));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.