!function(){"use strict";varb=function(){return(b=Object.assign||function(n){for(vare,t=1,o=arguments.length;t<o;t++)for(varrine=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);returnn}).apply(this,arguments)};functionc(n,e){vart={};for(rinn)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeofObject.getOwnPropertySymbols)for(varo=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);returnt}functionu(n,e,t){if(t||2===arguments.length)for(varo,r=0,i=e.length;r<i;r++)!o&&rine||((o=o||Array.prototype.slice.call(e,0,r))[r]=e[r]);returnn.concat(o||Array.prototype.slice.call(e))}functionn(o){returnfunction(n){returnt=typeof(e=n),(null===e?"null":"object"==t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t)===o;vare,t}}functione(e){returnfunction(n){returntypeofn===e}}functiont(e){returnfunction(n){returne===n}}functionl(n){return!(null==n)}functionY(){}functioni(t,o){returnfunction(){for(varn=[],e=0;e<arguments.length;e++)n[e]=arguments[e];returnt(o.apply(null,n))}}functionw(n){returnfunction(){returnn}}functionK(n){returnn}functiono(n,e){returnn===e}varr=n("string"),a=n("object"),D=n("array"),s=t(null),d=e("boolean"),f=t(void0),m=e("function"),g=e("number");functionJ(o){for(varr=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];returnfunction(){for(varn=[],e=0;e<arguments.length;e++)n[e]=arguments[e];vart=r.concat(n);returno.apply(null,t)}}functionQ(e){returnfunction(n){return!e(n)}}functionh(n){returnfunction(){thrownewError(n)}}functionp(n){returnn()}functionv(){returny}varS=w(!1),x=w(!0),y={fold:function(n,e){returnn()},isSome:S,isNone:x,getOr:K,getOrThunk:O,getOrDie:function(n){thrownewError(n||"error: getOrDie called on none.")},getOrNull:w(null),getOrUndefined:w(void0),or:K,orThunk:O,map:v,each:Y,bind:v,exists:S,forall:x,filter:function(){returny},toArray:function(){return[]},toString:w("none()")};functionO(n){returnn()}functionT(t){varo,r=!1;returnfunction(){for(varn=[],e=0;e<arguments.length;e++)n[e]=arguments[e];returnr||(r=!0,o=t.apply(null,n)),o}}functionk(n,e){return-1<pn.call(n,e)}functionE(n,e){for(vart=0,o=n.length;t<o;t++)if(e(n[t],t))return1}functionZ(n,e){for(vart=n.length,o=newArray(t),r=0;r<t;r++){vari=n[r];o[r]=e(i,r)}returno}functionM(n,e){for(vart=0,o=n.length;t<o;t++)e(n[t],t)}functionC(n,e){for(vart=[],o=0,r=n.length;o<r;o++){vari=n[o];e(i,o)&&t.push(i)}returnt}function_(n,o,r){returnfunction(n){for(vare,t=n.length-1;0<=t;t--)e=n[t],r=o(r,e,t)}(n),r}functionI(n,t,o){returnM(n,function(n,e){o=t(o,n,e)}),o}functionF(n,e){returnfunction(n,e,t){for(varo=0,r=n.length;o<r;o++){vari=n[o];if(e(i,o))returnmn.some(i);if(t(i,o))break}returnmn.none()}(n,e,S)}functionR(n,e){for(vart=0,o=n.length;t<o;t++)if(e(n[t],t))returnmn.some(t);returnmn.none()}functionV(n){for(vare=[],t=0,o=n.length;t<o;++t){if(!D(n[t]))thrownewError("Arr.flatten item "+t+" was not an array, input: "+n);hn.apply(e,n[t])}returne}functionB(n,e){returnV(Z(n,e))}functionA(n,e){for(vart=0,o=n.length;t<o;++t)if(!0!==e(n[t],t))return!1;return!0}functionj(n){vare=gn.call(n,0);returne.reverse(),e}functionN(n,e){returnC(n,function(n){return!k(e,n)})}functionH(n){return[n]}functionP(n,e){for(vart=0;t<n.length;t++){varo=e(n[t],t);if(o.isSome())returno}returnmn.none()}functionz(n,e){vart=String(e).toLowerCase();returnF(n,function(n){returnn.search(t)})}functionL(n,e){return-1!==n.indexOf(e)}functionG(e){returnfunction(n){returnL(n,e)}}function$(n){returnwindow.matchMedia(n).matches}functionU(n){returnw("alloy."+n)}functionW(n,e){se(n,n.element,e,{})}functionX(n,e,t){se(n,n.element,e,t)}functionq(n){W(n,Zn())}functionnn(n,e,t){se(n,e,t,{})}functionen(n,e){vart=n.dom;if(1!==t.nodeType)return!1;varo=t;if(void0!==o.matches