!function(){"use strict";functione(r){returnfunction(e){returnt=typeof(n=e),(null===n?"null":"object"==t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t)===r;varn,t}}functionn(n){returnfunction(e){returntypeofe===n}}functiont(n){returnfunction(e){returnn===e}}functionl(e){return!(null==e)}functionE(){}functionC(e){returnfunction(){returne}}functionh(e){returne}functionr(e,n){returne===n}varS=e("string"),g=e("object"),a=e("array"),v=t(null),o=n("boolean"),f=t(void0),c=n("function"),s=n("number");functionP(r){for(varo=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];returnfunction(){for(vare=[],n=0;n<arguments.length;n++)e[n]=arguments[n];vart=o.concat(e);returnr.apply(null,t)}}functionp(n){returnfunction(e){return!n(e)}}functionu(){returni}varw=C(!1),T=C(!0),i={fold:function(e,n){returne()},isSome:w,isNone:T,getOr:h,getOrThunk:d,getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:C(null),getOrUndefined:C(void0),or:h,orThunk:d,map:u,each:E,bind:u,exists:w,forall:T,filter:function(){returni},toArray:function(){return[]},toString:C("none()")};functiond(e){returne()}functiony(e,n){return-1<q.call(e,n)}functionR(e,n){for(vart=0,r=e.length;t<r;t++)if(n(e[t],t))return!0;return!1}functionD(e,n){for(vart=[],r=0;r<e;r++)t.push(n(r));returnt}functionx(e,n){for(vart=e.length,r=newArray(t),o=0;o<t;o++){varu=e[o];r[o]=n(u,o)}returnr}functionO(e,n){for(vart=0,r=e.length;t<r;t++)n(e[t],t)}functionA(e,n){for(vart=[],r=0,o=e.length;r<o;r++){varu=e[r];n(u,r)&&t.push(u)}returnt}functionk(e,r,o){returnfunction(e){for(varn,t=e.length-1;0<=t;t--)n=e[t],o=r(o,n,t)}(e),o}functionI(e,t,r){returnO(e,function(e,n){r=t(r,e,n)}),r}functionB(e,n){returnfunction(e,n,t){for(varr=0,o=e.length;r<o;r++){varu=e[r];if(n(u,r))returnH.some(u);if(t(u,r))break}returnH.none()}(e,n,w)}functionm(e,n){for(vart=0,r=e.length;t<r;t++)if(n(e[t],t))returnH.some(t);returnH.none()}functionb(e){for(varn=[],t=0,r=e.length;t<r;++t){if(!a(e[t]))thrownewError("Arr.flatten item "+t+" was not an array, input: "+e);U.apply(n,e[t])}returnn}functionN(e,n){returnb(x(e,n))}functionM(e,n){for(vart=0,r=e.length;t<r;++t)if(!0!==n(e[t],t))return!1;return!0}functionz(e,n){for(vart={},r=0,o=e.length;r<o;r++){varu=e[r];t[String(u)]=n(u,r)}returnt}functionL(e){return[e]}function_(e,n){return0<=n&&n<e.length?H.some(e[n]):H.none()}functionW(e){return_(e,0)}functionj(e,n){for(vart=0;t<e.length;t++){varr=n(e[t],t);if(r.isSome())returnr}returnH.none()}varF=function(t){functione(){returno}functionn(e){returne(t)}varr=C(t),o={fold:function(e,n){returnn(t)},isSome:T,isNone:w,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:e,orThunk:e,map:function(e){returnF(e(t))},each:function(e){e(t)},bind:n,exists:n,forall:n,filter:function(e){returne(t)?o:i},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};returno},H={some:F,none:u,from:function(e){returnnull==e?i:F(e)}},V=Array.prototype.slice,q=Array.prototype.indexOf,U=Array.prototype.push,$=function(){return($=Object.assign||function(e){for(varn,t=1,r=arguments.length;t<r;t++)for(varoinn=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);returne}).apply(this,arguments)};functionK(e,n,t){if(t||2===arguments.length)for(varr,o=0,u=n.length;o<u;o++)!r&&oinn||((r=r||Array.prototype.slice.call(n,0,o))[o]=n[o]);returne.concat(r||Array.prototype.slice.call(n))}functionG(t){varr,o=!1;returnfunction(){for(vare=[],n=0;n<arguments.length;n++)e[n]=arguments[n];returno||(o=!0,r=t.apply(null,e)),r}}functionX(e,n){vart=String(n).toLowerCase();returnB(e,function(e){returne.search(t)})}functionY(e,n,t){return""===n||e.length>=n.length&&e.substr(t,t+n.length)===n}functionJ(e,n){return-1!==e.indexOf(n)}functionQ(e,n){returnY(e,n,e.length-n.length)}functionZ(e){return0<e.length}functionee(n){returnfunction(e){returnJ