@dcl/auth-site 5.0.5-33823183538.commit-b08f9c7 → 5.1.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.
Files changed (118) hide show
  1. package/assets/{ConstantsUtil-Dt48LBa7.js → ConstantsUtil-B2godJ2c.js} +1 -1
  2. package/assets/{ContentfulRichText-Kuc2J3dP.js → ContentfulRichText-Cs0E8o0t.js} +1 -1
  3. package/assets/{ExchangeController-DBh-bhYY.js → ExchangeController-B7SX4Pzg.js} +1 -1
  4. package/assets/{HelpersUtil-BZcqqouM.js → HelpersUtil-CiFB4WR6.js} +1 -1
  5. package/assets/LoginPage-DKqFqUVv.js +1 -0
  6. package/assets/{NetworkUtil-CtxnRAP0.js → NetworkUtil-CiIGtM8g.js} +1 -1
  7. package/assets/{SwapController-DrsRFNUw.js → SwapController-B3rgDdPi.js} +1 -1
  8. package/assets/{W3MFrameProviderSingleton-BULA1Yc8.js → W3MFrameProviderSingleton-DLC3PpMJ.js} +3 -3
  9. package/assets/{biconomy-mNvp0n79.js → biconomy-Da7Pd-cb.js} +1 -1
  10. package/assets/{browser-B7lljV-y.js → browser-BW09Ahtj.js} +1 -1
  11. package/assets/browser-ponyfill-B2t_VINd.js +1 -0
  12. package/assets/{ccip-DxeTFa0s.js → ccip-BI91ZhkH.js} +1 -1
  13. package/assets/{ccip-BU9UTzIh.js → ccip-Ds3ruycJ.js} +1 -1
  14. package/assets/{chains-DR9l2T2Z.js → chains-DQBLS_ei.js} +1 -1
  15. package/assets/{common-_bIE_GYT.js → common-BunFXhg5.js} +1 -1
  16. package/assets/{controller-CzMOG7vU.js → controller-H9x-1nEd.js} +2 -2
  17. package/assets/{data-capture-B94yktQy.js → data-capture-CcjMk20X.js} +1 -1
  18. package/assets/{email-CX7hw9kj.js → email-C6vV9Cue.js} +1 -1
  19. package/assets/{embedded-wallet-DborRSiM.js → embedded-wallet-d7WnoHCd.js} +1 -1
  20. package/assets/{engine-CUj1UnJX.js → engine-D9900kwA.js} +1 -1
  21. package/assets/{estimate-l1-fee-BOTil87S.js → estimate-l1-fee-CLA6NvhY.js} +1 -1
  22. package/assets/{ethereum--Nevzxuj.js → ethereum-DgSxt5e1.js} +1 -1
  23. package/assets/{extractIPFS-CqBeKu7_.js → extractIPFS-DjJNPAb6.js} +1 -1
  24. package/assets/{features-BmKxSG-D.js → features-DDroOaDo.js} +1 -1
  25. package/assets/{fetchTokenMetadata-CYfHcQkZ.js → fetchTokenMetadata-CY5fK1p9.js} +1 -1
  26. package/assets/{fortmatic-DBQAr762.js → fortmatic-Fc4XHbxN.js} +1 -1
  27. package/assets/{get-ecosystem-wallet-info-uykaqqCI.js → get-ecosystem-wallet-info-Dk9pELxZ.js} +1 -1
  28. package/assets/{getBalance-D_6eLpf8.js → getBalance-ivLKtO7b.js} +1 -1
  29. package/assets/{getInstalledModules-BP3tsg4R.js → getInstalledModules-CMVBiet6.js} +1 -1
  30. package/assets/{getNFT-Cvzrugtv.js → getNFT-BNvoKq2U.js} +2 -2
  31. package/assets/{getNFT-CKF0oL5m.js → getNFT-nPnZmYwT.js} +1 -1
  32. package/assets/{if-defined-CgJKeOSm.js → if-defined-BGggoims.js} +1 -1
  33. package/assets/{in-app-DqAZkd2p.js → in-app-DDKtrSUF.js} +2 -2
  34. package/assets/{in-app-wallet-calls-B7hjLrmN.js → in-app-wallet-calls-BR4IqhHd.js} +1 -1
  35. package/assets/{index-CBu_SSLD.js → index-0hq-21f2.js} +1 -1
  36. package/assets/{index-DIfpRlLG.js → index-1vK-KLj-.js} +2 -2
  37. package/assets/{index-BgX6qPPz.js → index-4BKTujRQ.js} +1 -1
  38. package/assets/{index-DMtjFv7E.js → index-B0Iewf1U.js} +1 -1
  39. package/assets/{index-IDG-Cerj.js → index-B2jrcajy.js} +1 -1
  40. package/assets/{index-CC54pCkO.js → index-B6FW5avQ.js} +1 -1
  41. package/assets/{index-BMhYseqb.js → index-B6dEnhfp.js} +1 -1
  42. package/assets/{index-D9Dsb9T7.js → index-B8S4U4S1.js} +3 -3
  43. package/assets/{index-B83ehqiU.js → index-B8Zcr_iG.js} +1 -1
  44. package/assets/{index-iYjJ6zNI.js → index-BAEVMW3g.js} +2 -2
  45. package/assets/index-BBEwMrZU.css +1 -0
  46. package/assets/{index-DnOgiyXk.js → index-BH6YbRCZ.js} +1 -1
  47. package/assets/{index-CSZIjRCd.js → index-BIai7LK8.js} +1 -1
  48. package/assets/{index-UpxAX95Y.js → index-BTF-nSCZ.js} +1 -1
  49. package/assets/{index-DCuB652s.js → index-BXRKA7DU.js} +1 -1
  50. package/assets/{index-DfxrcHAp.js → index-BYdBmgyr.js} +1 -1
  51. package/assets/{index-D1S9aayh.js → index-BYi-cT6-.js} +1 -1
  52. package/assets/{index-wtdlteYr.js → index-BZkmwrM7.js} +1 -1
  53. package/assets/{index-DDgpbond.js → index-BZn-uwDD.js} +1 -1
  54. package/assets/{index-BOA2Acwo.js → index-BeKilfmc.js} +3 -3
  55. package/assets/{index-BujiY2sb.js → index-Bp_sgoZA.js} +1 -1
  56. package/assets/{index-CvD3JQ7D.js → index-BsfJpmCD.js} +1 -1
  57. package/assets/{index-BawwGbap.js → index-Btwc8rfv.js} +1 -1
  58. package/assets/{index-bVY1fhDD.js → index-C-53rZCB.js} +1 -1
  59. package/assets/{index-CL2wOxBI.js → index-CFg-Y_dr.js} +1 -1
  60. package/assets/{index-E-MJ-hfV.js → index-CGkv2gMJ.js} +1 -1
  61. package/assets/{index-5SgjSqyz.js → index-CIf9EYhb.js} +1 -1
  62. package/assets/{index-Cmt2q8GY.js → index-CQ7jrIAl.js} +1 -1
  63. package/assets/{index-DJ2KFqR6.js → index-CSCZ5Zrc.js} +1 -1
  64. package/assets/{index-BBd1Nc3O.js → index-CWEDc-Ii.js} +1 -1
  65. package/assets/{index-CRk9Hc2Q.js → index-C_PYAHuA.js} +1 -1
  66. package/assets/{index-DOClSP2-.js → index-CbV0HiU0.js} +3 -3
  67. package/assets/{index-Bx8-Pet3.js → index-Chl8Tz4p.js} +1 -1
  68. package/assets/{index-BCdD3SUg.js → index-Cj7dzEyC.js} +9 -9
  69. package/assets/{index-NUGI1C22.js → index-CqLqfgxg.js} +1 -1
  70. package/assets/{index-CYx0fRHD.js → index-D9enbP8h.js} +1 -1
  71. package/assets/{index-D5lY2uq0.js → index-DCf_Bv3z.js} +1 -1
  72. package/assets/{index-CmAVW2e_.js → index-DD9LA6R8.js} +1 -1
  73. package/assets/{index-CmwHenfA.js → index-DdBH1qjj.js} +1 -1
  74. package/assets/{index-CzVoJpRY.js → index-DfY2gMrE.js} +1 -1
  75. package/assets/{index-DBOVwsuq.js → index-Dk0H3V98.js} +1 -1
  76. package/assets/{index-BOoMbux0.js → index-DpCEzLFK.js} +1 -1
  77. package/assets/{index-bbWlSVQr.js → index-Ds4ZcBMl.js} +1 -1
  78. package/assets/{index-Di-KdnUw.js → index-Io2Z3vAj.js} +1 -1
  79. package/assets/{index-BbZ1QbJ0.js → index-YxhTX0r_.js} +1 -1
  80. package/assets/{index-jKSIGZun.js → index-_d3u3uyx.js} +1 -1
  81. package/assets/{index-Dduwu7Zt.js → index-cehprRMC.js} +1 -1
  82. package/assets/{index-CQuhWFSI.js → index-gX_wBUdd.js} +1 -1
  83. package/assets/{index-DGbRCIux.js → index-qeNQritO.js} +1 -1
  84. package/assets/{index.es-BFHUE6MK.js → index.es-BqujzhBe.js} +1 -1
  85. package/assets/{index.es-CNNIPy7b.js → index.es-C_kefHvm.js} +1 -1
  86. package/assets/{linkAccount-CPGHOcOm.js → linkAccount-BNh4hIAU.js} +1 -1
  87. package/assets/{native-CO1Foc9o.js → native-0F2h1qs8.js} +1 -1
  88. package/assets/{networks-Dllgr3Y_.js → networks-BRiS7SKn.js} +3 -3
  89. package/assets/{onramp-9F3ZBN10.js → onramp-7ebdmRpl.js} +1 -1
  90. package/assets/{openzeppelin-CS5rfs6N.js → openzeppelin-DwDELTN8.js} +1 -1
  91. package/assets/{ownerOf-34ms6Ijo.js → ownerOf-BUQrWNhH.js} +1 -1
  92. package/assets/{parseNft-B7uZht2J.js → parseNft-adTiYJUC.js} +2 -2
  93. package/assets/{pay-with-exchange-DNjGiwPh.js → pay-with-exchange-bxqM5Lz5.js} +1 -1
  94. package/assets/{qr-overlay-CKdybk9Q.js → qr-overlay-ZyhS2Ht4.js} +3 -3
  95. package/assets/{receive-BrSpfIX2.js → receive-Ap525SeO.js} +1 -1
  96. package/assets/{ref-DwCPZLfc.js → ref-B8kvuC6E.js} +1 -1
  97. package/assets/{resolveImplementation-DJgUbQgq.js → resolveImplementation-PMnJ5UIA.js} +1 -1
  98. package/assets/{secp256k1-DD7RK6EM.js → secp256k1-D8sd0Kab.js} +1 -1
  99. package/assets/{send-eip712-transaction-DftpRb-4.js → send-eip712-transaction-BGzU8wvt.js} +1 -1
  100. package/assets/{send-gasless-transaction-RiBYLRq_.js → send-gasless-transaction-D_N4WHV1.js} +2 -2
  101. package/assets/{send-CgQPE0da.js → send-z6pck8xn.js} +1 -1
  102. package/assets/{session-proposal-D3KfHbRg.js → session-proposal-M2Bq3Lr7.js} +1 -1
  103. package/assets/{session-request-BBPCT4hi.js → session-request-DWMYB-Gf.js} +2 -2
  104. package/assets/{socials-CKimrsIx.js → socials-DnNvBVxt.js} +1 -1
  105. package/assets/{swaps-NNwAW2uw.js → swaps-B4F9nc_U.js} +1 -1
  106. package/assets/{thirdweb-C-oikHfy.js → thirdweb-DDX0V8S6.js} +5 -5
  107. package/assets/{totalSupply-iQ58pAdS.js → totalSupply-5m5qx3oh.js} +1 -1
  108. package/assets/{transactions-DEF2Im4t.js → transactions-C65TAUaG.js} +1 -1
  109. package/assets/{ui-BP9j8-c3.js → ui-B1iXjF4e.js} +5 -5
  110. package/assets/{vendor-DLqL6ANx.js → vendor-CL28Sq39.js} +1 -1
  111. package/assets/{w3m-modal-C4PtPH_G.js → w3m-modal-97GMtg7y.js} +1 -1
  112. package/assets/{wallets-CPB1os0n.js → wallets-CFX0N66_.js} +4 -4
  113. package/assets/{web-connector-BHlk4V6R.js → web-connector-DOyEocYj.js} +3 -3
  114. package/index.html +5 -5
  115. package/package.json +2 -2
  116. package/assets/LoginPage-B4JHDr97.js +0 -1
  117. package/assets/browser-ponyfill-CcE8f-zP.js +0 -1
  118. package/assets/index-l-eIJ3OB.css +0 -1
@@ -1 +1 @@
1
- import{g as se}from"./ui-BP9j8-c3.js";import{K as Wr,$ as qr,B as Kr,m as Vr,q as Xr,J as Ye}from"./index-Dduwu7Zt.js";import{g as dt,R as vt,T as ht,k as yt,E as pt,a as mt,V as bt,s as gt,I as _t,b as wt,c as It,N as Et,f as St,d as Ot,v as jt,_ as Nt,e as At,h as Bt,O as kt,y as xt,A as Dt,i as Rt,W as Ct,p as Lt,U as Mt,L as Tt,u as zt,x as Ft}from"./index-Dduwu7Zt.js";import"./vendor-DLqL6ANx.js";import"./thirdweb-C-oikHfy.js";var Yr=Object.create,Qe=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyNames,Zr=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty,pe=(_=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(_,{get:(O,m)=>(typeof require<"u"?require:O)[m]}):_)(function(_){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+_+'" is not supported')}),Ze=(_,O)=>()=>(O||_((O={exports:{}}).exports,O),O.exports),Gr=(_,O,m,x)=>{if(O&&typeof O=="object"||typeof O=="function")for(let q of Qr(O))!Hr.call(_,q)&&q!==m&&Qe(_,q,{get:()=>O[q],enumerable:!(x=Jr(O,q))||x.enumerable});return _},He=(_,O,m)=>(m=_!=null?Yr(Zr(_)):{},Gr(!_||!_.__esModule?Qe(m,"default",{value:_,enumerable:!0}):m,_)),me=(_,O,m)=>new Promise((x,q)=>{var C=D=>{try{j(m.next(D))}catch(L){q(L)}},P=D=>{try{j(m.throw(D))}catch(L){q(L)}},j=D=>D.done?x(D.value):Promise.resolve(D.value).then(C,P);j((m=m.apply(_,O)).next())}),$r=Ze((_,O)=>{(function(m){if(typeof _=="object"&&typeof O<"u")O.exports=m();else if(typeof define=="function"&&define.amd)define([],m);else{var x;typeof window<"u"?x=window:typeof se<"u"?x=se:typeof self<"u"?x=self:x=this,x.localforage=m()}})(function(){return function m(x,q,C){function P(L,Y){if(!q[L]){if(!x[L]){var y=typeof pe=="function"&&pe;if(!Y&&y)return y(L,!0);if(j)return j(L,!0);var w=new Error("Cannot find module '"+L+"'");throw w.code="MODULE_NOT_FOUND",w}var z=q[L]={exports:{}};x[L][0].call(z.exports,function(F){var Z=x[L][1][F];return P(Z||F)},z,z.exports,m,x,q,C)}return q[L].exports}for(var j=typeof pe=="function"&&pe,D=0;D<C.length;D++)P(C[D]);return P}({1:[function(m,x,q){(function(C){var P=C.MutationObserver||C.WebKitMutationObserver,j;if(P){var D=0,L=new P(F),Y=C.document.createTextNode("");L.observe(Y,{characterData:!0}),j=function(){Y.data=D=++D%2}}else if(!C.setImmediate&&typeof C.MessageChannel<"u"){var y=new C.MessageChannel;y.port1.onmessage=F,j=function(){y.port2.postMessage(0)}}else"document"in C&&"onreadystatechange"in C.document.createElement("script")?j=function(){var A=C.document.createElement("script");A.onreadystatechange=function(){F(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},C.document.documentElement.appendChild(A)}:j=function(){setTimeout(F,0)};var w,z=[];function F(){w=!0;for(var A,G,U=z.length;U;){for(G=z,z=[],A=-1;++A<U;)G[A]();U=z.length}w=!1}x.exports=Z;function Z(A){z.push(A)===1&&!w&&j()}}).call(this,typeof se<"u"?se:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(m,x,q){var C=m(1);function P(){}var j={},D=["REJECTED"],L=["FULFILLED"],Y=["PENDING"];x.exports=y;function y(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=Y,this.queue=[],this.outcome=void 0,v!==P&&Z(this,v)}y.prototype.catch=function(v){return this.then(null,v)},y.prototype.then=function(v,N){if(typeof v!="function"&&this.state===L||typeof N!="function"&&this.state===D)return this;var E=new this.constructor(P);if(this.state!==Y){var B=this.state===L?v:N;z(E,B,this.outcome)}else this.queue.push(new w(E,v,N));return E};function w(v,N,E){this.promise=v,typeof N=="function"&&(this.onFulfilled=N,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}w.prototype.callFulfilled=function(v){j.resolve(this.promise,v)},w.prototype.otherCallFulfilled=function(v){z(this.promise,this.onFulfilled,v)},w.prototype.callRejected=function(v){j.reject(this.promise,v)},w.prototype.otherCallRejected=function(v){z(this.promise,this.onRejected,v)};function z(v,N,E){C(function(){var B;try{B=N(E)}catch(K){return j.reject(v,K)}B===v?j.reject(v,new TypeError("Cannot resolve promise with itself")):j.resolve(v,B)})}j.resolve=function(v,N){var E=A(F,N);if(E.status==="error")return j.reject(v,E.value);var B=E.value;if(B)Z(v,B);else{v.state=L,v.outcome=N;for(var K=-1,X=v.queue.length;++K<X;)v.queue[K].callFulfilled(N)}return v},j.reject=function(v,N){v.state=D,v.outcome=N;for(var E=-1,B=v.queue.length;++E<B;)v.queue[E].callRejected(N);return v};function F(v){var N=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof N=="function")return function(){N.apply(v,arguments)}}function Z(v,N){var E=!1;function B(Q){E||(E=!0,j.reject(v,Q))}function K(Q){E||(E=!0,j.resolve(v,Q))}function X(){N(K,B)}var J=A(X);J.status==="error"&&B(J.value)}function A(v,N){var E={};try{E.value=v(N),E.status="success"}catch(B){E.status="error",E.value=B}return E}y.resolve=G;function G(v){return v instanceof this?v:j.resolve(new this(P),v)}y.reject=U;function U(v){var N=new this(P);return j.reject(N,v)}y.all=oe;function oe(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=v.length,B=!1;if(!E)return this.resolve([]);for(var K=new Array(E),X=0,J=-1,Q=new this(P);++J<E;)$(v[J],J);return Q;function $(ie,ue){N.resolve(ie).then(le,function(re){B||(B=!0,j.reject(Q,re))});function le(re){K[ue]=re,++X===E&&!B&&(B=!0,j.resolve(Q,K))}}}y.race=ee;function ee(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=v.length,B=!1;if(!E)return this.resolve([]);for(var K=-1,X=new this(P);++K<E;)J(v[K]);return X;function J(Q){N.resolve(Q).then(function($){B||(B=!0,j.resolve(X,$))},function($){B||(B=!0,j.reject(X,$))})}}},{1:1}],3:[function(m,x,q){(function(C){typeof C.Promise!="function"&&(C.Promise=m(2))}).call(this,typeof se<"u"?se:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(m,x,q){var C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function P(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function j(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var D=j();function L(){try{if(!D||!D.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),r=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||r)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function Y(e,r){e=e||[],r=r||{};try{return new Blob(e,r)}catch(i){if(i.name!=="TypeError")throw i;for(var t=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,o=new t,n=0;n<e.length;n+=1)o.append(e[n]);return o.getBlob(r.type)}}typeof Promise>"u"&&m(3);var y=Promise;function w(e,r){r&&e.then(function(t){r(null,t)},function(t){r(t)})}function z(e,r,t){typeof r=="function"&&e.then(r),typeof t=="function"&&e.catch(t)}function F(e){return typeof e!="string"&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function Z(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",G=void 0,U={},oe=Object.prototype.toString,ee="readonly",v="readwrite";function N(e){for(var r=e.length,t=new ArrayBuffer(r),o=new Uint8Array(t),n=0;n<r;n++)o[n]=e.charCodeAt(n);return t}function E(e){return new y(function(r){var t=e.transaction(A,v),o=Y([""]);t.objectStore(A).put(o,"key"),t.onabort=function(n){n.preventDefault(),n.stopPropagation(),r(!1)},t.oncomplete=function(){var n=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);r(i||!n||parseInt(n[1],10)>=43)}}).catch(function(){return!1})}function B(e){return typeof G=="boolean"?y.resolve(G):E(e).then(function(r){return G=r,G})}function K(e){var r=U[e.name],t={};t.promise=new y(function(o,n){t.resolve=o,t.reject=n}),r.deferredOperations.push(t),r.dbReady?r.dbReady=r.dbReady.then(function(){return t.promise}):r.dbReady=t.promise}function X(e){var r=U[e.name],t=r.deferredOperations.pop();if(t)return t.resolve(),t.promise}function J(e,r){var t=U[e.name],o=t.deferredOperations.pop();if(o)return o.reject(r),o.promise}function Q(e,r){return new y(function(t,o){if(U[e.name]=U[e.name]||g(),e.db)if(r)K(e),e.db.close();else return t(e.db);var n=[e.name];r&&n.push(e.version);var i=D.open.apply(D,n);r&&(i.onupgradeneeded=function(u){var c=i.result;try{c.createObjectStore(e.storeName),u.oldVersion<=1&&c.createObjectStore(A)}catch(d){if(d.name==="ConstraintError")console.warn('The database "'+e.name+'" has been upgraded from version '+u.oldVersion+" to version "+u.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw d}}),i.onerror=function(u){u.preventDefault(),o(i.error)},i.onsuccess=function(){var u=i.result;u.onversionchange=function(c){c.target.close()},t(u),X(e)}})}function $(e){return Q(e,!1)}function ie(e){return Q(e,!0)}function ue(e,r){if(!e.db)return!0;var t=!e.db.objectStoreNames.contains(e.storeName),o=e.version<e.db.version,n=e.version>e.db.version;if(o&&(e.version!==r&&console.warn('The database "'+e.name+`" can't be downgraded from version `+e.db.version+" to version "+e.version+"."),e.version=e.db.version),n||t){if(t){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function le(e){return new y(function(r,t){var o=new FileReader;o.onerror=t,o.onloadend=function(n){var i=btoa(n.target.result||"");r({__local_forage_encoded_blob:!0,data:i,type:e.type})},o.readAsBinaryString(e)})}function re(e){var r=N(atob(e.data));return Y([r],{type:e.type})}function a(e){return e&&e.__local_forage_encoded_blob}function f(e){var r=this,t=r._initReady().then(function(){var o=U[r._dbInfo.name];if(o&&o.dbReady)return o.dbReady});return z(t,e,e),t}function h(e){K(e);for(var r=U[e.name],t=r.forages,o=0;o<t.length;o++){var n=t[o];n._dbInfo.db&&(n._dbInfo.db.close(),n._dbInfo.db=null)}return e.db=null,$(e).then(function(i){return e.db=i,ue(e)?ie(e):i}).then(function(i){e.db=r.db=i;for(var u=0;u<t.length;u++)t[u]._dbInfo.db=i}).catch(function(i){throw J(e,i),i})}function p(e,r,t,o){o===void 0&&(o=1);try{var n=e.db.transaction(e.storeName,r);t(null,n)}catch(i){if(o>0&&(!e.db||i.name==="InvalidStateError"||i.name==="NotFoundError"))return y.resolve().then(function(){if(!e.db||i.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),ie(e)}).then(function(){return h(e).then(function(){p(e,r,t,o-1)})}).catch(t);t(i)}}function g(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function I(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=e[o];var n=U[t.name];n||(n=g(),U[t.name]=n),n.forages.push(r),r._initReady||(r._initReady=r.ready,r.ready=f);var i=[];function u(){return y.resolve()}for(var c=0;c<n.forages.length;c++){var d=n.forages[c];d!==r&&i.push(d._initReady().catch(u))}var l=n.forages.slice(0);return y.all(i).then(function(){return t.db=n.db,$(t)}).then(function(s){return t.db=s,ue(t,r._defaultConfig.version)?ie(t):s}).then(function(s){t.db=n.db=s,r._dbInfo=t;for(var b=0;b<l.length;b++){var S=l[b];S!==r&&(S._dbInfo.db=t.db,S._dbInfo.version=t.version)}})}function M(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.get(e);l.onsuccess=function(){var s=l.result;s===void 0&&(s=null),a(s)&&(s=re(s)),n(s)},l.onerror=function(){i(l.error)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function V(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.openCursor(),s=1;l.onsuccess=function(){var b=l.result;if(b){var S=b.value;a(S)&&(S=re(S));var R=e(S,b.key,s++);R!==void 0?n(R):b.continue()}else n()},l.onerror=function(){i(l.error)}}catch(b){i(b)}})}).catch(i)});return w(o,r),o}function ce(e,r,t){var o=this;e=F(e);var n=new y(function(i,u){var c;o.ready().then(function(){return c=o._dbInfo,oe.call(r)==="[object Blob]"?B(c.db).then(function(d){return d?r:le(r)}):r}).then(function(d){p(o._dbInfo,v,function(l,s){if(l)return u(l);try{var b=s.objectStore(o._dbInfo.storeName);d===null&&(d=void 0);var S=b.put(d,e);s.oncomplete=function(){d===void 0&&(d=null),i(d)},s.onabort=s.onerror=function(){var R=S.error?S.error:S.transaction.error;u(R)}}catch(R){u(R)}})}).catch(u)});return w(n,t),n}function ae(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,v,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.delete(e);c.oncomplete=function(){n()},c.onerror=function(){i(l.error)},c.onabort=function(){var s=l.error?l.error:l.transaction.error;i(s)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function de(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,v,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.clear();u.oncomplete=function(){o()},u.onabort=u.onerror=function(){var l=d.error?d.error:d.transaction.error;n(l)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function Ge(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.count();d.onsuccess=function(){o(d.result)},d.onerror=function(){n(d.error)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function $e(e,r){var t=this,o=new y(function(n,i){if(e<0){n(null);return}t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=!1,s=d.openKeyCursor();s.onsuccess=function(){var b=s.result;if(!b){n(null);return}e===0||l?n(b.key):(l=!0,b.advance(e))},s.onerror=function(){i(s.error)}}catch(b){i(b)}})}).catch(i)});return w(o,r),o}function er(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.openKeyCursor(),l=[];d.onsuccess=function(){var s=d.result;if(!s){o(l);return}l.push(s.key),s.continue()},d.onerror=function(){n(d.error)}}catch(s){n(s)}})}).catch(n)});return w(t,e),t}function rr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;if(!e.name)n=y.reject("Invalid arguments");else{var i=e.name===t.name&&o._dbInfo.db,u=i?y.resolve(o._dbInfo.db):$(e).then(function(c){var d=U[e.name],l=d.forages;d.db=c;for(var s=0;s<l.length;s++)l[s]._dbInfo.db=c;return c});e.storeName?n=u.then(function(c){if(c.objectStoreNames.contains(e.storeName)){var d=c.version+1;K(e);var l=U[e.name],s=l.forages;c.close();for(var b=0;b<s.length;b++){var S=s[b];S._dbInfo.db=null,S._dbInfo.version=d}var R=new y(function(k,W){var T=D.open(e.name,d);T.onerror=function(H){var Oe=T.result;Oe.close(),W(H)},T.onupgradeneeded=function(){var H=T.result;H.deleteObjectStore(e.storeName)},T.onsuccess=function(){var H=T.result;H.close(),k(H)}});return R.then(function(k){l.db=k;for(var W=0;W<s.length;W++){var T=s[W];T._dbInfo.db=k,X(T._dbInfo)}}).catch(function(k){throw(J(e,k)||y.resolve()).catch(function(){}),k})}}):n=u.then(function(c){K(e);var d=U[e.name],l=d.forages;c.close();for(var s=0;s<l.length;s++){var b=l[s];b._dbInfo.db=null}var S=new y(function(R,k){var W=D.deleteDatabase(e.name);W.onerror=function(){var T=W.result;T&&T.close(),k(W.error)},W.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},W.onsuccess=function(){var T=W.result;T&&T.close(),R(T)}});return S.then(function(R){d.db=R;for(var k=0;k<l.length;k++){var W=l[k];X(W._dbInfo)}}).catch(function(R){throw(J(e,R)||y.resolve()).catch(function(){}),R})})}return w(n,r),n}var tr={_driver:"asyncStorage",_initStorage:I,_support:L(),iterate:V,getItem:M,setItem:ce,removeItem:ae,clear:de,length:Ge,key:$e,keys:er,dropInstance:rr};function nr(){return typeof openDatabase=="function"}var te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",or="~~local_forage_type~",Ae=/^~~local_forage_type~([^~]+)~/,he="__lfsc__:",be=he.length,ge="arbf",_e="blob",Be="si08",ke="ui08",xe="uic8",De="si16",Re="si32",Ce="ur16",Le="ui32",Me="fl32",Te="fl64",ze=be+ge.length,Fe=Object.prototype.toString;function Pe(e){var r=e.length*.75,t=e.length,o,n=0,i,u,c,d;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);var l=new ArrayBuffer(r),s=new Uint8Array(l);for(o=0;o<t;o+=4)i=te.indexOf(e[o]),u=te.indexOf(e[o+1]),c=te.indexOf(e[o+2]),d=te.indexOf(e[o+3]),s[n++]=i<<2|u>>4,s[n++]=(u&15)<<4|c>>2,s[n++]=(c&3)<<6|d&63;return l}function we(e){var r=new Uint8Array(e),t="",o;for(o=0;o<r.length;o+=3)t+=te[r[o]>>2],t+=te[(r[o]&3)<<4|r[o+1]>>4],t+=te[(r[o+1]&15)<<2|r[o+2]>>6],t+=te[r[o+2]&63];return r.length%3===2?t=t.substring(0,t.length-1)+"=":r.length%3===1&&(t=t.substring(0,t.length-2)+"=="),t}function ir(e,r){var t="";if(e&&(t=Fe.call(e)),e&&(t==="[object ArrayBuffer]"||e.buffer&&Fe.call(e.buffer)==="[object ArrayBuffer]")){var o,n=he;e instanceof ArrayBuffer?(o=e,n+=ge):(o=e.buffer,t==="[object Int8Array]"?n+=Be:t==="[object Uint8Array]"?n+=ke:t==="[object Uint8ClampedArray]"?n+=xe:t==="[object Int16Array]"?n+=De:t==="[object Uint16Array]"?n+=Ce:t==="[object Int32Array]"?n+=Re:t==="[object Uint32Array]"?n+=Le:t==="[object Float32Array]"?n+=Me:t==="[object Float64Array]"?n+=Te:r(new Error("Failed to get type for BinaryArray"))),r(n+we(o))}else if(t==="[object Blob]"){var i=new FileReader;i.onload=function(){var u=or+e.type+"~"+we(this.result);r(he+_e+u)},i.readAsArrayBuffer(e)}else try{r(JSON.stringify(e))}catch(u){console.error("Couldn't convert value into a JSON string: ",e),r(null,u)}}function ar(e){if(e.substring(0,be)!==he)return JSON.parse(e);var r=e.substring(ze),t=e.substring(be,ze),o;if(t===_e&&Ae.test(r)){var n=r.match(Ae);o=n[1],r=r.substring(n[0].length)}var i=Pe(r);switch(t){case ge:return i;case _e:return Y([i],{type:o});case Be:return new Int8Array(i);case ke:return new Uint8Array(i);case xe:return new Uint8ClampedArray(i);case De:return new Int16Array(i);case Ce:return new Uint16Array(i);case Re:return new Int32Array(i);case Le:return new Uint32Array(i);case Me:return new Float32Array(i);case Te:return new Float64Array(i);default:throw new Error("Unkown type: "+t)}}var Ie={serialize:ir,deserialize:ar,stringToBuffer:Pe,bufferToString:we};function Ue(e,r,t,o){e.executeSql("CREATE TABLE IF NOT EXISTS "+r.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,o)}function ur(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=typeof e[o]!="string"?e[o].toString():e[o];var n=new y(function(i,u){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(c){return u(c)}t.db.transaction(function(c){Ue(c,t,function(){r._dbInfo=t,i()},function(d,l){u(l)})},u)});return t.serializer=Ie,n}function ne(e,r,t,o,n,i){e.executeSql(t,o,n,function(u,c){c.code===c.SYNTAX_ERR?u.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[r.storeName],function(d,l){l.rows.length?i(d,c):Ue(d,r,function(){d.executeSql(t,o,n,i)},i)},i):i(u,c)},i)}function cr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName+" WHERE key = ? LIMIT 1",[e],function(d,l){var s=l.rows.length?l.rows.item(0).value:null;s&&(s=u.serializer.deserialize(s)),n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function fr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName,[],function(d,l){for(var s=l.rows,b=s.length,S=0;S<b;S++){var R=s.item(S),k=R.value;if(k&&(k=u.serializer.deserialize(k)),k=e(k,R.key,S+1),k!==void 0){n(k);return}}n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function We(e,r,t,o){var n=this;e=F(e);var i=new y(function(u,c){n.ready().then(function(){r===void 0&&(r=null);var d=r,l=n._dbInfo;l.serializer.serialize(r,function(s,b){b?c(b):l.db.transaction(function(S){ne(S,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,s],function(){u(d)},function(R,k){c(k)})},function(S){if(S.code===S.QUOTA_ERR){if(o>0){u(We.apply(n,[e,d,t,o-1]));return}c(S)}})})}).catch(c)});return w(i,t),i}function sr(e,r,t){return We.apply(this,[e,r,t,1])}function lr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"DELETE FROM "+u.storeName+" WHERE key = ?",[e],function(){n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function dr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"DELETE FROM "+i.storeName,[],function(){o()},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function vr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT COUNT(key) as c FROM "+i.storeName,[],function(c,d){var l=d.rows.item(0).c;o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function hr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT key FROM "+u.storeName+" WHERE id = ? LIMIT 1",[e+1],function(d,l){var s=l.rows.length?l.rows.item(0).key:null;n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function yr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT key FROM "+i.storeName,[],function(c,d){for(var l=[],s=0;s<d.rows.length;s++)l.push(d.rows.item(s).key);o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function pr(e){return new y(function(r,t){e.transaction(function(o){o.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,i){for(var u=[],c=0;c<i.rows.length;c++)u.push(i.rows.item(c).name);r({db:e,storeNames:u})},function(n,i){t(i)})},function(o){t(o)})})}function mr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;return e.name?n=new y(function(i){var u;e.name===t.name?u=o._dbInfo.db:u=openDatabase(e.name,"","",0),e.storeName?i({db:u,storeNames:[e.storeName]}):i(pr(u))}).then(function(i){return new y(function(u,c){i.db.transaction(function(d){function l(R){return new y(function(k,W){d.executeSql("DROP TABLE IF EXISTS "+R,[],function(){k()},function(T,H){W(H)})})}for(var s=[],b=0,S=i.storeNames.length;b<S;b++)s.push(l(i.storeNames[b]));y.all(s).then(function(){u()}).catch(function(R){c(R)})},function(d){c(d)})})}):n=y.reject("Invalid arguments"),w(n,r),n}var br={_driver:"webSQLStorage",_initStorage:ur,_support:nr(),iterate:fr,getItem:cr,setItem:sr,removeItem:lr,clear:dr,length:vr,key:hr,keys:yr,dropInstance:mr};function gr(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function qe(e,r){var t=e.name+"/";return e.storeName!==r.storeName&&(t+=e.storeName+"/"),t}function _r(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function wr(){return!_r()||localStorage.length>0}function Ir(e){var r=this,t={};if(e)for(var o in e)t[o]=e[o];return t.keyPrefix=qe(e,r._defaultConfig),wr()?(r._dbInfo=t,t.serializer=Ie,y.resolve()):y.reject()}function Er(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var i=localStorage.key(n);i.indexOf(o)===0&&localStorage.removeItem(i)}});return w(t,e),t}function Sr(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo,i=localStorage.getItem(n.keyPrefix+e);return i&&(i=n.serializer.deserialize(i)),i});return w(o,r),o}function Or(e,r){var t=this,o=t.ready().then(function(){for(var n=t._dbInfo,i=n.keyPrefix,u=i.length,c=localStorage.length,d=1,l=0;l<c;l++){var s=localStorage.key(l);if(s.indexOf(i)===0){var b=localStorage.getItem(s);if(b&&(b=n.serializer.deserialize(b)),b=e(b,s.substring(u),d++),b!==void 0)return b}}});return w(o,r),o}function jr(e,r){var t=this,o=t.ready().then(function(){var n=t._dbInfo,i;try{i=localStorage.key(e)}catch{i=null}return i&&(i=i.substring(n.keyPrefix.length)),i});return w(o,r),o}function Nr(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo,n=localStorage.length,i=[],u=0;u<n;u++){var c=localStorage.key(u);c.indexOf(o.keyPrefix)===0&&i.push(c.substring(o.keyPrefix.length))}return i});return w(t,e),t}function Ar(e){var r=this,t=r.keys().then(function(o){return o.length});return w(t,e),t}function Br(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo;localStorage.removeItem(n.keyPrefix+e)});return w(o,r),o}function kr(e,r,t){var o=this;e=F(e);var n=o.ready().then(function(){r===void 0&&(r=null);var i=r;return new y(function(u,c){var d=o._dbInfo;d.serializer.serialize(r,function(l,s){if(s)c(s);else try{localStorage.setItem(d.keyPrefix+e,l),u(i)}catch(b){(b.name==="QuotaExceededError"||b.name==="NS_ERROR_DOM_QUOTA_REACHED")&&c(b),c(b)}})})});return w(n,t),n}function xr(e,r){if(r=Z.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var t=this.config();e.name=e.name||t.name,e.storeName=e.storeName||t.storeName}var o=this,n;return e.name?n=new y(function(i){e.storeName?i(qe(e,o._defaultConfig)):i(e.name+"/")}).then(function(i){for(var u=localStorage.length-1;u>=0;u--){var c=localStorage.key(u);c.indexOf(i)===0&&localStorage.removeItem(c)}}):n=y.reject("Invalid arguments"),w(n,r),n}var Dr={_driver:"localStorageWrapper",_initStorage:Ir,_support:gr(),iterate:Or,getItem:Sr,setItem:kr,removeItem:Br,clear:Er,length:Ar,key:jr,keys:Nr,dropInstance:xr},Rr=function(e,r){return e===r||typeof e=="number"&&typeof r=="number"&&isNaN(e)&&isNaN(r)},Cr=function(e,r){for(var t=e.length,o=0;o<t;){if(Rr(e[o],r))return!0;o++}return!1},Ke=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},ve={},Ve={},fe={INDEXEDDB:tr,WEBSQL:br,LOCALSTORAGE:Dr},Lr=[fe.INDEXEDDB._driver,fe.WEBSQL._driver,fe.LOCALSTORAGE._driver],ye=["dropInstance"],Ee=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ye),Mr={description:"",driver:Lr.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Tr(e,r){e[r]=function(){var t=arguments;return e.ready().then(function(){return e[r].apply(e,t)})}}function Se(){for(var e=1;e<arguments.length;e++){var r=arguments[e];if(r)for(var t in r)r.hasOwnProperty(t)&&(Ke(r[t])?arguments[0][t]=r[t].slice():arguments[0][t]=r[t])}return arguments[0]}var zr=function(){function e(r){P(this,e);for(var t in fe)if(fe.hasOwnProperty(t)){var o=fe[t],n=o._driver;this[t]=n,ve[n]||this.defineDriver(o)}this._defaultConfig=Se({},Mr),this._config=Se({},this._defaultConfig,r),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(r){if((typeof r>"u"?"undefined":C(r))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in r){if(t==="storeName"&&(r[t]=r[t].replace(/\W/g,"_")),t==="version"&&typeof r[t]!="number")return new Error("Database version must be a number.");this._config[t]=r[t]}return"driver"in r&&r.driver?this.setDriver(this._config.driver):!0}else return typeof r=="string"?this._config[r]:this._config},e.prototype.defineDriver=function(r,t,o){var n=new y(function(i,u){try{var c=r._driver,d=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!r._driver){u(d);return}for(var l=Ee.concat("_initStorage"),s=0,b=l.length;s<b;s++){var S=l[s],R=!Cr(ye,S);if((R||r[S])&&typeof r[S]!="function"){u(d);return}}var k=function(){for(var T=function(Pr){return function(){var Ur=new Error("Method "+Pr+" is not implemented by the current driver"),Xe=y.reject(Ur);return w(Xe,arguments[arguments.length-1]),Xe}},H=0,Oe=ye.length;H<Oe;H++){var je=ye[H];r[je]||(r[je]=T(je))}};k();var W=function(T){ve[c]&&console.info("Redefining LocalForage driver: "+c),ve[c]=r,Ve[c]=T,i()};"_support"in r?r._support&&typeof r._support=="function"?r._support().then(W,u):W(!!r._support):W(!0)}catch(T){u(T)}});return z(n,t,o),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(r,t,o){var n=ve[r]?y.resolve(ve[r]):y.reject(new Error("Driver not found."));return z(n,t,o),n},e.prototype.getSerializer=function(r){var t=y.resolve(Ie);return z(t,r),t},e.prototype.ready=function(r){var t=this,o=t._driverSet.then(function(){return t._ready===null&&(t._ready=t._initDriver()),t._ready});return z(o,r,r),o},e.prototype.setDriver=function(r,t,o){var n=this;Ke(r)||(r=[r]);var i=this._getSupportedDrivers(r);function u(){n._config.driver=n.driver()}function c(s){return n._extend(s),u(),n._ready=n._initStorage(n._config),n._ready}function d(s){return function(){var b=0;function S(){for(;b<s.length;){var R=s[b];return b++,n._dbInfo=null,n._ready=null,n.getDriver(R).then(c).catch(S)}u();var k=new Error("No available storage method found.");return n._driverSet=y.reject(k),n._driverSet}return S()}}var l=this._driverSet!==null?this._driverSet.catch(function(){return y.resolve()}):y.resolve();return this._driverSet=l.then(function(){var s=i[0];return n._dbInfo=null,n._ready=null,n.getDriver(s).then(function(b){n._driver=b._driver,u(),n._wrapLibraryMethodsWithReady(),n._initDriver=d(i)})}).catch(function(){u();var s=new Error("No available storage method found.");return n._driverSet=y.reject(s),n._driverSet}),z(this._driverSet,t,o),this._driverSet},e.prototype.supports=function(r){return!!Ve[r]},e.prototype._extend=function(r){Se(this,r)},e.prototype._getSupportedDrivers=function(r){for(var t=[],o=0,n=r.length;o<n;o++){var i=r[o];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var r=0,t=Ee.length;r<t;r++)Tr(this,Ee[r])},e.prototype.createInstance=function(r){return new e(r)},e}(),Fr=new zr;x.exports=Fr},{3:3}]},{},[4])(4)})}),et=Ze((_,O)=>{(function(m,x){typeof _=="object"&&typeof O<"u"?x(_):typeof define=="function"&&define.amd?define("localforage-driver-memory",["exports"],x):x(m.LocalforageDriverMemory={})})(typeof self<"u"?self:_,function(m){var x="localforage-driver-memory";function q(a){var f=typeof Symbol=="function"&&a[Symbol.iterator],h=0;return f?f.call(a):{next:function(){return a&&h>=a.length&&(a=void 0),{value:a&&a[h++],done:!a}}}}function C(a,f){a=a||[],f=f||{};try{return new Blob(a,f)}catch(I){if(I.name!=="TypeError")throw I;for(var h=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,p=new h,g=0;g<a.length;g+=1)p.append(a[g]);return p.getBlob(f.type)}}var P=/^~~local_forage_type~([^~]+)~/,j=9,D=j+4,L=Object.prototype.toString;function Y(a){var f=a.length*.75,h=a.length;a[a.length-1]==="="&&(f--,a[a.length-2]==="="&&f--);for(var p=new ArrayBuffer(f),g=new Uint8Array(p),I=0,M=0;I<h;I+=4){var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I]),ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+1]),ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+2]),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+3]);g[M++]=V<<2|ce>>4,g[M++]=(ce&15)<<4|ae>>2,g[M++]=(ae&3)<<6|de&63}return p}function y(a){for(var f=new Uint8Array(a),h="",p=0;p<f.length;p+=3)h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p]>>2],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p]&3)<<4|f[p+1]>>4],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p+1]&15)<<2|f[p+2]>>6],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p+2]&63];return f.length%3===2?h=h.substring(0,h.length-1)+"=":f.length%3===1&&(h=h.substring(0,h.length-2)+"=="),h}function w(a,f){var h="";if(a&&(h=L.call(a)),a&&(h==="[object ArrayBuffer]"||a.buffer&&L.call(a.buffer)==="[object ArrayBuffer]")){var p=void 0,g="__lfsc__:";a instanceof ArrayBuffer?(p=a,g+="arbf"):(p=a.buffer,h==="[object Int8Array]"?g+="si08":h==="[object Uint8Array]"?g+="ui08":h==="[object Uint8ClampedArray]"?g+="uic8":h==="[object Int16Array]"?g+="si16":h==="[object Uint16Array]"?g+="ur16":h==="[object Int32Array]"?g+="si32":h==="[object Uint32Array]"?g+="ui32":h==="[object Float32Array]"?g+="fl32":h==="[object Float64Array]"?g+="fl64":f(new Error("Failed to get type for BinaryArray"))),f(g+y(p))}else if(h==="[object Blob]"){var I=new FileReader;I.onload=function(){var M="~~local_forage_type~"+a.type+"~"+y(this.result);f("__lfsc__:blob"+M)},I.readAsArrayBuffer(a)}else try{f(JSON.stringify(a))}catch(M){console.error("Couldn't convert value into a JSON string: ",a),f(null,M)}}function z(a){if(a.substring(0,j)!=="__lfsc__:")return JSON.parse(a);var f=a.substring(D),h=a.substring(j,D),p;if(h==="blob"&&P.test(f)){var g=f.match(P);p=g[1],f=f.substring(g[0].length)}var I=Y(f);switch(h){case"arbf":return I;case"blob":return C([I],{type:p});case"si08":return new Int8Array(I);case"ui08":return new Uint8Array(I);case"uic8":return new Uint8ClampedArray(I);case"si16":return new Int16Array(I);case"ur16":return new Uint16Array(I);case"si32":return new Int32Array(I);case"ui32":return new Uint32Array(I);case"fl32":return new Float32Array(I);case"fl64":return new Float64Array(I);default:throw new Error("Unkown type: "+h)}}function F(a){var f,h;if(a===null||typeof a!="object"||"isActiveClone"in a)return a;var p=a instanceof Date?new Date(a):a.constructor();try{for(var g=q(Object.keys(a)),I=g.next();!I.done;I=g.next()){var M=I.value;Object.prototype.hasOwnProperty.call(a,M)&&(a.isActiveClone=null,p[M]=F(a[M]),delete a.isActiveClone)}}catch(V){f={error:V}}finally{try{I&&!I.done&&(h=g.return)&&h.call(g)}finally{if(f)throw f.error}}return p}function Z(a,f){return(a.name||f.name)+"/"+(a.storeName||f.storeName)+"/"}function A(a,f){f&&a.then(function(h){f(null,h)},function(h){f(h)})}function G(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}function U(a,f){var h=this;if(f=G.apply(this,arguments),a=typeof a!="function"&&a||{},!a.name){var p=this.config();a.name=a.name||p.name,a.storeName=a.storeName||p.storeName}var g;return a.name?g=new Promise(function(I){a.storeName?I(Z(a,h._defaultConfig)):I(a.name+"/")}):g=Promise.reject("Invalid arguments"),{promise:g,callback:f}}function oe(a){return typeof a!="string"&&(console.warn(a+" used as a key, but it is not a string."),a=String(a)),a}var ee={bufferToString:y,deserialize:z,serialize:w,stringToBuffer:Y},v={},N=function(){function a(f){this.kp=f,this.data={}}return a.resolve=function(f){return v[f]||(v[f]=new a(f)),v[f]},a.prototype.clear=function(){this.data={}},a.prototype.drop=function(){this.clear(),delete v[this.kp]},a.prototype.get=function(f){return this.data[f]},a.prototype.key=function(f){return this.keys()[f]},a.prototype.keys=function(){return Object.keys(this.data)},a.prototype.rm=function(f){delete this.data[f]},a.prototype.set=function(f,h){this.data[f]=h},a}();function E(a){var f=a?F(a):{},h=Z(f,this._defaultConfig),p=N.resolve(h);return this._dbInfo=f,this._dbInfo.serializer=ee,this._dbInfo.keyPrefix=h,this._dbInfo.mStore=p,Promise.resolve()}function B(a){var f=this,h=this.ready().then(function(){f._dbInfo.mStore.clear()});return A(h,a),h}function K(a,f){var h=U.apply(this,arguments),p=h.promise,g=h.callback,I=p.then(function(M){N.resolve(M).drop()});return A(I,g),p}function X(a,f){var h=this;a=oe(a);var p=this.ready().then(function(){var g=h._dbInfo.mStore.get(a);return g==null?null:h._dbInfo.serializer.deserialize(g)});return A(p,f),p}function J(a,f){var h=this,p=this.ready().then(function(){for(var g=h._dbInfo.mStore,I=g.keys(),M=0;M<I.length;M++){var V=g.get(I[M]);if(V&&(V=h._dbInfo.serializer.deserialize(V)),V=a(V,I[M],M+1),V!==void 0)return V}});return A(p,f),p}function Q(a,f){var h=this,p=this.ready().then(function(){var g;try{g=h._dbInfo.mStore.key(a),g===void 0&&(g=null)}catch{g=null}return g});return A(p,f),p}function $(a){var f=this,h=this.ready().then(function(){return f._dbInfo.mStore.keys()});return A(h,a),h}function ie(a){var f=this.keys().then(function(h){return h.length});return A(f,a),f}function ue(a,f){var h=this;a=oe(a);var p=this.ready().then(function(){h._dbInfo.mStore.rm(a)});return A(p,f),p}function le(a,f,h){var p=this;a=oe(a);var g=this.ready().then(function(){f===void 0&&(f=null);var I=f;return new Promise(function(M,V){p._dbInfo.serializer.serialize(f,function(ce,ae){if(ae)V(ae);else try{p._dbInfo.mStore.set(a,ce),M(I)}catch(de){V(de)}})})});return A(g,h),g}var re=!0;m._support=re,m._driver=x,m._initStorage=E,m.clear=B,m.dropInstance=K,m.getItem=X,m.iterate=J,m.key=Q,m.keys=$,m.length=ie,m.removeItem=ue,m.setItem=le,Object.defineProperty(m,"__esModule",{value:!0})})}),Ne=He($r()),Je=He(et()),rt={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"};function tt(_){for(let[O,m]of Object.entries(rt))_.style[O]=m}function nt(_){return!![].slice.call(document.querySelectorAll(".magic-iframe")).find(m=>m.src.includes(_))}var ot=class extends Kr{constructor(){super(...arguments),this.activeElement=null}init(){this.test="hello",this.iframe=new Promise(_=>{let O=()=>{if(nt(encodeURIComponent(this.parameters)))Xr().log();else{let m=document.createElement("iframe");m.classList.add("magic-iframe"),m.dataset.magicIframeLabel=Ye(this.endpoint).host,m.title="Secure Modal",m.src=Ye(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href,tt(m),document.body.appendChild(m),_(m)}};["loaded","interactive","complete"].includes(document.readyState)?O():window.addEventListener("load",O,!1)}),window.addEventListener("message",_=>{var O;if(_.origin===this.endpoint&&_.data&&_.data.msgType&&this.messageHandlers.size){_.data.response=(O=_.data.response)!=null?O:{};for(let m of this.messageHandlers.values())m(_)}})}showOverlay(){return me(this,null,function*(){let _=yield this.iframe;_.style.display="block",this.activeElement=document.activeElement,_.focus()})}hideOverlay(){return me(this,null,function*(){var _;let O=yield this.iframe;O.style.display="none",(_=this.activeElement)!=null&&_.focus&&this.activeElement.focus(),this.activeElement=null})}_post(_){return me(this,null,function*(){let O=yield this.iframe;if(O&&O.contentWindow)O.contentWindow.postMessage(_,this.endpoint);else throw Vr()})}},ft=Wr(qr,{platform:"web",sdkName:"magic-sdk",version:"27.0.0",defaultEndpoint:"https://auth.magic.link/",ViewController:ot,configureStorage:()=>me(void 0,null,function*(){let _=Ne.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield _.defineDriver(Je),yield _.setDriver([Ne.default.INDEXEDDB,Ne.default.LOCALSTORAGE,Je._driver]),_})});export{dt as DeepLinkPage,vt as DeviceVerificationEventEmit,ht as DeviceVerificationEventOnReceived,yt as EthChainType,pt as Events,mt as Extension,bt as ExtensionError,gt as ExtensionWarning,_t as LoginWithEmailOTPEventEmit,wt as LoginWithEmailOTPEventOnReceived,It as LoginWithMagicLinkEventEmit,Et as LoginWithMagicLinkEventOnReceived,ft as Magic,St as MagicIncomingWindowMessage,Ot as MagicOutgoingWindowMessage,jt as MagicPayloadMethod,Nt as RPCError,At as RPCErrorCode,Bt as RecencyCheckEventEmit,kt as RecencyCheckEventOnReceived,xt as RecoveryMethodType,Dt as SDKError,Rt as SDKErrorCode,Ct as SDKWarning,Lt as SDKWarningCode,Mt as UpdateEmailEventEmit,Tt as UpdateEmailEventOnReceived,zt as Wallets,Ft as isPromiEvent};
1
+ import{g as se}from"./ui-B1iXjF4e.js";import{K as Wr,$ as qr,B as Kr,m as Vr,q as Xr,J as Ye}from"./index-cehprRMC.js";import{g as dt,R as vt,T as ht,k as yt,E as pt,a as mt,V as bt,s as gt,I as _t,b as wt,c as It,N as Et,f as St,d as Ot,v as jt,_ as Nt,e as At,h as Bt,O as kt,y as xt,A as Dt,i as Rt,W as Ct,p as Lt,U as Mt,L as Tt,u as zt,x as Ft}from"./index-cehprRMC.js";import"./vendor-CL28Sq39.js";import"./thirdweb-DDX0V8S6.js";var Yr=Object.create,Qe=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyNames,Zr=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty,pe=(_=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(_,{get:(O,m)=>(typeof require<"u"?require:O)[m]}):_)(function(_){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+_+'" is not supported')}),Ze=(_,O)=>()=>(O||_((O={exports:{}}).exports,O),O.exports),Gr=(_,O,m,x)=>{if(O&&typeof O=="object"||typeof O=="function")for(let q of Qr(O))!Hr.call(_,q)&&q!==m&&Qe(_,q,{get:()=>O[q],enumerable:!(x=Jr(O,q))||x.enumerable});return _},He=(_,O,m)=>(m=_!=null?Yr(Zr(_)):{},Gr(!_||!_.__esModule?Qe(m,"default",{value:_,enumerable:!0}):m,_)),me=(_,O,m)=>new Promise((x,q)=>{var C=D=>{try{j(m.next(D))}catch(L){q(L)}},P=D=>{try{j(m.throw(D))}catch(L){q(L)}},j=D=>D.done?x(D.value):Promise.resolve(D.value).then(C,P);j((m=m.apply(_,O)).next())}),$r=Ze((_,O)=>{(function(m){if(typeof _=="object"&&typeof O<"u")O.exports=m();else if(typeof define=="function"&&define.amd)define([],m);else{var x;typeof window<"u"?x=window:typeof se<"u"?x=se:typeof self<"u"?x=self:x=this,x.localforage=m()}})(function(){return function m(x,q,C){function P(L,Y){if(!q[L]){if(!x[L]){var y=typeof pe=="function"&&pe;if(!Y&&y)return y(L,!0);if(j)return j(L,!0);var w=new Error("Cannot find module '"+L+"'");throw w.code="MODULE_NOT_FOUND",w}var z=q[L]={exports:{}};x[L][0].call(z.exports,function(F){var Z=x[L][1][F];return P(Z||F)},z,z.exports,m,x,q,C)}return q[L].exports}for(var j=typeof pe=="function"&&pe,D=0;D<C.length;D++)P(C[D]);return P}({1:[function(m,x,q){(function(C){var P=C.MutationObserver||C.WebKitMutationObserver,j;if(P){var D=0,L=new P(F),Y=C.document.createTextNode("");L.observe(Y,{characterData:!0}),j=function(){Y.data=D=++D%2}}else if(!C.setImmediate&&typeof C.MessageChannel<"u"){var y=new C.MessageChannel;y.port1.onmessage=F,j=function(){y.port2.postMessage(0)}}else"document"in C&&"onreadystatechange"in C.document.createElement("script")?j=function(){var A=C.document.createElement("script");A.onreadystatechange=function(){F(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},C.document.documentElement.appendChild(A)}:j=function(){setTimeout(F,0)};var w,z=[];function F(){w=!0;for(var A,G,U=z.length;U;){for(G=z,z=[],A=-1;++A<U;)G[A]();U=z.length}w=!1}x.exports=Z;function Z(A){z.push(A)===1&&!w&&j()}}).call(this,typeof se<"u"?se:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(m,x,q){var C=m(1);function P(){}var j={},D=["REJECTED"],L=["FULFILLED"],Y=["PENDING"];x.exports=y;function y(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=Y,this.queue=[],this.outcome=void 0,v!==P&&Z(this,v)}y.prototype.catch=function(v){return this.then(null,v)},y.prototype.then=function(v,N){if(typeof v!="function"&&this.state===L||typeof N!="function"&&this.state===D)return this;var E=new this.constructor(P);if(this.state!==Y){var B=this.state===L?v:N;z(E,B,this.outcome)}else this.queue.push(new w(E,v,N));return E};function w(v,N,E){this.promise=v,typeof N=="function"&&(this.onFulfilled=N,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}w.prototype.callFulfilled=function(v){j.resolve(this.promise,v)},w.prototype.otherCallFulfilled=function(v){z(this.promise,this.onFulfilled,v)},w.prototype.callRejected=function(v){j.reject(this.promise,v)},w.prototype.otherCallRejected=function(v){z(this.promise,this.onRejected,v)};function z(v,N,E){C(function(){var B;try{B=N(E)}catch(K){return j.reject(v,K)}B===v?j.reject(v,new TypeError("Cannot resolve promise with itself")):j.resolve(v,B)})}j.resolve=function(v,N){var E=A(F,N);if(E.status==="error")return j.reject(v,E.value);var B=E.value;if(B)Z(v,B);else{v.state=L,v.outcome=N;for(var K=-1,X=v.queue.length;++K<X;)v.queue[K].callFulfilled(N)}return v},j.reject=function(v,N){v.state=D,v.outcome=N;for(var E=-1,B=v.queue.length;++E<B;)v.queue[E].callRejected(N);return v};function F(v){var N=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof N=="function")return function(){N.apply(v,arguments)}}function Z(v,N){var E=!1;function B(Q){E||(E=!0,j.reject(v,Q))}function K(Q){E||(E=!0,j.resolve(v,Q))}function X(){N(K,B)}var J=A(X);J.status==="error"&&B(J.value)}function A(v,N){var E={};try{E.value=v(N),E.status="success"}catch(B){E.status="error",E.value=B}return E}y.resolve=G;function G(v){return v instanceof this?v:j.resolve(new this(P),v)}y.reject=U;function U(v){var N=new this(P);return j.reject(N,v)}y.all=oe;function oe(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=v.length,B=!1;if(!E)return this.resolve([]);for(var K=new Array(E),X=0,J=-1,Q=new this(P);++J<E;)$(v[J],J);return Q;function $(ie,ue){N.resolve(ie).then(le,function(re){B||(B=!0,j.reject(Q,re))});function le(re){K[ue]=re,++X===E&&!B&&(B=!0,j.resolve(Q,K))}}}y.race=ee;function ee(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=v.length,B=!1;if(!E)return this.resolve([]);for(var K=-1,X=new this(P);++K<E;)J(v[K]);return X;function J(Q){N.resolve(Q).then(function($){B||(B=!0,j.resolve(X,$))},function($){B||(B=!0,j.reject(X,$))})}}},{1:1}],3:[function(m,x,q){(function(C){typeof C.Promise!="function"&&(C.Promise=m(2))}).call(this,typeof se<"u"?se:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(m,x,q){var C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function P(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function j(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var D=j();function L(){try{if(!D||!D.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),r=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||r)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function Y(e,r){e=e||[],r=r||{};try{return new Blob(e,r)}catch(i){if(i.name!=="TypeError")throw i;for(var t=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,o=new t,n=0;n<e.length;n+=1)o.append(e[n]);return o.getBlob(r.type)}}typeof Promise>"u"&&m(3);var y=Promise;function w(e,r){r&&e.then(function(t){r(null,t)},function(t){r(t)})}function z(e,r,t){typeof r=="function"&&e.then(r),typeof t=="function"&&e.catch(t)}function F(e){return typeof e!="string"&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function Z(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",G=void 0,U={},oe=Object.prototype.toString,ee="readonly",v="readwrite";function N(e){for(var r=e.length,t=new ArrayBuffer(r),o=new Uint8Array(t),n=0;n<r;n++)o[n]=e.charCodeAt(n);return t}function E(e){return new y(function(r){var t=e.transaction(A,v),o=Y([""]);t.objectStore(A).put(o,"key"),t.onabort=function(n){n.preventDefault(),n.stopPropagation(),r(!1)},t.oncomplete=function(){var n=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);r(i||!n||parseInt(n[1],10)>=43)}}).catch(function(){return!1})}function B(e){return typeof G=="boolean"?y.resolve(G):E(e).then(function(r){return G=r,G})}function K(e){var r=U[e.name],t={};t.promise=new y(function(o,n){t.resolve=o,t.reject=n}),r.deferredOperations.push(t),r.dbReady?r.dbReady=r.dbReady.then(function(){return t.promise}):r.dbReady=t.promise}function X(e){var r=U[e.name],t=r.deferredOperations.pop();if(t)return t.resolve(),t.promise}function J(e,r){var t=U[e.name],o=t.deferredOperations.pop();if(o)return o.reject(r),o.promise}function Q(e,r){return new y(function(t,o){if(U[e.name]=U[e.name]||g(),e.db)if(r)K(e),e.db.close();else return t(e.db);var n=[e.name];r&&n.push(e.version);var i=D.open.apply(D,n);r&&(i.onupgradeneeded=function(u){var c=i.result;try{c.createObjectStore(e.storeName),u.oldVersion<=1&&c.createObjectStore(A)}catch(d){if(d.name==="ConstraintError")console.warn('The database "'+e.name+'" has been upgraded from version '+u.oldVersion+" to version "+u.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw d}}),i.onerror=function(u){u.preventDefault(),o(i.error)},i.onsuccess=function(){var u=i.result;u.onversionchange=function(c){c.target.close()},t(u),X(e)}})}function $(e){return Q(e,!1)}function ie(e){return Q(e,!0)}function ue(e,r){if(!e.db)return!0;var t=!e.db.objectStoreNames.contains(e.storeName),o=e.version<e.db.version,n=e.version>e.db.version;if(o&&(e.version!==r&&console.warn('The database "'+e.name+`" can't be downgraded from version `+e.db.version+" to version "+e.version+"."),e.version=e.db.version),n||t){if(t){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function le(e){return new y(function(r,t){var o=new FileReader;o.onerror=t,o.onloadend=function(n){var i=btoa(n.target.result||"");r({__local_forage_encoded_blob:!0,data:i,type:e.type})},o.readAsBinaryString(e)})}function re(e){var r=N(atob(e.data));return Y([r],{type:e.type})}function a(e){return e&&e.__local_forage_encoded_blob}function f(e){var r=this,t=r._initReady().then(function(){var o=U[r._dbInfo.name];if(o&&o.dbReady)return o.dbReady});return z(t,e,e),t}function h(e){K(e);for(var r=U[e.name],t=r.forages,o=0;o<t.length;o++){var n=t[o];n._dbInfo.db&&(n._dbInfo.db.close(),n._dbInfo.db=null)}return e.db=null,$(e).then(function(i){return e.db=i,ue(e)?ie(e):i}).then(function(i){e.db=r.db=i;for(var u=0;u<t.length;u++)t[u]._dbInfo.db=i}).catch(function(i){throw J(e,i),i})}function p(e,r,t,o){o===void 0&&(o=1);try{var n=e.db.transaction(e.storeName,r);t(null,n)}catch(i){if(o>0&&(!e.db||i.name==="InvalidStateError"||i.name==="NotFoundError"))return y.resolve().then(function(){if(!e.db||i.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),ie(e)}).then(function(){return h(e).then(function(){p(e,r,t,o-1)})}).catch(t);t(i)}}function g(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function I(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=e[o];var n=U[t.name];n||(n=g(),U[t.name]=n),n.forages.push(r),r._initReady||(r._initReady=r.ready,r.ready=f);var i=[];function u(){return y.resolve()}for(var c=0;c<n.forages.length;c++){var d=n.forages[c];d!==r&&i.push(d._initReady().catch(u))}var l=n.forages.slice(0);return y.all(i).then(function(){return t.db=n.db,$(t)}).then(function(s){return t.db=s,ue(t,r._defaultConfig.version)?ie(t):s}).then(function(s){t.db=n.db=s,r._dbInfo=t;for(var b=0;b<l.length;b++){var S=l[b];S!==r&&(S._dbInfo.db=t.db,S._dbInfo.version=t.version)}})}function M(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.get(e);l.onsuccess=function(){var s=l.result;s===void 0&&(s=null),a(s)&&(s=re(s)),n(s)},l.onerror=function(){i(l.error)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function V(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.openCursor(),s=1;l.onsuccess=function(){var b=l.result;if(b){var S=b.value;a(S)&&(S=re(S));var R=e(S,b.key,s++);R!==void 0?n(R):b.continue()}else n()},l.onerror=function(){i(l.error)}}catch(b){i(b)}})}).catch(i)});return w(o,r),o}function ce(e,r,t){var o=this;e=F(e);var n=new y(function(i,u){var c;o.ready().then(function(){return c=o._dbInfo,oe.call(r)==="[object Blob]"?B(c.db).then(function(d){return d?r:le(r)}):r}).then(function(d){p(o._dbInfo,v,function(l,s){if(l)return u(l);try{var b=s.objectStore(o._dbInfo.storeName);d===null&&(d=void 0);var S=b.put(d,e);s.oncomplete=function(){d===void 0&&(d=null),i(d)},s.onabort=s.onerror=function(){var R=S.error?S.error:S.transaction.error;u(R)}}catch(R){u(R)}})}).catch(u)});return w(n,t),n}function ae(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,v,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.delete(e);c.oncomplete=function(){n()},c.onerror=function(){i(l.error)},c.onabort=function(){var s=l.error?l.error:l.transaction.error;i(s)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function de(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,v,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.clear();u.oncomplete=function(){o()},u.onabort=u.onerror=function(){var l=d.error?d.error:d.transaction.error;n(l)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function Ge(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.count();d.onsuccess=function(){o(d.result)},d.onerror=function(){n(d.error)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function $e(e,r){var t=this,o=new y(function(n,i){if(e<0){n(null);return}t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=!1,s=d.openKeyCursor();s.onsuccess=function(){var b=s.result;if(!b){n(null);return}e===0||l?n(b.key):(l=!0,b.advance(e))},s.onerror=function(){i(s.error)}}catch(b){i(b)}})}).catch(i)});return w(o,r),o}function er(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.openKeyCursor(),l=[];d.onsuccess=function(){var s=d.result;if(!s){o(l);return}l.push(s.key),s.continue()},d.onerror=function(){n(d.error)}}catch(s){n(s)}})}).catch(n)});return w(t,e),t}function rr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;if(!e.name)n=y.reject("Invalid arguments");else{var i=e.name===t.name&&o._dbInfo.db,u=i?y.resolve(o._dbInfo.db):$(e).then(function(c){var d=U[e.name],l=d.forages;d.db=c;for(var s=0;s<l.length;s++)l[s]._dbInfo.db=c;return c});e.storeName?n=u.then(function(c){if(c.objectStoreNames.contains(e.storeName)){var d=c.version+1;K(e);var l=U[e.name],s=l.forages;c.close();for(var b=0;b<s.length;b++){var S=s[b];S._dbInfo.db=null,S._dbInfo.version=d}var R=new y(function(k,W){var T=D.open(e.name,d);T.onerror=function(H){var Oe=T.result;Oe.close(),W(H)},T.onupgradeneeded=function(){var H=T.result;H.deleteObjectStore(e.storeName)},T.onsuccess=function(){var H=T.result;H.close(),k(H)}});return R.then(function(k){l.db=k;for(var W=0;W<s.length;W++){var T=s[W];T._dbInfo.db=k,X(T._dbInfo)}}).catch(function(k){throw(J(e,k)||y.resolve()).catch(function(){}),k})}}):n=u.then(function(c){K(e);var d=U[e.name],l=d.forages;c.close();for(var s=0;s<l.length;s++){var b=l[s];b._dbInfo.db=null}var S=new y(function(R,k){var W=D.deleteDatabase(e.name);W.onerror=function(){var T=W.result;T&&T.close(),k(W.error)},W.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},W.onsuccess=function(){var T=W.result;T&&T.close(),R(T)}});return S.then(function(R){d.db=R;for(var k=0;k<l.length;k++){var W=l[k];X(W._dbInfo)}}).catch(function(R){throw(J(e,R)||y.resolve()).catch(function(){}),R})})}return w(n,r),n}var tr={_driver:"asyncStorage",_initStorage:I,_support:L(),iterate:V,getItem:M,setItem:ce,removeItem:ae,clear:de,length:Ge,key:$e,keys:er,dropInstance:rr};function nr(){return typeof openDatabase=="function"}var te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",or="~~local_forage_type~",Ae=/^~~local_forage_type~([^~]+)~/,he="__lfsc__:",be=he.length,ge="arbf",_e="blob",Be="si08",ke="ui08",xe="uic8",De="si16",Re="si32",Ce="ur16",Le="ui32",Me="fl32",Te="fl64",ze=be+ge.length,Fe=Object.prototype.toString;function Pe(e){var r=e.length*.75,t=e.length,o,n=0,i,u,c,d;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);var l=new ArrayBuffer(r),s=new Uint8Array(l);for(o=0;o<t;o+=4)i=te.indexOf(e[o]),u=te.indexOf(e[o+1]),c=te.indexOf(e[o+2]),d=te.indexOf(e[o+3]),s[n++]=i<<2|u>>4,s[n++]=(u&15)<<4|c>>2,s[n++]=(c&3)<<6|d&63;return l}function we(e){var r=new Uint8Array(e),t="",o;for(o=0;o<r.length;o+=3)t+=te[r[o]>>2],t+=te[(r[o]&3)<<4|r[o+1]>>4],t+=te[(r[o+1]&15)<<2|r[o+2]>>6],t+=te[r[o+2]&63];return r.length%3===2?t=t.substring(0,t.length-1)+"=":r.length%3===1&&(t=t.substring(0,t.length-2)+"=="),t}function ir(e,r){var t="";if(e&&(t=Fe.call(e)),e&&(t==="[object ArrayBuffer]"||e.buffer&&Fe.call(e.buffer)==="[object ArrayBuffer]")){var o,n=he;e instanceof ArrayBuffer?(o=e,n+=ge):(o=e.buffer,t==="[object Int8Array]"?n+=Be:t==="[object Uint8Array]"?n+=ke:t==="[object Uint8ClampedArray]"?n+=xe:t==="[object Int16Array]"?n+=De:t==="[object Uint16Array]"?n+=Ce:t==="[object Int32Array]"?n+=Re:t==="[object Uint32Array]"?n+=Le:t==="[object Float32Array]"?n+=Me:t==="[object Float64Array]"?n+=Te:r(new Error("Failed to get type for BinaryArray"))),r(n+we(o))}else if(t==="[object Blob]"){var i=new FileReader;i.onload=function(){var u=or+e.type+"~"+we(this.result);r(he+_e+u)},i.readAsArrayBuffer(e)}else try{r(JSON.stringify(e))}catch(u){console.error("Couldn't convert value into a JSON string: ",e),r(null,u)}}function ar(e){if(e.substring(0,be)!==he)return JSON.parse(e);var r=e.substring(ze),t=e.substring(be,ze),o;if(t===_e&&Ae.test(r)){var n=r.match(Ae);o=n[1],r=r.substring(n[0].length)}var i=Pe(r);switch(t){case ge:return i;case _e:return Y([i],{type:o});case Be:return new Int8Array(i);case ke:return new Uint8Array(i);case xe:return new Uint8ClampedArray(i);case De:return new Int16Array(i);case Ce:return new Uint16Array(i);case Re:return new Int32Array(i);case Le:return new Uint32Array(i);case Me:return new Float32Array(i);case Te:return new Float64Array(i);default:throw new Error("Unkown type: "+t)}}var Ie={serialize:ir,deserialize:ar,stringToBuffer:Pe,bufferToString:we};function Ue(e,r,t,o){e.executeSql("CREATE TABLE IF NOT EXISTS "+r.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,o)}function ur(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=typeof e[o]!="string"?e[o].toString():e[o];var n=new y(function(i,u){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(c){return u(c)}t.db.transaction(function(c){Ue(c,t,function(){r._dbInfo=t,i()},function(d,l){u(l)})},u)});return t.serializer=Ie,n}function ne(e,r,t,o,n,i){e.executeSql(t,o,n,function(u,c){c.code===c.SYNTAX_ERR?u.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[r.storeName],function(d,l){l.rows.length?i(d,c):Ue(d,r,function(){d.executeSql(t,o,n,i)},i)},i):i(u,c)},i)}function cr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName+" WHERE key = ? LIMIT 1",[e],function(d,l){var s=l.rows.length?l.rows.item(0).value:null;s&&(s=u.serializer.deserialize(s)),n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function fr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName,[],function(d,l){for(var s=l.rows,b=s.length,S=0;S<b;S++){var R=s.item(S),k=R.value;if(k&&(k=u.serializer.deserialize(k)),k=e(k,R.key,S+1),k!==void 0){n(k);return}}n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function We(e,r,t,o){var n=this;e=F(e);var i=new y(function(u,c){n.ready().then(function(){r===void 0&&(r=null);var d=r,l=n._dbInfo;l.serializer.serialize(r,function(s,b){b?c(b):l.db.transaction(function(S){ne(S,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,s],function(){u(d)},function(R,k){c(k)})},function(S){if(S.code===S.QUOTA_ERR){if(o>0){u(We.apply(n,[e,d,t,o-1]));return}c(S)}})})}).catch(c)});return w(i,t),i}function sr(e,r,t){return We.apply(this,[e,r,t,1])}function lr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"DELETE FROM "+u.storeName+" WHERE key = ?",[e],function(){n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function dr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"DELETE FROM "+i.storeName,[],function(){o()},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function vr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT COUNT(key) as c FROM "+i.storeName,[],function(c,d){var l=d.rows.item(0).c;o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function hr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT key FROM "+u.storeName+" WHERE id = ? LIMIT 1",[e+1],function(d,l){var s=l.rows.length?l.rows.item(0).key:null;n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function yr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT key FROM "+i.storeName,[],function(c,d){for(var l=[],s=0;s<d.rows.length;s++)l.push(d.rows.item(s).key);o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function pr(e){return new y(function(r,t){e.transaction(function(o){o.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,i){for(var u=[],c=0;c<i.rows.length;c++)u.push(i.rows.item(c).name);r({db:e,storeNames:u})},function(n,i){t(i)})},function(o){t(o)})})}function mr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;return e.name?n=new y(function(i){var u;e.name===t.name?u=o._dbInfo.db:u=openDatabase(e.name,"","",0),e.storeName?i({db:u,storeNames:[e.storeName]}):i(pr(u))}).then(function(i){return new y(function(u,c){i.db.transaction(function(d){function l(R){return new y(function(k,W){d.executeSql("DROP TABLE IF EXISTS "+R,[],function(){k()},function(T,H){W(H)})})}for(var s=[],b=0,S=i.storeNames.length;b<S;b++)s.push(l(i.storeNames[b]));y.all(s).then(function(){u()}).catch(function(R){c(R)})},function(d){c(d)})})}):n=y.reject("Invalid arguments"),w(n,r),n}var br={_driver:"webSQLStorage",_initStorage:ur,_support:nr(),iterate:fr,getItem:cr,setItem:sr,removeItem:lr,clear:dr,length:vr,key:hr,keys:yr,dropInstance:mr};function gr(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function qe(e,r){var t=e.name+"/";return e.storeName!==r.storeName&&(t+=e.storeName+"/"),t}function _r(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function wr(){return!_r()||localStorage.length>0}function Ir(e){var r=this,t={};if(e)for(var o in e)t[o]=e[o];return t.keyPrefix=qe(e,r._defaultConfig),wr()?(r._dbInfo=t,t.serializer=Ie,y.resolve()):y.reject()}function Er(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var i=localStorage.key(n);i.indexOf(o)===0&&localStorage.removeItem(i)}});return w(t,e),t}function Sr(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo,i=localStorage.getItem(n.keyPrefix+e);return i&&(i=n.serializer.deserialize(i)),i});return w(o,r),o}function Or(e,r){var t=this,o=t.ready().then(function(){for(var n=t._dbInfo,i=n.keyPrefix,u=i.length,c=localStorage.length,d=1,l=0;l<c;l++){var s=localStorage.key(l);if(s.indexOf(i)===0){var b=localStorage.getItem(s);if(b&&(b=n.serializer.deserialize(b)),b=e(b,s.substring(u),d++),b!==void 0)return b}}});return w(o,r),o}function jr(e,r){var t=this,o=t.ready().then(function(){var n=t._dbInfo,i;try{i=localStorage.key(e)}catch{i=null}return i&&(i=i.substring(n.keyPrefix.length)),i});return w(o,r),o}function Nr(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo,n=localStorage.length,i=[],u=0;u<n;u++){var c=localStorage.key(u);c.indexOf(o.keyPrefix)===0&&i.push(c.substring(o.keyPrefix.length))}return i});return w(t,e),t}function Ar(e){var r=this,t=r.keys().then(function(o){return o.length});return w(t,e),t}function Br(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo;localStorage.removeItem(n.keyPrefix+e)});return w(o,r),o}function kr(e,r,t){var o=this;e=F(e);var n=o.ready().then(function(){r===void 0&&(r=null);var i=r;return new y(function(u,c){var d=o._dbInfo;d.serializer.serialize(r,function(l,s){if(s)c(s);else try{localStorage.setItem(d.keyPrefix+e,l),u(i)}catch(b){(b.name==="QuotaExceededError"||b.name==="NS_ERROR_DOM_QUOTA_REACHED")&&c(b),c(b)}})})});return w(n,t),n}function xr(e,r){if(r=Z.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var t=this.config();e.name=e.name||t.name,e.storeName=e.storeName||t.storeName}var o=this,n;return e.name?n=new y(function(i){e.storeName?i(qe(e,o._defaultConfig)):i(e.name+"/")}).then(function(i){for(var u=localStorage.length-1;u>=0;u--){var c=localStorage.key(u);c.indexOf(i)===0&&localStorage.removeItem(c)}}):n=y.reject("Invalid arguments"),w(n,r),n}var Dr={_driver:"localStorageWrapper",_initStorage:Ir,_support:gr(),iterate:Or,getItem:Sr,setItem:kr,removeItem:Br,clear:Er,length:Ar,key:jr,keys:Nr,dropInstance:xr},Rr=function(e,r){return e===r||typeof e=="number"&&typeof r=="number"&&isNaN(e)&&isNaN(r)},Cr=function(e,r){for(var t=e.length,o=0;o<t;){if(Rr(e[o],r))return!0;o++}return!1},Ke=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},ve={},Ve={},fe={INDEXEDDB:tr,WEBSQL:br,LOCALSTORAGE:Dr},Lr=[fe.INDEXEDDB._driver,fe.WEBSQL._driver,fe.LOCALSTORAGE._driver],ye=["dropInstance"],Ee=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ye),Mr={description:"",driver:Lr.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Tr(e,r){e[r]=function(){var t=arguments;return e.ready().then(function(){return e[r].apply(e,t)})}}function Se(){for(var e=1;e<arguments.length;e++){var r=arguments[e];if(r)for(var t in r)r.hasOwnProperty(t)&&(Ke(r[t])?arguments[0][t]=r[t].slice():arguments[0][t]=r[t])}return arguments[0]}var zr=function(){function e(r){P(this,e);for(var t in fe)if(fe.hasOwnProperty(t)){var o=fe[t],n=o._driver;this[t]=n,ve[n]||this.defineDriver(o)}this._defaultConfig=Se({},Mr),this._config=Se({},this._defaultConfig,r),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(r){if((typeof r>"u"?"undefined":C(r))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in r){if(t==="storeName"&&(r[t]=r[t].replace(/\W/g,"_")),t==="version"&&typeof r[t]!="number")return new Error("Database version must be a number.");this._config[t]=r[t]}return"driver"in r&&r.driver?this.setDriver(this._config.driver):!0}else return typeof r=="string"?this._config[r]:this._config},e.prototype.defineDriver=function(r,t,o){var n=new y(function(i,u){try{var c=r._driver,d=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!r._driver){u(d);return}for(var l=Ee.concat("_initStorage"),s=0,b=l.length;s<b;s++){var S=l[s],R=!Cr(ye,S);if((R||r[S])&&typeof r[S]!="function"){u(d);return}}var k=function(){for(var T=function(Pr){return function(){var Ur=new Error("Method "+Pr+" is not implemented by the current driver"),Xe=y.reject(Ur);return w(Xe,arguments[arguments.length-1]),Xe}},H=0,Oe=ye.length;H<Oe;H++){var je=ye[H];r[je]||(r[je]=T(je))}};k();var W=function(T){ve[c]&&console.info("Redefining LocalForage driver: "+c),ve[c]=r,Ve[c]=T,i()};"_support"in r?r._support&&typeof r._support=="function"?r._support().then(W,u):W(!!r._support):W(!0)}catch(T){u(T)}});return z(n,t,o),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(r,t,o){var n=ve[r]?y.resolve(ve[r]):y.reject(new Error("Driver not found."));return z(n,t,o),n},e.prototype.getSerializer=function(r){var t=y.resolve(Ie);return z(t,r),t},e.prototype.ready=function(r){var t=this,o=t._driverSet.then(function(){return t._ready===null&&(t._ready=t._initDriver()),t._ready});return z(o,r,r),o},e.prototype.setDriver=function(r,t,o){var n=this;Ke(r)||(r=[r]);var i=this._getSupportedDrivers(r);function u(){n._config.driver=n.driver()}function c(s){return n._extend(s),u(),n._ready=n._initStorage(n._config),n._ready}function d(s){return function(){var b=0;function S(){for(;b<s.length;){var R=s[b];return b++,n._dbInfo=null,n._ready=null,n.getDriver(R).then(c).catch(S)}u();var k=new Error("No available storage method found.");return n._driverSet=y.reject(k),n._driverSet}return S()}}var l=this._driverSet!==null?this._driverSet.catch(function(){return y.resolve()}):y.resolve();return this._driverSet=l.then(function(){var s=i[0];return n._dbInfo=null,n._ready=null,n.getDriver(s).then(function(b){n._driver=b._driver,u(),n._wrapLibraryMethodsWithReady(),n._initDriver=d(i)})}).catch(function(){u();var s=new Error("No available storage method found.");return n._driverSet=y.reject(s),n._driverSet}),z(this._driverSet,t,o),this._driverSet},e.prototype.supports=function(r){return!!Ve[r]},e.prototype._extend=function(r){Se(this,r)},e.prototype._getSupportedDrivers=function(r){for(var t=[],o=0,n=r.length;o<n;o++){var i=r[o];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var r=0,t=Ee.length;r<t;r++)Tr(this,Ee[r])},e.prototype.createInstance=function(r){return new e(r)},e}(),Fr=new zr;x.exports=Fr},{3:3}]},{},[4])(4)})}),et=Ze((_,O)=>{(function(m,x){typeof _=="object"&&typeof O<"u"?x(_):typeof define=="function"&&define.amd?define("localforage-driver-memory",["exports"],x):x(m.LocalforageDriverMemory={})})(typeof self<"u"?self:_,function(m){var x="localforage-driver-memory";function q(a){var f=typeof Symbol=="function"&&a[Symbol.iterator],h=0;return f?f.call(a):{next:function(){return a&&h>=a.length&&(a=void 0),{value:a&&a[h++],done:!a}}}}function C(a,f){a=a||[],f=f||{};try{return new Blob(a,f)}catch(I){if(I.name!=="TypeError")throw I;for(var h=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,p=new h,g=0;g<a.length;g+=1)p.append(a[g]);return p.getBlob(f.type)}}var P=/^~~local_forage_type~([^~]+)~/,j=9,D=j+4,L=Object.prototype.toString;function Y(a){var f=a.length*.75,h=a.length;a[a.length-1]==="="&&(f--,a[a.length-2]==="="&&f--);for(var p=new ArrayBuffer(f),g=new Uint8Array(p),I=0,M=0;I<h;I+=4){var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I]),ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+1]),ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+2]),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+3]);g[M++]=V<<2|ce>>4,g[M++]=(ce&15)<<4|ae>>2,g[M++]=(ae&3)<<6|de&63}return p}function y(a){for(var f=new Uint8Array(a),h="",p=0;p<f.length;p+=3)h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p]>>2],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p]&3)<<4|f[p+1]>>4],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p+1]&15)<<2|f[p+2]>>6],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p+2]&63];return f.length%3===2?h=h.substring(0,h.length-1)+"=":f.length%3===1&&(h=h.substring(0,h.length-2)+"=="),h}function w(a,f){var h="";if(a&&(h=L.call(a)),a&&(h==="[object ArrayBuffer]"||a.buffer&&L.call(a.buffer)==="[object ArrayBuffer]")){var p=void 0,g="__lfsc__:";a instanceof ArrayBuffer?(p=a,g+="arbf"):(p=a.buffer,h==="[object Int8Array]"?g+="si08":h==="[object Uint8Array]"?g+="ui08":h==="[object Uint8ClampedArray]"?g+="uic8":h==="[object Int16Array]"?g+="si16":h==="[object Uint16Array]"?g+="ur16":h==="[object Int32Array]"?g+="si32":h==="[object Uint32Array]"?g+="ui32":h==="[object Float32Array]"?g+="fl32":h==="[object Float64Array]"?g+="fl64":f(new Error("Failed to get type for BinaryArray"))),f(g+y(p))}else if(h==="[object Blob]"){var I=new FileReader;I.onload=function(){var M="~~local_forage_type~"+a.type+"~"+y(this.result);f("__lfsc__:blob"+M)},I.readAsArrayBuffer(a)}else try{f(JSON.stringify(a))}catch(M){console.error("Couldn't convert value into a JSON string: ",a),f(null,M)}}function z(a){if(a.substring(0,j)!=="__lfsc__:")return JSON.parse(a);var f=a.substring(D),h=a.substring(j,D),p;if(h==="blob"&&P.test(f)){var g=f.match(P);p=g[1],f=f.substring(g[0].length)}var I=Y(f);switch(h){case"arbf":return I;case"blob":return C([I],{type:p});case"si08":return new Int8Array(I);case"ui08":return new Uint8Array(I);case"uic8":return new Uint8ClampedArray(I);case"si16":return new Int16Array(I);case"ur16":return new Uint16Array(I);case"si32":return new Int32Array(I);case"ui32":return new Uint32Array(I);case"fl32":return new Float32Array(I);case"fl64":return new Float64Array(I);default:throw new Error("Unkown type: "+h)}}function F(a){var f,h;if(a===null||typeof a!="object"||"isActiveClone"in a)return a;var p=a instanceof Date?new Date(a):a.constructor();try{for(var g=q(Object.keys(a)),I=g.next();!I.done;I=g.next()){var M=I.value;Object.prototype.hasOwnProperty.call(a,M)&&(a.isActiveClone=null,p[M]=F(a[M]),delete a.isActiveClone)}}catch(V){f={error:V}}finally{try{I&&!I.done&&(h=g.return)&&h.call(g)}finally{if(f)throw f.error}}return p}function Z(a,f){return(a.name||f.name)+"/"+(a.storeName||f.storeName)+"/"}function A(a,f){f&&a.then(function(h){f(null,h)},function(h){f(h)})}function G(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}function U(a,f){var h=this;if(f=G.apply(this,arguments),a=typeof a!="function"&&a||{},!a.name){var p=this.config();a.name=a.name||p.name,a.storeName=a.storeName||p.storeName}var g;return a.name?g=new Promise(function(I){a.storeName?I(Z(a,h._defaultConfig)):I(a.name+"/")}):g=Promise.reject("Invalid arguments"),{promise:g,callback:f}}function oe(a){return typeof a!="string"&&(console.warn(a+" used as a key, but it is not a string."),a=String(a)),a}var ee={bufferToString:y,deserialize:z,serialize:w,stringToBuffer:Y},v={},N=function(){function a(f){this.kp=f,this.data={}}return a.resolve=function(f){return v[f]||(v[f]=new a(f)),v[f]},a.prototype.clear=function(){this.data={}},a.prototype.drop=function(){this.clear(),delete v[this.kp]},a.prototype.get=function(f){return this.data[f]},a.prototype.key=function(f){return this.keys()[f]},a.prototype.keys=function(){return Object.keys(this.data)},a.prototype.rm=function(f){delete this.data[f]},a.prototype.set=function(f,h){this.data[f]=h},a}();function E(a){var f=a?F(a):{},h=Z(f,this._defaultConfig),p=N.resolve(h);return this._dbInfo=f,this._dbInfo.serializer=ee,this._dbInfo.keyPrefix=h,this._dbInfo.mStore=p,Promise.resolve()}function B(a){var f=this,h=this.ready().then(function(){f._dbInfo.mStore.clear()});return A(h,a),h}function K(a,f){var h=U.apply(this,arguments),p=h.promise,g=h.callback,I=p.then(function(M){N.resolve(M).drop()});return A(I,g),p}function X(a,f){var h=this;a=oe(a);var p=this.ready().then(function(){var g=h._dbInfo.mStore.get(a);return g==null?null:h._dbInfo.serializer.deserialize(g)});return A(p,f),p}function J(a,f){var h=this,p=this.ready().then(function(){for(var g=h._dbInfo.mStore,I=g.keys(),M=0;M<I.length;M++){var V=g.get(I[M]);if(V&&(V=h._dbInfo.serializer.deserialize(V)),V=a(V,I[M],M+1),V!==void 0)return V}});return A(p,f),p}function Q(a,f){var h=this,p=this.ready().then(function(){var g;try{g=h._dbInfo.mStore.key(a),g===void 0&&(g=null)}catch{g=null}return g});return A(p,f),p}function $(a){var f=this,h=this.ready().then(function(){return f._dbInfo.mStore.keys()});return A(h,a),h}function ie(a){var f=this.keys().then(function(h){return h.length});return A(f,a),f}function ue(a,f){var h=this;a=oe(a);var p=this.ready().then(function(){h._dbInfo.mStore.rm(a)});return A(p,f),p}function le(a,f,h){var p=this;a=oe(a);var g=this.ready().then(function(){f===void 0&&(f=null);var I=f;return new Promise(function(M,V){p._dbInfo.serializer.serialize(f,function(ce,ae){if(ae)V(ae);else try{p._dbInfo.mStore.set(a,ce),M(I)}catch(de){V(de)}})})});return A(g,h),g}var re=!0;m._support=re,m._driver=x,m._initStorage=E,m.clear=B,m.dropInstance=K,m.getItem=X,m.iterate=J,m.key=Q,m.keys=$,m.length=ie,m.removeItem=ue,m.setItem=le,Object.defineProperty(m,"__esModule",{value:!0})})}),Ne=He($r()),Je=He(et()),rt={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"};function tt(_){for(let[O,m]of Object.entries(rt))_.style[O]=m}function nt(_){return!![].slice.call(document.querySelectorAll(".magic-iframe")).find(m=>m.src.includes(_))}var ot=class extends Kr{constructor(){super(...arguments),this.activeElement=null}init(){this.test="hello",this.iframe=new Promise(_=>{let O=()=>{if(nt(encodeURIComponent(this.parameters)))Xr().log();else{let m=document.createElement("iframe");m.classList.add("magic-iframe"),m.dataset.magicIframeLabel=Ye(this.endpoint).host,m.title="Secure Modal",m.src=Ye(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href,tt(m),document.body.appendChild(m),_(m)}};["loaded","interactive","complete"].includes(document.readyState)?O():window.addEventListener("load",O,!1)}),window.addEventListener("message",_=>{var O;if(_.origin===this.endpoint&&_.data&&_.data.msgType&&this.messageHandlers.size){_.data.response=(O=_.data.response)!=null?O:{};for(let m of this.messageHandlers.values())m(_)}})}showOverlay(){return me(this,null,function*(){let _=yield this.iframe;_.style.display="block",this.activeElement=document.activeElement,_.focus()})}hideOverlay(){return me(this,null,function*(){var _;let O=yield this.iframe;O.style.display="none",(_=this.activeElement)!=null&&_.focus&&this.activeElement.focus(),this.activeElement=null})}_post(_){return me(this,null,function*(){let O=yield this.iframe;if(O&&O.contentWindow)O.contentWindow.postMessage(_,this.endpoint);else throw Vr()})}},ft=Wr(qr,{platform:"web",sdkName:"magic-sdk",version:"27.0.0",defaultEndpoint:"https://auth.magic.link/",ViewController:ot,configureStorage:()=>me(void 0,null,function*(){let _=Ne.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield _.defineDriver(Je),yield _.setDriver([Ne.default.INDEXEDDB,Ne.default.LOCALSTORAGE,Je._driver]),_})});export{dt as DeepLinkPage,vt as DeviceVerificationEventEmit,ht as DeviceVerificationEventOnReceived,yt as EthChainType,pt as Events,mt as Extension,bt as ExtensionError,gt as ExtensionWarning,_t as LoginWithEmailOTPEventEmit,wt as LoginWithEmailOTPEventOnReceived,It as LoginWithMagicLinkEventEmit,Et as LoginWithMagicLinkEventOnReceived,ft as Magic,St as MagicIncomingWindowMessage,Ot as MagicOutgoingWindowMessage,jt as MagicPayloadMethod,Nt as RPCError,At as RPCErrorCode,Bt as RecencyCheckEventEmit,kt as RecencyCheckEventOnReceived,xt as RecoveryMethodType,Dt as SDKError,Rt as SDKErrorCode,Ct as SDKWarning,Lt as SDKWarningCode,Mt as UpdateEmailEventEmit,Tt as UpdateEmailEventOnReceived,zt as Wallets,Ft as isPromiEvent};
@@ -1,4 +1,4 @@
1
- import{a as uv,g as dv}from"./thirdweb-C-oikHfy.js";import{r as fv}from"./index-CpWZ5dtQ.js";import{n as lv}from"./native-CO1Foc9o.js";import{v as bv}from"./ui-BP9j8-c3.js";function mv(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var yd={},Rn={},Bt={},Zr={},Er={},Bn={},On={},il;function Lp(){if(il)return On;il=1,Object.defineProperty(On,"__esModule",{value:!0}),On.getSDKVersion=void 0;const e=()=>"9.1.0";return On.getSDKVersion=e,On}var xn={},al;function hv(){if(al)return xn;al=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.generateRequestId=void 0;const e=t=>t.toString(16).padStart(2,"0"),r=t=>{const o=new Uint8Array(t/2);return window.crypto.getRandomValues(o),Array.from(o,e).join("")},n=()=>typeof window<"u"?r(10):new Date().getTime().toString(36);return xn.generateRequestId=n,xn}var sl;function Dp(){if(sl)return Bn;sl=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.MessageFormatter=void 0;const e=Lp(),r=hv();class n{}return Bn.MessageFormatter=n,n.makeRequest=(t,o)=>({id:(0,r.generateRequestId)(),method:t,params:o,env:{sdkVersion:(0,e.getSDKVersion)()}}),n.makeResponse=(t,o,s)=>({id:t,success:!0,version:s,data:o}),n.makeErrorResponse=(t,o,s)=>({id:t,success:!1,error:o,version:s}),Bn}var jr={},cl;function Fr(){if(cl)return jr;cl=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.RestrictedMethods=jr.Methods=void 0;var e;(function(n){n.sendTransactions="sendTransactions",n.rpcCall="rpcCall",n.getChainInfo="getChainInfo",n.getSafeInfo="getSafeInfo",n.getTxBySafeTxHash="getTxBySafeTxHash",n.getSafeBalances="getSafeBalances",n.signMessage="signMessage",n.signTypedMessage="signTypedMessage",n.getEnvironmentInfo="getEnvironmentInfo",n.getOffChainSignature="getOffChainSignature",n.requestAddressBook="requestAddressBook",n.wallet_getPermissions="wallet_getPermissions",n.wallet_requestPermissions="wallet_requestPermissions"})(e||(jr.Methods=e={}));var r;return function(n){n.requestAddressBook="requestAddressBook"}(r||(jr.RestrictedMethods=r={})),jr}var ul;function yv(){return ul||(ul=1,function(e){var r=Er&&Er.__createBinding||(Object.create?function(s,i,a,c){c===void 0&&(c=a);var u=Object.getOwnPropertyDescriptor(i,a);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(s,c,u)}:function(s,i,a,c){c===void 0&&(c=a),s[c]=i[a]}),n=Er&&Er.__exportStar||function(s,i){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&r(i,s,a)};Object.defineProperty(e,"__esModule",{value:!0});const t=Dp();class o{constructor(i=null,a=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:u,source:f})=>{const l=!u,b=!this.isServer&&f===window.parent,v=typeof u.version<"u"&&parseInt(u.version.split(".")[0]),h=typeof v=="number"&&v>=1;let m=!0;return Array.isArray(this.allowedOrigins)&&(m=this.allowedOrigins.find(_=>_.test(c))!==void 0),!l&&b&&h&&m},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:u}=c,f=this.callbacks.get(u);f&&(f(c),this.callbacks.delete(u))},this.send=(c,u)=>{const f=t.MessageFormatter.makeRequest(c,u);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(f,"*"),new Promise((l,b)=>{this.callbacks.set(f.id,v=>{if(!v.success){b(new Error(v.error));return}l(v)})})},this.allowedOrigins=i,this.debugMode=a,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Fr(),e)}(Er)),Er}var Cn={},wr={},qn={},dl;function pv(){if(dl)return qn;dl=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.isObjectEIP712TypedData=void 0;const e=r=>typeof r=="object"&&r!=null&&"domain"in r&&"types"in r&&"message"in r;return qn.isObjectEIP712TypedData=e,qn}var pd={},fl;function gv(){return fl||(fl=1,Object.defineProperty(pd,"__esModule",{value:!0})),pd}var gd={},ll;function _v(){return ll||(ll=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var r=fv();Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return r.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return r.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return r.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return r.TransferDirection}})}(gd)),gd}var _d={},bl;function vv(){return bl||(bl=1,Object.defineProperty(_d,"__esModule",{value:!0}),Fr()),_d}var ml;function Kd(){return ml||(ml=1,function(e){var r=wr&&wr.__createBinding||(Object.create?function(t,o,s,i){i===void 0&&(i=s);var a=Object.getOwnPropertyDescriptor(o,s);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(t,i,a)}:function(t,o,s,i){i===void 0&&(i=s),t[i]=o[s]}),n=wr&&wr.__exportStar||function(t,o){for(var s in t)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,t,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(pv(),e),n(gv(),e),n(_v(),e),n(vv(),e)}(wr)),wr}var hl;function Ev(){if(hl)return Cn;hl=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.TXs=void 0;const e=Fr(),r=Kd();class n{constructor(o){this.communicator=o}async getBySafeTxHash(o){if(!o)throw new Error("Invalid safeTxHash");return(await this.communicator.send(e.Methods.getTxBySafeTxHash,{safeTxHash:o})).data}async signMessage(o){const s={message:o};return(await this.communicator.send(e.Methods.signMessage,s)).data}async signTypedMessage(o){if(!(0,r.isObjectEIP712TypedData)(o))throw new Error("Invalid typed data");return(await this.communicator.send(e.Methods.signTypedMessage,{typedData:o})).data}async send({txs:o,params:s}){if(!o||!o.length)throw new Error("No transactions were passed");const i={txs:o,params:s};return(await this.communicator.send(e.Methods.sendTransactions,i)).data}}return Cn.TXs=n,Cn}var Mn={},Hn={},yl;function Zd(){return yl||(yl=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.RPC_CALLS=void 0,Hn.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}),Hn}var pl;function jv(){if(pl)return Mn;pl=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.Eth=void 0;const e=Zd(),r=Fr(),n={defaultBlockParam:(o="latest")=>o,returnFullTxObjectParam:(o=!1)=>o,blockNumberToHex:o=>Number.isInteger(o)?`0x${o.toString(16)}`:o};class t{constructor(s){this.communicator=s,this.call=this.buildRequest({call:e.RPC_CALLS.eth_call,formatters:[null,n.defaultBlockParam]}),this.getBalance=this.buildRequest({call:e.RPC_CALLS.eth_getBalance,formatters:[null,n.defaultBlockParam]}),this.getCode=this.buildRequest({call:e.RPC_CALLS.eth_getCode,formatters:[null,n.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:e.RPC_CALLS.eth_getStorageAt,formatters:[null,n.blockNumberToHex,n.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:e.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByHash,formatters:[null,n.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByNumber,formatters:[n.blockNumberToHex,n.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionCount,formatters:[null,n.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:e.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=i=>this.buildRequest({call:e.RPC_CALLS.eth_estimateGas})([i]),this.setSafeSettings=this.buildRequest({call:e.RPC_CALLS.safe_setSettings})}buildRequest(s){const{call:i,formatters:a}=s;return async c=>{a&&Array.isArray(c)&&a.forEach((l,b)=>{l&&(c[b]=l(c[b]))});const u={call:i,params:c||[]};return(await this.communicator.send(r.Methods.rpcCall,u)).data}}}return Mn.Eth=t,Mn}var Ot={},vd={},Ed={},kn={},Fn={},gl;function wv(){return gl||(gl=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.version=void 0,Fn.version="1.2.3"),Fn}var _l;function yn(){if(_l)return kn;_l=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.BaseError=void 0;const e=wv();class r extends Error{constructor(t,o={}){var c;const s=o.cause instanceof r?o.cause.details:(c=o.cause)!=null&&c.message?o.cause.message:o.details,i=o.cause instanceof r&&o.cause.docsPath||o.docsPath,a=[t||"An error occurred.","",...o.metaMessages?[...o.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${e.version}`].join(`
1
+ import{a as uv,g as dv}from"./thirdweb-DDX0V8S6.js";import{r as fv}from"./index-CpWZ5dtQ.js";import{n as lv}from"./native-0F2h1qs8.js";import{v as bv}from"./ui-B1iXjF4e.js";function mv(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var yd={},Rn={},Bt={},Zr={},Er={},Bn={},On={},il;function Lp(){if(il)return On;il=1,Object.defineProperty(On,"__esModule",{value:!0}),On.getSDKVersion=void 0;const e=()=>"9.1.0";return On.getSDKVersion=e,On}var xn={},al;function hv(){if(al)return xn;al=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.generateRequestId=void 0;const e=t=>t.toString(16).padStart(2,"0"),r=t=>{const o=new Uint8Array(t/2);return window.crypto.getRandomValues(o),Array.from(o,e).join("")},n=()=>typeof window<"u"?r(10):new Date().getTime().toString(36);return xn.generateRequestId=n,xn}var sl;function Dp(){if(sl)return Bn;sl=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.MessageFormatter=void 0;const e=Lp(),r=hv();class n{}return Bn.MessageFormatter=n,n.makeRequest=(t,o)=>({id:(0,r.generateRequestId)(),method:t,params:o,env:{sdkVersion:(0,e.getSDKVersion)()}}),n.makeResponse=(t,o,s)=>({id:t,success:!0,version:s,data:o}),n.makeErrorResponse=(t,o,s)=>({id:t,success:!1,error:o,version:s}),Bn}var jr={},cl;function Fr(){if(cl)return jr;cl=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.RestrictedMethods=jr.Methods=void 0;var e;(function(n){n.sendTransactions="sendTransactions",n.rpcCall="rpcCall",n.getChainInfo="getChainInfo",n.getSafeInfo="getSafeInfo",n.getTxBySafeTxHash="getTxBySafeTxHash",n.getSafeBalances="getSafeBalances",n.signMessage="signMessage",n.signTypedMessage="signTypedMessage",n.getEnvironmentInfo="getEnvironmentInfo",n.getOffChainSignature="getOffChainSignature",n.requestAddressBook="requestAddressBook",n.wallet_getPermissions="wallet_getPermissions",n.wallet_requestPermissions="wallet_requestPermissions"})(e||(jr.Methods=e={}));var r;return function(n){n.requestAddressBook="requestAddressBook"}(r||(jr.RestrictedMethods=r={})),jr}var ul;function yv(){return ul||(ul=1,function(e){var r=Er&&Er.__createBinding||(Object.create?function(s,i,a,c){c===void 0&&(c=a);var u=Object.getOwnPropertyDescriptor(i,a);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(s,c,u)}:function(s,i,a,c){c===void 0&&(c=a),s[c]=i[a]}),n=Er&&Er.__exportStar||function(s,i){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&r(i,s,a)};Object.defineProperty(e,"__esModule",{value:!0});const t=Dp();class o{constructor(i=null,a=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:u,source:f})=>{const l=!u,b=!this.isServer&&f===window.parent,v=typeof u.version<"u"&&parseInt(u.version.split(".")[0]),h=typeof v=="number"&&v>=1;let m=!0;return Array.isArray(this.allowedOrigins)&&(m=this.allowedOrigins.find(_=>_.test(c))!==void 0),!l&&b&&h&&m},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:u}=c,f=this.callbacks.get(u);f&&(f(c),this.callbacks.delete(u))},this.send=(c,u)=>{const f=t.MessageFormatter.makeRequest(c,u);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(f,"*"),new Promise((l,b)=>{this.callbacks.set(f.id,v=>{if(!v.success){b(new Error(v.error));return}l(v)})})},this.allowedOrigins=i,this.debugMode=a,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Fr(),e)}(Er)),Er}var Cn={},wr={},qn={},dl;function pv(){if(dl)return qn;dl=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.isObjectEIP712TypedData=void 0;const e=r=>typeof r=="object"&&r!=null&&"domain"in r&&"types"in r&&"message"in r;return qn.isObjectEIP712TypedData=e,qn}var pd={},fl;function gv(){return fl||(fl=1,Object.defineProperty(pd,"__esModule",{value:!0})),pd}var gd={},ll;function _v(){return ll||(ll=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var r=fv();Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return r.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return r.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return r.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return r.TransferDirection}})}(gd)),gd}var _d={},bl;function vv(){return bl||(bl=1,Object.defineProperty(_d,"__esModule",{value:!0}),Fr()),_d}var ml;function Kd(){return ml||(ml=1,function(e){var r=wr&&wr.__createBinding||(Object.create?function(t,o,s,i){i===void 0&&(i=s);var a=Object.getOwnPropertyDescriptor(o,s);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(t,i,a)}:function(t,o,s,i){i===void 0&&(i=s),t[i]=o[s]}),n=wr&&wr.__exportStar||function(t,o){for(var s in t)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,t,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(pv(),e),n(gv(),e),n(_v(),e),n(vv(),e)}(wr)),wr}var hl;function Ev(){if(hl)return Cn;hl=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.TXs=void 0;const e=Fr(),r=Kd();class n{constructor(o){this.communicator=o}async getBySafeTxHash(o){if(!o)throw new Error("Invalid safeTxHash");return(await this.communicator.send(e.Methods.getTxBySafeTxHash,{safeTxHash:o})).data}async signMessage(o){const s={message:o};return(await this.communicator.send(e.Methods.signMessage,s)).data}async signTypedMessage(o){if(!(0,r.isObjectEIP712TypedData)(o))throw new Error("Invalid typed data");return(await this.communicator.send(e.Methods.signTypedMessage,{typedData:o})).data}async send({txs:o,params:s}){if(!o||!o.length)throw new Error("No transactions were passed");const i={txs:o,params:s};return(await this.communicator.send(e.Methods.sendTransactions,i)).data}}return Cn.TXs=n,Cn}var Mn={},Hn={},yl;function Zd(){return yl||(yl=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.RPC_CALLS=void 0,Hn.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}),Hn}var pl;function jv(){if(pl)return Mn;pl=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.Eth=void 0;const e=Zd(),r=Fr(),n={defaultBlockParam:(o="latest")=>o,returnFullTxObjectParam:(o=!1)=>o,blockNumberToHex:o=>Number.isInteger(o)?`0x${o.toString(16)}`:o};class t{constructor(s){this.communicator=s,this.call=this.buildRequest({call:e.RPC_CALLS.eth_call,formatters:[null,n.defaultBlockParam]}),this.getBalance=this.buildRequest({call:e.RPC_CALLS.eth_getBalance,formatters:[null,n.defaultBlockParam]}),this.getCode=this.buildRequest({call:e.RPC_CALLS.eth_getCode,formatters:[null,n.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:e.RPC_CALLS.eth_getStorageAt,formatters:[null,n.blockNumberToHex,n.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:e.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByHash,formatters:[null,n.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByNumber,formatters:[n.blockNumberToHex,n.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionCount,formatters:[null,n.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:e.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=i=>this.buildRequest({call:e.RPC_CALLS.eth_estimateGas})([i]),this.setSafeSettings=this.buildRequest({call:e.RPC_CALLS.safe_setSettings})}buildRequest(s){const{call:i,formatters:a}=s;return async c=>{a&&Array.isArray(c)&&a.forEach((l,b)=>{l&&(c[b]=l(c[b]))});const u={call:i,params:c||[]};return(await this.communicator.send(r.Methods.rpcCall,u)).data}}}return Mn.Eth=t,Mn}var Ot={},vd={},Ed={},kn={},Fn={},gl;function wv(){return gl||(gl=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.version=void 0,Fn.version="1.2.3"),Fn}var _l;function yn(){if(_l)return kn;_l=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.BaseError=void 0;const e=wv();class r extends Error{constructor(t,o={}){var c;const s=o.cause instanceof r?o.cause.details:(c=o.cause)!=null&&c.message?o.cause.message:o.details,i=o.cause instanceof r&&o.cause.docsPath||o.docsPath,a=[t||"An error occurred.","",...o.metaMessages?[...o.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${e.version}`].join(`
2
2
  `);super(a),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),o.cause&&(this.cause=o.cause),this.details=s,this.docsPath=i,this.metaMessages=o.metaMessages,this.shortMessage=t}}return kn.BaseError=r,kn}var ui={},vl;function Pv(){if(vl)return ui;vl=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.narrow=e;function e(r){return r}return ui}var di={},fi={},li={},bi={},Tt={},El;function wu(){if(El)return Tt;El=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.isTupleRegex=Tt.integerRegex=Tt.bytesRegex=void 0,Tt.execTyped=e;function e(r,n){const t=r.exec(n);return t==null?void 0:t.groups}return Tt.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Tt.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Tt.isTupleRegex=/^\(.+?\).*?$/,Tt}var jl;function Gp(){if(jl)return bi;jl=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.formatAbiParameter=n;const e=wu(),r=/^tuple(?<array>(\[(\d*)\])*)$/;function n(t){let o=t.type;if(r.test(t.type)&&"components"in t){o="(";const s=t.components.length;for(let a=0;a<s;a++){const c=t.components[a];o+=n(c),a<s-1&&(o+=", ")}const i=(0,e.execTyped)(r,t.type);return o+=`)${(i==null?void 0:i.array)||""}`,n({...t,type:o})}return"indexed"in t&&t.indexed&&(o=`${o} indexed`),t.name?`${o} ${t.name}`:o}return bi}var wl;function Vp(){if(wl)return li;wl=1,Object.defineProperty(li,"__esModule",{value:!0}),li.formatAbiParameters=r;const e=Gp();function r(n){let t="";const o=n.length;for(let s=0;s<o;s++){const i=n[s];t+=(0,e.formatAbiParameter)(i),s!==o-1&&(t+=", ")}return t}return li}var Pl;function Wp(){if(Pl)return fi;Pl=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.formatAbiItem=r;const e=Vp();function r(n){var t;return n.type==="function"?`function ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability&&n.stateMutability!=="nonpayable"?` ${n.stateMutability}`:""}${(t=n.outputs)!=null&&t.length?` returns (${(0,e.formatAbiParameters)(n.outputs)})`:""}`:n.type==="event"?`event ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="error"?`error ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="constructor"?`constructor(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability==="payable"?" payable":""}`:n.type==="fallback"?`fallback() external${n.stateMutability==="payable"?" payable":""}`:"receive() external payable"}return fi}var Al;function Av(){if(Al)return di;Al=1,Object.defineProperty(di,"__esModule",{value:!0}),di.formatAbi=r;const e=Wp();function r(n){const t=[],o=n.length;for(let s=0;s<o;s++){const i=n[s],a=(0,e.formatAbiItem)(i);t.push(a)}return t}return di}var mi={},Se={},Tl;function pn(){if(Tl)return Se;Tl=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.functionModifiers=Se.eventModifiers=Se.modifiers=void 0,Se.isErrorSignature=n,Se.execErrorSignature=t,Se.isEventSignature=s,Se.execEventSignature=i,Se.isFunctionSignature=c,Se.execFunctionSignature=u,Se.isStructSignature=l,Se.execStructSignature=b,Se.isConstructorSignature=h,Se.execConstructorSignature=m,Se.isFallbackSignature=E,Se.execFallbackSignature=g,Se.isReceiveSignature=d;const e=wu(),r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(j){return r.test(j)}function t(j){return(0,e.execTyped)(r,j)}const o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(j){return o.test(j)}function i(j){return(0,e.execTyped)(o,j)}const a=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function c(j){return a.test(j)}function u(j){return(0,e.execTyped)(a,j)}const f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function l(j){return f.test(j)}function b(j){return(0,e.execTyped)(f,j)}const v=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function h(j){return v.test(j)}function m(j){return(0,e.execTyped)(v,j)}const _=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function E(j){return _.test(j)}function g(j){return(0,e.execTyped)(_,j)}const w=/^receive\(\) external payable$/;function d(j){return w.test(j)}return Se.modifiers=new Set(["memory","indexed","storage","calldata"]),Se.eventModifiers=new Set(["indexed"]),Se.functionModifiers=new Set(["calldata","memory","storage"]),Se}var hi={},xt={},Il;function Pu(){if(Il)return xt;Il=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.UnknownSolidityTypeError=xt.UnknownTypeError=xt.InvalidAbiItemError=void 0;const e=yn();class r extends e.BaseError{constructor({signature:s}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(s,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}xt.InvalidAbiItemError=r;class n extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}xt.UnknownTypeError=n;class t extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}return xt.UnknownSolidityTypeError=t,xt}var ke={},Sl;function Oo(){if(Sl)return ke;Sl=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.InvalidAbiTypeParameterError=ke.InvalidFunctionModifierError=ke.InvalidModifierError=ke.SolidityProtectedKeywordError=ke.InvalidParameterError=ke.InvalidAbiParametersError=ke.InvalidAbiParameterError=void 0;const e=yn();class r extends e.BaseError{constructor({param:u}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(u,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}ke.InvalidAbiParameterError=r;class n extends e.BaseError{constructor({params:u}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(u,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}ke.InvalidAbiParametersError=n;class t extends e.BaseError{constructor({param:u}){super("Invalid ABI parameter.",{details:u}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}ke.InvalidParameterError=t;class o extends e.BaseError{constructor({param:u,name:f}){super("Invalid ABI parameter.",{details:u,metaMessages:[`"${f}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}ke.SolidityProtectedKeywordError=o;class s extends e.BaseError{constructor({param:u,type:f,modifier:l}){super("Invalid ABI parameter.",{details:u,metaMessages:[`Modifier "${l}" not allowed${f?` in "${f}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}ke.InvalidModifierError=s;class i extends e.BaseError{constructor({param:u,type:f,modifier:l}){super("Invalid ABI parameter.",{details:u,metaMessages:[`Modifier "${l}" not allowed${f?` in "${f}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${l}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}ke.InvalidFunctionModifierError=i;class a extends e.BaseError{constructor({abiParameter:u}){super("Invalid ABI parameter.",{details:JSON.stringify(u,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}return ke.InvalidAbiTypeParameterError=a,ke}var Ct={},Rl;function Yd(){if(Rl)return Ct;Rl=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.InvalidStructSignatureError=Ct.UnknownSignatureError=Ct.InvalidSignatureError=void 0;const e=yn();class r extends e.BaseError{constructor({signature:s,type:i}){super(`Invalid ${i} signature.`,{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}Ct.InvalidSignatureError=r;class n extends e.BaseError{constructor({signature:s}){super("Unknown signature.",{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}Ct.UnknownSignatureError=n;class t extends e.BaseError{constructor({signature:s}){super("Invalid struct signature.",{details:s,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}return Ct.InvalidStructSignatureError=t,Ct}var Nn={},Bl;function Kp(){if(Bl)return Nn;Bl=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.CircularReferenceError=void 0;const e=yn();class r extends e.BaseError{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}return Nn.CircularReferenceError=r,Nn}var Ze={},zn={},Ol;function Zp(){if(Ol)return zn;Ol=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.InvalidParenthesisError=void 0;const e=yn();class r extends e.BaseError{constructor({current:t,depth:o}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${o>0?"opening":"closing"} parentheses.`],details:`Depth "${o}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}return zn.InvalidParenthesisError=r,zn}var Yr={},xl;function Tv(){if(xl)return Yr;xl=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.parameterCache=void 0,Yr.getParameterCacheKey=e;function e(r,n,t){let o="";if(t)for(const s of Object.entries(t)){if(!s)continue;let i="";for(const a of s[1])i+=`[${a.type}${a.name?`:${a.name}`:""}]`;o+=`(${s[0]}{${i}})`}return n?`${n}:${r}${o}`:`${r}${o}`}return Yr.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]),Yr}var Cl;function hn(){if(Cl)return Ze;Cl=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.parseSignature=a,Ze.parseFunctionSignature=c,Ze.parseEventSignature=u,Ze.parseErrorSignature=f,Ze.parseConstructorSignature=l,Ze.parseFallbackSignature=b,Ze.parseAbiParameter=_,Ze.splitParameters=E,Ze.isSolidityType=g,Ze.isSolidityKeyword=d,Ze.isValidDataLocation=j;const e=wu(),r=Pu(),n=Oo(),t=Yd(),o=Zp(),s=Tv(),i=pn();function a(p,y={}){if((0,i.isFunctionSignature)(p))return c(p,y);if((0,i.isEventSignature)(p))return u(p,y);if((0,i.isErrorSignature)(p))return f(p,y);if((0,i.isConstructorSignature)(p))return l(p,y);if((0,i.isFallbackSignature)(p))return b(p);if((0,i.isReceiveSignature)(p))return{type:"receive",stateMutability:"payable"};throw new t.UnknownSignatureError({signature:p})}function c(p,y={}){const A=(0,i.execFunctionSignature)(p);if(!A)throw new t.InvalidSignatureError({signature:p,type:"function"});const P=E(A.parameters),T=[],O=P.length;for(let S=0;S<O;S++)T.push(_(P[S],{modifiers:i.functionModifiers,structs:y,type:"function"}));const R=[];if(A.returns){const S=E(A.returns),x=S.length;for(let F=0;F<x;F++)R.push(_(S[F],{modifiers:i.functionModifiers,structs:y,type:"function"}))}return{name:A.name,type:"function",stateMutability:A.stateMutability??"nonpayable",inputs:T,outputs:R}}function u(p,y={}){const A=(0,i.execEventSignature)(p);if(!A)throw new t.InvalidSignatureError({signature:p,type:"event"});const P=E(A.parameters),T=[],O=P.length;for(let R=0;R<O;R++)T.push(_(P[R],{modifiers:i.eventModifiers,structs:y,type:"event"}));return{name:A.name,type:"event",inputs:T}}function f(p,y={}){const A=(0,i.execErrorSignature)(p);if(!A)throw new t.InvalidSignatureError({signature:p,type:"error"});const P=E(A.parameters),T=[],O=P.length;for(let R=0;R<O;R++)T.push(_(P[R],{structs:y,type:"error"}));return{name:A.name,type:"error",inputs:T}}function l(p,y={}){const A=(0,i.execConstructorSignature)(p);if(!A)throw new t.InvalidSignatureError({signature:p,type:"constructor"});const P=E(A.parameters),T=[],O=P.length;for(let R=0;R<O;R++)T.push(_(P[R],{structs:y,type:"constructor"}));return{type:"constructor",stateMutability:A.stateMutability??"nonpayable",inputs:T}}function b(p){const y=(0,i.execFallbackSignature)(p);if(!y)throw new t.InvalidSignatureError({signature:p,type:"fallback"});return{type:"fallback",stateMutability:y.stateMutability??"nonpayable"}}const v=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,m=/^u?int$/;function _(p,y){var I,k;const A=(0,s.getParameterCacheKey)(p,y==null?void 0:y.type,y==null?void 0:y.structs);if(s.parameterCache.has(A))return s.parameterCache.get(A);const P=e.isTupleRegex.test(p),T=(0,e.execTyped)(P?h:v,p);if(!T)throw new n.InvalidParameterError({param:p});if(T.name&&d(T.name))throw new n.SolidityProtectedKeywordError({param:p,name:T.name});const O=T.name?{name:T.name}:{},R=T.modifier==="indexed"?{indexed:!0}:{},S=(y==null?void 0:y.structs)??{};let x,F={};if(P){x="tuple";const B=E(T.type),q=[],M=B.length;for(let H=0;H<M;H++)q.push(_(B[H],{structs:S}));F={components:q}}else if(T.type in S)x="tuple",F={components:S[T.type]};else if(m.test(T.type))x=`${T.type}256`;else if(T.type==="address payable")x="address";else if(x=T.type,(y==null?void 0:y.type)!=="struct"&&!g(x))throw new r.UnknownSolidityTypeError({type:x});if(T.modifier){if(!((k=(I=y==null?void 0:y.modifiers)==null?void 0:I.has)!=null&&k.call(I,T.modifier)))throw new n.InvalidModifierError({param:p,type:y==null?void 0:y.type,modifier:T.modifier});if(i.functionModifiers.has(T.modifier)&&!j(x,!!T.array))throw new n.InvalidFunctionModifierError({param:p,type:y==null?void 0:y.type,modifier:T.modifier})}const C={type:`${x}${T.array??""}`,...O,...R,...F};return s.parameterCache.set(A,C),C}function E(p,y=[],A="",P=0){const T=p.trim().length;for(let O=0;O<T;O++){const R=p[O],S=p.slice(O+1);switch(R){case",":return P===0?E(S,[...y,A.trim()]):E(S,y,`${A}${R}`,P);case"(":return E(S,y,`${A}${R}`,P+1);case")":return E(S,y,`${A}${R}`,P-1);default:return E(S,y,`${A}${R}`,P)}}if(A==="")return y;if(P!==0)throw new o.InvalidParenthesisError({current:A,depth:P});return y.push(A.trim()),y}function g(p){return p==="address"||p==="bool"||p==="function"||p==="string"||e.bytesRegex.test(p)||e.integerRegex.test(p)}const w=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function d(p){return p==="address"||p==="bool"||p==="function"||p==="string"||p==="tuple"||e.bytesRegex.test(p)||e.integerRegex.test(p)||w.test(p)}function j(p,y){return y||p==="bytes"||p==="string"||p==="tuple"}return Ze}var ql;function Au(){if(ql)return hi;ql=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.parseStructs=a;const e=wu(),r=Pu(),n=Oo(),t=Yd(),o=Kp(),s=pn(),i=hn();function a(f){const l={},b=f.length;for(let _=0;_<b;_++){const E=f[_];if(!(0,s.isStructSignature)(E))continue;const g=(0,s.execStructSignature)(E);if(!g)throw new t.InvalidSignatureError({signature:E,type:"struct"});const w=g.properties.split(";"),d=[],j=w.length;for(let p=0;p<j;p++){const A=w[p].trim();if(!A)continue;const P=(0,i.parseAbiParameter)(A,{type:"struct"});d.push(P)}if(!d.length)throw new t.InvalidStructSignatureError({signature:E});l[g.name]=d}const v={},h=Object.entries(l),m=h.length;for(let _=0;_<m;_++){const[E,g]=h[_];v[E]=u(g,l)}return v}const c=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function u(f=[],l={},b=new Set){const v=[],h=f.length;for(let m=0;m<h;m++){const _=f[m];if(e.isTupleRegex.test(_.type))v.push(_);else{const g=(0,e.execTyped)(c,_.type);if(!(g!=null&&g.type))throw new n.InvalidAbiTypeParameterError({abiParameter:_});const{array:w,type:d}=g;if(d in l){if(b.has(d))throw new o.CircularReferenceError({type:d});v.push({..._,type:`tuple${w??""}`,components:u(l[d],l,new Set([...b,d]))})}else if((0,i.isSolidityType)(d))v.push(_);else throw new r.UnknownTypeError({type:d})}}return v}return hi}var Ml;function Iv(){if(Ml)return mi;Ml=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.parseAbi=t;const e=pn(),r=Au(),n=hn();function t(o){const s=(0,r.parseStructs)(o),i=[],a=o.length;for(let c=0;c<a;c++){const u=o[c];(0,e.isStructSignature)(u)||i.push((0,n.parseSignature)(u,s))}return i}return mi}var yi={},Hl;function Sv(){if(Hl)return yi;Hl=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.parseAbiItem=o;const e=Pu(),r=pn(),n=Au(),t=hn();function o(s){let i;if(typeof s=="string")i=(0,t.parseSignature)(s);else{const a=(0,n.parseStructs)(s),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(!(0,r.isStructSignature)(f)){i=(0,t.parseSignature)(f,a);break}}}if(!i)throw new e.InvalidAbiItemError({signature:s});return i}return yi}var pi={},kl;function Rv(){if(kl)return pi;kl=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.parseAbiParameter=o;const e=Oo(),r=pn(),n=Au(),t=hn();function o(s){let i;if(typeof s=="string")i=(0,t.parseAbiParameter)(s,{modifiers:r.modifiers});else{const a=(0,n.parseStructs)(s),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(!(0,r.isStructSignature)(f)){i=(0,t.parseAbiParameter)(f,{modifiers:r.modifiers,structs:a});break}}}if(!i)throw new e.InvalidAbiParameterError({param:s});return i}return pi}var gi={},Fl;function Bv(){if(Fl)return gi;Fl=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.parseAbiParameters=s;const e=Oo(),r=pn(),n=Au(),t=hn(),o=hn();function s(i){const a=[];if(typeof i=="string"){const c=(0,t.splitParameters)(i),u=c.length;for(let f=0;f<u;f++)a.push((0,o.parseAbiParameter)(c[f],{modifiers:r.modifiers}))}else{const c=(0,n.parseStructs)(i),u=i.length;for(let f=0;f<u;f++){const l=i[f];if((0,r.isStructSignature)(l))continue;const b=(0,t.splitParameters)(l),v=b.length;for(let h=0;h<v;h++)a.push((0,o.parseAbiParameter)(b[h],{modifiers:r.modifiers,structs:c}))}}if(a.length===0)throw new e.InvalidAbiParametersError({params:i});return a}return gi}var Nl;function nr(){return Nl||(Nl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CircularReferenceError=e.InvalidParenthesisError=e.UnknownSignatureError=e.InvalidSignatureError=e.InvalidStructSignatureError=e.InvalidAbiParameterError=e.InvalidAbiParametersError=e.InvalidParameterError=e.SolidityProtectedKeywordError=e.InvalidModifierError=e.InvalidFunctionModifierError=e.InvalidAbiTypeParameterError=e.UnknownSolidityTypeError=e.InvalidAbiItemError=e.UnknownTypeError=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.formatAbiParameters=e.formatAbiParameter=e.formatAbiItem=e.formatAbi=e.narrow=e.BaseError=void 0;var r=yn();Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return r.BaseError}});var n=Pv();Object.defineProperty(e,"narrow",{enumerable:!0,get:function(){return n.narrow}});var t=Av();Object.defineProperty(e,"formatAbi",{enumerable:!0,get:function(){return t.formatAbi}});var o=Wp();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return o.formatAbiItem}});var s=Gp();Object.defineProperty(e,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var i=Vp();Object.defineProperty(e,"formatAbiParameters",{enumerable:!0,get:function(){return i.formatAbiParameters}});var a=Iv();Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return a.parseAbi}});var c=Sv();Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return c.parseAbiItem}});var u=Rv();Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return u.parseAbiParameter}});var f=Bv();Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var l=Pu();Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return l.UnknownTypeError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return l.InvalidAbiItemError}}),Object.defineProperty(e,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return l.UnknownSolidityTypeError}});var b=Oo();Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return b.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return b.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return b.InvalidModifierError}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return b.SolidityProtectedKeywordError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return b.InvalidParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return b.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return b.InvalidAbiParameterError}});var v=Yd();Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return v.InvalidStructSignatureError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return v.InvalidSignatureError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return v.UnknownSignatureError}});var h=Zp();Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return h.InvalidParenthesisError}});var m=Kp();Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return m.CircularReferenceError}})}(Ed)),Ed}var Jr={},_i={},zl;function me(){if(zl)return _i;zl=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.getAction=e;function e(r,n,t){const o=r[n.name];if(typeof o=="function")return o;const s=r[t];return typeof s=="function"?s:i=>n(r,i)}return _i}var vi={},Ei={},ae={},Un={},Ul;function Gt(){if(Ul)return Un;Ul=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.formatAbiItem=r,Un.formatAbiParams=n;const e=Ae();function r(o,{includeName:s=!1}={}){if(o.type!=="function"&&o.type!=="event"&&o.type!=="error")throw new e.InvalidDefinitionTypeError(o.type);return`${o.name}(${n(o.inputs,{includeName:s})})`}function n(o,{includeName:s=!1}={}){return o?o.map(i=>t(i,{includeName:s})).join(s?", ":","):""}function t(o,{includeName:s}){return o.type.startsWith("tuple")?`(${n(o.components,{includeName:s})})${o.type.slice(5)}`:o.type+(s&&o.name?` ${o.name}`:"")}return Un}var ji={},wi={},Ll;function Ve(){if(Ll)return wi;Ll=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.isHex=e;function e(r,{strict:n=!0}={}){return!r||typeof r!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(r):r.startsWith("0x")}return wi}var Dl;function Je(){if(Dl)return ji;Dl=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.size=r;const e=Ve();function r(n){return(0,e.isHex)(n,{strict:!1})?Math.ceil((n.length-2)/2):n.length}return ji}var Xr={},Ln={},Gl;function Ov(){return Gl||(Gl=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.version=void 0,Ln.version="2.43.4"),Ln}var Vl;function ue(){if(Vl)return Xr;Vl=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.BaseError=void 0,Xr.setErrorConfig=n;const e=Ov();let r={getDocsUrl:({docsBaseUrl:s,docsPath:i="",docsSlug:a})=>i?`${s??"https://viem.sh"}${i}${a?`#${a}`:""}`:void 0,version:`viem@${e.version}`};function n(s){r=s}class t extends Error{constructor(i,a={}){var b;const c=(()=>{var v;return a.cause instanceof t?a.cause.details:(v=a.cause)!=null&&v.message?a.cause.message:a.details})(),u=a.cause instanceof t&&a.cause.docsPath||a.docsPath,f=(b=r.getDocsUrl)==null?void 0:b.call(r,{...a,docsPath:u}),l=[i||"An error occurred.","",...a.metaMessages?[...a.metaMessages,""]:[],...f?[`Docs: ${f}`]:[],...c?[`Details: ${c}`]:[],...r.version?[`Version: ${r.version}`]:[]].join(`
3
3
  `);super(l,a.cause?{cause:a.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=c,this.docsPath=u,this.metaMessages=a.metaMessages,this.name=a.name??this.name,this.shortMessage=i,this.version=e.version}walk(i){return o(this,i)}}Xr.BaseError=t;function o(s,i){return i!=null&&i(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause!==void 0?o(s.cause,i):i?null:s}return Xr}var Wl;function Ae(){if(Wl)return ae;Wl=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.UnsupportedPackedAbiType=ae.InvalidDefinitionTypeError=ae.InvalidArrayError=ae.InvalidAbiDecodingTypeError=ae.InvalidAbiEncodingTypeError=ae.DecodeLogTopicsMismatch=ae.DecodeLogDataMismatch=ae.BytesSizeMismatchError=ae.AbiItemAmbiguityError=ae.AbiFunctionSignatureNotFoundError=ae.AbiFunctionOutputsNotFoundError=ae.AbiFunctionNotFoundError=ae.AbiEventNotFoundError=ae.AbiEventSignatureNotFoundError=ae.AbiEventSignatureEmptyTopicsError=ae.AbiErrorSignatureNotFoundError=ae.AbiErrorNotFoundError=ae.AbiErrorInputsNotFoundError=ae.AbiEncodingLengthMismatchError=ae.AbiEncodingBytesSizeMismatchError=ae.AbiEncodingArrayLengthMismatchError=ae.AbiDecodingZeroDataError=ae.AbiDecodingDataSizeTooSmallError=ae.AbiDecodingDataSizeInvalidError=ae.AbiConstructorParamsNotFoundError=ae.AbiConstructorNotFoundError=void 0;const e=Gt(),r=Je(),n=ue();class t extends n.BaseError{constructor({docsPath:x}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
4
4
  `),{docsPath:x,name:"AbiConstructorNotFoundError"})}}ae.AbiConstructorNotFoundError=t;class o extends n.BaseError{constructor({docsPath:x}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
@@ -1,4 +1,4 @@
1
- import{w as k,d as W,r as I,i as M,h as v}from"./index-BOA2Acwo.js";import{n as y,c as O}from"./index-NUGI1C22.js";import"./index-CL2wOxBI.js";import{Q as N}from"./browser-B7lljV-y.js";const Q=.1,_=2.5,$=7;function x(t,a,d){return t===a?!1:(t-a<0?a-t:t-a)<=d+Q}function A(t,a){const d=Array.prototype.slice.call(N.create(t,{errorCorrectionLevel:a}).modules.data,0),l=Math.sqrt(d.length);return d.reduce((h,f,p)=>(p%l===0?h.push([f]):h[h.length-1].push(f))&&h,[])}const q={generate({uri:t,size:a,logoSize:d,padding:l=8,dotColor:h="var(--apkt-colors-black)"}){const p=[],u=A(t,"Q"),n=(a-2*l)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:e})=>{const s=(u.length-$)*n*i+l,r=(u.length-$)*n*e+l,c=.45;for(let o=0;o<E.length;o+=1){const m=n*($-o*2);p.push(k`
1
+ import{w as k,d as W,r as I,i as M,h as v}from"./index-BeKilfmc.js";import{n as y,c as O}from"./index-CqLqfgxg.js";import"./index-CFg-Y_dr.js";import{Q as N}from"./browser-BW09Ahtj.js";const Q=.1,_=2.5,$=7;function x(t,a,d){return t===a?!1:(t-a<0?a-t:t-a)<=d+Q}function A(t,a){const d=Array.prototype.slice.call(N.create(t,{errorCorrectionLevel:a}).modules.data,0),l=Math.sqrt(d.length);return d.reduce((h,f,p)=>(p%l===0?h.push([f]):h[h.length-1].push(f))&&h,[])}const q={generate({uri:t,size:a,logoSize:d,padding:l=8,dotColor:h="var(--apkt-colors-black)"}){const p=[],u=A(t,"Q"),n=(a-2*l)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:e})=>{const s=(u.length-$)*n*i+l,r=(u.length-$)*n*e+l,c=.45;for(let o=0;o<E.length;o+=1){const m=n*($-o*2);p.push(k`
2
2
  <rect
3
3
  fill=${o===2?"var(--apkt-colors-black)":"var(--apkt-colors-white)"}
4
4
  width=${o===0?m-10:m}
@@ -1,4 +1,4 @@
1
- import{d,r as m,e as c,i as f,v,h}from"./index-BOA2Acwo.js";import{n as r,c as y,U as b}from"./index-NUGI1C22.js";import{e as g,n as w}from"./ref-DwCPZLfc.js";const x=d`
1
+ import{d,r as m,e as c,i as f,v,h}from"./index-BeKilfmc.js";import{n as r,c as y,U as b}from"./index-CqLqfgxg.js";import{e as g,n as w}from"./ref-B8kvuC6E.js";const x=d`
2
2
  :host {
3
3
  position: relative;
4
4
  display: inline-block;
@@ -1,4 +1,4 @@
1
- var To=Object.defineProperty;var Oo=(e,r,t)=>r in e?To(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var Ce=(e,r,t)=>Oo(e,typeof r!="symbol"?r+"":r,t);import{a as Lo,j as Po}from"./index-Dduwu7Zt.js";import{c as Fr,g as Ho}from"./thirdweb-C-oikHfy.js";import{f as Mo,r as No}from"./ui-BP9j8-c3.js";import"./vendor-DLqL6ANx.js";var Be={exports:{}},be={exports:{}},Uo=be.exports,yt;function N(){return yt||(yt=1,function(e,r){(function(t,n){e.exports=n()})(Uo,function(){var t=t||function(n,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof Fr<"u"&&Fr.crypto&&(a=Fr.crypto),!a&&typeof Mo=="function")try{a=No()}catch{}var x=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function p(){}return function(g){var E;return p.prototype=g,E=new p,p.prototype=null,E}}(),d={},i=d.lib={},s=i.Base=function(){return{extend:function(p){var g=u(this);return p&&g.mixIn(p),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var g in p)p.hasOwnProperty(g)&&(this[g]=p[g]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=i.WordArray=s.extend({init:function(p,g){p=this.words=p||[],g!=o?this.sigBytes=g:this.sigBytes=p.length*4},toString:function(p){return(p||l).stringify(this)},concat:function(p){var g=this.words,E=p.words,B=this.sigBytes,A=p.sigBytes;if(this.clamp(),B%4)for(var _=0;_<A;_++){var D=E[_>>>2]>>>24-_%4*8&255;g[B+_>>>2]|=D<<24-(B+_)%4*8}else for(var T=0;T<A;T+=4)g[B+T>>>2]=E[T>>>2];return this.sigBytes+=A,this},clamp:function(){var p=this.words,g=this.sigBytes;p[g>>>2]&=4294967295<<32-g%4*8,p.length=n.ceil(g/4)},clone:function(){var p=s.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var g=[],E=0;E<p;E+=4)g.push(x());return new f.init(g,p)}}),c=d.enc={},l=c.Hex={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push((_>>>4).toString(16)),B.push((_&15).toString(16))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B+=2)E[B>>>3]|=parseInt(p.substr(B,2),16)<<24-B%8*4;return new f.init(E,g/2)}},v=c.Latin1={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push(String.fromCharCode(_))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B++)E[B>>>2]|=(p.charCodeAt(B)&255)<<24-B%4*8;return new f.init(E,g)}},h=c.Utf8={stringify:function(p){try{return decodeURIComponent(escape(v.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return v.parse(unescape(encodeURIComponent(p)))}},C=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=h.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var g,E=this._data,B=E.words,A=E.sigBytes,_=this.blockSize,D=_*4,T=A/D;p?T=n.ceil(T):T=n.max((T|0)-this._minBufferSize,0);var y=T*_,b=n.min(y*4,A);if(y){for(var S=0;S<y;S+=_)this._doProcessBlock(B,S);g=B.splice(0,y),E.sigBytes-=b}return new f.init(g,b)},clone:function(){var p=s.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});i.Hasher=C.extend({cfg:s.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(p){return function(g,E){return new p.init(E).finalize(g)}},_createHmacHelper:function(p){return function(g,E){return new m.HMAC.init(p,E).finalize(g)}}});var m=d.algo={};return d}(Math);return t})}(be)),be.exports}var De={exports:{}},qo=De.exports,At;function mr(){return At||(At=1,function(e,r){(function(t,n){e.exports=n(N())})(qo,function(t){return function(n){var o=t,a=o.lib,x=a.Base,u=a.WordArray,d=o.x64={};d.Word=x.extend({init:function(i,s){this.high=i,this.low=s}}),d.WordArray=x.extend({init:function(i,s){i=this.words=i||[],s!=n?this.sigBytes=s:this.sigBytes=i.length*8},toX32:function(){for(var i=this.words,s=i.length,f=[],c=0;c<s;c++){var l=i[c];f.push(l.high),f.push(l.low)}return u.create(f,this.sigBytes)},clone:function(){for(var i=x.clone.call(this),s=i.words=this.words.slice(0),f=s.length,c=0;c<f;c++)s[c]=s[c].clone();return i}})}(),t})}(De)),De.exports}var Fe={exports:{}},zo=Fe.exports,Bt;function Go(){return Bt||(Bt=1,function(e,r){(function(t,n){e.exports=n(N())})(zo,function(t){return function(){if(typeof ArrayBuffer=="function"){var n=t,o=n.lib,a=o.WordArray,x=a.init,u=a.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var i=d.byteLength,s=[],f=0;f<i;f++)s[f>>>2]|=d[f]<<24-f%4*8;x.call(this,s,i)}else x.apply(this,arguments)};u.prototype=a}}(),t.lib.WordArray})}(Fe)),Fe.exports}var Se={exports:{}},Wo=Se.exports,bt;function $o(){return bt||(bt=1,function(e,r){(function(t,n){e.exports=n(N())})(Wo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Utf16=x.Utf16BE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=i[c>>>2]>>>16-c%4*8&65535;f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=d.charCodeAt(f)<<16-f%2*16;return a.create(s,i*2)}},x.Utf16LE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=u(i[c>>>2]>>>16-c%4*8&65535);f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=u(d.charCodeAt(f)<<16-f%2*16);return a.create(s,i*2)}};function u(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Se)),Se.exports}var we={exports:{}},jo=we.exports,Dt;function I0(){return Dt||(Dt=1,function(e,r){(function(t,n){e.exports=n(N())})(jo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64={stringify:function(d){var i=d.words,s=d.sigBytes,f=this._map;d.clamp();for(var c=[],l=0;l<s;l+=3)for(var v=i[l>>>2]>>>24-l%4*8&255,h=i[l+1>>>2]>>>24-(l+1)%4*8&255,C=i[l+2>>>2]>>>24-(l+2)%4*8&255,m=v<<16|h<<8|C,p=0;p<4&&l+p*.75<s;p++)c.push(f.charAt(m>>>6*(3-p)&63));var g=f.charAt(64);if(g)for(;c.length%4;)c.push(g);return c.join("")},parse:function(d){var i=d.length,s=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var c=0;c<s.length;c++)f[s.charCodeAt(c)]=c}var l=s.charAt(64);if(l){var v=d.indexOf(l);v!==-1&&(i=v)}return u(d,i,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64})}(we)),we.exports}var ke={exports:{}},Vo=ke.exports,Ft;function Ko(){return Ft||(Ft=1,function(e,r){(function(t,n){e.exports=n(N())})(Vo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64url={stringify:function(d,i){i===void 0&&(i=!0);var s=d.words,f=d.sigBytes,c=i?this._safe_map:this._map;d.clamp();for(var l=[],v=0;v<f;v+=3)for(var h=s[v>>>2]>>>24-v%4*8&255,C=s[v+1>>>2]>>>24-(v+1)%4*8&255,m=s[v+2>>>2]>>>24-(v+2)%4*8&255,p=h<<16|C<<8|m,g=0;g<4&&v+g*.75<f;g++)l.push(c.charAt(p>>>6*(3-g)&63));var E=c.charAt(64);if(E)for(;l.length%4;)l.push(E);return l.join("")},parse:function(d,i){i===void 0&&(i=!0);var s=d.length,f=i?this._safe_map:this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var l=0;l<f.length;l++)c[f.charCodeAt(l)]=l}var v=f.charAt(64);if(v){var h=d.indexOf(v);h!==-1&&(s=h)}return u(d,s,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64url})}(ke)),ke.exports}var Re={exports:{}},Xo=Re.exports,St;function T0(){return St||(St=1,function(e,r){(function(t,n){e.exports=n(N())})(Xo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[];(function(){for(var h=0;h<64;h++)i[h]=n.abs(n.sin(h+1))*4294967296|0})();var s=d.MD5=u.extend({_doReset:function(){this._hash=new x.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,C){for(var m=0;m<16;m++){var p=C+m,g=h[p];h[p]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var E=this._hash.words,B=h[C+0],A=h[C+1],_=h[C+2],D=h[C+3],T=h[C+4],y=h[C+5],b=h[C+6],S=h[C+7],w=h[C+8],O=h[C+9],L=h[C+10],H=h[C+11],$=h[C+12],U=h[C+13],G=h[C+14],z=h[C+15],F=E[0],R=E[1],I=E[2],k=E[3];F=f(F,R,I,k,B,7,i[0]),k=f(k,F,R,I,A,12,i[1]),I=f(I,k,F,R,_,17,i[2]),R=f(R,I,k,F,D,22,i[3]),F=f(F,R,I,k,T,7,i[4]),k=f(k,F,R,I,y,12,i[5]),I=f(I,k,F,R,b,17,i[6]),R=f(R,I,k,F,S,22,i[7]),F=f(F,R,I,k,w,7,i[8]),k=f(k,F,R,I,O,12,i[9]),I=f(I,k,F,R,L,17,i[10]),R=f(R,I,k,F,H,22,i[11]),F=f(F,R,I,k,$,7,i[12]),k=f(k,F,R,I,U,12,i[13]),I=f(I,k,F,R,G,17,i[14]),R=f(R,I,k,F,z,22,i[15]),F=c(F,R,I,k,A,5,i[16]),k=c(k,F,R,I,b,9,i[17]),I=c(I,k,F,R,H,14,i[18]),R=c(R,I,k,F,B,20,i[19]),F=c(F,R,I,k,y,5,i[20]),k=c(k,F,R,I,L,9,i[21]),I=c(I,k,F,R,z,14,i[22]),R=c(R,I,k,F,T,20,i[23]),F=c(F,R,I,k,O,5,i[24]),k=c(k,F,R,I,G,9,i[25]),I=c(I,k,F,R,D,14,i[26]),R=c(R,I,k,F,w,20,i[27]),F=c(F,R,I,k,U,5,i[28]),k=c(k,F,R,I,_,9,i[29]),I=c(I,k,F,R,S,14,i[30]),R=c(R,I,k,F,$,20,i[31]),F=l(F,R,I,k,y,4,i[32]),k=l(k,F,R,I,w,11,i[33]),I=l(I,k,F,R,H,16,i[34]),R=l(R,I,k,F,G,23,i[35]),F=l(F,R,I,k,A,4,i[36]),k=l(k,F,R,I,T,11,i[37]),I=l(I,k,F,R,S,16,i[38]),R=l(R,I,k,F,L,23,i[39]),F=l(F,R,I,k,U,4,i[40]),k=l(k,F,R,I,B,11,i[41]),I=l(I,k,F,R,D,16,i[42]),R=l(R,I,k,F,b,23,i[43]),F=l(F,R,I,k,O,4,i[44]),k=l(k,F,R,I,$,11,i[45]),I=l(I,k,F,R,z,16,i[46]),R=l(R,I,k,F,_,23,i[47]),F=v(F,R,I,k,B,6,i[48]),k=v(k,F,R,I,S,10,i[49]),I=v(I,k,F,R,G,15,i[50]),R=v(R,I,k,F,y,21,i[51]),F=v(F,R,I,k,$,6,i[52]),k=v(k,F,R,I,D,10,i[53]),I=v(I,k,F,R,L,15,i[54]),R=v(R,I,k,F,A,21,i[55]),F=v(F,R,I,k,w,6,i[56]),k=v(k,F,R,I,z,10,i[57]),I=v(I,k,F,R,b,15,i[58]),R=v(R,I,k,F,U,21,i[59]),F=v(F,R,I,k,T,6,i[60]),k=v(k,F,R,I,H,10,i[61]),I=v(I,k,F,R,_,15,i[62]),R=v(R,I,k,F,O,21,i[63]),E[0]=E[0]+F|0,E[1]=E[1]+R|0,E[2]=E[2]+I|0,E[3]=E[3]+k|0},_doFinalize:function(){var h=this._data,C=h.words,m=this._nDataBytes*8,p=h.sigBytes*8;C[p>>>5]|=128<<24-p%32;var g=n.floor(m/4294967296),E=m;C[(p+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C[(p+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,h.sigBytes=(C.length+1)*4,this._process();for(var B=this._hash,A=B.words,_=0;_<4;_++){var D=A[_];A[_]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return B},clone:function(){var h=u.clone.call(this);return h._hash=this._hash.clone(),h}});function f(h,C,m,p,g,E,B){var A=h+(C&m|~C&p)+g+B;return(A<<E|A>>>32-E)+C}function c(h,C,m,p,g,E,B){var A=h+(C&p|m&~p)+g+B;return(A<<E|A>>>32-E)+C}function l(h,C,m,p,g,E,B){var A=h+(C^m^p)+g+B;return(A<<E|A>>>32-E)+C}function v(h,C,m,p,g,E,B){var A=h+(m^(C|~p))+g+B;return(A<<E|A>>>32-E)+C}o.MD5=u._createHelper(s),o.HmacMD5=u._createHmacHelper(s)}(Math),t.MD5})}(Re)),Re.exports}var Ie={exports:{}},Yo=Ie.exports,wt;function mn(){return wt||(wt=1,function(e,r){(function(t,n){e.exports=n(N())})(Yo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=o.Hasher,u=n.algo,d=[],i=u.SHA1=x.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(s,f){for(var c=this._hash.words,l=c[0],v=c[1],h=c[2],C=c[3],m=c[4],p=0;p<80;p++){if(p<16)d[p]=s[f+p]|0;else{var g=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=g<<1|g>>>31}var E=(l<<5|l>>>27)+m+d[p];p<20?E+=(v&h|~v&C)+1518500249:p<40?E+=(v^h^C)+1859775393:p<60?E+=(v&h|v&C|h&C)-1894007588:E+=(v^h^C)-899497514,m=C,C=h,h=v<<30|v>>>2,v=l,l=E}c[0]=c[0]+l|0,c[1]=c[1]+v|0,c[2]=c[2]+h|0,c[3]=c[3]+C|0,c[4]=c[4]+m|0},_doFinalize:function(){var s=this._data,f=s.words,c=this._nDataBytes*8,l=s.sigBytes*8;return f[l>>>5]|=128<<24-l%32,f[(l+64>>>9<<4)+14]=Math.floor(c/4294967296),f[(l+64>>>9<<4)+15]=c,s.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var s=x.clone.call(this);return s._hash=this._hash.clone(),s}});n.SHA1=x._createHelper(i),n.HmacSHA1=x._createHmacHelper(i)}(),t.SHA1})}(Ie)),Ie.exports}var Te={exports:{}},Zo=Te.exports,kt;function Wr(){return kt||(kt=1,function(e,r){(function(t,n){e.exports=n(N())})(Zo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[],s=[];(function(){function l(m){for(var p=n.sqrt(m),g=2;g<=p;g++)if(!(m%g))return!1;return!0}function v(m){return(m-(m|0))*4294967296|0}for(var h=2,C=0;C<64;)l(h)&&(C<8&&(i[C]=v(n.pow(h,1/2))),s[C]=v(n.pow(h,1/3)),C++),h++})();var f=[],c=d.SHA256=u.extend({_doReset:function(){this._hash=new x.init(i.slice(0))},_doProcessBlock:function(l,v){for(var h=this._hash.words,C=h[0],m=h[1],p=h[2],g=h[3],E=h[4],B=h[5],A=h[6],_=h[7],D=0;D<64;D++){if(D<16)f[D]=l[v+D]|0;else{var T=f[D-15],y=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,b=f[D-2],S=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;f[D]=y+f[D-7]+S+f[D-16]}var w=E&B^~E&A,O=C&m^C&p^m&p,L=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),H=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),$=_+H+w+s[D]+f[D],U=L+O;_=A,A=B,B=E,E=g+$|0,g=p,p=m,m=C,C=$+U|0}h[0]=h[0]+C|0,h[1]=h[1]+m|0,h[2]=h[2]+p|0,h[3]=h[3]+g|0,h[4]=h[4]+E|0,h[5]=h[5]+B|0,h[6]=h[6]+A|0,h[7]=h[7]+_|0},_doFinalize:function(){var l=this._data,v=l.words,h=this._nDataBytes*8,C=l.sigBytes*8;return v[C>>>5]|=128<<24-C%32,v[(C+64>>>9<<4)+14]=n.floor(h/4294967296),v[(C+64>>>9<<4)+15]=h,l.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var l=u.clone.call(this);return l._hash=this._hash.clone(),l}});o.SHA256=u._createHelper(c),o.HmacSHA256=u._createHmacHelper(c)}(Math),t.SHA256})}(Te)),Te.exports}var Oe={exports:{}},Qo=Oe.exports,Rt;function Jo(){return Rt||(Rt=1,function(e,r){(function(t,n,o){e.exports=n(N(),Wr())})(Qo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.algo,u=x.SHA256,d=x.SHA224=u.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var i=u._doFinalize.call(this);return i.sigBytes-=4,i}});n.SHA224=u._createHelper(d),n.HmacSHA224=u._createHmacHelper(d)}(),t.SHA224})}(Oe)),Oe.exports}var Le={exports:{}},ea=Le.exports,It;function yn(){return It||(It=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(ea,function(t){return function(){var n=t,o=n.lib,a=o.Hasher,x=n.x64,u=x.Word,d=x.WordArray,i=n.algo;function s(){return u.create.apply(u,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];(function(){for(var v=0;v<80;v++)c[v]=s()})();var l=i.SHA512=a.extend({_doReset:function(){this._hash=new d.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(v,h){for(var C=this._hash.words,m=C[0],p=C[1],g=C[2],E=C[3],B=C[4],A=C[5],_=C[6],D=C[7],T=m.high,y=m.low,b=p.high,S=p.low,w=g.high,O=g.low,L=E.high,H=E.low,$=B.high,U=B.low,G=A.high,z=A.low,F=_.high,R=_.low,I=D.high,k=D.low,j=T,W=y,r0=b,M=S,Y0=w,U0=O,br=L,Z0=H,i0=$,t0=U,pe=G,Q0=z,he=F,J0=R,Dr=I,ee=k,s0=0;s0<80;s0++){var a0,h0,ge=c[s0];if(s0<16)h0=ge.high=v[h+s0*2]|0,a0=ge.low=v[h+s0*2+1]|0;else{var ut=c[s0-15],q0=ut.high,re=ut.low,_o=(q0>>>1|re<<31)^(q0>>>8|re<<24)^q0>>>7,ft=(re>>>1|q0<<31)^(re>>>8|q0<<24)^(re>>>7|q0<<25),dt=c[s0-2],z0=dt.high,te=dt.low,mo=(z0>>>19|te<<13)^(z0<<3|te>>>29)^z0>>>6,lt=(te>>>19|z0<<13)^(te<<3|z0>>>29)^(te>>>6|z0<<26),vt=c[s0-7],yo=vt.high,Ao=vt.low,pt=c[s0-16],Bo=pt.high,ht=pt.low;a0=ft+Ao,h0=_o+yo+(a0>>>0<ft>>>0?1:0),a0=a0+lt,h0=h0+mo+(a0>>>0<lt>>>0?1:0),a0=a0+ht,h0=h0+Bo+(a0>>>0<ht>>>0?1:0),ge.high=h0,ge.low=a0}var bo=i0&pe^~i0&he,gt=t0&Q0^~t0&J0,Do=j&r0^j&Y0^r0&Y0,Fo=W&M^W&U0^M&U0,So=(j>>>28|W<<4)^(j<<30|W>>>2)^(j<<25|W>>>7),Ct=(W>>>28|j<<4)^(W<<30|j>>>2)^(W<<25|j>>>7),wo=(i0>>>14|t0<<18)^(i0>>>18|t0<<14)^(i0<<23|t0>>>9),ko=(t0>>>14|i0<<18)^(t0>>>18|i0<<14)^(t0<<23|i0>>>9),Et=f[s0],Ro=Et.high,_t=Et.low,n0=ee+ko,g0=Dr+wo+(n0>>>0<ee>>>0?1:0),n0=n0+gt,g0=g0+bo+(n0>>>0<gt>>>0?1:0),n0=n0+_t,g0=g0+Ro+(n0>>>0<_t>>>0?1:0),n0=n0+a0,g0=g0+h0+(n0>>>0<a0>>>0?1:0),mt=Ct+Fo,Io=So+Do+(mt>>>0<Ct>>>0?1:0);Dr=he,ee=J0,he=pe,J0=Q0,pe=i0,Q0=t0,t0=Z0+n0|0,i0=br+g0+(t0>>>0<Z0>>>0?1:0)|0,br=Y0,Z0=U0,Y0=r0,U0=M,r0=j,M=W,W=n0+mt|0,j=g0+Io+(W>>>0<n0>>>0?1:0)|0}y=m.low=y+W,m.high=T+j+(y>>>0<W>>>0?1:0),S=p.low=S+M,p.high=b+r0+(S>>>0<M>>>0?1:0),O=g.low=O+U0,g.high=w+Y0+(O>>>0<U0>>>0?1:0),H=E.low=H+Z0,E.high=L+br+(H>>>0<Z0>>>0?1:0),U=B.low=U+t0,B.high=$+i0+(U>>>0<t0>>>0?1:0),z=A.low=z+Q0,A.high=G+pe+(z>>>0<Q0>>>0?1:0),R=_.low=R+J0,_.high=F+he+(R>>>0<J0>>>0?1:0),k=D.low=k+ee,D.high=I+Dr+(k>>>0<ee>>>0?1:0)},_doFinalize:function(){var v=this._data,h=v.words,C=this._nDataBytes*8,m=v.sigBytes*8;h[m>>>5]|=128<<24-m%32,h[(m+128>>>10<<5)+30]=Math.floor(C/4294967296),h[(m+128>>>10<<5)+31]=C,v.sigBytes=h.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var v=a.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});n.SHA512=a._createHelper(l),n.HmacSHA512=a._createHmacHelper(l)}(),t.SHA512})}(Le)),Le.exports}var Pe={exports:{}},ra=Pe.exports,Tt;function ta(){return Tt||(Tt=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr(),yn())})(ra,function(t){return function(){var n=t,o=n.x64,a=o.Word,x=o.WordArray,u=n.algo,d=u.SHA512,i=u.SHA384=d.extend({_doReset:function(){this._hash=new x.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var s=d._doFinalize.call(this);return s.sigBytes-=16,s}});n.SHA384=d._createHelper(i),n.HmacSHA384=d._createHmacHelper(i)}(),t.SHA384})}(Pe)),Pe.exports}var He={exports:{}},na=He.exports,Ot;function oa(){return Ot||(Ot=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(na,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.x64,i=d.Word,s=o.algo,f=[],c=[],l=[];(function(){for(var C=1,m=0,p=0;p<24;p++){f[C+5*m]=(p+1)*(p+2)/2%64;var g=m%5,E=(2*C+3*m)%5;C=g,m=E}for(var C=0;C<5;C++)for(var m=0;m<5;m++)c[C+5*m]=m+(2*C+3*m)%5*5;for(var B=1,A=0;A<24;A++){for(var _=0,D=0,T=0;T<7;T++){if(B&1){var y=(1<<T)-1;y<32?D^=1<<y:_^=1<<y-32}B&128?B=B<<1^113:B<<=1}l[A]=i.create(_,D)}})();var v=[];(function(){for(var C=0;C<25;C++)v[C]=i.create()})();var h=s.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],m=0;m<25;m++)C[m]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,m){for(var p=this._state,g=this.blockSize/2,E=0;E<g;E++){var B=C[m+2*E],A=C[m+2*E+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var _=p[E];_.high^=A,_.low^=B}for(var D=0;D<24;D++){for(var T=0;T<5;T++){for(var y=0,b=0,S=0;S<5;S++){var _=p[T+5*S];y^=_.high,b^=_.low}var w=v[T];w.high=y,w.low=b}for(var T=0;T<5;T++)for(var O=v[(T+4)%5],L=v[(T+1)%5],H=L.high,$=L.low,y=O.high^(H<<1|$>>>31),b=O.low^($<<1|H>>>31),S=0;S<5;S++){var _=p[T+5*S];_.high^=y,_.low^=b}for(var U=1;U<25;U++){var y,b,_=p[U],G=_.high,z=_.low,F=f[U];F<32?(y=G<<F|z>>>32-F,b=z<<F|G>>>32-F):(y=z<<F-32|G>>>64-F,b=G<<F-32|z>>>64-F);var R=v[c[U]];R.high=y,R.low=b}var I=v[0],k=p[0];I.high=k.high,I.low=k.low;for(var T=0;T<5;T++)for(var S=0;S<5;S++){var U=T+5*S,_=p[U],j=v[U],W=v[(T+1)%5+5*S],r0=v[(T+2)%5+5*S];_.high=j.high^~W.high&r0.high,_.low=j.low^~W.low&r0.low}var _=p[0],M=l[D];_.high^=M.high,_.low^=M.low}},_doFinalize:function(){var C=this._data,m=C.words;this._nDataBytes*8;var p=C.sigBytes*8,g=this.blockSize*32;m[p>>>5]|=1<<24-p%32,m[(n.ceil((p+1)/g)*g>>>5)-1]|=128,C.sigBytes=m.length*4,this._process();for(var E=this._state,B=this.cfg.outputLength/8,A=B/8,_=[],D=0;D<A;D++){var T=E[D],y=T.high,b=T.low;y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,_.push(b),_.push(y)}return new x.init(_,B)},clone:function(){for(var C=u.clone.call(this),m=C._state=this._state.slice(0),p=0;p<25;p++)m[p]=m[p].clone();return C}});o.SHA3=u._createHelper(h),o.HmacSHA3=u._createHmacHelper(h)}(Math),t.SHA3})}(He)),He.exports}var Me={exports:{}},aa=Me.exports,Lt;function ia(){return Lt||(Lt=1,function(e,r){(function(t,n){e.exports=n(N())})(aa,function(t){/** @preserve
1
+ var To=Object.defineProperty;var Oo=(e,r,t)=>r in e?To(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var Ce=(e,r,t)=>Oo(e,typeof r!="symbol"?r+"":r,t);import{a as Lo,j as Po}from"./index-cehprRMC.js";import{c as Fr,g as Ho}from"./thirdweb-DDX0V8S6.js";import{f as Mo,r as No}from"./ui-B1iXjF4e.js";import"./vendor-CL28Sq39.js";var Be={exports:{}},be={exports:{}},Uo=be.exports,yt;function N(){return yt||(yt=1,function(e,r){(function(t,n){e.exports=n()})(Uo,function(){var t=t||function(n,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof Fr<"u"&&Fr.crypto&&(a=Fr.crypto),!a&&typeof Mo=="function")try{a=No()}catch{}var x=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function p(){}return function(g){var E;return p.prototype=g,E=new p,p.prototype=null,E}}(),d={},i=d.lib={},s=i.Base=function(){return{extend:function(p){var g=u(this);return p&&g.mixIn(p),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var g in p)p.hasOwnProperty(g)&&(this[g]=p[g]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=i.WordArray=s.extend({init:function(p,g){p=this.words=p||[],g!=o?this.sigBytes=g:this.sigBytes=p.length*4},toString:function(p){return(p||l).stringify(this)},concat:function(p){var g=this.words,E=p.words,B=this.sigBytes,A=p.sigBytes;if(this.clamp(),B%4)for(var _=0;_<A;_++){var D=E[_>>>2]>>>24-_%4*8&255;g[B+_>>>2]|=D<<24-(B+_)%4*8}else for(var T=0;T<A;T+=4)g[B+T>>>2]=E[T>>>2];return this.sigBytes+=A,this},clamp:function(){var p=this.words,g=this.sigBytes;p[g>>>2]&=4294967295<<32-g%4*8,p.length=n.ceil(g/4)},clone:function(){var p=s.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var g=[],E=0;E<p;E+=4)g.push(x());return new f.init(g,p)}}),c=d.enc={},l=c.Hex={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push((_>>>4).toString(16)),B.push((_&15).toString(16))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B+=2)E[B>>>3]|=parseInt(p.substr(B,2),16)<<24-B%8*4;return new f.init(E,g/2)}},v=c.Latin1={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push(String.fromCharCode(_))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B++)E[B>>>2]|=(p.charCodeAt(B)&255)<<24-B%4*8;return new f.init(E,g)}},h=c.Utf8={stringify:function(p){try{return decodeURIComponent(escape(v.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return v.parse(unescape(encodeURIComponent(p)))}},C=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=h.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var g,E=this._data,B=E.words,A=E.sigBytes,_=this.blockSize,D=_*4,T=A/D;p?T=n.ceil(T):T=n.max((T|0)-this._minBufferSize,0);var y=T*_,b=n.min(y*4,A);if(y){for(var S=0;S<y;S+=_)this._doProcessBlock(B,S);g=B.splice(0,y),E.sigBytes-=b}return new f.init(g,b)},clone:function(){var p=s.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});i.Hasher=C.extend({cfg:s.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(p){return function(g,E){return new p.init(E).finalize(g)}},_createHmacHelper:function(p){return function(g,E){return new m.HMAC.init(p,E).finalize(g)}}});var m=d.algo={};return d}(Math);return t})}(be)),be.exports}var De={exports:{}},qo=De.exports,At;function mr(){return At||(At=1,function(e,r){(function(t,n){e.exports=n(N())})(qo,function(t){return function(n){var o=t,a=o.lib,x=a.Base,u=a.WordArray,d=o.x64={};d.Word=x.extend({init:function(i,s){this.high=i,this.low=s}}),d.WordArray=x.extend({init:function(i,s){i=this.words=i||[],s!=n?this.sigBytes=s:this.sigBytes=i.length*8},toX32:function(){for(var i=this.words,s=i.length,f=[],c=0;c<s;c++){var l=i[c];f.push(l.high),f.push(l.low)}return u.create(f,this.sigBytes)},clone:function(){for(var i=x.clone.call(this),s=i.words=this.words.slice(0),f=s.length,c=0;c<f;c++)s[c]=s[c].clone();return i}})}(),t})}(De)),De.exports}var Fe={exports:{}},zo=Fe.exports,Bt;function Go(){return Bt||(Bt=1,function(e,r){(function(t,n){e.exports=n(N())})(zo,function(t){return function(){if(typeof ArrayBuffer=="function"){var n=t,o=n.lib,a=o.WordArray,x=a.init,u=a.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var i=d.byteLength,s=[],f=0;f<i;f++)s[f>>>2]|=d[f]<<24-f%4*8;x.call(this,s,i)}else x.apply(this,arguments)};u.prototype=a}}(),t.lib.WordArray})}(Fe)),Fe.exports}var Se={exports:{}},Wo=Se.exports,bt;function $o(){return bt||(bt=1,function(e,r){(function(t,n){e.exports=n(N())})(Wo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Utf16=x.Utf16BE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=i[c>>>2]>>>16-c%4*8&65535;f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=d.charCodeAt(f)<<16-f%2*16;return a.create(s,i*2)}},x.Utf16LE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=u(i[c>>>2]>>>16-c%4*8&65535);f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=u(d.charCodeAt(f)<<16-f%2*16);return a.create(s,i*2)}};function u(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Se)),Se.exports}var we={exports:{}},jo=we.exports,Dt;function I0(){return Dt||(Dt=1,function(e,r){(function(t,n){e.exports=n(N())})(jo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64={stringify:function(d){var i=d.words,s=d.sigBytes,f=this._map;d.clamp();for(var c=[],l=0;l<s;l+=3)for(var v=i[l>>>2]>>>24-l%4*8&255,h=i[l+1>>>2]>>>24-(l+1)%4*8&255,C=i[l+2>>>2]>>>24-(l+2)%4*8&255,m=v<<16|h<<8|C,p=0;p<4&&l+p*.75<s;p++)c.push(f.charAt(m>>>6*(3-p)&63));var g=f.charAt(64);if(g)for(;c.length%4;)c.push(g);return c.join("")},parse:function(d){var i=d.length,s=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var c=0;c<s.length;c++)f[s.charCodeAt(c)]=c}var l=s.charAt(64);if(l){var v=d.indexOf(l);v!==-1&&(i=v)}return u(d,i,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64})}(we)),we.exports}var ke={exports:{}},Vo=ke.exports,Ft;function Ko(){return Ft||(Ft=1,function(e,r){(function(t,n){e.exports=n(N())})(Vo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64url={stringify:function(d,i){i===void 0&&(i=!0);var s=d.words,f=d.sigBytes,c=i?this._safe_map:this._map;d.clamp();for(var l=[],v=0;v<f;v+=3)for(var h=s[v>>>2]>>>24-v%4*8&255,C=s[v+1>>>2]>>>24-(v+1)%4*8&255,m=s[v+2>>>2]>>>24-(v+2)%4*8&255,p=h<<16|C<<8|m,g=0;g<4&&v+g*.75<f;g++)l.push(c.charAt(p>>>6*(3-g)&63));var E=c.charAt(64);if(E)for(;l.length%4;)l.push(E);return l.join("")},parse:function(d,i){i===void 0&&(i=!0);var s=d.length,f=i?this._safe_map:this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var l=0;l<f.length;l++)c[f.charCodeAt(l)]=l}var v=f.charAt(64);if(v){var h=d.indexOf(v);h!==-1&&(s=h)}return u(d,s,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64url})}(ke)),ke.exports}var Re={exports:{}},Xo=Re.exports,St;function T0(){return St||(St=1,function(e,r){(function(t,n){e.exports=n(N())})(Xo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[];(function(){for(var h=0;h<64;h++)i[h]=n.abs(n.sin(h+1))*4294967296|0})();var s=d.MD5=u.extend({_doReset:function(){this._hash=new x.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,C){for(var m=0;m<16;m++){var p=C+m,g=h[p];h[p]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var E=this._hash.words,B=h[C+0],A=h[C+1],_=h[C+2],D=h[C+3],T=h[C+4],y=h[C+5],b=h[C+6],S=h[C+7],w=h[C+8],O=h[C+9],L=h[C+10],H=h[C+11],$=h[C+12],U=h[C+13],G=h[C+14],z=h[C+15],F=E[0],R=E[1],I=E[2],k=E[3];F=f(F,R,I,k,B,7,i[0]),k=f(k,F,R,I,A,12,i[1]),I=f(I,k,F,R,_,17,i[2]),R=f(R,I,k,F,D,22,i[3]),F=f(F,R,I,k,T,7,i[4]),k=f(k,F,R,I,y,12,i[5]),I=f(I,k,F,R,b,17,i[6]),R=f(R,I,k,F,S,22,i[7]),F=f(F,R,I,k,w,7,i[8]),k=f(k,F,R,I,O,12,i[9]),I=f(I,k,F,R,L,17,i[10]),R=f(R,I,k,F,H,22,i[11]),F=f(F,R,I,k,$,7,i[12]),k=f(k,F,R,I,U,12,i[13]),I=f(I,k,F,R,G,17,i[14]),R=f(R,I,k,F,z,22,i[15]),F=c(F,R,I,k,A,5,i[16]),k=c(k,F,R,I,b,9,i[17]),I=c(I,k,F,R,H,14,i[18]),R=c(R,I,k,F,B,20,i[19]),F=c(F,R,I,k,y,5,i[20]),k=c(k,F,R,I,L,9,i[21]),I=c(I,k,F,R,z,14,i[22]),R=c(R,I,k,F,T,20,i[23]),F=c(F,R,I,k,O,5,i[24]),k=c(k,F,R,I,G,9,i[25]),I=c(I,k,F,R,D,14,i[26]),R=c(R,I,k,F,w,20,i[27]),F=c(F,R,I,k,U,5,i[28]),k=c(k,F,R,I,_,9,i[29]),I=c(I,k,F,R,S,14,i[30]),R=c(R,I,k,F,$,20,i[31]),F=l(F,R,I,k,y,4,i[32]),k=l(k,F,R,I,w,11,i[33]),I=l(I,k,F,R,H,16,i[34]),R=l(R,I,k,F,G,23,i[35]),F=l(F,R,I,k,A,4,i[36]),k=l(k,F,R,I,T,11,i[37]),I=l(I,k,F,R,S,16,i[38]),R=l(R,I,k,F,L,23,i[39]),F=l(F,R,I,k,U,4,i[40]),k=l(k,F,R,I,B,11,i[41]),I=l(I,k,F,R,D,16,i[42]),R=l(R,I,k,F,b,23,i[43]),F=l(F,R,I,k,O,4,i[44]),k=l(k,F,R,I,$,11,i[45]),I=l(I,k,F,R,z,16,i[46]),R=l(R,I,k,F,_,23,i[47]),F=v(F,R,I,k,B,6,i[48]),k=v(k,F,R,I,S,10,i[49]),I=v(I,k,F,R,G,15,i[50]),R=v(R,I,k,F,y,21,i[51]),F=v(F,R,I,k,$,6,i[52]),k=v(k,F,R,I,D,10,i[53]),I=v(I,k,F,R,L,15,i[54]),R=v(R,I,k,F,A,21,i[55]),F=v(F,R,I,k,w,6,i[56]),k=v(k,F,R,I,z,10,i[57]),I=v(I,k,F,R,b,15,i[58]),R=v(R,I,k,F,U,21,i[59]),F=v(F,R,I,k,T,6,i[60]),k=v(k,F,R,I,H,10,i[61]),I=v(I,k,F,R,_,15,i[62]),R=v(R,I,k,F,O,21,i[63]),E[0]=E[0]+F|0,E[1]=E[1]+R|0,E[2]=E[2]+I|0,E[3]=E[3]+k|0},_doFinalize:function(){var h=this._data,C=h.words,m=this._nDataBytes*8,p=h.sigBytes*8;C[p>>>5]|=128<<24-p%32;var g=n.floor(m/4294967296),E=m;C[(p+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C[(p+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,h.sigBytes=(C.length+1)*4,this._process();for(var B=this._hash,A=B.words,_=0;_<4;_++){var D=A[_];A[_]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return B},clone:function(){var h=u.clone.call(this);return h._hash=this._hash.clone(),h}});function f(h,C,m,p,g,E,B){var A=h+(C&m|~C&p)+g+B;return(A<<E|A>>>32-E)+C}function c(h,C,m,p,g,E,B){var A=h+(C&p|m&~p)+g+B;return(A<<E|A>>>32-E)+C}function l(h,C,m,p,g,E,B){var A=h+(C^m^p)+g+B;return(A<<E|A>>>32-E)+C}function v(h,C,m,p,g,E,B){var A=h+(m^(C|~p))+g+B;return(A<<E|A>>>32-E)+C}o.MD5=u._createHelper(s),o.HmacMD5=u._createHmacHelper(s)}(Math),t.MD5})}(Re)),Re.exports}var Ie={exports:{}},Yo=Ie.exports,wt;function mn(){return wt||(wt=1,function(e,r){(function(t,n){e.exports=n(N())})(Yo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=o.Hasher,u=n.algo,d=[],i=u.SHA1=x.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(s,f){for(var c=this._hash.words,l=c[0],v=c[1],h=c[2],C=c[3],m=c[4],p=0;p<80;p++){if(p<16)d[p]=s[f+p]|0;else{var g=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=g<<1|g>>>31}var E=(l<<5|l>>>27)+m+d[p];p<20?E+=(v&h|~v&C)+1518500249:p<40?E+=(v^h^C)+1859775393:p<60?E+=(v&h|v&C|h&C)-1894007588:E+=(v^h^C)-899497514,m=C,C=h,h=v<<30|v>>>2,v=l,l=E}c[0]=c[0]+l|0,c[1]=c[1]+v|0,c[2]=c[2]+h|0,c[3]=c[3]+C|0,c[4]=c[4]+m|0},_doFinalize:function(){var s=this._data,f=s.words,c=this._nDataBytes*8,l=s.sigBytes*8;return f[l>>>5]|=128<<24-l%32,f[(l+64>>>9<<4)+14]=Math.floor(c/4294967296),f[(l+64>>>9<<4)+15]=c,s.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var s=x.clone.call(this);return s._hash=this._hash.clone(),s}});n.SHA1=x._createHelper(i),n.HmacSHA1=x._createHmacHelper(i)}(),t.SHA1})}(Ie)),Ie.exports}var Te={exports:{}},Zo=Te.exports,kt;function Wr(){return kt||(kt=1,function(e,r){(function(t,n){e.exports=n(N())})(Zo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[],s=[];(function(){function l(m){for(var p=n.sqrt(m),g=2;g<=p;g++)if(!(m%g))return!1;return!0}function v(m){return(m-(m|0))*4294967296|0}for(var h=2,C=0;C<64;)l(h)&&(C<8&&(i[C]=v(n.pow(h,1/2))),s[C]=v(n.pow(h,1/3)),C++),h++})();var f=[],c=d.SHA256=u.extend({_doReset:function(){this._hash=new x.init(i.slice(0))},_doProcessBlock:function(l,v){for(var h=this._hash.words,C=h[0],m=h[1],p=h[2],g=h[3],E=h[4],B=h[5],A=h[6],_=h[7],D=0;D<64;D++){if(D<16)f[D]=l[v+D]|0;else{var T=f[D-15],y=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,b=f[D-2],S=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;f[D]=y+f[D-7]+S+f[D-16]}var w=E&B^~E&A,O=C&m^C&p^m&p,L=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),H=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),$=_+H+w+s[D]+f[D],U=L+O;_=A,A=B,B=E,E=g+$|0,g=p,p=m,m=C,C=$+U|0}h[0]=h[0]+C|0,h[1]=h[1]+m|0,h[2]=h[2]+p|0,h[3]=h[3]+g|0,h[4]=h[4]+E|0,h[5]=h[5]+B|0,h[6]=h[6]+A|0,h[7]=h[7]+_|0},_doFinalize:function(){var l=this._data,v=l.words,h=this._nDataBytes*8,C=l.sigBytes*8;return v[C>>>5]|=128<<24-C%32,v[(C+64>>>9<<4)+14]=n.floor(h/4294967296),v[(C+64>>>9<<4)+15]=h,l.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var l=u.clone.call(this);return l._hash=this._hash.clone(),l}});o.SHA256=u._createHelper(c),o.HmacSHA256=u._createHmacHelper(c)}(Math),t.SHA256})}(Te)),Te.exports}var Oe={exports:{}},Qo=Oe.exports,Rt;function Jo(){return Rt||(Rt=1,function(e,r){(function(t,n,o){e.exports=n(N(),Wr())})(Qo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.algo,u=x.SHA256,d=x.SHA224=u.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var i=u._doFinalize.call(this);return i.sigBytes-=4,i}});n.SHA224=u._createHelper(d),n.HmacSHA224=u._createHmacHelper(d)}(),t.SHA224})}(Oe)),Oe.exports}var Le={exports:{}},ea=Le.exports,It;function yn(){return It||(It=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(ea,function(t){return function(){var n=t,o=n.lib,a=o.Hasher,x=n.x64,u=x.Word,d=x.WordArray,i=n.algo;function s(){return u.create.apply(u,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];(function(){for(var v=0;v<80;v++)c[v]=s()})();var l=i.SHA512=a.extend({_doReset:function(){this._hash=new d.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(v,h){for(var C=this._hash.words,m=C[0],p=C[1],g=C[2],E=C[3],B=C[4],A=C[5],_=C[6],D=C[7],T=m.high,y=m.low,b=p.high,S=p.low,w=g.high,O=g.low,L=E.high,H=E.low,$=B.high,U=B.low,G=A.high,z=A.low,F=_.high,R=_.low,I=D.high,k=D.low,j=T,W=y,r0=b,M=S,Y0=w,U0=O,br=L,Z0=H,i0=$,t0=U,pe=G,Q0=z,he=F,J0=R,Dr=I,ee=k,s0=0;s0<80;s0++){var a0,h0,ge=c[s0];if(s0<16)h0=ge.high=v[h+s0*2]|0,a0=ge.low=v[h+s0*2+1]|0;else{var ut=c[s0-15],q0=ut.high,re=ut.low,_o=(q0>>>1|re<<31)^(q0>>>8|re<<24)^q0>>>7,ft=(re>>>1|q0<<31)^(re>>>8|q0<<24)^(re>>>7|q0<<25),dt=c[s0-2],z0=dt.high,te=dt.low,mo=(z0>>>19|te<<13)^(z0<<3|te>>>29)^z0>>>6,lt=(te>>>19|z0<<13)^(te<<3|z0>>>29)^(te>>>6|z0<<26),vt=c[s0-7],yo=vt.high,Ao=vt.low,pt=c[s0-16],Bo=pt.high,ht=pt.low;a0=ft+Ao,h0=_o+yo+(a0>>>0<ft>>>0?1:0),a0=a0+lt,h0=h0+mo+(a0>>>0<lt>>>0?1:0),a0=a0+ht,h0=h0+Bo+(a0>>>0<ht>>>0?1:0),ge.high=h0,ge.low=a0}var bo=i0&pe^~i0&he,gt=t0&Q0^~t0&J0,Do=j&r0^j&Y0^r0&Y0,Fo=W&M^W&U0^M&U0,So=(j>>>28|W<<4)^(j<<30|W>>>2)^(j<<25|W>>>7),Ct=(W>>>28|j<<4)^(W<<30|j>>>2)^(W<<25|j>>>7),wo=(i0>>>14|t0<<18)^(i0>>>18|t0<<14)^(i0<<23|t0>>>9),ko=(t0>>>14|i0<<18)^(t0>>>18|i0<<14)^(t0<<23|i0>>>9),Et=f[s0],Ro=Et.high,_t=Et.low,n0=ee+ko,g0=Dr+wo+(n0>>>0<ee>>>0?1:0),n0=n0+gt,g0=g0+bo+(n0>>>0<gt>>>0?1:0),n0=n0+_t,g0=g0+Ro+(n0>>>0<_t>>>0?1:0),n0=n0+a0,g0=g0+h0+(n0>>>0<a0>>>0?1:0),mt=Ct+Fo,Io=So+Do+(mt>>>0<Ct>>>0?1:0);Dr=he,ee=J0,he=pe,J0=Q0,pe=i0,Q0=t0,t0=Z0+n0|0,i0=br+g0+(t0>>>0<Z0>>>0?1:0)|0,br=Y0,Z0=U0,Y0=r0,U0=M,r0=j,M=W,W=n0+mt|0,j=g0+Io+(W>>>0<n0>>>0?1:0)|0}y=m.low=y+W,m.high=T+j+(y>>>0<W>>>0?1:0),S=p.low=S+M,p.high=b+r0+(S>>>0<M>>>0?1:0),O=g.low=O+U0,g.high=w+Y0+(O>>>0<U0>>>0?1:0),H=E.low=H+Z0,E.high=L+br+(H>>>0<Z0>>>0?1:0),U=B.low=U+t0,B.high=$+i0+(U>>>0<t0>>>0?1:0),z=A.low=z+Q0,A.high=G+pe+(z>>>0<Q0>>>0?1:0),R=_.low=R+J0,_.high=F+he+(R>>>0<J0>>>0?1:0),k=D.low=k+ee,D.high=I+Dr+(k>>>0<ee>>>0?1:0)},_doFinalize:function(){var v=this._data,h=v.words,C=this._nDataBytes*8,m=v.sigBytes*8;h[m>>>5]|=128<<24-m%32,h[(m+128>>>10<<5)+30]=Math.floor(C/4294967296),h[(m+128>>>10<<5)+31]=C,v.sigBytes=h.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var v=a.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});n.SHA512=a._createHelper(l),n.HmacSHA512=a._createHmacHelper(l)}(),t.SHA512})}(Le)),Le.exports}var Pe={exports:{}},ra=Pe.exports,Tt;function ta(){return Tt||(Tt=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr(),yn())})(ra,function(t){return function(){var n=t,o=n.x64,a=o.Word,x=o.WordArray,u=n.algo,d=u.SHA512,i=u.SHA384=d.extend({_doReset:function(){this._hash=new x.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var s=d._doFinalize.call(this);return s.sigBytes-=16,s}});n.SHA384=d._createHelper(i),n.HmacSHA384=d._createHmacHelper(i)}(),t.SHA384})}(Pe)),Pe.exports}var He={exports:{}},na=He.exports,Ot;function oa(){return Ot||(Ot=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(na,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.x64,i=d.Word,s=o.algo,f=[],c=[],l=[];(function(){for(var C=1,m=0,p=0;p<24;p++){f[C+5*m]=(p+1)*(p+2)/2%64;var g=m%5,E=(2*C+3*m)%5;C=g,m=E}for(var C=0;C<5;C++)for(var m=0;m<5;m++)c[C+5*m]=m+(2*C+3*m)%5*5;for(var B=1,A=0;A<24;A++){for(var _=0,D=0,T=0;T<7;T++){if(B&1){var y=(1<<T)-1;y<32?D^=1<<y:_^=1<<y-32}B&128?B=B<<1^113:B<<=1}l[A]=i.create(_,D)}})();var v=[];(function(){for(var C=0;C<25;C++)v[C]=i.create()})();var h=s.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],m=0;m<25;m++)C[m]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,m){for(var p=this._state,g=this.blockSize/2,E=0;E<g;E++){var B=C[m+2*E],A=C[m+2*E+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var _=p[E];_.high^=A,_.low^=B}for(var D=0;D<24;D++){for(var T=0;T<5;T++){for(var y=0,b=0,S=0;S<5;S++){var _=p[T+5*S];y^=_.high,b^=_.low}var w=v[T];w.high=y,w.low=b}for(var T=0;T<5;T++)for(var O=v[(T+4)%5],L=v[(T+1)%5],H=L.high,$=L.low,y=O.high^(H<<1|$>>>31),b=O.low^($<<1|H>>>31),S=0;S<5;S++){var _=p[T+5*S];_.high^=y,_.low^=b}for(var U=1;U<25;U++){var y,b,_=p[U],G=_.high,z=_.low,F=f[U];F<32?(y=G<<F|z>>>32-F,b=z<<F|G>>>32-F):(y=z<<F-32|G>>>64-F,b=G<<F-32|z>>>64-F);var R=v[c[U]];R.high=y,R.low=b}var I=v[0],k=p[0];I.high=k.high,I.low=k.low;for(var T=0;T<5;T++)for(var S=0;S<5;S++){var U=T+5*S,_=p[U],j=v[U],W=v[(T+1)%5+5*S],r0=v[(T+2)%5+5*S];_.high=j.high^~W.high&r0.high,_.low=j.low^~W.low&r0.low}var _=p[0],M=l[D];_.high^=M.high,_.low^=M.low}},_doFinalize:function(){var C=this._data,m=C.words;this._nDataBytes*8;var p=C.sigBytes*8,g=this.blockSize*32;m[p>>>5]|=1<<24-p%32,m[(n.ceil((p+1)/g)*g>>>5)-1]|=128,C.sigBytes=m.length*4,this._process();for(var E=this._state,B=this.cfg.outputLength/8,A=B/8,_=[],D=0;D<A;D++){var T=E[D],y=T.high,b=T.low;y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,_.push(b),_.push(y)}return new x.init(_,B)},clone:function(){for(var C=u.clone.call(this),m=C._state=this._state.slice(0),p=0;p<25;p++)m[p]=m[p].clone();return C}});o.SHA3=u._createHelper(h),o.HmacSHA3=u._createHmacHelper(h)}(Math),t.SHA3})}(He)),He.exports}var Me={exports:{}},aa=Me.exports,Lt;function ia(){return Lt||(Lt=1,function(e,r){(function(t,n){e.exports=n(N())})(aa,function(t){/** @preserve
2
2
  (c) 2012 by Cédric Mesnil. All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -1,4 +1,4 @@
1
- import{d as U,r as Ie,e as ve,i as _,h as l,v as Se,j as ke}from"./index-BOA2Acwo.js";import{n as b,c as C,r as h,U as _e,b as Ne}from"./index-NUGI1C22.js";import{o as f}from"./if-defined-CgJKeOSm.js";import"./index-Cmt2q8GY.js";import"./index-Bx8-Pet3.js";import"./index-CL2wOxBI.js";import"./index-CvD3JQ7D.js";import"./index-bVY1fhDD.js";import"./index-CYx0fRHD.js";import"./index-IDG-Cerj.js";import{P as Ce,d as v,K as $e,L as y,a as O,Q as Re,U as N,O as ce,N as A,V as me,C as m,p as Oe,j as T,E as M,S as R,h as Ue,M as G,s as Le,c as qe,i as P,R as z}from"./W3MFrameProviderSingleton-BULA1Yc8.js";import{C as I}from"./NetworkUtil-CtxnRAP0.js";import"./index-DJ2KFqR6.js";import{M as ge}from"./MathUtil-BGCe3rZ3.js";const De=U`
1
+ import{d as U,r as Ie,e as ve,i as _,h as l,v as Se,j as ke}from"./index-BeKilfmc.js";import{n as b,c as C,r as h,U as _e,b as Ne}from"./index-CqLqfgxg.js";import{o as f}from"./if-defined-BGggoims.js";import"./index-CQ7jrIAl.js";import"./index-Chl8Tz4p.js";import"./index-CFg-Y_dr.js";import"./index-BsfJpmCD.js";import"./index-C-53rZCB.js";import"./index-D9enbP8h.js";import"./index-B2jrcajy.js";import{P as Ce,d as v,K as $e,L as y,a as O,Q as Re,U as N,O as ce,N as A,V as me,C as m,p as Oe,j as T,E as M,S as R,h as Ue,M as G,s as Le,c as qe,i as P,R as z}from"./W3MFrameProviderSingleton-DLC3PpMJ.js";import{C as I}from"./NetworkUtil-CiIGtM8g.js";import"./index-CSCZ5Zrc.js";import{M as ge}from"./MathUtil-BGCe3rZ3.js";const De=U`
2
2
  :host {
3
3
  position: relative;
4
4
  }