PageSourceSearch

https://livemarket.pro/_next/static/chunks/3750.a69f912aed44fc40.js

js livemarket.pro collected 2026-10-02 02:09:04 UTC 785,202 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="69f36ac8-999c-402f-91c6-ade7ece01861",e._sentryDebugIdIdentifier="sentry-dbid-69f36ac8-999c-402f-91c6-ade7ece01861")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3750],{74990:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aes256cbc=t.aes256gcm=void 0;let n=r(79386);t.aes256gcm=(e,t,r)=>(0,n.gcm)(e,t,r),t.aes256cbc=(e,t,r)=>(0,n.cbc)(e,t)},78269:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chacha20=t.xchacha20=void 0;let n=r(11568);t.xchacha20=(e,t,r)=>(0,n.xchacha20poly1305)(e,t,r),t.chacha20=(e,t,r)=>(0,n.chacha20poly1305)(e,t,r)},59357:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MultiChainOpenRPCDocument=t.MetaMaskOpenRPCDocument=void 0;let i=n(r(38366));t.MetaMaskOpenRPCDocument=i.default;let s=n(r(43650));t.MultiChainOpenRPCDocument=s.default,t.default=i.default},89434:function(e,t,r){"use strict";var n=r(55545),i=r(88336),s=new n(0),o=new n(-1),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function c(e){var t=a[e?e.toLowerCase():"ether"];if("string"!=typeof t)throw Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(a,null,2));return new n(t,10)}function l(e){if("string"==typeof e){if(!e.match(/^-?[0-9.]+$/))throw Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).");return e}if("number"==typeof e)return String(e);if("object"==typeof e&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw Error("while converting number to string, invalid number value '"+e+"' type "+typeof e+".")}e.exports={unitMap:a,numberToString:l,getValueOfUnit:c,fromWei:function(e,t,r){var n=i(e),l=n.lt(s),u=c(t),h=a[t].length-1||1,d=r||{};l&&(n=n.mul(o));for(var f=n.mod(u).toString(10);f.length<h;)f="0"+f;d.pad||(f=f.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var p=n.div(u).toString(10);d.commify&&(p=p.replace(/\B(?=(\d{3})+(?!\d))/g,","));var m=""+p+("0"==f?"":"."+f);return l&&(m="-"+m),m},toWei:function(e,t){var r=l(e),i=c(t),s=a[t].length-1||1,u="-"===r.substring(0,1);if(u&&(r=r.substring(1)),"."===r)throw Error("[ethjs-unit] while converting number "+e+" to wei, invalid value");var h=r.split(".");if(h.length>2)throw Error("[ethjs-unit] while converting number "+e+" to wei,  too many decimal points");var d=h[0],f=h[1];if(d||(d="0"),f||(f="0"),f.length>s)throw Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;f.length<s;)f+="0";d=new n(d),f=new n(f);var p=d.mul(i).add(f);return u&&(p=p.mul(o)),new n(p.toString(10),10)}}},691:function(e,t,r){"use strict";var n,i,s,o,a,c,l,u,h=r(36243).lW;function d(e){let t;let r=e[0],n=1;for(;n<e.length;){let i=e[n],s=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=s(r)):("call"===i||"optionalCall"===i)&&(r=s((...e)=>r.call(t,...e)),t=void 0)}return r}var f=(n=r(12542))&&n.__esModule?n:{default:n},p=((i=p||{}).DISCONNECTED="DISCONNECTED",i.CONNECTING="CONNECTING",i.CONNECTED="CONNECTED",i),m=((s=m||{}).SESSION_EXPIRED="SESSION_EXPIRED",s.SESSION_NOT_FOUND="SESSION_NOT_FOUND",s.SESSION_INVALID_STATE="SESSION_INVALID_STATE",s.SESSION_SAVE_FAILED="SESSION_SAVE_FAILED",s.TRANSPORT_DISCONNECTED="TRANSPORT_DISCONNECTED",s.TRANSPORT_PUBLISH_FAILED="TRANSPORT_PUBLISH_FAILED",s.TRANSPORT_SUBSCRIBE_FAILED="TRANSPORT_SUBSCRIBE_FAILED",s.TRANSPORT_HISTORY_FAILED="TRANSPORT_HISTORY_FAILED",s.TRANSPORT_PARSE_FAILED="TRANSPORT_PARSE_FAILED",s.TRANSPORT_RECONNECT_FAILED="TRANSPORT_RECONNECT_FAILED",s.DECRYPTION_FAILED="DECRYPTION_FAILED",s.INVALID_KEY="INVALID_KEY",s.REQUEST_EXPIRED="REQUEST_EXPIRED",s.OTP_INCORRECT="OTP_INCORRECT",s.OTP_MAX_ATTEMPTS_REACHED="OTP_MAX_ATTEMPTS_REACHED",s.OTP_ENTRY_TIMEOUT="OTP_ENTRY_TIMEOUT",s.UNKNOWN="UNKNOWN",s),y=class extends 
1Error{constructor(e,t){super(t||e),this.code=e,this.name=e}},b=class extends y{},g=class extends y{},w=class extends y{},v=o=class extends f.default{__init(){this.session=null}__init2(){this._state="DISCONNECTED"}on(e,t){return super.on(e,t)}constructor(e,t,r){super(),o.prototype.__init.call(this),o.prototype.__init2.call(this),this.transport=e,this.keymanager=t,this.sessionstore=r,this.transport.on("error",e=>this.emit("error",e)),this.transport.on("message",async e=>{if(!d([this,"access",e=>e.session,"optionalAccess",e=>e.keyPair,"access",e=>e.privateKey]))return;if(await this.checkSessionExpiry()){this.emit("error",new b("SESSION_EXPIRED","Session expired"));return}let t=await this.decryptMessage(e.data);t&&this.handleMessage(t)})}get state(){return this._state}set state(e){this._state=e}async reconnect(){if("CONNECTING"!==this.state&&this.session&&this.transport.reconnect)try{this.state="CONNECTING",await this.transport.reconnect(),this.state="CONNECTED",this.emit("connected")}catch(e){throw this.state="DISCONNECTED",new g("TRANSPORT_RECONNECT_FAILED","Failed to reconnect")}}async resume(e){if("DISCONNECTED"!==this.state)throw new b("SESSION_INVALID_STATE",`Cannot resume when state is ${this.state}`);this.state="CONNECTING";try{let t=await this.sessionstore.get(e);if(!t)throw new b("SESSION_NOT_FOUND","Session not found or expired");this.keymanager.validatePeerKey(t.theirPublicKey),this.session=t,await this.transport.connect(),await this.transport.subscribe(t.channel),this.state="CONNECTED",this.emit("connected")}catch(e){throw this.state="DISCONNECTED",this.session=null,e}}async disconnect(){if(!this.session)return;let e=this.session;this.session=null,this.state="DISCONNECTED",await this.transport.disconnect(),await this.transport.clear(e.channel),await this.sessionstore.delete(e.id),this.emit("disconnected")}async sendMessage(e,t){if(!this.session)throw new b("SESSION_INVALID_STATE","Cannot send message: session is not initialized.");if(await this.checkSessionExpiry())throw new b("SESSION_EXPIRED","Session expired");let r=JSON.stringify(t),n=await this.keymanager.encrypt(r,this.session.theirPublicKey);if(!await this.transport.publish(e,n))throw new g("TRANSPORT_DISCONNECTED","Message could not be sent because the transport is disconnected.")}async checkSessionExpiry(){return!(!this.session||this.session.expiresAt>=Date.now())&&(await this.disconnect(),!0)}async decryptMessage(e){if(!d([this,"access",e=>e.session,"optionalAccess",e=>e.keyPair,"access",e=>e.privateKey]))return null;try{let t=await this.keymanager.decrypt(e,this.session.keyPair.privateKey);return JSON.parse(t)}catch(t){let e=t instanceof Error?t.message:String(t);return this.emit("error",new w("DECRYPTION_FAILED",`Decryption failed: ${e}`)),null}}},_=["trusted","untrusted"],A=r(55908),M=((a=class e{static __initStatic(){this.SESSION_PREFIX="session:"}static __initStatic2(){this.MASTER_LIST_KEY="sessions:master-list"}__init3(){this.mutex=new A.Mutex}static async create(t){let r=new e(t);return await r.garbageCollect(),r}constructor(e){a.prototype.__init3.call(this),this.kvstore=e}async set(e){if(Number.isNaN(e.expiresAt)||e.expiresAt<Date.now())throw new b("SESSION_SAVE_FAILED","Cannot save expired session");let t={id:e.id,channel:e.channel,keyPair:{publicKeyB64:h.from(e.keyPair.publicKey).toString("base64"),privateKeyB64:h.from(e.keyPair.privateKey).toString("base64")},theirPublicKeyB64:h.from(e.theirPublicKey).toString("base64"),expiresAt:e.expiresAt},r=this.getSessionKey(e.id);await this.kvstore.set(r,JSON.stringify(t)),await this.addToMasterList(e.id)}async get(e){let t=this.getSessionKey(e),r=await this.kvstore.get(t);if(!r)return null;try{let t=JSON.parse(r);if("number"!=typeof t.expiresAt||!(t.expiresAt>=Date.now()))return await this.delete(e),null;return{id:t.id,channel:t.channel,keyPair:{publicKey:new Uint8Array(h.from(t.keyPair.publicKeyB64,"base64")),privateKey:new Uint8Array(h.from(t.keyPair.privateKeyB64,"base64"))},theirPublicKey:new Uint8Array(h.from(t.theirPublicKeyB64,"base64")),expiresAt:t.expiresAt}}catch(t){return await this.delete(e),null}}async list(){let e=await this.getMasterList(),t=[];for(let r of e){let e=await this.get(r);e&&t.push(e)}return t}async delete(e){let t=this.getSessionKey(e);await this.kvstore.delete(t),await this.removeFromMasterList(e)}async garbageCollect(){let e=await this.getMasterList();await Promise.all(e.map(async e=>this.get(e)))}getSessionKey(t){return`${e.SESSION_PREFIX}${t}`}async getMasterList(){let t=await this.kvstore.get(e.MASTER_LIST_KEY);if(!t)return[];try{return JSON.parse(t)}catch(e){return[]}}async addToMasterList(t){await this.mutex.runExclusive(async()=>{let r=await this.getMasterList();r.includes(t)||(r.push(t),await this.kvstore.set(e.MASTER_LIST_KEY,JSON.stringify(r)))})}async removeFromMasterList(t){await this.mutex.runExclusive(async()=>{let r=(await this.getMasterList()).filter(e=>e!==t);await this.kvstore.set(e.MASTER_LIST_KEY,JSON.stringify(r))})}}).__initStatic(),a.__initStatic2(),a),x=r(13118),E=e=>new Promise(t=>setTimeout(t,e));async function S(e,t){for(let r=0;r<t.attempts;r++)try{return await e()}catch(n){if(r===t.attempts-1)throw n;let e=t.delay*2**r;await E(e)}throw new y("UNKNOWN","Retry logic failed unexpectedly.")}var k=c=class{constructor(e,t){c.prototype.__init4.call(this),this.realSub=e,this.parent=t}__init4(){this.hasUnsubscribed=!1}get channel(){return this.realSub.channel}get state(){return this.realSub.state}subscribe(){this.realSub.subscribe()}unsubscribe(){this.hasUnsubscribed||(this.hasUnsubscribed=!0,this.parent.removeSubscription({channel:this.channel}))}async publish(e){return await this.realSub.publish(e)}history(e){return this.realSub.history(e)}on(e,t){return this.realSub.on(e,t),this}once(e,t){return this.realSub.once(e,t),this}off(e,t){return this.realSub.off(e,t),this}},C=((l=class e extends f.default{static __initStatic3(){this.contexts=new Map}__init5(){this.channels=new Set}__init6(){this.disconnected=!1}__init7(){this.eventListeners=new Map}constructor(t,r={}){if(super(),l.prototype.__init5.call(this),l.prototype.__init6.call(this),l.prototype.__init7.call(this),this.url=t,e.contexts.has(t)){let n=e.contexts.get(t);if(!n)throw Error("No context found");this.validateOptions(n.options,r)}else{let n=new x.Centrifuge(t,r);e.contexts.set(t,{refcount:0,options:r,centrifuge:n,subscriptions:new Map,reconnectPromise:null})}let n=e.contexts.get(t);if(!n)throw Error("No context found");n.refcount++,this.attachEventListeners()}connect(){let t=e.contexts.get(this.url);t&&("connected"===t.centrifuge.state?setImmediate(()=>
1this.emit("connected",{})):"connecting"===t.centrifuge.state||t.centrifuge.connect())}disconnect(){if(this.disconnected)return Promise.resolve();let t=e.contexts.get(this.url);if(!t)return Promise.resolve();for(let e of(this.disconnected=!0,this.emit("disconnected",{}),this.detachEventListeners(),this.channels))this.decrementChannelRef(e);return(this.channels.clear(),t.refcount--,0===t.refcount)?new Promise(r=>{t.centrifuge.once("disconnected",()=>{e.contexts.delete(this.url),r()}),t.centrifuge.disconnect()}):Promise.resolve()}reconnect(){let t=e.contexts.get(this.url);return t?(t.reconnectPromise||(t.reconnectPromise=(async()=>{try{"disconnected"!==t.centrifuge.state&&await new Promise(e=>{t.centrifuge.once("disconnected",()=>e()),t.centrifuge.disconnect()}),await new Promise((e,r)=>{t.centrifuge.once("connected",()=>e()),t.centrifuge.once("error",e=>r(e.error)),t.centrifuge.connect()})}finally{t.reconnectPromise=null}})()),t.reconnectPromise):Promise.resolve()}newSubscription(t,r={}){let n=e.contexts.get(this.url);if(!n)throw Error("No context found");let i=n.subscriptions;if(!this.channels.has(t)){if(i.has(t)){let e=i.get(t);if(!e)throw Error(`Failed to get subscription info for channel ${t}`);e.count++}else{let e=n.centrifuge.newSubscription(t,r);i.set(t,{count:1,sub:e})}}this.channels.add(t);let s=i.get(t);if(!s)throw Error(`Failed to create or get subscription for channel ${t}`);return new k(s.sub,this)}getSubscription(t){if(!this.channels.has(t))return;let r=e.contexts.get(this.url);if(!r)return;let n=r.subscriptions.get(t);return n?new k(n.sub,this):void 0}async publish(t,r){let n=e.contexts.get(this.url);n&&await n.centrifuge.publish(t,r)}subscriptions(){let t=e.contexts.get(this.url);if(!t)return{};let r={};for(let e of this.channels){let n=t.subscriptions.get(e);n&&(r[e]=new k(n.sub,this))}return r}get real(){return d([e.contexts.get(this.url),"optionalAccess",e=>e.centrifuge])}get state(){var t;return this.disconnected?"disconnected":(t=d([e.contexts.get(this.url),"optionalAccess",e=>e.centrifuge,"access",e=>e.state]),null!=t?t:"disconnected")}attachEventListeners(){if(this.eventListeners.size>0)return;let t=e.contexts.get(this.url);t&&["connecting","connected","disconnected","error"].forEach(e=>{let r=t=>{this.disconnected||this.emit(e,t)};this.eventListeners.set(e,r),t.centrifuge.on(e,r)})}decrementChannelRef(t){let r=e.contexts.get(this.url);if(!r)return;let n=r.subscriptions,i=n.get(t);i&&(i.count--,0===i.count&&(i.sub.unsubscribe(),r.centrifuge.removeSubscription(i.sub),n.delete(t)))}detachEventListeners(){let t=e.contexts.get(this.url);if(t){for(let[e,r]of this.eventListeners)t.centrifuge.off(e,r);this.eventListeners.clear()}}validateOptions(e,t){for(let r of["token","websocket","minReconnectDelay","maxReconnectDelay"]){let n=e[r],i=t[r];void 0!==n&&void 0!==i&&n!==i&&console.warn(`SharedCentrifuge: Option '${r}' mismatch for URL ${this.url}. Using existing value: ${n}, ignoring new value: ${i}`)}}removeSubscription(e){e&&"channel"in e&&(this.decrementChannelRef(e.channel),this.channels.delete(e.channel))}}).__initStatic3(),l),P=r(4382),T=class e{static async create(t){let r=e.getClientIdKey(),n=await t.get(r);return n||(n=P.v4.call(void 0),await t.set(r,n)),new e(t,n)}constructor(e,t){this.kvstore=e,this.clientId=t}getClientId(){return this.clientId}async getNextNonce(e){let t=this.getNonceKey(e),r=await this.kvstore.get(t),n=(r?parseInt(r,10):0)+1;return await this.kvstore.set(t,n.toString()),n}async getLatestNonces(e){let t=this.getLatestNoncesKey(e),r=await this.kvstore.get(t);return r?new Map(Object.entries(JSON.parse(r))):new Map}async setLatestNonces(e,t){let r=this.getLatestNoncesKey(e),n=Object.fromEntries(t);await this.kvstore.set(r,JSON.stringify(n))}async clear(e){let t=this.getNonceKey(e),r=this.getLatestNoncesKey(e);await Promise.all([this.kvstore.delete(t),this.kvstore.delete(r)])}static getClientIdKey(){return"websocket-transport-client-id"}getNonceKey(e){return`nonce:${this.clientId}:${e}`}getLatestNoncesKey(e){return`latest-nonces:${this.clientId}:${e}`}},U=u=class e extends f.default{__init8(){this.queue=[]}__init9(){this.isProcessingQueue=!1}__init10(){this.state="disconnected"}static async create(t){return new e(await T.create(t.kvstore),t)}constructor(e,t){super(),u.prototype.__init8.call(this),u.prototype.__init9.call(this),u.prototype.__init10.call(this),this.storage=e;let r={minReconnectDelay:100,maxReconnectDelay:3e4};void 0!==t.websocket&&(r.websocket=t.websocket),this.centrifuge=t.useSharedConnection?new C(t.url,r):new x.Centrifuge(t.url,r),this.centrifuge.on("connecting",()=>this.setState("connecting")),this.centrifuge.on("connected",()=>{this.setState("connected"),this._processQueue()}),this.centrifuge.on("disconnected",()=>this.setState("disconnected")),this.centrifuge.on("error",e=>
1this.emit("error",new g("UNKNOWN",e.error.message)))}connect(){return"connected"===this.state||"connecting"===this.state?Promise.resolve():(this.setState("connecting"),new Promise(e=>{this.centrifuge.once("connected",()=>e()),this.centrifuge.connect()}))}disconnect(){return(this.queue.forEach(e=>e.resolve(!1)),this.queue.length=0,"disconnected"===this.state)?Promise.resolve():new Promise(e=>{for(let e of Object.values(this.centrifuge.subscriptions()))this.centrifuge.removeSubscription(e);this.centrifuge.once("disconnected",()=>e()),this.centrifuge.disconnect()})}reconnect(){return this.centrifuge instanceof C&&"reconnect"in this.centrifuge?this.centrifuge.reconnect():"connecting"===this.state?new Promise(e=>this.centrifuge.once("connected",()=>e())):(this.centrifuge.disconnect(),new Promise((e,t)=>{this.centrifuge.once("connected",()=>e()),this.centrifuge.once("error",e=>t(new g("TRANSPORT_RECONNECT_FAILED",e.error.message))),this.centrifuge.connect()}))}subscribe(e){let t=this.centrifuge.getSubscription(e);if(!t){let r=t=this.centrifuge.newSubscription(e,{recoverable:!0,positioned:!0});t.on("subscribed",()=>{this._fetchHistory(r,e),this._processQueue()}),t.on("publication",t=>{this._handleIncomingMessage(e,t.data)}),t.on("error",e=>this.emit("error",new g("TRANSPORT_SUBSCRIBE_FAILED",`Subscription error: ${e.error.message}`)))}if("subscribed"===t.state)return Promise.resolve();let r=t;return new Promise(e=>{r.once("subscribed",()=>e()),r.subscribe()})}publish(e,t){let r=new Promise((r,n)=>{this.queue.push({channel:e,payload:t,resolve:r,reject:n})});return this._processQueue(),r}async clear(e){await this.storage.clear(e);let t=this.centrifuge.getSubscription(e);t&&this.centrifuge.removeSubscription(t)}setState(e){this.state!==e&&(this.state=e,this.emit(e))}async _handleIncomingMessage(e,t){try{let r=JSON.parse(t);if("string"!=typeof r.clientId||"number"!=typeof r.nonce||"string"!=typeof r.payload)throw new g("TRANSPORT_PARSE_FAILED","Invalid message format");if(r.clientId===this.storage.getClientId())return;let n=await this.storage.getLatestNonces(e),i=n.get(r.clientId)||0;r.nonce>i&&(n.set(r.clientId,r.nonce),await this.storage.setLatestNonces(e,n),this.emit("message",{channel:e,data:r.payload}))}catch(e){this.emit("error",new g("TRANSPORT_PARSE_FAILED",`Failed to parse incoming message: ${e instanceof Error?e.message:"Unknown error"}`))}}async _fetchHistory(e,t){try{for(let r of(await e.history({limit:50})).publications)await this._handleIncomingMessage(t,r.data)}catch(e){if(11===d([e,"optionalAccess",e=>e.code]))return;this.emit("error",new g("TRANSPORT_HISTORY_FAILED",`Failed to fetch history for channel ${t}: ${JSON.stringify(e)}`))}}async _process(e){let t=JSON.stringify({clientId:this.storage.getClientId(),nonce:await this.storage.getNextNonce(e.channel),payload:e.payload});return S(async()=>{await this.centrifuge.publish(e.channel,t)},{attempts:5,delay:100})}async _processQueue(){if(!this.isProcessingQueue&&"connected"===this.state){this.isProcessingQueue=!0;try{for(;this.queue.length>0;){let e=this.queue[0];try{await this._process(e),this.queue.shift(),e.resolve(!0)}catch(t){this.queue.shift(),e.reject(t instanceof Error?t:new g("TRANSPORT_PUBLISH_FAILED","Failed to publish message after all retries"))}}}finally{this.isProcessingQueue=!1}}}};t.WI=v,t.pk=p,t.Xn=2592e6,t.jK=m,t.K1=y,t.zM=b,t.pG=M,t.qo=U,t.Cs=function(e){return"string"==typeof e&&_.includes(e)},t.V=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e.charCodeAt(n)^t.charCodeAt(n);return 0===r}},38927:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function s(e,t,r){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 9,217 bytes, line 1
1"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(13632).Buffer}catch(e){}function o(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function a(e,t,r){var n=o(e,r);return r-1>=t&&(n|=o(e,r-1)<<4),n}function c(e,t,r,i){for(var s=0,o=0,a=Math.min(e.length,r),c=t;c<a;c++){var l=e.charCodeAt(c)-48;s*=i,o=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o<i,"Invalid character"),s+=o}return s}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(s.isBN=function(e){return e instanceof s||null!==e&&"object"==typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,t){return e.cmp(t)>0?e:t},s.min=function(e,t){return 0>e.cmp(t)?e:t},s.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},s.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},s.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,s,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=e.length-1,i=0;o>=0;o-=3)s=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<e.length;o+=3)s=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},s.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var s=0,o=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=a(e,t,i)<<s,this.words[o]|=67108863&n,s>=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=a(e,t,i)<<s,this.words[o]|=67108863&n,s>=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;this._strip()},s.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var s=e.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u<a;u+=n)l=c(e,u,u+n,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var h=1;for(l=c(e,u,e.length,t),u=0;u<o;u++)h*=t;this.imuln(h),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},s.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype._move=function(e){l(e,this)},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){s.prototype.inspect=u}else s.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,d=["","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"],f=[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],p=[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];function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],s=0|t.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l<n;l++){for(var u=c>>>26,h=67108863&c,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|e.words[p])*(s=0|t.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}s.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,s=0,o=0;o<this.length;o++){var a=this.words[o],c=((a<<i|s)&16777215).toString(16);s=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==s||o!==this.length-1?d[6-c.length]+c+r:c+r}for(0!==s&&(r=s.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],u=p[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(e);r=(h=h.idivn(u)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16,2)},h&&(s.prototype.toBuffer=function(e,t){return this.toArrayLike(h,e,t)}),s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},s.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var o=e.allocUnsafe?e.allocUnsafe(s):new e(s);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},s.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|n;e[r++]=255&o,r<e.length&&(e[r++]=o>>8&255),r<e.length&&(e[r++]=o>>16&255),6===s?(r<e.length&&(e[r++]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},s.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|n;e[r--]=255&o,r>=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===s?(r>=0&&(e[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},s.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},s.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},s.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;
vendor: 10,086 bytes, line 1
1n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},s.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},s.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,s=0;s<n.length;s++)t=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&t,i=t>>>26;for(;0!==i&&s<r.length;s++)t=(0|r.words[s])+i,this.words[s]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var s=0,o=0;o<r.length;o++)s=(n=(0|t.words[o])-(0|r.words[o])+s)>>26,this.words[o]=67108863&n;for(;0!==s&&o<t.length;o++)s=(n=(0|t.words[o])+s)>>26,this.words[o]=67108863&n;if(0===s&&o<t.length&&t!==this)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=Math.max(this.length,o),t!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,r){var n,i,s,o=e.words,a=t.words,c=r.words,l=0,u=0|o[0],h=8191&u,d=u>>>13,f=0|o[1],p=8191&f,m=f>>>13,y=0|o[2],b=8191&y,g=y>>>13,w=0|o[3],v=8191&w,_=w>>>13,A=0|o[4],M=8191&A,x=A>>>13,E=0|o[5],S=8191&E,k=E>>>13,C=0|o[6],P=8191&C,T=C>>>13,U=0|o[7],B=8191&U,I=U>>>13,O=0|o[8],R=8191&O,N=O>>>13,F=0|o[9],L=8191&F,$=F>>>13,j=0|a[0],D=8191&j,q=j>>>13,H=0|a[1],V=8191&H,z=H>>>13,G=0|a[2],K=8191&G,W=G>>>13,Z=0|a[3],J=8191&Z,Y=Z>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,et=0|a[5],er=8191&et,en=et>>>13,ei=0|a[6],es=8191&ei,eo=ei>>>13,ea=0|a[7],ec=8191&ea,el=ea>>>13,eu=0|a[8],eh=8191&eu,ed=eu>>>13,ef=0|a[9],ep=8191&ef,em=ef>>>13;r.negative=e.negative^t.negative,r.length=19;var ey=(l+(n=Math.imul(h,D))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(d,D)|0))<<13)|0;l=((s=Math.imul(d,q))+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(p,D),i=(i=Math.imul(p,q))+Math.imul(m,D)|0,s=Math.imul(m,q);var eb=(l+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,z)|0)+Math.imul(d,V)|0))<<13)|0;l=((s=s+Math.imul(d,z)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(b,D),i=(i=Math.imul(b,q))+Math.imul(g,D)|0,s=Math.imul(g,q),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,z)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,z)|0;var eg=(l+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,K)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(v,D),i=(i=Math.imul(v,q))+Math.imul(_,D)|0,s=Math.imul(_,q),n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,z)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,z)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,K)|0,s=s+Math.imul(m,W)|0;var ew=(l+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,Y)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(M,D),i=(i=Math.imul(M,q))+Math.imul(x,D)|0,s=Math.imul(x,q),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,z)|0)+Math.imul(_,V)|0,s=s+Math.imul(_,z)|0,n=n+Math.imul(b,K)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(g,K)|0,s=s+Math.imul(g,W)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,Y)|0;var ev=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,ee)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(S,D),i=(i=Math.imul(S,q))+Math.imul(k,D)|0,s=Math.imul(k,q),n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,z)|0)+Math.imul(x,V)|0,s=s+Math.imul(x,z)|0,n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(_,K)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(g,J)|0,s=s+Math.imul(g,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,ee)|0;var e_=(l+(n=n+Math.imul(h,er)|0)|0)+((8191&(i=(i=i+Math.imul(h,en)|0)+Math.imul(d,er)|0))<<13)|0;l=((s=s+Math.imul(d,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(P,D),i=(i=Math.imul(P,q))+Math.imul(T,D)|0,s=Math.imul(T,q),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,z)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,z)|0,n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(x,K)|0,s=s+Math.imul(x,W)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(_,J)|0,s=s+Math.imul(_,Y)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,s=s+Math.imul(m,en)|0;var eA=(l+(n=n+Math.imul(h,es)|0)|0)+((8191&(i=(i=i+Math.imul(h,eo)|0)+Math.imul(d,es)|0))<<13)|0;l=((s=s+Math.imul(d,eo)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(B,D),i=(i=Math.imul(B,q))+Math.imul(I,D)|0,s=Math.imul(I,q),n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,z)|0)+Math.imul(T,V)|0,s=s+Math.imul(T,z)|0,n=n+Math.imul(S,K)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(k,K)|0,s=s+Math.imul(k,W)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(x,J)|0,s=s+Math.imul(x,Y)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,ee)|0,n=n+Math.imul(b,er)|0,i=(i=i+Math.imul(b,en)|0)+Math.imul(g,er)|0,s=s+Math.imul(g,en)|0,n=n+Math.imul(p,es)|0,i=(i=i+Math.imul(p,eo)|0)+Math.imul(m,es)|0,s=s+Math.imul(m,eo)|0;var eM=(l+(n=n+Math.imul(h,ec)|0)|0)+((8191&(i=(i=i+Math.imul(h,el)|0)+Math.imul(d,ec)|0))<<13)|0;l=((s=s+Math.imul(d,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(R,D),i=(i=Math.imul(R,q))+Math.imul(N,D)|0,s=Math.imul(N,q),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,z)|0)+Math.imul(I,V)|0,s=s+Math.imul(I,z)|0,n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(T,K)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,Y)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(x,Q)|0,s=s+Math.imul(x,ee)|0,n=n+Math.imul(v,er)|0,i=(i=i+Math.imul(v,en)|0)+Math.imul(_,er)|0,s=s+Math.imul(_,en)|0,n=n+Math.imul(b,es)|0,i=(i=i+Math.imul(b,eo)|0)+Math.imul(g,es)|0,s=s+Math.imul(g,eo)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ec)|0,s=s+Math.imul(m,el)|0;var ex=(l+(n=n+Math.imul(h,eh)|0)|0)+((8191&(i=(i=i+Math.imul(h,ed)|0)+Math.imul(d,eh)|0))<<13)|0;l=((s=s+Math.imul(d,ed)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(L,D),i=(i=Math.imul(L,q))+Math.imul($,D)|0,s=Math.imul($,q),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,z)|0)+Math.imul(N,V)|0,s=s+Math.imul(N,z)|0,n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(I,K)|0,s=s+Math.imul(I,W)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(T,J)|0,s=s+Math.imul(T,Y)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,n=n+Math.imul(M,er)|0,i=(i=i+Math.imul(M,en)|0)+Math.imul(x,er)|0,s=s+Math.imul(x,en)|0,n=n+Math.imul(v,es)|0,i=(i=i+Math.imul(v,eo)|0)+Math.imul(_,es)|0,s=s+Math.imul(_,eo)|0,n=n+Math.imul(b,ec)|0,i=(i=i+Math.imul(b,el)|0)+Math.imul(g,ec)|0,s=s+Math.imul(g,el)|0,n=n+Math.imul(p,eh)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(m,eh)|0,s=s+Math.imul(m,ed)|0;var eE=(l+(n=n+Math.imul(h,ep)|0)|0)+((8191&(i=(i=i+Math.imul(h,em)|0)+Math.imul(d,ep)|0))<<13)|0;l=((s=s+Math.imul(d,em)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,z))+Math.imul($,V)|0,s=Math.imul($,z),n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(N,K)|0,s=s+Math.imul(N,W)|0,n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(I,J)|0,s=s+Math.imul(I,Y)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,ee)|0,n=n+Math.imul(S,er)|0,i=(i=i+Math.imul(S,en)|0)+Math.imul(k,er)|0,s=s+Math.imul(k,en)|0,n=n+Math.imul(M,es)|0,i=(i=i+Math.imul(M,eo)|0)+Math.imul(x,es)|0,s=s+Math.imul(x,eo)|0,n=n+Math.imul(v,ec)|0,i=(i=i+Math.imul(v,el)|0)+Math.imul(_,ec)|0,s=s+Math.imul(_,el)|0,n=n+Math.imul(b,eh)|0,i=(i=i+Math.imul(b,ed)|0)+Math.imul(g,eh)|0,s=s+Math.imul(g,ed)|0;var eS=(l+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;l=((s=s+Math.imul(m,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,W))+Math.imul($,K)|0,s=Math.imul($,W),n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,J)|0,s=s+Math.imul(N,Y)|0,n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(I,Q)|0,s=s+Math.imul(I,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(T,er)|0,s=s+Math.imul(T,en)|0,n=n+Math.imul(S,es)|0,i=(i=i+Math.imul(S,eo)|0)+Math.imul(k,es)|0,s=s+Math.imul(k,eo)|0,n=n+Math.imul(M,ec)|0,i=(i=i+Math.imul(M,el)|0)+Math.imul(x,ec)|0,s=s+Math.imul(x,el)|0,n=n+Math.imul(v,eh)|0,i=(i=i+Math.imul(v,ed)|0)+Math.imul(_,eh)|0,s=s+Math.imul(_,ed)|0;var ek=(l+(n=n+Math.imul(b,ep)|0)|0)+((8191&(i=(i=i+Math.imul(b,em)|0)+Math.imul(g,ep)|0))<<13)|0;l=((s=s+Math.imul(g,em)|0)+(i>>>13)|0)+(ek>>>
vendor: 4,300 bytes, line 1
126)|0,ek&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Y))+Math.imul($,J)|0,s=Math.imul($,Y),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,Q)|0,s=s+Math.imul(N,ee)|0,n=n+Math.imul(B,er)|0,i=(i=i+Math.imul(B,en)|0)+Math.imul(I,er)|0,s=s+Math.imul(I,en)|0,n=n+Math.imul(P,es)|0,i=(i=i+Math.imul(P,eo)|0)+Math.imul(T,es)|0,s=s+Math.imul(T,eo)|0,n=n+Math.imul(S,ec)|0,i=(i=i+Math.imul(S,el)|0)+Math.imul(k,ec)|0,s=s+Math.imul(k,el)|0,n=n+Math.imul(M,eh)|0,i=(i=i+Math.imul(M,ed)|0)+Math.imul(x,eh)|0,s=s+Math.imul(x,ed)|0;var eC=(l+(n=n+Math.imul(v,ep)|0)|0)+((8191&(i=(i=i+Math.imul(v,em)|0)+Math.imul(_,ep)|0))<<13)|0;l=((s=s+Math.imul(_,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,ee))+Math.imul($,Q)|0,s=Math.imul($,ee),n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(N,er)|0,s=s+Math.imul(N,en)|0,n=n+Math.imul(B,es)|0,i=(i=i+Math.imul(B,eo)|0)+Math.imul(I,es)|0,s=s+Math.imul(I,eo)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(T,ec)|0,s=s+Math.imul(T,el)|0,n=n+Math.imul(S,eh)|0,i=(i=i+Math.imul(S,ed)|0)+Math.imul(k,eh)|0,s=s+Math.imul(k,ed)|0;var eP=(l+(n=n+Math.imul(M,ep)|0)|0)+((8191&(i=(i=i+Math.imul(M,em)|0)+Math.imul(x,ep)|0))<<13)|0;l=((s=s+Math.imul(x,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(L,er),i=(i=Math.imul(L,en))+Math.imul($,er)|0,s=Math.imul($,en),n=n+Math.imul(R,es)|0,i=(i=i+Math.imul(R,eo)|0)+Math.imul(N,es)|0,s=s+Math.imul(N,eo)|0,n=n+Math.imul(B,ec)|0,i=(i=i+Math.imul(B,el)|0)+Math.imul(I,ec)|0,s=s+Math.imul(I,el)|0,n=n+Math.imul(P,eh)|0,i=(i=i+Math.imul(P,ed)|0)+Math.imul(T,eh)|0,s=s+Math.imul(T,ed)|0;var eT=(l+(n=n+Math.imul(S,ep)|0)|0)+((8191&(i=(i=i+Math.imul(S,em)|0)+Math.imul(k,ep)|0))<<13)|0;l=((s=s+Math.imul(k,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(L,es),i=(i=Math.imul(L,eo))+Math.imul($,es)|0,s=Math.imul($,eo),n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(N,ec)|0,s=s+Math.imul(N,el)|0,n=n+Math.imul(B,eh)|0,i=(i=i+Math.imul(B,ed)|0)+Math.imul(I,eh)|0,s=s+Math.imul(I,ed)|0;var eU=(l+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(T,ep)|0))<<13)|0;l=((s=s+Math.imul(T,em)|0)+(i>>>13)|0)+(eU>>>26)|0,eU&=67108863,n=Math.imul(L,ec),i=(i=Math.imul(L,el))+Math.imul($,ec)|0,s=Math.imul($,el),n=n+Math.imul(R,eh)|0,i=(i=i+Math.imul(R,ed)|0)+Math.imul(N,eh)|0,s=s+Math.imul(N,ed)|0;var eB=(l+(n=n+Math.imul(B,ep)|0)|0)+((8191&(i=(i=i+Math.imul(B,em)|0)+Math.imul(I,ep)|0))<<13)|0;l=((s=s+Math.imul(I,em)|0)+(i>>>13)|0)+(eB>>>26)|0,eB&=67108863,n=Math.imul(L,eh),i=(i=Math.imul(L,ed))+Math.imul($,eh)|0,s=Math.imul($,ed);var eI=(l+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(N,ep)|0))<<13)|0;l=((s=s+Math.imul(N,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863;var eO=(l+(n=Math.imul(L,ep))|0)+((8191&(i=(i=Math.imul(L,em))+Math.imul($,ep)|0))<<13)|0;return l=((s=Math.imul($,em))+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,c[0]=ey,c[1]=eb,c[2]=eg,c[3]=ew,c[4]=ev,c[5]=e_,c[6]=eA,c[7]=eM,c[8]=ex,c[9]=eE,c[10]=eS,c[11]=ek,c[12]=eC,c[13]=eP,c[14]=eT,c[15]=eU,c[16]=eB,c[17]=eI,c[18]=eO,0!==l&&(c[19]=l,r.length++),r};function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var o=i;i=0;for(var a=67108863&n,c=Math.min(s,t.length-1),l=Math.max(0,s-e.length+1);l<=c;l++){var u=s-l,h=(0|e.words[u])*(0|t.words[l]),d=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(d=d+a|0),i+=(o=o+(d>>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function g(e,t){this.x=e,this.y=t}Math.imul||(y=m),s.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?m(this,e,t):b(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),r=s.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},g.prototype.permute=function(e,t,r,n,i,s){for(var o=0;o<s;o++)n[o]=t[e[o]],i[o]=r[e[o]]},g.prototype.transform=function(e,t,r,n,i,s){this.permute(s,e,t,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,c=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),u=0;u<i;u+=a)for(var h=c,d=l,f=0;f<o;f++){var p=r[u+f],m=n[u+f],y=r[u+f+o],b=n[u+f+o],g=h*y-d*b;
vendor: 16,056 bytes, line 1
1b=h*b+d*y,y=g,r[u+f]=p+y,n[u+f]=m+b,r[u+f+o]=p-y,n[u+f+o]=m-b,f!==a&&(g=c*h-l*d,d=c*d+l*h,h=g)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},g.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,r,i){for(var s=0,o=0;o<t;o++)s+=0|e[o],r[2*o]=8191&s,s>>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===s),n((-8192&s)==0)},g.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),s=this.stub(n),o=Array(n),a=Array(n),c=Array(n),l=Array(n),u=Array(n),h=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,l,n),this.transform(o,s,a,c,n,i),this.transform(l,s,u,h,n,i);for(var f=0;f<n;f++){var p=a[f]*u[f]-c[f]*h[f];c[f]=a[f]*h[f]+c[f]*u[f],a[f]=p}return this.conjugate(a,c,n),this.transform(a,c,d,s,n,i),this.conjugate(d,s,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},s.prototype.mul=function(e){var t=new s(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},s.prototype.mulf=function(e){var t=new s(null);return t.words=Array(this.length+e.length),b(this,e,t)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var s=(0|this.words[i])*e,o=(67108863&s)+(67108863&r);r>>=26,r+=(s/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new s(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&s,c=(0|this.words[t])-a<<r;this.words[t]=c|o,o=a>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},s.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,s=e%26,o=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<<s;if(i-=o,i=Math.max(0,i),r){for(var c=0;c<o;c++)r.words[c]=this.words[c];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var u=0|this.words[c];this.words[c]=l<<26-s|u>>>s,l=u&a}return r&&0!==l&&(r.words[r.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},s.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this._strip())},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},s.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,t,r){var i,s,o=e.length+r;this._expand(o);var a=0;for(i=0;i<e.length;i++){s=(0|this.words[i+r])+a;var c=(0|e.words[i])*t;s-=67108863&c,a=(s>>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)a=(s=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&s;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(s=-(0|this.words[i])+a)>>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var c=i.length-o.length;if("mod"!==t){(r=new s(null)).length=c+1,r.words=Array(r.length);for(var l=0;l<r.length;l++)r.words[l]=0}var u=i.clone()._ishlnsubmul(o,1,c);0===u.negative&&(i=u,r&&(r.words[c]=1));for(var h=c-1;h>=0;h--){var d=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(o,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=d)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},s.prototype.divmod=function(e,t,r){var i,o,a;return(n(!e.isZero()),this.isZero())?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||0>this.cmp(e)?{div:new s(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new s(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modrn(e.words[0]))}:this._wordDiv(e,t)},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%e;return t?-i:i},s.prototype.modn=function(e){return this.modrn(e)},s.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/e|0,r=s%e}return this._strip(),t?this.ineg():this},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;(t.words[0]&f)==0&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),o.isub(c)):(r.isub(t),a.isub(i),c.isub(o))}return{a:a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var o=new s(1),a=new s(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var l=0,u=1;(r.words[0]&u)==0&&l<26;++l,u<<=1);if(l>0)for(r.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;(i.words[0]&d)==0&&h<26;++h,d<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(t=0===r.cmpn(1)?o:a).cmpn(0)&&t.iadd(e),t},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var s=t;t=r,r=s}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,o=r;0!==s&&o<this.length;o++){var a=0|this.words[o];a+=s,s=a>>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},s.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return -1===this.cmpn(e)},s.prototype.lt=function(e){return -1===this.cmp(e)},s.prototype.lten=function(e){return 0>=this.cmpn(e)},s.prototype.lte=function(e){return 0>=this.cmp(e)},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new E(e)},s.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new s(t,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=s._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}v.prototype._tmp=function(){var e=new s(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(_,v),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var i=e.words[9];for(n=10,t.words[t.length++]=4194303&i;n<e.length;n++){var s=0|e.words[n];e.words[n-10]=(4194303&s)<<4|i>>>22,i=s}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(A,v),i(M,v),i(x,v),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;
1r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){var t;if(w[e])return w[e];if("k256"===e)t=new _;else if("p224"===e)t=new A;else if("p192"===e)t=new M;else if("p25519"===e)t=new x;else throw Error("Unknown prime "+e);return w[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new s(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=o;0!==f.cmp(a);){for(var m=f,y=0;0!==m.cmp(a);y++)m=m.redSqr();n(y<p);var b=this.pow(h,new s(1).iushln(p-y-1));d=d.redMul(b),h=b.redSqr(),f=f.redMul(h),p=y}return d},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new s(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=Array(16);r[0]=new s(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],u=c-1;u>=0;u--){var h=l>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)}c=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new S(e)},i(S,E),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},88336:function(e,t,r){var n=r(38927),i=r(82228);e.exports=function(e){if("string"==typeof e||"number"==typeof e){var t=new n(1),r=String(e).toLowerCase().trim(),s="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),o=i(r);if("-"===o.substr(0,1)&&(o=i(o.slice(1)),t=new n(-1,10)),!(o=""===o?"0":o).match(/^-?[0-9]+$/)&&o.match(/^[0-9A-Fa-f]+$/)||o.match(/^[a-fA-F]+$/)||!0===s&&o.match(/^[0-9A-Fa-f]+$/))return new n(o,16).mul(t);if((o.match(/^-?[0-9]+$/)||""===o)&&!1===s)return new n(o,10).mul(t)}
1else if("object"==typeof e&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new n(e.toString(10),10);throw Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},22279:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rotl=function(e,t){return e<<t|e>>>32-t},t.createCipher=function(e,t){let{allowShortKeys:r,extendNonceFn:i,counterLength:s,counterRight:o,rounds:d}=(0,n.checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if("function"!=typeof e)throw Error("core must be a function");return(0,n.anumber)(s),(0,n.anumber)(d),(0,n.abool)(o),(0,n.abool)(r),(t,f,p,m,y=0)=>{let b,g;(0,n.abytes)(t),(0,n.abytes)(f),(0,n.abytes)(p);let w=p.length;if(void 0===m&&(m=new Uint8Array(w)),(0,n.abytes)(m),(0,n.anumber)(y),y<0||y>=u)throw Error("arx: counter overflow");if(m.length<w)throw Error(`arx: output (${m.length}) is shorter than data (${w})`);let v=[],_=t.length;if(32===_)v.push(b=(0,n.copyBytes)(t)),g=c;else if(16===_&&r)(b=new Uint8Array(32)).set(t),b.set(t,16),g=a,v.push(b);else throw Error(`arx: invalid 32-byte key, got length=${_}`);l(f)||v.push(f=(0,n.copyBytes)(f));let A=(0,n.u32)(b);if(i){if(24!==f.length)throw Error("arx: extended nonce must be 24 bytes");
1i(g,A,(0,n.u32)(f.subarray(0,16)),A),f=f.subarray(16)}let M=16-s;if(M!==f.length)throw Error(`arx: nonce must be ${M} or 16 bytes`);if(12!==M){let e=new Uint8Array(12);e.set(f,o?0:12-f.length),f=e,v.push(f)}return function(e,t,r,i,s,o,a,c){let d=s.length,f=new Uint8Array(64),p=(0,n.u32)(f),m=l(s)&&l(o),y=m?(0,n.u32)(s):h,b=m?(0,n.u32)(o):h;for(let n=0;n<d;a++){if(e(t,r,i,p,a,c),a>=u)throw Error("arx: counter overflow");let l=Math.min(64,d-n);if(m&&64===l){let e=n/4;if(n%4!=0)throw Error("arx: invalid block position");for(let t=0,r;t<16;t++)b[r=e+t]=y[r]^p[t];n+=64;continue}for(let e=0,t;e<l;e++)o[t=n+e]=s[t]^f[e];n+=l}}(e,g,A,(0,n.u32)(f),p,m,y,d),(0,n.clean)(...v),m}};let n=r(1107),i=e=>Uint8Array.from(e.split("").map(e=>e.charCodeAt(0))),s=i("expand 16-byte k"),o=i("expand 32-byte k"),a=(0,n.u32)(s),c=(0,n.u32)(o);function l(e){return e.byteOffset%4==0}let u=4294967296-1,h=new Uint32Array},73854:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.poly1305=void 0,t.wrapConstructorWithKey=o;let n=r(1107),i=(e,t)=>255&e[t++]|(255&e[t++])<<8;class s{constructor(e){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,e=(0,n.toBytes)(e),(0,n.abytes)(e,32);let t=i(e,0),r=i(e,2),s=i(e,4),o=i(e,6),a=i(e,8),c=i(e,10),l=i(e,12),u=i(e,14);this.r[0]=8191&t,this.r[1]=(t>>>13|r<<3)&8191,this.r[2]=(r>>>10|s<<6)&7939,this.r[3]=(s>>>7|o<<9)&8191,this.r[4]=(o>>>4|a<<12)&255,this.r[5]=a>>>1&8190,this.r[6]=(a>>>14|c<<2)&8191,this.r[7]=(c>>>11|l<<5)&8065,this.r[8]=(l>>>8|u<<8)&8191,this.r[9]=u>>>5&127;for(let t=0;t<8;t++)this.pad[t]=i(e,16+2*t)}process(e,t,r=!1){let{h:n,r:s}=this,o=s[0],a=s[1],c=s[2],l=s[3],u=s[4],h=s[5],d=s[6],f=s[7],p=s[8],m=s[9],y=i(e,t+0),b=i(e,t+2),g=i(e,t+4),w=i(e,t+6),v=i(e,t+8),_=i(e,t+10),A=i(e,t+12),M=i(e,t+14),x=n[0]+(8191&y),E=n[1]+((y>>>13|b<<3)&8191),S=n[2]+((b>>>10|g<<6)&8191),k=n[3]+((g>>>7|w<<9)&8191),C=n[4]+((w>>>4|v<<12)&8191),P=n[5]+(v>>>1&8191),T=n[6]+((v>>>14|_<<2)&8191),U=n[7]+((_>>>11|A<<5)&8191),B=n[8]+((A>>>8|M<<8)&8191),I=n[9]+(M>>>5|(r?0:2048)),O=0,R=0+x*o+5*m*E+5*p*S+5*f*k+5*d*C;O=R>>>13,R&=8191,R+=5*h*P+5*u*T+5*l*U+5*c*B+5*a*I,O+=R>>>13,R&=8191;let N=O+x*a+E*o+5*m*S+5*p*k+5*f*C;O=N>>>13,N&=8191,N+=5*d*P+5*h*T+5*u*U+5*l*B+5*c*I,O+=N>>>13,N&=8191;let F=O+x*c+E*a+S*o+5*m*k+5*p*C;O=F>>>13,F&=8191,F+=5*f*P+5*d*T+5*h*U+5*u*B+5*l*I,O+=F>>>13,F&=8191;let L=O+x*l+E*c+S*a+k*o+5*m*C;O=L>>>13,L&=8191,L+=5*p*P+5*f*T+5*d*U+5*h*B+5*u*I,O+=L>>>13,L&=8191;let $=O+x*u+E*l+S*c+k*a+C*o;O=$>>>13,$&=8191,$+=5*m*P+5*p*T+5*f*U+5*d*B+5*h*I,O+=$>>>13,$&=8191;let j=O+x*h+E*u+S*l+k*c+C*a;O=j>>>13,j&=8191,j+=P*o+5*m*T+5*p*U+5*f*B+5*d*I,O+=j>>>13,j&=8191;let D=O+x*d+E*h+S*u+k*l+C*c;O=D>>>13,D&=8191,D+=P*a+T*o+5*m*U+5*p*B+5*f*I,O+=D>>>13,D&=8191;let q=O+x*f+E*d+S*h+k*u+C*l;O=q>>>13,q&=8191,q+=P*c+T*a+U*o+5*m*B+5*p*I,O+=q>>>13,q&=8191;let H=O+x*p+E*f+S*d+k*h+C*u;O=H>>>13,H&=8191,H+=P*l+T*c+U*a+B*o+5*m*I,O+=H>>>13,H&=8191;let V=O+x*m+E*p+S*f+k*d+C*h;O=V>>>13,V&=8191,V+=P*u+T*l+U*c+B*a+I*o,O+=V>>>13,V&=8191,R=8191&(O=(O=(O<<2)+O|0)+R|0),O>>>=13,N+=O,n[0]=R,n[1]=N,n[2]=F,n[3]=L,n[4]=$,n[5]=j,n[6]=D,n[7]=q,n[8]=H,n[9]=V}finalize(){let{h:e,pad:t}=this,r=new Uint16Array(10),i=e[1]>>>13;e[1]&=8191;for(let t=2;t<10;t++)e[t]+=i,i=e[t]>>>13,e[t]&=8191;e[0]+=5*i,i=e[0]>>>13,e[0]&=8191,e[1]+=i,i=e[1]>>>13,e[1]&=8191,e[2]+=i,r[0]=e[0]+5,i=r[0]>>>13,r[0]&=8191;for(let t=1;t<10;t++)r[t]=e[t]+i,i=r[t]>>>13,r[t]&=8191;r[9]-=8192;let s=(1^i)-1;for(let e=0;e<10;e++)r[e]&=s;s=~s;for(let t=0;t<10;t++)e[t]=e[t]&s|r[t];e[0]=(e[0]|e[1]<<13)&65535,e[1]=(e[1]>>>3|e[2]<<10)&65535,e[2]=(e[2]>>>6|e[3]<<7)&65535,e[3]=(e[3]>>>9|e[4]<<4)&65535,e[4]=(e[4]>>>12|e[5]<<1|e[6]<<14)&65535,e[5]=(e[6]>>>2|e[7]<<11)&65535,e[6]=(e[7]>>>5|e[8]<<8)&65535,e[7]=(e[8]>>>8|e[9]<<5)&65535;let o=e[0]+t[0];e[0]=65535&o;for(let r=1;r<8;r++)o=(e[r]+t[r]|0)+(o>>>16)|0,e[r]=65535&o;(0,n.clean)(r)}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);let{buffer:t,blockLen:r}=this,i=e.length;for(let n=0;n<i;){let s=Math.min(r-this.pos,i-n);if(s===r){for(;r<=i-n;n+=r)this.process(e,n);continue}t.set(e.subarray(n,n+s),this.pos),this.pos+=s,n+=s,this.pos===r&&(this.process(t,0,!1),this.pos=0)}return this}destroy(){(0,n.clean)(this.h,this.r,this.buffer,this.pad)}digestInto(e){(0,n.aexists)(this),(0,n.aoutput)(e,this),this.finished=!0;let{buffer:t,h:r}=this,{pos:i}=this;if(i){for(t[i++]=1;i<16;i++)t[i]=0;this.process(t,0,!0)}this.finalize();let s=0;for(let t=0;t<8;t++)e[s++]=r[t]>>>0,e[s++]=r[t]>>>8;return e}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}}function o(e){let t=(t,r)=>e(r).update((0,n.toBytes)(t)).digest(),r=e(new Uint8Array(32));return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}t.poly1305=o(e=>new s(e))},70987:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.polyval=t.ghash=void 0,t._toGHASHKey=c;let n=r(1107),i=new Uint8Array(16),s=(0,n.u32)(i),o=(e,t,r,n)=>({s3:r<<31|n>>>1,s2:t<<31|r>>>1,s1:e<<31|t>>>1,s0:e>>>1^-520093696&-(1&n&1)}),a=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255|0;function c(e){e.reverse();let t=1&e[15],r=0;for(let t=0;t<e.length;t++){let n=e[t];e[t]=n>>>1|r,r=(1&n)<<7}return e[0]^=225&-t,e}let l=e=>e>65536?8:e>1024?4:2;class u{constructor(e,t){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,e=(0,n.toBytes)(e),(0,n.abytes)(e,16);let r=(0,n.createView)(e),i=r.getUint32(0,!1),s=r.getUint32(4,!1),c=r.getUint32(8,!1),u=r.getUint32(12,!1),h=[];for(let e=0;e<128;e++)h.push({s0:a(i),s1:a(s),s2:a(c),s3:a(u)}),{s0:i,s1:s,s2:c,s3:u}=o(i,s,c,u);let d=l(t||1024);if(![1,2,4,8].includes(d))throw Error("ghash: invalid window size, expected 2, 4 or 8");this.W=d;let f=128/d,p=this.windowSize=2**d,m=[];for(let e=0;e<f;e++)for(let t=0;t<p;t++){let r=0,n=0,i=0,s=0;for(let o=0;o<d;o++){if(!(t>>>d-o-1&1))continue;let{s0:a,s1:c,s2:l,s3:u}=h[d*e+o];r^=a,n^=c,i^=l,s^=u}m.push({s0:r,s1:n,s2:i,s3:s})}this.t=m}_updateBlock(e,t,r,n){e^=this.s0,t^=this.s1,r^=this.s2,n^=this.s3;let{W:i,t:s,windowSize:o}=this,a=0,c=0,l=0,u=0,h=(1<<i)-1,d=0;for(let f of[e,t,r,n])for(let e=0;e<4;e++){let t=f>>>8*e&255;for(let e=8/i-1;e>=0;e--){let{s0:r,s1:n,s2:f,s3:p}=s[d*o+(t>>>i*e&h)];a^=r,c^=n,l^=f,u^=p,d+=1}}this.s0=a,this.s1=c,this.s2=l,this.s3=u}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);let t=(0,n.u32)(e),r=Math.floor(e.length/16),o=e.length%16;for(let e=0;e<r;e++)this._updateBlock(t[4*e+0],t[4*e+1],t[4*e+2],t[4*e+3]);return o&&(i.set(e.subarray(16*r)),this._updateBlock(s[0],s[1],s[2],s[3]),(0,n.clean)(s)),this}destroy(){let{t:e}=this;for(let t of e)t.s0=0,t.s1=0,t.s2=0,t.s3=0}digestInto(e){(0,n.aexists)(this),(0,n.aoutput)(e,this),this.finished=!0;let{s0:t,s1:r,s2:i,s3:s}=this,o=(0,n.u32)(e);return o[0]=t,o[1]=r,o[2]=i,o[3]=s,e}digest(){let e=new Uint8Array(16);return this.digestInto(e),this.destroy(),e}}class h extends u{constructor(e,t){e=(0,n.toBytes)(e),(0,n.abytes)(e);let r=c((0,n.copyBytes)(e));super(r,t),(0,n.clean)(r)}update(e){e=(0,n.toBytes)(e),(0,n.aexists)(this);let t=(0,n.u32)(e),r=e.length%16,o=Math.floor(e.length/16);for(let e=0;e<o;e++)this._updateBlock(a(t[4*e+3]),a(t[4*e+2]),a(t[4*e+1]),a(t[4*e+0]));return r&&(i.set(e.subarray(16*o)),this._updateBlock(a(s[3]),a(s[2]),a(s[1]),a(s[0])),(0,n.clean)(s)),this}digestInto(e){(0,n.aexists)(this),(0,n.aoutput)(e,this),this.finished=!0;let{s0:t,s1:r,s2:i,s3:s}=this,o=(0,n.u32)(e);return o[0]=t,o[1]=r,o[2]=i,o[3]=s,e.reverse()}}function d(e){let t=(t,r)=>e(r,t.length).update((0,n.toBytes)(t)).digest(),r=e(new Uint8Array(16),0);return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=(t,r)=>e(t,r),t}t.ghash=d((e,t)=>new u(e,t)),t.polyval=d((e,t)=>new h(e,t))},79386:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unsafe=t.aeskwp=t.aeskw=t.siv=t.gcmsiv=t.gcm=t.cfb=t.cbc=t.ecb=t.ctr=void 0;let n=r(70987),i=r(1107),s=new Uint8Array(16);function o(e){return e<<1^283&-(e>>7)}function a(e,t){let r=0;for(;t>0;t>>=1)r^=e&-(1&t),e=o(e);return r}let c=(()=>{let e=new Uint8Array(256);for(let t=0,r=1;t<256;t++,r^=o(r))e[t]=r;let t=new Uint8Array(256);t[0]=99;for(let r=0;r<255;r++){let n=e[255-r];n|=n<<8,t[e[r]]=(n^n>>4^n>>5^n>>6^n>>7^99)&255}return(0,i.clean)(e),t})(),l=c.map((e,t)=>c.indexOf(t)),u=e=>e<<24|e>>>8,h=e=>e<<8|e>>>24,d=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function f(e,t){if(256!==e.length)throw Error("Wrong sbox length");let r=new Uint32Array(256).map((r,n)=>t(e[n])),n=r.map(h),i=n.map(h),s=i.map(h),o=new Uint32Array(65536),a=new Uint32Array(65536),c=new Uint16Array(65536);for(let t=0;t<256;t++)for(let l=0;l<256;l++){let u=256*t+l;o[u]=r[t]^n[l],a[u]=i[t]^s[l],c[u]=e[t]<<8|e[l]}return{sbox:e,sbox2:c,T0:r,T1:n,T2:i,T3:s,T01:o,T23:a}}let p=f(c,e=>a(e,3)<<24|e<<16|e<<8|a(e,2)),m=f(l,e=>a(e,11)<<24|a(e,13)<<16|a(e,9)<<8|a(e,14)),y=(()=>{let e=new Uint8Array(16);for(let t=0,r=1;t<16;t++,r=o(r))e[t]=r;return e})();function b(e){(0,i.abytes)(e);let t=e.length;
1if(![16,24,32].includes(t))throw Error("aes: invalid key size, should be 16, 24 or 32, got "+t);let{sbox2:r}=p,n=[];(0,i.isAligned32)(e)||n.push(e=(0,i.copyBytes)(e));let s=(0,i.u32)(e),o=s.length,a=e=>v(r,e,e,e,e),c=new Uint32Array(t+28);c.set(s);for(let e=o;e<c.length;e++){let t=c[e-1];e%o==0?t=a(u(t))^y[e/o-1]:o>6&&e%o==4&&(t=a(t)),c[e]=c[e-o]^t}return(0,i.clean)(...n),c}function g(e){let t=b(e),r=t.slice(),n=t.length,{sbox2:s}=p,{T0:o,T1:a,T2:c,T3:l}=m;for(let e=0;e<n;e+=4)for(let i=0;i<4;i++)r[e+i]=t[n-e-4+i];(0,i.clean)(t);for(let e=4;e<n-4;e++){let t=r[e],n=v(s,t,t,t,t);r[e]=o[255&n]^a[n>>>8&255]^c[n>>>16&255]^l[n>>>24]}return r}function w(e,t,r,n,i,s){return e[r<<8&65280|n>>>8&255]^t[i>>>8&65280|s>>>24&255]}function v(e,t,r,n,i){return e[255&t|65280&r]|e[n>>>16&255|i>>>16&65280]<<16}function _(e,t,r,n,i){let{sbox2:s,T01:o,T23:a}=p,c=0;t^=e[c++],r^=e[c++],n^=e[c++],i^=e[c++];let l=e.length/4-2;for(let s=0;s<l;s++){let s=e[c++]^w(o,a,t,r,n,i),l=e[c++]^w(o,a,r,n,i,t),u=e[c++]^w(o,a,n,i,t,r),h=e[c++]^w(o,a,i,t,r,n);t=s,r=l,n=u,i=h}let u=e[c++]^v(s,t,r,n,i);return{s0:u,s1:e[c++]^v(s,r,n,i,t),s2:e[c++]^v(s,n,i,t,r),s3:e[c++]^v(s,i,t,r,n)}}function A(e,t,r,n,i){let{sbox2:s,T01:o,T23:a}=m,c=0;t^=e[c++],r^=e[c++],n^=e[c++],i^=e[c++];let l=e.length/4-2;for(let s=0;s<l;s++){let s=e[c++]^w(o,a,t,i,n,r),l=e[c++]^w(o,a,r,t,i,n),u=e[c++]^w(o,a,n,r,t,i),h=e[c++]^w(o,a,i,n,r,t);t=s,r=l,n=u,i=h}let u=e[c++]^v(s,t,i,n,r);return{s0:u,s1:e[c++]^v(s,r,t,i,n),s2:e[c++]^v(s,n,r,t,i),s3:e[c++]^v(s,i,n,r,t)}}function M(e,t,r,n){(0,i.abytes)(t,16),(0,i.abytes)(r);let s=r.length;n=(0,i.getOutput)(s,n),(0,i.complexOverlapBytes)(r,n);let o=(0,i.u32)(t),{s0:a,s1:c,s2:l,s3:u}=_(e,o[0],o[1],o[2],o[3]),h=(0,i.u32)(r),d=(0,i.u32)(n);for(let r=0;r+4<=h.length;r+=4){d[r+0]=h[r+0]^a,d[r+1]=h[r+1]^c,d[r+2]=h[r+2]^l,d[r+3]=h[r+3]^u;let n=1;for(let e=t.length-1;e>=0;e--)n=n+(255&t[e])|0,t[e]=255&n,n>>>=8;({s0:a,s1:c,s2:l,s3:u}=_(e,o[0],o[1],o[2],o[3]))}let f=16*Math.floor(h.length/4);if(f<s){let e=new Uint32Array([a,c,l,u]),t=(0,i.u8)(e);for(let e=f,i=0;e<s;e++,i++)n[e]=r[e]^t[i];(0,i.clean)(e)}return n}function x(e,t,r,n,s){(0,i.abytes)(r,16),(0,i.abytes)(n),s=(0,i.getOutput)(n.length,s);let o=(0,i.u32)(r),a=(0,i.createView)(r),c=(0,i.u32)(n),l=(0,i.u32)(s),u=t?0:12,h=n.length,d=a.getUint32(u,t),{s0:f,s1:p,s2:m,s3:y}=_(e,o[0],o[1],o[2],o[3]);for(let r=0;r+4<=c.length;r+=4)l[r+0]=c[r+0]^f,l[r+1]=c[r+1]^p,l[r+2]=c[r+2]^m,l[r+3]=c[r+3]^y,d=d+1>>>0,a.setUint32(u,d,t),{s0:f,s1:p,s2:m,s3:y}=_(e,o[0],o[1],o[2],o[3]);let b=16*Math.floor(c.length/4);if(b<h){let e=new Uint32Array([f,p,m,y]),t=(0,i.u8)(e);for(let e=b,r=0;e<h;e++,r++)s[e]=n[e]^t[r];(0,i.clean)(e)}return s}function E(e){if((0,i.abytes)(e),e.length%16!=0)throw Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size 16")}function S(e,t,r){(0,i.abytes)(e);let n=e.length,s=n%16;if(!t&&0!==s)throw Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");(0,i.isAligned32)(e)||(e=(0,i.copyBytes)(e));let o=(0,i.u32)(e);if(t){let e=16-s;e||(e=16),n+=e}return r=(0,i.getOutput)(n,r),(0,i.complexOverlapBytes)(e,r),{b:o,o:(0,i.u32)(r),out:r}}function k(e,t){if(!t)return e;let r=e.length;if(!r)throw Error("aes/pcks5: empty ciphertext not allowed");let n=e[r-1];if(n<=0||n>16)throw Error("aes/pcks5: wrong padding");let i=e.subarray(0,-n);for(let t=0;t<n;t++)if(e[r-t-1]!==n)throw Error("aes/pcks5: wrong padding");return i}function C(e){let t=new Uint8Array(16),r=(0,i.u32)(t);t.set(e);let n=16-e.length;for(let e=16-n;e<16;e++)t[e]=n;return r}function P(e,t,r,n,s){let o=s?s.length:0,a=e.create(r,n.length+o);s&&a.update(s);let c=(0,i.u64Lengths)(8*n.length,8*o,t);a.update(n),a.update(c);let l=a.digest();return(0,i.clean)(c),l}t.ctr=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(e,t){function r(r,n){if((0,i.abytes)(r),void 0!==n&&((0,i.abytes)(n),!(0,i.isAligned32)(n)))throw Error("unaligned destination");let s=b(e),o=(0,i.copyBytes)(t),a=[s,o];(0,i.isAligned32)(r)||a.push(r=(0,i.copyBytes)(r));let c=M(s,o,r,n);return(0,i.clean)(...a),c}return{encrypt:(e,t)=>r(e,t),decrypt:(e,t)=>r(e,t)}}),t.ecb=(0,i.wrapCipher)({blockSize:16},function(e,t={}){let r=!t.disablePadding;return{encrypt(t,n){let{b:s,o,out:a}=S(t,r,n),c=b(e),l=0;for(;l+4<=s.length;){let{s0:e,s1:t,s2:r,s3:n}=_(c,s[l+0],s[l+1],s[l+2],s[l+3]);o[l++]=e,o[l++]=t,o[l++]=r,o[l++]=n}if(r){let e=C(t.subarray(4*l)),{s0:r,s1:n,s2:i,s3:s}=_(c,e[0],e[1],e[2],e[3]);
1o[l++]=r,o[l++]=n,o[l++]=i,o[l++]=s}return(0,i.clean)(c),a},decrypt(t,n){E(t);let s=g(e);n=(0,i.getOutput)(t.length,n);let o=[s];(0,i.isAligned32)(t)||o.push(t=(0,i.copyBytes)(t)),(0,i.complexOverlapBytes)(t,n);let a=(0,i.u32)(t),c=(0,i.u32)(n);for(let e=0;e+4<=a.length;){let{s0:t,s1:r,s2:n,s3:i}=A(s,a[e+0],a[e+1],a[e+2],a[e+3]);c[e++]=t,c[e++]=r,c[e++]=n,c[e++]=i}return(0,i.clean)(...o),k(n,r)}}}),t.cbc=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(e,t,r={}){let n=!r.disablePadding;return{encrypt(r,s){let o=b(e),{b:a,o:c,out:l}=S(r,n,s),u=t,h=[o];(0,i.isAligned32)(u)||h.push(u=(0,i.copyBytes)(u));let d=(0,i.u32)(u),f=d[0],p=d[1],m=d[2],y=d[3],g=0;for(;g+4<=a.length;)f^=a[g+0],p^=a[g+1],m^=a[g+2],y^=a[g+3],({s0:f,s1:p,s2:m,s3:y}=_(o,f,p,m,y)),c[g++]=f,c[g++]=p,c[g++]=m,c[g++]=y;if(n){let e=C(r.subarray(4*g));f^=e[0],p^=e[1],m^=e[2],y^=e[3],({s0:f,s1:p,s2:m,s3:y}=_(o,f,p,m,y)),c[g++]=f,c[g++]=p,c[g++]=m,c[g++]=y}return(0,i.clean)(...h),l},decrypt(r,s){E(r);let o=g(e),a=t,c=[o];(0,i.isAligned32)(a)||c.push(a=(0,i.copyBytes)(a));let l=(0,i.u32)(a);s=(0,i.getOutput)(r.length,s),(0,i.isAligned32)(r)||c.push(r=(0,i.copyBytes)(r)),(0,i.complexOverlapBytes)(r,s);let u=(0,i.u32)(r),h=(0,i.u32)(s),d=l[0],f=l[1],p=l[2],m=l[3];for(let e=0;e+4<=u.length;){let t=d,r=f,n=p,i=m;d=u[e+0];let{s0:s,s1:a,s2:c,s3:l}=A(o,d,f=u[e+1],p=u[e+2],m=u[e+3]);h[e++]=s^t,h[e++]=a^r,h[e++]=c^n,h[e++]=l^i}return(0,i.clean)(...c),k(s,n)}}}),t.cfb=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(e,t){function r(r,n,s){(0,i.abytes)(r);let o=r.length;if(s=(0,i.getOutput)(o,s),(0,i.overlapBytes)(r,s))throw Error("overlapping src and dst not supported.");let a=b(e),c=t,l=[a];(0,i.isAligned32)(c)||l.push(c=(0,i.copyBytes)(c)),(0,i.isAligned32)(r)||l.push(r=(0,i.copyBytes)(r));let u=(0,i.u32)(r),h=(0,i.u32)(s),d=n?h:u,f=(0,i.u32)(c),p=f[0],m=f[1],y=f[2],g=f[3];for(let e=0;e+4<=u.length;){let{s0:t,s1:r,s2:n,s3:i}=_(a,p,m,y,g);h[e+0]=u[e+0]^t,h[e+1]=u[e+1]^r,h[e+2]=u[e+2]^n,h[e+3]=u[e+3]^i,p=d[e++],m=d[e++],y=d[e++],g=d[e++]}let w=16*Math.floor(u.length/4);if(w<o){({s0:p,s1:m,s2:y,s3:g}=_(a,p,m,y,g));let e=(0,i.u8)(new Uint32Array([p,m,y,g]));for(let t=w,n=0;t<o;t++,n++)s[t]=r[t]^e[n];(0,i.clean)(e)}return(0,i.clean)(...l),s}return{encrypt:(e,t)=>r(e,!0,t),decrypt:(e,t)=>r(e,!1,t)}}),t.gcm=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(e,t,r){if(t.length<8)throw Error("aes/gcm: invalid nonce length");function o(e,t,i){let s=P(n.ghash,!1,e,i,r);for(let e=0;e<t.length;e++)s[e]^=t[e];return s}function a(){let r=b(e),o=s.slice(),a=s.slice();if(x(r,!1,a,a,o),12===t.length)a.set(t);else{let e=s.slice(),r=(0,i.createView)(e);(0,i.setBigUint64)(r,8,BigInt(8*t.length),!1);let c=n.ghash.create(o).update(t).update(e);c.digestInto(a),c.destroy()}let c=x(r,!1,a,s);return{xk:r,authKey:o,counter:a,tagMask:c}}return{encrypt(e){let{xk:t,authKey:r,counter:n,tagMask:s}=a(),c=new Uint8Array(e.length+16),l=[t,r,n,s];(0,i.isAligned32)(e)||l.push(e=(0,i.copyBytes)(e)),x(t,!1,n,e,c.subarray(0,e.length));let u=o(r,s,c.subarray(0,c.length-16));return l.push(u),c.set(u,e.length),(0,i.clean)(...l),c},decrypt(e){let{xk:t,authKey:r,counter:n,tagMask:s}=a(),c=[t,r,s,n];(0,i.isAligned32)(e)||c.push(e=(0,i.copyBytes)(e));let l=e.subarray(0,-16),u=e.subarray(-16),h=o(r,s,l);if(c.push(h),!(0,i.equalBytes)(h,u))throw Error("aes/gcm: invalid ghash tag");let d=x(t,!1,n,l);return(0,i.clean)(...c),d}}});let T=(e,t,r)=>n=>{if(!Number.isSafeInteger(n)||t>n||n>r)throw Error(""+e+": expected value in range "+("["+t)+".."+r+"], got "+n)};function U(e){return e instanceof Uint32Array||ArrayBuffer.isView(e)&&"Uint32Array"===e.constructor.name}function B(e,t){if((0,i.abytes)(t,16),!U(e))throw Error("_encryptBlock accepts result of expandKeyLE");let r=(0,i.u32)(t),{s0:n,s1:s,s2:o,s3:a}=_(e,r[0],r[1],r[2],r[3]);return r[0]=n,r[1]=s,r[2]=o,r[3]=a,t}function I(e,t){if((0,i.abytes)(t,16),!U(e))throw Error("_decryptBlock accepts result of expandKeyLE");let r=(0,i.u32)(t),{s0:n,s1:s,s2:o,s3:a}=A(e,r[0],r[1],r[2],r[3]);return r[0]=n,r[1]=s,r[2]=o,r[3]=a,t}t.gcmsiv=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(e,t,r){let s=T("AAD",0,68719476736),o=T("plaintext",0,68719476736),a=T("nonce",12,12),c=T("ciphertext",16,68719476736+16);
1function l(){let r=b(e),n=new Uint8Array(e.length),s=new Uint8Array(16),o=[r,n],a=t;(0,i.isAligned32)(a)||o.push(a=(0,i.copyBytes)(a));let c=(0,i.u32)(a),l=0,u=c[0],h=c[1],d=c[2],f=0;for(let e of[s,n].map(i.u32)){let t=(0,i.u32)(e);for(let e=0;e<t.length;e+=2){let{s0:n,s1:i}=_(r,l,u,h,d);t[e+0]=n,t[e+1]=i,l=++f}}let p={authKey:s,encKey:b(n)};return(0,i.clean)(...o),p}function u(e,s,o){let a=P(n.polyval,!0,s,o,r);for(let e=0;e<12;e++)a[e]^=t[e];a[15]&=127;let c=(0,i.u32)(a),l=c[0],u=c[1],h=c[2],d=c[3];return{s0:l,s1:u,s2:h,s3:d}=_(e,l,u,h,d),c[0]=l,c[1]=u,c[2]=h,c[3]=d,a}function h(e,t,r){let n=(0,i.copyBytes)(t);n[15]|=128;let s=x(e,!0,n,r);return(0,i.clean)(n),s}return(0,i.abytes)(e,16,24,32),a(t.length),void 0!==r&&s(r.length),{encrypt(e){o(e.length);let{encKey:t,authKey:r}=l(),n=u(t,r,e),s=[t,r,n];(0,i.isAligned32)(e)||s.push(e=(0,i.copyBytes)(e));let a=new Uint8Array(e.length+16);return a.set(n,e.length),a.set(h(t,n,e)),(0,i.clean)(...s),a},decrypt(e){c(e.length);let t=e.subarray(-16),{encKey:r,authKey:n}=l(),s=[r,n];(0,i.isAligned32)(e)||s.push(e=(0,i.copyBytes)(e));let o=h(r,t,e.subarray(0,-16)),a=u(r,n,o);if(s.push(a),!(0,i.equalBytes)(t,a))throw(0,i.clean)(...s),Error("invalid polyval tag");return(0,i.clean)(...s),o}}}),t.siv=t.gcmsiv;let O={encrypt(e,t){if(t.length>=4294967296)throw Error("plaintext should be less than 4gb");let r=b(e);if(16===t.length)B(r,t);else{let e=(0,i.u32)(t),n=e[0],s=e[1];for(let t=0,i=1;t<6;t++)for(let t=2;t<e.length;t+=2,i++){let{s0:o,s1:a,s2:c,s3:l}=_(r,n,s,e[t],e[t+1]);n=o,s=a^d(i),e[t]=c,e[t+1]=l}e[0]=n,e[1]=s}r.fill(0)},decrypt(e,t){if(t.length-8>=4294967296)throw Error("ciphertext should be less than 4gb");let r=g(e),n=t.length/8-1;if(1===n)I(r,t);else{let e=(0,i.u32)(t),s=e[0],o=e[1];for(let t=0,i=6*n;t<6;t++)for(let t=2*n;t>=1;t-=2,i--){let{s0:n,s1:a,s2:c,s3:l}=A(r,s,o^=d(i),e[t],e[t+1]);s=n,o=a,e[t]=c,e[t+1]=l}e[0]=s,e[1]=o}r.fill(0)}},R=new Uint8Array(8).fill(166);t.aeskw=(0,i.wrapCipher)({blockSize:8},e=>({encrypt(t){if(!t.length||t.length%8!=0)throw Error("invalid plaintext length");if(8===t.length)throw Error("8-byte keys not allowed in AESKW, use AESKWP instead");let r=(0,i.concatBytes)(R,t);return O.encrypt(e,r),r},decrypt(t){if(t.length%8!=0||t.length<24)throw Error("invalid ciphertext length");let r=(0,i.copyBytes)(t);if(O.decrypt(e,r),!(0,i.equalBytes)(r.subarray(0,8),R))throw Error("integrity check failed");return r.subarray(0,8).fill(0),r.subarray(8)}})),t.aeskwp=(0,i.wrapCipher)({blockSize:8},e=>({encrypt(t){if(!t.length)throw Error("invalid plaintext length");let r=new Uint8Array(8+8*Math.ceil(t.length/8));r.set(t,8);let n=(0,i.u32)(r);return n[0]=2790873510,n[1]=d(t.length),O.encrypt(e,r),r},decrypt(t){if(t.length<16)throw Error("invalid ciphertext length");let r=(0,i.copyBytes)(t),n=(0,i.u32)(r);O.decrypt(e,r);let s=d(n[1])>>>0,o=8*Math.ceil(s/8);if(2790873510!==n[0]||r.length-8!==o)throw Error("integrity check failed");for(let e=s;e<o;e++)if(0!==r[8+e])throw Error("integrity check failed");return r.subarray(0,8).fill(0),r.subarray(8,8+s)}})),t.unsafe={expandKeyLE:b,expandKeyDecLE:g,encrypt:_,decrypt:A,encryptBlock:B,decryptBlock:I,ctrCounter:M,ctr32:x}},11568:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xchacha20poly1305=t.chacha20poly1305=t._poly1305_aead=t.chacha12=t.chacha8=t.xchacha20=t.chacha20=t.chacha20orig=void 0,t.hchacha=a;let n=r(22279),i=r(73854),s=r(1107);function o(e,t,r,i,s,o=20){let a=e[0],c=e[1],l=e[2],u=e[3],h=t[0],d=t[1],f=t[2],p=t[3],m=t[4],y=t[5],b=t[6],g=t[7],w=r[0],v=r[1],_=r[2],A=a,M=c,x=l,E=u,S=h,k=d,C=f,P=p,T=m,U=y,B=b,I=g,O=s,R=w,N=v,F=_;for(let e=0;e<o;e+=2)A=A+S|0,T=T+(O=(0,n.rotl)(O^A,16))|0,A=A+(S=(0,n.rotl)(S^T,12))|0,T=T+(O=(0,n.rotl)(O^A,8))|0,S=(0,n.rotl)(S^T,7),M=M+k|0,U=U+(R=(0,n.rotl)(R^M,16))|0,M=M+(k=(0,n.rotl)(k^U,12))|0,U=U+(R=(0,n.rotl)(R^M,8))|0,k=(0,n.rotl)(k^U,7),x=x+C|0,B=B+(N=(0,n.rotl)(N^x,16))|0,x=x+(C=(0,n.rotl)(C^B,12))|0,B=B+(N=(0,n.rotl)(N^x,8))|0,C=(0,n.rotl)(C^B,7),E=E+P|0,I=I+(F=(0,n.rotl)(F^E,16))|0,E=E+(P=(0,n.rotl)(P^I,12))|0,I=I+(F=(0,n.rotl)(F^E,8))|0,P=(0,n.rotl)(P^I,7),A=A+k|0,B=B+(F=(0,n.rotl)(F^A,16))|0,A=A+(k=(0,n.rotl)(k^B,12))|0,B=B+(F=(0,n.rotl)(F^A,8))|0,k=(0,n.rotl)(k^B,7),M=M+C|0,I=I+(O=(0,n.rotl)(O^M,16))|0,M=M+(C=(0,n.rotl)(C^I,12))|0,I=I+(O=(0,n.rotl)(O^M,8))|0,C=(0,n.rotl)(C^I,7),x=x+P|0,T=T+(R=(0,n.rotl)(R^x,16))|0,x=x+(P=(0,n.rotl)(P^T,12))|0,T=T+(R=(0,n.rotl)(R^x,8))|0,P=(0,n.rotl)(P^T,7),E=E+S|0,U=U+(N=(0,n.rotl)(N^E,16))|0,E=E+(S=(0,n.rotl)(S^U,12))|0,U=U+(N=(0,n.rotl)(N^E,8))|0,S=(0,n.rotl)(S^U,7);let L=0;i[L++]=a+A|0,i[L++]=c+M|0,i[L++]=l+x|0,i[L++]=u+E|0,i[L++]=h+S|0,i[L++]=d+k|0,i[L++]=f+C|0,i[L++]=p+P|0,i[L++]=m+T|0,i[L++]=y+U|0,i[L++]=b+B|0,i[L++]=g+I|0,i[L++]=s+O|0,i[L++]=w+R|0,i[L++]=v+N|0,i[L++]=_+F|0}function a(e,t,r,i){let s=e[0],o=e[1],a=e[2],c=e[3],l=t[0],u=t[1],h=t[2],d=t[3],f=t[4],p=t[5],m=t[6],y=t[7],b=r[0],g=r[1],w=r[2],v=r[3];for(let e=0;e<20;e+=2)s=s+l|0,f=f+(b=(0,n.rotl)(b^s,16))|0,s=s+(l=(0,n.rotl)(l^f,12))|0,f=f+(b=(0,n.rotl)(b^s,8))|0,l=(0,n.rotl)(l^f,7),o=o+u|0,p=p+(g=(0,n.rotl)(g^o,16))|0,o=o+(u=(0,n.rotl)(u^p,12))|0,p=p+(g=(0,n.rotl)(g^o,8))|0,u=(0,n.rotl)(u^p,7),a=a+h|0,m=m+(w=(0,n.rotl)(w^a,16))|0,a=a+(h=(0,n.rotl)(h^m,12))|0,m=m+(w=(0,n.rotl)(w^a,8))|0,h=(0,n.rotl)(h^m,7),c=c+d|0,y=y+(v=(0,n.rotl)(v^c,16))|0,c=c+(d=(0,n.rotl)(d^y,12))|0,y=y+(v=(0,n.rotl)(v^c,8))|0,d=(0,n.rotl)(d^y,7),s=s+u|0,m=m+(v=(0,n.rotl)(v^s,16))|0,s=s+(u=(0,n.rotl)(u^m,12))|0,m=m+(v=(0,n.rotl)(v^s,8))|0,u=(0,n.rotl)(u^m,7),o=o+h|0,y=y+(b=(0,n.rotl)(b^o,16))|0,o=o+(h=(0,n.rotl)(h^y,12))|0,y=y+(b=(0,n.rotl)(b^o,8))|0,h=(0,n.rotl)(h^y,7),a=a+d|0,f=f+(g=(0,n.rotl)(g^a,16))|0,a=a+(d=(0,n.rotl)(d^f,12))|0,f=f+(g=(0,n.rotl)(g^a,8))|0,d=(0,n.rotl)(d^f,7),c=c+l|0,p=p+(w=(0,n.rotl)(w^c,16))|0,c=c+(l=(0,n.rotl)(l^p,12))|0,p=p+(w=(0,n.rotl)(w^c,8))|0,l=(0,n.rotl)(l^p,7);let _=0;i[_++]=s,i[_++]=o,i[_++]=a,i[_++]=c,i[_++]=b,i[_++]=g,i[_++]=w,i[_++]=v}t.chacha20orig=(0,n.createCipher)(o,{counterRight:!1,counterLength:8,allowShortKeys:!0}),t.chacha20=(0,n.createCipher)(o,{counterRight:!1,counterLength:4,allowShortKeys:!1}),t.xchacha20=(0,n.createCipher)(o,{counterRight:!1,counterLength:8,extendNonceFn:a,allowShortKeys:!1}),t.chacha8=(0,n.createCipher)(o,{counterRight:!1,counterLength:4,rounds:8}),t.chacha12=(0,n.createCipher)(o,{counterRight:!1,counterLength:4,rounds:12});let c=new Uint8Array(16),l=(e,t)=>
1{e.update(t);let r=t.length%16;r&&e.update(c.subarray(r))},u=new Uint8Array(32);function h(e,t,r,n,o){let a=e(t,r,u),c=i.poly1305.create(a);o&&l(c,o),l(c,n);let h=(0,s.u64Lengths)(n.length,o?o.length:0,!0);c.update(h);let d=c.digest();return(0,s.clean)(a,h),d}t._poly1305_aead=e=>(t,r,n)=>({encrypt(i,o){let a=i.length;(o=(0,s.getOutput)(a+16,o,!1)).set(i);let c=o.subarray(0,-16);e(t,r,c,c,1);let l=h(e,t,r,c,n);return o.set(l,a),(0,s.clean)(l),o},decrypt(i,o){o=(0,s.getOutput)(i.length-16,o,!1);let a=i.subarray(0,-16),c=i.subarray(-16),l=h(e,t,r,a,n);if(!(0,s.equalBytes)(c,l))throw Error("invalid tag");return o.set(i.subarray(0,-16)),e(t,r,o,o,1),(0,s.clean)(l),o}}),t.chacha20poly1305=(0,s.wrapCipher)({blockSize:64,nonceLength:12,tagLength:16},(0,t._poly1305_aead)(t.chacha20)),t.xchacha20poly1305=(0,s.wrapCipher)({blockSize:64,nonceLength:24,tagLength:16},(0,t._poly1305_aead)(t.xchacha20))},4547:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},1107:function(e,t){"use strict";function r(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function n(e){if("boolean"!=typeof e)throw Error(`boolean expected, not ${e}`)}function i(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function s(e,...t){if(!r(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function o(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCipher=t.Hash=t.nextTick=t.isLE=void 0,t.isBytes=r,t.abool=n,t.anumber=i,t.abytes=s,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");i(e.outputLen),i(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},t.aoutput=function(e,t){s(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=o,t.bytesToHex=l,t.hexToBytes=d,t.hexToNumber=f,t.bytesToNumberBE=function(e){return f(l(e))},t.numberToBytesBE=function(e,t){return d(e.toString(16).padStart(2*t,"0"))},t.utf8ToBytes=m,t.bytesToUtf8=function(e){return new TextDecoder().decode(e)},t.toBytes=function(e){if("string"==typeof e)e=m(e);else if(r(e))e=v(e);else throw Error("Uint8Array expected, got "+typeof e);return e},t.overlapBytes=y,t.complexOverlapBytes=function(e,t){if(y(e,t)&&e.byteOffset<t.byteOffset)throw Error("complex overlap of input and output is not supported")},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];s(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r},t.checkOpts=function(e,t){if(null==t||"object"!=typeof t)throw Error("options must be defined");return Object.assign(e,t)},t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},t.getOutput=function(e,t,r=!0){if(void 0===t)return new Uint8Array(e);if(t.length!==e)throw Error("invalid output length, expected "+e+", got: "+t.length);if(r&&!w(t))throw Error("invalid output, must be aligned");return t},t.setBigUint64=g,t.u64Lengths=function(e,t,r){n(r);let i=new Uint8Array(16),s=o(i);return g(s,0,BigInt(t),r),g(s,8,BigInt(e),r),i},t.isAligned32=w,t.copyBytes=v,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];let a="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,c=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(e){if(s(e),a)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=c[e[r]];return t}let u={_0:48,_9:57,A:65,F:70,a:97,f:102};function h(e){return e>=u._0&&e<=u._9?e-u._0:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function d(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(a)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=h(e.charCodeAt(i)),s=h(e.charCodeAt(i+1));if(void 0===r||void 0===s)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+s}return n}function f(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":"0x"+e)}let p=async()=>{};function m(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function y(e,t){return e.buffer===t.buffer&&e.byteOffset<t.byteOffset+t.byteLength&&t.byteOffset<e.byteOffset+e.byteLength}t.nextTick=p;class b{}function g(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;e.setUint32(t+c,o,n),e.setUint32(t+l,a,n)}function w(e){return e.byteOffset%4==0}function v(e){return Uint8Array.from(e)}t.Hash=b,t.wrapCipher=(e,r)=>{function n(i,...o){if(s(i),!t.isLE)throw Error("Non little-endian hardware is not yet supported");
1if(void 0!==e.nonceLength){let t=o[0];if(!t)throw Error("nonce / iv required");e.varSizeNonce?s(t):s(t,e.nonceLength)}let a=e.tagLength;a&&void 0!==o[1]&&s(o[1]);let c=r(i,...o),l=(e,t)=>{if(void 0!==t){if(2!==e)throw Error("cipher output not supported");s(t)}},u=!1;return{encrypt(e,t){if(u)throw Error("cannot encrypt() twice with same key + nonce");return u=!0,s(e),l(c.encrypt.length,t),c.encrypt(e,t)},decrypt(e,t){if(s(e),a&&e.length<a)throw Error("invalid ciphertext length: smaller than tagLength="+a);return l(c.decrypt.length,t),c.decrypt(e,t)}}}return Object.assign(n,e),n}},74497:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gcm=t.ctr=t.cbc=t.utils=void 0,t.randomBytes=s,t.getWebcryptoSubtle=o,t.managedNonce=function(e){let{nonceLength:t}=e;return(0,i.anumber)(t),(r,...n)=>({encrypt(o,...a){let c=s(t),l=e(r,c,...n).encrypt(o,...a),u=(0,i.concatBytes)(c,l);return l.fill(0),u},decrypt(i,...s){let o=i.subarray(0,t),a=i.subarray(t);return e(r,o,...n).decrypt(a,...s)}})};let n=r(4547),i=r(1107);function s(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw Error("crypto.getRandomValues must be defined")}function o(){if(n.crypto&&"object"==typeof n.crypto.subtle&&null!=n.crypto.subtle)return n.crypto.subtle;throw Error("crypto.subtle must be defined")}t.utils={async encrypt(e,t,r,n){let i=o(),s=await i.importKey("raw",e,t,!0,["encrypt"]);return new Uint8Array(await i.encrypt(r,s,n))},async decrypt(e,t,r,n){let i=o(),s=await i.importKey("raw",e,t,!0,["decrypt"]);return new Uint8Array(await i.decrypt(r,s,n))}};let a={CBC:"AES-CBC",CTR:"AES-CTR",GCM:"AES-GCM"};function c(e){return(r,n,s)=>{(0,i.abytes)(r),(0,i.abytes)(n);let o={name:e,length:8*r.length},c=function(e,t,r){if(e===a.CBC)return{name:a.CBC,iv:t};if(e===a.CTR)return{name:a.CTR,counter:t,length:64};if(e===a.GCM)return r?{name:a.GCM,iv:t,additionalData:r}:{name:a.GCM,iv:t};throw Error("unknown aes block mode")}(e,n,s),l=!1;return{encrypt(e){if((0,i.abytes)(e),l)throw Error("Cannot encrypt() twice with same key / nonce");return l=!0,t.utils.encrypt(r,o,c,e)},decrypt:e=>((0,i.abytes)(e),t.utils.decrypt(r,o,c,e))}}}t.cbc=c(a.CBC),t.ctr=c(a.CTR),t.gcm=c(a.GCM)},6736:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA512_IV=t.SHA384_IV=t.SHA224_IV=t.SHA256_IV=t.HashMD=void 0,t.setBigUint64=i,t.Chi=function(e,t,r){return e&t^~e&r},t.Maj=function(e,t,r){return e&t^e&r^t&r};let n=r(36286);function i(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;e.setUint32(t+c,o,n),e.setUint32(t+l,a,n)}
1class s extends n.Hash{constructor(e,t,r,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,n.createView)(this.buffer)}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);let{view:t,buffer:r,blockLen:i}=this,s=e.length;for(let o=0;o<s;){let a=Math.min(i-this.pos,s-o);if(a===i){let t=(0,n.createView)(e);for(;i<=s-o;o+=i)this.process(t,o);continue}r.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.aexists)(this),(0,n.aoutput)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:s,isLE:o}=this,{pos:a}=this;t[a++]=128,(0,n.clean)(this.buffer.subarray(a)),this.padOffset>s-a&&(this.process(r,0),a=0);for(let e=a;e<s;e++)t[e]=0;i(r,s-8,BigInt(8*this.length),o),this.process(r,0);let c=(0,n.createView)(e),l=this.outputLen;if(l%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=l/4,h=this.get();if(u>h.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)c.setUint32(4*e,h[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:s,pos:o}=this;return e.destroyed=s,e.finished=i,e.length=n,e.pos=o,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}t.HashMD=s,t.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),t.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),t.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),t.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},20132:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=w,t.fromBig=i,t.split=s;let r=BigInt(4294967296-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function s(e,t=!1){let r=e.length,n=new Uint32Array(r),s=new Uint32Array(r);for(let o=0;o<r;o++){let{h:r,l:a}=i(e[o],t);[n[o],s[o]]=[r,a]}return[n,s]}let o=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=o;let a=(e,t,r)=>e>>>r;t.shrSH=a;let c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;let l=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=l;let u=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=u;let h=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=h;let d=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=d;let f=(e,t)=>t;t.rotr32H=f;let p=(e,t)=>e;t.rotr32L=p;let m=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=m;let y=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=y;let b=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=b;let g=(e,t,r)=>e<<r-32|t>>>64-r;function w(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/4294967296|0)|0,l:0|i}}t.rotlBL=g;let v=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=v;let _=(e,t,r,n)=>t+r+n+(e/4294967296|0)|0;t.add3H=_;let A=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=A;let M=(e,t,r,n,i)=>t+r+n+i+(e/4294967296|0)|0;t.add4H=M;let x=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);t.add5L=x;let E=(e,t,r,n,i,s)=>t+r+n+i+s+(e/4294967296|0)|0;t.add5H=E,t.default={fromBig:i,split:s,toBig:o,shrSH:a,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:h,rotrBL:d,rotr32H:f,rotr32L:p,rotlSH:m,rotlSL:y,rotlBH:b,rotlBL:g,add:w,add3L:v,add3H:_,add4L:A,add4H:M,add5H:E,add5L:x}},15749:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},30782:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.hkdf=void 0,t.extract=s,t.expand=c;let n=r(30854),i=r(36286);function s(e,t,r){return(0,i.ahash)(e),void 0===r&&(r=new Uint8Array(e.outputLen)),(0,n.hmac)(e,(0,i.toBytes)(r),(0,i.toBytes)(t))}let o=Uint8Array.from([0]),a=Uint8Array.of();function c(e,t,r,s=32){(0,i.ahash)(e),(0,i.anumber)(s);let c=e.outputLen;if(s>255*c)throw Error("Length should be <= 255*HashLen");let l=Math.ceil(s/c);void 0===r&&(r=a);let u=new Uint8Array(l*c),h=n.hmac.create(e,t),d=h._cloneInto(),f=new Uint8Array(h.outputLen);for(let e=0;e<l;e++)o[0]=e+1,d.update(0===e?a:f).update(r).update(o).digestInto(f),u.set(f,c*e),h._cloneInto(d);return h.destroy(),d.destroy(),(0,i.clean)(f,o),u.slice(0,s)}t.hkdf=(e,t,r,n,i)=>c(e,s(e,t,r),n,i)},30854:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;let n=r(36286);class i extends n.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.ahash)(e);let r=(0,n.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,s=new Uint8Array(i);s.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<s.length;e++)s[e]^=54;this.iHash.update(s),this.oHash=e.create();for(let e=0;e<s.length;e++)s[e]^=106;this.oHash.update(s),(0,n.clean)(s)}update(e){return(0,n.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,n.aexists)(this),(0,n.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:s,outputLen:o}=this;return e.finished=n,e.destroyed=i,e.blockLen=s,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=i,t.hmac=(e,t,r)=>new i(e,t).update(r).digest(),t.hmac.create=(e,t)=>new i(e,t)},80317:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_224=t.sha512_256=t.sha384=t.sha512=t.sha224=t.sha256=t.SHA512_256=t.SHA512_224=t.SHA384=t.SHA512=t.SHA224=t.SHA256=void 0;let n=r(6736),i=r(20132),s=r(36286),o=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array(64);class c extends n.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|n.SHA256_IV[0],this.B=0|n.SHA256_IV[1],this.C=0|n.SHA256_IV[2],this.D=0|n.SHA256_IV[3],this.E=0|n.SHA256_IV[4],this.F=0|n.SHA256_IV[5],this.G=0|n.SHA256_IV[6],this.H=0|n.SHA256_IV[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:s,G:o,H:a}=this;return[e,t,r,n,i,s,o,a]}set(e,t,r,n,i,s,o,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)a[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=a[e-15],r=a[e-2],n=(0,s.rotr)(t,7)^(0,s.rotr)(t,18)^t>>>3,i=(0,s.rotr)(r,17)^(0,s.rotr)(r,19)^r>>>10;a[e]=i+a[e-7]+n+a[e-16]|0}let{A:r,B:i,C:c,D:l,E:u,F:h,G:d,H:f}=this;for(let e=0;e<64;e++){let t=f+((0,s.rotr)(u,6)^(0,s.rotr)(u,11)^(0,s.rotr)(u,25))+(0,n.Chi)(u,h,d)+o[e]+a[e]|0,p=((0,s.rotr)(r,2)^(0,s.rotr)(r,13)^(0,s.rotr)(r,22))+(0,n.Maj)(r,i,c)|0;f=d,d=h,h=u,u=l+t|0,l=c,c=i,i=r,r=t+p|0}r=r+this.A|0,i=i+this.B|0,c=c+this.C|0,l=l+this.D|0,u=u+this.E|0,h=h+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(r,i,c,l,u,h,d,f)}roundClean(){(0,s.clean)(a)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,s.clean)(this.buffer)}}t.SHA256=c;class l extends c{constructor(){super(28),this.A=0|n.SHA224_IV[0],this.B=0|n.SHA224_IV[1],this.C=0|n.SHA224_IV[2],this.D=0|n.SHA224_IV[3],this.E=0|n.SHA224_IV[4],this.F=0|n.SHA224_IV[5],this.G=0|n.SHA224_IV[6],this.H=0|n.SHA224_IV[7]}}t.SHA224=l;let u=i.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
16f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),h=u[0],d=u[1],f=new Uint32Array(80),p=new Uint32Array(80);class m extends n.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=0|n.SHA512_IV[0],this.Al=0|n.SHA512_IV[1],this.Bh=0|n.SHA512_IV[2],this.Bl=0|n.SHA512_IV[3],this.Ch=0|n.SHA512_IV[4],this.Cl=0|n.SHA512_IV[5],this.Dh=0|n.SHA512_IV[6],this.Dl=0|n.SHA512_IV[7],this.Eh=0|n.SHA512_IV[8],this.El=0|n.SHA512_IV[9],this.Fh=0|n.SHA512_IV[10],this.Fl=0|n.SHA512_IV[11],this.Gh=0|n.SHA512_IV[12],this.Gl=0|n.SHA512_IV[13],this.Hh=0|n.SHA512_IV[14],this.Hl=0|n.SHA512_IV[15]}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:s,Dh:o,Dl:a,Eh:c,El:l,Fh:u,Fl:h,Gh:d,Gl:f,Hh:p,Hl:m}=this;return[e,t,r,n,i,s,o,a,c,l,u,h,d,f,p,m]}set(e,t,r,n,i,s,o,a,c,l,u,h,d,f,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|s,this.Dh=0|o,this.Dl=0|a,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|h,this.Gh=0|d,this.Gl=0|f,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let r=0;r<16;r++,t+=4)f[r]=e.getUint32(t),p[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|f[e-15],r=0|p[e-15],n=i.rotrSH(t,r,1)^i.rotrSH(t,r,8)^i.shrSH(t,r,7),s=i.rotrSL(t,r,1)^i.rotrSL(t,r,8)^i.shrSL(t,r,7),o=0|f[e-2],a=0|p[e-2],c=i.rotrSH(o,a,19)^i.rotrBH(o,a,61)^i.shrSH(o,a,6),l=i.rotrSL(o,a,19)^i.rotrBL(o,a,61)^i.shrSL(o,a,6),u=i.add4L(s,l,p[e-7],p[e-16]),h=i.add4H(u,n,c,f[e-7],f[e-16]);f[e]=0|h,p[e]=0|u}let{Ah:r,Al:n,Bh:s,Bl:o,Ch:a,Cl:c,Dh:l,Dl:u,Eh:m,El:y,Fh:b,Fl:g,Gh:w,Gl:v,Hh:_,Hl:A}=this;for(let e=0;e<80;e++){let t=i.rotrSH(m,y,14)^i.rotrSH(m,y,18)^i.rotrBH(m,y,41),M=i.rotrSL(m,y,14)^i.rotrSL(m,y,18)^i.rotrBL(m,y,41),x=m&b^~m&w,E=y&g^~y&v,S=i.add5L(A,M,E,d[e],p[e]),k=i.add5H(S,_,t,x,h[e],f[e]),C=0|S,P=i.rotrSH(r,n,28)^i.rotrBH(r,n,34)^i.rotrBH(r,n,39),T=i.rotrSL(r,n,28)^i.rotrBL(r,n,34)^i.rotrBL(r,n,39),U=r&s^r&a^s&a,B=n&o^n&c^o&c;_=0|w,A=0|v,w=0|b,v=0|g,b=0|m,g=0|y,({h:m,l:y}=i.add(0|l,0|u,0|k,0|C)),l=0|a,u=0|c,a=0|s,c=0|o,s=0|r,o=0|n;let I=i.add3L(C,T,B);r=i.add3H(I,k,P,U),n=0|I}({h:r,l:n}=i.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:s,l:o}=i.add(0|this.Bh,0|this.Bl,0|s,0|o)),({h:a,l:c}=i.add(0|this.Ch,0|this.Cl,0|a,0|c)),({h:l,l:u}=i.add(0|this.Dh,0|this.Dl,0|l,0|u)),({h:m,l:y}=i.add(0|this.Eh,0|this.El,0|m,0|y)),({h:b,l:g}=i.add(0|this.Fh,0|this.Fl,0|b,0|g)),({h:w,l:v}=i.add(0|this.Gh,0|this.Gl,0|w,0|v)),({h:_,l:A}=i.add(0|this.Hh,0|this.Hl,0|_,0|A)),this.set(r,n,s,o,a,c,l,u,m,y,b,g,w,v,_,A)}roundClean(){(0,s.clean)(f,p)}destroy(){(0,s.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=m;class y extends m{constructor(){super(48),this.Ah=0|n.SHA384_IV[0],this.Al=0|n.SHA384_IV[1],this.Bh=0|n.SHA384_IV[2],this.Bl=0|n.SHA384_IV[3],this.Ch=0|n.SHA384_IV[4],this.Cl=0|n.SHA384_IV[5],this.Dh=0|n.SHA384_IV[6],this.Dl=0|n.SHA384_IV[7],this.Eh=0|n.SHA384_IV[8],this.El=0|n.SHA384_IV[9],this.Fh=0|n.SHA384_IV[10],this.Fl=0|n.SHA384_IV[11],this.Gh=0|n.SHA384_IV[12],this.Gl=0|n.SHA384_IV[13],this.Hh=0|n.SHA384_IV[14],this.Hl=0|n.SHA384_IV[15]}}t.SHA384=y;let b=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),g=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,28279439
107,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class w extends m{constructor(){super(28),this.Ah=0|b[0],this.Al=0|b[1],this.Bh=0|b[2],this.Bl=0|b[3],this.Ch=0|b[4],this.Cl=0|b[5],this.Dh=0|b[6],this.Dl=0|b[7],this.Eh=0|b[8],this.El=0|b[9],this.Fh=0|b[10],this.Fl=0|b[11],this.Gh=0|b[12],this.Gl=0|b[13],this.Hh=0|b[14],this.Hl=0|b[15]}}t.SHA512_224=w;class v extends m{constructor(){super(32),this.Ah=0|g[0],this.Al=0|g[1],this.Bh=0|g[2],this.Bl=0|g[3],this.Ch=0|g[4],this.Cl=0|g[5],this.Dh=0|g[6],this.Dl=0|g[7],this.Eh=0|g[8],this.El=0|g[9],this.Fh=0|g[10],this.Fl=0|g[11],this.Gh=0|g[12],this.Gl=0|g[13],this.Hh=0|g[14],this.Hl=0|g[15]}}t.SHA512_256=v,t.sha256=(0,s.createHasher)(()=>new c),t.sha224=(0,s.createHasher)(()=>new l),t.sha512=(0,s.createHasher)(()=>new m),t.sha384=(0,s.createHasher)(()=>new y),t.sha512_256=(0,s.createHasher)(()=>new v),t.sha512_224=(0,s.createHasher)(()=>new w)},36286:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=i,t.anumber=s,t.abytes=o,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");s(e.outputLen),s(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},t.aoutput=function(e,t){o(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=a,t.byteSwap32=c,t.bytesToHex=function(e){if(o(e),l)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=u[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(l)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=d(e.charCodeAt(i)),s=d(e.charCodeAt(i+1));if(void 0===r||void 0===s)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+s}return n},t.asyncLoop=p,t.utf8ToBytes=m,t.bytesToUtf8=function(e){return new TextDecoder().decode(e)},t.toBytes=y,t.kdfInputToBytes=function(e){return"string"==typeof e&&(e=m(e)),o(e),e},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];o(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==({}).toString.call(t))throw Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=g,t.createOptHasher=w,t.createXOFer=v,t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw Error("crypto.getRandomValues must be defined")};let n=r(15749);function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function s(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function o(e,...t){if(!i(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function a(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=a(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>a(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;let l="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),h={_0:48,_9:57,A:65,F:70,a:97,f:102};function d(e){return e>=h._0&&e<=h._9?e-h._0:e>=h.A&&e<=h.F?e-(h.A-10):e>=h.a&&e<=h.f?e-(h.a-10):void 0}
1let f=async()=>{};async function p(e,r,n){let i=Date.now();for(let s=0;s<e;s++){n(s);let e=Date.now()-i;e>=0&&e<r||(await (0,t.nextTick)(),i+=e)}}function m(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function y(e){return"string"==typeof e&&(e=m(e)),o(e),e}t.nextTick=f;class b{}function g(e){let t=t=>e().update(y(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function w(e){let t=(t,r)=>e(r).update(y(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function v(e){let t=(t,r)=>e(r).update(y(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}t.Hash=b,t.wrapConstructor=g,t.wrapConstructorWithOpts=w,t.wrapXOFConstructorWithOpts=v},26793:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(74952),i=r(1072),s=function(){function e(e){this._semaphore=new i.default(1,e)}return e.prototype.acquire=function(){return n.__awaiter(this,arguments,void 0,function(e){return void 0===e&&(e=0),n.__generator(this,function(t){switch(t.label){case 0:return[4,this._semaphore.acquire(1,e)];case 1:return[2,t.sent()[1]]}})})},e.prototype.runExclusive=function(e,t){return void 0===t&&(t=0),this._semaphore.runExclusive(function(){return e()},1,t)},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.waitForUnlock=function(e){return void 0===e&&(e=0),this._semaphore.waitForUnlock(1,e)},e.prototype.release=function(){this._semaphore.isLocked()&&this._semaphore.release()},e.prototype.cancel=function(){return this._semaphore.cancel()},e}();t.default=s},1072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(74952),i=r(45877),s=function(){function e(e,t){void 0===t&&(t=i.E_CANCELED),this._value=e,this._cancelError=t,this._queue=[],this._weightedWaiters=[]}return e.prototype.acquire=function(e,t){var r=this;if(void 0===e&&(e=1),void 0===t&&(t=0),e<=0)throw Error("invalid weight ".concat(e,": must be positive"));return new Promise(function(n,i){var s={resolve:n,reject:i,weight:e,priority:t},a=o(r._queue,function(e){return t<=e.priority});-1===a&&e<=r._value?r._dispatchItem(s):r._queue.splice(a+1,0,s)})},e.prototype.runExclusive=function(e){return n.__awaiter(this,arguments,void 0,function(e,t,r){var i,s,o;return void 0===t&&(t=1),void 0===r&&(r=0),n.__generator(this,function(n){switch(n.label){case 0:return[4,this.acquire(t,r)];case 1:s=(i=n.sent())[0],o=i[1],n.label=2;case 2:return n.trys.push([2,,4,5]),[4,e(s)];case 3:return[2,n.sent()];case 4:return o(),[7];case 5:return[2]}})})},e.prototype.waitForUnlock=function(e,t){var r=this;if(void 0===e&&(e=1),void 0===t&&(t=0),e<=0)throw Error("invalid weight ".concat(e,": must be positive"));return this._couldLockImmediately(e,t)?Promise.resolve():new Promise(function(n){r._weightedWaiters[e-1]||(r._weightedWaiters[e-1]=[]),function(e,t){var r=o(e,function(e){return t.priority<=e.priority});e.splice(r+1,0,t)}(r._weightedWaiters[e-1],{resolve:n,priority:t})})},e.prototype.isLocked=function(){return this._value<=0},e.prototype.getValue=function(){return this._value},e.prototype.setValue=function(e){this._value=e,this._dispatchQueue()},e.prototype.release=function(e){if(void 0===e&&(e=1),e<=0)throw Error("invalid weight ".concat(e,": must be positive"));this._value+=e,this._dispatchQueue()},e.prototype.cancel=function(){var e=this;this._queue.forEach(function(t){return t.reject(e._cancelError)}),this._queue=[]},e.prototype._dispatchQueue=function(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()},e.prototype._dispatchItem=function(e){var t=this._value;this._value-=e.weight,e.resolve([t,this._newReleaser(e.weight)])},e.prototype._newReleaser=function(e){var t=this,r=!1;return function(){r||(r=!0,t.release(e))}},e.prototype._drainUnlockWaiters=function(){if(0===this._queue.length)for(var e=this._value;e>0;e--){var t=this._weightedWaiters[e-1];t&&(t.forEach(function(e){return e.resolve()}),this._weightedWaiters[e-1]=[])}else for(var r=this._queue[0].priority,e=this._value;e>0;e--){var t=this._weightedWaiters[e-1];if(t){var n=t.findIndex(function(e){return e.priority<=r});
1(-1===n?t:t.splice(0,n)).forEach(function(e){return e.resolve()})}}},e.prototype._couldLockImmediately=function(e,t){return(0===this._queue.length||this._queue[0].priority<t)&&e<=this._value},e}();function o(e,t){for(var r=e.length-1;r>=0;r--)if(t(e[r]))return r;return -1}t.default=s},45877:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.E_CANCELED=t.E_ALREADY_LOCKED=t.E_TIMEOUT=void 0,t.E_TIMEOUT=Error("timeout while waiting for mutex to become available"),t.E_ALREADY_LOCKED=Error("mutex already locked"),t.E_CANCELED=Error("request for lock canceled")},55908:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tryAcquire=t.withTimeout=t.Semaphore=t.Mutex=void 0;var n=r(74952),i=r(26793);Object.defineProperty(t,"Mutex",{enumerable:!0,get:function(){return i.default}});var s=r(1072);Object.defineProperty(t,"Semaphore",{enumerable:!0,get:function(){return s.default}});var o=r(12837);Object.defineProperty(t,"withTimeout",{enumerable:!0,get:function(){return o.withTimeout}});var a=r(69925);Object.defineProperty(t,"tryAcquire",{enumerable:!0,get:function(){return a.tryAcquire}}),n.__exportStar(r(45877),t)},69925:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tryAcquire=void 0;var n=r(45877),i=r(12837);t.tryAcquire=function(e,t){return void 0===t&&(t=n.E_ALREADY_LOCKED),(0,i.withTimeout)(e,0,t)}},12837:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=void 0;var n=r(74952),i=r(45877);function s(e){return void 0!==e.getValue}t.withTimeout=function(e,t,r){var o=this;return void 0===r&&(r=i.E_TIMEOUT),{acquire:function(i,a){var c;if(s(e)?c=i:(c=void 0,a=i),void 0!==c&&c<=0)throw Error("invalid weight ".concat(c,": must be positive"));return new Promise(function(i,l){return n.__awaiter(o,void 0,void 0,function(){var o,u,h,d;return n.__generator(this,function(n){switch(n.label){case 0:o=!1,u=setTimeout(function(){o=!0,l(r)},t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,s(e)?e.acquire(c,a):e.acquire(a)];case 2:return h=n.sent(),o?(Array.isArray(h)?h[1]:h)():(clearTimeout(u),i(h)),[3,4];case 3:return d=n.sent(),o||(clearTimeout(u),l(d)),[3,4];case 4:return[2]}})})})},runExclusive:function(e,t,r){return n.__awaiter(this,void 0,void 0,function(){var i,s;return n.__generator(this,function(n){switch(n.label){case 0:i=function(){},n.label=1;case 1:return n.trys.push([1,,7,8]),[4,this.acquire(t,r)];case 2:if(!Array.isArray(s=n.sent()))return[3,4];return i=s[1],[4,e(s[0])];case 3:case 5:return[2,n.sent()];case 4:return i=s,[4,e()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}})})},release:function(t){e.release(t)},cancel:function(){return e.cancel()},waitForUnlock:function(n,i){var o;if(s(e)?o=n:(o=void 0,i=n),void 0!==o&&o<=0)throw Error("invalid weight ".concat(o,": must be positive"));return new Promise(function(n,a){var c=setTimeout(function(){return a(r)},t);(s(e)?e.waitForUnlock(o,i):e.waitForUnlock(i)).then(function(){clearTimeout(c),n()})})},isLocked:function(){return e.isLocked()},getValue:function(){return e.getValue()},setValue:function(t){return e.setValue(t)}}}},55545:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function s(e,t,r){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 9,217 bytes, line 1
1"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(46601).Buffer}catch(e){}function o(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function a(e,t,r){var n=o(e,r);return r-1>=t&&(n|=o(e,r-1)<<4),n}function c(e,t,r,i){for(var s=0,o=0,a=Math.min(e.length,r),c=t;c<a;c++){var l=e.charCodeAt(c)-48;s*=i,o=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o<i,"Invalid character"),s+=o}return s}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(s.isBN=function(e){return e instanceof s||null!==e&&"object"==typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,t){return e.cmp(t)>0?e:t},s.min=function(e,t){return 0>e.cmp(t)?e:t},s.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},s.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},s.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,s,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=e.length-1,i=0;o>=0;o-=3)s=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<e.length;o+=3)s=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},s.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var s=0,o=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=a(e,t,i)<<s,this.words[o]|=67108863&n,s>=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=a(e,t,i)<<s,this.words[o]|=67108863&n,s>=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;this._strip()},s.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var s=e.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u<a;u+=n)l=c(e,u,u+n,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var h=1;for(l=c(e,u,e.length,t),u=0;u<o;u++)h*=t;this.imuln(h),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},s.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype._move=function(e){l(e,this)},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){s.prototype.inspect=u}else s.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,d=["","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"],f=[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],p=[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];function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],s=0|t.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l<n;l++){for(var u=c>>>26,h=67108863&c,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|e.words[p])*(s=0|t.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}s.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,s=0,o=0;o<this.length;o++){var a=this.words[o],c=((a<<i|s)&16777215).toString(16);s=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==s||o!==this.length-1?d[6-c.length]+c+r:c+r}for(0!==s&&(r=s.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],u=p[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(e);r=(h=h.idivn(u)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16,2)},h&&(s.prototype.toBuffer=function(e,t){return this.toArrayLike(h,e,t)}),s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},s.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var o=e.allocUnsafe?e.allocUnsafe(s):new e(s);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},s.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|n;e[r++]=255&o,r<e.length&&(e[r++]=o>>8&255),r<e.length&&(e[r++]=o>>16&255),6===s?(r<e.length&&(e[r++]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},s.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|n;e[r--]=255&o,r>=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===s?(r>=0&&(e[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},s.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},s.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},s.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;
vendor: 10,086 bytes, line 1
1n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},s.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},s.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,s=0;s<n.length;s++)t=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&t,i=t>>>26;for(;0!==i&&s<r.length;s++)t=(0|r.words[s])+i,this.words[s]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var s=0,o=0;o<r.length;o++)s=(n=(0|t.words[o])-(0|r.words[o])+s)>>26,this.words[o]=67108863&n;for(;0!==s&&o<t.length;o++)s=(n=(0|t.words[o])+s)>>26,this.words[o]=67108863&n;if(0===s&&o<t.length&&t!==this)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=Math.max(this.length,o),t!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,r){var n,i,s,o=e.words,a=t.words,c=r.words,l=0,u=0|o[0],h=8191&u,d=u>>>13,f=0|o[1],p=8191&f,m=f>>>13,y=0|o[2],b=8191&y,g=y>>>13,w=0|o[3],v=8191&w,_=w>>>13,A=0|o[4],M=8191&A,x=A>>>13,E=0|o[5],S=8191&E,k=E>>>13,C=0|o[6],P=8191&C,T=C>>>13,U=0|o[7],B=8191&U,I=U>>>13,O=0|o[8],R=8191&O,N=O>>>13,F=0|o[9],L=8191&F,$=F>>>13,j=0|a[0],D=8191&j,q=j>>>13,H=0|a[1],V=8191&H,z=H>>>13,G=0|a[2],K=8191&G,W=G>>>13,Z=0|a[3],J=8191&Z,Y=Z>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,et=0|a[5],er=8191&et,en=et>>>13,ei=0|a[6],es=8191&ei,eo=ei>>>13,ea=0|a[7],ec=8191&ea,el=ea>>>13,eu=0|a[8],eh=8191&eu,ed=eu>>>13,ef=0|a[9],ep=8191&ef,em=ef>>>13;r.negative=e.negative^t.negative,r.length=19;var ey=(l+(n=Math.imul(h,D))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(d,D)|0))<<13)|0;l=((s=Math.imul(d,q))+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(p,D),i=(i=Math.imul(p,q))+Math.imul(m,D)|0,s=Math.imul(m,q);var eb=(l+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,z)|0)+Math.imul(d,V)|0))<<13)|0;l=((s=s+Math.imul(d,z)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(b,D),i=(i=Math.imul(b,q))+Math.imul(g,D)|0,s=Math.imul(g,q),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,z)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,z)|0;var eg=(l+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,K)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(v,D),i=(i=Math.imul(v,q))+Math.imul(_,D)|0,s=Math.imul(_,q),n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,z)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,z)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,K)|0,s=s+Math.imul(m,W)|0;var ew=(l+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,Y)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(M,D),i=(i=Math.imul(M,q))+Math.imul(x,D)|0,s=Math.imul(x,q),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,z)|0)+Math.imul(_,V)|0,s=s+Math.imul(_,z)|0,n=n+Math.imul(b,K)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(g,K)|0,s=s+Math.imul(g,W)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,Y)|0;var ev=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,ee)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(S,D),i=(i=Math.imul(S,q))+Math.imul(k,D)|0,s=Math.imul(k,q),n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,z)|0)+Math.imul(x,V)|0,s=s+Math.imul(x,z)|0,n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(_,K)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(g,J)|0,s=s+Math.imul(g,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,ee)|0;var e_=(l+(n=n+Math.imul(h,er)|0)|0)+((8191&(i=(i=i+Math.imul(h,en)|0)+Math.imul(d,er)|0))<<13)|0;l=((s=s+Math.imul(d,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(P,D),i=(i=Math.imul(P,q))+Math.imul(T,D)|0,s=Math.imul(T,q),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,z)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,z)|0,n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(x,K)|0,s=s+Math.imul(x,W)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(_,J)|0,s=s+Math.imul(_,Y)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,s=s+Math.imul(m,en)|0;var eA=(l+(n=n+Math.imul(h,es)|0)|0)+((8191&(i=(i=i+Math.imul(h,eo)|0)+Math.imul(d,es)|0))<<13)|0;l=((s=s+Math.imul(d,eo)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(B,D),i=(i=Math.imul(B,q))+Math.imul(I,D)|0,s=Math.imul(I,q),n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,z)|0)+Math.imul(T,V)|0,s=s+Math.imul(T,z)|0,n=n+Math.imul(S,K)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(k,K)|0,s=s+Math.imul(k,W)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(x,J)|0,s=s+Math.imul(x,Y)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,ee)|0,n=n+Math.imul(b,er)|0,i=(i=i+Math.imul(b,en)|0)+Math.imul(g,er)|0,s=s+Math.imul(g,en)|0,n=n+Math.imul(p,es)|0,i=(i=i+Math.imul(p,eo)|0)+Math.imul(m,es)|0,s=s+Math.imul(m,eo)|0;var eM=(l+(n=n+Math.imul(h,ec)|0)|0)+((8191&(i=(i=i+Math.imul(h,el)|0)+Math.imul(d,ec)|0))<<13)|0;l=((s=s+Math.imul(d,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(R,D),i=(i=Math.imul(R,q))+Math.imul(N,D)|0,s=Math.imul(N,q),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,z)|0)+Math.imul(I,V)|0,s=s+Math.imul(I,z)|0,n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(T,K)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,Y)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(x,Q)|0,s=s+Math.imul(x,ee)|0,n=n+Math.imul(v,er)|0,i=(i=i+Math.imul(v,en)|0)+Math.imul(_,er)|0,s=s+Math.imul(_,en)|0,n=n+Math.imul(b,es)|0,i=(i=i+Math.imul(b,eo)|0)+Math.imul(g,es)|0,s=s+Math.imul(g,eo)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ec)|0,s=s+Math.imul(m,el)|0;var ex=(l+(n=n+Math.imul(h,eh)|0)|0)+((8191&(i=(i=i+Math.imul(h,ed)|0)+Math.imul(d,eh)|0))<<13)|0;l=((s=s+Math.imul(d,ed)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(L,D),i=(i=Math.imul(L,q))+Math.imul($,D)|0,s=Math.imul($,q),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,z)|0)+Math.imul(N,V)|0,s=s+Math.imul(N,z)|0,n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(I,K)|0,s=s+Math.imul(I,W)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(T,J)|0,s=s+Math.imul(T,Y)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,n=n+Math.imul(M,er)|0,i=(i=i+Math.imul(M,en)|0)+Math.imul(x,er)|0,s=s+Math.imul(x,en)|0,n=n+Math.imul(v,es)|0,i=(i=i+Math.imul(v,eo)|0)+Math.imul(_,es)|0,s=s+Math.imul(_,eo)|0,n=n+Math.imul(b,ec)|0,i=(i=i+Math.imul(b,el)|0)+Math.imul(g,ec)|0,s=s+Math.imul(g,el)|0,n=n+Math.imul(p,eh)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(m,eh)|0,s=s+Math.imul(m,ed)|0;var eE=(l+(n=n+Math.imul(h,ep)|0)|0)+((8191&(i=(i=i+Math.imul(h,em)|0)+Math.imul(d,ep)|0))<<13)|0;l=((s=s+Math.imul(d,em)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,z))+Math.imul($,V)|0,s=Math.imul($,z),n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(N,K)|0,s=s+Math.imul(N,W)|0,n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(I,J)|0,s=s+Math.imul(I,Y)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,ee)|0,n=n+Math.imul(S,er)|0,i=(i=i+Math.imul(S,en)|0)+Math.imul(k,er)|0,s=s+Math.imul(k,en)|0,n=n+Math.imul(M,es)|0,i=(i=i+Math.imul(M,eo)|0)+Math.imul(x,es)|0,s=s+Math.imul(x,eo)|0,n=n+Math.imul(v,ec)|0,i=(i=i+Math.imul(v,el)|0)+Math.imul(_,ec)|0,s=s+Math.imul(_,el)|0,n=n+Math.imul(b,eh)|0,i=(i=i+Math.imul(b,ed)|0)+Math.imul(g,eh)|0,s=s+Math.imul(g,ed)|0;var eS=(l+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;l=((s=s+Math.imul(m,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,W))+Math.imul($,K)|0,s=Math.imul($,W),n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,J)|0,s=s+Math.imul(N,Y)|0,n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(I,Q)|0,s=s+Math.imul(I,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(T,er)|0,s=s+Math.imul(T,en)|0,n=n+Math.imul(S,es)|0,i=(i=i+Math.imul(S,eo)|0)+Math.imul(k,es)|0,s=s+Math.imul(k,eo)|0,n=n+Math.imul(M,ec)|0,i=(i=i+Math.imul(M,el)|0)+Math.imul(x,ec)|0,s=s+Math.imul(x,el)|0,n=n+Math.imul(v,eh)|0,i=(i=i+Math.imul(v,ed)|0)+Math.imul(_,eh)|0,s=s+Math.imul(_,ed)|0;var ek=(l+(n=n+Math.imul(b,ep)|0)|0)+((8191&(i=(i=i+Math.imul(b,em)|0)+Math.imul(g,ep)|0))<<13)|0;l=((s=s+Math.imul(g,em)|0)+(i>>>13)|0)+(ek>>>
vendor: 4,300 bytes, line 1
126)|0,ek&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Y))+Math.imul($,J)|0,s=Math.imul($,Y),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,Q)|0,s=s+Math.imul(N,ee)|0,n=n+Math.imul(B,er)|0,i=(i=i+Math.imul(B,en)|0)+Math.imul(I,er)|0,s=s+Math.imul(I,en)|0,n=n+Math.imul(P,es)|0,i=(i=i+Math.imul(P,eo)|0)+Math.imul(T,es)|0,s=s+Math.imul(T,eo)|0,n=n+Math.imul(S,ec)|0,i=(i=i+Math.imul(S,el)|0)+Math.imul(k,ec)|0,s=s+Math.imul(k,el)|0,n=n+Math.imul(M,eh)|0,i=(i=i+Math.imul(M,ed)|0)+Math.imul(x,eh)|0,s=s+Math.imul(x,ed)|0;var eC=(l+(n=n+Math.imul(v,ep)|0)|0)+((8191&(i=(i=i+Math.imul(v,em)|0)+Math.imul(_,ep)|0))<<13)|0;l=((s=s+Math.imul(_,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,ee))+Math.imul($,Q)|0,s=Math.imul($,ee),n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(N,er)|0,s=s+Math.imul(N,en)|0,n=n+Math.imul(B,es)|0,i=(i=i+Math.imul(B,eo)|0)+Math.imul(I,es)|0,s=s+Math.imul(I,eo)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(T,ec)|0,s=s+Math.imul(T,el)|0,n=n+Math.imul(S,eh)|0,i=(i=i+Math.imul(S,ed)|0)+Math.imul(k,eh)|0,s=s+Math.imul(k,ed)|0;var eP=(l+(n=n+Math.imul(M,ep)|0)|0)+((8191&(i=(i=i+Math.imul(M,em)|0)+Math.imul(x,ep)|0))<<13)|0;l=((s=s+Math.imul(x,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(L,er),i=(i=Math.imul(L,en))+Math.imul($,er)|0,s=Math.imul($,en),n=n+Math.imul(R,es)|0,i=(i=i+Math.imul(R,eo)|0)+Math.imul(N,es)|0,s=s+Math.imul(N,eo)|0,n=n+Math.imul(B,ec)|0,i=(i=i+Math.imul(B,el)|0)+Math.imul(I,ec)|0,s=s+Math.imul(I,el)|0,n=n+Math.imul(P,eh)|0,i=(i=i+Math.imul(P,ed)|0)+Math.imul(T,eh)|0,s=s+Math.imul(T,ed)|0;var eT=(l+(n=n+Math.imul(S,ep)|0)|0)+((8191&(i=(i=i+Math.imul(S,em)|0)+Math.imul(k,ep)|0))<<13)|0;l=((s=s+Math.imul(k,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(L,es),i=(i=Math.imul(L,eo))+Math.imul($,es)|0,s=Math.imul($,eo),n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(N,ec)|0,s=s+Math.imul(N,el)|0,n=n+Math.imul(B,eh)|0,i=(i=i+Math.imul(B,ed)|0)+Math.imul(I,eh)|0,s=s+Math.imul(I,ed)|0;var eU=(l+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(T,ep)|0))<<13)|0;l=((s=s+Math.imul(T,em)|0)+(i>>>13)|0)+(eU>>>26)|0,eU&=67108863,n=Math.imul(L,ec),i=(i=Math.imul(L,el))+Math.imul($,ec)|0,s=Math.imul($,el),n=n+Math.imul(R,eh)|0,i=(i=i+Math.imul(R,ed)|0)+Math.imul(N,eh)|0,s=s+Math.imul(N,ed)|0;var eB=(l+(n=n+Math.imul(B,ep)|0)|0)+((8191&(i=(i=i+Math.imul(B,em)|0)+Math.imul(I,ep)|0))<<13)|0;l=((s=s+Math.imul(I,em)|0)+(i>>>13)|0)+(eB>>>26)|0,eB&=67108863,n=Math.imul(L,eh),i=(i=Math.imul(L,ed))+Math.imul($,eh)|0,s=Math.imul($,ed);var eI=(l+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(N,ep)|0))<<13)|0;l=((s=s+Math.imul(N,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863;var eO=(l+(n=Math.imul(L,ep))|0)+((8191&(i=(i=Math.imul(L,em))+Math.imul($,ep)|0))<<13)|0;return l=((s=Math.imul($,em))+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,c[0]=ey,c[1]=eb,c[2]=eg,c[3]=ew,c[4]=ev,c[5]=e_,c[6]=eA,c[7]=eM,c[8]=ex,c[9]=eE,c[10]=eS,c[11]=ek,c[12]=eC,c[13]=eP,c[14]=eT,c[15]=eU,c[16]=eB,c[17]=eI,c[18]=eO,0!==l&&(c[19]=l,r.length++),r};function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var o=i;i=0;for(var a=67108863&n,c=Math.min(s,t.length-1),l=Math.max(0,s-e.length+1);l<=c;l++){var u=s-l,h=(0|e.words[u])*(0|t.words[l]),d=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(d=d+a|0),i+=(o=o+(d>>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function g(e,t){this.x=e,this.y=t}Math.imul||(y=m),s.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?m(this,e,t):b(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),r=s.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},g.prototype.permute=function(e,t,r,n,i,s){for(var o=0;o<s;o++)n[o]=t[e[o]],i[o]=r[e[o]]},g.prototype.transform=function(e,t,r,n,i,s){this.permute(s,e,t,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,c=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),u=0;u<i;u+=a)for(var h=c,d=l,f=0;f<o;f++){var p=r[u+f],m=n[u+f],y=r[u+f+o],b=n[u+f+o],g=h*y-d*b;
vendor: 20,483 bytes, line 1
1b=h*b+d*y,y=g,r[u+f]=p+y,n[u+f]=m+b,r[u+f+o]=p-y,n[u+f+o]=m-b,f!==a&&(g=c*h-l*d,d=c*d+l*h,h=g)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},g.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,r,i){for(var s=0,o=0;o<t;o++)s+=0|e[o],r[2*o]=8191&s,s>>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===s),n((-8192&s)==0)},g.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),s=this.stub(n),o=Array(n),a=Array(n),c=Array(n),l=Array(n),u=Array(n),h=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,l,n),this.transform(o,s,a,c,n,i),this.transform(l,s,u,h,n,i);for(var f=0;f<n;f++){var p=a[f]*u[f]-c[f]*h[f];c[f]=a[f]*h[f]+c[f]*u[f],a[f]=p}return this.conjugate(a,c,n),this.transform(a,c,d,s,n,i),this.conjugate(d,s,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},s.prototype.mul=function(e){var t=new s(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},s.prototype.mulf=function(e){var t=new s(null);return t.words=Array(this.length+e.length),b(this,e,t)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var s=(0|this.words[i])*e,o=(67108863&s)+(67108863&r);r>>=26,r+=(s/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new s(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&s,c=(0|this.words[t])-a<<r;this.words[t]=c|o,o=a>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},s.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,s=e%26,o=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<<s;if(i-=o,i=Math.max(0,i),r){for(var c=0;c<o;c++)r.words[c]=this.words[c];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var u=0|this.words[c];this.words[c]=l<<26-s|u>>>s,l=u&a}return r&&0!==l&&(r.words[r.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},s.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),0===this.length&&(this.words[0]=0,this.length=1),this._strip())},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},s.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,t,r){var i,s,o=e.length+r;this._expand(o);var a=0;for(i=0;i<e.length;i++){s=(0|this.words[i+r])+a;var c=(0|e.words[i])*t;s-=67108863&c,a=(s>>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)a=(s=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&s;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(s=-(0|this.words[i])+a)>>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var c=i.length-o.length;if("mod"!==t){(r=new s(null)).length=c+1,r.words=Array(r.length);for(var l=0;l<r.length;l++)r.words[l]=0}var u=i.clone()._ishlnsubmul(o,1,c);0===u.negative&&(i=u,r&&(r.words[c]=1));for(var h=c-1;h>=0;h--){var d=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(o,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=d)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},s.prototype.divmod=function(e,t,r){var i,o,a;return(n(!e.isZero()),this.isZero())?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||0>this.cmp(e)?{div:new s(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new s(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modrn(e.words[0]))}:this._wordDiv(e,t)},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%e;return t?-i:i},s.prototype.modn=function(e){return this.modrn(e)},s.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/e|0,r=s%e}return this._strip(),t?this.ineg():this},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;(t.words[0]&f)==0&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),o.isub(c)):(r.isub(t),a.isub(i),c.isub(o))}return{a:a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var o=new s(1),a=new s(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var l=0,u=1;(r.words[0]&u)==0&&l<26;++l,u<<=1);if(l>0)for(r.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;(i.words[0]&d)==0&&h<26;++h,d<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(t=0===r.cmpn(1)?o:a).cmpn(0)&&t.iadd(e),t},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var s=t;t=r,r=s}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,o=r;0!==s&&o<this.length;o++){var a=0|this.words[o];a+=s,s=a>>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},s.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return -1===this.cmpn(e)},s.prototype.lt=function(e){return -1===this.cmp(e)},s.prototype.lten=function(e){return 0>=this.cmpn(e)},s.prototype.lte=function(e){return 0>=this.cmp(e)},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new E(e)},s.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new s(t,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=s._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}v.prototype._tmp=function(){var e=new s(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(_,v),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var i=e.words[9];for(n=10,t.words[t.length++]=4194303&i;n<e.length;n++){var s=0|e.words[n];e.words[n-10]=(4194303&s)<<4|i>>>22,i=s}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(A,v),i(M,v),i(x,v),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){var t;if(w[e])return w[e];if("k256"===e)t=new _;else if("p224"===e)t=new A;else if("p192"===e)t=new M;else if("p25519"===e)t=new x;else throw Error("Unknown prime "+e);return w[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new s(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=o;0!==f.cmp(a);){for(var m=f,y=0;0!==m.cmp(a);y++)m=m.redSqr();n(y<p);var b=this.pow(h,new s(1).iushln(p-y-1));d=d.redMul(b),h=b.redSqr(),f=f.redMul(h),p=y}return d},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new s(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=Array(16);r[0]=new s(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],u=c-1;u>=0;u--){var h=l>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)}c=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new S(e)},i(S,E),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},6092:function(e){var t;t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,(function(t){return e[t]}).bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});t.push(0);var r=t[0],n=t[1];if(10===r)switch(n){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(r){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),s=e.getVersionPrecision(r),o=Math.max(i,s),a=0,c=e.map([t,r],function(t){var r=o-e.getVersionPrecision(t),n=t+Array(r+1).join(".0");return e.map(n.split("."),function(e){return Array(20-e.length).join("0")+e}).reverse()});for(n&&(a=o-Math.min(i,s)),o-=1;o>=a;){if(c[0][o]>c[1][o])return 1;if(c[0][o]===c[1][o]){if(o===a)return 0;o-=1}else if(c[0][o]<c[1][o])return -1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));for(t=0,r=i.length;t<r;t+=1)(function(){var r=i[t];"object"==typeof r&&null!==r&&Object.keys(r).forEach(function(t){e[t]=r[t]})})();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},t.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},t.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},t.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},t.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},s=r(18),o=function(){function e(){}return e.getParser=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=null),"string"!=typeof e)throw Error("UserAgent should be a string");return new i.default(e,t,r)},e.parse=function(e,t){return void 0===t&&(t=null),new i.default(e,t).getResult()},function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e,[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}]),e}();t.default=o,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(92)),i=c(r(93)),s=c(r(94)),o=c(r(95)),a=c(r(17));
vendor: 5,854 bytes, line 1
1function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=null),null==e||""===e)throw Error("UserAgent parameter can't be empty");this._ua=e;var n=!1;"boolean"==typeof t?(n=t,this._hints=r):this._hints=null!=t&&"object"==typeof t?t:null,this.parsedResult={},!0!==n&&this.parse()}var t=e.prototype;return t.getHints=function(){return this._hints},t.hasBrand=function(e){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var t=e.toLowerCase();return this._hints.brands.some(function(e){return e.brand&&e.brand.toLowerCase()===t})},t.getBrandVersion=function(e){if(this._hints&&Array.isArray(this._hints.brands)){var t=e.toLowerCase(),r=this._hints.brands.find(function(e){return e.brand&&e.brand.toLowerCase()===t});return r?r.version:void 0}},t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA(),this)),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(s.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},s=0;if(Object.keys(e).forEach(function(t){var o=e[t];"string"==typeof o?(i[t]=o,s+=1):"object"==typeof o&&(r[t]=o,n+=1)}),n>0){var o=Object.keys(r),c=a.default.find(o,function(e){return t.isOS(e)});if(c){var l=this.satisfies(r[c]);if(void 0!==l)return l}var u=a.default.find(o,function(e){return t.isPlatform(e)});if(u){var h=this.satisfies(r[u]);if(void 0!==h)return h}}if(s>0){var d=Object.keys(i),f=a.default.find(d,function(e){return t.isBrowser(e,!0)});if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=a.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=l,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,o=[{test:[/gptbot/i],describe:function(e){var t={name:"GPTBot"},r=i.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/chatgpt-user/i],describe:function(e){var t={name:"ChatGPT-User"},r=i.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/oai-searchbot/i],describe:function(e){var t={name:"OAI-SearchBot"},r=i.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(e){var t={name:"ClaudeBot"}
vendor: 10,950 bytes, line 1
1,r=i.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(e){var t={name:"Omgilibot"},r=i.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/diffbot/i],describe:function(e){var t={name:"Diffbot"},r=i.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/perplexitybot/i],describe:function(e){var t={name:"PerplexityBot"},r=i.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/perplexity-user/i],describe:function(e){var t={name:"Perplexity-User"},r=i.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/youbot/i],describe:function(e){var t={name:"YouBot"},r=i.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/meta-webindexer/i],describe:function(e){var t={name:"Meta-WebIndexer"},r=i.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/meta-externalads/i],describe:function(e){var t={name:"Meta-ExternalAds"},r=i.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/meta-externalagent/i],describe:function(e){var t={name:"Meta-ExternalAgent"},r=i.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/meta-externalfetcher/i],describe:function(e){var t={name:"Meta-ExternalFetcher"},r=i.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/linespider/i],describe:function(e){var t={name:"Linespider"},r=i.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/amazonbot/i],describe:function(e){var t={name:"AmazonBot"},r=i.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/bingbot/i],describe:function(e){var t={name:"BingCrawler"},r=i.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/baiduspider/i],describe:function(e){var t={name:"BaiduSpider"},r=i.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/duckduckbot/i],describe:function(e){var t={name:"DuckDuckBot"},r=i.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/ia_archiver/i],describe:function(e){var t={name:"InternetArchiveCrawler"},r=i.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(e){var t={name:"SlackBot"},r=i.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/PaleMoon/i],describe:function(e){var t={name:"Pale Moon"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/librewolf/i],describe:function(e){var t={name:"LibreWolf"},r=i.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(e){var t={name:"Sogou Browser"},r=i.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,e),n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),s=i.default.getFirstMatch(/se ([\d.]+)x/i,e),o=r||n||s;return o&&(t.version=o),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return!!e.hasBrand("DuckDuckGo")||e.test(/\sDdg\/[\d.]+$/i)}
vendor: 4,159 bytes, line 1
1,describe:function(e,t){var r={name:"DuckDuckGo"};if(t){var n=t.getBrandVersion("DuckDuckGo");if(n)return r.version=n,r}var s=i.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,e);return s&&(r.version=s),r}},{test:function(e){return e.hasBrand("Brave")},describe:function(e,t){var r={name:"Brave"};if(t){var n=t.getBrandVersion("Brave");if(n)return r.version=n,r}return r}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=o,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),o=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:s.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:s.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:t}}},{test:[/OpenHarmony/i],describe:function(e){var t=i.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.HarmonyOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:s.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:s.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);
1return{name:s.OS_MAP.PlayStation4,version:t}}}];t.default=o,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),o=[{test:[/googlebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(e){var t=i.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),r={type:s.PLATFORMS_MAP.mobile,vendor:"Nokia"};return t&&(r.model=t),r}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];t.default=o,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),o=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=o,e.exports=t.default}})},e.exports=t()},13118:function(e,t){"use strict";function r(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var n,i,s,o,a,c,l,u,h,d,f={exports:{}},p="object"==typeof Reflect?Reflect:null,m=p&&"function"==typeof p.apply?p.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};d=p&&"function"==typeof p.ownKeys?p.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var y=Number.isNaN||function(e){return e!=e};function b(){b.init.call(this)}f.exports=b,f.exports.once=function(e,t){return new Promise(function(r,n){var i;function s(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}k(e,t,o,{once:!0}),"error"!==t&&(i={once:!0},"function"==typeof e.on&&k(e,"error",s,i))})},b.EventEmitter=b,b.prototype._events=void 0,b.prototype._eventsCount=0,b.prototype._maxListeners=void 0;var g=10;function w(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function v(e){return void 0===e._maxListeners?b.defaultMaxListeners:e._maxListeners}function _(e,t,r,n){if(w(r),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),o=s[t]),void 0===o)o=s[t]=r,++e._eventsCount;else if("function"==typeof o?o=s[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=v(e))>0&&o.length>i&&!o.warned){o.warned=!0;var i,s,o,a=Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=o.length,console&&console.warn&&console.warn(a)}return e}function A(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function M(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=A.bind(n);return i.listener=r,n.wrapFn=i,i}function x(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):S(i,i.length)}function E(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function S(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function k(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(s){n.once&&e.removeEventListener(t,i),r(s)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(b,"defaultMaxListeners",{enumerable:!0,get:function(){return g},set:function(e){if("number"!=typeof e||e<0||y(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");g=e}}),b.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},b.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||y(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},b.prototype.getMaxListeners=function(){return v(this)},b.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var s,o=Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var a=i[e];if(void 0===a)return!1;if("function"==typeof a)m(a,this,t);else for(var c=a.length,l=S(a,c),r=0;r<c;++r)m(l[r],this,t);return!0},b.prototype.addListener=function(e,t){return _(this,e,t,!1)},b.prototype.on=b.prototype.addListener,b.prototype.prependListener=function(e,t){return _(this,e,t,!0)},b.prototype.once=function(e,t){return w(t),this.on(e,M(this,e,t)),this},b.prototype.prependOnceListener=function(e,t){return w(t),this.prependListener(e,M(this,e,t)),this},b.prototype.removeListener=function(e,t){var r,n,i,s,o;if(w(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
1("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,s=r.length-1;s>=0;s--)if(r[s]===t||r[s].listener===t){o=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},b.prototype.off=b.prototype.removeListener,b.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,s=Object.keys(r);for(n=0;n<s.length;++n)"removeListener"!==(i=s[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},b.prototype.listeners=function(e){return x(this,e,!0)},b.prototype.rawListeners=function(e){return x(this,e,!1)},b.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):E.call(e,t)},b.prototype.listenerCount=E,b.prototype.eventNames=function(){return this._eventsCount>0?d(this._events):[]};var C=(n=f.exports)&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;function P(e){return null!=e&&"function"==typeof e}function T(e,t,r){e>31&&(e=31);let n=Math.floor(Math.random()*(Math.min(r,t*Math.pow(2,e))-0+1)+0);return Math.min(r,t+n)}function U(e){return Math.min(1e3*e,2147483647)}t.errorCodes=void 0,(i=t.errorCodes||(t.errorCodes={}))[i.timeout=1]="timeout",i[i.transportClosed=2]="transportClosed",i[i.clientDisconnected=3]="clientDisconnected",i[i.clientClosed=4]="clientClosed",i[i.clientConnectToken=5]="clientConnectToken",i[i.clientRefreshToken=6]="clientRefreshToken",i[i.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",i[i.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",i[i.subscriptionRefreshToken=9]="subscriptionRefreshToken",i[i.transportWriteError=10]="transportWriteError",i[i.connectionClosed=11]="connectionClosed",i[i.badConfiguration=12]="badConfiguration",t.connectingCodes=void 0,(s=t.connectingCodes||(t.connectingCodes={}))[s.connectCalled=0]="connectCalled",s[s.transportClosed=1]="transportClosed",s[s.noPing=2]="noPing",s[s.subscribeTimeout=3]="subscribeTimeout",s[s.unsubscribeError=4]="unsubscribeError",t.disconnectedCodes=void 0,(o=t.disconnectedCodes||(t.disconnectedCodes={}))[o.disconnectCalled=0]="disconnectCalled",o[o.unauthorized=1]="unauthorized",o[o.badProtocol=2]="badProtocol",o[o.messageSizeLimit=3]="messageSizeLimit",t.subscribingCodes=void 0,(a=t.subscribingCodes||(t.subscribingCodes={}))[a.subscribeCalled=0]="subscribeCalled",a[a.transportClosed=1]="transportClosed",t.unsubscribedCodes=void 0,(c=t.unsubscribedCodes||(t.unsubscribedCodes={}))[c.unsubscribeCalled=0]="unsubscribeCalled",c[c.unauthorized=1]="unauthorized",c[c.clientClosed=2]="clientClosed",t.subscriptionFlags=void 0,(l=t.subscriptionFlags||(t.subscriptionFlags={}))[l.channelCompaction=1]="channelCompaction",t.State=void 0,(u=t.State||(t.State={})).Disconnected="disconnected",u.Connecting="connecting",u.Connected="connected",t.SubscriptionState=void 0,(h=t.SubscriptionState||(t.SubscriptionState={})).Unsubscribed="unsubscribed",h.Subscribing="subscribing",h.Subscribed="subscribed";class B extends C{constructor(e,r,n){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=r,this.state=t.SubscriptionState.Unsubscribed,this._centrifuge=e,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._id=0,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._tagsFilter=null,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(n),this._centrifuge._debugEnabled?(this.on("state",e=>{this._debug("subscription state",r,e.oldState,"->",e.newState)}),this.on("error",e=>{this._debug("subscription error",r,e)})):this.on("error",function(){Function.prototype()})}ready(e){return this.state===t.SubscriptionState.Unsubscribed?Promise.reject({code:t.errorCodes.subscriptionUnsubscribed,message:this.state}):this.state===t.SubscriptionState.Subscribed?Promise.resolve():new Promise((r,n)=>{let i={resolve:r,reject:n};e&&(i.timeout=setTimeout(function(){n({code:t.errorCodes.timeout,message:"timeout"})},e)),this._promises[this._nextPromiseId()]=i})}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(t.subscribingCodes.subscribeCalled,"subscribe called"))}unsubscribe(){this._unsubPromise=this._setUnsubscribed(t.unsubscribedCodes.unsubscribeCalled,"unsubscribe called",!0)}publish(e){return r(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.publish(this.channel,e)})}presence(){return r(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presence(this.channel)})}presenceStats(){return r(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presenceStats(this.channel)})}history(e){return r(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.history(this.channel,e)})}setTagsFilter(e){if(e&&this._delta)throw Error("cannot use delta and tagsFilter together");this._tagsFilter=e}setData(e){this._data=e}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:t.errorCodes.subscriptionUnsubscribed,message:this.state}):new Promise((e,r)=>{let n=setTimeout(()=>{r({code:t.errorCodes.timeout,message:"timeout"})},this._centrifuge._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:r}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return!0===this._recover}_isUnsubscribed(){return this.state===t.SubscriptionState.Unsubscribed}_isSubscribing(){return this.state===t.SubscriptionState.Subscribing}_isSubscribed(){return this.state===t.SubscriptionState.Subscribed}_setState(e){if(this.state!==e){let t=this.state;
1return this.state=e,this.emit("state",{newState:e,oldState:t,channel:this.channel}),!0}return!1}_usesToken(){return""!==this._token||null!==this._getToken}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(e){if(!this._isSubscribing())return;this._clearSubscribingState(),e.id&&(this._id=e.id),e.recoverable&&(this._recover=!0,this._offset=e.offset||0,this._epoch=e.epoch||""),e.delta?this._delta_negotiated=!0:this._delta_negotiated=!1,this._setState(t.SubscriptionState.Subscribed);let r=this._centrifuge._getSubscribeContext(this.channel,e);this.emit("subscribed",r),this._resolvePromises();let n=e.publications;if(n&&n.length>0)for(let e in n)n.hasOwnProperty(e)&&this._handlePublication(n[e]);!0===e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),U(e.ttl)))}_setSubscribing(e,n){return r(this,void 0,void 0,function*(){!this._isSubscribing()&&(this._isSubscribed()&&this._clearSubscribedState(),this._setState(t.SubscriptionState.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:e,reason:n}),this._centrifuge._transport&&this._centrifuge._transport.emulation()&&(yield this._unsubPromise),this._isSubscribing()&&this._subscribe())})}_subscribe(){return(this._debug("subscribing on",this.channel),this._isTransportOpen())?this._inflight?null:(this._inflight=!0,this._canSubscribeWithoutGettingToken())?this._subscribeWithoutToken():(this._getSubscriptionToken().then(e=>this._handleTokenResponse(e)).catch(e=>this._handleTokenError(e)),null):(this._debug("delay subscribe on",this.channel,"till connected"),null)}_isTransportOpen(){return this._centrifuge._transportIsOpen}_canSubscribeWithoutGettingToken(){return!this._usesToken()||!!this._token}_subscribeWithoutToken(){return this._getData?(this._getDataAndSubscribe(this._token),null):this._sendSubscribe(this._token)}_getDataAndSubscribe(e){if(!this._getData){this._inflight=!1;return}this._getData({channel:this.channel}).then(t=>{if(!this._isSubscribing()){this._inflight=!1;return}this._data=t,this._sendSubscribe(e)}).catch(e=>this._handleGetDataError(e))}_handleGetDataError(e){if(!this._isSubscribing()){this._inflight=!1;return}if(e instanceof H){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeData",channel:this.channel,error:{code:t.errorCodes.badConfiguration,message:(null==e?void 0:e.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_handleTokenResponse(e){if(!this._isSubscribing()){this._inflight=!1;return}if(!e){this._inflight=!1,this._failUnauthorized();return}this._token=e,this._getData?this._getDataAndSubscribe(e):this._sendSubscribe(e)}_handleTokenError(e){if(!this._isSubscribing()){this._inflight=!1;return}if(e instanceof H){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeToken",channel:this.channel,error:{code:t.errorCodes.subscriptionSubscribeToken,message:(null==e?void 0:e.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_sendSubscribe(e){if(!this._isTransportOpen())return this._inflight=!1,null;let t=this._buildSubscribeCommand(e);return this._centrifuge._call(t).then(e=>{this._inflight=!1;let t=e.reply.subscribe;this._handleSubscribeResponse(t),e.next&&e.next()},e=>{this._inflight=!1,this._handleSubscribeError(e.error),e.next&&e.next()}),t}_buildSubscribeCommand(e){let r={channel:this.channel};if(e&&(r.token=e),this._data&&(r.data=this._data),this._positioned&&(r.positioned=!0),this._recoverable&&(r.recoverable=!0),this._joinLeave&&(r.join_leave=!0),r.flag=t.subscriptionFlags.channelCompaction,this._needRecover()){r.recover=!0;let e=this._getOffset();e&&(r.offset=e);let t=this._getEpoch();t&&(r.epoch=t)}return this._delta&&(r.delta=this._delta),this._tagsFilter&&(r.tf=this._tagsFilter),{subscribe:r}}_debug(...e){this._centrifuge._debug(...e)}_handleSubscribeError(e){if(this._isSubscribing()){if(e.code===t.errorCodes.timeout){this._centrifuge._disconnect(t.connectingCodes.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(e)}}_handleSubscribeResponse(e){this._isSubscribing()&&this._setSubscribed(e)}_setUnsubscribed(e,r,n){if(this._isUnsubscribed())return Promise.resolve();let i=Promise.resolve();return this._isSubscribed()?(n&&(i=this._centrifuge._unsubscribe(this)),this._clearSubscribedState()):this._isSubscribing()&&(this._inflight&&n&&(i=this._centrifuge._unsubscribe(this)),this._clearSubscribingState()),this._inflight=!1,this._setState(t.SubscriptionState.Unsubscribed)&&this.emit
1("unsubscribed",{channel:this.channel,code:e,reason:r}),this._rejectPromises({code:t.errorCodes.subscriptionUnsubscribed,message:this.state}),i}_handlePublication(e){if(this._delta&&this._delta_negotiated){let{newData:t,newPrevValue:r}=this._centrifuge._codec.applyDeltaIfNeeded(e,this._prevValue);e.data=t,this._prevValue=r}let t=this._centrifuge._getPublicationContext(this.channel,e);this.emit("publication",t),e.offset&&(this._offset=e.offset)}_handleJoin(e){let t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("join",{channel:this.channel,info:t})}_handleLeave(e){let t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("leave",{channel:this.channel,info:t})}_resolvePromises(){for(let e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(let t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}_scheduleResubscribe(){if(!this._isSubscribing()){this._debug("not in subscribing state, skip resubscribe scheduling",this.channel);return}let e=this,t=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){e._isSubscribing()&&e._subscribe()},t),this._debug("resubscribe scheduled after "+t,this.channel)}_subscribeError(e){if(this._isSubscribing()){if(e.code<100||109===e.code||!0===e.temporary){109===e.code&&(this._token="");let r={channel:this.channel,type:"subscribe",error:e};this._centrifuge.state===t.State.Connected&&this.emit("error",r),this._scheduleResubscribe()}else this._setUnsubscribed(e.code,e.message,!1)}}_getResubscribeDelay(){let e=T(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,e}_setOptions(e){if(e){if(e.since&&(this._offset=e.since.offset||0,this._epoch=e.since.epoch||"",this._recover=!0),e.data&&(this._data=e.data),e.getData&&(this._getData=e.getData),void 0!==e.minResubscribeDelay&&(this._minResubscribeDelay=e.minResubscribeDelay),void 0!==e.maxResubscribeDelay&&(this._maxResubscribeDelay=e.maxResubscribeDelay),e.token&&(this._token=e.token),e.getToken&&(this._getToken=e.getToken),!0===e.positioned&&(this._positioned=!0),!0===e.recoverable&&(this._recoverable=!0),!0===e.joinLeave&&(this._joinLeave=!0),e.delta){if("fossil"!==e.delta)throw Error("unsupported delta format");this._delta=e.delta}if(e.tagsFilter&&(this._tagsFilter=e.tagsFilter),this._tagsFilter&&this._delta)throw Error("cannot use delta and tagsFilter together")}}_getOffset(){let e=this._offset;return null!==e?e:0}_getEpoch(){let e=this._epoch;return null!==e?e:""}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){null!==this._resubscribeTimeout&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._debug("get subscription token for channel",this.channel);let e={channel:this.channel},r=this._getToken;
1return null===r?(this.emit("error",{type:"configuration",channel:this.channel,error:{code:t.errorCodes.badConfiguration,message:"provide a function to get channel subscription token"}}),Promise.reject(new H(""))):r(e)}_refresh(){this._clearRefreshTimeout();let e=this;this._getSubscriptionToken().then(function(t){if(!e._isSubscribed())return;if(!t){e._failUnauthorized();return}e._token=t;let r={channel:e.channel,token:t};e._centrifuge._call({sub_refresh:r}).then(t=>{let r=t.reply.sub_refresh;e._refreshResponse(r),t.next&&t.next()},t=>{e._refreshError(t.error),t.next&&t.next()})}).catch(function(r){if(r instanceof H){e._failUnauthorized();return}e.emit("error",{type:"refreshToken",channel:e.channel,error:{code:t.errorCodes.subscriptionRefreshToken,message:void 0!==r?r.toString():""}}),e._refreshTimeout=setTimeout(()=>e._refresh(),e._getRefreshRetryDelay())})}_refreshResponse(e){this._isSubscribed()&&(this._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),!0===e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),U(e.ttl))))}_refreshError(e){this._isSubscribed()&&(e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",channel:this.channel,error:e}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._setUnsubscribed(e.code,e.message,!0))}_getRefreshRetryDelay(){return T(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(t.unsubscribedCodes.unauthorized,"unauthorized",!0)}}class I{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return null!==this.options.sockjs}initialize(e,t){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class O{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return void 0!==this.options.websocket&&null!==this.options.websocket}initialize(e,t){let r="";"protobuf"===e&&(r="centrifuge-protobuf"),""!==r?this._transport=new this.options.websocket(this.endpoint,r):this._transport=new this.options.websocket(this.endpoint),"protobuf"===e&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class R{constructor(e,t){this.endpoint=e,this.options=t,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(e){if(!e.ok)throw Error(e.status);return e}_fetchEventTarget(e,t,r){let n=new EventTarget;return(0,e.options.fetch)(t,r).then(e._handleErrors).then(t=>{n.dispatchEvent(new Event("open"));let r="",i=0,s=new Uint8Array,o=t.body.getReader();return new e.options.readableStream({start:t=>(function a(){return o.read().then(({done:o,value:c})=>{if(o){n.dispatchEvent(new Event("close")),t.close();return}try{if("json"===e._protocol)for(r+=e._utf8decoder.decode(c);i<r.length;)if("\n"===r[i]){let e=r.substring(0,i);n.dispatchEvent(new MessageEvent("message",{data:e})),r=r.substring(i+1),i=0}else++i;else{let t=new Uint8Array(s.length+c.length);for(t.set(s),t.set(c,s.length),s=t;;){let t=e.options.decoder.decodeReply(s);if(t.ok){let e=s.slice(0,t.pos);n.dispatchEvent(new MessageEvent("message",{data:e})),s=s.slice(t.pos);continue}break}}}catch(e){n.dispatchEvent(new Event("error",{detail:e})),n.dispatchEvent(new Event("close")),t.close();return}a()}).catch(function(e){n.dispatchEvent(new Event("error",{detail:e})),n.dispatchEvent(new Event("close")),t.close()})})()})}).catch(e=>{n.dispatchEvent(new Event("error",{detail:e})),n.dispatchEvent(new Event("close"))}),n}supported(){return null!==this.options.fetch&&null!==this.options.readableStream&&"undefined"!=typeof TextDecoder&&"undefined"!=typeof AbortController&&"undefined"!=typeof EventTarget&&"undefined"!=typeof Event&&"undefined"!=typeof MessageEvent&&"undefined"!=typeof Error}initialize(e,t,r){this._protocol=e,this._abortController=new AbortController;let n={method:"POST",headers:"json"===e?{Accept:"application/json","Content-Type":"application/json"}:{Accept:"application/octet-stream","Content-Type":"application/octet-stream"},body:r,mode:"cors",credentials:"same-origin",signal:this._abortController.signal},i=this._fetchEventTarget(this,this.endpoint,n);i.addEventListener("open",()=>{t.onOpen()}),i.addEventListener("error",e=>{this._abortController.abort(),t.onError(e)}),i.addEventListener("close",()=>{this._abortController.abort(),t.onClose({code:4,reason:"connection closed"})}),i.addEventListener("message",e=>{t.onMessage(e.data)})}close(){this._abortController.abort()}send(e,t,r){let n,i;let s={session:t,node:r,data:e};"json"===this._protocol?(n={"Content-Type":"application/json"},i=JSON.stringify(s)):(n={"Content-Type":"application/octet-stream"},i=this.options.encoder.encodeEmulationRequest(s));let o=this.options.fetch,a={method:"POST",headers:n,body:i,mode:"cors",credentials:"same-origin"};o(this.options.emulationEndpoint,a)}}class N{constructor(e,t){this.endpoint=e,this.options=t,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return null!==this.options.eventsource&&null!==this.options.fetch}initialize(e,t,r){let n;(n=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint)).searchParams.append("cf_connect",r);let i=new this.options.eventsource(n.toString(),{});this._transport=i,i.onopen=function(){t.onOpen()},i.onerror=function(e){i.close(),t.onError(e),t.onClose({code:4,reason:"connection closed"})},i.onmessage=function(e){t.onMessage(e.data)},this._onClose=function(){t.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),null!==this._onClose&&this._onClose()}send(e,t,r){let n=JSON.stringify({session:t,node:r,data:e});(0,this.options.fetch)(this.options.emulationEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:n,mode:"cors",credentials:"same-origin"})}}class F{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return void 0!==this.options.webtransport&&null!==this.options.webtransport}initialize(e,t){return r(this,void 0,void 0,function*(){let r,n;r=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),"protobuf"===e&&r.searchParams.append("cf_protocol","protobuf"),this._protocol=e;let i=new EventTarget;this._transport=new this.options.webtransport(r.toString()),this._transport.closed.then(()=>{t.onClose({code:4,reason:"connection closed"})}).catch(()=>{t.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch(e){this.close();return}try{n=yield this._transport.createBidirectionalStream()}catch(e){this.close();return}this._stream=n,this._writer=this._stream.writable.getWriter(),i.addEventListener("close",()=>{t.onClose({code:4,reason:"connection closed"})}),i.addEventListener("message",e=>{t.onMessage(e.data)}),this._startReading(i),t.onOpen()})}_startReading(e){return r(this,void 0,void 0,function*(){let t=this._stream.readable.getReader(),r
1="",n=0,i=new Uint8Array;try{for(;;){let{done:s,value:o}=yield t.read();if(o.length>0){if("json"===this._protocol)for(r+=this._utf8decoder.decode(o);n<r.length;)if("\n"===r[n]){let t=r.substring(0,n);e.dispatchEvent(new MessageEvent("message",{data:t})),r=r.substring(n+1),n=0}else++n;else{let t=new Uint8Array(i.length+o.length);for(t.set(i),t.set(o,i.length),i=t;;){let t=this.options.decoder.decodeReply(i);if(t.ok){let r=i.slice(0,t.pos);e.dispatchEvent(new MessageEvent("message",{data:r})),i=i.slice(t.pos);continue}break}}}if(s)break}}catch(t){e.dispatchEvent(new Event("close"))}})}close(){return r(this,void 0,void 0,function*(){try{this._writer&&(yield this._writer.close()),this._transport.close()}catch(e){}})}send(e){return r(this,void 0,void 0,function*(){let t;t="json"===this._protocol?new TextEncoder().encode(e+"\n"):e;try{yield this._writer.write(t)}catch(e){this.close()}})}}let L=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class ${constructor(e){this.a=e,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){let e=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw RangeError("out of bounds");return e}getChar(){return String.fromCharCode(this.getByte())}getInt(){let e,t=0;for(;this.haveBytes()&&(e=L[127&this.getByte()])>=0;)t=(t<<6)+e;return this.pos--,t>>>0}}class j{constructor(){this.a=[]}toByteArray(e){return Array.isArray(e)?this.a:new Uint8Array(this.a)}putArray(e,t,r){for(let n=t;n<r;n++)this.a.push(e[n])}}class D{name(){return"json"}encodeCommands(e){return e.map(e=>JSON.stringify(e)).join("\n")}decodeReplies(e){return e.trim().split("\n").map(e=>JSON.parse(e))}applyDeltaIfNeeded(e,t){let r,n;if(e.delta){let i=function(e,t){let r=0,n=new $(t),i=e.length,s=t.length,o=n.getInt();if("\n"!==n.getChar())throw Error("size integer not terminated by '\\n'");let a=new j;for(;n.haveBytes();){let t;let c=n.getInt();switch(n.getChar()){case"@":if(t=n.getInt(),n.haveBytes()&&","!==n.getChar())throw Error("copy command not terminated by ','");if((r+=c)>o)throw Error("copy exceeds output file size");if(t+c>i)throw Error("copy extends past end of input");a.putArray(e,t,t+c);break;case":":if((r+=c)>o)throw Error("insert command gives an output larger than predicted");if(c>s)throw Error("insert count exceeds size of delta");a.putArray(n.a,n.pos,n.pos+c),n.pos+=c;break;case";":{let t=a.toByteArray(e);if(c!==function(e){let t=0,r=0,n=0,i=0,s=0,o=e.length;for(;o>=16;)t=t+e[s+0]|0,r=r+e[s+1]|0,n=n+e[s+2]|0,i=i+e[s+3]|0,t=t+e[s+4]|0,r=r+e[s+5]|0,n=n+e[s+6]|0,i=i+e[s+7]|0,t=t+e[s+8]|0,r=r+e[s+9]|0,n=n+e[s+10]|0,i=i+e[s+11]|0,t=t+e[s+12]|0,r=r+e[s+13]|0,n=n+e[s+14]|0,i=i+e[s+15]|0,s+=16,o-=16;for(;o>=4;)t=t+e[s+0]|0,r=r+e[s+1]|0,n=n+e[s+2]|0,i=i+e[s+3]|0,s+=4,o-=4;switch(i=((i+(n<<8)|0)+(r<<16)|0)+(t<<24)|0,o){case 3:i=i+(e[s+2]<<8)|0;case 2:i=i+(e[s+1]<<16)|0;case 1:i=i+(e[s+0]<<24)|0}return i>>>0}(t))throw Error("bad checksum");if(r!==o)throw Error("generated size does not match predicted size");return t}default:throw Error("unknown delta operator")}}throw Error("unterminated delta")}(t,new TextEncoder().encode(e.data));r=JSON.parse(new TextDecoder().decode(i)),n=i}else r=JSON.parse(e.data),n=new TextEncoder().encode(e.data);return{newData:r,newPrevValue:n}}}let q={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};
1class H extends Error{constructor(e){super(e),this.name=this.constructor.name}}class V extends C{constructor(e,r){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=t.State.Disconnected,this._transportIsOpen=!1,this._endpoint=e,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new D,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},q),r),this._configure(),this._debugEnabled?(this.on("state",e=>{this._debug("client state",e.oldState,"->",e.newState)}),this.on("error",e=>{this._debug("client error",e)})):this.on("error",function(){Function.prototype()})}newSubscription(e,t){if(null!==this.getSubscription(e))throw Error("Subscription to the channel "+e+" already exists");let r=new B(this,e,t);return this._subs[e]=r,r}getSubscription(e){return this._getSub(e)}removeSubscription(e){e&&(e.state!==t.SubscriptionState.Unsubscribed&&e.unsubscribe(),this._removeSubscription(e))}subscriptions(){return this._subs}ready(e){return r(this,void 0,void 0,function*(){switch(this.state){case t.State.Disconnected:throw{code:t.errorCodes.clientDisconnected,message:"client disconnected"};case t.State.Connected:return;default:return new Promise((r,n)=>{let i={resolve:r,reject:n};e&&(i.timeout=setTimeout(()=>{n({code:t.errorCodes.timeout,message:"timeout"})},e)),this._promises[this._nextPromiseId()]=i})}})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(t.disconnectedCodes.disconnectCalled,"disconnect called",!1)}setToken(e){this._token=e}setData(e){this._data=e}setHeaders(e){this._config.headers=e}send(e){return r(this,void 0,void 0,function*(){if(yield this._methodCall(),!this._transportSendCommands([{send:{data:e}}]))throw this._createErrorObject(t.errorCodes.transportWriteError,"transport write error")})}rpc(e,t){return r(this,void 0,void 0,function*(){return yield this._methodCall(),{data:(yield this._callPromise({rpc:{method:e,data:t}},e=>e.rpc)).data}})}publish(e,t){return r(this,void 0,void 0,function*(){return yield this._methodCall(),yield this._callPromise({publish:{channel:e,data:t}},()=>({})),{}})}history(e,t){return r(this,void 0,void 0,function*(){let r={history:this._getHistoryRequest(e,t)};yield this._methodCall();let n=yield this._callPromise(r,e=>e.history),i=[];if(n.publications)for(let t=0;t<n.publications.length;t++)i.push(this._getPublicationContext(e,n.publications[t]));return{publications:i,epoch:n.epoch||"",offset:n.offset||0}})}presence(e){return r(this,void 0,void 0,function*(){yield this._methodCall();let t=(yield this._callPromise({presence:{channel:e}},e=>e.presence)).presence;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let r=t[e],n=r.conn_info,i=r.chan_info;n&&(r.connInfo=n),i&&(r.chanInfo=i)}return{clients:t}})}presenceStats(e){return r(this,void 0,void 0,function*(){yield this._methodCall();let t=yield this._callPromise({presence_stats:{channel:e}},e=>e.presence_stats);return{numUsers:t.num_users,numClients:t.num_clients}})}startBatching(){this._batching=!0}stopBatching(){let e=this;Promise.resolve().then(function(){Promise.resolve().then(function(){e._batching=!1,e._flush()})})}_debug(...e){this._debugEnabled&&function(e,t){if(globalThis.console){let r=globalThis.console[e];P(r)&&r.apply(globalThis.console,t)}}("debug",e)}_codecName(){return this._codec.name()}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw Error("Promise polyfill required");if(!this._endpoint)throw Error("endpoint configuration required");if(null!==this._config.token&&(this._token=this._config.token),null!==this._config.data&&(this._data=this._config.data),this._codec=new D,this._formatOverride(),(!0===this._config.debug||"undefined"!=typeof localStorage&&"function"==typeof localStorage.getItem&&localStorage.getItem("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),"string"==typeof this._endpoint);else if(Array.isArray(this._endpoint)){for(let e in this._transports=this._endpoint,this._emulation=!0,this._transports)if(this._transports.hasOwnProperty(e)){let t=this._transports[e];if(!t.endpoint||!t.transport)throw Error("malformed transport configuration");let r=t.transport;if(0>["websocket","http_stream","sse","sockjs","webtransport"].indexOf(r))throw Error("unsupported transport name: "+r)}}else throw Error("unsupported url configuration type: only string or array of objects are supported")}_setState(e){if(this.state!==e){this._reconnecting=!1;let t=this.state;
1return this.state=e,this.emit("state",{newState:e,oldState:t}),!0}return!1}_isDisconnected(){return this.state===t.State.Disconnected}_isConnecting(){return this.state===t.State.Connecting}_isConnected(){return this.state===t.State.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let e=null;null!==this._config.networkEventTarget?e=this._config.networkEventTarget:void 0!==globalThis.addEventListener&&(e=globalThis),e&&(e.addEventListener("offline",()=>{this._debug("offline event triggered"),(this.state===t.State.Connected||this.state===t.State.Connecting)&&(this._disconnect(t.connectingCodes.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)}),e.addEventListener("online",()=>{this._debug("online event triggered"),this.state===t.State.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())}),this._networkEventsSet=!0)}_getReconnectDelay(){let e=T(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,e}_clearOutgoingRequests(){for(let e in this._callbacks)if(this._callbacks.hasOwnProperty(e)){let r=this._callbacks[e];clearTimeout(r.timeout);let n=r.errback;if(!n)continue;n({error:this._createErrorObject(t.errorCodes.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){for(let e in this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout(),this._subs){if(!this._subs.hasOwnProperty(e))continue;let r=this._subs[e];r.state===t.SubscriptionState.Subscribed&&r._setSubscribing(t.subscribingCodes.transportClosed,"transport closed")}for(let e in this._serverSubs)this._serverSubs.hasOwnProperty(e)&&this.emit("subscribing",{channel:e})}_handleWriteError(e){for(let r of e){let e=r.id;if(!(e in this._callbacks))continue;let n=this._callbacks[e];clearTimeout(this._callbacks[e].timeout),delete this._callbacks[e],(0,n.errback)({error:this._createErrorObject(t.errorCodes.transportWriteError,"transport write error")})}}_transportSendCommands(e){if(!e.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(e),this._session,this._node)}catch(t){return this._debug("error writing commands",t),this._handleWriteError(e),!1}return!0}_initializeTransport(){let e,r;null!==this._config.websocket?e=this._config.websocket:"function"!=typeof globalThis.WebSocket&&"object"!=typeof globalThis.WebSocket||(e=globalThis.WebSocket);let n=null;null!==this._config.sockjs?n=this._config.sockjs:void 0!==globalThis.SockJS&&(n=globalThis.SockJS);let i=null;null!==this._config.eventsource?i=this._config.eventsource:void 0!==globalThis.EventSource&&(i=globalThis.EventSource);let s=null;null!==this._config.fetch?s=this._config.fetch:void 0!==globalThis.fetch&&(s=globalThis.fetch);let o=null;if(null!==this._config.readableStream?o=this._config.readableStream:void 0!==globalThis.ReadableStream&&(o=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let t=0;for(;;){if(t>=this._transports.length)throw Error("no supported transport found");let r=this._transports[this._currentTransportIndex],a=r.transport,c=r.endpoint;if("websocket"===a){if(this._debug("trying websocket transport"),this._transport=new O(c,{websocket:e}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,t++;continue}}else if("webtransport"===a){if(this._debug("trying webtransport transport"),this._transport=new F(c,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,t++;continue}}else if("http_stream"===a){if(this._debug("trying http_stream transport"),this._transport=new R(c,{fetch:s,readableStream:o,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,t++;continue}}else if("sse"===a){if(this._debug("trying sse transport"),this._transport=new N(c,{eventsource:i,fetch:s,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,t++;continue}}else if("sockjs"===a){if(this._debug("trying sockjs"),this._transport=new I(c,{sockjs:n,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,t++;continue}}else throw Error("unknown transport "+a);break}}else{var a,c;if(a=this._endpoint,c="http",0===a.lastIndexOf(c,0))throw Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single str
1ing), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new O(this._endpoint,{websocket:e}),!this._transport.supported())throw Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}let l=this,u=this._transport,h=this._nextTransportId();l._debug("id of transport",h);let d=!1,f=[];if(this._transport.emulation()){let e=l._sendConnect(!0);f.push(e)}this._setNetworkEvents();let p=this._codec.encodeCommands(f);this._transportClosed=!1,r=setTimeout(function(){u.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(r&&(clearTimeout(r),r=null),l._transportId!=h){l._debug("open callback from non-actual transport"),u.close();return}d=!0,l._debug(u.subName(),"transport open"),u.emulation()||(l._transportIsOpen=!0,l._transportWasOpen=!0,l.startBatching(),l._sendConnect(!1),l._sendSubscribeCommands(),l.stopBatching(),l.emit("__centrifuge_debug:connect_frame_sent",{}))},onError:function(e){if(l._transportId!=h){l._debug("error callback from non-actual transport");return}l._debug("transport level error",e)},onClose:function(e){if(r&&(clearTimeout(r),r=null),l._transportId!=h){l._debug("close callback from non-actual transport");return}l._debug(u.subName(),"transport closed"),l._transportClosed=!0,l._transportIsOpen=!1;let n="connection closed",i=!0,s=0;if(e&&"code"in e&&e.code&&(s=e.code),e&&e.reason)try{let t=JSON.parse(e.reason);n=t.reason,i=t.reconnect}catch(t){n=e.reason,(s>=3500&&s<4e3||s>=4500&&s<5e3)&&(i=!1)}s<3e3?(1009===s?(s=t.disconnectedCodes.messageSizeLimit,n="message size limit exceeded",i=!1):(s=t.connectingCodes.transportClosed,n="transport closed"),l._emulation&&!l._transportWasOpen&&(l._currentTransportIndex++,l._currentTransportIndex>=l._transports.length&&(l._triedAllTransports=!0,l._currentTransportIndex=0))):l._transportWasOpen=!0,l._isConnecting()&&!d&&l.emit("error",{type:"transport",error:{code:t.errorCodes.transportClosed,message:"transport closed"},transport:u.name()}),l._reconnecting=!1,l._disconnect(s,n,i)},onMessage:function(e){l._dataReceived(e)}},p),l.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(e){let t=this._constructConnectCommand(),r=this;return this._call(t,e).then(e=>{let t=e.reply.connect;r._connectResponse(t),e.next&&e.next()},e=>{r._connectError(e.error),e.next&&e.next()}),t}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(!1===this._transportClosed){this._debug("waiting for transport close");return}this._reconnecting=!0;let e=""===this._token;if(!(this._refreshRequired||e&&null!==this._config.getToken)){this._config.getData?this._config.getData().then(e=>{this._isConnecting()&&(this._data=e,this._initializeTransport())}).catch(e=>this._handleGetDataError(e)):this._initializeTransport();return}let r=this;this._getToken().then(function(e){if(r._isConnecting()){if(null==e||void 0==e){r._failUnauthorized();return}r._token=e,r._debug("connection token refreshed"),r._config.getData?r._config.getData().then(function(e){r._isConnecting()&&(r._data=e,r._initializeTransport())}).catch(e=>r._handleGetDataError(e)):r._initializeTransport()}}).catch(function(e){if(!r._isConnecting())return;if(e instanceof H){r._failUnauthorized();return}r.emit("error",{type:"connectToken",error:{code:t.errorCodes.clientConnectToken,message:void 0!==e?e.toString():""}});let n=r._getReconnectDelay();r._debug("error on getting connection token, reconnect after "+n+" milliseconds",e),r._reconnecting=!1,r._reconnectTimeout=setTimeout(()=>{r._startReconnecting()},n)})}_handleGetDataError(e){if(e instanceof H){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:t.errorCodes.badConfiguration,message:(null==e?void 0:e.toString())||""}});let r=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+r+" milliseconds",e),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},r)}_connectError(e){this.state===t.State.Connecting&&(109===e.code&&(this._refreshRequired=!0),e.code<100||!0===e.temporary||109===e.code?(this.emit
1("error",{type:"connect",error:e}),this._debug("closing transport due to connect error"),this._disconnect(e.code,e.message,!0)):this._disconnect(e.code,e.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let e=!1;!this._emulation||this._transportWasOpen||this._triedAllTransports||(e=!0);let t=this._getReconnectDelay();e&&(t=0),this._debug("reconnect after "+t+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},t)}_constructConnectCommand(){let e={};this._token&&(e.token=this._token),this._data&&(e.data=this._data),this._config.name&&(e.name=this._config.name),this._config.version&&(e.version=this._config.version),Object.keys(this._config.headers).length>0&&(e.headers=this._config.headers);let t={},r=!1;for(let e in this._serverSubs)if(this._serverSubs.hasOwnProperty(e)&&this._serverSubs[e].recoverable){r=!0;let n={recover:!0};this._serverSubs[e].offset&&(n.offset=this._serverSubs[e].offset),this._serverSubs[e].epoch&&(n.epoch=this._serverSubs[e].epoch),t[e]=n}return r&&(e.subs=t),{connect:e}}_getHistoryRequest(e,t){let r={channel:e};return void 0!==t&&(t.since&&(r.since={offset:t.since.offset},t.since.epoch&&(r.since.epoch=t.since.epoch)),void 0!==t.limit&&(r.limit=t.limit),!0===t.reverse&&(r.reverse=!0)),r}_methodCall(){return this._isConnected()?Promise.resolve():new Promise((e,r)=>{let n=setTimeout(function(){r({code:t.errorCodes.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:r}})}_callPromise(e,t){return new Promise((r,n)=>{this._call(e,!1).then(e=>{var n;r(t(e.reply)),null===(n=e.next)||void 0===n||n.call(e)},e=>{var t;n(e.error),null===(t=e.next)||void 0===t||t.call(e)})})}_dataReceived(e){this._serverPing>0&&this._waitServerPing();let t=this._codec.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then(()=>{let e;this._dispatchPromise=new Promise(t=>{e=t}),this._dispatchSynchronized(t,e)})}_dispatchSynchronized(e,t){let r=Promise.resolve();for(let t in e)e.hasOwnProperty(t)&&(r=r.then(()=>this._dispatchReply(e[t])));r.then(()=>{t()})}_dispatchReply(e){let t;let r=new Promise(e=>{t=e});if(null==e)return this._debug("dispatch: got undefined or null reply"),t(),r;let n=e.id;return n&&n>0?this._handleReply(e,t):e.push?this._handlePush(e.push,t):this._handleServerPing(t),r}_call(e,t){return new Promise((r,n)=>{e.id=this._nextCommandId(),this._registerCall(e.id,r,n),t||this._addCommand(e)})}_startConnecting(){this._debug("start connecting"),this._setState(t.State.Connecting)&&this.emit("connecting",{code:t.connectingCodes.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(e,r,n){if(this._isDisconnected())return;this._transportIsOpen=!1;let i=this.state;this._reconnecting=!1;let s={code:e,reason:r},o=!1;if(n?o=this._setState(t.State.Connecting):(o=this._setState(t.State.Disconnected),this._rejectPromises({code:t.errorCodes.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),i===t.State.Connecting&&this._clearReconnectTimeout(),i===t.State.Connected&&this._clearConnectedState(),o&&(this._isConnecting()?this.emit("connecting",s):this.emit("disconnected",s)),this._transport){this._debug("closing existing transport");let e=this._transport;this._transport=null,e.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(t.disconnectedCodes.unauthorized,"unauthorized",!1)}_getToken(){return(this._debug("get connection token"),this._config.getToken)?this._config.getToken({}):(this.emit("error",{type:"configuration",error:{code:t.errorCodes.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new H("")))}_refresh(){let e=this._client,r=this;this._getToken().then(function(t){if(e!==r._client)return;if(!t){r._failUnauthorized();return}if(r._token=t,r._debug("connection token refreshed"),!r._isConnected())return;let n={refresh:{token:r._token}};r._call(n,!1).then(e=>{let t=e.reply.refresh;r._refreshResponse(t),e.next&&e.next()},e=>{r._refreshError(e.error),e.next&&e.next()})}
1).catch(function(e){if(r._isConnected()){if(e instanceof H){r._failUnauthorized();return}r.emit("error",{type:"refreshToken",error:{code:t.errorCodes.clientRefreshToken,message:void 0!==e?e.toString():""}}),r._refreshTimeout=setTimeout(()=>r._refresh(),r._getRefreshRetryDelay())}})}_refreshError(e){e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",error:e}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._disconnect(e.code,e.message,!1)}_getRefreshRetryDelay(){return T(0,5e3,1e4)}_refreshResponse(e){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._client=e.client,this._refreshTimeout=setTimeout(()=>this._refresh(),U(e.ttl)))}_removeSubscription(e){null!==e&&delete this._subs[e.channel]}_unsubscribe(e){if(!this._transportIsOpen)return Promise.resolve();let r={unsubscribe:{channel:e.channel}},n=this;return new Promise((e,i)=>{this._call(r,!1).then(t=>{e(),t.next&&t.next()},r=>{e(),r.next&&r.next(),n._disconnect(t.connectingCodes.unsubscribeError,"unsubscribe error",!0)})})}_getSub(e,t){if(t&&t>0){for(let e in this._subs)if(this._subs.hasOwnProperty(e)){let r=this._subs[e];if(r._id===t)return r}return null}return this._subs[e]||null}_isServerSub(e){return void 0!==this._serverSubs[e]}_sendSubscribeCommands(){let e=[];for(let r in this._subs){if(!this._subs.hasOwnProperty(r))continue;let n=this._subs[r];if(!0!==n._inflight&&n.state===t.SubscriptionState.Subscribing){let t=n._subscribe();t&&e.push(t)}}return e}_connectResponse(e){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=e.client,this._setState(t.State.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),U(e.ttl))),this._session=e.session,this._node=e.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();let r={client:e.client,transport:this._transport.subName()};e.data&&(r.data=e.data),this.emit("connected",r),this._resolvePromises(),this._processServerSubs(e.subs||{}),e.ping&&e.ping>0?(this._serverPing=1e3*e.ping,this._sendPong=!0===e.pong,this._waitServerPing()):this._serverPing=0}_processServerSubs(e){for(let t in e){if(!e.hasOwnProperty(t))continue;let r=e[t];this._serverSubs[t]={offset:r.offset,epoch:r.epoch,recoverable:r.recoverable||!1};let n=this._getSubscribeContext(t,r);this.emit("subscribed",n)}for(let t in e){if(!e.hasOwnProperty(t))continue;let r=e[t];if(r.recovered){let e=r.publications;if(e&&e.length>0)for(let r in e)e.hasOwnProperty(r)&&this._handlePublication(t,e[r])}}for(let t in this._serverSubs)this._serverSubs.hasOwnProperty(t)&&(e[t]||(this.emit("unsubscribed",{channel:t}),delete this._serverSubs[t]))}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){null!==this._reconnectTimeout&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){null!==this._serverPingTimeout&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){0!==this._config.maxServerPingDelay&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{this._isConnected()&&this._disconnect(t.connectingCodes.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(e,t){let r={channel:e,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};t.recovered&&(r.recovered=!0),t.positioned&&(r.positioned=!0),t.recoverable&&(r.recoverable=!0),t.was_recovering&&(r.wasRecovering=!0);let n="";"epoch"in t&&(n=t.epoch);let i=0;return"offset"in t&&(i=t.offset),(r.positioned||r.recoverable)&&(r.streamPosition={offset:i,epoch:n}),Array.isArray(t.publications)&&t.publications.length>0&&(r.hasRecoveredPublications=!0),t.data&&(r.data=t.data),r}_handleReply(e,t){let r=e.id;if(!(r in this._callbacks)){t();return}let n=this._callbacks[r];if(clearTimeout(this._callbacks[r].timeout),delete this._callbacks[r],"error"in e&&null!==e.error){let r=n.errback;if(!r){t();return}r({error:{code:e.error.code,message:e.error.message||"",temporary:e.error.temporary||!1},next:t})}else{let r=n.callback;if(!r)return;r({reply:e,next:t})}}_handleJoin(e,t,r){let n=this._getSub(e,r);if(!n&&e){if(this._isServerSub(e)){let r={channel:e,info:this._getJoinLeaveContext(t.info)};
1this.emit("join",r)}return}n._handleJoin(t)}_handleLeave(e,t,r){let n=this._getSub(e,r);if(!n&&e){if(this._isServerSub(e)){let r={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("leave",r)}return}n._handleLeave(t)}_handleUnsubscribe(e,t){let r=this._getSub(e,0);if(!r&&e){this._isServerSub(e)&&(delete this._serverSubs[e],this.emit("unsubscribed",{channel:e}));return}t.code<2500?r._setUnsubscribed(t.code,t.reason,!1):r._setSubscribing(t.code,t.reason)}_handleSubscribe(e,t){this._serverSubs[e]={offset:t.offset,epoch:t.epoch,recoverable:t.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(e,t))}_handleDisconnect(e){let t=e.code,r=!0;(t>=3500&&t<4e3||t>=4500&&t<5e3)&&(r=!1),this._disconnect(t,e.reason,r)}_getPublicationContext(e,t){let r={channel:e,data:t.data};return t.offset&&(r.offset=t.offset),t.info&&(r.info=this._getJoinLeaveContext(t.info)),t.tags&&(r.tags=t.tags),r}_getJoinLeaveContext(e){let t={client:e.client,user:e.user},r=e.conn_info;r&&(t.connInfo=r);let n=e.chan_info;return n&&(t.chanInfo=n),t}_handlePublication(e,t,r){let n=this._getSub(e,r);if(!n&&e){if(this._isServerSub(e)){let r=this._getPublicationContext(e,t);this.emit("publication",r),void 0!==t.offset&&(this._serverSubs[e].offset=t.offset)}return}n._handlePublication(t)}_handleMessage(e){this.emit("message",{data:e.data})}_handleServerPing(e){this._sendPong&&this._transportSendCommands([{}]),e()}_handlePush(e,t){let r=e.channel,n=e.id;e.pub?this._handlePublication(r,e.pub,n):e.message?this._handleMessage(e.message):e.join?this._handleJoin(r,e.join,n):e.leave?this._handleLeave(r,e.leave,n):e.unsubscribe?this._handleUnsubscribe(r,e.unsubscribe):e.subscribe?this._handleSubscribe(r,e.subscribe):e.disconnect&&this._handleDisconnect(e.disconnect),t()}_flush(){let e=this._commands.slice(0);this._commands=[],this._transportSendCommands(e)}_createErrorObject(e,t,r){let n={code:e,message:t};return r&&(n.temporary=!0),n}_registerCall(e,r,n){this._callbacks[e]={callback:r,errback:n,timeout:null},this._callbacks[e].timeout=setTimeout(()=>{delete this._callbacks[e],P(n)&&n({error:this._createErrorObject(t.errorCodes.timeout,"timeout")})},this._config.timeout)}_addCommand(e){this._batching?this._commands.push(e):this._transportSendCommands([e])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(let e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(let t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}}V.SubscriptionState=t.SubscriptionState,V.State=t.State,V.UnauthorizedError=H,t.Centrifuge=V,t.Subscription=B,t.UnauthorizedError=H},81953:function(e,t,r){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){var t=void 0!==i&&i||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},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(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function d(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function f(e){var t=new FileReader,r=d(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?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(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return h(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(n.blob)return this.blob().then(f);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,i,s=h(this);if(s)return s;if(this._bodyBlob)return e=this._bodyBlob,r=d(t=new FileReader),i=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},n.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=a(e),t=c(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},u.prototype.delete=function(e){delete this.map[a(e)]},u.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},u.prototype.set=function(e,t){this.map[a(e)]=c(t)},u.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),l(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),l(e)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var y=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function b(e,r){if(!(this instanceof b))throw TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var n,i,s=(r=r||{}).body;if(e instanceof b){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,s||null==e._bodyInit||(s=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=r.credentials||this.credentials||"same-origin",(r.headers||!this.headers)&&(this.headers=new u(r.headers)),this.method=(i=(n=r.method||this.method||"GET").toUpperCase(),y.indexOf(i)>-1?i:n),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in t)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),("GET"===this.method||"HEAD"===this.method)&&("no-store"===r.cache||"no-cache"===r.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function w(e,t){if(!(this instanceof w))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var v=[301,302,303,307,308];w.redirect=function(e,t){if(-1===v.indexOf(t))throw RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function _(r,i){return new Promise(function(s,o){var l=new b(r,i);if(l.signal&&l.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var h=new XMLHttpRequest;function d(){h.abort()}if(h.onload=function(){var e,t,r={statusText:h.statusText,headers:(e=h.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{t.append(n,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===l.url.indexOf("file://")&&(h.status<200||h.status>599)?r.status=200:r.status=h.status,r.url="responseURL"in h?h.responseURL:r.headers.get("X-Request-URL");var n="response"in h?h.response:h.responseText;setTimeout(function(){s(new w(n,r))},0)},h.onerror=function(){setTimeout(function(){o(TypeError("Network request failed"))},0)},h.ontimeout=function(){setTimeout(function(){o(TypeError("Network request timed out"))},0)},h.onabort=function(){setTimeout(function(){o(new e.DOMException("Aborted","AbortError"))},0)},h.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?h.withCredentials=!0:"omit"===l.credentials&&(h.withCredentials=!1),"responseType"in h&&(n.blob?h.responseType="blob":n.arrayBuffer&&(h.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof u||t.Headers&&i.headers instanceof t.Headers)){var f=[];
1Object.getOwnPropertyNames(i.headers).forEach(function(e){f.push(a(e)),h.setRequestHeader(e,c(i.headers[e]))}),l.headers.forEach(function(e,t){-1===f.indexOf(t)&&h.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){h.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener("abort",d),h.onreadystatechange=function(){4===h.readyState&&l.signal.removeEventListener("abort",d)}),h.send(void 0===l._bodyInit?null:l._bodyInit)})}_.polyfill=!0,t.fetch||(t.fetch=_,t.Headers=u,t.Request=b,t.Response=w),e.Headers=u,e.Request=b,e.Response=w,e.fetch=_})({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var s=n.fetch?n:i;(t=s.fetch).default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t},71876:function(e,t,r){let n;var i=r(37658);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==i&&"env"in i&&(e=i.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(n=!1,()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(44282)(t);let{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},44282:function(e,t,r){e.exports=function(e){function t(e){let r,i,s;let o=null;function a(...e){if(!a.enabled)return;let n=Number(new Date),i=n-(r||n);a.diff=i,a.prev=r,a.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";s++;let i=t.formatters[n];if("function"==typeof i){let t=e[s];r=i.call(a,t),e.splice(s,1),s--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e,t){let r=0,n=0,i=-1,s=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,s=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++s}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(
1Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(i(e,r))return!1;for(let r of t.names)if(i(e,r))return!0;return!1},t.humanize=r(71344),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},84030:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ephemeralKeySize=t.symmetricNonceLength=t.symmetricAlgorithm=t.isHkdfKeyCompressed=t.isEphemeralKeyCompressed=t.ellipticCurve=t.ECIES_CONFIG=t.Config=void 0;var n=r(5951),i=function(){function e(){this.ellipticCurve="secp256k1",this.isEphemeralKeyCompressed=!1,this.isHkdfKeyCompressed=!1,this.symmetricAlgorithm="aes-256-gcm",this.symmetricNonceLength=16}return Object.defineProperty(e.prototype,"ephemeralKeySize",{get:function(){var e={secp256k1:this.isEphemeralKeyCompressed?n.COMPRESSED_PUBLIC_KEY_SIZE:n.UNCOMPRESSED_PUBLIC_KEY_SIZE,x25519:n.CURVE25519_PUBLIC_KEY_SIZE,ed25519:n.CURVE25519_PUBLIC_KEY_SIZE};if(this.ellipticCurve in e)return e[this.ellipticCurve];throw Error("Not implemented")},enumerable:!1,configurable:!0}),e}();t.Config=i,t.ECIES_CONFIG=new i,t.ellipticCurve=function(){return t.ECIES_CONFIG.ellipticCurve},t.isEphemeralKeyCompressed=function(){return t.ECIES_CONFIG.isEphemeralKeyCompressed},t.isHkdfKeyCompressed=function(){return t.ECIES_CONFIG.isHkdfKeyCompressed},t.symmetricAlgorithm=function(){return t.ECIES_CONFIG.symmetricAlgorithm},t.symmetricNonceLength=function(){return t.ECIES_CONFIG.symmetricNonceLength},t.ephemeralKeySize=function(){return t.ECIES_CONFIG.ephemeralKeySize}},5951:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AEAD_TAG_LENGTH=t.XCHACHA20_NONCE_LENGTH=t.CURVE25519_PUBLIC_KEY_SIZE=t.ETH_PUBLIC_KEY_SIZE=t.UNCOMPRESSED_PUBLIC_KEY_SIZE=t.COMPRESSED_PUBLIC_KEY_SIZE=t.SECRET_KEY_LENGTH=void 0,t.SECRET_KEY_LENGTH=32,t.COMPRESSED_PUBLIC_KEY_SIZE=33,t.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,t.ETH_PUBLIC_KEY_SIZE=64,t.CURVE25519_PUBLIC_KEY_SIZE=32,t.XCHACHA20_NONCE_LENGTH=24,t.AEAD_TAG_LENGTH=16},56167:function(e,t,r){"use strict";var n=r(36243).lW;t.nh=t._q=void 0,t.HI=function(e,t){var r,c,l,u,h,d,f;return n.from((c=(r=s.ECIES_CONFIG).ellipticCurve,l=new o.PrivateKey(void 0,c),u=e instanceof Uint8Array?new o.PublicKey(e,c):o.PublicKey.fromHex(e,c),h=l.encapsulate(u,r.isHkdfKeyCompressed),d=l.publicKey.toBytes(r.isEphemeralKeyCompressed),f=(0,a.symEncrypt)(h,t),(0,i.concatBytes)(d,f)))},t.pe=function(e,t){var r,i,c,l,u,h,d;return n.from((void 0===r&&(r=s.ECIES_CONFIG),i=r.ellipticCurve,c=e instanceof Uint8Array?new o.PrivateKey(e,i):o.PrivateKey.fromHex(e,i),l=r.ephemeralKeySize,u=new o.PublicKey(t.subarray(0,l),i),h=t.subarray(l),d=u.decapsulate(c,r.isHkdfKeyCompressed),(0,a.symDecrypt)(d,h)))};var i=r(1107),s=r(84030),o=r(76057),a=r(22743),c=(r(84030),r(76057));Object.defineProperty(t,"_q",{enumerable:!0,get:function(){return c.PrivateKey}}),Object.defineProperty(t,"nh",{enumerable:!0,get:function(){return c.PublicKey}}),a.aesEncrypt,a.aesDecrypt,a.symEncrypt,a.symDecrypt,a.decodeHex,a.getValidSecret,a.remove0x},7716:function(e,t,r){"use strict";var n=r(36243).lW;Object.defineProperty(t,"__esModule",{value:!0}),t.PrivateKey=void 0;var i=r(1107),s=r(22743),o=r(93255),a=function(){function e(e,t){if(this.curve=t,void 0===e)this.data=(0,s.getValidSecret)(t);else if((0,s.isValidPrivateKey)(e,t))this.data=e;else throw Error("Invalid private key");this.publicKey=new o.PublicKey((0,s.getPublicKey)(this.data,t),t)}return e.fromHex=function(t,r){return new e((0,s.decodeHex)(t),r)},Object.defineProperty(e.prototype,"secret",{get:function(){return n.from(this.data)},enumerable:!1,configurable:!0}),e.prototype.toHex=function(){return(0,i.bytesToHex)(this.data)},e.prototype.encapsulate=function(e,t){void 0===t&&(t=!1);var r=this.publicKey.toBytes(t),n=this.multiply(e,t);return(0,s.getSharedKey)(r,n)},e.prototype.multiply=function(e,t){return void 0===t&&(t=!1),(0,s.getSharedPoint)(this.data,e.toBytes(!0),t,this.curve)},e.prototype.equals=function(e){return(0,i.equalBytes)(this.data,e.data)},e}();t.PrivateKey=a},93255:function(e,t,r){"use strict";var n=r(36243).lW;
1Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=void 0;var i=r(1107),s=r(22743),o=function(){function e(e,t){var r=(0,s.convertPublicKeyFormat)(e,!0,t),n=(0,s.convertPublicKeyFormat)(e,!1,t);this.data=r,this.dataUncompressed=r.length!==n.length?n:null}return e.fromHex=function(t,r){return new e((0,s.hexToPublicKey)(t,r),r)},Object.defineProperty(e.prototype,"_uncompressed",{get:function(){return null!==this.dataUncompressed?this.dataUncompressed:this.data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uncompressed",{get:function(){return n.from(this._uncompressed)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"compressed",{get:function(){return n.from(this.data)},enumerable:!1,configurable:!0}),e.prototype.toBytes=function(e){return void 0===e&&(e=!0),e?this.data:this._uncompressed},e.prototype.toHex=function(e){return void 0===e&&(e=!0),(0,i.bytesToHex)(this.toBytes(e))},e.prototype.decapsulate=function(e,t){void 0===t&&(t=!1);var r=this.toBytes(t),n=e.multiply(this,t);return(0,s.getSharedKey)(r,n)},e.prototype.equals=function(e){return(0,i.equalBytes)(this.data,e.data)},e}();t.PublicKey=o},76057:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=t.PrivateKey=void 0;var n=r(7716);Object.defineProperty(t,"PrivateKey",{enumerable:!0,get:function(){return n.PrivateKey}});var i=r(93255);Object.defineProperty(t,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}})},65275:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToPublicKey=t.convertPublicKeyFormat=t.getSharedPoint=t.getPublicKey=t.isValidPrivateKey=t.getValidSecret=void 0;var n=r(74497),i=r(30748),s=r(55843),o=r(84030),a=r(5951),c=r(48381);function l(e,t,r,n){var a=e||o.ECIES_CONFIG.ellipticCurve;if("secp256k1"===a)return t(s.secp256k1);if("x25519"===a)return r(i.x25519);if("ed25519"===a)return n(i.ed25519);throw Error("Not implemented")}t.getValidSecret=function(e){var r;do r=(0,n.randomBytes)(a.SECRET_KEY_LENGTH);while(!(0,t.isValidPrivateKey)(r,e));return r},t.isValidPrivateKey=function(e,t){return l(t,function(t){return t.utils.isValidSecretKey(e)},function(){return!0},function(){return!0})},t.getPublicKey=function(e,t){return l(t,function(t){return t.getPublicKey(e)},function(t){return t.getPublicKey(e)},function(t){return t.getPublicKey(e)})},t.getSharedPoint=function(e,t,r,n){return l(n,function(n){return n.getSharedSecret(e,t,r)},function(r){return r.getSharedSecret(e,t)},function(r){return h(r,e,t)})},t.convertPublicKeyFormat=function(e,t,r){return l(r,function(r){return r.getSharedSecret(Uint8Array.from(Array(31).fill(0).concat([1])),e,t)},function(){return e},function(){return e})},t.hexToPublicKey=function(e,t){var r=(0,c.decodeHex)(e);return l(t,function(){return u(r)},function(){return r},function(){return r})};var u=function(e){if(e.length===a.ETH_PUBLIC_KEY_SIZE){var t=new Uint8Array(1+e.length);return t.set([4]),t.set(e,1),t}return e},h=function(e,t,r){var n=e.utils.getExtendedPublicKey(t).scalar;return e.Point.fromBytes(r).multiply(n).toBytes()}},3999:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSharedKey=t.deriveKey=void 0;var n=r(1107),i=r(30782),s=r(80317);t.deriveKey=function(e,t,r){return(0,i.hkdf)(s.sha256,e,t,r,32)},t.getSharedKey=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.deriveKey)(n.concatBytes.apply(void 0,e))}},48381:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHex=t.remove0x=void 0;var n=r(1107);t.remove0x=function(e){return e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e},t.decodeHex=function(e){return(0,n.hexToBytes)((0,t.remove0x)(e))}},22743:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};
1Object.defineProperty(t,"__esModule",{value:!0}),i(r(65275),t),i(r(3999),t),i(r(48381),t),i(r(63446),t)},63446:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aesDecrypt=t.aesEncrypt=t.symDecrypt=t.symEncrypt=void 0;var n=r(74990),i=r(78269),s=r(1107),o=r(74497),a=r(84030),c=r(5951);function l(e,t,r,s,o,a){if("aes-256-gcm"===t)return e(n.aes256gcm,s,o,r,c.AEAD_TAG_LENGTH,a);if("xchacha20"===t)return e(i.xchacha20,s,o,c.XCHACHA20_NONCE_LENGTH,c.AEAD_TAG_LENGTH,a);if("aes-256-cbc"===t)return e(n.aes256cbc,s,o,16,0);throw Error("Not implemented")}function u(e,t,r,n,i,a){var c=(0,o.randomBytes)(n),l=e(t,c,a).encrypt(r);if(0===i)return(0,s.concatBytes)(c,l);var u=l.length-i,h=l.subarray(0,u),d=l.subarray(u);return(0,s.concatBytes)(c,d,h)}function h(e,t,r,n,i,o){var a=r.subarray(0,n),c=e(t,Uint8Array.from(a),o),l=r.subarray(n);if(0===i)return c.decrypt(l);var u=l.subarray(0,i),h=l.subarray(i);return c.decrypt((0,s.concatBytes)(h,u))}t.symEncrypt=function(e,t,r){return l(u,a.ECIES_CONFIG.symmetricAlgorithm,a.ECIES_CONFIG.symmetricNonceLength,e,t,r)},t.symDecrypt=function(e,t,r){return l(h,a.ECIES_CONFIG.symmetricAlgorithm,a.ECIES_CONFIG.symmetricNonceLength,e,t,r)},t.aesEncrypt=t.symEncrypt,t.aesDecrypt=t.symDecrypt},53080:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=function(e){return{hash:e}},t.createCurve=function(e,t){let r=t=>(0,n.weierstrass)({...e,hash:t});return{...r(t),create:r}};let n=r(43643)},52530:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=void 0,t.negateCt=a,t.normalizeZ=function(e,t){let r=(0,i.FpInvertBatch)(e.Fp,t.map(e=>e.Z));return t.map((t,n)=>e.fromAffine(t.toAffine(r[n])))},t.mulEndoUnsafe=function(e,t,r,n){let i=t,a=e.ZERO,c=e.ZERO;for(;r>s||n>s;)r&o&&(a=a.add(i)),n&o&&(c=c.add(i)),i=i.double(),r>>=o,n>>=o;return{p1:a,p2:c}},t.pippenger=function(e,t,r,i){h(r,e),d(i,t);let s=r.length,o=i.length;if(s!==o)throw Error("arrays of points and scalars must have equal length");let a=e.ZERO,c=(0,n.bitLen)(BigInt(s)),l=1;c>12?l=c-3:c>4?l=c-2:c>0&&(l=2);let u=(0,n.bitMask)(l),f=Array(Number(u)+1).fill(a),p=Math.floor((t.BITS-1)/l)*l,m=a;for(let e=p;e>=0;e-=l){f.fill(a);for(let t=0;t<o;t++){let n=Number(i[t]>>BigInt(e)&u);f[n]=f[n].add(r[t])}let t=a;for(let e=f.length-1,r=a;e>0;e--)r=r.add(f[e]),t=t.add(r);if(m=m.add(t),0!==e)for(let e=0;e<l;e++)m=m.double()}return m},t.precomputeMSMUnsafe=function(e,t,r,i){c(i,t.BITS),h(r,e);let s=e.ZERO,o=2**i-1,a=Math.ceil(t.BITS/i),l=(0,n.bitMask)(i),u=r.map(e=>{let t=[];for(let r=0,n=e;r<o;r++)t.push(n),n=n.add(e);return t});return e=>{if(d(e,t),e.length>r.length)throw Error("array of scalars must be smaller than array of points");let n=s;for(let t=0;t<a;t++){if(n!==s)for(let e=0;e<i;e++)n=n.double();let r=BigInt(a*i-(t+1)*i);for(let t=0;t<e.length;t++){let i=Number(e[t]>>r&l);i&&(n=n.add(u[t][i-1]))}}return n}},t.validateBasic=function(e){return(0,i.validateField)(e.Fp),(0,n.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,i.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})},t._createCurveFields=function(e,t,r={},n){if(void 0===n&&(n="edwards"===e),!t||"object"!=typeof t)throw Error(`expected valid ${e} CURVE object`);for(let e of["p","n","h"]){let r=t[e];if(!("bigint"==typeof r&&r>s))throw Error(`CURVE.${e} must be positive bigint`)}let i=g(t.p,r.Fp,n),o=g(t.n,r.Fn,n);for(let r of["Gx","Gy","a","weierstrass"===e?"b":"d"])if(!i.isValid(t[r]))throw Error(`CURVE.${r} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:i,Fn:o}};let n=r(8713),i=r(86001),s=BigInt(0),o=BigInt(1);function a(e,t){let r=t.negate();return e?r:t}function c(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function l(e,t){c(e,t);let r=Math.ceil(t/e)+1,i=2**(e-1),s=2**e;return{windows:r,windowSize:i,mask:(0,n.bitMask)(e),maxNumber:s,shiftBy:BigInt(e)}}function u(e,t,r){let{windowSize:n,mask:i,maxNumber:s,shiftBy:a}=r,c=Number(e&i),l=e>>a;c>n&&(c-=s,l+=o);let u=t*n,h=u+Math.abs(c)-1;return{nextN:l,offset:h,isZero:0===c,isNeg:c<0,isNegF:t%2!=0,offsetF:u}}function h(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw Error("invalid point at index "+r)})}function d(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)})}let f=new WeakMap,p=new WeakMap;function m(e){return p.get(e)||1}function y(e){if(e!==s)throw Error("invalid wNAF")}class b{constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,r=this.ZERO){let n=e;for(;t>s;)t&o&&(r=r.add(n)),n=n.double(),t>>=o;return r}precomputeWindow(e,t){let{windows:r,windowSize:n}=l(t,this.bits),i=[],s=e,o=s;for(let e=0;e<r;e++){o=s,i.push(o);for(let e=1;e<n;e++)o=o.add(s),i.push(o);s=o.double()}return i}wNAF(e,t,r){if(!this.Fn.isValid(r))throw Error("invalid scalar");let n=this.ZERO,i=this.BASE,s=l(e,this.bits);for(let e=0;e<s.windows;e++){let{nextN:o,offset:c,isZero:l,isNeg:h,isNegF:d,offsetF:f}=u(r,e,s);r=o,l?i=i.add(a(d,t[f])):n=n.add(a(h,t[c]))}return y(r),{p:n,f:i}
1}wNAFUnsafe(e,t,r,n=this.ZERO){let i=l(e,this.bits);for(let e=0;e<i.windows&&r!==s;e++){let{nextN:s,offset:o,isZero:a,isNeg:c}=u(r,e,i);if(r=s,!a){let e=t[o];n=n.add(c?e.negate():e)}}return y(r),n}getPrecomputes(e,t,r){let n=f.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&("function"==typeof r&&(n=r(n)),f.set(t,n))),n}cached(e,t,r){let n=m(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)}unsafe(e,t,r,n){let i=m(e);return 1===i?this._unsafeLadder(e,t,n):this.wNAFUnsafe(i,this.getPrecomputes(i,e,r),t,n)}createCache(e,t){c(t,this.bits),p.set(e,t),f.delete(e)}hasCache(e){return 1!==m(e)}}function g(e,t,r){if(!t)return(0,i.Field)(e,{isLE:r});if(t.ORDER!==e)throw Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,i.validateField)(t),t}t.wNAF=b},48866:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrimeEdwardsPoint=void 0,t.edwards=u,t.eddsa=d,t.twistedEdwards=function(e){let{CURVE:t,curveOpts:r,hash:n,eddsaOpts:i}=function(e){let t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r={Fp:e.Fp,Fn:(0,s.Field)(t.n,e.nBitLength,!0),uvRatio:e.uvRatio},n={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:r,hash:e.hash,eddsaOpts:n}}(e);return function(e,t){let r=t.Point;return Object.assign({},t,{ExtendedPoint:r,CURVE:e,nBitLength:r.Fn.BITS,nByteLength:r.Fn.BYTES})}(e,d(u(t,r),n,i))};let n=r(8713),i=r(52530),s=r(86001),o=BigInt(0),a=BigInt(1),c=BigInt(2),l=BigInt(8);function u(e,t={}){let r=(0,i._createCurveFields)("edwards",e,t,t.FpFnLE),{Fp:s,Fn:u}=r,h=r.CURVE,{h:d}=h;(0,n._validateObject)(t,{},{uvRatio:"function"});let f=c<<BigInt(8*u.BYTES)-a,p=e=>s.create(e),m=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:s.sqrt(s.div(e,t))}}catch(e){return{isValid:!1,value:o}}});if(!function(e,t,r,n){let i=e.sqr(r),s=e.sqr(n),o=e.add(e.mul(t.a,i),s),a=e.add(e.ONE,e.mul(t.d,e.mul(i,s)));return e.eql(o,a)}(s,h,h.Gx,h.Gy))throw Error("bad curve params: generator point");function y(e,t,r=!1){let i=r?a:o;return(0,n.aInRange)("coordinate "+e,t,i,f),t}function b(e){if(!(e instanceof v))throw Error("ExtendedPoint expected")}let g=(0,n.memoized)((e,t)=>{let{X:r,Y:n,Z:i}=e,c=e.is0();null==t&&(t=c?l:s.inv(i));let u=p(r*t),h=p(n*t),d=s.mul(i,t);if(c)return{x:o,y:a};if(d!==a)throw Error("invZ was invalid");return{x:u,y:h}}),w=(0,n.memoized)(e=>{let{a:t,d:r}=h;if(e.is0())throw Error("bad point: ZERO");let{X:n,Y:i,Z:s,T:o}=e,a=p(n*n),c=p(i*i),l=p(s*s),u=p(l*l),d=p(a*t);if(p(l*p(d+c))!==p(u+p(r*p(a*c))))throw Error("bad point: equation left != right (1)");if(p(n*i)!==p(s*o))throw Error("bad point: equation left != right (2)");return!0});class v{constructor(e,t,r,n){this.X=y("x",e),this.Y=y("y",t),this.Z=y("z",r,!0),this.T=y("t",n),Object.freeze(this)}static CURVE(){return h}static fromAffine(e){if(e instanceof v)throw Error("extended point not allowed");let{x:t,y:r}=e||{};return y("x",t),y("y",r),new v(t,r,a,p(t*r))}static fromBytes(e,t=!1){let r=s.BYTES,{a:i,d:c}=h;e=(0,n.copyBytes)((0,n._abytes2)(e,r,"point")),(0,n._abool2)(t,"zip215");let l=(0,n.copyBytes)(e),u=e[r-1];l[r-1]=-129&u;let d=(0,n.bytesToNumberLE)(l),y=t?f:s.ORDER;(0,n.aInRange)("point.y",d,o,y);let b=p(d*d),{isValid:g,value:w}=m(p(b-a),p(c*b-i));if(!g)throw Error("bad point: invalid y coordinate");let _=(w&a)===a,A=(128&u)!=0;if(!t&&w===o&&A)throw Error("bad point: x=0 and x_0=1");return A!==_&&(w=p(-w)),v.fromAffine({x:w,y:d})}static fromHex(e,t=!1){return v.fromBytes((0,n.ensureBytes)("point",e),t)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return _.createCache(this,e),t||this.multiply(c),this}assertValidity(){w(this)}equals(e){b(e);let{X:t,Y:r,Z:n}=this,{X:i,Y:s,Z:o}=e,a=p(t*o),c=p(i*n),l=p(r*o),u=p(s*n);return a===c&&l===u}is0(){return this.equals(v.ZERO)}negate(){return new v(p(-this.X),this.Y,this.Z,p(-this.T))}double(){let{a:e}=h,{X:t,Y:r,Z:n}=this,i=p(t*t),s=p(r*r),o=p(c*p(n*n)),a=p(e*i),l=t+r,u=p(p(l*l)-i-s),d=a+s,f=d-o,m=a-s,y=p(u*f),b=p(d*m),g=p(u*m);return new v(y,b,p(f*d),g)}add(e){b(e);let{a:t,d:r}=h,{X:n,Y:i,Z:s,T:o}=this,{X:a,Y:c,Z:l,T:u}=e,d=p(n*a),f=p(i*c),m=p(o*r*u),y=p(s*l),g=p((n+i)*(a+c)-d-f),w=y-m,_=y+m,A=p(f-t*d),M=p(g*w),x=p(_*A),E=p(g*A);return new v(M,x,p(w*_),E)}subtract(e){return this.add(e.negate())}multiply(e){if(!u.isValidNot0(e))throw Error("invalid scalar: expected 1 <= sc < curve.n");let{p:t,f:r}=_.cached(this,e,e=>(0,i.normalizeZ)(v,e));return(0,i.normalizeZ)(v,[t,r])[0]}multiplyUnsafe(e,t=v.ZERO){if(!u.isValid(e))throw Error("invalid scalar: expected 0 <= sc < curve.n");return e===o?v.ZERO:this.is0()||e===a?this:_.unsafe(this,e,e=>(0,i.normalizeZ)(v,e),t)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}isTorsionFree(){return _.unsafe(this,h.n).is0()}toAffine(e){return g(this,e)}clearCofactor(){return d===a?this:this.multiplyUnsafe(d)}toBytes(){let{x:e,y:t}=this.toAffine(),r=s.toBytes(t);return r[r.length-1]|=e&a?128:0,r}toHex(){return(0,n.bytesToHex)(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(e){return(0,i.normalizeZ)(v,e)}static msm(e,t){return(0,i.pippenger)(v,u,e,t)}
1_setWindowSize(e){this.precompute(e)}toRawBytes(){return this.toBytes()}}v.BASE=new v(h.Gx,h.Gy,a,p(h.Gx*h.Gy)),v.ZERO=new v(o,a,a,o),v.Fp=s,v.Fn=u;let _=new i.wNAF(v,u.BITS);return v.BASE.precompute(8),v}class h{constructor(e){this.ep=e}static fromBytes(e){(0,n.notImplemented)()}static fromHex(e){(0,n.notImplemented)()}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine(e){return this.ep.toAffine(e)}toHex(){return(0,n.bytesToHex)(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add(e){return this.assertSame(e),this.init(this.ep.add(e.ep))}subtract(e){return this.assertSame(e),this.init(this.ep.subtract(e.ep))}multiply(e){return this.init(this.ep.multiply(e))}multiplyUnsafe(e){return this.init(this.ep.multiplyUnsafe(e))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute(e,t){return this.init(this.ep.precompute(e,t))}toRawBytes(){return this.toBytes()}}function d(e,t,r={}){if("function"!=typeof t)throw Error('"hash" function param is required');(0,n._validateObject)(r,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});let{prehash:i}=r,{BASE:s,Fp:o,Fn:c}=e,l=r.randomBytes||n.randomBytes,u=r.adjustScalarBytes||(e=>e),h=r.domain||((e,t,r)=>{if((0,n._abool2)(r,"phflag"),t.length||r)throw Error("Contexts/pre-hash are not supported");return e});function d(e){return c.create((0,n.bytesToNumberLE)(e))}function f(e){let{head:r,prefix:i,scalar:o}=function(e){let r=g.secretKey;e=(0,n.ensureBytes)("private key",e,r);let i=(0,n.ensureBytes)("hashed private key",t(e),2*r),s=u(i.slice(0,r)),o=i.slice(r,2*r),a=d(s);return{head:s,prefix:o,scalar:a}}(e),a=s.multiply(o),c=a.toBytes();return{head:r,prefix:i,scalar:o,point:a,pointBytes:c}}function p(e){return f(e).pointBytes}function m(e=Uint8Array.of(),...r){return d(t(h((0,n.concatBytes)(...r),(0,n.ensureBytes)("context",e),!!i)))}let y={zip215:!0},b=o.BYTES,g={secretKey:b,publicKey:b,signature:2*b,seed:b};function w(e=l(g.seed)){return(0,n._abytes2)(e,g.seed,"seed")}let v={getExtendedPublicKey:f,randomSecretKey:w,isValidSecretKey:function(e){return(0,n.isBytes)(e)&&e.length===c.BYTES},isValidPublicKey:function(t,r){try{return!!e.fromBytes(t,r)}catch(e){return!1}},toMontgomery(t){let{y:r}=e.fromBytes(t),n=g.publicKey,i=32===n;if(!i&&57!==n)throw Error("only defined for 25519 and 448");let s=i?o.div(a+r,a-r):o.div(r-a,r+a);return o.toBytes(s)},toMontgomerySecret(e){let r=g.secretKey;return(0,n._abytes2)(e,r),u(t(e.subarray(0,r))).subarray(0,r)},randomPrivateKey:w,precompute:(t=8,r=e.BASE)=>r.precompute(t,!1)};return Object.freeze({keygen:function(e){let t=v.randomSecretKey(e);return{secretKey:t,publicKey:p(t)}},getPublicKey:p,sign:function(e,t,r={}){e=(0,n.ensureBytes)("message",e),i&&(e=i(e));let{prefix:o,scalar:a,pointBytes:l}=f(t),u=m(r.context,o,e),h=s.multiply(u).toBytes(),d=m(r.context,h,l,e),p=c.create(u+d*a);if(!c.isValid(p))throw Error("sign failed: invalid s");let y=(0,n.concatBytes)(h,c.toBytes(p));return(0,n._abytes2)(y,g.signature,"result")},verify:function(t,r,o,a=y){let c,l,u;let{context:h,zip215:d}=a,f=g.signature;t=(0,n.ensureBytes)("signature",t,f),r=(0,n.ensureBytes)("message",r),o=(0,n.ensureBytes)("publicKey",o,g.publicKey),void 0!==d&&(0,n._abool2)(d,"zip215"),i&&(r=i(r));let p=f/2,b=t.subarray(0,p),w=(0,n.bytesToNumberLE)(t.subarray(p,f));try{c=e.fromBytes(o,d),l=e.fromBytes(b,d),u=s.multiplyUnsafe(w)}catch(e){return!1}if(!d&&c.isSmallOrder())return!1;let v=m(h,l.toBytes(),c.toBytes(),r);return l.add(c.multiplyUnsafe(v)).subtract(u).clearCofactor().is0()},utils:v,Point:e,lengths:g})}t.PrimeEdwardsPoint=h},65380:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._DST_scalar=void 0,t.expand_message_xmd=l,t.expand_message_xof=u,t.hash_to_field=h,t.isogenyMap=function(e,t){let r=t.map(e=>Array.from(e).reverse());return(t,n)=>{let[s,o,a,c]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n))),[l,u]=(0,i.FpInvertBatch)(e,[o,c],!0);return t=e.mul(s,l),n=e.mul(n,e.mul(a,u)),{x:t,y:n}}},t.createHasher=function(e,r,n){if("function"!=typeof r)throw Error("mapToCurve() must be defined");function i(t){return e.fromAffine(r(t))}function s(t){let r=t.clearCofactor();return r.equals(e.ZERO)?e.ZERO:(r.assertValidity(),r)}return{defaults:n,hashToCurve(e,t){let r=h(e,2,Object.assign({},n,t)),o=i(r[0]),a=i(r[1]);return s(o.add(a))},encodeToCurve(e,t){let r=n.encodeDST?{DST:n.encodeDST}:{};return s(i(h(e,1,Object.assign({},n,r,t))[0]))},mapToCurve(e){if(!Array.isArray(e))throw Error("expected array of bigints");for(let t of e)if("bigint"!=typeof t)throw Error("expected array of bigints");return s(i(e))},hashToScalar:(r,i)=>h(r,1,Object.assign({},n,{p:e.Fn.ORDER,m:1,DST:t._DST_scalar},i))[0][0]}};let n=r(8713),i=r(86001),s=n.bytesToNumberBE;function o(e,t){if(a(e),a(t),e<0||e>
1=1<<8*t)throw Error("invalid I2OSP input: "+e);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function a(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function c(e){if(!(0,n.isBytes)(e)&&"string"!=typeof e)throw Error("DST must be Uint8Array or string");return"string"==typeof e?(0,n.utf8ToBytes)(e):e}function l(e,t,r,i){(0,n.abytes)(e),a(r),(t=c(t)).length>255&&(t=i((0,n.concatBytes)((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:s,blockLen:l}=i,u=Math.ceil(r/s);if(r>65535||u>255)throw Error("expand_message_xmd: invalid lenInBytes");let h=(0,n.concatBytes)(t,o(t.length,1)),d=o(0,l),f=o(r,2),p=Array(u),m=i((0,n.concatBytes)(d,e,f,o(0,1),h));p[0]=i((0,n.concatBytes)(m,o(1,1),h));for(let e=1;e<=u;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}(m,p[e-1]),o(e+1,1),h];p[e]=i((0,n.concatBytes)(...t))}return(0,n.concatBytes)(...p).slice(0,r)}function u(e,t,r,i,s){if((0,n.abytes)(e),a(r),(t=c(t)).length>255&&(t=s.create({dkLen:Math.ceil(2*i/8)}).update((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()),r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return s.create({dkLen:r}).update(e).update(o(r,2)).update(t).update(o(t.length,1)).digest()}function h(e,t,r){let o;(0,n._validateObject)(r,{p:"bigint",m:"number",k:"number",hash:"function"});let{p:c,k:h,m:d,hash:f,expand:p,DST:m}=r;if(!(0,n.isHash)(r.hash))throw Error("expected valid hash");(0,n.abytes)(e),a(t);let y=Math.ceil((c.toString(2).length+h)/8),b=t*d*y;if("xmd"===p)o=l(e,m,b,f);else if("xof"===p)o=u(e,m,b,h,f);else if("_internal_pass"===p)o=e;else throw Error('expand must be "xmd" or "xof"');let g=Array(t);for(let e=0;e<t;e++){let t=Array(d);for(let r=0;r<d;r++){let n=y*(r+e*d),a=o.subarray(n,n+y);t[r]=(0,i.mod)(s(a),c)}g[e]=t}return g}t._DST_scalar=(0,n.utf8ToBytes)("HashToScalar-")},86001:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=p,t.pow=function(e,t,r){return A(S(r),e,t)},t.pow2=function(e,t,r){let n=e;for(;t-- >i;)n*=n,n%=r;return n},t.invert=m,t.tonelliShanks=w,t.FpSqrt=v,t.validateField=function(e){let t=_.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"});return(0,n._validateObject)(e,t),e},t.FpPow=A,t.FpInvertBatch=M,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?m(r,e.ORDER):e.inv(r))},t.FpLegendre=x,t.FpIsSquare=function(e,t){return 1===x(e,t)},t.nLength=E,t.Field=S,t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){let i=(e=(0,n.ensureBytes)("privateHash",e)).length,o=E(t).nByteLength+8;if(o<24||i<o||i>1024)throw Error("hashToPrivateScalar: expected "+o+"-1024 bytes of input, got "+i);return p(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-s)+s},t.getFieldBytesLength=k,t.getMinHashLength=C,t.mapHashToField=function(e,t,r=!1){let i=e.length,o=k(t),a=C(t);if(i<16||i<a||i>1024)throw Error("expected "+a+"-1024 bytes of input, got "+i);let c=p(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-s)+s;return r?(0,n.numberToBytesLE)(c,o):(0,n.numberToBytesBE)(c,o)};let n=r(8713),i=BigInt(0),s=BigInt(1),o=BigInt(2),a=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(7),h=BigInt(8),d=BigInt(9),f=BigInt(16);function p(e,t){let r=e%t;return r>=i?r:t+r}function m(e,t){if(e===i)throw Error("invert: expected non-zero number");if(t<=i)throw Error("invert: expected positive modulus, got "+t);let r=p(e,t),n=t,o=i,a=s,c=s,l=i;for(;r!==i;){let e=n/r,t=n%r,i=o-c*e,s=a-l*e;n=r,r=t,o=c,a=l,c=i,l=s}if(n!==s)throw Error("invert: does not exist");return p(o,t)}function y(e,t,r){if(!e.eql(e.sqr(t),r))throw Error("Cannot find square root")}function b(e,t){let r=(e.ORDER+s)/c,n=e.pow(t,r);return y(e,n,t),n}function g(e,t){let r=(e.ORDER-l)/h,n=e.mul(t,o),i=e.pow(n,r),s=e.mul(t,i),a=e.mul(e.mul(s,o),i),c=e.mul(s,e.sub(a,e.ONE));return y(e,c,t),c}function w(e){if(e<a)throw Error("sqrt is not defined for small field");let t=e-s,r=0;for(;t%o===i;)t/=o,r++;let n=o,c=S(e);for(;1===x(c,n);)if(n++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return b;let l=c.pow(n,t),u=(t+s)/o;return function(e,n){if(e.is0(n))return n;if(1!==x(e,n))throw Error("Cannot find square root");let i=r,o=e.mul(e.ONE,l),a=e.pow(n,t),c=e.pow(n,u);for(;!e.eql(a,e.ONE);){if(e.is0(a))return e.ZERO;let t=1,r=e.sqr(a);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===i)throw Error("Cannot find square root");let n=s<<BigInt(i-t-1),l=e.pow(o,n);i=t,o=e.sqr(l),a=e.mul(a,o),c=e.mul(c,l)}return c}}function v(e){return e%c===a?b:e%h===l?g:e%f===d?function(e){let t=S(e),r=w(e),n=r(t,t.neg(t.ONE)),i=r(t,n),s=r(t,t.neg(n)),o=(e+u)/f;return(e,t)=>{let r=e.pow(t,o),a=e.mul(r,n),c=e.mul(r,i),l=e.mul(r,s),u=e.eql(e.sqr(a),t),h=e.eql(e.sqr(c),t);r=e.cmov(r,a,u),a=e.cmov(l,c,h);let d=e.eql(e.sqr(a),t),f=e.cmov(r,a,d);return y(e,f,t),f}}(e):w(e)}t.isNegativeLE=(e,t)=>(p(e,t)&s)===s;let _=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function A(e,t,r){if(r<i)throw Error("invalid exponent, negatives unsupported");if(r===i)return e.ONE;if(r===s)return t;let n=e.ONE,o=t;for(;r>i;)r&s&&(n=e.mul(n,o)),o=e.sqr(o),r>>=s;return n}function M(e,t,r=!1){let n=Array(t.length).fill(r?e.ZERO:void 0),i=t.reduce((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r)),e.ONE),s=e.inv(i);return t.reduceRight((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r)),s),n}function x(e,t){let r=(e.ORDER-s)/o,n=e.pow(t,r),i=e.eql(n,e.ONE),a=e.eql(n,e.ZERO),c=e.eql(n,e.neg(e.ONE));if(!i&&!a&&!c)throw Error("invalid Legendre symbol result");return i?1:a?0:-1}function E(e,t){void 0!==t&&(0,n.anumber)(t);let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function S(e,t,r=!1,o={}){let a,c,l,u;if(e<=i)throw Error("invalid field: expected ORDER > 0, got "+e);let h=!1;if("object"==typeof t&&null!=t){if(o.sqrt||r)throw Error("cannot specify opts in two arguments");
vendor: 1,103 bytes, line 1
1t.BITS&&(c=t.BITS),t.sqrt&&(l=t.sqrt),"boolean"==typeof t.isLE&&(r=t.isLE),"boolean"==typeof t.modFromBytes&&(h=t.modFromBytes),u=t.allowedLengths}else"number"==typeof t&&(c=t),o.sqrt&&(l=o.sqrt);let{nBitLength:d,nByteLength:f}=E(e,c);if(f>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let y=Object.freeze({ORDER:e,isLE:r,BITS:d,BYTES:f,MASK:(0,n.bitMask)(d),ZERO:i,ONE:s,allowedLengths:u,create:t=>p(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return i<=t&&t<e},is0:e=>e===i,isValidNot0:e=>!y.is0(e)&&y.isValid(e),isOdd:e=>(e&s)===s,neg:t=>p(-t,e),eql:(e,t)=>e===t,sqr:t=>p(t*t,e),add:(t,r)=>p(t+r,e),sub:(t,r)=>p(t-r,e),mul:(t,r)=>p(t*r,e),pow:(e,t)=>A(y,e,t),div:(t,r)=>p(t*m(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>m(t,e),sqrt:l||(t=>(a||(a=v(e)),a(y,t))),toBytes:e=>r?(0,n.numberToBytesLE)(e,f):(0,n.numberToBytesBE)(e,f),fromBytes:(t,i=!0)=>{if(u){if(!u.includes(t.length)||t.length>f)throw Error("Field.fromBytes: expected "+u+" bytes, got "+t.length);let e=new Uint8Array(f);
1e.set(t,r?0:e.length-t.length),t=e}if(t.length!==f)throw Error("Field.fromBytes: expected "+f+" bytes, got "+t.length);let s=r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t);if(h&&(s=p(s,e)),!i&&!y.isValid(s))throw Error("invalid field element: outside of range 0..ORDER");return s},invertBatch:e=>M(y,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(y)}function k(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function C(e){let t=k(e);return t+Math.ceil(t/2)}},94161:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.montgomery=function(e){let{P:t,type:r,adjustScalarBytes:c,powPminus2:l,randomBytes:u}=((0,n._validateObject)(e,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...e})),h="x25519"===r;if(!h&&"x448"!==r)throw Error("invalid type");let d=u||n.randomBytes,f=h?255:448,p=h?32:56,m=h?BigInt(9):BigInt(5),y=h?BigInt(121665):BigInt(39081),b=h?a**BigInt(254):a**BigInt(447),g=b+(h?BigInt(8)*a**BigInt(251)-o:BigInt(4)*a**BigInt(445)-o)+o,w=e=>(0,i.mod)(e,t),v=_(m);function _(e){return(0,n.numberToBytesLE)(w(e),p)}function A(e,r){let i=function(e,r){(0,n.aInRange)("u",e,s,t),(0,n.aInRange)("scalar",r,b,g);let i=o,a=s,c=e,u=o,h=s;for(let t=BigInt(f-1);t>=s;t--){let n=r>>t&o;h^=n,({x_2:i,x_3:c}=x(h,i,c)),({x_2:a,x_3:u}=x(h,a,u)),h=n;let s=i+a,l=w(s*s),d=i-a,f=w(d*d),p=l-f,m=c+u,b=w((c-u)*s),g=w(m*d),v=b+g,_=b-g;c=w(v*v),u=w(e*w(_*_)),i=w(l*f),a=w(p*(l+w(y*p)))}return{x_2:i,x_3:c}=x(h,i,c),{x_2:a,x_3:u}=x(h,a,u),w(i*l(a))}(function(e){let t=(0,n.ensureBytes)("u coordinate",e,p);return h&&(t[31]&=127),w((0,n.bytesToNumberLE)(t))}(r),(0,n.bytesToNumberLE)(c((0,n.ensureBytes)("scalar",e,p))));if(i===s)throw Error("invalid private or public key received");return _(i)}function M(e){return A(e,v)}function x(e,t,r){let n=w(e*(t-r));return{x_2:t=w(t-n),x_3:r=w(r+n)}}let E={secretKey:p,publicKey:p,seed:p},S=(e=d(p))=>((0,n.abytes)(e,E.seed),e);return{keygen:function(e){let t=S(e);return{secretKey:t,publicKey:M(t)}},getSharedSecret:(e,t)=>A(e,t),getPublicKey:e=>M(e),scalarMult:A,scalarMultBase:M,utils:{randomSecretKey:S,randomPrivateKey:S},GuBytes:v.slice(),lengths:E}};let n=r(8713),i=r(86001),s=BigInt(0),o=BigInt(1),a=BigInt(2)},43643:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DER=t.DERErr=void 0,t._splitEndoScalar=l,t._normFnElement=g,t.weierstrassN=w,t.SWUFpSqrtRatio=_,t.mapToCurveSimpleSWU=function(e,t){(0,a.validateField)(e);let{A:r,B:n,Z:i}=t;if(!e.isValid(r)||!e.isValid(n)||!e.isValid(i))throw Error("mapToCurveSimpleSWU: invalid opts");let s=_(e,i);if(!e.isOdd)throw Error("Field does not have .isOdd()");return t=>{let o,c,l,u,h,d,f,p;o=e.sqr(t),o=e.mul(o,i),c=e.sqr(o),c=e.add(c,o),l=e.add(c,e.ONE),l=e.mul(l,n),u=e.cmov(i,e.neg(c),!e.eql(c,e.ZERO)),u=e.mul(u,r),c=e.sqr(l),d=e.sqr(u),h=e.mul(d,r),c=e.add(c,h),c=e.mul(c,l),d=e.mul(d,u),h=e.mul(d,n),c=e.add(c,h),f=e.mul(o,l);let{isValid:m,value:y}=s(c,d);p=e.mul(o,t),p=e.mul(p,y),f=e.cmov(f,l,m),p=e.cmov(p,y,m);let b=e.isOdd(t)===e.isOdd(p);p=e.cmov(e.neg(p),p,b);let g=(0,a.FpInvertBatch)(e,[u],!0)[0];return{x:f=e.mul(f,g),y:p}}},t.ecdh=M,t.ecdsa=x,t.weierstrassPoints=function(e){let{CURVE:t,curveOpts:r}=E(e);return function(e,t){let{Fp:r,Fn:n}=t,i=S(r,e.a,e.b);return Object.assign({},{CURVE:e,Point:t,ProjectivePoint:t,normPrivateKeyToScalar:e=>g(n,e),weierstrassEquation:i,isWithinCurveOrder:function(e){return(0,s.inRange)(e,p,n.ORDER)}})}(e,w(t,r))},t._legacyHelperEquat=S,t.weierstrass=function(e){let{CURVE:t,curveOpts:r,hash:n,ecdsaOpts:i}=function(e){let{CURVE:t,curveOpts:r}=E(e),n={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:r,hash:e.hash,ecdsaOpts:n}}(e);return function(e,t){let r=t.Point;return Object.assign({},t,{ProjectivePoint:r,CURVE:Object.assign({},e,(0,a.nLength)(r.Fn.ORDER,r.Fn.BITS))})}(e,x(w(t,r),n,i))};let n=r(30854),i=r(36286),s=r(8713),o=r(52530),a=r(86001),c=(e,t)=>(e+(e>=0?t:-t)/m)/t;function l(e,t,r){let[[n,i],[o,a]]=t,l=c(a*e,r),u=c(-i*e,r),h=e-l*n-u*o,d=-l*i-u*a,m=h<f,y=d<f;m&&(h=-h),y&&(d=-d);let b=(0,s.bitMask)(Math.ceil((0,s.bitLen)(r)/2))+p;if(h<f||h>=b||d<f||d>=b)throw Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:m,k1:h,k2neg:y,k2:d}}function u(e){if(!["compact","recovered","der"].includes(e))throw Error('Signature format must be "compact", "recovered", or "der"');return e}function h(e,t){let r={};for(let n of Object.keys(t))r[n]=void 0===e[n]?t[n]:e[n];return(0,s._abool2)(r.lowS,"lowS"),(0,s._abool2)(r.prehash,"prehash"),void 0!==r.format&&u(r.format),r}
1class d extends Error{constructor(e=""){super(e)}}t.DERErr=d,t.DER={Err:d,_tlv:{encode:(e,r)=>{let{Err:n}=t.DER;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&r.length)throw new n("tlv.encode: unpadded data");let i=r.length/2,o=(0,s.numberToHexUnpadded)(i);if(o.length/2&128)throw new n("tlv.encode: long form length too big");let a=i>127?(0,s.numberToHexUnpadded)(o.length/2|128):"";return(0,s.numberToHexUnpadded)(e)+a+o+r},decode(e,r){let{Err:n}=t.DER,i=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(r.length<2||r[i++]!==e)throw new n("tlv.decode: wrong tlv");let s=r[i++],o=0;if(128&s){let e=127&s;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");let t=r.subarray(i,i+e);if(t.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===t[0])throw new n("tlv.decode(long): zero leftmost byte");for(let e of t)o=o<<8|e;if(i+=e,o<128)throw new n("tlv.decode(long): not minimal encoding")}else o=s;let a=r.subarray(i,i+o);if(a.length!==o)throw new n("tlv.decode: wrong value length");return{v:a,l:r.subarray(i+o)}}},_int:{encode(e){let{Err:r}=t.DER;if(e<f)throw new r("integer: negative integers are not allowed");let n=(0,s.numberToHexUnpadded)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new r("unexpected DER parsing assertion: unpadded hex");return n},decode(e){let{Err:r}=t.DER;if(128&e[0])throw new r("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new r("invalid signature integer: unnecessary leading zero");return(0,s.bytesToNumberBE)(e)}},toSig(e){let{Err:r,_int:n,_tlv:i}=t.DER,o=(0,s.ensureBytes)("signature",e),{v:a,l:c}=i.decode(48,o);if(c.length)throw new r("invalid signature: left bytes after parsing");let{v:l,l:u}=i.decode(2,a),{v:h,l:d}=i.decode(2,u);if(d.length)throw new r("invalid signature: left bytes after parsing");return{r:n.decode(l),s:n.decode(h)}},hexFromSig(e){let{_tlv:r,_int:n}=t.DER,i=r.encode(2,n.encode(e.r)),s=r.encode(2,n.encode(e.s));return r.encode(48,i+s)}};let f=BigInt(0),p=BigInt(1),m=BigInt(2),y=BigInt(3),b=BigInt(4);function g(e,t){let r;let{BYTES:n}=e;if("bigint"==typeof t)r=t;else{let i=(0,s.ensureBytes)("private key",t);try{r=e.fromBytes(i)}catch(e){throw Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw Error("invalid private key: out of range [1..N-1]");return r}function w(e,t={}){let r=(0,o._createCurveFields)("weierstrass",e,t),{Fp:n,Fn:i}=r,a=r.CURVE,{h:c,n:u}=a;(0,s._validateObject)(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});let{endo:h}=t;if(h&&(!n.is0(a.a)||"bigint"!=typeof h.beta||!Array.isArray(h.basises)))throw Error('invalid endo: expected "beta": bigint and "basises": array');let d=A(n,i);function m(){if(!n.isOdd)throw Error("compression is not supported: Field does not have .isOdd()")}let w=t.toBytes||function(e,t,r){let{x:i,y:o}=t.toAffine(),a=n.toBytes(i);if((0,s._abool2)(r,"isCompressed"),!r)return(0,s.concatBytes)(Uint8Array.of(4),a,n.toBytes(o));{m();let e=!n.isOdd(o);return(0,s.concatBytes)(v(e),a)}},_=t.fromBytes||function(e){(0,s._abytes2)(e,void 0,"Point");let{publicKey:t,publicKeyUncompressed:r}=d,i=e.length,o=e[0],a=e.subarray(1);if(i===t&&(2===o||3===o)){let e;let t=n.fromBytes(a);if(!n.isValid(t))throw Error("bad point: is not on curve, wrong x");let r=M(t);try{e=n.sqrt(r)}catch(e){throw Error("bad point: is not on curve, sqrt error"+(e instanceof Error?": "+e.message:""))}return m(),(1&o)==1!==n.isOdd(e)&&(e=n.neg(e)),{x:t,y:e}}if(i===r&&4===o){let e=n.BYTES,t=n.fromBytes(a.subarray(0,e)),r=n.fromBytes(a.subarray(e,2*e));if(!x(t,r))throw Error("bad point: is not on curve");return{x:t,y:r}}throw Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${r}`)};function M(e){let t=n.sqr(e),r=n.mul(t,e);return n.add(n.add(r,n.mul(e,a.a)),a.b)}function x(e,t){let r=n.sqr(t),i=M(e);return n.eql(r,i)}if(!x(a.Gx,a.Gy))throw Error("bad curve params: generator point");let E=n.mul(n.pow(a.a,y),b),S=n.mul(n.sqr(a.b),BigInt(27));if(n.is0(n.add(E,S)))throw Error("bad curve params: a or b");function k(e,t,r=!1){if(!n.isValid(t)||r&&n.is0(t))throw Error(`bad point coordinate ${e}`);return t}function C(e){if(!(e instanceof I))throw Error("ProjectivePoint expected")}function P(e){if(!h||!h.basises)throw Error("no endo");return l(e,h.basises,i.ORDER)}let T=(0,s.memoized)((e,t)=>{let{X:r,Y:i,Z:s}=e;if(n.eql(s,n.ONE))return{x:r,y:i};let o=e.is0();null==t&&(t=o?n.ONE:n.inv(s));let a=n.mul(r,t),c=n.mul(i,t),l=n.mul(s,t);if(o)return{x:n.ZERO,y:n.ZERO};
vendor: 4,744 bytes, line 1
1if(!n.eql(l,n.ONE))throw Error("invZ was invalid");return{x:a,y:c}}),U=(0,s.memoized)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!n.is0(e.Y))return;throw Error("bad point: ZERO")}let{x:r,y:i}=e.toAffine();if(!n.isValid(r)||!n.isValid(i))throw Error("bad point: x or y not field elements");if(!x(r,i))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});function B(e,t,r,i,s){return r=new I(n.mul(r.X,e),r.Y,r.Z),t=(0,o.negateCt)(i,t),r=(0,o.negateCt)(s,r),t.add(r)}class I{constructor(e,t,r){this.X=k("x",e),this.Y=k("y",t,!0),this.Z=k("z",r),Object.freeze(this)}static CURVE(){return a}static fromAffine(e){let{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw Error("invalid affine point");if(e instanceof I)throw Error("projective point not allowed");return n.is0(t)&&n.is0(r)?I.ZERO:new I(t,r,n.ONE)}static fromBytes(e){let t=I.fromAffine(_((0,s._abytes2)(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return I.fromBytes((0,s.ensureBytes)("pointHex",e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return R.createCache(this,e),t||this.multiply(y),this}assertValidity(){U(this)}hasEvenY(){let{y:e}=this.toAffine();if(!n.isOdd)throw Error("Field doesn't support isOdd");return!n.isOdd(e)}equals(e){C(e);let{X:t,Y:r,Z:i}=this,{X:s,Y:o,Z:a}=e,c=n.eql(n.mul(t,a),n.mul(s,i)),l=n.eql(n.mul(r,a),n.mul(o,i));return c&&l}negate(){return new I(this.X,n.neg(this.Y),this.Z)}double(){let{a:e,b:t}=a,r=n.mul(t,y),{X:i,Y:s,Z:o}=this,c=n.ZERO,l=n.ZERO,u=n.ZERO,h=n.mul(i,i),d=n.mul(s,s),f=n.mul(o,o),p=n.mul(i,s);return p=n.add(p,p),u=n.mul(i,o),u=n.add(u,u),c=n.mul(e,u),l=n.mul(r,f),l=n.add(c,l),c=n.sub(d,l),l=n.add(d,l),l=n.mul(c,l),c=n.mul(p,c),u=n.mul(r,u),f=n.mul(e,f),p=n.sub(h,f),p=n.mul(e,p),p=n.add(p,u),u=n.add(h,h),h=n.add(u,h),h=n.add(h,f),h=n.mul(h,p),l=n.add(l,h),f=n.mul(s,o),f=n.add(f,f),h=n.mul(f,p),c=n.sub(c,h),u=n.mul(f,d),u=n.add(u,u),new I(c,l,u=n.add(u,u))}add(e){C(e);let{X:t,Y:r,Z:i}=this,{X:s,Y:o,Z:c}=e,l=n.ZERO,u=n.ZERO,h=n.ZERO,d=a.a,f=n.mul(a.b,y),p=n.mul(t,s),m=n.mul(r,o),b=n.mul(i,c),g=n.add(t,r),w=n.add(s,o);g=n.mul(g,w),w=n.add(p,m),g=n.sub(g,w),w=n.add(t,i);let v=n.add(s,c);return w=n.mul(w,v),v=n.add(p,b),w=n.sub(w,v),v=n.add(r,i),l=n.add(o,c),v=n.mul(v,l),l=n.add(m,b),v=n.sub(v,l),h=n.mul(d,w),l=n.mul(f,b),h=n.add(l,h),l=n.sub(m,h),h=n.add(m,h),u=n.mul(l,h),m=n.add(p,p),m=n.add(m,p),b=n.mul(d,b),w=n.mul(f,w),m=n.add(m,b),b=n.sub(p,b),b=n.mul(d,b),w=n.add(w,b),p=n.mul(m,w),u=n.add(u,p),p=n.mul(v,w),l=n.mul(g,l),l=n.sub(l,p),p=n.mul(g,m),h=n.mul(v,h),new I(l,u,h=n.add(h,p))}subtract(e){return this.add(e.negate())}is0(){return this.equals(I.ZERO)}multiply(e){let r,n;let{endo:s}=t;if(!i.isValidNot0(e))throw Error("invalid scalar: out of range");let a=e=>R.cached(this,e,e=>(0,o.normalizeZ)(I,e));if(s){let{k1neg:t,k1:i,k2neg:o,k2:c}=P(e),{p:l,f:u}=a(i),{p:h,f:d}=a(c);n=u.add(d),r=B(s.beta,l,h,t,o)}else{let{p:t,f:i}=a(e);r=t,n=i}return(0,o.normalizeZ)(I,[r,n])[0]}multiplyUnsafe(e){let{endo:r}=t;if(!i.isValid(e))throw Error("invalid scalar: out of range");if(e===f||this.is0())return I.ZERO;if(e===p)return this;if(R.hasCache(this))return this.multiply(e);if(!r)return R.unsafe(this,e);{let{k1neg:t,k1:n,k2neg:i,k2:s}=P(e),{p1:a,p2:c}=(0,o.mulEndoUnsafe)(I,this,n,s);return B(r.beta,a,c,t,i)}}multiplyAndAddUnsafe(e,t,r){let n=this.multiplyUnsafe(t).add(e.multiplyUnsafe(r));return n.is0()?void 0:n}toAffine(e){return T(this,e)}isTorsionFree(){let{isTorsionFree:e}=t;return c===p||(e?e(I,this):R.unsafe(this,u).is0())}clearCofactor(){let{clearCofactor:e}=t;return c===p?this:e?e(I,this):this.multiplyUnsafe(c)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}toBytes(e=!0){return(0,s._abool2)(e,"isCompressed"),this.assertValidity(),w(I,this,e)}toHex(e=!0){return(0,s.bytesToHex)(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(e=!0){return this.toBytes(e)}_setWindowSize(e){this.precompute(e)}static normalizeZ(e){return(0,o.normalizeZ)(I,e)}static msm(e,t){return(0,o.pippenger)(I,i,e,t)}static fromPrivateKey(e){return I.BASE.multiply(g(i,e))}}I.BASE=new I(a.Gx,a.Gy,n.ONE),I.ZERO=new I(n.ZERO,n.ONE,n.ZERO),I.Fp=n,I.Fn=i;let O=i.BITS,R=new o.wNAF(I,t.endo?Math.ceil(O/2):O);return I.BASE.precompute(8),I}function v(e){return Uint8Array.of(e?2:3)}function _(e,t){let r=e.ORDER,n=f;for(let e=r-p;e%m===f;e/=m)n+=p;let i=n,s=m<<i-p-p,o=s*m,a=(r-p)/o,c=(a-p)/m,l=o-p,u=e.pow(t,a),h=e.pow(t,(a+p)/m),d=(t,r)=>{let n=u,o=e.pow(r,l),a=e.sqr(o);a=e.mul(a,r);let d=e.mul(t,a);d=e.pow(d,c),d=e.mul(d,o),o=e.mul(d,r),a=e.mul(d,t);let f=e.mul(a,o);
1d=e.pow(f,s);let y=e.eql(d,e.ONE);o=e.mul(a,h),d=e.mul(f,n),a=e.cmov(o,a,y),f=e.cmov(d,f,y);for(let t=i;t>p;t--){let r=t-m;r=m<<r-p;let i=e.pow(f,r),s=e.eql(i,e.ONE);o=e.mul(a,n),n=e.mul(n,n),i=e.mul(f,n),a=e.cmov(o,a,s),f=e.cmov(i,f,s)}return{isValid:y,value:a}};if(e.ORDER%b===y){let r=(e.ORDER-y)/b,n=e.sqrt(e.neg(t));d=(t,i)=>{let s=e.sqr(i),o=e.mul(t,i);s=e.mul(s,o);let a=e.pow(s,r);a=e.mul(a,o);let c=e.mul(a,n),l=e.mul(e.sqr(a),i),u=e.eql(l,t),h=e.cmov(c,a,u);return{isValid:u,value:h}}}return d}function A(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function M(e,t={}){let{Fn:r}=e,n=t.randomBytes||s.randomBytes,i=Object.assign(A(e.Fp,r),{seed:(0,a.getMinHashLength)(r.ORDER)});function o(e){try{return!!g(r,e)}catch(e){return!1}}function c(e=n(i.seed)){return(0,a.mapHashToField)((0,s._abytes2)(e,i.seed,"seed"),r.ORDER)}function l(t,n=!0){return e.BASE.multiply(g(r,t)).toBytes(n)}function u(t){if("bigint"==typeof t)return!1;if(t instanceof e)return!0;let{secretKey:n,publicKey:o,publicKeyUncompressed:a}=i;if(r.allowedLengths||n===o)return;let c=(0,s.ensureBytes)("key",t).length;return c===o||c===a}return Object.freeze({getPublicKey:l,getSharedSecret:function(t,n,i=!0){if(!0===u(t))throw Error("first arg must be private key");if(!1===u(n))throw Error("second arg must be public key");let s=g(r,t);return e.fromHex(n).multiply(s).toBytes(i)},keygen:function(e){let t=c(e);return{secretKey:t,publicKey:l(t)}},Point:e,utils:{isValidSecretKey:o,isValidPublicKey:function(t,r){let{publicKey:n,publicKeyUncompressed:s}=i;try{let i=t.length;if(!0===r&&i!==n||!1===r&&i!==s)return!1;return!!e.fromBytes(t)}catch(e){return!1}},randomSecretKey:c,isValidPrivateKey:o,randomPrivateKey:c,normPrivateKeyToScalar:e=>g(r,e),precompute:(t=8,r=e.BASE)=>r.precompute(t,!1)},lengths:i})}function x(e,r,o={}){(0,i.ahash)(r),(0,s._validateObject)(o,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});let a=o.randomBytes||s.randomBytes,c=o.hmac||((e,...t)=>(0,n.hmac)(r,e,(0,s.concatBytes)(...t))),{Fp:l,Fn:d}=e,{ORDER:y,BITS:b}=d,{keygen:w,getPublicKey:_,getSharedSecret:A,utils:x,lengths:E}=M(e,o),S={prehash:!1,lowS:"boolean"==typeof o.lowS&&o.lowS,format:void 0,extraEntropy:!1},k="compact";function C(e,t){if(!d.isValidNot0(t))throw Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return t}class P{constructor(e,t,r){this.r=C("r",e),this.s=C("s",t),null!=r&&(this.recovery=r),Object.freeze(this)}static fromBytes(e,r=k){let n;if(function(e,t){u(t);let r=E.signature;(0,s._abytes2)(e,"compact"===t?r:"recovered"===t?r+1:void 0,`${t} signature`)}(e,r),"der"===r){let{r,s:n}=t.DER.toSig((0,s._abytes2)(e));return new P(r,n)}"recovered"===r&&(n=e[0],r="compact",e=e.subarray(1));let i=d.BYTES,o=e.subarray(0,i),a=e.subarray(i,2*i);return new P(d.fromBytes(o),d.fromBytes(a),n)}static fromHex(e,t){return this.fromBytes((0,s.hexToBytes)(e),t)}addRecoveryBit(e){return new P(this.r,this.s,e)}recoverPublicKey(t){let r=l.ORDER,{r:n,s:i,recovery:o}=this;if(null==o||![0,1,2,3].includes(o))throw Error("recovery id invalid");if(y*m<r&&o>1)throw Error("recovery id is ambiguous for h>1 curve");let a=2===o||3===o?n+y:n;if(!l.isValid(a))throw Error("recovery id 2 or 3 invalid");let c=l.toBytes(a),u=e.fromBytes((0,s.concatBytes)(v((1&o)==0),c)),h=d.inv(a),f=U((0,s.ensureBytes)("msgHash",t)),p=d.create(-f*h),b=d.create(i*h),g=e.BASE.multiplyUnsafe(p).add(u.multiplyUnsafe(b));if(g.is0())throw Error("point at infinify");return g.assertValidity(),g}hasHighS(){return this.s>y>>p}toBytes(e=k){if(u(e),"der"===e)return(0,s.hexToBytes)(t.DER.hexFromSig(this));let r=d.toBytes(this.r),n=d.toBytes(this.s);if("recovered"===e){if(null==this.recovery)throw Error("recovery bit must be present");return(0,s.concatBytes)(Uint8Array.of(this.recovery),r,n)}return(0,s.concatBytes)(r,n)}toHex(e){return(0,s.bytesToHex)(this.toBytes(e))}assertValidity(){}static fromCompact(e){return P.fromBytes((0,s.ensureBytes)("sig",e),"compact")}static fromDER(e){return P.fromBytes((0,s.ensureBytes)("sig",e),"der")}normalizeS(){return this.hasHighS()?new P(this.r,d.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,s.bytesToHex)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,s.bytesToHex)(this.toBytes("compact"))}}let T=o.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=(0,s.bytesToNumberBE)(e),r=8*e.length-b;return r>0?t>>BigInt(r):t},U=o.bits2int_modN||function(e){return d.create(T(e))},B=(0,s.bitMask)(b);function I(e){return(0,s.aInRange)("num < 2^"+b,e,f,B),d.toBytes(e)}function O(e,t){return(0,s._abytes2)(e,void 0,"message"),t?(0,s._abytes2)(r(e),void 0,"prehashed message"):e}return Object.freeze({keygen:w,getPublicKey:_,getSharedSecret:A,utils:x,lengths:E,Point:e,sign:function(t,n,i={}){let{seed:o,k2sig:l}=function(t,r,n){if(["recovered","canonical"].some(e=>e in n))throw Error("sign() legacy options not supported");let{lowS:i,prehash:o,extraEntropy:c}=h(n,S),l=U(t=O(t,o)),u=g(d,r),m=[I(u),I(l)];if(null!=c&&!1!==c){let e=!0===c?a(E.secretKey):c;m.push((0,s.ensureBytes)("extraEntropy",e))}return{seed:(0,s.concatBytes)(...m),k2sig:function(t){let r=T(t);if(!d.isValidNot0(r))return;let n=d.inv(r),s=e.BASE.multiply(r).toAffine(),o=d.create(s.x);if(o===f)return;let a=d.create(n*d.create(l+o*u));if(a===f)return;let c=(s.x===o?0:2)|Number(s.y&p),h=a;return i&&a>y>>p&&(h=d.neg(a),c^=1),new P(o,h,c)}}}(t=(0,s.ensureBytes)("message",t),n,i);return(0,s.createHmacDrbg)(r.outputLen,d.BYTES,c)(o,l)},verify:function(r,n,i,o={}){let{lowS:a,prehash:c,format:l}=h(o,S);if(i=(0,s.ensureBytes)("publicKey",i),n=O((0,s.ensureBytes)("message",n),c),"strict"in o)throw Error("options.strict was renamed to lowS");let u=void 0===l?function(e){let r;let n="string"==typeof e||(0,s.isBytes)(e),i=!n&&null!==e&&"object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!n&&!i)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(i)r=new P(e.r,e.s);else if(n){try{r=P.fromBytes((0,s.ensureBytes)("sig",e),"der")}catch(e){if(!(e instanceof t.DER.Err))throw e}if(!r)try{r=P.fromBytes((0,s.ensureBytes)("sig",e),"compact")}catch(e){return!1}}return!!r&&r}(r):P.fromBytes((0,s.ensureBytes)("sig",r),l);if(!1===u)return!1;try{let t=e.fromBytes(i);if(a&&u.hasHighS())return!1;let{r,s}=u,o=U(n),c=d.inv(s),l=d.create(o*c),h=d.create(r*c),f=e.BASE.multiplyUnsafe(l).add(t.multiplyUnsafe(h));if(f.is0())return!1;return d.create(f.x)===r}catch(e){return!1}},recoverPublicKey:function(e,t,r={}){let{prehash:n}=h(r,S);return t=O(t,n),P.fromBytes(e,"recovered").recoverPublicKey(t).toBytes()},Signature:P,hash:r})}function E(e){let t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp,n=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0,i={Fp:r,Fn:(0,a.Field)(t.n,{BITS:e.nBitLength,allowedLengths:n,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:i}}function S(e,t,r){return function(n){let i=e.sqr(n),s=e.mul(i,n);return e.add(e.add(s,e.mul(n,t)),r)}}},30748:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.hash_to_ristretto255=t.hashToRistretto255=t.encodeToCurve=t.hashToCurve=t.RistrettoPoint=t.edwardsToMontgomery=t.ED25519_TORSION_SUBGROUP=t.ristretto255_hasher=t.ristretto255=t.ed25519_hasher=t.x25519=t.ed25519ph=t.ed25519ctx=t.ed25519=void 0,t.edwardsToMontgomeryPub=D,t.edwardsToMontgomeryPriv=function(e){return t.ed25519.utils.toMontgomerySecret((0,u.ensureBytes)("pub",e))};let n=r(80317),i=r(36286),s=r(52530),o=r(48866),a=r(65380),c=r(86001),l=r(94161),u=r(8713),h=BigInt(0),d=BigInt(1),f=BigInt(2),p=BigInt(3),m=BigInt(5),y=BigInt(8),b=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),g={p:b,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:y,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function w(e){let t=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),s=e*e%b*e%b,o=(0,c.pow2)(s,f,b)*s%b,a=(0,c.pow2)(o,d,b)*e%b,l=(0,c.pow2)(a,m,b)*a%b,u=(0,c.pow2)(l,t,b)*l%b,h=(0,c.pow2)(u,r,b)*u%b,p=(0,c.pow2)(h,n,b)*h%b,y=(0,c.pow2)(p,i,b)*p%b,g=(0,c.pow2)(y,i,b)*p%b,w=(0,c.pow2)(g,t,b)*l%b;return{pow_p_5_8:(0,c.pow2)(w,f,b)*e%b,b2:s}}function v(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}let _=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function A(e,t){let r=(0,c.mod)(t*t*t,b),n=w(e*(0,c.mod)(r*r*t,b)).pow_p_5_8,i=(0,c.mod)(e*r*n,b),s=(0,c.mod)(t*i*i,b),o=i,a=(0,c.mod)(i*_,b),l=s===e,u=s===(0,c.mod)(-e,b),h=s===(0,c.mod)(-e*_,b);return l&&(i=o),(u||h)&&(i=a),(0,c.isNegativeLE)(i,b)&&(i=(0,c.mod)(-i,b)),{isValid:l||u,value:i}}let M=(0,c.Field)(g.p,{isLE:!0}),x=(0,c.Field)(g.n,{isLE:!0}),E={...g,Fp:M,hash:n.sha512,adjustScalarBytes:v,uvRatio:A};function S(e,t,r){if(t.length>255)throw Error("Context is too big");return(0,i.concatBytes)((0,i.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([r?1:0,t.length]),t,e)}t.ed25519=(0,o.twistedEdwards)(E),t.ed25519ctx=(0,o.twistedEdwards)({...E,domain:S}),t.ed25519ph=(0,o.twistedEdwards)(Object.assign({},E,{domain:S,prehash:n.sha512})),t.x25519=(()=>{let e=M.ORDER;return(0,l.montgomery)({P:e,type:"x25519",powPminus2:t=>{let{pow_p_5_8:r,b2:n}=w(t);return(0,c.mod)((0,c.pow2)(r,p,e)*n,e)},adjustScalarBytes:v})})();let k=(b+p)/y,C=M.pow(f,k),P=M.sqrt(M.neg(M.ONE)),T=(0,c.FpSqrtEven)(M,M.neg(BigInt(486664)));t.ed25519_hasher=(0,a.createHasher)(t.ed25519.Point,e=>(function(e){let{xMn:t,xMd:r,yMn:n,yMd:i}=function(e){let t=(b-m)/y,r=BigInt(486662),n=M.sqr(e);n=M.mul(n,f);let i=M.add(n,M.ONE),s=M.neg(r),o=M.sqr(i),a=M.mul(o,i),c=M.mul(n,r);c=M.mul(c,s),c=M.add(c,o),c=M.mul(c,s);let l=M.sqr(a);o=M.sqr(l),l=M.mul(l,a),l=M.mul(l,c),o=M.mul(o,l);let u=M.pow(o,t);u=M.mul(u,l);let h=M.mul(u,P);o=M.sqr(u),o=M.mul(o,a);let p=M.eql(o,c),g=M.cmov(h,u,p),w=M.mul(s,n),v=M.mul(u,e);v=M.mul(v,C);let _=M.mul(v,P),A=M.mul(c,n);o=M.sqr(v),o=M.mul(o,a);let x=M.eql(o,A),E=M.cmov(_,v,x);o=M.sqr(g),o=M.mul(o,a);let S=M.eql(o,c),k=M.cmov(w,s,S),T=M.cmov(E,g,S),U=M.isOdd(T);return{xMn:k,xMd:i,yMn:T=M.cmov(T,M.neg(T),S!==U),yMd:d}}(e),s=M.mul(t,i);s=M.mul(s,T);let o=M.mul(r,n),a=M.sub(t,r),l=M.add(t,r),u=M.mul(o,l),h=M.eql(u,M.ZERO);s=M.cmov(s,M.ZERO,h),o=M.cmov(o,M.ONE,h),a=M.cmov(a,M.ONE,h),l=M.cmov(l,M.ONE,h);let[p,g]=(0,c.FpInvertBatch)(M,[o,l],!0);return{x:M.mul(s,p),y:M.mul(a,g)}})(e[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:b,m:1,k:128,expand:"xmd",hash:n.sha512});let U=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),B=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),I=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),O=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),R=e=>A(d,e),N=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),F=e=>t.ed25519.Point.Fp.create((0,u.bytesToNumberLE)(e)&N);function L(e){let{d:r}=g,n=e=>M.create(e),i=n(_*e*e),s=n((i+d)*I),o=BigInt(-1),a=n((o-r*i)*n(i+r)),{isValid:l,value:u}=A(s,a),h=n(u*e);(0,c.isNegativeLE)(h,b)||(h=n(-h)),l||(u=h),l||(o=i);let f=n(o*(i-d)*O-a),p=u*u,m=n((u+u)*a),y=n(f*U),w=n(d-p),v=n(d+p);return new t.ed25519.Point(n(m*v),n(w*y),n(y*v),n(m*w))}function $(e){(0,i.abytes)(e,64);let t=L(F(e.subarray(0,32))),r=L(F(e.subarray(32,64)));return new j(t.add(r))}
1class j extends o.PrimeEdwardsPoint{constructor(e){super(e)}static fromAffine(e){return new j(t.ed25519.Point.fromAffine(e))}assertSame(e){if(!(e instanceof j))throw Error("RistrettoPoint expected")}init(e){return new j(e)}static hashToCurve(e){return $((0,u.ensureBytes)("ristrettoHash",e,64))}static fromBytes(e){(0,i.abytes)(e,32);let{a:r,d:n}=g,s=e=>M.create(e),o=F(e);if(!(0,u.equalBytes)(M.toBytes(o),e)||(0,c.isNegativeLE)(o,b))throw Error("invalid ristretto255 encoding 1");let a=s(o*o),l=s(d+r*a),f=s(d-r*a),p=s(l*l),m=s(f*f),y=s(r*n*p-m),{isValid:w,value:v}=R(s(y*m)),_=s(v*f),A=s(v*_*y),x=s((o+o)*_);(0,c.isNegativeLE)(x,b)&&(x=s(-x));let E=s(l*A),S=s(x*E);if(!w||(0,c.isNegativeLE)(S,b)||E===h)throw Error("invalid ristretto255 encoding 2");return new j(new t.ed25519.Point(x,E,d,S))}static fromHex(e){return j.fromBytes((0,u.ensureBytes)("ristrettoHex",e,32))}static msm(e,r){return(0,s.pippenger)(j,t.ed25519.Point.Fn,e,r)}toBytes(){let e,{X:t,Y:r,Z:n,T:i}=this.ep,s=e=>M.create(e),o=s(s(n+r)*s(n-r)),a=s(t*r),l=s(a*a),{value:u}=R(s(o*l)),h=s(u*o),d=s(u*a),f=s(h*d*i);if((0,c.isNegativeLE)(i*f,b)){let n=s(r*_),i=s(t*_);t=n,r=i,e=s(h*B)}else e=d;(0,c.isNegativeLE)(t*f,b)&&(r=s(-r));let p=s((n-r)*e);return(0,c.isNegativeLE)(p,b)&&(p=s(-p)),M.toBytes(p)}equals(e){this.assertSame(e);let{X:t,Y:r}=this.ep,{X:n,Y:i}=e.ep,s=e=>M.create(e),o=s(t*i)===s(r*n),a=s(r*i)===s(t*n);return o||a}is0(){return this.equals(j.ZERO)}}function D(e){return t.ed25519.utils.toMontgomery((0,u.ensureBytes)("pub",e))}j.BASE=new j(t.ed25519.Point.BASE),j.ZERO=new j(t.ed25519.Point.ZERO),j.Fp=M,j.Fn=x,t.ristretto255={Point:j},t.ristretto255_hasher={hashToCurve(e,t){let r=t?.DST||"ristretto255_XMD:SHA-512_R255MAP_RO_";return $((0,a.expand_message_xmd)(e,r,64,n.sha512))},hashToScalar(e,t={DST:a._DST_scalar}){let r=(0,a.expand_message_xmd)(e,t.DST,64,n.sha512);return x.create((0,u.bytesToNumberLE)(r))}},t.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],t.edwardsToMontgomery=D,t.RistrettoPoint=j,t.hashToCurve=t.ed25519_hasher.hashToCurve,t.encodeToCurve=t.ed25519_hasher.encodeToCurve,t.hashToRistretto255=t.ristretto255_hasher.hashToCurve,t.hash_to_ristretto255=t.ristretto255_hasher.hashToCurve},55843:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256k1_hasher=t.schnorr=t.secp256k1=void 0;let n=r(80317),i=r(36286),s=r(53080),o=r(65380),a=r(86001),c=r(43643),l=r(8713),u={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},h={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},d=BigInt(0),f=BigInt(1),p=BigInt(2),m=(0,a.Field)(u.p,{sqrt:function(e){let t=u.p,r=BigInt(3),n=BigInt(6),i=BigInt(11),s=BigInt(22),o=BigInt(23),c=BigInt(44),l=BigInt(88),h=e*e*e%t,d=h*h*e%t,f=(0,a.pow2)(d,r,t)*d%t,y=(0,a.pow2)(f,r,t)*d%t,b=(0,a.pow2)(y,p,t)*h%t,g=(0,a.pow2)(b,i,t)*b%t,w=(0,a.pow2)(g,s,t)*g%t,v=(0,a.pow2)(w,c,t)*w%t,_=(0,a.pow2)(v,l,t)*v%t,A=(0,a.pow2)(_,c,t)*w%t,M=(0,a.pow2)(A,r,t)*d%t,x=(0,a.pow2)(M,o,t)*g%t,E=(0,a.pow2)(x,n,t)*h%t,S=(0,a.pow2)(E,p,t);if(!m.eql(m.sqr(S),e))throw Error("Cannot find square root");return S}});t.secp256k1=(0,s.createCurve)({...u,Fp:m,lowS:!0,endo:h},n.sha256);let y={};function b(e,...t){let r=y[e];if(void 0===r){let t=(0,n.sha256)((0,l.utf8ToBytes)(e));r=(0,l.concatBytes)(t,t),y[e]=r}return(0,n.sha256)((0,l.concatBytes)(r,...t))}let g=e=>e.toBytes(!0).slice(1),w=t.secp256k1.Point,v=e=>e%p===d;function _(e){let{Fn:t,BASE:r}=w,n=(0,c._normFnElement)(t,e),i=r.multiply(n);return{scalar:v(i.y)?n:t.neg(n),bytes:g(i)}}function A(e){if(!m.isValidNot0(e))throw Error("invalid x: Fail if x ≥ p");let t=m.create(e*e),r=m.create(t*e+BigInt(7)),n=m.sqrt(r);v(n)||(n=m.neg(n));let i=w.fromAffine({x:e,y:n});return i.assertValidity(),i}let M=l.bytesToNumberBE;function x(...e){return w.Fn.create(M(b("BIP0340/challenge",...e)))}function E(e){return _(e).bytes}function S(e,t,r=(0,i.randomBytes)(32)){let{Fn:n}=w,s=(0,l.ensureBytes)("message",e),{bytes:o,scalar:a}=_(t),c=(0,l.ensureBytes)("auxRand",r,32),u=n.toBytes(a^M(b("BIP0340/aux",c))),{bytes:h,scalar:d}=_(b("BIP0340/nonce",u,o,s)),f=x(h,o,s),p=new Uint8Array(64);if(p.set(h,0),p.set(n.toBytes(n.create(d+f*a)),32),!k(p,s,o))throw Error("sign: Invalid signature produced");return p}function k(e,t,r){let{Fn:n,BASE:i}=w,s=(0,l.ensureBytes)("signature",e,64),o=(0,l.ensureBytes)("message",t),a=(0,l.ensureBytes)("publicKey",r,32);try{let e=A(M(a)),t=M(s.subarray(0,32));if(!(0,l.inRange)(t,f,u.p))return!1;let r=M(s.subarray(32,64));if(!(0,l.inRange)(r,f,u.n))return!1;let c=x(n.toBytes(t),g(e),o),h=i.multiplyUnsafe(r).add(e.multiplyUnsafe(n.neg(c))),{x:d,y:p}=h.toAffine();if(h.is0()||!v(p)||d!==t)return!1;return!0}catch(e){return!1}}t.schnorr=(()=>{let e=48,r=(t=(0,i.randomBytes)(e))=>(0,a.mapHashToField)(t,u.n);return t.secp256k1.utils.randomSecretKey,{keygen:function(e){let t=r(e);return{secretKey:t,publicKey:E(t)}},getPublicKey:E,sign:S,verify:k,Point:w,utils:{randomSecretKey:r,randomPrivateKey:r,taggedHash:b,lift_x:A,pointToBytes:g,
1numberToBytesBE:l.numberToBytesBE,bytesToNumberBE:l.bytesToNumberBE,mod:a.mod},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:e}}})();let C=(0,o.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))),P=(0,c.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))});t.secp256k1_hasher=(0,o.createHasher)(t.secp256k1.Point,e=>{let{x:t,y:r}=P(m.create(e[0]));return C(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}),t.hashToCurve=t.secp256k1_hasher.hashToCurve,t.encodeToCurve=t.secp256k1_hasher.encodeToCurve},8713:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=t.utf8ToBytes=t.randomBytes=t.isBytes=t.hexToBytes=t.concatBytes=t.bytesToUtf8=t.bytesToHex=t.anumber=t.abytes=void 0,t.abool=function(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)},t._abool2=function(e,t=""){if("boolean"!=typeof e)throw Error((t&&`"${t}"`)+"expected boolean, got type="+typeof e);return e},t._abytes2=function(e,t,r=""){let i=(0,n.isBytes)(e),s=e?.length,o=void 0!==t;if(!i||o&&s!==t)throw Error((r&&`"${r}" `)+"expected Uint8Array"+(o?` of length ${t}`:"")+", got "+(i?`length=${s}`:`type=${typeof e}`));return e},t.numberToHexUnpadded=a,t.hexToNumber=c,t.bytesToNumberBE=function(e){return c((0,n.bytesToHex)(e))},t.bytesToNumberLE=function(e){return(0,n.abytes)(e),c((0,n.bytesToHex)(Uint8Array.from(e).reverse()))},t.numberToBytesBE=l,t.numberToBytesLE=function(e,t){return l(e,t).reverse()},t.numberToVarBytesBE=function(e){return(0,n.hexToBytes)(a(e))},t.ensureBytes=function(e,t,r){let i;if("string"==typeof t)try{i=(0,n.hexToBytes)(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if((0,n.isBytes)(t))i=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let s=i.length;if("number"==typeof r&&s!==r)throw Error(e+" of length "+r+" expected, got "+s);return i},t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},t.copyBytes=function(e){return Uint8Array.from(e)},t.asciiToBytes=function(e){return Uint8Array.from(e,(t,r)=>{let n=t.charCodeAt(0);if(1!==t.length||n>127)throw Error(`string contains non-ASCII character "${e[r]}" with code ${n} at position ${r}`);return n})},t.inRange=h,t.aInRange=function(e,t,r,n){if(!h(t,r,n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>s;e>>=o,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&o},t.bitSet=function(e,t,r){return e|(r?o:s)<<BigInt(t)},t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let i=e=>new Uint8Array(e),s=e=>Uint8Array.of(e),o=i(e),a=i(e),c=0,l=()=>{o.fill(1),a.fill(0),c=0},u=(...e)=>
1r(a,o,...e),h=(e=i(0))=>{a=u(s(0),e),o=u(),0!==e.length&&(a=u(s(1),e),o=u())},d=()=>{if(c++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(o=u()).slice();r.push(t),e+=o.length}return(0,n.concatBytes)(...r)};return(e,t)=>{let r;for(l(),h(e);!(r=t(d()));)h();return l(),r}},t.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let i=d[r];if("function"!=typeof i)throw Error("invalid validator function");let s=e[t];if((!n||void 0!==s)&&!i(s,e))throw Error("param "+String(t)+" is invalid. Expected "+r+", got "+s)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e},t.isHash=function(e){return"function"==typeof e&&Number.isSafeInteger(e.outputLen)},t._validateObject=function(e,t,r={}){if(!e||"object"!=typeof e)throw Error("expected valid options object");function n(t,r,n){let i=e[t];if(n&&void 0===i)return;let s=typeof i;if(s!==r||null===i)throw Error(`param "${t}" is invalid: expected ${r}, got ${s}`)}Object.entries(t).forEach(([e,t])=>n(e,t,!1)),Object.entries(r).forEach(([e,t])=>n(e,t,!0))},t.memoized=function(e){let t=new WeakMap;return(r,...n)=>{let i=t.get(r);if(void 0!==i)return i;let s=e(r,...n);return t.set(r,s),s}};let n=r(36286);var i=r(36286);Object.defineProperty(t,"abytes",{enumerable:!0,get:function(){return i.abytes}}),Object.defineProperty(t,"anumber",{enumerable:!0,get:function(){return i.anumber}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return i.bytesToHex}}),Object.defineProperty(t,"bytesToUtf8",{enumerable:!0,get:function(){return i.bytesToUtf8}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return i.concatBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return i.hexToBytes}}),Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return i.isBytes}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return i.randomBytes}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return i.utf8ToBytes}});let s=BigInt(0),o=BigInt(1);function a(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function c(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?s:BigInt("0x"+e)}function l(e,t){return(0,n.hexToBytes)(e.toString(16).padStart(2*t,"0"))}let u=e=>"bigint"==typeof e&&s<=e;function h(e,t,r){return u(e)&&u(t)&&u(r)&&t<=e&&e<r}t.bitMask=e=>(o<<BigInt(e))-o;let d={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||(0,n.isBytes)(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.notImplemented=()=>{throw Error("not implemented")}},59364:function(e,t,r){var n=r(36243).lW,i=r(5929).keccak_256,s=r(61664);function o(e){return e?s.toUnicode(e,{useStd3ASCII:!0,transitional:!1}):e}t.hash=function(e){for(var t="",r=0;r<32;r++)t+="00";if(name=o(e))for(var s=name.split("."),r=s.length-1;r>=0;r--){var a=i(s[r]);t=i(new n(t+a,"hex"))}return"0x"+t},t.normalize=o},12542:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,n,s,o){if("function"!=typeof n)throw TypeError("The listener must be a function");var a=new i(n,s||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,s=n.length,o=Array(s);i<s;i++)o[i]=n[i].fn;return o},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,i,s,o){var a=r?r+e:e;if(!this._events[a])return!1;var c,l,u=this._events[a],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,s),!0;case 6:return u.fn.call(u.context,t,n,i,s,o),!0}for(l=1,c=Array(h-1);l<h;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),h){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,i);break;default:if(!c)for(d=1,c=Array(h-1);d<h;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},a.prototype.on=function(e,t,r){return s(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return s(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,i){var s=r?r+e:e;if(!this._events[s])return this;if(!t)return o(this,s),this;var a=this._events[s];if(a.fn)a.fn!==t||i&&!a.once||n&&a.context!==n||o(this,s);else{for(var c=0,l=[],u=a.length;c<u;c++)(a[c].fn!==t||i&&!a[c].once||n&&a[c].context!==n)&&l.push(a[c]);l.length?this._events[s]=1===l.length?l[0]:l:o(this,s)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a},59605:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;
1if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(s=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;0!=i--;){var n,i,s,o=s[i];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},60496:function(e){e.exports=o,o.default=o,o.stable=l,o.stableStringify=l;var t="[...]",r="[Circular]",n=[],i=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,o,c,l){void 0===l&&(l=s()),function e(n,i,s,o,c,l,u){if(l+=1,"object"==typeof n&&null!==n){for(h=0;h<o.length;h++)if(o[h]===n){a(r,n,i,c);return}if(void 0!==u.depthLimit&&l>u.depthLimit||void 0!==u.edgesLimit&&s+1>u.edgesLimit){a(t,n,i,c);return}if(o.push(n),Array.isArray(n))for(h=0;h<n.length;h++)e(n[h],h,h,o,n,l,u);else{var h,d=Object.keys(n);for(h=0;h<d.length;h++){var f=d[h];e(n[f],f,h,o,n,l,u)}}o.pop()}}(e,"",0,[],void 0,0,l);try{h=0===i.length?JSON.stringify(e,o,c):JSON.stringify(e,u(o),c)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var h,d=n.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return h}function a(e,t,r,s){var o=Object.getOwnPropertyDescriptor(s,r);void 0!==o.get?o.configurable?(Object.defineProperty(s,r,{value:e}),n.push([s,r,t,o])):i.push([t,r,e]):(s[r]=e,n.push([s,r,t]))}function c(e,t){return e<t?-1:e>t?1:0}function l(e,o,l,h){void 0===h&&(h=s());var d,f=function e(i,s,o,l,u,h,d){if(h+=1,"object"==typeof i&&null!==i){for(f=0;f<l.length;f++)if(l[f]===i){a(r,i,s,u);return}try{if("function"==typeof i.toJSON)return}catch(e){return}if(void 0!==d.depthLimit&&h>d.depthLimit||void 0!==d.edgesLimit&&o+1>d.edgesLimit){a(t,i,s,u);return}if(l.push(i),Array.isArray(i))for(f=0;f<i.length;f++)e(i[f],f,f,l,i,h,d);else{var f,p={},m=Object.keys(i).sort(c);for(f=0;f<m.length;f++){var y=m[f];e(i[y],y,f,l,i,h,d),p[y]=i[y]}if(void 0===u)return p;n.push([u,s,i]),u[s]=p}l.pop()}}(e,"",0,[],void 0,0,h)||e;try{d=0===i.length?JSON.stringify(f,o,l):JSON.stringify(f,u(o),l)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var p=n.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return d}function u(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(i.length>0)for(var n=0;n<i.length;n++){var s=i[n];if(s[1]===t&&s[0]===r){r=s[2],i.splice(n,1);break}}return e.call(this,t,r)}}},47357:function(e,t){var r,n;n=function(){var e=[new Uint32Array([2157250,2157314,2157378,2157442,2157506,2157570,2157634,0,2157698,2157762,2157826,2157890,2157954,0,2158018,0]),new Uint32Array([2179041,6291456,2179073,6291456,2179105,6291456,2179137,6291456,2179169,6291456,2179201,6291456,2179233,6291456,2179265,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,2113729,2197345,2197377,2113825,2197409,2197441,2113921,2197473,2114017,2197505,2197537,2197569,2197601,2197633,2197665]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672,23068672,0,0,0,0,23068672]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064]),new Uint32Array([2196001,2196033,2196065,2196097,2196129,2196161,2196193,2196225,2196257,2196289,2196321,2196353,2196385,2196417,2196449,2196481]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2177025,6291456,2177057,6291456,2177089,6291456,2177121,6291456,2177153,6291456,2177185,6291456,2177217,6291456,2177249,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2134435,2134531,2134627,2134723,2134723,2134819,2134819,2134915,2134915,2135011,2105987,2135107,2135203,2135299,2131587,2135395
1]),new Uint32Array([0,0,0,0,0,0,0,6291456,2168673,2169249,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354,2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354]),new Uint32Array([2125219,2125315,2152834,2152898,2125411,2152962,2153026,2125506,2125507,2125603,2153090,2153154,2153218,2153282,2153346,2105348]),new Uint32Array([2203393,6291456,2203425,6291456,2203457,6291456,2203489,6291456,6291456,6291456,6291456,2203521,6291456,2181281,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,6291456,2145538,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,6291456]),new Uint32Array([2139426,2160834,2160898,2160962,2134242,2161026,2161090,2161154,2161218,2161282,2161346,2161410,2138658,2161474,2161538,2134722]),new Uint32Array([2119939,2124930,2125026,2106658,2125218,2128962,2129058,2129154,2129250,2129346,2129442,2108866,2108770,2150466,2150530,2150594]),new Uint32Array([2201601,6291456,2201633,6291456,2201665,6291456,2201697,6291456,2201729,6291456,2201761,6291456,2201793,6291456,2201825,6291456]),new Uint32Array([2193537,2193569,2193601,2193633,2193665,2193697,2193729,2193761,2193793,2193825,2193857,2193889,2193921,2193953,2193985,2194017]),new Uint32Array([6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2190561,6291456,2190593,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2190625,6291456,2190657,6291456,23068672]),new Uint32Array([2215905,2215937,2215969,2216001,2216033,2216065,2216097,2216129,2216161,2216193,2216225,2216257,2105441,2216289,2216321,2216353]),new Uint32Array([23068672,18884130,23068672,23068672,23068672,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2191233,2191265,2191297,2191329,2191361,2191393,2191425,2117377,2191457,2191489,2191521,2191553,2191585,2191617,2191649,2117953]),new Uint32Array([2132227,2132323,2132419,2132419,2132515,2132515,2132611,2132707,2132707,2132803,2132899,2132899,2132995,2132995,2133091,2133187]),new Uint32Array([0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10609889,10610785,10609921,10610817,2222241]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([2219969,2157121,2157441,2157505,2157889,2157953,2220001,2158465,2158529,10575617,2156994,2157058,2129923,2130019,2157122,2157186]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2185249,6291456,2185281,6291456,2185313,6291456,2185345,6291456,2185377,6291456,2185409,6291456,2185441,6291456,2185473,6291456]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,6291456,0]),new Uint32Array([2183361,6291456,2183393,6291456,2183425,6291456,2183457,6291456,2183489,6291456,2183521,6291456,2183553,6291456,2183585,6291456]),new Uint32Array([2192161,2192193,2192225,2192257,2192289,2192321,2192353,2192385,2192417,2192449,2192481,2192513,2192545,2192577,2192609,2192641]),new Uint32Array([2212001,2212033,2212065,2212097,2212129,2212161,2212193,2212225,2212257,2212289,2212321,2212353,2212385,2212417,2212449,2207265]),new Uint32Array([2249825,2249857,2249889,2249921,2249954,2250018,2250082,2250145,2250177,2250209,2250241,2250274,2250337,2250370,2250433,2250465]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147905,2147969,2148033,2148097,2148161,2148225,2148289,2148353]),new Uint32Array([10485857,6291456,2197217,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2180353,2180385,2144033,2180417,2180449,2180481,2180513,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10610209,10610465,10610241,10610753,10609857]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2223842,2223906,2223970,2224034,2224098,2224162,2224226,2224290,2224354,2224418,2224482,2224546,2224610,2224674,2224738,2224802]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,18923650,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,18923714,23068672,23068672]),new Uint32Array([2126179,2125538,2126275,2126371,2126467,2125634,2126563,2105603,2105604,2125346,2126659,2126755,2126851,2098179,2098181,2098182]),new Uint32Array([2227426,2227490,2227554,2227618,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2192353,2240642,2240642,2240705,2240737,2240737,2240769,2240802,2240866,2240929,2240961,2240993,2241025,2241057,2241089,2241121]),new Uint32Array([6291456,2170881,2170913,2170945,6291456,2170977,6291456,2171009,2171041,6291456,6291456,6291456,2171073,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2132226,2132514,2163586,2132610,2160386,2133090,2133186,2160450,2160514,2160
1578,2133570,2106178,2160642,2133858,2160706,2160770]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10532162,10532226,10532290,10532354,10532418,10532482,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2098209,2108353,2108193,2108481,2170241,2111713,2105473,2105569,2105601,2112289,2112481,2098305,2108321,0,0,0]),new Uint32Array([2209121,2209153,2209185,2209217,2209249,2209281,2209313,2209345,2209377,2209409,2209441,2209473,2207265,2209505,2209537,2209569]),new Uint32Array([2189025,6291456,2189057,6291456,2189089,6291456,2189121,6291456,2189153,6291456,2189185,6291456,2189217,6291456,2189249,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2165764,2140004]),new Uint32Array([2215105,6291456,2215137,6291456,6291456,2215169,2215201,6291456,6291456,6291456,2215233,2215265,2215297,2215329,2215361,2215393]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([10505091,10505187,10505283,10505379,10505475,10505571,10505667,10505763,10505859,10505955,10506051,10506147,10506243,10506339,10506435,10506531]),new Uint32Array([2229730,2229794,2229858,2229922,2229986,2230050,2230114,2230178,2230242,2230306,2230370,2230434,2230498,2230562,2230626,2230690]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,0,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([6291456,6291456,6291456,6291456,10502115,10502178,10502211,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2190305,6291456,2190337,6291456,2190369,6291456,2190401,6291456,2190433,6291456,2190465,6291456,2190497,6291456,2190529,6291456]),new Uint32Array([2173793,2173985,2174017,6291456,2173761,2173697,6291456,2174689,6291456,2174017,2174721,6291456,6291456,2174753,2174785,2174817]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609,2100033]),new Uint32Array([2132898,2163842,2163906,2133282,2132034,2131938,2137410,2132802,2132706,2164866,2133282,2160578,2165186,2165186,6291456,6291456]),new Uint32Array([10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059,10501155,10501251,10501347,10501443]),new Uint32Array([2163458,2130978,2131074,2131266,2131362,2163522,2160130,2132066,2131010,2131106,2106018,2131618,2131298,2132034,2131938,2137410]),new Uint32Array([2212961,2116993,2212993,2213025,2213057,2213089,2213121,2213153,2213185,2213217,2213249,2209633,2213281,2213313,2213345,2213377]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2113729,2113825,2113921,2114017,2114113,2114209,2114305,2114401,2114497,2114593,2114689,2114785,2114881,2114977,2115073,2115169]),new Uint32Array([2238177,2238209,2238241,2238273,2238305,2238337,2238337,2217537,2238369,2238401,2238433,2238465,2215649,2238497,2238529,2238561]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0]),new Uint32Array([6291456,0,6291456,2145026,0,6291456,2145090,0,6291456,6291456,0,0,23068672,0,23068672,23068672]),new Uint32Array([2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129,2100289]),new Uint32Array([6291456,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0]),new Uint32Array([2187681,2187713,2187745,2187777,2187809,2187841,2187873,2187905,2187937,2187969,2188001,2188033,2188065,2188097,2188129,2188161]),new Uint32Array([0,10554498,10554562,10554626,10554690,10554754,10554818,10554882,10554946,10555010,10555074,6291456,6291456,0,0,0]),new Uint32Array([2235170,2235234,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([2181153,6291456,2188897,6291456,6291456,2188929,6291456,6291456,6291456,6291456,6291456,6291456,2111905,2100865,2188961,2188993]),new Uint32Array([2100833,2100897,0,0,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,
110489697,2112289]),new Uint32Array([6291456,2172833,6291456,2172865,2172897,2172929,2172961,6291456,2172993,6291456,2173025,6291456,2173057,6291456,2173089,6291456]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,2190721]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456]),new Uint32Array([2184993,6291456,2185025,6291456,2185057,6291456,2185089,6291456,2185121,6291456,2185153,6291456,2185185,6291456,2185217,6291456]),new Uint32Array([2115265,2115361,2115457,2115553,2115649,2115745,2115841,2115937,2116033,2116129,2116225,2116321,2150658,2150722,2200225,6291456]),new Uint32Array([2168321,6291456,2168353,6291456,2168385,6291456,2168417,6291456,2168449,6291456,2168481,6291456,2168513,6291456,2168545,6291456]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,0,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2186625,0,0,6291456,6291456,2186657,2186689,2186721,2173505,0,10496067,10496163,10496259]),new Uint32Array([2178785,6291456,2178817,6291456,2178849,6291456,2178881,6291456,2178913,6291456,2178945,6291456,2178977,6291456,2179009,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2097152,0,0,0,2097152,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2197857,2197889,2197921,2197953,2197985,2198017,0,0,2198049,2198081,2198113,2198145,2198177,2198209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2098209,2167297,2111137,6291456]),new Uint32Array([2171393,6291456,2171425,6291456,2171457,6291456,2171489,6291456,2171521,6291456,2171553,6291456,2171585,6291456,2171617,6291456]),new Uint32Array([2206753,2206785,2195457,2206817,2206849,2206881,2206913,2197153,2197153,2206945,2117857,2206977,2207009,2207041,2207073,2207105]),new Uint32Array([0,0,0,0,0,0,0,23068672,0,0,0,0,2144834,2144898,0,2144962]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,0,2105505,2098241]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,2202049,6291456,2202081,6291456,2202113,6291456,2202145,6291456,2202177,6291456,2202209,6291456,2202241,6291456]),new Uint32Array([10501155,10501251,10501347,10501443,10501539,10501635,10501731,10501827,10501923,10502019,2141731,2105505,2098177,2155586,2166530,0]),new Uint32Array([2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441]),new Uint32Array([2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330,2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10502307,10502403,10502499,10502595,10502691,10502787,10502883,10502979,10503075,10503171,10503267,10503363,10503459,10503555,10503651,10503747]),new Uint32Array([2179937,2179969,2180001,2180033,2156545,2180065,2156577,2180097,2180129,2180161,2180193,2180225,2180257,2180289,2156737,2180321]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,0,0,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([2227682,2227746,2227810,2227874,2227938,2228002,2228066,2228130,2228194,2228258,2228322,2228386,2228450,2228514,2228578,2228642]),new Uint32Array([2105601,2169121,2108193,2170049,2181025,2181057,2112481,2108321,2108289,2181089,2170497,2100865,2181121,2173601,2173633,2173665]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180641,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,6291456,0,6291456,0,6291456,0,0,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2178273,6291456,2178305,6291456,2178337,6291456,2178369,6291456,2178401,6291456,2178433,6291456,2178465,6291456,2178497,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2237377,2237409,2236225,2237441,2237473,2217441,2215521,2215553,2217473,2237505,2237537,2209697,2237569,2215585,2237601,2237633]),new Uint32Array([2221985,2165601,2165601,2165665,2165665,2222017,2222017,2165729,2165729,2158913,2158913,2158913,2158913,2097281,2097281,2105921]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2149634,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2176897,
16291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2176929,6291456,2176961,6291456,2176993,6291456]),new Uint32Array([2172641,6291456,2172673,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2172705,2172737,6291456,2172769,2172801,6291456]),new Uint32Array([2099173,2104196,2121667,2099395,2121763,2152258,2152322,2098946,2152386,2121859,2121955,2099333,2122051,2104324,2099493,2122147]),new Uint32Array([6291456,6291456,6291456,2145794,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2145858,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,0,0,6291456,0]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,0,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2239074,2239138,2239201,2239233,2239265,2239297,2239329,2239361,0,2239393,2239425,2239425,2239458,2239521,2239553,2209569]),new Uint32Array([14680064,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,6291456,23068672]),new Uint32Array([2108321,2108289,2113153,2098209,2180897,2180929,2180961,2111137,2098241,2108353,2170241,2170273,2180993,2105825,6291456,2105473]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146114,6291456,6291456,6291456,0,0,0]),new Uint32Array([2105921,2105921,2105921,2222049,2222049,2130977,2130977,2130977,2130977,2160065,2160065,2160065,2160065,2097729,2097729,2097729]),new Uint32Array([2218145,2214785,2207937,2218177,2218209,2192993,2210113,2212769,2218241,2218273,2216129,2218305,2216161,2218337,2218369,2218401]),new Uint32Array([0,0,0,2156546,2156610,2156674,2156738,2156802,0,0,0,0,0,2156866,23068672,2156930]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2213409,2213441,2213473,2213505,2213537,2213569,2213601,2213633,2213665,2195681,2213697,2213729,2213761,2213793,2213825,2213857]),new Uint32Array([2100033,2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2201857,6291456,2201889,6291456,2201921,6291456,2201953,6291456,2201985,6291456,2202017,6291456,2176193,2176257,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2188193,2188225,2188257,2188289,2188321,2188353,2188385,2188417,2188449,2188481,2188513,2188545,2188577,2188609,2188641,0]),new Uint32Array([10554529,2221089,0,10502113,10562017,10537921,10538049,2221121,2221153,0,0,0,0,0,0,0]),new Uint32Array([2213889,2213921,2213953,2213985,2214017,2214049,2214081,2194177,2214113,2214145,2214177,2214209,2214241,2214273,2214305,2214337]),new Uint32Array([2166978,2167042,2099169,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180545,6291456,6291456,6291456]),new Uint32Array([10518915,10519011,10519107,10519203,2162242,2162306,2159554,2162370,2159362,2159618,2105922,2162434,2159746,2162498,2159810,2159874]),new Uint32Array([2161730,2161794,2135586,2161858,2161922,2137186,2131810,2160290,2135170,2161986,2137954,2162050,2162114,2162178,10518723,10518819]),new Uint32Array([10506627,10506723,10506819,10506915,10507011,10507107,10507203,10507299,10507395,10507491,10507587,10507683,10507779,10507875,10507971,10508067]),new Uint32Array([6291456,23068672,23068672,23068672,0,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2175873,2175905,2175937,2175969,2176001,2176033,2176065,2176097,2176129,2176161,2176193,2176225,2176257,2176289,2176321,2176353]),new Uint32Array([2140006,2140198,2140390,2140582,2140774,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241]),new Uint32Array([0,23068672,0,0,0,0,0,0,0,2145154,2145218,2145282,6291456,0,2145346,0]),new Uint32Array([0,0,0,0,10531458,10495395,2148545,2143201,2173473,2148865,2173505,0,2173537,0,2173569,2149121]),new Uint32Array([10537282,10495683,2148738,2148802,2148866,0,6291456,2148930,2186593,2173473,2148737,2148865,2148802,10495779,10495875,10495971]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2215425,2215457,2215489,2215521,2215553,2215585,2215617,2215649,2215681,2215713,2215745,2215777,2192033,2215809,2215841,2215873]),new Uint32Array([2242049,2242081,2242113,2242145,2242177,2242209,2242241,2242273,2215937,2242305,2242338,2242401,2242433,2242465,2242497,2216001]),new Uint32Array([10554529,2221089,0,0,10562017,10502113,10538049,10537921,2221185,10489601,
110489697,10609889,10609921,2141729,2141793,10610273]),new Uint32Array([2141923,2142019,2142115,2142211,2142307,2142403,2142499,2142595,2142691,0,0,0,0,0,0,0]),new Uint32Array([0,2221185,2221217,10609857,10609857,10489601,10489697,10609889,10609921,2141729,2141793,2221345,2221377,2221409,2221441,2187105]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18923970,23068672,23068672,23068672,0,6291456,6291456]),new Uint32Array([2183105,6291456,2183137,6291456,2183169,6291456,2183201,6291456,2183233,6291456,2183265,6291456,2183297,6291456,2183329,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2134434,2134818,2097666,2097186,2097474,2097698,2105986,2131586,2132450,2131874,2131778,2135970,2135778,2161602,2136162,2161666]),new Uint32Array([2236865,2236897,2236930,2236993,2237025,2235681,2237058,2237121,2237153,2237185,2237217,2217281,2237250,2191233,2237313,2237345]),new Uint32Array([2190049,6291456,2190081,6291456,2190113,6291456,2190145,6291456,2190177,6291456,2190209,6291456,2190241,6291456,2190273,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2101922,2102050,2102178,2102306,10498755,10498851,10498947,10499043,10499139,10499235,10499331,10499427,10499523,10489604,10489732,10489860]),new Uint32Array([2166914,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2181601,2170561,2181633,2181665,2170753,2181697,2172897,2170881,2181729,2170913,2172929,2113441,2181761,2181793,2171009,2173761]),new Uint32Array([0,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2248001,2248033,2248066,2248130,2248193,2248226,2248289,2248322,2248385,2248417,2216673,2248450,2248514,2248577,2248610,2248673]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2169729,6291456,2169761,6291456,2169793,6291456,2169825,6291456,2169857,2169889,6291456,2169921,6291456,2143329,6291456,2098305]),new Uint32Array([2162178,2163202,2163266,2135170,2136226,2161986,2137954,2159426,2159490,2163330,2159554,2163394,2159682,2139522,2136450,2159746]),new Uint32Array([2173953,2173985,0,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2174209,2174241,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,4271169,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2174273]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,2190785,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2189793,6291456,2189825,6291456,2189857,6291456,2189889,6291456,2189921,6291456,2189953,6291456,2189985,6291456,2190017,6291456]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,0,2098305,2108321,2108289,2100865,2113153,2108481,2113345,0,2098209,2111137]),new Uint32Array([2172129,6291456,2172161,6291456,2172193,6291456,2172225,6291456,2172257,6291456,2172289,6291456,2172321,6291456,2172353,6291456]),new Uint32Array([2214753,6291456,2214785,6291456,6291456,2214817,2214849,2214881,2214913,2214945,2214977,2215009,2215041,2215073,2194401,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10610305,10610337,10575617,2221761,10610401,10610433,10502177,0,10610465,10610497,10610529,10610561,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2187105,2187137,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2199393,2199425,2199457,2199489,2199521,2199553,2199585,2199617,2199649,2199681,2199713,2199745,2199777,2199809,2199841,0]),new Uint32Array([2217249,2217281,2217313,2217345,2217377,2217409,2217441,2217473,2215617,2217505,2217537,2217569,2214753,2217601,2217633,2217665]),new Uint32Array([2170273,2170305,6291456,2170337,2170369,6291456,2170401,2170433,2170465,6291456,6291456,6291456,2170497,2170529,6291456,2170561]),new Uint32Array([2188673,6291456,2188705,2188737,2188769,6291456,6291456,2188801,6291456,2188833,6291456,2188865,6291456,2180929,2181505,2180897]),new Uint32Array([10489988,10490116,1049
10244,10490372,10490500,10490628,10490756,10490884,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147393,2147457,2147521,2147585,2147649,2147713,2147777,2147841]),new Uint32Array([23068672,23068672,0,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2241153,2241185,2241217,2215809,2241250,2241313,2241345,2241377,2217921,2241377,2241409,2215873,2241441,2241473,2241505,2241537]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220417,2220417,2220449,2220449,2220481,2220481,2220513,2220513,2220545,2220545,2220577,2220577,2220609,2220609,2220641,2220641]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2144002,0,6291456,6291456,0,0,6291456,6291456,6291456]),new Uint32Array([2167105,2167137,2167169,2167201,2167233,2167265,2167297,2167329,2167361,2167393,2167425,2167457,2167489,2167521,2167553,2167585]),new Uint32Array([10575521,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2234146,2234210,2234274,2234338,2234402,2234466,2234530,2234594,2234658,2234722,2234786,2234850,2234914,2234978,2235042,2235106]),new Uint32Array([0,0,0,0,0,0,0,2180577,0,0,0,0,0,2180609,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456]),new Uint32Array([2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2242529,2242561,2242593,2242625,2242657,2242689,2242721,2242753,2207937,2218177,2242785,2242817,2242849,2242882,2242945,2242977]),new Uint32Array([2118049,2105345,2118241,2105441,2118433,2118529,2118625,2118721,2118817,2200257,2200289,2191809,2200321,2200353,2200385,2200417]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2185505,6291456,2185537,6291456,2185569,6291456,2185601,6291456,2185633,6291456,2185665,6291456,2185697,6291456,2185729,6291456]),new Uint32Array([2231970,2232034,2232098,2232162,2232226,2232290,2232354,2232418,2232482,2232546,2232610,2232674,2232738,2232802,2232866,2232930]),new Uint32Array([2218625,2246402,2246466,2246530,2246594,2246657,2246689,2246689,2218657,2219681,2246721,2246753,2246785,2246818,2246881,2208481]),new Uint32Array([2197025,2197057,2197089,2197121,2197153,2197185,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2219137,2216961,2219169,2219201,2219233,2219265,2219297,2217025,2215041,2219329,2217057,2219361,2217089,2219393,2197153,2219426]),new Uint32Array([23068672,23068672,23068672,0,0,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713]),new Uint32Array([2243522,2243585,2243617,2243649,2243681,2210113,2243713,2243746,2243810,2243874,2243937,2243970,2244033,2244065,2244097,2244129]),new Uint32Array([2178017,6291456,2178049,6291456,2178081,6291456,2178113,6291456,2178145,6291456,2178177,6291456,2178209,6291456,2178241,6291456]),new Uint32Array([10553858,2165314,10518722,6291456,10518818,0,10518914,2130690,10519010,2130786,10519106,2130882,10519202,2165378,10554050,2165506]),new Uint32Array([0,0,2135491,2135587,2135683,2135779,2135875,2135971,2135971,2136067,2136163,2136259,2136355,2136355,2136451,2136547]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2220033,2220033,2220065,2220065,2220065,2220065,2220097,2220097,2220097,2220097,2220129,2220129,2220129,2220129,2220161,2220161]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2100897,2100898,2100899,2150018,2100865,2100866,2100867,2100868,2150082,2108481,2109858,2109859,2105569,2105505,2098241,2105601]),new Uint32Array([2097217,2097505,2097505,2097505,2097505,2165570,2165570,2165634,2165634,2165698,2165698,2097858,2097858,0,0,2097152]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10503843,10503939,10504035,10504131,10504227,10504323,10504419,10504515,10504611,10504707,10504803,10504899,10504995,10491140,10491268,0]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,2235297,2220769,2235329,2235361]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2222401,2222433,2222465,10531394,2222497,2222529,2222561,0,2222593,2222625,2222657,2222689,2222721,2222753,2222785,0]),new Uint32Array([2184481,6291456,2184513,6291456,2184545,6291456,2184577,6291456,2184609,6291456,2184641,6291456,2184673,6291456,2184705,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2105570,2156034,2126947,2156098,2153666,2127043,2127139,2156162,0,2127235,2156226,2156290,2156354,2156418,2127331,2127427]),new Uint32Array([2215905,2207041,2153185,2241569,2241601,2241633,2241665,2241697,2241730,2241793,2241825,2241857,2241889,2241921,2241954,2242017]),new Uint32Array([2203777,6291456,2203809,6291456,2203841,6291456,2203873,6291456,2203905,6291456,2173121,2180993,2181249,2203937,2181313,0]),new Uint32Array([2168577,6291456,2168609,6291456,2168641,6291456,2168673,6291456,2168705,6291456,2168737,6291456,2168769,6291456,2168801,
16291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,0,0]),new Uint32Array([2210113,2195521,2210145,2210177,2210209,2210241,2210273,2210305,2210337,2210369,2210401,2210433,2210465,2210497,2210529,2210561]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2228706,2228770,2228834,2228898,2228962,2229026,2229090,2229154,2229218,2229282,2229346,2229410,2229474,2229538,2229602,2229666]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,18874368,18874368,18874368,0,0]),new Uint32Array([2133089,2133281,2133281,2133281,2133281,2160577,2160577,2160577,2160577,2097441,2097441,2097441,2097441,2133857,2133857,2133857]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089]),new Uint32Array([2178529,6291456,2178561,6291456,2178593,6291456,2178625,6291456,2178657,6291456,2178689,6291456,2178721,6291456,2178753,6291456]),new Uint32Array([2221025,2221025,2221057,2221057,2159329,2159329,2159329,2159329,2097217,2097217,2158914,2158914,2158978,2158978,2159042,2159042]),new Uint32Array([2208161,2208193,2208225,2208257,2194433,2208289,2208321,2208353,2208385,2208417,2208449,2208481,2208513,2208545,2208577,2208609]),new Uint32Array([2169217,6291456,2169249,6291456,2169281,6291456,2169313,6291456,2169345,6291456,2169377,6291456,2169409,6291456,2169441,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2133187,2133283,2133283,2133379,2133475,2133571,2133667,2133667,2133763,2133859,2133955,2134051,2134147,2134147,2134243,2134339]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,0]),new Uint32Array([2193089,2193121,2193153,2193185,2117665,2117569,2193217,2193249,2193281,2193313,2193345,2193377,2193409,2193441,2193473,2193505]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184225,6291456,2184257,6291456,2184289,6291456,2184321,6291456,2184353,6291456,2184385,6291456,2184417,6291456,2184449,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2100833,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2200801,2200833,2200865,0]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2181153,2105505,2181185,2167617,2180993]),new Uint32Array([2160002,2160066,2160130,2160194,2160258,2132066,2131010,2131106,2106018,2131618,2160322,2131298,2132034,2131938,2137410,2132226]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2183617,6291456,2183649,6291456,2183681,6291456,2183713,629
11456,2183745,6291456,2183777,6291456,2183809,6291456,2183841,6291456]),new Uint32Array([0,6291456,6291456,0,6291456,0,0,6291456,6291456,0,6291456,0,0,6291456,0,0]),new Uint32Array([2250977,2251009,2251041,2251073,2195009,2251106,2251169,2251201,2251233,2251265,2251297,2251330,2251394,2251457,2251489,2251521]),new Uint32Array([2205729,2205761,2205793,2205825,2205857,2205889,2205921,2205953,2205985,2206017,2206049,2206081,2206113,2206145,2206177,2206209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2143170,2168993,6291456,2169025,6291456,2169057,6291456,2169089,6291456,2143234,2169121,6291456,2169153,6291456,2169185,6291456]),new Uint32Array([23068672,23068672,2190689,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2248706,2248769,2248801,2248833,2248865,2248897,2248929,2248962,2249026,2249090,2249154,2240705,2249217,2249249,2249281,2249313]),new Uint32Array([10485857,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10495394,6291456,2098209,6291456,6291456,2097152,6291456,10531394]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([6291456,2186977,6291456,6291456,6291456,6291456,6291456,10537858,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2209601,2209633,2209665,2209697,2209729,2209761,2209793,2209825,2209857,2209889,2209921,2209953,2209985,2210017,2210049,2210081]),new Uint32Array([10501539,10501635,10501731,10501827,10501923,10502019,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2194561,2194593,2194625,2119777,2119873,2194657,2194689,2194721,2194753,2194785,2194817,2194849,2194881,2194913,2194945,2194977]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569]),new Uint32Array([2222818,2222882,2222946,2223010,2223074,2223138,2223202,2223266,2223330,2223394,2223458,2223522,2223586,2223650,2223714,2223778]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([0,2179553,2179585,2179617,2179649,2144001,2179681,2179713,2179745,2179777,2179809,2156705,2179841,2156833,2179873,2179905]),new Uint32Array([6291456,23068672,6291456,2145602,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,6291456,0,0]),new Uint32Array([2196513,2196545,2196577,2196609,2196641,2196673,2196705,2196737,2196769,2196801,2196833,2196865,2196897,2196929,2196961,2196993]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2177281,6291456,2177313,6291456,2177345,6291456,2177377,6291456,2177409,6291456,2177441,6291456,2177473,6291456,2177505,6291456]),new Uint32Array([2187137,2221473,2221505,2221537,2221569,6291456,6291456,10610209,10610241,10537986,10537986,10537986,10537986,10609857,10609857,10609857]),new Uint32Array([2243009,2243041,2216033,2243074,2243137,2243169,2243201,2219617,2243233,2243265,2243297,2243329,2243362,2243425,2243457,2243489]),new Uint32Array([10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,2097152,4194304,4194304,0,0]),new Uint32Array([2143042,6291456,2143106,2143106,2168833,6291456,2168865,6291456,6291456,2168897,6291456,2168929,6291456,2168961,6291456,2143170]),new Uint32Array([6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2204193,2204225,2204257,2204289,2204321,2204353,2204385,2204417,2204449,2204481,2204513,2204545,2204577,2204609,2204641,2204673]),new Uint32Array([2202753,6291456,2202785,6291456,2202817,6291456,2202849,6291456,2202881,6291456,2202913,6291456,2202945,6291456,2202977,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321]),new Uint32Array([2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842,2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842]),new Uint32Array([2253313,2253346,2253409,2253441,2253473,2253505,2253537,2253569,2253601,2253634,2219393,2253697,2253729,2253761,2253793,2253825]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([2162562,2162626,2131362,2162690,2159938,2160002,2162754,2162818,2160130,2162882,2160194,2160258,2160834,2160898,2161026,2161090]),new Uint32Array([2175361,2175393,2175425,2175457,2175489,2175521,2175553,2175585,2175617,2175649,2175681,2175713,2175745,2175777,2175809,2175841]),new Uint32Array([2253858,2253921,2253954,2254018,2254082,2196737,2254145,2196865,2254177,2254209,2254241,2254273,2197025,2254306,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202113,2204129,2188705,2204161]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953]),new Uint32Array([2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,0,2108417,0,2111713,2100897,2111905]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2175425,2175489,2175809,2175905,2175937,2175937,2176193,2176417,2180865,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,2143298,2143298,2143298,2143362,2143362,2143362,2143426,2143426,2143426,2171105,6291456,2171137]),new Uint32Array([2120162,2120258,2151618,2151682,2151746,2151810,2151874,2151938,2152002,2120035,2120131,2120227,2152066,2120323,2152130,2120419]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195361,2142433,2236065,2236097,2236129,2236161,2118241,2117473,2236193,223
16225,2236257,2236289,0,0,0,0]),new Uint32Array([2189281,6291456,2189313,6291456,2189345,6291456,2189377,6291456,2189409,6291456,2189441,6291456,2189473,6291456,2189505,6291456]),new Uint32Array([6291456,6291456,2145922,6291456,6291456,6291456,6291456,2145986,6291456,6291456,6291456,6291456,2146050,6291456,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10502113,10562017,10610401,10502177,10610433,10538049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,2186401,0,2186433,0,2186465,0,2186497]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,23068672,23068672]),new Uint32Array([0,0,2198241,2198273,2198305,2198337,2198369,2198401,0,0,2198433,2198465,2198497,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,0,23068672,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,2133281,2097505,2105889,0,2097697,2135777,2097633,2097441]),new Uint32Array([2197889,2197921,2197953,2197985,2198017,2198049,2198081,2198113,2198145,2198177,2198209,2198241,2198273,2198305,2198337,2198369]),new Uint32Array([2132514,2132610,2160386,2133090,2133186,2160450,2160514,2133282,2160578,2133570,2106178,2160642,2133858,2160706,2160770,2134146]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,6291456,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2184737,6291456,2184769,6291456,2184801,6291456,2184833,6291456,2184865,6291456,2184897,6291456,2184929,6291456,2184961,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,2186753,6291456,6291456,6291456,6291456,2186785,2186817,2186849,2173569,2186881,10496355,10495395,10575521]),new Uint32Array([0,0,2097729,0,0,0,0,2106017,0,2097505,0,2097185,0,2135777,2097633,2097441]),new Uint32Array([2189537,6291456,2189569,6291456,2189601,6291456,2189633,6291456,2189665,6291456,2189697,6291456,2189729,6291456,2189761,6291456]),new Uint32Array([2202497,6291456,2202529,6291456,2202561,6291456,2202593,6291456,2202625,6291456,2202657,6291456,2202689,6291456,2202721,6291456]),new Uint32Array([2245217,2218369,2245249,2245282,2245345,2245377,2245410,2245474,2245537,2245569,2245601,2245633,2245665,2245665,2245697,2245729]),new Uint32Array([6291456,0,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,23068672,6291456,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,2097377,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2176641,6291456,2176673,6291456,2176705,6291456,2176737,6291456,2176769,6291456,2176801,6291456,2176833,6291456,2176865,6291456]),new Uint32Array([2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2174369,2174369,0,0,2100833,2100737]),new Uint32Array([2116513,2190817,2190849,2190881,2190913,2190945,2116609,2190977,2191009,2191041,2191073,2117185,2191105,2191137,2191169,2191201]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2167617,2167649,2167681,2167713,2167745,2167777,2167809,6291456,2167841,2167873,2167905,2167937,2167969,2168001,2168033,4240130]),new Uint32Array([2165122,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122,2134562,2132162,2132834,2136866]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2186209,2186241,2186273,2186305,2186337,2186369,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,0,23068672,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([0,10537921,10610689,10610273,10610497,10610529,10610305,10610721,10489601,
110489697,10610337,10575617,10554529,2221761,2197217,10496577]),new Uint32Array([2105473,2105569,2105601,2112289,0,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2125346,2153410,2153474,2127394,2153538,2153602,2153666,2153730,2105507,2105476,2153794,2153858,2153922,2153986,2154050,2105794]),new Uint32Array([2200449,2119681,2200481,2153313,2199873,2199905,2199937,2200513,2200545,2200577,2200609,2119105,2119201,2119297,2119393,2119489]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2175777,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2222273,2197217,2221473,2221505,2221089,2222305,2200865,2099681,2104481,2222337,2099905,2120737,2222369,2103713,2100225,2098785]),new Uint32Array([2201377,6291456,2201409,6291456,2201441,6291456,2201473,6291456,2201505,6291456,2201537,6291456,2201569,6291456,6291456,23068672]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([2200897,6291456,2200929,6291456,2200961,6291456,2200993,6291456,2201025,6291456,2180865,6291456,2201057,6291456,2201089,6291456]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2161154,2161410,2138658,2161474,2161538,2097666,2097186,2097474,2162946,2132450,2163010,2163074,2136162,2163138,2161666,2161730]),new Uint32Array([2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953]),new Uint32Array([0,0,0,0,0,0,23068672,23068672,0,0,0,0,2145410,2145474,0,6291456]),new Uint32Array([2244161,2216065,2212769,2244193,2244225,2244257,2244290,2244353,2244385,2244417,2244449,2218273,2244481,2244514,2244577,2244609]),new Uint32Array([2125730,2125699,2125795,2125891,2125987,2154114,2154178,2154242,2154306,2154370,2154434,2154498,2126082,2126178,2126274,2126083]),new Uint32Array([2237665,2237697,2237697,2237697,2237730,2237793,2237825,2237857,2237890,2237953,2237985,2238017,2238049,2238081,2238113,2238145]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150146,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2214369,2238593,2238625,2238657,2238689,2238721,2238753,2238785,2238817,2238850,2238913,2238945,2238977,2235457,2239009,2239041]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2252066,2252130,2252193,2252225,2252257,2252290,2252353,2252385,2252417,2252449,2252481,2252513,2252545,2252578,2252641,2252673]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,2197857]),new Uint32Array([2224866,2224930,2224994,2225058,2225122,2225186,2225250,2225314,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2219490,2219554,2219617,2219649,2219681,2219714,2219778,2219842,2219905,2219937,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665]),new Uint32Array([2220161,2220161,2220193,2220193,2220193,2220193,2220225,2220225,2220225,2220225,2220257,2220257,2220257,2220257,2220289,2220289]),new Uint32Array([2192673,2192705,2192737,2192769,2192801,2192833,2192865,2118049,2192897,2117473,2117761,2192929,2192961,2192993,2193025,2193057]),new Uint32Array([2179297,6291456,2179329,6291456,2179361,
16291456,2179393,6291456,2179425,6291456,2179457,6291456,2179489,6291456,2179521,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2235745,2235777,2193633,2235809,2235841,2235873,2235905,2235937,2235969,2116513,2116705,2236001,2200513,2199905,2200545,2236033]),new Uint32Array([2113153,2108481,2113345,2113441,2232993,2233025,0,0,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761]),new Uint32Array([2170593,6291456,2170625,6291456,2170657,6291456,2170689,2170721,6291456,2170753,6291456,6291456,2170785,6291456,2170817,2170849]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2166786,2166850,0,0,0,0]),new Uint32Array([23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,
110489697,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2134562,2132162,2132834,2136866,2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058]),new Uint32Array([6291456,6291456,2098337,2101441,10531458,2153473,6291456,6291456,10531522,2100737,2108193,6291456,2106499,2106595,2106691,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2233122,2233186,2233250,2233314,2233378,2233442,2233506,2233570,2233634,2233698,2233762,2233826,2233890,2233954,2234018,2234082]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2205217,2205249,2205281,2205313,2205345,2205377,2205409,2205441,2205473,2205505,2205537,2205569,2205601,2205633,2205665,2205697]),new Uint32Array([6291456,0,6291456,0,0,0,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([2173601,2173761,2174081,2173569,2174241,2174113,2173953,6291456,2174305,6291456,2174337,6291456,2174369,6291456,2174401,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2152450,2152514,2099653,2104452,2099813,2122243,2099973,2152578,2122339,2122435,2122531,2122627,2122723,2104580,2122819,2152642]),new Uint32Array([2236385,2236417,2236449,2236482,2236545,2215425,2236577,2236609,2236641,2236673,2215457,2236705,2236737,2236770,2215489,2236833]),new Uint32Array([2163394,2159746,2163458,2131362,2163522,2160130,2163778,2132226,2163842,2132898,2163906,2161410,2138658,2097666,2136162,2163650]),new Uint32Array([2218721,2246913,2246946,2216385,2247010,2247074,2215009,2247137,2247169,2216481,2247201,2247233,2247266,2247330,2247330,0]),new Uint32Array([2129730,2129762,2129858,2129731,2129827,2156482,2156482,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0,0,0,0,6291456,0,0]),new Uint32Array([2203969,2204001,2181377,2204033,2204065,6291456,2204097,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2169473,6291456,2169505,6291456,2169537,6291456,2169569,6291456,2169601,6291456,2169633,6291456,2169665,6291456,2169697,6291456]),new Uint32Array([2141542,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220801,2220801,2220801,2220801,2220833,2220833,2220865,2220865,2220865,2220865,2220897,2220897,2220897,2220897,2139873,2139873]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,0,0,0,0,0,0,6291456,0]),new Uint32Array([2214849,2218433,2218465,2218497,2218529,2218561,2214881,2218593,2218625,2218657,2218689,2218721,2218753,2216545,2218785,2218817]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058,2165122,2132802,2132706,2164866]),new Uint32Array([2207649,2207681,2207713,2207745,2207777,2207809,2207841,2207873,2207905,2207937,2207969,2208001,2208033,2208065,2208097,2208129]),new Uint32Array([2123683,2105092,2152706,2123779,2105220,2152770,2100453,2098755,2123906,2124002,2124098,2124194,2124290,2124386,2124482,2124578]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,0,0,0,0,0,0,0,10485857]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([10508163,10508259,10508355,10508451,2200129,2200161,2192737,2200193,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203553,6291456,2203585,6291456,6291456,6291456,2203617,6291456,2203649,6291456,2203681,6291456,2203713,6291456,2203745,6291456]),new Uint32Array([18884449,18884065,23068672,18884417,18884034,18921185,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18874368]),new Uint32Array([2247393,2247426,2247489,2247521,2247553,2247586,2247649,2247681,2247713,2247745,2247777,2247810,2247873,2247905,2247937,2247969]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,2160577,2133857,2235297,0,2235329,0]),new Uint32Array([2182593,6291456,2182625,6291456,2182657,6291456,2182689,6291456,2182721,6291456,2182753,6291456,2182785,6291456,2182817,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102402,2102403,6291456,2110050]),new Uint32Array([2149890,2108323,2149954,6291456,2113441,6291456,2149057,6291456,2113441,6291456,2105473,2167265,2111137,2105505,6291456,2108353]),new Uint32Array([2219105,2219137,2195233,2251554,2251617,2251649,2251681,2251713,2251746,2251810,2251873,2251905,2251937,2251970,2252033,2219169]),new Uint32Array([2203009,6291456,2203041,6291456,2203073,6291456,2203105,6291456,2203137,6291456,2203169,6291456,2203201,6291456,2203233,6291456]),new Uint32Array([2128195,2128291,2128387,2128483,2128579,2128675,2128771,2128867,2128963,2129059,2129155,2129251,2129347,2129443,2129539,2129635]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2140964,2141156,2140966,2141158,2141350]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2225378,2225442,2225506,2225570,2225634,2225698,2225762,2225826,2225890,2225954,2226018,2226082,2226146,2226210,2226274,2226338]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417]),new Uint32Array([2108353,2108417,0,2105601,2108193,2157121,2157313,2157377,2157441,2100897,6291456,2108419,2173953,2173633,2173633,2173953]),new Uint32Array([2111713,2173121,2111905,2098177,2173153,2173185,2173217,2113153,2113345,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2190753]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,2197249,6291456,2117377,2197281,2197313,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672]),new Uint32Array([2173281,6291456,2173313,6291456,2173345,6291456,2173377,6291456,0,0,10532546,6291456,6291456,6291456,10562017,2173441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2159426,2159490,2159554,2159362,2159618,2159682,2139522,2136450,2159746,2159810,2159874,2130978,2131074,2131266,2131362,2159938]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203233,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2203265,6291456,2203297,6291456,2203329,2203361,6291456]),new Uint32Array([6291456,6291456,2148418,2148482,2148546,0,6291456,2148610,2186529,2186561,2148417,2148545,2148482,10495778,2143969,10495778]),new Uint32Array([2134146,2139426,2160962,2134242,2161218,2161282,2161346,2161410,2138658,2134722,2134434,2134818,2097666,2097346,2097698,2105986]),new Uint32Array([2198881,2198913,2198945,2198977,2199009,2199041,2199073,2199105,2199137,2199169,2199201,2199233,2199265,2199297,2199329,2199361]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([10610561,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2183873,6291456,2183905,6291456,2183937,6291456,2183969,6291456,2184001,6291456,2184033,6291456,2184065,6291456,2184097,6291456]),new Uint32Array([2244642,2244706,2244769,2244801,2218305,2244833,2244865,2244897,2244929,2244961,2244993,2245026,2245089,2245122,2245185,0]),new Uint32Array([6291456,6291456,2116513,2116609,2116705,2116801,2199873,2199905,2199937,2199969,2190913,2200001,2200033,2200065,2200097,2191009]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2180673,2180705,2180737,2180769,2180801,2180833,0,0]),new Uint32Array([2098081,2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150402]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,2145666,2145730,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665]),new Uint32Array([2187073,6291456,6291456,6291456,6291456,2098241,2098241,2108353,2100897,2111905,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102404,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2100612,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10485857]),new Uint32Array([2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([2217697,2217729,2217761,2217793,2217825,2217857,2217889,2217921,2217953,2215873,2217985,2215905,2218017,2218049,2218081,2218113]),new Uint32Array([2211233,2218849,2216673,2218881,2218913,2218945,2218977,2219009,2216833,2219041,2215137,2219073,2216865,2209505,2219105,2216897]),new Uint32Array([2240097,2240129,2240161,2240193,2240225,2240257,2240289,2240321,2240353,2240386,2240449,2240481,2240513,2240545,2207905,2240578]),new Uint32Array([6291456,6291456,2202273,629
11456,2202305,6291456,2202337,6291456,2202369,6291456,2202401,6291456,2202433,6291456,2202465,6291456]),new Uint32Array([0,23068672,23068672,18923394,23068672,18923458,18923522,18884099,18923586,18884195,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2201121,6291456,2201153,6291456,2201185,6291456,2201217,6291456,2201249,6291456,2201281,6291456,2201313,6291456,2201345,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2211041,2211073,2211105,2211137,2211169,2211201,2211233,2211265,2211297,2211329,2211361,2211393,2211425,2211457,2211489,2211521]),new Uint32Array([2181825,6291456,2181857,6291456,2181889,6291456,2181921,6291456,2181953,6291456,2181985,6291456,2182017,6291456,2182049,6291456]),new Uint32Array([2162337,2097633,2097633,2097633,2097633,2132705,2132705,2132705,2132705,2097153,2097153,2097153,2097153,2133089,2133089,2133089]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,2148545,6291456,2173473,6291456,2148865,6291456,2173505,6291456,2173537,6291456,2173569,6291456,2149121,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2207137,2207169,2207201,2207233,2207265,2207297,2207329,2207361,2207393,2207425,2207457,2207489,2207521,2207553,2207585,2207617]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,23068672,23068672,0,0,0,0,0,0]),new Uint32Array([2198401,2198433,2198465,2198497,0,2198529,2198561,2198593,2198625,2198657,2198689,2198721,2198753,2198785,2198817,2198849]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2216385,2118721,2216417,2216449,2216481,2216513,2216545,2211233,2216577,2216609,2216641,2216673,2216705,2216737,2216737,2216769]),new Uint32Array([2216801,2216833,2216865,2216897,2216929,2216961,2216993,2215169,2217025,2217057,2217089,2217121,2217154,2217217,0,0]),new Uint32Array([2210593,2191809,2210625,2210657,2210689,2210721,2210753,2210785,2210817,2210849,2191297,2210881,2210913,2210945,2210977,2211009]),new Uint32Array([0,0,2105825,0,0,2111905,2105473,0,0,2112289,2108193,2112481,2112577,0,2098305,2108321]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,2097153,2134241,0,2132705,0,0,2131297,0,2133089,0,2133857,0,2220769,0,2235361]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,6291456,6291456,14680064]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2171873,6291456,2171905,6291456,2171937,6291456,2171969,6291456,2172001,6291456,2172033,6291456,2172065,6291456,2172097,6291456]),new Uint32Array([2220929,2220929,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2133857,2134145,2134145,2134145,2134145,2134241,2134241,2134241,2134241,2105889,2105889,2105889,2105889,2097185,2097185,2097185]),new Uint32Array([2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,10499619,10499715,10499811,10499907]),new Uint32Array([0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2144322,2144386,2144450,2144514,2144578,2144642,2144706,2144770]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0,0,2111905,2105473,2105569]),new Uint32Array([2236321,2236353,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2152194,2121283,2103684,2103812,2097986,2098533,2097990,2098693,2098595,2098853,2099013,2103940,2121379,2121475,2121571,2104068]),new Uint32Array([2206241,2206273,2206305,2206337,2206369,2206401,2206433,2206465,2206497,2206529,2206561,2206593,2206625,2206657,2206689,2206721]),new Uint32Array([6291456,6291456,6291456,6291456,16777216,16777216,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,10538818,10538882,6291456,6291456,2150338]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2214369,2214401,2214433,2214465,2214497,2214529,2214561,2214593,219497
17,2214625,2195073,2214657,2214689,2214721,6291456,6291456]),new Uint32Array([2097152,2097152,2097152,2097152,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2182081,6291456,2182113,6291456,2182145,6291456,2182177,6291456,2182209,6291456,2182241,6291456,2182273,6291456,2182305,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146881,2146945,2147009,2147073,2147137,2147201,2147265,2147329]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672]),new Uint32Array([0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2122915,2123011,2123107,2104708,2123203,2123299,2123395,2100133,2104836,2100290,2100293,2104962,2104964,2098052,2123491,2123587]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,2171169,6291456,2171201,6291456,2171233,6291456,2171265,6291456,2171297,6291456,2171329,6291456,6291456,2171361,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2148994,2149058,2149122,0,6291456,2149186,2186945,2173537,2148993,2149121,2149058,10531458,10496066,0]),new Uint32Array([2195009,2195041,2195073,2195105,2195137,2195169,2195201,2195233,2195265,2195297,2195329,2195361,2195393,2195425,2195457,2195489]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,6291456,6291456]),new Uint32Array([2182849,6291456,2182881,6291456,2182913,6291456,2182945,6291456,2182977,6291456,2183009,6291456,2183041,6291456,2183073,6291456]),new Uint32Array([2211553,2210081,2211585,2211617,2211649,2211681,2211713,2211745,2211777,2211809,2209569,2211841,2211873,2211905,2211937,2211969]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2166594,2127298,2166658,2142978,2141827,2166722]),new Uint32Array([2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2185761,2185793,2185825,2185857,2185889,2185921,0,0]),new Uint32Array([6291456,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456]),new Uint32Array([0,0,0,2220961,2220961,2220961,2220961,2144193,2144193,2159201,2159201,2159265,2159265,2144194,2220993,2220993]),new Uint32Array([2192641,2235393,2235425,2152257,2116609,2235457,2235489,2200065,2235521,2235553,2235585,2212449,2235617,2235649,2235681,2235713]),new Uint32Array([2194049,2194081,2194113,2194145,2194177,2194209,2194241,2194273,2194305,2194337,2194369,2194401,2194433,2194465,2194497,2194529]),new Uint32Array([2196673,2208641,2208673,2208705,2208737,2208769,2208801,2208833,2208865,2208897,2208929,2208961,2208993,2209025,2209057,2209089]),new Uint32Array([2191681,2191713,2191745,2191777,2153281,2191809,2191841,2191873,2191905,2191937,2191969,2192001,2192033,2192065,2192097,2192129]),new Uint32Array([2230946,2231010,2231074,2231138,2231202,2231266,2231330,2231394,2231458,2231522,2231586,2231650,2231714,2231778,2231842,2231906]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2185953,2185985,2186017,2186049,2186081,2186113,2186145,2186177]),new Uint32Array([2139811,2139907,2097284,2105860,2105988,2106116,2106244,2097444,2097604,2097155,10485778,10486344,2106372,6291456,0,0]),new Uint32Array([2110051,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2172385,6291456,2172417,6291456,2172449,6291456,2172481,6291456,2172513,629
11456,2172545,6291456,2172577,6291456,2172609,6291456]),new Uint32Array([0,0,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2249345,2249377,2249409,2249441,2249473,2249505,2249537,2249570,2210209,2249633,2249665,2249697,2249729,2249761,2249793,2216769]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2187169,2187201,2187233,2187265,2187297,2187329,2187361,2187393,2187425,2187457,2187489,2187521,2187553,2187585,2187617,2187649]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2182337,6291456,2182369,6291456,2182401,6291456,2182433,6291456,2182465,6291456,2182497,6291456,2182529,6291456,2182561,6291456]),new Uint32Array([2138179,2138275,2138371,2138467,2134243,2134435,2138563,2138659,2138755,2138851,2138947,2139043,2138947,2138755,2139139,2139235]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2250498,2250562,2250625,2250657,2208321,2250689,2250721,2250753,2250785,2250817,2250849,2218945,2250881,2250913,2250945,0]),new Uint32Array([2170369,2105569,2098305,2108481,2173249,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,0,2108193,0,0,0,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2100897,2100897,2105569,2105569,6291456,2112289,2149826,6291456,6291456,2112481,2112577,2098177,2098177,2098177,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,2169953,2169985,6291456,2170017,6291456,2170049,2170081,6291456,2170113,2170145,2170177,6291456,6291456,2170209,2170241]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220641,2220641,2220673,2220673,2220673,2220673,2220705,2220705,2220705,2220705,2220737,2220737,2220737,2220737,2220769,2220769]),new Uint32Array([2127650,2127746,2127842,2127938,2128034,2128130,2128226,2128322,2128418,2127523,2127619,2127715,2127811,2127907,2128003,2128099]),new Uint32Array([2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177]),new Uint32Array([0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2204705,2204737,2204769,2204801,2204833,2204865,2204897,2204929,2204961,2204993,2205025,2205057,2205089,2205121,2205153,2205185]),new Uint32Array([2176385,6291456,2176417,6291456,2176449,6291456,2176481,6291456,2176513,6291456,2176545,6291456,2176577,6291456,2176609,6291456]),new Uint32Array([2195521,2195553,2195585,2195617,2195649,2195681,2117857,2195713,2195745,2195777,2195809,2195841,2195873,2195905,2195937,2195969]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113]),new Uint32Array([2131586,2132450,2135970,2135778,2161602,2136162,2163650,2161794,2135586,2163714,2137186,2131810,2160290,2135170,2097506,2159554]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,0,0,0,0]),new Uint32Array([2116513,2116609,2116705,2116801,2116897,2116993,2117089,2117185,2117281,2117377,2117473,2117569,2117665,2117761,2117857,2117953]),new Uint32Array([2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100802,2101154,2101282,2101410,2101538,2101666,2101794]),new Uint32Array([2100289,2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2098977,2150241,2150305]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,2109955,6291456,6291456,0,0,0,0]),new Uint32Array([18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,0,0]),new Uint32Array([2130979,2131075,2131075,2131171,2131267,2131363,2131459,2131555,2131651,2131651,2131747,2131843,2131939,2132035,2132131,2132227]),new Uint32Array([0,2177793,6291456,2177825,6291456,2177857,6291456,2177889,6291456,2177921,6291456,2177953,629
11456,2177985,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2113345,0,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2136643,2136739,2136835,2136931,2137027,2137123,2137219,2137315,2137411,2137507,2137603,2137699,2137795,2137891,2137987,2138083]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2174433,6291456,2174465,6291456,2174497,6291456,2174529,6291456,2174561,6291456,2174593,6291456,2174625,6291456,2174657,6291456]),new Uint32Array([0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([10496547,10496643,2105505,2149698,6291456,10496739,10496835,2170273,6291456,2149762,2105825,2111713,2111713,2111713,2111713,2168673]),new Uint32Array([6291456,2143490,2143490,2143490,2171649,6291456,2171681,2171713,2171745,6291456,2171777,6291456,2171809,6291456,2171841,6291456]),new Uint32Array([2159106,2159106,2159170,2159170,2159234,2159234,2159298,2159298,2159298,2159362,2159362,2159362,2106401,2106401,2106401,2106401]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137]),new Uint32Array([2108417,2181217,2181249,2181281,2170433,2170401,2181313,2181345,2181377,2181409,2181441,2181473,2181505,2181537,2170529,2181569]),new Uint32Array([2218433,2245761,2245793,2245825,2245857,2245890,2245953,2245986,2209665,2246050,2246113,2246146,2246210,2246274,2246337,2246369]),new Uint32Array([2230754,2230818,2230882,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184129,6291456,2184161,6291456,2184193,6291456,6291456,6291456,6291456,6291456,2146818,2183361,6291456,6291456,2142978,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2135170,2097506,2130691,2130787,2130883,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122]),new Uint32Array([2108515,2108611,2100740,2108707,2108803,2108899,2108995,2109091,2109187,2109283,2109379,2109475,2109571,2109667,2109763,2100738]),new Uint32Array([2102788,2102916,2103044,2120515,2103172,2120611,2120707,2098373,2103300,2120803,2120899,2120995,2103428,2103556,2121091,2121187]),new Uint32Array([2158082,2158146,0,2158210,2158274,0,2158338,2158402,2158466,2129922,2158530,2158594,2158658,2158722,2158786,2158850]),new Uint32Array([10499619,10499715,10499811,10499907,10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059]),new Uint32Array([2239585,2239618,2239681,2239713,0,2191969,2239745,2239777,2192033,2239809,2239841,2239874,2239937,2239970,2240033,2240065]),new Uint32Array([2252705,2252738,2252801,2252833,2252865,2252897,2252930,2252994,2253057,2253089,2253121,2253154,2253217,2253250,2219361,2219361]),new Uint32Array([2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,10538050,10538114,10538178,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2226402,2226466,2226530,2226594,2226658,2226722,2226786,2226850,2226914,2226978,2227042,2227106,2227170,2227234,2227298,2227362]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,2144066,2144130,2144194,2144258,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2124674,2124770,2123875,2123971,2124067,2124163,2124259,2124355,2124451,2124547,2124643,2124739,2124835,2124931,2125027,2125123]),new Uint32Array([2168065,6291456,2168097,6291456,2168129,6291456,2168161,6291456,2168193,6291456,2168225,6291456,2168257,6291456,2168289,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2100610,2100611,6291456,2107842,2107843,6291456,6291456,6291456,6291456,10537922,629
11456,10537986,6291456]),new Uint32Array([2174849,2174881,2174913,2174945,2174977,2175009,2175041,2175073,2175105,2175137,2175169,2175201,2175233,2175265,2175297,2175329]),new Uint32Array([2154562,2154626,2154690,2154754,2141858,2154818,2154882,2127298,2154946,2127298,2155010,2155074,2155138,2155202,2155266,2155202]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([2200641,2150786,2150850,2150914,2150978,2151042,2106562,2151106,2150562,2151170,2151234,2151298,2151362,2151426,2151490,2151554]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456]),new Uint32Array([2220289,2220289,2220321,2220321,2220321,2220321,2220353,2220353,2220353,2220353,2220385,2220385,2220385,2220385,2220417,2220417]),new Uint32Array([2155330,2155394,0,2155458,2155522,2155586,2105732,0,2155650,2155714,2155778,2125314,2155842,2155906,2126274,2155970]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([2097729,2106017,2106017,2106017,2106017,2131297,2131297,2131297,2131297,2106081,2106081,2162049,2162049,2105953,2105953,2162337]),new Uint32Array([2097185,2097697,2097697,2097697,2097697,2135777,2135777,2135777,2135777,2097377,2097377,2097377,2097377,2097601,2097601,2097217]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2139331,2139427,2139523,2139043,2133571,2132611,2139619,2139715,0,0,0,0,0,0,0,0]),new Uint32Array([2174113,2174145,2100897,2098177,2108289,2100865,2173601,2173633,2173985,2174113,2174145,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,23068672,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,18923778,23068672,23068672,23068672,23068672,18923842,23068672,23068672,23068672,23068672,18923906,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,0,2133857,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2177537,6291456,2177569,6291456,2177601,6291456,2177633,6291456,2177665,6291456,2177697,6291456,2177729,6291456,2177761,6291456]),new Uint32Array([2212481,2212513,2212545,2212577,2197121,2212609,2212641,2212673,2212705,2212737,2212769,2212801,2212833,2212865,2212897,2212929]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2098241,2108353,2170209,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,6291456,2108193,2172417,2112481,2098177]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456])],t=new Uint16Array([616,616,565,147,161,411,330,2,131,131,328,454,241,408,86,86,696,113,285,350,325,301,473,214,639,232,447,64,369,598,124,672,567,223,621,154,107,86,86,86,86,86,86,505,86,68,634,86,218,218,218,218,486,218,218,513,188,608,216,86,217,463,668,85,700,360,184,86,86,86,647,402,153,10,346,718,662,260,145,298,117,1,443,342,138,54,563,86,240,572,218,70,387,86,118,460,641,602,86,86,306,218,86,692,86,86,86,86,86,162,707,86,458,26,86,218,638,86,86,86,86,86,65,449,86,86,306,183,86,58,391,667,86,157,131,131,131,131,86,433,131,406,31,218,247,86,86,693,218,581,351,86,438,295,69,462,45,126,173,650,14,295,69,97,168,187,641,78,523,390,69,108,287,664,173,219,83,295,69,108,431,426,173,694,412,115,628,52,257,398,641,118,501,121,69,579,151,423,173,620,464,121,69,382,151,476,173,27,53,121,86,594,578,226,173,86,632,130,86,96,228,268,641,622,563,86,86,21,148,650,131,131,321,43,144,343,381,531,131,131,178,20,86,399,156,375,164,541,30,60,715,198,92,118,131,131,86,86,306,407,86,280,457,196,488,358,131,131,244,86,86,143,86,86,86,86,86,667,563,86,86,86,86,86,86,86,86,86,86,86,86,86,336,363,86,86,336,86,86,380,678,67,86,86,86,678,86,86,86,512,86,307,86,708,86,86,86,86,86,528,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,563,307,86,86,86,86,86,104,450,337,86,720,86,32,450,397,86,86,86,587,218,558,708,708,293,708,86,86,86,86,86,694,205,86,8,86,86,86,86,549,86,667,697,697,679,86,458,460,86,86,650,86,708,543,86,86,86,245,86,86,86,140,218,127,708,708,458,197,131,131,131,131,500,86,86,483,251,86,306,510,515,86,722,86,86,86,65,201,86,86,483,580,470,86,86,86,368,131,131,131,694,114,110,555,86,86,123,721,163,142,713,418,86,317,675,209,218,218,218,371,545,592,629,490,603,199,46,320,525,680,310,279,388,111,42,252,593,607,235,617,410,377,50,548,135,356,17,520,189,116,392,600,349,332,482,699,690,535,119,106,451,71,152,667,131,218,218,265,671,637,492,504,533,683,269,269,658,86,86,86,86,86,86,86,86,86,491,619,86,86,6,86,86,86,86,86,86,86,86,86,86,86,229,86,86,86,86,86,86,86,86,86,86,86,86,667,86,86,171,131,118,131,656,206,234,571,89,334,670,246,311,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,534,86,86,86,86,86,86,82,86,86,86,86,86,430,86,86,86,86,86,86,86,86,86,599,86,324,86,470,69,640,264,131,626,101,174,86,86,667,233,105,73,374,394,221,204,84,28,326,86,86,471,86,86,86,109,573,86,171,200,200,200,200,218,218,86,86,86,86,460,131,131,131,86,506,86,86,86,86,86,220,404,34,614,47,442,305,25,612,338,601,648,7,344,255,131,131,51,86,312,507,563,86,86,86,86,588,86,86,86,86,86,530,511,86,458,3,435,384,556,522,230,527,86,118,86,86,717,86,137,273,79,181,484,23,93,112,655,249,417,703,370,87,98,313,684,585,
1155,465,596,481,695,18,416,428,61,701,706,282,643,495,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,86,86,86,171,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,650,131,422,542,420,263,24,172,86,86,86,86,86,566,86,86,132,540,395,353,494,519,19,485,284,472,131,131,131,16,714,86,211,708,86,86,86,694,698,86,86,483,704,708,218,272,86,86,120,86,159,478,86,307,247,86,86,663,597,459,627,667,86,86,277,45
15,39,302,86,250,86,86,86,271,99,452,306,281,329,400,200,86,86,362,549,352,646,461,323,586,86,86,4,708,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,717,86,518,86,86,650,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,125,554,480,300,613,72,333,288,561,544,604,48,719,91,169,176,590,224,76,191,29,559,560,231,537,166,477,538,256,437,131,131,469,167,40,0,685,266,441,705,239,642,475,568,640,610,299,673,517,318,385,22,202,180,179,359,424,215,90,66,521,653,467,682,453,409,479,88,131,661,35,303,15,262,666,630,712,131,131,618,659,175,218,195,347,193,227,261,150,165,709,546,294,569,710,270,413,376,524,55,242,38,419,529,170,657,3,304,122,379,278,131,651,86,67,576,458,458,131,131,86,86,86,86,86,86,86,118,309,86,86,547,86,86,86,86,667,650,664,131,131,86,86,56,131,131,131,131,131,131,131,131,86,307,86,86,86,664,238,650,86,86,717,86,118,86,86,315,86,59,86,86,574,549,131,131,340,57,436,86,86,86,86,86,86,458,708,499,691,62,86,650,86,86,694,86,86,86,319,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,86,549,694,131,131,131,131,131,131,131,131,131,7
17,86,86,139,86,502,86,86,86,667,595,131,131,131,86,12,86,13,86,609,131,131,131,131,86,86,86,625,86,669,86,86,182,129,86,5,694,104,86,86,86,86,131,131,86,86,386,171,86,86,86,345,86,324,86,589,86,213,36,131,131,131,131,131,86,86,86,86,104,131,131,131,141,290,80,677,86,86,86,267,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,515,86,86,33,136,669,86,711,515,86,86,550,640,86,104,708,515,86,159,372,717,86,86,444,515,86,86,663,37,86,563,460,86,390,624,702,131,131,131,131,389,59,708,86,86,341,208,708,635,295,69,108,431,508,100,190,131,131,131,131,131,131,131,131,86,86,86,649,516,660,131,131,86,86,86,218,631,708,131,131,131,131,131,131,131,131,131,131,86,86,341,575,238,514,131,131,86,86,86,218,291,708,307,131,86,86,306,367,708,131,131,131,86,378,697,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,615,253,86,86,86,292,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,104,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,69,86,341,553,549,86,307,86,86,645,275,455,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,708,131,131,131,131,131,131,86,86,86,86,86,86,667,460,86,86,86,86,86,86,86,86,86,86,86,86,717,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,104,86,667,459,131,131,131,131,131,131,86,458,225,86,86,86,516,549,11,390,405,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,460,44,218,197,711,515,131,131,131,131,664,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,118,307,104,286,591,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,681,86,86,75,185,314,582,86,358,496,474,86,104,131,86,86,86,86,146,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,171,86,640,131,131,131,131,131,131,131,131,246,503,689,339,674,81,258,415,439,128,562,366,414,246,503,689,583,222,557,316,636,665,186,355,95,670,246,503,689,339,674,557,258,415,439,186,355,95,670,246,503,689,446,644,536,652,331,532,335,440,274,421,297,570,74,425,364,425,606,552,403,509,134,365,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,218,218,218,498,218,218,577,627,551,497,572,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,553,354,236,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,296,455,131,131,456,243,103,86,41,459,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,9,276,158,716,393,564,383,489,401,654,210,654,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,650,86,86,86,86,86,86,717,667,563,563,563,86,549,102,686,133,246,605,86,448,86,86,207,307,131,131,131,641,86,177,611,445,373,194,584,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,307,171,86,86,86,86,86,86,86,717,86,86,86,86,86,460,131,131,650,86,86,86,694,708,86,86,694,86,458,131,131,131,131,131,131,667,694,289,650,667,131,131,86,640,131,131,664,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,
186,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,460,86,86,86,86,86,86,86,86,86,86,86,86,86,458,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,466,203,149,429,94,432,160,687,539,63,237,283,192,248,348,259,427,526,396,676,254,468,487,212,327,623,49,633,322,493,434,688,357,361,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131]);return{mapStr:"صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(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)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(ì°¨)(ì¹´)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(æ°´)(木)(金)(土)(日)(æ ª)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(å­¦)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースノットハイツパーツピã
1‚¯ãƒ«ãƒ•ランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے\uD834\uDD58\uD834\uDD65\uD834\uDD6E\uD834\uDD58\uD834\uDD65\uD834\uDD6F\uD834\uDD58\uD834\uDD65\uD834\uDD70\uD834\uDD58\uD834\uDD65\uD834\uDD71\uD834\uDD58\uD834\uDD65\uD834\uDD72\uD834\uDDB9\uD834\uDD65\uD834\uDD6E\uD834\uDDBA\uD834\uDD65\uD834\uDD6E\uD834\uDDB9\uD834\uDD65\uD834\uDD6F\uD834\uDDBA\uD834\uDD65\uD834\uDD6F〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧ssi̇ijl\xb7ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾἀιἁιἂιἃιἄιἅιἆιἇιἠιἡιἢιἣιἤιἥιἦιἧιὠιὡιὢιὣιὤιὥιὦιὧιὰιαιάιᾶι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs\xb0c\xb0fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgevギガデシドルナノピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwbstմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ\uD834\uDD57\uD834\uDD650,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmddjほかココ\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfeāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷ\xffźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔá
1†žá†¡ä¸Šä¸­ä¸‹ç”²ä¸™ä¸å¤©åœ°å•å¹¼ç®ìš°ç§˜ç”·é©å„ªå°æ³¨é …写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙇꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞌꞑꞓꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꬷꭒᎠᎡᎢᎣᎤᎥᎦᎧᎨᎩᎪᎫᎬᎭᎮᎯᎰᎱᎲᎳᎴᎵᎶᎷᎸᎹᎺᎻᎼᎽᎾᎿᏀᏁᏂᏃᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏎᏏᏐᏑᏒᏓᏔᏕᏖᏗᏘᏙᏚᏛᏜᏝᏞᏟᏠᏡᏢᏣᏤᏥᏦᏧᏨᏩᏪᏫᏬᏭᏮᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷勞擄櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵令囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵\uD850\uDEEE舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒\uD84A\uDC4A\uD84A\uDC44\uD84C\uDFD5㮝䀘䀹\uD854\uDE49\uD857\uDCD0\uD85F\uDED3齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—–_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ\xa2\xa3\xac\xa6\xa5₩│←↑→↓■○\uD801\uDC28\uD801\uDC29\uD801\uDC2A\uD801\uDC2B\uD801\uDC2C\uD801\uDC2D\uD801\uDC2E\uD801\uDC2F\uD801\uDC30\uD801\uDC31\uD801\uDC32\uD801\uDC33\uD801\uDC34\uD801\uDC35\uD801\uDC36\uD801\uDC37\uD801\uDC38\uD801\uDC39\uD801\uDC3A\uD801\uDC3B\uD801\uDC3C\uD801\uDC3D\uD801\uDC3E\uD801\uDC3F\uD801\uDC40\uD801\uDC41\uD801\uDC42\uD801\uDC43\uD801\uDC44\uD801\uDC45\uD801\uDC46\uD801\uDC47\uD801\uDC48\uD801\uDC49\uD801\uDC4A\uD801\uDC4B\uD801\uDC4C\uD801\uDC4D\uD801\uDC4E\uD801\uDC4F\uD801\uDCD8\uD801\uDCD9\uD801\uDCDA\uD801\uDCDB\uD801\uDCDC\uD801\uDCDD\uD801\uDCDE\uD801\uDCDF\uD801\uDCE0\uD801\uDCE1\uD801\uDCE2\uD801\uDCE3\uD801\uDCE4\uD801\uDCE5\uD801\uDCE6\uD801\uDCE7\uD801\uDCE8\uD801\uDCE9\uD801\uDCEA\uD801\uDCEB\uD801\uDCEC\uD801\uDCED\uD801\uDCEE\uD801\uDCEF\uD801\uDCF0\uD801\uDCF1\uD801\uDCF2\uD801\uDCF3\uD801\uDCF4\uD801\uDCF5\uD801\uDCF6\uD801\uDCF7\uD801\uDCF8\uD801\uDCF9\uD801\uDCFA\uD801\uDCFB\uD803\uDCC0\uD803\uDCC1\uD803\uDCC2\uD803\uDCC3\uD803\uDCC4\uD803\uDCC5\uD803\uDCC6\uD803\uDCC7\uD803\uDCC8\uD803\uDCC9\uD803\uDCCA\uD803\uDCCB\uD803\uDCCC\uD803\uDCCD\uD803\uDCCE\uD803\uDCCF\uD803\uDCD0\uD803\uDCD1\uD803\uDCD2\uD803\uDCD3\uD803\uDCD4\uD803\uDCD5\uD803\uDCD6\uD803\uDCD7\uD803\uDCD8\uD803\uDCD9\uD803\uDCDA\uD803\uDCDB\uD803\uDCDC\uD803\uDCDD\uD803\uDCDE\uD803\uDCDF\uD803\uDCE0\uD803\uDCE1\uD803\uDCE2\uD803\uDCE3\uD803\uDCE4\uD803\uDCE5\uD803\uDCE6\uD803\uDCE7\uD803\uDCE8\uD803\uDCE9\uD803\uDCEA\uD803\uDCEB\uD803\uDCEC\uD803\uDCED\uD803\uDCEE\uD803\uDCEF\uD803\uDCF0\uD803\uDCF1\uD803\uDCF2\uD806\uDCC0\uD806\uDCC1\uD806\uDCC2\uD806\uDCC3\uD806\uDCC4\uD806\uDCC5\uD806\uDCC6\uD806\uDCC7\uD806\uDCC8\uD806\uDCC9\uD806\uDCCA\uD806\uDCCB\uD806\uDCCC\uD806\uDCCD\uD806\uDCCE\uD806\uDCCF\uD806\uDCD0\uD806\uDCD1\uD806\uDCD2\uD806\uDCD3\uD806\uDCD4\uD806\uDCD5\uD806\uDCD6\uD806\uDCD7\uD806\uDCD8\uD806\uDCD9\uD806\uDCDA\uD806\uDCDB\uD806\uDCDC\uD806\uDCDD\uD806\uDCDE\uD806\uDCDFıȷ∇∂\uD83A\uDD22\uD83A\uDD23\uD83A\uDD24\uD83A\uDD25\uD83A\uDD26\uD83A\uDD27\uD83A\uDD28\uD83A\uDD29\uD83A\uDD2A\uD83A\uDD2B\uD83A\uDD2C\uD83A\uDD2D\uD83A\uDD2E\uD83A\uDD2F\uD83A\uDD30\uD83A\uDD31\uD83A\uDD32\uD83A\uDD33\uD83A\uDD34\uD83A\uDD35\uD83A\uDD36\uD83A\uDD37\uD83A\uDD38\uD83A\uDD39\uD83A\uDD3A\uD83A\uDD3B\uD83A\uDD3C\uD83A\uDD3D\uD83A\uDD3E\uD83A\uDD3F\uD83A\uDD40\uD83A\uDD41\uD83A\uDD42\uD83A\uDD43ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁\uD840\uDD22你侻倂偺備像㒞\uD841\uDE3A兔兤具\uD841\uDD1C㒹內\uD841\uDD4B冗冤仌冬\uD864\uDDDF刃㓟刻剆剷㔕包匆卉博即卽卿\uD842\uDE2C灰及叟\uD842\uDF63叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬\uD845\uDCE4売壷夆夢奢\uD845\uDEA8\uD845\uDEEA姬娛娧姘婦㛮嬈嬾\uD846\uDDC8寃寘寳\uD846\uDF18寿将㞁屠峀岍\uD847\uDDE4嵃\uD847\uDDE6嵮嵫嵼巡
1巢㠯巽帨帽幩㡢\uD848\uDD83㡼庰庳庶\uD868\uDF92\uD848\uDF31舁弢㣇\uD84C\uDEB8\uD858\uDDDA形彫㣣徚忍志忹悁㤺㤜\uD849\uDED4惇慈慌慺憲憤憯懞戛扝抱拔捐\uD84A\uDF0C挽拼捨掃揤\uD84A\uDFF1搢揅掩㨮摩摾撝摷㩬敬\uD84C\uDC0A旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓\uD84C\uDFC3㭉柺枅桒\uD84D\uDC6D梎栟椔楂榣槪檨\uD84D\uDEA3櫛㰘次\uD84E\uDCA7歔㱎歲殟殻\uD84E\uDE8D\uD847\uDD0B\uD84E\uDEFA汎\uD84F\uDCBC沿泍汧洖派浩浸涅\uD84F\uDD1E洴港湮㴳滇\uD84F\uDED1淹潮\uD84F\uDF5E\uD84F\uDF8E濆瀹瀛㶖灊災灷炭\uD841\uDD25煅\uD850\uDE63熜爨牐\uD851\uDE08犀犕\uD851\uDF35\uD852\uDC14獺王㺬玥㺸瑇瑜璅瓊㼛甤\uD853\uDC36甾\uD853\uDC92\uD848\uDD9F瘐\uD853\uDFA1\uD853\uDFB8\uD854\uDC44㿼䀈\uD854\uDCF3\uD854\uDCF2\uD854\uDD19\uD854\uDD33眞真瞋䁆䂖\uD855\uDC1D硎䃣\uD855\uDE26\uD855\uDE9A\uD855\uDEC5秫䄯穊穏\uD856\uDD7C\uD856\uDEA7䈂\uD856\uDFAB篆築䈧\uD857\uDC80糒䊠糨糣紀\uD857\uDF86絣䌁緇縂繅䌴\uD858\uDE28\uD858\uDE47䍙\uD858\uDED9罺\uD858\uDF3E羕翺\uD859\uDCDA\uD859\uDD23聠\uD859\uDDA8聰\uD84C\uDF5F䏕育脃䐋脾媵\uD859\uDFA7\uD859\uDFB5\uD84C\uDF93\uD84C\uDF9C舄辞䑫芑芋芝劳花芳芽苦\uD85A\uDF3C茝荣莭茣莽菧荓菊菌菜\uD85B\uDC36\uD85B\uDD6B\uD85B\uDCD5䔫蓱蓳蔖\uD85C\uDFCA蕤\uD85B\uDF2C䕝䕡\uD85B\uDFB1\uD85C\uDCD2䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠\uD85D\uDE67裗裞䘵裺㒻\uD85E\uDCAE\uD85E\uDD66䚾䛇誠\uD85F\uDCA8貫賁贛起\uD85F\uDF2F\uD842\uDC04跋趼跰\uD842\uDCDE軔\uD861\uDDD2\uD861\uDDED邔郱鄑\uD861\uDF2E鄛鈸鋗鋘鉼鏹鐕\uD862\uDFFA開䦕閷\uD863\uDD77䧦雃嶲霣\uD864\uDD45\uD864\uDE1A䩮䩶韠\uD865\uDC0A䪲\uD865\uDC96頩\uD865\uDDB6飢䬳餩馧駂駾䯎\uD866\uDF30鱀鳽䳎䳭鵧\uD868\uDCCE䳸\uD868\uDD05\uD868\uDE0E\uD868\uDE91䵖黾鼅鼏鼖\uD869\uDE00",mapChar:function(r){return r>=196608?r>=917760&&r<=917999?18874368:0:e[t[r>>4]][15&r]}}},void 0!==(r=(function(){return n()}).apply(t,[]))&&(e.exports=r)},69654:function(e){"use strict";let t=/^xn--/,r=/[^\0-\x7E]/,n=/[\x2E\u3002\uFF0E\uFF61]/g,i={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},s=Math.floor,o=String.fromCharCode;function a(e){throw RangeError(i[e])}function c(e,t){let r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),i+(function(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r})((e=e.replace(n,".")).split("."),t).join(".")}function l(e){let t=[],r=0,n=e.length;for(;r<n;){let i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let n=e.charCodeAt(r++);(64512&n)==56320?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}let u=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},h=function(e,t,r){let n=0;for(e=r?s(e/700):e>>1,e+=s(e/t);e>455;n+=36)e=s(e/35);return s(n+36*e/(e+38))},d=function(e){let t=[],r=e.length,n=0,i=128,o=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let r=0;r<c;++r)e.charCodeAt(r)>=128&&a("not-basic"),t.push(e.charCodeAt(r));for(let u=c>0?c+1:0;u<r;){let c=n;for(let t=1,i=36;;i+=36){var l;u>=r&&a("invalid-input");let c=(l=e.charCodeAt(u++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36;(c>=36||c>s((2147483647-n)/t))&&a("overflow"),n+=c*t;let h=i<=o?1:i>=o+26?26:i-o;if(c<h)break;let d=36-h;t>s(2147483647/d)&&a("overflow"),t*=d}let d=t.length+1;o=h(n-c,d,0==c),s(n/d)>2147483647-i&&a("overflow"),i+=s(n/d),n%=d,t.splice(n++,0,i)}return String.fromCodePoint(...t)},f=function(e){let t=[],r=(e=l(e)).length,n=128,i=0,c=72;for(let r of e)r<128&&t.push(o(r));let d=t.length,f=d;for(d&&t.push("-");f<r;){let r=2147483647;for(let t of e)t>=n&&t<r&&(r=t);let l=f+1;for(let p of(r-n>s((2147483647-i)/l)&&a("overflow"),i+=(r-n)*l,n=r,e))if(p<n&&++i>2147483647&&a("overflow"),p==n){let e=i;for(let r=36;;r+=36){let n=r<=c?1:r>=c+26?26:r-c;if(e<n)break;let i=e-n,a=36-n;t.push(o(u(n+i%a,0))),e=s(i/a)}t.push(o(u(e,0))),c=h(i,l,f==d),i=0,++f}++i,++n}return t.join("")};e.exports={version:"2.1.0",ucs2:{decode:l,encode:e=>String.fromCodePoint(...e)},decode:d,encode:f,toASCII:function(e){return c(e,function(e){return r.test(e)?"xn--"+f(e):e})},toUnicode:function(e){return c(e,function(e){return t.test(e)?d(e.slice(4).toLowerCase()):e})}}},61664:function(e,t,r){var n,i;i=function(e,t){function r(r,n,i){for(var s=[],o=e.ucs2.decode(r),a=0;a<o.length;a++){var c=o[a],l=e.ucs2.encode([o[a]]),u=t.mapChar(c),h=u>>23,d=u>>21&3,f=u>>5&65535,p=31&u,m=t.mapStr.substr(f,p);if(0===d||n&&1&h)throw Error("Illegal char "+l);1===d?s.push(m):2===d?s.push(i?m:l):3===d&&s.push(l)}return s.join("").normalize("NFC")}function n(t,n,s){void 0===s&&(s=!1);var o=r(t,s,n).split(".");return(o=o.map(function(t){return t.startsWith("xn--")?i(t=e.decode(t.substring(4)),s,!1):i(t,s,n),t})).join(".")}
1function i(e,n,i){if("-"===e[2]&&"-"===e[3]||e.startsWith("-")||e.endsWith("-")||e.includes(".")||r(e,n,i)!==e)throw Error("Failed to validate "+e);var s=e.codePointAt(0);if(16777216&t.mapChar(s))throw Error("Label contains illegal character: "+s)}return{toUnicode:function(e,t){return void 0===t&&(t={}),n(e,!1,"useStd3ASCII"in t&&t.useStd3ASCII)},toAscii:function(t,r){void 0===r&&(r={});var i,s=!("transitional"in r)||r.transitional,o="useStd3ASCII"in r&&r.useStd3ASCII,a="verifyDnsLength"in r&&r.verifyDnsLength,c=n(t,s,o).split(".").map(e.toASCII),l=c.join(".");if(a){if(l.length<1||l.length>253)throw Error("DNS name has wrong length: "+l);for(i=0;i<c.length;i++){var u=c[i];if(u.length<1||u.length>63)throw Error("DNS label has wrong length: "+u)}}return l}}},void 0!==(n=(function(e,t){return i(e,t)}).apply(t,[r(69654),r(47357)]))&&(e.exports=n)},79194:function(e){e.exports=function(e){if("string"!=typeof e)throw Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},5929:function(e,t,r){var n=r(37658);!function(){"use strict";var t="object"==typeof window?window:{};!t.JS_SHA3_NO_NODE_JS&&"object"==typeof n&&n.versions&&n.versions.node&&(t=r.g);for(var i=!t.JS_SHA3_NO_COMMON_JS&&e.exports,s="0123456789abcdef".split(""),o=[0,8,16,24],a=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],c=[224,256,384,512],l=["hex","buffer","arrayBuffer","array"],u=function(e,t,r){return function(n){return new _(e,t,e).update(n)[r]()}},h=function(e,t,r){return function(n,i){return new _(e,t,i).update(n)[r]()}},d=function(e,t){var r=u(e,t,"hex");r.create=function(){return new _(e,t,e)},r.update=function(e){return r.create().update(e)};for(var n=0;n<l.length;++n){var i=l[n];r[i]=u(e,t,i)}return r},f=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:d},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:d},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var r=h(e,t,"hex");r.create=function(r){return new _(e,t,r)},r.update=function(e,t){return r.create(t).update(e)};for(var n=0;n<l.length;++n){var i=l[n];r[i]=h(e,t,i)}return r}}],p={},m=[],y=0;y<f.length;++y)for(var b=f[y],g=b.bits,w=0;w<g.length;++w){var v=b.name+"_"+g[w];m.push(v),p[v]=b.createMethod(g[w],b.padding)}function _(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}_.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var r,n,i=e.length,s=this.blocks,a=this.byteCount,c=this.blockCount,l=0,u=this.s;l<i;){if(this.reset)for(r=1,this.reset=!1,s[0]=this.block;r<c+1;++r)s[r]=0;if(t)for(r=this.start;l<i&&r<a;++l)s[r>>2]|=e[l]<<o[3&r++];else for(r=this.start;l<i&&r<a;++l)(n=e.charCodeAt(l))<128?s[r>>2]|=n<<o[3&r++]:(n<2048?s[r>>2]|=(192|n>>6)<<o[3&r++]:(n<55296||n>=57344?s[r>>2]|=(224|n>>12)<<o[3&r++]:(n=65536+((1023&n)<<10|1023&e.charCodeAt(++l)),s[r>>2]|=(240|n>>18)<<o[3&r++],s[r>>2]|=(128|n>>12&63)<<o[3&r++]),s[r>>2]|=(128|n>>6&63)<<o[3&r++]),s[r>>2]|=(128|63&n)<<o[3&r++]);if(this.lastByteIndex=r,r>=a){for(this.start=r-a,this.block=s[c],r=0;r<c;++r)u[r]^=s[r];A(u),this.reset=!0}else this.start=r}return this},_.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];A(n)},_.prototype.toString=_.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,c="";a<n;){for(o=0;o<t&&a<n;++o,++a)c+=s[(e=r[o])>>4&15]+s[15&e]+s[e>>12&15]+s[e>>8&15]+s[e>>
120&15]+s[e>>16&15]+s[e>>28&15]+s[e>>24&15];a%t==0&&(A(r),o=0)}return i&&(e=r[o],i>0&&(c+=s[e>>4&15]+s[15&e]),i>1&&(c+=s[e>>12&15]+s[e>>8&15]),i>2&&(c+=s[e>>20&15]+s[e>>16&15])),c},_.prototype.arrayBuffer=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=this.outputBits>>3,c=new Uint32Array(e=new ArrayBuffer(i?n+1<<2:a));o<n;){for(s=0;s<t&&o<n;++s,++o)c[o]=r[s];o%t==0&&A(r)}return i&&(c[s]=r[s],e=e.slice(0,a)),e},_.prototype.buffer=_.prototype.arrayBuffer,_.prototype.digest=_.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,s=this.extraBytes,o=0,a=0,c=[];a<i;){for(o=0;o<r&&a<i;++o,++a)e=a<<2,t=n[o],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;a%r==0&&A(n)}return s&&(e=a<<2,t=n[o],s>0&&(c[e]=255&t),s>1&&(c[e+1]=t>>8&255),s>2&&(c[e+2]=t>>16&255)),c};var A=function(e){var t,r,n,i,s,o,c,l,u,h,d,f,p,m,y,b,g,w,v,_,A,M,x,E,S,k,C,P,T,U,B,I,O,R,N,F,L,$,j,D,q,H,V,z,G,K,W,Z,J,Y,X,Q,ee,et,er,en,ei,es,eo,ea,ec,el,eu;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],s=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],h=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],f=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49],t=f^(o<<1|c>>>31),r=p^(c<<1|o>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|u>>>31),r=s^(u<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=o^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(f<<1|p>>>31),r=u^(p<<1|f>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=h^(i<<1|s>>>31),r=d^(s<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],y=e[1],K=e[11]<<4|e[10]>>>28,W=e[10]<<4|e[11]>>>28,P=e[20]<<3|e[21]>>>29,T=e[21]<<3|e[20]>>>29,ea=e[31]<<9|e[30]>>>23,ec=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,b=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,U=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,el=e[42]<<2|e[43]>>>30,eu=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,F=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,w=e[25]<<11|e[24]>>>21,v=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,O=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,en=e[17]<<23|e[16]>>>9,ei=e[16]<<23|e[17]>>>9,$=e[26]<<25|e[27]>>>7,j=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,A=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,z=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,k=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,es=e[29]<<7|e[28]>>>25,eo=e[28]<<7|e[29]>>>25,D=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,M=e[48]<<14|e[49]>>>18,x=e[49]<<14|e[48]>>>18,e[0]=m^~b&w,e[1]=y^~g&v,e[10]=E^~k&P,e[11]=S^~C&T,e[20]=R^~F&$,e[21]=N^~L&j,e[30]=z^~K&Z,e[31]=G^~W&J,e[40]=et^~en&es,e[41]=er^~ei&eo,e[2]=b^~w&_,e[3]=g^~v&A,e[12]=k^~P&U,e[13]=C^~T&B,e[22]=F^~$&D,e[23]=L^~j&q,e[32]=K^~Z&Y,e[33]=W^~J&X,e[42]=en^~es&ea,e[43]=ei^~eo&ec,e[4]=w^~_&M,e[5]=v^~A&x,e[14]=P^~U&I,e[15]=T^~B&O,e[24]=$^~D&H,e[25]=j^~q&V,e[34]=Z^~Y&Q,e[35]=J^~X&ee,e[44]=es^~ea&el,e[45]=eo^~ec&eu,e[6]=_^~M&m,e[7]=A^~x&y,e[16]=U^~I&E,e[17]=B^~O&S,e[26]=D^~H&R,e[27]=q^~V&N,e[36]=Y^~Q&z,e[37]=X^~ee&G,e[46]=ea^~el&et,e[47]=ec^~eu&er,e[8]=M^~m&b,e[9]=x^~y&g,e[18]=I^~E&k,e[19]=O^~S&C,e[28]=H^~R&F,e[29]=V^~N&L,e[38]=Q^~z&K,e[39]=ee^~G&W,e[48]=el^~et&en,e[49]=eu^~er&ei,e[0]^=a[n],e[1]^=a[n+1]};if(i)e.exports=p;else for(var y=0;y<m.length;++y)t[m[y]]=p[m[y]]}()},71344:function(e){function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,i,s=typeof e;if("string"===s&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===s&&isFinite(e))return r.long?(n=Math.abs(e))>=864e5?t(e,n,864e5,"day"):n>=36e5?t(e,n,36e5,"hour"):n>=6e4?t(e,n,6e4,"minute"):n>
1=1e3?t(e,n,1e3,"second"):e+" ms":(i=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":i>=36e5?Math.round(e/36e5)+"h":i>=6e4?Math.round(e/6e4)+"m":i>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},82228:function(e,t,r){var n=r(79194);e.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}},4382:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.validate=t.v7=t.v6ToV1=t.v6=t.v5=t.v4=t.v3=t.v1ToV6=t.v1=t.stringify=t.parse=t.NIL=t.MAX=void 0;var n=r(61514);Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return n.default}});var i=r(92304);Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return i.default}});var s=r(8863);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return s.default}});var o=r(64807);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.default}});var a=r(68450);Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return a.default}});var c=r(21318);Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return c.default}});var l=r(28408);Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return l.default}});var u=r(5088);Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return u.default}});var h=r(44170);Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return h.default}});var d=r(8227);Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return d.default}});var f=r(52221);Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return f.default}});var p=r(38253);Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return p.default}});var m=r(53127);Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return m.default}});var y=r(4230);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return y.default}})},61514:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},55006:function(e,t){"use strict";function r(e){return(e+64>>>9<<4)+14+1}function n(e,t){let r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function i(e,t,r,i,s,o){var a;return n((a=n(n(t,e),n(i,o)))<<s|a>>>32-s,r)}function s(e,t,r,n,s,o,a){return i(t&r|~t&n,e,t,s,o,a)}function o(e,t,r,n,s,o,a){return i(t&n|r&~n,e,t,s,o,a)}function a(e,t,r,n,s,o,a){return i(t^r^n,e,t,s,o,a)}function c(e,t,r,n,s,o,a){return i(r^(t|~n),e,t,s,o,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(e){let t=new Uint8Array(4*e.length);for(let r=0;r<4*e.length;r++)t[r]=e[r>>2]>>>r%4*8&255;return t}(function(e,t){let i=new Uint32Array(r(t)).fill(0);i.set(e),i[t>>5]|=128<<t%32,i[i.length-1]=t,e=i;let l=1732584193,u=-271733879,h=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){let r=l,i=u,f=h,p=d;l=s(l,u,h,d,e[t],7,-680876936),d=s(d,l,u,h,e[t+1],12,-389564586),h=s(h,d,l,u,e[t+2],17,606105819),u=s(u,h,d,l,e[t+3],22,-1044525330),l=s(l,u,h,d,e[t+4],7,-176418897),d=s(d,l,u,h,e[t+5],12,1200080426),h=s(h,d,l,u,e[t+6],17,-1473231341),u=s(u,h,d,l,e[t+7],22,-45705983),l=s(l,u,h,d,e[t+8],7,1770035416),d=s(d,l,u,h,e[t+9],12,-1958414417),h=s(h,d,l,u,e[t+10],17,-42063),u=s(u,h,d,l,e[t+11],22,-1990404162),l=s(l,u,h,d,e[t+12],7,1804603682),d=s(d,l,u,h,e[t+13],12,-40341101),h=s(h,d,l,u,e[t+14],17,-1502002290),u=s(u,h,d,l,e[t+15],22,1236535329),l=o(l,u,h,d,e[t+1],5,-165796510),d=o(d,l,u,h,e[t+6],9,-1069501632),h=o(h,d,l,u,e[t+11],14,643717713),u=o(u,h,d,l,e[t],20,-373897302),l=o(l,u,h,d,e[t+5],5,-701558691),d=o(d,l,u,h,e[t+10],9,38016083),h=o(h,d,l,u,e[t+15],14,-660478335),u=o(u,h,d,l,e[t+4],20,-405537848),l=o(l,u,h,d,e[t+9],5,568446438),d=o(d,l,u,h,e[t+14],9,-1019803690),h=o(h,d,l,u,e[t+3],14,-187363961),u=o(u,h,d,l,e[t+8],20,1163531501),l=o(l,u,h,d,e[t+13],5,-1444681467),d=o(d,l,u,h,e[t+2],9,-51403784),h=o(h,d,l,u,e[t+7],14,1735328473),u=o(u,h,d,l,e[t+12],20,-1926607734),l=a(l,u,h,d,e[t+5],4,-378558),d=a(d,l,u,h,e[t+8],11,-2022574463),h=a(h,d,l,u,e[t+11],16,1839030562),u=a(u,h,d,l,e[t+14],23,-35309556),l=a(l,u,h,d,e[t+1],4,-1530992060),d=a(d,l,u,h,e[t+4],11,1272893353),h=a(h,d,l,u,e[t+7],16,-155497632),u=a(u,h,d,l,e[t+10],23,-1094730640),l=a(l,u,h,d,e[t+13],4,681279174),d=a(d,l,u,h,e[t],11,-358537222),h=a(h,d,l,u,e[t+3],16,-722521979),u=a(u,h,d,l,e[t+6],23,76029189),l=a(l,u,h,d,e[t+9],4,-640364487),d=a(d,l,u,h,e[t+12],11,-421815835),h=a(h,d,l,u,e[t+15],16,530742520),u=a(u,h,d,l,e[t+2],23,-995338651),l=c(l,u,h,d,e[t],6,-198630844),d=c(d,l,u,h,e[t+7],10,1126891415),h=c(h,d,l,u,e[t+14],15,-1416354905),u=c(u,h,d,l,e[t+5],21,-57434055),l=c(l,u,h,d,e[t+12],6,1700485571),d=c(d,l,u,h,e[t+3],10,-1894986606),h=c(h,d,l,u,e[t+10],15,-1051523),u=c(u,h,d,l,e[t+1],21,-2054922799),l=c(l,u,h,d,e[t+8],6,1873313359),d=c(d,l,u,h,e[t+15],10,-30611744),h=c(h,d,l,u,e[t+6],15,-1560198380),u=c(u,h,d,l,e[t+13],21,1309151649),l=c(l,u,h,d,e[t+4],6,-145523070),d=c(d,l,u,h,e[t+11],10,-1120210379),h=c(h,d,l,u,e[t+2],15,718787259),u=c(u,h,d,l,e[t+9],21,-343485551),l=n(l,r),u=n(u,i),h=n(h,f),d=n(d,p)}return Uint32Array.of(l,u,h,d)}(function(e){if(0===e.length)return new Uint32Array;let t=new Uint32Array(r(8*e.length)).fill(0);for(let r=0;r<e.length;r++)t[r>>2]|=(255&e[r])<<r%4*8;return t}(e),8*e.length))}},53883:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});let r="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:r}},92304:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="00000000-0000-0000-0000-000000000000"},8863:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(53127);t.default=function(e){let t;if(!(0,n.default)(e))throw TypeError("Invalid UUID");return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}},62333:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},67030:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0});let n=new Uint8Array(16);t.default=function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(n)}},52381:function(e,t){"use strict";function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],i=new Uint8Array(e.length+1);i.set(e),i[e.length]=128;let s=Math.ceil(((e=i).length/4+2)/16),o=Array(s);for(let t=0;t<s;++t){let r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];o[t]=r}o[s-1][14]=(e.length-1)*8/4294967296,o[s-1][14]=Math.floor(o[s-1][14]),o[s-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<s;++e){let i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=o[e][t];for(let e=16;e<80;++e)i[e]=r(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let s=n[0],a=n[1],c=n[2],l=n[3],u=n[4];for(let e=0;e<80;++e){let n=Math.floor(e/20),o=r(s,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}(n,a,c,l)+u+t[n]+i[e]>>>0;u=l,l=c,c=r(a,30)>>>0,a=s,s=o}n[0]=n[0]+s>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+c>>>0,n[3]=n[3]+l>>>0,n[4]=n[4]+u>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>
1>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}},64807:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unsafeStringify=void 0;let n=r(53127),i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function s(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}t.unsafeStringify=s,t.default=function(e,t=0){let r=s(e,t);if(!(0,n.default)(r))throw TypeError("Stringified UUID is invalid");return r}},68450:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateV1State=void 0;let n=r(67030),i=r(64807),s={};function o(e,t,r){return e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=r.slice(10,16),e.node[0]|=1,e.clockseq=(r[8]<<8|r[9])&16383),e.msecs=t,e}function a(e,t,r,n,i,s,o=0){if(e.length<16)throw Error("Random bytes length must be >= 16");if(s){if(o<0||o+16>s.length)throw RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`)}else s=new Uint8Array(16),o=0;t??=Date.now(),r??=0,n??=(e[8]<<8|e[9])&16383,i??=e.slice(10,16);let a=((268435455&(t+=122192928e5))*1e4+r)%4294967296;s[o++]=a>>>24&255,s[o++]=a>>>16&255,s[o++]=a>>>8&255,s[o++]=255&a;let c=t/4294967296*1e4&268435455;s[o++]=c>>>8&255,s[o++]=255&c,s[o++]=c>>>24&15|16,s[o++]=c>>>16&255,s[o++]=n>>>8|128,s[o++]=255&n;for(let e=0;e<6;++e)s[o++]=i[e];return s}t.updateV1State=o,t.default=function(e,t,r){let c;let l=e?._v6??!1;if(e){let t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)c=a(e.random??e.rng?.()??(0,n.default)(),e.msecs,e.nsecs,e.clockseq,e.node,t,r);else{let e=Date.now(),i=(0,n.default)();o(s,e,i),c=a(i,s.msecs,s.nsecs,l?void 0:s.clockseq,l?void 0:s.node,t,r)}return t??(0,i.unsafeStringify)(c)}},21318:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(8863),i=r(64807);t.default=function(e){var t;let r=(t="string"==typeof e?(0,n.default)(e):e,Uint8Array.of((15&t[6])<<4|t[7]>>4&15,(15&t[7])<<4|(240&t[4])>>4,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,(15&t[1])<<4|(240&t[2])>>4,96|15&t[2],t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]));return"string"==typeof e?(0,i.unsafeStringify)(r):r}},28408:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;let n=r(55006),i=r(3326);var s=r(3326);function o(e,t,r,s){return(0,i.default)(48,n.default,e,t,r,s)}Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return s.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return s.URL}}),o.DNS=i.DNS,o.URL=i.URL,t.default=o},3326:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=t.stringToBytes=void 0;let n=r(8863),i=r(64807);function s(e){let t=new Uint8Array((e=unescape(encodeURIComponent(e))).length);for(let r=0;r<e.length;++r)t[r]=e.charCodeAt(r);return t}t.stringToBytes=s,t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t.default=function(e,t,r,o,a,c){let l="string"==typeof r?s(r):r,u="string"==typeof o?(0,n.default)(o):o;if("string"==typeof o&&(o=(0,n.default)(o)),o?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let h=new Uint8Array(16+l.length);if(h.set(u),h.set(l,u.length),(h=t(h))[6]=15&h[6]|e,h[8]=63&h[8]|128,a){c=c||0;for(let e=0;e<16;++e)a[c+e]=h[e];return a}return(0,i.unsafeStringify)(h)}},5088:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(53883),i=r(67030),s=r(64807);t.default=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();let o=(e=e||{}).random??e.rng?.()??(0,i.default)();if(o.length<16)throw Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=o[e];return t}return(0,s.unsafeStringify)(o)}},44170:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;let n=r(52381),i=r(3326);var s=r(3326);function o(e,t,r,s){return(0,i.default)(80,n.default,e,t,r,s)}Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return s.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return s.URL}}),o.DNS=i.DNS,o.URL=i.URL,t.default=o},8227:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(64807),i=r(68450),s=r(21318);t.default=function(e,t,r){e??={},r??=0;let o=(0,i.default)({...e,_v6:!0},new Uint8Array(16));if(o=(0,s.default)(o),t){for(let e=0;e<16;e++)t[r+e]=o[e];return t}return(0,n.unsafeStringify)(o)}},52221:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(8863),i=r(64807);t.default=function(e){var t;let r=(t="string"==typeof e?(0,n.default)(e):e,Uint8Array.of((15&t[3])<<4|t[4]>>4&15,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|15&t[6],t[7],(15&t[1])<<4|(240&t[2])>>4,(15&t[2])<<4|(240&t[3])>>4,16|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]));return"string"==typeof e?(0,i.unsafeStringify)(r):r}},38253:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateV7State=void 0;let n=r(67030),i=r(64807),s={};function o(e,t,r){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++),e}function a(e,t,r,n,i=0){if(e.length<16)throw Error("Random bytes length must be >= 16");if(n){if(i<0||i+16>n.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`)}else n=new Uint8Array(16),i=0;return t??=Date.now(),r??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],n[i++]=t/1099511627776&255,n[i++]=t/4294967296&255,n[i++]=t/16777216&255,n[i++]=t/65536&255,n[i++]=t/256&255,n[i++]=255&t,n[i++]=112|r>>>28&15,n[i++]=r>>>20&255,n[i++]=128|r>>>14&63,n[i++]=r>>>6&255,n[i++]=r<<2&255|3&e[10],n[i++]=e[11],n[i++]=e[12],n[i++]=e[13],n[i++]=e[14],n[i++]=e[15],n}t.updateV7State=o,t.default=function(e,t,r){let c;if(e)c=a(e.random??e.rng?.()??(0,n.default)(),e.msecs,e.seq,t,r);else{let e=Date.now(),i=(0,n.default)();o(s,e,i),c=a(i,s.msecs,s.seq,t,r)}return t??(0,i.unsafeStringify)(c)}},53127:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(62333);t.default=function(e){return"string"==typeof e&&n.default.test(e)}},4230:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(53127);t.default=function(e){if(!(0,n.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},13750:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{createEVMClient:function(){return s_},getInfuraRpcUrls:function(){return su}});var i,s,o,a,c,l,u,h,d,f,p,m,y,b,g,w,v,_,A,M,x,E,S,k,C,P,T,U,B,I,O,R,N,F,L,$,j,D,q,H,V,z,G,K,W,Z,J,Y,X,Q,ee,et,er,en,ei,es,eo,ea,ec,el,eu,eh,ed,ef,ep,em,ey,eb,eg,ew,ev,e_,eA,eM,ex,eE,eS,ek,eC,eP,eT,eU,eB,eI,eO,eR,eN,eF,eL,e$,ej,eD,eq,eH,eV,ez,eG,eK,eW,eZ,eJ,eY,eX,eQ,e1,e6,e2,e0,e8,e3,e5,e4,e9,e7,te,tt,tr,tn,ti,ts,to,ta,tc,tl,tu,th,td,tf,tp,tm,ty=r(97211),tb=r(71876),tg=r(6092),tw=r.n(tg);class tv extends TypeError{constructor(e,t){let r;let{message:n,explanation:i,...s}=e,{path:o}=e,a=0===o.length?n:`At path: ${o.join(".")} -- ${n}`;super(i??a),null!=i&&(this.cause=a),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}function t_(e){return"object"==typeof e&&null!==e}function tA(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function*tM(e,t,r,n){var i;for(let s of(t_(i=e)&&"function"==typeof i[Symbol.iterator]||(e=[e]),e)){let e=function(e,t,r,n){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:i,branch:s}=t,{type:o}=r,{refinement:a,message:c=`Expected a value of type \`${o}\`${a?` with refinement \`${a}\``:""}, but received: \`${tA(n)}\``}=e;return{value:n,type:o,refinement:a,key:i[i.length-1],path:i,branch:s,...e,message:c}}(s,t,r,n);e&&(yield e)}}function*tx(e,t,r={}){let{path:n=[],branch:i=[e],coerce:s=!1,mask:o=!1}=r,a={path:n,branch:i};if(s&&(e=t.coercer(e,a),o&&"type"!==t.type&&t_(t.schema)&&t_(e)&&!Array.isArray(e)))for(let r in e)void 0===t.schema[r]&&delete e[r];let c="valid";for(let n of t.validator(e,a))n.explanation=r.message,c="not_val
1id",yield[n,void 0];for(let[l,u,h]of t.entries(e,a))for(let t of tx(u,h,{path:void 0===l?n:[...n,l],branch:void 0===l?i:[...i,u],coerce:s,mask:o,message:r.message}))t[0]?(c=null===t[0].refinement||void 0===t[0].refinement?"not_valid":"not_refined",yield[t[0],void 0]):s&&(u=t[1],void 0===l?e=u:e instanceof Map?e.set(l,u):e instanceof Set?e.add(u):t_(e)&&(void 0!==u||l in e)&&(e[l]=u));if("not_valid"!==c)for(let n of t.refiner(e,a))n.explanation=r.message,c="not_refined",yield[n,void 0];"valid"===c&&(yield[void 0,e])}class tE{constructor(e){let{type:t,schema:r,validator:n,refiner:i,coercer:s=e=>e,entries:o=function*(){}}=e;this.type=t,this.schema=r,this.entries=o,this.coercer=s,n?this.validator=(e,t)=>tM(n(e,t),t,this,e):this.validator=()=>[],i?this.refiner=(e,t)=>tM(i(e,t),t,this,e):this.refiner=()=>[]}assert(e,t){return function(e,t,r){let n=tP(e,t,{message:r});if(n[0])throw n[0]}(e,this,t)}create(e,t){return tC(e,this,t)}is(e){return!tP(e,this)[0]}mask(e,t){return function(e,t,r){let n=tP(e,t,{coerce:!0,mask:!0,message:r});if(!n[0])return n[1];throw n[0]}(e,this,t)}validate(e,t={}){return tP(e,this,t)}}let tS="EXACT_OPTIONAL";class tk extends tE{constructor(e){super({...e,type:`exact optional ${e.type}`}),this.brand=tS}static isExactOptional(e){return t_(e)&&"brand"in e&&e.brand===tS}}function tC(e,t,r){let n=tP(e,t,{coerce:!0,message:r});if(!n[0])return n[1];throw n[0]}function tP(e,t,r={}){let n=tx(e,t,r),i=function(e){let{done:t,value:r}=e.next();return t?void 0:r}(n);return i[0]?[new tv(i[0],function*(){for(let e of n)e[0]&&(yield e[0])}),void 0]:[void 0,i[1]]}function tT(e,t){return new tE({type:e,schema:null,validator:t})}function tU(e,t){return tT(e,e=>"string"==typeof e&&t.test(e))}let tB=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u,tI=/^[-a-z0-9]{3,8}$/u,tO=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u;function tR(e){let t=tB.exec(e);if(!t?.groups)throw Error("Invalid CAIP chain ID.");return{namespace:t.groups.namespace,reference:t.groups.reference}}function tN(e){let t=tO.exec(e);if(!t?.groups)throw Error("Invalid CAIP account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}}tU("CaipChainId",tB),tU("CaipNamespace",tI),tU("CaipReference",/^[-_a-zA-Z0-9]{1,32}$/u),tU("CaipAccountId",tO),tU("CaipAccountAddress",/^[-.%a-zA-Z0-9]{1,128}$/u),tU("CaipAssetNamespace",/^[-a-z0-9]{3,8}$/u),tU("CaipAssetReference",/^[-.%a-zA-Z0-9]{1,128}$/u),tU("CaipTokenId",/^[-.%a-zA-Z0-9]{1,78}$/u),tU("CaipAssetType",/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u),tU("CaipAssetId",/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})\/(?<tokenId>[-.%a-zA-Z0-9]{1,78})$/u),tU("CaipAssetTypeOrId",/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})(\/(?<tokenId>[-.%a-zA-Z0-9]{1,78}))?$/u),(i=h=h||(h={})).Bip122="bip122",i.Solana="solana",i.Stellar="stellar",i.Tron="tron",i.Eip155="eip155",i.Wallet="wallet";var tF=r(68951),tL=r(36243),t$=r(37658);let tj=/\{[^{}]+\}/g,tD=()=>"object"==typeof t$&&Number.parseInt(t$?.versions?.node?.substring(0,2))>=18&&t$.versions.undici;function tq(e,t,r){if(null==t)return"";if("object"==typeof t)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${r?.allowReserved===!0?t:encodeURIComponent(t)}`}function tH(e,t,r){if(!t||"object"!=typeof t)return"";let n=[],i={simple:",",label:".",matrix:";"}[r.style]||"&";if("deepObject"!==r.style&&!1===r.explode){for(let e in t)n.push(e,!0===r.allowReserved?t[e]:encodeURIComponent(t[e]));let i=n.join(",");switch(r.style){case"form":return`${e}=${i}`;case"label":return`.${i}`;case"matrix":return`;${e}=${i}`;default:return i}}for(let i in t){let s="deepObject"===r.style?`${e}[${i}]`:i;n.push(tq(s,t[i],r))}let s=n.join(i);return"label"===r.style||"matrix"===r.style?`${i}${s}`:s}function tV(e,t,r){if(!Array.isArray(t))return"";if(!1===r.explode){let n={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[r.style]||",",i=(!0===r.allowReserved?t:t.map(e=>encodeURIComponent(e))).join(n);switch(r.style){case"simple":return i;case"label":return`.${i}`;case"matrix":return`;${e}=${i}`;default:return`${e}=${i}`}}let n={simple:",",label:".",matrix:";"}[r.style]||"&",i=[];for(let n of t)"simple"===r.style||"label"===r.style?i.push(!0===r.allowReserved?n:encodeURIComponent(n)):i.push(tq(e,n,r));return"label"===r.style||"matrix"===r.style?`${n}${i.join(n)}`:i.join(n)}function tz(e){return function(t){let r=[];if(t&&"object"==typeof t)for(let n in t){let i=t[n];if(null!=i){if(Array.isArray(i)){if(0===i.length)continue;r.push(tV(n,i,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if("object"==typeof i){r.push(tH(n,i,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}r.push(tq(n,i,e))}}return r.join("&")}}function tG(e,t){return e instanceof FormData?e:t&&"application/x-www-form-urlencoded"===(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])?new URLSearchParams(e).toString():JSON.stringify(e)}function tK(...e){let t=new Headers;for(let r of e)if(r&&"object"==typeof r)for(let[e,n]of r instanceof Headers?r.entries():Object.entries(r))if(null===n)t.delete(e);else if(Array.isArray(n))for(let r of n)t.append(e,r);else void 0!==n&&t.set(e,n);return t}function tW(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var tZ=r(37658),tJ=class{sendFn;batch=[];batchSize;baseTimeoutMs;currentTimeoutMs;maxTimeoutMs=3e4;timeoutId=null;isSending=!1;constructor(e){this.batchSize=e.batchSize,this.baseTimeoutMs=e.baseTimeoutMs,this.currentTimeoutMs=e.baseTimeoutMs,this.sendFn=e.sendFn}enqueue(e){this.batch.push(e),this.schedule()}schedule(){this.batch.length>0&&!this.timeoutId&&(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.flush()},this.currentTimeoutMs))}async flush(){if(this.isSending||0===this.batch.length)return;this.isSending=!0;let e=[...this.batch.slice(0,this.batchSize)];this.batch=this.batch.slice(this.batchSize);try{await this.sendFn(e),this.currentTimeoutMs=this.baseTimeoutMs}catch(t){console.error("Sender: Failed to send batch",t),this.batch=[...e,...this.batch],this.currentTimeoutMs=Math.min(2*this.currentTimeoutMs,this.maxTimeoutMs)}finally{this.isSending=!1,this.schedule()}}},tY=class{enabled=!1;sender;properties={};constructor(e){let t=function(e){let{baseUrl:t="",Request:r=globalThis.Request,fetch:n=globalThis.fetch,querySerializer:i,bodySerializer:s,headers:o,requestInitExt:a,...c}={...e};a=tD()?a:void 0,t=tW(t);let l=[];async function u(e,u){var h;let d,f,p,m,y;let{baseUrl:b,fetch:g=n,Request:w=r,headers:v,params:_={},parseAs:A="json",querySerializer:M,bodySerializer:x=s??tG,body:E,...S}=u||{},k=t;b&&(k=tW(b)??t);let C="function"==typeof i?i:tz(i);M&&(C="function"==typeof M?M:tz({..."object"==typeof i?i:{},...M}));let P=void 0===E?void 0:x(E,tK(o,v,_.header)),T=tK(void 0===P||P instanceof FormData?{}:{"Content-Type":"application/json"},o,v,_.header),U={redirect:"follow",...c,...S,body:P,headers:T},B=new r((h={baseUrl:k,params:_,querySerializer:C},m=`${h.baseUrl}${e}`,h.params?.path&&(m=function(e,t){let r=e;for(let n of e.match(tj)??[]){let e=n.substring(1,n.length-1),i=!1,s="simple";if(e.endsWith("*")&&(i=!0,e=e.substring(0,e.length-1)),e.startsWith(".")?(s="label",e=e.substring(1)):e.startsWith(";")&&(s="matrix",e=e.substring(1)),!t||void 0===t[e]||null===t[e])continue;let o=t[e];if(Array.isArray(o)){r=r.replace(n,tV(e,o,{style:s,explode:i}));continue}if("object"==typeof o){r=r.replace(n,tH(e,o,{style:s,explode:i}));continue}if("matrix"===s){r=r.replace(n,`;${tq(e,o)}`);continue}r=r.replace(n,"label"===s?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return r}(m,h.params.path)),(y=h.querySerializer(h.params.query??{})).startsWith("?")&&(y=y.substring(1)),y&&(m+=`?${y}`),m),U);for(let e in S)e in B||(B[e]=S[e]);if(l.length){for(let t of(d=Math.random().toString(36).slice(2,11),f=Object.freeze({baseUrl:k,fetch:g,parseAs:A,querySerializer:C,bodySerializer:x}),l))if(t&&"object"==typeof t&&"function"==typeof t.onRequest){let n=await t.onRequest({request:B,schemaPath:e,params:_,options:f,id:d});if(n){if(n instanceof r)B=n;else if(n instanceof Response){p=n;break}
1else throw Error("onRequest: must return new Request() or Response() when modifying the request")}}}if(!p){try{p=await g(B,a)}catch(r){let t=r;if(l.length)for(let r=l.length-1;r>=0;r--){let n=l[r];if(n&&"object"==typeof n&&"function"==typeof n.onError){let r=await n.onError({request:B,error:t,schemaPath:e,params:_,options:f,id:d});if(r){if(r instanceof Response){t=void 0,p=r;break}if(r instanceof Error){t=r;continue}throw Error("onError: must return new Response() or instance of Error")}}}if(t)throw t}if(l.length)for(let t=l.length-1;t>=0;t--){let r=l[t];if(r&&"object"==typeof r&&"function"==typeof r.onResponse){let t=await r.onResponse({request:B,response:p,schemaPath:e,params:_,options:f,id:d});if(t){if(!(t instanceof Response))throw Error("onResponse: must return new Response() when modifying the response");p=t}}}}if(204===p.status||"HEAD"===B.method||"0"===p.headers.get("Content-Length"))return p.ok?{data:void 0,response:p}:{error:void 0,response:p};if(p.ok)return"stream"===A?{data:p.body,response:p}:{data:await p[A](),response:p};let I=await p.text();try{I=JSON.parse(I)}catch{}return{error:I,response:p}}return{request:(e,t,r)=>u(t,{...r,method:e.toUpperCase()}),GET:(e,t)=>u(e,{...t,method:"GET"}),PUT:(e,t)=>u(e,{...t,method:"PUT"}),POST:(e,t)=>u(e,{...t,method:"POST"}),DELETE:(e,t)=>u(e,{...t,method:"DELETE"}),OPTIONS:(e,t)=>u(e,{...t,method:"OPTIONS"}),HEAD:(e,t)=>u(e,{...t,method:"HEAD"}),PATCH:(e,t)=>u(e,{...t,method:"PATCH"}),TRACE:(e,t)=>u(e,{...t,method:"TRACE"}),use(...e){for(let t of e)if(t){if("object"!=typeof t||!("onRequest"in t||"onResponse"in t||"onError"in t))throw Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");l.push(t)}},eject(...e){for(let t of e){let e=l.indexOf(t);-1!==e&&l.splice(e,1)}}}}({baseUrl:e}),r=async e=>{let r=await t.POST("/v2/events",{body:e});if(200!==r.response.status)throw Error(r.error)};this.sender=new tJ({batchSize:100,baseTimeoutMs:200,sendFn:r})}enable(){this.enabled=!0}setGlobalProperty(e,t){if("integration_types"===e){let e=Array.isArray(this.properties.integration_types)?this.properties.integration_types:[],r=Array.isArray(t)?t:[];this.properties.integration_types=[...new Set([...e,...r])];return}this.properties[e]=t}track(e,t){if(!this.enabled)return;let r={namespace:"metamask/connect",event_name:e,properties:{...t,...this.properties}};this.sender.enqueue(r)}};void 0!==tZ&&tZ.env&&(d=tZ.env.METAMASK_ANALYTICS_ENDPOINT??tZ.env.
1NEXT_PUBLIC_METAMASK_ANALYTICS_ENDPOINT);var tX=new tY(d??"https://mm-sdk-analytics.api.cx.metamask.io/"),tQ=r(691),t1=r(82361);class t6 extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}function t2(e,t="Assertion failed.",r=t6){if(!e){if(t instanceof Error)throw t;throw"string"==typeof r?.prototype?.constructor?.name?new r({message:t}):r({message:t})}}function t0(e){return t2("string"==typeof e,"Value must be a string."),t1.US.decode(e)}r(36243).lW;var t8={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let t3=new Uint8Array(16),t5=[];for(let e=0;e<256;++e)t5.push((e+256).toString(16).slice(1));var t4=function(e,t,r){if(t8.randomUUID&&!t&&!e)return t8.randomUUID();let i=(e=e||{}).random??e.rng?.()??function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(t3)}();if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=i[e];return t}return function(e,t=0){return(t5[e[t+0]]+t5[e[t+1]]+t5[e[t+2]]+t5[e[t+3]]+"-"+t5[e[t+4]]+t5[e[t+5]]+"-"+t5[e[t+6]]+t5[e[t+7]]+"-"+t5[e[t+8]]+t5[e[t+9]]+"-"+t5[e[t+10]]+t5[e[t+11]]+t5[e[t+12]]+t5[e[t+13]]+t5[e[t+14]]+t5[e[t+15]]).toLowerCase()}(i)},t9=class{context;constructor(e){this.context=e}async execute(e,t){await this.context.transport.connect(),await this.context.transport.subscribe(t.channel);let r=await this._waitForHandshakeOffer(t.expiresAt),n=this._createFinalSession(e,r);this.context.session=n,await this._finalizeConnection(n,t)}_waitForHandshakeOffer(e){return new Promise((t,r)=>{if(e<Date.now())return r(new tQ.zM(tQ.jK.REQUEST_EXPIRED,"Session request expired before wallet could connect"));let n=setTimeout(()=>{this.context.off("handshake_offer_received",i),r(new tQ.zM(tQ.jK.REQUEST_EXPIRED,"Did not receive handshake offer from wallet in time."))},e+re-Date.now()),i=e=>{clearTimeout(n),t(e)};this.context.once("handshake_offer_received",i)})}_createFinalSession(e,t){let r=t0(t.publicKeyB64);return this.context.keymanager.validatePeerKey(r),{...e,channel:`session:${t.channelId}`,theirPublicKey:r}}async _finalizeConnection(e,t){if(!this.context.session)throw new tQ.zM(tQ.jK.SESSION_INVALID_STATE);await this.context.sessionstore.set(this.context.session),await this.context.transport.subscribe(e.channel),await this.context.transport.clear(t.channel),this.context.state=tQ.pk.CONNECTED,this.context.emit("connected")}},t7=class{context;otpAttempts=3;timeoutId=null;constructor(e){this.context=e}async execute(e,t){await this.context.transport.connect(),await this.context.transport.subscribe(t.channel);let r=await this._waitForHandshakeOffer(t.expiresAt);await this._handleOtpInput(r);let n=this._createFinalSession(e,r);this.context.session=n,await this._acknowledgeHandshake(n),await this._finalizeConnection(t.channel)}_waitForHandshakeOffer(e){return new Promise((t,r)=>{let n=e-Date.now();if(n<=0)return r(new tQ.zM(tQ.jK.REQUEST_EXPIRED,"Session request expired before wallet could connect."));this.timeoutId=setTimeout(()=>{this.context.off("handshake_offer_received",i),r(new tQ.zM(tQ.jK.REQUEST_EXPIRED,"Did not receive handshake offer from wallet in time."))},n);let i=e=>{this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=null,t(e)};this.context.once("handshake_offer_received",i)})}_handleOtpInput(e){return new Promise((t,r)=>{if(!e.deadline||!e.otp)return r(new tQ.zM(tQ.jK.UNKNOWN,"Handshake offer is missing OTP details for untrusted connection."));if(Date.now()>e.deadline)return r(new tQ.zM(tQ.jK.OTP_ENTRY_TIMEOUT,"The OTP has already expired."));let n=e.otp,i=0,s=async e=>{if(!(0,tQ.V)(e,n)){if(++i>=this.otpAttempts)r(new tQ.zM(tQ.jK.OTP_MAX_ATTEMPTS_REACHED,"Maximum OTP attempts reached."));else throw new tQ.zM(tQ.jK.OTP_INCORRECT,`Incorrect OTP. ${this.otpAttempts-i} attempts remaining.`);return}t()};this.context.emit("otp_required",{submit:s,cancel:()=>r(Error("User cancelled OTP entry.")),deadline:e.deadline})})}_createFinalSession(e,t){let r=t0(t.publicKeyB64);return this.context.keymanager.validatePeerKey(r),{...e,channel:`session:${t.channelId}`,theirPublicKey:r}}async _acknowledgeHandshake(e){await this.context.transport.subscribe(e.channel),await this.context.sendMessage(e.channel,{type:"handshake-ack"})}async _finalizeConnection(e){if(!this.context.session)throw new tQ.zM(tQ.jK.SESSION_INVALID_STATE);await this.context.sessionstore.set(this.context.session),await this.context.transport.clear(e),this.context.state=tQ.pk.CONNECTED,this.context.emit("connected")}},re=6e4,rt=class extends tQ.WI{on(e,t){return super.on(e,t)}constructor(e){super(e.transport,e.keymanager,e.sessionstore)}async connect(e={}){if(this.state!==tQ.pk.DISCONNECTED)throw new tQ.zM(tQ.jK.SESSION_INVALID_STATE,`Cannot connect when state is ${this.state}`);let{mode:t="untrusted",initialPayload:r}=e;if(!(0,tQ.Cs)(t))throw new tQ.zM(tQ.jK.SESSION_INVALID_STATE,`Invalid connection mode: "${String(t)}"`);this.state=tQ.pk.CONNECTING;let{pendingSession:n,request:i}=this._createPendingSessionAndRequest(t,r);
1this.session=n,this.emit("session_request",i);let s=this,o={transport:this.transport,sessionstore:this.sessionstore,keymanager:this.keymanager,get session(){return s.session},set session(session){s.session=session},get state(){return s.state},set state(state){s.state=state},emit:this.emit.bind(this),once:this.once.bind(this),off:this.off.bind(this),sendMessage:this.sendMessage.bind(this)},a="trusted"===t?new t9(o):new t7(o);try{await a.execute(n,i)}catch(e){throw this.emit("error",e),await this.disconnect(),e}}async sendRequest(e){if(this.state!==tQ.pk.CONNECTED||!this.session)throw new tQ.zM(tQ.jK.SESSION_INVALID_STATE,"Cannot send request: not connected.");await this.sendMessage(this.session.channel,{type:"message",payload:e})}handleMessage(e){this.state===tQ.pk.CONNECTING&&"handshake-offer"===e.type?this.emit("handshake_offer_received",e.payload):this.state===tQ.pk.CONNECTED&&"message"===e.type&&this.emit("message",e.payload)}_createPendingSessionAndRequest(e,t){var r;let n=t4(),i=this.keymanager.generateKeyPair();return{pendingSession:{id:n,channel:"",keyPair:i,theirPublicKey:new Uint8Array(0),expiresAt:Date.now()+tQ.Xn},request:{id:n,mode:e,channel:`handshake:${n}`,publicKeyB64:(t2((r=i.publicKey)instanceof Uint8Array,"Value must be a Uint8Array."),t1.US.encode(r)),expiresAt:Date.now()+6e4,initialMessage:t?{type:"message",payload:t}:void 0}}}};let rr=Math.floor(4294967295*Math.random()),rn=()=>rr=(rr+1)%4294967295,ri=()=>"undefined"!=typeof chrome&&chrome.runtime&&"function"==typeof chrome.runtime.connect;async function rs(e,t={}){let{maxRetries:r=10,retryDelay:n=200,timeoutErrorClass:i}=t;for(let t=0;t<=r;t++)try{return await e()}catch(e){if(t>=r)throw e;if(i&&"function"==typeof i&&e instanceof i)continue;await new Promise(e=>setTimeout(e,n))}throw Error("Max retries exceeded")}function ro(e,t,r){return -1===t?e:new Promise((n,i)=>{let s=setTimeout(()=>{r?i(r()):i(Error(`Timeout after ${t}ms`))},t);e.then(e=>{clearTimeout(s),n(e)}).catch(e=>{clearTimeout(s),i(e)})})}class ra extends Error{constructor(e){super(e.message),this.name=this.constructor.name,this.cause=e,Object.setPrototypeOf(this,this.constructor.prototype)}}class rc extends Error{constructor(e,t){super(e),this.name=this.constructor.name,this.cause=t,Object.setPrototypeOf(this,this.constructor.prototype)}}class rl extends rc{constructor(e="Transport request timed out",t){super(e,t)}}async function ru({transport:e,method:t,params:r,timeout:n}){let i=await e.request({method:t,params:r},{timeout:n});if(i?.error)throw new ra(i.error);return i.result}var rh=r(81953);let rd="metamask-contentscript",rf="metamask-inpage",rp="metamask-multichain-provider",rm="metamask-provider";async function ry(){return new Promise((e,t)=>{let r=t=>{if(function(e){let{target:t,data:r}=e.data;return t===rf&&r?.name===rm&&e.origin===location.origin}(t)){let i=t?.data?.data?.data;i?.method==="METAMASK_EXTENSION_CONNECT_CAN_RETRY"?rb():i?.result?.extensionId&&(e(i?.result?.extensionId),window.removeEventListener("message",r),clearTimeout(n))}},n=setTimeout(()=>{window.removeEventListener("message",r),t(Error("MetaMask extension not found"))},1e4);window.addEventListener("message",r),rb()})}function rb(){window.postMessage({target:rd,data:{name:rm,data:{method:"metamask_getProviderState"}}},location.origin)}function rg(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}let rw=(e,t)=>Object.hasOwnProperty.call(e,t);(s=f=f||(f={}))[s.Null=4]="Null",s[s.Comma=1]="Comma",s[s.Wrapper=1]="Wrapper",s[s.True=4]="True",s[s.False=5]="False",s[s.Quote=1]="Quote",s[s.Colon=1]="Colon",s[s.Date=24]="Date";var rv=r(60496);function r_(e){let t=e?Object.keys(e):[],r=tT("never",()=>!1);return new tE({type:"object",schema:e??null,*entries(n){if(e&&t_(n)){let i=new Set(Object.keys(n));for(let r of t){i.delete(r);let t=e[r];(!tk.isExactOptional(t)||Object.prototype.hasOwnProperty.call(n,r))&&(yield[r,n[r],e[r]])}for(let e of i)yield[e,n[e],r]}},validator:e=>t_(e)||`Expected an object, but received: ${tA(e)}`,coercer:e=>t_(e)?{...e}:e})}function rA(e){return new tE({...e,validator:(t,r)=>void 0===t||e.validator(t,r),refiner:(t,r)=>void 0===t||e.refiner(t,r)})}function rM(){return tT("string",e=>"string"==typeof e||`Expected a string, but received: ${tA(e)}`)}function rx(e){let t=e.map(e=>e.type).join(" | ");return new tE({type:"union",schema:null,coercer(t){for(let r of e){let[e,n]=r.validate(t,{coerce:!0});if(!e)return n}return t},validator(r,n){let i=[];for(let t of e){let[...e]=tx(r,t,n),[s]=e;if(!s?.[0])return[];for(let[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${tA(r)}`,...i]}})}function rE(e,t){return rS(e,"pattern",r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`)}function rS(e,t,r){return new tE({...e,*refiner(n,i){for(let s of(yield*e.refiner(n,i),tM(r(n,i),i,e,n)))yield{...s,refinement:t}}})}let rk=e=>r_(e);function rC({path:e,branch:t}){let r=e[e.length-1];return rw(t[t.length-2],r)}function rP(e){return new tE({...e,type:`optional ${e.type}`,validator:(t,r)=>!rC(r)||e.validator(t,r),refiner:(t,r)=>!rC(r)||e.refiner(t,r)})}let rT=tT("JSON",e=>(function e(t){if(null===t||"boolean"==typeof t||"string"==typeof t||"number"==typeof t&&Number.isFinite(t))return!0;
1if("object"==typeof t){let r=!0;if(Array.isArray(t)){for(let n=0;n<t.length;n++)if(!e(t[n])){r=!1;break}return r}let n=Object.entries(t);for(let t=0;t<n.length;t++)if("string"!=typeof n[t][0]||!e(n[t][1])){r=!1;break}return r}return!1})(e)),rU=(o=rS(tT("any",()=>!0),"JSON",e=>!tP(e,rT)[0]),a=e=>JSON.parse(JSON.stringify(e,(e,t)=>{if("__proto__"!==e&&"constructor"!==e)return t})),new tE({...rT,coercer:(e,t)=>tP(e,o)[0]?rT.coercer(e,t):rT.coercer(a(e,t),t)}));function rB(e){try{return tC(e,rU),!0}catch{return!1}}let rI=function(e){let t=tA("2.0"),r="string";return new tE({type:"literal",schema:"2.0",validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${tA(r)}`})}("2.0"),rO=new tE({...c=rx([tT("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${tA(e)}`),rM()]),validator:(e,t)=>null===e||c.validator(e,t),refiner:(e,t)=>null===e||c.refiner(e,t)}),rR=rk({code:tT("integer",e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${tA(e)}`),message:rM(),data:rP(rU),stack:rP(rM())}),rN=rx([(l=rM(),new tE({type:"record",schema:null,*entries(e){if(t_(e))for(let t in e){let r=e[t];yield[t,t,l],yield[t,r,rU]}},validator:e=>t_(e)||`Expected an object, but received: ${tA(e)}`})),new tE({type:"array",schema:rU,*entries(e){if(rU&&Array.isArray(e))for(let[t,r]of e.entries())yield[t,r,rU]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${tA(e)}`})]);rk({id:rO,jsonrpc:rI,method:rM(),params:rP(rN)}),rk({jsonrpc:rI,method:rM(),params:rP(rN)}),r_({id:rO,jsonrpc:rI,result:rA(tT("unknown",()=>!0)),error:rA(rR)}),rx([rk({id:rO,jsonrpc:rI,result:rU}),rk({id:rO,jsonrpc:rI,error:rR})]);let rF={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};function rL(e,t="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){let t=e.toString();if(rw(rF,t))return rF[t].message;if(e>=-32099&&e<=-32e3)return"Unspecified server error."}return t}function r$(e){return Object.getOwnPropertyNames(e).reduce((t,r)=>{let n=e[r];return rB(n)&&(t[r]=n),t},{})}rL(-32603);let rj=rv?.__esModule?rv.default:rv;class rD extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a non-empty string.');rg(r)&&rw(r,"cause")&&rg(r.cause)?(super(t,{cause:r.cause}),rw(this,"cause")||Object.assign(this,{cause:r.cause})):super(t),void 0!==r&&(this.data=r),this.code=e}serialize(){let e={code:this.code,message:this.message};if(void 0!==this.data&&(e.data=this.data,function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}}(this.data))){var t;e.data.cause=Array.isArray(t=this.data.cause)?t.map(e=>rB(e)?e:rg(e)?r$(e):null):rg(t)?r$(t):rB(t)?t:null}return this.stack&&(e.stack=this.stack),e}toString(){return rj(this.serialize(),rH,2)}}class rq extends rD{constructor(e,t,r){if(!(Number.isInteger(e)&&e>=1e3&&e<=4999))throw Error('"code" must be an integer such that: 1000 <= code 
1<= 4999');super(e,t,r)}}function rH(e,t){if("[Circular]"!==t)return t}let rV=e=>(function(e,t){let[r,n]=rG(t);return new rD(-32603,r??rL(e),n)})(-32603,e),rz={unauthorized:e=>(function(e,t){let[r,n]=rG(t);return new rq(4100,r??rL(e),n)})(4100,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:r,data:n}=e;if(!r||"string"!=typeof r)throw Error('"message" must be a nonempty string');return new rq(t,r,n)}};function rG(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t??void 0,r]}}return[]}var rK=r(56167),rW={INSTALLED:"INSTALLED",NOT_INSTALLED:"NOT_INSTALLED",REGISTERED:"REGISTERED",REGISTERING:"REGISTERING",RELOADING:"RELOADING"},rZ={CHROME:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",FIREFOX:"https://addons.mozilla.org/firefox/addon/ether-metamask/",DEFAULT:"https://metamask.io"},rJ="REGISTRATION_IN_PROGRESS",rY="FORWARDER_ID",rX=function(){function e(t){var r=void 0===t?{}:t,n=r.forwarderOrigin,i=r.forwarderMode,s=void 0===i?e.FORWARDER_MODE.INJECT:i;this.forwarderOrigin=void 0===n?"https://fwd.metamask.io":n,this.forwarderMode=s,this.state=e.isMetaMaskInstalled()?rW.INSTALLED:rW.NOT_INSTALLED;var o=e._detectBrowser();o?this.downloadUrl=rZ[o]:this.downloadUrl=rZ.DEFAULT,this._onMessage=this._onMessage.bind(this),this._onMessageFromForwarder=this._onMessageFromForwarder.bind(this),this._openForwarder=this._openForwarder.bind(this),this._openDownloadPage=this._openDownloadPage.bind(this),this.startOnboarding=this.startOnboarding.bind(this),this.stopOnboarding=this.stopOnboarding.bind(this),window.addEventListener("message",this._onMessage),s===e.FORWARDER_MODE.INJECT&&"true"===sessionStorage.getItem(rJ)&&e._injectForwarder(this.forwarderOrigin)}return e.prototype._onMessage=function(e){if(e.origin===this.forwarderOrigin){if("metamask:reload"===e.data.type)return this._onMessageFromForwarder(e);console.debug("Unknown message from '"+e.origin+"' with data "+JSON.stringify(e.data))}},e.prototype._onMessageUnknownStateError=function(e){throw Error("Unknown state: '"+e+"'")},e.prototype._onMessageFromForwarder=function(t){var r,n,i,s;return r=this,n=void 0,i=void 0,s=function(){return function(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}(this,function(r){switch(r.label){case 0:switch(this.state){case rW.RELOADING:return[3,1];case rW.NOT_INSTALLED:return[3,2];case rW.INSTALLED:return[3,3];case rW.REGISTERING:return[3,5];case rW.REGISTERED:return[3,6]}return[3,7];case 1:return console.debug("Ignoring message while reloading"),[3,8];case 2:return console.debug("Reloading now to register with MetaMask"),this.state=rW.RELOADING,location.reload(),[3,8];case 3:return console.debug("Registering with MetaMask"),this.state=rW.REGISTERING,[4,e._register()];case 4:return r.sent(),this.state=rW.REGISTERED,t.source.postMessage({type:"metamask:registrationCompleted"},t.origin),this.stopOnboarding(),[3,8];case 5:return console.debug("Already registering - ignoring reload message"),[3,8];case 6:return console.debug("Already registered - ignoring reload message"),[3,8];case 7:this._onMessageUnknownStateError(this.state),r.label=8;case 8:return[2]}})}
1,new(i||(i=Promise))(function(e,t){function o(e){try{c(s.next(e))}catch(e){t(e)}}function a(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(o,a)}c((s=s.apply(r,n||[])).next())})},e.prototype.startOnboarding=function(){sessionStorage.setItem(rJ,"true"),this._openDownloadPage(),this._openForwarder()},e.prototype.stopOnboarding=function(){"true"===sessionStorage.getItem(rJ)&&(this.forwarderMode===e.FORWARDER_MODE.INJECT&&(console.debug("Removing forwarder"),e._removeForwarder()),sessionStorage.setItem(rJ,"false"))},e.prototype._openForwarder=function(){this.forwarderMode===e.FORWARDER_MODE.OPEN_TAB?window.open(this.forwarderOrigin,"_blank"):e._injectForwarder(this.forwarderOrigin)},e.prototype._openDownloadPage=function(){window.open(this.downloadUrl,"_blank")},e.isMetaMaskInstalled=function(){return!!(window.ethereum&&window.ethereum.isMetaMask)},e._register=function(){return window.ethereum.request({method:"wallet_registerOnboarding"})},e._injectForwarder=function(e){var t=document.body,r=document.createElement("iframe");r.setAttribute("height","0"),r.setAttribute("width","0"),r.setAttribute("style","display: none;"),r.setAttribute("src",e),r.setAttribute("id",rY),t.insertBefore(r,t.children[0])},e._removeForwarder=function(){var e;null===(e=document.getElementById(rY))||void 0===e||e.remove()},e._detectBrowser=function(){var e=tw().parse(window.navigator.userAgent);return"Firefox"===e.browser.name?"FIREFOX":["Chrome","Chromium"].includes(e.browser.name||"")?"CHROME":null},e.FORWARDER_MODE={INJECT:"INJECT",OPEN_TAB:"OPEN_TAB"},e}(),rQ=r(37658),r1=r(36243).lW,r6=Object.defineProperty,r2=Object.defineProperties,r0=Object.getOwnPropertyDescriptors,r8=Object.getOwnPropertyNames,r3=Object.getOwnPropertySymbols,r5=Object.prototype.hasOwnProperty,r4=Object.prototype.propertyIsEnumerable,r9=e=>{throw TypeError(e)},r7=(e,t,r)=>t in e?r6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ne=(e,t)=>{for(var r in t||(t={}))r5.call(t,r)&&r7(e,r,t[r]);if(r3)for(var r of r3(t))r4.call(t,r)&&r7(e,r,t[r]);return e},nt=(e,t)=>r2(e,r0(t)),nr=(e,t)=>function(){return e&&(t=(0,e[r8(e)[0]])(e=0)),t},nn=(e,t)=>{for(var r in t)r6(e,r,{get:t[r],enumerable:!0})},ni=(e,t,r)=>t.has(e)||r9("Cannot "+r),ns=(e,t,r)=>(ni(e,t,"read from private field"),r?r.call(e):t.get(e)),no=(e,t,r)=>t.has(e)?r9("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),na=(e,t,r,n)=>(ni(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),nc=(e,t,r)=>(ni(e,t,"access private method"),r),nl=(e,t,r)=>new Promise((n,i)=>{var s=e=>{try{a(r.next(e))}catch(e){i(e)}},o=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);a((r=r.apply(e,t)).next())}),nu=nr({"src/domain/errors/base.ts"(){p=class extends Error{constructor(e,t){super(e),this.message=e,this.code=t}}}}),nh=nr({"src/domain/errors/rpc.ts"(){nu(),(m=class e extends p{constructor(t,r,n){super(`RPCErr${e.code}: ${n} on ${t} for method ${r}`,e.code),this.rpcEndpoint=t,this.method=r,this.httpStatus=n}}).code=50,y=m,(b=class e extends p{constructor(t){super(`RPCErr${e.code}: RPC Client response reason ${t}`,e.code),this.reason=t}}).code=51,g=b,(w=class e extends p{constructor(t){super(`RPCErr${e.code}: RPC Client fetch reason ${t}`,e.code),this.reason=t}}).code=52,v=w,(_=class e extends p{constructor(t,r,n){super(`RPCErr${e.code}: RPC Client invoke method reason (${t})`,e.code),this.reason=t,this.rpcCode=r,this.rpcMessage=n}}).code=53,A=_}}),nd=nr({"src/domain/errors/index.ts"(){nh()}}),nf=nr({"src/domain/events/index.ts"(){x=class{constructor(){no(this,M,new ty.v)}emit(e,...t){ns(this,M).emit(e,...t)}on(e,t){return ns(this,M).on(e,t),()=>{this.off(e,t)}}off(e,t){ns(this,M).off(e,t)}removeListener(e,t){ns(this,M).off(e,t)}once(e,t){return ns(this,M).once(e,t),()=>{this.off(e,t)}}listenerCount(e){return ns(this,M).listenerCount(e)}},M=new WeakMap}});function np(e,t){return e.includes(t)||e.includes("metamask-sdk:*")||e.includes("*")}var nm=nr({"src/domain/logger/index.ts"(){E=(e="metamask-sdk",t="214")=>{let r=tb(e);return r.color=t,r},S=(e="metamask-sdk")=>{tb.enable(e)},k=(e,t)=>nl(null,null,function*(){var r;if("process"in globalThis&&(null==(r=null==rQ?void 0:rQ.env)?void 0:r.DEBUG)){let{DEBUG:t}=rQ.env;return np(t,e)}let n=yield t.getDebug();return!!n&&np(n,e)})}}),ny=nr({"src/domain/multichain/api/constants.ts"(){C={"eip155:1":"https://mainnet.infura.io/v3/","eip155:11155111":"https://sepolia.infura.io/v3/","eip155:
1560048":"https://hoodi.infura.io/v3/","eip155:59144":"https://linea-mainnet.infura.io/v3/","eip155:59141":"https://linea-sepolia.infura.io/v3/","eip155:137":"https://polygon-mainnet.infura.io/v3/","eip155:80002":"https://polygon-amoy.infura.io/v3/","eip155:10":"https://optimism-mainnet.infura.io/v3/","eip155:11155420":"https://optimism-sepolia.infura.io/v3/","eip155:42161":"https://arbitrum-mainnet.infura.io/v3/","eip155:421614":"https://arbitrum-sepolia.infura.io/v3/","eip155:8453":"https://base-mainnet.infura.io/v3/","eip155:84532":"https://base-sepolia.infura.io/v3/","eip155:81457":"https://blast-mainnet.infura.io/v3/","eip155:168587773":"https://blast-sepolia.infura.io/v3/","eip155:324":"https://zksync-mainnet.infura.io/v3/","eip155:300":"https://zksync-sepolia.infura.io/v3/","eip155:56":"https://bsc-mainnet.infura.io/v3/","eip155:97":"https://bsc-testnet.infura.io/v3/","eip155:204":"https://opbnb-mainnet.infura.io/v3/","eip155:5611":"https://opbnb-testnet.infura.io/v3/","eip155:534352":"https://scroll-mainnet.infura.io/v3/","eip155:534351":"https://scroll-sepolia.infura.io/v3/","eip155:5000":"https://mantle-mainnet.infura.io/v3/","eip155:5003":"https://mantle-sepolia.infura.io/v3/","eip155:1329":"https://sei-mainnet.infura.io/v3/","eip155:713715":"https://sei-testnet.infura.io/v3/","eip155:1923":"https://swellchain-mainnet.infura.io/v3/","eip155:1924":"https://swellchain-testnet.infura.io/v3/","eip155:130":"https://unichain-mainnet.infura.io/v3/","eip155:1301":"https://unichain-sepolia.infura.io/v3/","eip155:43111":"https://hemi-mainnet.infura.io/v3/","eip155:743111":"https://hemi-testnet.infura.io/v3/","eip155:6342":"https://megaeth-mainnet.infura.io/v3/","eip155:6342001":"https://megaeth-testnet.infura.io/v3/","eip155:143":"https://monad-mainnet.infura.io/v3/","eip155:10143":"https://monad-testnet.infura.io/v3/","eip155:11297108109":"https://palm-mainnet.infura.io/v3/","eip155:43114":"https://avalanche-mainnet.infura.io/v3/","eip155:43113":"https://avalanche-fuji.infura.io/v3/","eip155:42220":"https://celo-mainnet.infura.io/v3/","eip155:44787":"https://celo-sepolia.infura.io/v3/","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp":"https://solana-mainnet.infura.io/v3/","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1":"https://solana-devnet.infura.io/v3/"},P=new Set(["eth_blockNumber","eth_gasPrice","eth_maxPriorityFeePerGas","eth_blobBaseFee","eth_feeHistory","eth_getBalance","eth_getCode","eth_getStorageAt","eth_call","eth_estimateGas","eth_getLogs","eth_getProof","eth_getTransactionCount","eth_getBlockByNumber","eth_getBlockByHash","eth_getBlockTransactionCountByNumber","eth_getBlockTransactionCountByHash","eth_getUncleCountByBlockNumber","eth_getUncleCountByBlockHash","eth_getTransactionByHash","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByBlockHashAndIndex","eth_getTransactionReceipt","eth_getUncleByBlockNumberAndIndex","eth_getUncleByBlockHashAndIndex","eth_getFilterChanges","eth_getFilterLogs","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"]),T=new Set(["eth_accounts","eth_chainId"])}}),nb=nr({"src/domain/multichain/api/infura.ts"(){ny()}}),ng=nr({"src/domain/multichain/index.ts"(){var e;nf(),ny(),nb(),(e=U||{}).Browser="browser",e.MWP="mwp",e.UNKNOWN="unknown",U=e,B=class extends x{constructor(e){super(),this.options=e}mergeOptions(e){var t,r,n,i,s,o,a,c,l,u,h,d,f,p,m;let y=this.options;this.options=nt(ne({},y),{api:nt(ne({},y.api),{supportedNetworks:ne(ne({},y.api.supportedNetworks),null!=(r=null==(t=e.api)?void 0:t.supportedNetworks)?r:{})}),versions:ne(ne({},y.versions),null!=(n=e.versions)?n:{}),ui:nt(ne({},y.ui),{headless:null!=(s=null==(i=e.ui)?void 0:i.headless)?s:y.ui.headless,preferExtension:null!=(a=null==(o=e.ui)?void 0:o.preferExtension)?a:y.ui.preferExtension,showInstallModal:null!=(l=null==(c=e.ui)?void 0:c.showInstallModal)?l:y.ui.showInstallModal}),mobile:ne(ne({},y.mobile),null!=(u=e.mobile)?u:{}),transport:nt(ne({},null!=(h=y.transport)?h:{}),{extensionId:null!=(p=null==(d=e.transport)?void 0:d.extensionId)?p:null==(f=y.transport)?void 0:f.extensionId}),debug:null!=(m=e.debug)?m:y.debug})}}}});function nw(){var e,t;return"undefined"!=typeof global&&(null==(e=null==global?void 0:global.navigator)?void 0:e.product)==="ReactNative"||"undefined"!=typeof window&&void 0!==window.navigator&&(null==(t=window.navigator)?void 0:t.product)==="ReactNative"}function nv(){return nw()?"react-native":"undefined"!=typeof window&&(null==window?void 0:window.navigator)&&(null==navigator?void 0:navigator.product)!=="ReactNative"?"undefined"!=typeof window&&window.ReactNativeWebView&&window.navigator.userAgent.endsWith("MetaMaskMobile")?"in-app-browser":!function(){var e,t;let r=tg.parse(window.navigator.userAgent);return(null==(e=null==r?void 0:r.platform)?void 0:e.type)==="mobile"||(null==(t=null==r?void 0:r.platform)?void 0:t.type)==="tablet"}()?"web-desktop":"web-mobile":"nodejs"}function n_(){let e=nv();return nw()||"web-mobile"===e}function nA(){return nl(this,null,function*(){return O})}
1var nM=nr({"src/domain/platform/index.ts"(){var e;(e=I||{}).NonBrowser="nodejs",e.MetaMaskMobileWebview="in-app-browser",e.DesktopWeb="web-desktop",e.MobileWeb="web-mobile",e.ReactNative="react-native",I=e,O=nl(null,null,function*(){let e=nv();return"nodejs"===e||"react-native"===e?Promise.resolve(!1):new Promise(e=>{let t=[],r=e=>{var r,n;(null==(n=null==(r=null==e?void 0:e.detail)?void 0:r.info)?void 0:n.rdns)&&t.push(e.detail)};window.addEventListener("eip6963:announceProvider",r),window.dispatchEvent(new Event("eip6963:requestProvider")),setTimeout(()=>{window.removeEventListener("eip6963:announceProvider",r),e(t.some(e=>{var t,r;return null==(r=null==(t=null==e?void 0:e.info)?void 0:t.rdns)?void 0:r.startsWith("io.metamask")}))},300)})})}}),nx=nr({"src/domain/store/adapter.ts"(){R=class{constructor(e){this.options=e}}}}),nE=nr({"src/domain/store/client.ts"(){N=class{}}}),nS=nr({"src/domain/store/index.ts"(){nx(),nE()}}),nk=nr({"src/domain/ui/types.ts"(){F=class{constructor(e){this.options=e}get isMounted(){return void 0!==this.instance}get data(){if("object"==typeof this.options&&this.options&&"link"in this.options)return this.options.link;if("object"==typeof this.options&&this.options&&"otpCode"in this.options)return this.options.otpCode;throw Error("Invalid options")}set data(e){"object"==typeof this.options&&this.options&&"link"in this.options&&(this.options.link=e),"object"==typeof this.options&&this.options&&"otpCode"in this.options&&(this.options.otpCode=e)}}}}),nC=nr({"src/domain/ui/index.ts"(){nk()}});function nP(e){var t,r;if("object"!=typeof e||null===e)return!1;let n=e.code,i=null!=(r=null==(t=e.message)?void 0:t.toLowerCase())?r:"";return 4001===n||4100===n||i.includes("reject")||i.includes("denied")||i.includes("cancel")||i.includes("user")}function nT(e,t){return nl(this,null,function*(){var r;let n=nL(e.dapp),i=nv(),s=yield t.getAnonId();return{mmconnect_versions:null!=(r=e.versions)?r:{},dapp_id:n,platform:i,anon_id:s}})}function nU(e,t,r,n){return nl(this,null,function*(){var i;let s=nL(e.dapp),o=yield t.getAnonId();return{mmconnect_versions:null!=(i=e.versions)?i:{},dapp_id:s,method:r.request.method,caip_chain_id:r.scope,anon_id:o,transport_type:n}})}var nB=nr({"src/multichain/utils/analytics.ts"(){nV(),nR()}});function nI(){return"0.0.0"}var nO=nr({"src/domain/utils/index.ts"(){nB()}}),nR=nr({"src/domain/index.ts"(){nd(),nf(),nm(),ng(),nM(),nS(),nC(),nO()}});function nN(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;throw Error("Unable to locate global object")}function nF(e){let t=(0,tF.Wt)(e);return function(e){if("undefined"!=typeof btoa)return btoa(e);if(void 0!==r1)return r1.from(e).toString("base64");throw Error("No base64 encoding method available")}(String.fromCharCode.apply(null,Array.from(t)))}function nL(e){var t;return null!=(t=e.url)?t:e.name}function n$(e,t,r){var n;let{mobile:i}=e;if(null==(n=null==i?void 0:i.useDeeplink)||n)"undefined"!=typeof window&&(window.location.href=t);else if("undefined"!=typeof document){let e=document.createElement("a");e.href=r,e.target="_self",e.rel="noreferrer noopener",e.click()}}function nj(e){return e.reduce((e,t)=>nt(ne({},e),{[t]:{methods:[],notifications:[],accounts:[]}}),{})}function nD(e,t,r,n){if(!(e.every(e=>t.includes(e))&&t.every(t=>e.includes(t))))return!1;let i=Object.values(r.sessionScopes).filter(({accounts:e})=>!!e).flatMap(({accounts:e})=>null!=e?e:[]);return n.every(e=>i.includes(e))}function nq(e){return e.reduce((e,t)=>{try{return[...e,tN(t)]}catch(n){let r=JSON.stringify(t);return console.error(`Invalid CAIP account ID: ${r}`,n),e}},[])}function nH(e,t){var r;if(!e||!(null==t?void 0:t.length))return e;let n=Object.fromEntries(Object.entries(e).map(([e,t])=>{var r,n,i;return[e,{methods:[...null!=(r=null==t?void 0:t.methods)?r:[]],notifications:[...null!=(n=null==t?void 0:t.notifications)?n:[]],accounts:[...null!=(i=null==t?void 0:t.accounts)?i:[]]}]})),i=new Map;for(let e of t){let t=`${e.chain.namespace}:${e.chain.reference}`,n=`${e.chainId}:${e.address}`;i.has(t)||i.set(t,[]),null==(r=i.get(t))||r.push(n)}for(let[e,t]of Object.entries(n))if(null==t?void 0:t.accounts)try{let r=tR(e),n=`${r.namespace}:${r.reference}`,s=i.get(n);if(s){let e=new Set(t.accounts),r=s.filter(t=>!e.has(t));t.accounts.push(...r)}}catch(t){console.error(`Invalid scope format: ${e}`,t)}return n}var nV=nr({"src/multichain/utils/index.ts"(){nR(),L=()=>{var e;let t;if("undefined"==typeof document)return;let r=document.getElementsByTagName("link");for(let n=0;n<r.length;n++)("icon"===r[n].getAttribute("rel")||"shortcut icon"===r[n].getAttribute("rel"))&&(t=null!=(e=r[n].getAttribute("href"))?e:void 0);return t},$=Math.floor(4294967295*Math.random()),j=()=>$=($+1)%4294967295}}),nz=nr({"src/ui/modals/base/utils.ts"(){}}
1),nG=nr({"src/ui/modals/base/AbstractInstallModal.ts"(){nz(),nR(),D=E("metamask-sdk:ui"),V=class extends F{constructor(){super(...arguments),no(this,q,null),no(this,H,-1)}get link(){return this.data}set link(e){this.data=e}get connectionRequest(){return this.options.connectionRequest}set connectionRequest(e){this.options.connectionRequest=e}updateLink(e){this.link=e,this.instance&&(this.instance.link=e)}updateExpiresIn(e){e>=0&&this.instance&&(this.instance.expiresIn=e)}startExpirationCheck(e){this.stopExpirationCheck();let t=e;na(this,q,setInterval(()=>nl(this,null,function*(){let{sessionRequest:e}=t,r=Date.now(),n=e.expiresAt-r,i=Math.floor(n/1e3);if(n>0&&(i<=10||(i<=30?i%5==0:i<=60?i%10==0:i<=300?i%30==0:i%60==0))&&ns(this,H)!==i){let e=n<=0?"EXPIRED":`${Math.floor(n/1e3)}s`;D(`[UI: InstallModal-nodejs()] QR code expires in: ${e} (${i}s)`),na(this,H,i)}if(r>=e.expiresAt){this.stopExpirationCheck(),D("[UI: InstallModal-nodejs()] ⏰ QR code EXPIRED! Generating new one...");try{t=yield this.options.createConnectionRequest();let e=yield this.options.generateQRCode(t);na(this,H,-1),this.updateLink(e),this.updateExpiresIn(i),this.renderQRCode(e,t)}catch(e){D(`[UI: InstallModal-nodejs()] \u274C Error generating new QR code: ${e}`)}}}),1e3))}stopExpirationCheck(){ns(this,q)&&(clearInterval(ns(this,q)),na(this,q,null),D("[UI: InstallModal-nodejs()] \uD83D\uDED1 Stopped QR code expiration checking"))}},q=new WeakMap,H=new WeakMap}}),nK=nr({"src/ui/modals/web/install.ts"(){nG(),z=class extends V{renderQRCode(){}mount(){var e;let{options:t}=this,r=document.createElement("mm-install-modal");r.showInstallModal=t.showInstallModal,r.addEventListener("close",e=>{let{detail:r}=e;t.onClose(null==r?void 0:r.shouldTerminate)}),r.addEventListener("startDesktopOnboarding",t.startDesktopOnboarding),r.link=t.link,this.instance=r,null==(e=t.parentElement)||e.appendChild(r),this.startExpirationCheck(t.connectionRequest)}unmount(){var e;let{options:t,instance:r}=this;this.stopExpirationCheck(),r&&(null==(e=t.parentElement)?void 0:e.contains(r))&&(t.parentElement.removeChild(r),this.instance=void 0)}}}}),nW=nr({"src/ui/modals/base/AbstractOTPModal.ts"(){nR(),G=class extends F{get otpCode(){return this.data}set otpCode(e){this.data=e}updateOTPCode(e){this.otpCode=e,this.instance&&(this.instance.otpCode=e)}}}}),nZ=nr({"src/ui/modals/web/otp.ts"(){nW(),K=class extends G{mount(){}unmount(){}}}}),nJ={};nn(nJ,{InstallModal:()=>z,OTPCodeModal:()=>K});var nY=nr({"src/ui/modals/web/index.ts"(){nK(),nZ()}}),nX={};nn(nX,{StoreAdapterWeb:()=>Z});var nQ=nr({"src/store/adapters/web.ts"(){nR(),(W=class e extends R{constructor(t="-kv-store",r=e.stores[0]){super(),this.storeName=r,this.platform="web";let n=`${e.DB_NAME}${t}`;this.dbPromise=new Promise((t,r)=>{try{let i=this.internal.open(n,1);i.onerror=()=>r(Error("Failed to open IndexedDB.")),i.onsuccess=()=>t(i.result),i.onupgradeneeded=()=>{let t=i.result;for(let r of e.stores)t.objectStoreNames.contains(r)||t.createObjectStore(r)}}catch(e){r(e)}})}get internal(){if("undefined"==typeof window||!window.indexedDB)throw Error("indexedDB is not available in this environment");return window.indexedDB}get(e){return nl(this,null,function*(){let{storeName:t}=this,r=yield this.dbPromise;return new Promise((n,i)=>{try{let s=r.transaction(t,"readonly").objectStore(t).get(e);s.onerror=()=>i(Error("Failed to get value from IndexedDB.")),s.onsuccess=()=>{var e;return n(null!=(e=s.result)?e:null)}}catch(e){i(e)}})})}set(e,t){return nl(this,null,function*(){let{storeName:r}=this,n=yield this.dbPromise;return new Promise((i,s)=>{try{let o=n.transaction(r,"readwrite").objectStore(r).put(t,e);o.onerror=()=>s(Error("Failed to set value in IndexedDB.")),o.onsuccess=()=>i()}catch(e){s(e)}})})}delete(e){return nl(this,null,function*(){let{storeName:t}=this,r=yield this.dbPromise;return new Promise((n,i)=>{try{let s=r.transaction(t,"readwrite").objectStore(t).delete(e);s.onerror=()=>i(Error("Failed to delete value from IndexedDB.")),s.onsuccess=()=>n()}catch(e){i(e)}})})}}).stores=["sdk-kv-store","key-value-pairs"],W.DB_NAME="mmconnect",Z=W}});nV();var n1=nN();null!=n1.Buffer||(n1.Buffer=tL.lW),nR();var n6="https://metamask.app.link/connect",n2="metamask://connect";nR(),nB(),nm(),ng(),nM(),nR();
1var n0=1,n8=class extends Error{},n3=class{constructor(e,t){this.config=e,this.sdkInfo=t}request(e){return nl(this,null,function*(){let{request:t}=e,r=JSON.stringify({jsonrpc:"2.0",method:t.method,params:t.params,id:n0+=1}),n=this.getRpcEndpoint(e.scope),i=yield this.fetchWithTimeout(n,r,"POST",this.getHeaders(n),3e4);return yield this.parseResponse(i)})}getRpcEndpoint(e){var t,r,n;let i=(null!=(n=null==(r=null==(t=this.config)?void 0:t.api)?void 0:r.supportedNetworks)?n:{})[e];if(!i)throw new n8(`No RPC endpoint found for scope ${e}`);return i}fetchWithTimeout(e,t,r,n,i){return nl(this,null,function*(){let s=new AbortController,o=setTimeout(()=>s.abort(),i);try{let i=yield rh(e,{method:r,headers:n,body:t,signal:s.signal});if(clearTimeout(o),!i.ok)throw new y(e,r,i.status);return i}catch(e){if(clearTimeout(o),e instanceof y)throw e;if(e instanceof Error&&"AbortError"===e.name)throw new v(`Request timeout after ${i}ms`);throw new v(e.message)}})}parseResponse(e){return nl(this,null,function*(){try{return(yield e.json()).result}catch(e){throw new g(e.message)}})}getHeaders(e){let t={Accept:"application/json","Content-Type":"application/json"};return e.includes("infura")?nt(ne({},t),{"Metamask-Sdk-Info":this.sdkInfo}):t}};nR(),nV(),nB();var n5=class{constructor(e,t,r,n){this.transport=e,this.rpcClient=t,this.config=r,this.transportType=n,no(this,J)}invokeMethod(e){return nl(this,null,function*(){let{method:t}=e.request;return P.has(t)?this.handleWithRpcNode(e):T.has(t)?this.handleWithSdkState(e):this.handleWithWallet(e)})}handleWithWallet(e){return nl(this,null,function*(){return nc(this,J,Y).call(this,e,()=>nl(this,null,function*(){let t=this.transport.request({method:"wallet_invokeMethod",params:e}),{ui:r,mobile:n}=this.config,{showInstallModal:i=!1}=null!=r?r:{};n_()&&!i&&setTimeout(()=>nl(this,null,function*(){let e=yield this.transport.getActiveSession();if(!e)throw Error("No active session found");let t=`${n2}/mwp?id=${encodeURIComponent(e.id)}`;(null==n?void 0:n.preferredOpenLink)?n.preferredOpenLink(t,"_self"):n$(this.config,t,n6)}),10);let s=yield t;if(s.error){let{error:e}=s;throw new A(`RPC Request failed with code ${e.code}: ${e.message}`,e.code,e.message)}return s.result}))})}handleWithRpcNode(e){return nl(this,null,function*(){try{return yield this.rpcClient.request(e)}catch(t){if(t instanceof n8)return this.handleWithWallet(e);throw t}})}handleWithSdkState(e){return nl(this,null,function*(){return console.warn(`Method "${e.request.method}" is configured for SDK state handling, but this is not yet implemented. Falling back to wallet passthrough.`),this.handleWithWallet(e)})}};J=new WeakSet,Y=function(e,t){return nl(this,null,function*(){var r;yield nc(this,J,X).call(this,e);try{let r=yield t();return yield nc(this,J,Q).call(this,e),r}catch(t){if(nP(t)?yield nc(this,J,et).call(this,e):yield nc(this,J,ee).call(this,e),t instanceof A)throw t;throw new A(null!=(r=t.message)?r:"Unknown error",t.code)}})},X=function(e){return nl(this,null,function*(){let t=yield nU(this.config,this.config.storage,e,this.transportType);tX.track("mmconnect_wallet_action_requested",t)})},Q=function(e){return nl(this,null,function*(){let t=yield nU(this.config,this.config.storage,e,this.transportType);tX.track("mmconnect_wallet_action_succeeded",t)})},ee=function(e){return nl(this,null,function*(){let t=yield nU(this.config,this.config.storage,e,this.transportType);tX.track("mmconnect_wallet_action_failed",t)})},et=function(e){return nl(this,null,function*(){let t=yield nU(this.config,this.config.storage,e,this.transportType);tX.track("mmconnect_wallet_action_rejected",t)})},nV();var n4=class{constructor(){no(this,ec),no(this,er,new Set),no(this,en,function({extensionId:e,defaultTimeout:t,warmupTimeout:r}={}){return ri()?function(e={}){let t,{extensionId:r}=e,{defaultTimeout:n=-1,warmupTimeout:i=200}=e,s=rn(),o=new Map,a=new Set;function c(e){let{data:t}=e;if(t?.id===null||t?.id===void 0)(function(e){for(let t of a)try{t(e)}catch(e){console.log("[ChromeTransport] notifyCallbacks error:",e)}})(t);else if(o.has(t.id)){let e=o.get(t.id);o.delete(t.id),e?.(t)}}return{warmupTimeout:i,connect:async()=>{try{r||(r=await ry());let e=chrome.runtime.connect(r),n=!0;if(e.onDisconnect.addListener(()=>{console.log("[ChromeTransport] chromePort disconnected"),t=void 0,n=!1}),await new Promise(e=>setTimeout(e,10)),!n)throw Error(`No extension found with id: ${r}`);e.onMessage.addListener(c),t=e}catch(e){throw new rc("Failed to connect to MetaMask",e)}},disconnect:async()=>
1{if(t)try{t.disconnect(),t=void 0,a.clear(),o.clear()}catch(e){console.log("[ChromeTransport] disconnect error:",e)}},isConnected:()=>void 0!==t,request:async(e,r={})=>{let{timeout:i=n}=r,a=t;if(!a)throw new rc("Chrome port not connected");let c=s++,l={id:c,jsonrpc:"2.0",...e};try{return await ro(new Promise(e=>{o.set(c,e),a.postMessage({type:"caip-348",data:l})}),i,()=>new rl)}catch(e){throw o.has(c)&&o.delete(c),e}},onNotification:e=>(a.add(e),()=>{a.delete(e)})}}({extensionId:e,defaultTimeout:t,warmupTimeout:r}):function(e={}){let{defaultTimeout:t=-1,warmupTimeout:r=200}=e,n=null,i=new Map,s=new Set;async function o(){n&&(window.removeEventListener("message",n),n=null),i.clear(),s.clear()}let a=()=>!!n;return{warmupTimeout:r,connect:async()=>{a()&&await o(),n=e=>{let{target:t,data:r}=e.data;t===rf&&r?.name===rp&&e.origin===location.origin&&function(e){if(e?.id===null||e?.id===void 0)!function(e){for(let t of s)try{t(e)}catch(e){console.log("[WindowPostMessageTransport] notifyCallbacks error:",e)}}(e);else if(i.has(e.id)){let t=i.get(e.id);i.delete(e.id),t?.(e)}}(r.data)},window.addEventListener("message",n)},disconnect:o,isConnected:a,request:(e,r={})=>{let{timeout:n=t}=r;if(!a())throw new rc("Transport not connected");let s=rn(),o={jsonrpc:"2.0",id:s,...e};return ro(new Promise(e=>{i.set(s,t=>e(t)),window.postMessage({target:rd,data:{name:rp,data:o}},location.origin)}),n,()=>new rl).catch(e=>{throw i.has(s)&&i.delete(s),e})},onNotification:e=>(s.add(e),()=>{s.delete(e)})}}({defaultTimeout:t,warmupTimeout:r})}()),no(this,ei,{timeout:6e4}),no(this,es,new Map),no(this,eo),no(this,ea)}sendEip1193Message(e,t){return nl(this,null,function*(){nc(this,ec,ef).call(this);let r=String(j()),n=ne({jsonrpc:"2.0",id:r},e);return new Promise((e,i)=>{var s;let o=setTimeout(()=>{ns(this,es).delete(r),i(Error("Request timeout"))},null!=(s=null==t?void 0:t.timeout)?s:ns(this,ei).timeout);ns(this,es).set(r,{resolve:t=>{e(t)},reject:i,timeout:o}),window.postMessage({target:"metamask-contentscript",data:{name:"metamask-provider",data:n}},location.origin)})})}init(){return nl(this,null,function*(){yield nc(this,ec,ep).call(this);let e={sessionScopes:{}};try{e=(yield this.request({method:"wallet_getSession"},ns(this,ei))).result}catch(e){console.error("Failed to get wallet session during DefaultTransport init")}nc(this,ec,el).call(this,{method:"wallet_sessionChanged",params:e})})}connect(e){return nl(this,null,function*(){var t,r,n,i,s;yield nc(this,ec,ep).call(this);let o=yield this.request({method:"wallet_getSession"},ns(this,ei));if(o.error)throw Error(o.error.message);let a=o.result,c={optionalScopes:nH(nj(null!=(t=null==e?void 0:e.scopes)?t:[]),nq(null!=(r=null==e?void 0:e.caipAccountIds)?r:[])),sessionProperties:null==e?void 0:e.sessionProperties};if(a&&e&&!e.forceRequest){if(!nD(Object.keys(null!=(n=null==a?void 0:a.sessionScopes)?n:{}),null!=(i=null==e?void 0:e.scopes)?i:[],a,null!=(s=null==e?void 0:e.caipAccountIds)?s:[])){let e=yield this.request({method:"wallet_createSession",params:c},ns(this,ei));if(e.error)throw Error(e.error.message);a=e.result}}else if(!a||(null==e?void 0:e.forceRequest)){let e=yield this.request({method:"wallet_createSession",params:c},ns(this,ei));if(e.error)throw Error(e.error.message);a=e.result}nc(this,ec,el).call(this,{method:"wallet_sessionChanged",params:a})})}disconnect(){return nl(this,arguments,function*(e=[]){yield this.request({method:"wallet_revokeSession",params:{scopes:e}})})}isConnected(){return ns(this,en).isConnected()}request(e){return nl(this,arguments,function*(e,t=ns(this,ei)){return ns(this,en).request(e,t)})}onNotification(e){return ns(this,en).onNotification(e),ns(this,er).add(e),()=>{ns(this,er).delete(e)}}getActiveSession(){return nl(this,null,function*(){throw Error("getActiveSession is purposely not implemented for the DefaultTransport")})}getStoredPendingSessionRequest(){return nl(this,null,function*(){throw Error("getStoredPendingSessionRequest is purposely not implemented for the DefaultTransport")})}};er=new WeakMap,en=new WeakMap,ei=new WeakMap,es=new WeakMap,eo=new WeakMap,ea=new WeakMap,ec=new WeakSet,el=function(e){for(let t of ns(this,er))try{t(e)}catch(e){console.log("[WindowPostMessageTransport] notifyCallbacks error:",e)}},eu=function(e){var t,r;return(null==(r=null==(t=null==e?void 0:e.data)?void 0:t.data)?void 0:r.name)==="metamask-provider"&&e.origin===location.origin},eh=function(e){var t,r;if(!nc(this,ec,eu).call(this,e))return;let n=null==(r=null==(t=null==e?void 0:e.data)?void 0:t.data)?void 0:r.data;if(("object"!=typeof n||null===n||!("method"in n))&&"object"==typeof n&&null!==n&&"id"in n&&
1("result"in n||"error"in n)){let e=String(n.id),t=ns(this,es).get(e);if(t){if(clearTimeout(t.timeout),ns(this,es).delete(e),"error"in n&&n.error){let e=Error(n.error.message||"Request failed");"number"==typeof n.error.code&&(e.code=n.error.code),t.reject(e)}else t.resolve(n)}}},ed=function(e){var t,r;if(!nc(this,ec,eu).call(this,e))return;let n=null==(r=null==(t=null==e?void 0:e.data)?void 0:t.data)?void 0:r.data;"object"==typeof n&&null!==n&&"method"in n&&nc(this,ec,el).call(this,n)},ef=function(){ns(this,eo)||(na(this,eo,nc(this,ec,eh).bind(this)),na(this,ea,nc(this,ec,ed).bind(this)),window.addEventListener("message",ns(this,eo)),window.addEventListener("message",ns(this,ea)))},ep=function(){return nl(this,null,function*(){nc(this,ec,ef).call(this),ns(this,en).isConnected()||(yield ns(this,en).connect())})},nV();var n9=class{constructor(e){this.metamaskConnectMultichain=e,no(this,ey),no(this,em,new Set)}isTransportDefined(){try{return!!this.metamaskConnectMultichain.transport}catch(e){return!1}}clearNotificationCallbacks(){ns(this,em).clear()}notifyCallbacks(e){ns(this,em).forEach(t=>{t(e)})}clearTransportNotificationListener(){var e;null==(e=this.notificationListener)||e.call(this),this.notificationListener=void 0}setupTransportNotificationListener(){this.isTransportDefined()&&!this.notificationListener&&(this.notificationListener=this.metamaskConnectMultichain.transport.onNotification(this.notifyCallbacks.bind(this)))}connect(){return nl(this,null,function*(){console.log("\uD83D\uDCDA connect"),yield this.metamaskConnectMultichain.emitSessionChanged()})}disconnect(){return nl(this,null,function*(){return Promise.resolve()})}isConnected(){return!0}request(e){return nl(this,arguments,function*(e,t={}){let r=ne({id:j(),jsonrpc:"2.0"},e);switch(r.method){case"wallet_createSession":return nc(this,ey,eb).call(this,r);case"wallet_getSession":return nc(this,ey,eg).call(this,r);case"wallet_revokeSession":return nc(this,ey,ew).call(this,r);case"wallet_invokeMethod":return nc(this,ey,ev).call(this,r);default:throw Error(`Unsupported method: ${r.method}`)}throw Error(`Unknown method: ${r.method}`)})}onNotification(e){return this.setupTransportNotificationListener(),ns(this,em).add(e),()=>{ns(this,em).delete(e)}}};em=new WeakMap,ey=new WeakSet,eb=function(e){return nl(this,null,function*(){let t=e.params,r=Object.keys(ne(ne({},t.optionalScopes),t.requiredScopes)),n=[];r.forEach(e=>{var r,i,s,o;let a=null==(r=t.requiredScopes)?void 0:r[e],c=null==(i=t.optionalScopes)?void 0:i[e];a&&n.push(...null!=(s=a.accounts)?s:[]),c&&n.push(...null!=(o=c.accounts)?o:[])});let i=[...new Set(n)];return console.log("\uD83D\uDCDA SDK connect"),yield this.metamaskConnectMultichain.connect(r,i,t.sessionProperties),console.log("\uD83D\uDCDA SDK connected"),this.metamaskConnectMultichain.transport.request({method:"wallet_getSession"})})},eg=function(e){return nl(this,null,function*(){return this.isTransportDefined()?this.metamaskConnectMultichain.transport.request({method:"wallet_getSession"}):{jsonrpc:"2.0",id:e.id,result:{sessionScopes:{}}}})},ew=function(e){return nl(this,null,function*(){var t;if(!this.isTransportDefined())return{jsonrpc:"2.0",id:e.id,result:!0};let r=e.params,n=null!=(t=null==r?void 0:r.scopes)?t:[];try{return yield this.metamaskConnectMultichain.disconnect(n),{jsonrpc:"2.0",id:e.id,result:!0}}catch(t){return{jsonrpc:"2.0",id:e.id,result:!1}}})},ev=function(e){return nl(this,null,function*(){return this.isTransportDefined()?{result:this.metamaskConnectMultichain.invokeMethod(e.params)}:{error:rz.unauthorized()}})},nR(),nV();var n7="metamask-multichain-provider",ie="cache_wallet_getSession",it="cache_eth_accounts",ir="cache_eth_chainId",ii="pending_session_request",is=["wallet_getSession","wallet_createSession","wallet_sessionChanged"],io=["wallet_revokeSession","wallet_revokePermissions"],ia=E("metamask-sdk:transport"),ic=class{constructor(e,t,r={requestTimeout:6e4,connectionTimeout:12e4,resumeTimeout:1e4}){this.dappClient=e,this.kvstore=t,this.options=r,this.__pendingRequests=new Map,this.notificationCallbacks=new Set,this.dappClient.on("message",this.handleMessage.bind(this)),this.dappClient.on("session_request",e=>{this.currentSessionRequest=e,this.kvstore.set(ii,JSON.stringify(e)).catch(e=>{ia("Failed to store pending session request",e)})}),"undefined"!=typeof window&&void 0!==window.addEventListener&&(this.windowFocusHandler=this.onWindowFocus.bind(this),window.addEventListener("focus",this.windowFocusHandler))}get pendingRequests(){return this.__pendingRequests}set pendingRequests(e){this.__pendingRequests=e}get sessionRequest(){return this.currentSessionRequest}getStoredPendingSessionRequest(){return nl(this,null,function*(){try{let e=yield this.kvstore.get(ii);if(!e)return null;return JSON.parse(e)}catch(e){return null}})}removeStoredPendingSessionRequest(){return nl(this,null,function*(){yield this.kvstore.delete(ii)})}
1onWindowFocus(){this.isConnected()||this.dappClient.reconnect()}notifyCallbacks(e){this.notificationCallbacks.forEach(t=>t(e))}rejectRequest(e,t=Error("Request rejected")){let r=this.pendingRequests.get(e);r&&(this.pendingRequests.delete(e),clearTimeout(r.timeout),r.reject(t))}parseWalletError(e){if("number"==typeof e.code&&"string"==typeof e.message){let{code:t,message:r}=e;return t>=1e3&&t<=4999?rz.custom({code:t,message:r}):new rD(t,r)}return rV({message:e instanceof Error?e.message:JSON.stringify(e)})}handleMessage(e){if("object"==typeof e&&null!==e&&"data"in e){let t=e.data;if("id"in t&&"string"==typeof t.id){let e=this.pendingRequests.get(t.id);if(e){if(clearTimeout(e.timeout),"error"in t&&t.error){this.pendingRequests.delete(t.id),e.reject(this.parseWalletError(t.error));return}let r=nt(ne({},t),{method:"wallet_getSession"===e.method||"wallet_createSession"===e.method?"wallet_sessionChanged":e.method}),n=nt(ne({},t),{method:"wallet_getSession"===e.method||"wallet_createSession"===e.method?"wallet_sessionChanged":e.method,params:r.result});this.notifyCallbacks(n),e.resolve(r),this.pendingRequests.delete(t.id)}}else{if("metamask_chainChanged"===e.data.method&&this.kvstore.set(ir,JSON.stringify(e.data.params.chainId)),"metamask_accountsChanged"===e.data.method&&this.kvstore.set(it,JSON.stringify(e.data.params)),"wallet_sessionChanged"===e.data.method){let t={result:e.data.params};this.kvstore.set(ie,JSON.stringify(t))}this.notifyCallbacks(e.data)}}}onResumeSuccess(e,t,r){return nl(this,null,function*(){var n,i,s,o,a,c,l;try{yield this.waitForWalletSessionIfNotCached();let u=yield this.request({method:"wallet_getSession"});if(u.error)return t(Error(u.error.message));let h=u.result;if(h&&r){let e=Object.keys(null!=(n=null==h?void 0:h.sessionScopes)?n:{}),c=null!=(i=null==r?void 0:r.scopes)?i:[],l=null!=(s=null==r?void 0:r.caipAccountIds)?s:[],u=nD(e,c,h,l);if(r.forceRequest||!u){let e=nH(nj(null!=(o=null==r?void 0:r.scopes)?o:[]),nq(null!=(a=null==r?void 0:r.caipAccountIds)?a:[])),n=yield this.request({method:"wallet_createSession",params:{optionalScopes:e}});if(n.error)return t(Error(n.error.message));h=n.result}}else if(!h){let e=nH(nj(null!=(c=null==r?void 0:r.scopes)?c:[]),nq(null!=(l=null==r?void 0:r.caipAccountIds)?l:[])),n=yield this.request({method:"wallet_createSession",params:{optionalScopes:e}});if(n.error)return t(Error(n.error.message));h=n.result}return yield this.removeStoredPendingSessionRequest(),this.notifyCallbacks({method:"wallet_sessionChanged",params:h}),e()}catch(e){return t(e)}})}init(){return nl(this,null,function*(){})}sendEip1193Message(e,t){return nl(this,null,function*(){let r=ne({jsonrpc:"2.0",id:String(j())},e),n=yield this.getCachedResponse(r);return n?(this.notifyCallbacks(n),n):new Promise((e,n)=>{var i;let s=setTimeout(()=>{this.rejectRequest(r.id,new rl)},null!=(i=null==t?void 0:t.timeout)?i:this.options.requestTimeout);this.pendingRequests.set(r.id,{request:r,method:r.method,resolve:t=>nl(this,null,function*(){return yield this.storeWalletSession(r,t),e(t)}),reject:n,timeout:s}),this.dappClient.sendRequest({name:"metamask-provider",data:r}).catch(n)})})}connect(e){return nl(this,null,function*(){let t,r;let{dappClient:n}=this,i=yield this.getActiveSession();i&&ia("active session found",{id:i.id,channel:i.channel,expiresAt:i.expiresAt});let s=yield this.getStoredPendingSessionRequest();return new Promise((o,a)=>nl(this,null,function*(){let c;c=new Promise(i?(t,r)=>{var s;"CONNECTED"===this.dappClient.state?this.onResumeSuccess(t,r,e):(this.dappClient.once("connected",()=>nl(this,null,function*(){this.onResumeSuccess(t,r,e)})),n.resume(null!=(s=null==i?void 0:i.id)?s:""))}:(t,i)=>{var s,o;let a={optionalScopes:nH(nj(null!=(s=null==e?void 0:e.scopes)?s:[]),nq(null!=(o=null==e?void 0:e.caipAccountIds)?o:[])),sessionProperties:null==e?void 0:e.sessionProperties},c={jsonrpc:"2.0",id:String(j()),method:"wallet_createSession",params:a};r=e=>nl(this,null,function*(){if("object"!=typeof e||null===e||!("data"in e))return;let r=e.data,n=r.id===c.id,s="wallet_createSession"===r.method||"wallet_sessionChanged"===r.method;return n||s?r.error?i(this.parseWalletError(r.error)):(yield this.storeWalletSession(c,r),yield this.removeStoredPendingSessionRequest(),this.notifyCallbacks(r),t()):void 0}),this.dappClient.on("message",r),n.connect({mode:"trusted",initialPayload:{name:n7,data:c}}).catch(e=>{r&&this.dappClient.off("message",r),i(e)})}),t=setTimeout(()=>{a(new rl)},s?this.options.resumeTimeout:this.options.connectionTimeout),c.then(o).catch(a)})).catch(e=>nl(this,null,function*(){throw yield this.dappClient.disconnect(),e})).finally(()=>{t&&clearTimeout(t),r&&(this.dappClient.off("message",r),r=void 0),this.removeStoredPendingSessionRequest()})})}disconnect(){return nl(this,arguments,function*(e=[]){var t,r;let n=yield this.getCachedResponse({jsonrpc:"2.0",id:"0",method:"wallet_getSession"}),i=null!=(r=null==(t=null==n?void 0:n.result)?void 0:t.sessionScopes)?r:{},s=0===e.length?[]:Object.keys(i).filter(t=>!e.includes(t)),o=Object.fromEntries(Object.entries(i).filter(([e])=>s.includes(e)));this.request({method:"wallet_revokeSession",params:{scopes:e}}).catch(e=>{console.error("error revoking session",e)}),s.some(e=>e.includes("eip155"))||(this.kvstore.delete(it),this.kvstore.delete(ir)),s.length>0?this.kvstore.set(ie,JSON.stringify({result:{sessionScopes:o}})):(this.kvstore.delete(ie),"undefined"!=typeof window&&void 0!==window.removeEventListener&&this.windowFocusHandler&&(window.removeEventListener("focus",this.windowFocusHandler),this.windowFocusHandler=void 0),yield this.dappClient.disconnect()),this.notifyCallbacks({method:"wallet_sessionChanged",params:{sessionScopes:o}})})}isConnected(){return"CONNECTED"===this.dappClient.state}attemptResumeSession(){return nl(this,null,function*(){try{yield this.dappClient.re
1connect(),yield new Promise((e,t)=>{let r=setTimeout(()=>{t(Error("Resume timeout"))},2e3);this.isConnected()?(clearTimeout(r),e()):this.dappClient.once("connected",()=>{clearTimeout(r),e()})})}catch(e){return Promise.reject(Error(`Failed to resume session: ${e.message}`))}})}getCachedResponse(e){return nl(this,null,function*(){var t;if("wallet_getSession"===e.method){let r=yield this.kvstore.get(ie);if(r){let n=JSON.parse(r);return{id:e.id,jsonrpc:"2.0",result:null!=(t=n.params)?t:n.result,method:e.method}}}else if("eth_accounts"===e.method){let t=yield this.kvstore.get(it);if(t)return{id:e.id,jsonrpc:"2.0",result:JSON.parse(t),method:e.method}}else if("eth_chainId"===e.method){let t=yield this.kvstore.get(ir);if(t)return{id:e.id,jsonrpc:"2.0",result:JSON.parse(t),method:e.method}}})}storeWalletSession(e,t){return nl(this,null,function*(){!t.error&&(is.includes(e.method)?yield this.kvstore.set(ie,JSON.stringify(t)):"eth_accounts"===e.method?yield this.kvstore.set(it,JSON.stringify(t.result)):"eth_chainId"===e.method?yield this.kvstore.set(ir,JSON.stringify(t.result)):io.includes(e.method)&&(yield this.kvstore.delete(ie),yield this.kvstore.delete(it),yield this.kvstore.delete(ir)))})}request(e,t){return nl(this,null,function*(){let r=ne({jsonrpc:"2.0",id:String(j())},e),n=yield this.getCachedResponse(r);return n?(this.notifyCallbacks(n),n):(this.isConnected()||(yield this.attemptResumeSession()),new Promise((e,n)=>{var i;let s=setTimeout(()=>{this.rejectRequest(r.id,new rl)},null!=(i=null==t?void 0:t.timeout)?i:this.options.requestTimeout);this.pendingRequests.set(r.id,{request:r,method:r.method,resolve:t=>nl(this,null,function*(){return yield this.storeWalletSession(r,t),e(t)}),reject:n,timeout:s}),this.dappClient.sendRequest({name:n7,data:r}).catch(n)}))})}onNotification(e){return this.notificationCallbacks.add(e),()=>{this.notificationCallbacks.delete(e)}}getActiveSession(){return nl(this,null,function*(){let{kvstore:e}=this,t=yield tQ.pG.create(e);try{let[e]=yield t.list();return e}catch(e){ia("error getting active session",e);return}})}waitForWalletSessionIfNotCached(){return nl(this,null,function*(){let e;if(!(yield this.kvstore.get(ie)))return Promise.race([new Promise(t=>{e=this.onNotification(r=>{if("object"==typeof r&&null!==r&&"data"in r){let n=r.data;("wallet_getSession"===n.method||"wallet_sessionChanged"===n.method)&&(e(),t())}})}),new Promise((t,r)=>{setTimeout(()=>{e(),this.removeStoredPendingSessionRequest(),r(new rl)},this.options.resumeTimeout)})])})}},il=new class{generateKeyPair(){let e=new rK._q;return{privateKey:new Uint8Array(e.secret),publicKey:e.publicKey.toBytes(!0)}}encrypt(e,t){return nl(this,null,function*(){let r=r1.from(e,"utf8");return(0,rK.HI)(t,r).toString("base64")})}decrypt(e,t){return nl(this,null,function*(){let r=r1.from(e,"base64"),n=yield(0,rK.pe)(t,r);return r1.from(n).toString("utf8")})}validatePeerKey(e){rK.nh.fromHex(r1.from(e).toString("hex"))}};nV();var iu=E("metamask-sdk:core"),ih="__METAMASK_CONNECT_MULTICHAIN_SINGLETON__",id=class e extends B{constructor(e){var t,r,n,i,s,o;let a=function(e){var t,r;let n=nv();if(!(null==(t=e.dapp)?void 0:t.name))throw Error("You must provide dapp name");if(("web-desktop"===n||"web-mobile"===n||"in-app-browser"===n)&&(e.dapp=nt(ne({},e.dapp),{url:`${window.location.protocol}//${window.location.host}`})),!(null==(r=e.dapp)?void 0:r.url))throw Error("You must provide dapp url");if("react-native"===n&&e.dapp.url){let t=function(e){var t;if(/^https?:\/\//u.test(e))return;let r=e.match(/^([^:]*):\/\//u),n=((null!=(t=null==r?void 0:r[1])?t:e).toLowerCase().replace(/[^a-z0-9-]/gu,"-").replace(/^-+|-+$/gu,"")||"unknown").slice(0,63).replace(/-+$/u,"");return{url:`https://${n}.rn.dapp.local`,nativeScheme:e}}(e.dapp.url);t&&(console.info(`Normalizing dapp URL for React Native: "${e.dapp.url}" -> "${t.url}"`),e.dapp=nt(ne({},e.dapp),{url:t.url,nativeScheme:t.nativeScheme}))}let i=/^(http|https):\/\/[^\s]*$/u;if(e.dapp){"iconUrl"in e.dapp&&e.dapp.iconUrl&&!i.test(e.dapp.iconUrl)&&(console.warn("Invalid dappMetadata.iconUrl: URL must start with http:// or https://"),e.dapp.iconUrl=void 0),"base64Icon"in e.dapp&&e.dapp.base64Icon&&e.dapp.base64Icon.length>163400&&(console.warn("Invalid dappMetadata.base64Icon: Base64-encoded icon string length must be less than 163400 characters"),e.dapp.base64Icon=void 0),e.dapp.url&&!i.test(e.dapp.url)&&console.warn("Invalid dappMetadata.url: URL must start with http:// or https://");let t=L();if(t&&!("iconUrl"in e.dapp)&&!("base64Icon"in e.dapp)){let r=`${window.location.protocol}//${window.location.host}${t}`;e.dapp.iconUrl=r}}return e}(e);super(nt(ne({},a),{ui:nt(ne({},a.ui),{preferExtension:null==(r=a.ui.preferExtension)||r,showInstallModal:null!=(n=a.ui.showInstallModal)&&n,headless:null!=(i=a.ui.headless)&&i}),analytics:nt(ne({},null!=(s=e.analytics)?s:{}
1),{integrationType:(null==(t=e.analytics)?void 0:t.integrationType)||"direct"}),versions:ne({"connect-multichain":"0.11.1"},null!=(o=e.versions)?o:{})})),no(this,eP),no(this,eA),no(this,eM),no(this,ex),no(this,eE),no(this,eS),this._status="pending",no(this,ek),no(this,eC,`Sdk/Javascript SdkVersion/${nI()} Platform/${nv()} dApp/${null!=(e_=this.options.dapp.url)?e_:this.options.dapp.name} dAppTitle/${this.options.dapp.name}`),na(this,eM,new n9(this)),na(this,eA,function e({transport:t}){let r,n;async function i(){t.isConnected()||(n||(n=t.connect()),await n)}async function s(){return r||(r=(async()=>{await i(),await rs(()=>t.request({method:"wallet_getSession"},{timeout:t.warmupTimeout??1e3}))})()),await r}return i(),{createSession:async e=>(await s(),await ru({transport:t,method:"wallet_createSession",params:e})),getSession:async()=>(await s(),await ru({transport:t,method:"wallet_getSession"})),revokeSession:async e=>{await s(),r=void 0,n=void 0,await ru({transport:t,method:"wallet_revokeSession",params:e}),await t.disconnect()},invokeMethod:async e=>(await s(),await ru({transport:t,method:"wallet_invokeMethod",params:e})),extendsRpcApi:()=>e({transport:t}),onNotification:e=>t.onNotification(e)}}({transport:ns(this,eM)}))}get status(){return this._status}set status(e){this._status!==e&&(this._status=e,this.emit("stateChanged",e))}get provider(){return ns(this,eA)}get transport(){if(!ns(this,ex))throw Error("Transport not initialized, establish connection first");return ns(this,ex)}get dappClient(){if(!ns(this,eE))throw Error("DappClient not initialized, establish connection first");return ns(this,eE)}get storage(){return this.options.storage}get transportType(){return ns(this,ex) instanceof ic?"mwp":"browser"}static create(t){return nl(this,null,function*(){var r,n;let i=nN(),s=i[ih];if(s){let e=yield s;return e.mergeOptions(t),tX.setGlobalProperty("mmconnect_versions",null!=(r=e.options.versions)?r:{}),(null==(n=t.analytics)?void 0:n.integrationType)&&tX.setGlobalProperty("integration_types",[t.analytics.integrationType]),t.debug&&S("metamask-sdk:*"),e}let o=nl(null,null,function*(){let r=new e(t);return(yield k("metamask-sdk:core",r.options.storage))&&S("metamask-sdk:core"),yield nc(r,eP,eO).call(r),r});return i[ih]=o,o.catch(e=>{i[ih]=void 0,console.error("Error initializing MetaMaskConnectMultichain",e)}),o})}connect(e,t,r,n){return nl(this,null,function*(){var i;let s;if("connecting"===this.status&&"mwp"===this.transportType)throw yield nc(this,eP,eG).call(this),Error("Existing connection is pending. Please check your MetaMask Mobile app to continue.");let{ui:o}=this.options,a=nv(),c="in-app-browser"===a||"web-desktop"===a,{preferExtension:l=!0,showInstallModal:u=!1}=o,h=n_(),d=yield nA();s="in-app-browser"===a||c&&d&&l?"browser":"mwp";try{let t=yield nT(this.options,this.storage),r=Object.keys(this.options.api.supportedNetworks);tX.track("mmconnect_connection_initiated",nt(ne({},t),{transport_type:s,dapp_configured_chains:r,dapp_requested_chains:e}))}catch(e){iu("Error tracking connection_initiated event",e)}let{mergedScopes:f,mergedCaipAccountIds:p,mergedSessionProperties:m}=function(e,t,r,n){let i=Object.keys(e.sessionScopes),s=[];return Object.values(e.sessionScopes).forEach(e=>{(null==e?void 0:e.accounts)&&Array.isArray(e.accounts)&&e.accounts.forEach(e=>{s.push(e)})}),{mergedScopes:Array.from(new Set([...i,...t])),mergedCaipAccountIds:Array.from(new Set([...s,...r])),mergedSessionProperties:ne(ne({},e.sessionProperties),n)}}((yield nc(this,eP,ez).call(this)),e,t,r),y=Object.keys(null!=m?m:{}).length>0?m:void 0;if((null==(i=ns(this,ex))?void 0:i.isConnected())&&!h)return nc(this,eP,eV).call(this,ns(this,ex).connect({scopes:f,caipAccountIds:p,sessionProperties:y,forceRequest:n}).then(()=>nl(this,null,function*(){return ns(this,ex) instanceof ic?this.storage.setTransport("mwp"):this.storage.setTransport("browser")})),e,s);if("in-app-browser"===a){let t=yield nc(this,eP,eq).call(this);return nc(this,eP,eV).call(this,t.connect({scopes:f,caipAccountIds:p,sessionProperties:y,forceRequest:n}),e,s)}if(c&&d&&l){let t=yield nc(this,eP,eq).call(this);
1return nc(this,eP,eV).call(this,t.connect({scopes:f,caipAccountIds:p,sessionProperties:y,forceRequest:n}),e,s)}yield nc(this,eP,eN).call(this);let b=d?u:!l||u;return h&&!b?nc(this,eP,eV).call(this,nc(this,eP,eH).call(this,f,p,y),e,s):nc(this,eP,eV).call(this,nc(this,eP,ej).call(this,b,f,p,y),e,s)})}emit(e,t){var r,n;null==(n=null==(r=this.options.transport)?void 0:r.onNotification)||n.call(r,{method:e,params:t}),super.emit(e,t)}disconnect(){return nl(this,arguments,function*(e=[]){var t,r,n;let i=yield nc(this,eP,ez).call(this),s=0===e.length?[]:Object.keys(i.sessionScopes).filter(t=>!e.includes(t));yield null==(t=ns(this,ex))?void 0:t.disconnect(e),0===s.length&&(yield this.storage.removeTransport(),"browser"!==this.transportType&&(yield null==(r=ns(this,ek))?void 0:r.call(this),null==(n=ns(this,eS))||n.call(this),na(this,ek,void 0),na(this,eS,void 0),na(this,ex,void 0),ns(this,eM).clearTransportNotificationListener(),na(this,eE,void 0)),this.status="disconnected")})}invokeMethod(e){return nl(this,null,function*(){let{transport:t,options:r}=this;return new n5(t,new n3(r,ns(this,eC)),r,this.transportType).invokeMethod(e)})}openSimpleDeeplinkIfNeeded(){let{ui:e,mobile:t}=this.options,{showInstallModal:r=!1}=null!=e?e:{};n_()&&!r&&setTimeout(()=>nl(this,null,function*(){let e=yield this.transport.getActiveSession();if(!e)throw Error("No active session found");let r=`${n2}/mwp?id=${encodeURIComponent(e.id)}`;(null==t?void 0:t.preferredOpenLink)?t.preferredOpenLink(r,"_self"):n$(this.options,r,n6)}),10)}emitSessionChanged(){return nl(this,null,function*(){var e,t;let r={sessionScopes:{}};if(!(null==(e=ns(this,ex))?void 0:e.isConnected())){this.emit("wallet_sessionChanged",r);return}let n=yield this.transport.request({method:"wallet_getSession"});this.emit("wallet_sessionChanged",null!=(t=n.result)?t:r)})}};eA=new WeakMap,eM=new WeakMap,ex=new WeakMap,eE=new WeakMap,eS=new WeakMap,ek=new WeakMap,eC=new WeakMap,eP=new WeakSet,eT=function(){return nl(this,null,function*(){var e,t;let r=nv(),n="in-app-browser"===r||"web-desktop"===r||"web-mobile"===r,i="react-native"===r;if(!n&&!i)return;let s=nL(this.options.dapp),o=yield this.storage.getAnonId(),{integrationType:a}=null!=(e=this.options.analytics)?e:{integrationType:""};tX.setGlobalProperty("mmconnect_versions",null!=(t=this.options.versions)?t:{}),tX.setGlobalProperty("dapp_id",s),tX.setGlobalProperty("anon_id",o),tX.setGlobalProperty("platform",r),a&&tX.setGlobalProperty("integration_types",[a]),tX.enable()})},eU=function(e){return nl(this,null,function*(){var t,r,n;if("object"==typeof e&&null!==e&&"method"in e){if("wallet_sessionChanged"===e.method){let n=Object.keys(null!=(r=null==(t=e.params)?void 0:t.sessionScopes)?r:{}).length>0;if("loaded"===this.status&&!n)return;this.status=n?"connected":"disconnected"}this.emit(e.method,null!=(n=e.params)?n:e.result)}})},eB=function(){return nl(this,null,function*(){let e=yield this.storage.getTransport(),t=yield nA();if(e){if("browser"===e){if(t){let e=new n4;return na(this,ex,e),ns(this,eM).setupTransportNotificationListener(),na(this,ek,e.onNotification(nc(this,eP,eU).bind(this))),e}}else if("mwp"===e){let{adapter:e}=this.options.storage,t=yield nc(this,eP,eR).call(this),r=new ic(t,e);return na(this,eE,t),na(this,ex,r),ns(this,eM).setupTransportNotificationListener(),na(this,ek,r.onNotification(nc(this,eP,eU).bind(this))),r}yield this.storage.removeTransport()}})},eI=function(){return nl(this,null,function*(){var e;if(yield nc(this,eP,eB).call(this))this.transport.isConnected()||(this.status="connecting",yield this.transport.connect()),this.status="connected",this.transport instanceof ic?yield this.storage.setTransport("mwp"):yield this.storage.setTransport("browser");else{this.status="loaded";let t=yield nA(),r=null==(e=this.options.ui.preferExtension)||e;if(t&&r){yield nc(this,eP,eq).call(this,{persist:!1});try{yield this.transport.init()}catch(e){console.error("Passive init failed:",e)}}}})},eO=function(){return nl(this,null,function*(){try{yield nc(this,eP,eT).call(this),yield nc(this,eP,eI).call(this)}catch(e){yield this.storage.removeTransport(),this.status="pending",iu("MetaMaskSDK error during initialization",e)}})},eR=function(){return nl(this,null,function*(){let{adapter:e}=this.options.storage,t=yield tQ.pG.create(e),n="undefined"!=typeof window?WebSocket:(yield r.e(8895).then(r.t.bind(r,98895,19))).WebSocket;return new rt({transport:yield tQ.qo.create({url:"wss://mm-sdk-relay.api.cx.metamask.io/connection/websocket",kvstore:e,websocket:n}),sessionstore:t,keymanager:il})})},eN=function(){return nl(this,null,function*(){if(ns(this,ex) instanceof ic)return;let{adapter:e}=this.options.storage,t=yield nc(this,eP,eR).call(this);na(this,eE,t);let r=new ic(t,e);na(this,ex,r),ns(this,eM).setupTransportNotificationListener(),na(this,ek,this.transport.onNotification(nc(this,eP,eU).bind(this))),yield this.storage.setTransport("mwp")})},eF=function(){return nl(this,null,function*(){var e;(null==(e=this.options.ui.factory.modal)?void 0:e.isMounted)&&(yield this.storage.removeTransport())})},eL=function(){let e=nc(this,eP,eF).bind(this);return"undefined"!=typeof window&&void 0!==window.addEventListener&&window.addEventListener("beforeunload",e),()=>{"undefined"!=typeof window&&void 0!==window.removeEventListener&&window.removeEventListener("beforeunload",e)}},e$=function(e,t,r,n){return nl(this,null,function*(){return new Promise((i,s)=>{this.options.ui.factory.renderInstallModal(e,()=>nl(this,null,function*(){return("CONNECTED"===this.dappClient.state||"CONNECTING"===this.dappClient.state)&&(yield this.dappClient.disconnect()),new Promise(e=>
1{this.dappClient.on("session_request",t=>{e({sessionRequest:t,metadata:{dapp:this.options.dapp,sdk:{version:nI(),platform:nv()}}})}),nl(this,null,function*(){var e;try{yield this.transport.connect({scopes:t,caipAccountIds:r,sessionProperties:n}),yield this.options.ui.factory.unload(),null==(e=this.options.ui.factory.modal)||e.unmount(),this.status="connected",yield this.storage.setTransport("mwp")}catch(e){if(e instanceof tQ.K1)e.code!==tQ.jK.REQUEST_EXPIRED&&(this.status="disconnected",yield this.options.ui.factory.unload(e),s(e));else{this.status="disconnected";let t=e instanceof Error?e:Error(String(e));yield this.options.ui.factory.unload(t),s(t)}}}).catch(()=>{})})}),e=>nl(this,null,function*(){e?(yield this.storage.removeTransport(),s(e)):(yield this.storage.setTransport("mwp"),i())}),e=>{this.emit("display_uri",e)}).catch(e=>{s(e instanceof Error?e:Error(String(e)))})})})},ej=function(e,t,r,n){return nl(this,null,function*(){null!=ns(this,eS)||na(this,eS,nc(this,eP,eL).call(this)),this.options.ui.headless?yield nc(this,eP,eD).call(this,t,r,n):yield nc(this,eP,e$).call(this,e,t,r,n)})},eD=function(e,t,r){return nl(this,null,function*(){return new Promise((n,i)=>{("CONNECTED"===this.dappClient.state||"CONNECTING"===this.dappClient.state)&&this.dappClient.disconnect().catch(()=>{}),this.dappClient.on("session_request",e=>{let t={sessionRequest:e,metadata:{dapp:this.options.dapp,sdk:{version:nI(),platform:nv()}}},r=this.options.ui.factory.createConnectionDeeplink(t);this.emit("display_uri",r)}),this.transport.connect({scopes:e,caipAccountIds:t,sessionProperties:r}).then(()=>nl(this,null,function*(){this.status="connected",yield this.storage.setTransport("mwp"),n()})).catch(e=>nl(this,null,function*(){e instanceof tQ.K1?(this.status="disconnected",yield this.storage.removeTransport(),i(e)):(this.status="disconnected",yield this.storage.removeTransport(),i(e instanceof Error?e:Error(String(e))))}))})})},eq=function(){return nl(this,arguments,function*(e={persist:!0}){if(ns(this,ex) instanceof n4)return ns(this,ex);(null==e?void 0:e.persist)&&(yield this.storage.setTransport("browser"));let t=new n4;return na(this,ek,t.onNotification(nc(this,eP,eU).bind(this))),na(this,ex,t),ns(this,eM).setupTransportNotificationListener(),t})},eH=function(e,t,r){return nl(this,null,function*(){return new Promise((n,i)=>nl(this,null,function*(){let s;let o=e=>{var t;if("object"!=typeof e||null===e||!("data"in e))return;let r=e.data;"object"==typeof r&&null!==r&&(r.error&&(this.dappClient.off("message",o),i(r.error)),(null==(t=null==r?void 0:r.result)?void 0:t.sessionScopes)&&this.dappClient.off("message",o))};return this.dappClient.on("message",o),this.transport.isConnected()?s=setTimeout(()=>{this.openSimpleDeeplinkIfNeeded()},250):this.dappClient.once("session_request",e=>{var t;let r={sessionRequest:e,metadata:{dapp:this.options.dapp,sdk:{version:nI(),platform:nv()}}},n=this.options.ui.factory.createConnectionDeeplink(r),i=this.options.ui.factory.createConnectionUniversalLink(r);this.emit("display_uri",n),(null==(t=this.options.mobile)?void 0:t.preferredOpenLink)?this.options.mobile.preferredOpenLink(n,"_self"):n$(this.options,n,i)}),this.transport.connect({scopes:e,caipAccountIds:t,sessionProperties:r}).then(n).catch(e=>nl(this,null,function*(){yield this.storage.removeTransport(),this.dappClient.off("message",o),i(e instanceof Error?e:Error(String(e)))})).finally(()=>{s&&clearTimeout(s)})}))})},eV=function(e,t,r){return nl(this,null,function*(){return this.status="connecting",e.then(()=>nl(this,null,function*(){this.status="connected";try{let e=yield nT(this.options,this.storage);tX.track("mmconnect_connection_established",nt(ne({},e),{transport_type:r,user_permissioned_chains:t}))}catch(e){iu("Error tracking connection_established event",e)}})).catch(e=>nl(this,null,function*(){this.status="disconnected";try{let t=yield nT(this.options,this.storage);nP(e)?tX.track("mmconnect_connection_rejected",nt(ne({},t),{transport_type:r})):tX.track("mmconnect_connection_failed",nt(ne({},t),{transport_type:r}))}catch(t){iu("Error tracking connection failed/rejected event",e)}throw e}))})},ez=function(){return nl(this,null,function*(){var e;let t={sessionScopes:{},sessionProperties:{}};if(null==(e=ns(this,ex))?void 0:e.isConnected())try{let e=yield this.transport.request({method:"wallet_getSession"});e.result&&(t=e.result)}catch(e){}return t})},eG=function(){return nl(this,null,function*(){var e,t;let{ui:r}=this.options,{showInstallModal:n=!1}=null!=r?r:{};if(!(n_()&&!n))return;let i=yield null==(e=ns(this,ex))?void 0:e.getStoredPendingSessionRequest();if(!i)return;let s={sessionRequest:i,metadata:{dapp:this.options.dapp,sdk:{version:nI(),platform:nv()}}},o=this.options.ui.factory.createConnectionDeeplink(s),a=this.options.ui.factory.createConnectionUniversalLink(s);(null==(t=this.options.mobile)?void 0:t.preferredOpenLink)?this.options.mobile.preferredOpenLink(o,"_self"):n$(this.options,o,a)})},nu();var ip=class e extends p{constructor(t,r,n){super(`StorageErr${e.code}: ${t} storage get error in key: ${r} - ${n}`,e.code),this.platform=t,this.key=r,this.reason=n}};ip.code=60;var im=class e extends p{constructor(t,r,n){super(`StorageErr${e.code}: ${t} storage set error in key: ${r} - ${n}`,e.code),this.platform=t,this.key=r,this.reason=n}};im.code=61;var iy=class e extends p{constructor(t,r,n){super(`StorageErr${e.code}: ${t} storage delete error in key: ${r} - ${n}`,e.code),this.platform=t,this.key=r,this.reason=n}};
1iy.code=62,ng(),nE();var ib=class extends N{constructor(e){super(),this.adapter=e}getTransport(){return nl(this,null,function*(){try{let e=yield this.adapter.get("multichain-transport");if(!e)return null;return function(e){switch(e){case"browser":return"browser";case"mwp":return"mwp";default:return"unknown"}}(e)}catch(e){throw new ip(this.adapter.platform,"multichain-transport",e.message)}})}setTransport(e){return nl(this,null,function*(){try{yield this.adapter.set("multichain-transport",e)}catch(e){throw new im(this.adapter.platform,"multichain-transport",e.message)}})}removeTransport(){return nl(this,null,function*(){try{yield this.adapter.delete("multichain-transport")}catch(e){throw new iy(this.adapter.platform,"multichain-transport",e.message)}})}getAnonId(){return nl(this,null,function*(){try{let e=yield this.adapter.get("anonId");if(e)return e;let t=t4();return yield this.adapter.set("anonId",t),t}catch(e){throw new ip(this.adapter.platform,"anonId",e.message)}})}getExtensionId(){return nl(this,null,function*(){try{return yield this.adapter.get("extensionId")}catch(e){throw new ip(this.adapter.platform,"extensionId",e.message)}})}setAnonId(e){return nl(this,null,function*(){try{return yield this.adapter.set("anonId",e)}catch(e){throw new im(this.adapter.platform,"anonId",e.message)}})}setExtensionId(e){return nl(this,null,function*(){try{return yield this.adapter.set("extensionId",e)}catch(e){throw new im(this.adapter.platform,"extensionId",e.message)}})}removeExtensionId(){return nl(this,null,function*(){try{return yield this.adapter.delete("extensionId")}catch(e){throw new iy(this.adapter.platform,"extensionId",e.message)}})}removeAnonId(){return nl(this,null,function*(){try{return yield this.adapter.delete("anonId")}catch(e){throw new iy(this.adapter.platform,"anonId",e.message)}})}getDebug(){return nl(this,null,function*(){try{return yield this.adapter.get("DEBUG")}catch(e){throw new ip(this.adapter.platform,"DEBUG",e.message)}})}};nR(),nV();var ig=class{constructor(e){this.options=e,this.platform=nv(),this.validateModals()}validateModals(){let e=["InstallModal","OTPCodeModal"].filter(e=>!this.options[e]);if(e.length>0)throw Error(`Missing required modals: ${e.join(", ")}`)}unload(e){return nl(this,null,function*(){var t,r;null==(t=this.modal)||t.unmount(),yield null==(r=this.successCallback)?void 0:r.call(this,e)})}get isMobile(){return"react-native"===this.platform}get isNode(){return"nodejs"===this.platform}get isWeb(){return"web-desktop"===this.platform||"in-app-browser"===this.platform||"web-mobile"===this.platform}getContainer(){return"undefined"==typeof document?void 0:document.createElement("div")}getMountedContainer(){if("undefined"==typeof document)return;let e=this.getContainer();return e&&document.body.appendChild(e),e}createConnectionDeeplink(e){if(!e)throw Error("createConnectionDeeplink can only be called with a connection request");let t=encodeURIComponent(nF(JSON.stringify(e)));return`${n2}/mwp?p=${t}&c=1`}createConnectionUniversalLink(e){if(!e)return`${n6}`;let t=encodeURIComponent(nF(JSON.stringify(e)));return`${n6}/mwp?p=${t}&c=1`}onCloseModal(e=!0){return nl(this,null,function*(){return this.unload(e?Error("User closed modal"):void 0)})}onStartDesktopOnboarding(){new rX().startOnboarding()}renderInstallModal(e,t,r,n){return nl(this,null,function*(){var i,s;null==(i=this.modal)||i.unmount(),yield this.preload(),this.successCallback=r,this.displayUriCallback=n;let o=this.getMountedContainer(),a=yield t(),c=this.createConnectionDeeplink(a);null==(s=this.displayUriCallback)||s.call(this,c);let l=new this.options.InstallModal({expiresIn:(a.sessionRequest.expiresAt-Date.now())/1e3,connectionRequest:a,parentElement:o,showInstallModal:e,link:c,generateQRCode:e=>nl(this,null,function*(){var t;let r=this.createConnectionDeeplink(e);return null==(t=this.displayUriCallback)||t.call(this,r),r}),onClose:this.onCloseModal.bind(this),startDesktopOnboarding:this.onStartDesktopOnboarding.bind(this),createConnectionRequest:t,onDisplayUri:this.displayUriCallback});this.modal=l,l.mount()})}renderOTPCodeModal(e,t,r){return nl(this,null,function*(){var n;null==(n=this.modal)||n.unmount(),yield this.preload(),this.successCallback=t;let i=this.getMountedContainer(),s=yield e(),o=new this.options.OTPCodeModal({parentElement:i,otpCode:s,onClose:this.onCloseModal.bind(this),createOTPCode:e,updateOTPCode:e=>r(e,o)});this.modal=o,o.mount()})}},iw=class extends ig{preload(){return nl(this,null,function*(){return function(){return nl(this,null,function*(){if("undefined"!=typeof document)try{let{defineCustomElements:e}=yield r.e(2514).then(r.bind(r,22514));yield e()}catch(e){console.error("Failed to load customElements:",e)}})}()})}};nR();var iv=e=>nl(null,null,function*(){let t;e.debug&&S("metamask-sdk:*");let r=yield Promise.resolve().then(()=>(nY(),nJ));if(e.storage)t=e.storage;else{let{StoreAdapterWeb:e}=yield Promise.resolve().then(()=>(nQ(),nX));t=new ib(new e)}let n=new iw(r);return id.create(nt(ne({},e),{storage:t,ui:nt(ne({},e.ui),{factory:n})}))});
1class i_ extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}function iA(e,t="Assertion failed.",r=i_){if(!e){if(t instanceof Error)throw t;throw"string"==typeof r?.prototype?.constructor?.name?new r({message:t}):r({message:t})}}var iM=r(59497),ix=r(91065);let{memoize:iE}=ix,iS=/^(?:0x)?[0-9a-f]+$/iu,ik=/^0x[0-9a-f]+$/iu,iC=/^0x[0-9a-f]{40}$/u,iP=/^0x[0-9a-fA-F]{40}$/u;rE(rM(),iS),rE(rM(),ik),rE(rM(),iC),rE(rM(),iP);let iT=e=>"string"==typeof e;function iU(e){return iT(e)&&iS.test(e)}function iB(e){return iT(e)&&ik.test(e)}function iI(e){return iT(e)&&iP.test(e)}let iO=iE(function(e){iA(iI(e),"Invalid hex address.");let t=(e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e).toLowerCase(),r=(0,iM.fr)(t),{length:n}=t,i=Array(n);for(let e=0;e<n;e++){let n=e>>1,s=1&e,o=r[n],a=0===s?o>>4:15&o;i[e]=a>=8?t[e].toUpperCase():t[e]}return`0x${i.join("")}`}),iR=iE(function(e){return!!iI(e)&&iO(e)===e});function iN(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`}iE(function(e){return iT(e)&&iC.test(e)||iR(e)});let iF=e=>(iA("number"==typeof e,"Value must be a number."),iA(e>=0,"Value must be a non-negative number."),iA(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),iN(e.toString(16))),iL=e=>{iA(iU(e),"Value must be a hexadecimal string.");let t=parseInt(e,16);return iA(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t},i$=e=>"string"==typeof e&&tI.test(e)?{namespace:e}:"string"==typeof e&&tB.test(e)?tR(e):{};var ij=r(59357);let iD=ij?.__esModule?ij.default:ij;(eK||(eK={})).Eip155="wallet:eip155";let iq=["wallet_registerOnboarding","wallet_scanQRCode"],iH=["wallet_addEthereumChain"],iV=["wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_revokePermissions","eth_requestAccounts","eth_accounts","eth_coinbase","net_version","metamask_logWeb3ShimUsage","metamask_getProviderState","metamask_sendDomainMetadata","wallet_registerOnboarding"];iD.methods.map(({name:e})=>e).filter(e=>!iH.includes(e)).filter(e=>!iq.includes(e)).filter(e=>!iV.includes(e)),(u=eW||(eW={})).SolanaAccountChangedNotifications="solana_accountChanged_notifications",u.TronAccountChangedNotifications="tron_accountChanged_notifications",u.Bip122AccountChangedNotifications="bip122_accountChanged_notifications";let{cloneDeep:iz}=ix,iG=e=>Array.from(new Set(e)),iK=e=>{let{namespace:t}=i$(e);return t===h.Eip155||e===eK.Eip155},iW=e=>{let t=[];return Object.entries(e).forEach(([e,{accounts:r}])=>{r?.forEach(e=>{let{address:r,chainId:n}=tN(e);iK(n)&&(iA(iB(r),'Value must be a hexadecimal string, starting with "0x".'),t.push(r))})}),t},iZ=e=>{let{requiredScopes:t,optionalScopes:r}=e;return iG([...iW(t),...iW(r)])};r(89434);var iJ=r(55545),iY=r(59364),iX=r(59605);function iQ(e){return e?.__esModule?e.default:e}r(36243).lW;let i1=iQ(iJ);iQ(iY),iQ(iX);let{memoize:i6}=ix;Error("timeout"),i6(function(e){if("string"!=typeof e)return e;let t=iN(e);if(!iU(t))return t;try{return iO(t)}catch(e){if(e instanceof Error&&"Invalid hex address."===e.message)return t;throw e}}),i6(function(e,{allowNonPrefixed:t=!0}={}){let r=t?iN(e):e;return!!iB(r)&&iI(r)},(e,{allowNonPrefixed:t=!0}={})=>`${e}-${t}`);let i2=e=>{let t=[];return Object.keys(e).forEach(e=>{let{namespace:r,reference:n}=i$(e);r===h.Eip155&&n&&t.push(function(e){if("string"==typeof e&&iB(e))return e;let t=i1.isBN(e)||"bigint"==typeof e?e.toString(16):new i1(e.toString(),10).toString(16);return`0x${t}`}(n))}),t},i0=e=>{let{requiredScopes:t,optionalScopes:r}=e;return iG([...i2(t),...i2(r)])};var i8=Object.defineProperty,i3=Object.defineProperties,i5=Object.getOwnPropertyDescriptors,i4=Object.getOwnPropertySymbols,i9=Object.prototype.hasOwnProperty,i7=Object.prototype.propertyIsEnumerable,se=e=>{throw TypeError(e)},st=(e,t,r)=>t in e?i8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sr=(e,t)=>{for(var r in t||(t={}))i9.call(t,r)&&st(e,r,t[r]);if(i4)for(var r of i4(t))i7.call(t,r)&&st(e,r,t[r]);return e},sn=(e,t)=>i3(e,i5(t)),si=(e,t,r)=>t.has(e)||se("Cannot "+r),ss=(e,t,r)=>(si(e,t,"read from private field"),r?r.call(e):t.get(e)),so=(e,t,r)=>t.has(e)?se("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),sa=(e,t,r,n)=>(si(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),sc=(e,t,r)=>(si(e,t,"access private method"),r),sl=(e,t,r)=>new Promise((n,i)=>{var s=e=>{try{a(r.next(e))}catch(e){i(e)}},o=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);a((r=r.apply(e,t)).next())}),su=({infuraApiKey:e,chainIds:t})=>Object.entries(function({infuraApiKey:e,caipChainIds:t}){return(t&&t.length>0?t:Object.keys(C)).reduce((t,r)=>{let n=C[r];return n&&(t[r]=`${n}${e}`),t},{})}({infuraApiKey:e,caipChainIds:null==t?void 0:t.map(e=>`eip155:${iL(e)}`)})).reduce((e,[t,r])=>{let{namespace:n,reference:i}=tR(t);return n!==h.Eip155||(e[iF(parseInt(i,10))]=r),e},{}
1),sh=["metamask_getProviderState","metamask_sendDomainMetadata","metamask_logWeb3ShimUsage","wallet_registerOnboarding","net_version","wallet_getPermissions"],sd=["eth_accounts","eth_coinbase",...sh,"wallet_requestPermissions","eth_requestAccounts","eth_chainId","wallet_revokePermissions","wallet_switchEthereumChain","wallet_addEthereumChain"],sf="metamask-connect:evm",sp=E(sf,"63"),sm=()=>{S(sf)},sy=class extends x{constructor(e,t){super(),so(this,eZ),so(this,eJ),so(this,eY,[]),so(this,eX),sa(this,eZ,e),sa(this,eJ,t),this.request=this.request.bind(this),this.sendAsync=this.sendAsync.bind(this),this.send=this.send.bind(this),this.on=this.on.bind(this),this.off=this.off.bind(this),this.emit=this.emit.bind(this),this.once=this.once.bind(this),this.removeListener=this.removeListener.bind(this),this.listenerCount=this.listenerCount.bind(this)}request(e){return sl(this,null,function*(){var t,r,n,i;if(sp(`request: ${e.method} - chainId: ${this.selectedChainId}`,e.params),sd.includes(e.method))return null==(t=ss(this,eJ))?void 0:t.call(this,e);if(!ss(this,eX))throw Error("No chain ID selected");let s=iL(ss(this,eX)),o=`eip155:${s}`,a=ss(this,eZ).options;if(!(null!=(n=null==(r=null==a?void 0:a.api)?void 0:r.supportedNetworks)?n:{})[o])throw Error(`Chain ${o} is not configured in supportedNetworks. Requests cannot be made to chains not explicitly configured in supportedNetworks.`);try{return yield ss(this,eZ).invokeMethod({scope:o,request:{method:e.method,params:e.params}})}catch(e){if(e instanceof A&&void 0!==e.rpcCode){let t=Error(null!=(i=e.rpcMessage)?i:e.reason);throw t.code=e.rpcCode,t}throw e}})}get selectedAccount(){return this.accounts[0]}set accounts(e){sa(this,eY,e)}get accounts(){return ss(this,eY)}get selectedChainId(){return ss(this,eX)}set selectedChainId(e){sa(this,eX,e)}get chainId(){return this.selectedChainId}sendAsync(e,t){return sl(this,null,function*(){var r;let n=null!=(r=e.id)?r:1,i=this.request({method:e.method,params:e.params}).then(e=>({id:n,jsonrpc:"2.0",result:e})).catch(e=>{var t,r;return{id:n,jsonrpc:"2.0",error:{code:null!=(t=e.code)?t:-32603,message:null!=(r=e.message)?r:"Internal error",data:e.data}}});if(t){i.then(e=>{e.error?t(Error(e.error.message),e):t(null,e)}).catch(e=>{t(e,null)});return}return i})}send(e,t){this.sendAsync(e,t)}};eZ=new WeakMap,eJ=new WeakMap,eY=new WeakMap,eX=new WeakMap;var sb=e=>e?iZ({requiredScopes:e,optionalScopes:e}):[],sg=e=>e?i0({requiredScopes:e,optionalScopes:e}):[],sw="cache_eth_chainId",sv=class e{constructor({core:e,eventHandlers:t}){so(this,e9),so(this,eQ),so(this,e1),so(this,e6,{}),so(this,e2),so(this,e0),so(this,e8),so(this,e3),so(this,e5,"disconnected"),so(this,e4),sa(this,eQ,e),sa(this,e1,new sy(e,sc(this,e9,ts).bind(this))),sa(this,e2,t),sa(this,e0,sc(this,e9,tu).bind(this)),ss(this,eQ).on("wallet_sessionChanged",ss(this,e0)),sa(this,e8,sc(this,e9,tm).bind(this)),ss(this,eQ).on("display_uri",ss(this,e8)),sp("Connect/EVM constructor completed")}static create(t){return sl(this,null,function*(){let r=new e(t);return yield ss(r,eQ).emitSessionChanged(),r})}connect(){return sl(this,arguments,function*({account:e,forceRequest:t,chainIds:r=["0x1"]}={}){var n;if(sp("request: connect",{account:e}),!r||0===r.length)throw Error("chainIds must be an array of at least one chain ID");sa(this,e4,r[0]);let i=Array.from(new Set(null!=(n=r.concat("0x1"))?n:["0x1"])).map(e=>`eip155:${iL(e)}`),s=e?i.map(t=>`${t}:${e}`):[];sa(this,e5,"connecting");try{let e=new Promise(e=>{ss(this,e1).once("connect",({chainId:t,accounts:r})=>{sp("fulfilled-request: connect",{chainId:t,accounts:r}),e({accounts:r,chainId:t})})});return yield ss(this,eQ).connect(i,s,void 0,t),yield e}catch(e){throw sa(this,e5,"disconnected"),sp("Error connecting to wallet",e),e}finally{sa(this,e4,void 0)}})}connectAndSign(e){return sl(this,arguments,function*({message:e,chainIds:t}){var r,n;let{accounts:i,chainId:s}=yield this.connect({chainIds:null!=t?t:["0x1"]}),o=yield ss(this,e1).request({method:"personal_sign",params:[i[0],e]});return null==(n=null==(r=ss(this,e2))?void 0:r.connectAndSign)||n.call(r,{accounts:i,chainId:s,signResponse:o}),o})}connectWith(e){return sl(this,arguments,function*({method:e,params:t,chainIds:r,account:n,forceRequest:i}){var s,o;let{accounts:a,chainId:c}=yield this.connect({chainIds:null!=r?r:["0x1"],account:n,forceRequest:i}),l="function"==typeof t?t(a[0]):t,u=yield ss(this,e1).request({method:e,params:l});return null==(o=null==(s=ss(this,e2))?void 0:s.connectWith)||o.call(s,{accounts:a,chainId:c,connectWithResponse:u}),u})}disconnect(){return sl(this,null,function*(){var e;sp("request: disconnect");let t=Object.keys(ss(this,e6)).filter(e=>{let{namespace:t}=i$(e);return"eip155"===t});yield ss(this,eQ).disconnect(t),sc(this,e9,tp).call(this),sc(this,e9,to).call(this),null==(e=ss(this,e3))||e.call(this),sa(this,e3,void 0),sp("fulfilled-request: disconnect")})}switchChain(e){return sl(this,arguments,function*({chainId:e,chainConfiguration:t}){let r="wallet_switchEthereumChain",n=`eip155:${iL(e)}`,i=[{chainId:e}];if(this.selectedChainId===e)return Promise.resolve();if(sg(ss(this,e6)).includes(e)&&ss(this,eQ).transportType===U.MWP)return yield sc(this,e9,tl).call(this,e),sc(this,e9,th).call(this,e),Promise.resolve();yield sc(this,e9,tt).call(this,r,n,i);try{let t=yield sc(this,e9,tc).call(this,{method:"wallet_switchEthereumChain",params:i});if(null==t?void 0:t.error)throw Error(t.error.message);return yield sc(this,e9,tr).call(this,r,n,i),null===t.result&&(yield sc(this,e9,tl).call(this,e),sc(this,e9,th).call(this,e)),Promise.resolve()}
1catch(e){if(yield sc(this,e9,tn).call(this,r,n,i,e),e.message.includes("Unrecognized chain ID"))return sc(this,e9,ta).call(this,t);throw e}})}getProvider(){return ss(this,e1)}getChainId(){return this.selectedChainId}getAccount(){return ss(this,e1).selectedAccount}get accounts(){return ss(this,e1).accounts}get selectedAccount(){return ss(this,e1).selectedAccount}get selectedChainId(){return ss(this,e1).selectedChainId}get status(){return ss(this,eQ).status}};function s_(e){return sl(this,null,function*(){var t,r;if(e.debug&&sm(),sp("Creating Metamask Connect/EVM with options:",e),!(null==(t=e.api)?void 0:t.supportedNetworks)||0===Object.keys(e.api.supportedNetworks).length)throw Error("supportedNetworks is required and must contain at least one chain configuration");!function(e,t){let r=[];for(let[t,n]of Object.entries(e))try{new URL(n)}catch(e){r.push(`${t}: ${n}`)}if(r.length>0)throw Error(`${t} contains invalid URLs:
2${r.join("\n")}`)}(e.api.supportedNetworks,"supportedNetworks");let n=Object.entries(e.api.supportedNetworks).reduce((e,[t,r])=>{let n=parseInt(t,16);return e[`eip155:${n}`]=r,e},{});try{let t=yield iv(sn(sr({},e),{api:{supportedNetworks:n},analytics:{integrationType:(null==(r=e.analytics)?void 0:r.integrationType)||"direct"},versions:{"connect-evm":"0.9.1"}}));return sv.create({core:t,eventHandlers:e.eventHandlers,supportedNetworks:e.api.supportedNetworks})}catch(e){throw console.error("Error creating Metamask Connect/EVM",e),e}})}eQ=new WeakMap,e1=new WeakMap,e6=new WeakMap,e2=new WeakMap,e0=new WeakMap,e8=new WeakMap,e3=new WeakMap,e5=new WeakMap,e4=new WeakMap,e9=new WeakSet,e7=function(){return ss(this,eQ).options},te=function(e,t,r){return{scope:t,request:{method:e,params:r}}},tt=function(e,t,r){return sl(this,null,function*(){let n=sc(this,e9,e7).call(this);try{let i=sc(this,e9,te).call(this,e,t,r),s=yield nU(n,ss(this,eQ).storage,i,ss(this,eQ).transportType);tX.track("mmconnect_wallet_action_requested",s)}catch(e){sp("Error tracking mmconnect_wallet_action_requested event",e)}})},tr=function(e,t,r){return sl(this,null,function*(){let n=sc(this,e9,e7).call(this);try{let i=sc(this,e9,te).call(this,e,t,r),s=yield nU(n,ss(this,eQ).storage,i,ss(this,eQ).transportType);tX.track("mmconnect_wallet_action_succeeded",s)}catch(e){sp("Error tracking mmconnect_wallet_action_succeeded event",e)}})},tn=function(e,t,r,n){return sl(this,null,function*(){let i=sc(this,e9,e7).call(this);try{let s=sc(this,e9,te).call(this,e,t,r),o=yield nU(i,ss(this,eQ).storage,s,ss(this,eQ).transportType);nP(n)?tX.track("mmconnect_wallet_action_rejected",o):tX.track("mmconnect_wallet_action_failed",o)}catch(e){sp("Error tracking wallet action rejected or failed event",n)}})},ti=function(e){return sl(this,null,function*(){if(ss(this,e4)&&e.includes(ss(this,e4)))return ss(this,e4);try{let t=yield ss(this,eQ).storage.adapter.get(sw);if(t){let r=JSON.parse(t);if(e.includes(r))return r}}catch(e){sp("Error retrieving cached chainId",e)}return e[0]})},ts=function(e){return sl(this,null,function*(){if(sp(`Intercepting request for method: ${e.method}`),sh.includes(e.method))return Promise.reject(Error(`Method: ${e.method} is not supported by Metamask Connect/EVM`));if("wallet_revokePermissions"===e.method)return this.disconnect();if("wallet_requestPermissions"===e.method||"eth_requestAccounts"===e.method){let t="wallet_requestPermissions"===e.method,{method:r,params:n}=e,i=sg(ss(this,e6));0===i.length&&i.push("0x1");let s=ss(this,e1).selectedChainId,o=s&&i.includes(s)?s:i[0],a=[o,...i.filter(e=>e!==o)],c=`eip155:${iL(o)}`;yield sc(this,e9,tt).call(this,r,c,n);try{let e=yield this.connect({chainIds:a,forceRequest:t});return yield sc(this,e9,tr).call(this,r,c,n),e}catch(e){throw yield sc(this,e9,tn).call(this,r,c,n,e),e}}return"wallet_switchEthereumChain"===e.method?this.switchChain({chainId:e.params[0].chainId}):"wallet_addEthereumChain"===e.method?sc(this,e9,ta).call(this,e.params[0]):"eth_accounts"===e.method||"eth_coinbase"===e.method?ss(this,e1).accounts:"eth_chainId"===e.method?ss(this,e1).selectedChainId:(sp("Request not intercepted, forwarding to default handler",e),Promise.resolve())})},to=function(){ss(this,e1).accounts=[],ss(this,e1).selectedChainId=void 0},ta=function(e){return sl(this,null,function*(){sp("addEthereumChain called",{chainConfiguration:e});let t="wallet_addEthereumChain";if(!e)throw Error("No chain configuration found.");let r=e.chainId||ss(this,e1).selectedChainId||"0x1",n=iL(r),i=`eip155:${n}`,s=[e];yield sc(this,e9,tt).call(this,t,i,s);try{let e=yield sc(this,e9,tc).call(this,{method:"wallet_addEthereumChain",params:s});null===e.result&&(yield sc(this,e9,tl).call(this,r),sc(this,e9,th).call(this,r)),yield sc(this,e9,tr).call(this,t,i,s)}
2catch(e){throw yield sc(this,e9,tn).call(this,t,i,s,e),e}})},tc=function(e){return sl(this,null,function*(){sp("direct request to metamask-provider called",e);let t=ss(this,eQ).transport.sendEip1193Message(e);return("wallet_addEthereumChain"===e.method||"wallet_switchEthereumChain"===e.method)&&ss(this,eQ).openSimpleDeeplinkIfNeeded(),t})},tl=function(e){return sl(this,null,function*(){try{yield ss(this,eQ).storage.adapter.set(sw,JSON.stringify(e))}catch(e){sp("Error caching chainId",e)}})},tu=function(e){return sl(this,null,function*(){var t;sp("event: wallet_sessionChanged",e),sa(this,e6,null!=(t=null==e?void 0:e.sessionScopes)?t:{});let r=sg(ss(this,e6));if(0===r.length)sc(this,e9,tp).call(this);else{let e=[];e="connected"===ss(this,eQ).status?(yield ss(this,eQ).transport.sendEip1193Message({method:"eth_accounts",params:[]})).result:sb(ss(this,e6));let t=yield sc(this,e9,ti).call(this,r);sc(this,e9,tf).call(this,{chainId:t,accounts:e})}})},th=function(e){var t,r;e!==ss(this,e1).selectedChainId&&(sp("handler: chainChanged",{chainId:e}),ss(this,e1).selectedChainId=e,null==(r=null==(t=ss(this,e2))?void 0:t.chainChanged)||r.call(t,e),ss(this,e1).emit("chainChanged",e))},td=function(e){var t,r;e.length===ss(this,e1).accounts.length&&e.every((e,t)=>e===ss(this,e1).accounts[t])||(sp("handler: accountsChanged",e),ss(this,e1).accounts=e,ss(this,e1).emit("accountsChanged",e),null==(r=null==(t=ss(this,e2))?void 0:t.accountsChanged)||r.call(t,e))},tf=function({chainId:e,accounts:t}){var r,n,i;sp("handler: connect",{chainId:e,accounts:t});let s={chainId:e,accounts:t};if("connected"!==ss(this,e5)){sa(this,e5,"connected"),ss(this,e1).emit("connect",s),null==(n=null==(r=ss(this,e2))?void 0:r.connect)||n.call(r,s),null==(i=ss(this,e3))||i.call(this);let e=e=>{sp("core-event: accountsChanged",e),sc(this,e9,td).call(this,e)},t=e=>{sp("core-event: chainChanged",e.chainId),sc(this,e9,tl).call(this,e.chainId).catch(e=>{sp("Error caching chainId in notification handler",e)}),sc(this,e9,th).call(this,e.chainId)};ss(this,eQ).on("metamask_accountsChanged",e),ss(this,eQ).on("metamask_chainChanged",t),sa(this,e3,()=>{ss(this,eQ).off("metamask_accountsChanged",e),ss(this,eQ).off("metamask_chainChanged",t)})}sc(this,e9,th).call(this,e),sc(this,e9,td).call(this,t)},tp=function(){var e,t;"disconnected"!==ss(this,e5)&&(sa(this,e5,"disconnected"),sp("handler: disconnect"),ss(this,e1).emit("disconnect"),null==(t=null==(e=ss(this,e2))?void 0:e.disconnect)||t.call(e),sc(this,e9,td).call(this,[]))},tm=function(e){var t,r;"connecting"===ss(this,e5)&&(sp("handler: display_uri",e),ss(this,e1).emit("display_uri",e),null==(r=null==(t=ss(this,e2))?void 0:t.displayUri)||r.call(t,e))}},97211:function(e,t,r){"use strict";r.d(t,{v:function(){return n}});var n=r(12542);t.Z=n},43650:function(e){"use strict";e.exports=JSON.parse('{"openrpc":"1.2.4","info":{"title":"MetaMask MultiChain API","version":"1.0.0","description":"This provides the specs for the MultiChain API Layer for the MetaMask API"},"methods":[{"name":"wallet_notify","paramStructure":"by-name","params":[{"name":"scope","description":"a valid `scope` string that has been previously authorized via `provider_authorize`","required":true,"schema":{"$ref":"#/components/schemas/ScopeString"}},{"name":"notification","description":"an object containing a JSON-RPC notification with `method` and `params`","deprecated":false,"required":true,"schema":{"type":"object","properties":{"method":{"type":"string"},"params":true}}}]},{"name":"wallet_invokeMethod","paramStructure":"by-name","params":[{"name":"scope","description":"a valid `scope` string that has been previously authorized via `provider_authorize`","required":true,"schema":{"$ref":"#/components/schemas/ScopeString"}},{"name":"request","description":"an object containing a JSON-RPC request with `method` and `params`","deprecated":false,"required":true,"schema":{"type":"object","properties":{"method":{"type":"string"},"params":true}}}],"result":{"name":"wallet_invokeMethodResult","schema":true},"examples":[{"name":"wallet_invokeMethodExample","params":[{"name":"scope","value":"eip155:1"},{"name":"request","value":{"method":"eth_getBalance","params":[]}}],"result":{"name":"wallet_invokeMethodResult","value":"0x1"}}]},{"name":"wallet_revokeSession","description":"The `wallet_revokeSession` method revokes the entire active session.","params":[],"result":{"name":"wallet_revokeSessionResult","schema":{"type":"boolean"}},"examples":[{"name":"wallet_revokeSessionExample","params":[],"result":{"name":"wallet_revokeSessionExampleResult","value":true}}],"errors":[{"$ref":"#/components/errors/UnknownError"}]}
2,{"name":"wallet_sessionChanged","paramStructure":"by-name","description":"This notification is published by the wallet to notify the callers of updates to a shared session\'s authorization scopes. The event payload contains the new `sessionScopes`.","params":[{"name":"sessionScopes","schema":{"$ref":"#/components/schemas/SessionScopes"}}],"examples":[{"name":"wallet_sessionChangedExample","description":"Example of a wallet_sessionChanged notification.","params":[{"name":"sessionScopes","value":{"eip155:1337":{"accounts":["eip155:1337:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]},"wallet":{"accounts":[],"methods":["wallet_registerOnboarding","wallet_scanQRCode"],"notifications":[]},"wallet:eip155":{"accounts":["wallet:eip155:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["wallet_addEthereumChain"],"notifications":[]}}}]}]},{"name":"wallet_getSession","description":"The `wallet_getSession` method returns an active session.","params":[],"result":{"name":"wallet_getSessionResult","schema":{"type":"object","properties":{"sessionScopes":{"$ref":"#/components/schemas/SessionScopes"}}}},"examples":[{"name":"wallet_getSessionExample","description":"Example of a getSession request.","params":[],"result":{"name":"wallet_getSessionResultExample","value":{"sessionScopes":{"eip155:1337":{"accounts":["eip155:1337:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]},"wallet":{"accounts":[],"methods":["wallet_registerOnboarding","wallet_scanQRCode"],"notifications":[]},"wallet:eip155":{"accounts":["wallet:eip155:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["wallet_addEthereumChain"],"notifications":[]}}}}}]},{"name":"wallet_createSession","paramStructure":"by-name","params":[{"name":"requiredScopes","description":"Scopes that the wallet must support in order to be used with this provider.","schema":{"type":"object","patternProperties":{"[-a-z0-9]{3,8}(:[-_a-zA-Z0-9]{1,32})?":{"$ref":"#/components/schemas/Scope"}}}},{"name":"optionalScopes","description":"Scopes that the wallet may support in order to be used with this provider.","schema":{"type":"object","patternProperties":{"[-a-z0-9]{3,8}(:[-_a-zA-Z0-9]{1,32})?":{"$ref":"#/components/schemas/Scope"}}}},{"name":"sessionProperties","description":"Properties that the wallet may use to determine if the session is valid.","schema":{"type":"object"}}],"result":{"name":"wallet_createSessionResult","schema":{"type":"object","properties":{"sessionScopes":{"$ref":"#/components/schemas/SessionScopes"},"sessionProperties":{"type":"object"}}}},"examples":[{"name":"wallet_createSessionEthExample","description":"Example of a createSession request.","params":[{"name":"optionalScopes","value":{"eip155:1337":{"methods":["wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]},"wallet":{"methods":["wallet_registerOnboarding","wallet_scanQRCode"],"notifications":[]},"wallet:eip155":{"methods":["wallet_addEthereumChain"],"notifications":[]}}}],"result":{"name":"wallet_createSessionResultExample","value":{"sessionProperties":{},"sessionScopes":{"eip155:1337":{"accounts":["eip155:1337:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]},"wallet":{"accounts":[],"methods":["wallet_registerOnboarding","wallet_scanQRCode"],"notifications":[]},"wallet:eip155":{"accounts":["wallet:eip155:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["wallet_addEthereumChain"],"notifications":[]}}}}},{"name":"wallet_createSessionEthUnsupportedMethodsExample","description":"Example of a createSession request with unsupported eip155 methods.","params":[{"name":"optionalScopes","value":{"eip155:1337":{"methods":["not_supported"],"notifications":[]},"wallet":{"methods":[],"notifications":[]},"wallet:eip155":{"methods":[],"notifications":[]}}}],"result":{"name":"wallet_createSessionEthUnsupportedMethodsResultExample","value":{"sessionProperties":{},"sessionScopes":{"eip155:1337":{"accounts":["eip155:1337:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]},"wallet":{"accounts":[],"methods":["wallet_registerOnboarding","wallet_scanQRCode"],"notifications":[]},"wallet:eip155":{"accounts":["wallet:eip155:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["wallet_addEthereumChain"],"notifications":[]}}}}},{"name":"wallet_createSessionUnsupportedScopesExample","description":"Example of a createSession request with unsupported scopes.","params":[{"name":"optionalScopes","value":{"foobar":{"methods":["eth_getBalance"],"notifications":["eth_subscription"]},"eip155:1":{"accounts":["eip155:1:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]}}}],"result":{"name":"wallet_createSessionUnsupportedScopesResultExample","value":{"sessionProperties":{},"sessionScopes":{"eip155:1":{"accounts":["eip155:1:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]}}}}}],"errors":[{"$ref":"#/components/errors/UnknownError"},{"code":5100,"message":"Requested networks are not supported"},{"code":5101,"message":"Requested methods are not supported"},{"code":5102,"message":"Requested notifications are not supported"},{"code":5300,"message":"Invalid scopedProperties requested"},{"code":5301,"message":"scopedProperties can only be outside of sessionScopes"},{"code":5302,"message":"Invalid sessionProperties requested"}]}],"components":{"errors":{"UnknownError":{"code":5000,"message":"Unknown error with request"}},"schemas":{"SessionScopes":{"type":"object","patternProperties":{"[-a-z0-9]{3,8}(:[-_a-zA-Z0-9]{1,32})?":{"$ref":"#/components/schemas/Scope"}}},"ScopeString":{"type":"string","pattern":"[-a-z0-9]{3,8}(:[-_a-zA-Z0-9]{1,32})?"},"Scope":{"type":"object","title":"Scope","description":"Scope for a multi-chain connection","additionalProperties":true,"required":["notifications","methods"],"properties":{"scopes":{"type":"array","items":{"$ref":"#/components/schemas/Scope
2String"}},"methods":{"description":"Methods that the wallet must support in order to be used with this provider.","type":"array","items":{"type":"string"}},"notifications":{"description":"Notifications that the wallet must support in order to be used with this provider.","type":"array","items":{"type":"string"}},"rpcEndpoints":{"description":"JSON-RPC endpoints for this namespace.","type":"array","items":{"type":"string","format":"uri"}},"rpcDocuments":{"type":"array","description":"OpenRPC documents that define RPC methods in which to anchor the methods authorized in a CAIP-25 interaction.","items":{"type":"string","format":"uri"}}}}}}}')},38366:function(e){"use strict";e.exports=JSON.parse('{"openrpc":"1.2.4","info":{"title":"JSON-RPC API","version":"1.0.0","description":"This section provides an interactive reference for MetaMask\'s Wallet JSON-RPC API. The API builds on a set of standard Ethereum methods with MetaMask-specific enhancements, and is designed for seamless integration into dapps."},"methods":[{"name":"wallet_addEthereumChain","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Multichain"}],"summary":"Adds an Ethereum chain to the wallet.","description":"Creates a confirmation asking the user to add the specified chain to the wallet application. The caller must specify a chain ID and some chain metadata. Specified by [EIP-3085](https://eips.ethereum.org/EIPS/eip-3085).","params":[{"name":"Chain","schema":{"$ref":"#/components/schemas/AddEthereumChainParameter"}}],"errors":[{"code":-32602,"message":"Expected null or array with at least one valid string HTTPS URL \'blockExplorerUrl\'. Received: ${blockExplorerUrls}"},{"code":-32602,"message":"Expected 0x-prefixed, unpadded, non-zero hexadecimal string \'chainId\'. Received:\\n${chainId}"},{"code":-32602,"message":"Invalid chain ID \\"${_chainId}\\": numerical value greater than max safe value. Received:\\n${chainId}"},{"code":-32602,"message":"May not specify default MetaMask chain."},{"code":-32602,"message":"Expected 2-6 character string \'nativeCurrency.symbol\'. Received:\\n${ticker}"},{"code":-32602,"message":"nativeCurrency.symbol does not match currency symbol for a network the user already has added with the same chainId. Received:\\n${ticker}"}],"result":{"name":"Null response","description":"This method returns `null` if the chain is added.","schema":{"type":"null"}},"examples":[{"name":"wallet_addEthereumChain example","params":[{"name":"Chain","value":{"chainId":"0x64","chainName":"Gnosis","rpcUrls":["https://rpc.gnosischain.com"],"iconUrls":["https://xdaichain.com/fake/example/url/xdai.svg","https://xdaichain.com/fake/example/url/xdai.png"],"nativeCurrency":{"name":"XDAI","symbol":"XDAI","decimals":18},"blockExplorerUrls":["https://blockscout.com/poa/xdai/"]}}],"result":{"name":"Null response","value":"null"}}]},{"name":"wallet_switchEthereumChain","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Switches the wallet\'s active Ethereum chain.","description":"Requests that the wallet switches its active Ethereum chain. Specified by [EIP-3326](https://eips.ethereum.org/EIPS/eip-3326).","params":[{"name":"Chain","schema":{"title":"Chain","description":"Object containing the chain ID to switch to.","type":"object","required":["chainId"],"properties":{"chainId":{"description":"The chain ID as a `0x`-prefixed hexadecimal string, as returned by the `eth_chainId` method.","type":"string"}}}}],"result":{"name":"Null response","description":"This method returns `null` if the active chain is switched.","schema":{"type":"null"}},"errors":[{"code":4902,"message":"Unrecognized chain ID. Try adding the chain using wallet_addEthereumChain first."}],"examples":[{"name":"wallet_switchEthereumChain example","params":[{"name":"Chain","value":{"chainId":"0x64"}}],"result":{"name":"Null response","value":"null"}}]},{"name":"wallet_getPermissions","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Gets the user\'s permissions.","description":"Gets the user\'s permissions. Specified by [EIP-2255](https://eips.ethereum.org/EIPS/eip-2255).","params":[],"result":{"name":"Permissions list","schema":{"$ref":"#/components/schemas/PermissionsList"}},"examples":[{"name":"wallet_getPermissions example","params":[],"result":{"name":"Permission list","value":{"eth_accounts":{}}}}]},{"name":"wallet_requestPermissions","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Requests additional permissions.","description":"Requests additional permissions from the user. This method accepts a single permission per call. Specified by [EIP-2255](https://eips.ethereum.org/EIPS/eip-2255).","params":[{"name":"Permission","required":true,"schema":{"title":"Permission","description":"Object containing the permission to request.","type":"object","properties":{"permission_name":{"type":"object","description":"The permission object. `permission_name` is the name of the permission being requested.","additionalProperties":true}}}}],"result":{"name":"Permissions list","schema":{"$ref":"#/components/schemas/PermissionsList"}},"examples":[{"name":"wallet_requestPermissions example","params":[{"name":"Permission","value":{"eth_accounts":{}}}],"result":{"name":"Permission list","value":{"eth_accounts":{}}}}],"errors":[{"$ref":"#/components/errors/UserRejected"}]},{"name":"wallet_revokePermissions","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Experimental"}],"summary":"Revokes the current dapp permissions.","description":"Revokes previously granted permissions for the current dapp identified by its origin. This method accepts a single permission per call. Specified by [MIP-2](https://github.com/MetaMask/metamask-improvement-proposals/blob/main/MIPs/mip-2.md) and only available for the MetaMask browser extension.","params":[{"name":"Permission","required":true,"schema":{"title":"Permission","description":"Object containing the permission to revoke.","type":"object","properties":{"permission_name":{"type":"object","description":"The permission object. `permission_name` is the name of the permission being revoked.","additionalProperties":true}}}}],"result":{"name":"Null response","description":"This method returns `null` if the permission is revoked.","schema":{"type":"null"}},"errors":[],"examples":[{"name":"wallet_revokePermissions example","params":[{"name":"Permission","value":{"eth_accounts":{}}}],"result":{"name":"Null response","value":"null"}}]},{"name":"personal_sign","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"},{"$ref":"#/components/tags/Multichain"}],"summary":"Presents a plain text signature challenge to the user.","description":"Presents a plain text signature challenge to the user and returns the signed response. Prepends a safe prefix to the signed message to prevent the challenge tricking users into signing a financial transaction. <br><br> MetaMask implements `personal_sign` similarly to the Go Ethereum client\'s `eth_sign` implementation. MetaMask\'s `personal_sign` doesn\'t accept a password. <br><br> This method requires that the user has granted permission to interact with their account first, so make sure to call `eth_requestAccounts` (recommended) or `wallet_requestPermissions` first.","deprecated":false,"params":[{"name":"Challenge","required":true,"description":"A hex-encoded UTF-8 string to present to the user. See how to encode a string like this in the [`browser-string-hexer`](https://github.com/danfinlay/browser-string-hexer) module.","schema":{"type":"string","pattern":"^0x[a-fA-F\\\\d]+$"}},{"name":"Address","required":true,"description":"The address of the requested signing account.","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}],"result":{"name":"Signature","description":"A hex-encoded signature.","schema":{"type":"string","pattern":"^0x[0-9a-f]*$"}},"examples":[{"name":"personal_sign example","params":[{"name":"Challenge","value":"0x506c65617365207369676e2074686973206d65737361676520746f20636f6e6669726d20796f7572206964656e746974792e"},{"name":"Address","value":"0x4B0897b0513FdBeEc7C469D9aF4fA6C0752aBea7"}],"result":{"name":"Signature","value":"0x43d7215ebe96c09a5adac69fc76dea5647286b501954ea273e417cf65e6c80e1db4891826375a7de02467a3e01caf125f64c851a8e9ee9467fd6f7e83523b2115bed8e79d527a85e28a36807d79b85fc551b5c15c1ead2e43456c31f565219203db2aed86cb3601b33ec3b410836d4be7718c6148dc9ac82ecc0a04c5edecd8914"}}]},{"name":"eth_signTypedData_v4","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"},{"$ref":"#/components/tags/Multichain"}],"summary":"Presents a structured data message for the user to sign.","description":"Presents a data message for the user to sign in a structured and readable format and returns the signed response. Introduced by [EIP-712](https://eips.ethereum.org/EIPS/eip-712). This method requires that the user has granted permission to interact with their account first, so make sure to call `eth_requestAccounts` (recommended) or `wallet_requestPermissions` first.","params":[{"name":"Address","required":true,"description":"The address of the requested signing account.","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},{"name":"Typed data","required":true,"schema":{"$ref":"#/components/schemas/TypedData"}}],"result":{"name":"Signature","description":"A hex-encoded signature.","schema":{"type":"string","pattern":"^0x[0-9a-f]*$"}},"examples":[{"name":"eth_SignTypedData_v4 example","params":[{"name":"Address","value":"0x0000000000000000000000000000000000000000"},{"name":"Typed data","value":{"types":{"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"Person":[{"name":"name","type":"string"},{"name":"wallet","type":"address"}],"Mail":[{"name":"from","type":"Person"},{"name":"to","type":"Person"},{"name":"contents","type":"string"}]},"primaryType":"Mail","domain":{"name":"Ether Mail","version":"1","chainId":1,"verifyingContract":"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"},"message":{"from":{"name":"Cow","wallet":"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826"},"to":{"name":"Bob","wallet":"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},"contents":"Hello, Bob!"}}}],"result":{"name":"Signature","value":"0x4355c47d63924e8a72e509b65029052eb6c299d53a04e167c5775fd466751c9d07299936d304c153f6443dfa05f40ff007d72911b6f72307f996231605b915621c"}}]},{"name":"wallet_registerOnboarding","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Multichain"}],"summary":"Redirects the user back to the site after onboarding.","description":"Registers the requesting site with MetaMask as the initiator of onboarding, enabling MetaMask to redirect the user back to the site after onboarding. Returns a promise that resolves to `true`, or rejects the request if there\'s an error. Instead of calling this method directly, you should use the [`@metamask/onboarding`](https://github.com/MetaMask/metamask-onboarding) library.","params":[],"result":{"name":"Registered","description":"`true` if the request was successful, `false` otherwise.","schema":{"type":"boolean"}},"examples":[{"name":"wallet_registerOnboarding example","params":[],"result":{"name":"Registered","value":true}}]},{"name":"wallet_watchAsset","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Experimental"},{"$ref":"#/components/tags/Multichain"}],"summary":"Tracks a token in MetaMask.","description":"Requests that the user track the specified token in MetaMask. Returns a boolean indicating if the token was successfully added. Once added, the token is indistinguishable from those added using legacy methods, such as a centralized registry. Introduced by [EIP-747](
2https://eips.ethereum.org/EIPS/eip-747).","paramStructure":"by-name","params":[{"name":"type","schema":{"type":"string","description":"The token type (`ERC20`, `ERC721`, or `ERC1155`). Support for ERC-721 and ERC-1155 tokens is experimental and currently only available on the extension (not on mobile). See [MIP-1](https://github.com/MetaMask/metamask-improvement-proposals/blob/main/MIPs/mip-1.md) and the [MIP proposal lifecycle](https://github.com/MetaMask/metamask-improvement-proposals/blob/main/PROCESS-GUIDE.md#proposal-lifecycle) for more information.","enum":["ERC20","ERC721","ERC1155"]},"required":true},{"name":"options","schema":{"description":"An object containing information about the token.","type":"object","required":["address"],"properties":{"address":{"description":"The address of the token contract.","type":"string"},"symbol":{"description":"A ticker symbol or shorthand, up to 11 characters (optional for ERC-20 tokens).","minLength":2,"maxLength":11,"type":"string"},"decimals":{"description":"The number of token decimals (optional for ERC-20 tokens).","type":"number"},"image":{"description":"A string URL of the token logo (optional for ERC-20 tokens).","type":"string"},"tokenId":{"description":"The unique identifier of the NFT (required for ERC-721 and ERC-1155 tokens).","type":"string"}}}}],"errors":[{"code":-32602,"message":"Must specify address, symbol, and decimals."},{"code":-32602,"message":"Invalid symbol: not a string."},{"code":-32602,"message":"Invalid symbol \'${symbol}\': longer than 11 characters."},{"code":-32602,"message":"Invalid decimals \'${decimals}\': must be 0 <= 36."},{"code":-32602,"message":"Invalid address \'${address}\'."},{"code":-32602,"message":"Asset type is required."},{"code":-32602,"message":"Both address and tokenId are required."},{"code":-32602,"message":"Invalid address."},{"code":-32000,"message":"Suggested NFT is not owned by the selected account."},{"code":-32000,"message":"Suggested NFT of type ${standard} does not match received type ${type}."},{"code":-32002,"message":"Unable to verify ownership. Possibly because the standard is not supported or the user\'s currently selected network does not match the chain of the asset in question."}],"result":{"name":"Added","description":"`true` if the token was added, `false` otherwise.","schema":{"type":"boolean"}},"examples":[{"name":"wallet_watchAsset ERC-20 example","params":[{"name":"type","value":"ERC20"},{"name":"options","value":{"address":"0xb60e8dd61c5d32be8058bb8eb970870f07233155","symbol":"FOO","decimals":18,"image":"https://foo.io/token-image.svg"}}],"result":{"name":"Added","value":true}},{"name":"wallet_watchAsset ERC-721 example","params":[{"name":"type","value":"ERC721"},{"name":"options","value":{"address":"0x123456789abcdef0123456789abcdef01234567","tokenId":"42"}}],"result":{"name":"Added","value":true}},{"name":"wallet_watchAsset ERC-1155 example","params":[{"name":"type","value":"ERC1155"},{"name":"options","value":{"address":"0xabcdef0123456789abcdef0123456789abcdef01","tokenId":"1337"}}],"result":{"name":"Added","value":true}}]},{"name":"wallet_scanQRCode","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Mobile"},{"$ref":"#/components/tags/Multichain"}],"summary":"Requests that the user scan a QR code.","description":"Requests that the user scan a QR code using their device camera. Introduced by [EIP-945](https://github.com/ethereum/EIPs/issues/945).","params":[{"name":"Regex","required":false,"description":"A regular expression (regex) string for matching arbitrary QR code strings.","schema":{"type":"string","title":"regex"}}],"result":{"name":"QR code string","description":"A string corresponding to the scanned QR code. If a regex string is provided, the resulting string matches it. If no regex string is provided, the resulting string matches an Ethereum address. If neither condition is met, the method returns an error.","schema":{"type":"string","title":"QR code string"}}},{"name":"wallet_sendCalls","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Sends a batch of calls.","description":"Requests that the wallet submits a batch of calls. Specified by [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792).","params":[{"name":"Calls","required":true,"schema":{"$ref":"#/components/schemas/SendCallsParameter"}}],"result":{"name":"Batch result","schema":{"description":"An object c
2ontaining information about the sent batch.","type":"object","properties":{"id":{"description":"The ID of the batch of calls.","type":"string"},"capabilities":{"description":"Wallets can use this object to attach capability-specific metadata.","type":"object"}}}},"errors":[{"$ref":"#/components/errors/InvalidParams"},{"code":-32000,"message":"Version not supported."},{"$ref":"#/components/errors/UserRejected"},{"$ref":"#/components/errors/Unauthorized"},{"code":5700,"message":"The wallet does not support a capability that was not marked as optional."},{"code":5710,"message":"EIP-7702 not supported on the specified chain ID."},{"code":5720,"message":"There is already a batch submitted with the specified batch ID."},{"code":5740,"message":"The batch is too large for the wallet to process."},{"code":5750,"message":"EIP-7702 upgrade rejected for this chain and account."}],"examples":[{"name":"wallet_sendCalls example","params":[{"name":"Calls","value":{"version":"2.0.0","from":"0xd46e8dd67c5d32be8058bb8eb970870f07244567","chainId":"0xaa36a7","atomicRequired":true,"calls":[{"to":"0x54f1C1965B355e1AB9ec3465616136be35bb5Ff7","value":"0x0"},{"to":"0x2D48e6f5Ae053e4E918d2be53570961D880905F2","value":"0x0"}]}}],"result":{"name":"Batch result","value":{"id":"0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"}}}]},{"name":"wallet_getCallsStatus","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Gets the status of a call batch.","description":"Gets the status of a batch of calls that was previously sent using `wallet_sendCalls`. Specified by [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792).","params":[{"name":"Batch ID","required":true,"description":"The ID of a batch of calls (the `id` value returned by `wallet_sendCalls`).","schema":{"type":"string"}}],"result":{"name":"Batch status","schema":{"description":"An object containing status information of the batch of calls.","type":"object","properties":{"version":{"description":"The version of the API format.","type":"string"}
2,"id":{"description":"The ID of the batch of calls.","$ref":"#/components/schemas/uint"},"chainId":{"description":"The chain ID of the calls.","$ref":"#/components/schemas/uint"},"status":{"description":"The status code of the batch of calls. Possible values are: <br> <ul>\\n  <li>`100` - Pending</li>\\n  <li>`200` - Confirmed</li>\\n  <li>`400` - Failed offchain</li>\\n  <li>`500` - Reverted</li>\\n  <li>`600` - Partially reverted</li>\\n</ul>","type":"number"},"atomic":{"description":"`true` if the wallet executed the calls atomically. `false` if the wallet executed the calls non-atomically.","type":"boolean"},"receipts":{"description":"An array of transaction receipts. If the wallet executed the calls atomically, a single receipt or an array of receipts may be returned, corresponding to how the batch of calls were included onchain.","type":"array","items":{"title":"Receipt","description":"A transaction receipt object.","type":"object","properties":{"logs":{"description":"An array of log objects.","type":"array","items":{"title":"Log","description":"An object containing information about the log.","type":"object","properties":{"address":{"description":"The address that generated the log.","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"data":{"description":"The data of the log.","type":"string","pattern":"^0x[0-9a-f]*$"},"topics":{"description":"An array of log topics.","type":"array","items":{"title":"Topic","description":"A log topic.","type":"string","pattern":"^0x[0-9a-f]*$"}}}}},"status":{"description":"The status of the transaction. `0x1` indicates success, and `0x0` indicates failure.","type":"string","pattern":"^0x[0-1]$"},"blockHash":{"description":"The hash of the block containing the transaction.","type":"string","pattern":"^0x[0-9a-f]{64}$"},"blockNumber":{"description":"The number of the block containing the transaction.","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]*|0)$"},"gasUsed":{"description":"The amount of gas used by the transaction.","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]*|0)$"},"transactionHash":{"description":"The hash of the transaction.","type":"string","pattern":"^0x[0-9a-f]{64}$"}},"additionalProperties":true}},"capabilities":{"description":"Capabilities associated with the batch of calls.","type":"object","additionalProperties":true}}}},"errors":[{"$ref":"#/components/errors/InvalidParams"},{"$ref":"#/components/errors/Unauthorized"},{"code":5730,"message":"No matching bundle found."}],"examples":[{"name":"wallet_getCallsStatus example","params":[{"name":"Batch ID","value":"0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"}],"result":{"name":"Batch status","value":{"version":"2.0.0","chainId":"0xaa36a7","id":"0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331","status":200,"atomic":true,"receipts":[{"logs":[{"address":"0xa922b54716264130634d6ff183747a8ead91a40b","topics":["0x5a2a90727cc9d000dd060b1132a5c977c9702bb3a52afe360c9c22f0e9451a68"],"data":"0xabcd"}],"status":"0x1","blockHash":"0xf19bbafd9fd0124ec110b848e8de4ab4f62bf60c189524e54213285e7f540d4a","blockNumber":"0xabcd","gasUsed":"0xdef","transactionHash":"0x9b7bb827c2e5e3c1a0a44dc53e573aa0b3af3bd1f9f5ed03071b100bb039eaff"}]}}}]},{"name":"wallet_getCapabilities","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Gets the capabilities of the wallet.","description":"Returns information about the wallet\'s support for the `atomic` capability. The `atomic` capability specifies how the wallet will execute batches of transactions sent using `wallet_sendCalls`. `wallet_getCapabilities` is specified by [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792).","params":[{"name":"Address","description":"A wallet address.","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},{"name":"Chain IDs","description":"An array of chain IDs to get capabilities for.","schema":{"type":"array","items":{"title":"Chain ID","description":"An [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID in hexadecimal format.","$ref":"#/components/schemas/uint"}}}],"result":{"name":"Capabilities","schema":{"description":"An object specifying the status of the `atomic` capability for specific [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain IDs. For each chain, the `atomic` capability can have a `status` of: <br> <ul>\\n  <li>`supported` - The wallet will execute calls sent using\\n        `wallet_sendCalls` atomically.</li>
2\\n  <li>`ready` - The wallet can upgrade to `supported` pending user\\n          approval to upgrade their account via EIP-7702.</li>\\n</ul> If the `atomic` capability is not `supported` or `ready` for a specified chain ID, the wallet will not return anything for that chain ID.","type":"object"}},"errors":[{"$ref":"#/components/errors/InvalidParams"},{"$ref":"#/components/errors/Unauthorized"}],"examples":[{"name":"wallet_getCapabilities example","params":[{"name":"Address","value":"0xd46e8dd67c5d32be8058bb8eb970870f07244567"},{"name":"Chain IDs","value":["0xaa36a7"]}],"result":{"name":"Capabilities","value":{"0xaa36a7":{"atomic":{"status":"ready"}}}}}]},{"name":"eth_requestAccounts","tags":[{"$ref":"#/components/tags/MetaMask"}],"description":"Requests that the user provide access to one or more Ethereum addresses. This method is specified by [EIP-1102](https://eips.ethereum.org/EIPS/eip-1102). Internally, this method calls `wallet_requestPermissions` for permission to call `eth_accounts`.","summary":"Requests that the user provide access to addresses.","params":[],"result":{"name":"Address list","schema":{"type":"array","description":"An array of Ethereum addresses that the user has authorized the dapp to access.","items":{"title":"Address","description":"A hex-encoded address.","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}},"errors":[{"$ref":"#/components/errors/UserRejected"}],"examples":[{"name":"eth_requestAccounts example","params":[],"result":{"name":"Address list","value":["0xa77392123a1085f75e62eec7dea7e0e1e5142d5f"]}}]},{"name":"eth_accounts","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"}],"description":"Returns a list of addresses that the user has authorized the dapp to access. This method requires calling `wallet_requestPermissions` for permission. We recommend using `eth_requestAccounts`, which internally calls `wallet_requestPermission`.","summary":"Gets a list of authorized addresses.","params":[],"result":{"name":"Address list","schema":{"type":"array","description":"An array of Ethereum addresses that the user has authorized the dapp to access.","items":{"title":"Address","description":"A hex-encoded address.","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}},"examples":[{"name":"eth_accounts example","params":[],"result":{"name":"Address list","value":["0xa77392123a1085f75e62eec7dea7e0e1e5142d5f"]}}]},{"name":"eth_sendTransaction","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"},{"$ref":"#/components/tags/Multichain"}],"description":"Creates a new wallet confirmation to make an Ethereum transaction from the user\'s account. This method requires that the user has granted permission to interact with their account first, so make sure to call `eth_requestAccounts` (recommended) or `wallet_requestPermissions` first.","summary":"Initiates a new transaction.","params":[{"name":"Transaction","required":true,"description":"The transaction object to sign and send.","schema":{"type":"object","title":"Transaction","description":"The parameters to customize a transaction. If a `to` address is not provided, the transaction is assumed to be a contract creation transaction, and the `data` field is used as the contract initialization code. `gasPrice` cannot be used together with `maxPriorityFeePerGas` and `maxFeePerGas`.","required":["from"],"if":{"properties":{"to":{"not":{"type":"string"}}}},"then":{"required":["data"]},"properties":{"to":{"description":"The recipient\'s address.","$ref":"#/components/schemas/address"},"from":{"description":"The sender\'s address.","$ref":"#/components/schemas/address"},"gas":{"description":"The maximum amount of gas the transaction is allowed to use.","$ref":"#/components/schemas/uint"},"value":{"description":"The amount to transfer in wei.","$ref":"#/components/schemas/uint"},"data":{"description":"The data to include in the transaction. Used for contract creation transactions.","$ref":"#/components/schemas/bytes"},"gasPrice":{"description":"The gas price the sender is willing to pay to miners in wei. Used in pre-1559 transactions.","$ref":"#/components/schemas/uint"},"maxPriorityFeePerGas":{"description":"Maximum fee per gas the sender is willing to pay to miners in wei. Used in 1559 transactions.","$ref":"#/components/schemas/uint"},"maxFeePerGas":{"description":"The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei. Used in 1559 transactions.","$ref":"#/components/schemas/uint"}}}}],"result":{"name":"Transaction hash","description":"The transaction hash of the sent transaction.","schema":{"type":"string","pattern":"^0x[0-9a-f]{64}$"}},"errors":[{"code":4100,"message":"The requested account and/or method has not been authorized by the user."}],"examples":[{"name":"sendTransaction","params":[{"name":"Transaction","value":{"to":"0x4B0897b0513FdBeEc7C469D9aF4fA6C0752aBea7","from":"0xDeaDbeefdEAdbeefdEadbEEFdeadbeefDEADbEEF","gas":"0x76c0","value":"0x8ac7230489e80000","data":"0x","gasPrice":"0x4a817c800"}}],"result":{"name":"eth_sendTransactionExampleResult","value":"0x4e306b5a5a37532e1734503f7d2427a86f2c992fbe471f5be403b9f734e667c8"}}]},{"name":"eth_decrypt","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"},{"$ref":"#/components/tags/Deprecated"}],"summary":"Decrypts an encrypted message.","description":"This method is deprecated and may be removed in the future.\\n\\n Requests that MetaMask decrypt the specified encrypted message.\\n The message must have been encrypted using the public encryption key of the specified Ethereum address.\\n Returns a promise that resolves to the decrypted message, or rejects if the decryption attempt fails.","params":[{"name":"EncryptedMessage","required":true,"description":"The encrypted message to decrypt.","schema":{"type":"string"}},{"name":"Address","required":true,"description":"The address of the Ethereum account that can decrypt the message.","schema":{"$ref":"#/components/schemas/address"}}],"result":{"name":"PermissionsList","schema":{"$ref":"#/components/schemas/PermissionsList"}},"errors":[{"code":4100,"message":"The requested account and/or method has not been authorized by the user."}],"examples":[{"name":"decryptExample","params":[{"name":"EncryptedMessage","value":"0x7b2276657273696f6e223a227832353531392d7873616c736132302d706f6c
27931333035222c226e6f6e6365223a2243533967507076467071765358704655416679726a7179774e35302b7a747766222c22657068656d5075626c69634b6579223a224372774b61456d2f4b356d6d714239764c376f5872636d6441417757764479324f784c3333527135576e553d222c2263697068657274657874223a2248347a65336e7177572b753174663956343945506167454e343872774f766b6952676244566e47587a38493d227d"},{"name":"Address","value":"0xD1F5279BE4B4dD94133A23deE1B23F5bfC0Db1d0"}],"result":{"name":"eth_decryptExampleResult","value":"Hello, Ethereum!"}}]},{"name":"eth_getEncryptionPublicKey","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"},{"$ref":"#/components/tags/Deprecated"}],"summary":"Gets a public key used for encryption.","description":"This method is deprecated and may be removed in the future.\\n\\n Requests that the user share their public encryption key.\\n Returns a public encryption key, or rejects if the user denies the request.\\n The public key is computed from entropy associated with the specified user account, using the NaCl implementation of the `X25519_XSalsa20_Poly1305` algorithm.","params":[{"name":"Address","required":true,"description":"The address of the Ethereum account that can decrypt the message.","schema":{"$ref":"#/components/schemas/address"}}],"result":{"name":"EncryptionKey","schema":{"type":"string"}},"examples":[{"name":"eth_getEncryptionPublicKey","params":[{"name":"Address","value":"0x4B0897b0513FdBeEc7C469D9aF4fA6C0752aBea7"}],"result":{"name":"eth_getEncryptionPublicKeyExampleResult","value":"0x04bfcab3b7ca7e8b3f3b62b2f7f77e9e4b68080bbf8f0f4a1c8f890864d2c7c1d3c45d8b2e3f5f1c27dfeea4c2f5733e90bfc7484e2a690aa9b8ac4559d2e6a8d7"}}]},{"name":"web3_clientVersion","tags":[{"$ref":"#/components/tags/Ethereum"},{"$ref":"#/components/tags/Multichain"}],"description":"Returns the current MetaMask client version. This differs slightly per client. For example, the browser extension returns a string like `MetaMask/v10.33.1`, while the mobile app returns a string like `MetaMask/8.1.2/Mobile`.","summary":"Current client version.","params":[],"examples":[{"name":"MetaMaskClientVersionExample","description":"Example version response from MetaMask.","params":[],"result":{"name":"MetaMaskClientVersion","description":"The current client version.","value":"MetaMask/v10.33.1"}},{"name":"MetaMaskMobileClientVersionExample","description":"Example version response from MetaMask Mobile.","params":[],"result":{"name":"MetaMaskClientVersion","description":"The current client version.","value":"MetaMask/8.1.2/Mobile"}}],"result":{"name":"CurrentVersion","description":"The current client version.","schema":{"title":"CurrentClientVersion","type":"string"}}},{"name":"eth_subscribe","tags":[{"$ref":"#/components/tags/Ethereum"},{"$ref":"#/components/tags/Multichain"}],"summary":"Subscribes to specific Ethereum events, returning a subscription ID used to receive notifications.","description":"Subscribes to specific events on the Ethereum network, such as new blocks, or logs. When an event occurs, a notification is sent to the client with the corresponding data. To stop receiving notifications, the client can unsubscribe using `eth_unsubscribe`.","params":[{"name":"subscriptionType","required":true,"schema":{"title":"subscriptionType","type":"string","enum":["newHeads","logs"],"description":"The type of subscription to create. Must be one of the following:\\n1. `newHeads` - New block headers.\\n2. `logs` - Logs matching a filter object."}},{"name":"filterOptions","required":false,"schema":{"title":"filterOptions","type":"object","description":"(Optional) An object containing filter options specific to the subscription type. Only applicable for the `logs` subscription type.","required":["topics"],"properties":{"address":{"type":"string","description":"(Optional) A single address or an array of addresses to filter the logs by."},"topics":{"type":"array","description":"An array of topics to filter the logs by.","items":{"type":"string"}}}}}],"result":{"name":"subscriptionId","schema":{"type":"string"},"description":"A unique subscription ID that can be used to unsubscribe or identify incoming notifications."},"examples":[{"name":"eth_subscribe example","params":[{"name":"subscriptionType","value":"newHeads"}],"result":{"name":"eth_subscribeExampleResult","value":"0x1b84f2cdf29a204b79e450c1939b30c1"}}]},{"name":"eth_unsubscribe","tags":[{"$ref":"#/components/tags/Ethereum"},{"$ref":"#/components/tags/Multichain"}],"summary":"Unsubscribes from a specific Ethereum event, using the subscription ID provided by `eth_subscribe`.","description":"Unsubscribes from specific events on the Ethereum network, to which the client has been previously subscribed using `eth_subscribe`. The client must provide the subscription ID obtained from `eth_subscribe` to stop receiving notifications for the corresponding event.","params":[{"name":"subscriptionId","required":true,"schema":{"type":"string","description":"The unique subscription ID obtained from `eth_subscribe`, used to identify the subscription to be unsubscribed."}}],"result":{"name":"unsubscribed","schema":{"type":"boolean"},"description":"A boolean value indicating whether the unsubscription was successful."},"examples":[{"name":"eth_unsubscribe example","params":[{"name":"subscriptionId","value":"0x1b84f2cdf29a204b79e450c1939b30c1"}],"result":{"name":"eth_unsubscribeExampleResult","value":true}}]},{"name":"eth_blockNumber","summary":"Returns the number of most recent block.","params":[],"result":{"name":"Block number","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_blockNumber example","params":[],"result":{"name":"Block number","value":"0x2377"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_call","summary":"Executes a new message call immediately without creating a transaction on the block chain.","params":[{"name":"Transaction","required":true,"schema":{"$ref":"#/components/schemas/GenericTransaction"}},{"name":"Block","required":false,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Return data","schema":{"$ref":"#/components/schemas/bytes"}},"examples":[{"name":"eth_call example","params":[{"name":"Transaction","value":{"to":"0x69498dd54bd25aa0c886cf1f8b8ae0856d55ff13","value":"0x1"}},{"name":"Block","value":"latest"}],"result":{"name":"Return data","value":"0x"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_chainId","summary":"Returns the chain ID of the current network.","params":[],"result":{"name":"Chain ID","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_chainId example","params":[],"result":{"name":"Chain ID","value":"0x1"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_coinbase","summary":"Returns the client coinbase address.","params":[],"result":{"name":"Coinbase address","schema":{"$ref":"#/components/schemas/address"}},"examples":[{"name":"eth_coinbase example","params":[],"result":{"name":"Coinbase address","value":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_estimateGas","summary":"Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.","params":[{"name":"Transaction","required":true,"schema":{"$ref":"#/components/schemas/GenericTransaction"}},{"name":"Block","required":false,"schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}}],"result":{"name":"Gas used","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_estimateGas example","params":[{"name":"Transaction","value":{"from":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73","to":"0x44aa93095d6749a706051658b970b941c72c1d53","value":"0x1"}}],"result":{"name":"Gas used","value":"0x5208"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_feeHistory","summary":"Transaction fee history","de
2scription":"Returns transaction base fee per gas and effective priority fee per gas for the requested/supported block range.","params":[{"name":"blockCount","description":"Requested range of blocks. Clients will return less than the requested range if not all blocks are available.","required":true,"schema":{"$ref":"#/components/schemas/uint"}},{"name":"newestBlock","description":"Highest block of the requested range.","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}},{"name":"rewardPercentiles","description":"A monotonically increasing list of percentile values. For each block in the requested range, the transactions will be sorted in ascending order by effective tip per gas and the coresponding effective tip for the percentile will be determined, accounting for gas consumed.","required":true,"schema":{"title":"rewardPercentiles","type":"array","items":{"title":"rewardPercentile","description":"Floating point value between 0 and 100.","type":"number"}}}],"result":{"name":"Fee history result","description":"Fee history for the returned block range. This can be a subsection of the requested range if not all blocks are available.","schema":{"title":"feeHistoryResults","description":"Fee history results.","type":"object","required":["oldestBlock","baseFeePerGas","gasUsedRatio"],"additionalProperties":false,"properties":{"oldestBlock":{"title":"oldestBlock","description":"Lowest number block of returned range.","$ref":"#/components/schemas/uint"},"baseFeePerGas":{"title":"baseFeePerGasArray","description":"An array of block base fees per gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-1559 blocks.","type":"array","items":{"$ref":"#/components/schemas/uint"}},"baseFeePerBlobGas":{"title":"baseFeePerBlobGasArray","description":"An array of block base fees per blob gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-4844 blocks.","type":"array","items":{"$ref":"#/components/schemas/uint"}},"gasUsedRatio":{"title":"gasUsedRatio","description":"An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit.","type":"array","items":{"$ref":"#/components/schemas/ratio"}},"blobGasUsedRatio":{"title":"blobGasUsedRatio","description":"An array of block blob gas used ratios. These are calculated as the ratio of blobGasUsed and the max blob gas per block.","type":"array","items":{"$ref":"#/components/schemas/ratio"}},"reward":{"title":"rewardArray","description":"A two-dimensional array of effective priority fees per gas at the requested block percentiles.","type":"array","items":{"title":"rewardPercentile","description":"An array of effective priority fee per gas data points from a single block. All zeroes are returned if the block is empty.","type":"array","items":{"title":"rewardPercentile","description":"A given percentile sample of effective priority fees per gas from a single block in ascending order, weighted by gas used. Zeroes are returned if the block is empty.","$ref":"#/components/schemas/uint"}}}}}},"examples":[{"name":"eth_feeHistory example","params":[{"name":"blockCount","value":"0x5"},{"name":"newestblock","value":"latest"},{"name":"rewardPercentiles","value":[20,30]}],"result":{"name":"Fee history result","value":{"oldestblock":"0x10b52f","baseFeePerGas":["0x3fa63a3f","0x37f999ee","0x3e36f20a","0x4099f79a","0x430d532d","0x46fcd4a4"],"baseFeePerBlobGas":["0x7b7609c19","0x6dbe41789","0x7223341d4","0x6574a002c","0x7223341d4","0x6574a002c"],"gasUsedRatio":[0.017712333333333333,0.9458865666666667,0.6534561,0.6517375666666667,0.7347769666666667],"blobGasUsedRatio":[0,0.6666666666666666,0,1,0],"reward":[["0x3b9aca00","0x59682f00"],["0x3a13012","0x3a13012"],["0x3a13012","0x3a13012"],["0xf4240","0xf4240"],["0xf4240","0xf4240"]]}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_gasPrice","summary":"Returns the current price per gas in wei.","params":[],"result":{"name":"Gas price","schema":{"title":"Gas price","$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_gasPrice example","params":[],"result":{"name":"Gas price","value":"0x3e8"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getBalance","summary":"Returns the balance of the account of given address.","params":[{"name":"Address","required":true,"schema":{"$ref":"#/components/schemas/address"}},{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Balance","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_getBalance example","params":[{"name":"Address","value":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"},{"name":"Block","value":"latest"}],"result":{"name":"Balance","value":"0x1cfe56f3795885980000"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getBlockByHash","summary":"Returns information about a block by hash.","params":[{"name":"Block hash","required":true,"schema":{"$ref":"#/components/schemas/hash32"}},{"name":"Hydrated transactions","required":true,"schema":{"title":"hydrated","type":"boolean"}}],"result":{"name":"Block information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/Block"}]}},"examples":[{"name":"eth_getBlockByHash example","params":[{"name":"Block hash","value":"0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c"},{"name":"Hydrated transactions","value":false}],"result":{"name":"Block information","value":{"number":"0x68b3","hash":"0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c","mixHash":"0x24900fb3da77674a861c428429dce0762707ecb6052325bbd9b3c64e74b5af9d","parentHash":"0x1f68ac259155e2f38211ddad0f0a15394d55417b185a93923e2abe71bb7a4d6d","nonce":"0x378da40ff335b070","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","logsBloom":"0x00000000000000100000004080000000000500000000000000020000100000000800001000000004000001000000000000000800040010000020100000000400000010000000000000000040000000000000040000000000000000000000000000000400002400000000000000000000000000000004000004000000000000840000000800000080010004000000001000000800000000000000000000000000000000000800000000000040000000020000000000000000000800000400000000000000000000000600000400000000002000000000000000000000004000000000000000100000000000000000000000000000000000040000900010000000","transactionsRoot":"0x4d0c8e91e16bdff538c03211c5c73632ed054d00a7e210c0eb25146c20048126","stateRoot":"0x91309efa7e42c1f137f31fe9edbe88ae087e6620d0d59031324da3e2f4f93233","receiptsRoot":"0x68461ab700003503a305083630a8fb8d14927238f0bc8b6b3d246c0c64f21f4a","miner":"0xb42b6c4a95406c78ff892d270ad20b22642e102d","difficulty":"0x66e619a","totalDifficulty":"0x1e875d746ae","extraData":"0xd583010502846765746885676f312e37856c696e7578","size":"0x334","gasLimit":"0x47e7c4","gasUsed":"0x37993","t
2imestamp":"0x5835c54d","uncles":[],"transactions":["0xa0807e117a8dd124ab949f460f08c36c72b710188f01609595223b325e58e0fc","0xeae6d797af50cb62a596ec3939114d63967c374fa57de9bc0f4e2b576ed6639d"],"baseFeePerGas":"0x7","withdrawalsRoot":"0x7a4ecf19774d15cf9c15adf0dd8e8a250c128b26c9e2ab2a08d6c9c8ffbd104f","withdrawals":[{"index":"0x0","validatorIndex":"0x9d8c0","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x11a33e3760"}],"blobGasUsed":"0x0","excessBlobGas":"0x0","parentBeaconBlockRoot":"0x95c4dbd5b19f6fe3cbc3183be85ff4e85ebe75c5b4fc911f1c91e5b7a554a685"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getBlockByNumber","summary":"Returns information about a block by number.","params":[{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}},{"name":"Hydrated transactions","required":true,"schema":{"title":"hydrated","type":"boolean"}}],"result":{"name":"Block information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/Block"}]}},"examples":[{"name":"eth_getBlockByNumber example","params":[{"name":"block","value":"0x68b3"},{"name":"Hydrated transactions","value":false}],"result":{"name":"Block information","value":{"number":"0x68b3","hash":"0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c","mixHash":"0x24900fb3da77674a861c428429dce0762707ecb6052325bbd9b3c64e74b5af9d","parentHash":"0x1f68ac259155e2f38211ddad0f0a15394d55417b185a93923e2abe71bb7a4d6d","nonce":"0x378da40ff335b070","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","logsBloom":"0x00000000000000100000004080000000000500000000000000020000100000000800001000000004000001000000000000000800040010000020100000000400000010000000000000000040000000000000040000000000000000000000000000000400002400000000000000000000000000000004000004000000000000840000000800000080010004000000001000000800000000000000000000000000000000000800000000000040000000020000000000000000000800000400000000000000000000000600000400000000002000000000000000000000004000000000000000100000000000000000000000000000000000040000900010000000","transactionsRoot":"0x4d0c8e91e16bdff538c03211c5c73632ed054d00a7e210c0eb25146c20048126","stateRoot":"0x91309efa7e42c1f137f31fe9edbe88ae087e6620d0d59031324da3e2f4f93233","receiptsRoot":"0x68461ab700003503a305083630a8fb8d14927238f0bc8b6b3d246c0c64f21f4a","miner":"0xb42b6c4a95406c78ff892d270ad20b22642e102d","difficulty":"0x66e619a","totalDifficulty":"0x1e875d746ae","extraData":"0xd583010502846765746885676f312e37856c696e7578","size":"0x334","gasLimit":"0x47e7c4","gasUsed":"0x37993","timestamp":"0x5835c54d","uncles":[],"transactions":["0xa0807e117a8dd124ab949f460f08c36c72b710188f01609595223b325e58e0fc","0xeae6d797af50cb62a596ec3939114d63967c374fa57de9bc0f4e2b576ed6639d"],"baseFeePerGas":"0x7","withdrawalsRoot":"0x7a4ecf19774d15cf9c15adf0dd8e8a250c128b26c9e2ab2a08d6c9c8ffbd104f","withdrawals":[{"index":"0x0","validatorIndex":"0x9d8c0","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x11a33e3760"}],"blobGasUsed":"0x0","excessBlobGas":"0x0","parentBeaconBlockRoot":"0x95c4dbd5b19f6fe3cbc3183be85ff4e85ebe75c5b4fc911f1c91e5b7a554a685"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getBlockTransactionCountByHash","summary":"Returns the number of transactions in a block from a block matching the given block hash.","params":[{"name":"Block hash","schema":{"$ref":"#/components/schemas/hash32"}}],"result":{"name":"Transaction count","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"title":"Transaction count","$ref":"#/components/schemas/uint"}]}},"examples":[{"name":"eth_getBlockTransactionCountByHash example","params":[{"name":"Block hash","value":"0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"}],"result":{"name":"Transaction count","value":"0x8"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getBlockTransactionCountByNumber","summary":"Returns the number of transactions in a block matching the given block number.","params":[{"name":"Block","schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}}],"result":{"name":"Transaction count","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"title":"Transaction count","$ref":"#/components/schemas/uint"}]}},"examples":[{"name":"eth_getBlockTransactionCountByNumber example","params":[{"name":"Block","value":"0xe8"}],"result":{"name":"Transaction count","value":"0x8"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getCode","summary":"Returns code at a given address.","params":[{"name":"Address","required":true,"schema":{"$ref":"#/components/schemas/address"}},{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Bytecode","schema":{"$ref":"#/components/schemas/bytes"}},"examples":[{"name":"eth_getCode example","params":[{"name":"Address","value":"0xa50a51c09a5c451c52bb714527e1974b686d8e77"},{"name":"Block","value":"latest"}],"result":{"name":"Bytecode","value":"0x60806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633fa4f2458114604d57806355241077146071575b600080fd5b348015605857600080fd5b50605f6088565b60408051918252519081900360200190f35b348015607c57600080fd5b506086600435608e565b005b60005481565b60008190556040805182815290517f199cd93e851e4c78c437891155e2112093f8f15394aa89dab09e38d6ca0727879181900360200190a1505600a165627a7a723058209d8929142720a69bde2ab3bfa2da6217674b984899b62753979743c0470a2ea70029"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getFilterChanges","summary":"Polling method for the filter with the given ID (created using `eth_newFilter`). Returns an array of logs which occurred since last poll.","params":[{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}}],"result":{"name":"Log objects","schema":{"$ref":"#/components/schemas/FilterResults"}},"examples":[{"name":"eth_getFilterChanges example","params":[{"name":"Filter identifier","value":"0x01"}],"result":{"name":"Log objects","value":[{"logIndex":"0x0","removed":false,"blockNumber":"0x233","blockHash":"0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5","transactionHash":"0x66e7a14
20c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000004","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]},{"logIndex":"0x0","removed":false,"blockNumber":"0x238","blockHash":"0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed","transactionHash":"0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000007","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]}]}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getFilterLogs","summary":"Returns an array of all logs matching the filter with the given ID (created using `eth_newFilter`).","params":[{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}}],"result":{"name":"Log objects","schema":{"$ref":"#/components/schemas/FilterResults"}},"examples":[{"name":"eth_getFilterLogs example","params":[{"name":"Filter identifier","value":"0x01"}],"result":{"name":"Log objects","value":[{"logIndex":"0x0","removed":false,"blockNumber":"0x233","blockHash":"0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5","transactionHash":"0x66e7a14
20c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000004","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]},{"logIndex":"0x0","removed":false,"blockNumber":"0x238","blockHash":"0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed","transactionHash":"0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000007","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]}]}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getLogs","summary":"Returns an array of all logs matching the specified filter.","params":[{"name":"Filter","schema":{"$ref":"#/components/schemas/Filter"}}],"result":{"name":"Log objects","schema":{"$ref":"#/components/schemas/FilterResults"}},"examples":[{"name":"eth_getLogs example","params":[{"name":"Filter","value":{"fromBlock":"0x137d3c2","toBlock":"0x137d3c3","address":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","topics":[]}}],"result":{"name":"Log objects","value":[{"logIndex":"0x0","removed":false,"blockNumber":"0x233","blockHash":"0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5","transactionHash":"0x66e7a14
20c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000004","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]},{"logIndex":"0x0","removed":false,"blockNumber":"0x238","blockHash":"0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed","transactionHash":"0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000007","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]}]}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getProof","summary":"Returns the merkle proof for a given account and optionally some storage keys.","params":[{"name":"Address","required":true,"schema":{"$ref":"#/components/schemas/address"}},{"name":"StorageKeys","required":true,"schema":{"title":"Storage keys","type":"array","items":{"$ref":"#/components/schemas/bytesMax32"}}},{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Account","schema":{"$ref":"#/components/schemas/AccountProof"}},"examples":[{"name":"eth_getProof example","params":[{"name":"Address","value":"0xe5cB067E90D5Cd1F8052B83562Ae670bA4A211a8"},{"name":"StorageKeys","value":["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","0x283s34c8e2b1456f09832c71e5d6a0b4f8c9e1d3a2b5c7f0e6d4a8b2c1f3e5d7"]},{"name":"Block","value":"latest"}],"result":{"name":"Account","value":{"accountProof":["0xf90211a06a718c2c9da77c253b12d7b2569657901e37bb691718f5dda1b86157ab1dd5eda0e7f19ed5e21bccc8d3260236b24f80ad88b3634f5d005f37b838881f0e12f1bda0abb301291704e4d92686c0f5f8ebb1734185321559b8d717ffdca95c99591976a0d0c2026bfab65c3b95276bfa82af9dec860b485f8857f293c148d63a2182128fa0c98044ec9a1273a218bed58b478277dd39173ad7b8edb95c200423a6bc8fc25fa056e5a55d9ddccdbf49362857200bbb1f042d61187c9f5f9ddcff5d2f1fc984a2a02a5b7200af424114f99a4b5f0a21c19aac82209e431ed80bfde177adb1004bdfa0026e4374f0518ff44a80fa374838ecb86cc64ac93bb710fea6dff4198f947b27a03fea341d87984673ad523177ed52f278bf4d8f97e6531c8ece932aeede4802f4a0bfe2f4a7fcb78f7e9f080dea7b6977fb1d88c441696e4456dad92b9d34ff0f43a02a3eb5c0edb14626c9c629601027bd60178bb2b688a67cea4d179fc432436615a0747355b8e02f3b884b4ffe5cea1619e32515fea064cca98208591af8c744e894a0874253737bae37f020ad3bb7e3292c7c4a63cdc158af6b33aaa4deaef016dccba03d8192bc1fc6aa1548912e763a0b5013a94399cefad7b47cf388873b2b794068a09b67f9737c6028d796bfd1c5da57a6f45824dc891f848ea0e1f8019d1fb5fba8a0aa871f9de8da85960fcd8a22cdf21c27f11e3966c14a6737ffd414b98dda00b280","0xf90211a0d360be1e1da1a0c32bc4c105833bd531e59d110684007b7c50fb2709002973eca0cf6dd1e350a7031b4e2ab49c899fd8bd47551c8565d8fd8d1d7796c83820c3b1a0eb0a88c29bb33989a589156f7bf07d9efc74034dd9d3f5b73385c3b45c3249bea02783c25f97a6ddb8dc07adf4b176991836d39184b1f678adeda832fff15e3664a00a4e288060045e587774d8a64993a7add73068b16863145e1e8eeb4602e18e19a0340851f4046ad1298962d6e47d05c66329549c839c158748aaad7ae00b943aefa085b127bc2a3bd17604283de21b2b3c9aa8f1d4b7b85c94d8105a46fe32c77688a00f531d62b3c5435324c01009c284fe31277e8d38302b75ea01be89f09e205969a00011c8351c0e3d639ac54b9d3a59de630b16a67de8270d7d6064d0a67e93f9cca048780d32b7f2db88650b51c46f46fd0a68795edee1fd5ecee6eb3595741d9669a0c91afd74eaf8e08a997061a62b354e2516fdc494e8e26cc50ceeb8f4a175608ba0e2c07f1b48fab80eecb340f5882e8c7b32ee416e4045c61f1df646a133487303a01a1eff78435a7a29a29463bdc3486ae81364b00bea82ba0fdf67a110770f2261a04f2eb440ba71c72da5fd7f0e439018d6671dc809f747213a1ea755848124e994a074ff9f37fce99daa3ed01dd763076450022996fc729be2cc43c61ec5182c2366a0b80b36b7b621112592f52390b89748d422e9b1517c4b0203b8176a53f89d4a6680","0xf90211a0b25f283bd01a8c8b2418049f9585bc37ff2c1e2e12eab4b7f64ae1f26647389aa02ad96c150d7c3c9c194d30315456852cf6a0a940e0191ae5d04007454823d4e9a0b220cf7a855e2dbcc0b973134e2e119b982d7d40dbb1b27d99816c41f40e829aa049224431da84cbf1b7ae813abcc9ef4c1dfc1760f6ddc5d57f7354bf3cbf6cc4a015191f879ac115b362f0257fd3eedb789537e836574a
25b1abf1c9982ebe3bdfea07913c1b6e7282569d2d421e9fa2257f5d1698e93303bc49b941704287d7aaefea0a526576981ce6fd9f2bd48dd2ca6d5272f2fbdc85f0ee35a295f6ccd97ae8765a0313fad407f0c737c29024c02a890c4ecc12d7771c05ab7b435e5087a7cdef4d9a0d2044603cba9d4afdaf6fd2470e729ef3a65242de71276f20d59accfa6b53a7ca0457caacb9370c09b15f7d904adefd2308be94e23669ba5f43241ffff5f438a0aa09fb2dd45a383a0cc088a72b14117e1e9b7d6889218f3ac7631e8de644c5cb76da0c675dcd4d3fb692b514851c6106e2b09e6f5661d56a0a32ae02e2efc1515c235a074949a59ff1bdba87548510d6e404ec4532f4456dfdec8e753d92fda11a3088ba0a328c6ab1ab8f70db4d23e95bb163c13ba0c508f063a5b1393a4efd7ff375f05a0c722fe3ce796998269373cbb2fc229b2bdf2c43c6c2df003309422e043ce6c03a024e69343286eec44fa4744f6907209116e5383cff3fa98fe81ba06e7e8d4366680","0xf90211a00e99ba2198124b8241ea304551fe973215829e2fbc0438d67922707a2a847432a0bb9ce24fd527879c5fe6dbbec1ef5a05ed9d1ca88e921d140bafbec1112f6a6aa099787fd6c7a1989229c4291ef5267335e66152ce417daea46e66d19cb6f81d1ca0e430ff4b8d5621baa5978673344e78b4d8b4df51431b6e63785267c98a24ce18a0bb3e91a825fe3d42ed270a93e9ad1aabd566c40cb28e622f7f1d7ee967c8afd6a0aa364b0056870c6507bc3262a5f851ecb13684088bdb13996d3cb2db401ce3ffa0a3732eba4c7a6e062665ab5be08acb986c3db87556fb138548cc900ff1e56995a026b088e90c9738b8ce16e853107a937a50d52726a24f9f6ce60f587762eb45a2a006c9d5bc3c064b5c1fb565bff91cace9161c64ae653a329610c1dcf34d434429a06c16df2edc70656d322d0c2403bad7d45bc790ffc3e7adeef856d98ea6afc91ba0ae05ed5d6c34b5da29c2e94d7880aeba0906f95f4ec10b132a1d4766a0701c98a01470a86aa350d1ada0c082eac75de828a851f9c8c7c4aa49b1556fe3a5574966a0334eef025100a6da1033710dd98e0475f29d3d7e397caf618ca71c336c5f4f49a0ef0b3abbebcff34d6a8a8f5cdbfbd154ab3452b58dcb09de58ec983644963675a041857e865ec38e200a13bc1a3cb71c7d69aeef7ffdee8be515c9a5b691ce091fa059edd0eb3bbec36bbf38a19802d4646c00ba821ab55fdeea12e15bab62c4e1e580","0xf90211a0af0c7fa65ffcb84c31e68c1cf00e1a20bf8bb497c39883e19b66a99975b03431a0c492cab3623eb7926069794c3c718733e16c5fd0d4a13fb7c752ee9809aac7ada05003cea7132aa70d6f36731d60640a90bcd8f4fd493e4540d5ab1b4943679c0ca0fd700683405b1d2306b586dd3b5b2f92f1692fae20d17cd8b8e59d09b9c6670da01db8683910e46e56e8afeb9fe2b7c35382e5a0914d7b0dd8f0e8cb9981ba7435a0fa7f75d73aa73c35824387bec81388315caa4aee3f4f5562f971beb256c62d49a0ee478e420d83f413e8568dacfd5d83f83a5dd7c45f494b504828e5dc962f0e3ea094b95444a917ac94a675681f6bf851172ad0969801a783a63a71edafed45e7a7a0a0c46586e109abe80fe50361dd582e3f143cb416828239faa43bb2b890869501a0ae051d5d43634c68bf9c97823256cc68580f194dfdbd0c301140c7ca5853430ca0660b9365bb77ec9cdc6eb95516c162dca20727c6f828dbbeb1ae110dde4d3134a09feb1b75e84ff6722e4d837bfb6d207b6ee3b21b86844a01140ce293813b49a1a0ed58a70b04efa3bdc0babe2abfa20824a75d61d52291bfdb5cf08597800764d6a020a2d5d3a83f9e35ad9fd1c448626d90af0eb3efefaa4f2f93207b4096ef5507a0fc8efc4484dcf0a54f0574de9aaade0dcff6ec3599edb9f82efb26b6566dcaeaa032f7e79856db3fd984f72bb2c93d4dab328198d355a61c975fab1f08bdb2046580"],"balance":"0x0","codeHash":"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","nonce":"0x0","storageHash":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","storageProof":[{"key":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","proof":["0xf90211a0c87222cccea2bf32759fcee9dbaacbe3ea4165dd6184af6773651c5e00e34a8ba0be90e6e5d1a67ab5587779c60ac136d6a96db62b84c04998a5f03a367346abd6a05344aa1c9ca2e3e56bf98fd718ec43728578d148e1967fbaf8bf17a2a073a0bda011a2f9312c3308640a0d6ceeae218747290f23806067456da1d444c65abae437a0b3097a108bfce79af6699da4ae3003cd4929f0b4576aad655c31cb725bde84c7a0c133d3c637e174f36a73c22b1039eb003da6374bc0929321241badb3efa3c4a9a0f13059f2301ad9862ce02e3f7f3f2c9ab78eb30583764d73654f7f1f8b1e86fda06544e3915748b18204e09df75ff20d2fa6bd8121e2e669699012d54590383d6fa070e3a8e093691581d58fadb560b510262a758037632cd8670d3a36df828976b7a062a88a2900544dc76a32255a6b2b2a2eef8fa68279700c00adc7508286702552a0a474aeebd5603dfce46a6ecd1ecd519068dc034a544fde03ac42d4018e60a334a0b7d528fc41c8fdc8ea18c6e7d0099270c777ec1403cf879d1f5134bdc12a6c6ca04440f1242e42c5bfa7c536591ab89c8e84bea417435871c32eef1e25295b20daa06a5dcfe3cc84cff9d3e3c3ae868cfba8f0dd111a90c3f85869dab5b893f96643a026b2fb9dd7d08b0ed2f1c44fbf875011412a384f86f751c92e1013248d4aa371a0c75597b2b789fc4e939b71937390ce9d7d53159431328ac52180eef08ef200f280","0xf90191a0f0c5b800b542001597f2b7a8e106ac0e2849d2cc1df1727ac35c4ea3965f1c9180a08537f2e248702a6ae2a57e9110a5740f5772c876389739ac90debd6a0692713ea00b3a26a05b5494fb3ff6f0b3897688a5581066b20b07ebab9252d169d928717fa0a9a54d84976d134d6dba06a65064c7f3a964a75947d452db6f6bb4b6c47b43aaa01e2a1ed3d1572b872bbf09ee44d2ed737da31f01de3c0f4b4e1f0467400664
261a076f251d160b9a02eb0b5c1d83b61c9cdd4f37361705e79a45529bf49801fb824a0774a01a624cb14a50d17f2fe4b7ae6af8a67bbb029177ccc3dd729a734484d3ea05921b8a19aebe4fff5a36071e311778f9b93459183fdf7f6d870b401fa25dcbba0c8d71dd13d2806e2865a5c2cfa447f626471bf0b66182a8fd07230434e1cad2680a0e9864fdfaf3693b2602f56cd938ccd494b8634b1f91800ef02203a3609ca4c21a0c69d174ad6b6e58b0bd05914352839ec60915cd066dd2bee2a48016139687f21a0513dd5514fd6bad56871711441d38de2821cc6913cb192416b0385f025650731808080"],"value":"0x1"}]}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getStorageAt","summary":"Returns the value from a storage position at a given address.","params":[{"name":"Address","required":true,"schema":{"$ref":"#/components/schemas/address"}},{"name":"Storage slot","required":true,"schema":{"$ref":"#/components/schemas/uint256"}},{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Value","schema":{"$ref":"#/components/schemas/bytes"}},"examples":[{"name":"eth_getStorageAt example","params":[{"name":"Address","value":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"},{"name":"Storage slot","value":"0x0"},{"name":"Block","value":"latest"}],"result":{"name":"Value","value":"0x0000000000000000000000000000000000000000000000000000000000000000"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getTransactionByBlockHashAndIndex","summary":"Returns information about a transaction by block hash and transaction index position.","params":[{"name":"Block hash","required":true,"schema":{"$ref":"#/components/schemas/hash32"}},{"name":"Transaction index","required":true,"schema":{"$ref":"#/components/schemas/uint"}}],"result":{"name":"Transaction information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/TransactionInfo"}]}},"examples":[{"name":"eth_getTransactionByBlockHashAndIndex example","params":[{"name":"Block hash","value":"0xbf137c3a7a1ebdfac21252765e5d7f40d115c2757e4a4abee929be88c624fdb7"},{"name":"Transaction index","value":"0x2"}],"result":{"name":"Transaction information","value":{"blockHash":"0x510efccf44a192e6e34bcb439a1947e24b86244280762cbb006858c237093fda","blockNumber":"0x422","chainId":2018,"from":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73","gas":"0x5208","gasPrice":"0x3b9aca00","hash":"0xa52be92809541220ee0aaaede6047d9a6c5d0cd96a517c854d944ee70a0ebb44","input":"0x","nonce":"0x1","to":"0x627306090abab3a6e1400e9345bc60c78a8bef57","transactionIndex":"0x0","value":"0x4e1003b28d9280000","v":"0xfe7","r":"0x84caf09aefbd5e539295acc67217563438a4efb224879b6855f56857fa2037d3","s":"0x5e863be3829812c81439f0ae9d8ecb832b531d651fb234c848d1bf45e62be8b9"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getTransactionByBlockNumberAndIndex","summary":"Returns information about a transaction by block number and transaction index position.","params":[{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}},{"name":"Transaction index","required":true,"schema":{"$ref":"#/components/schemas/uint"}}],"result":{"name":"Transaction information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/TransactionInfo"}]}},"examples":[{"name":"eth_getTransactionByBlockNumberAndIndex example","params":[{"name":"Block","value":"0x1442e"},{"name":"Transaction index","value":"0x2"}],"result":{"name":"Transaction information","value":{"blockHash":"0x510efccf44a192e6e34bcb439a1947e24b86244280762cbb006858c237093fda","blockNumber":"0x422","chainId":2018,"from":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73","gas":"0x5208","gasPrice":"0x3b9aca00","hash":"0xa52be92809541220ee0aaaede6047d9a6c5d0cd96a517c854d944ee70a0ebb44","input":"0x","nonce":"0x1","to":"0x627306090abab3a6e1400e9345bc60c78a8bef57","transactionIndex":"0x0","value":"0x4e1003b28d9280000","v":"0xfe7","r":"0x84caf09aefbd5e539295acc67217563438a4efb224879b6855f56857fa2037d3","s":"0x5e863be3829812c81439f0ae9d8ecb832b531d651fb234c848d1bf45e62be8b9"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getTransactionByHash","summary":"Returns the information about a transaction requested by transaction hash.","params":[{"name":"Transaction hash","required":true,"schema":{"$ref":"#/components/schemas/hash32"}}],"result":{"name":"Transaction information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/TransactionInfo"}]}},"examples":[{"name":"eth_getTransactionByHash example","params":[{"name":"Transaction hash","value":"0xa52be92809541220ee0aaaede6047d9a6c5d0cd96a517c854d944ee70a0ebb44"}],"result":{"name":"Transaction information","value":{"blockHash":"0x510efccf44a192e6e34bcb439a1947e24b86244280762cbb006858c237093fda","blockNumber":"0x422","chainId":2018,"from":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73","gas":"0x5208","gasPrice":"0x3b9aca00","hash":"0xa52be92809541220ee0aaaede6047d9a6c5d0cd96a517c854d944ee70a0ebb44","input":"0x","nonce":"0x1","to":"0x627306090abab3a6e1400e9345bc60c78a8bef57","transactionIndex":"0x0","value":"0x4e1003b28d9280000","v":"0xfe7","r":"0x84caf09aefbd5e539295acc67217563438a4efb224879b6855f56857fa2037d3","s":"0x5e863be3829812c81439f0ae9d8ecb832b531d651fb234c848d1bf45e62be8b9"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getTransactionCount","summary":"Returns the number of transactions sent from an address.","params":[{"name":"Address","required":true,"schema":{"$ref":"#/components/schemas/address"}},{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Transaction count","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_getTransactionCount example","params":[{"name":"Address","value":"0xc94770007dda54cF92009BFF0dE90c06F603a09f"},{"name":"Block","value":"latest"}],"result":{"name":"Transaction count","value":"0x1"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getTransactionReceipt","summary":"Returns the receipt of a transaction by transaction hash.","params":[{"name":"Transaction hash","required":true,"schema":{"$ref":"#/components/schemas/hash32"}}],"result":{"name":"Receipt information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/ReceiptInfo"}]}},"examples":[{"name":"eth_getTransactionReceipt example","params":[{"name":"Transaction hash","value":"0x504ce587a65bdbdb6414a0c6c16d86a04dd79bfcc4f2950eec9634b30ce5370f"}],"result":{"name":"Receipt information","value":{"blockHash":"0xe7212a92cfb9b06addc80dec2a0dfae9ea94fd344efeb157c41e12994fcad60a","blockNumber":"0x50","contractAddress":null,"cumulativeGasUsed":"0x5208","from":"0x627306090abab3a6e1400e9345bc60c78a8bef57","gasUsed":"0x5208","blobGasUsed":"0x20000","effectiveGasPrice":"0x1","blobGasPrice":"0x3","logs":[],"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","status":"0x1","to":"0xf17f52151ebef6c7334fad080c5704d77216b732","transactionHash":"0xc00e97af59c6f88de163306935f7682af1a34c67245e414537d02e422815efc3","transactionIndex":"0x0"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getUncleCountByBlockHash","summary":"Returns the number of uncles in a block from a block matching the given block hash.","params":[{"name":"Block hash","schema":{"$ref":"#/components/schemas/hash32"}}
2],"result":{"name":"Uncle count","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"title":"Uncle count","$ref":"#/components/schemas/uint"}]}},"examples":[{"name":"eth_getUncleCountByBlockHash example","params":[{"name":"Block hash","value":"0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"}],"result":{"name":"Uncle count","value":"0x1"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getUncleCountByBlockNumber","summary":"Returns the number of transactions in a block matching the given block number.","params":[{"name":"Block","schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}}],"result":{"name":"Uncle count","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"title":"Uncle count","$ref":"#/components/schemas/uint"}]}},"examples":[{"name":"eth_getUncleCountByBlockNumber example","params":[{"name":"Block","value":"0xe8"}],"result":{"name":"Uncle count","value":"0x1"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_newBlockFilter","summary":"Creates a filter in the node, to notify when a new block arrives.","params":[],"result":{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_newBlockFilter example","params":[],"result":{"name":"Filter identifier","value":"0x01"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_newFilter","summary":"Creates a filter object, based on filter options, to notify when the state changes (logs).","params":[{"name":"Filter","schema":{"$ref":"#/components/schemas/Filter"}}],"result":{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_newFilter example","params":[{"name":"Filter","value":{"fromBlock":"0x137d3c2","toBlock":"0x137d3c3","address":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","topics":[]}}],"result":{"name":"Filter identifier","value":"0x01"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_newPendingTransactionFilter","summary":"Creates a filter in the node, to notify when new pending transactions arrive.","params":[],"result":{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_newPendingTransactionFilter example","params":[],"result":{"name":"Filter identifier","value":"0x01"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_sendRawTransaction","summary":"Submits a raw transaction. You can create and sign a transaction externally using a library such as [web3.js](https://web3js.readthedocs.io/) or [ethers.js](https://docs.ethers.org/). For [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844) transactions, the raw form must be the network form. This means it includes the blobs, KZG commitments, and KZG proofs.","params":[{"name":"Transaction","required":true,"schema":{"$ref":"#/components/schemas/bytes"}}],"result":{"name":"Transaction hash","schema":{"$ref":"#/components/schemas/hash32"}},"examples":[{"name":"eth_sendRawTransaction example","params":[{"name":"Transaction","value":"0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"}],"result":{"name":"Transaction hash","value":"0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_syncing","summary":"Returns an object with data about the sync status or false.","params":[],"result":{"name":"Syncing status","schema":{"$ref":"#/components/schemas/SyncingStatus"}},"examples":[{"name":"eth_syncing example","params":[],"result":{"name":"Syncing status","value":{"startingBlock":"
20x0","currentBlock":"0x1518","highestBlock":"0x9567a3"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_uninstallFilter","summary":"Uninstalls a filter with given id.","params":[{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}}],"result":{"name":"Success","schema":{"type":"boolean"}},"examples":[{"name":"eth_uninstallFilter example","params":[{"name":"Filter identifier","value":"0x01"}],"result":{"name":"Success","value":true}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]}],"components":{"errors":{"UserRejected":{"code":4001,"message":"User rejected the request."},"InvalidParams":{"code":-32602,"message":"The wallet cannot parse the request."},"Unauthorized":{"code":4100,"message":"The requested account and/or method has not been authorized by the user."}},"schemas":{"TypedData":{"title":"Typed data","description":"Object containing information about the typed data to sign.","type":"object","required":["types","primaryType","domain","message"],"properties":{"types":{"type":"object","description":"Object containing type information.","required":["EIP712Domain"],"properties":{"EIP712Domain":{"type":"array","items":{"type":"object","title":"Domain separator value","description":"Object containing information about the domain separator value.","properties":{"name":{"type":"string","description":"Name of the domain separator value."},"type":{"type":"string","description":"Data type of the domain separator value."}}},"description":"An array specifying one or more of the following domain separator values: <br><br> <ul>\\n  <li>`name` - The user-readable name of the signing domain, that is, the name of the dapp or the protocol.</li>\\n  <li>`version` - The current major version of the signing domain.</li>\\n  <li>`chainId` - The chain ID of the network.</li>\\n  <li>`verifyingContract` - The address of the contract that will verify the signature.</li>\\n  <li>`salt` - A disambiguating salt for the protocol.</li>\\n</ul>"}},"additionalProperties":{"type":"array","required":["name","type"],"items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}}}}},"domain":{"type":"object","description":"Object containing the domain separator values specified in the `EIP712Domain` type."},"primaryType":{"type":"string","description":"The primary type of the message."},"message":{"type":"object","description":"The message you\'re proposing the user to sign."}}}
2,"SendCallsParameter":{"title":"Calls","description":"An object containing information about a batch of calls.","type":"object","required":["version","from","chainId","atomicRequired","calls"],"properties":{"version":{"description":"The version of the API format. This must be `2.0.0`.","type":"string"},"id":{"description":"The ID of the batch of calls.","type":"string"},"from":{"description":"The sender\'s address.","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"chainId":{"description":"The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID of the calls. This must match the currently selected network in the wallet.","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]*|0)$"},"atomicRequired":{"description":"`true` if the wallet must execute all calls atomically. If `false`, the wallet may execute the calls sequentially without atomicity. If `false` and the wallet is capable of executing the calls atomically, it may do so.","type":"boolean"},"calls":{"type":"array","description":"An array of call objects.","items":{"title":"Call","description":"An object containing information about the call.","type":"object","properties":{"to":{"description":"The address of the call\'s recipient.","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"data":{"description":"The data to send with the call.","type":"string","pattern":"^0x[0-9a-f]*$"},"value":{"description":"The value to send with the call.","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]*|0)$"},"capabilities":{"description":"Dapps can use this object to communicate with the wallet about supported capabilities.","type":"object"}}}},"capabilities":{"description":"Dapps can use this object to communicate with the wallet about supported capabilities.","type":"object"}}},"AddEthereumChainParameter":{"title":"Chain","description":"Object containing information about the chain to add.","type":"object","required":["chainId","chainName","nativeCurrency","rpcUrls"],"properties":{"chainId":{"description":"The chain ID as a `0x`-prefixed hexadecimal string, per the `eth_chainId` method. MetaMask compares this chain ID value with the `eth_chainId` return value. If these values aren\'t identical, MetaMask rejects the request.","type":"string"},"blockExplorerUrls":{"description":"(Optional) An array of one or more URLs pointing to block explorer sites for the chain.","type":"array","items":{"type":"string","description":"Block explorer URL."}},"chainName":{"description":"A human-readable name for the chain.","type":"string"},"iconUrls":{"description":"(Optional) An array of one or more URLs pointing to icons that can be used to visually identify the chain. Note: MetaMask will not currently display these icons. You can still include icon URLs so they are used if MetaMask incorporates them into the display of custom networks in the future.","type":"array","items":{"format":"uri","type":"string","description":"Icon URL."}},"nativeCurrency":{"$ref":"#/components/schemas/NativeCurrency"},"rpcUrls":{"description":"An array of one or more URLs pointing to RPC endpoints that can be used to communicate with the chain. At least one item is required, and only the first item is used.","type":"array","minItems":1,"items":{"format":"uri","type":"string","description":"RPC URL."}}}},"NativeCurrency":{"title":"NativeCurrency","type":"object","description":"An object containing information about the native currency of the chain.","required":["decimals","symbol"],"properties":{"decimals":{"description":"A non-negative integer representing the number of decimals the native currency uses.","minimum":0,"type":"integer"},"name":{"description":"A human-readable name of the native currency.","type":"string"},"symbol":{"description":"A human-readable symbol of the native currency.","type":"string"}}},"Caveats":{"title":"Caveats","description":"An array of caveats that specify restrictions on the permission.","type":"array","items":{"title":"Caveat","description":"Object containing information about the caveat.","type":"object","properties":{"type":{"title":"Type","type":"string","description":"Type of caveat."},"value":{"title":"CaveatValue","description":"Value of the caveat."},"name":{"title":"Name","type":"string","description":"Name of the caveat."}}}},"Permission":{"title":"Permission","description":"Object containing information about the permission.","type":"object","properties":{"id":{"de
2scription":"The permission ID.","type":"string"},"parentCapability":{"description":"The name of the permission being granted. For example, `eth_accounts` or `endowment:permitted-chains`.","type":"string"},"invoker":{"description":"The URI of the dapp being granted this permission.","type":"string"},"caveats":{"$ref":"#/components/schemas/Caveats"},"date":{"description":"The timestamp of the permission request.","type":"number"}}},"PermissionsList":{"title":"Permissions list","description":"An array of the user\'s permissions.","type":"array","items":{"$ref":"#/components/schemas/Permission"}},"address":{"title":"hex encoded address","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"addresses":{"title":"hex encoded address","type":"array","items":{"$ref":"#/components/schemas/address"}},"byte":{"title":"hex encoded byte","type":"string","pattern":"^0x([0-9a-fA-F]?){1,2}$"},"bytes":{"title":"hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]*$"},"bytesMax32":{"title":"32 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{0,64}$"},"bytes8":{"title":"8 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{16}$"},"bytes32":{"title":"32 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{64}$"},"bytes48":{"title":"48 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{96}$"},"bytes96":{"title":"96 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{192}$"},"bytes256":{"title":"256 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{512}$"},"bytes65":{"title":"65 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{130}$"},"ratio":{"title":"normalized ratio","type":"number","minimum":0,"maximum":1},"uint":{"title":"hex encoded unsigned integer","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]*|0)$"},"uint64":{"title":"hex encoded 64 bit unsigned integer","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]{0,15})|0$"},"uint256":{"title":"hex encoded 256 bit unsigned integer","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]{0,31})|0$"},"hash32":{"title":"32 byte hex value","type":"string","pattern":"^0x[0-9a-f]{64}$"},"notFound":{"title":"Not Found (null)","type":"null"},"Block":{"title":"Block object","type":"object","required":["hash","parentHash","sha3Uncles","miner","stateRoot","transactionsRoot","receiptsRoot","logsBloom","number","gasLimit","gasUsed","timestamp","extraData","mixHash","nonce","size","transactions","uncles"],"additionalProperties":false,"properties":{"hash":{"title":"Hash","$ref":"#/components/schemas/hash32"},"parentHash":{"title":"Parent block hash","$ref":"#/components/schemas/hash32"},"sha3Uncles":{"title":"Ommers hash","$ref":"#/components/schemas/hash32"},"miner":{"title":"Coinbase","$ref":"#/components/schemas/address"},"stateRoot":{"title":"State root","$ref":"#/components/schemas/hash32"},"transactionsRoot":{"title":"Transactions root","$ref":"#/components/schemas/hash32"},"receiptsRoot":{"title":"Receipts root","$ref":"#/components/schemas/hash32"},"logsBloom":{"title":"Bloom filter","$ref":"#/components/schemas/bytes256"},"difficulty":{"title":"Difficulty","$ref":"#/components/schemas/uint"},"number":{"title":"Number","$ref":"#/components/schemas/uint"},"gasLimit":{"title":"Gas limit","$ref":"#/components/schemas/uint"},"gasUsed":{"title":"Gas used","$ref":"#/components/schemas/uint"},"timestamp":{"title":"Timestamp","$ref":"#/components/schemas/uint"},"extraData":{"title":"Extra data","$ref":"#/components/schemas/bytes"},"mixHash":{"title":"Mix hash","$ref":"#/components/schemas/hash32"},"nonce":{"title":"Nonce","$ref":"#/components/schemas/bytes8"},"baseFeePerGas":{"title":"Base fee per gas","$ref":"#/components/schemas/uint"},"withdrawalsRoot":{"title":"Withdrawals root","$ref":"#/components/schemas/hash32"},"blobGasUsed":{"title":"Blob gas used","$ref":"#/components/schemas/uint"},"excessBlobGas":{"title":"Excess blob gas","$ref":"#/components/schemas/uint"},"parentBeaconBlockRoot":{"title":"Parent Beacon Block Root","$ref":"#/components/schemas/hash32"},"size":{"title":"Block size","$ref":"#/components/schemas/uint"},"transactions":{"anyOf":[{"title":"Transaction hashes","type":"array","items":{"$ref":"#/components/schemas/hash32"}},{"title":"Full transactions","type":"array","items":{"$ref":"#/components/schemas/TransactionInfo"}}]},"withdrawals":{"title":"Withdrawals","type":"array","items":{"$ref":"#/components/schemas/Withdrawal"}},"uncles":{"title":"Uncles","type":"array","items":{"$ref":"#/components/schemas/hash32"}}}},"BlockTag":{"title":"Block tag","type":"string","enum":["earliest","finalized","safe","latest","pending"],"description":"`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions;
2 `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error"},"BlockNumberOrTag":{"title":"Block number or tag","oneOf":[{"title":"Block number","$ref":"#/components/schemas/uint"},{"title":"Block tag","$ref":"#/components/schemas/BlockTag"}]},"BlockNumberOrTagOrHash":{"title":"Block number, tag, or block hash","anyOf":[{"title":"Block number","$ref":"#/components/schemas/uint"},{"title":"Block tag","$ref":"#/components/schemas/BlockTag"},{"title":"Block hash","$ref":"#/components/schemas/hash32"}]},"BadBlock":{"title":"Bad block","type":"object","required":["block","hash","rlp"],"additionalProperties":false,"properties":{"block":{"title":"Block","$ref":"#/components/schemas/Block"},"hash":{"title":"Hash","$ref":"#/components/schemas/hash32"},"rlp":{"title":"RLP","$ref":"#/components/schemas/bytes"}}},"SyncingStatus":{"title":"Syncing status","oneOf":[{"title":"Syncing progress","type":"object","additionalProperties":false,"properties":{"startingBlock":{"title":"Starting block","$ref":"#/components/schemas/uint"},"currentBlock":{"title":"Current block","$ref":"#/components/schemas/uint"},"highestBlock":{"title":"Highest block","$ref":"#/components/schemas/uint"}}},{"title":"Not syncing","description":"Should always return false if not syncing.","type":"boolean"}]},"FilterResults":{"title":"Filter results","oneOf":[{"title":"new block or transaction hashes","type":"array","items":{"$ref":"#/components/schemas/hash32"}},{"title":"new logs","type":"array","items":{"$ref":"#/components/schemas/Log"}}]},"Filter":{"title":"filter","type":"object","additionalProperties":false,"properties":{"fromBlock":{"title":"from block","$ref":"#/components/schemas/uint"},"toBlock":{"title":"to block","$ref":"#/components/schemas/uint"},"address":{"title":"Address(es)","oneOf":[{"title":"Any Address","type":"null"},{"title":"Address","$ref":"#/components/schemas/address"},{"title":"Addresses","$ref":"#/components/schemas/addresses"}]},"topics":{"title":"Topics","$ref":"#/components/schemas/FilterTopics"}}},"FilterTopics":{"title":"Filter Topics","oneOf":[{"title":"Any Topic Match","type":"null"},{"title":"Specified Filter Topics","type":"array","items":{"$ref":"#/components/schemas/FilterTopic"}}]},"FilterTopic":{"title":"Filter Topic List Entry","oneOf":[{"title":"Single Topic Match","$ref":"#/components/schemas/bytes32"},{"title":"Multiple Topic Match","type":"array","items":{"$ref":"#/components/schemas/bytes32"}}]},"Log":{"title":"log","type":"object","required":["transactionHash"],"additionalProperties":false,"properties":{"removed":{"title":"removed","type":"boolean"},"logIndex":{"title":"log index","$ref":"#/components/schemas/uint"},"transactionIndex":{"title":"transaction index","$ref":"#/components/schemas/uint"},"transactionHash":{"title":"transaction hash","$ref":"#/components/schemas/hash32"},"blockHash":{"title":"block hash","$ref":"#/components/schemas/hash32"},"blockNumber":{"title":"block number","$ref":"#/components/schemas/uint"},"address":{"title":"address","$ref":"#/components/schemas/address"},"data":{"title":"data","$ref":"#/components/schemas/bytes"},"topics":{"title":"topics","type":"array","items":{"$ref":"#/components/schemas/bytes32"}}}},"ReceiptInfo":{"type":"object","title":"Receipt information","required":["blockHash","blockNumber","from","cumulativeGasUsed","gasUsed","logs","logsBloom","transactionHash","transactionIndex","effectiveGasPrice"],"additionalProperties":false,"properties":{"type":{"title":"type","$ref":"#/components/schemas/byte"},"transactionHash":{"title":"transaction hash","$ref":"#/components/schemas/hash32"},"transactionIndex":{"title":"transaction index","$ref":"#/components/schemas/uint"},"blockHash":{"title":"block hash","$ref":"#/components/schemas/hash32"},"blockNumber":{"title":"block number","$ref":"#/components/schemas/uint"},"from":{"title":"from","$ref":"#/components/schemas/address"},"to":{"title":"to","description":"Address of the receiver or null in a contract creation transaction.","oneOf":[{"title":"Contract Creation (null)","type":"null"},{"title":"Recipient Address","$ref":"#/components/schemas/address"}]},"cumulativeGasUsed":{"title":"cumulative gas used","description":"The sum of gas used by this transaction and all preceding transactions in the same block.","$ref":"#/components/schemas/uint"},"gasUsed":{"title":"gas used","description":"The amount of gas used for this specific transaction alone.","$ref":"#/components/schemas/uint"},"blobGasUsed":{"title":"blob gas used","description":"The amount of blob gas used for this specific transaction. Only specified for blob transactions as defined by EIP-4844.","$ref":"#/components/schemas/uint"},"contractAddress":{"title":"contract address","description":"The contract address created, if the transaction was a contract creation, otherwise null.","oneOf":[{"$ref":"#/components/schemas/address"},{"title":"Null","type":"null"}]},"logs":{"title":"logs","type":"array","items":{"$ref":"#/components/schemas/Log"}},"logsBloom":{"title":"logs bloom","$ref":"#/components/schemas/bytes256"},"root":{"title":"state root","description":"The post-transaction state root. Only specified for transactions included before the Byzantium upgrade.","$ref":"#/components/schemas/hash32"}
2,"status":{"title":"status","description":"Either 1 (success) or 0 (failure). Only specified for transactions included after the Byzantium upgrade.","$ref":"#/components/schemas/uint"},"effectiveGasPrice":{"title":"effective gas price","description":"The actual value per gas deducted from the sender\'s account. Before EIP-1559, this is equal to the transaction\'s gas price. After, it is equal to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).","$ref":"#/components/schemas/uint"},"blobGasPrice":{"title":"blob gas price","description":"The actual value per gas deducted from the sender\'s account for blob gas. Only specified for blob transactions as defined by EIP-4844.","$ref":"#/components/schemas/uint"}}},"AccountProof":{"title":"Account proof","type":"object","required":["address","accountProof","balance","codeHash","nonce","storageHash","storageProof"],"additionalProperties":false,"properties":{"address":{"title":"address","$ref":"#/components/schemas/address"},"accountProof":{"title":"accountProof","type":"array","items":{"$ref":"#/components/schemas/bytes"}},"balance":{"title":"balance","$ref":"#/components/schemas/uint256"},"codeHash":{"title":"codeHash","$ref":"#/components/schemas/hash32"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint64"},"storageHash":{"title":"storageHash","$ref":"#/components/schemas/hash32"},"storageProof":{"title":"Storage proofs","type":"array","items":{"$ref":"#/components/schemas/StorageProof"}}}},"StorageProof":{"title":"Storage proof","type":"object","required":["key","value","proof"],"additionalProperties":false,"properties":{"key":{"title":"key","$ref":"#/components/schemas/bytesMax32"},"value":{"title":"value","$ref":"#/components/schemas/uint256"},"proof":{"title":"proof","type":"array","items":{"$ref":"#/components/schemas/bytes"}}}},"Transaction4844Unsigned":{"type":"object","title":"EIP-4844 transaction.","required":["type","nonce","to","gas","value","input","maxPriorityFeePerGas","maxFeePerGas","maxFeePerBlobGas","accessList","blobVersionedHashes","chainId"],"properties":{"type":{"title":"type","$ref":"#/components/schemas/byte"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint"},"to":{"title":"to address","$ref":"#/components/schemas/address"},"gas":{"title":"gas limit","$ref":"#/components/schemas/uint"},"value":{"title":"value","$ref":"#/components/schemas/uint"},"input":{"title":"input data","$ref":"#/components/schemas/bytes"},"maxPriorityFeePerGas":{"title":"max priority fee per gas","description":"Maximum fee per gas the sender is willing to pay to miners in wei","$ref":"#/components/schemas/uint"},"maxFeePerGas":{"title":"max fee per gas","description":"The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei","$ref":"#/components/schemas/uint"},"maxFeePerBlobGas":{"title":"max fee per blob gas","description":"The maximum total fee per gas the sender is willing to pay for blob gas in wei","$ref":"#/components/schemas/uint"},"accessList":{"title":"accessList","description":"EIP-2930 access list","$ref":"#/components/schemas/AccessList"},"blobVersionedHashes":{"title":"blobVersionedHashes","description":"List of versioned blob hashes associated with the transaction\'s EIP-4844 data blobs.","type":"array","items":{"$ref":"#/components/schemas/hash32"}},"chainId":{"title":"chainId","description":"Chain ID that this transaction is valid on.","$ref":"#/components/schemas/uint"}}},"AccessListEntry":{"title":"Access list entry","type":"object","additionalProperties":false,"properties":{"address":{"$ref":"#/components/schemas/address"},"storageKeys":{"type":"array","items":{"$ref":"#/components/schemas/hash32"}}}},"AccessList":{"title":"Access list","type":"array","items":{"$ref":"#/components/schemas/AccessListEntry"}},"Transaction1559Unsigned":{"type":"object","title":"EIP-1559 transaction.","required":["type","nonce","gas","value","input","maxFeePerGas","maxPriorityFeePerGas","gasPrice","chainId","accessList"],"properties":{"type":{"title":"type","type":"string","pattern":"^0x2$"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint"},"to":{"title":"to address","oneOf":[{"title":"Contract Creation (null)","type":"null"},{"title":"Address","$ref":"#/components/schemas/address"}]},"gas":{"title":"gas limit","$ref":"#/components/schemas/uint"},"value":{"title":"value","$ref":"#/components/schemas/uint"},"input":{"title":"input data","$ref":"#/components/schemas/bytes"},"maxPriorityFeePerGas":{"title":"max priority fee per gas","description":"Maximum fee per gas the sender is willing to pay to miners in wei","$ref":"#/components/schemas/uint"},"maxFeePerGas":{"title":"max fee per gas","description":"The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei","$ref":"#/components/schemas/uint"},"gasPrice":{"title":"gas price","description":"The effective gas price paid by the sender in wei. For transactions not yet included in a block, this value should be set equal to the max fee per gas. This field is DEPRECATED, please transition to using effectiveGasPrice in the receipt object going forward.","$ref":"#/components/schemas/uint"},"accessList":{"title":"accessList","description":"EIP-2930 access list","$ref":"#/components/schemas/AccessList"},"chainId":{"title":"chainId","description":"Chain ID that this transaction is valid on.","$ref":"#/components/schemas/uint"}}},"Transaction2930Unsigned":{"type":"object","title":"EIP-2930 transaction.","required":["type","nonce","gas","value","input","gasPrice","chainId","accessList"],"properties":{"type":{"title":"type","type":"string","pattern":"^0x1$"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint"},"to":{"title":"to address","oneOf":[{"title":"Contract Creation (null)","type":"null"},{"title":"Address","$ref":"#/components/schemas/address"}]},"gas":{"title":"gas limit","$ref":"#/components/schemas/uint"},"value":{"title":"value","$ref":"#/components/schemas/uint"},"input":{"title":"input data","$ref":"#/components/schemas/bytes"},"gasPrice":{"title":"gas price","description":"The gas price willing to be paid by the sender in wei","$ref":"#/components/schemas/uint"},"accessList":{"title":"accessList","description":"EIP-2930 access list","$ref":"#/components/schemas/AccessList"},"chainId":{"title":"chainId","description":"Chain ID that this transaction is valid on.","$ref":"#/components/schemas/uint"}}},"TransactionLegacyUnsigned":{"type":"object","title":"Legacy transaction.","required":["type","nonce","gas","value","input","gasPrice"],"properties":{"type":{"title":"type","type":"string","pattern":"^0x0$"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint"},"to":{"title":"to address","oneOf":[{"title":"Contract Creation (null)","type":"null"},{"title":"Address","$ref":"#/components/schemas/address"}]},"gas":{"title":"gas limit","$ref":"#/components/schemas/uint"},"value":{"title":"value","$ref":"#/components/schemas/uint"},"input":{"title":"input data","$ref":"#/components/schemas/bytes"},"gasPrice":{"title":"gas price","description":"The gas price willing to be paid by the sender in wei","$ref":"#/components/schemas/uint"},"chainId":{"title":"chainId","description":"Chain ID that this transaction is valid on.","$ref":"#/components/schemas/uint"}}},"TransactionUnsigned":{"oneOf":[{"$ref":"#/components/schemas/Transaction4844Unsigned"},{"$ref":"#/components/schemas/Transaction1559Unsigned"},{"$ref":"#/components/schemas/Transaction2930Unsigned"},{"$ref":"#/components/schemas/TransactionLegacyUnsigned"}]},"Transaction4844Signed":{"title":"Signed 4844 Transaction","type":"object","allOf":[{"$ref":"#/components/schemas/Transaction4844Unsigned"},{"title":"EIP-4844 transaction signature properties.","required":["yParity","r","s"],"properties":{"yParity":{"title":"yParity","de
2scription":"The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.","$ref":"#/components/schemas/uint"},"r":{"title":"r","$ref":"#/components/schemas/uint"},"s":{"title":"s","$ref":"#/components/schemas/uint"}}}]},"Transaction1559Signed":{"title":"Signed 1559 Transaction","type":"object","allOf":[{"$ref":"#/components/schemas/Transaction1559Unsigned"},{"title":"EIP-1559 transaction signature properties.","required":["yParity","r","s"],"properties":{"yParity":{"title":"yParity","description":"The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.","$ref":"#/components/schemas/uint"},"v":{"title":"v","description":"For backwards compatibility, `v` is optionally provided as an alternative to `yParity`. This field is DEPRECATED and all use of it should migrate to `yParity`.","$ref":"#/components/schemas/uint"},"r":{"title":"r","$ref":"#/components/schemas/uint"},"s":{"title":"s","$ref":"#/components/schemas/uint"}}}]},"Transaction2930Signed":{"title":"Signed 2930 Transaction","type":"object","allOf":[{"$ref":"#/components/schemas/Transaction2930Unsigned"},{"title":"EIP-2930 transaction signature properties.","required":["yParity","r","s"],"properties":{"yParity":{"title":"yParity","description":"The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.","$ref":"#/components/schemas/uint"},"v":{"title":"v","description":"For backwards compatibility, `v` is optionally provided as an alternative to `yParity`. This field is DEPRECATED and all use of it should migrate to `yParity`.","$ref":"#/components/schemas/uint"},"r":{"title":"r","$ref":"#/components/schemas/uint"},"s":{"title":"s","$ref":"#/components/schemas/uint"}}}]},"TransactionLegacySigned":{"title":"Signed Legacy Transaction","type":"object","allOf":[{"$ref":"#/components/schemas/TransactionLegacyUnsigned"},{"title":"Legacy transaction signature properties.","required":["v","r","s"],"properties":{"v":{"title":"v","$ref":"#/components/schemas/uint"},"r":{"title":"r","$ref":"#/components/schemas/uint"},"s":{"title":"s","$ref":"#/components/schemas/uint"}}}]},"TransactionSigned":{"oneOf":[{"$ref":"#/components/schemas/Transaction4844Signed"},{"$ref":"#/components/schemas/Transaction1559Signed"},{"$ref":"#/components/schemas/Transaction2930Signed"},{"$ref":"#/components/schemas/TransactionLegacySigned"}]},"TransactionInfo":{"type":"object","title":"Transaction information","allOf":[{"title":"Contextual information","required":["blockHash","blockNumber","from","hash","transactionIndex"],"unevaluatedProperties":false,"properties":{"blockHash":{"title":"block hash","$ref":"#/components/schemas/hash32"},"blockNumber":{"title":"block number","$ref":"#/components/schemas/uint"},"from":{"title":"from address","$ref":"#/components/schemas/address"},"hash":{"title":"transaction hash","$ref":"#/components/schemas/hash32"},"transactionIndex":{"title":"transaction index","$ref":"#/components/schemas/uint"}}},{"$ref":"#/components/schemas/TransactionSigned"}]},"GenericTransaction":{"type":"object","title":"Transaction object generic to all types","additionalProperties":false,"properties":{"type":{"title":"type","$ref":"#/components/schemas/byte"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint"},"to":{"title":"to address","oneOf":[{"title":"Contract Creation (null)","type":"null"},{"title":"Address","$ref":"#/components/schemas/address"}]},"from":{"title":"from address","$ref":"#/components/schemas/address"},"gas":{"title":"gas limit","$ref":"#/components/schemas/uint"},"value":{"title":"value","$ref":"#/components/schemas/uint"},"input":{"title":"input data","$ref":"#/components/schemas/bytes"},"gasPrice":{"title":"gas price","description":"The gas price willing to be paid by the sender in wei","$ref":"#/components/schemas/uint"},"maxPriorityFeePerGas":{"title":"max priority fee per gas","description":"Maximum fee per gas the sender is willing to pay to miners in wei","$ref":"#/components/schemas/uint"},"maxFeePerGas":{"title":"max fee per gas","description":"The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei","$ref":"#/components/schemas/uint"},"maxFeePerBlobGas":{"title":"max fee per blob gas","description":"The maximum total fee per gas the sender is willing to pay for blob gas in wei","$ref":"#/components/schemas/uint"},"accessList":{"title":"accessList","description":"EIP-2930 access list","$ref":"#/components/schemas/AccessList"},"blobVersionedHashes":{"title":"blobVersionedHashes","description":"List of versioned blob hashes associated with the transaction\'s EIP-4844 data blobs.","type":"array","items":{"$ref":"#/components/schemas/hash32"}}
2,"blobs":{"title":"blobs","description":"Raw blob data.","type":"array","items":{"$ref":"#/components/schemas/bytes"}},"chainId":{"title":"chainId","description":"Chain ID that this transaction is valid on.","$ref":"#/components/schemas/uint"}}},"Withdrawal":{"type":"object","title":"Validator withdrawal","required":["index","validatorIndex","address","amount"],"additionalProperties":false,"properties":{"index":{"title":"index of withdrawal","$ref":"#/components/schemas/uint64"},"validatorIndex":{"title":"index of validator that generated withdrawal","$ref":"#/components/schemas/uint64"},"address":{"title":"recipient address for withdrawal value","$ref":"#/components/schemas/address"},"amount":{"title":"value contained in withdrawal","$ref":"#/components/schemas/uint256"}}},"ForkchoiceStateV1":{"title":"Forkchoice state object V1","type":"object","required":["headBlockHash","safeBlockHash","finalizedBlockHash"],"properties":{"headBlockHash":{"title":"Head block hash","$ref":"#/components/schemas/hash32"},"safeBlockHash":{"title":"Safe block hash","$ref":"#/components/schemas/hash32"},"finalizedBlockHash":{"title":"Finalized block hash","$ref":"#/components/schemas/hash32"}}},"ForkchoiceUpdatedResponseV1":{"title":"Forkchoice updated response","type":"object","required":["payloadStatus"],"properties":{"payloadStatus":{"title":"Payload status","$ref":"#/components/schemas/RestrictedPayloadStatusV1"},"payloadId":{"title":"Payload id","$ref":"#/components/schemas/bytes8"}}},"PayloadAttributesV1":{"title":"Payload attributes object V1","type":"object","required":["timestamp","prevRandao","suggestedFeeRecipient"],"properties":{"timestamp":{"title":"Timestamp","$ref":"#/components/schemas/uint64"},"prevRandao":{"title":"Previous randao value","$ref":"#/components/schemas/bytes32"},"suggestedFeeRecipient":{"title":"Suggested fee recipient","$ref":"#/components/schemas/address"}}},"PayloadAttributesV2":{"title":"Payload attributes object V2","type":"object","required":["timestamp","prevRandao","suggestedFeeRecipient","withdrawals"],"properties":{"timestamp":{"$ref":"#/components/schemas/PayloadAttributesV1/properties/timestamp"},"prevRandao":{"$ref":"#/components/schemas/PayloadAttributesV1/properties/prevRandao"},"suggestedFeeRecipient":{"$ref":"#/components/schemas/PayloadAttributesV1/properties/suggestedFeeRecipient"},"withdrawals":{"title":"Withdrawals","type":"array","items":{"$ref":"#/components/schemas/WithdrawalV1"}}}},"PayloadAttributesV3":{"title":"Payload attributes object V3","type":"object","required":["timestamp","prevRandao","suggestedFeeRecipient","withdrawals","parentBeaconBlockRoot"],"properties":{"timestamp":{"$ref":"#/components/schemas/PayloadAttributesV2/properties/timestamp"},"prevRandao":{"$ref":"#/components/schemas/PayloadAttributesV2/properties/prevRandao"},"suggestedFeeRecipient":{"$ref":"#/components/schemas/PayloadAttributesV2/properties/suggestedFeeRecipient"},"withdrawals":{"$ref":"#/components/schemas/PayloadAttributesV2/properties/withdrawals"},"parentBeaconBlockRoot":{"title":"Parent beacon block root","$ref":"#/components/schemas/hash32"}}},"PayloadStatusV1":{"title":"Payload status object V1","type":"object","required":["status"],"properties":{"status":{"title":"Payload validation status","type":"string","enum":["VALID","INVALID","SYNCING","ACCEPTED","INVALID_BLOCK_HASH"]},"latestValidHash":{"title":"The hash of the most recent valid block","$ref":"#/components/schemas/hash32"},"validationError":{"title":"Validation error message","type":"string"}}},"RestrictedPayloadStatusV1":{"$ref":"#/components/schemas/PayloadStatusV1","properties":{"status":{"$ref":"#/components/schemas/PayloadStatusV1/properties/status","description":"Set of possible values is restricted to VALID, INVALID, SYNCING","enum":["VALID","INVALID","SYNCING"]},"latestValidHash":{"$ref":"#/components/schemas/PayloadStatusV1/properties/latestValidHash"},"validationError":{"$ref":"#/components/schemas/PayloadStatusV1/properties/validationError"}}},"PayloadStatusNoInvalidBlockHash":{"$ref":"#/components/schemas/PayloadStatusV1","title":"Payload status object deprecating INVALID_BLOCK_HASH status","properties":{"status":{"$ref":"#/components/schemas/PayloadStatusV1/properties/status","enum":["VALID","INVALID","SYNCING","ACCEPTED"]},"latestValidHash":{"$ref":"#/components/schemas/PayloadStatusV1/properties/latestValidHash"},"validationError":{"$ref":"#/components/schemas/PayloadStatusV1/properties/validationError"}}},"ExecutionPayloadV1":{"title":"Execution payload object V1","type":"object","required":["parentHash","feeRecipient","stateRoot","receiptsRoot","logsBloom","prevRandao","blockNumber","gasLimit","gasUsed","timestamp","extraData","baseFeePerGas","blockHash","transactions"],"properties":{"parentHash":{"title":"Parent block hash","$ref":"#/components/schemas/hash32"},"feeRecipient":{"title":"Recipient of transaction priority fees","$ref":"#/components/schemas/address"},"stateRoot":{"title":"State root","$ref":"#/components/schemas/hash32"},"receiptsRoot":{"title":"Receipts root","$ref":"#/components/schemas/hash32"},"logsBloom":{"title":"Bloom filter","$ref":"#/components/schemas/bytes256"},"prevRandao":{"title":"Previous randao value","$ref":"#/components/schemas/bytes32"},"blockNumber":{"title":"Block number","$ref":"#/components/schemas/uint64"}
2,"gasLimit":{"title":"Gas limit","$ref":"#/components/schemas/uint64"},"gasUsed":{"title":"Gas used","$ref":"#/components/schemas/uint64"},"timestamp":{"title":"Timestamp","$ref":"#/components/schemas/uint64"},"extraData":{"title":"Extra data","$ref":"#/components/schemas/bytesMax32"},"baseFeePerGas":{"title":"Base fee per gas","$ref":"#/components/schemas/uint256"},"blockHash":{"title":"Block hash","$ref":"#/components/schemas/hash32"},"transactions":{"title":"Transactions","type":"array","items":{"$ref":"#/components/schemas/bytes"}}}},"WithdrawalV1":{"title":"Withdrawal object V1","type":"object","required":["index","validatorIndex","address","amount"],"properties":{"index":{"title":"Withdrawal index","$ref":"#/components/schemas/uint64"},"validatorIndex":{"title":"Validator index","$ref":"#/components/schemas/uint64"},"address":{"title":"Withdrawal address","$ref":"#/components/schemas/address"},"amount":{"title":"Withdrawal amount","$ref":"#/components/schemas/uint64"}}},"ExecutionPayloadV2":{"title":"Execution payload object V2","type":"object","required":["parentHash","feeRecipient","stateRoot","receiptsRoot","logsBloom","prevRandao","blockNumber","gasLimit","gasUsed","timestamp","extraData","baseFeePerGas","blockHash","transactions","withdrawals"],"properties":{"parentHash":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/parentHash"},"feeRecipient":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/feeRecipient"},"stateRoot":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/stateRoot"},"receiptsRoot":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/receiptsRoot"},"logsBloom":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/logsBloom"},"prevRandao":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/prevRandao"},"blockNumber":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/blockNumber"},"gasLimit":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/gasLimit"},"gasUsed":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/gasUsed"},"timestamp":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/timestamp"},"extraData":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/extraData"},"baseFeePerGas":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/baseFeePerGas"},"blockHash":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/blockHash"},"transactions":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/transactions"},"withdrawals":{"title":"Withdrawals","type":"array","items":{"$ref":"#/components/schemas/WithdrawalV1"}}}},"ExecutionPayloadV3":{"title":"Execution payload object V3","type":"object","required":["parentHash","feeRecipient","stateRoot","receiptsRoot","logsBloom","prevRandao","blockNumber","gasLimit","gasUsed","timestamp","extraData","baseFeePerGas","blockHash","transactions","withdrawals","blobGasUsed","excessBlobGas"],"properties":{"parentHash":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/parentHash"},"feeRecipient":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/feeRecipient"},"stateRoot":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/stateRoot"},"receiptsRoot":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/receiptsRoot"},"logsBloom":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/logsBloom"},"prevRandao":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/prevRandao"},"blockNumber":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/blockNumber"},"gasLimit":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/gasLimit"},"gasUsed":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/gasUsed"},"timestamp":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/timestamp"},"extraData":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/extraData"},"baseFeePerGas":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/baseFeePerGas"},"blockHash":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/blockHash"},"transactions":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/transactions"},"withdrawals":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/withdrawals"},"blobGasUsed":{"title":"Blob gas used","$ref":"#/components/schemas/uint64"},"excessBlobGas":{"title":"Excess blob gas","$ref":"#/components/schemas/uint64"}}},"ExecutionPayloadV4":{"title":"Execution payload object V4","type":"object","required":["parentHash","feeRecipient","stateRoot","receiptsRoot","logsBloom","prevRandao","blockNumber","gasLimit","gasUsed","timestamp","extraData","baseFeePerGas","blockHash","transactions","withdrawals","blobGasUsed","excessBlobGas","depositRequests","withdrawalRequests","consolidationRequests"],"properties":{"parentHash":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/parentHash"},"feeRecipient":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/feeRecipient"},"stateRoot":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/stateRoot"},"receiptsRoot":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/receiptsRoot"},"logsBloom":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/logsBloom"},"prevRandao":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/prevRandao"},"blockNumber":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/blockNumber"}
2,"gasLimit":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/gasLimit"},"gasUsed":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/gasUsed"},"timestamp":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/timestamp"},"extraData":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/extraData"},"baseFeePerGas":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/baseFeePerGas"},"blockHash":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/blockHash"},"transactions":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/transactions"},"withdrawals":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/withdrawals"},"blobGasUsed":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/blobGasUsed"},"excessBlobGas":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/excessBlobGas"},"depositRequests":{"title":"Deposit requests","type":"array","items":{"$ref":"#/components/schemas/DepositRequestV1"}},"withdrawalRequests":{"title":"Withdrawals requests","type":"array","items":{"$ref":"#/components/schemas/WithdrawalRequestV1"}},"consolidationRequests":{"title":"Consolidation requests","type":"array","items":{"$ref":"#/components/schemas/ConsolidationRequestV1"}}}},"ExecutionPayloadBodyV1":{"title":"Execution payload body object V1","type":"object","required":["transactions"],"properties":{"transactions":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/transactions"},"withdrawals":{"title":"Withdrawals","type":["array","null"],"items":{"$ref":"#/components/schemas/WithdrawalV1"}}}},"ExecutionPayloadBodyV2":{"title":"Execution payload body object V2","type":"object","required":["transactions"],"properties":{"transactions":{"title":"Transactions","type":"array","items":{"$ref":"#/components/schemas/bytes"}},"withdrawals":{"title":"Withdrawals","type":["array","null"],"items":{"$ref":"#/components/schemas/WithdrawalV1"}},"depositRequests":{"title":"Deposit requests","type":["array","null"],"items":{"$ref":"#/components/schemas/DepositRequestV1"}},"withdrawalRequests":{"title":"Withdrawals requests","type":["array","null"],"items":{"$ref":"#/components/schemas/WithdrawalRequestV1"}},"consolidationRequests":{"title":"Consolidation requests - array - \'null\'","items":{"$ref":"#/components/schemas/ConsolidationRequestV1"}}}},"BlobsBundleV1":{"title":"Blobs bundle object V1","type":"object","required":["commitments","proofs","blobs"],"properties":{"commitments":{"title":"Commitments","type":"array","items":{"$ref":"#/components/schemas/bytes48"}},"proofs":{"title":"Proofs","type":"array","items":{"$ref":"#/components/schemas/bytes48"}},"blobs":{"title":"Blobs","type":"array","items":{"$ref":"#/components/schemas/bytes"}}}},"DepositRequestV1":{"title":"Deposit request object V1","type":"object","required":["pubkey","withdrawalCredentials","amount","signature","index"],"properties":{"pubkey":{"title":"Public key","$ref":"#/components/schemas/bytes48"},"withdrawalCredentials":{"title":"Withdrawal credentials","$ref":"#/components/schemas/bytes32"},"amount":{"title":"Deposit amount","$ref":"#/components/schemas/uint64"},"signature":{"title":"Deposit signature","$ref":"#/components/schemas/bytes96"},"index":{"title":"Deposit index","$ref":"#/components/schemas/uint64"}}},"WithdrawalRequestV1":{"title":"Withdrawal request object V1","type":"object","required":["sourceAddress","validatorPubkey","amount"],"properties":{"sourceAddress":{"title":"Source address","$ref":"#/components/schemas/address"},"validatorPubkey":{"title":"Validator public key","$ref":"#/components/schemas/bytes48"},"amount":{"title":"Withdraw amount","$ref":"#/components/schemas/uint64"}}},"ConsolidationRequestV1":{"title":"Consolidation request object V1","type":"object","required":["sourceAddress","sourcePubkey","targetPubkey"],"properties":{"sourceAddress":{"title":"Source address","$ref":"#/components/schemas/address"},"sourcePubkey":{"title":"Source validator public key","$ref":"#/components/schemas/bytes48"},"targetPubkey":{"title":"Target validator public key","$ref":"#/components/schemas/bytes48"}}},"TransitionConfigurationV1":{"title":"Transition configuration object","type":"object","required":["terminalTotalDifficulty","terminalBlockHash","terminalBlockNumber"],"properties":{"terminalTotalDifficulty":{"title":"Terminal total difficulty","$ref":"#/components/schemas/uint256"},"terminalBlockHash":{"title":"Terminal block hash","$ref":"#/components/schemas/hash32"},"terminalBlockNumber":{"title":"Terminal block number","$ref":"#/components/schemas/uint64"}}}},"tags":{"MetaMask":{"name":"MetaMask","description":"MetaMask-specific methods."},"Restricted":{"name":"Restricted","description":"Restricted methods. If a method is restricted, the caller must have the corresponding permission via `wallet_requestPermissions` in order to call it."},"Mobile":{"name":"Mobile","description":"Mobile-specific methods."},"Experimental":{"name":"Experimental","description":"Experimental methods."},"Deprecated":{"name":"Deprecated","description":"Deprecated methods."},"Ethereum":{"name":"Ethereum API","description":"Ethereum execution API methods."},"Multichain":{"name":"Multichain API","description":"Multichain API methods."}},"contentDescriptors":{},"examplePairings":{},"links":{},"examples":{}}}')}}]);

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.