/*! For license information please see sdk-init.js.LICENSE.txt */ !function(){var t={526:function(t,e){"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,i=s(t),a=i[0],u=i[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,u)),f=0,l=u>0?a-4:a;for(n=0;n>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===u&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[f++]=255&e),1===u&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],a=16383,s=0,c=r-o;sc?c:s+a));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,r){for(var o,i,a=[],s=e;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},287:function(t,e,n){"use strict";const r=n(526),o=n(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=u,e.IS=50;const a=2147483647;function s(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,n)}function c(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|g(t,e);let r=s(n);const o=r.write(t,e);return o!==n&&(r=r.slice(0,o)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(z(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return p(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(z(t,ArrayBuffer)||t&&z(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(z(t,SharedArrayBuffer)||t&&z(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return u.from(r,e,n);const o=function(t){if(u.isBuffer(t)){const e=0|h(t.length),n=s(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||K(t.length)?s(0):p(t):"Buffer"===t.type&&Array.isArray(t.data)?p(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,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 f(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 f(t),s(t<0?0:0|h(t))}function p(t){const e=t.length<0?0:0|h(t.length),n=s(e);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function g(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||z(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);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(o)return r?-1:G(t).length;e=(""+e).toLowerCase(),o=!0}}function y(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return B(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,o){let i,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){let r=-1;for(i=n;is&&(n=s-u),i=n;i>=0;i--){let n=!0;for(let r=0;ro&&(r=o):r=o;const i=e.length;let a;for(r>i/2&&(r=i/2),a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function L(t,e,n){n=Math.min(t.length,n);const r=[];let o=e;for(;o239?4:e>223?3:e>191?2:1;if(o+a<=n){let n,r,s,u;switch(a){case 1:e<128&&(i=e);break;case 2:n=t[o+1],128==(192&n)&&(u=(31&e)<<6|63&n,u>127&&(i=u));break;case 3:n=t[o+1],r=t[o+2],128==(192&n)&&128==(192&r)&&(u=(15&e)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:n=t[o+1],r=t[o+2],s=t[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(u=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(t){const e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rr.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(r,o)):Uint8Array.prototype.set.call(r,e,o);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,o)}o+=e.length}return r},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,e,n,r,o){if(z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0);const s=Math.min(i,a),c=this.slice(r,o),f=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return I(this,t,e,n);case"ascii":case"latin1":case"binary":return E(this,t,e,n);case"base64":return R(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function B(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;or)&&(n=r);let o="";for(let r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function _(t,e,n,r,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function U(t,e,n,r,o){W(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function M(t,e,n,r,o){W(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function N(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(t,e,n,r,i){return e=+e,n>>>=0,i||N(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function V(t,e,n,r,i){return e=+e,n>>>=0,i||N(t,0,n,8),o.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||x(t,e,this.length);let r=this[t],o=1,i=0;for(;++i>>=0,e>>>=0,n||x(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=q((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Y(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(o)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Y(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||x(t,e,this.length);let r=this[t],o=1,i=0;for(;++i=o&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);let r=e,o=1,i=this[t+--r];for(;r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||x(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){t>>>=0,e||x(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=q((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Y(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Y(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||x(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||x(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||x(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||x(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||_(this,t,e,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[e]=255&t;++i>>=0,n>>>=0,r||_(this,t,e,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=q((function(t,e=0){return U(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=q((function(t,e=0){return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);_(this,t,e,n,r-1,-r)}let o=0,i=1,a=0;for(this[e]=255&t;++o>>=0,!r){const r=Math.pow(2,8*n-1);_(this,t,e,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/i|0)-a&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=q((function(t,e=0){return U(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=q((function(t,e=0){return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,n){return P(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return P(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function W(t,e,n,r,o,i){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new D.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,n){H(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||Y(e,t.length-(n+1))}(r,o,i)}function H(t,e){if("number"!=typeof t)throw new D.ERR_INVALID_ARG_TYPE(e,"number",t)}function Y(t,e,n){if(Math.floor(t)!==t)throw H(t,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=j(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=j(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r}),RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function G(t,e){let n;e=e||1/0;const r=t.length;let o=null;const i=[];for(let a=0;a55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function J(t,e,n,r){let o;for(o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function K(t){return t!=t}const $=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e}();function q(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},251:function(t,e){e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,u=(1<>1,f=-7,l=n?o-1:0,p=n?-1:1,d=t[e+l];for(l+=p,i=d&(1<<-f)-1,d>>=-f,f+=s;f>0;i=256*i+t[e+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=r;f>0;a=256*a+t[e+l],l+=p,f-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=c}return(d?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,u,c=8*i-o-1,f=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+l>=1?p/u:p*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*u-1)*Math.pow(2,o),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<0;t[n+d]=255&a,d+=h,a/=256,c-=8);t[n+d-h]|=128*g}},471:function(t){for(var e=[],n=0;n<256;++n)e[n]=(n+256).toString(16).substr(1);t.exports=function(t,n){var r=n||0,o=e;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}},814:function(t){var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var n=new Uint8Array(16);t.exports=function(){return e(n),n}}else{var r=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)3&e||(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r}}},550:function(t,e,n){var r=n(814),o=n(471);t.exports=function(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[i+s]=a[s];return e||o(a)}},723:function(t){t.exports={version:"1.1.88",sdkApiVersion:"1.0.0",sdkClientType:"web",headers:{sdkClientVersion:"x-nsure-sdk-client-version",sdkApiVersion:"x-nsure-sdk-api-version",sdkClientType:"x-nsure-sdk-client-type",appId:"x-nsure-app-id",sessionId:"x-nsure-session-id",partnerId:"x-nsure-partner-id",appContextId:"x-nsure-app-context-id"},serverUrl:"https://sdk-service.nsureapi.com",storageIframeUrl:"https://sdk.nsureapi.com/sdkIframe.html",coreConfigFileUrl:"https://sdk.nsureapi.com/core-config/config.json",errorServerUrl:"https://sdk-error-manager-service.nsureapi.com",type:"prod"}},616:function(t,e,n){var r=n(287).hp;t.exports={toArray:function(t,e){if(!t||36!==t.length)return t;for(var n="",o=e?"0":"1",i=0;i<36;i+=1)n+=i>=26&&i<30?o:t[i];var a=function(t){for(var e=255,n=255,r=0,o=t.length;o;){var i=o>20?20:o;o-=i;do{n+=e+=t[r++]}while(--i);e=(255&e)+(e>>8),n=(255&n)+(n>>8)}return((n=(255&n)+(n>>8))<<8|(e=(255&e)+(e>>8))).toString(16)}(r.from(n));if(a){var s="";if(4===a.length)s+=a;else if(a.length<4){for(var u=0;u<4-a.length;u+=1)s+=o;s+=a}else s+=a.slice(-4)}return n.substring(0,26)+s+n.substring(26+s.length)}}},1:function(t){var e=null,n=null,r=0;function o(t,e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}t.exports={init:function(t,o){e=t.errorServerUrl+"/reportSdkMsg",n=o.appId,r="number"==typeof o.logMessageRate?o.logMessageRate:100},send:function(t){if(e&&!(100*Math.random()>r)){var i=e;i+="?"+o("appId",n),i+="&"+o("msg",JSON.stringify(t));var a=new Image;a.onerror=function(){},a.src=i}}}},611:function(t){var e=function(){function t(t,e){this.method=t,this.url=e,this.headers={},this.data=null,this.timeout=1e4}t.prototype.set=function(t,e){if("object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&(this.headers[n]=t[n]);else this.headers[t]=e;return this},t.prototype.send=function(t){return this.data=t,this},t.prototype.timeout=function(t){return this.timeout=t,this},t.prototype.end=function(t){var e=this,n={method:this.method,headers:this.headers};function r(t,e){return{ok:!1,status:e?e.status:400,response:t instanceof Error?t.message:t}}if(this.data&&(n.body=JSON.stringify(this.data)),"function"==typeof fetch){var o,i=fetch(this.url,n).then((function(t){if(!t.ok)throw{response:t,message:t.statusText||"HTTP error "+t.status};return function(t){var e=t.headers.get("content-type");return e&&e.includes("application/json")?t.json().then((function(e){return{ok:t.ok,status:t.status,body:e}})):t.text().then((function(e){return{ok:t.ok,status:t.status,body:e}}))}(t)})),a=new Promise((function(t,n){o=setTimeout((function(){n(new Error("Request timeout"))}),e.timeout)}));Promise.race([i,a]).then((function(e){clearTimeout(o),e.ok?t(null,e):t(r(e.response,e))})).catch((function(e){clearTimeout(o),t(r(e.message,e&&e.response))}))}else{var s=new XMLHttpRequest;s.open(this.method,this.url,!0),Object.keys(this.headers).forEach((function(t){s.setRequestHeader(t,e.headers[t])})),s.timeout=this.timeout,s.onload=function(){var e={ok:s.status>=200&&s.status<300,status:s.status,body:s.responseText};try{e.body=JSON.parse(s.responseText)}catch(t){}e.ok?t(null,e):t(r("HTTP error "+s.status,e))},s.onerror=function(){t(r("Error",{status:400}))},s.ontimeout=function(){t(r("Timeout",{status:408}))},s.send(this.data?JSON.stringify(this.data):null)}};var e={};return["get","post","put","delete"].forEach((function(n){e[n]=function(e){return new t(n,e)}})),e}();t.exports=e},13:function(t,e,n){var r,o=n(723),i="getItem";function a(t,e){t&&t.contentWindow.postMessage(e,"*")}function s(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.attachEvent&&t.detachEvent("on"+e,n)}t.exports={init:function(t){var e,n=(e=!1,function(){e||(e=!0,t())});(r=document.createElement("iframe")).id="storageIframe",r.width=r.height=r.frameBorder=0,r.style.display="none",r.setAttribute("src",o.storageIframeUrl),r.onload=n,r.onerror=n,document.body.appendChild(r),window.setTimeout(n,1e4)},getKey:function(t,e){var n,o,u,c,f,l;r||e(),n=window,o="message",c=function t(n){if(n.data&&"string"==typeof n.data)try{var r=JSON.parse(n.data);if(r.command===i){var o=r.response;s(window,"message",t),e(o)}}catch(n){s(window,"message",t),e()}},f=e,l=!1,window.setTimeout((function(){l||(l=!0,f())}),5e3),u=function(t){l||(l=!0,c(t))},n.addEventListener?n.addEventListener(o,u,!1):n.attachEvent&&n.attachEvent("on"+o,u),a(r,JSON.stringify({command:i,key:t}))},setKey:function(t,e){a(r,JSON.stringify({command:"setItem",key:t,value:e}))},cleanup:function(){r&&r.parentElement&&r.parentElement.removeChild&&(r.parentElement.removeChild(r),r=null)}}},528:function(t){var e,n={setItem:function(t,e){this[t]=e},getItem:function(t){return this[t]},removeItem:function(t){delete this[t]}};function r(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch(t){return!1}}function o(){return void 0===e&&(e=r()),e?localStorage:n}function i(t,e){o().setItem(t,e)}function a(t){return o().getItem(t)}function s(t){return o().removeItem(t)}t.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:i,getItem:a,getBackwardCompatabilityItem:function(t,e){var n=a(t);return!n&&e&&(n=a(e))&&(i(t,n),s(e)),n},removeItem:s,hasAccessToLocalStorage:r,getSessionItem:function(t){try{return sessionStorage.getItem(t)}catch(e){return n.getItem(t)}},setSessionItem:function(t,e){try{return sessionStorage.setItem(t,e)}catch(r){return n.setItem(t,e)}}}},884:function(t){var e="nsure-app-cid";function n(t){var e=t;return e&&"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e&&!/^https?:\/\//i.test(e)&&(e="https://"+e),e}t.exports={isFunction:function(t){return"function"==typeof t},loadScript:function(t,e){var n=!1,r=document.createElement("script");function o(){n||(n=!0,e())}r.onload=o,r.onreadystatechange=function(){n||"complete"!==r.readyState||o()},r.onerror=function(){n||(n=!0,e("Error loading script"))},r.src=t,document.body.appendChild(r)},loadImage:function(t){var e=document.createElement("img");e.src=t,e.style.height=0,e.style.width=0,e.style.display="none",e.style.visibility="hidden",document.body.appendChild(e)},randomInt:function(t,e){var n,r=e-t+1;return Math.floor(((n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&window.msCrypto.getRandomValues.bind(window.msCrypto))?n(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*r+t)},isValidDate:function(t){return t instanceof Date&&!isNaN(t)},getAppContextId:function(){try{var t=sessionStorage.getItem(e);t?sessionStorage.removeItem(e):t=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(n=t,function(){try{sessionStorage.setItem(e,n)}catch(t){}}))}catch(e){t=0}var n;return t},isBrowser:function(){return"undefined"!=typeof document&&"undefined"!=typeof navigator&&"function"==typeof document.createElement},normalizePath:n,getConfigBaseUrls:function(t,e){var r=null;if("string"==typeof t.configBaseUrl&&t.configBaseUrl.length>0){var o=e.coreConfigFileUrl.indexOf("/core-config/"),i=o>0?e.coreConfigFileUrl.substring(o):"/core-config/config.json";r=n(t.configBaseUrl)+i}return{mainConfigBaseUrl:r||e.coreConfigFileUrl,altConfigBaseUrl:r===e.coreConfigFileUrl?null:e.coreConfigFileUrl}}}},824:function(){!function(){var t={396:function(t,e,n){"use strict";n.r(e),n.d(e,{ERROR_API_KEY_EXPIRED:function(){return I},ERROR_API_KEY_INVALID:function(){return b},ERROR_API_KEY_MISSING:function(){return w},ERROR_BAD_REQUEST_FORMAT:function(){return E},ERROR_BAD_RESPONSE_FORMAT:function(){return c},ERROR_CLIENT_TIMEOUT:function(){return a},ERROR_CSP_BLOCK:function(){return f},ERROR_FORBIDDEN_ENDPOINT:function(){return m},ERROR_FORBIDDEN_HEADER:function(){return C},ERROR_FORBIDDEN_ORIGIN:function(){return L},ERROR_GENERAL_SERVER_FAILURE:function(){return R},ERROR_INSTALLATION_METHOD_RESTRICTED:function(){return y},ERROR_INTEGRATION_FAILURE:function(){return v},ERROR_INVALID_ENDPOINT:function(){return l},ERROR_NETWORK_ABORT:function(){return u},ERROR_NETWORK_CONNECTION:function(){return s},ERROR_RATE_LIMIT:function(){return A},ERROR_SCRIPT_LOAD_FAIL:function(){return x},ERROR_SERVER_TIMEOUT:function(){return S},ERROR_SUBSCRIPTION_NOT_ACTIVE:function(){return h},ERROR_TOKEN_EXPIRED:function(){return k},ERROR_TOKEN_INVALID:function(){return T},ERROR_TOKEN_MISSING:function(){return B},ERROR_UNSUPPORTED_VERSION:function(){return g},ERROR_WRONG_REGION:function(){return d},default:function(){return F},defaultEndpoint:function(){return o},defaultScriptUrlPattern:function(){return N},defaultTlsEndpoint:function(){return i},load:function(){return P}});var r=n(635),o={default:"endpoint"},i={default:"tlsEndpoint"},a="Client timeout",s="Network connection error",u="Network request aborted",c="Response cannot be parsed",f="Blocked by CSP",l="The endpoint parameter is not a valid URL";function p(t){for(var e="",n=0;n0){var r=t[n].toLowerCase();r!==t[n]?e+=" ".concat(r):e+=t[n]}else e+=t[n].toUpperCase();return e}var d=p("WrongRegion"),h=p("SubscriptionNotActive"),g=p("UnsupportedVersion"),y=p("InstallationMethodRestricted"),m=p("HostnameRestricted"),v=p("IntegrationFailed"),w="API key required",b="API key not found",I="API key expired",E="Request cannot be parsed",R="Request failed",S="Request failed to process",A="Too many requests, rate limit exceeded",L="Not available for this origin",C="Not available with restricted header",B=w,T=b,k=I,O="3.10.1",x="Failed to load the JS script of the agent",_="9319";function U(t,e){var n,o,i,a,s=[],u=(n=function(t){var e=(0,r.fX)([],t,!0);return{current:function(){return e[0]},postpone:function(){var t=e.shift();void 0!==t&&e.push(t)},exclude:function(){e.shift()}}}(t),a=0,o=function(){return Math.random()*Math.min(3e3,100*Math.pow(2,a++))},i=new Set,[n.current(),function(t,e){var r,a=e instanceof Error?e.message:"";if(a===f||a===l)n.exclude(),r=0;else if(a===_)n.exclude();else if(a===x){var s=Date.now()-t.getTime()<50,u=n.current();u&&s&&!i.has(u)&&(i.add(u),r=0),n.postpone()}else n.postpone();var c=n.current();return void 0===c?void 0:[c,null!=r?r:t.getTime()+o()-Date.now()]}]),c=u[0],p=u[1];if(void 0===c)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var d=function(t){var n=new Date,r=function(e){return s.push({url:t,startedAt:n,finishedAt:new Date,error:e})},o=e(t);return o.then((function(){return r()}),r),o.catch((function(t){if(s.length>=5)throw t;var e=p(n,t);if(!e)throw t;var r,o=e[0],i=e[1];return(r=i,new Promise((function(t){return setTimeout(t,r)}))).then((function(){return d(o)}))}))};return d(c).then((function(t){return[t,s]}))}var M="https://fpnpmcdn.net/v//loader_v.js",N=M;function P(t){var e;t.scriptUrlPattern;var n=t.token,o=t.apiKey,i=void 0===o?n:o,a=(0,r.Tt)(t,["scriptUrlPattern","token","apiKey"]),s=null!==(e=function(t,e){return function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,e)?t[e]:void 0}(t,"scriptUrlPattern"))&&void 0!==e?e:M,u=function(){var t=[],e=function(){t.push({time:new Date,state:document.visibilityState})},n=function(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}(document,"visibilitychange",e);return e(),[t,n]}(),c=u[0],f=u[1];return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(w);return U(function(t,e){return(Array.isArray(t)?t:[t]).map((function(t){return function(t,e){var n=encodeURIComponent;return t.replace(/<[^<>]+>/g,(function(t){return""===t?"3":""===t?n(e):""===t?n(O):t}))}(String(t),e)}))}(s,i),V)})).catch((function(t){throw f(),function(t){return t instanceof Error&&t.message===_?new Error(x):t}(t)})).then((function(t){var e=t[0],n=t[1];return f(),e.load((0,r.Cl)((0,r.Cl)({},a),{ldi:{attempts:n,visibilityStates:c}}))}))}function V(t){return function(t,e){var n,r=document,o="securitypolicyviolation",i=function(e){var r=new URL(t,location.href),o=e.blockedURI;o!==r.href&&o!==r.protocol.slice(0,-1)&&o!==r.origin||(n=e,a())};r.addEventListener(o,i);var a=function(){return r.removeEventListener(o,i)};return Promise.resolve().then(e).then((function(t){return a(),t}),(function(t){return new Promise((function(t){var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(null)})).then((function(){if(a(),n)return function(){throw new Error(f)}();throw t}))}))}(t,(function(){return function(t){return new Promise((function(e,n){if(function(t){if(URL.prototype)try{return new URL(t,location.href),!1}catch(t){if(t instanceof Error&&"TypeError"===t.name)return!0;throw t}}(t))throw new Error(l);var r=document.createElement("script"),o=function(){var t;return null===(t=r.parentNode)||void 0===t?void 0:t.removeChild(r)},i=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),e()},r.onerror=function(){o(),n(new Error(x))},r.async=!0,r.src=t,i.appendChild(r)}))}(t)})).then(D)}function D(){var t=window,e="__fpjs_p_l_b",n=t[e];if(function(t,e){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,t,e);(null==r?void 0:r.configurable)?delete t[e]:r&&!r.writable||(t[e]=void 0)}(t,e),"function"!=typeof(null==n?void 0:n.load))throw new Error(_);return n}var F={load:P,defaultScriptUrlPattern:M,ERROR_SCRIPT_LOAD_FAIL:x,ERROR_API_KEY_EXPIRED:I,ERROR_API_KEY_INVALID:b,ERROR_API_KEY_MISSING:w,ERROR_BAD_REQUEST_FORMAT:E,ERROR_BAD_RESPONSE_FORMAT:c,ERROR_CLIENT_TIMEOUT:a,ERROR_CSP_BLOCK:f,ERROR_FORBIDDEN_ENDPOINT:m,ERROR_FORBIDDEN_HEADER:C,ERROR_FORBIDDEN_ORIGIN:L,ERROR_GENERAL_SERVER_FAILURE:R,ERROR_INSTALLATION_METHOD_RESTRICTED:y,ERROR_INTEGRATION_FAILURE:v,ERROR_INVALID_ENDPOINT:l,ERROR_NETWORK_ABORT:u,ERROR_NETWORK_CONNECTION:s,ERROR_RATE_LIMIT:A,ERROR_SERVER_TIMEOUT:S,ERROR_SUBSCRIPTION_NOT_ACTIVE:h,ERROR_TOKEN_EXPIRED:I,ERROR_TOKEN_INVALID:b,ERROR_TOKEN_MISSING:w,ERROR_UNSUPPORTED_VERSION:g,ERROR_WRONG_REGION:d,defaultEndpoint:o,defaultTlsEndpoint:i}},568:function(t,e,n){"use strict";n.r(e),n.d(e,{componentsToDebugString:function(){return it},default:function(){return ft},getFullscreenElement:function(){return x},getScreenFrame:function(){return Y},hashComponents:function(){return at},isAndroid:function(){return _},isChromium:function(){return B},isDesktopSafari:function(){return k},isEdgeHTML:function(){return C},isGecko:function(){return O},isTrident:function(){return L},isWebKit:function(){return T},load:function(){return ct},loadSources:function(){return S},murmurX64Hash128:function(){return lt},prepareForSources:function(){return st},sources:function(){return rt},transformSource:function(){return A},withIframe:function(){return M}});var r=n(635),o="3.4.2";function i(t,e){return new Promise((function(n){return setTimeout(n,t,e)}))}function a(t){return!!t&&"function"==typeof t.then}function s(t,e){try{var n=t();a(n)?n.then((function(t){return e(!0,t)}),(function(t){return e(!1,t)})):e(!0,n)}catch(t){e(!1,t)}}function u(t,e,n){return void 0===n&&(n=16),(0,r.sH)(this,void 0,void 0,(function(){var o,a,s,u;return(0,r.YH)(this,(function(r){switch(r.label){case 0:o=Array(t.length),a=Date.now(),s=0,r.label=1;case 1:return s=a+n?(a=u,[4,i(0)]):[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return++s,[3,1];case 4:return[2,o]}}))}))}function c(t){t.then(void 0,(function(){}))}function f(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var n=[0,0,0,0];return n[3]+=t[3]+e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]+e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]+e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]+e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function l(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var n=[0,0,0,0];return n[3]+=t[3]*e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]*e[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=t[3]*e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]*e[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[2]*e[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[3]*e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function p(t,e){return 32==(e%=64)?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:(e-=32,[t[1]<>>32-e,t[0]<>>32-e])}function d(t,e){return 0==(e%=64)?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=h(t=l(t,[4283543511,3981806797]),[0,t[0]>>>1]),h(t=l(t,[3301882366,444984403]),[0,t[0]>>>1])}function y(t,e){e=e||0;var n,r=(t=t||"").length%16,o=t.length-r,i=[0,e],a=[0,e],s=[0,0],u=[0,0],c=[2277735313,289559509],y=[1291169091,658871167];for(n=0;n>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}function m(t){return parseInt(t)}function v(t){return parseFloat(t)}function w(t,e){return"number"==typeof t&&isNaN(t)?e:t}function b(t){return t.reduce((function(t,e){return t+(e?1:0)}),0)}function I(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var n=1/e;return Math.round(t*n)/n}function E(t){return t&&"object"==typeof t&&"message"in t?t:{message:t}}function R(t){return"function"!=typeof t}function S(t,e,n){var o=Object.keys(t).filter((function(t){return!function(t,e){for(var n=0,r=t.length;n=4}function C(){var t=window,e=navigator;return b(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!L()}function B(){var t=window,e=navigator;return b(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===e.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function T(){var t=window,e=navigator;return b(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===e.vendor.indexOf("Apple"),"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function k(){var t=window;return b(["safari"in t,!("DeviceMotionEvent"in t),!("ongestureend"in t),!("standalone"in navigator)])>=3}function O(){var t,e,n=window;return b(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function x(){var t=document;return t.fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||null}function _(){var t=B(),e=O();if(!t&&!e)return!1;var n=window;return b(["onorientationchange"in n,"orientation"in n,t&&!("SharedWorker"in n),e&&/android/i.test(navigator.appVersion)])>=2}function U(t){var e=new Error(t);return e.name=t,e}function M(t,e,n){var o,a,s;return void 0===n&&(n=50),(0,r.sH)(this,void 0,void 0,(function(){var u,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:u=document,r.label=1;case 1:return u.body?[3,3]:[4,i(n)];case 2:return r.sent(),[3,1];case 3:c=u.createElement("iframe"),r.label=4;case 4:return r.trys.push([4,,10,11]),[4,new Promise((function(t,n){var r=!1,o=function(){r=!0,t()};c.onload=o,c.onerror=function(t){r=!0,n(t)};var i=c.style;i.setProperty("display","block","important"),i.position="absolute",i.top="0",i.left="0",i.visibility="hidden",e&&"srcdoc"in c?c.srcdoc=e:c.src="proxy.php?url=about:blank",u.body.appendChild(c);var a=function(){var t,e;r||("complete"===(null===(e=null===(t=c.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?o():setTimeout(a,10))};a()}))];case 5:r.sent(),r.label=6;case 6:return(null===(a=null===(o=c.contentWindow)||void 0===o?void 0:o.document)||void 0===a?void 0:a.body)?[3,8]:[4,i(n)];case 7:return r.sent(),[3,6];case 8:return[4,t(c,c.contentWindow)];case 9:return[2,r.sent()];case 10:return null===(s=c.parentNode)||void 0===s||s.removeChild(c),[7];case 11:return[2]}}))}))}function N(t){for(var e=function(t){for(var e,n,r="Unexpected syntax '".concat(t,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(t),i=o[1]||void 0,a={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(t,e){a[t]=a[t]||[],a[t].push(e)};;){var c=s.exec(o[2]);if(!c)break;var f=c[0];switch(f[0]){case".":u("class",f.slice(1));break;case"#":u("id",f.slice(1));break;case"[":var l=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(f);if(!l)throw new Error(r);u(l[1],null!==(n=null!==(e=l[4])&&void 0!==e?e:l[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[i,a]}(t),n=e[0],r=e[1],o=document.createElement(null!=n?n:"div"),i=0,a=Object.keys(r);i.6*n.length}))).sort(),[2,i]}var s}))}))},fontPreferences:function(){return void 0===t&&(t=4e3),M((function(e,n){var o=n.document,i=o.body,a=i.style;a.width="".concat(t,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",B()?i.style.zoom="".concat(1/n.devicePixelRatio):T()&&(i.style.zoom="reset");var s=o.createElement("div");return s.textContent=(0,r.fX)([],Array(t/20|0),!0).map((function(){return"word"})).join(" "),i.appendChild(s),function(t,e){for(var n={},r={},o=0,i=Object.keys(nt);o');var t},audio:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(T()&&!k()&&!function(){var t=window;return b(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var n=new e(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.frequency.value=1e4;var o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,r.connect(o),o.connect(n.destination),r.start(0);var i=function(t){var e=function(){};return[new Promise((function(n,r){var o=!1,i=0,s=0;t.oncomplete=function(t){return n(t.renderedBuffer)};var u=function(){setTimeout((function(){return r(U("timeout"))}),Math.min(500,s+5e3-Date.now()))},f=function(){try{var e=t.startRendering();switch(a(e)&&c(e),t.state){case"running":s=Date.now(),o&&u();break;case"suspended":document.hidden||i++,o&&i>=3?r(U("suspended")):setTimeout(f,500)}}catch(t){r(t)}};f(),e=function(){o||(o=!0,s>0&&u())}})),e]}(n),s=i[0],u=i[1],f=s.then((function(t){return function(t){for(var e=0,n=0;n=3||n.push(e.languages);else if("string"==typeof e.languages){var o=e.languages;o&&n.push(o.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return w(v(navigator.deviceMemory),void 0)},screenResolution:function(){var t=screen,e=function(t){return w(m(t),null)},n=[e(t.width),e(t.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return w(m(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var n=(new e).resolvedOptions().timeZone;if(n)return n}var r,o=(r=(new Date).getFullYear(),-Math.max(v(new Date(r,0,1).getTimezoneOffset()),v(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(o>=0?"+":"").concat(Math.abs(o))},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){if(!L()&&!C())try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&T()&&!k()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return b(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],n=0;n=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),t.send()}catch(t){console.error(t)}}(),[4,st(n)];case 1:return t.sent(),[2,ut(S(rt,{debug:i},[]),i)]}}))}))}var ft={load:ct,hashComponents:at,componentsToDebugString:it},lt=y},526:function(t,e){"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,i=s(t),a=i[0],u=i[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,u)),f=0,l=u>0?a-4:a;for(n=0;n>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===u&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[f++]=255&e),1===u&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],a=16383,s=0,c=r-o;sc?c:s+a));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,r){for(var o,i,a=[],s=e;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},287:function(t,e,n){"use strict";const r=n(526),o=n(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=u,e.IS=50;const a=2147483647;function s(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,n)}function c(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|g(t,e);let r=s(n);const o=r.write(t,e);return o!==n&&(r=r.slice(0,o)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(z(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return p(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(z(t,ArrayBuffer)||t&&z(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(z(t,SharedArrayBuffer)||t&&z(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return u.from(r,e,n);const o=function(t){if(u.isBuffer(t)){const e=0|h(t.length),n=s(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||K(t.length)?s(0):p(t):"Buffer"===t.type&&Array.isArray(t.data)?p(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,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 f(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 f(t),s(t<0?0:0|h(t))}function p(t){const e=t.length<0?0:0|h(t.length),n=s(e);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function g(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||z(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);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(o)return r?-1:G(t).length;e=(""+e).toLowerCase(),o=!0}}function y(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return B(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,o){let i,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){let r=-1;for(i=n;is&&(n=s-u),i=n;i>=0;i--){let n=!0;for(let r=0;ro&&(r=o):r=o;const i=e.length;let a;for(r>i/2&&(r=i/2),a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function L(t,e,n){n=Math.min(t.length,n);const r=[];let o=e;for(;o239?4:e>223?3:e>191?2:1;if(o+a<=n){let n,r,s,u;switch(a){case 1:e<128&&(i=e);break;case 2:n=t[o+1],128==(192&n)&&(u=(31&e)<<6|63&n,u>127&&(i=u));break;case 3:n=t[o+1],r=t[o+2],128==(192&n)&&128==(192&r)&&(u=(15&e)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:n=t[o+1],r=t[o+2],s=t[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(u=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(t){const e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rr.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(r,o)):Uint8Array.prototype.set.call(r,e,o);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,o)}o+=e.length}return r},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,e,n,r,o){if(z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0);const s=Math.min(i,a),c=this.slice(r,o),f=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return I(this,t,e,n);case"ascii":case"latin1":case"binary":return E(this,t,e,n);case"base64":return R(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function B(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;or)&&(n=r);let o="";for(let r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function _(t,e,n,r,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function U(t,e,n,r,o){W(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function M(t,e,n,r,o){W(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function N(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(t,e,n,r,i){return e=+e,n>>>=0,i||N(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function V(t,e,n,r,i){return e=+e,n>>>=0,i||N(t,0,n,8),o.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||x(t,e,this.length);let r=this[t],o=1,i=0;for(;++i>>=0,e>>>=0,n||x(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=q((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Y(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(o)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Y(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||x(t,e,this.length);let r=this[t],o=1,i=0;for(;++i=o&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);let r=e,o=1,i=this[t+--r];for(;r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||x(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){t>>>=0,e||x(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=q((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Y(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Y(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||x(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||x(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||x(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||x(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||_(this,t,e,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[e]=255&t;++i>>=0,n>>>=0,r||_(this,t,e,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=q((function(t,e=0){return U(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=q((function(t,e=0){return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);_(this,t,e,n,r-1,-r)}let o=0,i=1,a=0;for(this[e]=255&t;++o>>=0,!r){const r=Math.pow(2,8*n-1);_(this,t,e,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/i|0)-a&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=q((function(t,e=0){return U(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=q((function(t,e=0){return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,n){return P(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return P(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function W(t,e,n,r,o,i){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new D.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,n){H(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||Y(e,t.length-(n+1))}(r,o,i)}function H(t,e){if("number"!=typeof t)throw new D.ERR_INVALID_ARG_TYPE(e,"number",t)}function Y(t,e,n){if(Math.floor(t)!==t)throw H(t,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=j(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=j(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r}),RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function G(t,e){let n;e=e||1/0;const r=t.length;let o=null;const i=[];for(let a=0;a55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function J(t,e,n,r){let o;for(o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function K(t){return t!=t}const $=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e}();function q(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},251:function(t,e){e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,u=(1<>1,f=-7,l=n?o-1:0,p=n?-1:1,d=t[e+l];for(l+=p,i=d&(1<<-f)-1,d>>=-f,f+=s;f>0;i=256*i+t[e+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=r;f>0;a=256*a+t[e+l],l+=p,f-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=c}return(d?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,u,c=8*i-o-1,f=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+l>=1?p/u:p*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*u-1)*Math.pow(2,o),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<0;t[n+d]=255&a,d+=h,a/=256,c-=8);t[n+d-h]|=128*g}},943:function(t){function e(t){this.message=t}e.prototype=new Error,e.prototype.name="InvalidCharacterError",t.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,a=0,s="";o=n.charAt(a++);~o&&(r=i%4?64*r+o:o,i++%4)?s+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s}},863:function(t,e,n){var r=n(943);t.exports=function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(r(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return r(e)}}},127:function(t,e,n){"use strict";var r=n(863);function o(t){this.message=t}o.prototype=new Error,o.prototype.name="InvalidTokenError",t.exports=function(t,e){if("string"!=typeof t)throw new o("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(r(t.split(".")[n]))}catch(t){throw new o("Invalid token specified: "+t.message)}},t.exports.InvalidTokenError=o},471:function(t){for(var e=[],n=0;n<256;++n)e[n]=(n+256).toString(16).substr(1);t.exports=function(t,n){var r=n||0,o=e;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}},814:function(t){var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var n=new Uint8Array(16);t.exports=function(){return e(n),n}}else{var r=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)3&e||(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r}}},550:function(t,e,n){var r=n(814),o=n(471);t.exports=function(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[i+s]=a[s];return e||o(a)}},996:function(t){t.exports={version:"1.1.70",sdkApiVersion:"1.0.0",sdkClientType:"web",headers:{sdkClientVersion:"x-nsure-sdk-client-version",sdkApiVersion:"x-nsure-sdk-api-version",sdkClientType:"x-nsure-sdk-client-type",appId:"x-nsure-app-id",sessionId:"x-nsure-session-id",partnerId:"x-nsure-partner-id",appContextId:"x-nsure-app-context-id"},serverUrl:"https://sdk-service.nsureapi.com",storageIframeUrl:"https://sdk.nsureapi.com/sdkIframe.html",coreConfigFileUrl:"https://sdk.nsureapi.com/core-config/config.json",errorServerUrl:"https://sdk-error-manager-service.nsureapi.com",type:"prod"}},427:function(t){function e(){this.listeners={}}e.prototype.addEventListener=function(t,e){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(e)},e.prototype.removeEventListener=function(t,e){if(t in this.listeners)for(var n=this.listeners[t],r=0,o=n.length;rr)){var i=e;i+="?"+o("appId",n),i+="&"+o("msg",JSON.stringify(t));var a=new Image;a.onerror=function(){},a.src=i}}}},904:function(t){var e=function(){function t(t,e){this.method=t,this.url=e,this.headers={},this.data=null,this.timeout=1e4}t.prototype.set=function(t,e){if("object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&(this.headers[n]=t[n]);else this.headers[t]=e;return this},t.prototype.send=function(t){return this.data=t,this},t.prototype.timeout=function(t){return this.timeout=t,this},t.prototype.end=function(t){var e=this,n={method:this.method,headers:this.headers};function r(t,e){return{ok:!1,status:e?e.status:400,response:t instanceof Error?t.message:t}}if(this.data&&(n.body=JSON.stringify(this.data)),"function"==typeof fetch){var o,i=fetch(this.url,n).then((function(t){if(!t.ok)throw{response:t,message:t.statusText||"HTTP error "+t.status};return function(t){var e=t.headers.get("content-type");return e&&e.includes("application/json")?t.json().then((function(e){return{ok:t.ok,status:t.status,body:e}})):t.text().then((function(e){return{ok:t.ok,status:t.status,body:e}}))}(t)})),a=new Promise((function(t,n){o=setTimeout((function(){n(new Error("Request timeout"))}),e.timeout)}));Promise.race([i,a]).then((function(e){clearTimeout(o),e.ok?t(null,e):t(r(e.response,e))})).catch((function(e){clearTimeout(o),t(r(e.message,e&&e.response))}))}else{var s=new XMLHttpRequest;s.open(this.method,this.url,!0),Object.keys(this.headers).forEach((function(t){s.setRequestHeader(t,e.headers[t])})),s.timeout=this.timeout,s.onload=function(){var e={ok:s.status>=200&&s.status<300,status:s.status,body:s.responseText};try{e.body=JSON.parse(s.responseText)}catch(t){}e.ok?t(null,e):t(r("HTTP error "+s.status,e))},s.onerror=function(){t(r("Error",{status:400}))},s.ontimeout=function(){t(r("Timeout",{status:408}))},s.send(this.data?JSON.stringify(this.data):null)}};var e={};return["get","post","put","delete"].forEach((function(n){e[n]=function(e){return new t(n,e)}})),e}();t.exports=e},179:function(t,e,n){var r,o,i=n(904),a=n(996),s=n(321);function u(){r=r||{},void 0!==o&&(r[a.headers.sessionId]=o);var t={Accept:"application/json","Content-Type":"application/json"};return Object.keys(r).forEach((function(e){void 0!==r[e]&&(t[e]=r[e])})),t}t.exports={setExtraHeaders:function(t){r=t},setSessionId:function(t){o=t},makeRequest:function(t,e){var n=t.path,r=t.data,o=t.method;i[o](a.serverUrl+"/"+n).set(u()).send(r).end((function(t,n){t?s.isFunction(e)&&e({ok:!1,status:t.status,response:t.response}):s.isFunction(e)&&e(null,{ok:n.ok,status:n.status,response:n.body})}))},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:u}},721:function(t){var e,n={setItem:function(t,e){this[t]=e},getItem:function(t){return this[t]},removeItem:function(t){delete this[t]}};function r(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch(t){return!1}}function o(){return void 0===e&&(e=r()),e?localStorage:n}function i(t,e){o().setItem(t,e)}function a(t){return o().getItem(t)}function s(t){return o().removeItem(t)}t.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:i,getItem:a,getBackwardCompatabilityItem:function(t,e){var n=a(t);return!n&&e&&(n=a(e))&&(i(t,n),s(e)),n},removeItem:s,hasAccessToLocalStorage:r,getSessionItem:function(t){try{return sessionStorage.getItem(t)}catch(e){return n.getItem(t)}},setSessionItem:function(t,e){try{return sessionStorage.setItem(t,e)}catch(r){return n.setItem(t,e)}}}},321:function(t){var e="nsure-app-cid";t.exports={isFunction:function(t){return"function"==typeof t},loadScript:function(t,e){var n=!1,r=document.createElement("script");function o(){n||(n=!0,e())}r.onload=o,r.onreadystatechange=function(){n||"complete"!==r.readyState||o()},r.onerror=function(t){if(!n){n=!0;var r={type:t.type,source:t.target.src,message:t.message,error:t.error&&t.error.toString()};e(r)}},r.src=t,document.body.appendChild(r)},loadImage:function(t){var e=document.createElement("img");e.src=t,e.style.height=0,e.style.width=0,e.style.display="none",e.style.visibility="hidden",document.body.appendChild(e)},randomInt:function(t,e){var n,r=e-t+1;return Math.floor(((n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&window.msCrypto.getRandomValues.bind(window.msCrypto))?n(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*r+t)},isValidDate:function(t){return t instanceof Date&&!isNaN(t)},getAppContextId:function(){try{var t=sessionStorage.getItem(e);t?sessionStorage.removeItem(e):t=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(n=t,function(){try{sessionStorage.setItem(e,n)}catch(t){}}))}catch(e){t=0}var n;return t}}},324:function(t){var e="f8ad0f9b-",n="ns_install_reported",r=e+n,o=e+"ns_reportedFpInSession";t.exports={webType:"Web",oldInstallEventReportedKeyName:n,installEventReportedKeyName:r,fingerprintReportedInSessionKey:o}},927:function(t){t.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy"}},79:function(t){t.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},302:function(t,e,n){var r=n(427),o=n(104).oneMinute,i=n(79);function a(){r.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function s(t){r.call(this),this.activityServiceId=t}a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.prototype.observe=function(){var t=this;Object.keys(this.activityEvents).forEach((function(e){document.addEventListener(e,t.activityEvents[e]=function(){t.activityHandler()})}))},a.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(i.activityEvent))},a.prototype.stopActivityListeners=function(){var t=this;Object.keys(this.activityEvents).forEach((function(e){document.removeEventListener(e,t.activityEvents[e])}))},s.prototype=Object.create(r.prototype),s.prototype.constructor=s,s.prototype.trackInactivity=function(t){var e,n=new a,r=this,s=!1;function u(){s||(clearTimeout(e),setTimeout((function(){r.trackInactivity(t)}),o))}n.addEventListener(i.activityEvent,u),n.observe(),e=setTimeout((function(){s=!0,n.stopActivityListeners(),n.removeEventListener(i.activityEvent,u),r.dispatchEvent(new Event(i.inactivityEvent))}),t)},t.exports=s},315:function(t,e,n){var r,o=n(259),i=n(179),a=n(911),s=n(104),u=n(996),c=n(927),f=n(324),l=n(977),p=[],d=[],h=null,g=6e4,y=5e3,m=null,v=Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()),w=0,b=null,I=Date.now(),E=0,R=null,S=!1,A=!1,L=!1,C=!1,B=[];function T(){d=p,p=[],x(),k()}function k(){h&&clearTimeout(h),h=setTimeout(T,g)}function O(){var t={device:{id:r,type:f.webType},metadata:{clientRequestId:s.getClientRequestId()}};return m&&m.fingerprintHash&&(t.device.fingerprint=m.fingerprintHash),t}function x(t){if(d.length)if(null!==m){var e=Object.assign(O(),{events:d});i.makeRequest({path:"bulk",data:e,method:i.methods.post},t)}else a.getFingerprint((function(e){m=e,x(t)}))}function _(t,e){return p.push(t),e?new Blob([JSON.stringify(p)]).size:0}function U(){if(L){var t=Date.now();t-I>y&&(_({i:{dr:t-I,ac:t-I-E},metadata:{type:c.I,timestamp:t}},!1),E=0)}}function M(){k(),d=p,p=[],x()}function N(t){U(),function(){if(C&&Math.random()<.25){for(var t=[],e=0;e<3;e++)t.push(String.fromCharCode(Math.floor(26*Math.random())+97));var n=c.DY+t[0],r={metadata:{type:n,timestamp:Date.now()}};r[n]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},r[n][t.join("")]=Math.floor(1e3*Math.random())+1,_(r,!1)}}(),function(t){l.triggerFingerprintEventOnEvent(t)}(t),_(Object.assign({metadata:{type:t.eventType,timestamp:Date.now()}},t.payload),!0)>32768&&M(),t.eventType!==c.C&&t.eventType!==c.S&&t.eventType!==c.KD&&t.eventType!==c.MM||(I=Date.now())}function P(){S&&M()}function V(t){return window.addEventListener(t,P,!0),function(){window.removeEventListener(t,P,!0)}}function D(t,e){return!t||t.indexOf(e)>-1}t.exports={init:function(t){if(!S){var e=t.bulkEvents&&t.bulkEvents.mask;if(!Array.isArray(e)||0!==e.length){var n=t.bulkEvents&&"number"==typeof t.bulkEvents.pct?t.bulkEvents.pct:100;if(!(0===n||Math.random()>n/100)){var a=t.bulkEvents&&t.bulkEvents.appMaskInclude;if(!Array.isArray(a)||-1!==a.indexOf(t.appId)){var s=t.bulkEvents&&t.bulkEvents.appMaskExclude;if(!Array.isArray(s)||-1===s.indexOf(t.appId)){var f=D(e,c.C),l=D(e,c.KD),h=D(e,c.S),g=D(e,c.PC),y=D(e,c.MM),m=D(e,c.PL),I=D(e,c.I),T=D(e,c.DY),M=I||m;r=t.deviceId,k(),f&&B.push(o.setClickListener(N)),l&&B.push(o.setKeyDownListener(N)),h&&B.push(o.setScrollListener(N)),g&&B.push(o.setPageChangeListener(N)),y&&B.push(o.setMouseMoveListener(N)),A=m,L=I,C=T,M&&B.push(function(){function t(){if(document.hidden)b=Date.now(),R=b;else if(null!==b){var t=Date.now();w+=t-b,b=null,E+=t-R}}return document.addEventListener("visibilitychange",t),function(){document.removeEventListener("visibilitychange",t)}}()),B.push(function(){function t(){if(U(),function(){if(A){var t=Date.now(),e=t-v;_({metadata:{type:c.PL,timestamp:t},pl:{dr:e,ac:e-w}},!1)}}(),navigator.sendBeacon&&window.URLSearchParams){if(p.length>0){var t=i.getRequestHeaders(),e=Object.assign(O(),{events:p}),n=new URLSearchParams;n.append("data",JSON.stringify(e)),n.append("headers",JSON.stringify(t));var r=new Blob([n.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(u.serverUrl+"/bulk",r)}}else d=p,x()}return window.addEventListener("beforeunload",t),function(){window.removeEventListener("beforeunload",t)}}()),S=!0,p=[],f||B.push(V("click")),B.push(V("paste"))}}}}}},cleanup:function(){S&&(h&&clearTimeout(h),B.forEach((function(t){t()})),B=[],S=!1)},trigger:P}},409:function(t,e,n){var r=n(450),o=n(911),i=[/Complete order/i],a={manageChecoutEvents:function(t){o.getFingerprint((function(e){var n=e.fingerprintHash,o=e.fingerprintComponents;function a(e){e.addEventListener("mouseover",(function(){var i={checkoutInfo:{domNode:{id:e.id,name:e.nodeName}}};e.className&&(i.checkoutInfo.domNode.className=e.className);var a=e.getAttribute&&e.getAttribute("type");a&&(i.checkoutInfo.domNode.type=a),r.reportEvent({eventType:"checkoutInitiated",deviceId:t,fingerprintHash:n,fingerprintComponents:o,payload:i})}),!0)}function s(t){if(t)for(var e=0;e-1?e.split("?")[0]:e.indexOf("#")>-1?e.split("#")[0]:e;if(n!==o){var u=Date.now()-r;t({eventType:i.PC,payload:{pc:{f:o,t:n,dr:u,ac:u-s}}}),o=n,r=Date.now()}}function c(){if(document.hidden)a=Date.now();else if(null!==a){var t=Date.now();s+=t-a,a=null}}function f(t){u(t.newURL)}function l(){u(window.location.href)}return window.history?(o=window.location.pathname||"/",e=history.pushState,n=history.replaceState,r=Date.now(),window.addEventListener("hashchange",f),window.addEventListener("popstate",l),history.pushState=function(t,n,r){return u(r),e.apply(history,arguments)},history.replaceState=function(t,e,r){return u(r),n.apply(history,arguments)},document.addEventListener("visibilitychange",c),function(){history.pushState=e,history.replaceState=n,window.removeEventListener("hashchange",f),window.removeEventListener("popstate",l),document.removeEventListener("visibilitychange",c),o=null,s=0}):function(){}},setMouseMoveListener:function(t){var e=[],n=!1,r=null,o=0,a={x:0,y:0};function s(){0!==e.length&&(t({eventType:i.MM,payload:{mm:{s:e.slice(),l:n,di:a}}}),e=[])}function u(t){e.length>0&&(a.x+=Math.abs(t.clientX-e[e.length-1][0]),a.y+=Math.abs(t.clientY-e[e.length-1][1])),e.push([t.clientX,t.clientY]),e.length>1e3&&(n=!0,(o+=2)>=1e3&&(o=2),e.splice(o,1)),r&&clearTimeout(r),r=setTimeout(s,200)}return window.addEventListener("mousemove",u,!0),function(){r&&clearTimeout(r),window.removeEventListener("mousemove",u,!0)}}}},450:function(t,e,n){var r=n(179),o=n(104),i=n(287).hp,a=n(324),s=["storeInfo"],u={};function c(t,e){var n=t.eventType,s=t.deviceId,c=t.fingerprintProVisitorId,f=t.fingerprintProRequestId,l=t.fingerprintHash,p=function(t){try{return i.from(JSON.stringify(t)).toString("base64")}catch(t){return}}(t.fingerprintComponents),d=t.payload,h={metadata:{type:n},device:{id:s,fingerprint:l,rawFingerprint:p,type:a.webType}};c&&(h.device.visitorId=c),f&&(h.device.fpRequestId=f);var g=Object.assign({},o.getClientMetadata(o.metadataType.payload),u);for(var y in g)g.hasOwnProperty(y)&&(h.metadata[y]=g[y]);for(var m in d)d.hasOwnProperty(m)&&(h[m]=d[m]);r.makeRequest({path:"events",data:h,method:r.methods.post},e)}function f(t){var e=t.type,n=t.deviceId,r=t.fingerprintProVisitorId,o=t.fingerprintProRequestId,i=t.fingerprintHash,a=t.fingerprintComponents,s=t.callback,u={eventType:e,deviceId:n,fingerprintHash:i,fingerprintComponents:a};r&&(u.fingerprintProVisitorId=r),o&&(u.fingerprintProRequestId=o),c(u,s)}t.exports={addMetadataProps:function(t){for(var e=0;e//loader_v.js",r.defaultScriptUrlPattern],remoteControlDetection:!0}).then((function(t){return t.get()})).then((function(t){"function"==typeof e&&e(t?{fingerprintVisitorId:t.visitorId,fingerprintRequestId:t.requestId}:{})})).catch((function(){"function"==typeof e&&e({})})):e({})}}},911:function(t,e,n){var r=n(568),o=n(721),i=n(450),a="ns_fp_hash";function s(t,e,n,r){i.reportFingerprintEvent(n,t,e,r)}function u(t){r.load().then((function(e){e.get().then((function(e){t(e?{fingerprintHash:e.visitorId,fingerprintComponents:e.components}:{})}))}))}t.exports={manageFingerprint:function(t,e,n){u((function(r){var i=r.fingerprintHash,u=r.fingerprintComponents;o.getItem(a)!==i&&(e&&s(i,u,t),o.setItem(a,i)),"function"==typeof n&&n({fingerprintHash:i,fingerprintComponents:u})}))},getFingerprint:u,reportFingerprintWithProInfo:function(t,e){u((function(n){s(n.fingerprintHash,n.fingerprintComponents,t,e)}))}}},622:function(t,e,n){var r=n(721),o=n(911),i=n(668),a=n(450),s=n(733),u=n(698),c=n(324),f="linkDevices";function l(t,e,n){o.getFingerprint((function(r){var o=r.fingerprintHash,i=r.fingerprintComponents;a.reportEvent({eventType:f,deviceId:t,fingerprintHash:o,fingerprintComponents:i,payload:{linkedDevices:[e,n]}})}))}function p(t,e){if(e)for(var n=0,r=e.length;n1){var i=o[0],a=o[1];i&&a&&i!==a&&l(t,i,a)}}}t.exports={installSdk:function(t,e){var n=t.deviceId,f=t.loadFingerprintJsPro,l=-1===(t.supressInstallBackwardCompatibility||[]).indexOf(t.appId),d=function(t,e){var n=e?r.getBackwardCompatabilityItem(c.installEventReportedKeyName,c.oldInstallEventReportedKeyName):r.getItem(c.installEventReportedKeyName);return n?("true"===n&&(r.setItem(c.installEventReportedKeyName,t),n=t),t===n?{isInstalled:!0,reportedDeviceId:t}:{isInstalled:!1,reportedDeviceId:n}):{isInstalled:!1,reportedDeviceId:null}}(n,l);function h(t,o,i){if(i>3)e&&e(!1);else{var f=o.fingerprintHash,l=o.fingerprintComponents,p=t.fingerprintVisitorId,d=t.fingerprintRequestId;a.reportAppInstallEvent(n,p,d,f,l,(function(a){if(a){var l={msg:"Failed sending appInstall",err:JSON.stringify(a),deviceId:n,fingerprintHash:f,fingerprintRequestId:d,numberOfRetry:i};u.send(l),h(t,o,i+1)}else r.setItem(c.installEventReportedKeyName,n),r.setItem("ns_irts",Date.now()),s.manageKeepAlive({deviceId:n,fingerprintInfo:o,setStartTimestamp:!0}),e&&e(!0)}))}}d.isInstalled?e&&e(!1):(d.reportedDeviceId&&d.reportedDeviceId!==n&&p(n,[[n,d.reportedDeviceId]]),i.getFingerprint(f,(function(t){o.manageFingerprint(n,!1,(function(e){h(t,e,1)}))})))},reportLinkDevices:p}},733:function(t,e,n){var r=n(721),o=n(321),i=n(450),a=n(911),s="ns_ka_ts",u="ns_ka_step_",c=[10,30,40,60];function f(t){return u+t}function l(){var t=parseInt(r.getItem(s),10);return o.isValidDate(new Date(t))?t:null}function p(t,e){var n=function(){var t=l();if(!t)return null;for(var e,n=Math.floor(((new Date).getTime()-t)/1e3),o=0;o=i&&(!a||n0&&setTimeout((function(){p(t,e)}),1e3*n.timeToWaitInSeconds))}var d={manageKeepAlive:function(t){var e=t.deviceId,n=t.fingerprintInfo;t.setStartTimestamp&&!l()&&r.setItem(s,(new Date).getTime()),n?p(e,n):a.getFingerprint((function(t){p(e,t)}))}};t.exports=d},805:function(t){t.exports={trackDevice:function(t){if(!t){(window.__mmapiws=window.__mmapiws||{}).accountId="94059";var e=document.createElement("script");e.async=!0,e.src="proxy.php?url=https://device.maxmind.com/js/device.js",document.body.appendChild(e)}}}},834:function(t,e,n){var r=n(450),o=n(911),i=n(104);function a(t){return t?t.value||t.innerText:null}function s(t){var e=i.transformDomNodeContent(t),n=t||"";return e.onlyDigits=/^[0-9]+$/.test(n),e.containsWhitespace=/\s/.test(n),e.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(n),e}var u={managePasteEvents:function(t){document.addEventListener("paste",(function(e){var n=a(e.target);setTimeout((function(){!function(t){var e=t.deviceId,n=t.contentBeforePaste,i=t.domNode,u={paste:{domNode:{}}};if(i.nodeName){u.paste.domNode.name=i.nodeName,i.className&&(u.paste.domNode.className=i.className),i.id&&(u.paste.domNode.id=i.id);var c=i.getAttribute&&i.getAttribute("type");c&&(u.paste.domNode.type=c),u.paste.domNode.content={};var f=a(i);u.paste.domNode.content.beforePaste=s(n),u.paste.domNode.content.afterPaste=s(f),i.placeholder&&(u.paste.domNode.placeholder=i.placeholder),u.paste.url=window.location.href}o.getFingerprint((function(t){var n=t.fingerprintHash;r.reportEvent({eventType:"paste",deviceId:e,fingerprintHash:n,payload:u})}))}({deviceId:t,contentBeforePaste:n,domNode:e.target})}),0)}))}};t.exports=u},247:function(t,e,n){var r=n(127),o=n(427),i=n(321),a=n(104),s=n(179),u=n(721),c=n(79).inactivityEvent,f=n(302),l=n(450),p=n(911),d="ns_sid";function h(){o.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function g(t){var e=t.deviceId,n=t.initModuleConfig,o=t.jwtSessionId,i=t.callback,a=1e4;try{a=r(o).inactivityTimeout}catch(t){a=1e4}var s=new f((new Date).getTime());s.addEventListener(c,(function t(){s.removeEventListener(c,t),y({deviceId:e,initModuleConfig:n,forceRenewSessionDueToInactivity:!0,callback:i})})),s.trackInactivity(a)}function y(t){var e,n=t.deviceId,o=t.initModuleConfig,a=!!t.forceRenewSessionDueToInactivity,c=t.callback,f=u.getItem(d);try{e=r(f),s.setSessionId(f)}catch(t){e=null}a||!e||1e3*((e||{}).exp||0)<(new Date).getTime()?function(t,e){var n=t.deviceId,r=(t.initModuleConfig||{}).storeInfo,o=new h;o.addEventListener(o.eventTypes.fetchComplete,(function t(n){o.removeEventListener(o.eventTypes.fetchComplete,t),e(n.detail)})),o.fetchSessionId(n,r)}({deviceId:n,initModuleConfig:o},(function(t){f=t,u.setItem(d,f),s.setSessionId(f),function(t){try{var e=t.deviceId,n=r(t.jwtSessionId).ets;if(!n)return;p.getFingerprint((function(t){var r=t.fingerprintHash,o=t.fingerprintComponents;l.reportEvent({eventType:"ping",deviceId:e,fingerprintHash:r,fingerprintComponents:o,payload:{ping:{ets:n}}})}))}catch(t){}}({deviceId:n,jwtSessionId:f}),g({deviceId:n,initModuleConfig:o,jwtSessionId:f,callback:c}),i.isFunction(c)&&c(f)})):(g({deviceId:n,initModuleConfig:o,jwtSessionId:f,callback:c}),i.isFunction(c)&&c(f))}h.prototype=Object.create(o.prototype),h.prototype.constructor=h,h.prototype.fetchSessionId=function(t,e){var n=this,r="session?"+a.getClientMetadata(a.metadataType.queryString)+"&deviceId="+t;e&&(e.id&&(r+="&storeId="+e.id),e.type&&(r+="&storeType="+e.type)),function t(){var e;e=function(e,r){!e&&r&&r.ok?n.dispatchEvent(new CustomEvent(n.eventTypes.fetchComplete,{detail:r.response})):setTimeout(t,i.randomInt(4e4,6e4))},s.makeRequest({path:r,method:s.methods.get},e)}()},t.exports={manageSessionId:y,setRetrySessionTimeout:function(t){throw new Error("Cannot call setRetrySessionTimeout!")}}},977:function(t,e,n){var r=n(104),o=n(911),i=n(668),a=n(721),s=n(324).fingerprintReportedInSessionKey,u={},c=null,f=!1,l=!1;function p(){l&&(a.getSessionItem(s)||(i.getFingerprint(f,(function(t){o.reportFingerprintWithProInfo(c,t.fingerprintRequestId)})),a.setSessionItem(s,!0)))}t.exports={init:function(t){if(t.eventTrigger&&t.loadFingerprintJsPro){try{var e=atob(t.eventTrigger),n=JSON.parse(e);if(!n)return;if(!(u=n[t.appId]))return}catch(t){return}c=t.deviceId,f=t.loadFingerprintJsPro,l=!0,function(){if(l&&u.init&&Array.isArray(u.init)){for(var t=!1,e=0;e10&&(e=r.slice(0,6),n=r.slice(o-4)),{length:o,prefix:e,suffix:n}},isSubObject:a}},635:function(t,e,n){"use strict";n.d(e,{Cl:function(){return r},Tt:function(){return o},YH:function(){return a},fX:function(){return s},sH:function(){return i}});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]o.from&&e<=o.to)return o}return null}(f,c)||{};if(l)for(n in l)l.hasOwnProperty(n)&&(u[n]=l[n]);var p=s.default||{};for(n in p)p.hasOwnProperty(n)&&!u.hasOwnProperty(n)&&(u[n]=p[n])}else u=s.default||{};var d={};for(n in r)r.hasOwnProperty(n)&&"configurations"!==n&&(d[n]=r[n]);for(n in u)u.hasOwnProperty(n)&&-1===["groups","from","to"].indexOf(n)&&(d[n]=u[n]);return d}(t.appId,r.response)):i.isFunction(e)&&e(n.errorDescription)}))}t.exports={getCoreModuleLoadingInfo:function(t,e){var n=0;t&&t.url?s(t,(function r(o,a){o?(n+=1)<=3?s(t,r):i.isFunction(e)&&e(o):i.isFunction(e)&&e(null,a)})):i.isFunction(e)&&e("config url is not configured")}}},115:function(t,e,n){var r,o=n(550),i=n(528),a=n(13),s=n(884),u=n(616),c="ns_dev_id",f=[];function l(){var t=i.getItem(c);r||(r=t||u.toArray(o(),i.hasAccessToLocalStorage()),i.setItem(c,r))}t.exports={init:function(){a.init((function(){a.getKey(c,(function(t){t?(r=t,i.setItem(c,r),a.cleanup()):(l(),a.setKey(c,r),setTimeout(a.cleanup,2e3));for(var e=0,n=f.length;ee.onPercentage||o.loadScript(e.url,(function(t){t?c({reason:"fail-to-load-core-module"},e):f(n,e)})):c({reason:"malformed-config-file"})}s.init(r,{appId:i});var d=o.getConfigBaseUrls(n,r),h=d.mainConfigBaseUrl,g=d.altConfigBaseUrl;a.getCoreModuleLoadingInfo({appId:i,url:h},(function(t,e){if(t){if(l(h,t),!g)return;a.getCoreModuleLoadingInfo({appId:i,url:g},p)}else p(null,e)}))},getDeviceId:u.getDeviceId};window.nSureSDK=l}();