@coinflowlabs/vue 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/coinflow-vue.js +1 -1
- package/dist/coinflow-vue.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/coinflow-vue.js
CHANGED
|
@@ -24256,7 +24256,7 @@ class xr {
|
|
|
24256
24256
|
return G && zt.searchParams.append("merchantCss", G), Q && zt.searchParams.append("color", Q), et && zt.searchParams.append("rent", et.lamports.toString()), dt && zt.searchParams.append("redemptionCheck", "true"), kt && zt.searchParams.append(
|
|
24257
24257
|
"nativeSolToConvert",
|
|
24258
24258
|
kt.lamports.toString()
|
|
24259
|
-
), ut && zt.searchParams.append("lockDefaultToken", "true"), ot && zt.searchParams.append("planCode", ot), bt && zt.searchParams.append("disableApplePay", "true"), Et && zt.searchParams.append("disableGooglePay", "true"), gt && zt.searchParams.append("settlementType", gt), wt && zt.searchParams.append("lockAmount", "true"), h === !1 && zt.searchParams.append("usePermit", "false"), T && zt.searchParams.append("transactionSigner", T), D === !0 && zt.searchParams.append("authOnly", "true"), Dt === !0 && zt.searchParams.append("
|
|
24259
|
+
), ut && zt.searchParams.append("lockDefaultToken", "true"), ot && zt.searchParams.append("planCode", ot), bt && zt.searchParams.append("disableApplePay", "true"), Et && zt.searchParams.append("disableGooglePay", "true"), gt && zt.searchParams.append("settlementType", gt), wt && zt.searchParams.append("lockAmount", "true"), h === !1 && zt.searchParams.append("usePermit", "false"), T && zt.searchParams.append("transactionSigner", T), D === !0 && zt.searchParams.append("authOnly", "true"), Dt === !0 && zt.searchParams.append("isZeroAuthorization", "true"), $ === !0 && zt.searchParams.append("partialUsdcChecked", "true"), j && zt.searchParams.append("jwtToken", j), X && zt.searchParams.append(
|
|
24260
24260
|
"origins",
|
|
24261
24261
|
rr.compressToEncodedURIComponent(JSON.stringify(X))
|
|
24262
24262
|
), R && zt.searchParams.append(
|
|
@@ -20,4 +20,4 @@ Message: ${n}.
|
|
|
20
20
|
userAgent: `).concat(navigator.userAgent,`
|
|
21
21
|
timeBetweenLoadAndGet: `).concat(Lt-W,`
|
|
22
22
|
visitorId: `).concat(Mt.visitorId,`
|
|
23
|
-
components: `).concat(vt(Ct),"\n```")),[2,Mt]}})})}}}function U(A){var V=A===void 0?{}:A,W=V.delayFallback,it=V.debug,Lt=V.monitoring,Ct=Lt===void 0||Lt;return(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(Mt){switch(Mt.label){case 0:return Ct&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var Pt=new XMLHttpRequest;Pt.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),Pt.send()}catch(rt){console.error(rt)}}(),[4,Gt(W)];case 1:return Mt.sent(),[2,ee(Rt(lt,{debug:it},[]),it)]}})})}var R={load:U,hashComponents:xt,componentsToDebugString:vt},k=F},526:function(r,t){t.byteLength=function(v){var S=d(v),O=S[0],C=S[1];return 3*(O+C)/4-C},t.toByteArray=function(v){var S,O,C=d(v),N=C[0],B=C[1],M=new o(function(Q,et,ct){return 3*(et+ct)/4-ct}(0,N,B)),F=0,G=B>0?N-4:N;for(O=0;O<G;O+=4)S=n[v.charCodeAt(O)]<<18|n[v.charCodeAt(O+1)]<<12|n[v.charCodeAt(O+2)]<<6|n[v.charCodeAt(O+3)],M[F++]=S>>16&255,M[F++]=S>>8&255,M[F++]=255&S;return B===2&&(S=n[v.charCodeAt(O)]<<2|n[v.charCodeAt(O+1)]>>4,M[F++]=255&S),B===1&&(S=n[v.charCodeAt(O)]<<10|n[v.charCodeAt(O+1)]<<4|n[v.charCodeAt(O+2)]>>2,M[F++]=S>>8&255,M[F++]=255&S),M},t.fromByteArray=function(v){for(var S,O=v.length,C=O%3,N=[],B=16383,M=0,F=O-C;M<F;M+=B)N.push(l(v,M,M+B>F?F:M+B));return C===1?(S=v[O-1],N.push(e[S>>2]+e[S<<4&63]+"==")):C===2&&(S=(v[O-2]<<8)+v[O-1],N.push(e[S>>10]+e[S>>4&63]+e[S<<2&63]+"=")),N.join("")};for(var e=[],n=[],o=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)e[u]=i[u],n[i.charCodeAt(u)]=u;function d(v){var S=v.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=v.indexOf("=");return O===-1&&(O=S),[O,O===S?0:4-O%4]}function l(v,S,O){for(var C,N,B=[],M=S;M<O;M+=3)C=(v[M]<<16&16711680)+(v[M+1]<<8&65280)+(255&v[M+2]),B.push(e[(N=C)>>18&63]+e[N>>12&63]+e[N>>6&63]+e[63&N]);return B.join("")}n[45]=62,n[95]=63},287:function(r,t,e){const n=e(526),o=e(251),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const u=2147483647;function d(y){if(y>u)throw new RangeError('The value "'+y+'" is invalid for option "size"');const P=new Uint8Array(y);return Object.setPrototypeOf(P,l.prototype),P}function l(y,P,H){if(typeof y=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(y)}return v(y,P,H)}function v(y,P,H){if(typeof y=="string")return function(vt,xt){if(typeof xt=="string"&&xt!==""||(xt="utf8"),!l.isEncoding(xt))throw new TypeError("Unknown encoding: "+xt);const Gt=0|M(vt,xt);let ee=d(Gt);const U=ee.write(vt,xt);return U!==Gt&&(ee=ee.slice(0,U)),ee}(y,P);if(ArrayBuffer.isView(y))return function(vt){if(_e(vt,Uint8Array)){const xt=new Uint8Array(vt);return N(xt.buffer,xt.byteOffset,xt.byteLength)}return C(vt)}(y);if(y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(_e(y,ArrayBuffer)||y&&_e(y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(_e(y,SharedArrayBuffer)||y&&_e(y.buffer,SharedArrayBuffer)))return N(y,P,H);if(typeof y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const lt=y.valueOf&&y.valueOf();if(lt!=null&<!==y)return l.from(lt,P,H);const mt=function(vt){if(l.isBuffer(vt)){const xt=0|B(vt.length),Gt=d(xt);return Gt.length===0||vt.copy(Gt,0,0,xt),Gt}return vt.length!==void 0?typeof vt.length!="number"||we(vt.length)?d(0):C(vt):vt.type==="Buffer"&&Array.isArray(vt.data)?C(vt.data):void 0}(y);if(mt)return mt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof y[Symbol.toPrimitive]=="function")return l.from(y[Symbol.toPrimitive]("string"),P,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}function S(y){if(typeof y!="number")throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function O(y){return S(y),d(y<0?0:0|B(y))}function C(y){const P=y.length<0?0:0|B(y.length),H=d(P);for(let lt=0;lt<P;lt+=1)H[lt]=255&y[lt];return H}function N(y,P,H){if(P<0||y.byteLength<P)throw new RangeError('"offset" is outside of buffer bounds');if(y.byteLength<P+(H||0))throw new RangeError('"length" is outside of buffer bounds');let lt;return lt=P===void 0&&H===void 0?new Uint8Array(y):H===void 0?new Uint8Array(y,P):new Uint8Array(y,P,H),Object.setPrototypeOf(lt,l.prototype),lt}function B(y){if(y>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|y}function M(y,P){if(l.isBuffer(y))return y.length;if(ArrayBuffer.isView(y)||_e(y,ArrayBuffer))return y.byteLength;if(typeof y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);const H=y.length,lt=arguments.length>2&&arguments[2]===!0;if(!lt&&H===0)return 0;let mt=!1;for(;;)switch(P){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return zt(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*H;case"hex":return H>>>1;case"base64":return fe(y).length;default:if(mt)return lt?-1:zt(y).length;P=(""+P).toLowerCase(),mt=!0}}function F(y,P,H){let lt=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0)<=(P>>>=0))return"";for(y||(y="utf8");;)switch(y){case"hex":return h(this,P,H);case"utf8":case"utf-8":return gt(this,P,H);case"ascii":return kt(this,P,H);case"latin1":case"binary":return q(this,P,H);case"base64":return At(this,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,P,H);default:if(lt)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),lt=!0}}function G(y,P,H){const lt=y[P];y[P]=y[H],y[H]=lt}function Q(y,P,H,lt,mt){if(y.length===0)return-1;if(typeof H=="string"?(lt=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),we(H=+H)&&(H=mt?0:y.length-1),H<0&&(H=y.length+H),H>=y.length){if(mt)return-1;H=y.length-1}else if(H<0){if(!mt)return-1;H=0}if(typeof P=="string"&&(P=l.from(P,lt)),l.isBuffer(P))return P.length===0?-1:et(y,P,H,lt,mt);if(typeof P=="number")return P&=255,typeof Uint8Array.prototype.indexOf=="function"?mt?Uint8Array.prototype.indexOf.call(y,P,H):Uint8Array.prototype.lastIndexOf.call(y,P,H):et(y,[P],H,lt,mt);throw new TypeError("val must be string, number or Buffer")}function et(y,P,H,lt,mt){let vt,xt=1,Gt=y.length,ee=P.length;if(lt!==void 0&&((lt=String(lt).toLowerCase())==="ucs2"||lt==="ucs-2"||lt==="utf16le"||lt==="utf-16le")){if(y.length<2||P.length<2)return-1;xt=2,Gt/=2,ee/=2,H/=2}function U(R,k){return xt===1?R[k]:R.readUInt16BE(k*xt)}if(mt){let R=-1;for(vt=H;vt<Gt;vt++)if(U(y,vt)===U(P,R===-1?0:vt-R)){if(R===-1&&(R=vt),vt-R+1===ee)return R*xt}else R!==-1&&(vt-=vt-R),R=-1}else for(H+ee>Gt&&(H=Gt-ee),vt=H;vt>=0;vt--){let R=!0;for(let k=0;k<ee;k++)if(U(y,vt+k)!==U(P,k)){R=!1;break}if(R)return vt}return-1}function ct(y,P,H,lt){H=Number(H)||0;const mt=y.length-H;lt?(lt=Number(lt))>mt&&(lt=mt):lt=mt;const vt=P.length;let xt;for(lt>vt/2&&(lt=vt/2),xt=0;xt<lt;++xt){const Gt=parseInt(P.substr(2*xt,2),16);if(we(Gt))return xt;y[H+xt]=Gt}return xt}function ft(y,P,H,lt){return le(zt(P,y.length-H),y,H,lt)}function ot(y,P,H,lt){return le(function(mt){const vt=[];for(let xt=0;xt<mt.length;++xt)vt.push(255&mt.charCodeAt(xt));return vt}(P),y,H,lt)}function bt(y,P,H,lt){return le(fe(P),y,H,lt)}function Rt(y,P,H,lt){return le(function(mt,vt){let xt,Gt,ee;const U=[];for(let R=0;R<mt.length&&!((vt-=2)<0);++R)xt=mt.charCodeAt(R),Gt=xt>>8,ee=xt%256,U.push(ee),U.push(Gt);return U}(P,y.length-H),y,H,lt)}function At(y,P,H){return P===0&&H===y.length?n.fromByteArray(y):n.fromByteArray(y.slice(P,H))}function gt(y,P,H){H=Math.min(y.length,H);const lt=[];let mt=P;for(;mt<H;){const vt=y[mt];let xt=null,Gt=vt>239?4:vt>223?3:vt>191?2:1;if(mt+Gt<=H){let ee,U,R,k;switch(Gt){case 1:vt<128&&(xt=vt);break;case 2:ee=y[mt+1],(192&ee)==128&&(k=(31&vt)<<6|63&ee,k>127&&(xt=k));break;case 3:ee=y[mt+1],U=y[mt+2],(192&ee)==128&&(192&U)==128&&(k=(15&vt)<<12|(63&ee)<<6|63&U,k>2047&&(k<55296||k>57343)&&(xt=k));break;case 4:ee=y[mt+1],U=y[mt+2],R=y[mt+3],(192&ee)==128&&(192&U)==128&&(192&R)==128&&(k=(15&vt)<<18|(63&ee)<<12|(63&U)<<6|63&R,k>65535&&k<1114112&&(xt=k))}}xt===null?(xt=65533,Gt=1):xt>65535&&(xt-=65536,lt.push(xt>>>10&1023|55296),xt=56320|1023&xt),lt.push(xt),mt+=Gt}return function(vt){const xt=vt.length;if(xt<=wt)return String.fromCharCode.apply(String,vt);let Gt="",ee=0;for(;ee<xt;)Gt+=String.fromCharCode.apply(String,vt.slice(ee,ee+=wt));return Gt}(lt)}l.TYPED_ARRAY_SUPPORT=function(){try{const y=new Uint8Array(1),P={foo:function(){return 42}};return Object.setPrototypeOf(P,Uint8Array.prototype),Object.setPrototypeOf(y,P),y.foo()===42}catch{return!1}}(),l.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||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(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(y,P,H){return v(y,P,H)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(y,P,H){return function(lt,mt,vt){return S(lt),lt<=0?d(lt):mt!==void 0?typeof vt=="string"?d(lt).fill(mt,vt):d(lt).fill(mt):d(lt)}(y,P,H)},l.allocUnsafe=function(y){return O(y)},l.allocUnsafeSlow=function(y){return O(y)},l.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==l.prototype},l.compare=function(y,P){if(_e(y,Uint8Array)&&(y=l.from(y,y.offset,y.byteLength)),_e(P,Uint8Array)&&(P=l.from(P,P.offset,P.byteLength)),!l.isBuffer(y)||!l.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===P)return 0;let H=y.length,lt=P.length;for(let mt=0,vt=Math.min(H,lt);mt<vt;++mt)if(y[mt]!==P[mt]){H=y[mt],lt=P[mt];break}return H<lt?-1:lt<H?1:0},l.isEncoding=function(y){switch(String(y).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}},l.concat=function(y,P){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return l.alloc(0);let H;if(P===void 0)for(P=0,H=0;H<y.length;++H)P+=y[H].length;const lt=l.allocUnsafe(P);let mt=0;for(H=0;H<y.length;++H){let vt=y[H];if(_e(vt,Uint8Array))mt+vt.length>lt.length?(l.isBuffer(vt)||(vt=l.from(vt)),vt.copy(lt,mt)):Uint8Array.prototype.set.call(lt,vt,mt);else{if(!l.isBuffer(vt))throw new TypeError('"list" argument must be an Array of Buffers');vt.copy(lt,mt)}mt+=vt.length}return lt},l.byteLength=M,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const y=this.length;if(y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let P=0;P<y;P+=2)G(this,P,P+1);return this},l.prototype.swap32=function(){const y=this.length;if(y%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let P=0;P<y;P+=4)G(this,P,P+3),G(this,P+1,P+2);return this},l.prototype.swap64=function(){const y=this.length;if(y%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let P=0;P<y;P+=8)G(this,P,P+7),G(this,P+1,P+6),G(this,P+2,P+5),G(this,P+3,P+4);return this},l.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?gt(this,0,y):F.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(y){if(!l.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y||l.compare(this,y)===0},l.prototype.inspect=function(){let y="";const P=t.IS;return y=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(y+=" ... "),"<Buffer "+y+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(y,P,H,lt,mt){if(_e(y,Uint8Array)&&(y=l.from(y,y.offset,y.byteLength)),!l.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(P===void 0&&(P=0),H===void 0&&(H=y?y.length:0),lt===void 0&&(lt=0),mt===void 0&&(mt=this.length),P<0||H>y.length||lt<0||mt>this.length)throw new RangeError("out of range index");if(lt>=mt&&P>=H)return 0;if(lt>=mt)return-1;if(P>=H)return 1;if(this===y)return 0;let vt=(mt>>>=0)-(lt>>>=0),xt=(H>>>=0)-(P>>>=0);const Gt=Math.min(vt,xt),ee=this.slice(lt,mt),U=y.slice(P,H);for(let R=0;R<Gt;++R)if(ee[R]!==U[R]){vt=ee[R],xt=U[R];break}return vt<xt?-1:xt<vt?1:0},l.prototype.includes=function(y,P,H){return this.indexOf(y,P,H)!==-1},l.prototype.indexOf=function(y,P,H){return Q(this,y,P,H,!0)},l.prototype.lastIndexOf=function(y,P,H){return Q(this,y,P,H,!1)},l.prototype.write=function(y,P,H,lt){if(P===void 0)lt="utf8",H=this.length,P=0;else if(H===void 0&&typeof P=="string")lt=P,H=this.length,P=0;else{if(!isFinite(P))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");P>>>=0,isFinite(H)?(H>>>=0,lt===void 0&&(lt="utf8")):(lt=H,H=void 0)}const mt=this.length-P;if((H===void 0||H>mt)&&(H=mt),y.length>0&&(H<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");lt||(lt="utf8");let vt=!1;for(;;)switch(lt){case"hex":return ct(this,y,P,H);case"utf8":case"utf-8":return ft(this,y,P,H);case"ascii":case"latin1":case"binary":return ot(this,y,P,H);case"base64":return bt(this,y,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rt(this,y,P,H);default:if(vt)throw new TypeError("Unknown encoding: "+lt);lt=(""+lt).toLowerCase(),vt=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const wt=4096;function kt(y,P,H){let lt="";H=Math.min(y.length,H);for(let mt=P;mt<H;++mt)lt+=String.fromCharCode(127&y[mt]);return lt}function q(y,P,H){let lt="";H=Math.min(y.length,H);for(let mt=P;mt<H;++mt)lt+=String.fromCharCode(y[mt]);return lt}function h(y,P,H){const lt=y.length;(!P||P<0)&&(P=0),(!H||H<0||H>lt)&&(H=lt);let mt="";for(let vt=P;vt<H;++vt)mt+=Ee[y[vt]];return mt}function T(y,P,H){const lt=y.slice(P,H);let mt="";for(let vt=0;vt<lt.length-1;vt+=2)mt+=String.fromCharCode(lt[vt]+256*lt[vt+1]);return mt}function D(y,P,H){if(y%1!=0||y<0)throw new RangeError("offset is not uint");if(y+P>H)throw new RangeError("Trying to access beyond buffer length")}function Z(y,P,H,lt,mt,vt){if(!l.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>mt||P<vt)throw new RangeError('"value" argument is out of bounds');if(H+lt>y.length)throw new RangeError("Index out of range")}function j(y,P,H,lt,mt){dt(P,lt,mt,y,H,7);let vt=Number(P&BigInt(4294967295));y[H++]=vt,vt>>=8,y[H++]=vt,vt>>=8,y[H++]=vt,vt>>=8,y[H++]=vt;let xt=Number(P>>BigInt(32)&BigInt(4294967295));return y[H++]=xt,xt>>=8,y[H++]=xt,xt>>=8,y[H++]=xt,xt>>=8,y[H++]=xt,H}function X(y,P,H,lt,mt){dt(P,lt,mt,y,H,7);let vt=Number(P&BigInt(4294967295));y[H+7]=vt,vt>>=8,y[H+6]=vt,vt>>=8,y[H+5]=vt,vt>>=8,y[H+4]=vt;let xt=Number(P>>BigInt(32)&BigInt(4294967295));return y[H+3]=xt,xt>>=8,y[H+2]=xt,xt>>=8,y[H+1]=xt,xt>>=8,y[H]=xt,H+8}function at(y,P,H,lt,mt,vt){if(H+lt>y.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function K(y,P,H,lt,mt){return P=+P,H>>>=0,mt||at(y,0,H,4),o.write(y,P,H,lt,23,4),H+4}function p(y,P,H,lt,mt){return P=+P,H>>>=0,mt||at(y,0,H,8),o.write(y,P,H,lt,52,8),H+8}l.prototype.slice=function(y,P){const H=this.length;(y=~~y)<0?(y+=H)<0&&(y=0):y>H&&(y=H),(P=P===void 0?H:~~P)<0?(P+=H)<0&&(P=0):P>H&&(P=H),P<y&&(P=y);const lt=this.subarray(y,P);return Object.setPrototypeOf(lt,l.prototype),lt},l.prototype.readUintLE=l.prototype.readUIntLE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y],mt=1,vt=0;for(;++vt<P&&(mt*=256);)lt+=this[y+vt]*mt;return lt},l.prototype.readUintBE=l.prototype.readUIntBE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y+--P],mt=1;for(;P>0&&(mt*=256);)lt+=this[y+--P]*mt;return lt},l.prototype.readUint8=l.prototype.readUInt8=function(y,P){return y>>>=0,P||D(y,1,this.length),this[y]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(y,P){return y>>>=0,P||D(y,2,this.length),this[y]|this[y+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(y,P){return y>>>=0,P||D(y,2,this.length),this[y]<<8|this[y+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(y,P){return y>>>=0,P||D(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+16777216*this[y+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(y,P){return y>>>=0,P||D(y,4,this.length),16777216*this[y]+(this[y+1]<<16|this[y+2]<<8|this[y+3])},l.prototype.readBigUInt64LE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=P+256*this[++y]+65536*this[++y]+this[++y]*2**24,mt=this[++y]+256*this[++y]+65536*this[++y]+H*2**24;return BigInt(lt)+(BigInt(mt)<<BigInt(32))}),l.prototype.readBigUInt64BE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=P*2**24+65536*this[++y]+256*this[++y]+this[++y],mt=this[++y]*2**24+65536*this[++y]+256*this[++y]+H;return(BigInt(lt)<<BigInt(32))+BigInt(mt)}),l.prototype.readIntLE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y],mt=1,vt=0;for(;++vt<P&&(mt*=256);)lt+=this[y+vt]*mt;return mt*=128,lt>=mt&&(lt-=Math.pow(2,8*P)),lt},l.prototype.readIntBE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=P,mt=1,vt=this[y+--lt];for(;lt>0&&(mt*=256);)vt+=this[y+--lt]*mt;return mt*=128,vt>=mt&&(vt-=Math.pow(2,8*P)),vt},l.prototype.readInt8=function(y,P){return y>>>=0,P||D(y,1,this.length),128&this[y]?-1*(255-this[y]+1):this[y]},l.prototype.readInt16LE=function(y,P){y>>>=0,P||D(y,2,this.length);const H=this[y]|this[y+1]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt16BE=function(y,P){y>>>=0,P||D(y,2,this.length);const H=this[y+1]|this[y]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt32LE=function(y,P){return y>>>=0,P||D(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},l.prototype.readInt32BE=function(y,P){return y>>>=0,P||D(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},l.prototype.readBigInt64LE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=this[y+4]+256*this[y+5]+65536*this[y+6]+(H<<24);return(BigInt(lt)<<BigInt(32))+BigInt(P+256*this[++y]+65536*this[++y]+this[++y]*2**24)}),l.prototype.readBigInt64BE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=(P<<24)+65536*this[++y]+256*this[++y]+this[++y];return(BigInt(lt)<<BigInt(32))+BigInt(this[++y]*2**24+65536*this[++y]+256*this[++y]+H)}),l.prototype.readFloatLE=function(y,P){return y>>>=0,P||D(y,4,this.length),o.read(this,y,!0,23,4)},l.prototype.readFloatBE=function(y,P){return y>>>=0,P||D(y,4,this.length),o.read(this,y,!1,23,4)},l.prototype.readDoubleLE=function(y,P){return y>>>=0,P||D(y,8,this.length),o.read(this,y,!0,52,8)},l.prototype.readDoubleBE=function(y,P){return y>>>=0,P||D(y,8,this.length),o.read(this,y,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(y,P,H,lt){y=+y,P>>>=0,H>>>=0,lt||Z(this,y,P,H,Math.pow(2,8*H)-1,0);let mt=1,vt=0;for(this[P]=255&y;++vt<H&&(mt*=256);)this[P+vt]=y/mt&255;return P+H},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(y,P,H,lt){y=+y,P>>>=0,H>>>=0,lt||Z(this,y,P,H,Math.pow(2,8*H)-1,0);let mt=H-1,vt=1;for(this[P+mt]=255&y;--mt>=0&&(vt*=256);)this[P+mt]=y/vt&255;return P+H},l.prototype.writeUint8=l.prototype.writeUInt8=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,1,255,0),this[P]=255&y,P+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,65535,0),this[P]=255&y,this[P+1]=y>>>8,P+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,65535,0),this[P]=y>>>8,this[P+1]=255&y,P+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,4294967295,0),this[P+3]=y>>>24,this[P+2]=y>>>16,this[P+1]=y>>>8,this[P]=255&y,P+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,4294967295,0),this[P]=y>>>24,this[P+1]=y>>>16,this[P+2]=y>>>8,this[P+3]=255&y,P+4},l.prototype.writeBigUInt64LE=je(function(y,P=0){return j(this,y,P,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=je(function(y,P=0){return X(this,y,P,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(y,P,H,lt){if(y=+y,P>>>=0,!lt){const Gt=Math.pow(2,8*H-1);Z(this,y,P,H,Gt-1,-Gt)}let mt=0,vt=1,xt=0;for(this[P]=255&y;++mt<H&&(vt*=256);)y<0&&xt===0&&this[P+mt-1]!==0&&(xt=1),this[P+mt]=(y/vt|0)-xt&255;return P+H},l.prototype.writeIntBE=function(y,P,H,lt){if(y=+y,P>>>=0,!lt){const Gt=Math.pow(2,8*H-1);Z(this,y,P,H,Gt-1,-Gt)}let mt=H-1,vt=1,xt=0;for(this[P+mt]=255&y;--mt>=0&&(vt*=256);)y<0&&xt===0&&this[P+mt+1]!==0&&(xt=1),this[P+mt]=(y/vt|0)-xt&255;return P+H},l.prototype.writeInt8=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,1,127,-128),y<0&&(y=255+y+1),this[P]=255&y,P+1},l.prototype.writeInt16LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,32767,-32768),this[P]=255&y,this[P+1]=y>>>8,P+2},l.prototype.writeInt16BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,32767,-32768),this[P]=y>>>8,this[P+1]=255&y,P+2},l.prototype.writeInt32LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,2147483647,-2147483648),this[P]=255&y,this[P+1]=y>>>8,this[P+2]=y>>>16,this[P+3]=y>>>24,P+4},l.prototype.writeInt32BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[P]=y>>>24,this[P+1]=y>>>16,this[P+2]=y>>>8,this[P+3]=255&y,P+4},l.prototype.writeBigInt64LE=je(function(y,P=0){return j(this,y,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=je(function(y,P=0){return X(this,y,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(y,P,H){return K(this,y,P,!0,H)},l.prototype.writeFloatBE=function(y,P,H){return K(this,y,P,!1,H)},l.prototype.writeDoubleLE=function(y,P,H){return p(this,y,P,!0,H)},l.prototype.writeDoubleBE=function(y,P,H){return p(this,y,P,!1,H)},l.prototype.copy=function(y,P,H,lt){if(!l.isBuffer(y))throw new TypeError("argument should be a Buffer");if(H||(H=0),lt||lt===0||(lt=this.length),P>=y.length&&(P=y.length),P||(P=0),lt>0&<<H&&(lt=H),lt===H||y.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(lt<0)throw new RangeError("sourceEnd out of bounds");lt>this.length&&(lt=this.length),y.length-P<lt-H&&(lt=y.length-P+H);const mt=lt-H;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(P,H,lt):Uint8Array.prototype.set.call(y,this.subarray(H,lt),P),mt},l.prototype.fill=function(y,P,H,lt){if(typeof y=="string"){if(typeof P=="string"?(lt=P,P=0,H=this.length):typeof H=="string"&&(lt=H,H=this.length),lt!==void 0&&typeof lt!="string")throw new TypeError("encoding must be a string");if(typeof lt=="string"&&!l.isEncoding(lt))throw new TypeError("Unknown encoding: "+lt);if(y.length===1){const vt=y.charCodeAt(0);(lt==="utf8"&&vt<128||lt==="latin1")&&(y=vt)}}else typeof y=="number"?y&=255:typeof y=="boolean"&&(y=Number(y));if(P<0||this.length<P||this.length<H)throw new RangeError("Out of range index");if(H<=P)return this;let mt;if(P>>>=0,H=H===void 0?this.length:H>>>0,y||(y=0),typeof y=="number")for(mt=P;mt<H;++mt)this[mt]=y;else{const vt=l.isBuffer(y)?y:l.from(y,lt),xt=vt.length;if(xt===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(mt=0;mt<H-P;++mt)this[mt+P]=vt[mt%xt]}return this};const E={};function z(y,P,H){E[y]=class extends H{constructor(){super(),Object.defineProperty(this,"message",{value:P.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${y}]`,this.stack,delete this.name}get code(){return y}set code(lt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:lt,writable:!0})}toString(){return`${this.name} [${y}]: ${this.message}`}}}function $(y){let P="",H=y.length;const lt=y[0]==="-"?1:0;for(;H>=lt+4;H-=3)P=`_${y.slice(H-3,H)}${P}`;return`${y.slice(0,H)}${P}`}function dt(y,P,H,lt,mt,vt){if(y>H||y<P){const xt=typeof P=="bigint"?"n":"";let Gt;throw Gt=P===0||P===BigInt(0)?`>= 0${xt} and < 2${xt} ** ${8*(vt+1)}${xt}`:`>= -(2${xt} ** ${8*(vt+1)-1}${xt}) and < 2 ** ${8*(vt+1)-1}${xt}`,new E.ERR_OUT_OF_RANGE("value",Gt,y)}(function(xt,Gt,ee){_t(Gt,"offset"),xt[Gt]!==void 0&&xt[Gt+ee]!==void 0||Dt(Gt,xt.length-(ee+1))})(lt,mt,vt)}function _t(y,P){if(typeof y!="number")throw new E.ERR_INVALID_ARG_TYPE(P,"number",y)}function Dt(y,P,H){throw Math.floor(y)!==y?(_t(y,H),new E.ERR_OUT_OF_RANGE("offset","an integer",y)):P<0?new E.ERR_BUFFER_OUT_OF_BOUNDS:new E.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${P}`,y)}z("ERR_BUFFER_OUT_OF_BOUNDS",function(y){return y?`${y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),z("ERR_INVALID_ARG_TYPE",function(y,P){return`The "${y}" argument must be of type number. Received type ${typeof P}`},TypeError),z("ERR_OUT_OF_RANGE",function(y,P,H){let lt=`The value of "${y}" is out of range.`,mt=H;return Number.isInteger(H)&&Math.abs(H)>2**32?mt=$(String(H)):typeof H=="bigint"&&(mt=String(H),(H>BigInt(2)**BigInt(32)||H<-(BigInt(2)**BigInt(32)))&&(mt=$(mt)),mt+="n"),lt+=` It must be ${P}. Received ${mt}`,lt},RangeError);const Yt=/[^+/0-9A-Za-z-_]/g;function zt(y,P){let H;P=P||1/0;const lt=y.length;let mt=null;const vt=[];for(let xt=0;xt<lt;++xt){if(H=y.charCodeAt(xt),H>55295&&H<57344){if(!mt){if(H>56319){(P-=3)>-1&&vt.push(239,191,189);continue}if(xt+1===lt){(P-=3)>-1&&vt.push(239,191,189);continue}mt=H;continue}if(H<56320){(P-=3)>-1&&vt.push(239,191,189),mt=H;continue}H=65536+(mt-55296<<10|H-56320)}else mt&&(P-=3)>-1&&vt.push(239,191,189);if(mt=null,H<128){if((P-=1)<0)break;vt.push(H)}else if(H<2048){if((P-=2)<0)break;vt.push(H>>6|192,63&H|128)}else if(H<65536){if((P-=3)<0)break;vt.push(H>>12|224,H>>6&63|128,63&H|128)}else{if(!(H<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;vt.push(H>>18|240,H>>12&63|128,H>>6&63|128,63&H|128)}}return vt}function fe(y){return n.toByteArray(function(P){if((P=(P=P.split("=")[0]).trim().replace(Yt,"")).length<2)return"";for(;P.length%4!=0;)P+="=";return P}(y))}function le(y,P,H,lt){let mt;for(mt=0;mt<lt&&!(mt+H>=P.length||mt>=y.length);++mt)P[mt+H]=y[mt];return mt}function _e(y,P){return y instanceof P||y!=null&&y.constructor!=null&&y.constructor.name!=null&&y.constructor.name===P.name}function we(y){return y!=y}const Ee=function(){const y="0123456789abcdef",P=new Array(256);for(let H=0;H<16;++H){const lt=16*H;for(let mt=0;mt<16;++mt)P[lt+mt]=y[H]+y[mt]}return P}();function je(y){return typeof BigInt>"u"?xe:y}function xe(){throw new Error("BigInt not supported")}},527:function(r,t,e){var n=e(188),o=e(539),i=e(682);for(var u in n)n[u]=i(d(u));function d(l){return n[l]}n._api=o,r.exports=n},539:function(r){r.exports={letConst:{passes:"'use strict'; let a; const b = 2;"},letLoop:{passes:"'use strict'; for(let i in {}){}; for(let i=0;;){break}"},constLoop:{passes:"'use strict'; for(const i in {}){}; for (const i=0;;){break}"},defaultParameter:{passes:"'use strict'; function a(b=2){}"},spreadRest:{passes:"'use strict'; var a = [1,2]; +function b(...c){}(...a);"},destructuring:{passes:"'use strict'; var a = [1,2], [b,c] = a, d = {e:1,f:2}, {e:E,f} = d;"},parameterDestructuring:{passes:"'use strict'; function a({b,c}){}"},templateString:{passes:"'use strict'; var a = 1, b = `c${a}d`;"},forOf:{passes:"'use strict'; for (var a of [1]) {}"},arrow:{passes:"'use strict'; var a = () => {};"},generator:{passes:"'use strict'; function *a(){ yield; }"},conciseMethodProperty:{passes:"'use strict'; var a = 1, b = { c(){}, a };"},computedProperty:{passes:"'use strict'; var a = 1, b = { ['x'+a]: 2 };"},moduleExport:{passes:"'use strict'; export var a = 1;"},moduleImport:{passes:"'use strict'; import {a} from 'b';"},classes:{passes:"'use strict'; class Foo {}; class Bar extends Foo {};"},numericLiteral:{passes:"'use strict'; var a = 0o1, b = 0b10;"},oldOctalLiteral:{fails:"'use strict'; var a = 01;"},symbol:{passes:"'use strict'; var a = Symbol('b');"},symbolImplicitCoercion:{dependencies:["symbol"],fails:"'use strict'; var a = Symbol('a'); a + '';"},unicodeEscape:{passes:"'use strict'; var a = '\\u{20BB7}';"},unicodeIdentifier:{passes:"'use strict'; var \\u{20BB7};"},unicodeRegExp:{passes:"'use strict'; var a = /\\u{20BB7}/u;"},stickyRegExp:{passes:"'use strict'; var a = /b/y;"},letTDZ:{dependencies:["letConst"],fails:"'use strict'; a = 1; let a;"},letLoopScope:{dependencies:["letLoop","forOf"],passes:"'use strict'; var x=[],i=0;for(let i=2;i<3;i++){x.push(function(){return i})};for(let i in {3:0}){x.push(function(){return i})};for(let i of [4]){x.push(function(){return i})};if(x[0]()*x[1]()*x[2]()!=24) throw 0;"},constRedef:{dependencies:["letConst"],fails:"'use strict'; const a = 1; a = 2;"},objectProto:{passes:"'use strict'; var a = { b: 2 }, c = { __proto__: a }; if (c.b !== 2) throw 0;"},objectSuper:{passes:"'use strict'; var a = { b: 2 }, c = { d() { return super.b; } }; Object.setPrototypeOf(c,a); if (c.d() !== 2) throw 0;"},extendNatives:{dependencies:["class"],passes:"'use strict'; class Foo extends Array { }; var a = new Foo(); a.push(1,2,3); if (a.length !== 3) throw 0;"},TCO:{passes:"'use strict'; +function a(b){ if (b<6E4) return a(b+1); }(0);"},functionNameInference:{passes:"'use strict'; var a = { b: function(){} }; if (a.b.name != 'b') throw 0;"},ObjectStatics:{is:"'use strict'; return ('getOwnPropertySymbols' in Object) && ('assign' in Object) && ('is' in Object);"},ArrayStatics:{is:"'use strict'; return ('from' in Array) && ('of' in Array);"},ArrayMethods:{is:"'use strict'; return ('fill' in Array.prototype) && ('find' in Array.prototype) && ('findIndex' in Array.prototype) && ('entries' in Array.prototype) && ('keys' in Array.prototype) && ('values' in Array.prototype);"},TypedArrays:{is:"'use strict'; return ('ArrayBuffer' in global) && ('Int8Array' in global) && ('Uint8Array' in global) && ('Int32Array' in global) && ('Float64Array' in global);"},TypedArrayStatics:{dependencies:["TypedArrays"],is:"'use strict'; return ('from' in Uint32Array) && ('of' in Uint32Array);"},TypedArrayMethods:{dependencies:["TypedArrays"],is:"'use strict'; var x = new Int8Array(1); return ('slice' in x) && ('join' in x) && ('map' in x) && ('forEach' in x);"},StringMethods:{is:"'use strict'; return ('includes' in String.prototype) && ('repeat' in String.prototype);"},NumberStatics:{is:"'use strict'; return ('isNaN' in Number) && ('isInteger' in Number);"},MathStatics:{is:"'use strict'; return ('hypot' in Math) && ('acosh' in Math) && ('imul' in Math);"},collections:{is:"'use strict'; return ('Map' in global) && ('Set' in global) && ('WeakMap' in global) && ('WeakSet' in global);"},Proxy:{is:"'use strict'; return ('Proxy' in global);"},Promise:{is:"'use strict'; return ('Promise' in global);"},Reflect:{is:"'use strict'; return ('Reflect' in global);"}}},188:function(r){r.exports=new function(){this.letConst="letConst",this.letTDZ="letTDZ",this.constRedef="constRedef",this.destructuring="destructuring",this.spreadRest="spreadRest",this.forOf="forOf",this.collections="collections",this.symbol="symbol",this.Symbol=this.symbol,this.symbolImplicitCoercion="symbolImplicitCoercion",this.numericLiteral="numericLiteral",this.oldOctalLiteral="oldOctalLiteral",this.MathStatics="MathStatics",this.mathStatics=this.MathStatics,this.NumberStatics="NumberStatics",this.numberStatics=this.NumberStatics,this.StringMethods="StringMethods",this.stringMethods=this.StringMethods,this.unicodeEscape="unicodeEscape",this.unicodeIdentifier="unicodeIdentifier",this.unicodeRegExp="unicodeRegExp",this.stickyRegExp="stickyRegExp",this.templateString="templateString",this.arrow="arrow",this.defaultParameter="defaultParameter",this.parameterDestructuring="parameterDestructuring",this.functionNameInference="functionNameInference",this.TCO="TCO",this.tco=this.TCO,this.ArrayMethods="ArrayMethods",this.arrayMethods=this.ArrayMethods,this.ArrayStatics="ArrayStatics",this.arrayStatics=this.ArrayStatics,this.TypedArrayMethods="TypedArrayMethods",this.typedArrayMethods=this.TypedArrayMethods,this.TypedArrayStatics="TypedArrayStatics",this.typedArrayStatics=this.TypedArrayStatics,this.TypedArrays="TypedArrays",this.typedArrays=this.TypedArrays,this.objectProto="objectProto",this.ObjectStatics="ObjectStatics",this.objectStatics=this.ObjectStatics,this.computedProperty="computedProperty",this.conciseMethodProperty="conciseMethodProperty",this.Proxy="Proxy",this.proxy=this.Proxy,this.Reflect="Reflect",this.reflect=this.Reflect,this.generator="generator",this.Promise="Promise",this.promise=this.Promise,this.classes="classes",this.class=this.classes,this.objectSuper="objectSuper",this.extendNatives="extendNatives",this.moduleExport="moduleExport",this.moduleImport="moduleImport"}},682:function(r,t,e){var n=e(539),o={};function i(l){try{return d(l),!0}catch{return!1}}function u(l){try{return d(l)}catch{return!1}}function d(l){return new Function(l)()}o._api=n,r.exports=function l(v){if(v==="class"&&(v="classes"),o._api[v].dependencies){for(var S=0;S<o._api[v].dependencies.length;S++)if(l(o._api[v].dependencies[S])===!1)return!1}return o._api[v].passes?i(o._api[v].passes):o._api[v].fails?!i(o._api[v].fails):o._api[v].is?u(o._api[v].is):o._api[v].not?!u(o._api[v].not):void 0}},251:function(r,t){t.read=function(e,n,o,i,u){var d,l,v=8*u-i-1,S=(1<<v)-1,O=S>>1,C=-7,N=o?u-1:0,B=o?-1:1,M=e[n+N];for(N+=B,d=M&(1<<-C)-1,M>>=-C,C+=v;C>0;d=256*d+e[n+N],N+=B,C-=8);for(l=d&(1<<-C)-1,d>>=-C,C+=i;C>0;l=256*l+e[n+N],N+=B,C-=8);if(d===0)d=1-O;else{if(d===S)return l?NaN:1/0*(M?-1:1);l+=Math.pow(2,i),d-=O}return(M?-1:1)*l*Math.pow(2,d-i)},t.write=function(e,n,o,i,u,d){var l,v,S,O=8*d-u-1,C=(1<<O)-1,N=C>>1,B=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=i?0:d-1,F=i?1:-1,G=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(v=isNaN(n)?1:0,l=C):(l=Math.floor(Math.log(n)/Math.LN2),n*(S=Math.pow(2,-l))<1&&(l--,S*=2),(n+=l+N>=1?B/S:B*Math.pow(2,1-N))*S>=2&&(l++,S/=2),l+N>=C?(v=0,l=C):l+N>=1?(v=(n*S-1)*Math.pow(2,u),l+=N):(v=n*Math.pow(2,N-1)*Math.pow(2,u),l=0));u>=8;e[o+M]=255&v,M+=F,v/=256,u-=8);for(l=l<<u|v,O+=u;O>0;e[o+M]=255&l,M+=F,l/=256,O-=8);e[o+M-F]|=128*G}},943:function(r){function t(e){this.message=e}t.prototype=new Error,t.prototype.name="InvalidCharacterError",r.exports=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var n=String(e).replace(/=+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,u=0,d=0,l="";i=n.charAt(d++);~i&&(o=u%4?64*o+i:i,u++%4)?l+=String.fromCharCode(255&o>>(-2*u&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return l}},863:function(r,t,e){var n=e(943);r.exports=function(o){var i=o.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw"Illegal base64url string!"}try{return function(u){return decodeURIComponent(n(u).replace(/(.)/g,function(d,l){var v=l.charCodeAt(0).toString(16).toUpperCase();return v.length<2&&(v="0"+v),"%"+v}))}(i)}catch{return n(i)}}},127:function(r,t,e){var n=e(863);function o(i){this.message=i}o.prototype=new Error,o.prototype.name="InvalidTokenError",r.exports=function(i,u){if(typeof i!="string")throw new o("Invalid token specified");var d=(u=u||{}).header===!0?0:1;try{return JSON.parse(n(i.split(".")[d]))}catch(l){throw new o("Invalid token specified: "+l.message)}},r.exports.InvalidTokenError=o},471:function(r){for(var t=[],e=0;e<256;++e)t[e]=(e+256).toString(16).substr(1);r.exports=function(n,o){var i=o||0,u=t;return[u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]]].join("")}},814:function(r){var t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t){var e=new Uint8Array(16);r.exports=function(){return t(e),e}}else{var n=new Array(16);r.exports=function(){for(var o,i=0;i<16;i++)3&i||(o=4294967296*Math.random()),n[i]=o>>>((3&i)<<3)&255;return n}}},550:function(r,t,e){var n=e(814),o=e(471);r.exports=function(i,u,d){var l=u&&d||0;typeof i=="string"&&(u=i==="binary"?new Array(16):null,i=null);var v=(i=i||{}).random||(i.rng||n)();if(v[6]=15&v[6]|64,v[8]=63&v[8]|128,u)for(var S=0;S<16;++S)u[l+S]=v[S];return u||o(v)}},723:function(r){r.exports={version:"1.1.90",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(r,t,e){var n=e(287).hp;r.exports={toArray:function(o,i){if(!o||o.length!==36)return o;for(var u="",d=i?"0":"1",l=0;l<36;l+=1)u+=l>=26&&l<30?d:o[l];var v=function(C){for(var N=255,B=255,M=0,F=C.length;F;){var G=F>20?20:F;F-=G;do B+=N+=C[M++];while(--G);N=(255&N)+(N>>8),B=(255&B)+(B>>8)}return((B=(255&B)+(B>>8))<<8|(N=(255&N)+(N>>8))).toString(16)}(n.from(u));if(v){var S="";if(v.length===4)S+=v;else if(v.length<4){for(var O=0;O<4-v.length;O+=1)S+=d;S+=v}else S+=v.slice(-4)}return u.substring(0,26)+S+u.substring(26+S.length)}}},108:function(r){function t(){this.listeners={}}t.prototype.addEventListener=function(e,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(n)},t.prototype.removeEventListener=function(e,n){if(e in this.listeners){for(var o=this.listeners[e],i=0,u=o.length;i<u;i++)if(o[i]===n)return void o.splice(i,1)}},t.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var n=this.listeners[e.type].slice(),o=0,i=n.length;o<i;o++)n[o].call(this,e);return!e.defaultPrevented},r.exports=t},1:function(r){var t=null,e=null,n=0;function o(i,u){return encodeURIComponent(i)+"="+encodeURIComponent(u)}r.exports={init:function(i,u){t=i.errorServerUrl+"/reportSdkMsg",e=u.appId,n=typeof u.logMessageRate=="number"?u.logMessageRate:100},send:function(i){if(t&&!(100*Math.random()>n)){var u=t;u+="?"+o("appId",e),u+="&"+o("msg",JSON.stringify(i));var d=new Image;d.onerror=function(){},d.src=u}}}},611:function(r){var t=function(){function e(o,i){this.method=o,this.url=i,this.headers={},this.data=null,this.timeout=1e4}e.prototype.set=function(o,i){if(typeof o=="object")for(var u in o)o.hasOwnProperty(u)&&(this.headers[u]=o[u]);else this.headers[o]=i;return this},e.prototype.send=function(o){return this.data=o,this},e.prototype.timeout=function(o){return this.timeout=o,this},e.prototype.end=function(o){var i=this,u={method:this.method,headers:this.headers};function d(C,N){return{ok:!1,status:N?N.status:400,response:C instanceof Error?C.message:C}}if(this.data&&(u.body=JSON.stringify(this.data)),typeof fetch=="function"){var l,v=fetch(this.url,u).then(function(C){if(!C.ok)throw{response:C,message:C.statusText||"HTTP error "+C.status};return function(N){var B=N.headers.get("content-type");return B&&B.includes("application/json")?N.json().then(function(M){return{ok:N.ok,status:N.status,body:M}}):N.text().then(function(M){return{ok:N.ok,status:N.status,body:M}})}(C)}),S=new Promise(function(C,N){l=setTimeout(function(){N(new Error("Request timeout"))},i.timeout)});Promise.race([v,S]).then(function(C){clearTimeout(l),C.ok?o(null,C):o(d(C.response,C))}).catch(function(C){clearTimeout(l),o(d(C.message,C&&C.response))})}else{var O=new XMLHttpRequest;O.open(this.method,this.url,!0),Object.keys(this.headers).forEach(function(C){O.setRequestHeader(C,i.headers[C])}),O.timeout=this.timeout,O.onload=function(){var C={ok:O.status>=200&&O.status<300,status:O.status,body:O.responseText};try{C.body=JSON.parse(O.responseText)}catch{}C.ok?o(null,C):o(d("HTTP error "+O.status,C))},O.onerror=function(){o(d("Error",{status:400}))},O.ontimeout=function(){o(d("Timeout",{status:408}))},O.send(this.data?JSON.stringify(this.data):null)}};var n={};return["get","post","put","delete"].forEach(function(o){n[o]=function(i){return new e(o,i)}}),n}();r.exports=t},776:function(r,t,e){var n,o,i=e(611),u=e(723),d=e(884),l=u.serverUrl;function v(){n=n||{},o!==void 0&&(n[u.headers.sessionId]=o);var S={Accept:"application/json","Content-Type":"application/json"};return Object.keys(n).forEach(function(O){n[O]!==void 0&&(S[O]=n[O])}),S}r.exports={setSessionId:function(S){o=S},makeRequest:function(S,O){var C=S.path,N=S.data,B=S.method;(function M(F){i[B](F+"/"+C).set(v()).send(N).end(function(G,Q){if(G){if(F!==u.serverUrl)return void M(u.serverUrl);d.isFunction(O)&&O({ok:!1,status:G.status,response:G.response})}else d.isFunction(O)&&O(null,{ok:Q.ok,status:Q.status,response:Q.body})})})(l)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:v,init:function(S,O){(function(C){n=C})(S),O.eventsReportUrl&&typeof O.eventsReportUrl=="string"&&(l=d.normalizePath(O.eventsReportUrl))}}},13:function(r,t,e){var n,o=e(723),i="getItem";function u(l,v){l&&l.contentWindow.postMessage(v,"*")}function d(l,v,S){l.removeEventListener?l.removeEventListener(v,S,!1):l.attachEvent&&l.detachEvent("on"+v,S)}r.exports={init:function(l){var v,S=(v=!1,function(){v||(v=!0,l())});(n=document.createElement("iframe")).id="storageIframe",n.width=n.height=n.frameBorder=0,n.style.display="none",n.setAttribute("src",o.storageIframeUrl),n.onload=S,n.onerror=S,document.body.appendChild(n),window.setTimeout(S,1e4)},getKey:function(l,v){var S,O,C,N,B,M;n||v(),S=window,O="message",N=function F(G){if(G.data&&typeof G.data=="string")try{var Q=JSON.parse(G.data);if(Q.command===i){var et=Q.response;d(window,"message",F),v(et)}}catch{d(window,"message",F),v()}},B=v,M=!1,window.setTimeout(function(){M||(M=!0,B())},5e3),C=function(F){M||(M=!0,N(F))},S.addEventListener?S.addEventListener(O,C,!1):S.attachEvent&&S.attachEvent("on"+O,C),u(n,JSON.stringify({command:i,key:l}))},setKey:function(l,v){u(n,JSON.stringify({command:"setItem",key:l,value:v}))},cleanup:function(){n&&n.parentElement&&n.parentElement.removeChild&&(n.parentElement.removeChild(n),n=null)}}},528:function(r){var t,e={setItem:function(l,v){this[l]=v},getItem:function(l){return this[l]},removeItem:function(l){delete this[l]}};function n(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch{return!1}}function o(){return t===void 0&&(t=n()),t?localStorage:e}function i(l,v){o().setItem(l,v)}function u(l){return o().getItem(l)}function d(l){return o().removeItem(l)}r.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:i,getItem:u,getBackwardCompatabilityItem:function(l,v){var S=u(l);return!S&&v&&(S=u(v))&&(i(l,S),d(v)),S},removeItem:d,hasAccessToLocalStorage:n,getSessionItem:function(l){try{return sessionStorage.getItem(l)}catch{return e.getItem(l)}},setSessionItem:function(l,v){try{return sessionStorage.setItem(l,v)}catch{return e.setItem(l,v)}}}},884:function(r){var t="nsure-app-cid";function e(n){var o=n;return o&&o.charAt(o.length-1)==="/"&&(o=o.slice(0,-1)),o&&!/^https?:\/\//i.test(o)&&(o="https://"+o),o}r.exports={isFunction:function(n){return typeof n=="function"},loadScript:function(n,o){var i=!1,u=document.createElement("script");function d(){i||(i=!0,o())}u.onload=d,u.onreadystatechange=function(){i||u.readyState!=="complete"||d()},u.onerror=function(){i||(i=!0,o("Error loading script"))},u.src=n,document.body.appendChild(u)},loadImage:function(n){var o=document.createElement("img");o.src=n,o.style.height=0,o.style.width=0,o.style.display="none",o.style.visibility="hidden",document.body.appendChild(o)},randomInt:function(n,o){var i,u=o-n+1;return Math.floor(((i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&window.msCrypto.getRandomValues.bind(window.msCrypto))?i(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*u+n)},isValidDate:function(n){return n instanceof Date&&!isNaN(n)},getAppContextId:function(){try{var n=sessionStorage.getItem(t);n?sessionStorage.removeItem(t):n=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(o=n,function(){try{sessionStorage.setItem(t,o)}catch{}}))}catch{n=0}var o;return n},isBrowser:function(){return typeof document<"u"&&typeof navigator<"u"&&typeof document.createElement=="function"},normalizePath:e,getConfigBaseUrls:function(n,o){var i=null;if(typeof n.configBaseUrl=="string"&&n.configBaseUrl.length>0){var u=o.coreConfigFileUrl.indexOf("/core-config/"),d=u>0?o.coreConfigFileUrl.substring(u):"/core-config/config.json";i=e(n.configBaseUrl)+d}return{mainConfigBaseUrl:i||o.coreConfigFileUrl,altConfigBaseUrl:i===o.coreConfigFileUrl?null:o.coreConfigFileUrl}}}},543:function(r){var t="f8ad0f9b-",e="ns_install_reported",n=t+e,o=t+"ns_reportedFpInSession";r.exports={webType:"Web",oldInstallEventReportedKeyName:e,installEventReportedKeyName:n,fingerprintReportedInSessionKey:o,eventTriggers:{fingerPrint:"fingerprint"}}},38:function(r){r.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy"}},298:function(r){r.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},102:function(r,t,e){var n=e(723),o=e(776),i=e(387),u=e(733),d=e(472),l=e(376),v=e(120),S=e(142),O=e(636),C=e(496),N=e(1),B=e(336);r.exports={init:function(M){var F=M.deviceId,G=M.linkedDevices,Q={};Q[n.headers.appId]=M.appId,Q[n.headers.partnerId]=M.partnerId,Q[n.headers.sdkClientVersion]=n.version,Q[n.headers.sdkApiVersion]=n.sdkApiVersion,Q[n.headers.sdkClientType]=n.sdkClientType,Q[n.headers.appContextId]=M.appContextId,o.init(Q,M),i.addMetadataProps(M),N.init(n,M),i.reportInitEvent(F),C.init(M),B.init(M),u.installSdk(M,function(et){et||l.manageFingerprint(F,!0)}),u.reportLinkDevices(F,G),d.manageSessionId({deviceId:F,initModuleConfig:M}),v.manageDomEvents(F),S.manageKeepAlive({deviceId:F}),O.reportVersionUpgrade({deviceId:F,initModuleVersion:M.clientVersion,coreModuleVersion:n.version})}}},143:function(r,t,e){var n=e(108),o=e(23).oneMinute,i=e(298);function u(){n.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function d(l){n.call(this),this.activityServiceId=l}u.prototype=Object.create(n.prototype),u.prototype.constructor=u,u.prototype.observe=function(){var l=this;Object.keys(this.activityEvents).forEach(function(v){document.addEventListener(v,l.activityEvents[v]=function(){l.activityHandler()})})},u.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(i.activityEvent))},u.prototype.stopActivityListeners=function(){var l=this;Object.keys(this.activityEvents).forEach(function(v){document.removeEventListener(v,l.activityEvents[v])})},d.prototype=Object.create(n.prototype),d.prototype.constructor=d,d.prototype.trackInactivity=function(l){var v,S=new u,O=this,C=!1;function N(){C||(clearTimeout(v),setTimeout(function(){O.trackInactivity(l)},o))}S.addEventListener(i.activityEvent,N),S.observe(),v=setTimeout(function(){C=!0,S.stopActivityListeners(),S.removeEventListener(i.activityEvent,N),O.dispatchEvent(new Event(i.inactivityEvent))},l)},r.exports=d},496:function(r,t,e){var n,o=e(120),i=e(776),u=e(376),d=e(23),l=e(723),v=e(38),S=e(543),O=e(336),C=e(884),N=[],B=[],M=null,F=6e4,G=5e3,Q=null,et=C.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),ct=0,ft=null,ot=Date.now(),bt=0,Rt=null,At=!1,gt=!1,wt=!1,kt=!1,q=[];function h(){B=N,N=[],Z(),T()}function T(){M&&clearTimeout(M),M=setTimeout(h,F)}function D(){var $={device:{id:n,type:S.webType},metadata:{clientRequestId:d.getClientRequestId()}};return Q&&Q.fingerprintHash&&($.device.fingerprint=Q.fingerprintHash),$}function Z($){if(B.length)if(Q!==null){var dt=Object.assign(D(),{events:B});i.makeRequest({path:"bulk",data:dt,method:i.methods.post},$)}else u.getFingerprint(function(_t){Q=_t,Z($)})}function j($,dt){return N.push($),dt?new Blob([JSON.stringify(N)]).size:0}function X(){if(wt){var $=Date.now();$-ot>G&&(j({i:{dr:$-ot,ac:$-ot-bt},metadata:{type:v.I,timestamp:$}},!1),bt=0)}}function at(){T(),B=N,N=[],Z()}function K($){X(),function(){if(kt&&Math.random()<.25){for(var dt=[],_t=0;_t<3;_t++)dt.push(String.fromCharCode(Math.floor(26*Math.random())+97));var Dt=v.DY+dt[0],Yt={metadata:{type:Dt,timestamp:Date.now()}};Yt[Dt]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},Yt[Dt][dt.join("")]=Math.floor(1e3*Math.random())+1,j(Yt,!1)}}(),function(dt){O.triggerEventOnEvent(dt)}($),j(Object.assign({metadata:{type:$.eventType,timestamp:Date.now()}},$.payload),!0)>32768&&at(),$.eventType!==v.C&&$.eventType!==v.S&&$.eventType!==v.KD&&$.eventType!==v.MM||(ot=Date.now())}function p(){At&&at()}function E($){return window.addEventListener($,p,!0),function(){window.removeEventListener($,p,!0)}}function z($,dt){return!$||$.indexOf(dt)>-1}r.exports={init:function($){if(!At){var dt=$.bulkEvents&&$.bulkEvents.mask;if(!Array.isArray(dt)||dt.length!==0){var _t=$.bulkEvents&&typeof $.bulkEvents.pct=="number"?$.bulkEvents.pct:100;if(!(_t===0||Math.random()>_t/100)){var Dt=$.bulkEvents&&$.bulkEvents.appMaskInclude;if(!Array.isArray(Dt)||Dt.indexOf($.appId)!==-1){var Yt=$.bulkEvents&&$.bulkEvents.appMaskExclude;if(!Array.isArray(Yt)||Yt.indexOf($.appId)===-1){var zt=z(dt,v.C),fe=z(dt,v.KD),le=z(dt,v.S),_e=z(dt,v.PC),we=z(dt,v.MM),Ee=z(dt,v.PL),je=z(dt,v.I),xe=z(dt,v.DY),y=je||Ee;n=$.deviceId,T(),zt&&q.push(o.setClickListener(K)),fe&&q.push(o.setKeyDownListener(K)),le&&q.push(o.setScrollListener(K)),_e&&q.push(o.setPageChangeListener(K)),we&&q.push(o.setMouseMoveListener(K)),gt=Ee,wt=je,kt=xe,y&&q.push(function(){function P(){if(document.hidden)ft=Date.now(),Rt=ft;else if(ft!==null){var H=Date.now();ct+=H-ft,ft=null,bt+=H-Rt}}return document.addEventListener("visibilitychange",P),function(){document.removeEventListener("visibilitychange",P)}}()),q.push(function(){function P(){if(X(),function(){if(gt){var xt=Date.now(),Gt=xt-et;j({metadata:{type:v.PL,timestamp:xt},pl:{dr:Gt,ac:Gt-ct}},!1)}}(),navigator.sendBeacon&&window.URLSearchParams){if(N.length>0){var H=i.getRequestHeaders(),lt=Object.assign(D(),{events:N}),mt=new URLSearchParams;mt.append("data",JSON.stringify(lt)),mt.append("headers",JSON.stringify(H));var vt=new Blob([mt.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(l.serverUrl+"/bulk",vt)}}else B=N,Z()}return window.addEventListener("beforeunload",P),function(){window.removeEventListener("beforeunload",P)}}()),At=!0,N=[],zt||q.push(E("click")),q.push(E("paste"))}}}}}},cleanup:function(){At&&(M&&clearTimeout(M),q.forEach(function($){$()}),q=[],At=!1)},trigger:p}},120:function(r,t,e){var n=e(709),o=e(38),i=e(23);function u(){return"ontouchstart"in window}function d(l){var v={};if(l.nodeName){v.name=l.nodeName,l.className&&(v.className=String(l.className)),l.id&&(v.id=l.id);var S=l.getAttribute&&l.getAttribute("type");S&&(v.type=S),l.placeholder&&(v.placeholder=l.placeholder)}return v}r.exports={manageDomEvents:function(l){n.managePasteEvents(l)},getDomProperties:d,setClickListener:function(l){function v(O){var C={eventType:o.C,payload:{c:{d:d(O.target)}}},N=O.target.textContent||O.target.innerText||"";if(N){var B=i.transformDomNodeContent(N);C.payload[o.C].x={p:B.prefix,s:B.suffix,l:B.length}}l(C)}var S=u()?"touchend":"click";return window.addEventListener(S,v,!0),function(){window.removeEventListener(S,v,!0)}},setKeyDownListener:function(l){function v(S){l({eventType:o.KD,payload:{kd:{d:d(S.target),k:S.key||S.code||"na"}}})}return window.addEventListener("keydown",v,!0),function(){window.removeEventListener("keydown",v,!0)}},setScrollListener:function(l){var v=null,S=0,O=0,C={x:0,y:0},N=0,B=0,M=0,F=0,G=0,Q=0;function et(ft){l({eventType:o.S,payload:{s:{d:d(ft.target),di:{x:C.x,y:C.y},t:B-N,sx:M,sy:F,ex:G,ey:Q}}}),S=0,O=0,C.x=0,C.y=0,v=null,N=0,B=0}function ct(ft){var ot=ft.target.scrollingElement||ft.target;if(ot&&(ot===document&&(ot=document.documentElement),ot instanceof Element)){var bt=ot.getBoundingClientRect(),Rt=-bt.left+ot.scrollLeft,At=-bt.top+ot.scrollTop;v?(clearTimeout(v),B=Date.now(),G=Rt,Q=At):(N=Date.now(),B=N,G=M=Rt,Q=F=At),(C.x||C.y||S||O)&&(C.x+=Math.abs(Rt-S),C.y+=Math.abs(At-O)),S=Rt,O=At,v=setTimeout(et.bind(null,ft),200)}}return window.addEventListener("scroll",ct,!0),function(){v&&clearTimeout(v),window.removeEventListener("scroll",ct,!0)}},setPageChangeListener:function(l){var v,S,O,C=null,N=null,B=0;function M(et){var ct;if(window.URL){var ft=new URL(et,"http://example.com");ct=ft.pathname+ft.hash}else ct=et.indexOf("?")>-1?et.split("?")[0]:et.indexOf("#")>-1?et.split("#")[0]:et;if(ct!==C){var ot=Date.now()-O;l({eventType:o.PC,payload:{pc:{f:C,t:ct,dr:ot,ac:ot-B}}}),C=ct,O=Date.now()}}function F(){if(document.hidden)N=Date.now();else if(N!==null){var et=Date.now();B+=et-N,N=null}}function G(et){M(et.newURL)}function Q(){M(window.location.href)}return window.history?(C=window.location.pathname||"/",v=history.pushState,S=history.replaceState,O=Date.now(),window.addEventListener("hashchange",G),window.addEventListener("popstate",Q),history.pushState=function(et,ct,ft){return M(ft),v.apply(history,arguments)},history.replaceState=function(et,ct,ft){return M(ft),S.apply(history,arguments)},document.addEventListener("visibilitychange",F),function(){history.pushState=v,history.replaceState=S,window.removeEventListener("hashchange",G),window.removeEventListener("popstate",Q),document.removeEventListener("visibilitychange",F),C=null,B=0}):function(){}},setMouseMoveListener:function(l){var v=[],S=!1,O=null,C=0,N={x:0,y:0};function B(){v.length!==0&&(l({eventType:o.MM,payload:{mm:{s:v.slice(),l:S,di:N}}}),v=[])}function M(G){var Q,et;G.touches&&G.touches.length>0?(Q=G.touches[0].clientX,et=G.touches[0].clientY):(Q=G.clientX,et=G.clientY),Q!==void 0&&et!==void 0&&(v.length>0&&(N.x+=Math.abs(Q-v[v.length-1][0]),N.y+=Math.abs(et-v[v.length-1][1])),v.push([Q,et]),v.length>1e3&&(S=!0,(C+=2)>=1e3&&(C=2),v.splice(C,1)),O&&clearTimeout(O),O=setTimeout(B,200))}var F=u()?"touchmove":"mousemove";return window.addEventListener(F,M,!0),function(){O&&clearTimeout(O),window.removeEventListener(F,M,!0)}}}},387:function(r,t,e){var n=e(776),o=e(23),i=e(287).hp,u=e(527),d=e(543),l=["storeInfo"],v={};function S(){var N={};for(var B in u)if(u.hasOwnProperty(B)){var M=B.charAt(0);M===M.toLowerCase()&&M!==M.toUpperCase()&&(N[B]=u[B])}return N}function O(N,B){var M=N.eventType,F=N.deviceId,G=N.fingerprintProVisitorId,Q=N.fingerprintProRequestId,et=N.fingerprintHash,ct=function(wt){try{return i.from(JSON.stringify(wt)).toString("base64")}catch{return}}(N.fingerprintComponents),ft=N.deviceExtendedInfo,ot=N.payload,bt={metadata:{type:M},device:{id:F,fingerprint:et,rawFingerprint:ct,type:d.webType}};G&&(bt.device.visitorId=G),Q&&(bt.device.fpRequestId=Q);var Rt=Object.assign({},o.getClientMetadata(o.metadataType.payload),v);for(var At in Rt)Rt.hasOwnProperty(At)&&(bt.metadata[At]=Rt[At]);for(var gt in ot)ot.hasOwnProperty(gt)&&(bt[gt]=ot[gt]);ft&&(bt.device.extendedInfo=ft),n.makeRequest({path:"events",data:bt,method:n.methods.post},B)}function C(N){var B=N.type,M=N.deviceId,F=N.fingerprintProVisitorId,G=N.fingerprintProRequestId,Q=N.fingerprintHash,et=N.fingerprintComponents,ct=N.deviceExtendedInfo,ft=N.callback,ot={eventType:B,deviceId:M,fingerprintHash:Q,fingerprintComponents:et,deviceExtendedInfo:ct};F&&(ot.fingerprintProVisitorId=F),G&&(ot.fingerprintProRequestId=G),O(ot,ft)}r.exports={addMetadataProps:function(N){for(var B=0;B<l.length;B+=1){var M=l[B];N.hasOwnProperty(M)&&(v[M]=N[M])}},reportEvent:O,reportAppInstallEvent:function(N,B,M,F,G,Q){C({type:"appInstall",deviceId:N,fingerprintProVisitorId:B,fingerprintProRequestId:M,fingerprintHash:F,fingerprintComponents:G,deviceExtendedInfo:S(),callback:Q})},reportFingerprintEvent:function(N,B,M,F){C({type:"fingerprint",deviceId:N,fingerprintHash:B,fingerprintComponents:M,fingerprintProRequestId:F})},reportInitEvent:function(N){C({type:"appInit",deviceId:N})}}},625:function(r,t,e){var n=e(269);r.exports={getFingerprint:function(o,i){n&&o?n.load({apiKey:"KxV6sLn9nXBGBzPtzicI",endpoint:["https://metrics.nsureapi.com",n.defaultEndpoint],modules:[n.makeIdentificationModule(),n.makeBotdModule()],scriptUrlPattern:["https://metrics.nsureapi.com/web/v<version>/<apiKey>/loader_v<loaderVersion>.js",n.defaultScriptUrlPattern],remoteControlDetection:!0}).then(function(u){return u.get()}).then(function(u){typeof i=="function"&&i(u?{fingerprintVisitorId:u.visitorId,fingerprintRequestId:u.requestId}:{})}).catch(function(){typeof i=="function"&&i({})}):i({})}}},376:function(r,t,e){var n=e(568),o=e(528),i=e(387),u="ns_fp_hash";function d(v,S,O,C){i.reportFingerprintEvent(O,v,S,C)}function l(v){n.load({monitoring:!1}).then(function(S){S.get().then(function(O){v(O?{fingerprintHash:O.visitorId,fingerprintComponents:O.components}:{})})})}r.exports={manageFingerprint:function(v,S,O){l(function(C){var N=C.fingerprintHash,B=C.fingerprintComponents;o.getItem(u)!==N&&(S&&d(N,B,v),o.setItem(u,N)),typeof O=="function"&&O({fingerprintHash:N,fingerprintComponents:B})})},getFingerprint:l,reportFingerprintWithProInfo:function(v,S){l(function(O){d(O.fingerprintHash,O.fingerprintComponents,v,S)})}}},733:function(r,t,e){var n=e(528),o=e(376),i=e(625),u=e(387),d=e(142),l=e(1),v=e(543),S="linkDevices";function O(N,B,M){o.getFingerprint(function(F){var G=F.fingerprintHash,Q=F.fingerprintComponents;u.reportEvent({eventType:S,deviceId:N,fingerprintHash:G,fingerprintComponents:Q,payload:{linkedDevices:[B,M]}})})}function C(N,B){if(B)for(var M=0,F=B.length;M<F;M+=1){var G=B[M];if(G&&G.length>1){var Q=G[0],et=G[1];Q&&et&&Q!==et&&O(N,Q,et)}}}r.exports={installSdk:function(N,B){var M=N.deviceId,F=N.loadFingerprintJsPro,G=(N.supressInstallBackwardCompatibility||[]).indexOf(N.appId)===-1,Q=function(ct,ft){var ot=ft?n.getBackwardCompatabilityItem(v.installEventReportedKeyName,v.oldInstallEventReportedKeyName):n.getItem(v.installEventReportedKeyName);return ot?(ot==="true"&&(n.setItem(v.installEventReportedKeyName,ct),ot=ct),ct===ot?{isInstalled:!0,reportedDeviceId:ct}:{isInstalled:!1,reportedDeviceId:ot}):{isInstalled:!1,reportedDeviceId:null}}(M,G);function et(ct,ft,ot){if(ot>3)B&&B(!1);else{var bt=ft.fingerprintHash,Rt=ft.fingerprintComponents,At=ct.fingerprintVisitorId,gt=ct.fingerprintRequestId;u.reportAppInstallEvent(M,At,gt,bt,Rt,function(wt){if(wt){var kt={msg:"Failed sending appInstall",err:JSON.stringify(wt),deviceId:M,fingerprintHash:bt,fingerprintRequestId:gt,numberOfRetry:ot};l.send(kt),et(ct,ft,ot+1)}else n.setItem(v.installEventReportedKeyName,M),n.setItem("ns_irts",Date.now()),d.manageKeepAlive({deviceId:M,fingerprintInfo:ft,setStartTimestamp:!0}),B&&B(!0)})}}Q.isInstalled?B&&B(!1):(Q.reportedDeviceId&&Q.reportedDeviceId!==M&&C(M,[[M,Q.reportedDeviceId]]),i.getFingerprint(F,function(ct){o.manageFingerprint(M,!1,function(ft){et(ct,ft,1)})}))},reportLinkDevices:C}},142:function(r,t,e){var n=e(528),o=e(884),i=e(387),u=e(376),d="ns_ka_ts",l="ns_ka_step_",v=[10,30,40,60];function S(B){return l+B}function O(){var B=parseInt(n.getItem(d),10);return o.isValidDate(new Date(B))?B:null}function C(B,M){var F=function(){var G=O();if(!G)return null;for(var Q,et=Math.floor((new Date().getTime()-G)/1e3),ct=0;ct<v.length;ct+=1){var ft=v[ct],ot=ct<v.length-1?v[ct+1]:null;if(et>=ft&&(!ot||et<ot)&&(Q=ft,!n.getItem(S(Q))))return{stepToReport:ft,timeToWaitInSeconds:0};if(et<ft)return{stepToReport:ft,timeToWaitInSeconds:ft-et}}return null}();F&&(F.timeToWaitInSeconds===0?(function(G,Q,et){var ct=Q.fingerprintHash,ft=Q.fingerprintComponents;i.reportEvent({eventType:"keepAlive",deviceId:G,fingerprintHash:ct,fingerprintComponents:ft,payload:{keepAlive:{step:et}}}),n.setItem(S(et),!0)}(B,M,F.stepToReport),C(B,M)):F.timeToWaitInSeconds>0&&setTimeout(function(){C(B,M)},1e3*F.timeToWaitInSeconds))}var N={manageKeepAlive:function(B){var M=B.deviceId,F=B.fingerprintInfo;B.setStartTimestamp&&!O()&&n.setItem(d,new Date().getTime()),F?C(M,F):u.getFingerprint(function(G){C(M,G)})}};r.exports=N},709:function(r,t,e){var n=e(387),o=e(376),i=e(23);function u(v){var S,O=v?v.value||v.innerText:null;return{nodeContent:O,normalizedNodeContent:(S=O,i.removeWhitespaces(S))}}function d(v){var S=i.transformDomNodeContent(v),O=v||"";return S.onlyDigits=/^[0-9]+$/.test(O),S.containsWhitespace=/\s/.test(O),S.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(O),S}var l={managePasteEvents:function(v){document.addEventListener("paste",function(S){var O=u(S.target);setTimeout(function(){(function(C){var N=C.deviceId,B=C.contentBeforePaste,M=B.nodeContent,F=B.normalizedNodeContent,G=C.domNode,Q={paste:{domNode:{}}};if(G.nodeName){Q.paste.domNode.name=G.nodeName,G.className&&(Q.paste.domNode.className=G.className),G.id&&(Q.paste.domNode.id=G.id);var et=G.getAttribute&&G.getAttribute("type");et&&(Q.paste.domNode.type=et),Q.paste.domNode.content={};var ct=u(G),ft=ct.nodeContent,ot=ct.normalizedNodeContent;Q.paste.domNode.content.beforePaste=d(M),Q.paste.domNode.content.afterPaste=d(ft),Q.paste.domNode.normalizedContent={},Q.paste.domNode.normalizedContent.beforePaste=d(F),Q.paste.domNode.normalizedContent.afterPaste=d(ot),G.placeholder&&(Q.paste.domNode.placeholder=G.placeholder),Q.paste.url=window.location.href}o.getFingerprint(function(bt){var Rt=bt.fingerprintHash;n.reportEvent({eventType:"paste",deviceId:N,fingerprintHash:Rt,payload:Q})})})({deviceId:v,contentBeforePaste:O,domNode:S.target})},0)})}};r.exports=l},472:function(r,t,e){var n=e(127),o=e(108),i=e(884),u=e(23),d=e(776),l=e(528),v=e(298).inactivityEvent,S=e(143),O=e(387),C=e(376),N="ns_sid";function B(){o.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function M(G){var Q=G.deviceId,et=G.initModuleConfig,ct=G.jwtSessionId,ft=G.callback,ot=1e4;try{ot=n(ct).inactivityTimeout}catch{ot=1e4}var bt=new S(new Date().getTime());bt.addEventListener(v,function Rt(){bt.removeEventListener(v,Rt),F({deviceId:Q,initModuleConfig:et,forceRenewSessionDueToInactivity:!0,callback:ft})}),bt.trackInactivity(ot)}function F(G){var Q,et=G.deviceId,ct=G.initModuleConfig,ft=!!G.forceRenewSessionDueToInactivity,ot=G.callback,bt=l.getItem(N);try{Q=n(bt),d.setSessionId(bt)}catch{Q=null}ft||!Q||1e3*((Q||{}).exp||0)<new Date().getTime()?function(Rt,At){var gt=Rt.deviceId,wt=(Rt.initModuleConfig||{}).storeInfo,kt=new B;kt.addEventListener(kt.eventTypes.fetchComplete,function q(h){kt.removeEventListener(kt.eventTypes.fetchComplete,q),At(h.detail)}),kt.fetchSessionId(gt,wt)}({deviceId:et,initModuleConfig:ct},function(Rt){bt=Rt,l.setItem(N,bt),d.setSessionId(bt),function(At){try{var gt=At.deviceId,wt=n(At.jwtSessionId).ets;if(!wt)return;C.getFingerprint(function(kt){var q=kt.fingerprintHash,h=kt.fingerprintComponents;O.reportEvent({eventType:"ping",deviceId:gt,fingerprintHash:q,fingerprintComponents:h,payload:{ping:{ets:wt}}})})}catch{}}({deviceId:et,jwtSessionId:bt}),M({deviceId:et,initModuleConfig:ct,jwtSessionId:bt,callback:ot}),i.isFunction(ot)&&ot(bt)}):(M({deviceId:et,initModuleConfig:ct,jwtSessionId:bt,callback:ot}),i.isFunction(ot)&&ot(bt))}B.prototype=Object.create(o.prototype),B.prototype.constructor=B,B.prototype.fetchSessionId=function(G,Q){var et=this,ct="session?"+u.getClientMetadata(u.metadataType.queryString)+"&deviceId="+G;Q&&(Q.id&&(ct+="&storeId="+Q.id),Q.type&&(ct+="&storeType="+Q.type)),function ft(){var ot;ot=function(bt,Rt){!bt&&Rt&&Rt.ok?et.dispatchEvent(new CustomEvent(et.eventTypes.fetchComplete,{detail:Rt.response})):setTimeout(ft,i.randomInt(4e4,6e4))},d.makeRequest({path:ct,method:d.methods.get},ot)}()},r.exports={manageSessionId:F,setRetrySessionTimeout:function(G){throw new Error("Cannot call setRetrySessionTimeout!")}}},336:function(r,t,e){var n=e(23),o=e(376),i=e(625),u=e(528),d=e(543).fingerprintReportedInSessionKey,l=e(543).eventTriggers,v={},S=null,O=!1,C=!1;function N(M){var F=M||{};Object.keys(F).forEach(function(G){G===l.fingerPrint&&C&&(u.getSessionItem(d)||(i.getFingerprint(O,function(Q){o.reportFingerprintWithProInfo(S,Q.fingerprintRequestId)}),u.setSessionItem(d,!0)))})}function B(M,F,G){for(var Q=0;Q<F.payload.length;Q++){var et=F.payload[Q];et&&et.event&&et.action&&n.isSubObject(et.event,M.payload)&&(G[et.action]=!0)}}r.exports={init:function(M){if(M.eventTrigger){try{var F=atob(M.eventTrigger),G=JSON.parse(F);if(!G||!(v=G[M.appId]))return}catch{return}S=M.deviceId,O=M.loadFingerprintJsPro,C=!0,function(){if(C&&v.init&&Array.isArray(v.init)){for(var Q={},et=0;et<v.init.length;et++){var ct=v.init[et];ct&&ct.url&&ct.action&&new RegExp(v.init[et].url).test(window.location.href)&&(Q[v.init[et].action]=!0)}N(Q)}}()}},triggerEventOnEvent:function(M){if(C){var F=v[M.eventType];if(Array.isArray(F)){for(var G={},Q=0;Q<F.length;Q++){var et=F[Q];et&&et.url&&et.payload&&new RegExp(et.url).test(window.location.href)&&B(M,et,G)}N(G)}}}}},636:function(r,t,e){var n=e(528),o=e(387),i=e(376),u="ns_c_ver",d="c";function l(S){n.setItem(u,JSON.stringify(S))}function v(S,O,C,N){var B=O.fingerprintHash,M=O.fingerprintComponents;o.reportEvent({eventType:"sdkVersionUpgrade",deviceId:S,fingerprintHash:B,fingerprintComponents:M,payload:{versionUpgrade:{version:C,prevVersion:N||""}}}),l(C)}r.exports={reportVersionUpgrade:function(S){var O=S.initModuleVersion,C=S.coreModuleVersion,N={};N.i=O,N[d]=C;var B=S.deviceId,M=S.fingerprintInfo,F=function(){var G=n.getItem(u);if(G){try{var Q=JSON.parse(G);if(typeof Q=="object")return Q}catch{}return{i:G}}return null}();F&&F.i?F.i!==O||F[d]&&F[d]!==C?(F[d]||(F[d]=C),M?v(B,M,N,F):i.getFingerprint(function(G){v(B,G,N,F)})):F[d]||l(N):l(N)}}},23:function(r,t,e){var n=e(550),o={payload:"payload",queryString:"queryString"};function i(){return n()}function u(l,v){for(var S in l)if(l.hasOwnProperty(S)&&(!v.hasOwnProperty(S)||!d(l[S],v[S])))return!1;return!0}function d(l,v){if(l===v)return!0;if(typeof l!=typeof v)return!1;if(Array.isArray(l)&&Array.isArray(v)){if(l.length!==v.length)return!1;for(var S=0;S<l.length;S++)if(!d(l[S],v[S]))return!1;return!0}return typeof l=="object"&&l!==null&&typeof v=="object"&&v!==null&&u(l,v)}r.exports={metadataType:o,getClientMetadata:function(l){var v=new Date().getTime(),S=i();return l===o.queryString?"timestamp="+v+"&clientRequestId="+S:{timestamp:v,clientRequestId:S}},oneMinute:6e4,getClientRequestId:i,transformDomNodeContent:function(l){var v,S,O=l||"",C=O.length;return C<=1?(v="",S=""):C===2?(v=O.slice(0,1),S=""):C===3?(v=O.slice(0,1),S=O.slice(C-1)):C===4?(v=O.slice(0,2),S=O.slice(C-1)):C===5?(v=O.slice(0,2),S=O.slice(C-2)):C===6?(v=O.slice(0,3),S=O.slice(C-2)):C===7?(v=O.slice(0,3),S=O.slice(C-3)):C===8?(v=O.slice(0,4),S=O.slice(C-3)):C===9?(v=O.slice(0,5),S=O.slice(C-3)):C===10?(v=O.slice(0,5),S=O.slice(C-4)):C>10&&(v=O.slice(0,6),S=O.slice(C-4)),{length:C,prefix:v,suffix:S}},isSubObject:u,removeWhitespaces:function(l){return l&&(l instanceof String||typeof l=="string")?l.replace(/\s/g,""):l}}},651:function(r,t,e){var n,o=e(723),i=e(115),u=e(884);function d(){return i.getDeviceId()}r.exports={getDeviceId:function(){return n||(n=d()),n},getCoreModuleParams:function(l,v){var S=v||{},O=!!S.isFingerprintJsProOff,C=[];n&&n!==d()&&C.push([n,d()]);var N=u.getAppContextId(),B=S.bulkEvents||{},M=S.supressInstallBackwardCompatibility||[],F=typeof S.logMessageRate=="number"?S.logMessageRate:100,G=S.eventTrigger||"";return Object.assign(l,{deviceId:d(),linkedDevices:C,loadFingerprintJsPro:!O,clientVersion:o.version,appContextId:N,bulkEvents:B,supressInstallBackwardCompatibility:M,logMessageRate:F,eventTrigger:G,eventsReportUrl:S.eventsReportUrl})},parseInitParams:function(l,v){return typeof(S=l)=="string"||S instanceof String?{appId:l,partnerId:v}:l;var S},internalGetDeviceId:d}},342:function(r,t,e){var n=e(723),o=e(242),i=e(1),u=e(102),d=e(651),l=e(884),v=e(884);r.exports={version:n.version,init:l.isBrowser()?function(S,O){var C=d.parseInitParams(S,O),N=C.appId;i.init(n,{appId:N});var B=v.getConfigBaseUrls(C,n),M=B.mainConfigBaseUrl,F=B.altConfigBaseUrl;function G(et,ct){o.getCoreModuleLoadingInfo({appId:N,url:et},function(ft,ot){!ft&&ot||n.errorServerUrl&&i.send({msg:"Core loading error",reason:"config-file-load-fail",url:n.coreConfigFileUrl,errorDescription:ft}),ct(ot)})}function Q(et){typeof et.onPercentage=="number"&&l.randomInt(0,100)>et.onPercentage||function(ct,ft){var ot=d.getCoreModuleParams(ct,ft);u.init(ot)}(C,et)}return G(M,function(et){if(et)Q(et);else{if(!F)return;G(F,function(ct){ct&&Q(ct)})}}),d.getDeviceId()}:function(S,O){return null},getDeviceId:l.isBrowser()?function(){return d.getDeviceId()}:function(){return null}}},242:function(r,t,e){var n=e(611),o=e(528),i=e(884),u="ns_group";function d(l,v){(function(S,O){n.get(S).end(function(C,N){C?i.isFunction(O)&&O({ok:!1,errorDescription:JSON.stringify({err:C,res:N})}):i.isFunction(O)&&O(null,{ok:N.ok,status:N.status,response:N.body})})})(l.url,function(S,O){!S&&O&&O.response?i.isFunction(v)&&v(null,function(C,N){var B,M=N||{},F=M.configurations||{},G=F[C];if(G){var Q=function(){var bt=o.getItem(u);return bt||(bt=i.randomInt(1,100),o.setItem(u,bt)),bt}(),et=function(bt){var Rt=[],At=0;for(var gt in bt)if(bt.hasOwnProperty(gt)){var wt=bt[gt],kt=At;At+=wt.percentage,Rt.push({from:kt,to:At,url:wt.url})}return Rt}(G.groups),ct=function(bt,Rt){for(var At=0,gt=bt.length;At<gt;At++){var wt=bt[At];if(Rt>wt.from&&Rt<=wt.to)return wt}return null}(et,Q)||{};if(ct)for(B in ct)ct.hasOwnProperty(B)&&(G[B]=ct[B]);var ft=F.default||{};for(B in ft)ft.hasOwnProperty(B)&&!G.hasOwnProperty(B)&&(G[B]=ft[B])}else G=F.default||{};var ot={};for(B in M)M.hasOwnProperty(B)&&B!=="configurations"&&(ot[B]=M[B]);for(B in G)G.hasOwnProperty(B)&&["groups","from","to"].indexOf(B)===-1&&(ot[B]=G[B]);return ot}(l.appId,O.response)):i.isFunction(v)&&v(S.errorDescription)})}r.exports={getCoreModuleLoadingInfo:function(l,v){var S=0;l&&l.url?d(l,function O(C,N){C?(S+=1)<=3?d(l,O):i.isFunction(v)&&v(C):i.isFunction(v)&&v(null,N)}):i.isFunction(v)&&v("config url is not configured")}}},115:function(r,t,e){var n,o=e(550),i=e(528),u=e(13),d=e(884),l=e(616),v="ns_dev_id",S=[];function O(){var C=i.getItem(v);n||(n=C||l.toArray(o(),i.hasAccessToLocalStorage()),i.setItem(v,n))}r.exports={init:function(){u.init(function(){u.getKey(v,function(C){C?(n=C,i.setItem(v,n),u.cleanup()):(O(),u.setKey(v,n),setTimeout(u.cleanup,2e3));for(var N=0,B=S.length;N<B;N+=1){var M=S[N];d.isFunction(M)&&M()}S=[]})})},addOnReadyListener:function(C){S.push(C)},getDeviceId:function(){return O(),n},reset:function(){throw new Error("Cannot call reset!")}}},635:function(r,t,e){e.d(t,{C6:function(){return o},Cl:function(){return i},Tt:function(){return u},YH:function(){return l},fX:function(){return v},sH:function(){return d}});var n=function(S,O){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,N){C.__proto__=N}||function(C,N){for(var B in N)Object.prototype.hasOwnProperty.call(N,B)&&(C[B]=N[B])},n(S,O)};function o(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");function C(){this.constructor=S}n(S,O),S.prototype=O===null?Object.create(O):(C.prototype=O.prototype,new C)}var i=function(){return i=Object.assign||function(S){for(var O,C=1,N=arguments.length;C<N;C++)for(var B in O=arguments[C])Object.prototype.hasOwnProperty.call(O,B)&&(S[B]=O[B]);return S},i.apply(this,arguments)};function u(S,O){var C={};for(var N in S)Object.prototype.hasOwnProperty.call(S,N)&&O.indexOf(N)<0&&(C[N]=S[N]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function"){var B=0;for(N=Object.getOwnPropertySymbols(S);B<N.length;B++)O.indexOf(N[B])<0&&Object.prototype.propertyIsEnumerable.call(S,N[B])&&(C[N[B]]=S[N[B]])}return C}function d(S,O,C,N){return new(C||(C=Promise))(function(B,M){function F(et){try{Q(N.next(et))}catch(ct){M(ct)}}function G(et){try{Q(N.throw(et))}catch(ct){M(ct)}}function Q(et){var ct;et.done?B(et.value):(ct=et.value,ct instanceof C?ct:new C(function(ft){ft(ct)})).then(F,G)}Q((N=N.apply(S,O||[])).next())})}function l(S,O){var C,N,B,M,F={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return M={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function G(Q){return function(et){return function(ct){if(C)throw new TypeError("Generator is already executing.");for(;M&&(M=0,ct[0]&&(F=0)),F;)try{if(C=1,N&&(B=2&ct[0]?N.return:ct[0]?N.throw||((B=N.return)&&B.call(N),0):N.next)&&!(B=B.call(N,ct[1])).done)return B;switch(N=0,B&&(ct=[2&ct[0],B.value]),ct[0]){case 0:case 1:B=ct;break;case 4:return F.label++,{value:ct[1],done:!1};case 5:F.label++,N=ct[1],ct=[0];continue;case 7:ct=F.ops.pop(),F.trys.pop();continue;default:if(!((B=(B=F.trys).length>0&&B[B.length-1])||ct[0]!==6&&ct[0]!==2)){F=0;continue}if(ct[0]===3&&(!B||ct[1]>B[0]&&ct[1]<B[3])){F.label=ct[1];break}if(ct[0]===6&&F.label<B[1]){F.label=B[1],B=ct;break}if(B&&F.label<B[2]){F.label=B[2],F.ops.push(ct);break}B[2]&&F.ops.pop(),F.trys.pop();continue}ct=O.call(S,F)}catch(ft){ct=[6,ft],N=0}finally{C=B=0}if(5&ct[0])throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}([Q,et])}}}function v(S,O,C){if(C||arguments.length===2)for(var N,B=0,M=O.length;B<M;B++)!N&&B in O||(N||(N=Array.prototype.slice.call(O,0,B)),N[B]=O[B]);return S.concat(N||Array.prototype.slice.call(O))}typeof SuppressedError=="function"&&SuppressedError}},Fl={};function Dr(r){var t=Fl[r];if(t!==void 0)return t.exports;var e=Fl[r]={exports:{}};return Iy[r](e,e.exports,Dr),e.exports}Dr.d=function(r,t){for(var e in t)Dr.o(t,e)&&!Dr.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},Dr.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},Dr.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var Ni={};Dr.d(Ni,{IP:function(){return xi.getDeviceId},Ts:function(){return xi.init},rE:function(){return xi.version}});var xi=Dr(342);const ky={version:xi.version,init:xi.init,getDeviceId:xi.getDeviceId};Ni.Ay=ky;var Hl=Ni.Ay;Ni.IP,Ni.Ts,Ni.rE;class gr{env;url;constructor(t){this.env=t??"prod",this.env==="prod"?this.url="https://api.coinflow.cash":this.env==="local"?this.url="http://localhost:5000":this.url=`https://api-${this.env}.coinflow.cash`}async getNSurePartnerId(t){return fetch(this.url+`/merchant/view/${t}`).then(e=>e.json()).then(e=>e.nSureSettings?.nSurePartnerId||e.nSurePartnerId).catch(e=>{console.error(e)})}static getCoinflowBaseUrl(t){return!t||t==="prod"?"https://coinflow.cash":t==="ngrok"?"https://coinflow.ngrok.app":t==="local"?"http://localhost:3000":`https://${t}.coinflow.cash`}static getCoinflowApiUrl(t){return!t||t==="prod"?"https://api.coinflow.cash":t==="local"?"http://localhost:5000":`https://api-${t}.coinflow.cash`}static getCoinflowUrl({walletPubkey:t,sessionKey:e,route:n,routePrefix:o,env:i,subtotal:u,presentment:d,transaction:l,blockchain:v="solana",webhookInfo:S,email:O,loaderBackground:C,handleHeightChangeId:N,bankAccountLinkRedirect:B,additionalWallets:M,chargebackProtectionData:F,merchantCss:G,color:Q,rent:et,lockDefaultToken:ct,tokens:ft,planCode:ot,disableApplePay:bt,disableGooglePay:Rt,customerInfo:At,settlementType:gt,lockAmount:wt,nativeSolToConvert:kt,theme:q,usePermit:h,transactionSigner:T,authOnly:D,deviceId:Z,jwtToken:j,origins:X,threeDsChallengePreference:at,supportEmail:K,destinationAuthKey:p,allowedPaymentMethods:E,accountFundingTransaction:z,partialUsdcChecked:$,redemptionCheck:dt,allowedWithdrawSpeeds:_t,isZeroAuthorization:Dt}){const Yt=o?`/${o}/${v}`:`/${v}`,zt=new URL(Yt+n,gr.getCoinflowBaseUrl(i));if(t&&zt.searchParams.append("pubkey",t),e&&zt.searchParams.append("sessionKey",e),l&&zt.searchParams.append("transaction",l),u&&("cents"in u?(zt.searchParams.append("cents",u.cents.toString()),"currency"in u?zt.searchParams.append("currency",u.currency.toString()):zt.searchParams.append("currency",Wa.USD)):(zt.searchParams.append("token",u.address.toString()),zt.searchParams.append("amount",u.amount.toString()))),d&&zt.searchParams.append("presentment",d),S&&zt.searchParams.append("webhookInfo",tr.compressToEncodedURIComponent(JSON.stringify(S))),q&&zt.searchParams.append("theme",tr.compressToEncodedURIComponent(JSON.stringify(q))),At&&zt.searchParams.append("customerInfo",tr.compressToEncodedURIComponent(JSON.stringify(At))),O&&zt.searchParams.append("email",O),K&&zt.searchParams.append("supportEmail",K),ft&&zt.searchParams.append("tokens",ft.toString()),C&&zt.searchParams.append("loaderBackground",C),N&&zt.searchParams.append("useHeightChange",N.toString()),B&&zt.searchParams.append("bankAccountLinkRedirect",B),M&&zt.searchParams.append("additionalWallets",tr.compressToEncodedURIComponent(JSON.stringify(M))),F&&zt.searchParams.append("chargebackProtectionData",tr.compressToEncodedURIComponent(JSON.stringify(F))),Z)zt.searchParams.append("deviceId",Z);else if(typeof window<"u"){const fe=Hl.getDeviceId();fe&&zt.searchParams.append("deviceId",fe)}return G&&zt.searchParams.append("merchantCss",G),Q&&zt.searchParams.append("color",Q),et&&zt.searchParams.append("rent",et.lamports.toString()),dt&&zt.searchParams.append("redemptionCheck","true"),kt&&zt.searchParams.append("nativeSolToConvert",kt.lamports.toString()),ct&&zt.searchParams.append("lockDefaultToken","true"),ot&&zt.searchParams.append("planCode",ot),bt&&zt.searchParams.append("disableApplePay","true"),Rt&&zt.searchParams.append("disableGooglePay","true"),gt&&zt.searchParams.append("settlementType",gt),wt&&zt.searchParams.append("lockAmount","true"),h===!1&&zt.searchParams.append("usePermit","false"),T&&zt.searchParams.append("transactionSigner",T),D===!0&&zt.searchParams.append("authOnly","true"),Dt===!0&&zt.searchParams.append("zeroAuthorization","true"),$===!0&&zt.searchParams.append("partialUsdcChecked","true"),j&&zt.searchParams.append("jwtToken",j),X&&zt.searchParams.append("origins",tr.compressToEncodedURIComponent(JSON.stringify(X))),E&&zt.searchParams.append("allowedPaymentMethods",E.join(",")),at&&zt.searchParams.append("threeDsChallengePreference",at),p&&zt.searchParams.append("destinationAuthKey",p),z&&zt.searchParams.append("accountFundingTransaction",tr.compressToEncodedURIComponent(JSON.stringify(z))),_t&&zt.searchParams.append("allowedWithdrawSpeeds",_t.join(",")),zt.toString()}static getTransaction(t){if(t.blockchain)return this.byBlockchain(t.blockchain,{solana:()=>{if(!("transaction"in t))return;const{transaction:e}=t;if(!cs)throw new Error("@solana/web3.js dependency is required for Solana");if(!Mr)throw new Error("bs58 dependency is required for Solana");if(e)return Mr.encode(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))},polygon:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},eth:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},base:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},arbitrum:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},user:()=>{}})()}static byBlockchain(t,e){switch(t){case"solana":return e.solana;case"polygon":return e.polygon;case"eth":return e.eth;case"base":return e.base;case"arbitrum":return e.arbitrum;case"user":return e.user;default:throw new Error("blockchain not supported!")}}}function Oy(r){if(!r)return;let t,e;if("name"in r&&r.name&&(t=r.name.split(" ")[0],e=r.name.split(" ").slice(1).join(" ")),"firstName"in r&&r.firstName&&(t=r.firstName),"lastName"in r&&r.lastName&&(e=r.lastName),t&&e)return{firstName:t,lastName:e}}var za=(r=>(r.SignMessage="signMessage",r.SignTransaction="signTransaction",r.SendTransaction="sendTransaction",r.HeightChange="heightChange",r.Success="success",r.AuthDeclined="authDeclined",r.Loaded="loaded",r.AccountLinked="accountLinked",r))(za||{});function us(r){let t;if("signer"in r&&typeof r.signer=="object"&&r.signer&&"wallet"in r.signer?t=r.signer.wallet:"wallet"in r&&r.wallet&&(t=r.wallet),!!t){if(typeof t=="string")return t;if(typeof t=="object"){if("publicKey"in t)return t.publicKey?t.publicKey.toString():void 0;if("address"in t)return t.address?t.address:void 0}return null}}function Vl(r,t,e){let n;try{if(n=JSON.parse(r),!("method"in n)||!("data"in n))return}catch(u){console.error("handleIFrameMessage JSON parse",u);return}const{data:o,method:i}=n;switch(i){case"signMessage":return t.handleSignMessage?t.handleSignMessage(o):void 0;case"signTransaction":return t.handleSignTransaction?t.handleSignTransaction(o):void 0;case"sendTransaction":return t.handleSendTransaction(o);case"heightChange:"+e:return t.handleHeightChange?t.handleHeightChange(o):void 0;case"success":if(!t.onSuccess)return;t.onSuccess(n.info);return;case"authDeclined":if(!t.onAuthDeclined)return;t.onAuthDeclined(n.info);return;case"loaded":return;case"accountLinked":return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${i} is not one of ${Object.values(za)}`)}function ls(r){let t,e;return"signer"in r&&typeof r.signer=="object"&&r.signer&&"blockchain"in r.signer&&"wallet"in r.signer?(t=r.signer.blockchain,e=r.signer.wallet):"blockchain"in r&&r.blockchain&&(t=r.blockchain,e=r.wallet),t?gr.byBlockchain(t,{solana:()=>Ty({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),eth:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),polygon:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),base:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),arbitrum:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),user:()=>Ny(r)})():{handleSendTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignMessage:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}}function Ty({wallet:r,onSuccess:t,onAuthDeclined:e}){return{handleSendTransaction:async n=>{const o=Wl(n);return await r.sendTransaction(o)},handleSignMessage:async n=>{const o=r.signMessage;if(!o)throw new Error("signMessage is not supported by this wallet");const i=await o(new TextEncoder().encode(n));if(!Mr)throw new Error("bs58 dependency is required");return Mr.encode(i)},handleSignTransaction:async n=>{const o=r.signTransaction;if(!o)throw new Error("signTransaction is not supported by this wallet");const i=Wl(n),u=await o(i);if(!Mr)throw new Error("bs58 dependency is required");return Mr.encode(u.serialize({requireAllSignatures:!1,verifySignatures:!1}))},onSuccess:t,onAuthDeclined:e}}function Wl(r){if(!cs)throw new Error("@solana/web3.js is not defined. Please install @solana/web3.js into your project");if(!Mr)throw new Error("bs58 is not defined. Please install bs58 into your project");const t=Mr.decode(r),e=cs.VersionedTransaction.deserialize(t);return e.version==="legacy"?cs.Transaction.from(t):e}function fs({wallet:r,onSuccess:t,onAuthDeclined:e}){return{handleSendTransaction:async n=>{const o=JSON.parse(Buffer.from(n,"base64").toString()),{hash:i}=await r.sendTransaction(o);return i},handleSignMessage:async n=>r.signMessage(n),onSuccess:t,onAuthDeclined:e}}function Ny({onSuccess:r,onAuthDeclined:t}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:r,onAuthDeclined:t}}class xy{static on(t,e){document.addEventListener(t,e)}static dispatch(t,e){document.dispatchEvent(new CustomEvent(t,{detail:e}))}static remove(t,e){document.removeEventListener(t,e)}}const ro="tokenExCardNumber",Li="tokenExCardCvv",zl={[di.VISA]:"visa",[di.MASTERCARD]:"masterCard",[di.AMEX]:"americanExpress",[di.DISCOVER]:"discover"};async function Gl(r){const{token:t,origins:e,env:n}=r;return new Promise((o,i)=>{fetch(new gr(n).url+"/api/tokenize/iframe/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({origins:e,token:t,merchantId:"merchantId"in r?r.merchantId:void 0,checkoutJwt:"checkoutJwt"in r?r.checkoutJwt:void 0})}).then(async u=>{o(await u.json())}).catch(u=>i(u))})}function Ga({env:r,setTokenExScriptLoaded:t}){const e="tokenex-script";document.head.querySelector(`#${e}`)&&t(!0);const n=document.createElement("script");n.src=r==="prod"?"https://htp.tokenex.com/iframe/iframe-v3.min.js":"https://test-htp.tokenex.com/iframe/iframe-v3.min.js",n.id=e,document.head.appendChild(n),document.getElementById(e).addEventListener("load",()=>{console.log("Setting tokenExScriptLoaded to true!"),t(!0)})}function Ly({iframe:r,setCachedToken:t,setLoaded:e}){const n=async()=>(r.tokenize(),await new Promise((o,i)=>{r.on("tokenize",u=>{t(u.token),o(u)}),r.on("validate",u=>{(!u.isValid||u.isCvvValid===!1)&&i(u)})}));return r.on("change",()=>t(void 0)),r.on("cvvChange",()=>t(void 0)),r.on("load",()=>{setTimeout(()=>e(!0),350);const o=document.querySelector("#tx_iframe_tokenExCardNumber");o&&(o.scrolling="no")}),r.on("focus",()=>{r.focus()}),r.on("cvvFocus",()=>{r.cvvFocus()}),e(!1),r.load(),{...r,tokenize:n}}async function Kl(r){const{token:t,cardType:e}=r;return await Ka(Li,r,{cvvOnly:!0,cvv:!0,cvvContainerID:Li,placeholder:"CVV",token:t,cardType:zl[e]})}async function jl(r){return await Ka(ro,r,{cvv:!0,cvvContainerID:Li,cvvPlaceholder:"CVV"})}async function Yl(r){return await Ka(ro,r,{cvv:!1})}async function Ka(r,t,e){const{tokenExScriptLoaded:n,css:o,debug:i,font:u,setCachedToken:d,setLoaded:l}=t;if(!n&&typeof TokenEx>"u"){console.warn("Warning Unable to load TokenEx on first attempt waiting for load event from document.head.script#tokenex-script");return}const v=await Gl({...t,token:e.token}),{styles:S}=Cy(o),O={...v,placeholder:"0000 0000 0000 0000",enablePrettyFormat:!0,styles:S,font:u,debug:i??!1,...e},C=TokenEx.Iframe(r,O);return Ly({iframe:C,setCachedToken:d,setLoaded:l})}function Cy(r){const t=JSON.parse(r);return{styles:{base:Ur(t.base),focus:Ur(t.focus),error:Ur(t.error),placeholder:Ur(t.placeholder),cvv:{base:Ur(t.cvv?.base),focus:Ur(t.cvv?.focus),error:Ur(t.cvv?.error),placeholder:Ur(t?.placeholder)}}}}function Ur(r){if(!r)return"";if(typeof r=="string")return r;let t="";for(const[e,n]of Object.entries(r)){let o="";e.split("").forEach(i=>{i.toUpperCase()===i?o+="-"+i.toLowerCase():o+=i}),t+=o+":"+n+";"}return t}me.nftCartItem=void 0,(r=>{(t=>{t.NFT="nft"})(r.itemClass||(r.itemClass={})),(t=>{t.IN_GAME_PRODUCT="inGameProduct",t.GAME_OF_SKILL="gameOfSkill",t.DATA_STORAGE="dataStorage",t.COMPUTING_RESOURCES="computingResources",t.SPORTS_TICKET="sportsTicket",t.E_SPORTS_TICKET="eSportsTicket",t.MUSIC_TICKET="musicTicket",t.CONFERENCE_TICKET="conferenceTicket",t.VIRTUAL_SPORTS_TICKET="virtualSportsTicket",t.VIRTUAL_ESPORTS_TICKET="virtualESportsTicket",t.VIRTUAL_MUSIC_TICKET="virtualMusicTicket",t.VIRTUAL_CONFERENCE_TICKET="virtualConferenceTicket",t.ALCOHOL="alcohol",t.DLC="DLC",t.SUBSCRIPTION="subscription",t.FUND_ACAUSE="fundACause",t.REAL_ESTATE="realEstate",t.COMPUTING_CONTRACT="computingContract",t.DIGITAL_ART="digitalArt",t.TOP_UP="topUp",t.OWNERSHIP_CONTRACT="ownershipContract",t.IN_GAME_CURRENCY="inGameCurrency",t.MONEY_TOP_UP_CART_ITEM="moneyTopUpCartItem"})(r.productType||(r.productType={}))})(me.nftCartItem||(me.nftCartItem={}));const By=$t.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return gr.getCoinflowUrl(this.args)}},emits:{onMessage(r){return!0}},methods:{sendMessage(r){const t=this.$refs.iframeRef;if(!t?.contentWindow)throw new Error("Iframe not defined");t.contentWindow.postMessage(r,"*")},handleIframeMessages({data:r,origin:t}){if(!t.includes(gr.getCoinflowBaseUrl(this.args.env)))return;this.$emit("onMessage",{data:r,origin:t});const e=Vl(r,this.args,this.args.handleHeightChangeId);e&&e.then(this.sendMessage).catch(n=>{console.error(n),this.sendMessage("ERROR "+n.message)})},async listenForMessage(r){let t;return new Promise((e,n)=>{if(t=({data:o,origin:i})=>{if(i.includes(gr.getCoinflowBaseUrl(this.args.env))){if(o.startsWith("ERROR")){n(new Error(o.replace("ERROR","")));return}r(o)&&e(o)}},!window)throw new Error("Window not defined");window.addEventListener("message",t)}).finally(()=>{window.removeEventListener("message",t)})},async sendAndReceiveMessage(r,t){return this.sendMessage(r),this.listenForMessage(t)}},mounted(){if(!window)throw new Error("Window not defined");return window.addEventListener("message",this.handleIframeMessages),()=>{window.removeEventListener("message",this.handleIframeMessages)}}}),ja=(r,t)=>{const e=r.__vccOpts||r;for(const[n,o]of t)e[n]=o;return e},Py=["src","scrolling"];function My(r,t,e,n,o,i){return $t.openBlock(),$t.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write",title:"withdraw",frameBorder:"0",src:r.url,scrolling:r.args.handleHeightChange?"no":"yes",onLoad:t[0]||(t[0]=()=>{const u=r.$refs.iframeRef;u&&(u.style.opacity="1")})},null,40,Py)}const ds=ja(By,[["render",My]]),Dy=$t.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:ds},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const r=us(this.args);return{...this.args,walletPubkey:r,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...ls(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Uy(r,t,e,n,o,i){const u=$t.resolveComponent("coinflow-i-frame");return $t.openBlock(),$t.createBlock(u,{args:{...r.iframeProps,...r.messageHandlers,handleHeightChangeId:r.handleHeightChangeId}},null,8,["args"])}const Fy=ja(Dy,[["render",Uy]]),Hy=$t.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:ds},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const r=us(this.args);return{...this.args,walletPubkey:r,route:`/purchase-v2/${this.args.merchantId}`,transaction:gr.getTransaction(this.args)}},messageHandlers(){return{...ls(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Vy(r,t,e,n,o,i){const u=$t.resolveComponent("coinflow-i-frame");return $t.openBlock(),$t.createBlock(u,{args:{...r.iframeProps,...r.messageHandlers,handleHeightChangeId:r.handleHeightChangeId}},null,8,["args"])}const Wy=ja(Hy,[["render",Vy]]),Ya=r=>{const t=$t.ref(!1),e=$t.ref(!1),n=$t.ref(void 0),o=$t.ref(void 0);$t.onMounted(()=>{Ga({env:r.env,setTokenExScriptLoaded:()=>{console.log("tokenExScriptLoaded.value = true"),e.value=!0}})});const i=O=>o.value=O,u=()=>t.value=!0,d=O=>n.value=O,l=async O=>{const C=await Kl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C},v=async O=>{const C=await jl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C},S=async O=>{const C=await Yl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C};return $t.watchEffect(O=>{n.value&&(n.value.load(),O(()=>n.value?.remove()))}),{tokenExIframe:n,initializeTokenExIframe:v,initializeCvvOnlyTokenExIframe:l,initializeTokenExCardOnlyIframe:S,loaded:t,cachedToken:o,setTokenExScriptTag:Ga,tokenExScriptLoaded:e}},zy=["id"],Gy=$t.defineComponent({__name:"CoinflowCardNumberInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{initializeTokenExIframe:e,tokenExIframe:n}=Ya(r.args);async function o(){if(!n.value)throw new Error("Unable to get token");return n.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return $t.watchEffect(()=>{e({css:i(),debug:r.args.debug,origins:r.args.origins,font:r.args.font})},{}),(u,d)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(ro)},null,8,zy))}}),Ky=["id"],jy=$t.defineComponent({__name:"CoinflowCvvInput",setup(r){return(t,e)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(Li)},null,8,Ky))}}),Yy=["id"],qy=$t.defineComponent({__name:"CoinflowCvvOnlyInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{initializeCvvOnlyTokenExIframe:e,tokenExIframe:n}=Ya(r.args);async function o(){if(!n.value)throw new Error("Unable to get token");return n.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return $t.watchEffect(()=>{e({...r.args,origins:r.args.origins??[],css:i(),font:r.args.font})},{}),(u,d)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(Li)},null,8,Yy))}}),$y=$t.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(r){const t=$t.ref(void 0);$t.onMounted(()=>new gr(r.args.env).getNSurePartnerId(r.args.merchantId).then(n=>t.value=n));function e(){return r.args.env==="prod"?"9JBW2RHC7JNJN8ZQ":"SANDBOX_CTCE4XK53ZW0R7V1"}return $t.watchEffect(n=>{t.value&&Hl.init(e(),t.value)}),(n,o)=>null}}),Zy=["id"],Xy=$t.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{tokenExIframe:e,initializeTokenExCardOnlyIframe:n}=Ya(r.args);async function o(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return $t.watchEffect(()=>{n({css:i(),debug:r.args.debug,origins:r.args.origins,font:r.args.font})},{}),(u,d)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(ro)},null,8,Zy))}}),Jy={style:{position:"relative",height:"100%"}},Qy={style:{position:"relative",zIndex:10,height:"100%"}},ql=$t.defineComponent({__name:"MobileWalletButton",props:{args:{type:Object,required:!0},route:{type:String,required:!0},overlayDisplayOverride:{type:String,required:!1},alignItems:{type:String,required:!1}},setup(r){const{onSuccess:t}=r.args;function e(){const l=us(r.args);return{...r.args,walletPubkey:l,transaction:void 0,routePrefix:"form",route:`/${r.route}/${r.args.merchantId}`}}function n(){return{...ls(r.args),handleHeightChange:r.args.handleHeightChange}}const o=$t.ref(.8),i=$t.ref("flex"),u=Math.random().toString(16).substring(2);function d({data:l}){try{const v=JSON.parse(l);if("method"in v&&v.method==="loaded"&&(o.value=1,i.value="none"),"method"in v&&v.data.startsWith("ERROR"))return r.args?.onError?.(v.info),!1;if(!("method"in v)||v.method!=="getToken")return}catch{return}t?.(l)}return(l,v)=>($t.openBlock(),$t.createElementBlock("div",Jy,[$t.createElementVNode("div",{style:$t.normalizeStyle({backgroundColor:r.args.color,display:r.overlayDisplayOverride??i.value,opacity:o.value,alignItems:r.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[$t.renderSlot(l.$slots,"default")],4),$t.createElementVNode("div",Qy,[$t.createVNode(ds,{onOnMessage:d,args:{...e(),...n(),handleHeightChangeId:$t.unref(u)}},null,8,["args"])])]))}}),t4={id:"svg-logo",viewBox:"0 0 35 15"},e4={id:"svg-logo",x:"0",y:"3.85",height:"7.3",width:"35",className:"logo",viewBox:"0 0 105 43",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n4={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r4=["fill"],i4=$t.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(r){const t=r.color==="white"?"#000":"#FFF";return(e,n)=>($t.openBlock(),$t.createElementBlock("svg",t4,[($t.openBlock(),$t.createElementBlock("svg",e4,[n[1]||(n[1]=$t.createElementVNode("title",null,"Apple Logo",-1)),$t.createElementVNode("g",n4,[$t.createElementVNode("g",{fill:$t.unref(t)},[...n[0]||(n[0]=[$t.createStaticVNode('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>',5)])],8,r4)])]))]))}}),o4=$t.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(r){return(t,e)=>($t.openBlock(),$t.createBlock(ql,{route:"apple-pay",args:r.args},{default:$t.withCtx(()=>[$t.createVNode(i4,{color:r.args.color},null,8,["color"])]),_:1},8,["args"]))}}),s4={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},a4={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},c4=$t.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(r){return(t,e)=>($t.openBlock(),$t.createElementBlock($t.Fragment,null,[r.color==="white"?($t.openBlock(),$t.createElementBlock("svg",s4,[...e[0]||(e[0]=[$t.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>',1)])])):$t.createCommentVNode("",!0),r.color==="black"?($t.openBlock(),$t.createElementBlock("svg",a4,[...e[1]||(e[1]=[$t.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>',1)])])):$t.createCommentVNode("",!0)],64))}}),u4=$t.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(r){return(t,e)=>($t.openBlock(),$t.createBlock(ql,{route:"google-pay",args:r.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:$t.withCtx(()=>[$t.createVNode(c4,{color:r.args.color},null,8,["color"])]),_:1},8,["args"]))}});me.BankingCurrencies=Ul,me.CARD_TYPE_MAPPING=zl,me.CardType=di,me.CoinflowApplePayButton=o4,me.CoinflowCardNumberInput=Gy,me.CoinflowCardNumberOnlyInput=Xy,me.CoinflowCvvInput=jy,me.CoinflowCvvOnlyInput=qy,me.CoinflowGooglePayButton=u4,me.CoinflowIframe=ds,me.CoinflowPurchase=Wy,me.CoinflowPurchaseProtection=$y,me.CoinflowUtils=gr,me.CoinflowWithdraw=Fy,me.Currency=Wa,me.CurrencyToISO4217=yy,me.EventBus=xy,me.IFrameMessageMethods=za,me.MerchantStyle=kc,me.PaymentMethods=Tc,me.SettlementType=Ic,me.ThreeDsChallengePreference=Oc,me.TokenExCardNumberIframeId=ro,me.TokenExCvvContainerID=Li,me.WithdrawCategory=Sc,me.WithdrawCurrencies=Dl,me.WithdrawSpeed=Ac,me.doInitializeCvvOnlyTokenExIframe=Kl,me.doInitializeTokenExCardOnlyIframe=Yl,me.doInitializeTokenExIframe=jl,me.getCurrencyDecimals=Sy,me.getCustomerName=Oy,me.getHandlers=ls,me.getIframeConfig=Gl,me.getWalletPubkey=us,me.handleIFrameMessage=Vl,me.isBankingCurrency=by,me.isTypedCurrencyCents=Ay,me.isWithdrawCurrency=wy,me.paymentMethodLabels=bd,me.setTokenExScriptTag=Ga,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});
|
|
23
|
+
components: `).concat(vt(Ct),"\n```")),[2,Mt]}})})}}}function U(A){var V=A===void 0?{}:A,W=V.delayFallback,it=V.debug,Lt=V.monitoring,Ct=Lt===void 0||Lt;return(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(Mt){switch(Mt.label){case 0:return Ct&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var Pt=new XMLHttpRequest;Pt.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),Pt.send()}catch(rt){console.error(rt)}}(),[4,Gt(W)];case 1:return Mt.sent(),[2,ee(Rt(lt,{debug:it},[]),it)]}})})}var R={load:U,hashComponents:xt,componentsToDebugString:vt},k=F},526:function(r,t){t.byteLength=function(v){var S=d(v),O=S[0],C=S[1];return 3*(O+C)/4-C},t.toByteArray=function(v){var S,O,C=d(v),N=C[0],B=C[1],M=new o(function(Q,et,ct){return 3*(et+ct)/4-ct}(0,N,B)),F=0,G=B>0?N-4:N;for(O=0;O<G;O+=4)S=n[v.charCodeAt(O)]<<18|n[v.charCodeAt(O+1)]<<12|n[v.charCodeAt(O+2)]<<6|n[v.charCodeAt(O+3)],M[F++]=S>>16&255,M[F++]=S>>8&255,M[F++]=255&S;return B===2&&(S=n[v.charCodeAt(O)]<<2|n[v.charCodeAt(O+1)]>>4,M[F++]=255&S),B===1&&(S=n[v.charCodeAt(O)]<<10|n[v.charCodeAt(O+1)]<<4|n[v.charCodeAt(O+2)]>>2,M[F++]=S>>8&255,M[F++]=255&S),M},t.fromByteArray=function(v){for(var S,O=v.length,C=O%3,N=[],B=16383,M=0,F=O-C;M<F;M+=B)N.push(l(v,M,M+B>F?F:M+B));return C===1?(S=v[O-1],N.push(e[S>>2]+e[S<<4&63]+"==")):C===2&&(S=(v[O-2]<<8)+v[O-1],N.push(e[S>>10]+e[S>>4&63]+e[S<<2&63]+"=")),N.join("")};for(var e=[],n=[],o=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)e[u]=i[u],n[i.charCodeAt(u)]=u;function d(v){var S=v.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=v.indexOf("=");return O===-1&&(O=S),[O,O===S?0:4-O%4]}function l(v,S,O){for(var C,N,B=[],M=S;M<O;M+=3)C=(v[M]<<16&16711680)+(v[M+1]<<8&65280)+(255&v[M+2]),B.push(e[(N=C)>>18&63]+e[N>>12&63]+e[N>>6&63]+e[63&N]);return B.join("")}n[45]=62,n[95]=63},287:function(r,t,e){const n=e(526),o=e(251),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const u=2147483647;function d(y){if(y>u)throw new RangeError('The value "'+y+'" is invalid for option "size"');const P=new Uint8Array(y);return Object.setPrototypeOf(P,l.prototype),P}function l(y,P,H){if(typeof y=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(y)}return v(y,P,H)}function v(y,P,H){if(typeof y=="string")return function(vt,xt){if(typeof xt=="string"&&xt!==""||(xt="utf8"),!l.isEncoding(xt))throw new TypeError("Unknown encoding: "+xt);const Gt=0|M(vt,xt);let ee=d(Gt);const U=ee.write(vt,xt);return U!==Gt&&(ee=ee.slice(0,U)),ee}(y,P);if(ArrayBuffer.isView(y))return function(vt){if(_e(vt,Uint8Array)){const xt=new Uint8Array(vt);return N(xt.buffer,xt.byteOffset,xt.byteLength)}return C(vt)}(y);if(y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(_e(y,ArrayBuffer)||y&&_e(y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(_e(y,SharedArrayBuffer)||y&&_e(y.buffer,SharedArrayBuffer)))return N(y,P,H);if(typeof y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const lt=y.valueOf&&y.valueOf();if(lt!=null&<!==y)return l.from(lt,P,H);const mt=function(vt){if(l.isBuffer(vt)){const xt=0|B(vt.length),Gt=d(xt);return Gt.length===0||vt.copy(Gt,0,0,xt),Gt}return vt.length!==void 0?typeof vt.length!="number"||we(vt.length)?d(0):C(vt):vt.type==="Buffer"&&Array.isArray(vt.data)?C(vt.data):void 0}(y);if(mt)return mt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof y[Symbol.toPrimitive]=="function")return l.from(y[Symbol.toPrimitive]("string"),P,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}function S(y){if(typeof y!="number")throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function O(y){return S(y),d(y<0?0:0|B(y))}function C(y){const P=y.length<0?0:0|B(y.length),H=d(P);for(let lt=0;lt<P;lt+=1)H[lt]=255&y[lt];return H}function N(y,P,H){if(P<0||y.byteLength<P)throw new RangeError('"offset" is outside of buffer bounds');if(y.byteLength<P+(H||0))throw new RangeError('"length" is outside of buffer bounds');let lt;return lt=P===void 0&&H===void 0?new Uint8Array(y):H===void 0?new Uint8Array(y,P):new Uint8Array(y,P,H),Object.setPrototypeOf(lt,l.prototype),lt}function B(y){if(y>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|y}function M(y,P){if(l.isBuffer(y))return y.length;if(ArrayBuffer.isView(y)||_e(y,ArrayBuffer))return y.byteLength;if(typeof y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);const H=y.length,lt=arguments.length>2&&arguments[2]===!0;if(!lt&&H===0)return 0;let mt=!1;for(;;)switch(P){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return zt(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*H;case"hex":return H>>>1;case"base64":return fe(y).length;default:if(mt)return lt?-1:zt(y).length;P=(""+P).toLowerCase(),mt=!0}}function F(y,P,H){let lt=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0)<=(P>>>=0))return"";for(y||(y="utf8");;)switch(y){case"hex":return h(this,P,H);case"utf8":case"utf-8":return gt(this,P,H);case"ascii":return kt(this,P,H);case"latin1":case"binary":return q(this,P,H);case"base64":return At(this,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,P,H);default:if(lt)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),lt=!0}}function G(y,P,H){const lt=y[P];y[P]=y[H],y[H]=lt}function Q(y,P,H,lt,mt){if(y.length===0)return-1;if(typeof H=="string"?(lt=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),we(H=+H)&&(H=mt?0:y.length-1),H<0&&(H=y.length+H),H>=y.length){if(mt)return-1;H=y.length-1}else if(H<0){if(!mt)return-1;H=0}if(typeof P=="string"&&(P=l.from(P,lt)),l.isBuffer(P))return P.length===0?-1:et(y,P,H,lt,mt);if(typeof P=="number")return P&=255,typeof Uint8Array.prototype.indexOf=="function"?mt?Uint8Array.prototype.indexOf.call(y,P,H):Uint8Array.prototype.lastIndexOf.call(y,P,H):et(y,[P],H,lt,mt);throw new TypeError("val must be string, number or Buffer")}function et(y,P,H,lt,mt){let vt,xt=1,Gt=y.length,ee=P.length;if(lt!==void 0&&((lt=String(lt).toLowerCase())==="ucs2"||lt==="ucs-2"||lt==="utf16le"||lt==="utf-16le")){if(y.length<2||P.length<2)return-1;xt=2,Gt/=2,ee/=2,H/=2}function U(R,k){return xt===1?R[k]:R.readUInt16BE(k*xt)}if(mt){let R=-1;for(vt=H;vt<Gt;vt++)if(U(y,vt)===U(P,R===-1?0:vt-R)){if(R===-1&&(R=vt),vt-R+1===ee)return R*xt}else R!==-1&&(vt-=vt-R),R=-1}else for(H+ee>Gt&&(H=Gt-ee),vt=H;vt>=0;vt--){let R=!0;for(let k=0;k<ee;k++)if(U(y,vt+k)!==U(P,k)){R=!1;break}if(R)return vt}return-1}function ct(y,P,H,lt){H=Number(H)||0;const mt=y.length-H;lt?(lt=Number(lt))>mt&&(lt=mt):lt=mt;const vt=P.length;let xt;for(lt>vt/2&&(lt=vt/2),xt=0;xt<lt;++xt){const Gt=parseInt(P.substr(2*xt,2),16);if(we(Gt))return xt;y[H+xt]=Gt}return xt}function ft(y,P,H,lt){return le(zt(P,y.length-H),y,H,lt)}function ot(y,P,H,lt){return le(function(mt){const vt=[];for(let xt=0;xt<mt.length;++xt)vt.push(255&mt.charCodeAt(xt));return vt}(P),y,H,lt)}function bt(y,P,H,lt){return le(fe(P),y,H,lt)}function Rt(y,P,H,lt){return le(function(mt,vt){let xt,Gt,ee;const U=[];for(let R=0;R<mt.length&&!((vt-=2)<0);++R)xt=mt.charCodeAt(R),Gt=xt>>8,ee=xt%256,U.push(ee),U.push(Gt);return U}(P,y.length-H),y,H,lt)}function At(y,P,H){return P===0&&H===y.length?n.fromByteArray(y):n.fromByteArray(y.slice(P,H))}function gt(y,P,H){H=Math.min(y.length,H);const lt=[];let mt=P;for(;mt<H;){const vt=y[mt];let xt=null,Gt=vt>239?4:vt>223?3:vt>191?2:1;if(mt+Gt<=H){let ee,U,R,k;switch(Gt){case 1:vt<128&&(xt=vt);break;case 2:ee=y[mt+1],(192&ee)==128&&(k=(31&vt)<<6|63&ee,k>127&&(xt=k));break;case 3:ee=y[mt+1],U=y[mt+2],(192&ee)==128&&(192&U)==128&&(k=(15&vt)<<12|(63&ee)<<6|63&U,k>2047&&(k<55296||k>57343)&&(xt=k));break;case 4:ee=y[mt+1],U=y[mt+2],R=y[mt+3],(192&ee)==128&&(192&U)==128&&(192&R)==128&&(k=(15&vt)<<18|(63&ee)<<12|(63&U)<<6|63&R,k>65535&&k<1114112&&(xt=k))}}xt===null?(xt=65533,Gt=1):xt>65535&&(xt-=65536,lt.push(xt>>>10&1023|55296),xt=56320|1023&xt),lt.push(xt),mt+=Gt}return function(vt){const xt=vt.length;if(xt<=wt)return String.fromCharCode.apply(String,vt);let Gt="",ee=0;for(;ee<xt;)Gt+=String.fromCharCode.apply(String,vt.slice(ee,ee+=wt));return Gt}(lt)}l.TYPED_ARRAY_SUPPORT=function(){try{const y=new Uint8Array(1),P={foo:function(){return 42}};return Object.setPrototypeOf(P,Uint8Array.prototype),Object.setPrototypeOf(y,P),y.foo()===42}catch{return!1}}(),l.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||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(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(y,P,H){return v(y,P,H)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(y,P,H){return function(lt,mt,vt){return S(lt),lt<=0?d(lt):mt!==void 0?typeof vt=="string"?d(lt).fill(mt,vt):d(lt).fill(mt):d(lt)}(y,P,H)},l.allocUnsafe=function(y){return O(y)},l.allocUnsafeSlow=function(y){return O(y)},l.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==l.prototype},l.compare=function(y,P){if(_e(y,Uint8Array)&&(y=l.from(y,y.offset,y.byteLength)),_e(P,Uint8Array)&&(P=l.from(P,P.offset,P.byteLength)),!l.isBuffer(y)||!l.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===P)return 0;let H=y.length,lt=P.length;for(let mt=0,vt=Math.min(H,lt);mt<vt;++mt)if(y[mt]!==P[mt]){H=y[mt],lt=P[mt];break}return H<lt?-1:lt<H?1:0},l.isEncoding=function(y){switch(String(y).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}},l.concat=function(y,P){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return l.alloc(0);let H;if(P===void 0)for(P=0,H=0;H<y.length;++H)P+=y[H].length;const lt=l.allocUnsafe(P);let mt=0;for(H=0;H<y.length;++H){let vt=y[H];if(_e(vt,Uint8Array))mt+vt.length>lt.length?(l.isBuffer(vt)||(vt=l.from(vt)),vt.copy(lt,mt)):Uint8Array.prototype.set.call(lt,vt,mt);else{if(!l.isBuffer(vt))throw new TypeError('"list" argument must be an Array of Buffers');vt.copy(lt,mt)}mt+=vt.length}return lt},l.byteLength=M,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const y=this.length;if(y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let P=0;P<y;P+=2)G(this,P,P+1);return this},l.prototype.swap32=function(){const y=this.length;if(y%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let P=0;P<y;P+=4)G(this,P,P+3),G(this,P+1,P+2);return this},l.prototype.swap64=function(){const y=this.length;if(y%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let P=0;P<y;P+=8)G(this,P,P+7),G(this,P+1,P+6),G(this,P+2,P+5),G(this,P+3,P+4);return this},l.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?gt(this,0,y):F.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(y){if(!l.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y||l.compare(this,y)===0},l.prototype.inspect=function(){let y="";const P=t.IS;return y=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(y+=" ... "),"<Buffer "+y+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(y,P,H,lt,mt){if(_e(y,Uint8Array)&&(y=l.from(y,y.offset,y.byteLength)),!l.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(P===void 0&&(P=0),H===void 0&&(H=y?y.length:0),lt===void 0&&(lt=0),mt===void 0&&(mt=this.length),P<0||H>y.length||lt<0||mt>this.length)throw new RangeError("out of range index");if(lt>=mt&&P>=H)return 0;if(lt>=mt)return-1;if(P>=H)return 1;if(this===y)return 0;let vt=(mt>>>=0)-(lt>>>=0),xt=(H>>>=0)-(P>>>=0);const Gt=Math.min(vt,xt),ee=this.slice(lt,mt),U=y.slice(P,H);for(let R=0;R<Gt;++R)if(ee[R]!==U[R]){vt=ee[R],xt=U[R];break}return vt<xt?-1:xt<vt?1:0},l.prototype.includes=function(y,P,H){return this.indexOf(y,P,H)!==-1},l.prototype.indexOf=function(y,P,H){return Q(this,y,P,H,!0)},l.prototype.lastIndexOf=function(y,P,H){return Q(this,y,P,H,!1)},l.prototype.write=function(y,P,H,lt){if(P===void 0)lt="utf8",H=this.length,P=0;else if(H===void 0&&typeof P=="string")lt=P,H=this.length,P=0;else{if(!isFinite(P))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");P>>>=0,isFinite(H)?(H>>>=0,lt===void 0&&(lt="utf8")):(lt=H,H=void 0)}const mt=this.length-P;if((H===void 0||H>mt)&&(H=mt),y.length>0&&(H<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");lt||(lt="utf8");let vt=!1;for(;;)switch(lt){case"hex":return ct(this,y,P,H);case"utf8":case"utf-8":return ft(this,y,P,H);case"ascii":case"latin1":case"binary":return ot(this,y,P,H);case"base64":return bt(this,y,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rt(this,y,P,H);default:if(vt)throw new TypeError("Unknown encoding: "+lt);lt=(""+lt).toLowerCase(),vt=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const wt=4096;function kt(y,P,H){let lt="";H=Math.min(y.length,H);for(let mt=P;mt<H;++mt)lt+=String.fromCharCode(127&y[mt]);return lt}function q(y,P,H){let lt="";H=Math.min(y.length,H);for(let mt=P;mt<H;++mt)lt+=String.fromCharCode(y[mt]);return lt}function h(y,P,H){const lt=y.length;(!P||P<0)&&(P=0),(!H||H<0||H>lt)&&(H=lt);let mt="";for(let vt=P;vt<H;++vt)mt+=Ee[y[vt]];return mt}function T(y,P,H){const lt=y.slice(P,H);let mt="";for(let vt=0;vt<lt.length-1;vt+=2)mt+=String.fromCharCode(lt[vt]+256*lt[vt+1]);return mt}function D(y,P,H){if(y%1!=0||y<0)throw new RangeError("offset is not uint");if(y+P>H)throw new RangeError("Trying to access beyond buffer length")}function Z(y,P,H,lt,mt,vt){if(!l.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>mt||P<vt)throw new RangeError('"value" argument is out of bounds');if(H+lt>y.length)throw new RangeError("Index out of range")}function j(y,P,H,lt,mt){dt(P,lt,mt,y,H,7);let vt=Number(P&BigInt(4294967295));y[H++]=vt,vt>>=8,y[H++]=vt,vt>>=8,y[H++]=vt,vt>>=8,y[H++]=vt;let xt=Number(P>>BigInt(32)&BigInt(4294967295));return y[H++]=xt,xt>>=8,y[H++]=xt,xt>>=8,y[H++]=xt,xt>>=8,y[H++]=xt,H}function X(y,P,H,lt,mt){dt(P,lt,mt,y,H,7);let vt=Number(P&BigInt(4294967295));y[H+7]=vt,vt>>=8,y[H+6]=vt,vt>>=8,y[H+5]=vt,vt>>=8,y[H+4]=vt;let xt=Number(P>>BigInt(32)&BigInt(4294967295));return y[H+3]=xt,xt>>=8,y[H+2]=xt,xt>>=8,y[H+1]=xt,xt>>=8,y[H]=xt,H+8}function at(y,P,H,lt,mt,vt){if(H+lt>y.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function K(y,P,H,lt,mt){return P=+P,H>>>=0,mt||at(y,0,H,4),o.write(y,P,H,lt,23,4),H+4}function p(y,P,H,lt,mt){return P=+P,H>>>=0,mt||at(y,0,H,8),o.write(y,P,H,lt,52,8),H+8}l.prototype.slice=function(y,P){const H=this.length;(y=~~y)<0?(y+=H)<0&&(y=0):y>H&&(y=H),(P=P===void 0?H:~~P)<0?(P+=H)<0&&(P=0):P>H&&(P=H),P<y&&(P=y);const lt=this.subarray(y,P);return Object.setPrototypeOf(lt,l.prototype),lt},l.prototype.readUintLE=l.prototype.readUIntLE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y],mt=1,vt=0;for(;++vt<P&&(mt*=256);)lt+=this[y+vt]*mt;return lt},l.prototype.readUintBE=l.prototype.readUIntBE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y+--P],mt=1;for(;P>0&&(mt*=256);)lt+=this[y+--P]*mt;return lt},l.prototype.readUint8=l.prototype.readUInt8=function(y,P){return y>>>=0,P||D(y,1,this.length),this[y]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(y,P){return y>>>=0,P||D(y,2,this.length),this[y]|this[y+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(y,P){return y>>>=0,P||D(y,2,this.length),this[y]<<8|this[y+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(y,P){return y>>>=0,P||D(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+16777216*this[y+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(y,P){return y>>>=0,P||D(y,4,this.length),16777216*this[y]+(this[y+1]<<16|this[y+2]<<8|this[y+3])},l.prototype.readBigUInt64LE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=P+256*this[++y]+65536*this[++y]+this[++y]*2**24,mt=this[++y]+256*this[++y]+65536*this[++y]+H*2**24;return BigInt(lt)+(BigInt(mt)<<BigInt(32))}),l.prototype.readBigUInt64BE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=P*2**24+65536*this[++y]+256*this[++y]+this[++y],mt=this[++y]*2**24+65536*this[++y]+256*this[++y]+H;return(BigInt(lt)<<BigInt(32))+BigInt(mt)}),l.prototype.readIntLE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y],mt=1,vt=0;for(;++vt<P&&(mt*=256);)lt+=this[y+vt]*mt;return mt*=128,lt>=mt&&(lt-=Math.pow(2,8*P)),lt},l.prototype.readIntBE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=P,mt=1,vt=this[y+--lt];for(;lt>0&&(mt*=256);)vt+=this[y+--lt]*mt;return mt*=128,vt>=mt&&(vt-=Math.pow(2,8*P)),vt},l.prototype.readInt8=function(y,P){return y>>>=0,P||D(y,1,this.length),128&this[y]?-1*(255-this[y]+1):this[y]},l.prototype.readInt16LE=function(y,P){y>>>=0,P||D(y,2,this.length);const H=this[y]|this[y+1]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt16BE=function(y,P){y>>>=0,P||D(y,2,this.length);const H=this[y+1]|this[y]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt32LE=function(y,P){return y>>>=0,P||D(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},l.prototype.readInt32BE=function(y,P){return y>>>=0,P||D(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},l.prototype.readBigInt64LE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=this[y+4]+256*this[y+5]+65536*this[y+6]+(H<<24);return(BigInt(lt)<<BigInt(32))+BigInt(P+256*this[++y]+65536*this[++y]+this[++y]*2**24)}),l.prototype.readBigInt64BE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=(P<<24)+65536*this[++y]+256*this[++y]+this[++y];return(BigInt(lt)<<BigInt(32))+BigInt(this[++y]*2**24+65536*this[++y]+256*this[++y]+H)}),l.prototype.readFloatLE=function(y,P){return y>>>=0,P||D(y,4,this.length),o.read(this,y,!0,23,4)},l.prototype.readFloatBE=function(y,P){return y>>>=0,P||D(y,4,this.length),o.read(this,y,!1,23,4)},l.prototype.readDoubleLE=function(y,P){return y>>>=0,P||D(y,8,this.length),o.read(this,y,!0,52,8)},l.prototype.readDoubleBE=function(y,P){return y>>>=0,P||D(y,8,this.length),o.read(this,y,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(y,P,H,lt){y=+y,P>>>=0,H>>>=0,lt||Z(this,y,P,H,Math.pow(2,8*H)-1,0);let mt=1,vt=0;for(this[P]=255&y;++vt<H&&(mt*=256);)this[P+vt]=y/mt&255;return P+H},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(y,P,H,lt){y=+y,P>>>=0,H>>>=0,lt||Z(this,y,P,H,Math.pow(2,8*H)-1,0);let mt=H-1,vt=1;for(this[P+mt]=255&y;--mt>=0&&(vt*=256);)this[P+mt]=y/vt&255;return P+H},l.prototype.writeUint8=l.prototype.writeUInt8=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,1,255,0),this[P]=255&y,P+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,65535,0),this[P]=255&y,this[P+1]=y>>>8,P+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,65535,0),this[P]=y>>>8,this[P+1]=255&y,P+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,4294967295,0),this[P+3]=y>>>24,this[P+2]=y>>>16,this[P+1]=y>>>8,this[P]=255&y,P+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,4294967295,0),this[P]=y>>>24,this[P+1]=y>>>16,this[P+2]=y>>>8,this[P+3]=255&y,P+4},l.prototype.writeBigUInt64LE=je(function(y,P=0){return j(this,y,P,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=je(function(y,P=0){return X(this,y,P,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(y,P,H,lt){if(y=+y,P>>>=0,!lt){const Gt=Math.pow(2,8*H-1);Z(this,y,P,H,Gt-1,-Gt)}let mt=0,vt=1,xt=0;for(this[P]=255&y;++mt<H&&(vt*=256);)y<0&&xt===0&&this[P+mt-1]!==0&&(xt=1),this[P+mt]=(y/vt|0)-xt&255;return P+H},l.prototype.writeIntBE=function(y,P,H,lt){if(y=+y,P>>>=0,!lt){const Gt=Math.pow(2,8*H-1);Z(this,y,P,H,Gt-1,-Gt)}let mt=H-1,vt=1,xt=0;for(this[P+mt]=255&y;--mt>=0&&(vt*=256);)y<0&&xt===0&&this[P+mt+1]!==0&&(xt=1),this[P+mt]=(y/vt|0)-xt&255;return P+H},l.prototype.writeInt8=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,1,127,-128),y<0&&(y=255+y+1),this[P]=255&y,P+1},l.prototype.writeInt16LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,32767,-32768),this[P]=255&y,this[P+1]=y>>>8,P+2},l.prototype.writeInt16BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,32767,-32768),this[P]=y>>>8,this[P+1]=255&y,P+2},l.prototype.writeInt32LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,2147483647,-2147483648),this[P]=255&y,this[P+1]=y>>>8,this[P+2]=y>>>16,this[P+3]=y>>>24,P+4},l.prototype.writeInt32BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[P]=y>>>24,this[P+1]=y>>>16,this[P+2]=y>>>8,this[P+3]=255&y,P+4},l.prototype.writeBigInt64LE=je(function(y,P=0){return j(this,y,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=je(function(y,P=0){return X(this,y,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(y,P,H){return K(this,y,P,!0,H)},l.prototype.writeFloatBE=function(y,P,H){return K(this,y,P,!1,H)},l.prototype.writeDoubleLE=function(y,P,H){return p(this,y,P,!0,H)},l.prototype.writeDoubleBE=function(y,P,H){return p(this,y,P,!1,H)},l.prototype.copy=function(y,P,H,lt){if(!l.isBuffer(y))throw new TypeError("argument should be a Buffer");if(H||(H=0),lt||lt===0||(lt=this.length),P>=y.length&&(P=y.length),P||(P=0),lt>0&<<H&&(lt=H),lt===H||y.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(lt<0)throw new RangeError("sourceEnd out of bounds");lt>this.length&&(lt=this.length),y.length-P<lt-H&&(lt=y.length-P+H);const mt=lt-H;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(P,H,lt):Uint8Array.prototype.set.call(y,this.subarray(H,lt),P),mt},l.prototype.fill=function(y,P,H,lt){if(typeof y=="string"){if(typeof P=="string"?(lt=P,P=0,H=this.length):typeof H=="string"&&(lt=H,H=this.length),lt!==void 0&&typeof lt!="string")throw new TypeError("encoding must be a string");if(typeof lt=="string"&&!l.isEncoding(lt))throw new TypeError("Unknown encoding: "+lt);if(y.length===1){const vt=y.charCodeAt(0);(lt==="utf8"&&vt<128||lt==="latin1")&&(y=vt)}}else typeof y=="number"?y&=255:typeof y=="boolean"&&(y=Number(y));if(P<0||this.length<P||this.length<H)throw new RangeError("Out of range index");if(H<=P)return this;let mt;if(P>>>=0,H=H===void 0?this.length:H>>>0,y||(y=0),typeof y=="number")for(mt=P;mt<H;++mt)this[mt]=y;else{const vt=l.isBuffer(y)?y:l.from(y,lt),xt=vt.length;if(xt===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(mt=0;mt<H-P;++mt)this[mt+P]=vt[mt%xt]}return this};const E={};function z(y,P,H){E[y]=class extends H{constructor(){super(),Object.defineProperty(this,"message",{value:P.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${y}]`,this.stack,delete this.name}get code(){return y}set code(lt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:lt,writable:!0})}toString(){return`${this.name} [${y}]: ${this.message}`}}}function $(y){let P="",H=y.length;const lt=y[0]==="-"?1:0;for(;H>=lt+4;H-=3)P=`_${y.slice(H-3,H)}${P}`;return`${y.slice(0,H)}${P}`}function dt(y,P,H,lt,mt,vt){if(y>H||y<P){const xt=typeof P=="bigint"?"n":"";let Gt;throw Gt=P===0||P===BigInt(0)?`>= 0${xt} and < 2${xt} ** ${8*(vt+1)}${xt}`:`>= -(2${xt} ** ${8*(vt+1)-1}${xt}) and < 2 ** ${8*(vt+1)-1}${xt}`,new E.ERR_OUT_OF_RANGE("value",Gt,y)}(function(xt,Gt,ee){_t(Gt,"offset"),xt[Gt]!==void 0&&xt[Gt+ee]!==void 0||Dt(Gt,xt.length-(ee+1))})(lt,mt,vt)}function _t(y,P){if(typeof y!="number")throw new E.ERR_INVALID_ARG_TYPE(P,"number",y)}function Dt(y,P,H){throw Math.floor(y)!==y?(_t(y,H),new E.ERR_OUT_OF_RANGE("offset","an integer",y)):P<0?new E.ERR_BUFFER_OUT_OF_BOUNDS:new E.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${P}`,y)}z("ERR_BUFFER_OUT_OF_BOUNDS",function(y){return y?`${y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),z("ERR_INVALID_ARG_TYPE",function(y,P){return`The "${y}" argument must be of type number. Received type ${typeof P}`},TypeError),z("ERR_OUT_OF_RANGE",function(y,P,H){let lt=`The value of "${y}" is out of range.`,mt=H;return Number.isInteger(H)&&Math.abs(H)>2**32?mt=$(String(H)):typeof H=="bigint"&&(mt=String(H),(H>BigInt(2)**BigInt(32)||H<-(BigInt(2)**BigInt(32)))&&(mt=$(mt)),mt+="n"),lt+=` It must be ${P}. Received ${mt}`,lt},RangeError);const Yt=/[^+/0-9A-Za-z-_]/g;function zt(y,P){let H;P=P||1/0;const lt=y.length;let mt=null;const vt=[];for(let xt=0;xt<lt;++xt){if(H=y.charCodeAt(xt),H>55295&&H<57344){if(!mt){if(H>56319){(P-=3)>-1&&vt.push(239,191,189);continue}if(xt+1===lt){(P-=3)>-1&&vt.push(239,191,189);continue}mt=H;continue}if(H<56320){(P-=3)>-1&&vt.push(239,191,189),mt=H;continue}H=65536+(mt-55296<<10|H-56320)}else mt&&(P-=3)>-1&&vt.push(239,191,189);if(mt=null,H<128){if((P-=1)<0)break;vt.push(H)}else if(H<2048){if((P-=2)<0)break;vt.push(H>>6|192,63&H|128)}else if(H<65536){if((P-=3)<0)break;vt.push(H>>12|224,H>>6&63|128,63&H|128)}else{if(!(H<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;vt.push(H>>18|240,H>>12&63|128,H>>6&63|128,63&H|128)}}return vt}function fe(y){return n.toByteArray(function(P){if((P=(P=P.split("=")[0]).trim().replace(Yt,"")).length<2)return"";for(;P.length%4!=0;)P+="=";return P}(y))}function le(y,P,H,lt){let mt;for(mt=0;mt<lt&&!(mt+H>=P.length||mt>=y.length);++mt)P[mt+H]=y[mt];return mt}function _e(y,P){return y instanceof P||y!=null&&y.constructor!=null&&y.constructor.name!=null&&y.constructor.name===P.name}function we(y){return y!=y}const Ee=function(){const y="0123456789abcdef",P=new Array(256);for(let H=0;H<16;++H){const lt=16*H;for(let mt=0;mt<16;++mt)P[lt+mt]=y[H]+y[mt]}return P}();function je(y){return typeof BigInt>"u"?xe:y}function xe(){throw new Error("BigInt not supported")}},527:function(r,t,e){var n=e(188),o=e(539),i=e(682);for(var u in n)n[u]=i(d(u));function d(l){return n[l]}n._api=o,r.exports=n},539:function(r){r.exports={letConst:{passes:"'use strict'; let a; const b = 2;"},letLoop:{passes:"'use strict'; for(let i in {}){}; for(let i=0;;){break}"},constLoop:{passes:"'use strict'; for(const i in {}){}; for (const i=0;;){break}"},defaultParameter:{passes:"'use strict'; function a(b=2){}"},spreadRest:{passes:"'use strict'; var a = [1,2]; +function b(...c){}(...a);"},destructuring:{passes:"'use strict'; var a = [1,2], [b,c] = a, d = {e:1,f:2}, {e:E,f} = d;"},parameterDestructuring:{passes:"'use strict'; function a({b,c}){}"},templateString:{passes:"'use strict'; var a = 1, b = `c${a}d`;"},forOf:{passes:"'use strict'; for (var a of [1]) {}"},arrow:{passes:"'use strict'; var a = () => {};"},generator:{passes:"'use strict'; function *a(){ yield; }"},conciseMethodProperty:{passes:"'use strict'; var a = 1, b = { c(){}, a };"},computedProperty:{passes:"'use strict'; var a = 1, b = { ['x'+a]: 2 };"},moduleExport:{passes:"'use strict'; export var a = 1;"},moduleImport:{passes:"'use strict'; import {a} from 'b';"},classes:{passes:"'use strict'; class Foo {}; class Bar extends Foo {};"},numericLiteral:{passes:"'use strict'; var a = 0o1, b = 0b10;"},oldOctalLiteral:{fails:"'use strict'; var a = 01;"},symbol:{passes:"'use strict'; var a = Symbol('b');"},symbolImplicitCoercion:{dependencies:["symbol"],fails:"'use strict'; var a = Symbol('a'); a + '';"},unicodeEscape:{passes:"'use strict'; var a = '\\u{20BB7}';"},unicodeIdentifier:{passes:"'use strict'; var \\u{20BB7};"},unicodeRegExp:{passes:"'use strict'; var a = /\\u{20BB7}/u;"},stickyRegExp:{passes:"'use strict'; var a = /b/y;"},letTDZ:{dependencies:["letConst"],fails:"'use strict'; a = 1; let a;"},letLoopScope:{dependencies:["letLoop","forOf"],passes:"'use strict'; var x=[],i=0;for(let i=2;i<3;i++){x.push(function(){return i})};for(let i in {3:0}){x.push(function(){return i})};for(let i of [4]){x.push(function(){return i})};if(x[0]()*x[1]()*x[2]()!=24) throw 0;"},constRedef:{dependencies:["letConst"],fails:"'use strict'; const a = 1; a = 2;"},objectProto:{passes:"'use strict'; var a = { b: 2 }, c = { __proto__: a }; if (c.b !== 2) throw 0;"},objectSuper:{passes:"'use strict'; var a = { b: 2 }, c = { d() { return super.b; } }; Object.setPrototypeOf(c,a); if (c.d() !== 2) throw 0;"},extendNatives:{dependencies:["class"],passes:"'use strict'; class Foo extends Array { }; var a = new Foo(); a.push(1,2,3); if (a.length !== 3) throw 0;"},TCO:{passes:"'use strict'; +function a(b){ if (b<6E4) return a(b+1); }(0);"},functionNameInference:{passes:"'use strict'; var a = { b: function(){} }; if (a.b.name != 'b') throw 0;"},ObjectStatics:{is:"'use strict'; return ('getOwnPropertySymbols' in Object) && ('assign' in Object) && ('is' in Object);"},ArrayStatics:{is:"'use strict'; return ('from' in Array) && ('of' in Array);"},ArrayMethods:{is:"'use strict'; return ('fill' in Array.prototype) && ('find' in Array.prototype) && ('findIndex' in Array.prototype) && ('entries' in Array.prototype) && ('keys' in Array.prototype) && ('values' in Array.prototype);"},TypedArrays:{is:"'use strict'; return ('ArrayBuffer' in global) && ('Int8Array' in global) && ('Uint8Array' in global) && ('Int32Array' in global) && ('Float64Array' in global);"},TypedArrayStatics:{dependencies:["TypedArrays"],is:"'use strict'; return ('from' in Uint32Array) && ('of' in Uint32Array);"},TypedArrayMethods:{dependencies:["TypedArrays"],is:"'use strict'; var x = new Int8Array(1); return ('slice' in x) && ('join' in x) && ('map' in x) && ('forEach' in x);"},StringMethods:{is:"'use strict'; return ('includes' in String.prototype) && ('repeat' in String.prototype);"},NumberStatics:{is:"'use strict'; return ('isNaN' in Number) && ('isInteger' in Number);"},MathStatics:{is:"'use strict'; return ('hypot' in Math) && ('acosh' in Math) && ('imul' in Math);"},collections:{is:"'use strict'; return ('Map' in global) && ('Set' in global) && ('WeakMap' in global) && ('WeakSet' in global);"},Proxy:{is:"'use strict'; return ('Proxy' in global);"},Promise:{is:"'use strict'; return ('Promise' in global);"},Reflect:{is:"'use strict'; return ('Reflect' in global);"}}},188:function(r){r.exports=new function(){this.letConst="letConst",this.letTDZ="letTDZ",this.constRedef="constRedef",this.destructuring="destructuring",this.spreadRest="spreadRest",this.forOf="forOf",this.collections="collections",this.symbol="symbol",this.Symbol=this.symbol,this.symbolImplicitCoercion="symbolImplicitCoercion",this.numericLiteral="numericLiteral",this.oldOctalLiteral="oldOctalLiteral",this.MathStatics="MathStatics",this.mathStatics=this.MathStatics,this.NumberStatics="NumberStatics",this.numberStatics=this.NumberStatics,this.StringMethods="StringMethods",this.stringMethods=this.StringMethods,this.unicodeEscape="unicodeEscape",this.unicodeIdentifier="unicodeIdentifier",this.unicodeRegExp="unicodeRegExp",this.stickyRegExp="stickyRegExp",this.templateString="templateString",this.arrow="arrow",this.defaultParameter="defaultParameter",this.parameterDestructuring="parameterDestructuring",this.functionNameInference="functionNameInference",this.TCO="TCO",this.tco=this.TCO,this.ArrayMethods="ArrayMethods",this.arrayMethods=this.ArrayMethods,this.ArrayStatics="ArrayStatics",this.arrayStatics=this.ArrayStatics,this.TypedArrayMethods="TypedArrayMethods",this.typedArrayMethods=this.TypedArrayMethods,this.TypedArrayStatics="TypedArrayStatics",this.typedArrayStatics=this.TypedArrayStatics,this.TypedArrays="TypedArrays",this.typedArrays=this.TypedArrays,this.objectProto="objectProto",this.ObjectStatics="ObjectStatics",this.objectStatics=this.ObjectStatics,this.computedProperty="computedProperty",this.conciseMethodProperty="conciseMethodProperty",this.Proxy="Proxy",this.proxy=this.Proxy,this.Reflect="Reflect",this.reflect=this.Reflect,this.generator="generator",this.Promise="Promise",this.promise=this.Promise,this.classes="classes",this.class=this.classes,this.objectSuper="objectSuper",this.extendNatives="extendNatives",this.moduleExport="moduleExport",this.moduleImport="moduleImport"}},682:function(r,t,e){var n=e(539),o={};function i(l){try{return d(l),!0}catch{return!1}}function u(l){try{return d(l)}catch{return!1}}function d(l){return new Function(l)()}o._api=n,r.exports=function l(v){if(v==="class"&&(v="classes"),o._api[v].dependencies){for(var S=0;S<o._api[v].dependencies.length;S++)if(l(o._api[v].dependencies[S])===!1)return!1}return o._api[v].passes?i(o._api[v].passes):o._api[v].fails?!i(o._api[v].fails):o._api[v].is?u(o._api[v].is):o._api[v].not?!u(o._api[v].not):void 0}},251:function(r,t){t.read=function(e,n,o,i,u){var d,l,v=8*u-i-1,S=(1<<v)-1,O=S>>1,C=-7,N=o?u-1:0,B=o?-1:1,M=e[n+N];for(N+=B,d=M&(1<<-C)-1,M>>=-C,C+=v;C>0;d=256*d+e[n+N],N+=B,C-=8);for(l=d&(1<<-C)-1,d>>=-C,C+=i;C>0;l=256*l+e[n+N],N+=B,C-=8);if(d===0)d=1-O;else{if(d===S)return l?NaN:1/0*(M?-1:1);l+=Math.pow(2,i),d-=O}return(M?-1:1)*l*Math.pow(2,d-i)},t.write=function(e,n,o,i,u,d){var l,v,S,O=8*d-u-1,C=(1<<O)-1,N=C>>1,B=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=i?0:d-1,F=i?1:-1,G=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(v=isNaN(n)?1:0,l=C):(l=Math.floor(Math.log(n)/Math.LN2),n*(S=Math.pow(2,-l))<1&&(l--,S*=2),(n+=l+N>=1?B/S:B*Math.pow(2,1-N))*S>=2&&(l++,S/=2),l+N>=C?(v=0,l=C):l+N>=1?(v=(n*S-1)*Math.pow(2,u),l+=N):(v=n*Math.pow(2,N-1)*Math.pow(2,u),l=0));u>=8;e[o+M]=255&v,M+=F,v/=256,u-=8);for(l=l<<u|v,O+=u;O>0;e[o+M]=255&l,M+=F,l/=256,O-=8);e[o+M-F]|=128*G}},943:function(r){function t(e){this.message=e}t.prototype=new Error,t.prototype.name="InvalidCharacterError",r.exports=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var n=String(e).replace(/=+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,u=0,d=0,l="";i=n.charAt(d++);~i&&(o=u%4?64*o+i:i,u++%4)?l+=String.fromCharCode(255&o>>(-2*u&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return l}},863:function(r,t,e){var n=e(943);r.exports=function(o){var i=o.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw"Illegal base64url string!"}try{return function(u){return decodeURIComponent(n(u).replace(/(.)/g,function(d,l){var v=l.charCodeAt(0).toString(16).toUpperCase();return v.length<2&&(v="0"+v),"%"+v}))}(i)}catch{return n(i)}}},127:function(r,t,e){var n=e(863);function o(i){this.message=i}o.prototype=new Error,o.prototype.name="InvalidTokenError",r.exports=function(i,u){if(typeof i!="string")throw new o("Invalid token specified");var d=(u=u||{}).header===!0?0:1;try{return JSON.parse(n(i.split(".")[d]))}catch(l){throw new o("Invalid token specified: "+l.message)}},r.exports.InvalidTokenError=o},471:function(r){for(var t=[],e=0;e<256;++e)t[e]=(e+256).toString(16).substr(1);r.exports=function(n,o){var i=o||0,u=t;return[u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]]].join("")}},814:function(r){var t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t){var e=new Uint8Array(16);r.exports=function(){return t(e),e}}else{var n=new Array(16);r.exports=function(){for(var o,i=0;i<16;i++)3&i||(o=4294967296*Math.random()),n[i]=o>>>((3&i)<<3)&255;return n}}},550:function(r,t,e){var n=e(814),o=e(471);r.exports=function(i,u,d){var l=u&&d||0;typeof i=="string"&&(u=i==="binary"?new Array(16):null,i=null);var v=(i=i||{}).random||(i.rng||n)();if(v[6]=15&v[6]|64,v[8]=63&v[8]|128,u)for(var S=0;S<16;++S)u[l+S]=v[S];return u||o(v)}},723:function(r){r.exports={version:"1.1.90",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(r,t,e){var n=e(287).hp;r.exports={toArray:function(o,i){if(!o||o.length!==36)return o;for(var u="",d=i?"0":"1",l=0;l<36;l+=1)u+=l>=26&&l<30?d:o[l];var v=function(C){for(var N=255,B=255,M=0,F=C.length;F;){var G=F>20?20:F;F-=G;do B+=N+=C[M++];while(--G);N=(255&N)+(N>>8),B=(255&B)+(B>>8)}return((B=(255&B)+(B>>8))<<8|(N=(255&N)+(N>>8))).toString(16)}(n.from(u));if(v){var S="";if(v.length===4)S+=v;else if(v.length<4){for(var O=0;O<4-v.length;O+=1)S+=d;S+=v}else S+=v.slice(-4)}return u.substring(0,26)+S+u.substring(26+S.length)}}},108:function(r){function t(){this.listeners={}}t.prototype.addEventListener=function(e,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(n)},t.prototype.removeEventListener=function(e,n){if(e in this.listeners){for(var o=this.listeners[e],i=0,u=o.length;i<u;i++)if(o[i]===n)return void o.splice(i,1)}},t.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var n=this.listeners[e.type].slice(),o=0,i=n.length;o<i;o++)n[o].call(this,e);return!e.defaultPrevented},r.exports=t},1:function(r){var t=null,e=null,n=0;function o(i,u){return encodeURIComponent(i)+"="+encodeURIComponent(u)}r.exports={init:function(i,u){t=i.errorServerUrl+"/reportSdkMsg",e=u.appId,n=typeof u.logMessageRate=="number"?u.logMessageRate:100},send:function(i){if(t&&!(100*Math.random()>n)){var u=t;u+="?"+o("appId",e),u+="&"+o("msg",JSON.stringify(i));var d=new Image;d.onerror=function(){},d.src=u}}}},611:function(r){var t=function(){function e(o,i){this.method=o,this.url=i,this.headers={},this.data=null,this.timeout=1e4}e.prototype.set=function(o,i){if(typeof o=="object")for(var u in o)o.hasOwnProperty(u)&&(this.headers[u]=o[u]);else this.headers[o]=i;return this},e.prototype.send=function(o){return this.data=o,this},e.prototype.timeout=function(o){return this.timeout=o,this},e.prototype.end=function(o){var i=this,u={method:this.method,headers:this.headers};function d(C,N){return{ok:!1,status:N?N.status:400,response:C instanceof Error?C.message:C}}if(this.data&&(u.body=JSON.stringify(this.data)),typeof fetch=="function"){var l,v=fetch(this.url,u).then(function(C){if(!C.ok)throw{response:C,message:C.statusText||"HTTP error "+C.status};return function(N){var B=N.headers.get("content-type");return B&&B.includes("application/json")?N.json().then(function(M){return{ok:N.ok,status:N.status,body:M}}):N.text().then(function(M){return{ok:N.ok,status:N.status,body:M}})}(C)}),S=new Promise(function(C,N){l=setTimeout(function(){N(new Error("Request timeout"))},i.timeout)});Promise.race([v,S]).then(function(C){clearTimeout(l),C.ok?o(null,C):o(d(C.response,C))}).catch(function(C){clearTimeout(l),o(d(C.message,C&&C.response))})}else{var O=new XMLHttpRequest;O.open(this.method,this.url,!0),Object.keys(this.headers).forEach(function(C){O.setRequestHeader(C,i.headers[C])}),O.timeout=this.timeout,O.onload=function(){var C={ok:O.status>=200&&O.status<300,status:O.status,body:O.responseText};try{C.body=JSON.parse(O.responseText)}catch{}C.ok?o(null,C):o(d("HTTP error "+O.status,C))},O.onerror=function(){o(d("Error",{status:400}))},O.ontimeout=function(){o(d("Timeout",{status:408}))},O.send(this.data?JSON.stringify(this.data):null)}};var n={};return["get","post","put","delete"].forEach(function(o){n[o]=function(i){return new e(o,i)}}),n}();r.exports=t},776:function(r,t,e){var n,o,i=e(611),u=e(723),d=e(884),l=u.serverUrl;function v(){n=n||{},o!==void 0&&(n[u.headers.sessionId]=o);var S={Accept:"application/json","Content-Type":"application/json"};return Object.keys(n).forEach(function(O){n[O]!==void 0&&(S[O]=n[O])}),S}r.exports={setSessionId:function(S){o=S},makeRequest:function(S,O){var C=S.path,N=S.data,B=S.method;(function M(F){i[B](F+"/"+C).set(v()).send(N).end(function(G,Q){if(G){if(F!==u.serverUrl)return void M(u.serverUrl);d.isFunction(O)&&O({ok:!1,status:G.status,response:G.response})}else d.isFunction(O)&&O(null,{ok:Q.ok,status:Q.status,response:Q.body})})})(l)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:v,init:function(S,O){(function(C){n=C})(S),O.eventsReportUrl&&typeof O.eventsReportUrl=="string"&&(l=d.normalizePath(O.eventsReportUrl))}}},13:function(r,t,e){var n,o=e(723),i="getItem";function u(l,v){l&&l.contentWindow.postMessage(v,"*")}function d(l,v,S){l.removeEventListener?l.removeEventListener(v,S,!1):l.attachEvent&&l.detachEvent("on"+v,S)}r.exports={init:function(l){var v,S=(v=!1,function(){v||(v=!0,l())});(n=document.createElement("iframe")).id="storageIframe",n.width=n.height=n.frameBorder=0,n.style.display="none",n.setAttribute("src",o.storageIframeUrl),n.onload=S,n.onerror=S,document.body.appendChild(n),window.setTimeout(S,1e4)},getKey:function(l,v){var S,O,C,N,B,M;n||v(),S=window,O="message",N=function F(G){if(G.data&&typeof G.data=="string")try{var Q=JSON.parse(G.data);if(Q.command===i){var et=Q.response;d(window,"message",F),v(et)}}catch{d(window,"message",F),v()}},B=v,M=!1,window.setTimeout(function(){M||(M=!0,B())},5e3),C=function(F){M||(M=!0,N(F))},S.addEventListener?S.addEventListener(O,C,!1):S.attachEvent&&S.attachEvent("on"+O,C),u(n,JSON.stringify({command:i,key:l}))},setKey:function(l,v){u(n,JSON.stringify({command:"setItem",key:l,value:v}))},cleanup:function(){n&&n.parentElement&&n.parentElement.removeChild&&(n.parentElement.removeChild(n),n=null)}}},528:function(r){var t,e={setItem:function(l,v){this[l]=v},getItem:function(l){return this[l]},removeItem:function(l){delete this[l]}};function n(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch{return!1}}function o(){return t===void 0&&(t=n()),t?localStorage:e}function i(l,v){o().setItem(l,v)}function u(l){return o().getItem(l)}function d(l){return o().removeItem(l)}r.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:i,getItem:u,getBackwardCompatabilityItem:function(l,v){var S=u(l);return!S&&v&&(S=u(v))&&(i(l,S),d(v)),S},removeItem:d,hasAccessToLocalStorage:n,getSessionItem:function(l){try{return sessionStorage.getItem(l)}catch{return e.getItem(l)}},setSessionItem:function(l,v){try{return sessionStorage.setItem(l,v)}catch{return e.setItem(l,v)}}}},884:function(r){var t="nsure-app-cid";function e(n){var o=n;return o&&o.charAt(o.length-1)==="/"&&(o=o.slice(0,-1)),o&&!/^https?:\/\//i.test(o)&&(o="https://"+o),o}r.exports={isFunction:function(n){return typeof n=="function"},loadScript:function(n,o){var i=!1,u=document.createElement("script");function d(){i||(i=!0,o())}u.onload=d,u.onreadystatechange=function(){i||u.readyState!=="complete"||d()},u.onerror=function(){i||(i=!0,o("Error loading script"))},u.src=n,document.body.appendChild(u)},loadImage:function(n){var o=document.createElement("img");o.src=n,o.style.height=0,o.style.width=0,o.style.display="none",o.style.visibility="hidden",document.body.appendChild(o)},randomInt:function(n,o){var i,u=o-n+1;return Math.floor(((i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&window.msCrypto.getRandomValues.bind(window.msCrypto))?i(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*u+n)},isValidDate:function(n){return n instanceof Date&&!isNaN(n)},getAppContextId:function(){try{var n=sessionStorage.getItem(t);n?sessionStorage.removeItem(t):n=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(o=n,function(){try{sessionStorage.setItem(t,o)}catch{}}))}catch{n=0}var o;return n},isBrowser:function(){return typeof document<"u"&&typeof navigator<"u"&&typeof document.createElement=="function"},normalizePath:e,getConfigBaseUrls:function(n,o){var i=null;if(typeof n.configBaseUrl=="string"&&n.configBaseUrl.length>0){var u=o.coreConfigFileUrl.indexOf("/core-config/"),d=u>0?o.coreConfigFileUrl.substring(u):"/core-config/config.json";i=e(n.configBaseUrl)+d}return{mainConfigBaseUrl:i||o.coreConfigFileUrl,altConfigBaseUrl:i===o.coreConfigFileUrl?null:o.coreConfigFileUrl}}}},543:function(r){var t="f8ad0f9b-",e="ns_install_reported",n=t+e,o=t+"ns_reportedFpInSession";r.exports={webType:"Web",oldInstallEventReportedKeyName:e,installEventReportedKeyName:n,fingerprintReportedInSessionKey:o,eventTriggers:{fingerPrint:"fingerprint"}}},38:function(r){r.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy"}},298:function(r){r.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},102:function(r,t,e){var n=e(723),o=e(776),i=e(387),u=e(733),d=e(472),l=e(376),v=e(120),S=e(142),O=e(636),C=e(496),N=e(1),B=e(336);r.exports={init:function(M){var F=M.deviceId,G=M.linkedDevices,Q={};Q[n.headers.appId]=M.appId,Q[n.headers.partnerId]=M.partnerId,Q[n.headers.sdkClientVersion]=n.version,Q[n.headers.sdkApiVersion]=n.sdkApiVersion,Q[n.headers.sdkClientType]=n.sdkClientType,Q[n.headers.appContextId]=M.appContextId,o.init(Q,M),i.addMetadataProps(M),N.init(n,M),i.reportInitEvent(F),C.init(M),B.init(M),u.installSdk(M,function(et){et||l.manageFingerprint(F,!0)}),u.reportLinkDevices(F,G),d.manageSessionId({deviceId:F,initModuleConfig:M}),v.manageDomEvents(F),S.manageKeepAlive({deviceId:F}),O.reportVersionUpgrade({deviceId:F,initModuleVersion:M.clientVersion,coreModuleVersion:n.version})}}},143:function(r,t,e){var n=e(108),o=e(23).oneMinute,i=e(298);function u(){n.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function d(l){n.call(this),this.activityServiceId=l}u.prototype=Object.create(n.prototype),u.prototype.constructor=u,u.prototype.observe=function(){var l=this;Object.keys(this.activityEvents).forEach(function(v){document.addEventListener(v,l.activityEvents[v]=function(){l.activityHandler()})})},u.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(i.activityEvent))},u.prototype.stopActivityListeners=function(){var l=this;Object.keys(this.activityEvents).forEach(function(v){document.removeEventListener(v,l.activityEvents[v])})},d.prototype=Object.create(n.prototype),d.prototype.constructor=d,d.prototype.trackInactivity=function(l){var v,S=new u,O=this,C=!1;function N(){C||(clearTimeout(v),setTimeout(function(){O.trackInactivity(l)},o))}S.addEventListener(i.activityEvent,N),S.observe(),v=setTimeout(function(){C=!0,S.stopActivityListeners(),S.removeEventListener(i.activityEvent,N),O.dispatchEvent(new Event(i.inactivityEvent))},l)},r.exports=d},496:function(r,t,e){var n,o=e(120),i=e(776),u=e(376),d=e(23),l=e(723),v=e(38),S=e(543),O=e(336),C=e(884),N=[],B=[],M=null,F=6e4,G=5e3,Q=null,et=C.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),ct=0,ft=null,ot=Date.now(),bt=0,Rt=null,At=!1,gt=!1,wt=!1,kt=!1,q=[];function h(){B=N,N=[],Z(),T()}function T(){M&&clearTimeout(M),M=setTimeout(h,F)}function D(){var $={device:{id:n,type:S.webType},metadata:{clientRequestId:d.getClientRequestId()}};return Q&&Q.fingerprintHash&&($.device.fingerprint=Q.fingerprintHash),$}function Z($){if(B.length)if(Q!==null){var dt=Object.assign(D(),{events:B});i.makeRequest({path:"bulk",data:dt,method:i.methods.post},$)}else u.getFingerprint(function(_t){Q=_t,Z($)})}function j($,dt){return N.push($),dt?new Blob([JSON.stringify(N)]).size:0}function X(){if(wt){var $=Date.now();$-ot>G&&(j({i:{dr:$-ot,ac:$-ot-bt},metadata:{type:v.I,timestamp:$}},!1),bt=0)}}function at(){T(),B=N,N=[],Z()}function K($){X(),function(){if(kt&&Math.random()<.25){for(var dt=[],_t=0;_t<3;_t++)dt.push(String.fromCharCode(Math.floor(26*Math.random())+97));var Dt=v.DY+dt[0],Yt={metadata:{type:Dt,timestamp:Date.now()}};Yt[Dt]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},Yt[Dt][dt.join("")]=Math.floor(1e3*Math.random())+1,j(Yt,!1)}}(),function(dt){O.triggerEventOnEvent(dt)}($),j(Object.assign({metadata:{type:$.eventType,timestamp:Date.now()}},$.payload),!0)>32768&&at(),$.eventType!==v.C&&$.eventType!==v.S&&$.eventType!==v.KD&&$.eventType!==v.MM||(ot=Date.now())}function p(){At&&at()}function E($){return window.addEventListener($,p,!0),function(){window.removeEventListener($,p,!0)}}function z($,dt){return!$||$.indexOf(dt)>-1}r.exports={init:function($){if(!At){var dt=$.bulkEvents&&$.bulkEvents.mask;if(!Array.isArray(dt)||dt.length!==0){var _t=$.bulkEvents&&typeof $.bulkEvents.pct=="number"?$.bulkEvents.pct:100;if(!(_t===0||Math.random()>_t/100)){var Dt=$.bulkEvents&&$.bulkEvents.appMaskInclude;if(!Array.isArray(Dt)||Dt.indexOf($.appId)!==-1){var Yt=$.bulkEvents&&$.bulkEvents.appMaskExclude;if(!Array.isArray(Yt)||Yt.indexOf($.appId)===-1){var zt=z(dt,v.C),fe=z(dt,v.KD),le=z(dt,v.S),_e=z(dt,v.PC),we=z(dt,v.MM),Ee=z(dt,v.PL),je=z(dt,v.I),xe=z(dt,v.DY),y=je||Ee;n=$.deviceId,T(),zt&&q.push(o.setClickListener(K)),fe&&q.push(o.setKeyDownListener(K)),le&&q.push(o.setScrollListener(K)),_e&&q.push(o.setPageChangeListener(K)),we&&q.push(o.setMouseMoveListener(K)),gt=Ee,wt=je,kt=xe,y&&q.push(function(){function P(){if(document.hidden)ft=Date.now(),Rt=ft;else if(ft!==null){var H=Date.now();ct+=H-ft,ft=null,bt+=H-Rt}}return document.addEventListener("visibilitychange",P),function(){document.removeEventListener("visibilitychange",P)}}()),q.push(function(){function P(){if(X(),function(){if(gt){var xt=Date.now(),Gt=xt-et;j({metadata:{type:v.PL,timestamp:xt},pl:{dr:Gt,ac:Gt-ct}},!1)}}(),navigator.sendBeacon&&window.URLSearchParams){if(N.length>0){var H=i.getRequestHeaders(),lt=Object.assign(D(),{events:N}),mt=new URLSearchParams;mt.append("data",JSON.stringify(lt)),mt.append("headers",JSON.stringify(H));var vt=new Blob([mt.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(l.serverUrl+"/bulk",vt)}}else B=N,Z()}return window.addEventListener("beforeunload",P),function(){window.removeEventListener("beforeunload",P)}}()),At=!0,N=[],zt||q.push(E("click")),q.push(E("paste"))}}}}}},cleanup:function(){At&&(M&&clearTimeout(M),q.forEach(function($){$()}),q=[],At=!1)},trigger:p}},120:function(r,t,e){var n=e(709),o=e(38),i=e(23);function u(){return"ontouchstart"in window}function d(l){var v={};if(l.nodeName){v.name=l.nodeName,l.className&&(v.className=String(l.className)),l.id&&(v.id=l.id);var S=l.getAttribute&&l.getAttribute("type");S&&(v.type=S),l.placeholder&&(v.placeholder=l.placeholder)}return v}r.exports={manageDomEvents:function(l){n.managePasteEvents(l)},getDomProperties:d,setClickListener:function(l){function v(O){var C={eventType:o.C,payload:{c:{d:d(O.target)}}},N=O.target.textContent||O.target.innerText||"";if(N){var B=i.transformDomNodeContent(N);C.payload[o.C].x={p:B.prefix,s:B.suffix,l:B.length}}l(C)}var S=u()?"touchend":"click";return window.addEventListener(S,v,!0),function(){window.removeEventListener(S,v,!0)}},setKeyDownListener:function(l){function v(S){l({eventType:o.KD,payload:{kd:{d:d(S.target),k:S.key||S.code||"na"}}})}return window.addEventListener("keydown",v,!0),function(){window.removeEventListener("keydown",v,!0)}},setScrollListener:function(l){var v=null,S=0,O=0,C={x:0,y:0},N=0,B=0,M=0,F=0,G=0,Q=0;function et(ft){l({eventType:o.S,payload:{s:{d:d(ft.target),di:{x:C.x,y:C.y},t:B-N,sx:M,sy:F,ex:G,ey:Q}}}),S=0,O=0,C.x=0,C.y=0,v=null,N=0,B=0}function ct(ft){var ot=ft.target.scrollingElement||ft.target;if(ot&&(ot===document&&(ot=document.documentElement),ot instanceof Element)){var bt=ot.getBoundingClientRect(),Rt=-bt.left+ot.scrollLeft,At=-bt.top+ot.scrollTop;v?(clearTimeout(v),B=Date.now(),G=Rt,Q=At):(N=Date.now(),B=N,G=M=Rt,Q=F=At),(C.x||C.y||S||O)&&(C.x+=Math.abs(Rt-S),C.y+=Math.abs(At-O)),S=Rt,O=At,v=setTimeout(et.bind(null,ft),200)}}return window.addEventListener("scroll",ct,!0),function(){v&&clearTimeout(v),window.removeEventListener("scroll",ct,!0)}},setPageChangeListener:function(l){var v,S,O,C=null,N=null,B=0;function M(et){var ct;if(window.URL){var ft=new URL(et,"http://example.com");ct=ft.pathname+ft.hash}else ct=et.indexOf("?")>-1?et.split("?")[0]:et.indexOf("#")>-1?et.split("#")[0]:et;if(ct!==C){var ot=Date.now()-O;l({eventType:o.PC,payload:{pc:{f:C,t:ct,dr:ot,ac:ot-B}}}),C=ct,O=Date.now()}}function F(){if(document.hidden)N=Date.now();else if(N!==null){var et=Date.now();B+=et-N,N=null}}function G(et){M(et.newURL)}function Q(){M(window.location.href)}return window.history?(C=window.location.pathname||"/",v=history.pushState,S=history.replaceState,O=Date.now(),window.addEventListener("hashchange",G),window.addEventListener("popstate",Q),history.pushState=function(et,ct,ft){return M(ft),v.apply(history,arguments)},history.replaceState=function(et,ct,ft){return M(ft),S.apply(history,arguments)},document.addEventListener("visibilitychange",F),function(){history.pushState=v,history.replaceState=S,window.removeEventListener("hashchange",G),window.removeEventListener("popstate",Q),document.removeEventListener("visibilitychange",F),C=null,B=0}):function(){}},setMouseMoveListener:function(l){var v=[],S=!1,O=null,C=0,N={x:0,y:0};function B(){v.length!==0&&(l({eventType:o.MM,payload:{mm:{s:v.slice(),l:S,di:N}}}),v=[])}function M(G){var Q,et;G.touches&&G.touches.length>0?(Q=G.touches[0].clientX,et=G.touches[0].clientY):(Q=G.clientX,et=G.clientY),Q!==void 0&&et!==void 0&&(v.length>0&&(N.x+=Math.abs(Q-v[v.length-1][0]),N.y+=Math.abs(et-v[v.length-1][1])),v.push([Q,et]),v.length>1e3&&(S=!0,(C+=2)>=1e3&&(C=2),v.splice(C,1)),O&&clearTimeout(O),O=setTimeout(B,200))}var F=u()?"touchmove":"mousemove";return window.addEventListener(F,M,!0),function(){O&&clearTimeout(O),window.removeEventListener(F,M,!0)}}}},387:function(r,t,e){var n=e(776),o=e(23),i=e(287).hp,u=e(527),d=e(543),l=["storeInfo"],v={};function S(){var N={};for(var B in u)if(u.hasOwnProperty(B)){var M=B.charAt(0);M===M.toLowerCase()&&M!==M.toUpperCase()&&(N[B]=u[B])}return N}function O(N,B){var M=N.eventType,F=N.deviceId,G=N.fingerprintProVisitorId,Q=N.fingerprintProRequestId,et=N.fingerprintHash,ct=function(wt){try{return i.from(JSON.stringify(wt)).toString("base64")}catch{return}}(N.fingerprintComponents),ft=N.deviceExtendedInfo,ot=N.payload,bt={metadata:{type:M},device:{id:F,fingerprint:et,rawFingerprint:ct,type:d.webType}};G&&(bt.device.visitorId=G),Q&&(bt.device.fpRequestId=Q);var Rt=Object.assign({},o.getClientMetadata(o.metadataType.payload),v);for(var At in Rt)Rt.hasOwnProperty(At)&&(bt.metadata[At]=Rt[At]);for(var gt in ot)ot.hasOwnProperty(gt)&&(bt[gt]=ot[gt]);ft&&(bt.device.extendedInfo=ft),n.makeRequest({path:"events",data:bt,method:n.methods.post},B)}function C(N){var B=N.type,M=N.deviceId,F=N.fingerprintProVisitorId,G=N.fingerprintProRequestId,Q=N.fingerprintHash,et=N.fingerprintComponents,ct=N.deviceExtendedInfo,ft=N.callback,ot={eventType:B,deviceId:M,fingerprintHash:Q,fingerprintComponents:et,deviceExtendedInfo:ct};F&&(ot.fingerprintProVisitorId=F),G&&(ot.fingerprintProRequestId=G),O(ot,ft)}r.exports={addMetadataProps:function(N){for(var B=0;B<l.length;B+=1){var M=l[B];N.hasOwnProperty(M)&&(v[M]=N[M])}},reportEvent:O,reportAppInstallEvent:function(N,B,M,F,G,Q){C({type:"appInstall",deviceId:N,fingerprintProVisitorId:B,fingerprintProRequestId:M,fingerprintHash:F,fingerprintComponents:G,deviceExtendedInfo:S(),callback:Q})},reportFingerprintEvent:function(N,B,M,F){C({type:"fingerprint",deviceId:N,fingerprintHash:B,fingerprintComponents:M,fingerprintProRequestId:F})},reportInitEvent:function(N){C({type:"appInit",deviceId:N})}}},625:function(r,t,e){var n=e(269);r.exports={getFingerprint:function(o,i){n&&o?n.load({apiKey:"KxV6sLn9nXBGBzPtzicI",endpoint:["https://metrics.nsureapi.com",n.defaultEndpoint],modules:[n.makeIdentificationModule(),n.makeBotdModule()],scriptUrlPattern:["https://metrics.nsureapi.com/web/v<version>/<apiKey>/loader_v<loaderVersion>.js",n.defaultScriptUrlPattern],remoteControlDetection:!0}).then(function(u){return u.get()}).then(function(u){typeof i=="function"&&i(u?{fingerprintVisitorId:u.visitorId,fingerprintRequestId:u.requestId}:{})}).catch(function(){typeof i=="function"&&i({})}):i({})}}},376:function(r,t,e){var n=e(568),o=e(528),i=e(387),u="ns_fp_hash";function d(v,S,O,C){i.reportFingerprintEvent(O,v,S,C)}function l(v){n.load({monitoring:!1}).then(function(S){S.get().then(function(O){v(O?{fingerprintHash:O.visitorId,fingerprintComponents:O.components}:{})})})}r.exports={manageFingerprint:function(v,S,O){l(function(C){var N=C.fingerprintHash,B=C.fingerprintComponents;o.getItem(u)!==N&&(S&&d(N,B,v),o.setItem(u,N)),typeof O=="function"&&O({fingerprintHash:N,fingerprintComponents:B})})},getFingerprint:l,reportFingerprintWithProInfo:function(v,S){l(function(O){d(O.fingerprintHash,O.fingerprintComponents,v,S)})}}},733:function(r,t,e){var n=e(528),o=e(376),i=e(625),u=e(387),d=e(142),l=e(1),v=e(543),S="linkDevices";function O(N,B,M){o.getFingerprint(function(F){var G=F.fingerprintHash,Q=F.fingerprintComponents;u.reportEvent({eventType:S,deviceId:N,fingerprintHash:G,fingerprintComponents:Q,payload:{linkedDevices:[B,M]}})})}function C(N,B){if(B)for(var M=0,F=B.length;M<F;M+=1){var G=B[M];if(G&&G.length>1){var Q=G[0],et=G[1];Q&&et&&Q!==et&&O(N,Q,et)}}}r.exports={installSdk:function(N,B){var M=N.deviceId,F=N.loadFingerprintJsPro,G=(N.supressInstallBackwardCompatibility||[]).indexOf(N.appId)===-1,Q=function(ct,ft){var ot=ft?n.getBackwardCompatabilityItem(v.installEventReportedKeyName,v.oldInstallEventReportedKeyName):n.getItem(v.installEventReportedKeyName);return ot?(ot==="true"&&(n.setItem(v.installEventReportedKeyName,ct),ot=ct),ct===ot?{isInstalled:!0,reportedDeviceId:ct}:{isInstalled:!1,reportedDeviceId:ot}):{isInstalled:!1,reportedDeviceId:null}}(M,G);function et(ct,ft,ot){if(ot>3)B&&B(!1);else{var bt=ft.fingerprintHash,Rt=ft.fingerprintComponents,At=ct.fingerprintVisitorId,gt=ct.fingerprintRequestId;u.reportAppInstallEvent(M,At,gt,bt,Rt,function(wt){if(wt){var kt={msg:"Failed sending appInstall",err:JSON.stringify(wt),deviceId:M,fingerprintHash:bt,fingerprintRequestId:gt,numberOfRetry:ot};l.send(kt),et(ct,ft,ot+1)}else n.setItem(v.installEventReportedKeyName,M),n.setItem("ns_irts",Date.now()),d.manageKeepAlive({deviceId:M,fingerprintInfo:ft,setStartTimestamp:!0}),B&&B(!0)})}}Q.isInstalled?B&&B(!1):(Q.reportedDeviceId&&Q.reportedDeviceId!==M&&C(M,[[M,Q.reportedDeviceId]]),i.getFingerprint(F,function(ct){o.manageFingerprint(M,!1,function(ft){et(ct,ft,1)})}))},reportLinkDevices:C}},142:function(r,t,e){var n=e(528),o=e(884),i=e(387),u=e(376),d="ns_ka_ts",l="ns_ka_step_",v=[10,30,40,60];function S(B){return l+B}function O(){var B=parseInt(n.getItem(d),10);return o.isValidDate(new Date(B))?B:null}function C(B,M){var F=function(){var G=O();if(!G)return null;for(var Q,et=Math.floor((new Date().getTime()-G)/1e3),ct=0;ct<v.length;ct+=1){var ft=v[ct],ot=ct<v.length-1?v[ct+1]:null;if(et>=ft&&(!ot||et<ot)&&(Q=ft,!n.getItem(S(Q))))return{stepToReport:ft,timeToWaitInSeconds:0};if(et<ft)return{stepToReport:ft,timeToWaitInSeconds:ft-et}}return null}();F&&(F.timeToWaitInSeconds===0?(function(G,Q,et){var ct=Q.fingerprintHash,ft=Q.fingerprintComponents;i.reportEvent({eventType:"keepAlive",deviceId:G,fingerprintHash:ct,fingerprintComponents:ft,payload:{keepAlive:{step:et}}}),n.setItem(S(et),!0)}(B,M,F.stepToReport),C(B,M)):F.timeToWaitInSeconds>0&&setTimeout(function(){C(B,M)},1e3*F.timeToWaitInSeconds))}var N={manageKeepAlive:function(B){var M=B.deviceId,F=B.fingerprintInfo;B.setStartTimestamp&&!O()&&n.setItem(d,new Date().getTime()),F?C(M,F):u.getFingerprint(function(G){C(M,G)})}};r.exports=N},709:function(r,t,e){var n=e(387),o=e(376),i=e(23);function u(v){var S,O=v?v.value||v.innerText:null;return{nodeContent:O,normalizedNodeContent:(S=O,i.removeWhitespaces(S))}}function d(v){var S=i.transformDomNodeContent(v),O=v||"";return S.onlyDigits=/^[0-9]+$/.test(O),S.containsWhitespace=/\s/.test(O),S.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(O),S}var l={managePasteEvents:function(v){document.addEventListener("paste",function(S){var O=u(S.target);setTimeout(function(){(function(C){var N=C.deviceId,B=C.contentBeforePaste,M=B.nodeContent,F=B.normalizedNodeContent,G=C.domNode,Q={paste:{domNode:{}}};if(G.nodeName){Q.paste.domNode.name=G.nodeName,G.className&&(Q.paste.domNode.className=G.className),G.id&&(Q.paste.domNode.id=G.id);var et=G.getAttribute&&G.getAttribute("type");et&&(Q.paste.domNode.type=et),Q.paste.domNode.content={};var ct=u(G),ft=ct.nodeContent,ot=ct.normalizedNodeContent;Q.paste.domNode.content.beforePaste=d(M),Q.paste.domNode.content.afterPaste=d(ft),Q.paste.domNode.normalizedContent={},Q.paste.domNode.normalizedContent.beforePaste=d(F),Q.paste.domNode.normalizedContent.afterPaste=d(ot),G.placeholder&&(Q.paste.domNode.placeholder=G.placeholder),Q.paste.url=window.location.href}o.getFingerprint(function(bt){var Rt=bt.fingerprintHash;n.reportEvent({eventType:"paste",deviceId:N,fingerprintHash:Rt,payload:Q})})})({deviceId:v,contentBeforePaste:O,domNode:S.target})},0)})}};r.exports=l},472:function(r,t,e){var n=e(127),o=e(108),i=e(884),u=e(23),d=e(776),l=e(528),v=e(298).inactivityEvent,S=e(143),O=e(387),C=e(376),N="ns_sid";function B(){o.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function M(G){var Q=G.deviceId,et=G.initModuleConfig,ct=G.jwtSessionId,ft=G.callback,ot=1e4;try{ot=n(ct).inactivityTimeout}catch{ot=1e4}var bt=new S(new Date().getTime());bt.addEventListener(v,function Rt(){bt.removeEventListener(v,Rt),F({deviceId:Q,initModuleConfig:et,forceRenewSessionDueToInactivity:!0,callback:ft})}),bt.trackInactivity(ot)}function F(G){var Q,et=G.deviceId,ct=G.initModuleConfig,ft=!!G.forceRenewSessionDueToInactivity,ot=G.callback,bt=l.getItem(N);try{Q=n(bt),d.setSessionId(bt)}catch{Q=null}ft||!Q||1e3*((Q||{}).exp||0)<new Date().getTime()?function(Rt,At){var gt=Rt.deviceId,wt=(Rt.initModuleConfig||{}).storeInfo,kt=new B;kt.addEventListener(kt.eventTypes.fetchComplete,function q(h){kt.removeEventListener(kt.eventTypes.fetchComplete,q),At(h.detail)}),kt.fetchSessionId(gt,wt)}({deviceId:et,initModuleConfig:ct},function(Rt){bt=Rt,l.setItem(N,bt),d.setSessionId(bt),function(At){try{var gt=At.deviceId,wt=n(At.jwtSessionId).ets;if(!wt)return;C.getFingerprint(function(kt){var q=kt.fingerprintHash,h=kt.fingerprintComponents;O.reportEvent({eventType:"ping",deviceId:gt,fingerprintHash:q,fingerprintComponents:h,payload:{ping:{ets:wt}}})})}catch{}}({deviceId:et,jwtSessionId:bt}),M({deviceId:et,initModuleConfig:ct,jwtSessionId:bt,callback:ot}),i.isFunction(ot)&&ot(bt)}):(M({deviceId:et,initModuleConfig:ct,jwtSessionId:bt,callback:ot}),i.isFunction(ot)&&ot(bt))}B.prototype=Object.create(o.prototype),B.prototype.constructor=B,B.prototype.fetchSessionId=function(G,Q){var et=this,ct="session?"+u.getClientMetadata(u.metadataType.queryString)+"&deviceId="+G;Q&&(Q.id&&(ct+="&storeId="+Q.id),Q.type&&(ct+="&storeType="+Q.type)),function ft(){var ot;ot=function(bt,Rt){!bt&&Rt&&Rt.ok?et.dispatchEvent(new CustomEvent(et.eventTypes.fetchComplete,{detail:Rt.response})):setTimeout(ft,i.randomInt(4e4,6e4))},d.makeRequest({path:ct,method:d.methods.get},ot)}()},r.exports={manageSessionId:F,setRetrySessionTimeout:function(G){throw new Error("Cannot call setRetrySessionTimeout!")}}},336:function(r,t,e){var n=e(23),o=e(376),i=e(625),u=e(528),d=e(543).fingerprintReportedInSessionKey,l=e(543).eventTriggers,v={},S=null,O=!1,C=!1;function N(M){var F=M||{};Object.keys(F).forEach(function(G){G===l.fingerPrint&&C&&(u.getSessionItem(d)||(i.getFingerprint(O,function(Q){o.reportFingerprintWithProInfo(S,Q.fingerprintRequestId)}),u.setSessionItem(d,!0)))})}function B(M,F,G){for(var Q=0;Q<F.payload.length;Q++){var et=F.payload[Q];et&&et.event&&et.action&&n.isSubObject(et.event,M.payload)&&(G[et.action]=!0)}}r.exports={init:function(M){if(M.eventTrigger){try{var F=atob(M.eventTrigger),G=JSON.parse(F);if(!G||!(v=G[M.appId]))return}catch{return}S=M.deviceId,O=M.loadFingerprintJsPro,C=!0,function(){if(C&&v.init&&Array.isArray(v.init)){for(var Q={},et=0;et<v.init.length;et++){var ct=v.init[et];ct&&ct.url&&ct.action&&new RegExp(v.init[et].url).test(window.location.href)&&(Q[v.init[et].action]=!0)}N(Q)}}()}},triggerEventOnEvent:function(M){if(C){var F=v[M.eventType];if(Array.isArray(F)){for(var G={},Q=0;Q<F.length;Q++){var et=F[Q];et&&et.url&&et.payload&&new RegExp(et.url).test(window.location.href)&&B(M,et,G)}N(G)}}}}},636:function(r,t,e){var n=e(528),o=e(387),i=e(376),u="ns_c_ver",d="c";function l(S){n.setItem(u,JSON.stringify(S))}function v(S,O,C,N){var B=O.fingerprintHash,M=O.fingerprintComponents;o.reportEvent({eventType:"sdkVersionUpgrade",deviceId:S,fingerprintHash:B,fingerprintComponents:M,payload:{versionUpgrade:{version:C,prevVersion:N||""}}}),l(C)}r.exports={reportVersionUpgrade:function(S){var O=S.initModuleVersion,C=S.coreModuleVersion,N={};N.i=O,N[d]=C;var B=S.deviceId,M=S.fingerprintInfo,F=function(){var G=n.getItem(u);if(G){try{var Q=JSON.parse(G);if(typeof Q=="object")return Q}catch{}return{i:G}}return null}();F&&F.i?F.i!==O||F[d]&&F[d]!==C?(F[d]||(F[d]=C),M?v(B,M,N,F):i.getFingerprint(function(G){v(B,G,N,F)})):F[d]||l(N):l(N)}}},23:function(r,t,e){var n=e(550),o={payload:"payload",queryString:"queryString"};function i(){return n()}function u(l,v){for(var S in l)if(l.hasOwnProperty(S)&&(!v.hasOwnProperty(S)||!d(l[S],v[S])))return!1;return!0}function d(l,v){if(l===v)return!0;if(typeof l!=typeof v)return!1;if(Array.isArray(l)&&Array.isArray(v)){if(l.length!==v.length)return!1;for(var S=0;S<l.length;S++)if(!d(l[S],v[S]))return!1;return!0}return typeof l=="object"&&l!==null&&typeof v=="object"&&v!==null&&u(l,v)}r.exports={metadataType:o,getClientMetadata:function(l){var v=new Date().getTime(),S=i();return l===o.queryString?"timestamp="+v+"&clientRequestId="+S:{timestamp:v,clientRequestId:S}},oneMinute:6e4,getClientRequestId:i,transformDomNodeContent:function(l){var v,S,O=l||"",C=O.length;return C<=1?(v="",S=""):C===2?(v=O.slice(0,1),S=""):C===3?(v=O.slice(0,1),S=O.slice(C-1)):C===4?(v=O.slice(0,2),S=O.slice(C-1)):C===5?(v=O.slice(0,2),S=O.slice(C-2)):C===6?(v=O.slice(0,3),S=O.slice(C-2)):C===7?(v=O.slice(0,3),S=O.slice(C-3)):C===8?(v=O.slice(0,4),S=O.slice(C-3)):C===9?(v=O.slice(0,5),S=O.slice(C-3)):C===10?(v=O.slice(0,5),S=O.slice(C-4)):C>10&&(v=O.slice(0,6),S=O.slice(C-4)),{length:C,prefix:v,suffix:S}},isSubObject:u,removeWhitespaces:function(l){return l&&(l instanceof String||typeof l=="string")?l.replace(/\s/g,""):l}}},651:function(r,t,e){var n,o=e(723),i=e(115),u=e(884);function d(){return i.getDeviceId()}r.exports={getDeviceId:function(){return n||(n=d()),n},getCoreModuleParams:function(l,v){var S=v||{},O=!!S.isFingerprintJsProOff,C=[];n&&n!==d()&&C.push([n,d()]);var N=u.getAppContextId(),B=S.bulkEvents||{},M=S.supressInstallBackwardCompatibility||[],F=typeof S.logMessageRate=="number"?S.logMessageRate:100,G=S.eventTrigger||"";return Object.assign(l,{deviceId:d(),linkedDevices:C,loadFingerprintJsPro:!O,clientVersion:o.version,appContextId:N,bulkEvents:B,supressInstallBackwardCompatibility:M,logMessageRate:F,eventTrigger:G,eventsReportUrl:S.eventsReportUrl})},parseInitParams:function(l,v){return typeof(S=l)=="string"||S instanceof String?{appId:l,partnerId:v}:l;var S},internalGetDeviceId:d}},342:function(r,t,e){var n=e(723),o=e(242),i=e(1),u=e(102),d=e(651),l=e(884),v=e(884);r.exports={version:n.version,init:l.isBrowser()?function(S,O){var C=d.parseInitParams(S,O),N=C.appId;i.init(n,{appId:N});var B=v.getConfigBaseUrls(C,n),M=B.mainConfigBaseUrl,F=B.altConfigBaseUrl;function G(et,ct){o.getCoreModuleLoadingInfo({appId:N,url:et},function(ft,ot){!ft&&ot||n.errorServerUrl&&i.send({msg:"Core loading error",reason:"config-file-load-fail",url:n.coreConfigFileUrl,errorDescription:ft}),ct(ot)})}function Q(et){typeof et.onPercentage=="number"&&l.randomInt(0,100)>et.onPercentage||function(ct,ft){var ot=d.getCoreModuleParams(ct,ft);u.init(ot)}(C,et)}return G(M,function(et){if(et)Q(et);else{if(!F)return;G(F,function(ct){ct&&Q(ct)})}}),d.getDeviceId()}:function(S,O){return null},getDeviceId:l.isBrowser()?function(){return d.getDeviceId()}:function(){return null}}},242:function(r,t,e){var n=e(611),o=e(528),i=e(884),u="ns_group";function d(l,v){(function(S,O){n.get(S).end(function(C,N){C?i.isFunction(O)&&O({ok:!1,errorDescription:JSON.stringify({err:C,res:N})}):i.isFunction(O)&&O(null,{ok:N.ok,status:N.status,response:N.body})})})(l.url,function(S,O){!S&&O&&O.response?i.isFunction(v)&&v(null,function(C,N){var B,M=N||{},F=M.configurations||{},G=F[C];if(G){var Q=function(){var bt=o.getItem(u);return bt||(bt=i.randomInt(1,100),o.setItem(u,bt)),bt}(),et=function(bt){var Rt=[],At=0;for(var gt in bt)if(bt.hasOwnProperty(gt)){var wt=bt[gt],kt=At;At+=wt.percentage,Rt.push({from:kt,to:At,url:wt.url})}return Rt}(G.groups),ct=function(bt,Rt){for(var At=0,gt=bt.length;At<gt;At++){var wt=bt[At];if(Rt>wt.from&&Rt<=wt.to)return wt}return null}(et,Q)||{};if(ct)for(B in ct)ct.hasOwnProperty(B)&&(G[B]=ct[B]);var ft=F.default||{};for(B in ft)ft.hasOwnProperty(B)&&!G.hasOwnProperty(B)&&(G[B]=ft[B])}else G=F.default||{};var ot={};for(B in M)M.hasOwnProperty(B)&&B!=="configurations"&&(ot[B]=M[B]);for(B in G)G.hasOwnProperty(B)&&["groups","from","to"].indexOf(B)===-1&&(ot[B]=G[B]);return ot}(l.appId,O.response)):i.isFunction(v)&&v(S.errorDescription)})}r.exports={getCoreModuleLoadingInfo:function(l,v){var S=0;l&&l.url?d(l,function O(C,N){C?(S+=1)<=3?d(l,O):i.isFunction(v)&&v(C):i.isFunction(v)&&v(null,N)}):i.isFunction(v)&&v("config url is not configured")}}},115:function(r,t,e){var n,o=e(550),i=e(528),u=e(13),d=e(884),l=e(616),v="ns_dev_id",S=[];function O(){var C=i.getItem(v);n||(n=C||l.toArray(o(),i.hasAccessToLocalStorage()),i.setItem(v,n))}r.exports={init:function(){u.init(function(){u.getKey(v,function(C){C?(n=C,i.setItem(v,n),u.cleanup()):(O(),u.setKey(v,n),setTimeout(u.cleanup,2e3));for(var N=0,B=S.length;N<B;N+=1){var M=S[N];d.isFunction(M)&&M()}S=[]})})},addOnReadyListener:function(C){S.push(C)},getDeviceId:function(){return O(),n},reset:function(){throw new Error("Cannot call reset!")}}},635:function(r,t,e){e.d(t,{C6:function(){return o},Cl:function(){return i},Tt:function(){return u},YH:function(){return l},fX:function(){return v},sH:function(){return d}});var n=function(S,O){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,N){C.__proto__=N}||function(C,N){for(var B in N)Object.prototype.hasOwnProperty.call(N,B)&&(C[B]=N[B])},n(S,O)};function o(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");function C(){this.constructor=S}n(S,O),S.prototype=O===null?Object.create(O):(C.prototype=O.prototype,new C)}var i=function(){return i=Object.assign||function(S){for(var O,C=1,N=arguments.length;C<N;C++)for(var B in O=arguments[C])Object.prototype.hasOwnProperty.call(O,B)&&(S[B]=O[B]);return S},i.apply(this,arguments)};function u(S,O){var C={};for(var N in S)Object.prototype.hasOwnProperty.call(S,N)&&O.indexOf(N)<0&&(C[N]=S[N]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function"){var B=0;for(N=Object.getOwnPropertySymbols(S);B<N.length;B++)O.indexOf(N[B])<0&&Object.prototype.propertyIsEnumerable.call(S,N[B])&&(C[N[B]]=S[N[B]])}return C}function d(S,O,C,N){return new(C||(C=Promise))(function(B,M){function F(et){try{Q(N.next(et))}catch(ct){M(ct)}}function G(et){try{Q(N.throw(et))}catch(ct){M(ct)}}function Q(et){var ct;et.done?B(et.value):(ct=et.value,ct instanceof C?ct:new C(function(ft){ft(ct)})).then(F,G)}Q((N=N.apply(S,O||[])).next())})}function l(S,O){var C,N,B,M,F={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return M={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function G(Q){return function(et){return function(ct){if(C)throw new TypeError("Generator is already executing.");for(;M&&(M=0,ct[0]&&(F=0)),F;)try{if(C=1,N&&(B=2&ct[0]?N.return:ct[0]?N.throw||((B=N.return)&&B.call(N),0):N.next)&&!(B=B.call(N,ct[1])).done)return B;switch(N=0,B&&(ct=[2&ct[0],B.value]),ct[0]){case 0:case 1:B=ct;break;case 4:return F.label++,{value:ct[1],done:!1};case 5:F.label++,N=ct[1],ct=[0];continue;case 7:ct=F.ops.pop(),F.trys.pop();continue;default:if(!((B=(B=F.trys).length>0&&B[B.length-1])||ct[0]!==6&&ct[0]!==2)){F=0;continue}if(ct[0]===3&&(!B||ct[1]>B[0]&&ct[1]<B[3])){F.label=ct[1];break}if(ct[0]===6&&F.label<B[1]){F.label=B[1],B=ct;break}if(B&&F.label<B[2]){F.label=B[2],F.ops.push(ct);break}B[2]&&F.ops.pop(),F.trys.pop();continue}ct=O.call(S,F)}catch(ft){ct=[6,ft],N=0}finally{C=B=0}if(5&ct[0])throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}([Q,et])}}}function v(S,O,C){if(C||arguments.length===2)for(var N,B=0,M=O.length;B<M;B++)!N&&B in O||(N||(N=Array.prototype.slice.call(O,0,B)),N[B]=O[B]);return S.concat(N||Array.prototype.slice.call(O))}typeof SuppressedError=="function"&&SuppressedError}},Fl={};function Dr(r){var t=Fl[r];if(t!==void 0)return t.exports;var e=Fl[r]={exports:{}};return Iy[r](e,e.exports,Dr),e.exports}Dr.d=function(r,t){for(var e in t)Dr.o(t,e)&&!Dr.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},Dr.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},Dr.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var Ni={};Dr.d(Ni,{IP:function(){return xi.getDeviceId},Ts:function(){return xi.init},rE:function(){return xi.version}});var xi=Dr(342);const ky={version:xi.version,init:xi.init,getDeviceId:xi.getDeviceId};Ni.Ay=ky;var Hl=Ni.Ay;Ni.IP,Ni.Ts,Ni.rE;class gr{env;url;constructor(t){this.env=t??"prod",this.env==="prod"?this.url="https://api.coinflow.cash":this.env==="local"?this.url="http://localhost:5000":this.url=`https://api-${this.env}.coinflow.cash`}async getNSurePartnerId(t){return fetch(this.url+`/merchant/view/${t}`).then(e=>e.json()).then(e=>e.nSureSettings?.nSurePartnerId||e.nSurePartnerId).catch(e=>{console.error(e)})}static getCoinflowBaseUrl(t){return!t||t==="prod"?"https://coinflow.cash":t==="ngrok"?"https://coinflow.ngrok.app":t==="local"?"http://localhost:3000":`https://${t}.coinflow.cash`}static getCoinflowApiUrl(t){return!t||t==="prod"?"https://api.coinflow.cash":t==="local"?"http://localhost:5000":`https://api-${t}.coinflow.cash`}static getCoinflowUrl({walletPubkey:t,sessionKey:e,route:n,routePrefix:o,env:i,subtotal:u,presentment:d,transaction:l,blockchain:v="solana",webhookInfo:S,email:O,loaderBackground:C,handleHeightChangeId:N,bankAccountLinkRedirect:B,additionalWallets:M,chargebackProtectionData:F,merchantCss:G,color:Q,rent:et,lockDefaultToken:ct,tokens:ft,planCode:ot,disableApplePay:bt,disableGooglePay:Rt,customerInfo:At,settlementType:gt,lockAmount:wt,nativeSolToConvert:kt,theme:q,usePermit:h,transactionSigner:T,authOnly:D,deviceId:Z,jwtToken:j,origins:X,threeDsChallengePreference:at,supportEmail:K,destinationAuthKey:p,allowedPaymentMethods:E,accountFundingTransaction:z,partialUsdcChecked:$,redemptionCheck:dt,allowedWithdrawSpeeds:_t,isZeroAuthorization:Dt}){const Yt=o?`/${o}/${v}`:`/${v}`,zt=new URL(Yt+n,gr.getCoinflowBaseUrl(i));if(t&&zt.searchParams.append("pubkey",t),e&&zt.searchParams.append("sessionKey",e),l&&zt.searchParams.append("transaction",l),u&&("cents"in u?(zt.searchParams.append("cents",u.cents.toString()),"currency"in u?zt.searchParams.append("currency",u.currency.toString()):zt.searchParams.append("currency",Wa.USD)):(zt.searchParams.append("token",u.address.toString()),zt.searchParams.append("amount",u.amount.toString()))),d&&zt.searchParams.append("presentment",d),S&&zt.searchParams.append("webhookInfo",tr.compressToEncodedURIComponent(JSON.stringify(S))),q&&zt.searchParams.append("theme",tr.compressToEncodedURIComponent(JSON.stringify(q))),At&&zt.searchParams.append("customerInfo",tr.compressToEncodedURIComponent(JSON.stringify(At))),O&&zt.searchParams.append("email",O),K&&zt.searchParams.append("supportEmail",K),ft&&zt.searchParams.append("tokens",ft.toString()),C&&zt.searchParams.append("loaderBackground",C),N&&zt.searchParams.append("useHeightChange",N.toString()),B&&zt.searchParams.append("bankAccountLinkRedirect",B),M&&zt.searchParams.append("additionalWallets",tr.compressToEncodedURIComponent(JSON.stringify(M))),F&&zt.searchParams.append("chargebackProtectionData",tr.compressToEncodedURIComponent(JSON.stringify(F))),Z)zt.searchParams.append("deviceId",Z);else if(typeof window<"u"){const fe=Hl.getDeviceId();fe&&zt.searchParams.append("deviceId",fe)}return G&&zt.searchParams.append("merchantCss",G),Q&&zt.searchParams.append("color",Q),et&&zt.searchParams.append("rent",et.lamports.toString()),dt&&zt.searchParams.append("redemptionCheck","true"),kt&&zt.searchParams.append("nativeSolToConvert",kt.lamports.toString()),ct&&zt.searchParams.append("lockDefaultToken","true"),ot&&zt.searchParams.append("planCode",ot),bt&&zt.searchParams.append("disableApplePay","true"),Rt&&zt.searchParams.append("disableGooglePay","true"),gt&&zt.searchParams.append("settlementType",gt),wt&&zt.searchParams.append("lockAmount","true"),h===!1&&zt.searchParams.append("usePermit","false"),T&&zt.searchParams.append("transactionSigner",T),D===!0&&zt.searchParams.append("authOnly","true"),Dt===!0&&zt.searchParams.append("isZeroAuthorization","true"),$===!0&&zt.searchParams.append("partialUsdcChecked","true"),j&&zt.searchParams.append("jwtToken",j),X&&zt.searchParams.append("origins",tr.compressToEncodedURIComponent(JSON.stringify(X))),E&&zt.searchParams.append("allowedPaymentMethods",E.join(",")),at&&zt.searchParams.append("threeDsChallengePreference",at),p&&zt.searchParams.append("destinationAuthKey",p),z&&zt.searchParams.append("accountFundingTransaction",tr.compressToEncodedURIComponent(JSON.stringify(z))),_t&&zt.searchParams.append("allowedWithdrawSpeeds",_t.join(",")),zt.toString()}static getTransaction(t){if(t.blockchain)return this.byBlockchain(t.blockchain,{solana:()=>{if(!("transaction"in t))return;const{transaction:e}=t;if(!cs)throw new Error("@solana/web3.js dependency is required for Solana");if(!Mr)throw new Error("bs58 dependency is required for Solana");if(e)return Mr.encode(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))},polygon:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},eth:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},base:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},arbitrum:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},user:()=>{}})()}static byBlockchain(t,e){switch(t){case"solana":return e.solana;case"polygon":return e.polygon;case"eth":return e.eth;case"base":return e.base;case"arbitrum":return e.arbitrum;case"user":return e.user;default:throw new Error("blockchain not supported!")}}}function Oy(r){if(!r)return;let t,e;if("name"in r&&r.name&&(t=r.name.split(" ")[0],e=r.name.split(" ").slice(1).join(" ")),"firstName"in r&&r.firstName&&(t=r.firstName),"lastName"in r&&r.lastName&&(e=r.lastName),t&&e)return{firstName:t,lastName:e}}var za=(r=>(r.SignMessage="signMessage",r.SignTransaction="signTransaction",r.SendTransaction="sendTransaction",r.HeightChange="heightChange",r.Success="success",r.AuthDeclined="authDeclined",r.Loaded="loaded",r.AccountLinked="accountLinked",r))(za||{});function us(r){let t;if("signer"in r&&typeof r.signer=="object"&&r.signer&&"wallet"in r.signer?t=r.signer.wallet:"wallet"in r&&r.wallet&&(t=r.wallet),!!t){if(typeof t=="string")return t;if(typeof t=="object"){if("publicKey"in t)return t.publicKey?t.publicKey.toString():void 0;if("address"in t)return t.address?t.address:void 0}return null}}function Vl(r,t,e){let n;try{if(n=JSON.parse(r),!("method"in n)||!("data"in n))return}catch(u){console.error("handleIFrameMessage JSON parse",u);return}const{data:o,method:i}=n;switch(i){case"signMessage":return t.handleSignMessage?t.handleSignMessage(o):void 0;case"signTransaction":return t.handleSignTransaction?t.handleSignTransaction(o):void 0;case"sendTransaction":return t.handleSendTransaction(o);case"heightChange:"+e:return t.handleHeightChange?t.handleHeightChange(o):void 0;case"success":if(!t.onSuccess)return;t.onSuccess(n.info);return;case"authDeclined":if(!t.onAuthDeclined)return;t.onAuthDeclined(n.info);return;case"loaded":return;case"accountLinked":return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${i} is not one of ${Object.values(za)}`)}function ls(r){let t,e;return"signer"in r&&typeof r.signer=="object"&&r.signer&&"blockchain"in r.signer&&"wallet"in r.signer?(t=r.signer.blockchain,e=r.signer.wallet):"blockchain"in r&&r.blockchain&&(t=r.blockchain,e=r.wallet),t?gr.byBlockchain(t,{solana:()=>Ty({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),eth:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),polygon:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),base:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),arbitrum:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),user:()=>Ny(r)})():{handleSendTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignMessage:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}}function Ty({wallet:r,onSuccess:t,onAuthDeclined:e}){return{handleSendTransaction:async n=>{const o=Wl(n);return await r.sendTransaction(o)},handleSignMessage:async n=>{const o=r.signMessage;if(!o)throw new Error("signMessage is not supported by this wallet");const i=await o(new TextEncoder().encode(n));if(!Mr)throw new Error("bs58 dependency is required");return Mr.encode(i)},handleSignTransaction:async n=>{const o=r.signTransaction;if(!o)throw new Error("signTransaction is not supported by this wallet");const i=Wl(n),u=await o(i);if(!Mr)throw new Error("bs58 dependency is required");return Mr.encode(u.serialize({requireAllSignatures:!1,verifySignatures:!1}))},onSuccess:t,onAuthDeclined:e}}function Wl(r){if(!cs)throw new Error("@solana/web3.js is not defined. Please install @solana/web3.js into your project");if(!Mr)throw new Error("bs58 is not defined. Please install bs58 into your project");const t=Mr.decode(r),e=cs.VersionedTransaction.deserialize(t);return e.version==="legacy"?cs.Transaction.from(t):e}function fs({wallet:r,onSuccess:t,onAuthDeclined:e}){return{handleSendTransaction:async n=>{const o=JSON.parse(Buffer.from(n,"base64").toString()),{hash:i}=await r.sendTransaction(o);return i},handleSignMessage:async n=>r.signMessage(n),onSuccess:t,onAuthDeclined:e}}function Ny({onSuccess:r,onAuthDeclined:t}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:r,onAuthDeclined:t}}class xy{static on(t,e){document.addEventListener(t,e)}static dispatch(t,e){document.dispatchEvent(new CustomEvent(t,{detail:e}))}static remove(t,e){document.removeEventListener(t,e)}}const ro="tokenExCardNumber",Li="tokenExCardCvv",zl={[di.VISA]:"visa",[di.MASTERCARD]:"masterCard",[di.AMEX]:"americanExpress",[di.DISCOVER]:"discover"};async function Gl(r){const{token:t,origins:e,env:n}=r;return new Promise((o,i)=>{fetch(new gr(n).url+"/api/tokenize/iframe/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({origins:e,token:t,merchantId:"merchantId"in r?r.merchantId:void 0,checkoutJwt:"checkoutJwt"in r?r.checkoutJwt:void 0})}).then(async u=>{o(await u.json())}).catch(u=>i(u))})}function Ga({env:r,setTokenExScriptLoaded:t}){const e="tokenex-script";document.head.querySelector(`#${e}`)&&t(!0);const n=document.createElement("script");n.src=r==="prod"?"https://htp.tokenex.com/iframe/iframe-v3.min.js":"https://test-htp.tokenex.com/iframe/iframe-v3.min.js",n.id=e,document.head.appendChild(n),document.getElementById(e).addEventListener("load",()=>{console.log("Setting tokenExScriptLoaded to true!"),t(!0)})}function Ly({iframe:r,setCachedToken:t,setLoaded:e}){const n=async()=>(r.tokenize(),await new Promise((o,i)=>{r.on("tokenize",u=>{t(u.token),o(u)}),r.on("validate",u=>{(!u.isValid||u.isCvvValid===!1)&&i(u)})}));return r.on("change",()=>t(void 0)),r.on("cvvChange",()=>t(void 0)),r.on("load",()=>{setTimeout(()=>e(!0),350);const o=document.querySelector("#tx_iframe_tokenExCardNumber");o&&(o.scrolling="no")}),r.on("focus",()=>{r.focus()}),r.on("cvvFocus",()=>{r.cvvFocus()}),e(!1),r.load(),{...r,tokenize:n}}async function Kl(r){const{token:t,cardType:e}=r;return await Ka(Li,r,{cvvOnly:!0,cvv:!0,cvvContainerID:Li,placeholder:"CVV",token:t,cardType:zl[e]})}async function jl(r){return await Ka(ro,r,{cvv:!0,cvvContainerID:Li,cvvPlaceholder:"CVV"})}async function Yl(r){return await Ka(ro,r,{cvv:!1})}async function Ka(r,t,e){const{tokenExScriptLoaded:n,css:o,debug:i,font:u,setCachedToken:d,setLoaded:l}=t;if(!n&&typeof TokenEx>"u"){console.warn("Warning Unable to load TokenEx on first attempt waiting for load event from document.head.script#tokenex-script");return}const v=await Gl({...t,token:e.token}),{styles:S}=Cy(o),O={...v,placeholder:"0000 0000 0000 0000",enablePrettyFormat:!0,styles:S,font:u,debug:i??!1,...e},C=TokenEx.Iframe(r,O);return Ly({iframe:C,setCachedToken:d,setLoaded:l})}function Cy(r){const t=JSON.parse(r);return{styles:{base:Ur(t.base),focus:Ur(t.focus),error:Ur(t.error),placeholder:Ur(t.placeholder),cvv:{base:Ur(t.cvv?.base),focus:Ur(t.cvv?.focus),error:Ur(t.cvv?.error),placeholder:Ur(t?.placeholder)}}}}function Ur(r){if(!r)return"";if(typeof r=="string")return r;let t="";for(const[e,n]of Object.entries(r)){let o="";e.split("").forEach(i=>{i.toUpperCase()===i?o+="-"+i.toLowerCase():o+=i}),t+=o+":"+n+";"}return t}me.nftCartItem=void 0,(r=>{(t=>{t.NFT="nft"})(r.itemClass||(r.itemClass={})),(t=>{t.IN_GAME_PRODUCT="inGameProduct",t.GAME_OF_SKILL="gameOfSkill",t.DATA_STORAGE="dataStorage",t.COMPUTING_RESOURCES="computingResources",t.SPORTS_TICKET="sportsTicket",t.E_SPORTS_TICKET="eSportsTicket",t.MUSIC_TICKET="musicTicket",t.CONFERENCE_TICKET="conferenceTicket",t.VIRTUAL_SPORTS_TICKET="virtualSportsTicket",t.VIRTUAL_ESPORTS_TICKET="virtualESportsTicket",t.VIRTUAL_MUSIC_TICKET="virtualMusicTicket",t.VIRTUAL_CONFERENCE_TICKET="virtualConferenceTicket",t.ALCOHOL="alcohol",t.DLC="DLC",t.SUBSCRIPTION="subscription",t.FUND_ACAUSE="fundACause",t.REAL_ESTATE="realEstate",t.COMPUTING_CONTRACT="computingContract",t.DIGITAL_ART="digitalArt",t.TOP_UP="topUp",t.OWNERSHIP_CONTRACT="ownershipContract",t.IN_GAME_CURRENCY="inGameCurrency",t.MONEY_TOP_UP_CART_ITEM="moneyTopUpCartItem"})(r.productType||(r.productType={}))})(me.nftCartItem||(me.nftCartItem={}));const By=$t.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return gr.getCoinflowUrl(this.args)}},emits:{onMessage(r){return!0}},methods:{sendMessage(r){const t=this.$refs.iframeRef;if(!t?.contentWindow)throw new Error("Iframe not defined");t.contentWindow.postMessage(r,"*")},handleIframeMessages({data:r,origin:t}){if(!t.includes(gr.getCoinflowBaseUrl(this.args.env)))return;this.$emit("onMessage",{data:r,origin:t});const e=Vl(r,this.args,this.args.handleHeightChangeId);e&&e.then(this.sendMessage).catch(n=>{console.error(n),this.sendMessage("ERROR "+n.message)})},async listenForMessage(r){let t;return new Promise((e,n)=>{if(t=({data:o,origin:i})=>{if(i.includes(gr.getCoinflowBaseUrl(this.args.env))){if(o.startsWith("ERROR")){n(new Error(o.replace("ERROR","")));return}r(o)&&e(o)}},!window)throw new Error("Window not defined");window.addEventListener("message",t)}).finally(()=>{window.removeEventListener("message",t)})},async sendAndReceiveMessage(r,t){return this.sendMessage(r),this.listenForMessage(t)}},mounted(){if(!window)throw new Error("Window not defined");return window.addEventListener("message",this.handleIframeMessages),()=>{window.removeEventListener("message",this.handleIframeMessages)}}}),ja=(r,t)=>{const e=r.__vccOpts||r;for(const[n,o]of t)e[n]=o;return e},Py=["src","scrolling"];function My(r,t,e,n,o,i){return $t.openBlock(),$t.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write",title:"withdraw",frameBorder:"0",src:r.url,scrolling:r.args.handleHeightChange?"no":"yes",onLoad:t[0]||(t[0]=()=>{const u=r.$refs.iframeRef;u&&(u.style.opacity="1")})},null,40,Py)}const ds=ja(By,[["render",My]]),Dy=$t.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:ds},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const r=us(this.args);return{...this.args,walletPubkey:r,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...ls(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Uy(r,t,e,n,o,i){const u=$t.resolveComponent("coinflow-i-frame");return $t.openBlock(),$t.createBlock(u,{args:{...r.iframeProps,...r.messageHandlers,handleHeightChangeId:r.handleHeightChangeId}},null,8,["args"])}const Fy=ja(Dy,[["render",Uy]]),Hy=$t.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:ds},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const r=us(this.args);return{...this.args,walletPubkey:r,route:`/purchase-v2/${this.args.merchantId}`,transaction:gr.getTransaction(this.args)}},messageHandlers(){return{...ls(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Vy(r,t,e,n,o,i){const u=$t.resolveComponent("coinflow-i-frame");return $t.openBlock(),$t.createBlock(u,{args:{...r.iframeProps,...r.messageHandlers,handleHeightChangeId:r.handleHeightChangeId}},null,8,["args"])}const Wy=ja(Hy,[["render",Vy]]),Ya=r=>{const t=$t.ref(!1),e=$t.ref(!1),n=$t.ref(void 0),o=$t.ref(void 0);$t.onMounted(()=>{Ga({env:r.env,setTokenExScriptLoaded:()=>{console.log("tokenExScriptLoaded.value = true"),e.value=!0}})});const i=O=>o.value=O,u=()=>t.value=!0,d=O=>n.value=O,l=async O=>{const C=await Kl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C},v=async O=>{const C=await jl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C},S=async O=>{const C=await Yl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C};return $t.watchEffect(O=>{n.value&&(n.value.load(),O(()=>n.value?.remove()))}),{tokenExIframe:n,initializeTokenExIframe:v,initializeCvvOnlyTokenExIframe:l,initializeTokenExCardOnlyIframe:S,loaded:t,cachedToken:o,setTokenExScriptTag:Ga,tokenExScriptLoaded:e}},zy=["id"],Gy=$t.defineComponent({__name:"CoinflowCardNumberInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{initializeTokenExIframe:e,tokenExIframe:n}=Ya(r.args);async function o(){if(!n.value)throw new Error("Unable to get token");return n.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return $t.watchEffect(()=>{e({css:i(),debug:r.args.debug,origins:r.args.origins,font:r.args.font})},{}),(u,d)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(ro)},null,8,zy))}}),Ky=["id"],jy=$t.defineComponent({__name:"CoinflowCvvInput",setup(r){return(t,e)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(Li)},null,8,Ky))}}),Yy=["id"],qy=$t.defineComponent({__name:"CoinflowCvvOnlyInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{initializeCvvOnlyTokenExIframe:e,tokenExIframe:n}=Ya(r.args);async function o(){if(!n.value)throw new Error("Unable to get token");return n.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return $t.watchEffect(()=>{e({...r.args,origins:r.args.origins??[],css:i(),font:r.args.font})},{}),(u,d)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(Li)},null,8,Yy))}}),$y=$t.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(r){const t=$t.ref(void 0);$t.onMounted(()=>new gr(r.args.env).getNSurePartnerId(r.args.merchantId).then(n=>t.value=n));function e(){return r.args.env==="prod"?"9JBW2RHC7JNJN8ZQ":"SANDBOX_CTCE4XK53ZW0R7V1"}return $t.watchEffect(n=>{t.value&&Hl.init(e(),t.value)}),(n,o)=>null}}),Zy=["id"],Xy=$t.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{tokenExIframe:e,initializeTokenExCardOnlyIframe:n}=Ya(r.args);async function o(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return $t.watchEffect(()=>{n({css:i(),debug:r.args.debug,origins:r.args.origins,font:r.args.font})},{}),(u,d)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(ro)},null,8,Zy))}}),Jy={style:{position:"relative",height:"100%"}},Qy={style:{position:"relative",zIndex:10,height:"100%"}},ql=$t.defineComponent({__name:"MobileWalletButton",props:{args:{type:Object,required:!0},route:{type:String,required:!0},overlayDisplayOverride:{type:String,required:!1},alignItems:{type:String,required:!1}},setup(r){const{onSuccess:t}=r.args;function e(){const l=us(r.args);return{...r.args,walletPubkey:l,transaction:void 0,routePrefix:"form",route:`/${r.route}/${r.args.merchantId}`}}function n(){return{...ls(r.args),handleHeightChange:r.args.handleHeightChange}}const o=$t.ref(.8),i=$t.ref("flex"),u=Math.random().toString(16).substring(2);function d({data:l}){try{const v=JSON.parse(l);if("method"in v&&v.method==="loaded"&&(o.value=1,i.value="none"),"method"in v&&v.data.startsWith("ERROR"))return r.args?.onError?.(v.info),!1;if(!("method"in v)||v.method!=="getToken")return}catch{return}t?.(l)}return(l,v)=>($t.openBlock(),$t.createElementBlock("div",Jy,[$t.createElementVNode("div",{style:$t.normalizeStyle({backgroundColor:r.args.color,display:r.overlayDisplayOverride??i.value,opacity:o.value,alignItems:r.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[$t.renderSlot(l.$slots,"default")],4),$t.createElementVNode("div",Qy,[$t.createVNode(ds,{onOnMessage:d,args:{...e(),...n(),handleHeightChangeId:$t.unref(u)}},null,8,["args"])])]))}}),t4={id:"svg-logo",viewBox:"0 0 35 15"},e4={id:"svg-logo",x:"0",y:"3.85",height:"7.3",width:"35",className:"logo",viewBox:"0 0 105 43",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n4={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r4=["fill"],i4=$t.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(r){const t=r.color==="white"?"#000":"#FFF";return(e,n)=>($t.openBlock(),$t.createElementBlock("svg",t4,[($t.openBlock(),$t.createElementBlock("svg",e4,[n[1]||(n[1]=$t.createElementVNode("title",null,"Apple Logo",-1)),$t.createElementVNode("g",n4,[$t.createElementVNode("g",{fill:$t.unref(t)},[...n[0]||(n[0]=[$t.createStaticVNode('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>',5)])],8,r4)])]))]))}}),o4=$t.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(r){return(t,e)=>($t.openBlock(),$t.createBlock(ql,{route:"apple-pay",args:r.args},{default:$t.withCtx(()=>[$t.createVNode(i4,{color:r.args.color},null,8,["color"])]),_:1},8,["args"]))}}),s4={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},a4={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},c4=$t.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(r){return(t,e)=>($t.openBlock(),$t.createElementBlock($t.Fragment,null,[r.color==="white"?($t.openBlock(),$t.createElementBlock("svg",s4,[...e[0]||(e[0]=[$t.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>',1)])])):$t.createCommentVNode("",!0),r.color==="black"?($t.openBlock(),$t.createElementBlock("svg",a4,[...e[1]||(e[1]=[$t.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>',1)])])):$t.createCommentVNode("",!0)],64))}}),u4=$t.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(r){return(t,e)=>($t.openBlock(),$t.createBlock(ql,{route:"google-pay",args:r.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:$t.withCtx(()=>[$t.createVNode(c4,{color:r.args.color},null,8,["color"])]),_:1},8,["args"]))}});me.BankingCurrencies=Ul,me.CARD_TYPE_MAPPING=zl,me.CardType=di,me.CoinflowApplePayButton=o4,me.CoinflowCardNumberInput=Gy,me.CoinflowCardNumberOnlyInput=Xy,me.CoinflowCvvInput=jy,me.CoinflowCvvOnlyInput=qy,me.CoinflowGooglePayButton=u4,me.CoinflowIframe=ds,me.CoinflowPurchase=Wy,me.CoinflowPurchaseProtection=$y,me.CoinflowUtils=gr,me.CoinflowWithdraw=Fy,me.Currency=Wa,me.CurrencyToISO4217=yy,me.EventBus=xy,me.IFrameMessageMethods=za,me.MerchantStyle=kc,me.PaymentMethods=Tc,me.SettlementType=Ic,me.ThreeDsChallengePreference=Oc,me.TokenExCardNumberIframeId=ro,me.TokenExCvvContainerID=Li,me.WithdrawCategory=Sc,me.WithdrawCurrencies=Dl,me.WithdrawSpeed=Ac,me.doInitializeCvvOnlyTokenExIframe=Kl,me.doInitializeTokenExCardOnlyIframe=Yl,me.doInitializeTokenExIframe=jl,me.getCurrencyDecimals=Sy,me.getCustomerName=Oy,me.getHandlers=ls,me.getIframeConfig=Gl,me.getWalletPubkey=us,me.handleIFrameMessage=Vl,me.isBankingCurrency=by,me.isTypedCurrencyCents=Ay,me.isWithdrawCurrency=wy,me.paymentMethodLabels=bd,me.setTokenExScriptTag=Ga,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});
|