!function(){"use strict";conste=e=>parseInt(e,10),t=(e,t)=>{constn=e-t;return0===n?0:n>0?1:-1},n=(e,t,n)=>({major:e,minor:t,patch:n}),r=t=>{constr=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(t);returnr?n(e(r[1]),e(r[2]),e(r[3])):n(0,0,0)},o=e=>t=>(e=>{constt=typeofe;returnnull===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=r=e,(o=String).prototype.isPrototypeOf(n)||(null===(a=r.constructor)||void0===a?void0:a.name)===o.name)?"string":t;varn,r,o,a})(t)===e,a=e=>t=>typeoft===e,s=o("string"),i=o("array"),u=(null,e=>null===e);constl=a("boolean"),c=e=>!(e=>null==e)(e),p=a("function"),g=a("number"),h=()=>{},m=(e,t)=>(...n)=>e(t.apply(null,n)),d=e=>()=>e,f=e=>e,y=(e,t)=>e===t;functionv(e,...t){return(...n)=>{constr=t.concat(n);returne.apply(null,r)}}constb=d(!1),x=d(!0);class${constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnew$(!0,e)}staticnone(){return$.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?$.some(e(this.value)):$.none()}bind(e){returnthis.tag?e(this.value):$.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:$.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){returnc(e)?$.some(e):$.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()"}}$.singletonNone=new$(!1);constw=Array.prototype.slice,E=Array.prototype.indexOf,R=Array.prototype.push,T=(e,t)=>((e,t)=>E.call(e,t))(e,t)>-1,q=(e,t)=>{for(letn=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1},A=(e,t)=>{constn=e.length,r=newArray(n);for(leto=0;o<n;o++){constn=e[o];r[o]=t(n,o)}returnr},S=(e,t)=>{for(letn=0,r=e.length;n<r;n++)t(e[n],n)},k=(e,t)=>{constn=[];for(letr=0,o=e.length;r<o;r++){consto=e[r];t(o,r)&&n.push(o)}returnn},B=(e,t,n)=>(S(e,((e,r)=>{n=t(n,e,r)})),n),D=(e,t)=>((e,t,n)=>{for(letr=0,o=e.length;r<o;r++){consto=e[r];if(t(o,r))return$.some(o);if(n(o,r))break}return$.none()})(e,t,b),N=(e,t)=>{for(letn=0,r=e.length;n<r;n++)if(t(e[n],n))return$.some(n);return$.none()},C=(e,t)=>(e=>{constt=[];for(letn=0,r=e.length;n<r;++n){if(!i(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);R.apply(t,e[n])}returnt})(A(e,t)),L=(e,t)=>{for(letn=0,r=e.length;n<r;++n)if(!0!==t(e[n],n))return!1;return!0},I=Object.keys,O=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},P={fromHtml:(e,t)=>{constn=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1){constt="HTML does not have a single root node";throwconsole.error(t,e),newError(t)}returnO(n.childNodes[0])},fromTag:(e,t)=>{constn=(t||document).createElement(e);returnO(n)},fromText:(e,t)=>{constn=(t||document).createTextNode(e);returnO(n)},fromDom:O,fromPoint:(e,t,n)=>$.from(e.dom.elementFromPoint(t,n)).map(O)};"undefined"!=typeofwindow?window:Function("return this;")();constz=e=>e.dom.nodeName.toLowerCase(),M=e=>e.dom.nodeType,j=e=>t=>M(t)===e,U=e=>8===M(e)||"#comment"===z(e),W=j(1),F=j(3),_=j(9),H=j(11),Q=(e,t)=>{constn=e.dom;if(1!==n.nodeType)return!1;{conste=n;if(void0!==e.matches)returne.matches(t);if(void0!==e.msMatchesSelector)returne.msMatchesSelector(t);if(void0!==e.webkitMatchesSelector)returne.webkitMatchesSelector(t);if(void0!==e.mozMatchesSelector)returne.mozMatchesSelector(t);thrownewError("Browser lacks native selectors")}},V=(e,t)=>e.dom===t.dom,G=Q,K=e=>_(e)?e:P.fromDom(e.dom.ownerDocument),X=e=>$.from(e.dom.parentNode).map(P.fromDom),Z=e=>$.from(e.dom.parentElement).map(P.fromDom),Y=(e,t)=>{constn=p(t)?t:b;letr=e.dom;consto=[];for(;null!==r.parentNode&&void0!==r.parent