puddysql
Version:
🍮 Powerful SQL toolkit for Node.js, built with flexibility and structure in mind. Easily manage SQLite3/PostgreSQL, advanced queries, smart tag systems, and full JSON-friendly filters.
2 lines • 108 kB
JavaScript
/*! For license information please see PuddySqlTags.min.js.LICENSE.txt */
(()=>{var t={121:()=>{},251:(t,r)=>{r.read=function(t,r,n,e,i){var u,o,f=8*i-e-1,a=(1<<f)-1,c=a>>1,s=-7,l=n?i-1:0,h=n?-1:1,p=t[r+l];for(l+=h,u=p&(1<<-s)-1,p>>=-s,s+=f;s>0;u=256*u+t[r+l],l+=h,s-=8);for(o=u&(1<<-s)-1,u>>=-s,s+=e;s>0;o=256*o+t[r+l],l+=h,s-=8);if(0===u)u=1-c;else{if(u===a)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,e),u-=c}return(p?-1:1)*o*Math.pow(2,u-e)},r.write=function(t,r,n,e,i,u){var o,f,a,c=8*u-i-1,s=(1<<c)-1,l=s>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=e?0:u-1,g=e?1:-1,v=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,o=s):(o=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-o))<1&&(o--,a*=2),(r+=o+l>=1?h/a:h*Math.pow(2,1-l))*a>=2&&(o++,a/=2),o+l>=s?(f=0,o=s):o+l>=1?(f=(r*a-1)*Math.pow(2,i),o+=l):(f=r*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[n+p]=255&f,p+=g,f/=256,i-=8);for(o=o<<i|f,c+=i;c>0;t[n+p]=255&o,p+=g,o/=256,c-=8);t[n+p-g]|=128*v}},287:(t,r,n)=>{"use strict";var e=n(526),i=n(251),u="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;r.hp=a,r.IS=50;var o=2147483647;function f(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,a.prototype),r}function a(t,r,n){if("number"==typeof t){if("string"==typeof r)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,r,n)}function c(t,r,n){if("string"==typeof t)return function(t,r){if("string"==typeof r&&""!==r||(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var n=0|v(t,r),e=f(n),i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}(t,r);if(ArrayBuffer.isView(t))return function(t){if(W(t,Uint8Array)){var r=new Uint8Array(t);return p(r.buffer,r.byteOffset,r.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(W(t,ArrayBuffer)||t&&W(t.buffer,ArrayBuffer))return p(t,r,n);if("undefined"!=typeof SharedArrayBuffer&&(W(t,SharedArrayBuffer)||t&&W(t.buffer,SharedArrayBuffer)))return p(t,r,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var e=t.valueOf&&t.valueOf();if(null!=e&&e!==t)return a.from(e,r,n);var i=function(t){if(a.isBuffer(t)){var r=0|g(t.length),n=f(r);return 0===n.length||t.copy(n,0,0,r),n}return void 0!==t.length?"number"!=typeof t.length||D(t.length)?f(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),r,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return s(t),f(t<0?0:0|g(t))}function h(t){for(var r=t.length<0?0:0|g(t.length),n=f(r),e=0;e<r;e+=1)n[e]=255&t[e];return n}function p(t,r,n){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(n||0))throw new RangeError('"length" is outside of buffer bounds');var e;return e=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),Object.setPrototypeOf(e,a.prototype),e}function g(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function v(t,r){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||W(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,e=arguments.length>2&&!0===arguments[2];if(!e&&0===n)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return P(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return N(t).length;default:if(i)return e?-1:P(t).length;r=(""+r).toLowerCase(),i=!0}}function y(t,r,n){var e=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,r,n);case"utf8":case"utf-8":return j(this,r,n);case"ascii":return B(this,r,n);case"latin1":case"binary":return C(this,r,n);case"base64":return I(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function d(t,r,n){var e=t[r];t[r]=t[n],t[n]=e}function _(t,r,n,e,i){if(0===t.length)return-1;if("string"==typeof n?(e=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),D(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof r&&(r=a.from(r,e)),a.isBuffer(r))return 0===r.length?-1:w(t,r,n,e,i);if("number"==typeof r)return r&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,n):Uint8Array.prototype.lastIndexOf.call(t,r,n):w(t,[r],n,e,i);throw new TypeError("val must be string, number or Buffer")}function w(t,r,n,e,i){var u,o=1,f=t.length,a=r.length;if(void 0!==e&&("ucs2"===(e=String(e).toLowerCase())||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(t.length<2||r.length<2)return-1;o=2,f/=2,a/=2,n/=2}function c(t,r){return 1===o?t[r]:t.readUInt16BE(r*o)}if(i){var s=-1;for(u=n;u<f;u++)if(c(t,u)===c(r,-1===s?0:u-s)){if(-1===s&&(s=u),u-s+1===a)return s*o}else-1!==s&&(u-=u-s),s=-1}else for(n+a>f&&(n=f-a),u=n;u>=0;u--){for(var l=!0,h=0;h<a;h++)if(c(t,u+h)!==c(r,h)){l=!1;break}if(l)return u}return-1}function b(t,r,n,e){n=Number(n)||0;var i=t.length-n;e?(e=Number(e))>i&&(e=i):e=i;var u=r.length;e>u/2&&(e=u/2);for(var o=0;o<e;++o){var f=parseInt(r.substr(2*o,2),16);if(D(f))return o;t[n+o]=f}return o}function m(t,r,n,e){return $(P(r,t.length-n),t,n,e)}function A(t,r,n,e){return $(function(t){for(var r=[],n=0;n<t.length;++n)r.push(255&t.charCodeAt(n));return r}(r),t,n,e)}function E(t,r,n,e){return $(N(r),t,n,e)}function x(t,r,n,e){return $(function(t,r){for(var n,e,i,u=[],o=0;o<t.length&&!((r-=2)<0);++o)e=(n=t.charCodeAt(o))>>8,i=n%256,u.push(i),u.push(e);return u}(r,t.length-n),t,n,e)}function I(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function j(t,r,n){n=Math.min(t.length,n);for(var e=[],i=r;i<n;){var u,o,f,a,c=t[i],s=null,l=c>239?4:c>223?3:c>191?2:1;if(i+l<=n)switch(l){case 1:c<128&&(s=c);break;case 2:128==(192&(u=t[i+1]))&&(a=(31&c)<<6|63&u)>127&&(s=a);break;case 3:u=t[i+1],o=t[i+2],128==(192&u)&&128==(192&o)&&(a=(15&c)<<12|(63&u)<<6|63&o)>2047&&(a<55296||a>57343)&&(s=a);break;case 4:u=t[i+1],o=t[i+2],f=t[i+3],128==(192&u)&&128==(192&o)&&128==(192&f)&&(a=(15&c)<<18|(63&u)<<12|(63&o)<<6|63&f)>65535&&a<1114112&&(s=a)}null===s?(s=65533,l=1):s>65535&&(s-=65536,e.push(s>>>10&1023|55296),s=56320|1023&s),e.push(s),i+=l}return function(t){var r=t.length;if(r<=T)return String.fromCharCode.apply(String,t);for(var n="",e=0;e<r;)n+=String.fromCharCode.apply(String,t.slice(e,e+=T));return n}(e)}a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,r,n){return c(t,r,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,r,n){return function(t,r,n){return s(t),t<=0?f(t):void 0!==r?"string"==typeof n?f(t).fill(r,n):f(t).fill(r):f(t)}(t,r,n)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,r){if(W(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),W(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(t)||!a.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var n=t.length,e=r.length,i=0,u=Math.min(n,e);i<u;++i)if(t[i]!==r[i]){n=t[i],e=r[i];break}return n<e?-1:e<n?1:0},a.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}},a.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var n;if(void 0===r)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var e=a.allocUnsafe(r),i=0;for(n=0;n<t.length;++n){var u=t[n];if(W(u,Uint8Array))i+u.length>e.length?a.from(u).copy(e,i):Uint8Array.prototype.set.call(e,u,i);else{if(!a.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(e,i)}i+=u.length}return e},a.byteLength=v,a.prototype._isBuffer=!0,a.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 r=0;r<t;r+=2)d(this,r,r+1);return this},a.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 r=0;r<t;r+=4)d(this,r,r+3),d(this,r+1,r+2);return this},a.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 r=0;r<t;r+=8)d(this,r,r+7),d(this,r+1,r+6),d(this,r+2,r+5),d(this,r+3,r+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?j(this,0,t):y.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",n=r.IS;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},u&&(a.prototype[u]=a.prototype.inspect),a.prototype.compare=function(t,r,n,e,i){if(W(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===n&&(n=t?t.length:0),void 0===e&&(e=0),void 0===i&&(i=this.length),r<0||n>t.length||e<0||i>this.length)throw new RangeError("out of range index");if(e>=i&&r>=n)return 0;if(e>=i)return-1;if(r>=n)return 1;if(this===t)return 0;for(var u=(i>>>=0)-(e>>>=0),o=(n>>>=0)-(r>>>=0),f=Math.min(u,o),c=this.slice(e,i),s=t.slice(r,n),l=0;l<f;++l)if(c[l]!==s[l]){u=c[l],o=s[l];break}return u<o?-1:o<u?1:0},a.prototype.includes=function(t,r,n){return-1!==this.indexOf(t,r,n)},a.prototype.indexOf=function(t,r,n){return _(this,t,r,n,!0)},a.prototype.lastIndexOf=function(t,r,n){return _(this,t,r,n,!1)},a.prototype.write=function(t,r,n,e){if(void 0===r)e="utf8",n=this.length,r=0;else if(void 0===n&&"string"==typeof r)e=r,n=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r>>>=0,isFinite(n)?(n>>>=0,void 0===e&&(e="utf8")):(e=n,n=void 0)}var i=this.length-r;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var u=!1;;)switch(e){case"hex":return b(this,t,r,n);case"utf8":case"utf-8":return m(this,t,r,n);case"ascii":case"latin1":case"binary":return A(this,t,r,n);case"base64":return E(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r,n);default:if(u)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),u=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function B(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(127&t[i]);return e}function C(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(t[i]);return e}function O(t,r,n){var e=t.length;(!r||r<0)&&(r=0),(!n||n<0||n>e)&&(n=e);for(var i="",u=r;u<n;++u)i+=F[t[u]];return i}function S(t,r,n){for(var e=t.slice(r,n),i="",u=0;u<e.length-1;u+=2)i+=String.fromCharCode(e[u]+256*e[u+1]);return i}function U(t,r,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,r,n,e,i,u){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<u)throw new RangeError('"value" argument is out of bounds');if(n+e>t.length)throw new RangeError("Index out of range")}function L(t,r,n,e,i,u){if(n+e>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(t,r,n,e,u){return r=+r,n>>>=0,u||L(t,0,n,4),i.write(t,r,n,e,23,4),n+4}function z(t,r,n,e,u){return r=+r,n>>>=0,u||L(t,0,n,8),i.write(t,r,n,e,52,8),n+8}a.prototype.slice=function(t,r){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t);var e=this.subarray(t,r);return Object.setPrototypeOf(e,a.prototype),e},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,r,n){t>>>=0,r>>>=0,n||U(t,r,this.length);for(var e=this[t],i=1,u=0;++u<r&&(i*=256);)e+=this[t+u]*i;return e},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,r,n){t>>>=0,r>>>=0,n||U(t,r,this.length);for(var e=this[t+--r],i=1;r>0&&(i*=256);)e+=this[t+--r]*i;return e},a.prototype.readUint8=a.prototype.readUInt8=function(t,r){return t>>>=0,r||U(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,r){return t>>>=0,r||U(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,r){return t>>>=0,r||U(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,r){return t>>>=0,r||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,r){return t>>>=0,r||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,r,n){t>>>=0,r>>>=0,n||U(t,r,this.length);for(var e=this[t],i=1,u=0;++u<r&&(i*=256);)e+=this[t+u]*i;return e>=(i*=128)&&(e-=Math.pow(2,8*r)),e},a.prototype.readIntBE=function(t,r,n){t>>>=0,r>>>=0,n||U(t,r,this.length);for(var e=r,i=1,u=this[t+--e];e>0&&(i*=256);)u+=this[t+--e]*i;return u>=(i*=128)&&(u-=Math.pow(2,8*r)),u},a.prototype.readInt8=function(t,r){return t>>>=0,r||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,r){t>>>=0,r||U(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(t,r){t>>>=0,r||U(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(t,r){return t>>>=0,r||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,r){return t>>>=0,r||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,r){return t>>>=0,r||U(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,r){return t>>>=0,r||U(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,r){return t>>>=0,r||U(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,r){return t>>>=0,r||U(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,r,n,e){t=+t,r>>>=0,n>>>=0,e||R(this,t,r,n,Math.pow(2,8*n)-1,0);var i=1,u=0;for(this[r]=255&t;++u<n&&(i*=256);)this[r+u]=t/i&255;return r+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,r,n,e){t=+t,r>>>=0,n>>>=0,e||R(this,t,r,n,Math.pow(2,8*n)-1,0);var i=n-1,u=1;for(this[r+i]=255&t;--i>=0&&(u*=256);)this[r+i]=t/u&255;return r+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,r,n){return t=+t,r>>>=0,n||R(this,t,r,1,255,0),this[r]=255&t,r+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,r,n){return t=+t,r>>>=0,n||R(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,r,n){return t=+t,r>>>=0,n||R(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,r,n){return t=+t,r>>>=0,n||R(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,r,n){return t=+t,r>>>=0,n||R(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},a.prototype.writeIntLE=function(t,r,n,e){if(t=+t,r>>>=0,!e){var i=Math.pow(2,8*n-1);R(this,t,r,n,i-1,-i)}var u=0,o=1,f=0;for(this[r]=255&t;++u<n&&(o*=256);)t<0&&0===f&&0!==this[r+u-1]&&(f=1),this[r+u]=(t/o|0)-f&255;return r+n},a.prototype.writeIntBE=function(t,r,n,e){if(t=+t,r>>>=0,!e){var i=Math.pow(2,8*n-1);R(this,t,r,n,i-1,-i)}var u=n-1,o=1,f=0;for(this[r+u]=255&t;--u>=0&&(o*=256);)t<0&&0===f&&0!==this[r+u+1]&&(f=1),this[r+u]=(t/o|0)-f&255;return r+n},a.prototype.writeInt8=function(t,r,n){return t=+t,r>>>=0,n||R(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},a.prototype.writeInt16LE=function(t,r,n){return t=+t,r>>>=0,n||R(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},a.prototype.writeInt16BE=function(t,r,n){return t=+t,r>>>=0,n||R(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},a.prototype.writeInt32LE=function(t,r,n){return t=+t,r>>>=0,n||R(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},a.prototype.writeInt32BE=function(t,r,n){return t=+t,r>>>=0,n||R(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},a.prototype.writeFloatLE=function(t,r,n){return k(this,t,r,!0,n)},a.prototype.writeFloatBE=function(t,r,n){return k(this,t,r,!1,n)},a.prototype.writeDoubleLE=function(t,r,n){return z(this,t,r,!0,n)},a.prototype.writeDoubleBE=function(t,r,n){return z(this,t,r,!1,n)},a.prototype.copy=function(t,r,n,e){if(!a.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),e||0===e||(e=this.length),r>=t.length&&(r=t.length),r||(r=0),e>0&&e<n&&(e=n),e===n)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),t.length-r<e-n&&(e=t.length-r+n);var i=e-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(r,n,e):Uint8Array.prototype.set.call(t,this.subarray(n,e),r),i},a.prototype.fill=function(t,r,n,e){if("string"==typeof t){if("string"==typeof r?(e=r,r=0,n=this.length):"string"==typeof n&&(e=n,n=this.length),void 0!==e&&"string"!=typeof e)throw new TypeError("encoding must be a string");if("string"==typeof e&&!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);if(1===t.length){var i=t.charCodeAt(0);("utf8"===e&&i<128||"latin1"===e)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;var u;if(r>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(u=r;u<n;++u)this[u]=t;else{var o=a.isBuffer(t)?t:a.from(t,e),f=o.length;if(0===f)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(u=0;u<n-r;++u)this[u+r]=o[u%f]}return this};var M=/[^+/0-9A-Za-z-_]/g;function P(t,r){var n;r=r||1/0;for(var e=t.length,i=null,u=[],o=0;o<e;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(r-=3)>-1&&u.push(239,191,189);continue}if(o+1===e){(r-=3)>-1&&u.push(239,191,189);continue}i=n;continue}if(n<56320){(r-=3)>-1&&u.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(r-=3)>-1&&u.push(239,191,189);if(i=null,n<128){if((r-=1)<0)break;u.push(n)}else if(n<2048){if((r-=2)<0)break;u.push(n>>6|192,63&n|128)}else if(n<65536){if((r-=3)<0)break;u.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;u.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return u}function N(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function $(t,r,n,e){for(var i=0;i<e&&!(i+n>=r.length||i>=t.length);++i)r[i+n]=t[i];return i}function W(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}function D(t){return t!=t}var F=function(){for(var t="0123456789abcdef",r=new Array(256),n=0;n<16;++n)for(var e=16*n,i=0;i<16;++i)r[e+i]=t[n]+t[i];return r}()},494:()=>{},526:(t,r)=>{"use strict";r.byteLength=function(t){var r=f(t),n=r[0],e=r[1];return 3*(n+e)/4-e},r.toByteArray=function(t){var r,n,u=f(t),o=u[0],a=u[1],c=new i(function(t,r,n){return 3*(r+n)/4-n}(0,o,a)),s=0,l=a>0?o-4:o;for(n=0;n<l;n+=4)r=e[t.charCodeAt(n)]<<18|e[t.charCodeAt(n+1)]<<12|e[t.charCodeAt(n+2)]<<6|e[t.charCodeAt(n+3)],c[s++]=r>>16&255,c[s++]=r>>8&255,c[s++]=255&r;return 2===a&&(r=e[t.charCodeAt(n)]<<2|e[t.charCodeAt(n+1)]>>4,c[s++]=255&r),1===a&&(r=e[t.charCodeAt(n)]<<10|e[t.charCodeAt(n+1)]<<4|e[t.charCodeAt(n+2)]>>2,c[s++]=r>>8&255,c[s++]=255&r),c},r.fromByteArray=function(t){for(var r,e=t.length,i=e%3,u=[],o=16383,f=0,c=e-i;f<c;f+=o)u.push(a(t,f,f+o>c?c:f+o));return 1===i?(r=t[e-1],u.push(n[r>>2]+n[r<<4&63]+"==")):2===i&&(r=(t[e-2]<<8)+t[e-1],u.push(n[r>>10]+n[r>>4&63]+n[r<<2&63]+"=")),u.join("")};for(var n=[],e=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=u[o],e[u.charCodeAt(o)]=o;function f(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=r),[n,n===r?0:4-n%4]}function a(t,r,e){for(var i,u,o=[],f=r;f<e;f+=3)i=(t[f]<<16&16711680)+(t[f+1]<<8&65280)+(255&t[f+2]),o.push(n[(u=i)>>18&63]+n[u>>12&63]+n[u>>6&63]+n[63&u]);return o.join("")}e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},543:function(t,r,n){var e;t=n.nmd(t),function(){var i,u="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=32,c=128,s=1/0,l=9007199254740991,h=NaN,p=4294967295,g=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",256]],v="[object Arguments]",y="[object Array]",d="[object Boolean]",_="[object Date]",w="[object Error]",b="[object Function]",m="[object GeneratorFunction]",A="[object Map]",E="[object Number]",x="[object Object]",I="[object Promise]",j="[object RegExp]",T="[object Set]",B="[object String]",C="[object Symbol]",O="[object WeakMap]",S="[object ArrayBuffer]",U="[object DataView]",R="[object Float32Array]",L="[object Float64Array]",k="[object Int8Array]",z="[object Int16Array]",M="[object Int32Array]",P="[object Uint8Array]",N="[object Uint8ClampedArray]",$="[object Uint16Array]",W="[object Uint32Array]",D=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,Z=RegExp(K.source),J=RegExp(Q.source),V=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(rt.source),et=/^\s+/,it=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,ft=/,? & /,at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,st=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,dt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,mt="\\ud800-\\udfff",At="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",xt="a-z\\xdf-\\xf6\\xf8-\\xff",It="A-Z\\xc0-\\xd6\\xd8-\\xde",jt="\\ufe0e\\ufe0f",Tt="\\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",Bt="["+mt+"]",Ct="["+Tt+"]",Ot="["+At+"]",St="\\d+",Ut="["+Et+"]",Rt="["+xt+"]",Lt="[^"+mt+Tt+St+Et+xt+It+"]",kt="\\ud83c[\\udffb-\\udfff]",zt="[^"+mt+"]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Pt="[\\ud800-\\udbff][\\udc00-\\udfff]",Nt="["+It+"]",$t="\\u200d",Wt="(?:"+Rt+"|"+Lt+")",Dt="(?:"+Nt+"|"+Lt+")",Ft="(?:['’](?:d|ll|m|re|s|t|ve))?",qt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Kt="(?:"+Ot+"|"+kt+")?",Qt="["+jt+"]?",Zt=Qt+Kt+"(?:"+$t+"(?:"+[zt,Mt,Pt].join("|")+")"+Qt+Kt+")*",Jt="(?:"+[Ut,Mt,Pt].join("|")+")"+Zt,Vt="(?:"+[zt+Ot+"?",Ot,Mt,Pt,Bt].join("|")+")",Yt=RegExp("['’]","g"),Ht=RegExp(Ot,"g"),Gt=RegExp(kt+"(?="+kt+")|"+Vt+Zt,"g"),Xt=RegExp([Nt+"?"+Rt+"+"+Ft+"(?="+[Ct,Nt,"$"].join("|")+")",Dt+"+"+qt+"(?="+[Ct,Nt+Wt,"$"].join("|")+")",Nt+"?"+Wt+"+"+Ft,Nt+"+"+qt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",St,Jt].join("|"),"g"),tr=RegExp("["+$t+mt+At+jt+"]"),rr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nr=["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"],er=-1,ir={};ir[R]=ir[L]=ir[k]=ir[z]=ir[M]=ir[P]=ir[N]=ir[$]=ir[W]=!0,ir[v]=ir[y]=ir[S]=ir[d]=ir[U]=ir[_]=ir[w]=ir[b]=ir[A]=ir[E]=ir[x]=ir[j]=ir[T]=ir[B]=ir[O]=!1;var ur={};ur[v]=ur[y]=ur[S]=ur[U]=ur[d]=ur[_]=ur[R]=ur[L]=ur[k]=ur[z]=ur[M]=ur[A]=ur[E]=ur[x]=ur[j]=ur[T]=ur[B]=ur[C]=ur[P]=ur[N]=ur[$]=ur[W]=!0,ur[w]=ur[b]=ur[O]=!1;var or={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fr=parseFloat,ar=parseInt,cr="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,sr="object"==typeof self&&self&&self.Object===Object&&self,lr=cr||sr||Function("return this")(),hr=r&&!r.nodeType&&r,pr=hr&&t&&!t.nodeType&&t,gr=pr&&pr.exports===hr,vr=gr&&cr.process,yr=function(){try{return pr&&pr.require&&pr.require("util").types||vr&&vr.binding&&vr.binding("util")}catch(t){}}(),dr=yr&&yr.isArrayBuffer,_r=yr&&yr.isDate,wr=yr&&yr.isMap,br=yr&&yr.isRegExp,mr=yr&&yr.isSet,Ar=yr&&yr.isTypedArray;function Er(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}function xr(t,r,n,e){for(var i=-1,u=null==t?0:t.length;++i<u;){var o=t[i];r(e,o,n(o),t)}return e}function Ir(t,r){for(var n=-1,e=null==t?0:t.length;++n<e&&!1!==r(t[n],n,t););return t}function jr(t,r){for(var n=null==t?0:t.length;n--&&!1!==r(t[n],n,t););return t}function Tr(t,r){for(var n=-1,e=null==t?0:t.length;++n<e;)if(!r(t[n],n,t))return!1;return!0}function Br(t,r){for(var n=-1,e=null==t?0:t.length,i=0,u=[];++n<e;){var o=t[n];r(o,n,t)&&(u[i++]=o)}return u}function Cr(t,r){return!(null==t||!t.length)&&Nr(t,r,0)>-1}function Or(t,r,n){for(var e=-1,i=null==t?0:t.length;++e<i;)if(n(r,t[e]))return!0;return!1}function Sr(t,r){for(var n=-1,e=null==t?0:t.length,i=Array(e);++n<e;)i[n]=r(t[n],n,t);return i}function Ur(t,r){for(var n=-1,e=r.length,i=t.length;++n<e;)t[i+n]=r[n];return t}function Rr(t,r,n,e){var i=-1,u=null==t?0:t.length;for(e&&u&&(n=t[++i]);++i<u;)n=r(n,t[i],i,t);return n}function Lr(t,r,n,e){var i=null==t?0:t.length;for(e&&i&&(n=t[--i]);i--;)n=r(n,t[i],i,t);return n}function kr(t,r){for(var n=-1,e=null==t?0:t.length;++n<e;)if(r(t[n],n,t))return!0;return!1}var zr=Fr("length");function Mr(t,r,n){var e;return n(t,(function(t,n,i){if(r(t,n,i))return e=n,!1})),e}function Pr(t,r,n,e){for(var i=t.length,u=n+(e?1:-1);e?u--:++u<i;)if(r(t[u],u,t))return u;return-1}function Nr(t,r,n){return r==r?function(t,r,n){for(var e=n-1,i=t.length;++e<i;)if(t[e]===r)return e;return-1}(t,r,n):Pr(t,Wr,n)}function $r(t,r,n,e){for(var i=n-1,u=t.length;++i<u;)if(e(t[i],r))return i;return-1}function Wr(t){return t!=t}function Dr(t,r){var n=null==t?0:t.length;return n?Qr(t,r)/n:h}function Fr(t){return function(r){return null==r?i:r[t]}}function qr(t){return function(r){return null==t?i:t[r]}}function Kr(t,r,n,e,i){return i(t,(function(t,i,u){n=e?(e=!1,t):r(n,t,i,u)})),n}function Qr(t,r){for(var n,e=-1,u=t.length;++e<u;){var o=r(t[e]);o!==i&&(n=n===i?o:n+o)}return n}function Zr(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}function Jr(t){return t?t.slice(0,hn(t)+1).replace(et,""):t}function Vr(t){return function(r){return t(r)}}function Yr(t,r){return Sr(r,(function(r){return t[r]}))}function Hr(t,r){return t.has(r)}function Gr(t,r){for(var n=-1,e=t.length;++n<e&&Nr(r,t[n],0)>-1;);return n}function Xr(t,r){for(var n=t.length;n--&&Nr(r,t[n],0)>-1;);return n}var tn=qr({À:"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"}),rn=qr({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+or[t]}function en(t){return tr.test(t)}function un(t){var r=-1,n=Array(t.size);return t.forEach((function(t,e){n[++r]=[e,t]})),n}function on(t,r){return function(n){return t(r(n))}}function fn(t,r){for(var n=-1,e=t.length,i=0,u=[];++n<e;){var o=t[n];o!==r&&o!==f||(t[n]=f,u[i++]=n)}return u}function an(t){var r=-1,n=Array(t.size);return t.forEach((function(t){n[++r]=t})),n}function cn(t){var r=-1,n=Array(t.size);return t.forEach((function(t){n[++r]=[t,t]})),n}function sn(t){return en(t)?function(t){for(var r=Gt.lastIndex=0;Gt.test(t);)++r;return r}(t):zr(t)}function ln(t){return en(t)?function(t){return t.match(Gt)||[]}(t):function(t){return t.split("")}(t)}function hn(t){for(var r=t.length;r--&&it.test(t.charAt(r)););return r}var pn=qr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),gn=function t(r){var n,e=(r=null==r?lr:gn.defaults(lr.Object(),r,gn.pick(lr,nr))).Array,it=r.Date,mt=r.Error,At=r.Function,Et=r.Math,xt=r.Object,It=r.RegExp,jt=r.String,Tt=r.TypeError,Bt=e.prototype,Ct=At.prototype,Ot=xt.prototype,St=r["__core-js_shared__"],Ut=Ct.toString,Rt=Ot.hasOwnProperty,Lt=0,kt=(n=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",zt=Ot.toString,Mt=Ut.call(xt),Pt=lr._,Nt=It("^"+Ut.call(Rt).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$t=gr?r.Buffer:i,Wt=r.Symbol,Dt=r.Uint8Array,Ft=$t?$t.allocUnsafe:i,qt=on(xt.getPrototypeOf,xt),Kt=xt.create,Qt=Ot.propertyIsEnumerable,Zt=Bt.splice,Jt=Wt?Wt.isConcatSpreadable:i,Vt=Wt?Wt.iterator:i,Gt=Wt?Wt.toStringTag:i,tr=function(){try{var t=au(xt,"defineProperty");return t({},"",{}),t}catch(t){}}(),or=r.clearTimeout!==lr.clearTimeout&&r.clearTimeout,cr=it&&it.now!==lr.Date.now&&it.now,sr=r.setTimeout!==lr.setTimeout&&r.setTimeout,hr=Et.ceil,pr=Et.floor,vr=xt.getOwnPropertySymbols,yr=$t?$t.isBuffer:i,zr=r.isFinite,qr=Bt.join,vn=on(xt.keys,xt),yn=Et.max,dn=Et.min,_n=it.now,wn=r.parseInt,bn=Et.random,mn=Bt.reverse,An=au(r,"DataView"),En=au(r,"Map"),xn=au(r,"Promise"),In=au(r,"Set"),jn=au(r,"WeakMap"),Tn=au(xt,"create"),Bn=jn&&new jn,Cn={},On=zu(An),Sn=zu(En),Un=zu(xn),Rn=zu(In),Ln=zu(jn),kn=Wt?Wt.prototype:i,zn=kn?kn.valueOf:i,Mn=kn?kn.toString:i;function Pn(t){if(tf(t)&&!Fo(t)&&!(t instanceof Dn)){if(t instanceof Wn)return t;if(Rt.call(t,"__wrapped__"))return Mu(t)}return new Wn(t)}var Nn=function(){function t(){}return function(r){if(!Xo(r))return{};if(Kt)return Kt(r);t.prototype=r;var n=new t;return t.prototype=i,n}}();function $n(){}function Wn(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}function Dn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Fn(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function qn(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function Kn(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function Qn(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new Kn;++r<n;)this.add(t[r])}function Zn(t){var r=this.__data__=new qn(t);this.size=r.size}function Jn(t,r){var n=Fo(t),e=!n&&Do(t),i=!n&&!e&&Zo(t),u=!n&&!e&&!i&&cf(t),o=n||e||i||u,f=o?Zr(t.length,jt):[],a=f.length;for(var c in t)!r&&!Rt.call(t,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||u&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vu(c,a))||f.push(c);return f}function Vn(t){var r=t.length;return r?t[Ke(0,r-1)]:i}function Yn(t,r){return Su(ji(t),ue(r,0,t.length))}function Hn(t){return Su(ji(t))}function Gn(t,r,n){(n!==i&&!No(t[r],n)||n===i&&!(r in t))&&ee(t,r,n)}function Xn(t,r,n){var e=t[r];Rt.call(t,r)&&No(e,n)&&(n!==i||r in t)||ee(t,r,n)}function te(t,r){for(var n=t.length;n--;)if(No(t[n][0],r))return n;return-1}function re(t,r,n,e){return se(t,(function(t,i,u){r(e,t,n(t),u)})),e}function ne(t,r){return t&&Ti(r,Sf(r),t)}function ee(t,r,n){"__proto__"==r&&tr?tr(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}function ie(t,r){for(var n=-1,u=r.length,o=e(u),f=null==t;++n<u;)o[n]=f?i:jf(t,r[n]);return o}function ue(t,r,n){return t==t&&(n!==i&&(t=t<=n?t:n),r!==i&&(t=t>=r?t:r)),t}function oe(t,r,n,e,u,o){var f,a=1&r,c=2&r,s=4&r;if(n&&(f=u?n(t,e,u,o):n(t)),f!==i)return f;if(!Xo(t))return t;var l=Fo(t);if(l){if(f=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&Rt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!a)return ji(t,f)}else{var h=lu(t),p=h==b||h==m;if(Zo(t))return bi(t,a);if(h==x||h==v||p&&!u){if(f=c||p?{}:pu(t),!a)return c?function(t,r){return Ti(t,su(t),r)}(t,function(t,r){return t&&Ti(r,Uf(r),t)}(f,t)):function(t,r){return Ti(t,cu(t),r)}(t,ne(f,t))}else{if(!ur[h])return u?t:{};f=function(t,r,n){var e,i=t.constructor;switch(r){case S:return mi(t);case d:case _:return new i(+t);case U:return function(t,r){var n=r?mi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case R:case L:case k:case z:case M:case P:case N:case $:case W:return Ai(t,n);case A:return new i;case E:case B:return new i(t);case j:return function(t){var r=new t.constructor(t.source,ht.exec(t));return r.lastIndex=t.lastIndex,r}(t);case T:return new i;case C:return e=t,zn?xt(zn.call(e)):{}}}(t,h,a)}}o||(o=new Zn);var g=o.get(t);if(g)return g;o.set(t,f),of(t)?t.forEach((function(e){f.add(oe(e,r,n,e,t,o))})):rf(t)&&t.forEach((function(e,i){f.set(i,oe(e,r,n,i,t,o))}));var y=l?i:(s?c?ru:tu:c?Uf:Sf)(t);return Ir(y||t,(function(e,i){y&&(e=t[i=e]),Xn(f,i,oe(e,r,n,i,t,o))})),f}function fe(t,r,n){var e=n.length;if(null==t)return!e;for(t=xt(t);e--;){var u=n[e],o=r[u],f=t[u];if(f===i&&!(u in t)||!o(f))return!1}return!0}function ae(t,r,n){if("function"!=typeof t)throw new Tt(u);return Tu((function(){t.apply(i,n)}),r)}function ce(t,r,n,e){var i=-1,u=Cr,o=!0,f=t.length,a=[],c=r.length;if(!f)return a;n&&(r=Sr(r,Vr(n))),e?(u=Or,o=!1):r.length>=200&&(u=Hr,o=!1,r=new Qn(r));t:for(;++i<f;){var s=t[i],l=null==n?s:n(s);if(s=e||0!==s?s:0,o&&l==l){for(var h=c;h--;)if(r[h]===l)continue t;a.push(s)}else u(r,l,e)||a.push(s)}return a}Pn.templateSettings={escape:V,evaluate:Y,interpolate:H,variable:"",imports:{_:Pn}},Pn.prototype=$n.prototype,Pn.prototype.constructor=Pn,Wn.prototype=Nn($n.prototype),Wn.prototype.constructor=Wn,Dn.prototype=Nn($n.prototype),Dn.prototype.constructor=Dn,Fn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Fn.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},Fn.prototype.get=function(t){var r=this.__data__;if(Tn){var n=r[t];return n===o?i:n}return Rt.call(r,t)?r[t]:i},Fn.prototype.has=function(t){var r=this.__data__;return Tn?r[t]!==i:Rt.call(r,t)},Fn.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Tn&&r===i?o:r,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(t){var r=this.__data__,n=te(r,t);return!(n<0||(n==r.length-1?r.pop():Zt.call(r,n,1),--this.size,0))},qn.prototype.get=function(t){var r=this.__data__,n=te(r,t);return n<0?i:r[n][1]},qn.prototype.has=function(t){return te(this.__data__,t)>-1},qn.prototype.set=function(t,r){var n=this.__data__,e=te(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Fn,map:new(En||qn),string:new Fn}},Kn.prototype.delete=function(t){var r=ou(this,t).delete(t);return this.size-=r?1:0,r},Kn.prototype.get=function(t){return ou(this,t).get(t)},Kn.prototype.has=function(t){return ou(this,t).has(t)},Kn.prototype.set=function(t,r){var n=ou(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this},Qn.prototype.add=Qn.prototype.push=function(t){return this.__data__.set(t,o),this},Qn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.clear=function(){this.__data__=new qn,this.size=0},Zn.prototype.delete=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n},Zn.prototype.get=function(t){return this.__data__.get(t)},Zn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.set=function(t,r){var n=this.__data__;if(n instanceof qn){var e=n.__data__;if(!En||e.length<199)return e.push([t,r]),this.size=++n.size,this;n=this.__data__=new Kn(e)}return n.set(t,r),this.size=n.size,this};var se=Oi(_e),le=Oi(we,!0);function he(t,r){var n=!0;return se(t,(function(t,e,i){return n=!!r(t,e,i)})),n}function pe(t,r,n){for(var e=-1,u=t.length;++e<u;){var o=t[e],f=r(o);if(null!=f&&(a===i?f==f&&!af(f):n(f,a)))var a=f,c=o}return c}function ge(t,r){var n=[];return se(t,(function(t,e,i){r(t,e,i)&&n.push(t)})),n}function ve(t,r,n,e,i){var u=-1,o=t.length;for(n||(n=gu),i||(i=[]);++u<o;){var f=t[u];r>0&&n(f)?r>1?ve(f,r-1,n,e,i):Ur(i,f):e||(i[i.length]=f)}return i}var ye=Si(),de=Si(!0);function _e(t,r){return t&&ye(t,r,Sf)}function we(t,r){return t&&de(t,r,Sf)}function be(t,r){return Br(r,(function(r){return Yo(t[r])}))}function me(t,r){for(var n=0,e=(r=yi(r,t)).length;null!=t&&n<e;)t=t[ku(r[n++])];return n&&n==e?t:i}function Ae(t,r,n){var e=r(t);return Fo(t)?e:Ur(e,n(t))}function Ee(t){return null==t?t===i?"[object Undefined]":"[object Null]":Gt&&Gt in xt(t)?function(t){var r=Rt.call(t,Gt),n=t[Gt];try{t[Gt]=i;var e=!0}catch(t){}var u=zt.call(t);return e&&(r?t[Gt]=n:delete t[Gt]),u}(t):function(t){return zt.call(t)}(t)}function xe(t,r){return t>r}function Ie(t,r){return null!=t&&Rt.call(t,r)}function je(t,r){return null!=t&&r in xt(t)}function Te(t,r,n){for(var u=n?Or:Cr,o=t[0].length,f=t.length,a=f,c=e(f),s=1/0,l=[];a--;){var h=t[a];a&&r&&(h=Sr(h,Vr(r))),s=dn(h.length,s),c[a]=!n&&(r||o>=120&&h.length>=120)?new Qn(a&&h):i}h=t[0];var p=-1,g=c[0];t:for(;++p<o&&l.length<s;){var v=h[p],y=r?r(v):v;if(v=n||0!==v?v:0,!(g?Hr(g,y):u(l,y,n))){for(a=f;--a;){var d=c[a];if(!(d?Hr(d,y):u(t[a],y,n)))continue t}g&&g.push(y),l.push(v)}}return l}function Be(t,r,n){var e=null==(t=xu(t,r=yi(r,t)))?t:t[ku(Ju(r))];return null==e?i:Er(e,t,n)}function Ce(t){return tf(t)&&Ee(t)==v}function Oe(t,r,n,e,u){return t===r||(null==t||null==r||!tf(t)&&!tf(r)?t!=t&&r!=r:function(t,r,n,e,u,o){var f=Fo(t),a=Fo(r),c=f?y:lu(t),s=a?y:lu(r),l=(c=c==v?x:c)==x,h=(s=s==v?x:s)==x,p=c==s;if(p&&Zo(t)){if(!Zo(r))return!1;f=!0,l=!1}if(p&&!l)return o||(o=new Zn),f||cf(t)?Gi(t,r,n,e,u,o):function(t,r,n,e,i,u,o){switch(n){case U:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case S:return!(t.byteLength!=r.byteLength||!u(new Dt(t),new Dt(r)));case d:case _:case E:return No(+t,+r);case w:return t.name==r.name&&t.message==r.message;case j:case B:return t==r+"";case A:var f=un;case T:var a=1&e;if(f||(f=an),t.size!=r.size&&!a)return!1;var c=o.get(t);if(c)return c==r;e|=2,o.set(t,r);var s=Gi(f(t),f(r),e,i,u,o);return o.delete(t),s;case C:if(zn)return zn.call(t)==zn.call(r)}return!1}(t,r,c,n,e,u,o);if(!(1&n)){var g=l&&Rt.call(t,"__wrapped__"),b=h&&Rt.call(r,"__wrapped__");if(g||b){var m=g?t.value():t,I=b?r.value():r;return o||(o=new Zn),u(m,I,n,e,o)}}return!!p&&(o||(o=new Zn),function(t,r,n,e,u,o){var f=1&n,a=tu(t),c=a.length;if(c!=tu(r).length&&!f)return!1;for(var s=c;s--;){var l=a[s];if(!(f?l in r:Rt.call(r,l)))return!1}var h=o.get(t),p=o.get(r);if(h&&p)return h==r&&p==t;var g=!0;o.set(t,r),o.set(r,t);for(var v=f;++s<c;){var y=t[l=a[s]],d=r[l];if(e)var _=f?e(d,y,l,r,t,o):e(y,d,l,t,r,o);if(!(_===i?y===d||u(y,d,n,e,o):_)){g=!1;break}v||(v="constructor"==l)}if(g&&!v){var w=t.constructor,b=r.constructor;w==b||!("constructor"in t)||!("constructor"in r)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(g=!1)}return o.delete(t),o.delete(r),g}(t,r,n,e,u,o))}(t,r,n,e,Oe,u))}function Se(t,r,n,e){var u=n.length,o=u,f=!e;if(null==t)return!o;for(t=xt(t);u--;){var a=n[u];if(f&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++u<o;){var c=(a=n[u])[0],s=t[c],l=a[1];if(f&&a[2]){if(s===i&&!(c in t))return!1}else{var h=new Zn;if(e)var p=e(s,l,c,t,r,h);if(!(p===i?Oe(l,s,3,e,h):p))return!1}}return!0}function Ue(t){return!(!Xo(t)||(r=t,kt&&kt in r))&&(Yo(t)?Nt:vt).test(zu(t));var r}function Re(t){return"function"==typeof t?t:null==t?ea:"object"==typeof t?Fo(t)?Pe(t[0],t[1]):Me(t):ha(t)}function Le(t){if(!bu(t))return vn(t);var r=[];for(var n in xt(t))Rt.call(t,n)&&"constructor"!=n&&r.push(n);return r}function ke(t,r){return t<r}function ze(t,r){var n=-1,i=Ko(t)?e(t.length):[];return se(t,(function(t,e,u){i[++n]=r(t,e,u)})),i}function Me(t){var r=fu(t);return 1==r.length&&r[0][2]?Au(r[0][0],r[0][1]):function(n){return n===t||Se(n,t,r)}}function Pe(t,r){return du(t)&&mu(r)?Au(ku(t),r):function(n){var e=jf(n,t);return e===i&&e===r?Tf(n,t):Oe(r,e,3)}}function Ne(t,r,n,e,u){t!==r&&ye(r,(function(o,f){if(u||(u=new Zn),Xo(o))!function(t,r,n,e,u,o,f){var a=Iu(t,n),c=Iu(r,n),s=f.get(c);if(s)Gn(t,n,s);else{var l=o?o(a,c,n+"",t,r,f):i,h=l===i;if(h){var p=Fo(c),g=!p&&Zo(c),v=!p&&!g&&cf(c);l=c,p||g||v?Fo(a)?l=a:Qo(a)?l=ji(a):g?(h=!1,l=bi(c,!0)):v?(h=!1,l=Ai(c,!0)):l=[]:ef(c)||Do(c)?(l=a,Do(a)?l=df(a):Xo(a)&&!Yo(a)||(l=pu(c))):h=!1}h&&(f.set(c,l),u(l,c,e,o,f),f.delete(c)),Gn(t,n,l)}}(t,r,f,n,Ne,e,u);else{var a=e?e(Iu(t,f),o,f+"",t,r,u):i;a===i&&(a=o),Gn(t,f,a)}}),Uf)}function $e(t,r){var n=t.length;if(n)return vu(r+=r<0?n:0,n)?t[r]:i}function We(t,r,n){r=r.length?Sr(r,(function(t){return Fo(t)?function(r){return me(r,1===t.length?t[0]:t)}:t})):[ea];var e=-1;r=Sr(r,Vr(uu()));var i=ze(t,(function(t,n,i){var u=Sr(r,(function(r){return r(t)}));return{criteria:u,index:++e,value:t}}));return function(t){var r=t.length;for(t.sort((function(t,r){return function(t,r,n){for(var e=-1,i=t.criteria,u=r.criteria,o=i.length,f=n.length;++e<o;){var a=Ei(i[e],u[e]);if(a)return e>=f?a:a*("desc"==n[e]?-1:1)}return t.index-r.index}(t,r,n)}));r--;)t[r]=t[r].value;return t}(i)}function De(t,r,n){for(var e=-1,i=r.length,u={};++e<i;){var o=r[e],f=me(t,o);n(f,o)&&Ye(u,yi(o,t),f)}return u}function Fe(t,r,n,e){var i=e?$r:Nr,u=-1,o=r.length,f=t;for(t===r&&(r=ji(r)),n&&(f=Sr(t,Vr(n)));++u<o;)for(var a=0,c=r[u],s=n?n(c):c;(a=i(f,s,a,e))>-1;)f!==t&&Zt.call(f,a,1),Zt.call(t,a,1);return t}function qe(t,r){for(var n=t?r.length:0,e=n-1;n--;){var i=r[n];if(n==e||i!==u){var u=i;vu(i)?Zt.call(t,i,1):ai(t,i)}}return t}function Ke(t,r){return t+pr(bn()*(r-t+1))}function Qe(t,r){var n="";if(!t||r<1||r>l)return n;do{r%2&&(n+=t),(r=pr(r/2))&&(t+=t)}while(r);return n}function Ze(t,r){return Bu(Eu(t,r,ea),t+"")}function Je(t){return Vn($f(t))}function Ve(t,r){var n=$f(t);return Su(n,ue(r,0,n.length))}function Ye(t,r,n,e){if(!Xo(t))return t;for(var u=-1,o=(r=yi(r,t)).length,f=o-1,a=t;null!=a&&++u<o;){var c=ku(r[u]),s=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(u!=f){var l=a[c];(s=e?e(l,c,a):i)===i&&(s=Xo(l)?l:vu(r[u+1])?[]:{})}Xn(a,c,s),a=a[c]}return t}var He=Bn?function(t,r){return Bn.set(t,r),t}:ea,Ge=tr?function(t,r){return tr(t,"toString",{configurable:!0,enumerable:!1,value:ta(r),writable:!0})}:ea;function Xe(t){return Su($f(t))}function ti(t,r,n){var i=-1,u=t.length;r<0&&(r=-r>u?0:u+r),(n=n>u?u:n)<0&&(n+=u),u=r>n?0:n-r>>>0,r>>>=0;for(var o=e(u);++i<u;)o[i]=t[i+r];return o}function ri(t,r){var n;return se(t,(function(t,e,i){return!(n=r(t,e,i))})),!!n}function ni(t,r,n){var e=0,i=null==t?e:t.length;if("number"==typeof r&&r==r&&i<=2147483647){for(;e<i;){var u=e+i>>>1,o=t[u];null!==o&&!af(o)&&(n?o<=r:o<r)?e=u+1:i=u}return i}return ei(t,r,ea,n)}function ei(t,r,n,e){var u=0,o=null==t?0:t.length;if(0===o)return 0;for(var f=(r=n(r))!=r,a=null===r,c=af(r),s=r===i;u<o;){var l=pr((u+o)/2),h=n(t[l]),p=h!==i,g=null===h,v=h==h,y=af(h);if(f)var d=e||v;else d=s?v&&(e||p):a?v&&p&&(e||!g):c?v&&p&&!g&&(e||!y):!g&&!y&&(e?h<=r:h<r);d?u=l+1:o=l}return dn(o,4294967294)}function ii(t,r){for(var n=-1,e=t.length,i=0,u=[];++n<e;){var o=t[n],f=r?r(o):o;if(!n||!No(f,a)){var a=f;u[i++]=0===o?0:o}}return u}function ui(t){return"number"==typeof t?t:af(t)?h:+t}function oi(t){if("string"==typeof t)return t;if(Fo(t))return Sr(t,oi)+"";if(af(t))return Mn?Mn.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function fi(t,r,n){var e=-1,i=Cr,u=t.length,o=!0,f=[],a=f;if(n)o=!1,i=Or;else if(u>=200){var c=r?null:Qi(t);if(c)return an(c);o=!1,i=Hr,a=new Qn}else a=r?[]:f;t:for(;++e<u;){var s=t[e],l=r?r(s):s;if(s=n||0!==s?s:0,o&&l==l){for(var h=a.length;h--;)if(a[h]===l)continue t;r&&a.push(l),f.push(s)}else i(a,l,n)||(a!==f&&a.push(l),f.push(s))}return f}function ai(t,r){return null==(t=xu(t,r=yi(r,t)))||delete t[ku(Ju(r))]}function ci(t,r,n,e){return Ye(t,r,n(me(t,r)),e)}function si(t,r,n,e){for(var i=t.length,u=e?i:-1;(e?u--:++u<i)&&r(t[u],u,t););return n?ti(t,e?0:u,e?u+1:i):ti(t,e?u+1:0,e?i:u)}function li(t,r){var n=t;return n instanceof Dn&&(n=n.value()),Rr(r,(function(t,r){return r.func.apply(r.thisArg,Ur([t],r.args))}),n)}function hi(t,r,n){var i=t.length;if(i<2)return i?fi(t[0]):[];for(var u=-1,o=e(i);++u<i;)for(var f=t[u],a=-1;++a<i;)a!=u&&(o[u]=ce(o[u]||f,t[a],r,n));return fi(ve(o,1),r,n)}function pi(t,r,n){for(var e=-1,u=t.length,o=r.length,f={};++e<u;){var a=e<o?r[e]:i;n(f,t[e],a)}return f}function gi(t){return Qo(t)?t:[]}function vi(t){return"function"==typeof t?t:ea}function yi(t,r){return Fo(t)?t:du(t,r)?[t]:Lu(_f(t))}var di=Ze;function _i(t,r,n){var e=t.length;return n=n===i?e:n,!r&&n>=e?t:ti(t,r,n)}var wi=or||function(t){return lr.clearTimeout(t)};function bi(t,r){if(r)return t.slice();var n=t.length,e=Ft?Ft(n):new t.constructor(n);return t.copy(e),e}function mi(t){var r=new t.constructor(t.byteLength);return new Dt(r).set(new Dt(t)),r}function Ai(t,r){var n=r?mi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ei(t,r){if(t!==r){var n=t!==i,e=null===t,u=t==t,o=af(t),f=r!==i,a=null===r,c=r==r,s=af(r);if(!a&&!s&&!o&&t>r||o&&f&&c&&!a&&!s||e&&f&&c||!n&&c||!u)return 1;if(!e&&!o&&!s&&t<r||s&&n&&u&&!e&&!o||a&&n&&u||!f&&u||!c)return-1}return 0}function xi(t,r,n,i){for(var u=-1,o=t.length,f=n.length,a=-1,c=r.length,s=yn(o-f,0),l=e(c+s),h=!i;++a<c;)l[a]=r[a];for(;++u<f;)(h||u<o)&&(l[n[u]]=t[u]);for(;s--;)l[a++]=t[u++];return l}function Ii(t,r,n,i){for(var u=-1,o=t.length,f=-1,a=n.length,c=-1,s=r.length,l=yn(o-a,0),h=e(l+s),p=!i;++u<l;)h[u]=t[u];for(var g=u;++c<s;)h[g+c]=r[c];for(;++f<a;)(p||u<o)&&(h[g+n[f]]=t[u++]);return h}function ji(t,r){var n=-1,i=t.length;for(r||(r=e(i));++n<i;)r[n]=t[n];return r}function Ti(t,r,n,e){var u=!n;n||(n={});for(var o=-1,f=r.length;++o<f;){var a=r[o],c=e?e(n[a],t[a],a,n,t):i;c===i&&(c=t[a]),u?ee(n,a,c):Xn(n,a,c)}return n}function Bi(t,r){return function(n,e){var i=Fo(n)?xr:re,u=r?r():{};return i(n,t,uu(e,2),u)}}function Ci(t){return Ze((function(r,n){var e=-1,u=n.length,o=u>1?n[u-1]:i,f=u>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(u--,o):i