!function(){"use strict";conste=e=>{lett=e;return{get:()=>t,set:e=>{t=e}}},t=Object.getPrototypeOf,o=(e,t,o)=>{varn;return!!o(e,t.prototype)||(null===(n=e.constructor)||void0===n?void0:n.name)===t.name},n=e=>t=>(e=>{constt=typeofe;returnnull===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&o(e,String,((e,t)=>t.isPrototypeOf(e)))?"string":t})(t)===e,r=e=>t=>typeoft===e,s=e=>t=>e===t,a=n("string"),i=n("object"),c=e=>((e,n)=>i(e)&&o(e,n,((e,o)=>t(e)===o)))(e,Object),l=s(null),m=r("boolean"),d=s(void0),u=e=>!(e=>null==e)(e),h=r("function"),_=r("number");classv{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewv(!0,e)}staticnone(){returnv.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?v.some(e(this.value)):v.none()}bind(e){returnthis.tag?e(this.value):v.none()}exists(e){returnthis.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:v.none()}getOr(e){returnthis.tag?this.value:e}or(e){returnthis.tag?this:e}getOrThunk(e){returnthis.tag?this.value:e()}orThunk(e){returnthis.tag?this:e()}getOrDie(e){if(this.tag)returnthis.value;thrownewError(null!=e?e:"Called getOrDie on None")}staticfrom(e){returnu(e)?v.some(e):v.none()}getOrNull(){returnthis.tag?this.value:null}getOrUndefined(){returnthis.value}each(e){this.tag&&e(this.value)}toArray(){returnthis.tag?[this.value]:[]}toString(){returnthis.tag?`some(${this.value})`:"none()"}}v.singletonNone=newv(!1);constp=e=>parseInt(e,10),g=(e,t)=>{consto=e-t;return0===o?0:o>0?1:-1},y=(e,t,o)=>({major:e,minor:t,patch:o}),f=e=>{constt=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(e);returnt?y(p(t[1]),p(t[2]),p(t[3])):y(0,0,0)};letb=0;constw=e=>{constt=(newDate).getTime(),o=Math.floor(1e9*Math.random());returnb++,e+"_"+o+b+String(t)},S=()=>{},C=e=>()=>e,x=e=>e,O=e=>e(),A=C(!1),R=C(!0),E=Array.prototype.indexOf,D=(e,t)=>{consto=e.length,n=newArray(o);for(letr=0;r<o;r++){consto=e[r];n[r]=t(o,r)}returnn},k=(e,t)=>{for(leto=0,n=e.length;o<n;o++)t(e[o],o)},T=(e,t)=>{consto=[];for(letn=0,r=e.length;n<r;n++){constr=e[n];t(r,n)&&o.push(r)}returno},M=(e,t)=>((e,t,o)=>{for(letn=0,r=e.length;n<r;n++){constr=e[n];if(t(r,n))returnv.some(r);if(o(r,n))break}returnv.none()})(e,t,A),L=Object.keys,N=Object.hasOwnProperty,U=(e,t)=>{consto=L(e);for(letn=0,r=o.length;n<r;n++){constr=o[n];t(e[r],r)}},j=(e,t)=>P(e,((e,o)=>({k:o,v:t(e,o)}))),P=(e,t)=>{consto={};returnU(e,((e,n)=>{constr=t(e,n);o[r.k]=r.v})),o},$=(e,t)=>N.call(e,t);"undefined"!=typeofwindow?window:Function("return this;")();constI=e=>t=>(e=>e.dom.nodeType)(t)===e,F=I(1),H=I(9),B=e=>t=>F(t)&&t.dom.nodeName.toLowerCase()===e,V=(e,t,o)=>{if(!(a(o)||m(o)||_(o)))throwconsole.error("Invalid call to Attribute.set. Key ",t,":: Value ",o,":: Element ",e),newError("Attribute value was not simple");e.setAttribute(t,o+"")},Y=(e,t,o)=>{V(e.dom,t,o)},W=(e,t)=>{consto=e.dom.getAttribute(t);returnnull===o?void0:o},G=(e,t)=>v.from(W(e,t)),q=(e,t)=>{e.dom.removeAttribute(t)},z=(e,t,o=0,n)=>{constr=e.indexOf(t,o);return-1!==r&&(!!d(n)||r+t.length<=n)},J=e=>t=>t.replace(e,""),K=J(/^\s+|\s+$/g),Q=J(/^\s+/g),X=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},Z=(e,t)=>{consto=(t||document).createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1){constt="HTML does not have a single root node";throwconsole.error(t,e),newError(t)}returnX(o.childNodes[0])},ee=(e,t)=>{consto=(t||document).createElement(e);returnX(o)},te=X,oe=e=>1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount,ne=e=>te(e.dom.ownerDocument),re=e=>v.from(e.dom.parentNode).map(te),se=e=>D(e.dom.childNodes,te),ae=h(Element.prototype.attachShadow)&&h(Node.prototype.getRootNode)?e=>te(e.dom.getRootNode()):e=>H(e)?e:ne(e),ie=()=>ce(te(document)),ce=e=>{constt=e.dom.body;if(null==t)thrownewError("Body is not available yet");returnte(t)},le=(e,t)=>{e.dom.appendChild(t.dom)},me=e=>{e.dom.textContent="",