Socket
Socket
Sign inDemoInstall

expect

Package Overview
Dependencies
Maintainers
2
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expect - npm Package Compare versions

Comparing version 1.18.0 to 1.19.0

15

CHANGES.md

@@ -1,9 +0,20 @@

## [HEAD]
## [v1.19.0]
- Spies preserve `length` property of original function ([#90], thanks @nfcampos)
- Added ability to pass a `createMessage` function to `assert` that is
only called when the assertion fails
- Added `toNotIncludeKey(s)` alias
[v1.19.0]: https://github.com/mjackson/expect/compare/v1.18.0...v1.19.0
## [v1.18.0]
> Apr 18, 2016
- Added support for using [tmatch] in `expect(object).toMatch`
[HEAD]: https://github.com/mjackson/expect/compare/latest...HEAD
[v1.18.0]: https://github.com/mjackson/expect/compare/v1.17.0...v1.18.0
[tmatch]: https://github.com/tapjs/tmatch
## [v1.17.0]
> Apr 18, 2016

@@ -10,0 +21,0 @@ - Added support for objects in `toExclude` ([#86], thanks @calebmer)

17

lib/assert.js

@@ -13,3 +13,10 @@ 'use strict';

function assert(condition, messageFormat) {
var formatString = function formatString(string, args) {
var index = 0;
return string.replace(/%s/g, function () {
return (0, _objectInspect2.default)(args[index++]);
});
};
var assert = function assert(condition, createMessage) {
for (var _len = arguments.length, extraArgs = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {

@@ -21,9 +28,7 @@ extraArgs[_key - 2] = arguments[_key];

var index = 0;
var message = typeof createMessage === 'string' ? formatString(createMessage, extraArgs) : createMessage(extraArgs);
throw new Error(messageFormat.replace(/%s/g, function () {
return (0, _objectInspect2.default)(extraArgs[index++]);
}));
}
throw new Error(message);
};
exports.default = assert;

@@ -161,3 +161,3 @@ 'use strict';

if (typeof this.actual === 'string') {
(0, _assert2.default)((0, _isRegex2.default)(pattern), 'The "value" argument in expect(string).toMatch(value) must be a RegExp');
(0, _assert2.default)((0, _isRegex2.default)(pattern), 'The "pattern" argument in expect(string).toMatch(pattern) must be a RegExp');

@@ -181,3 +181,3 @@ matches = pattern.test(this.actual);

if (typeof this.actual === 'string') {
(0, _assert2.default)((0, _isRegex2.default)(pattern), 'The "value" argument in toNotMatch(value) must be a RegExp');
(0, _assert2.default)((0, _isRegex2.default)(pattern), 'The "pattern" argument in expect(string).toNotMatch(pattern) must be a RegExp');

@@ -440,8 +440,10 @@ matches = pattern.test(this.actual);

toContain: 'toInclude',
toNotContain: 'toExclude',
toNotInclude: 'toExclude',
toNotContain: 'toExclude',
toContainKeys: 'toIncludeKeys',
toNotContainKeys: 'toExcludeKeys',
toNotIncludeKeys: 'toExcludeKeys',
toContainKey: 'toIncludeKey',
toNotContainKey: 'toExcludeKey'
toNotContainKey: 'toExcludeKey',
toNotIncludeKey: 'toExcludeKey'
};

@@ -448,0 +450,0 @@

@@ -6,6 +6,6 @@ 'use strict';

});
exports.restoreSpies = exports.isSpy = undefined;
exports.createSpy = createSpy;
exports.spyOn = spyOn;
exports.spyOn = exports.createSpy = exports.restoreSpies = exports.isSpy = undefined;
var _defineProperties = require('define-properties');
var _assert = require('./assert');

@@ -19,3 +19,3 @@

/* eslint-disable prefer-rest-params */
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /* eslint-disable prefer-rest-params */

@@ -25,2 +25,4 @@

var supportsConfigurableFnLength = _defineProperties.supportsDescriptors && Object.getOwnPropertyDescriptor(function () {}, 'length').configurable;
var isSpy = exports.isSpy = function isSpy(object) {

@@ -38,3 +40,3 @@ return object && object.__isSpy === true;

function createSpy(fn) {
var createSpy = exports.createSpy = function createSpy(fn) {
var restore = arguments.length <= 1 || arguments[1] === undefined ? noop : arguments[1];

@@ -48,5 +50,6 @@

thrownValue = void 0,
returnValue = void 0;
returnValue = void 0,
spy = void 0;
var spy = function spy() {
function spyLogic() {
spy.calls.push({

@@ -62,4 +65,13 @@ context: this,

return returnValue;
};
}
if (supportsConfigurableFnLength) {
spy = Object.defineProperty(spyLogic, 'length', { value: fn.length, writable: false, enumerable: false, configurable: true });
} else {
spy = new Function('spy', 'return function(' + // eslint-disable-line no-new-func
[].concat(_toConsumableArray(Array(fn.length))).map(function (_, i) {
return '_' + i;
}).join(',') + ') {\n return spy.apply(this, arguments)\n }')(spyLogic);
}
spy.calls = [];

@@ -76,4 +88,4 @@

spy.andThrow = function (object) {
thrownValue = object;
spy.andThrow = function (value) {
thrownValue = value;
return spy;

@@ -102,5 +114,5 @@ };

return spy;
}
};
function spyOn(object, methodName) {
var spyOn = exports.spyOn = function spyOn(object, methodName) {
var original = object[methodName];

@@ -117,2 +129,2 @@

return object[methodName];
}
};
{
"name": "expect",
"version": "1.18.0",
"version": "1.19.0",
"description": "Write better assertions",

@@ -14,3 +14,3 @@ "author": "Michael Jackson",

"build": "node ./scripts/build.js",
"build-cjs": "babel ./modules -d lib --ignore '__tests__'",
"build-cjs": "rimraf lib && babel ./modules -d lib --ignore '__tests__'",
"build-umd": "NODE_ENV=production webpack modules/index.js umd/expect.js",

@@ -24,2 +24,3 @@ "build-min": "NODE_ENV=production webpack -p modules/index.js umd/expect.min.js",

"dependencies": {
"define-properties": "~1.1.2",
"has": "^1.0.1",

@@ -51,2 +52,3 @@ "is-equal": "^1.5.1",

"readline-sync": "^1.4.1",
"rimraf": "^2.5.2",
"webpack": "^1.12.14"

@@ -53,0 +55,0 @@ },

@@ -54,2 +54,5 @@ # expect [![Travis][build-badge]][build] [![npm package][npm-badge]][npm]

Aliases:
- `toBeTruthy`
### toNotExist

@@ -65,2 +68,5 @@

Aliases:
- `toBeFalsy`
### toBe

@@ -120,2 +126,5 @@

Aliases:
- `toBeAn`
### toBeA(string)

@@ -132,2 +141,5 @@

Aliases:
- `toBeAn`
### toNotBeA(constructor)

@@ -145,2 +157,5 @@

Aliases:
- `toNotBeAn`
### toNotBeA(string)

@@ -158,2 +173,5 @@

Aliases:
- `toNotBeAn`
### toMatch

@@ -212,2 +230,5 @@

Aliases:
- `toBeFewerThan`
### toBeLessThanOrEqualTo

@@ -234,2 +255,5 @@

Aliases:
- `toBeMoreThan`
### toBeGreaterThanOrEqualTo

@@ -280,4 +304,4 @@

Aliases:
- `toNotContain`
- `toNotInclude`
- `toNotContain`

@@ -287,5 +311,3 @@ ### toIncludeKey(s)

> `expect(object).toIncludeKeys(keys, [comparator], [message])`<br>
> `expect(object).toIncludeKey(key, [comparator], [message])`<br>
> `expect(object).toContainKeys(keys, [comparator], [message])`<br>
> `expect(object).toContainKey(key, [comparator], [message])`
> `expect(object).toIncludeKey(key, [comparator], [message])`

@@ -299,8 +321,9 @@ Asserts that the given `object` (may be an array, or a function, or anything with keys) contains *all* of the provided keys. The optional parameter `comparator` is a function which if given an object and a string key, it should return a boolean detailing whether or not the key exists in the object. By default, a shallow check with `Object.prototype.hasOwnProperty` is performed.

Aliases:
- `toContainKey(s)`
### toExcludeKey(s)
> `expect(object).toExcludeKeys(keys, [comparator], [message])`<br>
> `expect(object).toExcludeKey(key, [comparator], [message])`<br>
> `expect(object).toNotContainKeys(keys, [comparator], [message])`<br>
> `expect(object).toNotContainKey(key, [comparator], [message])`
> `expect(object).toExcludeKey(key, [comparator], [message])`

@@ -314,2 +337,6 @@ Asserts that the given `object` (may be an array, or a function, or anything with keys) does not contain *any* of the provided keys. The optional parameter `comparator` is a function which if given an object and a string key, it should return a boolean detailing whether or not the key exists in the object. By default, a shallow check with `Object.prototype.hasOwnProperty` is performed.

Aliases:
- `toNotContainKey(s)`
- `toNotIncludeKey(s)`
### (spy) toHaveBeenCalled

@@ -316,0 +343,0 @@

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.expect=e():t.expect=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){return new u["default"](t)}var i=r(3),u=n(i),a=r(4),s=r(1),c=n(s),f=r(10),l=n(f);o.createSpy=a.createSpy,o.spyOn=a.spyOn,o.isSpy=a.isSpy,o.restoreSpies=a.restoreSpies,o.assert=c["default"],o.extend=l["default"],t.exports=o},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;r>o;o++)n[o-2]=arguments[o];if(!t){var i=0;throw new Error(e.replace(/%s/g,function(){return(0,u["default"])(n[i++])}))}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(26),u=n(i);e["default"]=o},function(t,e){"use strict";var r=RegExp.prototype.exec,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object RegExp]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(21),s=n(a),c=r(2),f=n(c),l=r(30),h=n(l),p=r(7),y=n(p),g=r(1),d=n(g),b=r(4),v=r(5),m=function(t,e,r){try{r()}catch(n){throw n.actual=t,n.expected=e,n.showDiff=!0,n}},w=function(){function t(e){o(this,t),this.actual=e,(0,v.isFunction)(e)&&(this.context=null,this.args=[])}return u(t,[{key:"toExist",value:function(t){return(0,d["default"])(this.actual,t||"Expected %s to exist",this.actual),this}},{key:"toNotExist",value:function(t){return(0,d["default"])(!this.actual,t||"Expected %s to not exist",this.actual),this}},{key:"toBe",value:function(t,e){return(0,d["default"])(this.actual===t,e||"Expected %s to be %s",this.actual,t),this}},{key:"toNotBe",value:function(t,e){return(0,d["default"])(this.actual!==t,e||"Expected %s to not be %s",this.actual,t),this}},{key:"toEqual",value:function(t,e){var r=this;return m(this.actual,t,function(){(0,d["default"])((0,s["default"])(r.actual,t),e||"Expected %s to equal %s",r.actual,t)}),this}},{key:"toNotEqual",value:function(t,e){var r=this;return m(this.actual,t,function(){(0,d["default"])(!(0,s["default"])(r.actual,t),e||"Expected %s to not equal %s",r.actual,t)}),this}},{key:"toThrow",value:function(t,e){return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).toThrow() must be a function, %s was given',this.actual),(0,d["default"])((0,v.functionThrows)(this.actual,this.context,this.args,t),e||"Expected %s to throw %s",this.actual,t||"an error"),this}},{key:"toNotThrow",value:function(t,e){return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).toNotThrow() must be a function, %s was given',this.actual),(0,d["default"])(!(0,v.functionThrows)(this.actual,this.context,this.args,t),e||"Expected %s to not throw %s",this.actual,t||"an error"),this}},{key:"toBeA",value:function(t,e){return(0,d["default"])((0,v.isFunction)(t)||"string"==typeof t,'The "value" argument in toBeA(value) must be a function or a string'),(0,d["default"])((0,v.isA)(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this}},{key:"toNotBeA",value:function(t,e){return(0,d["default"])((0,v.isFunction)(t)||"string"==typeof t,'The "value" argument in toNotBeA(value) must be a function or a string'),(0,d["default"])(!(0,v.isA)(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this}},{key:"toMatch",value:function(t,e){var r=!1;return"string"==typeof this.actual?((0,d["default"])((0,f["default"])(t),'The "value" argument in expect(string).toMatch(value) must be a RegExp'),r=t.test(this.actual)):(0,v.isObject)(this.actual)?r=(0,h["default"])(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toMatch() must be a string or an object'),(0,d["default"])(r,e||"Expected %s to match %s",this.actual,t),this}},{key:"toNotMatch",value:function(t,e){var r=!1;return"string"==typeof this.actual?((0,d["default"])((0,f["default"])(t),'The "value" argument in toNotMatch(value) must be a RegExp'),r=t.test(this.actual)):(0,v.isObject)(this.actual)?r=(0,h["default"])(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toNotMatch() must be a string or an object'),(0,d["default"])(!r,e||"Expected %s to not match %s",this.actual,t),this}},{key:"toBeLessThan",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThan() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeLessThan(value) must be a number'),(0,d["default"])(this.actual<t,e||"Expected %s to be less than %s",this.actual,t),this}},{key:"toBeLessThanOrEqualTo",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThanOrEqualTo() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeLessThanOrEqualTo(value) must be a number'),(0,d["default"])(this.actual<=t,e||"Expected %s to be less than or equal to %s",this.actual,t),this}},{key:"toBeGreaterThan",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThan() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeGreaterThan(value) must be a number'),(0,d["default"])(this.actual>t,e||"Expected %s to be greater than %s",this.actual,t),this}},{key:"toBeGreaterThanOrEqualTo",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThanOrEqualTo() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeGreaterThanOrEqualTo(value) must be a number'),(0,d["default"])(this.actual>=t,e||"Expected %s to be greater than or equal to %s",this.actual,t),this}},{key:"toInclude",value:function(t,e,r){"string"==typeof e&&(r=e,e=null),null==e&&(e=s["default"]);var n=!1;return(0,v.isArray)(this.actual)?n=(0,v.arrayContains)(this.actual,t,e):(0,v.isObject)(this.actual)?n=(0,v.objectContains)(this.actual,t,e):"string"==typeof this.actual?n=(0,v.stringContains)(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toInclude() must be an array, object, or a string'),(0,d["default"])(n,r||"Expected %s to include %s",this.actual,t),this}},{key:"toExclude",value:function(t,e,r){"string"==typeof e&&(r=e,e=null),null==e&&(e=s["default"]);var n=!1;return(0,v.isArray)(this.actual)?n=(0,v.arrayContains)(this.actual,t,e):(0,v.isObject)(this.actual)?n=(0,v.objectContains)(this.actual,t,e):"string"==typeof this.actual?n=(0,v.stringContains)(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toExclude() must be an array, object, or a string'),(0,d["default"])(!n,r||"Expected %s to exclude %s",this.actual,t),this}},{key:"toIncludeKeys",value:function(t,e,r){var n=this;"string"==typeof e&&(r=e,e=null),null==e&&(e=y["default"]),(0,d["default"])("object"===i(this.actual),'The "actual" argument in expect(actual).toIncludeKeys() must be an object, not %s',i(this.actual));var o=t.every(function(t){return e(n.actual,t)});return(0,d["default"])(o,r||"Expected %s to include key(s) %s",this.actual,t.join(", ")),this}},{key:"toIncludeKey",value:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return this.toIncludeKeys.apply(this,[[t]].concat(r))}},{key:"toExcludeKeys",value:function(t,e,r){var n=this;"string"==typeof e&&(r=e,e=null),null==e&&(e=y["default"]),(0,d["default"])("object"===i(this.actual),'The "actual" argument in expect(actual).toExcludeKeys() must be an object, not %s',i(this.actual));var o=t.every(function(t){return e(n.actual,t)});return(0,d["default"])(!o,r||"Expected %s to exclude key(s) %s",this.actual,t.join(", ")),this}},{key:"toExcludeKey",value:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return this.toExcludeKeys.apply(this,[[t]].concat(r))}},{key:"toHaveBeenCalled",value:function(t){var e=this.actual;return(0,d["default"])((0,b.isSpy)(e),'The "actual" argument in expect(actual).toHaveBeenCalled() must be a spy'),(0,d["default"])(e.calls.length>0,t||"spy was not called"),this}},{key:"toHaveBeenCalledWith",value:function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];var n=this.actual;return(0,d["default"])((0,b.isSpy)(n),'The "actual" argument in expect(actual).toHaveBeenCalledWith() must be a spy'),(0,d["default"])(n.calls.some(function(t){return(0,s["default"])(t.arguments,e)}),"spy was never called with %s",e),this}},{key:"toNotHaveBeenCalled",value:function(t){var e=this.actual;return(0,d["default"])((0,b.isSpy)(e),'The "actual" argument in expect(actual).toNotHaveBeenCalled() must be a spy'),(0,d["default"])(0===e.calls.length,t||"spy was not supposed to be called"),this}}]),t}(),E=function(t,e){var r=!1;return function(){r||(r=!0,console.warn(e));for(var n=arguments.length,o=Array(n),i=0;n>i;i++)o[i]=arguments[i];return t.apply(this,o)}};w.prototype.withContext=E(function(t){return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).withContext() must be a function'),this.context=t,this},"\nwithContext is deprecated; use a closure instead.\n\n expect(fn).withContext(context).toThrow()\n\nbecomes\n\n expect(() => fn.call(context)).toThrow()\n"),w.prototype.withArgs=E(function(){var t;return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).withArgs() must be a function'),arguments.length&&(this.args=(t=this.args).concat.apply(t,arguments)),this},"\nwithArgs is deprecated; use a closure instead.\n\n expect(fn).withArgs(a, b, c).toThrow()\n\nbecomes\n\n expect(() => fn(a, b, c)).toThrow()\n");var T={toBeAn:"toBeA",toNotBeAn:"toNotBeA",toBeTruthy:"toExist",toBeFalsy:"toNotExist",toBeFewerThan:"toBeLessThan",toBeMoreThan:"toBeGreaterThan",toContain:"toInclude",toNotInclude:"toExclude",toNotContain:"toExclude",toContainKeys:"toIncludeKeys",toNotContainKeys:"toExcludeKeys",toContainKey:"toIncludeKey",toNotContainKey:"toExcludeKey"};for(var A in T)T.hasOwnProperty(A)&&(w.prototype[A]=w.prototype[T[A]]);e["default"]=w},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=arguments.length<=1||void 0===arguments[1]?c:arguments[1];null==t&&(t=c),(0,a["default"])((0,s.isFunction)(t),"createSpy needs a function");var r=void 0,n=void 0,o=void 0,i=function u(){if(u.calls.push({context:this,arguments:Array.prototype.slice.call(arguments,0)}),r)return r.apply(this,arguments);if(n)throw n;return o};return i.calls=[],i.andCall=function(t){return r=t,i},i.andCallThrough=function(){return i.andCall(t)},i.andThrow=function(t){return n=t,i},i.andReturn=function(t){return o=t,i},i.getLastCall=function(){return i.calls[i.calls.length-1]},i.reset=function(){i.calls=[]},i.restore=i.destroy=e,i.__isSpy=!0,l.push(i),i}function i(t,e){var r=t[e];return f(r)||((0,a["default"])((0,s.isFunction)(r),"Cannot spyOn the %s property; it is not a function",e),t[e]=o(r,function(){t[e]=r})),t[e]}Object.defineProperty(e,"__esModule",{value:!0}),e.restoreSpies=e.isSpy=void 0,e.createSpy=o,e.spyOn=i;var u=r(1),a=n(u),s=r(5),c=function(){},f=e.isSpy=function(t){return t&&t.__isSpy===!0},l=[];e.restoreSpies=function(){for(var t=l.length-1;t>=0;t--)l[t].restore();l=[]}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.stringContains=e.objectContains=e.arrayContains=e.functionThrows=e.isA=e.isObject=e.isArray=e.isFunction=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},i=r(2),u=n(i),a=r(27),s=n(a),c=e.isFunction=function(t){return"function"==typeof t},f=e.isArray=function(t){return Array.isArray(t)},l=e.isObject=function(t){return t&&!f(t)&&"object"===("undefined"==typeof t?"undefined":o(t))},h=(e.isA=function(t,e){return c(e)?t instanceof e:"array"===e?Array.isArray(t):("undefined"==typeof t?"undefined":o(t))===e},e.functionThrows=function(t,e,r,n){try{t.apply(e,r)}catch(o){if(null==n)return!0;if(c(n)&&o instanceof n)return!0;var i=o.message||o;if("string"==typeof i){if((0,u["default"])(n)&&n.test(o.message))return!0;if("string"==typeof n&&-1!==i.indexOf(n))return!0}}return!1},e.arrayContains=function(t,e,r){return t.some(function(t){return r(t,e)!==!1})},function(t){return"object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):"function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}).concat((0,s["default"])(t)):(0,s["default"])(t)});e.objectContains=function p(t,e,r){return h(e).every(function(n){return l(t[n])&&l(e[n])?p(t[n],e[n],r):r(t[n],e[n])})},e.stringContains=function(t,e){return-1!==t.indexOf(e)}},function(t,e,r){(function(t,n){/*!
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.expect=e():t.expect=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){return new u["default"](t)}var i=r(3),u=n(i),a=r(4),s=r(1),c=n(s),f=r(11),l=n(f);o.createSpy=a.createSpy,o.spyOn=a.spyOn,o.isSpy=a.isSpy,o.restoreSpies=a.restoreSpies,o.assert=c["default"],o.extend=l["default"],t.exports=o},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(29),i=n(o),u=function(t,e){var r=0;return t.replace(/%s/g,function(){return(0,i["default"])(e[r++])})},a=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;r>o;o++)n[o-2]=arguments[o];if(!t){var i="string"==typeof e?u(e,n):e(n);throw new Error(i)}};e["default"]=a},function(t,e){"use strict";var r=RegExp.prototype.exec,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object RegExp]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(24),s=n(a),c=r(2),f=n(c),l=r(32),h=n(l),p=r(7),y=n(p),g=r(1),d=n(g),b=r(4),v=r(5),m=function(t,e,r){try{r()}catch(n){throw n.actual=t,n.expected=e,n.showDiff=!0,n}},w=function(){function t(e){o(this,t),this.actual=e,(0,v.isFunction)(e)&&(this.context=null,this.args=[])}return u(t,[{key:"toExist",value:function(t){return(0,d["default"])(this.actual,t||"Expected %s to exist",this.actual),this}},{key:"toNotExist",value:function(t){return(0,d["default"])(!this.actual,t||"Expected %s to not exist",this.actual),this}},{key:"toBe",value:function(t,e){return(0,d["default"])(this.actual===t,e||"Expected %s to be %s",this.actual,t),this}},{key:"toNotBe",value:function(t,e){return(0,d["default"])(this.actual!==t,e||"Expected %s to not be %s",this.actual,t),this}},{key:"toEqual",value:function(t,e){var r=this;return m(this.actual,t,function(){(0,d["default"])((0,s["default"])(r.actual,t),e||"Expected %s to equal %s",r.actual,t)}),this}},{key:"toNotEqual",value:function(t,e){var r=this;return m(this.actual,t,function(){(0,d["default"])(!(0,s["default"])(r.actual,t),e||"Expected %s to not equal %s",r.actual,t)}),this}},{key:"toThrow",value:function(t,e){return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).toThrow() must be a function, %s was given',this.actual),(0,d["default"])((0,v.functionThrows)(this.actual,this.context,this.args,t),e||"Expected %s to throw %s",this.actual,t||"an error"),this}},{key:"toNotThrow",value:function(t,e){return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).toNotThrow() must be a function, %s was given',this.actual),(0,d["default"])(!(0,v.functionThrows)(this.actual,this.context,this.args,t),e||"Expected %s to not throw %s",this.actual,t||"an error"),this}},{key:"toBeA",value:function(t,e){return(0,d["default"])((0,v.isFunction)(t)||"string"==typeof t,'The "value" argument in toBeA(value) must be a function or a string'),(0,d["default"])((0,v.isA)(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this}},{key:"toNotBeA",value:function(t,e){return(0,d["default"])((0,v.isFunction)(t)||"string"==typeof t,'The "value" argument in toNotBeA(value) must be a function or a string'),(0,d["default"])(!(0,v.isA)(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this}},{key:"toMatch",value:function(t,e){var r=!1;return"string"==typeof this.actual?((0,d["default"])((0,f["default"])(t),'The "pattern" argument in expect(string).toMatch(pattern) must be a RegExp'),r=t.test(this.actual)):(0,v.isObject)(this.actual)?r=(0,h["default"])(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toMatch() must be a string or an object'),(0,d["default"])(r,e||"Expected %s to match %s",this.actual,t),this}},{key:"toNotMatch",value:function(t,e){var r=!1;return"string"==typeof this.actual?((0,d["default"])((0,f["default"])(t),'The "pattern" argument in expect(string).toNotMatch(pattern) must be a RegExp'),r=t.test(this.actual)):(0,v.isObject)(this.actual)?r=(0,h["default"])(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toNotMatch() must be a string or an object'),(0,d["default"])(!r,e||"Expected %s to not match %s",this.actual,t),this}},{key:"toBeLessThan",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThan() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeLessThan(value) must be a number'),(0,d["default"])(this.actual<t,e||"Expected %s to be less than %s",this.actual,t),this}},{key:"toBeLessThanOrEqualTo",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThanOrEqualTo() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeLessThanOrEqualTo(value) must be a number'),(0,d["default"])(this.actual<=t,e||"Expected %s to be less than or equal to %s",this.actual,t),this}},{key:"toBeGreaterThan",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThan() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeGreaterThan(value) must be a number'),(0,d["default"])(this.actual>t,e||"Expected %s to be greater than %s",this.actual,t),this}},{key:"toBeGreaterThanOrEqualTo",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThanOrEqualTo() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeGreaterThanOrEqualTo(value) must be a number'),(0,d["default"])(this.actual>=t,e||"Expected %s to be greater than or equal to %s",this.actual,t),this}},{key:"toInclude",value:function(t,e,r){"string"==typeof e&&(r=e,e=null),null==e&&(e=s["default"]);var n=!1;return(0,v.isArray)(this.actual)?n=(0,v.arrayContains)(this.actual,t,e):(0,v.isObject)(this.actual)?n=(0,v.objectContains)(this.actual,t,e):"string"==typeof this.actual?n=(0,v.stringContains)(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toInclude() must be an array, object, or a string'),(0,d["default"])(n,r||"Expected %s to include %s",this.actual,t),this}},{key:"toExclude",value:function(t,e,r){"string"==typeof e&&(r=e,e=null),null==e&&(e=s["default"]);var n=!1;return(0,v.isArray)(this.actual)?n=(0,v.arrayContains)(this.actual,t,e):(0,v.isObject)(this.actual)?n=(0,v.objectContains)(this.actual,t,e):"string"==typeof this.actual?n=(0,v.stringContains)(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toExclude() must be an array, object, or a string'),(0,d["default"])(!n,r||"Expected %s to exclude %s",this.actual,t),this}},{key:"toIncludeKeys",value:function(t,e,r){var n=this;"string"==typeof e&&(r=e,e=null),null==e&&(e=y["default"]),(0,d["default"])("object"===i(this.actual),'The "actual" argument in expect(actual).toIncludeKeys() must be an object, not %s',i(this.actual));var o=t.every(function(t){return e(n.actual,t)});return(0,d["default"])(o,r||"Expected %s to include key(s) %s",this.actual,t.join(", ")),this}},{key:"toIncludeKey",value:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return this.toIncludeKeys.apply(this,[[t]].concat(r))}},{key:"toExcludeKeys",value:function(t,e,r){var n=this;"string"==typeof e&&(r=e,e=null),null==e&&(e=y["default"]),(0,d["default"])("object"===i(this.actual),'The "actual" argument in expect(actual).toExcludeKeys() must be an object, not %s',i(this.actual));var o=t.every(function(t){return e(n.actual,t)});return(0,d["default"])(!o,r||"Expected %s to exclude key(s) %s",this.actual,t.join(", ")),this}},{key:"toExcludeKey",value:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return this.toExcludeKeys.apply(this,[[t]].concat(r))}},{key:"toHaveBeenCalled",value:function(t){var e=this.actual;return(0,d["default"])((0,b.isSpy)(e),'The "actual" argument in expect(actual).toHaveBeenCalled() must be a spy'),(0,d["default"])(e.calls.length>0,t||"spy was not called"),this}},{key:"toHaveBeenCalledWith",value:function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];var n=this.actual;return(0,d["default"])((0,b.isSpy)(n),'The "actual" argument in expect(actual).toHaveBeenCalledWith() must be a spy'),(0,d["default"])(n.calls.some(function(t){return(0,s["default"])(t.arguments,e)}),"spy was never called with %s",e),this}},{key:"toNotHaveBeenCalled",value:function(t){var e=this.actual;return(0,d["default"])((0,b.isSpy)(e),'The "actual" argument in expect(actual).toNotHaveBeenCalled() must be a spy'),(0,d["default"])(0===e.calls.length,t||"spy was not supposed to be called"),this}}]),t}(),E=function(t,e){var r=!1;return function(){r||(r=!0,console.warn(e));for(var n=arguments.length,o=Array(n),i=0;n>i;i++)o[i]=arguments[i];return t.apply(this,o)}};w.prototype.withContext=E(function(t){return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).withContext() must be a function'),this.context=t,this},"\nwithContext is deprecated; use a closure instead.\n\n expect(fn).withContext(context).toThrow()\n\nbecomes\n\n expect(() => fn.call(context)).toThrow()\n"),w.prototype.withArgs=E(function(){var t;return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).withArgs() must be a function'),arguments.length&&(this.args=(t=this.args).concat.apply(t,arguments)),this},"\nwithArgs is deprecated; use a closure instead.\n\n expect(fn).withArgs(a, b, c).toThrow()\n\nbecomes\n\n expect(() => fn(a, b, c)).toThrow()\n");var A={toBeAn:"toBeA",toNotBeAn:"toNotBeA",toBeTruthy:"toExist",toBeFalsy:"toNotExist",toBeFewerThan:"toBeLessThan",toBeMoreThan:"toBeGreaterThan",toContain:"toInclude",toNotContain:"toExclude",toNotInclude:"toExclude",toContainKeys:"toIncludeKeys",toNotContainKeys:"toExcludeKeys",toNotIncludeKeys:"toExcludeKeys",toContainKey:"toIncludeKey",toNotContainKey:"toExcludeKey",toNotIncludeKey:"toExcludeKey"};for(var T in A)A.hasOwnProperty(T)&&(w.prototype[T]=w.prototype[A[T]]);e["default"]=w},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.spyOn=e.createSpy=e.restoreSpies=e.isSpy=void 0;var i=r(14),u=r(1),a=n(u),s=r(5),c=function(){},f=i.supportsDescriptors&&Object.getOwnPropertyDescriptor(function(){},"length").configurable,l=e.isSpy=function(t){return t&&t.__isSpy===!0},h=[],p=(e.restoreSpies=function(){for(var t=h.length-1;t>=0;t--)h[t].restore();h=[]},e.createSpy=function(t){function e(){if(l.calls.push({context:this,arguments:Array.prototype.slice.call(arguments,0)}),n)return n.apply(this,arguments);if(i)throw i;return u}var r=arguments.length<=1||void 0===arguments[1]?c:arguments[1];null==t&&(t=c),(0,a["default"])((0,s.isFunction)(t),"createSpy needs a function");var n=void 0,i=void 0,u=void 0,l=void 0;return l=f?Object.defineProperty(e,"length",{value:t.length,writable:!1,enumerable:!1,configurable:!0}):new Function("spy","return function("+[].concat(o(Array(t.length))).map(function(t,e){return"_"+e}).join(",")+") {\n return spy.apply(this, arguments)\n }")(e),l.calls=[],l.andCall=function(t){return n=t,l},l.andCallThrough=function(){return l.andCall(t)},l.andThrow=function(t){return i=t,l},l.andReturn=function(t){return u=t,l},l.getLastCall=function(){return l.calls[l.calls.length-1]},l.reset=function(){l.calls=[]},l.restore=l.destroy=r,l.__isSpy=!0,h.push(l),l});e.spyOn=function(t,e){var r=t[e];return l(r)||((0,a["default"])((0,s.isFunction)(r),"Cannot spyOn the %s property; it is not a function",e),t[e]=p(r,function(){t[e]=r})),t[e]}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.stringContains=e.objectContains=e.arrayContains=e.functionThrows=e.isA=e.isObject=e.isArray=e.isFunction=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},i=r(2),u=n(i),a=r(10),s=n(a),c=e.isFunction=function(t){return"function"==typeof t},f=e.isArray=function(t){return Array.isArray(t)},l=e.isObject=function(t){return t&&!f(t)&&"object"===("undefined"==typeof t?"undefined":o(t))},h=(e.isA=function(t,e){return c(e)?t instanceof e:"array"===e?Array.isArray(t):("undefined"==typeof t?"undefined":o(t))===e},e.functionThrows=function(t,e,r,n){try{t.apply(e,r)}catch(o){if(null==n)return!0;if(c(n)&&o instanceof n)return!0;var i=o.message||o;if("string"==typeof i){if((0,u["default"])(n)&&n.test(o.message))return!0;if("string"==typeof n&&-1!==i.indexOf(n))return!0}}return!1},e.arrayContains=function(t,e,r){return t.some(function(t){return r(t,e)!==!1})},function(t){return"object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):"function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}).concat((0,s["default"])(t)):(0,s["default"])(t)});e.objectContains=function p(t,e,r){return h(e).every(function(n){return l(t[n])&&l(e[n])?p(t[n],e[n],r):r(t[n],e[n])})},e.stringContains=function(t,e){return-1!==t.indexOf(e)}},function(t,e,r){(function(t,n){/*!
* The buffer module from node.js, for the browser.

@@ -7,3 +7,3 @@ *

*/
"use strict";function o(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(r){return!1}}function i(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(e){return this instanceof t?(t.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?u(this,e):"string"==typeof e?a(this,e,arguments.length>1?arguments[1]:"utf8"):s(this,e)):arguments.length>1?new t(e,arguments[1]):new t(e)}function u(e,r){if(e=g(e,0>r?0:0|d(r)),!t.TYPED_ARRAY_SUPPORT)for(var n=0;r>n;n++)e[n]=0;return e}function a(t,e,r){"string"==typeof r&&""!==r||(r="utf8");var n=0|v(e,r);return t=g(t,n),t.write(e,r),t}function s(e,r){if(t.isBuffer(r))return c(e,r);if(X(r))return f(e,r);if(null==r)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(r.buffer instanceof ArrayBuffer)return l(e,r);if(r instanceof ArrayBuffer)return h(e,r)}return r.length?p(e,r):y(e,r)}function c(t,e){var r=0|d(e.length);return t=g(t,r),e.copy(t,0,0,r),t}function f(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function l(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function h(e,r){return t.TYPED_ARRAY_SUPPORT?(r.byteLength,e=t._augment(new Uint8Array(r))):e=l(e,new Uint8Array(r)),e}function p(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function y(t,e){var r,n=0;"Buffer"===e.type&&X(e.data)&&(r=e.data,n=0|d(r.length)),t=g(t,n);for(var o=0;n>o;o+=1)t[o]=255&r[o];return t}function g(e,r){t.TYPED_ARRAY_SUPPORT?(e=t._augment(new Uint8Array(r)),e.__proto__=t.prototype):(e.length=r,e._isBuffer=!0);var n=0!==r&&r<=t.poolSize>>>1;return n&&(e.parent=Z),e}function d(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function b(e,r){if(!(this instanceof b))return new b(e,r);var n=new t(e,r);return delete n.parent,n}function v(t,e){"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(n)return q(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if(e=0|e,r=void 0===r||r===1/0?this.length:0|r,t||(t="utf8"),0>e&&(e=0),r>this.length&&(r=this.length),e>=r)return"";for(;;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return B(this,e,r);case"ascii":return I(this,e,r);case"binary":return _(this,e,r);case"base64":return j(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;if(i%2!==0)throw new Error("Invalid hex string");n>i/2&&(n=i/2);for(var u=0;n>u;u++){var a=parseInt(e.substr(2*u,2),16);if(isNaN(a))throw new Error("Invalid hex string");t[r+u]=a}return u}function E(t,e,r,n){return z(q(e,t.length-r),t,r,n)}function T(t,e,r,n){return z(K(e),t,r,n)}function A(t,e,r,n){return T(t,e,r,n)}function S(t,e,r,n){return z(G(e),t,r,n)}function x(t,e,r,n){return z($(e,t.length-r),t,r,n)}function j(t,e,r){return 0===e&&r===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,r))}function B(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;r>o;){var i=t[o],u=null,a=i>239?4:i>223?3:i>191?2:1;if(r>=o+a){var s,c,f,l;switch(a){case 1:128>i&&(u=i);break;case 2:s=t[o+1],128===(192&s)&&(l=(31&i)<<6|63&s,l>127&&(u=l));break;case 3:s=t[o+1],c=t[o+2],128===(192&s)&&128===(192&c)&&(l=(15&i)<<12|(63&s)<<6|63&c,l>2047&&(55296>l||l>57343)&&(u=l));break;case 4:s=t[o+1],c=t[o+2],f=t[o+3],128===(192&s)&&128===(192&c)&&128===(192&f)&&(l=(15&i)<<18|(63&s)<<12|(63&c)<<6|63&f,l>65535&&1114112>l&&(u=l))}}null===u?(u=65533,a=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=a}return O(n)}function O(t){var e=t.length;if(Q>=e)return String.fromCharCode.apply(String,t);for(var r="",n=0;e>n;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Q));return r}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;r>o;o++)n+=String.fromCharCode(127&t[o]);return n}function _(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;r>o;o++)n+=String.fromCharCode(t[o]);return n}function P(t,e,r){var n=t.length;(!e||0>e)&&(e=0),(!r||0>r||r>n)&&(r=n);for(var o="",i=e;r>i;i++)o+=H(t[i]);return o}function R(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function C(t,e,r){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,r,n,o,i,u){if(!t.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(r>i||u>r)throw new RangeError("value is out of bounds");if(n+o>e.length)throw new RangeError("index out of range")}function U(t,e,r,n){0>e&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);i>o;o++)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function L(t,e,r,n){0>e&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);i>o;o++)t[r+o]=e>>>8*(n?o:3-o)&255}function N(t,e,r,n,o,i){if(e>o||i>e)throw new RangeError("value is out of bounds");if(r+n>t.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function k(t,e,r,n,o){return o||N(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),W.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,o){return o||N(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),W.write(t,e,r,n,52,8),r+8}function F(t){if(t=Y(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return 16>t?"0"+t.toString(16):t.toString(16)}function q(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],u=0;n>u;u++){if(r=t.charCodeAt(u),r>55295&&57344>r){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(56320>r){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,128>r){if((e-=1)<0)break;i.push(r)}else if(2048>r){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(65536>r){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(1114112>r))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function K(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e}function $(t,e){for(var r,n,o,i=[],u=0;u<t.length&&!((e-=2)<0);u++)r=t.charCodeAt(u),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function G(t){return J.toByteArray(F(t))}function z(t,e,r,n){for(var o=0;n>o&&!(o+r>=e.length||o>=t.length);o++)e[o+r]=t[o];return o}var J=r(11),W=r(15),X=r(12);e.Buffer=t,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,t.poolSize=8192;var Z={};t.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:o(),t.TYPED_ARRAY_SUPPORT?(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array):(t.prototype.length=void 0,t.prototype.parent=void 0),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,r){if(!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,o=r.length,i=0,u=Math.min(n,o);u>i&&e[i]===r[i];)++i;return i!==u&&(n=e[i],o=r[i]),o>n?-1:n>o?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,r){if(!X(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new t(0);var n;if(void 0===r)for(r=0,n=0;n<e.length;n++)r+=e[n].length;var o=new t(r),i=0;for(n=0;n<e.length;n++){var u=e[n];u.copy(o,i),i+=u.length}return o},t.byteLength=v,t.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?B(this,0,t):m.apply(this,arguments)},t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===t.compare(this,e)},t.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},t.prototype.compare=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:t.compare(this,e)},t.prototype.indexOf=function(e,r){function n(t,e,r){for(var n=-1,o=0;r+o<t.length;o++)if(t[r+o]===e[-1===n?0:o-n]){if(-1===n&&(n=o),o-n+1===e.length)return r+n}else n=-1;return-1}if(r>2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(0>r&&(r=Math.max(this.length+r,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,r);if(t.isBuffer(e))return n(this,e,r);if("number"==typeof e)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,r):n(this,[e],r);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},t.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0);else{var o=n;n=e,e=0|r,r=o}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(0>r||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return T(this,t,e,r);case"binary":return A(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;t.prototype.slice=function(e,r){var n=this.length;e=~~e,r=void 0===r?n:~~r,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>r?(r+=n,0>r&&(r=0)):r>n&&(r=n),e>r&&(r=e);var o;if(t.TYPED_ARRAY_SUPPORT)o=t._augment(this.subarray(e,r));else{var i=r-e;o=new t(i,void 0);for(var u=0;i>u;u++)o[u]=this[u+e]}return o.length&&(o.parent=this.parent||this),o},t.prototype.readUIntLE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},t.prototype.readUIntBE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},t.prototype.readUInt8=function(t,e){return e||C(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||C(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||C(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},t.prototype.readIntBE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},t.prototype.readInt8=function(t,e){return e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||C(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(t,e){e||C(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(t,e){return e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||C(t,4,this.length),W.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||C(t,4,this.length),W.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||C(t,8,this.length),W.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||C(t,8,this.length),W.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||M(this,t,e,r,Math.pow(2,8*r),0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},t.prototype.writeUIntBE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||M(this,t,e,r,Math.pow(2,8*r),0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},t.prototype.writeUInt8=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},t.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):U(this,e,r,!0),r+2},t.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):U(this,e,r,!1),r+2},t.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):L(this,e,r,!0),r+4},t.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):L(this,e,r,!1),r+4},t.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e=0|e,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=0,u=1,a=0>t?1:0;for(this[e]=255&t;++i<r&&(u*=256);)this[e+i]=(t/u>>0)-a&255;return e+r},t.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e=0|e,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=r-1,u=1,a=0>t?1:0;for(this[e+i]=255&t;--i>=0&&(u*=256);)this[e+i]=(t/u>>0)-a&255;return e+r},t.prototype.writeInt8=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[r]=255&e,r+1},t.prototype.writeInt16LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):U(this,e,r,!0),r+2},t.prototype.writeInt16BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):U(this,e,r,!1),r+2},t.prototype.writeInt32LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):L(this,e,r,!0),r+4},t.prototype.writeInt32BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):L(this,e,r,!1),r+4},t.prototype.writeFloatLE=function(t,e,r){return k(this,t,e,!0,r)},t.prototype.writeFloatBE=function(t,e,r){return k(this,t,e,!1,r)},t.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},t.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},t.prototype.copy=function(e,r,n,o){if(n||(n=0),o||0===o||(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&n>o&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(0>r)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>o)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i,u=o-n;if(this===e&&r>n&&o>r)for(i=u-1;i>=0;i--)e[i+r]=this[i+n];else if(1e3>u||!t.TYPED_ARRAY_SUPPORT)for(i=0;u>i;i++)e[i+r]=this[i+n];else e._set(this.subarray(n,n+u),r);return u},t.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),e>r)throw new RangeError("end < start");if(r!==e&&0!==this.length){if(0>e||e>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof t)for(n=e;r>n;n++)this[n]=t;else{var o=q(t.toString()),i=o.length;for(n=e;r>n;n++)this[n]=o[n%i]}return this}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(t.TYPED_ARRAY_SUPPORT)return new t(this).buffer;for(var e=new Uint8Array(this.length),r=0,n=e.length;n>r;r+=1)e[r]=this[r];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var V=t.prototype;t._augment=function(e){return e.constructor=t,e._isBuffer=!0,e._set=e.set,e.get=V.get,e.set=V.set,e.write=V.write,e.toString=V.toString,e.toLocaleString=V.toString,e.toJSON=V.toJSON,e.equals=V.equals,e.compare=V.compare,e.indexOf=V.indexOf,e.copy=V.copy,e.slice=V.slice,e.readUIntLE=V.readUIntLE,e.readUIntBE=V.readUIntBE,e.readUInt8=V.readUInt8,e.readUInt16LE=V.readUInt16LE,e.readUInt16BE=V.readUInt16BE,e.readUInt32LE=V.readUInt32LE,e.readUInt32BE=V.readUInt32BE,e.readIntLE=V.readIntLE,e.readIntBE=V.readIntBE,e.readInt8=V.readInt8,e.readInt16LE=V.readInt16LE,e.readInt16BE=V.readInt16BE,e.readInt32LE=V.readInt32LE,e.readInt32BE=V.readInt32BE,e.readFloatLE=V.readFloatLE,e.readFloatBE=V.readFloatBE,e.readDoubleLE=V.readDoubleLE,e.readDoubleBE=V.readDoubleBE,e.writeUInt8=V.writeUInt8,e.writeUIntLE=V.writeUIntLE,e.writeUIntBE=V.writeUIntBE,e.writeUInt16LE=V.writeUInt16LE,e.writeUInt16BE=V.writeUInt16BE,e.writeUInt32LE=V.writeUInt32LE,e.writeUInt32BE=V.writeUInt32BE,e.writeIntLE=V.writeIntLE,e.writeIntBE=V.writeIntBE,e.writeInt8=V.writeInt8,e.writeInt16LE=V.writeInt16LE,e.writeInt16BE=V.writeInt16BE,e.writeInt32LE=V.writeInt32LE,e.writeInt32BE=V.writeInt32BE,e.writeFloatLE=V.writeFloatLE,e.writeFloatBE=V.writeFloatBE,e.writeDoubleLE=V.writeDoubleLE,e.writeDoubleBE=V.writeDoubleBE,e.fill=V.fill,e.inspect=V.inspect,e.toArrayBuffer=V.toArrayBuffer,e};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(6).Buffer,function(){return this}())},function(t,e,r){var n=r(14);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e){"use strict";var r=Function.prototype.toString,n=/^\s*class /,o=function(t){try{var e=r.call(t),o=e.replace(/\/\/.*\n/g,""),i=o.replace(/\/\*[.\s\S]*\*\//g,""),u=i.replace(/\n/gm," ").replace(/ {2}/g," ");return n.test(u)}catch(a){return!1}},i=function(t){try{return o(t)?!1:(r.call(t),!0)}catch(e){return!1}},u=Object.prototype.toString,a="[object Function]",s="[object GeneratorFunction]",c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return i(t);if(o(t))return!1;var e=u.call(t);return e===a||e===s}},function(t,e){"use strict";var r=Object.prototype.toString,n="function"==typeof Symbol&&"symbol"==typeof Symbol();if(n){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/,u=function(t){return"symbol"!=typeof t.valueOf()?!1:i.test(o.call(t))};t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return u(t)}catch(e){return!1}}}else t.exports=function(t){return!1}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(-1===a.indexOf(t)){a.push(t);for(var e in t)t.hasOwnProperty(e)&&(u["default"].prototype[e]=t[e])}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(3),u=n(i),a=[];e["default"]=o},function(t,e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===u||e===l?62:e===a||e===h?63:s>e?-1:s+10>e?e-s+26+26:f+26>e?e-f:c+26>e?e-c+26:void 0}function r(t){function r(t){c[l++]=t}var n,o,u,a,s,c;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;s="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,c=new i(3*t.length/4-s),u=s>0?t.length-4:t.length;var l=0;for(n=0,o=0;u>n;n+=4,o+=3)a=e(t.charAt(n))<<18|e(t.charAt(n+1))<<12|e(t.charAt(n+2))<<6|e(t.charAt(n+3)),r((16711680&a)>>16),r((65280&a)>>8),r(255&a);return 2===s?(a=e(t.charAt(n))<<2|e(t.charAt(n+1))>>4,r(255&a)):1===s&&(a=e(t.charAt(n))<<10|e(t.charAt(n+1))<<4|e(t.charAt(n+2))>>2,r(a>>8&255),r(255&a)),c}function o(t){function e(t){return n.charAt(t)}function r(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var o,i,u,a=t.length%3,s="";for(o=0,u=t.length-a;u>o;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],s+=r(i);switch(a){case 1:i=t[t.length-1],s+=e(i>>2),s+=e(i<<4&63),s+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],s+=e(i>>10),s+=e(i>>4&63),s+=e(i<<2&63),s+="="}return s}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="+".charCodeAt(0),a="/".charCodeAt(0),s="0".charCodeAt(0),c="a".charCodeAt(0),f="A".charCodeAt(0),l="-".charCodeAt(0),h="_".charCodeAt(0);t.toByteArray=r,t.fromByteArray=o}(e)},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,i="[object Function]";t.exports=function(t){var e=this;if("function"!=typeof e||o.call(e)!==i)throw new TypeError(r+e);for(var u,a=n.call(arguments,1),s=function(){if(this instanceof u){var r=e.apply(this,a.concat(n.call(arguments)));return Object(r)===r?r:this}return e.apply(t,a.concat(n.call(arguments)))},c=Math.max(0,e.length-a.length),f=[],l=0;c>l;l++)f.push("$"+l);if(u=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var h=function(){};h.prototype=e.prototype,u.prototype=new h,h.prototype=null}return u}},function(t,e,r){var n=r(13);t.exports=Function.prototype.bind||n},function(t,e){e.read=function(t,e,r,n,o){var i,u,a=8*o-n-1,s=(1<<a)-1,c=s>>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(u=i&(1<<-f)-1,i>>=-f,f+=n;f>0;u=256*u+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===s)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,n),i-=c}return(p?-1:1)*u*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var u,a,s,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,y=n?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=f):(u=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-u))<1&&(u--,s*=2),e+=u+l>=1?h/s:h*Math.pow(2,1-l),e*s>=2&&(u++,s/=2),u+l>=f?(a=0,u=f):u+l>=1?(a=(e*s-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[r+p]=255&a,p+=y,a/=256,o-=8);for(u=u<<o|a,c+=o;c>0;t[r+p]=255&u,p+=y,u/=256,c-=8);t[r+p-y]|=128*g}},function(t,e,r){"use strict";var n=r(8),o=Function.prototype.toString,i=/^\s*function/,u=/^\([^\)]*\) *=>/,a=/^[^=]*=>/;t.exports=function(t){if(!n(t))return!1;var e=o.call(t);return e.length>0&&!i.test(e)&&(u.test(e)||a.test(e))}},function(t,e){"use strict";var r=Boolean.prototype.toString,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Boolean]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"boolean"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";var r=Date.prototype.getDay,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Date]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t||null===t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";t.exports=function(){var t=function(){if("function"!=typeof Map)return null;try{Map.prototype.forEach.call({},function(){})}catch(t){return Map.prototype.forEach}return null}(),e=function(){if("function"!=typeof Set)return null;try{Set.prototype.forEach.call({},function(){})}catch(t){return Set.prototype.forEach}return null}();return{Map:t,Set:e}}},function(t,e,r){"use strict";var n=r(9);t.exports=function(){var t="function"==typeof Symbol&&n(Symbol.iterator)?Symbol.iterator:null;return"function"==typeof Object.getOwnPropertyNames&&"function"==typeof Map&&"function"==typeof Map.prototype.entries&&Object.getOwnPropertyNames(Map.prototype).forEach(function(e){"entries"!==e&&"size"!==e&&Map.prototype[e]===Map.prototype.entries&&(t=e)}),t}},function(t,e,r){"use strict";var n=r(22);t.exports=function(t,e){return""===n(t,e)}},function(t,e,r){"use strict";var n=Object.prototype,o=n.toString,i=Boolean.prototype.valueOf,u=r(7),a=r(16),s=r(17),c=r(18),f=r(23),l=r(24),h=r(2),p=r(25),y=r(9),g=r(8),d=Object.prototype.isPrototypeOf,b=function(){},v="foo"===b.name,m="function"==typeof Symbol?Symbol.prototype.valueOf:null,w=r(20)(),E=r(19)(),T=Object.getPrototypeOf;T||(T="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){var e,r=t.constructor;if(u(t,"constructor")){if(e=r,!delete t.constructor)return null;r=t.constructor,t.constructor=e}return r?r.prototype:n});var A=Array.isArray||function(t){return"[object Array]"===o.call(t)},S=function(t){return t.replace(/^function ?\(/,"function (").replace("){",") {")},x=function(t){var e=[];try{E.Map.call(t,function(t,r){e.push([t,r])})}catch(r){try{E.Set.call(t,function(t){e.push([t])})}catch(n){return!1}}return e};t.exports=function j(t,e){if(t===e)return"";if(null==t||null==e)return t===e?"":String(t)+" !== "+String(e);var r=o.call(t),n=o.call(t);if(r!==n)return"toStringTag is not the same: "+r+" !== "+n;var b=s(t),B=s(e);if(b||B){if(!b)return"first argument is not a boolean; second argument is";if(!B)return"second argument is not a boolean; first argument is";var O=i.call(t),I=i.call(e);return O===I?"":"primitive value of boolean arguments do not match: "+O+" !== "+I}var _=l(t),P=l(t);if(_||P){if(!_)return"first argument is not a number; second argument is";if(!P)return"second argument is not a number; first argument is";var R=Number(t),C=Number(e);if(R===C)return"";var M=isNaN(t),U=isNaN(e);return M&&!U?"first argument is NaN; second is not":!M&&U?"second argument is NaN; first is not":M&&U?"":"numbers are different: "+t+" !== "+e}var L=p(t),N=p(e);if(L||N){if(!L)return"second argument is string; first is not";if(!N)return"first argument is string; second is not";var k=String(t),D=String(e);return k===D?"":'string values are different: "'+k+'" !== "'+D+'"'}var F=c(t),Y=c(e);if(F||Y){if(!F)return"second argument is Date, first is not";if(!Y)return"first argument is Date, second is not";var H=+t,q=+e;return H===q?"":"Dates have different time values: "+H+" !== "+q}var K=h(t),$=h(e);if(K||$){if(!K)return"second argument is RegExp, first is not";if(!$)return"first argument is RegExp, second is not";var G=String(t),z=String(e);return G===z?"":"regular expressions differ: "+G+" !== "+z}var J=A(t),W=A(e);if(J||W){if(!J)return"second argument is an Array, first is not";if(!W)return"first argument is an Array, second is not";if(t.length!==e.length)return"arrays have different length: "+t.length+" !== "+e.length;if(String(t)!==String(e))return"stringified Arrays differ";for(var X,Z,Q=t.length-1,V="";""===V&&Q>=0;){if(X=u(t,Q),Z=u(e,Q),!X&&Z)return"second argument has index "+Q+"; first does not";if(X&&!Z)return"first argument has index "+Q+"; second does not";V=j(t[Q],e[Q]),Q-=1}return V}var tt=y(t),et=y(e);if(tt!==et)return tt?"first argument is Symbol; second is not":"second argument is Symbol; first is not";if(tt&&et)return m.call(t)===m.call(e)?"":"first Symbol value !== second Symbol value";var rt=f(t),nt=f(e);if(rt!==nt)return rt?"first argument is a Generator; second is not":"second argument is a Generator; first is not";var ot=a(t),it=a(e);if(ot!==it)return ot?"first argument is an Arrow function; second is not":"second argument is an Arrow function; first is not";if(g(t)||g(e)){if(v&&""!==j(t.name,e.name))return'Function names differ: "'+t.name+'" !== "'+e.name+'"';if(""!==j(t.length,e.length))return"Function lengths differ: "+t.length+" !== "+e.length;var ut=S(String(t)),at=S(String(e));return""===j(ut,at)?"":rt||ot?""===j(ut,at)?"":"Function string representations differ":""===j(ut.replace(/\)\s*\{/,"){"),at.replace(/\)\s*\{/,"){"))?"":"Function string representations differ"}if("object"==typeof t||"object"==typeof e){if(typeof t!=typeof e)return"arguments have a different typeof: "+typeof t+" !== "+typeof e;if(d.call(t,e))return"first argument is the [[Prototype]] of the second";if(d.call(e,t))return"second argument is the [[Prototype]] of the first";if(T(t)!==T(e))return"arguments have a different [[Prototype]]";if(w){var st=t[w],ct=g(st),ft=e[w],lt=g(ft);if(ct!==lt)return ct?"first argument is iterable; second is not":"second argument is iterable; first is not";if(ct&&lt){var ht,pt,yt,gt=st.call(t),dt=ft.call(e);do if(ht=gt.next(),pt=dt.next(),!ht.done&&!pt.done&&(yt=j(ht,pt),""!==yt))return"iteration results are not equal: "+yt;while(!ht.done&&!pt.done);return ht.done&&!pt.done?"first argument finished iterating before second":!ht.done&&pt.done?"second argument finished iterating before first":""}}else if(E.Map||E.Set){var bt=x(t),vt=x(e),mt=A(bt),wt=A(vt);if(mt&&!wt)return"first argument has Collection entries, second does not";if(!mt&&wt)return"second argument has Collection entries, first does not";if(mt&&wt){var Et=j(bt,vt);return""===Et?"":"Collection entries differ: "+Et}}var Tt,At,St,xt;for(Tt in t)if(u(t,Tt)){if(!u(e,Tt))return'first argument has key "'+Tt+'"; second does not';if(At=t[Tt]&&t[Tt][Tt]===t,St=e[Tt]&&e[Tt][Tt]===e,At!==St)return At?'first argument has a circular reference at key "'+Tt+'"; second does not':'second argument has a circular reference at key "'+Tt+'"; first does not';if(!At&&!St&&(xt=j(t[Tt],e[Tt]),""!==xt))return'value at key "'+Tt+'" differs: '+xt}for(Tt in e)if(u(e,Tt)&&!u(t,Tt))return'second argument has key "'+Tt+'"; first does not';return""}return!1}},function(t,e){"use strict";var r=Object.prototype.toString,n=Function.prototype.toString,o=/^\s*function\*/;t.exports=function(t){if("function"!=typeof t)return!1;var e=r.call(t);return("[object Function]"===e||"[object GeneratorFunction]"===e)&&o.test(n.call(t))}},function(t,e){"use strict";var r=Number.prototype.toString,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Number]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"number"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";var r=String.prototype.valueOf,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object String]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){function r(t){return String(t).replace(/"/g,"&quot;")}function n(t){return"[object Array]"===c(t)}function o(t){return"[object Date]"===c(t)}function i(t){return"[object RegExp]"===c(t)}function u(t){return"[object Error]"===c(t)}function a(t){return"[object Symbol]"===c(t)}function s(t,e){return S.call(t,e)}function c(t){return Object.prototype.toString.call(t)}function f(t){if(t.name)return t.name;var e=t.toString().match(/^function\s*([\w$]+)/);return e?e[1]:void 0}function l(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;n>r;r++)if(t[r]===e)return r;return-1}function h(t){if(!v)return!1;try{return v.call(t),!0}catch(e){}return!1}function p(t){if(!T)return!1;try{return T.call(t),!0}catch(e){}return!1}function y(t){return t&&"object"==typeof t?"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?!0:"string"==typeof t.nodeName&&"function"==typeof t.getAttribute:!1;
}function g(t){function e(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(16>e?"0":"")+e.toString(16)}var r=t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,e);return"'"+r+"'"}var d="function"==typeof Map&&Map.prototype,b=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,v=d&&b&&"function"==typeof b.get?b.get:null,m=d&&Map.prototype.forEach,w="function"==typeof Set&&Set.prototype,E=Object.getOwnPropertyDescriptor&&w?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,T=w&&E&&"function"==typeof E.get?E.get:null,A=w&&Set.prototype.forEach;t.exports=function x(t,e,c,d){function b(t,r){return r&&(d=d.slice(),d.push(r)),x(t,e,c+1,d)}e||(e={});var w=void 0===e.depth?5:e.depth;if(void 0===c&&(c=0),c>=w&&w>0&&t&&"object"==typeof t)return"[Object]";if(void 0===d)d=[];else if(l(d,t)>=0)return"[Circular]";if("string"==typeof t)return g(t);if("function"==typeof t){var E=f(t);return"[Function"+(E?": "+E:"")+"]"}if(null===t)return"null";if(a(t)){var S=Symbol.prototype.toString.call(t);return"object"==typeof t?"Object("+S+")":S}if(y(t)){for(var j="<"+String(t.nodeName).toLowerCase(),B=t.attributes||[],O=0;O<B.length;O++)j+=" "+B[O].name+'="'+r(B[O].value)+'"';return j+=">",t.childNodes&&t.childNodes.length&&(j+="..."),j+="</"+String(t.nodeName).toLowerCase()+">"}if(n(t)){if(0===t.length)return"[]";for(var I=Array(t.length),O=0;O<t.length;O++)I[O]=s(t,O)?b(t[O],t):"";return"[ "+I.join(", ")+" ]"}if(u(t)){var _=[];for(var P in t)s(t,P)&&(/[^\w$]/.test(P)?_.push(b(P)+": "+b(t[P])):_.push(P+": "+b(t[P])));return 0===_.length?"["+t+"]":"{ ["+t+"] "+_.join(", ")+" }"}if("object"==typeof t&&"function"==typeof t.inspect)return t.inspect();if(h(t)){var _=[];return m.call(t,function(e,r){_.push(b(r,t)+" => "+b(e,t))}),"Map ("+v.call(t)+") {"+_.join(", ")+"}"}if(p(t)){var _=[];return A.call(t,function(e){_.push(b(e,t))}),"Set ("+T.call(t)+") {"+_.join(", ")+"}"}if("object"!=typeof t||o(t)||i(t))return String(t);var I=[],R=[];for(var P in t)s(t,P)&&R.push(P);R.sort();for(var O=0;O<R.length;O++){var P=R[O];/[^\w$]/.test(P)?I.push(b(P)+": "+b(t[P],t)):I.push(P+": "+b(t[P],t))}return 0===I.length?"{}":"{ "+I.join(", ")+" }"};var S=Object.prototype.hasOwnProperty||function(t){return t in this}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Array.prototype.slice,u=r(28),a=!{toString:null}.propertyIsEnumerable("toString"),s=function(){}.propertyIsEnumerable("prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},l={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!l["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{f(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!h)return f(t);try{return f(t)}catch(e){return!1}},y=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),i=u(t),f=e&&"[object String]"===o.call(t),l=[];if(!e&&!r&&!i)throw new TypeError("Object.keys called on a non-object");var h=s&&r;if(f&&t.length>0&&!n.call(t,0))for(var y=0;y<t.length;++y)l.push(String(y));if(i&&t.length>0)for(var g=0;g<t.length;++g)l.push(String(g));else for(var d in t)h&&"prototype"===d||!n.call(t,d)||l.push(String(d));if(a)for(var b=p(t),v=0;v<c.length;++v)b&&"constructor"===c[v]||!n.call(t,c[v])||l.push(c[v]);return l};y.shim=function(){if(Object.keys){var t=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!t){var e=Object.keys;Object.keys=function(t){return e(u(t)?i.call(t):t)}}}else Object.keys=y;return Object.keys||y},t.exports=y},function(t,e){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e){function r(){c=!1,u.length?s=u.concat(s):f=-1,s.length&&n()}function n(){if(!c){var t=setTimeout(r);c=!0;for(var e=s.length;e;){for(u=s,s=[];++f<e;)u&&u[f].run();f=-1,e=s.length}u=null,c=!1,clearTimeout(t)}}function o(t,e){this.fun=t,this.array=e}function i(){}var u,a=t.exports={},s=[],c=!1,f=-1;a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new o(t,e)),1!==s.length||c||setTimeout(n,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=i,a.addListener=i,a.once=i,a.off=i,a.removeListener=i,a.removeAllListeners=i,a.emit=i,a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(t,e,r){(function(e,r){"use strict";function n(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function o(t,e){return i(t,e,[],[])}function i(t,e,o,a){if(u("TMATCH",typeof t,e),t==e)return u("TMATCH same object or simple value, or problem"),null===t||null===e?!0:"object"==typeof t&&"object"==typeof e?!0:"object"==typeof t&&"object"!=typeof e?!1:"object"==typeof t||"object"!=typeof e;if(null===t||null===e)return u("TMATCH null test, already failed =="),!1;if("string"==typeof t&&e instanceof RegExp)return u("TMATCH string~=regexp test"),e.test(t);if("string"==typeof t&&"string"==typeof e&&e)return u("TMATCH string~=string test"),-1!==t.indexOf(e);if(t instanceof Date&&e instanceof Date)return u("TMATCH date test"),t.getTime()===e.getTime();if(t instanceof Date&&"string"==typeof e)return u("TMATCH date~=string test"),t.getTime()===new Date(e).getTime();if(n(t)||n(e)){u("TMATCH arguments test");var s=Array.prototype.slice;return i(s.call(t),s.call(e),o,a)}if(e===r)return u("TMATCH Buffer ctor"),r.isBuffer(t);if(e===Function)return u("TMATCH Function ctor"),"function"==typeof t;if(e===Number)return u("TMATCH Number ctor (finite, not NaN)"),"number"==typeof t&&t===t&&isFinite(t);if(e!==e)return u("TMATCH NaN"),t!==t;if(e===String)return u("TMATCH String ctor"),"string"==typeof t;if(e===Boolean)return u("TMATCH Boolean ctor"),"boolean"==typeof t;if(e===Array)return u("TMATCH Array ctor",e,Array.isArray(t)),Array.isArray(t);if("function"==typeof e&&"object"==typeof t)return u("TMATCH object~=function"),t instanceof e;if("object"!=typeof t||"object"!=typeof e)return u("TMATCH obj is not object, pattern is not object, false"),!1;if(t instanceof RegExp&&e instanceof RegExp)return u("TMATCH regexp~=regexp test"),t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(r.isBuffer(t)&&r.isBuffer(e)){if(u("TMATCH buffer test"),t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var c=0;c<t.length;c++)if(t[c]!=e[c])return!1;return!0}u("TMATCH object~=object test");var f=Object.keys(t),l=Object.keys(e);if(u(" TMATCH patternkeys=%j objkeys=%j",l,f),0===f.length&&0===l.length)return!0;u(" TMATCH check seen objects...");for(var h=o.length;h--;)if(o[h]===t&&a[h]===e)return!0;o.push(t),a.push(e),u(" TMATCH not seen previously");for(var p,y=l.length-1;y>=0;y--)if(p=l[y],u(" TMATCH test obj[%j]",p,t[p],e[p]),!i(t[p],e[p],o,a))return!1;return o.pop(),a.pop(),u(" TMATCH object pass"),!0}t.exports=o;var u=/\btmatch\b/.test(e.env.NODE_DEBUG||"")?console.error:function(){}}).call(e,r(29),r(6).Buffer)}])});
"use strict";function o(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(r){return!1}}function i(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(e){return this instanceof t?(t.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?u(this,e):"string"==typeof e?a(this,e,arguments.length>1?arguments[1]:"utf8"):s(this,e)):arguments.length>1?new t(e,arguments[1]):new t(e)}function u(e,r){if(e=g(e,0>r?0:0|d(r)),!t.TYPED_ARRAY_SUPPORT)for(var n=0;r>n;n++)e[n]=0;return e}function a(t,e,r){"string"==typeof r&&""!==r||(r="utf8");var n=0|v(e,r);return t=g(t,n),t.write(e,r),t}function s(e,r){if(t.isBuffer(r))return c(e,r);if(X(r))return f(e,r);if(null==r)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(r.buffer instanceof ArrayBuffer)return l(e,r);if(r instanceof ArrayBuffer)return h(e,r)}return r.length?p(e,r):y(e,r)}function c(t,e){var r=0|d(e.length);return t=g(t,r),e.copy(t,0,0,r),t}function f(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function l(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function h(e,r){return t.TYPED_ARRAY_SUPPORT?(r.byteLength,e=t._augment(new Uint8Array(r))):e=l(e,new Uint8Array(r)),e}function p(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function y(t,e){var r,n=0;"Buffer"===e.type&&X(e.data)&&(r=e.data,n=0|d(r.length)),t=g(t,n);for(var o=0;n>o;o+=1)t[o]=255&r[o];return t}function g(e,r){t.TYPED_ARRAY_SUPPORT?(e=t._augment(new Uint8Array(r)),e.__proto__=t.prototype):(e.length=r,e._isBuffer=!0);var n=0!==r&&r<=t.poolSize>>>1;return n&&(e.parent=Z),e}function d(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function b(e,r){if(!(this instanceof b))return new b(e,r);var n=new t(e,r);return delete n.parent,n}function v(t,e){"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(n)return K(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if(e=0|e,r=void 0===r||r===1/0?this.length:0|r,t||(t="utf8"),0>e&&(e=0),r>this.length&&(r=this.length),e>=r)return"";for(;;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return O(this,e,r);case"ascii":return I(this,e,r);case"binary":return _(this,e,r);case"base64":return j(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;if(i%2!==0)throw new Error("Invalid hex string");n>i/2&&(n=i/2);for(var u=0;n>u;u++){var a=parseInt(e.substr(2*u,2),16);if(isNaN(a))throw new Error("Invalid hex string");t[r+u]=a}return u}function E(t,e,r,n){return z(K(e,t.length-r),t,r,n)}function A(t,e,r,n){return z(q(e),t,r,n)}function T(t,e,r,n){return A(t,e,r,n)}function S(t,e,r,n){return z(G(e),t,r,n)}function x(t,e,r,n){return z($(e,t.length-r),t,r,n)}function j(t,e,r){return 0===e&&r===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,r))}function O(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;r>o;){var i=t[o],u=null,a=i>239?4:i>223?3:i>191?2:1;if(r>=o+a){var s,c,f,l;switch(a){case 1:128>i&&(u=i);break;case 2:s=t[o+1],128===(192&s)&&(l=(31&i)<<6|63&s,l>127&&(u=l));break;case 3:s=t[o+1],c=t[o+2],128===(192&s)&&128===(192&c)&&(l=(15&i)<<12|(63&s)<<6|63&c,l>2047&&(55296>l||l>57343)&&(u=l));break;case 4:s=t[o+1],c=t[o+2],f=t[o+3],128===(192&s)&&128===(192&c)&&128===(192&f)&&(l=(15&i)<<18|(63&s)<<12|(63&c)<<6|63&f,l>65535&&1114112>l&&(u=l))}}null===u?(u=65533,a=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=a}return B(n)}function B(t){var e=t.length;if(Q>=e)return String.fromCharCode.apply(String,t);for(var r="",n=0;e>n;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Q));return r}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;r>o;o++)n+=String.fromCharCode(127&t[o]);return n}function _(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;r>o;o++)n+=String.fromCharCode(t[o]);return n}function P(t,e,r){var n=t.length;(!e||0>e)&&(e=0),(!r||0>r||r>n)&&(r=n);for(var o="",i=e;r>i;i++)o+=H(t[i]);return o}function R(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function C(t,e,r){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,r,n,o,i,u){if(!t.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(r>i||u>r)throw new RangeError("value is out of bounds");if(n+o>e.length)throw new RangeError("index out of range")}function U(t,e,r,n){0>e&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);i>o;o++)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function L(t,e,r,n){0>e&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);i>o;o++)t[r+o]=e>>>8*(n?o:3-o)&255}function N(t,e,r,n,o,i){if(e>o||i>e)throw new RangeError("value is out of bounds");if(r+n>t.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function k(t,e,r,n,o){return o||N(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),W.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,o){return o||N(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),W.write(t,e,r,n,52,8),r+8}function F(t){if(t=Y(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return 16>t?"0"+t.toString(16):t.toString(16)}function K(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],u=0;n>u;u++){if(r=t.charCodeAt(u),r>55295&&57344>r){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(56320>r){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,128>r){if((e-=1)<0)break;i.push(r)}else if(2048>r){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(65536>r){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(1114112>r))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function q(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e}function $(t,e){for(var r,n,o,i=[],u=0;u<t.length&&!((e-=2)<0);u++)r=t.charCodeAt(u),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function G(t){return J.toByteArray(F(t))}function z(t,e,r,n){for(var o=0;n>o&&!(o+r>=e.length||o>=t.length);o++)e[o+r]=t[o];return o}var J=r(12),W=r(18),X=r(13);e.Buffer=t,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,t.poolSize=8192;var Z={};t.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:o(),t.TYPED_ARRAY_SUPPORT?(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array):(t.prototype.length=void 0,t.prototype.parent=void 0),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,r){if(!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,o=r.length,i=0,u=Math.min(n,o);u>i&&e[i]===r[i];)++i;return i!==u&&(n=e[i],o=r[i]),o>n?-1:n>o?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,r){if(!X(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new t(0);var n;if(void 0===r)for(r=0,n=0;n<e.length;n++)r+=e[n].length;var o=new t(r),i=0;for(n=0;n<e.length;n++){var u=e[n];u.copy(o,i),i+=u.length}return o},t.byteLength=v,t.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):m.apply(this,arguments)},t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===t.compare(this,e)},t.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},t.prototype.compare=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:t.compare(this,e)},t.prototype.indexOf=function(e,r){function n(t,e,r){for(var n=-1,o=0;r+o<t.length;o++)if(t[r+o]===e[-1===n?0:o-n]){if(-1===n&&(n=o),o-n+1===e.length)return r+n}else n=-1;return-1}if(r>2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(0>r&&(r=Math.max(this.length+r,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,r);if(t.isBuffer(e))return n(this,e,r);if("number"==typeof e)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,r):n(this,[e],r);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},t.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0);else{var o=n;n=e,e=0|r,r=o}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(0>r||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return A(this,t,e,r);case"binary":return T(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;t.prototype.slice=function(e,r){var n=this.length;e=~~e,r=void 0===r?n:~~r,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>r?(r+=n,0>r&&(r=0)):r>n&&(r=n),e>r&&(r=e);var o;if(t.TYPED_ARRAY_SUPPORT)o=t._augment(this.subarray(e,r));else{var i=r-e;o=new t(i,void 0);for(var u=0;i>u;u++)o[u]=this[u+e]}return o.length&&(o.parent=this.parent||this),o},t.prototype.readUIntLE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},t.prototype.readUIntBE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},t.prototype.readUInt8=function(t,e){return e||C(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||C(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||C(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},t.prototype.readIntBE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},t.prototype.readInt8=function(t,e){return e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||C(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(t,e){e||C(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(t,e){return e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||C(t,4,this.length),W.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||C(t,4,this.length),W.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||C(t,8,this.length),W.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||C(t,8,this.length),W.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||M(this,t,e,r,Math.pow(2,8*r),0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},t.prototype.writeUIntBE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||M(this,t,e,r,Math.pow(2,8*r),0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},t.prototype.writeUInt8=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},t.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):U(this,e,r,!0),r+2},t.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):U(this,e,r,!1),r+2},t.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):L(this,e,r,!0),r+4},t.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):L(this,e,r,!1),r+4},t.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e=0|e,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=0,u=1,a=0>t?1:0;for(this[e]=255&t;++i<r&&(u*=256);)this[e+i]=(t/u>>0)-a&255;return e+r},t.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e=0|e,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=r-1,u=1,a=0>t?1:0;for(this[e+i]=255&t;--i>=0&&(u*=256);)this[e+i]=(t/u>>0)-a&255;return e+r},t.prototype.writeInt8=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[r]=255&e,r+1},t.prototype.writeInt16LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):U(this,e,r,!0),r+2},t.prototype.writeInt16BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):U(this,e,r,!1),r+2},t.prototype.writeInt32LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):L(this,e,r,!0),r+4},t.prototype.writeInt32BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):L(this,e,r,!1),r+4},t.prototype.writeFloatLE=function(t,e,r){return k(this,t,e,!0,r)},t.prototype.writeFloatBE=function(t,e,r){return k(this,t,e,!1,r)},t.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},t.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},t.prototype.copy=function(e,r,n,o){if(n||(n=0),o||0===o||(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&n>o&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(0>r)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>o)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i,u=o-n;if(this===e&&r>n&&o>r)for(i=u-1;i>=0;i--)e[i+r]=this[i+n];else if(1e3>u||!t.TYPED_ARRAY_SUPPORT)for(i=0;u>i;i++)e[i+r]=this[i+n];else e._set(this.subarray(n,n+u),r);return u},t.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),e>r)throw new RangeError("end < start");if(r!==e&&0!==this.length){if(0>e||e>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof t)for(n=e;r>n;n++)this[n]=t;else{var o=K(t.toString()),i=o.length;for(n=e;r>n;n++)this[n]=o[n%i]}return this}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(t.TYPED_ARRAY_SUPPORT)return new t(this).buffer;for(var e=new Uint8Array(this.length),r=0,n=e.length;n>r;r+=1)e[r]=this[r];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var V=t.prototype;t._augment=function(e){return e.constructor=t,e._isBuffer=!0,e._set=e.set,e.get=V.get,e.set=V.set,e.write=V.write,e.toString=V.toString,e.toLocaleString=V.toString,e.toJSON=V.toJSON,e.equals=V.equals,e.compare=V.compare,e.indexOf=V.indexOf,e.copy=V.copy,e.slice=V.slice,e.readUIntLE=V.readUIntLE,e.readUIntBE=V.readUIntBE,e.readUInt8=V.readUInt8,e.readUInt16LE=V.readUInt16LE,e.readUInt16BE=V.readUInt16BE,e.readUInt32LE=V.readUInt32LE,e.readUInt32BE=V.readUInt32BE,e.readIntLE=V.readIntLE,e.readIntBE=V.readIntBE,e.readInt8=V.readInt8,e.readInt16LE=V.readInt16LE,e.readInt16BE=V.readInt16BE,e.readInt32LE=V.readInt32LE,e.readInt32BE=V.readInt32BE,e.readFloatLE=V.readFloatLE,e.readFloatBE=V.readFloatBE,e.readDoubleLE=V.readDoubleLE,e.readDoubleBE=V.readDoubleBE,e.writeUInt8=V.writeUInt8,e.writeUIntLE=V.writeUIntLE,e.writeUIntBE=V.writeUIntBE,e.writeUInt16LE=V.writeUInt16LE,e.writeUInt16BE=V.writeUInt16BE,e.writeUInt32LE=V.writeUInt32LE,e.writeUInt32BE=V.writeUInt32BE,e.writeIntLE=V.writeIntLE,e.writeIntBE=V.writeIntBE,e.writeInt8=V.writeInt8,e.writeInt16LE=V.writeInt16LE,e.writeInt16BE=V.writeInt16BE,e.writeInt32LE=V.writeInt32LE,e.writeInt32BE=V.writeInt32BE,e.writeFloatLE=V.writeFloatLE,e.writeFloatBE=V.writeFloatBE,e.writeDoubleLE=V.writeDoubleLE,e.writeDoubleBE=V.writeDoubleBE,e.fill=V.fill,e.inspect=V.inspect,e.toArrayBuffer=V.toArrayBuffer,e};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(6).Buffer,function(){return this}())},function(t,e,r){var n=r(17);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e){"use strict";var r=Function.prototype.toString,n=/^\s*class /,o=function(t){try{var e=r.call(t),o=e.replace(/\/\/.*\n/g,""),i=o.replace(/\/\*[.\s\S]*\*\//g,""),u=i.replace(/\n/gm," ").replace(/ {2}/g," ");return n.test(u)}catch(a){return!1}},i=function(t){try{return o(t)?!1:(r.call(t),!0)}catch(e){return!1}},u=Object.prototype.toString,a="[object Function]",s="[object GeneratorFunction]",c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return i(t);if(o(t))return!1;var e=u.call(t);return e===a||e===s}},function(t,e){"use strict";var r=Object.prototype.toString,n="function"==typeof Symbol&&"symbol"==typeof Symbol();if(n){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/,u=function(t){return"symbol"!=typeof t.valueOf()?!1:i.test(o.call(t))};t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return u(t)}catch(e){return!1}}}else t.exports=function(t){return!1}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Array.prototype.slice,u=r(30),a=!{toString:null}.propertyIsEnumerable("toString"),s=function(){}.propertyIsEnumerable("prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},l={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!l["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{f(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!h)return f(t);try{return f(t)}catch(e){return!1}},y=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),i=u(t),f=e&&"[object String]"===o.call(t),l=[];if(!e&&!r&&!i)throw new TypeError("Object.keys called on a non-object");var h=s&&r;if(f&&t.length>0&&!n.call(t,0))for(var y=0;y<t.length;++y)l.push(String(y));if(i&&t.length>0)for(var g=0;g<t.length;++g)l.push(String(g));else for(var d in t)h&&"prototype"===d||!n.call(t,d)||l.push(String(d));if(a)for(var b=p(t),v=0;v<c.length;++v)b&&"constructor"===c[v]||!n.call(t,c[v])||l.push(c[v]);return l};y.shim=function(){if(Object.keys){var t=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!t){var e=Object.keys;Object.keys=function(t){return e(u(t)?i.call(t):t)}}}else Object.keys=y;return Object.keys||y},t.exports=y},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(-1===a.indexOf(t)){a.push(t);for(var e in t)t.hasOwnProperty(e)&&(u["default"].prototype[e]=t[e])}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(3),u=n(i),a=[];e["default"]=o},function(t,e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===u||e===l?62:e===a||e===h?63:s>e?-1:s+10>e?e-s+26+26:f+26>e?e-f:c+26>e?e-c+26:void 0}function r(t){function r(t){c[l++]=t}var n,o,u,a,s,c;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;s="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,c=new i(3*t.length/4-s),u=s>0?t.length-4:t.length;var l=0;for(n=0,o=0;u>n;n+=4,o+=3)a=e(t.charAt(n))<<18|e(t.charAt(n+1))<<12|e(t.charAt(n+2))<<6|e(t.charAt(n+3)),r((16711680&a)>>16),r((65280&a)>>8),r(255&a);return 2===s?(a=e(t.charAt(n))<<2|e(t.charAt(n+1))>>4,r(255&a)):1===s&&(a=e(t.charAt(n))<<10|e(t.charAt(n+1))<<4|e(t.charAt(n+2))>>2,r(a>>8&255),r(255&a)),c}function o(t){function e(t){return n.charAt(t)}function r(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var o,i,u,a=t.length%3,s="";for(o=0,u=t.length-a;u>o;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],s+=r(i);switch(a){case 1:i=t[t.length-1],s+=e(i>>2),s+=e(i<<4&63),s+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],s+=e(i>>10),s+=e(i>>4&63),s+=e(i<<2&63),s+="="}return s}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="+".charCodeAt(0),a="/".charCodeAt(0),s="0".charCodeAt(0),c="a".charCodeAt(0),f="A".charCodeAt(0),l="-".charCodeAt(0),h="_".charCodeAt(0);t.toByteArray=r,t.fromByteArray=o}(e)},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";var n=r(10),o=r(15),i="function"==typeof Symbol&&"symbol"==typeof Symbol(),u=Object.prototype.toString,a=function(t){return"function"==typeof t&&"[object Function]"===u.call(t)},s=function(){var t={};try{Object.defineProperty(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(r){return!1}},c=Object.defineProperty&&s(),f=function(t,e,r,n){(!(e in t)||a(n)&&n())&&(c?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},l=function(t,e){var r=arguments.length>2?arguments[2]:{},u=n(e);i&&(u=u.concat(Object.getOwnPropertySymbols(e))),o(u,function(n){f(t,n,e[n],r[n])})};l.supportsDescriptors=!!c,t.exports=l},function(t,e){var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=function(t,e,o){if("[object Function]"!==n.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var u=0;i>u;u++)e.call(o,t[u],u,t);else for(var a in t)r.call(t,a)&&e.call(o,t[a],a,t)}},function(t,e){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,i="[object Function]";t.exports=function(t){var e=this;if("function"!=typeof e||o.call(e)!==i)throw new TypeError(r+e);for(var u,a=n.call(arguments,1),s=function(){if(this instanceof u){var r=e.apply(this,a.concat(n.call(arguments)));return Object(r)===r?r:this}return e.apply(t,a.concat(n.call(arguments)))},c=Math.max(0,e.length-a.length),f=[],l=0;c>l;l++)f.push("$"+l);if(u=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var h=function(){};h.prototype=e.prototype,u.prototype=new h,h.prototype=null}return u}},function(t,e,r){var n=r(16);t.exports=Function.prototype.bind||n},function(t,e){e.read=function(t,e,r,n,o){var i,u,a=8*o-n-1,s=(1<<a)-1,c=s>>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(u=i&(1<<-f)-1,i>>=-f,f+=n;f>0;u=256*u+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===s)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,n),i-=c}return(p?-1:1)*u*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var u,a,s,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,y=n?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=f):(u=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-u))<1&&(u--,s*=2),e+=u+l>=1?h/s:h*Math.pow(2,1-l),e*s>=2&&(u++,s/=2),u+l>=f?(a=0,u=f):u+l>=1?(a=(e*s-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[r+p]=255&a,p+=y,a/=256,o-=8);for(u=u<<o|a,c+=o;c>0;t[r+p]=255&u,p+=y,u/=256,c-=8);t[r+p-y]|=128*g}},function(t,e,r){"use strict";var n=r(8),o=Function.prototype.toString,i=/^\s*function/,u=/^\([^\)]*\) *=>/,a=/^[^=]*=>/;t.exports=function(t){if(!n(t))return!1;var e=o.call(t);return e.length>0&&!i.test(e)&&(u.test(e)||a.test(e))}},function(t,e){"use strict";var r=Boolean.prototype.toString,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Boolean]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"boolean"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";var r=Date.prototype.getDay,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Date]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t||null===t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";t.exports=function(){var t=function(){if("function"!=typeof Map)return null;try{Map.prototype.forEach.call({},function(){})}catch(t){return Map.prototype.forEach}return null}(),e=function(){if("function"!=typeof Set)return null;try{Set.prototype.forEach.call({},function(){})}catch(t){return Set.prototype.forEach}return null}();return{Map:t,Set:e}}},function(t,e,r){"use strict";var n=r(9);t.exports=function(){var t="function"==typeof Symbol&&n(Symbol.iterator)?Symbol.iterator:null;return"function"==typeof Object.getOwnPropertyNames&&"function"==typeof Map&&"function"==typeof Map.prototype.entries&&Object.getOwnPropertyNames(Map.prototype).forEach(function(e){"entries"!==e&&"size"!==e&&Map.prototype[e]===Map.prototype.entries&&(t=e)}),t}},function(t,e,r){"use strict";var n=r(25);t.exports=function(t,e){return""===n(t,e)}},function(t,e,r){"use strict";var n=Object.prototype,o=n.toString,i=Boolean.prototype.valueOf,u=r(7),a=r(19),s=r(20),c=r(21),f=r(26),l=r(27),h=r(2),p=r(28),y=r(9),g=r(8),d=Object.prototype.isPrototypeOf,b=function(){},v="foo"===b.name,m="function"==typeof Symbol?Symbol.prototype.valueOf:null,w=r(23)(),E=r(22)(),A=Object.getPrototypeOf;A||(A="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){var e,r=t.constructor;if(u(t,"constructor")){if(e=r,!delete t.constructor)return null;r=t.constructor,t.constructor=e}return r?r.prototype:n});var T=Array.isArray||function(t){return"[object Array]"===o.call(t)},S=function(t){return t.replace(/^function ?\(/,"function (").replace("){",") {")},x=function(t){var e=[];try{E.Map.call(t,function(t,r){e.push([t,r])})}catch(r){try{E.Set.call(t,function(t){e.push([t])})}catch(n){return!1}}return e};t.exports=function j(t,e){if(t===e)return"";if(null==t||null==e)return t===e?"":String(t)+" !== "+String(e);var r=o.call(t),n=o.call(t);if(r!==n)return"toStringTag is not the same: "+r+" !== "+n;var b=s(t),O=s(e);if(b||O){if(!b)return"first argument is not a boolean; second argument is";if(!O)return"second argument is not a boolean; first argument is";var B=i.call(t),I=i.call(e);return B===I?"":"primitive value of boolean arguments do not match: "+B+" !== "+I}var _=l(t),P=l(t);if(_||P){if(!_)return"first argument is not a number; second argument is";if(!P)return"second argument is not a number; first argument is";var R=Number(t),C=Number(e);if(R===C)return"";var M=isNaN(t),U=isNaN(e);return M&&!U?"first argument is NaN; second is not":!M&&U?"second argument is NaN; first is not":M&&U?"":"numbers are different: "+t+" !== "+e}var L=p(t),N=p(e);if(L||N){if(!L)return"second argument is string; first is not";if(!N)return"first argument is string; second is not";var k=String(t),D=String(e);return k===D?"":'string values are different: "'+k+'" !== "'+D+'"'}var F=c(t),Y=c(e);if(F||Y){if(!F)return"second argument is Date, first is not";if(!Y)return"first argument is Date, second is not";var H=+t,K=+e;return H===K?"":"Dates have different time values: "+H+" !== "+K}var q=h(t),$=h(e);if(q||$){if(!q)return"second argument is RegExp, first is not";if(!$)return"first argument is RegExp, second is not";var G=String(t),z=String(e);return G===z?"":"regular expressions differ: "+G+" !== "+z}var J=T(t),W=T(e);if(J||W){if(!J)return"second argument is an Array, first is not";if(!W)return"first argument is an Array, second is not";if(t.length!==e.length)return"arrays have different length: "+t.length+" !== "+e.length;if(String(t)!==String(e))return"stringified Arrays differ";for(var X,Z,Q=t.length-1,V="";""===V&&Q>=0;){if(X=u(t,Q),Z=u(e,Q),!X&&Z)return"second argument has index "+Q+"; first does not";if(X&&!Z)return"first argument has index "+Q+"; second does not";V=j(t[Q],e[Q]),Q-=1}return V}var tt=y(t),et=y(e);if(tt!==et)return tt?"first argument is Symbol; second is not":"second argument is Symbol; first is not";if(tt&&et)return m.call(t)===m.call(e)?"":"first Symbol value !== second Symbol value";var rt=f(t),nt=f(e);if(rt!==nt)return rt?"first argument is a Generator; second is not":"second argument is a Generator; first is not";var ot=a(t),it=a(e);if(ot!==it)return ot?"first argument is an Arrow function; second is not":"second argument is an Arrow function; first is not";if(g(t)||g(e)){if(v&&""!==j(t.name,e.name))return'Function names differ: "'+t.name+'" !== "'+e.name+'"';if(""!==j(t.length,e.length))return"Function lengths differ: "+t.length+" !== "+e.length;var ut=S(String(t)),at=S(String(e));return""===j(ut,at)?"":rt||ot?""===j(ut,at)?"":"Function string representations differ":""===j(ut.replace(/\)\s*\{/,"){"),at.replace(/\)\s*\{/,"){"))?"":"Function string representations differ"}if("object"==typeof t||"object"==typeof e){if(typeof t!=typeof e)return"arguments have a different typeof: "+typeof t+" !== "+typeof e;if(d.call(t,e))return"first argument is the [[Prototype]] of the second";if(d.call(e,t))return"second argument is the [[Prototype]] of the first";if(A(t)!==A(e))return"arguments have a different [[Prototype]]";if(w){var st=t[w],ct=g(st),ft=e[w],lt=g(ft);if(ct!==lt)return ct?"first argument is iterable; second is not":"second argument is iterable; first is not";if(ct&&lt){var ht,pt,yt,gt=st.call(t),dt=ft.call(e);do if(ht=gt.next(),pt=dt.next(),!ht.done&&!pt.done&&(yt=j(ht,pt),""!==yt))return"iteration results are not equal: "+yt;while(!ht.done&&!pt.done);return ht.done&&!pt.done?"first argument finished iterating before second":!ht.done&&pt.done?"second argument finished iterating before first":"";
}}else if(E.Map||E.Set){var bt=x(t),vt=x(e),mt=T(bt),wt=T(vt);if(mt&&!wt)return"first argument has Collection entries, second does not";if(!mt&&wt)return"second argument has Collection entries, first does not";if(mt&&wt){var Et=j(bt,vt);return""===Et?"":"Collection entries differ: "+Et}}var At,Tt,St,xt;for(At in t)if(u(t,At)){if(!u(e,At))return'first argument has key "'+At+'"; second does not';if(Tt=t[At]&&t[At][At]===t,St=e[At]&&e[At][At]===e,Tt!==St)return Tt?'first argument has a circular reference at key "'+At+'"; second does not':'second argument has a circular reference at key "'+At+'"; first does not';if(!Tt&&!St&&(xt=j(t[At],e[At]),""!==xt))return'value at key "'+At+'" differs: '+xt}for(At in e)if(u(e,At)&&!u(t,At))return'second argument has key "'+At+'"; first does not';return""}return!1}},function(t,e){"use strict";var r=Object.prototype.toString,n=Function.prototype.toString,o=/^\s*function\*/;t.exports=function(t){if("function"!=typeof t)return!1;var e=r.call(t);return("[object Function]"===e||"[object GeneratorFunction]"===e)&&o.test(n.call(t))}},function(t,e){"use strict";var r=Number.prototype.toString,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Number]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"number"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";var r=String.prototype.valueOf,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object String]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){function r(t){return String(t).replace(/"/g,"&quot;")}function n(t){return"[object Array]"===c(t)}function o(t){return"[object Date]"===c(t)}function i(t){return"[object RegExp]"===c(t)}function u(t){return"[object Error]"===c(t)}function a(t){return"[object Symbol]"===c(t)}function s(t,e){return S.call(t,e)}function c(t){return Object.prototype.toString.call(t)}function f(t){if(t.name)return t.name;var e=t.toString().match(/^function\s*([\w$]+)/);return e?e[1]:void 0}function l(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;n>r;r++)if(t[r]===e)return r;return-1}function h(t){if(!v)return!1;try{return v.call(t),!0}catch(e){}return!1}function p(t){if(!A)return!1;try{return A.call(t),!0}catch(e){}return!1}function y(t){return t&&"object"==typeof t?"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?!0:"string"==typeof t.nodeName&&"function"==typeof t.getAttribute:!1}function g(t){function e(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(16>e?"0":"")+e.toString(16)}var r=t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,e);return"'"+r+"'"}var d="function"==typeof Map&&Map.prototype,b=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,v=d&&b&&"function"==typeof b.get?b.get:null,m=d&&Map.prototype.forEach,w="function"==typeof Set&&Set.prototype,E=Object.getOwnPropertyDescriptor&&w?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,A=w&&E&&"function"==typeof E.get?E.get:null,T=w&&Set.prototype.forEach;t.exports=function x(t,e,c,d){function b(t,r){return r&&(d=d.slice(),d.push(r)),x(t,e,c+1,d)}e||(e={});var w=void 0===e.depth?5:e.depth;if(void 0===c&&(c=0),c>=w&&w>0&&t&&"object"==typeof t)return"[Object]";if(void 0===d)d=[];else if(l(d,t)>=0)return"[Circular]";if("string"==typeof t)return g(t);if("function"==typeof t){var E=f(t);return"[Function"+(E?": "+E:"")+"]"}if(null===t)return"null";if(a(t)){var S=Symbol.prototype.toString.call(t);return"object"==typeof t?"Object("+S+")":S}if(y(t)){for(var j="<"+String(t.nodeName).toLowerCase(),O=t.attributes||[],B=0;B<O.length;B++)j+=" "+O[B].name+'="'+r(O[B].value)+'"';return j+=">",t.childNodes&&t.childNodes.length&&(j+="..."),j+="</"+String(t.nodeName).toLowerCase()+">"}if(n(t)){if(0===t.length)return"[]";for(var I=Array(t.length),B=0;B<t.length;B++)I[B]=s(t,B)?b(t[B],t):"";return"[ "+I.join(", ")+" ]"}if(u(t)){var _=[];for(var P in t)s(t,P)&&(/[^\w$]/.test(P)?_.push(b(P)+": "+b(t[P])):_.push(P+": "+b(t[P])));return 0===_.length?"["+t+"]":"{ ["+t+"] "+_.join(", ")+" }"}if("object"==typeof t&&"function"==typeof t.inspect)return t.inspect();if(h(t)){var _=[];return m.call(t,function(e,r){_.push(b(r,t)+" => "+b(e,t))}),"Map ("+v.call(t)+") {"+_.join(", ")+"}"}if(p(t)){var _=[];return T.call(t,function(e){_.push(b(e,t))}),"Set ("+A.call(t)+") {"+_.join(", ")+"}"}if("object"!=typeof t||o(t)||i(t))return String(t);var I=[],R=[];for(var P in t)s(t,P)&&R.push(P);R.sort();for(var B=0;B<R.length;B++){var P=R[B];/[^\w$]/.test(P)?I.push(b(P)+": "+b(t[P],t)):I.push(P+": "+b(t[P],t))}return 0===I.length?"{}":"{ "+I.join(", ")+" }"};var S=Object.prototype.hasOwnProperty||function(t){return t in this}},function(t,e){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e){function r(){c=!1,u.length?s=u.concat(s):f=-1,s.length&&n()}function n(){if(!c){var t=setTimeout(r);c=!0;for(var e=s.length;e;){for(u=s,s=[];++f<e;)u&&u[f].run();f=-1,e=s.length}u=null,c=!1,clearTimeout(t)}}function o(t,e){this.fun=t,this.array=e}function i(){}var u,a=t.exports={},s=[],c=!1,f=-1;a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new o(t,e)),1!==s.length||c||setTimeout(n,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=i,a.addListener=i,a.once=i,a.off=i,a.removeListener=i,a.removeAllListeners=i,a.emit=i,a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(t,e,r){(function(e,r){"use strict";function n(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function o(t,e){return i(t,e,[],[])}function i(t,e,o,a){if(u("TMATCH",typeof t,e),t==e)return u("TMATCH same object or simple value, or problem"),null===t||null===e?!0:"object"==typeof t&&"object"==typeof e?!0:"object"==typeof t&&"object"!=typeof e?!1:"object"==typeof t||"object"!=typeof e;if(null===t||null===e)return u("TMATCH null test, already failed =="),!1;if("string"==typeof t&&e instanceof RegExp)return u("TMATCH string~=regexp test"),e.test(t);if("string"==typeof t&&"string"==typeof e&&e)return u("TMATCH string~=string test"),-1!==t.indexOf(e);if(t instanceof Date&&e instanceof Date)return u("TMATCH date test"),t.getTime()===e.getTime();if(t instanceof Date&&"string"==typeof e)return u("TMATCH date~=string test"),t.getTime()===new Date(e).getTime();if(n(t)||n(e)){u("TMATCH arguments test");var s=Array.prototype.slice;return i(s.call(t),s.call(e),o,a)}if(e===r)return u("TMATCH Buffer ctor"),r.isBuffer(t);if(e===Function)return u("TMATCH Function ctor"),"function"==typeof t;if(e===Number)return u("TMATCH Number ctor (finite, not NaN)"),"number"==typeof t&&t===t&&isFinite(t);if(e!==e)return u("TMATCH NaN"),t!==t;if(e===String)return u("TMATCH String ctor"),"string"==typeof t;if(e===Boolean)return u("TMATCH Boolean ctor"),"boolean"==typeof t;if(e===Array)return u("TMATCH Array ctor",e,Array.isArray(t)),Array.isArray(t);if("function"==typeof e&&"object"==typeof t)return u("TMATCH object~=function"),t instanceof e;if("object"!=typeof t||"object"!=typeof e)return u("TMATCH obj is not object, pattern is not object, false"),!1;if(t instanceof RegExp&&e instanceof RegExp)return u("TMATCH regexp~=regexp test"),t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(r.isBuffer(t)&&r.isBuffer(e)){if(u("TMATCH buffer test"),t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var c=0;c<t.length;c++)if(t[c]!=e[c])return!1;return!0}u("TMATCH object~=object test");var f=Object.keys(t),l=Object.keys(e);if(u(" TMATCH patternkeys=%j objkeys=%j",l,f),0===f.length&&0===l.length)return!0;u(" TMATCH check seen objects...");for(var h=o.length;h--;)if(o[h]===t&&a[h]===e)return!0;o.push(t),a.push(e),u(" TMATCH not seen previously");for(var p,y=l.length-1;y>=0;y--)if(p=l[y],u(" TMATCH test obj[%j]",p,t[p],e[p]),!i(t[p],e[p],o,a))return!1;return o.pop(),a.pop(),u(" TMATCH object pass"),!0}t.exports=o;var u=/\btmatch\b/.test(e.env.NODE_DEBUG||"")?console.error:function(){}}).call(e,r(31),r(6).Buffer)}])});

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc