1import{a as eo,b as Pa,c as Bh,d as Ph,e as qh,f as Uh,i as qa,j as Dh,k as Ua,l as Da,m as Fh,n as Hh,o as zh,p as jh}from"/build/_shared/chunk-Z7UMJFIQ.js";import"/build/_shared/chunk-PCMCRBMQ.js";import{c as Aa,d as Ia,e as Oa,g as Na,k as La,m as Ba}from"/build/_shared/chunk-LRQC6APX.js";import{k as Ta}from"/build/_shared/chunk-62DI36WM.js";import{a as S,b as I,c as st,d as F,e as re,f as Xt,h as Lh,i as x,j as g}from"/build/_shared/chunk-S7HRJGCM.js";var Ha=I(to=>{"use strict";g();Object.defineProperty(to,"__esModule",{value:!0});var Fa=(Da(),Xt(Ua)),Wh=Pa();function Gh(){let{alchemyId:t=Wh.defaultAlchemyId,pollingInterval:e,priority:r,stallTimeout:n,weight:i}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(c){return c.rpcUrls.alchemy?{chain:{...c,rpcUrls:{...c.rpcUrls,default:"".concat(c.rpcUrls.alchemy,"/").concat(t)}},provider:()=>{let u=new Fa.providers.AlchemyProvider(c.id,t);return e&&(u.pollingInterval=e),Object.assign(u,{priority:r,stallTimeout:n,weight:i})},webSocketProvider:()=>new Fa.providers.AlchemyWebSocketProvider(c.id,t)}:null}}to.alchemyProvider=Gh});var ja=I((Sm,za)=>{"use strict";g();za.exports=Ha()});var Wa=I(ro=>{"use strict";g();Object.defineProperty(ro,"__esModule",{value:!0});var Jh=ja();Object.defineProperty(ro,"alchemyProvider",{enumerable:!0,get:function(){return Jh.alchemyProvider}})});var Ja=I((Tm,Ga)=>{"use strict";g();Ga.exports=Wa()});var Va=I(no=>{"use strict";g();Object.defineProperty(no,"__esModule",{value:!0});var Vh=zh();Object.defineProperty(no,"InjectedConnector",{enumerable:!0,get:function(){return Vh.InjectedConnector}})});var $a=I((Im,Ya)=>{"use strict";g();Ya.exports=Va()});function ct(){}function J(){J.init.call(this)}function Ka(t){return t._maxListeners===void 0?J.defaultMaxListeners:t._maxListeners}function Yh(t,e,r){if(e)t.call(r);else for(var n=t.length,i=er(t,n),c=0;c<n;++c)i[c].call(r)}function $h(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,c=er(t,i),u=0;u<i;++u)c[u].call(r,n)}function Kh(t,e,r,n,i){if(e)t.call(r,n,i);else for(var c=t.length,u=er(t,c),m=0;m<c;++m)u[m].call(r,n,i)}function Qh(t,e,r,n,i,c){if(e)t.call(r,n,i,c);else for(var u=t.length,m=er(t,u),b=0;b<u;++b)m[b].call(r,n,i,c)}function Zh(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,c=er(t,i),u=0;u<i;++u)c[u].apply(r,n)}function Qa(t,e,r,n){var i,c,u;if(typeof r!="function")throw new TypeError('"listener" argument must be a function');if(c=t._events,c?(c.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),c=t._events),u=c[e]):(c=t._events=new ct,t._eventsCount=0),!u)u=c[e]=r,++t._eventsCount;else if(typeof u=="function"?u=c[e]=n?[r,u]:[u,r]:n?u.unshift(r):u.push(r),!u.warned&&(i=Ka(t),i&&i>0&&u.length>i)){u.warned=!0;var m=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");m.name="MaxListenersExceededWarning",m.emitter=t,m.type=e,m.count=u.length,Xh(m)}return t}function Xh(t){typeof console.warn=="function"?console.warn(t):console.log(t)}function Za(t,e,r){var n=!1;function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}function Xa(t){var e=this._events;if(e){var r=e[t];if(typeof r=="function")return 1;if(r)return r.length}return 0}function ed(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}function er(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}function td(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}var oo,io=S(()=>{"use strict";g();ct.prototype=Object.create(null);J.EventEmitter=J;J.usingDomains=!1;J.prototype.domain=void 0;J.prototype._events=void 0;J.prototype._maxListeners=void 0;J.defaultMaxListeners=10;J.init=function(){this.domain=null,J.usingDomains&&oo.active&&!(this instanceof oo.Domain)&&(this.domain=oo.active),(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new ct,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};J.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this};J.prototype.getMaxListeners=function(){return Ka(this)};J.prototype.emit=function(e){var r,n,i,c,u,m,b,E=!1,_=e==="error";if(m=this._events,m)_=_&&m.error==null;else if(!_)return!1;if(b=this.domain,_){if(r=arguments[1],b)r||(r=new Error('Uncaught, unspecified "error" event')),r.domainEmitter=this,r.domain=b,r.domainThrown=!1,b.emit("error",r);else{if(r instanceof Error)throw r;var M=new Error('Uncaught, unspecified "error" event. ('+r+")");
1throw M.context=r,M}return!1}if(n=m[e],!n)return!1;var k=typeof n=="function";switch(i=arguments.length,i){case 1:Yh(n,k,this);break;case 2:$h(n,k,this,arguments[1]);break;case 3:Kh(n,k,this,arguments[1],arguments[2]);break;case 4:Qh(n,k,this,arguments[1],arguments[2],arguments[3]);break;default:for(c=new Array(i-1),u=1;u<i;u++)c[u-1]=arguments[u];Zh(n,k,this,c)}return E&&b.exit(),!0};J.prototype.addListener=function(e,r){return Qa(this,e,r,!1)};J.prototype.on=J.prototype.addListener;J.prototype.prependListener=function(e,r){return Qa(this,e,r,!0)};J.prototype.once=function(e,r){if(typeof r!="function")throw new TypeError('"listener" argument must be a function');return this.on(e,Za(this,e,r)),this};J.prototype.prependOnceListener=function(e,r){if(typeof r!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Za(this,e,r)),this};J.prototype.removeListener=function(e,r){var n,i,c,u,m;if(typeof r!="function")throw new TypeError('"listener" argument must be a function');if(i=this._events,!i)return this;if(n=i[e],!n)return this;if(n===r||n.listener&&n.listener===r)--this._eventsCount===0?this._events=new ct:(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(c=-1,u=n.length;u-- >0;)if(n[u]===r||n[u].listener&&n[u].listener===r){m=n[u].listener,c=u;break}if(c<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount===0)return this._events=new ct,this;delete i[e]}else ed(n,c);i.removeListener&&this.emit("removeListener",e,m||r)}return this};J.prototype.removeAllListeners=function(e){var r,n;if(n=this._events,!n)return this;if(!n.removeListener)return arguments.length===0?(this._events=new ct,this._eventsCount=0):n[e]&&(--this._eventsCount===0?this._events=new ct:delete n[e]),this;if(arguments.length===0){for(var i=Object.keys(n),c=0,u;c<i.length;++c)u=i[c],u!=="removeListener"&&this.removeAllListeners(u);return this.removeAllListeners("removeListener"),this._events=new ct,this._eventsCount=0,this}if(r=n[e],typeof r=="function")this.removeListener(e,r);else if(r)do this.removeListener(e,r[r.length-1]);while(r[0]);return this};J.prototype.listeners=function(e){var r,n,i=this._events;return i?(r=i[e],r?typeof r=="function"?n=[r.listener||r]:n=td(r):n=[]):n=[],n};J.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Xa.call(t,e)};J.prototype.listenerCount=Xa;J.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}});var es,ts,rs,ns,Sr,tr,ao,Cr,lt,rr,Tr=S(()=>{g();es="PARSE_ERROR",ts="INVALID_REQUEST",rs="METHOD_NOT_FOUND",ns="INVALID_PARAMS",Sr="INTERNAL_ERROR",tr="SERVER_ERROR",ao=[-32700,-32600,-32601,-32602,-32603],Cr=[-32e3,-32099],lt={[es]:{code:-32700,message:"Parse error"},[ts]:{code:-32600,message:"Invalid Request"},[rs]:{code:-32601,message:"Method not found"},[ns]:{code:-32602,message:"Invalid params"},[Sr]:{code:-32603,message:"Internal error"},[tr]:{code:-32e3,message:"Server error"}},rr=tr});function rd(t){return t<=Cr[0]&&t>=Cr[1]}function Ar(t){return ao.includes(t)}function os(t){return typeof t=="number"}function Ir(t){return Object.keys(lt).includes(t)?lt[t]:lt[rr]}function Or(t){let e=Object.values(lt).find(r=>r.code===t);return e||lt[rr]}function nd(t){if(typeof t.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof t.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!os(t.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${t.error.code}`};if(Ar(t.error.code)){let e=Or(t.error.code);if(e.message!==lt[rr].message&&t.error.message===e.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${t.error.code}`}}return{valid:!0}}function so(t,e,r){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${e}`):t}var co=S(()=>{g();Tr()});var as=I(ut=>{"use strict";g();Object.defineProperty(ut,"__esModule",{value:!0});ut.isBrowserCryptoAvailable=ut.getSubtleCrypto=ut.getBrowerCrypto=void 0;function lo(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}ut.getBrowerCrypto=lo;function is(){let t=lo();return t.subtle||t.webkitSubtle}ut.getSubtleCrypto=is;function od(){return!!lo()&&!!is()}ut.isBrowserCryptoAvailable=od});var ls=I(ft=>{"use strict";g();
1Object.defineProperty(ft,"__esModule",{value:!0});ft.isBrowser=ft.isNode=ft.isReactNative=void 0;function ss(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}ft.isReactNative=ss;function cs(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}ft.isNode=cs;function id(){return!ss()&&!cs()}ft.isBrowser=id});var Lt=I(ht=>{"use strict";g();var ad=ht&&ht.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),us=ht&&ht.__exportStar||function(t,e){for(var r in t)r!=="default"&&!e.hasOwnProperty(r)&&ad(e,t,r)};Object.defineProperty(ht,"__esModule",{value:!0});us(as(),ht);us(ls(),ht)});var De={};st(De,{isNodeJs:()=>hs});var fs,hs,ds=S(()=>{g();fs=re(Lt());F(De,re(Lt()));hs=fs.isNode});function Nr(){let t=Date.now()*Math.pow(10,3),e=Math.floor(Math.random()*Math.pow(10,3));return t+e}function uo(t,e,r){return{id:r||Nr(),jsonrpc:"2.0",method:t,params:e}}function sd(t,e){return{id:t,jsonrpc:"2.0",result:e}}function Bt(t,e,r){return{id:t,jsonrpc:"2.0",error:ps(e,r)}}function ps(t,e){return typeof t>"u"?Ir(Sr):(typeof t=="string"&&(t=Object.assign(Object.assign({},Ir(tr)),{message:t})),typeof e<"u"&&(t.data=e),Ar(t.code)&&(t=Or(t.code)),t)}var gs=S(()=>{g();co();Tr()});function cd(t){return t.includes("*")?Br(t):!/\W/g.test(t)}function Lr(t){return t==="*"}function Br(t){return Lr(t)?!0:!(!t.includes("*")||t.split("*").length!==2||t.split("*").filter(e=>e.trim()==="").length!==1)}function ld(t){return!Lr(t)&&Br(t)&&!t.split("*")[0].trim()}function ud(t){return!Lr(t)&&Br(t)&&!t.split("*")[1].trim()}var ms=S(()=>{g()});var vs=S(()=>{g()});var nr,fo=S(()=>{g();nr=class{}});var Pr,ho,qr,ws=S(()=>{g();fo();Pr=class extends nr{constructor(e){super()}},ho=class extends nr{constructor(){super()}},qr=class extends ho{constructor(e){super()}}});var _s=S(()=>{g()});var po=S(()=>{g();vs();fo();ws();_s()});var ys=S(()=>{g();po()});function dd(t){let e=t.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function bs(t,e){let r=dd(t);return typeof r>"u"?!1:new RegExp(e).test(r)}function Ur(t){return bs(t,fd)}function pd(t){return bs(t,hd)}function gd(t){return new RegExp("wss?://localhost(:d{2,5})?").test(t)}var fd,hd,xs=S(()=>{g();fd="^https?:",hd="^wss?:"});function go(t){return typeof t=="object"&&"id"in t&&"jsonrpc"in t&&t.jsonrpc==="2.0"}function md(t){return go(t)&&"method"in t}function mo(t){return go(t)&&(Es(t)||Dr(t))}function Es(t){return"result"in t}function Dr(t){return"error"in t}function vd(t){return"error"in t&&t.valid===!1}var Ms=S(()=>{g()});var Ge={};st(Ge,{DEFAULT_ERROR:()=>rr,IBaseJsonRpcProvider:()=>ho,IEvents:()=>nr,IJsonRpcConnection:()=>Pr,IJsonRpcProvider:()=>qr,INTERNAL_ERROR:()=>Sr,INVALID_PARAMS:()=>ns,INVALID_REQUEST:()=>ts,METHOD_NOT_FOUND:()=>rs,PARSE_ERROR:()=>es,RESERVED_ERROR_CODES:()=>ao,SERVER_ERROR:()=>tr,SERVER_ERROR_CODE_RANGE:()=>Cr,STANDARD_ERROR_MAP:()=>lt,formatErrorMessage:()=>ps,formatJsonRpcError:()=>Bt,formatJsonRpcRequest:()=>uo,formatJsonRpcResult:()=>sd,getError:()=>Ir,getErrorByCode:()=>Or,isHttpUrl:()=>Ur,isJsonRpcError:()=>Dr,isJsonRpcPayload:()=>go,isJsonRpcRequest:()=>md,isJsonRpcResponse:()=>mo,isJsonRpcResult:()=>Es,isJsonRpcValidationInvalid:()=>vd,isLocalhostUrl:()=>gd,isNodeJs:()=>hs,isReservedErrorCode:()=>Ar,isServerErrorCode:()=>rd,isValidDefaultRoute:()=>Lr,isValidErrorCode:()=>os,isValidLeadingWildcardRoute:()=>ld,isValidRoute:()=>cd,isValidTrailingWildcardRoute:()=>ud,isValidWildcardRoute:()=>Br,isWsUrl:()=>pd,parseConnectionError:()=>so,payloadId:()=>Nr,validateJsonRpcError:()=>nd});var or=S(()=>{g();Tr();co();ds();F(Ge,De);gs();ms();ys();xs();Ms()});var Fr,vo=S(()=>{g();io();or();Fr=class extends qr{constructor(e){super(e);this.events=new J,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async request(e,r){return this.requestStrict(uo(e.method,e.params||[]),r)}async requestStrict(e,r){return new Promise(async(n,i)=>{if(!this.connection.connected)try{await this.open()}catch(c){i(c)}this.events.on(`${e.id}`,c=>{Dr(c)?i(c.error):n(c.result)});try{await this.connection.send(e,r)}catch(c){i(c)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),mo(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",()=>this.events.emit("disconnect")),this.connection.on("error",e=>this.events.emit("error",e)),this.hasRegisteredEventListeners=!0)}}});var ks=S(()=>{g();vo();vo()});var Cs=I((Xe,Ss)=>{g();var Rs=typeof self<"u"?self:Xe,Hr=function(){function t(){this.fetch=!1,this.DOMException=Rs.DOMException}return t.prototype=Rs,new t}();(function(t){var e=function(r){var n={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};
vendor: 4,213 bytes, line 1
1function i(o){return o&&DataView.prototype.isPrototypeOf(o)}if(n.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(o){return o&&c.indexOf(Object.prototype.toString.call(o))>-1};function m(o){if(typeof o!="string"&&(o=String(o)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(o))throw new TypeError("Invalid character in header field name");return o.toLowerCase()}function b(o){return typeof o!="string"&&(o=String(o)),o}function E(o){var s={next:function(){var l=o.shift();return{done:l===void 0,value:l}}};return n.iterable&&(s[Symbol.iterator]=function(){return s}),s}function _(o){this.map={},o instanceof _?o.forEach(function(s,l){this.append(l,s)},this):Array.isArray(o)?o.forEach(function(s){this.append(s[0],s[1])},this):o&&Object.getOwnPropertyNames(o).forEach(function(s){this.append(s,o[s])},this)}_.prototype.append=function(o,s){o=m(o),s=b(s);var l=this.map[o];this.map[o]=l?l+", "+s:s},_.prototype.delete=function(o){delete this.map[m(o)]},_.prototype.get=function(o){return o=m(o),this.has(o)?this.map[o]:null},_.prototype.has=function(o){return this.map.hasOwnProperty(m(o))},_.prototype.set=function(o,s){this.map[m(o)]=b(s)},_.prototype.forEach=function(o,s){for(var l in this.map)this.map.hasOwnProperty(l)&&o.call(s,this.map[l],l,this)},_.prototype.keys=function(){var o=[];return this.forEach(function(s,l){o.push(l)}),E(o)},_.prototype.values=function(){var o=[];return this.forEach(function(s){o.push(s)}),E(o)},_.prototype.entries=function(){var o=[];return this.forEach(function(s,l){o.push([l,s])}),E(o)},n.iterable&&(_.prototype[Symbol.iterator]=_.prototype.entries);function M(o){if(o.bodyUsed)return Promise.reject(new TypeError("Already read"));o.bodyUsed=!0}function k(o){return new Promise(function(s,l){o.onload=function(){s(o.result)},o.onerror=function(){l(o.error)}})}function N(o){var s=new FileReader,l=k(s);return s.readAsArrayBuffer(o),l}function q(o){var s=new FileReader,l=k(s);return s.readAsText(o),l}function D(o){for(var s=new Uint8Array(o),l=new Array(s.length),f=0;f<s.length;f++)l[f]=String.fromCharCode(s[f]);return l.join("")}function C(o){if(o.slice)return o.slice(0);var s=new Uint8Array(o.byteLength);return s.set(new Uint8Array(o)),s.buffer}function W(){return this.bodyUsed=!1,this._initBody=function(o){this._bodyInit=o,o?typeof o=="string"?this._bodyText=o:n.blob&&Blob.prototype.isPrototypeOf(o)?this._bodyBlob=o:n.formData&&FormData.prototype.isPrototypeOf(o)?this._bodyFormData=o:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(o)?this._bodyText=o.toString():n.arrayBuffer&&n.blob&&i(o)?(this._bodyArrayBuffer=C(o.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(o)||u(o))?this._bodyArrayBuffer=C(o):this._bodyText=o=Object.prototype.toString.call(o):this._bodyText="",this.headers.get("content-type")||(typeof o=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(o)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var o=M(this);if(o)return o;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?M(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(N)}),this.text=function(){var o=M(this);if(o)return o;if(this._bodyBlob)return q(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(D(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(te)}),this.json=function(){return this.text().then(JSON.parse)},this}
1var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function z(o){var s=o.toUpperCase();return L.indexOf(s)>-1?s:o}function j(o,s){s=s||{};var l=s.body;if(o instanceof j){if(o.bodyUsed)throw new TypeError("Already read");this.url=o.url,this.credentials=o.credentials,s.headers||(this.headers=new _(o.headers)),this.method=o.method,this.mode=o.mode,this.signal=o.signal,!l&&o._bodyInit!=null&&(l=o._bodyInit,o.bodyUsed=!0)}else this.url=String(o);if(this.credentials=s.credentials||this.credentials||"same-origin",(s.headers||!this.headers)&&(this.headers=new _(s.headers)),this.method=z(s.method||this.method||"GET"),this.mode=s.mode||this.mode||null,this.signal=s.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&l)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(l)}j.prototype.clone=function(){return new j(this,{body:this._bodyInit})};function te(o){var s=new FormData;return o.trim().split("&").forEach(function(l){if(l){var f=l.split("="),h=f.shift().replace(/\+/g," "),v=f.join("=").replace(/\+/g," ");s.append(decodeURIComponent(h),decodeURIComponent(v))}}),s}function Ue(o){var s=new _,l=o.replace(/\r?\n[\t ]+/g," ");return l.split(/\r?\n/).forEach(function(f){var h=f.split(":"),v=h.shift().trim();if(v){var y=h.join(":").trim();s.append(v,y)}}),s}W.call(j.prototype);function B(o,s){s||(s={}),this.type="default",this.status=s.status===void 0?200:s.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in s?s.statusText:"OK",this.headers=new _(s.headers),this.url=s.url||"",this._initBody(o)}W.call(B.prototype),B.prototype.clone=function(){return new B(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new _(this.headers),url:this.url})},B.error=function(){var o=new B(null,{status:0,statusText:""});return o.type="error",o};var Z=[301,302,303,307,308];B.redirect=function(o,s){if(Z.indexOf(s)===-1)throw new RangeError("Invalid status code");return new B(null,{status:s,headers:{location:o}})},r.DOMException=t.DOMException;try{new r.DOMException}catch{r.DOMException=function(s,l){this.message=s,this.name=l;var f=Error(s);this.stack=f.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function w(o,s){return new Promise(function(l,f){var h=new j(o,s);if(h.signal&&h.signal.aborted)return f(new r.DOMException("Aborted","AbortError"));var v=new XMLHttpRequest;function y(){v.abort()}v.onload=function(){var d={status:v.status,statusText:v.statusText,headers:Ue(v.getAllResponseHeaders()||"")};d.url="responseURL"in v?v.responseURL:d.headers.get("X-Request-URL");var a="response"in v?v.response:v.responseText;l(new B(a,d))},v.onerror=function(){f(new TypeError("Network request failed"))},v.ontimeout=function(){f(new TypeError("Network request failed"))},v.onabort=function(){f(new r.DOMException("Aborted","AbortError"))},v.open(h.method,h.url,!0),h.credentials==="include"?v.withCredentials=!0:h.credentials==="omit"&&(v.withCredentials=!1),"responseType"in v&&n.blob&&(v.responseType="blob"),h.headers.forEach(function(d,a){v.setRequestHeader(a,d)}),h.signal&&(h.signal.addEventListener("abort",y),v.onreadystatechange=function(){v.readyState===4&&h.signal.removeEventListener("abort",y)}),v.send(typeof h._bodyInit>"u"?null:h._bodyInit)})}return w.polyfill=!0,t.fetch||(t.fetch=w,t.Headers=_,t.Request=j,t.Response=B),r.Headers=_,r.Request=j,r.Response=B,r.fetch=w,Object.defineProperty(r,"__esModule",{value:!0}),r}({})})(Hr);Hr.fetch.ponyfill=!0;delete Hr.fetch.polyfill;var Pt=Hr;Xe=Pt.fetch;Xe.default=Pt.fetch;Xe.fetch=Pt.fetch;Xe.Headers=Pt.Headers;Xe.Request=Pt.Request;Xe.Response=Pt.Response;Ss.exports=Xe});function zr(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return JSON.parse(t)}catch{return t}}function ir(t){return typeof t=="string"?t:JSON.stringify(t)}var wo=S(()=>{g()});var _o,_d,yd,Ts,yo,bo=S(()=>{g();io();_o=re(Cs());wo();or();_d={Accept:"application/json","Content-Type":"application/json"},yd="POST",Ts={headers:_d,method:yd},yo=class{constructor(e){if(this.url=e,this.events=new J,this.isAvailable=!1,this.registering=!1,!Ur(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e,r){this.isAvailable||await this.register();try{let n=ir(e),c=await(await(0,_o.default)(this.url,Object.assign(Object.assign({},Ts),{body:n}))).json();this.onPayload({data:c})}catch(n){this.onError(e.id,n)}}async register(e=this.url){if(!Ur(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering)return new Promise((r,n)=>{this.events.once("register_error",i=>{n(i)}),this.events.once("open",()=>{if(typeof this.isAvailable>"u")return n(new Error("HTTP connection is missing or invalid"));r()})});this.url=e,this.registering=!0;try{let r=ir({id:1,jsonrpc:"2.0",method:"test",params:[]});await(0,_o.default)(e,Object.assign(Object.assign({},Ts),{body:r})),this.onOpen()}catch(r){let n=this.parseError(r);throw this.events.emit("register_error",n),this.onClose(),n}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;
1let r=typeof e.data=="string"?zr(e.data):e.data;this.events.emit("payload",r)}onError(e,r){let n=this.parseError(r),i=n.message||n.toString(),c=Bt(e,i);this.events.emit("payload",c)}parseError(e,r=this.url){return so(e,r,"HTTP")}}});var As=S(()=>{g();bo();bo()});var xo=I(K=>{"use strict";g();Object.defineProperty(K,"__esModule",{value:!0});K.getLocalStorage=K.getLocalStorageOrThrow=K.getCrypto=K.getCryptoOrThrow=K.getLocation=K.getLocationOrThrow=K.getNavigator=K.getNavigatorOrThrow=K.getDocument=K.getDocumentOrThrow=K.getFromWindowOrThrow=K.getFromWindow=void 0;function Et(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}K.getFromWindow=Et;function qt(t){let e=Et(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}K.getFromWindowOrThrow=qt;function bd(){return qt("document")}K.getDocumentOrThrow=bd;function xd(){return Et("document")}K.getDocument=xd;function Ed(){return qt("navigator")}K.getNavigatorOrThrow=Ed;function Md(){return Et("navigator")}K.getNavigator=Md;function kd(){return qt("location")}K.getLocationOrThrow=kd;function Rd(){return Et("location")}K.getLocation=Rd;function Sd(){return qt("crypto")}K.getCryptoOrThrow=Sd;function Cd(){return Et("crypto")}K.getCrypto=Cd;function Td(){return qt("localStorage")}K.getLocalStorageOrThrow=Td;function Ad(){return Et("localStorage")}K.getLocalStorage=Ad});var Os=I(jr=>{"use strict";g();Object.defineProperty(jr,"__esModule",{value:!0});jr.getWindowMetadata=void 0;var Is=xo();function Id(){let t,e;try{t=Is.getDocumentOrThrow(),e=Is.getLocationOrThrow()}catch{return null}function r(){let M=t.getElementsByTagName("link"),k=[];for(let N=0;N<M.length;N++){let q=M[N],D=q.getAttribute("rel");if(D&&D.toLowerCase().indexOf("icon")>-1){let C=q.getAttribute("href");if(C)if(C.toLowerCase().indexOf("https:")===-1&&C.toLowerCase().indexOf("http:")===-1&&C.indexOf("//")!==0){let W=e.protocol+"//"+e.host;if(C.indexOf("/")===0)W+=C;else{let L=e.pathname.split("/");L.pop(),W+=L.join("/")+"/"+C}k.push(W)}else if(C.indexOf("//")===0){let W=e.protocol+C;k.push(W)}else k.push(C)}}return k}function n(...M){let k=t.getElementsByTagName("meta");for(let N=0;N<k.length;N++){let q=k[N],D=["itemprop","property","name"].map(C=>q.getAttribute(C)).filter(C=>C?M.includes(C):!1);if(D.length&&D){let C=q.getAttribute("content");if(C)return C}}return""}function i(){let M=n("name","og:site_name","og:title","twitter:title");return M||(M=t.title),M}function c(){return n("description","og:description","twitter:description","keywords")}let u=i(),m=c(),b=e.origin,E=r();return{description:m,url:b,icons:E,name:u}}jr.getWindowMetadata=Id});function Ps(t){return t?Bs(t):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new qd:typeof navigator<"u"?Bs(navigator.userAgent):jd()}function Hd(t){return t!==""&&Fd.reduce(function(e,r){var n=r[0],i=r[1];if(e)return e;var c=i.exec(t);return!!c&&[n,c]},!1)}function Bs(t){var e=Hd(t);if(!e)return null;var r=e[0],n=e[1];if(r==="searchbot")return new Pd;var i=n[1]&&n[1].split(/[._]/).slice(0,3);i?i.length<Ns&&(i=Od(i,Wd(Ns-i.length))):i=[];var c=i.join("."),u=zd(t),m=Dd.exec(t);return m&&m[1]?new Bd(r,c,u,m[1]):new Nd(r,c,u)}function zd(t){for(var e=0,r=Ls.length;e<r;e++){var n=Ls[e],i=n[0],c=n[1],u=c.exec(t);if(u)return i}return null}function jd(){var t=typeof process<"u"&&process.version;return t?new Ld(process.version.slice(1)):null}function Wd(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}var Od,Nd,Ld,Bd,Pd,qd,Ud,Dd,Ns,Fd,Ls,qs=S(()=>{g();Od=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var c=arguments[e],u=0,m=c.length;u<m;u++,i++)n[i]=c[u];return n},Nd=function(){function t(e,r,n){this.name=e,this.version=r,this.os=n,this.type="browser"}return t}(),Ld=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}return t}(),Bd=function(){function t(e,r,n,i){this.name=e,this.version=r,this.os=n,this.bot=i,this.type="bot-device"}return t}(),Pd=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),qd=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),Ud=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yaho
1o!|yandex/,Dd=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Ns=3,Fd=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",Ud]],Ls=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]]});function ar(t){return Ps(t)}function Wr(){let t=ar();return t&&t.os?t.os:void 0}function Ds(){let t=Wr();return t?t.toLowerCase().includes("android"):!1}function Fs(){let t=Wr();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Eo(){return Wr()?Ds()||Fs():!1}function Hs(){let t=ar();return t&&t.name?t.name.toLowerCase()==="node":!1}function Mo(){return!Hs()&&!!zs()}function Gr(){return Us.getWindowMetadata()}var Us,ee,Gd,Jd,Vd,Yd,$d,zs,Kd,ko,Qd,Zd,Xd,sr,Ro=S(()=>{g();Us=re(Os()),ee=re(xo());qs();Gd=ee.getFromWindow,Jd=ee.getFromWindowOrThrow,Vd=ee.getDocumentOrThrow,Yd=ee.getDocument,$d=ee.getNavigatorOrThrow,zs=ee.getNavigator,Kd=ee.getLocationOrThrow,ko=ee.getLocation,Qd=ee.getCryptoOrThrow,Zd=ee.getCrypto,Xd=ee.getLocalStorageOrThrow,sr=ee.getLocalStorage});var So,Co,To=S(()=>{g();wo();So=zr,Co=ir});function cr(t,e){let r=Co(e),n=sr();n&&n.setItem(t,r)}function lr(t){let e=null,r=null,n=sr();return n&&(r=n.getItem(t)),e=r&&So(r),e}function ur(t){let e=sr();e&&e.removeItem(t)}var Ao=S(()=>{g();To();Ro()});function e0(t,e){let r=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${r}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${r}`:""}function t0(t){let e=t.href.split("?")[0];cr(fr,Object.assign(Object.assign({},t),{href:e}))}function js(t,e){return t.filter(r=>r.name.toLowerCase().includes(e.toLowerCase()))[0]}function r0(t,e){let r=t;return e&&(r=e.map(n=>js(t,n)).filter(Boolean)),r}var fr,Ws=S(()=>{g();Ao();fr="WALLETCONNECT_DEEPLINK_CHOICE"});function n0(){return Gs+"/api/v2/wallets"}function o0(){return Gs+"/api/v2/dapps"}function Js(t,e="mobile"){var r;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(r=t.image_url.sm)!==null&&r!==void 0?r:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function i0(t,e="mobile"){return Object.values(t).filter(r=>!!r[e].universal||!!r[e].native).map(r=>Js(r,e))}var Gs,Vs=S(()=>{g();Gs="https://registry.walletconnect.com"});var Ys={};st(Ys,{detectEnv:()=>ar,detectOS:()=>Wr,formatIOSMobile:()=>e0,formatMobileRegistry:()=>i0,formatMobileRegistryEntry:()=>Js,getClientMeta:()=>Gr,getCrypto:()=>Zd,getCryptoOrThrow:()=>Qd,getDappRegistryUrl:()=>
1o0,getDocument:()=>Yd,getDocumentOrThrow:()=>Vd,getFromWindow:()=>Gd,getFromWindowOrThrow:()=>Jd,getLocal:()=>lr,getLocalStorage:()=>sr,getLocalStorageOrThrow:()=>Xd,getLocation:()=>ko,getLocationOrThrow:()=>Kd,getMobileLinkRegistry:()=>r0,getMobileRegistryEntry:()=>js,getNavigator:()=>zs,getNavigatorOrThrow:()=>$d,getWalletRegistryUrl:()=>n0,isAndroid:()=>Ds,isBrowser:()=>Mo,isIOS:()=>Fs,isMobile:()=>Eo,isNode:()=>Hs,mobileLinkChoiceKey:()=>fr,removeLocal:()=>ur,safeJsonParse:()=>So,safeJsonStringify:()=>Co,saveMobileLinkInfo:()=>t0,setLocal:()=>cr});var Io=S(()=>{g();Ro();To();Ao();Ws();Vs()});var $s,Ut,Ks,Jr=S(()=>{g();$s=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Ut=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],Ks={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"}});var Zs=I((Qs,Oo)=>{g();(function(t,e){"use strict";function r(w,o){if(!w)throw new Error(o||"Assertion failed")}function n(w,o){w.super_=o;var s=function(){};s.prototype=o.prototype,w.prototype=new s,w.prototype.constructor=w}function i(w,o,s){if(i.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,w!==null&&((o==="le"||o==="be")&&(s=o,o=10),this._init(w||0,o||10,s||"be"))}
1typeof t=="object"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var c;try{c=qa().Buffer}catch{}i.isBN=function(o){return o instanceof i?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===i.wordSize&&Array.isArray(o.words)},i.max=function(o,s){return o.cmp(s)>0?o:s},i.min=function(o,s){return o.cmp(s)<0?o:s},i.prototype._init=function(o,s,l){if(typeof o=="number")return this._initNumber(o,s,l);if(typeof o=="object")return this._initArray(o,s,l);s==="hex"&&(s=16),r(s===(s|0)&&s>=2&&s<=36),o=o.toString().replace(/\s+/g,"");var f=0;o[0]==="-"&&f++,s===16?this._parseHex(o,f):this._parseBase(o,s,f),o[0]==="-"&&(this.negative=1),this.strip(),l==="le"&&this._initArray(this.toArray(),s,l)},i.prototype._initNumber=function(o,s,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(r(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),s,l)},i.prototype._initArray=function(o,s,l){if(r(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var h,v,y=0;if(l==="be")for(f=o.length-1,h=0;f>=0;f-=3)v=o[f]|o[f-1]<<8|o[f-2]<<16,this.words[h]|=v<<y&67108863,this.words[h+1]=v>>>26-y&67108863,y+=24,y>=26&&(y-=26,h++);else if(l==="le")for(f=0,h=0;f<o.length;f+=3)v=o[f]|o[f+1]<<8|o[f+2]<<16,this.words[h]|=v<<y&67108863,this.words[h+1]=v>>>26-y&67108863,y+=24,y>=26&&(y-=26,h++);return this.strip()};function u(w,o,s){for(var l=0,f=Math.min(w.length,s),h=o;h<f;h++){var v=w.charCodeAt(h)-48;l<<=4,v>=49&&v<=54?l|=v-49+10:v>=17&&v<=22?l|=v-17+10:l|=v&15}return l}i.prototype._parseHex=function(o,s){this.length=Math.ceil((o.length-s)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var f,h,v=0;for(l=o.length-6,f=0;l>=s;l-=6)h=u(o,l,l+6),this.words[f]|=h<<v&67108863,this.words[f+1]|=h>>>
vendor: 7,791 bytes, line 1
126-v&4194303,v+=24,v>=26&&(v-=26,f++);l+6!==s&&(h=u(o,s,l+6),this.words[f]|=h<<v&67108863,this.words[f+1]|=h>>>26-v&4194303),this.strip()};function m(w,o,s,l){for(var f=0,h=Math.min(w.length,s),v=o;v<h;v++){var y=w.charCodeAt(v)-48;f*=l,y>=49?f+=y-49+10:y>=17?f+=y-17+10:f+=y}return f}i.prototype._parseBase=function(o,s,l){this.words=[0],this.length=1;for(var f=0,h=1;h<=67108863;h*=s)f++;f--,h=h/s|0;for(var v=o.length-l,y=v%f,d=Math.min(v,v-y)+l,a=0,p=l;p<d;p+=f)a=m(o,p,p+f,s),this.imuln(h),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(y!==0){var T=1;for(a=m(o,p,o.length,s),p=0;p<y;p++)T*=s;this.imuln(T),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}},i.prototype.copy=function(o){o.words=new Array(this.length);for(var s=0;s<this.length;s++)o.words[s]=this.words[s];o.length=this.length,o.negative=this.negative,o.red=this.red},i.prototype.clone=function(){var o=new i(null);return this.copy(o),o},i.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],_=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,s){o=o||10,s=s|0||1;var l;if(o===16||o==="hex"){l="";for(var f=0,h=0,v=0;v<this.length;v++){var y=this.words[v],d=((y<<f|h)&16777215).toString(16);h=y>>>24-f&16777215,h!==0||v!==this.length-1?l=b[6-d.length]+d+l:l=d+l,f+=2,f>=26&&(f-=26,v--)}for(h!==0&&(l=h.toString(16)+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var a=E[o],p=_[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var A=T.modn(p).toString(o);T=T.idivn(p),T.isZero()?l=A+l:l=b[a-A.length]+A+l}for(this.isZero()&&(l="0"+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(o,s){return r(typeof c<"u"),this.toArrayLike(c,o,s)},i.prototype.toArray=function(o,s){return this.toArrayLike(Array,o,s)},i.prototype.toArrayLike=function(o,s,l){var f=this.byteLength(),h=l||Math.max(1,f);r(f<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0"),this.strip();var v=s==="le",y=new o(h),d,a,p=this.clone();if(v){for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),y[a]=d;for(;a<h;a++)y[a]=0}else{for(a=0;a<h-f;a++)y[a]=0;for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),y[h-a-1]=d}return y},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var s=o,l=0;return s>=4096&&(l+=13,s>>>=13),s>=64&&(l+=7,s>>>=7),s>=8&&(l+=4,s>>>=4),s>=2&&(l+=2,s>>>=2),l+s},i.prototype._zeroBits=function(o){if(o===0)return 26;var s=o,l=0;return(s&8191)===0&&(l+=13,s>>>=13),(s&127)===0&&(l+=7,s>>>=7),(s&15)===0&&(l+=4,s>>>=4),(s&3)===0&&(l+=2,s>>>=2),(s&1)===0&&l++,l},i.prototype.bitLength=function(){var o=this.words[this.length-1],s=this._countBits(o);return(this.length-1)*26+s};function M(w){for(var o=new Array(w.bitLength()),s=0;s<o.length;s++){var l=s/26|0,f=s%26;o[s]=(w.words[l]&1<<f)>>>f}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,s=0;s<this.length;s++){var l=this._zeroBits(this.words[s]);if(o+=l,l!==26)break}return o},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},i.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var s=0;s<o.length;s++)this.words[s]=this.words[s]|o.words[s];return this.strip()},i.prototype.ior=function(o){return r((this.negative|o.negative)===0),this.iuor(o)},i.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var s;this.length>o.length?s=o:s=this;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=s.length,this.strip()},i.prototype.iand=function(o){return r((this.negative|o.negative)===0),this.iuand(o)},i.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var s,l;this.length>o.length?(s=this,l=o):(s=o,l=this);for(var f=0;f<l.length;f++)this.words[f]=s.words[f]^l.words[f];if(this!==s)for(;f<s.length;f++)this.words[f]=s.words[f];return this.length=s.length,this.strip()},i.prototype.ixor=function(o){return r((this.negative|o.negative)===0),this.iuxor(o)},i.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){r(typeof o=="number"&&o>=0);var s=Math.ceil(o/26)|0,l=o%26;this._expand(s),l>0&&s--;for(var f=0;f<s;f++)this.words[f]=~this.words[f]&67108863;return l>0&&(this.words[f]=~this.words[f]&67108863>>26-l),this.strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,s){r(typeof o=="number"&&o>=0);var l=o/26|0,f=o%26;return this._expand(l+1),s?this.words[l]=this.words[l]|1<<f:this.words[l]=this.words[l]&~(1<<f),this.strip()},i.prototype.iadd=function(o){var s;if(this.negative!==0&&o.negative===0)return this.negative=0,s=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,s=this.isub(o),o.negative=1,s._normSign();var l,f;this.length>o.length?(l=this,f=o):(l=o,f=this);for(var h=0,v=0;v<f.length;v++)s=(l.words[v]|0)+(f.words[v]|0)+h,this.words[v]=s&67108863,h=s>>>26;for(;h!==0&&v<l.length;v++)s=(l.words[v]|0)+h,this.words[v]=s&67108863,h=s>>>26;if(this.length=l.length,h!==0)this.words[this.length]=h,this.length++;else if(l!==this)for(;v<l.length;v++)this.words[v]=l.words[v];return this},i.prototype.add=function(o){var s;return o.negative!==0&&this.negative===0?(o.negative=0,s=this.sub(o),o.negative^=1,s):o.negative===0&&this.negative!==0?(this.negative=0,s=o.sub(this),this.negative=1,s):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)}
vendor: 4,485 bytes, line 1
1,i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var s=this.iadd(o);return o.negative=1,s._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,h;l>0?(f=this,h=o):(f=o,h=this);for(var v=0,y=0;y<h.length;y++)s=(f.words[y]|0)-(h.words[y]|0)+v,v=s>>26,this.words[y]=s&67108863;for(;v!==0&&y<f.length;y++)s=(f.words[y]|0)+v,v=s>>26,this.words[y]=s&67108863;if(v===0&&y<f.length&&f!==this)for(;y<f.length;y++)this.words[y]=f.words[y];return this.length=Math.max(this.length,y),f!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(o){return this.clone().isub(o)};function k(w,o,s){s.negative=o.negative^w.negative;var l=w.length+o.length|0;s.length=l,l=l-1|0;var f=w.words[0]|0,h=o.words[0]|0,v=f*h,y=v&67108863,d=v/67108864|0;s.words[0]=y;for(var a=1;a<l;a++){for(var p=d>>>26,T=d&67108863,A=Math.min(a,o.length-1),O=Math.max(0,a-w.length+1);O<=A;O++){var U=a-O|0;f=w.words[U]|0,h=o.words[O]|0,v=f*h+T,p+=v/67108864|0,T=v&67108863}s.words[a]=T|0,d=p|0}return d!==0?s.words[a]=d|0:s.length--,s.strip()}var N=function(o,s,l){var f=o.words,h=s.words,v=l.words,y=0,d,a,p,T=f[0]|0,A=T&8191,O=T>>>13,U=f[1]|0,G=U&8191,Y=U>>>13,at=f[2]|0,$=at&8191,X=at>>>13,ha=f[3]|0,ne=ha&8191,oe=ha>>>13,da=f[4]|0,ie=da&8191,ae=da>>>13,pa=f[5]|0,se=pa&8191,ce=pa>>>13,ga=f[6]|0,le=ga&8191,ue=ga>>>13,ma=f[7]|0,fe=ma&8191,he=ma>>>13,va=f[8]|0,de=va&8191,pe=va>>>13,wa=f[9]|0,ge=wa&8191,me=wa>>>13,_a=h[0]|0,ve=_a&8191,we=_a>>>13,ya=h[1]|0,_e=ya&8191,ye=ya>>>13,ba=h[2]|0,be=ba&8191,xe=ba>>>13,xa=h[3]|0,Ee=xa&8191,Me=xa>>>13,Ea=h[4]|0,ke=Ea&8191,Re=Ea>>>13,Ma=h[5]|0,Se=Ma&8191,Ce=Ma>>>13,ka=h[6]|0,Te=ka&8191,Ae=ka>>>13,Ra=h[7]|0,Ie=Ra&8191,Oe=Ra>>>13,Sa=h[8]|0,Ne=Sa&8191,Le=Sa>>>13,Ca=h[9]|0,Be=Ca&8191,Pe=Ca>>>13;l.negative=o.negative^s.negative,l.length=19,d=Math.imul(A,ve),a=Math.imul(A,we),a=a+Math.imul(O,ve)|0,p=Math.imul(O,we);var Bn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(G,ve),a=Math.imul(G,we),a=a+Math.imul(Y,ve)|0,p=Math.imul(Y,we),d=d+Math.imul(A,_e)|0,a=a+Math.imul(A,ye)|0,a=a+Math.imul(O,_e)|0,p=p+Math.imul(O,ye)|0;var Pn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,d=Math.imul($,ve),a=Math.imul($,we),a=a+Math.imul(X,ve)|0,p=Math.imul(X,we),d=d+Math.imul(G,_e)|0,a=a+Math.imul(G,ye)|0,a=a+Math.imul(Y,_e)|0,p=p+Math.imul(Y,ye)|0,d=d+Math.imul(A,be)|0,a=a+Math.imul(A,xe)|0,a=a+Math.imul(O,be)|0,p=p+Math.imul(O,xe)|0;var qn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(qn>>>26)|0,qn&=67108863,d=Math.imul(ne,ve),a=Math.imul(ne,we),a=a+Math.imul(oe,ve)|0,p=Math.imul(oe,we),d=d+Math.imul($,_e)|0,a=a+Math.imul($,ye)|0,a=a+Math.imul(X,_e)|0,p=p+Math.imul(X,ye)|0,d=d+Math.imul(G,be)|0,a=a+Math.imul(G,xe)|0,a=a+Math.imul(Y,be)|0,p=p+Math.imul(Y,xe)|0,d=d+Math.imul(A,Ee)|0,a=a+Math.imul(A,Me)|0,a=a+Math.imul(O,Ee)|0,p=p+Math.imul(O,Me)|0;var Un=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Un>>>26)|0,Un&=67108863,d=Math.imul(ie,ve),a=Math.imul(ie,we),a=a+Math.imul(ae,ve)|0,p=Math.imul(ae,we),d=d+Math.imul(ne,_e)|0,a=a+Math.imul(ne,ye)|0,a=a+Math.imul(oe,_e)|0,p=p+Math.imul(oe,ye)|0,d=d+Math.imul($,be)|0,a=a+Math.imul($,xe)|0,a=a+Math.imul(X,be)|0,p=p+Math.imul(X,xe)|0,d=d+Math.imul(G,Ee)|0,a=a+Math.imul(G,Me)|0,a=a+Math.imul(Y,Ee)|0,p=p+Math.imul(Y,Me)|0,d=d+Math.imul(A,ke)|0,a=a+Math.imul(A,Re)|0,a=a+Math.imul(O,ke)|0,p=p+Math.imul(O,Re)|0;var Dn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,d=Math.imul(se,ve),a=Math.imul(se,we),a=a+Math.imul(ce,ve)|0,p=Math.imul(ce,we),d=d+Math.imul(ie,_e)|0,a=a+Math.imul(ie,ye)|0,a=a+Math.imul(ae,_e)|0,p=p+Math.imul(ae,ye)|0,d=d+Math.imul(ne,be)|0,a=a+Math.imul(ne,xe)|0,a=a+Math.imul(oe,be)|0,p=p+Math.imul(oe,xe)|0,d=d+Math.imul($,Ee)|0,a=a+Math.imul($,Me)|0,a=a+Math.imul(X,Ee)|0,p=p+Math.imul(X,Me)|0,d=d+Math.imul(G,ke)|0,a=a+Math.imul(G,Re)|0,a=a+Math.imul(Y,ke)|0,p=p+Math.imul(Y,Re)|0,d=d+Math.imul(A,Se)|0,a=a+Math.imul(A,Ce)|0,a=a+Math.imul(O,Se)|0,p=p+Math.imul(O,Ce)|0;var Fn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(le,ve),a=Math.imul(le,we),a=a+Math.imul(ue,ve)|0,p=Math.imul(ue,we),d=d+Math.imul(se,_e)|0,a=a+Math.imul(se,ye)|0,a=a+Math.imul(ce,_e)|0,p=p+Math.imul(ce,ye)|0,d=d+Math.imul(ie,be)|0,a=a+Math.imul(ie,xe)|0,a=a+Math.imul(ae,be)|0,p=p+Math.imul(ae,xe)|0,d=d+Math.imul(ne,Ee)|0,a=a+Math.imul(ne,Me)|0,a=a+Math.imul(oe,Ee)|0,p=
1p+Math.imul(oe,Me)|0,d=d+Math.imul($,ke)|0,a=a+Math.imul($,Re)|0,a=a+Math.imul(X,ke)|0,p=p+Math.imul(X,Re)|0,d=d+Math.imul(G,Se)|0,a=a+Math.imul(G,Ce)|0,a=a+Math.imul(Y,Se)|0,p=p+Math.imul(Y,Ce)|0,d=d+Math.imul(A,Te)|0,a=a+Math.imul(A,Ae)|0,a=a+Math.imul(O,Te)|0,p=p+Math.imul(O,Ae)|0;var Hn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Hn>>>26)|0,Hn&=67108863,d=Math.imul(fe,ve),a=Math.imul(fe,we),a=a+Math.imul(he,ve)|0,p=Math.imul(he,we),d=d+Math.imul(le,_e)|0,a=a+Math.imul(le,ye)|0,a=a+Math.imul(ue,_e)|0,p=p+Math.imul(ue,ye)|0,d=d+Math.imul(se,be)|0,a=a+Math.imul(se,xe)|0,a=a+Math.imul(ce,be)|0,p=p+Math.imul(ce,xe)|0,d=d+Math.imul(ie,Ee)|0,a=a+Math.imul(ie,Me)|0,a=a+Math.imul(ae,Ee)|0,p=p+Math.imul(ae,Me)|0,d=d+Math.imul(ne,ke)|0,a=a+Math.imul(ne,Re)|0,a=a+Math.imul(oe,ke)|0,p=p+Math.imul(oe,Re)|0,d=d+Math.imul($,Se)|0,a=a+Math.imul($,Ce)|0,a=a+Math.imul(X,Se)|0,p=p+Math.imul(X,Ce)|0,d=d+Math.imul(G,Te)|0,a=a+Math.imul(G,Ae)|0,a=a+Math.imul(Y,Te)|0,p=p+Math.imul(Y,Ae)|0,d=d+Math.imul(A,Ie)|0,a=a+Math.imul(A,Oe)|0,a=a+Math.imul(O,Ie)|0,p=p+Math.imul(O,Oe)|0;var zn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(zn>>>26)|0,zn&=67108863,d=Math.imul(de,ve),a=Math.imul(de,we),a=a+Math.imul(pe,ve)|0,p=Math.imul(pe,we),d=d+Math.imul(fe,_e)|0,a=a+Math.imul(fe,ye)|0,a=a+Math.imul(he,_e)|0,p=p+Math.imul(he,ye)|0,d=d+Math.imul(le,be)|0,a=a+Math.imul(le,xe)|0,a=a+Math.imul(ue,be)|0,p=p+Math.imul(ue,xe)|0,d=d+Math.imul(se,Ee)|0,a=a+Math.imul(se,Me)|0,a=a+Math.imul(ce,Ee)|0,p=
1p+Math.imul(ce,Me)|0,d=d+Math.imul(ie,ke)|0,a=a+Math.imul(ie,Re)|0,a=a+Math.imul(ae,ke)|0,p=p+Math.imul(ae,Re)|0,d=d+Math.imul(ne,Se)|0,a=a+Math.imul(ne,Ce)|0,a=a+Math.imul(oe,Se)|0,p=p+Math.imul(oe,Ce)|0,d=d+Math.imul($,Te)|0,a=a+Math.imul($,Ae)|0,a=a+Math.imul(X,Te)|0,p=p+Math.imul(X,Ae)|0,d=d+Math.imul(G,Ie)|0,a=a+Math.imul(G,Oe)|0,a=a+Math.imul(Y,Ie)|0,p=p+Math.imul(Y,Oe)|0,d=d+Math.imul(A,Ne)|0,a=a+Math.imul(A,Le)|0,a=a+Math.imul(O,Ne)|0,p=p+Math.imul(O,Le)|0;var jn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(ge,ve),a=Math.imul(ge,we),a=a+Math.imul(me,ve)|0,p=Math.imul(me,we),d=d+Math.imul(de,_e)|0,a=a+Math.imul(de,ye)|0,a=a+Math.imul(pe,_e)|0,p=p+Math.imul(pe,ye)|0,d=d+Math.imul(fe,be)|0,a=a+Math.imul(fe,xe)|0,a=a+Math.imul(he,be)|0,p=p+Math.imul(he,xe)|0,d=d+Math.imul(le,Ee)|0,a=a+Math.imul(le,Me)|0,a=a+Math.imul(ue,Ee)|0,p=p+Math.imul(ue,Me)|0,d=d+Math.imul(se,ke)|0,a=a+Math.imul(se,Re)|0,a=a+Math.imul(ce,ke)|0,p=p+Math.imul(ce,Re)|0,d=d+Math.imul(ie,Se)|0,a=a+Math.imul(ie,Ce)|0,a=a+Math.imul(ae,Se)|0,p=p+Math.imul(ae,Ce)|0,d=d+Math.imul(ne,Te)|0,a=a+Math.imul(ne,Ae)|0,a=a+Math.imul(oe,Te)|0,p=p+Math.imul(oe,Ae)|0,d=d+Math.imul($,Ie)|0,a=a+Math.imul($,Oe)|0,a=a+Math.imul(X,Ie)|0,p=p+Math.imul(X,Oe)|0,d=d+Math.imul(G,Ne)|0,a=a+Math.imul(G,Le)|0,a=a+Math.imul(Y,Ne)|0,p=p+Math.imul(Y,Le)|0,d=d+Math.imul(A,Be)|0,a=a+Math.imul(A,Pe)|0,a=a+Math.imul(O,Be)|0,p=p+Math.imul(O,Pe)|0;var Wn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(ge,_e),a=Math.imul(ge,ye),a=a+Math.imul(me,_e)|0,p=Math.imul(me,ye),d=d+Math.imul(de,be)|0,a=a+Math.imul(de,xe)|0,a=a+Math.imul(pe,be)|0,p=p+Math.imul(pe,xe)|0,d=d+Math.imul(fe,Ee)|0,a=a+Math.imul(fe,Me)|0,a=a+Math.imul(he,Ee)|0,p=p+Math.imul(he,Me)|0,d=d+Math.imul(le,ke)|0,a=a+Math.imul(le,Re)|0,a=a+Math.imul(ue,ke)|0,p=p+Math.imul(ue,Re)|0,d=d+Math.imul(se,Se)|0,a=a+Math.imul(se,Ce)|0,a=a+Math.imul(ce,Se)|0,p=p+Math.imul(ce,Ce)|0,d=d+Math.imul(ie,Te)|0,a=a+Math.imul(ie,Ae)|0,a=a+Math.imul(ae,Te)|0,p=p+Math.imul(ae,Ae)|0,d=d+Math.imul(ne,Ie)|0,a=a+Math.imul(ne,Oe)|0,a=a+Math.imul(oe,Ie)|0,p=p+Math.imul(oe,Oe)|0,d=d+Math.imul($,Ne)|0,a=a+Math.imul($,Le)|0,a=a+Math.imul(X,Ne)|0,p=p+Math.imul(X,Le)|0,d=d+Math.imul(G,Be)|0,a=a+Math.imul(G,Pe)|0,a=a+Math.imul(Y,Be)|0,p=p+Math.imul(Y,Pe)|0;var Gn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(ge,be),a=Math.imul(ge,xe),a=a+Math.imul(me,be)|0,p=Math.imul(me,xe),d=d+Math.imul(de,Ee)|0,a=a+Math.imul(de,Me)|0,a=a+Math.imul(pe,Ee)|0,p=p+Math.imul(pe,Me)|0,d=d+Math.imul(fe,ke)|0,a=a+Math.imul(fe,Re)|0,a=a+Math.imul(he,ke)|0,p=p+Math.imul(he,Re)|0,d=d+Math.imul(le,Se)|0,a=a+Math.imul(le,Ce)|0,a=a+Math.imul(ue,Se)|0,p=
vendor: 9,697 bytes, line 1
1p+Math.imul(ue,Ce)|0,d=d+Math.imul(se,Te)|0,a=a+Math.imul(se,Ae)|0,a=a+Math.imul(ce,Te)|0,p=p+Math.imul(ce,Ae)|0,d=d+Math.imul(ie,Ie)|0,a=a+Math.imul(ie,Oe)|0,a=a+Math.imul(ae,Ie)|0,p=p+Math.imul(ae,Oe)|0,d=d+Math.imul(ne,Ne)|0,a=a+Math.imul(ne,Le)|0,a=a+Math.imul(oe,Ne)|0,p=p+Math.imul(oe,Le)|0,d=d+Math.imul($,Be)|0,a=a+Math.imul($,Pe)|0,a=a+Math.imul(X,Be)|0,p=p+Math.imul(X,Pe)|0;var Jn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,d=Math.imul(ge,Ee),a=Math.imul(ge,Me),a=a+Math.imul(me,Ee)|0,p=Math.imul(me,Me),d=d+Math.imul(de,ke)|0,a=a+Math.imul(de,Re)|0,a=a+Math.imul(pe,ke)|0,p=p+Math.imul(pe,Re)|0,d=d+Math.imul(fe,Se)|0,a=a+Math.imul(fe,Ce)|0,a=a+Math.imul(he,Se)|0,p=p+Math.imul(he,Ce)|0,d=d+Math.imul(le,Te)|0,a=a+Math.imul(le,Ae)|0,a=a+Math.imul(ue,Te)|0,p=p+Math.imul(ue,Ae)|0,d=d+Math.imul(se,Ie)|0,a=a+Math.imul(se,Oe)|0,a=a+Math.imul(ce,Ie)|0,p=p+Math.imul(ce,Oe)|0,d=d+Math.imul(ie,Ne)|0,a=a+Math.imul(ie,Le)|0,a=a+Math.imul(ae,Ne)|0,p=p+Math.imul(ae,Le)|0,d=d+Math.imul(ne,Be)|0,a=a+Math.imul(ne,Pe)|0,a=a+Math.imul(oe,Be)|0,p=p+Math.imul(oe,Pe)|0;var Vn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,d=Math.imul(ge,ke),a=Math.imul(ge,Re),a=a+Math.imul(me,ke)|0,p=Math.imul(me,Re),d=d+Math.imul(de,Se)|0,a=a+Math.imul(de,Ce)|0,a=a+Math.imul(pe,Se)|0,p=p+Math.imul(pe,Ce)|0,d=d+Math.imul(fe,Te)|0,a=a+Math.imul(fe,Ae)|0,a=a+Math.imul(he,Te)|0,p=p+Math.imul(he,Ae)|0,d=d+Math.imul(le,Ie)|0,a=a+Math.imul(le,Oe)|0,a=a+Math.imul(ue,Ie)|0,p=p+Math.imul(ue,Oe)|0,d=d+Math.imul(se,Ne)|0,a=a+Math.imul(se,Le)|0,a=a+Math.imul(ce,Ne)|0,p=p+Math.imul(ce,Le)|0,d=d+Math.imul(ie,Be)|0,a=a+Math.imul(ie,Pe)|0,a=a+Math.imul(ae,Be)|0,p=p+Math.imul(ae,Pe)|0;var Yn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,d=Math.imul(ge,Se),a=Math.imul(ge,Ce),a=a+Math.imul(me,Se)|0,p=Math.imul(me,Ce),d=d+Math.imul(de,Te)|0,a=a+Math.imul(de,Ae)|0,a=a+Math.imul(pe,Te)|0,p=p+Math.imul(pe,Ae)|0,d=d+Math.imul(fe,Ie)|0,a=a+Math.imul(fe,Oe)|0,a=a+Math.imul(he,Ie)|0,p=p+Math.imul(he,Oe)|0,d=d+Math.imul(le,Ne)|0,a=a+Math.imul(le,Le)|0,a=a+Math.imul(ue,Ne)|0,p=p+Math.imul(ue,Le)|0,d=d+Math.imul(se,Be)|0,a=a+Math.imul(se,Pe)|0,a=a+Math.imul(ce,Be)|0,p=p+Math.imul(ce,Pe)|0;var $n=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,d=Math.imul(ge,Te),a=Math.imul(ge,Ae),a=a+Math.imul(me,Te)|0,p=Math.imul(me,Ae),d=d+Math.imul(de,Ie)|0,a=a+Math.imul(de,Oe)|0,a=a+Math.imul(pe,Ie)|0,p=p+Math.imul(pe,Oe)|0,d=d+Math.imul(fe,Ne)|0,a=a+Math.imul(fe,Le)|0,a=a+Math.imul(he,Ne)|0,p=p+Math.imul(he,Le)|0,d=d+Math.imul(le,Be)|0,a=a+Math.imul(le,Pe)|0,a=a+Math.imul(ue,Be)|0,p=p+Math.imul(ue,Pe)|0;var Kn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,d=Math.imul(ge,Ie),a=Math.imul(ge,Oe),a=a+Math.imul(me,Ie)|0,p=Math.imul(me,Oe),d=d+Math.imul(de,Ne)|0,a=a+Math.imul(de,Le)|0,a=a+Math.imul(pe,Ne)|0,p=p+Math.imul(pe,Le)|0,d=d+Math.imul(fe,Be)|0,a=a+Math.imul(fe,Pe)|0,a=a+Math.imul(he,Be)|0,p=p+Math.imul(he,Pe)|0;var Qn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,d=Math.imul(ge,Ne),a=Math.imul(ge,Le),a=a+Math.imul(me,Ne)|0,p=Math.imul(me,Le),d=d+Math.imul(de,Be)|0,a=a+Math.imul(de,Pe)|0,a=a+Math.imul(pe,Be)|0,p=p+Math.imul(pe,Pe)|0;var Zn=(y+d|0)+((a&8191)<<13)|0;y=(p+(a>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,d=Math.imul(ge,Be),a=Math.imul(ge,Pe),a=a+Math.imul(me,Be)|0,p=Math.imul(me,Pe);var Xn=(y+d|0)+((a&8191)<<13)|0;return y=(p+(a>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,v[0]=Bn,v[1]=Pn,v[2]=qn,v[3]=Un,v[4]=Dn,v[5]=Fn,v[6]=Hn,v[7]=zn,v[8]=jn,v[9]=Wn,v[10]=Gn,v[11]=Jn,v[12]=Vn,v[13]=Yn,v[14]=$n,v[15]=Kn,v[16]=Qn,v[17]=Zn,v[18]=Xn,y!==0&&(v[19]=y,l.length++),l};Math.imul||(N=k);function q(w,o,s){s.negative=o.negative^w.negative,s.length=w.length+o.length;for(var l=0,f=0,h=0;h<s.length-1;h++){var v=f;f=0;for(var y=l&67108863,d=Math.min(h,o.length-1),a=Math.max(0,h-w.length+1);a<=d;a++){var p=h-a,T=w.words[p]|0,A=o.words[a]|0,O=T*A,U=O&67108863;v=v+(O/67108864|0)|0,U=U+y|0,y=U&67108863,v=v+(U>>>26)|0,f+=v>>>26,v&=67108863}s.words[h]=y,l=v,v=f}return l!==0?s.words[h]=l:s.length--,s.strip()}function D(w,o,s){var l=new C;return l.mulp(w,o,s)}i.prototype.mulTo=function(o,s){var l,f=this.length+o.length;return this.length===10&&o.length===10?l=N(this,o,s):f<63?l=k(this,o,s):f<1024?l=q(this,o,s):l=D(this,o,s),l};function C(w,o){this.x=w,this.y=o}C.prototype.makeRBT=function(o){for(var s=new Array(o),l=i.prototype._countBits(o)-1,f=0;f<o;f++)s[f]=this.revBin(f,l,o);return s},C.prototype.revBin=function(o,s,l){if(o===0||o===l-1)return o;for(var f=0,h=0;h<s;h++)f|=(o&1)<<s-h-1,o>>=1;return f},C.prototype.permute=function(o,s,l,f,h,v){for(var y=0;y<v;y++)f[y]=s[o[y]],h[y]=l[o[y]]},C.prototype.transform=function(o,s,l,f,h,v){this.permute(v,o,s,l,f,h);for(var y=1;y<h;y<<=1)for(var d=y<<1,a=Math.cos(2*Math.PI/d),p=Math.sin(2*Math.PI/d),T=0;T<h;T+=d)for(var A=a,O=p,U=0;U<y;U++){var G=l[T+U],Y=f[T+U],at=l[T+U+y],$=f[T+U+y],X=A*at-O*$;$=A*$+O*at,at=X,l[T+U]=G+at,f[T+U]=Y+$,l[T+U+y]=G-at,f[T+U+y]=Y-$,U!==d&&(X=a*A-p*O,O=a*O+p*A,A=X)}},C.prototype.guessLen13b=function(o,s){var l=Math.max(s,o)|1,f=l&1,h=0;for(l=l/2|0;l;l=l>>>1)h++;return 1<<h+1+f},C.prototype.conjugate=function(o,s,l){if(!(l<=1))for(var f=0;f<l/2;f++){var h=o[f];o[f]=o[l-f-1],o[l-f-1]=h,h=s[f],s[f]=-s[l-f-1],s[l-f-1]=-h}},C.prototype.normalize13b=function(o,s){for(var l=0,f=0;f<s/2;f++){var h=Math.round(o[2*f+1]/s)*8192+Math.round(o[2*f]/s)+l;o[f]=h&67108863,h<67108864?l=0:l=h/67108864|0}return o},C.prototype.convert13b=function(o,s,l,f){for(var h=0,v=0;v<s;v++)h=h+(o[v]|0),l[2*v]=h&8191,h=h>>>13,l[2*v+1]=h&8191,h=h>>>13;for(v=2*s;v<f;++v)l[v]=0;r(h===0),r((h&-8192)===0)},C.prototype.stub=function(o){for(var s=new Array(o),l=0;l<o;l++)s[l]=0;return s},C.prototype.mulp=function(o,s,l){var f=2*this.guessLen13b(o.length,s.length),h=this.makeRBT(f),v=this.stub(f),y=new Array(f),d=new Array(f),a=new Array(f),p=new Array(f),T=new Array(f),A=new Array(f),O=l.words;O.length=f,this.convert13b(o.words,o.length,y,f),this.convert13b(s.words,s.length,p,f),this.transform(y,v,d,a,f,h),this.transform(p,v,T,A,f,h);for(var U=0;U<f;U++){var G=d[U]*T[U]-a[U]*A[U];a[U]=d[U]*A[U]+a[U]*T[U],d[U]=G}return this.conjugate(d,a,f),this.transform(d,a,O,v,f,h),this.conjugate(O,v,f),this.normalize13b(O,f),l.negative=o.negative^s.negative,l.length=o.length+s.length,l.strip()},i.prototype.mul=function(o){var s=new i(null);return s.words=new Array(this.length+o.length),this.mulTo(o,s)},i.prototype.mulf=function(o){var s=new i(null);return s.words=new Array(this.length+o.length),D(this,o,s)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){r(typeof o=="number"),r(o<67108864);for(var s=0,l=0;l<this.length;l++){var f=(this.words[l]|0)*o,h=(f&67108863)+(s&67108863);s>>=26,s+=f/67108864|0,s+=h>>>26,this.words[l]=h&67108863}return s!==0&&(this.words[l]=s,this.length++),this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var s=M(o);if(s.length===0)return new i(1);for(var l=this,f=0;f<s.length&&s[f]===0;f++,l=l.sqr());if(++f<s.length)for(var h=l.sqr();f<s.length;f++,h=h.sqr())s[f]!==0&&(l=l.mul(h));return l},i.prototype.iushln=function(o){r(typeof o=="number"&&o>=0);var s=o%26,l=(o-s)/26,f=67108863>>>26-s<<26-s,h;if(s!==0){var v=0;for(h=0;h<this.length;h++){var y=this.words[h]&f,d=(this.words[h]|0)-y<<s;this.words[h]=d|v,v=y>>>26-s}v&&(this.words[h]=v,this.length++)}if(l!==0){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h<l;h++)this.words[h]=0;this.length+=l}return this.strip()},i.prototype.ishln=function(o){return r(this.negative===0),this.iushln(o)},i.prototype.iushrn=function(o,s,l){r(typeof o=="number"&&o>=0);var f;s?f=(s-s%26)/26:f=0;var h=o%26,v=Math.min((o-h)/26,this.length),y=67108863^67108863>>>h<<h,d=l;if(f-=v,f=Math.max(0,f),d){for(var a=0;a<v;a++)d.words[a]=this.words[a];d.length=v}if(v!==0)if(this.length>v)for(this.length-=v,a=0;a<this.length;a++)this.words[a]=this.words[a+v];else this.words[0]=0,this.length=1;var p=0;for(a=this.length-1;a>=0&&(p!==0||a>=f);a--){var T=this.words[a]|0;this.words[a]=p<<26-h|T>>>h,p=T&y}return d&&p!==0&&(d.words[d.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(o,s,l){return r(this.negative===0),this.iushrn(o,s,l)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){r(typeof o=="number"&&o>=0);var s=o%26,l=(o-s)/26,f=1<<s;if(this.length<=l)return!1;var h=this.words[l];return!!(h&f)},i.prototype.imaskn=function(o){r(typeof o=="number"&&o>=0);var s=o%26,l=(o-s)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(s!==0&&l++,this.length=Math.min(l,this.length),s!==0){var f=67108863^67108863>>>s<<s;this.words[this.length-1]&=f}return this.strip()},i.prototype.maskn=function(o){return this.clone().imaskn(o)},i.prototype.iaddn=function(o){return r(typeof o=="number"),r(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},i.prototype._iaddn=function(o){this.words[0]+=o;for(var s=0;s<this.length&&this.words[s]>=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this}
vendor: 10,594 bytes, line 1
1,i.prototype.isubn=function(o){if(r(typeof o=="number"),r(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s<this.length&&this.words[s]<0;s++)this.words[s]+=67108864,this.words[s+1]-=1;return this.strip()},i.prototype.addn=function(o){return this.clone().iaddn(o)},i.prototype.subn=function(o){return this.clone().isubn(o)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(o,s,l){var f=o.length+l,h;this._expand(f);var v,y=0;for(h=0;h<o.length;h++){v=(this.words[h+l]|0)+y;var d=(o.words[h]|0)*s;v-=d&67108863,y=(v>>26)-(d/67108864|0),this.words[h+l]=v&67108863}for(;h<this.length-l;h++)v=(this.words[h+l]|0)+y,y=v>>26,this.words[h+l]=v&67108863;if(y===0)return this.strip();for(r(y===-1),y=0,h=0;h<this.length;h++)v=-(this.words[h]|0)+y,y=v>>26,this.words[h]=v&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(o,s){var l=this.length-o.length,f=this.clone(),h=o,v=h.words[h.length-1]|0,y=this._countBits(v);l=26-y,l!==0&&(h=h.ushln(l),f.iushln(l),v=h.words[h.length-1]|0);var d=f.length-h.length,a;if(s!=="mod"){a=new i(null),a.length=d+1,a.words=new Array(a.length);for(var p=0;p<a.length;p++)a.words[p]=0}var T=f.clone()._ishlnsubmul(h,1,d);T.negative===0&&(f=T,a&&(a.words[d]=1));for(var A=d-1;A>=0;A--){var O=(f.words[h.length+A]|0)*67108864+(f.words[h.length+A-1]|0);for(O=Math.min(O/v|0,67108863),f._ishlnsubmul(h,O,A);f.negative!==0;)O--,f.negative=0,f._ishlnsubmul(h,1,A),f.isZero()||(f.negative^=1);a&&(a.words[A]=O)}return a&&a.strip(),f.strip(),s!=="div"&&l!==0&&f.iushrn(l),{div:a||null,mod:f}},i.prototype.divmod=function(o,s,l){if(r(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var f,h,v;return this.negative!==0&&o.negative===0?(v=this.neg().divmod(o,s),s!=="mod"&&(f=v.div.neg()),s!=="div"&&(h=v.mod.neg(),l&&h.negative!==0&&h.iadd(o)),{div:f,mod:h}):this.negative===0&&o.negative!==0?(v=this.divmod(o.neg(),s),s!=="mod"&&(f=v.div.neg()),{div:f,mod:v.mod}):(this.negative&o.negative)!==0?(v=this.neg().divmod(o.neg(),s),s!=="div"&&(h=v.mod.neg(),l&&h.negative!==0&&h.isub(o)),{div:v.div,mod:h}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?s==="div"?{div:this.divn(o.words[0]),mod:null}:s==="mod"?{div:null,mod:new i(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modn(o.words[0]))}:this._wordDiv(o,s)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var s=this.divmod(o);if(s.mod.isZero())return s.div;var l=s.div.negative!==0?s.mod.isub(o):s.mod,f=o.ushrn(1),h=o.andln(1),v=l.cmp(f);return v<0||h===1&&v===0?s.div:s.div.negative!==0?s.div.isubn(1):s.div.iaddn(1)},i.prototype.modn=function(o){r(o<=67108863);for(var s=(1<<26)%o,l=0,f=this.length-1;f>=0;f--)l=(s*l+(this.words[f]|0))%o;return l},i.prototype.idivn=function(o){r(o<=67108863);for(var s=0,l=this.length-1;l>=0;l--){var f=(this.words[l]|0)+s*67108864;this.words[l]=f/o|0,s=f%o}return this.strip()},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){r(o.negative===0),r(!o.isZero());var s=this,l=o.clone();s.negative!==0?s=s.umod(o):s=s.clone();for(var f=new i(1),h=new i(0),v=new i(0),y=new i(1),d=0;s.isEven()&&l.isEven();)s.iushrn(1),l.iushrn(1),++d;for(var a=l.clone(),p=s.clone();!s.isZero();){for(var T=0,A=1;(s.words[0]&A)===0&&T<26;++T,A<<=1);if(T>0)for(s.iushrn(T);T-- >0;)(f.isOdd()||h.isOdd())&&(f.iadd(a),h.isub(p)),f.iushrn(1),h.iushrn(1);for(var O=0,U=1;(l.words[0]&U)===0&&O<26;++O,U<<=1);if(O>0)for(l.iushrn(O);O-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(a),y.isub(p)),v.iushrn(1),y.iushrn(1);s.cmp(l)>=0?(s.isub(l),f.isub(v),h.isub(y)):(l.isub(s),v.isub(f),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},i.prototype._invmp=function(o){r(o.negative===0),r(!o.isZero());var s=this,l=o.clone();s.negative!==0?s=s.umod(o):s=s.clone();for(var f=new i(1),h=new i(0),v=l.clone();s.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;(s.words[0]&d)===0&&y<26;++y,d<<=1);if(y>0)for(s.iushrn(y);y-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);for(var a=0,p=1;(l.words[0]&p)===0&&a<26;++a,p<<=1);if(a>0)for(l.iushrn(a);a-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);s.cmp(l)>=0?(s.isub(l),f.isub(h)):(l.isub(s),h.isub(f))}var T;return s.cmpn(1)===0?T=f:T=h,T.cmpn(0)<0&&T.iadd(o),T},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var s=this.clone(),l=o.clone();s.negative=0,l.negative=0;for(var f=0;s.isEven()&&l.isEven();f++)s.iushrn(1),l.iushrn(1);do{for(;s.isEven();)s.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=s.cmp(l);if(h<0){var v=s;s=l,l=v}else if(h===0||l.cmpn(1)===0)break;s.isub(l)}while(!0);return l.iushln(f)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){r(typeof o=="number");var s=o%26,l=(o-s)/26,f=1<<s;if(this.length<=l)return this._expand(l+1),this.words[l]|=f,this;for(var h=f,v=l;h!==0&&v<this.length;v++){var y=this.words[v]|0;y+=h,h=y>>>26,y&=67108863,this.words[v]=y}return h!==0&&(this.words[v]=h,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var s=o<0;if(this.negative!==0&&!s)return-1;if(this.negative===0&&s)return 1;this.strip();var l;if(this.length>1)l=1;else{s&&(o=-o),r(o<=67108863,"Number is too big");var f=this.words[0]|0;l=f===o?0:f<o?-1:1}return this.negative!==0?-l|0:l},i.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var s=this.ucmp(o);return this.negative!==0?-s|0:s},i.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var s=0,l=this.length-1;l>=0;l--){var f=this.words[l]|0,h=o.words[l]|0;if(f!==h){f<h?s=-1:f>h&&(s=1);break}}return s},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new B(o)},i.prototype.toRed=function(o){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return r(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return r(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var W={k256:null,p224:null,p192:null,p25519:null};function L(w,o){this.name=w,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},L.prototype.ireduce=function(o){var s=o,l;do this.split(s,this.tmp),s=this.imulK(s),s=s.iadd(this.tmp),l=s.bitLength();while(l>this.n);var f=l<this.n?-1:s.ucmp(this.p);return f===0?(s.words[0]=0,s.length=1):f>0?s.isub(this.p):s.strip(),s},L.prototype.split=function(o,s){o.iushrn(this.n,0,s)},L.prototype.imulK=function(o){return o.imul(this.k)};function z(){L.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(z,L),z.prototype.split=function(o,s){for(var l=4194303,f=Math.min(o.length,9),h=0;h<f;h++)s.words[h]=o.words[h];if(s.length=f,o.length<=9){o.words[0]=0,o.length=1;return}var v=o.words[9];for(s.words[s.length++]=v&l,h=10;h<o.length;h++){var y=o.words[h]|0;o.words[h-10]=(y&l)<<4|v>>>22,v=y}v>>>=22,o.words[h-10]=v,v===0&&o.length>10?o.length-=10:o.length-=9},z.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var s=0,l=0;l<o.length;l++){var f=o.words[l]|0;s+=f*977,o.words[l]=s&67108863,s=f*64+(s/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function j(){L.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(j,L);function te(){L.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(te,L);function Ue(){L.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}
vendor: 4,832 bytes, line 1
1n(Ue,L),Ue.prototype.imulK=function(o){for(var s=0,l=0;l<o.length;l++){var f=(o.words[l]|0)*19+s,h=f&67108863;f>>>=26,o.words[l]=h,s=f}return s!==0&&(o.words[o.length++]=s),o},i._prime=function(o){if(W[o])return W[o];var s;if(o==="k256")s=new z;else if(o==="p224")s=new j;else if(o==="p192")s=new te;else if(o==="p25519")s=new Ue;else throw new Error("Unknown prime "+o);return W[o]=s,s};function B(w){if(typeof w=="string"){var o=i._prime(w);this.m=o.p,this.prime=o}else r(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}B.prototype._verify1=function(o){r(o.negative===0,"red works only with positives"),r(o.red,"red works only with red numbers")},B.prototype._verify2=function(o,s){r((o.negative|s.negative)===0,"red works only with positives"),r(o.red&&o.red===s.red,"red works only with red numbers")},B.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},B.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},B.prototype.add=function(o,s){this._verify2(o,s);var l=o.add(s);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},B.prototype.iadd=function(o,s){this._verify2(o,s);var l=o.iadd(s);return l.cmp(this.m)>=0&&l.isub(this.m),l},B.prototype.sub=function(o,s){this._verify2(o,s);var l=o.sub(s);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},B.prototype.isub=function(o,s){this._verify2(o,s);var l=o.isub(s);return l.cmpn(0)<0&&l.iadd(this.m),l},B.prototype.shl=function(o,s){return this._verify1(o),this.imod(o.ushln(s))},B.prototype.imul=function(o,s){return this._verify2(o,s),this.imod(o.imul(s))},B.prototype.mul=function(o,s){return this._verify2(o,s),this.imod(o.mul(s))},B.prototype.isqr=function(o){return this.imul(o,o.clone())},B.prototype.sqr=function(o){return this.mul(o,o)},B.prototype.sqrt=function(o){if(o.isZero())return o.clone();var s=this.m.andln(3);if(r(s%2===1),s===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(o,l)}for(var f=this.m.subn(1),h=0;!f.isZero()&&f.andln(1)===0;)h++,f.iushrn(1);r(!f.isZero());var v=new i(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new i(2*a*a).toRed(this);this.pow(a,d).cmp(y)!==0;)a.redIAdd(y);for(var p=this.pow(a,f),T=this.pow(o,f.addn(1).iushrn(1)),A=this.pow(o,f),O=h;A.cmp(v)!==0;){for(var U=A,G=0;U.cmp(v)!==0;G++)U=U.redSqr();r(G<O);var Y=this.pow(p,new i(1).iushln(O-G-1));T=T.redMul(Y),p=Y.redSqr(),A=A.redMul(p),O=G}return T},B.prototype.invm=function(o){var s=o._invmp(this.m);return s.negative!==0?(s.negative=0,this.imod(s).redNeg()):this.imod(s)},B.prototype.pow=function(o,s){if(s.isZero())return new i(1).toRed(this);if(s.cmpn(1)===0)return o.clone();var l=4,f=new Array(1<<l);f[0]=new i(1).toRed(this),f[1]=o;for(var h=2;h<f.length;h++)f[h]=this.mul(f[h-1],o);var v=f[0],y=0,d=0,a=s.bitLength()%26;for(a===0&&(a=26),h=s.length-1;h>=0;h--){for(var p=s.words[h],T=a-1;T>=0;T--){var A=p>>T&1;if(v!==f[0]&&(v=this.sqr(v)),A===0&&y===0){d=0;continue}y<<=1,y|=A,d++,!(d!==l&&(h!==0||T!==0))&&(v=this.mul(v,f[y]),d=0,y=0)}a=26}return v},B.prototype.convertTo=function(o){var s=o.umod(this.m);return s===o?s.clone():s},B.prototype.convertFrom=function(o){var s=o.clone();return s.red=null,s},i.mont=function(o){return new Z(o)};function Z(w){B.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(Z,B),Z.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},Z.prototype.convertFrom=function(o){var s=this.imod(o.mul(this.rinv));return s.red=null,s},Z.prototype.imul=function(o,s){if(o.isZero()||s.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(s),f=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(f).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},Z.prototype.mul=function(o,s){if(o.isZero()||s.isZero())return new i(0)._forceRed(this);var l=o.mul(s),f=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(f).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},Z.prototype.invm=function(o){var s=this.imod(o._invmp(this.m).mul(this.r2));return s._forceRed(this)}})(typeof Oo>"u"||Oo,Qs)});var Lo=I((jv,tc)=>{g();tc.exports=No;No.strict=Xs;No.loose=ec;var a0=Object.prototype.toString,s0={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array
1]":!0};function No(t){return Xs(t)||ec(t)}function Xs(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function ec(t){return s0[a0.call(t)]}});var nc=I((Wv,rc)=>{g();var c0=Lo().strict;rc.exports=function(e){if(c0(e)){var r=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(r=r.slice(e.byteOffset,e.byteOffset+e.byteLength)),r}else return Buffer.from(e)}});function dt(t){return new Uint8Array(t)}function Bo(t,e=!1){let r=t.toString(ic);return e?et(r):r}function sc(t){return t.toString(ac)}function Dt(t){return(0,oc.default)(t)}function pt(t,e=!1){return Bo(Dt(t),e)}function Po(t){return sc(Dt(t))}function cc(t){return Buffer.from(Ve(t),ic)}function gt(t){return dt(cc(t))}function Yr(t){return Buffer.from(t,ac)}function qo(t){return dt(Yr(t))}function lc(t,e=!1){return Bo(Yr(t),e)}function uc(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}function Uo(...t){let e=[];return t.forEach(r=>e=e.concat(Array.from(r))),new Uint8Array([...e])}function u0(t,e=8){let r=t%e;return r?(t-r)/e*e+e:t}function f0(t,e=8,r=Vr){return h0(t,u0(t.length,e),r)}function h0(t,e,r=Vr){return d0(t,e,!0,r)}function Ve(t){return t.replace(/^0x/,"")}function et(t){return t.startsWith("0x")?t:`0x${t}`}function $r(t){return t=Ve(t),t=f0(t,2),t&&(t=et(t)),t}function fc(t){let e=t.startsWith("0x");return t=Ve(t),t=t.startsWith(Vr)?t.substring(1):t,e?et(t):t}function d0(t,e,r,n=Vr){let i=e-t.length,c=t;if(i>0){let u=n.repeat(i);c=r?u+t:t+u}return c}var l0,oc,ic,ac,Vr,Ft=S(()=>{g();l0=re(Lo()),oc=re(nc()),ic="hex",ac="utf8",Vr="0"});function Qr(t){return Dt(new Uint8Array(t))}function dc(t,e){return pt(new Uint8Array(t),!e)}function pc(t){return dt(t).buffer}function gc(t){return Yr(t)}function mc(t,e){return lc(t,!e)}function vc(t){return gt(t).buffer}function Zr(t,e){let r=Ve($r(new hc.default(t).toString(16)));return e?r:et(r)}var hc,Do=S(()=>{g();hc=re(Zs());Ft()});function hr(t){return $r(t)}function wc(t){return fc(et(t))}function Xr(){return((e,r)=>{for(r=e="";e++<36;r+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return r})()}function p0(t,e){let r,n=Ks[t];return n&&(r=`https://${n}.infura.io/v3/${e}`),r}function yc(t,e){let r,n=p0(t,e.infuraId);return e.custom&&e.custom[t]?r=e.custom[t]:n&&(r=n),r}var _c,Fo=S(()=>{g();Ft();or();Jr();_c=Nr});function bc(t){return t===""||typeof t=="string"&&t.trim()===""}function xc(t){return!(t&&t.length)}function Ho(t,e){return uc(t,e)}function Ec(t){return typeof t.method<"u"}function Mt(t){return typeof t.result<"u"}function Ht(t){return typeof t.error<"u"}function zo(t){return typeof t.event<"u"}function Mc(t){return $s.includes(t)||t.startsWith("wc_")}function kc(t){return t.method.startsWith("wc_")?!0:!Ut.includes(t.method)}var jo=S(()=>{g();Ft();Jr()});function g0(t){t=Ve(t.toLowerCase());let e=Ve((0,Rc.keccak_256)(gc(t))),r="";for(let n=0;n<t.length;n++)parseInt(e[n],16)>7?r+=t[n].toUpperCase():r+=t[n];return et(r)}function Wo(t){return!xc(t)&&!Ho(t[0])&&(t[0]=mc(t[0])),t}function en(t){if(typeof t.type<"u"&&t.type!=="0")return t;if(typeof t.from>"u"||!m0(t.from))throw new Error("Transaction object must include a valid 'from' value.");function e(i){let c=i;return(typeof i=="number"||typeof i=="string"&&!bc(i))&&(Ho(i)?typeof i=="string"&&(c=hr(i)):c=Zr(i)),typeof c=="string"&&(c=wc(c)),c}let r={from:hr(t.from),to:typeof t.to>"u"?void 0:hr(t.to),gasPrice:typeof t.gasPrice>"u"?"":e(t.gasPrice),gas:typeof t.gas>"u"?typeof t.gasLimit>"u"?"":e(t.gasLimit):e(t.gas),value:typeof t.value>"u"?"":e(t.value),nonce:typeof t.nonce>"u"?"":e(t.nonce),data:typeof t.data>"u"?"":hr(t.data)||"0x"},n=["gasPrice","gas","value","nonce"];return Object.keys(r).forEach(i=>{(typeof r[i]>"u"||typeof r[i]=="string"&&!r[i].trim().length)&&n.includes(i)&&delete r[i]}),r}var Rc,m0,Sc=S(()=>{g();Rc=re(Dh());Ft();Do();Fo();jo();m0=t=>t?t.toLowerCase().substring(0,2)!=="0x"?!1:/^(0x)?[0-9a-f]{40}$/i.test(t)?/^(0x)?[0-9a-f]{40}$/.test(t)||/^(0x)?[0-9A-F]{40}$/.test(t)?!0:t===g0(t):!1:!1});function Cc(t){let e=t.message||"Failed or Rejected Request",r=-32e3;if(t&&!t.code)switch(e){case"Parse error":r=-32700;break;case"Invalid request":r=-32600;break;case"Method not found":r=-32601;break;case"Invalid params":r=-32602;break;case"Internal error":r=-32603;break;default:r=-32e3;break}return{code:r,message:e}}var Tc=S(()=>{g()});var Ic=I((dw,Ac)=>{"use strict";g();Ac.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var Pc=I((pw,Bc)=>{"use strict";g();var Lc="%[a-f0-9]{2}",Oc=new RegExp(Lc,"gi"),Nc=new RegExp("("+Lc+")+","gi");function Go(t,e){try{return decodeURIComponent(t.join(""))}catch{}if(t.length===1)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],Go(r),Go(n))}function v0(t){try{return decodeURIComponent(t)}catch{for(var e=t.match(Oc),r=1;r<e.length;r++)t=Go(e,r).join(""),e=t.match(Oc);return t}}function w0(t){for(var e={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=Nc.exec(t);r;){try{e[r[0]]=decodeURIComponent(r[0])}catch{var n=v0(r[0]);n!==r[0]&&(e[r[0]]=n)}r=Nc.exec(t)}e["%C2"]="\uFFFD";for(var i=Object.keys(e),c=0;c<i.length;c++){var u=i[c];t=t.replace(new RegExp(u,"g"),e[u])}return t}Bc.exports=function(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch{return w0(t)}}});var Uc=I((gw,qc)=>{"use strict";g();qc.exports=(t,e)=>{if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[t];let r=t.indexOf(e);return r===-1?[t]:[t.slice(0,r),t.slice(r+e.length)]}});var Jc=I(tt=>{"use strict";g();var _0=Ic(),y0=Pc(),Fc=Uc(),b0=t=>t==null;function x0(t){switch(t.arrayFormat){case"index":return e=>(r,n)=>{let i=r.length;return n===void 0||t.skipNull&&n===null||t.skipEmptyString&&n===""?r:n===null?[...r,[He(e,t),"[",i,"]"].join("")]:[...r,[He(e,t),"[",He(i,t),"]=",He(n,t)].join("")]};case"bracket":return e=>(r,n)=>n===void 0||t.skipNull&&n===null||t.skipEmptyString&&n===""?r:n===null?[...r,[He(e,t),"[]"].join("")]:[...r,[He(e,t),"[]=",He(n,t)].join("")];case"comma":case"separator":return e=>(r,n)=>n==null||n.length===0?r:r.length===0?[[He(e,t),"=",He(n,t)].join("")]:[[r,He(n,t)].join(t.arrayFormatSeparator)];default:return e=>(r,n)=>n===void 0||t.skipNull&&n===null||t.skipEmptyString&&n===""?r:n===null?[...r,He(e,t)]:[...r,[He(e,t),"=",He(n,t)].join("")]}}function E0(t){let e;switch(t.arrayFormat){case"index":return(r,n,i)=>{if(e=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!e){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][e[1]]=n};case"bracket":return(r,n,i)=>{if(e=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!e){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let u=typeof n=="string"&&n.split("").indexOf(t.arrayFormatSeparator)>-1?n.split(t.arrayFormatSeparator).map(m=>dr(m,t)):n===null?n:dr(n,t);i[r]=u};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function Hc(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function He(t,e){return e.encode?e.strict?_0(t):encodeURIComponent(t):t}function dr(t,e){return e.decode?y0(t):t}function zc(t){return Array.isArray(t)?t.sort():typeof t=="object"?zc(Object.keys(t)).sort((e,r)=>Number(e)-Number(r)).map(e=>t[e]):t}function jc(t){let e=t.indexOf("#");
1return e!==-1&&(t=t.slice(0,e)),t}function M0(t){let e="",r=t.indexOf("#");return r!==-1&&(e=t.slice(r)),e}function Wc(t){t=jc(t);let e=t.indexOf("?");return e===-1?"":t.slice(e+1)}function Dc(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?t=Number(t):e.parseBooleans&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")&&(t=t.toLowerCase()==="true"),t}function Gc(t,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),Hc(e.arrayFormatSeparator);let r=E0(e),n=Object.create(null);if(typeof t!="string"||(t=t.trim().replace(/^[?#&]/,""),!t))return n;for(let i of t.split("&")){let[c,u]=Fc(e.decode?i.replace(/\+/g," "):i,"=");u=u===void 0?null:["comma","separator"].includes(e.arrayFormat)?u:dr(u,e),r(dr(c,e),u,n)}for(let i of Object.keys(n)){let c=n[i];if(typeof c=="object"&&c!==null)for(let u of Object.keys(c))c[u]=Dc(c[u],e);else n[i]=Dc(c,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((i,c)=>{let u=n[c];return Boolean(u)&&typeof u=="object"&&!Array.isArray(u)?i[c]=zc(u):i[c]=u,i},Object.create(null))}tt.extract=Wc;tt.parse=Gc;tt.stringify=(t,e)=>{if(!t)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),Hc(e.arrayFormatSeparator);let r=u=>e.skipNull&&b0(t[u])||e.skipEmptyString&&t[u]==="",n=x0(e),i={};for(let u of Object.keys(t))r(u)||(i[u]=t[u]);let c=Object.keys(i);return e.sort!==!1&&c.sort(e.sort),c.map(u=>{let m=t[u];return m===void 0?"":m===null?He(u,e):Array.isArray(m)?m.reduce(n(u),[]).join("&"):He(u,e)+"="+He(m,e)}).filter(u=>u.length>0).join("&")};tt.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);let[r,n]=Fc(t,"#");return Object.assign({url:r.split("?")[0]||"",query:Gc(Wc(t),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:dr(n,e)}:{})};tt.stringifyUrl=(t,e)=>{e=Object.assign({encode:!0,strict:!0},e);let r=jc(t.url).split("?")[0]||"",n=tt.extract(t.url),i=tt.parse(n,{sort:!1}),c=Object.assign(i,t.query),u=tt.stringify(c,e);u&&(u=`?${u}`);let m=M0(t.url);return t.fragmentIdentifier&&(m=`#${He(t.fragmentIdentifier,e)}`),`${r}${u}${m}`}});function Vc(t){let e=t.indexOf("?")!==-1?t.indexOf("?"):void 0;return typeof e<"u"?t.substr(e):""}function Yc(t,e){let r=Jo(t);return r=Object.assign(Object.assign({},r),e),t=k0(r),t}function Jo(t){return tn.parse(t)}function k0(t){return tn.stringify(t)}var tn,Vo=S(()=>{g();tn=re(Jc())});function $c(t){return typeof t.bridge<"u"}function Kc(t){let e=t.indexOf(":"),r=t.indexOf("?")!==-1?t.indexOf("?"):void 0,n=t.substring(0,e),i=t.substring(e+1,r);function c(M){let k="@",N=M.split(k);return{handshakeTopic:N[0],version:parseInt(N[1],10)}}let u=c(i),m=typeof r<"u"?t.substr(r):"";function b(M){let k=Jo(M);return{key:k.key||"",bridge:k.bridge||""}}let E=b(m);return Object.assign(Object.assign({protocol:n},u),E)}var Qc=S(()=>{g();Vo()});var kt=S(()=>{g();Io();Jr();Do();Sc();Fo();Tc();Qc();Vo();jo()});var Zc,Xc,el=S(()=>{g();Zc=class{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,r){this._eventEmitters.push({event:e,callback:r})}trigger(e){let r=[];e&&(r=this._eventEmitters.filter(n=>n.event===e)),r.forEach(n=>{n.callback()})}},Xc=Zc});var rl=I((Iw,tl)=>{"use strict";g();tl.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});function S0(t,e,r){var n,i;let u=(t.startsWith("https")?t.replace("https","wss"):t.startsWith("http")?t.replace("http","ws"):t).split("?"),m=Mo()?{protocol:e,version:r,env:"browser",host:((n=ko())===null||n===void 0?void 0:n.host)||""}:{protocol:e,version:r,env:((i=ar())===null||i===void 0?void 0:i.name)||""},b=Yc(Vc(u[1]||""),m);return u[0]+"?"+b}var R0,nl,ol,il=S(()=>{g();kt();el();R0=typeof globalThis.WebSocket<"u"?globalThis.WebSocket:rl(),nl=class{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new Xc,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,r,n){if(!r||typeof r!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:r,type:"pub",payload:e,silent:!!n}
1)}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,r){this._events.push({event:e,callback:r})}_socketCreate(){if(this._nextSocket)return;let e=S0(this._url,this._protocol,this._version);if(this._nextSocket=new R0(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=r=>this._socketReceive(r),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=r=>this._socketError(r),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){let r=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(r):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let r;try{r=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:r.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){let n=this._events.filter(i=>i.event==="message");n&&n.length&&n.forEach(i=>i.callback(r))}}_socketError(e){let r=this._events.filter(n=>n.event==="error");r&&r.length&&r.forEach(n=>n.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(r=>this._queue.push({topic:r,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(r=>this._socketSend(r)),this._queue=[]}};ol=nl});var rn,mt,al,sl,cl,ll,ul,fl,hl,Yo,dl,pl,$o,gl=S(()=>{g();rn="Session currently connected",mt="Session currently disconnected",al="Session Rejected",sl="Missing JSON RPC response",cl='JSON-RPC success response must include "result" field',ll='JSON-RPC error response must include "error" field',ul='JSON RPC request must have valid "method" value',fl='JSON RPC request must have valid "id" value',hl="Missing one of the required parameters: bridge / uri / session",Yo="JSON RPC response format is invalid",dl="URI format is invalid",pl="QRCode Modal not provided",$o="User close QRCode Modal"});var ml,vl,wl=S(()=>{g();kt();ml=class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(r=>r.event!==e)}trigger(e){let r=[],n;Ec(e)?n=e.method:Mt(e)||Ht(e)?n=`response:${e.id}`:zo(e)?n=e.event:n="",n&&(r=this._eventEmitters.filter(i=>i.event===n)),(!r||!r.length)&&!Mc(n)&&!zo(n)&&(r=this._eventEmitters.filter(i=>i.event==="call_request")),r.forEach(i=>{if(Ht(e)){let c=new Error(e.error.message);i.callback(c,null)}else i.callback(null,e)})}},vl=ml});var _l,yl,bl=S(()=>{g();kt();_l=class{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null,r=lr(this.storageId);return r&&$c(r)&&(e=r),e}setSession(e){return cr(this.storageId,e),e}removeSession(){ur(this.storageId)}},yl=_l});function A0(t){let e=t.indexOf("//")>-1?t.split("/")[2]:t.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function I0(t){return A0(t).split(".").slice(-2).join(".")}function O0(){return Math.floor(Math.random()*xl.length)}function N0(){return xl[O0()]}function L0(t){return I0(t)===C0}function El(t){return L0(t)?N0():t}var C0,T0,xl,Ml=S(()=>{g();C0="walletconnect.org",T0="abcdefghijklmnopqrstuvwxyz0123456789",xl=T0.split("").map(t=>`https://${t}.bridge.walletconnect.org`)});var kl,Rl,Sl=S(()=>{g();kt();il();gl();wl();bl();Ml();kl=class{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new vl,this._clientMeta=Gr()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new yl(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...Ut,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(hl);e.connectorOpts.bridge&&(this.bridge=El(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);let r=e.connectorOpts.session||this._getStorageSession();r&&(this.session=r),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new ol({protocol:this.protocol,version:this.version,url:this.bridge,
1subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){!e||(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;let r=vc(e);this._key=r}get key(){return this._key?dc(this._key,!0):""}set clientId(e){!e||(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=Xr()),this._clientId}set peerId(e){!e||(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=Gr()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){!e||(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){!e||(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;let{handshakeTopic:r,bridge:n,key:i}=this._parseUri(e);this.handshakeTopic=r,this.bridge=n,this.key=i}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){!e||(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,r){let n={event:e,callback:r};this._eventManager.subscribe(n)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();let r=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=r.id,this.handshakeTopic=Xr(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error($o)});let n=()=>{this.killSession()};try{let i=await this._sendCallRequest(r);return i&&n(),i}catch(i){throw n(),i}}async connect(e){if(!this._qrcodeModal)throw new Error(pl);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(r,n)=>{this.on("modal_closed",()=>n(new Error($o))),this.on("connect",(i,c)=>{if(i)return n(i);r(c.params[0])})}))}async createSession(e){if(this._connected)throw new Error(rn);if(this.pending)return;this._key=await this._generateKey();let r=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=r.id,this.handshakeTopic=Xr(),this._sendSessionRequest(r,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(rn);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let r={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:r};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(rn);let r=e&&e.message?e.message:al,n=this._formatResponse({id:this.handshakeId,error:{message:r}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:r}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(mt);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let r={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[r]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){let r=e?e.message:"Session Disconnected",n={approved:!1,chainId:null,networkId:null,accounts:null},i=this._formatRequest({method:"wc_sessionUpdate",params:[n]});await this._sendRequest(i),this._handleSessionDisconnect(r)}async sendTransaction(e){if(!this._connected)throw new Error(mt);let r=en(e),n=this._formatRequest({method:"eth_sendTransaction",params:[r]});return await this._sendCallRequest(n)}async signTransaction(e){if(!this._connected)throw new Error(mt);let r=en(e),n=this._formatRequest({method:"eth_signTransaction",params:[r]});return await this._sendCallRequest(n)}async signMessage(e){if(!this._connected)throw new Error(mt);let r=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(r)}async signPersonalMessage(e){if(!this._connected)throw new Error(mt);e=Wo(e);let r=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(r)}async signTypedData(e){if(!this._connected)throw new Error(mt);let r=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(r)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");let r=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(r)}unsafeSend(e,r){return this._sendRequest(e,r),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:r}]}),new Promise((n,i)=>{this._subscribeToResponse(e.id,(c,u)=>{if(c){i(c);return}if(!u)throw new Error(sl);n(u)})})}
1async sendCustomRequest(e,r){if(!this._connected)throw new Error(mt);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return Zr(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params&&(e.params[0]=en(e.params[0]));break;case"personal_sign":e.params&&(e.params=Wo(e.params));break;default:break}let n=this._formatRequest(e);return await this._sendCallRequest(n,r)}approveRequest(e){if(Mt(e)){let r=this._formatResponse(e);this._sendResponse(r)}else throw new Error(cl)}rejectRequest(e){if(Ht(e)){let r=this._formatResponse(e);this._sendResponse(r)}else throw new Error(ll)}transportClose(){this._transport.close()}async _sendRequest(e,r){let n=this._formatRequest(e),i=await this._encrypt(n),c=typeof(r==null?void 0:r.topic)<"u"?r.topic:this.peerId,u=JSON.stringify(i),m=typeof(r==null?void 0:r.forcePushNotification)<"u"?!r.forcePushNotification:kc(n);this._transport.send(u,c,m)}async _sendResponse(e){let r=await this._encrypt(e),n=this.peerId,i=JSON.stringify(r),c=!0;this._transport.send(i,n,c)}async _sendSessionRequest(e,r,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,r)}_sendCallRequest(e,r){return this._sendRequest(e,r),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:r}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(ul);return{id:typeof e.id>"u"?_c():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(fl);let r={id:e.id,jsonrpc:"2.0"};if(Ht(e)){let n=Cc(e.error);return Object.assign(Object.assign(Object.assign({},r),e),{error:n})}else if(Mt(e))return Object.assign(Object.assign({},r),e);throw new Error(Yo)}_handleSessionDisconnect(e){let r=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),ur(fr)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:r}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,r){r?r.approved?(this._connected?(r.chainId&&(this.chainId=r.chainId),r.accounts&&(this.accounts=r.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,r.chainId&&(this.chainId=r.chainId),r.accounts&&(this.accounts=r.accounts),r.peerId&&!this.peerId&&(this.peerId=r.peerId),r.peerMeta&&!this.peerMeta&&(this.peerMeta=r.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let n;try{n=JSON.parse(e.payload)}catch{return}let i=await this._decrypt(n);i&&this._eventManager.trigger(i)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,r){this.on(`response:${e}`,r)}_subscribeToSessionResponse(e,r){this._subscribeToResponse(e,(n,i)=>{if(n){this._handleSessionResponse(n.message);return}Mt(i)?this._handleSessionResponse(r,i.result):i.error&&i.error.message?this._handleSessionResponse(i.error.message):this._handleSessionResponse(r)})}_subscribeToCallResponse(e){return new Promise((r,n)=>{this._subscribeToResponse(e,(i,c)=>{if(i){n(i);return}Mt(c)?r(c.result):c.error&&c.error.message?n(new Error(c.error.message)):n(new Error(Yo))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,r)=>{let{request:n}=r.params[0];if(Eo()&&this._signingMethods.includes(n.method)){let i=lr(fr);i&&(window.location.href=i.href)}}),this.on("wc_sessionRequest",(e,r)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=r.id,this.peerId=r.params[0].peerId,this.peerMeta=r.params[0].peerMeta;let n=Object.assign(Object.assign({},r),{method:"session_request"});this._eventManager.trigger(n)}),this.on("wc_sessionUpdate",(e,r)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",r.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){let e=this.protocol,r=this.handshakeTopic,n=this.version,i=encodeURIComponent(this.bridge),c=this.key;return`${e}:${r}@${n}?bridge=${i}&key=${c}`}_parseUri(e){let r=Kc(e);if(r.protocol===this.protocol){if(!r.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");let n=r.handshakeTopic;if(!r.bridge)throw Error("Invalid or missing bridge url parameter value");let i=decodeURIComponent(r.bridge);if(!r.key)throw Error("Invalid or missing key parameter value");let c=r.key;return{handshakeTopic:n,bridge:i,key:c}}else throw new Error(dl)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}
1async _encrypt(e){let r=this._key;return this._cryptoLib&&r?await this._cryptoLib.encrypt(e,r):null}async _decrypt(e){let r=this._key;return this._cryptoLib&&r?await this._cryptoLib.decrypt(e,r):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");let r={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(n,i)=>{if(n)throw n;if(e.peerMeta){let c=i.params[0].peerMeta.name;r.peerName=c}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}},Rl=kl});function Ko(t){return Cl.getBrowerCrypto().getRandomValues(new Uint8Array(t))}var Cl,Tl=S(()=>{g();Cl=re(Lt())});var B0,Qo,Zo,nn,P0,q0,on,Xo,U0,ei=S(()=>{g();B0=0,Qo=1,Zo=16,nn=32,P0=64,q0=128,on=256,Xo=512,U0=1024});var pr,an,Ze,ti,Rt,ri,ni,D0,F0,H0,z0,j0,W0,G0,J0,V0,Al=S(()=>{g();ei();pr=256,an=256,Ze="AES-CBC",ti=`SHA-${pr}`,Rt="HMAC",ri="SHA-256",ni="SHA-512",D0=`aes-${pr}-cbc`,F0=`sha${an}`,H0="sha256",z0="sha512",j0="ripemd160",W0=1,G0=32,J0=16,V0=32});var Y0,$0,Il=S(()=>{g();Y0="hex",$0="utf8"});var K0,Ol=S(()=>{g();K0="Bad MAC"});var oi,ii,ai,si,Nl=S(()=>{g();oi="encrypt",ii="decrypt",ai="sign",si="verify"});var ci=S(()=>{g();Al();Il();Ol();ei();Nl()});function Q0(t){return t===Ze?{length:pr,name:Ze}:{hash:{name:ti},name:Rt}}function Z0(t){return t===Ze?[oi,ii]:[ai,si]}async function sn(t,e=Ze){return vt.getSubtleCrypto().importKey("raw",t,Q0(e),!0,Z0(e))}async function Ll(t,e,r){let n=vt.getSubtleCrypto(),i=await sn(e,Ze),c=await n.encrypt({iv:t,name:Ze},i,r);return new Uint8Array(c)}async function Bl(t,e,r){let n=vt.getSubtleCrypto(),i=await sn(e,Ze),c=await n.decrypt({iv:t,name:Ze},i,r);return new Uint8Array(c)}async function li(t,e){let r=vt.getSubtleCrypto(),n=await sn(t,Rt),i=await r.sign({length:an,name:Rt},n,e);return new Uint8Array(i)}async function ui(t,e){let r=vt.getSubtleCrypto(),n=await sn(t,Rt),i=await r.sign({length:512,name:Rt},n,e);return new Uint8Array(i)}async function Pl(t){let r=await vt.getSubtleCrypto().digest({name:ri},t);return new Uint8Array(r)}async function ql(t){let r=await vt.getSubtleCrypto().digest({name:ni},t);return new Uint8Array(r)}var vt,cn=S(()=>{g();vt=re(Lt());ci()});function fi(t,e,r){return Ll(t,e,r)}function hi(t,e,r){return Bl(t,e,r)}var Ul=S(()=>{g();cn()});var Ye={};var Dl=S(()=>{g();F(Ye,re(Lt()))});var X0,Fl,Hl=S(()=>{g();X0=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],Fl={pad(t){let e=X0[t.byteLength%16||0],r=new Uint8Array(t.byteLength+e.length);return r.set(t),r.set(e,t.byteLength),r},unpad(t){return t.subarray(0,t.byteLength-t[t.byteLength-1])}}});var zl=S(()=>{g()});function jl(t,e){if(!t)throw new Error(e||"Assertion failed")}function gr(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return r===0}var Wl=S(()=>{g()});var ze={};st(ze,{assert:()=>jl,isConstantTime:()=>gr,pkcs7:()=>Fl});var di=S(()=>{g();Dl();F(ze,Ye);Hl();zl();Wl()});async function ln(t,e){return await li(t,e)}async function ep(t,e,r){let n=await li(t,e);return gr(n,r)}async function tp(t,e){return await ui(t,e)}async function rp(t,e,r){let n=await ui(t,e);return gr(n,r)}var Gl=S(()=>{g();cn();di()});async function np(t){return await Pl(t)}async function op(t){return await ql(t)}async function ip(t){throw new Error("Not supported for Browser async methods, use sync instead!")}var Jl=S(()=>{g();cn()});var Ke={};st(Ke,{AES_BROWSER_ALGO:()=>Ze,AES_LENGTH:()=>pr,AES_NODE_ALGO:()=>D0,DECRYPT_OP:()=>ii,ENCRYPT_OP:()=>oi,ERROR_BAD_MAC:()=>K0,HEX_ENC:()=>Y0,HMAC_BROWSER:()=>Rt,HMAC_BROWSER_ALGO:()=>ti,HMAC_LENGTH:()=>an,HMAC_NODE_ALGO:()=>F0,IV_LENGTH:()=>J0,KEY_LENGTH:()=>G0,LENGTH_0:()=>B0,LENGTH_1:()=>Qo,LENGTH_1024:()=>U0,LENGTH_128:()=>q0,LENGTH_16:()=>Zo,LENGTH_256:()=>on,LENGTH_32:()=>nn,LENGTH_512:()=>Xo,LENGTH_64:()=>P0,MAC_LENGTH:()=>V0,PREFIX_LENGTH:()=>W0,RIPEMD160_NODE_ALGO:()=>j0,SHA256_BROWSER_ALGO:()=>ri,SHA256_NODE_ALGO:()=>H0,SHA512_BROWSER_ALGO:()=>ni,SHA512_NODE_ALGO:()=>z0,SIGN_OP:()=>ai,UTF8_ENC:()=>$0,VERIFY_OP:()=>si,aesCbcDecrypt:()=>hi,aesCbcEncrypt:()=>fi,assert:()=>
1jl,hmacSha256Sign:()=>ln,hmacSha256Verify:()=>ep,hmacSha512Sign:()=>tp,hmacSha512Verify:()=>rp,isConstantTime:()=>gr,pkcs7:()=>Fl,randomBytes:()=>Ko,ripemd160:()=>ip,sha256:()=>np,sha512:()=>op});var Vl=S(()=>{g();Tl();Ul();Gl();Jl();di();F(Ke,ze);ci()});var pi={};st(pi,{decrypt:()=>sp,encrypt:()=>ap,generateKey:()=>Yl,verifyHmac:()=>$l});async function Yl(t){let e=(t||256)/8,r=Ko(e);return pc(Dt(r))}async function $l(t,e){let r=gt(t.data),n=gt(t.iv),i=gt(t.hmac),c=pt(i,!1),u=Uo(r,n),m=await ln(e,u),b=pt(m,!1);return Ve(c)===Ve(b)}async function ap(t,e,r){let n=dt(Qr(e)),i=r||await Yl(128),c=dt(Qr(i)),u=pt(c,!1),m=JSON.stringify(t),b=qo(m),E=await fi(c,n,b),_=pt(E,!1),M=Uo(E,c),k=await ln(n,M),N=pt(k,!1);return{data:_,hmac:N,iv:u}}async function sp(t,e){let r=dt(Qr(e));if(!r)throw new Error("Missing key: required for decryption");if(!await $l(t,r))return null;let i=gt(t.data),c=gt(t.iv),u=await hi(c,r,i),m=Po(u),b;try{b=JSON.parse(m)}catch{return null}return b}var Kl=S(()=>{g();Vl();Ft();kt()});var Ql,Zl,Xl=S(()=>{g();Sl();Kl();Ql=class extends Rl{constructor(e,r){super({cryptoLib:pi,connectorOpts:e,pushServerOpts:r})}},Zl=Ql});var tu=I((O_,eu)=>{g();eu.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var un=I((N_,ru)=>{g();var cp={}.toString;ru.exports=Array.isArray||function(t){return cp.call(t)=="[object Array]"}});var St=I((L_,vi)=>{"use strict";g();var lp=un();function up(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42}catch{return!1}}H.TYPED_ARRAY_SUPPORT=up();var nu=H.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function H(t,e,r){return!H.TYPED_ARRAY_SUPPORT&&!(this instanceof H)?new H(t,e,r):typeof t=="number"?ou(this,t):vp(this,t,e,r)}H.TYPED_ARRAY_SUPPORT&&(H.prototype.__proto__=Uint8Array.prototype,H.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&H[Symbol.species]===H&&Object.defineProperty(H,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function mi(t){if(t>=nu)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nu.toString(16)+" bytes");return t|0}function fp(t){return t!==t}function zt(t,e){var r;return H.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=H.prototype):(r=t,r===null&&(r=new H(e)),r.length=e),r}function ou(t,e){var r=zt(t,e<0?0:mi(e)|0);if(!H.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)r[n]=0;return r}function hp(t,e){var r=au(e)|0,n=zt(t,r),i=n.write(e);return i!==r&&(n=n.slice(0,i)),n}function gi(t,e){for(var r=e.length<0?0:mi(e.length)|0,n=zt(t,r),i=0;i<r;i+=1)n[i]=e[i]&255;return n}function dp(t,e,r,n){if(r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");var i;return r===void 0&&n===void 0?i=new Uint8Array(e):n===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,n),H.TYPED_ARRAY_SUPPORT?i.__proto__=H.prototype:i=gi(t,i),i}function pp(t,e){if(H.isBuffer(e)){var r=mi(e.length)|0,n=zt(t,r);return n.length===0||e.copy(n,0,0,r),n}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||fp(e.length)?zt(t,0):gi(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return gi(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function iu(t,e){e=e||1/0;for(var r,n=t.length,i=null,c=[],u=0;u<n;++u){if(r=t.charCodeAt(u),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&c.push(239,191,189);continue}else if(u+1===n){(e-=3)>-1&&c.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&c.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&c.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;c.push(r)}else if(r<2048){if((e-=2)<0)break;c.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;c.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;c.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return c}function au(t){if(H.isBuffer(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;return e===0?0:iu(t).length}function gp(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function mp(t,e,r,n){return gp(iu(e,t.length-r),t,r,n)}function vp(t,e,r,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?dp(t,e,r,n):typeof e=="string"?hp(t,e,r):pp(t,e)}H.prototype.write=function(e,r,n){r===void 0?(n=this.length,r=0):n===void 0&&typeof r=="string"?(n=this.length,r=0):isFinite(r)&&(r=r|0,isFinite(n)?n=n|0:n=void 0);var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");return mp(this,e,r,n)};H.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i;if(H.TYPED_ARRAY_SUPPORT)i=this.subarray(e,r),i.__proto__=H.prototype;else{var c=r-e;i=new H(c,void 0);for(var u=0;u<c;++u)i[u]=this[u+e]}return i};H.prototype.copy=function(e,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var c=i-n,u;if(this===e&&n<r&&r<i)for(u=c-1;u>=0;--u)e[u+r]=this[u+n];else if(c<1e3||!H.TYPED_ARRAY_SUPPORT)for(u=0;
1u<c;++u)e[u+r]=this[u+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+c),r);return c};H.prototype.fill=function(e,r,n){if(typeof e=="string"){if(typeof r=="string"?(r=0,n=this.length):typeof n=="string"&&(n=this.length),e.length===1){var i=e.charCodeAt(0);i<256&&(e=i)}}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var c;if(typeof e=="number")for(c=r;c<n;++c)this[c]=e;else{var u=H.isBuffer(e)?e:new H(e),m=u.length;for(c=0;c<n-r;++c)this[c+r]=u[c%m]}return this};H.concat=function(e,r){if(!lp(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return zt(null,0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=ou(null,r),c=0;for(n=0;n<e.length;++n){var u=e[n];if(!H.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,c),c+=u.length}return i};H.byteLength=au;H.prototype._isBuffer=!0;H.isBuffer=function(e){return!!(e!=null&&e._isBuffer)};vi.exports.alloc=function(t){var e=new H(t);return e.fill(0),e};vi.exports.from=function(t){return new H(t)}});var wt=I(Ct=>{g();var wi,wp=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ct.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Ct.getSymbolTotalCodewords=function(e){return wp[e]};Ct.getBCHDigit=function(t){for(var e=0;t!==0;)e++,t>>>=1;return e};Ct.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');wi=e};Ct.isKanjiModeEnabled=function(){return typeof wi<"u"};Ct.toSJIS=function(e){return wi(e)}});var fn=I($e=>{g();$e.L={bit:1};$e.M={bit:0};$e.Q={bit:3};$e.H={bit:2};function _p(t){if(typeof t!="string")throw new Error("Param is not a string");var e=t.toLowerCase();switch(e){case"l":case"low":return $e.L;case"m":case"medium":return $e.M;case"q":case"quartile":return $e.Q;case"h":case"high":return $e.H;default:throw new Error("Unknown EC Level: "+t)}}$e.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};$e.from=function(e,r){if($e.isValid(e))return e;try{return _p(e)}catch{return r}}});var lu=I((q_,cu)=>{g();function su(){this.buffer=[],this.length=0}su.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};cu.exports=su});var hu=I((U_,fu)=>{g();var uu=St();function mr(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=uu.alloc(t*t),this.reservedBit=uu.alloc(t*t)}mr.prototype.set=function(t,e,r,n){var i=t*this.size+e;this.data[i]=r,n&&(this.reservedBit[i]=!0)};mr.prototype.get=function(t,e){return this.data[t*this.size+e]};mr.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};mr.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};fu.exports=mr});var du=I(hn=>{g();var yp=wt().getSymbolSize;hn.getRowColCoords=function(e){if(e===1)return[];for(var r=Math.floor(e/7)+2,n=yp(e),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,c=[n-7],u=1;u<r-1;u++)c[u]=c[u-1]-i;return c.push(6),c.reverse()};hn.getPositions=function(e){for(var r=[],n=hn.getRowColCoords(e),i=n.length,c=0;c<i;c++)for(var u=0;u<i;u++)c===0&&u===0||c===0&&u===i-1||c===i-1&&u===0||r.push([n[c],n[u]]);return r}});var mu=I(gu=>{g();var bp=wt().getSymbolSize,pu=7;gu.getPositions=function(e){var r=bp(e);return[[0,0],[r-pu,0],[0,r-pu]]}});var vu=I(Q=>{g();Q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Tt={N1:3,N2:3,N3:40,N4:10};Q.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};Q.from=function(e){return Q.isValid(e)?parseInt(e,10):void 0};Q.getPenaltyN1=function(e){for(var r=e.size,n=0,i=0,c=0,u=null,m=null,b=0;b<r;b++){i=c=0,u=m=null;for(var E=0;E<r;E++){var _=e.get(b,E);_===u?i++:(i>=5&&(n+=Tt.N1+(i-5)),u=_,i=1),_=e.get(E,b),_===m?c++:(c>
1=5&&(n+=Tt.N1+(c-5)),m=_,c=1)}i>=5&&(n+=Tt.N1+(i-5)),c>=5&&(n+=Tt.N1+(c-5))}return n};Q.getPenaltyN2=function(e){for(var r=e.size,n=0,i=0;i<r-1;i++)for(var c=0;c<r-1;c++){var u=e.get(i,c)+e.get(i,c+1)+e.get(i+1,c)+e.get(i+1,c+1);(u===4||u===0)&&n++}return n*Tt.N2};Q.getPenaltyN3=function(e){for(var r=e.size,n=0,i=0,c=0,u=0;u<r;u++){i=c=0;for(var m=0;m<r;m++)i=i<<1&2047|e.get(u,m),m>=10&&(i===1488||i===93)&&n++,c=c<<1&2047|e.get(m,u),m>=10&&(c===1488||c===93)&&n++}return n*Tt.N3};Q.getPenaltyN4=function(e){for(var r=0,n=e.data.length,i=0;i<n;i++)r+=e.data[i];var c=Math.abs(Math.ceil(r*100/n/5)-10);return c*Tt.N4};function xp(t,e,r){switch(t){case Q.Patterns.PATTERN000:return(e+r)%2===0;case Q.Patterns.PATTERN001:return e%2===0;case Q.Patterns.PATTERN010:return r%3===0;case Q.Patterns.PATTERN011:return(e+r)%3===0;case Q.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2===0;case Q.Patterns.PATTERN101:return e*r%2+e*r%3===0;case Q.Patterns.PATTERN110:return(e*r%2+e*r%3)%2===0;case Q.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}Q.applyMask=function(e,r){for(var n=r.size,i=0;i<n;i++)for(var c=0;c<n;c++)r.isReserved(c,i)||r.xor(c,i,xp(e,c,i))};Q.getBestMask=function(e,r){for(var n=Object.keys(Q.Patterns).length,i=0,c=1/0,u=0;u<n;u++){r(u),Q.applyMask(u,e);var m=Q.getPenaltyN1(e)+Q.getPenaltyN2(e)+Q.getPenaltyN3(e)+Q.getPenaltyN4(e);Q.applyMask(u,e),m<c&&(c=m,i=u)}return i}});var yi=I(_i=>{g();var _t=fn(),dn=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],pn=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];_i.getBlocksCount=function(e,r){switch(r){case _t.L:return dn[(e-1)*4+0];case _t.M:return dn[(e-1)*4+1];case _t.Q:return dn[(e-1)*4+2];case _t.H:return dn[(e-1)*4+3];default:return}};_i.getTotalCodewordsCount=function(e,r){switch(r){case _t.L:return pn[(e-1)*4+0];case _t.M:return pn[(e-1)*4+1];case _t.Q:return pn[(e-1)*4+2];case _t.H:return pn[(e-1)*4+3];default:return}}});var _u=I(mn=>{g();var wu=St(),vr=wu.alloc(512),gn=wu.alloc(256);(function(){for(var e=1,r=0;r<255;r++)vr[r]=e,gn[e]=r,e<<=1,e&256&&(e^=285);for(r=255;r<512;r++)vr[r]=vr[r-255]})();mn.log=function(e){if(e<1)throw new Error("log("+e+")");return gn[e]};mn.exp=function(e){return vr[e]};mn.mul=function(e,r){return e===0||r===0?0:vr[gn[e]+gn[r]]}});var yu=I(wr=>{g();var bi=St(),xi=_u();wr.mul=function(e,r){for(var n=bi.alloc(e.length+r.length-1),i=0;i<e.length;i++)for(var c=0;c<r.length;c++)n[i+c]^=xi.mul(e[i],r[c]);return n};wr.mod=function(e,r){for(var n=bi.from(e);n.length-r.length>=0;){for(var i=n[0],c=0;c<r.length;c++)n[c]^=xi.mul(r[c],i);for(var u=0;u<n.length&&n[u]===0;)u++;n=n.slice(u)}return n};wr.generateECPolynomial=function(e){for(var r=bi.from([1]),n=0;n<e;n++)r=wr.mul(r,[1,xi.exp(n)]);return r}});var Mu=I((G_,Eu)=>{g();var bu=St(),xu=yu(),Ep=qa().Buffer;function Ei(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}Ei.prototype.initialize=function(e){this.degree=e,this.genPoly=xu.generateECPolynomial(this.degree)};Ei.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var r=bu.alloc(this.degree),n=Ep.concat([e,r],e.length+this.degree),i=xu.mod(n,this.genPoly),c=this.degree-i.length;if(c>0){var u=bu.alloc(this.degree);return i.copy(u,c),u}return i};
1Eu.exports=Ei});var Mi=I(ku=>{g();ku.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var ki=I(rt=>{g();var Ru="[0-9]+",Mp="[A-Z $%*+\\-./:]+",_r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";_r=_r.replace(/u/g,"\\u");var kp="(?:(?![A-Z0-9 $%*+\\-./:]|"+_r+`)(?:.|[\r 2]))+`;rt.KANJI=new RegExp(_r,"g");rt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");rt.BYTE=new RegExp(kp,"g");rt.NUMERIC=new RegExp(Ru,"g");rt.ALPHANUMERIC=new RegExp(Mp,"g");var Rp=new RegExp("^"+_r+"$"),Sp=new RegExp("^"+Ru+"$"),Cp=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");rt.testKanji=function(e){return Rp.test(e)};rt.testNumeric=function(e){return Sp.test(e)};rt.testAlphanumeric=function(e){return Cp.test(e)}});var yt=I(qe=>{g();var Tp=Mi(),Ri=ki();qe.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};qe.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};qe.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};qe.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};qe.MIXED={bit:-1};qe.getCharCountIndicator=function(e,r){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!Tp.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]};qe.getBestModeForData=function(e){return Ri.testNumeric(e)?qe.NUMERIC:Ri.testAlphanumeric(e)?qe.ALPHANUMERIC:Ri.testKanji(e)?qe.KANJI:qe.BYTE};qe.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};qe.isValid=function(e){return e&&e.bit&&e.ccBits};function Ap(t){if(typeof t!="string")throw new Error("Param is not a string");var e=t.toLowerCase();switch(e){case"numeric":return qe.NUMERIC;case"alphanumeric":return qe.ALPHANUMERIC;case"kanji":return qe.KANJI;case"byte":return qe.BYTE;default:throw new Error("Unknown mode: "+t)}}qe.from=function(e,r){if(qe.isValid(e))return e;try{return Ap(e)}catch{return r}}});var Iu=I(At=>{g();var vn=wt(),Ip=yi(),Su=fn(),bt=yt(),Si=Mi(),Op=un(),Tu=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,Cu=vn.getBCHDigit(Tu);function Np(t,e,r){for(var n=1;n<=40;n++)if(e<=At.getCapacity(n,r,t))return n}function Au(t,e){return bt.getCharCountIndicator(t,e)+4}function Lp(t,e){var r=0;return t.forEach(function(n){var i=Au(n.mode,e);r+=i+n.getBitsLength()}),r}function Bp(t,e){for(var r=1;r<=40;r++){var n=Lp(t,r);if(n<=At.getCapacity(r,e,bt.MIXED))return r}}At.from=function(e,r){return Si.isValid(e)?parseInt(e,10):r};At.getCapacity=function(e,r,n){if(!Si.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=bt.BYTE);var i=vn.getSymbolTotalCodewords(e),c=Ip.getTotalCodewordsCount(e,r),u=(i-c)*8;if(n===bt.MIXED)return u;var m=u-Au(n,e);switch(n){case bt.NUMERIC:return Math.floor(m/10*3);case bt.ALPHANUMERIC:return Math.floor(m/11*2);case bt.KANJI:return Math.floor(m/13);case bt.BYTE:default:return Math.floor(m/8)}};At.getBestVersionForData=function(e,r){var n,i=Su.from(r,Su.M);if(Op(e)){if(e.length>1)return Bp(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return Np(n.mode,n.getLength(),i)};At.getEncodedBits=function(e){if(!Si.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var r=e<<12;vn.getBCHDigit(r)-Cu>=0;)r^=Tu<<vn.getBCHDigit(r)-Cu;return e<<12|r}});var Bu=I(Lu=>{g();var Ci=wt(),Nu=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,Pp=1<<14|1<<12|1<<10|1<<4|1<<1,Ou=Ci.getBCHDigit(Nu);Lu.getEncodedBits=function(e,r){for(var n=e.bit<<3|r,i=n<<10;Ci.getBCHDigit(i)-Ou>=0;)i^=Nu<<Ci.getBCHDigit(i)-Ou;return(n<<10|i)^Pp}});var qu=I((Q_,Pu)=>{g();var qp=yt();function jt(t){this.mode=qp.NUMERIC,this.data=t.toString()}jt.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};jt.prototype.getLength=function(){return this.data.length};jt.prototype.getBitsLength=function(){return jt.getBitsLength(this.data.length)};jt.prototype.write=function(e){var r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),e.put(i,10);var c=this.data.length-r;c>0&&(n=this.data.substr(r),i=parseInt(n,10),e.put(i,c*3+1))};Pu.exports=jt});var Du=I((Z_,Uu)=>{g();var Up=yt(),Ti=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Wt(t){this.mode=Up.ALPHANUMERIC,this.data=t}Wt.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Wt.prototype.getLength=function(){return this.data.length};Wt.prototype.getBitsLength=function(){return Wt.getBitsLength(this.data.length)};Wt.prototype.write=function(e){var r;for(r=0;r+2<=this.data.length;r+=2){var n=Ti.indexOf(this.data[r])*45;n+=Ti.indexOf(this.data[r+1]),e.put(n,11)}this.data.length%2&&e.put(Ti.indexOf(this.data[r]),6)};Uu.exports=Wt});var Hu=I((X_,Fu)=>
2{g();var Dp=St(),Fp=yt();function Gt(t){this.mode=Fp.BYTE,this.data=Dp.from(t)}Gt.getBitsLength=function(e){return e*8};Gt.prototype.getLength=function(){return this.data.length};Gt.prototype.getBitsLength=function(){return Gt.getBitsLength(this.data.length)};Gt.prototype.write=function(t){for(var e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};Fu.exports=Gt});var ju=I((ey,zu)=>{g();var Hp=yt(),zp=wt();function Jt(t){this.mode=Hp.KANJI,this.data=t}Jt.getBitsLength=function(e){return e*13};Jt.prototype.getLength=function(){return this.data.length};Jt.prototype.getBitsLength=function(){return Jt.getBitsLength(this.data.length)};Jt.prototype.write=function(t){var e;for(e=0;e<this.data.length;e++){var r=zp.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` 3Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};zu.exports=Jt});var Wu=I((ty,Ai)=>{"use strict";g();var yr={single_source_shortest_paths:function(t,e,r){var n={},i={};i[e]=0;var c=yr.PriorityQueue.make();c.push(e,0);for(var u,m,b,E,_,M,k,N,q;!c.empty();){u=c.pop(),m=u.value,E=u.cost,_=t[m]||{};for(b in _)_.hasOwnProperty(b)&&(M=_[b],k=E+M,N=i[b],q=typeof i[b]>"u",(q||N>k)&&(i[b]=k,c.push(b,k),n[b]=m))}if(typeof r<"u"&&typeof i[r]>"u"){var D=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(D)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e,i;n;)r.push(n),i=t[n],n=t[n];return r.reverse(),r},find_path:function(t,e,r){var n=yr.single_source_shortest_paths(t,e,r);return yr.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e=yr.PriorityQueue,r={},n;t=t||{};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r.queue=[],r.sorter=t.sorter||e.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Ai<"u"&&(Ai.exports=yr)});var Zu=I(Vt=>{g();var V=yt(),Vu=qu(),Yu=Du(),$u=Hu(),Ku=ju(),br=ki(),wn=wt(),jp=Wu();function Gu(t){return unescape(encodeURIComponent(t)).length}function xr(t,e,r){for(var n=[],i;(i=t.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:e,length:i[0].length});return n}function Qu(t){var e=xr(br.NUMERIC,V.NUMERIC,t),r=xr(br.ALPHANUMERIC,V.ALPHANUMERIC,t),n,i;wn.isKanjiModeEnabled()?(n=xr(br.BYTE,V.BYTE,t),i=xr(br.KANJI,V.KANJI,t)):(n=xr(br.BYTE_KANJI,V.BYTE,t),i=[]);var c=e.concat(r,n,i);return c.sort(function(u,m){return u.index-m.index}).map(function(u){return{data:u.data,mode:u.mode,length:u.length}})}function Ii(t,e){switch(e){case V.NUMERIC:return Vu.getBitsLength(t);case V.ALPHANUMERIC:return Yu.getBitsLength(t);case V.KANJI:return Ku.getBitsLength(t);case V.BYTE:return $u.getBitsLength(t)}}function Wp(t){return t.reduce(function(e,r){var n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===r.mode?(e[e.length-1].data+=r.data,e):(e.push(r),e)},[])}function Gp(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];switch(n.mode){case V.NUMERIC:e.push([n,{data:n.data,mode:V.ALPHANUMERIC,length:n.length},{data:n.data,mode:V.BYTE,length:n.length}]);break;case V.ALPHANUMERIC:e.push([n,{data:n.data,mode:V.BYTE,length:n.length}]);break;case V.KANJI:e.push([n,{data:n.data,mode:V.BYTE,length:Gu(n.data)}]);break;case V.BYTE:e.push([{data:n.data,mode:V.BYTE,length:Gu(n.data)}])}}return e}function Jp(t,e){for(var r={},n={start:{}},i=["start"],c=0;c<t.length;c++){for(var u=t[c],m=[],b=0;b<u.length;b++){var E=u[b],_=""+c+b;m.push(_),r[_]={node:E,lastCount:0},n[_]={};for(var M=0;M<i.length;M++){var k=i[M];r[k]&&r[k].node.mode===E.mode?(n[k][_]=Ii(r[k].lastCount+E.length,E.mode)-Ii(r[k].lastCount,E.mode),r[k].lastCount+=E.length):(r[k]&&(r[k].lastCount=E.length),n[k][_]=Ii(E.length,E.mode)+4+V.getCharCountIndicator(E.mode,e))}}i=m}for(M=0;M<i.length;M++)n[i[M]].end=0;return{map:n,table:r}}function Ju(t,e){var r,n=V.getBestModeForData(t);if(r=V.from(e,n),r!==V.BYTE&&r.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+V.toString(r)+`. 4 Suggested mode is: `+V.toString(n));switch(r===V.KANJI&&!wn.isKanjiModeEnabled()&&(r=V.BYTE),r){case V.NUMERIC:return new Vu(t);case V.ALPHANUMERIC:return new Yu(t);case V.KANJI:return new Ku(t);case V.BYTE:return new $u(t)}}Vt.fromArray=function(e){return e.reduce(function(r,n){return typeof n=="string"?r.push(Ju(n,null)):n.data&&r.push(Ju(n.data,n.mode)),r},[])};Vt.fromString=function(e,r){for(var n=Qu(e,wn.isKanjiModeEnabled()),i=Gp(n),c=Jp(i,r),u=jp.find_path(c.map,"start","end"),m=[],b=1;b<u.length-1;b++)m.push(c.table[u[b]].node);return Vt.fromArray(Wp(m))};Vt.rawSplit=function(e){return Vt.fromArray(Qu(e,wn.isKanjiModeEnabled()))}});var tf=I(ef=>{g();var Xu=St(),yn=wt(),Oi=fn(),Vp=lu(),Yp=hu(),$p=du(),Kp=mu(),Bi=vu(),Pi=yi(),Qp=Mu(),_n=Iu(),Zp=Bu(),Xp=yt(),Ni=Zu(),eg=un();function tg(t,e){for(var r=t.size,n=Kp.getPositions(e),i=0;i<n.length;i++)for(var c=n[i][0],u=n[i][1],m=-1;m<=7;m++)if(!(c+m<=-1||r<=c+m))for(var b=-1;b<=7;b++)u+b<=-1||r<=u+b||(m>=0&&m<=6&&(b===0||b===6)||b>=0&&b<=6&&(m===0||m===6)||m>=2&&m<=4&&b>=2&&b<=4?t.set(c+m,u+b,!0,!0):t.set(c+m,u+b,!1,!0))}function rg(t){for(var e=t.size,r=8;r<e-8;r++){var n=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}function ng(t,e){for(var r=$p.getPositions(e),n=0;n<r.length;n++)for(var i=r[n][0],c=r[n][1],u=-2;u<=2;u++)for(var m=-2;m<=2;m++)u===-2||u===2||m===-2||m===2||u===0&&m===0?t.set(i+u,c+m,!0,!0):t.set(i+u,c+m,!1,!0)}function og(t,e){for(var r=t.size,n=_n.getEncodedBits(e),i,c,u,m=0;m<18;m++)i=Math.floor(m/3),c=m%3+r-8-3,u=(n>>m&1)===1,t.set(i,c,u,!0),t.set(c,i,u,!0)}function Li(t,e,r){var n=t.size,i=Zp.getEncodedBits(e,r),c,u;for(c=0;c<15;c++)u=(i>>c&1)===1,c<6?t.set(c,8,u,!0):c<8?t.set(c+1,8,u,!0):t.set(n-15+c,8,u,!0),c<8?t.set(8,n-c-1,u,!0):c<9?t.set(8,15-c-1+1,u,!0):t.set(8,15-c-1,u,!0);t.set(n-8,8,1,!0)}function ig(t,e){for(var r=t.size,n=-1,i=r-1,c=7,u=0,m=r-1;m>0;m-=2)for(m===6&&m--;;){for(var b=0;b<2;b++)if(!t.isReserved(i,m-b)){var E=!1;u<e.length&&(E=(e[u]>>>c&1)===1),t.set(i,m-b,E),c--,c===-1&&(u++,c=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function ag(t,e,r){var n=new Vp;r.forEach(function(E){n.put(E.mode.bit,4),n.put(E.getLength(),Xp.getCharCountIndicator(E.mode,t)),E.write(n)});var i=yn.getSymbolTotalCodewords(t),c=Pi.getTotalCodewordsCount(t,e),u=(i-c)*8;for(n.getLengthInBits()+4<=u&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);for(var m=(u-n.getLengthInBits())/8,b=0;b<m;b++)n.put(b%2?17:236,8);return sg(n,t,e)}function sg(t,e,r){for(var n=yn.getSymbolTotalCodewords(e),i=Pi.getTotalCodewordsCount(e,r),c=n-i,u=Pi.getBlocksCount(e,r),m=n%u,b=u-m,E=Math.floor(n/u),_=Math.floor(c/u),M=_+1,k=E-_,N=new Qp(k),q=0,D=new Array(u),C=new Array(u),W=0,L=Xu.from(t.buffer),z=0;z<u;z++){var j=z<b?_:M;D[z]=L.slice(q,q+j),C[z]=N.encode(D[z]),q+=j,W=Math.max(W,j)}var te=Xu.alloc(n),Ue=0,B,Z;for(B=0;B<W;B++)for(Z=0;Z<u;
4Z++)B<D[Z].length&&(te[Ue++]=D[Z][B]);for(B=0;B<k;B++)for(Z=0;Z<u;Z++)te[Ue++]=C[Z][B];return te}function cg(t,e,r,n){var i;if(eg(t))i=Ni.fromArray(t);else if(typeof t=="string"){var c=e;if(!c){var u=Ni.rawSplit(t);c=_n.getBestVersionForData(u,r)}i=Ni.fromString(t,c||40)}else throw new Error("Invalid data");var m=_n.getBestVersionForData(i,r);if(!m)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=m;else if(e<m)throw new Error(` 5The chosen QR Code version cannot contain this amount of data. 6Minimum version required to store current data is: `+m+`. 7`);var b=ag(e,r,i),E=yn.getSymbolSize(e),_=new Yp(E);return tg(_,e),rg(_),ng(_,e),Li(_,r,0),e>=7&&og(_,e),ig(_,b),isNaN(n)&&(n=Bi.getBestMask(_,Li.bind(null,_,r))),Bi.applyMask(n,_),Li(_,r,n),{modules:_,version:e,errorCorrectionLevel:r,maskPattern:n,segments:i}}ef.create=function(e,r){if(typeof e>"u"||e==="")throw new Error("No input text");var n=Oi.M,i,c;return typeof r<"u"&&(n=Oi.from(r.errorCorrectionLevel,Oi.M),i=_n.from(r.version),c=Bi.from(r.maskPattern),r.toSJISFunc&&yn.setToSJISFunction(r.toSJISFunc)),cg(e,i,n,c)}});var qi=I(It=>{g();function rf(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");var e=t.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+t);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");var r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+e.slice(0,6).join("")}}It.getOptions=function(e){e||(e={}),e.color||(e.color={});var r=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:rf(e.color.dark||"#000000ff"),light:rf(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};It.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale};It.getImageWidth=function(e,r){var n=It.getScale(e,r);return Math.floor((e+r.margin*2)*n)};It.qrToImageData=function(e,r,n){for(var i=r.modules.size,c=r.modules.data,u=It.getScale(i,n),m=Math.floor((i+n.margin*2)*u),b=n.margin*u,E=[n.color.light,n.color.dark],_=0;_<m;_++)for(var M=0;M<m;M++){var k=(_*m+M)*4,N=n.color.light;if(_>=b&&M>=b&&_<m-b&&M<m-b){var q=Math.floor((_-b)/u),D=Math.floor((M-b)/u);N=E[c[q*i+D]?1:0]}e[k++]=N.r,e[k++]=N.g,e[k++]=N.b,e[k]=N.a}}});var nf=I(bn=>{g();var Ui=qi();function lg(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}function ug(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}bn.render=function(e,r,n){var i=n,c=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(c=ug()),i=Ui.getOptions(i);var u=Ui.getImageWidth(e.modules.size,i),m=c.getContext("2d"),b=m.createImageData(u,u);return Ui.qrToImageData(b.data,e,i),lg(m,c,u),m.putImageData(b,0,0),c};bn.renderToDataURL=function(e,r,n){var i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});var c=bn.render(e,r,i),u=i.type||"image/png",m=i.rendererOpts||{};return c.toDataURL(u,m.quality)}});var sf=I(af=>{g();var fg=qi();function of(t,e){var r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function Di(t,e,r){var n=t+e;return typeof r<"u"&&(n+=" "+r),n}function hg(t,e,r){for(var n="",i=0,c=!1,u=0,m=0;m<t.length;m++){var b=Math.floor(m%e),E=Math.floor(m/e);!b&&!c&&(c=!0),t[m]?(u++,m>0&&b>0&&t[m-1]||(n+=c?Di("M",b+r,.5+E+r):Di("m",i,0),i=0,c=!1),b+1<e&&t[m+1]||(n+=Di("h",u),u=0)):i++}return n}af.render=function(e,r,n){var i=fg.getOptions(r),c=e.modules.size,u=e.modules.data,m=c+i.margin*2,b=i.color.light.a?"<path "+of(i.color.light,"fill")+' d="M0 0h'+m+"v"+m+'H0z"/>':"",E="<path "+of(i.color.dark,"stroke")+' d="'+hg(u,c,i.margin)+'"/>',_='viewBox="0 0 '+m+" "+m+'"',M=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",k='<svg xmlns="http://www.w3.org/2000/svg" '+M+_+' shape-rendering="crispEdges">'+b+E+`</svg> 8`;return typeof n=="function"&&n(null,k),k}});var lf=I(Er=>{g();var dg=tu(),Fi=tf(),cf=nf(),pg=sf();
8function Hi(t,e,r,n,i){var c=[].slice.call(arguments,1),u=c.length,m=typeof c[u-1]=="function";if(!m&&!dg())throw new Error("Callback required as last argument");if(m){if(u<2)throw new Error("Too few arguments provided");u===2?(i=r,r=e,e=n=void 0):u===3&&(e.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=e,e=void 0))}else{if(u<1)throw new Error("Too few arguments provided");return u===1?(r=e,e=n=void 0):u===2&&!e.getContext&&(n=r,r=e,e=void 0),new Promise(function(E,_){try{var M=Fi.create(r,n);E(t(M,e,n))}catch(k){_(k)}})}try{var b=Fi.create(r,n);i(null,t(b,e,n))}catch(E){i(E)}}Er.create=Fi.create;Er.toCanvas=Hi.bind(null,cf.render);Er.toDataURL=Hi.bind(null,cf.renderToDataURL);Er.toString=Hi.bind(null,function(t,e,r){return pg.render(t,r)})});var ff=I((cy,uf)=>{g();uf.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(i){t.addRange(i)}),e&&e.focus()}}});var pf=I((ly,df)=>{"use strict";g();var gg=ff(),hf={"text/plain":"Text","text/html":"Url",default:"Text"},mg="Copy to clipboard: #{key}, Enter";function vg(t){var e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function wg(t,e){var r,n,i,c,u,m,b=!1;e||(e={}),r=e.debug||!1;try{i=gg(),c=document.createRange(),u=document.getSelection(),m=document.createElement("span"),m.textContent=t,m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(_){if(_.stopPropagation(),e.format)if(_.preventDefault(),typeof _.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var M=hf[e.format]||hf.default;window.clipboardData.setData(M,t)}else _.clipboardData.clearData(),_.clipboardData.setData(e.format,t);e.onCopy&&(_.preventDefault(),e.onCopy(_.clipboardData))}),document.body.appendChild(m),c.selectNodeContents(m),u.addRange(c);var E=document.execCommand("copy");if(!E)throw new Error("copy command was unsuccessful");b=!0}catch(_){r&&console.error("unable to copy using execCommand: ",_),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),b=!0}catch(M){r&&console.error("unable to copy using clipboardData: ",M),r&&console.error("falling back to prompt"),n=vg("message"in e?e.message:mg),window.prompt(n,t)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(c):u.removeAllRanges()),m&&document.body.removeChild(m),i()}return b}df.exports=wg});function nt(t,e){for(var r in e)t[r]=e[r];return t}function yf(t){var e=t.parentNode;e&&e.removeChild(t)}function Qe(t,e,r){var n,i=arguments,c={};for(n in e)n!=="key"&&n!=="ref"&&(c[n]=e[n]);if(arguments.length>3)for(r=[r],n=3;n<arguments.length;n++)r.push(i[n]);if(r!=null&&(c.children=r),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)c[n]===void 0&&(c[n]=t.defaultProps[n]);return En(t,c,e&&e.key,e&&e.ref,null)}function En(t,e,r,n,i){var c={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i};return i==null&&(c.__v=c),P.vnode&&P.vnode(c),c}function Rn(){return{}}function Ot(t){return t.children}function Je(t,e){this.props=t,this.context=e}function kr(t,e){if(e==null)return t.__?kr(t.__,t.__.__k.indexOf(t)+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?kr(t):null}function bf(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return bf(t)}}function xn(t){(!t.__d&&(t.__d=!0)&&Mr.push(t)&&!zi++||gf!==P.debounceRendering)&&((gf=P.debounceRendering)||wf)(bg)}function bg(){for(var t;zi=Mr.length;)t=Mr.sort(function(e,r){return e.__v.__b-r.__v.__b}),Mr=[],t.some(function(e){var r,n,i,c,u,m,b;e.__d&&(m=(u=(r=e).__v).__e,(b=r.__P)&&(n=[],(i=nt({},u)).__v=i,c=Wi(b,u,i,r.__n,b.ownerSVGElement!==void 0,null,n,m??kr(u)),Ef(n,u),c!=m&&bf(u)))})}function xf(t,e,r,n,i,c,u,m,b){var E,_,M,k,N,q,D,C=r&&r.__k||kn,W=C.length;if(m==ot&&(m=c!=null?c[0]:W?kr(r,0):null),E=0,e.__k=it(e.__k,function(L){if(L!=null){if(L.__=e,L.__b=e.__b+1,(M=C[E])===null||M&&L.key==M.key&&L.type===M.type)C[E]=void 0;else for(_=0;_<W;_++){if((M=C[_])&&L.key==M.key&&L.type===M.type){C[_]=void 0;break}M=null}if(k=Wi(t,L,M=M||ot,n,i,c,u,m,b),(_=L.ref)&&M.ref!=_&&(D||(D=[]),M.ref&&D.push(M.ref,null,L),D.push(_,L.__c||k,L)),k!=null){var z;if(q==null&&(q=k),L.__d!==void 0)z=L.__d,L.__d=void 0;else if(c==M||k!=m||k.parentNode==null){e:if(m==null||m.parentNode!==t)t.appendChild(k),z=null;else{for(N=m,_=0;(N=N.nextSibling)&&_<W;_+=2)if(N==k)break e;t.insertBefore(k,m),z=m}e.type=="option"&&(t.value="")}m=z!==void 0?z:k.nextSibling,typeof e.type=="function"&&(e.__d=m)}
8else m&&M.__e==m&&m.parentNode!=t&&(m=kr(M))}return E++,L}),e.__e=q,c!=null&&typeof e.type!="function")for(E=c.length;E--;)c[E]!=null&&yf(c[E]);for(E=W;E--;)C[E]!=null&&Yt(C[E],C[E]);if(D)for(E=0;E<D.length;E++)Mf(D[E],D[++E],D[++E])}function it(t,e,r){if(r==null&&(r=[]),t==null||typeof t=="boolean")e&&r.push(e(null));else if(Array.isArray(t))for(var n=0;n<t.length;n++)it(t[n],e,r);else r.push(e?e(typeof t=="string"||typeof t=="number"?En(null,t,null,null,t):t.__e!=null||t.__c!=null?En(t.type,t.props,t.key,null,t.__v):t):t);return r}function xg(t,e,r,n,i){var c;for(c in r)c==="children"||c==="key"||c in e||Mn(t,c,null,r[c],n);for(c in e)i&&typeof e[c]!="function"||c==="children"||c==="key"||c==="value"||c==="checked"||r[c]===e[c]||Mn(t,c,e[c],r[c],n)}function mf(t,e,r){e[0]==="-"?t.setProperty(e,r):t[e]=typeof r=="number"&&yg.test(e)===!1?r+"px":r??""}function Mn(t,e,r,n,i){var c,u,m,b,E;if(i?e==="className"&&(e="class"):e==="class"&&(e="className"),e==="style")if(c=t.style,typeof r=="string")c.cssText=r;else{if(typeof n=="string"&&(c.cssText="",n=null),n)for(b in n)r&&b in r||mf(c,b,"");if(r)for(E in r)n&&r[E]===n[E]||mf(c,E,r[E])}else e[0]==="o"&&e[1]==="n"?(u=e!==(e=e.replace(/Capture$/,"")),m=e.toLowerCase(),e=(m in t?m:e).slice(2),r?(n||t.addEventListener(e,vf,u),(t.l||(t.l={}))[e]=r):t.removeEventListener(e,vf,u)):e!=="list"&&e!=="tagName"&&e!=="form"&&e!=="type"&&e!=="size"&&!i&&e in t?t[e]=r??"":typeof r!="function"&&e!=="dangerouslySetInnerHTML"&&(e!==(e=e.replace(/^xlink:?/,""))?r==null||r===!1?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),r):r==null||r===!1&&!/^ar/.test(e)?t.removeAttribute(e):t.setAttribute(e,r))}function vf(t){this.l[t.type](P.event?P.event(t):t)}function Wi(t,e,r,n,i,c,u,m,b){var E,_,M,k,N,q,D,C,W,L,z=e.type;if(e.constructor!==void 0)return null;(E=P.__b)&&E(e);try{e:if(typeof z=="function"){if(C=e.props,W=(E=z.contextType)&&n[E.__c],L=E?W?W.props.value:E.__:n,r.__c?D=(_=e.__c=r.__c).__=_.__E:("prototype"in z&&z.prototype.render?e.__c=_=new z(C,L):(e.__c=_=new Je(C,L),_.constructor=z,_.render=Mg),W&&W.sub(_),_.props=C,_.state||(_.state={}),_.context=L,_.__n=n,M=_.__d=!0,_.__h=[]),_.__s==null&&(_.__s=_.state),z.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=nt({},_.__s)),nt(_.__s,z.getDerivedStateFromProps(C,_.__s))),k=_.props,N=_.state,M)z.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(z.getDerivedStateFromProps==null&&C!==k&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(C,L),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(C,_.__s,L)===!1||e.__v===r.__v&&!_.__){for(_.props=C,_.state=_.__s,e.__v!==r.__v&&(_.__d=!1),_.__v=e,e.__e=r.__e,e.__k=r.__k,_.__h.length&&u.push(_),E=0;E<e.__k.length;E++)e.__k[E]&&(e.__k[E].__=e);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(C,_.__s,L),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(k,N,q)})}_.context=L,_.props=C,_.state=_.__s,(E=P.__r)&&E(e),_.__d=!1,_.__v=e,_.__P=t,E=_.render(_.props,_.state,_.context),e.__k=E!=null&&E.type==Ot&&E.key==null?E.props.children:Array.isArray(E)?E:[E],_.getChildContext!=null&&(n=nt(nt({},n),_.getChildContext())),M||_.getSnapshotBeforeUpdate==null||(q=_.getSnapshotBeforeUpdate(k,N)),xf(t,e,r,n,i,c,u,m,b),_.base=e.__e,_.__h.length&&u.push(_),D&&(_.__E=_.__=null),_.__e=!1}else c==null&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=Eg(r.__e,e,r,n,i,c,u,b);(E=P.diffed)&&E(e)}catch(j){e.__v=null,P.__e(j,e,r)}return e.__e}function Ef(t,e){P.__c&&P.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(n){n.call(r)})}catch(n){P.__e(n,r.__v)}})}function Eg(t,e,r,n,i,c,u,m){var b,E,_,M,k,N=r.props,q=e.props;if(i=e.type==="svg"||i,c!=null){for(b=0;b<c.length;b++)if((E=c[b])!=null&&((e.type===null?E.nodeType===3:E.localName===e.type)||t==E)){t=E,c[b]=null;break}}if(t==null){if(e.type===null)return document.createTextNode(q);t=i?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type,q.is&&{is:q.is}),c=null,m=!1}if(e.type===null)N!==q&&t.data!=q&&(t.data=q);else{if(c!=null&&(c=kn.slice.call(t.childNodes)),_=(N=r.props||ot).dangerouslySetInnerHTML,M=q.dangerouslySetInnerHTML,!m){if(N===ot)for(N={},k=0;k<t.attributes.length;k++)N[t.attributes[k].name]=t.attributes[k].value;(M||_)&&(M&&_&&M.__html==_.__html||(t.innerHTML=M&&M.__html||""))}xg(t,q,N,i,m),M?e.__k=[]:(e.__k=e.props.children,xf(t,e,r,n,e.type!=="foreignObject"&&i,c,u,ot,m)),m||("value"in q&&(b=q.value)!==void 0&&b!==t.value&&Mn(t,"value",b,N.value,!1),"checked"in q&&(b=q.checked)!==void 0&&b!==t.checked&&Mn(t,"checked",b,N.checked,!1))}return t}function Mf(t,e,r){try{typeof t=="function"?t(e):t.current=e}catch(n){P.__e(n,r)}}function Yt(t,e,r){var n,i,c;if(P.unmount&&P.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||Mf(n,null,e)),r||typeof t.type=="function"||(r=(i=t.__e)!=null),t.__e=t.__d=void 0,(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(u){P.__e(u,e)}n.base=n.__P=null}if(n=t.__k)for(c=0;c<n.length;c++)n[c]&&Yt(n[c],e,r);i!=null&&yf(i)}function Mg(t,e,r){return this.constructor(t,r)}function $t(t,e,r){var n,i,c;P.__&&P.__(t,e),i=(n=r===ji)?null:r&&r.__k||e.__k,t=Qe(Ot,null,[t]),c=[],Wi(e,(n?e:r||e).__k=t,i||ot,ot,e.ownerSVGElement!==void 0,r&&!n?[r]:i?null:kn.slice.call(e.childNodes),c,r||ot,n),Ef(c,t)}function Gi(t,e){$t(t,e,ji)}function kf(t,e){var r,n;for(n in e=nt(nt({},t.props),e),arguments.length>2&&(e.children=kn.slice.call(arguments,2)),r={},e)n!=="key"&&n!=="ref"&&(r[n]=e[n]);return En(t.type,r,e.key||t.key,e.ref||t.ref,null)}function Sn(t){var e={},r={__c:"__cC"+_f++,__:t,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,c=this;return this.getChildContext||(i=[],this.getChildContext=function(){return e[r.__c]=c,e},this.shouldComponentUpdate=function(u){c.props.value!==u.value&&i.some(function(m){m.context=u.value,xn(m)})},this.sub=function(u){i.push(u);var m=u.componentWillUnmount;u.componentWillUnmount=function(){i.splice(i.indexOf(u),1),m&&m.call(u)}}),n.children}};return r.Consumer.contextType=r,r.Provider.__=r,r}var P,_g,Mr,zi,wf,gf,ji,_f,ot,kn,yg,Cn=S(()=>{g();ot={},kn=[],yg=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;P={__e:function(t,e){for(var r,n;e=e.__;)if((r=e.__c)&&!r.__)try{if(r.constructor&&r.constructor.getDerivedStateFromError!=null&&(n=!0,r.setState(r.constructor.getDerivedStateFromError(t))),r.componentDidCatch!=null&&(n=!0,r.componentDidCatch(t)),n)return xn(r.__E=r)}catch(i){t=i}throw t}},_g=function(t){return t!=null&&t.constructor===void 0},Je.prototype.setState=function(t,e){var r;r=this.__s!==this.state?this.__s:this.__s=nt({},this.state),typeof t=="function"&&(t=t(r,this.props)),t&&nt(r,t),t!=null&&this.__v&&(e&&this.__h.push(e),xn(this))},Je.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),xn(this))},Je.prototype.render=Ot,Mr=[],zi=0,wf=typeof Promise=="function"?Promise.prototype.then.bind(Prom
8ise.resolve()):setTimeout,ji=ot,_f=0});function Qt(t,e){P.__h&&P.__h(We,t,Kt||e),Kt=0;var r=We.__H||(We.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Tn(t){return Kt=1,An(If,t)}function An(t,e,r){var n=Qt(Nt++,2);return n.__c||(n.__c=We,n.__=[r?r(e):If(void 0,e),function(i){var c=t(n.__[0],i);n.__[0]!==c&&(n.__[0]=c,n.__c.setState({}))}]),n.__}function $i(t,e){var r=Qt(Nt++,3);!P.__s&&ta(r.__H,e)&&(r.__=t,r.__H=e,We.__H.__h.push(r))}function In(t,e){var r=Qt(Nt++,4);!P.__s&&ta(r.__H,e)&&(r.__=t,r.__H=e,We.__h.push(r))}function Ki(t){return Kt=5,Rr(function(){return{current:t}},[])}function Qi(t,e,r){Kt=6,In(function(){typeof t=="function"?t(e()):t&&(t.current=e())},r==null?r:r.concat(t))}function Rr(t,e){var r=Qt(Nt++,7);return ta(r.__H,e)?(r.__H=e,r.__h=t,r.__=t()):r.__}function Zi(t,e){return Kt=8,Rr(function(){return t},e)}function Xi(t){var e=We.context[t.__c],r=Qt(Nt++,9);return r.__c=t,e?(r.__==null&&(r.__=!0,e.sub(We)),e.props.value):t.__}function ea(t,e){P.useDebugValue&&P.useDebugValue(e?e(t):t)}function kg(t){var e=Qt(Nt++,10),r=Tn();return e.__=t,We.componentDidCatch||(We.componentDidCatch=function(n){e.__&&e.__(n),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Rg(){Ji.some(function(t){if(t.__P)try{t.__H.__h.forEach(Vi),t.__H.__h.forEach(Yi),t.__H.__h=[]}catch(e){return t.__H.__h=[],P.__e(e,t.__v),!0}}),Ji=[]}function Vi(t){t.t&&t.t()}function Yi(t){var e=t.__();typeof e=="function"&&(t.t=e)}function ta(t,e){return!t||e.some(function(r,n){return r!==t[n]})}function If(t,e){return typeof e=="function"?e(t):e}var Nt,We,Rf,Kt,Ji,Sf,Cf,Tf,Af,ra=S(()=>{g();Cn();Kt=0,Ji=[],Sf=P.__r,Cf=P.diffed,Tf=P.__c,Af=P.unmount;P.__r=function(t){Sf&&Sf(t),Nt=0,(We=t.__c).__H&&(We.__H.__h.forEach(Vi),We.__H.__h.forEach(Yi),We.__H.__h=[])},P.diffed=function(t){Cf&&Cf(t);var e=t.__c;if(e){var r=e.__H;r&&r.__h.length&&(Ji.push(e)!==1&&Rf===P.requestAnimationFrame||((Rf=P.requestAnimationFrame)||function(n){var i,c=function(){clearTimeout(u),cancelAnimationFrame(i),setTimeout(n)},u=setTimeout(c,100);typeof window<"u"&&(i=requestAnimationFrame(c))})(Rg))}},P.__c=function(t,e){e.some(function(r){try{r.__h.forEach(Vi),r.__h=r.__h.filter(function(n){return!n.__||Yi(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],P.__e(n,r.__v)}}),Tf&&Tf(t,e)},P.unmount=function(t){Af&&Af(t);var e=t.__c;if(e){var r=e.__H;if(r)try{r.__.forEach(function(n){return n.t&&n.t()})}catch(n){P.__e(n,e.__v)}}}});var Xf={};st(Xf,{Children:()=>zf,Component:()=>Je,Fragment:()=>Ot,PureComponent:()=>Df,Suspense:()=>On,SuspenseList:()=>Zt,cloneElement:()=>$f,createContext:()=>Sn,createElement:()=>Qe,createFactory:()=>Yf,createPortal:()=>Jf,createRef:()=>Rn,default:()=>Og,findDOMNode:()=>Qf,forwardRef:()=>Hf,hydrate:()=>Ag,isValidElement:()=>sa,lazy:()=>Gf,memo:()=>Ff,render:()=>ia,unmountComponentAtNode:()=>Kf,unstable_batchedUpdates:()=>Zf,useCallback:()=>Zi,useContext:()=>Xi,useDebugValue:()=>ea,useEffect:()=>$i,useErrorBoundary:()=>kg,useImperativeHandle:()=>Qi,useLayoutEffect:()=>In,useMemo:()=>Rr,useReducer:()=>An,useRef:()=>Ki,useState:()=>Tn,version:()=>Ig});function aa(t,e){for(var r in e)t[r]=e[r];return t}function oa(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function Ff(t,e){function r(i){var c=this.props.ref,u=c==i.ref;return!u&&c&&(c.call?c(null):c.current=null),e?!e(this.props,i)||!u:oa(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Qe(t,aa({},i))}return n.prototype.isReactComponent=!0,n.displayName="Memo("+(t.displayName||t.name)+")",n.t=!0,n}function Hf(t){function e(r){var n=aa({},r);return delete n.ref,t(n,r.ref)}return e.prototype.isReactComponent=e.t=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}function jf(t){return t&&((t=aa({},t)).__c=null,t.__k=t.__k&&t.__k.map(jf)),t}function On(){this.__u=0,this.o=null,this.__b=null}function Wf(t){var e=t.__.__c;return e&&e.u&&e.u(t)}function Gf(t){var e,r,n;function i(c){if(e||(e=t()).then(function(u){r=u.default||u},function(u){n=u}),n)throw n;if(!r)throw e;return Qe(r,c)}return i.displayName="Lazy",i.t=!0,i}function Zt(){this.i=null,this.l=null}function Tg(t){var e=this,r=t.container,n=Qe(Cg,{context:e.context},t.vnode);return e.s&&e.s!==r&&(e.v.parentNode&&e.s.removeChild(e.v),Yt(e.h),e.p=!1),t.vnode?e.p?(r.__k=e.__k,$t(n,r),e.__k=r.__k):(e.v=document.createTextNode(""),Gi("",r),r.appendChild(e.v),e.p=!0,e.s=r,$t(n,r,e.v),e.__k=e.v.__k):e.p&&(e.v.parentNode&&e.s.removeChild(e.v),Yt(e.h)),e.h=n,e.componentWillUnmount=function(){e.v.parentNode&&e.s.removeChild(e.v),Yt(e.h)},null}function Jf(t,e){return Qe(Tg,{vnode:t,container:e})}function ia(t,e,r){if(e.__k==null)for(;e.firstChild;)e.removeChild(e.firstChild);
8return $t(t,e),typeof r=="function"&&r(),t?t.__c:null}function Ag(t,e,r){return Gi(t,e),typeof r=="function"&&r(),t?t.__c:null}function na(t,e){t["UNSAFE_"+e]&&!t[e]&&Object.defineProperty(t,e,{configurable:!1,get:function(){return this["UNSAFE_"+e]},set:function(r){this["UNSAFE_"+e]=r}})}function Yf(t){return Qe.bind(null,t)}function sa(t){return!!t&&t.$$typeof===Vf}function $f(t){return sa(t)?kf.apply(null,arguments):t}function Kf(t){return!!t.__k&&($t(null,t),!0)}function Qf(t){return t&&(t.base||t.nodeType===1&&t)||null}var Df,Of,Nf,zf,Sg,Lf,Cg,Bf,Vf,Pf,qf,Uf,Ig,Zf,Og,eh=S(()=>{g();ra();ra();Cn();Cn();Df=function(t){var e,r;function n(i){var c;return(c=t.call(this,i)||this).isPureReactComponent=!0,c}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.prototype.shouldComponentUpdate=function(i,c){return oa(this.props,i)||oa(this.state,c)},n}(Je);Of=P.__b;P.__b=function(t){t.type&&t.type.t&&t.ref&&(t.props.ref=t.ref,t.ref=null),Of&&Of(t)};Nf=function(t,e){return t?it(t).reduce(function(r,n,i){return r.concat(e(n,i))},[]):null},zf={map:Nf,forEach:Nf,count:function(t){return t?it(t).length:0},only:function(t){if((t=it(t)).length!==1)throw new Error("Children.only() expects only one child.");return t[0]},toArray:it},Sg=P.__e;P.__e=function(t,e,r){if(t.then){for(var n,i=e;i=i.__;)if((n=i.__c)&&n.__c)return n.__c(t,e.__c)}Sg(t,e,r)},(On.prototype=new Je).__c=function(t,e){var r=this;r.o==null&&(r.o=[]),r.o.push(e);var n=Wf(r.__v),i=!1,c=function(){i||(i=!0,n?n(u):u())};e.__c=e.componentWillUnmount,e.componentWillUnmount=function(){c(),e.__c&&e.__c()};var u=function(){var m;if(!--r.__u)for(r.__v.__k[0]=r.state.u,r.setState({u:r.__b=null});m=r.o.pop();)m.forceUpdate()};r.__u++||r.setState({u:r.__b=r.__v.__k[0]}),t.then(c,c)},On.prototype.render=function(t,e){return this.__b&&(this.__v.__k[0]=jf(this.__b),this.__b=null),[Qe(Je,null,e.u?null:t.children),e.u&&t.fallback]};Lf=function(t,e,r){if(++r[1]===r[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(r=t.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.i=r=r[2]}};(Zt.prototype=new Je).u=function(t){var e=this,r=Wf(e.__v),n=e.l.get(t);return n[0]++,function(i){var c=function(){e.props.revealOrder?(n.push(i),Lf(e,t,n)):i()};r?r(c):c()}},Zt.prototype.render=function(t){this.i=null,this.l=new Map;var e=it(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.l.set(e[r],this.i=[1,0,this.i]);return t.children},Zt.prototype.componentDidUpdate=Zt.prototype.componentDidMount=function(){var t=this;t.l.forEach(function(e,r){Lf(t,r,e)})};Cg=function(){function t(){}var e=t.prototype;return e.getChildContext=function(){return this.props.context},e.render=function(r){return r.children},t}();Bf=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;Je.prototype.isReactComponent={};Vf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103;Pf=P.event;P.event=function(t){Pf&&(t=Pf(t)),t.persist=function(){};var e=!1,r=!1,n=t.stopPropagation;t.stopPropagation=function(){n.call(t),e=!0};var i=t.preventDefault;return t.preventDefault=function(){i.call(t),r=!0},t.isPropagationStopped=function(){return e},t.isDefaultPrevented=function(){return r},t.nativeEvent=t};qf={configurable:!0,get:function(){return this.class}},Uf=P.vnode;P.vnode=function(t){t.$$typeof=Vf;var e=t.type,r=t.props;if(e){if(r.class!=r.className&&(qf.enumerable="className"in r,r.className!=null&&(r.class=r.className),Object.defineProperty(r,"className",qf)),typeof e!="function"){var n,i,c;for(c in r.defaultValue&&r.value!==void 0&&(r.value||r.value===0||(r.value=r.defaultValue),delete r.defaultValue),Array.isArray(r.value)&&r.multiple&&e==="select"&&(it(r.children).forEach(function(u){r.value.indexOf(u.props.value)!=-1&&(u.props.selected=!0)}),delete r.value),r)if(n=Bf.test(c))break;if(n)for(c in i=t.props={},r)i[Bf.test(c)?c.replace(/[A-Z0-9]/,"-$&").toLowerCase():c]=r[c]}(function(u){var m=t.type,b=t.props;if(b&&typeof m=="string"){var E={};for(var _ in b)/^on(Ani|Tra|Tou)/.test(_)&&(b[_.toLowerCase()]=b[_],delete b[_]),E[_.toLowerCase()]=_;if(E.ondoubleclick&&(b.ondblclick=b[E.ondoubleclick],delete b[E.ondoubleclick]),E.onbeforeinput&&(b.onbeforeinput=b[E.onbeforeinput],delete b[E.onbeforeinput]),E.onchange&&(m==="textarea"||m.toLowerCase()==="input"&&!/^fil|che|ra/i.test(b.type))){var M=E.oninput||"oninput";b[M]||(b[M]=b[E.onchange],delete b[E.onchange])}}})(),typeof e=="function"&&!e.m&&e.prototype&&(na(e.prototype,"componentWillMount"),na(e.prototype,"componentWillReceiveProps"),na(e.prototype,"componentWillUpdate"),e.m=!0)}Uf&&Uf(t)};Ig="16.8.0";Zf=function(t,e){return t(e)},Og={useState:Tn,useReducer:An,useEffect:$i,useLayoutEffect:In,useRef:Ki,useImperativeHandle:Qi,useMemo:Rr,useCallback:Zi,useContext:Xi,useDebugValue:ea,version:"16.8.0",Children:zf,render:ia,hydrate:ia,unmountComponentAtNode:Kf,createPortal:Jf,createElement:Qe,createContext:Sn,createFactory:Yf,cloneElement:$f,createRef:Rn,Fragment:Ot,isValidElement:sa,findDOMNode:Qf,Component:Je,PureComponent:Df,memo:Ff,forwardRef:Hf,unstable_batchedUpdates:Zf,Suspense:On,SuspenseList:Zt,lazy:Gf}});var fh=I((_y,uh)=>{g();function nh(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var je=(Io(),Xt(Ys)),oh=nh(lf()),Ng=nh(pf()),R=(eh(),Xt(Xf));function Lg(t){oh.toString(t,{type:"terminal"}).then(console.log)}var Bg=`:root { 9 --animation-duration: 300ms; 10} 11 12@keyframes fadeIn { 13 from { 14 opacity: 0; 15 } 16 to { 17 opacity: 1; 18 } 19} 20 21@keyframes fadeOut { 22 from { 23 opacity: 1; 24 } 25 to { 26 opacity: 0; 27 } 28} 29 30.animated { 31 animation-duration: var(--animation-duration); 32 animation-fill-mode: both; 33} 34 35.fadeIn { 36 animation-name: fadeIn; 37} 38 39.fadeOut { 40 animation-name: fadeOut; 41} 42 43#walletconnect-wrapper { 44 -webkit-user-select: none; 45 align-items: center; 46 display: flex; 47 height: 100%; 48 justify-content: center; 49 left: 0; 50 pointer-events: none; 51 position: fixed; 52 top: 0; 53 user-select: none; 54 width: 100%; 55 z-index: 99999999999999; 56} 57 58.walletconnect-modal__headerLogo { 59 height: 21px; 60} 61 62.walletconnect-modal__header p { 63 color: #ffffff; 64 font-size: 20px; 65 font-weight: 600; 66 margin: 0; 67 align-items: flex-start; 68 display: flex; 69 flex: 1; 70 margin-left: 5px; 71} 72 73.walletconnect-modal__close__wrapper { 74 position: absolute; 75 top: 0px; 76 right: 0px; 77 z-index: 10000; 78 background: white; 79 border-radius: 26px; 80 padding: 6px; 81 box-sizing: border-box; 82 width: 26px;
83 height: 26px; 84 cursor: pointer; 85} 86 87.walletconnect-modal__close__icon { 88 position: relative; 89 top: 7px; 90 right: 0; 91 display: flex; 92 align-items: center; 93 justify-content: center; 94 transform: rotate(45deg); 95} 96 97.walletconnect-modal__close__line1 { 98 position: absolute; 99 width: 100%; 100 border: 1px solid rgb(48, 52, 59); 101} 102 103.walletconnect-modal__close__line2 { 104 position: absolute; 105 width: 100%; 106 border: 1px solid rgb(48, 52, 59); 107 transform: rotate(90deg); 108} 109 110.walletconnect-qrcode__base { 111 -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 112 background: rgba(37, 41, 46, 0.95); 113 height: 100%; 114 left: 0; 115 pointer-events: auto; 116 position: fixed; 117 top: 0; 118 transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); 119 width: 100%; 120 will-change: opacity; 121 padding: 40px; 122 box-sizing: border-box; 123} 124 125.walletconnect-qrcode__text { 126 color: rgba(60, 66, 82, 0.6); 127 font-size: 16px; 128 font-weight: 600; 129 letter-spacing: 0; 130 line-height: 1.1875em; 131 margin: 10px 0 20px 0; 132 text-align: center; 133 width: 100%; 134} 135 136@media only screen and (max-width: 768px) { 137 .walletconnect-qrcode__text { 138 font-size: 4vw; 139 } 140} 141 142@media only screen and (max-width: 320px) { 143 .walletconnect-qrcode__text { 144 font-size: 14px; 145 } 146} 147 148.walletconnect-qrcode__image { 149 width: calc(100% - 30px); 150 box-sizing: border-box; 151 cursor: none; 152 margin: 0 auto; 153} 154 155.walletconnect-qrcode__notification { 156 position: absolute; 157 bottom: 0; 158 left: 0; 159 right: 0; 160 font-size: 16px; 161 padding: 16px 20px; 162 border-radius: 16px; 163 text-align: center; 164 transition: all 0.1s ease-in-out; 165 background: white; 166 color: black; 167 margin-bottom: -60px; 168 opacity: 0; 169} 170 171.walletconnect-qrcode__notification.notification__show { 172 opacity: 1; 173} 174 175@media only screen and (max-width: 768px) { 176 .walletconnect-modal__header { 177 height: 130px; 178 } 179 .walletconnect-modal__base { 180 overflow: auto; 181 } 182} 183 184@media only screen and (min-device-width: 415px) and (max-width: 768px) { 185 #content { 186 max-width: 768px; 187 box-sizing: border-box; 188 } 189} 190 191@media only screen and (min-width: 375px) and (max-width: 415px) { 192 #content { 193 max-width: 414px; 194 box-sizing: border-box; 195 } 196} 197 198@media only screen and (min-width: 320px) and (max-width: 375px) { 199 #content { 200 max-width: 375px; 201 box-sizing: border-box; 202 } 203} 204 205@media only screen and (max-width: 320px) { 206 #content { 207 max-width: 320px; 208 box-sizing: border-box; 209 } 210} 211 212.walletconnect-modal__base { 213 -webkit-font-smoothing: antialiased; 214 background: #ffffff; 215 border-radius: 24px; 216 box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4); 217 font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font, 218 -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, 219 "Open Sans", "Helvetica Neue", sans-serif; 220 margin-top: 41px; 221 padding: 24px 24px 22px; 222 pointer-events: auto; 223 position: relative; 224 text-align: center; 225 transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); 226 will-change: transform; 227 overflow: visible; 228 transform: translateY(-50%); 229 top: 50%; 230 max-width: 500px; 231 margin: auto; 232} 233 234@media only screen and (max-width: 320px) { 235 .walletconnect-modal__base { 236 padding: 24px 12px; 237 } 238} 239 240.walletconnect-modal__base .hidden { 241 transform: translateY(150%); 242 transition: 0.125s cubic-bezier(0.4, 0, 1, 1); 243} 244 245.walletconnect-modal__header { 246 align-items: center; 247 display: flex; 248 height: 26px; 249 left: 0; 250 justify-content: space-between; 251 position: absolute; 252 top: -42px; 253 width: 100%; 254} 255 256.walletconnect-modal__base .wc-logo { 257 align-items: center; 258 display: flex; 259 height: 26px; 260 margin-top: 15px; 261 padding-bottom: 15px; 262 pointer-events: auto; 263} 264 265.walletconnect-modal__base .wc-logo div { 266 background-color: #3399ff; 267 height: 21px; 268 margin-right: 5px; 269 mask-image: url("images/wc-logo.svg") center no-repeat; 270 width: 32px; 271} 272 273.walletconnect-modal__base .wc-logo p { 274 color: #ffffff; 275 font-size: 20px; 276 font-weight: 600; 277 margin: 0; 278} 279 280.walletconnect-modal__base h2 { 281 color: rgba(60, 66, 82, 0.6); 282 font-size: 16px; 283 font-weight: 600; 284 letter-spacing: 0; 285 line-height: 1.1875em; 286 margin: 0 0 19px 0; 287 text-align: center; 288 width: 100%; 289} 290 291.walletconnect-modal__base__row { 292 -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 293 align-items: center; 294 border-radius: 20px; 295 cursor: pointer; 296 display: flex; 297 height: 56px; 298 justify-content: space-between; 299 padding: 0 15px; 300 position: relative; 301 margin: 0px 0px 8px; 302 text-align: left; 303 transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94); 304 will-change: transform; 305 text-decoration: none; 306} 307 308.walletconnect-modal__base__row:hover { 309 background: rgba(60, 66, 82, 0.06); 310} 311 312.walletconnect-modal__base__row:active { 313 background: rgba(60, 66, 82, 0.06); 314 transform: scale(0.975); 315 transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); 316} 317 318.walletconnect-modal__base__row__h3 { 319 color: #25292e; 320 font-size: 20px; 321 font-weight: 700; 322 margin: 0; 323 padding-bottom: 3px; 324} 325 326.walletconnect-modal__base__row__right { 327 align-items: center; 328 display: flex; 329 justify-content: center; 330} 331 332.walletconnect-modal__base__row__right__app-icon { 333 border-radius: 8px; 334 height: 34px; 335 margin: 0 11px 2px 0; 336 width: 34px; 337 background-size: 100%; 338 box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25); 339} 340 341.walletconnect-modal__base__row__right__caret { 342 height: 18px; 343 opacity: 0.3; 344 transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); 345 width: 8px; 346 will-change: opacity; 347} 348 349.walletconnect-modal__base__row:hover .caret, 350.walletconnect-modal__base__row:active .caret { 351 opacity: 0.6; 352} 353 354.walletconnect-modal__mobile__toggle { 355 width: 80%; 356 display: flex; 357 margin: 0 auto; 358 position: relative; 359 overflow: hidden; 360 border-radius: 8px; 361 margin-bottom: 18px; 362 background: #d4d5d9; 363} 364 365.walletconnect-modal__single_wallet { 366 display: flex; 367 justify-content: center; 368 margin-top: 7px; 369 margin-bottom: 18px; 370} 371 372.walletconnect-modal__single_wallet a { 373 cursor: pointer;
374 color: rgb(64, 153, 255); 375 font-size: 21px; 376 font-weight: 800; 377 text-decoration: none !important; 378 margin: 0 auto; 379} 380 381.walletconnect-modal__mobile__toggle_selector { 382 width: calc(50% - 8px); 383 background: white; 384 position: absolute; 385 border-radius: 5px; 386 height: calc(100% - 8px); 387 top: 4px; 388 transition: all 0.2s ease-in-out; 389 transform: translate3d(4px, 0, 0); 390} 391 392.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector { 393 transform: translate3d(calc(100% + 12px), 0, 0); 394} 395 396.walletconnect-modal__mobile__toggle a { 397 font-size: 12px; 398 width: 50%; 399 text-align: center; 400 padding: 8px; 401 margin: 0; 402 font-weight: 600; 403 z-index: 1; 404} 405 406.walletconnect-modal__footer { 407 display: flex; 408 justify-content: center; 409 margin-top: 20px; 410} 411 412@media only screen and (max-width: 768px) { 413 .walletconnect-modal__footer { 414 margin-top: 5vw; 415 } 416} 417 418.walletconnect-modal__footer a { 419 cursor: pointer; 420 color: #898d97; 421 font-size: 15px; 422 margin: 0 auto; 423} 424 425@media only screen and (max-width: 320px) { 426 .walletconnect-modal__footer a { 427 font-size: 14px; 428 } 429} 430 431.walletconnect-connect__buttons__wrapper { 432 max-height: 44vh; 433} 434 435.walletconnect-connect__buttons__wrapper__android { 436 margin: 50% 0; 437} 438 439.walletconnect-connect__buttons__wrapper__wrap { 440 display: grid; 441 grid-template-columns: repeat(4, 1fr); 442 margin: 10px 0; 443} 444 445@media only screen and (min-width: 768px) { 446 .walletconnect-connect__buttons__wrapper__wrap { 447 margin-top: 40px; 448 } 449} 450 451.walletconnect-connect__button { 452 background-color: rgb(64, 153, 255); 453 padding: 12px; 454 border-radius: 8px; 455 text-decoration: none; 456 color: rgb(255, 255, 255); 457 font-weight: 500; 458} 459 460.walletconnect-connect__button__icon_anchor { 461 cursor: pointer; 462 display: flex; 463 justify-content: flex-start; 464 align-items: center; 465 margin: 8px; 466 width: 42px; 467 justify-self: center; 468 flex-direction: column; 469 text-decoration: none !important; 470} 471 472@media only screen and (max-width: 320px) { 473 .walletconnect-connect__button__icon_anchor { 474 margin: 4px; 475 } 476} 477 478.walletconnect-connect__button__icon { 479 border-radius: 10px; 480 height: 42px; 481 margin: 0; 482 width: 42px; 483 background-size: cover !important; 484 box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25); 485} 486 487.walletconnect-connect__button__text { 488 color: #424952; 489 font-size: 2.7vw; 490 text-decoration: none !important; 491 padding: 0; 492 margin-top: 1.8vw; 493 font-weight: 600; 494} 495 496@media only screen and (min-width: 768px) { 497 .walletconnect-connect__button__text { 498 font-size: 16px; 499 margin-top: 12px; 500 } 501} 502 503.walletconnect-search__input { 504 border: none; 505 background: #d4d5d9; 506 border-style: none; 507 padding: 8px 16px; 508 outline: none; 509 font-style: normal; 510 font-stretch: normal; 511 font-size: 16px; 512 font-style: normal; 513 font-stretch: normal; 514 line-height: normal; 515 letter-spacing: normal; 516 text-align: left; 517 border-radius: 8px; 518 width: calc(100% - 16px); 519 margin: 0; 520 margin-bottom: 8px; 521} 522`,vy=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator",wy=typeof Symbol<"u"?Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")):"@@asyncIterator";function Pg(t,e){try{var r=t()}catch(n){return e(n)}return r&&r.then?r.then(void 0,e):r}
522var qg="data:image/svg+xml,%3Csvg height='185' viewBox='0 0 300 185' width='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m61.4385429 36.2562612c48.9112241-47.8881663 128.2119871-47.8881663 177.1232091 0l5.886545 5.7634174c2.445561 2.3944081 2.445561 6.2765112 0 8.6709204l-20.136695 19.715503c-1.222781 1.1972051-3.2053 1.1972051-4.428081 0l-8.100584-7.9311479c-34.121692-33.4079817-89.443886-33.4079817-123.5655788 0l-8.6750562 8.4936051c-1.2227816 1.1972041-3.205301 1.1972041-4.4280806 0l-20.1366949-19.7155031c-2.4455612-2.3944092-2.4455612-6.2765122 0-8.6709204zm218.7677961 40.7737449 17.921697 17.546897c2.445549 2.3943969 2.445563 6.2764769.000031 8.6708899l-80.810171 79.121134c-2.445544 2.394426-6.410582 2.394453-8.85616.000062-.00001-.00001-.000022-.000022-.000032-.000032l-57.354143-56.154572c-.61139-.598602-1.60265-.598602-2.21404 0-.000004.000004-.000007.000008-.000011.000011l-57.3529212 56.154531c-2.4455368 2.394432-6.4105755 2.394472-8.8561612.000087-.0000143-.000014-.0000296-.000028-.0000449-.000044l-80.81241943-79.122185c-2.44556021-2.394408-2.44556021-6.2765115 0-8.6709197l17.92172963-17.5468673c2.4455602-2.3944082 6.4105989-2.3944082 8.8561602 0l57.3549775 56.155357c.6113908.598602 1.602649.598602 2.2140398 0 .0000092-.000009.0000174-.000017.0000265-.000024l57.3521031-56.155333c2.445505-2.3944633 6.410544-2.3945531 8.856161-.0002.000034.0000336.000068.0000673.000101.000101l57.354902 56.155432c.61139.598601 1.60265.598601 2.21404 0l57.353975-56.1543249c2.445561-2.3944092 6.410599-2.3944092 8.85616 0z' fill='%233b99fc'/%3E%3C/svg%3E",Ug="WalletConnect",Dg=300,Fg="rgb(64, 153, 255)",ih="walletconnect-wrapper",th="walletconnect-style-sheet",ah="walletconnect-qrcode-modal",Hg="walletconnect-qrcode-close",sh="walletconnect-qrcode-text",zg="walletconnect-connect-button";function jg(t){return R.createElement("div",{className:"walletconnect-modal__header"},R.createElement("img",{src:qg,className:"walletconnect-modal__headerLogo"}),R.createElement("p",null,Ug),R.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:t.onClose},R.createElement("div",{id:Hg,className:"walletconnect-modal__close__icon"},R.createElement("div",{className:"walletconnect-modal__close__line1"}),R.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function Wg(t){return R.createElement("a",{className:"walletconnect-connect__button",href:t.href,id:zg+"-"+t.name,onClick:t.onClick,rel:"noopener noreferrer",style:{backgroundColor:t.color},target:"_blank"},t.name)}var Gg="data:image/svg+xml,%3Csvg fill='none' height='18' viewBox='0 0 8 18' width='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath clip-rule='evenodd' d='m.586301.213898c-.435947.33907-.5144813.967342-.175411 1.403292l4.87831 6.27212c.28087.36111.28087.86677 0 1.22788l-4.878311 6.27211c-.33907.436-.260536 1.0642.175412 1.4033.435949.3391 1.064219.2605 1.403289-.1754l4.87832-6.2721c.84259-1.08336.84259-2.60034 0-3.68367l-4.87832-6.27212c-.33907-.4359474-.96734-.514482-1.403289-.175412z' fill='%233c4252' fill-rule='evenodd'/%3E%3C/svg%3E";function Jg(t){var e=t.color,r=t.href,n=t.name,i=t.logo,c=t.onClick;return R.createElement("a",{className:"walletconnect-modal__base__row",href:r,onClick:c,rel:"noopener noreferrer",target:"_blank"},R.createElement("h3",{className:"walletconnect-modal__base__row__h3"},n),R.createElement("div",{className:"walletconnect-modal__base__row__right"},R.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+i+"') "+e,backgroundSize:"100%"}}),R.createElement("img",{src:Gg,className:"walletconnect-modal__base__row__right__caret"})))}function Vg(t){var e=t.color,r=t.href,n=t.name,i=t.logo,c=t.onClick,u=window.innerWidth<768?(n.length>8?2.5:2.7)+"vw":"inherit";return R.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:r,onClick:c,rel:"noopener noreferrer",target:"_blank"},R.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+i+"') "+e,backgroundSize:"100%"}}),R.createElement("div",{style:{fontSize:u},className:"walletconnect-connect__button__text"},n))}var Yg=5,ca=12;function $g(t){var e=je.isAndroid(),r=R.useState(""),n=r[0],i=r[1],c=R.useState(""),u=c[0],m=c[1],b=R.useState(1),E=b[0],_=b[1],M=u?t.links.filter(function(j){return j.name.toLowerCase().includes(u.toLowerCase())}):t.links,k=t.errorMessage,N=u||M.length>Yg,q=Math.ceil(M.length/ca),D=[(E-1)*ca+1,E*ca],C=M.length?M.filter(function(j,te){return te+1>=D[0]&&te+1<=D[1]}):[],W=!e&&q>1,L=void 0;function z(j){i(j.target.value),clearTimeout(L),j.target.value?L=setTimeout(function(){m(j.target.value),_(1)},1e3):(i(""),m(""),_(1))}return R.createElement("div",null,R.createElement("p",{id:sh,className:"walletconnect-qrcode__text"},e?t.text.connect_mobile_wallet:t.text.choose_preferred_wallet),!e&&R.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:n,onChange:z}),R.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(e?"__android":N&&M.length?"__wrap":"")},e?R.createElement(Wg,{name:t.text.connect,color:Fg,href:t.uri,onClick:R.useCallback(function(){je.saveMobileLinkInfo({name:"Unknown",href:t.uri})},[])}):C.length?C.map(function(j){var te=j.color,Ue=j.name,B=j.shortName,Z=j.logo,w=je.formatIOSMobile(t.uri,j),o=R.useCallback(function(){je.saveMobileLinkInfo({name:Ue,href:w})},[C]);return N?R.createElement(Vg,{color:te,href:w,name:B||Ue,logo:Z,onClick:o}):R.createElement(Jg,{color:te,href:w,name:Ue,logo:Z,onClick:o})}):R.createElement(R.Fragment,null,R.createElement("p",null,k.length?t.errorMessage:!!t.links.length&&!M.length?t.text.no_wallets_found:t.text.loading))),W&&R.createElement("div",{className:"walletconnect-modal__footer"},Array(q).fill(0).map(function(j,te){var Ue=te+1,B=E===Ue;return R.createElement("a",{style:{margin:"auto 10px",fontWeight:B?"bold":"normal"},onClick:function(){return _(Ue)}},Ue)})))}function Kg(t){var e=!!t.message.trim();return R.createElement("div",{className:"walletconnect-qrcode__notification"+(e?" notification__show":"")},t.message)}var Qg=function(t){try{var e="";return Promise.resolve(oh.toString(t,{margin:0,type:"svg"})).then(function(r){return typeof r=="string"&&(e=r.replace("<svg",'<svg class="walletconnect-qrcode__image"')),e})}catch(r){return Promise.reject(r)}};
522function Zg(t){var e=R.useState(""),r=e[0],n=e[1],i=R.useState(""),c=i[0],u=i[1];R.useEffect(function(){try{return Promise.resolve(Qg(t.uri)).then(function(b){u(b)})}catch(b){Promise.reject(b)}},[]);var m=function(){var b=Ng(t.uri);b?(n(t.text.copied_to_clipboard),setInterval(function(){return n("")},1200)):(n("Error"),setInterval(function(){return n("")},1200))};return R.createElement("div",null,R.createElement("p",{id:sh,className:"walletconnect-qrcode__text"},t.text.scan_qrcode_with_wallet),R.createElement("div",{dangerouslySetInnerHTML:{__html:c}}),R.createElement("div",{className:"walletconnect-modal__footer"},R.createElement("a",{onClick:m},t.text.copy_to_clipboard)),R.createElement(Kg,{message:r}))}function Xg(t){var e=je.isAndroid(),r=je.isMobile(),n=r?t.qrcodeModalOptions&&t.qrcodeModalOptions.mobileLinks?t.qrcodeModalOptions.mobileLinks:void 0:t.qrcodeModalOptions&&t.qrcodeModalOptions.desktopLinks?t.qrcodeModalOptions.desktopLinks:void 0,i=R.useState(!1),c=i[0],u=i[1],m=R.useState(!1),b=m[0],E=m[1],_=R.useState(!r),M=_[0],k=_[1],N={mobile:r,text:t.text,uri:t.uri,qrcodeModalOptions:t.qrcodeModalOptions},q=R.useState(""),D=q[0],C=q[1],W=R.useState(!1),L=W[0],z=W[1],j=R.useState([]),te=j[0],Ue=j[1],B=R.useState(""),Z=B[0],w=B[1],o=function(){b||c||n&&!n.length||te.length>0||R.useEffect(function(){var l=function(){try{if(e)return Promise.resolve();u(!0);var f=Pg(function(){var h=t.qrcodeModalOptions&&t.qrcodeModalOptions.registryUrl?t.qrcodeModalOptions.registryUrl:je.getWalletRegistryUrl();return Promise.resolve(fetch(h)).then(function(v){return Promise.resolve(v.json()).then(function(y){var d=y.listings,a=r?"mobile":"desktop",p=je.getMobileLinkRegistry(je.formatMobileRegistry(d,a),n);u(!1),E(!0),w(p.length?"":t.text.no_supported_wallets),Ue(p);var T=p.length===1;T&&(C(je.formatIOSMobile(t.uri,p[0])),k(!0)),z(T)})})},function(h){u(!1),E(!0),w(t.text.something_went_wrong),console.error(h)});return Promise.resolve(f&&f.then?f.then(function(){}):void 0)}catch(h){return Promise.reject(h)}};l()})};o();var s=r?M:!M;return R.createElement("div",{id:ah,className:"walletconnect-qrcode__base animated fadeIn"},R.createElement("div",{className:"walletconnect-modal__base"},R.createElement(jg,{onClose:t.onClose}),L&&M?R.createElement("div",{className:"walletconnect-modal__single_wallet"},R.createElement("a",{onClick:function(){return je.saveMobileLinkInfo({name:te[0].name,href:D})},href:D,rel:"noopener noreferrer",target:"_blank"},t.text.connect_with+" "+(L?te[0].name:"")+" \u203A")):e||c||!c&&te.length?R.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(s?" right__selected":"")},R.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),r?R.createElement(R.Fragment,null,R.createElement("a",{onClick:function(){return k(!1),o()}},t.text.mobile),R.createElement("a",{onClick:function(){return k(!0)}},t.text.qrcode)):R.createElement(R.Fragment,null,R.createElement("a",{onClick:function(){return k(!0)}},t.text.qrcode),R.createElement("a",{onClick:function(){return k(!1),o()}},t.text.desktop))):null,R.createElement("div",null,M||!e&&!c&&!te.length?R.createElement(Zg,Object.assign({},N)):R.createElement($g,Object.assign({},N,{links:te,errorMessage:Z})))))}var em={choose_preferred_wallet:"W\xE4hle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterst\xFCtzten Wallet",no_wallets_found:"keine Wallet gefunden"},tm={choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},rm={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xF3vil",scan_qrcode_with_wallet:"Escanea el c\xF3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xF3 mal",no_supported_wallets:"Todav\xEDa no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},nm={choose_preferred_wallet:"Choisissez votre portefeuille pr\xE9f\xE9r\xE9",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copi\xE9!",connect_with:"Connectez-vous \xE0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xE9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xE9"},om={choose_preferred_wallet:"\uC6D0\uD558\uB294 \uC9C0\uAC11\uC744 \uC120\uD0DD\uD558\uC138\uC694",connect_mobile_wallet:"\uBAA8\uBC14\uC77C \uC9C0\uAC11\uACFC \uC5F0\uACB0",scan_qrcode_with_wallet:"WalletConnect \uC9C0\uC6D0 \uC9C0\uAC11\uC5D0\uC11C QR\uCF54\uB4DC\uB97C \uC2A4\uCE94\uD558\uC138\uC694",connect:"\uC5F0\uACB0",qrcode:"QR \uCF54\uB4DC",mobile:"\uBAA8\uBC14\uC77C",desktop:"\uB370\uC2A4\uD06C\uD0D1",copy_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC",copied_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4!",connect_with:"\uC640 \uC5F0\uACB0\uD558\uB2E4",loading:"\uB85C\uB4DC \uC911...",something_went_wrong:"\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",no_supported_wallets:"\uC544\uC9C1 \uC9C0\uC6D0\uB418\uB294 \uC9C0\uAC11\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",no_wallets_found:"\uC9C0\uAC11\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4"},im={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xE0 carteira m\xF3vel",scan_qrcode_with_wallet:"Ler o c\xF3digo QR com uma carteira compat\xEDvel com WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda n\xE3o h\xE1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},am={choose_preferred_wallet:"\u9009\u62E9\u4F60\u7684\u94B1\u5305",connect_mobile_wallet:"\u8FDE\u63A5\u81F3\u79FB\u52A8\u7AEF\u94B1\u5305",scan_qrcode_with_wallet:"\u4F7F\u7528\u517C\u5BB9 WalletConnect \u7684\u94B1\u5305\u626B\u63CF\u4E8C\u7EF4\u7801",connect:"\u8FDE\u63A5",qrcode:"\u4E8C\u7EF4\u7801",mobile:"\u79FB\u52A8",desktop:"\u684C\u9762",copy_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F",copied_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F\u6210\u529F\uFF01",connect_with:"\u901A\u8FC7\u4EE5\u4E0B\u65B9\u5F0F\u8FDE\u63A5",loading:"\u6B63\u5728\u52A0\u8F7D...",something_went_wrong:"\u51FA\u4E86\u95EE\u9898",no_supported_wallets:"\u76EE\u524D\u8FD8\u6CA1\u6709\u652F\u6301\u7684\u94B1\u5305",no_wallets_found:"\u6CA1\u6709\u627E\u5230\u94B1\u5305"},sm={choose_preferred_wallet:"\u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0631\u062F \u0646\u0638\u0631 \u062E\u0648\u062F \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",connect_mobile_wallet:"\u0628\u0647 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0628\u0627\u06CC\u0644 \u0648\u0635\u0644 \u0634\u0648\u06CC\u062F",scan_qrcode_with_wallet:"\u06A9\u062F QR \u0631\u0627 \u0628\u0627 \u06CC\u06A9 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0633\u0627\u0632\u06AF\u0627\u0631 \u0628\u0627 WalletConnect \u0627\u0633\u06A9\u0646 \u06A9\u0646\u06CC\u062F",connect:"\u0627\u062A\u0635\u0627\u0644",qrcode:"\u06A9\u062F QR",mobile:"\u0633\u06CC\u0627\u0631",desktop:"\u062F\u0633\u06A9\u062A\u0627\u067E",copy_to_clipboard:"\u06A9\u067E\u06CC \u0628\u0647 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F",copied_to_clipboard:"\u062F\u0631 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F \u06A9\u067E\u06CC \u0634\u062F!",connect_with:"\u0627\u0631\u062A\u0628\u0627\u0637 \u0628\u0627",loading:"...\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC",something_went_wrong:"\u0645\u0634\u06A9\u0644\u06CC \u067E\u06CC\u0634 \u0622\u0645\u062F",no_supported_wallets:"\u0647\u0646\u0648\u0632 \u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0634\u062F\u0647 \u0627\u06CC \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u062F",no_wallets_found:"\u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644\u06CC \u067E\u06CC\u062F\u0627 \u0646\u0634\u062F"},rh={de:em,en:tm,es:rm,fr:nm,ko:om,pt:im,zh:am,fa:sm};function cm(){var t=je.getDocumentOrThrow(),e=t.getElementById(th);e&&t.head.removeChild(e);var r=t.createElement("style");r.setAttribute("id",th),r.innerText=Bg,t.head.appendChild(r)}function lm(){var t=je.getDocumentOrThrow(),e=t.createElement("div");return e.setAttribute("id",ih),t.body.appendChild(e),e}function ch(){var t=je.getDocumentOrThrow(),e=t.getElementById(ah);e&&(e.className=e.className.replace("fadeIn","fadeOut"),setTimeout(function(){var r=t.getElementById(ih);r&&t.body.removeChild(r)},Dg))}function um(t){return function(){ch(),t&&t()}}function fm(){var t=je.getNavigatorOrThrow().language.split("-")[0]||"en";return rh[t]||rh.en}function hm(t,e,r){cm();var n=lm();R.render(R.createElement(Xg,{text:fm(),uri:t,onClose:um(e),qrcodeModalOptions:r}),n)}function dm(){ch()}var lh=function(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"};function pm(t,e,r){console.log(t),lh()?Lg(t):hm(t,e,r)}function gm(){lh()||dm()}var mm={open:pm,close:gm};uh.exports=mm});var hh,dh,la,ph=S(()=>{g();hh=re(eo());Xl();dh=re(fh());po();or();la=class extends Pr{constructor(e){super();this.events=new hh.default,this.accounts=[],this.chainId=1,this.pending=!1,this.bridge="https://bridge.walletconnect.org",this.qrcode=!0,this.qrcodeModalOptions=void 0,this.opts=e,this.chainId=(e==null?void 0:e.chainId)||this.chainId,this.wc=this.register(e)}get connected(){return typeof this.wc<"u"&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async open(e){if(this.connected){this.onOpen();return}return new Promise((r,n)=>{this.on("error",i=>{n(i)}),this.on("open",()=>{r()}),this.create(e)})}async close(){typeof this.wc>"u"||(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(r=>this.events.emit("payload",r)).catch(r=>this.events.emit("payload",Bt(e.id,r.message)))}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=(e==null?void 0:e.connector)?e.connector.bridge:(e==null?void 0:e.bridge)||"https://bridge.walletconnect.org",this.qrcode=typeof(e==null?void 0:e.qrcode)>"u"||e.qrcode!==!1,this.chainId=typeof(e==null?void 0:e.chainId)<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e==null?void 0:e.qrcodeModalOptions;let r={bridge:this.bridge,qrcodeModal:this.qrcode?dh.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e==null?void 0:e.storageId,signingMethods:e==null?void 0:e.signingMethods,clientMeta:e==null?void 0:e.clientMeta};if(this.wc=typeof(e==null?void 0:e.connector)<"u"?e.connector:new Zl(r),typeof this.wc>"u")throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e,r="Failed or Rejected Request",n=-32e3){let i={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:r}};return this.events.emit("payload",i),i}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,!(this.connected||this.pending)&&(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(r=>this.events.emit("error",r)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{var r,n;if(e){this.events.emit("error",e);return}this.accounts=((r=this.wc)===null||r===void 0?void 0:r.accounts)||[],this.chainId=((n=this.wc)===null||n===void 0?void 0:n.chainId)||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",new Error("User closed modal"))}),this.wc.on("session_update",(e,r)=>{let{accounts:n,chainId:i}=r.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||i&&this.chainId!==i)&&(this.chainId=i,this.events.emit("chainChanged",i))})}async sendPayload(e){this.wc=this.register(this.opts);try{let r=await this.wc.unsafeSend(e);return this.sanitizeResponse(r)}catch(r){return this.onError(e,r.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?Bt(e.id,e.error.message):e}}});var vh={};st(vh,{default:()=>vm});var gh,mh,vm,wh=S(()=>{g();gh=re(eo());ks();As();
522kt();ph();mh=class{constructor(e){this.events=new gh.default,this.rpc={infuraId:e==null?void 0:e.infuraId,custom:e==null?void 0:e.rpc},this.signer=new Fr(new la(e));let r=this.signer.connection.chainId||(e==null?void 0:e.chainId)||1;this.http=this.setHttpProvider(r),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){var e;return((e=this.http)===null||e===void 0?void 0:e.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId;default:break}if(Ut.includes(e.method))return this.signer.request(e);if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}sendAsync(e,r){this.request(e).then(n=>r(null,n)).catch(n=>r(n,void 0))}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}removeListener(e,r){this.events.removeListener(e,r)}off(e,r){this.events.off(e,r)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let r=yc(e,this.rpc);return typeof r>"u"?void 0:new Fr(new yo(r))}},vm=mh});var xh=I(ua=>{"use strict";g();Object.defineProperty(ua,"__esModule",{value:!0});var Fe=Ph(),_h=(Da(),Xt(Ua)),Ln=Fh(),wm=Hh();eo();Bh();Pa();qh();Uh();function _m(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var ym=/(imtoken|metamask|rainbow)/i,Nn=new WeakMap,yh=new WeakSet,bh=class extends Fe.Connector{constructor(e){super(e);Fe._classPrivateMethodInitSpec(this,yh),Fe._defineProperty(this,"id","walletConnect"),Fe._defineProperty(this,"name","WalletConnect"),Fe._defineProperty(this,"ready",!0),Fe._classPrivateFieldInitSpec(this,Nn,{writable:!0,value:void 0}),Fe._defineProperty(this,"onAccountsChanged",r=>{r.length===0?this.emit("disconnect"):this.emit("change",{account:Ln.getAddress(r[0])})}),Fe._defineProperty(this,"onChainChanged",r=>{let n=Fe.normalizeChainId(r),i=this.isChainUnsupported(n);this.emit("change",{chain:{id:n,unsupported:i}})}),Fe._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{var r,n,i;let c=e;if(!c){let k=wm.getClient().lastUsedChainId;k&&!this.isChainUnsupported(k)&&(c=k)}let u=await this.getProvider({chainId:c,create:!0});u.on("accountsChanged",this.onAccountsChanged),u.on("chainChanged",this.onChainChanged),u.on("disconnect",this.onDisconnect),setTimeout(()=>
522this.emit("message",{type:"connecting"}),0);let m=await u.enable(),b=Ln.getAddress(m[0]),E=await this.getChainId(),_=this.isChainUnsupported(E),M=(r=(n=u.connector)===null||n===void 0||(i=n.peerMeta)===null||i===void 0?void 0:i.name)!==null&&r!==void 0?r:"";return ym.test(M)&&(this.switchChain=Fe._classPrivateMethodGet(this,yh,bm)),{account:b,chain:{id:E,unsupported:_},provider:new _h.providers.Web3Provider(u)}}catch(c){throw/user closed modal/i.test(c.message)?new Fe.UserRejectedRequestError(c):c}}async disconnect(){let e=await this.getProvider();await e.disconnect(),e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),typeof localStorage<"u"&&localStorage.removeItem("walletconnect")}async getAccount(){let r=(await this.getProvider()).accounts;return Ln.getAddress(r[0])}async getChainId(){let e=await this.getProvider();return Fe.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:r}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!Fe._classPrivateFieldGet(this,Nn)||e||r){var n,i;let c=(n=this.options)!==null&&n!==void 0&&n.infuraId?{}:this.chains.reduce((m,b)=>({...m,[b.id]:b.rpcUrls.default}),{}),u=(await Promise.resolve().then(function(){return _m((wh(),Xt(vh)))})).default;Fe._classPrivateFieldSet(this,Nn,new u({...this.options,chainId:e,rpc:{...c,...(i=this.options)===null||i===void 0?void 0:i.rpc}}))}return Fe._classPrivateFieldGet(this,Nn)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[r,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new _h.providers.Web3Provider(r).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}};async function bm(t){let e=await this.getProvider(),r=Ln.hexValue(t);try{var n;return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),(n=this.chains.find(i=>i.id===t))!==null&&n!==void 0?n:{id:t,name:"Chain ".concat(r),network:"".concat(r),rpcUrls:{default:""}}}catch(i){let c=typeof i=="string"?i:i==null?void 0:i.message;throw/user rejected request/i.test(c)?new Fe.UserRejectedRequestError(i):new Fe.SwitchChainError(i)}}ua.WalletConnectConnector=bh});var Mh=I((Ty,Eh)=>{"use strict";g();Eh.exports=xh()});var kh=I(fa=>{"use strict";g();Object.defineProperty(fa,"__esModule",{value:!0});var xm=Mh();Object.defineProperty(fa,"WalletConnectConnector",{enumerable:!0,get:function(){return xm.WalletConnectConnector}})});var Sh=I((Iy,Rh)=>{"use strict";g();Rh.exports=kh()});g();g();var xt=re(jh()),Th=re(Ja()),Ah=re($a()),Ih=re(Sh()),Oh=re(Lh());var Ch="/build/_assets/tailwind-AEX7F4UG.css";var Mm=()=>[{rel:"stylesheet",href:Ch}],km=()=>({charset:"utf-8",title:"Zitrone",viewport:"width=device-width,initial-scale=1"});function Nh(){let{alchemyId:t}=Na(),e=(0,Oh.useMemo)(()=>{let{chains:r,provider:n}=(0,xt.configureChains)(xt.defaultChains,[(0,Th.alchemyProvider)({alchemyId:t})]);return(0,xt.createClient)({autoConnect:!0,connectors:[new Ih.WalletConnectConnector({chains:r,options:{qrcode:!0}}),new Ah.InjectedConnector({chains:r,options:{name:"Browser",shimDisconnect:!0}})],provider:n})},[t]);return x.createElement("html",{lang:"en"},x.createElement("head",null,x.createElement(Ia,null),x.createElement(Aa,null),x.createElement("link",{rel:"icon",href:"/favicon.svg",type:"image/svg+xml"})),x.createElement("body",{className:"min-h-screen text-stone-800 dark:text-white bg-white max-w-full max-h-full"},x.createElement(xt.WagmiConfig,{client:e},x.createElement(Ta,null)),x.createElement(Ba,null),x.createElement(Oa,null),x.createElement(La,null)))}export{Nh as default,Mm as links,km as meta};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.