!function(){"use strict";varx=function(){return(x=Object.assign||function(n){for(vare,t=1,r=arguments.length;t<r;t++)for(varoine=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);returnn}).apply(this,arguments)};functionc(n,e){vart={};for(varrinn)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(){for(varn=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(varr=Array(n),o=0,e=0;e<t;e++)for(vari=arguments[e],u=0,c=i.length;u<c;u++,o++)r[o]=i[u];returnr}varO=function(){},i=function(t,r){returnfunction(){for(varn=[],e=0;e<arguments.length;e++)n[e]=arguments[e];returnt(r.apply(null,n))}},y=function(n){returnfunction(){returnn}},v=function(n){returnn};functionb(r){for(varo=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];returnfunction(){for(varn=[],e=0;e<arguments.length;e++)n[e]=arguments[e];vart=o.concat(n);returnr.apply(null,t)}}varn,e,t,r,o,a,m=function(e){returnfunction(n){return!e(n)}},f=function(n){returnfunction(){thrownewError(n)}},s=function(n){returnn()},l=y(!1),w=y(!0),d=function(t){varr,o=!1;returnfunction(){for(varn=[],e=0;e<arguments.length;e++)n[e]=arguments[e];returno||(o=!0,r=t.apply(null,n)),r}},g=function(){returnp},p=(n=function(n){returnn.isNone()},{fold:function(n,e){returnn()},is:l,isSome:l,isNone:w,getOr:t=function(n){returnn},getOrThunk:e=function(n){returnn()},getOrDie:function(n){thrownewError(n||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(undefined),or:t,orThunk:e,map:g,each:O,bind:g,exists:l,forall:w,filter:g,equals:n,equals_:n,toArray:function(){return[]},toString:y("none()")}),h=function(t){varn=y(t),e=function(){returno},r=function(n){returnn(t)},o={fold:function(n,e){returne(t)},is:function(n){returnt===n},isSome:w,isNone:l,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:e,orThunk:e,map:function(n){returnh(n(t))},each:function(n){n(t)},bind:r,exists:r,forall:r,filter:function(n){returnn(t)?o:p},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(n){returnn.is(t)},equals_:function(n,e){returnn.fold(l,function(n){returne(t,n)})}};returno},T={some:h,none:g,from:function(n){returnnull===n||n===undefined?p:h(n)}},S=function(r){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)===r;vare,t}},k=function(e){returnfunction(n){returntypeofn===e}},E=S("string"),C=S("object"),M=S("array"),D=k("boolean"),_=function(n){return!(null===(e=n)||e===undefined);vare},I=k("function"),F=k("number"),R=Array.prototype.slice,V=Array.prototype.indexOf,B=Array.prototype.push,A=function(n,e){returnt=n,r=e,-1<V.call(t,r);vart,r},j=function(n,e){for(vart=0,r=n.length;t<r;t++){if(e(n[t],t))return!0}return!1},N=function(n,e){for(vart=n.length,r=newArray(t),o=0;o<t;o++){vari=n[o];r[o]=e(i,o)}returnr},P=function(n,e){for(vart=0,r=n.length;t<r;t++){e(n[t],t)}},H=function(n,e){for(vart=[],r=0,o=n.length;r<o;r++){vari=n[r];e(i,r)&&t.push(i)}returnt},z=function(n,e,t){returnfunction(n,e){for(vart=n.length-1;0<=t;t--){e(n[t],t)}}(n,function(n){t=e(t,n)}),t},L=function(n,e,t){returnP(n,function(n){t=e(t,n)}),t},G=function(n,e){returnfunction(n,e,t){for(varr=0,o=n.length;r<o;r++){vari=n[r];if(e(i,r))returnT.some(i);if(t(i,r))break}returnT.none()}(n,e,l)},$=function(n,e){for(vart=0,r=n.length;t<r;t++){if(e(n[t],t))returnT.some(t)}returnT.none()},U=function(n){for(vare=[],t=0,r=n.length;t<r;++t){if(!M(n[t]))thrownewError("Arr.flatten item "+t+" was not an array, input: "+n);B.apply(e,n[t])}returne},W=function(n,e){returnU(N(n,e))},X=function(n,e){for(vart=0,r=n.length;t<r;++t){if(!0!==