From f3e0d2fb3d674febde95fe93ce511b23e2aec11e Mon Sep 17 00:00:00 2001 From: wentokay Date: Thu, 29 Jun 2023 22:21:19 +0000 Subject: [PATCH] deploy: 456e28268d69a629b255f07603f3307270186970 --- .../456e282/service-worker-loader.html | 1 + background-scripts/456e282/service-worker.js | 389 ++++++++++++++++++ 2 files changed, 390 insertions(+) create mode 100644 background-scripts/456e282/service-worker-loader.html create mode 100644 background-scripts/456e282/service-worker.js diff --git a/background-scripts/456e282/service-worker-loader.html b/background-scripts/456e282/service-worker-loader.html new file mode 100644 index 000000000..9452faf2a --- /dev/null +++ b/background-scripts/456e282/service-worker-loader.html @@ -0,0 +1 @@ +service worker loader \ No newline at end of file diff --git a/background-scripts/456e282/service-worker.js b/background-scripts/456e282/service-worker.js new file mode 100644 index 000000000..32f5a274b --- /dev/null +++ b/background-scripts/456e282/service-worker.js @@ -0,0 +1,389 @@ +(()=>{var $parcel$global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function $parcel$export(e,t,a,o){Object.defineProperty(e,t,{get:a,set:o,enumerable:!0,configurable:!0})}function $parcel$interopDefault(e){return e&&e.__esModule?e.default:e}function $parcel$exportWildcard(e,t){return Object.keys(t).forEach((function(a){"default"===a||"__esModule"===a||e.hasOwnProperty(a)||Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[a]}})})),e}function $parcel$defineInteropFlag(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}var $parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequired656;null==parcelRequire&&(parcelRequire=function(e){if(e in $parcel$modules)return $parcel$modules[e].exports;if(e in $parcel$inits){var t=$parcel$inits[e];delete $parcel$inits[e];var a={id:e,exports:{}};return $parcel$modules[e]=a,t.call(a.exports,a,a.exports),a.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o},parcelRequire.register=function(e,t){$parcel$inits[e]=t},$parcel$global.parcelRequired656=parcelRequire),parcelRequire.register("eKaRR",(function(e,t){var a,o=parcelRequire("8rXeD");a="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==$parcel$global?$parcel$global:e;(0,o.default)(a)})),parcelRequire.register("8rXeD",(function(e,t){function a(e){var t,a=e.Symbol;if("function"==typeof a)if(a.observable)t=a.observable;else{t="function"==typeof a.for?a.for("https://github.com/benlesh/symbol-observable"):a("https://github.com/benlesh/symbol-observable");try{a.observable=t}catch(e){}}else t="@@observable";return t}$parcel$export(e.exports,"default",(()=>a))})),parcelRequire.register("5cySN",(function(e,t){$parcel$export(e.exports,"Struct",(()=>R)),$parcel$export(e.exports,"SOLANA_SCHEMA",(()=>I)),$parcel$export(e.exports,"Enum",(()=>A)),$parcel$export(e.exports,"MAX_SEED_LENGTH",(()=>S)),$parcel$export(e.exports,"PUBLIC_KEY_LENGTH",(()=>E)),$parcel$export(e.exports,"PublicKey",(()=>C)),$parcel$export(e.exports,"Account",(()=>U)),$parcel$export(e.exports,"BPF_LOADER_DEPRECATED_PROGRAM_ID",(()=>M)),$parcel$export(e.exports,"PACKET_DATA_SIZE",(()=>D)),$parcel$export(e.exports,"VERSION_PREFIX_MASK",(()=>N)),$parcel$export(e.exports,"SIGNATURE_LENGTH_IN_BYTES",(()=>P)),$parcel$export(e.exports,"TransactionExpiredBlockheightExceededError",(()=>B)),$parcel$export(e.exports,"TransactionExpiredTimeoutError",(()=>L)),$parcel$export(e.exports,"MessageAccountKeys",(()=>F)),$parcel$export(e.exports,"Message",(()=>V)),$parcel$export(e.exports,"MessageV0",(()=>Y)),$parcel$export(e.exports,"VersionedMessage",(()=>J)),$parcel$export(e.exports,"TransactionStatus",(()=>X)),$parcel$export(e.exports,"TransactionInstruction",(()=>Q)),$parcel$export(e.exports,"Transaction",(()=>ee)),$parcel$export(e.exports,"TransactionMessage",(()=>te)),$parcel$export(e.exports,"VersionedTransaction",(()=>ae)),$parcel$export(e.exports,"SYSVAR_CLOCK_PUBKEY",(()=>oe)),$parcel$export(e.exports,"SYSVAR_EPOCH_SCHEDULE_PUBKEY",(()=>ne)),$parcel$export(e.exports,"SYSVAR_INSTRUCTIONS_PUBKEY",(()=>se)),$parcel$export(e.exports,"SYSVAR_RECENT_BLOCKHASHES_PUBKEY",(()=>re)),$parcel$export(e.exports,"SYSVAR_RENT_PUBKEY",(()=>ie)),$parcel$export(e.exports,"SYSVAR_REWARDS_PUBKEY",(()=>ce)),$parcel$export(e.exports,"SYSVAR_SLOT_HASHES_PUBKEY",(()=>de)),$parcel$export(e.exports,"SYSVAR_SLOT_HISTORY_PUBKEY",(()=>le)),$parcel$export(e.exports,"SYSVAR_STAKE_HISTORY_PUBKEY",(()=>me)),$parcel$export(e.exports,"sendAndConfirmTransaction",(()=>ue)),$parcel$export(e.exports,"FeeCalculatorLayout",(()=>be)),$parcel$export(e.exports,"NONCE_ACCOUNT_LENGTH",(()=>ye)),$parcel$export(e.exports,"NonceAccount",(()=>$e)),$parcel$export(e.exports,"SystemInstruction",(()=>ve)),$parcel$export(e.exports,"SYSTEM_INSTRUCTION_LAYOUTS",(()=>xe)),$parcel$export(e.exports,"SystemProgram",(()=>Re)),$parcel$export(e.exports,"Loader",(()=>Ie)),$parcel$export(e.exports,"BPF_LOADER_PROGRAM_ID",(()=>Se)),$parcel$export(e.exports,"BpfLoader",(()=>Ee)),$parcel$export(e.exports,"EpochSchedule",(()=>Ne)),$parcel$export(e.exports,"SendTransactionError",(()=>Pe)),$parcel$export(e.exports,"SolanaJSONRPCErrorCode",(()=>Be)),$parcel$export(e.exports,"SolanaJSONRPCError",(()=>Le)),$parcel$export(e.exports,"AddressLookupTableAccount",(()=>Ke)),$parcel$export(e.exports,"BLOCKHASH_CACHE_TIMEOUT_MS",(()=>_e)),$parcel$export(e.exports,"Connection",(()=>ka)),$parcel$export(e.exports,"Keypair",(()=>va)),$parcel$export(e.exports,"LOOKUP_TABLE_INSTRUCTION_LAYOUTS",(()=>xa)),$parcel$export(e.exports,"AddressLookupTableInstruction",(()=>Ra)),$parcel$export(e.exports,"AddressLookupTableProgram",(()=>Aa)),$parcel$export(e.exports,"ComputeBudgetInstruction",(()=>Ia)),$parcel$export(e.exports,"COMPUTE_BUDGET_INSTRUCTION_LAYOUTS",(()=>Sa)),$parcel$export(e.exports,"ComputeBudgetProgram",(()=>Ea)),$parcel$export(e.exports,"Ed25519Program",(()=>Ca)),$parcel$export(e.exports,"Secp256k1Program",(()=>Da)),$parcel$export(e.exports,"STAKE_CONFIG_ID",(()=>Na)),$parcel$export(e.exports,"Authorized",(()=>Pa)),$parcel$export(e.exports,"Lockup",(()=>Ba)),$parcel$export(e.exports,"StakeInstruction",(()=>La)),$parcel$export(e.exports,"STAKE_INSTRUCTION_LAYOUTS",(()=>Fa)),$parcel$export(e.exports,"StakeProgram",(()=>Ga)),$parcel$export(e.exports,"StakeAuthorizationLayout",(()=>Ka)),$parcel$export(e.exports,"VoteInit",(()=>ja)),$parcel$export(e.exports,"VoteInstruction",(()=>qa)),$parcel$export(e.exports,"VoteProgram",(()=>Ha)),$parcel$export(e.exports,"VoteAuthorizationLayout",(()=>za)),$parcel$export(e.exports,"VALIDATOR_INFO_KEY",(()=>_a)),$parcel$export(e.exports,"ValidatorInfo",(()=>Ya)),$parcel$export(e.exports,"VOTE_PROGRAM_ID",(()=>Ja)),$parcel$export(e.exports,"VoteAccount",(()=>Oa)),$parcel$export(e.exports,"clusterApiUrl",(()=>ao)),$parcel$export(e.exports,"sendAndConfirmRawTransaction",(()=>oo)),$parcel$export(e.exports,"LAMPORTS_PER_SOL",(()=>no));var a=parcelRequire("ajHSv"),o=parcelRequire("1OmXf"),n=parcelRequire("kSMoX"),s=parcelRequire("bDdkr"),r=parcelRequire("8eDFA"),i=parcelRequire("3GeYT"),c=parcelRequire("7RSTc"),d=parcelRequire("crvhM"),l=(d=parcelRequire("crvhM"),parcelRequire("5mzey")),m=parcelRequire("2SbAy"),u=parcelRequire("djgi1"),p=parcelRequire("eC711"),h=parcelRequire("1WnnI"),g=parcelRequire("eoOn1"),b=parcelRequire("hRlTT");n.utils.sha512Sync=(...e)=>(0,o.sha512)(n.utils.concatBytes(...e));const f=n.utils.randomPrivateKey,y=()=>{const e=n.utils.randomPrivateKey(),t=$(e),a=new Uint8Array(64);return a.set(e),a.set(t,32),{publicKey:t,secretKey:a}},$=n.sync.getPublicKey;function w(e){try{return n.Point.fromHex(e,!0),!0}catch{return!1}}const k=(e,t)=>n.sync.sign(e,t.slice(0,32)),v=n.sync.verify,x=e=>a.Buffer.isBuffer(e)?e:e instanceof Uint8Array?a.Buffer.from(e.buffer,e.byteOffset,e.byteLength):a.Buffer.from(e);class R{constructor(e){Object.assign(this,e)}encode(){return a.Buffer.from((0,c.serialize)(I,this))}static decode(e){return(0,c.deserialize)(I,this,e)}static decodeUnchecked(e){return(0,c.deserializeUnchecked)(I,this,e)}}class A extends R{constructor(e){if(super(e),this.enum="",1!==Object.keys(e).length)throw new Error("Enum can only take single value");Object.keys(e).map((e=>{this.enum=e}))}}const I=new Map,S=32,E=32;let T=1;class C extends R{constructor(e){if(super({}),this._bn=void 0,function(e){return void 0!==e._bn}(e))this._bn=e._bn;else{if("string"==typeof e){const t=$parcel$interopDefault(r).decode(e);if(t.length!=E)throw new Error("Invalid public key input");this._bn=new($parcel$interopDefault(s))(t)}else this._bn=new($parcel$interopDefault(s))(e);if(this._bn.byteLength()>32)throw new Error("Invalid public key input")}}static unique(){const e=new C(T);return T+=1,new C(e.toBuffer())}equals(e){return this._bn.eq(e._bn)}toBase58(){return $parcel$interopDefault(r).encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){return this.toBuffer()}toBuffer(){const e=this._bn.toArrayLike(a.Buffer);if(e.length===E)return e;const t=a.Buffer.alloc(32);return e.copy(t,32-e.length),t}toString(){return this.toBase58()}static async createWithSeed(e,t,o){const n=a.Buffer.concat([e.toBuffer(),a.Buffer.from(t),o.toBuffer()]),s=(0,i.sha256)(n);return new C(s)}static createProgramAddressSync(e,t){let o=a.Buffer.alloc(0);e.forEach((function(e){if(e.length>S)throw new TypeError("Max seed length exceeded");o=a.Buffer.concat([o,x(e)])})),o=a.Buffer.concat([o,t.toBuffer(),a.Buffer.from("ProgramDerivedAddress")]);const n=(0,i.sha256)(o);if(w(n))throw new Error("Invalid seeds, address must fall off the curve");return new C(n)}static async createProgramAddress(e,t){return this.createProgramAddressSync(e,t)}static findProgramAddressSync(e,t){let o,n=255;for(;0!=n;){try{const s=e.concat(a.Buffer.from([n]));o=this.createProgramAddressSync(s,t)}catch(e){if(e instanceof TypeError)throw e;n--;continue}return[o,n]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(e,t){return this.findProgramAddressSync(e,t)}static isOnCurve(e){return w(new C(e).toBytes())}}C.default=new C("11111111111111111111111111111111"),I.set(C,{kind:"struct",fields:[["_bn","u256"]]});class U{constructor(e){if(this._publicKey=void 0,this._secretKey=void 0,e){const t=x(e);if(64!==e.length)throw new Error("bad secret key size");this._publicKey=t.slice(32,64),this._secretKey=t.slice(0,32)}else this._secretKey=x(f()),this._publicKey=x($(this._secretKey))}get publicKey(){return new C(this._publicKey)}get secretKey(){return a.Buffer.concat([this._secretKey,this._publicKey],64)}}const M=new C("BPFLoader1111111111111111111111111111111111"),D=1232,N=127,P=64;class B extends Error{constructor(e){super(`Signature ${e} has expired: block height exceeded.`),this.signature=void 0,this.signature=e}}Object.defineProperty(B.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class L extends Error{constructor(e,t){super(`Transaction was not confirmed in ${t.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${e} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=e}}Object.defineProperty(L.prototype,"name",{value:"TransactionExpiredTimeoutError"});class F{constructor(e,t){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=e,this.accountKeysFromLookups=t}keySegments(){const e=[this.staticAccountKeys];return this.accountKeysFromLookups&&(e.push(this.accountKeysFromLookups.writable),e.push(this.accountKeysFromLookups.readonly)),e}get(e){for(const t of this.keySegments()){if(e256)throw new Error("Account index overflow encountered during compilation");const t=new Map;this.keySegments().flat().forEach(((e,a)=>{t.set(e.toBase58(),a)}));const a=e=>{const a=t.get(e.toBase58());if(void 0===a)throw new Error("Encountered an unknown instruction account key during compilation");return a};return e.map((e=>({programIdIndex:a(e.programId),accountKeyIndexes:e.keys.map((e=>a(e.pubkey))),data:e.data})))}}const K=(e="publicKey")=>d.blob(32,e),G=(e="signature")=>d.blob(64,e),j=(e="string")=>{const t=d.struct([d.u32("length"),d.u32("lengthPadding"),d.blob(d.offset(d.u32(),-8),"chars")],e),o=t.decode.bind(t),n=t.encode.bind(t),s=t;return s.decode=(e,t)=>o(e,t).chars.toString(),s.encode=(e,t,o)=>{const s={chars:a.Buffer.from(e,"utf8")};return n(s,t,o)},s.alloc=e=>d.u32().span+d.u32().span+a.Buffer.from(e,"utf8").length,s};function q(e,t){const a=e=>{if(e.span>=0)return e.span;if("function"==typeof e.alloc)return e.alloc(t[e.property]);if("count"in e&&"elementLayout"in e){const o=t[e.property];if(Array.isArray(o))return o.length*a(e.elementLayout)}else if("fields"in e)return q({layout:e},t[e.property]);return 0};let o=0;return e.layout.fields.forEach((e=>{o+=a(e)})),o}function W(e){let t=0,a=0;for(;;){let o=e.shift();if(t|=(127&o)<<7*a,a+=1,0==(128&o))break}return t}function z(e,t){let a=t;for(;;){let t=127&a;if(a>>=7,0==a){e.push(t);break}t|=128,e.push(t)}}function H(e,t){if(!e)throw new Error(t||"Assertion failed")}class _{constructor(e,t){this.payer=void 0,this.keyMetaMap=void 0,this.payer=e,this.keyMetaMap=t}static compile(e,t){const a=new Map,o=e=>{const t=e.toBase58();let o=a.get(t);return void 0===o&&(o={isSigner:!1,isWritable:!1,isInvoked:!1},a.set(t,o)),o},n=o(t);n.isSigner=!0,n.isWritable=!0;for(const t of e){o(t.programId).isInvoked=!0;for(const e of t.keys){const t=o(e.pubkey);t.isSigner||(t.isSigner=e.isSigner),t.isWritable||(t.isWritable=e.isWritable)}}return new _(t,a)}getMessageComponents(){const e=[...this.keyMetaMap.entries()];H(e.length<=256,"Max static account keys length exceeded");const t=e.filter((([,e])=>e.isSigner&&e.isWritable)),a=e.filter((([,e])=>e.isSigner&&!e.isWritable)),o=e.filter((([,e])=>!e.isSigner&&e.isWritable)),n=e.filter((([,e])=>!e.isSigner&&!e.isWritable)),s={numRequiredSignatures:t.length+a.length,numReadonlySignedAccounts:a.length,numReadonlyUnsignedAccounts:n.length};{H(t.length>0,"Expected at least one writable signer key");const[e]=t[0];H(e===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}return[s,[...t.map((([e])=>new C(e))),...a.map((([e])=>new C(e))),...o.map((([e])=>new C(e))),...n.map((([e])=>new C(e)))]]}extractTableLookup(e){const[t,a]=this.drainKeysFoundInLookupTable(e.state.addresses,(e=>!e.isSigner&&!e.isInvoked&&e.isWritable)),[o,n]=this.drainKeysFoundInLookupTable(e.state.addresses,(e=>!e.isSigner&&!e.isInvoked&&!e.isWritable));if(0!==t.length||0!==o.length)return[{accountKey:e.key,writableIndexes:t,readonlyIndexes:o},{writable:a,readonly:n}]}drainKeysFoundInLookupTable(e,t){const a=new Array,o=new Array;for(const[n,s]of this.keyMetaMap.entries())if(t(s)){const t=new C(n),s=e.findIndex((e=>e.equals(t)));s>=0&&(H(s<256,"Max lookup table index exceeded"),a.push(s),o.push(t),this.keyMetaMap.delete(n))}return[a,o]}}class V{constructor(e){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=e.header,this.accountKeys=e.accountKeys.map((e=>new C(e))),this.recentBlockhash=e.recentBlockhash,this.instructions=e.instructions,this.instructions.forEach((e=>this.indexToProgramIds.set(e.programIdIndex,this.accountKeys[e.programIdIndex])))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map((e=>({programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:$parcel$interopDefault(r).decode(e.data)})))}get addressTableLookups(){return[]}getAccountKeys(){return new F(this.staticAccountKeys)}static compile(e){const t=_.compile(e.instructions,e.payerKey),[a,o]=t.getMessageComponents(),n=new F(o).compileInstructions(e.instructions).map((e=>({programIdIndex:e.programIdIndex,accounts:e.accountKeyIndexes,data:$parcel$interopDefault(r).encode(e.data)})));return new V({header:a,accountKeys:o,recentBlockhash:e.recentBlockhash,instructions:n})}isAccountSigner(e){return e=this.header.numRequiredSignatures){return e-t!this.isProgramId(t)))}serialize(){const e=this.accountKeys.length;let t=[];z(t,e);const o=this.instructions.map((e=>{const{accounts:t,programIdIndex:o}=e,n=Array.from($parcel$interopDefault(r).decode(e.data));let s=[];z(s,t.length);let i=[];return z(i,n.length),{programIdIndex:o,keyIndicesCount:a.Buffer.from(s),keyIndices:t,dataLength:a.Buffer.from(i),data:n}}));let n=[];z(n,o.length);let s=a.Buffer.alloc(D);a.Buffer.from(n).copy(s);let i=n.length;o.forEach((e=>{const t=d.struct([d.u8("programIdIndex"),d.blob(e.keyIndicesCount.length,"keyIndicesCount"),d.seq(d.u8("keyIndex"),e.keyIndices.length,"keyIndices"),d.blob(e.dataLength.length,"dataLength"),d.seq(d.u8("userdatum"),e.data.length,"data")]).encode(e,s,i);i+=t})),s=s.slice(0,i);const c=d.struct([d.blob(1,"numRequiredSignatures"),d.blob(1,"numReadonlySignedAccounts"),d.blob(1,"numReadonlyUnsignedAccounts"),d.blob(t.length,"keyCount"),d.seq(K("key"),e,"keys"),K("recentBlockhash")]),l={numRequiredSignatures:a.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:a.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:a.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:a.Buffer.from(t),keys:this.accountKeys.map((e=>x(e.toBytes()))),recentBlockhash:$parcel$interopDefault(r).decode(this.recentBlockhash)};let m=a.Buffer.alloc(2048);const u=c.encode(l,m);return s.copy(m,u),m.slice(0,u+s.length)}static from(e){let t=[...e];const o=t.shift();if(o!==(o&N))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const n=t.shift(),s=t.shift(),i=W(t);let c=[];for(let e=0;e0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new F(this.staticAccountKeys,t)}isAccountSigner(e){return e=a){return e-ae+t.writableIndexes.length),0)}if(e>=this.header.numRequiredSignatures){return e-te.key.equals(a.accountKey)));if(!o)throw new Error(`Failed to find address lookup table account for table key ${a.accountKey.toBase58()}`);for(const e of a.writableIndexes){if(!(ee.toBytes())),recentBlockhash:$parcel$interopDefault(r).decode(this.recentBlockhash),instructionsLength:new Uint8Array(a),serializedInstructions:t,addressTableLookupsLength:new Uint8Array(n),serializedAddressTableLookups:o},i);return i.slice(0,c)}serializeInstructions(){let e=0;const t=new Uint8Array(D);for(const a of this.compiledInstructions){const o=Array();z(o,a.accountKeyIndexes.length);const n=Array();z(n,a.data.length);e+=d.struct([d.u8("programIdIndex"),d.blob(o.length,"encodedAccountKeyIndexesLength"),d.seq(d.u8(),a.accountKeyIndexes.length,"accountKeyIndexes"),d.blob(n.length,"encodedDataLength"),d.blob(a.data.length,"data")]).encode({programIdIndex:a.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(o),accountKeyIndexes:a.accountKeyIndexes,encodedDataLength:new Uint8Array(n),data:a.data},t,e)}return t.slice(0,e)}serializeAddressTableLookups(){let e=0;const t=new Uint8Array(D);for(const a of this.addressTableLookups){const o=Array();z(o,a.writableIndexes.length);const n=Array();z(n,a.readonlyIndexes.length);e+=d.struct([K("accountKey"),d.blob(o.length,"encodedWritableIndexesLength"),d.seq(d.u8(),a.writableIndexes.length,"writableIndexes"),d.blob(n.length,"encodedReadonlyIndexesLength"),d.seq(d.u8(),a.readonlyIndexes.length,"readonlyIndexes")]).encode({accountKey:a.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(o),writableIndexes:a.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(n),readonlyIndexes:a.readonlyIndexes},t,e)}return t.slice(0,e)}static deserialize(e){let t=[...e];const a=t.shift(),o=a&N;H(a!==o,"Expected versioned message but received legacy message");H(0===o,`Expected versioned message with version 0 but found version ${o}`);const n={numRequiredSignatures:t.shift(),numReadonlySignedAccounts:t.shift(),numReadonlyUnsignedAccounts:t.shift()},s=[],i=W(t);for(let e=0;e{const t=J.deserializeMessageVersion(e);if("legacy"===t)return V.from(e);if(0===t)return Y.deserialize(e);throw new Error(`Transaction message version ${t} deserialization is not supported`)}};let X;var O;(O=X||(X={}))[O.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",O[O.PROCESSED=1]="PROCESSED",O[O.TIMED_OUT=2]="TIMED_OUT";const Z=a.Buffer.alloc(P).fill(0);class Q{constructor(e){this.keys=void 0,this.programId=void 0,this.data=a.Buffer.alloc(0),this.programId=e.programId,this.keys=e.keys,e.data&&(this.data=e.data)}toJSON(){return{keys:this.keys.map((({pubkey:e,isSigner:t,isWritable:a})=>({pubkey:e.toJSON(),isSigner:t,isWritable:a}))),programId:this.programId.toJSON(),data:[...this.data]}}}class ee{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(e){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this._message=void 0,this._json=void 0,e)if(e.feePayer&&(this.feePayer=e.feePayer),e.signatures&&(this.signatures=e.signatures),Object.prototype.hasOwnProperty.call(e,"lastValidBlockHeight")){const{blockhash:t,lastValidBlockHeight:a}=e;this.recentBlockhash=t,this.lastValidBlockHeight=a}else{const{recentBlockhash:t,nonceInfo:a}=e;a&&(this.nonceInfo=a),this.recentBlockhash=t}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((e=>e.toJSON())),signers:this.signatures.map((({publicKey:e})=>e.toJSON()))}}add(...e){if(0===e.length)throw new Error("No instructions");return e.forEach((e=>{"instructions"in e?this.instructions=this.instructions.concat(e.instructions):"data"in e&&"programId"in e&&"keys"in e?this.instructions.push(e):this.instructions.push(new Q(e))})),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let e,t,a;if(this.nonceInfo?(e=this.nonceInfo.nonce,t=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction,...this.instructions]:this.instructions):(e=this.recentBlockhash,t=this.instructions),!e)throw new Error("Transaction recentBlockhash required");if(t.length<1&&console.warn("No instructions provided"),this.feePayer)a=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");a=this.signatures[0].publicKey}for(let e=0;e{e.keys.forEach((e=>{n.push({...e})}));const t=e.programId.toString();o.includes(t)||o.push(t)})),o.forEach((e=>{n.push({pubkey:new C(e),isSigner:!1,isWritable:!1})}));const s=[];n.forEach((e=>{const t=e.pubkey.toString(),a=s.findIndex((e=>e.pubkey.toString()===t));a>-1?(s[a].isWritable=s[a].isWritable||e.isWritable,s[a].isSigner=s[a].isSigner||e.isSigner):s.push(e)})),s.sort((function(e,t){return e.isSigner!==t.isSigner?e.isSigner?-1:1:e.isWritable!==t.isWritable?e.isWritable?-1:1:e.pubkey.toBase58().localeCompare(t.pubkey.toBase58())}));const i=s.findIndex((e=>e.pubkey.equals(a)));if(i>-1){const[e]=s.splice(i,1);e.isSigner=!0,e.isWritable=!0,s.unshift(e)}else s.unshift({pubkey:a,isSigner:!0,isWritable:!0});for(const e of this.signatures){const t=s.findIndex((t=>t.pubkey.equals(e.publicKey)));if(!(t>-1))throw new Error(`unknown signer: ${e.publicKey.toString()}`);s[t].isSigner||(s[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))}let c=0,d=0,l=0;const m=[],u=[];s.forEach((({pubkey:e,isSigner:t,isWritable:a})=>{t?(m.push(e.toString()),c+=1,a||(d+=1)):(u.push(e.toString()),a||(l+=1))}));const p=m.concat(u),h=t.map((e=>{const{data:t,programId:a}=e;return{programIdIndex:p.indexOf(a.toString()),accounts:e.keys.map((e=>p.indexOf(e.pubkey.toString()))),data:$parcel$interopDefault(r).encode(t)}}));return h.forEach((e=>{H(e.programIdIndex>=0),e.accounts.forEach((e=>H(e>=0)))})),new V({header:{numRequiredSignatures:c,numReadonlySignedAccounts:d,numReadonlyUnsignedAccounts:l},accountKeys:p,recentBlockhash:e,instructions:h})}_compile(){const e=this.compileMessage(),t=e.accountKeys.slice(0,e.header.numRequiredSignatures);if(this.signatures.length===t.length){if(this.signatures.every(((e,a)=>t[a].equals(e.publicKey))))return e}return this.signatures=t.map((e=>({signature:null,publicKey:e}))),e}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(e){return(await e.getFeeForMessage(this.compileMessage())).value}setSigners(...e){if(0===e.length)throw new Error("No signers");const t=new Set;this.signatures=e.filter((e=>{const a=e.toString();return!t.has(a)&&(t.add(a),!0)})).map((e=>({signature:null,publicKey:e})))}sign(...e){if(0===e.length)throw new Error("No signers");const t=new Set,a=[];for(const o of e){const e=o.publicKey.toString();t.has(e)||(t.add(e),a.push(o))}this.signatures=a.map((e=>({signature:null,publicKey:e.publicKey})));const o=this._compile();this._partialSign(o,...a)}partialSign(...e){if(0===e.length)throw new Error("No signers");const t=new Set,a=[];for(const o of e){const e=o.publicKey.toString();t.has(e)||(t.add(e),a.push(o))}const o=this._compile();this._partialSign(o,...a)}_partialSign(e,...t){const a=e.serialize();t.forEach((e=>{const t=k(a,e.secretKey);this._addSignature(e.publicKey,x(t))}))}addSignature(e,t){this._compile(),this._addSignature(e,t)}_addSignature(e,t){H(64===t.length);const o=this.signatures.findIndex((t=>e.equals(t.publicKey)));if(o<0)throw new Error(`unknown signer: ${e.toString()}`);this.signatures[o].signature=a.Buffer.from(t)}verifySignatures(){return this._verifySignatures(this.serializeMessage(),!0)}_verifySignatures(e,t){for(const{signature:a,publicKey:o}of this.signatures)if(null===a){if(t)return!1}else if(!v(a,e,o.toBuffer()))return!1;return!0}serialize(e){const{requireAllSignatures:t,verifySignatures:a}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},e),o=this.serializeMessage();if(a&&!this._verifySignatures(o,t))throw new Error("Signature verification failed");return this._serialize(o)}_serialize(e){const{signatures:t}=this,o=[];z(o,t.length);const n=o.length+64*t.length+e.length,s=a.Buffer.alloc(n);return H(t.length<256),a.Buffer.from(o).copy(s,0),t.forEach((({signature:e},t)=>{null!==e&&(H(64===e.length,"signature has invalid length"),a.Buffer.from(e).copy(s,o.length+64*t))})),e.copy(s,o.length+64*t.length),H(s.length<=D,`Transaction too large: ${s.length} > ${D}`),s}get keys(){return H(1===this.instructions.length),this.instructions[0].keys.map((e=>e.pubkey))}get programId(){return H(1===this.instructions.length),this.instructions[0].programId}get data(){return H(1===this.instructions.length),this.instructions[0].data}static from(e){let t=[...e];const o=W(t);let n=[];for(let e=0;e0&&(a.feePayer=e.accountKeys[0]),t.forEach(((t,o)=>{const n={signature:t==$parcel$interopDefault(r).encode(Z)?null:$parcel$interopDefault(r).decode(t),publicKey:e.accountKeys[o]};a.signatures.push(n)})),e.instructions.forEach((t=>{const o=t.accounts.map((t=>{const o=e.accountKeys[t];return{pubkey:o,isSigner:a.signatures.some((e=>e.publicKey.toString()===o.toString()))||e.isAccountSigner(t),isWritable:e.isAccountWritable(t)}}));a.instructions.push(new Q({keys:o,programId:e.accountKeys[t.programIdIndex],data:$parcel$interopDefault(r).decode(t.data)}))})),a._message=e,a._json=a.toJSON(),a}}class te{constructor(e){this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=e.payerKey,this.instructions=e.instructions,this.recentBlockhash=e.recentBlockhash}static decompile(e,t){const{header:a,compiledInstructions:o,recentBlockhash:n}=e,{numRequiredSignatures:s,numReadonlySignedAccounts:r,numReadonlyUnsignedAccounts:i}=a,c=s-r;H(c>0,"Message header is invalid");const d=e.staticAccountKeys.length-i;H(d>=0,"Message header is invalid");const l=e.getAccountKeys(t),m=l.get(0);if(void 0===m)throw new Error("Failed to decompile message because no account keys were found");const u=[];for(const e of o){const t=[];for(const o of e.accountKeyIndexes){const e=l.get(o);if(void 0===e)throw new Error(`Failed to find key for account key index ${o}`);let n;n=oe.equals(o.publicKey)));H(e>=0,`Cannot sign with non signer key ${o.publicKey.toBase58()}`),this.signatures[e]=k(t,o.secretKey)}}addSignature(e,t){H(64===t.byteLength,"Signature must be 64 bytes long");const a=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex((t=>t.equals(e)));H(a>=0,`Can not add signature; \`${e.toBase58()}\` is not required to sign this transaction`),this.signatures[a]=t}}const oe=new C("SysvarC1ock11111111111111111111111111111111"),ne=new C("SysvarEpochSchedu1e111111111111111111111111"),se=new C("Sysvar1nstructions1111111111111111111111111"),re=new C("SysvarRecentB1ockHashes11111111111111111111"),ie=new C("SysvarRent111111111111111111111111111111111"),ce=new C("SysvarRewards111111111111111111111111111111"),de=new C("SysvarS1otHashes111111111111111111111111111"),le=new C("SysvarS1otHistory11111111111111111111111111"),me=new C("SysvarStakeHistory1111111111111111111111111");async function ue(e,t,a,o){const n=o&&{skipPreflight:o.skipPreflight,preflightCommitment:o.preflightCommitment||o.commitment,maxRetries:o.maxRetries,minContextSlot:o.minContextSlot},s=await e.sendTransaction(t,a,n),r=null!=t.recentBlockhash&&null!=t.lastValidBlockHeight?(await e.confirmTransaction({signature:s,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},o&&o.commitment)).value:(await e.confirmTransaction(s,o&&o.commitment)).value;if(r.err)throw new Error(`Transaction ${s} failed (${JSON.stringify(r)})`);return s}function pe(e){return new Promise((t=>setTimeout(t,e)))}function he(e,t){const o=e.layout.span>=0?e.layout.span:q(e,t),n=a.Buffer.alloc(o),s=Object.assign({instruction:e.index},t);return e.layout.encode(s,n),n}function ge(e,t){let a;try{a=e.layout.decode(t)}catch(e){throw new Error("invalid instruction; "+e)}if(a.instruction!==e.index)throw new Error(`invalid instruction; instruction index mismatch ${a.instruction} != ${e.index}`);return a}const be=d.nu64("lamportsPerSignature"),fe=d.struct([d.u32("version"),d.u32("state"),K("authorizedPubkey"),K("nonce"),d.struct([be],"feeCalculator")]),ye=fe.span;class $e{constructor(e){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=e.authorizedPubkey,this.nonce=e.nonce,this.feeCalculator=e.feeCalculator}static fromAccountData(e){const t=fe.decode(x(e),0);return new $e({authorizedPubkey:new C(t.authorizedPubkey),nonce:new C(t.nonce).toString(),feeCalculator:t.feeCalculator})}}const we=(ke=8,e=>{const t=(0,d.blob)(ke,e),{encode:o,decode:n}=(e=>({decode:e.decode.bind(e),encode:e.encode.bind(e)}))(t),s=t;return s.decode=(e,t)=>{const o=n(e,t);return(0,l.toBigIntLE)(a.Buffer.from(o))},s.encode=(e,t,a)=>{const n=(0,l.toBufferLE)(e,ke);return o(n,t,a)},s});var ke;class ve{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const t=d.u32("instruction").decode(e.data);let a;for(const[e,o]of Object.entries(xe))if(o.index==t){a=e;break}if(!a)throw new Error("Instruction type incorrect; not a SystemInstruction");return a}static decodeCreateAccount(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{lamports:t,space:a,programId:o}=ge(xe.Create,e.data);return{fromPubkey:e.keys[0].pubkey,newAccountPubkey:e.keys[1].pubkey,lamports:t,space:a,programId:new C(o)}}static decodeTransfer(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{lamports:t}=ge(xe.Transfer,e.data);return{fromPubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,lamports:t}}static decodeTransferWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{lamports:t,seed:a,programId:o}=ge(xe.TransferWithSeed,e.data);return{fromPubkey:e.keys[0].pubkey,basePubkey:e.keys[1].pubkey,toPubkey:e.keys[2].pubkey,lamports:t,seed:a,programId:new C(o)}}static decodeAllocate(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);const{space:t}=ge(xe.Allocate,e.data);return{accountPubkey:e.keys[0].pubkey,space:t}}static decodeAllocateWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);const{base:t,seed:a,space:o,programId:n}=ge(xe.AllocateWithSeed,e.data);return{accountPubkey:e.keys[0].pubkey,basePubkey:new C(t),seed:a,space:o,programId:new C(n)}}static decodeAssign(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);const{programId:t}=ge(xe.Assign,e.data);return{accountPubkey:e.keys[0].pubkey,programId:new C(t)}}static decodeAssignWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);const{base:t,seed:a,programId:o}=ge(xe.AssignWithSeed,e.data);return{accountPubkey:e.keys[0].pubkey,basePubkey:new C(t),seed:a,programId:new C(o)}}static decodeCreateWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{base:t,seed:a,lamports:o,space:n,programId:s}=ge(xe.CreateWithSeed,e.data);return{fromPubkey:e.keys[0].pubkey,newAccountPubkey:e.keys[1].pubkey,basePubkey:new C(t),seed:a,lamports:o,space:n,programId:new C(s)}}static decodeNonceInitialize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{authorized:t}=ge(xe.InitializeNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,authorizedPubkey:new C(t)}}static decodeNonceAdvance(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),ge(xe.AdvanceNonceAccount,e.data),{noncePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}static decodeNonceWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);const{lamports:t}=ge(xe.WithdrawNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:t}}static decodeNonceAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{authorized:t}=ge(xe.AuthorizeNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[1].pubkey,newAuthorizedPubkey:new C(t)}}static checkProgramId(e){if(!e.equals(Re.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(e,t){if(e.length0?a:1,space:s.length,programId:n}));null!==i&&await ue(e,i,[t,o],{commitment:"confirmed"})}const r=d.struct([d.u32("instruction"),d.u32("offset"),d.u32("bytesLength"),d.u32("bytesLengthPadding"),d.seq(d.u8("byte"),d.offset(d.u32(),-8),"bytes")]),i=Ie.chunkSize;let c=0,l=s,m=[];for(;l.length>0;){const s=l.slice(0,i),d=a.Buffer.alloc(i+16);r.encode({instruction:0,offset:c,bytes:s,bytesLength:0,bytesLengthPadding:0},d);const u=(new ee).add({keys:[{pubkey:o.publicKey,isSigner:!0,isWritable:!0}],programId:n,data:d});if(m.push(ue(e,u,[t,o],{commitment:"confirmed"})),e._rpcEndpoint.includes("solana.com")){const e=4;await pe(1e3/e)}c+=i,l=l.slice(i)}await Promise.all(m);{const s=d.struct([d.u32("instruction")]),r=a.Buffer.alloc(s.span);s.encode({instruction:1},r);const i=(new ee).add({keys:[{pubkey:o.publicKey,isSigner:!0,isWritable:!0},{pubkey:ie,isSigner:!1,isWritable:!1}],programId:n,data:r});await ue(e,i,[t,o],{commitment:"confirmed"})}return!0}}Ie.chunkSize=Ae;const Se=new C("BPFLoader2111111111111111111111111111111111");class Ee{static getMinNumSignatures(e){return Ie.getMinNumSignatures(e)}static load(e,t,a,o,n){return Ie.load(e,t,a,n,o)}}var Te=Object.prototype.toString,Ce=Object.keys||function(e){var t=[];for(var a in e)t.push(a);return t};function Ue(e,t){var a,o,n,s,r,i,c;if(!0===e)return"true";if(!1===e)return"false";switch(typeof e){case"object":if(null===e)return null;if(e.toJSON&&"function"==typeof e.toJSON)return Ue(e.toJSON(),t);if("[object Array]"===(c=Te.call(e))){for(n="[",o=e.length-1,a=0;a-1&&(n+=Ue(e[a],!0)),n+"]"}if("[object Object]"===c){for(o=(s=Ce(e).sort()).length,n="",a=0;a1;)e/=2,t++;return t}class Ne{constructor(e,t,a,o,n){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=e,this.leaderScheduleSlotOffset=t,this.warmup=a,this.firstNormalEpoch=o,this.firstNormalSlot=n}getEpoch(e){return this.getEpochAndSlotIndex(e)[0]}getEpochAndSlotIndex(e){if(e>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,1+(t|=t>>32)))-De(32)-1;return[a,e-(this.getSlotsInEpoch(a)-32)]}{const t=e-this.firstNormalSlot,a=Math.floor(t/this.slotsPerEpoch);return[this.firstNormalEpoch+a,t%this.slotsPerEpoch]}var t}getFirstSlotInEpoch(e){return e<=this.firstNormalEpoch?32*(Math.pow(2,e)-1):(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}getSlotsInEpoch(e){return e=0,"lookup table is invalid"),H(a%32==0,"lookup table is invalid");const o=a/32,{addresses:n}=d.struct([d.seq(K(),o,"addresses")]).decode(e.slice(56));return{deactivationSlot:t.deactivationSlot,lastExtendedSlot:t.lastExtendedSlot,lastExtendedSlotStartIndex:t.lastExtendedStartIndex,authority:0!==t.authority.length?new C(t.authority[0]):void 0,addresses:n.map((e=>new C(e)))}}}const Ge={index:1,layout:d.struct([d.u32("typeIndex"),we("deactivationSlot"),d.nu64("lastExtendedSlot"),d.u8("lastExtendedStartIndex"),d.u8(),d.seq(K(),d.offset(d.u8(),-1),"authority")])},je=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;var qe;const We=(0,m.coerce)((0,m.instance)(C),(0,m.string)(),(e=>new C(e))),ze=(0,m.tuple)([(0,m.string)(),(0,m.literal)("base64")]),He=(0,m.coerce)((0,m.instance)(a.Buffer),ze,(e=>a.Buffer.from(e[0],"base64"))),_e=3e4;function Ve(e){let t,a;if("string"==typeof e)t=e;else if(e){const{commitment:o,...n}=e;t=o,a=n}return{commitment:t,config:a}}function Ye(e){return(0,m.union)([(0,m.type)({jsonrpc:(0,m.literal)("2.0"),id:(0,m.string)(),result:e}),(0,m.type)({jsonrpc:(0,m.literal)("2.0"),id:(0,m.string)(),error:(0,m.type)({code:(0,m.unknown)(),message:(0,m.string)(),data:(0,m.optional)((0,m.any)())})})])}const Je=Ye((0,m.unknown)());function Xe(e){return(0,m.coerce)(Ye(e),Je,(t=>"error"in t?t:{...t,result:(0,m.create)(t.result,e)}))}function Oe(e){return Xe((0,m.type)({context:(0,m.type)({slot:(0,m.number)()}),value:e}))}function Ze(e){return(0,m.type)({context:(0,m.type)({slot:(0,m.number)()}),value:e})}function Qe(e,t){return 0===e?new Y({header:t.header,staticAccountKeys:t.accountKeys.map((e=>new C(e))),recentBlockhash:t.recentBlockhash,compiledInstructions:t.instructions.map((e=>({programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:$parcel$interopDefault(r).decode(e.data)}))),addressTableLookups:t.addressTableLookups}):new V(t)}const et=(0,m.type)({foundation:(0,m.number)(),foundationTerm:(0,m.number)(),initial:(0,m.number)(),taper:(0,m.number)(),terminal:(0,m.number)()}),tt=Xe((0,m.array)((0,m.nullable)((0,m.type)({epoch:(0,m.number)(),effectiveSlot:(0,m.number)(),amount:(0,m.number)(),postBalance:(0,m.number)()})))),at=(0,m.type)({epoch:(0,m.number)(),slotIndex:(0,m.number)(),slotsInEpoch:(0,m.number)(),absoluteSlot:(0,m.number)(),blockHeight:(0,m.optional)((0,m.number)()),transactionCount:(0,m.optional)((0,m.number)())}),ot=(0,m.type)({slotsPerEpoch:(0,m.number)(),leaderScheduleSlotOffset:(0,m.number)(),warmup:(0,m.boolean)(),firstNormalEpoch:(0,m.number)(),firstNormalSlot:(0,m.number)()}),nt=(0,m.record)((0,m.string)(),(0,m.array)((0,m.number)())),st=(0,m.nullable)((0,m.union)([(0,m.type)({}),(0,m.string)()])),rt=(0,m.type)({err:st}),it=(0,m.literal)("receivedSignature"),ct=(0,m.type)({"solana-core":(0,m.string)(),"feature-set":(0,m.optional)((0,m.number)())}),dt=Oe((0,m.type)({err:(0,m.nullable)((0,m.union)([(0,m.type)({}),(0,m.string)()])),logs:(0,m.nullable)((0,m.array)((0,m.string)())),accounts:(0,m.optional)((0,m.nullable)((0,m.array)((0,m.nullable)((0,m.type)({executable:(0,m.boolean)(),owner:(0,m.string)(),lamports:(0,m.number)(),data:(0,m.array)((0,m.string)()),rentEpoch:(0,m.optional)((0,m.number)())}))))),unitsConsumed:(0,m.optional)((0,m.number)()),returnData:(0,m.optional)((0,m.nullable)((0,m.type)({programId:(0,m.string)(),data:(0,m.tuple)([(0,m.string)(),(0,m.literal)("base64")])})))})),lt=Oe((0,m.type)({byIdentity:(0,m.record)((0,m.string)(),(0,m.array)((0,m.number)())),range:(0,m.type)({firstSlot:(0,m.number)(),lastSlot:(0,m.number)()})}));const mt=Xe(et),ut=Xe(at),pt=Xe(ot),ht=Xe(nt),gt=Xe((0,m.number)()),bt=Oe((0,m.type)({total:(0,m.number)(),circulating:(0,m.number)(),nonCirculating:(0,m.number)(),nonCirculatingAccounts:(0,m.array)(We)})),ft=(0,m.type)({amount:(0,m.string)(),uiAmount:(0,m.nullable)((0,m.number)()),decimals:(0,m.number)(),uiAmountString:(0,m.optional)((0,m.string)())}),yt=Oe((0,m.array)((0,m.type)({address:We,amount:(0,m.string)(),uiAmount:(0,m.nullable)((0,m.number)()),decimals:(0,m.number)(),uiAmountString:(0,m.optional)((0,m.string)())}))),$t=Oe((0,m.array)((0,m.type)({pubkey:We,account:(0,m.type)({executable:(0,m.boolean)(),owner:We,lamports:(0,m.number)(),data:He,rentEpoch:(0,m.number)()})}))),wt=(0,m.type)({program:(0,m.string)(),parsed:(0,m.unknown)(),space:(0,m.number)()}),kt=Oe((0,m.array)((0,m.type)({pubkey:We,account:(0,m.type)({executable:(0,m.boolean)(),owner:We,lamports:(0,m.number)(),data:wt,rentEpoch:(0,m.number)()})}))),vt=Oe((0,m.array)((0,m.type)({lamports:(0,m.number)(),address:We}))),xt=(0,m.type)({executable:(0,m.boolean)(),owner:We,lamports:(0,m.number)(),data:He,rentEpoch:(0,m.number)()}),Rt=(0,m.type)({pubkey:We,account:xt}),At=(0,m.coerce)((0,m.union)([(0,m.instance)(a.Buffer),wt]),(0,m.union)([ze,wt]),(e=>Array.isArray(e)?(0,m.create)(e,He):e)),It=(0,m.type)({executable:(0,m.boolean)(),owner:We,lamports:(0,m.number)(),data:At,rentEpoch:(0,m.number)()}),St=(0,m.type)({pubkey:We,account:It}),Et=(0,m.type)({state:(0,m.union)([(0,m.literal)("active"),(0,m.literal)("inactive"),(0,m.literal)("activating"),(0,m.literal)("deactivating")]),active:(0,m.number)(),inactive:(0,m.number)()}),Tt=Xe((0,m.array)((0,m.type)({signature:(0,m.string)(),slot:(0,m.number)(),err:st,memo:(0,m.nullable)((0,m.string)()),blockTime:(0,m.optional)((0,m.nullable)((0,m.number)()))}))),Ct=Xe((0,m.array)((0,m.type)({signature:(0,m.string)(),slot:(0,m.number)(),err:st,memo:(0,m.nullable)((0,m.string)()),blockTime:(0,m.optional)((0,m.nullable)((0,m.number)()))}))),Ut=(0,m.type)({subscription:(0,m.number)(),result:Ze(xt)}),Mt=(0,m.type)({pubkey:We,account:xt}),Dt=(0,m.type)({subscription:(0,m.number)(),result:Ze(Mt)}),Nt=(0,m.type)({parent:(0,m.number)(),slot:(0,m.number)(),root:(0,m.number)()}),Pt=(0,m.type)({subscription:(0,m.number)(),result:Nt}),Bt=(0,m.union)([(0,m.type)({type:(0,m.union)([(0,m.literal)("firstShredReceived"),(0,m.literal)("completed"),(0,m.literal)("optimisticConfirmation"),(0,m.literal)("root")]),slot:(0,m.number)(),timestamp:(0,m.number)()}),(0,m.type)({type:(0,m.literal)("createdBank"),parent:(0,m.number)(),slot:(0,m.number)(),timestamp:(0,m.number)()}),(0,m.type)({type:(0,m.literal)("frozen"),slot:(0,m.number)(),timestamp:(0,m.number)(),stats:(0,m.type)({numTransactionEntries:(0,m.number)(),numSuccessfulTransactions:(0,m.number)(),numFailedTransactions:(0,m.number)(),maxTransactionsPerEntry:(0,m.number)()})}),(0,m.type)({type:(0,m.literal)("dead"),slot:(0,m.number)(),timestamp:(0,m.number)(),err:(0,m.string)()})]),Lt=(0,m.type)({subscription:(0,m.number)(),result:Bt}),Ft=(0,m.type)({subscription:(0,m.number)(),result:Ze((0,m.union)([rt,it]))}),Kt=(0,m.type)({subscription:(0,m.number)(),result:(0,m.number)()}),Gt=(0,m.type)({pubkey:(0,m.string)(),gossip:(0,m.nullable)((0,m.string)()),tpu:(0,m.nullable)((0,m.string)()),rpc:(0,m.nullable)((0,m.string)()),version:(0,m.nullable)((0,m.string)())}),jt=(0,m.type)({votePubkey:(0,m.string)(),nodePubkey:(0,m.string)(),activatedStake:(0,m.number)(),epochVoteAccount:(0,m.boolean)(),epochCredits:(0,m.array)((0,m.tuple)([(0,m.number)(),(0,m.number)(),(0,m.number)()])),commission:(0,m.number)(),lastVote:(0,m.number)(),rootSlot:(0,m.nullable)((0,m.number)())}),qt=Xe((0,m.type)({current:(0,m.array)(jt),delinquent:(0,m.array)(jt)})),Wt=(0,m.union)([(0,m.literal)("processed"),(0,m.literal)("confirmed"),(0,m.literal)("finalized")]),zt=(0,m.type)({slot:(0,m.number)(),confirmations:(0,m.nullable)((0,m.number)()),err:st,confirmationStatus:(0,m.optional)(Wt)}),Ht=Oe((0,m.array)((0,m.nullable)(zt))),_t=Xe((0,m.number)()),Vt=(0,m.type)({accountKey:We,writableIndexes:(0,m.array)((0,m.number)()),readonlyIndexes:(0,m.array)((0,m.number)())}),Yt=(0,m.type)({signatures:(0,m.array)((0,m.string)()),message:(0,m.type)({accountKeys:(0,m.array)((0,m.string)()),header:(0,m.type)({numRequiredSignatures:(0,m.number)(),numReadonlySignedAccounts:(0,m.number)(),numReadonlyUnsignedAccounts:(0,m.number)()}),instructions:(0,m.array)((0,m.type)({accounts:(0,m.array)((0,m.number)()),data:(0,m.string)(),programIdIndex:(0,m.number)()})),recentBlockhash:(0,m.string)(),addressTableLookups:(0,m.optional)((0,m.array)(Vt))})}),Jt=(0,m.type)({parsed:(0,m.unknown)(),program:(0,m.string)(),programId:We}),Xt=(0,m.type)({accounts:(0,m.array)(We),data:(0,m.string)(),programId:We}),Ot=(0,m.union)([Xt,Jt]),Zt=(0,m.union)([(0,m.type)({parsed:(0,m.unknown)(),program:(0,m.string)(),programId:(0,m.string)()}),(0,m.type)({accounts:(0,m.array)((0,m.string)()),data:(0,m.string)(),programId:(0,m.string)()})]),Qt=(0,m.coerce)(Ot,Zt,(e=>"accounts"in e?(0,m.create)(e,Xt):(0,m.create)(e,Jt))),ea=(0,m.type)({signatures:(0,m.array)((0,m.string)()),message:(0,m.type)({accountKeys:(0,m.array)((0,m.type)({pubkey:We,signer:(0,m.boolean)(),writable:(0,m.boolean)(),source:(0,m.optional)((0,m.union)([(0,m.literal)("transaction"),(0,m.literal)("lookupTable")]))})),instructions:(0,m.array)(Qt),recentBlockhash:(0,m.string)(),addressTableLookups:(0,m.optional)((0,m.nullable)((0,m.array)(Vt)))})}),ta=(0,m.type)({accountIndex:(0,m.number)(),mint:(0,m.string)(),owner:(0,m.optional)((0,m.string)()),uiTokenAmount:ft}),aa=(0,m.type)({writable:(0,m.array)(We),readonly:(0,m.array)(We)}),oa=(0,m.type)({err:st,fee:(0,m.number)(),innerInstructions:(0,m.optional)((0,m.nullable)((0,m.array)((0,m.type)({index:(0,m.number)(),instructions:(0,m.array)((0,m.type)({accounts:(0,m.array)((0,m.number)()),data:(0,m.string)(),programIdIndex:(0,m.number)()}))})))),preBalances:(0,m.array)((0,m.number)()),postBalances:(0,m.array)((0,m.number)()),logMessages:(0,m.optional)((0,m.nullable)((0,m.array)((0,m.string)()))),preTokenBalances:(0,m.optional)((0,m.nullable)((0,m.array)(ta))),postTokenBalances:(0,m.optional)((0,m.nullable)((0,m.array)(ta))),loadedAddresses:(0,m.optional)(aa),computeUnitsConsumed:(0,m.optional)((0,m.number)())}),na=(0,m.type)({err:st,fee:(0,m.number)(),innerInstructions:(0,m.optional)((0,m.nullable)((0,m.array)((0,m.type)({index:(0,m.number)(),instructions:(0,m.array)(Qt)})))),preBalances:(0,m.array)((0,m.number)()),postBalances:(0,m.array)((0,m.number)()),logMessages:(0,m.optional)((0,m.nullable)((0,m.array)((0,m.string)()))),preTokenBalances:(0,m.optional)((0,m.nullable)((0,m.array)(ta))),postTokenBalances:(0,m.optional)((0,m.nullable)((0,m.array)(ta))),loadedAddresses:(0,m.optional)(aa),computeUnitsConsumed:(0,m.optional)((0,m.number)())}),sa=(0,m.union)([(0,m.literal)(0),(0,m.literal)("legacy")]),ra=Xe((0,m.nullable)((0,m.type)({blockhash:(0,m.string)(),previousBlockhash:(0,m.string)(),parentSlot:(0,m.number)(),transactions:(0,m.array)((0,m.type)({transaction:Yt,meta:(0,m.nullable)(oa),version:(0,m.optional)(sa)})),rewards:(0,m.optional)((0,m.array)((0,m.type)({pubkey:(0,m.string)(),lamports:(0,m.number)(),postBalance:(0,m.nullable)((0,m.number)()),rewardType:(0,m.nullable)((0,m.string)())}))),blockTime:(0,m.nullable)((0,m.number)()),blockHeight:(0,m.nullable)((0,m.number)())}))),ia=Xe((0,m.nullable)((0,m.type)({blockhash:(0,m.string)(),previousBlockhash:(0,m.string)(),parentSlot:(0,m.number)(),transactions:(0,m.array)((0,m.type)({transaction:Yt,meta:(0,m.nullable)(oa)})),rewards:(0,m.optional)((0,m.array)((0,m.type)({pubkey:(0,m.string)(),lamports:(0,m.number)(),postBalance:(0,m.nullable)((0,m.number)()),rewardType:(0,m.nullable)((0,m.string)())}))),blockTime:(0,m.nullable)((0,m.number)())}))),ca=Xe((0,m.nullable)((0,m.type)({blockhash:(0,m.string)(),previousBlockhash:(0,m.string)(),parentSlot:(0,m.number)(),signatures:(0,m.array)((0,m.string)()),blockTime:(0,m.nullable)((0,m.number)())}))),da=Xe((0,m.nullable)((0,m.type)({slot:(0,m.number)(),meta:oa,blockTime:(0,m.optional)((0,m.nullable)((0,m.number)())),transaction:Yt,version:(0,m.optional)(sa)}))),la=Xe((0,m.nullable)((0,m.type)({slot:(0,m.number)(),transaction:ea,meta:(0,m.nullable)(na),blockTime:(0,m.optional)((0,m.nullable)((0,m.number)())),version:(0,m.optional)(sa)}))),ma=Oe((0,m.type)({blockhash:(0,m.string)(),feeCalculator:(0,m.type)({lamportsPerSignature:(0,m.number)()})})),ua=Oe((0,m.type)({blockhash:(0,m.string)(),lastValidBlockHeight:(0,m.number)()})),pa=(0,m.type)({slot:(0,m.number)(),numTransactions:(0,m.number)(),numSlots:(0,m.number)(),samplePeriodSecs:(0,m.number)()}),ha=Xe((0,m.array)(pa)),ga=Oe((0,m.nullable)((0,m.type)({feeCalculator:(0,m.type)({lamportsPerSignature:(0,m.number)()})}))),ba=Xe((0,m.string)()),fa=Xe((0,m.string)()),ya=(0,m.type)({err:st,logs:(0,m.array)((0,m.string)()),signature:(0,m.string)()}),$a=(0,m.type)({result:Ze(ya),subscription:(0,m.number)()}),wa={"solana-client":`js/${qe="0.0.0-development",qe}`};class ka{constructor(e,t){let a,o,n,s,r;var i;this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,t&&"string"==typeof t?this._commitment=t:t&&(this._commitment=t.commitment,this._confirmTransactionInitialTimeout=t.confirmTransactionInitialTimeout,a=t.wsEndpoint,o=t.httpHeaders,n=t.fetch,s=t.fetchMiddleware,r=t.disableRetryOnRateLimit),this._rpcEndpoint=function(e){if(!1===/^https?:/.test(e))throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return e}(e),this._rpcWsEndpoint=a||function(e){const t=e.match(je);if(null==t)throw TypeError(`Failed to validate endpoint URL \`${e}\``);const[a,o,n,s]=t,r=e.startsWith("https:")?"wss:":"ws:",i=null==n?null:parseInt(n.slice(1),10);return`${r}//${o}${null==i?"":`:${i+1}`}${s}`}(e),this._rpcClient=function(e,t,a,o,n){const s=a||Fe;let r;return o&&(r=async(e,t)=>{const a=await new Promise(((a,n)=>{try{o(e,t,((e,t)=>a([e,t])))}catch(e){n(e)}}));return await s(...a)}),new($parcel$interopDefault(p))((async(a,o)=>{const i={method:"POST",body:a,agent:void 0,headers:Object.assign({"Content-Type":"application/json"},t||{},wa)};try{let t,a=5,c=500;for(;t=r?await r(e,i):await s(e,i),429===t.status&&!0!==n&&(a-=1,0!==a);)console.log(`Server responded with ${t.status} ${t.statusText}. Retrying after ${c}ms delay...`),await pe(c),c*=2;const d=await t.text();t.ok?o(null,d):o(new Error(`${t.status} ${t.statusText}: ${d}`))}catch(e){e instanceof Error&&o(e)}}),{})}(e,o,n,s,r),this._rpcRequest=(i=this._rpcClient,(e,t)=>new Promise(((a,o)=>{i.request(e,t,((e,t)=>{e?o(e):a(t)}))}))),this._rpcBatchRequest=function(e){return t=>new Promise(((a,o)=>{0===t.length&&a([]);const n=t.map((t=>e.request(t.methodName,t.args)));e.request(n,((e,t)=>{e?o(e):a(t)}))}))}(this._rpcClient),this._rpcWebSocket=new(0,u.Client)(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(e,t){const{commitment:a,config:o}=Ve(t),n=this._buildArgs([e.toBase58()],a,void 0,o),s=await this._rpcRequest("getBalance",n),r=(0,m.create)(s,Oe((0,m.number)()));if("error"in r)throw new Le(r.error,`failed to get balance for ${e.toBase58()}`);return r.result}async getBalance(e,t){return await this.getBalanceAndContext(e,t).then((e=>e.value)).catch((t=>{throw new Error("failed to get balance of account "+e.toBase58()+": "+t)}))}async getBlockTime(e){const t=await this._rpcRequest("getBlockTime",[e]),a=(0,m.create)(t,Xe((0,m.nullable)((0,m.number)())));if("error"in a)throw new Le(a.error,`failed to get block time for slot ${e}`);return a.result}async getMinimumLedgerSlot(){const e=await this._rpcRequest("minimumLedgerSlot",[]),t=(0,m.create)(e,Xe((0,m.number)()));if("error"in t)throw new Le(t.error,"failed to get minimum ledger slot");return t.result}async getFirstAvailableBlock(){const e=await this._rpcRequest("getFirstAvailableBlock",[]),t=(0,m.create)(e,gt);if("error"in t)throw new Le(t.error,"failed to get first available block");return t.result}async getSupply(e){let t={};t="string"==typeof e?{commitment:e}:e?{...e,commitment:e&&e.commitment||this.commitment}:{commitment:this.commitment};const a=await this._rpcRequest("getSupply",[t]),o=(0,m.create)(a,bt);if("error"in o)throw new Le(o.error,"failed to get supply");return o.result}async getTokenSupply(e,t){const a=this._buildArgs([e.toBase58()],t),o=await this._rpcRequest("getTokenSupply",a),n=(0,m.create)(o,Oe(ft));if("error"in n)throw new Le(n.error,"failed to get token supply");return n.result}async getTokenAccountBalance(e,t){const a=this._buildArgs([e.toBase58()],t),o=await this._rpcRequest("getTokenAccountBalance",a),n=(0,m.create)(o,Oe(ft));if("error"in n)throw new Le(n.error,"failed to get token account balance");return n.result}async getTokenAccountsByOwner(e,t,a){const{commitment:o,config:n}=Ve(a);let s=[e.toBase58()];"mint"in t?s.push({mint:t.mint.toBase58()}):s.push({programId:t.programId.toBase58()});const r=this._buildArgs(s,o,"base64",n),i=await this._rpcRequest("getTokenAccountsByOwner",r),c=(0,m.create)(i,$t);if("error"in c)throw new Le(c.error,`failed to get token accounts owned by account ${e.toBase58()}`);return c.result}async getParsedTokenAccountsByOwner(e,t,a){let o=[e.toBase58()];"mint"in t?o.push({mint:t.mint.toBase58()}):o.push({programId:t.programId.toBase58()});const n=this._buildArgs(o,a,"jsonParsed"),s=await this._rpcRequest("getTokenAccountsByOwner",n),r=(0,m.create)(s,kt);if("error"in r)throw new Le(r.error,`failed to get token accounts owned by account ${e.toBase58()}`);return r.result}async getLargestAccounts(e){const t={...e,commitment:e&&e.commitment||this.commitment},a=t.filter||t.commitment?[t]:[],o=await this._rpcRequest("getLargestAccounts",a),n=(0,m.create)(o,vt);if("error"in n)throw new Le(n.error,"failed to get largest accounts");return n.result}async getTokenLargestAccounts(e,t){const a=this._buildArgs([e.toBase58()],t),o=await this._rpcRequest("getTokenLargestAccounts",a),n=(0,m.create)(o,yt);if("error"in n)throw new Le(n.error,"failed to get token largest accounts");return n.result}async getAccountInfoAndContext(e,t){const{commitment:a,config:o}=Ve(t),n=this._buildArgs([e.toBase58()],a,"base64",o),s=await this._rpcRequest("getAccountInfo",n),r=(0,m.create)(s,Oe((0,m.nullable)(xt)));if("error"in r)throw new Le(r.error,`failed to get info about account ${e.toBase58()}`);return r.result}async getParsedAccountInfo(e,t){const{commitment:a,config:o}=Ve(t),n=this._buildArgs([e.toBase58()],a,"jsonParsed",o),s=await this._rpcRequest("getAccountInfo",n),r=(0,m.create)(s,Oe((0,m.nullable)(It)));if("error"in r)throw new Le(r.error,`failed to get info about account ${e.toBase58()}`);return r.result}async getAccountInfo(e,t){try{return(await this.getAccountInfoAndContext(e,t)).value}catch(t){throw new Error("failed to get info about account "+e.toBase58()+": "+t)}}async getMultipleAccountsInfoAndContext(e,t){const{commitment:a,config:o}=Ve(t),n=e.map((e=>e.toBase58())),s=this._buildArgs([n],a,"base64",o),r=await this._rpcRequest("getMultipleAccounts",s),i=(0,m.create)(r,Oe((0,m.array)((0,m.nullable)(xt))));if("error"in i)throw new Le(i.error,`failed to get info for accounts ${n}`);return i.result}async getMultipleAccountsInfo(e,t){return(await this.getMultipleAccountsInfoAndContext(e,t)).value}async getStakeActivation(e,t,a){const{commitment:o,config:n}=Ve(t),s=this._buildArgs([e.toBase58()],o,void 0,{...n,epoch:null!=a?a:null==n?void 0:n.epoch}),r=await this._rpcRequest("getStakeActivation",s),i=(0,m.create)(r,Xe(Et));if("error"in i)throw new Le(i.error,`failed to get Stake Activation ${e.toBase58()}`);return i.result}async getProgramAccounts(e,t){const{commitment:a,config:o}=Ve(t),{encoding:n,...s}=o||{},r=this._buildArgs([e.toBase58()],a,n||"base64",s),i=await this._rpcRequest("getProgramAccounts",r),c=(0,m.create)(i,Xe((0,m.array)(Rt)));if("error"in c)throw new Le(c.error,`failed to get accounts owned by program ${e.toBase58()}`);return c.result}async getParsedProgramAccounts(e,t){const{commitment:a,config:o}=Ve(t),n=this._buildArgs([e.toBase58()],a,"jsonParsed",o),s=await this._rpcRequest("getProgramAccounts",n),r=(0,m.create)(s,Xe((0,m.array)(St)));if("error"in r)throw new Le(r.error,`failed to get accounts owned by program ${e.toBase58()}`);return r.result}async confirmTransaction(e,t){let a,o;if("string"==typeof e)a=e;else{a=e.signature}try{o=$parcel$interopDefault(r).decode(a)}catch(e){throw new Error("signature must be base58 encoded: "+a)}H(64===o.length,"signature has invalid length");const n=t||this.commitment;let s,i,c=!1;const d=new Promise(((e,t)=>{try{i=this.onSignature(a,((t,a)=>{i=void 0;const o={context:a,value:t};c=!0,e({__type:X.PROCESSED,response:o})}),n)}catch(e){t(e)}})),l=new Promise((a=>{if("string"==typeof e){let e=this._confirmTransactionInitialTimeout||6e4;switch(n){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":e=this._confirmTransactionInitialTimeout||3e4}s=setTimeout((()=>a({__type:X.TIMED_OUT,timeoutMs:e})),e)}else{let o=e;const n=async()=>{try{return await this.getBlockHeight(t)}catch(e){return-1}};(async()=>{let e=await n();if(!c){for(;e<=o.lastValidBlockHeight;){if(await pe(1e3),c)return;if(e=await n(),c)return}a({__type:X.BLOCKHEIGHT_EXCEEDED})}})()}}));let m;try{const e=await Promise.race([d,l]);switch(e.__type){case X.BLOCKHEIGHT_EXCEEDED:throw new B(a);case X.PROCESSED:m=e.response;break;case X.TIMED_OUT:throw new L(a,e.timeoutMs/1e3)}}finally{clearTimeout(s),i&&this.removeSignatureListener(i)}return m}async getClusterNodes(){const e=await this._rpcRequest("getClusterNodes",[]),t=(0,m.create)(e,Xe((0,m.array)(Gt)));if("error"in t)throw new Le(t.error,"failed to get cluster nodes");return t.result}async getVoteAccounts(e){const t=this._buildArgs([],e),a=await this._rpcRequest("getVoteAccounts",t),o=(0,m.create)(a,qt);if("error"in o)throw new Le(o.error,"failed to get vote accounts");return o.result}async getSlot(e){const{commitment:t,config:a}=Ve(e),o=this._buildArgs([],t,void 0,a),n=await this._rpcRequest("getSlot",o),s=(0,m.create)(n,Xe((0,m.number)()));if("error"in s)throw new Le(s.error,"failed to get slot");return s.result}async getSlotLeader(e){const{commitment:t,config:a}=Ve(e),o=this._buildArgs([],t,void 0,a),n=await this._rpcRequest("getSlotLeader",o),s=(0,m.create)(n,Xe((0,m.string)()));if("error"in s)throw new Le(s.error,"failed to get slot leader");return s.result}async getSlotLeaders(e,t){const a=[e,t],o=await this._rpcRequest("getSlotLeaders",a),n=(0,m.create)(o,Xe((0,m.array)(We)));if("error"in n)throw new Le(n.error,"failed to get slot leaders");return n.result}async getSignatureStatus(e,t){const{context:a,value:o}=await this.getSignatureStatuses([e],t);H(1===o.length);return{context:a,value:o[0]}}async getSignatureStatuses(e,t){const a=[e];t&&a.push(t);const o=await this._rpcRequest("getSignatureStatuses",a),n=(0,m.create)(o,Ht);if("error"in n)throw new Le(n.error,"failed to get signature status");return n.result}async getTransactionCount(e){const{commitment:t,config:a}=Ve(e),o=this._buildArgs([],t,void 0,a),n=await this._rpcRequest("getTransactionCount",o),s=(0,m.create)(n,Xe((0,m.number)()));if("error"in s)throw new Le(s.error,"failed to get transaction count");return s.result}async getTotalSupply(e){return(await this.getSupply({commitment:e,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(e){const t=this._buildArgs([],e),a=await this._rpcRequest("getInflationGovernor",t),o=(0,m.create)(a,mt);if("error"in o)throw new Le(o.error,"failed to get inflation");return o.result}async getInflationReward(e,t,a){const{commitment:o,config:n}=Ve(a),s=this._buildArgs([e.map((e=>e.toBase58()))],o,void 0,{...n,epoch:null!=t?t:null==n?void 0:n.epoch}),r=await this._rpcRequest("getInflationReward",s),i=(0,m.create)(r,tt);if("error"in i)throw new Le(i.error,"failed to get inflation reward");return i.result}async getEpochInfo(e){const{commitment:t,config:a}=Ve(e),o=this._buildArgs([],t,void 0,a),n=await this._rpcRequest("getEpochInfo",o),s=(0,m.create)(n,ut);if("error"in s)throw new Le(s.error,"failed to get epoch info");return s.result}async getEpochSchedule(){const e=await this._rpcRequest("getEpochSchedule",[]),t=(0,m.create)(e,pt);if("error"in t)throw new Le(t.error,"failed to get epoch schedule");const a=t.result;return new Ne(a.slotsPerEpoch,a.leaderScheduleSlotOffset,a.warmup,a.firstNormalEpoch,a.firstNormalSlot)}async getLeaderSchedule(){const e=await this._rpcRequest("getLeaderSchedule",[]),t=(0,m.create)(e,ht);if("error"in t)throw new Le(t.error,"failed to get leader schedule");return t.result}async getMinimumBalanceForRentExemption(e,t){const a=this._buildArgs([e],t),o=await this._rpcRequest("getMinimumBalanceForRentExemption",a),n=(0,m.create)(o,_t);return"error"in n?(console.warn("Unable to fetch minimum balance for rent exemption"),0):n.result}async getRecentBlockhashAndContext(e){const t=this._buildArgs([],e),a=await this._rpcRequest("getRecentBlockhash",t),o=(0,m.create)(a,ma);if("error"in o)throw new Le(o.error,"failed to get recent blockhash");return o.result}async getRecentPerformanceSamples(e){const t=await this._rpcRequest("getRecentPerformanceSamples",e?[e]:[]),a=(0,m.create)(t,ha);if("error"in a)throw new Le(a.error,"failed to get recent performance samples");return a.result}async getFeeCalculatorForBlockhash(e,t){const a=this._buildArgs([e],t),o=await this._rpcRequest("getFeeCalculatorForBlockhash",a),n=(0,m.create)(o,ga);if("error"in n)throw new Le(n.error,"failed to get fee calculator");const{context:s,value:r}=n.result;return{context:s,value:null!==r?r.feeCalculator:null}}async getFeeForMessage(e,t){const a=e.serialize().toString("base64"),o=this._buildArgs([a],t),n=await this._rpcRequest("getFeeForMessage",o),s=(0,m.create)(n,Oe((0,m.nullable)((0,m.number)())));if("error"in s)throw new Le(s.error,"failed to get slot");if(null===s.result)throw new Error("invalid blockhash");return s.result}async getRecentBlockhash(e){try{return(await this.getRecentBlockhashAndContext(e)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhash(e){try{return(await this.getLatestBlockhashAndContext(e)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhashAndContext(e){const{commitment:t,config:a}=Ve(e),o=this._buildArgs([],t,void 0,a),n=await this._rpcRequest("getLatestBlockhash",o),s=(0,m.create)(n,ua);if("error"in s)throw new Le(s.error,"failed to get latest blockhash");return s.result}async getVersion(){const e=await this._rpcRequest("getVersion",[]),t=(0,m.create)(e,Xe(ct));if("error"in t)throw new Le(t.error,"failed to get version");return t.result}async getGenesisHash(){const e=await this._rpcRequest("getGenesisHash",[]),t=(0,m.create)(e,Xe((0,m.string)()));if("error"in t)throw new Le(t.error,"failed to get genesis hash");return t.result}async getBlock(e,t){const{commitment:a,config:o}=Ve(t),n=this._buildArgsAtLeastConfirmed([e],a,void 0,o),s=await this._rpcRequest("getBlock",n),r=(0,m.create)(s,ra);if("error"in r)throw new Le(r.error,"failed to get confirmed block");const i=r.result;return i?{...i,transactions:i.transactions.map((({transaction:e,meta:t,version:a})=>({meta:t,transaction:{...e,message:Qe(a,e.message)},version:a})))}:i}async getBlockHeight(e){const{commitment:t,config:a}=Ve(e),o=this._buildArgs([],t,void 0,a),n=await this._rpcRequest("getBlockHeight",o),s=(0,m.create)(n,Xe((0,m.number)()));if("error"in s)throw new Le(s.error,"failed to get block height information");return s.result}async getBlockProduction(e){let t,a;if("string"==typeof e)a=e;else if(e){const{commitment:o,...n}=e;a=o,t=n}const o=this._buildArgs([],a,"base64",t),n=await this._rpcRequest("getBlockProduction",o),s=(0,m.create)(n,lt);if("error"in s)throw new Le(s.error,"failed to get block production information");return s.result}async getTransaction(e,t){const{commitment:a,config:o}=Ve(t),n=this._buildArgsAtLeastConfirmed([e],a,void 0,o),s=await this._rpcRequest("getTransaction",n),r=(0,m.create)(s,da);if("error"in r)throw new Le(r.error,"failed to get transaction");const i=r.result;return i?{...i,transaction:{...i.transaction,message:Qe(i.version,i.transaction.message)}}:i}async getParsedTransaction(e,t){const{commitment:a,config:o}=Ve(t),n=this._buildArgsAtLeastConfirmed([e],a,"jsonParsed",o),s=await this._rpcRequest("getTransaction",n),r=(0,m.create)(s,la);if("error"in r)throw new Le(r.error,"failed to get transaction");return r.result}async getParsedTransactions(e,t){const{commitment:a,config:o}=Ve(t),n=e.map((e=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([e],a,"jsonParsed",o)})));return(await this._rpcBatchRequest(n)).map((e=>{const t=(0,m.create)(e,la);if("error"in t)throw new Le(t.error,"failed to get transactions");return t.result}))}async getTransactions(e,t){const{commitment:a,config:o}=Ve(t),n=e.map((e=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([e],a,void 0,o)})));return(await this._rpcBatchRequest(n)).map((e=>{const t=(0,m.create)(e,da);if("error"in t)throw new Le(t.error,"failed to get transactions");const a=t.result;return a?{...a,transaction:{...a.transaction,message:Qe(a.version,a.transaction.message)}}:a}))}async getConfirmedBlock(e,t){const a=this._buildArgsAtLeastConfirmed([e],t),o=await this._rpcRequest("getConfirmedBlock",a),n=(0,m.create)(o,ia);if("error"in n)throw new Le(n.error,"failed to get confirmed block");const s=n.result;if(!s)throw new Error("Confirmed block "+e+" not found");const r={...s,transactions:s.transactions.map((({transaction:e,meta:t})=>{const a=new V(e.message);return{meta:t,transaction:{...e,message:a}}}))};return{...r,transactions:r.transactions.map((({transaction:e,meta:t})=>({meta:t,transaction:ee.populate(e.message,e.signatures)})))}}async getBlocks(e,t,a){const o=this._buildArgsAtLeastConfirmed(void 0!==t?[e,t]:[e],a),n=await this._rpcRequest("getBlocks",o),s=(0,m.create)(n,Xe((0,m.array)((0,m.number)())));if("error"in s)throw new Le(s.error,"failed to get blocks");return s.result}async getBlockSignatures(e,t){const a=this._buildArgsAtLeastConfirmed([e],t,void 0,{transactionDetails:"signatures",rewards:!1}),o=await this._rpcRequest("getBlock",a),n=(0,m.create)(o,ca);if("error"in n)throw new Le(n.error,"failed to get block");const s=n.result;if(!s)throw new Error("Block "+e+" not found");return s}async getConfirmedBlockSignatures(e,t){const a=this._buildArgsAtLeastConfirmed([e],t,void 0,{transactionDetails:"signatures",rewards:!1}),o=await this._rpcRequest("getConfirmedBlock",a),n=(0,m.create)(o,ca);if("error"in n)throw new Le(n.error,"failed to get confirmed block");const s=n.result;if(!s)throw new Error("Confirmed block "+e+" not found");return s}async getConfirmedTransaction(e,t){const a=this._buildArgsAtLeastConfirmed([e],t),o=await this._rpcRequest("getConfirmedTransaction",a),n=(0,m.create)(o,da);if("error"in n)throw new Le(n.error,"failed to get transaction");const s=n.result;if(!s)return s;const r=new V(s.transaction.message),i=s.transaction.signatures;return{...s,transaction:ee.populate(r,i)}}async getParsedConfirmedTransaction(e,t){const a=this._buildArgsAtLeastConfirmed([e],t,"jsonParsed"),o=await this._rpcRequest("getConfirmedTransaction",a),n=(0,m.create)(o,la);if("error"in n)throw new Le(n.error,"failed to get confirmed transaction");return n.result}async getParsedConfirmedTransactions(e,t){const a=e.map((e=>({methodName:"getConfirmedTransaction",args:this._buildArgsAtLeastConfirmed([e],t,"jsonParsed")})));return(await this._rpcBatchRequest(a)).map((e=>{const t=(0,m.create)(e,la);if("error"in t)throw new Le(t.error,"failed to get confirmed transactions");return t.result}))}async getConfirmedSignaturesForAddress(e,t,a){let o={},n=await this.getFirstAvailableBlock();for(;!("until"in o)&&!(--t<=0||t0&&(o.until=e.signatures[e.signatures.length-1].toString())}catch(e){if(e instanceof Error&&e.message.includes("skipped"))continue;throw e}let s=await this.getSlot("finalized");for(;!("before"in o||++a>s);)try{const e=await this.getConfirmedBlockSignatures(a);e.signatures.length>0&&(o.before=e.signatures[e.signatures.length-1].toString())}catch(e){if(e instanceof Error&&e.message.includes("skipped"))continue;throw e}return(await this.getConfirmedSignaturesForAddress2(e,o)).map((e=>e.signature))}async getConfirmedSignaturesForAddress2(e,t,a){const o=this._buildArgsAtLeastConfirmed([e.toBase58()],a,void 0,t),n=await this._rpcRequest("getConfirmedSignaturesForAddress2",o),s=(0,m.create)(n,Tt);if("error"in s)throw new Le(s.error,"failed to get confirmed signatures for address");return s.result}async getSignaturesForAddress(e,t,a){const o=this._buildArgsAtLeastConfirmed([e.toBase58()],a,void 0,t),n=await this._rpcRequest("getSignaturesForAddress",o),s=(0,m.create)(n,Ct);if("error"in s)throw new Le(s.error,"failed to get signatures for address");return s.result}async getAddressLookupTable(e,t){const{context:a,value:o}=await this.getAccountInfoAndContext(e,t);let n=null;return null!==o&&(n=new Ke({key:e,state:Ke.deserialize(o.data)})),{context:a,value:n}}async getNonceAndContext(e,t){const{context:a,value:o}=await this.getAccountInfoAndContext(e,t);let n=null;return null!==o&&(n=$e.fromAccountData(o.data)),{context:a,value:n}}async getNonce(e,t){return await this.getNonceAndContext(e,t).then((e=>e.value)).catch((t=>{throw new Error("failed to get nonce for account "+e.toBase58()+": "+t)}))}async requestAirdrop(e,t){const a=await this._rpcRequest("requestAirdrop",[e.toBase58(),t]),o=(0,m.create)(a,ba);if("error"in o)throw new Le(o.error,`airdrop to ${e.toBase58()} failed`);return o.result}async _blockhashWithExpiryBlockHeight(e){if(!e){for(;this._pollingBlockhash;)await pe(100);const e=Date.now()-this._blockhashInfo.lastFetch>=_e;if(null!==this._blockhashInfo.latestBlockhash&&!e)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const e=Date.now(),t=this._blockhashInfo.latestBlockhash,a=t?t.blockhash:null;for(let e=0;e<50;e++){const e=await this.getLatestBlockhash("finalized");if(a!==e.blockhash)return this._blockhashInfo={latestBlockhash:e,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},e;await pe(200)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-e}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(e){const{commitment:t,config:a}=Ve(e),o=this._buildArgs([],t,"base64",a),n=await this._rpcRequest("getStakeMinimumDelegation",o),s=(0,m.create)(n,Oe((0,m.number)()));if("error"in s)throw new Le(s.error,"failed to get stake minimum delegation");return s.result}async simulateTransaction(e,t,o){if("message"in e){const n=e.serialize(),s=a.Buffer.from(n).toString("base64");if(Array.isArray(t)||void 0!==o)throw new Error("Invalid arguments");const r=t||{};r.encoding="base64","commitment"in r||(r.commitment=this.commitment);const i=[s,r],c=await this._rpcRequest("simulateTransaction",i),d=(0,m.create)(c,dt);if("error"in d)throw new Error("failed to simulate transaction: "+d.error.message);return d.result}let n;if(e instanceof ee){let t=e;n=new ee,n.feePayer=t.feePayer,n.instructions=e.instructions,n.nonceInfo=t.nonceInfo,n.signatures=t.signatures}else n=ee.populate(e),n._message=n._json=void 0;if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid arguments");const s=t;if(n.nonceInfo&&s)n.sign(...s);else{let e=this._disableBlockhashCaching;for(;;){const t=await this._blockhashWithExpiryBlockHeight(e);if(n.lastValidBlockHeight=t.lastValidBlockHeight,n.recentBlockhash=t.blockhash,!s)break;if(n.sign(...s),!n.signature)throw new Error("!signature");const a=n.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(a)&&!this._blockhashInfo.transactionSignatures.includes(a)){this._blockhashInfo.simulatedSignatures.push(a);break}e=!0}}const r=n._compile(),i=r.serialize(),c=n._serialize(i).toString("base64"),d={encoding:"base64",commitment:this.commitment};if(o){const e=(Array.isArray(o)?o:r.nonProgramIds()).map((e=>e.toBase58()));d.accounts={encoding:"base64",addresses:e}}s&&(d.sigVerify=!0);const l=[c,d],u=await this._rpcRequest("simulateTransaction",l),p=(0,m.create)(u,dt);if("error"in p){let e;if("data"in p.error&&(e=p.error.data.logs,e&&Array.isArray(e))){const t="\n ",a=t+e.join(t);console.error(p.error.message,a)}throw new Pe("failed to simulate transaction: "+p.error.message,e)}return p.result}async sendTransaction(e,t,a){if("version"in e){if(t&&Array.isArray(t))throw new Error("Invalid arguments");const o=e.serialize();return await this.sendRawTransaction(o,a)}if(void 0===t||!Array.isArray(t))throw new Error("Invalid arguments");const o=t;if(e.nonceInfo)e.sign(...o);else{let t=this._disableBlockhashCaching;for(;;){const a=await this._blockhashWithExpiryBlockHeight(t);if(e.lastValidBlockHeight=a.lastValidBlockHeight,e.recentBlockhash=a.blockhash,e.sign(...o),!e.signature)throw new Error("!signature");const n=e.signature.toString("base64");if(!this._blockhashInfo.transactionSignatures.includes(n)){this._blockhashInfo.transactionSignatures.push(n);break}t=!0}}const n=e.serialize();return await this.sendRawTransaction(n,a)}async sendRawTransaction(e,t){const a=x(e).toString("base64");return await this.sendEncodedTransaction(a,t)}async sendEncodedTransaction(e,t){const a={encoding:"base64"},o=t&&t.skipPreflight,n=t&&t.preflightCommitment||this.commitment;t&&null!=t.maxRetries&&(a.maxRetries=t.maxRetries),t&&null!=t.minContextSlot&&(a.minContextSlot=t.minContextSlot),o&&(a.skipPreflight=o),n&&(a.preflightCommitment=n);const s=[e,a],r=await this._rpcRequest("sendTransaction",s),i=(0,m.create)(r,fa);if("error"in i){let e;throw"data"in i.error&&(e=i.error.data.logs),new Pe("failed to send transaction: "+i.error.message,e)}return i.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((()=>{this._rpcWebSocket.notify("ping").catch((()=>{}))}),5e3),this._updateSubscriptions()}_wsOnError(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}_wsOnClose(e){this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration++,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==e?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((([e,t])=>{this._subscriptionsByHash[e]={...t,state:"pending"}}))):this._updateSubscriptions()}async _updateSubscriptions(){if(0===Object.keys(this._subscriptionsByHash).length)return void(this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(e){e instanceof Error&&console.log(`Error when closing socket connection: ${e.message}`)}}),500)));if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected)return void this._rpcWebSocket.connect();const e=this._rpcWebSocketGeneration,t=()=>e===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map((async e=>{const a=this._subscriptionsByHash[e];if(void 0!==a)switch(a.state){case"pending":case"unsubscribed":if(0===a.callbacks.size)return delete this._subscriptionsByHash[e],"unsubscribed"===a.state&&delete this._subscriptionCallbacksByServerSubscriptionId[a.serverSubscriptionId],void await this._updateSubscriptions();await(async()=>{const{args:o,method:n}=a;try{this._subscriptionsByHash[e]={...a,state:"subscribing"};const t=await this._rpcWebSocket.call(n,o);this._subscriptionsByHash[e]={...a,serverSubscriptionId:t,state:"subscribed"},this._subscriptionCallbacksByServerSubscriptionId[t]=a.callbacks,await this._updateSubscriptions()}catch(s){if(s instanceof Error&&console.error(`${n} error for argument`,o,s.message),!t())return;this._subscriptionsByHash[e]={...a,state:"pending"},await this._updateSubscriptions()}})();break;case"subscribed":0===a.callbacks.size&&await(async()=>{const{serverSubscriptionId:o,unsubscribeMethod:n}=a;if(this._subscriptionsAutoDisposedByRpc.has(o))this._subscriptionsAutoDisposedByRpc.delete(o);else{this._subscriptionsByHash[e]={...a,state:"unsubscribing"};try{await this._rpcWebSocket.call(n,[o])}catch(o){if(o instanceof Error&&console.error(`${n} error:`,o.message),!t())return;return this._subscriptionsByHash[e]={...a,state:"subscribed"},void await this._updateSubscriptions()}}this._subscriptionsByHash[e]={...a,state:"unsubscribed"},await this._updateSubscriptions()})()}})))}_handleServerNotification(e,t){const a=this._subscriptionCallbacksByServerSubscriptionId[e];void 0!==a&&a.forEach((e=>{try{e(...t)}catch(e){console.error(e)}}))}_wsOnAccountNotification(e){const{result:t,subscription:a}=(0,m.create)(e,Ut);this._handleServerNotification(a,[t.value,t.context])}_makeSubscription(e,t){const a=this._nextClientSubscriptionId++,o=Me([e.method,t],!0),n=this._subscriptionsByHash[o];return void 0===n?this._subscriptionsByHash[o]={...e,args:t,callbacks:new Set([e.callback]),state:"pending"}:n.callbacks.add(e.callback),this._subscriptionDisposeFunctionsByClientSubscriptionId[a]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[a];const t=this._subscriptionsByHash[o];H(void 0!==t,`Could not find a \`Subscription\` when tearing down client subscription #${a}`),t.callbacks.delete(e.callback),await this._updateSubscriptions()},this._updateSubscriptions(),a}onAccountChange(e,t,a){const o=this._buildArgs([e.toBase58()],a||this._commitment||"finalized","base64");return this._makeSubscription({callback:t,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},o)}async removeAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"account change")}_wsOnProgramAccountNotification(e){const{result:t,subscription:a}=(0,m.create)(e,Dt);this._handleServerNotification(a,[{accountId:t.value.pubkey,accountInfo:t.value.account},t.context])}onProgramAccountChange(e,t,a,o){const n=this._buildArgs([e.toBase58()],a||this._commitment||"finalized","base64",o?{filters:o}:void 0);return this._makeSubscription({callback:t,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},n)}async removeProgramAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"program account change")}onLogs(e,t,a){const o=this._buildArgs(["object"==typeof e?{mentions:[e.toString()]}:e],a||this._commitment||"finalized");return this._makeSubscription({callback:t,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},o)}async removeOnLogsListener(e){await this._unsubscribeClientSubscription(e,"logs")}_wsOnLogsNotification(e){const{result:t,subscription:a}=(0,m.create)(e,$a);this._handleServerNotification(a,[t.value,t.context])}_wsOnSlotNotification(e){const{result:t,subscription:a}=(0,m.create)(e,Pt);this._handleServerNotification(a,[t])}onSlotChange(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(e){await this._unsubscribeClientSubscription(e,"slot change")}_wsOnSlotUpdatesNotification(e){const{result:t,subscription:a}=(0,m.create)(e,Lt);this._handleServerNotification(a,[t])}onSlotUpdate(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(e){await this._unsubscribeClientSubscription(e,"slot update")}async _unsubscribeClientSubscription(e,t){const a=this._subscriptionDisposeFunctionsByClientSubscriptionId[e];a?await a():console.warn(`Ignored unsubscribe request because an active subscription with id \`${e}\` for '${t}' events could not be found.`)}_buildArgs(e,t,a,o){const n=t||this._commitment;if(n||a||o){let t={};a&&(t.encoding=a),n&&(t.commitment=n),o&&(t=Object.assign(t,o)),e.push(t)}return e}_buildArgsAtLeastConfirmed(e,t,a,o){const n=t||this._commitment;if(n&&!["confirmed","finalized"].includes(n))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,t,a,o)}_wsOnSignatureNotification(e){const{result:t,subscription:a}=(0,m.create)(e,Ft);"receivedSignature"!==t.value&&this._subscriptionsAutoDisposedByRpc.add(a),this._handleServerNotification(a,"receivedSignature"===t.value?[{type:"received"},t.context]:[{type:"status",result:t.value},t.context])}onSignature(e,t,a){const o=this._buildArgs([e],a||this._commitment||"finalized"),n=this._makeSubscription({callback:(e,a)=>{if("status"===e.type){t(e.result,a);try{this.removeSignatureListener(n)}catch(e){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return n}onSignatureWithOptions(e,t,a){const{commitment:o,...n}={...a,commitment:a&&a.commitment||this._commitment||"finalized"},s=this._buildArgs([e],o,void 0,n),r=this._makeSubscription({callback:(e,a)=>{t(e,a);try{this.removeSignatureListener(r)}catch(e){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},s);return r}async removeSignatureListener(e){await this._unsubscribeClientSubscription(e,"signature result")}_wsOnRootNotification(e){const{result:t,subscription:a}=(0,m.create)(e,Kt);this._handleServerNotification(a,[t])}onRootChange(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(e){await this._unsubscribeClientSubscription(e,"root change")}}class va{constructor(e){this._keypair=void 0,this._keypair=null!=e?e:y()}static generate(){return new va(y())}static fromSecretKey(e,t){if(64!==e.byteLength)throw new Error("bad secret key size");const a=e.slice(32,64);if(!t||!t.skipValidation){const t=e.slice(0,32),o=$(t);for(let e=0;e<32;e++)if(a[e]!==o[e])throw new Error("provided secretKey is invalid")}return new va({publicKey:a,secretKey:e})}static fromSeed(e){const t=$(e),a=new Uint8Array(64);return a.set(e),a.set(t,32),new va({publicKey:t,secretKey:a})}get publicKey(){return new C(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const xa=Object.freeze({CreateLookupTable:{index:0,layout:d.struct([d.u32("instruction"),we("recentSlot"),d.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:d.struct([d.u32("instruction")])},ExtendLookupTable:{index:2,layout:d.struct([d.u32("instruction"),we(),d.seq(K(),d.offset(d.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:d.struct([d.u32("instruction")])},CloseLookupTable:{index:4,layout:d.struct([d.u32("instruction")])}});class Ra{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const t=d.u32("instruction").decode(e.data);let a;for(const[e,o]of Object.entries(xa))if(o.index==t){a=e;break}if(!a)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return a}static decodeCreateLookupTable(e){this.checkProgramId(e.programId),this.checkKeysLength(e.keys,4);const{recentSlot:t}=ge(xa.CreateLookupTable,e.data);return{authority:e.keys[1].pubkey,payer:e.keys[2].pubkey,recentSlot:Number(t)}}static decodeExtendLookupTable(e){if(this.checkProgramId(e.programId),e.keys.length<2)throw new Error(`invalid instruction; found ${e.keys.length} keys, expected at least 2`);const{addresses:t}=ge(xa.ExtendLookupTable,e.data);return{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,payer:e.keys.length>2?e.keys[2].pubkey:void 0,addresses:t.map((e=>new C(e)))}}static decodeCloseLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,3),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,recipient:e.keys[2].pubkey}}static decodeFreezeLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}static decodeDeactivateLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}static checkProgramId(e){if(!e.equals(Aa.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(e,t){if(e.lengthe.toBytes()))}),a=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return e.payer&&a.push({pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:Re.programId,isSigner:!1,isWritable:!1}),new Q({programId:this.programId,keys:a,data:t})}static deactivateLookupTable(e){const t=he(xa.DeactivateLookupTable),a=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new Q({programId:this.programId,keys:a,data:t})}static closeLookupTable(e){const t=he(xa.CloseLookupTable),a=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.recipient,isSigner:!1,isWritable:!0}];return new Q({programId:this.programId,keys:a,data:t})}}Aa.programId=new C("AddressLookupTab1e1111111111111111111111111");class Ia{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const t=d.u8("instruction").decode(e.data);let a;for(const[e,o]of Object.entries(Sa))if(o.index==t){a=e;break}if(!a)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return a}static decodeRequestUnits(e){this.checkProgramId(e.programId);const{units:t,additionalFee:a}=ge(Sa.RequestUnits,e.data);return{units:t,additionalFee:a}}static decodeRequestHeapFrame(e){this.checkProgramId(e.programId);const{bytes:t}=ge(Sa.RequestHeapFrame,e.data);return{bytes:t}}static decodeSetComputeUnitLimit(e){this.checkProgramId(e.programId);const{units:t}=ge(Sa.SetComputeUnitLimit,e.data);return{units:t}}static decodeSetComputeUnitPrice(e){this.checkProgramId(e.programId);const{microLamports:t}=ge(Sa.SetComputeUnitPrice,e.data);return{microLamports:t}}static checkProgramId(e){if(!e.equals(Ea.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const Sa=Object.freeze({RequestUnits:{index:0,layout:d.struct([d.u8("instruction"),d.u32("units"),d.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:d.struct([d.u8("instruction"),d.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:d.struct([d.u8("instruction"),d.u32("units")])},SetComputeUnitPrice:{index:3,layout:d.struct([d.u8("instruction"),we("microLamports")])}});class Ea{constructor(){}static requestUnits(e){const t=he(Sa.RequestUnits,e);return new Q({keys:[],programId:this.programId,data:t})}static requestHeapFrame(e){const t=he(Sa.RequestHeapFrame,e);return new Q({keys:[],programId:this.programId,data:t})}static setComputeUnitLimit(e){const t=he(Sa.SetComputeUnitLimit,e);return new Q({keys:[],programId:this.programId,data:t})}static setComputeUnitPrice(e){const t=he(Sa.SetComputeUnitPrice,{microLamports:BigInt(e.microLamports)});return new Q({keys:[],programId:this.programId,data:t})}}Ea.programId=new C("ComputeBudget111111111111111111111111111111");const Ta=d.struct([d.u8("numSignatures"),d.u8("padding"),d.u16("signatureOffset"),d.u16("signatureInstructionIndex"),d.u16("publicKeyOffset"),d.u16("publicKeyInstructionIndex"),d.u16("messageDataOffset"),d.u16("messageDataSize"),d.u16("messageInstructionIndex")]);class Ca{constructor(){}static createInstructionWithPublicKey(e){const{publicKey:t,message:o,signature:n,instructionIndex:s}=e;H(32===t.length,`Public Key must be 32 bytes but received ${t.length} bytes`),H(64===n.length,`Signature must be 64 bytes but received ${n.length} bytes`);const r=Ta.span,i=r+t.length,c=i+n.length,d=a.Buffer.alloc(c+o.length),l=null==s?65535:s;return Ta.encode({numSignatures:1,padding:0,signatureOffset:i,signatureInstructionIndex:l,publicKeyOffset:r,publicKeyInstructionIndex:l,messageDataOffset:c,messageDataSize:o.length,messageInstructionIndex:l},d),d.fill(t,r),d.fill(n,i),d.fill(o,c),new Q({keys:[],programId:Ca.programId,data:d})}static createInstructionWithPrivateKey(e){const{privateKey:t,message:a,instructionIndex:o}=e;H(64===t.length,`Private key must be 64 bytes but received ${t.length} bytes`);try{const e=va.fromSecretKey(t),n=e.publicKey.toBytes(),s=k(a,e.secretKey);return this.createInstructionWithPublicKey({publicKey:n,message:a,signature:s,instructionIndex:o})}catch(e){throw new Error(`Error creating instruction; ${e}`)}}}Ca.programId=new C("Ed25519SigVerify111111111111111111111111111"),b.utils.hmacSha256Sync=(e,...t)=>{const a=g.hmac.create(i.sha256,e);return t.forEach((e=>a.update(e))),a.digest()};b.utils.isValidPrivateKey;const Ua=b.getPublicKey,Ma=d.struct([d.u8("numSignatures"),d.u16("signatureOffset"),d.u8("signatureInstructionIndex"),d.u16("ethAddressOffset"),d.u8("ethAddressInstructionIndex"),d.u16("messageDataOffset"),d.u16("messageDataSize"),d.u8("messageInstructionIndex"),d.blob(20,"ethAddress"),d.blob(64,"signature"),d.u8("recoveryId")]);class Da{constructor(){}static publicKeyToEthAddress(e){H(64===e.length,`Public key must be 64 bytes but received ${e.length} bytes`);try{return a.Buffer.from((0,h.keccak_256)(x(e))).slice(-20)}catch(e){throw new Error(`Error constructing Ethereum address: ${e}`)}}static createInstructionWithPublicKey(e){const{publicKey:t,message:a,signature:o,recoveryId:n,instructionIndex:s}=e;return Da.createInstructionWithEthAddress({ethAddress:Da.publicKeyToEthAddress(t),message:a,signature:o,recoveryId:n,instructionIndex:s})}static createInstructionWithEthAddress(e){const{ethAddress:t,message:o,signature:n,recoveryId:s,instructionIndex:r=0}=e;let i;i="string"==typeof t?t.startsWith("0x")?a.Buffer.from(t.substr(2),"hex"):a.Buffer.from(t,"hex"):t,H(20===i.length,`Address must be 20 bytes but received ${i.length} bytes`);const c=12+i.length,d=c+n.length+1,l=a.Buffer.alloc(Ma.span+o.length);return Ma.encode({numSignatures:1,signatureOffset:c,signatureInstructionIndex:r,ethAddressOffset:12,ethAddressInstructionIndex:r,messageDataOffset:d,messageDataSize:o.length,messageInstructionIndex:r,signature:x(n),ethAddress:x(i),recoveryId:s},l),l.fill(x(o),Ma.span),new Q({keys:[],programId:Da.programId,data:l})}static createInstructionWithPrivateKey(e){const{privateKey:t,message:o,instructionIndex:n}=e;H(32===t.length,`Private key must be 32 bytes but received ${t.length} bytes`);try{const e=x(t),i=Ua(e,!1).slice(1),c=a.Buffer.from((0,h.keccak_256)(x(o))),[d,l]=(s=c,r=e,b.signSync(s,r,{der:!1,recovered:!0}));return this.createInstructionWithPublicKey({publicKey:i,message:o,signature:d,recoveryId:l,instructionIndex:n})}catch(e){throw new Error(`Error creating instruction; ${e}`)}var s,r}}Da.programId=new C("KeccakSecp256k11111111111111111111111111111");const Na=new C("StakeConfig11111111111111111111111111111111");class Pa{constructor(e,t){this.staker=void 0,this.withdrawer=void 0,this.staker=e,this.withdrawer=t}}class Ba{constructor(e,t,a){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=t,this.custodian=a}}Ba.default=new Ba(0,0,C.default);class La{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const t=d.u32("instruction").decode(e.data);let a;for(const[e,o]of Object.entries(Fa))if(o.index==t){a=e;break}if(!a)throw new Error("Instruction type incorrect; not a StakeInstruction");return a}static decodeInitialize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{authorized:t,lockup:a}=ge(Fa.Initialize,e.data);return{stakePubkey:e.keys[0].pubkey,authorized:new Pa(new C(t.staker),new C(t.withdrawer)),lockup:new Ba(a.unixTimestamp,a.epoch,new C(a.custodian))}}static decodeDelegate(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,6),ge(Fa.Delegate,e.data),{stakePubkey:e.keys[0].pubkey,votePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[5].pubkey}}static decodeAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{newAuthorized:t,stakeAuthorizationType:a}=ge(Fa.Authorize,e.data),o={stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey,newAuthorizedPubkey:new C(t),stakeAuthorizationType:{index:a}};return e.keys.length>3&&(o.custodianPubkey=e.keys[3].pubkey),o}static decodeAuthorizeWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{newAuthorized:t,stakeAuthorizationType:a,authoritySeed:o,authorityOwner:n}=ge(Fa.AuthorizeWithSeed,e.data),s={stakePubkey:e.keys[0].pubkey,authorityBase:e.keys[1].pubkey,authoritySeed:o,authorityOwner:new C(n),newAuthorizedPubkey:new C(t),stakeAuthorizationType:{index:a}};return e.keys.length>3&&(s.custodianPubkey=e.keys[3].pubkey),s}static decodeSplit(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{lamports:t}=ge(Fa.Split,e.data);return{stakePubkey:e.keys[0].pubkey,splitStakePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[2].pubkey,lamports:t}}static decodeMerge(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),ge(Fa.Merge,e.data),{stakePubkey:e.keys[0].pubkey,sourceStakePubKey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey}}static decodeWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);const{lamports:t}=ge(Fa.Withdraw,e.data),a={stakePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:t};return e.keys.length>5&&(a.custodianPubkey=e.keys[5].pubkey),a}static decodeDeactivate(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),ge(Fa.Deactivate,e.data),{stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}static checkProgramId(e){if(!e.equals(Ga.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(e,t){if(e.lengthd.struct([K("staker"),K("withdrawer")],e))(),((e="lockup")=>d.struct([d.ns64("unixTimestamp"),d.ns64("epoch"),K("custodian")],e))()])},Authorize:{index:1,layout:d.struct([d.u32("instruction"),K("newAuthorized"),d.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:d.struct([d.u32("instruction")])},Split:{index:3,layout:d.struct([d.u32("instruction"),d.ns64("lamports")])},Withdraw:{index:4,layout:d.struct([d.u32("instruction"),d.ns64("lamports")])},Deactivate:{index:5,layout:d.struct([d.u32("instruction")])},Merge:{index:7,layout:d.struct([d.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:d.struct([d.u32("instruction"),K("newAuthorized"),d.u32("stakeAuthorizationType"),j("authoritySeed"),K("authorityOwner")])}}),Ka=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class Ga{constructor(){}static initialize(e){const{stakePubkey:t,authorized:a,lockup:o}=e,n=o||Ba.default,s=he(Fa.Initialize,{authorized:{staker:x(a.staker.toBuffer()),withdrawer:x(a.withdrawer.toBuffer())},lockup:{unixTimestamp:n.unixTimestamp,epoch:n.epoch,custodian:x(n.custodian.toBuffer())}}),r={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ie,isSigner:!1,isWritable:!1}],programId:this.programId,data:s};return new Q(r)}static createAccountWithSeed(e){const t=new ee;t.add(Re.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));const{stakePubkey:a,authorized:o,lockup:n}=e;return t.add(this.initialize({stakePubkey:a,authorized:o,lockup:n}))}static createAccount(e){const t=new ee;t.add(Re.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));const{stakePubkey:a,authorized:o,lockup:n}=e;return t.add(this.initialize({stakePubkey:a,authorized:o,lockup:n}))}static delegate(e){const{stakePubkey:t,authorizedPubkey:a,votePubkey:o}=e,n=he(Fa.Delegate);return(new ee).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!1},{pubkey:oe,isSigner:!1,isWritable:!1},{pubkey:me,isSigner:!1,isWritable:!1},{pubkey:Na,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static authorize(e){const{stakePubkey:t,authorizedPubkey:a,newAuthorizedPubkey:o,stakeAuthorizationType:n,custodianPubkey:s}=e,r=he(Fa.Authorize,{newAuthorized:x(o.toBuffer()),stakeAuthorizationType:n.index}),i=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:oe,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!1}];return s&&i.push({pubkey:s,isSigner:!1,isWritable:!1}),(new ee).add({keys:i,programId:this.programId,data:r})}static authorizeWithSeed(e){const{stakePubkey:t,authorityBase:a,authoritySeed:o,authorityOwner:n,newAuthorizedPubkey:s,stakeAuthorizationType:r,custodianPubkey:i}=e,c=he(Fa.AuthorizeWithSeed,{newAuthorized:x(s.toBuffer()),stakeAuthorizationType:r.index,authoritySeed:o,authorityOwner:x(n.toBuffer())}),d=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:oe,isSigner:!1,isWritable:!1}];return i&&d.push({pubkey:i,isSigner:!1,isWritable:!1}),(new ee).add({keys:d,programId:this.programId,data:c})}static splitInstruction(e){const{stakePubkey:t,authorizedPubkey:a,splitStakePubkey:o,lamports:n}=e,s=he(Fa.Split,{lamports:n});return new Q({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!1}],programId:this.programId,data:s})}static split(e){const t=new ee;return t.add(Re.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),t.add(this.splitInstruction(e))}static splitWithSeed(e){const{stakePubkey:t,authorizedPubkey:a,splitStakePubkey:o,basePubkey:n,seed:s,lamports:r}=e,i=new ee;return i.add(Re.allocate({accountPubkey:o,basePubkey:n,seed:s,space:this.space,programId:this.programId})),i.add(this.splitInstruction({stakePubkey:t,authorizedPubkey:a,splitStakePubkey:o,lamports:r}))}static merge(e){const{stakePubkey:t,sourceStakePubKey:a,authorizedPubkey:o}=e,n=he(Fa.Merge);return(new ee).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:oe,isSigner:!1,isWritable:!1},{pubkey:me,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static withdraw(e){const{stakePubkey:t,authorizedPubkey:a,toPubkey:o,lamports:n,custodianPubkey:s}=e,r=he(Fa.Withdraw,{lamports:n}),i=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:oe,isSigner:!1,isWritable:!1},{pubkey:me,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1}];return s&&i.push({pubkey:s,isSigner:!1,isWritable:!1}),(new ee).add({keys:i,programId:this.programId,data:r})}static deactivate(e){const{stakePubkey:t,authorizedPubkey:a}=e,o=he(Fa.Deactivate);return(new ee).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:oe,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}}Ga.programId=new C("Stake11111111111111111111111111111111111111"),Ga.space=200;class ja{constructor(e,t,a,o){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=e,this.authorizedVoter=t,this.authorizedWithdrawer=a,this.commission=o}}class qa{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const t=d.u32("instruction").decode(e.data);let a;for(const[e,o]of Object.entries(Wa))if(o.index==t){a=e;break}if(!a)throw new Error("Instruction type incorrect; not a VoteInstruction");return a}static decodeInitializeAccount(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,4);const{voteInit:t}=ge(Wa.InitializeAccount,e.data);return{votePubkey:e.keys[0].pubkey,nodePubkey:e.keys[3].pubkey,voteInit:new ja(new C(t.nodePubkey),new C(t.authorizedVoter),new C(t.authorizedWithdrawer),t.commission)}}static decodeAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{newAuthorized:t,voteAuthorizationType:a}=ge(Wa.Authorize,e.data);return{votePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey,newAuthorizedPubkey:new C(t),voteAuthorizationType:{index:a}}}static decodeAuthorizeWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:t,currentAuthorityDerivedKeySeed:a,newAuthorized:o,voteAuthorizationType:n}}=ge(Wa.AuthorizeWithSeed,e.data);return{currentAuthorityDerivedKeyBasePubkey:e.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new C(t),currentAuthorityDerivedKeySeed:a,newAuthorizedPubkey:new C(o),voteAuthorizationType:{index:n},votePubkey:e.keys[0].pubkey}}static decodeWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{lamports:t}=ge(Wa.Withdraw,e.data);return{votePubkey:e.keys[0].pubkey,authorizedWithdrawerPubkey:e.keys[2].pubkey,lamports:t,toPubkey:e.keys[1].pubkey}}static checkProgramId(e){if(!e.equals(Ha.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(e,t){if(e.lengthd.struct([K("nodePubkey"),K("authorizedVoter"),K("authorizedWithdrawer"),d.u8("commission")],e))()])},Authorize:{index:1,layout:d.struct([d.u32("instruction"),K("newAuthorized"),d.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:d.struct([d.u32("instruction"),d.ns64("lamports")])},AuthorizeWithSeed:{index:10,layout:d.struct([d.u32("instruction"),((e="voteAuthorizeWithSeedArgs")=>d.struct([d.u32("voteAuthorizationType"),K("currentAuthorityDerivedKeyOwnerPubkey"),j("currentAuthorityDerivedKeySeed"),K("newAuthorized")],e))()])}}),za=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class Ha{constructor(){}static initializeAccount(e){const{votePubkey:t,nodePubkey:a,voteInit:o}=e,n=he(Wa.InitializeAccount,{voteInit:{nodePubkey:x(o.nodePubkey.toBuffer()),authorizedVoter:x(o.authorizedVoter.toBuffer()),authorizedWithdrawer:x(o.authorizedWithdrawer.toBuffer()),commission:o.commission}}),s={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ie,isSigner:!1,isWritable:!1},{pubkey:oe,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1}],programId:this.programId,data:n};return new Q(s)}static createAccount(e){const t=new ee;return t.add(Re.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),t.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}static authorize(e){const{votePubkey:t,authorizedPubkey:a,newAuthorizedPubkey:o,voteAuthorizationType:n}=e,s=he(Wa.Authorize,{newAuthorized:x(o.toBuffer()),voteAuthorizationType:n.index}),r=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:oe,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1}];return(new ee).add({keys:r,programId:this.programId,data:s})}static authorizeWithSeed(e){const{currentAuthorityDerivedKeyBasePubkey:t,currentAuthorityDerivedKeyOwnerPubkey:a,currentAuthorityDerivedKeySeed:o,newAuthorizedPubkey:n,voteAuthorizationType:s,votePubkey:r}=e,i=he(Wa.AuthorizeWithSeed,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:x(a.toBuffer()),currentAuthorityDerivedKeySeed:o,newAuthorized:x(n.toBuffer()),voteAuthorizationType:s.index}}),c=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:oe,isSigner:!1,isWritable:!1},{pubkey:t,isSigner:!0,isWritable:!1}];return(new ee).add({keys:c,programId:this.programId,data:i})}static withdraw(e){const{votePubkey:t,authorizedWithdrawerPubkey:a,lamports:o,toPubkey:n}=e,s=he(Wa.Withdraw,{lamports:o}),r=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!1}];return(new ee).add({keys:r,programId:this.programId,data:s})}static safeWithdraw(e,t,a){if(e.lamports>t-a)throw new Error("Withdraw will leave vote account with insuffcient funds.");return Ha.withdraw(e)}}Ha.programId=new C("Vote111111111111111111111111111111111111111"),Ha.space=3731;const _a=new C("Va1idator1nfo111111111111111111111111111111"),Va=(0,m.type)({name:(0,m.string)(),website:(0,m.optional)((0,m.string)()),details:(0,m.optional)((0,m.string)()),keybaseUsername:(0,m.optional)((0,m.string)())});class Ya{constructor(e,t){this.key=void 0,this.info=void 0,this.key=e,this.info=t}static fromConfigData(e){let t=[...e];if(2!==W(t))return null;const o=[];for(let e=0;e<2;e++){const e=new C(t.slice(0,E));t=t.slice(E);const a=1===t.slice(0,1)[0];t=t.slice(1),o.push({publicKey:e,isSigner:a})}if(o[0].publicKey.equals(_a)&&o[1].isSigner){const e=j().decode(a.Buffer.from(t)),n=JSON.parse(e);return(0,m.assert)(n,Va),new Ya(o[1].publicKey,n)}return null}}const Ja=new C("Vote111111111111111111111111111111111111111"),Xa=d.struct([K("nodePubkey"),K("authorizedWithdrawer"),d.u8("commission"),d.nu64(),d.seq(d.struct([d.nu64("slot"),d.u32("confirmationCount")]),d.offset(d.u32(),-8),"votes"),d.u8("rootSlotValid"),d.nu64("rootSlot"),d.nu64(),d.seq(d.struct([d.nu64("epoch"),K("authorizedVoter")]),d.offset(d.u32(),-8),"authorizedVoters"),d.struct([d.seq(d.struct([K("authorizedPubkey"),d.nu64("epochOfLastAuthorizedSwitch"),d.nu64("targetEpoch")]),32,"buf"),d.nu64("idx"),d.u8("isEmpty")],"priorVoters"),d.nu64(),d.seq(d.struct([d.nu64("epoch"),d.nu64("credits"),d.nu64("prevCredits")]),d.offset(d.u32(),-8),"epochCredits"),d.struct([d.nu64("slot"),d.nu64("timestamp")],"lastTimestamp")]);class Oa{constructor(e){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=e.nodePubkey,this.authorizedWithdrawer=e.authorizedWithdrawer,this.commission=e.commission,this.rootSlot=e.rootSlot,this.votes=e.votes,this.authorizedVoters=e.authorizedVoters,this.priorVoters=e.priorVoters,this.epochCredits=e.epochCredits,this.lastTimestamp=e.lastTimestamp}static fromAccountData(e){const t=Xa.decode(x(e),4);let a=t.rootSlot;return t.rootSlotValid||(a=null),new Oa({nodePubkey:new C(t.nodePubkey),authorizedWithdrawer:new C(t.authorizedWithdrawer),commission:t.commission,votes:t.votes,rootSlot:a,authorizedVoters:t.authorizedVoters.map(Za),priorVoters:eo(t.priorVoters),epochCredits:t.epochCredits,lastTimestamp:t.lastTimestamp})}}function Za({authorizedVoter:e,epoch:t}){return{epoch:t,authorizedVoter:new C(e)}}function Qa({authorizedPubkey:e,epochOfLastAuthorizedSwitch:t,targetEpoch:a}){return{authorizedPubkey:new C(e),epochOfLastAuthorizedSwitch:t,targetEpoch:a}}function eo({buf:e,idx:t,isEmpty:a}){return a?[]:[...e.slice(t+1).map(Qa),...e.slice(0,t).map(Qa)]}const to={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function ao(e,t){const a=!1===t?"http":"https";if(!e)return to[a].devnet;const o=to[a][e];if(!o)throw new Error(`Unknown ${a} cluster: ${e}`);return o}async function oo(e,t,a,o){let n,s;a&&Object.prototype.hasOwnProperty.call(a,"lastValidBlockHeight")?(n=a,s=o):s=a;const r=s&&{skipPreflight:s.skipPreflight,preflightCommitment:s.preflightCommitment||s.commitment,minContextSlot:s.minContextSlot},i=await e.sendRawTransaction(t,r),c=s&&s.commitment,d=n?e.confirmTransaction(n,c):e.confirmTransaction(i,c),l=(await d).value;if(l.err)throw new Error(`Raw transaction ${i} failed (${JSON.stringify(l)})`);return i}const no=1e9})),parcelRequire.register("ajHSv",(function(e,t){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var a,o,n,s;$parcel$export(e.exports,"Buffer",(()=>a),(e=>a=e)),$parcel$export(e.exports,"SlowBuffer",(()=>o),(e=>o=e)),$parcel$export(e.exports,"INSPECT_MAX_BYTES",(()=>n),(e=>n=e)),$parcel$export(e.exports,"kMaxLength",(()=>s),(e=>s=e));var r=parcelRequire("2KbE2"),i=parcelRequire("awUTM"),c="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;a=m,o=function(e){+e!=e&&(e=0);return m.alloc(+e)},n=50;var d=2147483647;function l(e){if(e>d)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,m.prototype),t}function m(e,t,a){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return u(e,t,a)}function u(e,t,a){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!m.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var a=0|y(e,t),o=l(a),n=o.write(e,t);n!==a&&(o=o.slice(0,n));return o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(z(e,Uint8Array)){var t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return g(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(z(e,ArrayBuffer)||e&&z(e.buffer,ArrayBuffer))return b(e,t,a);if("undefined"!=typeof SharedArrayBuffer&&(z(e,SharedArrayBuffer)||e&&z(e.buffer,SharedArrayBuffer)))return b(e,t,a);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return m.from(o,t,a);var n=function(e){if(m.isBuffer(e)){var t=0|f(e.length),a=l(t);return 0===a.length||e.copy(a,0,0,t),a}if(void 0!==e.length)return"number"!=typeof e.length||H(e.length)?l(0):g(e);if("Buffer"===e.type&&Array.isArray(e.data))return g(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return m.from(e[Symbol.toPrimitive]("string"),t,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function p(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return p(e),l(e<0?0:0|f(e))}function g(e){for(var t=e.length<0?0:0|f(e.length),a=l(t),o=0;o=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|e}function y(e,t){if(m.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var a=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===a)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return q(e).length;default:if(n)return o?-1:j(e).length;t=(""+t).toLowerCase(),n=!0}}function $(e,t,a){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if((a>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,a);case"utf8":case"utf-8":return T(this,t,a);case"ascii":return U(this,t,a);case"latin1":case"binary":return M(this,t,a);case"base64":return E(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,a);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function w(e,t,a){var o=e[t];e[t]=e[a],e[a]=o}function k(e,t,a,o,n){if(0===e.length)return-1;if("string"==typeof a?(o=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),H(a=+a)&&(a=n?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(n)return-1;a=e.length-1}else if(a<0){if(!n)return-1;a=0}if("string"==typeof t&&(t=m.from(t,o)),m.isBuffer(t))return 0===t.length?-1:v(e,t,a,o,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):v(e,[t],a,o,n);throw new TypeError("val must be string, number or Buffer")}function v(e,t,a,o,n){var s,r=1,i=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;r=2,i/=2,c/=2,a/=2}function d(e,t){return 1===r?e[t]:e.readUInt16BE(t*r)}if(n){var l=-1;for(s=a;si&&(a=i-c),s=a;s>=0;s--){for(var m=!0,u=0;un&&(o=n):o=n;var s=t.length;o>s/2&&(o=s/2);for(var r=0;r>8,n=a%256,s.push(n),s.push(o);return s}(t,e.length-a),e,a,o)}function E(e,t,a){return 0===t&&a===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,a))}function T(e,t,a){a=Math.min(e.length,a);for(var o=[],n=t;n239?4:d>223?3:d>191?2:1;if(n+m<=a)switch(m){case 1:d<128&&(l=d);break;case 2:128==(192&(s=e[n+1]))&&(c=(31&d)<<6|63&s)>127&&(l=c);break;case 3:s=e[n+1],r=e[n+2],128==(192&s)&&128==(192&r)&&(c=(15&d)<<12|(63&s)<<6|63&r)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:s=e[n+1],r=e[n+2],i=e[n+3],128==(192&s)&&128==(192&r)&&128==(192&i)&&(c=(15&d)<<18|(63&s)<<12|(63&r)<<6|63&i)>65535&&c<1114112&&(l=c)}null===l?(l=65533,m=1):l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|1023&l),o.push(l),n+=m}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var a="",o=0;for(;oo.length?m.from(s).copy(o,n):Uint8Array.prototype.set.call(o,s,n);else{if(!m.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(o,n)}n+=s.length}return o},m.byteLength=y,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""},c&&(m.prototype[c]=m.prototype.inspect),m.prototype.compare=function(e,t,a,o,n){if(z(e,Uint8Array)&&(e=m.from(e,e.offset,e.byteLength)),!m.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===a&&(a=e?e.length:0),void 0===o&&(o=0),void 0===n&&(n=this.length),t<0||a>e.length||o<0||n>this.length)throw new RangeError("out of range index");if(o>=n&&t>=a)return 0;if(o>=n)return-1;if(t>=a)return 1;if(this===e)return 0;for(var s=(n>>>=0)-(o>>>=0),r=(a>>>=0)-(t>>>=0),i=Math.min(s,r),c=this.slice(o,n),d=e.slice(t,a),l=0;l>>=0,isFinite(a)?(a>>>=0,void 0===o&&(o="utf8")):(o=a,a=void 0)}var n=this.length-t;if((void 0===a||a>n)&&(a=n),e.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var s=!1;;)switch(o){case"hex":return x(this,e,t,a);case"utf8":case"utf-8":return R(this,e,t,a);case"ascii":case"latin1":case"binary":return A(this,e,t,a);case"base64":return I(this,e,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,a);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function U(e,t,a){var o="";a=Math.min(e.length,a);for(var n=t;no)&&(a=o);for(var n="",s=t;sa)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,a,o,n,s){if(!m.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function L(e,t,a,o,n,s){if(a+o>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function F(e,t,a,o,n){return t=+t,a>>>=0,n||L(e,0,a,4),i.write(e,t,a,o,23,4),a+4}function K(e,t,a,o,n){return t=+t,a>>>=0,n||L(e,0,a,8),i.write(e,t,a,o,52,8),a+8}m.prototype.slice=function(e,t){var a=this.length;(e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(t=void 0===t?a:~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),t>>=0,t>>>=0,a||P(e,t,this.length);for(var o=this[e],n=1,s=0;++s>>=0,t>>>=0,a||P(e,t,this.length);for(var o=this[e+--t],n=1;t>0&&(n*=256);)o+=this[e+--t]*n;return o},m.prototype.readUint8=m.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},m.prototype.readIntLE=function(e,t,a){e>>>=0,t>>>=0,a||P(e,t,this.length);for(var o=this[e],n=1,s=0;++s=(n*=128)&&(o-=Math.pow(2,8*t)),o},m.prototype.readIntBE=function(e,t,a){e>>>=0,t>>>=0,a||P(e,t,this.length);for(var o=t,n=1,s=this[e+--o];o>0&&(n*=256);)s+=this[e+--o]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},m.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},m.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},m.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},m.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},m.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},m.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},m.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},m.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},m.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(e,t,a,o){(e=+e,t>>>=0,a>>>=0,o)||B(this,e,t,a,Math.pow(2,8*a)-1,0);var n=1,s=0;for(this[t]=255&e;++s>>=0,a>>>=0,o)||B(this,e,t,a,Math.pow(2,8*a)-1,0);var n=a-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+a},m.prototype.writeUint8=m.prototype.writeUInt8=function(e,t,a){return e=+e,t>>>=0,a||B(this,e,t,1,255,0),this[t]=255&e,t+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(e,t,a){return e=+e,t>>>=0,a||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(e,t,a){return e=+e,t>>>=0,a||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(e,t,a){return e=+e,t>>>=0,a||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(e,t,a){return e=+e,t>>>=0,a||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},m.prototype.writeIntLE=function(e,t,a,o){if(e=+e,t>>>=0,!o){var n=Math.pow(2,8*a-1);B(this,e,t,a,n-1,-n)}var s=0,r=1,i=0;for(this[t]=255&e;++s>0)-i&255;return t+a},m.prototype.writeIntBE=function(e,t,a,o){if(e=+e,t>>>=0,!o){var n=Math.pow(2,8*a-1);B(this,e,t,a,n-1,-n)}var s=a-1,r=1,i=0;for(this[t+s]=255&e;--s>=0&&(r*=256);)e<0&&0===i&&0!==this[t+s+1]&&(i=1),this[t+s]=(e/r>>0)-i&255;return t+a},m.prototype.writeInt8=function(e,t,a){return e=+e,t>>>=0,a||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},m.prototype.writeInt16LE=function(e,t,a){return e=+e,t>>>=0,a||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},m.prototype.writeInt16BE=function(e,t,a){return e=+e,t>>>=0,a||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},m.prototype.writeInt32LE=function(e,t,a){return e=+e,t>>>=0,a||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},m.prototype.writeInt32BE=function(e,t,a){return e=+e,t>>>=0,a||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},m.prototype.writeFloatLE=function(e,t,a){return F(this,e,t,!0,a)},m.prototype.writeFloatBE=function(e,t,a){return F(this,e,t,!1,a)},m.prototype.writeDoubleLE=function(e,t,a){return K(this,e,t,!0,a)},m.prototype.writeDoubleBE=function(e,t,a){return K(this,e,t,!1,a)},m.prototype.copy=function(e,t,a,o){if(!m.isBuffer(e))throw new TypeError("argument should be a Buffer");if(a||(a=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"==typeof e)for(s=t;s55295&&a<57344){if(!n){if(a>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(r+1===o){(t-=3)>-1&&s.push(239,191,189);continue}n=a;continue}if(a<56320){(t-=3)>-1&&s.push(239,191,189),n=a;continue}a=65536+(n-55296<<10|a-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,a<128){if((t-=1)<0)break;s.push(a)}else if(a<2048){if((t-=2)<0)break;s.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;s.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return s}function q(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,a,o){for(var n=0;n=t.length||n>=e.length);++n)t[n+a]=e[n];return n}function z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function H(e){return e!=e}var _=function(){for(var e="0123456789abcdef",t=new Array(256),a=0;a<16;++a)for(var o=16*a,n=0;n<16;++n)t[o+n]=e[a]+e[n];return t}()})),parcelRequire.register("2KbE2",(function(e,t){var a,o;$parcel$export(e.exports,"toByteArray",(()=>a),(e=>a=e)),$parcel$export(e.exports,"fromByteArray",(()=>o),(e=>o=e)),a=function(e){var t,a,o=l(e),n=o[0],i=o[1],c=new r(function(e,t,a){return 3*(t+a)/4-a}(0,n,i)),d=0,m=i>0?n-4:n;for(a=0;a>16&255,c[d++]=t>>8&255,c[d++]=255&t;2===i&&(t=s[e.charCodeAt(a)]<<2|s[e.charCodeAt(a+1)]>>4,c[d++]=255&t);1===i&&(t=s[e.charCodeAt(a)]<<10|s[e.charCodeAt(a+1)]<<4|s[e.charCodeAt(a+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t);return c},o=function(e){for(var t,a=e.length,o=a%3,s=[],r=16383,i=0,c=a-o;ic?c:i+r));1===o?(t=e[a-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[a-2]<<8)+e[a-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return s.join("")};for(var n=[],s=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,d=i.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var a=e.indexOf("=");return-1===a&&(a=t),[a,a===t?0:4-a%4]}function m(e,t,a){for(var o,s,r=[],i=t;i>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return r.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63})),parcelRequire.register("awUTM",(function(e,t){ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var a,o;$parcel$export(e.exports,"read",(()=>a),(e=>a=e)),$parcel$export(e.exports,"write",(()=>o),(e=>o=e)),a=function(e,t,a,o,n){var s,r,i=8*n-o-1,c=(1<>1,l=-7,m=a?n-1:0,u=a?-1:1,p=e[t+m];for(m+=u,s=p&(1<<-l)-1,p>>=-l,l+=i;l>0;s=256*s+e[t+m],m+=u,l-=8);for(r=s&(1<<-l)-1,s>>=-l,l+=o;l>0;r=256*r+e[t+m],m+=u,l-=8);if(0===s)s=1-d;else{if(s===c)return r?NaN:1/0*(p?-1:1);r+=Math.pow(2,o),s-=d}return(p?-1:1)*r*Math.pow(2,s-o)},o=function(e,t,a,o,n,s){var r,i,c,d=8*s-n-1,l=(1<>1,u=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:s-1,h=o?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,r=l):(r=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-r))<1&&(r--,c*=2),(t+=r+m>=1?u/c:u*Math.pow(2,1-m))*c>=2&&(r++,c/=2),r+m>=l?(i=0,r=l):r+m>=1?(i=(t*c-1)*Math.pow(2,n),r+=m):(i=t*Math.pow(2,m-1)*Math.pow(2,n),r=0));n>=8;e[a+p]=255&i,p+=h,i/=256,n-=8);for(r=r<0;e[a+p]=255&r,p+=h,r/=256,d-=8);e[a+p-h]|=128*g}})),parcelRequire.register("1OmXf",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.sha384=e.exports.sha512_256=e.exports.sha512_224=e.exports.sha512=e.exports.SHA512=void 0;var a=parcelRequire("4Lck3"),o=parcelRequire("3N0HN"),n=parcelRequire("5gkUA");const[s,r]=o.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","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)))),i=new Uint32Array(80),c=new Uint32Array(80);class d extends a.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:a,Bl:o,Ch:n,Cl:s,Dh:r,Dl:i,Eh:c,El:d,Fh:l,Fl:m,Gh:u,Gl:p,Hh:h,Hl:g}=this;return[e,t,a,o,n,s,r,i,c,d,l,m,u,p,h,g]}set(e,t,a,o,n,s,r,i,c,d,l,m,u,p,h,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|a,this.Bl=0|o,this.Ch=0|n,this.Cl=0|s,this.Dh=0|r,this.Dl=0|i,this.Eh=0|c,this.El=0|d,this.Fh=0|l,this.Fl=0|m,this.Gh=0|u,this.Gl=0|p,this.Hh=0|h,this.Hl=0|g}process(e,t){for(let a=0;a<16;a++,t+=4)i[a]=e.getUint32(t),c[a]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|i[e-15],a=0|c[e-15],n=o.default.rotrSH(t,a,1)^o.default.rotrSH(t,a,8)^o.default.shrSH(t,a,7),s=o.default.rotrSL(t,a,1)^o.default.rotrSL(t,a,8)^o.default.shrSL(t,a,7),r=0|i[e-2],d=0|c[e-2],l=o.default.rotrSH(r,d,19)^o.default.rotrBH(r,d,61)^o.default.shrSH(r,d,6),m=o.default.rotrSL(r,d,19)^o.default.rotrBL(r,d,61)^o.default.shrSL(r,d,6),u=o.default.add4L(s,m,c[e-7],c[e-16]),p=o.default.add4H(u,n,l,i[e-7],i[e-16]);i[e]=0|p,c[e]=0|u}let{Ah:a,Al:n,Bh:d,Bl:l,Ch:m,Cl:u,Dh:p,Dl:h,Eh:g,El:b,Fh:f,Fl:y,Gh:$,Gl:w,Hh:k,Hl:v}=this;for(let e=0;e<80;e++){const t=o.default.rotrSH(g,b,14)^o.default.rotrSH(g,b,18)^o.default.rotrBH(g,b,41),x=o.default.rotrSL(g,b,14)^o.default.rotrSL(g,b,18)^o.default.rotrBL(g,b,41),R=g&f^~g&$,A=b&y^~b&w,I=o.default.add5L(v,x,A,r[e],c[e]),S=o.default.add5H(I,k,t,R,s[e],i[e]),E=0|I,T=o.default.rotrSH(a,n,28)^o.default.rotrBH(a,n,34)^o.default.rotrBH(a,n,39),C=o.default.rotrSL(a,n,28)^o.default.rotrBL(a,n,34)^o.default.rotrBL(a,n,39),U=a&d^a&m^d&m,M=n&l^n&u^l&u;k=0|$,v=0|w,$=0|f,w=0|y,f=0|g,y=0|b,({h:g,l:b}=o.default.add(0|p,0|h,0|S,0|E)),p=0|m,h=0|u,m=0|d,u=0|l,d=0|a,l=0|n;const D=o.default.add3L(E,C,M);a=o.default.add3H(D,S,T,U),n=0|D}({h:a,l:n}=o.default.add(0|this.Ah,0|this.Al,0|a,0|n)),({h:d,l:l}=o.default.add(0|this.Bh,0|this.Bl,0|d,0|l)),({h:m,l:u}=o.default.add(0|this.Ch,0|this.Cl,0|m,0|u)),({h:p,l:h}=o.default.add(0|this.Dh,0|this.Dl,0|p,0|h)),({h:g,l:b}=o.default.add(0|this.Eh,0|this.El,0|g,0|b)),({h:f,l:y}=o.default.add(0|this.Fh,0|this.Fl,0|f,0|y)),({h:$,l:w}=o.default.add(0|this.Gh,0|this.Gl,0|$,0|w)),({h:k,l:v}=o.default.add(0|this.Hh,0|this.Hl,0|k,0|v)),this.set(a,n,d,l,m,u,p,h,g,b,f,y,$,w,k,v)}roundClean(){i.fill(0),c.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}e.exports.SHA512=d;class l extends d{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class m extends d{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class u extends d{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}e.exports.sha512=(0,n.wrapConstructor)((()=>new d)),e.exports.sha512_224=(0,n.wrapConstructor)((()=>new l)),e.exports.sha512_256=(0,n.wrapConstructor)((()=>new m)),e.exports.sha384=(0,n.wrapConstructor)((()=>new u))})),parcelRequire.register("4Lck3",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.SHA2=void 0;var a=parcelRequire("41oxr"),o=parcelRequire("5gkUA");class n extends o.Hash{constructor(e,t,a,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=a,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,o.createView)(this.buffer)}update(e){a.default.exists(this);const{view:t,buffer:n,blockLen:s}=this,r=(e=(0,o.toBytes)(e)).length;for(let a=0;as-i&&(this.process(n,0),i=0);for(let e=i;e>n&s),i=Number(a&s),c=o?4:0,d=o?0:4;e.setUint32(t+c,r,o),e.setUint32(t+d,i,o)}(n,s-8,BigInt(8*this.length),r),this.process(n,0);const c=(0,o.createView)(e),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=d/4,m=this.get();if(l>m.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function s(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");a(e.outputLen),a(e.blockLen)}function r(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function i(e,t){n(e);const a=t.outputLen;if(e.lengthnew Uint8Array(e.buffer,e.byteOffset,e.byteLength);e.exports.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));e.exports.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(e.exports.rotr=(e,t)=>e<<32-t|e>>>t,e.exports.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!e.exports.isLE)throw new Error("Non little-endian hardware is not supported");const o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));e.exports.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let a=0;a{},e.exports.asyncLoop=async function(t,a,o){let n=Date.now();for(let s=0;s=0&&te instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),a=new Uint8Array(t);for(let t=0,o=0;t"[object Object]"===Object.prototype.toString.call(e)&&e.constructor===Object;e.exports.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||!r(t)))throw new TypeError("Options should be object or undefined");return Object.assign(e,t)},e.exports.wrapConstructor=function(e){const t=t=>e().update(s(t)).digest(),a=e();return t.outputLen=a.outputLen,t.blockLen=a.blockLen,t.create=()=>e(),t},e.exports.wrapConstructorWithOpts=function(e){const t=(t,a)=>e(a).update(s(t)).digest(),a=e({});return t.outputLen=a.outputLen,t.blockLen=a.blockLen,t.create=t=>e(t),t},e.exports.randomBytes=function(e=32){if(a.crypto&&"function"==typeof a.crypto.getRandomValues)return a.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}})),parcelRequire.register("jCFhd",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.crypto=void 0,e.exports.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0})),parcelRequire.register("3N0HN",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.add=e.exports.toBig=e.exports.split=e.exports.fromBig=void 0;const a=BigInt(2**32-1),o=BigInt(32);function n(e,t=!1){return t?{h:Number(e&a),l:Number(e>>o&a)}:{h:0|Number(e>>o&a),l:0|Number(e&a)}}function s(e,t=!1){let a=new Uint32Array(e.length),o=new Uint32Array(e.length);for(let s=0;sBigInt(e>>>0)<>>0);function r(e,t,a,o){const n=(t>>>0)+(o>>>0);return{h:e+a+(n/2**32|0)|0,l:0|n}}e.exports.add=r;const i={fromBig:n,split:s,toBig:e.exports.toBig,shrSH:(e,t,a)=>e>>>a,shrSL:(e,t,a)=>e<<32-a|t>>>a,rotrSH:(e,t,a)=>e>>>a|t<<32-a,rotrSL:(e,t,a)=>e<<32-a|t>>>a,rotrBH:(e,t,a)=>e<<64-a|t>>>a-32,rotrBL:(e,t,a)=>e>>>a-32|t<<64-a,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,a)=>e<>>32-a,rotlSL:(e,t,a)=>t<>>32-a,rotlBH:(e,t,a)=>t<>>64-a,rotlBL:(e,t,a)=>e<>>64-a,add:r,add3L:(e,t,a)=>(e>>>0)+(t>>>0)+(a>>>0),add3H:(e,t,a,o)=>t+a+o+(e/2**32|0)|0,add4L:(e,t,a,o)=>(e>>>0)+(t>>>0)+(a>>>0)+(o>>>0),add4H:(e,t,a,o,n)=>t+a+o+n+(e/2**32|0)|0,add5H:(e,t,a,o,n,s)=>t+a+o+n+s+(e/2**32|0)|0,add5L:(e,t,a,o,n)=>(e>>>0)+(t>>>0)+(a>>>0)+(o>>>0)+(n>>>0)};e.exports.default=i})),parcelRequire.register("kSMoX",(function(e,t){$parcel$export(e.exports,"Point",(()=>v)),$parcel$export(e.exports,"utils",(()=>ee)),$parcel$export(e.exports,"sync",(()=>Z)); +/*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */ +var a=parcelRequire("gFqLz");const o=BigInt(0),n=BigInt(1),s=BigInt(2),r=BigInt(8),i=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),c=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:i,n:i,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")}),d=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),l=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),m=(BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235")),u=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),p=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),h=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952");class g{constructor(e,t,a,o){this.x=e,this.y=t,this.z=a,this.t=o}static fromAffine(e){if(!(e instanceof v))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return e.equals(v.ZERO)?g.ZERO:new g(e.x,e.y,n,N(e.x*e.y))}static toAffineBatch(e){const t=function(e,t=c.P){const a=new Array(e.length),s=P(e.reduce(((e,n,s)=>n===o?e:(a[s]=e,N(e*n,t))),n),t);return e.reduceRight(((e,n,s)=>n===o?e:(a[s]=N(e*a[s],t),N(e*n,t))),s),a}(e.map((e=>e.z)));return e.map(((e,a)=>e.toAffine(t[a])))}static normalizeZ(e){return this.toAffineBatch(e).map(this.fromAffine)}equals(e){f(e);const{x:t,y:a,z:o}=this,{x:n,y:s,z:r}=e,i=N(t*r),c=N(n*o),d=N(a*r),l=N(s*o);return i===c&&d===l}negate(){return new g(N(-this.x),this.y,this.z,N(-this.t))}double(){const{x:e,y:t,z:a}=this,{a:o}=c,n=N(e*e),r=N(t*t),i=N(s*N(a*a)),d=N(o*n),l=e+t,m=N(N(l*l)-n-r),u=d+r,p=u-i,h=d-r,b=N(m*p),f=N(u*h),y=N(m*h),$=N(p*u);return new g(b,f,$,y)}add(e){f(e);const{x:t,y:a,z:n,t:r}=this,{x:i,y:c,z:d,t:l}=e,m=N((a-t)*(c+i)),u=N((a+t)*(c-i)),p=N(u-m);if(p===o)return this.double();const h=N(n*s*l),b=N(r*s*d),y=b+h,$=u+m,w=b-h,k=N(y*p),v=N($*w),x=N(y*w),R=N(p*$);return new g(k,v,R,x)}subtract(e){return this.add(e.negate())}precomputeWindow(e){const t=1+256/e,a=[];let o=this,n=o;for(let s=0;s>=m,i>c&&(i-=l,e+=n);const u=a,p=a+Math.abs(i)-1,h=t%2!=0,g=i<0;0===i?r=r.add(b(h,o[u])):s=s.add(b(g,o[p]))}return g.normalizeZ([s,r])[0]}multiply(e,t){return this.wNAF(q(e,c.l),t)}multiplyUnsafe(e){let t=q(e,c.l,!1);const a=g.BASE,s=g.ZERO;if(t===o)return s;if(this.equals(s)||t===n)return this;if(this.equals(a))return this.wNAF(t);let r=s,i=this;for(;t>o;)t&n&&(r=r.add(i)),i=i.double(),t>>=n;return r}isSmallOrder(){return this.multiplyUnsafe(c.h).equals(g.ZERO)}isTorsionFree(){let e=this.multiplyUnsafe(c.l/s).double();return c.l%s&&(e=e.add(this)),e.equals(g.ZERO)}toAffine(e){const{x:t,y:a,z:o}=this,s=this.equals(g.ZERO);null==e&&(e=s?r:P(o));const i=N(t*e),c=N(a*e),d=N(o*e);if(s)return v.ZERO;if(d!==n)throw new Error("invZ was invalid");return new v(i,c)}fromRistrettoBytes(){$()}toRistrettoBytes(){$()}fromRistrettoHash(){$()}}function b(e,t){const a=t.negate();return e?a:t}function f(e){if(!(e instanceof g))throw new TypeError("ExtendedPoint expected")}function y(e){if(!(e instanceof w))throw new TypeError("RistrettoPoint expected")}function $(){throw new Error("Legacy method: switch to RistrettoPoint")}g.BASE=new g(c.Gx,c.Gy,n,N(c.Gx*c.Gy)),g.ZERO=new g(o,n,n,o);class w{constructor(e){this.ep=e}static calcElligatorRistrettoMap(e){const{d:t}=c,a=N(l*e*e),o=N((a+n)*p);let s=BigInt(-1);const r=N((s-t*a)*N(a+t));let{isValid:i,value:d}=F(o,r),u=N(d*e);C(u)||(u=N(-u)),i||(d=u),i||(s=a);const b=N(s*(a-n)*h-r),f=d*d,y=N((d+d)*r),$=N(b*m),w=N(n-f),k=N(n+f);return new g(N(y*k),N(w*$),N($*k),N(y*w))}static hashToCurve(e){const t=D((e=j(e,64)).slice(0,32)),a=this.calcElligatorRistrettoMap(t),o=D(e.slice(32,64)),n=this.calcElligatorRistrettoMap(o);return new w(a.add(n))}static fromHex(e){e=j(e,32);const{a:t,d:a}=c,s="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",r=D(e);if(!function(e,t){if(e.length!==t.length)return!1;for(let a=0;a=o)throw new Error("Expected 0 < hex < P");if(!t&&r>=d)throw new Error("Expected 0 < hex < 2**256");const i=N(r*r),l=N(i-n),m=N(a*i+n);let{isValid:u,value:p}=F(l,m);if(!u)throw new Error("Point.fromHex: invalid y coordinate");const h=(p&n)===n;return 0!=(128&e[31])!==h&&(p=N(-p)),new v(p,r)}static async fromPrivateKey(e){return(await Y(e)).point}toRawBytes(){const e=T(this.y);return e[31]|=this.x&n?128:0,e}toHex(){return I(this.toRawBytes())}toX25519(){const{y:e}=this;return T(N((n+e)*P(n-e)))}isTorsionFree(){return g.fromAffine(this).isTorsionFree()}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new v(N(-this.x),this.y)}add(e){return g.fromAffine(this).add(g.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return g.fromAffine(this).multiply(e,this).toAffine()}}v.BASE=new v(c.Gx,c.Gy),v.ZERO=new v(o,n);class x{constructor(e,t){this.r=e,this.s=t,this.assertValidity()}static fromHex(e){const t=j(e,64),a=v.fromHex(t.slice(0,32),!1),o=U(t.slice(32,64));return new x(a,o)}assertValidity(){const{r:e,s:t}=this;if(!(e instanceof v))throw new Error("Expected Point instance");return q(t,c.l,!1),this}toRawBytes(){const e=new Uint8Array(64);return e.set(this.r.toRawBytes()),e.set(T(this.s),32),e}toHex(){return I(this.toRawBytes())}}function R(...e){if(!e.every((e=>e instanceof Uint8Array)))throw new Error("Expected Uint8Array list");if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),a=new Uint8Array(t);for(let t=0,o=0;tt.toString(16).padStart(2,"0")));function I(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let a=0;a=o?a:t+a}function P(e,t=c.P){if(e===o||t<=o)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let a=N(e,t),s=t,r=o,i=n,d=n,l=o;for(;a!==o;){const e=s/a,t=s%a,o=r-d*e,n=i-l*e;s=a,a=t,r=d,i=l,d=o,l=n}if(s!==n)throw new Error("invert: does not exist");return N(r,t)}function B(e,t){const{P:a}=c;let n=e;for(;t-- >o;)n*=n,n%=a;return n}function L(e){const{P:t}=c,a=BigInt(5),o=BigInt(10),r=BigInt(20),i=BigInt(40),d=BigInt(80),l=e*e%t*e%t,m=B(l,s)*l%t,u=B(m,n)*e%t,p=B(u,a)*u%t,h=B(p,o)*p%t,g=B(h,r)*h%t,b=B(g,i)*g%t,f=B(b,d)*b%t,y=B(f,d)*b%t,$=B(y,o)*p%t;return{pow_p_5_8:B($,s)*e%t,b2:l}}function F(e,t){const a=N(t*t*t),o=N(a*a*t);let n=N(e*a*L(e*o).pow_p_5_8);const s=N(t*n*n),r=n,i=N(n*l),c=s===e,d=s===N(-e),m=s===N(-e*l);return c&&(n=r),(d||m)&&(n=i),C(n)&&(n=N(-n)),{isValid:c||d,value:n}}function K(e){return F(n,e)}function G(e){return N(U(e),c.l)}function j(e,t){const a=e instanceof Uint8Array?Uint8Array.from(e):S(e);if("number"==typeof t&&a.length!==t)throw new Error(`Expected ${t} bytes`);return a}function q(e,t,a=!0){if(!t)throw new TypeError("Specify max value");if("number"==typeof e&&Number.isSafeInteger(e)&&(e=BigInt(e)),"bigint"==typeof e&&e{if((e=j(e)).length<40||e.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return N(U(e),c.l-n)+n},randomBytes:(e=32)=>{if(Q.web)return Q.web.getRandomValues(new Uint8Array(e));if(Q.node){const{randomBytes:t}=Q.node;return new Uint8Array(t(e).buffer)}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>ee.randomBytes(32),sha512:async(...e)=>{const t=R(...e);if(Q.web){const e=await Q.web.subtle.digest("SHA-512",t.buffer);return new Uint8Array(e)}if(Q.node)return Uint8Array.from(Q.node.createHash("sha512").update(t).digest());throw new Error("The environment doesn't have sha512 function")},precompute(e=8,t=v.BASE){const a=t.equals(v.BASE)?t:new v(t.x,t.y);return a._setWindowSize(e),a.multiply(s),a},sha512Sync:void 0};Object.defineProperties(ee,{sha512Sync:{configurable:!1,get:()=>_,set(e){_||(_=e)}}})})),parcelRequire.register("gFqLz",(function(e,t){})),parcelRequire.register("bDdkr",(function(e,t){!function(e,t){"use strict";function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function n(e,t,a){if(n.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var s;"object"==typeof e?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:parcelRequire("gFqLz").Buffer}catch(e){}function r(e,t){var o=e.charCodeAt(t);return o>=48&&o<=57?o-48:o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:void a(!1,"Invalid character in "+e)}function i(e,t,a){var o=r(e,a);return a-1>=t&&(o|=r(e,a-1)<<4),o}function c(e,t,o,n){for(var s=0,r=0,i=Math.min(e.length,o),c=t;c=49?d-49+10:d>=17?d-17+10:d,a(d>=0&&r0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,o){if("number"==typeof e)return this._initNumber(e,t,o);if("object"==typeof e)return this._initArray(e,t,o);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)r=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[s]|=r<>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);else if("le"===o)for(n=0,s=0;n>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);return this._strip()},n.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var o=0;o=t;o-=2)n=i(e,t,o)<=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;else for(o=(e.length-t)%2==0?t+1:t;o=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;this._strip()},n.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var o=0,n=1;n<=67108863;n*=t)o++;o--,n=n/t|0;for(var s=e.length-a,r=s%o,i=Math.min(s,s-r)+a,d=0,l=a;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){n.prototype.inspect=l}else n.prototype.inspect=l;function l(){return(this.red?""}var m=["","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"],u=[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];n.prototype.toString=function(e,t){var o;if(t=0|t||1,16===(e=e||10)||"hex"===e){o="";for(var n=0,s=0,r=0;r>>24-n&16777215,(n+=2)>=26&&(n-=26,r--),o=0!==s||r!==this.length-1?m[6-c.length]+c+o:c+o}for(0!==s&&(o=s.toString(16)+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],l=p[e];o="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modrn(l).toString(e);o=(h=h.idivn(l)).isZero()?g+o:m[d-g.length]+g+o}for(this.isZero()&&(o="0"+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.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&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16,2)},s&&(n.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function h(e,t,a){a.negative=t.negative^e.negative;var o=e.length+t.length|0;a.length=o,o=o-1|0;var n=0|e.words[0],s=0|t.words[0],r=n*s,i=67108863&r,c=r/67108864|0;a.words[0]=i;for(var d=1;d>>26,m=67108863&c,u=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=u;p++){var h=d-p|0;l+=(r=(n=0|e.words[h])*(s=0|t.words[p])+m)/67108864|0,m=67108863&r}a.words[d]=0|m,c=0|l}return 0!==c?a.words[d]=0|c:a.length--,a._strip()}n.prototype.toArrayLike=function(e,t,o){this._strip();var n=this.byteLength(),s=o||Math.max(1,n);a(n<=s,"byte array longer than desired length"),a(s>0,"Requested array length <= 0");var r=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,s);return this["_toArrayLike"+("le"===t?"LE":"BE")](r,n),r},n.prototype._toArrayLikeLE=function(e,t){for(var a=0,o=0,n=0,s=0;n>8&255),a>16&255),6===s?(a>24&255),o=0,s=0):(o=r>>>24,s+=2)}if(a=0&&(e[a--]=r>>8&255),a>=0&&(e[a--]=r>>16&255),6===s?(a>=0&&(e[a--]=r>>24&255),o=0,s=0):(o=r>>>24,s+=2)}if(a>=0)for(e[a--]=o;a>=0;)e[a--]=0},Math.clz32?n.prototype._countBits=function(e){return 32-Math.clz32(e)}:n.prototype._countBits=function(e){var t=e,a=0;return t>=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var o=0;oe.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),o=e%26;this._expand(t),o>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-o),this._strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var o=e/26|0,n=e%26;return this._expand(o+1),this.words[o]=t?this.words[o]|1<e.length?(a=this,o=e):(a=e,o=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;se.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,o,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,o=e):(a=e,o=this);for(var s=0,r=0;r>26,this.words[r]=67108863&t;for(;0!==s&&r>26,this.words[r]=67108863&t;if(0===s&&r>>13,p=0|r[1],h=8191&p,g=p>>>13,b=0|r[2],f=8191&b,y=b>>>13,$=0|r[3],w=8191&$,k=$>>>13,v=0|r[4],x=8191&v,R=v>>>13,A=0|r[5],I=8191&A,S=A>>>13,E=0|r[6],T=8191&E,C=E>>>13,U=0|r[7],M=8191&U,D=U>>>13,N=0|r[8],P=8191&N,B=N>>>13,L=0|r[9],F=8191&L,K=L>>>13,G=0|i[0],j=8191&G,q=G>>>13,W=0|i[1],z=8191&W,H=W>>>13,_=0|i[2],V=8191&_,Y=_>>>13,J=0|i[3],X=8191&J,O=J>>>13,Z=0|i[4],Q=8191&Z,ee=Z>>>13,te=0|i[5],ae=8191&te,oe=te>>>13,ne=0|i[6],se=8191&ne,re=ne>>>13,ie=0|i[7],ce=8191&ie,de=ie>>>13,le=0|i[8],me=8191&le,ue=le>>>13,pe=0|i[9],he=8191&pe,ge=pe>>>13;a.negative=e.negative^t.negative,a.length=19;var be=(d+(o=Math.imul(m,j))|0)+((8191&(n=(n=Math.imul(m,q))+Math.imul(u,j)|0))<<13)|0;d=((s=Math.imul(u,q))+(n>>>13)|0)+(be>>>26)|0,be&=67108863,o=Math.imul(h,j),n=(n=Math.imul(h,q))+Math.imul(g,j)|0,s=Math.imul(g,q);var fe=(d+(o=o+Math.imul(m,z)|0)|0)+((8191&(n=(n=n+Math.imul(m,H)|0)+Math.imul(u,z)|0))<<13)|0;d=((s=s+Math.imul(u,H)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,o=Math.imul(f,j),n=(n=Math.imul(f,q))+Math.imul(y,j)|0,s=Math.imul(y,q),o=o+Math.imul(h,z)|0,n=(n=n+Math.imul(h,H)|0)+Math.imul(g,z)|0,s=s+Math.imul(g,H)|0;var ye=(d+(o=o+Math.imul(m,V)|0)|0)+((8191&(n=(n=n+Math.imul(m,Y)|0)+Math.imul(u,V)|0))<<13)|0;d=((s=s+Math.imul(u,Y)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(w,j),n=(n=Math.imul(w,q))+Math.imul(k,j)|0,s=Math.imul(k,q),o=o+Math.imul(f,z)|0,n=(n=n+Math.imul(f,H)|0)+Math.imul(y,z)|0,s=s+Math.imul(y,H)|0,o=o+Math.imul(h,V)|0,n=(n=n+Math.imul(h,Y)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,Y)|0;var $e=(d+(o=o+Math.imul(m,X)|0)|0)+((8191&(n=(n=n+Math.imul(m,O)|0)+Math.imul(u,X)|0))<<13)|0;d=((s=s+Math.imul(u,O)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,o=Math.imul(x,j),n=(n=Math.imul(x,q))+Math.imul(R,j)|0,s=Math.imul(R,q),o=o+Math.imul(w,z)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(k,z)|0,s=s+Math.imul(k,H)|0,o=o+Math.imul(f,V)|0,n=(n=n+Math.imul(f,Y)|0)+Math.imul(y,V)|0,s=s+Math.imul(y,Y)|0,o=o+Math.imul(h,X)|0,n=(n=n+Math.imul(h,O)|0)+Math.imul(g,X)|0,s=s+Math.imul(g,O)|0;var we=(d+(o=o+Math.imul(m,Q)|0)|0)+((8191&(n=(n=n+Math.imul(m,ee)|0)+Math.imul(u,Q)|0))<<13)|0;d=((s=s+Math.imul(u,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(I,j),n=(n=Math.imul(I,q))+Math.imul(S,j)|0,s=Math.imul(S,q),o=o+Math.imul(x,z)|0,n=(n=n+Math.imul(x,H)|0)+Math.imul(R,z)|0,s=s+Math.imul(R,H)|0,o=o+Math.imul(w,V)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Y)|0,o=o+Math.imul(f,X)|0,n=(n=n+Math.imul(f,O)|0)+Math.imul(y,X)|0,s=s+Math.imul(y,O)|0,o=o+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0;var ke=(d+(o=o+Math.imul(m,ae)|0)|0)+((8191&(n=(n=n+Math.imul(m,oe)|0)+Math.imul(u,ae)|0))<<13)|0;d=((s=s+Math.imul(u,oe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(T,j),n=(n=Math.imul(T,q))+Math.imul(C,j)|0,s=Math.imul(C,q),o=o+Math.imul(I,z)|0,n=(n=n+Math.imul(I,H)|0)+Math.imul(S,z)|0,s=s+Math.imul(S,H)|0,o=o+Math.imul(x,V)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(R,V)|0,s=s+Math.imul(R,Y)|0,o=o+Math.imul(w,X)|0,n=(n=n+Math.imul(w,O)|0)+Math.imul(k,X)|0,s=s+Math.imul(k,O)|0,o=o+Math.imul(f,Q)|0,n=(n=n+Math.imul(f,ee)|0)+Math.imul(y,Q)|0,s=s+Math.imul(y,ee)|0,o=o+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(g,ae)|0,s=s+Math.imul(g,oe)|0;var ve=(d+(o=o+Math.imul(m,se)|0)|0)+((8191&(n=(n=n+Math.imul(m,re)|0)+Math.imul(u,se)|0))<<13)|0;d=((s=s+Math.imul(u,re)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(M,j),n=(n=Math.imul(M,q))+Math.imul(D,j)|0,s=Math.imul(D,q),o=o+Math.imul(T,z)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(C,z)|0,s=s+Math.imul(C,H)|0,o=o+Math.imul(I,V)|0,n=(n=n+Math.imul(I,Y)|0)+Math.imul(S,V)|0,s=s+Math.imul(S,Y)|0,o=o+Math.imul(x,X)|0,n=(n=n+Math.imul(x,O)|0)+Math.imul(R,X)|0,s=s+Math.imul(R,O)|0,o=o+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,o=o+Math.imul(f,ae)|0,n=(n=n+Math.imul(f,oe)|0)+Math.imul(y,ae)|0,s=s+Math.imul(y,oe)|0,o=o+Math.imul(h,se)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(g,se)|0,s=s+Math.imul(g,re)|0;var xe=(d+(o=o+Math.imul(m,ce)|0)|0)+((8191&(n=(n=n+Math.imul(m,de)|0)+Math.imul(u,ce)|0))<<13)|0;d=((s=s+Math.imul(u,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,o=Math.imul(P,j),n=(n=Math.imul(P,q))+Math.imul(B,j)|0,s=Math.imul(B,q),o=o+Math.imul(M,z)|0,n=(n=n+Math.imul(M,H)|0)+Math.imul(D,z)|0,s=s+Math.imul(D,H)|0,o=o+Math.imul(T,V)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(C,V)|0,s=s+Math.imul(C,Y)|0,o=o+Math.imul(I,X)|0,n=(n=n+Math.imul(I,O)|0)+Math.imul(S,X)|0,s=s+Math.imul(S,O)|0,o=o+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(R,Q)|0,s=s+Math.imul(R,ee)|0,o=o+Math.imul(w,ae)|0,n=(n=n+Math.imul(w,oe)|0)+Math.imul(k,ae)|0,s=s+Math.imul(k,oe)|0,o=o+Math.imul(f,se)|0,n=(n=n+Math.imul(f,re)|0)+Math.imul(y,se)|0,s=s+Math.imul(y,re)|0,o=o+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(g,ce)|0,s=s+Math.imul(g,de)|0;var Re=(d+(o=o+Math.imul(m,me)|0)|0)+((8191&(n=(n=n+Math.imul(m,ue)|0)+Math.imul(u,me)|0))<<13)|0;d=((s=s+Math.imul(u,ue)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(F,j),n=(n=Math.imul(F,q))+Math.imul(K,j)|0,s=Math.imul(K,q),o=o+Math.imul(P,z)|0,n=(n=n+Math.imul(P,H)|0)+Math.imul(B,z)|0,s=s+Math.imul(B,H)|0,o=o+Math.imul(M,V)|0,n=(n=n+Math.imul(M,Y)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Y)|0,o=o+Math.imul(T,X)|0,n=(n=n+Math.imul(T,O)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,O)|0,o=o+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(S,Q)|0,s=s+Math.imul(S,ee)|0,o=o+Math.imul(x,ae)|0,n=(n=n+Math.imul(x,oe)|0)+Math.imul(R,ae)|0,s=s+Math.imul(R,oe)|0,o=o+Math.imul(w,se)|0,n=(n=n+Math.imul(w,re)|0)+Math.imul(k,se)|0,s=s+Math.imul(k,re)|0,o=o+Math.imul(f,ce)|0,n=(n=n+Math.imul(f,de)|0)+Math.imul(y,ce)|0,s=s+Math.imul(y,de)|0,o=o+Math.imul(h,me)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(g,me)|0,s=s+Math.imul(g,ue)|0;var Ae=(d+(o=o+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,ge)|0)+Math.imul(u,he)|0))<<13)|0;d=((s=s+Math.imul(u,ge)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(F,z),n=(n=Math.imul(F,H))+Math.imul(K,z)|0,s=Math.imul(K,H),o=o+Math.imul(P,V)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(B,V)|0,s=s+Math.imul(B,Y)|0,o=o+Math.imul(M,X)|0,n=(n=n+Math.imul(M,O)|0)+Math.imul(D,X)|0,s=s+Math.imul(D,O)|0,o=o+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,ee)|0,o=o+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(S,ae)|0,s=s+Math.imul(S,oe)|0,o=o+Math.imul(x,se)|0,n=(n=n+Math.imul(x,re)|0)+Math.imul(R,se)|0,s=s+Math.imul(R,re)|0,o=o+Math.imul(w,ce)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(k,ce)|0,s=s+Math.imul(k,de)|0,o=o+Math.imul(f,me)|0,n=(n=n+Math.imul(f,ue)|0)+Math.imul(y,me)|0,s=s+Math.imul(y,ue)|0;var Ie=(d+(o=o+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,ge)|0)+Math.imul(g,he)|0))<<13)|0;d=((s=s+Math.imul(g,ge)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,o=Math.imul(F,V),n=(n=Math.imul(F,Y))+Math.imul(K,V)|0,s=Math.imul(K,Y),o=o+Math.imul(P,X)|0,n=(n=n+Math.imul(P,O)|0)+Math.imul(B,X)|0,s=s+Math.imul(B,O)|0,o=o+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(D,Q)|0,s=s+Math.imul(D,ee)|0,o=o+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,oe)|0)+Math.imul(C,ae)|0,s=s+Math.imul(C,oe)|0,o=o+Math.imul(I,se)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(S,se)|0,s=s+Math.imul(S,re)|0,o=o+Math.imul(x,ce)|0,n=(n=n+Math.imul(x,de)|0)+Math.imul(R,ce)|0,s=s+Math.imul(R,de)|0,o=o+Math.imul(w,me)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(k,me)|0,s=s+Math.imul(k,ue)|0;var Se=(d+(o=o+Math.imul(f,he)|0)|0)+((8191&(n=(n=n+Math.imul(f,ge)|0)+Math.imul(y,he)|0))<<13)|0;d=((s=s+Math.imul(y,ge)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,o=Math.imul(F,X),n=(n=Math.imul(F,O))+Math.imul(K,X)|0,s=Math.imul(K,O),o=o+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(B,Q)|0,s=s+Math.imul(B,ee)|0,o=o+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(D,ae)|0,s=s+Math.imul(D,oe)|0,o=o+Math.imul(T,se)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(C,se)|0,s=s+Math.imul(C,re)|0,o=o+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(S,ce)|0,s=s+Math.imul(S,de)|0,o=o+Math.imul(x,me)|0,n=(n=n+Math.imul(x,ue)|0)+Math.imul(R,me)|0,s=s+Math.imul(R,ue)|0;var Ee=(d+(o=o+Math.imul(w,he)|0)|0)+((8191&(n=(n=n+Math.imul(w,ge)|0)+Math.imul(k,he)|0))<<13)|0;d=((s=s+Math.imul(k,ge)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(F,Q),n=(n=Math.imul(F,ee))+Math.imul(K,Q)|0,s=Math.imul(K,ee),o=o+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(B,ae)|0,s=s+Math.imul(B,oe)|0,o=o+Math.imul(M,se)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(D,se)|0,s=s+Math.imul(D,re)|0,o=o+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,de)|0)+Math.imul(C,ce)|0,s=s+Math.imul(C,de)|0,o=o+Math.imul(I,me)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(S,me)|0,s=s+Math.imul(S,ue)|0;var Te=(d+(o=o+Math.imul(x,he)|0)|0)+((8191&(n=(n=n+Math.imul(x,ge)|0)+Math.imul(R,he)|0))<<13)|0;d=((s=s+Math.imul(R,ge)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,o=Math.imul(F,ae),n=(n=Math.imul(F,oe))+Math.imul(K,ae)|0,s=Math.imul(K,oe),o=o+Math.imul(P,se)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(B,se)|0,s=s+Math.imul(B,re)|0,o=o+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,de)|0)+Math.imul(D,ce)|0,s=s+Math.imul(D,de)|0,o=o+Math.imul(T,me)|0,n=(n=n+Math.imul(T,ue)|0)+Math.imul(C,me)|0,s=s+Math.imul(C,ue)|0;var Ce=(d+(o=o+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,ge)|0)+Math.imul(S,he)|0))<<13)|0;d=((s=s+Math.imul(S,ge)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(F,se),n=(n=Math.imul(F,re))+Math.imul(K,se)|0,s=Math.imul(K,re),o=o+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(B,ce)|0,s=s+Math.imul(B,de)|0,o=o+Math.imul(M,me)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(D,me)|0,s=s+Math.imul(D,ue)|0;var Ue=(d+(o=o+Math.imul(T,he)|0)|0)+((8191&(n=(n=n+Math.imul(T,ge)|0)+Math.imul(C,he)|0))<<13)|0;d=((s=s+Math.imul(C,ge)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,o=Math.imul(F,ce),n=(n=Math.imul(F,de))+Math.imul(K,ce)|0,s=Math.imul(K,de),o=o+Math.imul(P,me)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(B,me)|0,s=s+Math.imul(B,ue)|0;var Me=(d+(o=o+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,ge)|0)+Math.imul(D,he)|0))<<13)|0;d=((s=s+Math.imul(D,ge)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,o=Math.imul(F,me),n=(n=Math.imul(F,ue))+Math.imul(K,me)|0,s=Math.imul(K,ue);var De=(d+(o=o+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,ge)|0)+Math.imul(B,he)|0))<<13)|0;d=((s=s+Math.imul(B,ge)|0)+(n>>>13)|0)+(De>>>26)|0,De&=67108863;var Ne=(d+(o=Math.imul(F,he))|0)+((8191&(n=(n=Math.imul(F,ge))+Math.imul(K,he)|0))<<13)|0;return d=((s=Math.imul(K,ge))+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=be,c[1]=fe,c[2]=ye,c[3]=$e,c[4]=we,c[5]=ke,c[6]=ve,c[7]=xe,c[8]=Re,c[9]=Ae,c[10]=Ie,c[11]=Se,c[12]=Ee,c[13]=Te,c[14]=Ce,c[15]=Ue,c[16]=Me,c[17]=De,c[18]=Ne,0!==d&&(c[19]=d,a.length++),a};function b(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var o=0,n=0,s=0;s>>26)|0)>>>26,r&=67108863}a.words[s]=i,o=r,r=n}return 0!==o?a.words[s]=o:a.length--,a._strip()}function f(e,t,a){return b(e,t,a)}function y(e,t){this.x=e,this.y=t}Math.imul||(g=h),n.prototype.mulTo=function(e,t){var a=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):a<63?h(this,e,t):a<1024?b(this,e,t):f(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),a=n.prototype._countBits(e)-1,o=0;o>=1;return o},y.prototype.permute=function(e,t,a,o,n,s){for(var r=0;r>>=1)n++;return 1<>>=13,o[2*r+1]=8191&s,s>>>=13;for(r=2*t;r>=26,o+=s/67108864|0,o+=r>>>26,this.words[n]=67108863&r}return 0!==o&&(this.words[n]=o,this.length++),t?this.ineg():this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n&1}return t}(e);if(0===t.length)return new n(1);for(var a=this,o=0;o=0);var t,o=e%26,n=(e-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var r=0;for(t=0;t>>26-o}r&&(this.words[t]=r,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var s=e%26,r=Math.min((e-s)/26,this.length),i=67108863^67108863>>>s<r)for(this.length-=r,d=0;d=0&&(0!==l||d>=n);d--){var m=0|this.words[d];this.words[d]=l<<26-s|m>>>s,l=m&i}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(e,t,o){return a(0===this.negative),this.iushrn(e,t,o)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26,n=1<=0);var t=e%26,o=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==t&&o++,this.length=Math.min(o,this.length),0!==t){var n=67108863^67108863>>>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},n.prototype.isubn=function(e){if(a("number"==typeof e),a(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>26)-(c/67108864|0),this.words[n+o]=67108863&s}for(;n>26,this.words[n+o]=67108863&s;if(0===i)return this._strip();for(a(-1===i),i=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this._strip()},n.prototype._wordDiv=function(e,t){var a=(this.length,e.length),o=this.clone(),s=e,r=0|s.words[s.length-1];0!==(a=26-this._countBits(r))&&(s=s.ushln(a),o.iushln(a),r=0|s.words[s.length-1]);var i,c=o.length-s.length;if("mod"!==t){(i=new n(null)).length=c+1,i.words=new Array(i.length);for(var d=0;d=0;m--){var u=67108864*(0|o.words[s.length+m])+(0|o.words[s.length+m-1]);for(u=Math.min(u/r|0,67108863),o._ishlnsubmul(s,u,m);0!==o.negative;)u--,o.negative=0,o._ishlnsubmul(s,1,m),o.isZero()||(o.negative^=1);i&&(i.words[m]=u)}return i&&i._strip(),o._strip(),"div"!==t&&0!==a&&o.iushrn(a),{div:i||null,mod:o}},n.prototype.divmod=function(e,t,o){return a(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(i=this.neg().divmod(e,t),"mod"!==t&&(s=i.div.neg()),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.iadd(e)),{div:s,mod:r}):0===this.negative&&0!==e.negative?(i=this.divmod(e.neg(),t),"mod"!==t&&(s=i.div.neg()),{div:s,mod:i.mod}):0!=(this.negative&e.negative)?(i=this.neg().divmod(e.neg(),t),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.isub(e)),{div:i.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modrn(e.words[0]))}:this._wordDiv(e,t);var s,r,i},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),n=e.andln(1),s=a.cmp(o);return s<0||1===n&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modrn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var o=67108864%e,n=0,s=this.length-1;s>=0;s--)n=(o*n+(0|this.words[s]))%e;return t?-n:n},n.prototype.modn=function(e){return this.modrn(e)},n.prototype.idivn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var o=0,n=this.length-1;n>=0;n--){var s=(0|this.words[n])+67108864*o;this.words[n]=s/e|0,o=s%e}return this._strip(),t?this.ineg():this},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s=new n(1),r=new n(0),i=new n(0),c=new n(1),d=0;t.isEven()&&o.isEven();)t.iushrn(1),o.iushrn(1),++d;for(var l=o.clone(),m=t.clone();!t.isZero();){for(var u=0,p=1;0==(t.words[0]&p)&&u<26;++u,p<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(s.isOdd()||r.isOdd())&&(s.iadd(l),r.isub(m)),s.iushrn(1),r.iushrn(1);for(var h=0,g=1;0==(o.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(o.iushrn(h);h-- >0;)(i.isOdd()||c.isOdd())&&(i.iadd(l),c.isub(m)),i.iushrn(1),c.iushrn(1);t.cmp(o)>=0?(t.isub(o),s.isub(i),r.isub(c)):(o.isub(t),i.isub(s),c.isub(r))}return{a:i,b:c,gcd:o.iushln(d)}},n.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s,r=new n(1),i=new n(0),c=o.clone();t.cmpn(1)>0&&o.cmpn(1)>0;){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)r.isOdd()&&r.iadd(c),r.iushrn(1);for(var m=0,u=1;0==(o.words[0]&u)&&m<26;++m,u<<=1);if(m>0)for(o.iushrn(m);m-- >0;)i.isOdd()&&i.iadd(c),i.iushrn(1);t.cmp(o)>=0?(t.isub(o),r.isub(i)):(o.isub(t),i.isub(r))}return(s=0===t.cmpn(1)?r:i).cmpn(0)<0&&s.iadd(e),s},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var o=0;t.isEven()&&a.isEven();o++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var s=t;t=a,a=s}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(o)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,o=(e-t)/26,n=1<>>26,i&=67108863,this.words[r]=i}return 0!==s&&(this.words[r]=s,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,o=e<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this._strip(),this.length>1)t=1;else{o&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var o=0|this.words[a],n=0|e.words[a];if(o!==n){on&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new A(e)},n.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var $={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function R(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(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)}w.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},o(k,w),k.prototype.split=function(e,t){for(var a=4194303,o=Math.min(e.length,9),n=0;n>>22,s=r}s>>>=22,e.words[n-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},k.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=o}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if($[e])return $[e];var t;if("k256"===e)t=new k;else if("p224"===e)t=new v;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new R}return $[e]=t,t},A.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(d(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},A.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var o=this.m.add(new n(1)).iushrn(2);return this.pow(e,o)}for(var s=this.m.subn(1),r=0;!s.isZero()&&0===s.andln(1);)r++,s.iushrn(1);a(!s.isZero());var i=new n(1).toRed(this),c=i.redNeg(),d=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);0!==this.pow(l,d).cmp(c);)l.redIAdd(c);for(var m=this.pow(l,s),u=this.pow(e,s.addn(1).iushrn(1)),p=this.pow(e,s),h=r;0!==p.cmp(i);){for(var g=p,b=0;0!==g.cmp(i);b++)g=g.redSqr();a(b=0;o--){for(var d=t.words[o],l=c-1;l>=0;l--){var m=d>>l&1;s!==a[0]&&(s=this.sqr(s)),0!==m||0!==r?(r<<=1,r|=m,(4===++i||0===o&&0===l)&&(s=this.mul(s,a[r]),i=0,r=0)):i=0}c=26}return s},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new I(e)},o(I,A),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(o).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var a=e.mul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=a.isub(o).iushrn(this.shift),r=s;return s.cmp(this.m)>=0?r=s.isub(this.m):s.cmpn(0)<0&&(r=s.iadd(this.m)),r._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)})),parcelRequire.register("8eDFA",(function(e,t){var a=parcelRequire("dOwV2");e.exports=a("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")})),parcelRequire.register("dOwV2",(function(e,t){"use strict";var a=parcelRequire("csqZT").Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),o=0;o>>0,l=new Uint8Array(r);e[o];){var m=t[e.charCodeAt(o)];if(255===m)return;for(var u=0,p=r-1;(0!==m||u>>0,l[p]=m%256>>>0,m=m/256>>>0;if(0!==m)throw new Error("Non-zero carry");s=u,o++}for(var h=r-s;h!==r&&0===l[h];)h++;var g=a.allocUnsafe(n+(r-h));g.fill(0,0,n);for(var b=n;h!==r;)g[b++]=l[h++];return g}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=a.from(t)),!a.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var o=0,n=0,s=0,r=t.length;s!==r&&0===t[s];)s++,o++;for(var d=(r-s)*l+1>>>0,m=new Uint8Array(d);s!==r;){for(var u=t[s],p=0,h=d-1;(0!==u||p>>0,m[h]=u%i>>>0,u=u/i>>>0;if(0!==u)throw new Error("Non-zero carry");n=p,s++}for(var g=d-n;g!==d&&0===m[g];)g++;for(var b=c.repeat(o);g */ +var a=parcelRequire("ajHSv"),o=a.Buffer;function n(e,t){for(var a in e)t[a]=e[a]}function s(e,t,a){return o(e,t,a)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=a:(n(a,e.exports),e.exports.Buffer=s),s.prototype=Object.create(o.prototype),n(o,s),s.from=function(e,t,a){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,a)},s.alloc=function(e,t,a){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof a?n.fill(t,a):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a.SlowBuffer(e)}})),parcelRequire.register("3GeYT",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.sha224=e.exports.sha256=void 0;var a=parcelRequire("4Lck3"),o=parcelRequire("5gkUA");const n=(e,t,a)=>e&t^e&a^t&a,s=new Uint32Array([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]),r=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),i=new Uint32Array(64);class c extends a.SHA2{constructor(){super(64,32,8,!1),this.A=0|r[0],this.B=0|r[1],this.C=0|r[2],this.D=0|r[3],this.E=0|r[4],this.F=0|r[5],this.G=0|r[6],this.H=0|r[7]}get(){const{A:e,B:t,C:a,D:o,E:n,F:s,G:r,H:i}=this;return[e,t,a,o,n,s,r,i]}set(e,t,a,o,n,s,r,i){this.A=0|e,this.B=0|t,this.C=0|a,this.D=0|o,this.E=0|n,this.F=0|s,this.G=0|r,this.H=0|i}process(e,t){for(let a=0;a<16;a++,t+=4)i[a]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=i[e-15],a=i[e-2],n=(0,o.rotr)(t,7)^(0,o.rotr)(t,18)^t>>>3,s=(0,o.rotr)(a,17)^(0,o.rotr)(a,19)^a>>>10;i[e]=s+i[e-7]+n+i[e-16]|0}let{A:a,B:r,C:c,D:d,E:l,F:m,G:u,H:p}=this;for(let e=0;e<64;e++){const t=p+((0,o.rotr)(l,6)^(0,o.rotr)(l,11)^(0,o.rotr)(l,25))+((h=l)&m^~h&u)+s[e]+i[e]|0,g=((0,o.rotr)(a,2)^(0,o.rotr)(a,13)^(0,o.rotr)(a,22))+n(a,r,c)|0;p=u,u=m,m=l,l=d+t|0,d=c,c=r,r=a,a=t+g|0}var h;a=a+this.A|0,r=r+this.B|0,c=c+this.C|0,d=d+this.D|0,l=l+this.E|0,m=m+this.F|0,u=u+this.G|0,p=p+this.H|0,this.set(a,r,c,d,l,m,u,p)}roundClean(){i.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class d extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}e.exports.sha256=(0,o.wrapConstructor)((()=>new c)),e.exports.sha224=(0,o.wrapConstructor)((()=>new d))})),parcelRequire.register("7RSTc",(function(e,t){var a=parcelRequire("ajHSv").Buffer,o=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=e.exports&&e.exports.__decorate||function(e,t,a,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,o);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(r=(s<3?n(r):s>3?n(t,a,r):n(t,a))||r);return s>3&&r&&Object.defineProperty(t,a,r),r},r=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&o(t,e,a);return n(t,e),t},i=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.deserializeUnchecked=e.exports.deserialize=e.exports.serialize=e.exports.BinaryReader=e.exports.BinaryWriter=e.exports.BorshError=e.exports.baseDecode=e.exports.baseEncode=void 0;const c=i(parcelRequire("bDdkr")),d=i(parcelRequire("8eDFA")),l=r(parcelRequire("kmsPg")),m=new("function"!=typeof TextDecoder?l.TextDecoder:TextDecoder)("utf-8",{fatal:!0});e.exports.baseEncode=function(e){return"string"==typeof e&&(e=a.from(e,"utf8")),d.default.encode(a.from(e))},e.exports.baseDecode=function(e){return a.from(d.default.decode(e))};const u=1024;class p extends Error{constructor(e){super(e),this.fieldPath=[],this.originalMessage=e}addToFieldPath(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}e.exports.BorshError=p;class h{constructor(){this.buf=a.alloc(u),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=a.concat([this.buf,a.alloc(u)]))}writeU8(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}writeU16(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}writeU32(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}writeU64(e){this.maybeResize(),this.writeBuffer(a.from(new c.default(e).toArray("le",8)))}writeU128(e){this.maybeResize(),this.writeBuffer(a.from(new c.default(e).toArray("le",16)))}writeU256(e){this.maybeResize(),this.writeBuffer(a.from(new c.default(e).toArray("le",32)))}writeU512(e){this.maybeResize(),this.writeBuffer(a.from(new c.default(e).toArray("le",64)))}writeBuffer(e){this.buf=a.concat([a.from(this.buf.subarray(0,this.length)),e,a.alloc(u)]),this.length+=e.length}writeString(e){this.maybeResize();const t=a.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}writeFixedArray(e){this.writeBuffer(a.from(e))}writeArray(e,t){this.maybeResize(),this.writeU32(e.length);for(const a of e)this.maybeResize(),t(a)}toArray(){return this.buf.subarray(0,this.length)}}function g(e,t,a){const o=a.value;a.value=function(...e){try{return o.apply(this,e)}catch(e){if(e instanceof RangeError){const t=e.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(t)>=0)throw new p("Reached the end of buffer when deserializing")}throw e}}}e.exports.BinaryWriter=h;class b{constructor(e){this.buf=e,this.offset=0}readU8(){const e=this.buf.readUInt8(this.offset);return this.offset+=1,e}readU16(){const e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}readU32(){const e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}readU64(){const e=this.readBuffer(8);return new c.default(e,"le")}readU128(){const e=this.readBuffer(16);return new c.default(e,"le")}readU256(){const e=this.readBuffer(32);return new c.default(e,"le")}readU512(){const e=this.readBuffer(64);return new c.default(e,"le")}readBuffer(e){if(this.offset+e>this.buf.length)throw new p(`Expected buffer length ${e} isn't within bounds`);const t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readU32(),t=this.readBuffer(e);try{return m.decode(t)}catch(e){throw new p(`Error decoding UTF-8 string: ${e}`)}}readFixedArray(e){return new Uint8Array(this.readBuffer(e))}readArray(e){const t=this.readU32(),a=Array();for(let o=0;o{y(e,t,a,o[0],n)}));else if(void 0!==o.kind)switch(o.kind){case"option":null==a?n.writeU8(0):(n.writeU8(1),y(e,t,a,o.type,n));break;case"map":n.writeU32(a.size),a.forEach(((a,s)=>{y(e,t,s,o.key,n),y(e,t,a,o.value,n)}));break;default:throw new p(`FieldType ${o} unrecognized`)}else $(e,a,n)}catch(e){throw e instanceof p&&e.addToFieldPath(t),e}}function $(e,t,a){if("function"==typeof t.borshSerialize)return void t.borshSerialize(a);const o=e.get(t.constructor);if(!o)throw new p(`Class ${t.constructor.name} is missing in schema`);if("struct"===o.kind)o.fields.map((([o,n])=>{y(e,o,t[o],n,a)}));else{if("enum"!==o.kind)throw new p(`Unexpected schema kind: ${o.kind} for ${t.constructor.name}`);{const n=t[o.field];for(let s=0;sw(e,t,a[0],o)))}if("option"===a.kind){return o.readU8()?w(e,t,a.type,o):void 0}if("map"===a.kind){let n=new Map;const s=o.readU32();for(let r=0;r=o.values.length)throw new p(`Enum index: ${n} is out of range`);const[s,r]=o.values[n];return new t({[s]:w(e,s,r,a)})}throw new p(`Unexpected schema kind: ${o.kind} for ${t.constructor.name}`)}s([g],b.prototype,"readU8",null),s([g],b.prototype,"readU16",null),s([g],b.prototype,"readU32",null),s([g],b.prototype,"readU64",null),s([g],b.prototype,"readU128",null),s([g],b.prototype,"readU256",null),s([g],b.prototype,"readU512",null),s([g],b.prototype,"readString",null),s([g],b.prototype,"readFixedArray",null),s([g],b.prototype,"readArray",null),e.exports.BinaryReader=b,e.exports.serialize=function(e,t,a=h){const o=new a;return $(e,t,o),o.toArray()},e.exports.deserialize=function(e,t,a,o=b){const n=new o(a),s=k(e,t,n);if(n.offseta),(e=>a=e)),$parcel$export(e.exports,"TextDecoder",(()=>o),(e=>o=e));var r=-1;function i(e){this.tokens=[].slice.call(e)}i.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():r},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var c=-1;function d(e,t){if(e)throw TypeError("Decoder error");return t||65533}var l="utf-8";function m(e,t){if(!(this instanceof m))return new m(e,t);if((e=void 0!==e?String(e).toLowerCase():l)!==l)throw new Error("Encoding not supported. Only utf-8 is supported");t=s(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(t.fatal),this._ignoreBOM=Boolean(t.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function u(e,t){if(!(this instanceof u))return new u(e,t);if((e=void 0!==e?String(e).toLowerCase():l)!==l)throw new Error("Encoding not supported. Only utf-8 is supported");t=s(t),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(t.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function p(e){var t=e.fatal,a=0,o=0,s=0,i=128,l=191;this.handler=function(e,m){if(m===r&&0!==s)return s=0,d(t);if(m===r)return c;if(0===s){if(n(m,0,127))return m;if(n(m,194,223))s=1,a=m-192;else if(n(m,224,239))224===m&&(i=160),237===m&&(l=159),s=2,a=m-224;else{if(!n(m,240,244))return d(t);240===m&&(i=144),244===m&&(l=143),s=3,a=m-240}return a<<=6*s,null}if(!n(m,i,l))return a=s=o=0,i=128,l=191,e.prepend(m),d(t);if(i=128,l=191,a+=m-128<<6*(s-(o+=1)),o!==s)return null;var u=a;return a=s=o=0,u}}function h(e){e.fatal;this.handler=function(e,t){if(t===r)return c;if(n(t,0,127))return t;var a,o;n(t,128,2047)?(a=1,o=192):n(t,2048,65535)?(a=2,o=224):n(t,65536,1114111)&&(a=3,o=240);for(var s=[(t>>6*a)+o];a>0;){var i=t>>6*(a-1);s.push(128|63&i),a-=1}return s}}m.prototype={decode:function(e,t){var a;a="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=s(t),this._streaming||(this._decoder=new p({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(t.stream);for(var o,n=new i(a),r=[];!n.endOfStream()&&(o=this._decoder.handler(n,n.read()))!==c;)null!==o&&(Array.isArray(o)?r.push.apply(r,o):r.push(o));if(!this._streaming){do{if((o=this._decoder.handler(n,n.read()))===c)break;null!==o&&(Array.isArray(o)?r.push.apply(r,o):r.push(o))}while(!n.endOfStream());this._decoder=null}return r.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===r[0]?(this._BOMseen=!0,r.shift()):this._BOMseen=!0)),function(e){for(var t="",a=0;a>10),56320+(1023&o)))}return t}(r)}},u.prototype={encode:function(e,t){e=e?String(e):"",t=s(t),this._streaming||(this._encoder=new h(this._options)),this._streaming=Boolean(t.stream);for(var a,o=[],n=new i(function(e){for(var t=String(e),a=t.length,o=0,n=[];o57343)n.push(s);else if(56320<=s&&s<=57343)n.push(65533);else if(55296<=s&&s<=56319)if(o===a-1)n.push(65533);else{var r=e.charCodeAt(o+1);if(56320<=r&&r<=57343){var i=1023&s,c=1023&r;n.push(65536+(i<<10)+c),o+=1}else n.push(65533)}o+=1}return n}(e));!n.endOfStream()&&(a=this._encoder.handler(n,n.read()))!==c;)Array.isArray(a)?o.push.apply(o,a):o.push(a);if(!this._streaming){for(;(a=this._encoder.handler(n,n.read()))!==c;)Array.isArray(a)?o.push.apply(o,a):o.push(a);this._encoder=null}return new Uint8Array(o)}},a=u,o=m})),parcelRequire.register("crvhM",(function(e,t){ +/** + * Support for translating between Uint8Array instances and JavaScript + * native types. + * + * {@link module:Layout~Layout|Layout} is the basis of a class + * hierarchy that associates property names with sequences of encoded + * bytes. + * + * Layouts are supported for these scalar (numeric) types: + * * {@link module:Layout~UInt|Unsigned integers in little-endian + * format} with {@link module:Layout.u8|8-bit}, {@link + * module:Layout.u16|16-bit}, {@link module:Layout.u24|24-bit}, + * {@link module:Layout.u32|32-bit}, {@link + * module:Layout.u40|40-bit}, and {@link module:Layout.u48|48-bit} + * representation ranges; + * * {@link module:Layout~UIntBE|Unsigned integers in big-endian + * format} with {@link module:Layout.u16be|16-bit}, {@link + * module:Layout.u24be|24-bit}, {@link module:Layout.u32be|32-bit}, + * {@link module:Layout.u40be|40-bit}, and {@link + * module:Layout.u48be|48-bit} representation ranges; + * * {@link module:Layout~Int|Signed integers in little-endian + * format} with {@link module:Layout.s8|8-bit}, {@link + * module:Layout.s16|16-bit}, {@link module:Layout.s24|24-bit}, + * {@link module:Layout.s32|32-bit}, {@link + * module:Layout.s40|40-bit}, and {@link module:Layout.s48|48-bit} + * representation ranges; + * * {@link module:Layout~IntBE|Signed integers in big-endian format} + * with {@link module:Layout.s16be|16-bit}, {@link + * module:Layout.s24be|24-bit}, {@link module:Layout.s32be|32-bit}, + * {@link module:Layout.s40be|40-bit}, and {@link + * module:Layout.s48be|48-bit} representation ranges; + * * 64-bit integral values that decode to an exact (if magnitude is + * less than 2^53) or nearby integral Number in {@link + * module:Layout.nu64|unsigned little-endian}, {@link + * module:Layout.nu64be|unsigned big-endian}, {@link + * module:Layout.ns64|signed little-endian}, and {@link + * module:Layout.ns64be|unsigned big-endian} encodings; + * * 32-bit floating point values with {@link + * module:Layout.f32|little-endian} and {@link + * module:Layout.f32be|big-endian} representations; + * * 64-bit floating point values with {@link + * module:Layout.f64|little-endian} and {@link + * module:Layout.f64be|big-endian} representations; + * * {@link module:Layout.const|Constants} that take no space in the + * encoded expression. + * + * and for these aggregate types: + * * {@link module:Layout.seq|Sequence}s of instances of a {@link + * module:Layout~Layout|Layout}, with JavaScript representation as + * an Array and constant or data-dependent {@link + * module:Layout~Sequence#count|length}; + * * {@link module:Layout.struct|Structure}s that aggregate a + * heterogeneous sequence of {@link module:Layout~Layout|Layout} + * instances, with JavaScript representation as an Object; + * * {@link module:Layout.union|Union}s that support multiple {@link + * module:Layout~VariantLayout|variant layouts} over a fixed + * (padded) or variable (not padded) span of bytes, using an + * unsigned integer at the start of the data or a separate {@link + * module:Layout.unionLayoutDiscriminator|layout element} to + * determine which layout to use when interpreting the buffer + * contents; + * * {@link module:Layout.bits|BitStructure}s that contain a sequence + * of individual {@link + * module:Layout~BitStructure#addField|BitField}s packed into an 8, + * 16, 24, or 32-bit unsigned integer starting at the least- or + * most-significant bit; + * * {@link module:Layout.cstr|C strings} of varying length; + * * {@link module:Layout.blob|Blobs} of fixed- or variable-{@link + * module:Layout~Blob#length|length} raw data. + * + * All {@link module:Layout~Layout|Layout} instances are immutable + * after construction, to prevent internal state from becoming + * inconsistent. + * + * @local Layout + * @local ExternalLayout + * @local GreedyCount + * @local OffsetLayout + * @local UInt + * @local UIntBE + * @local Int + * @local IntBE + * @local NearUInt64 + * @local NearUInt64BE + * @local NearInt64 + * @local NearInt64BE + * @local Float + * @local FloatBE + * @local Double + * @local DoubleBE + * @local Sequence + * @local Structure + * @local UnionDiscriminator + * @local UnionLayoutDiscriminator + * @local Union + * @local VariantLayout + * @local BitStructure + * @local BitField + * @local Boolean + * @local Blob + * @local CString + * @local Constant + * @local bindConstructorLayout + * @module Layout + * @license MIT + * @author Peter A. Bigot + * @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub} + */ +"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.s16=e.exports.s8=e.exports.nu64be=e.exports.u48be=e.exports.u40be=e.exports.u32be=e.exports.u24be=e.exports.u16be=e.exports.nu64=e.exports.u48=e.exports.u40=e.exports.u32=e.exports.u24=e.exports.u16=e.exports.u8=e.exports.offset=e.exports.greedy=e.exports.Constant=e.exports.UTF8=e.exports.CString=e.exports.Blob=e.exports.Boolean=e.exports.BitField=e.exports.BitStructure=e.exports.VariantLayout=e.exports.Union=e.exports.UnionLayoutDiscriminator=e.exports.UnionDiscriminator=e.exports.Structure=e.exports.Sequence=e.exports.DoubleBE=e.exports.Double=e.exports.FloatBE=e.exports.Float=e.exports.NearInt64BE=e.exports.NearInt64=e.exports.NearUInt64BE=e.exports.NearUInt64=e.exports.IntBE=e.exports.Int=e.exports.UIntBE=e.exports.UInt=e.exports.OffsetLayout=e.exports.GreedyCount=e.exports.ExternalLayout=e.exports.bindConstructorLayout=e.exports.nameWithProperty=e.exports.Layout=e.exports.uint8ArrayToBuffer=e.exports.checkUint8Array=void 0,e.exports.constant=e.exports.utf8=e.exports.cstr=e.exports.blob=e.exports.unionLayoutDiscriminator=e.exports.union=e.exports.seq=e.exports.bits=e.exports.struct=e.exports.f64be=e.exports.f64=e.exports.f32be=e.exports.f32=e.exports.ns64be=e.exports.s48be=e.exports.s40be=e.exports.s32be=e.exports.s24be=e.exports.s16be=e.exports.ns64=e.exports.s48=e.exports.s40=e.exports.s32=e.exports.s24=void 0;var a=parcelRequire("ajHSv");function o(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function n(e){return o(e),a.Buffer.from(e.buffer,e.byteOffset,e.length)}e.exports.checkUint8Array=o,e.exports.uint8ArrayToBuffer=n;class s{constructor(e,t){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}getSpan(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){const t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}}function r(e,t){return t.property?e+"["+t.property+"]":e}e.exports.Layout=s,e.exports.nameWithProperty=r,e.exports.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(e,"layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof s))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(t,"boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=()=>new e,Object.defineProperty(e.prototype,"encode",{value(e,a){return t.encode(this,e,a)},writable:!0}),Object.defineProperty(e,"decode",{value:(e,a)=>t.decode(e,a),writable:!0})};class i extends s{isCount(){throw new Error("ExternalLayout is abstract")}}e.exports.ExternalLayout=i;class c extends i{constructor(e=1,t){if(!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");super(-1,t),this.elementSpan=e}isCount(){return!0}decode(e,t=0){o(e);const a=e.length-t;return Math.floor(a/this.elementSpan)}encode(e,t,a){return 0}}e.exports.GreedyCount=c;class d extends i{constructor(e,t=0,a){if(!(e instanceof s))throw new TypeError("layout must be a Layout");if(!Number.isInteger(t))throw new TypeError("offset must be integer or undefined");super(e.span,a||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof l||this.layout instanceof m}decode(e,t=0){return this.layout.decode(e,t+this.offset)}encode(e,t,a=0){return this.layout.encode(e,t,a+this.offset)}}e.exports.OffsetLayout=d;class l extends s{constructor(e,t){if(super(e,t),6e+o.encode(n,t,a+e)),0);return this.count instanceof i&&this.count.encode(e.length,t,a),n}}e.exports.Sequence=A;class I extends s{constructor(e,t,a){if(!Array.isArray(e)||!e.reduce(((e,t)=>e&&t instanceof s),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof t&&void 0===a&&(a=t,t=void 0);for(const t of e)if(0>t.span&&void 0===t.property)throw new Error("fields cannot contain unnamed variable-length layout");let o=-1;try{o=e.reduce(((e,t)=>e+t.getSpan()),0)}catch(e){}super(o,t),this.fields=e,this.decodePrefixes=!!a}getSpan(e,t=0){if(0<=this.span)return this.span;let a=0;try{a=this.fields.reduce(((a,o)=>{const n=o.getSpan(e,t);return t+=n,a+n}),0)}catch(e){throw new RangeError("indeterminate span")}return a}decode(e,t=0){o(e);const a=this.makeDestinationObject();for(const o of this.fields)if(void 0!==o.property&&(a[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break;return a}encode(e,t,a=0){const o=a;let n=0,s=0;for(const o of this.fields){let r=o.span;if(s=0r&&(r=o.getSpan(t,a)))}n=a,a+=r}return n+s-o}fromArray(e){const t=this.makeDestinationObject();for(const a of this.fields)void 0!==a.property&&0a.span?t=-1:0<=t&&(t+=a.span)}}}e.exports.Structure=I;class S{constructor(e){this.property=e}decode(e,t){throw new Error("UnionDiscriminator is abstract")}encode(e,t,a){throw new Error("UnionDiscriminator is abstract")}}e.exports.UnionDiscriminator=S;class E extends S{constructor(e,t){if(!(e instanceof i&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,a){return this.layout.encode(e,t,a)}}e.exports.UnionLayoutDiscriminator=E;class T extends s{constructor(e,t,a){let o;if(e instanceof l||e instanceof m)o=new E(new d(e));else if(e instanceof i&&e.isCount())o=new E(e);else{if(!(e instanceof S))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");o=e}if(void 0===t&&(t=null),!(null===t||t instanceof s))throw new TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw new Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let n=-1;t&&(n=t.span,0<=n&&(e instanceof l||e instanceof m)&&(n+=o.layout.span)),super(n,a),this.discriminator=o,this.usesPrefixDiscriminator=e instanceof l||e instanceof m,this.defaultLayout=t,this.registry={};let r=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return r(e)},this.configGetSourceVariant=function(e){r=e.bind(this)}}getSpan(e,t=0){if(0<=this.span)return this.span;const a=this.getVariant(e,t);if(!a)throw new Error("unable to determine span for unrecognized variant");return a.getSpan(e,t)}defaultGetSourceVariant(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;const t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(const t in this.registry){const a=this.registry[t];if(a.property&&Object.prototype.hasOwnProperty.call(e,a.property))return a}throw new Error("unable to infer src variant")}decode(e,t=0){let a;const o=this.discriminator,n=o.decode(e,t),s=this.registry[n];if(void 0===s){const s=this.defaultLayout;let r=0;this.usesPrefixDiscriminator&&(r=o.layout.span),a=this.makeDestinationObject(),a[o.property]=n,a[s.property]=s.decode(e,t+r)}else a=s.decode(e,t);return a}encode(e,t,a=0){const o=this.getSourceVariant(e);if(void 0===o){const o=this.discriminator,n=this.defaultLayout;let s=0;return this.usesPrefixDiscriminator&&(s=o.layout.span),o.encode(e[o.property],t,a),s+n.encode(e[n.property],t,a+s)}return o.encode(e,t,a)}addVariant(e,t,a){const o=new C(this,e,t,a);return this.registry[e]=o,o}getVariant(e,t=0){let a;return a=e instanceof Uint8Array?this.discriminator.decode(e,t):e,this.registry[a]}}e.exports.Union=T;class C extends s{constructor(e,t,a,o){if(!(e instanceof T))throw new TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===o&&(o=a,a=null),a){if(!(a instanceof s))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}let n=e.span;0>e.span&&(n=a?a.span:0,0<=n&&e.usesPrefixDiscriminator&&(n+=e.discriminator.layout.span)),super(n,o),this.union=e,this.variant=t,this.layout=a||null}getSpan(e,t=0){if(0<=this.span)return this.span;let a=0;this.union.usesPrefixDiscriminator&&(a=this.union.discriminator.layout.span);let o=0;return this.layout&&(o=this.layout.getSpan(e,t+a)),a+o}decode(e,t=0){const a=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw new Error("variant mismatch");let o=0;return this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout?a[this.property]=this.layout.decode(e,t+o):this.property?a[this.property]=!0:this.union.usesPrefixDiscriminator&&(a[this.union.discriminator.property]=this.variant),a}encode(e,t,a=0){let o=0;if(this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,a);let n=o;if(this.layout&&(this.layout.encode(e[this.property],t,a+o),n+=this.layout.getSpan(t,a+o),0<=this.union.span&&n>this.union.span))throw new Error("encoded variant overruns containing union");return n}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function U(e){return 0>e&&(e+=4294967296),e}e.exports.VariantLayout=C;class M extends s{constructor(e,t,a){if(!(e instanceof l||e instanceof m))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof t&&void 0===a&&(a=t,t=!1),4=t)throw new TypeError("bits must be positive integer");const o=8*e.span,n=e.fields.reduce(((e,t)=>e+t.bits),0);if(t+n>o)throw new Error("bits too long for span remainder ("+(o-n)+" of "+o+" remain)");this.container=e,this.bits=t,this.valueMask=(1<>>this.start}encode(e){if("number"!=typeof e||!Number.isInteger(e)||e!==U(e&this.valueMask))throw new TypeError(r("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const t=this.container._packedGetValue(),a=U(e<a&&(a=this.length.decode(e,t)),a}decode(e,t=0){let a=this.span;return 0>a&&(a=this.length.decode(e,t)),n(e).slice(t,t+a)}encode(e,t,a){let o=this.length;if(this.length instanceof i&&(o=e.length),!(e instanceof Uint8Array&&o===e.length))throw new TypeError(r("Blob.encode",this)+" requires (length "+o+") Uint8Array as src");if(a+o>t.length)throw new RangeError("encoding overruns Uint8Array");const s=n(e);return n(t).write(s.toString("hex"),a,o,"hex"),this.length instanceof i&&this.length.encode(o,t,a),o}}e.exports.Blob=P;class B extends s{constructor(e){super(-1,e)}getSpan(e,t=0){o(e);let a=t;for(;at.length)throw new RangeError("encoding overruns Buffer");const i=n(t);return s.copy(i,o),i[o+r]=0,r+1}}e.exports.CString=B;class L extends s{constructor(e,t){if("string"==typeof e&&void 0===t&&(t=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");super(-1,t),this.maxSpan=e}getSpan(e,t=0){return o(e),e.length-t}decode(e,t=0){const a=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return s.copy(n(t),o),r}}e.exports.UTF8=L;class F extends s{constructor(e,t){super(0,t),this.value=e}decode(e,t){return this.value}encode(e,t,a){return 0}}e.exports.Constant=F,e.exports.greedy=(e,t)=>new c(e,t),e.exports.offset=(e,t,a)=>new d(e,t,a),e.exports.u8=e=>new l(1,e),e.exports.u16=e=>new l(2,e),e.exports.u24=e=>new l(3,e),e.exports.u32=e=>new l(4,e),e.exports.u40=e=>new l(5,e),e.exports.u48=e=>new l(6,e),e.exports.nu64=e=>new f(e),e.exports.u16be=e=>new m(2,e),e.exports.u24be=e=>new m(3,e),e.exports.u32be=e=>new m(4,e),e.exports.u40be=e=>new m(5,e),e.exports.u48be=e=>new m(6,e),e.exports.nu64be=e=>new y(e),e.exports.s8=e=>new u(1,e),e.exports.s16=e=>new u(2,e),e.exports.s24=e=>new u(3,e),e.exports.s32=e=>new u(4,e),e.exports.s40=e=>new u(5,e),e.exports.s48=e=>new u(6,e),e.exports.ns64=e=>new $(e),e.exports.s16be=e=>new p(2,e),e.exports.s24be=e=>new p(3,e),e.exports.s32be=e=>new p(4,e),e.exports.s40be=e=>new p(5,e),e.exports.s48be=e=>new p(6,e),e.exports.ns64be=e=>new w(e),e.exports.f32=e=>new k(e),e.exports.f32be=e=>new v(e),e.exports.f64=e=>new x(e),e.exports.f64be=e=>new R(e),e.exports.struct=(e,t,a)=>new I(e,t,a),e.exports.bits=(e,t,a)=>new M(e,t,a),e.exports.seq=(e,t,a)=>new A(e,t,a),e.exports.union=(e,t,a)=>new T(e,t,a),e.exports.unionLayoutDiscriminator=(e,t)=>new E(e,t),e.exports.blob=(e,t)=>new P(e,t),e.exports.cstr=e=>new B(e),e.exports.utf8=(e,t)=>new L(e,t),e.exports.constant=(e,t)=>new F(e,t)})),parcelRequire.register("5mzey",(function(e,t){var a=parcelRequire("ajHSv").Buffer;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toBigIntLE=function(e){{const t=a.from(e);t.reverse();const o=t.toString("hex");return 0===o.length?BigInt(0):BigInt(`0x${o}`)}},e.exports.toBigIntBE=function(e){{const t=e.toString("hex");return 0===t.length?BigInt(0):BigInt(`0x${t}`)}},e.exports.toBufferLE=function(e,t){{const o=e.toString(16),n=a.from(o.padStart(2*t,"0").slice(0,2*t),"hex");return n.reverse(),n}},e.exports.toBufferBE=function(e,t){{const o=e.toString(16);return a.from(o.padStart(2*t,"0").slice(0,2*t),"hex")}}})),parcelRequire.register("2SbAy",(function(e,t){$parcel$export(e.exports,"assert",(()=>d)),$parcel$export(e.exports,"create",(()=>l)),$parcel$export(e.exports,"optional",(()=>v)),$parcel$export(e.exports,"any",(()=>h)),$parcel$export(e.exports,"array",(()=>g)),$parcel$export(e.exports,"boolean",(()=>b)),$parcel$export(e.exports,"instance",(()=>f)),$parcel$export(e.exports,"literal",(()=>y)),$parcel$export(e.exports,"nullable",(()=>w)),$parcel$export(e.exports,"number",(()=>k)),$parcel$export(e.exports,"record",(()=>x)),$parcel$export(e.exports,"string",(()=>R)),$parcel$export(e.exports,"tuple",(()=>A)),$parcel$export(e.exports,"type",(()=>I)),$parcel$export(e.exports,"union",(()=>S)),$parcel$export(e.exports,"unknown",(()=>E)),$parcel$export(e.exports,"coerce",(()=>T));class a extends TypeError{constructor(e,t){let a;const{message:o,...n}=e,{path:s}=e;super(0===s.length?o:"At path: "+s.join(".")+" -- "+o),Object.assign(this,n),this.name=this.constructor.name,this.failures=()=>{var o;return null!=(o=a)?o:a=[e,...t()]}}}function o(e){return"object"==typeof e&&null!=e}function n(e){return"string"==typeof e?JSON.stringify(e):""+e}function s(e,t,a,o){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:s,branch:r}=t,{type:i}=a,{refinement:c,message:d="Expected a value of type `"+i+"`"+(c?" with refinement `"+c+"`":"")+", but received: `"+n(o)+"`"}=e;return{value:o,type:i,refinement:c,key:s[s.length-1],path:s,branch:r,...e,message:d}}function*r(e,t,a,n){var r;o(r=e)&&"function"==typeof r[Symbol.iterator]||(e=[e]);for(const o of e){const e=s(o,t,a,n);e&&(yield e)}}function*i(e,t,a={}){const{path:n=[],branch:s=[e],coerce:r=!1,mask:c=!1}=a,d={path:n,branch:s};if(r&&(e=t.coercer(e,d),c&&"type"!==t.type&&o(t.schema)&&o(e)&&!Array.isArray(e)))for(const a in e)void 0===t.schema[a]&&delete e[a];let l=!0;for(const a of t.validator(e,d))l=!1,yield[a,void 0];for(let[a,m,u]of t.entries(e,d)){const t=i(m,u,{path:void 0===a?n:[...n,a],branch:void 0===a?s:[...s,m],coerce:r,mask:c});for(const n of t)n[0]?(l=!1,yield[n[0],void 0]):r&&(m=n[1],void 0===a?e=m:e instanceof Map?e.set(a,m):e instanceof Set?e.add(m):o(e)&&(e[a]=m))}if(l)for(const a of t.refiner(e,d))l=!1,yield[a,void 0];l&&(yield[void 0,e])}class c{constructor(e){const{type:t,schema:a,validator:o,refiner:n,coercer:s=(e=>e),entries:i=function*(){}}=e;this.type=t,this.schema=a,this.entries=i,this.coercer=s,this.validator=o?(e,t)=>r(o(e,t),t,this,e):()=>[],this.refiner=n?(e,t)=>r(n(e,t),t,this,e):()=>[]}assert(e){return d(e,this)}create(e){return l(e,this)}is(e){return m(e,this)}mask(e){return function(e,t){const a=u(e,t,{coerce:!0,mask:!0});if(a[0])throw a[0];return a[1]}(e,this)}validate(e,t={}){return u(e,this,t)}}function d(e,t){const a=u(e,t);if(a[0])throw a[0]}function l(e,t){const a=u(e,t,{coerce:!0});if(a[0])throw a[0];return a[1]}function m(e,t){return!u(e,t)[0]}function u(e,t,o={}){const n=i(e,t,o),s=function(e){const{done:t,value:a}=e.next();return t?void 0:a}(n);if(s[0]){return[new a(s[0],(function*(){for(const e of n)e[0]&&(yield e[0])})),void 0]}return[void 0,s[1]]}function p(e,t){return new c({type:e,schema:null,validator:t})}function h(){return p("any",(()=>!0))}function g(e){return new c({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[a,o]of t.entries())yield[a,o,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||"Expected an array value, but received: "+n(e)})}function b(){return p("boolean",(e=>"boolean"==typeof e))}function f(e){return p("instance",(t=>t instanceof e||"Expected a `"+e.name+"` instance, but received: "+n(t)))}function y(e){const t=n(e),a=typeof e;return new c({type:"literal",schema:"string"===a||"number"===a||"boolean"===a?e:null,validator:a=>a===e||"Expected the literal `"+t+"`, but received: "+n(a)})}function $(){return p("never",(()=>!1))}function w(e){return new c({...e,validator:(t,a)=>null===t||e.validator(t,a),refiner:(t,a)=>null===t||e.refiner(t,a)})}function k(){return p("number",(e=>"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+n(e)))}function v(e){return new c({...e,validator:(t,a)=>void 0===t||e.validator(t,a),refiner:(t,a)=>void 0===t||e.refiner(t,a)})}function x(e,t){return new c({type:"record",schema:null,*entries(a){if(o(a))for(const o in a){const n=a[o];yield[o,o,e],yield[o,n,t]}},validator:e=>o(e)||"Expected an object, but received: "+n(e)})}function R(){return p("string",(e=>"string"==typeof e||"Expected a string, but received: "+n(e)))}function A(e){const t=$();return new c({type:"tuple",schema:null,*entries(a){if(Array.isArray(a)){const o=Math.max(e.length,a.length);for(let n=0;nArray.isArray(e)||"Expected an array, but received: "+n(e)})}function I(e){const t=Object.keys(e);return new c({type:"type",schema:e,*entries(a){if(o(a))for(const o of t)yield[o,a[o],e[o]]},validator:e=>o(e)||"Expected an object, but received: "+n(e)})}function S(e){const t=e.map((e=>e.type)).join(" | ");return new c({type:"union",schema:null,validator(a,o){const s=[];for(const t of e){const[...e]=i(a,t,o),[n]=e;if(!n[0])return[];for(const[t]of e)t&&s.push(t)}return["Expected the value to satisfy a union of `"+t+"`, but received: "+n(a),...s]}})}function E(){return p("unknown",(()=>!0))}function T(e,t,a){return new c({...e,coercer:(o,n)=>m(o,t)?e.coercer(a(o,n),n):e.coercer(o,n)})}})),parcelRequire.register("djgi1",(function(e,t){"use strict";var a=parcelRequire("btJMJ");Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Client=void 0;var o=a(parcelRequire("4VTY0")),n=a(parcelRequire("1kpG4")),s=a(parcelRequire("aahDn")),r=a(parcelRequire("3LK9N")),i=a(parcelRequire("3NxDl")),c=a(parcelRequire("bCyzP"));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,o=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(o,arguments,n)}else a=o.apply(this,arguments);return(0,r.default)(this,a)}}var l=function(e){(0,s.default)(a,e);var t=d(a);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8080",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.autoconnect,r=void 0===s||s,i=o.reconnect,d=void 0===i||i,l=o.reconnect_interval,m=void 0===l?1e3:l,u=o.max_reconnects,p=void 0===u?5:u,h=arguments.length>2?arguments[2]:void 0;return(0,n.default)(this,a),t.call(this,c.default,e,{autoconnect:r,reconnect:d,reconnect_interval:m,max_reconnects:p},h)}return(0,o.default)(a)}(a(parcelRequire("hsk2E")).default);e.exports.Client=l})),parcelRequire.register("btJMJ",(function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports})),parcelRequire.register("4VTY0",(function(e,t){var a=parcelRequire("ca4Qu");function o(e,t){for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;(0,i.default)(this,h);var s=o.autoconnect,r=void 0===s||s,c=o.reconnect,d=void 0===c||c,l=o.reconnect_interval,m=void 0===l?1e3:l,p=o.max_reconnects,g=void 0===p?5:p,b=function(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);no.current_reconnects||0===o.max_reconnects)&&(o.reconnect_timer_id=setTimeout((function(){return o._connect(e,t)}),o.reconnect_interval)))}))}}]),h}(u.EventEmitter);e.exports.default=h})),parcelRequire.register("3sKgf",(function(e,t){var a=parcelRequire("brd0B")();e.exports=a;try{regeneratorRuntime=a}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}})),parcelRequire.register("brd0B",(function(e,t){var a=parcelRequire("8jmA8").default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,s=n.hasOwnProperty,r=Object.defineProperty||function(e,t,a){e[t]=a.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",d=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function m(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{m({},"")}catch(e){m=function(e,t,a){return e[t]=a}}function u(e,t,a,o){var n=t&&t.prototype instanceof g?t:g,s=Object.create(n.prototype),i=new E(o||[]);return r(s,"_invoke",{value:R(e,a,i)}),s}function p(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h={};function g(){}function b(){}function f(){}var y={};m(y,c,(function(){return this}));var $=Object.getPrototypeOf,w=$&&$($(T([])));w&&w!==n&&s.call(w,c)&&(y=w);var k=f.prototype=g.prototype=Object.create(y);function v(e){["next","throw","return"].forEach((function(t){m(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(n,r,i,c){var d=p(e[n],e,r);if("throw"!==d.type){var l=d.arg,m=l.value;return m&&"object"==a(m)&&s.call(m,"__await")?t.resolve(m.__await).then((function(e){o("next",e,i,c)}),(function(e){o("throw",e,i,c)})):t.resolve(m).then((function(e){l.value=e,i(l)}),(function(e){return o("throw",e,i,c)}))}c(d.arg)}var n;r(this,"_invoke",{value:function(e,a){function s(){return new t((function(t,n){o(e,a,t,n)}))}return n=n?n.then(s,s):s()}})}function R(e,t,a){var o="suspendedStart";return function(n,s){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw s;return C()}for(a.method=n,a.arg=s;;){var r=a.delegate;if(r){var i=A(r,a);if(i){if(i===h)continue;return i}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===o)throw o="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o="executing";var c=p(e,t,a);if("normal"===c.type){if(o=a.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(o="completed",a.method="throw",a.arg=c.arg)}}}function A(e,t){var a=t.method,o=e.iterator[a];if(void 0===o)return t.delegate=null,"throw"===a&&e.iterator.return&&(t.method="return",t.arg=void 0,A(e,t),"throw"===t.method)||"return"!==a&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+a+"' method")),h;var n=p(o,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var s=n.arg;return s?s.done?(t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):s:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function T(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function t(){for(;++a=0;--o){var n=this.tryEntries[o],r=n.completion;if("root"===n.tryLoc)return a("end");if(n.tryLoc<=this.prev){var i=s.call(n,"catchLoc"),c=s.call(n,"finallyLoc");if(i&&c){if(this.prev=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&s.call(o,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),S(a),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var o=a.completion;if("throw"===o.type){var n=o.arg;S(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,a){return this.delegate={iterator:T(e),resultName:t,nextLoc:a},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})),parcelRequire.register("29Slh",(function(e,t){function a(e,t,a,o,n,s,r){try{var i=e[s](r),c=i.value}catch(e){return void a(e)}i.done?t(c):Promise.resolve(c).then(o,n)}e.exports=function(e){return function(){var t=this,o=arguments;return new Promise((function(n,s){var r=e.apply(t,o);function i(e){a(r,n,s,i,c,"next",e)}function c(e){a(r,n,s,i,c,"throw",e)}i(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports})),parcelRequire.register("eC711",(function(e,t){"use strict";var a=parcelRequire("coi6U").default,o=parcelRequire("6ShHO");const n=function(e,t){if(!(this instanceof n))return new n(e,t);t||(t={}),this.options={reviver:void 0!==t.reviver?t.reviver:null,replacer:void 0!==t.replacer?t.replacer:null,generator:void 0!==t.generator?t.generator:function(){return a()},version:void 0!==t.version?t.version:2,notificationIdNull:"boolean"==typeof t.notificationIdNull&&t.notificationIdNull},this.callServer=e};e.exports=n,n.prototype.request=function(e,t,a,n){const s=this;let r=null;const i=Array.isArray(e)&&"function"==typeof t;if(1===this.options.version&&i)throw new TypeError("JSON-RPC 1.0 does not support batching");if(i||!i&&e&&"object"==typeof e&&"function"==typeof t)n=t,r=e;else{"function"==typeof a&&(n=a,a=void 0);const s="function"==typeof n;try{r=o(e,t,a,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(e){if(s)return n(e);throw e}if(!s)return r}let c;try{c=JSON.stringify(r,this.options.replacer)}catch(e){return n(e)}return this.callServer(c,(function(e,t){s._parseResponse(e,t,n)})),r},n.prototype._parseResponse=function(e,t,a){if(e)return void a(e);if(!t)return a();let o;try{o=JSON.parse(t,this.options.reviver)}catch(e){return a(e)}if(3===a.length){if(Array.isArray(o)){const e=function(e){return void 0!==e.error},t=function(t){return!e(t)};return a(null,o.filter(e),o.filter(t))}return a(null,o.error,o.result)}a(null,o)}})),parcelRequire.register("coi6U",(function(e,t){$parcel$export(e.exports,"default",(()=>n));var a=parcelRequire("5rTyL"),o=parcelRequire("5mLXG");var n=function(e,t,n){var s=(e=e||{}).random||(e.rng||a.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=s[r];return t}return(0,o.default)(s)}})),parcelRequire.register("5rTyL",(function(e,t){var a;$parcel$export(e.exports,"default",(()=>n));var o=new Uint8Array(16);function n(){if(!a&&!(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(o)}})),parcelRequire.register("5mLXG",(function(e,t){$parcel$export(e.exports,"default",(()=>s));for(var a=parcelRequire("dS2nz"),o=[],n=0;n<256;++n)o.push((n+256).toString(16).substr(1));var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!(0,a.default)(n))throw TypeError("Stringified UUID is invalid");return n}})),parcelRequire.register("dS2nz",(function(e,t){$parcel$export(e.exports,"default",(()=>o));var a=parcelRequire("aT9qx");var o=function(e){return"string"==typeof e&&a.default.test(e)}})),parcelRequire.register("aT9qx",(function(e,t){$parcel$export(e.exports,"default",(()=>a));var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i})),parcelRequire.register("6ShHO",(function(e,t){"use strict";var a=parcelRequire("coi6U").default;e.exports=function(e,t,o,n){if("string"!=typeof e)throw new TypeError(e+" must be a string");const s="number"==typeof(n=n||{}).version?n.version:2;if(1!==s&&2!==s)throw new TypeError(s+" must be 1 or 2");const r={method:e};if(2===s&&(r.jsonrpc="2.0"),t){if("object"!=typeof t&&!Array.isArray(t))throw new TypeError(t+" must be an object, array or omitted");r.params=t}if(void 0===o){const e="function"==typeof n.generator?n.generator:function(){return a()};r.id=e(r,n)}else 2===s&&null===o?n.notificationIdNull&&(r.id=null):r.id=o;return r}})),parcelRequire.register("1WnnI",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.shake256=e.exports.shake128=e.exports.keccak_512=e.exports.keccak_384=e.exports.keccak_256=e.exports.keccak_224=e.exports.sha3_512=e.exports.sha3_384=e.exports.sha3_256=e.exports.sha3_224=e.exports.Keccak=e.exports.keccakP=void 0;var a=parcelRequire("41oxr"),o=parcelRequire("3N0HN"),n=parcelRequire("5gkUA");const[s,r,i]=[[],[],[]],c=BigInt(0),d=BigInt(1),l=BigInt(2),m=BigInt(7),u=BigInt(256),p=BigInt(113);for(let e=0,t=d,a=1,o=0;e<24;e++){[a,o]=[o,(2*a+3*o)%5],s.push(2*(5*o+a)),r.push((e+1)*(e+2)/2%64);let n=c;for(let e=0;e<7;e++)t=(t<>m)*p)%u,t&l&&(n^=d<<(d<a>32?o.default.rotlBH(e,t,a):o.default.rotlSH(e,t,a),f=(e,t,a)=>a>32?o.default.rotlBL(e,t,a):o.default.rotlSL(e,t,a);function y(e,t=24){const a=new Uint32Array(10);for(let o=24-t;o<24;o++){for(let t=0;t<10;t++)a[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const o=(t+8)%10,n=(t+2)%10,s=a[n],r=a[n+1],i=b(s,r,1)^a[o],c=f(s,r,1)^a[o+1];for(let a=0;a<50;a+=10)e[t+a]^=i,e[t+a+1]^=c}let t=e[2],n=e[3];for(let a=0;a<24;a++){const o=r[a],i=b(t,n,o),c=f(t,n,o),d=s[a];t=e[d],n=e[d+1],e[d]=i,e[d+1]=c}for(let t=0;t<50;t+=10){for(let o=0;o<10;o++)a[o]=e[t+o];for(let o=0;o<10;o++)e[t+o]^=~a[(o+2)%10]&a[(o+4)%10]}e[0]^=h[o],e[1]^=g[o]}a.fill(0)}e.exports.keccakP=y;class $ extends n.Hash{constructor(e,t,o,s=!1,r=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=o,this.enableXOF=s,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,a.default.number(o),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}keccak(){y(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){a.default.exists(this);const{blockLen:t,state:o}=this,s=(e=(0,n.toBytes)(e)).length;for(let a=0;a=o&&this.keccak();const s=Math.min(o-this.posOut,n-a);e.set(t.subarray(this.posOut,this.posOut+s),a),this.posOut+=s,a+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return a.default.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(a.default.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:a,outputLen:o,rounds:n,enableXOF:s}=this;return e||(e=new $(t,a,o,s,n)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=n,e.suffix=a,e.outputLen=o,e.enableXOF=s,e.destroyed=this.destroyed,e}}e.exports.Keccak=$;const w=(e,t,a)=>(0,n.wrapConstructor)((()=>new $(t,e,a)));e.exports.sha3_224=w(6,144,28),e.exports.sha3_256=w(6,136,32),e.exports.sha3_384=w(6,104,48),e.exports.sha3_512=w(6,72,64),e.exports.keccak_224=w(1,144,28),e.exports.keccak_256=w(1,136,32),e.exports.keccak_384=w(1,104,48),e.exports.keccak_512=w(1,72,64);const k=(e,t,a)=>(0,n.wrapConstructorWithOpts)(((o={})=>new $(t,e,void 0===o.dkLen?a:o.dkLen,!0)));e.exports.shake128=k(31,168,16),e.exports.shake256=k(31,136,32)})),parcelRequire.register("eoOn1",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.hmac=void 0;var a=parcelRequire("41oxr"),o=parcelRequire("5gkUA");class n extends o.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,a.default.hash(e);const n=(0,o.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,r=new Uint8Array(s);r.set(n.length>s?e.create().update(n).digest():n);for(let e=0;enew n(e,t).update(a).digest(),e.exports.hmac.create=(e,t)=>new n(e,t)})),parcelRequire.register("hRlTT",(function(e,t){$parcel$export(e.exports,"utils",(()=>re)),$parcel$export(e.exports,"getPublicKey",(()=>O)),$parcel$export(e.exports,"signSync",(()=>oe)); +/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */ +var a=parcelRequire("gFqLz");const o=BigInt(0),n=BigInt(1),s=BigInt(2),r=BigInt(3),i=BigInt(8),c=Object.freeze({a:o,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:n,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")}),d=(e,t)=>(e+t/s)/t,l={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(e){const{n:t}=c,a=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),o=-n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),r=a,i=BigInt("0x100000000000000000000000000000000"),l=d(r*e,t),m=d(-o*e,t);let u=K(e-l*a-m*s,t),p=K(-l*o-m*r,t);const h=u>i,g=p>i;if(h&&(u=t-u),g&&(p=t-p),u>i||p>i)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:h,k1:u,k2neg:g,k2:p}}},m=32,u=32,p=32,h=m+1,g=2*m+1;function b(e){const{a:t,b:a}=c,o=K(e*e),n=K(o*e);return K(n+t*e+a)}const f=c.a===o;class y extends Error{constructor(e){super(e)}}function $(e){if(!(e instanceof w))throw new TypeError("JacobianPoint expected")}class w{constructor(e,t,a){this.x=e,this.y=t,this.z=a}static fromAffine(e){if(!(e instanceof x))throw new TypeError("JacobianPoint#fromAffine: expected Point");return e.equals(x.ZERO)?w.ZERO:new w(e.x,e.y,n)}static toAffineBatch(e){const t=function(e,t=c.P){const a=new Array(e.length),s=j(e.reduce(((e,n,s)=>n===o?e:(a[s]=e,K(e*n,t))),n),t);return e.reduceRight(((e,n,s)=>n===o?e:(a[s]=K(e*a[s],t),K(e*n,t))),s),a}(e.map((e=>e.z)));return e.map(((e,a)=>e.toAffine(t[a])))}static normalizeZ(e){return w.toAffineBatch(e).map(w.fromAffine)}equals(e){$(e);const{x:t,y:a,z:o}=this,{x:n,y:s,z:r}=e,i=K(o*o),c=K(r*r),d=K(t*c),l=K(n*i),m=K(K(a*r)*c),u=K(K(s*o)*i);return d===l&&m===u}negate(){return new w(this.x,K(-this.y),this.z)}double(){const{x:e,y:t,z:a}=this,o=K(e*e),n=K(t*t),c=K(n*n),d=e+n,l=K(s*(K(d*d)-o-c)),m=K(r*o),u=K(m*m),p=K(u-s*l),h=K(m*(l-p)-i*c),g=K(s*t*a);return new w(p,h,g)}add(e){$(e);const{x:t,y:a,z:n}=this,{x:r,y:i,z:c}=e;if(r===o||i===o)return this;if(t===o||a===o)return e;const d=K(n*n),l=K(c*c),m=K(t*l),u=K(r*d),p=K(K(a*c)*l),h=K(K(i*n)*d),g=K(u-m),b=K(h-p);if(g===o)return b===o?this.double():w.ZERO;const f=K(g*g),y=K(g*f),k=K(m*f),v=K(b*b-y-s*k),x=K(b*(k-v)-p*y),R=K(n*c*g);return new w(v,x,R)}subtract(e){return this.add(e.negate())}multiplyUnsafe(e){const t=w.ZERO;if("bigint"==typeof e&&e===o)return t;let a=F(e);if(a===n)return this;if(!f){let e=t,s=this;for(;a>o;)a&n&&(e=e.add(s)),s=s.double(),a>>=n;return e}let{k1neg:s,k1:r,k2neg:i,k2:c}=l.splitScalar(a),d=t,m=t,u=this;for(;r>o||c>o;)r&n&&(d=d.add(u)),c&n&&(m=m.add(u)),u=u.double(),r>>=n,c>>=n;return s&&(d=d.negate()),i&&(m=m.negate()),m=new w(K(m.x*l.beta),m.y,m.z),d.add(m)}precomputeWindow(e){const t=f?128/e+1:256/e+1,a=[];let o=this,n=o;for(let s=0;s>=m,i>c&&(i-=l,e+=n);const u=a,p=a+Math.abs(i)-1,h=t%2!=0,g=i<0;0===i?r=r.add(k(h,o[u])):s=s.add(k(g,o[p]))}return{p:s,f:r}}multiply(e,t){let a,o,n=F(e);if(f){const{k1neg:e,k1:s,k2neg:r,k2:i}=l.splitScalar(n);let{p:c,f:d}=this.wNAF(s,t),{p:m,f:u}=this.wNAF(i,t);c=k(e,c),m=k(r,m),m=new w(K(m.x*l.beta),m.y,m.z),a=c.add(m),o=d.add(u)}else{const{p:e,f:s}=this.wNAF(n,t);a=e,o=s}return w.normalizeZ([a,o])[0]}toAffine(e){const{x:t,y:a,z:o}=this,s=this.equals(w.ZERO);null==e&&(e=s?i:j(o));const r=e,c=K(r*r),d=K(c*r),l=K(t*c),m=K(a*d),u=K(o*r);if(s)return x.ZERO;if(u!==n)throw new Error("invZ was invalid");return new x(l,m)}}function k(e,t){const a=t.negate();return e?a:t}w.BASE=new w(c.Gx,c.Gy,n),w.ZERO=new w(o,n,o);const v=new WeakMap;class x{constructor(e,t){this.x=e,this.y=t}_setWindowSize(e){this._WINDOW_SIZE=e,v.delete(this)}hasEvenY(){return this.y%s===o}static fromCompressedHex(e){const t=32===e.length,a=B(t?e:e.subarray(1));if(!V(a))throw new Error("Point is not on curve");let o=function(e){const{P:t}=c,a=BigInt(6),o=BigInt(11),n=BigInt(22),i=BigInt(23),d=BigInt(44),l=BigInt(88),m=e*e*e%t,u=m*m*e%t,p=G(u,r)*u%t,h=G(p,r)*u%t,g=G(h,s)*m%t,b=G(g,o)*g%t,f=G(b,n)*b%t,y=G(f,d)*f%t,$=G(y,l)*y%t,w=G($,d)*f%t,k=G(w,r)*u%t,v=G(k,i)*b%t,x=G(v,a)*m%t,R=G(x,s);if(R*R%t!==e)throw new Error("Cannot find square root");return R}(b(a));const i=(o&n)===n;if(t)i&&(o=K(-o));else{1==(1&e[0])!==i&&(o=K(-o))}const d=new x(a,o);return d.assertValidity(),d}static fromUncompressedHex(e){const t=B(e.subarray(1,m+1)),a=B(e.subarray(m+1,2*m+1)),o=new x(t,a);return o.assertValidity(),o}static fromHex(e){const t=L(e),a=t.length,o=t[0];if(a===m)return this.fromCompressedHex(t);if(a===h&&(2===o||3===o))return this.fromCompressedHex(t);if(a===g&&4===o)return this.fromUncompressedHex(t);throw new Error(`Point.fromHex: received invalid point. Expected 32-${h} compressed bytes or ${g} uncompressed bytes, not ${a}`)}static fromPrivateKey(e){return x.BASE.multiply(J(e))}static fromSignature(e,t,a){const{r:o,s:n}=X(t);if(![0,1,2,3].includes(a))throw new Error("Cannot recover: invalid recovery bit");const s=q(L(e)),{n:r}=c,i=2===a||3===a?o+r:o,d=j(i,r),l=K(-s*d,r),m=K(n*d,r),u=1&a?"03":"02",p=x.fromHex(u+U(i)),h=x.BASE.multiplyAndAddUnsafe(p,l,m);if(!h)throw new Error("Cannot recover signature: point at infinify");return h.assertValidity(),h}toRawBytes(e=!1){return P(this.toHex(e))}toHex(e=!1){const t=U(this.x);if(e){return`${this.hasEvenY()?"02":"03"}${t}`}return`04${t}${U(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const e="Point is not on elliptic curve",{x:t,y:a}=this;if(!V(t)||!V(a))throw new Error(e);const n=K(a*a);if(K(n-b(t))!==o)throw new Error(e)}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new x(this.x,K(-this.y))}double(){return w.fromAffine(this).double().toAffine()}add(e){return w.fromAffine(this).add(w.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return w.fromAffine(this).multiply(e,this).toAffine()}multiplyAndAddUnsafe(e,t,a){const s=w.fromAffine(this),r=t===o||t===n||this!==x.BASE?s.multiplyUnsafe(t):s.multiply(t),i=w.fromAffine(e).multiplyUnsafe(a),c=r.add(i);return c.equals(w.ZERO)?void 0:c.toAffine()}}function R(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function A(e){if(e.length<2||2!==e[0])throw new Error(`Invalid signature integer tag: ${T(e)}`);const t=e[1],a=e.subarray(2,t+2);if(!t||a.length!==t)throw new Error("Invalid signature integer: wrong length");if(0===a[0]&&a[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:B(a),left:e.subarray(t+2)}}x.BASE=new x(c.Gx,c.Gy),x.ZERO=new x(o,o);class I{constructor(e,t){this.r=e,this.s=t,this.assertValidity()}static fromCompact(e){const t=e instanceof Uint8Array,a="Signature.fromCompact";if("string"!=typeof e&&!t)throw new TypeError(`${a}: Expected string or Uint8Array`);const o=t?T(e):e;if(128!==o.length)throw new Error(`${a}: Expected 64-byte hex`);return new I(N(o.slice(0,64)),N(o.slice(64,128)))}static fromDER(e){const t=e instanceof Uint8Array;if("string"!=typeof e&&!t)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:a,s:o}=function(e){if(e.length<2||48!=e[0])throw new Error(`Invalid signature tag: ${T(e)}`);if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");const{data:t,left:a}=A(e.subarray(2)),{data:o,left:n}=A(a);if(n.length)throw new Error(`Invalid signature: left bytes after parsing: ${T(n)}`);return{r:t,s:o}}(t?e:P(e));return new I(a,o)}static fromHex(e){return this.fromDER(e)}assertValidity(){const{r:e,s:t}=this;if(!_(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!_(t))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const e=c.n>>n;return this.s>e}normalizeS(){return this.hasHighS()?new I(this.r,K(-this.s,c.n)):this}toDERRawBytes(){return P(this.toDERHex())}toDERHex(){const e=R(D(this.s)),t=R(D(this.r)),a=e.length/2,o=t.length/2,n=D(a),s=D(o);return`30${D(o+a+4)}02${s}${t}02${n}${e}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return P(this.toCompactHex())}toCompactHex(){return U(this.r)+U(this.s)}}function S(...e){if(!e.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),a=new Uint8Array(t);for(let t=0,o=0;tt.toString(16).padStart(2,"0")));function T(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");let t="";for(let a=0;a0)return BigInt(e);if("bigint"==typeof e&&_(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function K(e,t=c.P){const a=e%t;return a>=o?a:t+a}function G(e,t){const{P:a}=c;let n=e;for(;t-- >o;)n*=n,n%=a;return n}function j(e,t=c.P){if(e===o||t<=o)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let a=K(e,t),s=t,r=o,i=n,d=n,l=o;for(;a!==o;){const e=s/a,t=s%a,o=r-d*e,n=i-l*e;s=a,a=t,r=d,i=l,d=o,l=n}if(s!==n)throw new Error("invert: does not exist");return K(r,t)}function q(e,t=!1){const a=function(e){const t=8*e.length-8*u,a=B(e);return t>0?a>>BigInt(t):a}(e);if(t)return a;const{n:o}=c;return a>=o?a-o:a}let W,z;class H{constructor(e,t){if(this.hashLen=e,this.qByteLen=t,"number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(e).fill(1),this.k=new Uint8Array(e).fill(0),this.counter=0}hmac(...e){return re.hmacSha256(this.k,...e)}hmacSync(...e){return z(this.k,...e)}checkSync(){if("function"!=typeof z)throw new y("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(e=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),e),this.v=await this.hmac(this.v),0!==e.length&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),e),this.v=await this.hmac(this.v))}reseedSync(e=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),0!==e.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}async generate(){this.incr();let e=0;const t=[];for(;e0)t=BigInt(e);else if("string"==typeof e){if(e.length!==2*u)throw new Error("Expected 32 bytes of private key");t=N(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private key");if(e.length!==u)throw new Error("Expected 32 bytes of private key");t=B(e)}if(!_(t))throw new Error("Expected private key: 0 < key < n");return t}function X(e){if(e instanceof I)return e.assertValidity(),e;try{return I.fromDER(e)}catch(t){return I.fromCompact(e)}}function O(e,t=!1){return x.fromPrivateKey(e).toRawBytes(t)}function Z(e){return B(e.length>m?e.slice(0,m):e)}function Q(e){const t=Z(e),a=K(t,c.n);return ee(a{e=L(e);const t=u+8;if(e.length1024)throw new Error("Expected valid bytes of private key as per FIPS 186");return M(K(B(e),c.n-n)+n)},randomBytes:(e=32)=>{if(ne.web)return ne.web.getRandomValues(new Uint8Array(e));if(ne.node){const{randomBytes:t}=ne.node;return Uint8Array.from(t(e))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>re.hashToPrivateKey(re.randomBytes(u+8)),precompute(e=8,t=x.BASE){const a=t===x.BASE?t:new x(t.x,t.y);return a._setWindowSize(e),a.multiply(r),a},sha256:async(...e)=>{if(ne.web){const t=await ne.web.subtle.digest("SHA-256",S(...e));return new Uint8Array(t)}if(ne.node){const{createHash:t}=ne.node,a=t("sha256");return e.forEach((e=>a.update(e))),Uint8Array.from(a.digest())}throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(e,...t)=>{if(ne.web){const a=await ne.web.subtle.importKey("raw",e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),o=S(...t),n=await ne.web.subtle.sign("HMAC",a,o);return new Uint8Array(n)}if(ne.node){const{createHmac:a}=ne.node,o=a("sha256",e);return t.forEach((e=>o.update(e))),Uint8Array.from(o.digest())}throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(e,...t)=>{let a=se[e];if(void 0===a){const t=await re.sha256(Uint8Array.from(e,(e=>e.charCodeAt(0))));a=S(t,t),se[e]=a}return re.sha256(a,...t)},taggedHashSync:(e,...t)=>{if("function"!=typeof W)throw new y("sha256Sync is undefined, you need to set it");let a=se[e];if(void 0===a){const t=W(Uint8Array.from(e,(e=>e.charCodeAt(0))));a=S(t,t),se[e]=a}return W(a,...t)},_JacobianPoint:w};Object.defineProperties(re,{sha256Sync:{configurable:!1,get:()=>W,set(e){W||(W=e)}},hmacSha256Sync:{configurable:!1,get:()=>z,set(e){z||(z=e)}}})})),parcelRequire.register("5Kyr8",(function(e,t){$parcel$export(e.exports,"encode",(()=>d)),$parcel$export(e.exports,"decode",(()=>u));var a=parcelRequire("juEF3"),o=parcelRequire("lNmfi"),n=parcelRequire("5osGs");const s=new(0,o.Logger)(n.version);function r(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function i(e,t,a){let o=0;for(let n=0;nt+1+n&&s.throwError("child data too short",o.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:r}}function m(e,t){if(0===e.length&&s.throwError("data too short",o.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){const a=e[t]-247;t+1+a>e.length&&s.throwError("data short segment too short",o.Logger.errors.BUFFER_OVERRUN,{});const n=i(e,t+1,a);return t+1+a+n>e.length&&s.throwError("data long segment too short",o.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1+a,a+n)}if(e[t]>=192){const a=e[t]-192;return t+1+a>e.length&&s.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1,a)}if(e[t]>=184){const n=e[t]-183;t+1+n>e.length&&s.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{});const r=i(e,t+1,n);t+1+n+r>e.length&&s.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{});return{consumed:1+n+r,result:(0,a.hexlify)(e.slice(t+1+n,t+1+n+r))}}if(e[t]>=128){const n=e[t]-128;t+1+n>e.length&&s.throwError("data too short",o.Logger.errors.BUFFER_OVERRUN,{});return{consumed:1+n,result:(0,a.hexlify)(e.slice(t+1,t+1+n))}}return{consumed:1,result:(0,a.hexlify)(e[t])}}function u(e){const t=(0,a.arrayify)(e),o=m(t,0);return o.consumed!==t.length&&s.throwArgumentError("invalid rlp data","data",e),o.result}})),parcelRequire.register("juEF3",(function(e,t){$parcel$export(e.exports,"isBytesLike",(()=>i)),$parcel$export(e.exports,"isHexString",(()=>h)),$parcel$export(e.exports,"isBytes",(()=>d)),$parcel$export(e.exports,"arrayify",(()=>l)),$parcel$export(e.exports,"concat",(()=>m)),$parcel$export(e.exports,"stripZeros",(()=>u)),$parcel$export(e.exports,"zeroPad",(()=>p)),$parcel$export(e.exports,"hexlify",(()=>b)),$parcel$export(e.exports,"hexDataLength",(()=>f)),$parcel$export(e.exports,"hexDataSlice",(()=>y)),$parcel$export(e.exports,"hexConcat",(()=>$)),$parcel$export(e.exports,"hexValue",(()=>w)),$parcel$export(e.exports,"hexStripZeros",(()=>k)),$parcel$export(e.exports,"hexZeroPad",(()=>v)),$parcel$export(e.exports,"splitSignature",(()=>x)),$parcel$export(e.exports,"joinSignature",(()=>R));var a=parcelRequire("lNmfi"),o=parcelRequire("b6zf2");const n=new(0,a.Logger)(o.version);function s(e){return!!e.toHexString}function r(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return r(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function i(e){return h(e)&&!(e.length%2)||d(e)}function c(e){return"number"==typeof e&&e==e&&e%1==0}function d(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!c(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function l(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),r(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),s(e)&&(e=e.toHexString()),h(e)){let a=e.substring(2);a.length%2&&("left"===t.hexPad?a="0"+a:"right"===t.hexPad?a+="0":n.throwArgumentError("hex data is odd-length","value",e));const o=[];for(let e=0;el(e))),a=t.reduce(((e,t)=>e+t.length),0),o=new Uint8Array(a);return t.reduce(((e,t)=>(o.set(t,e),e+t.length)),0),r(o)}function u(e){let t=l(e);if(0===t.length)return t;let a=0;for(;at&&n.throwArgumentError("value out of range","value",arguments[0]);const a=new Uint8Array(t);return a.set(e,t-e.length),r(a)}function h(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const g="0123456789abcdef";function b(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=g[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),s(e))return e.toHexString();if(h(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":n.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(d(e)){let t="0x";for(let a=0;a>4]+g[15&o]}return t}return n.throwArgumentError("invalid hexlify value","value",e)}function f(e){if("string"!=typeof e)e=b(e);else if(!h(e)||e.length%2)return null;return(e.length-2)/2}function y(e,t,a){return"string"!=typeof e?e=b(e):(!h(e)||e.length%2)&&n.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=a?"0x"+e.substring(t,2+2*a):"0x"+e.substring(t)}function $(e){let t="0x";return e.forEach((e=>{t+=b(e).substring(2)})),t}function w(e){const t=k(b(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function k(e){"string"!=typeof e&&(e=b(e)),h(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function x(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(i(e)){let a=l(e);64===a.length?(t.v=27+(a[32]>>7),a[32]&=127,t.r=b(a.slice(0,32)),t.s=b(a.slice(32,64))):65===a.length?(t.r=b(a.slice(0,32)),t.s=b(a.slice(32,64)),t.v=a[64]):n.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(a[32]|=128),t._vs=b(a.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const a=p(l(t._vs),32);t._vs=b(a);const o=a[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=o:t.recoveryParam!==o&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),a[0]&=127;const s=b(a);null==t.s?t.s=s:t.s!==s&&n.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?n.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const a=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==a&&n.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&h(t.r)?t.r=v(t.r,32):n.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&h(t.s)?t.s=v(t.s,32):n.throwArgumentError("signature missing or invalid s","signature",e);const a=l(t.s);a[0]>=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(a[0]|=128);const o=b(a);t._vs&&(h(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=v(t._vs,32)),null==t._vs?t._vs=o:t._vs!==o&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function R(e){return b(m([(e=x(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}})),parcelRequire.register("lNmfi",(function(e,t){$parcel$export(e.exports,"ErrorCode",(()=>m)),$parcel$export(e.exports,"Logger",(()=>h));var a=parcelRequire("jiDAe");let o=!1,n=!1;const s={debug:1,default:2,info:2,warning:3,error:4,off:5};let r=s.default,i=null;const c=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(a){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var d,l,m,u;(l=d||(d={})).DEBUG="DEBUG",l.INFO="INFO",l.WARNING="WARNING",l.ERROR="ERROR",l.OFF="OFF",(u=m||(m={})).UNKNOWN_ERROR="UNKNOWN_ERROR",u.NOT_IMPLEMENTED="NOT_IMPLEMENTED",u.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",u.NETWORK_ERROR="NETWORK_ERROR",u.SERVER_ERROR="SERVER_ERROR",u.TIMEOUT="TIMEOUT",u.BUFFER_OVERRUN="BUFFER_OVERRUN",u.NUMERIC_FAULT="NUMERIC_FAULT",u.MISSING_NEW="MISSING_NEW",u.INVALID_ARGUMENT="INVALID_ARGUMENT",u.MISSING_ARGUMENT="MISSING_ARGUMENT",u.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",u.CALL_EXCEPTION="CALL_EXCEPTION",u.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",u.NONCE_EXPIRED="NONCE_EXPIRED",u.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",u.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",u.TRANSACTION_REPLACED="TRANSACTION_REPLACED",u.ACTION_REJECTED="ACTION_REJECTED";const p="0123456789abcdef";class h{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const a=e.toLowerCase();null==s[a]&&this.throwArgumentError("invalid log level name","logLevel",e),r>s[a]||console.log.apply(console,t)}debug(...e){this._log(h.levels.DEBUG,e)}info(...e){this._log(h.levels.INFO,e)}warn(...e){this._log(h.levels.WARNING,e)}makeError(e,t,a){if(n)return this.makeError("censored error",t,{});t||(t=h.errors.UNKNOWN_ERROR),a||(a={});const o=[];Object.keys(a).forEach((e=>{const t=a[e];try{if(t instanceof Uint8Array){let a="";for(let e=0;e>4],a+=p[15&t[e]];o.push(e+"=Uint8Array(0x"+a+")")}else o.push(e+"="+JSON.stringify(t))}catch(t){o.push(e+"="+JSON.stringify(a[e].toString()))}})),o.push(`code=${t}`),o.push(`version=${this.version}`);const s=e;let r="";switch(t){case m.NUMERIC_FAULT:{r="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":r+="-"+t;break;case"negative-power":case"negative-width":r+="-unsupported";break;case"unbound-bitwise-result":r+="-unbound-result"}break}case m.CALL_EXCEPTION:case m.INSUFFICIENT_FUNDS:case m.MISSING_NEW:case m.NONCE_EXPIRED:case m.REPLACEMENT_UNDERPRICED:case m.TRANSACTION_REPLACED:case m.UNPREDICTABLE_GAS_LIMIT:r=t}r&&(e+=" [ See: https://links.ethers.org/v5-errors-"+r+" ]"),o.length&&(e+=" ("+o.join(", ")+")");const i=new Error(e);return i.reason=s,i.code=t,Object.keys(a).forEach((function(e){i[e]=a[e]})),i}throwError(e,t,a){throw this.makeError(e,t,a)}throwArgumentError(e,t,a){return this.throwError(e,h.errors.INVALID_ARGUMENT,{argument:t,value:a})}assert(e,t,a,o){e||this.throwError(t,a,o)}assertArgument(e,t,a,o){e||this.throwArgumentError(t,a,o)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),c&&this.throwError("platform missing String.prototype.normalize",h.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,a){a=a?": "+a:"",et&&this.throwError("too many arguments"+a,h.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",h.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",h.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",h.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return i||(i=new h(a.version)),i}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),o){if(!e)return;this.globalLogger().throwError("error censorship permanent",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}n=!!e,o=!!t}static setLogLevel(e){const t=s[e.toLowerCase()];null!=t?r=t:h.globalLogger().warn("invalid log level - "+e)}static from(e){return new h(e)}}h.errors=m,h.levels=d})),parcelRequire.register("jiDAe",(function(e,t){$parcel$export(e.exports,"version",(()=>a));const a="logger/5.7.0"})),parcelRequire.register("b6zf2",(function(e,t){$parcel$export(e.exports,"version",(()=>a));const a="bytes/5.7.0"})),parcelRequire.register("5osGs",(function(e,t){$parcel$export(e.exports,"version",(()=>a));const a="rlp/5.7.0"})),parcelRequire.register("iOJmx",(function(e,t){var a,o,n,s,r,i,c,d,l,m,u,p,h,g,b,f,y,$,w,k,v,x,R,A,I,S;$parcel$export(e.exports,"inherits",(()=>a),(e=>a=e)),$parcel$export(e.exports,"toArray",(()=>o),(e=>o=e)),$parcel$export(e.exports,"toHex",(()=>n),(e=>n=e)),$parcel$export(e.exports,"htonl",(()=>s),(e=>s=e)),$parcel$export(e.exports,"toHex32",(()=>r),(e=>r=e)),$parcel$export(e.exports,"zero2",(()=>i),(e=>i=e)),$parcel$export(e.exports,"zero8",(()=>c),(e=>c=e)),$parcel$export(e.exports,"join32",(()=>d),(e=>d=e)),$parcel$export(e.exports,"split32",(()=>l),(e=>l=e)),$parcel$export(e.exports,"rotr32",(()=>m),(e=>m=e)),$parcel$export(e.exports,"rotl32",(()=>u),(e=>u=e)),$parcel$export(e.exports,"sum32",(()=>p),(e=>p=e)),$parcel$export(e.exports,"sum32_3",(()=>h),(e=>h=e)),$parcel$export(e.exports,"sum32_4",(()=>g),(e=>g=e)),$parcel$export(e.exports,"sum32_5",(()=>b),(e=>b=e)),$parcel$export(e.exports,"sum64",(()=>f),(e=>f=e)),$parcel$export(e.exports,"sum64_hi",(()=>y),(e=>y=e)),$parcel$export(e.exports,"sum64_lo",(()=>$),(e=>$=e)),$parcel$export(e.exports,"sum64_4_hi",(()=>w),(e=>w=e)),$parcel$export(e.exports,"sum64_4_lo",(()=>k),(e=>k=e)),$parcel$export(e.exports,"sum64_5_hi",(()=>v),(e=>v=e)),$parcel$export(e.exports,"sum64_5_lo",(()=>x),(e=>x=e)),$parcel$export(e.exports,"rotr64_hi",(()=>R),(e=>R=e)),$parcel$export(e.exports,"rotr64_lo",(()=>A),(e=>A=e)),$parcel$export(e.exports,"shr64_hi",(()=>I),(e=>I=e)),$parcel$export(e.exports,"shr64_lo",(()=>S),(e=>S=e));var E=parcelRequire("kug9N"),T=parcelRequire("943Ft");function C(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function U(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function M(e){return 1===e.length?"0"+e:e}function D(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}a=T,o=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var a=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,a[o++]=63&s|128):C(e,n)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++n)),a[o++]=s>>18|240,a[o++]=s>>12&63|128,a[o++]=s>>6&63|128,a[o++]=63&s|128):(a[o++]=s>>12|224,a[o++]=s>>6&63|128,a[o++]=63&s|128)}else for(n=0;n>>0}return s},l=function(e,t){for(var a=new Array(4*e.length),o=0,n=0;o>>24,a[n+1]=s>>>16&255,a[n+2]=s>>>8&255,a[n+3]=255&s):(a[n+3]=s>>>24,a[n+2]=s>>>16&255,a[n+1]=s>>>8&255,a[n]=255&s)}return a},m=function(e,t){return e>>>t|e<<32-t},u=function(e,t){return e<>>32-t},p=function(e,t){return e+t>>>0},h=function(e,t,a){return e+t+a>>>0},g=function(e,t,a,o){return e+t+a+o>>>0},b=function(e,t,a,o,n){return e+t+a+o+n>>>0},f=function(e,t,a,o){var n=e[t],s=o+e[t+1]>>>0,r=(s>>0,e[t+1]=s},y=function(e,t,a,o){return(t+o>>>0>>0},$=function(e,t,a,o){return t+o>>>0},w=function(e,t,a,o,n,s,r,i){var c=0,d=t;return c+=(d=d+o>>>0)>>0)>>0)>>0},k=function(e,t,a,o,n,s,r,i){return t+o+s+i>>>0},v=function(e,t,a,o,n,s,r,i,c,d){var l=0,m=t;return l+=(m=m+o>>>0)>>0)>>0)>>0)>>0},x=function(e,t,a,o,n,s,r,i,c,d){return t+o+s+i+d>>>0},R=function(e,t,a){return(t<<32-a|e>>>a)>>>0},A=function(e,t,a){return(e<<32-a|t>>>a)>>>0},I=function(e,t,a){return e>>>a},S=function(e,t,a){return(e<<32-a|t>>>a)>>>0}})),parcelRequire.register("kug9N",(function(e,t){function a(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=a,a.equal=function(e,t,a){if(e!=t)throw new Error(a||"Assertion failed: "+e+" != "+t)}})),parcelRequire.register("943Ft",(function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}}})),parcelRequire.register("5xbkz",(function(e,t){var a;$parcel$export(e.exports,"BlockHash",(()=>a),(e=>a=e));var o=parcelRequire("iOJmx"),n=parcelRequire("kug9N");function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}a=s,s.prototype.update=function(e,t){if(e=o.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var a=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-a,e.length),0===this.pending.length&&(this.pending=null),e=o.join32(e,0,e.length-a,this.endian);for(var n=0;n>>24&255,o[n++]=e>>>16&255,o[n++]=e>>>8&255,o[n++]=255&e}else for(o[n++]=255&e,o[n++]=e>>>8&255,o[n++]=e>>>16&255,o[n++]=e>>>24&255,o[n++]=0,o[n++]=0,o[n++]=0,o[n++]=0,s=8;sa),(e=>a=e)),$parcel$export(e.exports,"sha224",(()=>o),(e=>o=e)),$parcel$export(e.exports,"sha256",(()=>n),(e=>n=e)),$parcel$export(e.exports,"sha384",(()=>s),(e=>s=e)),$parcel$export(e.exports,"sha512",(()=>r),(e=>r=e)),a=parcelRequire("evnPo"),o=parcelRequire("4LgZG"),n=parcelRequire("52oNi"),s=parcelRequire("fy0rM"),r=parcelRequire("9qdnm")})),parcelRequire.register("evnPo",(function(e,t){"use strict";var a=parcelRequire("iOJmx"),o=parcelRequire("5xbkz"),n=parcelRequire("dQVbA"),s=a.rotl32,r=a.sum32,i=a.sum32_5,c=n.ft_1,d=o.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function m(){if(!(this instanceof m))return new m;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}a.inherits(m,d),e.exports=m,m.blockSize=512,m.outSize=160,m.hmacStrength=80,m.padLength=64,m.prototype._update=function(e,t){for(var a=this.W,o=0;o<16;o++)a[o]=e[t+o];for(;oa),(e=>a=e)),$parcel$export(e.exports,"ch32",(()=>o),(e=>o=e)),$parcel$export(e.exports,"maj32",(()=>n),(e=>n=e)),$parcel$export(e.exports,"s0_256",(()=>s),(e=>s=e)),$parcel$export(e.exports,"s1_256",(()=>r),(e=>r=e)),$parcel$export(e.exports,"g0_256",(()=>i),(e=>i=e)),$parcel$export(e.exports,"g1_256",(()=>c),(e=>c=e));var d=parcelRequire("iOJmx").rotr32;function l(e,t,a){return e&t^~e&a}function m(e,t,a){return e&t^e&a^t&a}function u(e,t,a){return e^t^a}a=function(e,t,a,o){return 0===e?l(t,a,o):1===e||3===e?u(t,a,o):2===e?m(t,a,o):void 0},o=l,n=m,s=function(e){return d(e,2)^d(e,13)^d(e,22)},r=function(e){return d(e,6)^d(e,11)^d(e,25)},i=function(e){return d(e,7)^d(e,18)^e>>>3},c=function(e){return d(e,17)^d(e,19)^e>>>10}})),parcelRequire.register("4LgZG",(function(e,t){"use strict";var a=parcelRequire("iOJmx"),o=parcelRequire("52oNi");function n(){if(!(this instanceof n))return new n;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}a.inherits(n,o),e.exports=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(e){return"hex"===e?a.toHex32(this.h.slice(0,7),"big"):a.split32(this.h.slice(0,7),"big")}})),parcelRequire.register("52oNi",(function(e,t){"use strict";var a=parcelRequire("iOJmx"),o=parcelRequire("5xbkz"),n=parcelRequire("dQVbA"),s=parcelRequire("kug9N"),r=a.sum32,i=a.sum32_4,c=a.sum32_5,d=n.ch32,l=n.maj32,m=n.s0_256,u=n.s1_256,p=n.g0_256,h=n.g1_256,g=o.BlockHash,b=[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];function f(){if(!(this instanceof f))return new f;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}a.inherits(f,g),e.exports=f,f.blockSize=512,f.outSize=256,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(e,t){for(var a=this.W,o=0;o<16;o++)a[o]=e[t+o];for(;oa),(e=>a=e));var o=parcelRequire("iOJmx"),n=parcelRequire("5xbkz"),s=o.rotl32,r=o.sum32,i=o.sum32_3,c=o.sum32_4,d=n.BlockHash;function l(){if(!(this instanceof l))return new l;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function m(e,t,a,o){return e<=15?t^a^o:e<=31?t&a|~t&o:e<=47?(t|~a)^o:e<=63?t&o|a&~o:t^(a|~o)}function u(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function p(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}o.inherits(l,d),a=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var a=this.h[0],o=this.h[1],n=this.h[2],d=this.h[3],l=this.h[4],y=a,$=o,w=n,k=d,v=l,x=0;x<80;x++){var R=r(s(c(a,m(x,o,n,d),e[h[x]+t],u(x)),b[x]),l);a=l,l=d,d=s(n,10),n=o,o=R,R=r(s(c(y,m(79-x,$,w,k),e[g[x]+t],p(x)),f[x]),v),y=v,v=k,k=s(w,10),w=$,$=R}R=i(this.h[1],n,k),this.h[1]=i(this.h[2],d,v),this.h[2]=i(this.h[3],l,y),this.h[3]=i(this.h[4],a,$),this.h[4]=i(this.h[0],o,w),this.h[0]=R},l.prototype._digest=function(e){return"hex"===e?o.toHex32(this.h,"little"):o.split32(this.h,"little")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],b=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]})),parcelRequire.register("kHHyo",(function(e,t){"use strict";var a=parcelRequire("iOJmx"),o=parcelRequire("kug9N");function n(e,t,o){if(!(this instanceof n))return new n(e,t,o);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(a.toArray(t,o))}e.exports=n,n.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var t=e.length;tparcelRequire("aAExE").decode)),$parcel$export(e.exports,"encode",(()=>parcelRequire("aAExE").encode));parcelRequire("aAExE")})),parcelRequire.register("aAExE",(function(e,t){$parcel$export(e.exports,"decode",(()=>o)),$parcel$export(e.exports,"encode",(()=>n));var a=parcelRequire("juEF3");function o(e){e=atob(e);const t=[];for(let a=0;aa),(e=>a=e)),$parcel$export(e.exports,"Component",(()=>o),(e=>o=e)),$parcel$export(e.exports,"Fragment",(()=>n),(e=>n=e)),$parcel$export(e.exports,"Profiler",(()=>s),(e=>s=e)),$parcel$export(e.exports,"PureComponent",(()=>r),(e=>r=e)),$parcel$export(e.exports,"StrictMode",(()=>i),(e=>i=e)),$parcel$export(e.exports,"Suspense",(()=>c),(e=>c=e)),$parcel$export(e.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(()=>d),(e=>d=e)),$parcel$export(e.exports,"cloneElement",(()=>l),(e=>l=e)),$parcel$export(e.exports,"createContext",(()=>m),(e=>m=e)),$parcel$export(e.exports,"createElement",(()=>u),(e=>u=e)),$parcel$export(e.exports,"createFactory",(()=>p),(e=>p=e)),$parcel$export(e.exports,"createRef",(()=>h),(e=>h=e)),$parcel$export(e.exports,"forwardRef",(()=>g),(e=>g=e)),$parcel$export(e.exports,"isValidElement",(()=>b),(e=>b=e)),$parcel$export(e.exports,"lazy",(()=>f),(e=>f=e)),$parcel$export(e.exports,"memo",(()=>y),(e=>y=e)),$parcel$export(e.exports,"startTransition",(()=>$),(e=>$=e)),$parcel$export(e.exports,"unstable_act",(()=>w),(e=>w=e)),$parcel$export(e.exports,"useCallback",(()=>k),(e=>k=e)),$parcel$export(e.exports,"useContext",(()=>v),(e=>v=e)),$parcel$export(e.exports,"useDebugValue",(()=>x),(e=>x=e)),$parcel$export(e.exports,"useDeferredValue",(()=>R),(e=>R=e)),$parcel$export(e.exports,"useEffect",(()=>A),(e=>A=e)),$parcel$export(e.exports,"useId",(()=>I),(e=>I=e)),$parcel$export(e.exports,"useImperativeHandle",(()=>S),(e=>S=e)),$parcel$export(e.exports,"useInsertionEffect",(()=>E),(e=>E=e)),$parcel$export(e.exports,"useLayoutEffect",(()=>T),(e=>T=e)),$parcel$export(e.exports,"useMemo",(()=>C),(e=>C=e)),$parcel$export(e.exports,"useReducer",(()=>U),(e=>U=e)),$parcel$export(e.exports,"useRef",(()=>M),(e=>M=e)),$parcel$export(e.exports,"useState",(()=>D),(e=>D=e)),$parcel$export(e.exports,"useSyncExternalStore",(()=>N),(e=>N=e)),$parcel$export(e.exports,"useTransition",(()=>P),(e=>P=e)),$parcel$export(e.exports,"version",(()=>B),(e=>B=e));var L=Symbol.for("react.element"),F=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),W=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),Y=Symbol.iterator;var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,O={};function Z(e,t,a){this.props=e,this.context=t,this.refs=O,this.updater=a||J}function Q(){}function ee(e,t,a){this.props=e,this.context=t,this.refs=O,this.updater=a||J}Z.prototype.isReactComponent={},Z.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Z.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Q.prototype=Z.prototype;var te=ee.prototype=new Q;te.constructor=ee,X(te,Z.prototype),te.isPureReactComponent=!0;var ae=Array.isArray,oe=Object.prototype.hasOwnProperty,ne={current:null},se={key:!0,ref:!0,__self:!0,__source:!0};function re(e,t,a){var o,n={},s=null,r=null;if(null!=t)for(o in void 0!==t.ref&&(r=t.ref),void 0!==t.key&&(s=""+t.key),t)oe.call(t,o)&&!se.hasOwnProperty(o)&&(n[o]=t[o]);var i=arguments.length-2;if(1===i)n.children=a;else if(1a),(e=>a=e));var o=parcelRequire("2nFRz"),n=parcelRequire("7hDm9");var s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=n.useSyncExternalStore,i=o.useRef,c=o.useEffect,d=o.useMemo,l=o.useDebugValue;a=function(e,t,a,o,n){var m=i(null);if(null===m.current){var u={hasValue:!1,value:null};m.current=u}else u=m.current;m=d((function(){function e(e){if(!c){if(c=!0,r=e,e=o(e),void 0!==n&&u.hasValue){var t=u.value;if(n(t,e))return i=t}return i=e}if(t=i,s(r,e))return t;var a=o(e);return void 0!==n&&n(t,a)?t:(r=e,i=a)}var r,i,c=!1,d=void 0===a?null:a;return[function(){return e(t())},null===d?void 0:function(){return e(d())}]}),[t,a,o,n]);var p=r(e,m[0],m[1]);return c((function(){u.hasValue=!0,u.value=p}),[p]),l(p),p}})),parcelRequire.register("7hDm9",(function(e,t){"use strict";e.exports=parcelRequire("5PoxP")})),parcelRequire.register("5PoxP",(function(e,t){ +/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var a;$parcel$export(e.exports,"useSyncExternalStore",(()=>a),(e=>a=e));var o=parcelRequire("2nFRz");var n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useState,r=o.useEffect,i=o.useLayoutEffect,c=o.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!n(e,a)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),o=s({inst:{value:a,getSnapshot:t}}),n=o[0].inst,l=o[1];return i((function(){n.value=a,n.getSnapshot=t,d(n)&&l({inst:n})}),[e,a,t]),r((function(){return d(n)&&l({inst:n}),e((function(){d(n)&&l({inst:n})}))}),[e]),c(a),a};a=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:l})),parcelRequire.register("39LEJ",(function(e,t){$parcel$export(e.exports,"parseIdlErrors",(()=>x)),$parcel$export(e.exports,"toInstruction",(()=>R)),$parcel$export(e.exports,"validateAccounts",(()=>A)),$parcel$export(e.exports,"translateAddress",(()=>I)),$parcel$export(e.exports,"getProvider",(()=>ie)),$parcel$export(e.exports,"AnchorProvider",(()=>ae)),$parcel$export(e.exports,"setProvider",(()=>re)),$parcel$export(e.exports,"IdlError",(()=>pe)),$parcel$export(e.exports,"ProgramErrorStack",(()=>he)),$parcel$export(e.exports,"AnchorError",(()=>ge)),$parcel$export(e.exports,"ProgramError",(()=>be)),$parcel$export(e.exports,"LangErrorMessage",(()=>$e)),$parcel$export(e.exports,"translateError",(()=>fe)),$parcel$export(e.exports,"LangErrorCode",(()=>ye)),$parcel$export(e.exports,"BorshInstructionCoder",(()=>Ie)),$parcel$export(e.exports,"ACCOUNT_DISCRIMINATOR_SIZE",(()=>Ue)),$parcel$export(e.exports,"BorshAccountsCoder",(()=>Me)),$parcel$export(e.exports,"BorshEventCoder",(()=>De)),$parcel$export(e.exports,"eventDiscriminator",(()=>Ne)),$parcel$export(e.exports,"BorshStateCoder",(()=>Pe)),$parcel$export(e.exports,"stateDiscriminator",(()=>Be)),$parcel$export(e.exports,"BorshCoder",(()=>Fe)),$parcel$export(e.exports,"SplTokenCoder",(()=>Et)),$parcel$export(e.exports,"SystemCoder",(()=>Wt)),$parcel$export(e.exports,"utils",(()=>ra)),$parcel$export(e.exports,"splitArgsAndCtx",(()=>ca)),$parcel$export(e.exports,"StateClient",(()=>ua)),$parcel$export(e.exports,"AccountClient",(()=>ha)),$parcel$export(e.exports,"EventManager",(()=>ba)),$parcel$export(e.exports,"EventParser",(()=>fa)),$parcel$export(e.exports,"MethodsBuilderFactory",(()=>Aa)),$parcel$export(e.exports,"Program",(()=>Sa)),$parcel$export(e.exports,"Spl",(()=>Ba)),$parcel$export(e.exports,"Native",(()=>Ka)),$parcel$export(e.exports,"web3",(()=>parcelRequire("5cySN"))),$parcel$export(e.exports,"BN",(()=>$parcel$interopDefault(parcelRequire("bDdkr"))));var a=parcelRequire("ajHSv"),o=parcelRequire("5cySN"),n=(o=parcelRequire("5cySN"),parcelRequire("bDdkr")),s=(n=parcelRequire("bDdkr"),parcelRequire("8eDFA")),r=parcelRequire("2KbE2"),i=parcelRequire("31mRL"),c=parcelRequire("TTdkx"),d=parcelRequire("5tK1N"),l=parcelRequire("lGmwl"),m=parcelRequire("kuu9S"),u=parcelRequire("crIim"),p=(a=parcelRequire("ajHSv")).Buffer,h=Object.freeze({__proto__:null,encode:function(e){return e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"0x")},decode:function(e){0===e.indexOf("0x")&&(e=e.substr(2)),e.length%2==1&&(e="0"+e);let t=e.match(/.{2}/g);return null===t?a.Buffer.from([]):a.Buffer.from(t.map((e=>parseInt(e,16))))}});function g(e){return new TextDecoder("utf-8").decode(e)}function b(e){return(new TextEncoder).encode(e)}var f=Object.freeze({__proto__:null,decode:g,encode:b});function y(e){return $parcel$interopDefault(s).encode(e)}var $=Object.freeze({__proto__:null,encode:y,decode:function(e){return $parcel$interopDefault(s).decode(e)}});function w(e){return a.Buffer.from(r.toByteArray(e))}var k=Object.freeze({__proto__:null,encode:function(e){return r.fromByteArray(e)},decode:w}),v=Object.freeze({__proto__:null,hex:h,utf8:f,bs58:$,base64:k});function x(e){const t=new Map;return e.errors&&e.errors.forEach((e=>{var a;let o=null!==(a=e.msg)&&void 0!==a?a:e.name;t.set(e.code,o)})),t}function R(e,...t){if(e.args.length!=t.length)throw new Error("Invalid argument length");const a={};let o=0;return e.args.forEach((e=>{a[e.name]=t[o],o+=1})),a}function A(e,t={}){e.forEach((e=>{if("accounts"in e)A(e.accounts,t[e.name]);else if(void 0===t[e.name])throw new Error(`Invalid arguments: ${e.name} not provided.`)}))}function I(e){return e instanceof o.PublicKey?e:new(0,o.PublicKey)(e)}class S extends TypeError{constructor(e,t){let a;const{message:o,...n}=e,{path:s}=e;super(0===s.length?o:"At path: "+s.join(".")+" -- "+o),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,n),this.name=this.constructor.name,this.failures=()=>{var o;return null!=(o=a)?o:a=[e,...t()]}}}function E(e){return"object"==typeof e&&null!=e}function T(e){return"string"==typeof e?JSON.stringify(e):""+e}function C(e,t,a,o){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:n,branch:s}=t,{type:r}=a,{refinement:i,message:c="Expected a value of type `"+r+"`"+(i?" with refinement `"+i+"`":"")+", but received: `"+T(o)+"`"}=e;return{value:o,type:r,refinement:i,key:n[n.length-1],path:n,branch:s,...e,message:c}}function*U(e,t,a,o){var n;E(n=e)&&"function"==typeof n[Symbol.iterator]||(e=[e]);for(const n of e){const e=C(n,t,a,o);e&&(yield e)}}function*M(e,t,a){void 0===a&&(a={});const{path:o=[],branch:n=[e],coerce:s=!1,mask:r=!1}=a,i={path:o,branch:n};if(s&&(e=t.coercer(e,i),r&&"type"!==t.type&&E(t.schema)&&E(e)&&!Array.isArray(e)))for(const a in e)void 0===t.schema[a]&&delete e[a];let c=!0;for(const a of t.validator(e,i))c=!1,yield[a,void 0];for(let[a,d,l]of t.entries(e,i)){const t=M(d,l,{path:void 0===a?o:[...o,a],branch:void 0===a?n:[...n,d],coerce:s,mask:r});for(const o of t)o[0]?(c=!1,yield[o[0],void 0]):s&&(d=o[1],void 0===a?e=d:e instanceof Map?e.set(a,d):e instanceof Set?e.add(d):E(e)&&(e[a]=d))}if(c)for(const a of t.refiner(e,i))c=!1,yield[a,void 0];c&&(yield[void 0,e])}class D{constructor(e){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;const{type:t,schema:a,validator:o,refiner:n,coercer:s=(e=>e),entries:r=function*(){}}=e;this.type=t,this.schema=a,this.entries=r,this.coercer=s,this.validator=o?(e,t)=>U(o(e,t),t,this,e):()=>[],this.refiner=n?(e,t)=>U(n(e,t),t,this,e):()=>[]}assert(e){return function(e,t){const a=B(e,t);if(a[0])throw a[0]}(e,this)}create(e){return N(e,this)}is(e){return P(e,this)}mask(e){return function(e,t){const a=B(e,t,{coerce:!0,mask:!0});if(a[0])throw a[0];return a[1]}(e,this)}validate(e,t){return void 0===t&&(t={}),B(e,this,t)}}function N(e,t){const a=B(e,t,{coerce:!0});if(a[0])throw a[0];return a[1]}function P(e,t){return!B(e,t)[0]}function B(e,t,a){void 0===a&&(a={});const o=M(e,t,a),n=function(e){const{done:t,value:a}=e.next();return t?void 0:a}(o);return n[0]?[new S(n[0],(function*(){for(const e of o)e[0]&&(yield e[0])})),void 0]:[void 0,n[1]]}function L(e,t){return new D({type:e,schema:null,validator:t})}function F(e){return new D({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[a,o]of t.entries())yield[a,o,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||"Expected an array value, but received: "+T(e)})}function K(e){const t=T(e),a=typeof e;return new D({type:"literal",schema:"string"===a||"number"===a||"boolean"===a?e:null,validator:a=>a===e||"Expected the literal `"+t+"`, but received: "+T(a)})}function G(e){return new D({...e,validator:(t,a)=>null===t||e.validator(t,a),refiner:(t,a)=>null===t||e.refiner(t,a)})}function j(){return L("number",(e=>"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+T(e)))}function q(e){return new D({...e,validator:(t,a)=>void 0===t||e.validator(t,a),refiner:(t,a)=>void 0===t||e.refiner(t,a)})}function W(){return L("string",(e=>"string"==typeof e||"Expected a string, but received: "+T(e)))}function z(e){const t=Object.keys(e);return new D({type:"type",schema:e,*entries(a){if(E(a))for(const o of t)yield[o,a[o],e[o]]},validator:e=>E(e)||"Expected an object, but received: "+T(e)})}function H(e){const t=e.map((e=>e.type)).join(" | ");return new D({type:"union",schema:null,coercer:(t,a)=>(e.find((e=>{const[a]=e.validate(t,{coerce:!0});return!a}))||_()).coercer(t,a),validator(a,o){const n=[];for(const t of e){const[...e]=M(a,t,o),[s]=e;if(!s[0])return[];for(const[t]of e)t&&n.push(t)}return["Expected the value to satisfy a union of `"+t+"`, but received: "+T(a),...n]}})}function _(){return L("unknown",(()=>!0))}async function V(e,t,a){if(t.length<=99)return await Y(e,t,a);{const o=function(e,t){return Array.apply(0,new Array(Math.ceil(e.length/99))).map(((t,a)=>e.slice(99*a,99*(a+1))))}(t);return(await Promise.all(o.map((t=>Y(e,t,a))))).flat()}}async function Y(e,t,a){const o=null!=a?a:e.commitment;return(await e.getMultipleAccountsInfo(t,o)).map(((e,a)=>null===e?null:{publicKey:t[a],account:e}))}async function J(e,t,a,n,s){a&&a.length>0&&t.sign(...a);const r=t._compile(),i=r.serialize(),c=t._serialize(i).toString("base64"),d={encoding:"base64",commitment:null!=n?n:e.commitment};if(s){const e=(Array.isArray(s)?s:r.nonProgramIds()).map((e=>e.toBase58()));d.accounts={encoding:"base64",addresses:e}}a&&(d.sigVerify=!0);const l=[c,d],m=N(await e._rpcRequest("simulateTransaction",l),Z);if("error"in m){let e;if("data"in m.error&&(e=m.error.data.logs,e&&Array.isArray(e))){const t="\n ",a=t+e.join(t);console.error(m.error.message,a)}throw new(0,o.SendTransactionError)("failed to simulate transaction: "+m.error.message,e)}return m.result}const X=O(_());function O(e){return H([z({jsonrpc:K("2.0"),id:W(),result:e}),z({jsonrpc:K("2.0"),id:W(),error:z({code:_(),message:W(),data:q(L("any",(()=>!0)))})})])}const Z=(ee=z({err:G(H([z({}),W()])),logs:G(F(W())),accounts:q(G(F(G(z({executable:L("boolean",(e=>"boolean"==typeof e)),owner:W(),lamports:j(),data:F(W()),rentEpoch:q(j())}))))),unitsConsumed:q(j())}),function(e,t,a){return new D({...e,coercer:(o,n)=>P(o,t)?e.coercer(a(o),n):e.coercer(o,n)})}(O(Q=z({context:z({slot:j()}),value:ee})),X,(e=>"error"in e?e:{...e,result:N(e.result,Q)})));var Q,ee,te=Object.freeze({__proto__:null,invoke:async function(e,t,a,n){e=I(e),n||(n=ie());const s=new(0,o.Transaction);if(s.add(new(0,o.TransactionInstruction)({programId:e,keys:null!=t?t:[],data:a})),void 0===n.sendAndConfirm)throw new Error("This function requires 'Provider.sendAndConfirm' to be implemented.");return await n.sendAndConfirm(s,[])},getMultipleAccounts:V,simulateTransaction:J});class ae{constructor(e,t,a){this.connection=e,this.wallet=t,this.opts=a,this.publicKey=t.publicKey}static defaultOptions(){return{preflightCommitment:"processed",commitment:"processed"}}static local(e,t){throw new Error("Provider local is not available on browser.")}static env(){throw new Error("Provider env is not available on browser.")}async sendAndConfirm(e,t,a){var n;void 0===a&&(a=this.opts),e.feePayer=this.wallet.publicKey,e.recentBlockhash=(await this.connection.getRecentBlockhash(a.preflightCommitment)).blockhash,e=await this.wallet.signTransaction(e),(null!=t?t:[]).forEach((t=>{e.partialSign(t)}));const s=e.serialize();try{return await ne(this.connection,s,a)}catch(t){if(t instanceof se){const a=await this.connection.getTransaction(y(e.signature),{commitment:"confirmed"});if(a){const e=null===(n=a.meta)||void 0===n?void 0:n.logMessages;throw e?new(0,o.SendTransactionError)(t.message,e):t}throw t}throw t}}async sendAll(e,t){void 0===t&&(t=this.opts);const a=await this.connection.getRecentBlockhash(t.preflightCommitment);let o=e.map((e=>{var t;let o=e.tx,n=null!==(t=e.signers)&&void 0!==t?t:[];return o.feePayer=this.wallet.publicKey,o.recentBlockhash=a.blockhash,n.forEach((e=>{o.partialSign(e)})),o}));const n=await this.wallet.signAllTransactions(o),s=[];for(let e=0;ee.startsWith("Program log: AnchorError")));if(-1===t)return null;const a=e[t],n=[a];let s;if(t+11)return null;o=e[0].match(/([0-9]+)/g)[0]}try{n=parseInt(o)}catch(e){return null}let s=t.get(n);return void 0!==s?new be(n,s,e.logs):(s=$e.get(n),void 0!==s?new be(n,s,e.logs):null)}get program(){var e;return null===(e=this._programErrorStack)||void 0===e?void 0:e.stack[this._programErrorStack.stack.length-1]}get programErrorStack(){var e;return null===(e=this._programErrorStack)||void 0===e?void 0:e.stack}toString(){return this.msg}}function fe(e,t){me("debug-logs")&&console.log("Translating error:",e);const a=ge.parse(e.logs);if(a)return a;const o=be.parse(e,t);if(o)return o;if(e.logs){const t={get:function(t,a){return"programErrorStack"===a?t.programErrorStack.stack:"program"===a?t.programErrorStack.stack[e.programErrorStack.stack.length-1]:Reflect.get(...arguments)}};return e.programErrorStack=he.parse(e.logs),new Proxy(e,t)}return e}const ye={InstructionMissing:100,InstructionFallbackNotFound:101,InstructionDidNotDeserialize:102,InstructionDidNotSerialize:103,IdlInstructionStub:1e3,IdlInstructionInvalidProgram:1001,ConstraintMut:2e3,ConstraintHasOne:2001,ConstraintSigner:2002,ConstraintRaw:2003,ConstraintOwner:2004,ConstraintRentExempt:2005,ConstraintSeeds:2006,ConstraintExecutable:2007,ConstraintState:2008,ConstraintAssociated:2009,ConstraintAssociatedInit:2010,ConstraintClose:2011,ConstraintAddress:2012,ConstraintZero:2013,ConstraintTokenMint:2014,ConstraintTokenOwner:2015,ConstraintMintMintAuthority:2016,ConstraintMintFreezeAuthority:2017,ConstraintMintDecimals:2018,ConstraintSpace:2019,RequireViolated:2500,RequireEqViolated:2501,RequireKeysEqViolated:2502,RequireNeqViolated:2503,RequireKeysNeqViolated:2504,RequireGtViolated:2505,RequireGteViolated:2506,AccountDiscriminatorAlreadySet:3e3,AccountDiscriminatorNotFound:3001,AccountDiscriminatorMismatch:3002,AccountDidNotDeserialize:3003,AccountDidNotSerialize:3004,AccountNotEnoughKeys:3005,AccountNotMutable:3006,AccountOwnedByWrongProgram:3007,InvalidProgramId:3008,InvalidProgramExecutable:3009,AccountNotSigner:3010,AccountNotSystemOwned:3011,AccountNotInitialized:3012,AccountNotProgramData:3013,AccountNotAssociatedTokenAccount:3014,AccountSysvarMismatch:3015,AccountReallocExceedsLimit:3016,AccountDuplicateReallocs:3017,StateInvalidAddress:4e3,DeclaredProgramIdMismatch:4100,Deprecated:5e3},$e=new Map([[ye.InstructionMissing,"8 byte instruction identifier not provided"],[ye.InstructionFallbackNotFound,"Fallback functions are not supported"],[ye.InstructionDidNotDeserialize,"The program could not deserialize the given instruction"],[ye.InstructionDidNotSerialize,"The program could not serialize the given instruction"],[ye.IdlInstructionStub,"The program was compiled without idl instructions"],[ye.IdlInstructionInvalidProgram,"The transaction was given an invalid program for the IDL instruction"],[ye.ConstraintMut,"A mut constraint was violated"],[ye.ConstraintHasOne,"A has_one constraint was violated"],[ye.ConstraintSigner,"A signer constraint was violated"],[ye.ConstraintRaw,"A raw constraint was violated"],[ye.ConstraintOwner,"An owner constraint was violated"],[ye.ConstraintRentExempt,"A rent exemption constraint was violated"],[ye.ConstraintSeeds,"A seeds constraint was violated"],[ye.ConstraintExecutable,"An executable constraint was violated"],[ye.ConstraintState,"A state constraint was violated"],[ye.ConstraintAssociated,"An associated constraint was violated"],[ye.ConstraintAssociatedInit,"An associated init constraint was violated"],[ye.ConstraintClose,"A close constraint was violated"],[ye.ConstraintAddress,"An address constraint was violated"],[ye.ConstraintZero,"Expected zero account discriminant"],[ye.ConstraintTokenMint,"A token mint constraint was violated"],[ye.ConstraintTokenOwner,"A token owner constraint was violated"],[ye.ConstraintMintMintAuthority,"A mint mint authority constraint was violated"],[ye.ConstraintMintFreezeAuthority,"A mint freeze authority constraint was violated"],[ye.ConstraintMintDecimals,"A mint decimals constraint was violated"],[ye.ConstraintSpace,"A space constraint was violated"],[ye.RequireViolated,"A require expression was violated"],[ye.RequireEqViolated,"A require_eq expression was violated"],[ye.RequireKeysEqViolated,"A require_keys_eq expression was violated"],[ye.RequireNeqViolated,"A require_neq expression was violated"],[ye.RequireKeysNeqViolated,"A require_keys_neq expression was violated"],[ye.RequireGtViolated,"A require_gt expression was violated"],[ye.RequireGteViolated,"A require_gte expression was violated"],[ye.AccountDiscriminatorAlreadySet,"The account discriminator was already set on this account"],[ye.AccountDiscriminatorNotFound,"No 8 byte discriminator was found on the account"],[ye.AccountDiscriminatorMismatch,"8 byte discriminator did not match what was expected"],[ye.AccountDidNotDeserialize,"Failed to deserialize the account"],[ye.AccountDidNotSerialize,"Failed to serialize the account"],[ye.AccountNotEnoughKeys,"Not enough account keys given to the instruction"],[ye.AccountNotMutable,"The given account is not mutable"],[ye.AccountOwnedByWrongProgram,"The given account is owned by a different program than expected"],[ye.InvalidProgramId,"Program ID was not as expected"],[ye.InvalidProgramExecutable,"Program account is not executable"],[ye.AccountNotSigner,"The given account did not sign"],[ye.AccountNotSystemOwned,"The given account is not owned by the system program"],[ye.AccountNotInitialized,"The program expected this account to be already initialized"],[ye.AccountNotProgramData,"The given account is not a program data account"],[ye.AccountNotAssociatedTokenAccount,"The given account is not the associated token account"],[ye.AccountSysvarMismatch,"The given public key does not match the required sysvar"],[ye.AccountReallocExceedsLimit,"The account reallocation exceeds the MAX_PERMITTED_DATA_INCREASE limit"],[ye.AccountDuplicateReallocs,"The account was duplicated for more than one reallocation"],[ye.StateInvalidAddress,"The given state account does not have the correct address"],[ye.DeclaredProgramIdMismatch,"The declared program id does not match the actual program id"],[ye.Deprecated,"The API being used is deprecated and should no longer be used"]]); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var we=function(){return we=Object.assign||function(e){for(var t,a=1,o=arguments.length;ae.name===o));if(1!==n.length)throw new pe(`Type not found: ${JSON.stringify(e)}`);return Ae.typeDefLayout(n[0],t,a)}if("array"in e.type){let o=e.type.array[0],n=e.type.array[1],s=Ae.fieldLayout({name:void 0,type:o},t);return d.array(s,n,a)}throw new Error(`Not yet implemented: ${e}`)}}static typeDefLayout(e,t=[],a){if("struct"===e.type.kind){const o=e.type.fields.map((e=>Ae.fieldLayout(e,t)));return d.struct(o,a)}if("enum"===e.type.kind){let o=e.type.variants.map((e=>{const a=$parcel$interopDefault(i)(e.name);if(void 0===e.fields)return d.struct([],a);const o=e.fields.map((e=>{if(!e.hasOwnProperty("name"))throw new Error("Tuple enum variants not yet implemented.");return Ae.fieldLayout(e,t)}));return d.struct(o,a)}));return void 0!==a?d.rustEnum(o).replicate(a):d.rustEnum(o,a)}throw new Error(`Unknown type kint: ${e}`)}}class Ie{constructor(e){this.idl=e,this.ixLayout=Ie.parseIxLayout(e);const t=new Map;e.instructions.forEach((e=>{const a=Ee("global",e.name);t.set($parcel$interopDefault(s).encode(a),{layout:this.ixLayout.get(e.name),name:e.name})})),e.state&&e.state.methods.map((e=>{const a=Ee("state",e.name);t.set($parcel$interopDefault(s).encode(a),{layout:this.ixLayout.get(e.name),name:e.name})})),this.sighashLayouts=t}encode(e,t){return this._encode("global",e,t)}encodeState(e,t){return this._encode("state",e,t)}_encode(e,t,o){const n=a.Buffer.alloc(1e3),s=$parcel$interopDefault(i)(t),r=this.ixLayout.get(s);if(!r)throw new Error(`Unknown method: ${s}`);const c=r.encode(o,n),d=n.slice(0,c);return a.Buffer.concat([Ee(e,t),d])}static parseIxLayout(e){const t=(e.state?e.state.methods:[]).map((t=>{let a=t.args.map((t=>{var a,o;return Ae.fieldLayout(t,Array.from([...null!==(a=e.accounts)&&void 0!==a?a:[],...null!==(o=e.types)&&void 0!==o?o:[]]))}));const o=$parcel$interopDefault(i)(t.name);return[o,d.struct(a,o)]})).concat(e.instructions.map((t=>{let a=t.args.map((t=>{var a,o;return Ae.fieldLayout(t,Array.from([...null!==(a=e.accounts)&&void 0!==a?a:[],...null!==(o=e.types)&&void 0!==o?o:[]]))}));const o=$parcel$interopDefault(i)(t.name);return[o,d.struct(a,o)]})));return new Map(t)}decode(e,t="hex"){"string"==typeof e&&(e="hex"===t?a.Buffer.from(e,"hex"):$parcel$interopDefault(s).decode(e));let o=$parcel$interopDefault(s).encode(e.slice(0,8)),n=e.slice(8);const r=this.sighashLayouts.get(o);return r?{data:r.layout.decode(n),name:r.name}:null}format(e,t){return Se.format(e,t,this.idl)}}class Se{static format(e,t,a){const o=a.instructions.filter((t=>e.name===t.name))[0];if(void 0===o)return console.error("Invalid instruction given"),null;const n=o.args.map((t=>({name:t.name,type:Se.formatIdlType(t.type),data:Se.formatIdlData(t,e.data[t.name],a.types)}))),s=Se.flattenIdlAccounts(o.accounts);return{args:n,accounts:t.map(((e,t)=>t`;if("option"in e)return`Option<${this.formatIdlType(e.option)}>`;if("defined"in e)return e.defined;if("array"in e)return`Array<${e.array[0]}; ${e.array[1]}>`;throw new Error(`Unknown IDL type: ${e}`)}static formatIdlData(e,t,a){if("string"==typeof e.type)return t.toString();if(e.type.hasOwnProperty("vec"))return"["+t.map((t=>this.formatIdlData({name:"",type:e.type.vec},t))).join(", ")+"]";if(e.type.hasOwnProperty("option"))return null===t?"null":this.formatIdlData({name:"",type:e.type.option},t,a);if(e.type.hasOwnProperty("defined")){if(void 0===a)throw new Error("User defined types not provided");const o=a.filter((t=>t.name===e.type.defined));if(1!==o.length)throw new Error(`Type not found: ${e.type.defined}`);return Se.formatIdlDataDefined(o[0],t,a)}return"unknown"}static formatIdlDataDefined(e,t,a){if("struct"===e.type.kind){const o=e.type;return"{ "+Object.keys(t).map((e=>{const n=o.fields.filter((t=>t.name===e))[0];if(void 0===n)throw new Error("Unable to find type");return e+": "+Se.formatIdlData(n,t[e],a)})).join(", ")+" }"}if(0===e.type.variants.length)return"{}";if(e.type.variants[0].name){const o=e.type.variants,n=Object.keys(t)[0],s=t[n],r=Object.keys(s).map((e=>{var t;const r=s[e],i=null===(t=o[n])||void 0===t?void 0:t.filter((t=>t.name===e))[0];if(void 0===i)throw new Error("Unable to find variant");return e+": "+Se.formatIdlData(i,r,a)})).join(", "),c=$parcel$interopDefault(i)(n,{pascalCase:!0});return 0===r.length?c:`${c} { ${r} }`}return"Tuple formatting not yet implemented"}static flattenIdlAccounts(e,t){return e.map((e=>{const a=function(e){const t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)}(e.name);if(e.hasOwnProperty("accounts")){const o=t?`${t} > ${a}`:a;return Se.flattenIdlAccounts(e.accounts,o)}return{...e,name:t?`${t} > ${a}`:a}})).flat()}}function Ee(e,t){var o;let n=`${e}:${void 0===o&&(o={}),function(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var a=t.splitRegexp,o=void 0===a?ve:a,n=t.stripRegexp,s=void 0===n?xe:n,r=t.transform,i=void 0===r?ke:r,c=t.delimiter,d=void 0===c?" ":c,l=Re(Re(e,o,"$1\0$2"),s,"\0"),m=0,u=l.length;"\0"===l.charAt(m);)m++;for(;"\0"===l.charAt(u-1);)u--;return l.slice(m,u).split("\0").map(i).join(d)}(e,we({delimiter:"."},t))}(t,we({delimiter:"_"},o))}`;return a.Buffer.from(c.sha256.digest(n)).slice(0,8)}function Te(e,t){if("enum"===t.type.kind){let a=t.type.variants.map((t=>void 0===t.fields?0:t.fields.map((t=>{if("object"!=typeof t||!("name"in t))throw new Error("Tuple enum variants not yet implemented.");return Ce(e,t.type)})).reduce(((e,t)=>e+t))));return Math.max(...a)+1}return void 0===t.type.fields?0:t.type.fields.map((t=>Ce(e,t.type))).reduce(((e,t)=>e+t),0)}function Ce(e,t){var a,o;switch(t){case"bool":case"u8":case"i8":case"bytes":case"string":return 1;case"i16":case"u16":return 2;case"u32":case"i32":case"f32":return 4;case"u64":case"i64":case"f64":return 8;case"u128":case"i128":return 16;case"publicKey":return 32;default:if("vec"in t)return 1;if("option"in t)return 1+Ce(e,t.option);if("coption"in t)return 4+Ce(e,t.coption);if("defined"in t){const n=null!==(o=null===(a=e.types)||void 0===a?void 0:a.filter((e=>e.name===t.defined)))&&void 0!==o?o:[];if(1!==n.length)throw new pe(`Type not found: ${JSON.stringify(t)}`);return Te(e,n[0])}if("array"in t){let a=t.array[0],o=t.array[1];return Ce(e,a)*o}throw new Error(`Invalid type ${JSON.stringify(t)}`)}}const Ue=8;class Me{constructor(e){if(void 0===e.accounts)return void(this.accountLayouts=new Map);const t=e.accounts.map((t=>[t.name,Ae.typeDefLayout(t,e.types)]));this.accountLayouts=new Map(t),this.idl=e}async encode(e,t){const o=a.Buffer.alloc(1e3),n=this.accountLayouts.get(e);if(!n)throw new Error(`Unknown account: ${e}`);const s=n.encode(t,o);let r=o.slice(0,s),i=Me.accountDiscriminator(e);return a.Buffer.concat([i,r])}decode(e,t){if(Me.accountDiscriminator(e).compare(t.slice(0,8)))throw new Error("Invalid account discriminator");return this.decodeUnchecked(e,t)}decodeUnchecked(e,t){const a=t.slice(8),o=this.accountLayouts.get(e);if(!o)throw new Error(`Unknown account: ${e}`);return o.decode(a)}memcmp(e,t){const o=Me.accountDiscriminator(e);return{offset:0,bytes:$parcel$interopDefault(s).encode(t?a.Buffer.concat([o,t]):o)}}size(e){var t;return 8+(null!==(t=Te(this.idl,e))&&void 0!==t?t:0)}static accountDiscriminator(e){return a.Buffer.from(c.sha256.digest(`account:${$parcel$interopDefault(i)(e,{pascalCase:!0})}`)).slice(0,8)}}class De{constructor(e){if(void 0===e.events)return void(this.layouts=new Map);const t=e.events.map((t=>{let a={name:t.name,type:{kind:"struct",fields:t.fields.map((e=>({name:e.name,type:e.type})))}};return[t.name,Ae.typeDefLayout(a,e.types)]}));this.layouts=new Map(t),this.discriminators=new Map(void 0===e.events?[]:e.events.map((e=>[r.fromByteArray(Ne(e.name)),e.name])))}decode(e){let t;try{t=a.Buffer.from(r.toByteArray(e))}catch(e){return null}const o=r.fromByteArray(t.slice(0,8)),n=this.discriminators.get(o);if(void 0===n)return null;const s=this.layouts.get(n);if(!s)throw new Error(`Unknown event: ${n}`);return{data:s.decode(t.slice(8)),name:n}}}function Ne(e){return a.Buffer.from(c.sha256.digest(`event:${e}`)).slice(0,8)}class Pe{constructor(e){if(void 0===e.state)throw new Error("Idl state not defined.");this.layout=Ae.typeDefLayout(e.state.struct,e.types)}async encode(e,t){const o=a.Buffer.alloc(1e3),n=this.layout.encode(t,o),s=await Be(e),r=o.slice(0,n);return a.Buffer.concat([s,r])}decode(e){const t=e.slice(8);return this.layout.decode(t)}}async function Be(e){let t=me("anchor-deprecated-state")?"account":"state";return a.Buffer.from(c.sha256.digest(`${t}:${e}`)).slice(0,8)}class Le{constructor(e){if(void 0===e.types)return void(this.typeLayouts=new Map);const t=e.types.map((t=>[t.name,Ae.typeDefLayout(t,e.types)]));this.typeLayouts=new Map(t),this.idl=e}encode(e,t){const o=a.Buffer.alloc(1e3),n=this.typeLayouts.get(e);if(!n)throw new Error(`Unknown type: ${e}`);const s=n.encode(t,o);return o.slice(0,s)}decode(e,t){const a=this.typeLayouts.get(e);if(!a)throw new Error(`Unknown type: ${e}`);return a.decode(t)}}class Fe{constructor(e){this.instruction=new Ie(e),this.accounts=new Me(e),this.events=new De(e),e.state&&(this.state=new Pe(e)),this.types=new Le(e)}}var Ke="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==$parcel$global?$parcel$global:"undefined"!=typeof self?self:{};class Ge{constructor(e,t){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}decode(e,t){throw new Error("Layout is abstract")}encode(e,t,a){throw new Error("Layout is abstract")}getSpan(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){const t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}}var je=Ge;class qe extends Ge{isCount(){throw new Error("ExternalLayout is abstract")}}class We extends qe{constructor(e,t,a){if(!(e instanceof Ge))throw new TypeError("layout must be a Layout");if(void 0===t)t=0;else if(!Number.isInteger(t))throw new TypeError("offset must be integer or undefined");super(e.span,a||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof ze||this.layout instanceof He}decode(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}encode(e,t,a){return void 0===a&&(a=0),this.layout.encode(e,t,a+this.offset)}}class ze extends Ge{constructor(e,t){if(super(e,t),6e&&t instanceof Ge),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof t&&void 0===a&&(a=t,t=void 0);for(const t of e)if(0>t.span&&void 0===t.property)throw new Error("fields cannot contain unnamed variable-length layout");let o=-1;try{o=e.reduce(((e,t)=>e+t.getSpan()),0)}catch(e){}super(o,t),this.fields=e,this.decodePrefixes=!!a}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let a=0;try{a=this.fields.reduce(((a,o)=>{const n=o.getSpan(e,t);return t+=n,a+n}),0)}catch(e){throw new RangeError("indeterminate span")}return a}decode(e,t){void 0===t&&(t=0);const a=this.makeDestinationObject();for(const o of this.fields)if(void 0!==o.property&&(a[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break;return a}encode(e,t,a){void 0===a&&(a=0);const o=a;let n=0,s=0;for(const o of this.fields){let r=o.span;if(s=0r&&(r=o.getSpan(t,a)))}n=a,a+=r}return n+s-o}fromArray(e){const t=this.makeDestinationObject();for(const a of this.fields)void 0!==a.property&&0a.span?t=-1:0<=t&&(t+=a.span)}}}class Ze{constructor(e){this.property=e}decode(){throw new Error("UnionDiscriminator is abstract")}encode(){throw new Error("UnionDiscriminator is abstract")}}class Qe extends Ze{constructor(e,t){if(!(e instanceof qe&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,a){return this.layout.encode(e,t,a)}}class et extends Ge{constructor(e,t,a){const o=e instanceof ze||e instanceof He;if(o)e=new Qe(new We(e));else if(e instanceof qe&&e.isCount())e=new Qe(e);else if(!(e instanceof Ze))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===t&&(t=null),!(null===t||t instanceof Ge))throw new TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw new Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let n=-1;t&&(n=t.span,0<=n&&o&&(n+=e.layout.span)),super(n,a),this.discriminator=e,this.usesPrefixDiscriminator=o,this.defaultLayout=t,this.registry={};let s=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return s(e)},this.configGetSourceVariant=function(e){s=e.bind(this)}}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);const a=this.getVariant(e,t);if(!a)throw new Error("unable to determine span for unrecognized variant");return a.getSpan(e,t)}defaultGetSourceVariant(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;const t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(const t in this.registry){const a=this.registry[t];if(e.hasOwnProperty(a.property))return a}throw new Error("unable to infer src variant")}decode(e,t){let a;void 0===t&&(t=0);const o=this.discriminator,n=o.decode(e,t);let s=this.registry[n];if(void 0===s){let r=0;s=this.defaultLayout,this.usesPrefixDiscriminator&&(r=o.layout.span),a=this.makeDestinationObject(),a[o.property]=n,a[s.property]=this.defaultLayout.decode(e,t+r)}else a=s.decode(e,t);return a}encode(e,t,a){void 0===a&&(a=0);const o=this.getSourceVariant(e);if(void 0===o){const o=this.discriminator,n=this.defaultLayout;let s=0;return this.usesPrefixDiscriminator&&(s=o.layout.span),o.encode(e[o.property],t,a),s+n.encode(e[n.property],t,a+s)}return o.encode(e,t,a)}addVariant(e,t,a){const o=new tt(this,e,t,a);return this.registry[e]=o,o}getVariant(e,t){let a=e;return p.isBuffer(e)&&(void 0===t&&(t=0),a=this.discriminator.decode(e,t)),this.registry[a]}}class tt extends Ge{constructor(e,t,a,o){if(!(e instanceof et))throw new TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===o&&(o=a,a=null),a){if(!(a instanceof Ge))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}let n=e.span;0>e.span&&(n=a?a.span:0,0<=n&&e.usesPrefixDiscriminator&&(n+=e.discriminator.layout.span)),super(n,o),this.union=e,this.variant=t,this.layout=a||null}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let a=0;return this.union.usesPrefixDiscriminator&&(a=this.union.discriminator.layout.span),a+this.layout.getSpan(e,t+a)}decode(e,t){const a=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw new Error("variant mismatch");let o=0;return this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout?a[this.property]=this.layout.decode(e,t+o):this.property?a[this.property]=!0:this.union.usesPrefixDiscriminator&&(a[this.union.discriminator.property]=this.variant),a}encode(e,t,a){void 0===a&&(a=0);let o=0;if(this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,a);let n=o;if(this.layout&&(this.layout.encode(e[this.property],t,a+o),n+=this.layout.getSpan(t,a+o),0<=this.union.span&&n>this.union.span))throw new Error("encoded variant overruns containing union");return n}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}class at extends Ge{constructor(e,t){if(!(e instanceof qe&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let a=-1;e instanceof qe||(a=e),super(a,t),this.length=e}getSpan(e,t){let a=this.span;return 0>a&&(a=this.length.decode(e,t)),a}decode(e,t){void 0===t&&(t=0);let a=this.span;return 0>a&&(a=this.length.decode(e,t)),e.slice(t,t+a)}encode(e,t,a){let o=this.length;if(this.length instanceof qe&&(o=e.length),!p.isBuffer(e)||o!==e.length)throw new TypeError((n="Blob.encode",(this.property?n+"["+this.property+"]":n)+" requires (length "+o+") Buffer as src"));var n;if(a+o>t.length)throw new RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),a,o,"hex"),this.length instanceof qe&&this.length.encode(o,t,a),o}}var ot=(e,t,a)=>new We(e,t,a),nt=e=>new ze(1,e),st=e=>new ze(4,e),rt=e=>new Je(e),it=e=>new Xe(e),ct=(e,t,a)=>new Oe(e,t,a),dt=(e,t,a)=>new et(e,t,a),lt=(e,t)=>new at(e,t);class mt{constructor(e){}encode(e,t){switch($parcel$interopDefault(i)(e)){case"initializeMint":return function({decimals:e,mintAuthority:t,freezeAuthority:a}){return ht({initializeMint:{decimals:e,mintAuthority:t.toBuffer(),freezeAuthorityOption:!!a,freezeAuthority:(a||o.PublicKey.default).toBuffer()}})}(t);case"initializeAccount":return ht({initializeAccount:{}});case"initializeMultisig":return function({m:e}){return ht({initializeMultisig:{m:e}})}(t);case"transfer":return function({amount:e}){return ht({transfer:{amount:e}})}(t);case"approve":return function({amount:e}){return ht({approve:{amount:e}})}(t);case"revoke":return ht({revoke:{}});case"setAuthority":return function({authorityType:e,newAuthority:t}){return ht({setAuthority:{authorityType:e,newAuthority:t}})}(t);case"mintTo":return function({amount:e}){return ht({mintTo:{amount:e}})}(t);case"burn":return function({amount:e}){return ht({burn:{amount:e}})}(t);case"closeAccount":return ht({closeAccount:{}});case"freezeAccount":return ht({freezeAccount:{}});case"thawAccount":return ht({thawAccount:{}});case"transferChecked":return function({amount:e,decimals:t}){return ht({transferChecked:{amount:e,decimals:t}})}(t);case"approvedChecked":return function({amount:e,decimals:t}){return ht({approveChecked:{amount:e,decimals:t}})}(t);case"mintToChecked":return function({amount:e,decimals:t}){return ht({mintToChecked:{amount:e,decimals:t}})}(t);case"burnChecked":return function({amount:e,decimals:t}){return ht({burnChecked:{amount:e,decimals:t}})}(t);case"intializeAccount2":return function({authority:e}){return ht({initilaizeAccount2:{authority:e}})}(t);case"syncNative":return ht({syncNative:{}});case"initializeAccount3":return function({authority:e}){return ht({initializeAccount3:{authority:e}})}(t);case"initializeMultisig2":return function({m:e}){return ht({initializeMultisig2:{m:e}})}(t);case"initializeMint2":return function({decimals:e,mintAuthority:t,freezeAuthority:a}){return ht({encodeInitializeMint2:{decimals:e,mintAuthority:t,freezeAuthority:a}})}(t);default:throw new Error(`Invalid instruction: ${e}`)}}encodeState(e,t){throw new Error("SPL token does not have state")}}const ut=dt(nt("instruction"));function pt(e){return lt(32,e)}function ht(e){let t=p.alloc(gt),a=ut.encode(e,t);return t.slice(0,a)}ut.addVariant(0,ct([nt("decimals"),lt(32,"mintAuthority"),nt("freezeAuthorityOption"),pt("freezeAuthority")]),"initializeMint"),ut.addVariant(1,ct([]),"initializeAccount"),ut.addVariant(2,ct([nt("m")]),"initializeMultisig"),ut.addVariant(3,ct([rt("amount")]),"transfer"),ut.addVariant(4,ct([rt("amount")]),"approve"),ut.addVariant(5,ct([]),"revoke"),ut.addVariant(6,ct([nt("authorityType"),nt("newAuthorityOption"),pt("newAuthority")]),"setAuthority"),ut.addVariant(7,ct([rt("amount")]),"mintTo"),ut.addVariant(8,ct([rt("amount")]),"burn"),ut.addVariant(9,ct([]),"closeAccount"),ut.addVariant(10,ct([]),"freezeAccount"),ut.addVariant(11,ct([]),"thawAccount"),ut.addVariant(12,ct([rt("amount"),nt("decimals")]),"transferChecked"),ut.addVariant(13,ct([rt("amount"),nt("decimals")]),"approvedChecked"),ut.addVariant(14,ct([rt("amount"),nt("decimals")]),"mintToChecked"),ut.addVariant(15,ct([rt("amount"),nt("decimals")]),"burnedChecked"),ut.addVariant(16,ct([pt("authority")]),"InitializeAccount2"),ut.addVariant(17,ct([]),"syncNative"),ut.addVariant(18,ct([pt("authority")]),"initializeAccount3"),ut.addVariant(19,ct([nt("m")]),"initializeMultisig2"),ut.addVariant(20,ct([nt("decimals"),pt("mintAuthority"),nt("freezeAuthorityOption"),pt("freezeAuthority")]),"initializeMint2");const gt=Math.max(...Object.values(ut.registry).map((e=>e.span)));class bt{constructor(e){}encode(e,t){throw new Error("SPL token does not have state")}decode(e){throw new Error("SPL token does not have state")}}function ft(e){return new wt(lt(8),(e=>vt.fromBuffer(e)),(e=>e.toBuffer()),e)}function yt(e){return new wt(lt(32),(e=>new(0,o.PublicKey)(e)),(e=>e.toBuffer()),e)}function $t(e,t){return new kt(e,t)}class wt extends je{constructor(e,t,a,o){super(e.span,o),this.layout=e,this.decoder=t,this.encoder=a}decode(e,t){return this.decoder(this.layout.decode(e,t))}encode(e,t,a){return this.layout.encode(this.encoder(e),t,a)}getSpan(e,t){return this.layout.getSpan(e,t)}}class kt extends je{constructor(e,t){super(-1,t),this.layout=e,this.discriminator=st()}encode(e,t,a=0){return null==e?this.layout.span+this.discriminator.encode(0,t,a):(this.discriminator.encode(1,t,a),this.layout.encode(e,t,a+4)+4)}decode(e,t=0){const a=this.discriminator.decode(e,t);if(0===a)return null;if(1===a)return this.layout.decode(e,t+4);throw new Error("Invalid coption "+this.layout.property)}getSpan(e,t=0){return this.layout.getSpan(e,t+4)+4}}class vt extends($parcel$interopDefault(n)){toBuffer(){const e=super.toArray().reverse(),t=p.from(e);if(8===t.length)return t;if(t.length>=8)throw new Error("u64 too large");const a=p.alloc(8);return t.copy(a),a}static fromBuffer(e){if(8!==e.length)throw new Error(`Invalid buffer length: ${e.length}`);return new vt([...e].reverse().map((e=>`00${e.toString(16)}`.slice(-2))).join(""),16)}}class xt{constructor(e){this.idl=e}async encode(e,t){switch(e){case"token":{const e=p.alloc(165),a=At.encode(t,e);return e.slice(0,a)}case"mint":{const e=p.alloc(82),a=Rt.encode(t,e);return e.slice(0,a)}default:throw new Error(`Invalid account name: ${e}`)}}decode(e,t){return this.decodeUnchecked(e,t)}decodeUnchecked(e,t){switch(e){case"token":return function(e){return At.decode(e)}(t);case"mint":return function(e){return Rt.decode(e)}(t);default:throw new Error(`Invalid account name: ${e}`)}}memcmp(e,t){switch(e){case"token":return{dataSize:165};case"mint":return{dataSize:82};default:throw new Error(`Invalid account name: ${e}`)}}size(e){var t;return null!==(t=Te(this.idl,e))&&void 0!==t?t:0}}const Rt=ct([$t(yt(),"mintAuthority"),ft("supply"),nt("decimals"),("isInitialized",new wt(nt(),(function(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}),(function(e){return e?1:0}),"isInitialized")),$t(yt(),"freezeAuthority")]);const At=ct([yt("mint"),yt("authority"),ft("amount"),$t(yt(),"delegate"),nt("state"),$t(ft(),"isNative"),ft("delegatedAmount"),$t(yt(),"closeAuthority")]);class It{constructor(e){}decode(e){throw new Error("SPL token program does not have events")}}class St{constructor(e){}encode(e,t){throw new Error("SPL token does not have user-defined types")}decode(e,t){throw new Error("SPL token does not have user-defined types")}}class Et{constructor(e){this.instruction=new mt(e),this.accounts=new xt(e),this.events=new It(e),this.state=new bt(e),this.types=new St(e)}}class Tt{constructor(e){}encode(e,t){switch($parcel$interopDefault(i)(e)){case"createAccount":return function({lamports:e,space:t,owner:a}){return Nt({createAccount:{lamports:e,space:t,owner:a.toBuffer()}})}(t);case"assign":return function({owner:e}){return Nt({assign:{owner:e.toBuffer()}})}(t);case"transfer":return function({lamports:e}){return Nt({transfer:{lamports:e}})}(t);case"createAccountWithSeed":return function({base:e,seed:t,lamports:a,space:o,owner:n}){return Nt({createAccountWithSeed:{base:e.toBuffer(),seed:t,lamports:a,space:o,owner:n.toBuffer()}},Dt.getVariant(3).span+t.length)}(t);case"advanceNonceAccount":return function({authorized:e}){return Nt({advanceNonceAccount:{authorized:e.toBuffer()}})}(t);case"withdrawNonceAccount":return function({lamports:e}){return Nt({withdrawNonceAccount:{lamports:e}})}(t);case"initializeNonceAccount":return function({authorized:e}){return Nt({initializeNonceAccount:{authorized:e.toBuffer()}})}(t);case"authorizeNonceAccount":return function({authorized:e}){return Nt({authorizeNonceAccount:{authorized:e.toBuffer()}})}(t);case"allocate":return function({space:e}){return Nt({allocate:{space:e}})}(t);case"allocateWithSeed":return function({base:e,seed:t,space:a,owner:o}){return Nt({allocateWithSeed:{base:e.toBuffer(),seed:t,space:a,owner:o.toBuffer()}},Dt.getVariant(9).span+t.length)}(t);case"assignWithSeed":return function({base:e,seed:t,owner:a}){return Nt({assignWithSeed:{base:e.toBuffer(),seed:t,owner:a.toBuffer()}},Dt.getVariant(10).span+t.length)}(t);case"transferWithSeed":return function({lamports:e,seed:t,owner:a}){return Nt({transferWithSeed:{lamports:e,seed:t,owner:a.toBuffer()}},Dt.getVariant(11).span+t.length)}(t);default:throw new Error(`Invalid instruction: ${e}`)}}encodeState(e,t){throw new Error("System does not have state")}}class Ct extends je{constructor(e){super(-1,e),this.property=e,this.layout=ct([st("length"),st("lengthPadding"),lt(ot(st(),-8),"chars")],this.property)}encode(e,t,a=0){if(null==e)return this.layout.span;const o={chars:p.from(e,"utf8")};return this.layout.encode(o,t,a)}decode(e,t=0){return this.layout.decode(e,t).chars.toString()}getSpan(e,t=0){return st().span+st().span+new($parcel$interopDefault(n))(new Uint8Array(e).slice(t,t+4),10,"le").toNumber()}}function Ut(e){return new Ct(e)}function Mt(e){return lt(32,e)}const Dt=dt(st("instruction"));function Nt(e,t){const a=p.alloc(null!=t?t:Pt),o=Dt.encode(e,a);return void 0===t?a.slice(0,o):a}Dt.addVariant(0,ct([it("lamports"),it("space"),Mt("owner")]),"createAccount"),Dt.addVariant(1,ct([Mt("owner")]),"assign"),Dt.addVariant(2,ct([it("lamports")]),"transfer"),Dt.addVariant(3,ct([Mt("base"),Ut("seed"),it("lamports"),it("space"),Mt("owner")]),"createAccountWithSeed"),Dt.addVariant(4,ct([Mt("authorized")]),"advanceNonceAccount"),Dt.addVariant(5,ct([it("lamports")]),"withdrawNonceAccount"),Dt.addVariant(6,ct([Mt("authorized")]),"initializeNonceAccount"),Dt.addVariant(7,ct([Mt("authorized")]),"authorizeNonceAccount"),Dt.addVariant(8,ct([it("space")]),"allocate"),Dt.addVariant(9,ct([Mt("base"),Ut("seed"),it("space"),Mt("owner")]),"allocateWithSeed"),Dt.addVariant(10,ct([Mt("base"),Ut("seed"),Mt("owner")]),"assignWithSeed"),Dt.addVariant(11,ct([it("lamports"),Ut("seed"),Mt("owner")]),"transferWithSeed");const Pt=Math.max(...Object.values(Dt.registry).map((e=>e.span)));class Bt{constructor(e){}encode(e,t){throw new Error("System does not have state")}decode(e){throw new Error("System does not have state")}}class Lt{constructor(e){this.idl=e}async encode(e,t){if("nonce"===e){const e=p.alloc(o.NONCE_ACCOUNT_LENGTH),a=Gt.encode(t,e);return e.slice(0,a)}throw new Error(`Invalid account name: ${e}`)}decode(e,t){return this.decodeUnchecked(e,t)}decodeUnchecked(e,t){if("nonce"===e)return function(e){return Gt.decode(e)}(t);throw new Error(`Invalid account name: ${e}`)}memcmp(e,t){if("nonce"===e)return{dataSize:o.NONCE_ACCOUNT_LENGTH};throw new Error(`Invalid account name: ${e}`)}size(e){var t;return null!==(t=Te(this.idl,e))&&void 0!==t?t:0}}class Ft extends je{constructor(e,t,a,o){super(e.span,o),this.layout=e,this.decoder=t,this.encoder=a}decode(e,t){return this.decoder(this.layout.decode(e,t))}encode(e,t,a){return this.layout.encode(this.encoder(e),t,a)}getSpan(e,t){return this.layout.getSpan(e,t)}}function Kt(e){return new Ft(lt(32),(e=>new(0,o.PublicKey)(e)),(e=>e.toBuffer()),e)}const Gt=ct([st("version"),st("state"),Kt("authorizedPubkey"),Kt("nonce"),ct([rt("lamportsPerSignature")],"feeCalculator")]);class jt{constructor(e){}decode(e){throw new Error("System program does not have events")}}class qt{constructor(e){}encode(e,t){throw new Error("System does not have user-defined types")}decode(e,t){throw new Error("System does not have user-defined types")}}class Wt{constructor(e){this.instruction=new Tt(e),this.accounts=new Lt(e),this.events=new jt(e),this.state=new Bt(e),this.types=new qt(e)}}var zt=Object.freeze({__proto__:null,hash:function(e){return(0,c.sha256)(e)}});function Ht(e,t,n){const s=a.Buffer.concat([e.toBuffer(),a.Buffer.from(t),n.toBuffer()]),r=c.sha256.digest(s);return new(0,o.PublicKey)(a.Buffer.from(r))}function _t(e,t){let s=a.Buffer.alloc(0);e.forEach((function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");s=a.Buffer.concat([s,Yt(e)])})),s=a.Buffer.concat([s,t.toBuffer(),a.Buffer.from("ProgramDerivedAddress")]);let r=(0,c.sha256)(new Uint8Array(s)),i=new($parcel$interopDefault(n))(r,16).toArray(void 0,32);if(o.PublicKey.isOnCurve(new Uint8Array(i)))throw new Error("Invalid seeds, address must fall off the curve");return new(0,o.PublicKey)(i)}function Vt(e,t){let o,n=255;for(;0!=n;){try{o=_t(e.concat(a.Buffer.from([n])),t)}catch(e){if(e instanceof TypeError)throw e;n--;continue}return[o,n]}throw new Error("Unable to find a viable program address nonce")}const Yt=e=>e instanceof a.Buffer?e:e instanceof Uint8Array?a.Buffer.from(e.buffer,e.byteOffset,e.byteLength):a.Buffer.from(e);async function Jt(e,...t){let n=[a.Buffer.from([97,110,99,104,111,114])];t.forEach((e=>{n.push(e instanceof a.Buffer?e:I(e).toBuffer())}));const[s]=await o.PublicKey.findProgramAddress(n,I(e));return s}var Xt=Object.freeze({__proto__:null,createWithSeedSync:Ht,createProgramAddressSync:_t,findProgramAddressSync:Vt,associated:Jt});const Ot=new(0,o.PublicKey)("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),Zt=new(0,o.PublicKey)("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");var Qt=Object.freeze({__proto__:null,TOKEN_PROGRAM_ID:Ot,ASSOCIATED_PROGRAM_ID:Zt,associatedAddress:async function({mint:e,owner:t}){return(await o.PublicKey.findProgramAddress([t.toBuffer(),Ot.toBuffer(),e.toBuffer()],Zt))[0]}}),ea={exports:{}};!function(e,t){var a="undefined"!=typeof self?self:Ke,o=function(){function e(){this.fetch=!1,this.DOMException=a.DOMException}return e.prototype=a,new e}();!function(e){!function(t){var a="URLSearchParams"in e,o="Symbol"in e&&"iterator"in Symbol,n="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in e,r="ArrayBuffer"in e;if(r)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function m(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(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){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,a){e.onload=function(){t(e.result)},e.onerror=function(){a(e.error)}}))}function g(e){var t=new FileReader,a=h(t);return t.readAsArrayBuffer(e),a}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:a&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r&&n&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):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):a&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var e=p(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)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,a=h(t);return t.readAsText(e),a}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),a=new Array(t.length),o=0;o-1?o:a),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var a=e.split("="),o=a.shift().replace(/\+/g," "),n=a.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(n))}})),t}function k(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})},f.call($.prototype),f.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];k.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var a=Error(e);this.stack=a.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function x(e,a){return new Promise((function(o,s){var r=new $(e,a);if(r.signal&&r.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var i=new XMLHttpRequest;function c(){i.abort()}i.onload=function(){var e,t,a={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var a=e.split(":"),o=a.shift().trim();if(o){var n=a.join(":").trim();t.append(o,n)}})),t)};a.url="responseURL"in i?i.responseURL:a.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;o(new k(n,a))},i.onerror=function(){s(new TypeError("Network request failed"))},i.ontimeout=function(){s(new TypeError("Network request failed"))},i.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},i.open(r.method,r.url,!0),"include"===r.credentials?i.withCredentials=!0:"omit"===r.credentials&&(i.withCredentials=!1),"responseType"in i&&n&&(i.responseType="blob"),r.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),r.signal&&(r.signal.addEventListener("abort",c),i.onreadystatechange=function(){4===i.readyState&&r.signal.removeEventListener("abort",c)}),i.send(void 0===r._bodyInit?null:r._bodyInit)}))}x.polyfill=!0,e.fetch||(e.fetch=x,e.Headers=u,e.Request=$,e.Response=k),t.Headers=u,t.Request=$,t.Response=k,t.fetch=x,Object.defineProperty(t,"__esModule",{value:!0})}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var n=o;(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t}(ea,ea.exports);var ta=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ea.exports);async function aa(e,t){const a=await e.getAccountInfo(t);if(null===a)throw new Error("program account not found");const{program:o}=na(a.data),n=await e.getAccountInfo(o.programdataAddress);if(null===n)throw new Error("program data account not found");const{programData:s}=na(n.data);return s}const oa=d.rustEnum([d.struct([],"uninitialized"),d.struct([d.option(d.publicKey(),"authorityAddress")],"buffer"),d.struct([d.publicKey("programdataAddress")],"program"),d.struct([d.u64("slot"),d.option(d.publicKey(),"upgradeAuthorityAddress")],"programData")],void 0,d.u32());function na(e){return oa.decode(e)}var sa=Object.freeze({__proto__:null,verifiedBuild:async function(e,t,a=5){const o=`https://api.apr.dev/api/v0/program/${t.toString()}/latest?limit=${a}`,[n,s]=await Promise.all([aa(e,t),ta(o)]),r=(await s.json()).filter((e=>!e.aborted&&"Built"===e.state&&"Verified"===e.verified));if(0===r.length)return null;const i=r[0];return n.slot.toNumber()!==i.verified_slot?null:i},fetchData:aa,decodeUpgradeableLoaderState:na}),ra=Object.freeze({__proto__:null,sha256:zt,rpc:te,publicKey:Xt,bytes:v,token:Qt,features:ue,registry:sa});const ia=d.struct([d.publicKey("authority"),d.vecU8("data")]);function ca(e,t){var a,o;let n={};const s=e.args?e.args.length:0;if(t.length>s){if(t.length!==s+1)throw new Error(`provided too many arguments ${t} to instruction ${null==e?void 0:e.name} expecting: ${null!==(o=null===(a=e.args)||void 0===a?void 0:a.map((e=>e.name)))&&void 0!==o?o:[]}`);n=t.pop()}return[t,n]}class da{static build(e,t,a){if("_inner"===e.name)throw new pe("the _inner name is reserved");const n=(...s)=>{const[r,i]=ca(e,[...s]);A(e.accounts,i.accounts);const c=n.accounts(i.accounts);return void 0!==i.remainingAccounts&&c.push(...i.remainingAccounts),me("debug-logs")&&console.log("Outgoing account metas:",c),new(0,o.TransactionInstruction)({keys:c,programId:a,data:t(e.name,R(e,...r))})};return n.accounts=t=>da.accountsArray(t,e.accounts,e.name),n}static accountsArray(e,t,a){return e?t.map((t=>{if(void 0!==("accounts"in t?t.accounts:void 0)){const o=e[t.name];return da.accountsArray(o,t.accounts,a).flat()}{const o=t;let n;try{n=I(e[t.name])}catch(e){throw new Error(`Wrong input type for account "${t.name}" in the instruction accounts object${void 0!==a?' for instruction "'+a+'"':""}. Expected PublicKey or string.`)}return{pubkey:n,isWritable:o.isMut,isSigner:o.isSigner}}})).flat():[]}}class la{static build(e,t,a,o){return async(...n)=>{var s;const r=t(...n),[,i]=ca(e,[...n]);if(void 0===o.sendAndConfirm)throw new Error("This function requires 'Provider.sendAndConfirm' to be implemented.");try{return await o.sendAndConfirm(r,null!==(s=i.signers)&&void 0!==s?s:[],i.options)}catch(e){throw fe(e,a)}}}}class ma{static build(e,t){return(...a)=>{var n,s,r;const[,i]=ca(e,[...a]),c=new(0,o.Transaction);if(i.preInstructions&&i.instructions)throw new Error("instructions is deprecated, use preInstructions");return null===(n=i.preInstructions)||void 0===n||n.forEach((e=>c.add(e))),null===(s=i.instructions)||void 0===s||s.forEach((e=>c.add(e))),c.add(t(...a)),null===(r=i.postInstructions)||void 0===r||r.forEach((e=>c.add(e))),c}}}class ua{constructor(e,t,a=ie(),n=new Fe(e)){this.provider=a,this.coder=n,this._idl=e,this._programId=t,this._address=pa(t),this._sub=null;const[s,r,c]=(()=>{var s;let r={},c={},d={};return null===(s=e.state)||void 0===s||s.methods.forEach((s=>{const l=da.build(s,((e,t)=>n.instruction.encodeState(e,t)),t);l.accounts=e=>{const n=function(e,t,a,n){if("new"===a.name){const[a]=Vt([],e);if(void 0===t.wallet)throw new Error("This function requires the Provider interface implementor to have a 'wallet' field.");return[{pubkey:t.wallet.publicKey,isWritable:!1,isSigner:!0},{pubkey:pa(e),isWritable:!0,isSigner:!1},{pubkey:a,isWritable:!1,isSigner:!1},{pubkey:o.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:e,isWritable:!1,isSigner:!1}]}return A(a.accounts,n),[{pubkey:pa(e),isWritable:!0,isSigner:!1}]}(t,a,s,e);return n.concat(da.accountsArray(e,s.accounts,s.name))};const m=ma.build(s,l),u=la.build(s,m,x(e),a),p=$parcel$interopDefault(i)(s.name);r[p]=l,c[p]=m,d[p]=u})),[r,c,d]})();this.instruction=s,this.transaction=r,this.rpc=c}get programId(){return this._programId}async fetch(){const e=this.address(),t=await this.provider.connection.getAccountInfo(e);if(null===t)throw new Error(`Account does not exist ${e.toString()}`);const a=this._idl.state;if(!a)throw new Error("State is not specified in IDL.");if((await Be(a.struct.name)).compare(t.data.slice(0,8)))throw new Error("Invalid account discriminator");return this.coder.state.decode(t.data)}address(){return this._address}subscribe(e){if(null!==this._sub)return this._sub.ee;const t=new($parcel$interopDefault(m)),a=this.provider.connection.onAccountChange(this.address(),(e=>{const a=this.coder.state.decode(e.data);t.emit("change",a)}),e);return this._sub={ee:t,listener:a},t}unsubscribe(){null!==this._sub&&this.provider.connection.removeAccountChangeListener(this._sub.listener).then((async()=>{this._sub=null})).catch(console.error)}}function pa(e){let[t]=Vt([],e);return Ht(t,"unversioned",e)}class ha{constructor(e,t,a,o,n){this._idlAccount=t,this._programId=a,this._provider=null!=o?o:ie(),this._coder=null!=n?n:new Fe(e),this._size=this._coder.accounts.size(t)}get size(){return this._size}get programId(){return this._programId}get provider(){return this._provider}get coder(){return this._coder}async fetchNullable(e,t){const a=await this.getAccountInfo(e,t);return null===a?null:this._coder.accounts.decode(this._idlAccount.name,a.data)}async fetch(e,t){const a=await this.fetchNullable(e,t);if(null===a)throw new Error(`Account does not exist ${e.toString()}`);return a}async fetchMultiple(e,t){return(await V(this._provider.connection,e.map((e=>I(e))),t)).map((e=>null==e?null:this._coder.accounts.decode(this._idlAccount.name,null==e?void 0:e.account.data)))}async all(e){return(await this._provider.connection.getProgramAccounts(this._programId,{commitment:this._provider.connection.commitment,filters:[{memcmp:this.coder.accounts.memcmp(this._idlAccount.name,e instanceof p?e:void 0)},...Array.isArray(e)?e:[]]})).map((({pubkey:e,account:t})=>({publicKey:e,account:this._coder.accounts.decode(this._idlAccount.name,t.data)})))}subscribe(e,t){const a=ga.get(e.toString());if(a)return a.ee;const o=new($parcel$interopDefault(m));e=I(e);const n=this._provider.connection.onAccountChange(e,(e=>{const t=this._coder.accounts.decode(this._idlAccount.name,e.data);o.emit("change",t)}),t);return ga.set(e.toString(),{ee:o,listener:n}),o}async unsubscribe(e){let t=ga.get(e.toString());t?ga&&await this._provider.connection.removeAccountChangeListener(t.listener).then((()=>{ga.delete(e.toString())})).catch(console.error):console.warn("Address is not subscribed")}async createInstruction(e,t){const a=this.size;if(void 0===this._provider.wallet)throw new Error("This function requires the Provider interface implementor to have a 'wallet' field.");return o.SystemProgram.createAccount({fromPubkey:this._provider.wallet.publicKey,newAccountPubkey:e.publicKey,space:null!=t?t:a,lamports:await this._provider.connection.getMinimumBalanceForRentExemption(null!=t?t:a),programId:this._programId})}async associated(...e){const t=await this.associatedAddress(...e);return await this.fetch(t)}async associatedAddress(...e){return await Jt(this._programId,...e)}async getAccountInfo(e,t){return await this._provider.connection.getAccountInfo(I(e),t)}}const ga=new Map;class ba{constructor(e,t,a){this._programId=e,this._provider=t,this._eventParser=new fa(e,a),this._eventCallbacks=new Map,this._eventListeners=new Map,this._listenerIdCount=0}addEventListener(e,t){var a;let o=this._listenerIdCount;return this._listenerIdCount+=1,e in this._eventCallbacks||this._eventListeners.set(e,[]),this._eventListeners.set(e,(null!==(a=this._eventListeners.get(e))&&void 0!==a?a:[]).concat(o)),this._eventCallbacks.set(o,[e,t]),void 0!==this._onLogsSubscriptionId||(this._onLogsSubscriptionId=this._provider.connection.onLogs(this._programId,((e,t)=>{if(!e.err)for(const a of this._eventParser.parseLogs(e.logs)){const o=this._eventListeners.get(a.name);o&&o.forEach((o=>{const n=this._eventCallbacks.get(o);if(n){const[,o]=n;o(a.data,t.slot,e.signature)}}))}}))),o}async removeEventListener(e){const t=this._eventCallbacks.get(e);if(!t)throw new Error(`Event listener ${e} doesn't exist!`);const[a]=t;let o=this._eventListeners.get(a);if(!o)throw new Error(`Event listeners don't exist for ${a}!`);this._eventCallbacks.delete(e),o=o.filter((t=>t!==e)),0===o.length&&this._eventListeners.delete(a),0==this._eventCallbacks.size&&(u.ok(0===this._eventListeners.size),void 0!==this._onLogsSubscriptionId&&(await this._provider.connection.removeOnLogsListener(this._onLogsSubscriptionId),this._onLogsSubscriptionId=void 0))}}class fa{constructor(e,t){this.coder=t,this.programId=e}*parseLogs(e){const t=new $a(e),a=new ya;let o=t.next();for(;null!==o;){let[e,n,s]=this.handleLog(a,o);e&&(yield e),n&&a.push(n),s&&a.pop(),o=t.next()}}handleLog(e,t){return e.stack.length>0&&e.program()===this.programId.toString()?this.handleProgramLog(t):[null,...this.handleSystemLog(t)]}handleProgramLog(e){if(e.startsWith("Program log: ")||e.startsWith("Program data: ")){const t=e.startsWith("Program log: ")?e.slice(13):e.slice(14);return[this.coder.events.decode(t),null,!1]}return[null,...this.handleSystemLog(e)]}handleSystemLog(e){const t=e.split(":")[0];return null!==t.match(/^Program (.*) success/g)?[null,!0]:t.startsWith(`Program ${this.programId.toString()} invoke`)?[this.programId.toString(),!1]:t.includes("invoke")?["cpi",!1]:[null,!1]}}class ya{constructor(){this.stack=[]}program(){return u.ok(this.stack.length>0),this.stack[this.stack.length-1]}push(e){this.stack.push(e)}pop(){u.ok(this.stack.length>0),this.stack.pop()}}class $a{constructor(e){this.logs=e}next(){if(0===this.logs.length)return null;let e=this.logs[0];return this.logs=this.logs.slice(1),e}}const wa=new(0,o.PublicKey)("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");function ka(){return new Et(va)}const va={version:"0.1.0",name:"spl_token",instructions:[{name:"initializeMint",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"decimals",type:"u8"},{name:"mintAuthority",type:"publicKey"},{name:"freezeAuthority",type:{coption:"publicKey"}}]},{name:"initializeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[]},{name:"initializeMultisig",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"m",type:"u8"}]},{name:"transfer",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"approve",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"delegate",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"revoke",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"setAuthority",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"authorityType",type:"u8"},{name:"newAuthority",type:{coption:"publicKey"}}]},{name:"mintTo",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"to",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"burn",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"closeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!1}],args:[]},{name:"freezeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"thawAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"transferChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"approveChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"delegate",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"mintToChecked",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"to",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"burnChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"initializeAccount2",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"authority",type:"publicKey"}]},{name:"syncNative",accounts:[{name:"account",isMut:!0,isSigner:!1}],args:[]},{name:"initializeAccount3",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1}],args:[{name:"authority",type:"publicKey"}]},{name:"initializeMultisig2",accounts:[{name:"account",isMut:!0,isSigner:!1}],args:[{name:"m",type:"u8"}]},{name:"initializeMint2",accounts:[{name:"mint",isMut:!0,isSigner:!1}],args:[{name:"decimals",type:"u8"},{name:"mintAuthority",type:"publicKey"},{name:"freezeAuthority",type:{coption:"publicKey"}}]}],accounts:[{name:"mint",type:{kind:"struct",fields:[{name:"mintAuthority",type:{coption:"publicKey"}},{name:"supply",type:"u64"},{name:"decimals",type:"u8"},{name:"isInitialized",type:"bool"},{name:"freezeAuthority",type:{coption:"publicKey"}}]}},{name:"token",type:{kind:"struct",fields:[{name:"mint",type:"publicKey"},{name:"authority",type:"publicKey"},{name:"amount",type:"u64"},{name:"delegate",type:{coption:"publicKey"}},{name:"state",type:"u8"},{name:"isNative",type:{coption:"u64"}},{name:"delegatedAmount",type:"u64"},{name:"closeAuthority",type:{coption:"publicKey"}}]}}]};class xa{constructor(e,t,a,o,n,s){this._args=e,this._accounts=t,this._provider=a,this._programId=o,this._idlIx=n,this._accountStore=new Ra(a,s)}async resolve(){for(let e=0;e0&&!this._accounts[a]&&await this.autoPopulatePda(t)}}async autoPopulatePda(e){if(!e.pda||!e.pda.seeds)throw new Error("Must have seeds");const t=await Promise.all(e.pda.seeds.map((e=>this.toBuffer(e)))),a=await this.parseProgramId(e),[n]=await o.PublicKey.findProgramAddress(t,a);this._accounts[$parcel$interopDefault(i)(e.name)]=n}async parseProgramId(e){var t;if(!(null===(t=e.pda)||void 0===t?void 0:t.programId))return this._programId;switch(e.pda.programId.kind){case"const":return new(0,o.PublicKey)(this.toBufferConst(e.pda.programId.value));case"arg":return this.argValue(e.pda.programId);case"account":return await this.accountValue(e.pda.programId);default:throw new Error(`Unexpected program seed kind: ${e.pda.programId.kind}`)}}async toBuffer(e){switch(e.kind){case"const":return this.toBufferConst(e);case"arg":return await this.toBufferArg(e);case"account":return await this.toBufferAccount(e);default:throw new Error(`Unexpected seed kind: ${e.kind}`)}}toBufferConst(e){return this.toBufferValue(e.type,e.value)}async toBufferArg(e){const t=this.argValue(e);return this.toBufferValue(e.type,t)}argValue(e){const t=$parcel$interopDefault(i)(e.path.split(".")[0]),a=this._idlIx.args.findIndex((e=>e.name===t));if(-1===a)throw new Error(`Unable to find argument for seed: ${t}`);return this._args[a]}async toBufferAccount(e){const t=await this.accountValue(e);return this.toBufferValue(e.type,t)}async accountValue(e){const t=e.path.split("."),a=t[0],o=this._accounts[$parcel$interopDefault(i)(a)];if(1===t.length)return o;const n=await this._accountStore.fetchAccount(e.account,o);return this.parseAccountValue(n,t.slice(1))}parseAccountValue(e,t){let a;for(;t.length>0;)a=e[$parcel$interopDefault(i)(t[0])],t=t.slice(1);return a}toBufferValue(e,t){switch(e){case"u8":return p.from([t]);case"u16":let a=p.alloc(2);return a.writeUInt16LE(t),a;case"u32":let o=p.alloc(4);return o.writeUInt32LE(t),o;case"u64":let n=p.alloc(8);return n.writeBigUInt64LE(BigInt(t)),n;case"string":return p.from(b(t));case"publicKey":return t.toBuffer();default:if(e.array)return p.from(t);throw new Error(`Unexpected seed type: ${e}`)}}}xa.CONST_ACCOUNTS={associatedTokenProgram:Zt,rent:o.SYSVAR_RENT_PUBKEY,systemProgram:o.SystemProgram.programId,tokenProgram:Ot};class Ra{constructor(e,t){this._provider=e,this._accounts=t,this._cache=new Map}async fetchAccount(e,t){const a=t.toString();if(!this._cache.has(a))if("TokenAccount"===e){const e=await this._provider.connection.getAccountInfo(t);if(null===e)throw new Error(`invalid account info for ${a}`);const o=ka().accounts.decode("token",e.data);this._cache.set(a,o)}else{const o=this._accounts[$parcel$interopDefault(i)(e)].fetch(t);this._cache.set(a,o)}return this._cache.get(a)}}class Aa{static build(e,t,a,o,n,s,r,i,c){return(...d)=>new Ia(d,o,n,s,r,i,e,t,a,c)}}class Ia{constructor(e,t,a,o,n,s,r,i,c,d){this._args=e,this._ixFn=t,this._txFn=a,this._rpcFn=o,this._simulateFn=n,this._viewFn=s,this._accounts={},this._remainingAccounts=[],this._signers=[],this._preInstructions=[],this._postInstructions=[],this._autoResolveAccounts=!0,this._accountsResolver=new xa(e,this._accounts,r,i,c,d)}async pubkeys(){return this._autoResolveAccounts&&await this._accountsResolver.resolve(),this._accounts}accounts(e){return this._autoResolveAccounts=!0,Object.assign(this._accounts,e),this}accountsStrict(e){return this._autoResolveAccounts=!1,Object.assign(this._accounts,e),this}signers(e){return this._signers=this._signers.concat(e),this}remainingAccounts(e){return this._remainingAccounts=this._remainingAccounts.concat(e),this}preInstructions(e){return this._preInstructions=this._preInstructions.concat(e),this}postInstructions(e){return this._postInstructions=this._postInstructions.concat(e),this}async rpc(e){return this._autoResolveAccounts&&await this._accountsResolver.resolve(),this._rpcFn(...this._args,{accounts:this._accounts,signers:this._signers,remainingAccounts:this._remainingAccounts,preInstructions:this._preInstructions,postInstructions:this._postInstructions,options:e})}async view(e){if(this._autoResolveAccounts&&await this._accountsResolver.resolve(),!this._viewFn)throw new Error("Method does not support views");return this._viewFn(...this._args,{accounts:this._accounts,signers:this._signers,remainingAccounts:this._remainingAccounts,preInstructions:this._preInstructions,postInstructions:this._postInstructions,options:e})}async simulate(e){return this._autoResolveAccounts&&await this._accountsResolver.resolve(),this._simulateFn(...this._args,{accounts:this._accounts,signers:this._signers,remainingAccounts:this._remainingAccounts,preInstructions:this._preInstructions,postInstructions:this._postInstructions,options:e})}async instruction(){return this._autoResolveAccounts&&await this._accountsResolver.resolve(),this._ixFn(...this._args,{accounts:this._accounts,signers:this._signers,remainingAccounts:this._remainingAccounts,preInstructions:this._preInstructions,postInstructions:this._postInstructions})}async transaction(){return this._autoResolveAccounts&&await this._accountsResolver.resolve(),this._txFn(...this._args,{accounts:this._accounts,signers:this._signers,remainingAccounts:this._remainingAccounts,preInstructions:this._preInstructions,postInstructions:this._postInstructions})}}class Sa{constructor(e,t,a,o){t=I(t),a||(a=ie()),this._idl=e,this._provider=a,this._programId=t,this._coder=null!=o?o:new Fe(e),this._events=new ba(this._programId,a,this._coder);const[n,s,r,c,d,l,m,u]=class{static build(e,t,a,o){const n={},s={},r={},c={},d={},l={},m=x(e),u=e.accounts?class{static build(e,t,a,o){var n;const s={};return null===(n=e.accounts)||void 0===n||n.forEach((n=>{const r=$parcel$interopDefault(i)(n.name);s[r]=new ha(e,n,a,o,t)})),s}}.build(e,t,a,o):{},p=class{static build(e,t,a,o){if(void 0!==e.state)return new ua(e,a,o,t)}}.build(e,t,a,o);return e.instructions.forEach((p=>{const h=da.build(p,((e,a)=>t.instruction.encode(e,a)),a),g=ma.build(p,h),b=la.build(p,g,m,o),f=class{static build(e,t,a,o,n,s,r){return async(...i)=>{var c;const d=t(...i),[,l]=ca(e,[...i]);let m;if(void 0===o.simulate)throw new Error("This function requires 'Provider.simulate' to be implemented.");try{m=await o.simulate(d,l.signers,null===(c=l.options)||void 0===c?void 0:c.commitment)}catch(e){throw fe(e,a)}if(void 0===m)throw new Error("Unable to simulate transaction");const u=m.logs;if(!u)throw new Error("Simulated logs not found");const p=[];if(r.events){let e=new fa(s,n);for(const t of e.parseLogs(u))p.push(t)}return{events:p,raw:u}}}}.build(p,g,m,o,t,a,e),y=class{static build(e,t,a,o){const n=t.accounts.find((e=>e.isMut)),s=!!t.returns;if(!n&&s)return async(...n)=>{var s,r;let i=await a(...n);const c=`Program return: ${e} `;let d=i.raw.find((e=>e.startsWith(c)));if(!d)throw new Error("View expected return log");let l=w(d.slice(c.length)),m=t.returns;if(!m)throw new Error("View expected return type");return Ae.fieldLayout({type:m},Array.from([...null!==(s=o.accounts)&&void 0!==s?s:[],...null!==(r=o.types)&&void 0!==r?r:[]])).decode(l)}}}.build(a,p,f,e),$=Aa.build(o,a,p,h,g,b,f,y,u),k=$parcel$interopDefault(i)(p.name);s[k]=h,r[k]=g,n[k]=b,c[k]=f,d[k]=$,y&&(l[k]=y)})),[n,s,r,u,c,d,p,l]}}.build(e,this._coder,t,a);this.rpc=n,this.instruction=s,this.transaction=r,this.account=c,this.simulate=d,this.methods=l,this.state=m,this.views=u}get programId(){return this._programId}get idl(){return this._idl}get coder(){return this._coder}get provider(){return this._provider}static async at(e,t){const a=I(e),o=await Sa.fetchIdl(a,t);if(!o)throw new Error(`IDL not found for program: ${e.toString()}`);return new Sa(o,a,t)}static async fetchIdl(e,t){t=null!=t?t:ie();const a=I(e),n=await async function(e){const t=(await o.PublicKey.findProgramAddress([],e))[0];return await o.PublicKey.createWithSeed(t,"anchor:idl",e)}(a),s=await t.connection.getAccountInfo(n);if(!s)return null;let r=(i=s.data.slice(8),ia.decode(i));var i;const c=(0,l.inflate)(r.data);return JSON.parse(g(c))}addEventListener(e,t){return this._events.addEventListener(e,t)}async removeEventListener(e){return await this._events.removeEventListener(e)}}class Ea{constructor(e){}encode(e,t){if("create"===$parcel$interopDefault(i)(e))return p.alloc(0);throw new Error(`Invalid instruction: ${e}`)}encodeState(e,t){throw new Error("SPL associated token does not have state")}}class Ta{constructor(e){}encode(e,t){throw new Error("SPL associated token does not have state")}decode(e){throw new Error("SPL associated token does not have state")}}class Ca{constructor(e){this.idl=e}async encode(e,t){throw new Error(`Invalid account name: ${e}`)}decode(e,t){return this.decodeUnchecked(e,t)}decodeUnchecked(e,t){throw new Error(`Invalid account name: ${e}`)}memcmp(e,t){throw new Error(`Invalid account name: ${e}`)}size(e){var t;return null!==(t=Te(this.idl,e))&&void 0!==t?t:0}}class Ua{constructor(e){}decode(e){throw new Error("SPL associated token program does not have events")}}class Ma{constructor(e){}encode(e,t){throw new Error("SPL associated token does not have user-defined types")}decode(e,t){throw new Error("SPL associated token does not have user-defined types")}}class Da{constructor(e){this.instruction=new Ea(e),this.accounts=new Ca(e),this.events=new Ua(e),this.state=new Ta(e),this.types=new Ma(e)}}const Na=new(0,o.PublicKey)("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");const Pa={version:"0.1.0",name:"spl_associated_token",instructions:[{name:"create",accounts:[{name:"authority",isMut:!0,isSigner:!0},{name:"associatedAccount",isMut:!0,isSigner:!1},{name:"owner",isMut:!1,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1},{name:"tokenProgram",isMut:!1,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[]}]};class Ba{static token(e){return function(e){return new Sa(va,wa,e,ka())}(e)}static associatedToken(e){return function(e){return new Sa(Pa,Na,e,new Da(Pa))}(e)}}const La=new(0,o.PublicKey)("11111111111111111111111111111111");const Fa={version:"0.1.0",name:"system_program",instructions:[{name:"createAccount",accounts:[{name:"from",isMut:!0,isSigner:!0},{name:"to",isMut:!0,isSigner:!0}],args:[{name:"lamports",type:"u64"},{name:"space",type:"u64"},{name:"owner",type:"publicKey"}]},{name:"assign",accounts:[{name:"pubkey",isMut:!0,isSigner:!0}],args:[{name:"owner",type:"publicKey"}]},{name:"transfer",accounts:[{name:"from",isMut:!0,isSigner:!0},{name:"to",isMut:!0,isSigner:!1}],args:[{name:"lamports",type:"u64"}]},{name:"createAccountWithSeed",accounts:[{name:"from",isMut:!0,isSigner:!0},{name:"to",isMut:!0,isSigner:!1},{name:"base",isMut:!1,isSigner:!0}],args:[{name:"base",type:"publicKey"},{name:"seed",type:"string"},{name:"lamports",type:"u64"},{name:"space",type:"u64"},{name:"owner",type:"publicKey"}]},{name:"advanceNonceAccount",accounts:[{name:"nonce",isMut:!0,isSigner:!1},{name:"recentBlockhashes",isMut:!1,isSigner:!1},{name:"authorized",isMut:!1,isSigner:!0}],args:[{name:"authorized",type:"publicKey"}]},{name:"withdrawNonceAccount",accounts:[{name:"nonce",isMut:!0,isSigner:!1},{name:"to",isMut:!0,isSigner:!1},{name:"recentBlockhashes",isMut:!1,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1},{name:"authorized",isMut:!1,isSigner:!0}],args:[{name:"lamports",type:"u64"}]},{name:"initializeNonceAccount",accounts:[{name:"nonce",isMut:!0,isSigner:!0},{name:"recentBlockhashes",isMut:!1,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"authorized",type:"publicKey"}]},{name:"authorizeNonceAccount",accounts:[{name:"nonce",isMut:!0,isSigner:!1},{name:"authorized",isMut:!1,isSigner:!0}],args:[{name:"authorized",type:"publicKey"}]},{name:"allocate",accounts:[{name:"pubkey",isMut:!0,isSigner:!0}],args:[{name:"space",type:"u64"}]},{name:"allocateWithSeed",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"base",isMut:!1,isSigner:!0}],args:[{name:"base",type:"publicKey"},{name:"seed",type:"string"},{name:"space",type:"u64"},{name:"owner",type:"publicKey"}]},{name:"assignWithSeed",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"base",isMut:!1,isSigner:!0}],args:[{name:"base",type:"publicKey"},{name:"seed",type:"string"},{name:"owner",type:"publicKey"}]},{name:"transferWithSeed",accounts:[{name:"from",isMut:!0,isSigner:!1},{name:"base",isMut:!1,isSigner:!0},{name:"to",isMut:!0,isSigner:!1}],args:[{name:"lamports",type:"u64"},{name:"seed",type:"string"},{name:"owner",type:"publicKey"}]}],accounts:[{name:"nonce",type:{kind:"struct",fields:[{name:"version",type:"u32"},{name:"state",type:"u32"},{name:"authorizedPubkey",type:"publicKey"},{name:"nonce",type:"publicKey"},{name:"feeCalculator",type:{defined:"FeeCalculator"}}]}}],types:[{name:"FeeCalculator",type:{kind:"struct",fields:[{name:"lamportsPerSignature",type:"u64"}]}}]};class Ka{static system(e){return function(e){return new Sa(Fa,La,e,new Wt(Fa))}(e)}}})),parcelRequire.register("31mRL",(function(e,t){"use strict";const a=(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);if(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim(),0===e.length)return"";if(1===e.length)return t.pascalCase?e.toUpperCase():e.toLowerCase();return e!==e.toLowerCase()&&(e=(e=>{let t=!1,a=!1,o=!1;for(let n=0;nt.toUpperCase())).replace(/\d+(\w|$)/g,(e=>e.toUpperCase())),a=e,t.pascalCase?a.charAt(0).toUpperCase()+a.slice(1):a;var a};e.exports=a,e.exports.default=a})),parcelRequire.register("TTdkx",(function(module,exports){var $aVc1D=parcelRequire("aVc1D"); +/** + * [js-sha256]{@link https://github.com/emn178/js-sha256} + * + * @version 0.9.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2014-2017 + * @license MIT + */(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof $aVc1D&&$aVc1D.versions&&$aVc1D.versions.node;NODE_JS?root=$parcel$global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(a){return new Sha256(t,!0).update(a)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var a=0;a>6,r[c++]=128|63&s):s<55296||s>=57344?(r[c++]=224|s>>12,r[c++]=128|s>>6&63,r[c++]=128|63&s):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),r[c++]=240|s>>18,r[c++]=128|s>>12&63,r[c++]=128|s>>6&63,r[c++]=128|63&s);e=r}else{if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var d=[],l=[];for(o=0;o<64;++o){var m=e[o]||0;d[o]=92^m,l[o]=54^m}Sha256.call(this,t,a),this.update(l),this.oKeyPad=d,this.inner=!0,this.sharedMemory=a}Sha256.prototype.update=function(e){if(!this.finalized){var t,a=typeof e;if("string"!==a){if("object"!==a)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var o,n,s=0,r=e.length,i=this.blocks;s>2]|=e[s]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(i[n>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=64?(this.block=i[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,a,o,n,s,r,i,c,d=this.h0,l=this.h1,m=this.h2,u=this.h3,p=this.h4,h=this.h5,g=this.h6,b=this.h7,f=this.blocks;for(e=16;e<64;++e)t=((n=f[e-15])>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,a=((n=f[e-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,f[e]=f[e-16]+t+f[e-7]+a<<0;for(c=l&m,e=0;e<64;e+=4)this.first?(this.is224?(s=300032,b=(n=f[0]-1413257819)-150054599<<0,u=n+24177077<<0):(s=704751109,b=(n=f[0]-210244248)-1521486534<<0,u=n+143694565<<0),this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),o=(s=d&l)^d&m^c,b=u+(n=b+(a=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&h^~p&g)+K[e]+f[e])<<0,u=n+(t+o)<<0),t=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),o=(r=u&d)^u&l^s,g=m+(n=g+(a=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&p^~b&h)+K[e+1]+f[e+1])<<0,t=((m=n+(t+o)<<0)>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10),o=(i=m&u)^m&d^r,h=l+(n=h+(a=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&b^~g&p)+K[e+2]+f[e+2])<<0,t=((l=n+(t+o)<<0)>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),o=(c=l&m)^l&u^i,p=d+(n=p+(a=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&g^~h&b)+K[e+3]+f[e+3])<<0,d=n+(t+o)<<0;this.h0=this.h0+d<<0,this.h1=this.h1+l<<0,this.h2=this.h2+m<<0,this.h3=this.h3+u<<0,this.h4=this.h4+p<<0,this.h5=this.h5+h<<0,this.h6=this.h6+g<<0,this.h7=this.h7+b<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,a=this.h2,o=this.h3,n=this.h4,s=this.h5,r=this.h6,i=this.h7,c=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r];return this.is224||(c+=HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,a=this.h2,o=this.h3,n=this.h4,s=this.h5,r=this.h6,i=this.h7,c=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,a>>24&255,a>>16&255,a>>8&255,255&a,o>>24&255,o>>16&255,o>>8&255,255&o,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,r>>24&255,r>>16&255,r>>8&255,255&r];return this.is224||c.push(i>>24&255,i>>16&255,i>>8&255,255&i),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define((function(){return exports})))})()})),parcelRequire.register("aVc1D",(function(e,t){var a,o,n=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(a===setTimeout)return setTimeout(e,0);if((a===s||!a)&&setTimeout)return a=setTimeout,setTimeout(e,0);try{return a(e,0)}catch(t){try{return a.call(null,e,0)}catch(t){return a.call(this,e,0)}}}!function(){try{a="function"==typeof setTimeout?setTimeout:s}catch(e){a=s}try{o="function"==typeof clearTimeout?clearTimeout:r}catch(e){o=r}}();var c,d=[],l=!1,m=-1;function u(){l&&c&&(l=!1,c.length?d=c.concat(d):m=-1,d.length&&p())}function p(){if(!l){var e=i(u);l=!0;for(var t=d.length;t;){for(c=d,d=[];++m1)for(var a=1;anew s.PublicKey(e)),(e=>e.toBuffer()),e)};class l extends n.Layout{constructor(e,t){super(-1,t),this.layout=e,this.discriminator=n.u8()}encode(e,t,a=0){return null==e?this.discriminator.encode(0,t,a):(this.discriminator.encode(1,t,a),this.layout.encode(e,t,a+1)+1)}decode(e,t=0){const a=this.discriminator.decode(e,t);if(0===a)return null;if(1===a)return this.layout.decode(e,t+1);throw new Error("Invalid option "+this.property)}getSpan(e,t=0){const a=this.discriminator.decode(e,t);if(0===a)return 1;if(1===a)return this.layout.getSpan(e,t+1)+1;throw new Error("Invalid option "+this.property)}}function m(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}function u(e){return e?1:0}function p(e){const t=n.u32("length"),a=n.struct([t,n.blob(n.offset(t,-t.span),"data")]);return new d(a,(({data:e})=>e),(e=>({data:e})),e)}e.exports.option=function(e,t){return new l(e,t)},e.exports.bool=function(e){return new d(n.u8(),m,u,e)},e.exports.vec=function(e,t){const a=n.u32("length"),o=n.struct([a,n.seq(e,n.offset(a,-a.span),"values")]);return new d(o,(({values:e})=>e),(e=>({values:e})),t)},e.exports.tagged=function(e,t,a){const o=n.struct([c("tag"),t.replicate("data")]);return new d(o,(function({tag:t,data:a}){if(!t.eq(e))throw new Error("Invalid tag, expected: "+e.toString("hex")+", got: "+t.toString("hex"));return a}),(t=>({tag:e,data:t})),a)},e.exports.vecU8=p,e.exports.str=function(e){return new d(p(),(e=>e.toString("utf-8")),(e=>a.from(e,"utf-8")),e)},e.exports.rustEnum=function(e,t,a){const o=n.union(null!=a?a:n.u8(),t);return e.forEach(((e,t)=>o.addVariant(t,e,e.property))),o},e.exports.array=function(e,t,a){const o=n.struct([n.seq(e,t,"values")]);return new d(o,(({values:e})=>e),(e=>({values:e})),a)};class h extends n.Layout{constructor(e,t,a){super(e.span+t.span,a),this.keyLayout=e,this.valueLayout=t}decode(e,t){t=t||0;return[this.keyLayout.decode(e,t),this.valueLayout.decode(e,t+this.keyLayout.getSpan(e,t))]}encode(e,t,a){a=a||0;const o=this.keyLayout.encode(e[0],t,a);return o+this.valueLayout.encode(e[1],t,a+o)}getSpan(e,t){return this.keyLayout.getSpan(e,t)+this.valueLayout.getSpan(e,t)}}e.exports.map=function(e,t,a){const o=n.u32("length"),s=n.struct([o,n.seq(new h(e,t),n.offset(o,-o.span),"values")]);return new d(s,(({values:e})=>new Map(e)),(e=>({values:Array.from(e.entries())})),a)}})),parcelRequire.register("9Dvot",(function(e,t){ +/** + * Support for translating between Buffer instances and JavaScript + * native types. + * + * {@link module:Layout~Layout|Layout} is the basis of a class + * hierarchy that associates property names with sequences of encoded + * bytes. + * + * Layouts are supported for these scalar (numeric) types: + * * {@link module:Layout~UInt|Unsigned integers in little-endian + * format} with {@link module:Layout.u8|8-bit}, {@link + * module:Layout.u16|16-bit}, {@link module:Layout.u24|24-bit}, + * {@link module:Layout.u32|32-bit}, {@link + * module:Layout.u40|40-bit}, and {@link module:Layout.u48|48-bit} + * representation ranges; + * * {@link module:Layout~UIntBE|Unsigned integers in big-endian + * format} with {@link module:Layout.u16be|16-bit}, {@link + * module:Layout.u24be|24-bit}, {@link module:Layout.u32be|32-bit}, + * {@link module:Layout.u40be|40-bit}, and {@link + * module:Layout.u48be|48-bit} representation ranges; + * * {@link module:Layout~Int|Signed integers in little-endian + * format} with {@link module:Layout.s8|8-bit}, {@link + * module:Layout.s16|16-bit}, {@link module:Layout.s24|24-bit}, + * {@link module:Layout.s32|32-bit}, {@link + * module:Layout.s40|40-bit}, and {@link module:Layout.s48|48-bit} + * representation ranges; + * * {@link module:Layout~IntBE|Signed integers in big-endian format} + * with {@link module:Layout.s16be|16-bit}, {@link + * module:Layout.s24be|24-bit}, {@link module:Layout.s32be|32-bit}, + * {@link module:Layout.s40be|40-bit}, and {@link + * module:Layout.s48be|48-bit} representation ranges; + * * 64-bit integral values that decode to an exact (if magnitude is + * less than 2^53) or nearby integral Number in {@link + * module:Layout.nu64|unsigned little-endian}, {@link + * module:Layout.nu64be|unsigned big-endian}, {@link + * module:Layout.ns64|signed little-endian}, and {@link + * module:Layout.ns64be|unsigned big-endian} encodings; + * * 32-bit floating point values with {@link + * module:Layout.f32|little-endian} and {@link + * module:Layout.f32be|big-endian} representations; + * * 64-bit floating point values with {@link + * module:Layout.f64|little-endian} and {@link + * module:Layout.f64be|big-endian} representations; + * * {@link module:Layout.const|Constants} that take no space in the + * encoded expression. + * + * and for these aggregate types: + * * {@link module:Layout.seq|Sequence}s of instances of a {@link + * module:Layout~Layout|Layout}, with JavaScript representation as + * an Array and constant or data-dependent {@link + * module:Layout~Sequence#count|length}; + * * {@link module:Layout.struct|Structure}s that aggregate a + * heterogeneous sequence of {@link module:Layout~Layout|Layout} + * instances, with JavaScript representation as an Object; + * * {@link module:Layout.union|Union}s that support multiple {@link + * module:Layout~VariantLayout|variant layouts} over a fixed + * (padded) or variable (not padded) span of bytes, using an + * unsigned integer at the start of the data or a separate {@link + * module:Layout.unionLayoutDiscriminator|layout element} to + * determine which layout to use when interpreting the buffer + * contents; + * * {@link module:Layout.bits|BitStructure}s that contain a sequence + * of individual {@link + * module:Layout~BitStructure#addField|BitField}s packed into an 8, + * 16, 24, or 32-bit unsigned integer starting at the least- or + * most-significant bit; + * * {@link module:Layout.cstr|C strings} of varying length; + * * {@link module:Layout.blob|Blobs} of fixed- or variable-{@link + * module:Layout~Blob#length|length} raw data. + * + * All {@link module:Layout~Layout|Layout} instances are immutable + * after construction, to prevent internal state from becoming + * inconsistent. + * + * @local Layout + * @local ExternalLayout + * @local GreedyCount + * @local OffsetLayout + * @local UInt + * @local UIntBE + * @local Int + * @local IntBE + * @local NearUInt64 + * @local NearUInt64BE + * @local NearInt64 + * @local NearInt64BE + * @local Float + * @local FloatBE + * @local Double + * @local DoubleBE + * @local Sequence + * @local Structure + * @local UnionDiscriminator + * @local UnionLayoutDiscriminator + * @local Union + * @local VariantLayout + * @local BitStructure + * @local BitField + * @local Boolean + * @local Blob + * @local CString + * @local Constant + * @local bindConstructorLayout + * @module Layout + * @license MIT + * @author Peter A. Bigot + * @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub} + */ +var a,o,n,s,r,i,c,d,l,m,u,p,h,g;$parcel$export(e.exports,"Layout",(()=>a),(e=>a=e)),$parcel$export(e.exports,"offset",(()=>o),(e=>o=e)),$parcel$export(e.exports,"u8",(()=>n),(e=>n=e)),$parcel$export(e.exports,"u16",(()=>s),(e=>s=e)),$parcel$export(e.exports,"u32",(()=>r),(e=>r=e)),$parcel$export(e.exports,"s8",(()=>i),(e=>i=e)),$parcel$export(e.exports,"s16",(()=>c),(e=>c=e)),$parcel$export(e.exports,"s32",(()=>d),(e=>d=e)),$parcel$export(e.exports,"f32",(()=>l),(e=>l=e)),$parcel$export(e.exports,"f64",(()=>m),(e=>m=e)),$parcel$export(e.exports,"struct",(()=>u),(e=>u=e)),$parcel$export(e.exports,"seq",(()=>p),(e=>p=e)),$parcel$export(e.exports,"union",(()=>h),(e=>h=e)),$parcel$export(e.exports,"blob",(()=>g),(e=>g=e));var b=parcelRequire("ajHSv").Buffer;class f{constructor(e,t){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}decode(e,t){throw new Error("Layout is abstract")}encode(e,t,a){throw new Error("Layout is abstract")}getSpan(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){const t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}}function y(e,t){return t.property?e+"["+t.property+"]":e}a=f;class $ extends f{isCount(){throw new Error("ExternalLayout is abstract")}}class w extends ${constructor(e,t){if(void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");super(-1,t),this.elementSpan=e}isCount(){return!0}decode(e,t){void 0===t&&(t=0);const a=e.length-t;return Math.floor(a/this.elementSpan)}encode(e,t,a){return 0}}class k extends ${constructor(e,t,a){if(!(e instanceof f))throw new TypeError("layout must be a Layout");if(void 0===t)t=0;else if(!Number.isInteger(t))throw new TypeError("offset must be integer or undefined");super(e.span,a||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof v||this.layout instanceof x}decode(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}encode(e,t,a){return void 0===a&&(a=0),this.layout.encode(e,t,a+this.offset)}}class v extends f{constructor(e,t){if(super(e,t),6e+o.encode(n,t,a+e)),0);return this.count instanceof $&&this.count.encode(e.length,t,a),n}}class F extends f{constructor(e,t,a){if(!Array.isArray(e)||!e.reduce(((e,t)=>e&&t instanceof f),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof t&&void 0===a&&(a=t,t=void 0);for(const t of e)if(0>t.span&&void 0===t.property)throw new Error("fields cannot contain unnamed variable-length layout");let o=-1;try{o=e.reduce(((e,t)=>e+t.getSpan()),0)}catch(e){}super(o,t),this.fields=e,this.decodePrefixes=!!a}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let a=0;try{a=this.fields.reduce(((a,o)=>{const n=o.getSpan(e,t);return t+=n,a+n}),0)}catch(e){throw new RangeError("indeterminate span")}return a}decode(e,t){void 0===t&&(t=0);const a=this.makeDestinationObject();for(const o of this.fields)if(void 0!==o.property&&(a[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break;return a}encode(e,t,a){void 0===a&&(a=0);const o=a;let n=0,s=0;for(const o of this.fields){let r=o.span;if(s=0r&&(r=o.getSpan(t,a)))}n=a,a+=r}return n+s-o}fromArray(e){const t=this.makeDestinationObject();for(const a of this.fields)void 0!==a.property&&0a.span?t=-1:0<=t&&(t+=a.span)}}}class K{constructor(e){this.property=e}decode(){throw new Error("UnionDiscriminator is abstract")}encode(){throw new Error("UnionDiscriminator is abstract")}}class G extends K{constructor(e,t){if(!(e instanceof $&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,a){return this.layout.encode(e,t,a)}}class j extends f{constructor(e,t,a){const o=e instanceof v||e instanceof x;if(o)e=new G(new k(e));else if(e instanceof $&&e.isCount())e=new G(e);else if(!(e instanceof K))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===t&&(t=null),!(null===t||t instanceof f))throw new TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw new Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let n=-1;t&&(n=t.span,0<=n&&o&&(n+=e.layout.span)),super(n,a),this.discriminator=e,this.usesPrefixDiscriminator=o,this.defaultLayout=t,this.registry={};let s=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return s(e)},this.configGetSourceVariant=function(e){s=e.bind(this)}}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);const a=this.getVariant(e,t);if(!a)throw new Error("unable to determine span for unrecognized variant");return a.getSpan(e,t)}defaultGetSourceVariant(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;const t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(const t in this.registry){const a=this.registry[t];if(e.hasOwnProperty(a.property))return a}throw new Error("unable to infer src variant")}decode(e,t){let a;void 0===t&&(t=0);const o=this.discriminator,n=o.decode(e,t);let s=this.registry[n];if(void 0===s){let r=0;s=this.defaultLayout,this.usesPrefixDiscriminator&&(r=o.layout.span),a=this.makeDestinationObject(),a[o.property]=n,a[s.property]=this.defaultLayout.decode(e,t+r)}else a=s.decode(e,t);return a}encode(e,t,a){void 0===a&&(a=0);const o=this.getSourceVariant(e);if(void 0===o){const o=this.discriminator,n=this.defaultLayout;let s=0;return this.usesPrefixDiscriminator&&(s=o.layout.span),o.encode(e[o.property],t,a),s+n.encode(e[n.property],t,a+s)}return o.encode(e,t,a)}addVariant(e,t,a){const o=new q(this,e,t,a);return this.registry[e]=o,o}getVariant(e,t){let a=e;return b.isBuffer(e)&&(void 0===t&&(t=0),a=this.discriminator.decode(e,t)),this.registry[a]}}class q extends f{constructor(e,t,a,o){if(!(e instanceof j))throw new TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===o&&(o=a,a=null),a){if(!(a instanceof f))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}let n=e.span;0>e.span&&(n=a?a.span:0,0<=n&&e.usesPrefixDiscriminator&&(n+=e.discriminator.layout.span)),super(n,o),this.union=e,this.variant=t,this.layout=a||null}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let a=0;return this.union.usesPrefixDiscriminator&&(a=this.union.discriminator.layout.span),a+this.layout.getSpan(e,t+a)}decode(e,t){const a=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw new Error("variant mismatch");let o=0;return this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout?a[this.property]=this.layout.decode(e,t+o):this.property?a[this.property]=!0:this.union.usesPrefixDiscriminator&&(a[this.union.discriminator.property]=this.variant),a}encode(e,t,a){void 0===a&&(a=0);let o=0;if(this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,a);let n=o;if(this.layout&&(this.layout.encode(e[this.property],t,a+o),n+=this.layout.getSpan(t,a+o),0<=this.union.span&&n>this.union.span))throw new Error("encoded variant overruns containing union");return n}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function W(e){return 0>e&&(e+=4294967296),e}class z extends f{constructor(e,t,a){if(!(e instanceof v||e instanceof x))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof t&&void 0===a&&(a=t,t=void 0),4=t)throw new TypeError("bits must be positive integer");const o=8*e.span,n=e.fields.reduce(((e,t)=>e+t.bits),0);if(t+n>o)throw new Error("bits too long for span remainder ("+(o-n)+" of "+o+" remain)");this.container=e,this.bits=t,this.valueMask=(1<>>this.start}encode(e){if(!Number.isInteger(e)||e!==W(e&this.valueMask))throw new TypeError(y("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const t=this.container._packedGetValue(),a=W(e<a&&(a=this.length.decode(e,t)),a}decode(e,t){void 0===t&&(t=0);let a=this.span;return 0>a&&(a=this.length.decode(e,t)),e.slice(t,t+a)}encode(e,t,a){let o=this.length;if(this.length instanceof $&&(o=e.length),!b.isBuffer(e)||o!==e.length)throw new TypeError(y("Blob.encode",this)+" requires (length "+o+") Buffer as src");if(a+o>t.length)throw new RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),a,o,"hex"),this.length instanceof $&&this.length.encode(o,t,a),o}}class Y extends f{constructor(e){super(-1,e)}getSpan(e,t){if(!b.isBuffer(e))throw new TypeError("b must be a Buffer");void 0===t&&(t=0);let a=t;for(;at.length)throw new RangeError("encoding overruns Buffer");return o.copy(t,a),t[a+n]=0,n+1}}class J extends f{constructor(e,t){if("string"==typeof e&&void 0===t&&(t=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");super(-1,t),this.maxSpan=e}getSpan(e,t){if(!b.isBuffer(e))throw new TypeError("b must be a Buffer");return void 0===t&&(t=0),e.length-t}decode(e,t,a){void 0===t&&(t=0);let o=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return o.copy(t,a),n}}class X extends f{constructor(e,t){super(0,t),this.value=e}decode(e,t,a){return this.value}encode(e,t,a){return 0}}o=(e,t,a)=>new k(e,t,a),n=e=>new v(1,e),s=e=>new v(2,e),r=e=>new v(4,e),i=e=>new R(1,e),c=e=>new R(2,e),d=e=>new R(4,e),l=e=>new D(e),m=e=>new P(e),u=(e,t,a)=>new F(e,t,a),p=(e,t,a)=>new L(e,t,a),h=(e,t,a)=>new j(e,t,a),g=(e,t)=>new V(e,t)})),parcelRequire.register("lGmwl",(function(e,t){$parcel$export(e.exports,"inflate",(()=>$a));function a(e){let t=e.length;for(;--t>=0;)e[t]=0}const o=256,n=286,s=30,r=15,i=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),c=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),d=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new Array(576);a(m);const u=new Array(60);a(u);const p=new Array(512);a(p);const h=new Array(256);a(h);const g=new Array(29);a(g);const b=new Array(s);function f(e,t,a,o,n){this.static_tree=e,this.extra_bits=t,this.extra_base=a,this.elems=o,this.max_length=n,this.has_stree=e&&e.length}let y,$,w;function k(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}a(b);const v=e=>e<256?p[e]:p[256+(e>>>7)],x=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},R=(e,t,a)=>{e.bi_valid>16-a?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=a-16):(e.bi_buf|=t<{R(e,a[2*t],a[2*t+1])},I=(e,t)=>{let a=0;do{a|=1&e,e>>>=1,a<<=1}while(--t>0);return a>>>1},S=(e,t,a)=>{const o=new Array(16);let n,s,i=0;for(n=1;n<=r;n++)i=i+a[n-1]<<1,o[n]=i;for(s=0;s<=t;s++){let t=e[2*s+1];0!==t&&(e[2*s]=I(o[t]++,t))}},E=e=>{let t;for(t=0;t{e.bi_valid>8?x(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},C=(e,t,a,o)=>{const n=2*t,s=2*a;return e[n]{const o=e.heap[a];let n=a<<1;for(;n<=e.heap_len&&(n{let n,s,r,d,l=0;if(0!==e.sym_next)do{n=255&e.pending_buf[e.sym_buf+l++],n+=(255&e.pending_buf[e.sym_buf+l++])<<8,s=e.pending_buf[e.sym_buf+l++],0===n?A(e,s,t):(r=h[s],A(e,r+o+1,t),d=i[r],0!==d&&(s-=g[r],R(e,s,d)),n--,r=v(n),A(e,r,a),d=c[r],0!==d&&(n-=b[r],R(e,n,d)))}while(l{const a=t.dyn_tree,o=t.stat_desc.static_tree,n=t.stat_desc.has_stree,s=t.stat_desc.elems;let i,c,d,l=-1;for(e.heap_len=0,e.heap_max=573,i=0;i>1;i>=1;i--)U(e,a,i);d=s;do{i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],U(e,a,1),c=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=c,a[2*d]=a[2*i]+a[2*c],e.depth[d]=(e.depth[i]>=e.depth[c]?e.depth[i]:e.depth[c])+1,a[2*i+1]=a[2*c+1]=d,e.heap[1]=d++,U(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const a=t.dyn_tree,o=t.max_code,n=t.stat_desc.static_tree,s=t.stat_desc.has_stree,i=t.stat_desc.extra_bits,c=t.stat_desc.extra_base,d=t.stat_desc.max_length;let l,m,u,p,h,g,b=0;for(p=0;p<=r;p++)e.bl_count[p]=0;for(a[2*e.heap[e.heap_max]+1]=0,l=e.heap_max+1;l<573;l++)m=e.heap[l],p=a[2*a[2*m+1]+1]+1,p>d&&(p=d,b++),a[2*m+1]=p,m>o||(e.bl_count[p]++,h=0,m>=c&&(h=i[m-c]),g=a[2*m],e.opt_len+=g*(p+h),s&&(e.static_len+=g*(n[2*m+1]+h)));if(0!==b){do{for(p=d-1;0===e.bl_count[p];)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[d]--,b-=2}while(b>0);for(p=d;0!==p;p--)for(m=e.bl_count[p];0!==m;)u=e.heap[--l],u>o||(a[2*u+1]!==p&&(e.opt_len+=(p-a[2*u+1])*a[2*u],a[2*u+1]=p),m--)}})(e,t),S(a,l,e.bl_count)},N=(e,t,a)=>{let o,n,s=-1,r=t[1],i=0,c=7,d=4;for(0===r&&(c=138,d=3),t[2*(a+1)+1]=65535,o=0;o<=a;o++)n=r,r=t[2*(o+1)+1],++i{let o,n,s=-1,r=t[1],i=0,c=7,d=4;for(0===r&&(c=138,d=3),o=0;o<=a;o++)if(n=r,r=t[2*(o+1)+1],!(++i{R(e,0+(o?1:0),3),T(e),x(e,a),x(e,~a),a&&e.pending_buf.set(e.window.subarray(t,t+a),e.pending),e.pending+=a};var F={_tr_init:e=>{B||((()=>{let e,t,a,o,l;const k=new Array(16);for(a=0,o=0;o<28;o++)for(g[o]=a,e=0;e<1<>=7;o{let s,r,i=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,a=4093624447;for(t=0;t<=31;t++,a>>>=1)if(1&a&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t{let t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),D(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),s=e.opt_len+3+7>>>3,r=e.static_len+3+7>>>3,r<=s&&(s=r)):s=r=a+5,a+4<=s&&-1!==t?L(e,t,a,n):4===e.strategy||r===s?(R(e,2+(n?1:0),3),M(e,m,u)):(R(e,4+(n?1:0),3),((e,t,a,o)=>{let n;for(R(e,t-257,5),R(e,a-1,5),R(e,o-4,4),n=0;n(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=a,0===t?e.dyn_ltree[2*a]++:(e.matches++,t--,e.dyn_ltree[2*(h[a]+o+1)]++,e.dyn_dtree[2*v(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{R(e,2,3),A(e,256,m),(e=>{16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}};var K=(e,t,a,o)=>{let n=65535&e|0,s=e>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+t[o++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const G=new Uint32Array((()=>{let e,t=[];for(var a=0;a<256;a++){e=a;for(var o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;t[a]=e}return t})());var j=(e,t,a,o)=>{const n=G,s=o+a;e^=-1;for(let a=o;a>>8^n[255&(e^t[a])];return-1^e},q={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},W={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:z,_tr_stored_block:H,_tr_flush_block:_,_tr_tally:V,_tr_align:Y}=F,{Z_NO_FLUSH:J,Z_PARTIAL_FLUSH:X,Z_FULL_FLUSH:O,Z_FINISH:Z,Z_BLOCK:Q,Z_OK:ee,Z_STREAM_END:te,Z_STREAM_ERROR:ae,Z_DATA_ERROR:oe,Z_BUF_ERROR:ne,Z_DEFAULT_COMPRESSION:se,Z_FILTERED:re,Z_HUFFMAN_ONLY:ie,Z_RLE:ce,Z_FIXED:de,Z_DEFAULT_STRATEGY:le,Z_UNKNOWN:me,Z_DEFLATED:ue}=W,pe=286,he=30,ge=19,be=2*pe+1,fe=15,ye=258,$e=262,we=42,ke=113,ve=666,xe=(e,t)=>(e.msg=q[t],t),Re=e=>2*e-(e>4?9:0),Ae=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Ie=e=>{let t,a,o,n=e.w_size;t=e.hash_size,o=t;do{a=e.head[--o],e.head[o]=a>=n?a-n:0}while(--t);t=n,o=t;do{a=e.prev[--o],e.prev[o]=a>=n?a-n:0}while(--t)};let Se=(e,t,a)=>(t<{const t=e.state;let a=t.pending;a>e.avail_out&&(a=e.avail_out),0!==a&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+a),e.next_out),e.next_out+=a,t.pending_out+=a,e.total_out+=a,e.avail_out-=a,t.pending-=a,0===t.pending&&(t.pending_out=0))},Te=(e,t)=>{_(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ee(e.strm)},Ce=(e,t)=>{e.pending_buf[e.pending++]=t},Ue=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Me=(e,t,a,o)=>{let n=e.avail_in;return n>o&&(n=o),0===n?0:(e.avail_in-=n,t.set(e.input.subarray(e.next_in,e.next_in+n),a),1===e.state.wrap?e.adler=K(e.adler,t,n,a):2===e.state.wrap&&(e.adler=j(e.adler,t,n,a)),e.next_in+=n,e.total_in+=n,n)},De=(e,t)=>{let a,o,n=e.max_chain_length,s=e.strstart,r=e.prev_length,i=e.nice_match;const c=e.strstart>e.w_size-$e?e.strstart-(e.w_size-$e):0,d=e.window,l=e.w_mask,m=e.prev,u=e.strstart+ye;let p=d[s+r-1],h=d[s+r];e.prev_length>=e.good_match&&(n>>=2),i>e.lookahead&&(i=e.lookahead);do{if(a=t,d[a+r]===h&&d[a+r-1]===p&&d[a]===d[s]&&d[++a]===d[s+1]){s+=2,a++;do{}while(d[++s]===d[++a]&&d[++s]===d[++a]&&d[++s]===d[++a]&&d[++s]===d[++a]&&d[++s]===d[++a]&&d[++s]===d[++a]&&d[++s]===d[++a]&&d[++s]===d[++a]&&sr){if(e.match_start=t,r=o,o>=i)break;p=d[s+r-1],h=d[s+r]}}}while((t=m[t&l])>c&&0!=--n);return r<=e.lookahead?r:e.lookahead},Ne=e=>{const t=e.w_size;let a,o,n;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-$e)&&(e.window.set(e.window.subarray(t,t+t-o),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Ie(e),o+=t),0===e.strm.avail_in)break;if(a=Me(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=a,e.lookahead+e.insert>=3)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=Se(e,e.ins_h,e.window[n+1]);e.insert&&(e.ins_h=Se(e,e.ins_h,e.window[n+3-1]),e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<$e&&0!==e.strm.avail_in)},Pe=(e,t)=>{let a,o,n,s=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r=0,i=e.strm.avail_in;do{if(a=65535,n=e.bi_valid+42>>3,e.strm.avail_outo+e.strm.avail_in&&(a=o+e.strm.avail_in),a>n&&(a=n),a>8,e.pending_buf[e.pending-2]=~a,e.pending_buf[e.pending-1]=~a>>8,Ee(e.strm),o&&(o>a&&(o=a),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+o),e.strm.next_out),e.strm.next_out+=o,e.strm.avail_out-=o,e.strm.total_out+=o,e.block_start+=o,a-=o),a&&(Me(e.strm,e.strm.output,e.strm.next_out,a),e.strm.next_out+=a,e.strm.avail_out-=a,e.strm.total_out+=a)}while(0===r);return i-=e.strm.avail_in,i&&(i>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=i&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-i,e.strm.next_in),e.strstart),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.block_start=e.strstart),e.high_watern&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,n+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),n>e.strm.avail_in&&(n=e.strm.avail_in),n&&(Me(e.strm,e.window,e.strstart,n),e.strstart+=n,e.insert+=n>e.w_size-e.insert?e.w_size-e.insert:n),e.high_water>3,n=e.pending_buf_size-n>65535?65535:e.pending_buf_size-n,s=n>e.w_size?e.w_size:n,o=e.strstart-e.block_start,(o>=s||(o||t===Z)&&t!==J&&0===e.strm.avail_in&&o<=n)&&(a=o>n?n:o,r=t===Z&&0===e.strm.avail_in&&a===o?1:0,H(e,e.block_start,a,r),e.block_start+=a,Ee(e.strm)),r?3:1)},Be=(e,t)=>{let a,o;for(;;){if(e.lookahead<$e){if(Ne(e),e.lookahead<$e&&t===J)return 1;if(0===e.lookahead)break}if(a=0,e.lookahead>=3&&(e.ins_h=Se(e,e.ins_h,e.window[e.strstart+3-1]),a=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==a&&e.strstart-a<=e.w_size-$e&&(e.match_length=De(e,a)),e.match_length>=3)if(o=V(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=Se(e,e.ins_h,e.window[e.strstart+3-1]),a=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Se(e,e.ins_h,e.window[e.strstart+1]);else o=V(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(o&&(Te(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===Z?(Te(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Te(e,!1),0===e.strm.avail_out)?1:2},Le=(e,t)=>{let a,o,n;for(;;){if(e.lookahead<$e){if(Ne(e),e.lookahead<$e&&t===J)return 1;if(0===e.lookahead)break}if(a=0,e.lookahead>=3&&(e.ins_h=Se(e,e.ins_h,e.window[e.strstart+3-1]),a=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==a&&e.prev_length4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-3,o=V(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=n&&(e.ins_h=Se(e,e.ins_h,e.window[e.strstart+3-1]),a=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,o&&(Te(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(o=V(e,0,e.window[e.strstart-1]),o&&Te(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(o=V(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===Z?(Te(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Te(e,!1),0===e.strm.avail_out)?1:2};function Fe(e,t,a,o,n){this.good_length=e,this.max_lazy=t,this.nice_length=a,this.max_chain=o,this.func=n}const Ke=[new Fe(0,0,0,0,Pe),new Fe(4,4,8,4,Be),new Fe(4,5,16,8,Be),new Fe(4,6,32,32,Be),new Fe(4,4,16,16,Le),new Fe(8,16,32,32,Le),new Fe(8,16,128,128,Le),new Fe(8,32,128,256,Le),new Fe(32,128,258,1024,Le),new Fe(32,258,258,4096,Le)];function Ge(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ue,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(2*be),this.dyn_dtree=new Uint16Array(2*(2*he+1)),this.bl_tree=new Uint16Array(2*(2*ge+1)),Ae(this.dyn_ltree),Ae(this.dyn_dtree),Ae(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(fe+1),this.heap=new Uint16Array(2*pe+1),Ae(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*pe+1),Ae(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const je=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==we&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==ke&&t.status!==ve?1:0},qe=e=>{if(je(e))return xe(e,ae);e.total_in=e.total_out=0,e.data_type=me;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?we:ke,e.adler=2===t.wrap?0:1,t.last_flush=-2,z(t),ee},We=e=>{const t=qe(e);var a;return t===ee&&((a=e.state).window_size=2*a.w_size,Ae(a.head),a.max_lazy_match=Ke[a.level].max_lazy,a.good_match=Ke[a.level].good_length,a.nice_match=Ke[a.level].nice_length,a.max_chain_length=Ke[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),t},ze=(e,t,a,o,n,s)=>{if(!e)return ae;let r=1;if(t===se&&(t=6),o<0?(r=0,o=-o):o>15&&(r=2,o-=16),n<1||n>9||a!==ue||o<8||o>15||t<0||t>9||s<0||s>de||8===o&&1!==r)return xe(e,ae);8===o&&(o=9);const i=new Ge;return e.state=i,i.strm=e,i.status=we,i.wrap=r,i.gzhead=null,i.w_bits=o,i.w_size=1<ze(e,t,ue,15,8,le),deflateInit2:ze,deflateReset:We,deflateResetKeep:qe,deflateSetHeader:(e,t)=>je(e)||2!==e.state.wrap?ae:(e.state.gzhead=t,ee),deflate:(e,t)=>{if(je(e)||t>Q||t<0)return e?xe(e,ae):ae;const a=e.state;if(!e.output||0!==e.avail_in&&!e.input||a.status===ve&&t!==Z)return xe(e,0===e.avail_out?ne:ae);const o=a.last_flush;if(a.last_flush=t,0!==a.pending){if(Ee(e),0===e.avail_out)return a.last_flush=-1,ee}else if(0===e.avail_in&&Re(t)<=Re(o)&&t!==Z)return xe(e,ne);if(a.status===ve&&0!==e.avail_in)return xe(e,ne);if(a.status===we&&0===a.wrap&&(a.status=ke),a.status===we){let t=ue+(a.w_bits-8<<4)<<8,o=-1;if(o=a.strategy>=ie||a.level<2?0:a.level<6?1:6===a.level?2:3,t|=o<<6,0!==a.strstart&&(t|=32),t+=31-t%31,Ue(a,t),0!==a.strstart&&(Ue(a,e.adler>>>16),Ue(a,65535&e.adler)),e.adler=1,a.status=ke,Ee(e),0!==a.pending)return a.last_flush=-1,ee}if(57===a.status)if(e.adler=0,Ce(a,31),Ce(a,139),Ce(a,8),a.gzhead)Ce(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),Ce(a,255&a.gzhead.time),Ce(a,a.gzhead.time>>8&255),Ce(a,a.gzhead.time>>16&255),Ce(a,a.gzhead.time>>24&255),Ce(a,9===a.level?2:a.strategy>=ie||a.level<2?4:0),Ce(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(Ce(a,255&a.gzhead.extra.length),Ce(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=j(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(Ce(a,0),Ce(a,0),Ce(a,0),Ce(a,0),Ce(a,0),Ce(a,9===a.level?2:a.strategy>=ie||a.level<2?4:0),Ce(a,3),a.status=ke,Ee(e),0!==a.pending)return a.last_flush=-1,ee;if(69===a.status){if(a.gzhead.extra){let t=a.pending,o=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+o>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>t&&(e.adler=j(e.adler,a.pending_buf,a.pending-t,t)),a.gzindex+=n,Ee(e),0!==a.pending)return a.last_flush=-1,ee;t=0,o-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+o),a.pending),a.pending+=o,a.gzhead.hcrc&&a.pending>t&&(e.adler=j(e.adler,a.pending_buf,a.pending-t,t)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let t,o=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>o&&(e.adler=j(e.adler,a.pending_buf,a.pending-o,o)),Ee(e),0!==a.pending)return a.last_flush=-1,ee;o=0}t=a.gzindexo&&(e.adler=j(e.adler,a.pending_buf,a.pending-o,o)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let t,o=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>o&&(e.adler=j(e.adler,a.pending_buf,a.pending-o,o)),Ee(e),0!==a.pending)return a.last_flush=-1,ee;o=0}t=a.gzindexo&&(e.adler=j(e.adler,a.pending_buf,a.pending-o,o))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(Ee(e),0!==a.pending))return a.last_flush=-1,ee;Ce(a,255&e.adler),Ce(a,e.adler>>8&255),e.adler=0}if(a.status=ke,Ee(e),0!==a.pending)return a.last_flush=-1,ee}if(0!==e.avail_in||0!==a.lookahead||t!==J&&a.status!==ve){let o=0===a.level?Pe(a,t):a.strategy===ie?((e,t)=>{let a;for(;;){if(0===e.lookahead&&(Ne(e),0===e.lookahead)){if(t===J)return 1;break}if(e.match_length=0,a=V(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,a&&(Te(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Z?(Te(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Te(e,!1),0===e.strm.avail_out)?1:2})(a,t):a.strategy===ce?((e,t)=>{let a,o,n,s;const r=e.window;for(;;){if(e.lookahead<=ye){if(Ne(e),e.lookahead<=ye&&t===J)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=e.strstart-1,o=r[n],o===r[++n]&&o===r[++n]&&o===r[++n])){s=e.strstart+ye;do{}while(o===r[++n]&&o===r[++n]&&o===r[++n]&&o===r[++n]&&o===r[++n]&&o===r[++n]&&o===r[++n]&&o===r[++n]&&ne.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(a=V(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(a=V(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),a&&(Te(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Z?(Te(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Te(e,!1),0===e.strm.avail_out)?1:2})(a,t):Ke[a.level].func(a,t);if(3!==o&&4!==o||(a.status=ve),1===o||3===o)return 0===e.avail_out&&(a.last_flush=-1),ee;if(2===o&&(t===X?Y(a):t!==Q&&(H(a,0,0,!1),t===O&&(Ae(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),Ee(e),0===e.avail_out))return a.last_flush=-1,ee}return t!==Z?ee:a.wrap<=0?te:(2===a.wrap?(Ce(a,255&e.adler),Ce(a,e.adler>>8&255),Ce(a,e.adler>>16&255),Ce(a,e.adler>>24&255),Ce(a,255&e.total_in),Ce(a,e.total_in>>8&255),Ce(a,e.total_in>>16&255),Ce(a,e.total_in>>24&255)):(Ue(a,e.adler>>>16),Ue(a,65535&e.adler)),Ee(e),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?ee:te)},deflateEnd:e=>{if(je(e))return ae;const t=e.state.status;return e.state=null,t===ke?xe(e,oe):ee},deflateSetDictionary:(e,t)=>{let a=t.length;if(je(e))return ae;const o=e.state,n=o.wrap;if(2===n||1===n&&o.status!==we||o.lookahead)return ae;if(1===n&&(e.adler=K(e.adler,t,a,0)),o.wrap=0,a>=o.w_size){0===n&&(Ae(o.head),o.strstart=0,o.block_start=0,o.insert=0);let e=new Uint8Array(o.w_size);e.set(t.subarray(a-o.w_size,a),0),t=e,a=o.w_size}const s=e.avail_in,r=e.next_in,i=e.input;for(e.avail_in=a,e.next_in=0,e.input=t,Ne(o);o.lookahead>=3;){let e=o.strstart,t=o.lookahead-2;do{o.ins_h=Se(o,o.ins_h,o.window[e+3-1]),o.prev[e&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=e,e++}while(--t);o.strstart=e,o.lookahead=2,Ne(o)}return o.strstart+=o.lookahead,o.block_start=o.strstart,o.insert=o.lookahead,o.lookahead=0,o.match_length=o.prev_length=2,o.match_available=0,e.next_in=r,e.input=i,e.avail_in=s,o.wrap=n,ee},deflateInfo:"pako deflate (from Nodeca project)"};const _e=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Ve={assign:function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const a=t.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const t in a)_e(a,t)&&(e[t]=a[t])}}return e},flattenChunks:e=>{let t=0;for(let a=0,o=e.length;a=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Je[254]=Je[254]=1;var Xe={string2buf:e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,a,o,n,s,r=e.length,i=0;for(n=0;n>>6,t[s++]=128|63&a):a<65536?(t[s++]=224|a>>>12,t[s++]=128|a>>>6&63,t[s++]=128|63&a):(t[s++]=240|a>>>18,t[s++]=128|a>>>12&63,t[s++]=128|a>>>6&63,t[s++]=128|63&a);return t},buf2string:(e,t)=>{const a=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let o,n;const s=new Array(2*a);for(n=0,o=0;o4)s[n++]=65533,o+=r-1;else{for(t&=2===r?31:3===r?15:7;r>1&&o1?s[n++]=65533:t<65536?s[n++]=t:(t-=65536,s[n++]=55296|t>>10&1023,s[n++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&Ye)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let a="";for(let o=0;o{(t=t||e.length)>e.length&&(t=e.length);let a=t-1;for(;a>=0&&128==(192&e[a]);)a--;return a<0||0===a?t:a+Je[e[a]]>t?a:t}};var Oe=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ze=Object.prototype.toString,{Z_NO_FLUSH:Qe,Z_SYNC_FLUSH:et,Z_FULL_FLUSH:tt,Z_FINISH:at,Z_OK:ot,Z_STREAM_END:nt,Z_DEFAULT_COMPRESSION:st,Z_DEFAULT_STRATEGY:rt,Z_DEFLATED:it}=W;function ct(e){this.options=Ve.assign({level:st,method:it,chunkSize:16384,windowBits:15,memLevel:8,strategy:rt},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Oe,this.strm.avail_out=0;let a=He.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(a!==ot)throw new Error(q[a]);if(t.header&&He.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?Xe.string2buf(t.dictionary):"[object ArrayBuffer]"===Ze.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,a=He.deflateSetDictionary(this.strm,e),a!==ot)throw new Error(q[a]);this._dict_set=!0}}function dt(e,t){const a=new ct(t);if(a.push(e,!0),a.err)throw a.msg||q[a.err];return a.result}ct.prototype.push=function(e,t){const a=this.strm,o=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=t===~~t?t:!0===t?at:Qe,"string"==typeof e?a.input=Xe.string2buf(e):"[object ArrayBuffer]"===Ze.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(o),a.next_out=0,a.avail_out=o),(s===et||s===tt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=He.deflate(a,s),n===nt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=He.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===ot;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},ct.prototype.onData=function(e){this.chunks.push(e)},ct.prototype.onEnd=function(e){e===ot&&(this.result=Ve.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var lt={Deflate:ct,deflate:dt,deflateRaw:function(e,t){return(t=t||{}).raw=!0,dt(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,dt(e,t)},constants:W};const mt=16209;var ut=function(e,t){let a,o,n,s,r,i,c,d,l,m,u,p,h,g,b,f,y,$,w,k,v,x,R,A;const I=e.state;a=e.next_in,R=e.input,o=a+(e.avail_in-5),n=e.next_out,A=e.output,s=n-(t-e.avail_out),r=n+(e.avail_out-257),i=I.dmax,c=I.wsize,d=I.whave,l=I.wnext,m=I.window,u=I.hold,p=I.bits,h=I.lencode,g=I.distcode,b=(1<>>24,u>>>=$,p-=$,$=y>>>16&255,0===$)A[n++]=65535&y;else{if(!(16&$)){if(0==(64&$)){y=h[(65535&y)+(u&(1<<$)-1)];continue t}if(32&$){I.mode=16191;break e}e.msg="invalid literal/length code",I.mode=mt;break e}w=65535&y,$&=15,$&&(p<$&&(u+=R[a++]<>>=$,p-=$),p<15&&(u+=R[a++]<>>24,u>>>=$,p-=$,$=y>>>16&255,!(16&$)){if(0==(64&$)){y=g[(65535&y)+(u&(1<<$)-1)];continue a}e.msg="invalid distance code",I.mode=mt;break e}if(k=65535&y,$&=15,p<$&&(u+=R[a++]<i){e.msg="invalid distance too far back",I.mode=mt;break e}if(u>>>=$,p-=$,$=n-s,k>$){if($=k-$,$>d&&I.sane){e.msg="invalid distance too far back",I.mode=mt;break e}if(v=0,x=m,0===l){if(v+=c-$,$2;)A[n++]=x[v++],A[n++]=x[v++],A[n++]=x[v++],w-=3;w&&(A[n++]=x[v++],w>1&&(A[n++]=x[v++]))}else{v=n-k;do{A[n++]=A[v++],A[n++]=A[v++],A[n++]=A[v++],w-=3}while(w>2);w&&(A[n++]=A[v++],w>1&&(A[n++]=A[v++]))}break}}break}}while(a>3,a-=w,p-=w<<3,u&=(1<{const c=i.bits;let d,l,m,u,p,h,g=0,b=0,f=0,y=0,$=0,w=0,k=0,v=0,x=0,R=0,A=null;const I=new Uint16Array(16),S=new Uint16Array(16);let E,T,C,U=null;for(g=0;g<=pt;g++)I[g]=0;for(b=0;b=1&&0===I[y];y--);if($>y&&($=y),0===y)return n[s++]=20971520,n[s++]=20971520,i.bits=1,0;for(f=1;f0&&(0===e||1!==y))return-1;for(S[1]=0,g=1;g852||2===e&&x>592)return 1;for(;;){E=g-k,r[b]+1=h?(T=U[r[b]-h],C=A[r[b]-h]):(T=96,C=0),d=1<>k)+l]=E<<24|T<<16|C|0}while(0!==l);for(d=1<>=1;if(0!==d?(R&=d-1,R+=d):R=0,b++,0==--I[g]){if(g===y)break;g=t[a+r[b]]}if(g>$&&(R&u)!==m){for(0===k&&(k=$),p+=f,w=g-k,v=1<852||2===e&&x>592)return 1;m=R&u,n[m]=$<<24|w<<16|p-s|0}}return 0!==R&&(n[p+R]=g-k<<24|4194304),i.bits=$,0};const{Z_FINISH:$t,Z_BLOCK:wt,Z_TREES:kt,Z_OK:vt,Z_STREAM_END:xt,Z_NEED_DICT:Rt,Z_STREAM_ERROR:At,Z_DATA_ERROR:It,Z_MEM_ERROR:St,Z_BUF_ERROR:Et,Z_DEFLATED:Tt}=W,Ct=16180,Ut=16190,Mt=16191,Dt=16192,Nt=16194,Pt=16199,Bt=16200,Lt=16206,Ft=16209,Kt=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function Gt(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const jt=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode16211?1:0},qt=e=>{if(jt(e))return At;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Ct,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,vt},Wt=e=>{if(jt(e))return At;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,qt(e)},zt=(e,t)=>{let a;if(jt(e))return At;const o=e.state;return t<0?(a=0,t=-t):(a=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?At:(null!==o.window&&o.wbits!==t&&(o.window=null),o.wrap=a,o.wbits=t,Wt(e))},Ht=(e,t)=>{if(!e)return At;const a=new Gt;e.state=a,a.strm=e,a.window=null,a.mode=Ct;const o=zt(e,t);return o!==vt&&(e.state=null),o};let _t,Vt,Yt=!0;const Jt=e=>{if(Yt){_t=new Int32Array(512),Vt=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(yt(1,e.lens,0,288,_t,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;yt(2,e.lens,0,32,Vt,0,e.work,{bits:5}),Yt=!1}e.lencode=_t,e.lenbits=9,e.distcode=Vt,e.distbits=5},Xt=(e,t,a,o)=>{let n;const s=e.state;return null===s.window&&(s.wsize=1<=s.wsize?(s.window.set(t.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>o&&(n=o),s.window.set(t.subarray(a-o,a-o+n),s.wnext),(o-=n)?(s.window.set(t.subarray(a-o,a),0),s.wnext=o,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whaveHt(e,15),inflateInit2:Ht,inflate:(e,t)=>{let a,o,n,s,r,i,c,d,l,m,u,p,h,g,b,f,y,$,w,k,v,x,R=0;const A=new Uint8Array(4);let I,S;const E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(jt(e)||!e.output||!e.input&&0!==e.avail_in)return At;a=e.state,a.mode===Mt&&(a.mode=Dt),r=e.next_out,n=e.output,c=e.avail_out,s=e.next_in,o=e.input,i=e.avail_in,d=a.hold,l=a.bits,m=i,u=c,x=vt;e:for(;;)switch(a.mode){case Ct:if(0===a.wrap){a.mode=Dt;break}for(;l<16;){if(0===i)break e;i--,d+=o[s++]<>>8&255,a.check=j(a.check,A,2,0),d=0,l=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&d)<<8)+(d>>8))%31){e.msg="incorrect header check",a.mode=Ft;break}if((15&d)!==Tt){e.msg="unknown compression method",a.mode=Ft;break}if(d>>>=4,l-=4,v=8+(15&d),0===a.wbits&&(a.wbits=v),v>15||v>a.wbits){e.msg="invalid window size",a.mode=Ft;break}a.dmax=1<>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&d,A[1]=d>>>8&255,a.check=j(a.check,A,2,0)),d=0,l=0,a.mode=16182;case 16182:for(;l<32;){if(0===i)break e;i--,d+=o[s++]<>>8&255,A[2]=d>>>16&255,A[3]=d>>>24&255,a.check=j(a.check,A,4,0)),d=0,l=0,a.mode=16183;case 16183:for(;l<16;){if(0===i)break e;i--,d+=o[s++]<>8),512&a.flags&&4&a.wrap&&(A[0]=255&d,A[1]=d>>>8&255,a.check=j(a.check,A,2,0)),d=0,l=0,a.mode=16184;case 16184:if(1024&a.flags){for(;l<16;){if(0===i)break e;i--,d+=o[s++]<>>8&255,a.check=j(a.check,A,2,0)),d=0,l=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(p=a.length,p>i&&(p=i),p&&(a.head&&(v=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(o.subarray(s,s+p),v)),512&a.flags&&4&a.wrap&&(a.check=j(a.check,o,p,s)),i-=p,s+=p,a.length-=p),a.length))break e;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===i)break e;p=0;do{v=o[s+p++],a.head&&v&&a.length<65536&&(a.head.name+=String.fromCharCode(v))}while(v&&p>9&1,a.head.done=!0),e.adler=a.check=0,a.mode=Mt;break;case 16189:for(;l<32;){if(0===i)break e;i--,d+=o[s++]<>>=7&l,l-=7&l,a.mode=Lt;break}for(;l<3;){if(0===i)break e;i--,d+=o[s++]<>>=1,l-=1,3&d){case 0:a.mode=16193;break;case 1:if(Jt(a),a.mode=Pt,t===kt){d>>>=2,l-=2;break e}break;case 2:a.mode=16196;break;case 3:e.msg="invalid block type",a.mode=Ft}d>>>=2,l-=2;break;case 16193:for(d>>>=7&l,l-=7&l;l<32;){if(0===i)break e;i--,d+=o[s++]<>>16^65535)){e.msg="invalid stored block lengths",a.mode=Ft;break}if(a.length=65535&d,d=0,l=0,a.mode=Nt,t===kt)break e;case Nt:a.mode=16195;case 16195:if(p=a.length,p){if(p>i&&(p=i),p>c&&(p=c),0===p)break e;n.set(o.subarray(s,s+p),r),i-=p,s+=p,c-=p,r+=p,a.length-=p;break}a.mode=Mt;break;case 16196:for(;l<14;){if(0===i)break e;i--,d+=o[s++]<>>=5,l-=5,a.ndist=1+(31&d),d>>>=5,l-=5,a.ncode=4+(15&d),d>>>=4,l-=4,a.nlen>286||a.ndist>30){e.msg="too many length or distance symbols",a.mode=Ft;break}a.have=0,a.mode=16197;case 16197:for(;a.have>>=3,l-=3}for(;a.have<19;)a.lens[E[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,I={bits:a.lenbits},x=yt(0,a.lens,0,19,a.lencode,0,a.work,I),a.lenbits=I.bits,x){e.msg="invalid code lengths set",a.mode=Ft;break}a.have=0,a.mode=16198;case 16198:for(;a.have>>24,f=R>>>16&255,y=65535&R,!(b<=l);){if(0===i)break e;i--,d+=o[s++]<>>=b,l-=b,a.lens[a.have++]=y;else{if(16===y){for(S=b+2;l>>=b,l-=b,0===a.have){e.msg="invalid bit length repeat",a.mode=Ft;break}v=a.lens[a.have-1],p=3+(3&d),d>>>=2,l-=2}else if(17===y){for(S=b+3;l>>=b,l-=b,v=0,p=3+(7&d),d>>>=3,l-=3}else{for(S=b+7;l>>=b,l-=b,v=0,p=11+(127&d),d>>>=7,l-=7}if(a.have+p>a.nlen+a.ndist){e.msg="invalid bit length repeat",a.mode=Ft;break}for(;p--;)a.lens[a.have++]=v}}if(a.mode===Ft)break;if(0===a.lens[256]){e.msg="invalid code -- missing end-of-block",a.mode=Ft;break}if(a.lenbits=9,I={bits:a.lenbits},x=yt(1,a.lens,0,a.nlen,a.lencode,0,a.work,I),a.lenbits=I.bits,x){e.msg="invalid literal/lengths set",a.mode=Ft;break}if(a.distbits=6,a.distcode=a.distdyn,I={bits:a.distbits},x=yt(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,I),a.distbits=I.bits,x){e.msg="invalid distances set",a.mode=Ft;break}if(a.mode=Pt,t===kt)break e;case Pt:a.mode=Bt;case Bt:if(i>=6&&c>=258){e.next_out=r,e.avail_out=c,e.next_in=s,e.avail_in=i,a.hold=d,a.bits=l,ut(e,u),r=e.next_out,n=e.output,c=e.avail_out,s=e.next_in,o=e.input,i=e.avail_in,d=a.hold,l=a.bits,a.mode===Mt&&(a.back=-1);break}for(a.back=0;R=a.lencode[d&(1<>>24,f=R>>>16&255,y=65535&R,!(b<=l);){if(0===i)break e;i--,d+=o[s++]<>$)],b=R>>>24,f=R>>>16&255,y=65535&R,!($+b<=l);){if(0===i)break e;i--,d+=o[s++]<>>=$,l-=$,a.back+=$}if(d>>>=b,l-=b,a.back+=b,a.length=y,0===f){a.mode=16205;break}if(32&f){a.back=-1,a.mode=Mt;break}if(64&f){e.msg="invalid literal/length code",a.mode=Ft;break}a.extra=15&f,a.mode=16201;case 16201:if(a.extra){for(S=a.extra;l>>=a.extra,l-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;R=a.distcode[d&(1<>>24,f=R>>>16&255,y=65535&R,!(b<=l);){if(0===i)break e;i--,d+=o[s++]<>$)],b=R>>>24,f=R>>>16&255,y=65535&R,!($+b<=l);){if(0===i)break e;i--,d+=o[s++]<>>=$,l-=$,a.back+=$}if(d>>>=b,l-=b,a.back+=b,64&f){e.msg="invalid distance code",a.mode=Ft;break}a.offset=y,a.extra=15&f,a.mode=16203;case 16203:if(a.extra){for(S=a.extra;l>>=a.extra,l-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){e.msg="invalid distance too far back",a.mode=Ft;break}a.mode=16204;case 16204:if(0===c)break e;if(p=u-c,a.offset>p){if(p=a.offset-p,p>a.whave&&a.sane){e.msg="invalid distance too far back",a.mode=Ft;break}p>a.wnext?(p-=a.wnext,h=a.wsize-p):h=a.wnext-p,p>a.length&&(p=a.length),g=a.window}else g=n,h=r-a.offset,p=a.length;p>c&&(p=c),c-=p,a.length-=p;do{n[r++]=g[h++]}while(--p);0===a.length&&(a.mode=Bt);break;case 16205:if(0===c)break e;n[r++]=a.length,c--,a.mode=Bt;break;case Lt:if(a.wrap){for(;l<32;){if(0===i)break e;i--,d|=o[s++]<{if(jt(e))return At;let t=e.state;return t.window&&(t.window=null),e.state=null,vt},inflateGetHeader:(e,t)=>{if(jt(e))return At;const a=e.state;return 0==(2&a.wrap)?At:(a.head=t,t.done=!1,vt)},inflateSetDictionary:(e,t)=>{const a=t.length;let o,n,s;return jt(e)?At:(o=e.state,0!==o.wrap&&o.mode!==Ut?At:o.mode===Ut&&(n=1,n=K(n,t,a,0),n!==o.check)?It:(s=Xt(e,t,a,a),s?(o.mode=16210,St):(o.havedict=1,vt)))},inflateInfo:"pako inflate (from Nodeca project)"};var Zt=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const Qt=Object.prototype.toString,{Z_NO_FLUSH:ea,Z_FINISH:ta,Z_OK:aa,Z_STREAM_END:oa,Z_NEED_DICT:na,Z_STREAM_ERROR:sa,Z_DATA_ERROR:ra,Z_MEM_ERROR:ia}=W;function ca(e){this.options=Ve.assign({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Oe,this.strm.avail_out=0;let a=Ot.inflateInit2(this.strm,t.windowBits);if(a!==aa)throw new Error(q[a]);if(this.header=new Zt,Ot.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Xe.string2buf(t.dictionary):"[object ArrayBuffer]"===Qt.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(a=Ot.inflateSetDictionary(this.strm,t.dictionary),a!==aa)))throw new Error(q[a])}function da(e,t){const a=new ca(t);if(a.push(e),a.err)throw a.msg||q[a.err];return a.result}ca.prototype.push=function(e,t){const a=this.strm,o=this.options.chunkSize,n=this.options.dictionary;let s,r,i;if(this.ended)return!1;for(r=t===~~t?t:!0===t?ta:ea,"[object ArrayBuffer]"===Qt.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(o),a.next_out=0,a.avail_out=o),s=Ot.inflate(a,r),s===na&&n&&(s=Ot.inflateSetDictionary(a,n),s===aa?s=Ot.inflate(a,r):s===ra&&(s=na));a.avail_in>0&&s===oa&&a.state.wrap>0&&0!==e[a.next_in];)Ot.inflateReset(a),s=Ot.inflate(a,r);switch(s){case sa:case ra:case na:case ia:return this.onEnd(s),this.ended=!0,!1}if(i=a.avail_out,a.next_out&&(0===a.avail_out||s===oa))if("string"===this.options.to){let e=Xe.utf8border(a.output,a.next_out),t=a.next_out-e,n=Xe.buf2string(a.output,e);a.next_out=t,a.avail_out=o-t,t&&a.output.set(a.output.subarray(e,e+t),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==aa||0!==i){if(s===oa)return s=Ot.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},ca.prototype.onData=function(e){this.chunks.push(e)},ca.prototype.onEnd=function(e){e===aa&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ve.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var la={Inflate:ca,inflate:da,inflateRaw:function(e,t){return(t=t||{}).raw=!0,da(e,t)},ungzip:da,constants:W};const{Deflate:ma,deflate:ua,deflateRaw:pa,gzip:ha}=lt,{Inflate:ga,inflate:ba,inflateRaw:fa,ungzip:ya}=la;var $a=ba})),parcelRequire.register("crIim",(function(e,t){var a=parcelRequire("aVc1D");function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var n,s,r=parcelRequire("3O54V").codes,i=r.ERR_AMBIGUOUS_ARGUMENT,c=r.ERR_INVALID_ARG_TYPE,d=r.ERR_INVALID_ARG_VALUE,l=r.ERR_INVALID_RETURN_VALUE,m=r.ERR_MISSING_ARGS,u=parcelRequire("bKJCG"),p=parcelRequire("kkQpJ").inspect,h=parcelRequire("kkQpJ").types,g=h.isPromise,b=h.isRegExp,f=Object.assign?Object.assign:parcelRequire("eAfr2").assign,y=Object.is?Object.is:parcelRequire("7Xv5K");new Map;function $(){var e=parcelRequire("hN2dQ");n=e.isDeepEqual,s=e.isDeepStrictEqual}var w=!1,k=e.exports=A,v={};function x(e){if(e.message instanceof Error)throw e.message;throw new u(e)}function R(e,t,a,o){if(!a){var n=!1;if(0===t)n=!0,o="No value argument passed to `assert.ok()`";else if(o instanceof Error)throw o;var s=new u({actual:a,expected:!0,message:o,operator:"==",stackStartFn:e});throw s.generatedMessage=n,s}}function A(){for(var e=arguments.length,t=new Array(e),a=0;a1?a-1:0),n=1;n1?a-1:0),n=1;n1?a-1:0),n=1;n1?a-1:0),n=1;na),(e=>a=e));var i,c,d={};function l(e,t,a){a||(a=Error);var o=function(a){function o(a,r,i){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),c=n(this,s(o).call(this,function(e,a,o){return"string"==typeof t?t:t(e,a,o)}(a,r,i))),c.code=e,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(o,a),o}(a);d[e]=o}function m(e,t){if(Array.isArray(e)){var a=e.length;return e=e.map((function(e){return String(e)})),a>2?"one of ".concat(t," ").concat(e.slice(0,a-1).join(", "),", or ")+e[a-1]:2===a?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(e,t,a){var n,s,r,c;if(void 0===i&&(i=parcelRequire("crIim")),i("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(!r||r<0?0:+r,s.length)===s)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,a){return(void 0===a||a>e.length)&&(a=e.length),e.substring(a-t.length,a)===t}(e," argument"))c="The ".concat(e," ").concat(n," ").concat(m(t,"type"));else{var d=function(e,t,a){return"number"!=typeof a&&(a=0),!(a+t.length>e.length)&&-1!==e.indexOf(t,a)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(d," ").concat(n," ").concat(m(t,"type"))}return c+=". Received type ".concat(o(a))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=parcelRequire("kkQpJ"));var o=c.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(a,". Received ").concat(o)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(e,t,a){var n;return n=a&&a.constructor&&a.constructor.name?"instance of ".concat(a.constructor.name):"type ".concat(o(a)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),a=0;a0,"At least one arg needs to be specified");var o="The ",n=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),n){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,n-1).join(", "),o+=", and ".concat(t[n-1]," arguments")}return"".concat(o," must be specified")}),TypeError),a=d})),parcelRequire.register("kkQpJ",(function(e,t){var a=parcelRequire("aVc1D"),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),a={},o=0;o=s)return e;switch(e){case"%s":return String(o[a++]);case"%d":return Number(o[a++]);case"%j":try{return JSON.stringify(o[a++])}catch(e){return"[Circular]"}default:return e}})),c=o[a];a=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),h(a)?o.showHidden=a:a&&e.exports._extend(o,a),y(o.showHidden)&&(o.showHidden=!1),y(o.depth)&&(o.depth=2),y(o.colors)&&(o.colors=!1),y(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=c),l(o,t,o.depth)}function c(e,t){var a=i.styles[t];return a?"["+i.colors[a][0]+"m"+e+"["+i.colors[a][1]+"m":e}function d(e,t){return e}function l(t,a,o){if(t.customInspect&&a&&x(a.inspect)&&a.inspect!==e.exports.inspect&&(!a.constructor||a.constructor.prototype!==a)){var n=a.inspect(o,t);return f(n)||(n=l(t,n,o)),n}var s=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(f(t)){var a="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(a,"string")}if(b(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(t,a);if(s)return s;var r=Object.keys(a),i=function(e){var t={};return e.forEach((function(e,a){t[e]=!0})),t}(r);if(t.showHidden&&(r=Object.getOwnPropertyNames(a)),v(a)&&(r.indexOf("message")>=0||r.indexOf("description")>=0))return m(a);if(0===r.length){if(x(a)){var c=a.name?": "+a.name:"";return t.stylize("[Function"+c+"]","special")}if($(a))return t.stylize(RegExp.prototype.toString.call(a),"regexp");if(k(a))return t.stylize(Date.prototype.toString.call(a),"date");if(v(a))return m(a)}var d,w="",R=!1,A=["{","}"];(p(a)&&(R=!0,A=["[","]"]),x(a))&&(w=" [Function"+(a.name?": "+a.name:"")+"]");return $(a)&&(w=" "+RegExp.prototype.toString.call(a)),k(a)&&(w=" "+Date.prototype.toUTCString.call(a)),v(a)&&(w=" "+m(a)),0!==r.length||R&&0!=a.length?o<0?$(a)?t.stylize(RegExp.prototype.toString.call(a),"regexp"):t.stylize("[Object]","special"):(t.seen.push(a),d=R?function(e,t,a,o,n){for(var s=[],r=0,i=t.length;r=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return o>60?a[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+a[1]:a[0]+t+" "+e.join(", ")+" "+a[1]}(d,w,A)):A[0]+w+A[1]}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function u(e,t,a,o,n,s){var r,i,c;if((c=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?i=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(i=e.stylize("[Setter]","special")),S(o,n)||(r="["+n+"]"),i||(e.seen.indexOf(c.value)<0?(i=g(a)?l(e,c.value,null):l(e,c.value,a-1)).indexOf("\n")>-1&&(i=s?i.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+i.split("\n").map((function(e){return" "+e})).join("\n")):i=e.stylize("[Circular]","special")),y(r)){if(s&&n.match(/^\d+$/))return i;(r=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.slice(1,-1),r=e.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=e.stylize(r,"string"))}return r+": "+i}function p(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return"number"==typeof e}function f(e){return"string"==typeof e}function y(e){return void 0===e}function $(e){return w(e)&&"[object RegExp]"===R(e)}function w(e){return"object"==typeof e&&null!==e}function k(e){return w(e)&&"[object Date]"===R(e)}function v(e){return w(e)&&("[object Error]"===R(e)||e instanceof Error)}function x(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}e.exports.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(r.test(t)){var o=a.pid;s[t]=function(){var a=e.exports.format.apply(e.exports,arguments);console.error("%s %d: %s",t,o,a)}}else s[t]=function(){};return s[t]},e.exports.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.exports.types=parcelRequire("jG7uK"),e.exports.isArray=p,e.exports.isBoolean=h,e.exports.isNull=g,e.exports.isNullOrUndefined=function(e){return null==e},e.exports.isNumber=b,e.exports.isString=f,e.exports.isSymbol=function(e){return"symbol"==typeof e},e.exports.isUndefined=y,e.exports.isRegExp=$,e.exports.types.isRegExp=$,e.exports.isObject=w,e.exports.isDate=k,e.exports.types.isDate=k,e.exports.isError=v,e.exports.types.isNativeError=v,e.exports.isFunction=x,e.exports.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},e.exports.isBuffer=parcelRequire("al7sB");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports.log=function(){var t,a;console.log("%s - %s",(t=new Date,a=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":"),[t.getDate(),I[t.getMonth()],a].join(" ")),e.exports.format.apply(e.exports,arguments))},e.exports.inherits=parcelRequire("943Ft"),e.exports._extend=function(e,t){if(!t||!w(t))return e;for(var a=Object.keys(t),o=a.length;o--;)e[a[o]]=t[a[o]];return e};var E="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var a=new Error("Promise was rejected with a falsy value");a.reason=e,e=a}return t(e)}e.exports.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(E&&e[E]){var t;if("function"!=typeof(t=e[E]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,E,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,a,o=new Promise((function(e,o){t=e,a=o})),n=[],s=0;s=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},r=function(){return n(arguments)}();n.isLegacyArguments=s,e.exports=r?n:s})),parcelRequire.register("hS9L7",(function(e,t){"use strict";var a=parcelRequire("8cPb1");e.exports=function(){return a()&&!!Symbol.toStringTag}})),parcelRequire.register("8cPb1",(function(e,t){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),a=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(a))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}})),parcelRequire.register("kojwJ",(function(e,t){"use strict";var a=parcelRequire("2Fj5T"),o=parcelRequire("IMYJV"),n=o(a("String.prototype.indexOf"));e.exports=function(e,t){var s=a(e,!!t);return"function"==typeof s&&n(e,".prototype.")>-1?o(s):s}})),parcelRequire.register("2Fj5T",(function(e,t){"use strict";var a,o=SyntaxError,n=Function,s=TypeError,r=function(e){try{return n('"use strict"; return ('+e+").constructor;")()}catch(e){}},i=Object.getOwnPropertyDescriptor;if(i)try{i({},"")}catch(e){i=null}var c=function(){throw new s},d=i?function(){try{return c}catch(e){try{return i(arguments,"callee").get}catch(e){return c}}}():c,l=parcelRequire("lE20E")(),m=Object.getPrototypeOf||function(e){return e.__proto__},u={},p="undefined"==typeof Uint8Array?a:m(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?a:ArrayBuffer,"%ArrayIteratorPrototype%":l?m([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":u,"%AsyncGenerator%":u,"%AsyncGeneratorFunction%":u,"%AsyncIteratorPrototype%":u,"%Atomics%":"undefined"==typeof Atomics?a:Atomics,"%BigInt%":"undefined"==typeof BigInt?a:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?a:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?a:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?a:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?a:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":u,"%Int8Array%":"undefined"==typeof Int8Array?a:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?a:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?m(m([][Symbol.iterator]())):a,"%JSON%":"object"==typeof JSON?JSON:a,"%Map%":"undefined"==typeof Map?a:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?m((new Map)[Symbol.iterator]()):a,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?a:Promise,"%Proxy%":"undefined"==typeof Proxy?a:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?a:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?a:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?m((new Set)[Symbol.iterator]()):a,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?m(""[Symbol.iterator]()):a,"%Symbol%":l?Symbol:a,"%SyntaxError%":o,"%ThrowTypeError%":d,"%TypedArray%":p,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?a:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?a:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?a:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?a:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?a:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?a:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?a:WeakSet};try{null.error}catch(e){var g=m(m(e));h["%Error.prototype%"]=g}var b=function e(t){var a;if("%AsyncFunction%"===t)a=r("async function () {}");else if("%GeneratorFunction%"===t)a=r("function* () {}");else if("%AsyncGeneratorFunction%"===t)a=r("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(a=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&(a=m(n.prototype))}return h[t]=a,a},f={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=parcelRequire("1HKV3"),$=parcelRequire("cGrdm"),w=y.call(Function.call,Array.prototype.concat),k=y.call(Function.apply,Array.prototype.splice),v=y.call(Function.call,String.prototype.replace),x=y.call(Function.call,String.prototype.slice),R=y.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,S=function(e,t){var a,n=e;if($(f,n)&&(n="%"+(a=f[n])[0]+"%"),$(h,n)){var r=h[n];if(r===u&&(r=b(n)),void 0===r&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:r}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===R(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=function(e){var t=x(e,0,1),a=x(e,-1);if("%"===t&&"%"!==a)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===a&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return v(e,A,(function(e,t,a,o){n[n.length]=a?v(o,I,"$1"):t||e})),n}(e),n=a.length>0?a[0]:"",r=S("%"+n+"%",t),c=r.name,d=r.value,l=!1,m=r.alias;m&&(n=m[0],k(a,w([0,1],m)));for(var u=1,p=!0;u=a.length){var y=i(d,g);d=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:d[g]}else p=$(d,g),d=d[g];p&&!l&&(h[c]=d)}}return d}})),parcelRequire.register("lE20E",(function(e,t){"use strict";var a="undefined"!=typeof Symbol&&Symbol,o=parcelRequire("8cPb1");e.exports=function(){return"function"==typeof a&&("function"==typeof Symbol&&("symbol"==typeof a("foo")&&("symbol"==typeof Symbol("bar")&&o())))}})),parcelRequire.register("1HKV3",(function(e,t){"use strict";var a=parcelRequire("b9Zjn");e.exports=Function.prototype.bind||a})),parcelRequire.register("b9Zjn",(function(e,t){"use strict";var a=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,s=a.call(arguments,1),r=Math.max(0,t.length-s.length),i=[],c=0;c=3&&(r=s),"[object Array]"===o.call(e)?function(e,t,a){for(var o=0,s=e.length;o-1}return!!i&&function(e){var t=!1;return a(u,(function(a,o){if(!t)try{t=a.call(e)===o}catch(e){}})),t}(e)}})),parcelRequire.register("al7sB",(function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}})),parcelRequire.register("bKJCG",(function(e,t){var a=parcelRequire("aVc1D");function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){for(var a=0;ae.length)&&(a=e.length),e.substring(a-t.length,a)===t}var g="",b="",f="",y="",$={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},w=10;function k(e){var t=Object.keys(e),a=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){a[t]=e[t]})),Object.defineProperty(a,"message",{value:e.message}),a}function v(e){return u(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function x(e,t,o){var n="",s="",r=0,i="",c=!1,d=v(e),l=d.split("\n"),u=v(t).split("\n"),p=0,k="";if("strictEqual"===o&&"object"===m(e)&&"object"===m(t)&&null!==e&&null!==t&&(o="strictEqualObject"),1===l.length&&1===u.length&&l[0]!==u[0]){var x=l[0].length+u[0].length;if(x<=w){if(!("object"===m(e)&&null!==e||"object"===m(t)&&null!==t||0===e&&0===t))return"".concat($[o],"\n\n")+"".concat(l[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==o){if(x<(a.stderr&&a.stderr.isTTY?a.stderr.columns:80)){for(;l[0][p]===u[0][p];)p++;p>2&&(k="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var a=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,a-e.length)}(" ",p),"^"),p=0)}}}for(var R=l[l.length-1],A=u[u.length-1];R===A&&(p++<2?i="\n ".concat(R).concat(i):n=R,l.pop(),u.pop(),0!==l.length&&0!==u.length);)R=l[l.length-1],A=u[u.length-1];var I=Math.max(l.length,u.length);if(0===I){var S=d.split("\n");if(S.length>30)for(S[26]="".concat(g,"...").concat(y);S.length>27;)S.pop();return"".concat($.notIdentical,"\n\n").concat(S.join("\n"),"\n")}p>3&&(i="\n".concat(g,"...").concat(y).concat(i),c=!0),""!==n&&(i="\n ".concat(n).concat(i),n="");var E=0,T=$[o]+"\n".concat(b,"+ actual").concat(y," ").concat(f,"- expected").concat(y),C=" ".concat(g,"...").concat(y," Lines skipped");for(p=0;p1&&p>2&&(U>4?(s+="\n".concat(g,"...").concat(y),c=!0):U>3&&(s+="\n ".concat(u[p-2]),E++),s+="\n ".concat(u[p-1]),E++),r=p,n+="\n".concat(f,"-").concat(y," ").concat(u[p]),E++;else if(u.length1&&p>2&&(U>4?(s+="\n".concat(g,"...").concat(y),c=!0):U>3&&(s+="\n ".concat(l[p-2]),E++),s+="\n ".concat(l[p-1]),E++),r=p,s+="\n".concat(b,"+").concat(y," ").concat(l[p]),E++;else{var M=u[p],D=l[p],N=D!==M&&(!h(D,",")||D.slice(0,-1)!==M);N&&h(M,",")&&M.slice(0,-1)===D&&(N=!1,D+=","),N?(U>1&&p>2&&(U>4?(s+="\n".concat(g,"...").concat(y),c=!0):U>3&&(s+="\n ".concat(l[p-2]),E++),s+="\n ".concat(l[p-1]),E++),r=p,s+="\n".concat(b,"+").concat(y," ").concat(D),n+="\n".concat(f,"-").concat(y," ").concat(M),E+=2):(s+=n,n="",1!==U&&0!==p||(s+="\n ".concat(D),E++))}if(E>20&&p30)for(R[26]="".concat(g,"...").concat(y);R.length>27;)R.pop();o=1===R.length?s(this,l(t).call(this,"".concat(w," ").concat(R[0]))):s(this,l(t).call(this,"".concat(w,"\n\n").concat(R.join("\n"),"\n")))}else{var A=v(d),I="",S=$[i];"notDeepEqual"===i||"notEqual"===i?(A="".concat($[i],"\n\n").concat(A)).length>1024&&(A="".concat(A.slice(0,1021),"...")):(I="".concat(v(u)),A.length>512&&(A="".concat(A.slice(0,509),"...")),I.length>512&&(I="".concat(I.slice(0,509),"...")),"deepEqual"===i||"equal"===i?A="".concat(S,"\n\n").concat(A,"\n\nshould equal\n\n"):I=" ".concat(i," ").concat(I)),o=s(this,l(t).call(this,"".concat(A).concat(I)))}return Error.stackTraceLimit=h,o.generatedMessage=!n,Object.defineProperty(r(o),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),o.code="ERR_ASSERTION",o.actual=d,o.expected=u,o.operator=i,Error.captureStackTrace&&Error.captureStackTrace(r(o),c),o.stack,o.name="AssertionError",s(o)}var i,c,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),i=t,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:u.custom,value:function(e,t){return u(this,function(e){for(var t=1;t2?arguments[2]:{},r=a(t);o&&(r=s.call(r,Object.getOwnPropertySymbols(t)));for(var i=0;i=0&&"[object Function]"===a.call(e.callee)),o}})),parcelRequire.register("cVfSZ",(function(e,t){"use strict";var a;if(!Object.keys){var o=Object.prototype.hasOwnProperty,n=Object.prototype.toString,s=parcelRequire("j422w"),r=Object.prototype.propertyIsEnumerable,i=!r.call({toString:null},"toString"),c=r.call((function(){}),"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},m={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!m["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();a=function(e){var t=null!==e&&"object"==typeof e,a="[object Function]"===n.call(e),r=s(e),m=t&&"[object String]"===n.call(e),p=[];if(!t&&!a&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&a;if(m&&e.length>0&&!o.call(e,0))for(var g=0;g0)for(var b=0;b10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function U(e){return Object.keys(e).filter(C).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))} +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */function M(e,t){if(e===t)return 0;for(var a=e.length,o=t.length,n=0,s=Math.min(a,o);n":e[0].description;return{write:function(t,o,r){n.strict.equal(r.length,a,`array length ${r.length} should match len ${a}`),s.u32.write(t,o,a);let i=o+4;for(let o=0;o(${a})[ 4 + ${t} ]`}}function d(e){return{write:function(t,a,o){o.copy(t,a,0,e)},read:function(t,a){return t.slice(a,a+e)},byteSize:e,description:`Buffer(${e})`}}function l(e,t=!1){const o=d(e);return{write:function(r,i,c){n.strict.equal(c.byteLength,e,`Uint8Array length ${c.byteLength} should match len ${e}`),t&&(s.u32.write(r,i,e),i+=4);const d=a.from(c);o.write(r,i,d)},read:function(a,r){if(t){const t=s.u32.read(a,r);n.strict.equal(t,e,"invalid byte size"),r+=4}const i=o.read(a,r);return Uint8Array.from(i)},byteSize:t?e+4:e,description:`Uint8Array(${e})`}}e.exports.uniformFixedSizeArray=function(e,t,a=!1){const o=e.byteSize*t;return{write:function(o,r,i){n.strict.equal(i.length,t,`array length ${i.length} should match len ${t}`),a&&(s.u32.write(o,r,t),r+=4);for(let a=0;a(${t})`}},e.exports.fixedSizeArray=c,e.exports.array=function(e){return{toFixedFromData(t,a){const o=s.u32.read(t,a);(0,r.logTrace)(`${this.description}[${o}]`);const n=a+4;let d=n;const l=new Array(o);for(let a=0;al(e.byteLength,!0),description:"Uint8Array"},e.exports.collectionsTypeMap={Array:{beet:"array",isFixable:!0,sourcePack:o.BEET_PACKAGE,ts:"Array",arg:o.BEET_TYPE_ARG_LEN},FixedSizeArray:{beet:"fixedSizeArray",isFixable:!1,sourcePack:o.BEET_PACKAGE,ts:"Array",arg:o.BEET_TYPE_ARG_LEN},UniformFixedSizeArray:{beet:"uniformFixedSizeArray",isFixable:!1,sourcePack:o.BEET_PACKAGE,ts:"Array",arg:o.BEET_TYPE_ARG_LEN},Buffer:{beet:"fixedSizeBuffer",isFixable:!1,sourcePack:o.BEET_PACKAGE,ts:"Buffer",arg:o.BEET_TYPE_ARG_LEN},FixedSizeUint8Array:{beet:"fixedSizeUint8Array",isFixable:!1,sourcePack:o.BEET_PACKAGE,ts:"Uint8Array",arg:o.BEET_TYPE_ARG_LEN},Uint8Array:{beet:"uint8Array",isFixable:!0,sourcePack:o.BEET_PACKAGE,ts:"Uint8Array",arg:o.BEET_TYPE_ARG_LEN}}})),parcelRequire.register("brC7B",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.isElementCollectionFixedSizeBeet=e.exports.isFixableBeet=e.exports.assertFixedSizeBeet=e.exports.isFixedSizeBeet=e.exports.BEET_TYPE_ARG_INNER=e.exports.BEET_TYPE_ARG_LEN=e.exports.BEET_PACKAGE=void 0;var a=parcelRequire("crIim");function o(e){return Object.keys(e).includes("byteSize")}e.exports.BEET_PACKAGE="@metaplex-foundation/beet",e.exports.BEET_TYPE_ARG_LEN="len",e.exports.BEET_TYPE_ARG_INNER="Beet<{innner}>",e.exports.isFixedSizeBeet=o,e.exports.assertFixedSizeBeet=function(e,t=`${e} should have been a fixed beet`){(0,a.strict)(o(e),t)},e.exports.isFixableBeet=function(e){return"function"==typeof e.toFixedFromData&&"function"==typeof e.toFixedFromValue},e.exports.isElementCollectionFixedSizeBeet=function(e){const t=Object.keys(e);return t.includes("length")&&t.includes("elementByteSize")&&t.includes("lenPrefixByteSize")}})),parcelRequire.register("lIC8Q",(function(e,t){var a=parcelRequire("ajHSv").Buffer,o=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.numbersTypeMap=e.exports.bool=e.exports.i512=e.exports.i256=e.exports.i128=e.exports.i64=e.exports.i32=e.exports.i16=e.exports.i8=e.exports.u512=e.exports.u256=e.exports.u128=e.exports.u64=e.exports.u32=e.exports.u16=e.exports.u8=void 0;const n=o(parcelRequire("bDdkr"));var s=parcelRequire("brC7B");function r(e,t){return{write:function(e,t,o){const s=(n.default.isBN(o)?o:new n.default(o)).toArray("le",this.byteSize);a.from(s).copy(e,t,0,this.byteSize)},read:function(e,t){const a=e.slice(t,t+this.byteSize);return new n.default(a,"le")},byteSize:e,description:t}}function i(e,t){const o=8*e;return{write:function(e,t,s){const r=(n.default.isBN(s)?s:new n.default(s)).toTwos(o).toArray("le",this.byteSize);a.from(r).copy(e,t,0,this.byteSize)},read:function(e,t){const a=e.slice(t,t+this.byteSize);return new n.default(a,"le").fromTwos(o)},byteSize:e,description:t}}e.exports.u8={write:function(e,t,a){e.writeUInt8(a,t)},read:function(e,t){return e.readUInt8(t)},byteSize:1,description:"u8"},e.exports.u16={write:function(e,t,a){e.writeUInt16LE(a,t)},read:function(e,t){return e.readUInt16LE(t)},byteSize:2,description:"u16"},e.exports.u32={write:function(e,t,a){e.writeUInt32LE(a,t)},read:function(e,t){return e.readUInt32LE(t)},byteSize:4,description:"u32"},e.exports.u64=r(8,"u64"),e.exports.u128=r(16,"u128"),e.exports.u256=r(32,"u256"),e.exports.u512=r(64,"u512"),e.exports.i8={write:function(e,t,a){e.writeInt8(a,t)},read:function(e,t){return e.readInt8(t)},byteSize:1,description:"i8"},e.exports.i16={write:function(e,t,a){e.writeInt16LE(a,t)},read:function(e,t){return e.readInt16LE(t)},byteSize:2,description:"i16"},e.exports.i32={write:function(e,t,a){e.writeInt32LE(a,t)},read:function(e,t){return e.readInt32LE(t)},byteSize:4,description:"i32"},e.exports.i64=i(8,"i64"),e.exports.i128=i(16,"i128"),e.exports.i256=i(32,"i256"),e.exports.i512=i(64,"i512"),e.exports.bool={write:function(t,a,o){const n=o?1:0;e.exports.u8.write(t,a,n)},read:function(t,a){return 1===e.exports.u8.read(t,a)},byteSize:1,description:"bool"},e.exports.numbersTypeMap={u8:{beet:"u8",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},u16:{beet:"u16",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},u32:{beet:"u32",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},i8:{beet:"i8",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},i16:{beet:"i16",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},i32:{beet:"i32",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},bool:{beet:"bool",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"boolean"},u64:{beet:"u64",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},u128:{beet:"u128",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},u256:{beet:"u256",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},u512:{beet:"u512",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i64:{beet:"i64",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i128:{beet:"i128",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i256:{beet:"i256",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i512:{beet:"i512",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE}}})),parcelRequire.register("cefkK",(function(e,t){"use strict";var a=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UnreachableCaseError=e.exports.stringify=e.exports.bytes=e.exports.beetBytes=e.exports.logTrace=e.exports.logDebug=e.exports.logInfo=e.exports.logError=void 0;const o=a(parcelRequire("5q0GT")),n=a(parcelRequire("5Ebvf"));var s=parcelRequire("brC7B");const{brightBlack:r}=n.default;e.exports.logError=(0,o.default)("beet:error"),e.exports.logInfo=(0,o.default)("beet:info"),e.exports.logDebug=(0,o.default)("beet:debug"),e.exports.logTrace=(0,o.default)("beet:trace"),e.exports.beetBytes=function(e,t=!1){let a;if((0,s.isFixableBeet)(e))a="? B";else if((0,s.isElementCollectionFixedSizeBeet)(e)){const o=t?"length":e.length,n=e.lenPrefixByteSize;a=n>0?`${n} + (${e.elementByteSize} * ${o}) B (${e.byteSize} B)`:`(${e.elementByteSize} * ${o}) B (${e.byteSize} B)`}else a=`${e.byteSize} B`;return r(a)},e.exports.bytes=function(e){return r(`${e} B`)},e.exports.stringify=function(e){return"function"===e.toString?e.toString():e};class i extends Error{constructor(e){super(`Unreachable case: ${e}`)}}e.exports.UnreachableCaseError=i})),parcelRequire.register("5q0GT",(function(e,t){var a=parcelRequire("aVc1D");e.exports.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;const a="color: "+this.color;t.splice(1,0,a,"color: inherit");let o=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(n=o))})),t.splice(n,0,a)},e.exports.save=function(t){try{t?e.exports.storage.setItem("debug",t):e.exports.storage.removeItem("debug")}catch(e){}},e.exports.load=function(){let t;try{t=e.exports.storage.getItem("debug")}catch(e){}!t&&void 0!==a&&"env"in a&&(t=void 0);return t},e.exports.useColors=function(){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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.exports.storage=function(){try{return localStorage}catch(e){}}(),e.exports.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})(),e.exports.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"],e.exports.log=console.debug||console.log||(()=>{}),e.exports=parcelRequire("j1zI6")(e.exports);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),parcelRequire.register("j1zI6",(function(e,t){e.exports=function(e){function t(e){let o,n,s,r=null;function i(...e){if(!i.enabled)return;const a=i,n=Number(new Date),s=n-(o||n);a.diff=s,a.prev=o,a.curr=n,o=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((o,n)=>{if("%%"===o)return"%";r++;const s=t.formatters[n];if("function"==typeof s){const t=e[r];o=s.call(a,t),e.splice(r,1),r--}return o})),t.formatArgs.call(a,e);(a.log||t.log).apply(a,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=a,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(n!==t.namespaces&&(n=t.namespaces,s=t.enabled(e)),s),set:e=>{r=e}}),"function"==typeof t.init&&t.init(i),i}function a(e,a){const o=t(this.namespace+(void 0===a?":":a)+e);return o.log=this.log,o}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let a;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),n=o.length;for(a=0;a{t[a]=e[a]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let a=0;for(let t=0;t=1.5*a;return Math.round(e/a)+" "+o+(n?"s":"")}e.exports=function(e,t){t=t||{};var d,l,m=typeof e;if("string"===m&&e.length>0)return function(e){if((e=String(e)).length>100)return;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)return;var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*r;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*o;case"seconds":case"second":case"secs":case"sec":case"s":return c*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===m&&isFinite(e))return t.long?(d=e,(l=Math.abs(d))>=s?c(d,l,s,"day"):l>=n?c(d,l,n,"hour"):l>=o?c(d,l,o,"minute"):l>=a?c(d,l,a,"second"):d+" ms"):function(e){var t=Math.abs(e);return t>=s?Math.round(e/s)+"d":t>=n?Math.round(e/n)+"h":t>=o?Math.round(e/o)+"m":t>=a?Math.round(e/a)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}})),parcelRequire.register("5Ebvf",(function(e,t){"use strict";var a={white:37,black:30,blue:34,cyan:36,green:32,magenta:35,red:31,yellow:33,brightBlack:90,brightRed:91,brightGreen:92,brightYellow:93,brightBlue:94,brightMagenta:95,brightCyan:96,brightWhite:97},o={bgBlack:40,bgRed:41,bgGreen:42,bgYellow:43,bgBlue:44,bgMagenta:45,bgCyan:46,bgWhite:47,bgBrightBlack:100,bgBrightRed:101,bgBrightGreen:102,bgBrightYellow:103,bgBrightBlue:104,bgBrightMagenta:105,bgBrightCyan:106,bgBrightWhite:107},n={},s={},r={};Object.keys(a).forEach((function(e){var t=n[e]="["+a[e]+"m",o=s[e]="";r[e]=function(e){return t+e+o}})),Object.keys(o).forEach((function(e){var t=n[e]="["+o[e]+"m",a=s[e]="";r[e]=function(e){return t+e+a}})),e.exports=r,r.open=n,r.close=s})),parcelRequire.register("lFrZu",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.fixBeetFromValue=e.exports.fixBeetFromData=void 0;var a=parcelRequire("brC7B"),o=parcelRequire("cefkK");e.exports.fixBeetFromData=function(e,t,n){if((0,a.isFixedSizeBeet)(e))return e;if((0,a.isFixableBeet)(e))return e.toFixedFromData(t,n);throw new o.UnreachableCaseError(e)},e.exports.fixBeetFromValue=function(e,t){if((0,a.isFixedSizeBeet)(e))return e;if((0,a.isFixableBeet)(e))return e.toFixedFromValue(t);throw new o.UnreachableCaseError(e)}})),parcelRequire.register("9CVZa",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.compositesTypeMap=e.exports.coption=e.exports.coptionSome=e.exports.coptionNone=e.exports.isNoneBuffer=e.exports.isSomeBuffer=void 0;var a=parcelRequire("crIim"),o=parcelRequire("brC7B"),n=(o=parcelRequire("brC7B"),parcelRequire("cefkK")),s=parcelRequire("lFrZu");const r=0,i=1;function c(e,t){return e[t]===i}function d(e,t){return e[t]===r}function l(e){return(0,n.logTrace)(`coptionNone(${e})`),{write:function(e,t,o){(0,a.strict)(null==o,"coptionNone can only handle `null` values"),e[t]=r},read:function(e,t){return(0,a.strict)(d(e,t),"coptionNone can only handle `NONE` data"),null},byteSize:1,description:`COption`}}function m(e){const t=1+e.byteSize,s={write:function(t,n,s){(0,o.assertFixedSizeBeet)(e,`coption inner type ${e.description} needs to be fixed before calling write`),(0,a.strict)(null!=s,"coptionSome cannot handle `null` values"),t[n]=i,e.write(t,n+1,s)},read:function(t,n){return(0,o.assertFixedSizeBeet)(e,`coption inner type ${e.description} needs to be fixed before calling read`),(0,a.strict)(c(t,n),"coptionSome can only handle `SOME` data"),e.read(t,n+1)},description:`COption<${e.description}>[1 + ${e.byteSize}]`,byteSize:t,inner:e};return(0,n.logTrace)(s.description),s}e.exports.isSomeBuffer=c,e.exports.isNoneBuffer=d,e.exports.coptionNone=l,e.exports.coptionSome=m,e.exports.coption=function(e){return{toFixedFromData(t,o){if(c(t,o)){return m((0,s.fixBeetFromData)(e,t,o+1))}return(0,a.strict)(d(t,o),`Expected ${t} to hold a COption`),l(e.description)},toFixedFromValue:t=>null==t?l(e.description):m((0,s.fixBeetFromValue)(e,t)),description:`COption<${e.description}>`}},e.exports.compositesTypeMap={option:{beet:"coption",isFixable:!0,sourcePack:o.BEET_PACKAGE,ts:"COption",arg:o.BEET_TYPE_ARG_INNER,pack:o.BEET_PACKAGE}}})),parcelRequire.register("9P70z",(function(e,t){var a=parcelRequire("ajHSv").Buffer;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.stringTypeMap=e.exports.utf8String=e.exports.fixedSizeUtf8String=void 0;var o=parcelRequire("brC7B"),n=parcelRequire("crIim"),s=parcelRequire("lIC8Q"),r=parcelRequire("cefkK");e.exports.fixedSizeUtf8String=e=>({write:function(t,o,r){const i=a.from(r,"utf8");n.strict.equal(i.byteLength,e,`${r} has invalid byte size`),s.u32.write(t,o,e),i.copy(t,o+4,0,e)},read:function(t,a){const o=s.u32.read(t,a);n.strict.equal(o,e,"invalid byte size");return t.slice(a+4,a+4+e).toString("utf8")},elementByteSize:1,length:e,lenPrefixByteSize:4,byteSize:4+e,description:`Utf8String(4 + ${e})`}),e.exports.utf8String={toFixedFromData(t,a){const o=s.u32.read(t,a);return(0,r.logTrace)(`${this.description}[${o}]`),(0,e.exports.fixedSizeUtf8String)(o)},toFixedFromValue(t){const o=a.from(t).byteLength;return(0,e.exports.fixedSizeUtf8String)(o)},description:"Utf8String"},e.exports.stringTypeMap={fixedSizeString:{beet:"fixedSizeUtf8String",isFixable:!1,sourcePack:o.BEET_PACKAGE,ts:"string",arg:o.BEET_TYPE_ARG_LEN},string:{beet:"utf8String",isFixable:!0,sourcePack:o.BEET_PACKAGE,ts:"string"}}})),parcelRequire.register("bLAAP",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.enumsTypeMap=e.exports.dataEnum=e.exports.uniformDataEnum=e.exports.fixedScalarEnum=void 0;var a=parcelRequire("brC7B"),o=parcelRequire("lIC8Q"),n=parcelRequire("crIim"),s=parcelRequire("eTIs8"),r=parcelRequire("5naSL"),i=parcelRequire("9YTmk");function c(e,t){return t?`${e}`:e}function d(e,t,a){return{write(a,n,s){o.u8.write(a,n,t),e.write(a,n+o.u8.byteSize,s)},read(t,n){const s=e.read(t,n+o.u8.byteSize);return{__kind:a,...s}},byteSize:e.byteSize+o.u8.byteSize,description:`EnumData<${e.description}>`}}e.exports.fixedScalarEnum=function(e){const t=Object.keys(e);return{write(a,s,r){const i="number"==typeof r,d=c(r,i);if(t.includes(d)||n.strict.fail(`${r} should be a variant of the provided enum type, i.e. [ ${Object.values(e).join(", ")} ], but isn't`),i)o.u8.write(a,s,r);else{const t=e[d];o.u8.write(a,s,t)}},read(a,s){const r=o.u8.read(a,s),i="number"==typeof r,d=c(r,i);return t.includes(d)||n.strict.fail(`${r} should be a of a variant of the provided enum type, i.e. [ ${Object.values(e).join(", ")} ], but isn't`),i?r:e[d]},byteSize:o.u8.byteSize,description:"Enum"}},e.exports.uniformDataEnum=function(e){return{write:function(t,a,n){o.u8.write(t,a,n.kind),e.write(t,a+1,n.data)},read:function(t,a){return{kind:o.u8.read(t,a),data:e.read(t,a+1)}},byteSize:1+e.byteSize,description:`UniformDataEnum<${e.description}>`}},e.exports.dataEnum=function(e){for(const[t,a]of e)(0,n.strict)((0,s.isBeetStruct)(a)||(0,r.isFixableBeetStruct)(a)||a===i.unit,"dataEnum: variants must be a data beet struct or a scalar unit");return{toFixedFromData(t,s){const r=o.u8.read(t,s),i=e[r];(0,n.strict)(null!=i,`Discriminant ${r} out of range for ${e.length} variants`);const[c,l]=i;return d((0,a.isFixedSizeBeet)(l)?l:l.toFixedFromData(t,s+1),r,c)},toFixedFromValue(t){if(null==t.__kind){const a=Object.keys(t).join(", "),o=e.map((([e])=>e)).join(", ");n.strict.fail(`Value with fields [ ${a} ] is missing __kind, which needs to be set to one of [ ${o} ]`)}const o=e.findIndex((([e])=>e===t.__kind));if(o<0){const a=e.map((([e])=>e)).join(", ");n.strict.fail(`${t.__kind} is not a valid kind, needs to be one of [ ${a} ]`)}const s=e[o],{__kind:r,...i}=t,[c,l]=s;return d((0,a.isFixedSizeBeet)(l)?l:l.toFixedFromValue(i),o,c)},description:`DataEnum<${e.length} variants>`}},e.exports.enumsTypeMap={fixedScalarEnum:{beet:"fixedScalarEnum",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"",arg:a.BEET_TYPE_ARG_INNER,pack:a.BEET_PACKAGE},dataEnum:{beet:"dataEnum",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"DataEnum",arg:a.BEET_TYPE_ARG_INNER,pack:a.BEET_PACKAGE}}})),parcelRequire.register("eTIs8",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.BeetArgsStruct=e.exports.isBeetStruct=e.exports.BeetStruct=void 0;var a=parcelRequire("eJgXE"),o=parcelRequire("cefkK");class n{constructor(e,t,a=n.description){if(this.fields=e,this.construct=t,this.description=a,this.byteSize=this.getByteSize(),o.logDebug.enabled){const t=e.map((([e,t])=>`${String(e)}: ${t.description} ${(0,o.beetBytes)(t)}`)).join("\n ");(0,o.logDebug)(`struct ${a} {\n ${t}\n} ${(0,o.beetBytes)(this)}`)}}read(e,t){const[a]=this.deserialize(e,t);return a}write(e,t,a){const[o,n]=this.serialize(a);o.copy(e,t,0,n)}deserialize(e,t=0){o.logTrace.enabled&&((0,o.logTrace)("deserializing [%s] from %d bytes buffer",this.description,e.byteLength),(0,o.logTrace)(e),(0,o.logTrace)(e.toJSON().data));const n=new a.BeetReader(e,t),s=n.readStruct(this.fields);return[this.construct(s),n.offset]}serialize(e,t=this.byteSize){(0,o.logTrace)("serializing [%s] %o to %d bytes buffer",this.description,e,t);const n=new a.BeetWriter(t);return n.writeStruct(e,this.fields),[n.buffer,n.offset]}getByteSize(){return this.fields.reduce(((e,[t,a])=>e+a.byteSize),0)}get type(){return n.TYPE}}e.exports.BeetStruct=n,n.description="BeetStruct",n.TYPE="BeetStruct",e.exports.isBeetStruct=function(e){return e.type===n.TYPE};class s extends n{constructor(e,t=s.description){super(e,(e=>e),t)}}e.exports.BeetArgsStruct=s,s.description="BeetArgsStruct"})),parcelRequire.register("eJgXE",(function(e,t){var a=parcelRequire("ajHSv").Buffer;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.BeetReader=e.exports.BeetWriter=void 0;var o=parcelRequire("crIim");e.exports.BeetWriter=class{constructor(e){this.buf=a.alloc(e),this._offset=0}get buffer(){return this.buf}get offset(){return this._offset}maybeResize(e){this._offset+e>this.buf.length&&o.strict.fail(`We shouldn't ever need to resize, but ${this._offset+e} > ${this.buf.length}`)}write(e,t){this.maybeResize(e.byteSize),e.write(this.buf,this._offset,t),this._offset+=e.byteSize}writeStruct(e,t){for(const[a,o]of t){const t=e[a];this.write(o,t)}}};e.exports.BeetReader=class{constructor(e,t=0){this.buffer=e,this._offset=t}get offset(){return this._offset}read(e){const t=e.read(this.buffer,this._offset);return this._offset+=e.byteSize,t}readStruct(e){const t={};for(const[a,o]of e)t[a]=this.read(o);return t}}})),parcelRequire.register("5naSL",(function(e,t){"use strict";var a=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.FixableBeetArgsStruct=e.exports.isFixableBeetStruct=e.exports.FixableBeetStruct=void 0;var o=parcelRequire("lFrZu"),n=parcelRequire("eTIs8"),s=parcelRequire("brC7B"),r=parcelRequire("crIim"),i=parcelRequire("cefkK");const c=a(parcelRequire("5Ebvf")),{brightBlack:d}=c.default;class l{constructor(e,t,a=l.description){this.fields=e,this.construct=t,this.description=a;let o=0;if(i.logDebug.enabled){const t=e.map((([e,t])=>((0,s.isFixedSizeBeet)(t)&&(o+=t.byteSize),`${e}: ${t.description} ${(0,i.beetBytes)(t)}`))).join("\n "),n=`> ${o} B`;(0,i.logDebug)(`struct ${a} {\n ${t}\n} ${d(n)}`)}}deserialize(e,t=0){return this.toFixedFromData(e,t).deserialize(e,t)}serialize(e,t){return this.toFixedFromValue(e).serialize(e,t)}toFixedFromData(e,t){let a=t;const s=new Array(this.fields.length);for(let t=0;te),t)}}e.exports.FixableBeetArgsStruct=m,m.description="FixableBeetArgsStruct"})),parcelRequire.register("9YTmk",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.unitTypeMap=e.exports.unit=void 0;var a=parcelRequire("brC7B");e.exports.unit={write:function(e,t,a){},read:function(e,t){},byteSize:0,description:"unit"},e.exports.unitTypeMap={unit:{beet:"unit",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"void"}}})),parcelRequire.register("3j08R",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.aliasesTypeMap=e.exports.bytes=void 0;var a=parcelRequire("fpLvT");e.exports.bytes=a.uint8Array,e.exports.aliasesTypeMap={bytes:a.collectionsTypeMap.Uint8Array}})),parcelRequire.register("aj7An",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.tuplesTypeMap=e.exports.tuple=e.exports.fixedSizeTuple=void 0;var a=parcelRequire("brC7B"),o=parcelRequire("crIim"),n=parcelRequire("lFrZu");function s(e){const t=e.length,a=e.map((e=>e.description)),n=e.map((e=>e.byteSize));return{write:function(a,n,s){o.strict.equal(s.length,t,`tuple value element size ${s.length} should match len ${t}`);let r=n;for(let o=0;oe+t),0),length:t,description:`FixedSizeTuple<${a.join(",")}>[ ${n.join(", ")} ]`}}e.exports.fixedSizeTuple=s,e.exports.tuple=function(e){const t=e.length;return{toFixedFromData(a,o){let r=o;const i=new Array(t);for(let o=0;oe.description)).join(",")}>`}},e.exports.tuplesTypeMap={Tuple:{beet:"tuple",isFixable:!0,sourcePack:a.BEET_PACKAGE,ts:"[__tuple_elements__]"},FixedSizeTuple:{beet:"fixedSizeTuple",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"[__tuple_elements__]"}}})),parcelRequire.register("jLb94",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.mapsTypeMap=e.exports.map=void 0;var a=parcelRequire("brC7B"),o=parcelRequire("lIC8Q"),n=parcelRequire("cefkK"),s=parcelRequire("crIim");function r(e,t,r,i){const c=(0,a.isFixedSizeBeet)(e),d=(0,a.isFixedSizeBeet)(t);const{elementByteSize:l,byteSize:m}=function(){if(c&&d){const a=e.byteSize+t.byteSize;return{elementByteSize:a,byteSize:4+i*a}}if(c){let t=0;for(const[e,a]of r.values())t+=a.byteSize;return{elementByteSize:e.byteSize+Math.ceil(t/i),byteSize:4+e.byteSize*i+t}}if(d){let e=0;for(const[t,a]of r.values())e+=t.byteSize;return{elementByteSize:Math.ceil(e/i)+t.byteSize,byteSize:4+e+t.byteSize*i}}{let e=0,t=0;for(const[a,o]of r.values())e+=a.byteSize,t+=o.byteSize;return{elementByteSize:Math.ceil(e/i+t/i),byteSize:4+e+t}}}();return{write:function(a,l,m){let u=l+4,p=0;for(const[o,i]of m.entries()){let l=c?e:null,m=d?t:null;if(null==l||null==m){const e=r.get(o);(0,s.strict)(null!=e,`Should be able to find beet els for ${(0,n.stringify)(o)}, but could not`),null!=l||(l=e[0]),null!=m||(m=e[1])}l.write(a,u,o),u+=l.byteSize,m.write(a,u,i),u+=m.byteSize,p++}o.u32.write(a,l,p),s.strict.equal(p,i,`Expected map to have size ${i}, but has ${p}.`)},read:function(a,n){const r=o.u32.read(a,n);s.strict.equal(r,i,`Expected map to have size ${i}, but has ${r}.`);let l=n+4;const m=new Map;for(let o=0;o`}}e.exports.map=function(e,t){const n=(0,a.isFixedSizeBeet)(e),s=(0,a.isFixedSizeBeet)(t);return{toFixedFromData(a,i){const c=o.u32.read(a,i);let d=i+4;if(n&&s)return r(e,t,new Map,c);const l=new Map;for(let o=0;o`}},e.exports.mapsTypeMap={Map:{beet:"map",isFixable:!0,sourcePack:a.BEET_PACKAGE,ts:"Map"}}})),parcelRequire.register("2UL8O",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.setsTypeMap=e.exports.set=void 0;var a=parcelRequire("brC7B"),o=parcelRequire("lIC8Q"),n=parcelRequire("cefkK"),s=parcelRequire("crIim");function r(e,t,r){const i=(0,a.isFixedSizeBeet)(e);const{elementByteSize:c,byteSize:d}=function(){if(i){const t=e.byteSize;return{elementByteSize:t,byteSize:4+r*t}}{let e=0;for(const a of t.values())e+=a.byteSize;return{elementByteSize:Math.ceil(e/r),byteSize:4+e}}}();return{write:function(a,c,d){let l=c+4,m=0;for(const o of d.keys()){let r=i?e:null;if(null==r){const e=t.get(o);(0,s.strict)(null!=e,`Should be able to find beet el for ${(0,n.stringify)(o)}, but could not`),null!=r||(r=e)}r.write(a,l,o),l+=r.byteSize,m++}o.u32.write(a,c,m),s.strict.equal(m,r,`Expected set to have size ${r}, but has ${m}.`)},read:function(t,a){const n=o.u32.read(t,a);s.strict.equal(n,r,`Expected set to have size ${r}, but has ${n}.`);let c=a+4;const d=new Set;for(let a=0;a`}}e.exports.set=function(e){const t=(0,a.isFixedSizeBeet)(e);return{toFixedFromData(a,n){const s=o.u32.read(a,n);let i=n+4;if(t)return r(e,new Map,s);const c=new Map;for(let o=0;o`}},e.exports.setsTypeMap={Set:{beet:"set",isFixable:!0,sourcePack:a.BEET_PACKAGE,ts:"Set"}}})),parcelRequire.register("fZ51c",(function(e,t){var a,o,n,s;$parcel$export(e.exports,"operation",(()=>a),(e=>a=e)),$parcel$export(e.exports,"timeouts",(()=>o),(e=>o=e)),$parcel$export(e.exports,"createTimeout",(()=>n),(e=>n=e)),$parcel$export(e.exports,"wrap",(()=>s),(e=>s=e));var r=parcelRequire("8f2eP");a=function(e){var t=o(e);return new r(t,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},o=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var a in e)t[a]=e[a];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var a=this._timeouts.shift();if(void 0===a){if(!this._cachedTimeouts)return!1;this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),a=this._timeouts.shift()}var o=this,n=setTimeout((function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout((function(){o._operationTimeoutCb(o._attempts)}),o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)}),a);return this._options.unref&&n.unref(),!0},a.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var a=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){a._operationTimeoutCb()}),a._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},a.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},a.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},a.prototype.start=a.prototype.try,a.prototype.errors=function(){return this._errors},a.prototype.attempts=function(){return this._attempts},a.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,a=0,o=0;o=a&&(t=n,a=r)}return t}})),parcelRequire.register("hvo4Y",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("4ccSa"),e.exports),o(parcelRequire("7aR1l"),e.exports),o(parcelRequire("1NRDL"),e.exports),o(parcelRequire("iKhKQ"),e.exports),o(parcelRequire("iR7df"),e.exports),o(parcelRequire("9e6lO"),e.exports),o(parcelRequire("a8FTY"),e.exports)})),parcelRequire.register("4ccSa",(function(e,t){"use strict";var a,o,n;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.TokenStandard=e.exports.UseMethod=e.exports.MetadataKey=void 0,(a=e.exports.MetadataKey||(e.exports.MetadataKey={}))[a.Uninitialized=0]="Uninitialized",a[a.MetadataV1=4]="MetadataV1",a[a.EditionV1=1]="EditionV1",a[a.MasterEditionV1=2]="MasterEditionV1",a[a.MasterEditionV2=6]="MasterEditionV2",a[a.EditionMarker=7]="EditionMarker",a[a.UseAuthorityRecord=8]="UseAuthorityRecord",a[a.CollectionAuthorityRecord=9]="CollectionAuthorityRecord",(o=e.exports.UseMethod||(e.exports.UseMethod={}))[o.Burn=0]="Burn",o[o.Single=1]="Single",o[o.Multiple=2]="Multiple",(n=e.exports.TokenStandard||(e.exports.TokenStandard={}))[n.NonFungible=0]="NonFungible",n[n.FungibleAsset=1]="FungibleAsset",n[n.Fungible=2]="Fungible",n[n.NonFungibleEdition=3]="NonFungibleEdition"})),parcelRequire.register("7aR1l",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))},o=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.computeCreatorOffset=e.exports.MAX_CREATOR_LEN=e.exports.MAX_URI_LENGTH=e.exports.MAX_SYMBOL_LENGTH=e.exports.MAX_NAME_LENGTH=e.exports.Metadata=e.exports.MetadataData=e.exports.MetadataDataData=e.exports.DataV2=e.exports.Creator=void 0;var n=parcelRequire("hPTd3"),s=parcelRequire("5cySN");const r=o(parcelRequire("bDdkr")),i=o(parcelRequire("8eDFA"));var c=parcelRequire("ajHSv"),d=parcelRequire("k76x7"),l=parcelRequire("iKhKQ"),m=parcelRequire("1NRDL"),u=parcelRequire("a8FTY"),p=parcelRequire("9e6lO"),h=parcelRequire("4ccSa");class g extends n.Borsh.Data{}e.exports.Creator=g,g.SCHEMA=g.struct([["address","pubkeyAsString"],["verified","u8"],["share","u8"]]);class b extends n.Borsh.Data{}e.exports.DataV2=b,b.SCHEMA=new Map([...g.SCHEMA,...p.Collection.SCHEMA,...u.Uses.SCHEMA,...b.struct([["name","string"],["symbol","string"],["uri","string"],["sellerFeeBasisPoints","u16"],["creators",{kind:"option",type:[g]}],["collection",{kind:"option",type:p.Collection}],["uses",{kind:"option",type:u.Uses}]])]);class f extends n.Borsh.Data{constructor(e){super(e);const t=new RegExp("\0","g");this.name=e.name.replace(t,""),this.uri=e.uri.replace(t,""),this.symbol=e.symbol.replace(t,"")}}e.exports.MetadataDataData=f,f.SCHEMA=new Map([...g.SCHEMA,...f.struct([["name","string"],["symbol","string"],["uri","string"],["sellerFeeBasisPoints","u16"],["creators",{kind:"option",type:[g]}]])]);class y extends n.Borsh.Data{constructor(e){super(e),this.key=h.MetadataKey.MetadataV1}}e.exports.MetadataData=y,y.SCHEMA=new Map([...f.SCHEMA,...p.Collection.SCHEMA,...u.Uses.SCHEMA,...y.struct([["key","u8"],["updateAuthority","pubkeyAsString"],["mint","pubkeyAsString"],["data",f],["primarySaleHappened","u8"],["isMutable","u8"],["editionNonce",{kind:"option",type:"u8"}],["tokenStandard",{kind:"option",type:"u8"}],["collection",{kind:"option",type:p.Collection}],["uses",{kind:"option",type:u.Uses}]])]);class $ extends n.Account{constructor(e,t){if(super(e,t),!this.assertOwner(d.MetadataProgram.PUBKEY))throw(0,n.ERROR_INVALID_OWNER)();if(!$.isCompatible(this.info.data))throw(0,n.ERROR_INVALID_ACCOUNT_DATA)();this.data=y.deserialize(this.info.data)}static isCompatible(e){return e[0]===h.MetadataKey.MetadataV1}static getPDA(e){return a(this,void 0,void 0,(function*(){return d.MetadataProgram.findProgramAddress([c.Buffer.from(d.MetadataProgram.PREFIX),d.MetadataProgram.PUBKEY.toBuffer(),new s.PublicKey(e).toBuffer()])}))}static findMany(t,o={}){return a(this,void 0,void 0,(function*(){const a=[{memcmp:{offset:0,bytes:i.default.encode(c.Buffer.from([h.MetadataKey.MetadataV1]))}},o.updateAuthority&&{memcmp:{offset:1,bytes:new s.PublicKey(o.updateAuthority).toBase58()}},o.mint&&{memcmp:{offset:33,bytes:new s.PublicKey(o.mint).toBase58()}}].filter(Boolean);return o.creators?(yield Promise.all(Array.from(Array(n.config.maxCreatorLimit).keys()).reduce(((n,r)=>[...n,...o.creators.map((o=>d.MetadataProgram.getProgramAccounts(t,{filters:[...a,{memcmp:{offset:(0,e.exports.computeCreatorOffset)(r),bytes:new s.PublicKey(o).toBase58()}}]})))]),[]))).flat().map((e=>$.from(e))):(yield d.MetadataProgram.getProgramAccounts(t,{filters:a})).map((e=>$.from(e)))}))}static findByMint(e,t){return a(this,void 0,void 0,(function*(){const a=yield $.getPDA(t);return $.load(e,a)}))}static findByOwner(e,t){return a(this,void 0,void 0,(function*(){const a=yield n.TokenAccount.getTokenAccountsByOwner(e,t),o=new Map(a.map((({data:e})=>[e.mint.toString(),e])));return(yield $.findMany(e)).filter((e=>{var t,a;return o.has(e.data.mint)&&((null===(a=null===(t=null==o?void 0:o.get(e.data.mint))||void 0===t?void 0:t.amount)||void 0===a?void 0:a.toNumber())||0)>0}))}))}static findByOwnerV2(e,t){return a(this,void 0,void 0,(function*(){const a=(yield n.TokenAccount.getTokenAccountsByOwner(e,t)).map((({data:e})=>e)).filter((({amount:e})=>(null==e?void 0:e.toNumber())>0));return(yield Promise.all(a.map((({mint:t})=>$.findMany(e,{mint:t}))))).flat()}))}static findByOwnerV3(e,t){return a(this,void 0,void 0,(function*(){const a=yield $.findInfoByOwner(e,t);return Array.from(a.entries()).map((([e,t])=>new $(e,t)))}))}static findInfoByOwner(e,t){return a(this,void 0,void 0,(function*(){const a=(yield n.TokenAccount.getTokenAccountsByOwner(e,t)).reduce(((e,{data:t})=>{var a;return(null===(a=t.amount)||void 0===a?void 0:a.eq(new r.default(1)))?[...e,$.getPDA(t.mint)]:e}),[]),o=yield Promise.all(a);return n.Account.getInfos(e,o)}))}static findDataByOwner(e,t){return a(this,void 0,void 0,(function*(){const a=yield $.findInfoByOwner(e,t);return Array.from(a.values()).map((e=>y.deserialize(e.data)))}))}static getEdition(e,t){return a(this,void 0,void 0,(function*(){const a=yield l.Edition.getPDA(t),o=yield n.Account.getInfo(e,a);switch(null==o?void 0:o.data[0]){case h.MetadataKey.EditionV1:return new l.Edition(a,o);case h.MetadataKey.MasterEditionV1:case h.MetadataKey.MasterEditionV2:return new m.MasterEdition(a,o);default:return}}))}}e.exports.Metadata=$,e.exports.MAX_NAME_LENGTH=32,e.exports.MAX_SYMBOL_LENGTH=10,e.exports.MAX_URI_LENGTH=200,e.exports.MAX_CREATOR_LEN=34;e.exports.computeCreatorOffset=t=>69+e.exports.MAX_NAME_LENGTH+4+e.exports.MAX_URI_LENGTH+4+e.exports.MAX_SYMBOL_LENGTH+2+1+4+t*e.exports.MAX_CREATOR_LEN})),parcelRequire.register("hPTd3",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("k5W5I"),e.exports),o(parcelRequire("8wiNM"),e.exports),o(parcelRequire("Mu0MF"),e.exports),o(parcelRequire("gA3GQ"),e.exports),o(parcelRequire("gsXEl"),e.exports),o(parcelRequire("7b1vr"),e.exports),o(parcelRequire("akzPq"),e.exports)})),parcelRequire.register("k5W5I",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("3OTeZ"),e.exports),o(parcelRequire("jysvS"),e.exports)})),parcelRequire.register("3OTeZ",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Account=void 0;var o=parcelRequire("5cySN"),n=parcelRequire("ajHSv"),s=parcelRequire("Mu0MF");class r{constructor(e,t){this.pubkey=new o.PublicKey(e),this.info=t}static from(e){return new this(e.pubkey,e.info)}static load(e,t){return a(this,void 0,void 0,(function*(){const a=yield r.getInfo(e,t);return new this(t,a)}))}static isCompatible(e){throw new Error("method 'isCompatible' is not implemented")}static getInfo(e,t){return a(this,void 0,void 0,(function*(){const a=yield e.getAccountInfo(new o.PublicKey(t));if(!a)throw(0,s.ERROR_ACCOUNT_NOT_FOUND)(t);return Object.assign(Object.assign({},a),{data:n.Buffer.from(null==a?void 0:a.data)})}))}static getInfos(e,t,o="recent"){return a(this,void 0,void 0,(function*(){const a=[];for(let n=0;n{var t;return[...null!==(t=null==e?void 0:e.entries())&&void 0!==t?t:[]].forEach((([e,t])=>n.set(e,t)))})),n}))}static getMultipleAccounts(e,t,o){return a(this,void 0,void 0,(function*(){const a=e._buildArgs([t.map((e=>e.toString()))],o,"base64"),s=yield e._rpcRequest("getMultipleAccounts",a);if(s.error)throw new Error("failed to get info about accounts "+s.error.message);if(!s.result.value)return;return s.result.value.filter(Boolean).map((e=>Object.assign(Object.assign({},e),{data:n.Buffer.from(e.data[0],"base64")}))).reduce(((e,a,o)=>(e.set(t[o],a),e)),new Map)}))}assertOwner(e){var t;return null===(t=this.info)||void 0===t?void 0:t.owner.equals(new o.PublicKey(e))}toJSON(){var e,t,a,n,s;return{pubkey:this.pubkey.toString(),info:{executable:!!(null===(e=this.info)||void 0===e?void 0:e.executable),owner:(null===(t=this.info)||void 0===t?void 0:t.owner)?new o.PublicKey(null===(a=this.info)||void 0===a?void 0:a.owner):null,lamports:null===(n=this.info)||void 0===n?void 0:n.lamports,data:null===(s=this.info)||void 0===s?void 0:s.data.toJSON()},data:this.data}}toString(){return JSON.stringify(this.toJSON())}}e.exports.Account=r})),parcelRequire.register("Mu0MF",(function(e,t){"use strict";var a,o;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ERROR_ACCOUNT_NOT_FOUND=e.exports.ERROR_DEPRECATED_ACCOUNT_DATA=e.exports.ERROR_INVALID_ACCOUNT_DATA=e.exports.ERROR_INVALID_OWNER=e.exports.MetaplexError=e.exports.ErrorCode=void 0,(o=a=e.exports.ErrorCode||(e.exports.ErrorCode={}))[o.ERROR_INVALID_OWNER=0]="ERROR_INVALID_OWNER",o[o.ERROR_INVALID_ACCOUNT_DATA=1]="ERROR_INVALID_ACCOUNT_DATA",o[o.ERROR_DEPRECATED_ACCOUNT_DATA=2]="ERROR_DEPRECATED_ACCOUNT_DATA",o[o.ERROR_ACCOUNT_NOT_FOUND=3]="ERROR_ACCOUNT_NOT_FOUND";class n extends Error{constructor(e,t){super(t),this.errorCode=e}}e.exports.MetaplexError=n;e.exports.ERROR_INVALID_OWNER=()=>new n(a.ERROR_INVALID_OWNER,"Invalid owner");e.exports.ERROR_INVALID_ACCOUNT_DATA=()=>new n(a.ERROR_INVALID_ACCOUNT_DATA,"Invalid data");e.exports.ERROR_DEPRECATED_ACCOUNT_DATA=()=>new n(a.ERROR_DEPRECATED_ACCOUNT_DATA,"Account data is deprecated");e.exports.ERROR_ACCOUNT_NOT_FOUND=e=>new n(a.ERROR_ACCOUNT_NOT_FOUND,`Unable to find account: ${e}`)})),parcelRequire.register("jysvS",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.deserialize=e.exports.TokenAccount=void 0;var o=parcelRequire("Mu0MF"),n=parcelRequire("3OTeZ"),s=parcelRequire("5SmDZ"),r=parcelRequire("5cySN");class i extends n.Account{constructor(t,a){if(super(t,a),!this.assertOwner(s.TOKEN_PROGRAM_ID))throw(0,o.ERROR_INVALID_OWNER)();if(!i.isCompatible(this.info.data))throw(0,o.ERROR_INVALID_ACCOUNT_DATA)();this.data=(0,e.exports.deserialize)(this.info.data)}static isCompatible(e){return e.length===s.AccountLayout.span}static getTokenAccountsByOwner(e,t){return a(this,void 0,void 0,(function*(){return(yield e.getTokenAccountsByOwner(new r.PublicKey(t),{programId:s.TOKEN_PROGRAM_ID})).value.map((({pubkey:e,account:t})=>new i(e,t)))}))}}e.exports.TokenAccount=i;e.exports.deserialize=e=>{const t=s.AccountLayout.decode(e);return t.mint=new r.PublicKey(t.mint),t.owner=new r.PublicKey(t.owner),t.amount=s.u64.fromBuffer(t.amount),0===t.delegateOption?(t.delegate=null,t.delegatedAmount=new s.u64(0)):(t.delegate=new r.PublicKey(t.delegate),t.delegatedAmount=s.u64.fromBuffer(t.delegatedAmount)),t.isInitialized=0!==t.state,t.isFrozen=2===t.state,1===t.isNativeOption?(t.rentExemptReserve=s.u64.fromBuffer(t.isNative),t.isNative=!0):(t.rentExemptReserve=null,t.isNative=!1),0===t.closeAuthorityOption?t.closeAuthority=null:t.closeAuthority=new r.PublicKey(t.closeAuthority),t}})),parcelRequire.register("5SmDZ",(function(e,t){$parcel$export(e.exports,"TOKEN_PROGRAM_ID",(()=>ze)),$parcel$export(e.exports,"ASSOCIATED_TOKEN_PROGRAM_ID",(()=>He)),$parcel$export(e.exports,"u64",(()=>Je)),$parcel$export(e.exports,"NATIVE_MINT",(()=>Ze)),$parcel$export(e.exports,"AccountLayout",(()=>et)),$parcel$export(e.exports,"Token",(()=>at));for(var a=parcelRequire("1F0RN"),o=parcelRequire("bDdkr"),n=parcelRequire("5cySN"),s={},r={byteLength:function(e){var t=p(e),a=t[0],o=t[1];return 3*(a+o)/4-o},toByteArray:function(e){var t,a,o=p(e),n=o[0],s=o[1],r=new d(function(e,t,a){return 3*(t+a)/4-a}(0,n,s)),i=0,l=s>0?n-4:n;for(a=0;a>16&255,r[i++]=t>>8&255,r[i++]=255&t;2===s&&(t=c[e.charCodeAt(a)]<<2|c[e.charCodeAt(a+1)]>>4,r[i++]=255&t);1===s&&(t=c[e.charCodeAt(a)]<<10|c[e.charCodeAt(a+1)]<<4|c[e.charCodeAt(a+2)]>>2,r[i++]=t>>8&255,r[i++]=255&t);return r},fromByteArray:function(e){for(var t,a=e.length,o=a%3,n=[],s=16383,r=0,c=a-o;rc?c:r+s));1===o?(t=e[a-1],n.push(i[t>>2]+i[t<<4&63]+"==")):2===o&&(t=(e[a-2]<<8)+e[a-1],n.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return n.join("")}},i=[],c=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,u=l.length;m0)throw new Error("Invalid string. Length must be a multiple of 4");var a=e.indexOf("=");return-1===a&&(a=t),[a,a===t?0:4-a%4]}function h(e,t,a){for(var o,n,s=[],r=t;r>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return s.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;var g={ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */read:function(e,t,a,o,n){var s,r,i=8*n-o-1,c=(1<>1,l=-7,m=a?n-1:0,u=a?-1:1,p=e[t+m];for(m+=u,s=p&(1<<-l)-1,p>>=-l,l+=i;l>0;s=256*s+e[t+m],m+=u,l-=8);for(r=s&(1<<-l)-1,s>>=-l,l+=o;l>0;r=256*r+e[t+m],m+=u,l-=8);if(0===s)s=1-d;else{if(s===c)return r?NaN:1/0*(p?-1:1);r+=Math.pow(2,o),s-=d}return(p?-1:1)*r*Math.pow(2,s-o)},write:function(e,t,a,o,n,s){var r,i,c,d=8*s-n-1,l=(1<>1,u=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:s-1,h=o?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,r=l):(r=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-r))<1&&(r--,c*=2),(t+=r+m>=1?u/c:u*Math.pow(2,1-m))*c>=2&&(r++,c/=2),r+m>=l?(i=0,r=l):r+m>=1?(i=(t*c-1)*Math.pow(2,n),r+=m):(i=t*Math.pow(2,m-1)*Math.pow(2,n),r=0));n>=8;e[a+p]=255&i,p+=h,i/=256,n-=8);for(r=r<0;e[a+p]=255&r,p+=h,r/=256,d-=8);e[a+p-h]|=128*g}}; +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +!function(e){const t=r,a=g,o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=i,e.SlowBuffer=function(e){+e!=e&&(e=0);return i.alloc(+e)},e.INSPECT_MAX_BYTES=50;const n=2147483647;function s(e){if(e>n)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,i.prototype),t}function i(e,t,a){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,a)}function c(e,t,a){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const a=0|h(e,t);let o=s(a);const n=o.write(e,t);n!==a&&(o=o.slice(0,n));return o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return u(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return u(e,t,a);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return u(e,t,a);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return i.from(o,t,a);const n=function(e){if(i.isBuffer(e)){const t=0|p(e.length),a=s(t);return 0===a.length||e.copy(a,0,0,t),a}if(void 0!==e.length)return"number"!=typeof e.length||X(e.length)?s(0):m(e);if("Buffer"===e.type&&Array.isArray(e.data))return m(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return d(e),s(e<0?0:0|p(e))}function m(e){const t=e.length<0?0:0|p(e.length),a=s(t);for(let o=0;o=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|e}function h(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const a=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===a)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return V(e).length;default:if(n)return o?-1:_(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,a){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if((a>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,a);case"utf8":case"utf-8":return I(this,t,a);case"ascii":return E(this,t,a);case"latin1":case"binary":return T(this,t,a);case"base64":return A(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,a);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function f(e,t,a){const o=e[t];e[t]=e[a],e[a]=o}function y(e,t,a,o,n){if(0===e.length)return-1;if("string"==typeof a?(o=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),X(a=+a)&&(a=n?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(n)return-1;a=e.length-1}else if(a<0){if(!n)return-1;a=0}if("string"==typeof t&&(t=i.from(t,o)),i.isBuffer(t))return 0===t.length?-1:$(e,t,a,o,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):$(e,[t],a,o,n);throw new TypeError("val must be string, number or Buffer")}function $(e,t,a,o,n){let s,r=1,i=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;r=2,i/=2,c/=2,a/=2}function d(e,t){return 1===r?e[t]:e.readUInt16BE(t*r)}if(n){let o=-1;for(s=a;si&&(a=i-c),s=a;s>=0;s--){let a=!0;for(let o=0;on&&(o=n):o=n;const s=t.length;let r;for(o>s/2&&(o=s/2),r=0;r>8,n=a%256,s.push(n),s.push(o);return s}(t,e.length-a),e,a,o)}function A(e,a,o){return 0===a&&o===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(a,o))}function I(e,t,a){a=Math.min(e.length,a);const o=[];let n=t;for(;n239?4:t>223?3:t>191?2:1;if(n+r<=a){let a,o,i,c;switch(r){case 1:t<128&&(s=t);break;case 2:a=e[n+1],128==(192&a)&&(c=(31&t)<<6|63&a,c>127&&(s=c));break;case 3:a=e[n+1],o=e[n+2],128==(192&a)&&128==(192&o)&&(c=(15&t)<<12|(63&a)<<6|63&o,c>2047&&(c<55296||c>57343)&&(s=c));break;case 4:a=e[n+1],o=e[n+2],i=e[n+3],128==(192&a)&&128==(192&o)&&128==(192&i)&&(c=(15&t)<<18|(63&a)<<12|(63&o)<<6|63&i,c>65535&&c<1114112&&(s=c))}}null===s?(s=65533,r=1):s>65535&&(s-=65536,o.push(s>>>10&1023|55296),s=56320|1023&s),o.push(s),n+=r}return function(e){const t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);let a="",o=0;for(;oo.length?(i.isBuffer(t)||(t=i.from(t)),t.copy(o,n)):Uint8Array.prototype.set.call(o,t,n);else{if(!i.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,n)}n+=t.length}return o},i.byteLength=h,i.prototype._isBuffer=!0,i.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;ta&&(t+=" ... "),""},o&&(i.prototype[o]=i.prototype.inspect),i.prototype.compare=function(e,t,a,o,n){if(J(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===a&&(a=e?e.length:0),void 0===o&&(o=0),void 0===n&&(n=this.length),t<0||a>e.length||o<0||n>this.length)throw new RangeError("out of range index");if(o>=n&&t>=a)return 0;if(o>=n)return-1;if(t>=a)return 1;if(this===e)return 0;let s=(n>>>=0)-(o>>>=0),r=(a>>>=0)-(t>>>=0);const c=Math.min(s,r),d=this.slice(o,n),l=e.slice(t,a);for(let e=0;e>>=0,isFinite(a)?(a>>>=0,void 0===o&&(o="utf8")):(o=a,a=void 0)}const n=this.length-t;if((void 0===a||a>n)&&(a=n),e.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let s=!1;for(;;)switch(o){case"hex":return w(this,e,t,a);case"utf8":case"utf-8":return k(this,e,t,a);case"ascii":case"latin1":case"binary":return v(this,e,t,a);case"base64":return x(this,e,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,a);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function E(e,t,a){let o="";a=Math.min(e.length,a);for(let n=t;no)&&(a=o);let n="";for(let o=t;oa)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,a,o,n,s){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function N(e,t,a,o,n){q(t,o,n,e,a,7);let s=Number(t&BigInt(4294967295));e[a++]=s,s>>=8,e[a++]=s,s>>=8,e[a++]=s,s>>=8,e[a++]=s;let r=Number(t>>BigInt(32)&BigInt(4294967295));return e[a++]=r,r>>=8,e[a++]=r,r>>=8,e[a++]=r,r>>=8,e[a++]=r,a}function P(e,t,a,o,n){q(t,o,n,e,a,7);let s=Number(t&BigInt(4294967295));e[a+7]=s,s>>=8,e[a+6]=s,s>>=8,e[a+5]=s,s>>=8,e[a+4]=s;let r=Number(t>>BigInt(32)&BigInt(4294967295));return e[a+3]=r,r>>=8,e[a+2]=r,r>>=8,e[a+1]=r,r>>=8,e[a]=r,a+8}function B(e,t,a,o,n,s){if(a+o>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function L(e,t,o,n,s){return t=+t,o>>>=0,s||B(e,0,o,4),a.write(e,t,o,n,23,4),o+4}function F(e,t,o,n,s){return t=+t,o>>>=0,s||B(e,0,o,8),a.write(e,t,o,n,52,8),o+8}i.prototype.slice=function(e,t){const a=this.length;(e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(t=void 0===t?a:~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),t>>=0,t>>>=0,a||M(e,t,this.length);let o=this[e],n=1,s=0;for(;++s>>=0,t>>>=0,a||M(e,t,this.length);let o=this[e+--t],n=1;for(;t>0&&(n*=256);)o+=this[e+--t]*n;return o},i.prototype.readUint8=i.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readBigUInt64LE=Z((function(e){W(e>>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||z(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+a*2**24;return BigInt(o)+(BigInt(n)<>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||z(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+a;return(BigInt(o)<>>=0,t>>>=0,a||M(e,t,this.length);let o=this[e],n=1,s=0;for(;++s=n&&(o-=Math.pow(2,8*t)),o},i.prototype.readIntBE=function(e,t,a){e>>>=0,t>>>=0,a||M(e,t,this.length);let o=t,n=1,s=this[e+--o];for(;o>0&&(n*=256);)s+=this[e+--o]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*t)),s},i.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);const a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);const a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readBigInt64LE=Z((function(e){W(e>>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||z(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(a<<24);return(BigInt(o)<>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||z(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<>>=0,t||M(e,4,this.length),a.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),a.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),a.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),a.read(this,e,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,t,a,o){if(e=+e,t>>>=0,a>>>=0,!o){D(this,e,t,a,Math.pow(2,8*a)-1,0)}let n=1,s=0;for(this[t]=255&e;++s>>=0,a>>>=0,!o){D(this,e,t,a,Math.pow(2,8*a)-1,0)}let n=a-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+a},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,1,255,0),this[t]=255&e,t+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigUInt64LE=Z((function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),i.prototype.writeBigUInt64BE=Z((function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),i.prototype.writeIntLE=function(e,t,a,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*a-1);D(this,e,t,a,o-1,-o)}let n=0,s=1,r=0;for(this[t]=255&e;++n>0)-r&255;return t+a},i.prototype.writeIntBE=function(e,t,a,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*a-1);D(this,e,t,a,o-1,-o)}let n=a-1,s=1,r=0;for(this[t+n]=255&e;--n>=0&&(s*=256);)e<0&&0===r&&0!==this[t+n+1]&&(r=1),this[t+n]=(e/s>>0)-r&255;return t+a},i.prototype.writeInt8=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeInt32LE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigInt64LE=Z((function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),i.prototype.writeBigInt64BE=Z((function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),i.prototype.writeFloatLE=function(e,t,a){return L(this,e,t,!0,a)},i.prototype.writeFloatBE=function(e,t,a){return L(this,e,t,!1,a)},i.prototype.writeDoubleLE=function(e,t,a){return F(this,e,t,!0,a)},i.prototype.writeDoubleBE=function(e,t,a){return F(this,e,t,!1,a)},i.prototype.copy=function(e,t,a,o){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(a||(a=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"==typeof e)for(n=t;n=o+4;a-=3)t=`_${e.slice(a-3,a)}${t}`;return`${e.slice(0,a)}${t}`}function q(e,t,a,o,n,s){if(e>a||e3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${8*(s+1)}${o}`:`>= -(2${o} ** ${8*(s+1)-1}${o}) and < 2 ** ${8*(s+1)-1}${o}`:`>= ${t}${o} and <= ${a}${o}`,new K.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,a){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+a]||z(t,e.length-(a+1))}(o,n,s)}function W(e,t){if("number"!=typeof e)throw new K.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,a){if(Math.floor(e)!==e)throw W(e,a),new K.ERR_OUT_OF_RANGE(a||"offset","an integer",e);if(t<0)throw new K.ERR_BUFFER_OUT_OF_BOUNDS;throw new K.ERR_OUT_OF_RANGE(a||"offset",`>= ${a?1:0} and <= ${t}`,e)}G("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),G("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),G("ERR_OUT_OF_RANGE",(function(e,t,a){let o=`The value of "${e}" is out of range.`,n=a;return Number.isInteger(a)&&Math.abs(a)>2**32?n=j(String(a)):"bigint"==typeof a&&(n=String(a),(a>BigInt(2)**BigInt(32)||a<-(BigInt(2)**BigInt(32)))&&(n=j(n)),n+="n"),o+=` It must be ${t}. Received ${n}`,o}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function _(e,t){let a;t=t||1/0;const o=e.length;let n=null;const s=[];for(let r=0;r55295&&a<57344){if(!n){if(a>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(r+1===o){(t-=3)>-1&&s.push(239,191,189);continue}n=a;continue}if(a<56320){(t-=3)>-1&&s.push(239,191,189),n=a;continue}a=65536+(n-55296<<10|a-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,a<128){if((t-=1)<0)break;s.push(a)}else if(a<2048){if((t-=2)<0)break;s.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;s.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return s}function V(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,a,o){let n;for(n=0;n=t.length||n>=e.length);++n)t[n+a]=e[n];return n}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const O=function(){const e="0123456789abcdef",t=new Array(256);for(let a=0;a<16;++a){const o=16*a;for(let n=0;n<16;++n)t[o+n]=e[a]+e[n]}return t}();function Z(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}}(s);var b=void 0!==$parcel$global?$parcel$global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},f="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e};function y(e,t){var a={seen:[],stylize:w};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),R(t)?a.showHidden=t:t&&function(e,t){if(!t||!T(t))return e;var a=Object.keys(t),o=a.length;for(;o--;)e[a[o]]=t[a[o]]}(a,t),S(a.showHidden)&&(a.showHidden=!1),S(a.depth)&&(a.depth=2),S(a.colors)&&(a.colors=!1),S(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=$),k(a,e,a.depth)}function $(e,t){var a=y.styles[t];return a?"["+y.colors[a][0]+"m"+e+"["+y.colors[a][1]+"m":e}function w(e,t){return e}function k(e,t,a){if(e.customInspect&&t&&M(t.inspect)&&t.inspect!==y&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(a,e);return I(o)||(o=k(e,o,a)),o}var n=function(e,t){if(S(t))return e.stylize("undefined","undefined");if(I(t)){var a="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(a,"string")}if(o=t,"number"==typeof o)return e.stylize(""+t,"number");var o;if(R(t))return e.stylize(""+t,"boolean");if(A(t))return e.stylize("null","null")}(e,t);if(n)return n;var s=Object.keys(t),r=function(e){var t={};return e.forEach((function(e,a){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),U(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return v(t);if(0===s.length){if(M(t)){var i=t.name?": "+t.name:"";return e.stylize("[Function"+i+"]","special")}if(E(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(C(t))return e.stylize(Date.prototype.toString.call(t),"date");if(U(t))return v(t)}var c,d,l="",m=!1,u=["{","}"];(c=t,Array.isArray(c)&&(m=!0,u=["[","]"]),M(t))&&(l=" [Function"+(t.name?": "+t.name:"")+"]");return E(t)&&(l=" "+RegExp.prototype.toString.call(t)),C(t)&&(l=" "+Date.prototype.toUTCString.call(t)),U(t)&&(l=" "+v(t)),0!==s.length||m&&0!=t.length?a<0?E(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),d=m?function(e,t,a,o,n){for(var s=[],r=0,i=t.length;r60?a[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+a[1]:a[0]+t+" "+e.join(", ")+" "+a[1]}(d,l,u)):u[0]+l+u[1]}function v(e){return"["+Error.prototype.toString.call(e)+"]"}function x(e,t,a,o,n,s){var r,i,c;if((c=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?i=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(i=e.stylize("[Setter]","special")),P(o,n)||(r="["+n+"]"),i||(e.seen.indexOf(c.value)<0?(i=A(a)?k(e,c.value,null):k(e,c.value,a-1)).indexOf("\n")>-1&&(i=s?i.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+i.split("\n").map((function(e){return" "+e})).join("\n")):i=e.stylize("[Circular]","special")),S(r)){if(s&&n.match(/^\d+$/))return i;(r=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=e.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=e.stylize(r,"string"))}return r+": "+i}function R(e){return"boolean"==typeof e}function A(e){return null===e}function I(e){return"string"==typeof e}function S(e){return void 0===e}function E(e){return T(e)&&"[object RegExp]"===N(e)}function T(e){return"object"==typeof e&&null!==e}function C(e){return T(e)&&"[object Date]"===N(e)}function U(e){return T(e)&&("[object Error]"===N(e)||e instanceof Error)}function M(e){return"function"==typeof e}function D(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function N(e){return Object.prototype.toString.call(e)}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function B(e,t){if(e===t)return 0;for(var a=e.length,o=t.length,n=0,s=Math.min(a,o);n=0){var i=n.indexOf("\n",r+1);n=n.substring(i+1)}this.stack=n}}}function Y(e,t){return"string"==typeof e?e.length=0;i--)if(c[i]!==d[i])return!1;for(i=c.length-1;i>=0;i--)if(!Z(e[r=c[i]],t[r],a,o))return!1;return!0}(e,t,a,o))}return a?e===t:e==t}function Q(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function ee(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function te(e,t,a,o){var n;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof a&&(o=a,a=null),n=function(e){var t;try{e()}catch(e){t=e}return t}(t),o=(a&&a.name?" ("+a.name+").":".")+(o?" "+o:"."),e&&!n&&X(n,a,"Missing expected exception"+o);var s="string"==typeof o,r=!e&&n&&!a;if((!e&&U(n)&&s&&ee(n,a)||r)&&X(n,a,"Got unwanted exception"+o),e&&n&&a&&!ee(n,a)||!e&&n)throw n}z.AssertionError=V,f(V,Error),z.fail=X,z.ok=O,z.equal=function e(t,a,o){t!=a&&X(t,a,o,"==",e)},z.notEqual=function e(t,a,o){t==a&&X(t,a,o,"!=",e)},z.deepEqual=function e(t,a,o){Z(t,a,!1)||X(t,a,o,"deepEqual",e)},z.deepStrictEqual=function e(t,a,o){Z(t,a,!0)||X(t,a,o,"deepStrictEqual",e)},z.notDeepEqual=function e(t,a,o){Z(t,a,!1)&&X(t,a,o,"notDeepEqual",e)},z.notDeepStrictEqual=function e(t,a,o){Z(t,a,!0)&&X(t,a,o,"notDeepStrictEqual",e)},z.strictEqual=function e(t,a,o){t!==a&&X(t,a,o,"===",e)},z.notStrictEqual=function e(t,a,o){t===a&&X(t,a,o,"!==",e)},z.throws=function(e,t,a){te(!0,e,t,a)},z.doesNotThrow=function(e,t,a){te(!1,e,t,a)},z.ifError=function(e){if(e)throw e};var ae={};class oe{constructor(e,t){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}decode(e,t){throw new Error("Layout is abstract")}encode(e,t,a){throw new Error("Layout is abstract")}getSpan(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){const t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}}function ne(e,t){return t.property?e+"["+t.property+"]":e}ae.Layout=oe,ae.nameWithProperty=ne,ae.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(e.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof oe))throw new TypeError("layout must be a Layout");if(t.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=()=>new e,Object.defineProperty(e.prototype,"encode",{value:function(e,a){return t.encode(this,e,a)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,a){return t.decode(e,a)},writable:!0})};class se extends oe{isCount(){throw new Error("ExternalLayout is abstract")}}class re extends se{constructor(e,t){if(void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");super(-1,t),this.elementSpan=e}isCount(){return!0}decode(e,t){void 0===t&&(t=0);const a=e.length-t;return Math.floor(a/this.elementSpan)}encode(e,t,a){return 0}}class ie extends se{constructor(e,t,a){if(!(e instanceof oe))throw new TypeError("layout must be a Layout");if(void 0===t)t=0;else if(!Number.isInteger(t))throw new TypeError("offset must be integer or undefined");super(e.span,a||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof ce||this.layout instanceof de}decode(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}encode(e,t,a){return void 0===a&&(a=0),this.layout.encode(e,t,a+this.offset)}}class ce extends oe{constructor(e,t){if(super(e,t),6e+o.encode(n,t,a+e)),0);return this.count instanceof se&&this.count.encode(e.length,t,a),n}}class Re extends oe{constructor(e,t,a){if(!Array.isArray(e)||!e.reduce(((e,t)=>e&&t instanceof oe),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof t&&void 0===a&&(a=t,t=void 0);for(const t of e)if(0>t.span&&void 0===t.property)throw new Error("fields cannot contain unnamed variable-length layout");let o=-1;try{o=e.reduce(((e,t)=>e+t.getSpan()),0)}catch(e){}super(o,t),this.fields=e,this.decodePrefixes=!!a}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let a=0;try{a=this.fields.reduce(((a,o)=>{const n=o.getSpan(e,t);return t+=n,a+n}),0)}catch(e){throw new RangeError("indeterminate span")}return a}decode(e,t){void 0===t&&(t=0);const a=this.makeDestinationObject();for(const o of this.fields)if(void 0!==o.property&&(a[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break;return a}encode(e,t,a){void 0===a&&(a=0);const o=a;let n=0,s=0;for(const o of this.fields){let r=o.span;if(s=0r&&(r=o.getSpan(t,a)))}n=a,a+=r}return n+s-o}fromArray(e){const t=this.makeDestinationObject();for(const a of this.fields)void 0!==a.property&&0a.span?t=-1:0<=t&&(t+=a.span)}}}class Ae{constructor(e){this.property=e}decode(){throw new Error("UnionDiscriminator is abstract")}encode(){throw new Error("UnionDiscriminator is abstract")}}class Ie extends Ae{constructor(e,t){if(!(e instanceof se&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,a){return this.layout.encode(e,t,a)}}class Se extends oe{constructor(e,t,a){const o=e instanceof ce||e instanceof de;if(o)e=new Ie(new ie(e));else if(e instanceof se&&e.isCount())e=new Ie(e);else if(!(e instanceof Ae))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===t&&(t=null),!(null===t||t instanceof oe))throw new TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw new Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let n=-1;t&&(n=t.span,0<=n&&o&&(n+=e.layout.span)),super(n,a),this.discriminator=e,this.usesPrefixDiscriminator=o,this.defaultLayout=t,this.registry={};let s=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return s(e)},this.configGetSourceVariant=function(e){s=e.bind(this)}}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);const a=this.getVariant(e,t);if(!a)throw new Error("unable to determine span for unrecognized variant");return a.getSpan(e,t)}defaultGetSourceVariant(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;const t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(const t in this.registry){const a=this.registry[t];if(e.hasOwnProperty(a.property))return a}throw new Error("unable to infer src variant")}decode(e,t){let a;void 0===t&&(t=0);const o=this.discriminator,n=o.decode(e,t);let s=this.registry[n];if(void 0===s){let r=0;s=this.defaultLayout,this.usesPrefixDiscriminator&&(r=o.layout.span),a=this.makeDestinationObject(),a[o.property]=n,a[s.property]=this.defaultLayout.decode(e,t+r)}else a=s.decode(e,t);return a}encode(e,t,a){void 0===a&&(a=0);const o=this.getSourceVariant(e);if(void 0===o){const o=this.discriminator,n=this.defaultLayout;let s=0;return this.usesPrefixDiscriminator&&(s=o.layout.span),o.encode(e[o.property],t,a),s+n.encode(e[n.property],t,a+s)}return o.encode(e,t,a)}addVariant(e,t,a){const o=new Ee(this,e,t,a);return this.registry[e]=o,o}getVariant(e,t){let a=e;return s.Buffer.isBuffer(e)&&(void 0===t&&(t=0),a=this.discriminator.decode(e,t)),this.registry[a]}}class Ee extends oe{constructor(e,t,a,o){if(!(e instanceof Se))throw new TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===o&&(o=a,a=null),a){if(!(a instanceof oe))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}let n=e.span;0>e.span&&(n=a?a.span:0,0<=n&&e.usesPrefixDiscriminator&&(n+=e.discriminator.layout.span)),super(n,o),this.union=e,this.variant=t,this.layout=a||null}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let a=0;return this.union.usesPrefixDiscriminator&&(a=this.union.discriminator.layout.span),a+this.layout.getSpan(e,t+a)}decode(e,t){const a=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw new Error("variant mismatch");let o=0;return this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout?a[this.property]=this.layout.decode(e,t+o):this.property?a[this.property]=!0:this.union.usesPrefixDiscriminator&&(a[this.union.discriminator.property]=this.variant),a}encode(e,t,a){void 0===a&&(a=0);let o=0;if(this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,a);let n=o;if(this.layout&&(this.layout.encode(e[this.property],t,a+o),n+=this.layout.getSpan(t,a+o),0<=this.union.span&&n>this.union.span))throw new Error("encoded variant overruns containing union");return n}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function Te(e){return 0>e&&(e+=4294967296),e}class Ce extends oe{constructor(e,t,a){if(!(e instanceof ce||e instanceof de))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof t&&void 0===a&&(a=t,t=void 0),4=t)throw new TypeError("bits must be positive integer");const o=8*e.span,n=e.fields.reduce(((e,t)=>e+t.bits),0);if(t+n>o)throw new Error("bits too long for span remainder ("+(o-n)+" of "+o+" remain)");this.container=e,this.bits=t,this.valueMask=(1<>>this.start}encode(e){if(!Number.isInteger(e)||e!==Te(e&this.valueMask))throw new TypeError(ne("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const t=this.container._packedGetValue(),a=Te(e<a&&(a=this.length.decode(e,t)),a}decode(e,t){void 0===t&&(t=0);let a=this.span;return 0>a&&(a=this.length.decode(e,t)),e.slice(t,t+a)}encode(e,t,a){let o=this.length;if(this.length instanceof se&&(o=e.length),!s.Buffer.isBuffer(e)||o!==e.length)throw new TypeError(ne("Blob.encode",this)+" requires (length "+o+") Buffer as src");if(a+o>t.length)throw new RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),a,o,"hex"),this.length instanceof se&&this.length.encode(o,t,a),o}}class Ne extends oe{constructor(e){super(-1,e)}getSpan(e,t){if(!s.Buffer.isBuffer(e))throw new TypeError("b must be a Buffer");void 0===t&&(t=0);let a=t;for(;at.length)throw new RangeError("encoding overruns Buffer");return o.copy(t,a),t[a+n]=0,n+1}}class Pe extends oe{constructor(e,t){if("string"==typeof e&&void 0===t&&(t=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");super(-1,t),this.maxSpan=e}getSpan(e,t){if(!s.Buffer.isBuffer(e))throw new TypeError("b must be a Buffer");return void 0===t&&(t=0),e.length-t}decode(e,t,a){void 0===t&&(t=0);let o=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return o.copy(t,a),n}}class Be extends oe{constructor(e,t){super(0,t),this.value=e}decode(e,t,a){return this.value}encode(e,t,a){return 0}}ae.ExternalLayout=se,ae.GreedyCount=re,ae.OffsetLayout=ie,ae.UInt=ce,ae.UIntBE=de,ae.Int=le,ae.IntBE=me,ae.Float=$e,ae.FloatBE=we,ae.Double=ke,ae.DoubleBE=ve,ae.Sequence=xe,ae.Structure=Re,ae.UnionDiscriminator=Ae,ae.UnionLayoutDiscriminator=Ie,ae.Union=Se,ae.VariantLayout=Ee,ae.BitStructure=Ce,ae.BitField=Ue,ae.Boolean=Me,ae.Blob=De,ae.CString=Ne,ae.UTF8=Pe,ae.Constant=Be,ae.greedy=(e,t)=>new re(e,t),ae.offset=(e,t,a)=>new ie(e,t,a);var Le=ae.u8=e=>new ce(1,e);ae.u16=e=>new ce(2,e),ae.u24=e=>new ce(3,e);var Fe=ae.u32=e=>new ce(4,e);ae.u40=e=>new ce(5,e),ae.u48=e=>new ce(6,e),ae.nu64=e=>new ge(e),ae.u16be=e=>new de(2,e),ae.u24be=e=>new de(3,e),ae.u32be=e=>new de(4,e),ae.u40be=e=>new de(5,e),ae.u48be=e=>new de(6,e),ae.nu64be=e=>new be(e),ae.s8=e=>new le(1,e),ae.s16=e=>new le(2,e),ae.s24=e=>new le(3,e),ae.s32=e=>new le(4,e),ae.s40=e=>new le(5,e),ae.s48=e=>new le(6,e),ae.ns64=e=>new fe(e),ae.s16be=e=>new me(2,e),ae.s24be=e=>new me(3,e),ae.s32be=e=>new me(4,e),ae.s40be=e=>new me(5,e),ae.s48be=e=>new me(6,e),ae.ns64be=e=>new ye(e),ae.f32=e=>new $e(e),ae.f32be=e=>new we(e),ae.f64=e=>new ke(e),ae.f64be=e=>new ve(e);var Ke=ae.struct=(e,t,a)=>new Re(e,t,a);ae.bits=(e,t,a)=>new Ce(e,t,a),ae.seq=(e,t,a)=>new xe(e,t,a),ae.union=(e,t,a)=>new Se(e,t,a),ae.unionLayoutDiscriminator=(e,t)=>new Ie(e,t);var Ge=ae.blob=(e,t)=>new De(e,t);ae.cstr=e=>new Ne(e),ae.utf8=(e,t)=>new Pe(e,t),ae.const=(e,t)=>new Be(e,t);const je=(e="publicKey")=>Ge(32,e),qe=(e="uint64")=>Ge(8,e);function We(e,t,a,...o){return(0,n.sendAndConfirmTransaction)(t,a,o,{skipPreflight:!1})}const ze=new(0,n.PublicKey)("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),He=new(0,n.PublicKey)("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),_e="Failed to find account",Ve="Invalid account owner";function Ye(e){return s.Buffer.from(e.toBuffer())}class Je extends($parcel$interopDefault(o)){toBuffer(){const e=super.toArray().reverse(),t=s.Buffer.from(e);if(8===t.length)return t;z(t.length<8,"u64 too large");const a=s.Buffer.alloc(8);return t.copy(a),a}static fromBuffer(e){return z(8===e.length,`Invalid buffer length: ${e.length}`),new Je([...e].reverse().map((e=>`00${e.toString(16)}`.slice(-2))).join(""),16)}}function Xe(e){return"publicKey"in e}const Oe={MintTokens:0,FreezeAccount:1,AccountOwner:2,CloseAccount:3},Ze=new(0,n.PublicKey)("So11111111111111111111111111111111111111112"),Qe=Ke([Fe("mintAuthorityOption"),je("mintAuthority"),qe("supply"),Le("decimals"),Le("isInitialized"),Fe("freezeAuthorityOption"),je("freezeAuthority")]),et=Ke([je("mint"),je("owner"),qe("amount"),Fe("delegateOption"),je("delegate"),Le("state"),Fe("isNativeOption"),qe("isNative"),qe("delegatedAmount"),Fe("closeAuthorityOption"),je("closeAuthority")]),tt=Ke([Le("m"),Le("n"),Le("is_initialized"),je("signer1"),je("signer2"),je("signer3"),je("signer4"),je("signer5"),je("signer6"),je("signer7"),je("signer8"),je("signer9"),je("signer10"),je("signer11")]);class at{constructor(e,t,o,n){$parcel$interopDefault(a)(this,"connection",void 0),$parcel$interopDefault(a)(this,"publicKey",void 0),$parcel$interopDefault(a)(this,"programId",void 0),$parcel$interopDefault(a)(this,"associatedProgramId",void 0),$parcel$interopDefault(a)(this,"payer",void 0),Object.assign(this,{connection:e,publicKey:t,programId:o,payer:n,associatedProgramId:He})}static async getMinBalanceRentForExemptMint(e){return await e.getMinimumBalanceForRentExemption(Qe.span)}static async getMinBalanceRentForExemptAccount(e){return await e.getMinimumBalanceForRentExemption(et.span)}static async getMinBalanceRentForExemptMultisig(e){return await e.getMinimumBalanceForRentExemption(tt.span)}static async createMint(e,t,a,o,s,r){const i=n.Keypair.generate(),c=new at(e,i.publicKey,r,t),d=await at.getMinBalanceRentForExemptMint(e),l=new(0,n.Transaction);return l.add(n.SystemProgram.createAccount({fromPubkey:t.publicKey,newAccountPubkey:i.publicKey,lamports:d,space:Qe.span,programId:r})),l.add(at.createInitMintInstruction(r,i.publicKey,s,a,o)),await We(0,e,l,t,i),c}async createAccount(e){const t=await at.getMinBalanceRentForExemptAccount(this.connection),a=n.Keypair.generate(),o=new(0,n.Transaction);o.add(n.SystemProgram.createAccount({fromPubkey:this.payer.publicKey,newAccountPubkey:a.publicKey,lamports:t,space:et.span,programId:this.programId}));const s=this.publicKey;return o.add(at.createInitAccountInstruction(this.programId,s,a.publicKey,e)),await We(0,this.connection,o,this.payer,a),a.publicKey}async createAssociatedTokenAccount(e){const t=await at.getAssociatedTokenAddress(this.associatedProgramId,this.programId,this.publicKey,e);return this.createAssociatedTokenAccountInternal(e,t)}async createAssociatedTokenAccountInternal(e,t){return await We(0,this.connection,(new(0,n.Transaction)).add(at.createAssociatedTokenAccountInstruction(this.associatedProgramId,this.programId,this.publicKey,t,e,this.payer.publicKey)),this.payer),t}async getOrCreateAssociatedAccountInfo(e){const t=await at.getAssociatedTokenAddress(this.associatedProgramId,this.programId,this.publicKey,e);try{return await this.getAccountInfo(t)}catch(a){if(a.message===_e||a.message===Ve){try{await this.createAssociatedTokenAccountInternal(e,t)}catch(e){}return await this.getAccountInfo(t)}throw a}}static async createWrappedNativeAccount(e,t,a,o,s){const r=await at.getMinBalanceRentForExemptAccount(e),i=n.Keypair.generate(),c=new(0,n.Transaction);return c.add(n.SystemProgram.createAccount({fromPubkey:o.publicKey,newAccountPubkey:i.publicKey,lamports:r,space:et.span,programId:t})),c.add(n.SystemProgram.transfer({fromPubkey:o.publicKey,toPubkey:i.publicKey,lamports:s})),c.add(at.createInitAccountInstruction(t,Ze,i.publicKey,a)),await We(0,e,c,o,i),i.publicKey}async createMultisig(e,t){const a=n.Keypair.generate(),o=await at.getMinBalanceRentForExemptMultisig(this.connection),r=new(0,n.Transaction);r.add(n.SystemProgram.createAccount({fromPubkey:this.payer.publicKey,newAccountPubkey:a.publicKey,lamports:o,space:tt.span,programId:this.programId}));let i=[{pubkey:a.publicKey,isSigner:!1,isWritable:!0},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];t.forEach((e=>i.push({pubkey:e,isSigner:!1,isWritable:!1})));const c=Ke([Le("instruction"),Le("m")]),d=s.Buffer.alloc(c.span);return c.encode({instruction:2,m:e},d),r.add({keys:i,programId:this.programId,data:d}),await We(0,this.connection,r,this.payer,a),a.publicKey}async getMintInfo(){const e=await this.connection.getAccountInfo(this.publicKey);if(null===e)throw new Error("Failed to find mint account");if(!e.owner.equals(this.programId))throw new Error(`Invalid mint owner: ${JSON.stringify(e.owner)}`);if(e.data.length!=Qe.span)throw new Error("Invalid mint size");const t=s.Buffer.from(e.data),a=Qe.decode(t);return 0===a.mintAuthorityOption?a.mintAuthority=null:a.mintAuthority=new(0,n.PublicKey)(a.mintAuthority),a.supply=Je.fromBuffer(a.supply),a.isInitialized=0!=a.isInitialized,0===a.freezeAuthorityOption?a.freezeAuthority=null:a.freezeAuthority=new(0,n.PublicKey)(a.freezeAuthority),a}async getAccountInfo(e,t){const a=await this.connection.getAccountInfo(e,t);if(null===a)throw new Error(_e);if(!a.owner.equals(this.programId))throw new Error(Ve);if(a.data.length!=et.span)throw new Error("Invalid account size");const o=s.Buffer.from(a.data),r=et.decode(o);if(r.address=e,r.mint=new(0,n.PublicKey)(r.mint),r.owner=new(0,n.PublicKey)(r.owner),r.amount=Je.fromBuffer(r.amount),0===r.delegateOption?(r.delegate=null,r.delegatedAmount=new Je):(r.delegate=new(0,n.PublicKey)(r.delegate),r.delegatedAmount=Je.fromBuffer(r.delegatedAmount)),r.isInitialized=0!==r.state,r.isFrozen=2===r.state,1===r.isNativeOption?(r.rentExemptReserve=Je.fromBuffer(r.isNative),r.isNative=!0):(r.rentExemptReserve=null,r.isNative=!1),0===r.closeAuthorityOption?r.closeAuthority=null:r.closeAuthority=new(0,n.PublicKey)(r.closeAuthority),!r.mint.equals(this.publicKey))throw new Error(`Invalid account mint: ${JSON.stringify(r.mint)} !== ${JSON.stringify(this.publicKey)}`);return r}async getMultisigInfo(e){const t=await this.connection.getAccountInfo(e);if(null===t)throw new Error("Failed to find multisig");if(!t.owner.equals(this.programId))throw new Error("Invalid multisig owner");if(t.data.length!=tt.span)throw new Error("Invalid multisig size");const a=s.Buffer.from(t.data),o=tt.decode(a);return o.signer1=new(0,n.PublicKey)(o.signer1),o.signer2=new(0,n.PublicKey)(o.signer2),o.signer3=new(0,n.PublicKey)(o.signer3),o.signer4=new(0,n.PublicKey)(o.signer4),o.signer5=new(0,n.PublicKey)(o.signer5),o.signer6=new(0,n.PublicKey)(o.signer6),o.signer7=new(0,n.PublicKey)(o.signer7),o.signer8=new(0,n.PublicKey)(o.signer8),o.signer9=new(0,n.PublicKey)(o.signer9),o.signer10=new(0,n.PublicKey)(o.signer10),o.signer11=new(0,n.PublicKey)(o.signer11),o}async transfer(e,t,a,o,s){let r,i;return Xe(a)?(r=a.publicKey,i=[a]):(r=a,i=o),await We("Transfer",this.connection,(new(0,n.Transaction)).add(at.createTransferInstruction(this.programId,e,t,r,o,s)),this.payer,...i)}async approve(e,t,a,o,s){let r,i;Xe(a)?(r=a.publicKey,i=[a]):(r=a,i=o),await We("Approve",this.connection,(new(0,n.Transaction)).add(at.createApproveInstruction(this.programId,e,t,r,o,s)),this.payer,...i)}async revoke(e,t,a){let o,s;Xe(t)?(o=t.publicKey,s=[t]):(o=t,s=a),await We("Revoke",this.connection,(new(0,n.Transaction)).add(at.createRevokeInstruction(this.programId,e,o,a)),this.payer,...s)}async setAuthority(e,t,a,o,s){let r,i;Xe(o)?(r=o.publicKey,i=[o]):(r=o,i=s),await We("SetAuthority",this.connection,(new(0,n.Transaction)).add(at.createSetAuthorityInstruction(this.programId,e,t,a,r,s)),this.payer,...i)}async mintTo(e,t,a,o){let s,r;Xe(t)?(s=t.publicKey,r=[t]):(s=t,r=a),await We("MintTo",this.connection,(new(0,n.Transaction)).add(at.createMintToInstruction(this.programId,this.publicKey,e,s,a,o)),this.payer,...r)}async burn(e,t,a,o){let s,r;Xe(t)?(s=t.publicKey,r=[t]):(s=t,r=a),await We("Burn",this.connection,(new(0,n.Transaction)).add(at.createBurnInstruction(this.programId,this.publicKey,e,s,a,o)),this.payer,...r)}async closeAccount(e,t,a,o){let s,r;Xe(a)?(s=a.publicKey,r=[a]):(s=a,r=o),await We("CloseAccount",this.connection,(new(0,n.Transaction)).add(at.createCloseAccountInstruction(this.programId,e,t,s,o)),this.payer,...r)}async freezeAccount(e,t,a){let o,s;Xe(t)?(o=t.publicKey,s=[t]):(o=t,s=a),await We("FreezeAccount",this.connection,(new(0,n.Transaction)).add(at.createFreezeAccountInstruction(this.programId,e,this.publicKey,o,a)),this.payer,...s)}async thawAccount(e,t,a){let o,s;Xe(t)?(o=t.publicKey,s=[t]):(o=t,s=a),await We("ThawAccount",this.connection,(new(0,n.Transaction)).add(at.createThawAccountInstruction(this.programId,e,this.publicKey,o,a)),this.payer,...s)}async transferChecked(e,t,a,o,s,r){let i,c;return Xe(a)?(i=a.publicKey,c=[a]):(i=a,c=o),await We("TransferChecked",this.connection,(new(0,n.Transaction)).add(at.createTransferCheckedInstruction(this.programId,e,this.publicKey,t,i,o,s,r)),this.payer,...c)}async approveChecked(e,t,a,o,s,r){let i,c;Xe(a)?(i=a.publicKey,c=[a]):(i=a,c=o),await We("ApproveChecked",this.connection,(new(0,n.Transaction)).add(at.createApproveCheckedInstruction(this.programId,e,this.publicKey,t,i,o,s,r)),this.payer,...c)}async mintToChecked(e,t,a,o,s){let r,i;Xe(t)?(r=t.publicKey,i=[t]):(r=t,i=a),await We("MintToChecked",this.connection,(new(0,n.Transaction)).add(at.createMintToCheckedInstruction(this.programId,this.publicKey,e,r,a,o,s)),this.payer,...i)}async burnChecked(e,t,a,o,s){let r,i;Xe(t)?(r=t.publicKey,i=[t]):(r=t,i=a),await We("BurnChecked",this.connection,(new(0,n.Transaction)).add(at.createBurnCheckedInstruction(this.programId,this.publicKey,e,r,a,o,s)),this.payer,...i)}async syncNative(e){await We(0,this.connection,(new(0,n.Transaction)).add(at.createSyncNativeInstruction(this.programId,e)),this.payer)}static createInitMintInstruction(e,t,a,o,r){let i=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];const c=Ke([Le("instruction"),Le("decimals"),je("mintAuthority"),Le("option"),je("freezeAuthority")]);let d=s.Buffer.alloc(1024);{const e=c.encode({instruction:0,decimals:a,mintAuthority:Ye(o),option:null===r?0:1,freezeAuthority:Ye(r||new(0,n.PublicKey)(0))},d);d=d.slice(0,e)}return new(0,n.TransactionInstruction)({keys:i,programId:e,data:d})}static createInitAccountInstruction(e,t,a,o){const r=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],i=Ke([Le("instruction")]),c=s.Buffer.alloc(i.span);return i.encode({instruction:1},c),new(0,n.TransactionInstruction)({keys:r,programId:e,data:c})}static createTransferInstruction(e,t,a,o,r,i){const c=Ke([Le("instruction"),qe("amount")]),d=s.Buffer.alloc(c.span);c.encode({instruction:3,amount:new Je(i).toBuffer()},d);let l=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0}];return 0===r.length?l.push({pubkey:o,isSigner:!0,isWritable:!1}):(l.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>l.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:l,programId:e,data:d})}static createApproveInstruction(e,t,a,o,r,i){const c=Ke([Le("instruction"),qe("amount")]),d=s.Buffer.alloc(c.span);c.encode({instruction:4,amount:new Je(i).toBuffer()},d);let l=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1}];return 0===r.length?l.push({pubkey:o,isSigner:!0,isWritable:!1}):(l.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>l.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:l,programId:e,data:d})}static createRevokeInstruction(e,t,a,o){const r=Ke([Le("instruction")]),i=s.Buffer.alloc(r.span);r.encode({instruction:5},i);let c=[{pubkey:t,isSigner:!1,isWritable:!0}];return 0===o.length?c.push({pubkey:a,isSigner:!0,isWritable:!1}):(c.push({pubkey:a,isSigner:!1,isWritable:!1}),o.forEach((e=>c.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:c,programId:e,data:i})}static createSetAuthorityInstruction(e,t,a,o,r,i){const c=Ke([Le("instruction"),Le("authorityType"),Le("option"),je("newAuthority")]);let d=s.Buffer.alloc(1024);{const e=c.encode({instruction:6,authorityType:Oe[o],option:null===a?0:1,newAuthority:Ye(a||new(0,n.PublicKey)(0))},d);d=d.slice(0,e)}let l=[{pubkey:t,isSigner:!1,isWritable:!0}];return 0===i.length?l.push({pubkey:r,isSigner:!0,isWritable:!1}):(l.push({pubkey:r,isSigner:!1,isWritable:!1}),i.forEach((e=>l.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:l,programId:e,data:d})}static createMintToInstruction(e,t,a,o,r,i){const c=Ke([Le("instruction"),qe("amount")]),d=s.Buffer.alloc(c.span);c.encode({instruction:7,amount:new Je(i).toBuffer()},d);let l=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0}];return 0===r.length?l.push({pubkey:o,isSigner:!0,isWritable:!1}):(l.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>l.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:l,programId:e,data:d})}static createBurnInstruction(e,t,a,o,r,i){const c=Ke([Le("instruction"),qe("amount")]),d=s.Buffer.alloc(c.span);c.encode({instruction:8,amount:new Je(i).toBuffer()},d);let l=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}];return 0===r.length?l.push({pubkey:o,isSigner:!0,isWritable:!1}):(l.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>l.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:l,programId:e,data:d})}static createCloseAccountInstruction(e,t,a,o,r){const i=Ke([Le("instruction")]),c=s.Buffer.alloc(i.span);i.encode({instruction:9},c);let d=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0}];return 0===r.length?d.push({pubkey:o,isSigner:!0,isWritable:!1}):(d.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>d.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:d,programId:e,data:c})}static createFreezeAccountInstruction(e,t,a,o,r){const i=Ke([Le("instruction")]),c=s.Buffer.alloc(i.span);i.encode({instruction:10},c);let d=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1}];return 0===r.length?d.push({pubkey:o,isSigner:!0,isWritable:!1}):(d.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>d.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:d,programId:e,data:c})}static createThawAccountInstruction(e,t,a,o,r){const i=Ke([Le("instruction")]),c=s.Buffer.alloc(i.span);i.encode({instruction:11},c);let d=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1}];return 0===r.length?d.push({pubkey:o,isSigner:!0,isWritable:!1}):(d.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>d.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:d,programId:e,data:c})}static createTransferCheckedInstruction(e,t,a,o,r,i,c,d){const l=Ke([Le("instruction"),qe("amount"),Le("decimals")]),m=s.Buffer.alloc(l.span);l.encode({instruction:12,amount:new Je(c).toBuffer(),decimals:d},m);let u=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!1,isWritable:!0}];return 0===i.length?u.push({pubkey:r,isSigner:!0,isWritable:!1}):(u.push({pubkey:r,isSigner:!1,isWritable:!1}),i.forEach((e=>u.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:u,programId:e,data:m})}static createApproveCheckedInstruction(e,t,a,o,r,i,c,d){const l=Ke([Le("instruction"),qe("amount"),Le("decimals")]),m=s.Buffer.alloc(l.span);l.encode({instruction:13,amount:new Je(c).toBuffer(),decimals:d},m);let u=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!1,isWritable:!1}];return 0===i.length?u.push({pubkey:r,isSigner:!0,isWritable:!1}):(u.push({pubkey:r,isSigner:!1,isWritable:!1}),i.forEach((e=>u.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:u,programId:e,data:m})}static createMintToCheckedInstruction(e,t,a,o,r,i,c){const d=Ke([Le("instruction"),qe("amount"),Le("decimals")]),l=s.Buffer.alloc(d.span);d.encode({instruction:14,amount:new Je(i).toBuffer(),decimals:c},l);let m=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0}];return 0===r.length?m.push({pubkey:o,isSigner:!0,isWritable:!1}):(m.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>m.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:m,programId:e,data:l})}static createBurnCheckedInstruction(e,t,a,o,r,i,c){const d=Ke([Le("instruction"),qe("amount"),Le("decimals")]),l=s.Buffer.alloc(d.span);d.encode({instruction:15,amount:new Je(i).toBuffer(),decimals:c},l);let m=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}];return 0===r.length?m.push({pubkey:o,isSigner:!0,isWritable:!1}):(m.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>m.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:m,programId:e,data:l})}static createSyncNativeInstruction(e,t){const a=Ke([Le("instruction")]),o=s.Buffer.alloc(a.span);a.encode({instruction:17},o);let r=[{pubkey:t,isSigner:!1,isWritable:!0}];return new(0,n.TransactionInstruction)({keys:r,programId:e,data:o})}static async getAssociatedTokenAddress(e,t,a,o,s=!1){if(!s&&!n.PublicKey.isOnCurve(o.toBuffer()))throw new Error(`Owner cannot sign: ${o.toString()}`);return(await n.PublicKey.findProgramAddress([o.toBuffer(),t.toBuffer(),a.toBuffer()],e))[0]}static createAssociatedTokenAccountInstruction(e,t,a,o,r,i){const c=s.Buffer.alloc(0);let d=[{pubkey:i,isSigner:!0,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];return new(0,n.TransactionInstruction)({keys:d,programId:e,data:c})}}})),parcelRequire.register("1F0RN",(function(e,t){var a=parcelRequire("ca4Qu");e.exports=function(e,t,o){return(t=a(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports})),parcelRequire.register("8wiNM",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.config=void 0,e.exports.config={arweaveWallet:"HvwC9QSAzvGXhhVrgPmauVwFWcYZhne3hVot9EbHuFTm",programs:{auction:"auctxRXPeJoc4817jDhf4HbjnhEcr1cCXenosMhK5R8",metadata:"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",metaplex:"p1exdMJcjVao65QdewkaZRUnU6VPSXhus9n2GzWfh98",vault:"vau1zxA2LbssAUEF7Gpw91zMM1LvXrvpzJtmZ58rPsn",packs:"BNRmGgciUJuyznkYHnmitA9an1BcDDiU9JmjEQwvBYVR",memo:"MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr",token:"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},maxCreatorLimit:5}})),parcelRequire.register("gA3GQ",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Program=void 0;var o=parcelRequire("5cySN"),n=parcelRequire("k5W5I"),s=parcelRequire("ajHSv");e.exports.Program=class{static findProgramAddress(e){return a(this,void 0,void 0,(function*(){return(yield o.PublicKey.findProgramAddress(e,this.PUBKEY))[0]}))}static getProgramAccounts(e,t){return a(this,void 0,void 0,(function*(){const a={};let r;t&&("string"==typeof t?r=t:(r=t.commitment,t.dataSlice&&(a.dataSlice=t.dataSlice),t.filters&&(a.filters=t.filters)));const i=e._buildArgs([this.PUBKEY.toBase58()],r,"base64",a);return(yield e._rpcRequest("getProgramAccounts",i)).result.map((({account:{data:e,executable:t,lamports:a,owner:n},pubkey:r})=>({account:{data:s.Buffer.from(e[0],"base64"),executable:t,lamports:a,owner:new o.PublicKey(n)},pubkey:new o.PublicKey(r)}))).map((({pubkey:e,account:t})=>new n.Account(e,t)))}))}}})),parcelRequire.register("gsXEl",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Transaction=void 0;var a=parcelRequire("5cySN");class o extends a.Transaction{constructor(e){super(e)}static fromCombined(e,t={}){const a=new o(t);return e.forEach((e=>e.instructions.forEach((e=>{a.add(e)})))),a}}e.exports.Transaction=o})),parcelRequire.register("7b1vr",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),parcelRequire.register("akzPq",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},s=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Borsh=void 0,e.exports.Borsh=n(parcelRequire("a4gSU")),s(parcelRequire("3s7ts"),e.exports)})),parcelRequire.register("a4gSU",(function(e,t){var a=parcelRequire("ajHSv").Buffer,o=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.serialize=e.exports.deserializeUnchecked=e.exports.deserialize=e.exports.struct=e.exports.Data=e.exports.extendBorsh=void 0;var n=parcelRequire("5cySN"),s=parcelRequire("7RSTc");Object.defineProperty(e.exports,"deserializeUnchecked",{enumerable:!0,get:function(){return s.deserializeUnchecked}}),Object.defineProperty(e.exports,"serialize",{enumerable:!0,get:function(){return s.serialize}}),Object.defineProperty(e.exports,"deserialize",{enumerable:!0,get:function(){return s.deserialize}});const r=o(parcelRequire("8eDFA"));e.exports.extendBorsh=()=>{s.BinaryReader.prototype.readPubkey=function(){const e=this.readFixedArray(32);return new n.PublicKey(e)},s.BinaryWriter.prototype.writePubkey=function(e){this.writeFixedArray(e.toBuffer())},s.BinaryReader.prototype.readPubkeyAsString=function(){const e=this.readFixedArray(32);return r.default.encode(e)},s.BinaryWriter.prototype.writePubkeyAsString=function(e){this.writeFixedArray(r.default.decode(e))}},(0,e.exports.extendBorsh)();e.exports.Data=class{constructor(e={}){Object.assign(this,e)}static struct(t){return(0,e.exports.struct)(this,t)}static serialize(e={}){return a.from((0,s.serialize)(this.SCHEMA,new this(e)))}static deserialize(e){return(0,s.deserializeUnchecked)(this.SCHEMA,this,e)}};e.exports.struct=(e,t)=>new Map([[e,{kind:"struct",fields:t}]])})),parcelRequire.register("3s7ts",(function(e,t){"use strict";var a=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getBNFromData=e.exports.TupleNumericType=void 0;const o=a(parcelRequire("bDdkr"));var n,s;(s=n=e.exports.TupleNumericType||(e.exports.TupleNumericType={}))[s.U8=1]="U8",s[s.U16=2]="U16",s[s.U32=4]="U32",s[s.U64=8]="U64";e.exports.getBNFromData=(e,t,a)=>{switch(a){case n.U8:return new o.default(e[t],"le");case n.U16:return new o.default(e.slice(t,t+2),"le");case n.U32:return new o.default(e.slice(t,t+4),"le");case n.U64:return new o.default(e.slice(t,t+8),"le")}}})),parcelRequire.register("k76x7",(function(e,t){var a=parcelRequire("ajHSv").Buffer,o=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.MetadataProgram=void 0;var n=parcelRequire("5cySN"),s=parcelRequire("hPTd3");class r extends s.Program{static findEditionAccount(e,t){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),e.toBuffer(),a.from(r.EDITION,"utf8"),a.from(t,"utf8")],r.PUBKEY)}))}static findMasterEditionAccount(e){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),e.toBuffer(),a.from(r.EDITION,"utf8")],r.PUBKEY)}))}static findMetadataAccount(e){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),e.toBuffer()],r.PUBKEY)}))}static findUseAuthorityAccount(e,t){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),e.toBuffer(),a.from(r.USER,"utf8"),t.toBuffer()],r.PUBKEY)}))}static findCollectionAuthorityAccount(e,t){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),e.toBuffer(),a.from(r.COLLECTION_AUTHORITY,"utf8"),t.toBuffer()],r.PUBKEY)}))}static findProgramAsBurnerAccount(){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),a.from(r.BURN,"utf8")],r.PUBKEY)}))}}e.exports.MetadataProgram=r,r.PREFIX="metadata",r.EDITION="edition",r.USER="user",r.COLLECTION_AUTHORITY="collection_authority",r.BURN="burn",r.PUBKEY=new n.PublicKey(s.config.programs.metadata)})),parcelRequire.register("iKhKQ",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Edition=e.exports.EditionData=void 0;var o=parcelRequire("hPTd3"),n=parcelRequire("k76x7"),s=parcelRequire("5cySN"),r=parcelRequire("ajHSv"),i=parcelRequire("4ccSa");class c extends o.Borsh.Data{constructor(e){super(e),this.key=i.MetadataKey.EditionV1}}e.exports.EditionData=c,c.SCHEMA=c.struct([["key","u8"],["parent","pubkeyAsString"],["edition","u64"]]);class d extends o.Account{constructor(e,t){if(super(e,t),!this.assertOwner(n.MetadataProgram.PUBKEY))throw(0,o.ERROR_INVALID_OWNER)();if(!d.isCompatible(this.info.data))throw(0,o.ERROR_INVALID_ACCOUNT_DATA)();this.data=c.deserialize(this.info.data)}static getPDA(e){return a(this,void 0,void 0,(function*(){return n.MetadataProgram.findProgramAddress([r.Buffer.from(n.MetadataProgram.PREFIX),n.MetadataProgram.PUBKEY.toBuffer(),new s.PublicKey(e).toBuffer(),r.Buffer.from(d.EDITION_PREFIX)])}))}static isCompatible(e){return e[0]===i.MetadataKey.EditionV1}}e.exports.Edition=d,d.EDITION_PREFIX="edition"})),parcelRequire.register("1NRDL",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))},o=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.MasterEdition=e.exports.MasterEditionV2Data=e.exports.MasterEditionV1Data=void 0;var n=parcelRequire("hPTd3");const s=o(parcelRequire("8eDFA"));var r=parcelRequire("iKhKQ"),i=parcelRequire("k76x7"),c=parcelRequire("ajHSv"),d=parcelRequire("5cySN"),l=parcelRequire("4ccSa");class m extends n.Borsh.Data{constructor(e){super(e),this.key=l.MetadataKey.MasterEditionV1}}e.exports.MasterEditionV1Data=m,m.SCHEMA=m.struct([["key","u8"],["supply","u64"],["maxSupply",{kind:"option",type:"u64"}],["printingMint","pubkeyAsString"],["oneTimePrintingAuthorizationMint","pubkeyAsString"]]);class u extends n.Borsh.Data{constructor(e){super(e),this.key=l.MetadataKey.MasterEditionV2}}e.exports.MasterEditionV2Data=u,u.SCHEMA=u.struct([["key","u8"],["supply","u64"],["maxSupply",{kind:"option",type:"u64"}]]);class p extends n.Account{constructor(e,t){if(super(e,t),!this.assertOwner(i.MetadataProgram.PUBKEY))throw(0,n.ERROR_INVALID_OWNER)();if(p.isMasterEditionV1(this.info.data))this.data=m.deserialize(this.info.data);else{if(!p.isMasterEditionV2(this.info.data))throw(0,n.ERROR_INVALID_ACCOUNT_DATA)();this.data=u.deserialize(this.info.data)}}static getPDA(e){return a(this,void 0,void 0,(function*(){return i.MetadataProgram.findProgramAddress([c.Buffer.from(i.MetadataProgram.PREFIX),i.MetadataProgram.PUBKEY.toBuffer(),new d.PublicKey(e).toBuffer(),c.Buffer.from(p.EDITION_PREFIX)])}))}static isCompatible(e){return p.isMasterEditionV1(e)||p.isMasterEditionV2(e)}static isMasterEditionV1(e){return e[0]===l.MetadataKey.MasterEditionV1}static isMasterEditionV2(e){return e[0]===l.MetadataKey.MasterEditionV2}getEditions(e){return a(this,void 0,void 0,(function*(){return(yield i.MetadataProgram.getProgramAccounts(e,{filters:[{memcmp:{offset:0,bytes:s.default.encode(c.Buffer.from([l.MetadataKey.EditionV1]))}},{memcmp:{offset:1,bytes:this.pubkey.toBase58()}}]})).map((e=>r.Edition.from(e)))}))}}e.exports.MasterEdition=p,p.EDITION_PREFIX="edition"})),parcelRequire.register("a8FTY",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UseAuthorityRecord=e.exports.Uses=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("hvo4Y");class n extends a.Borsh.Data{constructor(e){super(e),this.useMethod=e.useMethod,this.total=e.total,this.remaining=e.remaining}}e.exports.Uses=n,n.SCHEMA=n.struct([["useMethod","u8"],["total","u64"],["remaining","u64"]]);class s extends a.Borsh.Data{constructor(e){super(e),this.key=o.MetadataKey.UseAuthorityRecord,this.allowedUses=e.allowedUses,this.bump=e.bump}}e.exports.UseAuthorityRecord=s,s.SCHEMA=s.struct([["key","u8"],["allowedUses","u64"],["bump","u8"]])})),parcelRequire.register("9e6lO",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CollctionAuthorityRecord=e.exports.Collection=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("4ccSa");class n extends a.Borsh.Data{constructor(e){super(e),this.key=e.key,this.verified=e.verified}}e.exports.Collection=n,n.SCHEMA=n.struct([["verified","u8"],["key","pubkeyAsString"]]);class s extends a.Borsh.Data{constructor(e){super(e),this.key=o.MetadataKey.CollectionAuthorityRecord,this.bump=e.bump}}e.exports.CollctionAuthorityRecord=s,s.SCHEMA=s.struct([["key","u8"],["bump","u8"]])})),parcelRequire.register("iR7df",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.EditionMarker=e.exports.EditionMarkerData=void 0;var o=parcelRequire("hPTd3"),n=parcelRequire("5cySN"),s=parcelRequire("iKhKQ"),r=parcelRequire("k76x7"),i=parcelRequire("ajHSv"),c=parcelRequire("4ccSa");class d extends o.Borsh.Data{constructor(e){super(e),this.key=c.MetadataKey.EditionMarker}editionTaken(e){const t=e%l.DATA_SIZE,a=Math.floor(t/8);if(a>30)throw Error("Bad index for edition");const o=7-t%8,n=Math.pow(2,o);return 0!=(this.ledger[a]&n)}}e.exports.EditionMarkerData=d,d.SCHEMA=d.struct([["key","u8"],["ledger",[31]]]);class l extends o.Account{constructor(e,t){if(super(e,t),!this.assertOwner(r.MetadataProgram.PUBKEY))throw(0,o.ERROR_INVALID_OWNER)();if(!l.isCompatible(this.info.data))throw(0,o.ERROR_INVALID_ACCOUNT_DATA)();this.data=d.deserialize(this.info.data)}static getPDA(e,t){return a(this,void 0,void 0,(function*(){const a=Math.floor(t.toNumber()/248);return r.MetadataProgram.findProgramAddress([i.Buffer.from(r.MetadataProgram.PREFIX),r.MetadataProgram.PUBKEY.toBuffer(),new n.PublicKey(e).toBuffer(),i.Buffer.from(s.Edition.EDITION_PREFIX),i.Buffer.from(a.toString())])}))}static isCompatible(e){return e[0]===c.MetadataKey.EditionMarker}}e.exports.EditionMarker=l,l.DATA_SIZE=248})),parcelRequire.register("8St7e",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("dfeyz"),e.exports),o(parcelRequire("kwrR0"),e.exports),o(parcelRequire("aPTG8"),e.exports),o(parcelRequire("cqvbK"),e.exports),o(parcelRequire("6hf9X"),e.exports),o(parcelRequire("7pDaK"),e.exports),o(parcelRequire("kwpqQ"),e.exports),o(parcelRequire("3iLal"),e.exports),o(parcelRequire("jwZO9"),e.exports),o(parcelRequire("gyU4u"),e.exports),o(parcelRequire("bim01"),e.exports),o(parcelRequire("7pDaK"),e.exports),o(parcelRequire("j80lY"),e.exports),o(parcelRequire("lTYJV"),e.exports),o(parcelRequire("8QlNX"),e.exports),o(parcelRequire("jjru1"),e.exports),o(parcelRequire("4RnbR"),e.exports),o(parcelRequire("axhBd"),e.exports),o(parcelRequire("jURxB"),e.exports),o(parcelRequire("9sNH2"),e.exports),o(parcelRequire("jCZHO"),e.exports)})),parcelRequire.register("dfeyz",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CreateMetadata=e.exports.CreateMetadataArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("7aR1l"),s=parcelRequire("k76x7");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=0}}e.exports.CreateMetadataArgs=r,r.SCHEMA=new Map([...n.MetadataDataData.SCHEMA,...r.struct([["instruction","u8"],["data",n.MetadataDataData],["isMutable","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:n,metadataData:i,updateAuthority:c,mint:d,mintAuthority:l}=t,m=r.serialize({data:i,isMutable:!0});this.add(new o.TransactionInstruction({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:m}))}}e.exports.CreateMetadata=i})),parcelRequire.register("kwrR0",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UpdateMetadata=e.exports.UpdateMetadataArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("7aR1l"),s=parcelRequire("k76x7");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=1}}e.exports.UpdateMetadataArgs=r,r.SCHEMA=new Map([...n.MetadataDataData.SCHEMA,...r.struct([["instruction","u8"],["data",{kind:"option",type:n.MetadataDataData}],["updateAuthority",{kind:"option",type:"pubkeyAsString"}],["primarySaleHappened",{kind:"option",type:"u8"}]])]);class i extends a.Transaction{constructor(e,t){super(e);const{metadata:a,metadataData:n,updateAuthority:i,newUpdateAuthority:c,primarySaleHappened:d}=t,l=r.serialize({data:n,updateAuthority:c&&c.toString(),primarySaleHappened:d||null});this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:l}))}}e.exports.UpdateMetadata=i})),parcelRequire.register("aPTG8",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CreateMasterEdition=e.exports.CreateMasterEditionArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5SmDZ"),n=parcelRequire("5cySN"),s=parcelRequire("k76x7");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=10}}e.exports.CreateMasterEditionArgs=r,r.SCHEMA=r.struct([["instruction","u8"],["maxSupply",{kind:"option",type:"u64"}]]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{edition:i,metadata:c,updateAuthority:d,mint:l,mintAuthority:m,maxSupply:u}=t,p=r.serialize({maxSupply:u||null});this.add(new n.TransactionInstruction({keys:[{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:l,isSigner:!1,isWritable:!0},{pubkey:d,isSigner:!0,isWritable:!1},{pubkey:m,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:p}))}}e.exports.CreateMasterEdition=i})),parcelRequire.register("cqvbK",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.MintNewEditionFromMasterEditionViaToken=e.exports.MintNewEditionFromMasterEditionViaTokenArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5SmDZ"),n=parcelRequire("5cySN"),s=parcelRequire("k76x7");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=11}}e.exports.MintNewEditionFromMasterEditionViaTokenArgs=r,r.SCHEMA=r.struct([["instruction","u8"],["edition","u64"]]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{edition:i,metadata:c,updateAuthority:d,masterEdition:l,masterMetadata:m,mint:u,editionMarker:p,mintAuthority:h,tokenOwner:g,tokenAccount:b,editionValue:f}=t,y=r.serialize({edition:f});this.add(new n.TransactionInstruction({keys:[{pubkey:c,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:l,isSigner:!1,isWritable:!0},{pubkey:u,isSigner:!1,isWritable:!0},{pubkey:p,isSigner:!1,isWritable:!0},{pubkey:h,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:g,isSigner:!0,isWritable:!1},{pubkey:b,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:m,isSigner:!1,isWritable:!1},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:y}))}}e.exports.MintNewEditionFromMasterEditionViaToken=i})),parcelRequire.register("6hf9X",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UpdatePrimarySaleHappenedViaToken=e.exports.UpdatePrimarySaleHappenedViaTokenArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("k76x7");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=4}}e.exports.UpdatePrimarySaleHappenedViaTokenArgs=s,s.SCHEMA=s.struct([["instruction","u8"]]);class r extends a.Transaction{constructor(e,t){super(e);const{metadata:a,owner:r,tokenAccount:i}=t,c=s.serialize();this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!1}],programId:n.MetadataProgram.PUBKEY,data:c}))}}e.exports.UpdatePrimarySaleHappenedViaToken=r})),parcelRequire.register("7pDaK",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.SignMetadata=e.exports.SignMetadataArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("k76x7");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=7}}e.exports.SignMetadataArgs=s,s.SCHEMA=s.struct([["instruction","u8"]]);class r extends a.Transaction{constructor(e,t){super(e);const{metadata:a,creator:r}=t,i=s.serialize();this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:n.MetadataProgram.PUBKEY,data:i}))}}e.exports.SignMetadata=r})),parcelRequire.register("kwpqQ",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UpdateMetadataV2=e.exports.UpdateMetadataV2Args=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("7aR1l"),s=parcelRequire("k76x7");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=15}}e.exports.UpdateMetadataV2Args=r,r.SCHEMA=new Map([...n.DataV2.SCHEMA,...r.struct([["instruction","u8"],["data",{kind:"option",type:n.DataV2}],["updateAuthority",{kind:"option",type:"pubkeyAsString"}],["primarySaleHappened",{kind:"option",type:"u8"}],["isMutable",{kind:"option",type:"u8"}]])]);class i extends a.Transaction{constructor(e,t){super(e);const{metadata:a,metadataData:n,updateAuthority:i,newUpdateAuthority:c,primarySaleHappened:d,isMutable:l}=t,m=r.serialize({data:n,updateAuthority:c&&c.toString(),primarySaleHappened:d||null,isMutable:l||null});this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:m}))}}e.exports.UpdateMetadataV2=i})),parcelRequire.register("3iLal",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CreateMetadataV2=e.exports.CreateMetadataV2Args=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("7aR1l"),s=parcelRequire("k76x7");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=16}}e.exports.CreateMetadataV2Args=r,r.SCHEMA=new Map([...n.DataV2.SCHEMA,...r.struct([["instruction","u8"],["data",n.DataV2],["isMutable","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:n,metadataData:i,updateAuthority:c,mint:d,mintAuthority:l}=t,m=r.serialize({data:i,isMutable:!0});this.add(new o.TransactionInstruction({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:m}))}}e.exports.CreateMetadataV2=i})),parcelRequire.register("jwZO9",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CreateMasterEditionV3=e.exports.CreateMasterEditionV3Args=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5SmDZ"),n=parcelRequire("5cySN"),s=parcelRequire("k76x7");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=17}}e.exports.CreateMasterEditionV3Args=r,r.SCHEMA=r.struct([["instruction","u8"],["maxSupply",{kind:"option",type:"u64"}]]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{edition:i,metadata:c,updateAuthority:d,mint:l,mintAuthority:m,maxSupply:u}=t,p=r.serialize({maxSupply:u||null});this.add(new n.TransactionInstruction({keys:[{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:l,isSigner:!1,isWritable:!0},{pubkey:d,isSigner:!0,isWritable:!1},{pubkey:m,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:c,isSigner:!1,isWritable:!0},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:p}))}}e.exports.CreateMasterEditionV3=i})),parcelRequire.register("gyU4u",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.VerifyCollection=e.exports.VerifyCollectionArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("k76x7");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=18}}e.exports.VerifyCollectionArgs=s,s.SCHEMA=new Map([...s.struct([["instruction","u8"]])]);class r extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:r,collectionAuthority:i,collectionMint:c,collectionMetadata:d,collectionMasterEdition:l,collectionAuthorityRecord:m}=t,u=s.serialize(),p=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1}];m&&p.push({pubkey:m,isSigner:!1,isWritable:!1}),this.add(new o.TransactionInstruction({keys:p,programId:n.MetadataProgram.PUBKEY,data:u}))}}e.exports.VerifyCollection=r})),parcelRequire.register("bim01",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UnVerifyCollection=e.exports.UnVerifyCollectionArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("k76x7");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=22}}e.exports.UnVerifyCollectionArgs=s,s.SCHEMA=new Map([...s.struct([["instruction","u8"]])]);class r extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:r,collectionAuthority:i,collectionMint:c,collectionMetadata:d,collectionMasterEdition:l,collectionAuthorityRecord:m}=t,u=s.serialize(),p=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1}];m&&p.push({pubkey:m,isSigner:!1,isWritable:!1}),this.add(new o.TransactionInstruction({keys:p,programId:n.MetadataProgram.PUBKEY,data:u}))}}e.exports.UnVerifyCollection=r})),parcelRequire.register("j80lY",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.SetAndVerifyCollectionCollection=e.exports.SetAndVerifyCollectionArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("k76x7");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=25}}e.exports.SetAndVerifyCollectionArgs=s,s.SCHEMA=new Map([...s.struct([["instruction","u8"]])]);class r extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:r,collectionAuthority:i,collectionMint:c,updateAuthority:d,collectionMetadata:l,collectionMasterEdition:m,collectionAuthorityRecord:u}=t,p=s.serialize(),h=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1},{pubkey:m,isSigner:!1,isWritable:!1}];u&&h.push({pubkey:u,isSigner:!1,isWritable:!1}),this.add(new o.TransactionInstruction({keys:h,programId:n.MetadataProgram.PUBKEY,data:p}))}}e.exports.SetAndVerifyCollectionCollection=r})),parcelRequire.register("lTYJV",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ApproveUseAuthority=e.exports.ApproveUseAuthorityArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5SmDZ"),n=parcelRequire("5cySN"),s=parcelRequire("k76x7");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=20}}e.exports.ApproveUseAuthorityArgs=r,r.SCHEMA=new Map([...r.struct([["instruction","u8"],["numberOfUses","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{useAuthorityRecord:i,user:c,owner:d,ownerTokenAccount:l,metadata:m,mint:u,burner:p,numberOfUses:h}=t,g=r.serialize({numberOfUses:h}),b=[{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:d,isSigner:!0,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!0},{pubkey:m,isSigner:!1,isWritable:!1},{pubkey:u,isSigner:!1,isWritable:!1},{pubkey:p,isSigner:!1,isWritable:!1},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];this.add(new n.TransactionInstruction({keys:b,programId:s.MetadataProgram.PUBKEY,data:g}))}}e.exports.ApproveUseAuthority=i})),parcelRequire.register("8QlNX",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.RevokeUseAuthority=e.exports.RevokeUseAuthorityArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5SmDZ"),n=parcelRequire("5cySN"),s=parcelRequire("k76x7");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=21}}e.exports.RevokeUseAuthorityArgs=r,r.SCHEMA=new Map([...r.struct([["instruction","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{useAuthorityRecord:a,user:i,owner:c,ownerTokenAccount:d,metadata:l,mint:m}=t,u=r.serialize(),p=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:c,isSigner:!0,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!0},{pubkey:m,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];this.add(new n.TransactionInstruction({keys:p,programId:s.MetadataProgram.PUBKEY,data:u}))}}e.exports.RevokeUseAuthority=i})),parcelRequire.register("jjru1",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ApproveCollectionAuthority=e.exports.ApproveCollectionAuthorityArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("k76x7");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=23}}e.exports.ApproveCollectionAuthorityArgs=s,s.SCHEMA=new Map([...s.struct([["instruction","u8"]])]);class r extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:r,collectionAuthorityRecord:i,newCollectionAuthority:c,updateAuthority:d,mint:l}=t,m=s.serialize(),u=[{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];this.add(new o.TransactionInstruction({keys:u,programId:n.MetadataProgram.PUBKEY,data:m}))}}e.exports.ApproveCollectionAuthority=r})),parcelRequire.register("4RnbR",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.RevokeCollectionAuthority=e.exports.RevokeCollectionAuthorityArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("k76x7");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=24}}e.exports.RevokeCollectionAuthorityArgs=s,s.SCHEMA=new Map([...s.struct([["instruction","u8"]])]);class r extends a.Transaction{constructor(e,t){super(e);const{metadata:a,collectionAuthorityRecord:r,delegateAuthority:i,newCollectionAuthority:c,updateAuthority:d,mint:l}=t,m=i||c;if(!m)throw new Error("Must provide either a delegateAuthority");const u=s.serialize(),p=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:m,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];this.add(new o.TransactionInstruction({keys:p,programId:n.MetadataProgram.PUBKEY,data:u}))}}e.exports.RevokeCollectionAuthority=r})),parcelRequire.register("axhBd",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Utilize=e.exports.UtilizeArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5SmDZ"),n=parcelRequire("5cySN"),s=parcelRequire("k76x7");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=19}}e.exports.UtilizeArgs=r,r.SCHEMA=new Map([...r.struct([["instruction","u8"],["numberOfUses","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{metadata:a,useAuthority:i,numberOfUses:c,burner:d,tokenAccount:l}=t,m=r.serialize({numberOfUses:c}),u=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:l,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];i&&(u.push({pubkey:i,isSigner:!1,isWritable:!1}),u.push({pubkey:d,isSigner:!1,isWritable:!1})),this.add(new n.TransactionInstruction({keys:u,programId:s.MetadataProgram.PUBKEY,data:m}))}}e.exports.Utilize=i})),parcelRequire.register("jURxB",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.FreezeDelegatedAccount=e.exports.FreezeDelegatedAccountArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("k76x7"),s=parcelRequire("5SmDZ");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=26}}e.exports.FreezeDelegatedAccountArgs=r,r.SCHEMA=new Map([...r.struct([["instruction","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{delegate:a,token_account:i,edition:c,mint:d}=t,l=r.serialize();this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:s.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1}],programId:n.MetadataProgram.PUBKEY,data:l}))}}e.exports.FreezeDelegatedAccount=i})),parcelRequire.register("9sNH2",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ThawDelegatedAccount=e.exports.ThawDelegatedAccountArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("k76x7"),s=parcelRequire("5SmDZ");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=27}}e.exports.ThawDelegatedAccountArgs=r,r.SCHEMA=new Map([...r.struct([["instruction","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{delegate:a,token_account:i,edition:c,mint:d}=t,l=r.serialize();this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:s.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1}],programId:n.MetadataProgram.PUBKEY,data:l}))}}e.exports.ThawDelegatedAccount=i})),parcelRequire.register("jCZHO",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.RemoveCreatorVerification=e.exports.RemoveCreatorVerificationArgs=void 0;var a=parcelRequire("hPTd3"),o=parcelRequire("5cySN"),n=parcelRequire("k76x7");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=28}}e.exports.RemoveCreatorVerificationArgs=s,s.SCHEMA=s.struct([["instruction","u8"]]);class r extends a.Transaction{constructor(e,t){super(e);const{metadata:a,creator:r}=t,i=s.serialize();this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:n.MetadataProgram.PUBKEY,data:i}))}}e.exports.RemoveCreatorVerification=r})),parcelRequire.register("fcHsS",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getAllPaymentManagers=e.exports.getPaymentManagers=e.exports.getPaymentManager=void 0;var a=parcelRequire("39LEJ");parcelRequire("bZXdm");var o=parcelRequire("hym4F"),n=parcelRequire("5cySN"),s=parcelRequire("1VUfg");e.exports.getPaymentManager=async(e,t)=>{const r=new a.AnchorProvider(e,new o.SignerWallet(n.Keypair.generate()),{}),i=new a.Program(s.PAYMENT_MANAGER_IDL,s.PAYMENT_MANAGER_ADDRESS,r);return{parsed:await i.account.paymentManager.fetch(t),pubkey:t}};e.exports.getPaymentManagers=async(e,t)=>{const r=new a.AnchorProvider(e,new o.SignerWallet(n.Keypair.generate()),{}),i=new a.Program(s.PAYMENT_MANAGER_IDL,s.PAYMENT_MANAGER_ADDRESS,r);let c=[];try{c=await i.account.paymentManager.fetchMultiple(t)}catch(e){}return c.filter((e=>null!==e)).reduce(((e,a,o)=>a?[...e,{parsed:a,pubkey:t[o]}]:e),[])};e.exports.getAllPaymentManagers=async e=>{const t=await e.getProgramAccounts(s.PAYMENT_MANAGER_ADDRESS),o=[],n=new a.BorshAccountsCoder(s.PAYMENT_MANAGER_IDL);return t.forEach((e=>{try{const t=n.decode("paymentManager",e.account.data);o.push({...e,parsed:t})}catch(e){}})),o}})),parcelRequire.register("bZXdm",(function(e,t){$parcel$export(e.exports,"TieredBroadcaster",(()=>parcelRequire("axZV8").TieredBroadcaster)),$parcel$export(e.exports,"PendingTransaction",(()=>parcelRequire("1Vyln").PendingTransaction)),$parcel$export(e.exports,"TransactionEnvelope",(()=>parcelRequire("aDnKc").TransactionEnvelope)),$parcel$export(e.exports,"SignerWallet",(()=>parcelRequire("hym4F").SignerWallet)),parcelRequire("96LD5"),parcelRequire("fMPw9"),parcelRequire("4o96Z"),parcelRequire("dVsrA"),parcelRequire("5Cu3W"),parcelRequire("hffDX"),parcelRequire("hym4F")})),parcelRequire.register("96LD5",(function(e,t){$parcel$export(e.exports,"TieredBroadcaster",(()=>parcelRequire("axZV8").TieredBroadcaster)),$parcel$export(e.exports,"DEFAULT_RETRY_OPTIONS",(()=>i)),$parcel$export(e.exports,"DEFAULT_FALLBACK_RETRY_OPTIONS",(()=>c)),$parcel$export(e.exports,"SingleConnectionBroadcaster",(()=>d));parcelRequire("lLvEe");var a=parcelRequire("dVsrA");parcelRequire("5Cu3W");var o=parcelRequire("1Vyln");parcelRequire("hffDX");var n=parcelRequire("SKc6I"),s=parcelRequire("2XUHp"),r=parcelRequire("cdjBt");parcelRequire("axZV8");const i={retryTimes:3,retryInterval:1e3},c={retryTimes:10,retryInterval:300};class d{constructor(e,t=a.DEFAULT_PROVIDER_OPTIONS){this.sendConnection=e,this.opts=t}async getLatestBlockhash(e){var t;return void 0===e&&(e=null!==(t=this.opts.commitment)&&void 0!==t?t:"confirmed"),await this.sendConnection.getLatestBlockhash(e)}async getRecentBlockhash(e){var t;void 0===e&&(e=null!==(t=this.opts.commitment)&&void 0!==t?t:"confirmed");return(await this.sendConnection.getLatestBlockhash(e)).blockhash}async broadcast(e,{printLogs:t=!0,...a}=this.opts){if(0===e.signatures.length)throw new Error("Transaction must be signed before broadcasting.");const s=e.serialize();return t?new(0,o.PendingTransaction)(this.sendConnection,await(0,r.sendAndSpamRawTx)(this.sendConnection,s,a,a)):await(0,n.suppressConsoleErrorAsync)((async()=>new(0,o.PendingTransaction)(this.sendConnection,await(0,r.sendAndSpamRawTx)(this.sendConnection,s,a,a))))}async simulate(e,t){var a,o,{commitment:n=(null!==(a=this.opts.preflightCommitment)&&void 0!==a?a:"confirmed"),verifySigners:r=!0}=void 0===t?{commitment:null!==(o=this.opts.preflightCommitment)&&void 0!==o?o:"confirmed",verifySigners:!0}:t;if(r&&0===e.signatures.length)throw new Error("Transaction must be signed before simulating.");return await(0,s.simulateTransactionWithCommitment)(this.sendConnection,e,n)}}})),parcelRequire.register("lLvEe",(function(e,t){$parcel$export(e.exports,"firstAggregateError",(()=>a));const a=e=>{const t=e.errors,[a,...o]=[t.pop(),...t];return o.length>0&&console.error(o),a}})),parcelRequire.register("dVsrA",(function(e,t){$parcel$export(e.exports,"DEFAULT_PROVIDER_OPTIONS",(()=>r)),$parcel$export(e.exports,"SolanaProvider",(()=>l));var a=parcelRequire("5cySN"),o=parcelRequire("fkiBA"),n=parcelRequire("96LD5");parcelRequire("bZXdm");var s=parcelRequire("axZV8");parcelRequire("1Vyln"),parcelRequire("hym4F"),parcelRequire("aDnKc");const r={preflightCommitment:"confirmed",commitment:"confirmed"},i=a.SystemProgram.programId;class c{constructor(e,t=r,a=i){this.connection=e,this.opts=t,this.publicKey=a,this.wallet={signTransaction:Promise.resolve.bind(Promise),signAllTransactions:Promise.resolve.bind(Promise),publicKey:i},this.wallet={...this.wallet,publicKey:a}}async getAccountInfo(e){const t=await this.connection.getAccountInfo(e,this.opts.commitment);return t?{accountId:e,accountInfo:t}:null}}class d{constructor(e,t,a="confirmed"){this.wallet=e,this.broadcaster=t,this.preflightCommitment=a}get publicKey(){return this.wallet.publicKey}async signAndBroadcastTransaction(e,t){return await(async(e,t,a,o)=>{const n=await e.signTransaction(t);return(null==o?void 0:o.signers)&&o.signers.length>0&&n.sign(...o.signers),await a.broadcast(n,o)})(this.wallet,e,this.broadcaster,t)}async sign(e,t=[],a={preflightCommitment:this.preflightCommitment}){const{blockhash:o,lastValidBlockHeight:n}=await this.broadcaster.getLatestBlockhash(a.preflightCommitment);return e.feePayer=this.wallet.publicKey,e.lastValidBlockHeight=n,e.recentBlockhash=o,await this.wallet.signTransaction(e),t.filter((e=>void 0!==e)).forEach((t=>{e.partialSign(t)})),e}async signAll(e,t={preflightCommitment:this.preflightCommitment}){const{blockhash:a,lastValidBlockHeight:o}=await this.broadcaster.getLatestBlockhash(t.preflightCommitment),n=e.map((({tx:e,signers:t=[]})=>(e.feePayer=this.wallet.publicKey,e.lastValidBlockHeight=o,e.recentBlockhash=a,t.filter((e=>void 0!==e)).forEach((t=>{e.partialSign(t)})),e)));return await this.wallet.signAllTransactions(n)}}class l extends c{constructor(e,t,a,o=r,n=new d(a,t,o.preflightCommitment)){super(e,o),this.connection=e,this.broadcaster=t,this.wallet=a,this.opts=o,this.signer=n}async signAndBroadcastTransaction(e,t){return await this.signer.signAndBroadcastTransaction(e,t)}static load({connection:e,sendConnection:t=e,wallet:a,opts:o}){return new l(e,new(0,n.SingleConnectionBroadcaster)(t,o),a,o)}static init({connection:e,broadcastConnections:t=[e],wallet:a,opts:i=r}){const c=t[0];return(0,o.default)(c,"must have at least one broadcast connection"),new l(e,t.length>1?new(0,s.TieredBroadcaster)(e,t,i):new(0,n.SingleConnectionBroadcaster)(c,i),a,i)}async send(e,t=[],a=this.opts){const o=await this.signer.sign(e,t,a),n=await this.broadcaster.broadcast(o,a);return await n.wait(),n}async sendAll(e,t=this.opts){const a=await this.signer.signAll(e,t);return await Promise.all(a.map((async e=>{const a=await this.broadcaster.broadcast(e,t);return await a.wait(),a})))}async simulate(e,t,a=this.opts){let o=e;return void 0!==t&&(o=await this.signer.sign(e,t,a)),await this.broadcaster.simulate(o,{verifySigners:void 0!==t,commitment:a.commitment})}}})),parcelRequire.register("fkiBA",(function(e,t){$parcel$export(e.exports,"default",(()=>n));var a=!0,o="Invariant failed";function n(e,t){if(!e){if(a)throw new Error(o);var n="function"==typeof t?t():t,s=n?"".concat(o,": ").concat(n):o;throw new Error(s)}}})),parcelRequire.register("aDnKc",(function(e,t){$parcel$export(e.exports,"TransactionEnvelope",(()=>p));var a=parcelRequire("5cySN"),o=parcelRequire("fkiBA");parcelRequire("iCdZO");var n=parcelRequire("1YIpy");parcelRequire("hffDX");var s=parcelRequire("SKc6I"),r=parcelRequire("arn0b"),i=parcelRequire("6xKm6"),c=parcelRequire("dLMcc"),d=parcelRequire("19nDW");const l=1232,m=new(0,a.PublicKey)("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),u=(e,t)=>{const a=e.flatMap((e=>e.keys.filter((e=>e.isSigner)).map((e=>e.pubkey))));return t.filter((e=>a.find((t=>t.equals(e.publicKey)))))};class p{constructor(e,t,a=[]){this.provider=e,this.instructions=t,this.signers=a}prepend(...e){return this.instructions.unshift(...e.filter((e=>!!e))),this}append(...e){return this.instructions.push(...e.filter((e=>!!e))),this}addInstructions(...e){return this.append(...e)}addSigners(...e){return this.signers.push(...e),this}build(e=this.provider.wallet.publicKey){const t=(new(0,a.Transaction)).add(...this.instructions);return t.feePayer=e,t}estimateSizeUnsafe(){const e=this.build();return e.recentBlockhash="MaryHadALittLeLambZNdhAUTrsLE1ydg6rmtvFEpKT",(0,c.calculateTxSizeUnsafe)(e)}estimateSize(){return(0,s.suppressConsoleError)((()=>{try{const e=this.build();e.recentBlockhash="MaryHadALittLeLambZNdhAUTrsLE1ydg6rmtvFEpKT";const t=(0,c.calculateTxSizeUnsafe)(e);return t>l?{error:new(0,r.EstimatedTXTooBigError)(e,t)}:{size:t}}catch(e){return{error:new(0,r.TXSizeEstimationError)(e)}}}))}buildPartition(e=this.provider.wallet.publicKey){return this.partition().map((t=>t.build(e)))}partition(){if("size"in this.estimateSize())return[this];if(0===this.instructions.length)return[];let e=new p(this.provider,this.instructions.slice(0,1),this._filterRequiredSigners(this.instructions.slice(0,1))),t=e.estimateSizeUnsafe();const a=[];return this.instructions.slice(1).forEach(((o,n)=>{if(t>l)throw new Error(`cannot construct a valid partition: instruction ${n} is too large (${t} > 1232)`);const s=[...e.instructions,o],r=this._filterRequiredSigners(s),i=new p(this.provider,s,r),c=i.estimateSizeUnsafe();if(c>l){a.push(e);const n=[o];e=new p(this.provider,n,this._filterRequiredSigners(n)),t=e.estimateSizeUnsafe()}else e=i,t=c})),a.push(e),a}_filterRequiredSigners(e){return u(e,this.signers)}generateInspectLink(e="mainnet-beta"){const t=this.build();t.recentBlockhash=d.RECENT_BLOCKHASH_STUB;const a=t.serializeMessage().toString("base64");return(0,d.generateInspectLinkFromBase64)(e,a)}simulate(e={verifySigners:!0}){return this.provider.simulate(this.build(),e.verifySigners?this.signers:void 0,e)}simulateUnchecked(e){return this.simulate({...e,verifySigners:!1})}simulateTable(e){return this.simulate(e).then((e=>{var t;return(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.logs)&&(0,r.printTXTable)(this,e.value.logs,""),e}))}async send(e){const t=await this.provider.signer.sign(this.build(),this.signers,e);return this.provider.broadcaster.broadcast(t,e)}async confirm(e){return(await this.send(e)).wait()}combine(e){return new p(this.provider,[...this.instructions,...e.instructions],[...this.signers,...e.signers])}get writableKeys(){return[...new Set([...this.instructions.map((e=>e.keys.filter((e=>e.isWritable)).map((e=>e.pubkey)))).reduce(((e,t)=>e.concat(t)))]).values()]}get instructionsJSON(){return this.instructions.map((e=>({programId:e.programId.toString(),keys:e.keys.map((e=>({isSigner:e.isSigner,isWritable:e.isWritable,publicKey:e.pubkey.toString()}))),data:e.data.toString("base64")})))}get debugStr(){return["=> Instructions",this.instructions.map(((e,t)=>[`Instruction ${t}: ${e.programId.toString()}`,...e.keys.map(((e,t)=>` [${t}] ${e.pubkey.toString()} ${e.isWritable?"(mut)":""} ${e.isSigner?"(signer)":""}`)),` Data (base64): ${e.data.toString("base64")}`].join("\n"))).join("\n"),"=> Signers",this.signers.map((e=>e.publicKey.toString())).join("\n")].join("\n")}static create(e,t,a=[]){const o=t.filter((e=>!!e));return new p(e,o,a)}static addMemos(e,...t){return t.map((t=>t.addMemo(e)))}static combineAll(...e){return e.reduce(((e,t)=>e.combine(t)))}static pack(...e){if(0===e.length)return[];const[t,...a]=e;(0,o.default)(t);const{provider:n}=t;let s=t,r=s.estimateSizeUnsafe();const i=[];return a.forEach(((e,t)=>{if(r>l)throw new Error(`cannot construct a valid partition: instruction ${t} is too large (${r} > 1232)`);const a=[...s.instructions,...e.instructions],o=u(a,[...s.signers,...e.signers]),c=new p(n,a,o),d=c.estimateSizeUnsafe();d>l?(i.push(s),s=e,r=s.estimateSizeUnsafe()):(s=c,r=d)})),i.push(s),i}static async combineAllAsync(e,...t){let a=await e;for(const e of t)a=a.combine(await e);return a}static async sendAll(e,t){const a=e[0];if(!a)return[];const o=a.provider;return await o.sendAll(e.map((e=>({tx:e.build(),signers:e.signers}))),t)}dedupeATAIXs(){if(0===this.instructions.length)return this;const e=new Set,t=this.instructions.map((t=>{var a;if(t.programId.equals(m)){const o=null===(a=t.keys[1])||void 0===a?void 0:a.pubkey.toString();if(!o)throw new Error("ATA key does not exist on ATA instruction");if(e.has(o))return null;e.add(o)}return t})).filter((e=>!!e));return new p(this.provider,t,this.signers)}splitATAIXs(){const e=new p(this.provider,[],this.signers),t=new p(this.provider,[],this.signers);for(const a of this.instructions)a.programId.equals(m)?e.instructions.push(a):t.instructions.push(a);return{ataIXs:e.dedupeATAIXs(),tx:t}}getInstruction(e){const t=this.instructions[e];if(!t)throw new Error(`No instruction found at index ${e}`);return t}addMemo(e){return this.instructions.push((0,i.createMemoInstruction)(e)),this}addAdditionalComputeBudget(e,t){return this.instructions.unshift((0,n.requestComputeUnitsInstruction)(e,t)),this}addAdditionalHeapFrame(e){return this.instructions.unshift((0,n.requestHeapFrameInstruction)(e)),this}}})),parcelRequire.register("iCdZO",(function(e,t){$parcel$export(e.exports,"requestComputeUnitsInstruction",(()=>parcelRequire("1YIpy").requestComputeUnitsInstruction)),$parcel$export(e.exports,"requestHeapFrameInstruction",(()=>parcelRequire("1YIpy").requestHeapFrameInstruction)),$parcel$export(e.exports,"COMPUTE_BUDGET_PROGRAM",(()=>o));var a=parcelRequire("5cySN");parcelRequire("1YIpy");const o=new(0,a.PublicKey)("ComputeBudget111111111111111111111111111111")})),parcelRequire.register("1YIpy",(function(e,t){$parcel$export(e.exports,"requestComputeUnitsInstruction",(()=>r)),$parcel$export(e.exports,"requestHeapFrameInstruction",(()=>i));var a=parcelRequire("5cySN"),o=parcelRequire("iCdZO"),n=parcelRequire("c3QQZ"),s=parcelRequire("ajHSv").Buffer;const r=(e,t)=>{const r=s.alloc(n.RequestUnitsLayout.span);return n.RequestUnitsLayout.encode({instruction:0,units:e,additionalFee:t},r),new(0,a.TransactionInstruction)({data:r,keys:[],programId:o.COMPUTE_BUDGET_PROGRAM})},i=e=>{const t=s.alloc(n.RequestHeapFrameLayout.span);return n.RequestHeapFrameLayout.encode({instruction:1,bytes:e},t),new(0,a.TransactionInstruction)({data:t,keys:[],programId:o.COMPUTE_BUDGET_PROGRAM})}})),parcelRequire.register("c3QQZ",(function(e,t){$parcel$export(e.exports,"RequestUnitsLayout",(()=>o)),$parcel$export(e.exports,"RequestHeapFrameLayout",(()=>n));var a=parcelRequire("crvhM");const o=a.struct([a.u8("instruction"),a.u32("units"),a.u32("additionalFee")]),n=a.struct([a.u8("instruction"),a.u32("bytes")])})),parcelRequire.register("hffDX",(function(e,t){$parcel$export(e.exports,"createMemoInstruction",(()=>parcelRequire("6xKm6").createMemoInstruction)),$parcel$export(e.exports,"sleep",(()=>parcelRequire("SKc6I").sleep)),$parcel$export(e.exports,"suppressConsoleError",(()=>parcelRequire("SKc6I").suppressConsoleError)),$parcel$export(e.exports,"suppressConsoleErrorAsync",(()=>parcelRequire("SKc6I").suppressConsoleErrorAsync)),$parcel$export(e.exports,"EstimatedTXTooBigError",(()=>parcelRequire("arn0b").EstimatedTXTooBigError)),$parcel$export(e.exports,"printTXTable",(()=>parcelRequire("arn0b").printTXTable)),$parcel$export(e.exports,"TXSizeEstimationError",(()=>parcelRequire("arn0b").TXSizeEstimationError)),parcelRequire("6xKm6"),parcelRequire("SKc6I"),parcelRequire("jSdbT"),parcelRequire("arn0b"),parcelRequire("7ddta"),parcelRequire("l8hOp"),parcelRequire("2XUHp"),parcelRequire("kDKCF"),parcelRequire("ebM1X")})),parcelRequire.register("6xKm6",(function(e,t){$parcel$export(e.exports,"createMemoInstruction",(()=>s));var a=parcelRequire("5cySN"),o=parcelRequire("ajHSv").Buffer;const n=new(0,a.PublicKey)("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"),s=(e,t=[])=>new(0,a.TransactionInstruction)({programId:n,keys:t.map((e=>({pubkey:e,isSigner:!0,isWritable:!1}))),data:o.from(e,"utf8")})})),parcelRequire.register("SKc6I",(function(e,t){$parcel$export(e.exports,"suppressConsoleErrorAsync",(()=>o)),$parcel$export(e.exports,"suppressConsoleError",(()=>n)),$parcel$export(e.exports,"sleep",(()=>s)),$parcel$export(e.exports,"valueAsPromise",(()=>r)),parcelRequire("4xaVC");const a=()=>{},o=async e=>{const t=console.error;console.error=a;try{const a=await e();return console.error=t,a}catch(e){throw console.error=t,e}},n=e=>{const t=console.error;console.error=a;try{const a=e();return console.error=t,a}catch(e){throw console.error=t,e}};function s(e){return new Promise((t=>setTimeout(t,e)))}const r=async e=>"then"in e?await e:e})),parcelRequire.register("4xaVC",(function(e,t){})),parcelRequire.register("jSdbT",(function(e,t){parcelRequire("5cySN"),parcelRequire("aVc1D")})),parcelRequire.register("arn0b",(function(e,t){$parcel$export(e.exports,"printTXTable",(()=>n)),$parcel$export(e.exports,"TXSizeEstimationError",(()=>s)),$parcel$export(e.exports,"EstimatedTXTooBigError",(()=>r));var a=parcelRequire("5cySN");parcelRequire("bZXdm");var o=parcelRequire("aDnKc");const n=(e,t,a)=>{a&&""!==a?console.log(i(e),a):console.log("Transaction size:",i(e));const o=[],n=[];let s=-1;t.forEach((e=>{e.includes(" invoke [1]")&&(s++,n[s]=0);const t=e.match(/ invoke \[(\d)\]/);if(t&&t[1]){const e=n[s];n[s]=void 0===e?Number(t[1])-1:Math.max(Number(t[1])-1,e)}const a=e.match(/consumed \d* of \d* compute units/);a&&a[0]&&(o[s]=a[0])}));const r=[];e.instructions.forEach(((t,a)=>{const s=o[a],i=null==s?void 0:s.match(/consumed (\d*) of (\d*)/),[c,u]=(null==i?void 0:i.slice(1,3).map((e=>parseInt(e,10))))||[void 0,void 0];r.push({iso:d(e.provider,t),mar:l(e.provider,e.instructions.slice(0,a),t),cum:m(e.provider,e.instructions.slice(0,a+1)),programId:t.programId.toBase58(),quota:u||(0===a?2e5:void 0),used:c,left:u&&c?u-c:void 0,CPI:n[a]})})),console.table(r)};class s extends Error{constructor(e){super("could not estimate transaction size"),this.underlyingError=e,this.name="TXSizeEstimationError"}}class r extends Error{constructor(e,t){super("Transaction too large"),this.tx=e,this.size=t,this.name="EstimatedTXTooBigError"}}const i=e=>{const t=e.estimateSize();return"size"in t?t.size:t.error instanceof s?(console.error("Unknown error estimating transaction size",t.error.underlyingError),9999):8888},c=()=>{const e=p();return a.SystemProgram.transfer({fromPubkey:e.publicKey,toPubkey:e.publicKey,lamports:1})},d=(e,t)=>l(e,[c()],t),l=(e,t,a)=>{const o=m(e,t.length?t:[c()]);return m(e,[...t,a])-o},m=(e,t)=>{const a=new(0,o.TransactionEnvelope)(e,[...t]);return i(a)};let u;const p=()=>(u||(u=a.Keypair.generate()),u)})),parcelRequire.register("7ddta",(function(e,t){var a=parcelRequire("5cySN");class o extends a.PublicKey{constructor(e){super(e),this._base58=super.toBase58()}equals(e){return e instanceof o?e._base58===this._base58:super.equals(e)}toString(){return this._base58}toBase58(){return this._base58}}})),parcelRequire.register("l8hOp",(function(e,t){parcelRequire("5cySN"),parcelRequire("bDdkr"),parcelRequire("5cySN")})),parcelRequire.register("2XUHp",(function(e,t){$parcel$export(e.exports,"simulateTransactionWithCommitment",(()=>o));var a=parcelRequire("5cySN");async function o(e,t,o="confirmed"){var n;const s=e;if(!t.recentBlockhash){const{blockhash:a}=await e.getLatestBlockhash(o);t.recentBlockhash=a}const r=t.serialize({requireAllSignatures:!1}).toString("base64"),i={encoding:"base64",commitment:o},c=await s._rpcRequest("simulateTransaction",[r,i]);if(c.error)throw new(0,a.SendTransactionError)("failed to simulate transaction: "+c.error.message,null!==(n=c.result.value.logs)&&void 0!==n?n:void 0);return c.result}})),parcelRequire.register("kDKCF",(function(e,t){parcelRequire("bDdkr")})),parcelRequire.register("ebM1X",(function(e,t){var a,o;function n(e,t="mainnet-beta",o=a.SOLANA_EXPLORER){switch(o){case a.SOLANA_EXPLORER:return`https://explorer.solana.com/tx/${e}?cluster=${t}`;case a.SOLSCAN:return`https://solscan.io/tx/${e}?cluster=${t}`;default:throw new Error(`Explorer type ${o} is not supported.`)}}$parcel$export(e.exports,"generateTXLink",(()=>n)),(o=a||(a={})).SOLANA_EXPLORER="solana-explorer",o.SOLSCAN="solscan"})),parcelRequire.register("dLMcc",(function(e,t){$parcel$export(e.exports,"calculateTxSizeUnsafe",(()=>a));const a=e=>{const{feePayer:t}=e,a=t&&e.signatures.find((e=>e.publicKey.equals(t))),o=e.serializeMessage(),n=e.signatures.length+(a?1:0),s=[];return function(e,t){let a=t;for(;;){let t=127&a;if(a>>=7,0===a){e.push(t);break}t|=128,e.push(t)}}(s,n),s.length+64*n+o.length}})),parcelRequire.register("19nDW",(function(e,t){$parcel$export(e.exports,"RECENT_BLOCKHASH_STUB",(()=>a)),$parcel$export(e.exports,"generateInspectLinkFromBase64",(()=>o));parcelRequire("5cySN");const a="GfVcyD4kkTrj4bKc7WA9sZCin9JDbdT4Zkd3EittNR1W",o=(e,t)=>`https://${"mainnet-beta"===e?"":`${e}.`}anchor.so/tx/inspector?message=${encodeURIComponent(t)}`})),parcelRequire.register("5Cu3W",(function(e,t){$parcel$export(e.exports,"PendingTransaction",(()=>parcelRequire("1Vyln").PendingTransaction)),$parcel$export(e.exports,"TransactionEnvelope",(()=>parcelRequire("aDnKc").TransactionEnvelope)),parcelRequire("kEPnf"),parcelRequire("1Vyln"),parcelRequire("hyOm3"),parcelRequire("aDnKc"),parcelRequire("gZWMS"),parcelRequire("19nDW")})),parcelRequire.register("kEPnf",(function(e,t){parcelRequire("fkiBA"),parcelRequire("hyOm3")})),parcelRequire.register("hyOm3",(function(e,t){$parcel$export(e.exports,"getTransactionInstructionError",(()=>o));const a=new Map([["GenericError","generic instruction error"],["InvalidArgument","invalid program argument"],["InvalidInstructionData","invalid instruction data"],["InvalidAccountData","invalid account data for instruction"],["AccountDataTooSmall","account data too small for instruction"],["InsufficientFunds","insufficient funds for instruction"],["IncorrectProgramId","incorrect program id for instruction"],["MissingRequiredSignature","missing required signature for instruction"],["AccountAlreadyInitialized","instruction requires an uninitialized account"],["UninitializedAccount","instruction requires an initialized account"],["UnbalancedInstruction","sum of account balances before and after instruction do not match"],["ModifiedProgramId","instruction modified the program id of an account"],["ExternalAccountLamportSpend","instruction spent from the balance of an account it does not own"],["ExternalAccountDataModified","instruction modified data of an account it does not own"],["ReadonlyLamportChange","instruction changed the balance of a read-only account"],["ReadonlyDataModified","instruction modified data of a read-only account"],["DuplicateAccountIndex","instruction contains duplicate accounts"],["ExecutableModified","instruction changed executable bit of an account"],["RentEpochModified","instruction modified rent epoch of an account"],["NotEnoughAccountKeys","insufficient account keys for instruction"],["AccountDataSizeChanged","non-system instruction changed account size"],["AccountNotExecutable","instruction expected an executable account"],["AccountBorrowFailed","instruction tries to borrow reference for an account which is already borrowed"],["AccountBorrowOutstanding","instruction left account with an outstanding borrowed reference"],["DuplicateAccountOutOfSync","instruction modifications of multiply-passed account differ"],["Custom","custom program error: {0}"],["InvalidError","program returned invalid error code"],["ExecutableDataModified","instruction changed executable accounts data"],["ExecutableLamportChange","instruction changed the balance of a executable account"],["ExecutableAccountNotRentExempt","executable accounts must be rent exempt"],["UnsupportedProgramId","Unsupported program id"],["CallDepth","Cross-program invocation call depth too deep"],["MissingAccount","An account required by the instruction is missing"],["ReentrancyNotAllowed","Cross-program invocation reentrancy not allowed for this instruction"],["MaxSeedLengthExceeded","Length of the seed is too long for address generation"],["InvalidSeeds","Provided seeds do not result in a valid address"],["InvalidRealloc","Failed to reallocate account data"],["ComputationalBudgetExceeded","Computational budget exceeded"],["PrivilegeEscalation","Cross-program invocation with unauthorized signer or writable account"],["ProgramEnvironmentSetupFailure","Failed to create program execution environment"],["ProgramFailedToComplete","Program failed to complete"],["ProgramFailedToCompile","Program failed to compile"],["Immutable","Account is immutable"],["IncorrectAuthority","Incorrect authority provided"],["BorshIoError","Failed to serialize or deserialize account data: {0}"],["AccountNotRentExempt","An account does not have enough lamports to be rent-exempt"],["InvalidAccountOwner","Invalid account owner"],["ArithmeticOverflow","Program arithmetic overflowed"],["UnsupportedSysvar","Unsupported sysvar"],["IllegalOwner","Provided owner is not allowed"]]);function o(e){if(e&&"object"==typeof e&&"InstructionError"in e){const t=e.InstructionError;return{index:t[0],message:n(t[1])}}}function n(e){let t,o=null;if("string"==typeof e){const t=a.get(e);if(t)return t}else"Custom"in e?(t=a.get("Custom"),o=e.Custom):"BorshIoError"in e&&(t=a.get("BorshIoError"),o=e.BorshIoError);return t&&o?t.replace("{0}",o):"Unknown instruction error"}})),parcelRequire.register("1Vyln",(function(e,t){$parcel$export(e.exports,"PendingTransaction",(()=>s));var a=parcelRequire("5iOgR"),o=parcelRequire("ebM1X"),n=parcelRequire("gZWMS");class s{constructor(e,t){this.connection=e,this.signature=t,this._receipt=null}get receipt(){return this._receipt}async wait({commitment:e="confirmed",maxSupportedTransactionVersion:t=0,useWebsocket:a=!0,...o}={}){return this._receipt?this._receipt:a?(await this.confirm({commitment:e,...o}),await this.pollForReceipt({commitment:e,maxSupportedTransactionVersion:t})):await this.pollForReceipt({commitment:e,maxSupportedTransactionVersion:t,...o})}async pollForReceipt({commitment:e="confirmed",maxSupportedTransactionVersion:t=0,...o}={}){const s=await $parcel$interopDefault(a)((async a=>{const o=await this.connection.getTransaction(this.signature,{commitment:e,maxSupportedTransactionVersion:t});if(o)return new(0,n.TransactionReceipt)(this.signature,o);a(new Error("Error fetching transaction"))}),{retries:5,minTimeout:500,...o});if(!s)throw new Error("transaction could not be confirmed");return this._receipt=s,s}async awaitSignatureConfirmation(e="confirmed"){const{value:t}=await this.connection.confirmTransaction(this.signature,e);if(t.err)throw t.err;return this.signature}async confirm({commitment:e="confirmed",blockhash:t,lastValidBlockHeight:a}){let o;if(o=t&&a?(await this.connection.confirmTransaction({signature:this.signature,blockhash:t,lastValidBlockHeight:a},e)).value:(await this.connection.confirmTransaction(this.signature,e)).value,o.err)throw new Error(`Transaction ${this.signature} failed (${JSON.stringify(o)})`);return this.signature}generateSolanaExplorerLink(e="mainnet-beta"){return(0,o.generateTXLink)(this.signature,e)}}})),parcelRequire.register("5iOgR",(function(e,t){"use strict";var a=parcelRequire("1lJv3"),o=parcelRequire("9pQwH"),n=Object.prototype.hasOwnProperty;function s(e){return e&&"EPROMISERETRY"===e.code&&n.call(e,"retried")}e.exports=function(e,t){var n,r;return"object"==typeof e&&"function"==typeof t&&(n=t,t=e,e=n),r=o.operation(t),new Promise((function(t,o){r.attempt((function(n){Promise.resolve().then((function(){return e((function(e){throw s(e)&&(e=e.retried),a(new Error("Retrying"),"EPROMISERETRY",{retried:e})}),n)})).then(t,(function(e){s(e)&&(e=e.retried,r.retry(e||new Error))||o(e)}))}))}))}})),parcelRequire.register("1lJv3",(function(e,t){"use strict";function a(e,t){for(const a in t)Object.defineProperty(e,a,{value:t[a],enumerable:!0,configurable:!0});return e}e.exports=function(e,t,o){if(!e||"string"==typeof e)throw new TypeError("Please pass an Error to err-code");o||(o={}),"object"==typeof t&&(o=t,t=void 0),null!=t&&(o.code=t);try{return a(e,o)}catch(t){o.message=e.message,o.stack=e.stack;const n=function(){};return n.prototype=Object.create(Object.getPrototypeOf(e)),a(new n,o)}}})),parcelRequire.register("9pQwH",(function(e,t){e.exports=parcelRequire("fZ51c")})),parcelRequire.register("gZWMS",(function(e,t){$parcel$export(e.exports,"TransactionReceipt",(()=>n));var a=parcelRequire("fkiBA"),o=(parcelRequire("SKc6I"),parcelRequire("ebM1X"));parcelRequire("1Vyln");class n{constructor(e,t){this.signature=e,this.response=t}getEvents(e){var t;const a=null===(t=this.response.meta)||void 0===t?void 0:t.logMessages;return a&&a.length>0?e(a):[]}printLogs(){var e,t;console.log(null===(t=null===(e=this.response.meta)||void 0===e?void 0:e.logMessages)||void 0===t?void 0:t.join("\n"))}get computeUnits(){var e;const t=null===(e=this.response.meta)||void 0===e?void 0:e.logMessages;(0,a.default)(t,"no logs");const o=t[t.length-2];(0,a.default)(o,"no consume log");const n=o.split(" ")[3];return(0,a.default)(n,"no amount"),parseInt(n)}generateSolanaExplorerLink(e="mainnet-beta"){return(0,o.generateTXLink)(this.signature,e)}}})),parcelRequire.register("cdjBt",(function(e,t){$parcel$export(e.exports,"sendAndSpamRawTx",(()=>n)),parcelRequire("hffDX");var a=parcelRequire("SKc6I"),o=parcelRequire("96LD5");const n=async(e,t,n,{retryTimes:s=o.DEFAULT_RETRY_OPTIONS.retryTimes,retryInterval:r=o.DEFAULT_RETRY_OPTIONS.retryInterval}=o.DEFAULT_RETRY_OPTIONS)=>{const i=await e.sendRawTransaction(t,n);return(async()=>{for(let o=0;oi));var a=parcelRequire("dVsrA");parcelRequire("5Cu3W");var o=parcelRequire("1Vyln");parcelRequire("hffDX");var n=parcelRequire("SKc6I"),s=parcelRequire("96LD5"),r=parcelRequire("cdjBt");class i{constructor(e,t,o=a.DEFAULT_PROVIDER_OPTIONS){this.primaryConnection=e,this.fallbackConnections=t,this.opts=o,this.premiumBroadcaster=new(0,s.SingleConnectionBroadcaster)(e,o)}async getLatestBlockhash(e){var t;return void 0===e&&(e=null!==(t=this.opts.preflightCommitment)&&void 0!==t?t:"confirmed"),await this.premiumBroadcaster.getLatestBlockhash(e)}async getRecentBlockhash(e){var t;return void 0===e&&(e=null!==(t=this.opts.preflightCommitment)&&void 0!==t?t:"confirmed"),await this.premiumBroadcaster.getRecentBlockhash(e)}async _sendRawTransaction(e,t){const a=new(0,o.PendingTransaction)(this.primaryConnection,await(0,r.sendAndSpamRawTx)(this.primaryConnection,e,null!=t?t:this.opts,null!=t?t:s.DEFAULT_RETRY_OPTIONS));return(async()=>{await Promise.all(this.fallbackConnections.map((async a=>{var o;try{await(0,r.sendAndSpamRawTx)(a,e,null!=t?t:this.opts,null!==(o=null==t?void 0:t.fallbackRetryOptions)&&void 0!==o?o:s.DEFAULT_FALLBACK_RETRY_OPTIONS)}catch(e){console.warn("[Broadcaster] _sendRawTransaction error",e)}})))})(),a}async broadcast(e,{printLogs:t=!0,...a}=this.opts){if(0===e.signatures.length)throw new Error("Transaction must be signed before broadcasting.");const o=e.serialize();return t?await this._sendRawTransaction(o,a):await(0,n.suppressConsoleErrorAsync)((async()=>await this._sendRawTransaction(o,a)))}async simulate(e,t){var a,o,{commitment:n=(null!==(a=this.opts.preflightCommitment)&&void 0!==a?a:"confirmed"),verifySigners:s=!0}=void 0===t?{commitment:null!==(o=this.opts.preflightCommitment)&&void 0!==o?o:"confirmed",verifySigners:!0}:t;if(s&&0===e.signatures.length)throw new Error("Transaction must be signed before simulating.");return this.premiumBroadcaster.simulate(e,{commitment:n,verifySigners:s})}}})),parcelRequire.register("fMPw9",(function(e,t){})),parcelRequire.register("4o96Z",(function(e,t){})),parcelRequire.register("hym4F",(function(e,t){$parcel$export(e.exports,"SignerWallet",(()=>o));var a=parcelRequire("dVsrA");class o{constructor(e){this.signer=e}get publicKey(){return this.signer.publicKey}signAllTransactions(e){return Promise.resolve(e.map((e=>(e.partialSign(this.signer),e))))}signTransaction(e){return e.partialSign(this.signer),Promise.resolve(e)}createProvider(e,t,o){return a.SolanaProvider.load({connection:e,sendConnection:t,wallet:this,opts:o})}}})),parcelRequire.register("1VUfg",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.transaction=e.exports.pda=e.exports.instruction=e.exports.accounts=void 0;var a=parcelRequire("cCkPw");e.exports.accounts=a.__importStar(parcelRequire("fcHsS")),a.__exportStar(parcelRequire("7K6qh"),e.exports),e.exports.instruction=a.__importStar(parcelRequire("82oVt")),e.exports.pda=a.__importStar(parcelRequire("fIYbO")),e.exports.transaction=a.__importStar(parcelRequire("1aM9m"))})),parcelRequire.register("cCkPw",(function(e,t){$parcel$export(e.exports,"__extends",(()=>o)),$parcel$export(e.exports,"__assign",(()=>n)),$parcel$export(e.exports,"__rest",(()=>s)),$parcel$export(e.exports,"__awaiter",(()=>r)),$parcel$export(e.exports,"__generator",(()=>i)),$parcel$export(e.exports,"__exportStar",(()=>d)),$parcel$export(e.exports,"__spreadArray",(()=>l)),$parcel$export(e.exports,"__importStar",(()=>u));var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},a(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var n=function(){return n=Object.assign||function(e){for(var t,a=1,o=arguments.length;a0&&n[n.length-1])||6!==i[0]&&2!==i[0])){r=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]{var i;const c=new a.AnchorProvider(e,t,{});return new a.Program(s.PAYMENT_MANAGER_IDL,s.PAYMENT_MANAGER_ADDRESS,c).instruction.init({name:o,feeCollector:r.feeCollector,makerFeeBasisPoints:r.makerFeeBasisPoints,takerFeeBasisPoints:r.takerFeeBasisPoints,includeSellerFeeBasisPoints:r.includeSellerFeeBasisPoints,royaltyFeeShare:null!==(i=r.royaltyFeeShare)&&void 0!==i?i:null},{accounts:{paymentManager:r.paymentManagerId,authority:r.authority,payer:r.payer,systemProgram:n.SystemProgram.programId}})};e.exports.managePayment=(e,t,n)=>{const r=new a.AnchorProvider(e,t,{});return new a.Program(s.PAYMENT_MANAGER_IDL,s.PAYMENT_MANAGER_ADDRESS,r).instruction.managePayment(n.paymentAmount,{accounts:{paymentManager:n.paymentManagerId,payerTokenAccount:n.payerTokenAccount,feeCollectorTokenAccount:n.feeCollectorTokenAccount,paymentTokenAccount:n.paymentTokenAccount,payer:t.publicKey,tokenProgram:o.TOKEN_PROGRAM_ID}})};e.exports.handlePaymentWithRoyalties=(e,t,n)=>{const r=new a.AnchorProvider(e,t,{});return new a.Program(s.PAYMENT_MANAGER_IDL,s.PAYMENT_MANAGER_ADDRESS,r).instruction.handlePaymentWithRoyalties(n.paymentAmount,{accounts:{paymentManager:n.paymentManagerId,payerTokenAccount:n.payerTokenAccount,feeCollectorTokenAccount:n.feeCollectorTokenAccount,paymentTokenAccount:n.paymentTokenAccount,paymentMint:n.paymentMint,mint:n.mint,mintMetadata:n.mintMetadata,payer:t.publicKey,tokenProgram:o.TOKEN_PROGRAM_ID},remainingAccounts:n.royaltiesRemainingAccounts})};e.exports.handleNativePaymentWithRoyalties=(e,t,o)=>{const r=new a.AnchorProvider(e,t,{});return new a.Program(s.PAYMENT_MANAGER_IDL,s.PAYMENT_MANAGER_ADDRESS,r).instruction.handleNativePaymentWithRoyalties(o.paymentAmount,{accounts:{paymentManager:o.paymentManagerId,feeCollector:o.feeCollector,paymentTarget:o.paymentTarget,payer:t.publicKey,mint:o.mint,mintMetadata:o.mintMetadata,systemProgram:n.SystemProgram.programId},remainingAccounts:o.royaltiesRemainingAccounts})};e.exports.close=(e,t,o,n)=>{const r=new a.AnchorProvider(e,t,{});return new a.Program(s.PAYMENT_MANAGER_IDL,s.PAYMENT_MANAGER_ADDRESS,r).instruction.close({accounts:{paymentManager:o,collector:n||s.CRANK_KEY,closer:t.publicKey}})};e.exports.update=(e,t,o)=>{var r;const i=new a.AnchorProvider(e,t,{});return new a.Program(s.PAYMENT_MANAGER_IDL,s.PAYMENT_MANAGER_ADDRESS,i).instruction.update({authority:o.authority,feeCollector:o.feeCollector,makerFeeBasisPoints:o.makerFeeBasisPoints,takerFeeBasisPoints:o.takerFeeBasisPoints,royaltyFeeShare:null!==(r=o.royaltyFeeShare)&&void 0!==r?r:null},{accounts:{paymentManager:o.paymentManagerId,payer:t.publicKey,systemProgram:n.SystemProgram.programId}})}})),parcelRequire.register("hCp3F",(function(e,t){$parcel$export(e.exports,"TOKEN_PROGRAM_ID",(()=>ze)),$parcel$export(e.exports,"ASSOCIATED_TOKEN_PROGRAM_ID",(()=>He)),$parcel$export(e.exports,"u64",(()=>Je)),$parcel$export(e.exports,"NATIVE_MINT",(()=>Ze)),$parcel$export(e.exports,"MintLayout",(()=>Qe)),$parcel$export(e.exports,"AccountLayout",(()=>et)),$parcel$export(e.exports,"Token",(()=>at));for(var a=parcelRequire("1F0RN"),o=parcelRequire("bDdkr"),n=parcelRequire("5cySN"),s={},r={byteLength:function(e){var t=p(e),a=t[0],o=t[1];return 3*(a+o)/4-o},toByteArray:function(e){var t,a,o=p(e),n=o[0],s=o[1],r=new d(function(e,t,a){return 3*(t+a)/4-a}(0,n,s)),i=0,l=s>0?n-4:n;for(a=0;a>16&255,r[i++]=t>>8&255,r[i++]=255&t;2===s&&(t=c[e.charCodeAt(a)]<<2|c[e.charCodeAt(a+1)]>>4,r[i++]=255&t);1===s&&(t=c[e.charCodeAt(a)]<<10|c[e.charCodeAt(a+1)]<<4|c[e.charCodeAt(a+2)]>>2,r[i++]=t>>8&255,r[i++]=255&t);return r},fromByteArray:function(e){for(var t,a=e.length,o=a%3,n=[],s=16383,r=0,c=a-o;rc?c:r+s));1===o?(t=e[a-1],n.push(i[t>>2]+i[t<<4&63]+"==")):2===o&&(t=(e[a-2]<<8)+e[a-1],n.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return n.join("")}},i=[],c=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,u=l.length;m0)throw new Error("Invalid string. Length must be a multiple of 4");var a=e.indexOf("=");return-1===a&&(a=t),[a,a===t?0:4-a%4]}function h(e,t,a){for(var o,n,s=[],r=t;r>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return s.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;var g={ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */read:function(e,t,a,o,n){var s,r,i=8*n-o-1,c=(1<>1,l=-7,m=a?n-1:0,u=a?-1:1,p=e[t+m];for(m+=u,s=p&(1<<-l)-1,p>>=-l,l+=i;l>0;s=256*s+e[t+m],m+=u,l-=8);for(r=s&(1<<-l)-1,s>>=-l,l+=o;l>0;r=256*r+e[t+m],m+=u,l-=8);if(0===s)s=1-d;else{if(s===c)return r?NaN:1/0*(p?-1:1);r+=Math.pow(2,o),s-=d}return(p?-1:1)*r*Math.pow(2,s-o)},write:function(e,t,a,o,n,s){var r,i,c,d=8*s-n-1,l=(1<>1,u=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:s-1,h=o?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,r=l):(r=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-r))<1&&(r--,c*=2),(t+=r+m>=1?u/c:u*Math.pow(2,1-m))*c>=2&&(r++,c/=2),r+m>=l?(i=0,r=l):r+m>=1?(i=(t*c-1)*Math.pow(2,n),r+=m):(i=t*Math.pow(2,m-1)*Math.pow(2,n),r=0));n>=8;e[a+p]=255&i,p+=h,i/=256,n-=8);for(r=r<0;e[a+p]=255&r,p+=h,r/=256,d-=8);e[a+p-h]|=128*g}}; +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +!function(e){const t=r,a=g,o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=i,e.SlowBuffer=function(e){+e!=e&&(e=0);return i.alloc(+e)},e.INSPECT_MAX_BYTES=50;const n=2147483647;function s(e){if(e>n)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,i.prototype),t}function i(e,t,a){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,a)}function c(e,t,a){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const a=0|h(e,t);let o=s(a);const n=o.write(e,t);n!==a&&(o=o.slice(0,n));return o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return u(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return u(e,t,a);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return u(e,t,a);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return i.from(o,t,a);const n=function(e){if(i.isBuffer(e)){const t=0|p(e.length),a=s(t);return 0===a.length||e.copy(a,0,0,t),a}if(void 0!==e.length)return"number"!=typeof e.length||X(e.length)?s(0):m(e);if("Buffer"===e.type&&Array.isArray(e.data))return m(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return d(e),s(e<0?0:0|p(e))}function m(e){const t=e.length<0?0:0|p(e.length),a=s(t);for(let o=0;o=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|e}function h(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const a=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===a)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return V(e).length;default:if(n)return o?-1:_(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,a){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if((a>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,a);case"utf8":case"utf-8":return I(this,t,a);case"ascii":return E(this,t,a);case"latin1":case"binary":return T(this,t,a);case"base64":return A(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,a);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function f(e,t,a){const o=e[t];e[t]=e[a],e[a]=o}function y(e,t,a,o,n){if(0===e.length)return-1;if("string"==typeof a?(o=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),X(a=+a)&&(a=n?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(n)return-1;a=e.length-1}else if(a<0){if(!n)return-1;a=0}if("string"==typeof t&&(t=i.from(t,o)),i.isBuffer(t))return 0===t.length?-1:$(e,t,a,o,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):$(e,[t],a,o,n);throw new TypeError("val must be string, number or Buffer")}function $(e,t,a,o,n){let s,r=1,i=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;r=2,i/=2,c/=2,a/=2}function d(e,t){return 1===r?e[t]:e.readUInt16BE(t*r)}if(n){let o=-1;for(s=a;si&&(a=i-c),s=a;s>=0;s--){let a=!0;for(let o=0;on&&(o=n):o=n;const s=t.length;let r;for(o>s/2&&(o=s/2),r=0;r>8,n=a%256,s.push(n),s.push(o);return s}(t,e.length-a),e,a,o)}function A(e,a,o){return 0===a&&o===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(a,o))}function I(e,t,a){a=Math.min(e.length,a);const o=[];let n=t;for(;n239?4:t>223?3:t>191?2:1;if(n+r<=a){let a,o,i,c;switch(r){case 1:t<128&&(s=t);break;case 2:a=e[n+1],128==(192&a)&&(c=(31&t)<<6|63&a,c>127&&(s=c));break;case 3:a=e[n+1],o=e[n+2],128==(192&a)&&128==(192&o)&&(c=(15&t)<<12|(63&a)<<6|63&o,c>2047&&(c<55296||c>57343)&&(s=c));break;case 4:a=e[n+1],o=e[n+2],i=e[n+3],128==(192&a)&&128==(192&o)&&128==(192&i)&&(c=(15&t)<<18|(63&a)<<12|(63&o)<<6|63&i,c>65535&&c<1114112&&(s=c))}}null===s?(s=65533,r=1):s>65535&&(s-=65536,o.push(s>>>10&1023|55296),s=56320|1023&s),o.push(s),n+=r}return function(e){const t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);let a="",o=0;for(;oo.length?(i.isBuffer(t)||(t=i.from(t)),t.copy(o,n)):Uint8Array.prototype.set.call(o,t,n);else{if(!i.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,n)}n+=t.length}return o},i.byteLength=h,i.prototype._isBuffer=!0,i.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;ta&&(t+=" ... "),""},o&&(i.prototype[o]=i.prototype.inspect),i.prototype.compare=function(e,t,a,o,n){if(J(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===a&&(a=e?e.length:0),void 0===o&&(o=0),void 0===n&&(n=this.length),t<0||a>e.length||o<0||n>this.length)throw new RangeError("out of range index");if(o>=n&&t>=a)return 0;if(o>=n)return-1;if(t>=a)return 1;if(this===e)return 0;let s=(n>>>=0)-(o>>>=0),r=(a>>>=0)-(t>>>=0);const c=Math.min(s,r),d=this.slice(o,n),l=e.slice(t,a);for(let e=0;e>>=0,isFinite(a)?(a>>>=0,void 0===o&&(o="utf8")):(o=a,a=void 0)}const n=this.length-t;if((void 0===a||a>n)&&(a=n),e.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let s=!1;for(;;)switch(o){case"hex":return w(this,e,t,a);case"utf8":case"utf-8":return k(this,e,t,a);case"ascii":case"latin1":case"binary":return v(this,e,t,a);case"base64":return x(this,e,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,a);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function E(e,t,a){let o="";a=Math.min(e.length,a);for(let n=t;no)&&(a=o);let n="";for(let o=t;oa)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,a,o,n,s){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function N(e,t,a,o,n){q(t,o,n,e,a,7);let s=Number(t&BigInt(4294967295));e[a++]=s,s>>=8,e[a++]=s,s>>=8,e[a++]=s,s>>=8,e[a++]=s;let r=Number(t>>BigInt(32)&BigInt(4294967295));return e[a++]=r,r>>=8,e[a++]=r,r>>=8,e[a++]=r,r>>=8,e[a++]=r,a}function P(e,t,a,o,n){q(t,o,n,e,a,7);let s=Number(t&BigInt(4294967295));e[a+7]=s,s>>=8,e[a+6]=s,s>>=8,e[a+5]=s,s>>=8,e[a+4]=s;let r=Number(t>>BigInt(32)&BigInt(4294967295));return e[a+3]=r,r>>=8,e[a+2]=r,r>>=8,e[a+1]=r,r>>=8,e[a]=r,a+8}function B(e,t,a,o,n,s){if(a+o>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function L(e,t,o,n,s){return t=+t,o>>>=0,s||B(e,0,o,4),a.write(e,t,o,n,23,4),o+4}function F(e,t,o,n,s){return t=+t,o>>>=0,s||B(e,0,o,8),a.write(e,t,o,n,52,8),o+8}i.prototype.slice=function(e,t){const a=this.length;(e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(t=void 0===t?a:~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),t>>=0,t>>>=0,a||M(e,t,this.length);let o=this[e],n=1,s=0;for(;++s>>=0,t>>>=0,a||M(e,t,this.length);let o=this[e+--t],n=1;for(;t>0&&(n*=256);)o+=this[e+--t]*n;return o},i.prototype.readUint8=i.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readBigUInt64LE=Z((function(e){W(e>>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||z(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+a*2**24;return BigInt(o)+(BigInt(n)<>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||z(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+a;return(BigInt(o)<>>=0,t>>>=0,a||M(e,t,this.length);let o=this[e],n=1,s=0;for(;++s=n&&(o-=Math.pow(2,8*t)),o},i.prototype.readIntBE=function(e,t,a){e>>>=0,t>>>=0,a||M(e,t,this.length);let o=t,n=1,s=this[e+--o];for(;o>0&&(n*=256);)s+=this[e+--o]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*t)),s},i.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);const a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);const a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readBigInt64LE=Z((function(e){W(e>>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||z(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(a<<24);return(BigInt(o)<>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||z(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<>>=0,t||M(e,4,this.length),a.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),a.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),a.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),a.read(this,e,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,t,a,o){if(e=+e,t>>>=0,a>>>=0,!o){D(this,e,t,a,Math.pow(2,8*a)-1,0)}let n=1,s=0;for(this[t]=255&e;++s>>=0,a>>>=0,!o){D(this,e,t,a,Math.pow(2,8*a)-1,0)}let n=a-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+a},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,1,255,0),this[t]=255&e,t+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigUInt64LE=Z((function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),i.prototype.writeBigUInt64BE=Z((function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),i.prototype.writeIntLE=function(e,t,a,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*a-1);D(this,e,t,a,o-1,-o)}let n=0,s=1,r=0;for(this[t]=255&e;++n>0)-r&255;return t+a},i.prototype.writeIntBE=function(e,t,a,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*a-1);D(this,e,t,a,o-1,-o)}let n=a-1,s=1,r=0;for(this[t+n]=255&e;--n>=0&&(s*=256);)e<0&&0===r&&0!==this[t+n+1]&&(r=1),this[t+n]=(e/s>>0)-r&255;return t+a},i.prototype.writeInt8=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeInt32LE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,a){return e=+e,t>>>=0,a||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigInt64LE=Z((function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),i.prototype.writeBigInt64BE=Z((function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),i.prototype.writeFloatLE=function(e,t,a){return L(this,e,t,!0,a)},i.prototype.writeFloatBE=function(e,t,a){return L(this,e,t,!1,a)},i.prototype.writeDoubleLE=function(e,t,a){return F(this,e,t,!0,a)},i.prototype.writeDoubleBE=function(e,t,a){return F(this,e,t,!1,a)},i.prototype.copy=function(e,t,a,o){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(a||(a=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"==typeof e)for(n=t;n=o+4;a-=3)t=`_${e.slice(a-3,a)}${t}`;return`${e.slice(0,a)}${t}`}function q(e,t,a,o,n,s){if(e>a||e3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${8*(s+1)}${o}`:`>= -(2${o} ** ${8*(s+1)-1}${o}) and < 2 ** ${8*(s+1)-1}${o}`:`>= ${t}${o} and <= ${a}${o}`,new K.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,a){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+a]||z(t,e.length-(a+1))}(o,n,s)}function W(e,t){if("number"!=typeof e)throw new K.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,a){if(Math.floor(e)!==e)throw W(e,a),new K.ERR_OUT_OF_RANGE(a||"offset","an integer",e);if(t<0)throw new K.ERR_BUFFER_OUT_OF_BOUNDS;throw new K.ERR_OUT_OF_RANGE(a||"offset",`>= ${a?1:0} and <= ${t}`,e)}G("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),G("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),G("ERR_OUT_OF_RANGE",(function(e,t,a){let o=`The value of "${e}" is out of range.`,n=a;return Number.isInteger(a)&&Math.abs(a)>2**32?n=j(String(a)):"bigint"==typeof a&&(n=String(a),(a>BigInt(2)**BigInt(32)||a<-(BigInt(2)**BigInt(32)))&&(n=j(n)),n+="n"),o+=` It must be ${t}. Received ${n}`,o}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function _(e,t){let a;t=t||1/0;const o=e.length;let n=null;const s=[];for(let r=0;r55295&&a<57344){if(!n){if(a>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(r+1===o){(t-=3)>-1&&s.push(239,191,189);continue}n=a;continue}if(a<56320){(t-=3)>-1&&s.push(239,191,189),n=a;continue}a=65536+(n-55296<<10|a-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,a<128){if((t-=1)<0)break;s.push(a)}else if(a<2048){if((t-=2)<0)break;s.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;s.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return s}function V(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,a,o){let n;for(n=0;n=t.length||n>=e.length);++n)t[n+a]=e[n];return n}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const O=function(){const e="0123456789abcdef",t=new Array(256);for(let a=0;a<16;++a){const o=16*a;for(let n=0;n<16;++n)t[o+n]=e[a]+e[n]}return t}();function Z(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}}(s);var b=void 0!==$parcel$global?$parcel$global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},f="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e};function y(e,t){var a={seen:[],stylize:w};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),R(t)?a.showHidden=t:t&&function(e,t){if(!t||!T(t))return e;var a=Object.keys(t),o=a.length;for(;o--;)e[a[o]]=t[a[o]]}(a,t),S(a.showHidden)&&(a.showHidden=!1),S(a.depth)&&(a.depth=2),S(a.colors)&&(a.colors=!1),S(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=$),k(a,e,a.depth)}function $(e,t){var a=y.styles[t];return a?"["+y.colors[a][0]+"m"+e+"["+y.colors[a][1]+"m":e}function w(e,t){return e}function k(e,t,a){if(e.customInspect&&t&&M(t.inspect)&&t.inspect!==y&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(a,e);return I(o)||(o=k(e,o,a)),o}var n=function(e,t){if(S(t))return e.stylize("undefined","undefined");if(I(t)){var a="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(a,"string")}if(o=t,"number"==typeof o)return e.stylize(""+t,"number");var o;if(R(t))return e.stylize(""+t,"boolean");if(A(t))return e.stylize("null","null")}(e,t);if(n)return n;var s=Object.keys(t),r=function(e){var t={};return e.forEach((function(e,a){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),U(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return v(t);if(0===s.length){if(M(t)){var i=t.name?": "+t.name:"";return e.stylize("[Function"+i+"]","special")}if(E(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(C(t))return e.stylize(Date.prototype.toString.call(t),"date");if(U(t))return v(t)}var c,d,l="",m=!1,u=["{","}"];(c=t,Array.isArray(c)&&(m=!0,u=["[","]"]),M(t))&&(l=" [Function"+(t.name?": "+t.name:"")+"]");return E(t)&&(l=" "+RegExp.prototype.toString.call(t)),C(t)&&(l=" "+Date.prototype.toUTCString.call(t)),U(t)&&(l=" "+v(t)),0!==s.length||m&&0!=t.length?a<0?E(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),d=m?function(e,t,a,o,n){for(var s=[],r=0,i=t.length;r60?a[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+a[1]:a[0]+t+" "+e.join(", ")+" "+a[1]}(d,l,u)):u[0]+l+u[1]}function v(e){return"["+Error.prototype.toString.call(e)+"]"}function x(e,t,a,o,n,s){var r,i,c;if((c=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?i=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(i=e.stylize("[Setter]","special")),P(o,n)||(r="["+n+"]"),i||(e.seen.indexOf(c.value)<0?(i=A(a)?k(e,c.value,null):k(e,c.value,a-1)).indexOf("\n")>-1&&(i=s?i.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+i.split("\n").map((function(e){return" "+e})).join("\n")):i=e.stylize("[Circular]","special")),S(r)){if(s&&n.match(/^\d+$/))return i;(r=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=e.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=e.stylize(r,"string"))}return r+": "+i}function R(e){return"boolean"==typeof e}function A(e){return null===e}function I(e){return"string"==typeof e}function S(e){return void 0===e}function E(e){return T(e)&&"[object RegExp]"===N(e)}function T(e){return"object"==typeof e&&null!==e}function C(e){return T(e)&&"[object Date]"===N(e)}function U(e){return T(e)&&("[object Error]"===N(e)||e instanceof Error)}function M(e){return"function"==typeof e}function D(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function N(e){return Object.prototype.toString.call(e)}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function B(e,t){if(e===t)return 0;for(var a=e.length,o=t.length,n=0,s=Math.min(a,o);n=0){var i=n.indexOf("\n",r+1);n=n.substring(i+1)}this.stack=n}}}function Y(e,t){return"string"==typeof e?e.length=0;i--)if(c[i]!==d[i])return!1;for(i=c.length-1;i>=0;i--)if(!Z(e[r=c[i]],t[r],a,o))return!1;return!0}(e,t,a,o))}return a?e===t:e==t}function Q(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function ee(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function te(e,t,a,o){var n;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof a&&(o=a,a=null),n=function(e){var t;try{e()}catch(e){t=e}return t}(t),o=(a&&a.name?" ("+a.name+").":".")+(o?" "+o:"."),e&&!n&&X(n,a,"Missing expected exception"+o);var s="string"==typeof o,r=!e&&n&&!a;if((!e&&U(n)&&s&&ee(n,a)||r)&&X(n,a,"Got unwanted exception"+o),e&&n&&a&&!ee(n,a)||!e&&n)throw n}z.AssertionError=V,f(V,Error),z.fail=X,z.ok=O,z.equal=function e(t,a,o){t!=a&&X(t,a,o,"==",e)},z.notEqual=function e(t,a,o){t==a&&X(t,a,o,"!=",e)},z.deepEqual=function e(t,a,o){Z(t,a,!1)||X(t,a,o,"deepEqual",e)},z.deepStrictEqual=function e(t,a,o){Z(t,a,!0)||X(t,a,o,"deepStrictEqual",e)},z.notDeepEqual=function e(t,a,o){Z(t,a,!1)&&X(t,a,o,"notDeepEqual",e)},z.notDeepStrictEqual=function e(t,a,o){Z(t,a,!0)&&X(t,a,o,"notDeepStrictEqual",e)},z.strictEqual=function e(t,a,o){t!==a&&X(t,a,o,"===",e)},z.notStrictEqual=function e(t,a,o){t===a&&X(t,a,o,"!==",e)},z.throws=function(e,t,a){te(!0,e,t,a)},z.doesNotThrow=function(e,t,a){te(!1,e,t,a)},z.ifError=function(e){if(e)throw e};var ae={};class oe{constructor(e,t){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}decode(e,t){throw new Error("Layout is abstract")}encode(e,t,a){throw new Error("Layout is abstract")}getSpan(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){const t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}}function ne(e,t){return t.property?e+"["+t.property+"]":e}ae.Layout=oe,ae.nameWithProperty=ne,ae.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(e.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof oe))throw new TypeError("layout must be a Layout");if(t.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=()=>new e,Object.defineProperty(e.prototype,"encode",{value:function(e,a){return t.encode(this,e,a)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,a){return t.decode(e,a)},writable:!0})};class se extends oe{isCount(){throw new Error("ExternalLayout is abstract")}}class re extends se{constructor(e,t){if(void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");super(-1,t),this.elementSpan=e}isCount(){return!0}decode(e,t){void 0===t&&(t=0);const a=e.length-t;return Math.floor(a/this.elementSpan)}encode(e,t,a){return 0}}class ie extends se{constructor(e,t,a){if(!(e instanceof oe))throw new TypeError("layout must be a Layout");if(void 0===t)t=0;else if(!Number.isInteger(t))throw new TypeError("offset must be integer or undefined");super(e.span,a||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof ce||this.layout instanceof de}decode(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}encode(e,t,a){return void 0===a&&(a=0),this.layout.encode(e,t,a+this.offset)}}class ce extends oe{constructor(e,t){if(super(e,t),6e+o.encode(n,t,a+e)),0);return this.count instanceof se&&this.count.encode(e.length,t,a),n}}class Re extends oe{constructor(e,t,a){if(!Array.isArray(e)||!e.reduce(((e,t)=>e&&t instanceof oe),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof t&&void 0===a&&(a=t,t=void 0);for(const t of e)if(0>t.span&&void 0===t.property)throw new Error("fields cannot contain unnamed variable-length layout");let o=-1;try{o=e.reduce(((e,t)=>e+t.getSpan()),0)}catch(e){}super(o,t),this.fields=e,this.decodePrefixes=!!a}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let a=0;try{a=this.fields.reduce(((a,o)=>{const n=o.getSpan(e,t);return t+=n,a+n}),0)}catch(e){throw new RangeError("indeterminate span")}return a}decode(e,t){void 0===t&&(t=0);const a=this.makeDestinationObject();for(const o of this.fields)if(void 0!==o.property&&(a[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break;return a}encode(e,t,a){void 0===a&&(a=0);const o=a;let n=0,s=0;for(const o of this.fields){let r=o.span;if(s=0r&&(r=o.getSpan(t,a)))}n=a,a+=r}return n+s-o}fromArray(e){const t=this.makeDestinationObject();for(const a of this.fields)void 0!==a.property&&0a.span?t=-1:0<=t&&(t+=a.span)}}}class Ae{constructor(e){this.property=e}decode(){throw new Error("UnionDiscriminator is abstract")}encode(){throw new Error("UnionDiscriminator is abstract")}}class Ie extends Ae{constructor(e,t){if(!(e instanceof se&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,a){return this.layout.encode(e,t,a)}}class Se extends oe{constructor(e,t,a){const o=e instanceof ce||e instanceof de;if(o)e=new Ie(new ie(e));else if(e instanceof se&&e.isCount())e=new Ie(e);else if(!(e instanceof Ae))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===t&&(t=null),!(null===t||t instanceof oe))throw new TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw new Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let n=-1;t&&(n=t.span,0<=n&&o&&(n+=e.layout.span)),super(n,a),this.discriminator=e,this.usesPrefixDiscriminator=o,this.defaultLayout=t,this.registry={};let s=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return s(e)},this.configGetSourceVariant=function(e){s=e.bind(this)}}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);const a=this.getVariant(e,t);if(!a)throw new Error("unable to determine span for unrecognized variant");return a.getSpan(e,t)}defaultGetSourceVariant(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;const t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(const t in this.registry){const a=this.registry[t];if(e.hasOwnProperty(a.property))return a}throw new Error("unable to infer src variant")}decode(e,t){let a;void 0===t&&(t=0);const o=this.discriminator,n=o.decode(e,t);let s=this.registry[n];if(void 0===s){let r=0;s=this.defaultLayout,this.usesPrefixDiscriminator&&(r=o.layout.span),a=this.makeDestinationObject(),a[o.property]=n,a[s.property]=this.defaultLayout.decode(e,t+r)}else a=s.decode(e,t);return a}encode(e,t,a){void 0===a&&(a=0);const o=this.getSourceVariant(e);if(void 0===o){const o=this.discriminator,n=this.defaultLayout;let s=0;return this.usesPrefixDiscriminator&&(s=o.layout.span),o.encode(e[o.property],t,a),s+n.encode(e[n.property],t,a+s)}return o.encode(e,t,a)}addVariant(e,t,a){const o=new Ee(this,e,t,a);return this.registry[e]=o,o}getVariant(e,t){let a=e;return s.Buffer.isBuffer(e)&&(void 0===t&&(t=0),a=this.discriminator.decode(e,t)),this.registry[a]}}class Ee extends oe{constructor(e,t,a,o){if(!(e instanceof Se))throw new TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===o&&(o=a,a=null),a){if(!(a instanceof oe))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}let n=e.span;0>e.span&&(n=a?a.span:0,0<=n&&e.usesPrefixDiscriminator&&(n+=e.discriminator.layout.span)),super(n,o),this.union=e,this.variant=t,this.layout=a||null}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let a=0;return this.union.usesPrefixDiscriminator&&(a=this.union.discriminator.layout.span),a+this.layout.getSpan(e,t+a)}decode(e,t){const a=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw new Error("variant mismatch");let o=0;return this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout?a[this.property]=this.layout.decode(e,t+o):this.property?a[this.property]=!0:this.union.usesPrefixDiscriminator&&(a[this.union.discriminator.property]=this.variant),a}encode(e,t,a){void 0===a&&(a=0);let o=0;if(this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,a);let n=o;if(this.layout&&(this.layout.encode(e[this.property],t,a+o),n+=this.layout.getSpan(t,a+o),0<=this.union.span&&n>this.union.span))throw new Error("encoded variant overruns containing union");return n}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function Te(e){return 0>e&&(e+=4294967296),e}class Ce extends oe{constructor(e,t,a){if(!(e instanceof ce||e instanceof de))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof t&&void 0===a&&(a=t,t=void 0),4=t)throw new TypeError("bits must be positive integer");const o=8*e.span,n=e.fields.reduce(((e,t)=>e+t.bits),0);if(t+n>o)throw new Error("bits too long for span remainder ("+(o-n)+" of "+o+" remain)");this.container=e,this.bits=t,this.valueMask=(1<>>this.start}encode(e){if(!Number.isInteger(e)||e!==Te(e&this.valueMask))throw new TypeError(ne("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const t=this.container._packedGetValue(),a=Te(e<a&&(a=this.length.decode(e,t)),a}decode(e,t){void 0===t&&(t=0);let a=this.span;return 0>a&&(a=this.length.decode(e,t)),e.slice(t,t+a)}encode(e,t,a){let o=this.length;if(this.length instanceof se&&(o=e.length),!s.Buffer.isBuffer(e)||o!==e.length)throw new TypeError(ne("Blob.encode",this)+" requires (length "+o+") Buffer as src");if(a+o>t.length)throw new RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),a,o,"hex"),this.length instanceof se&&this.length.encode(o,t,a),o}}class Ne extends oe{constructor(e){super(-1,e)}getSpan(e,t){if(!s.Buffer.isBuffer(e))throw new TypeError("b must be a Buffer");void 0===t&&(t=0);let a=t;for(;at.length)throw new RangeError("encoding overruns Buffer");return o.copy(t,a),t[a+n]=0,n+1}}class Pe extends oe{constructor(e,t){if("string"==typeof e&&void 0===t&&(t=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");super(-1,t),this.maxSpan=e}getSpan(e,t){if(!s.Buffer.isBuffer(e))throw new TypeError("b must be a Buffer");return void 0===t&&(t=0),e.length-t}decode(e,t,a){void 0===t&&(t=0);let o=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return o.copy(t,a),n}}class Be extends oe{constructor(e,t){super(0,t),this.value=e}decode(e,t,a){return this.value}encode(e,t,a){return 0}}ae.ExternalLayout=se,ae.GreedyCount=re,ae.OffsetLayout=ie,ae.UInt=ce,ae.UIntBE=de,ae.Int=le,ae.IntBE=me,ae.Float=$e,ae.FloatBE=we,ae.Double=ke,ae.DoubleBE=ve,ae.Sequence=xe,ae.Structure=Re,ae.UnionDiscriminator=Ae,ae.UnionLayoutDiscriminator=Ie,ae.Union=Se,ae.VariantLayout=Ee,ae.BitStructure=Ce,ae.BitField=Ue,ae.Boolean=Me,ae.Blob=De,ae.CString=Ne,ae.UTF8=Pe,ae.Constant=Be,ae.greedy=(e,t)=>new re(e,t),ae.offset=(e,t,a)=>new ie(e,t,a);var Le=ae.u8=e=>new ce(1,e);ae.u16=e=>new ce(2,e),ae.u24=e=>new ce(3,e);var Fe=ae.u32=e=>new ce(4,e);ae.u40=e=>new ce(5,e),ae.u48=e=>new ce(6,e),ae.nu64=e=>new ge(e),ae.u16be=e=>new de(2,e),ae.u24be=e=>new de(3,e),ae.u32be=e=>new de(4,e),ae.u40be=e=>new de(5,e),ae.u48be=e=>new de(6,e),ae.nu64be=e=>new be(e),ae.s8=e=>new le(1,e),ae.s16=e=>new le(2,e),ae.s24=e=>new le(3,e),ae.s32=e=>new le(4,e),ae.s40=e=>new le(5,e),ae.s48=e=>new le(6,e),ae.ns64=e=>new fe(e),ae.s16be=e=>new me(2,e),ae.s24be=e=>new me(3,e),ae.s32be=e=>new me(4,e),ae.s40be=e=>new me(5,e),ae.s48be=e=>new me(6,e),ae.ns64be=e=>new ye(e),ae.f32=e=>new $e(e),ae.f32be=e=>new we(e),ae.f64=e=>new ke(e),ae.f64be=e=>new ve(e);var Ke=ae.struct=(e,t,a)=>new Re(e,t,a);ae.bits=(e,t,a)=>new Ce(e,t,a),ae.seq=(e,t,a)=>new xe(e,t,a),ae.union=(e,t,a)=>new Se(e,t,a),ae.unionLayoutDiscriminator=(e,t)=>new Ie(e,t);var Ge=ae.blob=(e,t)=>new De(e,t);ae.cstr=e=>new Ne(e),ae.utf8=(e,t)=>new Pe(e,t),ae.const=(e,t)=>new Be(e,t);const je=(e="publicKey")=>Ge(32,e),qe=(e="uint64")=>Ge(8,e);function We(e,t,a,...o){return(0,n.sendAndConfirmTransaction)(t,a,o,{skipPreflight:!1})}const ze=new(0,n.PublicKey)("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),He=new(0,n.PublicKey)("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),_e="Failed to find account",Ve="Invalid account owner";function Ye(e){return s.Buffer.from(e.toBuffer())}class Je extends($parcel$interopDefault(o)){toBuffer(){const e=super.toArray().reverse(),t=s.Buffer.from(e);if(8===t.length)return t;z(t.length<8,"u64 too large");const a=s.Buffer.alloc(8);return t.copy(a),a}static fromBuffer(e){return z(8===e.length,`Invalid buffer length: ${e.length}`),new Je([...e].reverse().map((e=>`00${e.toString(16)}`.slice(-2))).join(""),16)}}function Xe(e){return"publicKey"in e}const Oe={MintTokens:0,FreezeAccount:1,AccountOwner:2,CloseAccount:3},Ze=new(0,n.PublicKey)("So11111111111111111111111111111111111111112"),Qe=Ke([Fe("mintAuthorityOption"),je("mintAuthority"),qe("supply"),Le("decimals"),Le("isInitialized"),Fe("freezeAuthorityOption"),je("freezeAuthority")]),et=Ke([je("mint"),je("owner"),qe("amount"),Fe("delegateOption"),je("delegate"),Le("state"),Fe("isNativeOption"),qe("isNative"),qe("delegatedAmount"),Fe("closeAuthorityOption"),je("closeAuthority")]),tt=Ke([Le("m"),Le("n"),Le("is_initialized"),je("signer1"),je("signer2"),je("signer3"),je("signer4"),je("signer5"),je("signer6"),je("signer7"),je("signer8"),je("signer9"),je("signer10"),je("signer11")]);class at{constructor(e,t,o,n){$parcel$interopDefault(a)(this,"connection",void 0),$parcel$interopDefault(a)(this,"publicKey",void 0),$parcel$interopDefault(a)(this,"programId",void 0),$parcel$interopDefault(a)(this,"associatedProgramId",void 0),$parcel$interopDefault(a)(this,"payer",void 0),Object.assign(this,{connection:e,publicKey:t,programId:o,payer:n,associatedProgramId:He})}static async getMinBalanceRentForExemptMint(e){return await e.getMinimumBalanceForRentExemption(Qe.span)}static async getMinBalanceRentForExemptAccount(e){return await e.getMinimumBalanceForRentExemption(et.span)}static async getMinBalanceRentForExemptMultisig(e){return await e.getMinimumBalanceForRentExemption(tt.span)}static async createMint(e,t,a,o,s,r){const i=n.Keypair.generate(),c=new at(e,i.publicKey,r,t),d=await at.getMinBalanceRentForExemptMint(e),l=new(0,n.Transaction);return l.add(n.SystemProgram.createAccount({fromPubkey:t.publicKey,newAccountPubkey:i.publicKey,lamports:d,space:Qe.span,programId:r})),l.add(at.createInitMintInstruction(r,i.publicKey,s,a,o)),await We(0,e,l,t,i),c}async createAccount(e){const t=await at.getMinBalanceRentForExemptAccount(this.connection),a=n.Keypair.generate(),o=new(0,n.Transaction);o.add(n.SystemProgram.createAccount({fromPubkey:this.payer.publicKey,newAccountPubkey:a.publicKey,lamports:t,space:et.span,programId:this.programId}));const s=this.publicKey;return o.add(at.createInitAccountInstruction(this.programId,s,a.publicKey,e)),await We(0,this.connection,o,this.payer,a),a.publicKey}async createAssociatedTokenAccount(e){const t=await at.getAssociatedTokenAddress(this.associatedProgramId,this.programId,this.publicKey,e);return this.createAssociatedTokenAccountInternal(e,t)}async createAssociatedTokenAccountInternal(e,t){return await We(0,this.connection,(new(0,n.Transaction)).add(at.createAssociatedTokenAccountInstruction(this.associatedProgramId,this.programId,this.publicKey,t,e,this.payer.publicKey)),this.payer),t}async getOrCreateAssociatedAccountInfo(e){const t=await at.getAssociatedTokenAddress(this.associatedProgramId,this.programId,this.publicKey,e);try{return await this.getAccountInfo(t)}catch(a){if(a.message===_e||a.message===Ve){try{await this.createAssociatedTokenAccountInternal(e,t)}catch(e){}return await this.getAccountInfo(t)}throw a}}static async createWrappedNativeAccount(e,t,a,o,s){const r=await at.getMinBalanceRentForExemptAccount(e),i=n.Keypair.generate(),c=new(0,n.Transaction);return c.add(n.SystemProgram.createAccount({fromPubkey:o.publicKey,newAccountPubkey:i.publicKey,lamports:r,space:et.span,programId:t})),c.add(n.SystemProgram.transfer({fromPubkey:o.publicKey,toPubkey:i.publicKey,lamports:s})),c.add(at.createInitAccountInstruction(t,Ze,i.publicKey,a)),await We(0,e,c,o,i),i.publicKey}async createMultisig(e,t){const a=n.Keypair.generate(),o=await at.getMinBalanceRentForExemptMultisig(this.connection),r=new(0,n.Transaction);r.add(n.SystemProgram.createAccount({fromPubkey:this.payer.publicKey,newAccountPubkey:a.publicKey,lamports:o,space:tt.span,programId:this.programId}));let i=[{pubkey:a.publicKey,isSigner:!1,isWritable:!0},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];t.forEach((e=>i.push({pubkey:e,isSigner:!1,isWritable:!1})));const c=Ke([Le("instruction"),Le("m")]),d=s.Buffer.alloc(c.span);return c.encode({instruction:2,m:e},d),r.add({keys:i,programId:this.programId,data:d}),await We(0,this.connection,r,this.payer,a),a.publicKey}async getMintInfo(){const e=await this.connection.getAccountInfo(this.publicKey);if(null===e)throw new Error("Failed to find mint account");if(!e.owner.equals(this.programId))throw new Error(`Invalid mint owner: ${JSON.stringify(e.owner)}`);if(e.data.length!=Qe.span)throw new Error("Invalid mint size");const t=s.Buffer.from(e.data),a=Qe.decode(t);return 0===a.mintAuthorityOption?a.mintAuthority=null:a.mintAuthority=new(0,n.PublicKey)(a.mintAuthority),a.supply=Je.fromBuffer(a.supply),a.isInitialized=0!=a.isInitialized,0===a.freezeAuthorityOption?a.freezeAuthority=null:a.freezeAuthority=new(0,n.PublicKey)(a.freezeAuthority),a}async getAccountInfo(e,t){const a=await this.connection.getAccountInfo(e,t);if(null===a)throw new Error(_e);if(!a.owner.equals(this.programId))throw new Error(Ve);if(a.data.length!=et.span)throw new Error("Invalid account size");const o=s.Buffer.from(a.data),r=et.decode(o);if(r.address=e,r.mint=new(0,n.PublicKey)(r.mint),r.owner=new(0,n.PublicKey)(r.owner),r.amount=Je.fromBuffer(r.amount),0===r.delegateOption?(r.delegate=null,r.delegatedAmount=new Je):(r.delegate=new(0,n.PublicKey)(r.delegate),r.delegatedAmount=Je.fromBuffer(r.delegatedAmount)),r.isInitialized=0!==r.state,r.isFrozen=2===r.state,1===r.isNativeOption?(r.rentExemptReserve=Je.fromBuffer(r.isNative),r.isNative=!0):(r.rentExemptReserve=null,r.isNative=!1),0===r.closeAuthorityOption?r.closeAuthority=null:r.closeAuthority=new(0,n.PublicKey)(r.closeAuthority),!r.mint.equals(this.publicKey))throw new Error(`Invalid account mint: ${JSON.stringify(r.mint)} !== ${JSON.stringify(this.publicKey)}`);return r}async getMultisigInfo(e){const t=await this.connection.getAccountInfo(e);if(null===t)throw new Error("Failed to find multisig");if(!t.owner.equals(this.programId))throw new Error("Invalid multisig owner");if(t.data.length!=tt.span)throw new Error("Invalid multisig size");const a=s.Buffer.from(t.data),o=tt.decode(a);return o.signer1=new(0,n.PublicKey)(o.signer1),o.signer2=new(0,n.PublicKey)(o.signer2),o.signer3=new(0,n.PublicKey)(o.signer3),o.signer4=new(0,n.PublicKey)(o.signer4),o.signer5=new(0,n.PublicKey)(o.signer5),o.signer6=new(0,n.PublicKey)(o.signer6),o.signer7=new(0,n.PublicKey)(o.signer7),o.signer8=new(0,n.PublicKey)(o.signer8),o.signer9=new(0,n.PublicKey)(o.signer9),o.signer10=new(0,n.PublicKey)(o.signer10),o.signer11=new(0,n.PublicKey)(o.signer11),o}async transfer(e,t,a,o,s){let r,i;return Xe(a)?(r=a.publicKey,i=[a]):(r=a,i=o),await We("Transfer",this.connection,(new(0,n.Transaction)).add(at.createTransferInstruction(this.programId,e,t,r,o,s)),this.payer,...i)}async approve(e,t,a,o,s){let r,i;Xe(a)?(r=a.publicKey,i=[a]):(r=a,i=o),await We("Approve",this.connection,(new(0,n.Transaction)).add(at.createApproveInstruction(this.programId,e,t,r,o,s)),this.payer,...i)}async revoke(e,t,a){let o,s;Xe(t)?(o=t.publicKey,s=[t]):(o=t,s=a),await We("Revoke",this.connection,(new(0,n.Transaction)).add(at.createRevokeInstruction(this.programId,e,o,a)),this.payer,...s)}async setAuthority(e,t,a,o,s){let r,i;Xe(o)?(r=o.publicKey,i=[o]):(r=o,i=s),await We("SetAuthority",this.connection,(new(0,n.Transaction)).add(at.createSetAuthorityInstruction(this.programId,e,t,a,r,s)),this.payer,...i)}async mintTo(e,t,a,o){let s,r;Xe(t)?(s=t.publicKey,r=[t]):(s=t,r=a),await We("MintTo",this.connection,(new(0,n.Transaction)).add(at.createMintToInstruction(this.programId,this.publicKey,e,s,a,o)),this.payer,...r)}async burn(e,t,a,o){let s,r;Xe(t)?(s=t.publicKey,r=[t]):(s=t,r=a),await We("Burn",this.connection,(new(0,n.Transaction)).add(at.createBurnInstruction(this.programId,this.publicKey,e,s,a,o)),this.payer,...r)}async closeAccount(e,t,a,o){let s,r;Xe(a)?(s=a.publicKey,r=[a]):(s=a,r=o),await We("CloseAccount",this.connection,(new(0,n.Transaction)).add(at.createCloseAccountInstruction(this.programId,e,t,s,o)),this.payer,...r)}async freezeAccount(e,t,a){let o,s;Xe(t)?(o=t.publicKey,s=[t]):(o=t,s=a),await We("FreezeAccount",this.connection,(new(0,n.Transaction)).add(at.createFreezeAccountInstruction(this.programId,e,this.publicKey,o,a)),this.payer,...s)}async thawAccount(e,t,a){let o,s;Xe(t)?(o=t.publicKey,s=[t]):(o=t,s=a),await We("ThawAccount",this.connection,(new(0,n.Transaction)).add(at.createThawAccountInstruction(this.programId,e,this.publicKey,o,a)),this.payer,...s)}async transferChecked(e,t,a,o,s,r){let i,c;return Xe(a)?(i=a.publicKey,c=[a]):(i=a,c=o),await We("TransferChecked",this.connection,(new(0,n.Transaction)).add(at.createTransferCheckedInstruction(this.programId,e,this.publicKey,t,i,o,s,r)),this.payer,...c)}async approveChecked(e,t,a,o,s,r){let i,c;Xe(a)?(i=a.publicKey,c=[a]):(i=a,c=o),await We("ApproveChecked",this.connection,(new(0,n.Transaction)).add(at.createApproveCheckedInstruction(this.programId,e,this.publicKey,t,i,o,s,r)),this.payer,...c)}async mintToChecked(e,t,a,o,s){let r,i;Xe(t)?(r=t.publicKey,i=[t]):(r=t,i=a),await We("MintToChecked",this.connection,(new(0,n.Transaction)).add(at.createMintToCheckedInstruction(this.programId,this.publicKey,e,r,a,o,s)),this.payer,...i)}async burnChecked(e,t,a,o,s){let r,i;Xe(t)?(r=t.publicKey,i=[t]):(r=t,i=a),await We("BurnChecked",this.connection,(new(0,n.Transaction)).add(at.createBurnCheckedInstruction(this.programId,this.publicKey,e,r,a,o,s)),this.payer,...i)}async syncNative(e){await We(0,this.connection,(new(0,n.Transaction)).add(at.createSyncNativeInstruction(this.programId,e)),this.payer)}static createInitMintInstruction(e,t,a,o,r){let i=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];const c=Ke([Le("instruction"),Le("decimals"),je("mintAuthority"),Le("option"),je("freezeAuthority")]);let d=s.Buffer.alloc(1024);{const e=c.encode({instruction:0,decimals:a,mintAuthority:Ye(o),option:null===r?0:1,freezeAuthority:Ye(r||new(0,n.PublicKey)(0))},d);d=d.slice(0,e)}return new(0,n.TransactionInstruction)({keys:i,programId:e,data:d})}static createInitAccountInstruction(e,t,a,o){const r=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],i=Ke([Le("instruction")]),c=s.Buffer.alloc(i.span);return i.encode({instruction:1},c),new(0,n.TransactionInstruction)({keys:r,programId:e,data:c})}static createTransferInstruction(e,t,a,o,r,i){const c=Ke([Le("instruction"),qe("amount")]),d=s.Buffer.alloc(c.span);c.encode({instruction:3,amount:new Je(i).toBuffer()},d);let l=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0}];return 0===r.length?l.push({pubkey:o,isSigner:!0,isWritable:!1}):(l.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>l.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:l,programId:e,data:d})}static createApproveInstruction(e,t,a,o,r,i){const c=Ke([Le("instruction"),qe("amount")]),d=s.Buffer.alloc(c.span);c.encode({instruction:4,amount:new Je(i).toBuffer()},d);let l=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1}];return 0===r.length?l.push({pubkey:o,isSigner:!0,isWritable:!1}):(l.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>l.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:l,programId:e,data:d})}static createRevokeInstruction(e,t,a,o){const r=Ke([Le("instruction")]),i=s.Buffer.alloc(r.span);r.encode({instruction:5},i);let c=[{pubkey:t,isSigner:!1,isWritable:!0}];return 0===o.length?c.push({pubkey:a,isSigner:!0,isWritable:!1}):(c.push({pubkey:a,isSigner:!1,isWritable:!1}),o.forEach((e=>c.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:c,programId:e,data:i})}static createSetAuthorityInstruction(e,t,a,o,r,i){const c=Ke([Le("instruction"),Le("authorityType"),Le("option"),je("newAuthority")]);let d=s.Buffer.alloc(1024);{const e=c.encode({instruction:6,authorityType:Oe[o],option:null===a?0:1,newAuthority:Ye(a||new(0,n.PublicKey)(0))},d);d=d.slice(0,e)}let l=[{pubkey:t,isSigner:!1,isWritable:!0}];return 0===i.length?l.push({pubkey:r,isSigner:!0,isWritable:!1}):(l.push({pubkey:r,isSigner:!1,isWritable:!1}),i.forEach((e=>l.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:l,programId:e,data:d})}static createMintToInstruction(e,t,a,o,r,i){const c=Ke([Le("instruction"),qe("amount")]),d=s.Buffer.alloc(c.span);c.encode({instruction:7,amount:new Je(i).toBuffer()},d);let l=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0}];return 0===r.length?l.push({pubkey:o,isSigner:!0,isWritable:!1}):(l.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>l.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:l,programId:e,data:d})}static createBurnInstruction(e,t,a,o,r,i){const c=Ke([Le("instruction"),qe("amount")]),d=s.Buffer.alloc(c.span);c.encode({instruction:8,amount:new Je(i).toBuffer()},d);let l=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}];return 0===r.length?l.push({pubkey:o,isSigner:!0,isWritable:!1}):(l.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>l.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:l,programId:e,data:d})}static createCloseAccountInstruction(e,t,a,o,r){const i=Ke([Le("instruction")]),c=s.Buffer.alloc(i.span);i.encode({instruction:9},c);let d=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0}];return 0===r.length?d.push({pubkey:o,isSigner:!0,isWritable:!1}):(d.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>d.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:d,programId:e,data:c})}static createFreezeAccountInstruction(e,t,a,o,r){const i=Ke([Le("instruction")]),c=s.Buffer.alloc(i.span);i.encode({instruction:10},c);let d=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1}];return 0===r.length?d.push({pubkey:o,isSigner:!0,isWritable:!1}):(d.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>d.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:d,programId:e,data:c})}static createThawAccountInstruction(e,t,a,o,r){const i=Ke([Le("instruction")]),c=s.Buffer.alloc(i.span);i.encode({instruction:11},c);let d=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1}];return 0===r.length?d.push({pubkey:o,isSigner:!0,isWritable:!1}):(d.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>d.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:d,programId:e,data:c})}static createTransferCheckedInstruction(e,t,a,o,r,i,c,d){const l=Ke([Le("instruction"),qe("amount"),Le("decimals")]),m=s.Buffer.alloc(l.span);l.encode({instruction:12,amount:new Je(c).toBuffer(),decimals:d},m);let u=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!1,isWritable:!0}];return 0===i.length?u.push({pubkey:r,isSigner:!0,isWritable:!1}):(u.push({pubkey:r,isSigner:!1,isWritable:!1}),i.forEach((e=>u.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:u,programId:e,data:m})}static createApproveCheckedInstruction(e,t,a,o,r,i,c,d){const l=Ke([Le("instruction"),qe("amount"),Le("decimals")]),m=s.Buffer.alloc(l.span);l.encode({instruction:13,amount:new Je(c).toBuffer(),decimals:d},m);let u=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!1,isWritable:!1}];return 0===i.length?u.push({pubkey:r,isSigner:!0,isWritable:!1}):(u.push({pubkey:r,isSigner:!1,isWritable:!1}),i.forEach((e=>u.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:u,programId:e,data:m})}static createMintToCheckedInstruction(e,t,a,o,r,i,c){const d=Ke([Le("instruction"),qe("amount"),Le("decimals")]),l=s.Buffer.alloc(d.span);d.encode({instruction:14,amount:new Je(i).toBuffer(),decimals:c},l);let m=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0}];return 0===r.length?m.push({pubkey:o,isSigner:!0,isWritable:!1}):(m.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>m.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:m,programId:e,data:l})}static createBurnCheckedInstruction(e,t,a,o,r,i,c){const d=Ke([Le("instruction"),qe("amount"),Le("decimals")]),l=s.Buffer.alloc(d.span);d.encode({instruction:15,amount:new Je(i).toBuffer(),decimals:c},l);let m=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}];return 0===r.length?m.push({pubkey:o,isSigner:!0,isWritable:!1}):(m.push({pubkey:o,isSigner:!1,isWritable:!1}),r.forEach((e=>m.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})))),new(0,n.TransactionInstruction)({keys:m,programId:e,data:l})}static createSyncNativeInstruction(e,t){const a=Ke([Le("instruction")]),o=s.Buffer.alloc(a.span);a.encode({instruction:17},o);let r=[{pubkey:t,isSigner:!1,isWritable:!0}];return new(0,n.TransactionInstruction)({keys:r,programId:e,data:o})}static async getAssociatedTokenAddress(e,t,a,o,s=!1){if(!s&&!n.PublicKey.isOnCurve(o.toBuffer()))throw new Error(`Owner cannot sign: ${o.toString()}`);return(await n.PublicKey.findProgramAddress([o.toBuffer(),t.toBuffer(),a.toBuffer()],e))[0]}static createAssociatedTokenAccountInstruction(e,t,a,o,r,i){const c=s.Buffer.alloc(0);let d=[{pubkey:i,isSigner:!0,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];return new(0,n.TransactionInstruction)({keys:d,programId:e,data:c})}}})),parcelRequire.register("fIYbO",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findPaymentManagerAddress=void 0;var a=parcelRequire("39LEJ"),o=parcelRequire("5cySN"),n=parcelRequire("1VUfg");e.exports.findPaymentManagerAddress=async e=>await o.PublicKey.findProgramAddress([a.utils.bytes.utf8.encode(n.PAYMENT_MANAGER_SEED),a.utils.bytes.utf8.encode(e)],n.PAYMENT_MANAGER_ADDRESS)})),parcelRequire.register("1aM9m",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.withUpdate=e.exports.withClose=e.exports.withHandleNativePaymentWithRoyalties=e.exports.withHandlePaymentWithRoyalties=e.exports.withManagePayment=e.exports.withInit=void 0,parcelRequire("4zMJ9");var a=parcelRequire("gcjSq"),o=parcelRequire("5cySN"),n=parcelRequire("fcHsS"),s=parcelRequire("82oVt"),r=parcelRequire("fIYbO"),i=parcelRequire("fv1Rl");e.exports.withInit=async(e,t,a,o,n,i,c,d,l,m=a.publicKey)=>{const[u]=await(0,r.findPaymentManagerAddress)(o);return e.add((0,s.init)(t,a,o,{paymentManagerId:u,feeCollector:n,authority:a.publicKey,makerFeeBasisPoints:i,takerFeeBasisPoints:c,includeSellerFeeBasisPoints:d,royaltyFeeShare:l,payer:m})),[e,u]};e.exports.withManagePayment=async(e,t,a,o,n,i,c,d)=>{const[l]=await(0,r.findPaymentManagerAddress)(o);return e.add((0,s.managePayment)(t,a,{paymentManagerId:l,paymentAmount:n,payerTokenAccount:i,feeCollectorTokenAccount:c,paymentTokenAccount:d})),e};e.exports.withHandlePaymentWithRoyalties=async(e,t,a,n,c,d,l,m,u,p,h,g,b=[])=>{const[f]=await(0,r.findPaymentManagerAddress)(n),y=await(0,i.withRemainingAccountsForHandlePaymentWithRoyalties)(new o.Transaction,t,a,d,m,g,b);return e.add((0,s.handlePaymentWithRoyalties)(t,a,{paymentManagerId:f,paymentAmount:c,payerTokenAccount:u,feeCollectorTokenAccount:p,paymentTokenAccount:h,paymentMint:m,mint:d,mintMetadata:l,royaltiesRemainingAccounts:y})),e};e.exports.withHandleNativePaymentWithRoyalties=async(e,t,a,n,c,d,l,m,u,p,h,g=[])=>{const[b]=await(0,r.findPaymentManagerAddress)(n),f=await(0,i.withRemainingAccountsForHandlePaymentWithRoyalties)(new o.Transaction,t,a,d,m,h,g);return e.add((0,s.handleNativePaymentWithRoyalties)(t,a,{paymentManagerId:b,paymentAmount:c,feeCollector:u,paymentTarget:p,mint:d,mintMetadata:l,royaltiesRemainingAccounts:f})),e};e.exports.withClose=async(e,t,a,o,n=a.publicKey)=>{const[i]=await(0,r.findPaymentManagerAddress)(o);return e.add((0,s.close)(t,a,i,n)),e};e.exports.withUpdate=async(e,t,o,i,c,d,l,m)=>{var u,p,h,g,b;const[f]=await(0,r.findPaymentManagerAddress)(i),y=await(0,a.tryGetAccount)((()=>(0,n.getPaymentManager)(t,f)));if(!y)throw`No payment manager found with name ${i}`;return e.add((0,s.update)(t,o,{paymentManagerId:f,feeCollector:null!==(u=y.parsed.feeCollector)&&void 0!==u?u:c,authority:null!==(p=y.parsed.authority)&&void 0!==p?p:o.publicKey,makerFeeBasisPoints:null!==(h=y.parsed.makerFeeBasisPoints)&&void 0!==h?h:d,takerFeeBasisPoints:null!==(g=y.parsed.takerFeeBasisPoints)&&void 0!==g?g:l,royaltyFeeShare:null!==(b=y.parsed.royaltyFeeShare)&&void 0!==b?b:m})),e}})),parcelRequire.register("4zMJ9",(function(e,t){$parcel$export(e.exports,"findAta",(()=>parcelRequire("gcjSq").findAta)),$parcel$export(e.exports,"tryGetAccount",(()=>parcelRequire("gcjSq").tryGetAccount)),$parcel$export(e.exports,"withFindOrInitAssociatedTokenAccount",(()=>parcelRequire("bfbmm").withFindOrInitAssociatedTokenAccount)),parcelRequire("gcjSq"),parcelRequire("gVQT4"),parcelRequire("9q6YW"),parcelRequire("fntEZ"),parcelRequire("9DmoF"),parcelRequire("5ZASE"),parcelRequire("6mKgC"),parcelRequire("bfbmm"),parcelRequire("3pPMi"),parcelRequire("l7Rax"),parcelRequire("keEC3"),parcelRequire("dI8Ey")})),parcelRequire.register("gcjSq",(function(e,t){$parcel$export(e.exports,"tryGetAccount",(()=>n)),$parcel$export(e.exports,"findAta",(()=>s));var a=parcelRequire("cCkPw"),o=(parcelRequire("h4wzp"),parcelRequire("a1gmT"));parcelRequire("5cySN");function n(e){return(0,a.__awaiter)(this,void 0,void 0,(function*(){try{return yield e()}catch(e){return null}}))}function s(e,t,n){return(0,a.__awaiter)(this,void 0,void 0,(function*(){return o.getAssociatedTokenAddress(e,t,n)}))}})),parcelRequire.register("h4wzp",(function(e,t){$parcel$export(e.exports,"ACCOUNT_SIZE",(()=>p)),$parcel$export(e.exports,"getAccount",(()=>h));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o,n,s=parcelRequire("gKWJK"),r=parcelRequire("hDWD6"),i=parcelRequire("kYNuB"),c=parcelRequire("k9yIP"),d=parcelRequire("2u6ly"),l=(parcelRequire("iXS0s"),parcelRequire("9zmOO")),m=parcelRequire("ajHSv").Buffer;(n=o||(o={}))[n.Uninitialized=0]="Uninitialized",n[n.Initialized=1]="Initialized",n[n.Frozen=2]="Frozen";const u=(0,a.struct)([(0,s.publicKey)("mint"),(0,s.publicKey)("owner"),(0,r.u64)("amount"),(0,a.u32)("delegateOption"),(0,s.publicKey)("delegate"),(0,a.u8)("state"),(0,a.u32)("isNativeOption"),(0,r.u64)("isNative"),(0,r.u64)("delegatedAmount"),(0,a.u32)("closeAuthorityOption"),(0,s.publicKey)("closeAuthority")]),p=u.span;async function h(e,t,a,o=i.TOKEN_PROGRAM_ID){return g(t,await e.getAccountInfo(t,a),o)}function g(e,t,a=i.TOKEN_PROGRAM_ID){if(!t)throw new(0,c.TokenAccountNotFoundError);if(!t.owner.equals(a))throw new(0,c.TokenInvalidAccountOwnerError);if(t.data.lengthp){if(t.data.length===l.MULTISIG_SIZE)throw new(0,c.TokenInvalidAccountSizeError);if(t.data[p]!=d.AccountType.Account)throw new(0,c.TokenInvalidAccountError);s=t.data.slice(p+d.ACCOUNT_TYPE_SIZE)}return{address:e,mint:n.mint,owner:n.owner,amount:n.amount,delegate:n.delegateOption?n.delegate:null,delegatedAmount:n.delegatedAmount,isInitialized:n.state!==o.Uninitialized,isFrozen:n.state===o.Frozen,isNative:!!n.isNativeOption,rentExemptReserve:n.isNativeOption?n.isNative:null,closeAuthority:n.closeAuthorityOption?n.closeAuthority:null,tlvData:s}}})),parcelRequire.register("8uDQh",(function(e,t){$parcel$export(e.exports,"u64",(()=>parcelRequire("hDWD6").u64)),$parcel$export(e.exports,"bool",(()=>parcelRequire("bmANM").bool)),$parcel$export(e.exports,"publicKey",(()=>parcelRequire("gKWJK").publicKey)),parcelRequire("24EnH"),parcelRequire("hDWD6"),parcelRequire("4RJfp"),parcelRequire("bmANM"),parcelRequire("gKWJK")})),parcelRequire.register("24EnH",(function(e,t){$parcel$export(e.exports,"encodeDecode",(()=>a));const a=e=>({decode:e.decode.bind(e),encode:e.encode.bind(e)})})),parcelRequire.register("hDWD6",(function(e,t){$parcel$export(e.exports,"u64",(()=>c)),$parcel$export(e.exports,"u128",(()=>d));var a=parcelRequire("crvhM"),o=parcelRequire("5mzey"),n=parcelRequire("24EnH"),s=parcelRequire("ajHSv").Buffer;const r=e=>t=>{const r=(0,a.blob)(e,t),{encode:i,decode:c}=(0,n.encodeDecode)(r),d=r;return d.decode=(e,t)=>{const a=c(e,t);return(0,o.toBigIntLE)(s.from(a))},d.encode=(t,a,n)=>{const s=(0,o.toBufferLE)(t,e);return i(s,a,n)},d},i=e=>t=>{const r=(0,a.blob)(e,t),{encode:i,decode:c}=(0,n.encodeDecode)(r),d=r;return d.decode=(e,t)=>{const a=c(e,t);return(0,o.toBigIntBE)(s.from(a))},d.encode=(t,a,n)=>{const s=(0,o.toBufferBE)(t,e);return i(s,a,n)},d},c=r(8),d=(i(8),r(16));i(16),r(24),i(24),r(32),i(32)})),parcelRequire.register("4RJfp",(function(e,t){var a=parcelRequire("5s0T4");parcelRequire("24EnH"),parcelRequire("hDWD6");new($parcel$interopDefault(a))("1e+18")})),parcelRequire.register("5s0T4",(function(e,t){!function(t){"use strict";var a,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,s=Math.floor,r="[BigNumber Error] ",i=r+"Number primitive has more than 15 significant digits: ",c=1e14,d=14,l=9007199254740991,m=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],u=1e7,p=1e9;function h(e){var t=0|e;return e>0||e===t?t:t-1}function g(e){for(var t,a,o=1,n=e.length,s=e[0]+"";od^a?1:-1;for(i=(c=n.length)<(d=s.length)?c:d,r=0;rs[r]^a?1:-1;return c==d?0:c>d^a?1:-1}function f(e,t,a,o){if(ea||e!==s(e))throw Error(r+(o||"Argument")+("number"==typeof e?ea?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function y(e){var t=e.c.length-1;return h(e.e/d)==t&&e.c[t]%2!=0}function $(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function w(e,t,a){var o,n;if(t<0){for(n=a+".";++t;n+=a);e=n+e}else if(++t>(o=e.length)){for(n=a,t-=o;--t;n+=a);e+=n}else tL?g.c=g.e=null:e.e=10;m/=10,c++);return void(c>L?g.c=g.e=null:(g.e=c,g.c=[e]))}h=String(e)}else{if(!o.test(h=String(e)))return v(g,h,u);g.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(c=h.indexOf("."))>-1&&(h=h.replace(".","")),(m=h.search(/e/i))>0?(c<0&&(c=m),c+=+h.slice(m+1),h=h.substring(0,m)):c<0&&(c=h.length)}else{if(f(t,2,q.length,"Base"),10==t&&W)return Y(g=new z(e),M+g.e+1,D);if(h=String(e),u="number"==typeof e){if(0*e!=0)return v(g,h,u,t);if(g.s=1/e<0?(h=h.slice(1),-1):1,z.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(i+e)}else g.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(a=q.slice(0,t),c=m=0,p=h.length;mc){c=p;continue}}else if(!r&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){r=!0,m=-1,c=0;continue}return v(g,String(e),u,t)}u=!1,(c=(h=k(h,t,10,g.s)).indexOf("."))>-1?h=h.replace(".",""):c=h.length}for(m=0;48===h.charCodeAt(m);m++);for(p=h.length;48===h.charCodeAt(--p););if(h=h.slice(m,++p)){if(p-=m,u&&z.DEBUG&&p>15&&(e>l||e!==s(e)))throw Error(i+g.s*e);if((c=c-m-1)>L)g.c=g.e=null;else if(c=P)?$(c,r):w(c,r,"0");else if(s=(e=Y(new z(e),t,a)).e,i=(c=g(e.c)).length,1==o||2==o&&(t<=s||s<=N)){for(;ii){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=s-i)>0)for(s+1==i&&(c+=".");t--;c+="0");return e.s<0&&n?"-"+c:c}function _(e,t){for(var a,o=1,n=new z(e[0]);o=10;n/=10,o++);return(a=o+a*d-1)>L?e.c=e.e=null:a=10;u/=10,r++);if((i=t-r)<0)i+=d,l=t,g=(p=b[h=0])/f[r-l-1]%10|0;else if((h=n((i+1)/d))>=b.length){if(!o)break e;for(;b.length<=h;b.push(0));p=g=0,r=1,l=(i%=d)-d+1}else{for(p=u=b[h],r=1;u>=10;u/=10,r++);g=(l=(i%=d)-d+r)<0?0:p/f[r-l-1]%10|0}if(o=o||t<0||null!=b[h+1]||(l<0?p:p%f[r-l-1]),o=a<4?(g||o)&&(0==a||a==(e.s<0?3:2)):g>5||5==g&&(4==a||o||6==a&&(i>0?l>0?p/f[r-l]:0:b[h-1])%10&1||a==(e.s<0?8:7)),t<1||!b[0])return b.length=0,o?(t-=e.e+1,b[0]=f[(d-t%d)%d],e.e=-t||0):b[0]=e.e=0,e;if(0==i?(b.length=h,u=1,h--):(b.length=h+1,u=f[d-i],b[h]=l>0?s(p/f[r-l]%f[l])*u:0),o)for(;;){if(0==h){for(i=1,l=b[0];l>=10;l/=10,i++);for(l=b[0]+=u,u=1;l>=10;l/=10,u++);i!=u&&(e.e++,b[0]==c&&(b[0]=1));break}if(b[h]+=u,b[h]!=c)break;b[h--]=0,u=1}for(i=b.length;0===b[--i];b.pop());}e.e>L?e.c=e.e=null:e.e=P?$(t,a):w(t,a,"0"),e.s<0?"-"+t:t)}return z.clone=e,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.set=function(e){var t,a;if(null!=e){if("object"!=typeof e)throw Error(r+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(f(a=e[t],0,p,t),M=a),e.hasOwnProperty(t="ROUNDING_MODE")&&(f(a=e[t],0,8,t),D=a),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((a=e[t])&&a.pop?(f(a[0],-p,0,t),f(a[1],0,p,t),N=a[0],P=a[1]):(f(a,-p,p,t),N=-(P=a<0?-a:a))),e.hasOwnProperty(t="RANGE"))if((a=e[t])&&a.pop)f(a[0],-p,-1,t),f(a[1],1,p,t),B=a[0],L=a[1];else{if(f(a,-p,p,t),!a)throw Error(r+t+" cannot be zero: "+a);B=-(L=a<0?-a:a)}if(e.hasOwnProperty(t="CRYPTO")){if((a=e[t])!==!!a)throw Error(r+t+" not true or false: "+a);if(a){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!a,Error(r+"crypto unavailable");F=a}else F=a}if(e.hasOwnProperty(t="MODULO_MODE")&&(f(a=e[t],0,9,t),K=a),e.hasOwnProperty(t="POW_PRECISION")&&(f(a=e[t],0,p,t),G=a),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(a=e[t]))throw Error(r+t+" not an object: "+a);j=a}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(a=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(a))throw Error(r+t+" invalid: "+a);W="0123456789"==a.slice(0,10),q=a}}return{DECIMAL_PLACES:M,ROUNDING_MODE:D,EXPONENTIAL_AT:[N,P],RANGE:[B,L],CRYPTO:F,MODULO_MODE:K,POW_PRECISION:G,FORMAT:j,ALPHABET:q}},z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!z.DEBUG)return!0;var t,a,o=e.c,n=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(o)){if((1===i||-1===i)&&n>=-p&&n<=p&&n===s(n)){if(0===o[0]){if(0===n&&1===o.length)return!0;break e}if((t=(n+1)%d)<1&&(t+=d),String(o[0]).length==t){for(t=0;t=c||a!==s(a))break e;if(0!==a)return!0}}}else if(null===o&&null===n&&(null===i||1===i||-1===i))return!0;throw Error(r+"Invalid BigNumber: "+e)},z.maximum=z.max=function(){return _(arguments,C.lt)},z.minimum=z.min=function(){return _(arguments,C.gt)},z.random=(x=9007199254740992,R=Math.random()*x&2097151?function(){return s(Math.random()*x)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,a,o,i,c,l=0,u=[],h=new z(U);if(null==e?e=M:f(e,0,p),i=n(e/d),F)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));l>>11))>=9e15?(a=crypto.getRandomValues(new Uint32Array(2)),t[l]=a[0],t[l+1]=a[1]):(u.push(c%1e14),l+=2);l=i/2}else{if(!crypto.randomBytes)throw F=!1,Error(r+"crypto unavailable");for(t=crypto.randomBytes(i*=7);l=9e15?crypto.randomBytes(7).copy(t,l):(u.push(c%1e14),l+=7);l=i/7}if(!F)for(;l=10;c/=10,l++);la-1&&(null==r[n+1]&&(r[n+1]=0),r[n+1]+=r[n]/a|0,r[n]%=a)}return r.reverse()}return function(o,n,s,r,i){var c,d,l,m,u,p,h,b,f=o.indexOf("."),y=M,$=D;for(f>=0&&(m=G,G=0,o=o.replace(".",""),p=(b=new z(n)).pow(o.length-f),G=m,b.c=t(w(g(p.c),p.e,"0"),10,s,e),b.e=b.c.length),l=m=(h=t(o,n,s,i?(c=q,e):(c=e,q))).length;0==h[--m];h.pop());if(!h[0])return c.charAt(0);if(f<0?--l:(p.c=h,p.e=l,p.s=r,h=(p=a(p,b,y,$,s)).c,u=p.r,l=p.e),f=h[d=l+y+1],m=s/2,u=u||d<0||null!=h[d+1],u=$<4?(null!=f||u)&&(0==$||$==(p.s<0?3:2)):f>m||f==m&&(4==$||u||6==$&&1&h[d-1]||$==(p.s<0?8:7)),d<1||!h[0])o=u?w(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(h.length=d,u)for(--s;++h[--d]>s;)h[d]=0,d||(++l,h=[1].concat(h));for(m=h.length;!h[--m];);for(f=0,o="";f<=m;o+=c.charAt(h[f++]));o=w(o,l,c.charAt(0))}return o}}(),a=function(){function e(e,t,a){var o,n,s,r,i=0,c=e.length,d=t%u,l=t/u|0;for(e=e.slice();c--;)i=((n=d*(s=e[c]%u)+(o=l*s+(r=e[c]/u|0)*d)%u*u+i)/a|0)+(o/u|0)+l*r,e[c]=n%a;return i&&(e=[i].concat(e)),e}function t(e,t,a,o){var n,s;if(a!=o)s=a>o?1:-1;else for(n=s=0;nt[n]?1:-1;break}return s}function a(e,t,a,o){for(var n=0;a--;)e[a]-=n,n=e[a]1;e.splice(0,1));}return function(o,n,r,i,l){var m,u,p,g,b,f,y,$,w,k,v,x,R,A,I,S,E,T=o.s==n.s?1:-1,C=o.c,U=n.c;if(!(C&&C[0]&&U&&U[0]))return new z(o.s&&n.s&&(C?!U||C[0]!=U[0]:U)?C&&0==C[0]||!U?0*T:T/0:NaN);for(w=($=new z(T)).c=[],T=r+(u=o.e-n.e)+1,l||(l=c,u=h(o.e/d)-h(n.e/d),T=T/d|0),p=0;U[p]==(C[p]||0);p++);if(U[p]>(C[p]||0)&&u--,T<0)w.push(1),g=!0;else{for(A=C.length,S=U.length,p=0,T+=2,(b=s(l/(U[0]+1)))>1&&(U=e(U,b,l),C=e(C,b,l),S=U.length,A=C.length),R=S,v=(k=C.slice(0,S)).length;v=l/2&&I++;do{if(b=0,(m=t(U,k,S,v))<0){if(x=k[0],S!=v&&(x=x*l+(k[1]||0)),(b=s(x/I))>1)for(b>=l&&(b=l-1),y=(f=e(U,b,l)).length,v=k.length;1==t(f,k,y,v);)b--,a(f,S=10;T/=10,p++);Y($,r+($.e=p+u*d-1)+1,i,g)}else $.e=u,$.r=+g;return $}}(),A=/^(-?)0([xbo])(?=\w[\w.]*$)/i,I=/^([^.]+)\.$/,S=/^\.([^.]+)$/,E=/^-?(Infinity|NaN)$/,T=/^\s*\+(?=[\w.])|^\s+|\s+$/g,v=function(e,t,a,o){var n,s=a?t:t.replace(T,"");if(E.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!a&&(s=s.replace(A,(function(e,t,a){return n="x"==(a=a.toLowerCase())?16:"b"==a?2:8,o&&o!=n?e:t})),o&&(n=o,s=s.replace(I,"$1").replace(S,"0.$1")),t!=s))return new z(s,n);if(z.DEBUG)throw Error(r+"Not a"+(o?" base "+o:"")+" number: "+t);e.s=null}e.c=e.e=null},C.absoluteValue=C.abs=function(){var e=new z(this);return e.s<0&&(e.s=1),e},C.comparedTo=function(e,t){return b(this,new z(e,t))},C.decimalPlaces=C.dp=function(e,t){var a,o,n,s=this;if(null!=e)return f(e,0,p),null==t?t=D:f(t,0,8),Y(new z(s),e+s.e+1,t);if(!(a=s.c))return null;if(o=((n=a.length-1)-h(this.e/d))*d,n=a[n])for(;n%10==0;n/=10,o--);return o<0&&(o=0),o},C.dividedBy=C.div=function(e,t){return a(this,new z(e,t),M,D)},C.dividedToIntegerBy=C.idiv=function(e,t){return a(this,new z(e,t),0,1)},C.exponentiatedBy=C.pow=function(e,t){var a,o,i,c,l,m,u,p,h=this;if((e=new z(e)).c&&!e.isInteger())throw Error(r+"Exponent not an integer: "+J(e));if(null!=t&&(t=new z(t)),l=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return p=new z(Math.pow(+J(h),l?e.s*(2-y(e)):+J(e))),t?p.mod(t):p;if(m=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new z(NaN);(o=!m&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||l&&h.c[1]>=24e7:h.c[0]<8e13||l&&h.c[0]<=9999975e7)))return c=h.s<0&&y(e)?-0:0,h.e>-1&&(c=1/c),new z(m?1/c:c);G&&(c=n(G/d+2))}for(l?(a=new z(.5),m&&(e.s=1),u=y(e)):u=(i=Math.abs(+J(e)))%2,p=new z(U);;){if(u){if(!(p=p.times(h)).c)break;c?p.c.length>c&&(p.c.length=c):o&&(p=p.mod(t))}if(i){if(0===(i=s(i/2)))break;u=i%2}else if(Y(e=e.times(a),e.e+1,1),e.e>14)u=y(e);else{if(0===(i=+J(e)))break;u=i%2}h=h.times(h),c?h.c&&h.c.length>c&&(h.c.length=c):o&&(h=h.mod(t))}return o?p:(m&&(p=U.div(p)),t?p.mod(t):c?Y(p,G,D,undefined):p)},C.integerValue=function(e){var t=new z(this);return null==e?e=D:f(e,0,8),Y(t,t.e+1,e)},C.isEqualTo=C.eq=function(e,t){return 0===b(this,new z(e,t))},C.isFinite=function(){return!!this.c},C.isGreaterThan=C.gt=function(e,t){return b(this,new z(e,t))>0},C.isGreaterThanOrEqualTo=C.gte=function(e,t){return 1===(t=b(this,new z(e,t)))||0===t},C.isInteger=function(){return!!this.c&&h(this.e/d)>this.c.length-2},C.isLessThan=C.lt=function(e,t){return b(this,new z(e,t))<0},C.isLessThanOrEqualTo=C.lte=function(e,t){return-1===(t=b(this,new z(e,t)))||0===t},C.isNaN=function(){return!this.s},C.isNegative=function(){return this.s<0},C.isPositive=function(){return this.s>0},C.isZero=function(){return!!this.c&&0==this.c[0]},C.minus=function(e,t){var a,o,n,s,r=this,i=r.s;if(t=(e=new z(e,t)).s,!i||!t)return new z(NaN);if(i!=t)return e.s=-t,r.plus(e);var l=r.e/d,m=e.e/d,u=r.c,p=e.c;if(!l||!m){if(!u||!p)return u?(e.s=-t,e):new z(p?r:NaN);if(!u[0]||!p[0])return p[0]?(e.s=-t,e):new z(u[0]?r:3==D?-0:0)}if(l=h(l),m=h(m),u=u.slice(),i=l-m){for((s=i<0)?(i=-i,n=u):(m=l,n=p),n.reverse(),t=i;t--;n.push(0));n.reverse()}else for(o=(s=(i=u.length)<(t=p.length))?i:t,i=t=0;t0)for(;t--;u[a++]=0);for(t=c-1;o>i;){if(u[--o]=0;){for(a=0,b=x[n]%w,f=x[n]/w|0,s=n+(r=l);s>n;)a=((m=b*(m=v[--r]%w)+(i=f*m+(p=v[r]/w|0)*b)%w*w+y[s]+a)/$|0)+(i/w|0)+f*p,y[s--]=m%$;y[s]=a}return a?++o:y.splice(0,1),V(e,y,o)},C.negated=function(){var e=new z(this);return e.s=-e.s||null,e},C.plus=function(e,t){var a,o=this,n=o.s;if(t=(e=new z(e,t)).s,!n||!t)return new z(NaN);if(n!=t)return e.s=-t,o.minus(e);var s=o.e/d,r=e.e/d,i=o.c,l=e.c;if(!s||!r){if(!i||!l)return new z(n/0);if(!i[0]||!l[0])return l[0]?e:new z(i[0]?o:0*n)}if(s=h(s),r=h(r),i=i.slice(),n=s-r){for(n>0?(r=s,a=l):(n=-n,a=i),a.reverse();n--;a.push(0));a.reverse()}for((n=i.length)-(t=l.length)<0&&(a=l,l=i,i=a,t=n),n=0;t;)n=(i[--t]=i[t]+l[t]+n)/c|0,i[t]=c===i[t]?0:i[t]%c;return n&&(i=[n].concat(i),++r),V(e,i,r)},C.precision=C.sd=function(e,t){var a,o,n,s=this;if(null!=e&&e!==!!e)return f(e,1,p),null==t?t=D:f(t,0,8),Y(new z(s),e,t);if(!(a=s.c))return null;if(o=(n=a.length-1)*d+1,n=a[n]){for(;n%10==0;n/=10,o--);for(n=a[0];n>=10;n/=10,o++);}return e&&s.e+1>o&&(o=s.e+1),o},C.shiftedBy=function(e){return f(e,-l,l),this.times("1e"+e)},C.squareRoot=C.sqrt=function(){var e,t,o,n,s,r=this,i=r.c,c=r.s,d=r.e,l=M+4,m=new z("0.5");if(1!==c||!i||!i[0])return new z(!c||c<0&&(!i||i[0])?NaN:i?r:1/0);if(0==(c=Math.sqrt(+J(r)))||c==1/0?(((t=g(i)).length+d)%2==0&&(t+="0"),c=Math.sqrt(+t),d=h((d+1)/2)-(d<0||d%2),o=new z(t=c==1/0?"5e"+d:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+d)):o=new z(c+""),o.c[0])for((c=(d=o.e)+l)<3&&(c=0);;)if(s=o,o=m.times(s.plus(a(r,s,l,1))),g(s.c).slice(0,c)===(t=g(o.c)).slice(0,c)){if(o.e0&&g>0){for(s=g%c||c,m=h.substr(0,s);s0&&(m+=l+h.slice(s)),p&&(m="-"+m)}o=u?m+(a.decimalSeparator||"")+((d=+a.fractionGroupSize)?u.replace(new RegExp("\\d{"+d+"}\\B","g"),"$&"+(a.fractionGroupSeparator||"")):u):m}return(a.prefix||"")+o+(a.suffix||"")},C.toFraction=function(e){var t,o,n,s,i,c,l,u,p,h,b,f,y=this,$=y.c;if(null!=e&&(!(l=new z(e)).isInteger()&&(l.c||1!==l.s)||l.lt(U)))throw Error(r+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+J(l));if(!$)return new z(y);for(t=new z(U),p=o=new z(U),n=u=new z(U),f=g($),i=t.e=f.length-y.e-1,t.c[0]=m[(c=i%d)<0?d+c:c],e=!e||l.comparedTo(t)>0?i>0?t:p:l,c=L,L=1/0,l=new z(f),u.c[0]=0;h=a(l,t,0,1),1!=(s=o.plus(h.times(n))).comparedTo(e);)o=n,n=s,p=u.plus(h.times(s=p)),u=s,t=l.minus(h.times(s=t)),l=s;return s=a(e.minus(o),n,0,1),u=u.plus(s.times(p)),o=o.plus(s.times(n)),u.s=p.s=y.s,b=a(p,n,i*=2,D).minus(y).abs().comparedTo(a(u,o,i,D).minus(y).abs())<1?[p,n]:[u,o],L=c,b},C.toNumber=function(){return+J(this)},C.toPrecision=function(e,t){return null!=e&&f(e,1,p),H(this,e,t,2)},C.toString=function(e){var t,a=this,o=a.s,n=a.e;return null===n?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(null==e?t=n<=N||n>=P?$(g(a.c),n):w(g(a.c),n,"0"):10===e&&W?t=w(g((a=Y(new z(a),M+n+1,D)).c),a.e,"0"):(f(e,2,q.length,"Base"),t=k(w(g(a.c),n,"0"),10,e,o,!0)),o<0&&a.c[0]&&(t="-"+t)),t},C.valueOf=C.toJSON=function(){return J(this)},C._isBigNumber=!0,null!=t&&z.set(t),z}(),a.default=a.BigNumber=a,"function"==typeof define&&define.amd?define((function(){return a})):e.exports?e.exports=a:(t||(t="undefined"!=typeof self&&self?self:window),t.BigNumber=a)}(e.exports)})),parcelRequire.register("bmANM",(function(e,t){$parcel$export(e.exports,"bool",(()=>n));var a=parcelRequire("crvhM"),o=parcelRequire("24EnH");const n=e=>{const t=(0,a.u8)(e),{encode:n,decode:s}=(0,o.encodeDecode)(t),r=t;return r.decode=(e,t)=>!!s(e,t),r.encode=(e,t,a)=>{const o=Number(e);return n(o,t,a)},r}})),parcelRequire.register("gKWJK",(function(e,t){$parcel$export(e.exports,"publicKey",(()=>s));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("24EnH");const s=e=>{const t=(0,a.blob)(32,e),{encode:s,decode:r}=(0,n.encodeDecode)(t),i=t;return i.decode=(e,t)=>{const a=r(e,t);return new(0,o.PublicKey)(a)},i.encode=(e,t,a)=>{const o=e.toBuffer();return s(o,t,a)},i}})),parcelRequire.register("kYNuB",(function(e,t){$parcel$export(e.exports,"TOKEN_PROGRAM_ID",(()=>o)),$parcel$export(e.exports,"ASSOCIATED_TOKEN_PROGRAM_ID",(()=>n)),$parcel$export(e.exports,"NATIVE_MINT",(()=>s));var a=parcelRequire("5cySN");const o=new(0,a.PublicKey)("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),n=(new(0,a.PublicKey)("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),new(0,a.PublicKey)("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL")),s=new(0,a.PublicKey)("So11111111111111111111111111111111111111112");new(0,a.PublicKey)("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP")})),parcelRequire.register("k9yIP",(function(e,t){$parcel$export(e.exports,"TokenAccountNotFoundError",(()=>o)),$parcel$export(e.exports,"TokenInvalidAccountError",(()=>n)),$parcel$export(e.exports,"TokenInvalidAccountOwnerError",(()=>s)),$parcel$export(e.exports,"TokenInvalidAccountSizeError",(()=>r)),$parcel$export(e.exports,"TokenInvalidMintError",(()=>i)),$parcel$export(e.exports,"TokenOwnerOffCurveError",(()=>c)),$parcel$export(e.exports,"TokenInvalidInstructionProgramError",(()=>d)),$parcel$export(e.exports,"TokenInvalidInstructionKeysError",(()=>l)),$parcel$export(e.exports,"TokenInvalidInstructionDataError",(()=>m)),$parcel$export(e.exports,"TokenInvalidInstructionTypeError",(()=>u));class a extends Error{constructor(e){super(e)}}class o extends a{constructor(){super(...arguments),this.name="TokenAccountNotFoundError"}}class n extends a{constructor(){super(...arguments),this.name="TokenInvalidAccountError"}}class s extends a{constructor(){super(...arguments),this.name="TokenInvalidAccountOwnerError"}}class r extends a{constructor(){super(...arguments),this.name="TokenInvalidAccountSizeError"}}class i extends a{constructor(){super(...arguments),this.name="TokenInvalidMintError"}}class c extends a{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}}class d extends a{constructor(){super(...arguments),this.name="TokenInvalidInstructionProgramError"}}class l extends a{constructor(){super(...arguments),this.name="TokenInvalidInstructionKeysError"}}class m extends a{constructor(){super(...arguments),this.name="TokenInvalidInstructionDataError"}}class u extends a{constructor(){super(...arguments),this.name="TokenInvalidInstructionTypeError"}}})),parcelRequire.register("2u6ly",(function(e,t){var a,o;$parcel$export(e.exports,"AccountType",(()=>a)),$parcel$export(e.exports,"ACCOUNT_TYPE_SIZE",(()=>n)),(o=a||(a={}))[o.Uninitialized=0]="Uninitialized",o[o.Mint=1]="Mint",o[o.Account=2]="Account";const n=1})),parcelRequire.register("iXS0s",(function(e,t){$parcel$export(e.exports,"ExtensionType",(()=>a)),$parcel$export(e.exports,"getMintLen",(()=>w)),$parcel$export(e.exports,"getAccountLen",(()=>k)),$parcel$export(e.exports,"getExtensionData",(()=>v));var a,o,n=parcelRequire("h4wzp"),s=parcelRequire("a1gmT"),r=parcelRequire("9zmOO"),i=parcelRequire("2u6ly"),c=parcelRequire("l8zEF"),d=parcelRequire("kJQCj"),l=parcelRequire("hlame"),m=parcelRequire("61koT"),u=parcelRequire("1Mntg"),p=parcelRequire("1xbvf"),h=parcelRequire("9BxIP"),g=parcelRequire("1pn6c"),b=parcelRequire("6wNWI");(o=a||(a={}))[o.Uninitialized=0]="Uninitialized",o[o.TransferFeeConfig=1]="TransferFeeConfig",o[o.TransferFeeAmount=2]="TransferFeeAmount",o[o.MintCloseAuthority=3]="MintCloseAuthority",o[o.ConfidentialTransferMint=4]="ConfidentialTransferMint",o[o.ConfidentialTransferAccount=5]="ConfidentialTransferAccount",o[o.DefaultAccountState=6]="DefaultAccountState",o[o.ImmutableOwner=7]="ImmutableOwner",o[o.MemoTransfer=8]="MemoTransfer",o[o.NonTransferable=9]="NonTransferable",o[o.InterestBearingConfig=10]="InterestBearingConfig",o[o.CpiGuard=11]="CpiGuard",o[o.PermanentDelegate=12]="PermanentDelegate";const f=2,y=2;function $(e,t){if(0===e.length)return t;{const t=n.ACCOUNT_SIZE+i.ACCOUNT_TYPE_SIZE+e.filter(((t,a)=>a===e.indexOf(t))).map((e=>function(e){switch(e){case a.Uninitialized:return 0;case a.TransferFeeConfig:return b.TRANSFER_FEE_CONFIG_SIZE;case a.TransferFeeAmount:return b.TRANSFER_FEE_AMOUNT_SIZE;case a.MintCloseAuthority:return p.MINT_CLOSE_AUTHORITY_SIZE;case a.ConfidentialTransferMint:return 97;case a.ConfidentialTransferAccount:return 286;case a.CpiGuard:return c.CPI_GUARD_SIZE;case a.DefaultAccountState:return d.DEFAULT_ACCOUNT_STATE_SIZE;case a.ImmutableOwner:return l.IMMUTABLE_OWNER_SIZE;case a.MemoTransfer:return u.MEMO_TRANSFER_SIZE;case a.NonTransferable:return h.NON_TRANSFERABLE_SIZE;case a.InterestBearingConfig:return m.INTEREST_BEARING_MINT_CONFIG_STATE_SIZE;case a.PermanentDelegate:return g.PERMANENT_DELEGATE_SIZE;default:throw Error(`Unknown extension type: ${e}`)}}(e)+f+y)).reduce(((e,t)=>e+t));return t===r.MULTISIG_SIZE?t+f:t}}function w(e){return $(e,s.MINT_SIZE)}function k(e){return $(e,n.ACCOUNT_SIZE)}function v(e,t){let a=0;for(;a+f+y<=t.length;){const o=t.readUInt16LE(a),n=t.readUInt16LE(a+f),s=a+f+y;if(o==e)return t.slice(s,s+n);a=s+n}return null}})),parcelRequire.register("a1gmT",(function(e,t){$parcel$export(e.exports,"MintLayout",(()=>l)),$parcel$export(e.exports,"MINT_SIZE",(()=>m)),$parcel$export(e.exports,"getMinimumBalanceForRentExemptMint",(()=>u)),$parcel$export(e.exports,"getAssociatedTokenAddress",(()=>p));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("hDWD6"),s=parcelRequire("bmANM"),r=parcelRequire("5cySN"),i=parcelRequire("kYNuB"),c=parcelRequire("k9yIP"),d=(parcelRequire("2u6ly"),parcelRequire("iXS0s"));parcelRequire("h4wzp"),parcelRequire("9zmOO"),parcelRequire("ajHSv").Buffer;const l=(0,a.struct)([(0,a.u32)("mintAuthorityOption"),(0,o.publicKey)("mintAuthority"),(0,n.u64)("supply"),(0,a.u8)("decimals"),(0,s.bool)("isInitialized"),(0,a.u32)("freezeAuthorityOption"),(0,o.publicKey)("freezeAuthority")]),m=l.span;async function u(e,t){return await async function(e,t,a){const o=(0,d.getMintLen)(t);return await e.getMinimumBalanceForRentExemption(o,a)}(e,[],t)}async function p(e,t,a=!1,o=i.TOKEN_PROGRAM_ID,n=i.ASSOCIATED_TOKEN_PROGRAM_ID){if(!a&&!r.PublicKey.isOnCurve(t.toBuffer()))throw new(0,c.TokenOwnerOffCurveError);const[s]=await r.PublicKey.findProgramAddress([t.toBuffer(),o.toBuffer(),e.toBuffer()],n);return s}})),parcelRequire.register("9zmOO",(function(e,t){$parcel$export(e.exports,"MULTISIG_SIZE",(()=>r));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("bmANM"),n=parcelRequire("gKWJK");parcelRequire("kYNuB"),parcelRequire("k9yIP");const s=(0,a.struct)([(0,a.u8)("m"),(0,a.u8)("n"),(0,o.bool)("isInitialized"),(0,n.publicKey)("signer1"),(0,n.publicKey)("signer2"),(0,n.publicKey)("signer3"),(0,n.publicKey)("signer4"),(0,n.publicKey)("signer5"),(0,n.publicKey)("signer6"),(0,n.publicKey)("signer7"),(0,n.publicKey)("signer8"),(0,n.publicKey)("signer9"),(0,n.publicKey)("signer10"),(0,n.publicKey)("signer11")]),r=s.span})),parcelRequire.register("l8zEF",(function(e,t){$parcel$export(e.exports,"CPI_GUARD_SIZE",(()=>s));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("bmANM");parcelRequire("iXS0s");const n=(0,a.struct)([(0,o.bool)("lockCpi")]),s=n.span})),parcelRequire.register("kJQCj",(function(e,t){$parcel$export(e.exports,"DEFAULT_ACCOUNT_STATE_SIZE",(()=>n));var a=parcelRequire("crvhM");parcelRequire("iXS0s");const o=(0,a.struct)([(0,a.u8)("state")]),n=o.span})),parcelRequire.register("hlame",(function(e,t){$parcel$export(e.exports,"IMMUTABLE_OWNER_SIZE",(()=>n));var a=parcelRequire("crvhM");parcelRequire("iXS0s");const o=(0,a.struct)([]),n=o.span})),parcelRequire.register("61koT",(function(e,t){$parcel$export(e.exports,"INTEREST_BEARING_MINT_CONFIG_STATE_SIZE",(()=>s));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK");parcelRequire("iXS0s");const n=(0,a.struct)([(0,o.publicKey)("rateAuthority"),(0,a.ns64)("initializationTimestamp"),(0,a.s16)("preUpdateAverageRate"),(0,a.ns64)("lastUpdateTimestamp"),(0,a.s16)("currentRate")]),s=n.span})),parcelRequire.register("1Mntg",(function(e,t){$parcel$export(e.exports,"MEMO_TRANSFER_SIZE",(()=>s));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("bmANM");parcelRequire("iXS0s");const n=(0,a.struct)([(0,o.bool)("requireIncomingTransferMemos")]),s=n.span})),parcelRequire.register("1xbvf",(function(e,t){$parcel$export(e.exports,"MINT_CLOSE_AUTHORITY_SIZE",(()=>s));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK");parcelRequire("iXS0s");const n=(0,a.struct)([(0,o.publicKey)("closeAuthority")]),s=n.span})),parcelRequire.register("9BxIP",(function(e,t){$parcel$export(e.exports,"NON_TRANSFERABLE_SIZE",(()=>n));var a=parcelRequire("crvhM");parcelRequire("iXS0s");const o=(0,a.struct)([]),n=o.span})),parcelRequire.register("1pn6c",(function(e,t){$parcel$export(e.exports,"PERMANENT_DELEGATE_SIZE",(()=>s));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK");parcelRequire("iXS0s");const n=(0,a.struct)([(0,o.publicKey)("delegate")]),s=n.span})),parcelRequire.register("6wNWI",(function(e,t){$parcel$export(e.exports,"TRANSFER_FEE_CONFIG_SIZE",(()=>i)),$parcel$export(e.exports,"TRANSFER_FEE_AMOUNT_SIZE",(()=>d));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("gKWJK");parcelRequire("iXS0s");function s(e){return(0,a.struct)([(0,o.u64)("epoch"),(0,o.u64)("maximumFee"),(0,a.u16)("transferFeeBasisPoints")],e)}const r=(0,a.struct)([(0,n.publicKey)("transferFeeConfigAuthority"),(0,n.publicKey)("withdrawWithheldAuthority"),(0,o.u64)("withheldAmount"),s("olderTransferFee"),s("newerTransferFee")]),i=r.span,c=(0,a.struct)([(0,o.u64)("withheldAmount")]),d=c.span})),parcelRequire.register("gVQT4",(function(e,t){parcelRequire("btmKD")})),parcelRequire.register("btmKD",(function(e,t){$parcel$export(e.exports,"darken",(()=>K)),$parcel$export(e.exports,"getLuminance",(()=>G)),$parcel$export(e.exports,"lighten",(()=>q));var a=parcelRequire("ifOLC"),o=parcelRequire("yr9Dr"),n=parcelRequire("32YL8"),s=parcelRequire("eqxSk");parcelRequire("22db4");var r=function(e){function t(t){var a;return a=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,o.default)(a)}return(0,n.default)(t,e),t}((0,s.default)(Error));function i(e){return Math.round(255*e)}function c(e,t,a){return i(e)+","+i(t)+","+i(a)}function d(e,t,a,o){if(void 0===o&&(o=c),0===t)return o(a,a,a);var n=(e%360+360)%360/60,s=(1-Math.abs(2*a-1))*t,r=s*(1-Math.abs(n%2-1)),i=0,d=0,l=0;n>=0&&n<1?(i=s,d=r):n>=1&&n<2?(i=r,d=s):n>=2&&n<3?(d=s,l=r):n>=3&&n<4?(d=r,l=s):n>=4&&n<5?(i=r,l=s):n>=5&&n<6&&(i=s,l=r);var m=a-s/2;return o(i+m,d+m,l+m)}var l={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var m=/^#[a-fA-F0-9]{6}$/,u=/^#[a-fA-F0-9]{8}$/,p=/^#[a-fA-F0-9]{3}$/,h=/^#[a-fA-F0-9]{4}$/,g=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,b=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,f=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,y=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function $(e){if("string"!=typeof e)throw new r(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return l[t]?"#"+l[t]:e}(e);if(t.match(m))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(u)){var a=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:a}}if(t.match(p))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(h)){var o=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:o}}var n=g.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var s=b.exec(t.substring(0,50));if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+s[4])>1?parseFloat(""+s[4])/100:parseFloat(""+s[4])};var i=f.exec(t);if(i){var c="rgb("+d(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",$=g.exec(c);if(!$)throw new r(4,t,c);return{red:parseInt(""+$[1],10),green:parseInt(""+$[2],10),blue:parseInt(""+$[3],10)}}var w=y.exec(t.substring(0,50));if(w){var k="rgb("+d(parseInt(""+w[1],10),parseInt(""+w[2],10)/100,parseInt(""+w[3],10)/100)+")",v=g.exec(k);if(!v)throw new r(4,t,k);return{red:parseInt(""+v[1],10),green:parseInt(""+v[2],10),blue:parseInt(""+v[3],10),alpha:parseFloat(""+w[4])>1?parseFloat(""+w[4])/100:parseFloat(""+w[4])}}throw new r(5)}function w(e){return function(e){var t,a=e.red/255,o=e.green/255,n=e.blue/255,s=Math.max(a,o,n),r=Math.min(a,o,n),i=(s+r)/2;if(s===r)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c=s-r,d=i>.5?c/(2-s-r):c/(s+r);switch(s){case a:t=(o-n)/c+(o=1?A(e,t,a):"rgba("+d(e,t,a)+","+o+")";if("object"==typeof e&&void 0===t&&void 0===a&&void 0===o)return e.alpha>=1?A(e.hue,e.saturation,e.lightness):"rgba("+d(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new r(2)}function E(e,t,a){if("number"==typeof e&&"number"==typeof t&&"number"==typeof a)return k("#"+v(e)+v(t)+v(a));if("object"==typeof e&&void 0===t&&void 0===a)return k("#"+v(e.red)+v(e.green)+v(e.blue));throw new r(6)}function T(e,t,a,o){if("string"==typeof e&&"number"==typeof t){var n=$(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof a&&"number"==typeof o)return o>=1?E(e,t,a):"rgba("+e+","+t+","+a+","+o+")";if("object"==typeof e&&void 0===t&&void 0===a&&void 0===o)return e.alpha>=1?E(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new r(7)}var C=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},U=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},M=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},D=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function N(e){if("object"!=typeof e)throw new r(8);if(U(e))return T(e);if(C(e))return E(e);if(D(e))return S(e);if(M(e))return I(e);throw new r(8)}function P(e,t,a){return function(){var o=a.concat(Array.prototype.slice.call(arguments));return o.length>=t?e.apply(this,o):P(e,t,o)}}function B(e){return P(e,e.length,[])}function L(e,t,a){return Math.max(e,Math.min(t,a))}function F(e,t){if("transparent"===t)return t;var o=w(t);return N((0,a.default)({},o,{lightness:L(0,1,o.lightness-parseFloat(e))}))}var K=B(F);function G(e){if("transparent"===e)return 0;var t=$(e),a=Object.keys(t).map((function(e){var a=t[e]/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)})),o=a[0],n=a[1],s=a[2];return parseFloat((.2126*o+.7152*n+.0722*s).toFixed(3))}function j(e,t){if("transparent"===t)return t;var o=w(t);return N((0,a.default)({},o,{lightness:L(0,1,o.lightness+parseFloat(e))}))}var q=B(j)})),parcelRequire.register("ifOLC",(function(e,t){function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;ta))})),parcelRequire.register("yr9Dr",(function(e,t){function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}$parcel$export(e.exports,"default",(()=>a))})),parcelRequire.register("32YL8",(function(e,t){$parcel$export(e.exports,"default",(()=>o));var a=parcelRequire("8cvKm");function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,a.default)(e,t)}})),parcelRequire.register("8cvKm",(function(e,t){function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}$parcel$export(e.exports,"default",(()=>a))})),parcelRequire.register("eqxSk",(function(e,t){$parcel$export(e.exports,"default",(()=>r));var a=parcelRequire("4fH8u"),o=parcelRequire("8cvKm"),n=parcelRequire("4upKq"),s=parcelRequire("8b9Pm");function r(e){var t="function"==typeof Map?new Map:void 0;return r=function(e){if(null===e||!(0,n.default)(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return(0,s.default)(e,arguments,(0,a.default)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,o.default)(r,e)},r(e)}})),parcelRequire.register("4fH8u",(function(e,t){function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}$parcel$export(e.exports,"default",(()=>a))})),parcelRequire.register("4upKq",(function(e,t){function a(e){return-1!==Function.toString.call(e).indexOf("[native code]")}$parcel$export(e.exports,"default",(()=>a))})),parcelRequire.register("8b9Pm",(function(e,t){$parcel$export(e.exports,"default",(()=>n));var a=parcelRequire("8cvKm"),o=parcelRequire("elSaC");function n(e,t,s){return n=(0,o.default)()?Reflect.construct.bind():function(e,t,o){var n=[null];n.push.apply(n,t);var s=new(Function.bind.apply(e,n));return o&&(0,a.default)(s,o.prototype),s},n.apply(null,arguments)}})),parcelRequire.register("elSaC",(function(e,t){function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}$parcel$export(e.exports,"default",(()=>a))})),parcelRequire.register("22db4",(function(e,t){function a(e,t){return t||(t=e.slice(0)),e.raw=t,e}$parcel$export(e.exports,"default",(()=>a))})),parcelRequire.register("9q6YW",(function(e,t){parcelRequire("5cySN")})),parcelRequire.register("fntEZ",(function(e,t){})),parcelRequire.register("9DmoF",(function(e,t){parcelRequire("cCkPw"),parcelRequire("gQRTb"),parcelRequire("6Ebra"),parcelRequire("a1gmT"),parcelRequire("kYNuB"),parcelRequire("5cySN"),parcelRequire("bfbmm")})),parcelRequire.register("gQRTb",(function(e,t){$parcel$export(e.exports,"createInitializeMintInstruction",(()=>d));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("5cySN"),s=parcelRequire("kYNuB"),r=(parcelRequire("k9yIP"),parcelRequire("eIzbe")),i=parcelRequire("ajHSv").Buffer;const c=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("decimals"),(0,o.publicKey)("mintAuthority"),(0,a.u8)("freezeAuthorityOption"),(0,o.publicKey)("freezeAuthority")]);function d(e,t,a,o,d=s.TOKEN_PROGRAM_ID){const l=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],m=i.alloc(c.span);return c.encode({instruction:r.TokenInstruction.InitializeMint,decimals:t,mintAuthority:a,freezeAuthorityOption:o?1:0,freezeAuthority:o||new(0,n.PublicKey)(0)},m),new(0,n.TransactionInstruction)({keys:l,programId:d,data:m})}})),parcelRequire.register("eIzbe",(function(e,t){var a,o;$parcel$export(e.exports,"TokenInstruction",(()=>a)),(o=a||(a={}))[o.InitializeMint=0]="InitializeMint",o[o.InitializeAccount=1]="InitializeAccount",o[o.InitializeMultisig=2]="InitializeMultisig",o[o.Transfer=3]="Transfer",o[o.Approve=4]="Approve",o[o.Revoke=5]="Revoke",o[o.SetAuthority=6]="SetAuthority",o[o.MintTo=7]="MintTo",o[o.Burn=8]="Burn",o[o.CloseAccount=9]="CloseAccount",o[o.FreezeAccount=10]="FreezeAccount",o[o.ThawAccount=11]="ThawAccount",o[o.TransferChecked=12]="TransferChecked",o[o.ApproveChecked=13]="ApproveChecked",o[o.MintToChecked=14]="MintToChecked",o[o.BurnChecked=15]="BurnChecked",o[o.InitializeAccount2=16]="InitializeAccount2",o[o.SyncNative=17]="SyncNative",o[o.InitializeAccount3=18]="InitializeAccount3",o[o.InitializeMultisig2=19]="InitializeMultisig2",o[o.InitializeMint2=20]="InitializeMint2",o[o.GetAccountDataSize=21]="GetAccountDataSize",o[o.InitializeImmutableOwner=22]="InitializeImmutableOwner",o[o.AmountToUiAmount=23]="AmountToUiAmount",o[o.UiAmountToAmount=24]="UiAmountToAmount",o[o.InitializeMintCloseAuthority=25]="InitializeMintCloseAuthority",o[o.TransferFeeExtension=26]="TransferFeeExtension",o[o.ConfidentialTransferExtension=27]="ConfidentialTransferExtension",o[o.DefaultAccountStateExtension=28]="DefaultAccountStateExtension",o[o.Reallocate=29]="Reallocate",o[o.MemoTransferExtension=30]="MemoTransferExtension",o[o.CreateNativeMint=31]="CreateNativeMint",o[o.InitializeNonTransferableMint=32]="InitializeNonTransferableMint",o[o.InterestBearingMintExtension=33]="InterestBearingMintExtension",o[o.CpiGuardExtension=34]="CpiGuardExtension",o[o.InitializePermanentDelegate=35]="InitializePermanentDelegate"})),parcelRequire.register("6Ebra",(function(e,t){$parcel$export(e.exports,"createMintToInstruction",(()=>l));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("5cySN"),s=parcelRequire("kYNuB"),r=(parcelRequire("k9yIP"),parcelRequire("a07FQ")),i=parcelRequire("eIzbe"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction"),(0,o.u64)("amount")]);function l(e,t,a,o,l=[],m=s.TOKEN_PROGRAM_ID){const u=(0,r.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],a,l),p=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.MintTo,amount:BigInt(o)},p),new(0,n.TransactionInstruction)({keys:u,programId:m,data:p})}})),parcelRequire.register("a07FQ",(function(e,t){$parcel$export(e.exports,"addSigners",(()=>o));var a=parcelRequire("5cySN");function o(e,t,o){if(o.length){e.push({pubkey:t,isSigner:!1,isWritable:!1});for(const t of o)e.push({pubkey:t instanceof a.PublicKey?t:t.publicKey,isSigner:!0,isWritable:!1})}else e.push({pubkey:t,isSigner:!0,isWritable:!1});return e}})),parcelRequire.register("bfbmm",(function(e,t){$parcel$export(e.exports,"withFindOrInitAssociatedTokenAccount",(()=>s));var a=parcelRequire("cCkPw"),o=parcelRequire("fPQZg"),n=parcelRequire("a1gmT");function s(e,t,s,r,i,c){return(0,a.__awaiter)(this,void 0,void 0,(function*(){const a=yield n.getAssociatedTokenAddress(s,r,c);return(yield t.getAccountInfo(a))||e.add(o.createAssociatedTokenAccountInstruction(i,a,r,s)),a}))}})),parcelRequire.register("fPQZg",(function(e,t){$parcel$export(e.exports,"createAssociatedTokenAccountInstruction",(()=>s));var a=parcelRequire("5cySN"),o=parcelRequire("kYNuB"),n=parcelRequire("ajHSv").Buffer;function s(e,t,a,s,i=o.TOKEN_PROGRAM_ID,c=o.ASSOCIATED_TOKEN_PROGRAM_ID){return r(e,t,a,s,n.alloc(0),i,c)}function r(e,t,n,s,r,i=o.TOKEN_PROGRAM_ID,c=o.ASSOCIATED_TOKEN_PROGRAM_ID){const d=[{pubkey:e,isSigner:!0,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:s,isSigner:!1,isWritable:!1},{pubkey:a.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!1}];return new(0,a.TransactionInstruction)({keys:d,programId:c,data:r})}})),parcelRequire.register("5ZASE",(function(e,t){})),parcelRequire.register("6mKgC",(function(e,t){parcelRequire("5cySN")})),parcelRequire.register("3pPMi",(function(e,t){})),parcelRequire.register("l7Rax",(function(e,t){parcelRequire("5s0T4"),parcelRequire("bDdkr")})),parcelRequire.register("keEC3",(function(e,t){parcelRequire("cCkPw")})),parcelRequire.register("dI8Ey",(function(e,t){parcelRequire("cCkPw"),parcelRequire("crvhM"),parcelRequire("kYNuB"),parcelRequire("5cySN"),parcelRequire("bfbmm"),parcelRequire("ajHSv").Buffer})),parcelRequire.register("fv1Rl",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.withRemainingAccountsForHandlePaymentWithRoyalties=e.exports.withRemainingAccountsForPayment=e.exports.executeTransaction=e.exports.createMintTransaction=e.exports.createMint=e.exports.chunkArray=void 0;var a=parcelRequire("cCkPw");const o=a.__importStar(parcelRequire("hCp3F")),n=a.__importStar(parcelRequire("5cySN"));parcelRequire("4zMJ9");var s=parcelRequire("bfbmm"),r=parcelRequire("gcjSq"),i=parcelRequire("huooR"),c=parcelRequire("fcHsS");e.exports.chunkArray=function e(t,a){return t.length>a?[t.slice(0,a),...e(t.slice(a),a)]:[t]};e.exports.createMint=async(e,t,a,n=1,s=a)=>{const r=await o.Token.createMint(e,t,t.publicKey,s,0,o.TOKEN_PROGRAM_ID),i=await r.createAssociatedTokenAccount(a);return await r.mintTo(i,t.publicKey,[],n),[i,r]};e.exports.createMintTransaction=async(e,t,a,r,i,c=1,d=r,l=a.publicKey)=>{const m=await o.Token.getMinBalanceRentForExemptMint(t);e.add(n.SystemProgram.createAccount({fromPubkey:a.publicKey,newAccountPubkey:i,lamports:m,space:o.MintLayout.span,programId:o.TOKEN_PROGRAM_ID})),e.add(o.Token.createInitMintInstruction(o.TOKEN_PROGRAM_ID,i,0,a.publicKey,d));const u=await(0,s.withFindOrInitAssociatedTokenAccount)(e,t,i,l,a.publicKey,!0);return c>0&&e.add(o.Token.createMintToInstruction(o.TOKEN_PROGRAM_ID,i,u,a.publicKey,[],c)),[u,e]};e.exports.executeTransaction=async(e,t,a,o)=>{let s="";try{a.feePayer=t.publicKey,a.recentBlockhash=(await e.getRecentBlockhash("max")).blockhash,await t.signTransaction(a),o.signers&&o.signers.length>0&&a.partialSign(...o.signers),s=await n.sendAndConfirmRawTransaction(e,a.serialize(),o.confirmOptions),o.callback&&o.callback(!0),console.log("Successful tx",s)}catch(e){if(console.log("Failed transaction: ",e.logs,e),o.callback&&o.callback(!1),!o.silent)throw e}return s};e.exports.withRemainingAccountsForPayment=async(t,a,d,l,m,u,p,h,g)=>{var b,f;const y=null!==(b=null==g?void 0:g.payer)&&void 0!==b?b:d.publicKey,$=await(0,e.exports.withRemainingAccountsForHandlePaymentWithRoyalties)(t,a,d,l,m,h,[u.toString()]),w=[{pubkey:m,isSigner:!1,isWritable:!0},{pubkey:l,isSigner:!1,isWritable:!0},{pubkey:await i.Metadata.getPDA(l),isSigner:!1,isWritable:!0}];if(null==g?void 0:g.receiptMint){const e=null===(f=(await a.getTokenLargestAccounts(g.receiptMint)).value[0])||void 0===f?void 0:f.address;if(!e)throw new Error("No token accounts found");const i=new o.Token(a,g.receiptMint,o.TOKEN_PROGRAM_ID,n.Keypair.generate()),l=await i.getAccountInfo(e),u=l.owner.equals(d.publicKey)?await(0,r.findAta)(m,l.owner,!0):await(0,s.withFindOrInitAssociatedTokenAccount)(t,a,m,l.owner,y,!0),h=await(0,r.tryGetAccount)((()=>(0,c.getPaymentManager)(a,p)));return[u,await(0,s.withFindOrInitAssociatedTokenAccount)(t,a,m,h?h.parsed.feeCollector:p,y,!0),[{pubkey:e,isSigner:!1,isWritable:!0},...w,...$]]}{const e=u.equals(d.publicKey)?await(0,r.findAta)(m,u,!0):await(0,s.withFindOrInitAssociatedTokenAccount)(t,a,m,u,y,!0),o=await(0,r.tryGetAccount)((()=>(0,c.getPaymentManager)(a,p)));return[e,await(0,s.withFindOrInitAssociatedTokenAccount)(t,a,m,o?o.parsed.feeCollector:p,y,!0),[...w,...$]]}};e.exports.withRemainingAccountsForHandlePaymentWithRoyalties=async(e,t,a,o,c,d,l)=>{const m=[],u=await i.Metadata.getPDA(o),p=await t.getAccountInfo(u);let h;try{h=i.MetadataData.deserialize(null==p?void 0:p.data)}catch(e){}if(h&&h.data.creators)for(const o of h.data.creators)if(0!==o.share){const i=new n.PublicKey(o.address);if(c.toString()===n.PublicKey.default.toString())m.push({pubkey:new n.PublicKey(o.address),isSigner:!1,isWritable:!0});else{const n=(null==l?void 0:l.includes(o.address))?await(0,r.findAta)(c,i,!0):await(0,s.withFindOrInitAssociatedTokenAccount)(e,t,c,i,a.publicKey,!0);m.push({pubkey:n,isSigner:!1,isWritable:!0})}}return[...m,...d?[{pubkey:d,isSigner:!1,isWritable:!0}]:[]]}})),parcelRequire.register("huooR",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("jrvsi"),e.exports),o(parcelRequire("3zrAD"),e.exports),o(parcelRequire("kyJnI"),e.exports)})),parcelRequire.register("jrvsi",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("i3QJs"),e.exports),o(parcelRequire("a7e0F"),e.exports),o(parcelRequire("kKRUT"),e.exports),o(parcelRequire("1wwet"),e.exports),o(parcelRequire("PCzB4"),e.exports),o(parcelRequire("2bXrE"),e.exports),o(parcelRequire("49TD5"),e.exports)})),parcelRequire.register("i3QJs",(function(e,t){"use strict";var a,o,n;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.TokenStandard=e.exports.UseMethod=e.exports.MetadataKey=void 0,(a=e.exports.MetadataKey||(e.exports.MetadataKey={}))[a.Uninitialized=0]="Uninitialized",a[a.MetadataV1=4]="MetadataV1",a[a.EditionV1=1]="EditionV1",a[a.MasterEditionV1=2]="MasterEditionV1",a[a.MasterEditionV2=6]="MasterEditionV2",a[a.EditionMarker=7]="EditionMarker",a[a.UseAuthorityRecord=8]="UseAuthorityRecord",a[a.CollectionAuthorityRecord=9]="CollectionAuthorityRecord",(o=e.exports.UseMethod||(e.exports.UseMethod={}))[o.Burn=0]="Burn",o[o.Single=1]="Single",o[o.Multiple=2]="Multiple",(n=e.exports.TokenStandard||(e.exports.TokenStandard={}))[n.NonFungible=0]="NonFungible",n[n.FungibleAsset=1]="FungibleAsset",n[n.Fungible=2]="Fungible",n[n.NonFungibleEdition=3]="NonFungibleEdition"})),parcelRequire.register("a7e0F",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))},o=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.computeCreatorOffset=e.exports.MAX_CREATOR_LEN=e.exports.MAX_URI_LENGTH=e.exports.MAX_SYMBOL_LENGTH=e.exports.MAX_NAME_LENGTH=e.exports.Metadata=e.exports.MetadataData=e.exports.MetadataDataData=e.exports.DataV2=e.exports.Creator=void 0;var n=parcelRequire("frzLv"),s=parcelRequire("5cySN");const r=o(parcelRequire("bDdkr")),i=o(parcelRequire("8eDFA"));var c=parcelRequire("ajHSv"),d=parcelRequire("3zrAD"),l=parcelRequire("1wwet"),m=parcelRequire("kKRUT"),u=parcelRequire("49TD5"),p=parcelRequire("2bXrE"),h=parcelRequire("i3QJs");class g extends n.Borsh.Data{}e.exports.Creator=g,g.SCHEMA=g.struct([["address","pubkeyAsString"],["verified","u8"],["share","u8"]]);class b extends n.Borsh.Data{}e.exports.DataV2=b,b.SCHEMA=new Map([...g.SCHEMA,...p.Collection.SCHEMA,...u.Uses.SCHEMA,...b.struct([["name","string"],["symbol","string"],["uri","string"],["sellerFeeBasisPoints","u16"],["creators",{kind:"option",type:[g]}],["collection",{kind:"option",type:p.Collection}],["uses",{kind:"option",type:u.Uses}]])]);class f extends n.Borsh.Data{constructor(e){super(e);const t=new RegExp("\0","g");this.name=e.name.replace(t,""),this.uri=e.uri.replace(t,""),this.symbol=e.symbol.replace(t,"")}}e.exports.MetadataDataData=f,f.SCHEMA=new Map([...g.SCHEMA,...f.struct([["name","string"],["symbol","string"],["uri","string"],["sellerFeeBasisPoints","u16"],["creators",{kind:"option",type:[g]}]])]);class y extends n.Borsh.Data{constructor(e){super(e),this.key=h.MetadataKey.MetadataV1}}e.exports.MetadataData=y,y.SCHEMA=new Map([...f.SCHEMA,...p.Collection.SCHEMA,...u.Uses.SCHEMA,...y.struct([["key","u8"],["updateAuthority","pubkeyAsString"],["mint","pubkeyAsString"],["data",f],["primarySaleHappened","u8"],["isMutable","u8"],["editionNonce",{kind:"option",type:"u8"}],["tokenStandard",{kind:"option",type:"u8"}],["collection",{kind:"option",type:p.Collection}],["uses",{kind:"option",type:u.Uses}]])]);class $ extends n.Account{constructor(e,t){if(super(e,t),!this.assertOwner(d.MetadataProgram.PUBKEY))throw(0,n.ERROR_INVALID_OWNER)();if(!$.isCompatible(this.info.data))throw(0,n.ERROR_INVALID_ACCOUNT_DATA)();this.data=y.deserialize(this.info.data)}static isCompatible(e){return e[0]===h.MetadataKey.MetadataV1}static getPDA(e){return a(this,void 0,void 0,(function*(){return d.MetadataProgram.findProgramAddress([c.Buffer.from(d.MetadataProgram.PREFIX),d.MetadataProgram.PUBKEY.toBuffer(),new s.PublicKey(e).toBuffer()])}))}static findMany(t,o={}){return a(this,void 0,void 0,(function*(){const a=[{memcmp:{offset:0,bytes:i.default.encode(c.Buffer.from([h.MetadataKey.MetadataV1]))}},o.updateAuthority&&{memcmp:{offset:1,bytes:new s.PublicKey(o.updateAuthority).toBase58()}},o.mint&&{memcmp:{offset:33,bytes:new s.PublicKey(o.mint).toBase58()}}].filter(Boolean);return o.creators?(yield Promise.all(Array.from(Array(n.config.maxCreatorLimit).keys()).reduce(((n,r)=>[...n,...o.creators.map((o=>d.MetadataProgram.getProgramAccounts(t,{filters:[...a,{memcmp:{offset:(0,e.exports.computeCreatorOffset)(r),bytes:new s.PublicKey(o).toBase58()}}]})))]),[]))).flat().map((e=>$.from(e))):(yield d.MetadataProgram.getProgramAccounts(t,{filters:a})).map((e=>$.from(e)))}))}static findByMint(e,t){return a(this,void 0,void 0,(function*(){const a=yield $.getPDA(t);return $.load(e,a)}))}static findByOwner(e,t){return a(this,void 0,void 0,(function*(){const a=yield n.TokenAccount.getTokenAccountsByOwner(e,t),o=new Map(a.map((({data:e})=>[e.mint.toString(),e])));return(yield $.findMany(e)).filter((e=>{var t,a;return o.has(e.data.mint)&&((null===(a=null===(t=null==o?void 0:o.get(e.data.mint))||void 0===t?void 0:t.amount)||void 0===a?void 0:a.toNumber())||0)>0}))}))}static findByOwnerV2(e,t){return a(this,void 0,void 0,(function*(){const a=(yield n.TokenAccount.getTokenAccountsByOwner(e,t)).map((({data:e})=>e)).filter((({amount:e})=>(null==e?void 0:e.toNumber())>0));return(yield Promise.all(a.map((({mint:t})=>$.findMany(e,{mint:t}))))).flat()}))}static findByOwnerV3(e,t){return a(this,void 0,void 0,(function*(){const a=yield $.findInfoByOwner(e,t);return Array.from(a.entries()).map((([e,t])=>new $(e,t)))}))}static findInfoByOwner(e,t){return a(this,void 0,void 0,(function*(){const a=(yield n.TokenAccount.getTokenAccountsByOwner(e,t)).reduce(((e,{data:t})=>{var a;return(null===(a=t.amount)||void 0===a?void 0:a.eq(new r.default(1)))?[...e,$.getPDA(t.mint)]:e}),[]),o=yield Promise.all(a);return n.Account.getInfos(e,o)}))}static findDataByOwner(e,t){return a(this,void 0,void 0,(function*(){const a=yield $.findInfoByOwner(e,t);return Array.from(a.values()).map((e=>y.deserialize(e.data)))}))}static getEdition(e,t){return a(this,void 0,void 0,(function*(){const a=yield l.Edition.getPDA(t),o=yield n.Account.getInfo(e,a);switch(null==o?void 0:o.data[0]){case h.MetadataKey.EditionV1:return new l.Edition(a,o);case h.MetadataKey.MasterEditionV1:case h.MetadataKey.MasterEditionV2:return new m.MasterEdition(a,o);default:return}}))}}e.exports.Metadata=$,e.exports.MAX_NAME_LENGTH=32,e.exports.MAX_SYMBOL_LENGTH=10,e.exports.MAX_URI_LENGTH=200,e.exports.MAX_CREATOR_LEN=34;e.exports.computeCreatorOffset=t=>69+e.exports.MAX_NAME_LENGTH+4+e.exports.MAX_URI_LENGTH+4+e.exports.MAX_SYMBOL_LENGTH+2+1+4+t*e.exports.MAX_CREATOR_LEN})),parcelRequire.register("frzLv",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("1nXZb"),e.exports),o(parcelRequire("lbF2x"),e.exports),o(parcelRequire("70iQw"),e.exports),o(parcelRequire("9iA38"),e.exports),o(parcelRequire("6T2TX"),e.exports),o(parcelRequire("7BD1j"),e.exports),o(parcelRequire("lNtlE"),e.exports)})),parcelRequire.register("1nXZb",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("1vEan"),e.exports),o(parcelRequire("4It6N"),e.exports)})),parcelRequire.register("1vEan",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Account=void 0;var o=parcelRequire("5cySN"),n=parcelRequire("ajHSv"),s=parcelRequire("70iQw");class r{constructor(e,t){this.pubkey=new o.PublicKey(e),this.info=t}static from(e){return new this(e.pubkey,e.info)}static load(e,t){return a(this,void 0,void 0,(function*(){const a=yield r.getInfo(e,t);return new this(t,a)}))}static isCompatible(e){throw new Error("method 'isCompatible' is not implemented")}static getInfo(e,t){return a(this,void 0,void 0,(function*(){const a=yield e.getAccountInfo(new o.PublicKey(t));if(!a)throw(0,s.ERROR_ACCOUNT_NOT_FOUND)(t);return Object.assign(Object.assign({},a),{data:n.Buffer.from(null==a?void 0:a.data)})}))}static getInfos(e,t,o="recent"){return a(this,void 0,void 0,(function*(){const a=[];for(let n=0;n{var t;return[...null!==(t=null==e?void 0:e.entries())&&void 0!==t?t:[]].forEach((([e,t])=>n.set(e,t)))})),n}))}static getMultipleAccounts(e,t,o){return a(this,void 0,void 0,(function*(){const a=e._buildArgs([t.map((e=>e.toString()))],o,"base64"),s=yield e._rpcRequest("getMultipleAccounts",a);if(s.error)throw new Error("failed to get info about accounts "+s.error.message);if(!s.result.value)return;return s.result.value.filter(Boolean).map((e=>Object.assign(Object.assign({},e),{data:n.Buffer.from(e.data[0],"base64")}))).reduce(((e,a,o)=>(e.set(t[o],a),e)),new Map)}))}assertOwner(e){var t;return null===(t=this.info)||void 0===t?void 0:t.owner.equals(new o.PublicKey(e))}toJSON(){var e,t,a,n,s;return{pubkey:this.pubkey.toString(),info:{executable:!!(null===(e=this.info)||void 0===e?void 0:e.executable),owner:(null===(t=this.info)||void 0===t?void 0:t.owner)?new o.PublicKey(null===(a=this.info)||void 0===a?void 0:a.owner):null,lamports:null===(n=this.info)||void 0===n?void 0:n.lamports,data:null===(s=this.info)||void 0===s?void 0:s.data.toJSON()},data:this.data}}toString(){return JSON.stringify(this.toJSON())}}e.exports.Account=r})),parcelRequire.register("70iQw",(function(e,t){"use strict";var a,o;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ERROR_ACCOUNT_NOT_FOUND=e.exports.ERROR_DEPRECATED_ACCOUNT_DATA=e.exports.ERROR_INVALID_ACCOUNT_DATA=e.exports.ERROR_INVALID_OWNER=e.exports.MetaplexError=e.exports.ErrorCode=void 0,(o=a=e.exports.ErrorCode||(e.exports.ErrorCode={}))[o.ERROR_INVALID_OWNER=0]="ERROR_INVALID_OWNER",o[o.ERROR_INVALID_ACCOUNT_DATA=1]="ERROR_INVALID_ACCOUNT_DATA",o[o.ERROR_DEPRECATED_ACCOUNT_DATA=2]="ERROR_DEPRECATED_ACCOUNT_DATA",o[o.ERROR_ACCOUNT_NOT_FOUND=3]="ERROR_ACCOUNT_NOT_FOUND";class n extends Error{constructor(e,t){super(t),this.errorCode=e}}e.exports.MetaplexError=n;e.exports.ERROR_INVALID_OWNER=()=>new n(a.ERROR_INVALID_OWNER,"Invalid owner");e.exports.ERROR_INVALID_ACCOUNT_DATA=()=>new n(a.ERROR_INVALID_ACCOUNT_DATA,"Invalid data");e.exports.ERROR_DEPRECATED_ACCOUNT_DATA=()=>new n(a.ERROR_DEPRECATED_ACCOUNT_DATA,"Account data is deprecated");e.exports.ERROR_ACCOUNT_NOT_FOUND=e=>new n(a.ERROR_ACCOUNT_NOT_FOUND,`Unable to find account: ${e}`)})),parcelRequire.register("4It6N",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.deserialize=e.exports.TokenAccount=void 0;var o=parcelRequire("70iQw"),n=parcelRequire("1vEan"),s=parcelRequire("hCp3F"),r=parcelRequire("5cySN");class i extends n.Account{constructor(t,a){if(super(t,a),!this.assertOwner(s.TOKEN_PROGRAM_ID))throw(0,o.ERROR_INVALID_OWNER)();if(!i.isCompatible(this.info.data))throw(0,o.ERROR_INVALID_ACCOUNT_DATA)();this.data=(0,e.exports.deserialize)(this.info.data)}static isCompatible(e){return e.length===s.AccountLayout.span}static getTokenAccountsByOwner(e,t){return a(this,void 0,void 0,(function*(){return(yield e.getTokenAccountsByOwner(new r.PublicKey(t),{programId:s.TOKEN_PROGRAM_ID})).value.map((({pubkey:e,account:t})=>new i(e,t)))}))}}e.exports.TokenAccount=i;e.exports.deserialize=e=>{const t=s.AccountLayout.decode(e);return t.mint=new r.PublicKey(t.mint),t.owner=new r.PublicKey(t.owner),t.amount=s.u64.fromBuffer(t.amount),0===t.delegateOption?(t.delegate=null,t.delegatedAmount=new s.u64(0)):(t.delegate=new r.PublicKey(t.delegate),t.delegatedAmount=s.u64.fromBuffer(t.delegatedAmount)),t.isInitialized=0!==t.state,t.isFrozen=2===t.state,1===t.isNativeOption?(t.rentExemptReserve=s.u64.fromBuffer(t.isNative),t.isNative=!0):(t.rentExemptReserve=null,t.isNative=!1),0===t.closeAuthorityOption?t.closeAuthority=null:t.closeAuthority=new r.PublicKey(t.closeAuthority),t}})),parcelRequire.register("lbF2x",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.config=void 0,e.exports.config={arweaveWallet:"HvwC9QSAzvGXhhVrgPmauVwFWcYZhne3hVot9EbHuFTm",programs:{auction:"auctxRXPeJoc4817jDhf4HbjnhEcr1cCXenosMhK5R8",metadata:"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",metaplex:"p1exdMJcjVao65QdewkaZRUnU6VPSXhus9n2GzWfh98",vault:"vau1zxA2LbssAUEF7Gpw91zMM1LvXrvpzJtmZ58rPsn",packs:"BNRmGgciUJuyznkYHnmitA9an1BcDDiU9JmjEQwvBYVR",memo:"MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr",token:"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},maxCreatorLimit:5}})),parcelRequire.register("9iA38",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Program=void 0;var o=parcelRequire("5cySN"),n=parcelRequire("1nXZb"),s=parcelRequire("ajHSv");e.exports.Program=class{static findProgramAddress(e){return a(this,void 0,void 0,(function*(){return(yield o.PublicKey.findProgramAddress(e,this.PUBKEY))[0]}))}static getProgramAccounts(e,t){return a(this,void 0,void 0,(function*(){const a={};let r;t&&("string"==typeof t?r=t:(r=t.commitment,t.dataSlice&&(a.dataSlice=t.dataSlice),t.filters&&(a.filters=t.filters)));const i=e._buildArgs([this.PUBKEY.toBase58()],r,"base64",a);return(yield e._rpcRequest("getProgramAccounts",i)).result.map((({account:{data:e,executable:t,lamports:a,owner:n},pubkey:r})=>({account:{data:s.Buffer.from(e[0],"base64"),executable:t,lamports:a,owner:new o.PublicKey(n)},pubkey:new o.PublicKey(r)}))).map((({pubkey:e,account:t})=>new n.Account(e,t)))}))}}})),parcelRequire.register("6T2TX",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Transaction=void 0;var a=parcelRequire("5cySN");class o extends a.Transaction{constructor(e){super(e)}static fromCombined(e,t={}){const a=new o(t);return e.forEach((e=>e.instructions.forEach((e=>{a.add(e)})))),a}}e.exports.Transaction=o})),parcelRequire.register("7BD1j",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),parcelRequire.register("lNtlE",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},s=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Borsh=void 0,e.exports.Borsh=n(parcelRequire("5tCVf")),s(parcelRequire("447yz"),e.exports)})),parcelRequire.register("5tCVf",(function(e,t){var a=parcelRequire("ajHSv").Buffer,o=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.serialize=e.exports.deserializeUnchecked=e.exports.deserialize=e.exports.struct=e.exports.Data=e.exports.extendBorsh=void 0;var n=parcelRequire("5cySN"),s=parcelRequire("7RSTc");Object.defineProperty(e.exports,"deserializeUnchecked",{enumerable:!0,get:function(){return s.deserializeUnchecked}}),Object.defineProperty(e.exports,"serialize",{enumerable:!0,get:function(){return s.serialize}}),Object.defineProperty(e.exports,"deserialize",{enumerable:!0,get:function(){return s.deserialize}});const r=o(parcelRequire("8eDFA"));e.exports.extendBorsh=()=>{s.BinaryReader.prototype.readPubkey=function(){const e=this.readFixedArray(32);return new n.PublicKey(e)},s.BinaryWriter.prototype.writePubkey=function(e){this.writeFixedArray(e.toBuffer())},s.BinaryReader.prototype.readPubkeyAsString=function(){const e=this.readFixedArray(32);return r.default.encode(e)},s.BinaryWriter.prototype.writePubkeyAsString=function(e){this.writeFixedArray(r.default.decode(e))}},(0,e.exports.extendBorsh)();e.exports.Data=class{constructor(e={}){Object.assign(this,e)}static struct(t){return(0,e.exports.struct)(this,t)}static serialize(e={}){return a.from((0,s.serialize)(this.SCHEMA,new this(e)))}static deserialize(e){return(0,s.deserializeUnchecked)(this.SCHEMA,this,e)}};e.exports.struct=(e,t)=>new Map([[e,{kind:"struct",fields:t}]])})),parcelRequire.register("447yz",(function(e,t){"use strict";var a=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getBNFromData=e.exports.TupleNumericType=void 0;const o=a(parcelRequire("bDdkr"));var n,s;(s=n=e.exports.TupleNumericType||(e.exports.TupleNumericType={}))[s.U8=1]="U8",s[s.U16=2]="U16",s[s.U32=4]="U32",s[s.U64=8]="U64";e.exports.getBNFromData=(e,t,a)=>{switch(a){case n.U8:return new o.default(e[t],"le");case n.U16:return new o.default(e.slice(t,t+2),"le");case n.U32:return new o.default(e.slice(t,t+4),"le");case n.U64:return new o.default(e.slice(t,t+8),"le")}}})),parcelRequire.register("3zrAD",(function(e,t){var a=parcelRequire("ajHSv").Buffer,o=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.MetadataProgram=void 0;var n=parcelRequire("5cySN"),s=parcelRequire("frzLv");class r extends s.Program{static findEditionAccount(e,t){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),e.toBuffer(),a.from(r.EDITION,"utf8"),a.from(t,"utf8")],r.PUBKEY)}))}static findMasterEditionAccount(e){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),e.toBuffer(),a.from(r.EDITION,"utf8")],r.PUBKEY)}))}static findMetadataAccount(e){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),e.toBuffer()],r.PUBKEY)}))}static findUseAuthorityAccount(e,t){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),e.toBuffer(),a.from(r.USER,"utf8"),t.toBuffer()],r.PUBKEY)}))}static findCollectionAuthorityAccount(e,t){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),e.toBuffer(),a.from(r.COLLECTION_AUTHORITY,"utf8"),t.toBuffer()],r.PUBKEY)}))}static findProgramAsBurnerAccount(){return o(this,void 0,void 0,(function*(){return n.PublicKey.findProgramAddress([a.from(r.PREFIX,"utf8"),r.PUBKEY.toBuffer(),a.from(r.BURN,"utf8")],r.PUBKEY)}))}}e.exports.MetadataProgram=r,r.PREFIX="metadata",r.EDITION="edition",r.USER="user",r.COLLECTION_AUTHORITY="collection_authority",r.BURN="burn",r.PUBKEY=new n.PublicKey(s.config.programs.metadata)})),parcelRequire.register("1wwet",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Edition=e.exports.EditionData=void 0;var o=parcelRequire("frzLv"),n=parcelRequire("3zrAD"),s=parcelRequire("5cySN"),r=parcelRequire("ajHSv"),i=parcelRequire("i3QJs");class c extends o.Borsh.Data{constructor(e){super(e),this.key=i.MetadataKey.EditionV1}}e.exports.EditionData=c,c.SCHEMA=c.struct([["key","u8"],["parent","pubkeyAsString"],["edition","u64"]]);class d extends o.Account{constructor(e,t){if(super(e,t),!this.assertOwner(n.MetadataProgram.PUBKEY))throw(0,o.ERROR_INVALID_OWNER)();if(!d.isCompatible(this.info.data))throw(0,o.ERROR_INVALID_ACCOUNT_DATA)();this.data=c.deserialize(this.info.data)}static getPDA(e){return a(this,void 0,void 0,(function*(){return n.MetadataProgram.findProgramAddress([r.Buffer.from(n.MetadataProgram.PREFIX),n.MetadataProgram.PUBKEY.toBuffer(),new s.PublicKey(e).toBuffer(),r.Buffer.from(d.EDITION_PREFIX)])}))}static isCompatible(e){return e[0]===i.MetadataKey.EditionV1}}e.exports.Edition=d,d.EDITION_PREFIX="edition"})),parcelRequire.register("kKRUT",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))},o=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.MasterEdition=e.exports.MasterEditionV2Data=e.exports.MasterEditionV1Data=void 0;var n=parcelRequire("frzLv");const s=o(parcelRequire("8eDFA"));var r=parcelRequire("1wwet"),i=parcelRequire("3zrAD"),c=parcelRequire("ajHSv"),d=parcelRequire("5cySN"),l=parcelRequire("i3QJs");class m extends n.Borsh.Data{constructor(e){super(e),this.key=l.MetadataKey.MasterEditionV1}}e.exports.MasterEditionV1Data=m,m.SCHEMA=m.struct([["key","u8"],["supply","u64"],["maxSupply",{kind:"option",type:"u64"}],["printingMint","pubkeyAsString"],["oneTimePrintingAuthorizationMint","pubkeyAsString"]]);class u extends n.Borsh.Data{constructor(e){super(e),this.key=l.MetadataKey.MasterEditionV2}}e.exports.MasterEditionV2Data=u,u.SCHEMA=u.struct([["key","u8"],["supply","u64"],["maxSupply",{kind:"option",type:"u64"}]]);class p extends n.Account{constructor(e,t){if(super(e,t),!this.assertOwner(i.MetadataProgram.PUBKEY))throw(0,n.ERROR_INVALID_OWNER)();if(p.isMasterEditionV1(this.info.data))this.data=m.deserialize(this.info.data);else{if(!p.isMasterEditionV2(this.info.data))throw(0,n.ERROR_INVALID_ACCOUNT_DATA)();this.data=u.deserialize(this.info.data)}}static getPDA(e){return a(this,void 0,void 0,(function*(){return i.MetadataProgram.findProgramAddress([c.Buffer.from(i.MetadataProgram.PREFIX),i.MetadataProgram.PUBKEY.toBuffer(),new d.PublicKey(e).toBuffer(),c.Buffer.from(p.EDITION_PREFIX)])}))}static isCompatible(e){return p.isMasterEditionV1(e)||p.isMasterEditionV2(e)}static isMasterEditionV1(e){return e[0]===l.MetadataKey.MasterEditionV1}static isMasterEditionV2(e){return e[0]===l.MetadataKey.MasterEditionV2}getEditions(e){return a(this,void 0,void 0,(function*(){return(yield i.MetadataProgram.getProgramAccounts(e,{filters:[{memcmp:{offset:0,bytes:s.default.encode(c.Buffer.from([l.MetadataKey.EditionV1]))}},{memcmp:{offset:1,bytes:this.pubkey.toBase58()}}]})).map((e=>r.Edition.from(e)))}))}}e.exports.MasterEdition=p,p.EDITION_PREFIX="edition"})),parcelRequire.register("49TD5",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UseAuthorityRecord=e.exports.Uses=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("jrvsi");class n extends a.Borsh.Data{constructor(e){super(e),this.useMethod=e.useMethod,this.total=e.total,this.remaining=e.remaining}}e.exports.Uses=n,n.SCHEMA=n.struct([["useMethod","u8"],["total","u64"],["remaining","u64"]]);class s extends a.Borsh.Data{constructor(e){super(e),this.key=o.MetadataKey.UseAuthorityRecord,this.allowedUses=e.allowedUses,this.bump=e.bump}}e.exports.UseAuthorityRecord=s,s.SCHEMA=s.struct([["key","u8"],["allowedUses","u64"],["bump","u8"]])})),parcelRequire.register("2bXrE",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CollctionAuthorityRecord=e.exports.Collection=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("i3QJs");class n extends a.Borsh.Data{constructor(e){super(e),this.key=e.key,this.verified=e.verified}}e.exports.Collection=n,n.SCHEMA=n.struct([["verified","u8"],["key","pubkeyAsString"]]);class s extends a.Borsh.Data{constructor(e){super(e),this.key=o.MetadataKey.CollectionAuthorityRecord,this.bump=e.bump}}e.exports.CollctionAuthorityRecord=s,s.SCHEMA=s.struct([["key","u8"],["bump","u8"]])})),parcelRequire.register("PCzB4",(function(e,t){"use strict";var a=e.exports&&e.exports.__awaiter||function(e,t,a,o){return new(a||(a=Promise))((function(n,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function i(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,i)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.EditionMarker=e.exports.EditionMarkerData=void 0;var o=parcelRequire("frzLv"),n=parcelRequire("5cySN"),s=parcelRequire("1wwet"),r=parcelRequire("3zrAD"),i=parcelRequire("ajHSv"),c=parcelRequire("i3QJs");class d extends o.Borsh.Data{constructor(e){super(e),this.key=c.MetadataKey.EditionMarker}editionTaken(e){const t=e%l.DATA_SIZE,a=Math.floor(t/8);if(a>30)throw Error("Bad index for edition");const o=7-t%8,n=Math.pow(2,o);return 0!=(this.ledger[a]&n)}}e.exports.EditionMarkerData=d,d.SCHEMA=d.struct([["key","u8"],["ledger",[31]]]);class l extends o.Account{constructor(e,t){if(super(e,t),!this.assertOwner(r.MetadataProgram.PUBKEY))throw(0,o.ERROR_INVALID_OWNER)();if(!l.isCompatible(this.info.data))throw(0,o.ERROR_INVALID_ACCOUNT_DATA)();this.data=d.deserialize(this.info.data)}static getPDA(e,t){return a(this,void 0,void 0,(function*(){const a=Math.floor(t.toNumber()/248);return r.MetadataProgram.findProgramAddress([i.Buffer.from(r.MetadataProgram.PREFIX),r.MetadataProgram.PUBKEY.toBuffer(),new n.PublicKey(e).toBuffer(),i.Buffer.from(s.Edition.EDITION_PREFIX),i.Buffer.from(a.toString())])}))}static isCompatible(e){return e[0]===c.MetadataKey.EditionMarker}}e.exports.EditionMarker=l,l.DATA_SIZE=248})),parcelRequire.register("kyJnI",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("7lCHw"),e.exports),o(parcelRequire("jYqFh"),e.exports),o(parcelRequire("b5tDj"),e.exports),o(parcelRequire("3occ7"),e.exports),o(parcelRequire("8Y1QP"),e.exports),o(parcelRequire("dlwYi"),e.exports),o(parcelRequire("14Dyg"),e.exports),o(parcelRequire("jEDI8"),e.exports),o(parcelRequire("2MuDu"),e.exports),o(parcelRequire("hU5vT"),e.exports),o(parcelRequire("1pFnT"),e.exports),o(parcelRequire("dlwYi"),e.exports),o(parcelRequire("cTPwo"),e.exports),o(parcelRequire("e9zgY"),e.exports),o(parcelRequire("6DEgy"),e.exports),o(parcelRequire("bmOAE"),e.exports),o(parcelRequire("6LWzv"),e.exports),o(parcelRequire("9BF7O"),e.exports),o(parcelRequire("cE8mL"),e.exports),o(parcelRequire("01XKe"),e.exports),o(parcelRequire("aeZ12"),e.exports)})),parcelRequire.register("7lCHw",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CreateMetadata=e.exports.CreateMetadataArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("a7e0F"),s=parcelRequire("3zrAD");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=0}}e.exports.CreateMetadataArgs=r,r.SCHEMA=new Map([...n.MetadataDataData.SCHEMA,...r.struct([["instruction","u8"],["data",n.MetadataDataData],["isMutable","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:n,metadataData:i,updateAuthority:c,mint:d,mintAuthority:l}=t,m=r.serialize({data:i,isMutable:!0});this.add(new o.TransactionInstruction({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:m}))}}e.exports.CreateMetadata=i})),parcelRequire.register("jYqFh",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UpdateMetadata=e.exports.UpdateMetadataArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("a7e0F"),s=parcelRequire("3zrAD");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=1}}e.exports.UpdateMetadataArgs=r,r.SCHEMA=new Map([...n.MetadataDataData.SCHEMA,...r.struct([["instruction","u8"],["data",{kind:"option",type:n.MetadataDataData}],["updateAuthority",{kind:"option",type:"pubkeyAsString"}],["primarySaleHappened",{kind:"option",type:"u8"}]])]);class i extends a.Transaction{constructor(e,t){super(e);const{metadata:a,metadataData:n,updateAuthority:i,newUpdateAuthority:c,primarySaleHappened:d}=t,l=r.serialize({data:n,updateAuthority:c&&c.toString(),primarySaleHappened:d||null});this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:l}))}}e.exports.UpdateMetadata=i})),parcelRequire.register("b5tDj",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CreateMasterEdition=e.exports.CreateMasterEditionArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("hCp3F"),n=parcelRequire("5cySN"),s=parcelRequire("3zrAD");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=10}}e.exports.CreateMasterEditionArgs=r,r.SCHEMA=r.struct([["instruction","u8"],["maxSupply",{kind:"option",type:"u64"}]]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{edition:i,metadata:c,updateAuthority:d,mint:l,mintAuthority:m,maxSupply:u}=t,p=r.serialize({maxSupply:u||null});this.add(new n.TransactionInstruction({keys:[{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:l,isSigner:!1,isWritable:!0},{pubkey:d,isSigner:!0,isWritable:!1},{pubkey:m,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:p}))}}e.exports.CreateMasterEdition=i})),parcelRequire.register("3occ7",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.MintNewEditionFromMasterEditionViaToken=e.exports.MintNewEditionFromMasterEditionViaTokenArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("hCp3F"),n=parcelRequire("5cySN"),s=parcelRequire("3zrAD");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=11}}e.exports.MintNewEditionFromMasterEditionViaTokenArgs=r,r.SCHEMA=r.struct([["instruction","u8"],["edition","u64"]]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{edition:i,metadata:c,updateAuthority:d,masterEdition:l,masterMetadata:m,mint:u,editionMarker:p,mintAuthority:h,tokenOwner:g,tokenAccount:b,editionValue:f}=t,y=r.serialize({edition:f});this.add(new n.TransactionInstruction({keys:[{pubkey:c,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:l,isSigner:!1,isWritable:!0},{pubkey:u,isSigner:!1,isWritable:!0},{pubkey:p,isSigner:!1,isWritable:!0},{pubkey:h,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:g,isSigner:!0,isWritable:!1},{pubkey:b,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:m,isSigner:!1,isWritable:!1},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:y}))}}e.exports.MintNewEditionFromMasterEditionViaToken=i})),parcelRequire.register("8Y1QP",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UpdatePrimarySaleHappenedViaToken=e.exports.UpdatePrimarySaleHappenedViaTokenArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("3zrAD");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=4}}e.exports.UpdatePrimarySaleHappenedViaTokenArgs=s,s.SCHEMA=s.struct([["instruction","u8"]]);class r extends a.Transaction{constructor(e,t){super(e);const{metadata:a,owner:r,tokenAccount:i}=t,c=s.serialize();this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!1}],programId:n.MetadataProgram.PUBKEY,data:c}))}}e.exports.UpdatePrimarySaleHappenedViaToken=r})),parcelRequire.register("dlwYi",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.SignMetadata=e.exports.SignMetadataArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("3zrAD");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=7}}e.exports.SignMetadataArgs=s,s.SCHEMA=s.struct([["instruction","u8"]]);class r extends a.Transaction{constructor(e,t){super(e);const{metadata:a,creator:r}=t,i=s.serialize();this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:n.MetadataProgram.PUBKEY,data:i}))}}e.exports.SignMetadata=r})),parcelRequire.register("14Dyg",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UpdateMetadataV2=e.exports.UpdateMetadataV2Args=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("a7e0F"),s=parcelRequire("3zrAD");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=15}}e.exports.UpdateMetadataV2Args=r,r.SCHEMA=new Map([...n.DataV2.SCHEMA,...r.struct([["instruction","u8"],["data",{kind:"option",type:n.DataV2}],["updateAuthority",{kind:"option",type:"pubkeyAsString"}],["primarySaleHappened",{kind:"option",type:"u8"}],["isMutable",{kind:"option",type:"u8"}]])]);class i extends a.Transaction{constructor(e,t){super(e);const{metadata:a,metadataData:n,updateAuthority:i,newUpdateAuthority:c,primarySaleHappened:d,isMutable:l}=t,m=r.serialize({data:n,updateAuthority:c&&c.toString(),primarySaleHappened:d||null,isMutable:l||null});this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:m}))}}e.exports.UpdateMetadataV2=i})),parcelRequire.register("jEDI8",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CreateMetadataV2=e.exports.CreateMetadataV2Args=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("a7e0F"),s=parcelRequire("3zrAD");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=16}}e.exports.CreateMetadataV2Args=r,r.SCHEMA=new Map([...n.DataV2.SCHEMA,...r.struct([["instruction","u8"],["data",n.DataV2],["isMutable","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:n,metadataData:i,updateAuthority:c,mint:d,mintAuthority:l}=t,m=r.serialize({data:i,isMutable:!0});this.add(new o.TransactionInstruction({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:m}))}}e.exports.CreateMetadataV2=i})),parcelRequire.register("2MuDu",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CreateMasterEditionV3=e.exports.CreateMasterEditionV3Args=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("hCp3F"),n=parcelRequire("5cySN"),s=parcelRequire("3zrAD");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=17}}e.exports.CreateMasterEditionV3Args=r,r.SCHEMA=r.struct([["instruction","u8"],["maxSupply",{kind:"option",type:"u64"}]]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{edition:i,metadata:c,updateAuthority:d,mint:l,mintAuthority:m,maxSupply:u}=t,p=r.serialize({maxSupply:u||null});this.add(new n.TransactionInstruction({keys:[{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:l,isSigner:!1,isWritable:!0},{pubkey:d,isSigner:!0,isWritable:!1},{pubkey:m,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:c,isSigner:!1,isWritable:!0},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:s.MetadataProgram.PUBKEY,data:p}))}}e.exports.CreateMasterEditionV3=i})),parcelRequire.register("hU5vT",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.VerifyCollection=e.exports.VerifyCollectionArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("3zrAD");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=18}}e.exports.VerifyCollectionArgs=s,s.SCHEMA=new Map([...s.struct([["instruction","u8"]])]);class r extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:r,collectionAuthority:i,collectionMint:c,collectionMetadata:d,collectionMasterEdition:l,collectionAuthorityRecord:m}=t,u=s.serialize(),p=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1}];m&&p.push({pubkey:m,isSigner:!1,isWritable:!1}),this.add(new o.TransactionInstruction({keys:p,programId:n.MetadataProgram.PUBKEY,data:u}))}}e.exports.VerifyCollection=r})),parcelRequire.register("1pFnT",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UnVerifyCollection=e.exports.UnVerifyCollectionArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("3zrAD");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=22}}e.exports.UnVerifyCollectionArgs=s,s.SCHEMA=new Map([...s.struct([["instruction","u8"]])]);class r extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:r,collectionAuthority:i,collectionMint:c,collectionMetadata:d,collectionMasterEdition:l,collectionAuthorityRecord:m}=t,u=s.serialize(),p=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1}];m&&p.push({pubkey:m,isSigner:!1,isWritable:!1}),this.add(new o.TransactionInstruction({keys:p,programId:n.MetadataProgram.PUBKEY,data:u}))}}e.exports.UnVerifyCollection=r})),parcelRequire.register("cTPwo",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.SetAndVerifyCollectionCollection=e.exports.SetAndVerifyCollectionArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("3zrAD");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=25}}e.exports.SetAndVerifyCollectionArgs=s,s.SCHEMA=new Map([...s.struct([["instruction","u8"]])]);class r extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:r,collectionAuthority:i,collectionMint:c,updateAuthority:d,collectionMetadata:l,collectionMasterEdition:m,collectionAuthorityRecord:u}=t,p=s.serialize(),h=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1},{pubkey:m,isSigner:!1,isWritable:!1}];u&&h.push({pubkey:u,isSigner:!1,isWritable:!1}),this.add(new o.TransactionInstruction({keys:h,programId:n.MetadataProgram.PUBKEY,data:p}))}}e.exports.SetAndVerifyCollectionCollection=r})),parcelRequire.register("e9zgY",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ApproveUseAuthority=e.exports.ApproveUseAuthorityArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("hCp3F"),n=parcelRequire("5cySN"),s=parcelRequire("3zrAD");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=20}}e.exports.ApproveUseAuthorityArgs=r,r.SCHEMA=new Map([...r.struct([["instruction","u8"],["numberOfUses","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{useAuthorityRecord:i,user:c,owner:d,ownerTokenAccount:l,metadata:m,mint:u,burner:p,numberOfUses:h}=t,g=r.serialize({numberOfUses:h}),b=[{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:d,isSigner:!0,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!0},{pubkey:m,isSigner:!1,isWritable:!1},{pubkey:u,isSigner:!1,isWritable:!1},{pubkey:p,isSigner:!1,isWritable:!1},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];this.add(new n.TransactionInstruction({keys:b,programId:s.MetadataProgram.PUBKEY,data:g}))}}e.exports.ApproveUseAuthority=i})),parcelRequire.register("6DEgy",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.RevokeUseAuthority=e.exports.RevokeUseAuthorityArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("hCp3F"),n=parcelRequire("5cySN"),s=parcelRequire("3zrAD");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=21}}e.exports.RevokeUseAuthorityArgs=r,r.SCHEMA=new Map([...r.struct([["instruction","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{useAuthorityRecord:a,user:i,owner:c,ownerTokenAccount:d,metadata:l,mint:m}=t,u=r.serialize(),p=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:c,isSigner:!0,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!0},{pubkey:m,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];this.add(new n.TransactionInstruction({keys:p,programId:s.MetadataProgram.PUBKEY,data:u}))}}e.exports.RevokeUseAuthority=i})),parcelRequire.register("bmOAE",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ApproveCollectionAuthority=e.exports.ApproveCollectionAuthorityArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("3zrAD");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=23}}e.exports.ApproveCollectionAuthorityArgs=s,s.SCHEMA=new Map([...s.struct([["instruction","u8"]])]);class r extends a.Transaction{constructor(e,t){super(e);const{feePayer:a}=e,{metadata:r,collectionAuthorityRecord:i,newCollectionAuthority:c,updateAuthority:d,mint:l}=t,m=s.serialize(),u=[{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];this.add(new o.TransactionInstruction({keys:u,programId:n.MetadataProgram.PUBKEY,data:m}))}}e.exports.ApproveCollectionAuthority=r})),parcelRequire.register("6LWzv",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.RevokeCollectionAuthority=e.exports.RevokeCollectionAuthorityArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("3zrAD");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=24}}e.exports.RevokeCollectionAuthorityArgs=s,s.SCHEMA=new Map([...s.struct([["instruction","u8"]])]);class r extends a.Transaction{constructor(e,t){super(e);const{metadata:a,collectionAuthorityRecord:r,delegateAuthority:i,newCollectionAuthority:c,updateAuthority:d,mint:l}=t,m=i||c;if(!m)throw new Error("Must provide either a delegateAuthority");const u=s.serialize(),p=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:m,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!0,isWritable:!1},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:l,isSigner:!1,isWritable:!1},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];this.add(new o.TransactionInstruction({keys:p,programId:n.MetadataProgram.PUBKEY,data:u}))}}e.exports.RevokeCollectionAuthority=r})),parcelRequire.register("9BF7O",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Utilize=e.exports.UtilizeArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("hCp3F"),n=parcelRequire("5cySN"),s=parcelRequire("3zrAD");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=19}}e.exports.UtilizeArgs=r,r.SCHEMA=new Map([...r.struct([["instruction","u8"],["numberOfUses","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{metadata:a,useAuthority:i,numberOfUses:c,burner:d,tokenAccount:l}=t,m=r.serialize({numberOfUses:c}),u=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:l,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1},{pubkey:o.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1},{pubkey:n.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];i&&(u.push({pubkey:i,isSigner:!1,isWritable:!1}),u.push({pubkey:d,isSigner:!1,isWritable:!1})),this.add(new n.TransactionInstruction({keys:u,programId:s.MetadataProgram.PUBKEY,data:m}))}}e.exports.Utilize=i})),parcelRequire.register("cE8mL",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.FreezeDelegatedAccount=e.exports.FreezeDelegatedAccountArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("3zrAD"),s=parcelRequire("hCp3F");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=26}}e.exports.FreezeDelegatedAccountArgs=r,r.SCHEMA=new Map([...r.struct([["instruction","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{delegate:a,token_account:i,edition:c,mint:d}=t,l=r.serialize();this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:s.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1}],programId:n.MetadataProgram.PUBKEY,data:l}))}}e.exports.FreezeDelegatedAccount=i})),parcelRequire.register("01XKe",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ThawDelegatedAccount=e.exports.ThawDelegatedAccountArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("3zrAD"),s=parcelRequire("hCp3F");class r extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=27}}e.exports.ThawDelegatedAccountArgs=r,r.SCHEMA=new Map([...r.struct([["instruction","u8"]])]);class i extends a.Transaction{constructor(e,t){super(e);const{delegate:a,token_account:i,edition:c,mint:d}=t,l=r.serialize();this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!0,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:c,isSigner:!1,isWritable:!1},{pubkey:d,isSigner:!1,isWritable:!1},{pubkey:s.TOKEN_PROGRAM_ID,isSigner:!1,isWritable:!1}],programId:n.MetadataProgram.PUBKEY,data:l}))}}e.exports.ThawDelegatedAccount=i})),parcelRequire.register("aeZ12",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.RemoveCreatorVerification=e.exports.RemoveCreatorVerificationArgs=void 0;var a=parcelRequire("frzLv"),o=parcelRequire("5cySN"),n=parcelRequire("3zrAD");class s extends a.Borsh.Data{constructor(){super(...arguments),this.instruction=28}}e.exports.RemoveCreatorVerificationArgs=s,s.SCHEMA=s.struct([["instruction","u8"]]);class r extends a.Transaction{constructor(e,t){super(e);const{metadata:a,creator:r}=t,i=s.serialize();this.add(new o.TransactionInstruction({keys:[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:n.MetadataProgram.PUBKEY,data:i}))}}e.exports.RemoveCreatorVerification=r})),parcelRequire.register("39YmG",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PROGRAM_ID=e.exports.PROGRAM_ADDRESS=void 0;var n=parcelRequire("5cySN");o(parcelRequire("kYFXB"),e.exports),o(parcelRequire("fOWEh"),e.exports),o(parcelRequire("eNmsN"),e.exports),o(parcelRequire("2D8s9"),e.exports),e.exports.PROGRAM_ADDRESS="ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E",e.exports.PROGRAM_ID=new n.PublicKey(e.exports.PROGRAM_ADDRESS)})),parcelRequire.register("kYFXB",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.accountProviders=void 0,o(parcelRequire("iOroY"),e.exports),o(parcelRequire("bXF83"),e.exports),e.exports.accountProviders={MintState:parcelRequire("iOroY").MintState,Policy:parcelRequire("bXF83").Policy}})),parcelRequire.register("iOroY",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.mintStateBeet=e.exports.MintState=e.exports.mintStateDiscriminator=void 0;const s=n(parcelRequire("5cySN")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("emyUB"));e.exports.mintStateDiscriminator=[81,17,143,120,23,57,22,117];class c{constructor(e,t,a,o,n,s,r,i){this.version=e,this.bump=t,this.mint=a,this.policy=o,this.lockedBy=n,this.lastApprovedAt=s,this.lastTransferredAt=r,this.transferredCount=i}static fromArgs(e){return new c(e.version,e.bump,e.mint,e.policy,e.lockedBy,e.lastApprovedAt,e.lastTransferredAt,e.transferredCount)}static fromAccountInfo(e,t=0){return c.deserialize(e.data,t)}static async fromAccountAddress(e,t){const a=await e.getAccountInfo(t);if(null==a)throw new Error(`Unable to find MintState account at ${t}`);return c.fromAccountInfo(a,0)[0]}static gpaBuilder(t=new s.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){return i.GpaBuilder.fromStruct(t,e.exports.mintStateBeet)}static deserialize(t,a=0){return e.exports.mintStateBeet.deserialize(t,a)}serialize(){return e.exports.mintStateBeet.serialize({accountDiscriminator:e.exports.mintStateDiscriminator,...this})}static byteSize(t){const a=c.fromArgs(t);return e.exports.mintStateBeet.toFixedFromValue({accountDiscriminator:e.exports.mintStateDiscriminator,...a}).byteSize}static async getMinimumBalanceForRentExemption(e,t,a){return t.getMinimumBalanceForRentExemption(c.byteSize(e),a)}pretty(){return{version:this.version,bump:this.bump,mint:this.mint.toBase58(),policy:this.policy.toBase58(),lockedBy:this.lockedBy,lastApprovedAt:(()=>{const e=this.lastApprovedAt;if("function"==typeof e.toNumber)try{return e.toNumber()}catch(t){return e}return e})(),lastTransferredAt:(()=>{const e=this.lastTransferredAt;if("function"==typeof e.toNumber)try{return e.toNumber()}catch(t){return e}return e})(),transferredCount:this.transferredCount}}}e.exports.MintState=c,e.exports.mintStateBeet=new r.FixableBeetStruct([["accountDiscriminator",r.uniformFixedSizeArray(r.u8,8)],["version",r.u8],["bump",r.uniformFixedSizeArray(r.u8,1)],["mint",i.publicKey],["policy",i.publicKey],["lockedBy",r.coption(i.publicKey)],["lastApprovedAt",r.i64],["lastTransferredAt",r.i64],["transferredCount",r.u32]],c.fromArgs,"MintState")})),parcelRequire.register("emyUB",(function(e,t){$parcel$export(e.exports,"supportedTypeMap",(()=>n));var a=parcelRequire("fjmYj"),o=(a=parcelRequire("fjmYj"),parcelRequire("lSnLG"));const n=a.keysTypeMap;$parcel$exportWildcard(e.exports,a),$parcel$exportWildcard(e.exports,o)})),parcelRequire.register("fjmYj",(function(e,t){$parcel$export(e.exports,"publicKey",(()=>n)),$parcel$export(e.exports,"keysTypeMap",(()=>s));var a=parcelRequire("5cySN");const o=(0,parcelRequire("2vJuO").fixedSizeUint8Array)(32),n={write:function(e,t,a){const n=a.toBytes();o.write(e,t,n)},read:function(e,t){const n=o.read(e,t);return new(0,a.PublicKey)(n)},byteSize:o.byteSize,description:"PublicKey"},s={publicKey:{beet:"publicKey",isFixable:!1,sourcePack:"@metaplex-foundation/beet-solana",ts:"PublicKey",pack:"@solana/web3.js"}}})),parcelRequire.register("lSnLG",(function(e,t){$parcel$export(e.exports,"GpaBuilder",(()=>r));var a=parcelRequire("2vJuO"),o=parcelRequire("crIim"),n=parcelRequire("eLMNv"),s=parcelRequire("lv1TK");class r{constructor(e,t,a){this.programId=e,this.beets=t,this.accountSize=a,this.config={}}_addFilter(e){return null==this.config.filters&&(this.config.filters=[]),this.config.filters.push(e),this}_addInnerFilter(e,t,r){(0,n.logTrace)(`gpa.addInnerFilter: ${e}.${t}`);const i=this.beets.get(e);(0,o.strict)(null!=i,"Outer filter key needs to be an existing field name");const c=i.beet;let d=i.offset;const l=(0,a.isFixedSizeBeet)(c)?c:c.toFixedFromValue(r);let m;for(const[e,a]of l.fields){if(e===t){m=a;break}d+=a.byteSize}(0,o.strict)(null!=m,`${t} is not a field of the ${e} struct`);const u=(0,s.encodeFixedBeet)(m,r);return this._addFilter({memcmp:{offset:d,bytes:u}}),this}addInnerFilter(e,t){const a=e.split(".");o.strict.equal(a.length,2,"inner filters can go only one level deep, i.e. 'outer.inner' is ok, but 'outer.inner.deep' is not");const[n,s]=a;return this._addInnerFilter(n,s,t)}addFilter(e,t){const n=this.beets.get(e);(0,o.strict)(null!=n,"Filter key needs to be an existing field name");const r=(0,a.isFixedSizeBeet)(n.beet)?n.beet:n.beet.toFixedFromValue(t),i=(0,s.encodeFixedBeet)(r,t);return this._addFilter({memcmp:{offset:n.offset,bytes:i}}),this}dataSize(e){return e=null!=e?e:this.accountSize,(0,o.strict)(null!=e,"for accounts of dynamic size the dataSize arg needs to be provided"),this._addFilter({dataSize:e})}run(e){return e.getProgramAccounts(this.programId,this.config)}static fromBeetFields(e,t){const o=new Map;let n=0,s=!1;for(const[e,r]of t){if(o.set(e,{beet:r,offset:n}),!(0,a.isFixedSizeBeet)(r)){s=!0;break}n+=r.byteSize}return new r(e,o,s?void 0:n)}static fromStruct(e,t){return r.fromBeetFields(e,t.fields)}}})),parcelRequire.register("eLMNv",(function(e,t){$parcel$export(e.exports,"logTrace",(()=>o));var a=parcelRequire("5q0GT");$parcel$interopDefault(a)("beet:error"),$parcel$interopDefault(a)("beet:info"),$parcel$interopDefault(a)("beet:debug");const o=$parcel$interopDefault(a)("beet:trace")})),parcelRequire.register("lv1TK",(function(e,t){$parcel$export(e.exports,"encodeFixedBeet",(()=>n));var a=parcelRequire("gk9WM"),o=parcelRequire("ajHSv").Buffer;function n(e,t){const n=o.alloc(e.byteSize);return e.write(n,0,t),$parcel$interopDefault(a).encode(n)}})),parcelRequire.register("gk9WM",(function(e,t){var a=parcelRequire("22koT");e.exports=a("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")})),parcelRequire.register("22koT",(function(e,t){"use strict";e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),a=0;a>>0,d=new Uint8Array(s);e[a];){var l=t[e.charCodeAt(a)];if(255===l)return;for(var m=0,u=s-1;(0!==l||m>>0,d[u]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");n=m,a++}for(var p=s-n;p!==s&&0===d[p];)p++;for(var h=new Uint8Array(o+(s-p)),g=o;p!==s;)h[g++]=d[p++];return h}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var a=0,o=0,n=0,s=t.length;n!==s&&0===t[n];)n++,a++;for(var c=(s-n)*d+1>>>0,l=new Uint8Array(c);n!==s;){for(var m=t[n],u=0,p=c-1;(0!==m||u>>0,l[p]=m%r>>>0,m=m/r>>>0;if(0!==m)throw new Error("Non-zero carry");o=u,n++}for(var h=c-o;h!==c&&0===l[h];)h++;for(var g=i.repeat(a);hnew n)),o.set("InvalidMint",(()=>new n));class s extends Error{constructor(){super("Invalid metadata"),this.code=6001,this.name="InvalidMetadata","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,s)}}e.exports.InvalidMetadataError=s,a.set(6001,(()=>new s)),o.set("InvalidMetadata",(()=>new s));class r extends Error{constructor(){super("Invalid token account"),this.code=6002,this.name="InvalidTokenAccount","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}}e.exports.InvalidTokenAccountError=r,a.set(6002,(()=>new r)),o.set("InvalidTokenAccount",(()=>new r));class i extends Error{constructor(){super("Invalid authority address"),this.code=6003,this.name="InvalidAuthority","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,i)}}e.exports.InvalidAuthorityError=i,a.set(6003,(()=>new i)),o.set("InvalidAuthority",(()=>new i));class c extends Error{constructor(){super("Invalid policy creation"),this.code=6004,this.name="InvalidPolicyCreation","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,c)}}e.exports.InvalidPolicyCreationError=c,a.set(6004,(()=>new c)),o.set("InvalidPolicyCreation",(()=>new c));class d extends Error{constructor(){super("Invalid policy evaluation"),this.code=6005,this.name="InvalidPolicyEvaluation","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,d)}}e.exports.InvalidPolicyEvaluationError=d,a.set(6005,(()=>new d)),o.set("InvalidPolicyEvaluation",(()=>new d));class l extends Error{constructor(){super("Invalid policy mint association"),this.code=6006,this.name="InvalidPolicyMintAssociation","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,l)}}e.exports.InvalidPolicyMintAssociationError=l,a.set(6006,(()=>new l)),o.set("InvalidPolicyMintAssociation",(()=>new l));class m extends Error{constructor(){super("Invalid locked by"),this.code=6007,this.name="InvalidLockedBy","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,m)}}e.exports.InvalidLockedByError=m,a.set(6007,(()=>new m)),o.set("InvalidLockedBy",(()=>new m));class u extends Error{constructor(){super("Mint state is locked"),this.code=6008,this.name="MintStateLocked","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,u)}}e.exports.MintStateLockedError=u,a.set(6008,(()=>new u)),o.set("MintStateLocked",(()=>new u));class p extends Error{constructor(){super("Unknown account found in instruction"),this.code=6009,this.name="UnknownAccount","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,p)}}e.exports.UnknownAccountError=p,a.set(6009,(()=>new p)),o.set("UnknownAccount",(()=>new p));class h extends Error{constructor(){super("Account not found in instruction"),this.code=6010,this.name="AccountNotFound","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,h)}}e.exports.AccountNotFoundError=h,a.set(6010,(()=>new h)),o.set("AccountNotFound",(()=>new h));class g extends Error{constructor(){super("Invalid dynamic royalty"),this.code=6011,this.name="InvalidDynamicRoyalty","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,g)}}e.exports.InvalidDynamicRoyaltyError=g,a.set(6011,(()=>new g)),o.set("InvalidDynamicRoyalty",(()=>new g));class b extends Error{constructor(){super("Numerical overflow"),this.code=6012,this.name="NumericalOverflow","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,b)}}e.exports.NumericalOverflowError=b,a.set(6012,(()=>new b)),o.set("NumericalOverflow",(()=>new b));class f extends Error{constructor(){super("Not Implemented"),this.code=6013,this.name="NotImplemented","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,f)}}e.exports.NotImplementedError=f,a.set(6013,(()=>new f)),o.set("NotImplemented",(()=>new f));class y extends Error{constructor(){super("Invalid metadata update_authority"),this.code=6014,this.name="InvalidMetadataUpdateAuthority","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,y)}}e.exports.InvalidMetadataUpdateAuthorityError=y,a.set(6014,(()=>new y)),o.set("InvalidMetadataUpdateAuthority",(()=>new y)),e.exports.errorFromCode=function(e){const t=a.get(e);return null!=t?t():null},e.exports.errorFromName=function(e){const t=o.get(e);return null!=t?t():null}})),parcelRequire.register("eNmsN",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("5V28J"),e.exports),o(parcelRequire("lEYCF"),e.exports),o(parcelRequire("37UAz"),e.exports),o(parcelRequire("2hgAp"),e.exports),o(parcelRequire("fhrRp"),e.exports),o(parcelRequire("5HJlp"),e.exports),o(parcelRequire("2YR3E"),e.exports),o(parcelRequire("3YBb1"),e.exports),o(parcelRequire("l6W1q"),e.exports),o(parcelRequire("59MSV"),e.exports),o(parcelRequire("kByGm"),e.exports),o(parcelRequire("iaBNI"),e.exports),o(parcelRequire("fsypG"),e.exports)})),parcelRequire.register("5V28J",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createApproveInstruction=e.exports.approveInstructionDiscriminator=e.exports.approveStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.approveStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.uniformFixedSizeArray(r.u8,8)]],"ApproveInstructionArgs"),e.exports.approveInstructionDiscriminator=[69,74,217,36,115,117,97,76],e.exports.createApproveInstruction=function(t,a=new i.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[o]=e.exports.approveStruct.serialize({instructionDiscriminator:e.exports.approveInstructionDiscriminator}),n=[{pubkey:t.policy,isWritable:!1,isSigner:!1},{pubkey:t.freezeAuthority,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mintState,isWritable:!0,isSigner:!1},{pubkey:t.from,isWritable:!1,isSigner:!0},{pubkey:t.fromAccount,isWritable:!0,isSigner:!1},{pubkey:t.to,isWritable:!1,isSigner:!1},{pubkey:t.tokenProgram??s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:t.cmtProgram,isWritable:!1,isSigner:!1},{pubkey:t.instructions,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("hLxTZ",(function(e,t){var a=parcelRequire("lcY1T"),o=parcelRequire("14mYq"),n=parcelRequire("eoQMl"),s=parcelRequire("dwtxg"),r=parcelRequire("l0pJG"),i=parcelRequire("cEXsZ");$parcel$exportWildcard(e.exports,a),$parcel$exportWildcard(e.exports,o),$parcel$exportWildcard(e.exports,n),$parcel$exportWildcard(e.exports,s),$parcel$exportWildcard(e.exports,r),$parcel$exportWildcard(e.exports,i)})),parcelRequire.register("lcY1T",(function(e,t){var a=parcelRequire("h0RR7"),o=parcelRequire("38KeX"),n=parcelRequire("8WlXB"),s=parcelRequire("ggAJh"),r=parcelRequire("80E2F"),i=parcelRequire("avK96"),c=parcelRequire("fQ0Sv"),d=parcelRequire("b4qm8"),l=parcelRequire("gmq2v"),m=parcelRequire("alzMi"),u=parcelRequire("93O94"),p=parcelRequire("39Etl"),h=parcelRequire("axvlB"),g=parcelRequire("iYGtm"),b=parcelRequire("3dPF2"),f=parcelRequire("1diIR"),y=parcelRequire("c1JyC"),$=parcelRequire("4KGcH"),w=parcelRequire("jJQoY"),k=parcelRequire("fw4I5"),v=parcelRequire("dKqe6"),x=parcelRequire("kUcFO"),R=parcelRequire("lUMmm"),A=parcelRequire("5fjcP");$parcel$exportWildcard(e.exports,a),$parcel$exportWildcard(e.exports,o),$parcel$exportWildcard(e.exports,n),$parcel$exportWildcard(e.exports,s),$parcel$exportWildcard(e.exports,r),$parcel$exportWildcard(e.exports,i),$parcel$exportWildcard(e.exports,c),$parcel$exportWildcard(e.exports,d),$parcel$exportWildcard(e.exports,l),$parcel$exportWildcard(e.exports,m),$parcel$exportWildcard(e.exports,u),$parcel$exportWildcard(e.exports,p),$parcel$exportWildcard(e.exports,h),$parcel$exportWildcard(e.exports,g),$parcel$exportWildcard(e.exports,b),$parcel$exportWildcard(e.exports,f),$parcel$exportWildcard(e.exports,y),$parcel$exportWildcard(e.exports,$),$parcel$exportWildcard(e.exports,w),$parcel$exportWildcard(e.exports,k),$parcel$exportWildcard(e.exports,v),$parcel$exportWildcard(e.exports,x),$parcel$exportWildcard(e.exports,R),$parcel$exportWildcard(e.exports,A)})),parcelRequire.register("h0RR7",(function(e,t){$parcel$export(e.exports,"amountToUiAmount",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("8JoUz"),s=parcelRequire("ajHSv").Buffer;async function r(e,t,r,i,c=o.TOKEN_PROGRAM_ID){const d=(new(0,a.Transaction)).add((0,n.createAmountToUiAmountInstruction)(r,i,c)),{returnData:l,err:m}=(await e.simulateTransaction(d,[t],!1)).value;return l?.data?s.from(l.data[0],l.data[1]).toString("utf-8"):m}})),parcelRequire.register("14mYq",(function(e,t){$parcel$export(e.exports,"TOKEN_PROGRAM_ID",(()=>o)),$parcel$export(e.exports,"TOKEN_2022_PROGRAM_ID",(()=>n)),$parcel$export(e.exports,"ASSOCIATED_TOKEN_PROGRAM_ID",(()=>s)),$parcel$export(e.exports,"NATIVE_MINT",(()=>r)),$parcel$export(e.exports,"NATIVE_MINT_2022",(()=>i)),$parcel$export(e.exports,"programSupportsExtensions",(()=>c));var a=parcelRequire("5cySN");const o=new(0,a.PublicKey)("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),n=new(0,a.PublicKey)("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),s=new(0,a.PublicKey)("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),r=new(0,a.PublicKey)("So11111111111111111111111111111111111111112"),i=new(0,a.PublicKey)("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP");function c(e){return e!==o}})),parcelRequire.register("8JoUz",(function(e,t){$parcel$export(e.exports,"amountToUiAmountInstructionData",(()=>d)),$parcel$export(e.exports,"createAmountToUiAmountInstruction",(()=>l)),$parcel$export(e.exports,"decodeAmountToUiAmountInstruction",(()=>m)),$parcel$export(e.exports,"decodeAmountToUiAmountInstructionUnchecked",(()=>u));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction"),(0,o.u64)("amount")]);function l(e,t,a=s.TOKEN_PROGRAM_ID){const o=[{pubkey:e,isSigner:!1,isWritable:!1}],r=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.AmountToUiAmount,amount:BigInt(t)},r),new(0,n.TransactionInstruction)({keys:o,programId:a,data:r})}function m(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==d.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{mint:a},data:o}=u(e);if(o.instruction!==i.TokenInstruction.AmountToUiAmount)throw new(0,r.TokenInvalidInstructionTypeError);if(!a)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:a},data:o}}function u({programId:e,keys:[t],data:a}){return{programId:e,keys:{mint:t},data:d.decode(a)}}})),parcelRequire.register("eoQMl",(function(e,t){$parcel$export(e.exports,"TokenError",(()=>a)),$parcel$export(e.exports,"TokenAccountNotFoundError",(()=>o)),$parcel$export(e.exports,"TokenInvalidAccountError",(()=>n)),$parcel$export(e.exports,"TokenInvalidAccountOwnerError",(()=>s)),$parcel$export(e.exports,"TokenInvalidAccountSizeError",(()=>r)),$parcel$export(e.exports,"TokenInvalidMintError",(()=>i)),$parcel$export(e.exports,"TokenInvalidOwnerError",(()=>c)),$parcel$export(e.exports,"TokenOwnerOffCurveError",(()=>d)),$parcel$export(e.exports,"TokenInvalidInstructionProgramError",(()=>l)),$parcel$export(e.exports,"TokenInvalidInstructionKeysError",(()=>m)),$parcel$export(e.exports,"TokenInvalidInstructionDataError",(()=>u)),$parcel$export(e.exports,"TokenInvalidInstructionTypeError",(()=>p)),$parcel$export(e.exports,"TokenUnsupportedInstructionError",(()=>h));class a extends Error{constructor(e){super(e)}}class o extends a{constructor(){super(...arguments),this.name="TokenAccountNotFoundError"}}class n extends a{constructor(){super(...arguments),this.name="TokenInvalidAccountError"}}class s extends a{constructor(){super(...arguments),this.name="TokenInvalidAccountOwnerError"}}class r extends a{constructor(){super(...arguments),this.name="TokenInvalidAccountSizeError"}}class i extends a{constructor(){super(...arguments),this.name="TokenInvalidMintError"}}class c extends a{constructor(){super(...arguments),this.name="TokenInvalidOwnerError"}}class d extends a{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}}class l extends a{constructor(){super(...arguments),this.name="TokenInvalidInstructionProgramError"}}class m extends a{constructor(){super(...arguments),this.name="TokenInvalidInstructionKeysError"}}class u extends a{constructor(){super(...arguments),this.name="TokenInvalidInstructionDataError"}}class p extends a{constructor(){super(...arguments),this.name="TokenInvalidInstructionTypeError"}}class h extends a{constructor(){super(...arguments),this.name="TokenUnsupportedInstructionError"}}})),parcelRequire.register("eqQA8",(function(e,t){var a,o;$parcel$export(e.exports,"TokenInstruction",(()=>a)),(o=a||(a={}))[o.InitializeMint=0]="InitializeMint",o[o.InitializeAccount=1]="InitializeAccount",o[o.InitializeMultisig=2]="InitializeMultisig",o[o.Transfer=3]="Transfer",o[o.Approve=4]="Approve",o[o.Revoke=5]="Revoke",o[o.SetAuthority=6]="SetAuthority",o[o.MintTo=7]="MintTo",o[o.Burn=8]="Burn",o[o.CloseAccount=9]="CloseAccount",o[o.FreezeAccount=10]="FreezeAccount",o[o.ThawAccount=11]="ThawAccount",o[o.TransferChecked=12]="TransferChecked",o[o.ApproveChecked=13]="ApproveChecked",o[o.MintToChecked=14]="MintToChecked",o[o.BurnChecked=15]="BurnChecked",o[o.InitializeAccount2=16]="InitializeAccount2",o[o.SyncNative=17]="SyncNative",o[o.InitializeAccount3=18]="InitializeAccount3",o[o.InitializeMultisig2=19]="InitializeMultisig2",o[o.InitializeMint2=20]="InitializeMint2",o[o.GetAccountDataSize=21]="GetAccountDataSize",o[o.InitializeImmutableOwner=22]="InitializeImmutableOwner",o[o.AmountToUiAmount=23]="AmountToUiAmount",o[o.UiAmountToAmount=24]="UiAmountToAmount",o[o.InitializeMintCloseAuthority=25]="InitializeMintCloseAuthority",o[o.TransferFeeExtension=26]="TransferFeeExtension",o[o.ConfidentialTransferExtension=27]="ConfidentialTransferExtension",o[o.DefaultAccountStateExtension=28]="DefaultAccountStateExtension",o[o.Reallocate=29]="Reallocate",o[o.MemoTransferExtension=30]="MemoTransferExtension",o[o.CreateNativeMint=31]="CreateNativeMint",o[o.InitializeNonTransferableMint=32]="InitializeNonTransferableMint",o[o.InterestBearingMintExtension=33]="InterestBearingMintExtension",o[o.CpiGuardExtension=34]="CpiGuardExtension",o[o.InitializePermanentDelegate=35]="InitializePermanentDelegate"})),parcelRequire.register("38KeX",(function(e,t){$parcel$export(e.exports,"approve",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("l5v8o"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d,l=[],m,u=o.TOKEN_PROGRAM_ID){const[p,h]=(0,s.getSigners)(c,l),g=(new(0,a.Transaction)).add((0,n.createApproveInstruction)(r,i,p,d,l,u));return await(0,a.sendAndConfirmTransaction)(e,g,[t,...h],m)}})),parcelRequire.register("l5v8o",(function(e,t){$parcel$export(e.exports,"approveInstructionData",(()=>l)),$parcel$export(e.exports,"createApproveInstruction",(()=>m)),$parcel$export(e.exports,"decodeApproveInstruction",(()=>u)),$parcel$export(e.exports,"decodeApproveInstructionUnchecked",(()=>p));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("ht9NM"),c=parcelRequire("eqQA8"),d=parcelRequire("ajHSv").Buffer;const l=(0,a.struct)([(0,a.u8)("instruction"),(0,o.u64)("amount")]);function m(e,t,a,o,r=[],m=s.TOKEN_PROGRAM_ID){const u=(0,i.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1}],a,r),p=d.alloc(l.span);return l.encode({instruction:c.TokenInstruction.Approve,amount:BigInt(o)},p),new(0,n.TransactionInstruction)({keys:u,programId:m,data:p})}function u(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==l.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{account:a,delegate:o,owner:n,multiSigners:i},data:d}=p(e);if(d.instruction!==c.TokenInstruction.Approve)throw new(0,r.TokenInvalidInstructionTypeError);if(!a||!o||!n)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,delegate:o,owner:n,multiSigners:i},data:d}}function p({programId:e,keys:[t,a,o,...n],data:s}){return{programId:e,keys:{account:t,delegate:a,owner:o,multiSigners:n},data:l.decode(s)}}})),parcelRequire.register("ht9NM",(function(e,t){$parcel$export(e.exports,"addSigners",(()=>o));var a=parcelRequire("5cySN");function o(e,t,o){if(o.length){e.push({pubkey:t,isSigner:!1,isWritable:!1});for(const t of o)e.push({pubkey:t instanceof a.PublicKey?t:t.publicKey,isSigner:!0,isWritable:!1})}else e.push({pubkey:t,isSigner:!0,isWritable:!1});return e}})),parcelRequire.register("cu2nn",(function(e,t){$parcel$export(e.exports,"getSigners",(()=>o));var a=parcelRequire("5cySN");function o(e,t){return e instanceof a.PublicKey?[e,t]:[e.publicKey,[e]]}})),parcelRequire.register("8WlXB",(function(e,t){$parcel$export(e.exports,"approveChecked",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("dGBPS"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d,l,m,u=[],p,h=o.TOKEN_PROGRAM_ID){const[g,b]=(0,s.getSigners)(d,u),f=(new(0,a.Transaction)).add((0,n.createApproveCheckedInstruction)(i,r,c,g,l,m,u,h));return await(0,a.sendAndConfirmTransaction)(e,f,[t,...b],p)}})),parcelRequire.register("dGBPS",(function(e,t){$parcel$export(e.exports,"approveCheckedInstructionData",(()=>l)),$parcel$export(e.exports,"createApproveCheckedInstruction",(()=>m)),$parcel$export(e.exports,"decodeApproveCheckedInstruction",(()=>u)),$parcel$export(e.exports,"decodeApproveCheckedInstructionUnchecked",(()=>p));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("ht9NM"),c=parcelRequire("eqQA8"),d=parcelRequire("ajHSv").Buffer;const l=(0,a.struct)([(0,a.u8)("instruction"),(0,o.u64)("amount"),(0,a.u8)("decimals")]);function m(e,t,a,o,r,m,u=[],p=s.TOKEN_PROGRAM_ID){const h=(0,i.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!1,isWritable:!1}],o,u),g=d.alloc(l.span);return l.encode({instruction:c.TokenInstruction.ApproveChecked,amount:BigInt(r),decimals:m},g),new(0,n.TransactionInstruction)({keys:h,programId:p,data:g})}function u(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==l.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{account:a,mint:o,delegate:n,owner:i,multiSigners:d},data:m}=p(e);if(m.instruction!==c.TokenInstruction.ApproveChecked)throw new(0,r.TokenInvalidInstructionTypeError);if(!(a&&o&&n&&i))throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,mint:o,delegate:n,owner:i,multiSigners:d},data:m}}function p({programId:e,keys:[t,a,o,n,...s],data:r}){return{programId:e,keys:{account:t,mint:a,delegate:o,owner:n,multiSigners:s},data:l.decode(r)}}})),parcelRequire.register("ggAJh",(function(e,t){$parcel$export(e.exports,"burn",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("gpAjs"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d,l=[],m,u=o.TOKEN_PROGRAM_ID){const[p,h]=(0,s.getSigners)(c,l),g=(new(0,a.Transaction)).add((0,n.createBurnInstruction)(r,i,p,d,l,u));return await(0,a.sendAndConfirmTransaction)(e,g,[t,...h],m)}})),parcelRequire.register("gpAjs",(function(e,t){$parcel$export(e.exports,"burnInstructionData",(()=>l)),$parcel$export(e.exports,"createBurnInstruction",(()=>m)),$parcel$export(e.exports,"decodeBurnInstruction",(()=>u)),$parcel$export(e.exports,"decodeBurnInstructionUnchecked",(()=>p));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("ht9NM"),c=parcelRequire("eqQA8"),d=parcelRequire("ajHSv").Buffer;const l=(0,a.struct)([(0,a.u8)("instruction"),(0,o.u64)("amount")]);function m(e,t,a,o,r=[],m=s.TOKEN_PROGRAM_ID){const u=(0,i.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],a,r),p=d.alloc(l.span);return l.encode({instruction:c.TokenInstruction.Burn,amount:BigInt(o)},p),new(0,n.TransactionInstruction)({keys:u,programId:m,data:p})}function u(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==l.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{account:a,mint:o,owner:n,multiSigners:i},data:d}=p(e);if(d.instruction!==c.TokenInstruction.Burn)throw new(0,r.TokenInvalidInstructionTypeError);if(!a||!o||!n)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,mint:o,owner:n,multiSigners:i},data:d}}function p({programId:e,keys:[t,a,o,...n],data:s}){return{programId:e,keys:{account:t,mint:a,owner:o,multiSigners:n},data:l.decode(s)}}})),parcelRequire.register("80E2F",(function(e,t){$parcel$export(e.exports,"burnChecked",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("kp5se"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d,l,m=[],u,p=o.TOKEN_PROGRAM_ID){const[h,g]=(0,s.getSigners)(c,m),b=(new(0,a.Transaction)).add((0,n.createBurnCheckedInstruction)(r,i,h,d,l,m,p));return await(0,a.sendAndConfirmTransaction)(e,b,[t,...g],u)}})),parcelRequire.register("kp5se",(function(e,t){$parcel$export(e.exports,"burnCheckedInstructionData",(()=>l)),$parcel$export(e.exports,"createBurnCheckedInstruction",(()=>m)),$parcel$export(e.exports,"decodeBurnCheckedInstruction",(()=>u)),$parcel$export(e.exports,"decodeBurnCheckedInstructionUnchecked",(()=>p));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("ht9NM"),c=parcelRequire("eqQA8"),d=parcelRequire("ajHSv").Buffer;const l=(0,a.struct)([(0,a.u8)("instruction"),(0,o.u64)("amount"),(0,a.u8)("decimals")]);function m(e,t,a,o,r,m=[],u=s.TOKEN_PROGRAM_ID){const p=(0,i.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],a,m),h=d.alloc(l.span);return l.encode({instruction:c.TokenInstruction.BurnChecked,amount:BigInt(o),decimals:r},h),new(0,n.TransactionInstruction)({keys:p,programId:u,data:h})}function u(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==l.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{account:a,mint:o,owner:n,multiSigners:i},data:d}=p(e);if(d.instruction!==c.TokenInstruction.BurnChecked)throw new(0,r.TokenInvalidInstructionTypeError);if(!a||!o||!n)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,mint:o,owner:n,multiSigners:i},data:d}}function p({programId:e,keys:[t,a,o,...n],data:s}){return{programId:e,keys:{account:t,mint:a,owner:o,multiSigners:n},data:l.decode(s)}}})),parcelRequire.register("avK96",(function(e,t){$parcel$export(e.exports,"closeAccount",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("71uuD"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d=[],l,m=o.TOKEN_PROGRAM_ID){const[u,p]=(0,s.getSigners)(c,d),h=(new(0,a.Transaction)).add((0,n.createCloseAccountInstruction)(r,i,u,d,m));return await(0,a.sendAndConfirmTransaction)(e,h,[t,...p],l)}})),parcelRequire.register("71uuD",(function(e,t){$parcel$export(e.exports,"closeAccountInstructionData",(()=>d)),$parcel$export(e.exports,"createCloseAccountInstruction",(()=>l)),$parcel$export(e.exports,"decodeCloseAccountInstruction",(()=>m)),$parcel$export(e.exports,"decodeCloseAccountInstructionUnchecked",(()=>u));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("eoQMl"),r=parcelRequire("ht9NM"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction")]);function l(e,t,a,s=[],l=n.TOKEN_PROGRAM_ID){const m=(0,r.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],a,s),u=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.CloseAccount},u),new(0,o.TransactionInstruction)({keys:m,programId:l,data:u})}function m(e,t=n.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,s.TokenInvalidInstructionProgramError);if(e.data.length!==d.span)throw new(0,s.TokenInvalidInstructionDataError);const{keys:{account:a,destination:o,authority:r,multiSigners:c},data:l}=u(e);if(l.instruction!==i.TokenInstruction.CloseAccount)throw new(0,s.TokenInvalidInstructionTypeError);if(!a||!o||!r)throw new(0,s.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,destination:o,authority:r,multiSigners:c},data:l}}function u({programId:e,keys:[t,a,o,...n],data:s}){return{programId:e,keys:{account:t,destination:a,authority:o,multiSigners:n},data:d.decode(s)}}})),parcelRequire.register("fQ0Sv",(function(e,t){$parcel$export(e.exports,"createAccount",(()=>c));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("01c0M"),s=parcelRequire("QIgte"),r=parcelRequire("6hd0T"),i=parcelRequire("b4qm8");async function c(e,t,c,d,l,m,u=o.TOKEN_PROGRAM_ID){if(!l)return await(0,i.createAssociatedTokenAccount)(e,t,c,d,m,u);const p=await(0,r.getMint)(e,c,m?.commitment,u),h=(0,n.getAccountLenForMint)(p),g=await e.getMinimumBalanceForRentExemption(h),b=(new(0,a.Transaction)).add(a.SystemProgram.createAccount({fromPubkey:t.publicKey,newAccountPubkey:l.publicKey,space:h,lamports:g,programId:u}),(0,s.createInitializeAccountInstruction)(l.publicKey,c,d,u));return await(0,a.sendAndConfirmTransaction)(e,b,[t,l],m),l.publicKey}})),parcelRequire.register("01c0M",(function(e,t){$parcel$export(e.exports,"ExtensionType",(()=>a)),$parcel$export(e.exports,"TYPE_SIZE",(()=>f)),$parcel$export(e.exports,"LENGTH_SIZE",(()=>y)),$parcel$export(e.exports,"getTypeLen",(()=>$)),$parcel$export(e.exports,"isMintExtension",(()=>w)),$parcel$export(e.exports,"isAccountExtension",(()=>k)),$parcel$export(e.exports,"getAccountTypeOfMintType",(()=>v)),$parcel$export(e.exports,"getMintLen",(()=>R)),$parcel$export(e.exports,"getAccountLen",(()=>A)),$parcel$export(e.exports,"getExtensionData",(()=>I)),$parcel$export(e.exports,"getExtensionTypes",(()=>S)),$parcel$export(e.exports,"getAccountLenForMint",(()=>E));var a,o,n=parcelRequire("gDqNs"),s=parcelRequire("6hd0T"),r=parcelRequire("hrR99"),i=parcelRequire("hi1at"),c=parcelRequire("a8yVK"),d=parcelRequire("eFuBy"),l=parcelRequire("4ylgN"),m=parcelRequire("6vPfl"),u=parcelRequire("6Ao4C"),p=parcelRequire("aesMN"),h=parcelRequire("j9gRW"),g=parcelRequire("3CzYu"),b=parcelRequire("2rqSb");(o=a||(a={}))[o.Uninitialized=0]="Uninitialized",o[o.TransferFeeConfig=1]="TransferFeeConfig",o[o.TransferFeeAmount=2]="TransferFeeAmount",o[o.MintCloseAuthority=3]="MintCloseAuthority",o[o.ConfidentialTransferMint=4]="ConfidentialTransferMint",o[o.ConfidentialTransferAccount=5]="ConfidentialTransferAccount",o[o.DefaultAccountState=6]="DefaultAccountState",o[o.ImmutableOwner=7]="ImmutableOwner",o[o.MemoTransfer=8]="MemoTransfer",o[o.NonTransferable=9]="NonTransferable",o[o.InterestBearingConfig=10]="InterestBearingConfig",o[o.CpiGuard=11]="CpiGuard",o[o.PermanentDelegate=12]="PermanentDelegate";const f=2,y=2;function $(e){switch(e){case a.Uninitialized:return 0;case a.TransferFeeConfig:return b.TRANSFER_FEE_CONFIG_SIZE;case a.TransferFeeAmount:return b.TRANSFER_FEE_AMOUNT_SIZE;case a.MintCloseAuthority:return p.MINT_CLOSE_AUTHORITY_SIZE;case a.ConfidentialTransferMint:return 97;case a.ConfidentialTransferAccount:return 286;case a.CpiGuard:return c.CPI_GUARD_SIZE;case a.DefaultAccountState:return d.DEFAULT_ACCOUNT_STATE_SIZE;case a.ImmutableOwner:return l.IMMUTABLE_OWNER_SIZE;case a.MemoTransfer:return u.MEMO_TRANSFER_SIZE;case a.NonTransferable:return h.NON_TRANSFERABLE_SIZE;case a.InterestBearingConfig:return m.INTEREST_BEARING_MINT_CONFIG_STATE_SIZE;case a.PermanentDelegate:return g.PERMANENT_DELEGATE_SIZE;default:throw Error(`Unknown extension type: ${e}`)}}function w(e){switch(e){case a.TransferFeeConfig:case a.MintCloseAuthority:case a.ConfidentialTransferMint:case a.DefaultAccountState:case a.NonTransferable:case a.InterestBearingConfig:case a.PermanentDelegate:return!0;case a.Uninitialized:case a.TransferFeeAmount:case a.ConfidentialTransferAccount:case a.ImmutableOwner:case a.MemoTransfer:case a.CpiGuard:return!1;default:throw Error(`Unknown extension type: ${e}`)}}function k(e){switch(e){case a.TransferFeeAmount:case a.ConfidentialTransferAccount:case a.ImmutableOwner:case a.MemoTransfer:case a.CpiGuard:return!0;case a.Uninitialized:case a.TransferFeeConfig:case a.MintCloseAuthority:case a.ConfidentialTransferMint:case a.DefaultAccountState:case a.NonTransferable:case a.InterestBearingConfig:case a.PermanentDelegate:return!1;default:throw Error(`Unknown extension type: ${e}`)}}function v(e){switch(e){case a.TransferFeeConfig:return a.TransferFeeAmount;case a.ConfidentialTransferMint:return a.ConfidentialTransferAccount;case a.TransferFeeAmount:case a.ConfidentialTransferAccount:case a.CpiGuard:case a.DefaultAccountState:case a.ImmutableOwner:case a.MemoTransfer:case a.MintCloseAuthority:case a.NonTransferable:case a.Uninitialized:case a.InterestBearingConfig:case a.PermanentDelegate:return a.Uninitialized}}function x(e,t){if(0===e.length)return t;{const t=n.ACCOUNT_SIZE+i.ACCOUNT_TYPE_SIZE+e.filter(((t,a)=>a===e.indexOf(t))).map((e=>$(e)+f+y)).reduce(((e,t)=>e+t));return t===r.MULTISIG_SIZE?t+f:t}}function R(e){return x(e,s.MINT_SIZE)}function A(e){return x(e,n.ACCOUNT_SIZE)}function I(e,t){let a=0;for(;a+f+y<=t.length;){const o=t.readUInt16LE(a),n=t.readUInt16LE(a+f),s=a+f+y;if(o==e)return t.slice(s,s+n);a=s+n}return null}function S(e){const t=[];let a=0;for(;ao)),$parcel$export(e.exports,"AccountLayout",(()=>p)),$parcel$export(e.exports,"ACCOUNT_SIZE",(()=>h)),$parcel$export(e.exports,"getAccount",(()=>g)),$parcel$export(e.exports,"unpackAccount",(()=>$)),$parcel$export(e.exports,"getMultipleAccounts",(()=>b)),$parcel$export(e.exports,"getMinimumBalanceForRentExemptAccount",(()=>f)),$parcel$export(e.exports,"getMinimumBalanceForRentExemptAccountWithExtensions",(()=>y));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o,n,s=parcelRequire("gKWJK"),r=parcelRequire("hDWD6"),i=parcelRequire("14mYq"),c=parcelRequire("eoQMl"),d=parcelRequire("hi1at"),l=parcelRequire("01c0M"),m=parcelRequire("hrR99"),u=parcelRequire("ajHSv").Buffer;(n=o||(o={}))[n.Uninitialized=0]="Uninitialized",n[n.Initialized=1]="Initialized",n[n.Frozen=2]="Frozen";const p=(0,a.struct)([(0,s.publicKey)("mint"),(0,s.publicKey)("owner"),(0,r.u64)("amount"),(0,a.u32)("delegateOption"),(0,s.publicKey)("delegate"),(0,a.u8)("state"),(0,a.u32)("isNativeOption"),(0,r.u64)("isNative"),(0,r.u64)("delegatedAmount"),(0,a.u32)("closeAuthorityOption"),(0,s.publicKey)("closeAuthority")]),h=p.span;async function g(e,t,a,o=i.TOKEN_PROGRAM_ID){return $(t,await e.getAccountInfo(t,a),o)}async function b(e,t,a,o=i.TOKEN_PROGRAM_ID){const n=await e.getMultipleAccountsInfo(t,a);return t.map(((e,t)=>$(e,n[t],o)))}async function f(e,t){return await y(e,[],t)}async function y(e,t,a){const o=(0,l.getAccountLen)(t);return await e.getMinimumBalanceForRentExemption(o,a)}function $(e,t,a=i.TOKEN_PROGRAM_ID){if(!t)throw new(0,c.TokenAccountNotFoundError);if(!t.owner.equals(a))throw new(0,c.TokenInvalidAccountOwnerError);if(t.data.lengthh){if(t.data.length===m.MULTISIG_SIZE)throw new(0,c.TokenInvalidAccountSizeError);if(t.data[h]!=d.AccountType.Account)throw new(0,c.TokenInvalidAccountError);s=t.data.slice(h+d.ACCOUNT_TYPE_SIZE)}return{address:e,mint:n.mint,owner:n.owner,amount:n.amount,delegate:n.delegateOption?n.delegate:null,delegatedAmount:n.delegatedAmount,isInitialized:n.state!==o.Uninitialized,isFrozen:n.state===o.Frozen,isNative:!!n.isNativeOption,rentExemptReserve:n.isNativeOption?n.isNative:null,closeAuthority:n.closeAuthorityOption?n.closeAuthority:null,tlvData:s}}})),parcelRequire.register("hi1at",(function(e,t){var a,o;$parcel$export(e.exports,"AccountType",(()=>a)),$parcel$export(e.exports,"ACCOUNT_TYPE_SIZE",(()=>n)),(o=a||(a={}))[o.Uninitialized=0]="Uninitialized",o[o.Mint=1]="Mint",o[o.Account=2]="Account";const n=1})),parcelRequire.register("hrR99",(function(e,t){$parcel$export(e.exports,"MultisigLayout",(()=>i)),$parcel$export(e.exports,"MULTISIG_SIZE",(()=>c)),$parcel$export(e.exports,"getMultisig",(()=>d)),$parcel$export(e.exports,"unpackMultisig",(()=>l)),$parcel$export(e.exports,"getMinimumBalanceForRentExemptMultisig",(()=>m));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("bmANM"),n=parcelRequire("gKWJK"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl");const i=(0,a.struct)([(0,a.u8)("m"),(0,a.u8)("n"),(0,o.bool)("isInitialized"),(0,n.publicKey)("signer1"),(0,n.publicKey)("signer2"),(0,n.publicKey)("signer3"),(0,n.publicKey)("signer4"),(0,n.publicKey)("signer5"),(0,n.publicKey)("signer6"),(0,n.publicKey)("signer7"),(0,n.publicKey)("signer8"),(0,n.publicKey)("signer9"),(0,n.publicKey)("signer10"),(0,n.publicKey)("signer11")]),c=i.span;async function d(e,t,a,o=s.TOKEN_PROGRAM_ID){return l(t,await e.getAccountInfo(t,a),o)}function l(e,t,a=s.TOKEN_PROGRAM_ID){if(!t)throw new(0,r.TokenAccountNotFoundError);if(!t.owner.equals(a))throw new(0,r.TokenInvalidAccountOwnerError);if(t.data.length!=c)throw new(0,r.TokenInvalidAccountSizeError);return{address:e,...i.decode(t.data)}}async function m(e,t){return await e.getMinimumBalanceForRentExemption(c,t)}})),parcelRequire.register("6hd0T",(function(e,t){$parcel$export(e.exports,"MintLayout",(()=>h)),$parcel$export(e.exports,"MINT_SIZE",(()=>g)),$parcel$export(e.exports,"getMint",(()=>b)),$parcel$export(e.exports,"unpackMint",(()=>f)),$parcel$export(e.exports,"getMinimumBalanceForRentExemptMint",(()=>y)),$parcel$export(e.exports,"getMinimumBalanceForRentExemptMintWithExtensions",(()=>$)),$parcel$export(e.exports,"getAssociatedTokenAddress",(()=>w)),$parcel$export(e.exports,"getAssociatedTokenAddressSync",(()=>k));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("hDWD6"),s=parcelRequire("bmANM"),r=parcelRequire("5cySN"),i=parcelRequire("14mYq"),c=parcelRequire("eoQMl"),d=parcelRequire("hi1at"),l=parcelRequire("01c0M"),m=parcelRequire("gDqNs"),u=parcelRequire("hrR99"),p=parcelRequire("ajHSv").Buffer;const h=(0,a.struct)([(0,a.u32)("mintAuthorityOption"),(0,o.publicKey)("mintAuthority"),(0,n.u64)("supply"),(0,a.u8)("decimals"),(0,s.bool)("isInitialized"),(0,a.u32)("freezeAuthorityOption"),(0,o.publicKey)("freezeAuthority")]),g=h.span;async function b(e,t,a,o=i.TOKEN_PROGRAM_ID){return f(t,await e.getAccountInfo(t,a),o)}function f(e,t,a=i.TOKEN_PROGRAM_ID){if(!t)throw new(0,c.TokenAccountNotFoundError);if(!t.owner.equals(a))throw new(0,c.TokenInvalidAccountOwnerError);if(t.data.lengthg){if(t.data.length<=m.ACCOUNT_SIZE)throw new(0,c.TokenInvalidAccountSizeError);if(t.data.length===u.MULTISIG_SIZE)throw new(0,c.TokenInvalidAccountSizeError);if(t.data[m.ACCOUNT_SIZE]!=d.AccountType.Mint)throw new(0,c.TokenInvalidMintError);n=t.data.slice(m.ACCOUNT_SIZE+d.ACCOUNT_TYPE_SIZE)}return{address:e,mintAuthority:o.mintAuthorityOption?o.mintAuthority:null,supply:o.supply,decimals:o.decimals,isInitialized:o.isInitialized,freezeAuthority:o.freezeAuthorityOption?o.freezeAuthority:null,tlvData:n}}async function y(e,t){return await $(e,[],t)}async function $(e,t,a){const o=(0,l.getMintLen)(t);return await e.getMinimumBalanceForRentExemption(o,a)}async function w(e,t,a=!1,o=i.TOKEN_PROGRAM_ID,n=i.ASSOCIATED_TOKEN_PROGRAM_ID){if(!a&&!r.PublicKey.isOnCurve(t.toBuffer()))throw new(0,c.TokenOwnerOffCurveError);const[s]=await r.PublicKey.findProgramAddress([t.toBuffer(),o.toBuffer(),e.toBuffer()],n);return s}function k(e,t,a=!1,o=i.TOKEN_PROGRAM_ID,n=i.ASSOCIATED_TOKEN_PROGRAM_ID){if(!a&&!r.PublicKey.isOnCurve(t.toBuffer()))throw new(0,c.TokenOwnerOffCurveError);const[s]=r.PublicKey.findProgramAddressSync([t.toBuffer(),o.toBuffer(),e.toBuffer()],n);return s}})),parcelRequire.register("a8yVK",(function(e,t){$parcel$export(e.exports,"CpiGuardLayout",(()=>s)),$parcel$export(e.exports,"CPI_GUARD_SIZE",(()=>r)),$parcel$export(e.exports,"getCpiGuard",(()=>i));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("bmANM"),n=parcelRequire("01c0M");const s=(0,a.struct)([(0,o.bool)("lockCpi")]),r=s.span;function i(e){const t=(0,n.getExtensionData)(n.ExtensionType.CpiGuard,e.tlvData);return null!==t?s.decode(t):null}})),parcelRequire.register("eFuBy",(function(e,t){$parcel$export(e.exports,"DefaultAccountStateLayout",(()=>n)),$parcel$export(e.exports,"DEFAULT_ACCOUNT_STATE_SIZE",(()=>s)),$parcel$export(e.exports,"getDefaultAccountState",(()=>r));var a=parcelRequire("crvhM"),o=parcelRequire("01c0M");const n=(0,a.struct)([(0,a.u8)("state")]),s=n.span;function r(e){const t=(0,o.getExtensionData)(o.ExtensionType.DefaultAccountState,e.tlvData);return null!==t?n.decode(t):null}})),parcelRequire.register("4ylgN",(function(e,t){$parcel$export(e.exports,"ImmutableOwnerLayout",(()=>n)),$parcel$export(e.exports,"IMMUTABLE_OWNER_SIZE",(()=>s)),$parcel$export(e.exports,"getImmutableOwner",(()=>r));var a=parcelRequire("crvhM"),o=parcelRequire("01c0M");const n=(0,a.struct)([]),s=n.span;function r(e){const t=(0,o.getExtensionData)(o.ExtensionType.ImmutableOwner,e.tlvData);return null!==t?n.decode(t):null}})),parcelRequire.register("6vPfl",(function(e,t){$parcel$export(e.exports,"InterestBearingMintConfigStateLayout",(()=>s)),$parcel$export(e.exports,"INTEREST_BEARING_MINT_CONFIG_STATE_SIZE",(()=>r)),$parcel$export(e.exports,"getInterestBearingMintConfigState",(()=>i));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("01c0M");const s=(0,a.struct)([(0,o.publicKey)("rateAuthority"),(0,a.ns64)("initializationTimestamp"),(0,a.s16)("preUpdateAverageRate"),(0,a.ns64)("lastUpdateTimestamp"),(0,a.s16)("currentRate")]),r=s.span;function i(e){const t=(0,n.getExtensionData)(n.ExtensionType.InterestBearingConfig,e.tlvData);return null!==t?s.decode(t):null}})),parcelRequire.register("6Ao4C",(function(e,t){$parcel$export(e.exports,"MemoTransferLayout",(()=>s)),$parcel$export(e.exports,"MEMO_TRANSFER_SIZE",(()=>r)),$parcel$export(e.exports,"getMemoTransfer",(()=>i));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("bmANM"),n=parcelRequire("01c0M");const s=(0,a.struct)([(0,o.bool)("requireIncomingTransferMemos")]),r=s.span;function i(e){const t=(0,n.getExtensionData)(n.ExtensionType.MemoTransfer,e.tlvData);return null!==t?s.decode(t):null}})),parcelRequire.register("aesMN",(function(e,t){$parcel$export(e.exports,"MintCloseAuthorityLayout",(()=>s)),$parcel$export(e.exports,"MINT_CLOSE_AUTHORITY_SIZE",(()=>r)),$parcel$export(e.exports,"getMintCloseAuthority",(()=>i));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("01c0M");const s=(0,a.struct)([(0,o.publicKey)("closeAuthority")]),r=s.span;function i(e){const t=(0,n.getExtensionData)(n.ExtensionType.MintCloseAuthority,e.tlvData);return null!==t?s.decode(t):null}})),parcelRequire.register("j9gRW",(function(e,t){$parcel$export(e.exports,"NonTransferableLayout",(()=>n)),$parcel$export(e.exports,"NON_TRANSFERABLE_SIZE",(()=>s)),$parcel$export(e.exports,"getNonTransferable",(()=>r));var a=parcelRequire("crvhM"),o=parcelRequire("01c0M");const n=(0,a.struct)([]),s=n.span;function r(e){const t=(0,o.getExtensionData)(o.ExtensionType.NonTransferable,e.tlvData);return null!==t?n.decode(t):null}})),parcelRequire.register("3CzYu",(function(e,t){$parcel$export(e.exports,"PermanentDelegateLayout",(()=>s)),$parcel$export(e.exports,"PERMANENT_DELEGATE_SIZE",(()=>r)),$parcel$export(e.exports,"getPermanentDelegate",(()=>i));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("01c0M");const s=(0,a.struct)([(0,o.publicKey)("delegate")]),r=s.span;function i(e){const t=(0,n.getExtensionData)(n.ExtensionType.PermanentDelegate,e.tlvData);return null!==t?s.decode(t):null}})),parcelRequire.register("2rqSb",(function(e,t){$parcel$export(e.exports,"MAX_FEE_BASIS_POINTS",(()=>r)),$parcel$export(e.exports,"ONE_IN_BASIS_POINTS",(()=>i)),$parcel$export(e.exports,"transferFeeLayout",(()=>c)),$parcel$export(e.exports,"TransferFeeConfigLayout",(()=>d)),$parcel$export(e.exports,"TRANSFER_FEE_CONFIG_SIZE",(()=>l)),$parcel$export(e.exports,"TransferFeeAmountLayout",(()=>m)),$parcel$export(e.exports,"TRANSFER_FEE_AMOUNT_SIZE",(()=>u)),$parcel$export(e.exports,"getTransferFeeConfig",(()=>p)),$parcel$export(e.exports,"getTransferFeeAmount",(()=>h));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("gKWJK"),s=parcelRequire("01c0M");const r=1e4,i=r;function c(e){return(0,a.struct)([(0,o.u64)("epoch"),(0,o.u64)("maximumFee"),(0,a.u16)("transferFeeBasisPoints")],e)}const d=(0,a.struct)([(0,n.publicKey)("transferFeeConfigAuthority"),(0,n.publicKey)("withdrawWithheldAuthority"),(0,o.u64)("withheldAmount"),c("olderTransferFee"),c("newerTransferFee")]),l=d.span,m=(0,a.struct)([(0,o.u64)("withheldAmount")]),u=m.span;function p(e){const t=(0,s.getExtensionData)(s.ExtensionType.TransferFeeConfig,e.tlvData);return null!==t?d.decode(t):null}function h(e){const t=(0,s.getExtensionData)(s.ExtensionType.TransferFeeAmount,e.tlvData);return null!==t?m.decode(t):null}})),parcelRequire.register("QIgte",(function(e,t){$parcel$export(e.exports,"initializeAccountInstructionData",(()=>c)),$parcel$export(e.exports,"createInitializeAccountInstruction",(()=>d)),$parcel$export(e.exports,"decodeInitializeAccountInstruction",(()=>l)),$parcel$export(e.exports,"decodeInitializeAccountInstructionUnchecked",(()=>m));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("eoQMl"),r=parcelRequire("eqQA8"),i=parcelRequire("ajHSv").Buffer;const c=(0,a.struct)([(0,a.u8)("instruction")]);function d(e,t,a,s=n.TOKEN_PROGRAM_ID){const d=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],l=i.alloc(c.span);return c.encode({instruction:r.TokenInstruction.InitializeAccount},l),new(0,o.TransactionInstruction)({keys:d,programId:s,data:l})}function l(e,t=n.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,s.TokenInvalidInstructionProgramError);if(e.data.length!==c.span)throw new(0,s.TokenInvalidInstructionDataError);const{keys:{account:a,mint:o,owner:i,rent:d},data:l}=m(e);if(l.instruction!==r.TokenInstruction.InitializeAccount)throw new(0,s.TokenInvalidInstructionTypeError);if(!(a&&o&&i&&d))throw new(0,s.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,mint:o,owner:i,rent:d},data:l}}function m({programId:e,keys:[t,a,o,n],data:s}){return{programId:e,keys:{account:t,mint:a,owner:o,rent:n},data:c.decode(s)}}})),parcelRequire.register("b4qm8",(function(e,t){$parcel$export(e.exports,"createAssociatedTokenAccount",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("cMAzE"),s=parcelRequire("6hd0T");async function r(e,t,r,i,c,d=o.TOKEN_PROGRAM_ID,l=o.ASSOCIATED_TOKEN_PROGRAM_ID){const m=await(0,s.getAssociatedTokenAddress)(r,i,!1,d,l),u=(new(0,a.Transaction)).add((0,n.createAssociatedTokenAccountInstruction)(t.publicKey,m,i,r,d,l));return await(0,a.sendAndConfirmTransaction)(e,u,[t],c),m}})),parcelRequire.register("cMAzE",(function(e,t){$parcel$export(e.exports,"createAssociatedTokenAccountInstruction",(()=>s)),$parcel$export(e.exports,"createAssociatedTokenAccountIdempotentInstruction",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("ajHSv").Buffer;function s(e,t,a,s,r=o.TOKEN_PROGRAM_ID,c=o.ASSOCIATED_TOKEN_PROGRAM_ID){return i(e,t,a,s,n.alloc(0),r,c)}function r(e,t,a,s,r=o.TOKEN_PROGRAM_ID,c=o.ASSOCIATED_TOKEN_PROGRAM_ID){return i(e,t,a,s,n.from([1]),r,c)}function i(e,t,n,s,r,i=o.TOKEN_PROGRAM_ID,c=o.ASSOCIATED_TOKEN_PROGRAM_ID){const d=[{pubkey:e,isSigner:!0,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:s,isSigner:!1,isWritable:!1},{pubkey:a.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!1}];return new(0,a.TransactionInstruction)({keys:d,programId:c,data:r})}})),parcelRequire.register("gmq2v",(function(e,t){$parcel$export(e.exports,"createAssociatedTokenAccountIdempotent",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("cMAzE"),s=parcelRequire("6hd0T");async function r(e,t,r,i,c,d=o.TOKEN_PROGRAM_ID,l=o.ASSOCIATED_TOKEN_PROGRAM_ID){const m=await(0,s.getAssociatedTokenAddress)(r,i,!1,d,l),u=(new(0,a.Transaction)).add((0,n.createAssociatedTokenAccountIdempotentInstruction)(t.publicKey,m,i,r,d,l));return await(0,a.sendAndConfirmTransaction)(e,u,[t],c),m}})),parcelRequire.register("alzMi",(function(e,t){$parcel$export(e.exports,"createMint",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("iM7ur"),s=parcelRequire("6hd0T");async function r(e,t,r,i,c,d=a.Keypair.generate(),l,m=o.TOKEN_PROGRAM_ID){const u=await(0,s.getMinimumBalanceForRentExemptMint)(e),p=(new(0,a.Transaction)).add(a.SystemProgram.createAccount({fromPubkey:t.publicKey,newAccountPubkey:d.publicKey,space:s.MINT_SIZE,lamports:u,programId:m}),(0,n.createInitializeMint2Instruction)(d.publicKey,c,r,i,m));return await(0,a.sendAndConfirmTransaction)(e,p,[t,d],l),d.publicKey}})),parcelRequire.register("iM7ur",(function(e,t){$parcel$export(e.exports,"initializeMint2InstructionData",(()=>d)),$parcel$export(e.exports,"createInitializeMint2Instruction",(()=>l)),$parcel$export(e.exports,"decodeInitializeMint2Instruction",(()=>m)),$parcel$export(e.exports,"decodeInitializeMint2InstructionUnchecked",(()=>u));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("decimals"),(0,o.publicKey)("mintAuthority"),(0,a.u8)("freezeAuthorityOption"),(0,o.publicKey)("freezeAuthority")]);function l(e,t,a,o,r=s.TOKEN_PROGRAM_ID){const l=[{pubkey:e,isSigner:!1,isWritable:!0}],m=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.InitializeMint2,decimals:t,mintAuthority:a,freezeAuthorityOption:o?1:0,freezeAuthority:o||new(0,n.PublicKey)(0)},m),new(0,n.TransactionInstruction)({keys:l,programId:r,data:m})}function m(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==d.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{mint:a},data:o}=u(e);if(o.instruction!==i.TokenInstruction.InitializeMint2)throw new(0,r.TokenInvalidInstructionTypeError);if(!a)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:a},data:o}}function u({programId:e,keys:[t],data:a}){const{instruction:o,decimals:n,mintAuthority:s,freezeAuthorityOption:r,freezeAuthority:i}=d.decode(a);return{programId:e,keys:{mint:t},data:{instruction:o,decimals:n,mintAuthority:s,freezeAuthority:r?i:null}}}})),parcelRequire.register("93O94",(function(e,t){$parcel$export(e.exports,"createMultisig",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("8jbPC"),s=parcelRequire("hrR99");async function r(e,t,r,i,c=a.Keypair.generate(),d,l=o.TOKEN_PROGRAM_ID){const m=await(0,s.getMinimumBalanceForRentExemptMultisig)(e),u=(new(0,a.Transaction)).add(a.SystemProgram.createAccount({fromPubkey:t.publicKey,newAccountPubkey:c.publicKey,space:s.MULTISIG_SIZE,lamports:m,programId:l}),(0,n.createInitializeMultisigInstruction)(c.publicKey,r,i,l));return await(0,a.sendAndConfirmTransaction)(e,u,[t,c],d),c.publicKey}})),parcelRequire.register("8jbPC",(function(e,t){$parcel$export(e.exports,"initializeMultisigInstructionData",(()=>c)),$parcel$export(e.exports,"createInitializeMultisigInstruction",(()=>d)),$parcel$export(e.exports,"decodeInitializeMultisigInstruction",(()=>l)),$parcel$export(e.exports,"decodeInitializeMultisigInstructionUnchecked",(()=>m));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("eoQMl"),r=parcelRequire("eqQA8"),i=parcelRequire("ajHSv").Buffer;const c=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("m")]);function d(e,t,a,s=n.TOKEN_PROGRAM_ID){const d=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];for(const e of t)d.push({pubkey:e instanceof o.PublicKey?e:e.publicKey,isSigner:!1,isWritable:!1});const l=i.alloc(c.span);return c.encode({instruction:r.TokenInstruction.InitializeMultisig,m:a},l),new(0,o.TransactionInstruction)({keys:d,programId:s,data:l})}function l(e,t=n.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,s.TokenInvalidInstructionProgramError);if(e.data.length!==c.span)throw new(0,s.TokenInvalidInstructionDataError);const{keys:{account:a,rent:o,signers:i},data:d}=m(e);if(d.instruction!==r.TokenInstruction.InitializeMultisig)throw new(0,s.TokenInvalidInstructionTypeError);if(!a||!o||!i.length)throw new(0,s.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,rent:o,signers:i},data:d}}function m({programId:e,keys:[t,a,...o],data:n}){return{programId:e,keys:{account:t,rent:a,signers:o},data:c.decode(n)}}})),parcelRequire.register("39Etl",(function(e,t){$parcel$export(e.exports,"createNativeMint",(()=>s));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("dSL4n");async function s(e,t,s,r=o.NATIVE_MINT_2022,i=o.TOKEN_2022_PROGRAM_ID){const c=(new(0,a.Transaction)).add((0,n.createCreateNativeMintInstruction)(t.publicKey,r,i));await(0,a.sendAndConfirmTransaction)(e,c,[t],s)}})),parcelRequire.register("dSL4n",(function(e,t){$parcel$export(e.exports,"createNativeMintInstructionData",(()=>c)),$parcel$export(e.exports,"createCreateNativeMintInstruction",(()=>d));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("eoQMl"),r=parcelRequire("eqQA8"),i=parcelRequire("ajHSv").Buffer;const c=(0,a.struct)([(0,a.u8)("instruction")]);function d(e,t=n.NATIVE_MINT_2022,a=n.TOKEN_2022_PROGRAM_ID){if(!(0,n.programSupportsExtensions)(a))throw new(0,s.TokenUnsupportedInstructionError);const d=[{pubkey:e,isSigner:!0,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1}],l=i.alloc(c.span);return c.encode({instruction:r.TokenInstruction.CreateNativeMint},l),new(0,o.TransactionInstruction)({keys:d,programId:a,data:l})}})),parcelRequire.register("axvlB",(function(e,t){$parcel$export(e.exports,"createWrappedNativeAccount",(()=>l));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("cMAzE"),s=parcelRequire("QIgte"),r=parcelRequire("gKOEj"),i=parcelRequire("gDqNs"),c=parcelRequire("6hd0T"),d=parcelRequire("fQ0Sv");async function l(e,t,l,m,u,p,h=o.TOKEN_PROGRAM_ID,g=o.NATIVE_MINT){if(!m)return await(0,d.createAccount)(e,t,g,l,u,p,h);if(!u){const s=await(0,c.getAssociatedTokenAddress)(g,l,!1,h,o.ASSOCIATED_TOKEN_PROGRAM_ID),i=(new(0,a.Transaction)).add((0,n.createAssociatedTokenAccountInstruction)(t.publicKey,s,l,g,h,o.ASSOCIATED_TOKEN_PROGRAM_ID),a.SystemProgram.transfer({fromPubkey:t.publicKey,toPubkey:s,lamports:m}),(0,r.createSyncNativeInstruction)(s,h));return await(0,a.sendAndConfirmTransaction)(e,i,[t],p),s}const b=await(0,i.getMinimumBalanceForRentExemptAccount)(e),f=(new(0,a.Transaction)).add(a.SystemProgram.createAccount({fromPubkey:t.publicKey,newAccountPubkey:u.publicKey,space:i.ACCOUNT_SIZE,lamports:b,programId:h}),a.SystemProgram.transfer({fromPubkey:t.publicKey,toPubkey:u.publicKey,lamports:m}),(0,s.createInitializeAccountInstruction)(u.publicKey,g,l,h));return await(0,a.sendAndConfirmTransaction)(e,f,[t,u],p),u.publicKey}})),parcelRequire.register("gKOEj",(function(e,t){$parcel$export(e.exports,"syncNativeInstructionData",(()=>c)),$parcel$export(e.exports,"createSyncNativeInstruction",(()=>d)),$parcel$export(e.exports,"decodeSyncNativeInstruction",(()=>l)),$parcel$export(e.exports,"decodeSyncNativeInstructionUnchecked",(()=>m));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("eoQMl"),r=parcelRequire("eqQA8"),i=parcelRequire("ajHSv").Buffer;const c=(0,a.struct)([(0,a.u8)("instruction")]);function d(e,t=n.TOKEN_PROGRAM_ID){const a=[{pubkey:e,isSigner:!1,isWritable:!0}],s=i.alloc(c.span);return c.encode({instruction:r.TokenInstruction.SyncNative},s),new(0,o.TransactionInstruction)({keys:a,programId:t,data:s})}function l(e,t=n.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,s.TokenInvalidInstructionProgramError);if(e.data.length!==c.span)throw new(0,s.TokenInvalidInstructionDataError);const{keys:{account:a},data:o}=m(e);if(o.instruction!==r.TokenInstruction.SyncNative)throw new(0,s.TokenInvalidInstructionTypeError);if(!a)throw new(0,s.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a},data:o}}function m({programId:e,keys:[t],data:a}){return{programId:e,keys:{account:t},data:c.decode(a)}}})),parcelRequire.register("iYGtm",(function(e,t){$parcel$export(e.exports,"freezeAccount",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("b1rWP"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d=[],l,m=o.TOKEN_PROGRAM_ID){const[u,p]=(0,s.getSigners)(c,d),h=(new(0,a.Transaction)).add((0,n.createFreezeAccountInstruction)(r,i,u,d,m));return await(0,a.sendAndConfirmTransaction)(e,h,[t,...p],l)}})),parcelRequire.register("b1rWP",(function(e,t){$parcel$export(e.exports,"freezeAccountInstructionData",(()=>d)),$parcel$export(e.exports,"createFreezeAccountInstruction",(()=>l)),$parcel$export(e.exports,"decodeFreezeAccountInstruction",(()=>m)),$parcel$export(e.exports,"decodeFreezeAccountInstructionUnchecked",(()=>u));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("eoQMl"),r=parcelRequire("ht9NM"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction")]);function l(e,t,a,s=[],l=n.TOKEN_PROGRAM_ID){const m=(0,r.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1}],a,s),u=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.FreezeAccount},u),new(0,o.TransactionInstruction)({keys:m,programId:l,data:u})}function m(e,t=n.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,s.TokenInvalidInstructionProgramError);if(e.data.length!==d.span)throw new(0,s.TokenInvalidInstructionDataError);const{keys:{account:a,mint:o,authority:r,multiSigners:c},data:l}=u(e);if(l.instruction!==i.TokenInstruction.FreezeAccount)throw new(0,s.TokenInvalidInstructionTypeError);if(!a||!o||!r)throw new(0,s.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,mint:o,authority:r,multiSigners:c},data:l}}function u({programId:e,keys:[t,a,o,...n],data:s}){return{programId:e,keys:{account:t,mint:a,authority:o,multiSigners:n},data:d.decode(s)}}})),parcelRequire.register("3dPF2",(function(e,t){$parcel$export(e.exports,"getOrCreateAssociatedTokenAccount",(()=>c));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("eoQMl"),s=parcelRequire("cMAzE"),r=parcelRequire("gDqNs"),i=parcelRequire("6hd0T");async function c(e,t,c,d,l=!1,m,u,p=o.TOKEN_PROGRAM_ID,h=o.ASSOCIATED_TOKEN_PROGRAM_ID){const g=await(0,i.getAssociatedTokenAddress)(c,d,l,p,h);let b;try{b=await(0,r.getAccount)(e,g,m,p)}catch(o){if(!(o instanceof n.TokenAccountNotFoundError||o instanceof n.TokenInvalidAccountOwnerError))throw o;try{const o=(new(0,a.Transaction)).add((0,s.createAssociatedTokenAccountInstruction)(t.publicKey,g,d,c,p,h));await(0,a.sendAndConfirmTransaction)(e,o,[t],u)}catch(e){}b=await(0,r.getAccount)(e,g,m,p)}if(!b.mint.equals(c))throw new(0,n.TokenInvalidMintError);if(!b.owner.equals(d))throw new(0,n.TokenInvalidOwnerError);return b}})),parcelRequire.register("1diIR",(function(e,t){$parcel$export(e.exports,"mintTo",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("j3KyH"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d,l=[],m,u=o.TOKEN_PROGRAM_ID){const[p,h]=(0,s.getSigners)(c,l),g=(new(0,a.Transaction)).add((0,n.createMintToInstruction)(r,i,p,d,l,u));return await(0,a.sendAndConfirmTransaction)(e,g,[t,...h],m)}})),parcelRequire.register("j3KyH",(function(e,t){$parcel$export(e.exports,"mintToInstructionData",(()=>l)),$parcel$export(e.exports,"createMintToInstruction",(()=>m)),$parcel$export(e.exports,"decodeMintToInstruction",(()=>u)),$parcel$export(e.exports,"decodeMintToInstructionUnchecked",(()=>p));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("ht9NM"),c=parcelRequire("eqQA8"),d=parcelRequire("ajHSv").Buffer;const l=(0,a.struct)([(0,a.u8)("instruction"),(0,o.u64)("amount")]);function m(e,t,a,o,r=[],m=s.TOKEN_PROGRAM_ID){const u=(0,i.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],a,r),p=d.alloc(l.span);return l.encode({instruction:c.TokenInstruction.MintTo,amount:BigInt(o)},p),new(0,n.TransactionInstruction)({keys:u,programId:m,data:p})}function u(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==l.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{mint:a,destination:o,authority:n,multiSigners:i},data:d}=p(e);if(d.instruction!==c.TokenInstruction.MintTo)throw new(0,r.TokenInvalidInstructionTypeError);if(!a||!o||!n)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:a,destination:o,authority:n,multiSigners:i},data:d}}function p({programId:e,keys:[t,a,o,...n],data:s}){return{programId:e,keys:{mint:t,destination:a,authority:o,multiSigners:n},data:l.decode(s)}}})),parcelRequire.register("c1JyC",(function(e,t){$parcel$export(e.exports,"mintToChecked",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("k8TJf"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d,l,m=[],u,p=o.TOKEN_PROGRAM_ID){const[h,g]=(0,s.getSigners)(c,m),b=(new(0,a.Transaction)).add((0,n.createMintToCheckedInstruction)(r,i,h,d,l,m,p));return await(0,a.sendAndConfirmTransaction)(e,b,[t,...g],u)}})),parcelRequire.register("k8TJf",(function(e,t){$parcel$export(e.exports,"mintToCheckedInstructionData",(()=>l)),$parcel$export(e.exports,"createMintToCheckedInstruction",(()=>m)),$parcel$export(e.exports,"decodeMintToCheckedInstruction",(()=>u)),$parcel$export(e.exports,"decodeMintToCheckedInstructionUnchecked",(()=>p));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("ht9NM"),c=parcelRequire("eqQA8"),d=parcelRequire("ajHSv").Buffer;const l=(0,a.struct)([(0,a.u8)("instruction"),(0,o.u64)("amount"),(0,a.u8)("decimals")]);function m(e,t,a,o,r,m=[],u=s.TOKEN_PROGRAM_ID){const p=(0,i.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],a,m),h=d.alloc(l.span);return l.encode({instruction:c.TokenInstruction.MintToChecked,amount:BigInt(o),decimals:r},h),new(0,n.TransactionInstruction)({keys:p,programId:u,data:h})}function u(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==l.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{mint:a,destination:o,authority:n,multiSigners:i},data:d}=p(e);if(d.instruction!==c.TokenInstruction.MintToChecked)throw new(0,r.TokenInvalidInstructionTypeError);if(!a||!o||!n)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:a,destination:o,authority:n,multiSigners:i},data:d}}function p({programId:e,keys:[t,a,o,...n],data:s}){return{programId:e,keys:{mint:t,destination:a,authority:o,multiSigners:n},data:l.decode(s)}}})),parcelRequire.register("4KGcH",(function(e,t){$parcel$export(e.exports,"revoke",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("dsbrT"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c=[],d,l=o.TOKEN_PROGRAM_ID){const[m,u]=(0,s.getSigners)(i,c),p=(new(0,a.Transaction)).add((0,n.createRevokeInstruction)(r,m,c,l));return await(0,a.sendAndConfirmTransaction)(e,p,[t,...u],d)}})),parcelRequire.register("dsbrT",(function(e,t){$parcel$export(e.exports,"revokeInstructionData",(()=>d)),$parcel$export(e.exports,"createRevokeInstruction",(()=>l)),$parcel$export(e.exports,"decodeRevokeInstruction",(()=>m)),$parcel$export(e.exports,"decodeRevokeInstructionUnchecked",(()=>u));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("eoQMl"),r=parcelRequire("ht9NM"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction")]);function l(e,t,a=[],s=n.TOKEN_PROGRAM_ID){const l=(0,r.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0}],t,a),m=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.Revoke},m),new(0,o.TransactionInstruction)({keys:l,programId:s,data:m})}function m(e,t=n.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,s.TokenInvalidInstructionProgramError);if(e.data.length!==d.span)throw new(0,s.TokenInvalidInstructionDataError);const{keys:{account:a,owner:o,multiSigners:r},data:c}=u(e);if(c.instruction!==i.TokenInstruction.Revoke)throw new(0,s.TokenInvalidInstructionTypeError);if(!a||!o)throw new(0,s.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,owner:o,multiSigners:r},data:c}}function u({programId:e,keys:[t,a,...o],data:n}){return{programId:e,keys:{account:t,owner:a,multiSigners:o},data:d.decode(n)}}})),parcelRequire.register("jJQoY",(function(e,t){$parcel$export(e.exports,"setAuthority",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("i9cJF"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d,l=[],m,u=o.TOKEN_PROGRAM_ID){const[p,h]=(0,s.getSigners)(i,l),g=(new(0,a.Transaction)).add((0,n.createSetAuthorityInstruction)(r,p,c,d,l,u));return await(0,a.sendAndConfirmTransaction)(e,g,[t,...h],m)}})),parcelRequire.register("i9cJF",(function(e,t){$parcel$export(e.exports,"AuthorityType",(()=>o)),$parcel$export(e.exports,"setAuthorityInstructionData",(()=>u)),$parcel$export(e.exports,"createSetAuthorityInstruction",(()=>p)),$parcel$export(e.exports,"decodeSetAuthorityInstruction",(()=>h)),$parcel$export(e.exports,"decodeSetAuthorityInstructionUnchecked",(()=>g));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o,n,s=parcelRequire("gKWJK"),r=parcelRequire("5cySN"),i=parcelRequire("14mYq"),c=parcelRequire("eoQMl"),d=parcelRequire("ht9NM"),l=parcelRequire("eqQA8"),m=parcelRequire("ajHSv").Buffer;(n=o||(o={}))[n.MintTokens=0]="MintTokens",n[n.FreezeAccount=1]="FreezeAccount",n[n.AccountOwner=2]="AccountOwner",n[n.CloseAccount=3]="CloseAccount";const u=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("authorityType"),(0,a.u8)("newAuthorityOption"),(0,s.publicKey)("newAuthority")]);function p(e,t,a,o,n=[],s=i.TOKEN_PROGRAM_ID){const c=(0,d.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0}],t,n),p=m.alloc(u.span);return u.encode({instruction:l.TokenInstruction.SetAuthority,authorityType:a,newAuthorityOption:o?1:0,newAuthority:o||new(0,r.PublicKey)(0)},p),new(0,r.TransactionInstruction)({keys:c,programId:s,data:p})}function h(e,t=i.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,c.TokenInvalidInstructionProgramError);if(e.data.length!==u.span)throw new(0,c.TokenInvalidInstructionDataError);const{keys:{account:a,currentAuthority:o,multiSigners:n},data:s}=g(e);if(s.instruction!==l.TokenInstruction.SetAuthority)throw new(0,c.TokenInvalidInstructionTypeError);if(!a||!o)throw new(0,c.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,currentAuthority:o,multiSigners:n},data:s}}function g({programId:e,keys:[t,a,...o],data:n}){const{instruction:s,authorityType:r,newAuthorityOption:i,newAuthority:c}=u.decode(n);return{programId:e,keys:{account:t,currentAuthority:a,multiSigners:o},data:{instruction:s,authorityType:r,newAuthority:i?c:null}}}})),parcelRequire.register("fw4I5",(function(e,t){$parcel$export(e.exports,"syncNative",(()=>s));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("gKOEj");async function s(e,t,s,r,i=o.TOKEN_PROGRAM_ID){const c=(new(0,a.Transaction)).add((0,n.createSyncNativeInstruction)(s,i));return await(0,a.sendAndConfirmTransaction)(e,c,[t],r)}})),parcelRequire.register("dKqe6",(function(e,t){$parcel$export(e.exports,"thawAccount",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("7Vr9c"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d=[],l,m=o.TOKEN_PROGRAM_ID){const[u,p]=(0,s.getSigners)(c,d),h=(new(0,a.Transaction)).add((0,n.createThawAccountInstruction)(r,i,u,d,m));return await(0,a.sendAndConfirmTransaction)(e,h,[t,...p],l)}})),parcelRequire.register("7Vr9c",(function(e,t){$parcel$export(e.exports,"thawAccountInstructionData",(()=>d)),$parcel$export(e.exports,"createThawAccountInstruction",(()=>l)),$parcel$export(e.exports,"decodeThawAccountInstruction",(()=>m)),$parcel$export(e.exports,"decodeThawAccountInstructionUnchecked",(()=>u));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("eoQMl"),r=parcelRequire("ht9NM"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction")]);function l(e,t,a,s=[],l=n.TOKEN_PROGRAM_ID){const m=(0,r.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1}],a,s),u=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.ThawAccount},u),new(0,o.TransactionInstruction)({keys:m,programId:l,data:u})}function m(e,t=n.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,s.TokenInvalidInstructionProgramError);if(e.data.length!==d.span)throw new(0,s.TokenInvalidInstructionDataError);const{keys:{account:a,mint:o,authority:r,multiSigners:c},data:l}=u(e);if(l.instruction!==i.TokenInstruction.ThawAccount)throw new(0,s.TokenInvalidInstructionTypeError);if(!a||!o||!r)throw new(0,s.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,mint:o,authority:r,multiSigners:c},data:l}}function u({programId:e,keys:[t,a,o,...n],data:s}){return{programId:e,keys:{account:t,mint:a,authority:o,multiSigners:n},data:d.decode(s)}}})),parcelRequire.register("kUcFO",(function(e,t){$parcel$export(e.exports,"transfer",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("75c55"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d,l=[],m,u=o.TOKEN_PROGRAM_ID){const[p,h]=(0,s.getSigners)(c,l),g=(new(0,a.Transaction)).add((0,n.createTransferInstruction)(r,i,p,d,l,u));return await(0,a.sendAndConfirmTransaction)(e,g,[t,...h],m)}})),parcelRequire.register("75c55",(function(e,t){$parcel$export(e.exports,"transferInstructionData",(()=>l)),$parcel$export(e.exports,"createTransferInstruction",(()=>m)),$parcel$export(e.exports,"decodeTransferInstruction",(()=>u)),$parcel$export(e.exports,"decodeTransferInstructionUnchecked",(()=>p));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("ht9NM"),c=parcelRequire("eqQA8"),d=parcelRequire("ajHSv").Buffer;const l=(0,a.struct)([(0,a.u8)("instruction"),(0,o.u64)("amount")]);function m(e,t,a,o,r=[],m=s.TOKEN_PROGRAM_ID){const u=(0,i.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],a,r),p=d.alloc(l.span);return l.encode({instruction:c.TokenInstruction.Transfer,amount:BigInt(o)},p),new(0,n.TransactionInstruction)({keys:u,programId:m,data:p})}function u(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==l.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{source:a,destination:o,owner:n,multiSigners:i},data:d}=p(e);if(d.instruction!==c.TokenInstruction.Transfer)throw new(0,r.TokenInvalidInstructionTypeError);if(!a||!o||!n)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{source:a,destination:o,owner:n,multiSigners:i},data:d}}function p({programId:e,keys:[t,a,o,...n],data:s}){return{programId:e,keys:{source:t,destination:a,owner:o,multiSigners:n},data:l.decode(s)}}})),parcelRequire.register("lUMmm",(function(e,t){$parcel$export(e.exports,"transferChecked",(()=>r));var a=parcelRequire("5cySN"),o=parcelRequire("14mYq"),n=parcelRequire("jZb0v"),s=parcelRequire("cu2nn");async function r(e,t,r,i,c,d,l,m,u=[],p,h=o.TOKEN_PROGRAM_ID){const[g,b]=(0,s.getSigners)(d,u),f=(new(0,a.Transaction)).add((0,n.createTransferCheckedInstruction)(r,i,c,g,l,m,u,h));return await(0,a.sendAndConfirmTransaction)(e,f,[t,...b],p)}})),parcelRequire.register("jZb0v",(function(e,t){$parcel$export(e.exports,"transferCheckedInstructionData",(()=>l)),$parcel$export(e.exports,"createTransferCheckedInstruction",(()=>m)),$parcel$export(e.exports,"decodeTransferCheckedInstruction",(()=>u)),$parcel$export(e.exports,"decodeTransferCheckedInstructionUnchecked",(()=>p));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("hDWD6"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("ht9NM"),c=parcelRequire("eqQA8"),d=parcelRequire("ajHSv").Buffer;const l=(0,a.struct)([(0,a.u8)("instruction"),(0,o.u64)("amount"),(0,a.u8)("decimals")]);function m(e,t,a,o,r,m,u=[],p=s.TOKEN_PROGRAM_ID){const h=(0,i.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!1,isWritable:!0}],o,u),g=d.alloc(l.span);return l.encode({instruction:c.TokenInstruction.TransferChecked,amount:BigInt(r),decimals:m},g),new(0,n.TransactionInstruction)({keys:h,programId:p,data:g})}function u(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==l.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{source:a,mint:o,destination:n,owner:i,multiSigners:d},data:m}=p(e);if(m.instruction!==c.TokenInstruction.TransferChecked)throw new(0,r.TokenInvalidInstructionTypeError);if(!(a&&o&&n&&i))throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{source:a,mint:o,destination:n,owner:i,multiSigners:d},data:m}}function p({programId:e,keys:[t,a,o,n,...s],data:r}){return{programId:e,keys:{source:t,mint:a,destination:o,owner:n,multiSigners:s},data:l.decode(r)}}})),parcelRequire.register("5fjcP",(function(e,t){$parcel$export(e.exports,"uiAmountToAmount",(()=>i)),parcelRequire("8uDQh");var a=parcelRequire("hDWD6"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("2oep9"),r=parcelRequire("ajHSv").Buffer;async function i(e,t,i,c,d=n.TOKEN_PROGRAM_ID){const l=(new(0,o.Transaction)).add((0,s.createUiAmountToAmountInstruction)(i,c,d)),{returnData:m,err:u}=(await e.simulateTransaction(l,[t],!1)).value;if(m){const e=r.from(m.data[0],m.data[1]);return(0,a.u64)().decode(e)}return u}})),parcelRequire.register("2oep9",(function(e,t){$parcel$export(e.exports,"createUiAmountToAmountInstruction",(()=>c)),$parcel$export(e.exports,"decodeUiAmountToAmountInstruction",(()=>d)),$parcel$export(e.exports,"decodeUiAmountToAmountInstructionUnchecked",(()=>l));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("eoQMl"),r=parcelRequire("eqQA8"),i=parcelRequire("ajHSv").Buffer;function c(e,t,s=n.TOKEN_PROGRAM_ID){const c=[{pubkey:e,isSigner:!1,isWritable:!1}],d=i.from(t,"utf8"),l=(0,a.struct)([(0,a.u8)("instruction"),(0,a.blob)(d.length,"amount")]),m=i.alloc(l.span);return l.encode({instruction:r.TokenInstruction.UiAmountToAmount,amount:d},m),new(0,o.TransactionInstruction)({keys:c,programId:s,data:m})}function d(e,t=n.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,s.TokenInvalidInstructionProgramError);const o=(0,a.struct)([(0,a.u8)("instruction"),(0,a.blob)(e.data.length-1,"amount")]);if(e.data.length!==o.span)throw new(0,s.TokenInvalidInstructionDataError);const{keys:{mint:i},data:c}=l(e);if(c.instruction!==r.TokenInstruction.UiAmountToAmount)throw new(0,s.TokenInvalidInstructionTypeError);if(!i)throw new(0,s.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:i},data:c}}function l({programId:e,keys:[t],data:o}){return{programId:e,keys:{mint:t},data:(0,a.struct)([(0,a.u8)("instruction"),(0,a.blob)(o.length-1,"amount")]).decode(o)}}})),parcelRequire.register("dwtxg",(function(e,t){var a=parcelRequire("hi1at"),o=parcelRequire("4jd54"),n=parcelRequire("d3RXs"),s=parcelRequire("01c0M"),r=parcelRequire("4ylgN"),i=parcelRequire("8ud2H"),c=parcelRequire("lAzeM"),d=parcelRequire("aesMN"),l=parcelRequire("j9gRW"),m=parcelRequire("hlJWu"),u=parcelRequire("3CzYu");$parcel$exportWildcard(e.exports,a),$parcel$exportWildcard(e.exports,o),$parcel$exportWildcard(e.exports,n),$parcel$exportWildcard(e.exports,s),$parcel$exportWildcard(e.exports,r),$parcel$exportWildcard(e.exports,i),$parcel$exportWildcard(e.exports,c),$parcel$exportWildcard(e.exports,d),$parcel$exportWildcard(e.exports,l),$parcel$exportWildcard(e.exports,m),$parcel$exportWildcard(e.exports,u)})),parcelRequire.register("4jd54",(function(e,t){var a=parcelRequire("0gh2J"),o=parcelRequire("99IK0"),n=parcelRequire("a8yVK");$parcel$exportWildcard(e.exports,a),$parcel$exportWildcard(e.exports,o),$parcel$exportWildcard(e.exports,n)})),parcelRequire.register("0gh2J",(function(e,t){$parcel$export(e.exports,"enableCpiGuard",(()=>r)),$parcel$export(e.exports,"disableCpiGuard",(()=>i));var a=parcelRequire("5cySN"),o=parcelRequire("cu2nn"),n=parcelRequire("14mYq"),s=parcelRequire("99IK0");async function r(e,t,r,i,c=[],d,l=n.TOKEN_2022_PROGRAM_ID){const[m,u]=(0,o.getSigners)(i,c),p=(new(0,a.Transaction)).add((0,s.createEnableCpiGuardInstruction)(r,m,u,l));return await(0,a.sendAndConfirmTransaction)(e,p,[t,...u],d)}async function i(e,t,r,i,c=[],d,l=n.TOKEN_2022_PROGRAM_ID){const[m,u]=(0,o.getSigners)(i,c),p=(new(0,a.Transaction)).add((0,s.createDisableCpiGuardInstruction)(r,m,u,l));return await(0,a.sendAndConfirmTransaction)(e,p,[t,...u],d)}})),parcelRequire.register("99IK0",(function(e,t){$parcel$export(e.exports,"CpiGuardInstruction",(()=>a)),$parcel$export(e.exports,"cpiGuardInstructionData",(()=>m)),$parcel$export(e.exports,"createEnableCpiGuardInstruction",(()=>u)),$parcel$export(e.exports,"createDisableCpiGuardInstruction",(()=>p));var a,o,n=parcelRequire("crvhM"),s=parcelRequire("5cySN"),r=parcelRequire("14mYq"),i=parcelRequire("eoQMl"),c=parcelRequire("ht9NM"),d=parcelRequire("eqQA8"),l=parcelRequire("ajHSv").Buffer;(o=a||(a={}))[o.Enable=0]="Enable",o[o.Disable=1]="Disable";const m=(0,n.struct)([(0,n.u8)("instruction"),(0,n.u8)("cpiGuardInstruction")]);function u(e,t,o=[],n=r.TOKEN_2022_PROGRAM_ID){return h(a.Enable,e,t,o,n)}function p(e,t,o=[],n=r.TOKEN_2022_PROGRAM_ID){return h(a.Disable,e,t,o,n)}function h(e,t,a,o,n){if(!(0,r.programSupportsExtensions)(n))throw new(0,i.TokenUnsupportedInstructionError);const u=(0,c.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0}],a,o),p=l.alloc(m.span);return m.encode({instruction:d.TokenInstruction.CpiGuardExtension,cpiGuardInstruction:e},p),new(0,s.TransactionInstruction)({keys:u,programId:n,data:p})}})),parcelRequire.register("d3RXs",(function(e,t){var a=parcelRequire("iiZhQ"),o=parcelRequire("1UAe5"),n=parcelRequire("eFuBy");$parcel$exportWildcard(e.exports,a),$parcel$exportWildcard(e.exports,o),$parcel$exportWildcard(e.exports,n)})),parcelRequire.register("iiZhQ",(function(e,t){$parcel$export(e.exports,"initializeDefaultAccountState",(()=>r)),$parcel$export(e.exports,"updateDefaultAccountState",(()=>i));var a=parcelRequire("5cySN"),o=parcelRequire("cu2nn"),n=parcelRequire("14mYq"),s=parcelRequire("1UAe5");async function r(e,t,o,r,i,c=n.TOKEN_2022_PROGRAM_ID){const d=(new(0,a.Transaction)).add((0,s.createInitializeDefaultAccountStateInstruction)(o,r,c));return await(0,a.sendAndConfirmTransaction)(e,d,[t],i)}async function i(e,t,r,i,c,d=[],l,m=n.TOKEN_2022_PROGRAM_ID){const[u,p]=(0,o.getSigners)(c,d),h=(new(0,a.Transaction)).add((0,s.createUpdateDefaultAccountStateInstruction)(r,i,u,p,m));return await(0,a.sendAndConfirmTransaction)(e,h,[t,...p],l)}})),parcelRequire.register("1UAe5",(function(e,t){$parcel$export(e.exports,"DefaultAccountStateInstruction",(()=>a)),$parcel$export(e.exports,"defaultAccountStateInstructionData",(()=>m)),$parcel$export(e.exports,"createInitializeDefaultAccountStateInstruction",(()=>u)),$parcel$export(e.exports,"createUpdateDefaultAccountStateInstruction",(()=>p));var a,o,n=parcelRequire("crvhM"),s=parcelRequire("5cySN"),r=parcelRequire("14mYq"),i=parcelRequire("eoQMl"),c=parcelRequire("ht9NM"),d=parcelRequire("eqQA8"),l=parcelRequire("ajHSv").Buffer;(o=a||(a={}))[o.Initialize=0]="Initialize",o[o.Update=1]="Update";const m=(0,n.struct)([(0,n.u8)("instruction"),(0,n.u8)("defaultAccountStateInstruction"),(0,n.u8)("accountState")]);function u(e,t,o=r.TOKEN_2022_PROGRAM_ID){if(!(0,r.programSupportsExtensions)(o))throw new(0,i.TokenUnsupportedInstructionError);const n=[{pubkey:e,isSigner:!1,isWritable:!0}],c=l.alloc(m.span);return m.encode({instruction:d.TokenInstruction.DefaultAccountStateExtension,defaultAccountStateInstruction:a.Initialize,accountState:t},c),new(0,s.TransactionInstruction)({keys:n,programId:o,data:c})}function p(e,t,o,n=[],u=r.TOKEN_2022_PROGRAM_ID){if(!(0,r.programSupportsExtensions)(u))throw new(0,i.TokenUnsupportedInstructionError);const p=(0,c.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0}],o,n),h=l.alloc(m.span);return m.encode({instruction:d.TokenInstruction.DefaultAccountStateExtension,defaultAccountStateInstruction:a.Update,accountState:t},h),new(0,s.TransactionInstruction)({keys:p,programId:u,data:h})}})),parcelRequire.register("8ud2H",(function(e,t){var a=parcelRequire("dLKT6"),o=parcelRequire("hQrOu"),n=parcelRequire("6vPfl");$parcel$exportWildcard(e.exports,a),$parcel$exportWildcard(e.exports,o),$parcel$exportWildcard(e.exports,n)})),parcelRequire.register("dLKT6",(function(e,t){$parcel$export(e.exports,"createInterestBearingMint",(()=>c)),$parcel$export(e.exports,"updateRateInterestBearingMint",(()=>d));var a=parcelRequire("5cySN"),o=parcelRequire("cu2nn"),n=parcelRequire("14mYq"),s=parcelRequire("bzMcM"),r=parcelRequire("01c0M"),i=parcelRequire("hQrOu");async function c(e,t,o,c,d,l,m,u=a.Keypair.generate(),p,h=n.TOKEN_2022_PROGRAM_ID){const g=(0,r.getMintLen)([r.ExtensionType.InterestBearingConfig]),b=await e.getMinimumBalanceForRentExemption(g),f=(new(0,a.Transaction)).add(a.SystemProgram.createAccount({fromPubkey:t.publicKey,newAccountPubkey:u.publicKey,space:g,lamports:b,programId:h}),(0,i.createInitializeInterestBearingMintInstruction)(u.publicKey,d,l,h),(0,s.createInitializeMintInstruction)(u.publicKey,m,o,c,h));return await(0,a.sendAndConfirmTransaction)(e,f,[t,u],p),u.publicKey}async function d(e,t,s,r,c,d=[],l,m=n.TOKEN_2022_PROGRAM_ID){const[u,p]=(0,o.getSigners)(r,d),h=(new(0,a.Transaction)).add((0,i.createUpdateRateInterestBearingMintInstruction)(s,u,c,p,m));return await(0,a.sendAndConfirmTransaction)(e,h,[t,r,...p],l)}})),parcelRequire.register("bzMcM",(function(e,t){$parcel$export(e.exports,"initializeMintInstructionData",(()=>d)),$parcel$export(e.exports,"createInitializeMintInstruction",(()=>l)),$parcel$export(e.exports,"decodeInitializeMintInstruction",(()=>m)),$parcel$export(e.exports,"decodeInitializeMintInstructionUnchecked",(()=>u));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("decimals"),(0,o.publicKey)("mintAuthority"),(0,a.u8)("freezeAuthorityOption"),(0,o.publicKey)("freezeAuthority")]);function l(e,t,a,o,r=s.TOKEN_PROGRAM_ID){const l=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],m=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.InitializeMint,decimals:t,mintAuthority:a,freezeAuthorityOption:o?1:0,freezeAuthority:o||new(0,n.PublicKey)(0)},m),new(0,n.TransactionInstruction)({keys:l,programId:r,data:m})}function m(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==d.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{mint:a,rent:o},data:n}=u(e);if(n.instruction!==i.TokenInstruction.InitializeMint)throw new(0,r.TokenInvalidInstructionTypeError);if(!a||!o)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:a,rent:o},data:n}}function u({programId:e,keys:[t,a],data:o}){const{instruction:n,decimals:s,mintAuthority:r,freezeAuthorityOption:i,freezeAuthority:c}=d.decode(o);return{programId:e,keys:{mint:t,rent:a},data:{instruction:n,decimals:s,mintAuthority:r,freezeAuthority:i?c:null}}}})),parcelRequire.register("hQrOu",(function(e,t){$parcel$export(e.exports,"InterestBearingMintInstruction",(()=>o)),$parcel$export(e.exports,"interestBearingMintInitializeInstructionData",(()=>m)),$parcel$export(e.exports,"interestBearingMintUpdateRateInstructionData",(()=>u)),$parcel$export(e.exports,"createInitializeInterestBearingMintInstruction",(()=>p)),$parcel$export(e.exports,"createUpdateRateInterestBearingMintInstruction",(()=>h));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o,n,s=parcelRequire("gKWJK"),r=parcelRequire("5cySN"),i=parcelRequire("14mYq"),c=parcelRequire("ht9NM"),d=parcelRequire("eqQA8"),l=parcelRequire("ajHSv").Buffer;(n=o||(o={}))[n.Initialize=0]="Initialize",n[n.UpdateRate=1]="UpdateRate";const m=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("interestBearingMintInstruction"),(0,s.publicKey)("rateAuthority"),(0,a.s16)("rate")]),u=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("interestBearingMintInstruction"),(0,a.s16)("rate")]);function p(e,t,a,n=i.TOKEN_2022_PROGRAM_ID){const s=[{pubkey:e,isSigner:!1,isWritable:!0}],c=l.alloc(m.span);return m.encode({instruction:d.TokenInstruction.InterestBearingMintExtension,interestBearingMintInstruction:o.Initialize,rateAuthority:t,rate:a},c),new(0,r.TransactionInstruction)({keys:s,programId:n,data:c})}function h(e,t,a,n=[],s=i.TOKEN_2022_PROGRAM_ID){const m=(0,c.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!n.length,isWritable:!1}],t,n),p=l.alloc(u.span);return u.encode({instruction:d.TokenInstruction.InterestBearingMintExtension,interestBearingMintInstruction:o.UpdateRate,rate:a},p),new(0,r.TransactionInstruction)({keys:m,programId:s,data:p})}})),parcelRequire.register("lAzeM",(function(e,t){var a=parcelRequire("aRBUr"),o=parcelRequire("5WOb1"),n=parcelRequire("6Ao4C");$parcel$exportWildcard(e.exports,a),$parcel$exportWildcard(e.exports,o),$parcel$exportWildcard(e.exports,n)})),parcelRequire.register("aRBUr",(function(e,t){$parcel$export(e.exports,"enableRequiredMemoTransfers",(()=>r)),$parcel$export(e.exports,"disableRequiredMemoTransfers",(()=>i));var a=parcelRequire("5cySN"),o=parcelRequire("cu2nn"),n=parcelRequire("14mYq"),s=parcelRequire("5WOb1");async function r(e,t,r,i,c=[],d,l=n.TOKEN_2022_PROGRAM_ID){const[m,u]=(0,o.getSigners)(i,c),p=(new(0,a.Transaction)).add((0,s.createEnableRequiredMemoTransfersInstruction)(r,m,u,l));return await(0,a.sendAndConfirmTransaction)(e,p,[t,...u],d)}async function i(e,t,r,i,c=[],d,l=n.TOKEN_2022_PROGRAM_ID){const[m,u]=(0,o.getSigners)(i,c),p=(new(0,a.Transaction)).add((0,s.createDisableRequiredMemoTransfersInstruction)(r,m,u,l));return await(0,a.sendAndConfirmTransaction)(e,p,[t,...u],d)}})),parcelRequire.register("5WOb1",(function(e,t){$parcel$export(e.exports,"MemoTransferInstruction",(()=>a)),$parcel$export(e.exports,"memoTransferInstructionData",(()=>m)),$parcel$export(e.exports,"createEnableRequiredMemoTransfersInstruction",(()=>u)),$parcel$export(e.exports,"createDisableRequiredMemoTransfersInstruction",(()=>p));var a,o,n=parcelRequire("crvhM"),s=parcelRequire("5cySN"),r=parcelRequire("14mYq"),i=parcelRequire("eoQMl"),c=parcelRequire("ht9NM"),d=parcelRequire("eqQA8"),l=parcelRequire("ajHSv").Buffer;(o=a||(a={}))[o.Enable=0]="Enable",o[o.Disable=1]="Disable";const m=(0,n.struct)([(0,n.u8)("instruction"),(0,n.u8)("memoTransferInstruction")]);function u(e,t,o=[],n=r.TOKEN_2022_PROGRAM_ID){return h(a.Enable,e,t,o,n)}function p(e,t,o=[],n=r.TOKEN_2022_PROGRAM_ID){return h(a.Disable,e,t,o,n)}function h(e,t,a,o,n){if(!(0,r.programSupportsExtensions)(n))throw new(0,i.TokenUnsupportedInstructionError);const u=(0,c.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0}],a,o),p=l.alloc(m.span);return m.encode({instruction:d.TokenInstruction.MemoTransferExtension,memoTransferInstruction:e},p),new(0,s.TransactionInstruction)({keys:u,programId:n,data:p})}})),parcelRequire.register("hlJWu",(function(e,t){var a=parcelRequire("04LKV"),o=parcelRequire("bMdjz"),n=parcelRequire("2rqSb");$parcel$exportWildcard(e.exports,a),$parcel$exportWildcard(e.exports,o),$parcel$exportWildcard(e.exports,n)})),parcelRequire.register("04LKV",(function(e,t){$parcel$export(e.exports,"transferCheckedWithFee",(()=>r)),$parcel$export(e.exports,"withdrawWithheldTokensFromMint",(()=>i)),$parcel$export(e.exports,"withdrawWithheldTokensFromAccounts",(()=>c)),$parcel$export(e.exports,"harvestWithheldTokensToMint",(()=>d));var a=parcelRequire("5cySN"),o=parcelRequire("cu2nn"),n=parcelRequire("14mYq"),s=parcelRequire("bMdjz");async function r(e,t,r,i,c,d,l,m,u,p=[],h,g=n.TOKEN_2022_PROGRAM_ID){const[b,f]=(0,o.getSigners)(d,p),y=(new(0,a.Transaction)).add((0,s.createTransferCheckedWithFeeInstruction)(r,i,c,b,l,m,u,p,g));return await(0,a.sendAndConfirmTransaction)(e,y,[t,...f],h)}async function i(e,t,r,i,c,d=[],l,m=n.TOKEN_2022_PROGRAM_ID){const[u,p]=(0,o.getSigners)(c,d),h=(new(0,a.Transaction)).add((0,s.createWithdrawWithheldTokensFromMintInstruction)(r,i,u,p,m));return await(0,a.sendAndConfirmTransaction)(e,h,[t,...p],l)}async function c(e,t,r,i,c,d,l,m,u=n.TOKEN_2022_PROGRAM_ID){const[p,h]=(0,o.getSigners)(c,d),g=(new(0,a.Transaction)).add((0,s.createWithdrawWithheldTokensFromAccountsInstruction)(r,i,p,h,l,u));return await(0,a.sendAndConfirmTransaction)(e,g,[t,...h],m)}async function d(e,t,o,r,i,c=n.TOKEN_2022_PROGRAM_ID){const d=(new(0,a.Transaction)).add((0,s.createHarvestWithheldTokensToMintInstruction)(o,r,c));return await(0,a.sendAndConfirmTransaction)(e,d,[t],i)}})),parcelRequire.register("bMdjz",(function(e,t){$parcel$export(e.exports,"TransferFeeInstruction",(()=>o)),$parcel$export(e.exports,"initializeTransferFeeConfigInstructionData",(()=>p)),$parcel$export(e.exports,"createInitializeTransferFeeConfigInstruction",(()=>h)),$parcel$export(e.exports,"decodeInitializeTransferFeeConfigInstruction",(()=>g)),$parcel$export(e.exports,"decodeInitializeTransferFeeConfigInstructionUnchecked",(()=>b)),$parcel$export(e.exports,"transferCheckedWithFeeInstructionData",(()=>f)),$parcel$export(e.exports,"createTransferCheckedWithFeeInstruction",(()=>y)),$parcel$export(e.exports,"decodeTransferCheckedWithFeeInstruction",(()=>$)),$parcel$export(e.exports,"decodeTransferCheckedWithFeeInstructionUnchecked",(()=>w)),$parcel$export(e.exports,"withdrawWithheldTokensFromMintInstructionData",(()=>k)),$parcel$export(e.exports,"createWithdrawWithheldTokensFromMintInstruction",(()=>v)),$parcel$export(e.exports,"decodeWithdrawWithheldTokensFromMintInstruction",(()=>x)),$parcel$export(e.exports,"decodeWithdrawWithheldTokensFromMintInstructionUnchecked",(()=>R)),$parcel$export(e.exports,"withdrawWithheldTokensFromAccountsInstructionData",(()=>A)),$parcel$export(e.exports,"createWithdrawWithheldTokensFromAccountsInstruction",(()=>I)),$parcel$export(e.exports,"decodeWithdrawWithheldTokensFromAccountsInstruction",(()=>S)),$parcel$export(e.exports,"decodeWithdrawWithheldTokensFromAccountsInstructionUnchecked",(()=>E)),$parcel$export(e.exports,"harvestWithheldTokensToMintInstructionData",(()=>T)),$parcel$export(e.exports,"createHarvestWithheldTokensToMintInstruction",(()=>C)),$parcel$export(e.exports,"decodeHarvestWithheldTokensToMintInstruction",(()=>U)),$parcel$export(e.exports,"decodeHarvestWithheldTokensToMintInstructionUnchecked",(()=>M));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o,n,s=parcelRequire("gKWJK"),r=parcelRequire("hDWD6"),i=parcelRequire("5cySN"),c=parcelRequire("14mYq"),d=parcelRequire("eoQMl"),l=parcelRequire("ht9NM"),m=parcelRequire("eqQA8"),u=parcelRequire("ajHSv").Buffer;(n=o||(o={}))[n.InitializeTransferFeeConfig=0]="InitializeTransferFeeConfig",n[n.TransferCheckedWithFee=1]="TransferCheckedWithFee",n[n.WithdrawWithheldTokensFromMint=2]="WithdrawWithheldTokensFromMint",n[n.WithdrawWithheldTokensFromAccounts=3]="WithdrawWithheldTokensFromAccounts",n[n.HarvestWithheldTokensToMint=4]="HarvestWithheldTokensToMint",n[n.SetTransferFee=5]="SetTransferFee";const p=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("transferFeeInstruction"),(0,a.u8)("transferFeeConfigAuthorityOption"),(0,s.publicKey)("transferFeeConfigAuthority"),(0,a.u8)("withdrawWithheldAuthorityOption"),(0,s.publicKey)("withdrawWithheldAuthority"),(0,a.u16)("transferFeeBasisPoints"),(0,r.u64)("maximumFee")]);function h(e,t,a,n,s,r=c.TOKEN_2022_PROGRAM_ID){if(!(0,c.programSupportsExtensions)(r))throw new(0,d.TokenUnsupportedInstructionError);const l=[{pubkey:e,isSigner:!1,isWritable:!0}],h=u.alloc(p.span);return p.encode({instruction:m.TokenInstruction.TransferFeeExtension,transferFeeInstruction:o.InitializeTransferFeeConfig,transferFeeConfigAuthorityOption:t?1:0,transferFeeConfigAuthority:t||new(0,i.PublicKey)(0),withdrawWithheldAuthorityOption:a?1:0,withdrawWithheldAuthority:a||new(0,i.PublicKey)(0),transferFeeBasisPoints:n,maximumFee:s},h),new(0,i.TransactionInstruction)({keys:l,programId:r,data:h})}function g(e,t){if(!e.programId.equals(t))throw new(0,d.TokenInvalidInstructionProgramError);if(e.data.length!==p.span)throw new(0,d.TokenInvalidInstructionDataError);const{keys:{mint:a},data:n}=b(e);if(n.instruction!==m.TokenInstruction.TransferFeeExtension||n.transferFeeInstruction!==o.InitializeTransferFeeConfig)throw new(0,d.TokenInvalidInstructionTypeError);if(!a)throw new(0,d.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:a},data:n}}function b({programId:e,keys:[t],data:a}){const{instruction:o,transferFeeInstruction:n,transferFeeConfigAuthorityOption:s,transferFeeConfigAuthority:r,withdrawWithheldAuthorityOption:i,withdrawWithheldAuthority:c,transferFeeBasisPoints:d,maximumFee:l}=p.decode(a);return{programId:e,keys:{mint:t},data:{instruction:o,transferFeeInstruction:n,transferFeeConfigAuthority:s?r:null,withdrawWithheldAuthority:i?c:null,transferFeeBasisPoints:d,maximumFee:l}}}const f=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("transferFeeInstruction"),(0,r.u64)("amount"),(0,a.u8)("decimals"),(0,r.u64)("fee")]);function y(e,t,a,n,s,r,p,h=[],g=c.TOKEN_2022_PROGRAM_ID){if(!(0,c.programSupportsExtensions)(g))throw new(0,d.TokenUnsupportedInstructionError);const b=u.alloc(f.span);f.encode({instruction:m.TokenInstruction.TransferFeeExtension,transferFeeInstruction:o.TransferCheckedWithFee,amount:s,decimals:r,fee:p},b);const y=(0,l.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!1,isWritable:!0}],n,h);return new(0,i.TransactionInstruction)({keys:y,programId:g,data:b})}function $(e,t){if(!e.programId.equals(t))throw new(0,d.TokenInvalidInstructionProgramError);if(e.data.length!==f.span)throw new(0,d.TokenInvalidInstructionDataError);const{keys:{source:a,mint:n,destination:s,authority:r,signers:i},data:c}=w(e);if(c.instruction!==m.TokenInstruction.TransferFeeExtension||c.transferFeeInstruction!==o.TransferCheckedWithFee)throw new(0,d.TokenInvalidInstructionTypeError);if(!n)throw new(0,d.TokenInvalidInstructionKeysError);return{programId:t,keys:{source:a,mint:n,destination:s,authority:r,signers:i||null},data:c}}function w({programId:e,keys:[t,a,o,n,...s],data:r}){const{instruction:i,transferFeeInstruction:c,amount:d,decimals:l,fee:m}=f.decode(r);return{programId:e,keys:{source:t,mint:a,destination:o,authority:n,signers:s},data:{instruction:i,transferFeeInstruction:c,amount:d,decimals:l,fee:m}}}const k=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("transferFeeInstruction")]);function v(e,t,a,n=[],s=c.TOKEN_2022_PROGRAM_ID){if(!(0,c.programSupportsExtensions)(s))throw new(0,d.TokenUnsupportedInstructionError);const r=u.alloc(k.span);k.encode({instruction:m.TokenInstruction.TransferFeeExtension,transferFeeInstruction:o.WithdrawWithheldTokensFromMint},r);const p=(0,l.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],a,n);return new(0,i.TransactionInstruction)({keys:p,programId:s,data:r})}function x(e,t){if(!e.programId.equals(t))throw new(0,d.TokenInvalidInstructionProgramError);if(e.data.length!==k.span)throw new(0,d.TokenInvalidInstructionDataError);const{keys:{mint:a,destination:n,authority:s,signers:r},data:i}=R(e);if(i.instruction!==m.TokenInstruction.TransferFeeExtension||i.transferFeeInstruction!==o.WithdrawWithheldTokensFromMint)throw new(0,d.TokenInvalidInstructionTypeError);if(!a)throw new(0,d.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:a,destination:n,authority:s,signers:r||null},data:i}}function R({programId:e,keys:[t,a,o,...n],data:s}){const{instruction:r,transferFeeInstruction:i}=k.decode(s);return{programId:e,keys:{mint:t,destination:a,authority:o,signers:n},data:{instruction:r,transferFeeInstruction:i}}}const A=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("transferFeeInstruction"),(0,a.u8)("numTokenAccounts")]);function I(e,t,a,n,s,r=c.TOKEN_2022_PROGRAM_ID){if(!(0,c.programSupportsExtensions)(r))throw new(0,d.TokenUnsupportedInstructionError);const p=u.alloc(A.span);A.encode({instruction:m.TokenInstruction.TransferFeeExtension,transferFeeInstruction:o.WithdrawWithheldTokensFromAccounts,numTokenAccounts:s.length},p);const h=(0,l.addSigners)([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],a,n);for(const e of s)h.push({pubkey:e,isSigner:!1,isWritable:!0});return new(0,i.TransactionInstruction)({keys:h,programId:r,data:p})}function S(e,t){if(!e.programId.equals(t))throw new(0,d.TokenInvalidInstructionProgramError);if(e.data.length!==A.span)throw new(0,d.TokenInvalidInstructionDataError);const{keys:{mint:a,destination:n,authority:s,signers:r,sources:i},data:c}=E(e);if(c.instruction!==m.TokenInstruction.TransferFeeExtension||c.transferFeeInstruction!==o.WithdrawWithheldTokensFromAccounts)throw new(0,d.TokenInvalidInstructionTypeError);if(!a)throw new(0,d.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:a,destination:n,authority:s,signers:r||null,sources:i||null},data:c}}function E({programId:e,keys:t,data:a}){const{instruction:o,transferFeeInstruction:n,numTokenAccounts:s}=A.decode(a),[r,i,c,d,l]=[t[0],t[1],t[2],t.slice(3,3+s),t.slice(-1*s)];return{programId:e,keys:{mint:r,destination:i,authority:c,signers:d,sources:l},data:{instruction:o,transferFeeInstruction:n,numTokenAccounts:s}}}const T=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("transferFeeInstruction")]);function C(e,t,a=c.TOKEN_2022_PROGRAM_ID){if(!(0,c.programSupportsExtensions)(a))throw new(0,d.TokenUnsupportedInstructionError);const n=u.alloc(T.span);T.encode({instruction:m.TokenInstruction.TransferFeeExtension,transferFeeInstruction:o.HarvestWithheldTokensToMint},n);const s=[];s.push({pubkey:e,isSigner:!1,isWritable:!0});for(const e of t)s.push({pubkey:e,isSigner:!1,isWritable:!0});return new(0,i.TransactionInstruction)({keys:s,programId:a,data:n})}function U(e,t){if(!e.programId.equals(t))throw new(0,d.TokenInvalidInstructionProgramError);if(e.data.length!==T.span)throw new(0,d.TokenInvalidInstructionDataError);const{keys:{mint:a,sources:n},data:s}=M(e);if(s.instruction!==m.TokenInstruction.TransferFeeExtension||s.transferFeeInstruction!==o.HarvestWithheldTokensToMint)throw new(0,d.TokenInvalidInstructionTypeError);if(!a)throw new(0,d.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:a,sources:n},data:s}}function M({programId:e,keys:[t,...a],data:o}){const{instruction:n,transferFeeInstruction:s}=T.decode(o);return{programId:e,keys:{mint:t,sources:a},data:{instruction:n,transferFeeInstruction:s}}}})),parcelRequire.register("l0pJG",(function(e,t){var a=parcelRequire("cMAzE"),o=parcelRequire("kQqe7"),n=parcelRequire("eqQA8"),s=parcelRequire("bzMcM"),r=parcelRequire("QIgte"),i=parcelRequire("8jbPC"),c=parcelRequire("75c55"),d=parcelRequire("l5v8o"),l=parcelRequire("dsbrT"),m=parcelRequire("i9cJF"),u=parcelRequire("j3KyH"),p=parcelRequire("gpAjs"),h=parcelRequire("71uuD"),g=parcelRequire("b1rWP"),b=parcelRequire("7Vr9c"),f=parcelRequire("jZb0v"),y=parcelRequire("dGBPS"),$=parcelRequire("k8TJf"),w=parcelRequire("kp5se"),k=parcelRequire("eZBKw"),v=parcelRequire("gKOEj"),x=parcelRequire("flzav"),R=parcelRequire("gpjQ3"),A=parcelRequire("iM7ur"),I=parcelRequire("2vBr6"),S=parcelRequire("8JoUz"),E=parcelRequire("2oep9"),T=parcelRequire("6Z8XI"),C=parcelRequire("8uOHV"),U=parcelRequire("dSL4n"),M=parcelRequire("010g9"),D=parcelRequire("bYpOh");$parcel$exportWildcard(e.exports,a),$parcel$exportWildcard(e.exports,o),$parcel$exportWildcard(e.exports,n),$parcel$exportWildcard(e.exports,s),$parcel$exportWildcard(e.exports,r),$parcel$exportWildcard(e.exports,i),$parcel$exportWildcard(e.exports,c),$parcel$exportWildcard(e.exports,d),$parcel$exportWildcard(e.exports,l),$parcel$exportWildcard(e.exports,m),$parcel$exportWildcard(e.exports,u),$parcel$exportWildcard(e.exports,p),$parcel$exportWildcard(e.exports,h),$parcel$exportWildcard(e.exports,g),$parcel$exportWildcard(e.exports,b),$parcel$exportWildcard(e.exports,f),$parcel$exportWildcard(e.exports,y),$parcel$exportWildcard(e.exports,$),$parcel$exportWildcard(e.exports,w),$parcel$exportWildcard(e.exports,k),$parcel$exportWildcard(e.exports,v),$parcel$exportWildcard(e.exports,x),$parcel$exportWildcard(e.exports,R),$parcel$exportWildcard(e.exports,A),$parcel$exportWildcard(e.exports,I),$parcel$exportWildcard(e.exports,S),$parcel$exportWildcard(e.exports,E),$parcel$exportWildcard(e.exports,T),$parcel$exportWildcard(e.exports,C),$parcel$exportWildcard(e.exports,U),$parcel$exportWildcard(e.exports,M),$parcel$exportWildcard(e.exports,D)})),parcelRequire.register("kQqe7",(function(e,t){$parcel$export(e.exports,"decodeInstruction",(()=>E)),$parcel$export(e.exports,"isInitializeMintInstruction",(()=>T)),$parcel$export(e.exports,"isInitializeAccountInstruction",(()=>C)),$parcel$export(e.exports,"isInitializeMultisigInstruction",(()=>U)),$parcel$export(e.exports,"isTransferInstruction",(()=>M)),$parcel$export(e.exports,"isApproveInstruction",(()=>D)),$parcel$export(e.exports,"isRevokeInstruction",(()=>N)),$parcel$export(e.exports,"isSetAuthorityInstruction",(()=>P)),$parcel$export(e.exports,"isMintToInstruction",(()=>B)),$parcel$export(e.exports,"isBurnInstruction",(()=>L)),$parcel$export(e.exports,"isCloseAccountInstruction",(()=>F)),$parcel$export(e.exports,"isFreezeAccountInstruction",(()=>K)),$parcel$export(e.exports,"isThawAccountInstruction",(()=>G)),$parcel$export(e.exports,"isTransferCheckedInstruction",(()=>j)),$parcel$export(e.exports,"isApproveCheckedInstruction",(()=>q)),$parcel$export(e.exports,"isMintToCheckedInstruction",(()=>W)),$parcel$export(e.exports,"isBurnCheckedInstruction",(()=>z)),$parcel$export(e.exports,"isInitializeAccount2Instruction",(()=>H)),$parcel$export(e.exports,"isSyncNativeInstruction",(()=>_)),$parcel$export(e.exports,"isInitializeAccount3Instruction",(()=>V)),$parcel$export(e.exports,"isInitializeMint2Instruction",(()=>Y)),$parcel$export(e.exports,"isAmountToUiAmountInstruction",(()=>J)),$parcel$export(e.exports,"isUiamountToAmountInstruction",(()=>X));var a=parcelRequire("crvhM"),o=parcelRequire("14mYq"),n=parcelRequire("eoQMl"),s=parcelRequire("8JoUz"),r=parcelRequire("l5v8o"),i=parcelRequire("dGBPS"),c=parcelRequire("gpAjs"),d=parcelRequire("kp5se"),l=parcelRequire("71uuD"),m=parcelRequire("b1rWP"),u=parcelRequire("QIgte"),p=parcelRequire("eZBKw"),h=parcelRequire("flzav"),g=parcelRequire("bzMcM"),b=parcelRequire("iM7ur"),f=parcelRequire("8jbPC"),y=parcelRequire("j3KyH"),$=parcelRequire("k8TJf"),w=parcelRequire("dsbrT"),k=parcelRequire("i9cJF"),v=parcelRequire("gKOEj"),x=parcelRequire("7Vr9c"),R=parcelRequire("75c55"),A=parcelRequire("jZb0v"),I=parcelRequire("eqQA8"),S=parcelRequire("2oep9");function E(e,t=o.TOKEN_PROGRAM_ID){if(!e.data.length)throw new(0,n.TokenInvalidInstructionDataError);const E=(0,a.u8)().decode(e.data);if(E===I.TokenInstruction.InitializeMint)return(0,g.decodeInitializeMintInstruction)(e,t);if(E===I.TokenInstruction.InitializeAccount)return(0,u.decodeInitializeAccountInstruction)(e,t);if(E===I.TokenInstruction.InitializeMultisig)return(0,f.decodeInitializeMultisigInstruction)(e,t);if(E===I.TokenInstruction.Transfer)return(0,R.decodeTransferInstruction)(e,t);if(E===I.TokenInstruction.Approve)return(0,r.decodeApproveInstruction)(e,t);if(E===I.TokenInstruction.Revoke)return(0,w.decodeRevokeInstruction)(e,t);if(E===I.TokenInstruction.SetAuthority)return(0,k.decodeSetAuthorityInstruction)(e,t);if(E===I.TokenInstruction.MintTo)return(0,y.decodeMintToInstruction)(e,t);if(E===I.TokenInstruction.Burn)return(0,c.decodeBurnInstruction)(e,t);if(E===I.TokenInstruction.CloseAccount)return(0,l.decodeCloseAccountInstruction)(e,t);if(E===I.TokenInstruction.FreezeAccount)return(0,m.decodeFreezeAccountInstruction)(e,t);if(E===I.TokenInstruction.ThawAccount)return(0,x.decodeThawAccountInstruction)(e,t);if(E===I.TokenInstruction.TransferChecked)return(0,A.decodeTransferCheckedInstruction)(e,t);if(E===I.TokenInstruction.ApproveChecked)return(0,i.decodeApproveCheckedInstruction)(e,t);if(E===I.TokenInstruction.MintToChecked)return(0,$.decodeMintToCheckedInstruction)(e,t);if(E===I.TokenInstruction.BurnChecked)return(0,d.decodeBurnCheckedInstruction)(e,t);if(E===I.TokenInstruction.InitializeAccount2)return(0,p.decodeInitializeAccount2Instruction)(e,t);if(E===I.TokenInstruction.SyncNative)return(0,v.decodeSyncNativeInstruction)(e,t);if(E===I.TokenInstruction.InitializeAccount3)return(0,h.decodeInitializeAccount3Instruction)(e,t);if(E===I.TokenInstruction.InitializeMint2)return(0,b.decodeInitializeMint2Instruction)(e,t);if(E===I.TokenInstruction.AmountToUiAmount)return(0,s.decodeAmountToUiAmountInstruction)(e,t);if(E===I.TokenInstruction.UiAmountToAmount)return(0,S.decodeUiAmountToAmountInstruction)(e,t);if(E===I.TokenInstruction.InitializeMultisig2)throw new(0,n.TokenInvalidInstructionTypeError);throw new(0,n.TokenInvalidInstructionTypeError)}function T(e){return e.data.instruction===I.TokenInstruction.InitializeMint}function C(e){return e.data.instruction===I.TokenInstruction.InitializeAccount}function U(e){return e.data.instruction===I.TokenInstruction.InitializeMultisig}function M(e){return e.data.instruction===I.TokenInstruction.Transfer}function D(e){return e.data.instruction===I.TokenInstruction.Approve}function N(e){return e.data.instruction===I.TokenInstruction.Revoke}function P(e){return e.data.instruction===I.TokenInstruction.SetAuthority}function B(e){return e.data.instruction===I.TokenInstruction.MintTo}function L(e){return e.data.instruction===I.TokenInstruction.Burn}function F(e){return e.data.instruction===I.TokenInstruction.CloseAccount}function K(e){return e.data.instruction===I.TokenInstruction.FreezeAccount}function G(e){return e.data.instruction===I.TokenInstruction.ThawAccount}function j(e){return e.data.instruction===I.TokenInstruction.TransferChecked}function q(e){return e.data.instruction===I.TokenInstruction.ApproveChecked}function W(e){return e.data.instruction===I.TokenInstruction.MintToChecked}function z(e){return e.data.instruction===I.TokenInstruction.BurnChecked}function H(e){return e.data.instruction===I.TokenInstruction.InitializeAccount2}function _(e){return e.data.instruction===I.TokenInstruction.SyncNative}function V(e){return e.data.instruction===I.TokenInstruction.InitializeAccount3}function Y(e){return e.data.instruction===I.TokenInstruction.InitializeMint2}function J(e){return e.data.instruction===I.TokenInstruction.AmountToUiAmount}function X(e){return e.data.instruction===I.TokenInstruction.UiAmountToAmount}})),parcelRequire.register("eZBKw",(function(e,t){$parcel$export(e.exports,"initializeAccount2InstructionData",(()=>d)),$parcel$export(e.exports,"createInitializeAccount2Instruction",(()=>l)),$parcel$export(e.exports,"decodeInitializeAccount2Instruction",(()=>m)),$parcel$export(e.exports,"decodeInitializeAccount2InstructionUnchecked",(()=>u));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction"),(0,o.publicKey)("owner")]);function l(e,t,a,o=s.TOKEN_PROGRAM_ID){const r=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:n.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],l=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.InitializeAccount2,owner:a},l),new(0,n.TransactionInstruction)({keys:r,programId:o,data:l})}function m(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==d.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{account:a,mint:o,rent:n},data:c}=u(e);if(c.instruction!==i.TokenInstruction.InitializeAccount2)throw new(0,r.TokenInvalidInstructionTypeError);if(!a||!o||!n)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,mint:o,rent:n},data:c}}function u({programId:e,keys:[t,a,o],data:n}){return{programId:e,keys:{account:t,mint:a,rent:o},data:d.decode(n)}}})),parcelRequire.register("flzav",(function(e,t){$parcel$export(e.exports,"initializeAccount3InstructionData",(()=>d)),$parcel$export(e.exports,"createInitializeAccount3Instruction",(()=>l)),$parcel$export(e.exports,"decodeInitializeAccount3Instruction",(()=>m)),$parcel$export(e.exports,"decodeInitializeAccount3InstructionUnchecked",(()=>u));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction"),(0,o.publicKey)("owner")]);function l(e,t,a,o=s.TOKEN_PROGRAM_ID){const r=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1}],l=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.InitializeAccount3,owner:a},l),new(0,n.TransactionInstruction)({keys:r,programId:o,data:l})}function m(e,t=s.TOKEN_PROGRAM_ID){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==d.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{account:a,mint:o},data:n}=u(e);if(n.instruction!==i.TokenInstruction.InitializeAccount3)throw new(0,r.TokenInvalidInstructionTypeError);if(!a||!o)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a,mint:o},data:n}}function u({programId:e,keys:[t,a],data:o}){return{programId:e,keys:{account:t,mint:a},data:d.decode(o)}}})),parcelRequire.register("gpjQ3",(function(e,t){})),parcelRequire.register("2vBr6",(function(e,t){$parcel$export(e.exports,"initializeImmutableOwnerInstructionData",(()=>i)),$parcel$export(e.exports,"createInitializeImmutableOwnerInstruction",(()=>c)),$parcel$export(e.exports,"decodeInitializeImmutableOwnerInstruction",(()=>d)),$parcel$export(e.exports,"decodeInitializeImmutableOwnerInstructionUnchecked",(()=>l));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("eoQMl"),s=parcelRequire("eqQA8"),r=parcelRequire("ajHSv").Buffer;const i=(0,a.struct)([(0,a.u8)("instruction")]);function c(e,t){const a=[{pubkey:e,isSigner:!1,isWritable:!0}],n=r.alloc(i.span);return i.encode({instruction:s.TokenInstruction.InitializeImmutableOwner},n),new(0,o.TransactionInstruction)({keys:a,programId:t,data:n})}function d(e,t){if(!e.programId.equals(t))throw new(0,n.TokenInvalidInstructionProgramError);if(e.data.length!==i.span)throw new(0,n.TokenInvalidInstructionDataError);const{keys:{account:a},data:o}=l(e);if(o.instruction!==s.TokenInstruction.InitializeImmutableOwner)throw new(0,n.TokenInvalidInstructionTypeError);if(!a)throw new(0,n.TokenInvalidInstructionKeysError);return{programId:t,keys:{account:a},data:o}}function l({programId:e,keys:[t],data:a}){const{instruction:o}=i.decode(a);return{programId:e,keys:{account:t},data:{instruction:o}}}})),parcelRequire.register("6Z8XI",(function(e,t){$parcel$export(e.exports,"initializeMintCloseAuthorityInstructionData",(()=>d)),$parcel$export(e.exports,"createInitializeMintCloseAuthorityInstruction",(()=>l)),$parcel$export(e.exports,"decodeInitializeMintCloseAuthorityInstruction",(()=>m)),$parcel$export(e.exports,"decodeInitializeMintCloseAuthorityInstructionUnchecked",(()=>u));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("5cySN"),s=parcelRequire("14mYq"),r=parcelRequire("eoQMl"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction"),(0,a.u8)("closeAuthorityOption"),(0,o.publicKey)("closeAuthority")]);function l(e,t,a){if(!(0,s.programSupportsExtensions)(a))throw new(0,r.TokenUnsupportedInstructionError);const o=[{pubkey:e,isSigner:!1,isWritable:!0}],l=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.InitializeMintCloseAuthority,closeAuthorityOption:t?1:0,closeAuthority:t||new(0,n.PublicKey)(0)},l),new(0,n.TransactionInstruction)({keys:o,programId:a,data:l})}function m(e,t){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==d.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{mint:a},data:o}=u(e);if(o.instruction!==i.TokenInstruction.InitializeMintCloseAuthority)throw new(0,r.TokenInvalidInstructionTypeError);if(!a)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:a},data:o}}function u({programId:e,keys:[t],data:a}){const{instruction:o,closeAuthorityOption:n,closeAuthority:s}=d.decode(a);return{programId:e,keys:{mint:t},data:{instruction:o,closeAuthority:n?s:null}}}})),parcelRequire.register("8uOHV",(function(e,t){$parcel$export(e.exports,"createReallocateInstruction",(()=>d));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("eoQMl"),r=parcelRequire("ht9NM"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;function d(e,t,d,l,m=[],u=n.TOKEN_2022_PROGRAM_ID){if(!(0,n.programSupportsExtensions)(u))throw new(0,s.TokenUnsupportedInstructionError);const p=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!0,isWritable:!0},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1}],h=(0,r.addSigners)(p,l,m),g=(0,a.struct)([(0,a.u8)("instruction"),(0,a.seq)((0,a.u16)(),d.length,"extensionTypes")]),b=c.alloc(g.span);return g.encode({instruction:i.TokenInstruction.Reallocate,extensionTypes:d},b),new(0,o.TransactionInstruction)({keys:h,programId:u,data:b})}})),parcelRequire.register("010g9",(function(e,t){$parcel$export(e.exports,"initializeNonTransferableMintInstructionData",(()=>c)),$parcel$export(e.exports,"createInitializeNonTransferableMintInstruction",(()=>d));var a=parcelRequire("crvhM"),o=parcelRequire("5cySN"),n=parcelRequire("14mYq"),s=parcelRequire("eoQMl"),r=parcelRequire("eqQA8"),i=parcelRequire("ajHSv").Buffer;const c=(0,a.struct)([(0,a.u8)("instruction")]);function d(e,t){if(!(0,n.programSupportsExtensions)(t))throw new(0,s.TokenUnsupportedInstructionError);const a=[{pubkey:e,isSigner:!1,isWritable:!0}],d=i.alloc(c.span);return c.encode({instruction:r.TokenInstruction.InitializeNonTransferableMint},d),new(0,o.TransactionInstruction)({keys:a,programId:t,data:d})}})),parcelRequire.register("bYpOh",(function(e,t){$parcel$export(e.exports,"initializePermanentDelegateInstructionData",(()=>d)),$parcel$export(e.exports,"createInitializePermanentDelegateInstruction",(()=>l)),$parcel$export(e.exports,"decodeInitializePermanentDelegateInstruction",(()=>m)),$parcel$export(e.exports,"decodeInitializePermanentDelegateInstructionUnchecked",(()=>u));var a=parcelRequire("crvhM");parcelRequire("8uDQh");var o=parcelRequire("gKWJK"),n=parcelRequire("5cySN"),s=(n=parcelRequire("5cySN"),parcelRequire("14mYq")),r=parcelRequire("eoQMl"),i=parcelRequire("eqQA8"),c=parcelRequire("ajHSv").Buffer;const d=(0,a.struct)([(0,a.u8)("instruction"),(0,o.publicKey)("delegate")]);function l(e,t,a){if(!(0,s.programSupportsExtensions)(a))throw new(0,r.TokenUnsupportedInstructionError);const o=[{pubkey:e,isSigner:!1,isWritable:!0}],l=c.alloc(d.span);return d.encode({instruction:i.TokenInstruction.InitializePermanentDelegate,delegate:t||new(0,n.PublicKey)(0)},l),new(0,n.TransactionInstruction)({keys:o,programId:a,data:l})}function m(e,t){if(!e.programId.equals(t))throw new(0,r.TokenInvalidInstructionProgramError);if(e.data.length!==d.span)throw new(0,r.TokenInvalidInstructionDataError);const{keys:{mint:a},data:o}=u(e);if(o.instruction!==i.TokenInstruction.InitializePermanentDelegate)throw new(0,r.TokenInvalidInstructionTypeError);if(!a)throw new(0,r.TokenInvalidInstructionKeysError);return{programId:t,keys:{mint:a},data:o}}function u({programId:e,keys:[t],data:a}){const{instruction:o,delegate:n}=d.decode(a);return{programId:e,keys:{mint:t},data:{instruction:o,delegate:n}}}})),parcelRequire.register("cEXsZ",(function(e,t){var a=parcelRequire("gDqNs"),o=parcelRequire("6hd0T"),n=parcelRequire("hrR99");$parcel$exportWildcard(e.exports,a),$parcel$exportWildcard(e.exports,o),$parcel$exportWildcard(e.exports,n)})),parcelRequire.register("lEYCF",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createBurnInstruction=e.exports.burnInstructionDiscriminator=e.exports.burnStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.burnStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.uniformFixedSizeArray(r.u8,8)]],"BurnInstructionArgs"),e.exports.burnInstructionDiscriminator=[116,110,29,56,107,219,42,93],e.exports.createBurnInstruction=function(t,a=new i.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[o]=e.exports.burnStruct.serialize({instructionDiscriminator:e.exports.burnInstructionDiscriminator}),n=[{pubkey:t.policy,isWritable:!1,isSigner:!1},{pubkey:t.freezeAuthority,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mintState,isWritable:!0,isSigner:!1},{pubkey:t.from,isWritable:!0,isSigner:!0},{pubkey:t.fromAccount,isWritable:!0,isSigner:!1},{pubkey:t.tokenProgram??s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:t.cmtProgram,isWritable:!1,isSigner:!1},{pubkey:t.instructions,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("37UAz",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createCloseInstruction=e.exports.closeInstructionDiscriminator=e.exports.closeStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.closeStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.uniformFixedSizeArray(r.u8,8)]],"CloseInstructionArgs"),e.exports.closeInstructionDiscriminator=[98,165,201,177,108,65,206,96],e.exports.createCloseInstruction=function(t,a=new i.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[o]=e.exports.closeStruct.serialize({instructionDiscriminator:e.exports.closeInstructionDiscriminator}),n=[{pubkey:t.policy,isWritable:!1,isSigner:!1},{pubkey:t.freezeAuthority,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mintState,isWritable:!0,isSigner:!1},{pubkey:t.from,isWritable:!0,isSigner:!0},{pubkey:t.fromAccount,isWritable:!0,isSigner:!1},{pubkey:t.destination,isWritable:!0,isSigner:!1},{pubkey:t.tokenProgram??s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:t.cmtProgram,isWritable:!1,isSigner:!1},{pubkey:t.instructions,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("2hgAp",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createInitAccountInstruction=e.exports.initAccountInstructionDiscriminator=e.exports.initAccountStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.initAccountStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.uniformFixedSizeArray(r.u8,8)]],"InitAccountInstructionArgs"),e.exports.initAccountInstructionDiscriminator=[169,188,158,199,9,151,101,125],e.exports.createInitAccountInstruction=function(t,a=new i.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[o]=e.exports.initAccountStruct.serialize({instructionDiscriminator:e.exports.initAccountInstructionDiscriminator}),n=[{pubkey:t.policy,isWritable:!1,isSigner:!1},{pubkey:t.freezeAuthority,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mintState,isWritable:!0,isSigner:!1},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.from,isWritable:!1,isSigner:!1},{pubkey:t.fromAccount,isWritable:!0,isSigner:!1},{pubkey:t.tokenProgram??s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:t.systemProgram??i.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.associatedTokenProgram,isWritable:!1,isSigner:!1},{pubkey:t.cmtProgram,isWritable:!1,isSigner:!1},{pubkey:t.instructions,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("fhrRp",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createInitPolicyInstruction=e.exports.initPolicyInstructionDiscriminator=e.exports.initPolicyStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("1i1ud");e.exports.initPolicyStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.uniformFixedSizeArray(s.u8,8)],["arg",i.initPolicyArgBeet]],"InitPolicyInstructionArgs"),e.exports.initPolicyInstructionDiscriminator=[45,234,110,100,209,146,191,86],e.exports.createInitPolicyInstruction=function(t,a,o=new r.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[n]=e.exports.initPolicyStruct.serialize({instructionDiscriminator:e.exports.initPolicyInstructionDiscriminator,...a}),s=[{pubkey:t.policy,isWritable:!0,isSigner:!1},{pubkey:t.uuid,isWritable:!1,isSigner:!1},{pubkey:t.authority,isWritable:!0,isSigner:!0},{pubkey:t.systemProgram??r.SystemProgram.programId,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:s,data:n})}})),parcelRequire.register("1i1ud",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.initPolicyArgBeet=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("bhWtp");e.exports.initPolicyArgBeet=new s.FixableBeetArgsStruct([["jsonRule",s.coption(s.utf8String)],["dynamicRoyalty",s.coption(r.dynamicRoyaltyBeet)]],"InitPolicyArg")})),parcelRequire.register("5HJlp",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createLockInstruction=e.exports.lockInstructionDiscriminator=e.exports.lockStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.lockStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.uniformFixedSizeArray(s.u8,8)]],"LockInstructionArgs"),e.exports.lockInstructionDiscriminator=[21,19,208,43,237,62,255,87],e.exports.createLockInstruction=function(t,a=new r.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[o]=e.exports.lockStruct.serialize({instructionDiscriminator:e.exports.lockInstructionDiscriminator}),n=[{pubkey:t.policy,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mintState,isWritable:!0,isSigner:!1},{pubkey:t.from,isWritable:!1,isSigner:!0},{pubkey:t.fromAccount,isWritable:!1,isSigner:!1},{pubkey:t.to,isWritable:!1,isSigner:!1},{pubkey:t.cmtProgram,isWritable:!1,isSigner:!1},{pubkey:t.instructions,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("2YR3E",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createMigrateToMplInstruction=e.exports.migrateToMplInstructionDiscriminator=e.exports.migrateToMplStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.migrateToMplStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.uniformFixedSizeArray(r.u8,8)]],"MigrateToMplInstructionArgs"),e.exports.migrateToMplInstructionDiscriminator=[111,238,79,93,215,148,36,242],e.exports.createMigrateToMplInstruction=function(t,a=new i.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[o]=e.exports.migrateToMplStruct.serialize({instructionDiscriminator:e.exports.migrateToMplInstructionDiscriminator}),n=[{pubkey:t.policy,isWritable:!1,isSigner:!1},{pubkey:t.freezeAuthority,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.mintState,isWritable:!0,isSigner:!1},{pubkey:t.from,isWritable:!0,isSigner:!0},{pubkey:t.fromAccount,isWritable:!0,isSigner:!1},{pubkey:t.edition,isWritable:!0,isSigner:!1},{pubkey:t.tokenProgram??s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:t.systemProgram??i.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.cmtProgram,isWritable:!1,isSigner:!1},{pubkey:t.instructions,isWritable:!1,isSigner:!1},{pubkey:t.metadataProgram,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("3YBb1",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createMintToInstruction=e.exports.mintToInstructionDiscriminator=e.exports.mintToStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.mintToStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.uniformFixedSizeArray(r.u8,8)]],"MintToInstructionArgs"),e.exports.mintToInstructionDiscriminator=[241,34,48,186,37,179,123,192],e.exports.createMintToInstruction=function(t,a=new i.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[o]=e.exports.mintToStruct.serialize({instructionDiscriminator:e.exports.mintToInstructionDiscriminator}),n=[{pubkey:t.policy,isWritable:!1,isSigner:!1},{pubkey:t.freezeAuthority,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mintState,isWritable:!0,isSigner:!1},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.from,isWritable:!1,isSigner:!1},{pubkey:t.fromAccount,isWritable:!0,isSigner:!1},{pubkey:t.tokenProgram??s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:t.systemProgram??i.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.cmtProgram,isWritable:!1,isSigner:!1},{pubkey:t.instructions,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("l6W1q",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createRevokeInstruction=e.exports.revokeInstructionDiscriminator=e.exports.revokeStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.revokeStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.uniformFixedSizeArray(r.u8,8)]],"RevokeInstructionArgs"),e.exports.revokeInstructionDiscriminator=[170,23,31,34,133,173,93,242],e.exports.createRevokeInstruction=function(t,a=new i.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[o]=e.exports.revokeStruct.serialize({instructionDiscriminator:e.exports.revokeInstructionDiscriminator}),n=[{pubkey:t.policy,isWritable:!1,isSigner:!1},{pubkey:t.freezeAuthority,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mintState,isWritable:!0,isSigner:!1},{pubkey:t.from,isWritable:!1,isSigner:!0},{pubkey:t.fromAccount,isWritable:!0,isSigner:!1},{pubkey:t.tokenProgram??s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:t.cmtProgram,isWritable:!1,isSigner:!1},{pubkey:t.instructions,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("59MSV",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createTransferInstruction=e.exports.transferInstructionDiscriminator=e.exports.transferStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.transferStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.uniformFixedSizeArray(r.u8,8)]],"TransferInstructionArgs"),e.exports.transferInstructionDiscriminator=[163,52,200,231,140,3,69,186],e.exports.createTransferInstruction=function(t,a=new i.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[o]=e.exports.transferStruct.serialize({instructionDiscriminator:e.exports.transferInstructionDiscriminator}),n=[{pubkey:t.policy,isWritable:!1,isSigner:!1},{pubkey:t.freezeAuthority,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mintState,isWritable:!0,isSigner:!1},{pubkey:t.from,isWritable:!1,isSigner:!0},{pubkey:t.fromAccount,isWritable:!0,isSigner:!1},{pubkey:t.to,isWritable:!1,isSigner:!1},{pubkey:t.toAccount,isWritable:!0,isSigner:!1},{pubkey:t.tokenProgram??s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:t.cmtProgram,isWritable:!1,isSigner:!1},{pubkey:t.instructions,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("kByGm",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUnlockInstruction=e.exports.unlockInstructionDiscriminator=e.exports.unlockStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.unlockStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.uniformFixedSizeArray(s.u8,8)]],"UnlockInstructionArgs"),e.exports.unlockInstructionDiscriminator=[101,155,40,21,158,189,56,203],e.exports.createUnlockInstruction=function(t,a=new r.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[o]=e.exports.unlockStruct.serialize({instructionDiscriminator:e.exports.unlockInstructionDiscriminator}),n=[{pubkey:t.policy,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mintState,isWritable:!0,isSigner:!1},{pubkey:t.from,isWritable:!1,isSigner:!0},{pubkey:t.cmtProgram,isWritable:!1,isSigner:!1},{pubkey:t.instructions,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("iaBNI",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUpdatePolicyInstruction=e.exports.updatePolicyInstructionDiscriminator=e.exports.updatePolicyStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("7UBqG");e.exports.updatePolicyStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.uniformFixedSizeArray(s.u8,8)],["arg",i.updatePolicyArgBeet]],"UpdatePolicyInstructionArgs"),e.exports.updatePolicyInstructionDiscriminator=[212,245,246,7,163,151,18,57],e.exports.createUpdatePolicyInstruction=function(t,a,o=new r.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[n]=e.exports.updatePolicyStruct.serialize({instructionDiscriminator:e.exports.updatePolicyInstructionDiscriminator,...a}),s=[{pubkey:t.policy,isWritable:!0,isSigner:!1},{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:t.systemProgram??r.SystemProgram.programId,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:s,data:n})}})),parcelRequire.register("7UBqG",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.updatePolicyArgBeet=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("emyUB"));var i=parcelRequire("bhWtp");e.exports.updatePolicyArgBeet=new s.FixableBeetArgsStruct([["authority",r.publicKey],["jsonRule",s.coption(s.utf8String)],["dynamicRoyalty",s.coption(i.dynamicRoyaltyBeet)]],"UpdatePolicyArg")})),parcelRequire.register("fsypG",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createWrapInstruction=e.exports.wrapInstructionDiscriminator=e.exports.wrapStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.wrapStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.uniformFixedSizeArray(r.u8,8)]],"WrapInstructionArgs"),e.exports.wrapInstructionDiscriminator=[178,40,10,189,228,129,186,140],e.exports.createWrapInstruction=function(t,a=new i.PublicKey("ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E")){const[o]=e.exports.wrapStruct.serialize({instructionDiscriminator:e.exports.wrapInstructionDiscriminator}),n=[{pubkey:t.policy,isWritable:!1,isSigner:!1},{pubkey:t.freezeAuthority,isWritable:!1,isSigner:!0},{pubkey:t.mintAuthority,isWritable:!1,isSigner:!0},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mintState,isWritable:!0,isSigner:!1},{pubkey:t.from,isWritable:!0,isSigner:!0},{pubkey:t.tokenProgram??s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:t.systemProgram??i.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.cmtProgram,isWritable:!1,isSigner:!1},{pubkey:t.instructions,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("2D8s9",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("bhWtp"),e.exports),o(parcelRequire("jsYZQ"),e.exports),o(parcelRequire("1i1ud"),e.exports),o(parcelRequire("7UBqG"),e.exports)})),parcelRequire.register("gdWXh",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.process_tx=e.exports.parsePriceLinearDynamicRoyaltyStruct=e.exports.createDynamicRoyaltyStruct=e.exports.findFreezeAuthorityPk=e.exports.findMintStatePk=e.exports.findPolicyPk=e.exports.CMT_PROGRAM=e.exports.computeBudgetIx=e.exports.LARGER_COMPUTE_UNIT=void 0;var s=parcelRequire("5cySN"),r=parcelRequire("39YmG");const i=n(parcelRequire("39LEJ"));e.exports.LARGER_COMPUTE_UNIT=14e5,e.exports.computeBudgetIx=s.ComputeBudgetProgram.setComputeUnitLimit({units:e.exports.LARGER_COMPUTE_UNIT}),e.exports.CMT_PROGRAM=new s.PublicKey("CMTQqjzH6Anr9XcPVt73EFDTjWkJWPzH7H6DtvhHcyzV");e.exports.findPolicyPk=e=>s.PublicKey.findProgramAddressSync([parcelRequire("39LEJ").utils.bytes.utf8.encode("policy"),e.toBuffer()],r.PROGRAM_ID)[0];e.exports.findMintStatePk=e=>s.PublicKey.findProgramAddressSync([parcelRequire("39LEJ").utils.bytes.utf8.encode("mint_state"),e.toBuffer()],r.PROGRAM_ID)[0];e.exports.findFreezeAuthorityPk=t=>s.PublicKey.findProgramAddressSync([t.toBuffer()],e.exports.CMT_PROGRAM)[0];e.exports.createDynamicRoyaltyStruct=({startPrice:e,endPrice:t,startMultiplierBp:a,endMultiplierBp:o})=>({version:0,kind:0,overrideRoyaltyBp:null,kindPriceLinear:{priceMint:null,startPrice:e,endPrice:t,startMultiplierBp:a,endMultiplierBp:o},reserved0:new Array(32).fill(0),reserved1:new Array(32).fill(0),reserved2:new Array(32).fill(0),reserved3:new Array(32).fill(0)});e.exports.parsePriceLinearDynamicRoyaltyStruct=t=>{if(""===t||"null"===t)return null;const{startPrice:a,endPrice:o,startMultiplierBp:n,endMultiplierBp:s}=JSON.parse(t);return(0,e.exports.createDynamicRoyaltyStruct)({startPrice:new i.BN(a),endPrice:new i.BN(o),startMultiplierBp:Number(n),endMultiplierBp:Number(s)})};e.exports.process_tx=async(e,t,a)=>{const o=new s.Transaction;o.feePayer=a[0].publicKey,o.recentBlockhash=(await e.getLatestBlockhash()).blockhash,o.add(...t),o.partialSign(...a);try{const t=await e.sendRawTransaction(o.serialize());return console.log({sig:t}),await e.confirmTransaction(t),t}catch(e){throw console.error(e),e}}})),parcelRequire.register("1Hl4A",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.cusper=void 0;var a=parcelRequire("lV7jz"),o=parcelRequire("h0jOR");e.exports.cusper=(0,a.initCusper)(o.errorFromCode)})),parcelRequire.register("lV7jz",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("iS8Qz"),e.exports),o(parcelRequire("aSYHn"),e.exports)})),parcelRequire.register("iS8Qz",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.TokenLendingError=e.exports.AnchorError=e.exports.CustomProgramError=e.exports.CusperUnknownError=e.exports.initCusper=e.exports.ErrorResolver=void 0;var s=parcelRequire("d1TiF");const r=n(parcelRequire("jG5Kl"));var i=parcelRequire("3X55s");class c{constructor(e){this.resolveErrorFromCode=e}errorFromCode(e,t,a=!0){let o=null!=this.resolveErrorFromCode?this.resolveErrorFromCode(e):null;return null!=o?this.passPreparedError(o,null!=t?t:this.errorFromCode):(o=m.fromCode(e),null!=o?this.passPreparedError(o,null!=t?t:this.errorFromCode):(o=u.fromCode(e),null!=o?this.passPreparedError(o,null!=t?t:this.errorFromCode):a?(o=new d(e,"CusperUnknownError","cusper does not know this error"),this.passPreparedError(o,null!=t?t:this.errorFromCode)):void 0))}errorFromProgramLogs(e,t=!0){const a=(0,s.errorCodeFromLogs)(e);return null==a?null:this.errorFromCode(a,this.errorFromProgramLogs,t)}throwError(e){const t=null!=e.logs&&this.errorFromProgramLogs(e.logs,!0)||new d(-1,"Error created without logs and thus without error code");throw this.passPreparedError(t,this.throwError)}passPreparedError(e,t){return null==e?null:("function"==typeof Error.captureStackTrace&&Error.captureStackTrace(e,t),e)}}e.exports.ErrorResolver=c,e.exports.initCusper=function(e){return new c(e)};class d extends Error{constructor(e,...t){super(...t),this.code=e,this.name="CusperUnknownError"}}e.exports.CusperUnknownError=d;class l extends Error{constructor(e,t,...a){super(...a),this.code=e,this.name=`CustomProgramError#${t}`}}e.exports.CustomProgramError=l;class m extends Error{constructor(e,t,...a){super(...a),this.code=e,this.name=`AnchorError#${t}`}static fromCode(e){const t=m.errorMap.get(e);return null!=t?new m(t.code,t.name,t.message):null}toString(){return`${this.name}: ${this.message}`}}e.exports.AnchorError=m,m.errorMap=Object.entries(r.LangErrorCode).reduce(((e,[t,a])=>(e.set(a,{code:a,name:t,message:r.LangErrorMessage.get(a)}),e)),new Map);class u extends Error{constructor(e,t,...a){super(...a),this.code=e,this.name=`TokenLendingError#${t}`}static fromCode(e){const t=u.errorMap.get(e);return null!=t?new u(t.code,t.name,t.message):null}toString(){return`${this.name}: ${this.message}`}}e.exports.TokenLendingError=u,u.errorMap=i.tokenLendingErrors})),parcelRequire.register("d1TiF",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.errorCodeFromLogs=void 0;const a=/Custom program error: (0x[a-f0-9]+)/i;e.exports.errorCodeFromLogs=function(e){for(const t of e){const e=t.match(a);if(null==e)continue;const o=e[1];try{return parseInt(o)}catch(e){}}return null}})),parcelRequire.register("jG5Kl",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.LangErrorMessage=e.exports.LangErrorCode=void 0,e.exports.LangErrorCode={InstructionMissing:100,InstructionFallbackNotFound:101,InstructionDidNotDeserialize:102,InstructionDidNotSerialize:103,IdlInstructionStub:1e3,IdlInstructionInvalidProgram:1001,ConstraintMut:2e3,ConstraintHasOne:2001,ConstraintSigner:2002,ConstraintRaw:2003,ConstraintOwner:2004,ConstraintRentExempt:2005,ConstraintSeeds:2006,ConstraintExecutable:2007,ConstraintState:2008,ConstraintAssociated:2009,ConstraintAssociatedInit:2010,ConstraintClose:2011,ConstraintAddress:2012,ConstraintZero:2013,ConstraintTokenMint:2014,ConstraintTokenOwner:2015,ConstraintMintMintAuthority:2016,ConstraintMintFreezeAuthority:2017,ConstraintMintDecimals:2018,ConstraintSpace:2019,AccountDiscriminatorAlreadySet:3e3,AccountDiscriminatorNotFound:3001,AccountDiscriminatorMismatch:3002,AccountDidNotDeserialize:3003,AccountDidNotSerialize:3004,AccountNotEnoughKeys:3005,AccountNotMutable:3006,AccountOwnedByWrongProgram:3007,InvalidProgramId:3008,InvalidProgramExecutable:3009,AccountNotSigner:3010,AccountNotSystemOwned:3011,AccountNotInitialized:3012,AccountNotProgramData:3013,StateInvalidAddress:4e3,Deprecated:5e3},e.exports.LangErrorMessage=new Map([[e.exports.LangErrorCode.InstructionMissing,"8 byte instruction identifier not provided"],[e.exports.LangErrorCode.InstructionFallbackNotFound,"Fallback functions are not supported"],[e.exports.LangErrorCode.InstructionDidNotDeserialize,"The program could not deserialize the given instruction"],[e.exports.LangErrorCode.InstructionDidNotSerialize,"The program could not serialize the given instruction"],[e.exports.LangErrorCode.IdlInstructionStub,"The program was compiled without idl instructions"],[e.exports.LangErrorCode.IdlInstructionInvalidProgram,"The transaction was given an invalid program for the IDL instruction"],[e.exports.LangErrorCode.ConstraintMut,"A mut constraint was violated"],[e.exports.LangErrorCode.ConstraintHasOne,"A has_one constraint was violated"],[e.exports.LangErrorCode.ConstraintSigner,"A signer constraint was violated"],[e.exports.LangErrorCode.ConstraintRaw,"A raw constraint was violated"],[e.exports.LangErrorCode.ConstraintOwner,"An owner constraint was violated"],[e.exports.LangErrorCode.ConstraintRentExempt,"A rent exempt constraint was violated"],[e.exports.LangErrorCode.ConstraintSeeds,"A seeds constraint was violated"],[e.exports.LangErrorCode.ConstraintExecutable,"An executable constraint was violated"],[e.exports.LangErrorCode.ConstraintState,"A state constraint was violated"],[e.exports.LangErrorCode.ConstraintAssociated,"An associated constraint was violated"],[e.exports.LangErrorCode.ConstraintAssociatedInit,"An associated init constraint was violated"],[e.exports.LangErrorCode.ConstraintClose,"A close constraint was violated"],[e.exports.LangErrorCode.ConstraintAddress,"An address constraint was violated"],[e.exports.LangErrorCode.ConstraintZero,"Expected zero account discriminant"],[e.exports.LangErrorCode.ConstraintTokenMint,"A token mint constraint was violated"],[e.exports.LangErrorCode.ConstraintTokenOwner,"A token owner constraint was violated"],[e.exports.LangErrorCode.ConstraintMintMintAuthority,"A mint mint authority constraint was violated"],[e.exports.LangErrorCode.ConstraintMintFreezeAuthority,"A mint freeze authority constraint was violated"],[e.exports.LangErrorCode.ConstraintMintDecimals,"A mint decimals constraint was violated"],[e.exports.LangErrorCode.ConstraintSpace,"A space constraint was violated"],[e.exports.LangErrorCode.AccountDiscriminatorAlreadySet,"The account discriminator was already set on this account"],[e.exports.LangErrorCode.AccountDiscriminatorNotFound,"No 8 byte discriminator was found on the account"],[e.exports.LangErrorCode.AccountDiscriminatorMismatch,"8 byte discriminator did not match what was expected"],[e.exports.LangErrorCode.AccountDidNotDeserialize,"Failed to deserialize the account"],[e.exports.LangErrorCode.AccountDidNotSerialize,"Failed to serialize the account"],[e.exports.LangErrorCode.AccountNotEnoughKeys,"Not enough account keys given to the instruction"],[e.exports.LangErrorCode.AccountNotMutable,"The given account is not mutable"],[e.exports.LangErrorCode.AccountOwnedByWrongProgram,"The given account is owned by a different program than expected"],[e.exports.LangErrorCode.InvalidProgramId,"Program ID was not as expected"],[e.exports.LangErrorCode.InvalidProgramExecutable,"Program account is not executable"],[e.exports.LangErrorCode.AccountNotSigner,"The given account did not sign"],[e.exports.LangErrorCode.AccountNotSystemOwned,"The given account is not owned by the system program"],[e.exports.LangErrorCode.AccountNotInitialized,"The program expected this account to be already initialized"],[e.exports.LangErrorCode.AccountNotProgramData,"The given account is not a program data account"],[e.exports.LangErrorCode.StateInvalidAddress,"The given state account does not have the correct address"],[e.exports.LangErrorCode.Deprecated,"The API being used is deprecated and should no longer be used"]])})),parcelRequire.register("3X55s",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.tokenLendingErrors=void 0,e.exports.tokenLendingErrors=new Map([[0,{code:0,message:'Failed to unpack instruction data"',name:"InstructionUnpackError"}],[1,{code:1,message:'Account is already initialized"',name:"AlreadyInitialized"}],[2,{code:2,message:'Lamport balance below rent-exempt threshold"',name:"NotRentExempt"}],[3,{code:3,message:'Market authority is invalid"',name:"InvalidMarketAuthority"}],[4,{code:4,message:'Market owner is invalid"',name:"InvalidMarketOwner"}],[5,{code:5,message:'Input account owner is not the program address"',name:"InvalidAccountOwner"}],[6,{code:6,message:'Input token account is not owned by the correct token program id"',name:"InvalidTokenOwner"}],[7,{code:7,message:'Input token account is not valid"',name:"InvalidTokenAccount"}],[8,{code:8,message:'Input token mint account is not valid"',name:"InvalidTokenMint"}],[9,{code:9,message:'Input token program account is not valid"',name:"InvalidTokenProgram"}],[10,{code:10,message:'Input amount is invalid"',name:"InvalidAmount"}],[11,{code:11,message:'Input config value is invalid"',name:"InvalidConfig"}],[12,{code:12,message:'Input account must be a signer"',name:"InvalidSigner"}],[13,{code:13,message:'Invalid account input"',name:"InvalidAccountInput"}],[14,{code:14,message:'Math operation overflow"',name:"MathOverflow"}],[15,{code:15,message:'Token initialize mint failed"',name:"TokenInitializeMintFailed"}],[16,{code:16,message:'Token initialize account failed"',name:"TokenInitializeAccountFailed"}],[17,{code:17,message:'Token transfer failed"',name:"TokenTransferFailed"}],[18,{code:18,message:'Token mint to failed"',name:"TokenMintToFailed"}],[19,{code:19,message:'Token burn failed"',name:"TokenBurnFailed"}],[20,{code:20,message:'Insufficient liquidity available"',name:"InsufficientLiquidity"}],[21,{code:21,message:'Input reserve has collateral disabled"',name:"ReserveCollateralDisabled"}],[22,{code:22,message:'Reserve state needs to be refreshed"',name:"ReserveStale"}],[23,{code:23,message:'Withdraw amount too small"',name:"WithdrawTooSmall"}],[24,{code:24,message:'Withdraw amount too large"',name:"WithdrawTooLarge"}],[25,{code:25,message:'Borrow amount too small to receive liquidity after fees"',name:"BorrowTooSmall"}],[26,{code:26,message:'Borrow amount too large for deposited collateral"',name:"BorrowTooLarge"}],[27,{code:27,message:'Repay amount too small to transfer liquidity"',name:"RepayTooSmall"}],[28,{code:28,message:'Liquidation amount too small to receive collateral"',name:"LiquidationTooSmall"}],[29,{code:29,message:'Cannot liquidate healthy obligations"',name:"ObligationHealthy"}],[30,{code:30,message:'Obligation state needs to be refreshed"',name:"ObligationStale"}],[31,{code:31,message:'Obligation reserve limit exceeded"',name:"ObligationReserveLimit"}],[32,{code:32,message:'Obligation owner is invalid"',name:"InvalidObligationOwner"}],[33,{code:33,message:'Obligation deposits are empty"',name:"ObligationDepositsEmpty"}],[34,{code:34,message:'Obligation borrows are empty"',name:"ObligationBorrowsEmpty"}],[35,{code:35,message:'Obligation deposits have zero value"',name:"ObligationDepositsZero"}],[36,{code:36,message:'Obligation borrows have zero value"',name:"ObligationBorrowsZero"}],[37,{code:37,message:'Invalid obligation collateral"',name:"InvalidObligationCollateral"}],[38,{code:38,message:'Invalid obligation liquidity"',name:"InvalidObligationLiquidity"}],[39,{code:39,message:'Obligation collateral is empty"',name:"ObligationCollateralEmpty"}],[40,{code:40,message:'Obligation liquidity is empty"',name:"ObligationLiquidityEmpty"}],[41,{code:41,message:'Interest rate is negative"',name:"NegativeInterestRate"}],[42,{code:42,message:'Input oracle config is invalid"',name:"InvalidOracleConfig"}],[43,{code:43,message:'Input flash loan receiver program account is not valid"',name:"InvalidFlashLoanReceiverProgram"}],[44,{code:44,message:'Not enough liquidity after flash loan"',name:"NotEnoughLiquidityAfterFlashLoan"}]])})),parcelRequire.register("aSYHn",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),parcelRequire.register("h0jOR",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PROGRAM_ID=e.exports.PROGRAM_ADDRESS=void 0;var n=parcelRequire("5cySN");o(parcelRequire("aTJzU"),e.exports),o(parcelRequire("guCz0"),e.exports),o(parcelRequire("hKwxH"),e.exports),o(parcelRequire("19BAx"),e.exports),e.exports.PROGRAM_ADDRESS="metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",e.exports.PROGRAM_ID=new n.PublicKey(e.exports.PROGRAM_ADDRESS)})),parcelRequire.register("aTJzU",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.accountProviders=void 0,o(parcelRequire("5DXz0"),e.exports),o(parcelRequire("iVg36"),e.exports),o(parcelRequire("7lHJT"),e.exports),o(parcelRequire("6cvY0"),e.exports),o(parcelRequire("e6pNK"),e.exports),o(parcelRequire("3jyXb"),e.exports),o(parcelRequire("ebEnn"),e.exports),o(parcelRequire("ik5ao"),e.exports),o(parcelRequire("2E9Hy"),e.exports),o(parcelRequire("4x6Dg"),e.exports),o(parcelRequire("kzo6n"),e.exports),o(parcelRequire("5XWJT"),e.exports),e.exports.accountProviders={CollectionAuthorityRecord:parcelRequire("5DXz0").CollectionAuthorityRecord,MetadataDelegateRecord:parcelRequire("ebEnn").MetadataDelegateRecord,Edition:parcelRequire("iVg36").Edition,EditionMarker:parcelRequire("7lHJT").EditionMarker,TokenOwnedEscrow:parcelRequire("4x6Dg").TokenOwnedEscrow,MasterEditionV2:parcelRequire("e6pNK").MasterEditionV2,MasterEditionV1:parcelRequire("6cvY0").MasterEditionV1,Metadata:parcelRequire("3jyXb").Metadata,TokenRecord:parcelRequire("kzo6n").TokenRecord,ReservationListV2:parcelRequire("2E9Hy").ReservationListV2,ReservationListV1:parcelRequire("ik5ao").ReservationListV1,UseAuthorityRecord:parcelRequire("5XWJT").UseAuthorityRecord}})),parcelRequire.register("5DXz0",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.collectionAuthorityRecordBeet=e.exports.CollectionAuthorityRecord=void 0;const s=n(parcelRequire("5cySN")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("ahCTi"));var c=parcelRequire("766fu");class d{constructor(e,t,a){this.key=e,this.bump=t,this.updateAuthority=a}static fromArgs(e){return new d(e.key,e.bump,e.updateAuthority)}static fromAccountInfo(e,t=0){return d.deserialize(e.data,t)}static async fromAccountAddress(e,t,a){const o=await e.getAccountInfo(t,a);if(null==o)throw new Error(`Unable to find CollectionAuthorityRecord account at ${t}`);return d.fromAccountInfo(o,0)[0]}static gpaBuilder(t=new s.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return i.GpaBuilder.fromStruct(t,e.exports.collectionAuthorityRecordBeet)}static deserialize(t,a=0){return e.exports.collectionAuthorityRecordBeet.deserialize(t,a)}serialize(){return e.exports.collectionAuthorityRecordBeet.serialize(this)}static byteSize(t){const a=d.fromArgs(t);return e.exports.collectionAuthorityRecordBeet.toFixedFromValue(a).byteSize}static async getMinimumBalanceForRentExemption(e,t,a){return t.getMinimumBalanceForRentExemption(d.byteSize(e),a)}pretty(){return{key:"Key."+c.Key[this.key],bump:this.bump,updateAuthority:this.updateAuthority}}}e.exports.CollectionAuthorityRecord=d,e.exports.collectionAuthorityRecordBeet=new r.FixableBeetStruct([["key",c.keyBeet],["bump",r.u8],["updateAuthority",r.coption(i.publicKey)]],d.fromArgs,"CollectionAuthorityRecord")})),parcelRequire.register("ahCTi",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.supportedTypeMap=void 0,o(parcelRequire("1q1By"),e.exports),o(parcelRequire("54yce"),e.exports),e.exports.supportedTypeMap=parcelRequire("1q1By").keysTypeMap})),parcelRequire.register("1q1By",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.keysTypeMap=e.exports.publicKey=void 0;var a=parcelRequire("5cySN");const o=(0,parcelRequire("2vJuO").fixedSizeUint8Array)(32);e.exports.publicKey={write:function(e,t,a){const n=a.toBytes();o.write(e,t,n)},read:function(e,t){const n=o.read(e,t);return new a.PublicKey(n)},byteSize:o.byteSize,description:"PublicKey"},e.exports.keysTypeMap={publicKey:{beet:"publicKey",isFixable:!1,sourcePack:"@metaplex-foundation/beet-solana",ts:"PublicKey",pack:"@solana/web3.js"}}})),parcelRequire.register("54yce",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.GpaBuilder=void 0;var a=parcelRequire("2vJuO"),o=parcelRequire("crIim"),n=parcelRequire("gZFWk"),s=parcelRequire("ebFBP");class r{constructor(e,t,a){this.programId=e,this.beets=t,this.accountSize=a,this.config={}}_addFilter(e){return null==this.config.filters&&(this.config.filters=[]),this.config.filters.push(e),this}_addInnerFilter(e,t,r){(0,n.logTrace)(`gpa.addInnerFilter: ${e}.${t}`);const i=this.beets.get(e);(0,o.strict)(null!=i,"Outer filter key needs to be an existing field name");const c=i.beet;let d=i.offset;const l=(0,a.isFixedSizeBeet)(c)?c:c.toFixedFromValue(r);let m;for(const[e,a]of l.fields){if(e===t){m=a;break}d+=a.byteSize}(0,o.strict)(null!=m,`${t} is not a field of the ${e} struct`);const u=(0,s.encodeFixedBeet)(m,r);return this._addFilter({memcmp:{offset:d,bytes:u}}),this}addInnerFilter(e,t){const a=e.split(".");o.strict.equal(a.length,2,"inner filters can go only one level deep, i.e. 'outer.inner' is ok, but 'outer.inner.deep' is not");const[n,s]=a;return this._addInnerFilter(n,s,t)}addFilter(e,t){const n=this.beets.get(e);(0,o.strict)(null!=n,"Filter key needs to be an existing field name");const r=(0,a.isFixedSizeBeet)(n.beet)?n.beet:n.beet.toFixedFromValue(t),i=(0,s.encodeFixedBeet)(r,t);return this._addFilter({memcmp:{offset:n.offset,bytes:i}}),this}dataSize(e){return e=null!=e?e:this.accountSize,(0,o.strict)(null!=e,"for accounts of dynamic size the dataSize arg needs to be provided"),this._addFilter({dataSize:e})}run(e){return e.getProgramAccounts(this.programId,this.config)}static fromBeetFields(e,t){const o=new Map;let n=0,s=!1;for(const[e,r]of t){if(o.set(e,{beet:r,offset:n}),!(0,a.isFixedSizeBeet)(r)){s=!0;break}n+=r.byteSize}return new r(e,o,s?void 0:n)}static fromStruct(e,t){return r.fromBeetFields(e,t.fields)}}e.exports.GpaBuilder=r})),parcelRequire.register("gZFWk",(function(e,t){"use strict";var a=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.logTrace=e.exports.logDebug=e.exports.logInfo=e.exports.logError=void 0;const o=a(parcelRequire("5q0GT"));e.exports.logError=(0,o.default)("beet:error"),e.exports.logInfo=(0,o.default)("beet:info"),e.exports.logDebug=(0,o.default)("beet:debug"),e.exports.logTrace=(0,o.default)("beet:trace")})),parcelRequire.register("ebFBP",(function(e,t){var a=parcelRequire("ajHSv").Buffer,o=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.encodeFixedBeet=void 0;const n=o(parcelRequire("6xxDp"));e.exports.encodeFixedBeet=function(e,t){const o=a.alloc(e.byteSize);return e.write(o,0,t),n.default.encode(o)}})),parcelRequire.register("6xxDp",(function(e,t){var a=parcelRequire("c9gvA");e.exports=a("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")})),parcelRequire.register("c9gvA",(function(e,t){"use strict";e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),a=0;a>>0,d=new Uint8Array(s);e[a];){var l=t[e.charCodeAt(a)];if(255===l)return;for(var m=0,u=s-1;(0!==l||m>>0,d[u]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");n=m,a++}for(var p=s-n;p!==s&&0===d[p];)p++;for(var h=new Uint8Array(o+(s-p)),g=o;p!==s;)h[g++]=d[p++];return h}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var a=0,o=0,n=0,s=t.length;n!==s&&0===t[n];)n++,a++;for(var c=(s-n)*d+1>>>0,l=new Uint8Array(c);n!==s;){for(var m=t[n],u=0,p=c-1;(0!==m||u>>0,l[p]=m%r>>>0,m=m/r>>>0;if(0!==m)throw new Error("Non-zero carry");o=u,n++}for(var h=c-o;h!==c&&0===l[h];)h++;for(var g=i.repeat(a);h{const e=this.edition;if("function"==typeof e.toNumber)try{return e.toNumber()}catch(t){return e}return e})()}}}e.exports.Edition=d,e.exports.editionBeet=new r.BeetStruct([["key",c.keyBeet],["parent",i.publicKey],["edition",r.u64]],d.fromArgs,"Edition")})),parcelRequire.register("7lHJT",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.editionMarkerBeet=e.exports.EditionMarker=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN")),i=n(parcelRequire("ahCTi"));var c=parcelRequire("766fu");class d{constructor(e,t){this.key=e,this.ledger=t}static fromArgs(e){return new d(e.key,e.ledger)}static fromAccountInfo(e,t=0){return d.deserialize(e.data,t)}static async fromAccountAddress(e,t,a){const o=await e.getAccountInfo(t,a);if(null==o)throw new Error(`Unable to find EditionMarker account at ${t}`);return d.fromAccountInfo(o,0)[0]}static gpaBuilder(t=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return i.GpaBuilder.fromStruct(t,e.exports.editionMarkerBeet)}static deserialize(t,a=0){return e.exports.editionMarkerBeet.deserialize(t,a)}serialize(){return e.exports.editionMarkerBeet.serialize(this)}static get byteSize(){return e.exports.editionMarkerBeet.byteSize}static async getMinimumBalanceForRentExemption(e,t){return e.getMinimumBalanceForRentExemption(d.byteSize,t)}static hasCorrectByteSize(e,t=0){return e.byteLength-t===d.byteSize}pretty(){return{key:"Key."+c.Key[this.key],ledger:this.ledger}}}e.exports.EditionMarker=d,e.exports.editionMarkerBeet=new s.BeetStruct([["key",c.keyBeet],["ledger",s.uniformFixedSizeArray(s.u8,31)]],d.fromArgs,"EditionMarker")})),parcelRequire.register("6cvY0",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.masterEditionV1Beet=e.exports.MasterEditionV1=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN")),i=n(parcelRequire("ahCTi"));var c=parcelRequire("766fu");class d{constructor(e,t,a,o,n){this.key=e,this.supply=t,this.maxSupply=a,this.printingMint=o,this.oneTimePrintingAuthorizationMint=n}static fromArgs(e){return new d(e.key,e.supply,e.maxSupply,e.printingMint,e.oneTimePrintingAuthorizationMint)}static fromAccountInfo(e,t=0){return d.deserialize(e.data,t)}static async fromAccountAddress(e,t,a){const o=await e.getAccountInfo(t,a);if(null==o)throw new Error(`Unable to find MasterEditionV1 account at ${t}`);return d.fromAccountInfo(o,0)[0]}static gpaBuilder(t=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return i.GpaBuilder.fromStruct(t,e.exports.masterEditionV1Beet)}static deserialize(t,a=0){return e.exports.masterEditionV1Beet.deserialize(t,a)}serialize(){return e.exports.masterEditionV1Beet.serialize(this)}static byteSize(t){const a=d.fromArgs(t);return e.exports.masterEditionV1Beet.toFixedFromValue(a).byteSize}static async getMinimumBalanceForRentExemption(e,t,a){return t.getMinimumBalanceForRentExemption(d.byteSize(e),a)}pretty(){return{key:"Key."+c.Key[this.key],supply:(()=>{const e=this.supply;if("function"==typeof e.toNumber)try{return e.toNumber()}catch(t){return e}return e})(),maxSupply:this.maxSupply,printingMint:this.printingMint.toBase58(),oneTimePrintingAuthorizationMint:this.oneTimePrintingAuthorizationMint.toBase58()}}}e.exports.MasterEditionV1=d,e.exports.masterEditionV1Beet=new s.FixableBeetStruct([["key",c.keyBeet],["supply",s.u64],["maxSupply",s.coption(s.u64)],["printingMint",i.publicKey],["oneTimePrintingAuthorizationMint",i.publicKey]],d.fromArgs,"MasterEditionV1")})),parcelRequire.register("e6pNK",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.masterEditionV2Beet=e.exports.MasterEditionV2=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN")),i=n(parcelRequire("ahCTi"));var c=parcelRequire("766fu");class d{constructor(e,t,a){this.key=e,this.supply=t,this.maxSupply=a}static fromArgs(e){return new d(e.key,e.supply,e.maxSupply)}static fromAccountInfo(e,t=0){return d.deserialize(e.data,t)}static async fromAccountAddress(e,t,a){const o=await e.getAccountInfo(t,a);if(null==o)throw new Error(`Unable to find MasterEditionV2 account at ${t}`);return d.fromAccountInfo(o,0)[0]}static gpaBuilder(t=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return i.GpaBuilder.fromStruct(t,e.exports.masterEditionV2Beet)}static deserialize(t,a=0){return e.exports.masterEditionV2Beet.deserialize(t,a)}serialize(){return e.exports.masterEditionV2Beet.serialize(this)}static byteSize(t){const a=d.fromArgs(t);return e.exports.masterEditionV2Beet.toFixedFromValue(a).byteSize}static async getMinimumBalanceForRentExemption(e,t,a){return t.getMinimumBalanceForRentExemption(d.byteSize(e),a)}pretty(){return{key:"Key."+c.Key[this.key],supply:(()=>{const e=this.supply;if("function"==typeof e.toNumber)try{return e.toNumber()}catch(t){return e}return e})(),maxSupply:this.maxSupply}}}e.exports.MasterEditionV2=d,e.exports.masterEditionV2Beet=new s.FixableBeetStruct([["key",c.keyBeet],["supply",s.u64],["maxSupply",s.coption(s.u64)]],d.fromArgs,"MasterEditionV2")})),parcelRequire.register("3jyXb",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.metadataBeet=e.exports.Metadata=void 0;const s=n(parcelRequire("5cySN")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("ahCTi"));var c=parcelRequire("766fu"),d=parcelRequire("auQ5Q"),l=parcelRequire("5ySPU"),m=parcelRequire("iiQMG"),u=parcelRequire("3GNXc"),p=parcelRequire("5BSCc"),h=parcelRequire("cDILM");const g=n(parcelRequire("9TGGG"));class b{constructor(e,t,a,o,n,s,r,i,c,d,l,m){this.key=e,this.updateAuthority=t,this.mint=a,this.data=o,this.primarySaleHappened=n,this.isMutable=s,this.editionNonce=r,this.tokenStandard=i,this.collection=c,this.uses=d,this.collectionDetails=l,this.programmableConfig=m}static fromArgs(e){return new b(e.key,e.updateAuthority,e.mint,e.data,e.primarySaleHappened,e.isMutable,e.editionNonce,e.tokenStandard,e.collection,e.uses,e.collectionDetails,e.programmableConfig)}static fromAccountInfo(e,t=0){return b.deserialize(e.data,t)}static async fromAccountAddress(e,t,a){const o=await e.getAccountInfo(t,a);if(null==o)throw new Error(`Unable to find Metadata account at ${t}`);return b.fromAccountInfo(o,0)[0]}static gpaBuilder(t=new s.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return i.GpaBuilder.fromStruct(t,e.exports.metadataBeet)}static deserialize(e,t=0){return $(e,t)}serialize(){return y(this)}static byteSize(t){const a=b.fromArgs(t);return e.exports.metadataBeet.toFixedFromValue(a).byteSize}static async getMinimumBalanceForRentExemption(e,t,a){return t.getMinimumBalanceForRentExemption(b.byteSize(e),a)}pretty(){return{key:"Key."+c.Key[this.key],updateAuthority:this.updateAuthority.toBase58(),mint:this.mint.toBase58(),data:this.data,primarySaleHappened:this.primarySaleHappened,isMutable:this.isMutable,editionNonce:this.editionNonce,tokenStandard:this.tokenStandard,collection:this.collection,uses:this.uses,collectionDetails:this.collectionDetails,programmableConfig:this.programmableConfig}}}e.exports.Metadata=b,e.exports.metadataBeet=new r.FixableBeetStruct([["key",c.keyBeet],["updateAuthority",i.publicKey],["mint",i.publicKey],["data",d.dataBeet],["primarySaleHappened",r.bool],["isMutable",r.bool],["editionNonce",r.coption(r.u8)],["tokenStandard",r.coption(l.tokenStandardBeet)],["collection",r.coption(m.collectionBeet)],["uses",r.coption(u.usesBeet)],["collectionDetails",r.coption(p.collectionDetailsBeet)],["programmableConfig",r.coption(h.programmableConfigBeet)]],b.fromArgs,"Metadata");const f=g,y="function"==typeof f.serialize?f.serialize.bind(f):e.exports.metadataBeet.serialize.bind(e.exports.metadataBeet),$="function"==typeof f.deserialize?f.deserialize.bind(f):e.exports.metadataBeet.deserialize.bind(e.exports.metadataBeet)})),parcelRequire.register("auQ5Q",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.dataBeet=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("hgIHB");e.exports.dataBeet=new s.FixableBeetArgsStruct([["name",s.utf8String],["symbol",s.utf8String],["uri",s.utf8String],["sellerFeeBasisPoints",s.u16],["creators",s.coption(s.array(r.creatorBeet))]],"Data")})),parcelRequire.register("hgIHB",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.creatorBeet=void 0;const s=n(parcelRequire("ahCTi")),r=n(parcelRequire("2vJuO"));e.exports.creatorBeet=new r.BeetArgsStruct([["address",s.publicKey],["verified",r.bool],["share",r.u8]],"Creator")})),parcelRequire.register("5ySPU",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.tokenStandardBeet=e.exports.TokenStandard=void 0;const s=n(parcelRequire("2vJuO"));var r,i;(i=r=e.exports.TokenStandard||(e.exports.TokenStandard={}))[i.NonFungible=0]="NonFungible",i[i.FungibleAsset=1]="FungibleAsset",i[i.Fungible=2]="Fungible",i[i.NonFungibleEdition=3]="NonFungibleEdition",i[i.ProgrammableNonFungible=4]="ProgrammableNonFungible",e.exports.tokenStandardBeet=s.fixedScalarEnum(r)})),parcelRequire.register("iiQMG",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.collectionBeet=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));e.exports.collectionBeet=new s.BeetArgsStruct([["verified",s.bool],["key",r.publicKey]],"Collection")})),parcelRequire.register("3GNXc",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.usesBeet=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("7UURH");e.exports.usesBeet=new s.BeetArgsStruct([["useMethod",r.useMethodBeet],["remaining",s.u64],["total",s.u64]],"Uses")})),parcelRequire.register("7UURH",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.useMethodBeet=e.exports.UseMethod=void 0;const s=n(parcelRequire("2vJuO"));var r,i;(i=r=e.exports.UseMethod||(e.exports.UseMethod={}))[i.Burn=0]="Burn",i[i.Multiple=1]="Multiple",i[i.Single=2]="Single",e.exports.useMethodBeet=s.fixedScalarEnum(r)})),parcelRequire.register("5BSCc",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.collectionDetailsBeet=e.exports.isCollectionDetailsV1=void 0;const s=n(parcelRequire("2vJuO"));e.exports.isCollectionDetailsV1=e=>"V1"===e.__kind,e.exports.collectionDetailsBeet=s.dataEnum([["V1",new s.BeetArgsStruct([["size",s.u64]],'CollectionDetailsRecord["V1"]')]])})),parcelRequire.register("cDILM",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.programmableConfigBeet=e.exports.isProgrammableConfigV1=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));e.exports.isProgrammableConfigV1=e=>"V1"===e.__kind,e.exports.programmableConfigBeet=s.dataEnum([["V1",new s.FixableBeetArgsStruct([["ruleSet",s.coption(r.publicKey)]],'ProgrammableConfigRecord["V1"]')]])})),parcelRequire.register("9TGGG",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.deserialize=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));var i=parcelRequire("3jyXb"),c=parcelRequire("iiQMG"),d=parcelRequire("5BSCc"),l=parcelRequire("cDILM"),m=parcelRequire("auQ5Q"),u=parcelRequire("766fu"),p=parcelRequire("5ySPU"),h=parcelRequire("3GNXc");const g=s.coptionNone("").byteSize;function b(e,t,a){try{const o=e.toFixedFromData(t,a);return[o.read(t,a),o.byteSize,!1]}catch(e){return[null,g,!0]}}e.exports.deserialize=function(e,t=0){let a=t;const o=u.keyBeet.read(e,a);a+=u.keyBeet.byteSize;const n=r.publicKey.read(e,a);a+=r.publicKey.byteSize;const f=r.publicKey.read(e,a);a+=r.publicKey.byteSize;const[y,$]=m.dataBeet.deserialize(e,a);a=$;const w=s.bool.read(e,a);a+=s.bool.byteSize;const k=s.bool.read(e,a);a+=s.bool.byteSize;const v=s.coption(s.u8).toFixedFromData(e,a),x=v.read(e,a);a+=v.byteSize;const[R,A,I]=b(s.coption(p.tokenStandardBeet),e,a);a+=A;const[S,E,T]=I?[null,g,!0]:b(s.coption(c.collectionBeet),e,a);a+=E;const[C,U,M]=I||T?[null,g,!0]:b(s.coption(h.usesBeet),e,a);a+=U;const[D,N,P]=I||T||M?[null,g,!0]:b(s.coption(d.collectionDetailsBeet),e,a);a+=N;const[B,L,F]=I||T||M?[null,g,!0]:b(s.coption(l.programmableConfigBeet),e,a);a+=L;const K=I||T||M||P||F,G={key:o,updateAuthority:n,mint:f,data:y,primarySaleHappened:w,isMutable:k,editionNonce:x,tokenStandard:K?null:R,collection:K?null:S,uses:K?null:C,collectionDetails:K?null:D,programmableConfig:K?null:B};return[i.Metadata.fromArgs(G),a]}})),parcelRequire.register("ebEnn",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.metadataDelegateRecordBeet=e.exports.MetadataDelegateRecord=void 0;const s=n(parcelRequire("5cySN")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("ahCTi"));var c=parcelRequire("766fu");class d{constructor(e,t,a,o,n){this.key=e,this.bump=t,this.mint=a,this.delegate=o,this.updateAuthority=n}static fromArgs(e){return new d(e.key,e.bump,e.mint,e.delegate,e.updateAuthority)}static fromAccountInfo(e,t=0){return d.deserialize(e.data,t)}static async fromAccountAddress(e,t,a){const o=await e.getAccountInfo(t,a);if(null==o)throw new Error(`Unable to find MetadataDelegateRecord account at ${t}`);return d.fromAccountInfo(o,0)[0]}static gpaBuilder(t=new s.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return i.GpaBuilder.fromStruct(t,e.exports.metadataDelegateRecordBeet)}static deserialize(t,a=0){return e.exports.metadataDelegateRecordBeet.deserialize(t,a)}serialize(){return e.exports.metadataDelegateRecordBeet.serialize(this)}static get byteSize(){return e.exports.metadataDelegateRecordBeet.byteSize}static async getMinimumBalanceForRentExemption(e,t){return e.getMinimumBalanceForRentExemption(d.byteSize,t)}static hasCorrectByteSize(e,t=0){return e.byteLength-t===d.byteSize}pretty(){return{key:"Key."+c.Key[this.key],bump:this.bump,mint:this.mint.toBase58(),delegate:this.delegate.toBase58(),updateAuthority:this.updateAuthority.toBase58()}}}e.exports.MetadataDelegateRecord=d,e.exports.metadataDelegateRecordBeet=new r.BeetStruct([["key",c.keyBeet],["bump",r.u8],["mint",i.publicKey],["delegate",i.publicKey],["updateAuthority",i.publicKey]],d.fromArgs,"MetadataDelegateRecord")})),parcelRequire.register("ik5ao",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.reservationListV1Beet=e.exports.ReservationListV1=void 0;const s=n(parcelRequire("5cySN")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("ahCTi"));var c=parcelRequire("766fu"),d=parcelRequire("7yyvR");class l{constructor(e,t,a,o){this.key=e,this.masterEdition=t,this.supplySnapshot=a,this.reservations=o}static fromArgs(e){return new l(e.key,e.masterEdition,e.supplySnapshot,e.reservations)}static fromAccountInfo(e,t=0){return l.deserialize(e.data,t)}static async fromAccountAddress(e,t,a){const o=await e.getAccountInfo(t,a);if(null==o)throw new Error(`Unable to find ReservationListV1 account at ${t}`);return l.fromAccountInfo(o,0)[0]}static gpaBuilder(t=new s.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return i.GpaBuilder.fromStruct(t,e.exports.reservationListV1Beet)}static deserialize(t,a=0){return e.exports.reservationListV1Beet.deserialize(t,a)}serialize(){return e.exports.reservationListV1Beet.serialize(this)}static byteSize(t){const a=l.fromArgs(t);return e.exports.reservationListV1Beet.toFixedFromValue(a).byteSize}static async getMinimumBalanceForRentExemption(e,t,a){return t.getMinimumBalanceForRentExemption(l.byteSize(e),a)}pretty(){return{key:"Key."+c.Key[this.key],masterEdition:this.masterEdition.toBase58(),supplySnapshot:this.supplySnapshot,reservations:this.reservations}}}e.exports.ReservationListV1=l,e.exports.reservationListV1Beet=new r.FixableBeetStruct([["key",c.keyBeet],["masterEdition",i.publicKey],["supplySnapshot",r.coption(r.u64)],["reservations",r.array(d.reservationV1Beet)]],l.fromArgs,"ReservationListV1")})),parcelRequire.register("7yyvR",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.reservationV1Beet=void 0;const s=n(parcelRequire("ahCTi")),r=n(parcelRequire("2vJuO"));e.exports.reservationV1Beet=new r.BeetArgsStruct([["address",s.publicKey],["spotsRemaining",r.u8],["totalSpots",r.u8]],"ReservationV1")})),parcelRequire.register("2E9Hy",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.reservationListV2Beet=e.exports.ReservationListV2=void 0;const s=n(parcelRequire("5cySN")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("ahCTi"));var c=parcelRequire("766fu"),d=parcelRequire("eU0iK");class l{constructor(e,t,a,o,n,s){this.key=e,this.masterEdition=t,this.supplySnapshot=a,this.reservations=o,this.totalReservationSpots=n,this.currentReservationSpots=s}static fromArgs(e){return new l(e.key,e.masterEdition,e.supplySnapshot,e.reservations,e.totalReservationSpots,e.currentReservationSpots)}static fromAccountInfo(e,t=0){return l.deserialize(e.data,t)}static async fromAccountAddress(e,t,a){const o=await e.getAccountInfo(t,a);if(null==o)throw new Error(`Unable to find ReservationListV2 account at ${t}`);return l.fromAccountInfo(o,0)[0]}static gpaBuilder(t=new s.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return i.GpaBuilder.fromStruct(t,e.exports.reservationListV2Beet)}static deserialize(t,a=0){return e.exports.reservationListV2Beet.deserialize(t,a)}serialize(){return e.exports.reservationListV2Beet.serialize(this)}static byteSize(t){const a=l.fromArgs(t);return e.exports.reservationListV2Beet.toFixedFromValue(a).byteSize}static async getMinimumBalanceForRentExemption(e,t,a){return t.getMinimumBalanceForRentExemption(l.byteSize(e),a)}pretty(){return{key:"Key."+c.Key[this.key],masterEdition:this.masterEdition.toBase58(),supplySnapshot:this.supplySnapshot,reservations:this.reservations,totalReservationSpots:(()=>{const e=this.totalReservationSpots;if("function"==typeof e.toNumber)try{return e.toNumber()}catch(t){return e}return e})(),currentReservationSpots:(()=>{const e=this.currentReservationSpots;if("function"==typeof e.toNumber)try{return e.toNumber()}catch(t){return e}return e})()}}}e.exports.ReservationListV2=l,e.exports.reservationListV2Beet=new r.FixableBeetStruct([["key",c.keyBeet],["masterEdition",i.publicKey],["supplySnapshot",r.coption(r.u64)],["reservations",r.array(d.reservationBeet)],["totalReservationSpots",r.u64],["currentReservationSpots",r.u64]],l.fromArgs,"ReservationListV2")})),parcelRequire.register("eU0iK",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.reservationBeet=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));e.exports.reservationBeet=new s.BeetArgsStruct([["address",r.publicKey],["spotsRemaining",s.u64],["totalSpots",s.u64]],"Reservation")})),parcelRequire.register("4x6Dg",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.tokenOwnedEscrowBeet=e.exports.TokenOwnedEscrow=void 0;const s=n(parcelRequire("5cySN")),r=n(parcelRequire("ahCTi")),i=n(parcelRequire("2vJuO"));var c=parcelRequire("766fu"),d=parcelRequire("315kw");class l{constructor(e,t,a,o){this.key=e,this.baseToken=t,this.authority=a,this.bump=o}static fromArgs(e){return new l(e.key,e.baseToken,e.authority,e.bump)}static fromAccountInfo(e,t=0){return l.deserialize(e.data,t)}static async fromAccountAddress(e,t,a){const o=await e.getAccountInfo(t,a);if(null==o)throw new Error(`Unable to find TokenOwnedEscrow account at ${t}`);return l.fromAccountInfo(o,0)[0]}static gpaBuilder(t=new s.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return r.GpaBuilder.fromStruct(t,e.exports.tokenOwnedEscrowBeet)}static deserialize(t,a=0){return e.exports.tokenOwnedEscrowBeet.deserialize(t,a)}serialize(){return e.exports.tokenOwnedEscrowBeet.serialize(this)}static byteSize(t){const a=l.fromArgs(t);return e.exports.tokenOwnedEscrowBeet.toFixedFromValue(a).byteSize}static async getMinimumBalanceForRentExemption(e,t,a){return t.getMinimumBalanceForRentExemption(l.byteSize(e),a)}pretty(){return{key:"Key."+c.Key[this.key],baseToken:this.baseToken.toBase58(),authority:this.authority.__kind,bump:this.bump}}}e.exports.TokenOwnedEscrow=l,e.exports.tokenOwnedEscrowBeet=new i.FixableBeetStruct([["key",c.keyBeet],["baseToken",r.publicKey],["authority",d.escrowAuthorityBeet],["bump",i.u8]],l.fromArgs,"TokenOwnedEscrow")})),parcelRequire.register("315kw",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.escrowAuthorityBeet=e.exports.isEscrowAuthorityCreator=e.exports.isEscrowAuthorityTokenOwner=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));e.exports.isEscrowAuthorityTokenOwner=e=>"TokenOwner"===e.__kind;e.exports.isEscrowAuthorityCreator=e=>"Creator"===e.__kind,e.exports.escrowAuthorityBeet=s.dataEnum([["TokenOwner",s.unit],["Creator",new s.BeetArgsStruct([["fields",s.fixedSizeTuple([r.publicKey])]],'EscrowAuthorityRecord["Creator"]')]])})),parcelRequire.register("kzo6n",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.tokenRecordBeet=e.exports.TokenRecord=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN")),i=n(parcelRequire("ahCTi"));var c=parcelRequire("766fu"),d=parcelRequire("dwdKe"),l=parcelRequire("9k24K");const m=n(parcelRequire("7veqq"));class u{constructor(e,t,a,o,n,s,r){this.key=e,this.bump=t,this.state=a,this.ruleSetRevision=o,this.delegate=n,this.delegateRole=s,this.lockedTransfer=r}static fromArgs(e){return new u(e.key,e.bump,e.state,e.ruleSetRevision,e.delegate,e.delegateRole,e.lockedTransfer)}static fromAccountInfo(e,t=0){return u.deserialize(e.data,t)}static async fromAccountAddress(e,t,a){const o=await e.getAccountInfo(t,a);if(null==o)throw new Error(`Unable to find TokenRecord account at ${t}`);return u.fromAccountInfo(o,0)[0]}static gpaBuilder(t=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return i.GpaBuilder.fromStruct(t,e.exports.tokenRecordBeet)}static deserialize(e,t=0){return g(e,t)}serialize(){return h(this)}static byteSize(t){const a=u.fromArgs(t);return e.exports.tokenRecordBeet.toFixedFromValue(a).byteSize}static async getMinimumBalanceForRentExemption(e,t,a){return t.getMinimumBalanceForRentExemption(u.byteSize(e),a)}pretty(){return{key:"Key."+c.Key[this.key],bump:this.bump,state:"TokenState."+d.TokenState[this.state],ruleSetRevision:this.ruleSetRevision,delegate:this.delegate,delegateRole:this.delegateRole,lockedTransfer:this.lockedTransfer}}}e.exports.TokenRecord=u,e.exports.tokenRecordBeet=new s.FixableBeetStruct([["key",c.keyBeet],["bump",s.u8],["state",d.tokenStateBeet],["ruleSetRevision",s.coption(s.u64)],["delegate",s.coption(i.publicKey)],["delegateRole",s.coption(l.tokenDelegateRoleBeet)],["lockedTransfer",s.coption(i.publicKey)]],u.fromArgs,"TokenRecord");const p=m,h="function"==typeof p.serialize?p.serialize.bind(p):e.exports.tokenRecordBeet.serialize.bind(e.exports.tokenRecordBeet),g="function"==typeof p.deserialize?p.deserialize.bind(p):e.exports.tokenRecordBeet.deserialize.bind(e.exports.tokenRecordBeet)})),parcelRequire.register("dwdKe",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.tokenStateBeet=e.exports.TokenState=void 0;const s=n(parcelRequire("2vJuO"));var r,i;(i=r=e.exports.TokenState||(e.exports.TokenState={}))[i.Unlocked=0]="Unlocked",i[i.Locked=1]="Locked",i[i.Listed=2]="Listed",e.exports.tokenStateBeet=s.fixedScalarEnum(r)})),parcelRequire.register("9k24K",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.tokenDelegateRoleBeet=e.exports.TokenDelegateRole=void 0;const s=n(parcelRequire("2vJuO"));var r,i;(i=r=e.exports.TokenDelegateRole||(e.exports.TokenDelegateRole={}))[i.Sale=0]="Sale",i[i.Transfer=1]="Transfer",i[i.Utility=2]="Utility",i[i.Staking=3]="Staking",i[i.Standard=4]="Standard",i[i.LockedTransfer=5]="LockedTransfer",i[i.Migration=6]="Migration",e.exports.tokenDelegateRoleBeet=s.fixedScalarEnum(r)})),parcelRequire.register("7veqq",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.deserialize=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));var i=parcelRequire("766fu"),c=parcelRequire("kzo6n"),d=parcelRequire("h0jOR"),l=parcelRequire("iKqPX");e.exports.deserialize=function(e,t=0){let a=t;const o=i.keyBeet.read(e,a);a+=i.keyBeet.byteSize;const n=s.u8.read(e,a);a+=s.u8.byteSize;const m=d.tokenStateBeet.read(e,a);a+=d.tokenStateBeet.byteSize;const[u,p]=(0,l.tryReadOption)(s.coption(s.u64),e,a);a+=p;const[h,g]=(0,l.tryReadOption)(s.coption(r.publicKey),e,a);a+=g;const[b,f]=(0,l.tryReadOption)(s.coption(d.tokenDelegateRoleBeet),e,a);a+=f;const[y,$,w]=(0,l.tryReadOption)(s.coption(r.publicKey),e,a);a+=$;const k={key:o,bump:n,state:m,ruleSetRevision:u,delegate:h,delegateRole:b,lockedTransfer:w?null:y};return[c.TokenRecord.fromArgs(k),a]}})),parcelRequire.register("iKqPX",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.tryReadOption=void 0;const s=n(parcelRequire("2vJuO")).coptionNone("").byteSize;e.exports.tryReadOption=function(e,t,a){if(0==t.subarray(a).length)return[null,s,!0];const o=e.toFixedFromData(t,a);return[o.read(t,a),o.byteSize,!1]}})),parcelRequire.register("5XWJT",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.useAuthorityRecordBeet=e.exports.UseAuthorityRecord=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN")),i=n(parcelRequire("ahCTi"));var c=parcelRequire("766fu");class d{constructor(e,t,a){this.key=e,this.allowedUses=t,this.bump=a}static fromArgs(e){return new d(e.key,e.allowedUses,e.bump)}static fromAccountInfo(e,t=0){return d.deserialize(e.data,t)}static async fromAccountAddress(e,t,a){const o=await e.getAccountInfo(t,a);if(null==o)throw new Error(`Unable to find UseAuthorityRecord account at ${t}`);return d.fromAccountInfo(o,0)[0]}static gpaBuilder(t=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return i.GpaBuilder.fromStruct(t,e.exports.useAuthorityRecordBeet)}static deserialize(t,a=0){return e.exports.useAuthorityRecordBeet.deserialize(t,a)}serialize(){return e.exports.useAuthorityRecordBeet.serialize(this)}static get byteSize(){return e.exports.useAuthorityRecordBeet.byteSize}static async getMinimumBalanceForRentExemption(e,t){return e.getMinimumBalanceForRentExemption(d.byteSize,t)}static hasCorrectByteSize(e,t=0){return e.byteLength-t===d.byteSize}pretty(){return{key:"Key."+c.Key[this.key],allowedUses:(()=>{const e=this.allowedUses;if("function"==typeof e.toNumber)try{return e.toNumber()}catch(t){return e}return e})(),bump:this.bump}}}e.exports.UseAuthorityRecord=d,e.exports.useAuthorityRecordBeet=new s.BeetStruct([["key",c.keyBeet],["allowedUses",s.u64],["bump",s.u8]],d.fromArgs,"UseAuthorityRecord")})),parcelRequire.register("guCz0",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ReservationAlreadyMadeError=e.exports.ReservationNotSetError=e.exports.ReservationDoesNotExistError=e.exports.ReservationExistsError=e.exports.ShareTotalMustBe100Error=e.exports.NoBalanceInAccountForAuthorizationError=e.exports.OwnerMismatchError=e.exports.PrimarySaleCanOnlyBeFlippedToTrueError=e.exports.InvalidBasisPointsError=e.exports.CreatorNotFoundError=e.exports.NoCreatorsPresentOnMetadataError=e.exports.MustBeOneOfCreatorsError=e.exports.CreatorsMustBeAtleastOneError=e.exports.CreatorsTooLongError=e.exports.DisabledError=e.exports.AuthorizationTokenAccountOwnerMismatchError=e.exports.PrintingMintAuthorizationAccountMismatchError=e.exports.NotEnoughTokensError=e.exports.TokenAccountMintMismatchV2Error=e.exports.TokenAccountMintMismatchError=e.exports.OneTimePrintingAuthMintMismatchError=e.exports.PrintingMintMismatchError=e.exports.DerivedKeyInvalidError=e.exports.TokenAccountOneTimeAuthMintMismatchError=e.exports.TokenBurnFailedError=e.exports.EditionMintDecimalsShouldBeZeroError=e.exports.OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError=e.exports.PrintingMintDecimalsShouldBeZeroError=e.exports.EditionAlreadyMintedError=e.exports.DestinationMintMismatchError=e.exports.MasterRecordMismatchError=e.exports.TokenMintToFailedError=e.exports.MaxEditionsMintedAlreadyError=e.exports.EditionsMustHaveExactlyOneTokenError=e.exports.MintMismatchError=e.exports.UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError=e.exports.UriTooLongError=e.exports.SymbolTooLongError=e.exports.NameTooLongError=e.exports.InvalidMintAuthorityError=e.exports.NotMintAuthorityError=e.exports.UpdateAuthorityIsNotSignerError=e.exports.UpdateAuthorityIncorrectError=e.exports.InvalidEditionKeyError=e.exports.InvalidMetadataKeyError=e.exports.UninitializedError=e.exports.AlreadyInitializedError=e.exports.NotRentExemptError=e.exports.InstructionPackErrorError=e.exports.InstructionUnpackErrorError=void 0,e.exports.RevokeCollectionAuthoritySignerIncorrectError=e.exports.InvalidUserError=e.exports.EditionOverrideCannotBeZeroError=e.exports.NotAllowedToChangeSellerFeeBasisPointsError=e.exports.CannotWipeVerifiedCreatorsError=e.exports.CannotRemoveVerifiedCreatorError=e.exports.CannotAdjustVerifiedCreatorError=e.exports.InvalidDelegateError=e.exports.InvalidFreezeAuthorityError=e.exports.InvalidCollectionAuthorityRecordError=e.exports.InvalidUseAuthorityRecordError=e.exports.CollectionAuthorityDoesNotExistError=e.exports.CollectionAuthorityRecordAlreadyExistsError=e.exports.NotEnoughUsesError=e.exports.UnusableError=e.exports.UseAuthorityRecordAlreadyRevokedError=e.exports.UseAuthorityRecordAlreadyExistsError=e.exports.CollectionMustBeAUniqueMasterEditionError=e.exports.InvalidCollectionUpdateAuthorityError=e.exports.CollectionNotFoundError=e.exports.CannotChangeUsesAfterFirstUseError=e.exports.CannotChangeUseMethodAfterFirstUseError=e.exports.InvalidUseMethodError=e.exports.MustBeBurnedError=e.exports.RemovedError=e.exports.CollectionCannotBeVerifiedInThisInstructionError=e.exports.IsMutableCanOnlyBeFlippedToFalseError=e.exports.ReservationArrayShouldBeSizeOneError=e.exports.InvalidEditionIndexError=e.exports.OneTimeAuthMintSupplyMustBeZeroForConversionError=e.exports.PrintingMintSupplyMustBeZeroForConversionError=e.exports.InvalidOwnerError=e.exports.InvalidOperationError=e.exports.TriedToReplaceAnExistingReservationError=e.exports.ReservationNotCompleteError=e.exports.BeyondAlottedAddressSizeError=e.exports.DataTypeMismatchError=e.exports.InvalidTokenProgramError=e.exports.ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError=e.exports.DuplicateCreatorAddressError=e.exports.DataIsImmutableError=e.exports.PrintingWouldBreachMaximumSupplyError=e.exports.IncorrectOwnerError=e.exports.SpotMismatchError=e.exports.CannotUnverifyAnotherCreatorError=e.exports.CannotVerifyAnotherCreatorError=e.exports.AddressNotInReservationError=e.exports.ReservationBreachesMaximumSupplyError=e.exports.NumericalOverflowErrorError=e.exports.BeyondMaxAddressSizeError=void 0,e.exports.MissingSplTokenProgramError=e.exports.MissingTokenAccountError=e.exports.OnlySaleDelegateCanTransferError=e.exports.InvalidSystemWalletError=e.exports.FeatureNotSupportedError=e.exports.MissingArgumentInBuilderError=e.exports.MissingAccountInBuilderError=e.exports.DelegateNotFoundError=e.exports.DelegateAlreadyExistsError=e.exports.InvalidProgrammableConfigError=e.exports.MissingProgrammableConfigError=e.exports.MissingAuthorizationRulesError=e.exports.InvalidAuthorizationRulesError=e.exports.InvalidMintForTokenStandardError=e.exports.InvalidTokenStandardError=e.exports.MintIsNotSignerError=e.exports.EscrowParentHasDelegateError=e.exports.InvalidBubblegumSignerError=e.exports.InvalidCollectionSizeChangeError=e.exports.NoFreezeAuthoritySetError=e.exports.BorshSerializationErrorError=e.exports.InsufficientTokensError=e.exports.MustBeNonFungibleError=e.exports.InvalidSystemProgramError=e.exports.MustBeEscrowAuthorityError=e.exports.InvalidEscrowBumpSeedError=e.exports.MustUnverifyError=e.exports.EditionNumberGreaterThanMaxSupplyError=e.exports.PrintEditionDoesNotMatchMasterEditionError=e.exports.ReservationListDeprecatedError=e.exports.InvalidEditionMarkerError=e.exports.InvalidPrintEditionError=e.exports.InvalidMasterEditionError=e.exports.NotAPrintEditionError=e.exports.AlreadyUnverifiedError=e.exports.AlreadyVerifiedError=e.exports.CollectionMasterEditionAccountInvalidError=e.exports.CannotUpdateVerifiedCollectionError=e.exports.BorshDeserializationErrorError=e.exports.MasterEditionHasPrintsError=e.exports.NotAMasterEditionError=e.exports.MissingEditionAccountError=e.exports.CouldNotDetermineTokenStandardError=e.exports.NotACollectionParentError=e.exports.NotVerifiedMemberOfCollectionError=e.exports.NotAMemberOfCollectionError=e.exports.MissingCollectionMetadataError=e.exports.SizedCollectionError=e.exports.UnsizedCollectionError=e.exports.TokenCloseFailedError=void 0,e.exports.errorFromName=e.exports.errorFromCode=e.exports.InvalidTokenRecordError=e.exports.MissingCollectionMasterEditionError=e.exports.MissingCollectionMintError=e.exports.InsufficientTokenBalanceError=e.exports.InvalidUpdateArgsError=e.exports.InvalidParentAccountsError=e.exports.InvalidInstructionsSysvarError=e.exports.InvalidAssociatedTokenAccountProgramError=e.exports.MissingEditionError=e.exports.CannotBurnWithDelegateError=e.exports.MissingEditionMarkerAccountError=e.exports.MissingMasterEditionTokenAccountError=e.exports.MissingMasterEditionMintAccountError=e.exports.InvalidAmountError=e.exports.CannotUpdateAssetWithDelegateError=e.exports.DataIncrementLimitExceededError=e.exports.InvalidLockedTransferAddressError=e.exports.MissingLockedTransferAddressError=e.exports.InvalidDelegateArgsError=e.exports.AmountMustBeGreaterThanZeroError=e.exports.MissingMasterEditionAccountError=e.exports.MissingPrintSupplyError=e.exports.InvalidDelegateRoleError=e.exports.IncorrectTokenStateError=e.exports.InvalidMasterEditionAccountLengthError=e.exports.MissingTokenOwnerAccountError=e.exports.DataIsEmptyOrZeroedError=e.exports.MintSupplyMustBeZeroError=e.exports.MissingTokenRecordError=e.exports.InvalidAuthorityTypeError=e.exports.MissingDelegateRoleError=e.exports.UnlockedTokenError=e.exports.LockedTokenError=e.exports.KeyMismatchError=e.exports.InstructionNotSupportedError=e.exports.InvalidTransferAuthorityError=e.exports.InvalidDelegateRoleForTransferError=e.exports.MissingAuthorizationRulesProgramError=void 0;const a=new Map,o=new Map;class n extends Error{constructor(){super("Failed to unpack instruction data"),this.code=0,this.name="InstructionUnpackError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,n)}}e.exports.InstructionUnpackErrorError=n,a.set(0,(()=>new n)),o.set("InstructionUnpackError",(()=>new n));class s extends Error{constructor(){super("Failed to pack instruction data"),this.code=1,this.name="InstructionPackError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,s)}}e.exports.InstructionPackErrorError=s,a.set(1,(()=>new s)),o.set("InstructionPackError",(()=>new s));class r extends Error{constructor(){super("Lamport balance below rent-exempt threshold"),this.code=2,this.name="NotRentExempt","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}}e.exports.NotRentExemptError=r,a.set(2,(()=>new r)),o.set("NotRentExempt",(()=>new r));class i extends Error{constructor(){super("Already initialized"),this.code=3,this.name="AlreadyInitialized","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,i)}}e.exports.AlreadyInitializedError=i,a.set(3,(()=>new i)),o.set("AlreadyInitialized",(()=>new i));class c extends Error{constructor(){super("Uninitialized"),this.code=4,this.name="Uninitialized","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,c)}}e.exports.UninitializedError=c,a.set(4,(()=>new c)),o.set("Uninitialized",(()=>new c));class d extends Error{constructor(){super(" Metadata's key must match seed of ['metadata', program id, mint] provided"),this.code=5,this.name="InvalidMetadataKey","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,d)}}e.exports.InvalidMetadataKeyError=d,a.set(5,(()=>new d)),o.set("InvalidMetadataKey",(()=>new d));class l extends Error{constructor(){super("Edition's key must match seed of ['metadata', program id, name, 'edition'] provided"),this.code=6,this.name="InvalidEditionKey","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,l)}}e.exports.InvalidEditionKeyError=l,a.set(6,(()=>new l)),o.set("InvalidEditionKey",(()=>new l));class m extends Error{constructor(){super("Update Authority given does not match"),this.code=7,this.name="UpdateAuthorityIncorrect","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,m)}}e.exports.UpdateAuthorityIncorrectError=m,a.set(7,(()=>new m)),o.set("UpdateAuthorityIncorrect",(()=>new m));class u extends Error{constructor(){super("Update Authority needs to be signer to update metadata"),this.code=8,this.name="UpdateAuthorityIsNotSigner","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,u)}}e.exports.UpdateAuthorityIsNotSignerError=u,a.set(8,(()=>new u)),o.set("UpdateAuthorityIsNotSigner",(()=>new u));class p extends Error{constructor(){super("You must be the mint authority and signer on this transaction"),this.code=9,this.name="NotMintAuthority","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,p)}}e.exports.NotMintAuthorityError=p,a.set(9,(()=>new p)),o.set("NotMintAuthority",(()=>new p));class h extends Error{constructor(){super("Mint authority provided does not match the authority on the mint"),this.code=10,this.name="InvalidMintAuthority","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,h)}}e.exports.InvalidMintAuthorityError=h,a.set(10,(()=>new h)),o.set("InvalidMintAuthority",(()=>new h));class g extends Error{constructor(){super("Name too long"),this.code=11,this.name="NameTooLong","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,g)}}e.exports.NameTooLongError=g,a.set(11,(()=>new g)),o.set("NameTooLong",(()=>new g));class b extends Error{constructor(){super("Symbol too long"),this.code=12,this.name="SymbolTooLong","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,b)}}e.exports.SymbolTooLongError=b,a.set(12,(()=>new b)),o.set("SymbolTooLong",(()=>new b));class f extends Error{constructor(){super("URI too long"),this.code=13,this.name="UriTooLong","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,f)}}e.exports.UriTooLongError=f,a.set(13,(()=>new f)),o.set("UriTooLong",(()=>new f));class y extends Error{constructor(){super("Update authority must be equivalent to the metadata's authority and also signer of this transaction"),this.code=14,this.name="UpdateAuthorityMustBeEqualToMetadataAuthorityAndSigner","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,y)}}e.exports.UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError=y,a.set(14,(()=>new y)),o.set("UpdateAuthorityMustBeEqualToMetadataAuthorityAndSigner",(()=>new y));class $ extends Error{constructor(){super("Mint given does not match mint on Metadata"),this.code=15,this.name="MintMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,$)}}e.exports.MintMismatchError=$,a.set(15,(()=>new $)),o.set("MintMismatch",(()=>new $));class w extends Error{constructor(){super("Editions must have exactly one token"),this.code=16,this.name="EditionsMustHaveExactlyOneToken","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,w)}}e.exports.EditionsMustHaveExactlyOneTokenError=w,a.set(16,(()=>new w)),o.set("EditionsMustHaveExactlyOneToken",(()=>new w));class k extends Error{constructor(){super("Maximum editions printed already"),this.code=17,this.name="MaxEditionsMintedAlready","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,k)}}e.exports.MaxEditionsMintedAlreadyError=k,a.set(17,(()=>new k)),o.set("MaxEditionsMintedAlready",(()=>new k));class v extends Error{constructor(){super("Token mint to failed"),this.code=18,this.name="TokenMintToFailed","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,v)}}e.exports.TokenMintToFailedError=v,a.set(18,(()=>new v)),o.set("TokenMintToFailed",(()=>new v));class x extends Error{constructor(){super("The master edition record passed must match the master record on the edition given"),this.code=19,this.name="MasterRecordMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,x)}}e.exports.MasterRecordMismatchError=x,a.set(19,(()=>new x)),o.set("MasterRecordMismatch",(()=>new x));class R extends Error{constructor(){super("The destination account does not have the right mint"),this.code=20,this.name="DestinationMintMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,R)}}e.exports.DestinationMintMismatchError=R,a.set(20,(()=>new R)),o.set("DestinationMintMismatch",(()=>new R));class A extends Error{constructor(){super("An edition can only mint one of its kind!"),this.code=21,this.name="EditionAlreadyMinted","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,A)}}e.exports.EditionAlreadyMintedError=A,a.set(21,(()=>new A)),o.set("EditionAlreadyMinted",(()=>new A));class I extends Error{constructor(){super("Printing mint decimals should be zero"),this.code=22,this.name="PrintingMintDecimalsShouldBeZero","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,I)}}e.exports.PrintingMintDecimalsShouldBeZeroError=I,a.set(22,(()=>new I)),o.set("PrintingMintDecimalsShouldBeZero",(()=>new I));class S extends Error{constructor(){super("OneTimePrintingAuthorization mint decimals should be zero"),this.code=23,this.name="OneTimePrintingAuthorizationMintDecimalsShouldBeZero","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,S)}}e.exports.OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError=S,a.set(23,(()=>new S)),o.set("OneTimePrintingAuthorizationMintDecimalsShouldBeZero",(()=>new S));class E extends Error{constructor(){super("EditionMintDecimalsShouldBeZero"),this.code=24,this.name="EditionMintDecimalsShouldBeZero","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,E)}}e.exports.EditionMintDecimalsShouldBeZeroError=E,a.set(24,(()=>new E)),o.set("EditionMintDecimalsShouldBeZero",(()=>new E));class T extends Error{constructor(){super("Token burn failed"),this.code=25,this.name="TokenBurnFailed","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,T)}}e.exports.TokenBurnFailedError=T,a.set(25,(()=>new T)),o.set("TokenBurnFailed",(()=>new T));class C extends Error{constructor(){super("The One Time authorization mint does not match that on the token account!"),this.code=26,this.name="TokenAccountOneTimeAuthMintMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,C)}}e.exports.TokenAccountOneTimeAuthMintMismatchError=C,a.set(26,(()=>new C)),o.set("TokenAccountOneTimeAuthMintMismatch",(()=>new C));class U extends Error{constructor(){super("Derived key invalid"),this.code=27,this.name="DerivedKeyInvalid","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,U)}}e.exports.DerivedKeyInvalidError=U,a.set(27,(()=>new U)),o.set("DerivedKeyInvalid",(()=>new U));class M extends Error{constructor(){super("The Printing mint does not match that on the master edition!"),this.code=28,this.name="PrintingMintMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,M)}}e.exports.PrintingMintMismatchError=M,a.set(28,(()=>new M)),o.set("PrintingMintMismatch",(()=>new M));class D extends Error{constructor(){super("The One Time Printing Auth mint does not match that on the master edition!"),this.code=29,this.name="OneTimePrintingAuthMintMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,D)}}e.exports.OneTimePrintingAuthMintMismatchError=D,a.set(29,(()=>new D)),o.set("OneTimePrintingAuthMintMismatch",(()=>new D));class N extends Error{constructor(){super("The mint of the token account does not match the Printing mint!"),this.code=30,this.name="TokenAccountMintMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,N)}}e.exports.TokenAccountMintMismatchError=N,a.set(30,(()=>new N)),o.set("TokenAccountMintMismatch",(()=>new N));class P extends Error{constructor(){super("The mint of the token account does not match the master metadata mint!"),this.code=31,this.name="TokenAccountMintMismatchV2","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,P)}}e.exports.TokenAccountMintMismatchV2Error=P,a.set(31,(()=>new P)),o.set("TokenAccountMintMismatchV2",(()=>new P));class B extends Error{constructor(){super("Not enough tokens to mint a limited edition"),this.code=32,this.name="NotEnoughTokens","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,B)}}e.exports.NotEnoughTokensError=B,a.set(32,(()=>new B)),o.set("NotEnoughTokens",(()=>new B));class L extends Error{constructor(){super("The mint on your authorization token holding account does not match your Printing mint!"),this.code=33,this.name="PrintingMintAuthorizationAccountMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,L)}}e.exports.PrintingMintAuthorizationAccountMismatchError=L,a.set(33,(()=>new L)),o.set("PrintingMintAuthorizationAccountMismatch",(()=>new L));class F extends Error{constructor(){super("The authorization token account has a different owner than the update authority for the master edition!"),this.code=34,this.name="AuthorizationTokenAccountOwnerMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,F)}}e.exports.AuthorizationTokenAccountOwnerMismatchError=F,a.set(34,(()=>new F)),o.set("AuthorizationTokenAccountOwnerMismatch",(()=>new F));class K extends Error{constructor(){super("This feature is currently disabled."),this.code=35,this.name="Disabled","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,K)}}e.exports.DisabledError=K,a.set(35,(()=>new K)),o.set("Disabled",(()=>new K));class G extends Error{constructor(){super("Creators list too long"),this.code=36,this.name="CreatorsTooLong","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,G)}}e.exports.CreatorsTooLongError=G,a.set(36,(()=>new G)),o.set("CreatorsTooLong",(()=>new G));class j extends Error{constructor(){super("Creators must be at least one if set"),this.code=37,this.name="CreatorsMustBeAtleastOne","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,j)}}e.exports.CreatorsMustBeAtleastOneError=j,a.set(37,(()=>new j)),o.set("CreatorsMustBeAtleastOne",(()=>new j));class q extends Error{constructor(){super("If using a creators array, you must be one of the creators listed"),this.code=38,this.name="MustBeOneOfCreators","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,q)}}e.exports.MustBeOneOfCreatorsError=q,a.set(38,(()=>new q)),o.set("MustBeOneOfCreators",(()=>new q));class W extends Error{constructor(){super("This metadata does not have creators"),this.code=39,this.name="NoCreatorsPresentOnMetadata","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,W)}}e.exports.NoCreatorsPresentOnMetadataError=W,a.set(39,(()=>new W)),o.set("NoCreatorsPresentOnMetadata",(()=>new W));class z extends Error{constructor(){super("This creator address was not found"),this.code=40,this.name="CreatorNotFound","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,z)}}e.exports.CreatorNotFoundError=z,a.set(40,(()=>new z)),o.set("CreatorNotFound",(()=>new z));class H extends Error{constructor(){super("Basis points cannot be more than 10000"),this.code=41,this.name="InvalidBasisPoints","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,H)}}e.exports.InvalidBasisPointsError=H,a.set(41,(()=>new H)),o.set("InvalidBasisPoints",(()=>new H));class _ extends Error{constructor(){super("Primary sale can only be flipped to true and is immutable"),this.code=42,this.name="PrimarySaleCanOnlyBeFlippedToTrue","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,_)}}e.exports.PrimarySaleCanOnlyBeFlippedToTrueError=_,a.set(42,(()=>new _)),o.set("PrimarySaleCanOnlyBeFlippedToTrue",(()=>new _));class V extends Error{constructor(){super("Owner does not match that on the account given"),this.code=43,this.name="OwnerMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,V)}}e.exports.OwnerMismatchError=V,a.set(43,(()=>new V)),o.set("OwnerMismatch",(()=>new V));class Y extends Error{constructor(){super("This account has no tokens to be used for authorization"),this.code=44,this.name="NoBalanceInAccountForAuthorization","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Y)}}e.exports.NoBalanceInAccountForAuthorizationError=Y,a.set(44,(()=>new Y)),o.set("NoBalanceInAccountForAuthorization",(()=>new Y));class J extends Error{constructor(){super("Share total must equal 100 for creator array"),this.code=45,this.name="ShareTotalMustBe100","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,J)}}e.exports.ShareTotalMustBe100Error=J,a.set(45,(()=>new J)),o.set("ShareTotalMustBe100",(()=>new J));class X extends Error{constructor(){super("This reservation list already exists!"),this.code=46,this.name="ReservationExists","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,X)}}e.exports.ReservationExistsError=X,a.set(46,(()=>new X)),o.set("ReservationExists",(()=>new X));class O extends Error{constructor(){super("This reservation list does not exist!"),this.code=47,this.name="ReservationDoesNotExist","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,O)}}e.exports.ReservationDoesNotExistError=O,a.set(47,(()=>new O)),o.set("ReservationDoesNotExist",(()=>new O));class Z extends Error{constructor(){super("This reservation list exists but was never set with reservations"),this.code=48,this.name="ReservationNotSet","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Z)}}e.exports.ReservationNotSetError=Z,a.set(48,(()=>new Z)),o.set("ReservationNotSet",(()=>new Z));class Q extends Error{constructor(){super("This reservation list has already been set!"),this.code=49,this.name="ReservationAlreadyMade","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Q)}}e.exports.ReservationAlreadyMadeError=Q,a.set(49,(()=>new Q)),o.set("ReservationAlreadyMade",(()=>new Q));class ee extends Error{constructor(){super("Provided more addresses than max allowed in single reservation"),this.code=50,this.name="BeyondMaxAddressSize","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ee)}}e.exports.BeyondMaxAddressSizeError=ee,a.set(50,(()=>new ee)),o.set("BeyondMaxAddressSize",(()=>new ee));class te extends Error{constructor(){super("NumericalOverflowError"),this.code=51,this.name="NumericalOverflowError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,te)}}e.exports.NumericalOverflowErrorError=te,a.set(51,(()=>new te)),o.set("NumericalOverflowError",(()=>new te));class ae extends Error{constructor(){super("This reservation would go beyond the maximum supply of the master edition!"),this.code=52,this.name="ReservationBreachesMaximumSupply","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ae)}}e.exports.ReservationBreachesMaximumSupplyError=ae,a.set(52,(()=>new ae)),o.set("ReservationBreachesMaximumSupply",(()=>new ae));class oe extends Error{constructor(){super("Address not in reservation!"),this.code=53,this.name="AddressNotInReservation","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,oe)}}e.exports.AddressNotInReservationError=oe,a.set(53,(()=>new oe)),o.set("AddressNotInReservation",(()=>new oe));class ne extends Error{constructor(){super("You cannot unilaterally verify another creator, they must sign"),this.code=54,this.name="CannotVerifyAnotherCreator","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ne)}}e.exports.CannotVerifyAnotherCreatorError=ne,a.set(54,(()=>new ne)),o.set("CannotVerifyAnotherCreator",(()=>new ne));class se extends Error{constructor(){super("You cannot unilaterally unverify another creator"),this.code=55,this.name="CannotUnverifyAnotherCreator","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,se)}}e.exports.CannotUnverifyAnotherCreatorError=se,a.set(55,(()=>new se)),o.set("CannotUnverifyAnotherCreator",(()=>new se));class re extends Error{constructor(){super("In initial reservation setting, spots remaining should equal total spots"),this.code=56,this.name="SpotMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,re)}}e.exports.SpotMismatchError=re,a.set(56,(()=>new re)),o.set("SpotMismatch",(()=>new re));class ie extends Error{constructor(){super("Incorrect account owner"),this.code=57,this.name="IncorrectOwner","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ie)}}e.exports.IncorrectOwnerError=ie,a.set(57,(()=>new ie)),o.set("IncorrectOwner",(()=>new ie));class ce extends Error{constructor(){super("printing these tokens would breach the maximum supply limit of the master edition"),this.code=58,this.name="PrintingWouldBreachMaximumSupply","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ce)}}e.exports.PrintingWouldBreachMaximumSupplyError=ce,a.set(58,(()=>new ce)),o.set("PrintingWouldBreachMaximumSupply",(()=>new ce));class de extends Error{constructor(){super("Data is immutable"),this.code=59,this.name="DataIsImmutable","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,de)}}e.exports.DataIsImmutableError=de,a.set(59,(()=>new de)),o.set("DataIsImmutable",(()=>new de));class le extends Error{constructor(){super("No duplicate creator addresses"),this.code=60,this.name="DuplicateCreatorAddress","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,le)}}e.exports.DuplicateCreatorAddressError=le,a.set(60,(()=>new le)),o.set("DuplicateCreatorAddress",(()=>new le));class me extends Error{constructor(){super("Reservation spots remaining should match total spots when first being created"),this.code=61,this.name="ReservationSpotsRemainingShouldMatchTotalSpotsAtStart","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,me)}}e.exports.ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError=me,a.set(61,(()=>new me)),o.set("ReservationSpotsRemainingShouldMatchTotalSpotsAtStart",(()=>new me));class ue extends Error{constructor(){super("Invalid token program"),this.code=62,this.name="InvalidTokenProgram","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ue)}}e.exports.InvalidTokenProgramError=ue,a.set(62,(()=>new ue)),o.set("InvalidTokenProgram",(()=>new ue));class pe extends Error{constructor(){super("Data type mismatch"),this.code=63,this.name="DataTypeMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,pe)}}e.exports.DataTypeMismatchError=pe,a.set(63,(()=>new pe)),o.set("DataTypeMismatch",(()=>new pe));class he extends Error{constructor(){super("Beyond alotted address size in reservation!"),this.code=64,this.name="BeyondAlottedAddressSize","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,he)}}e.exports.BeyondAlottedAddressSizeError=he,a.set(64,(()=>new he)),o.set("BeyondAlottedAddressSize",(()=>new he));class ge extends Error{constructor(){super("The reservation has only been partially alotted"),this.code=65,this.name="ReservationNotComplete","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ge)}}e.exports.ReservationNotCompleteError=ge,a.set(65,(()=>new ge)),o.set("ReservationNotComplete",(()=>new ge));class be extends Error{constructor(){super("You cannot splice over an existing reservation!"),this.code=66,this.name="TriedToReplaceAnExistingReservation","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,be)}}e.exports.TriedToReplaceAnExistingReservationError=be,a.set(66,(()=>new be)),o.set("TriedToReplaceAnExistingReservation",(()=>new be));class fe extends Error{constructor(){super("Invalid operation"),this.code=67,this.name="InvalidOperation","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,fe)}}e.exports.InvalidOperationError=fe,a.set(67,(()=>new fe)),o.set("InvalidOperation",(()=>new fe));class ye extends Error{constructor(){super("Invalid Owner"),this.code=68,this.name="InvalidOwner","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ye)}}e.exports.InvalidOwnerError=ye,a.set(68,(()=>new ye)),o.set("InvalidOwner",(()=>new ye));class $e extends Error{constructor(){super("Printing mint supply must be zero for conversion"),this.code=69,this.name="PrintingMintSupplyMustBeZeroForConversion","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,$e)}}e.exports.PrintingMintSupplyMustBeZeroForConversionError=$e,a.set(69,(()=>new $e)),o.set("PrintingMintSupplyMustBeZeroForConversion",(()=>new $e));class we extends Error{constructor(){super("One Time Auth mint supply must be zero for conversion"),this.code=70,this.name="OneTimeAuthMintSupplyMustBeZeroForConversion","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,we)}}e.exports.OneTimeAuthMintSupplyMustBeZeroForConversionError=we,a.set(70,(()=>new we)),o.set("OneTimeAuthMintSupplyMustBeZeroForConversion",(()=>new we));class ke extends Error{constructor(){super("You tried to insert one edition too many into an edition mark pda"),this.code=71,this.name="InvalidEditionIndex","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ke)}}e.exports.InvalidEditionIndexError=ke,a.set(71,(()=>new ke)),o.set("InvalidEditionIndex",(()=>new ke));class ve extends Error{constructor(){super("In the legacy system the reservation needs to be of size one for cpu limit reasons"),this.code=72,this.name="ReservationArrayShouldBeSizeOne","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ve)}}e.exports.ReservationArrayShouldBeSizeOneError=ve,a.set(72,(()=>new ve)),o.set("ReservationArrayShouldBeSizeOne",(()=>new ve));class xe extends Error{constructor(){super("Is Mutable can only be flipped to false"),this.code=73,this.name="IsMutableCanOnlyBeFlippedToFalse","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,xe)}}e.exports.IsMutableCanOnlyBeFlippedToFalseError=xe,a.set(73,(()=>new xe)),o.set("IsMutableCanOnlyBeFlippedToFalse",(()=>new xe));class Re extends Error{constructor(){super("Collection cannot be verified in this instruction"),this.code=74,this.name="CollectionCannotBeVerifiedInThisInstruction","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Re)}}e.exports.CollectionCannotBeVerifiedInThisInstructionError=Re,a.set(74,(()=>new Re)),o.set("CollectionCannotBeVerifiedInThisInstruction",(()=>new Re));class Ae extends Error{constructor(){super("This instruction was deprecated in a previous release and is now removed"),this.code=75,this.name="Removed","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ae)}}e.exports.RemovedError=Ae,a.set(75,(()=>new Ae)),o.set("Removed",(()=>new Ae));class Ie extends Error{constructor(){super("This token use method is burn and there are no remaining uses, it must be burned"),this.code=76,this.name="MustBeBurned","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ie)}}e.exports.MustBeBurnedError=Ie,a.set(76,(()=>new Ie)),o.set("MustBeBurned",(()=>new Ie));class Se extends Error{constructor(){super("This use method is invalid"),this.code=77,this.name="InvalidUseMethod","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Se)}}e.exports.InvalidUseMethodError=Se,a.set(77,(()=>new Se)),o.set("InvalidUseMethod",(()=>new Se));class Ee extends Error{constructor(){super("Cannot Change Use Method after the first use"),this.code=78,this.name="CannotChangeUseMethodAfterFirstUse","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ee)}}e.exports.CannotChangeUseMethodAfterFirstUseError=Ee,a.set(78,(()=>new Ee)),o.set("CannotChangeUseMethodAfterFirstUse",(()=>new Ee));class Te extends Error{constructor(){super("Cannot Change Remaining or Available uses after the first use"),this.code=79,this.name="CannotChangeUsesAfterFirstUse","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Te)}}e.exports.CannotChangeUsesAfterFirstUseError=Te,a.set(79,(()=>new Te)),o.set("CannotChangeUsesAfterFirstUse",(()=>new Te));class Ce extends Error{constructor(){super("Collection Not Found on Metadata"),this.code=80,this.name="CollectionNotFound","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ce)}}e.exports.CollectionNotFoundError=Ce,a.set(80,(()=>new Ce)),o.set("CollectionNotFound",(()=>new Ce));class Ue extends Error{constructor(){super("Collection Update Authority is invalid"),this.code=81,this.name="InvalidCollectionUpdateAuthority","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ue)}}e.exports.InvalidCollectionUpdateAuthorityError=Ue,a.set(81,(()=>new Ue)),o.set("InvalidCollectionUpdateAuthority",(()=>new Ue));class Me extends Error{constructor(){super("Collection Must Be a Unique Master Edition v2"),this.code=82,this.name="CollectionMustBeAUniqueMasterEdition","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Me)}}e.exports.CollectionMustBeAUniqueMasterEditionError=Me,a.set(82,(()=>new Me)),o.set("CollectionMustBeAUniqueMasterEdition",(()=>new Me));class De extends Error{constructor(){super("The Use Authority Record Already Exists, to modify it Revoke, then Approve"),this.code=83,this.name="UseAuthorityRecordAlreadyExists","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,De)}}e.exports.UseAuthorityRecordAlreadyExistsError=De,a.set(83,(()=>new De)),o.set("UseAuthorityRecordAlreadyExists",(()=>new De));class Ne extends Error{constructor(){super("The Use Authority Record is empty or already revoked"),this.code=84,this.name="UseAuthorityRecordAlreadyRevoked","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ne)}}e.exports.UseAuthorityRecordAlreadyRevokedError=Ne,a.set(84,(()=>new Ne)),o.set("UseAuthorityRecordAlreadyRevoked",(()=>new Ne));class Pe extends Error{constructor(){super("This token has no uses"),this.code=85,this.name="Unusable","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Pe)}}e.exports.UnusableError=Pe,a.set(85,(()=>new Pe)),o.set("Unusable",(()=>new Pe));class Be extends Error{constructor(){super("There are not enough Uses left on this token."),this.code=86,this.name="NotEnoughUses","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Be)}}e.exports.NotEnoughUsesError=Be,a.set(86,(()=>new Be)),o.set("NotEnoughUses",(()=>new Be));class Le extends Error{constructor(){super("This Collection Authority Record Already Exists."),this.code=87,this.name="CollectionAuthorityRecordAlreadyExists","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Le)}}e.exports.CollectionAuthorityRecordAlreadyExistsError=Le,a.set(87,(()=>new Le)),o.set("CollectionAuthorityRecordAlreadyExists",(()=>new Le));class Fe extends Error{constructor(){super("This Collection Authority Record Does Not Exist."),this.code=88,this.name="CollectionAuthorityDoesNotExist","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Fe)}}e.exports.CollectionAuthorityDoesNotExistError=Fe,a.set(88,(()=>new Fe)),o.set("CollectionAuthorityDoesNotExist",(()=>new Fe));class Ke extends Error{constructor(){super("This Use Authority Record is invalid."),this.code=89,this.name="InvalidUseAuthorityRecord","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ke)}}e.exports.InvalidUseAuthorityRecordError=Ke,a.set(89,(()=>new Ke)),o.set("InvalidUseAuthorityRecord",(()=>new Ke));class Ge extends Error{constructor(){super("This Collection Authority Record is invalid."),this.code=90,this.name="InvalidCollectionAuthorityRecord","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ge)}}e.exports.InvalidCollectionAuthorityRecordError=Ge,a.set(90,(()=>new Ge)),o.set("InvalidCollectionAuthorityRecord",(()=>new Ge));class je extends Error{constructor(){super("Metadata does not match the freeze authority on the mint"),this.code=91,this.name="InvalidFreezeAuthority","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,je)}}e.exports.InvalidFreezeAuthorityError=je,a.set(91,(()=>new je)),o.set("InvalidFreezeAuthority",(()=>new je));class qe extends Error{constructor(){super("All tokens in this account have not been delegated to this user."),this.code=92,this.name="InvalidDelegate","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,qe)}}e.exports.InvalidDelegateError=qe,a.set(92,(()=>new qe)),o.set("InvalidDelegate",(()=>new qe));class We extends Error{constructor(){super("Creator can not be adjusted once they are verified."),this.code=93,this.name="CannotAdjustVerifiedCreator","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,We)}}e.exports.CannotAdjustVerifiedCreatorError=We,a.set(93,(()=>new We)),o.set("CannotAdjustVerifiedCreator",(()=>new We));class ze extends Error{constructor(){super("Verified creators cannot be removed."),this.code=94,this.name="CannotRemoveVerifiedCreator","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ze)}}e.exports.CannotRemoveVerifiedCreatorError=ze,a.set(94,(()=>new ze)),o.set("CannotRemoveVerifiedCreator",(()=>new ze));class He extends Error{constructor(){super("Can not wipe verified creators."),this.code=95,this.name="CannotWipeVerifiedCreators","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,He)}}e.exports.CannotWipeVerifiedCreatorsError=He,a.set(95,(()=>new He)),o.set("CannotWipeVerifiedCreators",(()=>new He));class _e extends Error{constructor(){super("Not allowed to change seller fee basis points."),this.code=96,this.name="NotAllowedToChangeSellerFeeBasisPoints","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,_e)}}e.exports.NotAllowedToChangeSellerFeeBasisPointsError=_e,a.set(96,(()=>new _e)),o.set("NotAllowedToChangeSellerFeeBasisPoints",(()=>new _e));class Ve extends Error{constructor(){super("Edition override cannot be zero"),this.code=97,this.name="EditionOverrideCannotBeZero","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ve)}}e.exports.EditionOverrideCannotBeZeroError=Ve,a.set(97,(()=>new Ve)),o.set("EditionOverrideCannotBeZero",(()=>new Ve));class Ye extends Error{constructor(){super("Invalid User"),this.code=98,this.name="InvalidUser","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ye)}}e.exports.InvalidUserError=Ye,a.set(98,(()=>new Ye)),o.set("InvalidUser",(()=>new Ye));class Je extends Error{constructor(){super("Revoke Collection Authority signer is incorrect"),this.code=99,this.name="RevokeCollectionAuthoritySignerIncorrect","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Je)}}e.exports.RevokeCollectionAuthoritySignerIncorrectError=Je,a.set(99,(()=>new Je)),o.set("RevokeCollectionAuthoritySignerIncorrect",(()=>new Je));class Xe extends Error{constructor(){super("Token close failed"),this.code=100,this.name="TokenCloseFailed","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Xe)}}e.exports.TokenCloseFailedError=Xe,a.set(100,(()=>new Xe)),o.set("TokenCloseFailed",(()=>new Xe));class Oe extends Error{constructor(){super("Can't use this function on unsized collection"),this.code=101,this.name="UnsizedCollection","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Oe)}}e.exports.UnsizedCollectionError=Oe,a.set(101,(()=>new Oe)),o.set("UnsizedCollection",(()=>new Oe));class Ze extends Error{constructor(){super("Can't use this function on a sized collection"),this.code=102,this.name="SizedCollection","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ze)}}e.exports.SizedCollectionError=Ze,a.set(102,(()=>new Ze)),o.set("SizedCollection",(()=>new Ze));class Qe extends Error{constructor(){super("Missing collection metadata account"),this.code=103,this.name="MissingCollectionMetadata","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Qe)}}e.exports.MissingCollectionMetadataError=Qe,a.set(103,(()=>new Qe)),o.set("MissingCollectionMetadata",(()=>new Qe));class et extends Error{constructor(){super("This NFT is not a member of the specified collection."),this.code=104,this.name="NotAMemberOfCollection","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,et)}}e.exports.NotAMemberOfCollectionError=et,a.set(104,(()=>new et)),o.set("NotAMemberOfCollection",(()=>new et));class tt extends Error{constructor(){super("This NFT is not a verified member of the specified collection."),this.code=105,this.name="NotVerifiedMemberOfCollection","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,tt)}}e.exports.NotVerifiedMemberOfCollectionError=tt,a.set(105,(()=>new tt)),o.set("NotVerifiedMemberOfCollection",(()=>new tt));class at extends Error{constructor(){super("This NFT is not a collection parent NFT."),this.code=106,this.name="NotACollectionParent","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,at)}}e.exports.NotACollectionParentError=at,a.set(106,(()=>new at)),o.set("NotACollectionParent",(()=>new at));class ot extends Error{constructor(){super("Could not determine a TokenStandard type."),this.code=107,this.name="CouldNotDetermineTokenStandard","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ot)}}e.exports.CouldNotDetermineTokenStandardError=ot,a.set(107,(()=>new ot)),o.set("CouldNotDetermineTokenStandard",(()=>new ot));class nt extends Error{constructor(){super("This mint account has an edition but none was provided."),this.code=108,this.name="MissingEditionAccount","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,nt)}}e.exports.MissingEditionAccountError=nt,a.set(108,(()=>new nt)),o.set("MissingEditionAccount",(()=>new nt));class st extends Error{constructor(){super("This edition is not a Master Edition"),this.code=109,this.name="NotAMasterEdition","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,st)}}e.exports.NotAMasterEditionError=st,a.set(109,(()=>new st)),o.set("NotAMasterEdition",(()=>new st));class rt extends Error{constructor(){super("This Master Edition has existing prints"),this.code=110,this.name="MasterEditionHasPrints","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,rt)}}e.exports.MasterEditionHasPrintsError=rt,a.set(110,(()=>new rt)),o.set("MasterEditionHasPrints",(()=>new rt));class it extends Error{constructor(){super("Borsh Deserialization Error"),this.code=111,this.name="BorshDeserializationError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,it)}}e.exports.BorshDeserializationErrorError=it,a.set(111,(()=>new it)),o.set("BorshDeserializationError",(()=>new it));class ct extends Error{constructor(){super("Cannot update a verified collection in this command"),this.code=112,this.name="CannotUpdateVerifiedCollection","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ct)}}e.exports.CannotUpdateVerifiedCollectionError=ct,a.set(112,(()=>new ct)),o.set("CannotUpdateVerifiedCollection",(()=>new ct));class dt extends Error{constructor(){super("Edition account doesnt match collection "),this.code=113,this.name="CollectionMasterEditionAccountInvalid","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,dt)}}e.exports.CollectionMasterEditionAccountInvalidError=dt,a.set(113,(()=>new dt)),o.set("CollectionMasterEditionAccountInvalid",(()=>new dt));class lt extends Error{constructor(){super("Item is already verified."),this.code=114,this.name="AlreadyVerified","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,lt)}}e.exports.AlreadyVerifiedError=lt,a.set(114,(()=>new lt)),o.set("AlreadyVerified",(()=>new lt));class mt extends Error{constructor(){super("Item is already unverified."),this.code=115,this.name="AlreadyUnverified","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,mt)}}e.exports.AlreadyUnverifiedError=mt,a.set(115,(()=>new mt)),o.set("AlreadyUnverified",(()=>new mt));class ut extends Error{constructor(){super("This edition is not a Print Edition"),this.code=116,this.name="NotAPrintEdition","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ut)}}e.exports.NotAPrintEditionError=ut,a.set(116,(()=>new ut)),o.set("NotAPrintEdition",(()=>new ut));class pt extends Error{constructor(){super("Invalid Master Edition"),this.code=117,this.name="InvalidMasterEdition","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,pt)}}e.exports.InvalidMasterEditionError=pt,a.set(117,(()=>new pt)),o.set("InvalidMasterEdition",(()=>new pt));class ht extends Error{constructor(){super("Invalid Print Edition"),this.code=118,this.name="InvalidPrintEdition","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ht)}}e.exports.InvalidPrintEditionError=ht,a.set(118,(()=>new ht)),o.set("InvalidPrintEdition",(()=>new ht));class gt extends Error{constructor(){super("Invalid Edition Marker"),this.code=119,this.name="InvalidEditionMarker","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,gt)}}e.exports.InvalidEditionMarkerError=gt,a.set(119,(()=>new gt)),o.set("InvalidEditionMarker",(()=>new gt));class bt extends Error{constructor(){super("Reservation List is Deprecated"),this.code=120,this.name="ReservationListDeprecated","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,bt)}}e.exports.ReservationListDeprecatedError=bt,a.set(120,(()=>new bt)),o.set("ReservationListDeprecated",(()=>new bt));class ft extends Error{constructor(){super("Print Edition does not match Master Edition"),this.code=121,this.name="PrintEditionDoesNotMatchMasterEdition","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ft)}}e.exports.PrintEditionDoesNotMatchMasterEditionError=ft,a.set(121,(()=>new ft)),o.set("PrintEditionDoesNotMatchMasterEdition",(()=>new ft));class yt extends Error{constructor(){super("Edition Number greater than max supply"),this.code=122,this.name="EditionNumberGreaterThanMaxSupply","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,yt)}}e.exports.EditionNumberGreaterThanMaxSupplyError=yt,a.set(122,(()=>new yt)),o.set("EditionNumberGreaterThanMaxSupply",(()=>new yt));class $t extends Error{constructor(){super("Must unverify before migrating collections."),this.code=123,this.name="MustUnverify","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,$t)}}e.exports.MustUnverifyError=$t,a.set(123,(()=>new $t)),o.set("MustUnverify",(()=>new $t));class wt extends Error{constructor(){super("Invalid Escrow Account Bump Seed"),this.code=124,this.name="InvalidEscrowBumpSeed","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,wt)}}e.exports.InvalidEscrowBumpSeedError=wt,a.set(124,(()=>new wt)),o.set("InvalidEscrowBumpSeed",(()=>new wt));class kt extends Error{constructor(){super("Must Escrow Authority"),this.code=125,this.name="MustBeEscrowAuthority","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,kt)}}e.exports.MustBeEscrowAuthorityError=kt,a.set(125,(()=>new kt)),o.set("MustBeEscrowAuthority",(()=>new kt));class vt extends Error{constructor(){super("Invalid System Program"),this.code=126,this.name="InvalidSystemProgram","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,vt)}}e.exports.InvalidSystemProgramError=vt,a.set(126,(()=>new vt)),o.set("InvalidSystemProgram",(()=>new vt));class xt extends Error{constructor(){super("Must be a Non Fungible Token"),this.code=127,this.name="MustBeNonFungible","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,xt)}}e.exports.MustBeNonFungibleError=xt,a.set(127,(()=>new xt)),o.set("MustBeNonFungible",(()=>new xt));class Rt extends Error{constructor(){super("Insufficient tokens for transfer"),this.code=128,this.name="InsufficientTokens","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Rt)}}e.exports.InsufficientTokensError=Rt,a.set(128,(()=>new Rt)),o.set("InsufficientTokens",(()=>new Rt));class At extends Error{constructor(){super("Borsh Serialization Error"),this.code=129,this.name="BorshSerializationError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,At)}}e.exports.BorshSerializationErrorError=At,a.set(129,(()=>new At)),o.set("BorshSerializationError",(()=>new At));class It extends Error{constructor(){super("Cannot create NFT with no Freeze Authority."),this.code=130,this.name="NoFreezeAuthoritySet","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,It)}}e.exports.NoFreezeAuthoritySetError=It,a.set(130,(()=>new It)),o.set("NoFreezeAuthoritySet",(()=>new It));class St extends Error{constructor(){super("Invalid collection size change"),this.code=131,this.name="InvalidCollectionSizeChange","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,St)}}e.exports.InvalidCollectionSizeChangeError=St,a.set(131,(()=>new St)),o.set("InvalidCollectionSizeChange",(()=>new St));class Et extends Error{constructor(){super("Invalid bubblegum signer"),this.code=132,this.name="InvalidBubblegumSigner","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Et)}}e.exports.InvalidBubblegumSignerError=Et,a.set(132,(()=>new Et)),o.set("InvalidBubblegumSigner",(()=>new Et));class Tt extends Error{constructor(){super("Escrow parent cannot have a delegate"),this.code=133,this.name="EscrowParentHasDelegate","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Tt)}}e.exports.EscrowParentHasDelegateError=Tt,a.set(133,(()=>new Tt)),o.set("EscrowParentHasDelegate",(()=>new Tt));class Ct extends Error{constructor(){super("Mint needs to be signer to initialize the account"),this.code=134,this.name="MintIsNotSigner","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ct)}}e.exports.MintIsNotSignerError=Ct,a.set(134,(()=>new Ct)),o.set("MintIsNotSigner",(()=>new Ct));class Ut extends Error{constructor(){super("Invalid token standard"),this.code=135,this.name="InvalidTokenStandard","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ut)}}e.exports.InvalidTokenStandardError=Ut,a.set(135,(()=>new Ut)),o.set("InvalidTokenStandard",(()=>new Ut));class Mt extends Error{constructor(){super("Invalid mint account for specified token standard"),this.code=136,this.name="InvalidMintForTokenStandard","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Mt)}}e.exports.InvalidMintForTokenStandardError=Mt,a.set(136,(()=>new Mt)),o.set("InvalidMintForTokenStandard",(()=>new Mt));class Dt extends Error{constructor(){super("Invalid authorization rules account"),this.code=137,this.name="InvalidAuthorizationRules","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Dt)}}e.exports.InvalidAuthorizationRulesError=Dt,a.set(137,(()=>new Dt)),o.set("InvalidAuthorizationRules",(()=>new Dt));class Nt extends Error{constructor(){super("Missing authorization rules account"),this.code=138,this.name="MissingAuthorizationRules","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Nt)}}e.exports.MissingAuthorizationRulesError=Nt,a.set(138,(()=>new Nt)),o.set("MissingAuthorizationRules",(()=>new Nt));class Pt extends Error{constructor(){super("Missing programmable configuration"),this.code=139,this.name="MissingProgrammableConfig","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Pt)}}e.exports.MissingProgrammableConfigError=Pt,a.set(139,(()=>new Pt)),o.set("MissingProgrammableConfig",(()=>new Pt));class Bt extends Error{constructor(){super("Invalid programmable configuration"),this.code=140,this.name="InvalidProgrammableConfig","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Bt)}}e.exports.InvalidProgrammableConfigError=Bt,a.set(140,(()=>new Bt)),o.set("InvalidProgrammableConfig",(()=>new Bt));class Lt extends Error{constructor(){super("Delegate already exists"),this.code=141,this.name="DelegateAlreadyExists","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Lt)}}e.exports.DelegateAlreadyExistsError=Lt,a.set(141,(()=>new Lt)),o.set("DelegateAlreadyExists",(()=>new Lt));class Ft extends Error{constructor(){super("Delegate not found"),this.code=142,this.name="DelegateNotFound","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ft)}}e.exports.DelegateNotFoundError=Ft,a.set(142,(()=>new Ft)),o.set("DelegateNotFound",(()=>new Ft));class Kt extends Error{constructor(){super("Required account not set in instruction builder"),this.code=143,this.name="MissingAccountInBuilder","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Kt)}}e.exports.MissingAccountInBuilderError=Kt,a.set(143,(()=>new Kt)),o.set("MissingAccountInBuilder",(()=>new Kt));class Gt extends Error{constructor(){super("Required argument not set in instruction builder"),this.code=144,this.name="MissingArgumentInBuilder","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Gt)}}e.exports.MissingArgumentInBuilderError=Gt,a.set(144,(()=>new Gt)),o.set("MissingArgumentInBuilder",(()=>new Gt));class jt extends Error{constructor(){super("Feature not supported currently"),this.code=145,this.name="FeatureNotSupported","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,jt)}}e.exports.FeatureNotSupportedError=jt,a.set(145,(()=>new jt)),o.set("FeatureNotSupported",(()=>new jt));class qt extends Error{constructor(){super("Invalid system wallet"),this.code=146,this.name="InvalidSystemWallet","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,qt)}}e.exports.InvalidSystemWalletError=qt,a.set(146,(()=>new qt)),o.set("InvalidSystemWallet",(()=>new qt));class Wt extends Error{constructor(){super("Only the sale delegate can transfer while its set"),this.code=147,this.name="OnlySaleDelegateCanTransfer","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Wt)}}e.exports.OnlySaleDelegateCanTransferError=Wt,a.set(147,(()=>new Wt)),o.set("OnlySaleDelegateCanTransfer",(()=>new Wt));class zt extends Error{constructor(){super("Missing token account"),this.code=148,this.name="MissingTokenAccount","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,zt)}}e.exports.MissingTokenAccountError=zt,a.set(148,(()=>new zt)),o.set("MissingTokenAccount",(()=>new zt));class Ht extends Error{constructor(){super("Missing SPL token program"),this.code=149,this.name="MissingSplTokenProgram","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ht)}}e.exports.MissingSplTokenProgramError=Ht,a.set(149,(()=>new Ht)),o.set("MissingSplTokenProgram",(()=>new Ht));class _t extends Error{constructor(){super("Missing authorization rules program"),this.code=150,this.name="MissingAuthorizationRulesProgram","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,_t)}}e.exports.MissingAuthorizationRulesProgramError=_t,a.set(150,(()=>new _t)),o.set("MissingAuthorizationRulesProgram",(()=>new _t));class Vt extends Error{constructor(){super("Invalid delegate role for transfer"),this.code=151,this.name="InvalidDelegateRoleForTransfer","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Vt)}}e.exports.InvalidDelegateRoleForTransferError=Vt,a.set(151,(()=>new Vt)),o.set("InvalidDelegateRoleForTransfer",(()=>new Vt));class Yt extends Error{constructor(){super("Invalid transfer authority"),this.code=152,this.name="InvalidTransferAuthority","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Yt)}}e.exports.InvalidTransferAuthorityError=Yt,a.set(152,(()=>new Yt)),o.set("InvalidTransferAuthority",(()=>new Yt));class Jt extends Error{constructor(){super("Instruction not supported for ProgrammableNonFungible assets"),this.code=153,this.name="InstructionNotSupported","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Jt)}}e.exports.InstructionNotSupportedError=Jt,a.set(153,(()=>new Jt)),o.set("InstructionNotSupported",(()=>new Jt));class Xt extends Error{constructor(){super("Public key does not match expected value"),this.code=154,this.name="KeyMismatch","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Xt)}}e.exports.KeyMismatchError=Xt,a.set(154,(()=>new Xt)),o.set("KeyMismatch",(()=>new Xt));class Ot extends Error{constructor(){super("Token is locked"),this.code=155,this.name="LockedToken","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ot)}}e.exports.LockedTokenError=Ot,a.set(155,(()=>new Ot)),o.set("LockedToken",(()=>new Ot));class Zt extends Error{constructor(){super("Token is unlocked"),this.code=156,this.name="UnlockedToken","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Zt)}}e.exports.UnlockedTokenError=Zt,a.set(156,(()=>new Zt)),o.set("UnlockedToken",(()=>new Zt));class Qt extends Error{constructor(){super("Missing delegate role"),this.code=157,this.name="MissingDelegateRole","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Qt)}}e.exports.MissingDelegateRoleError=Qt,a.set(157,(()=>new Qt)),o.set("MissingDelegateRole",(()=>new Qt));class ea extends Error{constructor(){super("Invalid authority type"),this.code=158,this.name="InvalidAuthorityType","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ea)}}e.exports.InvalidAuthorityTypeError=ea,a.set(158,(()=>new ea)),o.set("InvalidAuthorityType",(()=>new ea));class ta extends Error{constructor(){super("Missing token record account"),this.code=159,this.name="MissingTokenRecord","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ta)}}e.exports.MissingTokenRecordError=ta,a.set(159,(()=>new ta)),o.set("MissingTokenRecord",(()=>new ta));class aa extends Error{constructor(){super("Mint supply must be zero for programmable assets"),this.code=160,this.name="MintSupplyMustBeZero","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,aa)}}e.exports.MintSupplyMustBeZeroError=aa,a.set(160,(()=>new aa)),o.set("MintSupplyMustBeZero",(()=>new aa));class oa extends Error{constructor(){super("Data is empty or zeroed"),this.code=161,this.name="DataIsEmptyOrZeroed","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,oa)}}e.exports.DataIsEmptyOrZeroedError=oa,a.set(161,(()=>new oa)),o.set("DataIsEmptyOrZeroed",(()=>new oa));class na extends Error{constructor(){super("Missing token owner"),this.code=162,this.name="MissingTokenOwnerAccount","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,na)}}e.exports.MissingTokenOwnerAccountError=na,a.set(162,(()=>new na)),o.set("MissingTokenOwnerAccount",(()=>new na));class sa extends Error{constructor(){super("Master edition account has an invalid length"),this.code=163,this.name="InvalidMasterEditionAccountLength","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,sa)}}e.exports.InvalidMasterEditionAccountLengthError=sa,a.set(163,(()=>new sa)),o.set("InvalidMasterEditionAccountLength",(()=>new sa));class ra extends Error{constructor(){super("Incorrect token state"),this.code=164,this.name="IncorrectTokenState","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ra)}}e.exports.IncorrectTokenStateError=ra,a.set(164,(()=>new ra)),o.set("IncorrectTokenState",(()=>new ra));class ia extends Error{constructor(){super("Invalid delegate role"),this.code=165,this.name="InvalidDelegateRole","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ia)}}e.exports.InvalidDelegateRoleError=ia,a.set(165,(()=>new ia)),o.set("InvalidDelegateRole",(()=>new ia));class ca extends Error{constructor(){super("Print supply is required for non-fungibles"),this.code=166,this.name="MissingPrintSupply","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ca)}}e.exports.MissingPrintSupplyError=ca,a.set(166,(()=>new ca)),o.set("MissingPrintSupply",(()=>new ca));class da extends Error{constructor(){super("Missing master edition account"),this.code=167,this.name="MissingMasterEditionAccount","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,da)}}e.exports.MissingMasterEditionAccountError=da,a.set(167,(()=>new da)),o.set("MissingMasterEditionAccount",(()=>new da));class la extends Error{constructor(){super("Amount must be greater than zero"),this.code=168,this.name="AmountMustBeGreaterThanZero","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,la)}}e.exports.AmountMustBeGreaterThanZeroError=la,a.set(168,(()=>new la)),o.set("AmountMustBeGreaterThanZero",(()=>new la));class ma extends Error{constructor(){super("Invalid delegate args"),this.code=169,this.name="InvalidDelegateArgs","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ma)}}e.exports.InvalidDelegateArgsError=ma,a.set(169,(()=>new ma)),o.set("InvalidDelegateArgs",(()=>new ma));class ua extends Error{constructor(){super("Missing address for locked transfer"),this.code=170,this.name="MissingLockedTransferAddress","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ua)}}e.exports.MissingLockedTransferAddressError=ua,a.set(170,(()=>new ua)),o.set("MissingLockedTransferAddress",(()=>new ua));class pa extends Error{constructor(){super("Invalid destination address for locked transfer"),this.code=171,this.name="InvalidLockedTransferAddress","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,pa)}}e.exports.InvalidLockedTransferAddressError=pa,a.set(171,(()=>new pa)),o.set("InvalidLockedTransferAddress",(()=>new pa));class ha extends Error{constructor(){super("Exceeded account realloc increase limit"),this.code=172,this.name="DataIncrementLimitExceeded","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ha)}}e.exports.DataIncrementLimitExceededError=ha,a.set(172,(()=>new ha)),o.set("DataIncrementLimitExceeded",(()=>new ha));class ga extends Error{constructor(){super("Cannot update the rule set of a programmable asset that has a delegate"),this.code=173,this.name="CannotUpdateAssetWithDelegate","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ga)}}e.exports.CannotUpdateAssetWithDelegateError=ga,a.set(173,(()=>new ga)),o.set("CannotUpdateAssetWithDelegate",(()=>new ga));class ba extends Error{constructor(){super("Invalid token amount for this operation or token standard"),this.code=174,this.name="InvalidAmount","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ba)}}e.exports.InvalidAmountError=ba,a.set(174,(()=>new ba)),o.set("InvalidAmount",(()=>new ba));class fa extends Error{constructor(){super("Missing master edition mint account"),this.code=175,this.name="MissingMasterEditionMintAccount","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,fa)}}e.exports.MissingMasterEditionMintAccountError=fa,a.set(175,(()=>new fa)),o.set("MissingMasterEditionMintAccount",(()=>new fa));class ya extends Error{constructor(){super("Missing master edition token account"),this.code=176,this.name="MissingMasterEditionTokenAccount","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ya)}}e.exports.MissingMasterEditionTokenAccountError=ya,a.set(176,(()=>new ya)),o.set("MissingMasterEditionTokenAccount",(()=>new ya));class $a extends Error{constructor(){super("Missing edition marker account"),this.code=177,this.name="MissingEditionMarkerAccount","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,$a)}}e.exports.MissingEditionMarkerAccountError=$a,a.set(177,(()=>new $a)),o.set("MissingEditionMarkerAccount",(()=>new $a));class wa extends Error{constructor(){super("Cannot burn while persistent delegate is set"),this.code=178,this.name="CannotBurnWithDelegate","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,wa)}}e.exports.CannotBurnWithDelegateError=wa,a.set(178,(()=>new wa)),o.set("CannotBurnWithDelegate",(()=>new wa));class ka extends Error{constructor(){super("Missing edition account"),this.code=179,this.name="MissingEdition","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ka)}}e.exports.MissingEditionError=ka,a.set(179,(()=>new ka)),o.set("MissingEdition",(()=>new ka));class va extends Error{constructor(){super("Invalid Associated Token Account Program"),this.code=180,this.name="InvalidAssociatedTokenAccountProgram","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,va)}}e.exports.InvalidAssociatedTokenAccountProgramError=va,a.set(180,(()=>new va)),o.set("InvalidAssociatedTokenAccountProgram",(()=>new va));class xa extends Error{constructor(){super("Invalid InstructionsSysvar"),this.code=181,this.name="InvalidInstructionsSysvar","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,xa)}}e.exports.InvalidInstructionsSysvarError=xa,a.set(181,(()=>new xa)),o.set("InvalidInstructionsSysvar",(()=>new xa));class Ra extends Error{constructor(){super("Invalid or Unneeded parent accounts"),this.code=182,this.name="InvalidParentAccounts","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ra)}}e.exports.InvalidParentAccountsError=Ra,a.set(182,(()=>new Ra)),o.set("InvalidParentAccounts",(()=>new Ra));class Aa extends Error{constructor(){super("Authority cannot apply all update args"),this.code=183,this.name="InvalidUpdateArgs","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Aa)}}e.exports.InvalidUpdateArgsError=Aa,a.set(183,(()=>new Aa)),o.set("InvalidUpdateArgs",(()=>new Aa));class Ia extends Error{constructor(){super("Token account does not have enough tokens"),this.code=184,this.name="InsufficientTokenBalance","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ia)}}e.exports.InsufficientTokenBalanceError=Ia,a.set(184,(()=>new Ia)),o.set("InsufficientTokenBalance",(()=>new Ia));class Sa extends Error{constructor(){super("Missing collection mint account"),this.code=185,this.name="MissingCollectionMint","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Sa)}}e.exports.MissingCollectionMintError=Sa,a.set(185,(()=>new Sa)),o.set("MissingCollectionMint",(()=>new Sa));class Ea extends Error{constructor(){super("Missing collection master edition account"),this.code=186,this.name="MissingCollectionMasterEdition","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ea)}}e.exports.MissingCollectionMasterEditionError=Ea,a.set(186,(()=>new Ea)),o.set("MissingCollectionMasterEdition",(()=>new Ea));class Ta extends Error{constructor(){super("Invalid token record account"),this.code=187,this.name="InvalidTokenRecord","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ta)}}e.exports.InvalidTokenRecordError=Ta,a.set(187,(()=>new Ta)),o.set("InvalidTokenRecord",(()=>new Ta)),e.exports.errorFromCode=function(e){const t=a.get(e);return null!=t?t():null},e.exports.errorFromName=function(e){const t=o.get(e);return null!=t?t():null}})),parcelRequire.register("hKwxH",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("bNGxv"),e.exports),o(parcelRequire("cZr00"),e.exports),o(parcelRequire("4eoD3"),e.exports),o(parcelRequire("lqUVb"),e.exports),o(parcelRequire("jJz4A"),e.exports),o(parcelRequire("6qtcA"),e.exports),o(parcelRequire("bev1T"),e.exports),o(parcelRequire("ie4Ll"),e.exports),o(parcelRequire("95oNw"),e.exports),o(parcelRequire("d5CYv"),e.exports),o(parcelRequire("5J2q9"),e.exports),o(parcelRequire("97DtS"),e.exports),o(parcelRequire("iOqDm"),e.exports),o(parcelRequire("jN6TU"),e.exports),o(parcelRequire("iN4wz"),e.exports),o(parcelRequire("kD4Gz"),e.exports),o(parcelRequire("4Tl9l"),e.exports),o(parcelRequire("gdvuA"),e.exports),o(parcelRequire("4plcR"),e.exports),o(parcelRequire("9J96b"),e.exports),o(parcelRequire("9W390"),e.exports),o(parcelRequire("fWmxZ"),e.exports),o(parcelRequire("gy2ir"),e.exports),o(parcelRequire("dYv5N"),e.exports),o(parcelRequire("2Jxtq"),e.exports),o(parcelRequire("8Ipep"),e.exports),o(parcelRequire("hAlSY"),e.exports),o(parcelRequire("eHYUH"),e.exports),o(parcelRequire("8glwd"),e.exports),o(parcelRequire("b2XWu"),e.exports),o(parcelRequire("a3hjd"),e.exports),o(parcelRequire("jZ5gH"),e.exports),o(parcelRequire("kP4z5"),e.exports),o(parcelRequire("9ZbSJ"),e.exports),o(parcelRequire("aUFfP"),e.exports),o(parcelRequire("4ExhM"),e.exports),o(parcelRequire("bHSI8"),e.exports),o(parcelRequire("22YhR"),e.exports),o(parcelRequire("lcyjI"),e.exports),o(parcelRequire("5abx8"),e.exports),o(parcelRequire("7kUpN"),e.exports),o(parcelRequire("kOXv4"),e.exports),o(parcelRequire("717v2"),e.exports),o(parcelRequire("i7CzB"),e.exports),o(parcelRequire("1PTxd"),e.exports),o(parcelRequire("1Mja1"),e.exports),o(parcelRequire("hFhR0"),e.exports),o(parcelRequire("gQfBk"),e.exports),o(parcelRequire("g1nTY"),e.exports),o(parcelRequire("1VNh6"),e.exports),o(parcelRequire("kKmwI"),e.exports),o(parcelRequire("eAPme"),e.exports),o(parcelRequire("fgliG"),e.exports),o(parcelRequire("3Wob9"),e.exports)})),parcelRequire.register("bNGxv",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createApproveCollectionAuthorityInstruction=e.exports.approveCollectionAuthorityInstructionDiscriminator=e.exports.ApproveCollectionAuthorityStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.ApproveCollectionAuthorityStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"ApproveCollectionAuthorityInstructionArgs"),e.exports.approveCollectionAuthorityInstructionDiscriminator=23,e.exports.createApproveCollectionAuthorityInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var o;const[n]=e.exports.ApproveCollectionAuthorityStruct.serialize({instructionDiscriminator:e.exports.approveCollectionAuthorityInstructionDiscriminator}),s=[{pubkey:t.collectionAuthorityRecord,isWritable:!0,isSigner:!1},{pubkey:t.newCollectionAuthority,isWritable:!1,isSigner:!1},{pubkey:t.updateAuthority,isWritable:!0,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:null!==(o=t.systemProgram)&&void 0!==o?o:r.SystemProgram.programId,isWritable:!1,isSigner:!1}];return null!=t.rent&&s.push({pubkey:t.rent,isWritable:!1,isSigner:!1}),new r.TransactionInstruction({programId:a,keys:s,data:n})}})),parcelRequire.register("cZr00",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createApproveUseAuthorityInstruction=e.exports.approveUseAuthorityInstructionDiscriminator=e.exports.ApproveUseAuthorityStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));var c=parcelRequire("8gv1G");e.exports.ApproveUseAuthorityStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.u8],["approveUseAuthorityArgs",c.approveUseAuthorityArgsBeet]],"ApproveUseAuthorityInstructionArgs"),e.exports.approveUseAuthorityInstructionDiscriminator=20,e.exports.createApproveUseAuthorityInstruction=function(t,a,o=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,r;const[c]=e.exports.ApproveUseAuthorityStruct.serialize({instructionDiscriminator:e.exports.approveUseAuthorityInstructionDiscriminator,...a}),d=[{pubkey:t.useAuthorityRecord,isWritable:!0,isSigner:!1},{pubkey:t.owner,isWritable:!0,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.user,isWritable:!1,isSigner:!1},{pubkey:t.ownerTokenAccount,isWritable:!0,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.burner,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.tokenProgram)&&void 0!==n?n:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(r=t.systemProgram)&&void 0!==r?r:i.SystemProgram.programId,isWritable:!1,isSigner:!1}];return null!=t.rent&&d.push({pubkey:t.rent,isWritable:!1,isSigner:!1}),new i.TransactionInstruction({programId:o,keys:d,data:c})}})),parcelRequire.register("8gv1G",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.approveUseAuthorityArgsBeet=void 0;const s=n(parcelRequire("2vJuO"));e.exports.approveUseAuthorityArgsBeet=new s.BeetArgsStruct([["numberOfUses",s.u64]],"ApproveUseAuthorityArgs")})),parcelRequire.register("4eoD3",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createBubblegumSetCollectionSizeInstruction=e.exports.bubblegumSetCollectionSizeInstructionDiscriminator=e.exports.BubblegumSetCollectionSizeStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("dT7Dc");e.exports.BubblegumSetCollectionSizeStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8],["setCollectionSizeArgs",i.setCollectionSizeArgsBeet]],"BubblegumSetCollectionSizeInstructionArgs"),e.exports.bubblegumSetCollectionSizeInstructionDiscriminator=36,e.exports.createBubblegumSetCollectionSizeInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[n]=e.exports.BubblegumSetCollectionSizeStruct.serialize({instructionDiscriminator:e.exports.bubblegumSetCollectionSizeInstructionDiscriminator,...a}),s=[{pubkey:t.collectionMetadata,isWritable:!0,isSigner:!1},{pubkey:t.collectionAuthority,isWritable:!0,isSigner:!0},{pubkey:t.collectionMint,isWritable:!1,isSigner:!1},{pubkey:t.bubblegumSigner,isWritable:!1,isSigner:!0}];return null!=t.collectionAuthorityRecord&&s.push({pubkey:t.collectionAuthorityRecord,isWritable:!1,isSigner:!1}),new r.TransactionInstruction({programId:o,keys:s,data:n})}})),parcelRequire.register("dT7Dc",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.setCollectionSizeArgsBeet=void 0;const s=n(parcelRequire("2vJuO"));e.exports.setCollectionSizeArgsBeet=new s.BeetArgsStruct([["size",s.u64]],"SetCollectionSizeArgs")})),parcelRequire.register("lqUVb",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createBurnInstruction=e.exports.burnInstructionDiscriminator=e.exports.BurnStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("eW8Z7");e.exports.BurnStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["burnArgs",i.burnArgsBeet]],"BurnInstructionArgs"),e.exports.burnInstructionDiscriminator=41,e.exports.createBurnInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i,c,d,l,m,u;const[p]=e.exports.BurnStruct.serialize({instructionDiscriminator:e.exports.burnInstructionDiscriminator,...a}),h=[{pubkey:t.authority,isWritable:!0,isSigner:!0},{pubkey:null!==(n=t.collectionMetadata)&&void 0!==n?n:o,isWritable:null!=t.collectionMetadata,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(s=t.edition)&&void 0!==s?s:o,isWritable:null!=t.edition,isSigner:!1},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.token,isWritable:!0,isSigner:!1},{pubkey:null!==(i=t.masterEdition)&&void 0!==i?i:o,isWritable:null!=t.masterEdition,isSigner:!1},{pubkey:null!==(c=t.masterEditionMint)&&void 0!==c?c:o,isWritable:!1,isSigner:!1},{pubkey:null!==(d=t.masterEditionToken)&&void 0!==d?d:o,isWritable:!1,isSigner:!1},{pubkey:null!==(l=t.editionMarker)&&void 0!==l?l:o,isWritable:null!=t.editionMarker,isSigner:!1},{pubkey:null!==(m=t.tokenRecord)&&void 0!==m?m:o,isWritable:null!=t.tokenRecord,isSigner:!1},{pubkey:null!==(u=t.systemProgram)&&void 0!==u?u:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1},{pubkey:t.splTokenProgram,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:h,data:p})}})),parcelRequire.register("eW8Z7",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.burnArgsBeet=e.exports.isBurnArgsV1=void 0;const s=n(parcelRequire("2vJuO"));e.exports.isBurnArgsV1=e=>"V1"===e.__kind,e.exports.burnArgsBeet=s.dataEnum([["V1",new s.BeetArgsStruct([["amount",s.u64]],'BurnArgsRecord["V1"]')]])})),parcelRequire.register("jJz4A",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createBurnEditionNftInstruction=e.exports.burnEditionNftInstructionDiscriminator=e.exports.BurnEditionNftStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.BurnEditionNftStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"BurnEditionNftInstructionArgs"),e.exports.burnEditionNftInstructionDiscriminator=37,e.exports.createBurnEditionNftInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.BurnEditionNftStruct.serialize({instructionDiscriminator:e.exports.burnEditionNftInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.owner,isWritable:!0,isSigner:!0},{pubkey:t.printEditionMint,isWritable:!0,isSigner:!1},{pubkey:t.masterEditionMint,isWritable:!1,isSigner:!1},{pubkey:t.printEditionTokenAccount,isWritable:!0,isSigner:!1},{pubkey:t.masterEditionTokenAccount,isWritable:!1,isSigner:!1},{pubkey:t.masterEditionAccount,isWritable:!0,isSigner:!1},{pubkey:t.printEditionAccount,isWritable:!0,isSigner:!1},{pubkey:t.editionMarkerAccount,isWritable:!0,isSigner:!1},{pubkey:t.splTokenProgram,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("6qtcA",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createBurnNftInstruction=e.exports.burnNftInstructionDiscriminator=e.exports.BurnNftStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.BurnNftStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"BurnNftInstructionArgs"),e.exports.burnNftInstructionDiscriminator=29,e.exports.createBurnNftInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.BurnNftStruct.serialize({instructionDiscriminator:e.exports.burnNftInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.owner,isWritable:!0,isSigner:!0},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.tokenAccount,isWritable:!0,isSigner:!1},{pubkey:t.masterEditionAccount,isWritable:!0,isSigner:!1},{pubkey:t.splTokenProgram,isWritable:!1,isSigner:!1}];return null!=t.collectionMetadata&&n.push({pubkey:t.collectionMetadata,isWritable:!0,isSigner:!1}),new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("bev1T",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createCloseEscrowAccountInstruction=e.exports.closeEscrowAccountInstructionDiscriminator=e.exports.CloseEscrowAccountStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.CloseEscrowAccountStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"CloseEscrowAccountInstructionArgs"),e.exports.closeEscrowAccountInstructionDiscriminator=39,e.exports.createCloseEscrowAccountInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var o;const[n]=e.exports.CloseEscrowAccountStruct.serialize({instructionDiscriminator:e.exports.closeEscrowAccountInstructionDiscriminator}),s=[{pubkey:t.escrow,isWritable:!0,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.tokenAccount,isWritable:!1,isSigner:!1},{pubkey:t.edition,isWritable:!1,isSigner:!1},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:null!==(o=t.systemProgram)&&void 0!==o?o:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:a,keys:s,data:n})}})),parcelRequire.register("ie4Ll",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createConvertMasterEditionV1ToV2Instruction=e.exports.convertMasterEditionV1ToV2InstructionDiscriminator=e.exports.ConvertMasterEditionV1ToV2Struct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.ConvertMasterEditionV1ToV2Struct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"ConvertMasterEditionV1ToV2InstructionArgs"),e.exports.convertMasterEditionV1ToV2InstructionDiscriminator=12,e.exports.createConvertMasterEditionV1ToV2Instruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.ConvertMasterEditionV1ToV2Struct.serialize({instructionDiscriminator:e.exports.convertMasterEditionV1ToV2InstructionDiscriminator}),n=[{pubkey:t.masterEdition,isWritable:!0,isSigner:!1},{pubkey:t.oneTimeAuth,isWritable:!0,isSigner:!1},{pubkey:t.printingMint,isWritable:!0,isSigner:!1}];return new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("95oNw",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createCreateInstruction=e.exports.createInstructionDiscriminator=e.exports.CreateStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("eEBfJ");e.exports.CreateStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["createArgs",i.createArgsBeet]],"CreateInstructionArgs"),e.exports.createInstructionDiscriminator=42,e.exports.createCreateInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s;const[i]=e.exports.CreateStruct.serialize({instructionDiscriminator:e.exports.createInstructionDiscriminator,...a}),c=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(n=t.masterEdition)&&void 0!==n?n:o,isWritable:null!=t.masterEdition,isSigner:!1},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!1},{pubkey:null!==(s=t.systemProgram)&&void 0!==s?s:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1},{pubkey:t.splTokenProgram,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:c,data:i})}})),parcelRequire.register("eEBfJ",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createArgsBeet=e.exports.isCreateArgsV1=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("gPApq"),i=parcelRequire("cM44g");e.exports.isCreateArgsV1=e=>"V1"===e.__kind,e.exports.createArgsBeet=s.dataEnum([["V1",new s.FixableBeetArgsStruct([["assetData",r.assetDataBeet],["decimals",s.coption(s.u8)],["printSupply",s.coption(i.printSupplyBeet)]],'CreateArgsRecord["V1"]')]])})),parcelRequire.register("gPApq",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.assetDataBeet=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));var i=parcelRequire("hgIHB"),c=parcelRequire("5ySPU"),d=parcelRequire("iiQMG"),l=parcelRequire("3GNXc"),m=parcelRequire("5BSCc");e.exports.assetDataBeet=new s.FixableBeetArgsStruct([["name",s.utf8String],["symbol",s.utf8String],["uri",s.utf8String],["sellerFeeBasisPoints",s.u16],["creators",s.coption(s.array(i.creatorBeet))],["primarySaleHappened",s.bool],["isMutable",s.bool],["tokenStandard",c.tokenStandardBeet],["collection",s.coption(d.collectionBeet)],["uses",s.coption(l.usesBeet)],["collectionDetails",s.coption(m.collectionDetailsBeet)],["ruleSet",s.coption(r.publicKey)]],"AssetData")})),parcelRequire.register("cM44g",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.printSupplyBeet=e.exports.isPrintSupplyUnlimited=e.exports.isPrintSupplyLimited=e.exports.isPrintSupplyZero=void 0;const s=n(parcelRequire("2vJuO"));e.exports.isPrintSupplyZero=e=>"Zero"===e.__kind;e.exports.isPrintSupplyLimited=e=>"Limited"===e.__kind;e.exports.isPrintSupplyUnlimited=e=>"Unlimited"===e.__kind,e.exports.printSupplyBeet=s.dataEnum([["Zero",s.unit],["Limited",new s.BeetArgsStruct([["fields",s.fixedSizeTuple([s.u64])]],'PrintSupplyRecord["Limited"]')],["Unlimited",s.unit]])})),parcelRequire.register("d5CYv",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createCreateEscrowAccountInstruction=e.exports.createEscrowAccountInstructionDiscriminator=e.exports.CreateEscrowAccountStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.CreateEscrowAccountStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"CreateEscrowAccountInstructionArgs"),e.exports.createEscrowAccountInstructionDiscriminator=38,e.exports.createCreateEscrowAccountInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var o;const[n]=e.exports.CreateEscrowAccountStruct.serialize({instructionDiscriminator:e.exports.createEscrowAccountInstructionDiscriminator}),s=[{pubkey:t.escrow,isWritable:!0,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.tokenAccount,isWritable:!1,isSigner:!1},{pubkey:t.edition,isWritable:!1,isSigner:!1},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:null!==(o=t.systemProgram)&&void 0!==o?o:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1}];return null!=t.authority&&s.push({pubkey:t.authority,isWritable:!1,isSigner:!0}),new r.TransactionInstruction({programId:a,keys:s,data:n})}})),parcelRequire.register("5J2q9",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createCreateMasterEditionInstruction=e.exports.createMasterEditionInstructionDiscriminator=e.exports.CreateMasterEditionStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));var c=parcelRequire("iexXI");e.exports.CreateMasterEditionStruct=new r.FixableBeetArgsStruct([["instructionDiscriminator",r.u8],["createMasterEditionArgs",c.createMasterEditionArgsBeet]],"CreateMasterEditionInstructionArgs"),e.exports.createMasterEditionInstructionDiscriminator=10,e.exports.createCreateMasterEditionInstruction=function(t,a,o=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,r,c;const[d]=e.exports.CreateMasterEditionStruct.serialize({instructionDiscriminator:e.exports.createMasterEditionInstructionDiscriminator,...a}),l=[{pubkey:t.edition,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!0},{pubkey:t.mintAuthority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.tokenProgram)&&void 0!==n?n:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(r=t.systemProgram)&&void 0!==r?r:i.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:null!==(c=t.rent)&&void 0!==c?c:i.SYSVAR_RENT_PUBKEY,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:o,keys:l,data:d})}})),parcelRequire.register("iexXI",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createMasterEditionArgsBeet=void 0;const s=n(parcelRequire("2vJuO"));e.exports.createMasterEditionArgsBeet=new s.FixableBeetArgsStruct([["maxSupply",s.coption(s.u64)]],"CreateMasterEditionArgs")})),parcelRequire.register("97DtS",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createCreateMasterEditionV3Instruction=e.exports.createMasterEditionV3InstructionDiscriminator=e.exports.CreateMasterEditionV3Struct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));var c=parcelRequire("iexXI");e.exports.CreateMasterEditionV3Struct=new r.FixableBeetArgsStruct([["instructionDiscriminator",r.u8],["createMasterEditionArgs",c.createMasterEditionArgsBeet]],"CreateMasterEditionV3InstructionArgs"),e.exports.createMasterEditionV3InstructionDiscriminator=17,e.exports.createCreateMasterEditionV3Instruction=function(t,a,o=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,r;const[c]=e.exports.CreateMasterEditionV3Struct.serialize({instructionDiscriminator:e.exports.createMasterEditionV3InstructionDiscriminator,...a}),d=[{pubkey:t.edition,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!0},{pubkey:t.mintAuthority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(n=t.tokenProgram)&&void 0!==n?n:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(r=t.systemProgram)&&void 0!==r?r:i.SystemProgram.programId,isWritable:!1,isSigner:!1}];return null!=t.rent&&d.push({pubkey:t.rent,isWritable:!1,isSigner:!1}),new i.TransactionInstruction({programId:o,keys:d,data:c})}})),parcelRequire.register("iOqDm",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createCreateMetadataAccountInstruction=e.exports.createMetadataAccountInstructionDiscriminator=e.exports.CreateMetadataAccountStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("e9wLl");e.exports.CreateMetadataAccountStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["createMetadataAccountArgs",i.createMetadataAccountArgsBeet]],"CreateMetadataAccountInstructionArgs"),e.exports.createMetadataAccountInstructionDiscriminator=0,e.exports.createCreateMetadataAccountInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s;const[i]=e.exports.CreateMetadataAccountStruct.serialize({instructionDiscriminator:e.exports.createMetadataAccountInstructionDiscriminator,...a}),c=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.mintAuthority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.systemProgram)&&void 0!==n?n:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:null!==(s=t.rent)&&void 0!==s?s:r.SYSVAR_RENT_PUBKEY,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:c,data:i})}})),parcelRequire.register("e9wLl",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createMetadataAccountArgsBeet=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("auQ5Q");e.exports.createMetadataAccountArgsBeet=new s.FixableBeetArgsStruct([["data",r.dataBeet],["isMutable",s.bool]],"CreateMetadataAccountArgs")})),parcelRequire.register("jN6TU",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createCreateMetadataAccountV2Instruction=e.exports.createMetadataAccountV2InstructionDiscriminator=e.exports.CreateMetadataAccountV2Struct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("KCh0n");e.exports.CreateMetadataAccountV2Struct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["createMetadataAccountArgsV2",i.createMetadataAccountArgsV2Beet]],"CreateMetadataAccountV2InstructionArgs"),e.exports.createMetadataAccountV2InstructionDiscriminator=16,e.exports.createCreateMetadataAccountV2Instruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n;const[s]=e.exports.CreateMetadataAccountV2Struct.serialize({instructionDiscriminator:e.exports.createMetadataAccountV2InstructionDiscriminator,...a}),i=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.mintAuthority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.systemProgram)&&void 0!==n?n:r.SystemProgram.programId,isWritable:!1,isSigner:!1}];return null!=t.rent&&i.push({pubkey:t.rent,isWritable:!1,isSigner:!1}),new r.TransactionInstruction({programId:o,keys:i,data:s})}})),parcelRequire.register("KCh0n",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createMetadataAccountArgsV2Beet=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("9Zhls");e.exports.createMetadataAccountArgsV2Beet=new s.FixableBeetArgsStruct([["data",r.dataV2Beet],["isMutable",s.bool]],"CreateMetadataAccountArgsV2")})),parcelRequire.register("9Zhls",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.dataV2Beet=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("hgIHB"),i=parcelRequire("iiQMG"),c=parcelRequire("3GNXc");e.exports.dataV2Beet=new s.FixableBeetArgsStruct([["name",s.utf8String],["symbol",s.utf8String],["uri",s.utf8String],["sellerFeeBasisPoints",s.u16],["creators",s.coption(s.array(r.creatorBeet))],["collection",s.coption(i.collectionBeet)],["uses",s.coption(c.usesBeet)]],"DataV2")})),parcelRequire.register("iN4wz",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createCreateMetadataAccountV3Instruction=e.exports.createMetadataAccountV3InstructionDiscriminator=e.exports.CreateMetadataAccountV3Struct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("cIIxj");e.exports.CreateMetadataAccountV3Struct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["createMetadataAccountArgsV3",i.createMetadataAccountArgsV3Beet]],"CreateMetadataAccountV3InstructionArgs"),e.exports.createMetadataAccountV3InstructionDiscriminator=33,e.exports.createCreateMetadataAccountV3Instruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n;const[s]=e.exports.CreateMetadataAccountV3Struct.serialize({instructionDiscriminator:e.exports.createMetadataAccountV3InstructionDiscriminator,...a}),i=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.mintAuthority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.systemProgram)&&void 0!==n?n:r.SystemProgram.programId,isWritable:!1,isSigner:!1}];return null!=t.rent&&i.push({pubkey:t.rent,isWritable:!1,isSigner:!1}),new r.TransactionInstruction({programId:o,keys:i,data:s})}})),parcelRequire.register("cIIxj",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createMetadataAccountArgsV3Beet=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("9Zhls"),i=parcelRequire("5BSCc");e.exports.createMetadataAccountArgsV3Beet=new s.FixableBeetArgsStruct([["data",r.dataV2Beet],["isMutable",s.bool],["collectionDetails",s.coption(i.collectionDetailsBeet)]],"CreateMetadataAccountArgsV3")})),parcelRequire.register("kD4Gz",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createDelegateInstruction=e.exports.delegateInstructionDiscriminator=e.exports.DelegateStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("5nFl5");e.exports.DelegateStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["delegateArgs",i.delegateArgsBeet]],"DelegateInstructionArgs"),e.exports.delegateInstructionDiscriminator=44,e.exports.createDelegateInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i,c,d,l,m,u;const[p]=e.exports.DelegateStruct.serialize({instructionDiscriminator:e.exports.delegateInstructionDiscriminator,...a}),h=[{pubkey:null!==(n=t.delegateRecord)&&void 0!==n?n:o,isWritable:null!=t.delegateRecord,isSigner:!1},{pubkey:t.delegate,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(s=t.masterEdition)&&void 0!==s?s:o,isWritable:!1,isSigner:!1},{pubkey:null!==(i=t.tokenRecord)&&void 0!==i?i:o,isWritable:null!=t.tokenRecord,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:null!==(c=t.token)&&void 0!==c?c:o,isWritable:null!=t.token,isSigner:!1},{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:null!==(d=t.systemProgram)&&void 0!==d?d:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1},{pubkey:null!==(l=t.splTokenProgram)&&void 0!==l?l:o,isWritable:!1,isSigner:!1},{pubkey:null!==(m=t.authorizationRulesProgram)&&void 0!==m?m:o,isWritable:!1,isSigner:!1},{pubkey:null!==(u=t.authorizationRules)&&void 0!==u?u:o,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:h,data:p})}})),parcelRequire.register("5nFl5",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.delegateArgsBeet=e.exports.isDelegateArgsProgrammableConfigV1=e.exports.isDelegateArgsLockedTransferV1=e.exports.isDelegateArgsStandardV1=e.exports.isDelegateArgsStakingV1=e.exports.isDelegateArgsUtilityV1=e.exports.isDelegateArgsUpdateV1=e.exports.isDelegateArgsTransferV1=e.exports.isDelegateArgsSaleV1=e.exports.isDelegateArgsCollectionV1=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));var i=parcelRequire("bh0yS");e.exports.isDelegateArgsCollectionV1=e=>"CollectionV1"===e.__kind;e.exports.isDelegateArgsSaleV1=e=>"SaleV1"===e.__kind;e.exports.isDelegateArgsTransferV1=e=>"TransferV1"===e.__kind;e.exports.isDelegateArgsUpdateV1=e=>"UpdateV1"===e.__kind;e.exports.isDelegateArgsUtilityV1=e=>"UtilityV1"===e.__kind;e.exports.isDelegateArgsStakingV1=e=>"StakingV1"===e.__kind;e.exports.isDelegateArgsStandardV1=e=>"StandardV1"===e.__kind;e.exports.isDelegateArgsLockedTransferV1=e=>"LockedTransferV1"===e.__kind;e.exports.isDelegateArgsProgrammableConfigV1=e=>"ProgrammableConfigV1"===e.__kind,e.exports.delegateArgsBeet=s.dataEnum([["CollectionV1",new s.FixableBeetArgsStruct([["authorizationData",s.coption(i.authorizationDataBeet)]],'DelegateArgsRecord["CollectionV1"]')],["SaleV1",new s.FixableBeetArgsStruct([["amount",s.u64],["authorizationData",s.coption(i.authorizationDataBeet)]],'DelegateArgsRecord["SaleV1"]')],["TransferV1",new s.FixableBeetArgsStruct([["amount",s.u64],["authorizationData",s.coption(i.authorizationDataBeet)]],'DelegateArgsRecord["TransferV1"]')],["UpdateV1",new s.FixableBeetArgsStruct([["authorizationData",s.coption(i.authorizationDataBeet)]],'DelegateArgsRecord["UpdateV1"]')],["UtilityV1",new s.FixableBeetArgsStruct([["amount",s.u64],["authorizationData",s.coption(i.authorizationDataBeet)]],'DelegateArgsRecord["UtilityV1"]')],["StakingV1",new s.FixableBeetArgsStruct([["amount",s.u64],["authorizationData",s.coption(i.authorizationDataBeet)]],'DelegateArgsRecord["StakingV1"]')],["StandardV1",new s.BeetArgsStruct([["amount",s.u64]],'DelegateArgsRecord["StandardV1"]')],["LockedTransferV1",new s.FixableBeetArgsStruct([["amount",s.u64],["lockedAddress",r.publicKey],["authorizationData",s.coption(i.authorizationDataBeet)]],'DelegateArgsRecord["LockedTransferV1"]')],["ProgrammableConfigV1",new s.FixableBeetArgsStruct([["authorizationData",s.coption(i.authorizationDataBeet)]],'DelegateArgsRecord["ProgrammableConfigV1"]')]])})),parcelRequire.register("bh0yS",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.authorizationDataBeet=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("75pjY");e.exports.authorizationDataBeet=new s.FixableBeetArgsStruct([["payload",r.payloadBeet]],"AuthorizationData")})),parcelRequire.register("75pjY",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.payloadBeet=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("1Iy32");e.exports.payloadBeet=new s.FixableBeetArgsStruct([["map",s.map(s.utf8String,r.payloadTypeBeet)]],"Payload")})),parcelRequire.register("1Iy32",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.payloadTypeBeet=e.exports.isPayloadTypeNumber=e.exports.isPayloadTypeMerkleProof=e.exports.isPayloadTypeSeeds=e.exports.isPayloadTypePubkey=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));var i=parcelRequire("3pexK"),c=parcelRequire("57Jng");e.exports.isPayloadTypePubkey=e=>"Pubkey"===e.__kind;e.exports.isPayloadTypeSeeds=e=>"Seeds"===e.__kind;e.exports.isPayloadTypeMerkleProof=e=>"MerkleProof"===e.__kind;e.exports.isPayloadTypeNumber=e=>"Number"===e.__kind,e.exports.payloadTypeBeet=s.dataEnum([["Pubkey",new s.BeetArgsStruct([["fields",s.fixedSizeTuple([r.publicKey])]],'PayloadTypeRecord["Pubkey"]')],["Seeds",new s.FixableBeetArgsStruct([["fields",s.tuple([i.seedsVecBeet])]],'PayloadTypeRecord["Seeds"]')],["MerkleProof",new s.FixableBeetArgsStruct([["fields",s.tuple([c.leafInfoBeet])]],'PayloadTypeRecord["MerkleProof"]')],["Number",new s.BeetArgsStruct([["fields",s.fixedSizeTuple([s.u64])]],'PayloadTypeRecord["Number"]')]])})),parcelRequire.register("3pexK",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.seedsVecBeet=void 0;const s=n(parcelRequire("2vJuO"));e.exports.seedsVecBeet=new s.FixableBeetArgsStruct([["seeds",s.array(s.bytes)]],"SeedsVec")})),parcelRequire.register("57Jng",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.leafInfoBeet=void 0;const s=n(parcelRequire("2vJuO"));e.exports.leafInfoBeet=new s.FixableBeetArgsStruct([["leaf",s.uniformFixedSizeArray(s.u8,32)],["proof",s.array(s.uniformFixedSizeArray(s.u8,32))]],"LeafInfo")})),parcelRequire.register("4Tl9l",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createDeprecatedCreateMasterEditionInstruction=e.exports.deprecatedCreateMasterEditionInstructionDiscriminator=e.exports.DeprecatedCreateMasterEditionStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));var c=parcelRequire("iexXI");e.exports.DeprecatedCreateMasterEditionStruct=new r.FixableBeetArgsStruct([["instructionDiscriminator",r.u8],["createMasterEditionArgs",c.createMasterEditionArgsBeet]],"DeprecatedCreateMasterEditionInstructionArgs"),e.exports.deprecatedCreateMasterEditionInstructionDiscriminator=2,e.exports.createDeprecatedCreateMasterEditionInstruction=function(t,a,o=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,r,c;const[d]=e.exports.DeprecatedCreateMasterEditionStruct.serialize({instructionDiscriminator:e.exports.deprecatedCreateMasterEditionInstructionDiscriminator,...a}),l=[{pubkey:t.edition,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.printingMint,isWritable:!0,isSigner:!1},{pubkey:t.oneTimePrintingAuthorizationMint,isWritable:!0,isSigner:!1},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!0},{pubkey:t.printingMintAuthority,isWritable:!1,isSigner:!0},{pubkey:t.mintAuthority,isWritable:!1,isSigner:!0},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.payer,isWritable:!1,isSigner:!0},{pubkey:null!==(n=t.tokenProgram)&&void 0!==n?n:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(r=t.systemProgram)&&void 0!==r?r:i.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:null!==(c=t.rent)&&void 0!==c?c:i.SYSVAR_RENT_PUBKEY,isWritable:!1,isSigner:!1},{pubkey:t.oneTimePrintingAuthorizationMintAuthority,isWritable:!1,isSigner:!0}];return new i.TransactionInstruction({programId:o,keys:l,data:d})}})),parcelRequire.register("gdvuA",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createDeprecatedCreateReservationListInstruction=e.exports.deprecatedCreateReservationListInstructionDiscriminator=e.exports.DeprecatedCreateReservationListStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.DeprecatedCreateReservationListStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"DeprecatedCreateReservationListInstructionArgs"),e.exports.deprecatedCreateReservationListInstructionDiscriminator=6,e.exports.createDeprecatedCreateReservationListInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var o,n;const[s]=e.exports.DeprecatedCreateReservationListStruct.serialize({instructionDiscriminator:e.exports.deprecatedCreateReservationListInstructionDiscriminator}),i=[{pubkey:t.reservationList,isWritable:!0,isSigner:!1},{pubkey:t.payer,isWritable:!1,isSigner:!0},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!0},{pubkey:t.masterEdition,isWritable:!1,isSigner:!1},{pubkey:t.resource,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:null!==(o=t.systemProgram)&&void 0!==o?o:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.rent)&&void 0!==n?n:r.SYSVAR_RENT_PUBKEY,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:a,keys:i,data:s})}})),parcelRequire.register("4plcR",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction=e.exports.deprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionDiscriminator=e.exports.DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.u8]],"DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionArgs"),e.exports.deprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionDiscriminator=3,e.exports.createDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction=function(t,a=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var o,n,r;const[c]=e.exports.DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenStruct.serialize({instructionDiscriminator:e.exports.deprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionDiscriminator}),d=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.edition,isWritable:!0,isSigner:!1},{pubkey:t.masterEdition,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.mintAuthority,isWritable:!1,isSigner:!0},{pubkey:t.printingMint,isWritable:!0,isSigner:!1},{pubkey:t.masterTokenAccount,isWritable:!0,isSigner:!1},{pubkey:t.editionMarker,isWritable:!0,isSigner:!1},{pubkey:t.burnAuthority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!1,isSigner:!0},{pubkey:t.masterUpdateAuthority,isWritable:!1,isSigner:!1},{pubkey:t.masterMetadata,isWritable:!1,isSigner:!1},{pubkey:null!==(o=t.tokenProgram)&&void 0!==o?o:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.systemProgram)&&void 0!==n?n:i.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:null!==(r=t.rent)&&void 0!==r?r:i.SYSVAR_RENT_PUBKEY,isWritable:!1,isSigner:!1}];return null!=t.reservationList&&d.push({pubkey:t.reservationList,isWritable:!0,isSigner:!1}),new i.TransactionInstruction({programId:a,keys:d,data:c})}})),parcelRequire.register("9J96b",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createDeprecatedMintPrintingTokensInstruction=e.exports.deprecatedMintPrintingTokensInstructionDiscriminator=e.exports.DeprecatedMintPrintingTokensStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));var c=parcelRequire("4TJd9");e.exports.DeprecatedMintPrintingTokensStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.u8],["mintPrintingTokensViaTokenArgs",c.mintPrintingTokensViaTokenArgsBeet]],"DeprecatedMintPrintingTokensInstructionArgs"),e.exports.deprecatedMintPrintingTokensInstructionDiscriminator=9,e.exports.createDeprecatedMintPrintingTokensInstruction=function(t,a,o=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,r;const[c]=e.exports.DeprecatedMintPrintingTokensStruct.serialize({instructionDiscriminator:e.exports.deprecatedMintPrintingTokensInstructionDiscriminator,...a}),d=[{pubkey:t.destination,isWritable:!0,isSigner:!1},{pubkey:t.printingMint,isWritable:!0,isSigner:!1},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!0},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.masterEdition,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.tokenProgram)&&void 0!==n?n:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(r=t.rent)&&void 0!==r?r:i.SYSVAR_RENT_PUBKEY,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:o,keys:d,data:c})}})),parcelRequire.register("4TJd9",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.mintPrintingTokensViaTokenArgsBeet=void 0;const s=n(parcelRequire("2vJuO"));e.exports.mintPrintingTokensViaTokenArgsBeet=new s.BeetArgsStruct([["supply",s.u64]],"MintPrintingTokensViaTokenArgs")})),parcelRequire.register("9W390",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createDeprecatedMintPrintingTokensViaTokenInstruction=e.exports.deprecatedMintPrintingTokensViaTokenInstructionDiscriminator=e.exports.DeprecatedMintPrintingTokensViaTokenStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));var c=parcelRequire("4TJd9");e.exports.DeprecatedMintPrintingTokensViaTokenStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.u8],["mintPrintingTokensViaTokenArgs",c.mintPrintingTokensViaTokenArgsBeet]],"DeprecatedMintPrintingTokensViaTokenInstructionArgs"),e.exports.deprecatedMintPrintingTokensViaTokenInstructionDiscriminator=8,e.exports.createDeprecatedMintPrintingTokensViaTokenInstruction=function(t,a,o=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,r;const[c]=e.exports.DeprecatedMintPrintingTokensViaTokenStruct.serialize({instructionDiscriminator:e.exports.deprecatedMintPrintingTokensViaTokenInstructionDiscriminator,...a}),d=[{pubkey:t.destination,isWritable:!0,isSigner:!1},{pubkey:t.token,isWritable:!0,isSigner:!1},{pubkey:t.oneTimePrintingAuthorizationMint,isWritable:!0,isSigner:!1},{pubkey:t.printingMint,isWritable:!0,isSigner:!1},{pubkey:t.burnAuthority,isWritable:!1,isSigner:!0},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.masterEdition,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.tokenProgram)&&void 0!==n?n:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(r=t.rent)&&void 0!==r?r:i.SYSVAR_RENT_PUBKEY,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:o,keys:d,data:c})}})),parcelRequire.register("fWmxZ",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createDeprecatedSetReservationListInstruction=e.exports.deprecatedSetReservationListInstructionDiscriminator=e.exports.DeprecatedSetReservationListStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("aSKSh");e.exports.DeprecatedSetReservationListStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["setReservationListArgs",i.setReservationListArgsBeet]],"DeprecatedSetReservationListInstructionArgs"),e.exports.deprecatedSetReservationListInstructionDiscriminator=5,e.exports.createDeprecatedSetReservationListInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[n]=e.exports.DeprecatedSetReservationListStruct.serialize({instructionDiscriminator:e.exports.deprecatedSetReservationListInstructionDiscriminator,...a}),s=[{pubkey:t.masterEdition,isWritable:!0,isSigner:!1},{pubkey:t.reservationList,isWritable:!0,isSigner:!1},{pubkey:t.resource,isWritable:!1,isSigner:!0}];return new r.TransactionInstruction({programId:o,keys:s,data:n})}})),parcelRequire.register("aSKSh",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.setReservationListArgsBeet=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("eU0iK");e.exports.setReservationListArgsBeet=new s.FixableBeetArgsStruct([["reservations",s.array(r.reservationBeet)],["totalReservationSpots",s.coption(s.u64)],["offset",s.u64],["totalSpotOffset",s.u64]],"SetReservationListArgs")})),parcelRequire.register("gy2ir",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createFreezeDelegatedAccountInstruction=e.exports.freezeDelegatedAccountInstructionDiscriminator=e.exports.FreezeDelegatedAccountStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.FreezeDelegatedAccountStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.u8]],"FreezeDelegatedAccountInstructionArgs"),e.exports.freezeDelegatedAccountInstructionDiscriminator=26,e.exports.createFreezeDelegatedAccountInstruction=function(t,a=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var o;const[n]=e.exports.FreezeDelegatedAccountStruct.serialize({instructionDiscriminator:e.exports.freezeDelegatedAccountInstructionDiscriminator}),r=[{pubkey:t.delegate,isWritable:!0,isSigner:!0},{pubkey:t.tokenAccount,isWritable:!0,isSigner:!1},{pubkey:t.edition,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:null!==(o=t.tokenProgram)&&void 0!==o?o:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:a,keys:r,data:n})}})),parcelRequire.register("dYv5N",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createLockInstruction=e.exports.lockInstructionDiscriminator=e.exports.LockStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("1YxHO");e.exports.LockStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["lockArgs",i.lockArgsBeet]],"LockInstructionArgs"),e.exports.lockInstructionDiscriminator=46,e.exports.createLockInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i,c,d,l,m;const[u]=e.exports.LockStruct.serialize({instructionDiscriminator:e.exports.lockInstructionDiscriminator,...a}),p=[{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:null!==(n=t.tokenOwner)&&void 0!==n?n:o,isWritable:!1,isSigner:!1},{pubkey:t.token,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(s=t.edition)&&void 0!==s?s:o,isWritable:!1,isSigner:!1},{pubkey:null!==(i=t.tokenRecord)&&void 0!==i?i:o,isWritable:null!=t.tokenRecord,isSigner:!1},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:null!==(c=t.systemProgram)&&void 0!==c?c:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1},{pubkey:null!==(d=t.splTokenProgram)&&void 0!==d?d:o,isWritable:!1,isSigner:!1},{pubkey:null!==(l=t.authorizationRulesProgram)&&void 0!==l?l:o,isWritable:!1,isSigner:!1},{pubkey:null!==(m=t.authorizationRules)&&void 0!==m?m:o,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:p,data:u})}})),parcelRequire.register("1YxHO",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.lockArgsBeet=e.exports.isLockArgsV1=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("bh0yS");e.exports.isLockArgsV1=e=>"V1"===e.__kind,e.exports.lockArgsBeet=s.dataEnum([["V1",new s.FixableBeetArgsStruct([["authorizationData",s.coption(r.authorizationDataBeet)]],'LockArgsRecord["V1"]')]])})),parcelRequire.register("2Jxtq",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createMigrateInstruction=e.exports.migrateInstructionDiscriminator=e.exports.MigrateStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("hsB1Q");e.exports.MigrateStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["migrateArgs",i.migrateArgsBeet]],"MigrateInstructionArgs"),e.exports.migrateInstructionDiscriminator=48,e.exports.createMigrateInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i;const[c]=e.exports.MigrateStruct.serialize({instructionDiscriminator:e.exports.migrateInstructionDiscriminator,...a}),d=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.edition,isWritable:!0,isSigner:!1},{pubkey:t.token,isWritable:!0,isSigner:!1},{pubkey:t.tokenOwner,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:t.collectionMetadata,isWritable:!1,isSigner:!1},{pubkey:t.delegateRecord,isWritable:!1,isSigner:!1},{pubkey:t.tokenRecord,isWritable:!0,isSigner:!1},{pubkey:null!==(n=t.systemProgram)&&void 0!==n?n:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1},{pubkey:t.splTokenProgram,isWritable:!1,isSigner:!1},{pubkey:null!==(s=t.authorizationRulesProgram)&&void 0!==s?s:o,isWritable:!1,isSigner:!1},{pubkey:null!==(i=t.authorizationRules)&&void 0!==i?i:o,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:d,data:c})}})),parcelRequire.register("hsB1Q",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.migrateArgsBeet=e.exports.isMigrateArgsV1=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));var i=parcelRequire("8aFpC");e.exports.isMigrateArgsV1=e=>"V1"===e.__kind,e.exports.migrateArgsBeet=s.dataEnum([["V1",new s.FixableBeetArgsStruct([["migrationType",i.migrationTypeBeet],["ruleSet",s.coption(r.publicKey)]],'MigrateArgsRecord["V1"]')]])})),parcelRequire.register("8aFpC",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.migrationTypeBeet=e.exports.MigrationType=void 0;const s=n(parcelRequire("2vJuO"));var r,i;(i=r=e.exports.MigrationType||(e.exports.MigrationType={}))[i.CollectionV1=0]="CollectionV1",i[i.ProgrammableV1=1]="ProgrammableV1",e.exports.migrationTypeBeet=s.fixedScalarEnum(r)})),parcelRequire.register("8Ipep",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createMintInstruction=e.exports.mintInstructionDiscriminator=e.exports.MintStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("1tIEj");e.exports.MintStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["mintArgs",i.mintArgsBeet]],"MintInstructionArgs"),e.exports.mintInstructionDiscriminator=43,e.exports.createMintInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i,c,d,l,m;const[u]=e.exports.MintStruct.serialize({instructionDiscriminator:e.exports.mintInstructionDiscriminator,...a}),p=[{pubkey:t.token,isWritable:!0,isSigner:!1},{pubkey:null!==(n=t.tokenOwner)&&void 0!==n?n:o,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:null!==(s=t.masterEdition)&&void 0!==s?s:o,isWritable:null!=t.masterEdition,isSigner:!1},{pubkey:null!==(i=t.tokenRecord)&&void 0!==i?i:o,isWritable:null!=t.tokenRecord,isSigner:!1},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:null!==(c=t.delegateRecord)&&void 0!==c?c:o,isWritable:!1,isSigner:!1},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:null!==(d=t.systemProgram)&&void 0!==d?d:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1},{pubkey:t.splTokenProgram,isWritable:!1,isSigner:!1},{pubkey:t.splAtaProgram,isWritable:!1,isSigner:!1},{pubkey:null!==(l=t.authorizationRulesProgram)&&void 0!==l?l:o,isWritable:!1,isSigner:!1},{pubkey:null!==(m=t.authorizationRules)&&void 0!==m?m:o,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:p,data:u})}})),parcelRequire.register("1tIEj",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.mintArgsBeet=e.exports.isMintArgsV1=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("bh0yS");e.exports.isMintArgsV1=e=>"V1"===e.__kind,e.exports.mintArgsBeet=s.dataEnum([["V1",new s.FixableBeetArgsStruct([["amount",s.u64],["authorizationData",s.coption(r.authorizationDataBeet)]],'MintArgsRecord["V1"]')]])})),parcelRequire.register("hAlSY",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createMintNewEditionFromMasterEditionViaTokenInstruction=e.exports.mintNewEditionFromMasterEditionViaTokenInstructionDiscriminator=e.exports.MintNewEditionFromMasterEditionViaTokenStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));var c=parcelRequire("1i5mN");e.exports.MintNewEditionFromMasterEditionViaTokenStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.u8],["mintNewEditionFromMasterEditionViaTokenArgs",c.mintNewEditionFromMasterEditionViaTokenArgsBeet]],"MintNewEditionFromMasterEditionViaTokenInstructionArgs"),e.exports.mintNewEditionFromMasterEditionViaTokenInstructionDiscriminator=11,e.exports.createMintNewEditionFromMasterEditionViaTokenInstruction=function(t,a,o=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,r;const[c]=e.exports.MintNewEditionFromMasterEditionViaTokenStruct.serialize({instructionDiscriminator:e.exports.mintNewEditionFromMasterEditionViaTokenInstructionDiscriminator,...a}),d=[{pubkey:t.newMetadata,isWritable:!0,isSigner:!1},{pubkey:t.newEdition,isWritable:!0,isSigner:!1},{pubkey:t.masterEdition,isWritable:!0,isSigner:!1},{pubkey:t.newMint,isWritable:!0,isSigner:!1},{pubkey:t.editionMarkPda,isWritable:!0,isSigner:!1},{pubkey:t.newMintAuthority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.tokenAccountOwner,isWritable:!1,isSigner:!0},{pubkey:t.tokenAccount,isWritable:!1,isSigner:!1},{pubkey:t.newMetadataUpdateAuthority,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.tokenProgram)&&void 0!==n?n:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(r=t.systemProgram)&&void 0!==r?r:i.SystemProgram.programId,isWritable:!1,isSigner:!1}];return null!=t.rent&&d.push({pubkey:t.rent,isWritable:!1,isSigner:!1}),new i.TransactionInstruction({programId:o,keys:d,data:c})}})),parcelRequire.register("1i5mN",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.mintNewEditionFromMasterEditionViaTokenArgsBeet=void 0;const s=n(parcelRequire("2vJuO"));e.exports.mintNewEditionFromMasterEditionViaTokenArgsBeet=new s.BeetArgsStruct([["edition",s.u64]],"MintNewEditionFromMasterEditionViaTokenArgs")})),parcelRequire.register("eHYUH",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createMintNewEditionFromMasterEditionViaVaultProxyInstruction=e.exports.mintNewEditionFromMasterEditionViaVaultProxyInstructionDiscriminator=e.exports.MintNewEditionFromMasterEditionViaVaultProxyStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));var c=parcelRequire("1i5mN");e.exports.MintNewEditionFromMasterEditionViaVaultProxyStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.u8],["mintNewEditionFromMasterEditionViaTokenArgs",c.mintNewEditionFromMasterEditionViaTokenArgsBeet]],"MintNewEditionFromMasterEditionViaVaultProxyInstructionArgs"),e.exports.mintNewEditionFromMasterEditionViaVaultProxyInstructionDiscriminator=13,e.exports.createMintNewEditionFromMasterEditionViaVaultProxyInstruction=function(t,a,o=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,r;const[c]=e.exports.MintNewEditionFromMasterEditionViaVaultProxyStruct.serialize({instructionDiscriminator:e.exports.mintNewEditionFromMasterEditionViaVaultProxyInstructionDiscriminator,...a}),d=[{pubkey:t.newMetadata,isWritable:!0,isSigner:!1},{pubkey:t.newEdition,isWritable:!0,isSigner:!1},{pubkey:t.masterEdition,isWritable:!0,isSigner:!1},{pubkey:t.newMint,isWritable:!0,isSigner:!1},{pubkey:t.editionMarkPda,isWritable:!0,isSigner:!1},{pubkey:t.newMintAuthority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.vaultAuthority,isWritable:!1,isSigner:!0},{pubkey:t.safetyDepositStore,isWritable:!1,isSigner:!1},{pubkey:t.safetyDepositBox,isWritable:!1,isSigner:!1},{pubkey:t.vault,isWritable:!1,isSigner:!1},{pubkey:t.newMetadataUpdateAuthority,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.tokenProgram)&&void 0!==n?n:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:t.tokenVaultProgram,isWritable:!1,isSigner:!1},{pubkey:null!==(r=t.systemProgram)&&void 0!==r?r:i.SystemProgram.programId,isWritable:!1,isSigner:!1}];return null!=t.rent&&d.push({pubkey:t.rent,isWritable:!1,isSigner:!1}),new i.TransactionInstruction({programId:o,keys:d,data:c})}})),parcelRequire.register("8glwd",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createPuffMetadataInstruction=e.exports.puffMetadataInstructionDiscriminator=e.exports.PuffMetadataStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.PuffMetadataStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"PuffMetadataInstructionArgs"),e.exports.puffMetadataInstructionDiscriminator=14,e.exports.createPuffMetadataInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.PuffMetadataStruct.serialize({instructionDiscriminator:e.exports.puffMetadataInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1}];return new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("b2XWu",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createRemoveCreatorVerificationInstruction=e.exports.removeCreatorVerificationInstructionDiscriminator=e.exports.RemoveCreatorVerificationStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.RemoveCreatorVerificationStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"RemoveCreatorVerificationInstructionArgs"),e.exports.removeCreatorVerificationInstructionDiscriminator=28,e.exports.createRemoveCreatorVerificationInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.RemoveCreatorVerificationStruct.serialize({instructionDiscriminator:e.exports.removeCreatorVerificationInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.creator,isWritable:!1,isSigner:!0}];return new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("a3hjd",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createRevokeInstruction=e.exports.revokeInstructionDiscriminator=e.exports.RevokeStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("5fT9P");e.exports.RevokeStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8],["revokeArgs",i.revokeArgsBeet]],"RevokeInstructionArgs"),e.exports.revokeInstructionDiscriminator=45,e.exports.createRevokeInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i,c,d,l,m,u;const[p]=e.exports.RevokeStruct.serialize({instructionDiscriminator:e.exports.revokeInstructionDiscriminator,...a}),h=[{pubkey:null!==(n=t.delegateRecord)&&void 0!==n?n:o,isWritable:null!=t.delegateRecord,isSigner:!1},{pubkey:t.delegate,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(s=t.masterEdition)&&void 0!==s?s:o,isWritable:!1,isSigner:!1},{pubkey:null!==(i=t.tokenRecord)&&void 0!==i?i:o,isWritable:null!=t.tokenRecord,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:null!==(c=t.token)&&void 0!==c?c:o,isWritable:null!=t.token,isSigner:!1},{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:null!==(d=t.systemProgram)&&void 0!==d?d:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1},{pubkey:null!==(l=t.splTokenProgram)&&void 0!==l?l:o,isWritable:!1,isSigner:!1},{pubkey:null!==(m=t.authorizationRulesProgram)&&void 0!==m?m:o,isWritable:!1,isSigner:!1},{pubkey:null!==(u=t.authorizationRules)&&void 0!==u?u:o,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:h,data:p})}})),parcelRequire.register("5fT9P",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.revokeArgsBeet=e.exports.RevokeArgs=void 0;const s=n(parcelRequire("2vJuO"));var r,i;(i=r=e.exports.RevokeArgs||(e.exports.RevokeArgs={}))[i.CollectionV1=0]="CollectionV1",i[i.SaleV1=1]="SaleV1",i[i.TransferV1=2]="TransferV1",i[i.UpdateV1=3]="UpdateV1",i[i.UtilityV1=4]="UtilityV1",i[i.StakingV1=5]="StakingV1",i[i.StandardV1=6]="StandardV1",i[i.LockedTransferV1=7]="LockedTransferV1",i[i.ProgrammableConfigV1=8]="ProgrammableConfigV1",i[i.MigrationV1=9]="MigrationV1",e.exports.revokeArgsBeet=s.fixedScalarEnum(r)})),parcelRequire.register("jZ5gH",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createRevokeCollectionAuthorityInstruction=e.exports.revokeCollectionAuthorityInstructionDiscriminator=e.exports.RevokeCollectionAuthorityStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.RevokeCollectionAuthorityStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"RevokeCollectionAuthorityInstructionArgs"),e.exports.revokeCollectionAuthorityInstructionDiscriminator=24,e.exports.createRevokeCollectionAuthorityInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.RevokeCollectionAuthorityStruct.serialize({instructionDiscriminator:e.exports.revokeCollectionAuthorityInstructionDiscriminator}),n=[{pubkey:t.collectionAuthorityRecord,isWritable:!0,isSigner:!1},{pubkey:t.delegateAuthority,isWritable:!0,isSigner:!1},{pubkey:t.revokeAuthority,isWritable:!0,isSigner:!0},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("kP4z5",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createRevokeUseAuthorityInstruction=e.exports.revokeUseAuthorityInstructionDiscriminator=e.exports.RevokeUseAuthorityStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.RevokeUseAuthorityStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.u8]],"RevokeUseAuthorityInstructionArgs"),e.exports.revokeUseAuthorityInstructionDiscriminator=21,e.exports.createRevokeUseAuthorityInstruction=function(t,a=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var o,n;const[r]=e.exports.RevokeUseAuthorityStruct.serialize({instructionDiscriminator:e.exports.revokeUseAuthorityInstructionDiscriminator}),c=[{pubkey:t.useAuthorityRecord,isWritable:!0,isSigner:!1},{pubkey:t.owner,isWritable:!0,isSigner:!0},{pubkey:t.user,isWritable:!1,isSigner:!1},{pubkey:t.ownerTokenAccount,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!1,isSigner:!1},{pubkey:null!==(o=t.tokenProgram)&&void 0!==o?o:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.systemProgram)&&void 0!==n?n:i.SystemProgram.programId,isWritable:!1,isSigner:!1}];return null!=t.rent&&c.push({pubkey:t.rent,isWritable:!1,isSigner:!1}),new i.TransactionInstruction({programId:a,keys:c,data:r})}})),parcelRequire.register("9ZbSJ",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createSetAndVerifyCollectionInstruction=e.exports.setAndVerifyCollectionInstructionDiscriminator=e.exports.SetAndVerifyCollectionStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.SetAndVerifyCollectionStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"SetAndVerifyCollectionInstructionArgs"),e.exports.setAndVerifyCollectionInstructionDiscriminator=25,e.exports.createSetAndVerifyCollectionInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.SetAndVerifyCollectionStruct.serialize({instructionDiscriminator:e.exports.setAndVerifyCollectionInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.collectionAuthority,isWritable:!0,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!1},{pubkey:t.collectionMint,isWritable:!1,isSigner:!1},{pubkey:t.collection,isWritable:!1,isSigner:!1},{pubkey:t.collectionMasterEditionAccount,isWritable:!1,isSigner:!1}];return null!=t.collectionAuthorityRecord&&n.push({pubkey:t.collectionAuthorityRecord,isWritable:!1,isSigner:!1}),new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("aUFfP",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createSetAndVerifySizedCollectionItemInstruction=e.exports.setAndVerifySizedCollectionItemInstructionDiscriminator=e.exports.SetAndVerifySizedCollectionItemStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.SetAndVerifySizedCollectionItemStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"SetAndVerifySizedCollectionItemInstructionArgs"),e.exports.setAndVerifySizedCollectionItemInstructionDiscriminator=32,e.exports.createSetAndVerifySizedCollectionItemInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.SetAndVerifySizedCollectionItemStruct.serialize({instructionDiscriminator:e.exports.setAndVerifySizedCollectionItemInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.collectionAuthority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!1},{pubkey:t.collectionMint,isWritable:!1,isSigner:!1},{pubkey:t.collection,isWritable:!0,isSigner:!1},{pubkey:t.collectionMasterEditionAccount,isWritable:!0,isSigner:!1}];return null!=t.collectionAuthorityRecord&&n.push({pubkey:t.collectionAuthorityRecord,isWritable:!1,isSigner:!1}),new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("4ExhM",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createSetCollectionSizeInstruction=e.exports.setCollectionSizeInstructionDiscriminator=e.exports.SetCollectionSizeStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("dT7Dc");e.exports.SetCollectionSizeStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8],["setCollectionSizeArgs",i.setCollectionSizeArgsBeet]],"SetCollectionSizeInstructionArgs"),e.exports.setCollectionSizeInstructionDiscriminator=34,e.exports.createSetCollectionSizeInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[n]=e.exports.SetCollectionSizeStruct.serialize({instructionDiscriminator:e.exports.setCollectionSizeInstructionDiscriminator,...a}),s=[{pubkey:t.collectionMetadata,isWritable:!0,isSigner:!1},{pubkey:t.collectionAuthority,isWritable:!0,isSigner:!0},{pubkey:t.collectionMint,isWritable:!1,isSigner:!1}];return null!=t.collectionAuthorityRecord&&s.push({pubkey:t.collectionAuthorityRecord,isWritable:!1,isSigner:!1}),new r.TransactionInstruction({programId:o,keys:s,data:n})}})),parcelRequire.register("bHSI8",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createSetTokenStandardInstruction=e.exports.setTokenStandardInstructionDiscriminator=e.exports.SetTokenStandardStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.SetTokenStandardStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"SetTokenStandardInstructionArgs"),e.exports.setTokenStandardInstructionDiscriminator=35,e.exports.createSetTokenStandardInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.SetTokenStandardStruct.serialize({instructionDiscriminator:e.exports.setTokenStandardInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.updateAuthority,isWritable:!0,isSigner:!0},{pubkey:t.mint,isWritable:!1,isSigner:!1}];return null!=t.edition&&n.push({pubkey:t.edition,isWritable:!1,isSigner:!1}),new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("22YhR",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createSignMetadataInstruction=e.exports.signMetadataInstructionDiscriminator=e.exports.SignMetadataStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.SignMetadataStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"SignMetadataInstructionArgs"),e.exports.signMetadataInstructionDiscriminator=7,e.exports.createSignMetadataInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.SignMetadataStruct.serialize({instructionDiscriminator:e.exports.signMetadataInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.creator,isWritable:!1,isSigner:!0}];return new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("lcyjI",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createThawDelegatedAccountInstruction=e.exports.thawDelegatedAccountInstructionDiscriminator=e.exports.ThawDelegatedAccountStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));e.exports.ThawDelegatedAccountStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.u8]],"ThawDelegatedAccountInstructionArgs"),e.exports.thawDelegatedAccountInstructionDiscriminator=27,e.exports.createThawDelegatedAccountInstruction=function(t,a=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var o;const[n]=e.exports.ThawDelegatedAccountStruct.serialize({instructionDiscriminator:e.exports.thawDelegatedAccountInstructionDiscriminator}),r=[{pubkey:t.delegate,isWritable:!0,isSigner:!0},{pubkey:t.tokenAccount,isWritable:!0,isSigner:!1},{pubkey:t.edition,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:null!==(o=t.tokenProgram)&&void 0!==o?o:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1}];return new i.TransactionInstruction({programId:a,keys:r,data:n})}})),parcelRequire.register("5abx8",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createTransferInstruction=e.exports.transferInstructionDiscriminator=e.exports.TransferStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("jkwZ0");e.exports.TransferStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["transferArgs",i.transferArgsBeet]],"TransferInstructionArgs"),e.exports.transferInstructionDiscriminator=49,e.exports.createTransferInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i,c,d,l;const[m]=e.exports.TransferStruct.serialize({instructionDiscriminator:e.exports.transferInstructionDiscriminator,...a}),u=[{pubkey:t.token,isWritable:!0,isSigner:!1},{pubkey:t.tokenOwner,isWritable:!1,isSigner:!1},{pubkey:t.destination,isWritable:!0,isSigner:!1},{pubkey:t.destinationOwner,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(n=t.edition)&&void 0!==n?n:o,isWritable:!1,isSigner:!1},{pubkey:null!==(s=t.ownerTokenRecord)&&void 0!==s?s:o,isWritable:null!=t.ownerTokenRecord,isSigner:!1},{pubkey:null!==(i=t.destinationTokenRecord)&&void 0!==i?i:o,isWritable:null!=t.destinationTokenRecord,isSigner:!1},{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:null!==(c=t.systemProgram)&&void 0!==c?c:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1},{pubkey:t.splTokenProgram,isWritable:!1,isSigner:!1},{pubkey:t.splAtaProgram,isWritable:!1,isSigner:!1},{pubkey:null!==(d=t.authorizationRulesProgram)&&void 0!==d?d:o,isWritable:!1,isSigner:!1},{pubkey:null!==(l=t.authorizationRules)&&void 0!==l?l:o,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:u,data:m})}})),parcelRequire.register("jkwZ0",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.transferArgsBeet=e.exports.isTransferArgsV1=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("bh0yS");e.exports.isTransferArgsV1=e=>"V1"===e.__kind,e.exports.transferArgsBeet=s.dataEnum([["V1",new s.FixableBeetArgsStruct([["amount",s.u64],["authorizationData",s.coption(r.authorizationDataBeet)]],'TransferArgsRecord["V1"]')]])})),parcelRequire.register("7kUpN",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createTransferOutOfEscrowInstruction=e.exports.transferOutOfEscrowInstructionDiscriminator=e.exports.TransferOutOfEscrowStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));var c=parcelRequire("bUTq5");e.exports.TransferOutOfEscrowStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.u8],["transferOutOfEscrowArgs",c.transferOutOfEscrowArgsBeet]],"TransferOutOfEscrowInstructionArgs"),e.exports.transferOutOfEscrowInstructionDiscriminator=40,e.exports.createTransferOutOfEscrowInstruction=function(t,a,o=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,r,c;const[d]=e.exports.TransferOutOfEscrowStruct.serialize({instructionDiscriminator:e.exports.transferOutOfEscrowInstructionDiscriminator,...a}),l=[{pubkey:t.escrow,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.attributeMint,isWritable:!1,isSigner:!1},{pubkey:t.attributeSrc,isWritable:!0,isSigner:!1},{pubkey:t.attributeDst,isWritable:!0,isSigner:!1},{pubkey:t.escrowMint,isWritable:!1,isSigner:!1},{pubkey:t.escrowAccount,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.systemProgram)&&void 0!==n?n:i.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:null!==(r=t.ataProgram)&&void 0!==r?r:s.ASSOCIATED_TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(c=t.tokenProgram)&&void 0!==c?c:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1}];return null!=t.authority&&l.push({pubkey:t.authority,isWritable:!1,isSigner:!0}),new i.TransactionInstruction({programId:o,keys:l,data:d})}})),parcelRequire.register("bUTq5",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.transferOutOfEscrowArgsBeet=void 0;const s=n(parcelRequire("2vJuO"));e.exports.transferOutOfEscrowArgsBeet=new s.BeetArgsStruct([["amount",s.u64]],"TransferOutOfEscrowArgs")})),parcelRequire.register("kOXv4",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUnlockInstruction=e.exports.unlockInstructionDiscriminator=e.exports.UnlockStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("9VdqI");e.exports.UnlockStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["unlockArgs",i.unlockArgsBeet]],"UnlockInstructionArgs"),e.exports.unlockInstructionDiscriminator=47,e.exports.createUnlockInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i,c,d,l,m;const[u]=e.exports.UnlockStruct.serialize({instructionDiscriminator:e.exports.unlockInstructionDiscriminator,...a}),p=[{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:null!==(n=t.tokenOwner)&&void 0!==n?n:o,isWritable:!1,isSigner:!1},{pubkey:t.token,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(s=t.edition)&&void 0!==s?s:o,isWritable:!1,isSigner:!1},{pubkey:null!==(i=t.tokenRecord)&&void 0!==i?i:o,isWritable:null!=t.tokenRecord,isSigner:!1},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:null!==(c=t.systemProgram)&&void 0!==c?c:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1},{pubkey:null!==(d=t.splTokenProgram)&&void 0!==d?d:o,isWritable:!1,isSigner:!1},{pubkey:null!==(l=t.authorizationRulesProgram)&&void 0!==l?l:o,isWritable:!1,isSigner:!1},{pubkey:null!==(m=t.authorizationRules)&&void 0!==m?m:o,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:p,data:u})}})),parcelRequire.register("9VdqI",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.unlockArgsBeet=e.exports.isUnlockArgsV1=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("bh0yS");e.exports.isUnlockArgsV1=e=>"V1"===e.__kind,e.exports.unlockArgsBeet=s.dataEnum([["V1",new s.FixableBeetArgsStruct([["authorizationData",s.coption(r.authorizationDataBeet)]],'UnlockArgsRecord["V1"]')]])})),parcelRequire.register("717v2",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUnverifyInstruction=e.exports.unverifyInstructionDiscriminator=e.exports.UnverifyStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("9Y6WJ");e.exports.UnverifyStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8],["verificationArgs",i.verificationArgsBeet]],"UnverifyInstructionArgs"),e.exports.unverifyInstructionDiscriminator=53,e.exports.createUnverifyInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i,c;const[d]=e.exports.UnverifyStruct.serialize({instructionDiscriminator:e.exports.unverifyInstructionDiscriminator,...a}),l=[{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:null!==(n=t.delegateRecord)&&void 0!==n?n:o,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(s=t.collectionMint)&&void 0!==s?s:o,isWritable:!1,isSigner:!1},{pubkey:null!==(i=t.collectionMetadata)&&void 0!==i?i:o,isWritable:null!=t.collectionMetadata,isSigner:!1},{pubkey:null!==(c=t.systemProgram)&&void 0!==c?c:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:l,data:d})}})),parcelRequire.register("9Y6WJ",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.verificationArgsBeet=e.exports.VerificationArgs=void 0;const s=n(parcelRequire("2vJuO"));var r,i;(i=r=e.exports.VerificationArgs||(e.exports.VerificationArgs={}))[i.CreatorV1=0]="CreatorV1",i[i.CollectionV1=1]="CollectionV1",e.exports.verificationArgsBeet=s.fixedScalarEnum(r)})),parcelRequire.register("i7CzB",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUnverifyCollectionInstruction=e.exports.unverifyCollectionInstructionDiscriminator=e.exports.UnverifyCollectionStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.UnverifyCollectionStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"UnverifyCollectionInstructionArgs"),e.exports.unverifyCollectionInstructionDiscriminator=22,e.exports.createUnverifyCollectionInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.UnverifyCollectionStruct.serialize({instructionDiscriminator:e.exports.unverifyCollectionInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.collectionAuthority,isWritable:!0,isSigner:!0},{pubkey:t.collectionMint,isWritable:!1,isSigner:!1},{pubkey:t.collection,isWritable:!1,isSigner:!1},{pubkey:t.collectionMasterEditionAccount,isWritable:!1,isSigner:!1}];return null!=t.collectionAuthorityRecord&&n.push({pubkey:t.collectionAuthorityRecord,isWritable:!1,isSigner:!1}),new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("1PTxd",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUnverifySizedCollectionItemInstruction=e.exports.unverifySizedCollectionItemInstructionDiscriminator=e.exports.UnverifySizedCollectionItemStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.UnverifySizedCollectionItemStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"UnverifySizedCollectionItemInstructionArgs"),e.exports.unverifySizedCollectionItemInstructionDiscriminator=31,e.exports.createUnverifySizedCollectionItemInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.UnverifySizedCollectionItemStruct.serialize({instructionDiscriminator:e.exports.unverifySizedCollectionItemInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.collectionAuthority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.collectionMint,isWritable:!1,isSigner:!1},{pubkey:t.collection,isWritable:!0,isSigner:!1},{pubkey:t.collectionMasterEditionAccount,isWritable:!1,isSigner:!1}];return null!=t.collectionAuthorityRecord&&n.push({pubkey:t.collectionAuthorityRecord,isWritable:!1,isSigner:!1}),new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("1Mja1",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUpdateInstruction=e.exports.updateInstructionDiscriminator=e.exports.UpdateStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("67nTf");e.exports.UpdateStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["updateArgs",i.updateArgsBeet]],"UpdateInstructionArgs"),e.exports.updateInstructionDiscriminator=50,e.exports.createUpdateInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i,c,d,l;const[m]=e.exports.UpdateStruct.serialize({instructionDiscriminator:e.exports.updateInstructionDiscriminator,...a}),u=[{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:null!==(n=t.delegateRecord)&&void 0!==n?n:o,isWritable:!1,isSigner:!1},{pubkey:null!==(s=t.token)&&void 0!==s?s:o,isWritable:!1,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(i=t.edition)&&void 0!==i?i:o,isWritable:null!=t.edition,isSigner:!1},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:null!==(c=t.systemProgram)&&void 0!==c?c:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1},{pubkey:null!==(d=t.authorizationRulesProgram)&&void 0!==d?d:o,isWritable:!1,isSigner:!1},{pubkey:null!==(l=t.authorizationRules)&&void 0!==l?l:o,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:u,data:m})}})),parcelRequire.register("67nTf",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.updateArgsBeet=e.exports.isUpdateArgsV1=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));var i=parcelRequire("auQ5Q"),c=parcelRequire("2UBXv"),d=parcelRequire("a3QN5"),l=parcelRequire("6BG4d"),m=parcelRequire("mUNQG"),u=parcelRequire("bh0yS");e.exports.isUpdateArgsV1=e=>"V1"===e.__kind,e.exports.updateArgsBeet=s.dataEnum([["V1",new s.FixableBeetArgsStruct([["newUpdateAuthority",s.coption(r.publicKey)],["data",s.coption(i.dataBeet)],["primarySaleHappened",s.coption(s.bool)],["isMutable",s.coption(s.bool)],["collection",c.collectionToggleBeet],["collectionDetails",d.collectionDetailsToggleBeet],["uses",l.usesToggleBeet],["ruleSet",m.ruleSetToggleBeet],["authorizationData",s.coption(u.authorizationDataBeet)]],'UpdateArgsRecord["V1"]')]])})),parcelRequire.register("2UBXv",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.collectionToggleBeet=e.exports.isCollectionToggleSet=e.exports.isCollectionToggleClear=e.exports.isCollectionToggleNone=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("iiQMG");e.exports.isCollectionToggleNone=e=>"None"===e.__kind;e.exports.isCollectionToggleClear=e=>"Clear"===e.__kind;e.exports.isCollectionToggleSet=e=>"Set"===e.__kind,e.exports.collectionToggleBeet=s.dataEnum([["None",s.unit],["Clear",s.unit],["Set",new s.BeetArgsStruct([["fields",s.fixedSizeTuple([r.collectionBeet])]],'CollectionToggleRecord["Set"]')]])})),parcelRequire.register("a3QN5",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.collectionDetailsToggleBeet=e.exports.isCollectionDetailsToggleSet=e.exports.isCollectionDetailsToggleClear=e.exports.isCollectionDetailsToggleNone=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("5BSCc");e.exports.isCollectionDetailsToggleNone=e=>"None"===e.__kind;e.exports.isCollectionDetailsToggleClear=e=>"Clear"===e.__kind;e.exports.isCollectionDetailsToggleSet=e=>"Set"===e.__kind,e.exports.collectionDetailsToggleBeet=s.dataEnum([["None",s.unit],["Clear",s.unit],["Set",new s.FixableBeetArgsStruct([["fields",s.tuple([r.collectionDetailsBeet])]],'CollectionDetailsToggleRecord["Set"]')]])})),parcelRequire.register("6BG4d",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.usesToggleBeet=e.exports.isUsesToggleSet=e.exports.isUsesToggleClear=e.exports.isUsesToggleNone=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("3GNXc");e.exports.isUsesToggleNone=e=>"None"===e.__kind;e.exports.isUsesToggleClear=e=>"Clear"===e.__kind;e.exports.isUsesToggleSet=e=>"Set"===e.__kind,e.exports.usesToggleBeet=s.dataEnum([["None",s.unit],["Clear",s.unit],["Set",new s.BeetArgsStruct([["fields",s.fixedSizeTuple([r.usesBeet])]],'UsesToggleRecord["Set"]')]])})),parcelRequire.register("mUNQG",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ruleSetToggleBeet=e.exports.isRuleSetToggleSet=e.exports.isRuleSetToggleClear=e.exports.isRuleSetToggleNone=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));e.exports.isRuleSetToggleNone=e=>"None"===e.__kind;e.exports.isRuleSetToggleClear=e=>"Clear"===e.__kind;e.exports.isRuleSetToggleSet=e=>"Set"===e.__kind,e.exports.ruleSetToggleBeet=s.dataEnum([["None",s.unit],["Clear",s.unit],["Set",new s.BeetArgsStruct([["fields",s.fixedSizeTuple([r.publicKey])]],'RuleSetToggleRecord["Set"]')]])})),parcelRequire.register("hFhR0",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUpdateMetadataAccountInstruction=e.exports.updateMetadataAccountInstructionDiscriminator=e.exports.UpdateMetadataAccountStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("fsiCK");e.exports.UpdateMetadataAccountStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["updateMetadataAccountArgs",i.updateMetadataAccountArgsBeet]],"UpdateMetadataAccountInstructionArgs"),e.exports.updateMetadataAccountInstructionDiscriminator=1,e.exports.createUpdateMetadataAccountInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[n]=e.exports.UpdateMetadataAccountStruct.serialize({instructionDiscriminator:e.exports.updateMetadataAccountInstructionDiscriminator,...a}),s=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!0}];return new r.TransactionInstruction({programId:o,keys:s,data:n})}})),parcelRequire.register("fsiCK",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.updateMetadataAccountArgsBeet=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));var i=parcelRequire("auQ5Q");e.exports.updateMetadataAccountArgsBeet=new s.FixableBeetArgsStruct([["data",s.coption(i.dataBeet)],["updateAuthority",s.coption(r.publicKey)],["primarySaleHappened",s.coption(s.bool)]],"UpdateMetadataAccountArgs")})),parcelRequire.register("gQfBk",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUpdateMetadataAccountV2Instruction=e.exports.updateMetadataAccountV2InstructionDiscriminator=e.exports.UpdateMetadataAccountV2Struct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("cmFde");e.exports.UpdateMetadataAccountV2Struct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["updateMetadataAccountArgsV2",i.updateMetadataAccountArgsV2Beet]],"UpdateMetadataAccountV2InstructionArgs"),e.exports.updateMetadataAccountV2InstructionDiscriminator=15,e.exports.createUpdateMetadataAccountV2Instruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[n]=e.exports.UpdateMetadataAccountV2Struct.serialize({instructionDiscriminator:e.exports.updateMetadataAccountV2InstructionDiscriminator,...a}),s=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.updateAuthority,isWritable:!1,isSigner:!0}];return new r.TransactionInstruction({programId:o,keys:s,data:n})}})),parcelRequire.register("cmFde",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.updateMetadataAccountArgsV2Beet=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("ahCTi"));var i=parcelRequire("9Zhls");e.exports.updateMetadataAccountArgsV2Beet=new s.FixableBeetArgsStruct([["data",s.coption(i.dataV2Beet)],["updateAuthority",s.coption(r.publicKey)],["primarySaleHappened",s.coption(s.bool)],["isMutable",s.coption(s.bool)]],"UpdateMetadataAccountArgsV2")})),parcelRequire.register("g1nTY",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUpdatePrimarySaleHappenedViaTokenInstruction=e.exports.updatePrimarySaleHappenedViaTokenInstructionDiscriminator=e.exports.UpdatePrimarySaleHappenedViaTokenStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.UpdatePrimarySaleHappenedViaTokenStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"UpdatePrimarySaleHappenedViaTokenInstructionArgs"),e.exports.updatePrimarySaleHappenedViaTokenInstructionDiscriminator=4,e.exports.createUpdatePrimarySaleHappenedViaTokenInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.UpdatePrimarySaleHappenedViaTokenStruct.serialize({instructionDiscriminator:e.exports.updatePrimarySaleHappenedViaTokenInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.owner,isWritable:!1,isSigner:!0},{pubkey:t.token,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("1VNh6",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUseInstruction=e.exports.useInstructionDiscriminator=e.exports.UseStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("d4hVF");e.exports.UseStruct=new s.FixableBeetArgsStruct([["instructionDiscriminator",s.u8],["useArgs",i.useArgsBeet]],"UseInstructionArgs"),e.exports.useInstructionDiscriminator=51,e.exports.createUseInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i,c,d,l,m;const[u]=e.exports.UseStruct.serialize({instructionDiscriminator:e.exports.useInstructionDiscriminator,...a}),p=[{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:null!==(n=t.delegateRecord)&&void 0!==n?n:o,isWritable:null!=t.delegateRecord,isSigner:!1},{pubkey:null!==(s=t.token)&&void 0!==s?s:o,isWritable:null!=t.token,isSigner:!1},{pubkey:t.mint,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(i=t.edition)&&void 0!==i?i:o,isWritable:null!=t.edition,isSigner:!1},{pubkey:t.payer,isWritable:!1,isSigner:!0},{pubkey:null!==(c=t.systemProgram)&&void 0!==c?c:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1},{pubkey:null!==(d=t.splTokenProgram)&&void 0!==d?d:o,isWritable:!1,isSigner:!1},{pubkey:null!==(l=t.authorizationRulesProgram)&&void 0!==l?l:o,isWritable:!1,isSigner:!1},{pubkey:null!==(m=t.authorizationRules)&&void 0!==m?m:o,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:p,data:u})}})),parcelRequire.register("d4hVF",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.useArgsBeet=e.exports.isUseArgsV1=void 0;const s=n(parcelRequire("2vJuO"));var r=parcelRequire("bh0yS");e.exports.isUseArgsV1=e=>"V1"===e.__kind,e.exports.useArgsBeet=s.dataEnum([["V1",new s.FixableBeetArgsStruct([["authorizationData",s.coption(r.authorizationDataBeet)]],'UseArgsRecord["V1"]')]])})),parcelRequire.register("kKmwI",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createUtilizeInstruction=e.exports.utilizeInstructionDiscriminator=e.exports.UtilizeStruct=void 0;const s=n(parcelRequire("hLxTZ")),r=n(parcelRequire("2vJuO")),i=n(parcelRequire("5cySN"));var c=parcelRequire("BRZaK");e.exports.UtilizeStruct=new r.BeetArgsStruct([["instructionDiscriminator",r.u8],["utilizeArgs",c.utilizeArgsBeet]],"UtilizeInstructionArgs"),e.exports.utilizeInstructionDiscriminator=19,e.exports.createUtilizeInstruction=function(t,a,o=new i.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,r,c,d;const[l]=e.exports.UtilizeStruct.serialize({instructionDiscriminator:e.exports.utilizeInstructionDiscriminator,...a}),m=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.tokenAccount,isWritable:!0,isSigner:!1},{pubkey:t.mint,isWritable:!0,isSigner:!1},{pubkey:t.useAuthority,isWritable:!0,isSigner:!0},{pubkey:t.owner,isWritable:!1,isSigner:!1},{pubkey:null!==(n=t.tokenProgram)&&void 0!==n?n:s.TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(r=t.ataProgram)&&void 0!==r?r:s.ASSOCIATED_TOKEN_PROGRAM_ID,isWritable:!1,isSigner:!1},{pubkey:null!==(c=t.systemProgram)&&void 0!==c?c:i.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:null!==(d=t.rent)&&void 0!==d?d:i.SYSVAR_RENT_PUBKEY,isWritable:!1,isSigner:!1}];if(null!=t.useAuthorityRecord&&m.push({pubkey:t.useAuthorityRecord,isWritable:!0,isSigner:!1}),null!=t.burner){if(null==t.useAuthorityRecord)throw new Error("When providing 'burner' then 'accounts.useAuthorityRecord' need(s) to be provided as well.");m.push({pubkey:t.burner,isWritable:!1,isSigner:!1})}return new i.TransactionInstruction({programId:o,keys:m,data:l})}})),parcelRequire.register("BRZaK",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.utilizeArgsBeet=void 0;const s=n(parcelRequire("2vJuO"));e.exports.utilizeArgsBeet=new s.BeetArgsStruct([["numberOfUses",s.u64]],"UtilizeArgs")})),parcelRequire.register("eAPme",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createVerifyInstruction=e.exports.verifyInstructionDiscriminator=e.exports.VerifyStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));var i=parcelRequire("9Y6WJ");e.exports.VerifyStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8],["verificationArgs",i.verificationArgsBeet]],"VerifyInstructionArgs"),e.exports.verifyInstructionDiscriminator=52,e.exports.createVerifyInstruction=function(t,a,o=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){var n,s,i,c,d;const[l]=e.exports.VerifyStruct.serialize({instructionDiscriminator:e.exports.verifyInstructionDiscriminator,...a}),m=[{pubkey:t.authority,isWritable:!1,isSigner:!0},{pubkey:null!==(n=t.delegateRecord)&&void 0!==n?n:o,isWritable:!1,isSigner:!1},{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:null!==(s=t.collectionMint)&&void 0!==s?s:o,isWritable:!1,isSigner:!1},{pubkey:null!==(i=t.collectionMetadata)&&void 0!==i?i:o,isWritable:null!=t.collectionMetadata,isSigner:!1},{pubkey:null!==(c=t.collectionMasterEdition)&&void 0!==c?c:o,isWritable:!1,isSigner:!1},{pubkey:null!==(d=t.systemProgram)&&void 0!==d?d:r.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t.sysvarInstructions,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:o,keys:m,data:l})}})),parcelRequire.register("fgliG",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createVerifyCollectionInstruction=e.exports.verifyCollectionInstructionDiscriminator=e.exports.VerifyCollectionStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.VerifyCollectionStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"VerifyCollectionInstructionArgs"),e.exports.verifyCollectionInstructionDiscriminator=18,e.exports.createVerifyCollectionInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.VerifyCollectionStruct.serialize({instructionDiscriminator:e.exports.verifyCollectionInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.collectionAuthority,isWritable:!0,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.collectionMint,isWritable:!1,isSigner:!1},{pubkey:t.collection,isWritable:!1,isSigner:!1},{pubkey:t.collectionMasterEditionAccount,isWritable:!1,isSigner:!1}];return new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("3Wob9",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.createVerifySizedCollectionItemInstruction=e.exports.verifySizedCollectionItemInstructionDiscriminator=e.exports.VerifySizedCollectionItemStruct=void 0;const s=n(parcelRequire("2vJuO")),r=n(parcelRequire("5cySN"));e.exports.VerifySizedCollectionItemStruct=new s.BeetArgsStruct([["instructionDiscriminator",s.u8]],"VerifySizedCollectionItemInstructionArgs"),e.exports.verifySizedCollectionItemInstructionDiscriminator=30,e.exports.createVerifySizedCollectionItemInstruction=function(t,a=new r.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){const[o]=e.exports.VerifySizedCollectionItemStruct.serialize({instructionDiscriminator:e.exports.verifySizedCollectionItemInstructionDiscriminator}),n=[{pubkey:t.metadata,isWritable:!0,isSigner:!1},{pubkey:t.collectionAuthority,isWritable:!1,isSigner:!0},{pubkey:t.payer,isWritable:!0,isSigner:!0},{pubkey:t.collectionMint,isWritable:!1,isSigner:!1},{pubkey:t.collection,isWritable:!0,isSigner:!1},{pubkey:t.collectionMasterEditionAccount,isWritable:!1,isSigner:!1}];return null!=t.collectionAuthorityRecord&&n.push({pubkey:t.collectionAuthorityRecord,isWritable:!1,isSigner:!1}),new r.TransactionInstruction({programId:a,keys:n,data:o})}})),parcelRequire.register("19BAx",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||a(t,e,o)};Object.defineProperty(e.exports,"__esModule",{value:!0}),o(parcelRequire("8gv1G"),e.exports),o(parcelRequire("gPApq"),e.exports),o(parcelRequire("9tgFJ"),e.exports),o(parcelRequire("bh0yS"),e.exports),o(parcelRequire("eW8Z7"),e.exports),o(parcelRequire("iiQMG"),e.exports),o(parcelRequire("5BSCc"),e.exports),o(parcelRequire("a3QN5"),e.exports),o(parcelRequire("2UBXv"),e.exports),o(parcelRequire("eEBfJ"),e.exports),o(parcelRequire("iexXI"),e.exports),o(parcelRequire("e9wLl"),e.exports),o(parcelRequire("KCh0n"),e.exports),o(parcelRequire("cIIxj"),e.exports),o(parcelRequire("hgIHB"),e.exports),o(parcelRequire("auQ5Q"),e.exports),o(parcelRequire("9Zhls"),e.exports),o(parcelRequire("5nFl5"),e.exports),o(parcelRequire("315kw"),e.exports),o(parcelRequire("766fu"),e.exports),o(parcelRequire("57Jng"),e.exports),o(parcelRequire("1YxHO"),e.exports),o(parcelRequire("1O7QY"),e.exports),o(parcelRequire("hsB1Q"),e.exports),o(parcelRequire("8aFpC"),e.exports),o(parcelRequire("1tIEj"),e.exports),o(parcelRequire("1i5mN"),e.exports),o(parcelRequire("4TJd9"),e.exports),o(parcelRequire("75pjY"),e.exports),o(parcelRequire("lgup1"),e.exports),o(parcelRequire("1Iy32"),e.exports),o(parcelRequire("cM44g"),e.exports),o(parcelRequire("cDILM"),e.exports),o(parcelRequire("eU0iK"),e.exports),o(parcelRequire("7yyvR"),e.exports),o(parcelRequire("5fT9P"),e.exports),o(parcelRequire("mUNQG"),e.exports),o(parcelRequire("3pexK"),e.exports),o(parcelRequire("dT7Dc"),e.exports),o(parcelRequire("aSKSh"),e.exports),o(parcelRequire("9k24K"),e.exports),o(parcelRequire("5ySPU"),e.exports),o(parcelRequire("dwdKe"),e.exports),o(parcelRequire("jkwZ0"),e.exports),o(parcelRequire("bUTq5"),e.exports),o(parcelRequire("9VdqI"),e.exports),o(parcelRequire("67nTf"),e.exports),o(parcelRequire("fsiCK"),e.exports),o(parcelRequire("cmFde"),e.exports),o(parcelRequire("d4hVF"),e.exports),o(parcelRequire("7UURH"),e.exports),o(parcelRequire("3GNXc"),e.exports),o(parcelRequire("6BG4d"),e.exports),o(parcelRequire("BRZaK"),e.exports),o(parcelRequire("9Y6WJ"),e.exports)})),parcelRequire.register("9tgFJ",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.authorityTypeBeet=e.exports.AuthorityType=void 0;const s=n(parcelRequire("2vJuO"));var r,i;(i=r=e.exports.AuthorityType||(e.exports.AuthorityType={}))[i.None=0]="None",i[i.Metadata=1]="Metadata",i[i.Holder=2]="Holder",i[i.MetadataDelegate=3]="MetadataDelegate",i[i.TokenDelegate=4]="TokenDelegate",e.exports.authorityTypeBeet=s.fixedScalarEnum(r)})),parcelRequire.register("1O7QY",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.metadataDelegateRoleBeet=e.exports.MetadataDelegateRole=void 0;const s=n(parcelRequire("2vJuO"));var r,i;(i=r=e.exports.MetadataDelegateRole||(e.exports.MetadataDelegateRole={}))[i.Authority=0]="Authority",i[i.Collection=1]="Collection",i[i.Use=2]="Use",i[i.Update=3]="Update",i[i.ProgrammableConfig=4]="ProgrammableConfig",e.exports.metadataDelegateRoleBeet=s.fixedScalarEnum(r)})),parcelRequire.register("lgup1",(function(e,t){"use strict";var a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,a,o){void 0===o&&(o=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,n)}:function(e,t,a,o){void 0===o&&(o=a),e[o]=t[a]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.payloadKeyBeet=e.exports.PayloadKey=void 0;const s=n(parcelRequire("2vJuO"));var r,i;(i=r=e.exports.PayloadKey||(e.exports.PayloadKey={}))[i.Amount=0]="Amount",i[i.Authority=1]="Authority",i[i.AuthoritySeeds=2]="AuthoritySeeds",i[i.Delegate=3]="Delegate",i[i.DelegateSeeds=4]="DelegateSeeds",i[i.Destination=5]="Destination",i[i.DestinationSeeds=6]="DestinationSeeds",i[i.Holder=7]="Holder",i[i.Source=8]="Source",i[i.SourceSeeds=9]="SourceSeeds",e.exports.payloadKeyBeet=s.fixedScalarEnum(r)})),parcelRequire.register("gRApq",(function(e,t){var a=parcelRequire("aVc1D"),o=65536,n=4294967295;var s=parcelRequire("csqZT").Buffer,r=$parcel$global.crypto||$parcel$global.msCrypto;r&&r.getRandomValues?e.exports=function(e,t){if(e>n)throw new RangeError("requested too many random bytes");var i=s.allocUnsafe(e);if(e>0)if(e>o)for(var c=0;c>>32-t}function c(e,t,a,o,n,s,r){return i(e+(t&a|~t&o)+n+s|0,r)+t|0}function d(e,t,a,o,n,s,r){return i(e+(t&o|a&~o)+n+s|0,r)+t|0}function l(e,t,a,o,n,s,r){return i(e+(t^a^o)+n+s|0,r)+t|0}function m(e,t,a,o,n,s,r){return i(e+(a^(t|~o))+n+s|0,r)+t|0}a(r,o),r.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var a=this._a,o=this._b,n=this._c,r=this._d;a=c(a,o,n,r,e[0],3614090360,7),r=c(r,a,o,n,e[1],3905402710,12),n=c(n,r,a,o,e[2],606105819,17),o=c(o,n,r,a,e[3],3250441966,22),a=c(a,o,n,r,e[4],4118548399,7),r=c(r,a,o,n,e[5],1200080426,12),n=c(n,r,a,o,e[6],2821735955,17),o=c(o,n,r,a,e[7],4249261313,22),a=c(a,o,n,r,e[8],1770035416,7),r=c(r,a,o,n,e[9],2336552879,12),n=c(n,r,a,o,e[10],4294925233,17),o=c(o,n,r,a,e[11],2304563134,22),a=c(a,o,n,r,e[12],1804603682,7),r=c(r,a,o,n,e[13],4254626195,12),n=c(n,r,a,o,e[14],2792965006,17),a=d(a,o=c(o,n,r,a,e[15],1236535329,22),n,r,e[1],4129170786,5),r=d(r,a,o,n,e[6],3225465664,9),n=d(n,r,a,o,e[11],643717713,14),o=d(o,n,r,a,e[0],3921069994,20),a=d(a,o,n,r,e[5],3593408605,5),r=d(r,a,o,n,e[10],38016083,9),n=d(n,r,a,o,e[15],3634488961,14),o=d(o,n,r,a,e[4],3889429448,20),a=d(a,o,n,r,e[9],568446438,5),r=d(r,a,o,n,e[14],3275163606,9),n=d(n,r,a,o,e[3],4107603335,14),o=d(o,n,r,a,e[8],1163531501,20),a=d(a,o,n,r,e[13],2850285829,5),r=d(r,a,o,n,e[2],4243563512,9),n=d(n,r,a,o,e[7],1735328473,14),a=l(a,o=d(o,n,r,a,e[12],2368359562,20),n,r,e[5],4294588738,4),r=l(r,a,o,n,e[8],2272392833,11),n=l(n,r,a,o,e[11],1839030562,16),o=l(o,n,r,a,e[14],4259657740,23),a=l(a,o,n,r,e[1],2763975236,4),r=l(r,a,o,n,e[4],1272893353,11),n=l(n,r,a,o,e[7],4139469664,16),o=l(o,n,r,a,e[10],3200236656,23),a=l(a,o,n,r,e[13],681279174,4),r=l(r,a,o,n,e[0],3936430074,11),n=l(n,r,a,o,e[3],3572445317,16),o=l(o,n,r,a,e[6],76029189,23),a=l(a,o,n,r,e[9],3654602809,4),r=l(r,a,o,n,e[12],3873151461,11),n=l(n,r,a,o,e[15],530742520,16),a=m(a,o=l(o,n,r,a,e[2],3299628645,23),n,r,e[0],4096336452,6),r=m(r,a,o,n,e[7],1126891415,10),n=m(n,r,a,o,e[14],2878612391,15),o=m(o,n,r,a,e[5],4237533241,21),a=m(a,o,n,r,e[12],1700485571,6),r=m(r,a,o,n,e[3],2399980690,10),n=m(n,r,a,o,e[10],4293915773,15),o=m(o,n,r,a,e[1],2240044497,21),a=m(a,o,n,r,e[8],1873313359,6),r=m(r,a,o,n,e[15],4264355552,10),n=m(n,r,a,o,e[6],2734768916,15),o=m(o,n,r,a,e[13],1309151649,21),a=m(a,o,n,r,e[4],4149444226,6),r=m(r,a,o,n,e[11],3174756917,10),n=m(n,r,a,o,e[2],718787259,15),o=m(o,n,r,a,e[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+o|0,this._c=this._c+n|0,this._d=this._d+r|0},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=r})),parcelRequire.register("k2Obk",(function(e,t){"use strict";var a=parcelRequire("csqZT").Buffer,o=parcelRequire("dYN6t").Transform;function n(e){o.call(this),this._block=a.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}parcelRequire("943Ft")(n,o),n.prototype._transform=function(e,t,a){var o=null;try{this.update(e,t)}catch(e){o=e}a(o)},n.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},n.prototype.update=function(e,t){if(function(e,t){if(!a.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");a.isBuffer(e)||(e=a.from(e,t));for(var o=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var s=this._blockOffset;s0;++r)this._length[r]+=i,(i=this._length[r]/4294967296|0)>0&&(this._length[r]-=4294967296*i);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var a=0;a<4;++a)this._length[a]=0;return t},n.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=n})),parcelRequire.register("dYN6t",(function(e,t){(t=e.exports=parcelRequire("8aPJD")).Stream=t,t.Readable=t,t.Writable=parcelRequire("lOwdT"),t.Duplex=parcelRequire("evjUr"),t.Transform=parcelRequire("5cUKf"),t.PassThrough=parcelRequire("fnyeH"),t.finished=parcelRequire("9bPUc"),t.pipeline=parcelRequire("awZ3m")})),parcelRequire.register("8aPJD",(function(e,t){var a,o=parcelRequire("aVc1D");e.exports=R,R.ReadableState=x;parcelRequire("lFNml").EventEmitter;var n=function(e,t){return e.listeners(t).length},s=parcelRequire("NoD5j"),r=parcelRequire("ajHSv").Buffer,i=(void 0!==$parcel$global?$parcel$global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,d=parcelRequire("gFqLz");c=d&&d.debuglog?d.debuglog("stream"):function(){};var l,m,u,p=parcelRequire("1PfbM"),h=parcelRequire("8srhl"),g=parcelRequire("2sX1z").getHighWaterMark,b=parcelRequire("aSmJo").codes,f=b.ERR_INVALID_ARG_TYPE,y=b.ERR_STREAM_PUSH_AFTER_EOF,$=b.ERR_METHOD_NOT_IMPLEMENTED,w=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;parcelRequire("943Ft")(R,s);var k=h.errorOrDestroy,v=["error","close","destroy","pause","resume"];function x(e,t,o){a=a||parcelRequire("evjUr"),e=e||{},"boolean"!=typeof o&&(o=t instanceof a),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",o),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=parcelRequire("gScCj").StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function R(e){if(a=a||parcelRequire("evjUr"),!(this instanceof R))return new R(e);var t=this instanceof a;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function A(e,t,a,o,n){c("readableAddChunk",t);var s,d=e._readableState;if(null===t)d.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var a=t.decoder.end();a&&a.length&&(t.buffer.push(a),t.length+=t.objectMode?1:a.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}(e,d);else if(n||(s=function(e,t){var a;o=t,r.isBuffer(o)||o instanceof i||"string"==typeof t||void 0===t||e.objectMode||(a=new f("chunk",["string","Buffer","Uint8Array"],t));var o;return a}(d,t)),s)k(e,s);else if(d.objectMode||t&&t.length>0)if("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===r.prototype||(t=function(e){return r.from(e)}(t)),o)d.endEmitted?k(e,new w):I(e,d,t,!0);else if(d.ended)k(e,new y);else{if(d.destroyed)return!1;d.reading=!1,d.decoder&&!a?(t=d.decoder.write(t),d.objectMode||0!==t.length?I(e,d,t,!1):U(e,d)):I(e,d,t,!1)}else o||(d.reading=!1,U(e,d));return!d.ended&&(d.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(C,e))}function C(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function U(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){c("readable nexttick read 0"),e.read(0)}function P(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?a=t.buffer.shift():!e||e>=t.length?(a=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):a=t.buffer.consume(e,t.decoder),a);var a}function F(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(K,t,e))}function K(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var a=t._writableState;(!a||a.autoDestroy&&a.finished)&&t.destroy()}}function G(e,t){for(var a=0,o=e.length;a=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&F(this),null;var o,n=t.needReadable;return c("need readable",n),(0===t.length||t.length-e0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),a!==e&&t.ended&&F(this)),null!==o&&this.emit("data",o),o},R.prototype._read=function(e){k(this,new $("_read()"))},R.prototype.pipe=function(e,t){var a=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,c("pipe count=%d opts=%j",s.pipesCount,t);var r=(!t||!1!==t.end)&&e!==o.stdout&&e!==o.stderr?d:b;function i(t,o){c("onunpipe"),t===a&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",i),a.removeListener("end",d),a.removeListener("end",b),a.removeListener("data",u),m=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function d(){c("onend"),e.end()}s.endEmitted?o.nextTick(r):a.once("end",r),e.on("unpipe",i);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&n(e,"data")&&(t.flowing=!0,B(e))}}(a);e.on("drain",l);var m=!1;function u(t){c("ondata");var o=e.write(t);c("dest.write",o),!1===o&&((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==G(s.pipes,e))&&!m&&(c("false write response, pause",s.awaitDrain),s.awaitDrain++),a.pause())}function p(t){c("onerror",t),b(),e.removeListener("error",p),0===n(e,"error")&&k(e,t)}function h(){e.removeListener("finish",g),b()}function g(){c("onfinish"),e.removeListener("close",h),b()}function b(){c("unpipe"),a.unpipe(e)}return a.on("data",u),function(e,t,a){if("function"==typeof e.prependListener)return e.prependListener(t,a);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(a):e._events[t]=[a,e._events[t]]:e.on(t,a)}(e,"error",p),e.once("close",h),e.once("finish",g),e.emit("pipe",a),s.flowing||(c("pipe resume"),a.resume()),e},R.prototype.unpipe=function(e){var t=this._readableState,a={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,a)),this;if(!e){var o=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?T(this):n.reading||o.nextTick(N,this))),a},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(e,t){var a=s.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(D,this),a},R.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||o.nextTick(D,this),t},R.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(P,e,t))}(this,e)),e.paused=!1,this},R.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},R.prototype.wrap=function(e){var t=this,a=this._readableState,o=!1;for(var n in e.on("end",(function(){if(c("wrapped end"),a.decoder&&!a.ended){var e=a.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(n){(c("wrapped data"),a.decoder&&(n=a.decoder.write(n)),a.objectMode&&null==n)||(a.objectMode||n&&n.length)&&(t.push(n)||(o=!0,e.pause()))})),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var s=0;s0&&r.length>n&&!r.warned){r.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=r.length,i=l,console&&console.warn&&console.warn(i)}return e}function m(){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 u(e,t,a){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:a},n=m.bind(o);return n.listener=a,o.wrapFn=n,n}function p(e,t,a){var o=e._events;if(void 0===o)return[];var n=o[t];return void 0===n?[]:"function"==typeof n?a?[n.listener||n]:[n]:a?function(e){for(var t=new Array(e.length),a=0;a0&&(r=t[0]),r instanceof Error)throw r;var i=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw i.context=r,i}var c=s[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var d=c.length,l=g(c,d);for(a=0;a=0;s--)if(a[s]===t||a[s].listener===t){r=a[s].listener,n=s;break}if(n<0)return this;0===n?a.shift():function(e,t){for(;t+1=0;o--)this.removeListener(e,t[o]);return this},r.prototype.listeners=function(e){return p(this,e,!0)},r.prototype.rawListeners=function(e){return p(this,e,!1)},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},r.prototype.listenerCount=h,r.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}})),parcelRequire.register("NoD5j",(function(e,t){e.exports=parcelRequire("lFNml").EventEmitter})),parcelRequire.register("1PfbM",(function(e,t){"use strict";function a(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function o(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,a=""+t.data;t=t.next;)a+=e+t.data;return a}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t,a,o,n=i.allocUnsafe(e>>>0),s=this.head,r=0;s;)t=s.data,a=n,o=r,i.prototype.copy.call(t,a,o),r+=s.data.length,s=s.next;return n}},{key:"consume",value:function(e,t){var a;return en.length?n.length:e;if(s===n.length?o+=n:o+=n.slice(0,e),0==(e-=s)){s===n.length?(++a,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(s));break}++a}return this.length-=a,o}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),a=this.head,o=1;for(a.data.copy(t),e-=a.data.length;a=a.next;){var n=a.data,s=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,s),0==(e-=s)){s===n.length?(++o,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=n.slice(s));break}++o}return this.length-=o,t}},{key:d,value:function(e,t){return c(this,o(o({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,a),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()})),parcelRequire.register("8srhl",(function(e,t){var a=parcelRequire("aVc1D");function o(e,t){s(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function s(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return i||c?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(s,this,e)):a.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?a.nextTick(n,r):(r._writableState.errorEmitted=!0,a.nextTick(o,r,e)):a.nextTick(o,r,e):t?(a.nextTick(n,r),t(e)):a.nextTick(n,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var a=e._readableState,o=e._writableState;a&&a.autoDestroy||o&&o.autoDestroy?e.destroy(t):e.emit("error",t)}}})),parcelRequire.register("2sX1z",(function(e,t){"use strict";var a=parcelRequire("aSmJo").codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,o,n){var s=function(e,t,a){return null!=e.highWaterMark?e.highWaterMark:t?e[a]:null}(t,n,o);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new a(n?o:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}}})),parcelRequire.register("aSmJo",(function(e,t){var a;$parcel$export(e.exports,"codes",(()=>a),(e=>a=e));var o={};function n(e,t,a){a||(a=Error);var n=function(e){var a,o;function n(a,o,n){return e.call(this,function(e,a,o){return"string"==typeof t?t:t(e,a,o)}(a,o,n))||this}return o=e,(a=n).prototype=Object.create(o.prototype),a.prototype.constructor=a,a.__proto__=o,n}(a);n.prototype.name=a.name,n.prototype.code=e,o[e]=n}function s(e,t){if(Array.isArray(e)){var a=e.length;return e=e.map((function(e){return String(e)})),a>2?"one of ".concat(t," ").concat(e.slice(0,a-1).join(", "),", or ")+e[a-1]:2===a?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,a){var o,n,r,i;if("string"==typeof t&&(n="not ",t.substr(!r||r<0?0:+r,n.length)===n)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,a){return(void 0===a||a>e.length)&&(a=e.length),e.substring(a-t.length,a)===t}(e," argument"))i="The ".concat(e," ").concat(o," ").concat(s(t,"type"));else{var c=function(e,t,a){return"number"!=typeof a&&(a=0),!(a+t.length>e.length)&&-1!==e.indexOf(t,a)}(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(c," ").concat(o," ").concat(s(t,"type"))}return i+=". Received type ".concat(typeof a)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),a=o})),parcelRequire.register("evjUr",(function(e,t){var a=parcelRequire("aVc1D"),o=Object.keys||function(e){var t=[];for(var a in e)t.push(a);return t};e.exports=d;var n=parcelRequire("8aPJD"),s=parcelRequire("lOwdT");parcelRequire("943Ft")(d,n);for(var r=o(s.prototype),i=0;i-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),R.prototype._write=function(e,t,a){a(new h("_write()"))},R.prototype._writev=null,R.prototype.end=function(e,t,a){var n=this._writableState;return"function"==typeof e?(a=e,e=null,t=null):"function"==typeof t&&(a=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,a){t.ending=!0,C(e,t),a&&(t.finished?o.nextTick(a):e.once("finish",a));t.ended=!0,e.writable=!1}(this,n,a),this},Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),R.prototype.destroy=l.destroy,R.prototype._undestroy=l.undestroy,R.prototype._destroy=function(e,t){t(e)}})),parcelRequire.register("eQimq",(function(e,t){function a(e){try{if(!$parcel$global.localStorage)return!1}catch(e){return!1}var t=$parcel$global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(a("noDeprecation"))return e;var o=!1;return function(){if(!o){if(a("throwDeprecation"))throw new Error(t);a("traceDeprecation")?console.trace(t):console.warn(t),o=!0}return e.apply(this,arguments)}}})),parcelRequire.register("gScCj",(function(e,t){var a;$parcel$export(e.exports,"StringDecoder",(()=>a),(e=>a=e));var o=parcelRequire("csqZT").Buffer,n=o.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(o.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=d,t=4;break;case"utf8":this.fillLast=i,t=4;break;case"base64":this.text=l,this.end=m,t=3;break;default:return this.write=u,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(t)}function r(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,a=function(e,t,a){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==a?a:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var a=e.toString("utf16le",t);if(a){var o=a.charCodeAt(a.length-1);if(o>=55296&&o<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],a.slice(0,-1)}return a}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function d(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var a=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,a)}return t}function l(e,t){var a=(e.length-t)%3;return 0===a?e.toString("base64",t):(this.lastNeed=3-a,this.lastTotal=3,1===a?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-a))}function m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}a=s,s.prototype.write=function(e){if(0===e.length)return"";var t,a;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";a=this.lastNeed,this.lastNeed=0}else a=0;return a=0)return n>0&&(e.lastNeed=n-1),n;if(--o=0)return n>0&&(e.lastNeed=n-2),n;if(--o=0)return n>0&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=a;var o=e.length-(a-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}})),parcelRequire.register("9TNjv",(function(e,t){var a,o=parcelRequire("aVc1D");function n(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var o=a.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var s=parcelRequire("9bPUc"),r=Symbol("lastResolve"),i=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),l=Symbol("lastPromise"),m=Symbol("handlePromise"),u=Symbol("stream");function p(e,t){return{value:e,done:t}}function h(e){var t=e[r];if(null!==t){var a=e[u].read();null!==a&&(e[l]=null,e[r]=null,e[i]=null,t(p(a,!1)))}}function g(e){o.nextTick(h,e)}var b=Object.getPrototypeOf((function(){})),f=Object.setPrototypeOf((n(a={get stream(){return this[u]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[d])return Promise.resolve(p(void 0,!0));if(this[u].destroyed)return new Promise((function(t,a){o.nextTick((function(){e[c]?a(e[c]):t(p(void 0,!0))}))}));var a,n=this[l];if(n)a=new Promise(function(e,t){return function(a,o){e.then((function(){t[d]?a(p(void 0,!0)):t[m](a,o)}),o)}}(n,this));else{var s=this[u].read();if(null!==s)return Promise.resolve(p(s,!1));a=new Promise(this[m])}return this[l]=a,a}},Symbol.asyncIterator,(function(){return this})),n(a,"return",(function(){var e=this;return new Promise((function(t,a){e[u].destroy(null,(function(e){e?a(e):t(p(void 0,!0))}))}))})),a),b);e.exports=function(e){var t,a=Object.create(f,(n(t={},u,{value:e,writable:!0}),n(t,r,{value:null,writable:!0}),n(t,i,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,d,{value:e._readableState.endEmitted,writable:!0}),n(t,m,{value:function(e,t){var o=a[u].read();o?(a[l]=null,a[r]=null,a[i]=null,e(p(o,!1))):(a[r]=e,a[i]=t)},writable:!0}),t));return a[l]=null,s(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=a[i];return null!==t&&(a[l]=null,a[r]=null,a[i]=null,t(e)),void(a[c]=e)}var o=a[r];null!==o&&(a[l]=null,a[r]=null,a[i]=null,o(p(void 0,!0))),a[d]=!0})),e.on("readable",g.bind(null,a)),a}})),parcelRequire.register("9bPUc",(function(e,t){"use strict";var a=parcelRequire("aSmJo").codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,n,s){if("function"==typeof n)return e(t,null,n);n||(n={}),s=function(e){var t=!1;return function(){if(!t){t=!0;for(var a=arguments.length,o=new Array(a),n=0;n0,(function(e){d||(d=e),e&&m.forEach(i),n||(m.forEach(i),l(d))}))}));return t.reduce(c)}})),parcelRequire.register("caqwd",(function(e,t){"use strict";var a=parcelRequire("ajHSv").Buffer,o=parcelRequire("943Ft"),n=parcelRequire("k2Obk"),s=new Array(16),r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],d=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],m=[1352829926,1548603684,1836072691,2053994217,0];function u(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function h(e,t,a,o,n,s,r,i){return p(e+(t^a^o)+s+r|0,i)+n|0}function g(e,t,a,o,n,s,r,i){return p(e+(t&a|~t&o)+s+r|0,i)+n|0}function b(e,t,a,o,n,s,r,i){return p(e+((t|~a)^o)+s+r|0,i)+n|0}function f(e,t,a,o,n,s,r,i){return p(e+(t&o|a&~o)+s+r|0,i)+n|0}function y(e,t,a,o,n,s,r,i){return p(e+(t^(a|~o))+s+r|0,i)+n|0}o(u,n),u.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var a=0|this._a,o=0|this._b,n=0|this._c,u=0|this._d,$=0|this._e,w=0|this._a,k=0|this._b,v=0|this._c,x=0|this._d,R=0|this._e,A=0;A<80;A+=1){var I,S;A<16?(I=h(a,o,n,u,$,e[r[A]],l[0],c[A]),S=y(w,k,v,x,R,e[i[A]],m[0],d[A])):A<32?(I=g(a,o,n,u,$,e[r[A]],l[1],c[A]),S=f(w,k,v,x,R,e[i[A]],m[1],d[A])):A<48?(I=b(a,o,n,u,$,e[r[A]],l[2],c[A]),S=b(w,k,v,x,R,e[i[A]],m[2],d[A])):A<64?(I=f(a,o,n,u,$,e[r[A]],l[3],c[A]),S=g(w,k,v,x,R,e[i[A]],m[3],d[A])):(I=y(a,o,n,u,$,e[r[A]],l[4],c[A]),S=h(w,k,v,x,R,e[i[A]],m[4],d[A])),a=$,$=u,u=p(n,10),n=o,o=I,w=R,R=x,x=p(v,10),v=k,k=S}var E=this._b+n+x|0;this._b=this._c+u+R|0,this._c=this._d+$+w|0,this._d=this._e+a+k|0,this._e=this._a+o+v|0,this._a=E},u.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.alloc?a.alloc(20):new a(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=u})),parcelRequire.register("F26MB",(function(e,t){var a=e.exports=function(e){e=e.toLowerCase();var t=a[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};a.sha=parcelRequire("eZidg"),a.sha1=parcelRequire("lx9U8"),a.sha224=parcelRequire("ayIzW"),a.sha256=parcelRequire("yjoGL"),a.sha384=parcelRequire("5q1G6"),a.sha512=parcelRequire("9jI1O")})),parcelRequire.register("eZidg",(function(e,t){var a=parcelRequire("943Ft"),o=parcelRequire("5zvv3"),n=parcelRequire("csqZT").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],r=new Array(80);function i(){this.init(),this._w=r,o.call(this,64,56)}function c(e){return e<<30|e>>>2}function d(e,t,a,o){return 0===e?t&a|~t&o:2===e?t&a|t&o|a&o:t^a^o}a(i,o),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},i.prototype._update=function(e){for(var t,a=this._w,o=0|this._a,n=0|this._b,r=0|this._c,i=0|this._d,l=0|this._e,m=0;m<16;++m)a[m]=e.readInt32BE(4*m);for(;m<80;++m)a[m]=a[m-3]^a[m-8]^a[m-14]^a[m-16];for(var u=0;u<80;++u){var p=~~(u/20),h=0|((t=o)<<5|t>>>27)+d(p,n,r,i)+l+a[u]+s[p];l=i,i=r,r=c(n),n=o,o=h}this._a=o+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=i+this._d|0,this._e=l+this._e|0},i.prototype._hash=function(){var e=n.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=i})),parcelRequire.register("5zvv3",(function(e,t){var a=parcelRequire("csqZT").Buffer;function o(e,t){this._block=a.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=a.from(e,t));for(var o=this._block,n=this._blockSize,s=e.length,r=this._len,i=0;i=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var o=(4294967295&a)>>>0,n=(a-o)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(o,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o})),parcelRequire.register("lx9U8",(function(e,t){var a=parcelRequire("943Ft"),o=parcelRequire("5zvv3"),n=parcelRequire("csqZT").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],r=new Array(80);function i(){this.init(),this._w=r,o.call(this,64,56)}function c(e){return e<<5|e>>>27}function d(e){return e<<30|e>>>2}function l(e,t,a,o){return 0===e?t&a|~t&o:2===e?t&a|t&o|a&o:t^a^o}a(i,o),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},i.prototype._update=function(e){for(var t,a=this._w,o=0|this._a,n=0|this._b,r=0|this._c,i=0|this._d,m=0|this._e,u=0;u<16;++u)a[u]=e.readInt32BE(4*u);for(;u<80;++u)a[u]=(t=a[u-3]^a[u-8]^a[u-14]^a[u-16])<<1|t>>>31;for(var p=0;p<80;++p){var h=~~(p/20),g=c(o)+l(h,n,r,i)+m+a[p]+s[h]|0;m=i,i=r,r=d(n),n=o,o=g}this._a=o+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=i+this._d|0,this._e=m+this._e|0},i.prototype._hash=function(){var e=n.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=i})),parcelRequire.register("ayIzW",(function(e,t){var a=parcelRequire("943Ft"),o=parcelRequire("yjoGL"),n=parcelRequire("5zvv3"),s=parcelRequire("csqZT").Buffer,r=new Array(64);function i(){this.init(),this._w=r,n.call(this,64,56)}a(i,o),i.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},i.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=i})),parcelRequire.register("yjoGL",(function(e,t){var a=parcelRequire("943Ft"),o=parcelRequire("5zvv3"),n=parcelRequire("csqZT").Buffer,s=[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],r=new Array(64);function i(){this.init(),this._w=r,o.call(this,64,56)}function c(e,t,a){return a^e&(t^a)}function d(e,t,a){return e&t|a&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function m(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function u(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}a(i,o),i.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},i.prototype._update=function(e){for(var t,a=this._w,o=0|this._a,n=0|this._b,r=0|this._c,i=0|this._d,p=0|this._e,h=0|this._f,g=0|this._g,b=0|this._h,f=0;f<16;++f)a[f]=e.readInt32BE(4*f);for(;f<64;++f)a[f]=0|(((t=a[f-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+a[f-7]+u(a[f-15])+a[f-16];for(var y=0;y<64;++y){var $=b+m(p)+c(p,h,g)+s[y]+a[y]|0,w=l(o)+d(o,n,r)|0;b=g,g=h,h=p,p=i+$|0,i=r,r=n,n=o,o=$+w|0}this._a=o+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=i+this._d|0,this._e=p+this._e|0,this._f=h+this._f|0,this._g=g+this._g|0,this._h=b+this._h|0},i.prototype._hash=function(){var e=n.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=i})),parcelRequire.register("5q1G6",(function(e,t){var a=parcelRequire("943Ft"),o=parcelRequire("9jI1O"),n=parcelRequire("5zvv3"),s=parcelRequire("csqZT").Buffer,r=new Array(160);function i(){this.init(),this._w=r,n.call(this,128,112)}a(i,o),i.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},i.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,a,o){e.writeInt32BE(t,o),e.writeInt32BE(a,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=i})),parcelRequire.register("9jI1O",(function(e,t){var a=parcelRequire("943Ft"),o=parcelRequire("5zvv3"),n=parcelRequire("csqZT").Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],r=new Array(160);function i(){this.init(),this._w=r,o.call(this,128,112)}function c(e,t,a){return a^e&(t^a)}function d(e,t,a){return e&t|a&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function m(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0>>0?1:0}a(i,o),i.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},i.prototype._update=function(e){for(var t=this._w,a=0|this._ah,o=0|this._bh,n=0|this._ch,r=0|this._dh,i=0|this._eh,f=0|this._fh,y=0|this._gh,$=0|this._hh,w=0|this._al,k=0|this._bl,v=0|this._cl,x=0|this._dl,R=0|this._el,A=0|this._fl,I=0|this._gl,S=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var T=t[E-30],C=t[E-30+1],U=u(T,C),M=p(C,T),D=h(T=t[E-4],C=t[E-4+1]),N=g(C,T),P=t[E-14],B=t[E-14+1],L=t[E-32],F=t[E-32+1],K=M+B|0,G=U+P+b(K,M)|0;G=(G=G+D+b(K=K+N|0,N)|0)+L+b(K=K+F|0,F)|0,t[E]=G,t[E+1]=K}for(var j=0;j<160;j+=2){G=t[j],K=t[j+1];var q=d(a,o,n),W=d(w,k,v),z=l(a,w),H=l(w,a),_=m(i,R),V=m(R,i),Y=s[j],J=s[j+1],X=c(i,f,y),O=c(R,A,I),Z=S+V|0,Q=$+_+b(Z,S)|0;Q=(Q=(Q=Q+X+b(Z=Z+O|0,O)|0)+Y+b(Z=Z+J|0,J)|0)+G+b(Z=Z+K|0,K)|0;var ee=H+W|0,te=z+q+b(ee,H)|0;$=y,S=I,y=f,I=A,f=i,A=R,i=r+Q+b(R=x+Z|0,x)|0,r=n,x=v,n=o,v=k,o=a,k=w,a=Q+te+b(w=Z+ee|0,Z)|0}this._al=this._al+w|0,this._bl=this._bl+k|0,this._cl=this._cl+v|0,this._dl=this._dl+x|0,this._el=this._el+R|0,this._fl=this._fl+A|0,this._gl=this._gl+I|0,this._hl=this._hl+S|0,this._ah=this._ah+a+b(this._al,w)|0,this._bh=this._bh+o+b(this._bl,k)|0,this._ch=this._ch+n+b(this._cl,v)|0,this._dh=this._dh+r+b(this._dl,x)|0,this._eh=this._eh+i+b(this._el,R)|0,this._fh=this._fh+f+b(this._fl,A)|0,this._gh=this._gh+y+b(this._gl,I)|0,this._hh=this._hh+$+b(this._hl,S)|0},i.prototype._hash=function(){var e=n.allocUnsafe(64);function t(t,a,o){e.writeInt32BE(t,o),e.writeInt32BE(a,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=i})),parcelRequire.register("ivgzx",(function(e,t){var a=parcelRequire("csqZT").Buffer,o=parcelRequire("cQI6j").Transform,n=parcelRequire("gScCj").StringDecoder;function s(e){o.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}parcelRequire("943Ft")(s,o),s.prototype.update=function(e,t,o){"string"==typeof e&&(e=a.from(e,t));var n=this._update(e);return this.hashMode?this:(o&&(n=this._toString(n,o)),n)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,a){var o;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){o=e}finally{a(o)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||a.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,a){if(this._decoder||(this._decoder=new n(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var o=this._decoder.write(e);return a&&(o+=this._decoder.end()),o},e.exports=s})),parcelRequire.register("cQI6j",(function(e,t){e.exports=o;var a=parcelRequire("lFNml").EventEmitter;function o(){a.call(this)}parcelRequire("943Ft")(o,a),o.Readable=parcelRequire("8aPJD"),o.Writable=parcelRequire("lOwdT"),o.Duplex=parcelRequire("evjUr"),o.Transform=parcelRequire("5cUKf"),o.PassThrough=parcelRequire("fnyeH"),o.finished=parcelRequire("9bPUc"),o.pipeline=parcelRequire("awZ3m"),o.Stream=o,o.prototype.pipe=function(e,t){var o=this;function n(t){e.writable&&!1===e.write(t)&&o.pause&&o.pause()}function s(){o.readable&&o.resume&&o.resume()}o.on("data",n),e.on("drain",s),e._isStdio||t&&!1===t.end||(o.on("end",i),o.on("close",c));var r=!1;function i(){r||(r=!0,e.end())}function c(){r||(r=!0,"function"==typeof e.destroy&&e.destroy())}function d(e){if(l(),0===a.listenerCount(this,"error"))throw e}function l(){o.removeListener("data",n),e.removeListener("drain",s),o.removeListener("end",i),o.removeListener("close",c),o.removeListener("error",d),e.removeListener("error",d),o.removeListener("end",l),o.removeListener("close",l),e.removeListener("close",l)}return o.on("error",d),e.on("error",d),o.on("end",l),o.on("close",l),e.on("close",l),e.emit("pipe",o),e}})),parcelRequire.register("2YeBw",(function(e,t){"use strict";var a=parcelRequire("943Ft"),o=parcelRequire("bByt3"),n=parcelRequire("ivgzx"),s=parcelRequire("csqZT").Buffer,r=parcelRequire("geTDx"),i=parcelRequire("caqwd"),c=parcelRequire("F26MB"),d=s.alloc(128);function l(e,t){n.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var a="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>a)?t=("rmd160"===e?new i:c(e)).update(t).digest():t.lengthr?t=e(t):t.lengtha||t!=t)throw new TypeError("Bad key length")}})),parcelRequire.register("c0htB",(function(e,t){var a,o=parcelRequire("aVc1D");if($parcel$global.process&&$parcel$global.process.browser)a="utf-8";else if($parcel$global.process&&$parcel$global.process.version){a=parseInt(o.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else a="utf-8";e.exports=a})),parcelRequire.register("9kjHg",(function(e,t){var a=parcelRequire("geTDx"),o=parcelRequire("caqwd"),n=parcelRequire("F26MB"),s=parcelRequire("csqZT").Buffer,r=parcelRequire("dFIRz"),i=parcelRequire("c0htB"),c=parcelRequire("l0Uzv"),d=s.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function m(e,t,r){var i=function(e){function t(t){return n(e).update(t).digest()}function s(e){return(new o).update(e).digest()}return"rmd160"===e||"ripemd160"===e?s:"md5"===e?a:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=i(t):t.lengtha),(e=>a=e)),$parcel$export(e.exports,"writeUInt32BE",(()=>o),(e=>o=e)),$parcel$export(e.exports,"ip",(()=>n),(e=>n=e)),$parcel$export(e.exports,"rip",(()=>s),(e=>s=e)),$parcel$export(e.exports,"pc1",(()=>r),(e=>r=e)),$parcel$export(e.exports,"r28shl",(()=>i),(e=>i=e)),$parcel$export(e.exports,"pc2",(()=>c),(e=>c=e)),$parcel$export(e.exports,"expand",(()=>d),(e=>d=e)),$parcel$export(e.exports,"substitute",(()=>l),(e=>l=e)),$parcel$export(e.exports,"permute",(()=>m),(e=>m=e)),$parcel$export(e.exports,"padSplit",(()=>u),(e=>u=e)),a=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},o=function(e,t,a){e[0+a]=t>>>24,e[1+a]=t>>>16&255,e[2+a]=t>>>8&255,e[3+a]=255&t},n=function(e,t,a,o){for(var n=0,s=0,r=6;r>=0;r-=2){for(var i=0;i<=24;i+=8)n<<=1,n|=t>>>i+r&1;for(i=0;i<=24;i+=8)n<<=1,n|=e>>>i+r&1}for(r=6;r>=0;r-=2){for(i=1;i<=25;i+=8)s<<=1,s|=t>>>i+r&1;for(i=1;i<=25;i+=8)s<<=1,s|=e>>>i+r&1}a[o+0]=n>>>0,a[o+1]=s>>>0},s=function(e,t,a,o){for(var n=0,s=0,r=0;r<4;r++)for(var i=24;i>=0;i-=8)n<<=1,n|=t>>>i+r&1,n<<=1,n|=e>>>i+r&1;for(r=4;r<8;r++)for(i=24;i>=0;i-=8)s<<=1,s|=t>>>i+r&1,s<<=1,s|=e>>>i+r&1;a[o+0]=n>>>0,a[o+1]=s>>>0},r=function(e,t,a,o){for(var n=0,s=0,r=7;r>=5;r--){for(var i=0;i<=24;i+=8)n<<=1,n|=t>>i+r&1;for(i=0;i<=24;i+=8)n<<=1,n|=e>>i+r&1}for(i=0;i<=24;i+=8)n<<=1,n|=t>>i+r&1;for(r=1;r<=3;r++){for(i=0;i<=24;i+=8)s<<=1,s|=t>>i+r&1;for(i=0;i<=24;i+=8)s<<=1,s|=e>>i+r&1}for(i=0;i<=24;i+=8)s<<=1,s|=e>>i+r&1;a[o+0]=n>>>0,a[o+1]=s>>>0},i=function(e,t){return e<>>28-t};var p=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];c=function(e,t,a,o){for(var n=0,s=0,r=p.length>>>1,i=0;i>>p[i]&1;for(i=r;i>>p[i]&1;a[o+0]=n>>>0,a[o+1]=s>>>0},d=function(e,t,a){var o=0,n=0;o=(1&e)<<5|e>>>27;for(var s=23;s>=15;s-=4)o<<=6,o|=e>>>s&63;for(s=11;s>=3;s-=4)n|=e>>>s&63,n<<=6;n|=(31&e)<<1|e>>>31,t[a+0]=o>>>0,t[a+1]=n>>>0};var h=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];l=function(e,t){for(var a=0,o=0;o<4;o++){a<<=4,a|=h[64*o+(e>>>18-6*o&63)]}for(o=0;o<4;o++){a<<=4,a|=h[256+64*o+(t>>>18-6*o&63)]}return a>>>0};var g=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];m=function(e){for(var t=0,a=0;a>>g[a]&1;return t>>>0},u=function(e,t,a){for(var o=e.toString(2);o.length0;o--)t+=this._buffer(e,t),a+=this._flushBuffer(n,a);return t+=this._buffer(e,t),n},o.prototype.final=function(e){var t,a;return e&&(t=this.update(e)),a="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(a):a},o.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];o=n.r28shl(o,i),s=n.r28shl(s,i),n.pc2(o,s,e.keys,r)}},i.prototype._update=function(e,t,a,o){var s=this._desState,r=n.readUInt32BE(e,t),i=n.readUInt32BE(e,t+4);n.ip(r,i,s.tmp,0),r=s.tmp[0],i=s.tmp[1],"encrypt"===this.type?this._encrypt(s,r,i,s.tmp,0):this._decrypt(s,r,i,s.tmp,0),r=s.tmp[0],i=s.tmp[1],n.writeUInt32BE(a,r,o),n.writeUInt32BE(a,i,o+4)},i.prototype._pad=function(e,t){for(var a=e.length-t,o=t;o>>0,r=u}n.rip(i,r,o,s)},i.prototype._decrypt=function(e,t,a,o,s){for(var r=a,i=t,c=e.keys.length-2;c>=0;c-=2){var d=e.keys[c],l=e.keys[c+1];n.expand(r,e.tmp,0),d^=e.tmp[0],l^=e.tmp[1];var m=n.substitute(d,l),u=r;r=(i^n.permute(m))>>>0,i=u}n.rip(r,i,o,s)}})),parcelRequire.register("8gFyg",(function(e,t){var a;$parcel$export(e.exports,"instantiate",(()=>a),(e=>a=e));var o=parcelRequire("kug9N"),n=parcelRequire("943Ft"),s={};function r(e){o.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;ta),(e=>a=e)),$parcel$export(e.exports,"decrypt",(()=>o),(e=>o=e)),a=function(e,t){return e._cipher.encryptBlock(t)},o=function(e,t){return e._cipher.decryptBlock(t)}})),parcelRequire.register("5ZdWp",(function(e,t){var a,o;$parcel$export(e.exports,"encrypt",(()=>a),(e=>a=e)),$parcel$export(e.exports,"decrypt",(()=>o),(e=>o=e));var n=parcelRequire("eMZsz");a=function(e,t){var a=n(t,e._prev);return e._prev=e._cipher.encryptBlock(a),e._prev},o=function(e,t){var a=e._prev;e._prev=t;var o=e._cipher.decryptBlock(t);return n(o,a)}})),parcelRequire.register("eMZsz",(function(e,t){var a=parcelRequire("ajHSv").Buffer;e.exports=function(e,t){for(var o=Math.min(e.length,t.length),n=new a(o),s=0;sa),(e=>a=e));var o=parcelRequire("csqZT").Buffer,n=parcelRequire("eMZsz");function s(e,t,a){var s=t.length,r=n(t,e._cache);return e._cache=e._cache.slice(s),e._prev=o.concat([e._prev,a?t:r]),r}a=function(e,t,a){for(var n,r=o.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=o.allocUnsafe(0)),!(e._cache.length<=t.length)){r=o.concat([r,s(e,t,a)]);break}n=e._cache.length,r=o.concat([r,s(e,t.slice(0,n),a)]),t=t.slice(n)}return r}})),parcelRequire.register("Ggp90",(function(e,t){var a;$parcel$export(e.exports,"encrypt",(()=>a),(e=>a=e));var o=parcelRequire("csqZT").Buffer;function n(e,t,a){var n=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=o.concat([e._prev.slice(1),o.from([a?t:n])]),n}a=function(e,t,a){for(var s=t.length,r=o.allocUnsafe(s),i=-1;++ia),(e=>a=e));var o=parcelRequire("csqZT").Buffer;function n(e,t,a){for(var o,n,r=-1,i=0;++r<8;)o=t&1<<7-r?128:0,i+=(128&(n=e._cipher.encryptBlock(e._prev)[0]^o))>>r%8,e._prev=s(e._prev,a?o:n);return i}function s(e,t){var a=e.length,n=-1,s=o.allocUnsafe(e.length);for(e=o.concat([e,o.from([t])]);++n>7;return s}a=function(e,t,a){for(var s=t.length,r=o.allocUnsafe(s),i=-1;++ia),(e=>a=e));var o=parcelRequire("ajHSv").Buffer,n=parcelRequire("eMZsz");function s(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}a=function(e,t){for(;e._cache.lengtha),(e=>a=e));var o=parcelRequire("eMZsz"),n=parcelRequire("csqZT").Buffer,s=parcelRequire("bUON4");function r(e){var t=e._cipher.encryptBlockRaw(e._prev);return s(e._prev),t}a=function(e,t){var a=Math.ceil(t.length/16),s=e._cache.length;e._cache=n.concat([e._cache,n.allocUnsafe(16*a)]);for(var i=0;i=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function i(e,t,a){var o=r(e,a);return a-1>=t&&(o|=r(e,a-1)<<4),o}function c(e,t,a,o){for(var n=0,s=Math.min(e.length,a),r=t;r=49?i-49+10:i>=17?i-17+10:i}return n}n.isBN=function(e){return e instanceof n||null!==e&&"object"==typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,o){if("number"==typeof e)return this._initNumber(e,t,o);if("object"==typeof e)return this._initArray(e,t,o);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)r=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[s]|=r<>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);else if("le"===o)for(n=0,s=0;n>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);return this.strip()},n.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var o=0;o=t;o-=2)n=i(e,t,o)<=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;else for(o=(e.length-t)%2==0?t+1:t;o=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;this.strip()},n.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var o=0,n=1;n<=67108863;n*=t)o++;o--,n=n/t|0;for(var s=e.length-a,r=s%o,i=Math.min(s,s-r)+a,d=0,l=a;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?""};var 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"],l=[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],m=[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 u(e,t,a){a.negative=t.negative^e.negative;var o=e.length+t.length|0;a.length=o,o=o-1|0;var n=0|e.words[0],s=0|t.words[0],r=n*s,i=67108863&r,c=r/67108864|0;a.words[0]=i;for(var d=1;d>>26,m=67108863&c,u=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=u;p++){var h=d-p|0;l+=(r=(n=0|e.words[h])*(s=0|t.words[p])+m)/67108864|0,m=67108863&r}a.words[d]=0|m,c=0|l}return 0!==c?a.words[d]=0|c:a.length--,a.strip()}n.prototype.toString=function(e,t){var o;if(t=0|t||1,16===(e=e||10)||"hex"===e){o="";for(var n=0,s=0,r=0;r>>24-n&16777215)||r!==this.length-1?d[6-c.length]+c+o:c+o,(n+=2)>=26&&(n-=26,r--)}for(0!==s&&(o=s.toString(16)+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(e===(0|e)&&e>=2&&e<=36){var u=l[e],p=m[e];o="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(p).toString(e);o=(h=h.idivn(p)).isZero()?g+o:d[u-g.length]+g+o}for(this.isZero()&&(o="0"+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.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&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return a(void 0!==s),this.toArrayLike(s,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,o){var n=this.byteLength(),s=o||Math.max(1,n);a(n<=s,"byte array longer than desired length"),a(s>0,"Requested array length <= 0"),this.strip();var r,i,c="le"===t,d=new e(s),l=this.clone();if(c){for(i=0;!l.isZero();i++)r=l.andln(255),l.iushrn(8),d[i]=r;for(;i=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var o=0;oe.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),o=e%26;this._expand(t),o>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-o),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var o=e/26|0,n=e%26;return this._expand(o+1),this.words[o]=t?this.words[o]|1<e.length?(a=this,o=e):(a=e,o=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;se.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,o,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,o=e):(a=e,o=this);for(var s=0,r=0;r>26,this.words[r]=67108863&t;for(;0!==s&&r>26,this.words[r]=67108863&t;if(0===s&&r>>13,p=0|r[1],h=8191&p,g=p>>>13,b=0|r[2],f=8191&b,y=b>>>13,$=0|r[3],w=8191&$,k=$>>>13,v=0|r[4],x=8191&v,R=v>>>13,A=0|r[5],I=8191&A,S=A>>>13,E=0|r[6],T=8191&E,C=E>>>13,U=0|r[7],M=8191&U,D=U>>>13,N=0|r[8],P=8191&N,B=N>>>13,L=0|r[9],F=8191&L,K=L>>>13,G=0|i[0],j=8191&G,q=G>>>13,W=0|i[1],z=8191&W,H=W>>>13,_=0|i[2],V=8191&_,Y=_>>>13,J=0|i[3],X=8191&J,O=J>>>13,Z=0|i[4],Q=8191&Z,ee=Z>>>13,te=0|i[5],ae=8191&te,oe=te>>>13,ne=0|i[6],se=8191&ne,re=ne>>>13,ie=0|i[7],ce=8191&ie,de=ie>>>13,le=0|i[8],me=8191&le,ue=le>>>13,pe=0|i[9],he=8191&pe,ge=pe>>>13;a.negative=e.negative^t.negative,a.length=19;var be=(d+(o=Math.imul(m,j))|0)+((8191&(n=(n=Math.imul(m,q))+Math.imul(u,j)|0))<<13)|0;d=((s=Math.imul(u,q))+(n>>>13)|0)+(be>>>26)|0,be&=67108863,o=Math.imul(h,j),n=(n=Math.imul(h,q))+Math.imul(g,j)|0,s=Math.imul(g,q);var fe=(d+(o=o+Math.imul(m,z)|0)|0)+((8191&(n=(n=n+Math.imul(m,H)|0)+Math.imul(u,z)|0))<<13)|0;d=((s=s+Math.imul(u,H)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,o=Math.imul(f,j),n=(n=Math.imul(f,q))+Math.imul(y,j)|0,s=Math.imul(y,q),o=o+Math.imul(h,z)|0,n=(n=n+Math.imul(h,H)|0)+Math.imul(g,z)|0,s=s+Math.imul(g,H)|0;var ye=(d+(o=o+Math.imul(m,V)|0)|0)+((8191&(n=(n=n+Math.imul(m,Y)|0)+Math.imul(u,V)|0))<<13)|0;d=((s=s+Math.imul(u,Y)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(w,j),n=(n=Math.imul(w,q))+Math.imul(k,j)|0,s=Math.imul(k,q),o=o+Math.imul(f,z)|0,n=(n=n+Math.imul(f,H)|0)+Math.imul(y,z)|0,s=s+Math.imul(y,H)|0,o=o+Math.imul(h,V)|0,n=(n=n+Math.imul(h,Y)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,Y)|0;var $e=(d+(o=o+Math.imul(m,X)|0)|0)+((8191&(n=(n=n+Math.imul(m,O)|0)+Math.imul(u,X)|0))<<13)|0;d=((s=s+Math.imul(u,O)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,o=Math.imul(x,j),n=(n=Math.imul(x,q))+Math.imul(R,j)|0,s=Math.imul(R,q),o=o+Math.imul(w,z)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(k,z)|0,s=s+Math.imul(k,H)|0,o=o+Math.imul(f,V)|0,n=(n=n+Math.imul(f,Y)|0)+Math.imul(y,V)|0,s=s+Math.imul(y,Y)|0,o=o+Math.imul(h,X)|0,n=(n=n+Math.imul(h,O)|0)+Math.imul(g,X)|0,s=s+Math.imul(g,O)|0;var we=(d+(o=o+Math.imul(m,Q)|0)|0)+((8191&(n=(n=n+Math.imul(m,ee)|0)+Math.imul(u,Q)|0))<<13)|0;d=((s=s+Math.imul(u,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(I,j),n=(n=Math.imul(I,q))+Math.imul(S,j)|0,s=Math.imul(S,q),o=o+Math.imul(x,z)|0,n=(n=n+Math.imul(x,H)|0)+Math.imul(R,z)|0,s=s+Math.imul(R,H)|0,o=o+Math.imul(w,V)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Y)|0,o=o+Math.imul(f,X)|0,n=(n=n+Math.imul(f,O)|0)+Math.imul(y,X)|0,s=s+Math.imul(y,O)|0,o=o+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0;var ke=(d+(o=o+Math.imul(m,ae)|0)|0)+((8191&(n=(n=n+Math.imul(m,oe)|0)+Math.imul(u,ae)|0))<<13)|0;d=((s=s+Math.imul(u,oe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(T,j),n=(n=Math.imul(T,q))+Math.imul(C,j)|0,s=Math.imul(C,q),o=o+Math.imul(I,z)|0,n=(n=n+Math.imul(I,H)|0)+Math.imul(S,z)|0,s=s+Math.imul(S,H)|0,o=o+Math.imul(x,V)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(R,V)|0,s=s+Math.imul(R,Y)|0,o=o+Math.imul(w,X)|0,n=(n=n+Math.imul(w,O)|0)+Math.imul(k,X)|0,s=s+Math.imul(k,O)|0,o=o+Math.imul(f,Q)|0,n=(n=n+Math.imul(f,ee)|0)+Math.imul(y,Q)|0,s=s+Math.imul(y,ee)|0,o=o+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(g,ae)|0,s=s+Math.imul(g,oe)|0;var ve=(d+(o=o+Math.imul(m,se)|0)|0)+((8191&(n=(n=n+Math.imul(m,re)|0)+Math.imul(u,se)|0))<<13)|0;d=((s=s+Math.imul(u,re)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(M,j),n=(n=Math.imul(M,q))+Math.imul(D,j)|0,s=Math.imul(D,q),o=o+Math.imul(T,z)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(C,z)|0,s=s+Math.imul(C,H)|0,o=o+Math.imul(I,V)|0,n=(n=n+Math.imul(I,Y)|0)+Math.imul(S,V)|0,s=s+Math.imul(S,Y)|0,o=o+Math.imul(x,X)|0,n=(n=n+Math.imul(x,O)|0)+Math.imul(R,X)|0,s=s+Math.imul(R,O)|0,o=o+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,o=o+Math.imul(f,ae)|0,n=(n=n+Math.imul(f,oe)|0)+Math.imul(y,ae)|0,s=s+Math.imul(y,oe)|0,o=o+Math.imul(h,se)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(g,se)|0,s=s+Math.imul(g,re)|0;var xe=(d+(o=o+Math.imul(m,ce)|0)|0)+((8191&(n=(n=n+Math.imul(m,de)|0)+Math.imul(u,ce)|0))<<13)|0;d=((s=s+Math.imul(u,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,o=Math.imul(P,j),n=(n=Math.imul(P,q))+Math.imul(B,j)|0,s=Math.imul(B,q),o=o+Math.imul(M,z)|0,n=(n=n+Math.imul(M,H)|0)+Math.imul(D,z)|0,s=s+Math.imul(D,H)|0,o=o+Math.imul(T,V)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(C,V)|0,s=s+Math.imul(C,Y)|0,o=o+Math.imul(I,X)|0,n=(n=n+Math.imul(I,O)|0)+Math.imul(S,X)|0,s=s+Math.imul(S,O)|0,o=o+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(R,Q)|0,s=s+Math.imul(R,ee)|0,o=o+Math.imul(w,ae)|0,n=(n=n+Math.imul(w,oe)|0)+Math.imul(k,ae)|0,s=s+Math.imul(k,oe)|0,o=o+Math.imul(f,se)|0,n=(n=n+Math.imul(f,re)|0)+Math.imul(y,se)|0,s=s+Math.imul(y,re)|0,o=o+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(g,ce)|0,s=s+Math.imul(g,de)|0;var Re=(d+(o=o+Math.imul(m,me)|0)|0)+((8191&(n=(n=n+Math.imul(m,ue)|0)+Math.imul(u,me)|0))<<13)|0;d=((s=s+Math.imul(u,ue)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(F,j),n=(n=Math.imul(F,q))+Math.imul(K,j)|0,s=Math.imul(K,q),o=o+Math.imul(P,z)|0,n=(n=n+Math.imul(P,H)|0)+Math.imul(B,z)|0,s=s+Math.imul(B,H)|0,o=o+Math.imul(M,V)|0,n=(n=n+Math.imul(M,Y)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Y)|0,o=o+Math.imul(T,X)|0,n=(n=n+Math.imul(T,O)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,O)|0,o=o+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(S,Q)|0,s=s+Math.imul(S,ee)|0,o=o+Math.imul(x,ae)|0,n=(n=n+Math.imul(x,oe)|0)+Math.imul(R,ae)|0,s=s+Math.imul(R,oe)|0,o=o+Math.imul(w,se)|0,n=(n=n+Math.imul(w,re)|0)+Math.imul(k,se)|0,s=s+Math.imul(k,re)|0,o=o+Math.imul(f,ce)|0,n=(n=n+Math.imul(f,de)|0)+Math.imul(y,ce)|0,s=s+Math.imul(y,de)|0,o=o+Math.imul(h,me)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(g,me)|0,s=s+Math.imul(g,ue)|0;var Ae=(d+(o=o+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,ge)|0)+Math.imul(u,he)|0))<<13)|0;d=((s=s+Math.imul(u,ge)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(F,z),n=(n=Math.imul(F,H))+Math.imul(K,z)|0,s=Math.imul(K,H),o=o+Math.imul(P,V)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(B,V)|0,s=s+Math.imul(B,Y)|0,o=o+Math.imul(M,X)|0,n=(n=n+Math.imul(M,O)|0)+Math.imul(D,X)|0,s=s+Math.imul(D,O)|0,o=o+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,ee)|0,o=o+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(S,ae)|0,s=s+Math.imul(S,oe)|0,o=o+Math.imul(x,se)|0,n=(n=n+Math.imul(x,re)|0)+Math.imul(R,se)|0,s=s+Math.imul(R,re)|0,o=o+Math.imul(w,ce)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(k,ce)|0,s=s+Math.imul(k,de)|0,o=o+Math.imul(f,me)|0,n=(n=n+Math.imul(f,ue)|0)+Math.imul(y,me)|0,s=s+Math.imul(y,ue)|0;var Ie=(d+(o=o+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,ge)|0)+Math.imul(g,he)|0))<<13)|0;d=((s=s+Math.imul(g,ge)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,o=Math.imul(F,V),n=(n=Math.imul(F,Y))+Math.imul(K,V)|0,s=Math.imul(K,Y),o=o+Math.imul(P,X)|0,n=(n=n+Math.imul(P,O)|0)+Math.imul(B,X)|0,s=s+Math.imul(B,O)|0,o=o+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(D,Q)|0,s=s+Math.imul(D,ee)|0,o=o+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,oe)|0)+Math.imul(C,ae)|0,s=s+Math.imul(C,oe)|0,o=o+Math.imul(I,se)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(S,se)|0,s=s+Math.imul(S,re)|0,o=o+Math.imul(x,ce)|0,n=(n=n+Math.imul(x,de)|0)+Math.imul(R,ce)|0,s=s+Math.imul(R,de)|0,o=o+Math.imul(w,me)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(k,me)|0,s=s+Math.imul(k,ue)|0;var Se=(d+(o=o+Math.imul(f,he)|0)|0)+((8191&(n=(n=n+Math.imul(f,ge)|0)+Math.imul(y,he)|0))<<13)|0;d=((s=s+Math.imul(y,ge)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,o=Math.imul(F,X),n=(n=Math.imul(F,O))+Math.imul(K,X)|0,s=Math.imul(K,O),o=o+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(B,Q)|0,s=s+Math.imul(B,ee)|0,o=o+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(D,ae)|0,s=s+Math.imul(D,oe)|0,o=o+Math.imul(T,se)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(C,se)|0,s=s+Math.imul(C,re)|0,o=o+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(S,ce)|0,s=s+Math.imul(S,de)|0,o=o+Math.imul(x,me)|0,n=(n=n+Math.imul(x,ue)|0)+Math.imul(R,me)|0,s=s+Math.imul(R,ue)|0;var Ee=(d+(o=o+Math.imul(w,he)|0)|0)+((8191&(n=(n=n+Math.imul(w,ge)|0)+Math.imul(k,he)|0))<<13)|0;d=((s=s+Math.imul(k,ge)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(F,Q),n=(n=Math.imul(F,ee))+Math.imul(K,Q)|0,s=Math.imul(K,ee),o=o+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(B,ae)|0,s=s+Math.imul(B,oe)|0,o=o+Math.imul(M,se)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(D,se)|0,s=s+Math.imul(D,re)|0,o=o+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,de)|0)+Math.imul(C,ce)|0,s=s+Math.imul(C,de)|0,o=o+Math.imul(I,me)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(S,me)|0,s=s+Math.imul(S,ue)|0;var Te=(d+(o=o+Math.imul(x,he)|0)|0)+((8191&(n=(n=n+Math.imul(x,ge)|0)+Math.imul(R,he)|0))<<13)|0;d=((s=s+Math.imul(R,ge)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,o=Math.imul(F,ae),n=(n=Math.imul(F,oe))+Math.imul(K,ae)|0,s=Math.imul(K,oe),o=o+Math.imul(P,se)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(B,se)|0,s=s+Math.imul(B,re)|0,o=o+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,de)|0)+Math.imul(D,ce)|0,s=s+Math.imul(D,de)|0,o=o+Math.imul(T,me)|0,n=(n=n+Math.imul(T,ue)|0)+Math.imul(C,me)|0,s=s+Math.imul(C,ue)|0;var Ce=(d+(o=o+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,ge)|0)+Math.imul(S,he)|0))<<13)|0;d=((s=s+Math.imul(S,ge)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(F,se),n=(n=Math.imul(F,re))+Math.imul(K,se)|0,s=Math.imul(K,re),o=o+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(B,ce)|0,s=s+Math.imul(B,de)|0,o=o+Math.imul(M,me)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(D,me)|0,s=s+Math.imul(D,ue)|0;var Ue=(d+(o=o+Math.imul(T,he)|0)|0)+((8191&(n=(n=n+Math.imul(T,ge)|0)+Math.imul(C,he)|0))<<13)|0;d=((s=s+Math.imul(C,ge)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,o=Math.imul(F,ce),n=(n=Math.imul(F,de))+Math.imul(K,ce)|0,s=Math.imul(K,de),o=o+Math.imul(P,me)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(B,me)|0,s=s+Math.imul(B,ue)|0;var Me=(d+(o=o+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,ge)|0)+Math.imul(D,he)|0))<<13)|0;d=((s=s+Math.imul(D,ge)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,o=Math.imul(F,me),n=(n=Math.imul(F,ue))+Math.imul(K,me)|0,s=Math.imul(K,ue);var De=(d+(o=o+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,ge)|0)+Math.imul(B,he)|0))<<13)|0;d=((s=s+Math.imul(B,ge)|0)+(n>>>13)|0)+(De>>>26)|0,De&=67108863;var Ne=(d+(o=Math.imul(F,he))|0)+((8191&(n=(n=Math.imul(F,ge))+Math.imul(K,he)|0))<<13)|0;return d=((s=Math.imul(K,ge))+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=be,c[1]=fe,c[2]=ye,c[3]=$e,c[4]=we,c[5]=ke,c[6]=ve,c[7]=xe,c[8]=Re,c[9]=Ae,c[10]=Ie,c[11]=Se,c[12]=Ee,c[13]=Te,c[14]=Ce,c[15]=Ue,c[16]=Me,c[17]=De,c[18]=Ne,0!==d&&(c[19]=d,a.length++),a};function h(e,t,a){return(new g).mulp(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=u),n.prototype.mulTo=function(e,t){var a,o=this.length+e.length;return a=10===this.length&&10===e.length?p(this,e,t):o<63?u(this,e,t):o<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var o=0,n=0,s=0;s>>26)|0)>>>26,r&=67108863}a.words[s]=i,o=r,r=n}return 0!==o?a.words[s]=o:a.length--,a.strip()}(this,e,t):h(this,e,t),a},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=n.prototype._countBits(e)-1,o=0;o>=1;return o},g.prototype.permute=function(e,t,a,o,n,s){for(var r=0;r>>=1)n++;return 1<>>=13,o[2*r+1]=8191&s,s>>>=13;for(r=2*t;r>=26,t+=n/67108864|0,t+=s>>>26,this.words[o]=67108863&s}return 0!==t&&(this.words[o]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new n(1);for(var a=this,o=0;o=0);var t,o=e%26,n=(e-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var r=0;for(t=0;t>>26-o}r&&(this.words[t]=r,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var s=e%26,r=Math.min((e-s)/26,this.length),i=67108863^67108863>>>s<r)for(this.length-=r,d=0;d=0&&(0!==l||d>=n);d--){var m=0|this.words[d];this.words[d]=l<<26-s|m>>>s,l=m&i}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,o){return a(0===this.negative),this.iushrn(e,t,o)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26,n=1<=0);var t=e%26,o=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==t&&o++,this.length=Math.min(o,this.length),0!==t){var n=67108863^67108863>>>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},n.prototype.isubn=function(e){if(a("number"==typeof e),a(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>26)-(c/67108864|0),this.words[n+o]=67108863&s}for(;n>26,this.words[n+o]=67108863&s;if(0===i)return this.strip();for(a(-1===i),i=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var a=(this.length,e.length),o=this.clone(),s=e,r=0|s.words[s.length-1];0!==(a=26-this._countBits(r))&&(s=s.ushln(a),o.iushln(a),r=0|s.words[s.length-1]);var i,c=o.length-s.length;if("mod"!==t){(i=new n(null)).length=c+1,i.words=new Array(i.length);for(var d=0;d=0;m--){var u=67108864*(0|o.words[s.length+m])+(0|o.words[s.length+m-1]);for(u=Math.min(u/r|0,67108863),o._ishlnsubmul(s,u,m);0!==o.negative;)u--,o.negative=0,o._ishlnsubmul(s,1,m),o.isZero()||(o.negative^=1);i&&(i.words[m]=u)}return i&&i.strip(),o.strip(),"div"!==t&&0!==a&&o.iushrn(a),{div:i||null,mod:o}},n.prototype.divmod=function(e,t,o){return a(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(i=this.neg().divmod(e,t),"mod"!==t&&(s=i.div.neg()),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.iadd(e)),{div:s,mod:r}):0===this.negative&&0!==e.negative?(i=this.divmod(e.neg(),t),"mod"!==t&&(s=i.div.neg()),{div:s,mod:i.mod}):0!=(this.negative&e.negative)?(i=this.neg().divmod(e.neg(),t),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.isub(e)),{div:i.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var s,r,i},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),n=e.andln(1),s=a.cmp(o);return s<0||1===n&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){a(e<=67108863);for(var t=67108864%e,o=0,n=this.length-1;n>=0;n--)o=(t*o+(0|this.words[n]))%e;return o},n.prototype.idivn=function(e){a(e<=67108863);for(var t=0,o=this.length-1;o>=0;o--){var n=(0|this.words[o])+67108864*t;this.words[o]=n/e|0,t=n%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s=new n(1),r=new n(0),i=new n(0),c=new n(1),d=0;t.isEven()&&o.isEven();)t.iushrn(1),o.iushrn(1),++d;for(var l=o.clone(),m=t.clone();!t.isZero();){for(var u=0,p=1;0==(t.words[0]&p)&&u<26;++u,p<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(s.isOdd()||r.isOdd())&&(s.iadd(l),r.isub(m)),s.iushrn(1),r.iushrn(1);for(var h=0,g=1;0==(o.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(o.iushrn(h);h-- >0;)(i.isOdd()||c.isOdd())&&(i.iadd(l),c.isub(m)),i.iushrn(1),c.iushrn(1);t.cmp(o)>=0?(t.isub(o),s.isub(i),r.isub(c)):(o.isub(t),i.isub(s),c.isub(r))}return{a:i,b:c,gcd:o.iushln(d)}},n.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s,r=new n(1),i=new n(0),c=o.clone();t.cmpn(1)>0&&o.cmpn(1)>0;){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)r.isOdd()&&r.iadd(c),r.iushrn(1);for(var m=0,u=1;0==(o.words[0]&u)&&m<26;++m,u<<=1);if(m>0)for(o.iushrn(m);m-- >0;)i.isOdd()&&i.iadd(c),i.iushrn(1);t.cmp(o)>=0?(t.isub(o),r.isub(i)):(o.isub(t),i.isub(r))}return(s=0===t.cmpn(1)?r:i).cmpn(0)<0&&s.iadd(e),s},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var o=0;t.isEven()&&a.isEven();o++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var s=t;t=a,a=s}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(o)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,o=(e-t)/26,n=1<>>26,i&=67108863,this.words[r]=i}return 0!==s&&(this.words[r]=s,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,o=e<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)t=1;else{o&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var o=0|this.words[a],n=0|e.words[a];if(o!==n){on&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new v(e)},n.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function f(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(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)}f.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},f.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},f.prototype.split=function(e,t){e.iushrn(this.n,0,t)},f.prototype.imulK=function(e){return e.imul(this.k)},o(y,f),y.prototype.split=function(e,t){for(var a=4194303,o=Math.min(e.length,9),n=0;n>>22,s=r}s>>>=22,e.words[n-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=o}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new $;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return b[e]=t,t},v.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},v.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var o=this.m.add(new n(1)).iushrn(2);return this.pow(e,o)}for(var s=this.m.subn(1),r=0;!s.isZero()&&0===s.andln(1);)r++,s.iushrn(1);a(!s.isZero());var i=new n(1).toRed(this),c=i.redNeg(),d=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);0!==this.pow(l,d).cmp(c);)l.redIAdd(c);for(var m=this.pow(l,s),u=this.pow(e,s.addn(1).iushrn(1)),p=this.pow(e,s),h=r;0!==p.cmp(i);){for(var g=p,b=0;0!==g.cmp(i);b++)g=g.redSqr();a(b=0;o--){for(var d=t.words[o],l=c-1;l>=0;l--){var m=d>>l&1;s!==a[0]&&(s=this.sqr(s)),0!==m||0!==r?(r<<=1,r|=m,(4===++i||0===o&&0===l)&&(s=this.mul(s,a[r]),i=0,r=0)):i=0}c=26}return s},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new x(e)},o(x,v),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(o).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var a=e.mul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=a.isub(o).iushrn(this.shift),r=s;return s.cmp(this.m)>=0?r=s.isub(this.m):s.cmpn(0)<0&&(r=s.iadd(this.m)),r._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)})),parcelRequire.register("jb1on",(function(e,t){!function(e,t){"use strict";function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function n(e,t,a){if(n.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var s;"object"==typeof e?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:parcelRequire("gFqLz").Buffer}catch(e){}function r(e,t){var a=e.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function i(e,t,a){var o=r(e,a);return a-1>=t&&(o|=r(e,a-1)<<4),o}function c(e,t,a,o){for(var n=0,s=Math.min(e.length,a),r=t;r=49?i-49+10:i>=17?i-17+10:i}return n}n.isBN=function(e){return e instanceof n||null!==e&&"object"==typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,o){if("number"==typeof e)return this._initNumber(e,t,o);if("object"==typeof e)return this._initArray(e,t,o);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)r=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[s]|=r<>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);else if("le"===o)for(n=0,s=0;n>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);return this.strip()},n.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var o=0;o=t;o-=2)n=i(e,t,o)<=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;else for(o=(e.length-t)%2==0?t+1:t;o=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;this.strip()},n.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var o=0,n=1;n<=67108863;n*=t)o++;o--,n=n/t|0;for(var s=e.length-a,r=s%o,i=Math.min(s,s-r)+a,d=0,l=a;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?""};var 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"],l=[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],m=[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 u(e,t,a){a.negative=t.negative^e.negative;var o=e.length+t.length|0;a.length=o,o=o-1|0;var n=0|e.words[0],s=0|t.words[0],r=n*s,i=67108863&r,c=r/67108864|0;a.words[0]=i;for(var d=1;d>>26,m=67108863&c,u=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=u;p++){var h=d-p|0;l+=(r=(n=0|e.words[h])*(s=0|t.words[p])+m)/67108864|0,m=67108863&r}a.words[d]=0|m,c=0|l}return 0!==c?a.words[d]=0|c:a.length--,a.strip()}n.prototype.toString=function(e,t){var o;if(t=0|t||1,16===(e=e||10)||"hex"===e){o="";for(var n=0,s=0,r=0;r>>24-n&16777215)||r!==this.length-1?d[6-c.length]+c+o:c+o,(n+=2)>=26&&(n-=26,r--)}for(0!==s&&(o=s.toString(16)+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(e===(0|e)&&e>=2&&e<=36){var u=l[e],p=m[e];o="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(p).toString(e);o=(h=h.idivn(p)).isZero()?g+o:d[u-g.length]+g+o}for(this.isZero()&&(o="0"+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.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&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return a(void 0!==s),this.toArrayLike(s,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,o){var n=this.byteLength(),s=o||Math.max(1,n);a(n<=s,"byte array longer than desired length"),a(s>0,"Requested array length <= 0"),this.strip();var r,i,c="le"===t,d=new e(s),l=this.clone();if(c){for(i=0;!l.isZero();i++)r=l.andln(255),l.iushrn(8),d[i]=r;for(;i=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var o=0;oe.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),o=e%26;this._expand(t),o>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-o),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var o=e/26|0,n=e%26;return this._expand(o+1),this.words[o]=t?this.words[o]|1<e.length?(a=this,o=e):(a=e,o=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;se.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,o,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,o=e):(a=e,o=this);for(var s=0,r=0;r>26,this.words[r]=67108863&t;for(;0!==s&&r>26,this.words[r]=67108863&t;if(0===s&&r>>13,p=0|r[1],h=8191&p,g=p>>>13,b=0|r[2],f=8191&b,y=b>>>13,$=0|r[3],w=8191&$,k=$>>>13,v=0|r[4],x=8191&v,R=v>>>13,A=0|r[5],I=8191&A,S=A>>>13,E=0|r[6],T=8191&E,C=E>>>13,U=0|r[7],M=8191&U,D=U>>>13,N=0|r[8],P=8191&N,B=N>>>13,L=0|r[9],F=8191&L,K=L>>>13,G=0|i[0],j=8191&G,q=G>>>13,W=0|i[1],z=8191&W,H=W>>>13,_=0|i[2],V=8191&_,Y=_>>>13,J=0|i[3],X=8191&J,O=J>>>13,Z=0|i[4],Q=8191&Z,ee=Z>>>13,te=0|i[5],ae=8191&te,oe=te>>>13,ne=0|i[6],se=8191&ne,re=ne>>>13,ie=0|i[7],ce=8191&ie,de=ie>>>13,le=0|i[8],me=8191&le,ue=le>>>13,pe=0|i[9],he=8191&pe,ge=pe>>>13;a.negative=e.negative^t.negative,a.length=19;var be=(d+(o=Math.imul(m,j))|0)+((8191&(n=(n=Math.imul(m,q))+Math.imul(u,j)|0))<<13)|0;d=((s=Math.imul(u,q))+(n>>>13)|0)+(be>>>26)|0,be&=67108863,o=Math.imul(h,j),n=(n=Math.imul(h,q))+Math.imul(g,j)|0,s=Math.imul(g,q);var fe=(d+(o=o+Math.imul(m,z)|0)|0)+((8191&(n=(n=n+Math.imul(m,H)|0)+Math.imul(u,z)|0))<<13)|0;d=((s=s+Math.imul(u,H)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,o=Math.imul(f,j),n=(n=Math.imul(f,q))+Math.imul(y,j)|0,s=Math.imul(y,q),o=o+Math.imul(h,z)|0,n=(n=n+Math.imul(h,H)|0)+Math.imul(g,z)|0,s=s+Math.imul(g,H)|0;var ye=(d+(o=o+Math.imul(m,V)|0)|0)+((8191&(n=(n=n+Math.imul(m,Y)|0)+Math.imul(u,V)|0))<<13)|0;d=((s=s+Math.imul(u,Y)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(w,j),n=(n=Math.imul(w,q))+Math.imul(k,j)|0,s=Math.imul(k,q),o=o+Math.imul(f,z)|0,n=(n=n+Math.imul(f,H)|0)+Math.imul(y,z)|0,s=s+Math.imul(y,H)|0,o=o+Math.imul(h,V)|0,n=(n=n+Math.imul(h,Y)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,Y)|0;var $e=(d+(o=o+Math.imul(m,X)|0)|0)+((8191&(n=(n=n+Math.imul(m,O)|0)+Math.imul(u,X)|0))<<13)|0;d=((s=s+Math.imul(u,O)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,o=Math.imul(x,j),n=(n=Math.imul(x,q))+Math.imul(R,j)|0,s=Math.imul(R,q),o=o+Math.imul(w,z)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(k,z)|0,s=s+Math.imul(k,H)|0,o=o+Math.imul(f,V)|0,n=(n=n+Math.imul(f,Y)|0)+Math.imul(y,V)|0,s=s+Math.imul(y,Y)|0,o=o+Math.imul(h,X)|0,n=(n=n+Math.imul(h,O)|0)+Math.imul(g,X)|0,s=s+Math.imul(g,O)|0;var we=(d+(o=o+Math.imul(m,Q)|0)|0)+((8191&(n=(n=n+Math.imul(m,ee)|0)+Math.imul(u,Q)|0))<<13)|0;d=((s=s+Math.imul(u,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(I,j),n=(n=Math.imul(I,q))+Math.imul(S,j)|0,s=Math.imul(S,q),o=o+Math.imul(x,z)|0,n=(n=n+Math.imul(x,H)|0)+Math.imul(R,z)|0,s=s+Math.imul(R,H)|0,o=o+Math.imul(w,V)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Y)|0,o=o+Math.imul(f,X)|0,n=(n=n+Math.imul(f,O)|0)+Math.imul(y,X)|0,s=s+Math.imul(y,O)|0,o=o+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0;var ke=(d+(o=o+Math.imul(m,ae)|0)|0)+((8191&(n=(n=n+Math.imul(m,oe)|0)+Math.imul(u,ae)|0))<<13)|0;d=((s=s+Math.imul(u,oe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(T,j),n=(n=Math.imul(T,q))+Math.imul(C,j)|0,s=Math.imul(C,q),o=o+Math.imul(I,z)|0,n=(n=n+Math.imul(I,H)|0)+Math.imul(S,z)|0,s=s+Math.imul(S,H)|0,o=o+Math.imul(x,V)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(R,V)|0,s=s+Math.imul(R,Y)|0,o=o+Math.imul(w,X)|0,n=(n=n+Math.imul(w,O)|0)+Math.imul(k,X)|0,s=s+Math.imul(k,O)|0,o=o+Math.imul(f,Q)|0,n=(n=n+Math.imul(f,ee)|0)+Math.imul(y,Q)|0,s=s+Math.imul(y,ee)|0,o=o+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(g,ae)|0,s=s+Math.imul(g,oe)|0;var ve=(d+(o=o+Math.imul(m,se)|0)|0)+((8191&(n=(n=n+Math.imul(m,re)|0)+Math.imul(u,se)|0))<<13)|0;d=((s=s+Math.imul(u,re)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(M,j),n=(n=Math.imul(M,q))+Math.imul(D,j)|0,s=Math.imul(D,q),o=o+Math.imul(T,z)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(C,z)|0,s=s+Math.imul(C,H)|0,o=o+Math.imul(I,V)|0,n=(n=n+Math.imul(I,Y)|0)+Math.imul(S,V)|0,s=s+Math.imul(S,Y)|0,o=o+Math.imul(x,X)|0,n=(n=n+Math.imul(x,O)|0)+Math.imul(R,X)|0,s=s+Math.imul(R,O)|0,o=o+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,o=o+Math.imul(f,ae)|0,n=(n=n+Math.imul(f,oe)|0)+Math.imul(y,ae)|0,s=s+Math.imul(y,oe)|0,o=o+Math.imul(h,se)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(g,se)|0,s=s+Math.imul(g,re)|0;var xe=(d+(o=o+Math.imul(m,ce)|0)|0)+((8191&(n=(n=n+Math.imul(m,de)|0)+Math.imul(u,ce)|0))<<13)|0;d=((s=s+Math.imul(u,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,o=Math.imul(P,j),n=(n=Math.imul(P,q))+Math.imul(B,j)|0,s=Math.imul(B,q),o=o+Math.imul(M,z)|0,n=(n=n+Math.imul(M,H)|0)+Math.imul(D,z)|0,s=s+Math.imul(D,H)|0,o=o+Math.imul(T,V)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(C,V)|0,s=s+Math.imul(C,Y)|0,o=o+Math.imul(I,X)|0,n=(n=n+Math.imul(I,O)|0)+Math.imul(S,X)|0,s=s+Math.imul(S,O)|0,o=o+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(R,Q)|0,s=s+Math.imul(R,ee)|0,o=o+Math.imul(w,ae)|0,n=(n=n+Math.imul(w,oe)|0)+Math.imul(k,ae)|0,s=s+Math.imul(k,oe)|0,o=o+Math.imul(f,se)|0,n=(n=n+Math.imul(f,re)|0)+Math.imul(y,se)|0,s=s+Math.imul(y,re)|0,o=o+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(g,ce)|0,s=s+Math.imul(g,de)|0;var Re=(d+(o=o+Math.imul(m,me)|0)|0)+((8191&(n=(n=n+Math.imul(m,ue)|0)+Math.imul(u,me)|0))<<13)|0;d=((s=s+Math.imul(u,ue)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(F,j),n=(n=Math.imul(F,q))+Math.imul(K,j)|0,s=Math.imul(K,q),o=o+Math.imul(P,z)|0,n=(n=n+Math.imul(P,H)|0)+Math.imul(B,z)|0,s=s+Math.imul(B,H)|0,o=o+Math.imul(M,V)|0,n=(n=n+Math.imul(M,Y)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Y)|0,o=o+Math.imul(T,X)|0,n=(n=n+Math.imul(T,O)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,O)|0,o=o+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(S,Q)|0,s=s+Math.imul(S,ee)|0,o=o+Math.imul(x,ae)|0,n=(n=n+Math.imul(x,oe)|0)+Math.imul(R,ae)|0,s=s+Math.imul(R,oe)|0,o=o+Math.imul(w,se)|0,n=(n=n+Math.imul(w,re)|0)+Math.imul(k,se)|0,s=s+Math.imul(k,re)|0,o=o+Math.imul(f,ce)|0,n=(n=n+Math.imul(f,de)|0)+Math.imul(y,ce)|0,s=s+Math.imul(y,de)|0,o=o+Math.imul(h,me)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(g,me)|0,s=s+Math.imul(g,ue)|0;var Ae=(d+(o=o+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,ge)|0)+Math.imul(u,he)|0))<<13)|0;d=((s=s+Math.imul(u,ge)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(F,z),n=(n=Math.imul(F,H))+Math.imul(K,z)|0,s=Math.imul(K,H),o=o+Math.imul(P,V)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(B,V)|0,s=s+Math.imul(B,Y)|0,o=o+Math.imul(M,X)|0,n=(n=n+Math.imul(M,O)|0)+Math.imul(D,X)|0,s=s+Math.imul(D,O)|0,o=o+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,ee)|0,o=o+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(S,ae)|0,s=s+Math.imul(S,oe)|0,o=o+Math.imul(x,se)|0,n=(n=n+Math.imul(x,re)|0)+Math.imul(R,se)|0,s=s+Math.imul(R,re)|0,o=o+Math.imul(w,ce)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(k,ce)|0,s=s+Math.imul(k,de)|0,o=o+Math.imul(f,me)|0,n=(n=n+Math.imul(f,ue)|0)+Math.imul(y,me)|0,s=s+Math.imul(y,ue)|0;var Ie=(d+(o=o+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,ge)|0)+Math.imul(g,he)|0))<<13)|0;d=((s=s+Math.imul(g,ge)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,o=Math.imul(F,V),n=(n=Math.imul(F,Y))+Math.imul(K,V)|0,s=Math.imul(K,Y),o=o+Math.imul(P,X)|0,n=(n=n+Math.imul(P,O)|0)+Math.imul(B,X)|0,s=s+Math.imul(B,O)|0,o=o+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(D,Q)|0,s=s+Math.imul(D,ee)|0,o=o+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,oe)|0)+Math.imul(C,ae)|0,s=s+Math.imul(C,oe)|0,o=o+Math.imul(I,se)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(S,se)|0,s=s+Math.imul(S,re)|0,o=o+Math.imul(x,ce)|0,n=(n=n+Math.imul(x,de)|0)+Math.imul(R,ce)|0,s=s+Math.imul(R,de)|0,o=o+Math.imul(w,me)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(k,me)|0,s=s+Math.imul(k,ue)|0;var Se=(d+(o=o+Math.imul(f,he)|0)|0)+((8191&(n=(n=n+Math.imul(f,ge)|0)+Math.imul(y,he)|0))<<13)|0;d=((s=s+Math.imul(y,ge)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,o=Math.imul(F,X),n=(n=Math.imul(F,O))+Math.imul(K,X)|0,s=Math.imul(K,O),o=o+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(B,Q)|0,s=s+Math.imul(B,ee)|0,o=o+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(D,ae)|0,s=s+Math.imul(D,oe)|0,o=o+Math.imul(T,se)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(C,se)|0,s=s+Math.imul(C,re)|0,o=o+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(S,ce)|0,s=s+Math.imul(S,de)|0,o=o+Math.imul(x,me)|0,n=(n=n+Math.imul(x,ue)|0)+Math.imul(R,me)|0,s=s+Math.imul(R,ue)|0;var Ee=(d+(o=o+Math.imul(w,he)|0)|0)+((8191&(n=(n=n+Math.imul(w,ge)|0)+Math.imul(k,he)|0))<<13)|0;d=((s=s+Math.imul(k,ge)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(F,Q),n=(n=Math.imul(F,ee))+Math.imul(K,Q)|0,s=Math.imul(K,ee),o=o+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(B,ae)|0,s=s+Math.imul(B,oe)|0,o=o+Math.imul(M,se)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(D,se)|0,s=s+Math.imul(D,re)|0,o=o+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,de)|0)+Math.imul(C,ce)|0,s=s+Math.imul(C,de)|0,o=o+Math.imul(I,me)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(S,me)|0,s=s+Math.imul(S,ue)|0;var Te=(d+(o=o+Math.imul(x,he)|0)|0)+((8191&(n=(n=n+Math.imul(x,ge)|0)+Math.imul(R,he)|0))<<13)|0;d=((s=s+Math.imul(R,ge)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,o=Math.imul(F,ae),n=(n=Math.imul(F,oe))+Math.imul(K,ae)|0,s=Math.imul(K,oe),o=o+Math.imul(P,se)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(B,se)|0,s=s+Math.imul(B,re)|0,o=o+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,de)|0)+Math.imul(D,ce)|0,s=s+Math.imul(D,de)|0,o=o+Math.imul(T,me)|0,n=(n=n+Math.imul(T,ue)|0)+Math.imul(C,me)|0,s=s+Math.imul(C,ue)|0;var Ce=(d+(o=o+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,ge)|0)+Math.imul(S,he)|0))<<13)|0;d=((s=s+Math.imul(S,ge)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(F,se),n=(n=Math.imul(F,re))+Math.imul(K,se)|0,s=Math.imul(K,re),o=o+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(B,ce)|0,s=s+Math.imul(B,de)|0,o=o+Math.imul(M,me)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(D,me)|0,s=s+Math.imul(D,ue)|0;var Ue=(d+(o=o+Math.imul(T,he)|0)|0)+((8191&(n=(n=n+Math.imul(T,ge)|0)+Math.imul(C,he)|0))<<13)|0;d=((s=s+Math.imul(C,ge)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,o=Math.imul(F,ce),n=(n=Math.imul(F,de))+Math.imul(K,ce)|0,s=Math.imul(K,de),o=o+Math.imul(P,me)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(B,me)|0,s=s+Math.imul(B,ue)|0;var Me=(d+(o=o+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,ge)|0)+Math.imul(D,he)|0))<<13)|0;d=((s=s+Math.imul(D,ge)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,o=Math.imul(F,me),n=(n=Math.imul(F,ue))+Math.imul(K,me)|0,s=Math.imul(K,ue);var De=(d+(o=o+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,ge)|0)+Math.imul(B,he)|0))<<13)|0;d=((s=s+Math.imul(B,ge)|0)+(n>>>13)|0)+(De>>>26)|0,De&=67108863;var Ne=(d+(o=Math.imul(F,he))|0)+((8191&(n=(n=Math.imul(F,ge))+Math.imul(K,he)|0))<<13)|0;return d=((s=Math.imul(K,ge))+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=be,c[1]=fe,c[2]=ye,c[3]=$e,c[4]=we,c[5]=ke,c[6]=ve,c[7]=xe,c[8]=Re,c[9]=Ae,c[10]=Ie,c[11]=Se,c[12]=Ee,c[13]=Te,c[14]=Ce,c[15]=Ue,c[16]=Me,c[17]=De,c[18]=Ne,0!==d&&(c[19]=d,a.length++),a};function h(e,t,a){return(new g).mulp(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=u),n.prototype.mulTo=function(e,t){var a,o=this.length+e.length;return a=10===this.length&&10===e.length?p(this,e,t):o<63?u(this,e,t):o<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var o=0,n=0,s=0;s>>26)|0)>>>26,r&=67108863}a.words[s]=i,o=r,r=n}return 0!==o?a.words[s]=o:a.length--,a.strip()}(this,e,t):h(this,e,t),a},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=n.prototype._countBits(e)-1,o=0;o>=1;return o},g.prototype.permute=function(e,t,a,o,n,s){for(var r=0;r>>=1)n++;return 1<>>=13,o[2*r+1]=8191&s,s>>>=13;for(r=2*t;r>=26,t+=n/67108864|0,t+=s>>>26,this.words[o]=67108863&s}return 0!==t&&(this.words[o]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new n(1);for(var a=this,o=0;o=0);var t,o=e%26,n=(e-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var r=0;for(t=0;t>>26-o}r&&(this.words[t]=r,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var s=e%26,r=Math.min((e-s)/26,this.length),i=67108863^67108863>>>s<r)for(this.length-=r,d=0;d=0&&(0!==l||d>=n);d--){var m=0|this.words[d];this.words[d]=l<<26-s|m>>>s,l=m&i}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,o){return a(0===this.negative),this.iushrn(e,t,o)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26,n=1<=0);var t=e%26,o=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==t&&o++,this.length=Math.min(o,this.length),0!==t){var n=67108863^67108863>>>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},n.prototype.isubn=function(e){if(a("number"==typeof e),a(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>26)-(c/67108864|0),this.words[n+o]=67108863&s}for(;n>26,this.words[n+o]=67108863&s;if(0===i)return this.strip();for(a(-1===i),i=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var a=(this.length,e.length),o=this.clone(),s=e,r=0|s.words[s.length-1];0!==(a=26-this._countBits(r))&&(s=s.ushln(a),o.iushln(a),r=0|s.words[s.length-1]);var i,c=o.length-s.length;if("mod"!==t){(i=new n(null)).length=c+1,i.words=new Array(i.length);for(var d=0;d=0;m--){var u=67108864*(0|o.words[s.length+m])+(0|o.words[s.length+m-1]);for(u=Math.min(u/r|0,67108863),o._ishlnsubmul(s,u,m);0!==o.negative;)u--,o.negative=0,o._ishlnsubmul(s,1,m),o.isZero()||(o.negative^=1);i&&(i.words[m]=u)}return i&&i.strip(),o.strip(),"div"!==t&&0!==a&&o.iushrn(a),{div:i||null,mod:o}},n.prototype.divmod=function(e,t,o){return a(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(i=this.neg().divmod(e,t),"mod"!==t&&(s=i.div.neg()),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.iadd(e)),{div:s,mod:r}):0===this.negative&&0!==e.negative?(i=this.divmod(e.neg(),t),"mod"!==t&&(s=i.div.neg()),{div:s,mod:i.mod}):0!=(this.negative&e.negative)?(i=this.neg().divmod(e.neg(),t),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.isub(e)),{div:i.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var s,r,i},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),n=e.andln(1),s=a.cmp(o);return s<0||1===n&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){a(e<=67108863);for(var t=67108864%e,o=0,n=this.length-1;n>=0;n--)o=(t*o+(0|this.words[n]))%e;return o},n.prototype.idivn=function(e){a(e<=67108863);for(var t=0,o=this.length-1;o>=0;o--){var n=(0|this.words[o])+67108864*t;this.words[o]=n/e|0,t=n%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s=new n(1),r=new n(0),i=new n(0),c=new n(1),d=0;t.isEven()&&o.isEven();)t.iushrn(1),o.iushrn(1),++d;for(var l=o.clone(),m=t.clone();!t.isZero();){for(var u=0,p=1;0==(t.words[0]&p)&&u<26;++u,p<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(s.isOdd()||r.isOdd())&&(s.iadd(l),r.isub(m)),s.iushrn(1),r.iushrn(1);for(var h=0,g=1;0==(o.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(o.iushrn(h);h-- >0;)(i.isOdd()||c.isOdd())&&(i.iadd(l),c.isub(m)),i.iushrn(1),c.iushrn(1);t.cmp(o)>=0?(t.isub(o),s.isub(i),r.isub(c)):(o.isub(t),i.isub(s),c.isub(r))}return{a:i,b:c,gcd:o.iushln(d)}},n.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s,r=new n(1),i=new n(0),c=o.clone();t.cmpn(1)>0&&o.cmpn(1)>0;){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)r.isOdd()&&r.iadd(c),r.iushrn(1);for(var m=0,u=1;0==(o.words[0]&u)&&m<26;++m,u<<=1);if(m>0)for(o.iushrn(m);m-- >0;)i.isOdd()&&i.iadd(c),i.iushrn(1);t.cmp(o)>=0?(t.isub(o),r.isub(i)):(o.isub(t),i.isub(r))}return(s=0===t.cmpn(1)?r:i).cmpn(0)<0&&s.iadd(e),s},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var o=0;t.isEven()&&a.isEven();o++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var s=t;t=a,a=s}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(o)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,o=(e-t)/26,n=1<>>26,i&=67108863,this.words[r]=i}return 0!==s&&(this.words[r]=s,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,o=e<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)t=1;else{o&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var o=0|this.words[a],n=0|e.words[a];if(o!==n){on&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new v(e)},n.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function f(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(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)}f.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},f.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},f.prototype.split=function(e,t){e.iushrn(this.n,0,t)},f.prototype.imulK=function(e){return e.imul(this.k)},o(y,f),y.prototype.split=function(e,t){for(var a=4194303,o=Math.min(e.length,9),n=0;n>>22,s=r}s>>>=22,e.words[n-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=o}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new $;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return b[e]=t,t},v.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},v.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var o=this.m.add(new n(1)).iushrn(2);return this.pow(e,o)}for(var s=this.m.subn(1),r=0;!s.isZero()&&0===s.andln(1);)r++,s.iushrn(1);a(!s.isZero());var i=new n(1).toRed(this),c=i.redNeg(),d=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);0!==this.pow(l,d).cmp(c);)l.redIAdd(c);for(var m=this.pow(l,s),u=this.pow(e,s.addn(1).iushrn(1)),p=this.pow(e,s),h=r;0!==p.cmp(i);){for(var g=p,b=0;0!==g.cmp(i);b++)g=g.redSqr();a(b=0;o--){for(var d=t.words[o],l=c-1;l>=0;l--){var m=d>>l&1;s!==a[0]&&(s=this.sqr(s)),0!==m||0!==r?(r<<=1,r|=m,(4===++i||0===o&&0===l)&&(s=this.mul(s,a[r]),i=0,r=0)):i=0}c=26}return s},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new x(e)},o(x,v),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(o).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var a=e.mul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=a.isub(o).iushrn(this.shift),r=s;return s.cmp(this.m)>=0?r=s.isub(this.m):s.cmpn(0)<0&&(r=s.iadd(this.m)),r._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)})),parcelRequire.register("hZon1",(function(e,t){var a;function o(e){this.rand=e}if(e.exports=function(e){return a||(a=new o(null)),a.generate(e)},e.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),a=0;a","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')})),parcelRequire.register("3TUcV",(function(e,t){"use strict";var a=e.exports,o=parcelRequire("1ekCz"),n=parcelRequire("kug9N"),s=parcelRequire("bWlG3");a.assert=n,a.toArray=s.toArray,a.zero2=s.zero2,a.toHex=s.toHex,a.encode=s.encode,a.getNAF=function(e,t,a){var o=new Array(Math.max(e.bitLength(),a)+1);o.fill(0);for(var n=1<(n>>1)-1?(n>>1)-c:c,s.isubn(i)):i=0,o[r]=i,s.iushrn(1)}return o},a.getJSF=function(e,t){var a=[[],[]];e=e.clone(),t=t.clone();for(var o,n=0,s=0;e.cmpn(-n)>0||t.cmpn(-s)>0;){var r,i,c=e.andln(3)+n&3,d=t.andln(3)+s&3;3===c&&(c=-1),3===d&&(d=-1),r=0==(1&c)?0:3!==(o=e.andln(7)+n&7)&&5!==o||2!==d?c:-c,a[0].push(r),i=0==(1&d)?0:3!==(o=t.andln(7)+s&7)&&5!==o||2!==c?d:-d,a[1].push(i),2*n===r+1&&(n=1-n),2*s===i+1&&(s=1-s),e.iushrn(1),t.iushrn(1)}return a},a.cachedProperty=function(e,t,a){var o="_"+t;e.prototype[t]=function(){return void 0!==this[o]?this[o]:this[o]=a.call(this)}},a.parseBytes=function(e){return"string"==typeof e?a.toArray(e,"hex"):e},a.intFromLE=function(e){return new o(e,"hex","le")}})),parcelRequire.register("1ekCz",(function(e,t){!function(e,t){"use strict";function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function n(e,t,a){if(n.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var s;"object"==typeof e?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:parcelRequire("gFqLz").Buffer}catch(e){}function r(e,t){var a=e.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function i(e,t,a){var o=r(e,a);return a-1>=t&&(o|=r(e,a-1)<<4),o}function c(e,t,a,o){for(var n=0,s=Math.min(e.length,a),r=t;r=49?i-49+10:i>=17?i-17+10:i}return n}n.isBN=function(e){return e instanceof n||null!==e&&"object"==typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,o){if("number"==typeof e)return this._initNumber(e,t,o);if("object"==typeof e)return this._initArray(e,t,o);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)r=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[s]|=r<>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);else if("le"===o)for(n=0,s=0;n>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);return this.strip()},n.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var o=0;o=t;o-=2)n=i(e,t,o)<=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;else for(o=(e.length-t)%2==0?t+1:t;o=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;this.strip()},n.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var o=0,n=1;n<=67108863;n*=t)o++;o--,n=n/t|0;for(var s=e.length-a,r=s%o,i=Math.min(s,s-r)+a,d=0,l=a;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?""};var 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"],l=[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],m=[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 u(e,t,a){a.negative=t.negative^e.negative;var o=e.length+t.length|0;a.length=o,o=o-1|0;var n=0|e.words[0],s=0|t.words[0],r=n*s,i=67108863&r,c=r/67108864|0;a.words[0]=i;for(var d=1;d>>26,m=67108863&c,u=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=u;p++){var h=d-p|0;l+=(r=(n=0|e.words[h])*(s=0|t.words[p])+m)/67108864|0,m=67108863&r}a.words[d]=0|m,c=0|l}return 0!==c?a.words[d]=0|c:a.length--,a.strip()}n.prototype.toString=function(e,t){var o;if(t=0|t||1,16===(e=e||10)||"hex"===e){o="";for(var n=0,s=0,r=0;r>>24-n&16777215)||r!==this.length-1?d[6-c.length]+c+o:c+o,(n+=2)>=26&&(n-=26,r--)}for(0!==s&&(o=s.toString(16)+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(e===(0|e)&&e>=2&&e<=36){var u=l[e],p=m[e];o="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(p).toString(e);o=(h=h.idivn(p)).isZero()?g+o:d[u-g.length]+g+o}for(this.isZero()&&(o="0"+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.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&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return a(void 0!==s),this.toArrayLike(s,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,o){var n=this.byteLength(),s=o||Math.max(1,n);a(n<=s,"byte array longer than desired length"),a(s>0,"Requested array length <= 0"),this.strip();var r,i,c="le"===t,d=new e(s),l=this.clone();if(c){for(i=0;!l.isZero();i++)r=l.andln(255),l.iushrn(8),d[i]=r;for(;i=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var o=0;oe.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),o=e%26;this._expand(t),o>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-o),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var o=e/26|0,n=e%26;return this._expand(o+1),this.words[o]=t?this.words[o]|1<e.length?(a=this,o=e):(a=e,o=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;se.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,o,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,o=e):(a=e,o=this);for(var s=0,r=0;r>26,this.words[r]=67108863&t;for(;0!==s&&r>26,this.words[r]=67108863&t;if(0===s&&r>>13,p=0|r[1],h=8191&p,g=p>>>13,b=0|r[2],f=8191&b,y=b>>>13,$=0|r[3],w=8191&$,k=$>>>13,v=0|r[4],x=8191&v,R=v>>>13,A=0|r[5],I=8191&A,S=A>>>13,E=0|r[6],T=8191&E,C=E>>>13,U=0|r[7],M=8191&U,D=U>>>13,N=0|r[8],P=8191&N,B=N>>>13,L=0|r[9],F=8191&L,K=L>>>13,G=0|i[0],j=8191&G,q=G>>>13,W=0|i[1],z=8191&W,H=W>>>13,_=0|i[2],V=8191&_,Y=_>>>13,J=0|i[3],X=8191&J,O=J>>>13,Z=0|i[4],Q=8191&Z,ee=Z>>>13,te=0|i[5],ae=8191&te,oe=te>>>13,ne=0|i[6],se=8191&ne,re=ne>>>13,ie=0|i[7],ce=8191&ie,de=ie>>>13,le=0|i[8],me=8191&le,ue=le>>>13,pe=0|i[9],he=8191&pe,ge=pe>>>13;a.negative=e.negative^t.negative,a.length=19;var be=(d+(o=Math.imul(m,j))|0)+((8191&(n=(n=Math.imul(m,q))+Math.imul(u,j)|0))<<13)|0;d=((s=Math.imul(u,q))+(n>>>13)|0)+(be>>>26)|0,be&=67108863,o=Math.imul(h,j),n=(n=Math.imul(h,q))+Math.imul(g,j)|0,s=Math.imul(g,q);var fe=(d+(o=o+Math.imul(m,z)|0)|0)+((8191&(n=(n=n+Math.imul(m,H)|0)+Math.imul(u,z)|0))<<13)|0;d=((s=s+Math.imul(u,H)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,o=Math.imul(f,j),n=(n=Math.imul(f,q))+Math.imul(y,j)|0,s=Math.imul(y,q),o=o+Math.imul(h,z)|0,n=(n=n+Math.imul(h,H)|0)+Math.imul(g,z)|0,s=s+Math.imul(g,H)|0;var ye=(d+(o=o+Math.imul(m,V)|0)|0)+((8191&(n=(n=n+Math.imul(m,Y)|0)+Math.imul(u,V)|0))<<13)|0;d=((s=s+Math.imul(u,Y)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(w,j),n=(n=Math.imul(w,q))+Math.imul(k,j)|0,s=Math.imul(k,q),o=o+Math.imul(f,z)|0,n=(n=n+Math.imul(f,H)|0)+Math.imul(y,z)|0,s=s+Math.imul(y,H)|0,o=o+Math.imul(h,V)|0,n=(n=n+Math.imul(h,Y)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,Y)|0;var $e=(d+(o=o+Math.imul(m,X)|0)|0)+((8191&(n=(n=n+Math.imul(m,O)|0)+Math.imul(u,X)|0))<<13)|0;d=((s=s+Math.imul(u,O)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,o=Math.imul(x,j),n=(n=Math.imul(x,q))+Math.imul(R,j)|0,s=Math.imul(R,q),o=o+Math.imul(w,z)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(k,z)|0,s=s+Math.imul(k,H)|0,o=o+Math.imul(f,V)|0,n=(n=n+Math.imul(f,Y)|0)+Math.imul(y,V)|0,s=s+Math.imul(y,Y)|0,o=o+Math.imul(h,X)|0,n=(n=n+Math.imul(h,O)|0)+Math.imul(g,X)|0,s=s+Math.imul(g,O)|0;var we=(d+(o=o+Math.imul(m,Q)|0)|0)+((8191&(n=(n=n+Math.imul(m,ee)|0)+Math.imul(u,Q)|0))<<13)|0;d=((s=s+Math.imul(u,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(I,j),n=(n=Math.imul(I,q))+Math.imul(S,j)|0,s=Math.imul(S,q),o=o+Math.imul(x,z)|0,n=(n=n+Math.imul(x,H)|0)+Math.imul(R,z)|0,s=s+Math.imul(R,H)|0,o=o+Math.imul(w,V)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Y)|0,o=o+Math.imul(f,X)|0,n=(n=n+Math.imul(f,O)|0)+Math.imul(y,X)|0,s=s+Math.imul(y,O)|0,o=o+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0;var ke=(d+(o=o+Math.imul(m,ae)|0)|0)+((8191&(n=(n=n+Math.imul(m,oe)|0)+Math.imul(u,ae)|0))<<13)|0;d=((s=s+Math.imul(u,oe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(T,j),n=(n=Math.imul(T,q))+Math.imul(C,j)|0,s=Math.imul(C,q),o=o+Math.imul(I,z)|0,n=(n=n+Math.imul(I,H)|0)+Math.imul(S,z)|0,s=s+Math.imul(S,H)|0,o=o+Math.imul(x,V)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(R,V)|0,s=s+Math.imul(R,Y)|0,o=o+Math.imul(w,X)|0,n=(n=n+Math.imul(w,O)|0)+Math.imul(k,X)|0,s=s+Math.imul(k,O)|0,o=o+Math.imul(f,Q)|0,n=(n=n+Math.imul(f,ee)|0)+Math.imul(y,Q)|0,s=s+Math.imul(y,ee)|0,o=o+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(g,ae)|0,s=s+Math.imul(g,oe)|0;var ve=(d+(o=o+Math.imul(m,se)|0)|0)+((8191&(n=(n=n+Math.imul(m,re)|0)+Math.imul(u,se)|0))<<13)|0;d=((s=s+Math.imul(u,re)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(M,j),n=(n=Math.imul(M,q))+Math.imul(D,j)|0,s=Math.imul(D,q),o=o+Math.imul(T,z)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(C,z)|0,s=s+Math.imul(C,H)|0,o=o+Math.imul(I,V)|0,n=(n=n+Math.imul(I,Y)|0)+Math.imul(S,V)|0,s=s+Math.imul(S,Y)|0,o=o+Math.imul(x,X)|0,n=(n=n+Math.imul(x,O)|0)+Math.imul(R,X)|0,s=s+Math.imul(R,O)|0,o=o+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,o=o+Math.imul(f,ae)|0,n=(n=n+Math.imul(f,oe)|0)+Math.imul(y,ae)|0,s=s+Math.imul(y,oe)|0,o=o+Math.imul(h,se)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(g,se)|0,s=s+Math.imul(g,re)|0;var xe=(d+(o=o+Math.imul(m,ce)|0)|0)+((8191&(n=(n=n+Math.imul(m,de)|0)+Math.imul(u,ce)|0))<<13)|0;d=((s=s+Math.imul(u,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,o=Math.imul(P,j),n=(n=Math.imul(P,q))+Math.imul(B,j)|0,s=Math.imul(B,q),o=o+Math.imul(M,z)|0,n=(n=n+Math.imul(M,H)|0)+Math.imul(D,z)|0,s=s+Math.imul(D,H)|0,o=o+Math.imul(T,V)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(C,V)|0,s=s+Math.imul(C,Y)|0,o=o+Math.imul(I,X)|0,n=(n=n+Math.imul(I,O)|0)+Math.imul(S,X)|0,s=s+Math.imul(S,O)|0,o=o+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(R,Q)|0,s=s+Math.imul(R,ee)|0,o=o+Math.imul(w,ae)|0,n=(n=n+Math.imul(w,oe)|0)+Math.imul(k,ae)|0,s=s+Math.imul(k,oe)|0,o=o+Math.imul(f,se)|0,n=(n=n+Math.imul(f,re)|0)+Math.imul(y,se)|0,s=s+Math.imul(y,re)|0,o=o+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(g,ce)|0,s=s+Math.imul(g,de)|0;var Re=(d+(o=o+Math.imul(m,me)|0)|0)+((8191&(n=(n=n+Math.imul(m,ue)|0)+Math.imul(u,me)|0))<<13)|0;d=((s=s+Math.imul(u,ue)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(F,j),n=(n=Math.imul(F,q))+Math.imul(K,j)|0,s=Math.imul(K,q),o=o+Math.imul(P,z)|0,n=(n=n+Math.imul(P,H)|0)+Math.imul(B,z)|0,s=s+Math.imul(B,H)|0,o=o+Math.imul(M,V)|0,n=(n=n+Math.imul(M,Y)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Y)|0,o=o+Math.imul(T,X)|0,n=(n=n+Math.imul(T,O)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,O)|0,o=o+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(S,Q)|0,s=s+Math.imul(S,ee)|0,o=o+Math.imul(x,ae)|0,n=(n=n+Math.imul(x,oe)|0)+Math.imul(R,ae)|0,s=s+Math.imul(R,oe)|0,o=o+Math.imul(w,se)|0,n=(n=n+Math.imul(w,re)|0)+Math.imul(k,se)|0,s=s+Math.imul(k,re)|0,o=o+Math.imul(f,ce)|0,n=(n=n+Math.imul(f,de)|0)+Math.imul(y,ce)|0,s=s+Math.imul(y,de)|0,o=o+Math.imul(h,me)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(g,me)|0,s=s+Math.imul(g,ue)|0;var Ae=(d+(o=o+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,ge)|0)+Math.imul(u,he)|0))<<13)|0;d=((s=s+Math.imul(u,ge)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(F,z),n=(n=Math.imul(F,H))+Math.imul(K,z)|0,s=Math.imul(K,H),o=o+Math.imul(P,V)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(B,V)|0,s=s+Math.imul(B,Y)|0,o=o+Math.imul(M,X)|0,n=(n=n+Math.imul(M,O)|0)+Math.imul(D,X)|0,s=s+Math.imul(D,O)|0,o=o+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,ee)|0,o=o+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(S,ae)|0,s=s+Math.imul(S,oe)|0,o=o+Math.imul(x,se)|0,n=(n=n+Math.imul(x,re)|0)+Math.imul(R,se)|0,s=s+Math.imul(R,re)|0,o=o+Math.imul(w,ce)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(k,ce)|0,s=s+Math.imul(k,de)|0,o=o+Math.imul(f,me)|0,n=(n=n+Math.imul(f,ue)|0)+Math.imul(y,me)|0,s=s+Math.imul(y,ue)|0;var Ie=(d+(o=o+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,ge)|0)+Math.imul(g,he)|0))<<13)|0;d=((s=s+Math.imul(g,ge)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,o=Math.imul(F,V),n=(n=Math.imul(F,Y))+Math.imul(K,V)|0,s=Math.imul(K,Y),o=o+Math.imul(P,X)|0,n=(n=n+Math.imul(P,O)|0)+Math.imul(B,X)|0,s=s+Math.imul(B,O)|0,o=o+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(D,Q)|0,s=s+Math.imul(D,ee)|0,o=o+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,oe)|0)+Math.imul(C,ae)|0,s=s+Math.imul(C,oe)|0,o=o+Math.imul(I,se)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(S,se)|0,s=s+Math.imul(S,re)|0,o=o+Math.imul(x,ce)|0,n=(n=n+Math.imul(x,de)|0)+Math.imul(R,ce)|0,s=s+Math.imul(R,de)|0,o=o+Math.imul(w,me)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(k,me)|0,s=s+Math.imul(k,ue)|0;var Se=(d+(o=o+Math.imul(f,he)|0)|0)+((8191&(n=(n=n+Math.imul(f,ge)|0)+Math.imul(y,he)|0))<<13)|0;d=((s=s+Math.imul(y,ge)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,o=Math.imul(F,X),n=(n=Math.imul(F,O))+Math.imul(K,X)|0,s=Math.imul(K,O),o=o+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(B,Q)|0,s=s+Math.imul(B,ee)|0,o=o+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(D,ae)|0,s=s+Math.imul(D,oe)|0,o=o+Math.imul(T,se)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(C,se)|0,s=s+Math.imul(C,re)|0,o=o+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(S,ce)|0,s=s+Math.imul(S,de)|0,o=o+Math.imul(x,me)|0,n=(n=n+Math.imul(x,ue)|0)+Math.imul(R,me)|0,s=s+Math.imul(R,ue)|0;var Ee=(d+(o=o+Math.imul(w,he)|0)|0)+((8191&(n=(n=n+Math.imul(w,ge)|0)+Math.imul(k,he)|0))<<13)|0;d=((s=s+Math.imul(k,ge)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(F,Q),n=(n=Math.imul(F,ee))+Math.imul(K,Q)|0,s=Math.imul(K,ee),o=o+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(B,ae)|0,s=s+Math.imul(B,oe)|0,o=o+Math.imul(M,se)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(D,se)|0,s=s+Math.imul(D,re)|0,o=o+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,de)|0)+Math.imul(C,ce)|0,s=s+Math.imul(C,de)|0,o=o+Math.imul(I,me)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(S,me)|0,s=s+Math.imul(S,ue)|0;var Te=(d+(o=o+Math.imul(x,he)|0)|0)+((8191&(n=(n=n+Math.imul(x,ge)|0)+Math.imul(R,he)|0))<<13)|0;d=((s=s+Math.imul(R,ge)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,o=Math.imul(F,ae),n=(n=Math.imul(F,oe))+Math.imul(K,ae)|0,s=Math.imul(K,oe),o=o+Math.imul(P,se)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(B,se)|0,s=s+Math.imul(B,re)|0,o=o+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,de)|0)+Math.imul(D,ce)|0,s=s+Math.imul(D,de)|0,o=o+Math.imul(T,me)|0,n=(n=n+Math.imul(T,ue)|0)+Math.imul(C,me)|0,s=s+Math.imul(C,ue)|0;var Ce=(d+(o=o+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,ge)|0)+Math.imul(S,he)|0))<<13)|0;d=((s=s+Math.imul(S,ge)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(F,se),n=(n=Math.imul(F,re))+Math.imul(K,se)|0,s=Math.imul(K,re),o=o+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(B,ce)|0,s=s+Math.imul(B,de)|0,o=o+Math.imul(M,me)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(D,me)|0,s=s+Math.imul(D,ue)|0;var Ue=(d+(o=o+Math.imul(T,he)|0)|0)+((8191&(n=(n=n+Math.imul(T,ge)|0)+Math.imul(C,he)|0))<<13)|0;d=((s=s+Math.imul(C,ge)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,o=Math.imul(F,ce),n=(n=Math.imul(F,de))+Math.imul(K,ce)|0,s=Math.imul(K,de),o=o+Math.imul(P,me)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(B,me)|0,s=s+Math.imul(B,ue)|0;var Me=(d+(o=o+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,ge)|0)+Math.imul(D,he)|0))<<13)|0;d=((s=s+Math.imul(D,ge)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,o=Math.imul(F,me),n=(n=Math.imul(F,ue))+Math.imul(K,me)|0,s=Math.imul(K,ue);var De=(d+(o=o+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,ge)|0)+Math.imul(B,he)|0))<<13)|0;d=((s=s+Math.imul(B,ge)|0)+(n>>>13)|0)+(De>>>26)|0,De&=67108863;var Ne=(d+(o=Math.imul(F,he))|0)+((8191&(n=(n=Math.imul(F,ge))+Math.imul(K,he)|0))<<13)|0;return d=((s=Math.imul(K,ge))+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=be,c[1]=fe,c[2]=ye,c[3]=$e,c[4]=we,c[5]=ke,c[6]=ve,c[7]=xe,c[8]=Re,c[9]=Ae,c[10]=Ie,c[11]=Se,c[12]=Ee,c[13]=Te,c[14]=Ce,c[15]=Ue,c[16]=Me,c[17]=De,c[18]=Ne,0!==d&&(c[19]=d,a.length++),a};function h(e,t,a){return(new g).mulp(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=u),n.prototype.mulTo=function(e,t){var a,o=this.length+e.length;return a=10===this.length&&10===e.length?p(this,e,t):o<63?u(this,e,t):o<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var o=0,n=0,s=0;s>>26)|0)>>>26,r&=67108863}a.words[s]=i,o=r,r=n}return 0!==o?a.words[s]=o:a.length--,a.strip()}(this,e,t):h(this,e,t),a},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=n.prototype._countBits(e)-1,o=0;o>=1;return o},g.prototype.permute=function(e,t,a,o,n,s){for(var r=0;r>>=1)n++;return 1<>>=13,o[2*r+1]=8191&s,s>>>=13;for(r=2*t;r>=26,t+=n/67108864|0,t+=s>>>26,this.words[o]=67108863&s}return 0!==t&&(this.words[o]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new n(1);for(var a=this,o=0;o=0);var t,o=e%26,n=(e-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var r=0;for(t=0;t>>26-o}r&&(this.words[t]=r,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var s=e%26,r=Math.min((e-s)/26,this.length),i=67108863^67108863>>>s<r)for(this.length-=r,d=0;d=0&&(0!==l||d>=n);d--){var m=0|this.words[d];this.words[d]=l<<26-s|m>>>s,l=m&i}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,o){return a(0===this.negative),this.iushrn(e,t,o)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26,n=1<=0);var t=e%26,o=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==t&&o++,this.length=Math.min(o,this.length),0!==t){var n=67108863^67108863>>>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},n.prototype.isubn=function(e){if(a("number"==typeof e),a(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>26)-(c/67108864|0),this.words[n+o]=67108863&s}for(;n>26,this.words[n+o]=67108863&s;if(0===i)return this.strip();for(a(-1===i),i=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var a=(this.length,e.length),o=this.clone(),s=e,r=0|s.words[s.length-1];0!==(a=26-this._countBits(r))&&(s=s.ushln(a),o.iushln(a),r=0|s.words[s.length-1]);var i,c=o.length-s.length;if("mod"!==t){(i=new n(null)).length=c+1,i.words=new Array(i.length);for(var d=0;d=0;m--){var u=67108864*(0|o.words[s.length+m])+(0|o.words[s.length+m-1]);for(u=Math.min(u/r|0,67108863),o._ishlnsubmul(s,u,m);0!==o.negative;)u--,o.negative=0,o._ishlnsubmul(s,1,m),o.isZero()||(o.negative^=1);i&&(i.words[m]=u)}return i&&i.strip(),o.strip(),"div"!==t&&0!==a&&o.iushrn(a),{div:i||null,mod:o}},n.prototype.divmod=function(e,t,o){return a(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(i=this.neg().divmod(e,t),"mod"!==t&&(s=i.div.neg()),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.iadd(e)),{div:s,mod:r}):0===this.negative&&0!==e.negative?(i=this.divmod(e.neg(),t),"mod"!==t&&(s=i.div.neg()),{div:s,mod:i.mod}):0!=(this.negative&e.negative)?(i=this.neg().divmod(e.neg(),t),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.isub(e)),{div:i.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var s,r,i},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),n=e.andln(1),s=a.cmp(o);return s<0||1===n&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){a(e<=67108863);for(var t=67108864%e,o=0,n=this.length-1;n>=0;n--)o=(t*o+(0|this.words[n]))%e;return o},n.prototype.idivn=function(e){a(e<=67108863);for(var t=0,o=this.length-1;o>=0;o--){var n=(0|this.words[o])+67108864*t;this.words[o]=n/e|0,t=n%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s=new n(1),r=new n(0),i=new n(0),c=new n(1),d=0;t.isEven()&&o.isEven();)t.iushrn(1),o.iushrn(1),++d;for(var l=o.clone(),m=t.clone();!t.isZero();){for(var u=0,p=1;0==(t.words[0]&p)&&u<26;++u,p<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(s.isOdd()||r.isOdd())&&(s.iadd(l),r.isub(m)),s.iushrn(1),r.iushrn(1);for(var h=0,g=1;0==(o.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(o.iushrn(h);h-- >0;)(i.isOdd()||c.isOdd())&&(i.iadd(l),c.isub(m)),i.iushrn(1),c.iushrn(1);t.cmp(o)>=0?(t.isub(o),s.isub(i),r.isub(c)):(o.isub(t),i.isub(s),c.isub(r))}return{a:i,b:c,gcd:o.iushln(d)}},n.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s,r=new n(1),i=new n(0),c=o.clone();t.cmpn(1)>0&&o.cmpn(1)>0;){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)r.isOdd()&&r.iadd(c),r.iushrn(1);for(var m=0,u=1;0==(o.words[0]&u)&&m<26;++m,u<<=1);if(m>0)for(o.iushrn(m);m-- >0;)i.isOdd()&&i.iadd(c),i.iushrn(1);t.cmp(o)>=0?(t.isub(o),r.isub(i)):(o.isub(t),i.isub(r))}return(s=0===t.cmpn(1)?r:i).cmpn(0)<0&&s.iadd(e),s},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var o=0;t.isEven()&&a.isEven();o++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var s=t;t=a,a=s}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(o)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,o=(e-t)/26,n=1<>>26,i&=67108863,this.words[r]=i}return 0!==s&&(this.words[r]=s,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,o=e<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)t=1;else{o&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var o=0|this.words[a],n=0|e.words[a];if(o!==n){on&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new v(e)},n.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function f(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(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)}f.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},f.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},f.prototype.split=function(e,t){e.iushrn(this.n,0,t)},f.prototype.imulK=function(e){return e.imul(this.k)},o(y,f),y.prototype.split=function(e,t){for(var a=4194303,o=Math.min(e.length,9),n=0;n>>22,s=r}s>>>=22,e.words[n-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=o}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new $;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return b[e]=t,t},v.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},v.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var o=this.m.add(new n(1)).iushrn(2);return this.pow(e,o)}for(var s=this.m.subn(1),r=0;!s.isZero()&&0===s.andln(1);)r++,s.iushrn(1);a(!s.isZero());var i=new n(1).toRed(this),c=i.redNeg(),d=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);0!==this.pow(l,d).cmp(c);)l.redIAdd(c);for(var m=this.pow(l,s),u=this.pow(e,s.addn(1).iushrn(1)),p=this.pow(e,s),h=r;0!==p.cmp(i);){for(var g=p,b=0;0!==g.cmp(i);b++)g=g.redSqr();a(b=0;o--){for(var d=t.words[o],l=c-1;l>=0;l--){var m=d>>l&1;s!==a[0]&&(s=this.sqr(s)),0!==m||0!==r?(r<<=1,r|=m,(4===++i||0===o&&0===l)&&(s=this.mul(s,a[r]),i=0,r=0)):i=0}c=26}return s},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new x(e)},o(x,v),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(o).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var a=e.mul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=a.isub(o).iushrn(this.shift),r=s;return s.cmp(this.m)>=0?r=s.isub(this.m):s.cmpn(0)<0&&(r=s.iadd(this.m)),r._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)})),parcelRequire.register("bWlG3",(function(e,t){"use strict";var a=e.exports;function o(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",a=0;a>8,r=255&n;s?a.push(s,r):a.push(r)}return a},a.zero2=o,a.toHex=n,a.encode=function(e,t){return"hex"===t?n(e):e}})),parcelRequire.register("7zDUg",(function(e,t){"use strict";var a=e.exports;a.base=parcelRequire("60GtH"),a.short=parcelRequire("9CcMD"),a.mont=parcelRequire("gmLhs"),a.edwards=parcelRequire("4Q8m9")})),parcelRequire.register("60GtH",(function(e,t){"use strict";var a=parcelRequire("1ekCz"),o=parcelRequire("3TUcV"),n=o.getNAF,s=o.getJSF,r=o.assert;function i(e,t){this.type=e,this.p=new a(t.p,16),this.red=t.prime?a.red(t.prime):a.mont(this.p),this.zero=new a(0).toRed(this.red),this.one=new a(1).toRed(this.red),this.two=new a(2).toRed(this.red),this.n=t.n&&new a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var o=this.n&&this.p.div(this.n);!o||o.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=i,i.prototype.point=function(){throw new Error("Not implemented")},i.prototype.validate=function(){throw new Error("Not implemented")},i.prototype._fixedNafMul=function(e,t){r(e.precomputed);var a=e._getDoubles(),o=n(t,1,this._bitLength),s=(1<=i;l--)c=(c<<1)+o[l];d.push(c)}for(var m=this.jpoint(null,null,null),u=this.jpoint(null,null,null),p=s;p>0;p--){for(i=0;i=0;d--){for(var l=0;d>=0&&0===i[d];d--)l++;if(d>=0&&l++,c=c.dblp(l),d<0)break;var m=i[d];r(0!==m),c="affine"===e.type?m>0?c.mixedAdd(s[m-1>>1]):c.mixedAdd(s[-m-1>>1].neg()):m>0?c.add(s[m-1>>1]):c.add(s[-m-1>>1].neg())}return"affine"===e.type?c.toP():c},i.prototype._wnafMulAdd=function(e,t,a,o,r){var i,c,d,l=this._wnafT1,m=this._wnafT2,u=this._wnafT3,p=0;for(i=0;i=1;i-=2){var g=i-1,b=i;if(1===l[g]&&1===l[b]){var f=[t[g],null,null,t[b]];0===t[g].y.cmp(t[b].y)?(f[1]=t[g].add(t[b]),f[2]=t[g].toJ().mixedAdd(t[b].neg())):0===t[g].y.cmp(t[b].y.redNeg())?(f[1]=t[g].toJ().mixedAdd(t[b]),f[2]=t[g].add(t[b].neg())):(f[1]=t[g].toJ().mixedAdd(t[b]),f[2]=t[g].toJ().mixedAdd(t[b].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],$=s(a[g],a[b]);for(p=Math.max($[0].length,p),u[g]=new Array(p),u[b]=new Array(p),c=0;c=0;i--){for(var R=0;i>=0;){var A=!0;for(c=0;c=0&&R++,v=v.dblp(R),i<0)break;for(c=0;c0?d=m[c][I-1>>1]:I<0&&(d=m[c][-I-1>>1].neg()),v="affine"===d.type?v.mixedAdd(d):v.add(d))}}for(i=0;i=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],o=this,n=0;n=0&&(r=t,i=a),n.negative&&(n=n.neg(),s=s.neg()),r.negative&&(r=r.neg(),i=i.neg()),[{a:n,b:s},{a:r,b:i}]},i.prototype._endoSplit=function(e){var t=this.endo.basis,a=t[0],o=t[1],n=o.b.mul(e).divRound(this.n),s=a.b.neg().mul(e).divRound(this.n),r=n.mul(a.a),i=s.mul(o.a),c=n.mul(a.b),d=s.mul(o.b);return{k1:e.sub(r).sub(i),k2:c.add(d).neg()}},i.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var a=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=a.redSqrt();if(0!==n.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=n.fromRed().isOdd();return(t&&!s||!t&&s)&&(n=n.redNeg()),this.point(e,n)},i.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,a=e.y,o=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(o).redIAdd(this.b);return 0===a.redSqr().redISub(n).cmpn(0)},i.prototype._endoWnafMulAdd=function(e,t,a){for(var o=this._endoWnafT1,n=this._endoWnafT2,s=0;s":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var a=t.redSqr().redISub(this.x).redISub(e.x),o=t.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,a=this.x.redSqr(),o=e.redInvm(),n=a.redAdd(a).redIAdd(a).redIAdd(t).redMul(o),s=n.redSqr().redISub(this.x.redAdd(this.x)),r=n.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,r)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,a){var o=[this,t],n=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(o,n):this.curve._wnafMulAdd(1,o,n,2)},c.prototype.jmulAdd=function(e,t,a){var o=[this,t],n=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(o,n,!0):this.curve._wnafMulAdd(1,o,n,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var a=this.precomputed,o=function(e){return e.neg()};t.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(o)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(o)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},n(d,s.BasePoint),i.prototype.jpoint=function(e,t,a){return new d(this,e,t,a)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),a=this.x.redMul(t),o=this.y.redMul(t).redMul(e);return this.curve.point(a,o)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),a=this.z.redSqr(),o=this.x.redMul(t),n=e.x.redMul(a),s=this.y.redMul(t.redMul(e.z)),r=e.y.redMul(a.redMul(this.z)),i=o.redSub(n),c=s.redSub(r);if(0===i.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=i.redSqr(),l=d.redMul(i),m=o.redMul(d),u=c.redSqr().redIAdd(l).redISub(m).redISub(m),p=c.redMul(m.redISub(u)).redISub(s.redMul(l)),h=this.z.redMul(e.z).redMul(i);return this.curve.jpoint(u,p,h)},d.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),a=this.x,o=e.x.redMul(t),n=this.y,s=e.y.redMul(t).redMul(this.z),r=a.redSub(o),i=n.redSub(s);if(0===r.cmpn(0))return 0!==i.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=r.redSqr(),d=c.redMul(r),l=a.redMul(c),m=i.redSqr().redIAdd(d).redISub(l).redISub(l),u=i.redMul(l.redISub(m)).redISub(n.redMul(d)),p=this.z.redMul(r);return this.curve.jpoint(m,u,p)},d.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var a=this;for(t=0;t=0)return!1;if(a.redIAdd(n),0===this.x.cmp(a))return!0}},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}})),parcelRequire.register("gmLhs",(function(e,t){"use strict";var a=parcelRequire("1ekCz"),o=parcelRequire("943Ft"),n=parcelRequire("60GtH"),s=parcelRequire("3TUcV");function r(e){n.call(this,"mont",e),this.a=new a(e.a,16).toRed(this.red),this.b=new a(e.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function i(e,t,o){n.BasePoint.call(this,e,"projective"),null===t&&null===o?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(t,16),this.z=new a(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(r,n),e.exports=r,r.prototype.validate=function(e){var t=e.normalize().x,a=t.redSqr(),o=a.redMul(t).redAdd(a.redMul(this.a)).redAdd(t);return 0===o.redSqrt().redSqr().cmp(o)},o(i,n.BasePoint),r.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},r.prototype.point=function(e,t){return new i(this,e,t)},r.prototype.pointFromJSON=function(e){return i.fromJSON(this,e)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(e,t){return new i(e,t[0],t[1]||e.one)},i.prototype.inspect=function(){return this.isInfinity()?"":""},i.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},i.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),a=e.redSub(t),o=e.redMul(t),n=a.redMul(t.redAdd(this.curve.a24.redMul(a)));return this.curve.point(o,n)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(e,t){var a=this.x.redAdd(this.z),o=this.x.redSub(this.z),n=e.x.redAdd(e.z),s=e.x.redSub(e.z).redMul(a),r=n.redMul(o),i=t.z.redMul(s.redAdd(r).redSqr()),c=t.x.redMul(s.redISub(r).redSqr());return this.curve.point(i,c)},i.prototype.mul=function(e){for(var t=e.clone(),a=this,o=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var s=n.length-1;s>=0;s--)0===n[s]?(a=a.diffAdd(o,this),o=o.dbl()):(o=a.diffAdd(o,this),a=a.dbl());return o},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()}})),parcelRequire.register("4Q8m9",(function(e,t){"use strict";var a=parcelRequire("3TUcV"),o=parcelRequire("1ekCz"),n=parcelRequire("943Ft"),s=parcelRequire("60GtH"),r=a.assert;function i(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),r(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,a,n,r){s.BasePoint.call(this,e,"projective"),null===t&&null===a&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(a,16),this.z=n?new o(n,16):this.curve.one,this.t=r&&new o(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}n(i,s),e.exports=i,i.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},i.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},i.prototype.jpoint=function(e,t,a,o){return this.point(e,t,a,o)},i.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var a=e.redSqr(),n=this.c2.redSub(this.a.redMul(a)),s=this.one.redSub(this.c2.redMul(this.d).redMul(a)),r=n.redMul(s.redInvm()),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var c=i.fromRed().isOdd();return(t&&!c||!t&&c)&&(i=i.redNeg()),this.point(e,i)},i.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var a=e.redSqr(),n=a.redSub(this.c2),s=a.redMul(this.d).redMul(this.c2).redSub(this.a),r=n.redMul(s.redInvm());if(0===r.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");return i.fromRed().isOdd()!==t&&(i=i.redNeg()),this.point(i,e)},i.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),a=e.y.redSqr(),o=t.redMul(this.a).redAdd(a),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(a)));return 0===o.cmp(n)},n(c,s.BasePoint),i.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},i.prototype.point=function(e,t,a,o){return new c(this,e,t,a,o)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),a=this.z.redSqr();a=a.redIAdd(a);var o=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),s=o.redAdd(t),r=s.redSub(a),i=o.redSub(t),c=n.redMul(r),d=s.redMul(i),l=n.redMul(i),m=r.redMul(s);return this.curve.point(c,d,m,l)},c.prototype._projDbl=function(){var e,t,a,o,n,s,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var d=(o=this.curve._mulA(i)).redAdd(c);this.zOne?(e=r.redSub(i).redSub(c).redMul(d.redSub(this.curve.two)),t=d.redMul(o.redSub(c)),a=d.redSqr().redSub(d).redSub(d)):(n=this.z.redSqr(),s=d.redSub(n).redISub(n),e=r.redSub(i).redISub(c).redMul(s),t=d.redMul(o.redSub(c)),a=d.redMul(s))}else o=i.redAdd(c),n=this.curve._mulC(this.z).redSqr(),s=o.redSub(n).redSub(n),e=this.curve._mulC(r.redISub(o)).redMul(s),t=this.curve._mulC(o).redMul(i.redISub(c)),a=o.redMul(s);return this.curve.point(e,t,a)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),a=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),o=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),s=a.redSub(t),r=n.redSub(o),i=n.redAdd(o),c=a.redAdd(t),d=s.redMul(r),l=i.redMul(c),m=s.redMul(c),u=r.redMul(i);return this.curve.point(d,l,u,m)},c.prototype._projAdd=function(e){var t,a,o=this.z.redMul(e.z),n=o.redSqr(),s=this.x.redMul(e.x),r=this.y.redMul(e.y),i=this.curve.d.redMul(s).redMul(r),c=n.redSub(i),d=n.redAdd(i),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(s).redISub(r),m=o.redMul(c).redMul(l);return this.curve.twisted?(t=o.redMul(d).redMul(r.redSub(this.curve._mulA(s))),a=c.redMul(d)):(t=o.redMul(d).redMul(r.redSub(s)),a=this.curve._mulC(c).redMul(d)),this.curve.point(m,t,a)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,a){return this.curve._wnafMulAdd(1,[this,t],[e,a],2,!1)},c.prototype.jmulAdd=function(e,t,a){return this.curve._wnafMulAdd(1,[this,t],[e,a],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var a=e.clone(),o=this.curve.redN.redMul(this.z);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(o),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add})),parcelRequire.register("9zWRA",(function(e,t){"use strict";var a,o=e.exports,n=parcelRequire("8Fg1p"),s=parcelRequire("7zDUg"),r=parcelRequire("3TUcV").assert;function i(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,r(this.g.validate(),"Invalid curve"),r(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){var a=new i(t);return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:a}),a}})}o.PresetCurve=i,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:n.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:n.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{a=parcelRequire("9O5Xj")}catch(e){a=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})})),parcelRequire.register("8Fg1p",(function(e,t){var a=e.exports;a.utils=parcelRequire("iOJmx"),a.common=parcelRequire("5xbkz"),a.sha=parcelRequire("2eJDY"),a.ripemd=parcelRequire("1pPli"),a.hmac=parcelRequire("kHHyo"),a.sha1=a.sha.sha1,a.sha256=a.sha.sha256,a.sha224=a.sha.sha224,a.sha384=a.sha.sha384,a.sha512=a.sha.sha512,a.ripemd160=a.ripemd.ripemd160})),parcelRequire.register("9O5Xj",(function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}})),parcelRequire.register("BNMr6",(function(e,t){"use strict";var a=parcelRequire("1ekCz"),o=parcelRequire("d7rDH"),n=parcelRequire("3TUcV"),s=parcelRequire("9zWRA"),r=parcelRequire("hZon1"),i=n.assert,c=parcelRequire("jvD7w"),d=parcelRequire("4bx6o");function l(e){if(!(this instanceof l))return new l(e);"string"==typeof e&&(i(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=l,l.prototype.keyPair=function(e){return new c(this,e)},l.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},l.prototype.genKeyPair=function(e){e||(e={});for(var t=new o({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||r(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),s=this.n.sub(new a(2));;){var i=new a(t.generate(n));if(!(i.cmp(s)>0))return i.iaddn(1),this.keyFromPrivate(i)}},l.prototype._truncateToN=function(e,t){var a=8*e.byteLength()-this.n.bitLength();return a>0&&(e=e.ushrn(a)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},l.prototype.sign=function(e,t,n,s){"object"==typeof n&&(s=n,n=null),s||(s={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new a(e,16));for(var r=this.n.byteLength(),i=t.getPrivate().toArray("be",r),c=e.toArray("be",r),l=new o({hash:this.hash,entropy:i,nonce:c,pers:s.pers,persEnc:s.persEnc||"utf8"}),m=this.n.sub(new a(1)),u=0;;u++){var p=s.k?s.k(u):new a(l.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(m)>=0)){var h=this.g.mul(p);if(!h.isInfinity()){var g=h.getX(),b=g.umod(this.n);if(0!==b.cmpn(0)){var f=p.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(f=f.umod(this.n)).cmpn(0)){var y=(h.getY().isOdd()?1:0)|(0!==g.cmp(b)?2:0);return s.canonical&&f.cmp(this.nh)>0&&(f=this.n.sub(f),y^=1),new d({r:b,s:f,recoveryParam:y})}}}}}},l.prototype.verify=function(e,t,o,n){e=this._truncateToN(new a(e,16)),o=this.keyFromPublic(o,n);var s=(t=new d(t,"hex")).r,r=t.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(r.cmpn(1)<0||r.cmp(this.n)>=0)return!1;var i,c=r.invm(this.n),l=c.mul(e).umod(this.n),m=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(l,o.getPublic(),m)).isInfinity()&&i.eqXToP(s):!(i=this.g.mulAdd(l,o.getPublic(),m)).isInfinity()&&0===i.getX().umod(this.n).cmp(s)},l.prototype.recoverPubKey=function(e,t,o,n){i((3&o)===o,"The recovery param is more than two bits"),t=new d(t,n);var s=this.n,r=new a(e),c=t.r,l=t.s,m=1&o,u=o>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");c=u?this.curve.pointFromX(c.add(this.curve.n),m):this.curve.pointFromX(c,m);var p=t.r.invm(s),h=s.sub(r).mul(p).umod(s),g=l.mul(p).umod(s);return this.g.mulAdd(h,c,g)},l.prototype.getKeyRecoveryParam=function(e,t,a,o){if(null!==(t=new d(t,o)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var s;try{s=this.recoverPubKey(e,t,n)}catch(e){continue}if(s.eq(a))return n}throw new Error("Unable to find valid recovery factor")}})),parcelRequire.register("d7rDH",(function(e,t){"use strict";var a=parcelRequire("8Fg1p"),o=parcelRequire("bWlG3"),n=parcelRequire("kug9N");function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),a=o.toArray(e.nonce,e.nonceEnc||"hex"),r=o.toArray(e.pers,e.persEnc||"hex");n(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,a,r)}e.exports=s,s.prototype._init=function(e,t,a){var o=e.concat(t).concat(a);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(a||[])),this._reseed=1},s.prototype.generate=function(e,t,a,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=a,a=t,t=null),a&&(a=o.toArray(a,n||"hex"),this._update(a));for(var s=[];s.length"}})),parcelRequire.register("4bx6o",(function(e,t){"use strict";var a=parcelRequire("1ekCz"),o=parcelRequire("3TUcV"),n=o.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(n(e.r&&e.s,"Signature without r or s"),this.r=new a(e.r,16),this.s=new a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function r(){this.place=0}function i(e,t){var a=e[t.place++];if(!(128&a))return a;var o=15&a;if(0===o||o>4)return!1;for(var n=0,s=0,r=t.place;s>>=0;return!(n<=127)&&(t.place=r,n)}function c(e){for(var t=0,a=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|a);--a;)e.push(t>>>(a<<3)&255);e.push(t)}}e.exports=s,s.prototype._importDER=function(e,t){e=o.toArray(e,t);var n=new r;if(48!==e[n.place++])return!1;var s=i(e,n);if(!1===s)return!1;if(s+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var c=i(e,n);if(!1===c)return!1;var d=e.slice(n.place,c+n.place);if(n.place+=c,2!==e[n.place++])return!1;var l=i(e,n);if(!1===l)return!1;if(e.length!==l+n.place)return!1;var m=e.slice(n.place,l+n.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===m[0]){if(!(128&m[1]))return!1;m=m.slice(1)}return this.r=new a(d),this.s=new a(m),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),a=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&a[0]&&(a=[0].concat(a)),t=c(t),a=c(a);!(a[0]||128&a[1]);)a=a.slice(1);var n=[2];d(n,t.length),(n=n.concat(t)).push(2),d(n,a.length);var s=n.concat(a),r=[48];return d(r,s.length),r=r.concat(s),o.encode(r,e)}})),parcelRequire.register("lOk0X",(function(e,t){"use strict";var a=parcelRequire("8Fg1p"),o=parcelRequire("9zWRA"),n=parcelRequire("3TUcV"),s=n.assert,r=n.parseBytes,i=parcelRequire("bv9n6"),c=parcelRequire("eG5p0");function d(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof d))return new d(e);e=o[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=a.sha512}e.exports=d,d.prototype.sign=function(e,t){e=r(e);var a=this.keyFromSecret(t),o=this.hashInt(a.messagePrefix(),e),n=this.g.mul(o),s=this.encodePoint(n),i=this.hashInt(s,a.pubBytes(),e).mul(a.priv()),c=o.add(i).umod(this.curve.n);return this.makeSignature({R:n,S:c,Rencoded:s})},d.prototype.verify=function(e,t,a){e=r(e),t=this.makeSignature(t);var o=this.keyFromPublic(a),n=this.hashInt(t.Rencoded(),o.pubBytes(),e),s=this.g.mul(t.S());return t.R().add(o.pub().mul(n)).eq(s)},d.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function i(e,t,a){var o=r(e,a);return a-1>=t&&(o|=r(e,a-1)<<4),o}function c(e,t,a,o){for(var n=0,s=Math.min(e.length,a),r=t;r=49?i-49+10:i>=17?i-17+10:i}return n}n.isBN=function(e){return e instanceof n||null!==e&&"object"==typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,o){if("number"==typeof e)return this._initNumber(e,t,o);if("object"==typeof e)return this._initArray(e,t,o);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)r=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[s]|=r<>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);else if("le"===o)for(n=0,s=0;n>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);return this.strip()},n.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var o=0;o=t;o-=2)n=i(e,t,o)<=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;else for(o=(e.length-t)%2==0?t+1:t;o=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;this.strip()},n.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var o=0,n=1;n<=67108863;n*=t)o++;o--,n=n/t|0;for(var s=e.length-a,r=s%o,i=Math.min(s,s-r)+a,d=0,l=a;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?""};var 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"],l=[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],m=[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 u(e,t,a){a.negative=t.negative^e.negative;var o=e.length+t.length|0;a.length=o,o=o-1|0;var n=0|e.words[0],s=0|t.words[0],r=n*s,i=67108863&r,c=r/67108864|0;a.words[0]=i;for(var d=1;d>>26,m=67108863&c,u=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=u;p++){var h=d-p|0;l+=(r=(n=0|e.words[h])*(s=0|t.words[p])+m)/67108864|0,m=67108863&r}a.words[d]=0|m,c=0|l}return 0!==c?a.words[d]=0|c:a.length--,a.strip()}n.prototype.toString=function(e,t){var o;if(t=0|t||1,16===(e=e||10)||"hex"===e){o="";for(var n=0,s=0,r=0;r>>24-n&16777215)||r!==this.length-1?d[6-c.length]+c+o:c+o,(n+=2)>=26&&(n-=26,r--)}for(0!==s&&(o=s.toString(16)+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(e===(0|e)&&e>=2&&e<=36){var u=l[e],p=m[e];o="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(p).toString(e);o=(h=h.idivn(p)).isZero()?g+o:d[u-g.length]+g+o}for(this.isZero()&&(o="0"+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.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&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return a(void 0!==s),this.toArrayLike(s,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,o){var n=this.byteLength(),s=o||Math.max(1,n);a(n<=s,"byte array longer than desired length"),a(s>0,"Requested array length <= 0"),this.strip();var r,i,c="le"===t,d=new e(s),l=this.clone();if(c){for(i=0;!l.isZero();i++)r=l.andln(255),l.iushrn(8),d[i]=r;for(;i=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var o=0;oe.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),o=e%26;this._expand(t),o>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-o),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var o=e/26|0,n=e%26;return this._expand(o+1),this.words[o]=t?this.words[o]|1<e.length?(a=this,o=e):(a=e,o=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;se.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,o,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,o=e):(a=e,o=this);for(var s=0,r=0;r>26,this.words[r]=67108863&t;for(;0!==s&&r>26,this.words[r]=67108863&t;if(0===s&&r>>13,p=0|r[1],h=8191&p,g=p>>>13,b=0|r[2],f=8191&b,y=b>>>13,$=0|r[3],w=8191&$,k=$>>>13,v=0|r[4],x=8191&v,R=v>>>13,A=0|r[5],I=8191&A,S=A>>>13,E=0|r[6],T=8191&E,C=E>>>13,U=0|r[7],M=8191&U,D=U>>>13,N=0|r[8],P=8191&N,B=N>>>13,L=0|r[9],F=8191&L,K=L>>>13,G=0|i[0],j=8191&G,q=G>>>13,W=0|i[1],z=8191&W,H=W>>>13,_=0|i[2],V=8191&_,Y=_>>>13,J=0|i[3],X=8191&J,O=J>>>13,Z=0|i[4],Q=8191&Z,ee=Z>>>13,te=0|i[5],ae=8191&te,oe=te>>>13,ne=0|i[6],se=8191&ne,re=ne>>>13,ie=0|i[7],ce=8191&ie,de=ie>>>13,le=0|i[8],me=8191&le,ue=le>>>13,pe=0|i[9],he=8191&pe,ge=pe>>>13;a.negative=e.negative^t.negative,a.length=19;var be=(d+(o=Math.imul(m,j))|0)+((8191&(n=(n=Math.imul(m,q))+Math.imul(u,j)|0))<<13)|0;d=((s=Math.imul(u,q))+(n>>>13)|0)+(be>>>26)|0,be&=67108863,o=Math.imul(h,j),n=(n=Math.imul(h,q))+Math.imul(g,j)|0,s=Math.imul(g,q);var fe=(d+(o=o+Math.imul(m,z)|0)|0)+((8191&(n=(n=n+Math.imul(m,H)|0)+Math.imul(u,z)|0))<<13)|0;d=((s=s+Math.imul(u,H)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,o=Math.imul(f,j),n=(n=Math.imul(f,q))+Math.imul(y,j)|0,s=Math.imul(y,q),o=o+Math.imul(h,z)|0,n=(n=n+Math.imul(h,H)|0)+Math.imul(g,z)|0,s=s+Math.imul(g,H)|0;var ye=(d+(o=o+Math.imul(m,V)|0)|0)+((8191&(n=(n=n+Math.imul(m,Y)|0)+Math.imul(u,V)|0))<<13)|0;d=((s=s+Math.imul(u,Y)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(w,j),n=(n=Math.imul(w,q))+Math.imul(k,j)|0,s=Math.imul(k,q),o=o+Math.imul(f,z)|0,n=(n=n+Math.imul(f,H)|0)+Math.imul(y,z)|0,s=s+Math.imul(y,H)|0,o=o+Math.imul(h,V)|0,n=(n=n+Math.imul(h,Y)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,Y)|0;var $e=(d+(o=o+Math.imul(m,X)|0)|0)+((8191&(n=(n=n+Math.imul(m,O)|0)+Math.imul(u,X)|0))<<13)|0;d=((s=s+Math.imul(u,O)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,o=Math.imul(x,j),n=(n=Math.imul(x,q))+Math.imul(R,j)|0,s=Math.imul(R,q),o=o+Math.imul(w,z)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(k,z)|0,s=s+Math.imul(k,H)|0,o=o+Math.imul(f,V)|0,n=(n=n+Math.imul(f,Y)|0)+Math.imul(y,V)|0,s=s+Math.imul(y,Y)|0,o=o+Math.imul(h,X)|0,n=(n=n+Math.imul(h,O)|0)+Math.imul(g,X)|0,s=s+Math.imul(g,O)|0;var we=(d+(o=o+Math.imul(m,Q)|0)|0)+((8191&(n=(n=n+Math.imul(m,ee)|0)+Math.imul(u,Q)|0))<<13)|0;d=((s=s+Math.imul(u,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(I,j),n=(n=Math.imul(I,q))+Math.imul(S,j)|0,s=Math.imul(S,q),o=o+Math.imul(x,z)|0,n=(n=n+Math.imul(x,H)|0)+Math.imul(R,z)|0,s=s+Math.imul(R,H)|0,o=o+Math.imul(w,V)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Y)|0,o=o+Math.imul(f,X)|0,n=(n=n+Math.imul(f,O)|0)+Math.imul(y,X)|0,s=s+Math.imul(y,O)|0,o=o+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0;var ke=(d+(o=o+Math.imul(m,ae)|0)|0)+((8191&(n=(n=n+Math.imul(m,oe)|0)+Math.imul(u,ae)|0))<<13)|0;d=((s=s+Math.imul(u,oe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(T,j),n=(n=Math.imul(T,q))+Math.imul(C,j)|0,s=Math.imul(C,q),o=o+Math.imul(I,z)|0,n=(n=n+Math.imul(I,H)|0)+Math.imul(S,z)|0,s=s+Math.imul(S,H)|0,o=o+Math.imul(x,V)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(R,V)|0,s=s+Math.imul(R,Y)|0,o=o+Math.imul(w,X)|0,n=(n=n+Math.imul(w,O)|0)+Math.imul(k,X)|0,s=s+Math.imul(k,O)|0,o=o+Math.imul(f,Q)|0,n=(n=n+Math.imul(f,ee)|0)+Math.imul(y,Q)|0,s=s+Math.imul(y,ee)|0,o=o+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(g,ae)|0,s=s+Math.imul(g,oe)|0;var ve=(d+(o=o+Math.imul(m,se)|0)|0)+((8191&(n=(n=n+Math.imul(m,re)|0)+Math.imul(u,se)|0))<<13)|0;d=((s=s+Math.imul(u,re)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(M,j),n=(n=Math.imul(M,q))+Math.imul(D,j)|0,s=Math.imul(D,q),o=o+Math.imul(T,z)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(C,z)|0,s=s+Math.imul(C,H)|0,o=o+Math.imul(I,V)|0,n=(n=n+Math.imul(I,Y)|0)+Math.imul(S,V)|0,s=s+Math.imul(S,Y)|0,o=o+Math.imul(x,X)|0,n=(n=n+Math.imul(x,O)|0)+Math.imul(R,X)|0,s=s+Math.imul(R,O)|0,o=o+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,o=o+Math.imul(f,ae)|0,n=(n=n+Math.imul(f,oe)|0)+Math.imul(y,ae)|0,s=s+Math.imul(y,oe)|0,o=o+Math.imul(h,se)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(g,se)|0,s=s+Math.imul(g,re)|0;var xe=(d+(o=o+Math.imul(m,ce)|0)|0)+((8191&(n=(n=n+Math.imul(m,de)|0)+Math.imul(u,ce)|0))<<13)|0;d=((s=s+Math.imul(u,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,o=Math.imul(P,j),n=(n=Math.imul(P,q))+Math.imul(B,j)|0,s=Math.imul(B,q),o=o+Math.imul(M,z)|0,n=(n=n+Math.imul(M,H)|0)+Math.imul(D,z)|0,s=s+Math.imul(D,H)|0,o=o+Math.imul(T,V)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(C,V)|0,s=s+Math.imul(C,Y)|0,o=o+Math.imul(I,X)|0,n=(n=n+Math.imul(I,O)|0)+Math.imul(S,X)|0,s=s+Math.imul(S,O)|0,o=o+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(R,Q)|0,s=s+Math.imul(R,ee)|0,o=o+Math.imul(w,ae)|0,n=(n=n+Math.imul(w,oe)|0)+Math.imul(k,ae)|0,s=s+Math.imul(k,oe)|0,o=o+Math.imul(f,se)|0,n=(n=n+Math.imul(f,re)|0)+Math.imul(y,se)|0,s=s+Math.imul(y,re)|0,o=o+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(g,ce)|0,s=s+Math.imul(g,de)|0;var Re=(d+(o=o+Math.imul(m,me)|0)|0)+((8191&(n=(n=n+Math.imul(m,ue)|0)+Math.imul(u,me)|0))<<13)|0;d=((s=s+Math.imul(u,ue)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(F,j),n=(n=Math.imul(F,q))+Math.imul(K,j)|0,s=Math.imul(K,q),o=o+Math.imul(P,z)|0,n=(n=n+Math.imul(P,H)|0)+Math.imul(B,z)|0,s=s+Math.imul(B,H)|0,o=o+Math.imul(M,V)|0,n=(n=n+Math.imul(M,Y)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Y)|0,o=o+Math.imul(T,X)|0,n=(n=n+Math.imul(T,O)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,O)|0,o=o+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(S,Q)|0,s=s+Math.imul(S,ee)|0,o=o+Math.imul(x,ae)|0,n=(n=n+Math.imul(x,oe)|0)+Math.imul(R,ae)|0,s=s+Math.imul(R,oe)|0,o=o+Math.imul(w,se)|0,n=(n=n+Math.imul(w,re)|0)+Math.imul(k,se)|0,s=s+Math.imul(k,re)|0,o=o+Math.imul(f,ce)|0,n=(n=n+Math.imul(f,de)|0)+Math.imul(y,ce)|0,s=s+Math.imul(y,de)|0,o=o+Math.imul(h,me)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(g,me)|0,s=s+Math.imul(g,ue)|0;var Ae=(d+(o=o+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,ge)|0)+Math.imul(u,he)|0))<<13)|0;d=((s=s+Math.imul(u,ge)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(F,z),n=(n=Math.imul(F,H))+Math.imul(K,z)|0,s=Math.imul(K,H),o=o+Math.imul(P,V)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(B,V)|0,s=s+Math.imul(B,Y)|0,o=o+Math.imul(M,X)|0,n=(n=n+Math.imul(M,O)|0)+Math.imul(D,X)|0,s=s+Math.imul(D,O)|0,o=o+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,ee)|0,o=o+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(S,ae)|0,s=s+Math.imul(S,oe)|0,o=o+Math.imul(x,se)|0,n=(n=n+Math.imul(x,re)|0)+Math.imul(R,se)|0,s=s+Math.imul(R,re)|0,o=o+Math.imul(w,ce)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(k,ce)|0,s=s+Math.imul(k,de)|0,o=o+Math.imul(f,me)|0,n=(n=n+Math.imul(f,ue)|0)+Math.imul(y,me)|0,s=s+Math.imul(y,ue)|0;var Ie=(d+(o=o+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,ge)|0)+Math.imul(g,he)|0))<<13)|0;d=((s=s+Math.imul(g,ge)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,o=Math.imul(F,V),n=(n=Math.imul(F,Y))+Math.imul(K,V)|0,s=Math.imul(K,Y),o=o+Math.imul(P,X)|0,n=(n=n+Math.imul(P,O)|0)+Math.imul(B,X)|0,s=s+Math.imul(B,O)|0,o=o+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(D,Q)|0,s=s+Math.imul(D,ee)|0,o=o+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,oe)|0)+Math.imul(C,ae)|0,s=s+Math.imul(C,oe)|0,o=o+Math.imul(I,se)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(S,se)|0,s=s+Math.imul(S,re)|0,o=o+Math.imul(x,ce)|0,n=(n=n+Math.imul(x,de)|0)+Math.imul(R,ce)|0,s=s+Math.imul(R,de)|0,o=o+Math.imul(w,me)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(k,me)|0,s=s+Math.imul(k,ue)|0;var Se=(d+(o=o+Math.imul(f,he)|0)|0)+((8191&(n=(n=n+Math.imul(f,ge)|0)+Math.imul(y,he)|0))<<13)|0;d=((s=s+Math.imul(y,ge)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,o=Math.imul(F,X),n=(n=Math.imul(F,O))+Math.imul(K,X)|0,s=Math.imul(K,O),o=o+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(B,Q)|0,s=s+Math.imul(B,ee)|0,o=o+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(D,ae)|0,s=s+Math.imul(D,oe)|0,o=o+Math.imul(T,se)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(C,se)|0,s=s+Math.imul(C,re)|0,o=o+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(S,ce)|0,s=s+Math.imul(S,de)|0,o=o+Math.imul(x,me)|0,n=(n=n+Math.imul(x,ue)|0)+Math.imul(R,me)|0,s=s+Math.imul(R,ue)|0;var Ee=(d+(o=o+Math.imul(w,he)|0)|0)+((8191&(n=(n=n+Math.imul(w,ge)|0)+Math.imul(k,he)|0))<<13)|0;d=((s=s+Math.imul(k,ge)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(F,Q),n=(n=Math.imul(F,ee))+Math.imul(K,Q)|0,s=Math.imul(K,ee),o=o+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(B,ae)|0,s=s+Math.imul(B,oe)|0,o=o+Math.imul(M,se)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(D,se)|0,s=s+Math.imul(D,re)|0,o=o+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,de)|0)+Math.imul(C,ce)|0,s=s+Math.imul(C,de)|0,o=o+Math.imul(I,me)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(S,me)|0,s=s+Math.imul(S,ue)|0;var Te=(d+(o=o+Math.imul(x,he)|0)|0)+((8191&(n=(n=n+Math.imul(x,ge)|0)+Math.imul(R,he)|0))<<13)|0;d=((s=s+Math.imul(R,ge)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,o=Math.imul(F,ae),n=(n=Math.imul(F,oe))+Math.imul(K,ae)|0,s=Math.imul(K,oe),o=o+Math.imul(P,se)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(B,se)|0,s=s+Math.imul(B,re)|0,o=o+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,de)|0)+Math.imul(D,ce)|0,s=s+Math.imul(D,de)|0,o=o+Math.imul(T,me)|0,n=(n=n+Math.imul(T,ue)|0)+Math.imul(C,me)|0,s=s+Math.imul(C,ue)|0;var Ce=(d+(o=o+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,ge)|0)+Math.imul(S,he)|0))<<13)|0;d=((s=s+Math.imul(S,ge)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(F,se),n=(n=Math.imul(F,re))+Math.imul(K,se)|0,s=Math.imul(K,re),o=o+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(B,ce)|0,s=s+Math.imul(B,de)|0,o=o+Math.imul(M,me)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(D,me)|0,s=s+Math.imul(D,ue)|0;var Ue=(d+(o=o+Math.imul(T,he)|0)|0)+((8191&(n=(n=n+Math.imul(T,ge)|0)+Math.imul(C,he)|0))<<13)|0;d=((s=s+Math.imul(C,ge)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,o=Math.imul(F,ce),n=(n=Math.imul(F,de))+Math.imul(K,ce)|0,s=Math.imul(K,de),o=o+Math.imul(P,me)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(B,me)|0,s=s+Math.imul(B,ue)|0;var Me=(d+(o=o+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,ge)|0)+Math.imul(D,he)|0))<<13)|0;d=((s=s+Math.imul(D,ge)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,o=Math.imul(F,me),n=(n=Math.imul(F,ue))+Math.imul(K,me)|0,s=Math.imul(K,ue);var De=(d+(o=o+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,ge)|0)+Math.imul(B,he)|0))<<13)|0;d=((s=s+Math.imul(B,ge)|0)+(n>>>13)|0)+(De>>>26)|0,De&=67108863;var Ne=(d+(o=Math.imul(F,he))|0)+((8191&(n=(n=Math.imul(F,ge))+Math.imul(K,he)|0))<<13)|0;return d=((s=Math.imul(K,ge))+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=be,c[1]=fe,c[2]=ye,c[3]=$e,c[4]=we,c[5]=ke,c[6]=ve,c[7]=xe,c[8]=Re,c[9]=Ae,c[10]=Ie,c[11]=Se,c[12]=Ee,c[13]=Te,c[14]=Ce,c[15]=Ue,c[16]=Me,c[17]=De,c[18]=Ne,0!==d&&(c[19]=d,a.length++),a};function h(e,t,a){return(new g).mulp(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=u),n.prototype.mulTo=function(e,t){var a,o=this.length+e.length;return a=10===this.length&&10===e.length?p(this,e,t):o<63?u(this,e,t):o<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var o=0,n=0,s=0;s>>26)|0)>>>26,r&=67108863}a.words[s]=i,o=r,r=n}return 0!==o?a.words[s]=o:a.length--,a.strip()}(this,e,t):h(this,e,t),a},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=n.prototype._countBits(e)-1,o=0;o>=1;return o},g.prototype.permute=function(e,t,a,o,n,s){for(var r=0;r>>=1)n++;return 1<>>=13,o[2*r+1]=8191&s,s>>>=13;for(r=2*t;r>=26,t+=n/67108864|0,t+=s>>>26,this.words[o]=67108863&s}return 0!==t&&(this.words[o]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new n(1);for(var a=this,o=0;o=0);var t,o=e%26,n=(e-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var r=0;for(t=0;t>>26-o}r&&(this.words[t]=r,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var s=e%26,r=Math.min((e-s)/26,this.length),i=67108863^67108863>>>s<r)for(this.length-=r,d=0;d=0&&(0!==l||d>=n);d--){var m=0|this.words[d];this.words[d]=l<<26-s|m>>>s,l=m&i}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,o){return a(0===this.negative),this.iushrn(e,t,o)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26,n=1<=0);var t=e%26,o=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==t&&o++,this.length=Math.min(o,this.length),0!==t){var n=67108863^67108863>>>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},n.prototype.isubn=function(e){if(a("number"==typeof e),a(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>26)-(c/67108864|0),this.words[n+o]=67108863&s}for(;n>26,this.words[n+o]=67108863&s;if(0===i)return this.strip();for(a(-1===i),i=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var a=(this.length,e.length),o=this.clone(),s=e,r=0|s.words[s.length-1];0!==(a=26-this._countBits(r))&&(s=s.ushln(a),o.iushln(a),r=0|s.words[s.length-1]);var i,c=o.length-s.length;if("mod"!==t){(i=new n(null)).length=c+1,i.words=new Array(i.length);for(var d=0;d=0;m--){var u=67108864*(0|o.words[s.length+m])+(0|o.words[s.length+m-1]);for(u=Math.min(u/r|0,67108863),o._ishlnsubmul(s,u,m);0!==o.negative;)u--,o.negative=0,o._ishlnsubmul(s,1,m),o.isZero()||(o.negative^=1);i&&(i.words[m]=u)}return i&&i.strip(),o.strip(),"div"!==t&&0!==a&&o.iushrn(a),{div:i||null,mod:o}},n.prototype.divmod=function(e,t,o){return a(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(i=this.neg().divmod(e,t),"mod"!==t&&(s=i.div.neg()),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.iadd(e)),{div:s,mod:r}):0===this.negative&&0!==e.negative?(i=this.divmod(e.neg(),t),"mod"!==t&&(s=i.div.neg()),{div:s,mod:i.mod}):0!=(this.negative&e.negative)?(i=this.neg().divmod(e.neg(),t),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.isub(e)),{div:i.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var s,r,i},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),n=e.andln(1),s=a.cmp(o);return s<0||1===n&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){a(e<=67108863);for(var t=67108864%e,o=0,n=this.length-1;n>=0;n--)o=(t*o+(0|this.words[n]))%e;return o},n.prototype.idivn=function(e){a(e<=67108863);for(var t=0,o=this.length-1;o>=0;o--){var n=(0|this.words[o])+67108864*t;this.words[o]=n/e|0,t=n%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s=new n(1),r=new n(0),i=new n(0),c=new n(1),d=0;t.isEven()&&o.isEven();)t.iushrn(1),o.iushrn(1),++d;for(var l=o.clone(),m=t.clone();!t.isZero();){for(var u=0,p=1;0==(t.words[0]&p)&&u<26;++u,p<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(s.isOdd()||r.isOdd())&&(s.iadd(l),r.isub(m)),s.iushrn(1),r.iushrn(1);for(var h=0,g=1;0==(o.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(o.iushrn(h);h-- >0;)(i.isOdd()||c.isOdd())&&(i.iadd(l),c.isub(m)),i.iushrn(1),c.iushrn(1);t.cmp(o)>=0?(t.isub(o),s.isub(i),r.isub(c)):(o.isub(t),i.isub(s),c.isub(r))}return{a:i,b:c,gcd:o.iushln(d)}},n.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s,r=new n(1),i=new n(0),c=o.clone();t.cmpn(1)>0&&o.cmpn(1)>0;){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)r.isOdd()&&r.iadd(c),r.iushrn(1);for(var m=0,u=1;0==(o.words[0]&u)&&m<26;++m,u<<=1);if(m>0)for(o.iushrn(m);m-- >0;)i.isOdd()&&i.iadd(c),i.iushrn(1);t.cmp(o)>=0?(t.isub(o),r.isub(i)):(o.isub(t),i.isub(r))}return(s=0===t.cmpn(1)?r:i).cmpn(0)<0&&s.iadd(e),s},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var o=0;t.isEven()&&a.isEven();o++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var s=t;t=a,a=s}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(o)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,o=(e-t)/26,n=1<>>26,i&=67108863,this.words[r]=i}return 0!==s&&(this.words[r]=s,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,o=e<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)t=1;else{o&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var o=0|this.words[a],n=0|e.words[a];if(o!==n){on&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new v(e)},n.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function f(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(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)}f.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},f.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},f.prototype.split=function(e,t){e.iushrn(this.n,0,t)},f.prototype.imulK=function(e){return e.imul(this.k)},o(y,f),y.prototype.split=function(e,t){for(var a=4194303,o=Math.min(e.length,9),n=0;n>>22,s=r}s>>>=22,e.words[n-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=o}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new $;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return b[e]=t,t},v.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},v.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var o=this.m.add(new n(1)).iushrn(2);return this.pow(e,o)}for(var s=this.m.subn(1),r=0;!s.isZero()&&0===s.andln(1);)r++,s.iushrn(1);a(!s.isZero());var i=new n(1).toRed(this),c=i.redNeg(),d=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);0!==this.pow(l,d).cmp(c);)l.redIAdd(c);for(var m=this.pow(l,s),u=this.pow(e,s.addn(1).iushrn(1)),p=this.pow(e,s),h=r;0!==p.cmp(i);){for(var g=p,b=0;0!==g.cmp(i);b++)g=g.redSqr();a(b=0;o--){for(var d=t.words[o],l=c-1;l>=0;l--){var m=d>>l&1;s!==a[0]&&(s=this.sqr(s)),0!==m||0!==r?(r<<=1,r|=m,(4===++i||0===o&&0===l)&&(s=this.mul(s,a[r]),i=0,r=0)):i=0}c=26}return s},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new x(e)},o(x,v),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(o).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var a=e.mul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=a.isub(o).iushrn(this.shift),r=s;return s.cmp(this.m)>=0?r=s.isub(this.m):s.cmpn(0)<0&&(r=s.iadd(this.m)),r._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)})),parcelRequire.register("ivGJc",(function(e,t){"use strict";var a=parcelRequire("kj6dp"),o=parcelRequire("aFpir"),n=parcelRequire("943Ft");function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}e.exports.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){const t=this.name;function a(e){this._initNamed(e,t)}return n(a,e),a.prototype._initNamed=function(t,a){e.call(this,t,a)},new a(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(o[e])),this.decoders[e]},s.prototype.decode=function(e,t,a){return this._getDecoder(t).decode(e,a)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(a[e])),this.encoders[e]},s.prototype.encode=function(e,t,a){return this._getEncoder(t).encode(e,a)}})),parcelRequire.register("kj6dp",(function(e,t){"use strict";const a=e.exports;a.der=parcelRequire("v63aJ"),a.pem=parcelRequire("9kZpx")})),parcelRequire.register("v63aJ",(function(e,t){"use strict";var a=parcelRequire("943Ft"),o=parcelRequire("7u9TX").Buffer,n=parcelRequire("7Swj1"),s=parcelRequire("c7cX5");function r(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new i,this.tree._init(e.body)}function i(e){n.call(this,"der",e)}function c(e){return e<10?"0"+e:e}e.exports=r,r.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},a(i,n),i.prototype._encodeComposite=function(e,t,a,n){const r=function(e,t,a,o){let n;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))n=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return o.error("Unknown tag: "+e);n=e}if(n>=31)return o.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=s.tagClassByName[a||"universal"]<<6,n}(e,t,a,this.reporter);if(n.length<128){const e=o.alloc(2);return e[0]=r,e[1]=n.length,this._createEncoderBuffer([e,n])}let i=1;for(let e=n.length;e>=256;e>>=8)i++;const c=o.alloc(2+i);c[0]=r,c[1]=128|i;for(let e=1+i,t=n.length;t>0;e--,t>>=8)c[e]=255&t;return this._createEncoderBuffer([c,n])},i.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=o.alloc(2*e.length);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let t=0;t=128;a>>=7)n++}const s=o.alloc(n);let r=s.length-1;for(let t=e.length-1;t>=0;t--){let a=e[t];for(s[r--]=127&a;(a>>=7)>0;)s[r--]=128|127&a}return this._createEncoderBuffer(s)},i.prototype._encodeTime=function(e,t){let a;const o=new Date(e);return"gentime"===t?a=[c(o.getUTCFullYear()),c(o.getUTCMonth()+1),c(o.getUTCDate()),c(o.getUTCHours()),c(o.getUTCMinutes()),c(o.getUTCSeconds()),"Z"].join(""):"utctime"===t?a=[c(o.getUTCFullYear()%100),c(o.getUTCMonth()+1),c(o.getUTCDate()),c(o.getUTCHours()),c(o.getUTCMinutes()),c(o.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(a,"octstr")},i.prototype._encodeNull=function(){return this._createEncoderBuffer("")},i.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!o.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=o.from(t)}if(o.isBuffer(e)){let t=e.length;0===e.length&&t++;const a=o.alloc(t);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let a=1;for(let t=e;t>=256;t>>=8)a++;const n=new Array(a);for(let t=n.length-1;t>=0;t--)n[t]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(o.from(n))},i.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},i.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},i.prototype._skipDefault=function(e,t,a){const o=this._baseState;let n;if(null===o.default)return!1;const s=e.join();if(void 0===o.defaultBuffer&&(o.defaultBuffer=this._encodeValue(o.default,t,a).join()),s.length!==o.defaultBuffer.length)return!1;for(n=0;n=2147483648)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=s(e);return t&&0!==t.length?"string"==typeof a?o.fill(t,a):o.fill(t):o.fill(0),o}),!r.kStringMaxLength)try{r.kStringMaxLength=o.binding("buffer").kStringMaxLength}catch(e){}r.constants||(r.constants={MAX_LENGTH:r.kMaxLength},r.kStringMaxLength&&(r.constants.MAX_STRING_LENGTH=r.kStringMaxLength)),e.exports=r})),parcelRequire.register("7Swj1",(function(e,t){"use strict";var a=parcelRequire("7lBNj").Reporter,o=parcelRequire("cwYbj").EncoderBuffer,n=parcelRequire("cwYbj").DecoderBuffer,s=parcelRequire("kug9N");const r=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],i=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(r);function c(e,t,a){const o={};this._baseState=o,o.name=a,o.enc=e,o.parent=t||null,o.children=null,o.tag=null,o.args=null,o.reverseArgs=null,o.choice=null,o.optional=!1,o.any=!1,o.obj=!1,o.use=null,o.useDecoder=null,o.key=null,o.default=null,o.explicit=null,o.implicit=null,o.contains=null,o.parent||(o.children=[],this._wrap())}e.exports=c;const d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};d.forEach((function(a){t[a]=e[a]}));const a=new this.constructor(t.parent);return a._baseState=t,a},c.prototype._wrap=function(){const e=this._baseState;i.forEach((function(t){this[t]=function(){const a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}}),this)},c.prototype._init=function(e){const t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,a=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==a.length&&(s(null===t.children),t.children=a,a.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(a){a==(0|a)&&(a|=0);const o=e[a];t[o]=a})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),r.forEach((function(e){c.prototype[e]=function(){const t=this._baseState,a=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(a),this}})),c.prototype.use=function(e){s(e);const t=this._baseState;return s(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return s(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){const t=this._baseState;return s(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const a=this._baseState;if(null===a.parent)return e.wrapResult(a.children[0]._decode(e,t));let o,s=a.default,r=!0,i=null;if(null!==a.key&&(i=e.enterKey(a.key)),a.optional){let o=null;if(null!==a.explicit?o=a.explicit:null!==a.implicit?o=a.implicit:null!==a.tag&&(o=a.tag),null!==o||a.any){if(r=this._peekTag(e,o,a.any),e.isError(r))return r}else{const o=e.save();try{null===a.choice?this._decodeGeneric(a.tag,e,t):this._decodeChoice(e,t),r=!0}catch(e){r=!1}e.restore(o)}}if(a.obj&&r&&(o=e.enterObject()),r){if(null!==a.explicit){const t=this._decodeTag(e,a.explicit);if(e.isError(t))return t;e=t}const o=e.offset;if(null===a.use&&null===a.choice){let t;a.any&&(t=e.save());const o=this._decodeTag(e,null!==a.implicit?a.implicit:a.tag,a.any);if(e.isError(o))return o;a.any?s=e.raw(t):e=o}if(t&&t.track&&null!==a.tag&&t.track(e.path(),o,e.length,"tagged"),t&&t.track&&null!==a.tag&&t.track(e.path(),e.offset,e.length,"content"),a.any||(s=null===a.choice?this._decodeGeneric(a.tag,e,t):this._decodeChoice(e,t)),e.isError(s))return s;if(a.any||null!==a.choice||null===a.children||a.children.forEach((function(a){a._decode(e,t)})),a.contains&&("octstr"===a.tag||"bitstr"===a.tag)){const o=new n(s);s=this._getUse(a.contains,e._reporterState.obj)._decode(o,t)}}return a.obj&&r&&(s=e.leaveObject(o)),null===a.key||null===s&&!0!==r?null!==i&&e.exitKey(i):e.leaveKey(i,a.key,s),s},c.prototype._decodeGeneric=function(e,t,a){const o=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,o.args[0],a):/str$/.test(e)?this._decodeStr(t,e,a):"objid"===e&&o.args?this._decodeObjid(t,o.args[0],o.args[1],a):"objid"===e?this._decodeObjid(t,null,null,a):"gentime"===e||"utctime"===e?this._decodeTime(t,e,a):"null_"===e?this._decodeNull(t,a):"bool"===e?this._decodeBool(t,a):"objDesc"===e?this._decodeStr(t,e,a):"int"===e||"enum"===e?this._decodeInt(t,o.args&&o.args[0],a):null!==o.use?this._getUse(o.use,t._reporterState.obj)._decode(t,a):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const a=this._baseState;return a.useDecoder=this._use(e,t),s(null===a.useDecoder._baseState.parent),a.useDecoder=a.useDecoder._baseState.children[0],a.implicit!==a.useDecoder._baseState.implicit&&(a.useDecoder=a.useDecoder.clone(),a.useDecoder._baseState.implicit=a.implicit),a.useDecoder},c.prototype._decodeChoice=function(e,t){const a=this._baseState;let o=null,n=!1;return Object.keys(a.choice).some((function(s){const r=e.save(),i=a.choice[s];try{const a=i._decode(e,t);if(e.isError(a))return!1;o={type:s,value:a},n=!0}catch(t){return e.restore(r),!1}return!0}),this),n?o:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},c.prototype._encode=function(e,t,a){const o=this._baseState;if(null!==o.default&&o.default===e)return;const n=this._encodeValue(e,t,a);return void 0===n||this._skipDefault(n,t,a)?void 0:n},c.prototype._encodeValue=function(e,t,o){const n=this._baseState;if(null===n.parent)return n.children[0]._encode(e,t||new a);let s=null;if(this.reporter=t,n.optional&&void 0===e){if(null===n.default)return;e=n.default}let r=null,i=!1;if(n.any)s=this._createEncoderBuffer(e);else if(n.choice)s=this._encodeChoice(e,t);else if(n.contains)r=this._getUse(n.contains,o)._encode(e,t),i=!0;else if(n.children)r=n.children.map((function(a){if("null_"===a._baseState.tag)return a._encode(null,t,e);if(null===a._baseState.key)return t.error("Child should have a key");const o=t.enterKey(a._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const n=a._encode(e[a._baseState.key],t,e);return t.leaveKey(o),n}),this).filter((function(e){return e})),r=this._createEncoderBuffer(r);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return t.error("Too many args for : "+n.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const a=this.clone();a._baseState.implicit=null,r=this._createEncoderBuffer(e.map((function(a){const o=this._baseState;return this._getUse(o.args[0],e)._encode(a,t)}),a))}else null!==n.use?s=this._getUse(n.use,o)._encode(e,t):(r=this._encodePrimitive(n.tag,e),i=!0);if(!n.any&&null===n.choice){const e=null!==n.implicit?n.implicit:n.tag,a=null===n.implicit?"universal":"context";null===e?null===n.use&&t.error("Tag could be omitted only for .use()"):null===n.use&&(s=this._encodeComposite(e,i,a,r))}return null!==n.explicit&&(s=this._encodeComposite(n.explicit,!1,"context",s)),s},c.prototype._encodeChoice=function(e,t){const a=this._baseState,o=a.choice[e.type];return o||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(a.choice))),o._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const a=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&a.args)return this._encodeObjid(t,a.reverseArgs[0],a.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,a.args&&a.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}})),parcelRequire.register("7lBNj",(function(e,t){var a;$parcel$export(e.exports,"Reporter",(()=>a),(e=>a=e));var o=parcelRequire("943Ft");function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function s(e,t){this.path=e,this.rethrow(t)}a=n,n.prototype.isError=function(e){return e instanceof s},n.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,a){const o=this._reporterState;this.exitKey(e),null!==o.obj&&(o.obj[t]=a)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){const t=this._reporterState,a=t.obj;return t.obj=e,a},n.prototype.error=function(e){let t;const a=this._reporterState,o=e instanceof s;if(t=o?e:new s(a.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!a.options.partial)throw t;return o||a.errors.push(t),t},n.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},o(s,Error),s.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}})),parcelRequire.register("cwYbj",(function(e,t){var a,o;$parcel$export(e.exports,"DecoderBuffer",(()=>a),(e=>a=e)),$parcel$export(e.exports,"EncoderBuffer",(()=>o),(e=>o=e));var n=parcelRequire("943Ft"),s=parcelRequire("7lBNj").Reporter,r=parcelRequire("7u9TX").Buffer;function i(e,t){s.call(this,t),r.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function c(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return c.isEncoderBuffer(e)||(e=new c(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=r.byteLength(e);else{if(!r.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(i,s),a=i,i.isDecoderBuffer=function(e){if(e instanceof i)return!0;return"object"==typeof e&&r.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},i.prototype.save=function(){return{offset:this.offset,reporter:s.prototype.save.call(this)}},i.prototype.restore=function(e){const t=new i(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,s.prototype.restore.call(this,e.reporter),t},i.prototype.isEmpty=function(){return this.offset===this.length},i.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},i.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const a=new i(this.base);return a._reporterState=this._reporterState,a.offset=this.offset,a.length=this.offset+e,this.offset+=e,a},i.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},o=c,c.isEncoderBuffer=function(e){if(e instanceof c)return!0;return"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},c.prototype.join=function(e,t){return e||(e=r.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(a){a.join(e,t),t+=a.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):r.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}})),parcelRequire.register("c7cX5",(function(e,t){var a,o,n,s;function r(e){const t={};return Object.keys(e).forEach((function(a){(0|a)==a&&(a|=0);const o=e[a];t[o]=a})),t}$parcel$export(e.exports,"tagClass",(()=>a),(e=>a=e)),$parcel$export(e.exports,"tagClassByName",(()=>o),(e=>o=e)),$parcel$export(e.exports,"tag",(()=>n),(e=>n=e)),$parcel$export(e.exports,"tagByName",(()=>s),(e=>s=e)),o=r(a={0:"universal",1:"application",2:"context",3:"private"}),s=r(n={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"})})),parcelRequire.register("9kZpx",(function(e,t){"use strict";var a=parcelRequire("943Ft"),o=parcelRequire("v63aJ");function n(e){o.call(this,e),this.enc="pem"}a(n,o),e.exports=n,n.prototype.encode=function(e,t){const a=o.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"];for(let e=0;e>6],n=0==(32&a);if(31==(31&a)){let o=a;for(a=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;a<<=7,a|=127&o}}else a&=31;return{cls:o,primitive:n,tag:a,tagStr:r.tag[a]}}function l(e,t,a){let o=e.readUInt8(a);if(e.isError(o))return o;if(!t&&128===o)return null;if(0==(128&o))return o;const n=127&o;if(n>4)return e.error("length octect is too long");o=0;for(let t=0;t=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function i(e,t,a){var o=r(e,a);return a-1>=t&&(o|=r(e,a-1)<<4),o}function c(e,t,a,o){for(var n=0,s=Math.min(e.length,a),r=t;r=49?i-49+10:i>=17?i-17+10:i}return n}n.isBN=function(e){return e instanceof n||null!==e&&"object"==typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,o){if("number"==typeof e)return this._initNumber(e,t,o);if("object"==typeof e)return this._initArray(e,t,o);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)r=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[s]|=r<>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);else if("le"===o)for(n=0,s=0;n>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);return this.strip()},n.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var o=0;o=t;o-=2)n=i(e,t,o)<=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;else for(o=(e.length-t)%2==0?t+1:t;o=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;this.strip()},n.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var o=0,n=1;n<=67108863;n*=t)o++;o--,n=n/t|0;for(var s=e.length-a,r=s%o,i=Math.min(s,s-r)+a,d=0,l=a;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?""};var 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"],l=[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],m=[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 u(e,t,a){a.negative=t.negative^e.negative;var o=e.length+t.length|0;a.length=o,o=o-1|0;var n=0|e.words[0],s=0|t.words[0],r=n*s,i=67108863&r,c=r/67108864|0;a.words[0]=i;for(var d=1;d>>26,m=67108863&c,u=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=u;p++){var h=d-p|0;l+=(r=(n=0|e.words[h])*(s=0|t.words[p])+m)/67108864|0,m=67108863&r}a.words[d]=0|m,c=0|l}return 0!==c?a.words[d]=0|c:a.length--,a.strip()}n.prototype.toString=function(e,t){var o;if(t=0|t||1,16===(e=e||10)||"hex"===e){o="";for(var n=0,s=0,r=0;r>>24-n&16777215)||r!==this.length-1?d[6-c.length]+c+o:c+o,(n+=2)>=26&&(n-=26,r--)}for(0!==s&&(o=s.toString(16)+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(e===(0|e)&&e>=2&&e<=36){var u=l[e],p=m[e];o="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(p).toString(e);o=(h=h.idivn(p)).isZero()?g+o:d[u-g.length]+g+o}for(this.isZero()&&(o="0"+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.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&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return a(void 0!==s),this.toArrayLike(s,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,o){var n=this.byteLength(),s=o||Math.max(1,n);a(n<=s,"byte array longer than desired length"),a(s>0,"Requested array length <= 0"),this.strip();var r,i,c="le"===t,d=new e(s),l=this.clone();if(c){for(i=0;!l.isZero();i++)r=l.andln(255),l.iushrn(8),d[i]=r;for(;i=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var o=0;oe.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),o=e%26;this._expand(t),o>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-o),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var o=e/26|0,n=e%26;return this._expand(o+1),this.words[o]=t?this.words[o]|1<e.length?(a=this,o=e):(a=e,o=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;se.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,o,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,o=e):(a=e,o=this);for(var s=0,r=0;r>26,this.words[r]=67108863&t;for(;0!==s&&r>26,this.words[r]=67108863&t;if(0===s&&r>>13,p=0|r[1],h=8191&p,g=p>>>13,b=0|r[2],f=8191&b,y=b>>>13,$=0|r[3],w=8191&$,k=$>>>13,v=0|r[4],x=8191&v,R=v>>>13,A=0|r[5],I=8191&A,S=A>>>13,E=0|r[6],T=8191&E,C=E>>>13,U=0|r[7],M=8191&U,D=U>>>13,N=0|r[8],P=8191&N,B=N>>>13,L=0|r[9],F=8191&L,K=L>>>13,G=0|i[0],j=8191&G,q=G>>>13,W=0|i[1],z=8191&W,H=W>>>13,_=0|i[2],V=8191&_,Y=_>>>13,J=0|i[3],X=8191&J,O=J>>>13,Z=0|i[4],Q=8191&Z,ee=Z>>>13,te=0|i[5],ae=8191&te,oe=te>>>13,ne=0|i[6],se=8191&ne,re=ne>>>13,ie=0|i[7],ce=8191&ie,de=ie>>>13,le=0|i[8],me=8191&le,ue=le>>>13,pe=0|i[9],he=8191&pe,ge=pe>>>13;a.negative=e.negative^t.negative,a.length=19;var be=(d+(o=Math.imul(m,j))|0)+((8191&(n=(n=Math.imul(m,q))+Math.imul(u,j)|0))<<13)|0;d=((s=Math.imul(u,q))+(n>>>13)|0)+(be>>>26)|0,be&=67108863,o=Math.imul(h,j),n=(n=Math.imul(h,q))+Math.imul(g,j)|0,s=Math.imul(g,q);var fe=(d+(o=o+Math.imul(m,z)|0)|0)+((8191&(n=(n=n+Math.imul(m,H)|0)+Math.imul(u,z)|0))<<13)|0;d=((s=s+Math.imul(u,H)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,o=Math.imul(f,j),n=(n=Math.imul(f,q))+Math.imul(y,j)|0,s=Math.imul(y,q),o=o+Math.imul(h,z)|0,n=(n=n+Math.imul(h,H)|0)+Math.imul(g,z)|0,s=s+Math.imul(g,H)|0;var ye=(d+(o=o+Math.imul(m,V)|0)|0)+((8191&(n=(n=n+Math.imul(m,Y)|0)+Math.imul(u,V)|0))<<13)|0;d=((s=s+Math.imul(u,Y)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(w,j),n=(n=Math.imul(w,q))+Math.imul(k,j)|0,s=Math.imul(k,q),o=o+Math.imul(f,z)|0,n=(n=n+Math.imul(f,H)|0)+Math.imul(y,z)|0,s=s+Math.imul(y,H)|0,o=o+Math.imul(h,V)|0,n=(n=n+Math.imul(h,Y)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,Y)|0;var $e=(d+(o=o+Math.imul(m,X)|0)|0)+((8191&(n=(n=n+Math.imul(m,O)|0)+Math.imul(u,X)|0))<<13)|0;d=((s=s+Math.imul(u,O)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,o=Math.imul(x,j),n=(n=Math.imul(x,q))+Math.imul(R,j)|0,s=Math.imul(R,q),o=o+Math.imul(w,z)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(k,z)|0,s=s+Math.imul(k,H)|0,o=o+Math.imul(f,V)|0,n=(n=n+Math.imul(f,Y)|0)+Math.imul(y,V)|0,s=s+Math.imul(y,Y)|0,o=o+Math.imul(h,X)|0,n=(n=n+Math.imul(h,O)|0)+Math.imul(g,X)|0,s=s+Math.imul(g,O)|0;var we=(d+(o=o+Math.imul(m,Q)|0)|0)+((8191&(n=(n=n+Math.imul(m,ee)|0)+Math.imul(u,Q)|0))<<13)|0;d=((s=s+Math.imul(u,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(I,j),n=(n=Math.imul(I,q))+Math.imul(S,j)|0,s=Math.imul(S,q),o=o+Math.imul(x,z)|0,n=(n=n+Math.imul(x,H)|0)+Math.imul(R,z)|0,s=s+Math.imul(R,H)|0,o=o+Math.imul(w,V)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Y)|0,o=o+Math.imul(f,X)|0,n=(n=n+Math.imul(f,O)|0)+Math.imul(y,X)|0,s=s+Math.imul(y,O)|0,o=o+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0;var ke=(d+(o=o+Math.imul(m,ae)|0)|0)+((8191&(n=(n=n+Math.imul(m,oe)|0)+Math.imul(u,ae)|0))<<13)|0;d=((s=s+Math.imul(u,oe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(T,j),n=(n=Math.imul(T,q))+Math.imul(C,j)|0,s=Math.imul(C,q),o=o+Math.imul(I,z)|0,n=(n=n+Math.imul(I,H)|0)+Math.imul(S,z)|0,s=s+Math.imul(S,H)|0,o=o+Math.imul(x,V)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(R,V)|0,s=s+Math.imul(R,Y)|0,o=o+Math.imul(w,X)|0,n=(n=n+Math.imul(w,O)|0)+Math.imul(k,X)|0,s=s+Math.imul(k,O)|0,o=o+Math.imul(f,Q)|0,n=(n=n+Math.imul(f,ee)|0)+Math.imul(y,Q)|0,s=s+Math.imul(y,ee)|0,o=o+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(g,ae)|0,s=s+Math.imul(g,oe)|0;var ve=(d+(o=o+Math.imul(m,se)|0)|0)+((8191&(n=(n=n+Math.imul(m,re)|0)+Math.imul(u,se)|0))<<13)|0;d=((s=s+Math.imul(u,re)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(M,j),n=(n=Math.imul(M,q))+Math.imul(D,j)|0,s=Math.imul(D,q),o=o+Math.imul(T,z)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(C,z)|0,s=s+Math.imul(C,H)|0,o=o+Math.imul(I,V)|0,n=(n=n+Math.imul(I,Y)|0)+Math.imul(S,V)|0,s=s+Math.imul(S,Y)|0,o=o+Math.imul(x,X)|0,n=(n=n+Math.imul(x,O)|0)+Math.imul(R,X)|0,s=s+Math.imul(R,O)|0,o=o+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,o=o+Math.imul(f,ae)|0,n=(n=n+Math.imul(f,oe)|0)+Math.imul(y,ae)|0,s=s+Math.imul(y,oe)|0,o=o+Math.imul(h,se)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(g,se)|0,s=s+Math.imul(g,re)|0;var xe=(d+(o=o+Math.imul(m,ce)|0)|0)+((8191&(n=(n=n+Math.imul(m,de)|0)+Math.imul(u,ce)|0))<<13)|0;d=((s=s+Math.imul(u,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,o=Math.imul(P,j),n=(n=Math.imul(P,q))+Math.imul(B,j)|0,s=Math.imul(B,q),o=o+Math.imul(M,z)|0,n=(n=n+Math.imul(M,H)|0)+Math.imul(D,z)|0,s=s+Math.imul(D,H)|0,o=o+Math.imul(T,V)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(C,V)|0,s=s+Math.imul(C,Y)|0,o=o+Math.imul(I,X)|0,n=(n=n+Math.imul(I,O)|0)+Math.imul(S,X)|0,s=s+Math.imul(S,O)|0,o=o+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(R,Q)|0,s=s+Math.imul(R,ee)|0,o=o+Math.imul(w,ae)|0,n=(n=n+Math.imul(w,oe)|0)+Math.imul(k,ae)|0,s=s+Math.imul(k,oe)|0,o=o+Math.imul(f,se)|0,n=(n=n+Math.imul(f,re)|0)+Math.imul(y,se)|0,s=s+Math.imul(y,re)|0,o=o+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(g,ce)|0,s=s+Math.imul(g,de)|0;var Re=(d+(o=o+Math.imul(m,me)|0)|0)+((8191&(n=(n=n+Math.imul(m,ue)|0)+Math.imul(u,me)|0))<<13)|0;d=((s=s+Math.imul(u,ue)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(F,j),n=(n=Math.imul(F,q))+Math.imul(K,j)|0,s=Math.imul(K,q),o=o+Math.imul(P,z)|0,n=(n=n+Math.imul(P,H)|0)+Math.imul(B,z)|0,s=s+Math.imul(B,H)|0,o=o+Math.imul(M,V)|0,n=(n=n+Math.imul(M,Y)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Y)|0,o=o+Math.imul(T,X)|0,n=(n=n+Math.imul(T,O)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,O)|0,o=o+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(S,Q)|0,s=s+Math.imul(S,ee)|0,o=o+Math.imul(x,ae)|0,n=(n=n+Math.imul(x,oe)|0)+Math.imul(R,ae)|0,s=s+Math.imul(R,oe)|0,o=o+Math.imul(w,se)|0,n=(n=n+Math.imul(w,re)|0)+Math.imul(k,se)|0,s=s+Math.imul(k,re)|0,o=o+Math.imul(f,ce)|0,n=(n=n+Math.imul(f,de)|0)+Math.imul(y,ce)|0,s=s+Math.imul(y,de)|0,o=o+Math.imul(h,me)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(g,me)|0,s=s+Math.imul(g,ue)|0;var Ae=(d+(o=o+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,ge)|0)+Math.imul(u,he)|0))<<13)|0;d=((s=s+Math.imul(u,ge)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(F,z),n=(n=Math.imul(F,H))+Math.imul(K,z)|0,s=Math.imul(K,H),o=o+Math.imul(P,V)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(B,V)|0,s=s+Math.imul(B,Y)|0,o=o+Math.imul(M,X)|0,n=(n=n+Math.imul(M,O)|0)+Math.imul(D,X)|0,s=s+Math.imul(D,O)|0,o=o+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,ee)|0,o=o+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(S,ae)|0,s=s+Math.imul(S,oe)|0,o=o+Math.imul(x,se)|0,n=(n=n+Math.imul(x,re)|0)+Math.imul(R,se)|0,s=s+Math.imul(R,re)|0,o=o+Math.imul(w,ce)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(k,ce)|0,s=s+Math.imul(k,de)|0,o=o+Math.imul(f,me)|0,n=(n=n+Math.imul(f,ue)|0)+Math.imul(y,me)|0,s=s+Math.imul(y,ue)|0;var Ie=(d+(o=o+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,ge)|0)+Math.imul(g,he)|0))<<13)|0;d=((s=s+Math.imul(g,ge)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,o=Math.imul(F,V),n=(n=Math.imul(F,Y))+Math.imul(K,V)|0,s=Math.imul(K,Y),o=o+Math.imul(P,X)|0,n=(n=n+Math.imul(P,O)|0)+Math.imul(B,X)|0,s=s+Math.imul(B,O)|0,o=o+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(D,Q)|0,s=s+Math.imul(D,ee)|0,o=o+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,oe)|0)+Math.imul(C,ae)|0,s=s+Math.imul(C,oe)|0,o=o+Math.imul(I,se)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(S,se)|0,s=s+Math.imul(S,re)|0,o=o+Math.imul(x,ce)|0,n=(n=n+Math.imul(x,de)|0)+Math.imul(R,ce)|0,s=s+Math.imul(R,de)|0,o=o+Math.imul(w,me)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(k,me)|0,s=s+Math.imul(k,ue)|0;var Se=(d+(o=o+Math.imul(f,he)|0)|0)+((8191&(n=(n=n+Math.imul(f,ge)|0)+Math.imul(y,he)|0))<<13)|0;d=((s=s+Math.imul(y,ge)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,o=Math.imul(F,X),n=(n=Math.imul(F,O))+Math.imul(K,X)|0,s=Math.imul(K,O),o=o+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(B,Q)|0,s=s+Math.imul(B,ee)|0,o=o+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(D,ae)|0,s=s+Math.imul(D,oe)|0,o=o+Math.imul(T,se)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(C,se)|0,s=s+Math.imul(C,re)|0,o=o+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(S,ce)|0,s=s+Math.imul(S,de)|0,o=o+Math.imul(x,me)|0,n=(n=n+Math.imul(x,ue)|0)+Math.imul(R,me)|0,s=s+Math.imul(R,ue)|0;var Ee=(d+(o=o+Math.imul(w,he)|0)|0)+((8191&(n=(n=n+Math.imul(w,ge)|0)+Math.imul(k,he)|0))<<13)|0;d=((s=s+Math.imul(k,ge)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(F,Q),n=(n=Math.imul(F,ee))+Math.imul(K,Q)|0,s=Math.imul(K,ee),o=o+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(B,ae)|0,s=s+Math.imul(B,oe)|0,o=o+Math.imul(M,se)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(D,se)|0,s=s+Math.imul(D,re)|0,o=o+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,de)|0)+Math.imul(C,ce)|0,s=s+Math.imul(C,de)|0,o=o+Math.imul(I,me)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(S,me)|0,s=s+Math.imul(S,ue)|0;var Te=(d+(o=o+Math.imul(x,he)|0)|0)+((8191&(n=(n=n+Math.imul(x,ge)|0)+Math.imul(R,he)|0))<<13)|0;d=((s=s+Math.imul(R,ge)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,o=Math.imul(F,ae),n=(n=Math.imul(F,oe))+Math.imul(K,ae)|0,s=Math.imul(K,oe),o=o+Math.imul(P,se)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(B,se)|0,s=s+Math.imul(B,re)|0,o=o+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,de)|0)+Math.imul(D,ce)|0,s=s+Math.imul(D,de)|0,o=o+Math.imul(T,me)|0,n=(n=n+Math.imul(T,ue)|0)+Math.imul(C,me)|0,s=s+Math.imul(C,ue)|0;var Ce=(d+(o=o+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,ge)|0)+Math.imul(S,he)|0))<<13)|0;d=((s=s+Math.imul(S,ge)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(F,se),n=(n=Math.imul(F,re))+Math.imul(K,se)|0,s=Math.imul(K,re),o=o+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(B,ce)|0,s=s+Math.imul(B,de)|0,o=o+Math.imul(M,me)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(D,me)|0,s=s+Math.imul(D,ue)|0;var Ue=(d+(o=o+Math.imul(T,he)|0)|0)+((8191&(n=(n=n+Math.imul(T,ge)|0)+Math.imul(C,he)|0))<<13)|0;d=((s=s+Math.imul(C,ge)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,o=Math.imul(F,ce),n=(n=Math.imul(F,de))+Math.imul(K,ce)|0,s=Math.imul(K,de),o=o+Math.imul(P,me)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(B,me)|0,s=s+Math.imul(B,ue)|0;var Me=(d+(o=o+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,ge)|0)+Math.imul(D,he)|0))<<13)|0;d=((s=s+Math.imul(D,ge)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,o=Math.imul(F,me),n=(n=Math.imul(F,ue))+Math.imul(K,me)|0,s=Math.imul(K,ue);var De=(d+(o=o+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,ge)|0)+Math.imul(B,he)|0))<<13)|0;d=((s=s+Math.imul(B,ge)|0)+(n>>>13)|0)+(De>>>26)|0,De&=67108863;var Ne=(d+(o=Math.imul(F,he))|0)+((8191&(n=(n=Math.imul(F,ge))+Math.imul(K,he)|0))<<13)|0;return d=((s=Math.imul(K,ge))+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=be,c[1]=fe,c[2]=ye,c[3]=$e,c[4]=we,c[5]=ke,c[6]=ve,c[7]=xe,c[8]=Re,c[9]=Ae,c[10]=Ie,c[11]=Se,c[12]=Ee,c[13]=Te,c[14]=Ce,c[15]=Ue,c[16]=Me,c[17]=De,c[18]=Ne,0!==d&&(c[19]=d,a.length++),a};function h(e,t,a){return(new g).mulp(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=u),n.prototype.mulTo=function(e,t){var a,o=this.length+e.length;return a=10===this.length&&10===e.length?p(this,e,t):o<63?u(this,e,t):o<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var o=0,n=0,s=0;s>>26)|0)>>>26,r&=67108863}a.words[s]=i,o=r,r=n}return 0!==o?a.words[s]=o:a.length--,a.strip()}(this,e,t):h(this,e,t),a},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=n.prototype._countBits(e)-1,o=0;o>=1;return o},g.prototype.permute=function(e,t,a,o,n,s){for(var r=0;r>>=1)n++;return 1<>>=13,o[2*r+1]=8191&s,s>>>=13;for(r=2*t;r>=26,t+=n/67108864|0,t+=s>>>26,this.words[o]=67108863&s}return 0!==t&&(this.words[o]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new n(1);for(var a=this,o=0;o=0);var t,o=e%26,n=(e-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var r=0;for(t=0;t>>26-o}r&&(this.words[t]=r,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var s=e%26,r=Math.min((e-s)/26,this.length),i=67108863^67108863>>>s<r)for(this.length-=r,d=0;d=0&&(0!==l||d>=n);d--){var m=0|this.words[d];this.words[d]=l<<26-s|m>>>s,l=m&i}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,o){return a(0===this.negative),this.iushrn(e,t,o)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26,n=1<=0);var t=e%26,o=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==t&&o++,this.length=Math.min(o,this.length),0!==t){var n=67108863^67108863>>>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},n.prototype.isubn=function(e){if(a("number"==typeof e),a(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>26)-(c/67108864|0),this.words[n+o]=67108863&s}for(;n>26,this.words[n+o]=67108863&s;if(0===i)return this.strip();for(a(-1===i),i=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var a=(this.length,e.length),o=this.clone(),s=e,r=0|s.words[s.length-1];0!==(a=26-this._countBits(r))&&(s=s.ushln(a),o.iushln(a),r=0|s.words[s.length-1]);var i,c=o.length-s.length;if("mod"!==t){(i=new n(null)).length=c+1,i.words=new Array(i.length);for(var d=0;d=0;m--){var u=67108864*(0|o.words[s.length+m])+(0|o.words[s.length+m-1]);for(u=Math.min(u/r|0,67108863),o._ishlnsubmul(s,u,m);0!==o.negative;)u--,o.negative=0,o._ishlnsubmul(s,1,m),o.isZero()||(o.negative^=1);i&&(i.words[m]=u)}return i&&i.strip(),o.strip(),"div"!==t&&0!==a&&o.iushrn(a),{div:i||null,mod:o}},n.prototype.divmod=function(e,t,o){return a(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(i=this.neg().divmod(e,t),"mod"!==t&&(s=i.div.neg()),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.iadd(e)),{div:s,mod:r}):0===this.negative&&0!==e.negative?(i=this.divmod(e.neg(),t),"mod"!==t&&(s=i.div.neg()),{div:s,mod:i.mod}):0!=(this.negative&e.negative)?(i=this.neg().divmod(e.neg(),t),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.isub(e)),{div:i.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var s,r,i},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),n=e.andln(1),s=a.cmp(o);return s<0||1===n&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){a(e<=67108863);for(var t=67108864%e,o=0,n=this.length-1;n>=0;n--)o=(t*o+(0|this.words[n]))%e;return o},n.prototype.idivn=function(e){a(e<=67108863);for(var t=0,o=this.length-1;o>=0;o--){var n=(0|this.words[o])+67108864*t;this.words[o]=n/e|0,t=n%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s=new n(1),r=new n(0),i=new n(0),c=new n(1),d=0;t.isEven()&&o.isEven();)t.iushrn(1),o.iushrn(1),++d;for(var l=o.clone(),m=t.clone();!t.isZero();){for(var u=0,p=1;0==(t.words[0]&p)&&u<26;++u,p<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(s.isOdd()||r.isOdd())&&(s.iadd(l),r.isub(m)),s.iushrn(1),r.iushrn(1);for(var h=0,g=1;0==(o.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(o.iushrn(h);h-- >0;)(i.isOdd()||c.isOdd())&&(i.iadd(l),c.isub(m)),i.iushrn(1),c.iushrn(1);t.cmp(o)>=0?(t.isub(o),s.isub(i),r.isub(c)):(o.isub(t),i.isub(s),c.isub(r))}return{a:i,b:c,gcd:o.iushln(d)}},n.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s,r=new n(1),i=new n(0),c=o.clone();t.cmpn(1)>0&&o.cmpn(1)>0;){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)r.isOdd()&&r.iadd(c),r.iushrn(1);for(var m=0,u=1;0==(o.words[0]&u)&&m<26;++m,u<<=1);if(m>0)for(o.iushrn(m);m-- >0;)i.isOdd()&&i.iadd(c),i.iushrn(1);t.cmp(o)>=0?(t.isub(o),r.isub(i)):(o.isub(t),i.isub(r))}return(s=0===t.cmpn(1)?r:i).cmpn(0)<0&&s.iadd(e),s},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var o=0;t.isEven()&&a.isEven();o++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var s=t;t=a,a=s}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(o)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,o=(e-t)/26,n=1<>>26,i&=67108863,this.words[r]=i}return 0!==s&&(this.words[r]=s,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,o=e<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)t=1;else{o&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var o=0|this.words[a],n=0|e.words[a];if(o!==n){on&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new v(e)},n.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function f(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(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)}f.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},f.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},f.prototype.split=function(e,t){e.iushrn(this.n,0,t)},f.prototype.imulK=function(e){return e.imul(this.k)},o(y,f),y.prototype.split=function(e,t){for(var a=4194303,o=Math.min(e.length,9),n=0;n>>22,s=r}s>>>=22,e.words[n-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=o}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new $;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return b[e]=t,t},v.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},v.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var o=this.m.add(new n(1)).iushrn(2);return this.pow(e,o)}for(var s=this.m.subn(1),r=0;!s.isZero()&&0===s.andln(1);)r++,s.iushrn(1);a(!s.isZero());var i=new n(1).toRed(this),c=i.redNeg(),d=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);0!==this.pow(l,d).cmp(c);)l.redIAdd(c);for(var m=this.pow(l,s),u=this.pow(e,s.addn(1).iushrn(1)),p=this.pow(e,s),h=r;0!==p.cmp(i);){for(var g=p,b=0;0!==g.cmp(i);b++)g=g.redSqr();a(b=0;o--){for(var d=t.words[o],l=c-1;l>=0;l--){var m=d>>l&1;s!==a[0]&&(s=this.sqr(s)),0!==m||0!==r?(r<<=1,r|=m,(4===++i||0===o&&0===l)&&(s=this.mul(s,a[r]),i=0,r=0)):i=0}c=26}return s},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new x(e)},o(x,v),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(o).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var a=e.mul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=a.isub(o).iushrn(this.shift),r=s;return s.cmp(this.m)>=0?r=s.isub(this.m):s.cmpn(0)<0&&(r=s.iadd(this.m)),r._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)})),parcelRequire.register("eviVF",(function(e,t){var a=parcelRequire("jDRoS"),o=parcelRequire("gRApq"),n=parcelRequire("dfdoZ"),s=parcelRequire("jgGgQ"),r=parcelRequire("gNtyq"),i=parcelRequire("c6tg2"),c=parcelRequire("9yBLn"),d=parcelRequire("gku5J"),l=parcelRequire("csqZT").Buffer;e.exports=function(e,t,m){var u;u=e.padding?e.padding:m?1:4;var p,h=a(e);if(4===u)p=function(e,t){var a=e.modulus.byteLength(),c=t.length,d=n("sha1").update(l.alloc(0)).digest(),m=d.length,u=2*m;if(c>a-u-2)throw new Error("message too long");var p=l.alloc(a-c-u-2),h=a-m-1,g=o(m),b=r(l.concat([d,p,l.alloc(1,1),t],h),s(g,h)),f=r(g,s(b,m));return new i(l.concat([l.alloc(1),f,b],a))}(h,t);else if(1===u)p=function(e,t,a){var n,s=t.length,r=e.modulus.byteLength();if(s>r-11)throw new Error("message too long");n=a?l.alloc(r-s-3,255):function(e){var t,a=l.allocUnsafe(e),n=0,s=o(2*e),r=0;for(;n=0)throw new Error("data too long for modulus")}return m?d(p,h):c(p,h)}})),parcelRequire.register("jDRoS",(function(e,t){var a=parcelRequire("1KNXc"),o=parcelRequire("d5m2c"),n=parcelRequire("lMB19"),s=parcelRequire("adEfq"),r=parcelRequire("fqgSj"),i=parcelRequire("csqZT").Buffer;function c(e){var t;"object"!=typeof e||i.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=i.from(e));var c,d,l=n(e,t),m=l.tag,u=l.data;switch(m){case"CERTIFICATE":d=a.certificate.decode(u,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d||(d=a.PublicKey.decode(u,"der")),c=d.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case"1.2.840.10040.4.1":return d.algorithm.params.pub_key=a.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params};default:throw new Error("unknown key id "+c)}case"ENCRYPTED PRIVATE KEY":u=function(e,t){var a=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),c=o[e.algorithm.decrypt.cipher.algo.join(".")],d=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,m=parseInt(c.split("-")[1],10)/8,u=r.pbkdf2Sync(t,a,n,m,"sha1"),p=s.createDecipheriv(c,u,d),h=[];return h.push(p.update(l)),h.push(p.final()),i.concat(h)}(u=a.EncryptedPrivateKey.decode(u,"der"),t);case"PRIVATE KEY":switch(c=(d=a.PrivateKey.decode(u,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:a.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d.algorithm.params.priv_key=a.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw new Error("unknown key id "+c)}case"RSA PUBLIC KEY":return a.RSAPublicKey.decode(u,"der");case"RSA PRIVATE KEY":return a.RSAPrivateKey.decode(u,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:a.DSAPrivateKey.decode(u,"der")};case"EC PRIVATE KEY":return{curve:(u=a.ECPrivateKey.decode(u,"der")).parameters.value,privateKey:u.privateKey};default:throw new Error("unknown key type "+m)}}e.exports=c,c.signature=a.signature})),parcelRequire.register("1KNXc",(function(e,t){var a,o,n,s,r,i,c,d,l,m;$parcel$export(e.exports,"certificate",(()=>a),(e=>a=e)),$parcel$export(e.exports,"RSAPrivateKey",(()=>o),(e=>o=e)),$parcel$export(e.exports,"RSAPublicKey",(()=>n),(e=>n=e)),$parcel$export(e.exports,"PublicKey",(()=>s),(e=>s=e)),$parcel$export(e.exports,"PrivateKey",(()=>r),(e=>r=e)),$parcel$export(e.exports,"EncryptedPrivateKey",(()=>i),(e=>i=e)),$parcel$export(e.exports,"DSAPrivateKey",(()=>c),(e=>c=e)),$parcel$export(e.exports,"DSAparam",(()=>d),(e=>d=e)),$parcel$export(e.exports,"ECPrivateKey",(()=>l),(e=>l=e)),$parcel$export(e.exports,"signature",(()=>m),(e=>m=e));var u=parcelRequire("d6AeX");a=parcelRequire("k0b8L");var p=u.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));o=p;var h=u.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));n=h;var g=u.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(b),this.key("subjectPublicKey").bitstr())}));s=g;var b=u.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),f=u.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(b),this.key("subjectPrivateKey").octstr())}));r=f;var y=u.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));i=y;var $=u.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));c=$,d=u.define("DSAparam",(function(){this.int()}));var w=u.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(k),this.key("publicKey").optional().explicit(1).bitstr())}));l=w;var k=u.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));m=u.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))})),parcelRequire.register("d5m2c",(function(e,t){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')})),parcelRequire.register("lMB19",(function(e,t){var a=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=parcelRequire("jPunI"),r=parcelRequire("adEfq"),i=parcelRequire("csqZT").Buffer;e.exports=function(e,t){var c,d=e.toString(),l=d.match(a);if(l){var m="aes"+l[1],u=i.from(l[2],"hex"),p=i.from(l[3].replace(/[\r\n]/g,""),"base64"),h=s(t,u.slice(0,8),parseInt(l[1],10)).key,g=[],b=r.createDecipheriv(m,h,u);g.push(b.update(p)),g.push(b.final()),c=i.concat(g)}else{var f=d.match(n);c=i.from(f[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(o)[1],data:c}}})),parcelRequire.register("jPunI",(function(e,t){var a=parcelRequire("csqZT").Buffer,o=parcelRequire("g2QAT");e.exports=function(e,t,n,s){if(a.isBuffer(e)||(e=a.from(e,"binary")),t&&(a.isBuffer(t)||(t=a.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var r=n/8,i=a.alloc(r),c=a.alloc(s||0),d=a.alloc(0);r>0||s>0;){var l=new o;l.update(d),l.update(e),t&&l.update(t),d=l.digest();var m=0;if(r>0){var u=i.length-r;m=Math.min(r,d.length),d.copy(i,u,0,m),r-=m}if(m0){var p=c.length-s,h=Math.min(s,d.length-m);d.copy(c,p,m,m+h),s-=h}}return d.fill(0),{key:i,iv:c}}})),parcelRequire.register("adEfq",(function(e,t){var a,o,n;$parcel$export(e.exports,"createCipheriv",(()=>a),(e=>a=e)),$parcel$export(e.exports,"createDecipheriv",(()=>o),(e=>o=e)),$parcel$export(e.exports,"getCiphers",(()=>n),(e=>n=e));var s=parcelRequire("5PZgi"),r=parcelRequire("e58Am"),i=parcelRequire("OCNU4");s.createCipher,a=s.createCipheriv,r.createDecipher,o=r.createDecipheriv,n=function(){return Object.keys(i)}})),parcelRequire.register("5PZgi",(function(e,t){var a,o;$parcel$export(e.exports,"createCipheriv",(()=>a),(e=>a=e)),$parcel$export(e.exports,"createCipher",(()=>o),(e=>o=e));var n=parcelRequire("kax1u"),s=parcelRequire("15la7"),r=parcelRequire("csqZT").Buffer,i=parcelRequire("8kVlQ"),c=parcelRequire("ivgzx"),d=parcelRequire("g2Iep"),l=parcelRequire("jPunI");function m(e,t,a){c.call(this),this._cache=new p,this._cipher=new d.AES(t),this._prev=r.from(a),this._mode=e,this._autopadding=!0}parcelRequire("943Ft")(m,c),m.prototype._update=function(e){var t,a;this._cache.add(e);for(var o=[];t=this._cache.get();)a=this._mode.encrypt(this,t),o.push(a);return r.concat(o)};var u=r.alloc(16,16);function p(){this.cache=r.allocUnsafe(0)}function h(e,t,a){var o=n[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=r.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof a&&(a=r.from(a)),"GCM"!==o.mode&&a.length!==o.iv)throw new TypeError("invalid iv length "+a.length);return"stream"===o.type?new i(o.module,t,a):"auth"===o.type?new s(o.module,t,a):new m(o.module,t,a)}m.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},p.prototype.add=function(e){this.cache=r.concat([this.cache,e])},p.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},p.prototype.flush=function(){for(var e=16-this.cache.length,t=r.allocUnsafe(e),a=-1;++aa),(e=>a=e));var o=parcelRequire("csqZT").Buffer;function n(e){o.isBuffer(e)||(e=o.from(e));for(var t=e.length/4|0,a=new Array(t),n=0;n>>24]^l[h>>>16&255]^m[g>>>8&255]^u[255&b]^t[f++],r=d[h>>>24]^l[g>>>16&255]^m[b>>>8&255]^u[255&p]^t[f++],i=d[g>>>24]^l[b>>>16&255]^m[p>>>8&255]^u[255&h]^t[f++],c=d[b>>>24]^l[p>>>16&255]^m[h>>>8&255]^u[255&g]^t[f++],p=s,h=r,g=i,b=c;return s=(o[p>>>24]<<24|o[h>>>16&255]<<16|o[g>>>8&255]<<8|o[255&b])^t[f++],r=(o[h>>>24]<<24|o[g>>>16&255]<<16|o[b>>>8&255]<<8|o[255&p])^t[f++],i=(o[g>>>24]<<24|o[b>>>16&255]<<16|o[p>>>8&255]<<8|o[255&h])^t[f++],c=(o[b>>>24]<<24|o[p>>>16&255]<<16|o[h>>>8&255]<<8|o[255&g])^t[f++],[s>>>=0,r>>>=0,i>>>=0,c>>>=0]}var i=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var a=[],o=[],n=[[],[],[],[]],s=[[],[],[],[]],r=0,i=0,c=0;c<256;++c){var d=i^i<<1^i<<2^i<<3^i<<4;d=d>>>8^255&d^99,a[r]=d,o[d]=r;var l=e[r],m=e[l],u=e[m],p=257*e[d]^16843008*d;n[0][r]=p<<24|p>>>8,n[1][r]=p<<16|p>>>16,n[2][r]=p<<8|p>>>24,n[3][r]=p,p=16843009*u^65537*m^257*l^16843008*r,s[0][d]=p<<24|p>>>8,s[1][d]=p<<16|p>>>16,s[2][d]=p<<8|p>>>24,s[3][d]=p,0===r?r=i=1:(r=l^e[e[e[u^l]]],i^=e[e[i]])}return{SBOX:a,INV_SBOX:o,SUB_MIX:n,INV_SUB_MIX:s}}();function d(e){this._key=n(e),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var e=this._key,t=e.length,a=t+6,o=4*(a+1),n=[],s=0;s>>24,r=c.SBOX[r>>>24]<<24|c.SBOX[r>>>16&255]<<16|c.SBOX[r>>>8&255]<<8|c.SBOX[255&r],r^=i[s/t|0]<<24):t>6&&s%t==4&&(r=c.SBOX[r>>>24]<<24|c.SBOX[r>>>16&255]<<16|c.SBOX[r>>>8&255]<<8|c.SBOX[255&r]),n[s]=n[s-t]^r}for(var d=[],l=0;l>>24]]^c.INV_SUB_MIX[1][c.SBOX[u>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[u>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&u]]}this._nRounds=a,this._keySchedule=n,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(e){return r(e=n(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},d.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),a=o.allocUnsafe(16);return a.writeUInt32BE(t[0],0),a.writeUInt32BE(t[1],4),a.writeUInt32BE(t[2],8),a.writeUInt32BE(t[3],12),a},d.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var a=r(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),s=o.allocUnsafe(16);return s.writeUInt32BE(a[0],0),s.writeUInt32BE(a[3],4),s.writeUInt32BE(a[2],8),s.writeUInt32BE(a[1],12),s},d.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},a=d})),parcelRequire.register("8BYI7",(function(e,t){var a=parcelRequire("csqZT").Buffer,o=a.alloc(16,0);function n(e){var t=a.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=a.alloc(16,0),this.cache=a.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t0;t--)o[t]=o[t]>>>1|(1&o[t-1])<<31;o[0]=o[0]>>>1,a&&(o[0]=-520093696^o[0])}this.state=n(s)},s.prototype.update=function(e){var t;for(this.cache=a.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(a.concat([this.cache,o],16)),this.ghash(n([0,e,0,t])),this.state},e.exports=s})),parcelRequire.register("8kVlQ",(function(e,t){var a=parcelRequire("g2Iep"),o=parcelRequire("csqZT").Buffer,n=parcelRequire("ivgzx");function s(e,t,s,r){n.call(this),this._cipher=new a.AES(t),this._prev=o.from(s),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=r,this._mode=e}parcelRequire("943Ft")(s,n),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},e.exports=s})),parcelRequire.register("e58Am",(function(e,t){var a,o;$parcel$export(e.exports,"createDecipher",(()=>a),(e=>a=e)),$parcel$export(e.exports,"createDecipheriv",(()=>o),(e=>o=e));var n=parcelRequire("15la7"),s=parcelRequire("csqZT").Buffer,r=parcelRequire("kax1u"),i=parcelRequire("8kVlQ"),c=parcelRequire("ivgzx"),d=parcelRequire("g2Iep"),l=parcelRequire("jPunI");function m(e,t,a){c.call(this),this._cache=new u,this._last=void 0,this._cipher=new d.AES(t),this._prev=s.from(a),this._mode=e,this._autopadding=!0}function u(){this.cache=s.allocUnsafe(0)}function p(e,t,a){var o=r[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof a&&(a=s.from(a)),"GCM"!==o.mode&&a.length!==o.iv)throw new TypeError("invalid iv length "+a.length);if("string"==typeof t&&(t=s.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===o.type?new i(o.module,t,a,!0):"auth"===o.type?new n(o.module,t,a,!0):new m(o.module,t,a)}parcelRequire("943Ft")(m,c),m.prototype._update=function(e){var t,a;this._cache.add(e);for(var o=[];t=this._cache.get(this._autopadding);)a=this._mode.decrypt(this,t),o.push(a);return s.concat(o)},m.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var a=-1;for(;++a16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},a=function(e,t){var a=r[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");var o=l(t,!1,a.key,a.iv);return p(e,o.key,o.iv)},o=p})),parcelRequire.register("fqgSj",(function(e,t){var a,o;$parcel$export(e.exports,"pbkdf2",(()=>a),(e=>a=e)),$parcel$export(e.exports,"pbkdf2Sync",(()=>o),(e=>o=e)),a=parcelRequire("50wJ7"),o=parcelRequire("9kjHg")})),parcelRequire.register("jgGgQ",(function(e,t){var a=parcelRequire("dfdoZ"),o=parcelRequire("csqZT").Buffer;function n(e){var t=o.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var s,r=o.alloc(0),i=0;r.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function i(e,t,a){var o=r(e,a);return a-1>=t&&(o|=r(e,a-1)<<4),o}function c(e,t,a,o){for(var n=0,s=Math.min(e.length,a),r=t;r=49?i-49+10:i>=17?i-17+10:i}return n}n.isBN=function(e){return e instanceof n||null!==e&&"object"==typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,o){if("number"==typeof e)return this._initNumber(e,t,o);if("object"==typeof e)return this._initArray(e,t,o);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)r=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[s]|=r<>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);else if("le"===o)for(n=0,s=0;n>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);return this.strip()},n.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var o=0;o=t;o-=2)n=i(e,t,o)<=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;else for(o=(e.length-t)%2==0?t+1:t;o=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;this.strip()},n.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var o=0,n=1;n<=67108863;n*=t)o++;o--,n=n/t|0;for(var s=e.length-a,r=s%o,i=Math.min(s,s-r)+a,d=0,l=a;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?""};var 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"],l=[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],m=[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 u(e,t,a){a.negative=t.negative^e.negative;var o=e.length+t.length|0;a.length=o,o=o-1|0;var n=0|e.words[0],s=0|t.words[0],r=n*s,i=67108863&r,c=r/67108864|0;a.words[0]=i;for(var d=1;d>>26,m=67108863&c,u=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=u;p++){var h=d-p|0;l+=(r=(n=0|e.words[h])*(s=0|t.words[p])+m)/67108864|0,m=67108863&r}a.words[d]=0|m,c=0|l}return 0!==c?a.words[d]=0|c:a.length--,a.strip()}n.prototype.toString=function(e,t){var o;if(t=0|t||1,16===(e=e||10)||"hex"===e){o="";for(var n=0,s=0,r=0;r>>24-n&16777215)||r!==this.length-1?d[6-c.length]+c+o:c+o,(n+=2)>=26&&(n-=26,r--)}for(0!==s&&(o=s.toString(16)+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(e===(0|e)&&e>=2&&e<=36){var u=l[e],p=m[e];o="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(p).toString(e);o=(h=h.idivn(p)).isZero()?g+o:d[u-g.length]+g+o}for(this.isZero()&&(o="0"+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.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&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return a(void 0!==s),this.toArrayLike(s,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,o){var n=this.byteLength(),s=o||Math.max(1,n);a(n<=s,"byte array longer than desired length"),a(s>0,"Requested array length <= 0"),this.strip();var r,i,c="le"===t,d=new e(s),l=this.clone();if(c){for(i=0;!l.isZero();i++)r=l.andln(255),l.iushrn(8),d[i]=r;for(;i=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var o=0;oe.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),o=e%26;this._expand(t),o>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-o),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var o=e/26|0,n=e%26;return this._expand(o+1),this.words[o]=t?this.words[o]|1<e.length?(a=this,o=e):(a=e,o=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;se.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,o,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,o=e):(a=e,o=this);for(var s=0,r=0;r>26,this.words[r]=67108863&t;for(;0!==s&&r>26,this.words[r]=67108863&t;if(0===s&&r>>13,p=0|r[1],h=8191&p,g=p>>>13,b=0|r[2],f=8191&b,y=b>>>13,$=0|r[3],w=8191&$,k=$>>>13,v=0|r[4],x=8191&v,R=v>>>13,A=0|r[5],I=8191&A,S=A>>>13,E=0|r[6],T=8191&E,C=E>>>13,U=0|r[7],M=8191&U,D=U>>>13,N=0|r[8],P=8191&N,B=N>>>13,L=0|r[9],F=8191&L,K=L>>>13,G=0|i[0],j=8191&G,q=G>>>13,W=0|i[1],z=8191&W,H=W>>>13,_=0|i[2],V=8191&_,Y=_>>>13,J=0|i[3],X=8191&J,O=J>>>13,Z=0|i[4],Q=8191&Z,ee=Z>>>13,te=0|i[5],ae=8191&te,oe=te>>>13,ne=0|i[6],se=8191&ne,re=ne>>>13,ie=0|i[7],ce=8191&ie,de=ie>>>13,le=0|i[8],me=8191&le,ue=le>>>13,pe=0|i[9],he=8191&pe,ge=pe>>>13;a.negative=e.negative^t.negative,a.length=19;var be=(d+(o=Math.imul(m,j))|0)+((8191&(n=(n=Math.imul(m,q))+Math.imul(u,j)|0))<<13)|0;d=((s=Math.imul(u,q))+(n>>>13)|0)+(be>>>26)|0,be&=67108863,o=Math.imul(h,j),n=(n=Math.imul(h,q))+Math.imul(g,j)|0,s=Math.imul(g,q);var fe=(d+(o=o+Math.imul(m,z)|0)|0)+((8191&(n=(n=n+Math.imul(m,H)|0)+Math.imul(u,z)|0))<<13)|0;d=((s=s+Math.imul(u,H)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,o=Math.imul(f,j),n=(n=Math.imul(f,q))+Math.imul(y,j)|0,s=Math.imul(y,q),o=o+Math.imul(h,z)|0,n=(n=n+Math.imul(h,H)|0)+Math.imul(g,z)|0,s=s+Math.imul(g,H)|0;var ye=(d+(o=o+Math.imul(m,V)|0)|0)+((8191&(n=(n=n+Math.imul(m,Y)|0)+Math.imul(u,V)|0))<<13)|0;d=((s=s+Math.imul(u,Y)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(w,j),n=(n=Math.imul(w,q))+Math.imul(k,j)|0,s=Math.imul(k,q),o=o+Math.imul(f,z)|0,n=(n=n+Math.imul(f,H)|0)+Math.imul(y,z)|0,s=s+Math.imul(y,H)|0,o=o+Math.imul(h,V)|0,n=(n=n+Math.imul(h,Y)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,Y)|0;var $e=(d+(o=o+Math.imul(m,X)|0)|0)+((8191&(n=(n=n+Math.imul(m,O)|0)+Math.imul(u,X)|0))<<13)|0;d=((s=s+Math.imul(u,O)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,o=Math.imul(x,j),n=(n=Math.imul(x,q))+Math.imul(R,j)|0,s=Math.imul(R,q),o=o+Math.imul(w,z)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(k,z)|0,s=s+Math.imul(k,H)|0,o=o+Math.imul(f,V)|0,n=(n=n+Math.imul(f,Y)|0)+Math.imul(y,V)|0,s=s+Math.imul(y,Y)|0,o=o+Math.imul(h,X)|0,n=(n=n+Math.imul(h,O)|0)+Math.imul(g,X)|0,s=s+Math.imul(g,O)|0;var we=(d+(o=o+Math.imul(m,Q)|0)|0)+((8191&(n=(n=n+Math.imul(m,ee)|0)+Math.imul(u,Q)|0))<<13)|0;d=((s=s+Math.imul(u,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(I,j),n=(n=Math.imul(I,q))+Math.imul(S,j)|0,s=Math.imul(S,q),o=o+Math.imul(x,z)|0,n=(n=n+Math.imul(x,H)|0)+Math.imul(R,z)|0,s=s+Math.imul(R,H)|0,o=o+Math.imul(w,V)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Y)|0,o=o+Math.imul(f,X)|0,n=(n=n+Math.imul(f,O)|0)+Math.imul(y,X)|0,s=s+Math.imul(y,O)|0,o=o+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0;var ke=(d+(o=o+Math.imul(m,ae)|0)|0)+((8191&(n=(n=n+Math.imul(m,oe)|0)+Math.imul(u,ae)|0))<<13)|0;d=((s=s+Math.imul(u,oe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(T,j),n=(n=Math.imul(T,q))+Math.imul(C,j)|0,s=Math.imul(C,q),o=o+Math.imul(I,z)|0,n=(n=n+Math.imul(I,H)|0)+Math.imul(S,z)|0,s=s+Math.imul(S,H)|0,o=o+Math.imul(x,V)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(R,V)|0,s=s+Math.imul(R,Y)|0,o=o+Math.imul(w,X)|0,n=(n=n+Math.imul(w,O)|0)+Math.imul(k,X)|0,s=s+Math.imul(k,O)|0,o=o+Math.imul(f,Q)|0,n=(n=n+Math.imul(f,ee)|0)+Math.imul(y,Q)|0,s=s+Math.imul(y,ee)|0,o=o+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(g,ae)|0,s=s+Math.imul(g,oe)|0;var ve=(d+(o=o+Math.imul(m,se)|0)|0)+((8191&(n=(n=n+Math.imul(m,re)|0)+Math.imul(u,se)|0))<<13)|0;d=((s=s+Math.imul(u,re)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(M,j),n=(n=Math.imul(M,q))+Math.imul(D,j)|0,s=Math.imul(D,q),o=o+Math.imul(T,z)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(C,z)|0,s=s+Math.imul(C,H)|0,o=o+Math.imul(I,V)|0,n=(n=n+Math.imul(I,Y)|0)+Math.imul(S,V)|0,s=s+Math.imul(S,Y)|0,o=o+Math.imul(x,X)|0,n=(n=n+Math.imul(x,O)|0)+Math.imul(R,X)|0,s=s+Math.imul(R,O)|0,o=o+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,o=o+Math.imul(f,ae)|0,n=(n=n+Math.imul(f,oe)|0)+Math.imul(y,ae)|0,s=s+Math.imul(y,oe)|0,o=o+Math.imul(h,se)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(g,se)|0,s=s+Math.imul(g,re)|0;var xe=(d+(o=o+Math.imul(m,ce)|0)|0)+((8191&(n=(n=n+Math.imul(m,de)|0)+Math.imul(u,ce)|0))<<13)|0;d=((s=s+Math.imul(u,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,o=Math.imul(P,j),n=(n=Math.imul(P,q))+Math.imul(B,j)|0,s=Math.imul(B,q),o=o+Math.imul(M,z)|0,n=(n=n+Math.imul(M,H)|0)+Math.imul(D,z)|0,s=s+Math.imul(D,H)|0,o=o+Math.imul(T,V)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(C,V)|0,s=s+Math.imul(C,Y)|0,o=o+Math.imul(I,X)|0,n=(n=n+Math.imul(I,O)|0)+Math.imul(S,X)|0,s=s+Math.imul(S,O)|0,o=o+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(R,Q)|0,s=s+Math.imul(R,ee)|0,o=o+Math.imul(w,ae)|0,n=(n=n+Math.imul(w,oe)|0)+Math.imul(k,ae)|0,s=s+Math.imul(k,oe)|0,o=o+Math.imul(f,se)|0,n=(n=n+Math.imul(f,re)|0)+Math.imul(y,se)|0,s=s+Math.imul(y,re)|0,o=o+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(g,ce)|0,s=s+Math.imul(g,de)|0;var Re=(d+(o=o+Math.imul(m,me)|0)|0)+((8191&(n=(n=n+Math.imul(m,ue)|0)+Math.imul(u,me)|0))<<13)|0;d=((s=s+Math.imul(u,ue)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(F,j),n=(n=Math.imul(F,q))+Math.imul(K,j)|0,s=Math.imul(K,q),o=o+Math.imul(P,z)|0,n=(n=n+Math.imul(P,H)|0)+Math.imul(B,z)|0,s=s+Math.imul(B,H)|0,o=o+Math.imul(M,V)|0,n=(n=n+Math.imul(M,Y)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Y)|0,o=o+Math.imul(T,X)|0,n=(n=n+Math.imul(T,O)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,O)|0,o=o+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(S,Q)|0,s=s+Math.imul(S,ee)|0,o=o+Math.imul(x,ae)|0,n=(n=n+Math.imul(x,oe)|0)+Math.imul(R,ae)|0,s=s+Math.imul(R,oe)|0,o=o+Math.imul(w,se)|0,n=(n=n+Math.imul(w,re)|0)+Math.imul(k,se)|0,s=s+Math.imul(k,re)|0,o=o+Math.imul(f,ce)|0,n=(n=n+Math.imul(f,de)|0)+Math.imul(y,ce)|0,s=s+Math.imul(y,de)|0,o=o+Math.imul(h,me)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(g,me)|0,s=s+Math.imul(g,ue)|0;var Ae=(d+(o=o+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,ge)|0)+Math.imul(u,he)|0))<<13)|0;d=((s=s+Math.imul(u,ge)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(F,z),n=(n=Math.imul(F,H))+Math.imul(K,z)|0,s=Math.imul(K,H),o=o+Math.imul(P,V)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(B,V)|0,s=s+Math.imul(B,Y)|0,o=o+Math.imul(M,X)|0,n=(n=n+Math.imul(M,O)|0)+Math.imul(D,X)|0,s=s+Math.imul(D,O)|0,o=o+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,ee)|0,o=o+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(S,ae)|0,s=s+Math.imul(S,oe)|0,o=o+Math.imul(x,se)|0,n=(n=n+Math.imul(x,re)|0)+Math.imul(R,se)|0,s=s+Math.imul(R,re)|0,o=o+Math.imul(w,ce)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(k,ce)|0,s=s+Math.imul(k,de)|0,o=o+Math.imul(f,me)|0,n=(n=n+Math.imul(f,ue)|0)+Math.imul(y,me)|0,s=s+Math.imul(y,ue)|0;var Ie=(d+(o=o+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,ge)|0)+Math.imul(g,he)|0))<<13)|0;d=((s=s+Math.imul(g,ge)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,o=Math.imul(F,V),n=(n=Math.imul(F,Y))+Math.imul(K,V)|0,s=Math.imul(K,Y),o=o+Math.imul(P,X)|0,n=(n=n+Math.imul(P,O)|0)+Math.imul(B,X)|0,s=s+Math.imul(B,O)|0,o=o+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(D,Q)|0,s=s+Math.imul(D,ee)|0,o=o+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,oe)|0)+Math.imul(C,ae)|0,s=s+Math.imul(C,oe)|0,o=o+Math.imul(I,se)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(S,se)|0,s=s+Math.imul(S,re)|0,o=o+Math.imul(x,ce)|0,n=(n=n+Math.imul(x,de)|0)+Math.imul(R,ce)|0,s=s+Math.imul(R,de)|0,o=o+Math.imul(w,me)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(k,me)|0,s=s+Math.imul(k,ue)|0;var Se=(d+(o=o+Math.imul(f,he)|0)|0)+((8191&(n=(n=n+Math.imul(f,ge)|0)+Math.imul(y,he)|0))<<13)|0;d=((s=s+Math.imul(y,ge)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,o=Math.imul(F,X),n=(n=Math.imul(F,O))+Math.imul(K,X)|0,s=Math.imul(K,O),o=o+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(B,Q)|0,s=s+Math.imul(B,ee)|0,o=o+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(D,ae)|0,s=s+Math.imul(D,oe)|0,o=o+Math.imul(T,se)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(C,se)|0,s=s+Math.imul(C,re)|0,o=o+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(S,ce)|0,s=s+Math.imul(S,de)|0,o=o+Math.imul(x,me)|0,n=(n=n+Math.imul(x,ue)|0)+Math.imul(R,me)|0,s=s+Math.imul(R,ue)|0;var Ee=(d+(o=o+Math.imul(w,he)|0)|0)+((8191&(n=(n=n+Math.imul(w,ge)|0)+Math.imul(k,he)|0))<<13)|0;d=((s=s+Math.imul(k,ge)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(F,Q),n=(n=Math.imul(F,ee))+Math.imul(K,Q)|0,s=Math.imul(K,ee),o=o+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(B,ae)|0,s=s+Math.imul(B,oe)|0,o=o+Math.imul(M,se)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(D,se)|0,s=s+Math.imul(D,re)|0,o=o+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,de)|0)+Math.imul(C,ce)|0,s=s+Math.imul(C,de)|0,o=o+Math.imul(I,me)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(S,me)|0,s=s+Math.imul(S,ue)|0;var Te=(d+(o=o+Math.imul(x,he)|0)|0)+((8191&(n=(n=n+Math.imul(x,ge)|0)+Math.imul(R,he)|0))<<13)|0;d=((s=s+Math.imul(R,ge)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,o=Math.imul(F,ae),n=(n=Math.imul(F,oe))+Math.imul(K,ae)|0,s=Math.imul(K,oe),o=o+Math.imul(P,se)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(B,se)|0,s=s+Math.imul(B,re)|0,o=o+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,de)|0)+Math.imul(D,ce)|0,s=s+Math.imul(D,de)|0,o=o+Math.imul(T,me)|0,n=(n=n+Math.imul(T,ue)|0)+Math.imul(C,me)|0,s=s+Math.imul(C,ue)|0;var Ce=(d+(o=o+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,ge)|0)+Math.imul(S,he)|0))<<13)|0;d=((s=s+Math.imul(S,ge)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(F,se),n=(n=Math.imul(F,re))+Math.imul(K,se)|0,s=Math.imul(K,re),o=o+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(B,ce)|0,s=s+Math.imul(B,de)|0,o=o+Math.imul(M,me)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(D,me)|0,s=s+Math.imul(D,ue)|0;var Ue=(d+(o=o+Math.imul(T,he)|0)|0)+((8191&(n=(n=n+Math.imul(T,ge)|0)+Math.imul(C,he)|0))<<13)|0;d=((s=s+Math.imul(C,ge)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,o=Math.imul(F,ce),n=(n=Math.imul(F,de))+Math.imul(K,ce)|0,s=Math.imul(K,de),o=o+Math.imul(P,me)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(B,me)|0,s=s+Math.imul(B,ue)|0;var Me=(d+(o=o+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,ge)|0)+Math.imul(D,he)|0))<<13)|0;d=((s=s+Math.imul(D,ge)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,o=Math.imul(F,me),n=(n=Math.imul(F,ue))+Math.imul(K,me)|0,s=Math.imul(K,ue);var De=(d+(o=o+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,ge)|0)+Math.imul(B,he)|0))<<13)|0;d=((s=s+Math.imul(B,ge)|0)+(n>>>13)|0)+(De>>>26)|0,De&=67108863;var Ne=(d+(o=Math.imul(F,he))|0)+((8191&(n=(n=Math.imul(F,ge))+Math.imul(K,he)|0))<<13)|0;return d=((s=Math.imul(K,ge))+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=be,c[1]=fe,c[2]=ye,c[3]=$e,c[4]=we,c[5]=ke,c[6]=ve,c[7]=xe,c[8]=Re,c[9]=Ae,c[10]=Ie,c[11]=Se,c[12]=Ee,c[13]=Te,c[14]=Ce,c[15]=Ue,c[16]=Me,c[17]=De,c[18]=Ne,0!==d&&(c[19]=d,a.length++),a};function h(e,t,a){return(new g).mulp(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=u),n.prototype.mulTo=function(e,t){var a,o=this.length+e.length;return a=10===this.length&&10===e.length?p(this,e,t):o<63?u(this,e,t):o<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var o=0,n=0,s=0;s>>26)|0)>>>26,r&=67108863}a.words[s]=i,o=r,r=n}return 0!==o?a.words[s]=o:a.length--,a.strip()}(this,e,t):h(this,e,t),a},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=n.prototype._countBits(e)-1,o=0;o>=1;return o},g.prototype.permute=function(e,t,a,o,n,s){for(var r=0;r>>=1)n++;return 1<>>=13,o[2*r+1]=8191&s,s>>>=13;for(r=2*t;r>=26,t+=n/67108864|0,t+=s>>>26,this.words[o]=67108863&s}return 0!==t&&(this.words[o]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new n(1);for(var a=this,o=0;o=0);var t,o=e%26,n=(e-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var r=0;for(t=0;t>>26-o}r&&(this.words[t]=r,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var s=e%26,r=Math.min((e-s)/26,this.length),i=67108863^67108863>>>s<r)for(this.length-=r,d=0;d=0&&(0!==l||d>=n);d--){var m=0|this.words[d];this.words[d]=l<<26-s|m>>>s,l=m&i}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,o){return a(0===this.negative),this.iushrn(e,t,o)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26,n=1<=0);var t=e%26,o=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==t&&o++,this.length=Math.min(o,this.length),0!==t){var n=67108863^67108863>>>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},n.prototype.isubn=function(e){if(a("number"==typeof e),a(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>26)-(c/67108864|0),this.words[n+o]=67108863&s}for(;n>26,this.words[n+o]=67108863&s;if(0===i)return this.strip();for(a(-1===i),i=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var a=(this.length,e.length),o=this.clone(),s=e,r=0|s.words[s.length-1];0!==(a=26-this._countBits(r))&&(s=s.ushln(a),o.iushln(a),r=0|s.words[s.length-1]);var i,c=o.length-s.length;if("mod"!==t){(i=new n(null)).length=c+1,i.words=new Array(i.length);for(var d=0;d=0;m--){var u=67108864*(0|o.words[s.length+m])+(0|o.words[s.length+m-1]);for(u=Math.min(u/r|0,67108863),o._ishlnsubmul(s,u,m);0!==o.negative;)u--,o.negative=0,o._ishlnsubmul(s,1,m),o.isZero()||(o.negative^=1);i&&(i.words[m]=u)}return i&&i.strip(),o.strip(),"div"!==t&&0!==a&&o.iushrn(a),{div:i||null,mod:o}},n.prototype.divmod=function(e,t,o){return a(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(i=this.neg().divmod(e,t),"mod"!==t&&(s=i.div.neg()),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.iadd(e)),{div:s,mod:r}):0===this.negative&&0!==e.negative?(i=this.divmod(e.neg(),t),"mod"!==t&&(s=i.div.neg()),{div:s,mod:i.mod}):0!=(this.negative&e.negative)?(i=this.neg().divmod(e.neg(),t),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.isub(e)),{div:i.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var s,r,i},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),n=e.andln(1),s=a.cmp(o);return s<0||1===n&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){a(e<=67108863);for(var t=67108864%e,o=0,n=this.length-1;n>=0;n--)o=(t*o+(0|this.words[n]))%e;return o},n.prototype.idivn=function(e){a(e<=67108863);for(var t=0,o=this.length-1;o>=0;o--){var n=(0|this.words[o])+67108864*t;this.words[o]=n/e|0,t=n%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s=new n(1),r=new n(0),i=new n(0),c=new n(1),d=0;t.isEven()&&o.isEven();)t.iushrn(1),o.iushrn(1),++d;for(var l=o.clone(),m=t.clone();!t.isZero();){for(var u=0,p=1;0==(t.words[0]&p)&&u<26;++u,p<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(s.isOdd()||r.isOdd())&&(s.iadd(l),r.isub(m)),s.iushrn(1),r.iushrn(1);for(var h=0,g=1;0==(o.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(o.iushrn(h);h-- >0;)(i.isOdd()||c.isOdd())&&(i.iadd(l),c.isub(m)),i.iushrn(1),c.iushrn(1);t.cmp(o)>=0?(t.isub(o),s.isub(i),r.isub(c)):(o.isub(t),i.isub(s),c.isub(r))}return{a:i,b:c,gcd:o.iushln(d)}},n.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s,r=new n(1),i=new n(0),c=o.clone();t.cmpn(1)>0&&o.cmpn(1)>0;){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)r.isOdd()&&r.iadd(c),r.iushrn(1);for(var m=0,u=1;0==(o.words[0]&u)&&m<26;++m,u<<=1);if(m>0)for(o.iushrn(m);m-- >0;)i.isOdd()&&i.iadd(c),i.iushrn(1);t.cmp(o)>=0?(t.isub(o),r.isub(i)):(o.isub(t),i.isub(r))}return(s=0===t.cmpn(1)?r:i).cmpn(0)<0&&s.iadd(e),s},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var o=0;t.isEven()&&a.isEven();o++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var s=t;t=a,a=s}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(o)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,o=(e-t)/26,n=1<>>26,i&=67108863,this.words[r]=i}return 0!==s&&(this.words[r]=s,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,o=e<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)t=1;else{o&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var o=0|this.words[a],n=0|e.words[a];if(o!==n){on&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new v(e)},n.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function f(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(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)}f.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},f.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},f.prototype.split=function(e,t){e.iushrn(this.n,0,t)},f.prototype.imulK=function(e){return e.imul(this.k)},o(y,f),y.prototype.split=function(e,t){for(var a=4194303,o=Math.min(e.length,9),n=0;n>>22,s=r}s>>>=22,e.words[n-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=o}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new $;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return b[e]=t,t},v.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},v.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var o=this.m.add(new n(1)).iushrn(2);return this.pow(e,o)}for(var s=this.m.subn(1),r=0;!s.isZero()&&0===s.andln(1);)r++,s.iushrn(1);a(!s.isZero());var i=new n(1).toRed(this),c=i.redNeg(),d=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);0!==this.pow(l,d).cmp(c);)l.redIAdd(c);for(var m=this.pow(l,s),u=this.pow(e,s.addn(1).iushrn(1)),p=this.pow(e,s),h=r;0!==p.cmp(i);){for(var g=p,b=0;0!==g.cmp(i);b++)g=g.redSqr();a(b=0;o--){for(var d=t.words[o],l=c-1;l>=0;l--){var m=d>>l&1;s!==a[0]&&(s=this.sqr(s)),0!==m||0!==r?(r<<=1,r|=m,(4===++i||0===o&&0===l)&&(s=this.mul(s,a[r]),i=0,r=0)):i=0}c=26}return s},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new x(e)},o(x,v),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(o).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var a=e.mul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=a.isub(o).iushrn(this.shift),r=s;return s.cmp(this.m)>=0?r=s.isub(this.m):s.cmpn(0)<0&&(r=s.iadd(this.m)),r._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)})),parcelRequire.register("9yBLn",(function(e,t){var a=parcelRequire("c6tg2"),o=parcelRequire("csqZT").Buffer;e.exports=function(e,t){return o.from(e.toRed(a.mont(t.modulus)).redPow(new a(t.publicExponent)).fromRed().toArray())}})),parcelRequire.register("gku5J",(function(e,t){var a=parcelRequire("ajHSv").Buffer,o=parcelRequire("bDdkr"),n=parcelRequire("gRApq");function s(e){var t,a=e.modulus.byteLength();do{t=new o(n(a))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function r(e,t){var n=function(e){var t=s(e);return{blinder:t.toRed(o.mont(e.modulus)).redPow(new o(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),r=t.modulus.byteLength(),i=new o(e).mul(n.blinder).umod(t.modulus),c=i.toRed(o.mont(t.prime1)),d=i.toRed(o.mont(t.prime2)),l=t.coefficient,m=t.prime1,u=t.prime2,p=c.redPow(t.exponent1).fromRed(),h=d.redPow(t.exponent2).fromRed(),g=p.isub(h).imul(l).umod(m).imul(u);return h.iadd(g).imul(n.unblinder).umod(t.modulus).toArrayLike(a,"be",r)}r.getr=s,e.exports=r})),parcelRequire.register("blQCX",(function(e,t){var a=parcelRequire("jDRoS"),o=parcelRequire("jgGgQ"),n=parcelRequire("gNtyq"),s=parcelRequire("c6tg2"),r=parcelRequire("gku5J"),i=parcelRequire("dfdoZ"),c=parcelRequire("9yBLn"),d=parcelRequire("csqZT").Buffer;e.exports=function(e,t,l){var m;m=e.padding?e.padding:l?1:4;var u,p=a(e),h=p.modulus.byteLength();if(t.length>h||new s(t).cmp(p.modulus)>=0)throw new Error("decryption error");u=l?c(new s(t),p):r(t,p);var g=d.alloc(h-u.length);if(u=d.concat([g,u],h),4===m)return function(e,t){var a=e.modulus.byteLength(),s=i("sha1").update(d.alloc(0)).digest(),r=s.length;if(0!==t[0])throw new Error("decryption error");var c=t.slice(1,r+1),l=t.slice(r+1),m=n(c,o(l,r)),u=n(l,o(m,a-r-1));if(function(e,t){e=d.from(e),t=d.from(t);var a=0,o=e.length;e.length!==t.length&&(a++,o=Math.min(e.length,t.length));var n=-1;for(;++n=t.length){s++;break}var r=t.slice(2,n-1);("0002"!==o.toString("hex")&&!a||"0001"!==o.toString("hex")&&a)&&s++;r.length<8&&s++;if(s)throw new Error("decryption error");return t.slice(n)}(0,u,l);if(3===m)return u;throw new Error("unknown padding")}})),parcelRequire.register("kHjrE",(function(e,t){e.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')})),parcelRequire.register("iXvdm",(function(e,t){e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')})),parcelRequire.register("iHMor",(function(e,t){e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')})),parcelRequire.register("fTnwe",(function(e,t){e.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')})),parcelRequire.register("aZIgW",(function(e,t){e.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')})),parcelRequire.register("iC6hq",(function(e,t){e.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')})),parcelRequire.register("lwXWt",(function(e,t){e.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')})),parcelRequire.register("dnyhL",(function(e,t){e.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')})),parcelRequire.register("8Xolf",(function(e,t){e.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')})),parcelRequire.register("7G6Lb",(function(e,t){e.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')})),parcelRequire.register("5QrJe",(function(e,t){!function(e,t){"use strict";function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function n(e,t,a){if(n.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var s;"object"==typeof e?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:parcelRequire("gFqLz").Buffer}catch(e){}function r(e,t){var a=e.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function i(e,t,a){var o=r(e,a);return a-1>=t&&(o|=r(e,a-1)<<4),o}function c(e,t,a,o){for(var n=0,s=Math.min(e.length,a),r=t;r=49?i-49+10:i>=17?i-17+10:i}return n}n.isBN=function(e){return e instanceof n||null!==e&&"object"==typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,o){if("number"==typeof e)return this._initNumber(e,t,o);if("object"==typeof e)return this._initArray(e,t,o);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)r=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[s]|=r<>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);else if("le"===o)for(n=0,s=0;n>>26-i&67108863,(i+=24)>=26&&(i-=26,s++);return this.strip()},n.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var o=0;o=t;o-=2)n=i(e,t,o)<=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;else for(o=(e.length-t)%2==0?t+1:t;o=18?(s-=18,r+=1,this.words[r]|=n>>>26):s+=8;this.strip()},n.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var o=0,n=1;n<=67108863;n*=t)o++;o--,n=n/t|0;for(var s=e.length-a,r=s%o,i=Math.min(s,s-r)+a,d=0,l=a;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?""};var 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"],l=[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],m=[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 u(e,t,a){a.negative=t.negative^e.negative;var o=e.length+t.length|0;a.length=o,o=o-1|0;var n=0|e.words[0],s=0|t.words[0],r=n*s,i=67108863&r,c=r/67108864|0;a.words[0]=i;for(var d=1;d>>26,m=67108863&c,u=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=u;p++){var h=d-p|0;l+=(r=(n=0|e.words[h])*(s=0|t.words[p])+m)/67108864|0,m=67108863&r}a.words[d]=0|m,c=0|l}return 0!==c?a.words[d]=0|c:a.length--,a.strip()}n.prototype.toString=function(e,t){var o;if(t=0|t||1,16===(e=e||10)||"hex"===e){o="";for(var n=0,s=0,r=0;r>>24-n&16777215)||r!==this.length-1?d[6-c.length]+c+o:c+o,(n+=2)>=26&&(n-=26,r--)}for(0!==s&&(o=s.toString(16)+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(e===(0|e)&&e>=2&&e<=36){var u=l[e],p=m[e];o="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(p).toString(e);o=(h=h.idivn(p)).isZero()?g+o:d[u-g.length]+g+o}for(this.isZero()&&(o="0"+o);o.length%t!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.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&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return a(void 0!==s),this.toArrayLike(s,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,o){var n=this.byteLength(),s=o||Math.max(1,n);a(n<=s,"byte array longer than desired length"),a(s>0,"Requested array length <= 0"),this.strip();var r,i,c="le"===t,d=new e(s),l=this.clone();if(c){for(i=0;!l.isZero();i++)r=l.andln(255),l.iushrn(8),d[i]=r;for(;i=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var o=0;oe.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),o=e%26;this._expand(t),o>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-o),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var o=e/26|0,n=e%26;return this._expand(o+1),this.words[o]=t?this.words[o]|1<e.length?(a=this,o=e):(a=e,o=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;se.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,o,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,o=e):(a=e,o=this);for(var s=0,r=0;r>26,this.words[r]=67108863&t;for(;0!==s&&r>26,this.words[r]=67108863&t;if(0===s&&r>>13,p=0|r[1],h=8191&p,g=p>>>13,b=0|r[2],f=8191&b,y=b>>>13,$=0|r[3],w=8191&$,k=$>>>13,v=0|r[4],x=8191&v,R=v>>>13,A=0|r[5],I=8191&A,S=A>>>13,E=0|r[6],T=8191&E,C=E>>>13,U=0|r[7],M=8191&U,D=U>>>13,N=0|r[8],P=8191&N,B=N>>>13,L=0|r[9],F=8191&L,K=L>>>13,G=0|i[0],j=8191&G,q=G>>>13,W=0|i[1],z=8191&W,H=W>>>13,_=0|i[2],V=8191&_,Y=_>>>13,J=0|i[3],X=8191&J,O=J>>>13,Z=0|i[4],Q=8191&Z,ee=Z>>>13,te=0|i[5],ae=8191&te,oe=te>>>13,ne=0|i[6],se=8191&ne,re=ne>>>13,ie=0|i[7],ce=8191&ie,de=ie>>>13,le=0|i[8],me=8191&le,ue=le>>>13,pe=0|i[9],he=8191&pe,ge=pe>>>13;a.negative=e.negative^t.negative,a.length=19;var be=(d+(o=Math.imul(m,j))|0)+((8191&(n=(n=Math.imul(m,q))+Math.imul(u,j)|0))<<13)|0;d=((s=Math.imul(u,q))+(n>>>13)|0)+(be>>>26)|0,be&=67108863,o=Math.imul(h,j),n=(n=Math.imul(h,q))+Math.imul(g,j)|0,s=Math.imul(g,q);var fe=(d+(o=o+Math.imul(m,z)|0)|0)+((8191&(n=(n=n+Math.imul(m,H)|0)+Math.imul(u,z)|0))<<13)|0;d=((s=s+Math.imul(u,H)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863,o=Math.imul(f,j),n=(n=Math.imul(f,q))+Math.imul(y,j)|0,s=Math.imul(y,q),o=o+Math.imul(h,z)|0,n=(n=n+Math.imul(h,H)|0)+Math.imul(g,z)|0,s=s+Math.imul(g,H)|0;var ye=(d+(o=o+Math.imul(m,V)|0)|0)+((8191&(n=(n=n+Math.imul(m,Y)|0)+Math.imul(u,V)|0))<<13)|0;d=((s=s+Math.imul(u,Y)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(w,j),n=(n=Math.imul(w,q))+Math.imul(k,j)|0,s=Math.imul(k,q),o=o+Math.imul(f,z)|0,n=(n=n+Math.imul(f,H)|0)+Math.imul(y,z)|0,s=s+Math.imul(y,H)|0,o=o+Math.imul(h,V)|0,n=(n=n+Math.imul(h,Y)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,Y)|0;var $e=(d+(o=o+Math.imul(m,X)|0)|0)+((8191&(n=(n=n+Math.imul(m,O)|0)+Math.imul(u,X)|0))<<13)|0;d=((s=s+Math.imul(u,O)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,o=Math.imul(x,j),n=(n=Math.imul(x,q))+Math.imul(R,j)|0,s=Math.imul(R,q),o=o+Math.imul(w,z)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(k,z)|0,s=s+Math.imul(k,H)|0,o=o+Math.imul(f,V)|0,n=(n=n+Math.imul(f,Y)|0)+Math.imul(y,V)|0,s=s+Math.imul(y,Y)|0,o=o+Math.imul(h,X)|0,n=(n=n+Math.imul(h,O)|0)+Math.imul(g,X)|0,s=s+Math.imul(g,O)|0;var we=(d+(o=o+Math.imul(m,Q)|0)|0)+((8191&(n=(n=n+Math.imul(m,ee)|0)+Math.imul(u,Q)|0))<<13)|0;d=((s=s+Math.imul(u,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(I,j),n=(n=Math.imul(I,q))+Math.imul(S,j)|0,s=Math.imul(S,q),o=o+Math.imul(x,z)|0,n=(n=n+Math.imul(x,H)|0)+Math.imul(R,z)|0,s=s+Math.imul(R,H)|0,o=o+Math.imul(w,V)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Y)|0,o=o+Math.imul(f,X)|0,n=(n=n+Math.imul(f,O)|0)+Math.imul(y,X)|0,s=s+Math.imul(y,O)|0,o=o+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0;var ke=(d+(o=o+Math.imul(m,ae)|0)|0)+((8191&(n=(n=n+Math.imul(m,oe)|0)+Math.imul(u,ae)|0))<<13)|0;d=((s=s+Math.imul(u,oe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(T,j),n=(n=Math.imul(T,q))+Math.imul(C,j)|0,s=Math.imul(C,q),o=o+Math.imul(I,z)|0,n=(n=n+Math.imul(I,H)|0)+Math.imul(S,z)|0,s=s+Math.imul(S,H)|0,o=o+Math.imul(x,V)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(R,V)|0,s=s+Math.imul(R,Y)|0,o=o+Math.imul(w,X)|0,n=(n=n+Math.imul(w,O)|0)+Math.imul(k,X)|0,s=s+Math.imul(k,O)|0,o=o+Math.imul(f,Q)|0,n=(n=n+Math.imul(f,ee)|0)+Math.imul(y,Q)|0,s=s+Math.imul(y,ee)|0,o=o+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(g,ae)|0,s=s+Math.imul(g,oe)|0;var ve=(d+(o=o+Math.imul(m,se)|0)|0)+((8191&(n=(n=n+Math.imul(m,re)|0)+Math.imul(u,se)|0))<<13)|0;d=((s=s+Math.imul(u,re)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(M,j),n=(n=Math.imul(M,q))+Math.imul(D,j)|0,s=Math.imul(D,q),o=o+Math.imul(T,z)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(C,z)|0,s=s+Math.imul(C,H)|0,o=o+Math.imul(I,V)|0,n=(n=n+Math.imul(I,Y)|0)+Math.imul(S,V)|0,s=s+Math.imul(S,Y)|0,o=o+Math.imul(x,X)|0,n=(n=n+Math.imul(x,O)|0)+Math.imul(R,X)|0,s=s+Math.imul(R,O)|0,o=o+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,o=o+Math.imul(f,ae)|0,n=(n=n+Math.imul(f,oe)|0)+Math.imul(y,ae)|0,s=s+Math.imul(y,oe)|0,o=o+Math.imul(h,se)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(g,se)|0,s=s+Math.imul(g,re)|0;var xe=(d+(o=o+Math.imul(m,ce)|0)|0)+((8191&(n=(n=n+Math.imul(m,de)|0)+Math.imul(u,ce)|0))<<13)|0;d=((s=s+Math.imul(u,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,o=Math.imul(P,j),n=(n=Math.imul(P,q))+Math.imul(B,j)|0,s=Math.imul(B,q),o=o+Math.imul(M,z)|0,n=(n=n+Math.imul(M,H)|0)+Math.imul(D,z)|0,s=s+Math.imul(D,H)|0,o=o+Math.imul(T,V)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(C,V)|0,s=s+Math.imul(C,Y)|0,o=o+Math.imul(I,X)|0,n=(n=n+Math.imul(I,O)|0)+Math.imul(S,X)|0,s=s+Math.imul(S,O)|0,o=o+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(R,Q)|0,s=s+Math.imul(R,ee)|0,o=o+Math.imul(w,ae)|0,n=(n=n+Math.imul(w,oe)|0)+Math.imul(k,ae)|0,s=s+Math.imul(k,oe)|0,o=o+Math.imul(f,se)|0,n=(n=n+Math.imul(f,re)|0)+Math.imul(y,se)|0,s=s+Math.imul(y,re)|0,o=o+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(g,ce)|0,s=s+Math.imul(g,de)|0;var Re=(d+(o=o+Math.imul(m,me)|0)|0)+((8191&(n=(n=n+Math.imul(m,ue)|0)+Math.imul(u,me)|0))<<13)|0;d=((s=s+Math.imul(u,ue)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(F,j),n=(n=Math.imul(F,q))+Math.imul(K,j)|0,s=Math.imul(K,q),o=o+Math.imul(P,z)|0,n=(n=n+Math.imul(P,H)|0)+Math.imul(B,z)|0,s=s+Math.imul(B,H)|0,o=o+Math.imul(M,V)|0,n=(n=n+Math.imul(M,Y)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Y)|0,o=o+Math.imul(T,X)|0,n=(n=n+Math.imul(T,O)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,O)|0,o=o+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(S,Q)|0,s=s+Math.imul(S,ee)|0,o=o+Math.imul(x,ae)|0,n=(n=n+Math.imul(x,oe)|0)+Math.imul(R,ae)|0,s=s+Math.imul(R,oe)|0,o=o+Math.imul(w,se)|0,n=(n=n+Math.imul(w,re)|0)+Math.imul(k,se)|0,s=s+Math.imul(k,re)|0,o=o+Math.imul(f,ce)|0,n=(n=n+Math.imul(f,de)|0)+Math.imul(y,ce)|0,s=s+Math.imul(y,de)|0,o=o+Math.imul(h,me)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(g,me)|0,s=s+Math.imul(g,ue)|0;var Ae=(d+(o=o+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,ge)|0)+Math.imul(u,he)|0))<<13)|0;d=((s=s+Math.imul(u,ge)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(F,z),n=(n=Math.imul(F,H))+Math.imul(K,z)|0,s=Math.imul(K,H),o=o+Math.imul(P,V)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(B,V)|0,s=s+Math.imul(B,Y)|0,o=o+Math.imul(M,X)|0,n=(n=n+Math.imul(M,O)|0)+Math.imul(D,X)|0,s=s+Math.imul(D,O)|0,o=o+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,ee)|0,o=o+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(S,ae)|0,s=s+Math.imul(S,oe)|0,o=o+Math.imul(x,se)|0,n=(n=n+Math.imul(x,re)|0)+Math.imul(R,se)|0,s=s+Math.imul(R,re)|0,o=o+Math.imul(w,ce)|0,n=(n=n+Math.imul(w,de)|0)+Math.imul(k,ce)|0,s=s+Math.imul(k,de)|0,o=o+Math.imul(f,me)|0,n=(n=n+Math.imul(f,ue)|0)+Math.imul(y,me)|0,s=s+Math.imul(y,ue)|0;var Ie=(d+(o=o+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,ge)|0)+Math.imul(g,he)|0))<<13)|0;d=((s=s+Math.imul(g,ge)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,o=Math.imul(F,V),n=(n=Math.imul(F,Y))+Math.imul(K,V)|0,s=Math.imul(K,Y),o=o+Math.imul(P,X)|0,n=(n=n+Math.imul(P,O)|0)+Math.imul(B,X)|0,s=s+Math.imul(B,O)|0,o=o+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(D,Q)|0,s=s+Math.imul(D,ee)|0,o=o+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,oe)|0)+Math.imul(C,ae)|0,s=s+Math.imul(C,oe)|0,o=o+Math.imul(I,se)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(S,se)|0,s=s+Math.imul(S,re)|0,o=o+Math.imul(x,ce)|0,n=(n=n+Math.imul(x,de)|0)+Math.imul(R,ce)|0,s=s+Math.imul(R,de)|0,o=o+Math.imul(w,me)|0,n=(n=n+Math.imul(w,ue)|0)+Math.imul(k,me)|0,s=s+Math.imul(k,ue)|0;var Se=(d+(o=o+Math.imul(f,he)|0)|0)+((8191&(n=(n=n+Math.imul(f,ge)|0)+Math.imul(y,he)|0))<<13)|0;d=((s=s+Math.imul(y,ge)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,o=Math.imul(F,X),n=(n=Math.imul(F,O))+Math.imul(K,X)|0,s=Math.imul(K,O),o=o+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(B,Q)|0,s=s+Math.imul(B,ee)|0,o=o+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(D,ae)|0,s=s+Math.imul(D,oe)|0,o=o+Math.imul(T,se)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(C,se)|0,s=s+Math.imul(C,re)|0,o=o+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(S,ce)|0,s=s+Math.imul(S,de)|0,o=o+Math.imul(x,me)|0,n=(n=n+Math.imul(x,ue)|0)+Math.imul(R,me)|0,s=s+Math.imul(R,ue)|0;var Ee=(d+(o=o+Math.imul(w,he)|0)|0)+((8191&(n=(n=n+Math.imul(w,ge)|0)+Math.imul(k,he)|0))<<13)|0;d=((s=s+Math.imul(k,ge)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(F,Q),n=(n=Math.imul(F,ee))+Math.imul(K,Q)|0,s=Math.imul(K,ee),o=o+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(B,ae)|0,s=s+Math.imul(B,oe)|0,o=o+Math.imul(M,se)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(D,se)|0,s=s+Math.imul(D,re)|0,o=o+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,de)|0)+Math.imul(C,ce)|0,s=s+Math.imul(C,de)|0,o=o+Math.imul(I,me)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(S,me)|0,s=s+Math.imul(S,ue)|0;var Te=(d+(o=o+Math.imul(x,he)|0)|0)+((8191&(n=(n=n+Math.imul(x,ge)|0)+Math.imul(R,he)|0))<<13)|0;d=((s=s+Math.imul(R,ge)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,o=Math.imul(F,ae),n=(n=Math.imul(F,oe))+Math.imul(K,ae)|0,s=Math.imul(K,oe),o=o+Math.imul(P,se)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(B,se)|0,s=s+Math.imul(B,re)|0,o=o+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,de)|0)+Math.imul(D,ce)|0,s=s+Math.imul(D,de)|0,o=o+Math.imul(T,me)|0,n=(n=n+Math.imul(T,ue)|0)+Math.imul(C,me)|0,s=s+Math.imul(C,ue)|0;var Ce=(d+(o=o+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,ge)|0)+Math.imul(S,he)|0))<<13)|0;d=((s=s+Math.imul(S,ge)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(F,se),n=(n=Math.imul(F,re))+Math.imul(K,se)|0,s=Math.imul(K,re),o=o+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(B,ce)|0,s=s+Math.imul(B,de)|0,o=o+Math.imul(M,me)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(D,me)|0,s=s+Math.imul(D,ue)|0;var Ue=(d+(o=o+Math.imul(T,he)|0)|0)+((8191&(n=(n=n+Math.imul(T,ge)|0)+Math.imul(C,he)|0))<<13)|0;d=((s=s+Math.imul(C,ge)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,o=Math.imul(F,ce),n=(n=Math.imul(F,de))+Math.imul(K,ce)|0,s=Math.imul(K,de),o=o+Math.imul(P,me)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(B,me)|0,s=s+Math.imul(B,ue)|0;var Me=(d+(o=o+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,ge)|0)+Math.imul(D,he)|0))<<13)|0;d=((s=s+Math.imul(D,ge)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,o=Math.imul(F,me),n=(n=Math.imul(F,ue))+Math.imul(K,me)|0,s=Math.imul(K,ue);var De=(d+(o=o+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,ge)|0)+Math.imul(B,he)|0))<<13)|0;d=((s=s+Math.imul(B,ge)|0)+(n>>>13)|0)+(De>>>26)|0,De&=67108863;var Ne=(d+(o=Math.imul(F,he))|0)+((8191&(n=(n=Math.imul(F,ge))+Math.imul(K,he)|0))<<13)|0;return d=((s=Math.imul(K,ge))+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=be,c[1]=fe,c[2]=ye,c[3]=$e,c[4]=we,c[5]=ke,c[6]=ve,c[7]=xe,c[8]=Re,c[9]=Ae,c[10]=Ie,c[11]=Se,c[12]=Ee,c[13]=Te,c[14]=Ce,c[15]=Ue,c[16]=Me,c[17]=De,c[18]=Ne,0!==d&&(c[19]=d,a.length++),a};function h(e,t,a){return(new g).mulp(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=u),n.prototype.mulTo=function(e,t){var a,o=this.length+e.length;return a=10===this.length&&10===e.length?p(this,e,t):o<63?u(this,e,t):o<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var o=0,n=0,s=0;s>>26)|0)>>>26,r&=67108863}a.words[s]=i,o=r,r=n}return 0!==o?a.words[s]=o:a.length--,a.strip()}(this,e,t):h(this,e,t),a},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=n.prototype._countBits(e)-1,o=0;o>=1;return o},g.prototype.permute=function(e,t,a,o,n,s){for(var r=0;r>>=1)n++;return 1<>>=13,o[2*r+1]=8191&s,s>>>=13;for(r=2*t;r>=26,t+=n/67108864|0,t+=s>>>26,this.words[o]=67108863&s}return 0!==t&&(this.words[o]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new n(1);for(var a=this,o=0;o=0);var t,o=e%26,n=(e-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var r=0;for(t=0;t>>26-o}r&&(this.words[t]=r,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var s=e%26,r=Math.min((e-s)/26,this.length),i=67108863^67108863>>>s<r)for(this.length-=r,d=0;d=0&&(0!==l||d>=n);d--){var m=0|this.words[d];this.words[d]=l<<26-s|m>>>s,l=m&i}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,o){return a(0===this.negative),this.iushrn(e,t,o)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26,n=1<=0);var t=e%26,o=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==t&&o++,this.length=Math.min(o,this.length),0!==t){var n=67108863^67108863>>>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},n.prototype.isubn=function(e){if(a("number"==typeof e),a(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>26)-(c/67108864|0),this.words[n+o]=67108863&s}for(;n>26,this.words[n+o]=67108863&s;if(0===i)return this.strip();for(a(-1===i),i=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var a=(this.length,e.length),o=this.clone(),s=e,r=0|s.words[s.length-1];0!==(a=26-this._countBits(r))&&(s=s.ushln(a),o.iushln(a),r=0|s.words[s.length-1]);var i,c=o.length-s.length;if("mod"!==t){(i=new n(null)).length=c+1,i.words=new Array(i.length);for(var d=0;d=0;m--){var u=67108864*(0|o.words[s.length+m])+(0|o.words[s.length+m-1]);for(u=Math.min(u/r|0,67108863),o._ishlnsubmul(s,u,m);0!==o.negative;)u--,o.negative=0,o._ishlnsubmul(s,1,m),o.isZero()||(o.negative^=1);i&&(i.words[m]=u)}return i&&i.strip(),o.strip(),"div"!==t&&0!==a&&o.iushrn(a),{div:i||null,mod:o}},n.prototype.divmod=function(e,t,o){return a(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(i=this.neg().divmod(e,t),"mod"!==t&&(s=i.div.neg()),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.iadd(e)),{div:s,mod:r}):0===this.negative&&0!==e.negative?(i=this.divmod(e.neg(),t),"mod"!==t&&(s=i.div.neg()),{div:s,mod:i.mod}):0!=(this.negative&e.negative)?(i=this.neg().divmod(e.neg(),t),"div"!==t&&(r=i.mod.neg(),o&&0!==r.negative&&r.isub(e)),{div:i.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var s,r,i},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),n=e.andln(1),s=a.cmp(o);return s<0||1===n&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){a(e<=67108863);for(var t=67108864%e,o=0,n=this.length-1;n>=0;n--)o=(t*o+(0|this.words[n]))%e;return o},n.prototype.idivn=function(e){a(e<=67108863);for(var t=0,o=this.length-1;o>=0;o--){var n=(0|this.words[o])+67108864*t;this.words[o]=n/e|0,t=n%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s=new n(1),r=new n(0),i=new n(0),c=new n(1),d=0;t.isEven()&&o.isEven();)t.iushrn(1),o.iushrn(1),++d;for(var l=o.clone(),m=t.clone();!t.isZero();){for(var u=0,p=1;0==(t.words[0]&p)&&u<26;++u,p<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(s.isOdd()||r.isOdd())&&(s.iadd(l),r.isub(m)),s.iushrn(1),r.iushrn(1);for(var h=0,g=1;0==(o.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(o.iushrn(h);h-- >0;)(i.isOdd()||c.isOdd())&&(i.iadd(l),c.isub(m)),i.iushrn(1),c.iushrn(1);t.cmp(o)>=0?(t.isub(o),s.isub(i),r.isub(c)):(o.isub(t),i.isub(s),c.isub(r))}return{a:i,b:c,gcd:o.iushln(d)}},n.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var s,r=new n(1),i=new n(0),c=o.clone();t.cmpn(1)>0&&o.cmpn(1)>0;){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)r.isOdd()&&r.iadd(c),r.iushrn(1);for(var m=0,u=1;0==(o.words[0]&u)&&m<26;++m,u<<=1);if(m>0)for(o.iushrn(m);m-- >0;)i.isOdd()&&i.iadd(c),i.iushrn(1);t.cmp(o)>=0?(t.isub(o),r.isub(i)):(o.isub(t),i.isub(r))}return(s=0===t.cmpn(1)?r:i).cmpn(0)<0&&s.iadd(e),s},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var o=0;t.isEven()&&a.isEven();o++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var s=t;t=a,a=s}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(o)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,o=(e-t)/26,n=1<>>26,i&=67108863,this.words[r]=i}return 0!==s&&(this.words[r]=s,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,o=e<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)t=1;else{o&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var o=0|this.words[a],n=0|e.words[a];if(o!==n){on&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new v(e)},n.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function f(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(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)}f.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},f.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},f.prototype.split=function(e,t){e.iushrn(this.n,0,t)},f.prototype.imulK=function(e){return e.imul(this.k)},o(y,f),y.prototype.split=function(e,t){for(var a=4194303,o=Math.min(e.length,9),n=0;n>>22,s=r}s>>>=22,e.words[n-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=o}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new $;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return b[e]=t,t},v.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},v.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var o=this.m.add(new n(1)).iushrn(2);return this.pow(e,o)}for(var s=this.m.subn(1),r=0;!s.isZero()&&0===s.andln(1);)r++,s.iushrn(1);a(!s.isZero());var i=new n(1).toRed(this),c=i.redNeg(),d=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);0!==this.pow(l,d).cmp(c);)l.redIAdd(c);for(var m=this.pow(l,s),u=this.pow(e,s.addn(1).iushrn(1)),p=this.pow(e,s),h=r;0!==p.cmp(i);){for(var g=p,b=0;0!==g.cmp(i);b++)g=g.redSqr();a(b=0;o--){for(var d=t.words[o],l=c-1;l>=0;l--){var m=d>>l&1;s!==a[0]&&(s=this.sqr(s)),0!==m||0!==r?(r<<=1,r|=m,(4===++i||0===o&&0===l)&&(s=this.mul(s,a[r]),i=0,r=0)):i=0}c=26}return s},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new x(e)},o(x,v),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(o).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var a=e.mul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=a.isub(o).iushrn(this.shift),r=s;return s.cmp(this.m)>=0?r=s.isub(this.m):s.cmpn(0)<0&&(r=s.iadd(this.m)),r._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)})),parcelRequire.register("eDvHJ",(function(e,t){ +/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var a,o,n,s,r,i,c,d,l,m,u,p;$parcel$export(e.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(()=>a),(e=>a=e)),$parcel$export(e.exports,"createPortal",(()=>o),(e=>o=e)),$parcel$export(e.exports,"createRoot",(()=>n),(e=>n=e)),$parcel$export(e.exports,"findDOMNode",(()=>s),(e=>s=e)),$parcel$export(e.exports,"flushSync",(()=>r),(e=>r=e)),$parcel$export(e.exports,"hydrate",(()=>i),(e=>i=e)),$parcel$export(e.exports,"hydrateRoot",(()=>c),(e=>c=e)),$parcel$export(e.exports,"render",(()=>d),(e=>d=e)),$parcel$export(e.exports,"unmountComponentAtNode",(()=>l),(e=>l=e)),$parcel$export(e.exports,"unstable_batchedUpdates",(()=>m),(e=>m=e)),$parcel$export(e.exports,"unstable_renderSubtreeIntoContainer",(()=>u),(e=>u=e)),$parcel$export(e.exports,"version",(()=>p),(e=>p=e));var h=parcelRequire("2nFRz"),g=parcelRequire("4PGbE");function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a