UNPKG

matrixbitcore-lib

Version:

A pure and powerful JavaScript MatrixBit library.

16 lines 1.46 MB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.matrixbitcore=e():t.matrixbitcore=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=128)}([function(t,e,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @license MIT */ var i=r(130),n=r(131),o=r(80);function a(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=f.prototype:(null===t&&(t=new f(e)),t.length=e),t}function f(t,e,r){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return u(this,t,e,r)}function u(t,e,r,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,i){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,r):new Uint8Array(e,r,i);f.TYPED_ARRAY_SUPPORT?(t=e).__proto__=f.prototype:t=d(t,e);return t}(t,e,r,i):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!f.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(e,r),n=(t=s(t,i)).write(e,r);n!==i&&(t=t.slice(0,n));return t}(t,e,r):function(t,e){if(f.isBuffer(e)){var r=0|l(e.length);return 0===(t=s(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?s(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e){if(h(e),t=s(t,e<0?0:0|l(e)),!f.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function d(t,e){var r=e.length<0?0:0|l(e.length);t=s(t,r);for(var i=0;i<r;i+=1)t[i]=255&e[i];return t}function l(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(i)return j(t).length;e=(""+e).toLowerCase(),i=!0}}function b(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function m(t,e,r,i,n){if(0===t.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof e&&(e=f.from(e,i)),f.isBuffer(e))return 0===e.length?-1:v(t,e,r,i,n);if("number"==typeof e)return e&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,i,n){var o,a=1,s=t.length,f=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,f/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(t,o)===u(e,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===f)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(r+f>s&&(r=s-f),o=r;o>=0;o--){for(var c=!0,d=0;d<f;d++)if(u(t,o+d)!==u(e,d)){c=!1;break}if(c)return o}return-1}function g(t,e,r,i){r=Number(r)||0;var n=t.length-r;i?(i=Number(i))>n&&(i=n):i=n;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function y(t,e,r,i){return q(j(e,t.length-r),t,r,i)}function w(t,e,r,i){return q(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,i)}function _(t,e,r,i){return w(t,e,r,i)}function M(t,e,r,i){return q(z(e),t,r,i)}function k(t,e,r,i){return q(function(t,e){for(var r,i,n,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(e,t.length-r),t,r,i)}function S(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);for(var i=[],n=e;n<r;){var o,a,s,f,u=t[n],h=null,c=u>239?4:u>223?3:u>191?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=t[n+1]))&&(f=(31&u)<<6|63&o)>127&&(h=f);break;case 3:o=t[n+1],a=t[n+2],128==(192&o)&&128==(192&a)&&(f=(15&u)<<12|(63&o)<<6|63&a)>2047&&(f<55296||f>57343)&&(h=f);break;case 4:o=t[n+1],a=t[n+2],s=t[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(f=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&f<1114112&&(h=f)}null===h?(h=65533,c=1):h>65535&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=E));return r}(i)}e.Buffer=f,e.SlowBuffer=function(t){+t!=t&&(t=0);return f.alloc(+t)},e.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,e,r){return u(null,t,e,r)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,e,r){return function(t,e,r,i){return h(e),e<=0?s(t,e):void 0!==r?"string"==typeof i?s(t,e).fill(r,i):s(t,e).fill(r):s(t,e)}(null,t,e,r)},f.allocUnsafe=function(t){return c(null,t)},f.allocUnsafeSlow=function(t){return c(null,t)},f.isBuffer=function(t){return!(null==t||!t._isBuffer)},f.compare=function(t,e){if(!f.isBuffer(t)||!f.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,i=e.length,n=0,o=Math.min(r,i);n<o;++n)if(t[n]!==e[n]){r=t[n],i=e[n];break}return r<i?-1:i<r?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var i=f.allocUnsafe(e),n=0;for(r=0;r<t.length;++r){var a=t[r];if(!f.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,n),n+=a.length}return i},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},f.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):function(t,e,r){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return x(this,e,r);case"base64":return S(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}.apply(this,arguments)},f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.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+">"},f.prototype.compare=function(t,e,r,i,n){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),e<0||r>t.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&e>=r)return 0;if(i>=n)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,i>>>=0,n>>>=0,this===t)return 0;for(var o=n-i,a=r-e,s=Math.min(o,a),u=this.slice(i,n),h=t.slice(e,r),c=0;c<s;++c)if(u[c]!==h[c]){o=u[c],a=h[c];break}return o<a?-1:a<o?1:0},f.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},f.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},f.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},f.prototype.write=function(t,e,r,i){if(void 0===e)i="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)i=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var n=this.length-e;if((void 0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return y(this,t,e,r);case"ascii":return w(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return M(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function I(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(127&t[n]);return i}function x(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function O(t,e,r){var i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);for(var n="",o=e;o<r;++o)n+=F(t[o]);return n}function R(t,e,r){for(var i=t.slice(e,r),n="",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,r,i,n,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<o)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}function B(t,e,r,i){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-r,2);n<o;++n)t[r+n]=(e&255<<8*(i?n:1-n))>>>8*(i?n:1-n)}function N(t,e,r,i){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-r,4);n<o;++n)t[r+n]=e>>>8*(i?n:3-n)&255}function C(t,e,r,i,n,o){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,i,o){return o||C(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function L(t,e,r,i,o){return o||C(t,0,r,8),n.write(t,e,r,i,52,8),r+8}f.prototype.slice=function(t,e){var r,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),f.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=f.prototype;else{var n=e-t;r=new f(n,void 0);for(var o=0;o<n;++o)r[o]=this[o+t]}return r},f.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return i},f.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var i=this[t+--e],n=1;e>0&&(n*=256);)i+=this[t+--e]*n;return i},f.prototype.readUInt8=function(t,e){return e||T(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,e){return e||T(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,e){return e||T(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,e){return e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,e){return e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},f.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var i=e,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},f.prototype.readInt8=function(t,e){return e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,e){e||T(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(t,e){e||T(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(t,e){return e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,e){return e||T(t,4,this.length),n.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return e||T(t,4,this.length),n.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return e||T(t,8,this.length),n.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return e||T(t,8,this.length),n.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,e,r,i){(t=+t,e|=0,r|=0,i)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[e]=255&t;++o<r&&(n*=256);)this[e+o]=t/n&255;return e+r},f.prototype.writeUIntBE=function(t,e,r,i){(t=+t,e|=0,r|=0,i)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[e+n]=255&t;--n>=0&&(o*=256);)this[e+n]=t/o&255;return e+r},f.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},f.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},f.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},f.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},f.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},f.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);P(this,t,e,r,n-1,-n)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},f.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);P(this,t,e,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},f.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},f.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},f.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},f.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return L(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return L(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,i){if(r||(r=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-r&&(i=t.length-e+r);var n,o=i-r;if(this===t&&r<e&&e<i)for(n=o-1;n>=0;--n)t[n+e]=this[n+r];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)t[n+e]=this[n+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},f.prototype.fill=function(t,e,r,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!f.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=f.isBuffer(t)?t:j(new f(t,i).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function j(t,e){var r;e=e||1/0;for(var i=t.length,n=null,o=[],a=0;a<i;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(e-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function z(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(D,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function q(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}}).call(e,r(9))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){var i=r(0),n=i.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(o(i,e),e.Buffer=a),o(n,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e,r){(function(t,i){var n; /** * @license * Lodash <https://lodash.com/> * Copyright JS Foundation and other contributors <https://js.foundation/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",u="__lodash_hash_undefined__",h=500,c="__lodash_placeholder__",d=1,l=2,p=4,b=1,m=2,v=1,g=2,y=4,w=8,_=16,M=32,k=64,S=128,A=256,E=512,I=30,x="...",O=800,R=16,T=1,P=2,B=1/0,N=9007199254740991,C=1.7976931348623157e308,U=NaN,L=4294967295,D=L-1,F=L>>>1,j=[["ary",S],["bind",v],["bindKey",g],["curry",w],["curryRight",_],["flip",E],["partial",M],["partialRight",k],["rearg",A]],z="[object Arguments]",q="[object Array]",H="[object AsyncFunction]",K="[object Boolean]",X="[object Date]",V="[object DOMException]",Z="[object Error]",Y="[object Function]",W="[object GeneratorFunction]",G="[object Map]",J="[object Number]",Q="[object Null]",$="[object Object]",tt="[object Proxy]",et="[object RegExp]",rt="[object Set]",it="[object String]",nt="[object Symbol]",ot="[object Undefined]",at="[object WeakMap]",st="[object WeakSet]",ft="[object ArrayBuffer]",ut="[object DataView]",ht="[object Float32Array]",ct="[object Float64Array]",dt="[object Int8Array]",lt="[object Int16Array]",pt="[object Int32Array]",bt="[object Uint8Array]",mt="[object Uint8ClampedArray]",vt="[object Uint16Array]",gt="[object Uint32Array]",yt=/\b__p \+= '';/g,wt=/\b(__p \+=) '' \+/g,_t=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mt=/&(?:amp|lt|gt|quot|#39);/g,kt=/[&<>"']/g,St=RegExp(Mt.source),At=RegExp(kt.source),Et=/<%-([\s\S]+?)%>/g,It=/<%([\s\S]+?)%>/g,xt=/<%=([\s\S]+?)%>/g,Ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rt=/^\w*$/,Tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pt=/[\\^$.*+?()[\]{}|]/g,Bt=RegExp(Pt.source),Nt=/^\s+|\s+$/g,Ct=/^\s+/,Ut=/\s+$/,Lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ft=/,? & /,jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,zt=/\\(\\)?/g,qt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ht=/\w*$/,Kt=/^[-+]0x[0-9a-f]+$/i,Xt=/^0b[01]+$/i,Vt=/^\[object .+?Constructor\]$/,Zt=/^0o[0-7]+$/i,Yt=/^(?:0|[1-9]\d*)$/,Wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gt=/($^)/,Jt=/['\n\r\u2028\u2029\\]/g,Qt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",$t="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",te="[\\ud800-\\udfff]",ee="["+$t+"]",re="["+Qt+"]",ie="\\d+",ne="[\\u2700-\\u27bf]",oe="[a-z\\xdf-\\xf6\\xf8-\\xff]",ae="[^\\ud800-\\udfff"+$t+ie+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",se="\\ud83c[\\udffb-\\udfff]",fe="[^\\ud800-\\udfff]",ue="(?:\\ud83c[\\udde6-\\uddff]){2}",he="[\\ud800-\\udbff][\\udc00-\\udfff]",ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",de="(?:"+oe+"|"+ae+")",le="(?:"+ce+"|"+ae+")",pe="(?:"+re+"|"+se+")"+"?",be="[\\ufe0e\\ufe0f]?"+pe+("(?:\\u200d(?:"+[fe,ue,he].join("|")+")[\\ufe0e\\ufe0f]?"+pe+")*"),me="(?:"+[ne,ue,he].join("|")+")"+be,ve="(?:"+[fe+re+"?",re,ue,he,te].join("|")+")",ge=RegExp("['’]","g"),ye=RegExp(re,"g"),we=RegExp(se+"(?="+se+")|"+ve+be,"g"),_e=RegExp([ce+"?"+oe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ee,ce,"$"].join("|")+")",le+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ee,ce+de,"$"].join("|")+")",ce+"?"+de+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ie,me].join("|"),"g"),Me=RegExp("[\\u200d\\ud800-\\udfff"+Qt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Se=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ae=-1,Ee={};Ee[ht]=Ee[ct]=Ee[dt]=Ee[lt]=Ee[pt]=Ee[bt]=Ee[mt]=Ee[vt]=Ee[gt]=!0,Ee[z]=Ee[q]=Ee[ft]=Ee[K]=Ee[ut]=Ee[X]=Ee[Z]=Ee[Y]=Ee[G]=Ee[J]=Ee[$]=Ee[et]=Ee[rt]=Ee[it]=Ee[at]=!1;var Ie={};Ie[z]=Ie[q]=Ie[ft]=Ie[ut]=Ie[K]=Ie[X]=Ie[ht]=Ie[ct]=Ie[dt]=Ie[lt]=Ie[pt]=Ie[G]=Ie[J]=Ie[$]=Ie[et]=Ie[rt]=Ie[it]=Ie[nt]=Ie[bt]=Ie[mt]=Ie[vt]=Ie[gt]=!0,Ie[Z]=Ie[Y]=Ie[at]=!1;var xe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Oe=parseFloat,Re=parseInt,Te="object"==typeof t&&t&&t.Object===Object&&t,Pe="object"==typeof self&&self&&self.Object===Object&&self,Be=Te||Pe||Function("return this")(),Ne="object"==typeof e&&e&&!e.nodeType&&e,Ce=Ne&&"object"==typeof i&&i&&!i.nodeType&&i,Ue=Ce&&Ce.exports===Ne,Le=Ue&&Te.process,De=function(){try{var t=Ce&&Ce.require&&Ce.require("util").types;return t||Le&&Le.binding&&Le.binding("util")}catch(t){}}(),Fe=De&&De.isArrayBuffer,je=De&&De.isDate,ze=De&&De.isMap,qe=De&&De.isRegExp,He=De&&De.isSet,Ke=De&&De.isTypedArray;function Xe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ve(t,e,r,i){for(var n=-1,o=null==t?0:t.length;++n<o;){var a=t[n];e(i,a,r(a),t)}return i}function Ze(t,e){for(var r=-1,i=null==t?0:t.length;++r<i&&!1!==e(t[r],r,t););return t}function Ye(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function We(t,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(!e(t[r],r,t))return!1;return!0}function Ge(t,e){for(var r=-1,i=null==t?0:t.length,n=0,o=[];++r<i;){var a=t[r];e(a,r,t)&&(o[n++]=a)}return o}function Je(t,e){return!!(null==t?0:t.length)&&sr(t,e,0)>-1}function Qe(t,e,r){for(var i=-1,n=null==t?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}function $e(t,e){for(var r=-1,i=null==t?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}function tr(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}function er(t,e,r,i){var n=-1,o=null==t?0:t.length;for(i&&o&&(r=t[++n]);++n<o;)r=e(r,t[n],n,t);return r}function rr(t,e,r,i){var n=null==t?0:t.length;for(i&&n&&(r=t[--n]);n--;)r=e(r,t[n],n,t);return r}function ir(t,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(t[r],r,t))return!0;return!1}var nr=cr("length");function or(t,e,r){var i;return r(t,function(t,r,n){if(e(t,r,n))return i=r,!1}),i}function ar(t,e,r,i){for(var n=t.length,o=r+(i?1:-1);i?o--:++o<n;)if(e(t[o],o,t))return o;return-1}function sr(t,e,r){return e==e?function(t,e,r){var i=r-1,n=t.length;for(;++i<n;)if(t[i]===e)return i;return-1}(t,e,r):ar(t,ur,r)}function fr(t,e,r,i){for(var n=r-1,o=t.length;++n<o;)if(i(t[n],e))return n;return-1}function ur(t){return t!=t}function hr(t,e){var r=null==t?0:t.length;return r?pr(t,e)/r:U}function cr(t){return function(e){return null==e?o:e[t]}}function dr(t){return function(e){return null==t?o:t[e]}}function lr(t,e,r,i,n){return n(t,function(t,n,o){r=i?(i=!1,t):e(r,t,n,o)}),r}function pr(t,e){for(var r,i=-1,n=t.length;++i<n;){var a=e(t[i]);a!==o&&(r=r===o?a:r+a)}return r}function br(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}function mr(t){return function(e){return t(e)}}function vr(t,e){return $e(e,function(e){return t[e]})}function gr(t,e){return t.has(e)}function yr(t,e){for(var r=-1,i=t.length;++r<i&&sr(e,t[r],0)>-1;);return r}function wr(t,e){for(var r=t.length;r--&&sr(e,t[r],0)>-1;);return r}var _r=dr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Mr=dr({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function kr(t){return"\\"+xe[t]}function Sr(t){return Me.test(t)}function Ar(t){var e=-1,r=Array(t.size);return t.forEach(function(t,i){r[++e]=[i,t]}),r}function Er(t,e){return function(r){return t(e(r))}}function Ir(t,e){for(var r=-1,i=t.length,n=0,o=[];++r<i;){var a=t[r];a!==e&&a!==c||(t[r]=c,o[n++]=r)}return o}function xr(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function Or(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=[t,t]}),r}function Rr(t){return Sr(t)?function(t){var e=we.lastIndex=0;for(;we.test(t);)++e;return e}(t):nr(t)}function Tr(t){return Sr(t)?function(t){return t.match(we)||[]}(t):function(t){return t.split("")}(t)}var Pr=dr({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Br=function t(e){var r=(e=null==e?Be:Br.defaults(Be.Object(),e,Br.pick(Be,Se))).Array,i=e.Date,n=e.Error,Qt=e.Function,$t=e.Math,te=e.Object,ee=e.RegExp,re=e.String,ie=e.TypeError,ne=r.prototype,oe=Qt.prototype,ae=te.prototype,se=e["__core-js_shared__"],fe=oe.toString,ue=ae.hasOwnProperty,he=0,ce=function(){var t=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),de=ae.toString,le=fe.call(te),pe=Be._,be=ee("^"+fe.call(ue).replace(Pt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=Ue?e.Buffer:o,ve=e.Symbol,we=e.Uint8Array,Me=me?me.allocUnsafe:o,xe=Er(te.getPrototypeOf,te),Te=te.create,Pe=ae.propertyIsEnumerable,Ne=ne.splice,Ce=ve?ve.isConcatSpreadable:o,Le=ve?ve.iterator:o,De=ve?ve.toStringTag:o,nr=function(){try{var t=Do(te,"defineProperty");return t({},"",{}),t}catch(t){}}(),dr=e.clearTimeout!==Be.clearTimeout&&e.clearTimeout,Nr=i&&i.now!==Be.Date.now&&i.now,Cr=e.setTimeout!==Be.setTimeout&&e.setTimeout,Ur=$t.ceil,Lr=$t.floor,Dr=te.getOwnPropertySymbols,Fr=me?me.isBuffer:o,jr=e.isFinite,zr=ne.join,qr=Er(te.keys,te),Hr=$t.max,Kr=$t.min,Xr=i.now,Vr=e.parseInt,Zr=$t.random,Yr=ne.reverse,Wr=Do(e,"DataView"),Gr=Do(e,"Map"),Jr=Do(e,"Promise"),Qr=Do(e,"Set"),$r=Do(e,"WeakMap"),ti=Do(te,"create"),ei=$r&&new $r,ri={},ii=ha(Wr),ni=ha(Gr),oi=ha(Jr),ai=ha(Qr),si=ha($r),fi=ve?ve.prototype:o,ui=fi?fi.valueOf:o,hi=fi?fi.toString:o;function ci(t){if(Is(t)&&!ms(t)&&!(t instanceof bi)){if(t instanceof pi)return t;if(ue.call(t,"__wrapped__"))return ca(t)}return new pi(t)}var di=function(){function t(){}return function(e){if(!Es(e))return{};if(Te)return Te(e);t.prototype=e;var r=new t;return t.prototype=o,r}}();function li(){}function pi(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function bi(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function mi(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function vi(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function gi(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function yi(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new gi;++e<r;)this.add(t[e])}function wi(t){var e=this.__data__=new vi(t);this.size=e.size}function _i(t,e){var r=ms(t),i=!r&&bs(t),n=!r&&!i&&ws(t),o=!r&&!i&&!n&&Cs(t),a=r||i||n||o,s=a?br(t.length,re):[],f=s.length;for(var u in t)!e&&!ue.call(t,u)||a&&("length"==u||n&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Xo(u,f))||s.push(u);return s}function Mi(t){var e=t.length;return e?t[wn(0,e-1)]:o}function ki(t,e){return sa(eo(t),Pi(e,0,t.length))}function Si(t){return sa(eo(t))}function Ai(t,e,r){(r===o||ds(t[e],r))&&(r!==o||e in t)||Ri(t,e,r)}function Ei(t,e,r){var i=t[e];ue.call(t,e)&&ds(i,r)&&(r!==o||e in t)||Ri(t,e,r)}function Ii(t,e){for(var r=t.length;r--;)if(ds(t[r][0],e))return r;return-1}function xi(t,e,r,i){return Li(t,function(t,n,o){e(i,t,r(t),o)}),i}function Oi(t,e){return t&&ro(e,nf(e),t)}function Ri(t,e,r){"__proto__"==e&&nr?nr(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Ti(t,e){for(var i=-1,n=e.length,a=r(n),s=null==t;++i<n;)a[i]=s?o:Qs(t,e[i]);return a}function Pi(t,e,r){return t==t&&(r!==o&&(t=t<=r?t:r),e!==o&&(t=t>=e?t:e)),t}function Bi(t,e,r,i,n,a){var s,f=e&d,u=e&l,h=e&p;if(r&&(s=n?r(t,i,n,a):r(t)),s!==o)return s;if(!Es(t))return t;var c=ms(t);if(c){if(s=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&ue.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!f)return eo(t,s)}else{var b=zo(t),m=b==Y||b==W;if(ws(t))return Wn(t,f);if(b==$||b==z||m&&!n){if(s=u||m?{}:Ho(t),!f)return u?function(t,e){return ro(t,jo(t),e)}(t,function(t,e){return t&&ro(e,of(e),t)}(s,t)):function(t,e){return ro(t,Fo(t),e)}(t,Oi(s,t))}else{if(!Ie[b])return n?t:{};s=function(t,e,r){var i=t.constructor;switch(e){case ft:return Gn(t);case K:case X:return new i(+t);case ut:return function(t,e){var r=e?Gn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case ht:case ct:case dt:case lt:case pt:case bt:case mt:case vt:case gt:return Jn(t,r);case G:return new i;case J:case it:return new i(t);case et:return function(t){var e=new t.constructor(t.source,Ht.exec(t));return e.lastIndex=t.lastIndex,e}(t);case rt:return new i;case nt:return function(t){return ui?te(ui.call(t)):{}}(t)}}(t,b,f)}}a||(a=new wi);var v=a.get(t);if(v)return v;if(a.set(t,s),Ps(t))return t.forEach(function(i){s.add(Bi(i,e,r,i,t,a))}),s;if(xs(t))return t.forEach(function(i,n){s.set(n,Bi(i,e,r,n,t,a))}),s;var g=c?o:(h?u?To:Ro:u?of:nf)(t);return Ze(g||t,function(i,n){g&&(i=t[n=i]),Ei(s,n,Bi(i,e,r,n,t,a))}),s}function Ni(t,e,r){var i=r.length;if(null==t)return!i;for(t=te(t);i--;){var n=r[i],a=e[n],s=t[n];if(s===o&&!(n in t)||!a(s))return!1}return!0}function Ci(t,e,r){if("function"!=typeof t)throw new ie(f);return ia(function(){t.apply(o,r)},e)}function Ui(t,e,r,i){var n=-1,o=Je,s=!0,f=t.length,u=[],h=e.length;if(!f)return u;r&&(e=$e(e,mr(r))),i?(o=Qe,s=!1):e.length>=a&&(o=gr,s=!1,e=new yi(e));t:for(;++n<f;){var c=t[n],d=null==r?c:r(c);if(c=i||0!==c?c:0,s&&d==d){for(var l=h;l--;)if(e[l]===d)continue t;u.push(c)}else o(e,d,i)||u.push(c)}return u}ci.templateSettings={escape:Et,evaluate:It,interpolate:xt,variable:"",imports:{_:ci}},ci.prototype=li.prototype,ci.prototype.constructor=ci,pi.prototype=di(li.prototype),pi.prototype.constructor=pi,bi.prototype=di(li.prototype),bi.prototype.constructor=bi,mi.prototype.clear=function(){this.__data__=ti?ti(null):{},this.size=0},mi.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},mi.prototype.get=function(t){var e=this.__data__;if(ti){var r=e[t];return r===u?o:r}return ue.call(e,t)?e[t]:o},mi.prototype.has=function(t){var e=this.__data__;return ti?e[t]!==o:ue.call(e,t)},mi.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ti&&e===o?u:e,this},vi.prototype.clear=function(){this.__data__=[],this.size=0},vi.prototype.delete=function(t){var e=this.__data__,r=Ii(e,t);return!(r<0||(r==e.length-1?e.pop():Ne.call(e,r,1),--this.size,0))},vi.prototype.get=function(t){var e=this.__data__,r=Ii(e,t);return r<0?o:e[r][1]},vi.prototype.has=function(t){return Ii(this.__data__,t)>-1},vi.prototype.set=function(t,e){var r=this.__data__,i=Ii(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this},gi.prototype.clear=function(){this.size=0,this.__data__={hash:new mi,map:new(Gr||vi),string:new mi}},gi.prototype.delete=function(t){var e=Uo(this,t).delete(t);return this.size-=e?1:0,e},gi.prototype.get=function(t){return Uo(this,t).get(t)},gi.prototype.has=function(t){return Uo(this,t).has(t)},gi.prototype.set=function(t,e){var r=Uo(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this},yi.prototype.add=yi.prototype.push=function(t){return this.__data__.set(t,u),this},yi.prototype.has=function(t){return this.__data__.has(t)},wi.prototype.clear=function(){this.__data__=new vi,this.size=0},wi.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},wi.prototype.get=function(t){return this.__data__.get(t)},wi.prototype.has=function(t){return this.__data__.has(t)},wi.prototype.set=function(t,e){var r=this.__data__;if(r instanceof vi){var i=r.__data__;if(!Gr||i.length<a-1)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new gi(i)}return r.set(t,e),this.size=r.size,this};var Li=oo(Xi),Di=oo(Vi,!0);function Fi(t,e){var r=!0;return Li(t,function(t,i,n){return r=!!e(t,i,n)}),r}function ji(t,e,r){for(var i=-1,n=t.length;++i<n;){var a=t[i],s=e(a);if(null!=s&&(f===o?s==s&&!Ns(s):r(s,f)))var f=s,u=a}return u}function zi(t,e){var r=[];return Li(t,function(t,i,n){e(t,i,n)&&r.push(t)}),r}function qi(t,e,r,i,n){var o=-1,a=t.length;for(r||(r=Ko),n||(n=[]);++o<a;){var s=t[o];e>0&&r(s)?e>1?qi(s,e-1,r,i,n):tr(n,s):i||(n[n.length]=s)}return n}var Hi=ao(),Ki=ao(!0);function Xi(t,e){return t&&Hi(t,e,nf)}function Vi(t,e){return t&&Ki(t,e,nf)}function Zi(t,e){return Ge(e,function(e){return ks(t[e])})}function Yi(t,e){for(var r=0,i=(e=Xn(e,t)).length;null!=t&&r<i;)t=t[ua(e[r++])];return r&&r==i?t:o}function Wi(t,e,r){var i=e(t);return ms(t)?i:tr(i,r(t))}function Gi(t){return null==t?t===o?ot:Q:De&&De in te(t)?function(t){var e=ue.call(t,De),r=t[De];try{t[De]=o;var i=!0}catch(t){}var n=de.call(t);return i&&(e?t[De]=r:delete t[De]),n}(t):function(t){return de.call(t)}(t)}function Ji(t,e){return t>e}function Qi(t,e){return null!=t&&ue.call(t,e)}function $i(t,e){return null!=t&&e in te(t)}function tn(t,e,i){for(var n=i?Qe:Je,a=t[0].length,s=t.length,f=s,u=r(s),h=1/0,c=[];f--;){var d=t[f];f&&e&&(d=$e(d,mr(e))),h=Kr(d.length,h),u[f]=!i&&(e||a>=120&&d.length>=120)?new yi(f&&d):o}d=t[0];var l=-1,p=u[0];t:for(;++l<a&&c.length<h;){var b=d[l],m=e?e(b):b;if(b=i||0!==b?b:0,!(p?gr(p,m):n(c,m,i))){for(f=s;--f;){var v=u[f];if(!(v?gr(v,m):n(t[f],m,i)))continue t}p&&p.push(m),c.push(b)}}return c}function en(t,e,r){var i=null==(t=ta(t,e=Xn(e,t)))?t:t[ua(Ma(e))];return null==i?o:Xe(i,t,r)}function rn(t){return Is(t)&&Gi(t)==z}function nn(t,e,r,i,n){return t===e||(null==t||null==e||!Is(t)&&!Is(e)?t!=t&&e!=e:function(t,e,r,i,n,a){var s=ms(t),f=ms(e),u=s?q:zo(t),h=f?q:zo(e),c=(u=u==z?$:u)==$,d=(h=h==z?$:h)==$,l=u==h;if(l&&ws(t)){if(!ws(e))return!1;s=!0,c=!1}if(l&&!c)return a||(a=new wi),s||Cs(t)?xo(t,e,r,i,n,a):function(t,e,r,i,n,o,a){switch(r){case ut:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ft:return!(t.byteLength!=e.byteLength||!o(new we(t),new we(e)));case K:case X:case J:return ds(+t,+e);case Z:return t.name==e.name&&t.message==e.message;case et:case it:return t==e+"";case G:var s=Ar;case rt:var f=i&b;if(s||(s=xr),t.size!=e.size&&!f)return!1;var u=a.get(t);if(u)return u==e;i|=m,a.set(t,e);var h=xo(s(t),s(e),i,n,o,a);return a.delete(t),h;case nt:if(ui)return ui.call(t)==ui.call(e)}return!1}(t,e,u,r,i,n,a);if(!(r&b)){var p=c&&ue.call(t,"__wrapped__"),v=d&&ue.call(e,"__wrapped__");if(p||v){var g=p?t.value():t,y=v?e.value():e;return a||(a=new wi),n(g,y,r,i,a)}}return!!l&&(a||(a=new wi),function(t,e,r,i,n,a){var s=r&b,f=Ro(t),u=f.length,h=Ro(e).length;if(u!=h&&!s)return!1;for(var c=u;c--;){var d=f[c];if(!(s?d in e:ue.call(e,d)))return!1}var l=a.get(t);if(l&&a.get(e))return l==e;var p=!0;a.set(t,e),a.set(e,t);for(var m=s;++c<u;){d=f[c];var v=t[d],g=e[d];if(i)var y=s?i(g,v,d,e,t,a):i(v,g,d,t,e,a);if(!(y===o?v===g||n(v,g,r,i,a):y)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var w=t.constructor,_=e.constructor;w!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(p=!1)}return a.delete(t),a.delete(e),p}(t,e,r,i,n,a))}(t,e,r,i,nn,n))}function on(t,e,r,i){var n=r.length,a=n,s=!i;if(null==t)return!a;for(t=te(t);n--;){var f=r[n];if(s&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++n<a;){var u=(f=r[n])[0],h=t[u],c=f[1];if(s&&f[2]){if(h===o&&!(u in t))return!1}else{var d=new wi;if(i)var l=i(h,c,u,t,e,d);if(!(l===o?nn(c,h,b|m,i,d):l))return!1}}return!0}function an(t){return!(!Es(t)||function(t){return!!ce&&ce in t}(t))&&(ks(t)?be:Vt).test(ha(t))}function sn(t){return"function"==typeof t?t:null==t?Rf:"object"==typeof t?ms(t)?ln(t[0],t[1]):dn(t):Ff(t)}function fn(t){if(!Go(t))return qr(t);var e=[];for(var r in te(t))ue.call(t,r)&&"constructor"!=r&&e.push(r);return e}function un(t){if(!Es(t))return function(t){var e=[];if(null!=t)for(var r in te(t))e.push(r);return e}(t);var e=Go(t),r=[];for(var i in t)("constructor"!=i||!e&&ue.call(t,i))&&r.push(i);return r}function hn(t,e){return t<e}function cn(t,e){var i=-1,n=gs(t)?r(t.length):[];return Li(t,function(t,r,o){n[++i]=e(t,r,o)}),n}function dn(t){var e=Lo(t);return 1==e.length&&e[0][2]?Qo(e[0][0],e[0][1]):function(r){return r===t||on(r,t,e)}}function ln(t,e){return Zo(t)&&Jo(e)?Qo(ua(t),e):function(r){var i=Qs(r,t);return i===o&&i===e?$s(r,t):nn(e,i,b|m)}}function pn(t,e,r,i,n){t!==e&&Hi(e,function(a,s){if(Es(a))n||(n=new wi),function(t,e,r,i,n,a,s){var f=ea(t,r),u=ea(e,r),h=s.get(u);if(h)Ai(t,r,h);else{var c=a?a(f,u,r+"",t,e,s):o,d=c===o;if(d){var l=ms(u),p=!l&&ws(u),b=!l&&!p&&Cs(u);c=u,l||p||b?ms(f)?c=f:ys(f)?c=eo(f):p?(d=!1,c=Wn(u,!0)):b?(d=!1,c=Jn(u,!0)):c=[]:Rs(u)||bs(u)?(c=f,bs(f)?c=Hs(f):Es(f)&&!ks(f)||(c=Ho(u))):d=!1}d&&(s.set(u,c),n(c,u,i,a,s),s.delete(u)),Ai(t,r,c)}}(t,e,s,r,pn,i,n);else{var f=i?i(ea(t,s),a,s+"",t,e,n):o;f===o&&(f=a),Ai(t,s,f)}},of)}function bn(t,e){var r=t.length;if(r)return Xo(e+=e<0?r:0,r)?t[e]:o}function mn(t,e,r){var i=-1;return e=$e(e.length?e:[Rf],mr(Co())),function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}(cn(t,function(t,r,n){return{criteria:$e(e,function(e){return e(t)}),index:++i,value:t}}),function(t,e){return function(t,e,r){for(var i=-1,n=t.criteria,o=e.criteria,a=n.length,s=r.length;++i<a;){var f=Qn(n[i],o[i]);if(f){if(i>=s)return f;var u=r[i];return f*("desc"==u?-1:1)}}return t.index-e.index}(t,e,r)})}function vn(t,e,r){for(var i=-1,n=e.length,o={};++i<n;){var a=e[i],s=Yi(t,a);r(s,a)&&An(o,Xn(a,t),s)}return o}function gn(t,e,r,i){var n=i?fr:sr,o=-1,a=e.length,s=t;for(t===e&&(e=eo(e)),r&&(s=$e(t,mr(r)));++o<a;)for(var f=0,u=e[o],h=r?r(u):u;(f=n(s,h,f,i))>-1;)s!==t&&Ne.call(s,f,1),Ne.call(t,f,1);return t}function yn(t,e){for(var r=t?e.length:0,i=r-1;r--;){var n=e[r];if(r==i||n!==o){var o=n;Xo(n)?Ne.call(t,n,1):Ln(t,n)}}return t}function wn(t,e){return t+Lr(Zr()*(e-t+1))}function _n(t,e){var r="";if(!t||e<1||e>N)return r;do{e%2&&(r+=t),(e=Lr(e/2))&&(t+=t)}while(e);return r}function Mn(t,e){return na($o(t,e,Rf),t+"")}function kn(t){return Mi(lf(t))}function Sn(t,e){var r=lf(t);return sa(r,Pi(e,0,r.length))}function An(t,e,r,i){if(!Es(t))return t;for(var n=-1,a=(e=Xn(e,t)).length,s=a-1,f=t;null!=f&&++n<a;){var u=ua(e[n]),h=r;if(n!=s){var c=f[u];(h=i?i(c,u,f):o)===o&&(h=Es(c)?c:Xo(e[n+1])?[]:{})}Ei(f,u,h),f=f[u]}return t}var En=ei?function(t,e){return ei.set(t,e),t}:Rf,In=nr?function(t,e){return nr(t,"toString",{configurable:!0,enumerable:!1,value:If(e),writable:!0})}:Rf;function xn(t){return sa(lf(t))}function On(t,e,i){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(i=i>o?o:i)<0&&(i+=o),o=e>i?0:i-e>>>0,e>>>=0;for(var a=r(o);++n<o;)a[n]=t[n+e];return a}function Rn(t,e){var r;return Li(t,function(t,i,n){return!(r=e(t,i,n))}),!!r}function Tn(t,e,r){var i=0,n=null==t?i:t.length;if("number"==typeof e&&e==e&&n<=F){for(;i<n;){var o=i+n>>>1,a=t[o];null!==a&&!Ns(a)&&(r?a<=e:a<e)?i=o+1:n=o}return n}return Pn(t,e,Rf,r)}function Pn(t,e,r,i){e=r(e);for(var n=0,a=null==t?0:t.length,s=e!=e,f=null===e,u=Ns(e),h=e===o;n<a;){var c=Lr((n+a)/2),d=r(t[c]),l=d!==o,p=null===d,b=d==d,m=Ns(d);if(s)var v=i||b;else v=h?b&&(i||l):f?b&&l&&(i||!p):u?b&&l&&!p&&(i||!m):!p&&!m&&(i?d<=e:d<e);v?n=c+1:a=c}return Kr(a,D)}function Bn(t,e){for(var r=-1,i=t.length,n=0,o=[];++r<i;){var a=t[r],s=e?e(a):a;if(!r||!ds(s,f)){var f=s;o[n++]=0===a?0:a}}return o}function Nn(t){return"number"==typeof t?t:Ns(t)?U:+t}function Cn(t){if("string"==typeof t)return t;if(ms(t))return $e(t,Cn)+"";if(Ns(t))return hi?hi.call(t):"";var e=t+"";return"0"==e&&1/t==-B?"-0":e}function Un(t,e,r){var i=-1,n=Je,o=t.length,s=!0,f=[],u=f;if(r)s=!1,n=Qe;else if(o>=a){var h=e?null:Mo(t);if(h)return xr(h);s=!1,n=gr,u=new yi}else u=e?[]:f;t:for(;++i<o;){var c=t[i],d=e?e(c):c;if(c=r||0!==c?c:0,s&&d==d){for(var l=u.length;l--;)if(u[l]===d)continue t;e&&u.push(d),f.push(c)}else n(u,d,r)||(u!==f&&u.push(d),f.push(c))}return f}function Ln(t,e){return null==(t=ta(t,e=Xn(e,t)))||delete t[ua(Ma(e))]}function Dn(t,e,r,i){return An(t,e,r(Yi(t,e)),i)}function Fn(t,e,r,i){for(var n=t.length,o=i?n:-1;(i?o--:++o<n)&&e(t[o],o,t););return r?On(t,i?0:o,i?o+1:n):On(t,i?o+1:0,i?n:o)}function jn(t,e){var r=t;return r instanceof bi&&(r=r.value()),er(e,function(t,e){return e.func.apply(e.thisArg,tr([t],e.args))},r)}function zn(t,e,i){var n=t.length;if(n<2)return n?Un(t[0]):[];for(var o=-1,a=r(n);++o<n;)for(var s=t[o],f=-1;++f<n;)f!=o&&(a[o]=Ui(a[o]||s,t[f],e,i));return Un(qi(a,1),e,i)}function qn(t,e,r){for(var i=-1,n=t.length,a=e.length,s={};++i<n;){var f=i<a?e[i]:o;r(s,t[i],f)}return s}function Hn(t){return ys(t)?t:[]}function Kn(t){return"function"==typeof t?t:Rf}function Xn(t,e){return ms(t)?t:Zo(t,e)?[t]:fa(Ks(t))}var Vn=Mn;function Zn(t,e,r){var i=t.length;return r=r===o?i:r,!e&&r>=i?t:On(t,e,r)}var Yn=dr||function(t){return Be.clearTimeout(t)};function Wn(t,e){if(e)return t.slice();var r=t.length,i=Me?Me(r):new t.constructor(r);return t.copy(i),i}function Gn(t){var e=new t.constructor(t.byteLength);return new we(e).set(new we(t)),e}function Jn(t,e){var r=e?Gn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Qn(t,e){if(t!==e){var r=t!==o,i=null===t,n=t==t,a=Ns(t),s=e!==o,f=null===e,u=e==e,h=Ns(e);if(!f&&!h&&!a&&t>e||a&&s&&u&&!f&&!h||i&&s&&u||!r&&u||!n)return 1;if(!i&&!a&&!h&&t<e||h&&r&&n&&!i&&!a||f&&r&&n||!s&&n||!u)return-1}return 0}function $n(t,e,i,n){for(var o=-1,a=t.length,s=i.length,f=-1,u=e.length,h=Hr(a-s,0),c=r(u+h),d=!n;++f<u;)c[f]=e[f];for(;++o<s;)(d||o<a)&&(c[i[o]]=t[o]);for(;h--;)c[f++]=t[o++];return c}function to(t,e,i,n){for(var o=-1,a=t.length,s=-1,f=i.length,u=-1,h=e.length,c=Hr(a-f,0),d=r(c+h),l=!n;++o<c;)d[o]=t[o];for(var p=o;++u<h;)d[p+u]=e[u];for(;++s<f;)(l||o<a)&&(d[p+i[s]]=t[o++]);return d}function eo(t,e){var i=-1,n=t.length;for(e||(e=r(n));++i<n;)e[i]=t[i];return e}function ro(t,e,r,i){var n=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var f=e[a],u=i?i(r[f],t[f],f,r,t):o;u===o&&(u=t[f]),n?Ri(r,f,u):Ei(r,f,u)}return r}function io(t,e){return function(r,i){var n=ms(r)?Ve:xi,o=e?e():{};return n(r,t,Co(i,2),o)}}function no(t){return Mn(function(e,r){var i=-1,n=r.length,a=n>1?r[n-1]:o,s=n>2?r[2]:o;for(a=t.length>3&&"function"==typeof a?(n--,a):o,s&&Vo(r[0],r[1],s)&&(a=n<3?o:a,n=1),e=te(e);++i<n;){var f=r[i];f&&t(e,f,i,a)}return e})}function oo(t,e){return function(r,i){if(null==r)return r;if(!gs(r))return t(r,i);for(var n=r.length,o=e?n:-1,a=te(r);(e?o--:++o<n)&&!1!==i(a[o],o,a););return r}}function ao(t){return function(e,r,i){for(var n=-1,o=te(e),a=i(e),s=a.length;s--;){var f=a[t?s:++n];if(!1===r(o[f],f,o))break}return e}}funct