@imtbl/checkout-widgets 2.1.7 → 2.1.8-alpha.0
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/.eslintrc.cjs +1 -0
- package/dist/browser/{AddTokensWidget-BrzH8SRQ.js → AddTokensWidget-C7qTteC1.js} +9 -9
- package/dist/browser/{BridgeWidget-NQ3CYgVo.js → BridgeWidget-DQWn8Zzc.js} +11 -11
- package/dist/browser/CommerceWidget-CvpgyQ6c.js +1090 -0
- package/dist/browser/{FeesBreakdown-k5cJIAW0.js → FeesBreakdown-Bbl6IXB9.js} +1 -1
- package/dist/browser/{OnRampWidget-n5iMTapr.js → OnRampWidget-D8xhR-53.js} +3 -3
- package/dist/browser/{SaleWidget-DxUyJHON.js → SaleWidget-DaetSTrW.js} +13 -13
- package/dist/browser/{SpendingCapHero-PAyXt-5z.js → SpendingCapHero-CnH-5IFN.js} +1 -1
- package/dist/browser/{SwapWidget-hFFcGluR.js → SwapWidget-nd6sN5Il.js} +16 -13
- package/dist/browser/{TokenImage-DgghMSHe.js → TokenImage-B9YiZbqv.js} +1 -1
- package/dist/browser/{TopUpView-BacX_7nQ.js → TopUpView-Dm0iq-o2.js} +1 -1
- package/dist/browser/{WalletApproveHero-C-T5NtEx.js → WalletApproveHero-D7Vz5Igm.js} +4 -4
- package/dist/browser/{WalletWidget-DecM6mQw.js → WalletWidget-sGAMRwkp.js} +3 -3
- package/dist/browser/{auto-track-DxotwgaF.js → auto-track-C_ogbZXY.js} +1 -1
- package/dist/browser/{index-Cs2j3TUw.js → index-CEjJoJK1.js} +244 -186
- package/dist/browser/{index-DLx3MMbe.js → index-CGtW9_P5.js} +1 -1
- package/dist/browser/{index-BXjP25qz.js → index-CR41kAHG.js} +1 -1
- package/dist/browser/{index-DidpXH8g.js → index-D8VBzuBI.js} +1 -1
- package/dist/browser/{index-DNzOH_wV.js → index-DGzVkXDd.js} +2 -2
- package/dist/browser/{index-D-BPFjGK.js → index-DMTXuB9C.js} +1 -1
- package/dist/browser/{index-DU1AneOh.js → index-Df0EgKoB.js} +1 -1
- package/dist/browser/{index-BV23I7EL.js → index-QK2DNRDr.js} +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/{index.umd-CgfCangZ.js → index.umd-Orn5aVMH.js} +1 -1
- package/dist/browser/{useInterval-DdQHGT9W.js → useInterval-BknQS5mW.js} +1 -1
- package/dist/types/context/analytics-provider/SegmentAnalyticsProvider.d.ts +2 -1
- package/dist/types/context/view-context/CheckoutWidgetViewContextTypes.d.ts +9 -2
- package/dist/types/context/view-context/TransferViewContextTypes.d.ts +9 -0
- package/dist/types/context/view-context/ViewContext.d.ts +2 -1
- package/dist/types/widgets/immutable-commerce/CommerceWidgetRoot.d.ts +9 -1
- package/dist/types/widgets/swap/context/SwapContext.test.d.ts +0 -5
- package/dist/types/widgets/transfer/AwaitingApproval.d.ts +4 -0
- package/dist/types/widgets/transfer/SendingTokens.d.ts +4 -0
- package/dist/types/widgets/transfer/TransferComplete.d.ts +7 -0
- package/dist/types/widgets/transfer/TransferForm.d.ts +10 -0
- package/dist/types/widgets/transfer/TransferWidget.d.ts +6 -0
- package/dist/types/widgets/transfer/context.d.ts +35 -0
- package/dist/types/widgets/transfer/events.d.ts +3 -0
- package/dist/types/widgets/transfer/functions.d.ts +7 -0
- package/package.json +7 -7
- package/src/components/ConnectLoader/ConnectLoader.tsx +1 -1
- package/src/context/analytics-provider/SegmentAnalyticsProvider.ts +1 -0
- package/src/context/view-context/CheckoutWidgetViewContextTypes.ts +12 -1
- package/src/context/view-context/TransferViewContextTypes.ts +11 -0
- package/src/context/view-context/ViewContext.tsx +3 -1
- package/src/locales/en.json +23 -0
- package/src/widgets/immutable-commerce/CommerceWidget.tsx +9 -0
- package/src/widgets/immutable-commerce/CommerceWidgetRoot.tsx +28 -0
- package/src/widgets/immutable-commerce/functions/getConnectLoaderParams.ts +1 -0
- package/src/widgets/immutable-commerce/functions/getFlowRequiresContext.ts +1 -0
- package/src/widgets/immutable-commerce/functions/isValidCommerceFlow.ts +1 -0
- package/src/widgets/swap/context/SwapContext.test.ts +0 -8
- package/src/widgets/transfer/AwaitingApproval.tsx +49 -0
- package/src/widgets/transfer/SendingTokens.tsx +44 -0
- package/src/widgets/transfer/TransferComplete.tsx +73 -0
- package/src/widgets/transfer/TransferForm.tsx +236 -0
- package/src/widgets/transfer/TransferWidget.tsx +264 -0
- package/src/widgets/transfer/context.ts +53 -0
- package/src/widgets/transfer/events.ts +59 -0
- package/src/widgets/transfer/functions.ts +84 -0
- package/dist/browser/CommerceWidget-CXciNRjF.js +0 -714
|
@@ -4109,9 +4109,9 @@ const clearGlobalNamespace = (namespace) => {
|
|
|
4109
4109
|
};
|
|
4110
4110
|
lib$4.clearGlobalNamespace = clearGlobalNamespace;
|
|
4111
4111
|
|
|
4112
|
-
var Ut$2=Object.defineProperty;var St$1=(u,c)=>{for(var p in c)Ut$2(u,p,{get:c[p],enumerable:!0});};function Br$1(u){throw new Error("Node.js process "+u+" is not supported by JSPM core outside of Node.js")}var G$4=[],tr$2=!1,W$4,cr$3=-1;function kt$2(){!tr$2||!W$4||(tr$2=!1,W$4.length?G$4=W$4.concat(G$4):cr$3=-1,G$4.length&&Vr$1());}function Vr$1(){if(!tr$2){var u=setTimeout(kt$2,0);tr$2=!0;for(var c=G$4.length;c;){for(W$4=G$4,G$4=[];++cr$3<c;)W$4&&W$4[cr$3].run();cr$3=-1,c=G$4.length;}W$4=null,tr$2=!1,clearTimeout(u);}}function _t$2(u){var c=new Array(arguments.length-1);if(arguments.length>1)for(var p=1;p<arguments.length;p++)c[p-1]=arguments[p];G$4.push(new Gr$1(u,c)),G$4.length===1&&!tr$2&&setTimeout(Vr$1,0);}function Gr$1(u,c){this.fun=u,this.array=c;}Gr$1.prototype.run=function(){this.fun.apply(null,this.array);};var Pt$1="browser",Rt$2="x64",bt$1="browser",Nt$1={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},vt$1=["/usr/bin/node"],Mt$1=[],Ct$2="v16.8.0",Lt$2={},Dt$2=function(u,c){console.warn((c?c+": ":"")+u);},$t$2=function(u){Br$1("binding");},Ft$2=function(u){return 0},Ot$3=function(){return "/"},Vt$1=function(u){},Gt$3={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};function M$8(){}var Yt$2=M$8,Kt$2=[];function Ht$2(u){Br$1("_linkedBinding");}var Wt$2={},jt$3=!1,Xt$3={};function qt$2(u){Br$1("dlopen");}function Jt$3(){return []}function zt$2(){return []}var Qt$1=M$8,Zt$2=M$8,Tr$2=function(){return {}},re$4=Tr$2,te$4=Tr$2,ee$3=M$8,ne$5=M$8,ie$5=M$8,oe$6={};function se$4(u,c){if(!u)throw new Error(c||"assertion error")}var ue$3={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},ae$4=M$8,ce$3=M$8;function pe$4(){return !1}var le$3=M$8,fe$4=M$8,he$3=M$8,de$3=M$8,me$5=M$8,we$4=void 0,ge$5=void 0,ye$4=void 0,Ee$4=M$8,Ie$1=2,Be$3=1,Te$1="/bin/usr/node",Ae$4=9229,xe$3="node",Ue$4=[],Se$4=M$8,K$8={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};K$8.now===void 0&&(yr$3=Date.now(),K$8.timing&&K$8.timing.navigationStart&&(yr$3=K$8.timing.navigationStart),K$8.now=()=>Date.now()-yr$3);var yr$3;function ke$3(){return K$8.now()/1e3}var Er$2=1e9;function Ir$2(u){var c=Math.floor((Date.now()-K$8.now())*.001),p=K$8.now()*.001,l=Math.floor(p)+c,m=Math.floor(p%1*1e9);return u&&(l=l-u[0],m=m-u[1],m<0&&(l--,m+=Er$2)),[l,m]}Ir$2.bigint=function(u){var c=Ir$2(u);return typeof BigInt>"u"?c[0]*Er$2+c[1]:BigInt(c[0]*Er$2)+BigInt(c[1])};var _e$3=10,Pe$4={},Re$5=0;function H$4(){return T$7}var be$4=H$4,Ne$2=H$4,ve$3=H$4,Me$1=H$4,Ce$4=H$4,Le$3=M$8,De$4=H$4,$e$4=H$4;function Fe$4(u){return []}var T$7={version:Ct$2,versions:Lt$2,arch:Rt$2,platform:bt$1,release:Gt$3,_rawDebug:Yt$2,moduleLoadList:Kt$2,binding:$t$2,_linkedBinding:Ht$2,_events:Pe$4,_eventsCount:Re$5,_maxListeners:_e$3,on:H$4,addListener:be$4,once:Ne$2,off:ve$3,removeListener:Me$1,removeAllListeners:Ce$4,emit:Le$3,prependListener:De$4,prependOnceListener:$e$4,listeners:Fe$4,domain:Wt$2,_exiting:jt$3,config:Xt$3,dlopen:qt$2,uptime:ke$3,_getActiveRequests:Jt$3,_getActiveHandles:zt$2,reallyExit:Qt$1,_kill:Zt$2,cpuUsage:Tr$2,resourceUsage:re$4,memoryUsage:te$4,kill:ee$3,exit:ne$5,openStdin:ie$5,allowedNodeEnvironmentFlags:oe$6,assert:se$4,features:ue$3,_fatalExceptions:ae$4,setUncaughtExceptionCaptureCallback:ce$3,hasUncaughtExceptionCaptureCallback:pe$4,emitWarning:Dt$2,nextTick:_t$2,_tickCallback:le$3,_debugProcess:fe$4,_debugEnd:he$3,_startProfilerIdleNotifier:de$3,_stopProfilerIdleNotifier:me$5,stdout:we$4,stdin:ye$4,stderr:ge$5,abort:Ee$4,umask:Ft$2,chdir:Vt$1,cwd:Ot$3,env:Nt$1,title:Pt$1,argv:vt$1,execArgv:Mt$1,pid:Ie$1,ppid:Be$3,execPath:Te$1,debugPort:Ae$4,hrtime:Ir$2,argv0:xe$3,_preload_modules:Ue$4,setSourceMapsEnabled:Se$4};var nr$2={},Yr$1=!1;function Oe$3(){if(Yr$1)return nr$2;Yr$1=!0,nr$2.byteLength=E,nr$2.toByteArray=C,nr$2.fromByteArray=_;for(var u=[],c=[],p=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,w=l.length;m<w;++m)u[m]=l[m],c[l.charCodeAt(m)]=m;c[45]=62,c[95]=63;function o(f){var h=f.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");g===-1&&(g=h);var A=g===h?0:4-g%4;return [g,A]}function E(f){var h=o(f),g=h[0],A=h[1];return (g+A)*3/4-A}function b(f,h,g){return (h+g)*3/4-g}function C(f){var h,g=o(f),A=g[0],v=g[1],P=new p(b(f,A,v)),D=0,F=v>0?A-4:A,L;for(L=0;L<F;L+=4)h=c[f.charCodeAt(L)]<<18|c[f.charCodeAt(L+1)]<<12|c[f.charCodeAt(L+2)]<<6|c[f.charCodeAt(L+3)],P[D++]=h>>16&255,P[D++]=h>>8&255,P[D++]=h&255;return v===2&&(h=c[f.charCodeAt(L)]<<2|c[f.charCodeAt(L+1)]>>4,P[D++]=h&255),v===1&&(h=c[f.charCodeAt(L)]<<10|c[f.charCodeAt(L+1)]<<4|c[f.charCodeAt(L+2)]>>2,P[D++]=h>>8&255,P[D++]=h&255),P}function B(f){return u[f>>18&63]+u[f>>12&63]+u[f>>6&63]+u[f&63]}function k(f,h,g){for(var A,v=[],P=h;P<g;P+=3)A=(f[P]<<16&16711680)+(f[P+1]<<8&65280)+(f[P+2]&255),v.push(B(A));return v.join("")}function _(f){for(var h,g=f.length,A=g%3,v=[],P=16383,D=0,F=g-A;D<F;D+=P)v.push(k(f,D,D+P>F?F:D+P));return A===1?(h=f[g-1],v.push(u[h>>2]+u[h<<4&63]+"==")):A===2&&(h=(f[g-2]<<8)+f[g-1],v.push(u[h>>10]+u[h>>4&63]+u[h<<2&63]+"=")),v.join("")}return nr$2}var pr$2={},Kr$2=!1;function Ve$1(){if(Kr$2)return pr$2;Kr$2=!0;return pr$2.read=function(u,c,p,l,m){var w,o,E=m*8-l-1,b=(1<<E)-1,C=b>>1,B=-7,k=p?m-1:0,_=p?-1:1,f=u[c+k];for(k+=_,w=f&(1<<-B)-1,f>>=-B,B+=E;B>0;w=w*256+u[c+k],k+=_,B-=8);for(o=w&(1<<-B)-1,w>>=-B,B+=l;B>0;o=o*256+u[c+k],k+=_,B-=8);if(w===0)w=1-C;else {if(w===b)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,l),w=w-C;}return (f?-1:1)*o*Math.pow(2,w-l)},pr$2.write=function(u,c,p,l,m,w){var o,E,b,C=w*8-m-1,B=(1<<C)-1,k=B>>1,_=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=l?0:w-1,h=l?1:-1,g=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(E=isNaN(c)?1:0,o=B):(o=Math.floor(Math.log(c)/Math.LN2),c*(b=Math.pow(2,-o))<1&&(o--,b*=2),o+k>=1?c+=_/b:c+=_*Math.pow(2,1-k),c*b>=2&&(o++,b/=2),o+k>=B?(E=0,o=B):o+k>=1?(E=(c*b-1)*Math.pow(2,m),o=o+k):(E=c*Math.pow(2,k-1)*Math.pow(2,m),o=0));m>=8;u[p+f]=E&255,f+=h,E/=256,m-=8);for(o=o<<m|E,C+=m;C>0;u[p+f]=o&255,f+=h,o/=256,C-=8);u[p+f-h]|=g*128;},pr$2}var j$7={},Hr$1=!1;function Ge$3(){if(Hr$1)return j$7;Hr$1=!0;let u=Oe$3(),c=Ve$1(),p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;j$7.Buffer=o,j$7.SlowBuffer=v,j$7.INSPECT_MAX_BYTES=50;let l=2147483647;j$7.kMaxLength=l,o.TYPED_ARRAY_SUPPORT=m(),!o.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.");function m(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return !1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function w(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,o.prototype),r}function o(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(e)}return E(e,r,t)}o.poolSize=8192;function E(e,r,t){if(typeof e=="string")return k(e,r);if(ArrayBuffer.isView(e))return f(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return h(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,r,t);let i=g(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,r,t){return E(e,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function C(e,r,t){return b(e),e<=0?w(e):r!==void 0?typeof t=="string"?w(e).fill(r,t):w(e).fill(r):w(e)}o.alloc=function(e,r,t){return C(e,r,t)};function B(e){return b(e),w(e<0?0:A(e)|0)}o.allocUnsafe=function(e){return B(e)},o.allocUnsafeSlow=function(e){return B(e)};function k(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=P(e,r)|0,n=w(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function _(e){let r=e.length<0?0:A(e.length)|0,t=w(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function f(e){if(O(e,Uint8Array)){let r=new Uint8Array(e);return h(r.buffer,r.byteOffset,r.byteLength)}return _(e)}function h(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,o.prototype),n}function g(e){if(o.isBuffer(e)){let r=A(e.length)|0,t=w(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||gr(e.length)?w(0):_(e);if(e.type==="Buffer"&&Array.isArray(e.data))return _(e.data)}function A(e){if(e>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return e|0}function v(e){return +e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),O(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let s=0,a=Math.min(n,i);s<a;++s)if(r[s]!==t[s]){n=r[s],i=t[s];break}return n<i?-1:i<n?1:0},o.isEncoding=function(r){switch(String(r).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}},o.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;let i=o.allocUnsafe(t),s=0;for(n=0;n<r.length;++n){let a=r[n];if(O(a,Uint8Array))s+a.length>i.length?(o.isBuffer(a)||(a=o.from(a)),a.copy(i,s)):Uint8Array.prototype.set.call(i,a,s);else if(o.isBuffer(a))a.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=a.length;}return i};function P(e,r){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return wr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Or(e).length;default:if(i)return n?-1:wr(e).length;r=(""+r).toLowerCase(),i=!0;}}o.byteLength=P;function D(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return "";for(e||(e="utf8");;)switch(e){case"hex":return wt(this,r,t);case"utf8":case"utf-8":return br(this,r,t);case"ascii":return dt(this,r,t);case"latin1":case"binary":return mt(this,r,t);case"base64":return ft(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0;}}o.prototype._isBuffer=!0;function F(e,r,t){let n=e[r];e[r]=e[t],e[t]=n;}o.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)F(this,t,t+1);return this},o.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)F(this,t,t+3),F(this,t+1,t+2);return this},o.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)F(this,t,t+7),F(this,t+1,t+6),F(this,t+2,t+5),F(this,t+3,t+4);return this},o.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?br(this,0,r):D.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(r){if(!o.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0},o.prototype.inspect=function(){let r="",t=j$7.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},p&&(o.prototype[p]=o.prototype.inspect),o.prototype.compare=function(r,t,n,i,s){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>r.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===r)return 0;let a=s-i,d=n-t,x=Math.min(a,d),I=this.slice(i,s),U=r.slice(t,n);for(let y=0;y<x;++y)if(I[y]!==U[y]){a=I[y],d=U[y];break}return a<d?-1:d<a?1:0};function L(e,r,t,n,i){if(e.length===0)return -1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,gr(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return -1;t=e.length-1;}else if(t<0)if(i)t=0;else return -1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:Rr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Rr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Rr(e,r,t,n,i){let s=1,a=e.length,d=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return -1;s=2,a/=2,d/=2,t/=2;}function x(U,y){return s===1?U[y]:U.readUInt16BE(y*s)}let I;if(i){let U=-1;for(I=t;I<a;I++)if(x(e,I)===x(r,U===-1?0:I-U)){if(U===-1&&(U=I),I-U+1===d)return U*s}else U!==-1&&(I-=I-U),U=-1;}else for(t+d>a&&(t=a-d),I=t;I>=0;I--){let U=!0;for(let y=0;y<d;y++)if(x(e,I+y)!==x(r,y)){U=!1;break}if(U)return I}return -1}o.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1},o.prototype.indexOf=function(r,t,n){return L(this,r,t,n,!0)},o.prototype.lastIndexOf=function(r,t,n){return L(this,r,t,n,!1)};function ut(e,r,t,n){t=Number(t)||0;let i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let s=r.length;n>s/2&&(n=s/2);let a;for(a=0;a<n;++a){let d=parseInt(r.substr(a*2,2),16);if(gr(d))return a;e[t+a]=d;}return a}function at(e,r,t,n){return ar(wr(r,e.length-t),e,t,n)}function ct(e,r,t,n){return ar(Bt(r),e,t,n)}function pt(e,r,t,n){return ar(Or(r),e,t,n)}function lt(e,r,t,n){return ar(Tt(r,e.length-t),e,t,n)}o.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-t;if((n===void 0||n>s)&&(n=s),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return ut(this,r,t,n);case"utf8":case"utf-8":return at(this,r,t,n);case"ascii":case"latin1":case"binary":return ct(this,r,t,n);case"base64":return pt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,r,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0;}},o.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ft(e,r,t){return r===0&&t===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(r,t))}function br(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i<t;){let s=e[i],a=null,d=s>239?4:s>223?3:s>191?2:1;if(i+d<=t){let x,I,U,y;switch(d){case 1:s<128&&(a=s);break;case 2:x=e[i+1],(x&192)===128&&(y=(s&31)<<6|x&63,y>127&&(a=y));break;case 3:x=e[i+1],I=e[i+2],(x&192)===128&&(I&192)===128&&(y=(s&15)<<12|(x&63)<<6|I&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:x=e[i+1],I=e[i+2],U=e[i+3],(x&192)===128&&(I&192)===128&&(U&192)===128&&(y=(s&15)<<18|(x&63)<<12|(I&63)<<6|U&63,y>65535&&y<1114112&&(a=y));}}a===null?(a=65533,d=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=d;}return ht(n)}let Nr=4096;function ht(e){let r=e.length;if(r<=Nr)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Nr));return t}function dt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function mt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function wt(e,r,t){let n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let s=r;s<t;++s)i+=At[e[s]];return i}function gt(e,r,t){let n=e.slice(r,t),i="";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}o.prototype.slice=function(r,t){let n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);let i=this.subarray(r,t);return Object.setPrototypeOf(i,o.prototype),i};function N(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],s=1,a=0;for(;++a<t&&(s*=256);)i+=this[r+a]*s;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r+--t],s=1;for(;t>0&&(s*=256);)i+=this[r+--t]*s;return i},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,s=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))}),o.prototype.readBigUInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],s=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return (BigInt(i)<<BigInt(32))+BigInt(s)}),o.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],s=1,a=0;for(;++a<t&&(s*=256);)i+=this[r+a]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=t,s=1,a=this[r+--i];for(;i>0&&(s*=256);)a+=this[r+--i]*s;return s*=128,a>=s&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return (BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),o.prototype.readBigInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return (BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),o.prototype.readFloatLE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!1,52,8)};function $(e,r,t,n,i,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<s)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let d=Math.pow(2,8*n)-1;$(this,r,t,n,d,0);}let s=1,a=0;for(this[t]=r&255;++a<n&&(s*=256);)this[t+a]=r/s&255;return t+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let d=Math.pow(2,8*n)-1;$(this,r,t,n,d,0);}let s=n-1,a=1;for(this[t+s]=r&255;--s>=0&&(a*=256);)this[t+s]=r/a&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function vr(e,r,t,n,i){Fr(r,n,i,e,t,7);let s=Number(r&BigInt(4294967295));e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,t}function Mr(e,r,t,n,i){Fr(r,n,i,e,t,7);let s=Number(r&BigInt(4294967295));e[t+7]=s,s=s>>8,e[t+6]=s,s=s>>8,e[t+5]=s,s=s>>8,e[t+4]=s;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=a,a=a>>8,e[t+2]=a,a=a>>8,e[t+1]=a,a=a>>8,e[t]=a,t+8}o.prototype.writeBigUInt64LE=Y(function(r,t=0){return vr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Y(function(r,t=0){return Mr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let s=0,a=1,d=0;for(this[t]=r&255;++s<n&&(a*=256);)r<0&&d===0&&this[t+s-1]!==0&&(d=1),this[t+s]=(r/a>>0)-d&255;return t+n},o.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let s=n-1,a=1,d=0;for(this[t+s]=r&255;--s>=0&&(a*=256);)r<0&&d===0&&this[t+s+1]!==0&&(d=1),this[t+s]=(r/a>>0)-d&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=Y(function(r,t=0){return vr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Y(function(r,t=0){return Mr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Cr(e,r,t,n,i,s){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Lr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,4),c.write(e,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return Lr(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return Lr(this,r,t,!1,n)};function Dr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,8),c.write(e,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return Dr(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return Dr(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,i){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);let s=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),s},o.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){let a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a);}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let s;if(typeof r=="number")for(s=t;s<n;++s)this[s]=r;else {let a=o.isBuffer(r)?r:o.from(r,i),d=a.length;if(d===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=a[s%d];}return this};let Z={};function mr(e,r,t){Z[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,delete this.name;}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0});}toString(){return `${this.name} [${e}]: ${this.message}`}};}mr("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),mr("ERR_INVALID_ARG_TYPE",function(e,r){return `The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError),mr("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=$r(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=$r(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function $r(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return `${e.slice(0,t)}${r}`}function yt(e,r,t){rr(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&er(r,e.length-(t+1));}function Fr(e,r,t,n,i,s){if(e>t||e<r){let a=typeof r=="bigint"?"n":"",d;throw r===0||r===BigInt(0)?d=`>= 0${a} and < 2${a} ** ${(s+1)*8}${a}`:d=`>= -(2${a} ** ${(s+1)*8-1}${a}) and < 2 ** ${(s+1)*8-1}${a}`,new Z.ERR_OUT_OF_RANGE("value",d,e)}yt(n,i,s);}function rr(e,r){if(typeof e!="number")throw new Z.ERR_INVALID_ARG_TYPE(r,"number",e)}function er(e,r,t){throw Math.floor(e)!==e?(rr(e,t),new Z.ERR_OUT_OF_RANGE("offset","an integer",e)):r<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= ${0} and <= ${r}`,e)}let Et=/[^+/0-9A-Za-z-_]/g;function It(e){if(e=e.split("=")[0],e=e.trim().replace(Et,""),e.length<2)return "";for(;e.length%4!==0;)e=e+"=";return e}function wr(e,r){r=r||1/0;let t,n=e.length,i=null,s=[];for(let a=0;a<n;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&s.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536;}else i&&(r-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;s.push(t);}else if(t<2048){if((r-=2)<0)break;s.push(t>>6|192,t&63|128);}else if(t<65536){if((r-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128);}else if(t<1114112){if((r-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128);}else throw new Error("Invalid code point")}return s}function Bt(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Tt(e,r){let t,n,i,s=[];for(let a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),n=t>>8,i=t%256,s.push(i),s.push(n);return s}function Or(e){return u.toByteArray(It(e))}function ar(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function O(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function gr(e){return e!==e}let At=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i];}return r}();function Y(e){return typeof BigInt>"u"?xt:e}function xt(){throw new Error("BigInt not supported")}return j$7}var X$5=Ge$3();var S$8=X$5.Buffer;var Ur$2={};St$1(Ur$2,{deleteItem:()=>We$5,getItem:()=>fr$2,setItem:()=>or$3});var ir$2=()=>typeof window>"u",lr$2=()=>!ir$2();var Ye$3="__IMX-",Ar$3=()=>lr$2()&&window.localStorage,Ke$1=u=>{if(u!==null)try{return JSON.parse(u)}catch{return u}},He$2=u=>typeof u=="string"?u:JSON.stringify(u),xr$3=u=>`${Ye$3}${u}`;function fr$2(u){if(Ar$3())return Ke$1(window.localStorage.getItem(xr$3(u)))}var or$3=(u,c)=>Ar$3()?(window.localStorage.setItem(xr$3(u),He$2(c)),!0):!1,We$5=u=>Ar$3()?(window.localStorage.removeItem(xr$3(u)),!0):!1;var Sr$2=0,Wr=u=>{let c=parseInt(u,10)*1e3,p=new Date(c),l=new Date;return Sr$2=p.getTime()-l.getTime(),Sr$2},jr$2=()=>{let u=new Date().getTime()+Sr$2;return new Date(u).toISOString()};var sr$2=(E=>(E.RUNTIME_ID="rid",E.PASSPORT_CLIENT_ID="passportClientId",E.ENVIRONMENT="env",E.PUBLISHABLE_API_KEY="pak",E.IDENTITY="uid",E.DOMAIN="domain",E.SDK_VERSION="sdkVersion",E))(sr$2||{});var Xe$5="https://api.immutable.com";async function hr$3(u,c){let p=axios$1.create({baseURL:Xe$5}),l=JSON.stringify(c),m={payload:S$8.from(l).toString("base64")};return (await p.post(u,m)).data}var q$7,J$5,qe$2=()=>{q$7=fr$2("metrics-events")||[],J$5=fr$2("metrics-runtime")||{};};qe$2();var V$6=(u,c)=>{J$5={...J$5,[u]:c},or$3("metrics-runtime",J$5);},ur$2=u=>{if(J$5[u]!==void 0)return J$5[u]},Xr=()=>J$5,qr$1=()=>q$7,Jr$1=u=>{q$7.push(u),or$3("metrics-events",q$7);},zr$2=u=>{q$7=q$7.slice(u),or$3("metrics-events",q$7);},dr$2=u=>{let c=[];return Object.entries(u).forEach(([p,l])=>{(typeof p=="string"||typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&c.push([p,l.toString()]);}),c};var kr$2="2.1.7",Je$3=()=>ir$2()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",ze$3=()=>{if(ir$2())return "";let u;try{window.self!==window.top&&(u=Je$3());}catch{}return u||(u=window.location.hostname),u},Qe$3=()=>{if(V$6("sdkVersion",kr$2),ir$2())return {browser:"nodejs",sdkVersion:kr$2};let u=ze$3();return u&&V$6("domain",u),{sdkVersion:kr$2,browser:window.navigator.userAgent,domain:u,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},_r$2=!1,Qr$1=()=>_r$2,Zr=async()=>{_r$2=!0;try{let u=dr$2(Qe$3()),c=ur$2("rid"),p=ur$2("uid"),m=await hr$3("/v1/sdk/initialise",{version:1,data:{runtimeDetails:u,runtimeId:c,uId:p}}),{runtimeId:w,sTime:o}=m;V$6("rid",w),Wr(o);}catch{_r$2=!1;}};function R$4(u,c){return (...p)=>{try{let l=u(...p);return l instanceof Promise?l.catch(()=>c):l}catch{return c}}}function Ze$4(){return lr$2()||typeof T$7>"u"?!1:T$7.env.JEST_WORKER_ID!==void 0}var rt$1=R$4(Ze$4,!1);var et$2="imtbl__metrics",tn$1=5e3,en$1=1e3,z$9=(u,c)=>getGlobalisedValue_1(et$2,u,c),nt$1=(u,c)=>{let p=memorise(c,{lruOptions:{ttl:tn$1,max:en$1}});return getGlobalisedValue_1(et$2,u,p)};var nn=5e3,on=(u,c,p)=>{let l={event:`${u}.${c}`,time:jr$2(),...p&&{properties:dr$2(p)}};Jr$1(l);},Q$7=R$4(nt$1("track",on)),sn=async()=>{if(Qr$1()===!1){await Zr();return}let u=qr$1();if(u.length===0)return;let c=u.length,p=Xr();await hr$3("/v1/sdk/metrics",{version:1,data:{events:u,details:p}})instanceof Error||zr$2(c);},un$1=R$4(sn),ot$2=async()=>{await un$1(),setTimeout(ot$2,nn);},it$2=!1,an=()=>{it$2||(it$2=!0,ot$2());};rt$1()||R$4(z$9("startFlushing",an))();var Pr$3=(u,c,p,l)=>Q$7(u,c,{...l||{},duration:Math.round(p)});var st$2=()=>{let u=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return `${u()}${u()}-${u()}-${u()}-${u()}-${u()}${u()}${u()}`};var cn=(...u)=>{if(!u.some(l=>!!l))return {};let p={};return u.forEach(l=>{l&&(p={...p,...l});}),p},pn$1=u=>u.replace(/[^a-zA-Z0-9\s\-_]/g,""),ln=(u,c)=>`${u}_${pn$1(c)}`,fn=(u,c,p=!0,l)=>{let m=st$2(),w=Date.now(),o=0,E=0,b={},C=(..._)=>cn(b,..._,{flowId:m,flowName:c});b=C(l);let B=_=>{_&&(b=C(_));},k=(_,f)=>{let h=ln(c,_),g=0,A=performance.now();o>0&&(g=A-E);let v=C(f,{flowEventName:_,flowStep:o});Pr$3(u,h,g,v),o++,E=A;};return p&&k("Start"),{details:{moduleName:u,flowName:c,flowId:m,flowStartTime:w},addEvent:R$4(k),addFlowProperties:R$4(B)}},hn=R$4(fn);var dn$2=(u,c,p,l)=>{let{message:m}=p,w=p.stack||"",{cause:o}=p;o instanceof Error&&(w=`${w}
|
|
4112
|
+
var Ut$2=Object.defineProperty;var St$1=(u,c)=>{for(var p in c)Ut$2(u,p,{get:c[p],enumerable:!0});};function Br$1(u){throw new Error("Node.js process "+u+" is not supported by JSPM core outside of Node.js")}var G$4=[],tr$2=!1,W$4,cr$3=-1;function kt$2(){!tr$2||!W$4||(tr$2=!1,W$4.length?G$4=W$4.concat(G$4):cr$3=-1,G$4.length&&Vr$1());}function Vr$1(){if(!tr$2){var u=setTimeout(kt$2,0);tr$2=!0;for(var c=G$4.length;c;){for(W$4=G$4,G$4=[];++cr$3<c;)W$4&&W$4[cr$3].run();cr$3=-1,c=G$4.length;}W$4=null,tr$2=!1,clearTimeout(u);}}function _t$2(u){var c=new Array(arguments.length-1);if(arguments.length>1)for(var p=1;p<arguments.length;p++)c[p-1]=arguments[p];G$4.push(new Gr$1(u,c)),G$4.length===1&&!tr$2&&setTimeout(Vr$1,0);}function Gr$1(u,c){this.fun=u,this.array=c;}Gr$1.prototype.run=function(){this.fun.apply(null,this.array);};var Pt$1="browser",Rt$2="x64",bt$1="browser",Nt$1={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},vt$1=["/usr/bin/node"],Mt$1=[],Ct$2="v16.8.0",Lt$2={},Dt$2=function(u,c){console.warn((c?c+": ":"")+u);},$t$2=function(u){Br$1("binding");},Ft$2=function(u){return 0},Ot$3=function(){return "/"},Vt$1=function(u){},Gt$3={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};function M$8(){}var Yt$2=M$8,Kt$2=[];function Ht$2(u){Br$1("_linkedBinding");}var Wt$2={},jt$3=!1,Xt$3={};function qt$2(u){Br$1("dlopen");}function Jt$3(){return []}function zt$2(){return []}var Qt$1=M$8,Zt$2=M$8,Tr$2=function(){return {}},re$4=Tr$2,te$4=Tr$2,ee$3=M$8,ne$5=M$8,ie$5=M$8,oe$6={};function se$4(u,c){if(!u)throw new Error(c||"assertion error")}var ue$3={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},ae$4=M$8,ce$3=M$8;function pe$4(){return !1}var le$3=M$8,fe$4=M$8,he$3=M$8,de$3=M$8,me$5=M$8,we$4=void 0,ge$5=void 0,ye$4=void 0,Ee$4=M$8,Ie$1=2,Be$3=1,Te$1="/bin/usr/node",Ae$4=9229,xe$3="node",Ue$4=[],Se$4=M$8,K$8={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};K$8.now===void 0&&(yr$3=Date.now(),K$8.timing&&K$8.timing.navigationStart&&(yr$3=K$8.timing.navigationStart),K$8.now=()=>Date.now()-yr$3);var yr$3;function ke$3(){return K$8.now()/1e3}var Er$2=1e9;function Ir$2(u){var c=Math.floor((Date.now()-K$8.now())*.001),p=K$8.now()*.001,l=Math.floor(p)+c,m=Math.floor(p%1*1e9);return u&&(l=l-u[0],m=m-u[1],m<0&&(l--,m+=Er$2)),[l,m]}Ir$2.bigint=function(u){var c=Ir$2(u);return typeof BigInt>"u"?c[0]*Er$2+c[1]:BigInt(c[0]*Er$2)+BigInt(c[1])};var _e$3=10,Pe$4={},Re$5=0;function H$4(){return T$7}var be$4=H$4,Ne$2=H$4,ve$3=H$4,Me$1=H$4,Ce$4=H$4,Le$3=M$8,De$4=H$4,$e$4=H$4;function Fe$4(u){return []}var T$7={version:Ct$2,versions:Lt$2,arch:Rt$2,platform:bt$1,release:Gt$3,_rawDebug:Yt$2,moduleLoadList:Kt$2,binding:$t$2,_linkedBinding:Ht$2,_events:Pe$4,_eventsCount:Re$5,_maxListeners:_e$3,on:H$4,addListener:be$4,once:Ne$2,off:ve$3,removeListener:Me$1,removeAllListeners:Ce$4,emit:Le$3,prependListener:De$4,prependOnceListener:$e$4,listeners:Fe$4,domain:Wt$2,_exiting:jt$3,config:Xt$3,dlopen:qt$2,uptime:ke$3,_getActiveRequests:Jt$3,_getActiveHandles:zt$2,reallyExit:Qt$1,_kill:Zt$2,cpuUsage:Tr$2,resourceUsage:re$4,memoryUsage:te$4,kill:ee$3,exit:ne$5,openStdin:ie$5,allowedNodeEnvironmentFlags:oe$6,assert:se$4,features:ue$3,_fatalExceptions:ae$4,setUncaughtExceptionCaptureCallback:ce$3,hasUncaughtExceptionCaptureCallback:pe$4,emitWarning:Dt$2,nextTick:_t$2,_tickCallback:le$3,_debugProcess:fe$4,_debugEnd:he$3,_startProfilerIdleNotifier:de$3,_stopProfilerIdleNotifier:me$5,stdout:we$4,stdin:ye$4,stderr:ge$5,abort:Ee$4,umask:Ft$2,chdir:Vt$1,cwd:Ot$3,env:Nt$1,title:Pt$1,argv:vt$1,execArgv:Mt$1,pid:Ie$1,ppid:Be$3,execPath:Te$1,debugPort:Ae$4,hrtime:Ir$2,argv0:xe$3,_preload_modules:Ue$4,setSourceMapsEnabled:Se$4};var nr$2={},Yr$1=!1;function Oe$3(){if(Yr$1)return nr$2;Yr$1=!0,nr$2.byteLength=E,nr$2.toByteArray=C,nr$2.fromByteArray=_;for(var u=[],c=[],p=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,w=l.length;m<w;++m)u[m]=l[m],c[l.charCodeAt(m)]=m;c[45]=62,c[95]=63;function o(f){var h=f.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");g===-1&&(g=h);var A=g===h?0:4-g%4;return [g,A]}function E(f){var h=o(f),g=h[0],A=h[1];return (g+A)*3/4-A}function b(f,h,g){return (h+g)*3/4-g}function C(f){var h,g=o(f),A=g[0],v=g[1],P=new p(b(f,A,v)),D=0,F=v>0?A-4:A,L;for(L=0;L<F;L+=4)h=c[f.charCodeAt(L)]<<18|c[f.charCodeAt(L+1)]<<12|c[f.charCodeAt(L+2)]<<6|c[f.charCodeAt(L+3)],P[D++]=h>>16&255,P[D++]=h>>8&255,P[D++]=h&255;return v===2&&(h=c[f.charCodeAt(L)]<<2|c[f.charCodeAt(L+1)]>>4,P[D++]=h&255),v===1&&(h=c[f.charCodeAt(L)]<<10|c[f.charCodeAt(L+1)]<<4|c[f.charCodeAt(L+2)]>>2,P[D++]=h>>8&255,P[D++]=h&255),P}function B(f){return u[f>>18&63]+u[f>>12&63]+u[f>>6&63]+u[f&63]}function k(f,h,g){for(var A,v=[],P=h;P<g;P+=3)A=(f[P]<<16&16711680)+(f[P+1]<<8&65280)+(f[P+2]&255),v.push(B(A));return v.join("")}function _(f){for(var h,g=f.length,A=g%3,v=[],P=16383,D=0,F=g-A;D<F;D+=P)v.push(k(f,D,D+P>F?F:D+P));return A===1?(h=f[g-1],v.push(u[h>>2]+u[h<<4&63]+"==")):A===2&&(h=(f[g-2]<<8)+f[g-1],v.push(u[h>>10]+u[h>>4&63]+u[h<<2&63]+"=")),v.join("")}return nr$2}var pr$2={},Kr$2=!1;function Ve$1(){if(Kr$2)return pr$2;Kr$2=!0;return pr$2.read=function(u,c,p,l,m){var w,o,E=m*8-l-1,b=(1<<E)-1,C=b>>1,B=-7,k=p?m-1:0,_=p?-1:1,f=u[c+k];for(k+=_,w=f&(1<<-B)-1,f>>=-B,B+=E;B>0;w=w*256+u[c+k],k+=_,B-=8);for(o=w&(1<<-B)-1,w>>=-B,B+=l;B>0;o=o*256+u[c+k],k+=_,B-=8);if(w===0)w=1-C;else {if(w===b)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,l),w=w-C;}return (f?-1:1)*o*Math.pow(2,w-l)},pr$2.write=function(u,c,p,l,m,w){var o,E,b,C=w*8-m-1,B=(1<<C)-1,k=B>>1,_=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=l?0:w-1,h=l?1:-1,g=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(E=isNaN(c)?1:0,o=B):(o=Math.floor(Math.log(c)/Math.LN2),c*(b=Math.pow(2,-o))<1&&(o--,b*=2),o+k>=1?c+=_/b:c+=_*Math.pow(2,1-k),c*b>=2&&(o++,b/=2),o+k>=B?(E=0,o=B):o+k>=1?(E=(c*b-1)*Math.pow(2,m),o=o+k):(E=c*Math.pow(2,k-1)*Math.pow(2,m),o=0));m>=8;u[p+f]=E&255,f+=h,E/=256,m-=8);for(o=o<<m|E,C+=m;C>0;u[p+f]=o&255,f+=h,o/=256,C-=8);u[p+f-h]|=g*128;},pr$2}var j$7={},Hr$1=!1;function Ge$3(){if(Hr$1)return j$7;Hr$1=!0;let u=Oe$3(),c=Ve$1(),p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;j$7.Buffer=o,j$7.SlowBuffer=v,j$7.INSPECT_MAX_BYTES=50;let l=2147483647;j$7.kMaxLength=l,o.TYPED_ARRAY_SUPPORT=m(),!o.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.");function m(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return !1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function w(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,o.prototype),r}function o(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(e)}return E(e,r,t)}o.poolSize=8192;function E(e,r,t){if(typeof e=="string")return k(e,r);if(ArrayBuffer.isView(e))return f(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return h(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,r,t);let i=g(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,r,t){return E(e,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function C(e,r,t){return b(e),e<=0?w(e):r!==void 0?typeof t=="string"?w(e).fill(r,t):w(e).fill(r):w(e)}o.alloc=function(e,r,t){return C(e,r,t)};function B(e){return b(e),w(e<0?0:A(e)|0)}o.allocUnsafe=function(e){return B(e)},o.allocUnsafeSlow=function(e){return B(e)};function k(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=P(e,r)|0,n=w(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function _(e){let r=e.length<0?0:A(e.length)|0,t=w(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function f(e){if(O(e,Uint8Array)){let r=new Uint8Array(e);return h(r.buffer,r.byteOffset,r.byteLength)}return _(e)}function h(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,o.prototype),n}function g(e){if(o.isBuffer(e)){let r=A(e.length)|0,t=w(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||gr(e.length)?w(0):_(e);if(e.type==="Buffer"&&Array.isArray(e.data))return _(e.data)}function A(e){if(e>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return e|0}function v(e){return +e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),O(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let s=0,a=Math.min(n,i);s<a;++s)if(r[s]!==t[s]){n=r[s],i=t[s];break}return n<i?-1:i<n?1:0},o.isEncoding=function(r){switch(String(r).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}},o.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;let i=o.allocUnsafe(t),s=0;for(n=0;n<r.length;++n){let a=r[n];if(O(a,Uint8Array))s+a.length>i.length?(o.isBuffer(a)||(a=o.from(a)),a.copy(i,s)):Uint8Array.prototype.set.call(i,a,s);else if(o.isBuffer(a))a.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=a.length;}return i};function P(e,r){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return wr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Or(e).length;default:if(i)return n?-1:wr(e).length;r=(""+r).toLowerCase(),i=!0;}}o.byteLength=P;function D(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return "";for(e||(e="utf8");;)switch(e){case"hex":return wt(this,r,t);case"utf8":case"utf-8":return br(this,r,t);case"ascii":return dt(this,r,t);case"latin1":case"binary":return mt(this,r,t);case"base64":return ft(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0;}}o.prototype._isBuffer=!0;function F(e,r,t){let n=e[r];e[r]=e[t],e[t]=n;}o.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)F(this,t,t+1);return this},o.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)F(this,t,t+3),F(this,t+1,t+2);return this},o.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)F(this,t,t+7),F(this,t+1,t+6),F(this,t+2,t+5),F(this,t+3,t+4);return this},o.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?br(this,0,r):D.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(r){if(!o.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0},o.prototype.inspect=function(){let r="",t=j$7.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},p&&(o.prototype[p]=o.prototype.inspect),o.prototype.compare=function(r,t,n,i,s){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>r.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===r)return 0;let a=s-i,d=n-t,x=Math.min(a,d),I=this.slice(i,s),U=r.slice(t,n);for(let y=0;y<x;++y)if(I[y]!==U[y]){a=I[y],d=U[y];break}return a<d?-1:d<a?1:0};function L(e,r,t,n,i){if(e.length===0)return -1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,gr(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return -1;t=e.length-1;}else if(t<0)if(i)t=0;else return -1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:Rr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Rr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Rr(e,r,t,n,i){let s=1,a=e.length,d=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return -1;s=2,a/=2,d/=2,t/=2;}function x(U,y){return s===1?U[y]:U.readUInt16BE(y*s)}let I;if(i){let U=-1;for(I=t;I<a;I++)if(x(e,I)===x(r,U===-1?0:I-U)){if(U===-1&&(U=I),I-U+1===d)return U*s}else U!==-1&&(I-=I-U),U=-1;}else for(t+d>a&&(t=a-d),I=t;I>=0;I--){let U=!0;for(let y=0;y<d;y++)if(x(e,I+y)!==x(r,y)){U=!1;break}if(U)return I}return -1}o.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1},o.prototype.indexOf=function(r,t,n){return L(this,r,t,n,!0)},o.prototype.lastIndexOf=function(r,t,n){return L(this,r,t,n,!1)};function ut(e,r,t,n){t=Number(t)||0;let i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let s=r.length;n>s/2&&(n=s/2);let a;for(a=0;a<n;++a){let d=parseInt(r.substr(a*2,2),16);if(gr(d))return a;e[t+a]=d;}return a}function at(e,r,t,n){return ar(wr(r,e.length-t),e,t,n)}function ct(e,r,t,n){return ar(Bt(r),e,t,n)}function pt(e,r,t,n){return ar(Or(r),e,t,n)}function lt(e,r,t,n){return ar(Tt(r,e.length-t),e,t,n)}o.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-t;if((n===void 0||n>s)&&(n=s),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return ut(this,r,t,n);case"utf8":case"utf-8":return at(this,r,t,n);case"ascii":case"latin1":case"binary":return ct(this,r,t,n);case"base64":return pt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,r,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0;}},o.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ft(e,r,t){return r===0&&t===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(r,t))}function br(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i<t;){let s=e[i],a=null,d=s>239?4:s>223?3:s>191?2:1;if(i+d<=t){let x,I,U,y;switch(d){case 1:s<128&&(a=s);break;case 2:x=e[i+1],(x&192)===128&&(y=(s&31)<<6|x&63,y>127&&(a=y));break;case 3:x=e[i+1],I=e[i+2],(x&192)===128&&(I&192)===128&&(y=(s&15)<<12|(x&63)<<6|I&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:x=e[i+1],I=e[i+2],U=e[i+3],(x&192)===128&&(I&192)===128&&(U&192)===128&&(y=(s&15)<<18|(x&63)<<12|(I&63)<<6|U&63,y>65535&&y<1114112&&(a=y));}}a===null?(a=65533,d=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=d;}return ht(n)}let Nr=4096;function ht(e){let r=e.length;if(r<=Nr)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Nr));return t}function dt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function mt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function wt(e,r,t){let n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let s=r;s<t;++s)i+=At[e[s]];return i}function gt(e,r,t){let n=e.slice(r,t),i="";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}o.prototype.slice=function(r,t){let n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);let i=this.subarray(r,t);return Object.setPrototypeOf(i,o.prototype),i};function N(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],s=1,a=0;for(;++a<t&&(s*=256);)i+=this[r+a]*s;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r+--t],s=1;for(;t>0&&(s*=256);)i+=this[r+--t]*s;return i},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,s=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))}),o.prototype.readBigUInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],s=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return (BigInt(i)<<BigInt(32))+BigInt(s)}),o.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],s=1,a=0;for(;++a<t&&(s*=256);)i+=this[r+a]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=t,s=1,a=this[r+--i];for(;i>0&&(s*=256);)a+=this[r+--i]*s;return s*=128,a>=s&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return (BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),o.prototype.readBigInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return (BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),o.prototype.readFloatLE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!1,52,8)};function $(e,r,t,n,i,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<s)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let d=Math.pow(2,8*n)-1;$(this,r,t,n,d,0);}let s=1,a=0;for(this[t]=r&255;++a<n&&(s*=256);)this[t+a]=r/s&255;return t+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let d=Math.pow(2,8*n)-1;$(this,r,t,n,d,0);}let s=n-1,a=1;for(this[t+s]=r&255;--s>=0&&(a*=256);)this[t+s]=r/a&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function vr(e,r,t,n,i){Fr(r,n,i,e,t,7);let s=Number(r&BigInt(4294967295));e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,t}function Mr(e,r,t,n,i){Fr(r,n,i,e,t,7);let s=Number(r&BigInt(4294967295));e[t+7]=s,s=s>>8,e[t+6]=s,s=s>>8,e[t+5]=s,s=s>>8,e[t+4]=s;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=a,a=a>>8,e[t+2]=a,a=a>>8,e[t+1]=a,a=a>>8,e[t]=a,t+8}o.prototype.writeBigUInt64LE=Y(function(r,t=0){return vr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Y(function(r,t=0){return Mr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let s=0,a=1,d=0;for(this[t]=r&255;++s<n&&(a*=256);)r<0&&d===0&&this[t+s-1]!==0&&(d=1),this[t+s]=(r/a>>0)-d&255;return t+n},o.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let s=n-1,a=1,d=0;for(this[t+s]=r&255;--s>=0&&(a*=256);)r<0&&d===0&&this[t+s+1]!==0&&(d=1),this[t+s]=(r/a>>0)-d&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=Y(function(r,t=0){return vr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Y(function(r,t=0){return Mr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Cr(e,r,t,n,i,s){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Lr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,4),c.write(e,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return Lr(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return Lr(this,r,t,!1,n)};function Dr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,8),c.write(e,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return Dr(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return Dr(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,i){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);let s=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),s},o.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){let a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a);}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let s;if(typeof r=="number")for(s=t;s<n;++s)this[s]=r;else {let a=o.isBuffer(r)?r:o.from(r,i),d=a.length;if(d===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=a[s%d];}return this};let Z={};function mr(e,r,t){Z[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,delete this.name;}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0});}toString(){return `${this.name} [${e}]: ${this.message}`}};}mr("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),mr("ERR_INVALID_ARG_TYPE",function(e,r){return `The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError),mr("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=$r(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=$r(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function $r(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return `${e.slice(0,t)}${r}`}function yt(e,r,t){rr(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&er(r,e.length-(t+1));}function Fr(e,r,t,n,i,s){if(e>t||e<r){let a=typeof r=="bigint"?"n":"",d;throw r===0||r===BigInt(0)?d=`>= 0${a} and < 2${a} ** ${(s+1)*8}${a}`:d=`>= -(2${a} ** ${(s+1)*8-1}${a}) and < 2 ** ${(s+1)*8-1}${a}`,new Z.ERR_OUT_OF_RANGE("value",d,e)}yt(n,i,s);}function rr(e,r){if(typeof e!="number")throw new Z.ERR_INVALID_ARG_TYPE(r,"number",e)}function er(e,r,t){throw Math.floor(e)!==e?(rr(e,t),new Z.ERR_OUT_OF_RANGE("offset","an integer",e)):r<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= ${0} and <= ${r}`,e)}let Et=/[^+/0-9A-Za-z-_]/g;function It(e){if(e=e.split("=")[0],e=e.trim().replace(Et,""),e.length<2)return "";for(;e.length%4!==0;)e=e+"=";return e}function wr(e,r){r=r||1/0;let t,n=e.length,i=null,s=[];for(let a=0;a<n;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&s.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536;}else i&&(r-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;s.push(t);}else if(t<2048){if((r-=2)<0)break;s.push(t>>6|192,t&63|128);}else if(t<65536){if((r-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128);}else if(t<1114112){if((r-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128);}else throw new Error("Invalid code point")}return s}function Bt(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Tt(e,r){let t,n,i,s=[];for(let a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),n=t>>8,i=t%256,s.push(i),s.push(n);return s}function Or(e){return u.toByteArray(It(e))}function ar(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function O(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function gr(e){return e!==e}let At=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i];}return r}();function Y(e){return typeof BigInt>"u"?xt:e}function xt(){throw new Error("BigInt not supported")}return j$7}var X$5=Ge$3();var S$8=X$5.Buffer;var Ur$2={};St$1(Ur$2,{deleteItem:()=>We$5,getItem:()=>fr$2,setItem:()=>or$3});var ir$2=()=>typeof window>"u",lr$2=()=>!ir$2();var Ye$3="__IMX-",Ar$3=()=>lr$2()&&window.localStorage,Ke$1=u=>{if(u!==null)try{return JSON.parse(u)}catch{return u}},He$2=u=>typeof u=="string"?u:JSON.stringify(u),xr$3=u=>`${Ye$3}${u}`;function fr$2(u){if(Ar$3())return Ke$1(window.localStorage.getItem(xr$3(u)))}var or$3=(u,c)=>Ar$3()?(window.localStorage.setItem(xr$3(u),He$2(c)),!0):!1,We$5=u=>Ar$3()?(window.localStorage.removeItem(xr$3(u)),!0):!1;var Sr$2=0,Wr=u=>{let c=parseInt(u,10)*1e3,p=new Date(c),l=new Date;return Sr$2=p.getTime()-l.getTime(),Sr$2},jr$2=()=>{let u=new Date().getTime()+Sr$2;return new Date(u).toISOString()};var sr$2=(E=>(E.RUNTIME_ID="rid",E.PASSPORT_CLIENT_ID="passportClientId",E.ENVIRONMENT="env",E.PUBLISHABLE_API_KEY="pak",E.IDENTITY="uid",E.DOMAIN="domain",E.SDK_VERSION="sdkVersion",E))(sr$2||{});var Xe$5="https://api.immutable.com";async function hr$3(u,c){let p=axios$1.create({baseURL:Xe$5}),l=JSON.stringify(c),m={payload:S$8.from(l).toString("base64")};return (await p.post(u,m)).data}var q$7,J$4,qe$2=()=>{q$7=fr$2("metrics-events")||[],J$4=fr$2("metrics-runtime")||{};};qe$2();var V$6=(u,c)=>{J$4={...J$4,[u]:c},or$3("metrics-runtime",J$4);},ur$2=u=>{if(J$4[u]!==void 0)return J$4[u]},Xr=()=>J$4,qr$1=()=>q$7,Jr$1=u=>{q$7.push(u),or$3("metrics-events",q$7);},zr$2=u=>{q$7=q$7.slice(u),or$3("metrics-events",q$7);},dr$2=u=>{let c=[];return Object.entries(u).forEach(([p,l])=>{(typeof p=="string"||typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&c.push([p,l.toString()]);}),c};var kr$2="2.1.8-alpha.0",Je$3=()=>ir$2()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",ze$3=()=>{if(ir$2())return "";let u;try{window.self!==window.top&&(u=Je$3());}catch{}return u||(u=window.location.hostname),u},Qe$3=()=>{if(V$6("sdkVersion",kr$2),ir$2())return {browser:"nodejs",sdkVersion:kr$2};let u=ze$3();return u&&V$6("domain",u),{sdkVersion:kr$2,browser:window.navigator.userAgent,domain:u,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},_r$2=!1,Qr$1=()=>_r$2,Zr=async()=>{_r$2=!0;try{let u=dr$2(Qe$3()),c=ur$2("rid"),p=ur$2("uid"),m=await hr$3("/v1/sdk/initialise",{version:1,data:{runtimeDetails:u,runtimeId:c,uId:p}}),{runtimeId:w,sTime:o}=m;V$6("rid",w),Wr(o);}catch{_r$2=!1;}};function R$4(u,c){return (...p)=>{try{let l=u(...p);return l instanceof Promise?l.catch(()=>c):l}catch{return c}}}function Ze$4(){return lr$2()||typeof T$7>"u"?!1:T$7.env.JEST_WORKER_ID!==void 0}var rt$1=R$4(Ze$4,!1);var et$2="imtbl__metrics",tn$1=5e3,en$1=1e3,z$9=(u,c)=>getGlobalisedValue_1(et$2,u,c),nt$1=(u,c)=>{let p=memorise(c,{lruOptions:{ttl:tn$1,max:en$1}});return getGlobalisedValue_1(et$2,u,p)};var nn=5e3,on=(u,c,p)=>{let l={event:`${u}.${c}`,time:jr$2(),...p&&{properties:dr$2(p)}};Jr$1(l);},Q$7=R$4(nt$1("track",on)),sn=async()=>{if(Qr$1()===!1){await Zr();return}let u=qr$1();if(u.length===0)return;let c=u.length,p=Xr();await hr$3("/v1/sdk/metrics",{version:1,data:{events:u,details:p}})instanceof Error||zr$2(c);},un$1=R$4(sn),ot$2=async()=>{await un$1(),setTimeout(ot$2,nn);},it$2=!1,an=()=>{it$2||(it$2=!0,ot$2());};rt$1()||R$4(z$9("startFlushing",an))();var Pr$3=(u,c,p,l)=>Q$7(u,c,{...l||{},duration:Math.round(p)});var st$2=()=>{let u=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return `${u()}${u()}-${u()}-${u()}-${u()}-${u()}${u()}${u()}`};var cn=(...u)=>{if(!u.some(l=>!!l))return {};let p={};return u.forEach(l=>{l&&(p={...p,...l});}),p},pn=u=>u.replace(/[^a-zA-Z0-9\s\-_]/g,""),ln$1=(u,c)=>`${u}_${pn(c)}`,fn=(u,c,p=!0,l)=>{let m=st$2(),w=Date.now(),o=0,E=0,b={},C=(..._)=>cn(b,..._,{flowId:m,flowName:c});b=C(l);let B=_=>{_&&(b=C(_));},k=(_,f)=>{let h=ln$1(c,_),g=0,A=performance.now();o>0&&(g=A-E);let v=C(f,{flowEventName:_,flowStep:o});Pr$3(u,h,g,v),o++,E=A;};return p&&k("Start"),{details:{moduleName:u,flowName:c,flowId:m,flowStartTime:w},addEvent:R$4(k),addFlowProperties:R$4(B)}},hn=R$4(fn);var dn$1=(u,c,p,l)=>{let{message:m}=p,w=p.stack||"",{cause:o}=p;o instanceof Error&&(w=`${w}
|
|
4113
4113
|
Cause: ${o.message}
|
|
4114
|
-
${o.stack}`),Q$7(u,`trackError_${c}`,{...l||{},errorMessage:m,errorStack:w,isTrackError:!0});},mn=R$4(dn$
|
|
4114
|
+
${o.stack}`),Q$7(u,`trackError_${c}`,{...l||{},errorMessage:m,errorStack:w,isTrackError:!0});},mn$1=R$4(dn$1);var En$1=u=>{V$6("env",u);},In$1=R$4(z$9("setEnvironment",En$1)),Bn=u=>{V$6("passportClientId",u);};R$4(z$9("setPassportClientId",Bn));var An=u=>{V$6("pak",u);};R$4(z$9("setPublishableApiKey",An));R$4(z$9("getDetail",ur$2));
|
|
4115
4115
|
|
|
4116
4116
|
var K$7=(t=>(t.PRODUCTION="production",t.SANDBOX="sandbox",t))(K$7||{}),u$4=(n=>(n.API_KEY="x-immutable-api-key",n.PUBLISHABLE_KEY="x-immutable-publishable-key",n.RATE_LIMITING_KEY="x-api-key",n))(u$4||{}),r$8=class r{environment;rateLimitingKey;apiKey;publishableKey;constructor(i){this.environment=i.environment,this.publishableKey=i.publishableKey,this.apiKey=i.apiKey,this.rateLimitingKey=i.rateLimitingKey,In$1(i.environment),Q$7("config","created_imtbl_config");}};
|
|
4117
4117
|
|
|
@@ -60383,18 +60383,19 @@ function requireEthers$1 () {
|
|
|
60383
60383
|
} (lib_commonjs$2));
|
|
60384
60384
|
|
|
60385
60385
|
// src/widgets/definitions/events/widgets.ts
|
|
60386
|
-
var no$1 = /* @__PURE__ */ ((
|
|
60387
|
-
|
|
60388
|
-
|
|
60389
|
-
|
|
60390
|
-
|
|
60391
|
-
|
|
60392
|
-
|
|
60393
|
-
|
|
60394
|
-
|
|
60395
|
-
|
|
60396
|
-
|
|
60397
|
-
|
|
60386
|
+
var no$1 = /* @__PURE__ */ ((g) => {
|
|
60387
|
+
g["IMTBL_WIDGETS_PROVIDER"] = "imtbl-widgets-provider";
|
|
60388
|
+
g["IMTBL_CONNECT_WIDGET_EVENT"] = "imtbl-connect-widget";
|
|
60389
|
+
g["IMTBL_WALLET_WIDGET_EVENT"] = "imtbl-wallet-widget";
|
|
60390
|
+
g["IMTBL_SWAP_WIDGET_EVENT"] = "imtbl-swap-widget";
|
|
60391
|
+
g["IMTBL_BRIDGE_WIDGET_EVENT"] = "imtbl-bridge-widget";
|
|
60392
|
+
g["IMTBL_ONRAMP_WIDGET_EVENT"] = "imtbl-onramp-widget";
|
|
60393
|
+
g["IMTBL_SALE_WIDGET_EVENT"] = "imtbl-sale-widget";
|
|
60394
|
+
g["IMTBL_COMMERCE_WIDGET_EVENT"] = "imtbl-commerce-widget";
|
|
60395
|
+
g["IMTBL_ADD_TOKENS_WIDGET_EVENT"] = "imtbl-add-tokens-widget";
|
|
60396
|
+
g["IMTBL_PURCHASE_WIDGET_EVENT"] = "imtbl-purchase-widget";
|
|
60397
|
+
g["IMTBL_TRANSFER_WIDGET_EVENT"] = "imtbl-transfer-widget";
|
|
60398
|
+
return g;
|
|
60398
60399
|
})(no$1 || {});
|
|
60399
60400
|
var ao$1 = /* @__PURE__ */ ((e) => {
|
|
60400
60401
|
e["PROVIDER_UPDATED"] = "PROVIDER_UPDATED";
|
|
@@ -60545,46 +60546,57 @@ var Io$1 = /* @__PURE__ */ ((n) => {
|
|
|
60545
60546
|
return n;
|
|
60546
60547
|
})(Io$1 || {});
|
|
60547
60548
|
|
|
60548
|
-
// src/widgets/definitions/
|
|
60549
|
-
var ho = /* @__PURE__ */ ((
|
|
60550
|
-
|
|
60551
|
-
|
|
60552
|
-
|
|
60553
|
-
|
|
60554
|
-
|
|
60555
|
-
p["SALE"] = "sale";
|
|
60556
|
-
p["IMMUTABLE_COMMERCE"] = "immutableCommerce";
|
|
60557
|
-
p["ADD_TOKENS"] = "addTokens";
|
|
60558
|
-
p["PURCHASE"] = "purchase";
|
|
60559
|
-
return p;
|
|
60549
|
+
// src/widgets/definitions/events/transfer.ts
|
|
60550
|
+
var ho = /* @__PURE__ */ ((n) => {
|
|
60551
|
+
n["CLOSE_WIDGET"] = "close-widget";
|
|
60552
|
+
n["REJECTED"] = "rejected";
|
|
60553
|
+
n["SUCCESS"] = "success";
|
|
60554
|
+
n["FAILURE"] = "failure";
|
|
60555
|
+
return n;
|
|
60560
60556
|
})(ho || {});
|
|
60561
60557
|
|
|
60558
|
+
// src/widgets/definitions/types.ts
|
|
60559
|
+
var yo$1 = /* @__PURE__ */ ((m) => {
|
|
60560
|
+
m["CONNECT"] = "connect";
|
|
60561
|
+
m["WALLET"] = "wallet";
|
|
60562
|
+
m["SWAP"] = "swap";
|
|
60563
|
+
m["BRIDGE"] = "bridge";
|
|
60564
|
+
m["ONRAMP"] = "onramp";
|
|
60565
|
+
m["SALE"] = "sale";
|
|
60566
|
+
m["IMMUTABLE_COMMERCE"] = "immutableCommerce";
|
|
60567
|
+
m["ADD_TOKENS"] = "addTokens";
|
|
60568
|
+
m["PURCHASE"] = "purchase";
|
|
60569
|
+
m["TRANSFER"] = "transfer";
|
|
60570
|
+
return m;
|
|
60571
|
+
})(yo$1 || {});
|
|
60572
|
+
|
|
60562
60573
|
// src/widgets/definitions/parameters/swap.ts
|
|
60563
|
-
var
|
|
60574
|
+
var Po$1 = /* @__PURE__ */ ((t) => {
|
|
60564
60575
|
t["FROM"] = "FROM";
|
|
60565
60576
|
t["TO"] = "TO";
|
|
60566
60577
|
return t;
|
|
60567
|
-
})(
|
|
60578
|
+
})(Po$1 || {});
|
|
60568
60579
|
|
|
60569
60580
|
// src/widgets/definitions/parameters/commerce.ts
|
|
60570
|
-
var
|
|
60571
|
-
|
|
60572
|
-
|
|
60573
|
-
|
|
60574
|
-
|
|
60575
|
-
|
|
60576
|
-
|
|
60577
|
-
|
|
60578
|
-
|
|
60579
|
-
|
|
60580
|
-
|
|
60581
|
+
var wo$1 = /* @__PURE__ */ ((p) => {
|
|
60582
|
+
p["CONNECT"] = "CONNECT";
|
|
60583
|
+
p["WALLET"] = "WALLET";
|
|
60584
|
+
p["SALE"] = "SALE";
|
|
60585
|
+
p["SWAP"] = "SWAP";
|
|
60586
|
+
p["BRIDGE"] = "BRIDGE";
|
|
60587
|
+
p["ONRAMP"] = "ONRAMP";
|
|
60588
|
+
p["ADD_TOKENS"] = "ADD_TOKENS";
|
|
60589
|
+
p["PURCHASE"] = "PURCHASE";
|
|
60590
|
+
p["TRANSFER"] = "TRANSFER";
|
|
60591
|
+
return p;
|
|
60592
|
+
})(wo$1 || {});
|
|
60581
60593
|
|
|
60582
60594
|
// src/widgets/definitions/configurations/theme.ts
|
|
60583
|
-
var
|
|
60595
|
+
var So$1 = /* @__PURE__ */ ((t) => {
|
|
60584
60596
|
t["LIGHT"] = "light";
|
|
60585
60597
|
t["DARK"] = "dark";
|
|
60586
60598
|
return t;
|
|
60587
|
-
})(
|
|
60599
|
+
})(So$1 || {});
|
|
60588
60600
|
|
|
60589
60601
|
// src/errors/checkoutError.ts
|
|
60590
60602
|
var S$7 = /* @__PURE__ */ ((A) => {
|
|
@@ -60633,14 +60645,14 @@ var S$7 = /* @__PURE__ */ ((A) => {
|
|
|
60633
60645
|
})(S$7 || {});
|
|
60634
60646
|
|
|
60635
60647
|
// src/types/chains.ts
|
|
60636
|
-
var
|
|
60648
|
+
var Y$3 = /* @__PURE__ */ ((a) => {
|
|
60637
60649
|
a[a["IMTBL_ZKEVM_MAINNET"] = 13371] = "IMTBL_ZKEVM_MAINNET";
|
|
60638
60650
|
a[a["IMTBL_ZKEVM_TESTNET"] = 13473] = "IMTBL_ZKEVM_TESTNET";
|
|
60639
60651
|
a[a["IMTBL_ZKEVM_DEVNET"] = 15003] = "IMTBL_ZKEVM_DEVNET";
|
|
60640
60652
|
a[a["ETHEREUM"] = 1] = "ETHEREUM";
|
|
60641
60653
|
a[a["SEPOLIA"] = 11155111] = "SEPOLIA";
|
|
60642
60654
|
return a;
|
|
60643
|
-
})(
|
|
60655
|
+
})(Y$3 || {});
|
|
60644
60656
|
var ot$1 = /* @__PURE__ */ ((a) => {
|
|
60645
60657
|
a["ETHEREUM"] = "Ethereum";
|
|
60646
60658
|
a["SEPOLIA"] = "Sepolia";
|
|
@@ -60668,7 +60680,7 @@ var Se$3 = {
|
|
|
60668
60680
|
decimals: j$6,
|
|
60669
60681
|
address: x$4
|
|
60670
60682
|
};
|
|
60671
|
-
var
|
|
60683
|
+
var _o$1 = {
|
|
60672
60684
|
name: "tIMX",
|
|
60673
60685
|
symbol: "tIMX",
|
|
60674
60686
|
decimals: j$6,
|
|
@@ -60727,7 +60739,7 @@ var we$3 = /* @__PURE__ */ new Map([
|
|
|
60727
60739
|
chainIdHex: `0x${13473 .toString(16)}`,
|
|
60728
60740
|
chainName: "Immutable zkEVM Testnet",
|
|
60729
60741
|
rpcUrls: ["https://rpc.testnet.immutable.com"],
|
|
60730
|
-
nativeCurrency:
|
|
60742
|
+
nativeCurrency: _o$1
|
|
60731
60743
|
}
|
|
60732
60744
|
]
|
|
60733
60745
|
]);
|
|
@@ -60838,9 +60850,9 @@ var jt$2 = /* @__PURE__ */ ((e) => {
|
|
|
60838
60850
|
})(jt$2 || {});
|
|
60839
60851
|
|
|
60840
60852
|
// src/gasEstimate/gasPriceInWei.ts
|
|
60841
|
-
var
|
|
60853
|
+
var ln = (r) => !!r.maxFeePerGas && !!r.maxPriorityFeePerGas;
|
|
60842
60854
|
var Rt$1 = (r) => {
|
|
60843
|
-
if (
|
|
60855
|
+
if (ln(r)) {
|
|
60844
60856
|
const { maxFeePerGas: e, maxPriorityFeePerGas: t } = r;
|
|
60845
60857
|
if (e === null || t === null) return null;
|
|
60846
60858
|
const o = (e - t) / BigInt(2);
|
|
@@ -60865,11 +60877,11 @@ var De$3 = {
|
|
|
60865
60877
|
rdns: "com.immutable.passport",
|
|
60866
60878
|
uuid: "b90118be-7234-4c89-b89b-d5d267663eb5"
|
|
60867
60879
|
};
|
|
60868
|
-
var
|
|
60880
|
+
var un = (r) => ({
|
|
60869
60881
|
info: De$3,
|
|
60870
60882
|
provider: r
|
|
60871
60883
|
});
|
|
60872
|
-
var
|
|
60884
|
+
var mn = (r) => ({
|
|
60873
60885
|
info: Le$2,
|
|
60874
60886
|
provider: r
|
|
60875
60887
|
});
|
|
@@ -64477,6 +64489,29 @@ var views$3 = {
|
|
|
64477
64489
|
linkText: "Visit our FAQs"
|
|
64478
64490
|
}
|
|
64479
64491
|
},
|
|
64492
|
+
TRANSFER: {
|
|
64493
|
+
header: {
|
|
64494
|
+
title: "Send tokens"
|
|
64495
|
+
},
|
|
64496
|
+
content: {
|
|
64497
|
+
fiatPricePrefix: "≈ USD",
|
|
64498
|
+
availableBalancePrefix: "Available",
|
|
64499
|
+
notAllExchangesSupportImmutableZkEVM: "Not all Exchanges Support Immutable zkEVM!",
|
|
64500
|
+
notAllExchangesSupportImmutableZkEVMDescription: "You can only send tokens within the Immutable zkEVM network. Some exchanges do not support Immutable zkEVM, so ensure your destination is compatible before sending, as retrieving funds can be difficult to impossible.",
|
|
64501
|
+
tokensSentSuccessfully: "Tokens Sent Successfully",
|
|
64502
|
+
seeTransactionOnImmutableZkEVM: "See transaction on Immutable zkEVM",
|
|
64503
|
+
sendingTokens: "Sending Tokens",
|
|
64504
|
+
waitingForYouToApproveTxn: "Waiting for you to Approve Transaction",
|
|
64505
|
+
waitingForYouToApproveTxnDescription: "Approve the transaction request to complete this transaction"
|
|
64506
|
+
},
|
|
64507
|
+
form: {
|
|
64508
|
+
buttonText: "Send",
|
|
64509
|
+
coinSelectorHeading: "Select a token",
|
|
64510
|
+
coinAmountHeading: "Send",
|
|
64511
|
+
toAddressHeading: "To address",
|
|
64512
|
+
continueButtonText: "Continue"
|
|
64513
|
+
}
|
|
64514
|
+
},
|
|
64480
64515
|
SWAP: {
|
|
64481
64516
|
header: {
|
|
64482
64517
|
title: "Swap tokens"
|
|
@@ -69470,7 +69505,7 @@ const DEFAULT_ENV = K$7.SANDBOX;
|
|
|
69470
69505
|
/**
|
|
69471
69506
|
* Commerce Widget default theme
|
|
69472
69507
|
*/
|
|
69473
|
-
const DEFAULT_THEME$1 =
|
|
69508
|
+
const DEFAULT_THEME$1 = So$1.DARK;
|
|
69474
69509
|
/**
|
|
69475
69510
|
* Commerce Widget default onramp enabled flag
|
|
69476
69511
|
*/
|
|
@@ -69527,15 +69562,15 @@ const WITHDRAWAL_CLAIM_GAS_LIMIT = 91000;
|
|
|
69527
69562
|
const getL1ChainId = (config) => {
|
|
69528
69563
|
// DevMode and Sandbox will both use Sepolia.
|
|
69529
69564
|
if (!config.isProduction)
|
|
69530
|
-
return
|
|
69531
|
-
return
|
|
69565
|
+
return Y$3.SEPOLIA;
|
|
69566
|
+
return Y$3.ETHEREUM;
|
|
69532
69567
|
};
|
|
69533
69568
|
const getL2ChainId = (config) => {
|
|
69534
69569
|
if (config.isDevelopment)
|
|
69535
|
-
return
|
|
69570
|
+
return Y$3.IMTBL_ZKEVM_DEVNET;
|
|
69536
69571
|
if (config.isProduction)
|
|
69537
|
-
return
|
|
69538
|
-
return
|
|
69572
|
+
return Y$3.IMTBL_ZKEVM_MAINNET;
|
|
69573
|
+
return Y$3.IMTBL_ZKEVM_TESTNET;
|
|
69539
69574
|
};
|
|
69540
69575
|
// **************************************************** //
|
|
69541
69576
|
// **************************************************** //
|
|
@@ -69840,7 +69875,7 @@ function snapshot(proxyObject, handlePromise) {
|
|
|
69840
69875
|
|
|
69841
69876
|
const o$3=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),T$5={state:o$3,subscribe(e){return subscribe(o$3,()=>e(o$3))},push(e,t){e!==o$3.view&&(o$3.view=e,t&&(o$3.data=t),o$3.history.push(e));},reset(e){o$3.view=e,o$3.history=[e];},replace(e){o$3.history.length>1&&(o$3.history[o$3.history.length-1]=e,o$3.view=e);},goBack(){if(o$3.history.length>1){o$3.history.pop();const[e]=o$3.history.slice(-1);o$3.view=e;}},setData(e){o$3.data=e;}},a$3={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a$3.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a$3.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(a$3.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},formatUniversalUrl(e,t,s){if(!a$3.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},async wait(e){return new Promise(t=>{setTimeout(t,e);})},openHref(e,t){window.open(e,t,"noreferrer noopener");},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a$3.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}));}catch{console.info("Unable to set WalletConnect deep link");}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a$3.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}));}catch{console.info("Unable to set WalletConnect android deep link");}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a$3.WALLETCONNECT_DEEPLINK_CHOICE);}catch{console.info("Unable to remove WalletConnect deep link");}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a$3.WCM_VERSION,"2.6.2");}catch{console.info("Unable to set Web3Modal version in storage");}},getWalletRouterData(){var e;const t=(e=T$5.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},_$2=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r$4=proxy({enabled:_$2,userSessionId:"",events:[],connectedWalletId:void 0}),R$2={state:r$4,subscribe(e){return subscribe(r$4.events,()=>e(snapshot(r$4.events[r$4.events.length-1])))},initialize(){r$4.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r$4.userSessionId=crypto.randomUUID());},setConnectedWalletId(e){r$4.connectedWalletId=e;},click(e){if(r$4.enabled){const t={type:"CLICK",name:e.name,userSessionId:r$4.userSessionId,timestamp:Date.now(),data:e};r$4.events.push(t);}},track(e){if(r$4.enabled){const t={type:"TRACK",name:e.name,userSessionId:r$4.userSessionId,timestamp:Date.now(),data:e};r$4.events.push(t);}},view(e){if(r$4.enabled){const t={type:"VIEW",name:e.name,userSessionId:r$4.userSessionId,timestamp:Date.now(),data:e};r$4.events.push(t);}}},c$4=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p$9={state:c$4,subscribe(e){return subscribe(c$4,()=>e(c$4))},setChains(e){c$4.chains=e;},setWalletConnectUri(e){c$4.walletConnectUri=e;},setIsCustomDesktop(e){c$4.isCustomDesktop=e;},setIsCustomMobile(e){c$4.isCustomMobile=e;},setIsDataLoaded(e){c$4.isDataLoaded=e;},setIsUiLoaded(e){c$4.isUiLoaded=e;},setIsAuth(e){c$4.isAuth=e;}},W$2=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),y$8={state:W$2,subscribe(e){return subscribe(W$2,()=>e(W$2))},setConfig(e){var t,s;R$2.initialize(),p$9.setChains(e.chains),p$9.setIsAuth(Boolean(e.enableAuthMode)),p$9.setIsCustomMobile(Boolean((t=e.mobileWallets)==null?void 0:t.length)),p$9.setIsCustomDesktop(Boolean((s=e.desktopWallets)==null?void 0:s.length)),a$3.setModalVersionInStorage(),Object.assign(W$2,e);}};var V$4=Object.defineProperty,D$4=Object.getOwnPropertySymbols,H$2=Object.prototype.hasOwnProperty,B$4=Object.prototype.propertyIsEnumerable,M$5=(e,t,s)=>t in e?V$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K$4=(e,t)=>{for(var s in t||(t={}))H$2.call(t,s)&&M$5(e,s,t[s]);if(D$4)for(var s of D$4(t))B$4.call(t,s)&&M$5(e,s,t[s]);return e};const L$7="https://explorer-api.walletconnect.com",E$7="wcm",O$5="js-2.6.2";async function w$5(e,t){const s=K$4({sdkType:E$7,sdkVersion:O$5},t),n=new URL(e,L$7);return n.searchParams.append("projectId",y$8.state.projectId),Object.entries(s).forEach(([i,l])=>{l&&n.searchParams.append(i,String(l));}),(await fetch(n)).json()}const m$4={async getDesktopListings(e){return w$5("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w$5("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w$5("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w$5("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return `${L$7}/w3m/v1/getWalletImage/${e}?projectId=${y$8.state.projectId}&sdkType=${E$7}&sdkVersion=${O$5}`},getAssetImageUrl(e){return `${L$7}/w3m/v1/getAssetImage/${e}?projectId=${y$8.state.projectId}&sdkType=${E$7}&sdkVersion=${O$5}`}};var z$7=Object.defineProperty,j$5=Object.getOwnPropertySymbols,J$2=Object.prototype.hasOwnProperty,q$4=Object.prototype.propertyIsEnumerable,k$3=(e,t,s)=>t in e?z$7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F$1=(e,t)=>{for(var s in t||(t={}))J$2.call(t,s)&&k$3(e,s,t[s]);if(j$5)for(var s of j$5(t))q$4.call(t,s)&&k$3(e,s,t[s]);return e};const N$3=a$3.isMobile(),d$5=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),te$3={state:d$5,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=y$8.state;if(e==="NONE"||t==="ALL"&&!e)return d$5.recomendedWallets;if(a$3.isArray(e)){const s={recommendedIds:e.join(",")},{listings:n}=await m$4.getAllListings(s),i=Object.values(n);i.sort((l,v)=>{const b=e.indexOf(l.id),f=e.indexOf(v.id);return b-f}),d$5.recomendedWallets=i;}else {const{chains:s,isAuth:n}=p$9.state,i=s?.join(","),l=a$3.isArray(t),v={page:1,sdks:n?"auth_v1":void 0,entries:a$3.RECOMMENDED_WALLET_AMOUNT,chains:i,version:2,excludedIds:l?t.join(","):void 0},{listings:b}=N$3?await m$4.getMobileListings(v):await m$4.getDesktopListings(v);d$5.recomendedWallets=Object.values(b);}return d$5.recomendedWallets},async getWallets(e){const t=F$1({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=y$8.state,{recomendedWallets:i}=d$5;if(n==="ALL")return d$5.wallets;i.length?t.excludedIds=i.map(x=>x.id).join(","):a$3.isArray(s)&&(t.excludedIds=s.join(",")),a$3.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p$9.state.isAuth&&(t.sdks="auth_v1");const{page:l,search:v}=e,{listings:b,total:f}=N$3?await m$4.getMobileListings(t):await m$4.getDesktopListings(t),A=Object.values(b),U=v?"search":"wallets";return d$5[U]={listings:[...d$5[U].listings,...A],total:f,page:l??1},{listings:A,total:f}},getWalletImageUrl(e){return m$4.getWalletImageUrl(e)},getAssetImageUrl(e){return m$4.getAssetImageUrl(e)},resetSearch(){d$5.search={listings:[],total:0,page:1};}},I$4=proxy({open:!1}),se$3={state:I$4,subscribe(e){return subscribe(I$4,()=>e(I$4))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=p$9.state;if(a$3.removeWalletConnectDeepLink(),p$9.setWalletConnectUri(e?.uri),p$9.setChains(e?.chains),T$5.reset("ConnectWallet"),s&&n)I$4.open=!0,t();else {const i=setInterval(()=>{const l=p$9.state;l.isUiLoaded&&l.isDataLoaded&&(clearInterval(i),I$4.open=!0,t());},200);}})},close(){I$4.open=!1;}};var G$2=Object.defineProperty,$$1=Object.getOwnPropertySymbols,Q$5=Object.prototype.hasOwnProperty,X$3=Object.prototype.propertyIsEnumerable,S$5=(e,t,s)=>t in e?G$2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y$2=(e,t)=>{for(var s in t||(t={}))Q$5.call(t,s)&&S$5(e,s,t[s]);if($$1)for(var s of $$1(t))X$3.call(t,s)&&S$5(e,s,t[s]);return e};function Z$3(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const C$6=proxy({themeMode:Z$3()?"dark":"light"}),ne$4={state:C$6,subscribe(e){return subscribe(C$6,()=>e(C$6))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(C$6.themeMode=t),s&&(C$6.themeVariables=Y$2({},s));}},g$5=proxy({open:!1,message:"",variant:"success"}),oe$4={state:g$5,subscribe(e){return subscribe(g$5,()=>e(g$5))},openToast(e,t){g$5.open=!0,g$5.message=e,g$5.variant=t;},closeToast(){g$5.open=!1;}};
|
|
69842
69877
|
|
|
69843
|
-
let d$4 = class d{constructor(e){this.openModal=se$3.open,this.closeModal=se$3.close,this.subscribeModal=se$3.subscribe,this.setTheme=ne$4.setThemeConfig,ne$4.setThemeConfig(e),y$8.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-
|
|
69878
|
+
let d$4 = class d{constructor(e){this.openModal=se$3.open,this.closeModal=se$3.close,this.subscribeModal=se$3.subscribe,this.setTheme=ne$4.setThemeConfig,ne$4.setThemeConfig(e),y$8.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-QK2DNRDr.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$9.setIsUiLoaded(!0);}}};
|
|
69844
69879
|
|
|
69845
69880
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
69846
69881
|
__proto__: null,
|
|
@@ -80418,8 +80453,8 @@ const walletConnectProviderInfo = {
|
|
|
80418
80453
|
icon: 'data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDggNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGc+PHBhdGggZD0iTTEwLjQyMzYgMTQuODY4NkMxNy45NTA3IDcuNTIzNzcgMzAuMTY5NCA3LjUyMzc3IDM3LjY5NjQgMTQuODY4NkwzOC42MDI2IDE1Ljc1OTNDMzguOTgyNiAxNi4xMjQ0IDM4Ljk4MjYgMTYuNzIzMSAzOC42MDI2IDE3LjA4ODFMMzUuNTA0MSAyMC4xMTA4QzM1LjMxNDEgMjAuMzAwNiAzNS4wMDcxIDIwLjMwMDYgMzQuODE3MSAyMC4xMTA4TDMzLjU3NDggMTguODk4OEMyOC4zMTMyIDEzLjc3MzUgMTkuODA2OSAxMy43NzM1IDE0LjU0NTIgMTguODk4OEwxMy4yMTUyIDIwLjE5ODRDMTMuMDI1MiAyMC4zODgyIDEyLjcxODMgMjAuMzg4MiAxMi41MjgzIDIwLjE5ODRMOS40Mjk3OCAxNy4xNzU3QzkuMDQ5NzcgMTYuODEwNyA5LjA0OTc3IDE2LjIxMiA5LjQyOTc4IDE1Ljg0N0wxMC40MjM2IDE0Ljg2ODZaTTQ0LjExMjcgMjEuMTE4M0w0Ni44NzUgMjMuODA1MUM0Ny4yNTUgMjQuMTcwMSA0Ny4yNTUgMjQuNzY4OCA0Ni44NzUgMjUuMTMzOUwzNC40MzcxIDM3LjI2ODJDMzQuMDU3MSAzNy42MzMyIDMzLjQ0MzMgMzcuNjMzMiAzMy4wNzc5IDM3LjI2ODJMMjQuMjUgMjguNjUzQzI0LjE2MjMgMjguNTY1NCAyNC4wMDE2IDI4LjU2NTQgMjMuOTEzOSAyOC42NTNMMTUuMDg2IDM3LjI2ODJDMTQuNzA2IDM3LjYzMzIgMTQuMDkyMiAzNy42MzMyIDEzLjcyNjggMzcuMjY4MkwxLjI0NTAzIDI1LjEzMzlDMC44NjUwMiAyNC43Njg4IDAuODY1MDIgMjQuMTcwMSAxLjI0NTAzIDIzLjgwNTFMNC4wMDczOCAyMS4xMTgzQzQuMzg3MzkgMjAuNzUzMyA1LjAwMTI1IDIwLjc1MzMgNS4zNjY2NCAyMS4xMTgzTDE0LjE5NDUgMjkuNzMzNUMxNC4yODIyIDI5LjgyMTEgMTQuNDQyOSAyOS44MjExIDE0LjUzMDYgMjkuNzMzNUwyMy4zNTg1IDIxLjExODNDMjMuNzM4NSAyMC43NTMzIDI0LjM1MjMgMjAuNzUzMyAyNC43MTc3IDIxLjExODNMMzMuNTQ1NiAyOS43MzM1QzMzLjYzMzMgMjkuODIxMSAzMy43OTQgMjkuODIxMSAzMy44ODE3IDI5LjczMzVMNDIuNzA5NiAyMS4xMTgzQzQzLjExODggMjAuNzUzMyA0My43MzI3IDIwLjc1MzMgNDQuMTEyNyAyMS4xMTgzWiIgZmlsbD0iIzM2OEFGQSI+PC9wYXRoPjwvZz48L3N2Zz4=',
|
|
80419
80454
|
uuid: 'walletconnect',
|
|
80420
80455
|
};
|
|
80421
|
-
const testnetModalChains = [`eip155:${
|
|
80422
|
-
const productionModalChains = [`eip155:${
|
|
80456
|
+
const testnetModalChains = [`eip155:${Y$3.IMTBL_ZKEVM_TESTNET}`, `eip155:${Y$3.SEPOLIA}`];
|
|
80457
|
+
const productionModalChains = [`eip155:${Y$3.IMTBL_ZKEVM_MAINNET}`, `eip155:${Y$3.ETHEREUM}`];
|
|
80423
80458
|
const darkThemeVariables = {
|
|
80424
80459
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
80425
80460
|
'--wcm-accent-fill-color': '#F3F3F3',
|
|
@@ -80516,7 +80551,7 @@ class WalletConnectManager {
|
|
|
80516
80551
|
? productionWalletWhitelist : sandboxWalletWhitelist,
|
|
80517
80552
|
explorerExcludedWalletIds: [],
|
|
80518
80553
|
themeMode: this.theme,
|
|
80519
|
-
themeVariables: this.theme ===
|
|
80554
|
+
themeVariables: this.theme === So$1.DARK ? darkThemeVariables : lightThemeVariables,
|
|
80520
80555
|
});
|
|
80521
80556
|
this.walletConnectModal = modal;
|
|
80522
80557
|
}
|
|
@@ -80536,21 +80571,21 @@ class WalletConnectManager {
|
|
|
80536
80571
|
C$2.init({
|
|
80537
80572
|
projectId: this.walletConnectConfig.projectId,
|
|
80538
80573
|
chains: this.environment === K$7.PRODUCTION
|
|
80539
|
-
? [
|
|
80540
|
-
: [
|
|
80574
|
+
? [Y$3.ETHEREUM]
|
|
80575
|
+
: [Y$3.SEPOLIA],
|
|
80541
80576
|
optionalChains: this.environment === K$7.PRODUCTION
|
|
80542
|
-
? [
|
|
80543
|
-
: [
|
|
80577
|
+
? [Y$3.IMTBL_ZKEVM_MAINNET, Y$3.ETHEREUM]
|
|
80578
|
+
: [Y$3.IMTBL_ZKEVM_TESTNET, Y$3.SEPOLIA],
|
|
80544
80579
|
showQrModal: false,
|
|
80545
80580
|
metadata: this.walletConnectConfig.metadata,
|
|
80546
80581
|
qrModalOptions: {
|
|
80547
80582
|
themeMode: this.theme,
|
|
80548
80583
|
},
|
|
80549
80584
|
rpcMap: {
|
|
80550
|
-
[
|
|
80551
|
-
[
|
|
80552
|
-
[
|
|
80553
|
-
[
|
|
80585
|
+
[Y$3.ETHEREUM]: 'https://checkout-api.immutable.com/v1/rpc/eth-mainnet',
|
|
80586
|
+
[Y$3.IMTBL_ZKEVM_MAINNET]: 'https://rpc.immutable.com',
|
|
80587
|
+
[Y$3.SEPOLIA]: 'https://checkout-api.sandbox.immutable.com/v1/rpc/eth-sepolia',
|
|
80588
|
+
[Y$3.IMTBL_ZKEVM_TESTNET]: 'https://rpc.testnet.immutable.com',
|
|
80554
80589
|
},
|
|
80555
80590
|
})
|
|
80556
80591
|
.then((wcEthereumProvider) => {
|
|
@@ -82715,7 +82750,7 @@ var m = reactDomExports;
|
|
|
82715
82750
|
function getValidTheme(theme) {
|
|
82716
82751
|
if (!theme)
|
|
82717
82752
|
return DEFAULT_THEME$1;
|
|
82718
|
-
if (!Object.values(
|
|
82753
|
+
if (!Object.values(So$1).includes(theme))
|
|
82719
82754
|
return DEFAULT_THEME$1;
|
|
82720
82755
|
return theme;
|
|
82721
82756
|
}
|
|
@@ -86173,7 +86208,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
86173
86208
|
return __generator(this, function (_b) {
|
|
86174
86209
|
switch (_b.label) {
|
|
86175
86210
|
case 0: return [4 /*yield*/, import(
|
|
86176
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
86211
|
+
/* webpackChunkName: "auto-track" */ './auto-track-C_ogbZXY.js')];
|
|
86177
86212
|
case 1:
|
|
86178
86213
|
autotrack = _b.sent();
|
|
86179
86214
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -86192,7 +86227,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
86192
86227
|
return __generator(this, function (_b) {
|
|
86193
86228
|
switch (_b.label) {
|
|
86194
86229
|
case 0: return [4 /*yield*/, import(
|
|
86195
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
86230
|
+
/* webpackChunkName: "auto-track" */ './auto-track-C_ogbZXY.js')];
|
|
86196
86231
|
case 1:
|
|
86197
86232
|
autotrack = _b.sent();
|
|
86198
86233
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -86211,7 +86246,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
86211
86246
|
return __generator(this, function (_b) {
|
|
86212
86247
|
switch (_b.label) {
|
|
86213
86248
|
case 0: return [4 /*yield*/, import(
|
|
86214
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
86249
|
+
/* webpackChunkName: "auto-track" */ './auto-track-C_ogbZXY.js')];
|
|
86215
86250
|
case 1:
|
|
86216
86251
|
autotrack = _b.sent();
|
|
86217
86252
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -86230,7 +86265,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
86230
86265
|
return __generator(this, function (_b) {
|
|
86231
86266
|
switch (_b.label) {
|
|
86232
86267
|
case 0: return [4 /*yield*/, import(
|
|
86233
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
86268
|
+
/* webpackChunkName: "auto-track" */ './auto-track-C_ogbZXY.js')];
|
|
86234
86269
|
case 1:
|
|
86235
86270
|
autotrack = _b.sent();
|
|
86236
86271
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -86380,7 +86415,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
86380
86415
|
return [2 /*return*/, []];
|
|
86381
86416
|
}
|
|
86382
86417
|
return [4 /*yield*/, import(
|
|
86383
|
-
/* webpackChunkName: "queryString" */ './index-
|
|
86418
|
+
/* webpackChunkName: "queryString" */ './index-Df0EgKoB.js')];
|
|
86384
86419
|
case 1:
|
|
86385
86420
|
queryString = (_a.sent()).queryString;
|
|
86386
86421
|
return [2 /*return*/, queryString(this, query)];
|
|
@@ -89084,7 +89119,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
89084
89119
|
case 0:
|
|
89085
89120
|
if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
|
|
89086
89121
|
return [4 /*yield*/, import(
|
|
89087
|
-
/* webpackChunkName: "tsub-middleware" */ './index-
|
|
89122
|
+
/* webpackChunkName: "tsub-middleware" */ './index-CGtW9_P5.js').then(function (mod) {
|
|
89088
89123
|
return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
|
|
89089
89124
|
})];
|
|
89090
89125
|
case 1:
|
|
@@ -89097,7 +89132,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
89097
89132
|
tsubMiddleware = _d;
|
|
89098
89133
|
if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
|
|
89099
89134
|
return [4 /*yield*/, import(
|
|
89100
|
-
/* webpackChunkName: "ajs-destination" */ './index-
|
|
89135
|
+
/* webpackChunkName: "ajs-destination" */ './index-D8VBzuBI.js').then(function (mod) {
|
|
89101
89136
|
return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
|
|
89102
89137
|
})];
|
|
89103
89138
|
case 4:
|
|
@@ -89110,7 +89145,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
89110
89145
|
legacyDestinations = _e;
|
|
89111
89146
|
if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
|
|
89112
89147
|
return [4 /*yield*/, import(
|
|
89113
|
-
/* webpackChunkName: "legacyVideos" */ './index-
|
|
89148
|
+
/* webpackChunkName: "legacyVideos" */ './index-DGzVkXDd.js').then(function (mod) {
|
|
89114
89149
|
return mod.loadLegacyVideoPlugins(analytics);
|
|
89115
89150
|
})];
|
|
89116
89151
|
case 7:
|
|
@@ -89119,7 +89154,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
89119
89154
|
case 8:
|
|
89120
89155
|
if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
|
|
89121
89156
|
return [4 /*yield*/, import(
|
|
89122
|
-
/* webpackChunkName: "schemaFilter" */ './index-
|
|
89157
|
+
/* webpackChunkName: "schemaFilter" */ './index-CR41kAHG.js').then(function (mod) {
|
|
89123
89158
|
var _a;
|
|
89124
89159
|
return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
|
|
89125
89160
|
})];
|
|
@@ -89158,7 +89193,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
89158
89193
|
return enabled;
|
|
89159
89194
|
})) return [3 /*break*/, 17];
|
|
89160
89195
|
return [4 /*yield*/, import(
|
|
89161
|
-
/* webpackChunkName: "remoteMiddleware" */ './index-
|
|
89196
|
+
/* webpackChunkName: "remoteMiddleware" */ './index-DMTXuB9C.js').then(function (_a) {
|
|
89162
89197
|
var remoteMiddlewares = _a.remoteMiddlewares;
|
|
89163
89198
|
return __awaiter$5(_this, void 0, void 0, function () {
|
|
89164
89199
|
var middleware, promises;
|
|
@@ -89320,6 +89355,7 @@ var UserJourney;
|
|
|
89320
89355
|
UserJourney["SALE"] = "PrimarySale";
|
|
89321
89356
|
UserJourney["ADD_TOKENS"] = "AddTokens";
|
|
89322
89357
|
UserJourney["PURCHASE"] = "Purchase";
|
|
89358
|
+
UserJourney["TRANSFER"] = "Transfer";
|
|
89323
89359
|
})(UserJourney || (UserJourney = {}));
|
|
89324
89360
|
const productName = 'checkout';
|
|
89325
89361
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -170590,7 +170626,7 @@ console.log(`
|
|
|
170590
170626
|
|
|
170591
170627
|
`);
|
|
170592
170628
|
|
|
170593
|
-
const widgetTheme = (theme) => (theme.toLowerCase() ===
|
|
170629
|
+
const widgetTheme = (theme) => (theme.toLowerCase() === So$1.LIGHT.toLowerCase()
|
|
170594
170630
|
? base$2
|
|
170595
170631
|
: onDarkBase);
|
|
170596
170632
|
|
|
@@ -170706,11 +170742,11 @@ const tokenValueFormat = (s, maxDecimals = DEFAULT_TOKEN_FORMATTING_DECIMALS) =>
|
|
|
170706
170742
|
formatted = tokenValueFormatDecimals(formatted, 0);
|
|
170707
170743
|
return formatted;
|
|
170708
170744
|
};
|
|
170709
|
-
const isZkEvmChainId = (chainId) => chainId ===
|
|
170710
|
-
|| chainId ===
|
|
170711
|
-
|| chainId ===
|
|
170712
|
-
const isL1EthChainId = (chainId) => chainId ===
|
|
170713
|
-
|| chainId ===
|
|
170745
|
+
const isZkEvmChainId = (chainId) => chainId === Y$3.IMTBL_ZKEVM_DEVNET
|
|
170746
|
+
|| chainId === Y$3.IMTBL_ZKEVM_TESTNET
|
|
170747
|
+
|| chainId === Y$3.IMTBL_ZKEVM_MAINNET;
|
|
170748
|
+
const isL1EthChainId = (chainId) => chainId === Y$3.SEPOLIA
|
|
170749
|
+
|| chainId === Y$3.ETHEREUM;
|
|
170714
170750
|
const isNativeToken = (address) => !address || address.toLocaleLowerCase() === NATIVE;
|
|
170715
170751
|
function getRemoteImage(environment, path) {
|
|
170716
170752
|
return `${CHECKOUT_CDN_BASE_URL[environment ?? K$7.PRODUCTION]}/v1/blob/img${path}`;
|
|
@@ -170734,7 +170770,7 @@ function getTokenImageByAddress(environment, address) {
|
|
|
170734
170770
|
return getRemoteImage(environment, `/tokens/${address.toLowerCase()}.svg`);
|
|
170735
170771
|
}
|
|
170736
170772
|
function getDefaultTokenImage(environment, theme) {
|
|
170737
|
-
return theme ===
|
|
170773
|
+
return theme === So$1.LIGHT
|
|
170738
170774
|
? getRemoteImage(environment, '/tokens/defaultonlight.svg')
|
|
170739
170775
|
: getRemoteImage(environment, '/tokens/defaultondark.svg');
|
|
170740
170776
|
}
|
|
@@ -171024,17 +171060,17 @@ const useProvidersContext = () => {
|
|
|
171024
171060
|
return context;
|
|
171025
171061
|
};
|
|
171026
171062
|
|
|
171027
|
-
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-
|
|
171063
|
+
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-C7qTteC1.js'));
|
|
171028
171064
|
class AddTokens extends Base$3 {
|
|
171029
171065
|
eventTopic = no$1.IMTBL_ADD_TOKENS_WIDGET_EVENT;
|
|
171030
171066
|
getValidatedProperties({ config, }) {
|
|
171031
171067
|
let validatedConfig;
|
|
171032
171068
|
if (config) {
|
|
171033
171069
|
validatedConfig = config;
|
|
171034
|
-
if (config.theme ===
|
|
171035
|
-
validatedConfig.theme =
|
|
171070
|
+
if (config.theme === So$1.LIGHT)
|
|
171071
|
+
validatedConfig.theme = So$1.LIGHT;
|
|
171036
171072
|
else
|
|
171037
|
-
validatedConfig.theme =
|
|
171073
|
+
validatedConfig.theme = So$1.DARK;
|
|
171038
171074
|
}
|
|
171039
171075
|
return {
|
|
171040
171076
|
config: validatedConfig,
|
|
@@ -171068,17 +171104,17 @@ class AddTokens extends Base$3 {
|
|
|
171068
171104
|
}
|
|
171069
171105
|
}
|
|
171070
171106
|
|
|
171071
|
-
const BridgeWidget = React.lazy(() => import('./BridgeWidget-
|
|
171107
|
+
const BridgeWidget = React.lazy(() => import('./BridgeWidget-DQWn8Zzc.js'));
|
|
171072
171108
|
class Bridge extends Base$3 {
|
|
171073
171109
|
eventTopic = no$1.IMTBL_BRIDGE_WIDGET_EVENT;
|
|
171074
171110
|
getValidatedProperties({ config }) {
|
|
171075
171111
|
let validatedConfig;
|
|
171076
171112
|
if (config) {
|
|
171077
171113
|
validatedConfig = config;
|
|
171078
|
-
if (config.theme ===
|
|
171079
|
-
validatedConfig.theme =
|
|
171114
|
+
if (config.theme === So$1.LIGHT)
|
|
171115
|
+
validatedConfig.theme = So$1.LIGHT;
|
|
171080
171116
|
else
|
|
171081
|
-
validatedConfig.theme =
|
|
171117
|
+
validatedConfig.theme = So$1.DARK;
|
|
171082
171118
|
}
|
|
171083
171119
|
return {
|
|
171084
171120
|
config: validatedConfig,
|
|
@@ -171113,31 +171149,31 @@ class Bridge extends Base$3 {
|
|
|
171113
171149
|
|
|
171114
171150
|
function getChainNameById(chainId) {
|
|
171115
171151
|
switch (chainId) {
|
|
171116
|
-
case
|
|
171117
|
-
case
|
|
171118
|
-
case
|
|
171119
|
-
case
|
|
171120
|
-
case
|
|
171152
|
+
case Y$3.ETHEREUM: return ot$1.ETHEREUM;
|
|
171153
|
+
case Y$3.IMTBL_ZKEVM_TESTNET: return ot$1.IMTBL_ZKEVM_TESTNET;
|
|
171154
|
+
case Y$3.IMTBL_ZKEVM_MAINNET: return ot$1.IMTBL_ZKEVM_MAINNET;
|
|
171155
|
+
case Y$3.IMTBL_ZKEVM_DEVNET: return ot$1.IMTBL_ZKEVM_DEVNET;
|
|
171156
|
+
case Y$3.SEPOLIA: return ot$1.SEPOLIA;
|
|
171121
171157
|
default: return '';
|
|
171122
171158
|
}
|
|
171123
171159
|
}
|
|
171124
171160
|
function getChainSlugById(chainId) {
|
|
171125
171161
|
switch (chainId) {
|
|
171126
|
-
case
|
|
171127
|
-
case
|
|
171128
|
-
case
|
|
171129
|
-
case
|
|
171130
|
-
case
|
|
171162
|
+
case Y$3.ETHEREUM: return Ae$3.ETHEREUM;
|
|
171163
|
+
case Y$3.IMTBL_ZKEVM_TESTNET: return Ae$3.IMTBL_ZKEVM_TESTNET;
|
|
171164
|
+
case Y$3.IMTBL_ZKEVM_MAINNET: return Ae$3.IMTBL_ZKEVM_MAINNET;
|
|
171165
|
+
case Y$3.IMTBL_ZKEVM_DEVNET: return Ae$3.IMTBL_ZKEVM_DEVNET;
|
|
171166
|
+
case Y$3.SEPOLIA: return Ae$3.SEPOLIA;
|
|
171131
171167
|
default: return '';
|
|
171132
171168
|
}
|
|
171133
171169
|
}
|
|
171134
171170
|
function getChainIdBySlug(chainSlug) {
|
|
171135
171171
|
switch (chainSlug) {
|
|
171136
|
-
case Ae$3.ETHEREUM: return
|
|
171137
|
-
case Ae$3.IMTBL_ZKEVM_TESTNET: return
|
|
171138
|
-
case Ae$3.IMTBL_ZKEVM_MAINNET: return
|
|
171139
|
-
case Ae$3.IMTBL_ZKEVM_DEVNET: return
|
|
171140
|
-
case Ae$3.SEPOLIA: return
|
|
171172
|
+
case Ae$3.ETHEREUM: return Y$3.ETHEREUM;
|
|
171173
|
+
case Ae$3.IMTBL_ZKEVM_TESTNET: return Y$3.IMTBL_ZKEVM_TESTNET;
|
|
171174
|
+
case Ae$3.IMTBL_ZKEVM_MAINNET: return Y$3.IMTBL_ZKEVM_MAINNET;
|
|
171175
|
+
case Ae$3.IMTBL_ZKEVM_DEVNET: return Y$3.IMTBL_ZKEVM_DEVNET;
|
|
171176
|
+
case Ae$3.SEPOLIA: return Y$3.SEPOLIA;
|
|
171141
171177
|
default: return 0;
|
|
171142
171178
|
}
|
|
171143
171179
|
}
|
|
@@ -171167,25 +171203,25 @@ class Connect extends Base$3 {
|
|
|
171167
171203
|
// validating targetChainId per environment
|
|
171168
171204
|
if (!params.targetChainId
|
|
171169
171205
|
&& this.checkout.config.isProduction) {
|
|
171170
|
-
validatedParams.targetChainId =
|
|
171206
|
+
validatedParams.targetChainId = Y$3.IMTBL_ZKEVM_MAINNET;
|
|
171171
171207
|
}
|
|
171172
171208
|
else if (params.targetChainId
|
|
171173
171209
|
&& this.checkout.config.isProduction
|
|
171174
|
-
&& (params.targetChainId !==
|
|
171210
|
+
&& (params.targetChainId !== Y$3.ETHEREUM && params.targetChainId !== Y$3.IMTBL_ZKEVM_MAINNET)) {
|
|
171175
171211
|
// eslint-disable-next-line max-len, no-console
|
|
171176
|
-
console.warn(`Cannot set targetChainId to ${params.targetChainId} in ${K$7.PRODUCTION} environment, defaulting to ${getChainNameById(
|
|
171177
|
-
validatedParams.targetChainId =
|
|
171212
|
+
console.warn(`Cannot set targetChainId to ${params.targetChainId} in ${K$7.PRODUCTION} environment, defaulting to ${getChainNameById(Y$3.IMTBL_ZKEVM_MAINNET)}, chainId ${Y$3.IMTBL_ZKEVM_MAINNET}`);
|
|
171213
|
+
validatedParams.targetChainId = Y$3.IMTBL_ZKEVM_MAINNET;
|
|
171178
171214
|
}
|
|
171179
171215
|
if (!params.targetChainId
|
|
171180
171216
|
&& this.checkout.config.environment === K$7.SANDBOX) {
|
|
171181
|
-
validatedParams.targetChainId =
|
|
171217
|
+
validatedParams.targetChainId = Y$3.IMTBL_ZKEVM_TESTNET;
|
|
171182
171218
|
}
|
|
171183
171219
|
else if (params.targetChainId
|
|
171184
171220
|
&& this.checkout.config.environment === K$7.SANDBOX
|
|
171185
|
-
&& (params.targetChainId !==
|
|
171221
|
+
&& (params.targetChainId !== Y$3.SEPOLIA && params.targetChainId !== Y$3.IMTBL_ZKEVM_TESTNET)) {
|
|
171186
171222
|
// eslint-disable-next-line max-len, no-console
|
|
171187
|
-
console.warn(`Cannot set targetChainId to ${params.targetChainId} in ${K$7.SANDBOX} environment, defaulting to ${getChainNameById(
|
|
171188
|
-
validatedParams.targetChainId =
|
|
171223
|
+
console.warn(`Cannot set targetChainId to ${params.targetChainId} in ${K$7.SANDBOX} environment, defaulting to ${getChainNameById(Y$3.IMTBL_ZKEVM_TESTNET)}, chainId ${Y$3.IMTBL_ZKEVM_TESTNET}`);
|
|
171224
|
+
validatedParams.targetChainId = Y$3.IMTBL_ZKEVM_TESTNET;
|
|
171189
171225
|
}
|
|
171190
171226
|
return params;
|
|
171191
171227
|
}
|
|
@@ -171213,17 +171249,18 @@ function deduplicateSaleItemsArray(items) {
|
|
|
171213
171249
|
|
|
171214
171250
|
/** Orchestration Events List */
|
|
171215
171251
|
const commerceFlows = [
|
|
171216
|
-
|
|
171217
|
-
|
|
171218
|
-
|
|
171219
|
-
|
|
171220
|
-
|
|
171221
|
-
|
|
171222
|
-
|
|
171223
|
-
|
|
171252
|
+
wo$1.CONNECT,
|
|
171253
|
+
wo$1.WALLET,
|
|
171254
|
+
wo$1.SALE,
|
|
171255
|
+
wo$1.SWAP,
|
|
171256
|
+
wo$1.BRIDGE,
|
|
171257
|
+
wo$1.ONRAMP,
|
|
171258
|
+
wo$1.ADD_TOKENS,
|
|
171259
|
+
wo$1.PURCHASE,
|
|
171260
|
+
wo$1.TRANSFER,
|
|
171224
171261
|
];
|
|
171225
171262
|
|
|
171226
|
-
const CommerceWidget = React.lazy(() => import('./CommerceWidget-
|
|
171263
|
+
const CommerceWidget = React.lazy(() => import('./CommerceWidget-CvpgyQ6c.js'));
|
|
171227
171264
|
class CommerceWidgetRoot extends Base$3 {
|
|
171228
171265
|
eventTopic = no$1.IMTBL_COMMERCE_WIDGET_EVENT;
|
|
171229
171266
|
getValidatedProperties({ config, }) {
|
|
@@ -171231,10 +171268,10 @@ class CommerceWidgetRoot extends Base$3 {
|
|
|
171231
171268
|
if (config) {
|
|
171232
171269
|
validatedConfig = config;
|
|
171233
171270
|
// FIXME: Move default theme initialisation to Base class
|
|
171234
|
-
if (config.theme ===
|
|
171235
|
-
validatedConfig.theme =
|
|
171271
|
+
if (config.theme === So$1.LIGHT)
|
|
171272
|
+
validatedConfig.theme = So$1.LIGHT;
|
|
171236
171273
|
else
|
|
171237
|
-
validatedConfig.theme =
|
|
171274
|
+
validatedConfig.theme = So$1.DARK;
|
|
171238
171275
|
}
|
|
171239
171276
|
// TODO: validate configs for each widget
|
|
171240
171277
|
return {
|
|
@@ -171331,6 +171368,25 @@ class CommerceWidgetRoot extends Base$3 {
|
|
|
171331
171368
|
items: deduplicateSaleItemsArray(params.items),
|
|
171332
171369
|
};
|
|
171333
171370
|
}
|
|
171371
|
+
getValidTransferFlowParams(params) {
|
|
171372
|
+
const validatedParams = { ...params };
|
|
171373
|
+
if (params.amount && !isValidAmount(params.amount)) {
|
|
171374
|
+
// eslint-disable-next-line no-console
|
|
171375
|
+
console.warn('[IMTBL]: invalid "amount" widget input');
|
|
171376
|
+
validatedParams.amount = undefined;
|
|
171377
|
+
}
|
|
171378
|
+
if (params.tokenAddress && !isValidAddress(params.tokenAddress)) {
|
|
171379
|
+
// eslint-disable-next-line no-console
|
|
171380
|
+
console.warn('[IMTBL]: invalid "fromTokenAddress" widget input');
|
|
171381
|
+
validatedParams.tokenAddress = undefined;
|
|
171382
|
+
}
|
|
171383
|
+
if (params.toAddress && !isAddress(params.toAddress)) {
|
|
171384
|
+
// eslint-disable-next-line no-console
|
|
171385
|
+
console.warn('[IMTBL]: invalid "toAddress" widget input');
|
|
171386
|
+
validatedParams.toAddress = undefined;
|
|
171387
|
+
}
|
|
171388
|
+
return validatedParams;
|
|
171389
|
+
}
|
|
171334
171390
|
getValidSwapFlowParams(params) {
|
|
171335
171391
|
const validatedParams = { ...params };
|
|
171336
171392
|
if (!isValidAmount(params.amount)) {
|
|
@@ -171389,22 +171445,24 @@ class CommerceWidgetRoot extends Base$3 {
|
|
|
171389
171445
|
const flowType = params.flow;
|
|
171390
171446
|
const supportedFlows = commerceFlows.join(', ');
|
|
171391
171447
|
switch (flowType) {
|
|
171392
|
-
case
|
|
171448
|
+
case wo$1.CONNECT:
|
|
171393
171449
|
return this.getValidConnectFlowParams(params);
|
|
171394
|
-
case
|
|
171450
|
+
case wo$1.WALLET:
|
|
171395
171451
|
return this.getValidWalletFlowParams(params);
|
|
171396
|
-
case
|
|
171452
|
+
case wo$1.SALE:
|
|
171397
171453
|
return this.getValidSaleFlowParams(params);
|
|
171398
|
-
case
|
|
171454
|
+
case wo$1.SWAP:
|
|
171399
171455
|
return this.getValidSwapFlowParams(params);
|
|
171400
|
-
case
|
|
171456
|
+
case wo$1.BRIDGE:
|
|
171401
171457
|
return this.getValidBridgeFlowParams(params);
|
|
171402
|
-
case
|
|
171458
|
+
case wo$1.ONRAMP:
|
|
171403
171459
|
return this.getValidOnRampFlowParams(params);
|
|
171404
|
-
case
|
|
171460
|
+
case wo$1.ADD_TOKENS:
|
|
171405
171461
|
return this.getValidAddTokensFlowParams(params);
|
|
171406
|
-
case
|
|
171462
|
+
case wo$1.PURCHASE:
|
|
171407
171463
|
return this.getValidPurchaseFlowParams(params);
|
|
171464
|
+
case wo$1.TRANSFER:
|
|
171465
|
+
return this.getValidTransferFlowParams(params);
|
|
171408
171466
|
default:
|
|
171409
171467
|
// eslint-disable-next-line no-console
|
|
171410
171468
|
console.warn(`[IMTBL]: invalid "flow: ${flowType}" widget input, must be one of the following: ${supportedFlows}`);
|
|
@@ -172301,14 +172359,14 @@ const processProviders = async (checkout, injectedProviders, priorityWalletRdns
|
|
|
172301
172359
|
// Attempt to fallback to window.ethereum if no EIP-6963 providers are found
|
|
172302
172360
|
// Assuming this is MetaMask on mobile
|
|
172303
172361
|
if (filteredProviders.length === 0 && window.ethereum) {
|
|
172304
|
-
filteredProviders.unshift(
|
|
172362
|
+
filteredProviders.unshift(mn(window.ethereum));
|
|
172305
172363
|
}
|
|
172306
172364
|
// Add passport from checkout config if not from injected providers
|
|
172307
172365
|
if (checkout?.passport
|
|
172308
172366
|
&& priorityWalletRdns.includes(Gt$2.PASSPORT)
|
|
172309
172367
|
&& !filteredProviders.some((provider) => provider.info.rdns === Gt$2.PASSPORT)) {
|
|
172310
172368
|
const passportProvider = await getPassportProvider(checkout.passport);
|
|
172311
|
-
filteredProviders.unshift(
|
|
172369
|
+
filteredProviders.unshift(un(passportProvider));
|
|
172312
172370
|
}
|
|
172313
172371
|
// Filter & sort providers
|
|
172314
172372
|
return filteredProviders
|
|
@@ -173050,8 +173108,8 @@ function ConnectWidget({ config, sendSuccessEventOverride, sendCloseEventOverrid
|
|
|
173050
173108
|
let targetChain = targetChainId;
|
|
173051
173109
|
if (!targetChain) {
|
|
173052
173110
|
targetChain = checkout.config.isProduction
|
|
173053
|
-
?
|
|
173054
|
-
:
|
|
173111
|
+
? Y$3.IMTBL_ZKEVM_MAINNET
|
|
173112
|
+
: Y$3.IMTBL_ZKEVM_TESTNET;
|
|
173055
173113
|
}
|
|
173056
173114
|
reactExports.useEffect(() => {
|
|
173057
173115
|
if (!browserProvider)
|
|
@@ -173249,7 +173307,7 @@ function ConnectLoader({ children, params, widgetConfig, successEvent, closeEven
|
|
|
173249
173307
|
return true;
|
|
173250
173308
|
};
|
|
173251
173309
|
reactExports.useEffect(() => {
|
|
173252
|
-
if (window === undefined) {
|
|
173310
|
+
if (typeof window === 'undefined') {
|
|
173253
173311
|
// eslint-disable-next-line no-console
|
|
173254
173312
|
console.error('missing window object: please run Checkout client side');
|
|
173255
173313
|
return;
|
|
@@ -173459,17 +173517,17 @@ const orchestrationEvents = {
|
|
|
173459
173517
|
sendRequestAddTokensEvent,
|
|
173460
173518
|
};
|
|
173461
173519
|
|
|
173462
|
-
const OnRampWidget = React.lazy(() => import('./OnRampWidget-
|
|
173520
|
+
const OnRampWidget = React.lazy(() => import('./OnRampWidget-D8xhR-53.js'));
|
|
173463
173521
|
class OnRamp extends Base$3 {
|
|
173464
173522
|
eventTopic = no$1.IMTBL_ONRAMP_WIDGET_EVENT;
|
|
173465
173523
|
getValidatedProperties({ config }) {
|
|
173466
173524
|
let validatedConfig;
|
|
173467
173525
|
if (config) {
|
|
173468
173526
|
validatedConfig = config;
|
|
173469
|
-
if (config.theme ===
|
|
173470
|
-
validatedConfig.theme =
|
|
173527
|
+
if (config.theme === So$1.LIGHT)
|
|
173528
|
+
validatedConfig.theme = So$1.LIGHT;
|
|
173471
173529
|
else
|
|
173472
|
-
validatedConfig.theme =
|
|
173530
|
+
validatedConfig.theme = So$1.DARK;
|
|
173473
173531
|
}
|
|
173474
173532
|
return {
|
|
173475
173533
|
config: validatedConfig,
|
|
@@ -173501,8 +173559,8 @@ class OnRamp extends Base$3 {
|
|
|
173501
173559
|
const { t } = instance;
|
|
173502
173560
|
const connectLoaderParams = {
|
|
173503
173561
|
targetChainId: this.checkout.config.isProduction
|
|
173504
|
-
?
|
|
173505
|
-
:
|
|
173562
|
+
? Y$3.IMTBL_ZKEVM_MAINNET
|
|
173563
|
+
: Y$3.IMTBL_ZKEVM_TESTNET,
|
|
173506
173564
|
walletProviderName: this.parameters.walletProviderName,
|
|
173507
173565
|
browserProvider: this.browserProvider,
|
|
173508
173566
|
checkout: this.checkout,
|
|
@@ -173597,7 +173655,7 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
|
|
|
173597
173655
|
eventTarget.dispatchEvent(event);
|
|
173598
173656
|
};
|
|
173599
173657
|
|
|
173600
|
-
const SaleWidget = React.lazy(() => import('./SaleWidget-
|
|
173658
|
+
const SaleWidget = React.lazy(() => import('./SaleWidget-DaetSTrW.js'));
|
|
173601
173659
|
class Sale extends Base$3 {
|
|
173602
173660
|
eventTopic = no$1.IMTBL_SALE_WIDGET_EVENT;
|
|
173603
173661
|
// TODO: add specific validation logic for the sale items
|
|
@@ -173626,10 +173684,10 @@ class Sale extends Base$3 {
|
|
|
173626
173684
|
let validatedConfig;
|
|
173627
173685
|
if (config) {
|
|
173628
173686
|
validatedConfig = config;
|
|
173629
|
-
if (config.theme ===
|
|
173630
|
-
validatedConfig.theme =
|
|
173687
|
+
if (config.theme === So$1.LIGHT)
|
|
173688
|
+
validatedConfig.theme = So$1.LIGHT;
|
|
173631
173689
|
else
|
|
173632
|
-
validatedConfig.theme =
|
|
173690
|
+
validatedConfig.theme = So$1.DARK;
|
|
173633
173691
|
}
|
|
173634
173692
|
return {
|
|
173635
173693
|
config: validatedConfig,
|
|
@@ -173674,8 +173732,8 @@ class Sale extends Base$3 {
|
|
|
173674
173732
|
const { t } = instance;
|
|
173675
173733
|
const connectLoaderParams = {
|
|
173676
173734
|
targetChainId: this.checkout.config.isProduction
|
|
173677
|
-
?
|
|
173678
|
-
:
|
|
173735
|
+
? Y$3.IMTBL_ZKEVM_MAINNET
|
|
173736
|
+
: Y$3.IMTBL_ZKEVM_TESTNET,
|
|
173679
173737
|
browserProvider: this.browserProvider,
|
|
173680
173738
|
checkout: this.checkout,
|
|
173681
173739
|
allowedChains: [getL2ChainId(this.checkout.config)],
|
|
@@ -173746,17 +173804,17 @@ const sendSwapRejectedEvent = (eventTarget, reason) => {
|
|
|
173746
173804
|
eventTarget.dispatchEvent(rejectedEvent);
|
|
173747
173805
|
};
|
|
173748
173806
|
|
|
173749
|
-
const SwapWidget = React.lazy(() => import('./SwapWidget-
|
|
173807
|
+
const SwapWidget = React.lazy(() => import('./SwapWidget-nd6sN5Il.js').then(function (n) { return n.b; }));
|
|
173750
173808
|
class Swap extends Base$3 {
|
|
173751
173809
|
eventTopic = no$1.IMTBL_SWAP_WIDGET_EVENT;
|
|
173752
173810
|
getValidatedProperties({ config }) {
|
|
173753
173811
|
let validatedConfig;
|
|
173754
173812
|
if (config) {
|
|
173755
173813
|
validatedConfig = config;
|
|
173756
|
-
if (config.theme ===
|
|
173757
|
-
validatedConfig.theme =
|
|
173814
|
+
if (config.theme === So$1.LIGHT)
|
|
173815
|
+
validatedConfig.theme = So$1.LIGHT;
|
|
173758
173816
|
else
|
|
173759
|
-
validatedConfig.theme =
|
|
173817
|
+
validatedConfig.theme = So$1.DARK;
|
|
173760
173818
|
}
|
|
173761
173819
|
return {
|
|
173762
173820
|
config: validatedConfig,
|
|
@@ -173795,14 +173853,14 @@ class Swap extends Base$3 {
|
|
|
173795
173853
|
const { t } = instance;
|
|
173796
173854
|
const connectLoaderParams = {
|
|
173797
173855
|
targetChainId: this.checkout.config.isProduction
|
|
173798
|
-
?
|
|
173799
|
-
:
|
|
173856
|
+
? Y$3.IMTBL_ZKEVM_MAINNET
|
|
173857
|
+
: Y$3.IMTBL_ZKEVM_TESTNET,
|
|
173800
173858
|
walletProviderName: this.parameters.walletProviderName,
|
|
173801
173859
|
browserProvider: this.browserProvider,
|
|
173802
173860
|
checkout: this.checkout,
|
|
173803
173861
|
allowedChains: [getL2ChainId(this.checkout.config)],
|
|
173804
173862
|
};
|
|
173805
|
-
this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "swap-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(ConnectLoader, { params: connectLoaderParams, widgetConfig: this.strongConfig(), closeEvent: () => sendSwapWidgetCloseEvent(window), children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(SwapWidget, { fromTokenAddress: this.parameters.fromTokenAddress, toTokenAddress: this.parameters.toTokenAddress, amount: this.parameters.amount, config: this.strongConfig(), autoProceed: this.parameters.autoProceed, direction: this.parameters.direction ??
|
|
173863
|
+
this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "swap-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(ConnectLoader, { params: connectLoaderParams, widgetConfig: this.strongConfig(), closeEvent: () => sendSwapWidgetCloseEvent(window), children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(SwapWidget, { fromTokenAddress: this.parameters.fromTokenAddress, toTokenAddress: this.parameters.toTokenAddress, amount: this.parameters.amount, config: this.strongConfig(), autoProceed: this.parameters.autoProceed, direction: this.parameters.direction ?? Po$1.FROM, showBackButton: this.parameters.showBackButton, walletProviderName: this.parameters.walletProviderName }) }) }) }) }) }) }));
|
|
173806
173864
|
}
|
|
173807
173865
|
}
|
|
173808
173866
|
|
|
@@ -173848,17 +173906,17 @@ function sendDisconnectWalletEvent(eventTarget) {
|
|
|
173848
173906
|
eventTarget.dispatchEvent(disconnectWalletEvent);
|
|
173849
173907
|
}
|
|
173850
173908
|
|
|
173851
|
-
const WalletWidget = React.lazy(() => import('./WalletWidget-
|
|
173909
|
+
const WalletWidget = React.lazy(() => import('./WalletWidget-sGAMRwkp.js'));
|
|
173852
173910
|
class Wallet extends Base$3 {
|
|
173853
173911
|
eventTopic = no$1.IMTBL_WALLET_WIDGET_EVENT;
|
|
173854
173912
|
getValidatedProperties({ config }) {
|
|
173855
173913
|
let validatedConfig;
|
|
173856
173914
|
if (config) {
|
|
173857
173915
|
validatedConfig = config;
|
|
173858
|
-
if (config.theme ===
|
|
173859
|
-
validatedConfig.theme =
|
|
173916
|
+
if (config.theme === So$1.LIGHT)
|
|
173917
|
+
validatedConfig.theme = So$1.LIGHT;
|
|
173860
173918
|
else
|
|
173861
|
-
validatedConfig.theme =
|
|
173919
|
+
validatedConfig.theme = So$1.DARK;
|
|
173862
173920
|
if (config?.showDisconnectButton === undefined) {
|
|
173863
173921
|
validatedConfig.showDisconnectButton = true;
|
|
173864
173922
|
}
|
|
@@ -173891,8 +173949,8 @@ class Wallet extends Base$3 {
|
|
|
173891
173949
|
const { t } = instance;
|
|
173892
173950
|
const connectLoaderParams = {
|
|
173893
173951
|
targetChainId: this.checkout.config.isProduction
|
|
173894
|
-
?
|
|
173895
|
-
:
|
|
173952
|
+
? Y$3.IMTBL_ZKEVM_MAINNET
|
|
173953
|
+
: Y$3.IMTBL_ZKEVM_TESTNET,
|
|
173896
173954
|
walletProviderName: this.parameters?.walletProviderName,
|
|
173897
173955
|
browserProvider: this.browserProvider,
|
|
173898
173956
|
checkout: this.checkout,
|
|
@@ -174902,7 +174960,7 @@ const withMetricsAsync = async (fn, flowName, anonymousId, errorType) => {
|
|
|
174902
174960
|
}
|
|
174903
174961
|
catch (error) {
|
|
174904
174962
|
if (error instanceof Error) {
|
|
174905
|
-
mn('commerce', flowName, error, { flowId: flow.details.flowId });
|
|
174963
|
+
mn$1('commerce', flowName, error, { flowId: flow.details.flowId });
|
|
174906
174964
|
}
|
|
174907
174965
|
if (errorType && errorType(error)) {
|
|
174908
174966
|
flow.addEvent(`errored_${errorType(error)}`);
|
|
@@ -176542,13 +176600,13 @@ function Purchase$1({ checkout, environmentId, onCloseButtonClick, showBackButto
|
|
|
176542
176600
|
(async () => {
|
|
176543
176601
|
const tokenAddress = quote.currency.address;
|
|
176544
176602
|
const tokenAmount = String(quote.totalCurrencyAmount);
|
|
176545
|
-
const isSufficientBalance = hasSufficientBalance(balances, tokenAddress,
|
|
176603
|
+
const isSufficientBalance = hasSufficientBalance(balances, tokenAddress, Y$3.IMTBL_ZKEVM_MAINNET.toString(), tokenAmount);
|
|
176546
176604
|
if (isSufficientBalance) {
|
|
176547
|
-
const token = findToken(tokens, tokenAddress,
|
|
176548
|
-
const balance = findBalance(balances, tokenAddress,
|
|
176605
|
+
const token = findToken(tokens, tokenAddress, Y$3.IMTBL_ZKEVM_MAINNET.toString());
|
|
176606
|
+
const balance = findBalance(balances, tokenAddress, Y$3.IMTBL_ZKEVM_MAINNET.toString());
|
|
176549
176607
|
if (token && balance) {
|
|
176550
176608
|
const directCryptoRoute = {
|
|
176551
|
-
isInsufficientGas: !hasSufficientGas(balances,
|
|
176609
|
+
isInsufficientGas: !hasSufficientGas(balances, Y$3.IMTBL_ZKEVM_MAINNET.toString(), fromProvider),
|
|
176552
176610
|
amountData: {
|
|
176553
176611
|
fromToken: token,
|
|
176554
176612
|
fromAmount: tokenAmount,
|
|
@@ -176562,7 +176620,7 @@ function Purchase$1({ checkout, environmentId, onCloseButtonClick, showBackButto
|
|
|
176562
176620
|
setSelectedDirectCryptoPayRoute(directCryptoRoute);
|
|
176563
176621
|
}
|
|
176564
176622
|
}
|
|
176565
|
-
const availableRoutes = await fetchRoutes(squid, tokens, balances,
|
|
176623
|
+
const availableRoutes = await fetchRoutes(squid, tokens, balances, Y$3.IMTBL_ZKEVM_MAINNET.toString(), tokenAddress, tokenAmount, 5, 1000, true);
|
|
176566
176624
|
setRoutes(availableRoutes);
|
|
176567
176625
|
setFetchingRoutes(false);
|
|
176568
176626
|
setInsufficientBalance(availableRoutes.length === 0);
|
|
@@ -176676,7 +176734,7 @@ function Purchase$1({ checkout, environmentId, onCloseButtonClick, showBackButto
|
|
|
176676
176734
|
signResponse: signResponse.signResponse,
|
|
176677
176735
|
},
|
|
176678
176736
|
});
|
|
176679
|
-
const updatedAmountData = getFromAmountData(tokens, selectedRouteData.amountData.balance, String(quote.totalCurrencyAmount),
|
|
176737
|
+
const updatedAmountData = getFromAmountData(tokens, selectedRouteData.amountData.balance, String(quote.totalCurrencyAmount), Y$3.IMTBL_ZKEVM_MAINNET.toString(), quote.currency.address, selectedRouteData.amountData.additionalBuffer);
|
|
176680
176738
|
if (!updatedAmountData)
|
|
176681
176739
|
return;
|
|
176682
176740
|
const postHooks = signResponse?.postHooks ? {
|
|
@@ -315077,11 +315135,11 @@ class Purchase extends Base$3 {
|
|
|
315077
315135
|
let validatedConfig;
|
|
315078
315136
|
if (config) {
|
|
315079
315137
|
validatedConfig = config;
|
|
315080
|
-
if (config.theme ===
|
|
315081
|
-
validatedConfig.theme =
|
|
315138
|
+
if (config.theme === So$1.LIGHT) {
|
|
315139
|
+
validatedConfig.theme = So$1.LIGHT;
|
|
315082
315140
|
}
|
|
315083
315141
|
else {
|
|
315084
|
-
validatedConfig.theme =
|
|
315142
|
+
validatedConfig.theme = So$1.DARK;
|
|
315085
315143
|
}
|
|
315086
315144
|
}
|
|
315087
315145
|
return {
|
|
@@ -315141,55 +315199,55 @@ class WidgetsFactory {
|
|
|
315141
315199
|
const { provider } = props ?? {};
|
|
315142
315200
|
const config = props?.config || {};
|
|
315143
315201
|
switch (type) {
|
|
315144
|
-
case
|
|
315202
|
+
case yo$1.CONNECT: {
|
|
315145
315203
|
return new Connect(this.sdk, {
|
|
315146
315204
|
config: { ...this.widgetConfig, ...(config) },
|
|
315147
315205
|
provider,
|
|
315148
315206
|
});
|
|
315149
315207
|
}
|
|
315150
|
-
case
|
|
315208
|
+
case yo$1.BRIDGE: {
|
|
315151
315209
|
return new Bridge(this.sdk, {
|
|
315152
315210
|
config: { ...this.widgetConfig, ...(config) },
|
|
315153
315211
|
provider,
|
|
315154
315212
|
});
|
|
315155
315213
|
}
|
|
315156
|
-
case
|
|
315214
|
+
case yo$1.WALLET: {
|
|
315157
315215
|
return new Wallet(this.sdk, {
|
|
315158
315216
|
config: { ...this.widgetConfig, ...(config) },
|
|
315159
315217
|
provider,
|
|
315160
315218
|
});
|
|
315161
315219
|
}
|
|
315162
|
-
case
|
|
315220
|
+
case yo$1.SWAP: {
|
|
315163
315221
|
return new Swap(this.sdk, {
|
|
315164
315222
|
config: { ...this.widgetConfig, ...(config) },
|
|
315165
315223
|
provider,
|
|
315166
315224
|
});
|
|
315167
315225
|
}
|
|
315168
|
-
case
|
|
315226
|
+
case yo$1.ONRAMP: {
|
|
315169
315227
|
return new OnRamp(this.sdk, {
|
|
315170
315228
|
config: { ...this.widgetConfig, ...(config) },
|
|
315171
315229
|
provider,
|
|
315172
315230
|
});
|
|
315173
315231
|
}
|
|
315174
|
-
case
|
|
315232
|
+
case yo$1.SALE: {
|
|
315175
315233
|
return new Sale(this.sdk, {
|
|
315176
315234
|
config: { ...this.widgetConfig, ...(config) },
|
|
315177
315235
|
provider,
|
|
315178
315236
|
});
|
|
315179
315237
|
}
|
|
315180
|
-
case
|
|
315238
|
+
case yo$1.IMMUTABLE_COMMERCE: {
|
|
315181
315239
|
return new CommerceWidgetRoot(this.sdk, {
|
|
315182
315240
|
config: { ...this.widgetConfig, ...(config) },
|
|
315183
315241
|
provider,
|
|
315184
315242
|
});
|
|
315185
315243
|
}
|
|
315186
|
-
case
|
|
315244
|
+
case yo$1.ADD_TOKENS: {
|
|
315187
315245
|
return new AddTokens(this.sdk, {
|
|
315188
315246
|
config: { ...this.widgetConfig, ...(config) },
|
|
315189
315247
|
provider,
|
|
315190
315248
|
});
|
|
315191
315249
|
}
|
|
315192
|
-
case
|
|
315250
|
+
case yo$1.PURCHASE: {
|
|
315193
315251
|
return new Purchase(this.sdk, {
|
|
315194
315252
|
config: { ...this.widgetConfig, ...(config) },
|
|
315195
315253
|
provider,
|
|
@@ -315201,4 +315259,4 @@ class WidgetsFactory {
|
|
|
315201
315259
|
};
|
|
315202
315260
|
}
|
|
315203
315261
|
|
|
315204
|
-
export {
|
|
315262
|
+
export { CryptoFiatProvider as $, SimpleLayout as A, Box as B, Co$1 as C, Body as D, Eo$1 as E, useAnalytics as F, EventTargetContext as G, Heading as H, Io$1 as I, CryptoFiatContext as J, tokenValueFormat as K, Link as L, getDefaultTokenImage as M, HeaderNavigation as N, sendCloseWidgetEvent as O, orchestrationEvents as P, amountInputValidation as Q, Ro$1 as R, Stack as S, To as T, UserJourney as U, ViewActions as V, ho as W, useTheme as X, Y$3 as Y, CloudImage as Z, getRemoteImage as _, ao$1 as a, HandoverContent as a$, ConnectLoaderContext as a0, isAddress as a1, isError$1 as a2, LoadingView as a3, CryptoFiatActions as a4, useViewState as a5, useEventTargetState as a6, commerceFlows as a7, SharedViews as a8, ErrorView as a9, FormControlCaption as aA, getDefaultExportFromCjs$2 as aB, commonjsGlobal$1 as aC, Drawer as aD, Divider as aE, useProvidersContext as aF, WalletDrawer as aG, UnableToConnectDrawer as aH, Fragment$1 as aI, Gt$2 as aJ, removeSpace as aK, getProviderSlugFromRdns as aL, D$6 as aM, isPassportProvider as aN, connectEIP6963Provider as aO, identifyUser as aP, ConnectEIP6963ProviderError as aQ, ProvidersContextActions as aR, MenuItem as aS, SQUID_NATIVE_TOKEN as aT, commonjsRequire$1 as aU, OnboardingPagination as aV, ViewContext as aW, useHandover as aX, HandoverTarget as aY, APPROVE_TXN_ANIMATION as aZ, RiveStateMachineInput as a_, ConnectWidget as aa, ProvidersContextProvider as ab, PurchaseWidget as ac, ConnectLoader as ad, ViewContextProvider as ae, hFlex as af, _defineProperty$1 as ag, _objectWithoutProperties as ah, useForwardLocalDomRef as ai, _slicedToArray as aj, useResizeObserver as ak, usePrevious as al, useGetMotionProfile as am, useBrowserEffect as an, merge$2 as ao, getHeadingTextStyles as ap, getMotionProfileSx as aq, useConvertSxToEmotionStyles as ar, DUMMY_WIDTH_PUSHER_TEXT as as, useGetSubcomponentChild as at, flattenChildren as au, vFlex as av, centerFlexChildren as aw, SmartClone as ax, FormControlLabel as ay, FormControlValidation as az, getL2ChainId as b, sendSaleSuccessEvent as b$, keyframes$2 as b0, isNativeToken as b1, getTokenImageByAddress as b2, FramedImage as b3, FramedIcon as b4, ButtCon as b5, TextInput as b6, VerticalMenu as b7, TOKEN_PRIORITY_ORDER as b8, EllipsizedText as b9, getFormattedNumber as bA, FIXED_HANDOVER_DURATION as bB, EXECUTE_TXN_ANIMATION as bC, Trans as bD, useExecute as bE, getRouteChains as bF, t$5 as bG, convertToNetworkChangeableProvider as bH, verifyAndSwitchChain as bI, PriceDisplay as bJ, viewReducer as bK, initialViewState as bL, useSquid as bM, useTokens as bN, v4 as bO, K$7 as bP, isValidAddress as bQ, fetchChains as bR, fetchBalances as bS, ServiceUnavailableErrorView as bT, hexToText as bU, compareStr as bV, po$1 as bW, TransakIframe as bX, toPascalCase as bY, sendSaleWidgetCloseEvent as bZ, toStringifyTransactions as b_, Tooltip as ba, Sticker as bb, getDurationFormatted as bc, getTotalRouteFees as bd, getRouteAndTokenBalances as be, Icon as bf, Badge as bg, getFormattedAmounts as bh, getRemoteVideo as bi, FramedVideo as bj, listVariants as bk, motion$1 as bl, listItemVariants as bm, Banner as bn, _t$1 as bo, Ot$2 as bp, useRoutes as bq, useInjectedProviders as br, hn as bs, RouteError as bt, dist$2 as bu, SquidFooter as bv, TOOLKIT_SQUID_URL as bw, merge$1 as bx, SvgIcon as by, WalletWarningHero as bz, co$1 as c, IMX_TOKEN_SYMBOL as c$, sendSaleFailedEvent as c0, sendSaleTransactionSuccessEvent as c1, sendSalePaymentMethodEvent as c2, sendSalePaymentTokenEvent as c3, LoadingOverlay as c4, HandoverDuration as c5, FooterLogo as c6, StatusType as c7, prettyFormatNumber as c8, ShimmerCircle as c9, S$7 as cA, q$6 as cB, ShimmerBox as cC, PASSPORT_URL as cD, getChainImage as cE, getChainIdBySlug as cF, useWalletConnect as cG, Logo as cH, RawImage as cI, isWalletConnectProvider as cJ, AXELAR_SCAN_URL as cK, getNativeSymbolByChainSlug as cL, retry as cM, JsonRpcProvider as cN, DEFAULT_TRANSACTIONS_RETRY_POLICY as cO, getChainSlugById as cP, getChainNameById as cQ, getWalletProviderNameByProvider as cR, isMetaMaskProvider as cS, ge$4 as cT, ButtonNavigationStyles as cU, NATIVE as cV, ETH_TOKEN_SYMBOL as cW, it$1 as cX, DEFAULT_QUOTE_REFRESH_INTERVAL as cY, addChainChangedListener as cZ, removeChainChangedListener as c_, Ce$3 as ca, abbreviateWalletAddress as cb, formatUnits as cc, Caption as cd, tokenSymbolNameOverrides as ce, Ee$3 as cf, Re$4 as cg, M$7 as ch, st$1 as ci, isGasFree as cj, eventTargetReducer as ck, initialEventTargetState as cl, EventTargetActions as cm, ConnectWidgetViews as cn, ConnectLoaderActions as co, widgetTheme as cp, axios$1 as cq, toQuantity as cr, toBeHex as cs, getAddress as ct, keccak256$1 as cu, AbiCoder as cv, concat$5 as cw, zeroPadValue as cx, ZeroAddress as cy, ot$1 as cz, getL1ChainId as d, te$3 as d$, DEFAULT_TOKEN_DECIMALS as d0, CHECKOUT_CDN_BASE_URL as d1, heroBackGroundStyles as d2, heroImageStyles as d3, SimpleTextBody as d4, FooterButton as d5, getEthTokenImage as d6, WITHDRAWAL_CLAIM_GAS_LIMIT as d7, Rt$1 as d8, r$8 as d9, getTertiaryButtonStyles as dA, isChildSubcomponent as dB, FormControlWrapper as dC, Select as dD, DuoCon as dE, heroImageBottomAlign as dF, isDualVariantIcon as dG, DEFAULT_TOKEN_SYMBOLS as dH, getStartingSize as dI, DEFAULT_BUTTON_SIZE as dJ, getResponsiveSx as dK, BUTTON_SIZES as dL, setDefaultSxBackgroundColor as dM, ZERO_BALANCE_STRING as dN, sendNetworkSwitchEvent as dO, me$4 as dP, sortNetworksCompareFn as dQ, sortTokensByAmount as dR, sendWalletWidgetCloseEvent as dS, sendDisconnectWalletEvent as dT, FAQS_LINK as dU, useBrowserLayoutEffect as dV, se$3 as dW, T$5 as dX, oe$4 as dY, R$2 as dZ, a$3 as d_, StatusView as da, sendOnRampWidgetCloseEvent as db, jt$2 as dc, url as dd, TRANSAK_ORIGIN as de, sendOnRampSuccessEvent as df, sendOnRampFailedEvent as dg, quickswapFooterStyles as dh, quickswapFooterLogoStyles as di, quickswapFooterDisclaimerTextStyles as dj, So$1 as dk, getImxTokenImage as dl, parseEther as dm, ESTIMATE_DEBOUNCE as dn, DEFAULT_TOKEN_VALIDATION_DECIMALS as dp, sendSwapWidgetCloseEvent as dq, DEFAULT_BALANCE_RETRY_POLICY as dr, Po$1 as ds, sendSwapSuccessEvent as dt, sendSwapFailedEvent as du, sendSwapRejectedEvent as dv, motion$3 as dw, BaseClickable as dx, AnimatePresence$1 as dy, ClassNames as dz, Contract as e, p$9 as e0, ne$4 as e1, y$8 as e2, getAugmentedNamespace as e3, __awaiter$5 as e4, __generator as e5, loadScript as e6, getNextIntegrationsURL as e7, unloadScript as e8, __spreadArray$1 as e9, isOffline as ea, __assign as eb, ContextCancelation as ec, applyDestinationMiddleware as ed, dist$4 as ee, isServer as ef, mergedOptions as eg, isPlainObject$1 as eh, pWhile as ei, PriorityQueue as ej, PersistedPriorityQueue as ek, attempt as el, isOnline as em, Context as en, pTimeout as eo, gracefulDecodeURIComponent as ep, WidgetsFactory as eq, fo$1 as f, go$1 as g, ae$3 as h, io$1 as i, formatZeroAmount as j, calculateCryptoToFiat as k, lo$1 as l, mo$1 as m, no$1 as n, useTranslation as o, parseUnits$1 as p, dist$3 as q, reactExports as r, so$1 as s, getRemoteRive as t, uo as u, et$1 as v, wo$1 as w, jsx$1 as x, jsxs as y, Button as z };
|