fable 3.0.140 → 3.0.142

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _defineProperty2(e,t,r){return(t=_toPropertyKey2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=_superPropBase(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},_get.apply(this,arguments)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _classCallCheck2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey2(n.key),n)}}function _createClass2(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey2(e){var t=_toPrimitive2(e,"string");return"symbol"==_typeof(t)?t:String(t)}function _toPrimitive2(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}!function(e){if("object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Fable=e()}}((function(){return function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,r){var n=e("async.util.eachoflimit"),i=e("async.util.withoutindex");t.exports=function(e,t,r,o){return n(t)(e,i(r),o)}},{"async.util.eachoflimit":3,"async.util.withoutindex":14}],2:[function(e,t,r){t.exports=function(e){return function t(r){function n(){return e.length&&e[r].apply(null,arguments),n.next()}return n.next=function(){return r<e.length-1?t(r+1):null},n}(0)}},{}],3:[function(e,t,r){var n=e("async.util.once"),i=e("async.util.noop"),o=e("async.util.onlyonce"),a=e("async.util.keyiterator");t.exports=function(e){return function(t,r,s){s=n(s||i);var u=a(t=t||[]);if(e<=0)return s(null);var c=!1,l=0,f=!1;!function n(){if(c&&l<=0)return s(null);for(;l<e&&!f;){var i=u();if(null===i)return c=!0,void(l<=0&&s(null));l+=1,r(t[i],i,o((function(e){l-=1,e?(s(e),f=!0):n()})))}}()}}},{"async.util.keyiterator":7,"async.util.noop":9,"async.util.once":10,"async.util.onlyonce":11}],4:[function(e,t,r){var n=e("async.util.setimmediate"),i=e("async.util.restparam");t.exports=function(e){return i((function(t){var r=t.pop();t.push((function(){var e=arguments;i?n((function(){r.apply(null,e)})):r.apply(null,e)}));var i=!0;e.apply(this,t),i=!1}))}},{"async.util.restparam":12,"async.util.setimmediate":13}],5:[function(e,t,r){t.exports=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],6:[function(e,t,r){var n=e("async.util.isarray");t.exports=function(e){return n(e)||"number"==typeof e.length&&e.length>=0&&e.length%1==0}},{"async.util.isarray":5}],7:[function(e,t,r){var n=e("async.util.keys"),i=e("async.util.isarraylike");t.exports=function(e){var t,r,o=-1;return i(e)?(t=e.length,function(){return++o<t?o:null}):(r=n(e),t=r.length,function(){return++o<t?r[o]:null})}},{"async.util.isarraylike":6,"async.util.keys":8}],8:[function(e,t,r){t.exports=Object.keys||function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}},{}],9:[function(e,t,r){t.exports=function(){}},{}],10:[function(e,t,r){t.exports=function(e){return function(){null!==e&&(e.apply(this,arguments),e=null)}}},{}],11:[function(e,t,r){t.exports=function(e){return function(){if(null===e)throw new Error("Callback was already called.");e.apply(this,arguments),e=null}}},{}],12:[function(e,t,r){t.exports=function(e,t){return t=null==t?e.length-1:+t,function(){for(var r=Math.max(arguments.length-t,0),n=new Array(r),i=0;i<r;i++)n[i]=arguments[i+t];switch(t){case 0:return e.call(this,n);case 1:return e.call(this,arguments[0],n)}}}},{}],13:[function(e,t,r){(function(e){(function(){var r="function"==typeof e&&e,n=function(e){setTimeout(e,0)};t.exports=function(e){return(r||n)(e)}}).call(this)}).call(this,e("timers").setImmediate)},{timers:122}],14:[function(e,t,r){t.exports=function(e){return function(t,r,n){return e(t,n)}}},{}],15:[function(e,t,r){var n=e("async.util.once"),i=e("async.util.noop"),o=e("async.util.isarray"),a=e("async.util.restparam"),s=e("async.util.ensureasync"),u=e("async.iterator");t.exports=function(e,t){if(t=n(t||i),!o(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();!function e(r){return a((function(n,i){if(n)t.apply(null,[n].concat(i));else{var o=r.next();o?i.push(e(o)):i.push(t),s(r).apply(null,i)}}))}(u(e))()}},{"async.iterator":2,"async.util.ensureasync":4,"async.util.isarray":5,"async.util.noop":9,"async.util.once":10,"async.util.restparam":12}],16:[function(e,t,r){r.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=u(e),a=n[0],s=n[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(c(e,s,s+a>u?u:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],17:[function(e,t,r){!function(e){var r,n=1e6,i=1e6,o="[big.js] ",a=o+"Invalid ",s=a+"decimal places",u=a+"rounding mode",c=o+"Division by zero",l={},f=void 0,h=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function p(e,t,r,n){var i=e.c;if(r===f&&(r=e.constructor.RM),0!==r&&1!==r&&2!==r&&3!==r)throw Error(u);if(t<1)n=3===r&&(n||!!i[0])||0===t&&(1===r&&i[0]>=5||2===r&&(i[0]>5||5===i[0]&&(n||i[1]!==f))),i.length=1,n?(e.e=e.e-t+1,i[0]=1):i[0]=e.e=0;else if(t<i.length){if(n=1===r&&i[t]>=5||2===r&&(i[t]>5||5===i[t]&&(n||i[t+1]!==f||1&i[t-1]))||3===r&&(n||!!i[0]),i.length=t,n)for(;++i[--t]>9;)if(i[t]=0,0===t){++e.e,i.unshift(1);break}for(t=i.length;!i[--t];)i.pop()}return e}function d(e,t,r){var n=e.e,i=e.c.join(""),o=i.length;if(t)i=i.charAt(0)+(o>1?"."+i.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)i="0"+i;i="0."+i}else if(n>0)if(++n>o)for(n-=o;n--;)i+="0";else n<o&&(i=i.slice(0,n)+"."+i.slice(n));else o>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&r?"-"+i:i}l.abs=function(){var e=new this.constructor(this);return e.s=1,e},l.cmp=function(e){var t,r=this,n=r.c,i=(e=new r.constructor(e)).c,o=r.s,a=e.s,s=r.e,u=e.e;if(!n[0]||!i[0])return n[0]?o:i[0]?-a:0;if(o!=a)return o;if(t=o<0,s!=u)return s>u^t?1:-1;for(a=(s=n.length)<(u=i.length)?s:u,o=-1;++o<a;)if(n[o]!=i[o])return n[o]>i[o]^t?1:-1;return s==u?0:s>u^t?1:-1},l.div=function(e){var t=this,r=t.constructor,i=t.c,o=(e=new r(e)).c,a=t.s==e.s?1:-1,u=r.DP;if(u!==~~u||u<0||u>n)throw Error(s);if(!o[0])throw Error(c);if(!i[0])return e.s=a,e.c=[e.e=0],e;var l,h,d,g,y,v=o.slice(),m=l=o.length,b=i.length,S=i.slice(0,l),P=S.length,T=e,_=T.c=[],k=0,w=u+(T.e=t.e-e.e)+1;for(T.s=a,a=w<0?0:w,v.unshift(0);P++<l;)S.push(0);do{for(d=0;d<10;d++){if(l!=(P=S.length))g=l>P?1:-1;else for(y=-1,g=0;++y<l;)if(o[y]!=S[y]){g=o[y]>S[y]?1:-1;break}if(!(g<0))break;for(h=P==l?o:v;P;){if(S[--P]<h[P]){for(y=P;y&&!S[--y];)S[y]=9;--S[y],S[P]+=10}S[P]-=h[P]}for(;!S[0];)S.shift()}_[k++]=g?d:++d,S[0]&&g?S[P]=i[m]||0:S=[i[m]]}while((m++<b||S[0]!==f)&&a--);return _[0]||1==k||(_.shift(),T.e--,w--),k>w&&p(T,w,r.RM,S[0]!==f),T},l.eq=function(e){return 0===this.cmp(e)},l.gt=function(e){return this.cmp(e)>0},l.gte=function(e){return this.cmp(e)>-1},l.lt=function(e){return this.cmp(e)<0},l.lte=function(e){return this.cmp(e)<1},l.minus=l.sub=function(e){var t,r,n,i,o=this,a=o.constructor,s=o.s,u=(e=new a(e)).s;if(s!=u)return e.s=-u,o.plus(e);var c=o.c.slice(),l=o.e,f=e.c,h=e.e;if(!c[0]||!f[0])return f[0]?e.s=-u:c[0]?e=new a(o):e.s=1,e;if(s=l-h){for((i=s<0)?(s=-s,n=c):(h=l,n=f),n.reverse(),u=s;u--;)n.push(0);n.reverse()}else for(r=((i=c.length<f.length)?c:f).length,s=u=0;u<r;u++)if(c[u]!=f[u]){i=c[u]<f[u];break}if(i&&(n=c,c=f,f=n,e.s=-e.s),(u=(r=f.length)-(t=c.length))>0)for(;u--;)c[t++]=0;for(u=t;r>s;){if(c[--r]<f[r]){for(t=r;t&&!c[--t];)c[t]=9;--c[t],c[r]+=10}c[r]-=f[r]}for(;0===c[--u];)c.pop();for(;0===c[0];)c.shift(),--h;return c[0]||(e.s=1,c=[h=0]),e.c=c,e.e=h,e},l.mod=function(e){var t,r=this,n=r.constructor,i=r.s,o=(e=new n(e)).s;if(!e.c[0])throw Error(c);return r.s=e.s=1,t=1==e.cmp(r),r.s=i,e.s=o,t?new n(r):(i=n.DP,o=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=i,n.RM=o,this.minus(r.times(e)))},l.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},l.plus=l.add=function(e){var t,r,n,i=this,o=i.constructor;if(e=new o(e),i.s!=e.s)return e.s=-e.s,i.minus(e);var a=i.e,s=i.c,u=e.e,c=e.c;if(!s[0]||!c[0])return c[0]||(s[0]?e=new o(i):e.s=i.s),e;if(s=s.slice(),t=a-u){for(t>0?(u=a,n=c):(t=-t,n=s),n.reverse();t--;)n.push(0);n.reverse()}for(s.length-c.length<0&&(n=c,c=s,s=n),t=c.length,r=0;t;s[t]%=10)r=(s[--t]=s[t]+c[t]+r)/10|0;for(r&&(s.unshift(r),++u),t=s.length;0===s[--t];)s.pop();return e.c=s,e.e=u,e},l.pow=function(e){var t=this,r=new t.constructor("1"),n=r,o=e<0;if(e!==~~e||e<-1e6||e>i)throw Error(a+"exponent");for(o&&(e=-e);1&e&&(n=n.times(t)),e>>=1;)t=t.times(t);return o?r.div(n):n},l.prec=function(e,t){if(e!==~~e||e<1||e>n)throw Error(a+"precision");return p(new this.constructor(this),e,t)},l.round=function(e,t){if(e===f)e=0;else if(e!==~~e||e<-n||e>n)throw Error(s);return p(new this.constructor(this),e+this.e+1,t)},l.sqrt=function(){var e,t,r,n=this,i=n.constructor,a=n.s,s=n.e,u=new i("0.5");if(!n.c[0])return new i(n);if(a<0)throw Error(o+"No square root");0===(a=Math.sqrt(n+""))||a===1/0?((t=n.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new i(((a=Math.sqrt(t))==1/0?"5e":(a=a.toExponential()).slice(0,a.indexOf("e")+1))+s)):e=new i(a+""),s=e.e+(i.DP+=4);do{r=e,e=u.times(r.plus(n.div(r)))}while(r.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return p(e,(i.DP-=4)+e.e+1,i.RM)},l.times=l.mul=function(e){var t,r=this,n=r.constructor,i=r.c,o=(e=new n(e)).c,a=i.length,s=o.length,u=r.e,c=e.e;if(e.s=r.s==e.s?1:-1,!i[0]||!o[0])return e.c=[e.e=0],e;for(e.e=u+c,a<s&&(t=i,i=o,o=t,c=a,a=s,s=c),t=new Array(c=a+s);c--;)t[c]=0;for(u=s;u--;){for(s=0,c=a+u;c>u;)s=t[c]+o[u]*i[c-u-1]+s,t[c--]=s%10,s=s/10|0;t[c]=s}for(s?++e.e:t.shift(),u=t.length;!t[--u];)t.pop();return e.c=t,e},l.toExponential=function(e,t){var r=this,i=r.c[0];if(e!==f){if(e!==~~e||e<0||e>n)throw Error(s);for(r=p(new r.constructor(r),++e,t);r.c.length<e;)r.c.push(0)}return d(r,!0,!!i)},l.toFixed=function(e,t){var r=this,i=r.c[0];if(e!==f){if(e!==~~e||e<0||e>n)throw Error(s);for(e=e+(r=p(new r.constructor(r),e+r.e+1,t)).e+1;r.c.length<e;)r.c.push(0)}return d(r,!1,!!i)},l.toJSON=l.toString=function(){var e=this,t=e.constructor;return d(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},l.toNumber=function(){var e=Number(d(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(o+"Imprecise conversion");return e},l.toPrecision=function(e,t){var r=this,i=r.constructor,o=r.c[0];if(e!==f){if(e!==~~e||e<1||e>n)throw Error(a+"precision");for(r=p(new i(r),e,t);r.c.length<e;)r.c.push(0)}return d(r,e<=r.e||r.e<=i.NE||r.e>=i.PE,!!o)},l.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(o+"valueOf disallowed");return d(e,e.e<=t.NE||e.e>=t.PE,!0)},r=function e(){function t(r){var n=this;if(!(n instanceof t))return r===f?e():new t(r);if(r instanceof t)n.s=r.s,n.e=r.e,n.c=r.c.slice();else{if("string"!=typeof r){if(!0===t.strict&&"bigint"!=typeof r)throw TypeError(a+"value");r=0===r&&1/r<0?"-0":String(r)}!function(e,t){var r,n,i;if(!h.test(t))throw Error(a+"number");e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(r=t.indexOf("."))>-1&&(t=t.replace(".",""));(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length);for(i=t.length,n=0;n<i&&"0"==t.charAt(n);)++n;if(n==i)e.c=[e.e=0];else{for(;i>0&&"0"==t.charAt(--i););for(e.e=r-n-1,e.c=[],r=0;n<=i;)e.c[r++]=+t.charAt(n++)}}(n,r)}n.constructor=t}return t.prototype=l,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.strict=false,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}(),r.default=r.Big=r,void 0!==t&&t.exports?t.exports=r:e.Big=r}(this)},{}],18:[function(e,t,r){},{}],19:[function(e,t,r){arguments[4][18][0].apply(r,arguments)},{dup:18}],20:[function(e,t,r){(function(t){(function(){var t=e("base64-js"),n=e("ieee754");r.Buffer=a,r.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},r.INSPECT_MAX_BYTES=50;var i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|h(e,t),n=o(r),i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_typeof(e));if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return n.__proto__=a.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);var i=function(e){if(a.isBuffer(e)){var t=0|f(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||B(e.length)?o(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_typeof(e))}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|f(e))}function l(e){for(var t=e.length<0?0:0|f(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+_typeof(e));var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(i)return n?-1:I(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function d(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),B(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(c(e,o+h)!==c(t,h)){f=!1;break}if(f)return o}return-1}function v(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(B(s))return a;e[r+a]=s}return a}function m(e,t,r,n){return U(I(t,e.length-r),e,r,n)}function b(e,t,r,n){return U(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return b(e,t,r,n)}function P(e,t,r,n){return U(F(t),e,r,n)}function T(e,t,r,n){return U(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function _(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=w));return r}(n)}r.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,r){return s(e,t,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(V(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),V(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(V(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?k(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,t,r,n,i){if(V(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+_typeof(e));if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),u=Math.min(o,s),c=this.slice(n,i),l=e.slice(t,r),f=0;f<u;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return m(this,e,t,r);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return S(this,e,t,r);case"base64":return P(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function x(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function O(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=D(e[o]);return i}function A(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function C(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,r,i,o){return t=+t,r>>>=0,o||N(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function L(e,t,r,i,o){return t=+t,r>>>=0,o||N(e,0,r,8),n.write(e,t,r,i,52,8),r+8}a.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||C(e,4,this.length),n.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),n.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),n.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),n.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||j(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||j(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,n),u=s.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=s[o%u]}return this};var M=/[^+/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function I(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":16,buffer:20,ieee754:67}],21:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],22:[function(e,t,r){var n=e("fable-serviceproviderbase"),i=e("./LinkedList.js"),o=function(e){function t(e,r,n){var o;return _classCallCheck2(this,t),(o=_callSuper(this,t,void 0===e?[{}]:[e,r,n])).serviceType="ObjectCache",o._HashMap={},o._RecordMap={},o._List=new i,o.maxLength=0,o.maxAge=0,_possibleConstructorReturn(o)}return _inherits(t,e),_createClass2(t,[{key:"RecordMap",get:function(){return this._RecordMap}},{key:"put",value:function(e,t){if(this._HashMap.hasOwnProperty(t))return this._HashMap[t].Datum=e,this._RecordMap[t]=e,this._HashMap[t].Datum;var r=this._List.push(e,t);return this._HashMap[r.Hash]=r,this._RecordMap[t]=e,this.maxLength>0&&this._List.length>this.maxLength&&(r=this._List.pop(),delete this._RecordMap[r.Hash],delete this._HashMap[r.Hash]),r.Metadata.Created=+new Date,r.Datum}},{key:"read",value:function(e){return!!this._HashMap.hasOwnProperty(e)&&this._HashMap[e].Datum}},{key:"touch",value:function(e){if(!this._HashMap.hasOwnProperty(e))return!1;var t=this._List.remove(this._HashMap[e]);return delete this._RecordMap[e],delete this._HashMap[e],this.put(t.Datum,t.Hash)}},{key:"expire",value:function(e){if(!this._HashMap.hasOwnProperty(e))return!1;var t=this._HashMap[e];return t=this._List.remove(t),delete this._RecordMap[t.Hash],delete this._HashMap[t.Hash],t}},{key:"pruneBasedOnExpiration",value:function(e,t){var r=void 0===t?[]:t;if(this.maxAge<1)return e(r);for(var n=+new Date,i=Object.keys(this._HashMap),o=0;o<i.length;o++)n-this._HashMap[i[o]].Metadata.Created>=this.maxAge&&r.push(this.expire(i[o]));e(r)}},{key:"pruneBasedOnLength",value:function(e,t){var r=void 0===t?[]:t;if(this.maxLength>0)for(;this._List.length>this.maxLength;)r.push(this._List.pop());return e(r)}},{key:"pruneCustom",value:function(e,t,r){for(var n=void 0===r?[]:r,i=Object.keys(this._HashMap),o=0;o<i.length;o++){var a=this._HashMap[i[o]];t(a.Datum,a.Hash,a)&&n.push(this.expire(i[o]))}e(n)}},{key:"prune",value:function(e){var t=this,r=[];if(this._List.length<1)return e(r);this.pruneBasedOnExpiration((function(n){t.pruneBasedOnLength(e,r)}),r)}},{key:"getNode",value:function(e){return!!this._HashMap.hasOwnProperty(e)&&this._HashMap[e]}}]),t}(n);t.exports=o},{"./LinkedList.js":24,"fable-serviceproviderbase":51}],23:[function(e,t,r){var n=_createClass2((function e(){_classCallCheck2(this,e),this.Hash=!1,this.Datum=!1,this.Metadata={},this.LeftNode=!1,this.RightNode=!1,this.__ISNODE=!0}));t.exports=n},{}],24:[function(e,t,r){var n=e("./LinkedList-Node.js"),i=function(){function e(){_classCallCheck2(this,e),this.totalNodes=0,this.length=0,this.head=!1,this.tail=!1}return _createClass2(e,[{key:"initializeNode",value:function(e,t){if(void 0===e)return!1;this.totalNodes++;var r=void 0!==t?t:"NODE[".concat(this.totalNodes,"]"),i=new n;return i.Hash=r,i.Datum=e,i}},{key:"append",value:function(e,t){var r=this.initializeNode(e,t);return!!r&&(this.length++,1==this.length?(this.head=r,this.tail=r,r):(this.tail.RightNode=r,r.LeftNode=this.tail,this.tail=r,r))}},{key:"push",value:function(e,t){return this.append(e,t)}},{key:"prepend",value:function(e,t){var r=this.initializeNode(e,t);return!!r&&(this.length++,1==this.length?(this.head=r,this.tail=r,r):(this.head.LeftNode=r,r.RightNode=this.head,this.head=r,r))}},{key:"remove",value:function(e){return void 0!==e&&(!!e.__ISNODE&&(this.length--,this.length<1?(this.head=!1,this.tail=!1,e):e.LeftNode&&e.RightNode?(e.LeftNode.RightNode=e.RightNode,e.RightNode.LeftNode=e.LeftNode,e.RightNode=!1,e.LeftNode=!1,e):e.LeftNode?(e.LeftNode.RightNode=!1,this.tail=e.LeftNode,e.LeftNode=!1,e):(e.RightNode.LeftNode=!1,this.head=e.RightNode,e.RightNode=!1,e)))}},{key:"pop",value:function(){return this.remove(this.head)}},{key:"each",value:function(e,t){var r=this;if(this.length<1)return t();var n=!1;return function i(o){if(o)return t(o);if(n){if(!n.RightNode)return t();n=n.RightNode}else n=r.head;e(n.Datum,n.Hash,i)}()}},{key:"seek",value:function(e){if(!e)return!1;if(this.length<1)return!1;if(e>=this.length)return!1;for(var t=this.head,r=0;r<e;r++)t=t.RightNode;return t}}]),e}();t.exports=i},{"./LinkedList-Node.js":23}],25:[function(e,t,r){var n=e("get-intrinsic"),i=e("./"),o=i(n("String.prototype.indexOf"));t.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},{"./":26,"get-intrinsic":59}],26:[function(e,t,r){var n=e("function-bind"),i=e("get-intrinsic"),o=e("set-function-length"),a=e("es-errors/type"),s=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||n.call(u,s),l=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}t.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(n,u,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var h=function(){return c(n,s,arguments)};l?l(t.exports,"apply",{value:h}):t.exports.apply=h},{"es-errors/type":42,"function-bind":58,"get-intrinsic":59,"set-function-length":98}],27:[function(e,t,r){r.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},n=(t||{}).decode||o,i=0;for(;i<e.length;){var a=e.indexOf("=",i);if(-1===a)break;var u=e.indexOf(";",i);if(-1===u)u=e.length;else if(u<a){i=e.lastIndexOf(";",a-1)+1;continue}var c=e.slice(i,a).trim();if(void 0===r[c]){var l=e.slice(a+1,u).trim();34===l.charCodeAt(0)&&(l=l.slice(1,-1)),r[c]=s(l,n)}i=u+1}return r},r.serialize=function(e,t,r){var o=r||{},s=o.encode||a;if("function"!=typeof s)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var u=s(t);if(u&&!i.test(u))throw new TypeError("argument val is invalid");var c=e+"="+u;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(o.domain){if(!i.test(o.domain))throw new TypeError("option domain is invalid");c+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is invalid");c+="; Path="+o.path}if(o.expires){var f=o.expires;if(!function(e){return"[object Date]"===n.call(e)||e instanceof Date}(f)||isNaN(f.valueOf()))throw new TypeError("option expires is invalid");c+="; Expires="+f.toUTCString()}o.httpOnly&&(c+="; HttpOnly");o.secure&&(c+="; Secure");o.partitioned&&(c+="; Partitioned");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return c};var n=Object.prototype.toString,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function o(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function a(e){return encodeURIComponent(e)}function s(e,t){try{return t(e)}catch(t){return e}}},{}],28:[function(e,t,r){var n,i;n=this,i=function(){var e=6e4,t=36e5,r="millisecond",n="second",i="minute",o="hour",a="day",s="week",u="month",c="quarter",l="year",f="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,u),o=r-i<0,a=t.clone().add(n+(o?-1:1),u);return+(-(n+(r-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:f,h:o,m:i,s:n,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},m="en",b={};b[m]=g;var S="$isDayjsObject",P=function(e){return e instanceof w||!(!e||!e[S])},T=function e(t,r,n){var i;if(!t)return m;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(i=o),r&&(b[o]=r,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!n&&i&&(m=i),i||!n&&m},_=function(e,t){if(P(e))return e.clone();var r="object"==_typeof(t)?t:{};return r.date=e,r.args=arguments,new w(r)},k=v;k.l=T,k.i=P,k.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function g(e){this.$L=T(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return k},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(e,t){var r=_(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return _(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<_(e)},y.$g=function(e,t,r){return k.u(e)?this[t]:this.set(r,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var r=this,c=!!k.u(t)||t,h=k.p(e),p=function(e,t){var n=k.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return c?n:n.endOf(a)},d=function(e,t){return k.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},g=this.$W,y=this.$M,v=this.$D,m="set"+(this.$u?"UTC":"");switch(h){case l:return c?p(1,0):p(31,11);case u:return c?p(1,y):p(0,y+1);case s:var b=this.$locale().weekStart||0,S=(g<b?g+7:g)-b;return p(c?v-S:v+(6-S),y);case a:case f:return d(m+"Hours",0);case o:return d(m+"Minutes",1);case i:return d(m+"Seconds",2);case n:return d(m+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var s,c=k.p(e),h="set"+(this.$u?"UTC":""),p=(s={},s[a]=h+"Date",s[f]=h+"Date",s[u]=h+"Month",s[l]=h+"FullYear",s[o]=h+"Hours",s[i]=h+"Minutes",s[n]=h+"Seconds",s[r]=h+"Milliseconds",s)[c],d=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var g=this.clone().set(f,1);g.$d[p](d),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[k.p(e)]()},y.add=function(r,c){var f,h=this;r=Number(r);var p=k.p(c),d=function(e){var t=_(h);return k.w(t.date(t.date()+Math.round(e*r)),h)};if(p===u)return this.set(u,this.$M+r);if(p===l)return this.set(l,this.$y+r);if(p===a)return d(1);if(p===s)return d(7);var g=(f={},f[i]=e,f[o]=t,f[n]=1e3,f)[p]||1,y=this.$d.getTime()+r*g;return k.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),o=this.$H,a=this.$m,s=this.$M,u=r.weekdays,c=r.months,l=r.meridiem,f=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].slice(0,o)},p=function(e){return k.s(o%12||12,e,"0")},g=l||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return f(r.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,u,2);case"ddd":return f(r.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(o);case"HH":return k.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,h){var p,d=this,g=k.p(f),y=_(r),v=(y.utcOffset()-this.utcOffset())*e,m=this-y,b=function(){return k.m(d,y)};switch(g){case l:p=b()/12;break;case u:p=b();break;case c:p=b()/3;break;case s:p=(m-v)/6048e5;break;case a:p=(m-v)/864e5;break;case o:p=m/t;break;case i:p=m/e;break;case n:p=m/1e3;break;default:p=m}return h?p:k.a(p)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=T(e,t,!0);return n&&(r.$L=n),r},y.clone=function(){return k.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),x=w.prototype;return _.prototype=x,[["$ms",r],["$s",n],["$m",i],["$H",o],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,w,_),e.$i=!0),_},_.locale=T,_.isDayjs=P,_.unix=function(e){return _(1e3*e)},_.en=b[m],_.Ls=b,_.p={},_},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs=i()},{}],29:[function(e,t,r){var n,i;n=this,i=function(){return function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var i=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return i.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return i.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return i.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return n.bind(this)(o)}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_advancedFormat=i()},{}],30:[function(e,t,r){var n,i;n=this,i=function(){var e="day";return function(t,r,n){var i=function(t){return t.add(4-t.isoWeekday(),e)},o=r.prototype;o.isoWeekYear=function(){return i(this).year()},o.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var r,o,a,s=i(this),u=(r=this.isoWeekYear(),a=4-(o=(this.$u?n.utc:n)().year(r).startOf("year")).isoWeekday(),o.isoWeekday()>4&&(a+=7),o.add(a,e));return s.diff(u,"week")+1},o.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=o.startOf;o.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_isoWeek=i()},{}],31:[function(e,t,r){var n,i;n=this,i=function(){return function(e,t,r){e=e||{};var n=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,r,i){return n.fromToBase(e,t,r,i)}r.en.relativeTime=i,n.fromToBase=function(t,n,o,a,s){for(var u,c,l,f=o.$locale().relativeTime||i,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=h.length,d=0;d<p;d+=1){var g=h[d];g.d&&(u=a?r(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var y=(e.rounding||Math.round)(Math.abs(u));if(l=u>0,y<=g.r||!g.r){y<=1&&d>0&&(g=h[d-1]);var v=f[g.l];s&&(y=s(""+y)),c="string"==typeof v?v.replace("%d",y):v(y,n,g.l,l);break}}if(n)return c;var m=l?f.future:f.past;return"function"==typeof m?m(c):m.replace("%s",c)},n.to=function(e,t){return o(e,t,this,!0)},n.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(a(this),e)},n.fromNow=function(e){return this.from(a(this),e)}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_relativeTime=i()},{}],32:[function(e,t,r){var n,i;n=this,i=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,i){var o,a=function(e,r,n){void 0===n&&(n={});var i=new Date(e),o=function(e,r){void 0===r&&(r={});var n=r.timeZoneName||"short",i=e+"|"+n,o=t[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),t[i]=o),o}(r,n);return o.formatToParts(i)},s=function(t,r){for(var n=a(t,r),o=[],s=0;s<n.length;s+=1){var u=n[s],c=u.type,l=u.value,f=e[c];f>=0&&(o[f]=parseInt(l,10))}var h=o[3],p=24===h?0:h,d=o[0]+"-"+o[1]+"-"+o[2]+" "+p+":"+o[4]+":"+o[5]+":000",g=+t;return(i.utc(d).valueOf()-(g-=g%1e3))/6e4},u=n.prototype;u.tz=function(e,t){void 0===e&&(e=o);var r=this.utcOffset(),n=this.toDate(),a=n.toLocaleString("en-US",{timeZone:e}),s=Math.round((n-new Date(a))/1e3/60),u=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-s,!0);if(t){var c=u.utcOffset();u=u.add(r-c,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),r=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return r&&r.value};var c=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(r,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,r){var n=r&&t,a=r||t||o,u=s(+i(),a);if("string"!=typeof e)return i(e).tz(a);var c=function(e,t,r){var n=e-60*t*1e3,i=s(n,r);if(t===i)return[n,t];var o=s(n-=60*(i-t)*1e3,r);return i===o?[n,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(e,n).valueOf(),u,a),l=c[0],f=c[1],h=i(l).utcOffset(f);return h.$x.$timezone=a,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){o=e}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_timezone=i()},{}],33:[function(e,t,r){var n,i;n=this,i=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var r=o(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(n,i){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(n),null===n))return this;var a=Math.abs(n)<=16?60*n:n,s=this;if(i)return s.$offset=a,s.$u=0===n,s;if(0!==n){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=a.diff;a.diff=function(e,t,r){if(e&&this.$u===e.$u)return h.call(this,e,t,r);var n=this.local(),i=o(e).local();return h.call(n,i,t,r)}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_utc=i()},{}],34:[function(e,t,r){var n,i;n=this,i=function(){var e="week",t="year";return function(r,n,i){var o=n.prototype;o.week=function(r){if(void 0===r&&(r=null),null!==r)return this.add(7*(r-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(t).add(1,t).date(n),a=i(this).endOf(e);if(o.isBefore(a))return 1}var s=i(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),u=this.diff(s,e,!0);return u<0?i(this).startOf("week").week():Math.ceil(u)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_weekOfYear=i()},{}],35:[function(e,t,r){var n;n=this,"object"==_typeof(r)&&void 0!==t?t.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,n=(r<t?r+7:r)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")}}:(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_weekday=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,n=(r<t?r+7:r)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")}}},{}],36:[function(e,t,r){var n=e("has-property-descriptors")(),i=e("get-intrinsic"),o=n&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(e){o=!1}var a=e("es-errors/syntax"),s=e("es-errors/type"),u=e("gopd");t.exports=function(e,t,r){if(!e||"object"!==_typeof(e)&&"function"!=typeof e)throw new s("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!==_typeof(t))throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!u&&u(e,t);if(o)o(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===n&&f?f.enumerable:!n,value:r,writable:null===i&&f?f.writable:!i});else{if(!l&&(n||i||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},{"es-errors/syntax":41,"es-errors/type":42,"get-intrinsic":59,gopd:60,"has-property-descriptors":61}],37:[function(e,t,r){t.exports=EvalError},{}],38:[function(e,t,r){t.exports=Error},{}],39:[function(e,t,r){t.exports=RangeError},{}],40:[function(e,t,r){t.exports=ReferenceError},{}],41:[function(e,t,r){t.exports=SyntaxError},{}],42:[function(e,t,r){t.exports=TypeError},{}],43:[function(e,t,r){t.exports=URIError},{}],44:[function(e,t,r){var n,i="object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,r)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+_typeof(e))}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var i,o,a,s;if(c(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):y(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+_typeof(e));e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=y(u,c);for(r=0;r<c;++r)o(l[r],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,o,a;if(c(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],45:[function(e,t,r){var n=function(e){function t(e,r){var n;return _classCallCheck2(this,t),(n=_callSuper(this,t,[e,r]))._Settings="object"==_typeof(e)?e:{},n.serviceType="Logging-Provider",n.loggerUUID=n.generateInsecureUUID(),n.levels=["trace","debug","info","warn","error","fatal"],n}return _inherits(t,e),_createClass2(t,[{key:"generateInsecureUUID",value:function(){var e=(new Date).getTime();return"LOGSTREAM-xxxxxx-yxxxxx".replace(/[xy]/g,(function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?r:3&r|8).toString(16)}))}},{key:"initialize",value:function(){}},{key:"trace",value:function(e,t){this.write("trace",e,t)}},{key:"debug",value:function(e,t){this.write("debug",e,t)}},{key:"info",value:function(e,t){this.write("info",e,t)}},{key:"warn",value:function(e,t){this.write("warn",e,t)}},{key:"error",value:function(e,t){this.write("error",e,t)}},{key:"fatal",value:function(e,t){this.write("fatal",e,t)}},{key:"write",value:function(e,t,r){return!0}}]),t}(e("fable-serviceproviderbase").CoreServiceProviderBase);t.exports=n},{"fable-serviceproviderbase":51}],46:[function(e,t,r){var n;t.exports=((n={}).console=e("./Fable-Log-Logger-Console.js"),n.default=n.console,n)},{"./Fable-Log-Logger-Console.js":48}],47:[function(e,t,r){t.exports=[{loggertype:"console",streamtype:"console",level:"trace"}]},{}],48:[function(e,t,r){var n=function(e){function t(e,r){var n;_classCallCheck2(this,t),(n=_callSuper(this,t,[e]))._ShowTimeStamps=!("showtimestamps"in n._Settings)||1==n._Settings.showtimestamps,n._FormattedTimeStamps=!("formattedtimestamps"in n._Settings)||1==n._Settings.formattedtimestamps,n._ContextMessage="Context"in n._Settings?"(".concat(n._Settings.Context,")"):"Product"in r._Settings?"(".concat(r._Settings.Product,")"):"Unnamed_Log_Context",n._OutputLogLinesToConsole=!("outputloglinestoconsole"in n._Settings)||n._Settings.outputloglinestoconsole,n._OutputObjectsToConsole=!("outputobjectstoconsole"in n._Settings)||n._Settings.outputobjectstoconsole,n.prefixCache={};for(var i=0;i<=n.levels.length;i++)n.prefixCache[n.levels[i]]="[".concat(n.levels[i],"] ").concat(n._ContextMessage,": "),n._ShowTimeStamps&&(n.prefixCache[n.levels[i]]=" "+n.prefixCache[n.levels[i]]);return n}return _inherits(t,e),_createClass2(t,[{key:"write",value:function(e,t,r){var n="";this._ShowTimeStamps&&this._FormattedTimeStamps?n=(new Date).toISOString():this._ShowTimeStamps&&(n=+new Date);var i="".concat(n).concat(this.prefixCache[e]).concat(t);return this._OutputLogLinesToConsole&&console.log(i),this._OutputObjectsToConsole&&void 0!==r&&console.log(JSON.stringify(r,null,2)),i}}]),t}(e("./Fable-Log-BaseLogger.js"));t.exports=n},{"./Fable-Log-BaseLogger.js":45}],49:[function(e,t,r){var n=e("./Fable-Log-Logger-Console.js"),i=e("fs"),o=e("path"),a=function(e){function t(e,r){var n;return _classCallCheck2(this,t),(n=_callSuper(this,t,[e,r])).logFileRawPath=n._Settings.hasOwnProperty("path")?n._Settings.path:"./".concat(n._ContextMessage,".log"),n.logFilePath=o.normalize(n.logFileRawPath),n.logFileStreamOptions=n._Settings.hasOwnProperty("fileStreamoptions")?n._Settings.fileStreamOptions:{flags:"a",encoding:"utf8"},n.fileWriter=i.createWriteStream(n.logFilePath,n.logFileStreamOptions),n.activelyWriting=!1,n.logLineStrings=[],n.logObjectStrings=[],n.defaultWriteCompleteCallback=function(){},n.defaultBufferFlushCallback=function(){},n}return _inherits(t,e),_createClass2(t,[{key:"closeWriter",value:function(e){var t="function"==typeof e?e:function(){};if(this.fileWriter)return this.fileWriter.end("\n"),this.fileWriter.once("finish",t.bind(this))}},{key:"completeBufferFlushToLogFile",value:function(e){this.activelyWriting=!1;var t="function"==typeof e?e:this.defaultBufferFlushCallback;if(!(this.logLineStrings.length>0))return t();this.flushBufferToLogFile(t)}},{key:"flushBufferToLogFile",value:function(e){if(!this.activelyWriting){this.activelyWriting=!0;var t="function"==typeof e?e:this.defaultBufferFlushCallback,r=this.logLineStrings,n=this.logObjectStrings;this.logLineStrings=[],this.logObjectStrings=[];for(var i="",o=0;o<r.length;o++)i+="".concat(r[o],"\n"),!1!==n[o]&&(i+="".concat(n[o],"\n"));if(this.fileWriter.write(i,"utf8"))return this.completeBufferFlushToLogFile(t);this.fileWriter.once("drain",this.completeBufferFlushToLogFile.bind(this,t))}}},{key:"write",value:function(e,r,n){var i=_get(_getPrototypeOf(t.prototype),"write",this).call(this,e,r,n);this.logLineStrings.push(i),void 0!==n?this.logObjectStrings.push(JSON.stringify(n,null,4)):this.logObjectStrings.push(!1),this.flushBufferToLogFile()}}]),t}(n);t.exports=a},{"./Fable-Log-Logger-Console.js":48,fs:19,path:83}],50:[function(e,t,r){var n=function(t){function r(t,n){var i;_classCallCheck2(this,r),(i=_callSuper(this,r,[t,n])).serviceType="Logging";var o="object"===_typeof(t)?t:{};return i._Settings=o,i._Providers=e("./Fable-Log-DefaultProviders-Node.js"),i._StreamDefinitions="LogStreams"in o?o.LogStreams:e("./Fable-Log-DefaultStreams.json"),i.logStreams=[],i.logProviders={},i.activeLogStreams={},i.logStreamsTrace=[],i.logStreamsDebug=[],i.logStreamsInfo=[],i.logStreamsWarn=[],i.logStreamsError=[],i.logStreamsFatal=[],i.datumDecorator=function(e){return e},i.uuid="string"==typeof o.Product?o.Product:"Default",i}return _inherits(r,t),_createClass2(r,[{key:"addLogger",value:function(e,t){if(e.loggerUUID in this.activeLogStreams)return!1;switch(this.logStreams.push(e),this.activeLogStreams[e.loggerUUID]=!0,t){case"trace":this.logStreamsTrace.push(e);case"debug":this.logStreamsDebug.push(e);case"info":this.logStreamsInfo.push(e);case"warn":this.logStreamsWarn.push(e);case"error":this.logStreamsError.push(e);case"fatal":this.logStreamsFatal.push(e)}return!0}},{key:"setDatumDecorator",value:function(e){this.datumDecorator="function"==typeof e?e:function(e){return e}}},{key:"trace",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsTrace.length;n++)this.logStreamsTrace[n].trace(e,r)}},{key:"debug",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsDebug.length;n++)this.logStreamsDebug[n].debug(e,r)}},{key:"info",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsInfo.length;n++)this.logStreamsInfo[n].info(e,r)}},{key:"warn",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsWarn.length;n++)this.logStreamsWarn[n].warn(e,r)}},{key:"error",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsError.length;n++)this.logStreamsError[n].error(e,r)}},{key:"fatal",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsFatal.length;n++)this.logStreamsFatal[n].fatal(e,r)}},{key:"initialize",value:function(){for(var e=0;e<this._StreamDefinitions.length;e++){var t=Object.assign({loggertype:"default",streamtype:"console",level:"info"},this._StreamDefinitions[e]);t.loggertype in this._Providers?this.addLogger(new this._Providers[t.loggertype](t,this),t.level):console.log("Error initializing log stream: bad loggertype in stream definition ".concat(JSON.stringify(t)))}for(var r=0;r<this.logStreams.length;r++)this.logStreams[r].initialize()}},{key:"logTime",value:function(e,t){var r=void 0!==e?e:"Time",n=new Date;this.info("".concat(r," ").concat(n," (epoch ").concat(+n,")"),t)}},{key:"getTimeStamp",value:function(){return+new Date}},{key:"getTimeDelta",value:function(e){return+new Date-e}},{key:"logTimeDelta",value:function(e,t,r){var n=void 0!==t?t:"Time Measurement",i=(_typeof(r),+new Date);this.info("".concat(n," logged at (epoch ").concat(+i,") took (").concat(e,"ms)"),r)}},{key:"logTimeDeltaHuman",value:function(e,t,r){var n=void 0!==t?t:"Time Measurement",i=+new Date,o=parseInt(e%1e3),a=parseInt(e/1e3%60),s=parseInt(e/6e4%60),u=parseInt(e/36e5);o=o<10?"00"+o:o<100?"0"+o:o,a=a<10?"0"+a:a,s=s<10?"0"+s:s,u=u<10?"0"+u:u,this.info("".concat(n," logged at (epoch ").concat(+i,") took (").concat(e,"ms) or (").concat(u,":").concat(s,":").concat(a,".").concat(o,")"),r)}},{key:"logTimeDeltaRelative",value:function(e,t,r){this.logTimeDelta(this.getTimeDelta(e),t,r)}},{key:"logTimeDeltaRelativeHuman",value:function(e,t,r){this.logTimeDeltaHuman(this.getTimeDelta(e),t,r)}}]),r}(e("fable-serviceproviderbase").CoreServiceProviderBase);t.exports=n,t.exports.LogProviderBase=e("./Fable-Log-BaseLogger.js"),t.exports.LogProviderConsole=e("./Fable-Log-Logger-Console.js"),t.exports.LogProviderFlatfile=e("./Fable-Log-Logger-SimpleFlatFile.js")},{"./Fable-Log-BaseLogger.js":45,"./Fable-Log-DefaultProviders-Node.js":46,"./Fable-Log-DefaultStreams.json":47,"./Fable-Log-Logger-Console.js":48,"./Fable-Log-Logger-SimpleFlatFile.js":49,"fable-serviceproviderbase":51}],51:[function(e,t,r){var n=function(){function e(t,r,n){_classCallCheck2(this,e),"object"===_typeof(t)&&t.isFable?this.connectFable(t):this.fable=!1,this.fable?(this.UUID=t.getUUID(),this.options="object"===_typeof(r)?r:{}):(this.options="object"!==_typeof(t)||t.isFable?"object"===_typeof(r)?r:{}:t,this.UUID="CORE-SVC-".concat(Math.floor(89999*Math.random()+1e4))),this.serviceType="Unknown-".concat(this.UUID),this.Hash="string"==typeof n?n:this.fable||"string"!=typeof r?"".concat(this.UUID):r}return _createClass2(e,[{key:"connectFable",value:function(e){if("object"!==_typeof(e)||!e.isFable){var t="Fable Service Provider Base: Cannot connect to Fable, invalid Fable object passed in. The pFable parameter was a [".concat(_typeof(e),"].}");return console.log(t),new Error(t)}return this.fable||(this.fable=e),this.log||(this.log=this.fable.Logging),this.services||(this.services=this.fable.services),this.servicesMap||(this.servicesMap=this.fable.servicesMap),!0}}]),e}();_defineProperty2(n,"isFableService",!0),t.exports=n,t.exports.CoreServiceProviderBase=n},{}],52:[function(e,t,r){t.exports={Product:"ApplicationNameHere",ProductVersion:"0.0.0",ConfigFile:!1,LogStreams:[{level:"trace"}]}},{}],53:[function(e,t,r){(function(r){(function(){var n=e("precedent"),i=function(){function e(t){_classCallCheck2(this,e),this.templateProcessor=new n,this.templateProcessor.addPattern("${","}",(function(e){var t=e.trim(),n=t.indexOf("|"),i=n>=0?t.substring(n+1):"",o=n>-1?t.substring(0,n):t;return o in r.env?r.env[o]:i}))}return _createClass2(e,[{key:"parseSetting",value:function(e){return this.templateProcessor.parseString(e)}}]),e}();t.exports=i}).call(this)}).call(this,e("_process"))},{_process:87,precedent:84}],54:[function(e,t,r){var n=e("fable-serviceproviderbase").CoreServiceProviderBase,i=e("./Fable-Settings-TemplateProcessor.js"),o=function(t){function r(t,n){var o;_classCallCheck2(this,r),(o=_callSuper(this,r,[t,n])).serviceType="SettingsManager",o.settingsTemplateProcessor=new i,o._configureEnvTemplating(t),o.default=o.buildDefaultSettings();var a=o.merge(t,o.buildDefaultSettings());if(o.base=JSON.parse(JSON.stringify(a)),a.DefaultConfigFile)try{a=o.merge(e(a.DefaultConfigFile),a)}catch(e){console.log("Fable-Settings Warning: Default configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+e)}if(a.ConfigFile)try{a=o.merge(e(a.ConfigFile),a)}catch(e){console.log("Fable-Settings Warning: Configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+e)}return o.settings=a,o}return _inherits(r,t),_createClass2(r,[{key:"buildDefaultSettings",value:function(){return JSON.parse(JSON.stringify(e("./Fable-Settings-Default")))}},{key:"_configureEnvTemplating",value:function(e){this._PerformEnvTemplating=!e||!0!==e.NoEnvReplacement}},{key:"_resolveEnv",value:function(e){for(var t in e)"object"===_typeof(e[t])?this._resolveEnv(e[t]):"string"==typeof e[t]&&(e[t]=this.settingsTemplateProcessor.parseSetting(e[t]))}},{key:"_isObject",value:function(e){return"object"===_typeof(e)&&!Array.isArray(e)}},{key:"_deepMergeObjects",value:function(e,t){var r=this;if(t&&this._isObject(t))return Object.keys(t).forEach((function(n){var i=t[n];if(r._isObject(i)){var o=e[n];if(o&&r._isObject(o))return void r._deepMergeObjects(o,i)}e[n]=i})),e}},{key:"merge",value:function(e,t){var r="object"===_typeof(e)?e:{},n="object"===_typeof(t)?t:this.settings,i=JSON.parse(JSON.stringify(r));return n=this._deepMergeObjects(n,i),this._PerformEnvTemplating&&this._resolveEnv(n),this._configureEnvTemplating(n),n}},{key:"fill",value:function(e){var t="object"===_typeof(e)?e:{},r=JSON.parse(JSON.stringify(t));return this.settings=this._deepMergeObjects(r,this.settings),this.settings}}]),r}(n);t.exports=o,t.exports.new=function(e){return new o(e)}},{"./Fable-Settings-Default":52,"./Fable-Settings-TemplateProcessor.js":53,"fable-serviceproviderbase":51}],55:[function(e,t,r){var n=function(){function e(){_classCallCheck2(this,e),this.getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)}return _createClass2(e,[{key:"generateWhatWGBytes",value:function(){var e=new Uint8Array(16);return this.getRandomValues(e),e}},{key:"generateRandomBytes",value:function(){for(var e,t=new Uint8Array(16),r=0;r<16;r++)3&r||(e=4294967296*Math.random()),t[r]=e>>>((3&r)<<3)&255;return t}},{key:"generate",value:function(){return this.getRandomValues?this.generateWhatWGBytes():this.generateRandomBytes()}}]),e}();t.exports=n},{}],56:[function(e,t,r){var n=e("fable-serviceproviderbase").CoreServiceProviderBase,i=e("./Fable-UUID-Random.js"),o=function(e){function t(e,r){var n;_classCallCheck2(this,t),(n=_callSuper(this,t,[e,r])).serviceType="UUID",n._UUIDModeRandom="object"===_typeof(e)&&"UUIDModeRandom"in e&&1==e.UUIDModeRandom,n._UUIDLength="object"===_typeof(e)&&"UUIDLength"in e?e.UUIDLength+0:8,n._UUIDRandomDictionary="object"===_typeof(e)&&"UUIDDictionary"in e?e.UUIDDictionary+0:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n.randomByteGenerator=new i,n._HexLookup=[];for(var o=0;o<256;++o)n._HexLookup[o]=(o+256).toString(16).substr(1);return n}return _inherits(t,e),_createClass2(t,[{key:"bytesToUUID",value:function(e){var t=0;return[this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]]].join("")}},{key:"generateUUIDv4",value:function(){new Array(16);var e=this.randomByteGenerator.generate();return e[6]=15&e[6]|64,e[8]=63&e[8]|128,this.bytesToUUID(e)}},{key:"generateRandom",value:function(){for(var e="",t=0;t<this._UUIDLength;t++)e+=this._UUIDRandomDictionary.charAt(Math.floor(Math.random()*(this._UUIDRandomDictionary.length-1)));return e}},{key:"getUUID",value:function(){return this._UUIDModeRandom?this.generateRandom():this.generateUUIDv4()}}]),t}(n);t.exports=o,t.exports.new=function(e){return new o(e)}},{"./Fable-UUID-Random.js":55,"fable-serviceproviderbase":51}],57:[function(e,t,r){var n=Object.prototype.toString,i=Math.max,o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r};t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==n.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r}(arguments,1),s=i(0,t.length-a.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(r=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var n=t.apply(this,o(a,arguments));return Object(n)===n?n:this}return t.apply(e,o(a,arguments))})),t.prototype){var l=function(){};l.prototype=t.prototype,r.prototype=new l,l.prototype=null}return r}},{}],58:[function(e,t,r){var n=e("./implementation");t.exports=Function.prototype.bind||n},{"./implementation":57}],59:[function(e,t,r){var n,i=e("es-errors"),o=e("es-errors/eval"),a=e("es-errors/range"),s=e("es-errors/ref"),u=e("es-errors/syntax"),c=e("es-errors/type"),l=e("es-errors/uri"),f=Function,h=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var d=function(){throw new c},g=p?function(){try{return d}catch(e){try{return p(arguments,"callee").get}catch(e){return d}}}():d,y=e("has-symbols")(),v=e("has-proto")(),m=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},S="undefined"!=typeof Uint8Array&&m?m(Uint8Array):n,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&m?m([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&m?m(m([][Symbol.iterator]())):n,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":_typeof(JSON))?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&m?m((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&m?m((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&m?m(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":g,"%TypedArray%":S,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(m)try{null.error}catch(e){var T=m(m(e));P["%Error.prototype%"]=T}var _=function e(t){var r;if("%AsyncFunction%"===t)r=h("async function () {}");else if("%GeneratorFunction%"===t)r=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=h("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&m&&(r=m(i.prototype))}return P[t]=r,r},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=e("function-bind"),x=e("hasown"),E=w.call(Function.call,Array.prototype.concat),O=w.call(Function.apply,Array.prototype.splice),A=w.call(Function.call,String.prototype.replace),C=w.call(Function.call,String.prototype.slice),j=w.call(Function.call,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,L=function(e,t){var r,n=e;if(x(k,n)&&(n="%"+(r=k[n])[0]+"%"),x(P,n)){var i=P[n];if(i===b&&(i=_(n)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=C(e,0,1),r=C(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return A(e,N,(function(e,t,r,i){n[n.length]=r?A(i,R,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=L("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],O(r,E([0,1],l)));for(var f=1,h=!0;f<r.length;f+=1){var d=r[f],g=C(d,0,1),y=C(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&h||(s=!0),x(P,o="%"+(n+="."+d)+"%"))a=P[o];else if(null!=a){if(!(d in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&f+1>=r.length){var v=p(a,d);a=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[d]}else h=x(a,d),a=a[d];h&&!s&&(P[o]=a)}}return a}},{"es-errors":38,"es-errors/eval":37,"es-errors/range":39,"es-errors/ref":40,"es-errors/syntax":41,"es-errors/type":42,"es-errors/uri":43,"function-bind":58,"has-proto":62,"has-symbols":63,hasown:65}],60:[function(e,t,r){var n=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}t.exports=n},{"get-intrinsic":59}],61:[function(e,t,r){var n=e("get-intrinsic")("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},t.exports=i},{"get-intrinsic":59}],62:[function(e,t,r){var n={foo:{}},i=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!({__proto__:null}instanceof i)}},{}],63:[function(e,t,r){var n="undefined"!=typeof Symbol&&Symbol,i=e("./shams");t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"===_typeof(n("foo"))&&("symbol"===_typeof(Symbol("bar"))&&i())))}},{"./shams":64}],64:[function(e,t,r){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===_typeof(Symbol.iterator))return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},{}],65:[function(e,t,r){var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=e("function-bind");t.exports=o.call(n,i)},{"function-bind":58}],66:[function(e,t,r){var n=e("http"),i=e("url"),o=t.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},{http:102,url:123}],67:[function(e,t,r){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,p=e[t+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+p]=255&a,p+=d,a/=256,c-=8);e[r+p-d]|=128*g}},{}],68:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],69:[function(e,t,r){t.exports=function(e,t){return t.startsWith(e)&&t.endsWith(e)?t.substring(1,t.length-1):t}},{}],70:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n,this.translationTable={}}return _createClass2(e,[{key:"translationCount",value:function(){return Object.keys(this.translationTable).length}},{key:"addTranslation",value:function(e){var t=this;if("object"!=_typeof(e))return this.logError("Hash translation addTranslation expected a translation be type object but was passed in ".concat(_typeof(e))),!1;Object.keys(e).forEach((function(r){"string"!=typeof e[r]?t.logError("Hash translation addTranslation expected a translation destination hash for [".concat(r,"] to be a string but the referrant was a ").concat(_typeof(e[r]))):t.translationTable[r]=e[r]}))}},{key:"removeTranslationHash",value:function(e){e in this.translationTable&&delete this.translationTable[e]}},{key:"removeTranslation",value:function(e){var t=this;return"string"==typeof e?(this.removeTranslationHash(e),!0):"object"==_typeof(e)?(Object.keys(e).forEach((function(e){t.removeTranslation(e)})),!0):(this.logError("Hash translation removeTranslation expected either a string or an object but the passed-in translation was type ".concat(_typeof(e))),!1)}},{key:"clearTranslations",value:function(){this.translationTable={}}},{key:"translate",value:function(e){return e in this.translationTable?this.translationTable[e]:e}}]),e}();t.exports=i},{"./Manyfest-LogToConsole.js":71}],71:[function(e,t,r){t.exports=function(e,t){var r="string"==typeof e?e:"";console.log("[Manyfest] ".concat(r)),t&&console.log(JSON.stringify(t))}},{}],72:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=e("./Manyfest-ObjectAddress-GetValue.js"),o={DataFormat:e("./Manyfest-ObjectAddress-Parser.js")},a=function(){function e(){_classCallCheck2(this,e),this.getObjectValueClass=new i(n,n)}return _createClass2(e,[{key:"checkAddressExists",value:function(e,t,r){if("object"!=_typeof(e))return!1;if("string"!=typeof t)return!1;var i=void 0===r?e:r,a=o.DataFormat.stringGetFirstSegment(t);if(a.length==t.length){var s=t.indexOf("["),u=t.indexOf("]"),c=t.indexOf("(");if(c>0&&o.DataFormat.stringCountEnclosures(t)>0){var l=t.substring(0,c).trim();return l in e&&"function"==typeof e[l]}if(s>0&&u>s&&u-s>1){var f=t.substring(0,s).trim();if("object"!==_typeof(e[f]))return!1;var h=t.substring(s+1,u).trim(),p=parseInt(h,10);return Array.isArray(e[f])!=isNaN(p)&&(isNaN(p)?(h=this.cleanWrapCharacters('"',h),h=this.cleanWrapCharacters("`",h),(h=this.cleanWrapCharacters("'",h))in e[f]):p in e[f])}return t in e}var d=a,g=t.substring(a.length+1),y=d.indexOf("["),v=d.indexOf("]"),m=d.indexOf("(");if(m>0&&o.DataFormat.stringCountEnclosures(d)>0){var b=d.substring(0,m).trim();if("function"==!_typeof(e[b]))return!1;var S=o.DataFormat.stringGetSegments(o.DataFormat.stringGetEnclosureValueByIndex(d.substring(b.length),0),",");if(0==S.length||""==S[0]){if(!(b in e))return n.log("Function ".concat(b," does not exist (address [").concat(t,"])")),!1;try{return this.checkAddressExists(e[b].apply(e),g,i)}catch(e){return n.log("Error calling function ".concat(b," (address [").concat(t,"]): ").concat(e.message)),!1}}else{for(var P=[],T=void 0===r?e:r,_=0;_<S.length;_++)P.push(this.getObjectValueClass.getValueAtAddress(T,S[_]));if(!(b in e))return n.log("Function ".concat(b," does not exist (address [").concat(t,"])")),!1;try{return this.checkAddressExists(e[b].apply(e,P),g,T)}catch(e){return n.log("Error calling function ".concat(b," (address [").concat(t,"]): ").concat(e.message)),!1}}}else if(y>0&&v>y&&v-y>1){var k=d.substring(0,y).trim(),w=d.substring(y+1,v).trim(),x=parseInt(w,10);return Array.isArray(e[k])!=isNaN(x)&&(isNaN(x)?(w=this.cleanWrapCharacters('"',w),w=this.cleanWrapCharacters("`",w),w=this.cleanWrapCharacters("'",w),this.checkAddressExists(e[k][w],g,i)):this.checkAddressExists(e[k][x],g,i))}return(!(d in e)||"object"===_typeof(e[d]))&&(d in e||(e[d]={}),this.checkAddressExists(e[d],g,i))}}]),e}();t.exports=a},{"./Manyfest-LogToConsole.js":71,"./Manyfest-ObjectAddress-GetValue.js":74,"./Manyfest-ObjectAddress-Parser.js":75}],73:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=e("./Manyfest-CleanWrapCharacters.js"),o=e("../source/Manyfest-ParseConditionals.js"),a=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n,this.cleanWrapCharacters=i}return _createClass2(e,[{key:"checkRecordFilters",value:function(e,t){return o(this,e,t)}},{key:"deleteValueAtAddress",value:function(e,t,r){if("object"==_typeof(e)&&"string"==typeof t){var n="";"string"==typeof r&&(n=r);var i=t.indexOf(".");if(-1==i){var o=t.indexOf("["),a=t.indexOf("]"),s=t.indexOf("{}");if(o>0&&a>o&&a-o>1){var u=t.substring(0,o).trim();if("object"!==_typeof(e[u]))return!1;var c=t.substring(o+1,a).trim(),l=parseInt(c,10);return Array.isArray(e[u])!=isNaN(l)&&(isNaN(l)?(c=this.cleanWrapCharacters('"',c),c=this.cleanWrapCharacters("`",c),c=this.cleanWrapCharacters("'",c),delete e[u][c],!0):(delete e[u][l],!0))}if(o>0&&a>o&&a-o==1){var f=t.substring(0,o).trim();if(!Array.isArray(e[f]))return!1;for(var h=e[f],p=h.length-1;p>=0;p--){this.checkRecordFilters(t,h[p])&&h.splice(p,1)}return!0}if(s>0){var d=t.substring(0,s).trim();return"object"==_typeof(e[d])&&(delete e[d],!0)}return delete e[t],!0}var g=t.substring(0,i),y=t.substring(i+1),v=g.indexOf("["),m=g.indexOf("]");if(v>0&&m>v&&m-v>1){var b=g.substring(0,v).trim(),S=g.substring(v+1,m).trim(),P=parseInt(S,10);return Array.isArray(e[b])!=isNaN(P)&&("object"==_typeof(e[b])&&(isNaN(P)?(S=this.cleanWrapCharacters('"',S),S=this.cleanWrapCharacters("`",S),S=this.cleanWrapCharacters("'",S),n="".concat(n).concat(n.length>0?".":"").concat(g),this.deleteValueAtAddress(e[b][S],y,n)):(n="".concat(n).concat(n.length>0?".":"").concat(g),this.deleteValueAtAddress(e[b][P],y,n))))}if(v>0&&m>v&&m-v==1){var T=t.substring(0,v).trim();if(!Array.isArray(e[T]))return!1;var _=e[T];n="".concat(n).concat(n.length>0?".":"").concat(T);for(var k={},w=0;w<_.length;w++){var x="".concat(n,"[").concat(w,"]"),E=this.deleteValueAtAddress(e[T][w],y,x);k["".concat(x,".").concat(y)]=E}return k}var O=t.indexOf("{}");if(O>0){var A=t.substring(0,O).trim();if("object"!=_typeof(e[A]))return!1;var C=e[A],j=Object.keys(C);n="".concat(n).concat(n.length>0?".":"").concat(A);for(var N={},R=0;R<j.length;R++){var L="".concat(n,".").concat(j[R]),M=this.deleteValueAtAddress(e[A][j[R]],y,L);this.checkRecordFilters(t,M)&&(N["".concat(L,".").concat(y)]=M)}return N}return g in e&&"object"!==_typeof(e[g])?void 0:g in e?(n="".concat(n).concat(n.length>0?".":"").concat(g),this.deleteValueAtAddress(e[g],y,n)):(n="".concat(n).concat(n.length>0?".":"").concat(g),e[g]={},this.deleteValueAtAddress(e[g],y,n))}}}]),e}();t.exports=a},{"../source/Manyfest-ParseConditionals.js":78,"./Manyfest-CleanWrapCharacters.js":69,"./Manyfest-LogToConsole.js":71}],74:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=e("./Manyfest-CleanWrapCharacters.js"),o=e("../source/Manyfest-ParseConditionals.js"),a={DataFormat:e("./Manyfest-ObjectAddress-Parser.js")},s=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n,this.cleanWrapCharacters=i}return _createClass2(e,[{key:"checkRecordFilters",value:function(e,t){return o(this,e,t)}},{key:"getValueAtAddress",value:function(e,t,r,n){if("object"==_typeof(e)&&"string"==typeof t){var i="";"string"==typeof r&&(i=r);var o=void 0===n?e:n,s=a.DataFormat.stringGetFirstSegment(t);if(""==s){for(var u=a.DataFormat.stringGetSegments(i),c=0,l=0;l<t.length&&"."==t.charAt(l);l++)c++;var f=u.length-c;if(f<0)return;var h=t.slice(c);return f>0&&(h="".concat(u.slice(0,f).join("."),".").concat(h)),this.logInfo("Back-navigation detected. Recursing back to address [".concat(h,"]")),this.getValueAtAddress(o,h)}if(s.length!=t.length){var p=s,d=t.substring(s.length+1),g=p.indexOf("["),y=p.indexOf("]"),v=p.indexOf("(");if(v>0&&a.DataFormat.stringCountEnclosures(p)>0){var m=p.substring(0,v).trim();if(i="".concat(i).concat(i.length>0?".":"").concat(p),"function"==!_typeof(e[m]))return!1;var b=a.DataFormat.stringGetSegments(a.DataFormat.stringGetEnclosureValueByIndex(p.substring(m.length),0),",");if(0==b.length||""==b[0]){if(!(m in e))return console.log("Function ".concat(m," does not exist (address [").concat(t,"])")),!1;try{return this.getValueAtAddress(e[m].apply(e),d,i,o)}catch(e){return console.log("Error in getValueAtAddress calling function ".concat(m," (address [").concat(t,"]): ").concat(e.message)),!1}}else{for(var S=[],P=void 0===n?e:n,T=0;T<b.length;T++)!(b[T].length>=2)||'"'!=b[T].charAt(0)&&"'"!=b[T].charAt(0)&&"`"!=b[T].charAt(0)||'"'!=b[T].charAt(b[T].length-1)&&"'"!=b[T].charAt(b[T].length-1)&&"`"!=b[T].charAt(b[T].length-1)?S.push(this.getValueAtAddress(P,b[T])):S.push(b[T].substring(1,b[T].length-1));if(!(m in e))return console.log("Function ".concat(m," does not exist (address [").concat(t,"])")),!1;try{return this.getValueAtAddress(e[m].apply(e,S),d,i,P)}catch(e){return console.log("Error in getValueAtAddress calling function ".concat(m," (address [").concat(t,"]): ").concat(e.message)),!1}}}else{if(g>0&&y>g&&y-g>1){var _=p.substring(0,g).trim(),k=p.substring(g+1,y).trim(),w=parseInt(k,10);if(Array.isArray(e[_])==isNaN(w))return;if("object"!=_typeof(e[_]))return;return isNaN(w)?(k=this.cleanWrapCharacters('"',k),k=this.cleanWrapCharacters("`",k),k=this.cleanWrapCharacters("'",k),i="".concat(i).concat(i.length>0?".":"").concat(p),this.getValueAtAddress(e[_][k],d,i,o)):(i="".concat(i).concat(i.length>0?".":"").concat(p),this.getValueAtAddress(e[_][w],d,i,o))}if(g>0&&y>g&&y-g==1){var x=t.substring(0,g).trim();if(!Array.isArray(e[x]))return!1;var E=e[x];i="".concat(i).concat(i.length>0?".":"").concat(x);for(var O={},A=0;A<E.length;A++){var C="".concat(i,"[").concat(A,"]"),j=this.getValueAtAddress(e[x][A],d,C,o);O["".concat(C,".").concat(d)]=j}return O}}var N=t.indexOf("{}");if(N>0){var R=t.substring(0,N).trim();if("object"!=_typeof(e[R]))return!1;var L=e[R],M=Object.keys(L);i="".concat(i).concat(i.length>0?".":"").concat(R);for(var D={},I=0;I<M.length;I++){var F="".concat(i,".").concat(M[I]),U=this.getValueAtAddress(e[R][M[I]],d,F,o);this.checkRecordFilters(t,U)&&(D["".concat(F,".").concat(d)]=U)}return D}return p in e&&"object"!==_typeof(e[p])?void 0:p in e?(i="".concat(i).concat(i.length>0?".":"").concat(p),this.getValueAtAddress(e[p],d,i,o)):(i="".concat(i).concat(i.length>0?".":"").concat(p),e[p]={},this.getValueAtAddress(e[p],d,i,o))}var V=t.indexOf("["),B=t.indexOf("]"),H=t.indexOf("{}"),W=t.indexOf("(");if(!(W>0&&a.DataFormat.stringCountEnclosures(t)>0)){if(V>0&&B>V&&B-V>1){var $=t.substring(0,V).trim();if("object"!==_typeof(e[$]))return;var z=t.substring(V+1,B).trim(),q=parseInt(z,10);if(Array.isArray(e[$])==isNaN(q))return;return isNaN(q)?(z=this.cleanWrapCharacters('"',z),z=this.cleanWrapCharacters("`",z),z=this.cleanWrapCharacters("'",z),e[$][z]):e[$][q]}if(V>0&&B>V&&B-V==1){var G=t.substring(0,V).trim();if(!Array.isArray(e[G]))return!1;for(var J=e[G],Y=[],Q=0;Q<J.length;Q++){this.checkRecordFilters(t,J[Q])&&Y.push(J[Q])}return Y}if(H>0){var K=t.substring(0,H).trim();return"object"==_typeof(e[K])&&e[K]}return null!=_typeof(e[t])?e[t]:void 0}var Z=t.substring(0,W).trim();if("function"==!_typeof(e[Z]))return!1;var X=a.DataFormat.stringGetSegments(a.DataFormat.stringGetEnclosureValueByIndex(t.substring(Z.length),0),",");if(0==X.length||""==X[0]){if(!(Z in e))return console.log("Function ".concat(Z," does not exist (address [").concat(t,"])")),!1;try{return e[Z].apply(e)}catch(e){return console.log("Error in getValueAtAddress calling function ".concat(Z," (address [").concat(t,"]): ").concat(e.message)),!1}}else{for(var ee=[],te=void 0===n?e:n,re=0;re<X.length;re++)!(X[re].length>=2)||'"'!=X[re].charAt(0)&&"'"!=X[re].charAt(0)&&"`"!=X[re].charAt(0)||'"'!=X[re].charAt(X[re].length-1)&&"'"!=X[re].charAt(X[re].length-1)&&"`"!=X[re].charAt(X[re].length-1)?ee.push(this.getValueAtAddress(te,X[re])):ee.push(X[re].substring(1,X[re].length-1));if(!(Z in e))return console.log("Function ".concat(Z," does not exist (address [").concat(t,"])")),!1;try{return e[Z].apply(e,ee)}catch(e){return console.log("Error in getValueAtAddress calling function ".concat(Z," (address [").concat(t,"]): ").concat(e.message)),!1}}}}}]),e}();t.exports=s},{"../source/Manyfest-ParseConditionals.js":78,"./Manyfest-CleanWrapCharacters.js":69,"./Manyfest-LogToConsole.js":71,"./Manyfest-ObjectAddress-Parser.js":75}],75:[function(e,t,r){t.exports={stringCountSegments:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;for(var u=1,c=[],l=0;l<i.length;l++)i[l]==o&&0==c.length?u++:i[l]in a?c.push(a[i[l]]):i[l]in s&&s[i[l]]==c[c.length-1]&&c.pop();return u},stringGetFirstSegment:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;for(var u=[],c=0;c<i.length;c++){if(i[c]==o&&0==u.length)return i.substring(0,c);i[c]in a?u.push(a[i[c]]):i[c]in s&&s[i[c]]==u[u.length-1]&&u.pop()}return i},stringGetSegments:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2},u=0,c=[];if(e.length<1)return c;for(var l=[],f=0;f<i.length;f++)i[f]==o&&0==l.length?(c.push(i.substring(u,f)),u=f+1):i[f]in a?l.push(a[i[f]]):i[f]in s&&s[i[f]]==l[l.length-1]&&l.pop();return u<i.length&&c.push(i.substring(u)),c},stringCountEnclosures:function(e,t,r){for(var n="string"==typeof e?e:"",i="string"==typeof t?t:"(",o="string"==typeof r?r:")",a=0,s=0,u=0;u<n.length;u++)n[u]==i?(0==s&&a++,s++):n[u]==o&&s--;return a},stringGetEnclosureValueByIndex:function(e,t,r,n){for(var i="string"==typeof e?e:"",o="number"==typeof t?t:0,a="string"==typeof r?r:"(",s="string"==typeof n?n:")",u=0,c=0,l=!1,f=0,h=0,p=0;p<i.length;p++)i[p]==a?1==++c&&o==++u-1&&(l=!0,f=p):i[p]==s&&0==--c&&l&&h<=f&&(h=p,l=!1);return u<=o?"":h>0&&h>f?i.substring(f+1,h):i.substring(f+1)}}},{}],76:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=e("./Manyfest-CleanWrapCharacters.js"),o=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n,this.cleanWrapCharacters=i}return _createClass2(e,[{key:"setValueAtAddress",value:function(e,t,r){if("object"!=_typeof(e))return!1;if("string"!=typeof t)return!1;var n=t.indexOf(".");if(-1==n){var i=t.indexOf("["),o=t.indexOf("]");if(i>0&&o>i&&o-i>1){var a=t.substring(0,i).trim();if("object"!==_typeof(e[a]))return!1;var s=t.substring(i+1,o).trim(),u=parseInt(s,10);return Array.isArray(e[a])!=isNaN(u)&&(isNaN(u)?(s=this.cleanWrapCharacters('"',s),s=this.cleanWrapCharacters("`",s),s=this.cleanWrapCharacters("'",s),e[a][s]=r,!0):(e[a][u]=r,!0))}return e[t]=r,!0}var c=t.substring(0,n),l=t.substring(n+1),f=c.indexOf("["),h=c.indexOf("]");if(f>0&&h>f&&h-f>1){var p=c.substring(0,f).trim(),d=c.substring(f+1,h).trim(),g=parseInt(d,10);return Array.isArray(e[p])!=isNaN(g)&&(isNaN(g)?(d=this.cleanWrapCharacters('"',d),d=this.cleanWrapCharacters("`",d),d=this.cleanWrapCharacters("'",d),this.setValueAtAddress(e[p][d],l,r)):this.setValueAtAddress(e[p][g],l,r))}return c in e&&"object"!==_typeof(e[c])?("__ERROR"in e||(e.__ERROR={}),e.__ERROR[t]=r,!1):(c in e||(e[c]={}),this.setValueAtAddress(e[c],l,r))}}]),e}();t.exports=o},{"./Manyfest-CleanWrapCharacters.js":69,"./Manyfest-LogToConsole.js":71}],77:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n}return _createClass2(e,[{key:"generateAddressses",value:function(e,t,r){var n="string"==typeof t?t:"",i="object"==_typeof(r)?r:{},o=_typeof(e),a={Address:n,Hash:n,Name:n,InSchema:!1};switch("object"==o&&null==e&&(o="null"),o){case"string":a.DataType="String",a.Default=e,i[n]=a;break;case"number":case"bigint":a.DataType="Number",a.Default=e,i[n]=a;break;case"undefined":case"null":a.DataType="Any",a.Default=e,i[n]=a;break;case"object":if(Array.isArray(e)){a.DataType="Array",""!=n&&(i[n]=a);for(var s=0;s<e.length;s++)this.generateAddressses(e[s],"".concat(n,"[").concat(s,"]"),i)}else{a.DataType="Object",""!=n&&(i[n]=a,n+=".");for(var u=Object.keys(e),c=0;c<u.length;c++)this.generateAddressses(e[u[c]],"".concat(n).concat(u[c]),i)}}return i}}]),e}();t.exports=i},{"./Manyfest-LogToConsole.js":71}],78:[function(e,t,r){var n="<<~?",i="?~>>",o=function(e,t,r,n,i){switch(n){case"TRUE":return!0===e.getValueAtAddress(t,r);case"FALSE":return!1===e.getValueAtAddress(t,r);case"LNGT":case"LENGTH_GREATER_THAN":switch(_typeof(e.getValueAtAddress(t,r))){case"string":case"object":return e.getValueAtAddress(t,r).length>i;default:return!1}break;case"LNLT":case"LENGTH_LESS_THAN":switch(_typeof(e.getValueAtAddress(t,r))){case"string":case"object":return e.getValueAtAddress(t,r).length<i;default:return!1}break;case"!=":return e.getValueAtAddress(t,r)!=i;case"<":return e.getValueAtAddress(t,r)<i;case">":return e.getValueAtAddress(t,r)>i;case"<=":return e.getValueAtAddress(t,r)<=i;case">=":return e.getValueAtAddress(t,r)>=i;case"===":return e.getValueAtAddress(t,r)===i;default:return e.getValueAtAddress(t,r)==i}};t.exports=function(e,t,r){for(var a=!0,s=t.indexOf(n);-1!=s;){var u=t.indexOf(i,s+4);if(-1!=u){var c=t.substring(s+4,u).split(","),l=c[0],f="EXISTS";c.length>1&&(f=c[1]);var h=!1;c.length>2&&(h=c[2]),a=a&&o(e,r,l,f,h),s=t.indexOf(n,u+4)}else s=-1}return a}},{}],79:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n}return _createClass2(e,[{key:"resolveAddressMappings",value:function(e,t){if("object"!=_typeof(e))return this.logError("Attempted to resolve address mapping but the descriptor was not an object."),!1;if("object"!=_typeof(t))return!0;var r=Object.keys(e),n={};return r.forEach((function(t){"Hash"in e[t]&&(n[e[t].Hash]=t)})),Object.keys(t).forEach((function(r){var i=t[r],o=!1,a=!1;r in e?o=r:r in n&&(o=n[r]),o?(a=e[o],delete e[o]):a={Hash:r},e[i]=a})),!0}},{key:"safeResolveAddressMappings",value:function(e,t){var r=JSON.parse(JSON.stringify(e));return this.resolveAddressMappings(r,t),r}},{key:"mergeAddressMappings",value:function(e,t){if("object"!=_typeof(t)||"object"!=_typeof(e))return this.logError("Attempted to merge two schema descriptors but both were not objects."),!1;var r=JSON.parse(JSON.stringify(t)),n=JSON.parse(JSON.stringify(e));return Object.keys(r).forEach((function(e){e in n||(n[e]=r[e])})),n}}]),e}();t.exports=i},{"./Manyfest-LogToConsole.js":71}],80:[function(e,t,r){var n=e("fable-serviceproviderbase"),i=e("./Manyfest-LogToConsole.js"),o=e("./Manyfest-HashTranslation.js"),a=e("./Manyfest-ObjectAddress-CheckAddressExists.js"),s=e("./Manyfest-ObjectAddress-GetValue.js"),u=e("./Manyfest-ObjectAddress-SetValue.js"),c=e("./Manyfest-ObjectAddress-DeleteValue.js"),l=e("./Manyfest-ObjectAddressGeneration.js"),f=e("./Manyfest-SchemaManipulation.js"),h={Scope:"DEFAULT",Descriptors:{}},p=function(e){function t(e,r,n){var h;return _classCallCheck2(this,t),(h=_callSuper(this,t,void 0===e?[{}]:[e,r,n])).serviceType="Manifest",h.logInfo=i,h.logError=i,h.objectAddressCheckAddressExists=new a(h.logInfo,h.logError),h.objectAddressGetValue=new s(h.logInfo,h.logError),h.objectAddressSetValue=new u(h.logInfo,h.logError),h.objectAddressDeleteValue=new c(h.logInfo,h.logError),"defaultValues"in h.options||(h.options.defaultValues={String:"",Number:0,Float:0,Integer:0,PreciseNumber:"0.0",Boolean:!1,Binary:0,DateTime:0,Array:[],Object:{},Null:null}),"strict"in h.options||(h.options.strict=!1),h.scope=void 0,h.elementAddresses=void 0,h.elementHashes=void 0,h.elementDescriptors=void 0,h.reset(),"object"===_typeof(h.options)&&h.loadManifest(h.options),h.schemaManipulations=new f(h.logInfo,h.logError),h.objectAddressGeneration=new l(h.logInfo,h.logError),h.hashTranslations=new o(h.logInfo,h.logError),h.numberRegex=/^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/,_possibleConstructorReturn(h)}return _inherits(t,e),_createClass2(t,[{key:"reset",value:function(){this.scope="DEFAULT",this.elementAddresses=[],this.elementHashes={},this.elementDescriptors={}}},{key:"clone",value:function(){var e=JSON.parse(JSON.stringify(this.options)),r=new t(this.getManifest(),this.logInfo,this.logError,e);return r.hashTranslations.addTranslation(this.hashTranslations.translationTable),r}},{key:"deserialize",value:function(e){return this.loadManifest(JSON.parse(e))}},{key:"loadManifest",value:function(e){"object"!==_typeof(e)&&this.logError("(".concat(this.scope,") Error loading manifest; expecting an object but parameter was type ").concat(_typeof(e),"."));for(var t="object"==_typeof(e)?e:{},r=Object.keys(h),n=0;n<r.length;n++)r[n]in t||(t[r[n]]=JSON.parse(JSON.stringify(h[r[n]])));if("Scope"in t?"string"==typeof t.Scope?this.scope=t.Scope:this.logError("(".concat(this.scope,") Error loading scope from manifest; expecting a string but property was type ").concat(_typeof(t.Scope),"."),t):this.logError("(".concat(this.scope,') Error loading scope from manifest object. Property "Scope" does not exist in the root of the object.'),t),"Descriptors"in t)if("object"===_typeof(t.Descriptors))for(var i=Object.keys(t.Descriptors),o=0;o<i.length;o++)this.addDescriptor(i[o],t.Descriptors[i[o]]);else this.logError("(".concat(this.scope,") Error loading description object from manifest object. Expecting an object in 'Manifest.Descriptors' but the property was type ").concat(_typeof(t.Descriptors),"."),t);else this.logError("(".concat(this.scope,') Error loading object description from manifest object. Property "Descriptors" does not exist in the root of the Manifest object.'),t);if("HashTranslations"in t&&"object"===_typeof(t.HashTranslations))for(var a=0;a<t.HashTranslations.length;a++);}},{key:"serialize",value:function(){return JSON.stringify(this.getManifest())}},{key:"getManifest",value:function(){return{Scope:this.scope,Descriptors:JSON.parse(JSON.stringify(this.elementDescriptors)),HashTranslations:JSON.parse(JSON.stringify(this.hashTranslations.translationTable))}}},{key:"addDescriptor",value:function(e,t){return"object"===_typeof(t)?("Address"in t||(t.Address=e),e in this.elementDescriptors||this.elementAddresses.push(e),this.elementDescriptors[e]=t,this.elementHashes[e]=e,"Hash"in t?this.elementHashes[t.Hash]=e:t.Hash=e,!0):(this.logError("(".concat(this.scope,") Error loading object descriptor for address '").concat(e,"' from manifest object. Expecting an object but property was type ").concat(_typeof(t),".")),!1)}},{key:"getDescriptorByHash",value:function(e){return this.getDescriptor(this.resolveHashAddress(e))}},{key:"getDescriptor",value:function(e){return this.elementDescriptors[e]}},{key:"eachDescriptor",value:function(e){for(var t=Object.keys(this.elementDescriptors),r=0;r<t.length;r++)e(this.elementDescriptors[t[r]])}},{key:"checkAddressExistsByHash",value:function(e,t){return this.checkAddressExists(e,this.resolveHashAddress(t))}},{key:"checkAddressExists",value:function(e,t){return this.objectAddressCheckAddressExists.checkAddressExists(e,t)}},{key:"resolveHashAddress",value:function(e){var t=e in this.elementHashes,r=e in this.hashTranslations.translationTable;return t&&!r?this.elementHashes[e]:r&&this.hashTranslations.translate(e)in this.elementHashes?this.elementHashes[this.hashTranslations.translate(e)]:r?this.hashTranslations.translate(e):e}},{key:"getValueByHash",value:function(e,t){var r=this.getValueAtAddress(e,this.resolveHashAddress(t));return void 0===r&&(r=this.getDefaultValue(this.getDescriptorByHash(t))),r}},{key:"getValueAtAddress",value:function(e,t){var r=this.objectAddressGetValue.getValueAtAddress(e,t);return void 0===r&&(r=this.getDefaultValue(this.getDescriptor(t))),r}},{key:"setValueByHash",value:function(e,t,r){return this.setValueAtAddress(e,this.resolveHashAddress(t),r)}},{key:"setValueAtAddress",value:function(e,t,r){return this.objectAddressSetValue.setValueAtAddress(e,t,r)}},{key:"deleteValueByHash",value:function(e,t,r){return this.deleteValueAtAddress(e,this.resolveHashAddress(t),r)}},{key:"deleteValueAtAddress",value:function(e,t,r){return this.objectAddressDeleteValue.deleteValueAtAddress(e,t,r)}},{key:"validate",value:function(e){var t={Error:null,Errors:[],MissingElements:[]};"object"!==_typeof(e)&&(t.Error=!0,t.Errors.push("Expected passed in object to be type object but was passed in ".concat(_typeof(e))));for(var r=function(e,r){t.Error=!0,t.Errors.push('Element at address "'.concat(e,'" ').concat(r,"."))},n=0;n<this.elementAddresses.length;n++){var i=this.getDescriptor(this.elementAddresses[n]),o=this.checkAddressExists(e,i.Address),a=this.getValueAtAddress(e,i.Address);if(void 0!==a&&o||(t.MissingElements.push(i.Address),(i.Required||this.options.strict)&&r(i.Address,"is flagged REQUIRED but is not set in the object")),i.DataType){var s=_typeof(a);switch(i.DataType.toString().trim().toLowerCase()){case"string":"string"!=s&&r(i.Address,"has a DataType ".concat(i.DataType," but is of the type ").concat(s));break;case"precisenumber":"string"!=s?r(i.Address,"has a DataType ".concat(i.DataType," but is of the type ").concat(s)):this.numberRegex.test(a)||r(i.Address,"has a DataType ".concat(i.DataType," but is not a valid number"));break;case"number":"number"!=s&&r(i.Address,"has a DataType ".concat(i.DataType," but is of the type ").concat(s));break;case"integer":if("number"!=s)r(i.Address,"has a DataType ".concat(i.DataType," but is of the type ").concat(s));else a.toString().indexOf(".")>-1&&r(i.Address,"has a DataType ".concat(i.DataType," but has a decimal point in the number."));break;case"float":"number"!=s&&r(i.Address,"has a DataType ".concat(i.DataType," but is of the type ").concat(s));break;case"datetime":"Invalid Date"==new Date(a).toString()&&r(i.Address,"has a DataType ".concat(i.DataType," but is not parsable as a Date by Javascript"));default:"string"!=s&&r(i.Address,"has a DataType ".concat(i.DataType," (which auto-converted to String because it was unrecognized) but is of the type ").concat(s))}}}return t}},{key:"getDefaultValue",value:function(e){if("object"==_typeof(e)){if("Default"in e)return e.Default;var t="DataType"in e?e.DataType:"String";return t in this.options.defaultValues?this.options.defaultValues[t]:null}}},{key:"populateDefaults",value:function(e,t){return this.populateObject(e,t,(function(e){return"Default"in e}))}},{key:"populateObject",value:function(e,t,r){var n=this,i="object"===_typeof(e)?e:{},o=void 0!==t&&t,a="function"==typeof r?r:function(e){return!0};return this.elementAddresses.forEach((function(e){var t=n.getDescriptor(e);a(t)&&(!o&&n.checkAddressExists(i,e)||n.setValueAtAddress(i,e,n.getDefaultValue(t)))})),i}}]),t}(n);t.exports=p},{"./Manyfest-HashTranslation.js":70,"./Manyfest-LogToConsole.js":71,"./Manyfest-ObjectAddress-CheckAddressExists.js":72,"./Manyfest-ObjectAddress-DeleteValue.js":73,"./Manyfest-ObjectAddress-GetValue.js":74,"./Manyfest-ObjectAddress-SetValue.js":76,"./Manyfest-ObjectAddressGeneration.js":77,"./Manyfest-SchemaManipulation.js":79,"fable-serviceproviderbase":51}],81:[function(e,t,r){(function(r){(function(){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,g=Object.prototype.toString,y=Function.prototype.toString,v=String.prototype.match,m=String.prototype.slice,b=String.prototype.replace,S=String.prototype.toUpperCase,P=String.prototype.toLowerCase,T=RegExp.prototype.test,_=Array.prototype.concat,k=Array.prototype.join,w=Array.prototype.slice,x=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"===_typeof(Symbol.iterator),j="function"==typeof Symbol&&Symbol.toStringTag&&(_typeof(Symbol.toStringTag)===C||"symbol")?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||T.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-x(-e):x(e);if(n!==e){var i=String(n),o=m.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var M=e("./util.inspect"),D=M.custom,I=H(D)?D:null;function F(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function U(e){return b.call(String(e),/"/g,"&quot;")}function V(e){return!("[object Array]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}function B(e){return!("[object RegExp]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}function H(e){if(C)return e&&"object"===_typeof(e)&&e instanceof Symbol;if("symbol"===_typeof(e))return!0;if(!e||"object"!==_typeof(e)||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}t.exports=function e(t,n,i,s){var u=n||{};if($(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!$(u,"customInspect")||u.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var S=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var T=String(t);return S?L(t,T):T}if("bigint"==typeof t){var x=String(t)+"n";return S?L(t,x):x}var O=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=O&&O>0&&"object"===_typeof(t))return V(t)?"[Array]":"[Object]";var D=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=k.call(Array(e.indent+1)," ")}return{base:r,prev:k.call(Array(t+1),r)}}(u,i);if(void 0===s)s=[];else if(q(s,t)>=0)return"[Circular]";function W(t,r,n){if(r&&(s=w.call(s)).push(r),n){var o={depth:u.depth};return $(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"==typeof t&&!B(t)){var J=function(e){if(e.name)return e.name;var t=v.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=X(t,W);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(ee.length>0?" { "+k.call(ee,", ")+" }":"")}if(H(t)){var te=C?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!==_typeof(t)||C?te:Y(te)}if(function(e){if(!e||"object"!==_typeof(e))return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var re="<"+P.call(String(t.nodeName)),ne=t.attributes||[],ie=0;ie<ne.length;ie++)re+=" "+ne[ie].name+"="+F(U(ne[ie].value),"double",u);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+P.call(String(t.nodeName))+">"}if(V(t)){if(0===t.length)return"[]";var oe=X(t,W);return D&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(oe)?"["+Z(oe,D)+"]":"[ "+k.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}(t)){var ae=X(t,W);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(ae,", ")+" }":"{ ["+String(t)+"] "+k.call(_.call("[cause]: "+W(t.cause),ae),", ")+" }"}if("object"===_typeof(t)&&g){if(I&&"function"==typeof t[I]&&M)return M(t,{depth:O-i});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==_typeof(e))return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,r){se.push(W(r,t,!0)+" => "+W(e,t))})),K("Map",o.call(t),se,D)}if(function(e){if(!c||!e||"object"!==_typeof(e))return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return l&&l.call(t,(function(e){ue.push(W(e,t))})),K("Set",c.call(t),ue,D)}if(function(e){if(!f||!e||"object"!==_typeof(e))return!1;try{f.call(e,f);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!h||!e||"object"!==_typeof(e))return!1;try{h.call(e,h);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!p||!e||"object"!==_typeof(e))return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}(t))return Y(W(Number(t)));if(function(e){if(!e||"object"!==_typeof(e)||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return Y(W(E.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}(t))return Y(d.call(t));if(function(e){return!("[object String]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}(t))return Y(W(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}(t)&&!B(t)){var ce=X(t,W),le=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",he=!le&&j&&Object(t)===t&&j in t?m.call(z(t),8,-1):fe?"Object":"",pe=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||fe?"["+k.call(_.call([],he||[],fe||[]),": ")+"] ":"");return 0===ce.length?pe+"{}":D?pe+"{"+Z(ce,D)+"}":pe+"{ "+k.call(ce,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function $(e,t){return W.call(e,t)}function z(e){return g.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(m.call(e,0,t.maxStringLength),t)+n}return F(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function Y(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function K(e,t,r,n){return e+" ("+t+") {"+(n?Z(r,n):k.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+k.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=V(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=$(e,i)?t(e[i],e):""}var o,a="function"==typeof O?O(e):[];if(C){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)$(e,u)&&(r&&String(Number(u))===u&&u<e.length||C&&o["$"+u]instanceof Symbol||(T.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof O)for(var c=0;c<a.length;c++)N.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":18}],82:[function(e,t,r){var n=e("wrappy");function i(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function t(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}t.exports=n(i),t.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},{wrappy:125}],83:[function(e,t,r){(function(e){(function(){function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",i=0):i=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var i={resolve:function(){for(var t,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var s;a>=0?s=arguments[a]:(void 0===t&&(t=e.cwd()),s=t),r(s),0!==s.length&&(i=s+"/"+i,o=47===s.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(r(e),0===e.length)return".";var t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!t)).length||t||(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return r(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];r(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var o=e.length,a=o-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var u=t.length-s,c=a<u?a:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===t.charCodeAt(s+f))return t.slice(s+f+1);if(0===f)return t.slice(s+f)}else a>c&&(47===e.charCodeAt(n+f)?l=f:0===f&&(l=0));break}var h=e.charCodeAt(n+f);if(h!==t.charCodeAt(s+f))break;47===h&&(l=f)}var p="";for(f=n+l+1;f<=o;++f)f!==o&&47!==e.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(s+l):(s+=l,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n,i=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!a){i=n+1;break}}else-1===u&&(a=!1,u=n+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){r(e);for(var t=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47!==u)-1===i&&(o=!1,i=s+1),46===u?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){n=s+1;break}}return-1===t||-1===i||0===a||1===a&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==_typeof(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+_typeof(e));return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}("/",e)},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),o=47===i;o?(t.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,c=!0,l=e.length-1,f=0;l>=n;--l)if(47!==(i=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===i?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){s=l+1;break}return-1===a||-1===u||0===f||1===f&&a===u-1&&a===s+1?-1!==u&&(t.base=t.name=0===s&&o?e.slice(1,u):e.slice(s,u)):(0===s&&o?(t.name=e.slice(1,a),t.base=e.slice(1,u)):(t.name=e.slice(s,a),t.base=e.slice(s,u)),t.ext=e.slice(a,u)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i}).call(this)}).call(this,e("_process"))},{_process:87}],84:[function(e,t,r){
1
+ "use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _defineProperty2(e,t,r){return(t=_toPropertyKey2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=_superPropBase(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},_get.apply(this,arguments)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _classCallCheck2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey2(n.key),n)}}function _createClass2(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey2(e){var t=_toPrimitive2(e,"string");return"symbol"==_typeof(t)?t:String(t)}function _toPrimitive2(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}!function(e){if("object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Fable=e()}}((function(){return function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,r){var n=e("async.util.eachoflimit"),i=e("async.util.withoutindex");t.exports=function(e,t,r,o){return n(t)(e,i(r),o)}},{"async.util.eachoflimit":3,"async.util.withoutindex":14}],2:[function(e,t,r){t.exports=function(e){return function t(r){function n(){return e.length&&e[r].apply(null,arguments),n.next()}return n.next=function(){return r<e.length-1?t(r+1):null},n}(0)}},{}],3:[function(e,t,r){var n=e("async.util.once"),i=e("async.util.noop"),o=e("async.util.onlyonce"),a=e("async.util.keyiterator");t.exports=function(e){return function(t,r,s){s=n(s||i);var u=a(t=t||[]);if(e<=0)return s(null);var c=!1,l=0,f=!1;!function n(){if(c&&l<=0)return s(null);for(;l<e&&!f;){var i=u();if(null===i)return c=!0,void(l<=0&&s(null));l+=1,r(t[i],i,o((function(e){l-=1,e?(s(e),f=!0):n()})))}}()}}},{"async.util.keyiterator":7,"async.util.noop":9,"async.util.once":10,"async.util.onlyonce":11}],4:[function(e,t,r){var n=e("async.util.setimmediate"),i=e("async.util.restparam");t.exports=function(e){return i((function(t){var r=t.pop();t.push((function(){var e=arguments;i?n((function(){r.apply(null,e)})):r.apply(null,e)}));var i=!0;e.apply(this,t),i=!1}))}},{"async.util.restparam":12,"async.util.setimmediate":13}],5:[function(e,t,r){t.exports=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],6:[function(e,t,r){var n=e("async.util.isarray");t.exports=function(e){return n(e)||"number"==typeof e.length&&e.length>=0&&e.length%1==0}},{"async.util.isarray":5}],7:[function(e,t,r){var n=e("async.util.keys"),i=e("async.util.isarraylike");t.exports=function(e){var t,r,o=-1;return i(e)?(t=e.length,function(){return++o<t?o:null}):(r=n(e),t=r.length,function(){return++o<t?r[o]:null})}},{"async.util.isarraylike":6,"async.util.keys":8}],8:[function(e,t,r){t.exports=Object.keys||function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}},{}],9:[function(e,t,r){t.exports=function(){}},{}],10:[function(e,t,r){t.exports=function(e){return function(){null!==e&&(e.apply(this,arguments),e=null)}}},{}],11:[function(e,t,r){t.exports=function(e){return function(){if(null===e)throw new Error("Callback was already called.");e.apply(this,arguments),e=null}}},{}],12:[function(e,t,r){t.exports=function(e,t){return t=null==t?e.length-1:+t,function(){for(var r=Math.max(arguments.length-t,0),n=new Array(r),i=0;i<r;i++)n[i]=arguments[i+t];switch(t){case 0:return e.call(this,n);case 1:return e.call(this,arguments[0],n)}}}},{}],13:[function(e,t,r){(function(e){(function(){var r="function"==typeof e&&e,n=function(e){setTimeout(e,0)};t.exports=function(e){return(r||n)(e)}}).call(this)}).call(this,e("timers").setImmediate)},{timers:122}],14:[function(e,t,r){t.exports=function(e){return function(t,r,n){return e(t,n)}}},{}],15:[function(e,t,r){var n=e("async.util.once"),i=e("async.util.noop"),o=e("async.util.isarray"),a=e("async.util.restparam"),s=e("async.util.ensureasync"),u=e("async.iterator");t.exports=function(e,t){if(t=n(t||i),!o(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();!function e(r){return a((function(n,i){if(n)t.apply(null,[n].concat(i));else{var o=r.next();o?i.push(e(o)):i.push(t),s(r).apply(null,i)}}))}(u(e))()}},{"async.iterator":2,"async.util.ensureasync":4,"async.util.isarray":5,"async.util.noop":9,"async.util.once":10,"async.util.restparam":12}],16:[function(e,t,r){r.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=u(e),a=n[0],s=n[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(c(e,s,s+a>u?u:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],17:[function(e,t,r){!function(e){var r,n=1e6,i=1e6,o="[big.js] ",a=o+"Invalid ",s=a+"decimal places",u=a+"rounding mode",c=o+"Division by zero",l={},f=void 0,h=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function p(e,t,r,n){var i=e.c;if(r===f&&(r=e.constructor.RM),0!==r&&1!==r&&2!==r&&3!==r)throw Error(u);if(t<1)n=3===r&&(n||!!i[0])||0===t&&(1===r&&i[0]>=5||2===r&&(i[0]>5||5===i[0]&&(n||i[1]!==f))),i.length=1,n?(e.e=e.e-t+1,i[0]=1):i[0]=e.e=0;else if(t<i.length){if(n=1===r&&i[t]>=5||2===r&&(i[t]>5||5===i[t]&&(n||i[t+1]!==f||1&i[t-1]))||3===r&&(n||!!i[0]),i.length=t,n)for(;++i[--t]>9;)if(i[t]=0,0===t){++e.e,i.unshift(1);break}for(t=i.length;!i[--t];)i.pop()}return e}function d(e,t,r){var n=e.e,i=e.c.join(""),o=i.length;if(t)i=i.charAt(0)+(o>1?"."+i.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)i="0"+i;i="0."+i}else if(n>0)if(++n>o)for(n-=o;n--;)i+="0";else n<o&&(i=i.slice(0,n)+"."+i.slice(n));else o>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&r?"-"+i:i}l.abs=function(){var e=new this.constructor(this);return e.s=1,e},l.cmp=function(e){var t,r=this,n=r.c,i=(e=new r.constructor(e)).c,o=r.s,a=e.s,s=r.e,u=e.e;if(!n[0]||!i[0])return n[0]?o:i[0]?-a:0;if(o!=a)return o;if(t=o<0,s!=u)return s>u^t?1:-1;for(a=(s=n.length)<(u=i.length)?s:u,o=-1;++o<a;)if(n[o]!=i[o])return n[o]>i[o]^t?1:-1;return s==u?0:s>u^t?1:-1},l.div=function(e){var t=this,r=t.constructor,i=t.c,o=(e=new r(e)).c,a=t.s==e.s?1:-1,u=r.DP;if(u!==~~u||u<0||u>n)throw Error(s);if(!o[0])throw Error(c);if(!i[0])return e.s=a,e.c=[e.e=0],e;var l,h,d,g,y,v=o.slice(),m=l=o.length,b=i.length,S=i.slice(0,l),P=S.length,T=e,_=T.c=[],k=0,w=u+(T.e=t.e-e.e)+1;for(T.s=a,a=w<0?0:w,v.unshift(0);P++<l;)S.push(0);do{for(d=0;d<10;d++){if(l!=(P=S.length))g=l>P?1:-1;else for(y=-1,g=0;++y<l;)if(o[y]!=S[y]){g=o[y]>S[y]?1:-1;break}if(!(g<0))break;for(h=P==l?o:v;P;){if(S[--P]<h[P]){for(y=P;y&&!S[--y];)S[y]=9;--S[y],S[P]+=10}S[P]-=h[P]}for(;!S[0];)S.shift()}_[k++]=g?d:++d,S[0]&&g?S[P]=i[m]||0:S=[i[m]]}while((m++<b||S[0]!==f)&&a--);return _[0]||1==k||(_.shift(),T.e--,w--),k>w&&p(T,w,r.RM,S[0]!==f),T},l.eq=function(e){return 0===this.cmp(e)},l.gt=function(e){return this.cmp(e)>0},l.gte=function(e){return this.cmp(e)>-1},l.lt=function(e){return this.cmp(e)<0},l.lte=function(e){return this.cmp(e)<1},l.minus=l.sub=function(e){var t,r,n,i,o=this,a=o.constructor,s=o.s,u=(e=new a(e)).s;if(s!=u)return e.s=-u,o.plus(e);var c=o.c.slice(),l=o.e,f=e.c,h=e.e;if(!c[0]||!f[0])return f[0]?e.s=-u:c[0]?e=new a(o):e.s=1,e;if(s=l-h){for((i=s<0)?(s=-s,n=c):(h=l,n=f),n.reverse(),u=s;u--;)n.push(0);n.reverse()}else for(r=((i=c.length<f.length)?c:f).length,s=u=0;u<r;u++)if(c[u]!=f[u]){i=c[u]<f[u];break}if(i&&(n=c,c=f,f=n,e.s=-e.s),(u=(r=f.length)-(t=c.length))>0)for(;u--;)c[t++]=0;for(u=t;r>s;){if(c[--r]<f[r]){for(t=r;t&&!c[--t];)c[t]=9;--c[t],c[r]+=10}c[r]-=f[r]}for(;0===c[--u];)c.pop();for(;0===c[0];)c.shift(),--h;return c[0]||(e.s=1,c=[h=0]),e.c=c,e.e=h,e},l.mod=function(e){var t,r=this,n=r.constructor,i=r.s,o=(e=new n(e)).s;if(!e.c[0])throw Error(c);return r.s=e.s=1,t=1==e.cmp(r),r.s=i,e.s=o,t?new n(r):(i=n.DP,o=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=i,n.RM=o,this.minus(r.times(e)))},l.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},l.plus=l.add=function(e){var t,r,n,i=this,o=i.constructor;if(e=new o(e),i.s!=e.s)return e.s=-e.s,i.minus(e);var a=i.e,s=i.c,u=e.e,c=e.c;if(!s[0]||!c[0])return c[0]||(s[0]?e=new o(i):e.s=i.s),e;if(s=s.slice(),t=a-u){for(t>0?(u=a,n=c):(t=-t,n=s),n.reverse();t--;)n.push(0);n.reverse()}for(s.length-c.length<0&&(n=c,c=s,s=n),t=c.length,r=0;t;s[t]%=10)r=(s[--t]=s[t]+c[t]+r)/10|0;for(r&&(s.unshift(r),++u),t=s.length;0===s[--t];)s.pop();return e.c=s,e.e=u,e},l.pow=function(e){var t=this,r=new t.constructor("1"),n=r,o=e<0;if(e!==~~e||e<-1e6||e>i)throw Error(a+"exponent");for(o&&(e=-e);1&e&&(n=n.times(t)),e>>=1;)t=t.times(t);return o?r.div(n):n},l.prec=function(e,t){if(e!==~~e||e<1||e>n)throw Error(a+"precision");return p(new this.constructor(this),e,t)},l.round=function(e,t){if(e===f)e=0;else if(e!==~~e||e<-n||e>n)throw Error(s);return p(new this.constructor(this),e+this.e+1,t)},l.sqrt=function(){var e,t,r,n=this,i=n.constructor,a=n.s,s=n.e,u=new i("0.5");if(!n.c[0])return new i(n);if(a<0)throw Error(o+"No square root");0===(a=Math.sqrt(n+""))||a===1/0?((t=n.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new i(((a=Math.sqrt(t))==1/0?"5e":(a=a.toExponential()).slice(0,a.indexOf("e")+1))+s)):e=new i(a+""),s=e.e+(i.DP+=4);do{r=e,e=u.times(r.plus(n.div(r)))}while(r.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return p(e,(i.DP-=4)+e.e+1,i.RM)},l.times=l.mul=function(e){var t,r=this,n=r.constructor,i=r.c,o=(e=new n(e)).c,a=i.length,s=o.length,u=r.e,c=e.e;if(e.s=r.s==e.s?1:-1,!i[0]||!o[0])return e.c=[e.e=0],e;for(e.e=u+c,a<s&&(t=i,i=o,o=t,c=a,a=s,s=c),t=new Array(c=a+s);c--;)t[c]=0;for(u=s;u--;){for(s=0,c=a+u;c>u;)s=t[c]+o[u]*i[c-u-1]+s,t[c--]=s%10,s=s/10|0;t[c]=s}for(s?++e.e:t.shift(),u=t.length;!t[--u];)t.pop();return e.c=t,e},l.toExponential=function(e,t){var r=this,i=r.c[0];if(e!==f){if(e!==~~e||e<0||e>n)throw Error(s);for(r=p(new r.constructor(r),++e,t);r.c.length<e;)r.c.push(0)}return d(r,!0,!!i)},l.toFixed=function(e,t){var r=this,i=r.c[0];if(e!==f){if(e!==~~e||e<0||e>n)throw Error(s);for(e=e+(r=p(new r.constructor(r),e+r.e+1,t)).e+1;r.c.length<e;)r.c.push(0)}return d(r,!1,!!i)},l.toJSON=l.toString=function(){var e=this,t=e.constructor;return d(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},l.toNumber=function(){var e=Number(d(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(o+"Imprecise conversion");return e},l.toPrecision=function(e,t){var r=this,i=r.constructor,o=r.c[0];if(e!==f){if(e!==~~e||e<1||e>n)throw Error(a+"precision");for(r=p(new i(r),e,t);r.c.length<e;)r.c.push(0)}return d(r,e<=r.e||r.e<=i.NE||r.e>=i.PE,!!o)},l.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(o+"valueOf disallowed");return d(e,e.e<=t.NE||e.e>=t.PE,!0)},r=function e(){function t(r){var n=this;if(!(n instanceof t))return r===f?e():new t(r);if(r instanceof t)n.s=r.s,n.e=r.e,n.c=r.c.slice();else{if("string"!=typeof r){if(!0===t.strict&&"bigint"!=typeof r)throw TypeError(a+"value");r=0===r&&1/r<0?"-0":String(r)}!function(e,t){var r,n,i;if(!h.test(t))throw Error(a+"number");e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(r=t.indexOf("."))>-1&&(t=t.replace(".",""));(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length);for(i=t.length,n=0;n<i&&"0"==t.charAt(n);)++n;if(n==i)e.c=[e.e=0];else{for(;i>0&&"0"==t.charAt(--i););for(e.e=r-n-1,e.c=[],r=0;n<=i;)e.c[r++]=+t.charAt(n++)}}(n,r)}n.constructor=t}return t.prototype=l,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.strict=false,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}(),r.default=r.Big=r,void 0!==t&&t.exports?t.exports=r:e.Big=r}(this)},{}],18:[function(e,t,r){},{}],19:[function(e,t,r){arguments[4][18][0].apply(r,arguments)},{dup:18}],20:[function(e,t,r){(function(t){(function(){var t=e("base64-js"),n=e("ieee754");r.Buffer=a,r.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},r.INSPECT_MAX_BYTES=50;var i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|h(e,t),n=o(r),i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_typeof(e));if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return n.__proto__=a.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);var i=function(e){if(a.isBuffer(e)){var t=0|f(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||B(e.length)?o(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_typeof(e))}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|f(e))}function l(e){for(var t=e.length<0?0:0|f(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+_typeof(e));var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(i)return n?-1:I(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function d(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),B(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(c(e,o+h)!==c(t,h)){f=!1;break}if(f)return o}return-1}function v(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(B(s))return a;e[r+a]=s}return a}function m(e,t,r,n){return V(I(t,e.length-r),e,r,n)}function b(e,t,r,n){return V(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return b(e,t,r,n)}function P(e,t,r,n){return V(F(t),e,r,n)}function T(e,t,r,n){return V(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function _(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=w));return r}(n)}r.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,r){return s(e,t,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(U(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(U(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?k(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,t,r,n,i){if(U(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+_typeof(e));if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),u=Math.min(o,s),c=this.slice(n,i),l=e.slice(t,r),f=0;f<u;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return m(this,e,t,r);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return S(this,e,t,r);case"base64":return P(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function x(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function O(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=D(e[o]);return i}function A(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function C(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,r,i,o){return t=+t,r>>>=0,o||N(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function L(e,t,r,i,o){return t=+t,r>>>=0,o||N(e,0,r,8),n.write(e,t,r,i,52,8),r+8}a.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||C(e,4,this.length),n.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),n.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),n.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),n.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||j(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||j(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,n),u=s.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=s[o%u]}return this};var M=/[^+/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function I(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":16,buffer:20,ieee754:67}],21:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],22:[function(e,t,r){var n=e("fable-serviceproviderbase"),i=e("./LinkedList.js"),o=function(e){function t(e,r,n){var o;return _classCallCheck2(this,t),(o=_callSuper(this,t,void 0===e?[{}]:[e,r,n])).serviceType="ObjectCache",o._HashMap={},o._RecordMap={},o._List=new i,o.maxLength=0,o.maxAge=0,_possibleConstructorReturn(o)}return _inherits(t,e),_createClass2(t,[{key:"RecordMap",get:function(){return this._RecordMap}},{key:"put",value:function(e,t){if(this._HashMap.hasOwnProperty(t))return this._HashMap[t].Datum=e,this._RecordMap[t]=e,this._HashMap[t].Datum;var r=this._List.push(e,t);return this._HashMap[r.Hash]=r,this._RecordMap[t]=e,this.maxLength>0&&this._List.length>this.maxLength&&(r=this._List.pop(),delete this._RecordMap[r.Hash],delete this._HashMap[r.Hash]),r.Metadata.Created=+new Date,r.Datum}},{key:"read",value:function(e){return!!this._HashMap.hasOwnProperty(e)&&this._HashMap[e].Datum}},{key:"touch",value:function(e){if(!this._HashMap.hasOwnProperty(e))return!1;var t=this._List.remove(this._HashMap[e]);return delete this._RecordMap[e],delete this._HashMap[e],this.put(t.Datum,t.Hash)}},{key:"expire",value:function(e){if(!this._HashMap.hasOwnProperty(e))return!1;var t=this._HashMap[e];return t=this._List.remove(t),delete this._RecordMap[t.Hash],delete this._HashMap[t.Hash],t}},{key:"pruneBasedOnExpiration",value:function(e,t){var r=void 0===t?[]:t;if(this.maxAge<1)return e(r);for(var n=+new Date,i=Object.keys(this._HashMap),o=0;o<i.length;o++)n-this._HashMap[i[o]].Metadata.Created>=this.maxAge&&r.push(this.expire(i[o]));e(r)}},{key:"pruneBasedOnLength",value:function(e,t){var r=void 0===t?[]:t;if(this.maxLength>0)for(;this._List.length>this.maxLength;)r.push(this._List.pop());return e(r)}},{key:"pruneCustom",value:function(e,t,r){for(var n=void 0===r?[]:r,i=Object.keys(this._HashMap),o=0;o<i.length;o++){var a=this._HashMap[i[o]];t(a.Datum,a.Hash,a)&&n.push(this.expire(i[o]))}e(n)}},{key:"prune",value:function(e){var t=this,r=[];if(this._List.length<1)return e(r);this.pruneBasedOnExpiration((function(n){t.pruneBasedOnLength(e,r)}),r)}},{key:"getNode",value:function(e){return!!this._HashMap.hasOwnProperty(e)&&this._HashMap[e]}}]),t}(n);t.exports=o},{"./LinkedList.js":24,"fable-serviceproviderbase":51}],23:[function(e,t,r){var n=_createClass2((function e(){_classCallCheck2(this,e),this.Hash=!1,this.Datum=!1,this.Metadata={},this.LeftNode=!1,this.RightNode=!1,this.__ISNODE=!0}));t.exports=n},{}],24:[function(e,t,r){var n=e("./LinkedList-Node.js"),i=function(){function e(){_classCallCheck2(this,e),this.totalNodes=0,this.length=0,this.head=!1,this.tail=!1}return _createClass2(e,[{key:"initializeNode",value:function(e,t){if(void 0===e)return!1;this.totalNodes++;var r=void 0!==t?t:"NODE[".concat(this.totalNodes,"]"),i=new n;return i.Hash=r,i.Datum=e,i}},{key:"append",value:function(e,t){var r=this.initializeNode(e,t);return!!r&&(this.length++,1==this.length?(this.head=r,this.tail=r,r):(this.tail.RightNode=r,r.LeftNode=this.tail,this.tail=r,r))}},{key:"push",value:function(e,t){return this.append(e,t)}},{key:"prepend",value:function(e,t){var r=this.initializeNode(e,t);return!!r&&(this.length++,1==this.length?(this.head=r,this.tail=r,r):(this.head.LeftNode=r,r.RightNode=this.head,this.head=r,r))}},{key:"remove",value:function(e){return void 0!==e&&(!!e.__ISNODE&&(this.length--,this.length<1?(this.head=!1,this.tail=!1,e):e.LeftNode&&e.RightNode?(e.LeftNode.RightNode=e.RightNode,e.RightNode.LeftNode=e.LeftNode,e.RightNode=!1,e.LeftNode=!1,e):e.LeftNode?(e.LeftNode.RightNode=!1,this.tail=e.LeftNode,e.LeftNode=!1,e):(e.RightNode.LeftNode=!1,this.head=e.RightNode,e.RightNode=!1,e)))}},{key:"pop",value:function(){return this.remove(this.head)}},{key:"each",value:function(e,t){var r=this;if(this.length<1)return t();var n=!1;return function i(o){if(o)return t(o);if(n){if(!n.RightNode)return t();n=n.RightNode}else n=r.head;e(n.Datum,n.Hash,i)}()}},{key:"seek",value:function(e){if(!e)return!1;if(this.length<1)return!1;if(e>=this.length)return!1;for(var t=this.head,r=0;r<e;r++)t=t.RightNode;return t}}]),e}();t.exports=i},{"./LinkedList-Node.js":23}],25:[function(e,t,r){var n=e("get-intrinsic"),i=e("./"),o=i(n("String.prototype.indexOf"));t.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},{"./":26,"get-intrinsic":59}],26:[function(e,t,r){var n=e("function-bind"),i=e("get-intrinsic"),o=e("set-function-length"),a=e("es-errors/type"),s=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||n.call(u,s),l=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}t.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(n,u,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var h=function(){return c(n,s,arguments)};l?l(t.exports,"apply",{value:h}):t.exports.apply=h},{"es-errors/type":42,"function-bind":58,"get-intrinsic":59,"set-function-length":98}],27:[function(e,t,r){r.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},n=(t||{}).decode||o,i=0;for(;i<e.length;){var a=e.indexOf("=",i);if(-1===a)break;var u=e.indexOf(";",i);if(-1===u)u=e.length;else if(u<a){i=e.lastIndexOf(";",a-1)+1;continue}var c=e.slice(i,a).trim();if(void 0===r[c]){var l=e.slice(a+1,u).trim();34===l.charCodeAt(0)&&(l=l.slice(1,-1)),r[c]=s(l,n)}i=u+1}return r},r.serialize=function(e,t,r){var o=r||{},s=o.encode||a;if("function"!=typeof s)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var u=s(t);if(u&&!i.test(u))throw new TypeError("argument val is invalid");var c=e+"="+u;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(o.domain){if(!i.test(o.domain))throw new TypeError("option domain is invalid");c+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is invalid");c+="; Path="+o.path}if(o.expires){var f=o.expires;if(!function(e){return"[object Date]"===n.call(e)||e instanceof Date}(f)||isNaN(f.valueOf()))throw new TypeError("option expires is invalid");c+="; Expires="+f.toUTCString()}o.httpOnly&&(c+="; HttpOnly");o.secure&&(c+="; Secure");o.partitioned&&(c+="; Partitioned");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return c};var n=Object.prototype.toString,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function o(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function a(e){return encodeURIComponent(e)}function s(e,t){try{return t(e)}catch(t){return e}}},{}],28:[function(e,t,r){var n,i;n=this,i=function(){var e=6e4,t=36e5,r="millisecond",n="second",i="minute",o="hour",a="day",s="week",u="month",c="quarter",l="year",f="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,u),o=r-i<0,a=t.clone().add(n+(o?-1:1),u);return+(-(n+(r-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:f,h:o,m:i,s:n,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},m="en",b={};b[m]=g;var S="$isDayjsObject",P=function(e){return e instanceof w||!(!e||!e[S])},T=function e(t,r,n){var i;if(!t)return m;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(i=o),r&&(b[o]=r,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!n&&i&&(m=i),i||!n&&m},_=function(e,t){if(P(e))return e.clone();var r="object"==_typeof(t)?t:{};return r.date=e,r.args=arguments,new w(r)},k=v;k.l=T,k.i=P,k.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function g(e){this.$L=T(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return k},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(e,t){var r=_(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return _(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<_(e)},y.$g=function(e,t,r){return k.u(e)?this[t]:this.set(r,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var r=this,c=!!k.u(t)||t,h=k.p(e),p=function(e,t){var n=k.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return c?n:n.endOf(a)},d=function(e,t){return k.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},g=this.$W,y=this.$M,v=this.$D,m="set"+(this.$u?"UTC":"");switch(h){case l:return c?p(1,0):p(31,11);case u:return c?p(1,y):p(0,y+1);case s:var b=this.$locale().weekStart||0,S=(g<b?g+7:g)-b;return p(c?v-S:v+(6-S),y);case a:case f:return d(m+"Hours",0);case o:return d(m+"Minutes",1);case i:return d(m+"Seconds",2);case n:return d(m+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var s,c=k.p(e),h="set"+(this.$u?"UTC":""),p=(s={},s[a]=h+"Date",s[f]=h+"Date",s[u]=h+"Month",s[l]=h+"FullYear",s[o]=h+"Hours",s[i]=h+"Minutes",s[n]=h+"Seconds",s[r]=h+"Milliseconds",s)[c],d=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var g=this.clone().set(f,1);g.$d[p](d),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[k.p(e)]()},y.add=function(r,c){var f,h=this;r=Number(r);var p=k.p(c),d=function(e){var t=_(h);return k.w(t.date(t.date()+Math.round(e*r)),h)};if(p===u)return this.set(u,this.$M+r);if(p===l)return this.set(l,this.$y+r);if(p===a)return d(1);if(p===s)return d(7);var g=(f={},f[i]=e,f[o]=t,f[n]=1e3,f)[p]||1,y=this.$d.getTime()+r*g;return k.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),o=this.$H,a=this.$m,s=this.$M,u=r.weekdays,c=r.months,l=r.meridiem,f=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].slice(0,o)},p=function(e){return k.s(o%12||12,e,"0")},g=l||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return f(r.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,u,2);case"ddd":return f(r.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(o);case"HH":return k.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,h){var p,d=this,g=k.p(f),y=_(r),v=(y.utcOffset()-this.utcOffset())*e,m=this-y,b=function(){return k.m(d,y)};switch(g){case l:p=b()/12;break;case u:p=b();break;case c:p=b()/3;break;case s:p=(m-v)/6048e5;break;case a:p=(m-v)/864e5;break;case o:p=m/t;break;case i:p=m/e;break;case n:p=m/1e3;break;default:p=m}return h?p:k.a(p)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=T(e,t,!0);return n&&(r.$L=n),r},y.clone=function(){return k.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),x=w.prototype;return _.prototype=x,[["$ms",r],["$s",n],["$m",i],["$H",o],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,w,_),e.$i=!0),_},_.locale=T,_.isDayjs=P,_.unix=function(e){return _(1e3*e)},_.en=b[m],_.Ls=b,_.p={},_},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs=i()},{}],29:[function(e,t,r){var n,i;n=this,i=function(){return function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var i=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return i.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return i.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return i.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return n.bind(this)(o)}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_advancedFormat=i()},{}],30:[function(e,t,r){var n,i;n=this,i=function(){var e="day";return function(t,r,n){var i=function(t){return t.add(4-t.isoWeekday(),e)},o=r.prototype;o.isoWeekYear=function(){return i(this).year()},o.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var r,o,a,s=i(this),u=(r=this.isoWeekYear(),a=4-(o=(this.$u?n.utc:n)().year(r).startOf("year")).isoWeekday(),o.isoWeekday()>4&&(a+=7),o.add(a,e));return s.diff(u,"week")+1},o.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=o.startOf;o.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_isoWeek=i()},{}],31:[function(e,t,r){var n,i;n=this,i=function(){return function(e,t,r){e=e||{};var n=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,r,i){return n.fromToBase(e,t,r,i)}r.en.relativeTime=i,n.fromToBase=function(t,n,o,a,s){for(var u,c,l,f=o.$locale().relativeTime||i,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=h.length,d=0;d<p;d+=1){var g=h[d];g.d&&(u=a?r(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var y=(e.rounding||Math.round)(Math.abs(u));if(l=u>0,y<=g.r||!g.r){y<=1&&d>0&&(g=h[d-1]);var v=f[g.l];s&&(y=s(""+y)),c="string"==typeof v?v.replace("%d",y):v(y,n,g.l,l);break}}if(n)return c;var m=l?f.future:f.past;return"function"==typeof m?m(c):m.replace("%s",c)},n.to=function(e,t){return o(e,t,this,!0)},n.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(a(this),e)},n.fromNow=function(e){return this.from(a(this),e)}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_relativeTime=i()},{}],32:[function(e,t,r){var n,i;n=this,i=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,i){var o,a=function(e,r,n){void 0===n&&(n={});var i=new Date(e),o=function(e,r){void 0===r&&(r={});var n=r.timeZoneName||"short",i=e+"|"+n,o=t[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),t[i]=o),o}(r,n);return o.formatToParts(i)},s=function(t,r){for(var n=a(t,r),o=[],s=0;s<n.length;s+=1){var u=n[s],c=u.type,l=u.value,f=e[c];f>=0&&(o[f]=parseInt(l,10))}var h=o[3],p=24===h?0:h,d=o[0]+"-"+o[1]+"-"+o[2]+" "+p+":"+o[4]+":"+o[5]+":000",g=+t;return(i.utc(d).valueOf()-(g-=g%1e3))/6e4},u=n.prototype;u.tz=function(e,t){void 0===e&&(e=o);var r=this.utcOffset(),n=this.toDate(),a=n.toLocaleString("en-US",{timeZone:e}),s=Math.round((n-new Date(a))/1e3/60),u=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-s,!0);if(t){var c=u.utcOffset();u=u.add(r-c,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),r=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return r&&r.value};var c=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(r,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,r){var n=r&&t,a=r||t||o,u=s(+i(),a);if("string"!=typeof e)return i(e).tz(a);var c=function(e,t,r){var n=e-60*t*1e3,i=s(n,r);if(t===i)return[n,t];var o=s(n-=60*(i-t)*1e3,r);return i===o?[n,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(e,n).valueOf(),u,a),l=c[0],f=c[1],h=i(l).utcOffset(f);return h.$x.$timezone=a,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){o=e}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_timezone=i()},{}],33:[function(e,t,r){var n,i;n=this,i=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var r=o(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(n,i){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(n),null===n))return this;var a=Math.abs(n)<=16?60*n:n,s=this;if(i)return s.$offset=a,s.$u=0===n,s;if(0!==n){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=a.diff;a.diff=function(e,t,r){if(e&&this.$u===e.$u)return h.call(this,e,t,r);var n=this.local(),i=o(e).local();return h.call(n,i,t,r)}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_utc=i()},{}],34:[function(e,t,r){var n,i;n=this,i=function(){var e="week",t="year";return function(r,n,i){var o=n.prototype;o.week=function(r){if(void 0===r&&(r=null),null!==r)return this.add(7*(r-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(t).add(1,t).date(n),a=i(this).endOf(e);if(o.isBefore(a))return 1}var s=i(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),u=this.diff(s,e,!0);return u<0?i(this).startOf("week").week():Math.ceil(u)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}},"object"==_typeof(r)&&void 0!==t?t.exports=i():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_weekOfYear=i()},{}],35:[function(e,t,r){var n;n=this,"object"==_typeof(r)&&void 0!==t?t.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,n=(r<t?r+7:r)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")}}:(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_weekday=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,n=(r<t?r+7:r)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")}}},{}],36:[function(e,t,r){var n=e("has-property-descriptors")(),i=e("get-intrinsic"),o=n&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(e){o=!1}var a=e("es-errors/syntax"),s=e("es-errors/type"),u=e("gopd");t.exports=function(e,t,r){if(!e||"object"!==_typeof(e)&&"function"!=typeof e)throw new s("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!==_typeof(t))throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!u&&u(e,t);if(o)o(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===n&&f?f.enumerable:!n,value:r,writable:null===i&&f?f.writable:!i});else{if(!l&&(n||i||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},{"es-errors/syntax":41,"es-errors/type":42,"get-intrinsic":59,gopd:60,"has-property-descriptors":61}],37:[function(e,t,r){t.exports=EvalError},{}],38:[function(e,t,r){t.exports=Error},{}],39:[function(e,t,r){t.exports=RangeError},{}],40:[function(e,t,r){t.exports=ReferenceError},{}],41:[function(e,t,r){t.exports=SyntaxError},{}],42:[function(e,t,r){t.exports=TypeError},{}],43:[function(e,t,r){t.exports=URIError},{}],44:[function(e,t,r){var n,i="object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,r)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+_typeof(e))}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var i,o,a,s;if(c(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):y(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+_typeof(e));e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=y(u,c);for(r=0;r<c;++r)o(l[r],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,o,a;if(c(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],45:[function(e,t,r){var n=function(e){function t(e,r){var n;return _classCallCheck2(this,t),(n=_callSuper(this,t,[e,r]))._Settings="object"==_typeof(e)?e:{},n.serviceType="Logging-Provider",n.loggerUUID=n.generateInsecureUUID(),n.levels=["trace","debug","info","warn","error","fatal"],n}return _inherits(t,e),_createClass2(t,[{key:"generateInsecureUUID",value:function(){var e=(new Date).getTime();return"LOGSTREAM-xxxxxx-yxxxxx".replace(/[xy]/g,(function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?r:3&r|8).toString(16)}))}},{key:"initialize",value:function(){}},{key:"trace",value:function(e,t){this.write("trace",e,t)}},{key:"debug",value:function(e,t){this.write("debug",e,t)}},{key:"info",value:function(e,t){this.write("info",e,t)}},{key:"warn",value:function(e,t){this.write("warn",e,t)}},{key:"error",value:function(e,t){this.write("error",e,t)}},{key:"fatal",value:function(e,t){this.write("fatal",e,t)}},{key:"write",value:function(e,t,r){return!0}}]),t}(e("fable-serviceproviderbase").CoreServiceProviderBase);t.exports=n},{"fable-serviceproviderbase":51}],46:[function(e,t,r){var n;t.exports=((n={}).console=e("./Fable-Log-Logger-Console.js"),n.default=n.console,n)},{"./Fable-Log-Logger-Console.js":48}],47:[function(e,t,r){t.exports=[{loggertype:"console",streamtype:"console",level:"trace"}]},{}],48:[function(e,t,r){var n=function(e){function t(e,r){var n;_classCallCheck2(this,t),(n=_callSuper(this,t,[e]))._ShowTimeStamps=!("showtimestamps"in n._Settings)||1==n._Settings.showtimestamps,n._FormattedTimeStamps=!("formattedtimestamps"in n._Settings)||1==n._Settings.formattedtimestamps,n._ContextMessage="Context"in n._Settings?"(".concat(n._Settings.Context,")"):"Product"in r._Settings?"(".concat(r._Settings.Product,")"):"Unnamed_Log_Context",n._OutputLogLinesToConsole=!("outputloglinestoconsole"in n._Settings)||n._Settings.outputloglinestoconsole,n._OutputObjectsToConsole=!("outputobjectstoconsole"in n._Settings)||n._Settings.outputobjectstoconsole,n.prefixCache={};for(var i=0;i<=n.levels.length;i++)n.prefixCache[n.levels[i]]="[".concat(n.levels[i],"] ").concat(n._ContextMessage,": "),n._ShowTimeStamps&&(n.prefixCache[n.levels[i]]=" "+n.prefixCache[n.levels[i]]);return n}return _inherits(t,e),_createClass2(t,[{key:"write",value:function(e,t,r){var n="";this._ShowTimeStamps&&this._FormattedTimeStamps?n=(new Date).toISOString():this._ShowTimeStamps&&(n=+new Date);var i="".concat(n).concat(this.prefixCache[e]).concat(t);return this._OutputLogLinesToConsole&&console.log(i),this._OutputObjectsToConsole&&void 0!==r&&console.log(JSON.stringify(r,null,2)),i}}]),t}(e("./Fable-Log-BaseLogger.js"));t.exports=n},{"./Fable-Log-BaseLogger.js":45}],49:[function(e,t,r){var n=e("./Fable-Log-Logger-Console.js"),i=e("fs"),o=e("path"),a=function(e){function t(e,r){var n;return _classCallCheck2(this,t),(n=_callSuper(this,t,[e,r])).logFileRawPath=n._Settings.hasOwnProperty("path")?n._Settings.path:"./".concat(n._ContextMessage,".log"),n.logFilePath=o.normalize(n.logFileRawPath),n.logFileStreamOptions=n._Settings.hasOwnProperty("fileStreamoptions")?n._Settings.fileStreamOptions:{flags:"a",encoding:"utf8"},n.fileWriter=i.createWriteStream(n.logFilePath,n.logFileStreamOptions),n.activelyWriting=!1,n.logLineStrings=[],n.logObjectStrings=[],n.defaultWriteCompleteCallback=function(){},n.defaultBufferFlushCallback=function(){},n}return _inherits(t,e),_createClass2(t,[{key:"closeWriter",value:function(e){var t="function"==typeof e?e:function(){};if(this.fileWriter)return this.fileWriter.end("\n"),this.fileWriter.once("finish",t.bind(this))}},{key:"completeBufferFlushToLogFile",value:function(e){this.activelyWriting=!1;var t="function"==typeof e?e:this.defaultBufferFlushCallback;if(!(this.logLineStrings.length>0))return t();this.flushBufferToLogFile(t)}},{key:"flushBufferToLogFile",value:function(e){if(!this.activelyWriting){this.activelyWriting=!0;var t="function"==typeof e?e:this.defaultBufferFlushCallback,r=this.logLineStrings,n=this.logObjectStrings;this.logLineStrings=[],this.logObjectStrings=[];for(var i="",o=0;o<r.length;o++)i+="".concat(r[o],"\n"),!1!==n[o]&&(i+="".concat(n[o],"\n"));if(this.fileWriter.write(i,"utf8"))return this.completeBufferFlushToLogFile(t);this.fileWriter.once("drain",this.completeBufferFlushToLogFile.bind(this,t))}}},{key:"write",value:function(e,r,n){var i=_get(_getPrototypeOf(t.prototype),"write",this).call(this,e,r,n);this.logLineStrings.push(i),void 0!==n?this.logObjectStrings.push(JSON.stringify(n,null,4)):this.logObjectStrings.push(!1),this.flushBufferToLogFile()}}]),t}(n);t.exports=a},{"./Fable-Log-Logger-Console.js":48,fs:19,path:83}],50:[function(e,t,r){var n=function(t){function r(t,n){var i;_classCallCheck2(this,r),(i=_callSuper(this,r,[t,n])).serviceType="Logging";var o="object"===_typeof(t)?t:{};return i._Settings=o,i._Providers=e("./Fable-Log-DefaultProviders-Node.js"),i._StreamDefinitions="LogStreams"in o?o.LogStreams:e("./Fable-Log-DefaultStreams.json"),i.logStreams=[],i.logProviders={},i.activeLogStreams={},i.logStreamsTrace=[],i.logStreamsDebug=[],i.logStreamsInfo=[],i.logStreamsWarn=[],i.logStreamsError=[],i.logStreamsFatal=[],i.datumDecorator=function(e){return e},i.uuid="string"==typeof o.Product?o.Product:"Default",i}return _inherits(r,t),_createClass2(r,[{key:"addLogger",value:function(e,t){if(e.loggerUUID in this.activeLogStreams)return!1;switch(this.logStreams.push(e),this.activeLogStreams[e.loggerUUID]=!0,t){case"trace":this.logStreamsTrace.push(e);case"debug":this.logStreamsDebug.push(e);case"info":this.logStreamsInfo.push(e);case"warn":this.logStreamsWarn.push(e);case"error":this.logStreamsError.push(e);case"fatal":this.logStreamsFatal.push(e)}return!0}},{key:"setDatumDecorator",value:function(e){this.datumDecorator="function"==typeof e?e:function(e){return e}}},{key:"trace",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsTrace.length;n++)this.logStreamsTrace[n].trace(e,r)}},{key:"debug",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsDebug.length;n++)this.logStreamsDebug[n].debug(e,r)}},{key:"info",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsInfo.length;n++)this.logStreamsInfo[n].info(e,r)}},{key:"warn",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsWarn.length;n++)this.logStreamsWarn[n].warn(e,r)}},{key:"error",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsError.length;n++)this.logStreamsError[n].error(e,r)}},{key:"fatal",value:function(e,t){for(var r=this.datumDecorator(t),n=0;n<this.logStreamsFatal.length;n++)this.logStreamsFatal[n].fatal(e,r)}},{key:"initialize",value:function(){for(var e=0;e<this._StreamDefinitions.length;e++){var t=Object.assign({loggertype:"default",streamtype:"console",level:"info"},this._StreamDefinitions[e]);t.loggertype in this._Providers?this.addLogger(new this._Providers[t.loggertype](t,this),t.level):console.log("Error initializing log stream: bad loggertype in stream definition ".concat(JSON.stringify(t)))}for(var r=0;r<this.logStreams.length;r++)this.logStreams[r].initialize()}},{key:"logTime",value:function(e,t){var r=void 0!==e?e:"Time",n=new Date;this.info("".concat(r," ").concat(n," (epoch ").concat(+n,")"),t)}},{key:"getTimeStamp",value:function(){return+new Date}},{key:"getTimeDelta",value:function(e){return+new Date-e}},{key:"logTimeDelta",value:function(e,t,r){var n=void 0!==t?t:"Time Measurement",i=(_typeof(r),+new Date);this.info("".concat(n," logged at (epoch ").concat(+i,") took (").concat(e,"ms)"),r)}},{key:"logTimeDeltaHuman",value:function(e,t,r){var n=void 0!==t?t:"Time Measurement",i=+new Date,o=parseInt(e%1e3),a=parseInt(e/1e3%60),s=parseInt(e/6e4%60),u=parseInt(e/36e5);o=o<10?"00"+o:o<100?"0"+o:o,a=a<10?"0"+a:a,s=s<10?"0"+s:s,u=u<10?"0"+u:u,this.info("".concat(n," logged at (epoch ").concat(+i,") took (").concat(e,"ms) or (").concat(u,":").concat(s,":").concat(a,".").concat(o,")"),r)}},{key:"logTimeDeltaRelative",value:function(e,t,r){this.logTimeDelta(this.getTimeDelta(e),t,r)}},{key:"logTimeDeltaRelativeHuman",value:function(e,t,r){this.logTimeDeltaHuman(this.getTimeDelta(e),t,r)}}]),r}(e("fable-serviceproviderbase").CoreServiceProviderBase);t.exports=n,t.exports.LogProviderBase=e("./Fable-Log-BaseLogger.js"),t.exports.LogProviderConsole=e("./Fable-Log-Logger-Console.js"),t.exports.LogProviderFlatfile=e("./Fable-Log-Logger-SimpleFlatFile.js")},{"./Fable-Log-BaseLogger.js":45,"./Fable-Log-DefaultProviders-Node.js":46,"./Fable-Log-DefaultStreams.json":47,"./Fable-Log-Logger-Console.js":48,"./Fable-Log-Logger-SimpleFlatFile.js":49,"fable-serviceproviderbase":51}],51:[function(e,t,r){var n=function(){function e(t,r,n){_classCallCheck2(this,e),"object"===_typeof(t)&&t.isFable?this.connectFable(t):this.fable=!1,this.fable?(this.UUID=t.getUUID(),this.options="object"===_typeof(r)?r:{}):(this.options="object"!==_typeof(t)||t.isFable?"object"===_typeof(r)?r:{}:t,this.UUID="CORE-SVC-".concat(Math.floor(89999*Math.random()+1e4))),this.serviceType="Unknown-".concat(this.UUID),this.Hash="string"==typeof n?n:this.fable||"string"!=typeof r?"".concat(this.UUID):r}return _createClass2(e,[{key:"connectFable",value:function(e){if("object"!==_typeof(e)||!e.isFable){var t="Fable Service Provider Base: Cannot connect to Fable, invalid Fable object passed in. The pFable parameter was a [".concat(_typeof(e),"].}");return console.log(t),new Error(t)}return this.fable||(this.fable=e),this.log||(this.log=this.fable.Logging),this.services||(this.services=this.fable.services),this.servicesMap||(this.servicesMap=this.fable.servicesMap),!0}}]),e}();_defineProperty2(n,"isFableService",!0),t.exports=n,t.exports.CoreServiceProviderBase=n},{}],52:[function(e,t,r){t.exports={Product:"ApplicationNameHere",ProductVersion:"0.0.0",ConfigFile:!1,LogStreams:[{level:"trace"}]}},{}],53:[function(e,t,r){(function(r){(function(){var n=e("precedent"),i=function(){function e(t){_classCallCheck2(this,e),this.templateProcessor=new n,this.templateProcessor.addPattern("${","}",(function(e){var t=e.trim(),n=t.indexOf("|"),i=n>=0?t.substring(n+1):"",o=n>-1?t.substring(0,n):t;return o in r.env?r.env[o]:i}))}return _createClass2(e,[{key:"parseSetting",value:function(e){return this.templateProcessor.parseString(e)}}]),e}();t.exports=i}).call(this)}).call(this,e("_process"))},{_process:87,precedent:84}],54:[function(e,t,r){var n=e("fable-serviceproviderbase").CoreServiceProviderBase,i=e("./Fable-Settings-TemplateProcessor.js"),o=function(t){function r(t,n){var o;_classCallCheck2(this,r),(o=_callSuper(this,r,[t,n])).serviceType="SettingsManager",o.settingsTemplateProcessor=new i,o._configureEnvTemplating(t),o.default=o.buildDefaultSettings();var a=o.merge(t,o.buildDefaultSettings());if(o.base=JSON.parse(JSON.stringify(a)),a.DefaultConfigFile)try{a=o.merge(e(a.DefaultConfigFile),a)}catch(e){console.log("Fable-Settings Warning: Default configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+e)}if(a.ConfigFile)try{a=o.merge(e(a.ConfigFile),a)}catch(e){console.log("Fable-Settings Warning: Configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+e)}return o.settings=a,o}return _inherits(r,t),_createClass2(r,[{key:"buildDefaultSettings",value:function(){return JSON.parse(JSON.stringify(e("./Fable-Settings-Default")))}},{key:"_configureEnvTemplating",value:function(e){this._PerformEnvTemplating=!e||!0!==e.NoEnvReplacement}},{key:"_resolveEnv",value:function(e){for(var t in e)"object"===_typeof(e[t])?this._resolveEnv(e[t]):"string"==typeof e[t]&&(e[t]=this.settingsTemplateProcessor.parseSetting(e[t]))}},{key:"_isObject",value:function(e){return"object"===_typeof(e)&&!Array.isArray(e)}},{key:"_deepMergeObjects",value:function(e,t){var r=this;if(t&&this._isObject(t))return Object.keys(t).forEach((function(n){var i=t[n];if(r._isObject(i)){var o=e[n];if(o&&r._isObject(o))return void r._deepMergeObjects(o,i)}e[n]=i})),e}},{key:"merge",value:function(e,t){var r="object"===_typeof(e)?e:{},n="object"===_typeof(t)?t:this.settings,i=JSON.parse(JSON.stringify(r));return n=this._deepMergeObjects(n,i),this._PerformEnvTemplating&&this._resolveEnv(n),this._configureEnvTemplating(n),n}},{key:"fill",value:function(e){var t="object"===_typeof(e)?e:{},r=JSON.parse(JSON.stringify(t));return this.settings=this._deepMergeObjects(r,this.settings),this.settings}}]),r}(n);t.exports=o,t.exports.new=function(e){return new o(e)}},{"./Fable-Settings-Default":52,"./Fable-Settings-TemplateProcessor.js":53,"fable-serviceproviderbase":51}],55:[function(e,t,r){var n=function(){function e(){_classCallCheck2(this,e),this.getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)}return _createClass2(e,[{key:"generateWhatWGBytes",value:function(){var e=new Uint8Array(16);return this.getRandomValues(e),e}},{key:"generateRandomBytes",value:function(){for(var e,t=new Uint8Array(16),r=0;r<16;r++)3&r||(e=4294967296*Math.random()),t[r]=e>>>((3&r)<<3)&255;return t}},{key:"generate",value:function(){return this.getRandomValues?this.generateWhatWGBytes():this.generateRandomBytes()}}]),e}();t.exports=n},{}],56:[function(e,t,r){var n=e("fable-serviceproviderbase").CoreServiceProviderBase,i=e("./Fable-UUID-Random.js"),o=function(e){function t(e,r){var n;_classCallCheck2(this,t),(n=_callSuper(this,t,[e,r])).serviceType="UUID",n._UUIDModeRandom="object"===_typeof(e)&&"UUIDModeRandom"in e&&1==e.UUIDModeRandom,n._UUIDLength="object"===_typeof(e)&&"UUIDLength"in e?e.UUIDLength+0:8,n._UUIDRandomDictionary="object"===_typeof(e)&&"UUIDDictionary"in e?e.UUIDDictionary+0:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n.randomByteGenerator=new i,n._HexLookup=[];for(var o=0;o<256;++o)n._HexLookup[o]=(o+256).toString(16).substr(1);return n}return _inherits(t,e),_createClass2(t,[{key:"bytesToUUID",value:function(e){var t=0;return[this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]]].join("")}},{key:"generateUUIDv4",value:function(){new Array(16);var e=this.randomByteGenerator.generate();return e[6]=15&e[6]|64,e[8]=63&e[8]|128,this.bytesToUUID(e)}},{key:"generateRandom",value:function(){for(var e="",t=0;t<this._UUIDLength;t++)e+=this._UUIDRandomDictionary.charAt(Math.floor(Math.random()*(this._UUIDRandomDictionary.length-1)));return e}},{key:"getUUID",value:function(){return this._UUIDModeRandom?this.generateRandom():this.generateUUIDv4()}}]),t}(n);t.exports=o,t.exports.new=function(e){return new o(e)}},{"./Fable-UUID-Random.js":55,"fable-serviceproviderbase":51}],57:[function(e,t,r){var n=Object.prototype.toString,i=Math.max,o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r};t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==n.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r}(arguments,1),s=i(0,t.length-a.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(r=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var n=t.apply(this,o(a,arguments));return Object(n)===n?n:this}return t.apply(e,o(a,arguments))})),t.prototype){var l=function(){};l.prototype=t.prototype,r.prototype=new l,l.prototype=null}return r}},{}],58:[function(e,t,r){var n=e("./implementation");t.exports=Function.prototype.bind||n},{"./implementation":57}],59:[function(e,t,r){var n,i=e("es-errors"),o=e("es-errors/eval"),a=e("es-errors/range"),s=e("es-errors/ref"),u=e("es-errors/syntax"),c=e("es-errors/type"),l=e("es-errors/uri"),f=Function,h=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var d=function(){throw new c},g=p?function(){try{return d}catch(e){try{return p(arguments,"callee").get}catch(e){return d}}}():d,y=e("has-symbols")(),v=e("has-proto")(),m=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},S="undefined"!=typeof Uint8Array&&m?m(Uint8Array):n,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&m?m([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&m?m(m([][Symbol.iterator]())):n,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":_typeof(JSON))?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&m?m((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&m?m((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&m?m(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":g,"%TypedArray%":S,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(m)try{null.error}catch(e){var T=m(m(e));P["%Error.prototype%"]=T}var _=function e(t){var r;if("%AsyncFunction%"===t)r=h("async function () {}");else if("%GeneratorFunction%"===t)r=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=h("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&m&&(r=m(i.prototype))}return P[t]=r,r},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=e("function-bind"),x=e("hasown"),E=w.call(Function.call,Array.prototype.concat),O=w.call(Function.apply,Array.prototype.splice),A=w.call(Function.call,String.prototype.replace),C=w.call(Function.call,String.prototype.slice),j=w.call(Function.call,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,L=function(e,t){var r,n=e;if(x(k,n)&&(n="%"+(r=k[n])[0]+"%"),x(P,n)){var i=P[n];if(i===b&&(i=_(n)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=C(e,0,1),r=C(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return A(e,N,(function(e,t,r,i){n[n.length]=r?A(i,R,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=L("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],O(r,E([0,1],l)));for(var f=1,h=!0;f<r.length;f+=1){var d=r[f],g=C(d,0,1),y=C(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&h||(s=!0),x(P,o="%"+(n+="."+d)+"%"))a=P[o];else if(null!=a){if(!(d in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&f+1>=r.length){var v=p(a,d);a=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[d]}else h=x(a,d),a=a[d];h&&!s&&(P[o]=a)}}return a}},{"es-errors":38,"es-errors/eval":37,"es-errors/range":39,"es-errors/ref":40,"es-errors/syntax":41,"es-errors/type":42,"es-errors/uri":43,"function-bind":58,"has-proto":62,"has-symbols":63,hasown:65}],60:[function(e,t,r){var n=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}t.exports=n},{"get-intrinsic":59}],61:[function(e,t,r){var n=e("get-intrinsic")("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},t.exports=i},{"get-intrinsic":59}],62:[function(e,t,r){var n={foo:{}},i=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!({__proto__:null}instanceof i)}},{}],63:[function(e,t,r){var n="undefined"!=typeof Symbol&&Symbol,i=e("./shams");t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"===_typeof(n("foo"))&&("symbol"===_typeof(Symbol("bar"))&&i())))}},{"./shams":64}],64:[function(e,t,r){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===_typeof(Symbol.iterator))return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},{}],65:[function(e,t,r){var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=e("function-bind");t.exports=o.call(n,i)},{"function-bind":58}],66:[function(e,t,r){var n=e("http"),i=e("url"),o=t.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},{http:102,url:123}],67:[function(e,t,r){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,p=e[t+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+p]=255&a,p+=d,a/=256,c-=8);e[r+p-d]|=128*g}},{}],68:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],69:[function(e,t,r){t.exports=function(e,t){return t.startsWith(e)&&t.endsWith(e)?t.substring(1,t.length-1):t}},{}],70:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n,this.translationTable={}}return _createClass2(e,[{key:"translationCount",value:function(){return Object.keys(this.translationTable).length}},{key:"addTranslation",value:function(e){var t=this;if("object"!=_typeof(e))return this.logError("Hash translation addTranslation expected a translation be type object but was passed in ".concat(_typeof(e))),!1;Object.keys(e).forEach((function(r){"string"!=typeof e[r]?t.logError("Hash translation addTranslation expected a translation destination hash for [".concat(r,"] to be a string but the referrant was a ").concat(_typeof(e[r]))):t.translationTable[r]=e[r]}))}},{key:"removeTranslationHash",value:function(e){e in this.translationTable&&delete this.translationTable[e]}},{key:"removeTranslation",value:function(e){var t=this;return"string"==typeof e?(this.removeTranslationHash(e),!0):"object"==_typeof(e)?(Object.keys(e).forEach((function(e){t.removeTranslation(e)})),!0):(this.logError("Hash translation removeTranslation expected either a string or an object but the passed-in translation was type ".concat(_typeof(e))),!1)}},{key:"clearTranslations",value:function(){this.translationTable={}}},{key:"translate",value:function(e){return e in this.translationTable?this.translationTable[e]:e}}]),e}();t.exports=i},{"./Manyfest-LogToConsole.js":71}],71:[function(e,t,r){t.exports=function(e,t){var r="string"==typeof e?e:"";console.log("[Manyfest] ".concat(r)),t&&console.log(JSON.stringify(t))}},{}],72:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=e("./Manyfest-ObjectAddress-GetValue.js"),o={DataFormat:e("./Manyfest-ObjectAddress-Parser.js")},a=function(){function e(){_classCallCheck2(this,e),this.getObjectValueClass=new i(n,n)}return _createClass2(e,[{key:"checkAddressExists",value:function(e,t,r){if("object"!=_typeof(e))return!1;if("string"!=typeof t)return!1;var i=void 0===r?e:r,a=o.DataFormat.stringGetFirstSegment(t);if(a.length==t.length){var s=t.indexOf("["),u=t.indexOf("]"),c=t.indexOf("(");if(c>0&&o.DataFormat.stringCountEnclosures(t)>0){var l=t.substring(0,c).trim();return l in e&&"function"==typeof e[l]}if(s>0&&u>s&&u-s>1){var f=t.substring(0,s).trim();if("object"!==_typeof(e[f]))return!1;var h=t.substring(s+1,u).trim(),p=parseInt(h,10);return Array.isArray(e[f])!=isNaN(p)&&(isNaN(p)?(h=this.cleanWrapCharacters('"',h),h=this.cleanWrapCharacters("`",h),(h=this.cleanWrapCharacters("'",h))in e[f]):p in e[f])}return t in e}var d=a,g=t.substring(a.length+1),y=d.indexOf("["),v=d.indexOf("]"),m=d.indexOf("(");if(m>0&&o.DataFormat.stringCountEnclosures(d)>0){var b=d.substring(0,m).trim();if("function"==!_typeof(e[b]))return!1;var S=o.DataFormat.stringGetSegments(o.DataFormat.stringGetEnclosureValueByIndex(d.substring(b.length),0),",");if(0==S.length||""==S[0]){if(!(b in e))return n.log("Function ".concat(b," does not exist (address [").concat(t,"])")),!1;try{return this.checkAddressExists(e[b].apply(e),g,i)}catch(e){return n.log("Error calling function ".concat(b," (address [").concat(t,"]): ").concat(e.message)),!1}}else{for(var P=[],T=void 0===r?e:r,_=0;_<S.length;_++)P.push(this.getObjectValueClass.getValueAtAddress(T,S[_]));if(!(b in e))return n.log("Function ".concat(b," does not exist (address [").concat(t,"])")),!1;try{return this.checkAddressExists(e[b].apply(e,P),g,T)}catch(e){return n.log("Error calling function ".concat(b," (address [").concat(t,"]): ").concat(e.message)),!1}}}else if(y>0&&v>y&&v-y>1){var k=d.substring(0,y).trim(),w=d.substring(y+1,v).trim(),x=parseInt(w,10);return Array.isArray(e[k])!=isNaN(x)&&(isNaN(x)?(w=this.cleanWrapCharacters('"',w),w=this.cleanWrapCharacters("`",w),w=this.cleanWrapCharacters("'",w),this.checkAddressExists(e[k][w],g,i)):this.checkAddressExists(e[k][x],g,i))}return(!(d in e)||"object"===_typeof(e[d]))&&(d in e||(e[d]={}),this.checkAddressExists(e[d],g,i))}}]),e}();t.exports=a},{"./Manyfest-LogToConsole.js":71,"./Manyfest-ObjectAddress-GetValue.js":74,"./Manyfest-ObjectAddress-Parser.js":75}],73:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=e("./Manyfest-CleanWrapCharacters.js"),o=e("../source/Manyfest-ParseConditionals.js"),a=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n,this.cleanWrapCharacters=i}return _createClass2(e,[{key:"checkRecordFilters",value:function(e,t){return o(this,e,t)}},{key:"deleteValueAtAddress",value:function(e,t,r){if("object"==_typeof(e)&&"string"==typeof t){var n="";"string"==typeof r&&(n=r);var i=t.indexOf(".");if(-1==i){var o=t.indexOf("["),a=t.indexOf("]"),s=t.indexOf("{}");if(o>0&&a>o&&a-o>1){var u=t.substring(0,o).trim();if("object"!==_typeof(e[u]))return!1;var c=t.substring(o+1,a).trim(),l=parseInt(c,10);return Array.isArray(e[u])!=isNaN(l)&&(isNaN(l)?(c=this.cleanWrapCharacters('"',c),c=this.cleanWrapCharacters("`",c),c=this.cleanWrapCharacters("'",c),delete e[u][c],!0):(delete e[u][l],!0))}if(o>0&&a>o&&a-o==1){var f=t.substring(0,o).trim();if(!Array.isArray(e[f]))return!1;for(var h=e[f],p=h.length-1;p>=0;p--){this.checkRecordFilters(t,h[p])&&h.splice(p,1)}return!0}if(s>0){var d=t.substring(0,s).trim();return"object"==_typeof(e[d])&&(delete e[d],!0)}return delete e[t],!0}var g=t.substring(0,i),y=t.substring(i+1),v=g.indexOf("["),m=g.indexOf("]");if(v>0&&m>v&&m-v>1){var b=g.substring(0,v).trim(),S=g.substring(v+1,m).trim(),P=parseInt(S,10);return Array.isArray(e[b])!=isNaN(P)&&("object"==_typeof(e[b])&&(isNaN(P)?(S=this.cleanWrapCharacters('"',S),S=this.cleanWrapCharacters("`",S),S=this.cleanWrapCharacters("'",S),n="".concat(n).concat(n.length>0?".":"").concat(g),this.deleteValueAtAddress(e[b][S],y,n)):(n="".concat(n).concat(n.length>0?".":"").concat(g),this.deleteValueAtAddress(e[b][P],y,n))))}if(v>0&&m>v&&m-v==1){var T=t.substring(0,v).trim();if(!Array.isArray(e[T]))return!1;var _=e[T];n="".concat(n).concat(n.length>0?".":"").concat(T);for(var k={},w=0;w<_.length;w++){var x="".concat(n,"[").concat(w,"]"),E=this.deleteValueAtAddress(e[T][w],y,x);k["".concat(x,".").concat(y)]=E}return k}var O=t.indexOf("{}");if(O>0){var A=t.substring(0,O).trim();if("object"!=_typeof(e[A]))return!1;var C=e[A],j=Object.keys(C);n="".concat(n).concat(n.length>0?".":"").concat(A);for(var N={},R=0;R<j.length;R++){var L="".concat(n,".").concat(j[R]),M=this.deleteValueAtAddress(e[A][j[R]],y,L);this.checkRecordFilters(t,M)&&(N["".concat(L,".").concat(y)]=M)}return N}return g in e&&"object"!==_typeof(e[g])?void 0:g in e?(n="".concat(n).concat(n.length>0?".":"").concat(g),this.deleteValueAtAddress(e[g],y,n)):(n="".concat(n).concat(n.length>0?".":"").concat(g),e[g]={},this.deleteValueAtAddress(e[g],y,n))}}}]),e}();t.exports=a},{"../source/Manyfest-ParseConditionals.js":78,"./Manyfest-CleanWrapCharacters.js":69,"./Manyfest-LogToConsole.js":71}],74:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=e("./Manyfest-CleanWrapCharacters.js"),o=e("../source/Manyfest-ParseConditionals.js"),a={DataFormat:e("./Manyfest-ObjectAddress-Parser.js")},s=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n,this.cleanWrapCharacters=i}return _createClass2(e,[{key:"checkRecordFilters",value:function(e,t){return o(this,e,t)}},{key:"getValueAtAddress",value:function(e,t,r,n){if("object"==_typeof(e)&&"string"==typeof t){var i="";"string"==typeof r&&(i=r);var o=void 0===n?e:n,s=a.DataFormat.stringGetFirstSegment(t);if(""==s){for(var u=a.DataFormat.stringGetSegments(i),c=0,l=0;l<t.length&&"."==t.charAt(l);l++)c++;var f=u.length-c;if(f<0)return;var h=t.slice(c);return f>0&&(h="".concat(u.slice(0,f).join("."),".").concat(h)),this.logInfo("Back-navigation detected. Recursing back to address [".concat(h,"]")),this.getValueAtAddress(o,h)}if(s.length!=t.length){var p=s,d=t.substring(s.length+1),g=p.indexOf("["),y=p.indexOf("]"),v=p.indexOf("(");if(v>0&&a.DataFormat.stringCountEnclosures(p)>0){var m=p.substring(0,v).trim();if(i="".concat(i).concat(i.length>0?".":"").concat(p),"function"==!_typeof(e[m]))return!1;var b=a.DataFormat.stringGetSegments(a.DataFormat.stringGetEnclosureValueByIndex(p.substring(m.length),0),",");if(0==b.length||""==b[0]){if(!(m in e))return console.log("Function ".concat(m," does not exist (address [").concat(t,"])")),!1;try{return this.getValueAtAddress(e[m].apply(e),d,i,o)}catch(e){return console.log("Error in getValueAtAddress calling function ".concat(m," (address [").concat(t,"]): ").concat(e.message)),!1}}else{for(var S=[],P=void 0===n?e:n,T=0;T<b.length;T++)!(b[T].length>=2)||'"'!=b[T].charAt(0)&&"'"!=b[T].charAt(0)&&"`"!=b[T].charAt(0)||'"'!=b[T].charAt(b[T].length-1)&&"'"!=b[T].charAt(b[T].length-1)&&"`"!=b[T].charAt(b[T].length-1)?S.push(this.getValueAtAddress(P,b[T])):S.push(b[T].substring(1,b[T].length-1));if(!(m in e))return console.log("Function ".concat(m," does not exist (address [").concat(t,"])")),!1;try{return this.getValueAtAddress(e[m].apply(e,S),d,i,P)}catch(e){return console.log("Error in getValueAtAddress calling function ".concat(m," (address [").concat(t,"]): ").concat(e.message)),!1}}}else{if(g>0&&y>g&&y-g>1){var _=p.substring(0,g).trim(),k=p.substring(g+1,y).trim(),w=parseInt(k,10);if(Array.isArray(e[_])==isNaN(w))return;if("object"!=_typeof(e[_]))return;return isNaN(w)?(k=this.cleanWrapCharacters('"',k),k=this.cleanWrapCharacters("`",k),k=this.cleanWrapCharacters("'",k),i="".concat(i).concat(i.length>0?".":"").concat(p),this.getValueAtAddress(e[_][k],d,i,o)):(i="".concat(i).concat(i.length>0?".":"").concat(p),this.getValueAtAddress(e[_][w],d,i,o))}if(g>0&&y>g&&y-g==1){var x=t.substring(0,g).trim();if(!Array.isArray(e[x]))return!1;var E=e[x];i="".concat(i).concat(i.length>0?".":"").concat(x);for(var O={},A=0;A<E.length;A++){var C="".concat(i,"[").concat(A,"]"),j=this.getValueAtAddress(e[x][A],d,C,o);O["".concat(C,".").concat(d)]=j}return O}}var N=t.indexOf("{}");if(N>0){var R=t.substring(0,N).trim();if("object"!=_typeof(e[R]))return!1;var L=e[R],M=Object.keys(L);i="".concat(i).concat(i.length>0?".":"").concat(R);for(var D={},I=0;I<M.length;I++){var F="".concat(i,".").concat(M[I]),V=this.getValueAtAddress(e[R][M[I]],d,F,o);this.checkRecordFilters(t,V)&&(D["".concat(F,".").concat(d)]=V)}return D}return p in e&&"object"!==_typeof(e[p])?void 0:p in e?(i="".concat(i).concat(i.length>0?".":"").concat(p),this.getValueAtAddress(e[p],d,i,o)):(i="".concat(i).concat(i.length>0?".":"").concat(p),e[p]={},this.getValueAtAddress(e[p],d,i,o))}var U=t.indexOf("["),B=t.indexOf("]"),H=t.indexOf("{}"),W=t.indexOf("(");if(!(W>0&&a.DataFormat.stringCountEnclosures(t)>0)){if(U>0&&B>U&&B-U>1){var $=t.substring(0,U).trim();if("object"!==_typeof(e[$]))return;var z=t.substring(U+1,B).trim(),q=parseInt(z,10);if(Array.isArray(e[$])==isNaN(q))return;return isNaN(q)?(z=this.cleanWrapCharacters('"',z),z=this.cleanWrapCharacters("`",z),z=this.cleanWrapCharacters("'",z),e[$][z]):e[$][q]}if(U>0&&B>U&&B-U==1){var G=t.substring(0,U).trim();if(!Array.isArray(e[G]))return!1;for(var J=e[G],Y=[],Q=0;Q<J.length;Q++){this.checkRecordFilters(t,J[Q])&&Y.push(J[Q])}return Y}if(H>0){var K=t.substring(0,H).trim();return"object"==_typeof(e[K])&&e[K]}return null!=_typeof(e[t])?e[t]:void 0}var Z=t.substring(0,W).trim();if("function"==!_typeof(e[Z]))return!1;var X=a.DataFormat.stringGetSegments(a.DataFormat.stringGetEnclosureValueByIndex(t.substring(Z.length),0),",");if(0==X.length||""==X[0]){if(!(Z in e))return console.log("Function ".concat(Z," does not exist (address [").concat(t,"])")),!1;try{return e[Z].apply(e)}catch(e){return console.log("Error in getValueAtAddress calling function ".concat(Z," (address [").concat(t,"]): ").concat(e.message)),!1}}else{for(var ee=[],te=void 0===n?e:n,re=0;re<X.length;re++)!(X[re].length>=2)||'"'!=X[re].charAt(0)&&"'"!=X[re].charAt(0)&&"`"!=X[re].charAt(0)||'"'!=X[re].charAt(X[re].length-1)&&"'"!=X[re].charAt(X[re].length-1)&&"`"!=X[re].charAt(X[re].length-1)?ee.push(this.getValueAtAddress(te,X[re])):ee.push(X[re].substring(1,X[re].length-1));if(!(Z in e))return console.log("Function ".concat(Z," does not exist (address [").concat(t,"])")),!1;try{return e[Z].apply(e,ee)}catch(e){return console.log("Error in getValueAtAddress calling function ".concat(Z," (address [").concat(t,"]): ").concat(e.message)),!1}}}}}]),e}();t.exports=s},{"../source/Manyfest-ParseConditionals.js":78,"./Manyfest-CleanWrapCharacters.js":69,"./Manyfest-LogToConsole.js":71,"./Manyfest-ObjectAddress-Parser.js":75}],75:[function(e,t,r){t.exports={stringCountSegments:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;for(var u=1,c=[],l=0;l<i.length;l++)i[l]==o&&0==c.length?u++:i[l]in a?c.push(a[i[l]]):i[l]in s&&s[i[l]]==c[c.length-1]&&c.pop();return u},stringGetFirstSegment:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;for(var u=[],c=0;c<i.length;c++){if(i[c]==o&&0==u.length)return i.substring(0,c);i[c]in a?u.push(a[i[c]]):i[c]in s&&s[i[c]]==u[u.length-1]&&u.pop()}return i},stringGetSegments:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2},u=0,c=[];if(e.length<1)return c;for(var l=[],f=0;f<i.length;f++)i[f]==o&&0==l.length?(c.push(i.substring(u,f)),u=f+1):i[f]in a?l.push(a[i[f]]):i[f]in s&&s[i[f]]==l[l.length-1]&&l.pop();return u<i.length&&c.push(i.substring(u)),c},stringCountEnclosures:function(e,t,r){for(var n="string"==typeof e?e:"",i="string"==typeof t?t:"(",o="string"==typeof r?r:")",a=0,s=0,u=0;u<n.length;u++)n[u]==i?(0==s&&a++,s++):n[u]==o&&s--;return a},stringGetEnclosureValueByIndex:function(e,t,r,n){for(var i="string"==typeof e?e:"",o="number"==typeof t?t:0,a="string"==typeof r?r:"(",s="string"==typeof n?n:")",u=0,c=0,l=!1,f=0,h=0,p=0;p<i.length;p++)i[p]==a?1==++c&&o==++u-1&&(l=!0,f=p):i[p]==s&&0==--c&&l&&h<=f&&(h=p,l=!1);return u<=o?"":h>0&&h>f?i.substring(f+1,h):i.substring(f+1)}}},{}],76:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=e("./Manyfest-CleanWrapCharacters.js"),o=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n,this.cleanWrapCharacters=i}return _createClass2(e,[{key:"setValueAtAddress",value:function(e,t,r){if("object"!=_typeof(e))return!1;if("string"!=typeof t)return!1;var n=t.indexOf(".");if(-1==n){var i=t.indexOf("["),o=t.indexOf("]");if(i>0&&o>i&&o-i>1){var a=t.substring(0,i).trim();if("object"!==_typeof(e[a]))return!1;var s=t.substring(i+1,o).trim(),u=parseInt(s,10);return Array.isArray(e[a])!=isNaN(u)&&(isNaN(u)?(s=this.cleanWrapCharacters('"',s),s=this.cleanWrapCharacters("`",s),s=this.cleanWrapCharacters("'",s),e[a][s]=r,!0):(e[a][u]=r,!0))}return e[t]=r,!0}var c=t.substring(0,n),l=t.substring(n+1),f=c.indexOf("["),h=c.indexOf("]");if(f>0&&h>f&&h-f>1){var p=c.substring(0,f).trim(),d=c.substring(f+1,h).trim(),g=parseInt(d,10);return Array.isArray(e[p])!=isNaN(g)&&(isNaN(g)?(d=this.cleanWrapCharacters('"',d),d=this.cleanWrapCharacters("`",d),d=this.cleanWrapCharacters("'",d),this.setValueAtAddress(e[p][d],l,r)):this.setValueAtAddress(e[p][g],l,r))}return c in e&&"object"!==_typeof(e[c])?("__ERROR"in e||(e.__ERROR={}),e.__ERROR[t]=r,!1):(c in e||(e[c]={}),this.setValueAtAddress(e[c],l,r))}}]),e}();t.exports=o},{"./Manyfest-CleanWrapCharacters.js":69,"./Manyfest-LogToConsole.js":71}],77:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n}return _createClass2(e,[{key:"generateAddressses",value:function(e,t,r){var n="string"==typeof t?t:"",i="object"==_typeof(r)?r:{},o=_typeof(e),a={Address:n,Hash:n,Name:n,InSchema:!1};switch("object"==o&&null==e&&(o="null"),o){case"string":a.DataType="String",a.Default=e,i[n]=a;break;case"number":case"bigint":a.DataType="Number",a.Default=e,i[n]=a;break;case"undefined":case"null":a.DataType="Any",a.Default=e,i[n]=a;break;case"object":if(Array.isArray(e)){a.DataType="Array",""!=n&&(i[n]=a);for(var s=0;s<e.length;s++)this.generateAddressses(e[s],"".concat(n,"[").concat(s,"]"),i)}else{a.DataType="Object",""!=n&&(i[n]=a,n+=".");for(var u=Object.keys(e),c=0;c<u.length;c++)this.generateAddressses(e[u[c]],"".concat(n).concat(u[c]),i)}}return i}}]),e}();t.exports=i},{"./Manyfest-LogToConsole.js":71}],78:[function(e,t,r){var n="<<~?",i="?~>>",o=function(e,t,r,n,i){switch(n){case"TRUE":return!0===e.getValueAtAddress(t,r);case"FALSE":return!1===e.getValueAtAddress(t,r);case"LNGT":case"LENGTH_GREATER_THAN":switch(_typeof(e.getValueAtAddress(t,r))){case"string":case"object":return e.getValueAtAddress(t,r).length>i;default:return!1}break;case"LNLT":case"LENGTH_LESS_THAN":switch(_typeof(e.getValueAtAddress(t,r))){case"string":case"object":return e.getValueAtAddress(t,r).length<i;default:return!1}break;case"!=":return e.getValueAtAddress(t,r)!=i;case"<":return e.getValueAtAddress(t,r)<i;case">":return e.getValueAtAddress(t,r)>i;case"<=":return e.getValueAtAddress(t,r)<=i;case">=":return e.getValueAtAddress(t,r)>=i;case"===":return e.getValueAtAddress(t,r)===i;default:return e.getValueAtAddress(t,r)==i}};t.exports=function(e,t,r){for(var a=!0,s=t.indexOf(n);-1!=s;){var u=t.indexOf(i,s+4);if(-1!=u){var c=t.substring(s+4,u).split(","),l=c[0],f="EXISTS";c.length>1&&(f=c[1]);var h=!1;c.length>2&&(h=c[2]),a=a&&o(e,r,l,f,h),s=t.indexOf(n,u+4)}else s=-1}return a}},{}],79:[function(e,t,r){var n=e("./Manyfest-LogToConsole.js"),i=function(){function e(t,r){_classCallCheck2(this,e),this.logInfo="function"==typeof t?t:n,this.logError="function"==typeof r?r:n}return _createClass2(e,[{key:"resolveAddressMappings",value:function(e,t){if("object"!=_typeof(e))return this.logError("Attempted to resolve address mapping but the descriptor was not an object."),!1;if("object"!=_typeof(t))return!0;var r=Object.keys(e),n={};return r.forEach((function(t){"Hash"in e[t]&&(n[e[t].Hash]=t)})),Object.keys(t).forEach((function(r){var i=t[r],o=!1,a=!1;r in e?o=r:r in n&&(o=n[r]),o?(a=e[o],delete e[o]):a={Hash:r},e[i]=a})),!0}},{key:"safeResolveAddressMappings",value:function(e,t){var r=JSON.parse(JSON.stringify(e));return this.resolveAddressMappings(r,t),r}},{key:"mergeAddressMappings",value:function(e,t){if("object"!=_typeof(t)||"object"!=_typeof(e))return this.logError("Attempted to merge two schema descriptors but both were not objects."),!1;var r=JSON.parse(JSON.stringify(t)),n=JSON.parse(JSON.stringify(e));return Object.keys(r).forEach((function(e){e in n||(n[e]=r[e])})),n}}]),e}();t.exports=i},{"./Manyfest-LogToConsole.js":71}],80:[function(e,t,r){var n=e("fable-serviceproviderbase"),i=e("./Manyfest-LogToConsole.js"),o=e("./Manyfest-HashTranslation.js"),a=e("./Manyfest-ObjectAddress-CheckAddressExists.js"),s=e("./Manyfest-ObjectAddress-GetValue.js"),u=e("./Manyfest-ObjectAddress-SetValue.js"),c=e("./Manyfest-ObjectAddress-DeleteValue.js"),l=e("./Manyfest-ObjectAddressGeneration.js"),f=e("./Manyfest-SchemaManipulation.js"),h={Scope:"DEFAULT",Descriptors:{}},p=function(e){function t(e,r,n){var h;return _classCallCheck2(this,t),(h=_callSuper(this,t,void 0===e?[{}]:[e,r,n])).serviceType="Manifest",h.logInfo=i,h.logError=i,h.objectAddressCheckAddressExists=new a(h.logInfo,h.logError),h.objectAddressGetValue=new s(h.logInfo,h.logError),h.objectAddressSetValue=new u(h.logInfo,h.logError),h.objectAddressDeleteValue=new c(h.logInfo,h.logError),"defaultValues"in h.options||(h.options.defaultValues={String:"",Number:0,Float:0,Integer:0,PreciseNumber:"0.0",Boolean:!1,Binary:0,DateTime:0,Array:[],Object:{},Null:null}),"strict"in h.options||(h.options.strict=!1),h.scope=void 0,h.elementAddresses=void 0,h.elementHashes=void 0,h.elementDescriptors=void 0,h.reset(),"object"===_typeof(h.options)&&h.loadManifest(h.options),h.schemaManipulations=new f(h.logInfo,h.logError),h.objectAddressGeneration=new l(h.logInfo,h.logError),h.hashTranslations=new o(h.logInfo,h.logError),h.numberRegex=/^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/,_possibleConstructorReturn(h)}return _inherits(t,e),_createClass2(t,[{key:"reset",value:function(){this.scope="DEFAULT",this.elementAddresses=[],this.elementHashes={},this.elementDescriptors={}}},{key:"clone",value:function(){var e=JSON.parse(JSON.stringify(this.options)),r=new t(this.getManifest(),this.logInfo,this.logError,e);return r.hashTranslations.addTranslation(this.hashTranslations.translationTable),r}},{key:"deserialize",value:function(e){return this.loadManifest(JSON.parse(e))}},{key:"loadManifest",value:function(e){"object"!==_typeof(e)&&this.logError("(".concat(this.scope,") Error loading manifest; expecting an object but parameter was type ").concat(_typeof(e),"."));for(var t="object"==_typeof(e)?e:{},r=Object.keys(h),n=0;n<r.length;n++)r[n]in t||(t[r[n]]=JSON.parse(JSON.stringify(h[r[n]])));if("Scope"in t?"string"==typeof t.Scope?this.scope=t.Scope:this.logError("(".concat(this.scope,") Error loading scope from manifest; expecting a string but property was type ").concat(_typeof(t.Scope),"."),t):this.logError("(".concat(this.scope,') Error loading scope from manifest object. Property "Scope" does not exist in the root of the object.'),t),"Descriptors"in t)if("object"===_typeof(t.Descriptors))for(var i=Object.keys(t.Descriptors),o=0;o<i.length;o++)this.addDescriptor(i[o],t.Descriptors[i[o]]);else this.logError("(".concat(this.scope,") Error loading description object from manifest object. Expecting an object in 'Manifest.Descriptors' but the property was type ").concat(_typeof(t.Descriptors),"."),t);else this.logError("(".concat(this.scope,') Error loading object description from manifest object. Property "Descriptors" does not exist in the root of the Manifest object.'),t);if("HashTranslations"in t&&"object"===_typeof(t.HashTranslations))for(var a=0;a<t.HashTranslations.length;a++);}},{key:"serialize",value:function(){return JSON.stringify(this.getManifest())}},{key:"getManifest",value:function(){return{Scope:this.scope,Descriptors:JSON.parse(JSON.stringify(this.elementDescriptors)),HashTranslations:JSON.parse(JSON.stringify(this.hashTranslations.translationTable))}}},{key:"addDescriptor",value:function(e,t){return"object"===_typeof(t)?("Address"in t||(t.Address=e),e in this.elementDescriptors||this.elementAddresses.push(e),this.elementDescriptors[e]=t,this.elementHashes[e]=e,"Hash"in t?this.elementHashes[t.Hash]=e:t.Hash=e,!0):(this.logError("(".concat(this.scope,") Error loading object descriptor for address '").concat(e,"' from manifest object. Expecting an object but property was type ").concat(_typeof(t),".")),!1)}},{key:"getDescriptorByHash",value:function(e){return this.getDescriptor(this.resolveHashAddress(e))}},{key:"getDescriptor",value:function(e){return this.elementDescriptors[e]}},{key:"eachDescriptor",value:function(e){for(var t=Object.keys(this.elementDescriptors),r=0;r<t.length;r++)e(this.elementDescriptors[t[r]])}},{key:"checkAddressExistsByHash",value:function(e,t){return this.checkAddressExists(e,this.resolveHashAddress(t))}},{key:"checkAddressExists",value:function(e,t){return this.objectAddressCheckAddressExists.checkAddressExists(e,t)}},{key:"resolveHashAddress",value:function(e){var t=e in this.elementHashes,r=e in this.hashTranslations.translationTable;return t&&!r?this.elementHashes[e]:r&&this.hashTranslations.translate(e)in this.elementHashes?this.elementHashes[this.hashTranslations.translate(e)]:r?this.hashTranslations.translate(e):e}},{key:"getValueByHash",value:function(e,t){var r=this.getValueAtAddress(e,this.resolveHashAddress(t));return void 0===r&&(r=this.getDefaultValue(this.getDescriptorByHash(t))),r}},{key:"getValueAtAddress",value:function(e,t){if(""!=t.trim()){var r=this.objectAddressGetValue.getValueAtAddress(e,t);return void 0===r&&(r=this.getDefaultValue(this.getDescriptor(t))),r}this.logError("(".concat(this.scope,") Error getting value at address; address is an empty string."),e)}},{key:"setValueByHash",value:function(e,t,r){return this.setValueAtAddress(e,this.resolveHashAddress(t),r)}},{key:"setValueAtAddress",value:function(e,t,r){return this.objectAddressSetValue.setValueAtAddress(e,t,r)}},{key:"deleteValueByHash",value:function(e,t,r){return this.deleteValueAtAddress(e,this.resolveHashAddress(t),r)}},{key:"deleteValueAtAddress",value:function(e,t,r){return this.objectAddressDeleteValue.deleteValueAtAddress(e,t,r)}},{key:"validate",value:function(e){var t={Error:null,Errors:[],MissingElements:[]};"object"!==_typeof(e)&&(t.Error=!0,t.Errors.push("Expected passed in object to be type object but was passed in ".concat(_typeof(e))));for(var r=function(e,r){t.Error=!0,t.Errors.push('Element at address "'.concat(e,'" ').concat(r,"."))},n=0;n<this.elementAddresses.length;n++){var i=this.getDescriptor(this.elementAddresses[n]),o=this.checkAddressExists(e,i.Address),a=this.getValueAtAddress(e,i.Address);if(void 0!==a&&o||(t.MissingElements.push(i.Address),(i.Required||this.options.strict)&&r(i.Address,"is flagged REQUIRED but is not set in the object")),i.DataType){var s=_typeof(a);switch(i.DataType.toString().trim().toLowerCase()){case"string":"string"!=s&&r(i.Address,"has a DataType ".concat(i.DataType," but is of the type ").concat(s));break;case"precisenumber":"string"!=s?r(i.Address,"has a DataType ".concat(i.DataType," but is of the type ").concat(s)):this.numberRegex.test(a)||r(i.Address,"has a DataType ".concat(i.DataType," but is not a valid number"));break;case"number":"number"!=s&&r(i.Address,"has a DataType ".concat(i.DataType," but is of the type ").concat(s));break;case"integer":if("number"!=s)r(i.Address,"has a DataType ".concat(i.DataType," but is of the type ").concat(s));else a.toString().indexOf(".")>-1&&r(i.Address,"has a DataType ".concat(i.DataType," but has a decimal point in the number."));break;case"float":"number"!=s&&r(i.Address,"has a DataType ".concat(i.DataType," but is of the type ").concat(s));break;case"datetime":"Invalid Date"==new Date(a).toString()&&r(i.Address,"has a DataType ".concat(i.DataType," but is not parsable as a Date by Javascript"));default:"string"!=s&&r(i.Address,"has a DataType ".concat(i.DataType," (which auto-converted to String because it was unrecognized) but is of the type ").concat(s))}}}return t}},{key:"getDefaultValue",value:function(e){if("object"==_typeof(e)){if("Default"in e)return e.Default;var t="DataType"in e?e.DataType:"String";return t in this.options.defaultValues?this.options.defaultValues[t]:null}}},{key:"populateDefaults",value:function(e,t){return this.populateObject(e,t,(function(e){return"Default"in e}))}},{key:"populateObject",value:function(e,t,r){var n=this,i="object"===_typeof(e)?e:{},o=void 0!==t&&t,a="function"==typeof r?r:function(e){return!0};return this.elementAddresses.forEach((function(e){var t=n.getDescriptor(e);a(t)&&(!o&&n.checkAddressExists(i,e)||n.setValueAtAddress(i,e,n.getDefaultValue(t)))})),i}}]),t}(n);t.exports=p},{"./Manyfest-HashTranslation.js":70,"./Manyfest-LogToConsole.js":71,"./Manyfest-ObjectAddress-CheckAddressExists.js":72,"./Manyfest-ObjectAddress-DeleteValue.js":73,"./Manyfest-ObjectAddress-GetValue.js":74,"./Manyfest-ObjectAddress-SetValue.js":76,"./Manyfest-ObjectAddressGeneration.js":77,"./Manyfest-SchemaManipulation.js":79,"fable-serviceproviderbase":51}],81:[function(e,t,r){(function(r){(function(){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,g=Object.prototype.toString,y=Function.prototype.toString,v=String.prototype.match,m=String.prototype.slice,b=String.prototype.replace,S=String.prototype.toUpperCase,P=String.prototype.toLowerCase,T=RegExp.prototype.test,_=Array.prototype.concat,k=Array.prototype.join,w=Array.prototype.slice,x=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"===_typeof(Symbol.iterator),j="function"==typeof Symbol&&Symbol.toStringTag&&(_typeof(Symbol.toStringTag)===C||"symbol")?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||T.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-x(-e):x(e);if(n!==e){var i=String(n),o=m.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var M=e("./util.inspect"),D=M.custom,I=H(D)?D:null;function F(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function V(e){return b.call(String(e),/"/g,"&quot;")}function U(e){return!("[object Array]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}function B(e){return!("[object RegExp]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}function H(e){if(C)return e&&"object"===_typeof(e)&&e instanceof Symbol;if("symbol"===_typeof(e))return!0;if(!e||"object"!==_typeof(e)||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}t.exports=function e(t,n,i,s){var u=n||{};if($(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!$(u,"customInspect")||u.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var S=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var T=String(t);return S?L(t,T):T}if("bigint"==typeof t){var x=String(t)+"n";return S?L(t,x):x}var O=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=O&&O>0&&"object"===_typeof(t))return U(t)?"[Array]":"[Object]";var D=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=k.call(Array(e.indent+1)," ")}return{base:r,prev:k.call(Array(t+1),r)}}(u,i);if(void 0===s)s=[];else if(q(s,t)>=0)return"[Circular]";function W(t,r,n){if(r&&(s=w.call(s)).push(r),n){var o={depth:u.depth};return $(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"==typeof t&&!B(t)){var J=function(e){if(e.name)return e.name;var t=v.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=X(t,W);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(ee.length>0?" { "+k.call(ee,", ")+" }":"")}if(H(t)){var te=C?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!==_typeof(t)||C?te:Y(te)}if(function(e){if(!e||"object"!==_typeof(e))return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var re="<"+P.call(String(t.nodeName)),ne=t.attributes||[],ie=0;ie<ne.length;ie++)re+=" "+ne[ie].name+"="+F(V(ne[ie].value),"double",u);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+P.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var oe=X(t,W);return D&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(oe)?"["+Z(oe,D)+"]":"[ "+k.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}(t)){var ae=X(t,W);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(ae,", ")+" }":"{ ["+String(t)+"] "+k.call(_.call("[cause]: "+W(t.cause),ae),", ")+" }"}if("object"===_typeof(t)&&g){if(I&&"function"==typeof t[I]&&M)return M(t,{depth:O-i});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==_typeof(e))return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,r){se.push(W(r,t,!0)+" => "+W(e,t))})),K("Map",o.call(t),se,D)}if(function(e){if(!c||!e||"object"!==_typeof(e))return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return l&&l.call(t,(function(e){ue.push(W(e,t))})),K("Set",c.call(t),ue,D)}if(function(e){if(!f||!e||"object"!==_typeof(e))return!1;try{f.call(e,f);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!h||!e||"object"!==_typeof(e))return!1;try{h.call(e,h);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!p||!e||"object"!==_typeof(e))return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}(t))return Y(W(Number(t)));if(function(e){if(!e||"object"!==_typeof(e)||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return Y(W(E.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}(t))return Y(d.call(t));if(function(e){return!("[object String]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}(t))return Y(W(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==z(e)||j&&"object"===_typeof(e)&&j in e)}(t)&&!B(t)){var ce=X(t,W),le=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",he=!le&&j&&Object(t)===t&&j in t?m.call(z(t),8,-1):fe?"Object":"",pe=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||fe?"["+k.call(_.call([],he||[],fe||[]),": ")+"] ":"");return 0===ce.length?pe+"{}":D?pe+"{"+Z(ce,D)+"}":pe+"{ "+k.call(ce,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function $(e,t){return W.call(e,t)}function z(e){return g.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(m.call(e,0,t.maxStringLength),t)+n}return F(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function Y(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function K(e,t,r,n){return e+" ("+t+") {"+(n?Z(r,n):k.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+k.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=U(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=$(e,i)?t(e[i],e):""}var o,a="function"==typeof O?O(e):[];if(C){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)$(e,u)&&(r&&String(Number(u))===u&&u<e.length||C&&o["$"+u]instanceof Symbol||(T.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof O)for(var c=0;c<a.length;c++)N.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":18}],82:[function(e,t,r){var n=e("wrappy");function i(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function t(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}t.exports=n(i),t.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},{wrappy:125}],83:[function(e,t,r){(function(e){(function(){function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",i=0):i=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var i={resolve:function(){for(var t,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var s;a>=0?s=arguments[a]:(void 0===t&&(t=e.cwd()),s=t),r(s),0!==s.length&&(i=s+"/"+i,o=47===s.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(r(e),0===e.length)return".";var t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!t)).length||t||(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return r(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];r(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var o=e.length,a=o-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var u=t.length-s,c=a<u?a:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===t.charCodeAt(s+f))return t.slice(s+f+1);if(0===f)return t.slice(s+f)}else a>c&&(47===e.charCodeAt(n+f)?l=f:0===f&&(l=0));break}var h=e.charCodeAt(n+f);if(h!==t.charCodeAt(s+f))break;47===h&&(l=f)}var p="";for(f=n+l+1;f<=o;++f)f!==o&&47!==e.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(s+l):(s+=l,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n,i=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!a){i=n+1;break}}else-1===u&&(a=!1,u=n+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){r(e);for(var t=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47!==u)-1===i&&(o=!1,i=s+1),46===u?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){n=s+1;break}}return-1===t||-1===i||0===a||1===a&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==_typeof(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+_typeof(e));return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}("/",e)},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),o=47===i;o?(t.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,c=!0,l=e.length-1,f=0;l>=n;--l)if(47!==(i=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===i?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){s=l+1;break}return-1===a||-1===u||0===f||1===f&&a===u-1&&a===s+1?-1!==u&&(t.base=t.name=0===s&&o?e.slice(1,u):e.slice(s,u)):(0===s&&o?(t.name=e.slice(1,a),t.base=e.slice(1,u)):(t.name=e.slice(s,a),t.base=e.slice(s,u)),t.ext=e.slice(a,u)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i}).call(this)}).call(this,e("_process"))},{_process:87}],84:[function(e,t,r){
2
2
  /**
3
3
  * Precedent Meta-Templating
4
4
  *
@@ -8,5 +8,5 @@
8
8
  *
9
9
  * @description Process text streams, parsing out meta-template expressions.
10
10
  */
11
- var n=e("./WordTree.js"),i=e("./StringParser.js"),o=function(){function e(){_classCallCheck2(this,e),this.WordTree=new n,this.StringParser=new i,this.ParseTree=this.WordTree.ParseTree}return _createClass2(e,[{key:"addPattern",value:function(e,t,r){return this.WordTree.addPattern(e,t,r)}},{key:"parseString",value:function(e,t){return this.StringParser.parseString(e,this.ParseTree,t)}}]),e}();t.exports=o},{"./StringParser.js":85,"./WordTree.js":86}],85:[function(e,t,r){var n=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,[{key:"newParserState",value:function(e){return{ParseTree:e,Asynchronous:!1,Output:"",OutputBuffer:"",Pattern:{},PatternMatch:!1,PatternMatchEnd:!1}}},{key:"appendOutputBuffer",value:function(e,t){t.OutputBuffer+=e}},{key:"flushOutputBuffer",value:function(e){e.Output+=e.OutputBuffer,e.OutputBuffer=""}},{key:"resetOutputBuffer",value:function(e){return this.flushOutputBuffer(e),e.Pattern=!1,e.PatternStartNode=!1,e.StartPatternMatchComplete=!1,e.EndPatternMatchBegan=!1,e.PatternMatch=!1,!0}},{key:"parseCharacter",value:function(e,t,r){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&t.Pattern.hasOwnProperty(e))t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan)if(t.Pattern.PatternEnd.hasOwnProperty(e)){if(t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t),t.Pattern.hasOwnProperty("Parse"))return t.OutputBuffer=t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r),this.resetOutputBuffer(t)}else t.PatternStartNode.PatternEnd.hasOwnProperty(e)?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t));else if(t.Pattern.hasOwnProperty("PatternEnd")){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),t.Pattern.PatternEnd.hasOwnProperty(e)&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],t.Pattern.hasOwnProperty("Parse")))return t.OutputBuffer=t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r),this.resetOutputBuffer(t)}else this.resetOutputBuffer(t);if(!t.PatternMatch){if(t.ParseTree.hasOwnProperty(e))return this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0,!0;this.appendOutputBuffer(e,t)}return!1}},{key:"parseString",value:function(e,t,r){for(var n=this.newParserState(t),i=0;i<e.length;i++)this.parseCharacter(e[i],n,r);return this.flushOutputBuffer(n),n.Output}}]),e}();t.exports=n},{}],86:[function(e,t,r){var n=function(){function e(){_classCallCheck2(this,e),this.ParseTree={}}return _createClass2(e,[{key:"addChild",value:function(e,t){return e.hasOwnProperty(t)||(e[t]={}),e[t]}},{key:"addEndChild",value:function(e,t){return e.hasOwnProperty("PatternEnd")||(e.PatternEnd={}),e.PatternEnd[t]={},e.PatternEnd[t]}},{key:"addPattern",value:function(e,t,r){if(e.length<1)return!1;if("string"==typeof t&&t.length<1)return!1;for(var n=this.ParseTree,i=0;i<e.length;i++)n=this.addChild(n,e[i],i);n.hasOwnProperty("PatternEnd")||(n.PatternEnd={});for(var o="string"==typeof t?t:e,a=0;a<o.length;a++)n=this.addEndChild(n,o[a],a);return n.PatternStartString=e,n.PatternEndString=o,n.Parse="function"==typeof r?r:"string"==typeof r?function(){return r}:function(e){return e},!0}}]),e}();t.exports=n},{}],87:[function(e,t,r){var n,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,l=[],f=!1,h=-1;function p(){f&&c&&(f=!1,c.length?l=c.concat(l):h=-1,l.length&&d())}function d(){if(!f){var e=u(p);f=!0;for(var t=l.length;t;){for(c=l,l=[];++h<t;)c&&c[h].run();h=-1,t=l.length}c=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new g(e,t)),1!==l.length||f||u(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],88:[function(e,t,r){(function(e){(function(){!function(n){var i="object"==_typeof(r)&&r&&!r.nodeType&&r,o="object"==_typeof(t)&&t&&!t.nodeType&&t,a="object"==_typeof(e)&&e;a.global!==a&&a.window!==a&&a.self!==a||(n=a);var s,u,c=2147483647,l=36,f=1,h=26,p=38,d=700,g=72,y=128,v="-",m=/^xn--/,b=/[^\x20-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=l-f,_=Math.floor,k=String.fromCharCode;function w(e){throw new RangeError(P[e])}function x(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function E(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+x((e=e.replace(S,".")).split("."),t).join(".")}function O(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function A(e){return x(e,(function(e){var t="";return e>65535&&(t+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=k(e)})).join("")}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function j(e,t,r){var n=0;for(e=r?_(e/d):e>>1,e+=_(e/t);e>T*h>>1;n+=l)e=_(e/T);return _(n+(T+1)*e/(e+p))}function N(e){var t,r,n,i,o,a,s,u,p,d,m,b=[],S=e.length,P=0,T=y,k=g;for((r=e.lastIndexOf(v))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&w("not-basic"),b.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<S;){for(o=P,a=1,s=l;i>=S&&w("invalid-input"),((u=(m=e.charCodeAt(i++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:l)>=l||u>_((c-P)/a))&&w("overflow"),P+=u*a,!(u<(p=s<=k?f:s>=k+h?h:s-k));s+=l)a>_(c/(d=l-p))&&w("overflow"),a*=d;k=j(P-o,t=b.length+1,0==o),_(P/t)>c-T&&w("overflow"),T+=_(P/t),P%=t,b.splice(P++,0,T)}return A(b)}function R(e){var t,r,n,i,o,a,s,u,p,d,m,b,S,P,T,x=[];for(b=(e=O(e)).length,t=y,r=0,o=g,a=0;a<b;++a)(m=e[a])<128&&x.push(k(m));for(n=i=x.length,i&&x.push(v);n<b;){for(s=c,a=0;a<b;++a)(m=e[a])>=t&&m<s&&(s=m);for(s-t>_((c-r)/(S=n+1))&&w("overflow"),r+=(s-t)*S,t=s,a=0;a<b;++a)if((m=e[a])<t&&++r>c&&w("overflow"),m==t){for(u=r,p=l;!(u<(d=p<=o?f:p>=o+h?h:p-o));p+=l)T=u-d,P=l-d,x.push(k(C(d+T%P,0))),u=_(T/P);x.push(k(C(u,0))),o=j(r,S,n==i),r=0,++n}++r,++t}return x.join("")}if(s={version:"1.4.1",ucs2:{decode:O,encode:A},decode:N,encode:R,toASCII:function(e){return E(e,(function(e){return b.test(e)?"xn--"+R(e):e}))},toUnicode:function(e){return E(e,(function(e){return m.test(e)?N(e.slice(4).toLowerCase()):e}))}},i&&o)if(t.exports==i)o.exports=s;else for(u in s)s.hasOwnProperty(u)&&(i[u]=s[u]);else n.punycode=s}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],89:[function(e,t,r){var n=String.prototype.replace,i=/%20/g,o="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:a}},{}],90:[function(e,t,r){var n=e("./stringify"),i=e("./parse"),o=e("./formats");t.exports={formats:o,parse:i,stringify:n}},{"./formats":89,"./parse":91,"./stringify":92}],91:[function(e,t,r){var n=e("./utils"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,l=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var f=0;r.depth>0&&null!==(s=a.exec(o))&&f<r.depth;){if(f+=1,!r.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+o.slice(s.index)+"]"),function(e,t,r,n){for(var i=n?t:u(t,r),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(l,t,r,n)}};t.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,c={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,h=l.split(t.delimiter,f),p=-1,d=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?d="utf-8":"utf8=%26%2310003%3B"===h[r]&&(d="iso-8859-1"),p=r,r=h.length);for(r=0;r<h.length;++r)if(r!==p){var g,y,v=h[r],m=v.indexOf("]="),b=-1===m?v.indexOf("="):m+1;-1===b?(g=t.decoder(v,a.decoder,d,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(v.slice(0,b),a.decoder,d,"key"),y=n.maybeMap(u(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,d,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===d&&(y=s(y)),v.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(c,g)?c[g]=n.combine(c[g],y):c[g]=y}return c}(e,r):e,f=r.plainObjects?Object.create(null):{},h=Object.keys(l),p=0;p<h.length;++p){var d=h[p],g=c(d,l[d],r,"string"==typeof e);f=n.merge(f,g,r)}return!0===r.allowSparse?f:n.compact(f)}},{"./utils":93}],92:[function(e,t,r){var n=e("side-channel"),i=e("./utils"),o=e("./formats"),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,h=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},g=function e(t,r,o,a,s,c,f,h,g,y,v,m,b,S,P,T){for(var _,k=t,w=T,x=0,E=!1;void 0!==(w=w.get(d))&&!E;){var O=w.get(t);if(x+=1,void 0!==O){if(O===x)throw new RangeError("Cyclic object value");E=!0}void 0===w.get(d)&&(x=0)}if("function"==typeof h?k=h(r,k):k instanceof Date?k=v(k):"comma"===o&&u(k)&&(k=i.maybeMap(k,(function(e){return e instanceof Date?v(e):e}))),null===k){if(s)return f&&!S?f(r,p.encoder,P,"key",m):r;k=""}if("string"==typeof(_=k)||"number"==typeof _||"boolean"==typeof _||"symbol"===_typeof(_)||"bigint"==typeof _||i.isBuffer(k))return f?[b(S?r:f(r,p.encoder,P,"key",m))+"="+b(f(k,p.encoder,P,"value",m))]:[b(r)+"="+b(String(k))];var A,C=[];if(void 0===k)return C;if("comma"===o&&u(k))S&&f&&(k=i.maybeMap(k,f)),A=[{value:k.length>0?k.join(",")||null:void 0}];else if(u(h))A=h;else{var j=Object.keys(k);A=g?j.sort(g):j}for(var N=a&&u(k)&&1===k.length?r+"[]":r,R=0;R<A.length;++R){var L=A[R],M="object"===_typeof(L)&&void 0!==L.value?L.value:k[L];if(!c||null!==M){var D=u(k)?"function"==typeof o?o(N,L):N:N+(y?"."+L:"["+L+"]");T.set(t,x);var I=n();I.set(d,T),l(C,e(M,D,o,a,s,c,"comma"===o&&S&&u(k)?null:f,h,g,y,v,m,b,S,P,I))}}return C};t.exports=function(e,t){var r,i=e,c=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],i=p.filter;return("function"==typeof e.filter||u(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):u(c.filter)&&(r=c.filter);var f,h=[];if("object"!==_typeof(i)||null===i)return"";f=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=s[f];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===d&&t&&t.commaRoundTrip;r||(r=Object.keys(i)),c.sort&&r.sort(c.sort);for(var v=n(),m=0;m<r.length;++m){var b=r[m];c.skipNulls&&null===i[b]||l(h,g(i[b],b,d,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,v))}var S=h.join(c.delimiter),P=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?P+="utf8=%26%2310003%3B&":P+="utf8=%E2%9C%93&"),S.length>0?P+S:""}},{"./formats":89,"./utils":93,"side-channel":99}],93:[function(e,t,r){var n=e("./formats"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};t.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"===_typeof(l)&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,o){if(0===e.length)return e;var s=e;if("symbol"===_typeof(e)?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var l=s.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===n.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(e){return!(!e||"object"!==_typeof(e))&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!==_typeof(r)){if(o(t))t.push(r);else{if(!t||"object"!==_typeof(t))return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==_typeof(t))return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=s(t,n)),o(t)&&o(r)?(r.forEach((function(r,o){if(i.call(t,o)){var a=t[o];a&&"object"===_typeof(a)&&r&&"object"===_typeof(r)?t[o]=e(a,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var a=r[o];return i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,t}),a)}}},{"./formats":89}],94:[function(e,t,r){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var f,h,p,d,g=e[l].replace(s,"%20"),y=g.indexOf(r);y>=0?(f=g.substr(0,y),h=g.substr(y+1)):(f=g,h=""),p=decodeURIComponent(f),d=decodeURIComponent(h),n(a,p)?i(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],95:[function(e,t,r){var n=function(e){switch(_typeof(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===_typeof(e)?o(a(e),(function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(n(e))})).join(t):s+encodeURIComponent(n(e[a]))})).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var a=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],96:[function(e,t,r){r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":94,"./encode":95}],97:[function(e,t,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:20}],98:[function(e,t,r){var n=e("get-intrinsic"),i=e("define-data-property"),o=e("has-property-descriptors")(),a=e("gopd"),s=e("es-errors/type"),u=n("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},{"define-data-property":36,"es-errors/type":42,"get-intrinsic":59,gopd:60,"has-property-descriptors":61}],99:[function(e,t,r){var n=e("get-intrinsic"),i=e("call-bind/callBound"),o=e("object-inspect"),a=e("es-errors/type"),s=n("%WeakMap%",!0),u=n("%Map%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),d=i("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};t.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+o(e))},get:function(n){if(s&&n&&("object"===_typeof(n)||"function"==typeof n)){if(e)return c(e,n)}else if(u){if(t)return h(t,n)}else if(r)return function(e,t){var r=g(e,t);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"===_typeof(n)||"function"==typeof n)){if(e)return f(e,n)}else if(u){if(t)return d(t,n)}else if(r)return function(e,t){return!!g(e,t)}(r,n);return!1},set:function(n,i){s&&n&&("object"===_typeof(n)||"function"==typeof n)?(e||(e=new s),l(e,n,i)):u?(t||(t=new u),p(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n}},{"call-bind/callBound":25,"es-errors/type":42,"get-intrinsic":59,"object-inspect":81}],100:[function(e,t,r){(function(e){(function(){/*! simple-concat. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */t.exports=function(t,r){var n=[];t.on("data",(function(e){n.push(e)})),t.once("end",(function(){r&&r(null,e.concat(n)),r=null})),t.once("error",(function(e){r&&r(e),r=null}))}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20}],101:[function(e,t,r){(function(r){(function(){/*! simple-get. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */t.exports=f;var n=e("simple-concat"),i=e("decompress-response"),o=e("http"),a=e("https"),s=e("once"),u=e("querystring"),c=e("url"),l=function(e){return null!==e&&"object"===_typeof(e)&&"function"==typeof e.pipe};function f(e,t){if(e=Object.assign({maxRedirects:10},"string"==typeof e?{url:e}:e),t=s(t),e.url){var n=c.parse(e.url),h=n.hostname,p=n.port,d=n.protocol,g=n.auth,y=n.path;delete e.url,h||p||d||g?Object.assign(e,{hostname:h,port:p,protocol:d,auth:g,path:y}):e.path=y}var v,m={"accept-encoding":"gzip, deflate"};e.headers&&Object.keys(e.headers).forEach((function(t){return m[t.toLowerCase()]=e.headers[t]})),e.headers=m,e.body?v=e.json&&!l(e.body)?JSON.stringify(e.body):e.body:e.form&&(v="string"==typeof e.form?e.form:u.stringify(e.form),e.headers["content-type"]="application/x-www-form-urlencoded"),v&&(e.method||(e.method="POST"),l(v)||(e.headers["content-length"]=r.byteLength(v)),e.json&&!e.form&&(e.headers["content-type"]="application/json")),delete e.body,delete e.form,e.json&&(e.headers.accept="application/json"),e.method&&(e.method=e.method.toUpperCase());var b=e.hostname,S=("https:"===e.protocol?a:o).request(e,(function(r){if(!1!==e.followRedirects&&r.statusCode>=300&&r.statusCode<400&&r.headers.location){e.url=r.headers.location,delete e.headers.host,r.resume();var n=c.parse(e.url).hostname;return null!==n&&n!==b&&(delete e.headers.cookie,delete e.headers.authorization),"POST"===e.method&&[301,302].includes(r.statusCode)&&(e.method="GET",delete e.headers["content-length"],delete e.headers["content-type"]),0==e.maxRedirects--?t(new Error("too many redirects")):f(e,t)}var o="function"==typeof i&&"HEAD"!==e.method;t(null,o?i(r):r)}));return S.on("timeout",(function(){S.abort(),t(new Error("Request timed out"))})),S.on("error",t),l(v)?v.on("error",t).pipe(S):S.end(v),S}f.concat=function(e,t){return f(e,(function(r,i){if(r)return t(r);n(i,(function(r,n){if(r)return t(r);if(e.json)try{n=JSON.parse(n.toString())}catch(r){return t(r,i,n)}t(null,i,n)}))}))},["get","post","put","patch","head","delete"].forEach((function(e){f[e]=function(t,r){return"string"==typeof t&&(t={url:t}),f(Object.assign({method:e.toUpperCase()},t),r)}}))}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20,"decompress-response":18,http:102,https:66,once:82,querystring:96,"simple-concat":100,url:123}],102:[function(e,t,r){(function(t){(function(){var n=e("./lib/request"),i=e("./lib/response"),o=e("xtend"),a=e("builtin-status-codes"),s=e("url"),u=r;u.request=function(e,r){e="string"==typeof e?s.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||i,u=e.hostname||e.host,c=e.port,l=e.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),e.url=(u?a+"//"+u:"")+(c?":"+c:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new n(e);return r&&f.on("response",r),f},u.get=function(e,t){var r=u.request(e,t);return r.end(),r},u.ClientRequest=n,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":104,"./lib/response":105,"builtin-status-codes":21,url:123,xtend:126}],103:[function(e,t,r){(function(e){(function(){var t;function n(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function i(e){var t=n();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function o(e){return"function"==typeof e}r.fetch=o(e.fetch)&&o(e.ReadableStream),r.writableStream=o(e.WritableStream),r.abortController=o(e.AbortController),r.arraybuffer=r.fetch||i("arraybuffer"),r.msstream=!r.fetch&&i("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&i("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||!!n()&&o(n().overrideMimeType),t=null}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],104:[function(e,t,r){(function(r,n,i){(function(){var o=e("./capability"),a=e("inherits"),s=e("./response"),u=e("readable-stream"),c=s.IncomingMessage,l=s.readyStates;var f=t.exports=function(e){var t,r=this;u.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+i.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}(t,n),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};a(f,u.Writable),f.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===h.indexOf(r)&&(this._headers[r]={name:e,value:t})},f.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},f.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},f.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var i=e._headers,a=null;"GET"!==t.method&&"HEAD"!==t.method&&(a=new Blob(e._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===e._mode){var u=null;if(o.abortController){var c=new AbortController;u=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}n.fetch(e._opts.url,{method:e._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:u}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var f=e._xhr=new n.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}"responseType"in f&&(f.responseType=e._mode),"withCredentials"in f&&(f.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(f.timeout=t.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){f.setRequestHeader(e[0],e[1])})),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case l.LOADING:case l.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{f.send(a)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}}}},f.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},f.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},f.prototype._write=function(e,t,r){this._body.push(e),r()},f.prototype._resetTimers=function(e){var t=this;n.clearTimeout(t._socketTimer),t._socketTimer=null,e?(n.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=n.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},f.prototype.abort=f.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},f.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),u.Writable.prototype.end.call(this,e,t,r)},f.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},f.prototype.flushHeaders=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":103,"./response":105,_process:87,buffer:20,inherits:68,"readable-stream":120}],105:[function(e,t,r){(function(t,n,i){(function(){var o=e("./capability"),a=e("inherits"),s=e("readable-stream"),u=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=r.IncomingMessage=function(e,r,n,a){var u=this;if(s.Readable.call(u),u._mode=n,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",(function(){t.nextTick((function(){u.emit("close")}))})),"fetch"===n){if(u._fetchResponse=r,u.url=r.url,u.statusCode=r.status,u.statusMessage=r.statusText,r.headers.forEach((function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)})),o.writableStream){var c=new WritableStream({write:function(e){return a(!1),new Promise((function(t,r){u._destroyed?r():u.push(i.from(e))?t():u._resumeFetch=t}))},close:function(){a(!0),u._destroyed||u.push(null)},abort:function(e){a(!0),u._destroyed||u.emit("error",e)}});try{return void r.body.pipeTo(c).catch((function(e){a(!0),u._destroyed||u.emit("error",e)}))}catch(e){}}var l=r.body.getReader();!function e(){l.read().then((function(t){u._destroyed||(a(t.done),t.done?u.push(null):(u.push(i.from(t.value)),e()))})).catch((function(e){a(!0),u._destroyed||u.emit("error",e)}))}()}else{if(u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===u.headers[r]&&(u.headers[r]=[]),u.headers[r].push(t[2])):void 0!==u.headers[r]?u.headers[r]+=", "+t[2]:u.headers[r]=t[2],u.rawHeaders.push(t[1],t[2])}})),u._charset="x-user-defined",!o.overrideMimeType){var f=u.rawHeaders["mime-type"];if(f){var h=f.match(/;\s*charset=([^;])(;|$)/);h&&(u._charset=h[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};a(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,o=null;switch(t._mode){case"text":if((o=r.responseText).length>t._pos){var a=o.substr(t._pos);if("x-user-defined"===t._charset){for(var s=i.alloc(a.length),c=0;c<a.length;c++)s[c]=255&a.charCodeAt(c);t.push(s)}else t.push(a,t._charset);t._pos=o.length}break;case"arraybuffer":if(r.readyState!==u.DONE||!r.response)break;o=r.response,t.push(i.from(new Uint8Array(o)));break;case"moz-chunked-arraybuffer":if(o=r.response,r.readyState!==u.LOADING||!o)break;t.push(i.from(new Uint8Array(o)));break;case"ms-stream":if(o=r.response,r.readyState!==u.LOADING)break;var l=new n.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(i.from(new Uint8Array(l.result.slice(t._pos)))),t._pos=l.result.byteLength)},l.onload=function(){e(!0),t.push(null)},l.readAsArrayBuffer(o)}t._xhr.readyState===u.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":103,_process:87,buffer:20,inherits:68,"readable-stream":120}],106:[function(e,t,r){var n={};function i(e,t,r){r||(r=Error);var i=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,i,a,s;if("string"==typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(n," ").concat(o(t,"type"))}return s+=". Received type ".concat(_typeof(r))}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],107:[function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(c,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":109,"./_stream_writable":111,_process:87,inherits:68}],108:[function(e,t,r){t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":110,inherits:68}],109:[function(e,t,r){(function(r,n){(function(){var i;t.exports=w,w.ReadableState=k;e("events").EventEmitter;var o=function(e,t){return e.listeners(t).length},a=e("./internal/streams/stream"),s=e("buffer").Buffer,u=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,l=e("util");c=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h,p,d=e("./internal/streams/buffer_list"),g=e("./internal/streams/destroy"),y=e("./internal/streams/state").getHighWaterMark,v=e("../errors").codes,m=v.ERR_INVALID_ARG_TYPE,b=v.ERR_STREAM_PUSH_AFTER_EOF,S=v.ERR_METHOD_NOT_IMPLEMENTED,P=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(w,a);var T=g.errorOrDestroy,_=["error","close","destroy","pause","resume"];function k(t,r,n){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=e("string_decoder/").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function w(t){if(i=i||e("./_stream_duplex"),!(this instanceof w))return new w(t);var r=this instanceof i;this._readableState=new k(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function x(e,t,r,n,i){c("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,a);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(a,t)),o)T(e,o);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)a.endEmitted?T(e,new P):E(e,a,t,!0);else if(a.ended)T(e,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?E(e,a,t,!1):N(e,a)):E(e,a,t,!1)}else n||(a.reading=!1,N(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function E(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&C(e)),N(e,t)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),w.prototype.destroy=g.destroy,w.prototype._undestroy=g.undestroy,w.prototype._destroy=function(e,t){t(e)},w.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},w.prototype.unshift=function(e){return x(this,e,null,!0,!1)},w.prototype.isPaused=function(){return!1===this._readableState.flowing},w.prototype.setEncoding=function(t){f||(f=e("string_decoder/").StringDecoder);var r=new f(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(j,e))}function j(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,I(e)}function N(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(c("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function M(e){c("readable nexttick read 0"),e.read(0)}function D(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(V,t,e))}function V(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}w.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):C(this),null;if(0===(e=A(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",i=!0),t.ended||t.reading?c("reading or ended",i=!1):i&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=A(r,t))),null===(n=e>0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},w.prototype._read=function(e){T(this,new S("_read()"))},w.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:y;function s(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",d),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",h),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){c("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,I(e))}}(n);e.on("drain",l);var f=!1;function h(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==B(i.pipes,e))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){c("onerror",t),y(),e.removeListener("error",p),0===o(e,"error")&&T(e,t)}function d(){e.removeListener("finish",g),y()}function g(){c("onfinish"),e.removeListener("close",d),y()}function y(){c("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",d),e.once("finish",g),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=B(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},w.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?C(this):i.reading||r.nextTick(M,this))),n},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(L,this),n},w.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(L,this),t},w.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(D,e,t))}(this,e)),e.paused=!1,this},w.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(w.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=e("./internal/streams/async_iterator")),h(this)}),Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),w._fromList=F,Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(w.from=function(t,r){return void 0===p&&(p=e("./internal/streams/from")),p(w,t,r)})}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":106,"./_stream_duplex":107,"./internal/streams/async_iterator":112,"./internal/streams/buffer_list":113,"./internal/streams/destroy":114,"./internal/streams/from":116,"./internal/streams/state":118,"./internal/streams/stream":119,_process:87,buffer:20,events:44,inherits:68,"string_decoder/":121,util:18}],110:[function(e,t,r){t.exports=l;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}e("inherits")(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":106,"./_stream_duplex":107,inherits:68}],111:[function(e,t,r){(function(r,n){(function(){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;t.exports=w,w.WritableState=k;var a={deprecate:e("util-deprecate")},s=e("./internal/streams/stream"),u=e("buffer").Buffer,c=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,f=e("./internal/streams/destroy"),h=e("./internal/streams/state").getHighWaterMark,p=e("../errors").codes,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,v=p.ERR_STREAM_CANNOT_PIPE,m=p.ERR_STREAM_DESTROYED,b=p.ERR_STREAM_NULL_VALUES,S=p.ERR_STREAM_WRITE_AFTER_END,P=p.ERR_UNKNOWN_ENCODING,T=f.errorOrDestroy;function _(){}function k(t,n,a){o=o||e("./_stream_duplex"),t=t||{},"boolean"!=typeof a&&(a=n instanceof o),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(j,e,t),e._writableState.errorEmitted=!0,T(e,i)):(o(i),e._writableState.errorEmitted=!0,T(e,i),j(e,t))}(e,n,i,t,o);else{var a=A(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),i?r.nextTick(E,e,n,a,o):E(e,n,a,o)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function w(t){var r=this instanceof(o=o||e("./_stream_duplex"));if(!r&&!l.call(w,this))return new w(t);this._writableState=new k(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function x(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function E(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,x(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback;if(x(e,t,!1,t.objectMode?1:c.length,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(r){t.pendingcb--,r&&T(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var n=A(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(C,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}e("inherits")(w,s),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===w&&(e&&e._writableState instanceof k)}})):l=function(e){return e instanceof this},w.prototype.pipe=function(){T(this,new v)},w.prototype.write=function(e,t,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,u.isBuffer(i)||i instanceof c);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=_),o.ending?function(e,t){var n=new S;T(e,n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var o;return null===n?o=new b:"string"==typeof n||t.objectMode||(o=new d("chunk",["string","Buffer"],n)),!o||(T(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else x(e,t,!1,s,n,i,o);return c}(this,o,s,e,t,n)),a},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},w.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new P(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,r){r(new g("_write()"))},w.prototype._writev=null,w.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=f.destroy,w.prototype._undestroy=f.undestroy,w.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":106,"./_stream_duplex":107,"./internal/streams/destroy":114,"./internal/streams/state":118,"./internal/streams/stream":119,_process:87,buffer:20,inherits:68,"util-deprecate":124}],112:[function(e,t,r){(function(r){(function(){var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_typeof(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_typeof(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=e("./end-of-stream"),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function d(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[l]=null,e[a]=null,e[s]=null,t(p(r,!1)))}}function g(e){r.nextTick(d,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(t,n){r.nextTick((function(){e[u]?n(e[u]):t(p(void 0,!0))}))}));var n,i=this[l];if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(p(void 0,!0)):t[f](r,n)}),n)}}(i,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),y);t.exports=function(e){var t,r=Object.create(v,(i(t={},h,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[h].read();n?(r[l]=null,r[a]=null,r[s]=null,e(p(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[l]=null,r[a]=null,r[s]=null,t(e)),void(r[u]=e)}var n=r[a];null!==n&&(r[l]=null,r[a]=null,r[s]=null,n(p(void 0,!0))),r[c]=!0})),e.on("readable",g.bind(null,r)),r}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":115,_process:87}],113:[function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!==_typeof(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_typeof(t)?t:String(t)}var u=e("buffer").Buffer,c=e("util").inspect,l=c&&c.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t,r,n,i=u.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,u.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:20,util:18}],114:[function(e,t,r){(function(e){(function(){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(n,a):(a._writableState.errorEmitted=!0,e.nextTick(r,a,t)):e.nextTick(r,a,t):o?(e.nextTick(n,a),o(t)):e.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:87}],115:[function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||l()},c=t._writableState&&t._writableState.finished,l=function(){s=!1,c=!0,a||o.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,f=!0,s||o.call(t)},p=function(e){o.call(t,e)},d=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},g=function(){t.req.on("finish",l)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?s&&!t._writableState&&(t.on("end",u),t.on("close",u)):(t.on("complete",l),t.on("abort",d),t.req?g():t.on("request",g)),t.on("end",h),t.on("finish",l),!1!==r.error&&t.on("error",p),t.on("close",d),function(){t.removeListener("complete",l),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",l),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("end",h),t.removeListener("error",p),t.removeListener("close",d)}}},{"../../../errors":106}],116:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],117:[function(e,t,r){var n;var i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var l,f=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new o("streams");var h=r.map((function(t,i){var o=i<r.length-1;return function(t,r,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}(t,o,i>0,(function(e){l||(l=e),e&&h.forEach(u),o||(h.forEach(u),f(l))}))}));return r.reduce(c)}},{"../../../errors":106,"./end-of-stream":115}],118:[function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},{"../../../errors":106}],119:[function(e,t,r){t.exports=e("events").EventEmitter},{events:44}],120:[function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":107,"./lib/_stream_passthrough.js":108,"./lib/_stream_readable.js":109,"./lib/_stream_transform.js":110,"./lib/_stream_writable.js":111,"./lib/internal/streams/end-of-stream.js":115,"./lib/internal/streams/pipeline.js":117}],121:[function(e,t,r){var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}r.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":97}],122:[function(e,t,r){(function(t,n){(function(){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},u=0;function c(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"==typeof t?t:function(e){var t=u++,n=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"==typeof n?n:function(e){delete s[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":87,timers:122}],123:[function(e,t,r){var n=e("punycode");function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),l=["%","/","?",";","#"].concat(c),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=e("qs");function m(e,t,r){if(e&&"object"===_typeof(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+_typeof(e));var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(a);u[0]=u[0].replace(/\\/g,"/");var m=e=u.join(a);if(m=m.trim(),!r&&1===e.split("#").length){var b=s.exec(m);if(b)return this.path=m,this.href=m,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var S=o.exec(m);if(S){var P=(S=S[0]).toLowerCase();this.protocol=P,m=m.substr(S.length)}if(r||S||m.match(/^\/\/[^@/]+@[^@/]+/)){var T="//"===m.substr(0,2);!T||S&&g[S]||(m=m.substr(2),this.slashes=!0)}if(!g[S]&&(T||S&&!y[S])){for(var _,k,w=-1,x=0;x<f.length;x++){-1!==(E=m.indexOf(f[x]))&&(-1===w||E<w)&&(w=E)}-1!==(k=-1===w?m.lastIndexOf("@"):m.lastIndexOf("@",w))&&(_=m.slice(0,k),m=m.slice(k+1),this.auth=decodeURIComponent(_)),w=-1;for(x=0;x<l.length;x++){var E;-1!==(E=m.indexOf(l[x]))&&(-1===w||E<w)&&(w=E)}-1===w&&(w=m.length),this.host=m.slice(0,w),m=m.slice(w),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var A=this.hostname.split(/\./),C=(x=0,A.length);x<C;x++){var j=A[x];if(j&&!j.match(h)){for(var N="",R=0,L=j.length;R<L;R++)j.charCodeAt(R)>127?N+="x":N+=j[R];if(!N.match(h)){var M=A.slice(0,x),D=A.slice(x+1),I=j.match(p);I&&(M.push(I[1]),D.unshift(I[2])),D.length&&(m="/"+D.join(".")+m),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!d[P])for(x=0,C=c.length;x<C;x++){var V=c[x];if(-1!==m.indexOf(V)){var B=encodeURIComponent(V);B===V&&(B=escape(V)),m=m.split(V).join(B)}}var H=m.indexOf("#");-1!==H&&(this.hash=m.substr(H),m=m.slice(0,H));var W=m.indexOf("?");if(-1!==W?(this.search=m.substr(W),this.query=m.substr(W+1),t&&(this.query=v.parse(this.query)),m=m.slice(0,W)):t&&(this.search="",this.query={}),m&&(this.pathname=m),y[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var $=this.search||"";this.path=F+$}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"===_typeof(this.query)&&Object.keys(this.query).length&&(o=v.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(r[c]=e[c])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var h=l[f];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",v=r.search||"";r.path=d+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),S=b||m||r.host&&e.pathname,P=S,T=r.pathname&&r.pathname.split("/")||[],_=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(_&&(r.hostname="",r.port=null,r.host&&(""===T[0]?T[0]=r.host:T.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),S=S&&(""===p[0]||""===T[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,T=p;else if(p.length)T||(T=[]),T.pop(),T=T.concat(p),r.search=e.search,r.query=e.query;else if(null!=e.search){if(_)r.host=T.shift(),r.hostname=r.host,(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.hostname=O.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!T.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=T.slice(-1)[0],w=(r.host||e.host||T.length>1)&&("."===k||".."===k)||""===k,x=0,E=T.length;E>=0;E--)"."===(k=T[E])?T.splice(E,1):".."===k?(T.splice(E,1),x++):x&&(T.splice(E,1),x--);if(!S&&!P)for(;x--;x)T.unshift("..");!S||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),w&&"/"!==T.join("/").substr(-1)&&T.push("");var O,A=""===T[0]||T[0]&&"/"===T[0].charAt(0);_&&(r.hostname=A?"":T.length?T.shift():"",r.host=r.hostname,(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.hostname=O.shift(),r.host=r.hostname));return(S=S||r.host&&T.length)&&!A&&T.unshift(""),T.length>0?r.pathname=T.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},r.parse=m,r.resolve=function(e,t){return m(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},r.format=function(e){return"string"==typeof e&&(e=m(e)),e instanceof i?e.format():i.prototype.format.call(e)},r.Url=i},{punycode:88,qs:90}],124:[function(e,t,r){(function(e){(function(){function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],125:[function(e,t,r){t.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}},{}],126:[function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},{}],127:[function(e,t,r){var n=e("fable-settings"),i=e("fable-uuid"),o=e("fable-log"),a=e("fable-serviceproviderbase"),s=function(t){function r(t){var a;return _classCallCheck2(this,r),(a=_callSuper(this,r,[t])).serviceType="ServiceManager",a.serviceTypes=[],a.servicesMap={},a.services={},a.serviceClasses={},a.extraServiceInitialization=!1,a.LogNoisiness=0,a.SettingsManager=new n(t),a.SettingsManager=a.SettingsManager,a.UUID=new i(a.SettingsManager.settings),a.Logging=new o(a.SettingsManager.settings),a.Logging.initialize(),a.ServiceManager=_assertThisInitialized(a),a.serviceManager=_assertThisInitialized(a),a.connectFable(_assertThisInitialized(a)),a.connectPreinitServiceProviderInstance(a.UUID),a.connectPreinitServiceProviderInstance(a.Logging),a.connectPreinitServiceProviderInstance(a.SettingsManager),a.addAndInstantiateServiceType("EnvironmentData",e("./services/Fable-Service-EnvironmentData.js")),a.addServiceType("Template",e("./services/Fable-Service-Template.js")),a.addServiceType("MetaTemplate",e("./services/Fable-Service-MetaTemplate.js")),a.addServiceType("Anticipate",e("./services/Fable-Service-Anticipate.js")),a.addAndInstantiateServiceType("Dates",e("./services/Fable-Service-DateManipulation.js")),a.addAndInstantiateServiceType("DataFormat",e("./services/Fable-Service-DataFormat.js")),a.addAndInstantiateServiceType("DataGeneration",e("./services/Fable-Service-DataGeneration.js")),a.addAndInstantiateServiceType("Utility",e("./services/Fable-Service-Utility.js")),a.addAndInstantiateServiceType("Math",e("./services/Fable-Service-Math.js")),a.addServiceType("ExpressionParser",e("./services/Fable-Service-ExpressionParser.js")),a.addServiceType("RestClient",e("./services/Fable-Service-RestClient.js")),a.addServiceType("Manifest",e("manyfest")),a.addServiceType("ObjectCache",e("cachetrax")),a.addAndInstantiateServiceType("ProgressTime",e("./services/Fable-Service-ProgressTime.js")),a.addServiceType("ProgressTrackerSet",e("./services/Fable-Service-ProgressTrackerSet.js")),a.addServiceType("Operation",e("./services/Fable-Service-Operation.js")),a.addServiceType("CSVParser",e("./services/Fable-Service-CSVParser.js")),a.addServiceType("FilePersistence",e("./services/Fable-Service-FilePersistence.js")),a}return _inherits(r,t),_createClass2(r,[{key:"isFable",get:function(){return!0}},{key:"settings",get:function(){return this.SettingsManager.settings}},{key:"settingsManager",get:function(){return this.SettingsManager}},{key:"getUUID",value:function(){return this.UUID.getUUID()}},{key:"newAnticipate",value:function(){return this.instantiateServiceProviderWithoutRegistration("Anticipate")}},{key:"newManyfest",value:function(e){return this.instantiateServiceProviderWithoutRegistration("Manifest",e)}},{key:"addServiceType",value:function(e,t){return e in this.servicesMap?this.log.warn("Adding a service type [".concat(e,"] that already exists. This will change the default class prototype for this service.")):(this.servicesMap[e]={},this.serviceTypes.push(e)),"function"==typeof t&&t.isFableService?this.serviceClasses[e]=t:(this.log.error("Attempted to add service type [".concat(e,"] with an invalid class. Using base service class, which will not crash but won't provide meaningful services.")),this.serviceClasses[e]=a),this.serviceClasses[e]}},{key:"addServiceTypeIfNotExists",value:function(e,t){return e in this.servicesMap?this.serviceClasses[e]:this.addServiceType(e,t)}},{key:"addAndInstantiateServiceType",value:function(e,t){return this.addServiceType(e,t),this.instantiateServiceProvider(e,{},"".concat(e,"-Default"))}},{key:"addAndInstantiateServiceTypeIfNotExists",value:function(e,t){return this.addServiceTypeIfNotExists(e,t),e in this.servicesMap?this.serviceClasses[e]:this.instantiateServiceProvider(e,{},"".concat(e,"-Default"))}},{key:"instantiateServiceProviderFromPrototype",value:function(e,t,r,n){var i=new n(this,t,r);return this.extraServiceInitialization&&(i=this.extraServiceInitialization(i)),this.servicesMap[e][i.Hash]=i,e in this.services||this.setDefaultServiceInstantiation(e,i.Hash),i}},{key:"instantiateServiceProvider",value:function(e,t,r){var n=this.instantiateServiceProviderWithoutRegistration(e,t,r);return this.servicesMap[e][n.Hash]=n,e in this.services||this.setDefaultServiceInstantiation(e,n.Hash),n}},{key:"instantiateServiceProviderIfNotExists",value:function(e,t,r){return e in this.services?this.services[e]:this.instantiateServiceProvider(e,t,r)}},{key:"instantiateServiceProviderWithoutRegistration",value:function(e,t,r){var n=new this.serviceClasses[e](this,t,r);return this.extraServiceInitialization&&(n=this.extraServiceInitialization(n)),n}},{key:"connectPreinitServiceProviderInstance",value:function(e){var t=e.serviceType,r=e.Hash;return e.connectFable(this),t in this.servicesMap||(this.servicesMap[t]={}),this.servicesMap[t][r]=e,t in this.services||this.setDefaultServiceInstantiation(t,r,!1),e}},{key:"setDefaultServiceInstantiation",value:function(e,t,r){var n=void 0===r||r;return t in this.servicesMap[e]&&(e in this&&!n||(this[e]=this.servicesMap[e][t]),e in this.services&&!n||(this.services[e]=this.servicesMap[e][t]),!0)}}]),r}(a.CoreServiceProviderBase);t.exports=s,t.exports.new=function(e){return new s(e)},t.exports.LogProviderBase=o.LogProviderBase,t.exports.ServiceProviderBase=a,t.exports.CoreServiceProviderBase=a.CoreServiceProviderBase,t.exports.precedent=n.precedent},{"./services/Fable-Service-Anticipate.js":128,"./services/Fable-Service-CSVParser.js":129,"./services/Fable-Service-DataFormat.js":130,"./services/Fable-Service-DataGeneration.js":132,"./services/Fable-Service-DateManipulation.js":133,"./services/Fable-Service-EnvironmentData.js":134,"./services/Fable-Service-ExpressionParser.js":135,"./services/Fable-Service-FilePersistence.js":145,"./services/Fable-Service-Math.js":146,"./services/Fable-Service-MetaTemplate.js":147,"./services/Fable-Service-Operation.js":151,"./services/Fable-Service-ProgressTime.js":152,"./services/Fable-Service-ProgressTrackerSet.js":154,"./services/Fable-Service-RestClient.js":155,"./services/Fable-Service-Template.js":156,"./services/Fable-Service-Utility.js":157,cachetrax:22,"fable-log":50,"fable-serviceproviderbase":51,"fable-settings":54,"fable-uuid":56,manyfest:80}],128:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="AsyncAnticipate",i.operationQueue=[],i.erroredOperations=[],i.executingOperationCount=0,i.completedOperationCount=0,i.callDepth=0,i.maxOperations=1,i.lastError=void 0,i.waitingFunctions=[],i}return _inherits(t,e),_createClass2(t,[{key:"checkQueue",value:function(){if(this.lastError){for(var e=0;e<this.waitingFunctions.length;e++)this.waitingFunctions[e](this.lastError);this.lastError=void 0,this.waitingFunctions=[]}else if(this.operationQueue.length>0&&this.executingOperationCount<this.maxOperations){var t=this.operationQueue.shift();this.executingOperationCount+=1,t(this.buildAnticipatorCallback())}else if(this.waitingFunctions.length>0&&this.executingOperationCount<1){for(var r=0;r<this.waitingFunctions.length;r++)this.waitingFunctions[r](this.lastError);this.lastError=void 0,this.waitingFunctions=[]}}},{key:"anticipate",value:function(e){this.operationQueue.push(e),this.checkQueue()}},{key:"buildAnticipatorCallback",value:function(){var e={Called:!1,Error:void 0,OperationSet:this};return function(t){if(e.Called)throw new Error("Anticipation async callback called twice...");e.Called=!0,this.lastError=t,e.OperationSet.executingOperationCount-=1,e.OperationSet.completedOperationCount+=1,e.OperationSet.callDepth++,e.OperationSet.callDepth>400?(e.OperationSet.callDepth=0,setTimeout(e.OperationSet.checkQueue.bind(this),0)):e.OperationSet.checkQueue()}.bind(this)}},{key:"wait",value:function(e){this.waitingFunctions.push(e),this.checkQueue()}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],129:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="CSVParser",i.Header=[],i.HeaderFieldNames=[],i.Delimiter=",",i.QuoteCharacter='"',i.CleanCharacters=["\r"],i.HeaderLineIndex=0,i.HasHeader=!0,i.HasSetHeader=!1,i.EmitHeader=!1,i.EmitJSON=!0,i.EscapedQuoteString="&quot;",i.CurrentLine="",i.CurrentRecord=[],i.InQuote=!1,i.InEscapedQuote=!1,i.LinesParsed=0,i.RowsEmitted=0,i}return _inherits(t,e),_createClass2(t,[{key:"marshalRowToJSON",value:function(e){if(!Array.isArray(e))return!1;for(var t=this.HeaderFieldNames.length;t<e.length;t++)this.HeaderFieldNames[t]="".concat(t);for(var r={},n=0;n<e.length;n++)r[this.HeaderFieldNames[n]]=e[n];return r}},{key:"setHeader",value:function(e){this.Header=e;for(var t=0;t<this.Header.length;t++)void 0===this.Header[t]?this.HeaderFieldNames[t]="".concat(t):this.HeaderFieldNames[t]=this.Header[t].toString().trim()}},{key:"resetRowState",value:function(){this.CurrentRecord=[]}},{key:"pushLine",value:function(){for(var e=0;e<this.CleanCharacters.length;e++)this.CurrentLine=this.CurrentLine.replace(this.CleanCharacters[e],"");this.CurrentRecord.push(this.CurrentLine),this.CurrentLine=""}},{key:"emitRow",value:function(e){var t=void 0===e?this.EmitJSON:e;this.RowsEmitted++;var r=this.CurrentRecord;return this.CurrentRecord=[],t?this.marshalRowToJSON(r):r}},{key:"parseCSVLine",value:function(e){this.LinesParsed++;for(var t=0;t<e.length;t++)this.InQuote||e[t]!=this.Delimiter?e[t]==this.QuoteCharacter?this.InEscapedQuote?this.InEscapedQuote=!1:this.InQuote?t<e.length&&e[t+1]==this.QuoteCharacter?(this.CurrentLine+=this.EscapedQuoteString,this.InEscapedQuote=!0):this.InQuote=!1:this.InQuote=!0:this.CurrentLine+=e[t]:this.pushLine();return!this.InQuote&&(this.pushLine(),this.HasHeader&&!this.HasSetHeader&&this.RowsEmitted==this.HeaderLineIndex?(this.HasSetHeader=!0,this.setHeader(this.emitRow(!1)),!!this.EmitHeader&&this.Header):this.emitRow())}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],130:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),_defineProperty2(_assertThisInitialized(i=_callSuper(this,t,[e,r,n])),"stringPadStart",(function(e,t,r){var n=e.toString();return this.stringGeneratePaddingString(n,t,r)+n})),_defineProperty2(_assertThisInitialized(i),"stringPadEnd",(function(e,t,r){var n=e.toString();return n+this.stringGeneratePaddingString(n,t,r)})),i.serviceType="DataArithmatic",i._Regex_formatterInsertCommas=/.{1,3}/g,i._Regex_formatterAddCommasToNumber=/^([-+]?)(0?)(\d+)(.?)(\d+)$/g,i._Regex_formatterDollarsRemoveCommas=/,/gi,i._Regex_formatterCleanNonAlphaChar=/[^a-zA-Z]/gi,i._Regex_formatterCapitalizeEachWord=/([a-zA-Z]+)/g,i._Value_MoneySign_Currency="$",i._Value_NaN_Currency="--",i._Value_GroupSeparator_Number=",",i._Value_Prefix_StringHash="HSH",i._Value_Clean_formatterCleanNonAlpha="",i._UseEngineStringStartsWith="function"==typeof String.prototype.startsWith,i._UseEngineStringEndsWith="function"==typeof String.prototype.endsWith,i}return _inherits(t,e),_createClass2(t,[{key:"stringReverse",value:function(e){return e.split("").reverse().join("")}},{key:"stringStartsWith",value:function(e,t,r){return this._UseEngineStringStartsWith?e.startsWith(t,r):this.stringStartsWith_Polyfill.call(e,t,r)}},{key:"stringStartsWith_Polyfill",value:function(e,t){return this.slice(t||0,e.length)===e}},{key:"stringEndsWith",value:function(e,t,r){return this._UseEngineStringEndsWith?e.endsWith(t,r):this.stringEndsWith_Polyfill.call(e,t,r)}},{key:"stringEndsWith_Polyfill",value:function(e,t){return t<this.length?t|=0:t=this.length,this.substr(t-e.length,e.length)===e}},{key:"insecureStringHash",value:function(e){for(var t=0,r=e.length,n=0;n<r;)t=(t<<5)-t+e.charCodeAt(n++)|0;return"".concat(this._Value_Prefix_StringHash).concat(t)}},{key:"capitalizeEachWord",value:function(e){return e.replace(this._Regex_formatterCapitalizeEachWord,(function(e){return e.charAt(0).toUpperCase()+e.substr(1)}))}},{key:"cleanEnclosureWrapCharacters",value:function(e,t){return t.startsWith(e)&&t.endsWith(e)?t.substring(1,t.length-1):t}},{key:"cleanNonAlphaCharacters",value:function(e){return"string"==typeof e&&""!=e?e.replace(this._Regex_formatterCleanNonAlphaChar,this._Value_Clean_formatterCleanNonAlpha):""}},{key:"formatterInsertCommas",value:function(e){var t=this.stringReverse(e).match(this._Regex_formatterInsertCommas).join(",");return this.stringReverse(t)}},{key:"processAddCommasToNumberRegex",value:function(e,t,r,n,i,o){return t+(i?this.formatterInsertCommas(n)+i+o:this.formatterInsertCommas(n+o))}},{key:"formatterAddCommasToNumber",value:function(e){return e.toString().replace(this._Regex_formatterAddCommasToNumber,this.processAddCommasToNumberRegex.bind(this))}},{key:"formatterDollars",value:function(e,t,r){if(isNaN(e))return this._Value_NaN_Currency;if(null==e)return this._Value_NaN_Currency;var n=this.fable.Math.parsePrecise(e),i=void 0===t?2:t,o=this.fable.Math.toFixedPrecise(n,i,r);return"$".concat(this.formatterAddCommasToNumber(o))}},{key:"formatterRoundNumber",value:function(e,t){var r=void 0===t?2:t;if(isNaN(e)){return(0).toFixed(r)}if(null==e)return"";var n=this.fable.Utility.bigNumber(e).toFixed(r);if(isNaN(n)){return(0).toFixed(r)}return n}},{key:"stringGeneratePaddingString",value:function(e,t,r){var n=t|0,i=String(void 0!==r?r:" ");if(e.length>t)return"";var o=t-e.length;return o>i.length&&(i+=i.repeat(n/i.length)),i.slice(0,o)}},{key:"formatTimeSpan",value:function(e){if("number"!=typeof e)return"";var t=parseInt(e%1e3),r=parseInt(e/1e3%60),n=parseInt(e/6e4%60),i=parseInt(e/36e5);return"".concat(this.stringPadStart(i,2,"0"),":").concat(this.stringPadStart(n,2,"0"),":").concat(this.stringPadStart(r,2,"0"),".").concat(this.stringPadStart(t,3,"0"))}},{key:"formatTimeDelta",value:function(e,t){return"number"!=typeof e||"number"!=typeof t?"":this.formatTimeSpan(t-e)}},{key:"getMonthFromDate",value:function(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()]}},{key:"getMonthAbbreviatedFromDate",value:function(e){return["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getMonth()]}},{key:"formatMonthDayYearFromDate",value:function(e,t){var r=void 0!==t&&t,n=e.getMonth()+1,i=e.getDate(),o=e.getFullYear();return r&&(n=this.stringPadStart(n,2,"0"),i=this.stringPadStart(i,2,"0"),o=this.stringPadStart(o,4,"0")),"".concat(n,"/").concat(i,"/").concat(o)}},{key:"formatSortableStringFromDate",value:function(e){return e.getFullYear()+this.stringPadStart(e.getMonth(),2,"0")+this.stringPadStart(e.getDate(),2,"0")}},{key:"stringBeforeMatch",value:function(e,t){return e.split(t)[0]}},{key:"stringAfterMatch",value:function(e,t){var r=e.indexOf(t);return r<0||r+t.length>=e.length?"":e.substring(r+t.length)}},{key:"stringCountSegments",value:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;for(var u=1,c=[],l=0;l<i.length;l++)i[l]==o&&0==c.length?u++:i[l]in a?c.push(a[i[l]]):i[l]in s&&s[i[l]]==c[c.length-1]&&c.pop();return u}},{key:"stringGetSegments",value:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2,'"':3,"'":4},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2,'"':3,"'":4},u=0,c=[];if(e.length<1)return c;for(var l=[],f=0;f<i.length;f++)i[f]==o&&0==l.length?(c.push(i.substring(u,f)),u=f+1):i[f]in a?l.push(a[i[f]]):i[f]in s&&s[i[f]]==l[l.length-1]&&l.pop();return u<i.length&&c.push(i.substring(u)),c}},{key:"stringGetFirstSegment",value:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;for(var u=[],c=0;c<i.length;c++){if(i[c]==o&&0==u.length)return i.substring(0,c);i[c]in a?u.push(a[i[c]]):i[c]in s&&s[i[c]]==u[u.length-1]&&u.pop()}return i}},{key:"stringCountEnclosures",value:function(e,t,r){for(var n="string"==typeof e?e:"",i="string"==typeof t?t:"(",o="string"==typeof r?r:")",a=0,s=0,u=0;u<n.length;u++)n[u]==i?(0==s&&a++,s++):n[u]==o&&s--;return a}},{key:"stringGetEnclosureValueByIndex",value:function(e,t,r,n){for(var i="string"==typeof e?e:"",o="number"==typeof t?t:0,a="string"==typeof r?r:"(",s="string"==typeof n?n:")",u=0,c=0,l=!1,f=0,h=0,p=0;p<i.length;p++)i[p]==a?1==++c&&o==++u-1&&(l=!0,f=p):i[p]==s&&0==--c&&l&&h<=f&&(h=p,l=!1);return u<=o?"":h>0&&h>f?i.substring(f+1,h):i.substring(f+1)}},{key:"stringRemoveEnclosureByIndex",value:function(e,t,r,n){for(var i="string"==typeof e?e:"",o="number"==typeof t?t:0,a="string"==typeof r?r:"(",s="string"==typeof n?n:")",u=0,c=0,l=!1,f=0,h=0,p=0;p<i.length;p++)i[p]==a?1==++c&&o==++u-1&&(l=!0,f=p):i[p]==s&&0==--c&&l&&h<=f&&(h=p,l=!1);if(u<=o)return i;var d="";return f>1&&(d=i.substring(0,f)),i.length>h+1&&h>f&&(d+=i.substring(h+1)),d}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],131:[function(e,t,r){t.exports={DefaultIntegerMinimum:0,DefaultIntegerMaximum:9999999,DefaultNumericStringLength:10,MonthSet:["January","February","March","April","May","June","July","August","September","October","November","December"],WeekDaySet:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ColorSet:["Red","Orange","Yellow","Green","Blue","Indigo","Violet","Pink","Purple","Turquoise","Gold","Lime","Maroon","Navy","Coral","Teal","Brown","White","Black","Sky","Berry","Grey","Straw","Silver","Sapphire"],SurNameSet:["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen","Sanchez","Wright","King","Scott","Green","Baker","Adams","Nelson","Hill","Ramirez","Campbell","Mitchell","Roberts","Carter","Phillips","Evans","Turner","Torres","Parker","Collins","Edwards","Stewart","Flores","Morris","Nguyen","Murphy","Rivera","Cook","Rogers","Morgan","Peterson","Cooper","Reed","Bailey","Bell","Gomez","Kelly","Howard","Ward","Cox","Diaz","Richardson","Wood","Watson","Brooks","Bennett","Gray","James","Reyes","Cruz","Hughes","Price","Myers","Long","Foster","Sanders","Ross","Morales","Powell","Sullivan","Russell","Ortiz","Jenkins","Gutierrez","Perry","Butler","Barnes","Fisher"],NameSet:["Mary","Patricia","Jennifer","Linda","Elizabeth","Barbara","Susan","Jessica","Sarah","Karen","Lisa","Nancy","Betty","Sandra","Margaret","Ashley","Kimberly","Emily","Donna","Michelle","Carol","Amanda","Melissa","Deborah","Stephanie","Dorothy","Rebecca","Sharon","Laura","Cynthia","Amy","Kathleen","Angela","Shirley","Brenda","Emma","Anna","Pamela","Nicole","Samantha","Katherine","Christine","Helen","Debra","Rachel","Carolyn","Janet","Maria","Catherine","Heather","Diane","Olivia","Julie","Joyce","Victoria","Ruth","Virginia","Lauren","Kelly","Christina","Joan","Evelyn","Judith","Andrea","Hannah","Megan","Cheryl","Jacqueline","Martha","Madison","Teresa","Gloria","Sara","Janice","Ann","Kathryn","Abigail","Sophia","Frances","Jean","Alice","Judy","Isabella","Julia","Grace","Amber","Denise","Danielle","Marilyn","Beverly","Charlotte","Natalie","Theresa","Diana","Brittany","Doris","Kayla","Alexis","Lori","Marie","James","Robert","John","Michael","David","William","Richard","Joseph","Thomas","Christopher","Charles","Daniel","Matthew","Anthony","Mark","Donald","Steven","Andrew","Paul","Joshua","Kenneth","Kevin","Brian","George","Timothy","Ronald","Jason","Edward","Jeffrey","Ryan","Jacob","Gary","Nicholas","Eric","Jonathan","Stephen","Larry","Justin","Scott","Brandon","Benjamin","Samuel","Gregory","Alexander","Patrick","Frank","Raymond","Jack","Dennis","Jerry","Tyler","Aaron","Jose","Adam","Nathan","Henry","Zachary","Douglas","Peter","Kyle","Noah","Ethan","Jeremy","Walter","Christian","Keith","Roger","Terry","Austin","Sean","Gerald","Carl","Harold","Dylan","Arthur","Lawrence","Jordan","Jesse","Bryan","Billy","Bruce","Gabriel","Joe","Logan","Alan","Juan","Albert","Willie","Elijah","Wayne","Randy","Vincent","Mason","Roy","Ralph","Bobby","Russell","Bradley","Philip","Eugene"]}},{}],132:[function(e,t,r){var n=function(t){function r(t,n,i){var o;return _classCallCheck2(this,r),(o=_callSuper(this,r,[t,n,i])).serviceType="DataGeneration",o.defaultData=e("./Fable-Service-DataGeneration-DefaultValues.json"),o}return _inherits(r,t),_createClass2(r,[{key:"randomIntegerBetween",value:function(e,t){return Math.floor(Math.random()*(t-e))+e}},{key:"randomIntegerUpTo",value:function(e){return this.randomIntegerBetween(0,e)}},{key:"randomInteger",value:function(){return Math.floor(Math.random()*this.defaultData.DefaultIntegerMaximum)}},{key:"randomNumericString",value:function(e,t){var r=void 0===t?9999999999:t;return this.services.DataFormat.stringPadStart(this.randomIntegerUpTo(r),e,"0")}},{key:"randomMonth",value:function(){return this.defaultData.MonthSet[this.randomIntegerUpTo(this.defaultData.MonthSet.length-1)]}},{key:"randomDayOfWeek",value:function(){return this.defaultData.WeekDaySet[this.randomIntegerUpTo(this.defaultData.WeekDaySet.length-1)]}},{key:"randomColor",value:function(){return this.defaultData.ColorSet[this.randomIntegerUpTo(this.defaultData.ColorSet.length-1)]}},{key:"randomName",value:function(){return this.defaultData.NameSet[this.randomIntegerUpTo(this.defaultData.NameSet.length-1)]}},{key:"randomSurname",value:function(){return this.defaultData.SurNameSet[this.randomIntegerUpTo(this.defaultData.SurNameSet.length-1)]}}]),r}(e("fable-serviceproviderbase"));t.exports=n},{"./Fable-Service-DataGeneration-DefaultValues.json":131,"fable-serviceproviderbase":51}],133:[function(e,t,r){var n=function(t){function r(t,n,i){var o;return _classCallCheck2(this,r),(o=_callSuper(this,r,[t,n,i])).serviceType="Dates",o.dayJS=e("dayjs"),o.plugin_weekOfYear=e("dayjs/plugin/weekOfYear"),o.dayJS.extend(o.plugin_weekOfYear),o.plugin_weekday=e("dayjs/plugin/weekday"),o.dayJS.extend(o.plugin_weekday),o.plugin_isoWeek=e("dayjs/plugin/isoWeek"),o.dayJS.extend(o.plugin_isoWeek),o.plugin_timezone=e("dayjs/plugin/timezone"),o.dayJS.extend(o.plugin_timezone),o.plugin_relativetime=e("dayjs/plugin/relativeTime"),o.dayJS.extend(o.plugin_relativetime),o.plugin_utc=e("dayjs/plugin/utc"),o.dayJS.extend(o.plugin_utc),o.plugin_advancedFormat=e("dayjs/plugin/advancedFormat"),o.dayJS.extend(o.plugin_advancedFormat),o}return _inherits(r,t),_createClass2(r)}(e("fable-serviceproviderbase"));t.exports=n},{dayjs:28,"dayjs/plugin/advancedFormat":29,"dayjs/plugin/isoWeek":30,"dayjs/plugin/relativeTime":31,"dayjs/plugin/timezone":32,"dayjs/plugin/utc":33,"dayjs/plugin/weekOfYear":34,"dayjs/plugin/weekday":35,"fable-serviceproviderbase":51}],134:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="EnvironmentData",i.Environment="node.js",i}return _inherits(t,e),_createClass2(t)}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],135:[function(e,t,r){e("big.js").PE;var n=function(t){function r(t,n,i){var o;return _classCallCheck2(this,r),(o=_callSuper(this,r,[t,n,i])).tokenMap=e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-TokenMap.json"),o.tokenMaxPrecedence=10,o.functionMap=e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-FunctionMap.json"),o.serviceType="ExpressionParser",o.fable.addServiceTypeIfNotExists("ExpressionParser-Tokenizer",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ExpressionTokenizer.js")),o.fable.addServiceTypeIfNotExists("ExpressionParser-Linter",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Linter.js")),o.fable.addServiceTypeIfNotExists("ExpressionParser-Postfix",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Postfix.js")),o.fable.addServiceTypeIfNotExists("ExpressionParser-ValueMarshal",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ValueMarshal.js")),o.fable.addServiceTypeIfNotExists("ExpressionParser-Solver",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-SolvePostfixedExpression.js")),o.fable.addServiceTypeIfNotExists("ExpressionParser-Messaging",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Messaging.js")),o.Tokenizer=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Tokenizer"),o.Linter=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Linter"),o.Postfix=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Postfix"),o.ValueMarshal=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-ValueMarshal"),o.Solver=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Solver"),o.Messaging=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Messaging"),o.Tokenizer.connectExpressionParser(_assertThisInitialized(o)),o.Linter.connectExpressionParser(_assertThisInitialized(o)),o.Postfix.connectExpressionParser(_assertThisInitialized(o)),o.ValueMarshal.connectExpressionParser(_assertThisInitialized(o)),o.Solver.connectExpressionParser(_assertThisInitialized(o)),o.Messaging.connectExpressionParser(_assertThisInitialized(o)),o.GenericManifest=o.fable.newManyfest(),o.LogNoisiness="LogNoisiness"in o.fable?o.fable.LogNoisiness:0,o}return _inherits(r,t),_createClass2(r,[{key:"tokenize",value:function(e,t){return this.Tokenizer.tokenize(e,t)}},{key:"lintTokenizedExpression",value:function(e,t){return this.Linter.lintTokenizedExpression(e,t)}},{key:"buildPostfixedSolveList",value:function(e,t){return this.Postfix.buildPostfixedSolveList(e,t)}},{key:"substituteValuesInTokenizedObjects",value:function(e,t,r,n){return this.ValueMarshal.substituteValuesInTokenizedObjects(e,t,r,n)}},{key:"solvePostfixedExpression",value:function(e,t,r,n){return this.Solver.solvePostfixedExpression(e,t,r,n)}},{key:"solve",value:function(e,t,r,n,i){var o="object"===_typeof(r)?r:{},a="object"===_typeof(t)?t:{},s="object"===_typeof(i)?i:{};return this.tokenize(e,o),this.lintTokenizedExpression(o.RawTokens,o),this.buildPostfixedSolveList(o.RawTokens,o),this.substituteValuesInTokenizedObjects(o.PostfixTokenObjects,a,o,n),this.solvePostfixedExpression(o.PostfixSolveList,s,o,n)}}]),r}(e("fable-serviceproviderbase"));t.exports=n},{"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ExpressionTokenizer.js":137,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-FunctionMap.json":138,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Linter.js":139,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Messaging.js":140,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Postfix.js":141,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-SolvePostfixedExpression.js":142,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-TokenMap.json":143,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ValueMarshal.js":144,"big.js":17,"fable-serviceproviderbase":51}],136:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParserOperationBase",i.numberTest=/^-{0,1}\d*\.{0,1}\d+$/,i.ExpressionParser=!1,i}return _inherits(t,e),_createClass2(t,[{key:"connectExpressionParser",value:function(e){this.ExpressionParser=e}},{key:"getTokenType",value:function(e){return e in this.ExpressionParser.tokenMap?"Token.".concat(this.ExpressionParser.tokenMap[e].Type):e.length>2&&"{"===e[0]&&"}"===e[e.length-1]?"Token.StateAddress":this.numberTest.test(e)?"Token.Constant":"Token.Symbol"}},{key:"getTokenContainerObject",value:function(e,t){return{Token:e,Type:void 0===t?this.getTokenType(e):t,Descriptor:e in this.ExpressionParser.tokenMap&&this.ExpressionParser.tokenMap[e]}}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],137:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-Tokenizer",i}return _inherits(t,e),_createClass2(t,[{key:"tokenize",value:function(e,t){var r="object"===_typeof(t)?t:{ExpressionParserLog:[]};if(r.RawExpression=e,r.RawTokens=[],r.ExpressionParserLog=[],"string"!=typeof e)return this.log.warn("ExpressionParser.tokenize was passed a non-string expression."),r.RawTokens;for(var n=!1,i="",o=0;o<e.length;o++){var a=e[o];" "!==a||"StateAddress"===n?"StateAddress"!==n||"}"===a?"StateAddress"!==n||"}"!==a?"}"!=a?"{"!=a?a in this.ExpressionParser.tokenMap?(i.length>0&&r.RawTokens.push(i),i="",n=!1,r.RawTokens.push(a)):(n="Value",i+=a):(i.length>0&&r.RawTokens.push(i),i="",n="StateAddress",i=a):(i.length>0&&r.RawTokens.push(i),i="",n=!1,r.ExpressionParserLog.push("ExpressionParser.tokenize found a closing brace without an opening brace in the expression: ".concat(e," at character index ").concat(o)),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):(i+=a,r.RawTokens.push(i),i="",n=!1):i+=a:(i.length>0&&r.RawTokens.push(i),i="",n=!1)}return n&&i.length>0&&r.RawTokens.push(i),r.RawTokens}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136}],138:[function(e,t,r){t.exports={sqrt:{Name:"Square Root",Address:"fable.Math.sqrtPrecise"},abs:{Name:"Absolute Value",Address:"fable.Math.absPrecise"},rad:{Name:"Degrees to Radians",Address:"fable.Math.radPrecise"},pi:{Name:"Pi",Address:"fable.Math.piPrecise"},sin:{Name:"Sine",Address:"fable.Math.sin"},cos:{Name:"Cosine",Address:"fable.Math.cos"},tan:{Name:"Tangent",Address:"fable.Math.tan"},count:{Name:"Count Set Elements",Address:"fable.Math.countSetElements"},sortset:{Name:"Sort Set",Address:"fable.Math.sortSetPrecise"},bucketset:{Name:"Bucket Set",Address:"fable.Math.bucketSetPrecise"},sorthistogram:{Name:"Sort Histogram",Address:"fable.Math.sortHistogramPrecise"},max:{Name:"Maximum",Address:"fable.Math.maxPrecise"},min:{Name:"Minimum",Address:"fable.Math.minPrecise"},sum:{Name:"Sum",Address:"fable.Math.sumPrecise"},avg:{Name:"Average",Address:"fable.Math.averagePrecise"},mean:{Name:"Mean",Address:"fable.Math.meanPrecise"},median:{Name:"Median",Address:"fable.Math.medianPrecise"},mode:{Name:"Mode",Address:"fable.Math.modePrecise"}}},{}],139:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-Linter",i}return _inherits(t,e),_createClass2(t,[{key:"lintTokenizedExpression",value:function(e,t){var r="object"===_typeof(t)?t:{ExpressionParserLog:[]};if(r.LinterResults=[],!Array.isArray(e))return r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression was passed a non-array tokenized expression."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),e;if(e.length<1)return r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression was passed an empty tokenized expression."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),e;for(var n=0,i=!1,o=0;o<e.length;o++)"("!==e[o]||i||n++,")"!==e[o]||i||n--,"{"===e[o]&&(i=!0),"}"===e[o]&&(i=!1),n<0&&(r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression found an unbalanced parenthesis in the tokenized expression at token index ".concat(o)),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]));n>0&&(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found an unbalanced parenthesis in the tokenized expression (ended without closing last set of parenthesis) -- appropriate closing parenthesis will be added."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),i=!1;for(var a=0;a<e.length;a++)"{"===e[a]&&(i=!0),"}"===e[a]&&i&&(i=!1),"}"!==e[a]||i||(r.ExpressionParserLog.push('ERROR: ExpressionParser.lintTokenizedExpression found an unbalanced closing squiggly brace "}" in the tokenized expression at token index '.concat(a)),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),i&&(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found an open squiggly brace in the tokenized expression at index ".concat(a)),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1]));for(var s=0,u=0;u<e.length;u++)"="===e[u]&&(++s>1&&(r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression found multiple equality assignments in the tokenized expression; equality assignment #".concat(s," at token index ").concat(u,".")),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])));s<1&&(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found no equality assignment in the tokenized expression. One called Result will be added automatically."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),1===s&&3===e.length&&("Token.StateAddress"!==this.getTokenType(e[0])&&"Token.Symbol"!==this.getTokenType(e[2])||(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found a single equality assignment in the tokenized expression with no assignable address on the left side of the assignment."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])));for(var c=!1,l=0;l<e.length-1;l++)e[l]in this.ExpressionParser.tokenMap&&"Parenthesis"!=this.ExpressionParser.tokenMap[e[l]].Type&&!c?c=!0:e[l]in this.ExpressionParser.tokenMap&&"Parenthesis"!=this.ExpressionParser.tokenMap[e[l]].Type?"+"!==e[l]&&"-"!==e[l]&&(r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression found an ".concat(e[l]," operator adjacent to another operator in the tokenized expression at token index ").concat(l)),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):c=!1;return r.LinterResults}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136}],140:[function(e,t,r){e("big.js").PE;var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-Messaging",i}return _inherits(t,e),_createClass2(t,[{key:"getOperationVirtualSymbolName",value:function(e){return e&&"VirtualSymbolName"in e?e.VirtualSymbolName:"Token.VirtualSymbol"===e.Type?e.Token:"NO_VIRTUAL_SYMBOL_NAME_FOUND"}},{key:"getVirtualTokenValue",value:function(e,t){var r=this.getOperationVirtualSymbolName(e),n="VirtualSymbols"in t?t.VirtualSymbols:{};if(this.ExpressionParser.GenericManifest.checkAddressExists(n,r)){var i=this.ExpressionParser.GenericManifest.getValueAtAddress(n,r);return"object"===_typeof(i)?"{".concat(Object.keys(i).length," values}"):Array.isArray(i)?"[".concat(Object.keys(i).length," values]"):i}return"NO_VALUE_FOUND"}},{key:"getTokenAddressString",value:function(e){return pExpression.Token}},{key:"getTokenSymbolString",value:function(e){return e.Token}},{key:"getOperationSymbolMessage",value:function(e){if(!e)return"INVALID_OPERATION";var t=this.getOperationVirtualSymbolName(e),r=this.getTokenSymbolString(e.LeftValue),n=this.getTokenSymbolString(e.Operation),i=this.getTokenSymbolString(e.RightValue),o=t.substring(0,3);return"="===n?"".concat(t," = ").concat(r):"VFE"===o?"".concat(t," = ").concat(n,"(").concat(i,")"):"".concat(t," = ").concat(r," ").concat(n," ").concat(i)}},{key:"getOperationValueMessage",value:function(e,t){if(!e)return"INVALID_OPERATION";var r=this.getOperationVirtualSymbolName(e),n=this.getVirtualTokenValue(e.LeftValue,t),i=this.getTokenSymbolString(e.Operation),o=this.getVirtualTokenValue(e.RightValue,t),a=r.substring(0,3);return"="===i?"".concat(r," = ").concat(n):"VFE"===a?"".concat(r," = ").concat(i,"(").concat(n,")"):"".concat(r," = ").concat(n," ").concat(i," ").concat(o)}},{key:"logFunctionOutcome",value:function(e){if("object"===_typeof(e)){var t="PostfixedAssignmentAddress"in e?e.PostfixedAssignmentAddress:"NO_ASSIGNMENT_ADDRESS_FOUND",r="RawExpression"in e?e.RawExpression:"NO_EXPRESSION_FOUND",n="RawResult"in e?e.RawResult:"NO_RESULT_FOUND";this.log.info("Solved f(".concat(t,") = {").concat(r,"}"));for(var i=0;i<e.PostfixSolveList.length;i++){var o=e.PostfixSolveList[i],a=this.getOperationSymbolMessage(o);this.log.info("".concat(i," Symbols: ").concat(a));var s=this.getOperationValueMessage(o,e);this.log.info("".concat(i," Values: ").concat(s))}this.log.info("{".concat(r,"} = ").concat(n))}else this.log.error("Solver results object was not an object. Cannot log outcome.")}},{key:"logFunctionSolve",value:function(e){if("object"===_typeof(e))if("PostfixSolveList"in e&&Array.isArray(e.PostfixSolveList)){for(var t=0;t<tmpExpressionParseOutcome.PostfixSolveList.length;t++){var r=tmpExpressionParseOutcome.PostfixSolveList[t];console.log("".concat(t,": ").concat(r.VirtualSymbolName," = (").concat(r.LeftValue.Token,"::").concat(r.LeftValue.Value,") ").concat(r.Operation.Token," (").concat(r.RightValue.Token,"::").concat(r.RightValue.Value,") "))}this.logFunctionOutcome(e)}else this.log.error("Solver results object did not contain a PostfixSolveList array. Cannot log the solve.");else this.log.error("Solver results object was not an object. Cannot log the solve.")}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136,"big.js":17}],141:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-Postfix",i}return _inherits(t,e),_createClass2(t,[{key:"getPosfixSolveListOperation",value:function(e,t,r,n,i){var o={VirtualSymbolName:e.VirtualSymbolName,Operation:e,LeftValue:t,RightValue:r};Array.isArray(n);return o.LeftValue.VirtualSymbolName?"LeftVirtualSymbolName"in o.Operation?o.LeftValue=this.getTokenContainerObject(o.Operation.LeftVirtualSymbolName,"Token.VirtualSymbol"):o.LeftValue=this.getTokenContainerObject(o.LeftValue.VirtualSymbolName,"Token.VirtualSymbol"):o.LeftValue.VirtualSymbolName=o.VirtualSymbolName,o.RightValue.VirtualSymbolName?"RightVirtualSymbolName"in o.Operation?o.RightValue=this.getTokenContainerObject(o.Operation.RightVirtualSymbolName,"Token.VirtualSymbol"):o.RightValue=this.getTokenContainerObject(o.RightValue.VirtualSymbolName,"Token.VirtualSymbol"):o.RightValue.VirtualSymbolName=o.VirtualSymbolName,o.Operation.Parsed=!0,o}},{key:"buildPostfixedSolveList",value:function(e,t){var r="object"===_typeof(t)?t:{ExpressionParserLog:[]};if(r.PostfixedAssignmentAddress="Result",r.PostfixTokenObjects=[],r.PostfixSolveList=[],e.length<3)return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList was passed a tokenized expression with less than three tokens."),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixTokenObjects;for(var n=-1,i=0;i<e.length;i++)if("="===e[i]&&n<0)n=i;else if("="===e[i])return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found multiple equality assignments in the tokenized expression; equality assignment #".concat(n," at token index ").concat(i,".")),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixTokenObjects;-1==n?(r.ExpressionParserLog.push("WARNING: ExpressionParser.buildPostfixedSolveList found no equality assignment in the tokenized expression; defaulting to Result"),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):n>1?(r.ExpressionParserLog.push("WARNING: ExpressionParser.buildPostfixedSolveList found an equality assignment in the tokenized expression at an unexpected location (token index ".concat(n,"); the expression cannot be parsed.")),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):0===n||(r.PostfixedAssignmentAddress=e[0]);for(var o=n+1;o<e.length;o++)r.PostfixTokenObjects.push(this.getTokenContainerObject(e[o]));var a=0,s=0,u=[];u.push("SolveSet_".concat(s,"_D_").concat(a));for(var c=0;c<r.PostfixTokenObjects.length;c++)"("===r.PostfixTokenObjects[c].Token?(r.PostfixTokenObjects[c].Depth=a,r.PostfixTokenObjects[c].VirtualSymbolName="Pr_".concat(s,"_D_").concat(a),c>0&&"Token.Symbol"===r.PostfixTokenObjects[c-1].Type&&(r.PostfixTokenObjects[c-1].Type="Token.Function"),r.PostfixTokenObjects[c].SolveLayerStack=u[u.length-1],u.push(r.PostfixTokenObjects[c].VirtualSymbolName),s++,a++):")"===r.PostfixTokenObjects[c].Token?(a--,r.PostfixTokenObjects[c].Depth=a,a<0&&(r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found a closing parenthesis at token index ".concat(c," with no corresponding opening parenthesis.")),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),r.PostfixTokenObjects[c].VirtualSymbolName=u.pop(),r.PostfixTokenObjects[c].SolveLayerStack=u[u.length-1]):(r.PostfixTokenObjects[c].Depth=a,r.PostfixTokenObjects[c].SolveLayerStack=u[u.length-1]);for(var l={},f=0,h=0;h<r.PostfixTokenObjects.length;h++)r.PostfixTokenObjects[h].SolveLayerStack in l||(l[r.PostfixTokenObjects[h].SolveLayerStack]=[]),l[r.PostfixTokenObjects[h].SolveLayerStack].push(r.PostfixTokenObjects[h]),r.PostfixTokenObjects[h].Depth>f&&(f=r.PostfixTokenObjects[h].Depth);var p=Object.keys(l),d=0;p.sort((function(e,t){return l[e][0].Depth<l[t][0].Depth?1:l[e][0].Depth>l[t][0].Depth?-1:0})),r.PostfixLayerstackMap={};for(var g=0;g<p.length;g++)for(var y=l[p[g]],v=0;v<=this.ExpressionParser.tokenMaxPrecedence;v++)for(var m=0;m<y.length;m++)if("Token.Operator"===y[m].Type&&y[m].Descriptor.Precedence===v){var b=y[m];if(1===y.length)return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found a single operator in a solve layer expression at token index ".concat(m)),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(0==m&&("+"!=b.Token||"-"!=b.Token))return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found an operator at the beginning of a solve layer expression at token index ".concat(m)),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(m==y.length-1)return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found an operator at the end of a solve layer expression at token index ".concat(m)),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(0==m&&"-"==b.Token)b.VirtualSymbolName="VNLO_".concat(d),r.PostfixLayerstackMap[b.SolveLayerStack]=b.VirtualSymbolName,d++;else if(m>0&&"-"==b.Token&&("Token.Operator"===y[m-1].Type||"("===y[m-1].Token))b.VirtualSymbolName="VNLO_".concat(d),d++;else{if(0==m&&"+"==b.Token)continue;if(m>0&&"+"==b.Token&&("Token.Operator"===y[m-1].Type||"("===y[m-1].Token))continue;if("Token.Operator"===y[m-1].Type||"Token.Operator"===y[m+1].Type)return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found an operator at token index ".concat(m," that is not surrounded by two values.")),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;b.VirtualSymbolName="V_".concat(d),r.PostfixLayerstackMap[b.SolveLayerStack]=b.VirtualSymbolName,d++}}else if("Token.Function"===y[m].Type&&0===v){var S=y[m];S.VirtualSymbolName="VFE_".concat(d),d++,r.PostfixLayerstackMap[S.SolveLayerStack]=S.VirtualSymbolName}for(var P=[],T=0;T<r.PostfixTokenObjects.length;T++){var _=r.PostfixTokenObjects[T];if("Token.Parenthesis"===_.Type){if(_.ParenthesisStack=_.VirtualSymbolName,0==T){_.IsFunction=!1;var k=r.PostfixLayerstackMap[_.VirtualSymbolName];k||(k="VP_".concat(d),d++),_.VirtualSymbolName=k,P.push(_)}else if("("===_.Token){if("Token.Function"===r.PostfixTokenObjects[T-1].Type){_.IsFunction=!0,_.Function=r.PostfixTokenObjects[T-1];var w=r.PostfixLayerstackMap[_.VirtualSymbolName];w||(w="VFP_".concat(d),d++),_.VirtualSymbolName=w}else{_.IsFunction=!1;var x=r.PostfixLayerstackMap[_.VirtualSymbolName];x||(x="VP_".concat(d),d++),_.VirtualSymbolName=x}P.push(_)}if(")"===_.Token){var E=P.pop();E.IsFunction?(_.IsFunction=!0,_.VirtualSymbolName=E.Function.VirtualSymbolName):(_.IsFunction=!1,_.VirtualSymbolName=E.VirtualSymbolName)}}}for(var O=0;O<p.length;O++)for(var A=[],C=!1,j=l[p[O]],N=0;N<j.length;N++){var R=j[N];if("Token.Operator"===R.Type&&(C=R),"Token.Function"===R.Type)R.PreviousOperator=C;else if("Token.Parenthesis"===R.Type&&"("===R.Token&&R.IsFunction)A.push(R),R.Function.PreviousOperator&&(R.PreviousOperator=R.Function.PreviousOperator);else if("Token.Parenthesis"===R.Type&&"("===R.Token)R.PreviousOperator=C,A.push(R);else if("Token.Parenthesis"===R.Type&&")"===R.Token){var L=A.pop();if(N<j.length-1)for(var M=N+1;M<j.length;M++)if("Token.Operator"===j[M].Type){L.NextOperator=j[M];break}L.PreviousOperator&&L.NextOperator&&(L.PreviousOperator.Descriptor.Precedence<=L.NextOperator.Descriptor.Precedence?L.NextOperator.LeftVirtualSymbolName=L.PreviousOperator.VirtualSymbolName:L.PreviousOperator.RightVirtualSymbolName=L.NextOperator.VirtualSymbolName)}else"SolveLayerStack"in R||(A.length>0?R.SolveLayerStack=A[A.length-1].SolveLayerStack:R.SolveLayerStack="Expression_Root")}for(var D=0;D<p.length;D++){for(var I=!1,F=!1,U=l[p[D]],V=U.length-1;V>=0;V--){var B=U[V];"Token.Operator"===B.Type&&(F?B.Descriptor.Precedence>I?(B.RightVirtualSymbolName=F.VirtualSymbolName,F=B):B.Descriptor.Precedence<I&&(F=B):F=B,I=B.Descriptor.Precedence)}for(var H=[],W=!1,$=U.length-1;$>=0;$--){var z=U[$];if("Token.Operator"===z.Type){if(W)if(z.Descriptor.Precedence>I){if(H.length>0)for(var q=H.length-1;q>=0;q--)if(H[q].Descriptor.Precedence>=z.Descriptor.Precedence){H[q].LeftVirtualSymbolName=z.VirtualSymbolName,H.slice(q,1);break}W=z}else z.Descriptor.Precedence<I&&(H.push(W),W=z);else W=z;I=z.Descriptor.Precedence}}}for(var G=0;G<p.length;G++){var J=l[p[G]];if(1!==J.length){for(var Y=0;Y<=this.ExpressionParser.tokenMaxPrecedence;Y++)for(var Q=0;Q<J.length;Q++)if("Token.Operator"===J[Q].Type&&J[Q].Descriptor.Precedence===Y){var K=J[Q];if(0==Q&&"-"==K.Token){var Z=this.getTokenContainerObject("*");Z.VirtualSymbolName=K.VirtualSymbolName,r.PostfixSolveList.push(this.getPosfixSolveListOperation(Z,this.getTokenContainerObject("-1.0"),J[Q+1]))}else if(Q>0&&"-"==K.Token&&("Token.Operator"===J[Q-1].Type||"("===J[Q-1].Token)){var X=this.getTokenContainerObject("*");X.VirtualSymbolName=K.VirtualSymbolName,r.PostfixSolveList.push(this.getPosfixSolveListOperation(X,this.getTokenContainerObject("-1.0"),J[Q+1]))}else{if(0==Q&&"+"==K.Token)continue;if(Q>0&&"+"==K.Token&&("Token.Operator"===J[Q-1].Type||"("===J[Q-1].Token))continue;r.PostfixSolveList.push(this.getPosfixSolveListOperation(K,J[Q-1],J[Q+1],J,Q))}}else if("Token.Function"===J[Q].Type&&0===Y){var ee=J[Q];r.PostfixSolveList.push(this.getPosfixSolveListOperation(ee,J[Q+1],this.getTokenContainerObject("0.0")))}}else{var te=this.getTokenContainerObject("=");if(te.VirtualSymbolName=r.PostfixLayerstackMap[J[0].SolveLayerStack],!te.VirtualSymbolName)for(var re=0;re<r.PostfixTokenObjects.length;re++)if(r.PostfixTokenObjects[re].ParenthesisStack===J[0].SolveLayerStack){te.VirtualSymbolName=r.PostfixTokenObjects[re].VirtualSymbolName;break}r.PostfixSolveList.push(this.getPosfixSolveListOperation(te,J[0],this.getTokenContainerObject("0.0")))}}var ne=this.getTokenContainerObject("=");ne.VirtualSymbolName=r.PostfixedAssignmentAddress;var ie=this.getTokenContainerObject("Result","Token.LastResult"),oe=this.getPosfixSolveListOperation(ne,ie,this.getTokenContainerObject("SolverMarshal","Token.SolverMarshal"));return r.PostfixSolveList.push(oe),r.PostfixSolveList}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136}],142:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-Solver",i}return _inherits(t,e),_createClass2(t,[{key:"solvePostfixedExpression",value:function(e,t,r,n){var i="object"===_typeof(r)?r:{ExpressionParserLog:[]},o="object"===_typeof(n)?n:this.fable.newManyfest(),a="object"===_typeof(t)?t:{},s="fable"in i;if(s||(i.fable=this.fable),!Array.isArray(e))return i.ExpressionParserLog.push("ERROR: ExpressionParser.solvePostfixedExpression was passed a non-array postfixed expression."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1;if(e.length<1)return i.ExpressionParserLog.push("ERROR: ExpressionParser.solvePostfixedExpression was passed an empty postfixed expression."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1;i.VirtualSymbols={};for(var u=0;u<e.length;u++)if("Token.SolverInstruction"!==e[u].Operation.Type){var c={ExpressionStep:e[u],ExpressionStepIndex:u,ResultsObject:i,Manifest:o};if("Token.LastResult"===c.ExpressionStep.LeftValue.Type&&(c.ExpressionStep.LeftValue.Value=i.LastResult),"Token.LastResult"===c.ExpressionStep.RightValue.Type&&(c.ExpressionStep.RightValue.Value=i.LastResult),"Token.VirtualSymbol"===c.ExpressionStep.LeftValue.Type&&(c.ExpressionStep.LeftValue.Value=o.getValueAtAddress(i.VirtualSymbols,c.ExpressionStep.LeftValue.Token)),"Token.VirtualSymbol"===c.ExpressionStep.RightValue.Type&&(c.ExpressionStep.RightValue.Value=o.getValueAtAddress(i.VirtualSymbols,c.ExpressionStep.RightValue.Token)),"Token.Parenthesis"===c.ExpressionStep.LeftValue.Type&&(c.ExpressionStep.LeftValue.Value=o.getValueAtAddress(i.VirtualSymbols,c.ExpressionStep.LeftValue.VirtualSymbolName)),"Token.Parenthesis"===c.ExpressionStep.RightValue.Type&&(c.ExpressionStep.RightValue.Value=o.getValueAtAddress(i.VirtualSymbols,c.ExpressionStep.RightValue.VirtualSymbolName)),"Token.Constant"!==c.ExpressionStep.LeftValue.Type||"Value"in c.ExpressionStep.LeftValue||(c.ExpressionStep.LeftValue.Value=c.ExpressionStep.LeftValue.Token),"Token.Constant"!==c.ExpressionStep.RightValue.Type||"Value"in c.ExpressionStep.RightValue||(c.ExpressionStep.RightValue.Value=c.ExpressionStep.RightValue.Token),c.ExpressionStep.Operation.Type="Operator"){var l=!1;c.ExpressionStep.Operation.Token in this.ExpressionParser.tokenMap?l="ResultsObject.".concat(c.ExpressionStep.Operation.Descriptor.Function):c.ExpressionStep.Operation.Token.toLowerCase()in this.ExpressionParser.functionMap&&(l="ResultsObject.".concat(this.ExpressionParser.functionMap[c.ExpressionStep.Operation.Token.toLowerCase()].Address));try{o.setValueAtAddress(i.VirtualSymbols,c.ExpressionStep.VirtualSymbolName,o.getValueAtAddress(c,"".concat(l,"(ExpressionStep.LeftValue.Value,ExpressionStep.RightValue.Value)"))),i.LastResult=o.getValueAtAddress(i.VirtualSymbols,c.ExpressionStep.VirtualSymbolName)}catch(e){return i.ExpressionParserLog.push("ERROR: ExpressionParser.solvePostfixedExpression failed to solve step ".concat(u," with function ").concat(c.ExpressionStep.Operation.Token,": ").concat(e)),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1}i.SolverFinalVirtualSymbol=c.ExpressionStep.VirtualSymbolName}}for(var f=o.getValueAtAddress(i,"VirtualSymbols.".concat(i.SolverFinalVirtualSymbol)),h=0;h<e.length;h++)"Token.SolverMarshal"===e[h].RightValue.Type&&(o.setValueAtAddress(i.VirtualSymbols,e[h].VirtualSymbolName,f),o.setValueByHash(a,e[h].VirtualSymbolName,f));return i.RawResult=f,s||delete i.fable,f.toString()}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136}],143:[function(e,t,r){t.exports={"=":{Name:"Equals",Token:"=",Function:"fable.Math.assignValue",Precedence:0,Type:"Assignment"},"(":{Name:"Left Parenthesis",Token:"(",Precedence:0,Type:"Parenthesis"},")":{Name:"Right Parenthesis",Token:")",Precedence:0,Type:"Parenthesis"},"*":{Name:"Multiply",Token:"*",Function:"fable.Math.multiplyPrecise",Precedence:3,Type:"Operator"},"/":{Name:"Divide",Token:"/",Function:"fable.Math.dividePrecise",Precedence:3,Type:"Operator"},"^":{Name:"Exponent",Token:"^",Function:"fable.Math.powerPrecise",Precedence:1,Type:"Operator"},"%":{Name:"Modulus",Token:"%",Function:"fable.Math.modPrecise",Precedence:3,Type:"Operator"},"+":{Name:"Add",Token:"+",Function:"fable.Math.addPrecise",Precedence:4,Type:"Operator"},"-":{Name:"Subtract",Token:"-",Function:"fable.Math.subtractPrecise",Precedence:4,Type:"Operator"}}},{}],144:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-ValueMarshal",i}return _inherits(t,e),_createClass2(t,[{key:"substituteValuesInTokenizedObjects",value:function(e,t,r,n){var i="object"===_typeof(r)?r:{ExpressionParserLog:[]};if(!Array.isArray(e))return i.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects was passed a non-array tokenized object list."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),e;if("object"!==_typeof(t))return i.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects either was passed no data source, or was passed a non-object data source."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),e;for(var o=t,a="object"==_typeof(n)?n:this.fable.newManyfest(n),s=0;s<e.length;s++)if("object"===_typeof(e[s])){var u=e[s];if("Token.Symbol"===e[s].Type&&!u.Resolved){var c=a.getValueByHash(o,u.Token);if(!c){i.ExpressionParserLog.push("WARNING: ExpressionParser.substituteValuesInTokenizedObjects found no value for the symbol hash or address ".concat(u.Token," at index ").concat(s)),this.log.warn(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);continue}i.ExpressionParserLog.push("INFO: ExpressionParser.substituteValuesInTokenizedObjects found a value [".concat(c,"] for the state address ").concat(u.Token," at index ").concat(s)),this.LogNoisiness>1&&this.log.info(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);try{var l=new this.fable.Utility.bigNumber(c);u.Resolved=!0,u.Value=l.toString()}catch(e){Array.isArray(c)||"object"===_typeof(c)?(u.Resolved=!0,u.Value=c):(i.ExpressionParserLog.push("INFO: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric, non-set value for the state address ".concat(u.Token," at index ").concat(s)),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),u.Resolved=!1)}}if("Token.StateAddress"===e[s].Type&&!u.Resolved){var f=a.getValueAtAddress(o,u.Token);if(!f){i.ExpressionParserLog.push("WARNING: ExpressionParser.substituteValuesInTokenizedObjects found no value for the state address ".concat(u.Token," at index ").concat(s)),this.log.warn(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);continue}this.log.info(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);try{var h=new this.fable.Utility.bigNumber(f);u.Resolved=!0,u.Value=h.toString()}catch(e){i.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric value for the state address ".concat(u.Token," at index ").concat(s)),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),u.Resolved=!1}}if("Token.Constant"===e[s].Type&&!u.Resolved){i.ExpressionParserLog.push("INFO: ExpressionParser.substituteValuesInTokenizedObjects found a value [".concat(u.Token,"] for the constant ").concat(u.Token," at index ").concat(s)),this.LogNoisiness>1&&this.log.info(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);try{var p=new this.fable.Utility.bigNumber(u.Token);u.Resolved=!0,u.Value=p.toString()}catch(e){i.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric value for the state address ".concat(u.Token," at index ").concat(s)),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),u.Resolved=!1}}}else i.ExpressionParserLog.push("WARNING: ExpressionParser.substituteValuesInTokenizedObjects found a non-object tokenized object at index ".concat(s)),this.log.warn(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);return e}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136}],145:[function(e,t,r){(function(r){(function(){var n=e("fable-serviceproviderbase"),i=e("fs"),o=e("path"),a=e("readline"),s=function(e){function t(e,n,s){var u;return _classCallCheck2(this,t),(u=_callSuper(this,t,[e,n,s])).serviceType="FilePersistence","Mode"in u.options||(u.options.Mode=parseInt("0777",8)&~r.umask()),u.libFS=i,u.libPath=o,u.libReadline=a,u}return _inherits(t,e),_createClass2(t,[{key:"joinPath",value:function(){return o.resolve.apply(o,arguments)}},{key:"existsSync",value:function(e){return i.existsSync(e)}},{key:"exists",value:function(e,t){return t(null,this.existsSync(e))}},{key:"appendFileSync",value:function(e,t,r){var n=void 0===r?"utf8":r;return i.appendFileSync(e,t,n)}},{key:"deleteFileSync",value:function(e){return i.unlinkSync(e)}},{key:"deleteFolderSync",value:function(e){return i.rmdirSync(e)}},{key:"readFileSync",value:function(e,t){var r=void 0===t?"utf8":t;return i.readFileSync(e,r)}},{key:"readFile",value:function(e,t,r){var n=void 0===t?"utf8":t;return i.readFile(e,n,r)}},{key:"writeFileSync",value:function(e,t,r){var n=void 0===r?"utf8":r;return i.writeFileSync(e,t,n)}},{key:"writeFileSyncFromObject",value:function(e,t){return this.writeFileSync(e,JSON.stringify(t,null,4))}},{key:"writeFileSyncFromArray",value:function(e,t){if(!Array.isArray(t))return this.log.error("File Persistence Service attempted to write ".concat(e," from array but the expected array was not an array (it was a ").concat(_typeof(t),").")),Error("Attempted to write ${pFileName} from array but the expected array was not an array (it was a ${typeof(pFileArray)}).");for(var r=0;r<t.length;r++)return this.appendFileSync(e,"".concat(t[r],"\n"))}},{key:"writeFile",value:function(e,t,r,n){var o=void 0===r?"utf8":r;return i.writeFile(e,t,o,n)}},{key:"lineReaderFactory",value:function(e,t,r,n){var o={};return"string"==typeof e&&(o.filePath=e,o.fileStream=i.createReadStream(o.filePath),o.reader=a.createInterface({input:o.fileStream,crlfDelay:1/0}),"function"==typeof n&&o.reader.on("error",n),o.reader.on("line","function"==typeof t?t:function(){}),"function"==typeof r&&o.reader.on("close",r),o)}},{key:"makeFolderRecursive",value:function(e,t){var r=this,n=e;if("string"==typeof e)n={Path:e};else if("object"!==_typeof(e))return t(new Error("Parameters object or string not properly passed to recursive folder create.")),!1;return"string"!=typeof n.Path?(t(new Error("Parameters object needs a path to run the folder create operation.")),!1):("Mode"in n||(n.Mode=this.options.Mode),void 0===n.CurrentPathIndex?(n.ActualPath=o.normalize(n.Path),n.ActualPathParts=n.ActualPath.split(o.sep),n.CurrentPathIndex=0,n.CurrentPath=""):(n.CurrentPath==o.sep?n.CurrentPath=n.CurrentPath+n.ActualPathParts[n.CurrentPathIndex]:n.CurrentPath=n.CurrentPath+o.sep+n.ActualPathParts[n.CurrentPathIndex],n.CurrentPathIndex++),n.CurrentPathIndex>=n.ActualPathParts.length?t(null):void i.open(n.CurrentPath+o.sep+n.ActualPathParts[n.CurrentPathIndex],"r",(function(e,a){if(a&&i.closeSync(a),!e||"ENOENT"!=e.code)return r.makeFolderRecursive(n,t);i.mkdir(n.CurrentPath+o.sep+n.ActualPathParts[n.CurrentPathIndex],n.Mode,(function(e){return e?"EEXIST"==e.code?r.makeFolderRecursive(n,t):(console.log(e.code),t(e)):r.makeFolderRecursive(n,t)}))})))}}]),t}(n);t.exports=s}).call(this)}).call(this,e("_process"))},{_process:87,"fable-serviceproviderbase":51,fs:19,path:83,readline:19}],146:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="Math",i.pi="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679",i}return _inherits(t,e),_createClass2(t,[{key:"roundDown",get:function(){return this.fable.Utility.bigNumber.roundDown}},{key:"roundHalfUp",get:function(){return this.fable.Utility.bigNumber.roundHalfUp}},{key:"roundHalfEven",get:function(){return this.fable.Utility.bigNumber.roundHalfEven}},{key:"roundUp",get:function(){return this.fable.Utility.bigNumber.roundUp}},{key:"parsePrecise",value:function(e,t){var r;try{r=new this.fable.Utility.bigNumber(e)}catch(n){this.log.warn("Error parsing number (type ".concat(_typeof(e),"): ").concat(n)),r=void 0===t?"0.0":t}return r.toString()}},{key:"assignValue",value:function(e){return e}},{key:"percentagePrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;if(0==n)return"0";var i=new this.fable.Utility.bigNumber(r).div(n);return(i=i.times(100)).toString()}},{key:"roundPrecise",value:function(e,t,r){var n=isNaN(e)?0:e,i=isNaN(t)?0:t,o=void 0===r?this.roundHalfUp:r;return new this.fable.Utility.bigNumber(n).round(i,o).toString()}},{key:"toFixedPrecise",value:function(e,t,r){var n=isNaN(e)?0:e,i=isNaN(t)?0:t,o=void 0===r?this.roundHalfUp:r;return new this.fable.Utility.bigNumber(n).toFixed(i,o).toString()}},{key:"addPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).plus(n).toString()}},{key:"subtractPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).minus(n).toString()}},{key:"powerPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:parseInt(t);return new this.fable.Utility.bigNumber(r).pow(n).toString()}},{key:"multiplyPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).times(n).toString()}},{key:"dividePrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).div(n).toString()}},{key:"modPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).mod(n).toString()}},{key:"sqrtPrecise",value:function(e){var t=isNaN(e)?0:e;return new this.fable.Utility.bigNumber(t).sqrt().toString()}},{key:"absPrecise",value:function(e){var t=isNaN(e)?0:e;return new this.fable.Utility.bigNumber(t).abs().toString()}},{key:"comparePrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).cmp(n)}},{key:"gtPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).gt(n)}},{key:"gtePrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).gte(n)}},{key:"ltPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).lt(n)}},{key:"ltePrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).lt(n)}},{key:"radPrecise",value:function(e){var t=isNaN(e)?0:e;return new this.fable.Utility.bigNumber(t).times(Math.PI).div(180).toString()}},{key:"piPrecise",value:function(e){return void 0===e?this.pi:this.roundPrecise(this.pi,e)}},{key:"sin",value:function(e){var t=isNaN(e)?0:e;return Math.sin(t)}},{key:"cos",value:function(e){var t=isNaN(e)?0:e;return Math.cos(t)}},{key:"tan",value:function(e){var t=isNaN(e)?0:e;return Math.tan(t)}},{key:"countSetElements",value:function(e){return Array.isArray(e)?e.length:"object"===_typeof(e)?Object.keys(e).length:e?1:0}},{key:"sortSetPrecise",value:function(e){var t=this,r=[];if(Array.isArray(e))for(var n=0;n<e.length;n++)r.push(this.parsePrecise(e[n],NaN));else if("object"===_typeof(e))for(var i=Object.keys(e),o=0;o<i.length;o++)r.push(this.parsePrecise(e[i[o]],NaN));return r.sort((function(e,r){return t.comparePrecise(e,r)})),r}},{key:"bucketSetPrecise",value:function(e,t){var r={},n=this.parsePrecise(t,NaN);if(Array.isArray(e))for(var i=0;i<e.length;i++){var o=this.parsePrecise(e[i],NaN).toString();isNaN(n)||(o=this.dividePrecise(e[i],n)),o in r||(r[o]=0),r[o]=r[o]+1}else if("object"===_typeof(e))for(var a=Object.keys(e),s=0;s<a.length;s++){var u=this.parsePrecise(e[a[s]],NaN).toString();isNaN(n)||(u=this.dividePrecise(e[s],n)),u in r||(r[u]=0),r[u]=r[u]+1}return r}},{key:"histogramPrecise",value:function(e){return this.bucketSetPrecise(e)}},{key:"sortHistogramPrecise",value:function(e){var t={},r=Object.keys(e);r.sort((function(t,r){return e[t]-e[r]}));for(var n=0;n<r.length;n++)t[r[n]]=e[r[n]];return t}},{key:"maxPrecise",value:function(e){var t=NaN;if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t){var n=this.parsePrecise(e[r],NaN);this.gtPrecise(n,t)&&(t=n)}else t=this.parsePrecise(e[r],NaN);else if("object"===_typeof(e))for(var i=Object.keys(e),o=0;o<i.length;o++)if(t){var a=this.parsePrecise(e[i[o]],NaN);this.gtPrecise(a,t)&&(t=a)}else t=this.parsePrecise(e[i[o]],NaN);return t}},{key:"minPrecise",value:function(e){var t=NaN;if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t){var n=this.parsePrecise(e[r],NaN);!isNaN(n)&&this.ltPrecise(n,t)&&(t=n)}else t=this.parsePrecise(e[r],NaN);else if("object"===_typeof(e))for(var i=Object.keys(e),o=0;o<i.length;o++)if(t){var a=this.parsePrecise(e[i[o]],NaN);!isNaN(a)&&this.ltPrecise(a,t)&&(t=a)}else t=this.parsePrecise(e[i[o]],NaN);return t}},{key:"sumPrecise",value:function(e){var t="0.0";if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=this.parsePrecise(e[r],NaN);isNaN(n)||(t=this.addPrecise(t,n))}else if("object"===_typeof(e))for(var i=Object.keys(e),o=0;o<i.length;o++){var a=this.parsePrecise(e[i[o]],NaN);isNaN(a)||(t=this.addPrecise(t,a))}return t}},{key:"meanPrecise",value:function(e){var t=this.sumPrecise(e),r=this.countSetElements(e);return 0==r?"0.0":this.dividePrecise(t,r)}},{key:"averagePrecise",value:function(e){return this.meanPrecise(e)}},{key:"medianPrecise",value:function(e){var t=this.countSetElements(e);if(0==t)return"0.0";var r=this.sortSetPrecise(e),n=Math.floor(t/2);if(t%2==1)return r[n];var i=r[n-1],o=r[n];return this.dividePrecise(this.addPrecise(i,o),2)}},{key:"modePrecise",value:function(e){for(var t=this.bucketSetPrecise(e),r=0,n=Object.keys(t),i=[],o=0;o<n.length;o++)t[n[o]]>r?(r=t[n[o]],i=[n[o]]):t[n[o]]==r&&i.push(n[o]);return i}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],147:[function(e,t,r){var n=e("fable-serviceproviderbase"),i=e("./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js"),o=e("./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js"),a=function(e){function t(e,r,n){var a;return _classCallCheck2(this,t),(a=_callSuper(this,t,[e,r,n])).serviceType="MetaTemplate",a.WordTree=new i,a.StringParser=new o(a.fable),a.ParseTree=a.WordTree.ParseTree,a}return _inherits(t,e),_createClass2(t,[{key:"addPattern",value:function(e,t,r,n){return this.WordTree.addPattern(e,t,r,n)}},{key:"addPatternBoth",value:function(e,t,r,n,i){return this.WordTree.addPatternBoth(e,t,r,n,i)}},{key:"parseString",value:function(e,t,r,n){return this.LogNoisiness>4&&this.fable.log.trace("Metatemplate parsing template string [".concat(e,"] where the callback is a ").concat(_typeof(r)),{TemplateData:t}),this.StringParser.parseString(e,this.ParseTree,t,r,n)}}]),t}(n);t.exports=a},{"./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js":148,"./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js":149,"fable-serviceproviderbase":51}],148:[function(e,t,r){var n=function(){function e(t){_classCallCheck2(this,e),this.fable=t}return _createClass2(e,[{key:"newParserState",value:function(e){return{ParseTree:e,Asynchronous:!1,Output:"",OutputBuffer:"",Pattern:{},PatternMatch:!1,PatternMatchEnd:!1}}},{key:"appendOutputBuffer",value:function(e,t){t.OutputBuffer+=e}},{key:"flushOutputBuffer",value:function(e){e.Output+=e.OutputBuffer,e.OutputBuffer=""}},{key:"resetOutputBuffer",value:function(e){return this.flushOutputBuffer(e),e.Pattern=!1,e.PatternStartNode=!1,e.StartPatternMatchComplete=!1,e.EndPatternMatchBegan=!1,e.PatternMatch=!1,!0}},{key:"parseCharacter",value:function(e,t,r,n){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&e in t.Pattern)t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan){if(e in t.Pattern.PatternEnd){t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t);var i="ParserContext"in t.Pattern&&t.Pattern.ParserContext;return t.OutputBuffer=i?t.Pattern.Parse.call(i,t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n):t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n),this.resetOutputBuffer(t)}e in t.PatternStartNode.PatternEnd?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t))}else if("PatternEnd"in t.Pattern){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),e in t.Pattern.PatternEnd&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],"Parse"in t.Pattern)){var o="ParserContext"in t.Pattern&&t.Pattern.ParserContext;return t.OutputBuffer=o?t.Pattern.Parse.call(o,t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n):t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n),this.resetOutputBuffer(t)}}else this.resetOutputBuffer(t);if(!t.PatternMatch){if(e in t.ParseTree)return this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0,!0;this.appendOutputBuffer(e,t)}return!1}},{key:"executePatternAsync",value:function(e,t,r,n){var i=this;if(e.Pattern.isAsync){var o="ParserContext"in e.Pattern&&e.Pattern.ParserContext;return o?e.Pattern.ParseAsync.call(o,e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,(function(t,n){return t&&i.fable.log.info("Precedent ERROR: Async template error happened parsing ".concat(e.Pattern.PatternStart," ... ").concat(e.Pattern.PatternEnd,": ").concat(t)),e.OutputBuffer=n,i.resetOutputBuffer(e),r()}),n):e.Pattern.ParseAsync(e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,(function(t,n){return t&&i.fable.log.info("Precedent ERROR: Async template error happened parsing ".concat(e.Pattern.PatternStart," ... ").concat(e.Pattern.PatternEnd,": ").concat(t)),e.OutputBuffer=n,i.resetOutputBuffer(e),r()}),n)}var a="ParserContext"in e.Pattern&&e.Pattern.ParserContext;return e.OutputBuffer=a?e.Pattern.Parse.call(a,e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,n):e.Pattern.Parse(e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,n),this.resetOutputBuffer(e),r()}},{key:"parseCharacterAsync",value:function(e,t,r,n,i){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&e in t.Pattern)t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan)if(e in t.Pattern.PatternEnd){if(t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t),"Parse"in t.Pattern)return this.executePatternAsync(t,r,n,i)}else e in t.PatternStartNode.PatternEnd?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t));else if("PatternEnd"in t.Pattern){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),e in t.Pattern.PatternEnd&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],"Parse"in t.Pattern))return this.executePatternAsync(t,r,n,i)}else this.resetOutputBuffer(t);else e in t.ParseTree?(this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0):this.appendOutputBuffer(e,t);return n()}},{key:"parseString",value:function(e,t,r,n,i){var o=this,a=Array.isArray(i)?i:[],s=Array.from(a);if(s.push(r),"function"!=typeof n){for(var u=this.newParserState(t),c=0;c<e.length;c++)this.parseCharacter(e[c],u,r,s);return this.flushOutputBuffer(u),u.Output}var l=this.newParserState(t);l.Asynchronous=!0;for(var f=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate"),h=function(t){f.anticipate((function(n){o.parseCharacterAsync(e[t],l,r,n,s)}))},p=0;p<e.length;p++)h(p);f.wait((function(e){return o.flushOutputBuffer(l),n(e,l.Output)}))}}]),e}();t.exports=n},{}],149:[function(e,t,r){var n=function(){function e(){_classCallCheck2(this,e),this.ParseTree={}}return _createClass2(e,[{key:"addChild",value:function(e,t){return t in e||(e[t]={}),e[t]}},{key:"addEndChild",value:function(e,t){return"PatternEnd"in e||(e.PatternEnd={}),e.PatternEnd[t]={},e.PatternEnd[t]}},{key:"addPatternBoth",value:function(e,t,r,n,i){if(e.length<1)return!1;if("string"==typeof t&&t.length<1)return!1;for(var o=this.ParseTree,a=0;a<e.length;a++)o=this.addChild(o,e[a],a);"PatternEnd"in o||(o.PatternEnd={});for(var s="string"==typeof t?t:e,u=0;u<s.length;u++)o=this.addEndChild(o,s[u],u);return o.PatternStartString=e,o.PatternEndString=s,o.Parse="function"==typeof r?r:"string"==typeof r?function(e,t){return r}:function(e,t){return e},o.ParseAsync="function"==typeof n?n:"string"==typeof n?function(e,t,r){return r(null,n)}:function(e,t,r){return r(null,o.Parse(e,t))},i&&(o.ParserContext=i),o.isAsync=!0,o}},{key:"addPattern",value:function(e,t,r,n){return this.addPatternBoth(e,t,r,null,n)}}]),e}();t.exports=n},{}],150:[function(e,t,r){t.exports={Metadata:{UUID:!1,Hash:!1,Name:"",Summary:"",Version:0},Status:{Completed:!1,StepCount:0},Steps:[],Errors:[],Log:[]}},{}],151:[function(e,t,r){e("big.js").PE;var n=e("fable-serviceproviderbase"),i=JSON.stringify(e("./Fable-Service-Operation-DefaultSettings.js")),o=function(e){function t(e,r,n){var o;return _classCallCheck2(this,t),(o=_callSuper(this,t,[e,r,n])).timeStamps={},o.serviceType="PhasedOperation",o.state=JSON.parse(i),o.stepMap={},o.stepFunctions={},o.state.Metadata.Hash=o.Hash,o.state.Metadata.UUID=o.UUID,o.state.Metadata.Name="string"==typeof o.options.Name?o.options.Name:"Unnamed Operation ".concat(o.state.Metadata.UUID),o.name=o.state.Metadata.Name,o.progressTrackerSet=o.fable.instantiateServiceProviderWithoutRegistration("ProgressTrackerSet"),o.state.OverallProgressTracker=o.progressTrackerSet.createProgressTracker("Overall-".concat(o.state.Metadata.UUID)),o.log=_assertThisInitialized(o),o}return _inherits(t,e),_createClass2(t,[{key:"execute",value:function(e){var t=this;if(this.state.OverallProgressTracker.StartTimeStamp>0)return e(new Error("Operation [".concat(this.state.Metadata.UUID,"] ").concat(this.state.Metadata.Name," has already been executed!")));var r=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");this.progressTrackerSet.setProgressTrackerTotalOperations(this.state.OverallProgressTracker.Hash,this.state.Status.StepCount),this.progressTrackerSet.startProgressTracker(this.state.OverallProgressTracker.Hash),this.info("Operation [".concat(this.state.Metadata.UUID,"] ").concat(this.state.Metadata.Name," starting..."));for(var n=function(e){r.anticipate(function(t){return this.fable.log.info("Step #".concat(e," [").concat(this.state.Steps[e].GUIDStep,"] ").concat(this.state.Steps[e].Name," starting...")),this.progressTrackerSet.startProgressTracker(this.state.Steps[e].ProgressTracker.Hash),t()}.bind(t)),r.anticipate(t.stepFunctions[t.state.Steps[e].GUIDStep].bind({log:t,fable:t.fable,options:t.state.Steps[e].Metadata,metadata:t.state.Steps[e].Metadata,ProgressTracker:t.progressTrackerSet.getProgressTracker(t.state.Steps[e].ProgressTracker.Hash),logProgressTrackerStatus:function(){return this.log.info("Step #".concat(e," [").concat(this.state.Steps[e].GUIDStep,"]: ").concat(this.progressTrackerSet.getProgressTrackerStatusString(this.state.Steps[e].ProgressTracker.Hash)))}.bind(t),OperationState:t.state,StepState:t.state.Steps[e]})),r.anticipate(function(t){this.progressTrackerSet.endProgressTracker(this.state.Steps[e].ProgressTracker.Hash);var r=this.progressTrackerSet.getProgressTrackerStatusString(this.state.Steps[e].ProgressTracker.Hash);this.fable.log.info("Step #".concat(e," [").concat(this.state.Steps[e].GUIDStep,"] ").concat(this.state.Steps[e].Name," complete.")),this.fable.log.info("Step #".concat(e," [").concat(this.state.Steps[e].GUIDStep,"] ").concat(this.state.Steps[e].Name," ").concat(r,".")),this.progressTrackerSet.incrementProgressTracker(this.state.OverallProgressTracker.Hash,1);var n=this.progressTrackerSet.getProgressTrackerStatusString(this.state.OverallProgressTracker.Hash);return this.fable.log.info("Operation [".concat(this.state.Metadata.UUID,"] ").concat(n,".")),t()}.bind(t))},i=0;i<this.state.Steps.length;i++)n(i);r.wait((function(r){if(r)return t.fable.log.error("Operation [".concat(t.state.Metadata.UUID,"] ").concat(t.state.Metadata.Name," had an error: ").concat(r),r),e(r);t.info("Operation [".concat(t.state.Metadata.UUID,"] ").concat(t.state.Metadata.Name," complete."));var n=t.progressTrackerSet.getProgressTrackerStatusString(t.state.OverallProgressTracker.Hash);return t.progressTrackerSet.endProgressTracker(t.state.OverallProgressTracker.Hash),t.fable.log.info("Operation [".concat(t.state.Metadata.UUID,"] ").concat(n,".")),e()}))}},{key:"addStep",value:function(e,t,r,n,i){var o={};return o.GUIDStep=void 0!==i?i:"STEP-".concat(this.state.Steps.length,"-").concat(this.fable.DataGeneration.randomNumericString()),o.Name=void 0!==r?r:"Step [".concat(o.GUIDStep,"]"),o.Description=void 0!==n?n:"Step execution of ".concat(o.Name,"."),o.ProgressTracker=this.progressTrackerSet.createProgressTracker(o.GUIDStep),o.Metadata="object"===_typeof(t)?t:{},this.state.Steps.push(o),this.stepMap[o.GUIDStep]=o,this.stepFunctions[o.GUIDStep]="function"==typeof e?e:function(e){return e()},this.state.Status.StepCount++,o}},{key:"setStepTotalOperations",value:function(e,t){if(!(e in this.stepMap))return new Error("Step [".concat(e,"] does not exist in operation [").concat(this.state.Metadata.UUID,"] ").concat(this.state.Metadata.Name," when attempting to set total operations to ").concat(t,"."));this.progressTrackerSet.setProgressTrackerTotalOperations(this.stepMap[e].ProgressTracker.Hash,t)}},{key:"writeOperationLog",value:function(e,t,r){this.state.Log.push("[".concat((new Date).toUTCString(),"]-[").concat(e,"]: ").concat(t)),"object"==_typeof(r)&&this.state.Log.push(JSON.stringify(r))}},{key:"writeOperationErrors",value:function(e,t){this.state.Errors.push("".concat(e)),"object"==_typeof(t)&&this.state.Errors.push(JSON.stringify(t))}},{key:"trace",value:function(e,t){this.writeOperationLog("TRACE",e,t),this.fable.log.trace(e,t)}},{key:"debug",value:function(e,t){this.writeOperationLog("DEBUG",e,t),this.fable.log.debug(e,t)}},{key:"info",value:function(e,t){this.writeOperationLog("INFO",e,t),this.fable.log.info(e,t)}},{key:"warn",value:function(e,t){this.writeOperationLog("WARN",e,t),this.fable.log.warn(e,t)}},{key:"error",value:function(e,t){this.writeOperationLog("ERROR",e,t),this.writeOperationErrors(e,t),this.fable.log.error(e,t)}},{key:"fatal",value:function(e,t){this.writeOperationLog("FATAL",e,t),this.writeOperationErrors(e,t),this.fable.log.fatal(e,t)}}]),t}(n);t.exports=o},{"./Fable-Service-Operation-DefaultSettings.js":150,"big.js":17,"fable-serviceproviderbase":51}],152:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ProgressTime",i.timeStamps={},i}return _inherits(t,e),_createClass2(t,[{key:"formatTimeDuration",value:function(e){var t="number"==typeof e?e:0;if(e<0)return"unknown";var r="";return t>36e5&&(r+=Math.floor(t/36e5)+"h ",t%=36e5),t>6e4&&(r+=Math.floor(t/6e4)+"m ",t%=6e4),t>1e3&&(r+=Math.floor(t/1e3)+"s ",t%=1e3),r+=Math.round(t)+"ms"}},{key:"createTimeStamp",value:function(e){var t="string"==typeof e?e:"Default";return this.timeStamps[t]=+new Date,this.timeStamps[t]}},{key:"getTimeStampValue",value:function(e){var t="string"==typeof e?e:"Default";return t in this.timeStamps?this.timeStamps[t]:-1}},{key:"updateTimeStampValue",value:function(e,t){var r="string"==typeof e?e:"Default",n=!1;return n="string"==typeof t?tmpReference in this.timeStamps&&this.timeStamps[tmpReference]:"number"==typeof t?t:+new Date,r in this.timeStamps&&n?(this.timeStamps[r]=n,this.timeStamps[r]):-1}},{key:"removeTimeStamp",value:function(e){var t="string"==typeof e?e:"Default";return t in this.timeStamps&&(delete this.timeStamps[t],!0)}},{key:"getTimeStampDelta",value:function(e,t){var r="string"==typeof e?e:"Default",n=!1;return n="string"==typeof t?tmpReference in this.timeStamps&&this.timeStamps[tmpReference]:"number"==typeof t?t:+new Date,r in this.timeStamps&&n?n-this.timeStamps[r]:-1}},{key:"getDurationBetweenTimestamps",value:function(e,t){var r="string"==typeof e?e:"Default",n="string"==typeof t?t:"Default";return r in this.timeStamps&&n in this.timeStamps?this.timeStamps[n]-this.timeStamps[r]:-1}},{key:"getTimeStampDeltaMessage",value:function(e,t,r){var n="string"==typeof e?e:"Default",i=void 0!==t?t:"Elapsed for ".concat(n,": "),o=this.getTimeStampDelta(n,r);return"".concat(i," ").concat(this.formatTimeDuration(o))}},{key:"logTimeStampDelta",value:function(e,t,r){this.fable.log.info(this.getTimeStampDeltaMessage(e,t,r))}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],153:[function(e,t,r){var n=function(){function e(t,r){_classCallCheck2(this,e),this.progressTrackerSet=t,this.progressTrackerHash=r,this.data=this.progressTrackerSet.getProgressTrackerData(this.progressTrackerHash)}return _createClass2(e,[{key:"updateProgressTracker",value:function(e){return this.progressTrackerSet.updateProgressTracker(this.progressTrackerHash,e)}},{key:"incrementProgressTracker",value:function(e){return this.progressTrackerSet.incrementProgressTracker(this.progressTrackerHash,e)}},{key:"setProgressTrackerTotalOperations",value:function(e){return this.progressTrackerSet.setProgressTrackerTotalOperations(this.progressTrackerHash,e)}},{key:"getProgressTrackerStatusString",value:function(){return this.progressTrackerSet.getProgressTrackerStatusString(this.progressTrackerHash)}}]),e}();t.exports=n},{}],154:[function(e,t,r){var n=e("fable-serviceproviderbase"),i=e("./Fable-Service-ProgressTracker/ProgressTracker.js"),o=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ProgressTrackerSet",i.progressTrackers={},i.progressTimes=i.fable.instantiateServiceProviderWithoutRegistration("ProgressTime"),i.progressTimes.createTimeStamp("CurrentTime"),i}return _inherits(t,e),_createClass2(t,[{key:"getProgressTracker",value:function(e){var t="string"==typeof e?e:"Default";return t in this.progressTrackers||(this.fable.log.warn("ProgressTracker ".concat(t," does not exist! Creating a new tracker...")),this.createProgressTracker(t,100)),new i(this,e)}},{key:"getProgressTrackerData",value:function(e){var t="string"==typeof e?e:"Default";return t in this.progressTrackers||(this.fable.log.warn("ProgressTracker ".concat(t," does not exist! Creating a new tracker...")),this.createProgressTracker(t,100)),this.progressTrackers[t]}},{key:"createProgressTracker",value:function(e,t){var r="string"==typeof e?e:"Default",n="number"==typeof t?t:100,i={Hash:r,StartTimeHash:"".concat(r,"-Start"),StartTimeStamp:-1,CurrentTimeStamp:-1,EndTimeHash:"".concat(r,"-End"),EndTimeStamp:-1,PercentComplete:-1,AllowTruePercentComplete:!1,ElapsedTime:-1,AverageOperationTime:-1,EstimatedCompletionTime:-1,TotalCount:n,CurrentCount:-1};return r in this.progressTrackers&&(this.fable.log.warn("ProgressTracker ".concat(r," already exists! Overwriting with a new tracker...")),this.progressTimes.removeTimeStamp(i.StartTimeHash),this.progressTimes.removeTimeStamp(i.EndTimeHash)),this.progressTrackers[r]=i,i}},{key:"setProgressTrackerTotalOperations",value:function(e,t){var r="string"==typeof e?e:"Default",n="number"==typeof t?t:100;return r in this.progressTrackers||(this.fable.log.warn("Attempted to set the total operations of ProgressTracker ".concat(r," but it does not exist! Creating a new tracker...")),this.createProgressTracker(r,n)),this.progressTrackers[r].TotalCount=n,this.progressTrackers[r]}},{key:"startProgressTracker",value:function(e){var t="string"==typeof e?e:"Default";t in this.progressTrackers||this.createProgressTracker(t,100);var r=this.progressTrackers[t];return this.progressTimes.createTimeStamp(this.progressTrackers[t].StartTimeHash),r.StartTimeStamp=this.progressTimes.getTimeStampValue(this.progressTrackers[t].StartTimeHash),r.CurrentCount<0&&(r.CurrentCount=0),this.solveProgressTrackerStatus(t)}},{key:"endProgressTracker",value:function(e){var t="string"==typeof e?e:"Default";if(!(t in this.progressTrackers))return this.fable.log.error("Attempted to end ProgressTracker ".concat(t," that does not exist!")),!1;var r=this.progressTrackers[t];return this.progressTimes.createTimeStamp(this.progressTrackers[t].EndTimeHash),r.EndTimeStamp=this.progressTimes.getTimeStampValue(this.progressTrackers[t].EndTimeHash),this.solveProgressTrackerStatus(t)}},{key:"solveProgressTrackerStatus",value:function(e){var t="string"==typeof e?e:"Default";if(!(t in this.progressTrackers))return this.fable.log.error("Attempted to solve ProgressTracker ".concat(t," that does not exist!")),!1;var r=this.progressTrackers[t];return(r.TotalCount<1||isNaN(r.TotalCount))&&(this.fable.log.error("ProgressTracker ".concat(r.Hash," has an invalid total count of operations (").concat(r.TotalCount,"! Setting it to the default of 100...")),r.TotalCount=100),r.CurrentCount<1?r.PercentComplete=0:r.PercentComplete=r.CurrentCount/r.TotalCount*100,!r.AllowTruePercentComplete&&r.PercentComplete>100&&(r.PercentComplete=100),this.progressTimes.updateTimeStampValue("CurrentTime"),r.CurrentTimeStamp=this.progressTimes.getTimeStampValue("CurrentTime"),r.ElapsedTime=r.CurrentTimeStamp-r.StartTimeStamp,r.EndTimeStamp>0&&(r.ElapsedTime=r.EndTimeStamp-r.StartTimeStamp),r.CurrentCount>0?r.AverageOperationTime=(r.CurrentTimeStamp-r.StartTimeStamp)/r.CurrentCount:r.AverageOperationTime=-1,r.AverageOperationTime>0?r.EstimatedCompletionTime=Math.max(r.TotalCount-r.CurrentCount,0)*r.AverageOperationTime:r.EstimatedCompletionTime=-1,r}},{key:"updateProgressTracker",value:function(e,t){var r="string"==typeof e?e:"Default",n=parseInt(t);return isNaN(n)?(this.fable.log.warn("Attempted to update ProgressTracker ".concat(r," with an invalid number of operations!")),!1):(r in this.progressTrackers||this.createProgressTracker(100,r),this.progressTrackers[r].CurrentCount=n,this.solveProgressTrackerStatus(r))}},{key:"incrementProgressTracker",value:function(e,t){var r="string"==typeof e?e:"Default",n=parseInt(t);return isNaN(n)&&(n=1),r in this.progressTrackers?(this.progressTrackers[r].StartTimeStamp<1&&(this.fable.log.warn("Attempted to increment ProgressTracker ".concat(r," but it was not started.. starting now.")),this.startProgressTracker(r)),this.progressTrackers[r].CurrentCount=this.progressTrackers[r].CurrentCount+n,this.solveProgressTrackerStatus(r)):(this.fable.log.warn("Attempted to increment ProgressTracker ".concat(r," but it did not exist.")),!1)}},{key:"getProgressTrackerCompletedOperationCountString",value:function(e){var t="string"==typeof e?e:"Default",r=this.progressTrackers[t];return r.CurrentCount<0?"none":r.CurrentCount<1?"0":"".concat(r.CurrentCount)}},{key:"getProgressTrackerPercentCompleteString",value:function(e){var t="string"==typeof e?e:"Default";if(this.solveProgressTrackerStatus(t),t in this.progressTrackers){var r=this.progressTrackers[t];return r.StartTimeStamp<1||r.CurrentCount<1?"0%":(r.EndTimeStamp,"".concat(r.PercentComplete.toFixed(3),"%"))}return"ProgressTracker ".concat(t," does not exist! No stats to display.")}},{key:"getProgressTrackerStatusString",value:function(e){var t="string"==typeof e?e:"Default";if(this.solveProgressTrackerStatus(t),t in this.progressTrackers){var r=this.progressTrackers[t];return r.StartTimeStamp<1?"ProgressTracker ".concat(r.Hash," has not been started yet."):r.CurrentCount<1&&r.EndTimeStamp<1?"ProgressTracker ".concat(r.Hash," has no completed operations. ").concat(this.progressTimes.formatTimeDuration(r.ElapsedTime)," have elapsed since it was started."):r.EndTimeStamp<1?"ProgressTracker ".concat(r.Hash," is ").concat(r.PercentComplete.toFixed(3),"% completed - ").concat(r.CurrentCount," / ").concat(r.TotalCount," operations over ").concat(this.progressTimes.formatTimeDuration(r.ElapsedTime)," (median ").concat(this.progressTimes.formatTimeDuration(r.AverageOperationTime)," per). Estimated completion: ").concat(this.progressTimes.formatTimeDuration(r.EstimatedCompletionTime)):"ProgressTracker ".concat(r.Hash," is done. ").concat(r.CurrentCount," / ").concat(r.TotalCount," operations were completed in ").concat(this.progressTimes.formatTimeDuration(r.ElapsedTime)," (median ").concat(this.progressTimes.formatTimeDuration(r.AverageOperationTime)," per).")}return"ProgressTracker ".concat(t," does not exist! No stats to display.")}},{key:"logProgressTrackerStatus",value:function(e){this.fable.log.info(this.getProgressTrackerStatusString(e))}}]),t}(n);t.exports=o},{"./Fable-Service-ProgressTracker/ProgressTracker.js":153,"fable-serviceproviderbase":51}],155:[function(e,t,r){(function(r){(function(){var n=e("fable-serviceproviderbase"),i=e("simple-get"),o=e("cookie"),a=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).TraceLog=!1,(i.options.TraceLog||i.fable.TraceLog)&&(i.TraceLog=!0),i.dataFormat=i.fable.services.DataFormat,i.serviceType="RestClient",i.cookie=!1,i.prepareRequestOptions=function(e){return e},i}return _inherits(t,e),_createClass2(t,[{key:"simpleGet",get:function(){return i}},{key:"prepareCookies",value:function(e){if(this.cookie){var t=this.cookie;"headers"in e||(e.headers={});var r=Object.keys(t);r.length>0&&(e.headers.cookie=o.serialize(r[0],t[r[0]]))}return e}},{key:"preRequest",value:function(e){var t=this.prepareCookies(e);return"RestClientURLPrefix"in this.fable.settings&&(t.url=this.fable.settings.RestClientURLPrefix+t.url),this.prepareRequestOptions(t)}},{key:"executeChunkedRequest",value:function(e,t){var r=this,n=this.preRequest(e);return n.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug("Beginning ".concat(n.method," request to ").concat(n.url," at ").concat(n.RequestStartTime)),i(n,(function(e,i){if(e)return t(e,i);if(r.TraceLog){var o=r.fable.log.getTimeStamp();r.fable.log.debug("--\x3e ".concat(n.method," connected in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,o),"ms code ").concat(i.statusCode))}var a="";i.on("data",(function(e){if(r.TraceLog){var t=r.fable.log.getTimeStamp();r.fable.log.debug("--\x3e ".concat(n.method," data chunk size ").concat(e.length,"b received in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,t),"ms"))}a+=e})),i.on("end",(function(){if(r.TraceLog){var o=r.fable.log.getTimeStamp();r.fable.log.debug("==> ".concat(n.method," completed data size ").concat(a.length,"b received in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,o),"ms"))}return t(e,i,a)}))}))}},{key:"executeChunkedRequestBinary",value:function(e,t){var n=this,o=this.preRequest(e);return o.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug("Beginning ".concat(o.method," request to ").concat(o.url," at ").concat(o.RequestStartTime)),o.json=!1,o.encoding=null,i(o,(function(e,i){if(e)return t(e,i);if(n.TraceLog){var a=n.fable.log.getTimeStamp();n.fable.log.debug("--\x3e ".concat(o.method," connected in ").concat(n.dataFormat.formatTimeDelta(o.RequestStartTime,a),"ms code ").concat(i.statusCode))}var s=!1;i.on("data",(function(e){if(n.TraceLog){var t=n.fable.log.getTimeStamp();n.fable.log.debug("--\x3e ".concat(o.method," data chunk size ").concat(e.length,"b received in ").concat(n.dataFormat.formatTimeDelta(o.RequestStartTime,t),"ms"))}s=s?r.concat([s,e]):r.from(e)})),i.on("end",(function(){if(n.TraceLog){var r=n.fable.log.getTimeStamp();n.fable.log.debug("==> ".concat(o.method," completed data size ").concat(s.length,"b received in ").concat(n.dataFormat.formatTimeDelta(o.RequestStartTime,r),"ms"))}return t(e,i,s)}))}))}},{key:"executeJSONRequest",value:function(e,t){var r=this;e.json=!0;var n=this.preRequest(e);return"headers"in n||(n.headers={}),n.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug("Beginning ".concat(n.method," JSON request to ").concat(n.url," at ").concat(n.RequestStartTime)),i(n,(function(e,i){if(e)return t(e,i);if(r.TraceLog){var o=r.fable.log.getTimeStamp();r.fable.log.debug("--\x3e JSON ".concat(n.method," connected in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,o),"ms code ").concat(i.statusCode))}var a="";i.on("data",(function(e){if(r.TraceLog){var t=r.fable.log.getTimeStamp();r.fable.log.debug("--\x3e JSON ".concat(n.method," data chunk size ").concat(e.length,"b received in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,t),"ms"))}a+=e})),i.on("end",(function(){if(r.TraceLog){var o=r.fable.log.getTimeStamp();r.fable.log.debug("==> JSON ".concat(n.method," completed - received in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,o),"ms"))}return t(e,i,JSON.parse(a))}))}))}},{key:"getJSON",value:function(e,t){var r="object"==_typeof(e)?e:{};return"string"==typeof e&&(r.url=e),r.method="GET",this.executeJSONRequest(r,t)}},{key:"putJSON",value:function(e,t){return"object"!=_typeof(e.body)?t(new Error("PUT JSON Error Invalid options object")):(e.method="PUT",this.executeJSONRequest(e,t))}},{key:"postJSON",value:function(e,t){return"object"!=_typeof(e.body)?t(new Error("POST JSON Error Invalid options object")):(e.method="POST",this.executeJSONRequest(e,t))}},{key:"patchJSON",value:function(e,t){return"object"!=_typeof(e.body)?t(new Error("PATCH JSON Error Invalid options object")):(e.method="PATCH",this.executeJSONRequest(e,t))}},{key:"headJSON",value:function(e,t){return"object"!=_typeof(e.body)?t(new Error("HEAD JSON Error Invalid options object")):(e.method="HEAD",this.executeJSONRequest(e,t))}},{key:"delJSON",value:function(e,t){return e.method="DELETE",this.executeJSONRequest(e,t)}},{key:"getRawText",value:function(e,t){var r="object"==_typeof(e)?e:{};return"string"==typeof e&&(r.url=e),r.method="GET",this.executeChunkedRequest(r,t)}}]),t}(n);t.exports=a}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20,cookie:27,"fable-serviceproviderbase":51,"simple-get":101}],156:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="Template",i.Matchers={Evaluate:/<%([\s\S]+?)%>/g,Interpolate:/<%=([\s\S]+?)%>/g,Escaper:/\\|'|\r|\n|\t|\u2028|\u2029/g,Unescaper:/\\(\\|'|r|n|t|u2028|u2029)/g,GuaranteedNonMatch:/.^/},i.templateEscapes={"\\":"\\","'":"'",r:"\r","\r":"r",n:"\n","\n":"n",t:"\t","\t":"t",u2028:"\u2028","\u2028":"u2028",u2029:"\u2029","\u2029":"u2029"},i.renderFunction=!1,i.templateString=!1,i}return _inherits(t,e),_createClass2(t,[{key:"renderTemplate",value:function(e){return this.renderFunction(e)}},{key:"templateFunction",value:function(){return this.renderTemplate.bind(this)}},{key:"buildTemplateFunction",value:function(e,t){var r=this;return this.TemplateSource="__p+='"+e.replace(this.Matchers.Escaper,(function(e){return"\\".concat(r.templateEscapes[e])})).replace(this.Matchers.Interpolate||this.Matchers.GuaranteedNonMatch,(function(e,t){return"'+\n(".concat(decodeURIComponent(t),")+\n'")})).replace(this.Matchers.Evaluate||this.Matchers.GuaranteedNonMatch,(function(e,t){return"';\n".concat(decodeURIComponent(t),"\n;__p+='")}))+"';\n",this.TemplateSource="with(pTemplateDataObject||{}){\n".concat(this.TemplateSource,"}\n"),this.TemplateSource="var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n".concat(this.TemplateSource,"return __p;\n"),this.renderFunction=new Function("pTemplateDataObject",this.TemplateSource),void 0!==t?this.renderFunction(t):(this.TemplateSourceCompiled="function(obj){\n"+this.TemplateSource+"}",this.templateFunction())}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],157:[function(e,t,r){var n=e("fable-serviceproviderbase"),i=e("async.waterfall"),o=e("async.eachlimit"),a=e("big.js"),s=function(e){function t(e,r,n){var s;return _classCallCheck2(this,t),(s=_callSuper(this,t,[e,r,n])).templates={},s.waterfall=i,s.eachLimit=o,s.bigNumber=a,s}return _inherits(t,e),_createClass2(t,[{key:"extend",value:function(e){for(var t=0;t<(arguments.length<=1?0:arguments.length-1);t++){var r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if("object"===_typeof(r))for(var n=Object.keys(r),i=0;i<n.length;i++)e[n[i]]=r[n[i]]}return e}},{key:"template",value:function(e,t){return this.fable.instantiateServiceProviderWithoutRegistration("Template").buildTemplateFunction(e,t)}},{key:"buildHashedTemplate",value:function(e,t,r){var n=this.fable.instantiateServiceProvider("Template",{},e);return this.templates[e]=n.buildTemplateFunction(t,r),this.templates[e]}},{key:"chunk",value:function(e,t,r){var n=_toConsumableArray(e),i="number"==typeof t?t:0,o=void 0!==r?r:[];if(i<=0)return o;for(;n.length;)o.push(n.splice(0,i));return o}},{key:"isoStringToDate",value:function(e){"Dates"in this.fable||this.fable.instantiateServiceProvider("Dates");var t=!1;try{t=this.fable.Dates.dayJS.utc(e)}catch(t){return this.fable.log.error("Could not parse date string ".concat(e," with dayJS.")),!1}return!!t&&t.toDate()}}]),t}(n);t.exports=s},{"async.eachlimit":1,"async.waterfall":15,"big.js":17,"fable-serviceproviderbase":51}]},{},[127])(127)}));
11
+ var n=e("./WordTree.js"),i=e("./StringParser.js"),o=function(){function e(){_classCallCheck2(this,e),this.WordTree=new n,this.StringParser=new i,this.ParseTree=this.WordTree.ParseTree}return _createClass2(e,[{key:"addPattern",value:function(e,t,r){return this.WordTree.addPattern(e,t,r)}},{key:"parseString",value:function(e,t){return this.StringParser.parseString(e,this.ParseTree,t)}}]),e}();t.exports=o},{"./StringParser.js":85,"./WordTree.js":86}],85:[function(e,t,r){var n=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,[{key:"newParserState",value:function(e){return{ParseTree:e,Asynchronous:!1,Output:"",OutputBuffer:"",Pattern:{},PatternMatch:!1,PatternMatchEnd:!1}}},{key:"appendOutputBuffer",value:function(e,t){t.OutputBuffer+=e}},{key:"flushOutputBuffer",value:function(e){e.Output+=e.OutputBuffer,e.OutputBuffer=""}},{key:"resetOutputBuffer",value:function(e){return this.flushOutputBuffer(e),e.Pattern=!1,e.PatternStartNode=!1,e.StartPatternMatchComplete=!1,e.EndPatternMatchBegan=!1,e.PatternMatch=!1,!0}},{key:"parseCharacter",value:function(e,t,r){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&t.Pattern.hasOwnProperty(e))t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan)if(t.Pattern.PatternEnd.hasOwnProperty(e)){if(t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t),t.Pattern.hasOwnProperty("Parse"))return t.OutputBuffer=t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r),this.resetOutputBuffer(t)}else t.PatternStartNode.PatternEnd.hasOwnProperty(e)?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t));else if(t.Pattern.hasOwnProperty("PatternEnd")){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),t.Pattern.PatternEnd.hasOwnProperty(e)&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],t.Pattern.hasOwnProperty("Parse")))return t.OutputBuffer=t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r),this.resetOutputBuffer(t)}else this.resetOutputBuffer(t);if(!t.PatternMatch){if(t.ParseTree.hasOwnProperty(e))return this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0,!0;this.appendOutputBuffer(e,t)}return!1}},{key:"parseString",value:function(e,t,r){for(var n=this.newParserState(t),i=0;i<e.length;i++)this.parseCharacter(e[i],n,r);return this.flushOutputBuffer(n),n.Output}}]),e}();t.exports=n},{}],86:[function(e,t,r){var n=function(){function e(){_classCallCheck2(this,e),this.ParseTree={}}return _createClass2(e,[{key:"addChild",value:function(e,t){return e.hasOwnProperty(t)||(e[t]={}),e[t]}},{key:"addEndChild",value:function(e,t){return e.hasOwnProperty("PatternEnd")||(e.PatternEnd={}),e.PatternEnd[t]={},e.PatternEnd[t]}},{key:"addPattern",value:function(e,t,r){if(e.length<1)return!1;if("string"==typeof t&&t.length<1)return!1;for(var n=this.ParseTree,i=0;i<e.length;i++)n=this.addChild(n,e[i],i);n.hasOwnProperty("PatternEnd")||(n.PatternEnd={});for(var o="string"==typeof t?t:e,a=0;a<o.length;a++)n=this.addEndChild(n,o[a],a);return n.PatternStartString=e,n.PatternEndString=o,n.Parse="function"==typeof r?r:"string"==typeof r?function(){return r}:function(e){return e},!0}}]),e}();t.exports=n},{}],87:[function(e,t,r){var n,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,l=[],f=!1,h=-1;function p(){f&&c&&(f=!1,c.length?l=c.concat(l):h=-1,l.length&&d())}function d(){if(!f){var e=u(p);f=!0;for(var t=l.length;t;){for(c=l,l=[];++h<t;)c&&c[h].run();h=-1,t=l.length}c=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new g(e,t)),1!==l.length||f||u(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],88:[function(e,t,r){(function(e){(function(){!function(n){var i="object"==_typeof(r)&&r&&!r.nodeType&&r,o="object"==_typeof(t)&&t&&!t.nodeType&&t,a="object"==_typeof(e)&&e;a.global!==a&&a.window!==a&&a.self!==a||(n=a);var s,u,c=2147483647,l=36,f=1,h=26,p=38,d=700,g=72,y=128,v="-",m=/^xn--/,b=/[^\x20-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=l-f,_=Math.floor,k=String.fromCharCode;function w(e){throw new RangeError(P[e])}function x(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function E(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+x((e=e.replace(S,".")).split("."),t).join(".")}function O(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function A(e){return x(e,(function(e){var t="";return e>65535&&(t+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=k(e)})).join("")}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function j(e,t,r){var n=0;for(e=r?_(e/d):e>>1,e+=_(e/t);e>T*h>>1;n+=l)e=_(e/T);return _(n+(T+1)*e/(e+p))}function N(e){var t,r,n,i,o,a,s,u,p,d,m,b=[],S=e.length,P=0,T=y,k=g;for((r=e.lastIndexOf(v))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&w("not-basic"),b.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<S;){for(o=P,a=1,s=l;i>=S&&w("invalid-input"),((u=(m=e.charCodeAt(i++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:l)>=l||u>_((c-P)/a))&&w("overflow"),P+=u*a,!(u<(p=s<=k?f:s>=k+h?h:s-k));s+=l)a>_(c/(d=l-p))&&w("overflow"),a*=d;k=j(P-o,t=b.length+1,0==o),_(P/t)>c-T&&w("overflow"),T+=_(P/t),P%=t,b.splice(P++,0,T)}return A(b)}function R(e){var t,r,n,i,o,a,s,u,p,d,m,b,S,P,T,x=[];for(b=(e=O(e)).length,t=y,r=0,o=g,a=0;a<b;++a)(m=e[a])<128&&x.push(k(m));for(n=i=x.length,i&&x.push(v);n<b;){for(s=c,a=0;a<b;++a)(m=e[a])>=t&&m<s&&(s=m);for(s-t>_((c-r)/(S=n+1))&&w("overflow"),r+=(s-t)*S,t=s,a=0;a<b;++a)if((m=e[a])<t&&++r>c&&w("overflow"),m==t){for(u=r,p=l;!(u<(d=p<=o?f:p>=o+h?h:p-o));p+=l)T=u-d,P=l-d,x.push(k(C(d+T%P,0))),u=_(T/P);x.push(k(C(u,0))),o=j(r,S,n==i),r=0,++n}++r,++t}return x.join("")}if(s={version:"1.4.1",ucs2:{decode:O,encode:A},decode:N,encode:R,toASCII:function(e){return E(e,(function(e){return b.test(e)?"xn--"+R(e):e}))},toUnicode:function(e){return E(e,(function(e){return m.test(e)?N(e.slice(4).toLowerCase()):e}))}},i&&o)if(t.exports==i)o.exports=s;else for(u in s)s.hasOwnProperty(u)&&(i[u]=s[u]);else n.punycode=s}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],89:[function(e,t,r){var n=String.prototype.replace,i=/%20/g,o="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:a}},{}],90:[function(e,t,r){var n=e("./stringify"),i=e("./parse"),o=e("./formats");t.exports={formats:o,parse:i,stringify:n}},{"./formats":89,"./parse":91,"./stringify":92}],91:[function(e,t,r){var n=e("./utils"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,l=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var f=0;r.depth>0&&null!==(s=a.exec(o))&&f<r.depth;){if(f+=1,!r.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+o.slice(s.index)+"]"),function(e,t,r,n){for(var i=n?t:u(t,r),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(l,t,r,n)}};t.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,c={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,h=l.split(t.delimiter,f),p=-1,d=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?d="utf-8":"utf8=%26%2310003%3B"===h[r]&&(d="iso-8859-1"),p=r,r=h.length);for(r=0;r<h.length;++r)if(r!==p){var g,y,v=h[r],m=v.indexOf("]="),b=-1===m?v.indexOf("="):m+1;-1===b?(g=t.decoder(v,a.decoder,d,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(v.slice(0,b),a.decoder,d,"key"),y=n.maybeMap(u(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,d,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===d&&(y=s(y)),v.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(c,g)?c[g]=n.combine(c[g],y):c[g]=y}return c}(e,r):e,f=r.plainObjects?Object.create(null):{},h=Object.keys(l),p=0;p<h.length;++p){var d=h[p],g=c(d,l[d],r,"string"==typeof e);f=n.merge(f,g,r)}return!0===r.allowSparse?f:n.compact(f)}},{"./utils":93}],92:[function(e,t,r){var n=e("side-channel"),i=e("./utils"),o=e("./formats"),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,h=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},g=function e(t,r,o,a,s,c,f,h,g,y,v,m,b,S,P,T){for(var _,k=t,w=T,x=0,E=!1;void 0!==(w=w.get(d))&&!E;){var O=w.get(t);if(x+=1,void 0!==O){if(O===x)throw new RangeError("Cyclic object value");E=!0}void 0===w.get(d)&&(x=0)}if("function"==typeof h?k=h(r,k):k instanceof Date?k=v(k):"comma"===o&&u(k)&&(k=i.maybeMap(k,(function(e){return e instanceof Date?v(e):e}))),null===k){if(s)return f&&!S?f(r,p.encoder,P,"key",m):r;k=""}if("string"==typeof(_=k)||"number"==typeof _||"boolean"==typeof _||"symbol"===_typeof(_)||"bigint"==typeof _||i.isBuffer(k))return f?[b(S?r:f(r,p.encoder,P,"key",m))+"="+b(f(k,p.encoder,P,"value",m))]:[b(r)+"="+b(String(k))];var A,C=[];if(void 0===k)return C;if("comma"===o&&u(k))S&&f&&(k=i.maybeMap(k,f)),A=[{value:k.length>0?k.join(",")||null:void 0}];else if(u(h))A=h;else{var j=Object.keys(k);A=g?j.sort(g):j}for(var N=a&&u(k)&&1===k.length?r+"[]":r,R=0;R<A.length;++R){var L=A[R],M="object"===_typeof(L)&&void 0!==L.value?L.value:k[L];if(!c||null!==M){var D=u(k)?"function"==typeof o?o(N,L):N:N+(y?"."+L:"["+L+"]");T.set(t,x);var I=n();I.set(d,T),l(C,e(M,D,o,a,s,c,"comma"===o&&S&&u(k)?null:f,h,g,y,v,m,b,S,P,I))}}return C};t.exports=function(e,t){var r,i=e,c=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],i=p.filter;return("function"==typeof e.filter||u(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):u(c.filter)&&(r=c.filter);var f,h=[];if("object"!==_typeof(i)||null===i)return"";f=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=s[f];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===d&&t&&t.commaRoundTrip;r||(r=Object.keys(i)),c.sort&&r.sort(c.sort);for(var v=n(),m=0;m<r.length;++m){var b=r[m];c.skipNulls&&null===i[b]||l(h,g(i[b],b,d,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,v))}var S=h.join(c.delimiter),P=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?P+="utf8=%26%2310003%3B&":P+="utf8=%E2%9C%93&"),S.length>0?P+S:""}},{"./formats":89,"./utils":93,"side-channel":99}],93:[function(e,t,r){var n=e("./formats"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};t.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"===_typeof(l)&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,o){if(0===e.length)return e;var s=e;if("symbol"===_typeof(e)?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var l=s.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===n.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(e){return!(!e||"object"!==_typeof(e))&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!==_typeof(r)){if(o(t))t.push(r);else{if(!t||"object"!==_typeof(t))return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==_typeof(t))return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=s(t,n)),o(t)&&o(r)?(r.forEach((function(r,o){if(i.call(t,o)){var a=t[o];a&&"object"===_typeof(a)&&r&&"object"===_typeof(r)?t[o]=e(a,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var a=r[o];return i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,t}),a)}}},{"./formats":89}],94:[function(e,t,r){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var f,h,p,d,g=e[l].replace(s,"%20"),y=g.indexOf(r);y>=0?(f=g.substr(0,y),h=g.substr(y+1)):(f=g,h=""),p=decodeURIComponent(f),d=decodeURIComponent(h),n(a,p)?i(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],95:[function(e,t,r){var n=function(e){switch(_typeof(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===_typeof(e)?o(a(e),(function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(n(e))})).join(t):s+encodeURIComponent(n(e[a]))})).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var a=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],96:[function(e,t,r){r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":94,"./encode":95}],97:[function(e,t,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:20}],98:[function(e,t,r){var n=e("get-intrinsic"),i=e("define-data-property"),o=e("has-property-descriptors")(),a=e("gopd"),s=e("es-errors/type"),u=n("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},{"define-data-property":36,"es-errors/type":42,"get-intrinsic":59,gopd:60,"has-property-descriptors":61}],99:[function(e,t,r){var n=e("get-intrinsic"),i=e("call-bind/callBound"),o=e("object-inspect"),a=e("es-errors/type"),s=n("%WeakMap%",!0),u=n("%Map%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),d=i("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};t.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+o(e))},get:function(n){if(s&&n&&("object"===_typeof(n)||"function"==typeof n)){if(e)return c(e,n)}else if(u){if(t)return h(t,n)}else if(r)return function(e,t){var r=g(e,t);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"===_typeof(n)||"function"==typeof n)){if(e)return f(e,n)}else if(u){if(t)return d(t,n)}else if(r)return function(e,t){return!!g(e,t)}(r,n);return!1},set:function(n,i){s&&n&&("object"===_typeof(n)||"function"==typeof n)?(e||(e=new s),l(e,n,i)):u?(t||(t=new u),p(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n}},{"call-bind/callBound":25,"es-errors/type":42,"get-intrinsic":59,"object-inspect":81}],100:[function(e,t,r){(function(e){(function(){/*! simple-concat. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */t.exports=function(t,r){var n=[];t.on("data",(function(e){n.push(e)})),t.once("end",(function(){r&&r(null,e.concat(n)),r=null})),t.once("error",(function(e){r&&r(e),r=null}))}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20}],101:[function(e,t,r){(function(r){(function(){/*! simple-get. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */t.exports=f;var n=e("simple-concat"),i=e("decompress-response"),o=e("http"),a=e("https"),s=e("once"),u=e("querystring"),c=e("url"),l=function(e){return null!==e&&"object"===_typeof(e)&&"function"==typeof e.pipe};function f(e,t){if(e=Object.assign({maxRedirects:10},"string"==typeof e?{url:e}:e),t=s(t),e.url){var n=c.parse(e.url),h=n.hostname,p=n.port,d=n.protocol,g=n.auth,y=n.path;delete e.url,h||p||d||g?Object.assign(e,{hostname:h,port:p,protocol:d,auth:g,path:y}):e.path=y}var v,m={"accept-encoding":"gzip, deflate"};e.headers&&Object.keys(e.headers).forEach((function(t){return m[t.toLowerCase()]=e.headers[t]})),e.headers=m,e.body?v=e.json&&!l(e.body)?JSON.stringify(e.body):e.body:e.form&&(v="string"==typeof e.form?e.form:u.stringify(e.form),e.headers["content-type"]="application/x-www-form-urlencoded"),v&&(e.method||(e.method="POST"),l(v)||(e.headers["content-length"]=r.byteLength(v)),e.json&&!e.form&&(e.headers["content-type"]="application/json")),delete e.body,delete e.form,e.json&&(e.headers.accept="application/json"),e.method&&(e.method=e.method.toUpperCase());var b=e.hostname,S=("https:"===e.protocol?a:o).request(e,(function(r){if(!1!==e.followRedirects&&r.statusCode>=300&&r.statusCode<400&&r.headers.location){e.url=r.headers.location,delete e.headers.host,r.resume();var n=c.parse(e.url).hostname;return null!==n&&n!==b&&(delete e.headers.cookie,delete e.headers.authorization),"POST"===e.method&&[301,302].includes(r.statusCode)&&(e.method="GET",delete e.headers["content-length"],delete e.headers["content-type"]),0==e.maxRedirects--?t(new Error("too many redirects")):f(e,t)}var o="function"==typeof i&&"HEAD"!==e.method;t(null,o?i(r):r)}));return S.on("timeout",(function(){S.abort(),t(new Error("Request timed out"))})),S.on("error",t),l(v)?v.on("error",t).pipe(S):S.end(v),S}f.concat=function(e,t){return f(e,(function(r,i){if(r)return t(r);n(i,(function(r,n){if(r)return t(r);if(e.json)try{n=JSON.parse(n.toString())}catch(r){return t(r,i,n)}t(null,i,n)}))}))},["get","post","put","patch","head","delete"].forEach((function(e){f[e]=function(t,r){return"string"==typeof t&&(t={url:t}),f(Object.assign({method:e.toUpperCase()},t),r)}}))}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20,"decompress-response":18,http:102,https:66,once:82,querystring:96,"simple-concat":100,url:123}],102:[function(e,t,r){(function(t){(function(){var n=e("./lib/request"),i=e("./lib/response"),o=e("xtend"),a=e("builtin-status-codes"),s=e("url"),u=r;u.request=function(e,r){e="string"==typeof e?s.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||i,u=e.hostname||e.host,c=e.port,l=e.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),e.url=(u?a+"//"+u:"")+(c?":"+c:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new n(e);return r&&f.on("response",r),f},u.get=function(e,t){var r=u.request(e,t);return r.end(),r},u.ClientRequest=n,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":104,"./lib/response":105,"builtin-status-codes":21,url:123,xtend:126}],103:[function(e,t,r){(function(e){(function(){var t;function n(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function i(e){var t=n();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function o(e){return"function"==typeof e}r.fetch=o(e.fetch)&&o(e.ReadableStream),r.writableStream=o(e.WritableStream),r.abortController=o(e.AbortController),r.arraybuffer=r.fetch||i("arraybuffer"),r.msstream=!r.fetch&&i("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&i("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||!!n()&&o(n().overrideMimeType),t=null}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],104:[function(e,t,r){(function(r,n,i){(function(){var o=e("./capability"),a=e("inherits"),s=e("./response"),u=e("readable-stream"),c=s.IncomingMessage,l=s.readyStates;var f=t.exports=function(e){var t,r=this;u.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+i.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}(t,n),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};a(f,u.Writable),f.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===h.indexOf(r)&&(this._headers[r]={name:e,value:t})},f.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},f.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},f.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var i=e._headers,a=null;"GET"!==t.method&&"HEAD"!==t.method&&(a=new Blob(e._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===e._mode){var u=null;if(o.abortController){var c=new AbortController;u=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}n.fetch(e._opts.url,{method:e._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:u}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var f=e._xhr=new n.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}"responseType"in f&&(f.responseType=e._mode),"withCredentials"in f&&(f.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(f.timeout=t.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){f.setRequestHeader(e[0],e[1])})),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case l.LOADING:case l.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{f.send(a)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}}}},f.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},f.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},f.prototype._write=function(e,t,r){this._body.push(e),r()},f.prototype._resetTimers=function(e){var t=this;n.clearTimeout(t._socketTimer),t._socketTimer=null,e?(n.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=n.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},f.prototype.abort=f.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},f.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),u.Writable.prototype.end.call(this,e,t,r)},f.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},f.prototype.flushHeaders=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":103,"./response":105,_process:87,buffer:20,inherits:68,"readable-stream":120}],105:[function(e,t,r){(function(t,n,i){(function(){var o=e("./capability"),a=e("inherits"),s=e("readable-stream"),u=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=r.IncomingMessage=function(e,r,n,a){var u=this;if(s.Readable.call(u),u._mode=n,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",(function(){t.nextTick((function(){u.emit("close")}))})),"fetch"===n){if(u._fetchResponse=r,u.url=r.url,u.statusCode=r.status,u.statusMessage=r.statusText,r.headers.forEach((function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)})),o.writableStream){var c=new WritableStream({write:function(e){return a(!1),new Promise((function(t,r){u._destroyed?r():u.push(i.from(e))?t():u._resumeFetch=t}))},close:function(){a(!0),u._destroyed||u.push(null)},abort:function(e){a(!0),u._destroyed||u.emit("error",e)}});try{return void r.body.pipeTo(c).catch((function(e){a(!0),u._destroyed||u.emit("error",e)}))}catch(e){}}var l=r.body.getReader();!function e(){l.read().then((function(t){u._destroyed||(a(t.done),t.done?u.push(null):(u.push(i.from(t.value)),e()))})).catch((function(e){a(!0),u._destroyed||u.emit("error",e)}))}()}else{if(u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===u.headers[r]&&(u.headers[r]=[]),u.headers[r].push(t[2])):void 0!==u.headers[r]?u.headers[r]+=", "+t[2]:u.headers[r]=t[2],u.rawHeaders.push(t[1],t[2])}})),u._charset="x-user-defined",!o.overrideMimeType){var f=u.rawHeaders["mime-type"];if(f){var h=f.match(/;\s*charset=([^;])(;|$)/);h&&(u._charset=h[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};a(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,o=null;switch(t._mode){case"text":if((o=r.responseText).length>t._pos){var a=o.substr(t._pos);if("x-user-defined"===t._charset){for(var s=i.alloc(a.length),c=0;c<a.length;c++)s[c]=255&a.charCodeAt(c);t.push(s)}else t.push(a,t._charset);t._pos=o.length}break;case"arraybuffer":if(r.readyState!==u.DONE||!r.response)break;o=r.response,t.push(i.from(new Uint8Array(o)));break;case"moz-chunked-arraybuffer":if(o=r.response,r.readyState!==u.LOADING||!o)break;t.push(i.from(new Uint8Array(o)));break;case"ms-stream":if(o=r.response,r.readyState!==u.LOADING)break;var l=new n.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(i.from(new Uint8Array(l.result.slice(t._pos)))),t._pos=l.result.byteLength)},l.onload=function(){e(!0),t.push(null)},l.readAsArrayBuffer(o)}t._xhr.readyState===u.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":103,_process:87,buffer:20,inherits:68,"readable-stream":120}],106:[function(e,t,r){var n={};function i(e,t,r){r||(r=Error);var i=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,i,a,s;if("string"==typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(n," ").concat(o(t,"type"))}return s+=". Received type ".concat(_typeof(r))}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],107:[function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(c,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":109,"./_stream_writable":111,_process:87,inherits:68}],108:[function(e,t,r){t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":110,inherits:68}],109:[function(e,t,r){(function(r,n){(function(){var i;t.exports=w,w.ReadableState=k;e("events").EventEmitter;var o=function(e,t){return e.listeners(t).length},a=e("./internal/streams/stream"),s=e("buffer").Buffer,u=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,l=e("util");c=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h,p,d=e("./internal/streams/buffer_list"),g=e("./internal/streams/destroy"),y=e("./internal/streams/state").getHighWaterMark,v=e("../errors").codes,m=v.ERR_INVALID_ARG_TYPE,b=v.ERR_STREAM_PUSH_AFTER_EOF,S=v.ERR_METHOD_NOT_IMPLEMENTED,P=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(w,a);var T=g.errorOrDestroy,_=["error","close","destroy","pause","resume"];function k(t,r,n){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=e("string_decoder/").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function w(t){if(i=i||e("./_stream_duplex"),!(this instanceof w))return new w(t);var r=this instanceof i;this._readableState=new k(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function x(e,t,r,n,i){c("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,a);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(a,t)),o)T(e,o);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)a.endEmitted?T(e,new P):E(e,a,t,!0);else if(a.ended)T(e,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?E(e,a,t,!1):N(e,a)):E(e,a,t,!1)}else n||(a.reading=!1,N(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function E(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&C(e)),N(e,t)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),w.prototype.destroy=g.destroy,w.prototype._undestroy=g.undestroy,w.prototype._destroy=function(e,t){t(e)},w.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},w.prototype.unshift=function(e){return x(this,e,null,!0,!1)},w.prototype.isPaused=function(){return!1===this._readableState.flowing},w.prototype.setEncoding=function(t){f||(f=e("string_decoder/").StringDecoder);var r=new f(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(j,e))}function j(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,I(e)}function N(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(c("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function M(e){c("readable nexttick read 0"),e.read(0)}function D(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function V(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}w.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?V(this):C(this),null;if(0===(e=A(e,t))&&t.ended)return 0===t.length&&V(this),null;var n,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",i=!0),t.ended||t.reading?c("reading or ended",i=!1):i&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=A(r,t))),null===(n=e>0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&V(this)),null!==n&&this.emit("data",n),n},w.prototype._read=function(e){T(this,new S("_read()"))},w.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:y;function s(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",d),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",h),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){c("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,I(e))}}(n);e.on("drain",l);var f=!1;function h(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==B(i.pipes,e))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){c("onerror",t),y(),e.removeListener("error",p),0===o(e,"error")&&T(e,t)}function d(){e.removeListener("finish",g),y()}function g(){c("onfinish"),e.removeListener("close",d),y()}function y(){c("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",d),e.once("finish",g),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=B(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},w.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?C(this):i.reading||r.nextTick(M,this))),n},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(L,this),n},w.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(L,this),t},w.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(D,e,t))}(this,e)),e.paused=!1,this},w.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(w.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=e("./internal/streams/async_iterator")),h(this)}),Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),w._fromList=F,Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(w.from=function(t,r){return void 0===p&&(p=e("./internal/streams/from")),p(w,t,r)})}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":106,"./_stream_duplex":107,"./internal/streams/async_iterator":112,"./internal/streams/buffer_list":113,"./internal/streams/destroy":114,"./internal/streams/from":116,"./internal/streams/state":118,"./internal/streams/stream":119,_process:87,buffer:20,events:44,inherits:68,"string_decoder/":121,util:18}],110:[function(e,t,r){t.exports=l;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}e("inherits")(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":106,"./_stream_duplex":107,inherits:68}],111:[function(e,t,r){(function(r,n){(function(){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;t.exports=w,w.WritableState=k;var a={deprecate:e("util-deprecate")},s=e("./internal/streams/stream"),u=e("buffer").Buffer,c=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,f=e("./internal/streams/destroy"),h=e("./internal/streams/state").getHighWaterMark,p=e("../errors").codes,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,v=p.ERR_STREAM_CANNOT_PIPE,m=p.ERR_STREAM_DESTROYED,b=p.ERR_STREAM_NULL_VALUES,S=p.ERR_STREAM_WRITE_AFTER_END,P=p.ERR_UNKNOWN_ENCODING,T=f.errorOrDestroy;function _(){}function k(t,n,a){o=o||e("./_stream_duplex"),t=t||{},"boolean"!=typeof a&&(a=n instanceof o),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(j,e,t),e._writableState.errorEmitted=!0,T(e,i)):(o(i),e._writableState.errorEmitted=!0,T(e,i),j(e,t))}(e,n,i,t,o);else{var a=A(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),i?r.nextTick(E,e,n,a,o):E(e,n,a,o)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function w(t){var r=this instanceof(o=o||e("./_stream_duplex"));if(!r&&!l.call(w,this))return new w(t);this._writableState=new k(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function x(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function E(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,x(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback;if(x(e,t,!1,t.objectMode?1:c.length,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(r){t.pendingcb--,r&&T(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var n=A(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(C,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}e("inherits")(w,s),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===w&&(e&&e._writableState instanceof k)}})):l=function(e){return e instanceof this},w.prototype.pipe=function(){T(this,new v)},w.prototype.write=function(e,t,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,u.isBuffer(i)||i instanceof c);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=_),o.ending?function(e,t){var n=new S;T(e,n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var o;return null===n?o=new b:"string"==typeof n||t.objectMode||(o=new d("chunk",["string","Buffer"],n)),!o||(T(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else x(e,t,!1,s,n,i,o);return c}(this,o,s,e,t,n)),a},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},w.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new P(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,r){r(new g("_write()"))},w.prototype._writev=null,w.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=f.destroy,w.prototype._undestroy=f.undestroy,w.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":106,"./_stream_duplex":107,"./internal/streams/destroy":114,"./internal/streams/state":118,"./internal/streams/stream":119,_process:87,buffer:20,inherits:68,"util-deprecate":124}],112:[function(e,t,r){(function(r){(function(){var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_typeof(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_typeof(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=e("./end-of-stream"),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function d(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[l]=null,e[a]=null,e[s]=null,t(p(r,!1)))}}function g(e){r.nextTick(d,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(t,n){r.nextTick((function(){e[u]?n(e[u]):t(p(void 0,!0))}))}));var n,i=this[l];if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(p(void 0,!0)):t[f](r,n)}),n)}}(i,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),y);t.exports=function(e){var t,r=Object.create(v,(i(t={},h,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[h].read();n?(r[l]=null,r[a]=null,r[s]=null,e(p(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[l]=null,r[a]=null,r[s]=null,t(e)),void(r[u]=e)}var n=r[a];null!==n&&(r[l]=null,r[a]=null,r[s]=null,n(p(void 0,!0))),r[c]=!0})),e.on("readable",g.bind(null,r)),r}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":115,_process:87}],113:[function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!==_typeof(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_typeof(t)?t:String(t)}var u=e("buffer").Buffer,c=e("util").inspect,l=c&&c.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t,r,n,i=u.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,u.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:20,util:18}],114:[function(e,t,r){(function(e){(function(){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(n,a):(a._writableState.errorEmitted=!0,e.nextTick(r,a,t)):e.nextTick(r,a,t):o?(e.nextTick(n,a),o(t)):e.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:87}],115:[function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||l()},c=t._writableState&&t._writableState.finished,l=function(){s=!1,c=!0,a||o.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,f=!0,s||o.call(t)},p=function(e){o.call(t,e)},d=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},g=function(){t.req.on("finish",l)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?s&&!t._writableState&&(t.on("end",u),t.on("close",u)):(t.on("complete",l),t.on("abort",d),t.req?g():t.on("request",g)),t.on("end",h),t.on("finish",l),!1!==r.error&&t.on("error",p),t.on("close",d),function(){t.removeListener("complete",l),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",l),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("end",h),t.removeListener("error",p),t.removeListener("close",d)}}},{"../../../errors":106}],116:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],117:[function(e,t,r){var n;var i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var l,f=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new o("streams");var h=r.map((function(t,i){var o=i<r.length-1;return function(t,r,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}(t,o,i>0,(function(e){l||(l=e),e&&h.forEach(u),o||(h.forEach(u),f(l))}))}));return r.reduce(c)}},{"../../../errors":106,"./end-of-stream":115}],118:[function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},{"../../../errors":106}],119:[function(e,t,r){t.exports=e("events").EventEmitter},{events:44}],120:[function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":107,"./lib/_stream_passthrough.js":108,"./lib/_stream_readable.js":109,"./lib/_stream_transform.js":110,"./lib/_stream_writable.js":111,"./lib/internal/streams/end-of-stream.js":115,"./lib/internal/streams/pipeline.js":117}],121:[function(e,t,r){var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}r.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":97}],122:[function(e,t,r){(function(t,n){(function(){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},u=0;function c(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"==typeof t?t:function(e){var t=u++,n=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"==typeof n?n:function(e){delete s[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":87,timers:122}],123:[function(e,t,r){var n=e("punycode");function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),l=["%","/","?",";","#"].concat(c),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=e("qs");function m(e,t,r){if(e&&"object"===_typeof(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+_typeof(e));var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(a);u[0]=u[0].replace(/\\/g,"/");var m=e=u.join(a);if(m=m.trim(),!r&&1===e.split("#").length){var b=s.exec(m);if(b)return this.path=m,this.href=m,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var S=o.exec(m);if(S){var P=(S=S[0]).toLowerCase();this.protocol=P,m=m.substr(S.length)}if(r||S||m.match(/^\/\/[^@/]+@[^@/]+/)){var T="//"===m.substr(0,2);!T||S&&g[S]||(m=m.substr(2),this.slashes=!0)}if(!g[S]&&(T||S&&!y[S])){for(var _,k,w=-1,x=0;x<f.length;x++){-1!==(E=m.indexOf(f[x]))&&(-1===w||E<w)&&(w=E)}-1!==(k=-1===w?m.lastIndexOf("@"):m.lastIndexOf("@",w))&&(_=m.slice(0,k),m=m.slice(k+1),this.auth=decodeURIComponent(_)),w=-1;for(x=0;x<l.length;x++){var E;-1!==(E=m.indexOf(l[x]))&&(-1===w||E<w)&&(w=E)}-1===w&&(w=m.length),this.host=m.slice(0,w),m=m.slice(w),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var A=this.hostname.split(/\./),C=(x=0,A.length);x<C;x++){var j=A[x];if(j&&!j.match(h)){for(var N="",R=0,L=j.length;R<L;R++)j.charCodeAt(R)>127?N+="x":N+=j[R];if(!N.match(h)){var M=A.slice(0,x),D=A.slice(x+1),I=j.match(p);I&&(M.push(I[1]),D.unshift(I[2])),D.length&&(m="/"+D.join(".")+m),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+F,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!d[P])for(x=0,C=c.length;x<C;x++){var U=c[x];if(-1!==m.indexOf(U)){var B=encodeURIComponent(U);B===U&&(B=escape(U)),m=m.split(U).join(B)}}var H=m.indexOf("#");-1!==H&&(this.hash=m.substr(H),m=m.slice(0,H));var W=m.indexOf("?");if(-1!==W?(this.search=m.substr(W),this.query=m.substr(W+1),t&&(this.query=v.parse(this.query)),m=m.slice(0,W)):t&&(this.search="",this.query={}),m&&(this.pathname=m),y[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var $=this.search||"";this.path=F+$}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"===_typeof(this.query)&&Object.keys(this.query).length&&(o=v.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(r[c]=e[c])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var h=l[f];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",v=r.search||"";r.path=d+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),S=b||m||r.host&&e.pathname,P=S,T=r.pathname&&r.pathname.split("/")||[],_=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(_&&(r.hostname="",r.port=null,r.host&&(""===T[0]?T[0]=r.host:T.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),S=S&&(""===p[0]||""===T[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,T=p;else if(p.length)T||(T=[]),T.pop(),T=T.concat(p),r.search=e.search,r.query=e.query;else if(null!=e.search){if(_)r.host=T.shift(),r.hostname=r.host,(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.hostname=O.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!T.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=T.slice(-1)[0],w=(r.host||e.host||T.length>1)&&("."===k||".."===k)||""===k,x=0,E=T.length;E>=0;E--)"."===(k=T[E])?T.splice(E,1):".."===k?(T.splice(E,1),x++):x&&(T.splice(E,1),x--);if(!S&&!P)for(;x--;x)T.unshift("..");!S||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),w&&"/"!==T.join("/").substr(-1)&&T.push("");var O,A=""===T[0]||T[0]&&"/"===T[0].charAt(0);_&&(r.hostname=A?"":T.length?T.shift():"",r.host=r.hostname,(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.hostname=O.shift(),r.host=r.hostname));return(S=S||r.host&&T.length)&&!A&&T.unshift(""),T.length>0?r.pathname=T.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},r.parse=m,r.resolve=function(e,t){return m(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},r.format=function(e){return"string"==typeof e&&(e=m(e)),e instanceof i?e.format():i.prototype.format.call(e)},r.Url=i},{punycode:88,qs:90}],124:[function(e,t,r){(function(e){(function(){function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],125:[function(e,t,r){t.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}},{}],126:[function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},{}],127:[function(e,t,r){var n=e("fable-settings"),i=e("fable-uuid"),o=e("fable-log"),a=e("fable-serviceproviderbase"),s=function(t){function r(t){var a;return _classCallCheck2(this,r),(a=_callSuper(this,r,[t])).serviceType="ServiceManager",a.serviceTypes=[],a.servicesMap={},a.services={},a.serviceClasses={},a.extraServiceInitialization=!1,a.LogNoisiness=0,a.SettingsManager=new n(t),a.SettingsManager=a.SettingsManager,a.UUID=new i(a.SettingsManager.settings),a.Logging=new o(a.SettingsManager.settings),a.Logging.initialize(),a.ServiceManager=_assertThisInitialized(a),a.serviceManager=_assertThisInitialized(a),a.connectFable(_assertThisInitialized(a)),a.connectPreinitServiceProviderInstance(a.UUID),a.connectPreinitServiceProviderInstance(a.Logging),a.connectPreinitServiceProviderInstance(a.SettingsManager),a.addAndInstantiateServiceType("EnvironmentData",e("./services/Fable-Service-EnvironmentData.js")),a.addServiceType("Template",e("./services/Fable-Service-Template.js")),a.addServiceType("MetaTemplate",e("./services/Fable-Service-MetaTemplate.js")),a.addServiceType("Anticipate",e("./services/Fable-Service-Anticipate.js")),a.addAndInstantiateServiceType("Dates",e("./services/Fable-Service-DateManipulation.js")),a.addAndInstantiateServiceType("DataFormat",e("./services/Fable-Service-DataFormat.js")),a.addAndInstantiateServiceType("DataGeneration",e("./services/Fable-Service-DataGeneration.js")),a.addAndInstantiateServiceType("Utility",e("./services/Fable-Service-Utility.js")),a.addAndInstantiateServiceType("Math",e("./services/Fable-Service-Math.js")),a.addServiceType("ExpressionParser",e("./services/Fable-Service-ExpressionParser.js")),a.addServiceType("RestClient",e("./services/Fable-Service-RestClient.js")),a.addServiceType("Manifest",e("manyfest")),a.addServiceType("ObjectCache",e("cachetrax")),a.addAndInstantiateServiceType("ProgressTime",e("./services/Fable-Service-ProgressTime.js")),a.addServiceType("ProgressTrackerSet",e("./services/Fable-Service-ProgressTrackerSet.js")),a.addServiceType("Operation",e("./services/Fable-Service-Operation.js")),a.addServiceType("CSVParser",e("./services/Fable-Service-CSVParser.js")),a.addServiceType("FilePersistence",e("./services/Fable-Service-FilePersistence.js")),a}return _inherits(r,t),_createClass2(r,[{key:"isFable",get:function(){return!0}},{key:"settings",get:function(){return this.SettingsManager.settings}},{key:"settingsManager",get:function(){return this.SettingsManager}},{key:"getUUID",value:function(){return this.UUID.getUUID()}},{key:"newAnticipate",value:function(){return this.instantiateServiceProviderWithoutRegistration("Anticipate")}},{key:"newManyfest",value:function(e){return this.instantiateServiceProviderWithoutRegistration("Manifest",e)}},{key:"addServiceType",value:function(e,t){return e in this.servicesMap?this.log.warn("Adding a service type [".concat(e,"] that already exists. This will change the default class prototype for this service.")):(this.servicesMap[e]={},this.serviceTypes.push(e)),"function"==typeof t&&t.isFableService?this.serviceClasses[e]=t:(this.log.error("Attempted to add service type [".concat(e,"] with an invalid class. Using base service class, which will not crash but won't provide meaningful services.")),this.serviceClasses[e]=a),this.serviceClasses[e]}},{key:"addServiceTypeIfNotExists",value:function(e,t){return e in this.servicesMap?this.serviceClasses[e]:this.addServiceType(e,t)}},{key:"addAndInstantiateServiceType",value:function(e,t){return this.addServiceType(e,t),this.instantiateServiceProvider(e,{},"".concat(e,"-Default"))}},{key:"addAndInstantiateServiceTypeIfNotExists",value:function(e,t){return this.addServiceTypeIfNotExists(e,t),e in this.servicesMap?this.serviceClasses[e]:this.instantiateServiceProvider(e,{},"".concat(e,"-Default"))}},{key:"instantiateServiceProviderFromPrototype",value:function(e,t,r,n){var i=new n(this,t,r);return this.extraServiceInitialization&&(i=this.extraServiceInitialization(i)),this.servicesMap[e][i.Hash]=i,e in this.services||this.setDefaultServiceInstantiation(e,i.Hash),i}},{key:"instantiateServiceProvider",value:function(e,t,r){var n=this.instantiateServiceProviderWithoutRegistration(e,t,r);return this.servicesMap[e][n.Hash]=n,e in this.services||this.setDefaultServiceInstantiation(e,n.Hash),n}},{key:"instantiateServiceProviderIfNotExists",value:function(e,t,r){return e in this.services?this.services[e]:this.instantiateServiceProvider(e,t,r)}},{key:"instantiateServiceProviderWithoutRegistration",value:function(e,t,r){var n=new this.serviceClasses[e](this,t,r);return this.extraServiceInitialization&&(n=this.extraServiceInitialization(n)),n}},{key:"connectPreinitServiceProviderInstance",value:function(e){var t=e.serviceType,r=e.Hash;return e.connectFable(this),t in this.servicesMap||(this.servicesMap[t]={}),this.servicesMap[t][r]=e,t in this.services||this.setDefaultServiceInstantiation(t,r,!1),e}},{key:"setDefaultServiceInstantiation",value:function(e,t,r){var n=void 0===r||r;return t in this.servicesMap[e]&&(e in this&&!n||(this[e]=this.servicesMap[e][t]),e in this.services&&!n||(this.services[e]=this.servicesMap[e][t]),!0)}}]),r}(a.CoreServiceProviderBase);t.exports=s,t.exports.new=function(e){return new s(e)},t.exports.LogProviderBase=o.LogProviderBase,t.exports.ServiceProviderBase=a,t.exports.CoreServiceProviderBase=a.CoreServiceProviderBase,t.exports.precedent=n.precedent},{"./services/Fable-Service-Anticipate.js":128,"./services/Fable-Service-CSVParser.js":129,"./services/Fable-Service-DataFormat.js":130,"./services/Fable-Service-DataGeneration.js":132,"./services/Fable-Service-DateManipulation.js":133,"./services/Fable-Service-EnvironmentData.js":134,"./services/Fable-Service-ExpressionParser.js":135,"./services/Fable-Service-FilePersistence.js":145,"./services/Fable-Service-Math.js":146,"./services/Fable-Service-MetaTemplate.js":147,"./services/Fable-Service-Operation.js":151,"./services/Fable-Service-ProgressTime.js":152,"./services/Fable-Service-ProgressTrackerSet.js":154,"./services/Fable-Service-RestClient.js":155,"./services/Fable-Service-Template.js":156,"./services/Fable-Service-Utility.js":157,cachetrax:22,"fable-log":50,"fable-serviceproviderbase":51,"fable-settings":54,"fable-uuid":56,manyfest:80}],128:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="AsyncAnticipate",i.operationQueue=[],i.erroredOperations=[],i.executingOperationCount=0,i.completedOperationCount=0,i.callDepth=0,i.maxOperations=1,i.lastError=void 0,i.waitingFunctions=[],i}return _inherits(t,e),_createClass2(t,[{key:"checkQueue",value:function(){if(this.lastError){for(var e=0;e<this.waitingFunctions.length;e++)this.waitingFunctions[e](this.lastError);this.lastError=void 0,this.waitingFunctions=[]}else if(this.operationQueue.length>0&&this.executingOperationCount<this.maxOperations){var t=this.operationQueue.shift();this.executingOperationCount+=1,t(this.buildAnticipatorCallback())}else if(this.waitingFunctions.length>0&&this.executingOperationCount<1){for(var r=0;r<this.waitingFunctions.length;r++)this.waitingFunctions[r](this.lastError);this.lastError=void 0,this.waitingFunctions=[]}}},{key:"anticipate",value:function(e){this.operationQueue.push(e),this.checkQueue()}},{key:"buildAnticipatorCallback",value:function(){var e={Called:!1,Error:void 0,OperationSet:this};return function(t){if(e.Called)throw new Error("Anticipation async callback called twice...");e.Called=!0,this.lastError=t,e.OperationSet.executingOperationCount-=1,e.OperationSet.completedOperationCount+=1,e.OperationSet.callDepth++,e.OperationSet.callDepth>400?(e.OperationSet.callDepth=0,setTimeout(e.OperationSet.checkQueue.bind(this),0)):e.OperationSet.checkQueue()}.bind(this)}},{key:"wait",value:function(e){this.waitingFunctions.push(e),this.checkQueue()}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],129:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="CSVParser",i.Header=[],i.HeaderFieldNames=[],i.Delimiter=",",i.QuoteCharacter='"',i.CleanCharacters=["\r"],i.HeaderLineIndex=0,i.HasHeader=!0,i.HasSetHeader=!1,i.EmitHeader=!1,i.EmitJSON=!0,i.EscapedQuoteString="&quot;",i.CurrentLine="",i.CurrentRecord=[],i.InQuote=!1,i.InEscapedQuote=!1,i.LinesParsed=0,i.RowsEmitted=0,i}return _inherits(t,e),_createClass2(t,[{key:"marshalRowToJSON",value:function(e){if(!Array.isArray(e))return!1;for(var t=this.HeaderFieldNames.length;t<e.length;t++)this.HeaderFieldNames[t]="".concat(t);for(var r={},n=0;n<e.length;n++)r[this.HeaderFieldNames[n]]=e[n];return r}},{key:"setHeader",value:function(e){this.Header=e;for(var t=0;t<this.Header.length;t++)void 0===this.Header[t]?this.HeaderFieldNames[t]="".concat(t):this.HeaderFieldNames[t]=this.Header[t].toString().trim()}},{key:"resetRowState",value:function(){this.CurrentRecord=[]}},{key:"pushLine",value:function(){for(var e=0;e<this.CleanCharacters.length;e++)this.CurrentLine=this.CurrentLine.replace(this.CleanCharacters[e],"");this.CurrentRecord.push(this.CurrentLine),this.CurrentLine=""}},{key:"emitRow",value:function(e){var t=void 0===e?this.EmitJSON:e;this.RowsEmitted++;var r=this.CurrentRecord;return this.CurrentRecord=[],t?this.marshalRowToJSON(r):r}},{key:"parseCSVLine",value:function(e){this.LinesParsed++;for(var t=0;t<e.length;t++)this.InQuote||e[t]!=this.Delimiter?e[t]==this.QuoteCharacter?this.InEscapedQuote?this.InEscapedQuote=!1:this.InQuote?t<e.length&&e[t+1]==this.QuoteCharacter?(this.CurrentLine+=this.EscapedQuoteString,this.InEscapedQuote=!0):this.InQuote=!1:this.InQuote=!0:this.CurrentLine+=e[t]:this.pushLine();return!this.InQuote&&(this.pushLine(),this.HasHeader&&!this.HasSetHeader&&this.RowsEmitted==this.HeaderLineIndex?(this.HasSetHeader=!0,this.setHeader(this.emitRow(!1)),!!this.EmitHeader&&this.Header):this.emitRow())}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],130:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),_defineProperty2(_assertThisInitialized(i=_callSuper(this,t,[e,r,n])),"stringPadStart",(function(e,t,r){var n=e.toString();return this.stringGeneratePaddingString(n,t,r)+n})),_defineProperty2(_assertThisInitialized(i),"stringPadEnd",(function(e,t,r){var n=e.toString();return n+this.stringGeneratePaddingString(n,t,r)})),i.serviceType="DataArithmatic",i._Regex_formatterInsertCommas=/.{1,3}/g,i._Regex_formatterAddCommasToNumber=/^([-+]?)(0?)(\d+)(.?)(\d+)$/g,i._Regex_formatterDollarsRemoveCommas=/,/gi,i._Regex_formatterCleanNonAlphaChar=/[^a-zA-Z]/gi,i._Regex_formatterCapitalizeEachWord=/([a-zA-Z]+)/g,i._Value_MoneySign_Currency="$",i._Value_NaN_Currency="--",i._Value_GroupSeparator_Number=",",i._Value_Prefix_StringHash="HSH",i._Value_Clean_formatterCleanNonAlpha="",i._UseEngineStringStartsWith="function"==typeof String.prototype.startsWith,i._UseEngineStringEndsWith="function"==typeof String.prototype.endsWith,i}return _inherits(t,e),_createClass2(t,[{key:"stringReverse",value:function(e){return e.split("").reverse().join("")}},{key:"stringStartsWith",value:function(e,t,r){return this._UseEngineStringStartsWith?e.startsWith(t,r):this.stringStartsWith_Polyfill.call(e,t,r)}},{key:"stringStartsWith_Polyfill",value:function(e,t){return this.slice(t||0,e.length)===e}},{key:"stringEndsWith",value:function(e,t,r){return this._UseEngineStringEndsWith?e.endsWith(t,r):this.stringEndsWith_Polyfill.call(e,t,r)}},{key:"stringEndsWith_Polyfill",value:function(e,t){return t<this.length?t|=0:t=this.length,this.substr(t-e.length,e.length)===e}},{key:"insecureStringHash",value:function(e){for(var t=0,r=e.length,n=0;n<r;)t=(t<<5)-t+e.charCodeAt(n++)|0;return"".concat(this._Value_Prefix_StringHash).concat(t)}},{key:"capitalizeEachWord",value:function(e){return e.replace(this._Regex_formatterCapitalizeEachWord,(function(e){return e.charAt(0).toUpperCase()+e.substr(1)}))}},{key:"cleanEnclosureWrapCharacters",value:function(e,t){return t.startsWith(e)&&t.endsWith(e)?t.substring(1,t.length-1):t}},{key:"cleanNonAlphaCharacters",value:function(e){return"string"==typeof e&&""!=e?e.replace(this._Regex_formatterCleanNonAlphaChar,this._Value_Clean_formatterCleanNonAlpha):""}},{key:"formatterInsertCommas",value:function(e){var t=this.stringReverse(e).match(this._Regex_formatterInsertCommas).join(",");return this.stringReverse(t)}},{key:"processAddCommasToNumberRegex",value:function(e,t,r,n,i,o){return t+(i?this.formatterInsertCommas(n)+i+o:this.formatterInsertCommas(n+o))}},{key:"formatterAddCommasToNumber",value:function(e){return e.toString().replace(this._Regex_formatterAddCommasToNumber,this.processAddCommasToNumberRegex.bind(this))}},{key:"formatterDollars",value:function(e,t,r){if(isNaN(e))return this._Value_NaN_Currency;if(null==e)return this._Value_NaN_Currency;var n=this.fable.Math.parsePrecise(e),i=void 0===t?2:t,o=this.fable.Math.toFixedPrecise(n,i,r);return"$".concat(this.formatterAddCommasToNumber(o))}},{key:"formatterRoundNumber",value:function(e,t){var r=void 0===t?2:t;if(isNaN(e)){return(0).toFixed(r)}if(null==e)return"";var n=this.fable.Utility.bigNumber(e).toFixed(r);if(isNaN(n)){return(0).toFixed(r)}return n}},{key:"stringGeneratePaddingString",value:function(e,t,r){var n=t|0,i=String(void 0!==r?r:" ");if(e.length>t)return"";var o=t-e.length;return o>i.length&&(i+=i.repeat(n/i.length)),i.slice(0,o)}},{key:"formatTimeSpan",value:function(e){if("number"!=typeof e)return"";var t=parseInt(e%1e3),r=parseInt(e/1e3%60),n=parseInt(e/6e4%60),i=parseInt(e/36e5);return"".concat(this.stringPadStart(i,2,"0"),":").concat(this.stringPadStart(n,2,"0"),":").concat(this.stringPadStart(r,2,"0"),".").concat(this.stringPadStart(t,3,"0"))}},{key:"formatTimeDelta",value:function(e,t){return"number"!=typeof e||"number"!=typeof t?"":this.formatTimeSpan(t-e)}},{key:"getMonthFromDate",value:function(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()]}},{key:"getMonthAbbreviatedFromDate",value:function(e){return["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getMonth()]}},{key:"formatMonthDayYearFromDate",value:function(e,t){var r=void 0!==t&&t,n=e.getMonth()+1,i=e.getDate(),o=e.getFullYear();return r&&(n=this.stringPadStart(n,2,"0"),i=this.stringPadStart(i,2,"0"),o=this.stringPadStart(o,4,"0")),"".concat(n,"/").concat(i,"/").concat(o)}},{key:"formatSortableStringFromDate",value:function(e){return e.getFullYear()+this.stringPadStart(e.getMonth(),2,"0")+this.stringPadStart(e.getDate(),2,"0")}},{key:"stringBeforeMatch",value:function(e,t){return e.split(t)[0]}},{key:"stringAfterMatch",value:function(e,t){var r=e.indexOf(t);return r<0||r+t.length>=e.length?"":e.substring(r+t.length)}},{key:"stringCountSegments",value:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;for(var u=1,c=[],l=0;l<i.length;l++)i[l]==o&&0==c.length?u++:i[l]in a?c.push(a[i[l]]):i[l]in s&&s[i[l]]==c[c.length-1]&&c.pop();return u}},{key:"stringGetSegments",value:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2,'"':3,"'":4},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2,'"':3,"'":4},u=0,c=[];if(e.length<1)return c;for(var l=[],f=0;f<i.length;f++)i[f]==o&&0==l.length?(c.push(i.substring(u,f)),u=f+1):i[f]in a?l.push(a[i[f]]):i[f]in s&&s[i[f]]==l[l.length-1]&&l.pop();return u<i.length&&c.push(i.substring(u)),c}},{key:"stringGetFirstSegment",value:function(e,t,r,n){var i="string"==typeof e?e:"",o="string"==typeof t?t:".",a="object"==_typeof(r)?pEnclosureStart:{"{":0,"[":1,"(":2},s="object"==_typeof(n)?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;for(var u=[],c=0;c<i.length;c++){if(i[c]==o&&0==u.length)return i.substring(0,c);i[c]in a?u.push(a[i[c]]):i[c]in s&&s[i[c]]==u[u.length-1]&&u.pop()}return i}},{key:"stringCountEnclosures",value:function(e,t,r){for(var n="string"==typeof e?e:"",i="string"==typeof t?t:"(",o="string"==typeof r?r:")",a=0,s=0,u=0;u<n.length;u++)n[u]==i?(0==s&&a++,s++):n[u]==o&&s--;return a}},{key:"stringGetEnclosureValueByIndex",value:function(e,t,r,n){for(var i="string"==typeof e?e:"",o="number"==typeof t?t:0,a="string"==typeof r?r:"(",s="string"==typeof n?n:")",u=0,c=0,l=!1,f=0,h=0,p=0;p<i.length;p++)i[p]==a?1==++c&&o==++u-1&&(l=!0,f=p):i[p]==s&&0==--c&&l&&h<=f&&(h=p,l=!1);return u<=o?"":h>0&&h>f?i.substring(f+1,h):i.substring(f+1)}},{key:"stringRemoveEnclosureByIndex",value:function(e,t,r,n){for(var i="string"==typeof e?e:"",o="number"==typeof t?t:0,a="string"==typeof r?r:"(",s="string"==typeof n?n:")",u=0,c=0,l=!1,f=0,h=0,p=0;p<i.length;p++)i[p]==a?1==++c&&o==++u-1&&(l=!0,f=p):i[p]==s&&0==--c&&l&&h<=f&&(h=p,l=!1);if(u<=o)return i;var d="";return f>1&&(d=i.substring(0,f)),i.length>h+1&&h>f&&(d+=i.substring(h+1)),d}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],131:[function(e,t,r){t.exports={DefaultIntegerMinimum:0,DefaultIntegerMaximum:9999999,DefaultNumericStringLength:10,MonthSet:["January","February","March","April","May","June","July","August","September","October","November","December"],WeekDaySet:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ColorSet:["Red","Orange","Yellow","Green","Blue","Indigo","Violet","Pink","Purple","Turquoise","Gold","Lime","Maroon","Navy","Coral","Teal","Brown","White","Black","Sky","Berry","Grey","Straw","Silver","Sapphire"],SurNameSet:["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen","Sanchez","Wright","King","Scott","Green","Baker","Adams","Nelson","Hill","Ramirez","Campbell","Mitchell","Roberts","Carter","Phillips","Evans","Turner","Torres","Parker","Collins","Edwards","Stewart","Flores","Morris","Nguyen","Murphy","Rivera","Cook","Rogers","Morgan","Peterson","Cooper","Reed","Bailey","Bell","Gomez","Kelly","Howard","Ward","Cox","Diaz","Richardson","Wood","Watson","Brooks","Bennett","Gray","James","Reyes","Cruz","Hughes","Price","Myers","Long","Foster","Sanders","Ross","Morales","Powell","Sullivan","Russell","Ortiz","Jenkins","Gutierrez","Perry","Butler","Barnes","Fisher"],NameSet:["Mary","Patricia","Jennifer","Linda","Elizabeth","Barbara","Susan","Jessica","Sarah","Karen","Lisa","Nancy","Betty","Sandra","Margaret","Ashley","Kimberly","Emily","Donna","Michelle","Carol","Amanda","Melissa","Deborah","Stephanie","Dorothy","Rebecca","Sharon","Laura","Cynthia","Amy","Kathleen","Angela","Shirley","Brenda","Emma","Anna","Pamela","Nicole","Samantha","Katherine","Christine","Helen","Debra","Rachel","Carolyn","Janet","Maria","Catherine","Heather","Diane","Olivia","Julie","Joyce","Victoria","Ruth","Virginia","Lauren","Kelly","Christina","Joan","Evelyn","Judith","Andrea","Hannah","Megan","Cheryl","Jacqueline","Martha","Madison","Teresa","Gloria","Sara","Janice","Ann","Kathryn","Abigail","Sophia","Frances","Jean","Alice","Judy","Isabella","Julia","Grace","Amber","Denise","Danielle","Marilyn","Beverly","Charlotte","Natalie","Theresa","Diana","Brittany","Doris","Kayla","Alexis","Lori","Marie","James","Robert","John","Michael","David","William","Richard","Joseph","Thomas","Christopher","Charles","Daniel","Matthew","Anthony","Mark","Donald","Steven","Andrew","Paul","Joshua","Kenneth","Kevin","Brian","George","Timothy","Ronald","Jason","Edward","Jeffrey","Ryan","Jacob","Gary","Nicholas","Eric","Jonathan","Stephen","Larry","Justin","Scott","Brandon","Benjamin","Samuel","Gregory","Alexander","Patrick","Frank","Raymond","Jack","Dennis","Jerry","Tyler","Aaron","Jose","Adam","Nathan","Henry","Zachary","Douglas","Peter","Kyle","Noah","Ethan","Jeremy","Walter","Christian","Keith","Roger","Terry","Austin","Sean","Gerald","Carl","Harold","Dylan","Arthur","Lawrence","Jordan","Jesse","Bryan","Billy","Bruce","Gabriel","Joe","Logan","Alan","Juan","Albert","Willie","Elijah","Wayne","Randy","Vincent","Mason","Roy","Ralph","Bobby","Russell","Bradley","Philip","Eugene"]}},{}],132:[function(e,t,r){var n=function(t){function r(t,n,i){var o;return _classCallCheck2(this,r),(o=_callSuper(this,r,[t,n,i])).serviceType="DataGeneration",o.defaultData=e("./Fable-Service-DataGeneration-DefaultValues.json"),o}return _inherits(r,t),_createClass2(r,[{key:"randomIntegerBetween",value:function(e,t){return Math.floor(Math.random()*(t-e))+e}},{key:"randomIntegerUpTo",value:function(e){return this.randomIntegerBetween(0,e)}},{key:"randomInteger",value:function(){return Math.floor(Math.random()*this.defaultData.DefaultIntegerMaximum)}},{key:"randomNumericString",value:function(e,t){var r=void 0===t?9999999999:t;return this.services.DataFormat.stringPadStart(this.randomIntegerUpTo(r),e,"0")}},{key:"randomMonth",value:function(){return this.defaultData.MonthSet[this.randomIntegerUpTo(this.defaultData.MonthSet.length-1)]}},{key:"randomDayOfWeek",value:function(){return this.defaultData.WeekDaySet[this.randomIntegerUpTo(this.defaultData.WeekDaySet.length-1)]}},{key:"randomColor",value:function(){return this.defaultData.ColorSet[this.randomIntegerUpTo(this.defaultData.ColorSet.length-1)]}},{key:"randomName",value:function(){return this.defaultData.NameSet[this.randomIntegerUpTo(this.defaultData.NameSet.length-1)]}},{key:"randomSurname",value:function(){return this.defaultData.SurNameSet[this.randomIntegerUpTo(this.defaultData.SurNameSet.length-1)]}}]),r}(e("fable-serviceproviderbase"));t.exports=n},{"./Fable-Service-DataGeneration-DefaultValues.json":131,"fable-serviceproviderbase":51}],133:[function(e,t,r){var n=function(t){function r(t,n,i){var o;return _classCallCheck2(this,r),(o=_callSuper(this,r,[t,n,i])).serviceType="Dates",o.dayJS=e("dayjs"),o.plugin_weekOfYear=e("dayjs/plugin/weekOfYear"),o.dayJS.extend(o.plugin_weekOfYear),o.plugin_weekday=e("dayjs/plugin/weekday"),o.dayJS.extend(o.plugin_weekday),o.plugin_isoWeek=e("dayjs/plugin/isoWeek"),o.dayJS.extend(o.plugin_isoWeek),o.plugin_timezone=e("dayjs/plugin/timezone"),o.dayJS.extend(o.plugin_timezone),o.plugin_relativetime=e("dayjs/plugin/relativeTime"),o.dayJS.extend(o.plugin_relativetime),o.plugin_utc=e("dayjs/plugin/utc"),o.dayJS.extend(o.plugin_utc),o.plugin_advancedFormat=e("dayjs/plugin/advancedFormat"),o.dayJS.extend(o.plugin_advancedFormat),o}return _inherits(r,t),_createClass2(r)}(e("fable-serviceproviderbase"));t.exports=n},{dayjs:28,"dayjs/plugin/advancedFormat":29,"dayjs/plugin/isoWeek":30,"dayjs/plugin/relativeTime":31,"dayjs/plugin/timezone":32,"dayjs/plugin/utc":33,"dayjs/plugin/weekOfYear":34,"dayjs/plugin/weekday":35,"fable-serviceproviderbase":51}],134:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="EnvironmentData",i.Environment="node.js",i}return _inherits(t,e),_createClass2(t)}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],135:[function(e,t,r){e("big.js").PE;var n=function(t){function r(t,n,i){var o;return _classCallCheck2(this,r),(o=_callSuper(this,r,[t,n,i])).tokenMap=e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-TokenMap.json"),o.tokenMaxPrecedence=10,o.functionMap=e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-FunctionMap.json"),o.serviceType="ExpressionParser",o.fable.addServiceTypeIfNotExists("ExpressionParser-Tokenizer",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ExpressionTokenizer.js")),o.fable.addServiceTypeIfNotExists("ExpressionParser-Linter",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Linter.js")),o.fable.addServiceTypeIfNotExists("ExpressionParser-Postfix",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Postfix.js")),o.fable.addServiceTypeIfNotExists("ExpressionParser-ValueMarshal",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ValueMarshal.js")),o.fable.addServiceTypeIfNotExists("ExpressionParser-Solver",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-SolvePostfixedExpression.js")),o.fable.addServiceTypeIfNotExists("ExpressionParser-Messaging",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Messaging.js")),o.Tokenizer=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Tokenizer"),o.Linter=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Linter"),o.Postfix=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Postfix"),o.ValueMarshal=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-ValueMarshal"),o.Solver=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Solver"),o.Messaging=o.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Messaging"),o.Tokenizer.connectExpressionParser(_assertThisInitialized(o)),o.Linter.connectExpressionParser(_assertThisInitialized(o)),o.Postfix.connectExpressionParser(_assertThisInitialized(o)),o.ValueMarshal.connectExpressionParser(_assertThisInitialized(o)),o.Solver.connectExpressionParser(_assertThisInitialized(o)),o.Messaging.connectExpressionParser(_assertThisInitialized(o)),o.GenericManifest=o.fable.newManyfest(),o.LogNoisiness="LogNoisiness"in o.fable?o.fable.LogNoisiness:0,o}return _inherits(r,t),_createClass2(r,[{key:"tokenize",value:function(e,t){return this.Tokenizer.tokenize(e,t)}},{key:"lintTokenizedExpression",value:function(e,t){return this.Linter.lintTokenizedExpression(e,t)}},{key:"buildPostfixedSolveList",value:function(e,t){return this.Postfix.buildPostfixedSolveList(e,t)}},{key:"substituteValuesInTokenizedObjects",value:function(e,t,r,n){return this.ValueMarshal.substituteValuesInTokenizedObjects(e,t,r,n)}},{key:"solvePostfixedExpression",value:function(e,t,r,n){return this.Solver.solvePostfixedExpression(e,t,r,n)}},{key:"solve",value:function(e,t,r,n,i){var o="object"===_typeof(r)?r:{},a="object"===_typeof(t)?t:{},s="object"===_typeof(i)?i:{};return this.tokenize(e,o),this.lintTokenizedExpression(o.RawTokens,o),this.buildPostfixedSolveList(o.RawTokens,o),this.substituteValuesInTokenizedObjects(o.PostfixTokenObjects,a,o,n),this.solvePostfixedExpression(o.PostfixSolveList,s,o,n)}}]),r}(e("fable-serviceproviderbase"));t.exports=n},{"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ExpressionTokenizer.js":137,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-FunctionMap.json":138,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Linter.js":139,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Messaging.js":140,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Postfix.js":141,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-SolvePostfixedExpression.js":142,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-TokenMap.json":143,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ValueMarshal.js":144,"big.js":17,"fable-serviceproviderbase":51}],136:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParserOperationBase",i.numberTest=/^-{0,1}\d*\.{0,1}\d+$/,i.ExpressionParser=!1,i}return _inherits(t,e),_createClass2(t,[{key:"connectExpressionParser",value:function(e){this.ExpressionParser=e}},{key:"getTokenType",value:function(e){return e in this.ExpressionParser.tokenMap?"Token.".concat(this.ExpressionParser.tokenMap[e].Type):e.length>2&&"{"===e[0]&&"}"===e[e.length-1]?"Token.StateAddress":this.numberTest.test(e)?"Token.Constant":"Token.Symbol"}},{key:"getTokenContainerObject",value:function(e,t){return{Token:e,Type:void 0===t?this.getTokenType(e):t,Descriptor:e in this.ExpressionParser.tokenMap&&this.ExpressionParser.tokenMap[e]}}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],137:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-Tokenizer",i}return _inherits(t,e),_createClass2(t,[{key:"tokenize",value:function(e,t){var r="object"===_typeof(t)?t:{ExpressionParserLog:[]};if(r.RawExpression=e,r.RawTokens=[],r.ExpressionParserLog=[],"string"!=typeof e)return this.log.warn("ExpressionParser.tokenize was passed a non-string expression."),r.RawTokens;for(var n=!1,i="",o=0;o<e.length;o++){var a=e[o];" "!==a||"StateAddress"===n?"StateAddress"!==n||"}"===a?"StateAddress"!==n||"}"!==a?"}"!=a?"{"!=a?a in this.ExpressionParser.tokenMap?(i.length>0&&r.RawTokens.push(i),i="",n=!1,r.RawTokens.push(a)):(n="Value",i+=a):(i.length>0&&r.RawTokens.push(i),i="",n="StateAddress",i=a):(i.length>0&&r.RawTokens.push(i),i="",n=!1,r.ExpressionParserLog.push("ExpressionParser.tokenize found a closing brace without an opening brace in the expression: ".concat(e," at character index ").concat(o)),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):(i+=a,r.RawTokens.push(i),i="",n=!1):i+=a:(i.length>0&&r.RawTokens.push(i),i="",n=!1)}return n&&i.length>0&&r.RawTokens.push(i),r.RawTokens}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136}],138:[function(e,t,r){t.exports={sqrt:{Name:"Square Root",Address:"fable.Math.sqrtPrecise"},abs:{Name:"Absolute Value",Address:"fable.Math.absPrecise"},rad:{Name:"Degrees to Radians",Address:"fable.Math.radPrecise"},pi:{Name:"Pi",Address:"fable.Math.piPrecise"},sin:{Name:"Sine",Address:"fable.Math.sin"},cos:{Name:"Cosine",Address:"fable.Math.cos"},tan:{Name:"Tangent",Address:"fable.Math.tan"},count:{Name:"Count Set Elements",Address:"fable.Math.countSetElements"},sortset:{Name:"Sort Set",Address:"fable.Math.sortSetPrecise"},bucketset:{Name:"Bucket Set",Address:"fable.Math.bucketSetPrecise"},sorthistogram:{Name:"Sort Histogram",Address:"fable.Math.sortHistogramPrecise"},max:{Name:"Maximum",Address:"fable.Math.maxPrecise"},min:{Name:"Minimum",Address:"fable.Math.minPrecise"},sum:{Name:"Sum",Address:"fable.Math.sumPrecise"},avg:{Name:"Average",Address:"fable.Math.averagePrecise"},mean:{Name:"Mean",Address:"fable.Math.meanPrecise"},median:{Name:"Median",Address:"fable.Math.medianPrecise"},mode:{Name:"Mode",Address:"fable.Math.modePrecise"},round:{Name:"Round",Address:"fable.Math.roundPrecise"}}},{}],139:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-Linter",i}return _inherits(t,e),_createClass2(t,[{key:"lintTokenizedExpression",value:function(e,t){var r="object"===_typeof(t)?t:{ExpressionParserLog:[]};if(r.LinterResults=[],!Array.isArray(e))return r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression was passed a non-array tokenized expression."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),e;if(e.length<1)return r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression was passed an empty tokenized expression."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),e;for(var n=0,i=!1,o=0;o<e.length;o++)"("!==e[o]||i||n++,")"!==e[o]||i||n--,"{"===e[o]&&(i=!0),"}"===e[o]&&(i=!1),n<0&&(r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression found an unbalanced parenthesis in the tokenized expression at token index ".concat(o)),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]));n>0&&(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found an unbalanced parenthesis in the tokenized expression (ended without closing last set of parenthesis) -- appropriate closing parenthesis will be added."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),i=!1;for(var a=0;a<e.length;a++)"{"===e[a]&&(i=!0),"}"===e[a]&&i&&(i=!1),"}"!==e[a]||i||(r.ExpressionParserLog.push('ERROR: ExpressionParser.lintTokenizedExpression found an unbalanced closing squiggly brace "}" in the tokenized expression at token index '.concat(a)),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),i&&(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found an open squiggly brace in the tokenized expression at index ".concat(a)),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1]));for(var s=0,u=0;u<e.length;u++)"="===e[u]&&(++s>1&&(r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression found multiple equality assignments in the tokenized expression; equality assignment #".concat(s," at token index ").concat(u,".")),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])));s<1&&(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found no equality assignment in the tokenized expression. One called Result will be added automatically."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),1===s&&3===e.length&&("Token.StateAddress"!==this.getTokenType(e[0])&&"Token.Symbol"!==this.getTokenType(e[2])||(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found a single equality assignment in the tokenized expression with no assignable address on the left side of the assignment."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])));for(var c=!1,l=0;l<e.length-1;l++)e[l]in this.ExpressionParser.tokenMap&&"Parenthesis"!=this.ExpressionParser.tokenMap[e[l]].Type&&!c?c=!0:e[l]in this.ExpressionParser.tokenMap&&"Parenthesis"!=this.ExpressionParser.tokenMap[e[l]].Type?"+"!==e[l]&&"-"!==e[l]&&(r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression found an ".concat(e[l]," operator adjacent to another operator in the tokenized expression at token index ").concat(l)),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):c=!1;return r.LinterResults}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136}],140:[function(e,t,r){e("big.js").PE;var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-Messaging",i}return _inherits(t,e),_createClass2(t,[{key:"getOperationVirtualSymbolName",value:function(e){return e&&"VirtualSymbolName"in e?e.VirtualSymbolName:"Token.VirtualSymbol"===e.Type?e.Token:"NO_VIRTUAL_SYMBOL_NAME_FOUND"}},{key:"getVirtualTokenValue",value:function(e,t){var r=this.getOperationVirtualSymbolName(e);if("Token.Constant"==e.Type&&e.Value)return e.Value.toString();var n="VirtualSymbols"in t?t.VirtualSymbols:{};if(this.ExpressionParser.GenericManifest.checkAddressExists(n,r)){var i=this.ExpressionParser.GenericManifest.getValueAtAddress(n,r);return"object"===_typeof(i)?"{".concat(Object.keys(i).length," values}"):Array.isArray(i)?"[".concat(Object.keys(i).length," values]"):i}return"NO_VALUE_FOUND"}},{key:"getTokenAddressString",value:function(e){return pExpression.Token}},{key:"getTokenSymbolString",value:function(e){return e.Token}},{key:"getOperationSymbolMessage",value:function(e){if(!e)return"INVALID_OPERATION";var t=this.getOperationVirtualSymbolName(e),r=this.getTokenSymbolString(e.LeftValue),n=this.getTokenSymbolString(e.Operation),i=this.getTokenSymbolString(e.RightValue),o=t.substring(0,3);return"="===n?"".concat(t," = ").concat(r):"VFE"===o?"".concat(t," = ").concat(n,"(").concat(r,")"):"".concat(t," = ").concat(r," ").concat(n," ").concat(i)}},{key:"getOperationValueMessage",value:function(e,t){if(!e)return"INVALID_OPERATION";var r=this.getOperationVirtualSymbolName(e),n=this.getVirtualTokenValue(e.LeftValue,t),i=this.getTokenSymbolString(e.Operation),o=this.getVirtualTokenValue(e.RightValue,t),a=r.substring(0,3);return"="===i?"".concat(r," = ").concat(n):"VFE"===a?"".concat(r," = ").concat(i,"(").concat(n,")"):"".concat(r," = ").concat(n," ").concat(i," ").concat(o)}},{key:"getOperationOutcomeMessage",value:function(e,t){if(!e)return"INVALID_TOKEN";var r=this.getOperationVirtualSymbolName(e),n=this.getVirtualTokenValue(e,t);return"".concat(r," = ").concat(n)}},{key:"logFunctionOutcome",value:function(e){if("object"===_typeof(e)){var t="PostfixedAssignmentAddress"in e?e.PostfixedAssignmentAddress:"NO_ASSIGNMENT_ADDRESS_FOUND",r="RawExpression"in e?e.RawExpression:"NO_EXPRESSION_FOUND",n="RawResult"in e?e.RawResult:"NO_RESULT_FOUND";this.log.info("Solved f(".concat(t,") = {").concat(r,"}"));for(var i=0;i<e.PostfixSolveList.length;i++){var o=e.PostfixSolveList[i],a=this.getOperationSymbolMessage(o);this.log.info("".concat(i," Symbols: ").concat(a));var s=this.getOperationValueMessage(o,e);this.log.info("".concat(i," Values: ").concat(s));var u=this.getOperationOutcomeMessage(o,e);this.log.info("".concat(i," Outcome: ").concat(u))}this.log.info("{".concat(r,"} = ").concat(n))}else this.log.error("Solver results object was not an object. Cannot log outcome.")}},{key:"logFunctionSolve",value:function(e){if("object"===_typeof(e))if("PostfixSolveList"in e&&Array.isArray(e.PostfixSolveList)){for(var t=0;t<tmpExpressionParseOutcome.PostfixSolveList.length;t++){var r=tmpExpressionParseOutcome.PostfixSolveList[t];console.log("".concat(t,": ").concat(r.VirtualSymbolName," = (").concat(r.LeftValue.Token,"::").concat(r.LeftValue.Value,") ").concat(r.Operation.Token," (").concat(r.RightValue.Token,"::").concat(r.RightValue.Value,") "))}this.logFunctionOutcome(e)}else this.log.error("Solver results object did not contain a PostfixSolveList array. Cannot log the solve.");else this.log.error("Solver results object was not an object. Cannot log the solve.")}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136,"big.js":17}],141:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-Postfix",i}return _inherits(t,e),_createClass2(t,[{key:"getPosfixSolveListOperation",value:function(e,t,r,n,i){var o={VirtualSymbolName:e.VirtualSymbolName,Operation:e,LeftValue:t,RightValue:r};Array.isArray(n);return o.LeftValue.VirtualSymbolName?"LeftVirtualSymbolName"in o.Operation?o.LeftValue=this.getTokenContainerObject(o.Operation.LeftVirtualSymbolName,"Token.VirtualSymbol"):o.LeftValue=this.getTokenContainerObject(o.LeftValue.VirtualSymbolName,"Token.VirtualSymbol"):o.LeftValue.VirtualSymbolName=o.VirtualSymbolName,o.RightValue.VirtualSymbolName?"RightVirtualSymbolName"in o.Operation?o.RightValue=this.getTokenContainerObject(o.Operation.RightVirtualSymbolName,"Token.VirtualSymbol"):o.RightValue=this.getTokenContainerObject(o.RightValue.VirtualSymbolName,"Token.VirtualSymbol"):o.RightValue.VirtualSymbolName=o.VirtualSymbolName,o.Operation.Parsed=!0,o}},{key:"buildPostfixedSolveList",value:function(e,t){var r="object"===_typeof(t)?t:{ExpressionParserLog:[]};if(r.PostfixedAssignmentAddress="Result",r.PostfixTokenObjects=[],r.PostfixSolveList=[],e.length<3)return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList was passed a tokenized expression with less than three tokens."),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixTokenObjects;for(var n=-1,i=0;i<e.length;i++)if("="===e[i]&&n<0)n=i;else if("="===e[i])return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found multiple equality assignments in the tokenized expression; equality assignment #".concat(n," at token index ").concat(i,".")),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixTokenObjects;-1==n?(r.ExpressionParserLog.push("WARNING: ExpressionParser.buildPostfixedSolveList found no equality assignment in the tokenized expression; defaulting to Result"),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):n>1?(r.ExpressionParserLog.push("WARNING: ExpressionParser.buildPostfixedSolveList found an equality assignment in the tokenized expression at an unexpected location (token index ".concat(n,"); the expression cannot be parsed.")),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):0===n||(r.PostfixedAssignmentAddress=e[0]);for(var o=n+1;o<e.length;o++)r.PostfixTokenObjects.push(this.getTokenContainerObject(e[o]));var a=0,s=0,u=[];u.push("SolveSet_".concat(s,"_D_").concat(a));for(var c=0;c<r.PostfixTokenObjects.length;c++)"("===r.PostfixTokenObjects[c].Token?(r.PostfixTokenObjects[c].Depth=a,r.PostfixTokenObjects[c].VirtualSymbolName="Pr_".concat(s,"_D_").concat(a),c>0&&"Token.Symbol"===r.PostfixTokenObjects[c-1].Type&&(r.PostfixTokenObjects[c-1].Type="Token.Function"),r.PostfixTokenObjects[c].SolveLayerStack=u[u.length-1],u.push(r.PostfixTokenObjects[c].VirtualSymbolName),s++,a++):")"===r.PostfixTokenObjects[c].Token?(a--,r.PostfixTokenObjects[c].Depth=a,a<0&&(r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found a closing parenthesis at token index ".concat(c," with no corresponding opening parenthesis.")),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),r.PostfixTokenObjects[c].VirtualSymbolName=u.pop(),r.PostfixTokenObjects[c].SolveLayerStack=u[u.length-1]):(r.PostfixTokenObjects[c].Depth=a,r.PostfixTokenObjects[c].SolveLayerStack=u[u.length-1]);for(var l={},f=0,h=0;h<r.PostfixTokenObjects.length;h++)r.PostfixTokenObjects[h].SolveLayerStack in l||(l[r.PostfixTokenObjects[h].SolveLayerStack]=[]),l[r.PostfixTokenObjects[h].SolveLayerStack].push(r.PostfixTokenObjects[h]),r.PostfixTokenObjects[h].Depth>f&&(f=r.PostfixTokenObjects[h].Depth);var p=Object.keys(l),d=0;p.sort((function(e,t){return l[e][0].Depth<l[t][0].Depth?1:l[e][0].Depth>l[t][0].Depth?-1:0})),r.PostfixLayerstackMap={};for(var g=0;g<p.length;g++)for(var y=l[p[g]],v=0;v<=this.ExpressionParser.tokenMaxPrecedence;v++)for(var m=0;m<y.length;m++)if("Token.Operator"===y[m].Type&&y[m].Descriptor.Precedence===v){var b=y[m];if(1===y.length)return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found a single operator in a solve layer expression at token index ".concat(m)),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(0==m&&("+"!=b.Token||"-"!=b.Token))return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found an operator at the beginning of a solve layer expression at token index ".concat(m)),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(m==y.length-1)return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found an operator at the end of a solve layer expression at token index ".concat(m)),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(0==m&&"-"==b.Token)b.VirtualSymbolName="VNLO_".concat(d),r.PostfixLayerstackMap[b.SolveLayerStack]=b.VirtualSymbolName,d++;else if(m>0&&"-"==b.Token&&("Token.Operator"===y[m-1].Type||"("===y[m-1].Token))b.VirtualSymbolName="VNLO_".concat(d),d++;else{if(0==m&&"+"==b.Token)continue;if(m>0&&"+"==b.Token&&("Token.Operator"===y[m-1].Type||"("===y[m-1].Token))continue;if("Token.Operator"===y[m-1].Type||"Token.Operator"===y[m+1].Type)return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList found an operator at token index ".concat(m," that is not surrounded by two values.")),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;b.VirtualSymbolName="V_".concat(d),r.PostfixLayerstackMap[b.SolveLayerStack]=b.VirtualSymbolName,d++}}else if("Token.Function"===y[m].Type&&0===v){var S=y[m];S.VirtualSymbolName="VFE_".concat(d),d++,r.PostfixLayerstackMap[S.SolveLayerStack]=S.VirtualSymbolName}for(var P=[],T=0;T<r.PostfixTokenObjects.length;T++){var _=r.PostfixTokenObjects[T];if("Token.Parenthesis"===_.Type)if(_.ParenthesisStack=_.VirtualSymbolName,0==T){_.IsFunction=!1;var k=r.PostfixLayerstackMap[_.VirtualSymbolName];k||(k="VP_".concat(d),d++),_.VirtualSymbolName=k,P.push(_)}else if("("===_.Token){if("Token.Function"===r.PostfixTokenObjects[T-1].Type){_.IsFunction=!0,_.Function=r.PostfixTokenObjects[T-1];var w=r.PostfixLayerstackMap[_.VirtualSymbolName];w||(w="VFP_".concat(d),d++),_.VirtualSymbolName=w}else{_.IsFunction=!1;var x=r.PostfixLayerstackMap[_.VirtualSymbolName];x||(x="VP_".concat(d),d++),_.VirtualSymbolName=x}P.push(_)}else if(")"===_.Token){var E=P.pop();E.IsFunction?(_.IsFunction=!0,_.VirtualSymbolName=E.Function.VirtualSymbolName):(_.IsFunction=!1,_.VirtualSymbolName=E.VirtualSymbolName)}}for(var O=0;O<p.length;O++)for(var A=[],C=!1,j=l[p[O]],N=0;N<j.length;N++){var R=j[N];if("Token.Operator"===R.Type&&(C=R),"Token.Function"===R.Type)R.PreviousOperator=C;else if("Token.Parenthesis"===R.Type&&"("===R.Token&&R.IsFunction)A.push(R),R.Function.PreviousOperator&&(R.PreviousOperator=R.Function.PreviousOperator);else if("Token.Parenthesis"===R.Type&&"("===R.Token)R.PreviousOperator=C,A.push(R);else if("Token.Parenthesis"===R.Type&&")"===R.Token){var L=A.pop();if(N<j.length-1)for(var M=N+1;M<j.length;M++)if("Token.Operator"===j[M].Type){L.NextOperator=j[M];break}L.PreviousOperator&&L.NextOperator&&(L.PreviousOperator.Descriptor.Precedence<=L.NextOperator.Descriptor.Precedence?L.NextOperator.LeftVirtualSymbolName=L.PreviousOperator.VirtualSymbolName:L.PreviousOperator.RightVirtualSymbolName=L.NextOperator.VirtualSymbolName)}else"SolveLayerStack"in R||(A.length>0?R.SolveLayerStack=A[A.length-1].SolveLayerStack:R.SolveLayerStack="Expression_Root")}for(var D=0;D<p.length;D++){for(var I=!1,F=!1,V=l[p[D]],U=V.length-1;U>=0;U--){var B=V[U];"Token.Operator"===B.Type&&(F?B.Descriptor.Precedence>I?(B.RightVirtualSymbolName=F.VirtualSymbolName,F=B):B.Descriptor.Precedence<I&&(F=B):F=B,I=B.Descriptor.Precedence)}for(var H=[],W=!1,$=V.length-1;$>=0;$--){var z=V[$];if("Token.Operator"===z.Type){if(W)if(z.Descriptor.Precedence>I){if(H.length>0)for(var q=H.length-1;q>=0;q--)if(H[q].Descriptor.Precedence>=z.Descriptor.Precedence){H[q].LeftVirtualSymbolName=z.VirtualSymbolName,H.slice(q,1);break}W=z}else z.Descriptor.Precedence<I&&(H.push(W),W=z);else W=z;I=z.Descriptor.Precedence}}}for(var G=0;G<p.length;G++){var J=l[p[G]];if(1!==J.length){for(var Y=0;Y<=this.ExpressionParser.tokenMaxPrecedence;Y++)for(var Q=0;Q<J.length;Q++)if("Token.Operator"===J[Q].Type&&J[Q].Descriptor.Precedence===Y){var K=J[Q];if(0==Q&&"-"==K.Token){var Z=this.getTokenContainerObject("*");Z.VirtualSymbolName=K.VirtualSymbolName,r.PostfixSolveList.push(this.getPosfixSolveListOperation(Z,this.getTokenContainerObject("-1.0"),J[Q+1]))}else if(Q>0&&"-"==K.Token&&("Token.Operator"===J[Q-1].Type||"("===J[Q-1].Token)){var X=this.getTokenContainerObject("*");X.VirtualSymbolName=K.VirtualSymbolName,r.PostfixSolveList.push(this.getPosfixSolveListOperation(X,this.getTokenContainerObject("-1.0"),J[Q+1]))}else{if(0==Q&&"+"==K.Token)continue;if(Q>0&&"+"==K.Token&&("Token.Operator"===J[Q-1].Type||"("===J[Q-1].Token))continue;r.PostfixSolveList.push(this.getPosfixSolveListOperation(K,J[Q-1],J[Q+1],J,Q))}}else if("Token.Function"===J[Q].Type&&0===Y){var ee=J[Q];r.PostfixSolveList.push(this.getPosfixSolveListOperation(ee,J[Q+1],this.getTokenContainerObject("0.0")))}}else{var te=this.getTokenContainerObject("=");if(te.VirtualSymbolName=r.PostfixLayerstackMap[J[0].SolveLayerStack],!te.VirtualSymbolName)for(var re=0;re<r.PostfixTokenObjects.length;re++)if(r.PostfixTokenObjects[re].ParenthesisStack===J[0].SolveLayerStack){te.VirtualSymbolName=r.PostfixTokenObjects[re].VirtualSymbolName;break}r.PostfixSolveList.push(this.getPosfixSolveListOperation(te,J[0],this.getTokenContainerObject("0.0")))}}var ne=this.getTokenContainerObject("=");ne.VirtualSymbolName=r.PostfixedAssignmentAddress;var ie=this.getTokenContainerObject("Result","Token.LastResult"),oe=this.getPosfixSolveListOperation(ne,ie,this.getTokenContainerObject("SolverMarshal","Token.SolverMarshal"));return r.PostfixSolveList.push(oe),r.PostfixSolveList}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136}],142:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-Solver",i}return _inherits(t,e),_createClass2(t,[{key:"solvePostfixedExpression",value:function(e,t,r,n){var i="object"===_typeof(r)?r:{ExpressionParserLog:[]},o="object"===_typeof(n)?n:this.fable.newManyfest(),a="object"===_typeof(t)?t:{},s="fable"in i;if(s||(i.fable=this.fable),!Array.isArray(e))return i.ExpressionParserLog.push("ERROR: ExpressionParser.solvePostfixedExpression was passed a non-array postfixed expression."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1;if(e.length<1)return i.ExpressionParserLog.push("ERROR: ExpressionParser.solvePostfixedExpression was passed an empty postfixed expression."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1;i.VirtualSymbols={};for(var u=0;u<e.length;u++)if("Token.SolverInstruction"!==e[u].Operation.Type){var c={ExpressionStep:e[u],ExpressionStepIndex:u,ResultsObject:i,Manifest:o};if("Token.LastResult"===c.ExpressionStep.LeftValue.Type&&(c.ExpressionStep.LeftValue.Value=i.LastResult),"Token.LastResult"===c.ExpressionStep.RightValue.Type&&(c.ExpressionStep.RightValue.Value=i.LastResult),"Token.VirtualSymbol"===c.ExpressionStep.LeftValue.Type&&(c.ExpressionStep.LeftValue.Value=o.getValueAtAddress(i.VirtualSymbols,c.ExpressionStep.LeftValue.Token)),"Token.VirtualSymbol"===c.ExpressionStep.RightValue.Type&&(c.ExpressionStep.RightValue.Value=o.getValueAtAddress(i.VirtualSymbols,c.ExpressionStep.RightValue.Token)),"Token.Parenthesis"===c.ExpressionStep.LeftValue.Type&&(c.ExpressionStep.LeftValue.Value=o.getValueAtAddress(i.VirtualSymbols,c.ExpressionStep.LeftValue.VirtualSymbolName)),"Token.Parenthesis"===c.ExpressionStep.RightValue.Type&&(c.ExpressionStep.RightValue.Value=o.getValueAtAddress(i.VirtualSymbols,c.ExpressionStep.RightValue.VirtualSymbolName)),"Token.Constant"!==c.ExpressionStep.LeftValue.Type||"Value"in c.ExpressionStep.LeftValue||(c.ExpressionStep.LeftValue.Value=c.ExpressionStep.LeftValue.Token),"Token.Constant"!==c.ExpressionStep.RightValue.Type||"Value"in c.ExpressionStep.RightValue||(c.ExpressionStep.RightValue.Value=c.ExpressionStep.RightValue.Token),c.ExpressionStep.Operation.Type="Operator"){var l=!1,f=!1;if(c.ExpressionStep.Operation.Token in this.ExpressionParser.tokenMap?l="ResultsObject.".concat(c.ExpressionStep.Operation.Descriptor.Function):c.ExpressionStep.Operation.Token.toLowerCase()in this.ExpressionParser.functionMap&&(f=!0,l="ResultsObject.".concat(this.ExpressionParser.functionMap[c.ExpressionStep.Operation.Token.toLowerCase()].Address)),f)try{if(c.ExpressionStep.LeftValue.ArgumentString="",void 0===c.ExpressionStep.LeftValue.Value)c.ExpressionStep.LeftValue.Arguments=[];else if(Array.isArray(c.ExpressionStep.LeftValue.Value))c.ExpressionStep.LeftValue.Arguments=c.ExpressionStep.LeftValue.Value,c.ExpressionStep.LeftValue.ArgumentString="ExpressionStep.LeftValue.Arguments";else if("object"===_typeof(c.ExpressionStep.LeftValue.Value))c.ExpressionStep.LeftValue.Arguments=c.ExpressionStep.LeftValue.Value,c.ExpressionStep.LeftValue.ArgumentString="ExpressionStep.LeftValue.Arguments";else{c.ExpressionStep.LeftValue.Arguments=c.ExpressionStep.LeftValue.Value.toString().split(",");for(var h=0;h<c.ExpressionStep.LeftValue.Arguments.length;h++)""!==c.ExpressionStep.LeftValue.ArgumentString&&(c.ExpressionStep.LeftValue.ArgumentString+=","),c.ExpressionStep.LeftValue.ArgumentString+="ExpressionStep.LeftValue.Arguments[".concat(h,"]")}o.setValueAtAddress(i.VirtualSymbols,c.ExpressionStep.VirtualSymbolName,o.getValueAtAddress(c,"".concat(l,"(").concat(c.ExpressionStep.LeftValue.ArgumentString,")"))),i.LastResult=o.getValueAtAddress(i.VirtualSymbols,c.ExpressionStep.VirtualSymbolName)}catch(e){return i.ExpressionParserLog.push("ERROR: ExpressionParser.solvePostfixedExpression failed to solve step ".concat(u," with function ").concat(c.ExpressionStep.Operation.Token,": ").concat(e)),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1}else try{o.setValueAtAddress(i.VirtualSymbols,c.ExpressionStep.VirtualSymbolName,o.getValueAtAddress(c,"".concat(l,"(ExpressionStep.LeftValue.Value,ExpressionStep.RightValue.Value)"))),i.LastResult=o.getValueAtAddress(i.VirtualSymbols,c.ExpressionStep.VirtualSymbolName)}catch(e){return i.ExpressionParserLog.push("ERROR: ExpressionParser.solvePostfixedExpression failed to solve step ".concat(u," with function ").concat(c.ExpressionStep.Operation.Token,": ").concat(e)),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1}i.SolverFinalVirtualSymbol=c.ExpressionStep.VirtualSymbolName}}for(var p=o.getValueAtAddress(i,"VirtualSymbols.".concat(i.SolverFinalVirtualSymbol)),d=0;d<e.length;d++)"Token.SolverMarshal"===e[d].RightValue.Type&&(o.setValueAtAddress(i.VirtualSymbols,e[d].VirtualSymbolName,p),o.setValueByHash(a,e[d].VirtualSymbolName,p));return i.RawResult=p,s||delete i.fable,p.toString()}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136}],143:[function(e,t,r){t.exports={"=":{Name:"Equals",Token:"=",Function:"fable.Math.assignValue",Precedence:0,Type:"Assignment"},"(":{Name:"Left Parenthesis",Token:"(",Precedence:0,Type:"Parenthesis"},")":{Name:"Right Parenthesis",Token:")",Precedence:0,Type:"Parenthesis"},",":{Name:"Set Concatenate",Token:",",Function:"fable.Math.setConcatenate",Precedence:4,Type:"Operator"},"*":{Name:"Multiply",Token:"*",Function:"fable.Math.multiplyPrecise",Precedence:3,Type:"Operator"},"/":{Name:"Divide",Token:"/",Function:"fable.Math.dividePrecise",Precedence:3,Type:"Operator"},"^":{Name:"Exponent",Token:"^",Function:"fable.Math.powerPrecise",Precedence:1,Type:"Operator"},"%":{Name:"Modulus",Token:"%",Function:"fable.Math.modPrecise",Precedence:3,Type:"Operator"},"+":{Name:"Add",Token:"+",Function:"fable.Math.addPrecise",Precedence:4,Type:"Operator"},"-":{Name:"Subtract",Token:"-",Function:"fable.Math.subtractPrecise",Precedence:4,Type:"Operator"}}},{}],144:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ExpressionParser-ValueMarshal",i}return _inherits(t,e),_createClass2(t,[{key:"substituteValuesInTokenizedObjects",value:function(e,t,r,n){var i="object"===_typeof(r)?r:{ExpressionParserLog:[]};if(!Array.isArray(e))return i.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects was passed a non-array tokenized object list."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),e;if("object"!==_typeof(t))return i.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects either was passed no data source, or was passed a non-object data source."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),e;for(var o=t,a="object"==_typeof(n)?n:this.fable.newManyfest(n),s=0;s<e.length;s++)if("object"===_typeof(e[s])){var u=e[s];if("Token.Symbol"===e[s].Type&&!u.Resolved){var c=a.getValueByHash(o,u.Token);if(!c){i.ExpressionParserLog.push("WARNING: ExpressionParser.substituteValuesInTokenizedObjects found no value for the symbol hash or address ".concat(u.Token," at index ").concat(s)),this.log.warn(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);continue}i.ExpressionParserLog.push("INFO: ExpressionParser.substituteValuesInTokenizedObjects found a value [".concat(c,"] for the state address ").concat(u.Token," at index ").concat(s)),this.LogNoisiness>1&&this.log.info(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);try{var l=new this.fable.Utility.bigNumber(c);u.Resolved=!0,u.Value=l.toString()}catch(e){Array.isArray(c)||"object"===_typeof(c)?(u.Resolved=!0,u.Value=c):(i.ExpressionParserLog.push("INFO: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric, non-set value for the state address ".concat(u.Token," at index ").concat(s)),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),u.Resolved=!1)}}if("Token.StateAddress"===e[s].Type&&!u.Resolved){var f=a.getValueAtAddress(o,u.Token);if(!f){i.ExpressionParserLog.push("WARNING: ExpressionParser.substituteValuesInTokenizedObjects found no value for the state address ".concat(u.Token," at index ").concat(s)),this.log.warn(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);continue}this.log.info(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);try{var h=new this.fable.Utility.bigNumber(f);u.Resolved=!0,u.Value=h.toString()}catch(e){i.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric value for the state address ".concat(u.Token," at index ").concat(s)),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),u.Resolved=!1}}if("Token.Constant"===e[s].Type&&!u.Resolved){i.ExpressionParserLog.push("INFO: ExpressionParser.substituteValuesInTokenizedObjects found a value [".concat(u.Token,"] for the constant ").concat(u.Token," at index ").concat(s)),this.LogNoisiness>1&&this.log.info(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);try{var p=new this.fable.Utility.bigNumber(u.Token);u.Resolved=!0,u.Value=p.toString()}catch(e){i.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric value for the state address ".concat(u.Token," at index ").concat(s)),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),u.Resolved=!1}}}else i.ExpressionParserLog.push("WARNING: ExpressionParser.substituteValuesInTokenizedObjects found a non-object tokenized object at index ".concat(s)),this.log.warn(i.ExpressionParserLog[i.ExpressionParserLog.length-1]);return e}}]),t}(e("./Fable-Service-ExpressionParser-Base.js"));t.exports=n},{"./Fable-Service-ExpressionParser-Base.js":136}],145:[function(e,t,r){(function(r){(function(){var n=e("fable-serviceproviderbase"),i=e("fs"),o=e("path"),a=e("readline"),s=function(e){function t(e,n,s){var u;return _classCallCheck2(this,t),(u=_callSuper(this,t,[e,n,s])).serviceType="FilePersistence","Mode"in u.options||(u.options.Mode=parseInt("0777",8)&~r.umask()),u.libFS=i,u.libPath=o,u.libReadline=a,u}return _inherits(t,e),_createClass2(t,[{key:"joinPath",value:function(){return o.resolve.apply(o,arguments)}},{key:"existsSync",value:function(e){return i.existsSync(e)}},{key:"exists",value:function(e,t){return t(null,this.existsSync(e))}},{key:"appendFileSync",value:function(e,t,r){var n=void 0===r?"utf8":r;return i.appendFileSync(e,t,n)}},{key:"deleteFileSync",value:function(e){return i.unlinkSync(e)}},{key:"deleteFolderSync",value:function(e){return i.rmdirSync(e)}},{key:"readFileSync",value:function(e,t){var r=void 0===t?"utf8":t;return i.readFileSync(e,r)}},{key:"readFile",value:function(e,t,r){var n=void 0===t?"utf8":t;return i.readFile(e,n,r)}},{key:"writeFileSync",value:function(e,t,r){var n=void 0===r?"utf8":r;return i.writeFileSync(e,t,n)}},{key:"writeFileSyncFromObject",value:function(e,t){return this.writeFileSync(e,JSON.stringify(t,null,4))}},{key:"writeFileSyncFromArray",value:function(e,t){if(!Array.isArray(t))return this.log.error("File Persistence Service attempted to write ".concat(e," from array but the expected array was not an array (it was a ").concat(_typeof(t),").")),Error("Attempted to write ${pFileName} from array but the expected array was not an array (it was a ${typeof(pFileArray)}).");for(var r=0;r<t.length;r++)return this.appendFileSync(e,"".concat(t[r],"\n"))}},{key:"writeFile",value:function(e,t,r,n){var o=void 0===r?"utf8":r;return i.writeFile(e,t,o,n)}},{key:"lineReaderFactory",value:function(e,t,r,n){var o={};return"string"==typeof e&&(o.filePath=e,o.fileStream=i.createReadStream(o.filePath),o.reader=a.createInterface({input:o.fileStream,crlfDelay:1/0}),"function"==typeof n&&o.reader.on("error",n),o.reader.on("line","function"==typeof t?t:function(){}),"function"==typeof r&&o.reader.on("close",r),o)}},{key:"makeFolderRecursive",value:function(e,t){var r=this,n=e;if("string"==typeof e)n={Path:e};else if("object"!==_typeof(e))return t(new Error("Parameters object or string not properly passed to recursive folder create.")),!1;return"string"!=typeof n.Path?(t(new Error("Parameters object needs a path to run the folder create operation.")),!1):("Mode"in n||(n.Mode=this.options.Mode),void 0===n.CurrentPathIndex?(n.ActualPath=o.normalize(n.Path),n.ActualPathParts=n.ActualPath.split(o.sep),n.CurrentPathIndex=0,n.CurrentPath=""):(n.CurrentPath==o.sep?n.CurrentPath=n.CurrentPath+n.ActualPathParts[n.CurrentPathIndex]:n.CurrentPath=n.CurrentPath+o.sep+n.ActualPathParts[n.CurrentPathIndex],n.CurrentPathIndex++),n.CurrentPathIndex>=n.ActualPathParts.length?t(null):void i.open(n.CurrentPath+o.sep+n.ActualPathParts[n.CurrentPathIndex],"r",(function(e,a){if(a&&i.closeSync(a),!e||"ENOENT"!=e.code)return r.makeFolderRecursive(n,t);i.mkdir(n.CurrentPath+o.sep+n.ActualPathParts[n.CurrentPathIndex],n.Mode,(function(e){return e?"EEXIST"==e.code?r.makeFolderRecursive(n,t):(console.log(e.code),t(e)):r.makeFolderRecursive(n,t)}))})))}}]),t}(n);t.exports=s}).call(this)}).call(this,e("_process"))},{_process:87,"fable-serviceproviderbase":51,fs:19,path:83,readline:19}],146:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="Math",i.pi="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679",i}return _inherits(t,e),_createClass2(t,[{key:"roundDown",get:function(){return this.fable.Utility.bigNumber.roundDown}},{key:"roundHalfUp",get:function(){return this.fable.Utility.bigNumber.roundHalfUp}},{key:"roundHalfEven",get:function(){return this.fable.Utility.bigNumber.roundHalfEven}},{key:"roundUp",get:function(){return this.fable.Utility.bigNumber.roundUp}},{key:"parsePrecise",value:function(e,t){var r;try{r=new this.fable.Utility.bigNumber(e)}catch(n){this.log.warn("Error parsing number (type ".concat(_typeof(e),"): ").concat(n)),r=void 0===t?"0.0":t}return r.toString()}},{key:"assignValue",value:function(e){return e}},{key:"percentagePrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;if(0==n)return"0";var i=new this.fable.Utility.bigNumber(r).div(n);return(i=i.times(100)).toString()}},{key:"setConcatenate",value:function(e,t){return"".concat(e,",").concat(t)}},{key:"roundPrecise",value:function(e,t,r){var n=isNaN(e)?0:e,i=isNaN(t)?0:parseInt(t,10),o=void 0===r?this.roundHalfUp:r;return new this.fable.Utility.bigNumber(n).round(i,o).toString()}},{key:"toFixedPrecise",value:function(e,t,r){var n=isNaN(e)?0:e,i=isNaN(t)?0:t,o=void 0===r?this.roundHalfUp:r;return new this.fable.Utility.bigNumber(n).toFixed(i,o).toString()}},{key:"addPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).plus(n).toString()}},{key:"subtractPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).minus(n).toString()}},{key:"powerPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:parseInt(t);return new this.fable.Utility.bigNumber(r).pow(n).toString()}},{key:"multiplyPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).times(n).toString()}},{key:"dividePrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).div(n).toString()}},{key:"modPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).mod(n).toString()}},{key:"sqrtPrecise",value:function(e){var t=isNaN(e)?0:e;return new this.fable.Utility.bigNumber(t).sqrt().toString()}},{key:"absPrecise",value:function(e){var t=isNaN(e)?0:e;return new this.fable.Utility.bigNumber(t).abs().toString()}},{key:"comparePrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).cmp(n)}},{key:"gtPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).gt(n)}},{key:"gtePrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).gte(n)}},{key:"ltPrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).lt(n)}},{key:"ltePrecise",value:function(e,t){var r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.fable.Utility.bigNumber(r).lt(n)}},{key:"radPrecise",value:function(e){var t=isNaN(e)?0:e;return new this.fable.Utility.bigNumber(t).times(Math.PI).div(180).toString()}},{key:"piPrecise",value:function(e){return void 0===e?this.pi:this.roundPrecise(this.pi,e)}},{key:"sin",value:function(e){var t=isNaN(e)?0:e;return Math.sin(t)}},{key:"cos",value:function(e){var t=isNaN(e)?0:e;return Math.cos(t)}},{key:"tan",value:function(e){var t=isNaN(e)?0:e;return Math.tan(t)}},{key:"countSetElements",value:function(e){return Array.isArray(e)?e.length:"object"===_typeof(e)?Object.keys(e).length:e?1:0}},{key:"sortSetPrecise",value:function(e){var t=this,r=[];if(Array.isArray(e))for(var n=0;n<e.length;n++)r.push(this.parsePrecise(e[n],NaN));else if("object"===_typeof(e))for(var i=Object.keys(e),o=0;o<i.length;o++)r.push(this.parsePrecise(e[i[o]],NaN));return r.sort((function(e,r){return t.comparePrecise(e,r)})),r}},{key:"bucketSetPrecise",value:function(e,t){var r={},n=this.parsePrecise(t,NaN);if(Array.isArray(e))for(var i=0;i<e.length;i++){var o=this.parsePrecise(e[i],NaN).toString();isNaN(n)||(o=this.dividePrecise(e[i],n)),o in r||(r[o]=0),r[o]=r[o]+1}else if("object"===_typeof(e))for(var a=Object.keys(e),s=0;s<a.length;s++){var u=this.parsePrecise(e[a[s]],NaN).toString();isNaN(n)||(u=this.dividePrecise(e[s],n)),u in r||(r[u]=0),r[u]=r[u]+1}return r}},{key:"histogramPrecise",value:function(e){return this.bucketSetPrecise(e)}},{key:"sortHistogramPrecise",value:function(e){var t={},r=Object.keys(e);r.sort((function(t,r){return e[t]-e[r]}));for(var n=0;n<r.length;n++)t[r[n]]=e[r[n]];return t}},{key:"maxPrecise",value:function(e){var t=NaN;if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t){var n=this.parsePrecise(e[r],NaN);this.gtPrecise(n,t)&&(t=n)}else t=this.parsePrecise(e[r],NaN);else if("object"===_typeof(e))for(var i=Object.keys(e),o=0;o<i.length;o++)if(t){var a=this.parsePrecise(e[i[o]],NaN);this.gtPrecise(a,t)&&(t=a)}else t=this.parsePrecise(e[i[o]],NaN);return t}},{key:"minPrecise",value:function(e){var t=NaN;if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t){var n=this.parsePrecise(e[r],NaN);!isNaN(n)&&this.ltPrecise(n,t)&&(t=n)}else t=this.parsePrecise(e[r],NaN);else if("object"===_typeof(e))for(var i=Object.keys(e),o=0;o<i.length;o++)if(t){var a=this.parsePrecise(e[i[o]],NaN);!isNaN(a)&&this.ltPrecise(a,t)&&(t=a)}else t=this.parsePrecise(e[i[o]],NaN);return t}},{key:"sumPrecise",value:function(e){var t="0.0";if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=this.parsePrecise(e[r],NaN);isNaN(n)||(t=this.addPrecise(t,n))}else if("object"===_typeof(e))for(var i=Object.keys(e),o=0;o<i.length;o++){var a=this.parsePrecise(e[i[o]],NaN);isNaN(a)||(t=this.addPrecise(t,a))}return t}},{key:"meanPrecise",value:function(e){var t=this.sumPrecise(e),r=this.countSetElements(e);return 0==r?"0.0":this.dividePrecise(t,r)}},{key:"averagePrecise",value:function(e){return this.meanPrecise(e)}},{key:"medianPrecise",value:function(e){var t=this.countSetElements(e);if(0==t)return"0.0";var r=this.sortSetPrecise(e),n=Math.floor(t/2);if(t%2==1)return r[n];var i=r[n-1],o=r[n];return this.dividePrecise(this.addPrecise(i,o),2)}},{key:"modePrecise",value:function(e){for(var t=this.bucketSetPrecise(e),r=0,n=Object.keys(t),i=[],o=0;o<n.length;o++)t[n[o]]>r?(r=t[n[o]],i=[n[o]]):t[n[o]]==r&&i.push(n[o]);return i}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],147:[function(e,t,r){var n=e("fable-serviceproviderbase"),i=e("./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js"),o=e("./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js"),a=function(e){function t(e,r,n){var a;return _classCallCheck2(this,t),(a=_callSuper(this,t,[e,r,n])).serviceType="MetaTemplate",a.WordTree=new i,a.StringParser=new o(a.fable),a.ParseTree=a.WordTree.ParseTree,a}return _inherits(t,e),_createClass2(t,[{key:"addPattern",value:function(e,t,r,n){return this.WordTree.addPattern(e,t,r,n)}},{key:"addPatternBoth",value:function(e,t,r,n,i){return this.WordTree.addPatternBoth(e,t,r,n,i)}},{key:"parseString",value:function(e,t,r,n){return this.LogNoisiness>4&&this.fable.log.trace("Metatemplate parsing template string [".concat(e,"] where the callback is a ").concat(_typeof(r)),{TemplateData:t}),this.StringParser.parseString(e,this.ParseTree,t,r,n)}}]),t}(n);t.exports=a},{"./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js":148,"./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js":149,"fable-serviceproviderbase":51}],148:[function(e,t,r){var n=function(){function e(t){_classCallCheck2(this,e),this.fable=t}return _createClass2(e,[{key:"newParserState",value:function(e){return{ParseTree:e,Asynchronous:!1,Output:"",OutputBuffer:"",Pattern:{},PatternMatch:!1,PatternMatchEnd:!1}}},{key:"appendOutputBuffer",value:function(e,t){t.OutputBuffer+=e}},{key:"flushOutputBuffer",value:function(e){e.Output+=e.OutputBuffer,e.OutputBuffer=""}},{key:"resetOutputBuffer",value:function(e){return this.flushOutputBuffer(e),e.Pattern=!1,e.PatternStartNode=!1,e.StartPatternMatchComplete=!1,e.EndPatternMatchBegan=!1,e.PatternMatch=!1,!0}},{key:"parseCharacter",value:function(e,t,r,n){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&e in t.Pattern)t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan){if(e in t.Pattern.PatternEnd){t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t);var i="ParserContext"in t.Pattern&&t.Pattern.ParserContext;return t.OutputBuffer=i?t.Pattern.Parse.call(i,t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n):t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n),this.resetOutputBuffer(t)}e in t.PatternStartNode.PatternEnd?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t))}else if("PatternEnd"in t.Pattern){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),e in t.Pattern.PatternEnd&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],"Parse"in t.Pattern)){var o="ParserContext"in t.Pattern&&t.Pattern.ParserContext;return t.OutputBuffer=o?t.Pattern.Parse.call(o,t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n):t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n),this.resetOutputBuffer(t)}}else this.resetOutputBuffer(t);if(!t.PatternMatch){if(e in t.ParseTree)return this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0,!0;this.appendOutputBuffer(e,t)}return!1}},{key:"executePatternAsync",value:function(e,t,r,n){var i=this;if(e.Pattern.isAsync){var o="ParserContext"in e.Pattern&&e.Pattern.ParserContext;return o?e.Pattern.ParseAsync.call(o,e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,(function(t,n){return t&&i.fable.log.info("Precedent ERROR: Async template error happened parsing ".concat(e.Pattern.PatternStart," ... ").concat(e.Pattern.PatternEnd,": ").concat(t)),e.OutputBuffer=n,i.resetOutputBuffer(e),r()}),n):e.Pattern.ParseAsync(e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,(function(t,n){return t&&i.fable.log.info("Precedent ERROR: Async template error happened parsing ".concat(e.Pattern.PatternStart," ... ").concat(e.Pattern.PatternEnd,": ").concat(t)),e.OutputBuffer=n,i.resetOutputBuffer(e),r()}),n)}var a="ParserContext"in e.Pattern&&e.Pattern.ParserContext;return e.OutputBuffer=a?e.Pattern.Parse.call(a,e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,n):e.Pattern.Parse(e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,n),this.resetOutputBuffer(e),r()}},{key:"parseCharacterAsync",value:function(e,t,r,n,i){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&e in t.Pattern)t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan)if(e in t.Pattern.PatternEnd){if(t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t),"Parse"in t.Pattern)return this.executePatternAsync(t,r,n,i)}else e in t.PatternStartNode.PatternEnd?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t));else if("PatternEnd"in t.Pattern){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),e in t.Pattern.PatternEnd&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],"Parse"in t.Pattern))return this.executePatternAsync(t,r,n,i)}else this.resetOutputBuffer(t);else e in t.ParseTree?(this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0):this.appendOutputBuffer(e,t);return n()}},{key:"parseString",value:function(e,t,r,n,i){var o=this,a=Array.isArray(i)?i:[],s=Array.from(a);if(s.push(r),"function"!=typeof n){for(var u=this.newParserState(t),c=0;c<e.length;c++)this.parseCharacter(e[c],u,r,s);return this.flushOutputBuffer(u),u.Output}var l=this.newParserState(t);l.Asynchronous=!0;for(var f=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate"),h=function(t){f.anticipate((function(n){o.parseCharacterAsync(e[t],l,r,n,s)}))},p=0;p<e.length;p++)h(p);f.wait((function(e){return o.flushOutputBuffer(l),n(e,l.Output)}))}}]),e}();t.exports=n},{}],149:[function(e,t,r){var n=function(){function e(){_classCallCheck2(this,e),this.ParseTree={}}return _createClass2(e,[{key:"addChild",value:function(e,t){return t in e||(e[t]={}),e[t]}},{key:"addEndChild",value:function(e,t){return"PatternEnd"in e||(e.PatternEnd={}),e.PatternEnd[t]={},e.PatternEnd[t]}},{key:"addPatternBoth",value:function(e,t,r,n,i){if(e.length<1)return!1;if("string"==typeof t&&t.length<1)return!1;for(var o=this.ParseTree,a=0;a<e.length;a++)o=this.addChild(o,e[a],a);"PatternEnd"in o||(o.PatternEnd={});for(var s="string"==typeof t?t:e,u=0;u<s.length;u++)o=this.addEndChild(o,s[u],u);return o.PatternStartString=e,o.PatternEndString=s,o.Parse="function"==typeof r?r:"string"==typeof r?function(e,t){return r}:function(e,t){return e},o.ParseAsync="function"==typeof n?n:"string"==typeof n?function(e,t,r){return r(null,n)}:function(e,t,r){return r(null,o.Parse(e,t))},i&&(o.ParserContext=i),o.isAsync=!0,o}},{key:"addPattern",value:function(e,t,r,n){return this.addPatternBoth(e,t,r,null,n)}}]),e}();t.exports=n},{}],150:[function(e,t,r){t.exports={Metadata:{UUID:!1,Hash:!1,Name:"",Summary:"",Version:0},Status:{Completed:!1,StepCount:0},Steps:[],Errors:[],Log:[]}},{}],151:[function(e,t,r){e("big.js").PE;var n=e("fable-serviceproviderbase"),i=JSON.stringify(e("./Fable-Service-Operation-DefaultSettings.js")),o=function(e){function t(e,r,n){var o;return _classCallCheck2(this,t),(o=_callSuper(this,t,[e,r,n])).timeStamps={},o.serviceType="PhasedOperation",o.state=JSON.parse(i),o.stepMap={},o.stepFunctions={},o.state.Metadata.Hash=o.Hash,o.state.Metadata.UUID=o.UUID,o.state.Metadata.Name="string"==typeof o.options.Name?o.options.Name:"Unnamed Operation ".concat(o.state.Metadata.UUID),o.name=o.state.Metadata.Name,o.progressTrackerSet=o.fable.instantiateServiceProviderWithoutRegistration("ProgressTrackerSet"),o.state.OverallProgressTracker=o.progressTrackerSet.createProgressTracker("Overall-".concat(o.state.Metadata.UUID)),o.log=_assertThisInitialized(o),o}return _inherits(t,e),_createClass2(t,[{key:"execute",value:function(e){var t=this;if(this.state.OverallProgressTracker.StartTimeStamp>0)return e(new Error("Operation [".concat(this.state.Metadata.UUID,"] ").concat(this.state.Metadata.Name," has already been executed!")));var r=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");this.progressTrackerSet.setProgressTrackerTotalOperations(this.state.OverallProgressTracker.Hash,this.state.Status.StepCount),this.progressTrackerSet.startProgressTracker(this.state.OverallProgressTracker.Hash),this.info("Operation [".concat(this.state.Metadata.UUID,"] ").concat(this.state.Metadata.Name," starting..."));for(var n=function(e){r.anticipate(function(t){return this.fable.log.info("Step #".concat(e," [").concat(this.state.Steps[e].GUIDStep,"] ").concat(this.state.Steps[e].Name," starting...")),this.progressTrackerSet.startProgressTracker(this.state.Steps[e].ProgressTracker.Hash),t()}.bind(t)),r.anticipate(t.stepFunctions[t.state.Steps[e].GUIDStep].bind({log:t,fable:t.fable,options:t.state.Steps[e].Metadata,metadata:t.state.Steps[e].Metadata,ProgressTracker:t.progressTrackerSet.getProgressTracker(t.state.Steps[e].ProgressTracker.Hash),logProgressTrackerStatus:function(){return this.log.info("Step #".concat(e," [").concat(this.state.Steps[e].GUIDStep,"]: ").concat(this.progressTrackerSet.getProgressTrackerStatusString(this.state.Steps[e].ProgressTracker.Hash)))}.bind(t),OperationState:t.state,StepState:t.state.Steps[e]})),r.anticipate(function(t){this.progressTrackerSet.endProgressTracker(this.state.Steps[e].ProgressTracker.Hash);var r=this.progressTrackerSet.getProgressTrackerStatusString(this.state.Steps[e].ProgressTracker.Hash);this.fable.log.info("Step #".concat(e," [").concat(this.state.Steps[e].GUIDStep,"] ").concat(this.state.Steps[e].Name," complete.")),this.fable.log.info("Step #".concat(e," [").concat(this.state.Steps[e].GUIDStep,"] ").concat(this.state.Steps[e].Name," ").concat(r,".")),this.progressTrackerSet.incrementProgressTracker(this.state.OverallProgressTracker.Hash,1);var n=this.progressTrackerSet.getProgressTrackerStatusString(this.state.OverallProgressTracker.Hash);return this.fable.log.info("Operation [".concat(this.state.Metadata.UUID,"] ").concat(n,".")),t()}.bind(t))},i=0;i<this.state.Steps.length;i++)n(i);r.wait((function(r){if(r)return t.fable.log.error("Operation [".concat(t.state.Metadata.UUID,"] ").concat(t.state.Metadata.Name," had an error: ").concat(r),r),e(r);t.info("Operation [".concat(t.state.Metadata.UUID,"] ").concat(t.state.Metadata.Name," complete."));var n=t.progressTrackerSet.getProgressTrackerStatusString(t.state.OverallProgressTracker.Hash);return t.progressTrackerSet.endProgressTracker(t.state.OverallProgressTracker.Hash),t.fable.log.info("Operation [".concat(t.state.Metadata.UUID,"] ").concat(n,".")),e()}))}},{key:"addStep",value:function(e,t,r,n,i){var o={};return o.GUIDStep=void 0!==i?i:"STEP-".concat(this.state.Steps.length,"-").concat(this.fable.DataGeneration.randomNumericString()),o.Name=void 0!==r?r:"Step [".concat(o.GUIDStep,"]"),o.Description=void 0!==n?n:"Step execution of ".concat(o.Name,"."),o.ProgressTracker=this.progressTrackerSet.createProgressTracker(o.GUIDStep),o.Metadata="object"===_typeof(t)?t:{},this.state.Steps.push(o),this.stepMap[o.GUIDStep]=o,this.stepFunctions[o.GUIDStep]="function"==typeof e?e:function(e){return e()},this.state.Status.StepCount++,o}},{key:"setStepTotalOperations",value:function(e,t){if(!(e in this.stepMap))return new Error("Step [".concat(e,"] does not exist in operation [").concat(this.state.Metadata.UUID,"] ").concat(this.state.Metadata.Name," when attempting to set total operations to ").concat(t,"."));this.progressTrackerSet.setProgressTrackerTotalOperations(this.stepMap[e].ProgressTracker.Hash,t)}},{key:"writeOperationLog",value:function(e,t,r){this.state.Log.push("[".concat((new Date).toUTCString(),"]-[").concat(e,"]: ").concat(t)),"object"==_typeof(r)&&this.state.Log.push(JSON.stringify(r))}},{key:"writeOperationErrors",value:function(e,t){this.state.Errors.push("".concat(e)),"object"==_typeof(t)&&this.state.Errors.push(JSON.stringify(t))}},{key:"trace",value:function(e,t){this.writeOperationLog("TRACE",e,t),this.fable.log.trace(e,t)}},{key:"debug",value:function(e,t){this.writeOperationLog("DEBUG",e,t),this.fable.log.debug(e,t)}},{key:"info",value:function(e,t){this.writeOperationLog("INFO",e,t),this.fable.log.info(e,t)}},{key:"warn",value:function(e,t){this.writeOperationLog("WARN",e,t),this.fable.log.warn(e,t)}},{key:"error",value:function(e,t){this.writeOperationLog("ERROR",e,t),this.writeOperationErrors(e,t),this.fable.log.error(e,t)}},{key:"fatal",value:function(e,t){this.writeOperationLog("FATAL",e,t),this.writeOperationErrors(e,t),this.fable.log.fatal(e,t)}}]),t}(n);t.exports=o},{"./Fable-Service-Operation-DefaultSettings.js":150,"big.js":17,"fable-serviceproviderbase":51}],152:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ProgressTime",i.timeStamps={},i}return _inherits(t,e),_createClass2(t,[{key:"formatTimeDuration",value:function(e){var t="number"==typeof e?e:0;if(e<0)return"unknown";var r="";return t>36e5&&(r+=Math.floor(t/36e5)+"h ",t%=36e5),t>6e4&&(r+=Math.floor(t/6e4)+"m ",t%=6e4),t>1e3&&(r+=Math.floor(t/1e3)+"s ",t%=1e3),r+=Math.round(t)+"ms"}},{key:"createTimeStamp",value:function(e){var t="string"==typeof e?e:"Default";return this.timeStamps[t]=+new Date,this.timeStamps[t]}},{key:"getTimeStampValue",value:function(e){var t="string"==typeof e?e:"Default";return t in this.timeStamps?this.timeStamps[t]:-1}},{key:"updateTimeStampValue",value:function(e,t){var r="string"==typeof e?e:"Default",n=!1;return n="string"==typeof t?tmpReference in this.timeStamps&&this.timeStamps[tmpReference]:"number"==typeof t?t:+new Date,r in this.timeStamps&&n?(this.timeStamps[r]=n,this.timeStamps[r]):-1}},{key:"removeTimeStamp",value:function(e){var t="string"==typeof e?e:"Default";return t in this.timeStamps&&(delete this.timeStamps[t],!0)}},{key:"getTimeStampDelta",value:function(e,t){var r="string"==typeof e?e:"Default",n=!1;return n="string"==typeof t?tmpReference in this.timeStamps&&this.timeStamps[tmpReference]:"number"==typeof t?t:+new Date,r in this.timeStamps&&n?n-this.timeStamps[r]:-1}},{key:"getDurationBetweenTimestamps",value:function(e,t){var r="string"==typeof e?e:"Default",n="string"==typeof t?t:"Default";return r in this.timeStamps&&n in this.timeStamps?this.timeStamps[n]-this.timeStamps[r]:-1}},{key:"getTimeStampDeltaMessage",value:function(e,t,r){var n="string"==typeof e?e:"Default",i=void 0!==t?t:"Elapsed for ".concat(n,": "),o=this.getTimeStampDelta(n,r);return"".concat(i," ").concat(this.formatTimeDuration(o))}},{key:"logTimeStampDelta",value:function(e,t,r){this.fable.log.info(this.getTimeStampDeltaMessage(e,t,r))}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],153:[function(e,t,r){var n=function(){function e(t,r){_classCallCheck2(this,e),this.progressTrackerSet=t,this.progressTrackerHash=r,this.data=this.progressTrackerSet.getProgressTrackerData(this.progressTrackerHash)}return _createClass2(e,[{key:"updateProgressTracker",value:function(e){return this.progressTrackerSet.updateProgressTracker(this.progressTrackerHash,e)}},{key:"incrementProgressTracker",value:function(e){return this.progressTrackerSet.incrementProgressTracker(this.progressTrackerHash,e)}},{key:"setProgressTrackerTotalOperations",value:function(e){return this.progressTrackerSet.setProgressTrackerTotalOperations(this.progressTrackerHash,e)}},{key:"getProgressTrackerStatusString",value:function(){return this.progressTrackerSet.getProgressTrackerStatusString(this.progressTrackerHash)}}]),e}();t.exports=n},{}],154:[function(e,t,r){var n=e("fable-serviceproviderbase"),i=e("./Fable-Service-ProgressTracker/ProgressTracker.js"),o=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="ProgressTrackerSet",i.progressTrackers={},i.progressTimes=i.fable.instantiateServiceProviderWithoutRegistration("ProgressTime"),i.progressTimes.createTimeStamp("CurrentTime"),i}return _inherits(t,e),_createClass2(t,[{key:"getProgressTracker",value:function(e){var t="string"==typeof e?e:"Default";return t in this.progressTrackers||(this.fable.log.warn("ProgressTracker ".concat(t," does not exist! Creating a new tracker...")),this.createProgressTracker(t,100)),new i(this,e)}},{key:"getProgressTrackerData",value:function(e){var t="string"==typeof e?e:"Default";return t in this.progressTrackers||(this.fable.log.warn("ProgressTracker ".concat(t," does not exist! Creating a new tracker...")),this.createProgressTracker(t,100)),this.progressTrackers[t]}},{key:"createProgressTracker",value:function(e,t){var r="string"==typeof e?e:"Default",n="number"==typeof t?t:100,i={Hash:r,StartTimeHash:"".concat(r,"-Start"),StartTimeStamp:-1,CurrentTimeStamp:-1,EndTimeHash:"".concat(r,"-End"),EndTimeStamp:-1,PercentComplete:-1,AllowTruePercentComplete:!1,ElapsedTime:-1,AverageOperationTime:-1,EstimatedCompletionTime:-1,TotalCount:n,CurrentCount:-1};return r in this.progressTrackers&&(this.fable.log.warn("ProgressTracker ".concat(r," already exists! Overwriting with a new tracker...")),this.progressTimes.removeTimeStamp(i.StartTimeHash),this.progressTimes.removeTimeStamp(i.EndTimeHash)),this.progressTrackers[r]=i,i}},{key:"setProgressTrackerTotalOperations",value:function(e,t){var r="string"==typeof e?e:"Default",n="number"==typeof t?t:100;return r in this.progressTrackers||(this.fable.log.warn("Attempted to set the total operations of ProgressTracker ".concat(r," but it does not exist! Creating a new tracker...")),this.createProgressTracker(r,n)),this.progressTrackers[r].TotalCount=n,this.progressTrackers[r]}},{key:"startProgressTracker",value:function(e){var t="string"==typeof e?e:"Default";t in this.progressTrackers||this.createProgressTracker(t,100);var r=this.progressTrackers[t];return this.progressTimes.createTimeStamp(this.progressTrackers[t].StartTimeHash),r.StartTimeStamp=this.progressTimes.getTimeStampValue(this.progressTrackers[t].StartTimeHash),r.CurrentCount<0&&(r.CurrentCount=0),this.solveProgressTrackerStatus(t)}},{key:"endProgressTracker",value:function(e){var t="string"==typeof e?e:"Default";if(!(t in this.progressTrackers))return this.fable.log.error("Attempted to end ProgressTracker ".concat(t," that does not exist!")),!1;var r=this.progressTrackers[t];return this.progressTimes.createTimeStamp(this.progressTrackers[t].EndTimeHash),r.EndTimeStamp=this.progressTimes.getTimeStampValue(this.progressTrackers[t].EndTimeHash),this.solveProgressTrackerStatus(t)}},{key:"solveProgressTrackerStatus",value:function(e){var t="string"==typeof e?e:"Default";if(!(t in this.progressTrackers))return this.fable.log.error("Attempted to solve ProgressTracker ".concat(t," that does not exist!")),!1;var r=this.progressTrackers[t];return(r.TotalCount<1||isNaN(r.TotalCount))&&(this.fable.log.error("ProgressTracker ".concat(r.Hash," has an invalid total count of operations (").concat(r.TotalCount,"! Setting it to the default of 100...")),r.TotalCount=100),r.CurrentCount<1?r.PercentComplete=0:r.PercentComplete=r.CurrentCount/r.TotalCount*100,!r.AllowTruePercentComplete&&r.PercentComplete>100&&(r.PercentComplete=100),this.progressTimes.updateTimeStampValue("CurrentTime"),r.CurrentTimeStamp=this.progressTimes.getTimeStampValue("CurrentTime"),r.ElapsedTime=r.CurrentTimeStamp-r.StartTimeStamp,r.EndTimeStamp>0&&(r.ElapsedTime=r.EndTimeStamp-r.StartTimeStamp),r.CurrentCount>0?r.AverageOperationTime=(r.CurrentTimeStamp-r.StartTimeStamp)/r.CurrentCount:r.AverageOperationTime=-1,r.AverageOperationTime>0?r.EstimatedCompletionTime=Math.max(r.TotalCount-r.CurrentCount,0)*r.AverageOperationTime:r.EstimatedCompletionTime=-1,r}},{key:"updateProgressTracker",value:function(e,t){var r="string"==typeof e?e:"Default",n=parseInt(t);return isNaN(n)?(this.fable.log.warn("Attempted to update ProgressTracker ".concat(r," with an invalid number of operations!")),!1):(r in this.progressTrackers||this.createProgressTracker(100,r),this.progressTrackers[r].CurrentCount=n,this.solveProgressTrackerStatus(r))}},{key:"incrementProgressTracker",value:function(e,t){var r="string"==typeof e?e:"Default",n=parseInt(t);return isNaN(n)&&(n=1),r in this.progressTrackers?(this.progressTrackers[r].StartTimeStamp<1&&(this.fable.log.warn("Attempted to increment ProgressTracker ".concat(r," but it was not started.. starting now.")),this.startProgressTracker(r)),this.progressTrackers[r].CurrentCount=this.progressTrackers[r].CurrentCount+n,this.solveProgressTrackerStatus(r)):(this.fable.log.warn("Attempted to increment ProgressTracker ".concat(r," but it did not exist.")),!1)}},{key:"getProgressTrackerCompletedOperationCountString",value:function(e){var t="string"==typeof e?e:"Default",r=this.progressTrackers[t];return r.CurrentCount<0?"none":r.CurrentCount<1?"0":"".concat(r.CurrentCount)}},{key:"getProgressTrackerPercentCompleteString",value:function(e){var t="string"==typeof e?e:"Default";if(this.solveProgressTrackerStatus(t),t in this.progressTrackers){var r=this.progressTrackers[t];return r.StartTimeStamp<1||r.CurrentCount<1?"0%":(r.EndTimeStamp,"".concat(r.PercentComplete.toFixed(3),"%"))}return"ProgressTracker ".concat(t," does not exist! No stats to display.")}},{key:"getProgressTrackerStatusString",value:function(e){var t="string"==typeof e?e:"Default";if(this.solveProgressTrackerStatus(t),t in this.progressTrackers){var r=this.progressTrackers[t];return r.StartTimeStamp<1?"ProgressTracker ".concat(r.Hash," has not been started yet."):r.CurrentCount<1&&r.EndTimeStamp<1?"ProgressTracker ".concat(r.Hash," has no completed operations. ").concat(this.progressTimes.formatTimeDuration(r.ElapsedTime)," have elapsed since it was started."):r.EndTimeStamp<1?"ProgressTracker ".concat(r.Hash," is ").concat(r.PercentComplete.toFixed(3),"% completed - ").concat(r.CurrentCount," / ").concat(r.TotalCount," operations over ").concat(this.progressTimes.formatTimeDuration(r.ElapsedTime)," (median ").concat(this.progressTimes.formatTimeDuration(r.AverageOperationTime)," per). Estimated completion: ").concat(this.progressTimes.formatTimeDuration(r.EstimatedCompletionTime)):"ProgressTracker ".concat(r.Hash," is done. ").concat(r.CurrentCount," / ").concat(r.TotalCount," operations were completed in ").concat(this.progressTimes.formatTimeDuration(r.ElapsedTime)," (median ").concat(this.progressTimes.formatTimeDuration(r.AverageOperationTime)," per).")}return"ProgressTracker ".concat(t," does not exist! No stats to display.")}},{key:"logProgressTrackerStatus",value:function(e){this.fable.log.info(this.getProgressTrackerStatusString(e))}}]),t}(n);t.exports=o},{"./Fable-Service-ProgressTracker/ProgressTracker.js":153,"fable-serviceproviderbase":51}],155:[function(e,t,r){(function(r){(function(){var n=e("fable-serviceproviderbase"),i=e("simple-get"),o=e("cookie"),a=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).TraceLog=!1,(i.options.TraceLog||i.fable.TraceLog)&&(i.TraceLog=!0),i.dataFormat=i.fable.services.DataFormat,i.serviceType="RestClient",i.cookie=!1,i.prepareRequestOptions=function(e){return e},i}return _inherits(t,e),_createClass2(t,[{key:"simpleGet",get:function(){return i}},{key:"prepareCookies",value:function(e){if(this.cookie){var t=this.cookie;"headers"in e||(e.headers={});var r=Object.keys(t);r.length>0&&(e.headers.cookie=o.serialize(r[0],t[r[0]]))}return e}},{key:"preRequest",value:function(e){var t=this.prepareCookies(e);return"RestClientURLPrefix"in this.fable.settings&&(t.url=this.fable.settings.RestClientURLPrefix+t.url),this.prepareRequestOptions(t)}},{key:"executeChunkedRequest",value:function(e,t){var r=this,n=this.preRequest(e);return n.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug("Beginning ".concat(n.method," request to ").concat(n.url," at ").concat(n.RequestStartTime)),i(n,(function(e,i){if(e)return t(e,i);if(r.TraceLog){var o=r.fable.log.getTimeStamp();r.fable.log.debug("--\x3e ".concat(n.method," connected in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,o),"ms code ").concat(i.statusCode))}var a="";i.on("data",(function(e){if(r.TraceLog){var t=r.fable.log.getTimeStamp();r.fable.log.debug("--\x3e ".concat(n.method," data chunk size ").concat(e.length,"b received in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,t),"ms"))}a+=e})),i.on("end",(function(){if(r.TraceLog){var o=r.fable.log.getTimeStamp();r.fable.log.debug("==> ".concat(n.method," completed data size ").concat(a.length,"b received in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,o),"ms"))}return t(e,i,a)}))}))}},{key:"executeChunkedRequestBinary",value:function(e,t){var n=this,o=this.preRequest(e);return o.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug("Beginning ".concat(o.method," request to ").concat(o.url," at ").concat(o.RequestStartTime)),o.json=!1,o.encoding=null,i(o,(function(e,i){if(e)return t(e,i);if(n.TraceLog){var a=n.fable.log.getTimeStamp();n.fable.log.debug("--\x3e ".concat(o.method," connected in ").concat(n.dataFormat.formatTimeDelta(o.RequestStartTime,a),"ms code ").concat(i.statusCode))}var s=!1;i.on("data",(function(e){if(n.TraceLog){var t=n.fable.log.getTimeStamp();n.fable.log.debug("--\x3e ".concat(o.method," data chunk size ").concat(e.length,"b received in ").concat(n.dataFormat.formatTimeDelta(o.RequestStartTime,t),"ms"))}s=s?r.concat([s,e]):r.from(e)})),i.on("end",(function(){if(n.TraceLog){var r=n.fable.log.getTimeStamp();n.fable.log.debug("==> ".concat(o.method," completed data size ").concat(s.length,"b received in ").concat(n.dataFormat.formatTimeDelta(o.RequestStartTime,r),"ms"))}return t(e,i,s)}))}))}},{key:"executeJSONRequest",value:function(e,t){var r=this;e.json=!0;var n=this.preRequest(e);return"headers"in n||(n.headers={}),n.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug("Beginning ".concat(n.method," JSON request to ").concat(n.url," at ").concat(n.RequestStartTime)),i(n,(function(e,i){if(e)return t(e,i);if(r.TraceLog){var o=r.fable.log.getTimeStamp();r.fable.log.debug("--\x3e JSON ".concat(n.method," connected in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,o),"ms code ").concat(i.statusCode))}var a="";i.on("data",(function(e){if(r.TraceLog){var t=r.fable.log.getTimeStamp();r.fable.log.debug("--\x3e JSON ".concat(n.method," data chunk size ").concat(e.length,"b received in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,t),"ms"))}a+=e})),i.on("end",(function(){if(r.TraceLog){var o=r.fable.log.getTimeStamp();r.fable.log.debug("==> JSON ".concat(n.method," completed - received in ").concat(r.dataFormat.formatTimeDelta(n.RequestStartTime,o),"ms"))}return t(e,i,JSON.parse(a))}))}))}},{key:"getJSON",value:function(e,t){var r="object"==_typeof(e)?e:{};return"string"==typeof e&&(r.url=e),r.method="GET",this.executeJSONRequest(r,t)}},{key:"putJSON",value:function(e,t){return"object"!=_typeof(e.body)?t(new Error("PUT JSON Error Invalid options object")):(e.method="PUT",this.executeJSONRequest(e,t))}},{key:"postJSON",value:function(e,t){return"object"!=_typeof(e.body)?t(new Error("POST JSON Error Invalid options object")):(e.method="POST",this.executeJSONRequest(e,t))}},{key:"patchJSON",value:function(e,t){return"object"!=_typeof(e.body)?t(new Error("PATCH JSON Error Invalid options object")):(e.method="PATCH",this.executeJSONRequest(e,t))}},{key:"headJSON",value:function(e,t){return"object"!=_typeof(e.body)?t(new Error("HEAD JSON Error Invalid options object")):(e.method="HEAD",this.executeJSONRequest(e,t))}},{key:"delJSON",value:function(e,t){return e.method="DELETE",this.executeJSONRequest(e,t)}},{key:"getRawText",value:function(e,t){var r="object"==_typeof(e)?e:{};return"string"==typeof e&&(r.url=e),r.method="GET",this.executeChunkedRequest(r,t)}}]),t}(n);t.exports=a}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20,cookie:27,"fable-serviceproviderbase":51,"simple-get":101}],156:[function(e,t,r){var n=function(e){function t(e,r,n){var i;return _classCallCheck2(this,t),(i=_callSuper(this,t,[e,r,n])).serviceType="Template",i.Matchers={Evaluate:/<%([\s\S]+?)%>/g,Interpolate:/<%=([\s\S]+?)%>/g,Escaper:/\\|'|\r|\n|\t|\u2028|\u2029/g,Unescaper:/\\(\\|'|r|n|t|u2028|u2029)/g,GuaranteedNonMatch:/.^/},i.templateEscapes={"\\":"\\","'":"'",r:"\r","\r":"r",n:"\n","\n":"n",t:"\t","\t":"t",u2028:"\u2028","\u2028":"u2028",u2029:"\u2029","\u2029":"u2029"},i.renderFunction=!1,i.templateString=!1,i}return _inherits(t,e),_createClass2(t,[{key:"renderTemplate",value:function(e){return this.renderFunction(e)}},{key:"templateFunction",value:function(){return this.renderTemplate.bind(this)}},{key:"buildTemplateFunction",value:function(e,t){var r=this;return this.TemplateSource="__p+='"+e.replace(this.Matchers.Escaper,(function(e){return"\\".concat(r.templateEscapes[e])})).replace(this.Matchers.Interpolate||this.Matchers.GuaranteedNonMatch,(function(e,t){return"'+\n(".concat(decodeURIComponent(t),")+\n'")})).replace(this.Matchers.Evaluate||this.Matchers.GuaranteedNonMatch,(function(e,t){return"';\n".concat(decodeURIComponent(t),"\n;__p+='")}))+"';\n",this.TemplateSource="with(pTemplateDataObject||{}){\n".concat(this.TemplateSource,"}\n"),this.TemplateSource="var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n".concat(this.TemplateSource,"return __p;\n"),this.renderFunction=new Function("pTemplateDataObject",this.TemplateSource),void 0!==t?this.renderFunction(t):(this.TemplateSourceCompiled="function(obj){\n"+this.TemplateSource+"}",this.templateFunction())}}]),t}(e("fable-serviceproviderbase"));t.exports=n},{"fable-serviceproviderbase":51}],157:[function(e,t,r){var n=e("fable-serviceproviderbase"),i=e("async.waterfall"),o=e("async.eachlimit"),a=e("big.js"),s=function(e){function t(e,r,n){var s;return _classCallCheck2(this,t),(s=_callSuper(this,t,[e,r,n])).templates={},s.waterfall=i,s.eachLimit=o,s.bigNumber=a,s}return _inherits(t,e),_createClass2(t,[{key:"extend",value:function(e){for(var t=0;t<(arguments.length<=1?0:arguments.length-1);t++){var r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if("object"===_typeof(r))for(var n=Object.keys(r),i=0;i<n.length;i++)e[n[i]]=r[n[i]]}return e}},{key:"template",value:function(e,t){return this.fable.instantiateServiceProviderWithoutRegistration("Template").buildTemplateFunction(e,t)}},{key:"buildHashedTemplate",value:function(e,t,r){var n=this.fable.instantiateServiceProvider("Template",{},e);return this.templates[e]=n.buildTemplateFunction(t,r),this.templates[e]}},{key:"chunk",value:function(e,t,r){var n=_toConsumableArray(e),i="number"==typeof t?t:0,o=void 0!==r?r:[];if(i<=0)return o;for(;n.length;)o.push(n.splice(0,i));return o}},{key:"isoStringToDate",value:function(e){"Dates"in this.fable||this.fable.instantiateServiceProvider("Dates");var t=!1;try{t=this.fable.Dates.dayJS.utc(e)}catch(t){return this.fable.log.error("Could not parse date string ".concat(e," with dayJS.")),!1}return!!t&&t.toDate()}}]),t}(n);t.exports=s},{"async.eachlimit":1,"async.waterfall":15,"big.js":17,"fable-serviceproviderbase":51}]},{},[127])(127)}));
12
12
  //# sourceMappingURL=fable.compatible.min.js.map