@aeternity/aepp-sdk 11.0.0 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aepp-sdk.browser-script.js +1 -1
- package/dist/aepp-sdk.browser-script.js.map +1 -1
- package/dist/aepp-sdk.browser.js +1 -1
- package/dist/aepp-sdk.browser.js.map +1 -1
- package/dist/aepp-sdk.js +1 -1
- package/dist/aepp-sdk.js.map +1 -1
- package/es/ae/contract.mjs +1 -1
- package/es/ae/contract.mjs.map +1 -1
- package/es/channel/index.mjs +1 -1
- package/es/channel/index.mjs.map +1 -1
- package/es/channel/internal.mjs +3 -4
- package/es/channel/internal.mjs.map +1 -1
- package/es/contract/aci.mjs +1 -1
- package/es/contract/aci.mjs.map +1 -1
- package/es/encoder.d.ts +26 -0
- package/es/tx/builder/constants.mjs +108 -0
- package/es/tx/builder/constants.mjs.map +1 -0
- package/es/tx/builder/helpers.mjs +10 -52
- package/es/tx/builder/helpers.mjs.map +1 -1
- package/es/tx/builder/schema.mjs +4 -107
- package/es/tx/builder/schema.mjs.map +1 -1
- package/es/utils/aepp-wallet-communication/rpc/aepp-rpc.mjs +1 -1
- package/es/utils/aepp-wallet-communication/rpc/aepp-rpc.mjs.map +1 -1
- package/es/utils/crypto.mjs +2 -12
- package/es/utils/crypto.mjs.map +1 -1
- package/es/utils/encoder.mjs +106 -0
- package/es/utils/encoder.mjs.map +1 -0
- package/package.json +4 -2
- package/src/ae/contract.js +1 -1
- package/src/channel/index.js +6 -1
- package/src/channel/internal.js +5 -6
- package/src/contract/aci.js +1 -1
- package/src/tx/builder/constants.js +100 -0
- package/src/tx/builder/helpers.js +7 -53
- package/src/tx/builder/schema.js +1 -98
- package/src/utils/aepp-wallet-communication/rpc/aepp-rpc.js +1 -1
- package/src/utils/crypto.js +2 -12
- package/src/utils/encoder.ts +101 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see aepp-sdk.browser-script.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ae=t():e.Ae=t()}(self,(function(){return function(){var e={88449:function(e,t,n){const r=n(7945),o=n(56878),{symbolIdentifier:i}=n(12665);e.exports=(e,t,n)=>{const a=i(e),s=new r(a),c=new o(t,n);return new o([s.type,c.type],[s,c])}},56040:function(e){e.exports=class{constructor(e){this._valueFactory=e}get valueFactory(){return this._valueFactory}supports({_name:e,_valueTypes:t}){return!1}create(e,t){throw new Error("Not implemented.")}}},12320:function(e,t,n){const r=n(44664),o=n(41168),i=n(49205),a=n(3353),s=n(20786),c=n(77211),u=n(34093),A=n(72954);e.exports=class{constructor(){const e=new u(this);this._factories=[new o(this),new i(this),new a(this),new s(this),new c(this),new A(this,e),e]}createMultiple(e,t){return r(t.length===e.length,`Number of types (${e.length}) and values (${t.length}) should match`),((e,...t)=>e.map(((e,n)=>t.reduce(((e,t)=>[...e,t[n]]),[e]))))(e,t).map((e=>this.create(...e)))}create(e,t){const n=this._factories.find((t=>t.supports(e)));return r(n,`Unsupported type: ${JSON.stringify(e)}`),n.create(e,t)}}},72954:function(e,t,n){const{hash:r}=n(12665),{ByteArray2Int:o}=n(80240),i=n(76966),a=n(56040),s=["string","signature","bytes"];e.exports=class extends a{constructor(e,t){super(e),this._variantFactory=t}supports({name:e,_valueTypes:t}){return"event"===e}create({variantType:e},{data:t,topics:n}){const[a,...s]=n;if("bigint"!=typeof a)throw new i(`Event name hash (first topic) should be of type "BigInt", got "${typeof a}" instead.`);const c=e.variants.map((e=>o(r(Object.keys(e)[0])))).findIndex((e=>e===a));if(-1===c)throw new i("Event name hash does not match any event variant constructor");const u=e.variants[c],A=Object.keys(u)[0],[l]=Object.values(u),f=l.map((e=>this._isData(e)?t:s.shift()));return this._variantFactory.create(e,{[A]:f})}_isData(e){return!(!s.includes(e.name)||"bytes"===e.name&&e.size<=32)}}},49205:function(e,t,n){const r=n(51041),o=n(55110),i=n(56040);e.exports=class extends i{supports({name:e,_valueTypes:t}){return"list"===e}create(e,t){if(!Array.isArray(t))throw new o(e.name,`Fate list must be an Array, got ${t} instead`);const n=t.map((t=>this.valueFactory.create(e.valuesType,t)));return new r(e.valuesType,n)}}},3353:function(e,t,n){const r=n(68804),o=n(56040);e.exports=class extends o{supports({name:e,_valueTypes:t}){return"map"===e}create(e,t){const n=[];for(const r of t)n.push([this.valueFactory.create(e.keyType,r[0]),this.valueFactory.create(e.valueType,r[1])]);return new r(e.keyType,e.valueType,n)}}},41168:function(e,t,n){const r=n(43509),o=n(4476),i=n(36313),a=n(7772),s=n(63607),c=n(15779),u=n(43422),A=n(20539),l=n(58623),f=n(96445),h=n(90687),p=n(45070),d=n(56040),g=["int","bool","string","bits","hash","bytes","signature","account_address","contract_address","channel_address","oracle_address","oracle_query_address"];e.exports=class extends d{supports({name:e,_valueTypes:t}){return g.includes(e)}create(e,t){switch(e.name){case"int":return new r(t);case"bool":return new o(t);case"string":return new i(t);case"bits":return new u(t);case"hash":return new a(t);case"bytes":return new c(t,e.valueTypes);case"signature":return new s(t);case"account_address":return new A(t);case"contract_address":return new l(t);case"channel_address":return new f(t);case"oracle_address":return new h(t);case"oracle_query_address":return new p(t);default:throw new Error(`Unsupported type "${e.name}"`)}}}},77211:function(e,t,n){const r=n(56878),o=n(56040);e.exports=class extends o{supports({name:e,_valueTypes:t}){return"record"===e}create(e,t){const n=e.valueTypes.map(((n,r)=>{const o=e.keys[r];return this.valueFactory.create(n,t[o])}));return new r(e.valueTypes,n)}}},20786:function(e,t,n){const r=n(56878),o=n(55110),i=n(56040);e.exports=class extends i{supports({name:e,_valueTypes:t}){return"tuple"===e}create(e,t){if(!Array.isArray(t))throw new o(e.name,`Fate tuple must be an Array, got ${t} instead`);const n=e.valueTypes.map(((e,n)=>this.valueFactory.create(e,t[n])));return new r(e.valueTypes,n)}}},34093:function(e,t,n){const r=n(72457),o=n(55110),i=n(56040),a=["variant","Chain.ttl","AENS.pointee","AENS.name"];e.exports=class extends i{supports({name:e,_valueTypes:t}){return a.includes(e)}create(e,t){if(!this.isValid(t))throw new o(e.name,`Variant should be an object mapping constructor to array of values, got "${t}" instead`);const[n,i]=Object.entries(t)[0],a=e.variants.map((e=>{const[[,t]]=Object.entries(e);return t.length})),s=e.variants.findIndex((e=>{const[[t,r]]=Object.entries(e);return t===n}));if(-1===s)throw new o(e.name,`Unknown variant constructor: ${n}`);const[[,c]]=Object.entries(e.variants[s]);if(i.length!==c.length)throw new o(e.name,`"${n}" variant constructor expects ${c.length} argument(s) but got ${i.length} instead`);const u=this.valueFactory.createMultiple(c,i);return new r(a,s,u,c,e.variants)}isValid(e){return"object"==typeof e&&null!==e&&1===Object.entries(e).length&&Array.isArray(Object.values(e)[0])}}},92968:function(e,t,n){const r=n(68638),o=n(17829),i=n(92540),a=n(12320),s=n(3451),c=n(60880),u=n(51338),A=n(88449),{FateTypeString:l}=n(84265),f=n(17960),h=n(70722);e.exports=class{constructor(e){this._aci=e,this._serializer=new o,this._dataFactory=new a,this._externalDataFactory=new s(new u),this._typeResolver=new i(e),this._internalMapper=new u,this._canonicalMapper=new c}encode(e,t,n){const{types:o,required:i}=this._typeResolver.getCallTypes(e,t);if(n.length>o.length||n.length<i)throw new f(`Non matching number of arguments. ${t} expects between ${i} and ${o.length} number of arguments but got ${n.length}`);for(;n.length<o.length;)n.push(void 0);const a=this._externalDataFactory.createMultiple(o,n),s=A(t,o,a),c=this._serializer.serialize(s),u=new Uint8Array(c.flat(1/0));return"cb_"+r.encode(u)}decode(e,t,n){const r=this._typeResolver.getReturnType(e,t),o=this.decodeString(n);return this._serializer.deserialize(r,o).accept(this._canonicalMapper)}decodeString(e){if(!e.startsWith("cb_"))throw new h("Invalid data format (missing cb_ prefix)");return r.decode(e.substring(3))}decodeFateString(e){const t=this.decodeString(e);return this._serializer.deserialize(l(),t).accept(this._canonicalMapper)}decodeEvent(e,t,n){const r=this.decodeString(t),o=this._typeResolver.getEventType(e),i={topics:n,data:r};return this._dataFactory.create(o,i).accept(this._canonicalMapper)}}},17960:function(e){class t extends Error{constructor(e){super(e),this.name="EncoderError"}}e.exports=t},5462:function(e){class t extends Error{constructor(e){super("Invalid FATE prefix: 0b"+e.toString(2).padStart(8,"0")),this.name="FatePrefixError",this.prefix=e}}e.exports=t},55110:function(e){class t extends Error{constructor(e,t){super(t),this.name="FateTypeError",this.type=e}}e.exports=t},70722:function(e){class t extends Error{constructor(e){super(e),this.name="FormatError"}}e.exports=t},2966:function(e){class t extends Error{constructor(e){super(e),this.name="InternalError"}}e.exports=t},99098:function(e){class t extends Error{constructor(e){super(e),this.name="SerializerError"}}e.exports=t},76966:function(e){class t extends Error{constructor(e){super(e),this.name="TypeResolveError"}}e.exports=t},3451:function(e,t,n){const r=n(12320);e.exports=class extends r{constructor(e){super(),this._mapper=e}create(e,t){const n=this._mapper.toInternal(e,t);return super.create(e,n)}}},12689:function(e,t,n){const r=n(44664),o=n(51041),i=n(56878),{FateTypeTuple:a,FateTypeInt:s}=n(84265),c=(e,t)=>{if(0===e.length)return-1;if(0===t.length)return 1;const n=h(e.itemsType);for(let r=0;r<e.length;r++){if(void 0===t.items[r])return 1;const o=n(e.items[r],t.items[r]);if(0!==o)return o}return e.length===t.length?0:-1},u=e=>{const t=h(e);return(e,n)=>t(e.key,n.key)},A=(e,t)=>{const n=new o(s(),e.valueOf()),r=new o(s(),t.valueOf());return c(n,r)},l=(e,t)=>Number(BigInt(e)-BigInt(t)),f={int:l,bool:(e,t)=>e-t,string:(e,t)=>e.toString().localeCompare(t.toString()),bits:(e,t)=>e<0||t<0?-l(e,t):l(e,t),list:c,tuple:(e,t)=>{if(0===e.size)return-1;const n=e.size-t.size;if(0!==n)return n;for(let n=0;n<e.size;n++){const r=e.valueTypes[n],o=h(r)(e.items[n],t.items[n]);if(0!==o)return o}return 0},variant:(e,t)=>{const n=e.arities.length-t.arities.length;if(0!==n)return n;const r=new o(e.aritiesType,e.arities),s=new o(t.aritiesType,t.arities),c=h(r)(r,s);if(0!==c)return c;const u=e.tag-t.tag;return 0!==u?u:h(a())(new i(e.valueTypes,e.value),new i(t.valueTypes,t.value))},map:(e,t)=>{const n=[...e.items],r=[...t.items];n.sort(u(e.keyType)),r.sort(u(t.keyType));const o=h(e.keyType),i=h(e.valueType);for(let e=0;e<n.length;e++){if(void 0===r[e])return 1;const t=n[e],a=r[e],s=o(t.key,a.key);if(0!==s)return s;const c=i(t.value,a.value);if(0!==c)return c}return n.length===r.length?0:-1},bytes:A,account_address:A,channel_address:A,contract_address:A,oracle_query_address:A,oracle_address:A},h=e=>(r(e.hasOwnProperty("name"),`Cannot determine type name of ${JSON.stringify(e)}`),r(f.hasOwnProperty(e.name),`Unsupported comparator for ${e.name}`),f[e.name]);e.exports=h},20105:function(e){e.exports=Object.freeze({SMALL_INT:0,LONG_STRING:1,SHORT_STRING:1,SHORT_LIST:3,LONG_TUPLE:11,SHORT_TUPLE:11,LONG_LIST:31,MAP:47,EMPTY_TUPLE:63,POS_BITS:79,EMPTY_STRING:95,POS_BIG_INT:111,FALSE:127,OBJECT:159,VARIANT:175,MAP_ID:191,NEG_BITS:207,EMPTY_MAP:223,NEG_BIG_INT:239,TRUE:255,OTYPE_ADDRESS:0,OTYPE_BYTES:1,OTYPE_CONTRACT:2,OTYPE_ORACLE:3,OTYPE_ORACLE_QUERY:4,OTYPE_CHANNEL:5})},84265:function(e){const t=e=>({name:"tuple",valueTypes:e}),n=(e,t)=>({name:"map",keyType:e,valueType:t}),r=(e,n,r)=>({name:"variant",aritiesType:{name:"int"},arities:e,variantType:t(n),variants:r}),o=()=>r(0,null,[{RelativeTTL:[{name:"int"}]},{FixedTTL:[{name:"int"}]}]),i=()=>r(0,null,[{"AENS.AccountPt":[{name:"account_address"}]},{"AENS.OraclePt":[{name:"account_address"}]},{"AENS.ContractPt":[{name:"account_address"}]},{"AENS.ChannelPt":[{name:"account_address"}]}]);e.exports={FateTypeVoid:()=>({name:"void"}),FateTypeInt:()=>({name:"int"}),FateTypeBool:()=>({name:"bool"}),FateTypeString:()=>({name:"string"}),FateTypeBits:()=>({name:"bits"}),FateTypeBytes:e=>({name:"bytes",size:e}),FateTypeHash:()=>({name:"hash"}),FateTypeSignature:()=>({name:"signature"}),FateTypeAccountAddress:()=>({name:"account_address"}),FateTypeContractAddress:()=>({name:"contract_address"}),FateTypeOracleAddress:(e,t)=>({name:"oracle_address",questionType:e,answerType:t}),FateTypeOracleQueryAddress:(e,t)=>({name:"oracle_query_address",questionType:e,answerType:t}),FateTypeByteArray:()=>({name:"byte_array"}),FateTypeList:e=>({name:"list",valuesType:e}),FateTypeTuple:t,FateTypeRecord:(e,t)=>({name:"record",keys:e,valueTypes:t}),FateTypeMap:n,FateTypeVariant:r,FateTypeOption:e=>r(0,null,[{None:[]},{Some:e}]),FateTypeChainTTL:o,FateTypeChainGAMetaTx:()=>r(0,null,[{"Chain.GAMetaTx":[{name:"account_address"},{name:"int"}]}]),FateTypeChainPayingForTx:()=>r(0,null,[{"Chain.PayingForTx":[{name:"account_address"},{name:"int"}]}]),FateTypeChainBaseTx:()=>r(0,null,[{"Chain.SpendTx":[{name:"account_address"},{name:"int"},{name:"string"}]},{"Chain.OracleRegisterTx":[]},{"Chain.OracleQueryTx":[]},{"Chain.OracleResponseTx":[]},{"Chain.OracleExtendTx":[]},{"Chain.NamePreclaimTx":[]},{"Chain.NameClaimTx":[{name:"string"}]},{"Chain.NameUpdateTx":[{name:"hash"}]},{"Chain.NameRevokeTx":[{name:"hash"}]},{"Chain.NameTransferTx":[{name:"account_address"},{name:"hash"}]},{"Chain.ChannelCreateTx":[{name:"account_address"}]},{"Chain.ChannelDepositTx":[{name:"account_address"},{name:"int"}]},{"Chain.ChannelWithdrawTx":[{name:"account_address"},{name:"int"}]},{"Chain.ChannelForceProgressTx":[{name:"account_address"}]},{"Chain.ChannelCloseMutualTx":[{name:"account_address"}]},{"Chain.ChannelCloseSoloTx":[{name:"account_address"}]},{"Chain.ChannelSlashTx":[{name:"account_address"}]},{"Chain.ChannelSettleTx":[{name:"account_address"}]},{"Chain.ChannelSnapshotSoloTx":[{name:"account_address"}]},{"Chain.ContractCreateTx":[{name:"account_address"}]},{"Chain.ContractCallTx":[{name:"account_address"},{name:"int"}]},{"Chain.GAAttachTx":[]}]),FateTypeAENSPointee:i,FateTypeAENSName:()=>{const e=[{"AENS.Name":[{name:"account_address"},o(),n({name:"string"},i())]}];return r(0,null,e)},FateTypeEvent:e=>({name:"event",variantType:e})}},60880:function(e,t,n){const r=n(92727);e.exports=class{visitData(e){return e.valueOf()}visitAddress(e){return e.prefix+"_"+r.encode(e.value)}visitList(e){return e.items.map((e=>e.accept(this)))}visitMap(e){const t=new Map;for(const[n,r]of e.iterator)t.set(n.accept(this),r.accept(this));return t}visitTuple(e){return e.prepareItems((e=>e.accept(this)))}visitVariant(e){if("None"===e.variantName)return;const t=e.value.map((e=>e.accept(this)));return"Some"===e.variantName?t[0]:{[e.variantName]:t}}}},51338:function(e,t,n){const r=n(92727),o=n(55110),i={account_address:"ak",contract_address:"ct",channel_address:"ch",oracle_address:"ok",oracle_query_address:"oq"};e.exports=class{toInternal(e,t){switch(e.name){case"account_address":case"contract_address":case"channel_address":case"oracle_address":case"oracle_query_address":return this.toAddress(e,t);case"variant":return this.toVariant(e,t);case"map":return this.toMap(e,t);default:return t}}toAddress({name:e,_:t},n){const a=n.toString(),s=i[e];if(!a.startsWith(s+"_"))throw new o(e,`Address should start with ${s}_, got ${a} instead`);return r.decode(a.substring(s.length+1))}toVariant(e,t){if(!this.isOptionVariant(e))return t;if([void 0,null].includes(t))return{None:[]};const[n]=Object.keys(t);return["Some","None"].includes(n)?t:{Some:[t]}}isOptionVariant({_name:e,variants:t}){return t.some((({None:e})=>e&&0===e.length))&&t.some((({Some:e})=>e))}toMap(e,t){if("object"!=typeof t||null===t)throw new o("map",`Fate map must be one of: Map, Array, Object; got ${t} instead`);return Array.isArray(t)||t instanceof Map?t:Object.entries(t)}}},17829:function(e,t,n){const r=n(52584),o=n(69865),i=n(68268),a=n(59135),s=n(21290),c=n(4857),u=n(28183),A=n(66651),l=n(13234),f=n(44150),h=n(42086),p=n(34),d=n(62137),g=n(70692),y=n(54266),m=n(51751),I=n(26973),v=n(46178),w=n(69503),E=n(99098);e.exports=class extends i{constructor(){super(),this.typeFactory=new r,this._serializers={void:new p,bool:new c,int:new h,tuple:new v(this),record:new v(this),list:new d(this),map:new g(this),byte_array:new u,string:new I,hash:new A,signature:new A,bits:new s,variant:new w(this),bytes:new A,account_address:new a,contract_address:new f,oracle_address:new m,oracle_query_address:new y,channel_address:new l}}_getSerializer(e){if(!e.hasOwnProperty("name"))throw new E("Unsupported type: "+JSON.stringify(e));const t=e.name;if(!this._serializers.hasOwnProperty(t))throw new E("Unsupported type: "+JSON.stringify(t));return this._serializers[t]}serialize(e){if("object"!=typeof e)throw new E("Only object serialization is supported. Got: "+JSON.stringify(e));if(!(e instanceof o))throw new E("Only instances of FateData is supported.");return this._getSerializer(e).serialize(e)}deserialize(e,t){if(!(t instanceof Uint8Array))throw new E("Only instances of Uint8Array is supported.");return this._getSerializer(e).deserialize(t,e)}deserializeStream(e,t){if(!(e instanceof Uint8Array))throw new E("Only instances of Uint8Array is supported.");let n=t;return void 0===t&&(n=this.typeFactory.createType(e)),this._getSerializer(n).deserializeStream(e,t)}}},59135:function(e,t,n){const r=n(6636),o=n(20105),i=n(68268),a=n(20539);e.exports=class extends i{serialize(e){return[o.OBJECT,o.OTYPE_ADDRESS,...r.encode(e.value)]}deserializeStream(e){const t=new Uint8Array(e),n=r.decode(t.slice(2),!0);return[new a(n.data),new Uint8Array(n.remainder)]}}},68268:function(e,t,n){const r=n(99098);e.exports=class{constructor(e){this.globalSerializer=e}serialize(e){throw new r("Not implemented.")}deserialize(e,t){const[n,r]=this.deserializeStream(e,t);return n}deserializeStream(e,t){throw new r("Not implemented.")}}},21290:function(e,t,n){const r=n(6636),o=n(20105),i=n(77138),a=n(43422),s=n(68268),{ByteArray2Int:c}=n(80240),u=n(99475);e.exports=class extends s{serialize(e){return[e.value>=0?o.POS_BITS:o.NEG_BITS,...i(u(e.value))]}deserializeStream(e){const t=new Uint8Array(e),n=t[0]===o.POS_BITS?1n:-1n,i=r.decode(t.slice(1),!0),s=c(i.data);return[new a(s*n),new Uint8Array(i.remainder)]}}},4857:function(e,t,n){const r=n(20105),o=n(4476),i=n(68268),a=n(5462);e.exports=class extends i{serialize(e){return!0===e.valueOf()?[r.TRUE]:[r.FALSE]}deserializeStream(e){const t=new Uint8Array(e),n=t[0],i=t.slice(1);if(n===r.TRUE)return[new o(!0),i];if(n===r.FALSE)return[new o(!1),i];throw new a(n)}}},28183:function(e,t,n){const r=n(20105),o=n(68268),i=n(7945),a=new(n(42086));e.exports=class extends o{serialize(e){return 0===e.length?[r.EMPTY_STRING]:e.length<64?[e.length<<2|r.SHORT_STRING,...e.valueOf()]:[r.LONG_STRING,...a.serialize(e.length-64),...e.valueOf()]}deserializeStream(e){const t=new Uint8Array(e),n=t[0];if(n===r.EMPTY_STRING)return[new i,t.slice(1)];if(n===r.LONG_STRING){const[e,n]=a.deserializeStream(t.slice(1)),r=Number(e.valueOf())+64;return[new i(n.slice(0,r)),n.slice(r)]}const o=1+(n>>2);return[new i(t.slice(1,o)),t.slice(o)]}}},66651:function(e,t,n){const r=n(20105),o=n(28183),i=n(15779),a=n(68268),s=new o;e.exports=class extends a{serialize(e){return[r.OBJECT,r.OTYPE_BYTES,...s.serialize(e.value)]}deserializeStream(e){const t=new Uint8Array(e),[n,r]=s.deserializeStream(t.slice(2));return[new i(n.valueOf()),r]}}},13234:function(e,t,n){const r=n(6636),o=n(20105),i=n(68268),a=n(96445);e.exports=class extends i{serialize(e){return[o.OBJECT,o.OTYPE_CHANNEL,...r.encode(e.value)]}deserializeStream(e){const t=new Uint8Array(e),n=r.decode(t.slice(2),!0);return[new a(n.data),new Uint8Array(n.remainder)]}}},44150:function(e,t,n){const r=n(6636),o=n(20105),i=n(68268),a=n(58623);e.exports=class extends i{serialize(e){return[o.OBJECT,o.OTYPE_CONTRACT,...r.encode(e.value)]}deserializeStream(e){const t=new Uint8Array(e),n=r.decode(t.slice(2),!0);return[new a(n.data),new Uint8Array(n.remainder)]}}},42086:function(e,t,n){const r=n(6636),o=n(20105),i=n(77138),a=n(43509),s=n(68268),{ByteArray2Int:c}=n(80240),u=n(5462),A=n(99475);e.exports=class extends s{serialize(e){const t=e instanceof a?e.value:BigInt(e),n=A(t);if(n<64){const e=Number(n);return t>=0?[e<<1]:[254&(128|e<<1)]}return t<0?[o.NEG_BIG_INT,...i(n-64n)]:[o.POS_BIG_INT,...i(n-64n)]}deserializeStream(e){const t=new Uint8Array(e),n=t[0];if(0==(1&n))return 0==(128&n)?[new a(n>>1),t.slice(1)]:[new a(-((126&n)>>1)),t.slice(1)];if(n===o.POS_BIG_INT||n===o.NEG_BIG_INT){const e=n===o.POS_BIG_INT?1n:-1n,i=r.decode(t.slice(1),!0),s=c(i.data);return[new a((s+64n)*e),new Uint8Array(i.remainder)]}throw new u(n)}}},62137:function(e,t,n){const r=n(20105),o=n(43509),i=n(51041),a=n(68268);e.exports=class extends a{serialize(e){const t=e.items.map((e=>this.globalSerializer.serialize(e))).flat(1/0),n=e.items.length;return n<16?[n<<4|r.SHORT_LIST,...t]:[r.LONG_LIST,...this.globalSerializer.serialize(new o(n-16)),...t]}deserializeStream(e,t){const n=new Uint8Array(e),o=n[0];let a,s,c=0n,u=n.slice(1);o===r.LONG_LIST&&([c,u]=this.globalSerializer.deserializeStream(n.slice(1)),c+=16n),(15&o)===r.SHORT_LIST&&(c=BigInt((240&o)>>4)),void 0!==t&&(a=t.valuesType);const A=[];for(let e=0n;e<c;e++)[s,u]=this.globalSerializer.deserializeStream(u,a),A.push(s);return 0n===c?[new i(null),u]:(void 0===t&&(a=A[0].type),[new i(a,A),u])}}},70692:function(e,t,n){const r=n(6636),o=n(20105),i=n(77138),a=n(68268),{ByteArray2Int:s}=n(80240),c=n(12689),u=n(68804),A=n(5462);e.exports=class extends a{serialize(e){const t=e.length,n=c(e.keyType),r=[...e.items];r.sort(((e,t)=>n(e.key,t.key)));const a=r.map((e=>[this.globalSerializer.serialize(e.key),this.globalSerializer.serialize(e.value)]));return[o.MAP,...i(t),...a.flat(1/0)]}deserializeStream(e,t){const n=new Uint8Array(e),i=n[0];if(i!==o.MAP)throw new A(i);const a=r.decode(n.slice(1),!0),c=s(a.data);let l,f,h=a.remainder;if(0n===c)return[new u,h];void 0!==t&&({keyType:l,valueType:f}=t);const p=[];for(let e=0n;e<c;e++){const[e,t]=this.globalSerializer.deserializeStream(h,l),[n,r]=this.globalSerializer.deserializeStream(t,f);p.push([e,n]),h=r}const d=p[0];return void 0===t&&(l=d[0].type,f=d[1].type),[new u(l,f,p),h]}}},54266:function(e,t,n){const r=n(6636),o=n(20105),i=n(68268),a=n(45070);e.exports=class extends i{serialize(e){return[o.OBJECT,o.OTYPE_ORACLE_QUERY,...r.encode(e.value)]}deserializeStream(e){const t=new Uint8Array(e),n=r.decode(t.slice(2),!0);return[new a(n.data),new Uint8Array(n.remainder)]}}},51751:function(e,t,n){const r=n(6636),o=n(20105),i=n(68268),a=n(90687);e.exports=class extends i{serialize(e){return[o.OBJECT,o.OTYPE_ORACLE,...r.encode(e.value)]}deserializeStream(e){const t=new Uint8Array(e),n=r.decode(t.slice(2),!0);return[new a(n.data),new Uint8Array(n.remainder)]}}},26973:function(e,t,n){const r=n(20105),o=n(68268),i=n(28183),a=n(36313),s=n(5462),c=new i;e.exports=class extends o{serialize(e){const t=(new TextEncoder).encode(e);return c.serialize(t)}deserializeStream(e){const t=new Uint8Array(e),n=t[0];if((3&n)!==r.SHORT_STRING&&![r.EMPTY_STRING,r.LONG_STRING].includes(n))throw new s(n);const o=new TextDecoder,[i,u]=c.deserializeStream(t);return[new a(o.decode(i.valueOf())),u]}}},46178:function(e,t,n){const r=n(20105),o=n(43509),i=n(56878),a=n(68268);e.exports=class extends a{serialize(e){const t=e.size;if(0===t)return[r.EMPTY_TUPLE];const n=e.items.map((e=>this.globalSerializer.serialize(e))).flat(1/0);return t<16?[t<<4|r.SHORT_TUPLE,...n]:[r.LONG_TUPLE,...this.globalSerializer.serialize(new o(t-16)),...n]}deserializeStream(e,t){const n=new Uint8Array(e),o=n[0];let a=0n,s=n.slice(1);if(o===r.EMPTY_TUPLE)return[new i,s];(15&o)===r.SHORT_TUPLE&&(a=(240&o)>>4),o===r.LONG_TUPLE&&([a,s]=this.globalSerializer.deserializeStream(n.slice(1)),a+=16n);let c=[];void 0!==t&&(c=t.valueTypes);const u=[];let A=null;for(let e=0n;e<a;e++)[A,s]=this.globalSerializer.deserializeStream(s,c[e]),u.push(A);let l=t;return void 0===t&&(l=u.map((e=>e.type))),[new i(l,u),s]}}},69503:function(e,t,n){const r=n(6636),o=n(20105),i=n(56878),a=n(72457),s=n(68268);e.exports=class extends s{serialize(e){const t=new i(e.valueTypes,e.value);return[o.VARIANT,...r.encode(new Uint8Array(e.arities)),e.tag,...this.globalSerializer.serialize(t)]}deserializeStream(e,t){const n=new Uint8Array(e),o=r.decode(n.slice(1),!0),i=[...o.data],s=o.remainder[0],c=o.remainder.slice(1);let u,A=[];void 0!==t&&(A=t.variants,u={...t.variantType,valueTypes:Object.values(t.variants[s])[0]});const[l,f]=this.globalSerializer.deserializeStream(c,u);return[new a(i,s,l.items,l.valueTypes,A),f]}}},34:function(e,t,n){const r=n(19713),o=n(68268);e.exports=class extends o{serialize(){return""}deserialize(){return new r}deserializeStream(e){return[new r,e]}}},52584:function(e,t,n){const r=n(44664),o=n(20105),i=n(5462),{FateTypeInt:a,FateTypeBool:s,FateTypeString:c,FateTypeBits:u,FateTypeBytes:A,FateTypeAccountAddress:l,FateTypeContractAddress:f,FateTypeOracleAddress:h,FateTypeOracleQueryAddress:p,FateTypeList:d,FateTypeMap:g,FateTypeTuple:y,FateTypeVariant:m}=n(84265),I={0:l(),1:A(),2:f(),3:h(),4:p()};e.exports=class{createType(e){const t=e[0];if(t===o.TRUE||t===o.FALSE)return s();if((1&t)===o.SMALL_INT||t===o.POS_BIG_INT||t===o.NEG_BIG_INT)return a();if((3&t)===o.SHORT_STRING||t===o.LONG_STRING)return c();if((15&t)===o.SHORT_LIST||t===o.LONG_LIST)return d();if((15&t)===o.SHORT_TUPLE||t===o.LONG_TUPLE||t===o.EMPTY_TUPLE)return y();if(t===o.MAP||t===o.EMPTY_MAP)return g();if(t===o.POS_BITS||t===o.NEG_BITS)return u();if(t===o.VARIANT)return m();if(t===o.OBJECT){const t=e[1];return r(I.hasOwnProperty(t),`Unsupported object type "${t}"`),I[t]}throw new i(t)}}},92540:function(e,t,n){const r=n(76966),{FateTypeVoid:o,FateTypeInt:i,FateTypeBool:a,FateTypeString:s,FateTypeBits:c,FateTypeBytes:u,FateTypeHash:A,FateTypeSignature:l,FateTypeAccountAddress:f,FateTypeContractAddress:h,FateTypeOracleAddress:p,FateTypeOracleQueryAddress:d,FateTypeList:g,FateTypeMap:y,FateTypeTuple:m,FateTypeRecord:I,FateTypeVariant:v,FateTypeOption:w,FateTypeChainTTL:E,FateTypeChainGAMetaTx:B,FateTypeChainPayingForTx:C,FateTypeChainBaseTx:b,FateTypeAENSPointee:Q,FateTypeAENSName:x,FateTypeEvent:_}=n(84265),S=e=>e&&"object"==typeof e&&e.constructor===Object,T=({type:e})=>{let t,n=e;return S(n)&&([[n,t]]=Object.entries(n)),"option"===n};e.exports=class{constructor(e){this.aci=e}getCallTypes(e,t){const n=this.getNamespaceAci(e).functions.find((e=>e.name===t));if(n){const e=n.arguments.map((e=>this.resolveType(e.type))),t=n.arguments.filter(T);return{types:e,required:e.length-t.length}}if("init"===t)return{types:[],required:0};throw new r(`Unknown function ${t}`)}getReturnType(e,t){if("init"===t)return this.resolveType("void");const n=this.getNamespaceAci(e).functions.find((e=>e.name===t));if(!n)throw new r(`Unknown function ${t}`);return this.resolveType(n.returns)}getEventType(e){const t=this.getNamespaceAci(e);if(!t.hasOwnProperty("event"))throw new r("Missing event declaration");return _(this.resolveType(t.event))}isCustomType(e){if("string"!=typeof e)return!1;const[t,n]=e.split(".");return!!this.getNamespaceAci(t)}getNamespaceAci(e){for(const t of this.aci){const[[n,r]]=Object.entries(t);if(r.name===e)return r}return null}resolveType(e,t={}){let n=e,I=[],v=[];if(S(e)&&([[n,I]]=Object.entries(e)),this.isCustomType(n)){const[e,t]=this.resolveTypeDef(n,I);return this.resolveType(e,t)}if(Array.isArray(I)&&"record"!==n&&"variant"!==n&&(v=I.map((e=>this.resolveType(e)))),"void"===n)return o();if("int"===n)return i();if("bool"===n)return a();if("string"===n)return s();if("bits"===n)return c();if("hash"===n)return A();if("signature"===n)return l();if("address"===n)return f();if("contract_address"===n)return h();if("Chain.ttl"===n)return E();if("Chain.ga_meta_tx"===n)return B();if("Chain.paying_for_tx"===n)return C();if("Chain.base_tx"===n)return b();if("AENS.pointee"===n)return Q();if("AENS.name"===n)return x();if("bytes"===n)return u(I);if("list"===n)return g(...v);if("tuple"===n)return m(v);if("map"===n)return y(...v);if("record"===n)return this.resolveRecord(I);if("variant"===n)return this.resolveVariant(I,t);if("option"===n)return w(v);if("oracle"===n)return p(...v);if("oracle_query"===n)return d(...v);throw new r("Cannot resolve type: "+JSON.stringify(e))}resolveVariant(e,t){const n=e.map((e=>{const[[n,r]]=Object.entries(e);return{[n]:r.map((e=>{const n=t.hasOwnProperty(e)?t[e]:e;return this.resolveType(n,t)}))}}));return v(0,null,n)}resolveRecord(e){const t=e.map((e=>e.name)),n=e.map((e=>this.resolveType(e.type)));return I(t,n)}resolveTypeDef(e,t=[]){const[n,o]=e.split("."),i=this.getNamespaceAci(n);if(!i)throw new r("Unknown namespace for "+JSON.stringify(e));if(i.name===e)return["contract_address",[]];const a=[...i.type_defs,...i.state?[{name:"state",typedef:i.state,vars:[]}]:[]].find((e=>e.name===o));if(!a)throw new r("Unknown type definition: "+JSON.stringify(e));const s={};return a.vars.forEach(((e,n)=>{const[[r,o]]=Object.entries(e);s[o]=t[n]})),[s.hasOwnProperty(a.typedef)?s[a.typedef]:a.typedef,s]}}},23023:function(e,t,n){const r=n(92968);e.exports={Encoder:r}},20539:function(e,t,n){const r=n(86187);e.exports=class extends r{constructor(e){super(e,"account_address","ak")}}},86187:function(e,t,n){const r=n(15779);e.exports=class extends r{constructor(e,t,n){super(e,32,t),this._prefix=n}get prefix(){return this._prefix}accept(e){return e.visitAddress(this)}}},43422:function(e,t,n){const r=n(69865);e.exports=class extends r{constructor(e){super("bits"),this._value=BigInt(e)}get value(){return this._value}valueOf(){return this._value}}},4476:function(e,t,n){const r=n(69865),{FateTypeBool:o}=n(84265);e.exports=class extends r{constructor(e){super("bool"),this._value=!!e}get value(){return this._value}get type(){return o()}valueOf(){return this._value}}},7945:function(e,t,n){const r=n(69865),{FateTypeByteArray:o}=n(84265);e.exports=class extends r{constructor(e=[]){super("byte_array"),this._value=new Uint8Array(e)}get length(){return this._value.length}get type(){return o()}valueOf(){return this._value}}},15779:function(e,t,n){const r=n(69865),{Int2ByteArray:o}=n(80240),i=n(30381),a=n(55110);e.exports=class extends r{constructor(e,t,n="bytes"){if(super(n),this._value=((e,t=0)=>{if(Array.isArray(e)||ArrayBuffer.isView(e))return new Uint8Array(e);if("string"==typeof e)return i(e);if("bigint"!=typeof e&&!Number.isInteger(e))throw new a("byte_array",`Should be one of: Array, ArrayBuffer, hex string, Number, BigInt; got ${e} instead`);const n=o(e);if(n.length>=t)return n;const r=new Uint8Array(t);return r.set(n,t-n.length),r})(e,t),t&&this._value.byteLength!==t)throw new a(n,`Invalid length: got ${this._value.byteLength} bytes instead of ${t} bytes`);this._size=t}get value(){return this._value}get size(){return this._size}valueOf(){return this._value}}},96445:function(e,t,n){const r=n(86187);e.exports=class extends r{constructor(e){super(e,"channel_address","ch")}}},58623:function(e,t,n){const r=n(86187);e.exports=class extends r{constructor(e){super(e,"contract_address","ct")}}},69865:function(e,t,n){const r=n(2966);e.exports=class{constructor(e){this.name=e}valueOf(){throw new r("Not implemented.")}accept(e){return e.visitData(this)}}},7772:function(e,t,n){const r=n(15779);e.exports=class extends r{constructor(e){super(e,32,"hash")}}},43509:function(e,t,n){const r=n(69865),{FateTypeInt:o}=n(84265);e.exports=class extends r{constructor(e){super("int"),this._value=BigInt(e)}get value(){return this._value}get type(){return o()}valueOf(){return this._value}}},51041:function(e,t,n){const r=n(69865),{FateTypeList:o}=n(84265);e.exports=class extends r{constructor(e,t=[]){super("list"),this._itemsType=e,this.items=Array.from(t)}get itemsType(){return this._itemsType}get type(){return o(this.itemsType)}get length(){return this.items.length}valueOf(){return this.items.map((e=>e.valueOf()))}accept(e){return e.visitList(this)}}},68804:function(e,t,n){const r=n(69865),{FateTypeMap:o}=n(84265),i=e=>{const[t,n]=e;return{key:t,value:n}};e.exports=class extends r{constructor(e,t,n=[]){super("map"),this._keyType=e,this._valueType=t,this._type=o(e,t),this._value=new Map(n)}get items(){return[...this._value.entries()].map(i)}get keyType(){return this._keyType}get valueType(){return this._valueType}get type(){return this._type}get length(){return this._value.size}get iterator(){return this._value[Symbol.iterator]()}valueOf(){const e=new Map;for(const[t,n]of this.iterator)e.set(t.valueOf(),n.valueOf());return e}accept(e){return e.visitMap(this)}}},90687:function(e,t,n){const r=n(86187);e.exports=class extends r{constructor(e){super(e,"oracle_address","ok")}}},45070:function(e,t,n){const r=n(86187);e.exports=class extends r{constructor(e){super(e,"oracle_query_address","oq")}}},63607:function(e,t,n){const r=n(15779);e.exports=class extends r{constructor(e){super(e,64,"signature")}}},36313:function(e,t,n){const r=n(69865),{FateTypeString:o}=n(84265);e.exports=class extends r{constructor(e){super("string"),this._value=e.toString()}get type(){return o()}toString(){return this._value}valueOf(){return this._value}}},56878:function(e,t,n){const r=n(69865),{FateTypeTuple:o}=n(84265);e.exports=class extends r{constructor(e=[],t=[]){super("tuple"),this._valueTypes=e.hasOwnProperty("valueTypes")?e.valueTypes:e,this._type=Array.isArray(e)?o(e):e,this._items=Array.from(t)}get valueTypes(){return this._valueTypes}get type(){return this._type}get size(){return this._items.length}get items(){return this._items}valueOf(){return this.prepareItems((e=>e.valueOf()))}prepareItems(e){const t=this._items.map(e);return"record"===this._type.name?(n=this._type.keys,r=t,n.reduce(((e,t,n)=>(e[t]=r[n],e)),{})):t;var n,r}accept(e){return e.visitTuple(this)}}},72457:function(e,t,n){const r=n(69865),{FateTypeVariant:o,FateTypeTuple:i,FateTypeInt:a}=n(84265);e.exports=class extends r{constructor(e,t,n=[],r=[],i=[]){super("variant"),this.arities=Array.from(e),this._tag=t,this._value=n,this._valueTypes=r,this._type=o(e,r,i)}get valueTypes(){return this._valueTypes}get type(){return this._type}get tag(){return this._tag}get value(){return this._value}get aritiesType(){return a()}get variantType(){return i(this._valueTypes)}get variants(){return this._type.variants}get variantName(){const e=this.variants[this.tag];return Object.keys(e)[0]}valueOf(){if(0===this.variants.length)return this;const e=this._value.map((e=>e.valueOf()));return{[this.variantName]:e}}accept(e){return e.visitVariant(this)}}},19713:function(e,t,n){const r=n(69865),{FateTypeVoid:o}=n(84265);e.exports=class extends r{constructor(){super("void"),this._value=void 0}get value(){return this._value}get type(){return o()}valueOf(){return this._value}}},30381:function(e,t,n){const r=n(70722);e.exports=e=>{const t=e.match(/^(0x)?([a-f0-9]*)$/i);if(!t)throw new r(`Invalid hex string: ${e}`);return new Uint8Array(t[2].split(/(.{1,2})/).filter((e=>e)).map((e=>parseInt(e,16))))}},80240:function(e){const t=e=>{const n=BigInt(e);return n<256n?new Uint8Array([Number(n)]):new Uint8Array([...t(n>>8n),Number(0xffn&n)])};e.exports={Int2ByteArray:t,ByteArray2Int:e=>{const t=[];return e.forEach((e=>{let n=e.toString(16);n.length%2&&(n="0"+n),t.push(n)})),BigInt("0x"+t.join(""))}}},77138:function(e,t,n){const r=n(6636),{Int2ByteArray:o}=n(80240);e.exports=function(e){return new Uint8Array(r.encode(o(e)))}},99475:function(e){e.exports=e=>e>0?e:-1n*e},44664:function(e,t,n){const r=n(2966);e.exports=(e,t)=>{if(!e)throw new r(t)}},92727:function(e,t,n){const r=n(77191),{addChecksum:o,getPayload:i}=n(68638);e.exports={encode:e=>r.encode(o(e)),decode:e=>i(r.decode(e))}},68638:function(e,t,n){const r=n(89072),{Buffer:o}=n(89509),i=n(70722),a=e=>r("sha256").update(e).digest(),s=e=>a(a(e)).slice(0,4),c=e=>{const t=o.from(e),n=s(e);return o.concat([t,n],t.length+4)},u=e=>{const t=e.slice(0,-4),n=e.slice(-4),r=s(t);if(!n.equals(r))throw new i("Invalid checksum");return t};e.exports={addChecksum:c,getPayload:u,encode:e=>c(e).toString("base64"),decode:e=>u(o.from(e,"base64"))}},12665:function(e,t,n){const r=n(27871),o=e=>Array.from(r.blake2b(e,null,32));e.exports={hash:o,symbolIdentifier:e=>o(e).slice(0,4)}},19250:function(e,t,n){var r=n(48764).Buffer;e.exports=(()=>{var e={721:function(e,t){e.exports="AGFzbQEAAAABkwESYAF/AX9gA39/fwF/YAJ/fwBgAn9/AX9gAX8AYAR/f39/AX9gA39/fwBgBH9/f38AYAJ/fgBgAn5/AX5gAn5+AX5gBX9/f39/AGAAAGAGf3x/f39/AX9gCH9/f39/f39/AX9gEX9/f39/f39/f39/f39/f39/AX9gBn9/f39/fwF/YA1/f39/f39/f39/f39/AX8CDQIBYQFhAAABYQFiAAEDPTwJCgECAQIEAAABAAsGAAEHAQIAAwICAwIIAAIDAAcMAwYABQAEBgAABQUAAQECBAEBCAABDg8EEAAFEQMEBQFwAQMDBQcBAYAC//8BBgkBfwFBoKLAAgsHMQwBYwIAAWQAIAFlADwBZgAJAWcACAFoADsBaQA6AWoAOQFrAQABbAA3AW0ANgFuADQJCAEAQQELAgs1CoeyATwIACAAIAGtigseACAAIAF8IABCAYZC/v///x+DIAFC/////w+DfnwLgQQBA38gAkGABE8EQCAAIAEgAhABGiAADwsgACACaiEDAkAgACABc0EDcUUEQAJAIABBA3FFBEAgACECDAELIAJFBEAgACECDAELIAAhAgNAIAIgAS0AADoAACABQQFqIQEgAkEBaiICQQNxRQ0BIAIgA0kNAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgACADQQRrIgRLBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAsZAAJAIABFDQBB8BwoAgBF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dGogB0EKdGohByABIAhBCnRqIQkCQCADKAIEQRBGBEAgASACQQp0aiAHIAlBABARDAELIAEgAkEKdGohASAEKAIARQRAIAEgByAJQQAQEQwBCyABIAcgCUEBEBELIApBAWoiCiADKAIQTw0BIAhBAWohCCACQQFqIQEgAygCFCECDAALAAsgBkGAGGokACADKAIYIgUhAiAMQQFqIgwgBUkNAAsLIAIhASALQQFqIgtBBEcNAAsgDUEBaiINIAMoAghJDQALCyAEQSBqJABBACEBCyABIgINACMAQYAQayIBJAAgAEUgA0VyRQRAIAFBgAhqIAMoAgAgAygCFEEKdGpBgAhrEBcgAygCGEECTwRAQQEhAgNAIAFBgAhqIAMoAgAgAygCFCIEIAIgBGxqQQp0akGACGsQFiACQQFqIgIgAygCGEkNAAsLIAFBgAhqIQRBACECA0AgASACQQN0IgVqIAQgBWopAwAQMyACQQFqIgJBgAFHDQALIAAoAgAgACgCBCABQYAIEB8gBEGACBAFIAFBgAgQBSADKAIAIgIgAygCDEEKdCIEEAUCQCAAKAJAIgAEQCACIAQgABECAAwBCyACEAgLCyABQYAQaiQAQQAhAgsgA0EwaiQAIAILJwEBfwJAAkACQAJAIAAOAwABAgMLQdATDwtBixEPC0GeEyEBCyABC48DAQF/IwBBgANrIgQkACAEQQA2AowBIARBjAFqIAEQBwJAIAFBwABNBEAgBEGQAWogARAYQQBIDQEgBEGQAWogBEGMAWpBBBAGQQBIDQEgBEGQAWogAiADEAZBAEgNASAEQZABaiAAIAEQEhoMAQsgBEGQAWpBwAAQGEEASA0AIARBkAFqIARBjAFqQQQQBkEASA0AIARBkAFqIAIgAxAGQQBIDQAgBEGQAWogBEFAa0HAABASQQBIDQAgACAEKQNANwAAIAAgBCkDSDcACCAAIAQpA1g3ABggACAEKQNQNwAQIABBIGohACABQSBrIgJBwQBPBEADQCAEIARBQGtBwAAQBCIBQUBrQcAAIAEQMkEASA0CIAAgASkDQDcAACAAIAEpA0g3AAggACAEKQNYNwAYIAAgBCkDUDcAECAAQSBqIQAgAkEgayICQcAASw0ACwsgBCAEQUBrQcAAEAQiAUFAayACIAEQMkEASA0AIAAgAUFAayACEAQaCyAEQZABakHwARAFIARBgANqJAALEwBBjB5BnB02AgBBxB1BKjYCAAuXAgAgAEUEQEEADwsCfwJAIAAEfyABQf8ATQ0BAkBBjB4oAgAoAgBFBEAgAUGAf3FBgL8DRg0DDAELIAFB/w9NBEAgACABQT9xQYABcjoAASAAIAFBBnZBwAFyOgAAQQIMBAsgAUGAQHFBgMADRyABQYCwA09xRQRAIAAgAUE/cUGAAXI6AAIgACABQQx2QeABcjoAACAAIAFBBnZBP3FBgAFyOgABQQMMBAsgAUGAgARrQf//P00EQCAAIAFBP3FBgAFyOgADIAAgAUESdkHwAXI6AAAgACABQQZ2QT9xQYABcjoAAiAAIAFBDHZBP3FBgAFyOgABQQQMBAsLQfgcQRk2AgBBfwVBAQsMAQsgACABOgAAQQELC7wCAAJAAkACQAJAAkACQAJAAkACQAJAAkAgAUEJaw4SAAgJCggJAQIDBAoJCgoICQUGBwsgAiACKAIAIgFBBGo2AgAgACABKAIANgIADwsgAiACKAIAIgFBBGo2AgAgACABMgEANwMADwsgAiACKAIAIgFBBGo2AgAgACABMwEANwMADwsgAiACKAIAIgFBBGo2AgAgACABMAAANwMADwsgAiACKAIAIgFBBGo2AgAgACABMQAANwMADwsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKwMAOQMADwsgACACQQARAgALDwsgAiACKAIAIgFBBGo2AgAgACABNAIANwMADwsgAiACKAIAIgFBBGo2AgAgACABNQIANwMADwsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKQMANwMAC2sBBH8gACgCACwAABAPRQRAQQAPCwNAIAAoAgAhA0F/IQEgAkHMmbPmAE0EQEF/IAMsAABBMGsiBCACQQpsIgFqIARB/////wcgAWtKGyEBCyAAIANBAWo2AgAgASECIAMsAAEQDw0ACyABC40VAhJ/An4jAEHQAGsiBSQAIAVByg42AkwgBUE3aiEUIAVBOGohEAJAAkACQAJAA0AgBEH/////ByAMa0oNASAEIAxqIQwgBSgCTCIJIQQCQAJAAkAgCS0AACIIBEADQAJAAkAgCEH/AXEiBkUEQCAEIQgMAQsgBkElRw0BIAQhCANAIAQtAAFBJUcNASAFIARBAmoiBjYC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b24yaQBUaGUgcGFzc3dvcmQgZG9lcyBub3QgbWF0Y2ggdGhlIHN1cHBsaWVkIGhhc2gAT3V0cHV0IHBvaW50ZXIgbWlzbWF0Y2gAT3V0cHV0IGlzIHRvbyBsb25nAFNhbHQgaXMgdG9vIGxvbmcAU2VjcmV0IGlzIHRvbyBsb25nAFBhc3N3b3JkIGlzIHRvbyBsb25nAEFzc29jaWF0ZWQgZGF0YSBpcyB0b28gbG9uZwBUaHJlYWRpbmcgZmFpbHVyZQBNZW1vcnkgY29zdCBpcyB0b28gbGFyZ2UAVGltZSBjb3N0IGlzIHRvbyBsYXJnZQBVbmtub3duIGVycm9yIGNvZGUAYXJnb24yaWQAQXJnb24yaWQARW5jb2RpbmcgZmFpbGVkAERlY29kaW5nIGZhaWxlZABhcmdvbjJkAEFyZ29uMmQAQXJnb24yX0NvbnRleHQgY29udGV4dCBpcyBOVUxMAE91dHB1dCBwb2ludGVyIGlzIE5VTEwAVGhlIGFsbG9jYXRlIG1lbW9yeSBjYWxsYmFjayBpcyBOVUxMAFRoZSBmcmVlIG1lbW9yeSBjYWxsYmFjayBpcyBOVUxMAE9LACR2PQAsdD0ALHA9ACRtPQBUaGVyZSBpcyBubyBzdWNoIHZlcnNpb24gb2YgQXJnb24yAFNhbHQgcG9pbnRlciBpcyBOVUxMLCBidXQgc2FsdCBsZW5ndGggaXMgbm90IDAAU2VjcmV0IHBvaW50ZXIgaXMgTlVMTCwgYnV0IHNlY3JldCBsZW5ndGggaXMgbm90IDAAUGFzc3dvcmQgcG9pbnRlciBpcyBOVUxMLCBidXQgcGFzc3dvcmQgbGVuZ3RoIGlzIG5vdCAwAEFzc29jaWF0ZWQgZGF0YSBwb2ludGVyIGlzIE5VTEwsIGJ1dCBhZCBsZW5ndGggaXMgbm90IDAAKG51bGwpAAAAmwgAALsHAABJCQAAwAkAALAJAADwBwAAHwgAADAIAADJCAAAbwoAAOAJAAAWCgAAOwoAAEMIAAArCwAAwQoAAJIKAAD0CgAAAggAABEIAABbCQAAWwgAAHQJAAB0CAAABQkAAHQHAAAtCQAAngcAAPQIAABiBwAAGAkAAIgHAADhCAAATgcAAP8JAABcCgAAAQAAABkACgAZGRkAAAAABQAAAAAAAAkAAAAACwAAAAAAAAAAGQARChkZGQMKBwABAAkLGAAACQYLAAALAAYZAAAAGRkZAEHRGAshDgAAAAAAAAAAGQAKDRkZGQANAAACAAkOAAAACQAOAAAOAEGLGQsBDABBlxkLFRMAAAAAEwAAAAAJDAAAAAAADAAADABBxRkLARAAQdEZCxUPAAAABA8AAAAACRAAAAAAABAAABAAQf8ZCwESAEGLGgseEQAAAAARAAAAAAkSAAAAAAASAAASAAAaAAAAGhoaAEHCGgsOGgAAABoaGgAAAAAAAAkAQfMaCwEUAEH/GgsVFwAAAAAXAAAAAAkUAAAAAAAUAAAUAEGtGwsBFgBBuRsLJxUAAAAAFQAAAAAJFgAAAAAAFgAAFgAAMDEyMzQ1Njc4OUFCQ0RFRgBBhBwLAQIAQawcCwj//////////wBB8BwLBwEAAAAgEVA="},477:(e,t,n)=>{e.exports=function(e){e=void 0!==(e=e||{})?e:{};var t,n,r=Object.assign,o=r({},e),i=[],a="object"==typeof window,s="function"==typeof importScripts,c="";(a||s)&&(s?c=self.location.href:"undefined"!=typeof document&&document.currentScript&&(c=document.currentScript.src),c=0!==c.indexOf("blob:")?c.substr(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1):"",s&&(n=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),t=(e,t,n)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}),e.print||console.log.bind(console);var u,A,l=e.printErr||console.warn.bind(console);r(e,o),o=null,e.arguments&&(i=e.arguments),e.thisProgram&&e.thisProgram,e.quit&&e.quit,e.wasmBinary&&(u=e.wasmBinary),e.noExitRuntime,"object"!=typeof WebAssembly&&Q("no native wasm support detected");var f,h,p=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(t){f=t,e.HEAP8=new Int8Array(t),e.HEAP16=new Int16Array(t),e.HEAP32=new Int32Array(t),e.HEAPU8=h=new Uint8Array(t),e.HEAPU16=new Uint16Array(t),e.HEAPU32=new Uint32Array(t),e.HEAPF32=new Float32Array(t),e.HEAPF64=new Float64Array(t)}e.INITIAL_MEMORY;var y,m,I,v=[],w=[],E=[],B=0,C=null,b=null;function Q(t){throw e.onAbort&&e.onAbort(t),l(t="Aborted("+t+")"),p=!0,t+=". Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function x(e){return e.startsWith("data:application/octet-stream;base64,")}function _(e){return e.startsWith("file://")}function S(e){try{if(e==m&&u)return new Uint8Array(u);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){Q(e)}}function T(t){for(;t.length>0;){var n=t.shift();if("function"!=typeof n){var r=n.func;"number"==typeof r?void 0===n.arg?O(r)():O(r)(n.arg):r(void 0===n.arg?null:n.arg)}else n(e)}}function O(e){return y.get(e)}function N(e){try{return A.grow(e-f.byteLength+65535>>>16),g(A.buffer),1}catch(e){}}e.preloadedImages={},e.preloadedAudios={},x(m="argon2.wasm")||(I=m,m=e.locateFile?e.locateFile(I,c):c+I);var k,D={b:function(e,t,n){h.copyWithin(e,t,t+n)},a:function(e){var t,n=h.length,r=2147418112;if((e>>>=0)>r)return!1;for(var o=1;o<=4;o*=2){var i=n*(1+.2/o);if(i=Math.min(i,e+100663296),N(Math.min(r,((t=Math.max(e,i))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1}},F=(function(){var n={a:D};function r(t,n){var r,o=t.exports;e.asm=o,g((A=e.asm.c).buffer),y=e.asm.k,r=e.asm.d,w.unshift(r),function(t){if(B--,e.monitorRunDependencies&&e.monitorRunDependencies(B),0==B&&(null!==C&&(clearInterval(C),C=null),b)){var n=b;b=null,n()}}()}function o(e){r(e.instance)}function i(e){return function(){if(!u&&(a||s)){if("function"==typeof fetch&&!_(m))return fetch(m,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+m+"'";return e.arrayBuffer()})).catch((function(){return S(m)}));if(t)return new Promise((function(e,n){t(m,(function(t){e(new Uint8Array(t))}),n)}))}return Promise.resolve().then((function(){return S(m)}))}().then((function(e){return WebAssembly.instantiate(e,n)})).then((function(e){return e})).then(e,(function(e){l("failed to asynchronously prepare wasm: "+e),Q(e)}))}if(B++,e.monitorRunDependencies&&e.monitorRunDependencies(B),e.instantiateWasm)try{return e.instantiateWasm(n,r)}catch(e){return l("Module.instantiateWasm callback failed with error: "+e),!1}u||"function"!=typeof WebAssembly.instantiateStreaming||x(m)||_(m)||"function"!=typeof fetch?i(o):fetch(m,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,n).then(o,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),i(o)}))}))}(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.d).apply(null,arguments)},e._argon2_hash=function(){return(e._argon2_hash=e.asm.e).apply(null,arguments)},e._malloc=function(){return(F=e._malloc=e.asm.f).apply(null,arguments)}),U=(e._free=function(){return(e._free=e.asm.g).apply(null,arguments)},e._argon2_verify=function(){return(e._argon2_verify=e.asm.h).apply(null,arguments)},e._argon2_error_message=function(){return(e._argon2_error_message=e.asm.i).apply(null,arguments)},e._argon2_encodedlen=function(){return(e._argon2_encodedlen=e.asm.j).apply(null,arguments)},e._argon2_hash_ext=function(){return(e._argon2_hash_ext=e.asm.l).apply(null,arguments)},e._argon2_verify_ext=function(){return(e._argon2_verify_ext=e.asm.m).apply(null,arguments)},e.stackAlloc=function(){return(U=e.stackAlloc=e.asm.n).apply(null,arguments)});function R(t){function n(){k||(k=!0,e.calledRun=!0,p||(T(w),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)t=e.postRun.shift(),E.unshift(t);var t;T(E)}()))}t=t||i,B>0||(function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)t=e.preRun.shift(),v.unshift(t);var t;T(v)}(),B>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),n()}),1)):n()))}if(e.allocate=function(e,t){var n;return n=1==t?U(e.length):F(e.length),e.subarray||e.slice?h.set(e,n):h.set(new Uint8Array(e),n),n},e.UTF8ToString=function(e,t){return e?function(e,t,n){for(var r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.subarray&&d)return d.decode(e.subarray(t,o));for(var i="";t<o;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var c=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|c:(7&a)<<18|s<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(a);else{var u=a-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}(h,e,t):""},e.ALLOC_NORMAL=0,b=function e(){k||R(),k||(b=e)},e.run=R,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return R(),e.unloadRuntime=function(){"undefined"!=typeof self&&delete self.Module,e=jsModule=A=y=f=h=void 0},e}},145:()=>{},967:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{ArgonType:()=>s,hash:()=>f,verify:()=>h,unloadRuntime:()=>p,default:()=>d});var e=n(477),t=n.n(e),i=n(721),a=n.n(i);const s={Argon2d:0,Argon2i:1,Argon2id:2};function c(e){if(c._promise)return c._promise;if(c._module)return Promise.resolve(c._module);let n;return n=function(){if("function"==typeof loadArgon2WasmBinary)return loadArgon2WasmBinary();const e=a();if(e)return Promise.resolve(function(e){if("function"==typeof r)return new Uint8Array(r.from(e,"base64"));const t=atob(e),n=new Uint8Array(new ArrayBuffer(t.length));for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}(e));const t="string"==typeof argon2WasmPath?argon2WasmPath:"node_modules/argon2-browser/dist/argon2.wasm";return fetch(t).then((e=>e.arrayBuffer())).then((e=>new Uint8Array(e)))}().then((n=>function(e){const n=t()(e);return new Promise((e=>{n.postRun=()=>e(n)}))}({wasmBinary:n,wasmMemory:e?function(e){const t=Math.min(Math.max(Math.ceil(1024*e/65536),256)+256,32767);return new WebAssembly.Memory({initial:t,maximum:32767})}(e):void 0}))),c._promise=n,n.then((e=>(c._module=e,delete c._promise,e)))}function u(e,t){return e.allocate(t,"i8",e.ALLOC_NORMAL)}function A(e,t){return u(e,new Uint8Array([...t,0]))}function l(e){if("string"!=typeof e)return e;if("function"==typeof TextEncoder)return(new TextEncoder).encode(e);if("function"==typeof r)return r.from(e);throw new Error("Don't know how to encode UTF8")}function f(e){const t=e.mem||1024;return c(t).then((n=>{const r=e.time||1,o=e.parallelism||1,i=l(e.pass),a=A(n,i),c=i.length,f=l(e.salt),h=A(n,f),p=f.length,d=e.type||s.Argon2d,g=n.allocate(new Array(e.hashLen||24),"i8",n.ALLOC_NORMAL),y=e.secret?u(n,e.secret):0,m=e.secret?e.secret.byteLength:0,I=e.ad?u(n,e.ad):0,v=e.ad?e.ad.byteLength:0,w=e.hashLen||24,E=n._argon2_encodedlen(r,t,o,p,w,d),B=n.allocate(new Array(E+1),"i8",n.ALLOC_NORMAL);let C,b,Q;try{b=n._argon2_hash_ext(r,t,o,a,c,h,p,g,w,B,E,d,y,m,I,v,19)}catch(e){C=e}if(0!==b||C){try{C||(C=n.UTF8ToString(n._argon2_error_message(b)))}catch(e){}Q={message:C,code:b}}else{let e="";const t=new Uint8Array(w);for(let r=0;r<w;r++){const o=n.HEAP8[g+r];t[r]=o,e+=("0"+(255&o).toString(16)).slice(-2)}Q={hash:t,hashHex:e,encoded:n.UTF8ToString(B)}}try{n._free(a),n._free(h),n._free(g),n._free(B),I&&n._free(I),y&&n._free(y)}catch(e){}if(C)throw Q;return Q}))}function h(e){return c().then((t=>{const n=l(e.pass),r=A(t,n),o=n.length,i=e.secret?u(t,e.secret):0,a=e.secret?e.secret.byteLength:0,c=e.ad?u(t,e.ad):0,f=e.ad?e.ad.byteLength:0,h=A(t,l(e.encoded));let p,d,g,y=e.type;if(void 0===y){let t=e.encoded.split("$")[1];t&&(t=t.replace("a","A"),y=s[t]||s.Argon2d)}try{d=t._argon2_verify_ext(h,r,o,i,a,c,f,y)}catch(e){p=e}if(d||p){try{p||(p=t.UTF8ToString(t._argon2_error_message(d)))}catch(e){}g={message:p,code:d}}try{t._free(r),t._free(h)}catch(e){}if(p)throw g;return g}))}function p(){c._module&&(c._module.unloadRuntime(),delete c._promise,delete c._module)}const d={ArgonType:s,hash:f,verify:h,unloadRuntime:p}})(),o})()},35086:function(e,t,n){const r=n(46523);function o(e,t,n){const r=e[t]+e[n];let o=e[t+1]+e[n+1];r>=4294967296&&o++,e[t]=r,e[t+1]=o}function i(e,t,n,r){let o=e[t]+n;n<0&&(o+=4294967296);let i=e[t+1]+r;o>=4294967296&&i++,e[t]=o,e[t+1]=i}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){const c=l[a],u=l[a+1],f=l[s],h=l[s+1];o(A,e,t),i(A,e,c,u);let p=A[r]^A[e],d=A[r+1]^A[e+1];A[r]=d,A[r+1]=p,o(A,n,r),p=A[t]^A[n],d=A[t+1]^A[n+1],A[t]=p>>>24^d<<8,A[t+1]=d>>>24^p<<8,o(A,e,t),i(A,e,f,h),p=A[r]^A[e],d=A[r+1]^A[e+1],A[r]=p>>>16^d<<16,A[r+1]=d>>>16^p<<16,o(A,n,r),p=A[t]^A[n],d=A[t+1]^A[n+1],A[t]=d>>>31^p<<1,A[t+1]=p>>>31^d<<1}const c=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),A=new Uint32Array(32),l=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)A[n]=e.h[n],A[n+16]=c[n];for(A[24]=A[24]^e.t,A[25]=A[25]^e.t/4294967296,t&&(A[28]=~A[28],A[29]=~A[29]),n=0;n<32;n++)l[n]=a(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^A[n]^A[n+16]}function h(e,t){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");const n={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};for(let e=0;e<16;e++)n.h[e]=c[e];const r=t?t.length:0;return n.h[0]^=16842752^r<<8^e,t&&(p(n,t),n.c=128),n}function p(e,t){for(let n=0;n<t.length;n++)128===e.c&&(e.t+=e.c,f(e,!1),e.c=0),e.b[e.c++]=t[n]}function d(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;f(e,!0);const t=new Uint8Array(e.outlen);for(let n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(3&n);return t}function g(e,t,n){n=n||64,e=r.normalizeInput(e);const o=h(n,t);return p(o,e),d(o)}e.exports={blake2b:g,blake2bHex:function(e,t,n){const o=g(e,t,n);return r.toHex(o)},blake2bInit:h,blake2bUpdate:p,blake2bFinal:d}},47828:function(e,t,n){const r=n(46523);function o(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function i(e,t,n,r,o,i){u[e]=u[e]+u[t]+o,u[r]=a(u[r]^u[e],16),u[n]=u[n]+u[r],u[t]=a(u[t]^u[n],12),u[e]=u[e]+u[t]+i,u[r]=a(u[r]^u[e],8),u[n]=u[n]+u[r],u[t]=a(u[t]^u[n],7)}function a(e,t){return e>>>t^e<<32-t}const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),u=new Uint32Array(16),A=new Uint32Array(16);function l(e,t){let n=0;for(n=0;n<8;n++)u[n]=e.h[n],u[n+8]=s[n];for(u[12]^=e.t,u[13]^=e.t/4294967296,t&&(u[14]=~u[14]),n=0;n<16;n++)A[n]=o(e.b,4*n);for(n=0;n<10;n++)i(0,4,8,12,A[c[16*n+0]],A[c[16*n+1]]),i(1,5,9,13,A[c[16*n+2]],A[c[16*n+3]]),i(2,6,10,14,A[c[16*n+4]],A[c[16*n+5]]),i(3,7,11,15,A[c[16*n+6]],A[c[16*n+7]]),i(0,5,10,15,A[c[16*n+8]],A[c[16*n+9]]),i(1,6,11,12,A[c[16*n+10]],A[c[16*n+11]]),i(2,7,8,13,A[c[16*n+12]],A[c[16*n+13]]),i(3,4,9,14,A[c[16*n+14]],A[c[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=u[n]^u[n+8]}function f(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");const n=t?t.length:0;if(t&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");const r={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(h(r,t),r.c=64),r}function h(e,t){for(let n=0;n<t.length;n++)64===e.c&&(e.t+=e.c,l(e,!1),e.c=0),e.b[e.c++]=t[n]}function p(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;l(e,!0);const t=new Uint8Array(e.outlen);for(let n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(3&n)&255;return t}function d(e,t,n){n=n||32,e=r.normalizeInput(e);const o=f(n,t);return h(o,e),p(o)}e.exports={blake2s:d,blake2sHex:function(e,t,n){const o=d(e,t,n);return r.toHex(o)},blake2sInit:f,blake2sUpdate:h,blake2sFinal:p}},27871:function(e,t,n){const r=n(35086),o=n(47828);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:o.blake2s,blake2sHex:o.blake2sHex,blake2sInit:o.blake2sInit,blake2sUpdate:o.blake2sUpdate,blake2sFinal:o.blake2sFinal}},46523:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else{if("string"!=typeof e)throw new Error("Input must be an string, Buffer or Uint8Array");t=(new TextEncoder).encode(e)}return t},toHex:function(e){return Array.prototype.map.call(e,(function(e){return(e<16?"0":"")+e.toString(16)})).join("")},debugPrint:function(e,n,r){let o="\n"+e+" = ";for(let i=0;i<n.length;i+=2){if(32===r)o+=t(n[i]).toUpperCase(),o+=" ",o+=t(n[i+1]).toUpperCase();else{if(64!==r)throw new Error("Invalid size "+r);o+=t(n[i+1]).toUpperCase(),o+=t(n[i]).toUpperCase()}i%6==4?o+="\n"+new Array(e.length+4).join(" "):i<n.length-2&&(o+=" ")}console.log(o)},testSpeed:function(e,t,n){let r=(new Date).getTime();const o=new Uint8Array(t);for(let e=0;e<t;e++)o[e]=e%256;const i=(new Date).getTime();console.log("Generated random input in "+(i-r)+"ms"),r=i;for(let i=0;i<n;i++){const n=e(o),i=(new Date).getTime(),a=i-r;r=i,console.log("Hashed in "+a+"ms: "+n.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(a/1e3)*100)/100+" MB PER SECOND")}}}},89784:function(e,t,n){var r=n(37798).stringify,o=n(16175);e.exports=function(e){return{parse:o(e),stringify:r}},e.exports.parse=o(),e.exports.stringify=r},16175:function(e,t,n){var r=null;e.exports=function(e){"use strict";var t={strict:!1,storeAsString:!1};null!=e&&(!0===e.strict&&(t.strict=!0),!0===e.storeAsString&&(t.storeAsString=!0));var o,i,a,s,c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},u=function(e){throw{name:"SyntaxError",message:e,at:o,text:a}},A=function(e){return e&&e!==i&&u("Expected '"+e+"' instead of '"+i+"'"),i=a.charAt(o),o+=1,i},l=function(){var e,o="";for("-"===i&&(o="-",A("-"));i>="0"&&i<="9";)o+=i,A();if("."===i)for(o+=".";A()&&i>="0"&&i<="9";)o+=i;if("e"===i||"E"===i)for(o+=i,A(),"-"!==i&&"+"!==i||(o+=i,A());i>="0"&&i<="9";)o+=i,A();if(e=+o,isFinite(e))return null==r&&(r=n(44431)),o.length>15?!0===t.storeAsString?o:new r(o):e;u("Bad number")},f=function(){var e,t,n,r="";if('"'===i)for(;A();){if('"'===i)return A(),r;if("\\"===i)if(A(),"u"===i){for(n=0,t=0;t<4&&(e=parseInt(A(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof c[i])break;r+=c[i]}else r+=i}u("Bad string")},h=function(){for(;i&&i<=" ";)A()};return s=function(){switch(h(),i){case"{":return function(){var e,n={};if("{"===i){if(A("{"),h(),"}"===i)return A("}"),n;for(;i;){if(e=f(),h(),A(":"),!0===t.strict&&Object.hasOwnProperty.call(n,e)&&u('Duplicate key "'+e+'"'),n[e]=s(),h(),"}"===i)return A("}"),n;A(","),h()}}u("Bad object")}();case"[":return function(){var e=[];if("["===i){if(A("["),h(),"]"===i)return A("]"),e;for(;i;){if(e.push(s()),h(),"]"===i)return A("]"),e;A(","),h()}}u("Bad array")}();case'"':return f();case"-":return l();default:return i>="0"&&i<="9"?l():function(){switch(i){case"t":return A("t"),A("r"),A("u"),A("e"),!0;case"f":return A("f"),A("a"),A("l"),A("s"),A("e"),!1;case"n":return A("n"),A("u"),A("l"),A("l"),null}u("Unexpected '"+i+"'")}()}},function(e,t){var n;return a=e+"",o=0,i=" ",n=s(),h(),i&&u("Syntax error"),"function"==typeof t?function e(n,r){var o,i=n[r];return i&&"object"==typeof i&&Object.keys(i).forEach((function(t){void 0!==(o=e(i,t))?i[t]=o:delete i[t]})),t.call(n,r,i)}({"":n},""):n}}},37798:function(e,t,n){var r=n(44431),o=e.exports;!function(){"use strict";var e,t,n,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,(function(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function c(o,i){var a,u,A,l,f,h=e,p=i[o],d=null!=p&&(p instanceof r||r.isBigNumber(p));switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(o)),"function"==typeof n&&(p=n.call(i,o,p)),typeof p){case"string":return d?p:s(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(e+=t,f=[],"[object Array]"===Object.prototype.toString.apply(p)){for(l=p.length,a=0;a<l;a+=1)f[a]=c(a,p)||"null";return A=0===f.length?"[]":e?"[\n"+e+f.join(",\n"+e)+"\n"+h+"]":"["+f.join(",")+"]",e=h,A}if(n&&"object"==typeof n)for(l=n.length,a=0;a<l;a+=1)"string"==typeof n[a]&&(A=c(u=n[a],p))&&f.push(s(u)+(e?": ":":")+A);else Object.keys(p).forEach((function(t){var n=c(t,p);n&&f.push(s(t)+(e?": ":":")+n)}));return A=0===f.length?"{}":e?"{\n"+e+f.join(",\n"+e)+"\n"+h+"}":"{"+f.join(",")+"}",e=h,A}}"function"!=typeof o.stringify&&(o.stringify=function(r,o,i){var a;if(e="",t="","number"==typeof i)for(a=0;a<i;a+=1)t+=" ";else"string"==typeof i&&(t=i);if(n=o,o&&"function"!=typeof o&&("object"!=typeof o||"number"!=typeof o.length))throw new Error("JSON.stringify");return c("",{"":r})})}()},66419:function(e,t,n){e.exports=n(27698)},77766:function(e,t,n){e.exports=n(8065)},72119:function(e,t,n){e.exports=n(57448)},20116:function(e,t,n){e.exports=n(11955)},94473:function(e,t,n){e.exports=n(61577)},78580:function(e,t,n){e.exports=n(33778)},2991:function(e,t,n){e.exports=n(61798)},3649:function(e,t,n){e.exports=n(82073)},92762:function(e,t,n){e.exports=n(2348)},29828:function(e,t,n){e.exports=n(35178)},59340:function(e,t,n){e.exports=n(8933)},51942:function(e,t,n){e.exports=n(63383)},26295:function(e,t,n){e.exports=n(86209)},86902:function(e,t,n){e.exports=n(23059)},93476:function(e,t,n){e.exports=n(27460)},94435:function(e,t,n){e.exports=n(73926)},52424:function(e,t,n){e.exports=n(72010)},53592:function(e,t,n){e.exports=n(27385)},78363:function(e,t,n){e.exports=n(81522)},19996:function(e,t,n){e.exports=n(32209)},30699:function(e,t,n){e.exports=n(44442)},28834:function(e,t,n){e.exports=n(57152)},95683:function(e,t,n){e.exports=n(69447)},95238:function(e,t,n){e.exports=n(81493)},32752:function(e,t,n){e.exports=n(70573)},44341:function(e,t,n){e.exports=n(73685)},58377:function(e,t,n){e.exports=n(27533)},13038:function(e,t,n){e.exports=n(39057)},63263:function(e,t,n){e.exports=n(84710)},89356:function(e,t,n){e.exports=n(93799)},69798:function(e,t,n){e.exports=n(29531)},51446:function(e,t,n){e.exports=n(86600)},23882:function(e,t,n){e.exports=n(9759)},63109:function(e,t,n){e.exports=n(35666)},13453:function(e,t,n){var r=n(59063),o=n(70136),i=n(12285),a=n(43826),s=n(41626),c=n(11867),u=n(5465),A=Array.prototype.slice;function l(e,t){var n=function e(t){var n=e.compose||{},r={__proto__:n.methods};if(u(r,n.deepProperties),c(r,n.properties),Object.defineProperties(r,n.propertyDescriptors||{}),!n.initializers||0===n.initializers.length)return r;void 0===t&&(t={});for(var i=n.initializers,a=i.length,s=0;s<a;s+=1){var l=i[s];if(o(l)){var f=l.call(r,t,{instance:r,stamp:e,args:A.apply(arguments)});r=void 0===f?r:f}}return r};e.staticDeepProperties&&u(n,e.staticDeepProperties),e.staticProperties&&c(n,e.staticProperties),e.staticPropertyDescriptors&&Object.defineProperties(n,e.staticPropertyDescriptors);var r=o(n.compose)?n.compose:t;return c(n.compose=function(){"use strict";return r.apply(this,arguments)},e),n}function f(e,t,n){if(r(t)){var i=t.length,a=e[n]||[];e[n]=a;for(var s=0;s<i;s+=1){var c=t[s];o(c)&&a.indexOf(c)<0&&a.push(c)}}}function h(e,t,n,r){i(t[n])&&(i(e[n])||(e[n]={}),r(e[n],t[n]))}function p(e,t,n){h(e,t,n,u)}function d(e,t,n){h(e,t,n,c)}function g(e,t){var n=t&&t.compose||t;d(e,n,"methods"),d(e,n,"properties"),p(e,n,"deepProperties"),d(e,n,"propertyDescriptors"),d(e,n,"staticProperties"),p(e,n,"staticDeepProperties"),d(e,n,"staticPropertyDescriptors"),d(e,n,"configuration"),p(e,n,"deepConfiguration"),f(e,n.initializers,"initializers"),f(e,n.composers,"composers")}e.exports=function e(){"use strict";var t={},n=[];s(this)&&(g(t,this),n.push(this));for(var o=0;o<arguments.length;o++){var i=arguments[o];s(i)&&(g(t,i),n.push(i))}var c=l(t,e),u=t.composers;if(r(u)&&u.length>0)for(var A=0;A<u.length;A+=1){var f=u[A],h=f({stamp:c,composables:n});c=a(h)?h:c}return c}},11867:function(e){e.exports=Object.assign},5465:function(e,t,n){var r=n(45434),o=n(12285),i=n(59063);function a(e,t){if(void 0===t)return e;if(i(t))return(i(e)?e:[]).concat(t);if(!r(t))return t;for(var n=o(e)?e:{},s=Object.keys(t),c=0;c<s.length;c+=1){var u=s[c],A=t[u];if(void 0!==A){var l=n[u],f=r(l)||i(A)?l:{};n[u]=a(f,A)}}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++)e=a(e,arguments[t]);return e}},59063:function(e){e.exports=Array.isArray},41626:function(e,t,n){e.exports=n(12285)},70136:function(e){e.exports=function(e){return"function"==typeof e}},12285:function(e){e.exports=function(e){var t=typeof e;return Boolean(e)&&("object"===t||"function"===t)}},45434:function(e){e.exports=function(e){return Boolean(e)&&"object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype}},43826:function(e,t,n){var r=n(70136);e.exports=function(e){return r(e)&&r(e.compose)}},14429:function(e){e.exports=function(e){return"string"==typeof e}},95389:function(e,t,n){var r=n(13453),o=n(65640),i=n(43826),a=n(14429),s=n(12285),c=n(70136),u=n(5465),A=n(11867),l=Array.prototype.concat;function f(){var e=l.apply([],arguments).filter(c);return 0===e.length?void 0:e}function h(e){if(!s(e))return e;var t=e.methods,n=e.properties,r=e.props,o=e.initializers,i=e.init,c=e.composers,l=e.deepProperties,h=e.deepProps,p=e.propertyDescriptors,d=e.staticProperties,g=e.statics,y=e.staticDeepProperties,m=e.deepStatics,I=e.configuration,v=e.conf,w=e.deepConfiguration,E=e.deepConf,B=s(r)||s(n)?A({},r,n):void 0,C=s(h)?u({},h):void 0;C=s(l)?u(C,l):C;var b=s(g)||s(d)?A({},g,d):void 0,Q=s(m)?u({},m):void 0;Q=s(y)?u(Q,y):Q;var x=e.staticPropertyDescriptors;a(e.name)&&(x=A({},x||{},{name:{value:e.name}}));var _=s(v)||s(I)?A({},v,I):void 0,S=s(E)?u({},E):void 0;S=s(w)?u(S,w):S;var T=f(i,o),O=f(c),N={};return t&&(N.methods=t),B&&(N.properties=B),T&&(N.initializers=T),O&&(N.composers=O),C&&(N.deepProperties=C),b&&(N.staticProperties=b),Q&&(N.staticDeepProperties=Q),p&&(N.propertyDescriptors=p),x&&(N.staticPropertyDescriptors=x),_&&(N.configuration=_),S&&(N.deepConfiguration=S),N}function p(){"use strict";for(var e=arguments.length,t=[],n=0;n<e;n+=1){var o=arguments[n];t.push(i(o)?o:h(o))}return r.apply(this||d,t)}var d=o.compose({staticProperties:{create:function(){return this.apply(this,arguments)},compose:p}}),g=o.compose.staticProperties;for(var y in g)p[y]=g[y].bind(d);p.compose=p.bind(),e.exports=p},85929:function(e,t,n){var r=n(13453),o=n(11867),i=n(12285);function a(e){"use strict";var t=this&&this.compose?this:s,n=t.compose.deepConfiguration&&t.compose.deepConfiguration.Required,i=o({},r(n,e).compose);return t.compose({deepConfiguration:{Required:i}})}var s=r({initializers:[function(e,t){var n=t.stamp.compose;!function(e,t){if(e&&t)for(var n=Object.keys(t),r=0;r<n.length;r++){var o=n[r],c=t[o];if(i(c))for(var u=Object.keys(c),A=0;A<u.length;A++){var l=u[A],f=c[l];if(!(f!==s&&f!==a||e[o]&&void 0!==e[o][l]))throw new Error("Required: There must be "+l+" in this stamp "+o)}}}(n,n.deepConfiguration&&n.deepConfiguration.Required)}],staticProperties:{required:a}});Object.freeze(a),Object.freeze(s),e.exports=s},65640:function(e,t,n){var r=n(13453);function o(e){return function(t){"use strict";var n={};return n[e]=t,this&&this.compose?this.compose(n):r(n)}}var i=o("properties"),a=o("staticProperties"),s=o("configuration"),c=o("deepProperties"),u=o("staticDeepProperties"),A=o("deepConfiguration"),l=o("initializers");e.exports=r({staticProperties:{methods:o("methods"),props:i,properties:i,statics:a,staticProperties:a,conf:s,configuration:s,deepProps:c,deepProperties:c,deepStatics:u,staticDeepProperties:u,deepConf:A,deepConfiguration:A,init:l,initializers:l,composers:o("composers"),propertyDescriptors:o("propertyDescriptors"),staticPropertyDescriptors:o("staticPropertyDescriptors")}})},78826:function(e){!function(t){"use strict";function n(e){return parseInt(e)===e}function r(e){if(!n(e.length))return!1;for(var t=0;t<e.length;t++)if(!n(e[t])||e[t]<0||e[t]>255)return!1;return!0}function o(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function a(e,t,n,r,o){null==r&&null==o||(e=e.slice?e.slice(r,o):Array.prototype.slice.call(e,r,o)),t.set(e,n)}var s,c={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n<e.length;){var r=e.charCodeAt(n++);37===r?(t.push(parseInt(e.substr(n,2),16)),n+=2):t.push(r)}return o(t)},fromBytes:function(e){for(var t=[],n=0;n<e.length;){var r=e[n];r<128?(t.push(String.fromCharCode(r)),n++):r>191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},u=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},fromBytes:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(s[(240&r)>>4]+s[15&r])}return t.join("")}}),A={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],f=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],d=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],y=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],m=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],I=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],E=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],B=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],C=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],b=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Q(e){for(var t=[],n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var x=function(e){if(!(this instanceof x))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:o(e,!0)}),this._prepare()};x.prototype._prepare=function(){var e=A[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var n,r=4*(e+1),o=this.key.length/4,i=Q(this.key);for(t=0;t<o;t++)n=t>>2,this._Ke[n][t%4]=i[t],this._Kd[e-n][t%4]=i[t];for(var a,s=0,c=o;c<r;){if(a=i[o-1],i[0]^=f[a>>16&255]<<24^f[a>>8&255]<<16^f[255&a]<<8^f[a>>24&255]^l[s]<<24,s+=1,8!=o)for(t=1;t<o;t++)i[t]^=i[t-1];else{for(t=1;t<o/2;t++)i[t]^=i[t-1];for(a=i[o/2-1],i[o/2]^=f[255&a]^f[a>>8&255]<<8^f[a>>16&255]<<16^f[a>>24&255]<<24,t=o/2+1;t<o;t++)i[t]^=i[t-1]}for(t=0;t<o&&c<r;)u=c>>2,h=c%4,this._Ke[u][h]=i[t],this._Kd[e-u][h]=i[t++],c++}for(var u=1;u<e;u++)for(var h=0;h<4;h++)a=this._Kd[u][h],this._Kd[u][h]=E[a>>24&255]^B[a>>16&255]^C[a>>8&255]^b[255&a]},x.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=Q(e),o=0;o<4;o++)r[o]^=this._Ke[0][o];for(var a=1;a<t;a++){for(o=0;o<4;o++)n[o]=p[r[o]>>24&255]^d[r[(o+1)%4]>>16&255]^g[r[(o+2)%4]>>8&255]^y[255&r[(o+3)%4]]^this._Ke[a][o];r=n.slice()}var s,c=i(16);for(o=0;o<4;o++)s=this._Ke[t][o],c[4*o]=255&(f[r[o]>>24&255]^s>>24),c[4*o+1]=255&(f[r[(o+1)%4]>>16&255]^s>>16),c[4*o+2]=255&(f[r[(o+2)%4]>>8&255]^s>>8),c[4*o+3]=255&(f[255&r[(o+3)%4]]^s);return c},x.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=Q(e),o=0;o<4;o++)r[o]^=this._Kd[0][o];for(var a=1;a<t;a++){for(o=0;o<4;o++)n[o]=m[r[o]>>24&255]^I[r[(o+3)%4]>>16&255]^v[r[(o+2)%4]>>8&255]^w[255&r[(o+1)%4]]^this._Kd[a][o];r=n.slice()}var s,c=i(16);for(o=0;o<4;o++)s=this._Kd[t][o],c[4*o]=255&(h[r[o]>>24&255]^s>>24),c[4*o+1]=255&(h[r[(o+3)%4]>>16&255]^s>>16),c[4*o+2]=255&(h[r[(o+2)%4]>>8&255]^s>>8),c[4*o+3]=255&(h[255&r[(o+1)%4]]^s);return c};var _=function(e){if(!(this instanceof _))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new x(e)};_.prototype.encrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r<e.length;r+=16)a(e,n,0,r,r+16),a(n=this._aes.encrypt(n),t,r);return t},_.prototype.decrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r<e.length;r+=16)a(e,n,0,r,r+16),a(n=this._aes.decrypt(n),t,r);return t};var S=function(e,t){if(!(this instanceof S))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=i(16);this._lastCipherblock=o(t,!0),this._aes=new x(e)};S.prototype.encrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16);for(var s=0;s<16;s++)n[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(n),a(this._lastCipherblock,t,r)}return t},S.prototype.decrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16),n=this._aes.decrypt(n);for(var s=0;s<16;s++)t[r+s]=n[s]^this._lastCipherblock[s];a(e,this._lastCipherblock,0,r,r+16)}return t};var T=function(e,t,n){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 size)")}else t=i(16);n||(n=1),this.segmentSize=n,this._shiftRegister=o(t,!0),this._aes=new x(e)};T.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,n=o(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)n[r+i]^=t[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(n,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n},T.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,n=o(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)n[r+i]^=t[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(e,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n};var O=function(e,t){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=i(16);this._lastPrecipher=o(t,!0),this._lastPrecipherIndex=16,this._aes=new x(e)};O.prototype.encrypt=function(e){for(var t=o(e,!0),n=0;n<t.length;n++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[n]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},O.prototype.decrypt=O.prototype.encrypt;var N=function(e){if(!(this instanceof N))throw Error("Counter must be instanitated with `new`");0===e||e||(e=1),"number"==typeof e?(this._counter=i(16),this.setValue(e)):this.setBytes(e)};N.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");if(e>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},N.prototype.setBytes=function(e){if(16!=(e=o(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},N.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var k=function(e,t){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof N||(t=new N(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new x(e)};k.prototype.encrypt=function(e){for(var t=o(e,!0),n=0;n<t.length;n++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[n]^=this._remainingCounter[this._remainingCounterIndex++];return t},k.prototype.decrypt=k.prototype.encrypt;var D={AES:x,Counter:N,ModeOfOperation:{ecb:_,cbc:S,cfb:T,ofb:O,ctr:k},utils:{hex:u,utf8:c},padding:{pkcs7:{pad:function(e){var t=16-(e=o(e,!0)).length%16,n=i(e.length+t);a(e,n);for(var r=e.length;r<n.length;r++)n[r]=t;return n},strip:function(e){if((e=o(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r<t;r++)if(e[n+r]!==t)throw new Error("PKCS#7 invalid padding byte");var s=i(n);return a(e,s,0,0,n),s}}},_arrayTest:{coerceArray:o,createArray:i,copyArray:a}};e.exports=D}()},58162:function(e,t,n){"use strict";var r=n(89509).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),a=i.charCodeAt(0);if(255!==t[a])throw new TypeError(i+" is ambiguous");t[a]=o}var s=e.length,c=e.charAt(0),u=Math.log(s)/Math.log(256),A=Math.log(256)/Math.log(s);function l(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return r.alloc(0);for(var n=0,o=0,i=0;e[n]===c;)o++,n++;for(var a=(e.length-n)*u+1>>>0,A=new Uint8Array(a);e[n];){var l=t[e.charCodeAt(n)];if(255===l)return;for(var f=0,h=a-1;(0!==l||f<i)&&-1!==h;h--,f++)l+=s*A[h]>>>0,A[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=f,n++}for(var p=a-i;p!==a&&0===A[p];)p++;var d=r.allocUnsafe(o+(a-p));d.fill(0,0,o);for(var g=o;p!==a;)d[g++]=A[p++];return d}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,o=0,i=0,a=t.length;i!==a&&0===t[i];)i++,n++;for(var u=(a-i)*A+1>>>0,l=new Uint8Array(u);i!==a;){for(var f=t[i],h=0,p=u-1;(0!==f||h<o)&&-1!==p;p--,h++)f+=256*l[p]>>>0,l[p]=f%s>>>0,f=f/s>>>0;if(0!==f)throw new Error("Non-zero carry");o=h,i++}for(var d=u-o;d!==u&&0===l[d];)d++;for(var g=c.repeat(n);d<u;++d)g+=e.charAt(l[d]);return g},decodeUnsafe:l,decode:function(e){var t=l(e);if(t)return t;throw new Error("Non-base"+s+" character")}}}},79742:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],s=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),A=0,l=s>0?a-4:a;for(n=0;n<l;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[A++]=t>>16&255,u[A++]=t>>8&255,u[A++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[A++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[A++]=t>>8&255,u[A++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(u(e,s,s+a>c?c:s+a));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},44431:function(e,t,n){var r;!function(o){"use strict";var i,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,c=Math.floor,u="[BigNumber Error] ",A=u+"Number primitive has more than 15 significant digits: ",l=1e14,f=14,h=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,g=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,n,r=1,o=e.length,i=e[0]+"";r<o;){for(t=e[r++]+"",n=f-t.length;n--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function I(e,t){var n,r,o=e.c,i=t.c,a=e.s,s=t.s,c=e.e,u=t.e;if(!a||!s)return null;if(n=o&&!o[0],r=i&&!i[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=c==u,!o||!i)return r?0:!o^n?1:-1;if(!r)return c>u^n?1:-1;for(s=(c=o.length)<(u=i.length)?c:u,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return c==u?0:c>u^n?1:-1}function v(e,t,n,r){if(e<t||e>n||e!==c(e))throw Error(u+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return y(e.e/f)==t&&e.c[t]%2!=0}function E(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function B(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(++t>(r=e.length)){for(o=n,t-=r;--t;o+=n);e+=o}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}i=function e(t){var n,r,o,i,C,b,Q,x,_,S,T=q.prototype={constructor:q,toString:null,valueOf:null},O=new q(1),N=20,k=4,D=-7,F=21,U=-1e7,R=1e7,P=!1,M=1,j=0,L={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},G="0123456789abcdefghijklmnopqrstuvwxyz",H=!0;function q(e,t){var n,i,s,u,l,p,d,g,y=this;if(!(y instanceof q))return new q(e,t);if(null==t){if(e&&!0===e._isBigNumber)return y.s=e.s,void(!e.c||e.e>R?y.c=y.e=null:e.e<U?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice()));if((p="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,l=e;l>=10;l/=10,u++);return void(u>R?y.c=y.e=null:(y.e=u,y.c=[e]))}g=String(e)}else{if(!a.test(g=String(e)))return o(y,g,p);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(u=g.indexOf("."))>-1&&(g=g.replace(".","")),(l=g.search(/e/i))>0?(u<0&&(u=l),u+=+g.slice(l+1),g=g.substring(0,l)):u<0&&(u=g.length)}else{if(v(t,2,G.length,"Base"),10==t&&H)return V(y=new q(e),N+y.e+1,k);if(g=String(e),p="number"==typeof e){if(0*e!=0)return o(y,g,p,t);if(y.s=1/e<0?(g=g.slice(1),-1):1,q.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(A+e)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=G.slice(0,t),u=l=0,d=g.length;l<d;l++)if(n.indexOf(i=g.charAt(l))<0){if("."==i){if(l>u){u=d;continue}}else if(!s&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){s=!0,l=-1,u=0;continue}return o(y,String(e),p,t)}p=!1,(u=(g=r(g,t,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):u=g.length}for(l=0;48===g.charCodeAt(l);l++);for(d=g.length;48===g.charCodeAt(--d););if(g=g.slice(l,++d)){if(d-=l,p&&q.DEBUG&&d>15&&(e>h||e!==c(e)))throw Error(A+y.s*e);if((u=u-l-1)>R)y.c=y.e=null;else if(u<U)y.c=[y.e=0];else{if(y.e=u,y.c=[],l=(u+1)%f,u<0&&(l+=f),l<d){for(l&&y.c.push(+g.slice(0,l)),d-=f;l<d;)y.c.push(+g.slice(l,l+=f));l=f-(g=g.slice(l)).length}else l-=d;for(;l--;g+="0");y.c.push(+g)}}else y.c=[y.e=0]}function Y(e,t,n,r){var o,i,a,s,c;if(null==n?n=k:v(n,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)c=m(e.c),c=1==r||2==r&&(a<=D||a>=F)?E(c,a):B(c,a,"0");else if(i=(e=V(new q(e),t,n)).e,s=(c=m(e.c)).length,1==r||2==r&&(t<=i||i<=D)){for(;s<t;c+="0",s++);c=E(c,i)}else if(t-=a,c=B(c,i,"0"),i+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-s)>0)for(i+1==s&&(c+=".");t--;c+="0");return e.s<0&&o?"-"+c:c}function K(e,t){for(var n,r=1,o=new q(e[0]);r<e.length;r++){if(!(n=new q(e[r])).s){o=n;break}t.call(o,n)&&(o=n)}return o}function z(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,r++);return(n=r+n*f-1)>R?e.c=e.e=null:n<U?e.c=[e.e=0]:(e.e=n,e.c=t),e}function V(e,t,n,r){var o,i,a,u,A,h,d,g=e.c,y=p;if(g){e:{for(o=1,u=g[0];u>=10;u/=10,o++);if((i=t-o)<0)i+=f,a=t,d=(A=g[h=0])/y[o-a-1]%10|0;else if((h=s((i+1)/f))>=g.length){if(!r)break e;for(;g.length<=h;g.push(0));A=d=0,o=1,a=(i%=f)-f+1}else{for(A=u=g[h],o=1;u>=10;u/=10,o++);d=(a=(i%=f)-f+o)<0?0:A/y[o-a-1]%10|0}if(r=r||t<0||null!=g[h+1]||(a<0?A:A%y[o-a-1]),r=n<4?(d||r)&&(0==n||n==(e.s<0?3:2)):d>5||5==d&&(4==n||r||6==n&&(i>0?a>0?A/y[o-a]:0:g[h-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,r?(t-=e.e+1,g[0]=y[(f-t%f)%f],e.e=-t||0):g[0]=e.e=0,e;if(0==i?(g.length=h,u=1,h--):(g.length=h+1,u=y[f-i],g[h]=a>0?c(A/y[o-a]%y[a])*u:0),r)for(;;){if(0==h){for(i=1,a=g[0];a>=10;a/=10,i++);for(a=g[0]+=u,u=1;a>=10;a/=10,u++);i!=u&&(e.e++,g[0]==l&&(g[0]=1));break}if(g[h]+=u,g[h]!=l)break;g[h--]=0,u=1}for(i=g.length;0===g[--i];g.pop());}e.e>R?e.c=e.e=null:e.e<U&&(e.c=[e.e=0])}return e}function J(e){var t,n=e.e;return null===n?e.toString():(t=m(e.c),t=n<=D||n>=F?E(t,n):B(t,n,"0"),e.s<0?"-"+t:t)}return q.clone=e,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(u+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(v(n=e[t],0,g,t),N=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(v(n=e[t],0,8,t),k=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(v(n[0],-g,0,t),v(n[1],0,g,t),D=n[0],F=n[1]):(v(n,-g,g,t),D=-(F=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)v(n[0],-g,-1,t),v(n[1],1,g,t),U=n[0],R=n[1];else{if(v(n,-g,g,t),!n)throw Error(u+t+" cannot be zero: "+n);U=-(R=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(u+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw P=!n,Error(u+"crypto unavailable");P=n}else P=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(v(n=e[t],0,9,t),M=n),e.hasOwnProperty(t="POW_PRECISION")&&(v(n=e[t],0,g,t),j=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(u+t+" not an object: "+n);L=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);H="0123456789"==n.slice(0,10),G=n}}return{DECIMAL_PLACES:N,ROUNDING_MODE:k,EXPONENTIAL_AT:[D,F],RANGE:[U,R],CRYPTO:P,MODULO_MODE:M,POW_PRECISION:j,FORMAT:L,ALPHABET:G}},q.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!q.DEBUG)return!0;var t,n,r=e.c,o=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&o>=-g&&o<=g&&o===c(o)){if(0===r[0]){if(0===o&&1===r.length)return!0;break e}if((t=(o+1)%f)<1&&(t+=f),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=l||n!==c(n))break e;if(0!==n)return!0}}}else if(null===r&&null===o&&(null===i||1===i||-1===i))return!0;throw Error(u+"Invalid BigNumber: "+e)},q.maximum=q.max=function(){return K(arguments,T.lt)},q.minimum=q.min=function(){return K(arguments,T.gt)},q.random=(i=9007199254740992,C=Math.random()*i&2097151?function(){return c(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,o,i,a=0,A=[],l=new q(O);if(null==e?e=N:v(e,0,g),o=s(e/f),P)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));a<o;)(i=131072*t[a]+(t[a+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[a]=n[0],t[a+1]=n[1]):(A.push(i%1e14),a+=2);a=o/2}else{if(!crypto.randomBytes)throw P=!1,Error(u+"crypto unavailable");for(t=crypto.randomBytes(o*=7);a<o;)(i=281474976710656*(31&t[a])+1099511627776*t[a+1]+4294967296*t[a+2]+16777216*t[a+3]+(t[a+4]<<16)+(t[a+5]<<8)+t[a+6])>=9e15?crypto.randomBytes(7).copy(t,a):(A.push(i%1e14),a+=7);a=o/7}if(!P)for(;a<o;)(i=C())<9e15&&(A[a++]=i%1e14);for(o=A[--a],e%=f,o&&e&&(i=p[f-e],A[a]=c(o/i)*i);0===A[a];A.pop(),a--);if(a<0)A=[r=0];else{for(r=-1;0===A[0];A.splice(0,1),r-=f);for(a=1,i=A[0];i>=10;i/=10,a++);a<f&&(r-=f-a)}return l.e=r,l.c=A,l}),q.sum=function(){for(var e=1,t=arguments,n=new q(t[0]);e<t.length;)n=n.plus(t[e++]);return n},r=function(){var e="0123456789";function t(e,t,n,r){for(var o,i,a=[0],s=0,c=e.length;s<c;){for(i=a.length;i--;a[i]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),o=0;o<a.length;o++)a[o]>n-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/n|0,a[o]%=n)}return a.reverse()}return function(r,o,i,a,s){var c,u,A,l,f,h,p,d,g=r.indexOf("."),y=N,I=k;for(g>=0&&(l=j,j=0,r=r.replace(".",""),h=(d=new q(o)).pow(r.length-g),j=l,d.c=t(B(m(h.c),h.e,"0"),10,i,e),d.e=d.c.length),A=l=(p=t(r,o,i,s?(c=G,e):(c=e,G))).length;0==p[--l];p.pop());if(!p[0])return c.charAt(0);if(g<0?--A:(h.c=p,h.e=A,h.s=a,p=(h=n(h,d,y,I,i)).c,f=h.r,A=h.e),g=p[u=A+y+1],l=i/2,f=f||u<0||null!=p[u+1],f=I<4?(null!=g||f)&&(0==I||I==(h.s<0?3:2)):g>l||g==l&&(4==I||f||6==I&&1&p[u-1]||I==(h.s<0?8:7)),u<1||!p[0])r=f?B(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(p.length=u,f)for(--i;++p[--u]>i;)p[u]=0,u||(++A,p=[1].concat(p));for(l=p.length;!p[--l];);for(g=0,r="";g<=l;r+=c.charAt(p[g++]));r=B(r,A,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,o,i,a,s=0,c=e.length,u=t%d,A=t/d|0;for(e=e.slice();c--;)s=((o=u*(i=e[c]%d)+(r=A*i+(a=e[c]/d|0)*u)%d*d+s)/n|0)+(r/d|0)+A*a,e[c]=o%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,o,i,a,s){var u,A,h,p,d,g,m,I,v,w,E,B,C,b,Q,x,_,S=r.s==o.s?1:-1,T=r.c,O=o.c;if(!(T&&T[0]&&O&&O[0]))return new q(r.s&&o.s&&(T?!O||T[0]!=O[0]:O)?T&&0==T[0]||!O?0*S:S/0:NaN);for(v=(I=new q(S)).c=[],S=i+(A=r.e-o.e)+1,s||(s=l,A=y(r.e/f)-y(o.e/f),S=S/f|0),h=0;O[h]==(T[h]||0);h++);if(O[h]>(T[h]||0)&&A--,S<0)v.push(1),p=!0;else{for(b=T.length,x=O.length,h=0,S+=2,(d=c(s/(O[0]+1)))>1&&(O=e(O,d,s),T=e(T,d,s),x=O.length,b=T.length),C=x,E=(w=T.slice(0,x)).length;E<x;w[E++]=0);_=O.slice(),_=[0].concat(_),Q=O[0],O[1]>=s/2&&Q++;do{if(d=0,(u=t(O,w,x,E))<0){if(B=w[0],x!=E&&(B=B*s+(w[1]||0)),(d=c(B/Q))>1)for(d>=s&&(d=s-1),m=(g=e(O,d,s)).length,E=w.length;1==t(g,w,m,E);)d--,n(g,x<m?_:O,m,s),m=g.length,u=1;else 0==d&&(u=d=1),m=(g=O.slice()).length;if(m<E&&(g=[0].concat(g)),n(w,g,E,s),E=w.length,-1==u)for(;t(O,w,x,E)<1;)d++,n(w,x<E?_:O,E,s),E=w.length}else 0===u&&(d++,w=[0]);v[h++]=d,w[0]?w[E++]=T[C]||0:(w=[T[C]],E=1)}while((C++<b||null!=w[0])&&S--);p=null!=w[0],v[0]||v.splice(0,1)}if(s==l){for(h=1,S=v[0];S>=10;S/=10,h++);V(I,i+(I.e=h+A*f-1)+1,a,p)}else I.e=A,I.r=+p;return I}}(),b=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Q=/^([^.]+)\.$/,x=/^\.([^.]+)$/,_=/^-?(Infinity|NaN)$/,S=/^\s*\+(?=[\w.])|^\s+|\s+$/g,o=function(e,t,n,r){var o,i=n?t:t.replace(S,"");if(_.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!n&&(i=i.replace(b,(function(e,t,n){return o="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=o?e:t})),r&&(o=r,i=i.replace(Q,"$1").replace(x,"0.$1")),t!=i))return new q(i,o);if(q.DEBUG)throw Error(u+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},T.absoluteValue=T.abs=function(){var e=new q(this);return e.s<0&&(e.s=1),e},T.comparedTo=function(e,t){return I(this,new q(e,t))},T.decimalPlaces=T.dp=function(e,t){var n,r,o,i=this;if(null!=e)return v(e,0,g),null==t?t=k:v(t,0,8),V(new q(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((o=n.length-1)-y(this.e/f))*f,o=n[o])for(;o%10==0;o/=10,r--);return r<0&&(r=0),r},T.dividedBy=T.div=function(e,t){return n(this,new q(e,t),N,k)},T.dividedToIntegerBy=T.idiv=function(e,t){return n(this,new q(e,t),0,1)},T.exponentiatedBy=T.pow=function(e,t){var n,r,o,i,a,A,l,h,p=this;if((e=new q(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+J(e));if(null!=t&&(t=new q(t)),a=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new q(Math.pow(+J(p),a?2-w(e):+J(e))),t?h.mod(t):h;if(A=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new q(NaN);(r=!A&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||a&&p.c[1]>=24e7:p.c[0]<8e13||a&&p.c[0]<=9999975e7)))return i=p.s<0&&w(e)?-0:0,p.e>-1&&(i=1/i),new q(A?1/i:i);j&&(i=s(j/f+2))}for(a?(n=new q(.5),A&&(e.s=1),l=w(e)):l=(o=Math.abs(+J(e)))%2,h=new q(O);;){if(l){if(!(h=h.times(p)).c)break;i?h.c.length>i&&(h.c.length=i):r&&(h=h.mod(t))}if(o){if(0===(o=c(o/2)))break;l=o%2}else if(V(e=e.times(n),e.e+1,1),e.e>14)l=w(e);else{if(0==(o=+J(e)))break;l=o%2}p=p.times(p),i?p.c&&p.c.length>i&&(p.c.length=i):r&&(p=p.mod(t))}return r?h:(A&&(h=O.div(h)),t?h.mod(t):i?V(h,j,k,void 0):h)},T.integerValue=function(e){var t=new q(this);return null==e?e=k:v(e,0,8),V(t,t.e+1,e)},T.isEqualTo=T.eq=function(e,t){return 0===I(this,new q(e,t))},T.isFinite=function(){return!!this.c},T.isGreaterThan=T.gt=function(e,t){return I(this,new q(e,t))>0},T.isGreaterThanOrEqualTo=T.gte=function(e,t){return 1===(t=I(this,new q(e,t)))||0===t},T.isInteger=function(){return!!this.c&&y(this.e/f)>this.c.length-2},T.isLessThan=T.lt=function(e,t){return I(this,new q(e,t))<0},T.isLessThanOrEqualTo=T.lte=function(e,t){return-1===(t=I(this,new q(e,t)))||0===t},T.isNaN=function(){return!this.s},T.isNegative=function(){return this.s<0},T.isPositive=function(){return this.s>0},T.isZero=function(){return!!this.c&&0==this.c[0]},T.minus=function(e,t){var n,r,o,i,a=this,s=a.s;if(t=(e=new q(e,t)).s,!s||!t)return new q(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/f,u=e.e/f,A=a.c,h=e.c;if(!c||!u){if(!A||!h)return A?(e.s=-t,e):new q(h?a:NaN);if(!A[0]||!h[0])return h[0]?(e.s=-t,e):new q(A[0]?a:3==k?-0:0)}if(c=y(c),u=y(u),A=A.slice(),s=c-u){for((i=s<0)?(s=-s,o=A):(u=c,o=h),o.reverse(),t=s;t--;o.push(0));o.reverse()}else for(r=(i=(s=A.length)<(t=h.length))?s:t,s=t=0;t<r;t++)if(A[t]!=h[t]){i=A[t]<h[t];break}if(i&&(o=A,A=h,h=o,e.s=-e.s),(t=(r=h.length)-(n=A.length))>0)for(;t--;A[n++]=0);for(t=l-1;r>s;){if(A[--r]<h[r]){for(n=r;n&&!A[--n];A[n]=t);--A[n],A[r]+=l}A[r]-=h[r]}for(;0==A[0];A.splice(0,1),--u);return A[0]?z(e,A,u):(e.s=3==k?-1:1,e.c=[e.e=0],e)},T.modulo=T.mod=function(e,t){var r,o,i=this;return e=new q(e,t),!i.c||!e.s||e.c&&!e.c[0]?new q(NaN):!e.c||i.c&&!i.c[0]?new q(i):(9==M?(o=e.s,e.s=1,r=n(i,e,0,3),e.s=o,r.s*=o):r=n(i,e,0,M),(e=i.minus(r.times(e))).c[0]||1!=M||(e.s=i.s),e)},T.multipliedBy=T.times=function(e,t){var n,r,o,i,a,s,c,u,A,h,p,g,m,I,v,w=this,E=w.c,B=(e=new q(e,t)).c;if(!(E&&B&&E[0]&&B[0]))return!w.s||!e.s||E&&!E[0]&&!B||B&&!B[0]&&!E?e.c=e.e=e.s=null:(e.s*=w.s,E&&B?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=y(w.e/f)+y(e.e/f),e.s*=w.s,(c=E.length)<(h=B.length)&&(m=E,E=B,B=m,o=c,c=h,h=o),o=c+h,m=[];o--;m.push(0));for(I=l,v=d,o=h;--o>=0;){for(n=0,p=B[o]%v,g=B[o]/v|0,i=o+(a=c);i>o;)n=((u=p*(u=E[--a]%v)+(s=g*u+(A=E[a]/v|0)*p)%v*v+m[i]+n)/I|0)+(s/v|0)+g*A,m[i--]=u%I;m[i]=n}return n?++r:m.splice(0,1),z(e,m,r)},T.negated=function(){var e=new q(this);return e.s=-e.s||null,e},T.plus=function(e,t){var n,r=this,o=r.s;if(t=(e=new q(e,t)).s,!o||!t)return new q(NaN);if(o!=t)return e.s=-t,r.minus(e);var i=r.e/f,a=e.e/f,s=r.c,c=e.c;if(!i||!a){if(!s||!c)return new q(o/0);if(!s[0]||!c[0])return c[0]?e:new q(s[0]?r:0*o)}if(i=y(i),a=y(a),s=s.slice(),o=i-a){for(o>0?(a=i,n=c):(o=-o,n=s),n.reverse();o--;n.push(0));n.reverse()}for((o=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=o),o=0;t;)o=(s[--t]=s[t]+c[t]+o)/l|0,s[t]=l===s[t]?0:s[t]%l;return o&&(s=[o].concat(s),++a),z(e,s,a)},T.precision=T.sd=function(e,t){var n,r,o,i=this;if(null!=e&&e!==!!e)return v(e,1,g),null==t?t=k:v(t,0,8),V(new q(i),e,t);if(!(n=i.c))return null;if(r=(o=n.length-1)*f+1,o=n[o]){for(;o%10==0;o/=10,r--);for(o=n[0];o>=10;o/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},T.shiftedBy=function(e){return v(e,-9007199254740991,h),this.times("1e"+e)},T.squareRoot=T.sqrt=function(){var e,t,r,o,i,a=this,s=a.c,c=a.s,u=a.e,A=N+4,l=new q("0.5");if(1!==c||!s||!s[0])return new q(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(c=Math.sqrt(+J(a)))||c==1/0?(((t=m(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=y((u+1)/2)-(u<0||u%2),r=new q(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new q(c+""),r.c[0])for((c=(u=r.e)+A)<3&&(c=0);;)if(i=r,r=l.times(i.plus(n(a,i,A,1))),m(i.c).slice(0,c)===(t=m(r.c)).slice(0,c)){if(r.e<u&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(V(r,r.e+N+2,1),e=!r.times(r).eq(a));break}if(!o&&(V(i,i.e+N+2,0),i.times(i).eq(a))){r=i;break}A+=4,c+=4,o=1}return V(r,r.e+N+1,k,e)},T.toExponential=function(e,t){return null!=e&&(v(e,0,g),e++),Y(this,e,t,1)},T.toFixed=function(e,t){return null!=e&&(v(e,0,g),e=e+this.e+1),Y(this,e,t)},T.toFormat=function(e,t,n){var r,o=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=L;else if("object"!=typeof n)throw Error(u+"Argument not an object: "+n);if(r=o.toFixed(e,t),o.c){var i,a=r.split("."),s=+n.groupSize,c=+n.secondaryGroupSize,A=n.groupSeparator||"",l=a[0],f=a[1],h=o.s<0,p=h?l.slice(1):l,d=p.length;if(c&&(i=s,s=c,c=i,d-=i),s>0&&d>0){for(i=d%s||s,l=p.substr(0,i);i<d;i+=s)l+=A+p.substr(i,s);c>0&&(l+=A+p.slice(i)),h&&(l="-"+l)}r=f?l+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):l}return(n.prefix||"")+r+(n.suffix||"")},T.toFraction=function(e){var t,r,o,i,a,s,c,A,l,h,d,g,y=this,I=y.c;if(null!=e&&(!(c=new q(e)).isInteger()&&(c.c||1!==c.s)||c.lt(O)))throw Error(u+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+J(c));if(!I)return new q(y);for(t=new q(O),l=r=new q(O),o=A=new q(O),g=m(I),a=t.e=g.length-y.e-1,t.c[0]=p[(s=a%f)<0?f+s:s],e=!e||c.comparedTo(t)>0?a>0?t:l:c,s=R,R=1/0,c=new q(g),A.c[0]=0;h=n(c,t,0,1),1!=(i=r.plus(h.times(o))).comparedTo(e);)r=o,o=i,l=A.plus(h.times(i=l)),A=i,t=c.minus(h.times(i=t)),c=i;return i=n(e.minus(r),o,0,1),A=A.plus(i.times(l)),r=r.plus(i.times(o)),A.s=l.s=y.s,d=n(l,o,a*=2,k).minus(y).abs().comparedTo(n(A,r,a,k).minus(y).abs())<1?[l,o]:[A,r],R=s,d},T.toNumber=function(){return+J(this)},T.toPrecision=function(e,t){return null!=e&&v(e,1,g),Y(this,e,t,2)},T.toString=function(e){var t,n=this,o=n.s,i=n.e;return null===i?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(null==e?t=i<=D||i>=F?E(m(n.c),i):B(m(n.c),i,"0"):10===e&&H?t=B(m((n=V(new q(n),N+i+1,k)).c),n.e,"0"):(v(e,2,G.length,"Base"),t=r(B(m(n.c),i,"0"),10,e,o,!0)),o<0&&n.c[0]&&(t="-"+t)),t},T.valueOf=T.toJSON=function(){return J(this)},T._isBigNumber=!0,null!=t&&q.set(t),q}(),i.default=i.BigNumber=i,void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},30246:function(e){const t=2147483648;var n=function(e){if(!Array.isArray(e))throw new Error("Input must be an Array");if(0===e.length)throw new Error("Path must contain at least one level");for(var t=0;t<e.length;t++)if("number"!=typeof e[t])throw new Error("Path element is not a number");this.path=e};n.validatePathArray=function(e){try{return n.fromPathArray(e),!0}catch(e){return!1}},n.validateString=function(e,t){try{return n.fromString(e,t),!0}catch(e){return!1}},n.fromPathArray=function(e){return new n(e)},n.fromString=function(e,r){if(/^m\//i.test(e))e=e.slice(2);else if(r)throw new Error("Root element is required");for(var o=e.split("/"),i=new Array(o.length),a=0;a<o.length;a++){var s=/(\d+)([hH\']?)/.exec(o[a]);if(null===s)throw new Error("Invalid input");if(i[a]=parseInt(s[1],10),i[a]>=t)throw new Error("Invalid child index");if("h"===s[2]||"H"===s[2]||"'"===s[2])i[a]+=t;else if(0!=s[2].length)throw new Error("Invalid modifier")}return new n(i)},n.prototype.toPathArray=function(){return this.path},n.prototype.toString=function(e,n){for(var r=new Array(this.path.length),o=0;o<this.path.length;o++){var i=this.path[o];r[o]=i&t?(i&~t)+(n?"h":"'"):i}return(e?"":"m/")+r.join("/")},n.prototype.inspect=function(){return"BIPPath <"+this.toString()+">"},e.exports=n},77191:function(e,t,n){var r=n(58162);e.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},50706:function(e,t,n){var r=n(48764).Buffer;!function(){"use strict";e.exports=function(e){return(e instanceof r?e:r.from(e.toString(),"binary")).toString("base64")}}()},48764:function(e,t,n){"use strict";const r=n(79742),o=n(80645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){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 u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|d(e,t);let r=s(n);const o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return f(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 h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const o=function(e){if(c.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||W(e.length)?s(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function A(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 A(e),s(e<0?0:0|p(e))}function f(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function d(e,t){if(c.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 n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(o)return r?-1:K(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return Q(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return b(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),W(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:I(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):I(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function I(e,t,n,r,o){let i,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===c)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){let n=!0;for(let r=0;r<c;r++)if(u(e,i+r)!==u(t,r)){n=!1;break}if(n)return i}return-1}function v(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(W(r))return a;e[n+a]=r}return a}function w(e,t,n,r){return V(K(t,e.length-n),e,n,r)}function E(e,t,n,r){return V(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function B(e,t,n,r){return V(z(t),e,n,r)}function C(e,t,n,r){return V(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function b(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function Q(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(i=c));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=x));return n}(r)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return A(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(J(t,Uint8Array))o+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},c.byteLength=d,c.prototype._isBuffer=!0,c.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;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?Q(this,0,e):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,o){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.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===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(i,a),u=this.slice(r,o),A=e.slice(t,n);for(let e=0;e<s;++e)if(u[e]!==A[e]){i=u[e],a=A[e];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return B(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const x=4096;function _(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function S(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function T(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=$[e[r]];return o}function O(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r,o){G(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function F(e,t,n,r,o){G(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function U(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,i){return t=+t,n>>>=0,i||U(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,i){return t=+t,n>>>=0,i||U(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=X((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),c.prototype.readBigUInt64BE=X((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=X((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=X((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(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},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(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},c.prototype.writeBigUInt64LE=X((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=X((function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(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},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(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},c.prototype.writeBigInt64LE=X((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=X((function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=c.isBuffer(e)?e:c.from(e,r),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const M={};function j(e,t,n){M[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function L(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function G(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new M.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,o,i)}function H(e,t){if("number"!=typeof e)throw new M.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new M.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=L(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=L(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function K(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function W(e){return e!=e}const $=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function X(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},21924:function(e,t,n){"use strict";var r=n(40210),o=n(55559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},55559:function(e,t,n){"use strict";var r=n(58612),o=n(40210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),A=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,a,arguments);if(c&&u){var n=c(t,"length");n.configurable&&u(t,"length",{value:1+A(0,e.length-(arguments.length-1))})}return t};var l=function(){return s(r,i,arguments)};u?u(e.exports,"apply",{value:l}):e.exports.apply=l},76489:function(e,t){"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var r={},i=t||{},s=e.split(o),c=i.decode||n,u=0;u<s.length;u++){var A=s[u],l=A.indexOf("=");if(!(l<0)){var f=A.substr(0,l).trim(),h=A.substr(++l,A.length).trim();'"'==h[0]&&(h=h.slice(1,-1)),null==r[f]&&(r[f]=a(h,c))}}return r},t.serialize=function(e,t,n){var o=n||{},a=o.encode||r;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var s=a(t);if(s&&!i.test(s))throw new TypeError("argument val is invalid");var c=e+"="+s;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(u)}if(o.domain){if(!i.test(o.domain))throw new TypeError("option domain is invalid");c+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is invalid");c+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(c+="; HttpOnly"),o.secure&&(c+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return c};var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(t){return e}}},95299:function(e,t,n){var r=n(27698);e.exports=r},83450:function(e,t,n){var r=n(83363);e.exports=r},66820:function(e,t,n){var r=n(56243);e.exports=r},3688:function(e,t,n){var r=n(11955);e.exports=r},83838:function(e,t,n){var r=n(46279);e.exports=r},15684:function(e,t,n){var r=n(19373);e.exports=r},84234:function(e,t,n){var r=n(82073);e.exports=r},91254:function(e,t,n){var r=n(57396);e.exports=r},43536:function(e,t,n){var r=n(41910);e.exports=r},37331:function(e,t,n){var r=n(79427);e.exports=r},68522:function(e,t,n){var r=n(62857);e.exports=r},73151:function(e,t,n){var r=n(9534);e.exports=r},45012:function(e,t,n){var r=n(23059);e.exports=r},25626:function(e,t,n){var r=n(27460);e.exports=r},80281:function(e,t,n){var r=n(92547);e.exports=r},40031:function(e,t,n){var r=n(46509);e.exports=r},54493:function(e,t,n){n(77971),n(53242);var r=n(54058);e.exports=r.Array.from},24034:function(e,t,n){n(92737);var r=n(54058);e.exports=r.Array.isArray},15367:function(e,t,n){n(85906);var r=n(35703);e.exports=r("Array").concat},12710:function(e,t,n){n(66274),n(55967);var r=n(35703);e.exports=r("Array").entries},62383:function(e,t,n){n(21501);var r=n(35703);e.exports=r("Array").filter},17671:function(e,t,n){n(80833);var r=n(35703);e.exports=r("Array").find},99324:function(e,t,n){n(2437);var r=n(35703);e.exports=r("Array").forEach},80991:function(e,t,n){n(97690);var r=n(35703);e.exports=r("Array").includes},8700:function(e,t,n){n(99076);var r=n(35703);e.exports=r("Array").indexOf},23866:function(e,t,n){n(68787);var r=n(35703);e.exports=r("Array").map},24900:function(e,t,n){n(60186);var r=n(35703);e.exports=r("Array").slice},78209:function(e,t,n){n(98611);var r=n(35703);e.exports=r("Array").splice},13830:function(e,t,n){n(66274),n(77971);var r=n(22902);e.exports=r},56043:function(e,t,n){var r=n(7046),o=n(15367),i=Array.prototype;e.exports=function(e){var t=e.concat;return e===i||r(i,e)&&t===i.concat?o:t}},2480:function(e,t,n){var r=n(7046),o=n(62383),i=Array.prototype;e.exports=function(e){var t=e.filter;return e===i||r(i,e)&&t===i.filter?o:t}},32236:function(e,t,n){var r=n(7046),o=n(17671),i=Array.prototype;e.exports=function(e){var t=e.find;return e===i||r(i,e)&&t===i.find?o:t}},58557:function(e,t,n){var r=n(7046),o=n(80991),i=n(21631),a=Array.prototype,s=String.prototype;e.exports=function(e){var t=e.includes;return e===a||r(a,e)&&t===a.includes?o:"string"==typeof e||e===s||r(s,e)&&t===s.includes?i:t}},34570:function(e,t,n){var r=n(7046),o=n(8700),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||r(i,e)&&t===i.indexOf?o:t}},88287:function(e,t,n){var r=n(7046),o=n(23866),i=Array.prototype;e.exports=function(e){var t=e.map;return e===i||r(i,e)&&t===i.map?o:t}},69601:function(e,t,n){var r=n(7046),o=n(24900),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||r(i,e)&&t===i.slice?o:t}},18339:function(e,t,n){var r=n(7046),o=n(78209),i=Array.prototype;e.exports=function(e){var t=e.splice;return e===i||r(i,e)&&t===i.splice?o:t}},71611:function(e,t,n){var r=n(7046),o=n(3269),i=String.prototype;e.exports=function(e){var t=e.startsWith;return"string"==typeof e||e===i||r(i,e)&&t===i.startsWith?o:t}},84426:function(e,t,n){n(32619);var r=n(54058),o=n(79730);r.JSON||(r.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return o(r.JSON.stringify,null,arguments)}},45999:function(e,t,n){n(49221);var r=n(54058);e.exports=r.Object.assign},7702:function(e,t,n){n(74979);var r=n(54058).Object,o=e.exports=function(e,t){return r.defineProperties(e,t)};r.defineProperties.sham&&(o.sham=!0)},48171:function(e,t,n){n(86450);var r=n(54058).Object,o=e.exports=function(e,t,n){return r.defineProperty(e,t,n)};r.defineProperty.sham&&(o.sham=!0)},73081:function(e,t,n){n(21078);var r=n(54058);e.exports=r.Object.entries},286:function(e,t,n){n(46924);var r=n(54058).Object,o=e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)};r.getOwnPropertyDescriptor.sham&&(o.sham=!0)},92766:function(e,t,n){n(88482);var r=n(54058);e.exports=r.Object.getOwnPropertyDescriptors},30498:function(e,t,n){n(35824);var r=n(54058);e.exports=r.Object.getOwnPropertySymbols},48494:function(e,t,n){n(21724);var r=n(54058);e.exports=r.Object.keys},52956:function(e,t,n){n(47627),n(66274),n(55967),n(98881),n(4560),n(91302),n(44349),n(77971);var r=n(54058);e.exports=r.Promise},21631:function(e,t,n){n(11035);var r=n(35703);e.exports=r("String").includes},3269:function(e,t,n){n(94761);var r=n(35703);e.exports=r("String").startsWith},57473:function(e,t,n){n(85906),n(55967),n(35824),n(8555),n(52615),n(21732),n(35903),n(1825),n(28394),n(45915),n(61766),n(62737),n(89911),n(74315),n(63131),n(64714),n(70659),n(69120),n(79413),n(1502);var r=n(54058);e.exports=r.Symbol},24227:function(e,t,n){n(66274),n(55967),n(77971),n(1825);var r=n(11477);e.exports=r.f("iterator")},32304:function(e,t,n){n(66274),n(55967),n(54334);var r=n(54058);e.exports=r.WeakMap},27385:function(e,t,n){var r=n(95299);e.exports=r},81522:function(e,t,n){var r=n(83450);e.exports=r},32209:function(e,t,n){var r=n(66820);e.exports=r},44442:function(e,t,n){var r=n(3688);e.exports=r},57152:function(e,t,n){var r=n(83838);e.exports=r},69447:function(e,t,n){var r=n(15684);e.exports=r},81493:function(e,t,n){var r=n(84234);e.exports=r},70573:function(e,t,n){var r=n(91254);e.exports=r},73685:function(e,t,n){var r=n(43536);e.exports=r},27533:function(e,t,n){var r=n(37331);e.exports=r},39057:function(e,t,n){var r=n(68522);e.exports=r},84710:function(e,t,n){var r=n(73151);e.exports=r},93799:function(e,t,n){var r=n(45012);e.exports=r},29531:function(e,t,n){var r=n(25626);n(89731),n(55708),n(30014),n(88731),e.exports=r},86600:function(e,t,n){var r=n(80281);n(28783),n(43975),n(65799),n(45414),n(46774),n(80620),n(36172),e.exports=r},9759:function(e,t,n){var r=n(40031);e.exports=r},24883:function(e,t,n){var r=n(21899),o=n(57475),i=n(69826),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},174:function(e,t,n){var r=n(21899),o=n(24284),i=n(69826),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},11851:function(e,t,n){var r=n(21899),o=n(57475),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},18479:function(e){e.exports=function(){}},5743:function(e,t,n){var r=n(21899),o=n(7046),i=r.TypeError;e.exports=function(e,t){if(o(t,e))return e;throw i("Incorrect invocation")}},96059:function(e,t,n){var r=n(21899),o=n(10941),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},97135:function(e,t,n){var r=n(95981);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},56837:function(e,t,n){"use strict";var r=n(3610).forEach,o=n(34194)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},11354:function(e,t,n){"use strict";var r=n(21899),o=n(86843),i=n(78834),a=n(89678),s=n(75196),c=n(6782),u=n(24284),A=n(10623),l=n(55449),f=n(53476),h=n(22902),p=r.Array;e.exports=function(e){var t=a(e),n=u(this),r=arguments.length,d=r>1?arguments[1]:void 0,g=void 0!==d;g&&(d=o(d,r>2?arguments[2]:void 0));var y,m,I,v,w,E,B=h(t),C=0;if(!B||this==p&&c(B))for(y=A(t),m=n?new this(y):p(y);y>C;C++)E=g?d(t[C],C):t[C],l(m,C,E);else for(w=(v=f(t,B)).next,m=n?new this:[];!(I=i(w,v)).done;C++)E=g?s(v,d,[I.value,C],!0):I.value,l(m,C,E);return m.length=C,m}},31692:function(e,t,n){var r=n(74529),o=n(59413),i=n(10623),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c),A=o(a,u);if(e&&n!=n){for(;u>A;)if((s=c[A++])!=s)return!0}else for(;u>A;A++)if((e||A in c)&&c[A]===n)return e||A||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3610:function(e,t,n){var r=n(86843),o=n(95329),i=n(37026),a=n(89678),s=n(10623),c=n(64692),u=o([].push),A=function(e){var t=1==e,n=2==e,o=3==e,A=4==e,l=6==e,f=7==e,h=5==e||l;return function(p,d,g,y){for(var m,I,v=a(p),w=i(v),E=r(d,g),B=s(w),C=0,b=y||c,Q=t?b(p,B):n||f?b(p,0):void 0;B>C;C++)if((h||C in w)&&(I=E(m=w[C],C,v),e))if(t)Q[C]=I;else if(I)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:u(Q,m)}else switch(e){case 4:return!1;case 7:u(Q,m)}return l?-1:o||A?A:Q}};e.exports={forEach:A(0),map:A(1),filter:A(2),some:A(3),every:A(4),find:A(5),findIndex:A(6),filterReject:A(7)}},50568:function(e,t,n){var r=n(95981),o=n(99813),i=n(53385),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},34194:function(e,t,n){"use strict";var r=n(95981);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},15790:function(e,t,n){var r=n(21899),o=n(59413),i=n(10623),a=n(55449),s=r.Array,c=Math.max;e.exports=function(e,t,n){for(var r=i(e),u=o(t,r),A=o(void 0===n?r:n,r),l=s(c(A-u,0)),f=0;u<A;u++,f++)a(l,f,e[u]);return l.length=f,l}},93765:function(e,t,n){var r=n(95329);e.exports=r([].slice)},61388:function(e,t,n){var r=n(15790),o=Math.floor,i=function(e,t){var n=e.length,c=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,c),t),i(r(e,c),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},5693:function(e,t,n){var r=n(21899),o=n(1052),i=n(24284),a=n(10941),s=n(99813)("species"),c=r.Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(i(t)&&(t===c||o(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?c:t}},64692:function(e,t,n){var r=n(5693);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},75196:function(e,t,n){var r=n(96059),o=n(7609);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},21385:function(e,t,n){var r=n(99813)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},82532:function(e,t,n){var r=n(95329),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},9697:function(e,t,n){var r=n(21899),o=n(22885),i=n(57475),a=n(82532),s=n(99813)("toStringTag"),c=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=c(e),s))?n:u?a(t):"Object"==(r=a(t))&&i(t.callee)?"Arguments":r}},38694:function(e,t,n){var r=n(95329)("".replace),o=String(Error("zxcasd").stack),i=/\n\s*at [^:]*:[^\n]*/,a=i.test(o);e.exports=function(e,t){if(a&&"string"==typeof e)for(;t--;)e=r(e,i,"");return e}},8850:function(e,t,n){"use strict";var r=n(95329),o=n(87524),i=n(21647).getWeakData,a=n(96059),s=n(10941),c=n(5743),u=n(93091),A=n(3610),l=n(90953),f=n(45402),h=f.set,p=f.getterFor,d=A.find,g=A.findIndex,y=r([].splice),m=0,I=function(e){return e.frozen||(e.frozen=new v)},v=function(){this.entries=[]},w=function(e,t){return d(e.entries,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=w(this,e);if(t)return t[1]},has:function(e){return!!w(this,e)},set:function(e,t){var n=w(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var A=e((function(e,o){c(e,f),h(e,{type:t,id:m++,frozen:void 0}),null!=o&&u(o,e[r],{that:e,AS_ENTRIES:n})})),f=A.prototype,d=p(t),g=function(e,t,n){var r=d(e),o=i(a(t),!0);return!0===o?I(r).set(t,n):o[r.id]=n,e};return o(f,{delete:function(e){var t=d(this);if(!s(e))return!1;var n=i(e);return!0===n?I(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=d(this);if(!s(e))return!1;var n=i(e);return!0===n?I(t).has(e):n&&l(n,t.id)}}),o(f,n?{get:function(e){var t=d(this);if(s(e)){var n=i(e);return!0===n?I(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),A}}},24683:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(21647),a=n(95981),s=n(32029),c=n(93091),u=n(5743),A=n(57475),l=n(10941),f=n(90904),h=n(65988).f,p=n(3610).forEach,d=n(55746),g=n(45402),y=g.set,m=g.getterFor;e.exports=function(e,t,n){var g,I=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),w=I?"set":"add",E=o[e],B=E&&E.prototype,C={};if(d&&A(E)&&(v||B.forEach&&!a((function(){(new E).entries().next()})))){var b=(g=t((function(t,n){y(u(t,b),{type:e,collection:new E}),null!=n&&c(n,t[w],{that:t,AS_ENTRIES:I})}))).prototype,Q=m(e);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in B)||v&&"clear"==e||s(b,e,(function(n,r){var o=Q(this).collection;if(!t&&v&&!l(n))return"get"==e&&void 0;var i=o[e](0===n?0:n,r);return t?this:i}))})),v||h(b,"size",{configurable:!0,get:function(){return Q(this).collection.size}})}else g=n.getConstructor(t,e,I,w),i.enable();return f(g,e,!1,!0),C[e]=g,r({global:!0,forced:!0},C),v||n.setStrong(g,e,I),g}},23489:function(e,t,n){var r=n(90953),o=n(31136),i=n(49677),a=n(65988);e.exports=function(e,t,n){for(var s=o(t),c=a.f,u=i.f,A=0;A<s.length;A++){var l=s[A];r(e,l)||n&&r(n,l)||c(e,l,u(t,l))}}},67772:function(e,t,n){var r=n(99813)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},64160:function(e,t,n){var r=n(95981);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},31046:function(e,t,n){"use strict";var r=n(35143).IteratorPrototype,o=n(29290),i=n(31887),a=n(90904),s=n(12077),c=function(){return this};e.exports=function(e,t,n,u){var A=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,A,!1,!0),s[A]=c,e}},32029:function(e,t,n){var r=n(55746),o=n(65988),i=n(31887);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},31887:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},55449:function(e,t,n){"use strict";var r=n(83894),o=n(65988),i=n(31887);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},47771:function(e,t,n){"use strict";var r=n(76887),o=n(78834),i=n(82529),a=n(79417),s=n(57475),c=n(31046),u=n(249),A=n(88929),l=n(90904),f=n(32029),h=n(99754),p=n(99813),d=n(12077),g=n(35143),y=a.PROPER,m=a.CONFIGURABLE,I=g.IteratorPrototype,v=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),E="keys",B="values",C="entries",b=function(){return this};e.exports=function(e,t,n,a,p,g,Q){c(n,t,a);var x,_,S,T=function(e){if(e===p&&F)return F;if(!v&&e in k)return k[e];switch(e){case E:case B:case C:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",N=!1,k=e.prototype,D=k[w]||k["@@iterator"]||p&&k[p],F=!v&&D||T(p),U="Array"==t&&k.entries||D;if(U&&(x=u(U.call(new e)))!==Object.prototype&&x.next&&(i||u(x)===I||(A?A(x,I):s(x[w])||h(x,w,b)),l(x,O,!0,!0),i&&(d[O]=b)),y&&p==B&&D&&D.name!==B&&(!i&&m?f(k,"name",B):(N=!0,F=function(){return o(D,this)})),p)if(_={values:T(B),keys:g?F:T(E),entries:T(C)},Q)for(S in _)(v||N||!(S in k))&&h(k,S,_[S]);else r({target:t,proto:!0,forced:v||N},_);return i&&!Q||k[w]===F||h(k,w,F,{name:p}),d[t]=F,_}},66349:function(e,t,n){var r=n(54058),o=n(90953),i=n(11477),a=n(65988).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},55746:function(e,t,n){var r=n(95981);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},61333:function(e,t,n){var r=n(21899),o=n(10941),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},63281:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:function(e){e.exports="object"==typeof window},4470:function(e,t,n){var r=n(2861),o=n(21899);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},22749:function(e,t,n){var r=n(2861);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},6049:function(e,t,n){var r=n(82532),o=n(21899);e.exports="process"==r(o.process)},58045:function(e,t,n){var r=n(2861);e.exports=/web0s(?!.*chrome)/i.test(r)},2861:function(e,t,n){var r=n(626);e.exports=r("navigator","userAgent")||""},53385:function(e,t,n){var r,o,i=n(21899),a=n(2861),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,A=u&&u.v8;A&&(o=(r=A.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},35703:function(e,t,n){var r=n(54058);e.exports=function(e){return r[e+"Prototype"]}},56759:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},18780:function(e,t,n){var r=n(95981),o=n(31887);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},76887:function(e,t,n){"use strict";var r=n(21899),o=n(79730),i=n(95329),a=n(57475),s=n(49677).f,c=n(37252),u=n(54058),A=n(86843),l=n(32029),f=n(90953),h=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,o,p,d,g,y,m,I,v=e.target,w=e.global,E=e.stat,B=e.proto,C=w?r:E?r[v]:(r[v]||{}).prototype,b=w?u:u[v]||l(u,v,{})[v],Q=b.prototype;for(p in t)n=!c(w?p:v+(E?".":"#")+p,e.forced)&&C&&f(C,p),g=b[p],n&&(y=e.noTargetGet?(I=s(C,p))&&I.value:C[p]),d=n&&y?y:t[p],n&&typeof g==typeof d||(m=e.bind&&n?A(d,r):e.wrap&&n?h(d):B&&a(d)?i(d):d,(e.sham||d&&d.sham||g&&g.sham)&&l(m,"sham",!0),l(b,p,m),B&&(f(u,o=v+"Prototype")||l(u,o,{}),l(u[o],p,d),e.real&&Q&&!Q[p]&&l(Q,p,d)))}},95981:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},45602:function(e,t,n){var r=n(95981);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},79730:function(e,t,n){var r=n(18285),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},86843:function(e,t,n){var r=n(95329),o=n(24883),i=n(18285),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},18285:function(e,t,n){var r=n(95981);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},78834:function(e,t,n){var r=n(18285),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},79417:function(e,t,n){var r=n(55746),o=n(90953),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},95329:function(e,t,n){var r=n(18285),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},626:function(e,t,n){var r=n(54058),o=n(21899),i=n(57475),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},22902:function(e,t,n){var r=n(9697),o=n(14229),i=n(12077),a=n(99813)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},53476:function(e,t,n){var r=n(21899),o=n(78834),i=n(24883),a=n(96059),s=n(69826),c=n(22902),u=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(i(n))return a(o(n,e));throw u(s(e)+" is not iterable")}},14229:function(e,t,n){var r=n(24883);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},21899:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},90953:function(e,t,n){var r=n(95329),o=n(89678),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},27748:function(e){e.exports={}},34845:function(e,t,n){var r=n(21899);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},15463:function(e,t,n){var r=n(626);e.exports=r("document","documentElement")},2840:function(e,t,n){var r=n(55746),o=n(95981),i=n(61333);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},37026:function(e,t,n){var r=n(21899),o=n(95329),i=n(95981),a=n(82532),s=r.Object,c=o("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):s(e)}:s},81302:function(e,t,n){var r=n(95329),o=n(57475),i=n(63030),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},53794:function(e,t,n){var r=n(10941),o=n(32029);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},21647:function(e,t,n){var r=n(76887),o=n(95329),i=n(27748),a=n(10941),s=n(90953),c=n(65988).f,u=n(10946),A=n(684),l=n(91584),f=n(99418),h=n(45602),p=!1,d=f("meta"),g=0,y=function(e){c(e,d,{value:{objectID:"O"+g++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},p=!0;var e=u.f,t=o([].splice),n={};n[d]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===d){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:A.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,d)){if(!l(e))return"F";if(!t)return"E";y(e)}return e[d].objectID},getWeakData:function(e,t){if(!s(e,d)){if(!l(e))return!0;if(!t)return!1;y(e)}return e[d].weakData},onFreeze:function(e){return h&&p&&l(e)&&!s(e,d)&&y(e),e}};i[d]=!0},45402:function(e,t,n){var r,o,i,a=n(38019),s=n(21899),c=n(95329),u=n(10941),A=n(32029),l=n(90953),f=n(63030),h=n(44262),p=n(27748),d="Object already initialized",g=s.TypeError,y=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new y),I=c(m.get),v=c(m.has),w=c(m.set);r=function(e,t){if(v(m,e))throw new g(d);return t.facade=e,w(m,e,t),t},o=function(e){return I(m,e)||{}},i=function(e){return v(m,e)}}else{var E=h("state");p[E]=!0,r=function(e,t){if(l(e,E))throw new g(d);return t.facade=e,A(e,E,t),t},o=function(e){return l(e,E)?e[E]:{}},i=function(e){return l(e,E)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}},6782:function(e,t,n){var r=n(99813),o=n(12077),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},1052:function(e,t,n){var r=n(82532);e.exports=Array.isArray||function(e){return"Array"==r(e)}},57475:function(e){e.exports=function(e){return"function"==typeof e}},24284:function(e,t,n){var r=n(95329),o=n(95981),i=n(57475),a=n(9697),s=n(626),c=n(81302),u=function(){},A=[],l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=r(f.exec),p=!f.exec(u),d=function(e){if(!i(e))return!1;try{return l(u,A,e),!0}catch(e){return!1}},g=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(f,c(e))}catch(e){return!0}};g.sham=!0,e.exports=!l||o((function(){var e;return d(d.call)||!d(Object)||!d((function(){e=!0}))||e}))?g:d},37252:function(e,t,n){var r=n(95981),o=n(57475),i=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n==A||n!=u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",A=a.POLYFILL="P";e.exports=a},10941:function(e,t,n){var r=n(57475);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},82529:function(e){e.exports=!0},60685:function(e,t,n){var r=n(10941),o=n(82532),i=n(99813)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},56664:function(e,t,n){var r=n(21899),o=n(626),i=n(57475),a=n(7046),s=n(32302),c=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&a(t.prototype,c(e))}},93091:function(e,t,n){var r=n(21899),o=n(86843),i=n(78834),a=n(96059),s=n(69826),c=n(6782),u=n(10623),A=n(7046),l=n(53476),f=n(22902),h=n(7609),p=r.TypeError,d=function(e,t){this.stopped=e,this.result=t},g=d.prototype;e.exports=function(e,t,n){var r,y,m,I,v,w,E,B=n&&n.that,C=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),Q=!(!n||!n.INTERRUPTED),x=o(t,B),_=function(e){return r&&h(r,"normal",e),new d(!0,e)},S=function(e){return C?(a(e),Q?x(e[0],e[1],_):x(e[0],e[1])):Q?x(e,_):x(e)};if(b)r=e;else{if(!(y=f(e)))throw p(s(e)+" is not iterable");if(c(y)){for(m=0,I=u(e);I>m;m++)if((v=S(e[m]))&&A(g,v))return v;return new d(!1)}r=l(e,y)}for(w=r.next;!(E=i(w,r)).done;){try{v=S(E.value)}catch(e){h(r,"throw",e)}if("object"==typeof v&&v&&A(g,v))return v}return new d(!1)}},7609:function(e,t,n){var r=n(78834),o=n(96059),i=n(14229);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},35143:function(e,t,n){"use strict";var r,o,i,a=n(95981),s=n(57475),c=n(29290),u=n(249),A=n(99754),l=n(99813),f=n(82529),h=l("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):p=!0),null==r||a((function(){var e={};return r[h].call(e)!==e}))?r={}:f&&(r=c(r)),s(r[h])||A(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},12077:function(e){e.exports={}},10623:function(e,t,n){var r=n(43057);e.exports=function(e){return r(e.length)}},66132:function(e,t,n){var r,o,i,a,s,c,u,A,l=n(21899),f=n(86843),h=n(49677).f,p=n(42941).set,d=n(22749),g=n(4470),y=n(58045),m=n(6049),I=l.MutationObserver||l.WebKitMutationObserver,v=l.document,w=l.process,E=l.Promise,B=h(l,"queueMicrotask"),C=B&&B.value;C||(r=function(){var e,t;for(m&&(e=w.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},d||m||y||!I||!v?!g&&E&&E.resolve?((u=E.resolve(void 0)).constructor=E,A=f(u.then,u),a=function(){A(r)}):m?a=function(){w.nextTick(r)}:(p=f(p,l),a=function(){p(r)}):(s=!0,c=v.createTextNode(""),new I(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=C||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},19297:function(e,t,n){var r=n(21899);e.exports=r.Promise},72497:function(e,t,n){var r=n(53385),o=n(95981);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},28468:function(e,t,n){var r=n(95981),o=n(99813),i=n(82529),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},38019:function(e,t,n){var r=n(21899),o=n(57475),i=n(81302),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},69520:function(e,t,n){"use strict";var r=n(24883),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},14649:function(e,t,n){var r=n(85803);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},70344:function(e,t,n){var r=n(21899),o=n(60685),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},24420:function(e,t,n){"use strict";var r=n(55746),o=n(95329),i=n(78834),a=n(95981),s=n(14771),c=n(87857),u=n(36760),A=n(89678),l=n(37026),f=Object.assign,h=Object.defineProperty,p=o([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=o}))?function(e,t){for(var n=A(e),o=arguments.length,a=1,f=c.f,h=u.f;o>a;)for(var d,g=l(arguments[a++]),y=f?p(s(g),f(g)):s(g),m=y.length,I=0;m>I;)d=y[I++],r&&!i(h,g,d)||(n[d]=g[d]);return n}:f},29290:function(e,t,n){var r,o=n(96059),i=n(59938),a=n(56759),s=n(27748),c=n(15463),u=n(61333),A=n(44262)("IE_PROTO"),l=function(){},f=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&r?h(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):h(r);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[A]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=o(e),n=new l,l.prototype=null,n[A]=e):n=p(),void 0===t?n:i.f(n,t)}},59938:function(e,t,n){var r=n(55746),o=n(83937),i=n(65988),a=n(96059),s=n(74529),c=n(14771);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=c(t),u=o.length,A=0;u>A;)i.f(e,n=o[A++],r[n]);return e}},65988:function(e,t,n){var r=n(21899),o=n(55746),i=n(2840),a=n(83937),s=n(96059),c=n(83894),u=r.TypeError,A=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=o?a?function(e,t,n){if(s(e),t=c(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=l(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return A(e,t,n)}:A:function(e,t,n){if(s(e),t=c(t),s(n),i)try{return A(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},49677:function(e,t,n){var r=n(55746),o=n(78834),i=n(36760),a=n(31887),s=n(74529),c=n(83894),u=n(90953),A=n(2840),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=s(e),t=c(t),A)try{return l(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},684:function(e,t,n){var r=n(82532),o=n(74529),i=n(10946).f,a=n(15790),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},10946:function(e,t,n){var r=n(55629),o=n(56759).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},87857:function(e,t){t.f=Object.getOwnPropertySymbols},249:function(e,t,n){var r=n(21899),o=n(90953),i=n(57475),a=n(89678),s=n(44262),c=n(64160),u=s("IE_PROTO"),A=r.Object,l=A.prototype;e.exports=c?A.getPrototypeOf:function(e){var t=a(e);if(o(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof A?l:null}},91584:function(e,t,n){var r=n(95981),o=n(10941),i=n(82532),a=n(97135),s=Object.isExtensible,c=r((function(){s(1)}));e.exports=c||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!s||s(e))}:s},7046:function(e,t,n){var r=n(95329);e.exports=r({}.isPrototypeOf)},55629:function(e,t,n){var r=n(95329),o=n(90953),i=n(74529),a=n(31692).indexOf,s=n(27748),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,A=[];for(n in r)!o(s,n)&&o(r,n)&&c(A,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(A,n)||c(A,n));return A}},14771:function(e,t,n){var r=n(55629),o=n(56759);e.exports=Object.keys||function(e){return r(e,o)}},36760:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},88929:function(e,t,n){var r=n(95329),o=n(96059),i=n(11851);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},88810:function(e,t,n){var r=n(55746),o=n(95329),i=n(14771),a=n(74529),s=o(n(36760).f),c=o([].push),u=function(e){return function(t){for(var n,o=a(t),u=i(o),A=u.length,l=0,f=[];A>l;)n=u[l++],r&&!s(o,n)||c(f,e?[n,o[n]]:o[n]);return f}};e.exports={entries:u(!0),values:u(!1)}},95623:function(e,t,n){"use strict";var r=n(22885),o=n(9697);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},39811:function(e,t,n){var r=n(21899),o=n(78834),i=n(57475),a=n(10941),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!a(r=o(n,e)))return r;if(i(n=e.valueOf)&&!a(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!a(r=o(n,e)))return r;throw s("Can't convert object to primitive value")}},31136:function(e,t,n){var r=n(626),o=n(95329),i=n(10946),a=n(87857),s=n(96059),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?c(t,n(e)):t}},54058:function(e){e.exports={}},40002:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},56584:function(e,t,n){var r=n(96059),o=n(10941),i=n(69520);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},18397:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},87524:function(e,t,n){var r=n(99754);e.exports=function(e,t,n){for(var o in t)n&&n.unsafe&&e[o]?e[o]=t[o]:r(e,o,t[o],n);return e}},99754:function(e,t,n){var r=n(32029);e.exports=function(e,t,n,o){o&&o.enumerable?e[t]=n:r(e,t,n)}},48219:function(e,t,n){var r=n(21899).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},4911:function(e,t,n){var r=n(21899),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},94431:function(e,t,n){"use strict";var r=n(626),o=n(65988),i=n(99813),a=n(55746),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},90904:function(e,t,n){var r=n(22885),o=n(65988).f,i=n(32029),a=n(90953),s=n(95623),c=n(99813)("toStringTag");e.exports=function(e,t,n,u){if(e){var A=n?e:e.prototype;a(A,c)||o(A,c,{configurable:!0,value:t}),u&&!r&&i(A,"toString",s)}}},44262:function(e,t,n){var r=n(68726),o=n(99418),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},63030:function(e,t,n){var r=n(21899),o=n(4911),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},68726:function(e,t,n){var r=n(82529),o=n(63030);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.20.3",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE",source:"https://github.com/zloirock/core-js"})},70487:function(e,t,n){var r=n(96059),o=n(174),i=n(99813)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},64620:function(e,t,n){var r=n(95329),o=n(62435),i=n(85803),a=n(48219),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),A=function(e){return function(t,n){var r,A,l=i(a(t)),f=o(n),h=l.length;return f<0||f>=h?e?"":void 0:(r=c(l,f))<55296||r>56319||f+1===h||(A=c(l,f+1))<56320||A>57343?e?s(l,f):r:e?u(l,f,f+2):A-56320+(r-55296<<10)+65536}};e.exports={codeAt:A(!1),charAt:A(!0)}},42941:function(e,t,n){var r,o,i,a,s=n(21899),c=n(79730),u=n(86843),A=n(57475),l=n(90953),f=n(95981),h=n(15463),p=n(93765),d=n(61333),g=n(22749),y=n(6049),m=s.setImmediate,I=s.clearImmediate,v=s.process,w=s.Dispatch,E=s.Function,B=s.MessageChannel,C=s.String,b=0,Q={};try{r=s.location}catch(e){}var x=function(e){if(l(Q,e)){var t=Q[e];delete Q[e],t()}},_=function(e){return function(){x(e)}},S=function(e){x(e.data)},T=function(e){s.postMessage(C(e),r.protocol+"//"+r.host)};m&&I||(m=function(e){var t=p(arguments,1);return Q[++b]=function(){c(A(e)?e:E(e),void 0,t)},o(b),b},I=function(e){delete Q[e]},y?o=function(e){v.nextTick(_(e))}:w&&w.now?o=function(e){w.now(_(e))}:B&&!g?(a=(i=new B).port2,i.port1.onmessage=S,o=u(a.postMessage,a)):s.addEventListener&&A(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(T)?(o=T,s.addEventListener("message",S,!1)):o="onreadystatechange"in d("script")?function(e){h.appendChild(d("script")).onreadystatechange=function(){h.removeChild(this),x(e)}}:function(e){setTimeout(_(e),0)}),e.exports={set:m,clear:I}},59413:function(e,t,n){var r=n(62435),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},74529:function(e,t,n){var r=n(37026),o=n(48219);e.exports=function(e){return r(o(e))}},62435:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!=r||0===r?0:(r>0?n:t)(r)}},43057:function(e,t,n){var r=n(62435),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},89678:function(e,t,n){var r=n(21899),o=n(48219),i=r.Object;e.exports=function(e){return i(o(e))}},46935:function(e,t,n){var r=n(21899),o=n(78834),i=n(10941),a=n(56664),s=n(14229),c=n(39811),u=n(99813),A=r.TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,r=s(e,l);if(r){if(void 0===t&&(t="default"),n=o(r,e,t),!i(n)||a(n))return n;throw A("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},83894:function(e,t,n){var r=n(46935),o=n(56664);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},22885:function(e,t,n){var r={};r[n(99813)("toStringTag")]="z",e.exports="[object z]"===String(r)},85803:function(e,t,n){var r=n(21899),o=n(9697),i=r.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},69826:function(e,t,n){var r=n(21899).String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},99418:function(e,t,n){var r=n(95329),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},32302:function(e,t,n){var r=n(72497);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},83937:function(e,t,n){var r=n(55746),o=n(95981);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},18348:function(e,t,n){var r=n(21899).TypeError;e.exports=function(e,t){if(e<t)throw r("Not enough arguments");return e}},11477:function(e,t,n){var r=n(99813);t.f=r},99813:function(e,t,n){var r=n(21899),o=n(68726),i=n(90953),a=n(99418),s=n(72497),c=n(32302),u=o("wks"),A=r.Symbol,l=A&&A.for,f=c?A:A&&A.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&i(A,e)?u[e]=A[e]:u[e]=c&&l?l(t):f(t)}return u[e]}},47627:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(7046),a=n(249),s=n(88929),c=n(23489),u=n(29290),A=n(32029),l=n(31887),f=n(38694),h=n(53794),p=n(93091),d=n(14649),g=n(99813),y=n(18780),m=g("toStringTag"),I=o.Error,v=[].push,w=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=i(E,this);s?n=s(new I,o?a(this):E):(n=o?this:u(E),A(n,m,"Error")),void 0!==t&&A(n,"message",d(t)),y&&A(n,"stack",f(n.stack,1)),h(n,r);var c=[];return p(e,v,{that:c}),A(n,"errors",c),n};s?s(w,I):c(w,I,{name:!0});var E=w.prototype=u(I.prototype,{constructor:l(1,w),message:l(1,""),name:l(1,"AggregateError")});r({global:!0},{AggregateError:w})},85906:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(95981),a=n(1052),s=n(10941),c=n(89678),u=n(10623),A=n(55449),l=n(64692),f=n(50568),h=n(99813),p=n(53385),d=h("isConcatSpreadable"),g=9007199254740991,y="Maximum allowed index exceeded",m=o.TypeError,I=p>=51||!i((function(){var e=[];return e[d]=!1,e.concat()[0]!==e})),v=f("concat"),w=function(e){if(!s(e))return!1;var t=e[d];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!I||!v},{concat:function(e){var t,n,r,o,i,a=c(this),s=l(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(w(i=-1===t?a:arguments[t])){if(f+(o=u(i))>g)throw m(y);for(n=0;n<o;n++,f++)n in i&&A(s,f,i[n])}else{if(f>=g)throw m(y);A(s,f++,i)}return s.length=f,s}})},21501:function(e,t,n){"use strict";var r=n(76887),o=n(3610).filter;r({target:"Array",proto:!0,forced:!n(50568)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},80833:function(e,t,n){"use strict";var r=n(76887),o=n(3610).find,i=n(18479),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},2437:function(e,t,n){"use strict";var r=n(76887),o=n(56837);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},53242:function(e,t,n){var r=n(76887),o=n(11354);r({target:"Array",stat:!0,forced:!n(21385)((function(e){Array.from(e)}))},{from:o})},97690:function(e,t,n){"use strict";var r=n(76887),o=n(31692).includes,i=n(18479);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},99076:function(e,t,n){"use strict";var r=n(76887),o=n(95329),i=n(31692).indexOf,a=n(34194),s=o([].indexOf),c=!!s&&1/s([1],1,-0)<0,u=a("indexOf");r({target:"Array",proto:!0,forced:c||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?s(this,e,t)||0:i(this,e,t)}})},92737:function(e,t,n){n(76887)({target:"Array",stat:!0},{isArray:n(1052)})},66274:function(e,t,n){"use strict";var r=n(74529),o=n(18479),i=n(12077),a=n(45402),s=n(65988).f,c=n(47771),u=n(82529),A=n(55746),l="Array Iterator",f=a.set,h=a.getterFor(l);e.exports=c(Array,"Array",(function(e,t){f(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!u&&A&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},68787:function(e,t,n){"use strict";var r=n(76887),o=n(3610).map;r({target:"Array",proto:!0,forced:!n(50568)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},60186:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(1052),a=n(24284),s=n(10941),c=n(59413),u=n(10623),A=n(74529),l=n(55449),f=n(99813),h=n(50568),p=n(93765),d=h("slice"),g=f("species"),y=o.Array,m=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,o,f=A(this),h=u(f),d=c(e,h),I=c(void 0===t?h:t,h);if(i(f)&&(n=f.constructor,(a(n)&&(n===y||i(n.prototype))||s(n)&&null===(n=n[g]))&&(n=void 0),n===y||void 0===n))return p(f,d,I);for(r=new(void 0===n?y:n)(m(I-d,0)),o=0;d<I;d++,o++)d in f&&l(r,o,f[d]);return r.length=o,r}})},98611:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(59413),a=n(62435),s=n(10623),c=n(89678),u=n(64692),A=n(55449),l=n(50568)("splice"),f=o.TypeError,h=Math.max,p=Math.min,d=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!l},{splice:function(e,t){var n,r,o,l,y,m,I=c(this),v=s(I),w=i(e,v),E=arguments.length;if(0===E?n=r=0:1===E?(n=0,r=v-w):(n=E-2,r=p(h(a(t),0),v-w)),v+n-r>d)throw f(g);for(o=u(I,r),l=0;l<r;l++)(y=w+l)in I&&A(o,l,I[y]);if(o.length=r,n<r){for(l=w;l<v-r;l++)m=l+n,(y=l+r)in I?I[m]=I[y]:delete I[m];for(l=v;l>v-r+n;l--)delete I[l-1]}else if(n>r)for(l=v-r;l>w;l--)m=l+n-1,(y=l+r-1)in I?I[m]=I[y]:delete I[m];for(l=0;l<n;l++)I[l+w]=arguments[l+2];return I.length=v-r+n,o}})},32619:function(e,t,n){var r=n(76887),o=n(21899),i=n(626),a=n(79730),s=n(95329),c=n(95981),u=o.Array,A=i("JSON","stringify"),l=s(/./.exec),f=s("".charAt),h=s("".charCodeAt),p=s("".replace),d=s(1..toString),g=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,m=/^[\uDC00-\uDFFF]$/,I=function(e,t,n){var r=f(n,t-1),o=f(n,t+1);return l(y,e)&&!l(m,o)||l(m,e)&&!l(y,r)?"\\u"+d(h(e,0),16):e},v=c((function(){return'"\\udf06\\ud834"'!==A("\udf06\ud834")||'"\\udead"'!==A("\udead")}));A&&r({target:"JSON",stat:!0,forced:v},{stringify:function(e,t,n){for(var r=0,o=arguments.length,i=u(o);r<o;r++)i[r]=arguments[r];var s=a(A,null,i);return"string"==typeof s?p(s,g,I):s}})},69120:function(e,t,n){var r=n(21899);n(90904)(r.JSON,"JSON",!0)},79413:function(){},49221:function(e,t,n){var r=n(76887),o=n(24420);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},74979:function(e,t,n){var r=n(76887),o=n(55746),i=n(59938).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},86450:function(e,t,n){var r=n(76887),o=n(55746),i=n(65988).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},21078:function(e,t,n){var r=n(76887),o=n(88810).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},46924:function(e,t,n){var r=n(76887),o=n(95981),i=n(74529),a=n(49677).f,s=n(55746),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},88482:function(e,t,n){var r=n(76887),o=n(55746),i=n(31136),a=n(74529),s=n(49677),c=n(55449);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,u=i(r),A={},l=0;u.length>l;)void 0!==(n=o(r,t=u[l++]))&&c(A,t,n);return A}})},21724:function(e,t,n){var r=n(76887),o=n(89678),i=n(14771);r({target:"Object",stat:!0,forced:n(95981)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},55967:function(){},4560:function(e,t,n){"use strict";var r=n(76887),o=n(78834),i=n(24883),a=n(69520),s=n(40002),c=n(93091);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,A=s((function(){var n=i(t.resolve),a=[],s=0,u=1;c(e,(function(e){var i=s++,c=!1;u++,o(n,t,e).then((function(e){c||(c=!0,a[i]={status:"fulfilled",value:e},--u||r(a))}),(function(e){c||(c=!0,a[i]={status:"rejected",reason:e},--u||r(a))}))})),--u||r(a)}));return A.error&&u(A.value),n.promise}})},91302:function(e,t,n){"use strict";var r=n(76887),o=n(24883),i=n(626),a=n(78834),s=n(69520),c=n(40002),u=n(93091),A="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=i("AggregateError"),r=s.f(t),l=r.resolve,f=r.reject,h=c((function(){var r=o(t.resolve),i=[],s=0,c=1,h=!1;u(e,(function(e){var o=s++,u=!1;c++,a(r,t,e).then((function(e){u||h||(h=!0,l(e))}),(function(e){u||h||(u=!0,i[o]=e,--c||f(new n(i,A)))}))})),--c||f(new n(i,A))}));return h.error&&f(h.value),r.promise}})},44349:function(e,t,n){"use strict";var r=n(76887),o=n(82529),i=n(19297),a=n(95981),s=n(626),c=n(57475),u=n(70487),A=n(56584),l=n(99754);if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=c(e);return this.then(n?function(n){return A(t,e()).then((function(){return n}))}:e,n?function(n){return A(t,e()).then((function(){throw n}))}:e)}}),!o&&c(i)){var f=s("Promise").prototype.finally;i.prototype.finally!==f&&l(i.prototype,"finally",f,{unsafe:!0})}},98881:function(e,t,n){"use strict";var r,o,i,a,s=n(76887),c=n(82529),u=n(21899),A=n(626),l=n(78834),f=n(19297),h=n(99754),p=n(87524),d=n(88929),g=n(90904),y=n(94431),m=n(24883),I=n(57475),v=n(10941),w=n(5743),E=n(81302),B=n(93091),C=n(21385),b=n(70487),Q=n(42941).set,x=n(66132),_=n(56584),S=n(34845),T=n(69520),O=n(40002),N=n(18397),k=n(45402),D=n(37252),F=n(99813),U=n(23321),R=n(6049),P=n(53385),M=F("species"),j="Promise",L=k.getterFor(j),G=k.set,H=k.getterFor(j),q=f&&f.prototype,Y=f,K=q,z=u.TypeError,V=u.document,J=u.process,W=T.f,$=W,X=!!(V&&V.createEvent&&u.dispatchEvent),Z=I(u.PromiseRejectionEvent),ee="unhandledrejection",te=!1,ne=D(j,(function(){var e=E(Y),t=e!==String(Y);if(!t&&66===P)return!0;if(c&&!K.finally)return!0;if(P>=51&&/native code/.test(e))return!1;var n=new Y((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[M]=r,!(te=n.then((function(){}))instanceof r)||!t&&U&&!Z})),re=ne||!C((function(e){Y.all(e).catch((function(){}))})),oe=function(e){var t;return!(!v(e)||!I(t=e.then))&&t},ie=function(e,t){var n,r,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,A=e.domain;try{s?(a||(2===t.rejection&&Ae(t),t.rejection=1),!0===s?n=i:(A&&A.enter(),n=s(i),A&&(A.exit(),o=!0)),n===e.promise?u(z("Promise-chain cycle")):(r=oe(n))?l(r,n,c,u):c(n)):u(i)}catch(e){A&&!o&&A.exit(),u(e)}},ae=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,r=e.reactions;n=r.get();)ie(n,e);e.notified=!1,t&&!e.rejection&&ce(e)})))},se=function(e,t,n){var r,o;X?((r=V.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!Z&&(o=u["on"+e])?o(r):e===ee&&S("Unhandled promise rejection",n)},ce=function(e){l(Q,u,(function(){var t,n=e.facade,r=e.value;if(ue(e)&&(t=O((function(){R?J.emit("unhandledRejection",r,n):se(ee,n,r)})),e.rejection=R||ue(e)?2:1,t.error))throw t.value}))},ue=function(e){return 1!==e.rejection&&!e.parent},Ae=function(e){l(Q,u,(function(){var t=e.facade;R?J.emit("rejectionHandled",t):se("rejectionhandled",t,e.value)}))},le=function(e,t,n){return function(r){e(t,r,n)}},fe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ae(e,!0))},he=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw z("Promise can't be resolved itself");var r=oe(t);r?x((function(){var n={done:!1};try{l(r,t,le(he,n,e),le(fe,n,e))}catch(t){fe(n,t,e)}})):(e.value=t,e.state=1,ae(e,!1))}catch(t){fe({done:!1},t,e)}}};if(ne&&(K=(Y=function(e){w(this,K),m(e),l(r,this);var t=L(this);try{e(le(he,t),le(fe,t))}catch(e){fe(t,e)}}).prototype,(r=function(e){G(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new N,rejection:!1,state:0,value:void 0})}).prototype=p(K,{then:function(e,t){var n=H(this),r=W(b(this,Y));return n.parent=!0,r.ok=!I(e)||e,r.fail=I(t)&&t,r.domain=R?J.domain:void 0,0==n.state?n.reactions.add(r):x((function(){ie(r,n)})),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=L(e);this.promise=e,this.resolve=le(he,t),this.reject=le(fe,t)},T.f=W=function(e){return e===Y||e===i?new o(e):$(e)},!c&&I(f)&&q!==Object.prototype)){a=q.then,te||(h(q,"then",(function(e,t){var n=this;return new Y((function(e,t){l(a,n,e,t)})).then(e,t)}),{unsafe:!0}),h(q,"catch",K.catch,{unsafe:!0}));try{delete q.constructor}catch(e){}d&&d(q,K)}s({global:!0,wrap:!0,forced:ne},{Promise:Y}),g(Y,j,!1,!0),y(j),i=A(j),s({target:j,stat:!0,forced:ne},{reject:function(e){var t=W(this);return l(t.reject,void 0,e),t.promise}}),s({target:j,stat:!0,forced:c||ne},{resolve:function(e){return _(c&&this===i?Y:this,e)}}),s({target:j,stat:!0,forced:re},{all:function(e){var t=this,n=W(t),r=n.resolve,o=n.reject,i=O((function(){var n=m(t.resolve),i=[],a=0,s=1;B(e,(function(e){var c=a++,u=!1;s++,l(n,t,e).then((function(e){u||(u=!0,i[c]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=W(t),r=n.reject,o=O((function(){var o=m(t.resolve);B(e,(function(e){l(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},1502:function(){},11035:function(e,t,n){"use strict";var r=n(76887),o=n(95329),i=n(70344),a=n(48219),s=n(85803),c=n(67772),u=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},77971:function(e,t,n){"use strict";var r=n(64620).charAt,o=n(85803),i=n(45402),a=n(47771),s="String Iterator",c=i.set,u=i.getterFor(s);a(String,"String",(function(e){c(this,{type:s,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},94761:function(e,t,n){"use strict";var r,o=n(76887),i=n(95329),a=n(49677).f,s=n(43057),c=n(85803),u=n(70344),A=n(48219),l=n(67772),f=n(82529),h=i("".startsWith),p=i("".slice),d=Math.min,g=l("startsWith");o({target:"String",proto:!0,forced:!(!f&&!g&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||g)},{startsWith:function(e){var t=c(A(this));u(e);var n=s(d(arguments.length>1?arguments[1]:void 0,t.length)),r=c(e);return h?h(t,r,n):p(t,n,n+r.length)===r}})},8555:function(e,t,n){n(66349)("asyncIterator")},52615:function(){},21732:function(e,t,n){n(66349)("hasInstance")},35903:function(e,t,n){n(66349)("isConcatSpreadable")},1825:function(e,t,n){n(66349)("iterator")},35824:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(626),a=n(79730),s=n(78834),c=n(95329),u=n(82529),A=n(55746),l=n(72497),f=n(95981),h=n(90953),p=n(1052),d=n(57475),g=n(10941),y=n(7046),m=n(56664),I=n(96059),v=n(89678),w=n(74529),E=n(83894),B=n(85803),C=n(31887),b=n(29290),Q=n(14771),x=n(10946),_=n(684),S=n(87857),T=n(49677),O=n(65988),N=n(59938),k=n(36760),D=n(93765),F=n(99754),U=n(68726),R=n(44262),P=n(27748),M=n(99418),j=n(99813),L=n(11477),G=n(66349),H=n(90904),q=n(45402),Y=n(3610).forEach,K=R("hidden"),z="Symbol",V=j("toPrimitive"),J=q.set,W=q.getterFor(z),$=Object.prototype,X=o.Symbol,Z=X&&X.prototype,ee=o.TypeError,te=o.QObject,ne=i("JSON","stringify"),re=T.f,oe=O.f,ie=_.f,ae=k.f,se=c([].push),ce=U("symbols"),ue=U("op-symbols"),Ae=U("string-to-symbol-registry"),le=U("symbol-to-string-registry"),fe=U("wks"),he=!te||!te.prototype||!te.prototype.findChild,pe=A&&f((function(){return 7!=b(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=re($,t);r&&delete $[t],oe(e,t,n),r&&e!==$&&oe($,t,r)}:oe,de=function(e,t){var n=ce[e]=b(Z);return J(n,{type:z,tag:e,description:t}),A||(n.description=t),n},ge=function(e,t,n){e===$&&ge(ue,t,n),I(e);var r=E(t);return I(n),h(ce,r)?(n.enumerable?(h(e,K)&&e[K][r]&&(e[K][r]=!1),n=b(n,{enumerable:C(0,!1)})):(h(e,K)||oe(e,K,C(1,{})),e[K][r]=!0),pe(e,r,n)):oe(e,r,n)},ye=function(e,t){I(e);var n=w(t),r=Q(n).concat(we(n));return Y(r,(function(t){A&&!s(me,n,t)||ge(e,t,n[t])})),e},me=function(e){var t=E(e),n=s(ae,this,t);return!(this===$&&h(ce,t)&&!h(ue,t))&&(!(n||!h(this,t)||!h(ce,t)||h(this,K)&&this[K][t])||n)},Ie=function(e,t){var n=w(e),r=E(t);if(n!==$||!h(ce,r)||h(ue,r)){var o=re(n,r);return!o||!h(ce,r)||h(n,K)&&n[K][r]||(o.enumerable=!0),o}},ve=function(e){var t=ie(w(e)),n=[];return Y(t,(function(e){h(ce,e)||h(P,e)||se(n,e)})),n},we=function(e){var t=e===$,n=ie(t?ue:w(e)),r=[];return Y(n,(function(e){!h(ce,e)||t&&!h($,e)||se(r,ce[e])})),r};if(l||(X=function(){if(y(Z,this))throw ee("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?B(arguments[0]):void 0,t=M(e),n=function(e){this===$&&s(n,ue,e),h(this,K)&&h(this[K],t)&&(this[K][t]=!1),pe(this,t,C(1,e))};return A&&he&&pe($,t,{configurable:!0,set:n}),de(t,e)},F(Z=X.prototype,"toString",(function(){return W(this).tag})),F(X,"withoutSetter",(function(e){return de(M(e),e)})),k.f=me,O.f=ge,N.f=ye,T.f=Ie,x.f=_.f=ve,S.f=we,L.f=function(e){return de(j(e),e)},A&&(oe(Z,"description",{configurable:!0,get:function(){return W(this).description}}),u||F($,"propertyIsEnumerable",me,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:X}),Y(Q(fe),(function(e){G(e)})),r({target:z,stat:!0,forced:!l},{for:function(e){var t=B(e);if(h(Ae,t))return Ae[t];var n=X(t);return Ae[t]=n,le[n]=t,n},keyFor:function(e){if(!m(e))throw ee(e+" is not a symbol");if(h(le,e))return le[e]},useSetter:function(){he=!0},useSimple:function(){he=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!A},{create:function(e,t){return void 0===t?b(e):ye(b(e),t)},defineProperty:ge,defineProperties:ye,getOwnPropertyDescriptor:Ie}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ve,getOwnPropertySymbols:we}),r({target:"Object",stat:!0,forced:f((function(){S.f(1)}))},{getOwnPropertySymbols:function(e){return S.f(v(e))}}),ne&&r({target:"JSON",stat:!0,forced:!l||f((function(){var e=X();return"[null]"!=ne([e])||"{}"!=ne({a:e})||"{}"!=ne(Object(e))}))},{stringify:function(e,t,n){var r=D(arguments),o=t;if((g(t)||void 0!==e)&&!m(e))return p(t)||(t=function(e,t){if(d(o)&&(t=s(o,this,e,t)),!m(t))return t}),r[1]=t,a(ne,null,r)}}),!Z[V]){var Ee=Z.valueOf;F(Z,V,(function(e){return s(Ee,this)}))}H(X,z),P[K]=!0},45915:function(e,t,n){n(66349)("matchAll")},28394:function(e,t,n){n(66349)("match")},61766:function(e,t,n){n(66349)("replace")},62737:function(e,t,n){n(66349)("search")},89911:function(e,t,n){n(66349)("species")},74315:function(e,t,n){n(66349)("split")},63131:function(e,t,n){n(66349)("toPrimitive")},64714:function(e,t,n){n(66349)("toStringTag")},70659:function(e,t,n){n(66349)("unscopables")},54334:function(e,t,n){"use strict";var r,o=n(21899),i=n(95329),a=n(87524),s=n(21647),c=n(24683),u=n(8850),A=n(10941),l=n(91584),f=n(45402).enforce,h=n(38019),p=!o.ActiveXObject&&"ActiveXObject"in o,d=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=c("WeakMap",d,u);if(h&&p){r=u.getConstructor(d,"WeakMap",!0),s.enable();var y=g.prototype,m=i(y.delete),I=i(y.has),v=i(y.get),w=i(y.set);a(y,{delete:function(e){if(A(e)&&!l(e)){var t=f(this);return t.frozen||(t.frozen=new r),m(this,e)||t.frozen.delete(e)}return m(this,e)},has:function(e){if(A(e)&&!l(e)){var t=f(this);return t.frozen||(t.frozen=new r),I(this,e)||t.frozen.has(e)}return I(this,e)},get:function(e){if(A(e)&&!l(e)){var t=f(this);return t.frozen||(t.frozen=new r),I(this,e)?v(this,e):t.frozen.get(e)}return v(this,e)},set:function(e,t){if(A(e)&&!l(e)){var n=f(this);n.frozen||(n.frozen=new r),I(this,e)?w(this,e,t):n.frozen.set(e,t)}else w(this,e,t);return this}})}},89731:function(e,t,n){n(47627)},55708:function(e,t,n){n(4560)},88731:function(e,t,n){n(91302)},30014:function(e,t,n){"use strict";var r=n(76887),o=n(69520),i=n(40002);r({target:"Promise",stat:!0},{try:function(e){var t=o.f(this),n=i(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},28783:function(e,t,n){n(66349)("asyncDispose")},43975:function(e,t,n){n(66349)("dispose")},65799:function(e,t,n){n(66349)("matcher")},45414:function(e,t,n){n(66349)("metadata")},46774:function(e,t,n){n(66349)("observable")},80620:function(e,t,n){n(66349)("patternMatch")},36172:function(e,t,n){n(66349)("replaceAll")},7634:function(e,t,n){n(66274);var r=n(63281),o=n(21899),i=n(9697),a=n(32029),s=n(12077),c=n(99813)("toStringTag");for(var u in r){var A=o[u],l=A&&A.prototype;l&&i(l)!==c&&a(l,c,u),s[u]=s.Array}},95304:function(e,t,n){"use strict";n(66274);var r=n(76887),o=n(21899),i=n(626),a=n(78834),s=n(95329),c=n(28468),u=n(99754),A=n(87524),l=n(90904),f=n(31046),h=n(45402),p=n(5743),d=n(57475),g=n(90953),y=n(86843),m=n(9697),I=n(96059),v=n(10941),w=n(85803),E=n(29290),B=n(31887),C=n(53476),b=n(22902),Q=n(18348),x=n(99813),_=n(61388),S=x("iterator"),T="URLSearchParams",O="URLSearchParamsIterator",N=h.set,k=h.getterFor(T),D=h.getterFor(O),F=i("fetch"),U=i("Request"),R=i("Headers"),P=U&&U.prototype,M=R&&R.prototype,j=o.RegExp,L=o.TypeError,G=o.decodeURIComponent,H=o.encodeURIComponent,q=s("".charAt),Y=s([].join),K=s([].push),z=s("".replace),V=s([].shift),J=s([].splice),W=s("".split),$=s("".slice),X=/\+/g,Z=Array(4),ee=function(e){return Z[e-1]||(Z[e-1]=j("((?:%[\\da-f]{2}){"+e+"})","gi"))},te=function(e){try{return G(e)}catch(t){return e}},ne=function(e){var t=z(e,X," "),n=4;try{return G(t)}catch(e){for(;n;)t=z(t,ee(n--),te);return t}},re=/[!'()~]|%20/g,oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ie=function(e){return oe[e]},ae=function(e){return z(H(e),re,ie)},se=f((function(e,t){N(this,{type:O,iterator:C(k(e).entries),kind:t})}),"Iterator",(function(){var e=D(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(v(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===q(e,0)?$(e,1):e:w(e)))};ce.prototype={type:T,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,s,c,u=b(e);if(u)for(n=(t=C(e,u)).next;!(r=a(n,t)).done;){if(i=(o=C(I(r.value))).next,(s=a(i,o)).done||(c=a(i,o)).done||!a(i,o).done)throw L("Expected sequence with length 2");K(this.entries,{key:w(s.value),value:w(c.value)})}else for(var A in e)g(e,A)&&K(this.entries,{key:A,value:w(e[A])})},parseQuery:function(e){if(e)for(var t,n,r=W(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=W(t,"="),K(this.entries,{key:ne(V(n)),value:ne(Y(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],K(n,ae(e.key)+"="+ae(e.value));return Y(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ue=function(){p(this,Ae);var e=arguments.length>0?arguments[0]:void 0;N(this,new ce(e))},Ae=ue.prototype;if(A(Ae,{append:function(e,t){Q(arguments.length,2);var n=k(this);K(n.entries,{key:w(e),value:w(t)}),n.updateURL()},delete:function(e){Q(arguments.length,1);for(var t=k(this),n=t.entries,r=w(e),o=0;o<n.length;)n[o].key===r?J(n,o,1):o++;t.updateURL()},get:function(e){Q(arguments.length,1);for(var t=k(this).entries,n=w(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){Q(arguments.length,1);for(var t=k(this).entries,n=w(e),r=[],o=0;o<t.length;o++)t[o].key===n&&K(r,t[o].value);return r},has:function(e){Q(arguments.length,1);for(var t=k(this).entries,n=w(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){Q(arguments.length,1);for(var n,r=k(this),o=r.entries,i=!1,a=w(e),s=w(t),c=0;c<o.length;c++)(n=o[c]).key===a&&(i?J(o,c--,1):(i=!0,n.value=s));i||K(o,{key:a,value:s}),r.updateURL()},sort:function(){var e=k(this);_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=k(this).entries,r=y(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new se(this,"keys")},values:function(){return new se(this,"values")},entries:function(){return new se(this,"entries")}},{enumerable:!0}),u(Ae,S,Ae.entries,{name:"entries"}),u(Ae,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),l(ue,T),r({global:!0,forced:!c},{URLSearchParams:ue}),!c&&d(R)){var le=s(M.has),fe=s(M.set),he=function(e){if(v(e)){var t,n=e.body;if(m(n)===T)return t=e.headers?new R(e.headers):new R,le(t,"content-type")||fe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),E(e,{body:B(0,w(n)),headers:B(0,t)})}return e};if(d(F)&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?he(arguments[1]):{})}}),d(U)){var pe=function(e){return p(this,P),new U(e,arguments.length>1?he(arguments[1]):{})};P.constructor=pe,pe.prototype=P,r({global:!0,forced:!0},{Request:pe})}}e.exports={URLSearchParams:ue,getState:k}},27698:function(e,t,n){var r=n(54493);e.exports=r},83363:function(e,t,n){var r=n(24034);e.exports=r},62908:function(e,t,n){var r=n(12710);e.exports=r},49216:function(e,t,n){var r=n(99324);e.exports=r},56243:function(e,t,n){var r=n(13830);n(7634),e.exports=r},8065:function(e,t,n){var r=n(56043);e.exports=r},57448:function(e,t,n){n(7634);var r=n(9697),o=n(90953),i=n(7046),a=n(62908),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.entries;return e===s||i(s,e)&&t===s.entries||o(c,r(e))?a:t}},11955:function(e,t,n){var r=n(2480);e.exports=r},61577:function(e,t,n){var r=n(32236);e.exports=r},46279:function(e,t,n){n(7634);var r=n(9697),o=n(90953),i=n(7046),a=n(49216),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===s||i(s,e)&&t===s.forEach||o(c,r(e))?a:t}},33778:function(e,t,n){var r=n(58557);e.exports=r},19373:function(e,t,n){var r=n(34570);e.exports=r},61798:function(e,t,n){var r=n(88287);e.exports=r},82073:function(e,t,n){var r=n(69601);e.exports=r},2348:function(e,t,n){var r=n(18339);e.exports=r},35178:function(e,t,n){var r=n(71611);e.exports=r},8933:function(e,t,n){var r=n(84426);e.exports=r},63383:function(e,t,n){var r=n(45999);e.exports=r},57396:function(e,t,n){var r=n(7702);e.exports=r},41910:function(e,t,n){var r=n(48171);e.exports=r},86209:function(e,t,n){var r=n(73081);e.exports=r},79427:function(e,t,n){var r=n(286);e.exports=r},62857:function(e,t,n){var r=n(92766);e.exports=r},9534:function(e,t,n){var r=n(30498);e.exports=r},23059:function(e,t,n){var r=n(48494);e.exports=r},27460:function(e,t,n){var r=n(52956);n(7634),e.exports=r},92547:function(e,t,n){var r=n(57473);n(7634),e.exports=r},46509:function(e,t,n){var r=n(24227);n(7634),e.exports=r},73926:function(e,t,n){var r=n(47610);n(7634),e.exports=r},72010:function(e,t,n){var r=n(32304);n(7634),e.exports=r},47610:function(e,t,n){n(95304);var r=n(54058);e.exports=r.URLSearchParams},31905:function(){!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[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&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(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 A(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?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 h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=g(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):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=p(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=A(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=A(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),l(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),l(e)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function I(e,t){var n,r,o=(t=t||{}).body;if(e instanceof I){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),m.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function w(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 f(t.headers),this.url=t.url||"",this._initBody(e)}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})},y.call(I.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];w.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new w(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 n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function B(e,n){return new Promise((function(r,i){var a=new I(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new w(o,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}B.polyfill=!0,e.fetch||(e.fetch=B,e.Headers=f,e.Request=I,e.Response=w),t.Headers=f,t.Request=I,t.Response=w,t.fetch=B,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},54098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[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&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(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 A(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?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 h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=g(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):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=p(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=A(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=A(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),l(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),l(e)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function I(e,t){var n,r,o=(t=t||{}).body;if(e instanceof I){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),m.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function w(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 f(t.headers),this.url=t.url||"",this._initBody(e)}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})},y.call(I.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];w.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new w(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 n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function B(e,n){return new Promise((function(r,i){var a=new I(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new w(o,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}B.polyfill=!0,e.fetch||(e.fetch=B,e.Headers=f,e.Request=I,e.Response=w),t.Headers=f,t.Request=I,t.Response=w,t.fetch=B,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},9996:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,c){(c=c||{}).arrayMerge=c.arrayMerge||o,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(e)?u?c.arrayMerge(e,n,c):function(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}(e,n,c):r(n,c)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var c=s;e.exports=c},284:function(e){var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},17187:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}d(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&d(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,a,u;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=e,A.type=t,A.count=a.length,u=A,console&&console.warn&&console.warn(u)}return e}function A(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=A.bind(r);return o.listener=n,r.wrapFn=o,o}function f(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):p(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function d(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,A=p(c,u);for(n=0;n<u;++n)r(A[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,l(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,l(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},17648:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(t+i);for(var a,s=n.call(arguments,1),c=function(){if(this instanceof a){var t=i.apply(this,s.concat(n.call(arguments)));return Object(t)===t?t:this}return i.apply(e,s.concat(n.call(arguments)))},u=Math.max(0,i.length-s.length),A=[],l=0;l<u;l++)A.push("$"+l);if(a=Function("binder","return function ("+A.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var f=function(){};f.prototype=i.prototype,a.prototype=new f,f.prototype=null}return a}},58612:function(e,t,n){"use strict";var r=n(17648);e.exports=Function.prototype.bind||r},40210:function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},A=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,l=n(41405)(),f=Object.getPrototypeOf||function(e){return e.__proto__},h={},p="undefined"==typeof Uint8Array?r:f(Uint8Array),d={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):r,"%Symbol%":l?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":A,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=f(o.prototype))}return d[t]=n,n},y={"%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"]},m=n(58612),I=n(17642),v=m.call(Function.call,Array.prototype.concat),w=m.call(Function.apply,Array.prototype.splice),E=m.call(Function.call,String.prototype.replace),B=m.call(Function.call,String.prototype.slice),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,b=/\\(\\)?/g,Q=function(e){var t=B(e,0,1),n=B(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return E(e,C,(function(e,t,n,o){r[r.length]=n?E(o,b,"$1"):t||e})),r},x=function(e,t){var n,r=e;if(I(y,r)&&(r="%"+(n=y[r])[0]+"%"),I(d,r)){var i=d[r];if(i===h&&(i=g(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=Q(e),r=n.length>0?n[0]:"",i=x("%"+r+"%",t),s=i.name,u=i.value,A=!1,l=i.alias;l&&(r=l[0],w(n,v([0,1],l)));for(var f=1,h=!0;f<n.length;f+=1){var p=n[f],g=B(p,0,1),y=B(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new o("property names with quotes must have matching quotes");if("constructor"!==p&&h||(A=!0),I(d,s="%"+(r+="."+p)+"%"))u=d[s];else if(null!=u){if(!(p in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=n.length){var m=c(u,p);u=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:u[p]}else h=I(u,p),u=u[p];h&&!A&&(d[s]=u)}}return u}},41405:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(55419);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},55419:function(e){"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"),n=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(n))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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},17642:function(e,t,n){"use strict";var r=n(58612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},80645:function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,u=c>>1,A=-7,l=n?o-1:0,f=n?-1:1,h=e[t+l];for(l+=f,i=h&(1<<-A)-1,h>>=-A,A+=s;A>0;i=256*i+e[t+l],l+=f,A-=8);for(a=i&(1<<-A)-1,i>>=-A,A+=r;A>0;a=256*a+e[t+l],l+=f,A-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,A=(1<<u)-1,l=A>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=A):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+l>=1?f/c:f*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=A?(s=0,a=A):a+l>=1?(s=(t*c-1)*Math.pow(2,o),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*d}},35717:function(e){"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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},1989:function(e,t,n){var r=n(51789),o=n(80401),i=n(57667),a=n(21327),s=n(81866);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},38407:function(e,t,n){var r=n(27040),o=n(14125),i=n(82117),a=n(67518),s=n(54705);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},57071:function(e,t,n){var r=n(10852)(n(55639),"Map");e.exports=r},83369:function(e,t,n){var r=n(24785),o=n(11285),i=n(96e3),a=n(49916),s=n(95265);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},29932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},18470:function(e,t,n){var r=n(77813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},97786:function(e,t,n){var r=n(71811),o=n(40327);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},28458:function(e,t,n){var r=n(23560),o=n(15346),i=n(13218),a=n(80346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,A=c.toString,l=u.hasOwnProperty,f=RegExp("^"+A.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},80531:function(e,t,n){var r=n(62705),o=n(29932),i=n(1469),a=n(33448),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},71811:function(e,t,n){var r=n(1469),o=n(15403),i=n(55514),a=n(79833);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},74852:function(e,t,n){var r=n(55639)["__core-js_shared__"];e.exports=r},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},45050:function(e,t,n){var r=n(37019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},10852:function(e,t,n){var r=n(28458),o=n(47801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},51789:function(e,t,n){var r=n(94536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,n){var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},21327:function(e,t,n){var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},81866:function(e,t,n){var r=n(94536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},15403:function(e,t,n){var r=n(1469),o=n(33448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,n){var r,o=n(74852),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,n){var r=n(18470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},82117:function(e,t,n){var r=n(18470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67518:function(e,t,n){var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},54705:function(e,t,n){var r=n(18470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},24785:function(e,t,n){var r=n(1989),o=n(38407),i=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},11285:function(e,t,n){var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,t,n){var r=n(45050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},24523:function(e,t,n){var r=n(88306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},55514:function(e,t,n){var r=n(24523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},40327:function(e,t,n){var r=n(33448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},27361:function(e,t,n){var r=n(97786);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},1469:function(e){var t=Array.isArray;e.exports=t},23560:function(e,t,n){var r=n(44239),o=n(13218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},88306:function(e,t,n){var r=n(83369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},79833:function(e,t,n){var r=n(80531);e.exports=function(e){return null==e?"":r(e)}},70631:function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,A=s&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,d=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,m=String.prototype.slice,I=String.prototype.replace,v=String.prototype.toUpperCase,w=String.prototype.toLowerCase,E=RegExp.prototype.test,B=Array.prototype.concat,C=Array.prototype.join,b=Array.prototype.slice,Q=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,O="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-Q(-e):Q(e);if(r!==e){var o=String(r),i=m.call(t,o.length+1);return I.call(o,n,"$&_")+"."+I.call(I.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return I.call(t,n,"$&_")}var F=n(24654).custom,U=F&&j(F)?F:null;function R(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function P(e){return I.call(String(e),/"/g,""")}function M(e){return!("[object Array]"!==H(e)||O&&"object"==typeof e&&O in e)}function j(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,o){var s=n||{};if(G(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!G(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Y(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var v=String(t);return d?D(t,v):v}if("bigint"==typeof t){var E=String(t)+"n";return d?D(t,E):E}var Q=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=Q&&Q>0&&"object"==typeof t)return M(t)?"[Array]":"[Object]";var _,F=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=C.call(Array(e.indent+1)," ")}return{base:n,prev:C.call(Array(t+1),n)}}(s,r);if(void 0===o)o=[];else if(q(o,t)>=0)return"[Circular]";function L(t,n,i){if(n&&(o=b.call(o)).push(n),i){var a={depth:s.depth};return G(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if("function"==typeof t){var K=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),X=$(t,L);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(X.length>0?" { "+C.call(X,", ")+" }":"")}if(j(t)){var Z=T?I.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):S.call(t);return"object"!=typeof t||T?Z:z(Z)}if((_=t)&&"object"==typeof _&&("undefined"!=typeof HTMLElement&&_ instanceof HTMLElement||"string"==typeof _.nodeName&&"function"==typeof _.getAttribute)){for(var ee="<"+w.call(String(t.nodeName)),te=t.attributes||[],ne=0;ne<te.length;ne++)ee+=" "+te[ne].name+"="+R(P(te[ne].value),"double",s);return ee+=">",t.childNodes&&t.childNodes.length&&(ee+="..."),ee+"</"+w.call(String(t.nodeName))+">"}if(M(t)){if(0===t.length)return"[]";var re=$(t,L);return F&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(re)?"["+W(re,F)+"]":"[ "+C.call(re,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||O&&"object"==typeof e&&O in e)}(t)){var oe=$(t,L);return"cause"in t&&!N.call(t,"cause")?"{ ["+String(t)+"] "+C.call(B.call("[cause]: "+L(t.cause),oe),", ")+" }":0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(oe,", ")+" }"}if("object"==typeof t&&c){if(U&&"function"==typeof t[U])return t[U]();if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ie=[];return a.call(t,(function(e,n){ie.push(L(n,t,!0)+" => "+L(e,t))})),J("Map",i.call(t),ie,F)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ae=[];return A.call(t,(function(e){ae.push(L(e,t))})),J("Set",u.call(t),ae,F)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return V("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{l.call(e,l)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return V("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return V("WeakRef");if(function(e){return!("[object Number]"!==H(e)||O&&"object"==typeof e&&O in e)}(t))return z(L(Number(t)));if(function(e){if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}(t))return z(L(x.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||O&&"object"==typeof e&&O in e)}(t))return z(p.call(t));if(function(e){return!("[object String]"!==H(e)||O&&"object"==typeof e&&O in e)}(t))return z(L(String(t)));if(!function(e){return!("[object Date]"!==H(e)||O&&"object"==typeof e&&O in e)}(t)&&!function(e){return!("[object RegExp]"!==H(e)||O&&"object"==typeof e&&O in e)}(t)){var se=$(t,L),ce=k?k(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",Ae=!ce&&O&&Object(t)===t&&O in t?m.call(H(t),8,-1):ue?"Object":"",le=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(Ae||ue?"["+C.call(B.call([],Ae||[],ue||[]),": ")+"] ":"");return 0===se.length?le+"{}":F?le+"{"+W(se,F)+"}":le+"{ "+C.call(se,", ")+" }"}return String(t)};var L=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return L.call(e,t)}function H(e){return d.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(m.call(e,0,t.maxStringLength),t)+r}return R(I.call(I.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function z(e){return"Object("+e+")"}function V(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?W(n,r):C.call(n,", "))+"}"}function W(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+C.call(e,","+n)+"\n"+t.prev}function $(e,t){var n=M(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=G(e,o)?t(e[o],e):""}var i,a="function"==typeof _?_(e):[];if(T){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)G(e,c)&&(n&&String(Number(c))===c&&c<e.length||T&&i["$"+c]instanceof Symbol||(E.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof _)for(var u=0;u<a.length;u++)N.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},55798:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},80129:function(e,t,n){"use strict";var r=n(58261),o=n(55235),i=n(55798);e.exports={formats:i,parse:o,stringify:r}},55235:function(e,t,n){"use strict";var r=n(12769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,A=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;A.push(u)}for(var l=0;n.depth>0&&null!==(s=a.exec(i))&&l<n.depth;){if(l+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;A.push(s[1])}return s&&A.push("["+i.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:c(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,A=parseInt(u,10);n.parseArrays||""!==u?!isNaN(A)&&s!==u&&String(A)===u&&A>=0&&n.parseArrays&&A<=n.arrayLimit?(a=[])[A]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(A,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var A="string"==typeof e?function(e,t){var n,u={},A=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,f=A.split(t.delimiter,l),h=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?p="utf-8":"utf8=%26%2310003%3B"===f[n]&&(p="iso-8859-1"),h=n,n=f.length);for(n=0;n<f.length;++n)if(n!==h){var d,g,y=f[n],m=y.indexOf("]="),I=-1===m?y.indexOf("="):m+1;-1===I?(d=t.decoder(y,a.decoder,p,"key"),g=t.strictNullHandling?null:""):(d=t.decoder(y.slice(0,I),a.decoder,p,"key"),g=r.maybeMap(c(y.slice(I+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=s(g)),y.indexOf("[]=")>-1&&(g=i(g)?[g]:g),o.call(u,d)?u[d]=r.combine(u[d],g):u[d]=g}return u}(e,n):e,l=n.plainObjects?Object.create(null):{},f=Object.keys(A),h=0;h<f.length;++h){var p=f[h],d=u(p,A[p],n,"string"==typeof e);l=r.merge(l,d,n)}return!0===n.allowSparse?l:r.compact(l)}},58261:function(e,t,n){"use strict";var r=n(37478),o=n(12769),i=n(55798),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=String.prototype.split,A=Array.prototype.push,l=function(e,t){A.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,h=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},g=function e(t,n,i,a,s,A,f,h,g,y,m,I,v,w,E){for(var B,C=t,b=E,Q=0,x=!1;void 0!==(b=b.get(d))&&!x;){var _=b.get(t);if(Q+=1,void 0!==_){if(_===Q)throw new RangeError("Cyclic object value");x=!0}void 0===b.get(d)&&(Q=0)}if("function"==typeof f?C=f(n,C):C instanceof Date?C=y(C):"comma"===i&&c(C)&&(C=o.maybeMap(C,(function(e){return e instanceof Date?y(e):e}))),null===C){if(a)return A&&!v?A(n,p.encoder,w,"key",m):n;C=""}if("string"==typeof(B=C)||"number"==typeof B||"boolean"==typeof B||"symbol"==typeof B||"bigint"==typeof B||o.isBuffer(C)){if(A){var S=v?n:A(n,p.encoder,w,"key",m);if("comma"===i&&v){for(var T=u.call(String(C),","),O="",N=0;N<T.length;++N)O+=(0===N?"":",")+I(A(T[N],p.encoder,w,"value",m));return[I(S)+"="+O]}return[I(S)+"="+I(A(C,p.encoder,w,"value",m))]}return[I(n)+"="+I(String(C))]}var k,D=[];if(void 0===C)return D;if("comma"===i&&c(C))k=[{value:C.length>0?C.join(",")||null:void 0}];else if(c(f))k=f;else{var F=Object.keys(C);k=h?F.sort(h):F}for(var U=0;U<k.length;++U){var R=k[U],P="object"==typeof R&&void 0!==R.value?R.value:C[R];if(!s||null!==P){var M=c(C)?"function"==typeof i?i(n,R):n:n+(g?"."+R:"["+R+"]");E.set(t,Q);var j=r();j.set(d,E),l(D,e(P,M,i,a,s,A,f,h,g,y,m,I,v,w,j))}}return D};e.exports=function(e,t){var n,o=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=p.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?o=(0,u.filter)("",o):c(u.filter)&&(n=u.filter);var A,f=[];if("object"!=typeof o||null===o)return"";A=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[A];n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var d=r(),y=0;y<n.length;++y){var m=n[y];u.skipNulls&&null===o[m]||l(f,g(o[m],m,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,d))}var I=f.join(u.delimiter),v=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),I.length>0?v+I:""}},12769:function(e,t,n){"use strict";var r=n(55798),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],A=a[u];"object"==typeof A&&null!==A&&-1===n.indexOf(A)&&(t.push({obj:a,prop:u}),n.push(A))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;++u){var A=s.charCodeAt(u);45===A||46===A||95===A||126===A||A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||i===r.RFC1738&&(40===A||41===A)?c+=s.charAt(u):A<128?c+=a[A]:A<2048?c+=a[192|A>>6]+a[128|63&A]:A<55296||A>=57344?c+=a[224|A>>12]+a[128|A>>6&63]+a[128|63&A]:(u+=1,A=65536+((1023&A)<<10|1023&s.charCodeAt(u)),c+=a[240|A>>18]+a[128|A>>12&63]+a[128|A>>6&63]+a[128|63&A])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},62587:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,o){n=n||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(n);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var A,l,f,h,p=e[u].replace(a,"%20"),d=p.indexOf(r);d>=0?(A=p.substr(0,d),l=p.substr(d+1)):(A=p,l=""),f=decodeURIComponent(A),h=decodeURIComponent(l),t(i,f)?Array.isArray(i[f])?i[f].push(h):i[f]=[i[f],h]:i[f]=h}return i}},12361:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,o){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var i=encodeURIComponent(t(o))+r;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(t(e))})).join(n):i+encodeURIComponent(t(e[o]))})).join(n):o?encodeURIComponent(t(o))+r+encodeURIComponent(t(e)):""}},17673:function(e,t,n){"use strict";t.decode=t.parse=n(62587),t.encode=t.stringify=n(12361)},35666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=A(e,t,n);if("normal"===c.type){if(r=n.done?p:f,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function A(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l="suspendedStart",f="suspendedYield",h="executing",p="completed",d={};function g(){}function y(){}function m(){}var I={};c(I,i,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(S([])));w&&w!==n&&r.call(w,i)&&(I=w);var E=m.prototype=g.prototype=Object.create(I);function B(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var c=A(e[o],e,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function b(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,b(e,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=A(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function Q(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Q,this),this.reset(!0)}function S(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return y.prototype=m,c(E,"constructor",m),c(m,"constructor",y),y.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},B(C.prototype),c(C.prototype,a,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},B(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:S(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6636:function(e,t){"use strict";function n(e){if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++)t.push(n(e[r]));const r=f(...t);return f(i(r.length,192),r)}const t=g(e);return 1===t.length&&t[0]<128?t:f(i(t.length,128),t)}function r(e,t,n){if(n>e.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,n)}function o(e){if(0===e[0])throw new Error("invalid RLP: extra zeros");return A(u(e))}function i(e,t){if(e<56)return Uint8Array.from([e+t]);const n=p(e),r=p(t+55+n.length/2);return Uint8Array.from(l(r+n))}function a(e,t=!1){if(!e||0===e.length)return Uint8Array.from([]);const n=s(g(e));if(t)return n;if(0!==n.remainder.length)throw new Error("invalid RLP: remainder must be zero");return n.data}function s(e){let t,n,i,a,c;const u=[],A=e[0];if(A<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(A<=183){if(t=A-127,i=128===A?Uint8Array.from([]):r(e,1,t),2===t&&i[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:i,remainder:e.slice(t)}}if(A<=191){if(n=A-182,e.length-1<n)throw new Error("invalid RLP: not enough bytes for string length");if(t=o(r(e,1,n)),t<=55)throw new Error("invalid RLP: expected string length to be greater than 55");return i=r(e,n,t+n),{data:i,remainder:e.slice(t+n)}}if(A<=247){for(t=A-191,a=r(e,1,t);a.length;)c=s(a),u.push(c.data),a=c.remainder;return{data:u,remainder:e.slice(t)}}{if(n=A-246,t=o(r(e,1,n)),t<56)throw new Error("invalid RLP: encoded list too short");const i=n+t;if(i>e.length)throw new Error("invalid RLP: total length is larger than the data");for(a=r(e,n,i);a.length;)c=s(a),u.push(c.data),a=c.remainder;return{data:u,remainder:e.slice(i)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.decode=t.encode=void 0,t.encode=n,t.decode=a;const c=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function u(e){let t="";for(let n=0;n<e.length;n++)t+=c[e[n]];return t}function A(e){const t=Number.parseInt(e,16);if(Number.isNaN(t))throw new Error("Invalid byte sequence");return t}function l(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let n=0;n<t.length;n++){const r=2*n;t[n]=A(e.slice(r,r+2))}return t}function f(...e){if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const o=e[t];n.set(o,r),r+=o.length}return n}function h(e){return(new TextEncoder).encode(e)}function p(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");const t=e.toString(16);return t.length%2?`0${t}`:t}function d(e){return e.length>=2&&"0"===e[0]&&"x"===e[1]}function g(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return d(e)?l((t="string"!=typeof(n=e)?n:d(n)?n.slice(2):n).length%2?`0${t}`:t):h(e);var t,n;if("number"==typeof e||"bigint"==typeof e)return e?l(p(e)):Uint8Array.from([]);if(null==e)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}t.utils={bytesToHex:u,concatBytes:f,hexToBytes:l,utf8ToBytes:h};const y={encode:n,decode:a};t.default=y},89509:function(e,t,n){var r=n(48764),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},24189:function(e,t,n){var r=n(89509).Buffer;function o(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,o=this._blockSize,i=e.length,a=this._len,s=0;s<i;){for(var c=a%o,u=Math.min(i-s,o-c),A=0;A<u;A++)n[c+A]=e[s+A];s+=u,(a+=u)%o==0&&this._update(n)}return this._len+=i,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},89072:function(e,t,n){var r=e.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=n(74448),r.sha1=n(18336),r.sha224=n(48432),r.sha256=n(67499),r.sha384=n(51686),r.sha512=n(87816)},74448:function(e,t,n){var r=n(35717),o=n(24189),i=n(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,o.call(this,64,56)}function u(e){return e<<30|e>>>2}function A(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,l=0;l<16;++l)n[l]=e.readInt32BE(4*l);for(;l<80;++l)n[l]=n[l-3]^n[l-8]^n[l-14]^n[l-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=r)<<5|t>>>27)+A(h,o,i,s)+c+n[f]+a[h];c=s,s=i,i=u(o),o=r,r=p}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.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=c},18336:function(e,t,n){var r=n(35717),o=n(24189),i=n(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,o.call(this,64,56)}function u(e){return e<<5|e>>>27}function A(e){return e<<30|e>>>2}function l(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=(t=n[f-3]^n[f-8]^n[f-14]^n[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),d=u(r)+l(p,o,i,s)+c+n[h]+a[p]|0;c=s,s=i,i=A(o),o=r,r=d}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.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=c},48432:function(e,t,n){var r=n(35717),o=n(67499),i=n(24189),a=n(89509).Buffer,s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}r(c,o),c.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},c.prototype._hash=function(){var e=a.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=c},67499:function(e,t,n){var r=n(35717),o=n(24189),i=n(89509).Buffer,a=[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],s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}function u(e,t,n){return n^e&(t^n)}function A(e,t,n){return e&t|n&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,o),c.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},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,d=0|this._g,g=0|this._h,y=0;y<16;++y)n[y]=e.readInt32BE(4*y);for(;y<64;++y)n[y]=0|(((t=n[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[y-7]+h(n[y-15])+n[y-16];for(var m=0;m<64;++m){var I=g+f(c)+u(c,p,d)+a[m]+n[m]|0,v=l(r)+A(r,o,i)|0;g=d,d=p,p=c,c=s+I|0,s=i,i=o,o=r,r=I+v|0}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=d+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=i.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=c},51686:function(e,t,n){var r=n(35717),o=n(87816),i=n(24189),a=n(89509).Buffer,s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}r(c,o),c.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},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+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=c},87816:function(e,t,n){var r=n(35717),o=n(24189),i=n(89509).Buffer,a=[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],s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}function u(e,t,n){return n^e&(t^n)}function A(e,t,n){return e&t|n&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(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 d(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 y(e,t){return e>>>0<t>>>0?1:0}r(c,o),c.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},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,i=0|this._dh,s=0|this._eh,c=0|this._fh,m=0|this._gh,I=0|this._hh,v=0|this._al,w=0|this._bl,E=0|this._cl,B=0|this._dl,C=0|this._el,b=0|this._fl,Q=0|this._gl,x=0|this._hl,_=0;_<32;_+=2)t[_]=e.readInt32BE(4*_),t[_+1]=e.readInt32BE(4*_+4);for(;_<160;_+=2){var S=t[_-30],T=t[_-30+1],O=h(S,T),N=p(T,S),k=d(S=t[_-4],T=t[_-4+1]),D=g(T,S),F=t[_-14],U=t[_-14+1],R=t[_-32],P=t[_-32+1],M=N+U|0,j=O+F+y(M,N)|0;j=(j=j+k+y(M=M+D|0,D)|0)+R+y(M=M+P|0,P)|0,t[_]=j,t[_+1]=M}for(var L=0;L<160;L+=2){j=t[L],M=t[L+1];var G=A(n,r,o),H=A(v,w,E),q=l(n,v),Y=l(v,n),K=f(s,C),z=f(C,s),V=a[L],J=a[L+1],W=u(s,c,m),$=u(C,b,Q),X=x+z|0,Z=I+K+y(X,x)|0;Z=(Z=(Z=Z+W+y(X=X+$|0,$)|0)+V+y(X=X+J|0,J)|0)+j+y(X=X+M|0,M)|0;var ee=Y+H|0,te=q+G+y(ee,Y)|0;I=m,x=Q,m=c,Q=b,c=s,b=C,s=i+Z+y(C=B+X|0,B)|0,i=o,B=E,o=r,E=w,r=n,w=v,n=Z+te+y(v=X+ee|0,X)|0}this._al=this._al+v|0,this._bl=this._bl+w|0,this._cl=this._cl+E|0,this._dl=this._dl+B|0,this._el=this._el+C|0,this._fl=this._fl+b|0,this._gl=this._gl+Q|0,this._hl=this._hl+x|0,this._ah=this._ah+n+y(this._al,v)|0,this._bh=this._bh+r+y(this._bl,w)|0,this._ch=this._ch+o+y(this._cl,E)|0,this._dh=this._dh+i+y(this._dl,B)|0,this._eh=this._eh+s+y(this._el,C)|0,this._fh=this._fh+c+y(this._fl,b)|0,this._gh=this._gh+m+y(this._gl,Q)|0,this._hh=this._hh+I+y(this._hl,x)|0},c.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+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=c},37478:function(e,t,n){"use strict";var r=n(40210),o=n(21924),i=n(70631),a=r("%TypeError%"),s=r("%WeakMap%",!0),c=r("%Map%",!0),u=o("WeakMap.prototype.get",!0),A=o("WeakMap.prototype.set",!0),l=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),p=o("Map.prototype.has",!0),d=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return u(e,r)}else if(c){if(t)return f(t,r)}else if(n)return function(e,t){var n=d(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(c){if(t)return p(t,r)}else if(n)return function(e,t){return!!d(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),A(e,r,o)):c?(t||(t=new c),h(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=d(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},13692:function(e){var t=e.exports=function(e){return new n(e)};function n(e){this.value=e}function r(e,t,n){var r=[],a=[],A=!0;return function e(l){var f=n?o(l):l,h={},p=!0,d={node:f,node_:l,path:[].concat(r),parent:a[a.length-1],parents:a,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){d.isRoot||(d.parent.node[d.key]=e),d.node=e,t&&(p=!1)},delete:function(e){delete d.parent.node[d.key],e&&(p=!1)},remove:function(e){s(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],e&&(p=!1)},keys:null,before:function(e){h.before=e},after:function(e){h.after=e},pre:function(e){h.pre=e},post:function(e){h.post=e},stop:function(){A=!1},block:function(){p=!1}};if(!A)return d;function g(){if("object"==typeof d.node&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=i(d.node)),d.isLeaf=0==d.keys.length;for(var e=0;e<a.length;e++)if(a[e].node_===l){d.circular=a[e];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}g();var y=t.call(d,d.node);return void 0!==y&&d.update&&d.update(y),h.before&&h.before.call(d,d.node),p?("object"!=typeof d.node||null===d.node||d.circular||(a.push(d),g(),c(d.keys,(function(t,o){r.push(t),h.pre&&h.pre.call(d,d.node[t],t);var i=e(d.node[t]);n&&u.call(d.node,t)&&(d.node[t]=i.node),i.isLast=o==d.keys.length-1,i.isFirst=0==o,h.post&&h.post.call(d,i),r.pop()})),a.pop()),h.after&&h.after.call(d,d.node),d):d}(e).node}function o(e){if("object"==typeof e&&null!==e){var t;if(s(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if("[object RegExp]"===a(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return c(i(e),(function(n){t[n]=e[n]})),t}return e}n.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},n.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},n.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},n.prototype.map=function(e){return r(this.value,e,!0)},n.prototype.forEach=function(e){return this.value=r(this.value,e,!1),this.value},n.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},n.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},n.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},n.prototype.clone=function(){var e=[],t=[];return function n(r){for(var a=0;a<e.length;a++)if(e[a]===r)return t[a];if("object"==typeof r&&null!==r){var s=o(r);return e.push(r),t.push(s),c(i(r),(function(e){s[e]=n(r[e])})),e.pop(),t.pop(),s}return r}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},c=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};c(i(n.prototype),(function(e){t[e]=function(t){var r=[].slice.call(arguments,1),o=new n(t);return o[e].apply(o,r)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},82182:function(e,t,n){!function(t,r){"use strict";e.exports?e.exports=r(n(50780)):t.nacl.auth=r(t.nacl)}(this,(function(e){"use strict";if(!e)throw new Error("tweetnacl not loaded");var t=128;function n(n,r){var o,i,a=new Uint8Array(t+Math.max(64,n.length));for(r.length>t&&(r=e.hash(r)),o=0;o<t;o++)a[o]=54;for(o=0;o<r.length;o++)a[o]^=r[o];for(a.set(n,t),i=e.hash(a.subarray(0,t+n.length)),o=0;o<t;o++)a[o]=92;for(o=0;o<r.length;o++)a[o]^=r[o];return a.set(i,t),e.hash(a.subarray(0,t+i.length))}function r(e,t){var r=new Uint8Array(32);return r.set(n(e,t).subarray(0,32)),r}return r.full=function(e,t){return n(e,t)},r.authLength=32,r.authFullLength=64,r.keyLength=32,r}))},50780:function(e,t,n){!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw new Error("no PRNG")},o=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var a=t(),s=t([1]),c=t([56129,1]),u=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),A=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),l=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function d(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function g(e,t,n,r){return d(e,t,n,r,16)}function y(e,t,n,r){return d(e,t,n,r,32)}function m(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,A=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,l=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,d=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,m=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,I=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,v=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=i,E=a,B=s,C=c,b=u,Q=A,x=l,_=f,S=h,T=p,O=d,N=g,k=y,D=m,F=I,U=v,R=0;R<20;R+=2)w^=(o=(k^=(o=(S^=(o=(b^=(o=w+k|0)<<7|o>>>25)+w|0)<<9|o>>>23)+b|0)<<13|o>>>19)+S|0)<<18|o>>>14,Q^=(o=(E^=(o=(D^=(o=(T^=(o=Q+E|0)<<7|o>>>25)+Q|0)<<9|o>>>23)+T|0)<<13|o>>>19)+D|0)<<18|o>>>14,O^=(o=(x^=(o=(B^=(o=(F^=(o=O+x|0)<<7|o>>>25)+O|0)<<9|o>>>23)+F|0)<<13|o>>>19)+B|0)<<18|o>>>14,U^=(o=(N^=(o=(_^=(o=(C^=(o=U+N|0)<<7|o>>>25)+U|0)<<9|o>>>23)+C|0)<<13|o>>>19)+_|0)<<18|o>>>14,w^=(o=(C^=(o=(B^=(o=(E^=(o=w+C|0)<<7|o>>>25)+w|0)<<9|o>>>23)+E|0)<<13|o>>>19)+B|0)<<18|o>>>14,Q^=(o=(b^=(o=(_^=(o=(x^=(o=Q+b|0)<<7|o>>>25)+Q|0)<<9|o>>>23)+x|0)<<13|o>>>19)+_|0)<<18|o>>>14,O^=(o=(T^=(o=(S^=(o=(N^=(o=O+T|0)<<7|o>>>25)+O|0)<<9|o>>>23)+N|0)<<13|o>>>19)+S|0)<<18|o>>>14,U^=(o=(F^=(o=(D^=(o=(k^=(o=U+F|0)<<7|o>>>25)+U|0)<<9|o>>>23)+k|0)<<13|o>>>19)+D|0)<<18|o>>>14;w=w+i|0,E=E+a|0,B=B+s|0,C=C+c|0,b=b+u|0,Q=Q+A|0,x=x+l|0,_=_+f|0,S=S+h|0,T=T+p|0,O=O+d|0,N=N+g|0,k=k+y|0,D=D+m|0,F=F+I|0,U=U+v|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=E>>>0&255,e[5]=E>>>8&255,e[6]=E>>>16&255,e[7]=E>>>24&255,e[8]=B>>>0&255,e[9]=B>>>8&255,e[10]=B>>>16&255,e[11]=B>>>24&255,e[12]=C>>>0&255,e[13]=C>>>8&255,e[14]=C>>>16&255,e[15]=C>>>24&255,e[16]=b>>>0&255,e[17]=b>>>8&255,e[18]=b>>>16&255,e[19]=b>>>24&255,e[20]=Q>>>0&255,e[21]=Q>>>8&255,e[22]=Q>>>16&255,e[23]=Q>>>24&255,e[24]=x>>>0&255,e[25]=x>>>8&255,e[26]=x>>>16&255,e[27]=x>>>24&255,e[28]=_>>>0&255,e[29]=_>>>8&255,e[30]=_>>>16&255,e[31]=_>>>24&255,e[32]=S>>>0&255,e[33]=S>>>8&255,e[34]=S>>>16&255,e[35]=S>>>24&255,e[36]=T>>>0&255,e[37]=T>>>8&255,e[38]=T>>>16&255,e[39]=T>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=N>>>0&255,e[45]=N>>>8&255,e[46]=N>>>16&255,e[47]=N>>>24&255,e[48]=k>>>0&255,e[49]=k>>>8&255,e[50]=k>>>16&255,e[51]=k>>>24&255,e[52]=D>>>0&255,e[53]=D>>>8&255,e[54]=D>>>16&255,e[55]=D>>>24&255,e[56]=F>>>0&255,e[57]=F>>>8&255,e[58]=F>>>16&255,e[59]=F>>>24&255,e[60]=U>>>0&255,e[61]=U>>>8&255,e[62]=U>>>16&255,e[63]=U>>>24&255}(e,t,n,r)}function I(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,A=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,l=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,d=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,m=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,I=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,v=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=0;w<20;w+=2)i^=(o=(y^=(o=(h^=(o=(u^=(o=i+y|0)<<7|o>>>25)+i|0)<<9|o>>>23)+u|0)<<13|o>>>19)+h|0)<<18|o>>>14,A^=(o=(a^=(o=(m^=(o=(p^=(o=A+a|0)<<7|o>>>25)+A|0)<<9|o>>>23)+p|0)<<13|o>>>19)+m|0)<<18|o>>>14,d^=(o=(l^=(o=(s^=(o=(I^=(o=d+l|0)<<7|o>>>25)+d|0)<<9|o>>>23)+I|0)<<13|o>>>19)+s|0)<<18|o>>>14,v^=(o=(g^=(o=(f^=(o=(c^=(o=v+g|0)<<7|o>>>25)+v|0)<<9|o>>>23)+c|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(c^=(o=(s^=(o=(a^=(o=i+c|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,A^=(o=(u^=(o=(f^=(o=(l^=(o=A+u|0)<<7|o>>>25)+A|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,d^=(o=(p^=(o=(h^=(o=(g^=(o=d+p|0)<<7|o>>>25)+d|0)<<9|o>>>23)+g|0)<<13|o>>>19)+h|0)<<18|o>>>14,v^=(o=(I^=(o=(m^=(o=(y^=(o=v+I|0)<<7|o>>>25)+v|0)<<9|o>>>23)+y|0)<<13|o>>>19)+m|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=A>>>0&255,e[5]=A>>>8&255,e[6]=A>>>16&255,e[7]=A>>>24&255,e[8]=d>>>0&255,e[9]=d>>>8&255,e[10]=d>>>16&255,e[11]=d>>>24&255,e[12]=v>>>0&255,e[13]=v>>>8&255,e[14]=v>>>16&255,e[15]=v>>>24&255,e[16]=l>>>0&255,e[17]=l>>>8&255,e[18]=l>>>16&255,e[19]=l>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,n,r)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,o,i,a){var s,c,u=new Uint8Array(16),A=new Uint8Array(64);for(c=0;c<16;c++)u[c]=0;for(c=0;c<8;c++)u[c]=i[c];for(;o>=64;){for(m(A,u,a,v),c=0;c<64;c++)e[t+c]=n[r+c]^A[c];for(s=1,c=8;c<16;c++)s=s+(255&u[c])|0,u[c]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(m(A,u,a,v),c=0;c<o;c++)e[t+c]=n[r+c]^A[c];return 0}function E(e,t,n,r,o){var i,a,s=new Uint8Array(16),c=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(m(c,s,o,v),a=0;a<64;a++)e[t+a]=c[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(m(c,s,o,v),a=0;a<n;a++)e[t+a]=c[a];return 0}function B(e,t,n,r,o){var i=new Uint8Array(32);I(i,r,o,v);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return E(e,t,n,a,i)}function C(e,t,n,r,o,i,a){var s=new Uint8Array(32);I(s,i,a,v);for(var c=new Uint8Array(8),u=0;u<8;u++)c[u]=i[u+16];return w(e,t,n,r,o,c,s)}var b=function(e){var t,n,r,o,i,a,s,c;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function Q(e,t,n,r,o,i){var a=new b(i);return a.update(n,r,o),a.finish(e,t),0}function x(e,t,n,r,o,i){var a=new Uint8Array(16);return Q(a,0,n,r,o,i),g(e,t,a,0)}function _(e,t,n,r,o){var i;if(n<32)return-1;for(C(e,0,t,0,n,r,o),Q(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function S(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(B(a,0,32,r,o),0!==x(t,16,t,32,n-32,a))return-1;for(C(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function T(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function O(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function N(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function k(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(O(s),O(s),O(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,N(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function D(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return k(n,e),k(r,t),y(n,0,r,0)}function F(e){var t=new Uint8Array(32);return k(t,e),1&t[0]}function U(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function R(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function P(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function M(e,t,n){var r,o,i=0,a=0,s=0,c=0,u=0,A=0,l=0,f=0,h=0,p=0,d=0,g=0,y=0,m=0,I=0,v=0,w=0,E=0,B=0,C=0,b=0,Q=0,x=0,_=0,S=0,T=0,O=0,N=0,k=0,D=0,F=0,U=n[0],R=n[1],P=n[2],M=n[3],j=n[4],L=n[5],G=n[6],H=n[7],q=n[8],Y=n[9],K=n[10],z=n[11],V=n[12],J=n[13],W=n[14],$=n[15];i+=(r=t[0])*U,a+=r*R,s+=r*P,c+=r*M,u+=r*j,A+=r*L,l+=r*G,f+=r*H,h+=r*q,p+=r*Y,d+=r*K,g+=r*z,y+=r*V,m+=r*J,I+=r*W,v+=r*$,a+=(r=t[1])*U,s+=r*R,c+=r*P,u+=r*M,A+=r*j,l+=r*L,f+=r*G,h+=r*H,p+=r*q,d+=r*Y,g+=r*K,y+=r*z,m+=r*V,I+=r*J,v+=r*W,w+=r*$,s+=(r=t[2])*U,c+=r*R,u+=r*P,A+=r*M,l+=r*j,f+=r*L,h+=r*G,p+=r*H,d+=r*q,g+=r*Y,y+=r*K,m+=r*z,I+=r*V,v+=r*J,w+=r*W,E+=r*$,c+=(r=t[3])*U,u+=r*R,A+=r*P,l+=r*M,f+=r*j,h+=r*L,p+=r*G,d+=r*H,g+=r*q,y+=r*Y,m+=r*K,I+=r*z,v+=r*V,w+=r*J,E+=r*W,B+=r*$,u+=(r=t[4])*U,A+=r*R,l+=r*P,f+=r*M,h+=r*j,p+=r*L,d+=r*G,g+=r*H,y+=r*q,m+=r*Y,I+=r*K,v+=r*z,w+=r*V,E+=r*J,B+=r*W,C+=r*$,A+=(r=t[5])*U,l+=r*R,f+=r*P,h+=r*M,p+=r*j,d+=r*L,g+=r*G,y+=r*H,m+=r*q,I+=r*Y,v+=r*K,w+=r*z,E+=r*V,B+=r*J,C+=r*W,b+=r*$,l+=(r=t[6])*U,f+=r*R,h+=r*P,p+=r*M,d+=r*j,g+=r*L,y+=r*G,m+=r*H,I+=r*q,v+=r*Y,w+=r*K,E+=r*z,B+=r*V,C+=r*J,b+=r*W,Q+=r*$,f+=(r=t[7])*U,h+=r*R,p+=r*P,d+=r*M,g+=r*j,y+=r*L,m+=r*G,I+=r*H,v+=r*q,w+=r*Y,E+=r*K,B+=r*z,C+=r*V,b+=r*J,Q+=r*W,x+=r*$,h+=(r=t[8])*U,p+=r*R,d+=r*P,g+=r*M,y+=r*j,m+=r*L,I+=r*G,v+=r*H,w+=r*q,E+=r*Y,B+=r*K,C+=r*z,b+=r*V,Q+=r*J,x+=r*W,_+=r*$,p+=(r=t[9])*U,d+=r*R,g+=r*P,y+=r*M,m+=r*j,I+=r*L,v+=r*G,w+=r*H,E+=r*q,B+=r*Y,C+=r*K,b+=r*z,Q+=r*V,x+=r*J,_+=r*W,S+=r*$,d+=(r=t[10])*U,g+=r*R,y+=r*P,m+=r*M,I+=r*j,v+=r*L,w+=r*G,E+=r*H,B+=r*q,C+=r*Y,b+=r*K,Q+=r*z,x+=r*V,_+=r*J,S+=r*W,T+=r*$,g+=(r=t[11])*U,y+=r*R,m+=r*P,I+=r*M,v+=r*j,w+=r*L,E+=r*G,B+=r*H,C+=r*q,b+=r*Y,Q+=r*K,x+=r*z,_+=r*V,S+=r*J,T+=r*W,O+=r*$,y+=(r=t[12])*U,m+=r*R,I+=r*P,v+=r*M,w+=r*j,E+=r*L,B+=r*G,C+=r*H,b+=r*q,Q+=r*Y,x+=r*K,_+=r*z,S+=r*V,T+=r*J,O+=r*W,N+=r*$,m+=(r=t[13])*U,I+=r*R,v+=r*P,w+=r*M,E+=r*j,B+=r*L,C+=r*G,b+=r*H,Q+=r*q,x+=r*Y,_+=r*K,S+=r*z,T+=r*V,O+=r*J,N+=r*W,k+=r*$,I+=(r=t[14])*U,v+=r*R,w+=r*P,E+=r*M,B+=r*j,C+=r*L,b+=r*G,Q+=r*H,x+=r*q,_+=r*Y,S+=r*K,T+=r*z,O+=r*V,N+=r*J,k+=r*W,D+=r*$,v+=(r=t[15])*U,a+=38*(E+=r*P),s+=38*(B+=r*M),c+=38*(C+=r*j),u+=38*(b+=r*L),A+=38*(Q+=r*G),l+=38*(x+=r*H),f+=38*(_+=r*q),h+=38*(S+=r*Y),p+=38*(T+=r*K),d+=38*(O+=r*z),g+=38*(N+=r*V),y+=38*(k+=r*J),m+=38*(D+=r*W),I+=38*(F+=r*$),i=(r=(i+=38*(w+=r*R))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),A=(r=A+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),I=(r=I+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),A=(r=A+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),I=(r=I+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=c,e[4]=u,e[5]=A,e[6]=l,e[7]=f,e[8]=h,e[9]=p,e[10]=d,e[11]=g,e[12]=y,e[13]=m,e[14]=I,e[15]=v}function j(e,t){M(e,t,t)}function L(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)j(o,o),2!==r&&4!==r&&M(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function G(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)j(o,o),1!==r&&M(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function H(e,n,r){var o,i,a=new Uint8Array(32),s=new Float64Array(80),u=t(),A=t(),l=t(),f=t(),h=t(),p=t();for(i=0;i<31;i++)a[i]=n[i];for(a[31]=127&n[31]|64,a[0]&=248,U(s,r),i=0;i<16;i++)A[i]=s[i],f[i]=u[i]=l[i]=0;for(u[0]=f[0]=1,i=254;i>=0;--i)N(u,A,o=a[i>>>3]>>>(7&i)&1),N(l,f,o),R(h,u,l),P(u,u,l),R(l,A,f),P(A,A,f),j(f,h),j(p,u),M(u,l,u),M(l,A,h),R(h,u,l),P(u,u,l),j(A,u),P(l,f,p),M(u,l,c),R(u,u,f),M(l,l,u),M(u,f,p),M(f,A,s),j(A,h),N(u,A,o),N(l,f,o);for(i=0;i<16;i++)s[i+16]=u[i],s[i+32]=l[i],s[i+48]=A[i],s[i+64]=f[i];var d=s.subarray(32),g=s.subarray(16);return L(d,d),M(g,g,d),k(e,g),0}function q(e,t){return H(e,t,i)}function Y(e,t){return r(t,32),q(e,t)}function K(e,t,n){var r=new Uint8Array(32);return H(r,n,t),I(e,o,r,v)}b.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,c,u,A,l,f,h,p,d,g,y,m,I,v,w,E=this.fin?0:2048,B=this.h[0],C=this.h[1],b=this.h[2],Q=this.h[3],x=this.h[4],_=this.h[5],S=this.h[6],T=this.h[7],O=this.h[8],N=this.h[9],k=this.r[0],D=this.r[1],F=this.r[2],U=this.r[3],R=this.r[4],P=this.r[5],M=this.r[6],j=this.r[7],L=this.r[8],G=this.r[9];n>=16;)f=l=0,f+=(B+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*k,f+=(C+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*G),f+=(b+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*L),f+=(Q+=8191&(i>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*j),l=(f+=(x+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*M))>>>13,f&=8191,f+=(_+=s>>>1&8191)*(5*P),f+=(S+=8191&(s>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*R),f+=(T+=8191&(c>>>11|(u=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*U),f+=(O+=8191&(u>>>8|(A=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*F),h=l+=(f+=(N+=A>>>5|E)*(5*D))>>>13,h+=B*D,h+=C*k,h+=b*(5*G),h+=Q*(5*L),l=(h+=x*(5*j))>>>13,h&=8191,h+=_*(5*M),h+=S*(5*P),h+=T*(5*R),h+=O*(5*U),l+=(h+=N*(5*F))>>>13,h&=8191,p=l,p+=B*F,p+=C*D,p+=b*k,p+=Q*(5*G),l=(p+=x*(5*L))>>>13,p&=8191,p+=_*(5*j),p+=S*(5*M),p+=T*(5*P),p+=O*(5*R),d=l+=(p+=N*(5*U))>>>13,d+=B*U,d+=C*F,d+=b*D,d+=Q*k,l=(d+=x*(5*G))>>>13,d&=8191,d+=_*(5*L),d+=S*(5*j),d+=T*(5*M),d+=O*(5*P),g=l+=(d+=N*(5*R))>>>13,g+=B*R,g+=C*U,g+=b*F,g+=Q*D,l=(g+=x*k)>>>13,g&=8191,g+=_*(5*G),g+=S*(5*L),g+=T*(5*j),g+=O*(5*M),y=l+=(g+=N*(5*P))>>>13,y+=B*P,y+=C*R,y+=b*U,y+=Q*F,l=(y+=x*D)>>>13,y&=8191,y+=_*k,y+=S*(5*G),y+=T*(5*L),y+=O*(5*j),m=l+=(y+=N*(5*M))>>>13,m+=B*M,m+=C*P,m+=b*R,m+=Q*U,l=(m+=x*F)>>>13,m&=8191,m+=_*D,m+=S*k,m+=T*(5*G),m+=O*(5*L),I=l+=(m+=N*(5*j))>>>13,I+=B*j,I+=C*M,I+=b*P,I+=Q*R,l=(I+=x*U)>>>13,I&=8191,I+=_*F,I+=S*D,I+=T*k,I+=O*(5*G),v=l+=(I+=N*(5*L))>>>13,v+=B*L,v+=C*j,v+=b*M,v+=Q*P,l=(v+=x*R)>>>13,v&=8191,v+=_*U,v+=S*F,v+=T*D,v+=O*k,w=l+=(v+=N*(5*G))>>>13,w+=B*G,w+=C*L,w+=b*j,w+=Q*M,l=(w+=x*P)>>>13,w&=8191,w+=_*R,w+=S*U,w+=T*F,w+=O*D,B=f=8191&(l=(l=((l+=(w+=N*k)>>>13)<<2)+l|0)+(f&=8191)|0),C=h+=l>>>=13,b=p&=8191,Q=d&=8191,x=g&=8191,_=y&=8191,S=m&=8191,T=I&=8191,O=v&=8191,N=w&=8191,t+=16,n-=16;this.h[0]=B,this.h[1]=C,this.h[2]=b,this.h[3]=Q,this.h[4]=x,this.h[5]=_,this.h[6]=S,this.h[7]=T,this.h[8]=O,this.h[9]=N},b.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},b.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var z=_,V=S,J=[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];function W(e,t,n,r){for(var o,i,a,s,c,u,A,l,f,h,p,d,g,y,m,I,v,w,E,B,C,b,Q,x,_,S,T=new Int32Array(16),O=new Int32Array(16),N=e[0],k=e[1],D=e[2],F=e[3],U=e[4],R=e[5],P=e[6],M=e[7],j=t[0],L=t[1],G=t[2],H=t[3],q=t[4],Y=t[5],K=t[6],z=t[7],V=0;r>=128;){for(E=0;E<16;E++)B=8*E+V,T[E]=n[B+0]<<24|n[B+1]<<16|n[B+2]<<8|n[B+3],O[E]=n[B+4]<<24|n[B+5]<<16|n[B+6]<<8|n[B+7];for(E=0;E<80;E++)if(o=N,i=k,a=D,s=F,c=U,u=R,A=P,f=j,h=L,p=G,d=H,g=q,y=Y,m=K,Q=65535&(b=z),x=b>>>16,_=65535&(C=M),S=C>>>16,Q+=65535&(b=(q>>>14|U<<18)^(q>>>18|U<<14)^(U>>>9|q<<23)),x+=b>>>16,_+=65535&(C=(U>>>14|q<<18)^(U>>>18|q<<14)^(q>>>9|U<<23)),S+=C>>>16,Q+=65535&(b=q&Y^~q&K),x+=b>>>16,_+=65535&(C=U&R^~U&P),S+=C>>>16,Q+=65535&(b=J[2*E+1]),x+=b>>>16,_+=65535&(C=J[2*E]),S+=C>>>16,C=T[E%16],x+=(b=O[E%16])>>>16,_+=65535&C,S+=C>>>16,_+=(x+=(Q+=65535&b)>>>16)>>>16,Q=65535&(b=w=65535&Q|x<<16),x=b>>>16,_=65535&(C=v=65535&_|(S+=_>>>16)<<16),S=C>>>16,Q+=65535&(b=(j>>>28|N<<4)^(N>>>2|j<<30)^(N>>>7|j<<25)),x+=b>>>16,_+=65535&(C=(N>>>28|j<<4)^(j>>>2|N<<30)^(j>>>7|N<<25)),S+=C>>>16,x+=(b=j&L^j&G^L&G)>>>16,_+=65535&(C=N&k^N&D^k&D),S+=C>>>16,l=65535&(_+=(x+=(Q+=65535&b)>>>16)>>>16)|(S+=_>>>16)<<16,I=65535&Q|x<<16,Q=65535&(b=d),x=b>>>16,_=65535&(C=s),S=C>>>16,x+=(b=w)>>>16,_+=65535&(C=v),S+=C>>>16,k=o,D=i,F=a,U=s=65535&(_+=(x+=(Q+=65535&b)>>>16)>>>16)|(S+=_>>>16)<<16,R=c,P=u,M=A,N=l,L=f,G=h,H=p,q=d=65535&Q|x<<16,Y=g,K=y,z=m,j=I,E%16==15)for(B=0;B<16;B++)C=T[B],Q=65535&(b=O[B]),x=b>>>16,_=65535&C,S=C>>>16,C=T[(B+9)%16],Q+=65535&(b=O[(B+9)%16]),x+=b>>>16,_+=65535&C,S+=C>>>16,v=T[(B+1)%16],Q+=65535&(b=((w=O[(B+1)%16])>>>1|v<<31)^(w>>>8|v<<24)^(w>>>7|v<<25)),x+=b>>>16,_+=65535&(C=(v>>>1|w<<31)^(v>>>8|w<<24)^v>>>7),S+=C>>>16,v=T[(B+14)%16],x+=(b=((w=O[(B+14)%16])>>>19|v<<13)^(v>>>29|w<<3)^(w>>>6|v<<26))>>>16,_+=65535&(C=(v>>>19|w<<13)^(w>>>29|v<<3)^v>>>6),S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,T[B]=65535&_|S<<16,O[B]=65535&Q|x<<16;Q=65535&(b=j),x=b>>>16,_=65535&(C=N),S=C>>>16,C=e[0],x+=(b=t[0])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[0]=N=65535&_|S<<16,t[0]=j=65535&Q|x<<16,Q=65535&(b=L),x=b>>>16,_=65535&(C=k),S=C>>>16,C=e[1],x+=(b=t[1])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[1]=k=65535&_|S<<16,t[1]=L=65535&Q|x<<16,Q=65535&(b=G),x=b>>>16,_=65535&(C=D),S=C>>>16,C=e[2],x+=(b=t[2])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[2]=D=65535&_|S<<16,t[2]=G=65535&Q|x<<16,Q=65535&(b=H),x=b>>>16,_=65535&(C=F),S=C>>>16,C=e[3],x+=(b=t[3])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[3]=F=65535&_|S<<16,t[3]=H=65535&Q|x<<16,Q=65535&(b=q),x=b>>>16,_=65535&(C=U),S=C>>>16,C=e[4],x+=(b=t[4])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[4]=U=65535&_|S<<16,t[4]=q=65535&Q|x<<16,Q=65535&(b=Y),x=b>>>16,_=65535&(C=R),S=C>>>16,C=e[5],x+=(b=t[5])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[5]=R=65535&_|S<<16,t[5]=Y=65535&Q|x<<16,Q=65535&(b=K),x=b>>>16,_=65535&(C=P),S=C>>>16,C=e[6],x+=(b=t[6])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[6]=P=65535&_|S<<16,t[6]=K=65535&Q|x<<16,Q=65535&(b=z),x=b>>>16,_=65535&(C=M),S=C>>>16,C=e[7],x+=(b=t[7])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[7]=M=65535&_|S<<16,t[7]=z=65535&Q|x<<16,V+=128,r-=128}return r}function $(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,W(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),W(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function X(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),c=t(),u=t(),l=t(),f=t();P(r,e[1],e[0]),P(f,n[1],n[0]),M(r,r,f),R(o,e[0],e[1]),R(f,n[0],n[1]),M(o,o,f),M(i,e[3],n[3]),M(i,i,A),M(a,e[2],n[2]),R(a,a,a),P(s,o,r),P(c,a,i),R(u,a,i),R(l,o,r),M(e[0],s,c),M(e[1],l,u),M(e[2],u,c),M(e[3],s,l)}function Z(e,t,n){var r;for(r=0;r<4;r++)N(e[r],t[r],n)}function ee(e,n){var r=t(),o=t(),i=t();L(i,n[2]),M(r,n[0],i),M(o,n[1],i),k(e,o),e[31]^=F(r)<<7}function te(e,t,n){var r,o;for(T(e[0],a),T(e[1],s),T(e[2],s),T(e[3],a),o=255;o>=0;--o)Z(e,t,r=n[o/8|0]>>(7&o)&1),X(t,e),X(e,e),Z(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];T(r[0],l),T(r[1],f),T(r[2],s),M(r[3],l,f),te(e,r,n)}function re(e,n,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||r(n,32),$(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,ne(s,a),ee(e,s),i=0;i<32;i++)n[i+32]=e[i];return 0}var oe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*oe[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*oe[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*oe[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ae(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,n)}function se(e,n,r,o){var i,a,s=new Uint8Array(64),c=new Uint8Array(64),u=new Uint8Array(64),A=new Float64Array(64),l=[t(),t(),t(),t()];$(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for($(u,e.subarray(32),r+32),ae(u),ne(l,u),ee(e,l),i=32;i<64;i++)e[i]=o[i];for($(c,e,r+64),ae(c),i=0;i<64;i++)A[i]=0;for(i=0;i<32;i++)A[i]=u[i];for(i=0;i<32;i++)for(a=0;a<32;a++)A[i+a]+=c[i]*s[a];return ie(e.subarray(32),A),f}function ce(e,n,r,o){var i,c=new Uint8Array(32),A=new Uint8Array(64),l=[t(),t(),t(),t()],f=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),i=t(),c=t(),A=t(),l=t(),f=t();return T(e[2],s),U(e[1],n),j(i,e[1]),M(c,i,u),P(i,i,e[2]),R(c,e[2],c),j(A,c),j(l,A),M(f,l,A),M(r,f,i),M(r,r,c),G(r,r),M(r,r,i),M(r,r,c),M(r,r,c),M(e[0],r,c),j(o,e[0]),M(o,o,c),D(o,i)&&M(e[0],e[0],h),j(o,e[0]),M(o,o,c),D(o,i)?-1:(F(e[0])===n[31]>>7&&P(e[0],a,e[0]),M(e[3],e[0],e[1]),0)}(f,o))return-1;for(i=0;i<r;i++)e[i]=n[i];for(i=0;i<32;i++)e[i+32]=o[i];if($(A,e,r),ae(A),te(l,f,A),ne(f,n.subarray(32)),X(l,f),ee(c,l),r-=64,y(n,0,c,0)){for(i=0;i<r;i++)e[i]=0;return-1}for(i=0;i<r;i++)e[i]=n[i+64];return r}var ue=64,Ae=32,le=64;function fe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function he(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function pe(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:I,crypto_stream_xor:C,crypto_stream:B,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:E,crypto_onetimeauth:Q,crypto_onetimeauth_verify:x,crypto_verify_16:g,crypto_verify_32:y,crypto_secretbox:_,crypto_secretbox_open:S,crypto_scalarmult:H,crypto_scalarmult_base:q,crypto_box_beforenm:K,crypto_box_afternm:z,crypto_box:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),z(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),V(e,t,n,r,a)},crypto_box_keypair:Y,crypto_hash:$,crypto_sign:se,crypto_sign_keypair:re,crypto_sign_open:ce,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:Ae,crypto_sign_SECRETKEYBYTES:le,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:u,L:oe,pack25519:k,unpack25519:U,M:M,A:R,S:j,Z:P,pow2523:G,add:X,set25519:T,modL:ie,scalarmult:te,scalarbase:ne},e.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},e.secretbox=function(e,t,n){he(e,t,n),fe(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return _(o,r,r.length,t,n),o.subarray(16)},e.secretbox.open=function(e,t,n){he(e,t,n),fe(n,t);for(var r=new Uint8Array(16+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+16]=e[i];return r.length<32||0!==S(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=16,e.scalarMult=function(e,t){if(he(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return H(n,e,t),n},e.scalarMult.base=function(e){if(he(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return q(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){he(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return K(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return Y(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(he(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return q(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(he(e,t),t.length!==le)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return se(n,e,e.length,t),n},e.sign.open=function(e,t){if(he(e,t),t.length!==Ae)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=ce(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(ue),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(he(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==Ae)throw new Error("bad public key size");var r,o=new Uint8Array(ue+e.length),i=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+ue]=e[r];return ce(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(Ae),t=new Uint8Array(le);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(he(e),e.length!==le)throw new Error("bad secret key size");for(var t=new Uint8Array(Ae),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(he(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(Ae),n=new Uint8Array(le),r=0;r<32;r++)n[r]=e[r];return re(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=Ae,e.sign.secretKeyLength=le,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){he(e);var t=new Uint8Array(64);return $(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return he(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===d(e,0,t,0,e.length)},e.setPRNG=function(e){r=e},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&t.getRandomValues?e.setPRNG((function(e,n){var r,o=new Uint8Array(n);for(r=0;r<n;r+=65536)t.getRandomValues(o.subarray(r,r+Math.min(n-r,65536)));for(r=0;r<n;r++)e[r]=o[r];pe(o)})):(t=n(55024))&&t.randomBytes&&e.setPRNG((function(e,n){var r,o=t.randomBytes(n);for(r=0;r<n;r++)e[r]=o[r];pe(o)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})},52511:function(e,t,n){var r;e=n.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,c=36,u=/^xn--/,A=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,p=String.fromCharCode;function d(e){throw RangeError(f[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(l,".")).split("."),t).join(".")}function m(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function I(e){return g(e,(function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+p(e)})).join("")}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=c)e=h(e/35);return h(r+36*e/(e+38))}function E(e){var t,n,r,o,i,a,u,A,l,f,p,g=[],y=e.length,m=0,v=128,E=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&d("not-basic"),g.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<y;){for(i=m,a=1,u=c;o>=y&&d("invalid-input"),((A=(p=e.charCodeAt(o++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:c)>=c||A>h((s-m)/a))&&d("overflow"),m+=A*a,!(A<(l=u<=E?1:u>=E+26?26:u-E));u+=c)a>h(s/(f=c-l))&&d("overflow"),a*=f;E=w(m-i,t=g.length+1,0==i),h(m/t)>s-v&&d("overflow"),v+=h(m/t),m%=t,g.splice(m++,0,v)}return I(g)}function B(e){var t,n,r,o,i,a,u,A,l,f,g,y,I,E,B,C=[];for(y=(e=m(e)).length,t=128,n=0,i=72,a=0;a<y;++a)(g=e[a])<128&&C.push(p(g));for(r=o=C.length,o&&C.push("-");r<y;){for(u=s,a=0;a<y;++a)(g=e[a])>=t&&g<u&&(u=g);for(u-t>h((s-n)/(I=r+1))&&d("overflow"),n+=(u-t)*I,t=u,a=0;a<y;++a)if((g=e[a])<t&&++n>s&&d("overflow"),g==t){for(A=n,l=c;!(A<(f=l<=i?1:l>=i+26?26:l-i));l+=c)B=A-f,E=c-f,C.push(p(v(f+B%E,0))),A=h(B/E);C.push(p(v(A,0))),i=w(n,I,r==o),n=0,++r}++n,++t}return C.join("")}a={version:"1.3.2",ucs2:{decode:m,encode:I},decode:E,encode:B,toASCII:function(e){return y(e,(function(e){return A.test(e)?"xn--"+B(e):e}))},toUnicode:function(e){return y(e,(function(e){return u.test(e)?E(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},8575:function(e,t,n){"use strict";var r=n(52511),o=n(62502);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=I,t.resolve=function(e,t){return I(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?I(e,!1,!0).resolveObject(t):t},t.format=function(e){return o.isString(e)&&(e=I(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),A=["'"].concat(u),l=["%","/","?",";","#"].concat(A),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=n(17673);function I(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var I=e=u.join(s);if(I=I.trim(),!n&&1===e.split("#").length){var v=c.exec(I);if(v)return this.path=I,this.href=I,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(I);if(w){var E=(w=w[0]).toLowerCase();this.protocol=E,I=I.substr(w.length)}if(n||w||I.match(/^\/\/[^@\/]+@[^@\/]+/)){var B="//"===I.substr(0,2);!B||w&&g[w]||(I=I.substr(2),this.slashes=!0)}if(!g[w]&&(B||w&&!y[w])){for(var C,b,Q=-1,x=0;x<f.length;x++)-1!==(_=I.indexOf(f[x]))&&(-1===Q||_<Q)&&(Q=_);for(-1!==(b=-1===Q?I.lastIndexOf("@"):I.lastIndexOf("@",Q))&&(C=I.slice(0,b),I=I.slice(b+1),this.auth=decodeURIComponent(C)),Q=-1,x=0;x<l.length;x++){var _;-1!==(_=I.indexOf(l[x]))&&(-1===Q||_<Q)&&(Q=_)}-1===Q&&(Q=I.length),this.host=I.slice(0,Q),I=I.slice(Q),this.parseHost(),this.hostname=this.hostname||"";var S="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!S)for(var T=this.hostname.split(/\./),O=(x=0,T.length);x<O;x++){var N=T[x];if(N&&!N.match(h)){for(var k="",D=0,F=N.length;D<F;D++)N.charCodeAt(D)>127?k+="x":k+=N[D];if(!k.match(h)){var U=T.slice(0,x),R=T.slice(x+1),P=N.match(p);P&&(U.push(P[1]),R.unshift(P[2])),R.length&&(I="/"+R.join(".")+I),this.hostname=U.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),S||(this.hostname=r.toASCII(this.hostname));var M=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+M,this.href+=this.host,S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==I[0]&&(I="/"+I))}if(!d[E])for(x=0,O=A.length;x<O;x++){var L=A[x];if(-1!==I.indexOf(L)){var G=encodeURIComponent(L);G===L&&(G=escape(L)),I=I.split(L).join(G)}}var H=I.indexOf("#");-1!==H&&(this.hash=I.substr(H),I=I.slice(0,H));var q=I.indexOf("?");if(-1!==q?(this.search=I.substr(q),this.query=I.substr(q+1),t&&(this.query=m.parse(this.query)),I=I.slice(0,q)):t&&(this.search="",this.query={}),I&&(this.pathname=I),y[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var Y=this.search||"";this.path=M+Y}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=m.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(I(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var A=c[u];"protocol"!==A&&(n[A]=e[A])}return y[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!y[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var h=l[f];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",m=n.search||"";n.path=d+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var I=n.pathname&&"/"===n.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=v||I||n.host&&e.pathname,E=w,B=n.pathname&&n.pathname.split("/")||[],C=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!y[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===B[0]?B[0]=n.host:B.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===B[0])),v)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,B=p;else if(p.length)B||(B=[]),B.pop(),B=B.concat(p),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search))return C&&(n.hostname=n.host=B.shift(),(S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=S.shift(),n.host=n.hostname=S.shift())),n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!B.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var b=B.slice(-1)[0],Q=(n.host||e.host||B.length>1)&&("."===b||".."===b)||""===b,x=0,_=B.length;_>=0;_--)"."===(b=B[_])?B.splice(_,1):".."===b?(B.splice(_,1),x++):x&&(B.splice(_,1),x--);if(!w&&!E)for(;x--;x)B.unshift("..");!w||""===B[0]||B[0]&&"/"===B[0].charAt(0)||B.unshift(""),Q&&"/"!==B.join("/").substr(-1)&&B.push("");var S,T=""===B[0]||B[0]&&"/"===B[0].charAt(0);return C&&(n.hostname=n.host=T?"":B.length?B.shift():"",(S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=S.shift(),n.host=n.hostname=S.shift())),(w=w||n.host&&B.length)&&!T&&B.unshift(""),B.length?n.pathname=B.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},62502:function(e){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},45840:function(e,t,n){var r;if("object"==typeof globalThis)r=globalThis;else try{r=n(284)}catch(e){}finally{if(r||"undefined"==typeof window||(r=window),!r)throw new Error("Could not determine global this")}var o=r.WebSocket||r.MozWebSocket,i=n(79387);function a(e,t){return t?new o(e,t):new o(e)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(a,e,{get:function(){return o[e]}})})),e.exports={w3cwebsocket:o?a:null,version:i}},79387:function(e,t,n){e.exports=n(19794).version},24654:function(){},58050:function(){},25609:function(){},55024:function(){},19794:function(e){"use strict";e.exports={version:"1.0.34"}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r={};return function(){"use strict";n.r(r),n.d(r,{AccountBase:function(){return yA},AccountError:function(){return C},AccountMultiple:function(){return MA},Ae:function(){return IA},Aens:function(){return LA},AensError:function(){return b},AensPointerContextError:function(){return Z},AeppError:function(){return Q},AeppWalletHelpers:function(){return p},AeppWalletSchema:function(){return h},AlreadyConnectedError:function(){return rt},AmbiguousEventDefinitionError:function(){return be},AmountFormatter:function(){return s},ArgumentCountMismatchError:function(){return U},ArgumentError:function(){return D},BaseError:function(){return B},BrowserRuntimeConnection:function(){return Hf},BrowserWindowMessageConnection:function(){return Lf},BytecodeMismatchError:function(){return pe},Bytes:function(){return e},Chain:function(){return Mi},ChainNode:function(){return xA},Channel:function(){return Uf},ChannelCallError:function(){return ce},ChannelConnectionError:function(){return ue},ChannelError:function(){return x},ChannelPingTimedOutError:function(){return Ae},CompilerError:function(){return _},ContentScriptBridge:function(){return Pf},Contract:function(){return zA},ContractCompilerHttp:function(){return GA},ContractError:function(){return S},Crypto:function(){return i},CryptographyError:function(){return T},DecodeError:function(){return je},DisconnectedError:function(){return Re},DryRunError:function(){return He},DuplicateCallbackError:function(){return ne},DuplicateContractError:function(){return de},DuplicateNodeError:function(){return Pe},EncodeError:function(){return Le},GeneralizedAccount:function(){return WA},HdWallet:function(){return u},IllegalArgumentError:function(){return F},IllegalBidFeeError:function(){return qe},InactiveContractError:function(){return ge},InsufficientBalanceError:function(){return R},InsufficientNameFeeError:function(){return ee},InternalError:function(){return W},InvalidAensNameError:function(){return te},InvalidAuthDataError:function(){return he},InvalidChecksumError:function(){return Qe},InvalidDenominationError:function(){return P},InvalidDerivationPathError:function(){return xe},InvalidKeyError:function(){return _e},InvalidKeypairError:function(){return $},InvalidMethodInvocationError:function(){return ye},InvalidNameError:function(){return M},InvalidPasswordError:function(){return Se},InvalidRpcMessageError:function(){return re},InvalidSignatureError:function(){return Ye},InvalidTxError:function(){return Ke},InvalidTxParamsError:function(){return ze},Keystore:function(){return a},MemoryAccount:function(){return PA},MerkleTreeHashMismatchError:function(){return Te},MessageDirectionError:function(){return ot},MissingCallbackError:function(){return oe},MissingContractAddressError:function(){return me},MissingContractDefError:function(){return Ie},MissingEventDefinitionError:function(){return Ce},MissingFunctionNameError:function(){return ve},MissingNodeInTreeError:function(){return Oe},MissingParamError:function(){return j},NoBrowserFoundError:function(){return L},NoDefaultAensPointerError:function(){return Ve},NoSerializerFoundError:function(){return G},NoSuchContractFunctionError:function(){return Ee},NoWalletConnectedError:function(){return it},Node:function(){return pA},NodeError:function(){return O},NodeInvocationError:function(){return we},NodeNotFoundError:function(){return Me},NodePool:function(){return CA},NotHardenedSegmentError:function(){return ke},NotImplementedError:function(){return V},NotPayableFunctionError:function(){return Be},Oracle:function(){return Il},PayloadLengthError:function(){return Ge},PrefixMismatchError:function(){return Je},PrefixNotFoundError:function(){return We},RequestTimedOutError:function(){return H},RpcAepp:function(){return vl},RpcConnectionError:function(){return at},RpcWallet:function(){return xl},SCHEMA:function(){return t},SchemaNotFoundError:function(){return $e},TagNotFoundError:function(){return Xe},Transaction:function(){return FA},TransactionError:function(){return N},Tx:function(){return Ri},TxBuilder:function(){return c},TxBuilderHelper:function(){return o},TxNotInChainError:function(){return Ze},TxTimedOutError:function(){return q},TypeError:function(){return Y},UnAuthorizedAccountError:function(){return ie},UnavailableAccountError:function(){return X},UnexpectedChannelMessageError:function(){return le},Universal:function(){return Rf},UnknownChannelStateError:function(){return fe},UnknownNodeLengthError:function(){return De},UnknownPathNibbleError:function(){return Fe},UnknownRpcClientError:function(){return ae},UnknownTxError:function(){return et},UnsubscribedAccountError:function(){return se},UnsupportedABIversionError:function(){return tt},UnsupportedAlgorithmError:function(){return Ne},UnsupportedChildIndexError:function(){return Ue},UnsupportedPlatformError:function(){return K},UnsupportedProtocolError:function(){return z},UnsupportedVMversionError:function(){return nt},UnsupportedVersionError:function(){return J},WalletDetector:function(){return Gf},WalletError:function(){return k},genSwaggerClient:function(){return cA},getDefaultPointerKey:function(){return qf},verifyTransaction:function(){return BA}});var e={};n.r(e),n.d(e,{bigNumberToByteArray:function(){return lt},str2buf:function(){return ht},toBytes:function(){return ft}});var t={};n.r(t),n.d(t,{ABI_VERSIONS:function(){return fn},AMOUNT:function(){return Tt},BASE_GAS:function(){return yn},CLIENT_TTL:function(){return Pt},CONTRACT_BYTE_CODE_LIMA:function(){return _n},DEFAULT_FEE:function(){return In},DRY_RUN_ACCOUNT:function(){return Dt},FIELD_TYPES:function(){return gn},GAS_MAX:function(){return Ot},GAS_PER_BYTE:function(){return mn},ID_TAG:function(){return Bn},ID_TAG_PREFIX:function(){return bn},KEY_BLOCK_INTERVAL:function(){return vn},MAX_AUTH_FUN_GAS:function(){return kt},MIN_GAS_PRICE:function(){return Nt},NAME_BID_MAX_LENGTH:function(){return Ht},NAME_BID_RANGES:function(){return Yt},NAME_BID_TIMEOUTS:function(){return Kt},NAME_BID_TIMEOUT_BLOCKS:function(){return Lt},NAME_FEE_BID_INCREMENT:function(){return jt},NAME_FEE_MULTIPLIER:function(){return Mt},NAME_MAX_CLIENT_TTL:function(){return Rt},NAME_MAX_LENGTH_FEE:function(){return Gt},NAME_MAX_TTL:function(){return Ut},NAME_TTL:function(){return Ft},OBJECT_ID_TX_TYPE:function(){return dn},OBJECT_TAG_SIGNED_TRANSACTION:function(){return zt},ORACLE_TTL:function(){return xt},POINTER_KEY_BY_PREFIX:function(){return qt},PREFIX_ID_TAG:function(){return Cn},PROTOCOL_VERSIONS:function(){return hn},PROTOCOL_VM_ABI:function(){return pn},QUERY_FEE:function(){return Qt},QUERY_TTL:function(){return _t},RESPONSE_TTL:function(){return St},TX_DESERIALIZATION_SCHEMA:function(){return Er},TX_FEE_BASE_GAS:function(){return wn},TX_FEE_OTHER_GAS:function(){return En},TX_SERIALIZATION_SCHEMA:function(){return wr},TX_TTL:function(){return bt},TX_TYPE:function(){return An},VM_VERSIONS:function(){return ln},VSN:function(){return Bt},VSN_2:function(){return Ct}});var o={};n.r(o),n.d(o,{buildContractId:function(){return xr},buildPointers:function(){return zr},commitmentHash:function(){return Or},computeAuctionEndBlock:function(){return to},computeBidFee:function(){return eo},createSalt:function(){return Qr},decode:function(){return Lr},encode:function(){return Gr},ensureNameValid:function(){return Wr},formatSalt:function(){return Sr},getDefaultPointerKey:function(){return Xr},getMinimumNameFee:function(){return Zr},isAuctionName:function(){return no},isNameValid:function(){return $r},oracleQueryId:function(){return _r},produceNameId:function(){return Tr},readId:function(){return qr},readInt:function(){return Kr},readPointers:function(){return Vr},writeId:function(){return Hr},writeInt:function(){return Yr}});var i={};n.r(i),n.d(i,{decryptKey:function(){return po},encodeContractAddress:function(){return Ao},encodeUnsigned:function(){return uo},encryptKey:function(){return ho},generateKeyPair:function(){return fo},generateKeyPairFromSecret:function(){return lo},getAddressFromPriv:function(){return io},hash:function(){return mt},isAddressValid:function(){return ao},isValidKeypair:function(){return wo},messageToHash:function(){return mo},salt:function(){return co},sha256hash:function(){return so},sign:function(){return go},signMessage:function(){return Io},verify:function(){return yo},verifyMessage:function(){return vo}});var a={};n.r(a),n.d(a,{deriveKeyUsingArgon2id:function(){return ko},dump:function(){return jo},getAddressFromPriv:function(){return Po},recover:function(){return Mo},validateKeyObj:function(){return Lo}});var s={};n.r(s),n.d(s,{AE_AMOUNT_FORMATS:function(){return Ho},DENOMINATION_MAGNITUDE:function(){return qo},default:function(){return Xo},formatAmount:function(){return zo},toAe:function(){return Yo},toAettos:function(){return Ko}});var c={};n.r(c),n.d(c,{buildRawTx:function(){return fi},buildTx:function(){return di},buildTxHash:function(){return yi},calculateFee:function(){return Ai},calculateMinFee:function(){return ci},default:function(){return mi},unpackRawTx:function(){return hi},unpackTx:function(){return gi},validateParams:function(){return li}});var u={};n.r(u),n.d(u,{deriveChild:function(){return Ti},derivePathFromKey:function(){return bi},derivePathFromSeed:function(){return Qi},generateSaveHDWalletFromSeed:function(){return Oi},getHdWalletAccountFromSeed:function(){return ki},getKeyPair:function(){return _i},getMasterKeyFromSeed:function(){return Si},getSaveHDWalletAccounts:function(){return Ni}});var A={};n.r(A),n.d(A,{JsonPatchError:function(){return Ps},_areEquals:function(){return Vs},applyOperation:function(){return Hs},applyPatch:function(){return qs},applyReducer:function(){return Ys},deepClone:function(){return Ms},getValueByPointer:function(){return Gs},validate:function(){return zs},validator:function(){return Ks}});var l={};n.r(l),n.d(l,{compare:function(){return nc},generate:function(){return ec},observe:function(){return Zs},unobserve:function(){return Xs}});var f={};n.r(f),n.d(f,{cookie:function(){return Ru},header:function(){return Uu},path:function(){return ku},query:function(){return Du}});var h={};n.r(h),n.d(h,{ERRORS:function(){return ol},MESSAGE_DIRECTION:function(){return ZA},METHODS:function(){return nl},RPC_STATUS:function(){return rl},SUBSCRIPTION_TYPES:function(){return tl},VERSION:function(){return XA},WALLET_TYPE:function(){return el}});var p={};n.r(p),n.d(p,{getBrowserAPI:function(){return il},getHandler:function(){return cl},isInIframe:function(){return al},isValidAccounts:function(){return fl},message:function(){return ul},responseMessage:function(){return Al},sendMessage:function(){return sl},sendResponseMessage:function(){return ll}});var d=n(50780),g=n.n(d),y=n(78826),m=n.n(y),I=n(89072),v=n.n(I),w=n(44431),E=n.n(w);class B extends Error{constructor(e){super(e),this.name="BaseError"}}class C extends B{constructor(e){super(e),this.name="AccountError"}}class b extends B{constructor(e){super(e),this.name="AensError"}}class Q extends B{constructor(e){super(e),this.name="AeppError"}}class x extends B{constructor(e){super(e),this.name="ChannelError"}}class _ extends B{constructor(e){super(e),this.name="CompilerError"}}class S extends B{constructor(e){super(e),this.name="ContractError"}}class T extends B{constructor(e){super(e),this.name="CryptographyError"}}class O extends B{constructor(e){super(e),this.name="NodeError"}}class N extends B{constructor(e){super(e),this.name="TransactionError"}}class k extends B{constructor(e){super(e),this.name="WalletError"}}class D extends B{constructor(e,t,n){super(`${e} should be ${t}, got ${n} instead`),this.name="ArgumentError"}}class F extends T{constructor(e){super(e),this.name="IllegalArgumentError"}}class U extends B{constructor(e,t,n){super(`${e} expects ${t} arguments, got ${n} instead`),this.name="ArgumentCountMismatchError"}}class R extends B{constructor(e){super(e),this.name="InsufficientBalanceError"}}class P extends B{constructor(e){super(e),this.name="InvalidDenominationError"}}class M extends B{constructor(e){super(e),this.name="InvalidNameError"}}class j extends B{constructor(e){super(e),this.name="MissingParamError"}}class L extends B{constructor(){super("Browser is not detected"),this.name="NoBrowserFoundError"}}class G extends B{constructor(){super("Byte serialization not supported"),this.name="NoSerializerFoundError"}}class H extends B{constructor(e,t,n){super(void 0!==t&&void 0!==n?`Giving up after ${e}ms, current height: ${t}, desired height: ${n}`:`Giving up after ${e} ms`),this.name="RequestTimedOutError"}}class q extends B{constructor(e,t,n){super([`Giving up after ${e} blocks mined`,`transaction hash: ${t}`,...n?[`status: ${n}`]:[]].join(", ")),this.name="TxTimedOutError"}}class Y extends B{constructor(e){super(e),this.name="TypeError"}}class K extends B{constructor(e){super(e),this.name="UnsupportedPlatformError"}}class z extends B{constructor(e){super(e),this.name="UnsupportedProtocolError"}}class V extends B{constructor(e){super(e),this.name="NotImplementedError"}}class J extends B{constructor(e,t,n,r){super(`Unsupported ${e} version ${t}. Supported: >= ${n} < ${r}`),this.name="UnsupportedVersionError"}}class W extends B{constructor(e){super(e),this.name="InternalError"}}class $ extends C{constructor(e){super(e),this.name="InvalidKeypairError"}}class X extends C{constructor(e){super(`Account for ${e} not available`),this.name="UnavailableAccountError"}}class Z extends b{constructor(e,t){super(`Name ${e} don't have pointers for ${t}`),this.name="AensPointerContextError"}}class ee extends b{constructor(e,t){super(`the provided fee ${e} is not enough to execute the claim, required: ${t}`),this.name="InsufficientNameFeeError"}}class te extends b{constructor(e){super(e),this.name="InvalidAensNameError"}}class ne extends Q{constructor(){super("Callback Already exist"),this.name="DuplicateCallbackError"}}class re extends Q{constructor(e){super(`Received invalid message: ${e}`),this.name="InvalidRpcMessageError"}}class oe extends Q{constructor(e){super(`Can't find callback for this messageId ${e}`),this.name="MissingCallbackError"}}class ie extends Q{constructor(e){super(`You do not have access to account ${e}`),this.name="UnAuthorizedAccountError"}}class ae extends Q{constructor(e){super(`RpcClient with id ${e} do not exist`),this.name="UnknownRpcClientError"}}class se extends Q{constructor(){super("You are not subscribed for an account."),this.name="UnsubscribedAccountError"}}class ce extends x{constructor(e){super(e),this.name="ChannelCallError"}}class ue extends x{constructor(e){super(e),this.name="ChannelConnectionError"}}class Ae extends x{constructor(){super("Server pong timed out"),this.name="ChannelPingTimedOutError"}}class le extends x{constructor(e){super(e),this.name="UnexpectedChannelMessageError"}}class fe extends x{constructor(){super("State Channels FSM entered unknown state"),this.name="UnknownChannelStateError"}}class he extends _{constructor(e){super(e),this.name="InvalidAuthDataError"}}class pe extends S{constructor(e){super(`Contract ${e} do not correspond to the bytecode deployed on the chain`),this.name="BytecodeMismatchError"}}class de extends S{constructor(){super("Contract already deployed"),this.name="DuplicateContractError"}}class ge extends S{constructor(e){super(`Contract with address ${e} not active`),this.name="InactiveContractError"}}class ye extends S{constructor(e){super(e),this.name="InvalidMethodInvocationError"}}class me extends S{constructor(e){super(e),this.name="MissingContractAddressError"}}class Ie extends S{constructor(){super("Either ACI or source code is required"),this.name="MissingContractDefError"}}class ve extends S{constructor(){super("Function name is required"),this.name="MissingFunctionNameError"}}class we extends S{constructor(e){var t;super("Invocation failed"+(""===(e=null!==(t=e)&&void 0!==t?t:"")?"":`: "${e}"`)),this.name="NodeInvocationError"}}class Ee extends S{constructor(e){super(`Function ${e} doesn't exist in contract`),this.name="NoSuchContractFunctionError"}}class Be extends S{constructor(e,t){super(`You try to pay "${e}" to function "${t}" which is not payable. Only payable function can accept tokens`),this.name="NotPayableFunctionError"}}class Ce extends S{constructor(e,t){super(`Can't find definition of ${e} event emitted by ${t} (use omitUnknown option to ignore events like this)`),this.name="MissingEventDefinitionError"}}class be extends S{constructor(e,t){super(`Found multiple definitions of "${t[0][1]}" event emitted by ${e} in ${t.map((e=>{let[t]=e;return`"${t}"`})).join(", ")} contracts (use contractAddressToName option to specify contract name corresponding to address)`),this.name="AmbiguousEventDefinitionError"}}class Qe extends T{constructor(){super("Invalid checksum"),this.name="InvalidChecksumError"}}class xe extends T{constructor(){super("Invalid path"),this.name="InvalidDerivationPathError"}}class _e extends T{constructor(e){super(e),this.name="InvalidKeyError"}}class Se extends T{constructor(e){super(e),this.name="InvalidPasswordError"}}class Te extends T{constructor(){super("Node hash is not equal to provided one"),this.name="MerkleTreeHashMismatchError"}}class Oe extends T{constructor(e){super(e),this.name="MissingNodeInTreeError"}}class Ne extends T{constructor(e){super(e+" is not available"),this.name="UnsupportedAlgorithmError"}}class ke extends T{constructor(e){super(e),this.name="NotHardenedSegmentError"}}class De extends T{constructor(e){super(`Unknown node length: ${e}`),this.name="UnknownNodeLengthError"}}class Fe extends T{constructor(e){super(`Unknown path nibble: ${e}`),this.name="UnknownPathNibbleError"}}class Ue extends T{constructor(e){super(`Child index #${e} is not supported`),this.name="UnsupportedChildIndexError"}}class Re extends O{constructor(){super("Can not get node info. Node is not connected"),this.name="DisconnectedError"}}class Pe extends O{constructor(e){super(`Node with name ${e} already exist`),this.name="DuplicateNodeError"}}class Me extends O{constructor(e){super(e),this.name="NodeNotFoundError"}}class je extends N{constructor(e){super(e),this.name="DecodeError"}}class Le extends N{constructor(e){super(e),this.name="EncodeError"}}class Ge extends N{constructor(e){super(e),this.name="PayloadLengthError"}}class He extends N{constructor(e){super(e),this.name="DryRunError"}}class qe extends N{constructor(e){super(e),this.name="IllegalBidFeeError"}}class Ye extends N{constructor(e){super(e),this.name="InvalidSignatureError"}}class Ke extends N{constructor(e){super(e),this.name="InvalidTxError"}}class ze extends N{constructor(e){super(e),this.name="InvalidTxParamsError"}}class Ve extends N{constructor(e){super(`Default AENS pointer key is not defined for ${e} prefix`),this.name="NoDefaultAensPointerError"}}class Je extends N{constructor(e,t){super(`Encoded string have a wrong type: ${e} (expected: ${t})`),this.name="PrefixMismatchError"}}class We extends N{constructor(e){super(`Prefix for id-tag ${e} not found.`),this.name="PrefixNotFoundError"}}class $e extends N{constructor(e){super(e),this.name="SchemaNotFoundError"}}class Xe extends N{constructor(e){super(`Id tag for prefix ${e} not found.`),this.name="DecodeError"}}class Ze extends N{constructor(e){super(`Transaction ${e} is removed from chain`),this.name="TxNotInChainError"}}class et extends N{constructor(e){super(e),this.name="UnknownTxError"}}class tt extends N{constructor(e){super(e),this.name="UnsupportedABIversionError"}}class nt extends N{constructor(e){super(e),this.name="UnsupportedVMversionError"}}class rt extends k{constructor(e){super(e),this.name="AlreadyConnectedError"}}class ot extends k{constructor(e){super(e),this.name="MessageDirectionError"}}class it extends k{constructor(e){super(e),this.name="NoWalletConnectedError"}}class at extends k{constructor(e){super(e),this.name="RpcConnectionError"}}function st(e){return e.replace(/_./g,(e=>e[1].toUpperCase()))}function ct(e){return e.replace(/[A-Z]/g,(e=>`_${e.toLowerCase()}`))}function ut(e){return e.length%2==0&&/^[0-9a-f]+$/i.test(e)}var At=n(48764).Buffer;function lt(e){if(!e.isInteger())throw new Y(`Unexpected not integer value: ${e.toFixed()}`);let t=e.toString(16);return t.length%2==1&&(t="0"+t),At.from(t,"hex")}function ft(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e)return At.from([]);if(Number.isInteger(e)||E().isBigNumber(e)||t)return E().isBigNumber(e)||(e=new(E())(e)),lt(e);if("string"==typeof e)return At.from(e);throw new G}function ht(e,t){var n;return At.from(e,null!==(n=null!=t?t:ut(e)?"hex":void 0)&&void 0!==n?n:function(e){if(e.length%4>0||/[^0-9a-z+/=]/i.test(e))return!1;const t=e.indexOf("=");return-1===t||/={1,2}/.test(e.slice(t))}(e)?"base64":void 0)}var pt=n(77191),dt=n.n(pt),gt=n(27871),yt=n(48764).Buffer;function mt(e){return yt.from((0,gt.blake2b)(e,void 0,32))}var It=n(48764).Buffer;class vt{static serialize(e){return e}static deserialize(e){return e}}class wt extends vt{static serialize(e){return Hr($r(e)?Tr(e):e)}static deserialize(e){return qr(e)}}class Et extends vt{static serialize(e,t){let{name:n}=t;if(+e)throw new F(`Contract deposit is not refundable, so it should be equal 0, got ${e} instead`);return Yr(0)}static deserialize(e){return Kr(e)}}const Bt=1,Ct=2,bt=0,Qt=3e4,xt={type:"delta",value:500},_t={type:"delta",value:10},St={type:"delta",value:10},Tt=0,Ot=1579e3,Nt=1e9,kt=5e4,Dt={pub:"ak_11111111111111111111111111111111273Yts",amount:"100000000000000000000000000000000000"},Ft=18e4,Ut=36e3,Rt=84600,Pt=Rt,Mt=1e14,jt=.05,Lt=480,Gt=31,Ht=12,qt={ak:"account_pubkey",ok:"oracle_pubkey",ct:"contract_pubkey",ch:"channel"},Yt={31:E()(3).times(Mt),30:E()(5).times(Mt),29:E()(8).times(Mt),28:E()(13).times(Mt),27:E()(21).times(Mt),26:E()(34).times(Mt),25:E()(55).times(Mt),24:E()(89).times(Mt),23:E()(144).times(Mt),22:E()(233).times(Mt),21:E()(377).times(Mt),20:E()(610).times(Mt),19:E()(987).times(Mt),18:E()(1597).times(Mt),17:E()(2584).times(Mt),16:E()(4181).times(Mt),15:E()(6765).times(Mt),14:E()(10946).times(Mt),13:E()(17711).times(Mt),12:E()(28657).times(Mt),11:E()(46368).times(Mt),10:E()(75025).times(Mt),9:E()(121393).times(Mt),8:E()(196418).times(Mt),7:E()(317811).times(Mt),6:E()(514229).times(Mt),5:E()(832040).times(Mt),4:E()(1346269).times(Mt),3:E()(2178309).times(Mt),2:E()(3524578).times(Mt),1:E()(5702887).times(Mt)},Kt={13:E()(0),12:E()(Lt),8:E()(31).times(Lt),4:E()(62).times(Lt)},zt=11,Vt=521,Jt=570,Wt=571,$t=572,Xt=573,Zt=574,en=575,tn=621,nn=622,rn=623,on=624,an=625,sn=626,cn=(e,t,n)=>[e,t,n],un=(e,t)=>[e,t],An={account:"account",signed:"signedTx",spend:"spendTx",nameClaim:"nameClaimTx",namePreClaim:"namePreClaimTx",nameUpdate:"nameUpdateTx",nameRevoke:"nameRevokeTx",nameTransfer:"nameTransfer",contract:"contract",contractCreate:"contractCreateTx",contractCall:"contractCallTx",contractCallResult:"contractCallResult",oracleRegister:"oracleRegister",oracleExtend:"oracleExtend",oracleQuery:"oracleQuery",oracleResponse:"oracleResponse",channelCreate:"channelCreate",channelCloseMutual:"channelCloseMutual",channelCloseSolo:"channelCloseSolo",channelSlash:"channelSlash",channelDeposit:"channelDeposit",channelWithdraw:"channelWithdraw",channelSettle:"channelSettle",channelOffChain:"channelOffChain",channelForceProgress:"channelForceProgress",channel:"channel",channelSnapshotSolo:"channelSnapshotSolo",channelOffChainUpdateTransfer:"channelOffChainUpdateTransfer",channelOffChainUpdateDeposit:"channelOffChainUpdateDeposit",channelOffChainUpdateWithdrawal:"channelOffChainUpdateWithdrawal",channelOffChainCreateContract:"channelOffChainCreateContract",channelOffChainCallContract:"channelOffChainCallContract",channelReconnect:"channelReconnect",proofOfInclusion:"proofOfInclusion",stateTrees:"stateTrees",merklePatriciaTree:"merklePatriciaTree",merklePatriciaTreeValue:"merklePatriciaTreeValue",contractsTree:"contractsTree",contractCallsTree:"contractCallsTree",channelsTree:"channelsTree",nameserviceTree:"nameserviceTree",oraclesTree:"oraclesTree",accountsTree:"accountsTree",gaAttach:"gaAttach",gaMeta:"gaMeta",payingFor:"payingFor",sophiaByteCode:"sophiaByteCode"},ln={NO_VM:0,SOPHIA:1,SOPHIA_IMPROVEMENTS_MINERVA:3,SOPHIA_IMPROVEMENTS_FORTUNA:4,FATE:5,SOPHIA_IMPROVEMENTS_LIMA:6,FATE_2:7},fn={NO_ABI:0,SOPHIA:1,FATE:3},hn={IRIS:5},pn={[hn.IRIS]:{[An.contractCreate]:{vmVersion:[ln.FATE_2],abiVersion:[fn.FATE]},[An.contractCall]:{vmVersion:[ln.FATE_2,ln.FATE,ln.SOPHIA_IMPROVEMENTS_LIMA,ln.SOPHIA_IMPROVEMENTS_FORTUNA,ln.SOPHIA,ln.SOPHIA_IMPROVEMENTS_MINERVA],abiVersion:[fn.FATE,fn.SOPHIA]},[An.oracleRegister]:{vmVersion:[],abiVersion:[fn.NO_ABI,fn.SOPHIA]}}},dn={10:An.account,[zt]:An.signed,12:An.spend,32:An.nameClaim,33:An.namePreClaim,34:An.nameUpdate,35:An.nameRevoke,36:An.nameTransfer,40:An.contract,42:An.contractCreate,43:An.contractCall,41:An.contractCallResult,22:An.oracleRegister,25:An.oracleExtend,23:An.oracleQuery,24:An.oracleResponse,50:An.channelCreate,53:An.channelCloseMutual,54:An.channelCloseSolo,55:An.channelSlash,[Vt]:An.channelForceProgress,51:An.channelDeposit,52:An.channelWithdraw,56:An.channelSettle,57:An.channelOffChain,58:An.channel,59:An.channelSnapshotSolo,[Jt]:An.channelOffChainUpdateTransfer,[Wt]:An.channelOffChainUpdateDeposit,[$t]:An.channelOffChainUpdateWithdrawal,[Xt]:An.channelOffChainCreateContract,[Zt]:An.channelOffChainCallContract,[en]:An.channelReconnect,60:An.proofOfInclusion,62:An.stateTrees,63:An.merklePatriciaTree,64:An.merklePatriciaTreeValue,[tn]:An.contractsTree,[nn]:An.contractCallsTree,[rn]:An.channelsTree,[on]:An.nameserviceTree,[an]:An.oraclesTree,[sn]:An.accountsTree,80:An.gaAttach,81:An.gaMeta,82:An.payingFor,70:An.sophiaByteCode},gn={int:"int",amount:"amount",id:"id",ids:"ids",string:"string",binary:"binary",rlpBinary:"rlpBinary",rlpBinaries:"rlpBinaries",rawBinary:"rawBinary",bool:"bool",hex:"hex",signatures:"signatures",pointers:"pointers",offChainUpdates:"offChainUpdates",callStack:"callStack",proofOfInclusion:"proofOfInclusion",mptrees:"mptrees",callReturnType:"callReturnType",ctVersion:"ctVersion",sophiaCodeTypeInfo:"sophiaCodeTypeInfo",payload:"payload",any:"any",stateTree:"stateTree"},yn=15e3,mn=20,In=2e4,vn=3,wn=e=>{const t={[An.channelForceProgress]:30,[An.channelOffChain]:0,[An.channelOffChainCallContract]:0,[An.channelOffChainCreateContract]:0,[An.channelOffChainUpdateDeposit]:0,[An.channelOffChainUpdateWithdrawal]:0,[An.channelOffChainUpdateTransfer]:0,[An.contractCreate]:5,[An.contractCall]:12,[An.gaAttach]:5,[An.gaMeta]:5,[An.payingFor]:.2}[e]||1;return new(E())(t*yn)},En=(e,t,n)=>{let{relativeTtl:r,innerTxSize:o}=n;switch(e){case An.oracleRegister:case An.oracleExtend:case An.oracleQuery:case An.oracleResponse:return new(E())(t).times(mn).plus(Math.ceil(32e3*r/Math.floor(525600/vn)));case An.gaMeta:case An.payingFor:return new(E())(t).minus(o).times(mn);default:return new(E())(t).times(mn)}},Bn={account:1,name:2,commitment:3,oracle:4,contract:5,channel:6},Cn={ak:Bn.account,nm:Bn.name,cm:Bn.commitment,ok:Bn.oracle,ct:Bn.contract,ch:Bn.channel},bn=(Qn=Cn,Object.entries(Qn).reduce(((e,t)=>{let[n,r]=t;return(e[r]=n)&&e}),{}));var Qn;const xn=[cn("tag",gn.int),cn("VSN",gn.int)],_n=[...xn,cn("sourceCodeHash",gn.rawBinary),cn("typeInfo",gn.sophiaCodeTypeInfo),cn("byteCode",gn.rawBinary),cn("compilerVersion",gn.string),cn("payable",gn.bool)],Sn=[...xn,cn("flags",gn.int),cn("nonce",gn.int),cn("balance",gn.int),cn("gaContract",gn.id,["ct","nm"]),cn("gaAuthFun",gn.binary,"cb")],Tn=[...xn,cn("senderId",gn.id,"ak"),cn("recipientId",gn.id,["ak","nm"]),cn("amount",gn.amount),cn("fee",gn.int),cn("ttl",gn.int),cn("nonce",gn.int),cn("payload",gn.payload)],On=[...xn,cn("signatures",gn.signatures),cn("encodedTx",gn.rlpBinary)],Nn=[...xn,cn("accountId",gn.id,"ak"),cn("nonce",gn.int),cn("commitmentId",gn.id,"cm"),cn("fee",gn.int),cn("ttl",gn.int)],kn=[...xn,cn("accountId",gn.id,"ak"),cn("nonce",gn.int),cn("name",class extends vt{static serialize(e){return Wr(e),It.from(e)}static deserialize(e){return e.toString()}}),cn("nameSalt",gn.int),cn("nameFee",class extends vt{static serialize(e,t){var n;let{name:r}=t;const o=Zr(r);if(null!==(n=e)&&void 0!==n||(e=o),o.gt(e))throw new ee(e,o);return Yr(e)}static deserialize(e){return Kr(e)}}),cn("fee",gn.int),cn("ttl",gn.int)],Dn=[...xn,cn("accountId",gn.id,"ak"),cn("nonce",gn.int),cn("nameId",wt),cn("nameTtl",gn.int),cn("pointers",gn.pointers),cn("clientTtl",gn.int),cn("fee",gn.int),cn("ttl",gn.int)],Fn=[...xn,cn("accountId",gn.id,"ak"),cn("nonce",gn.int),cn("nameId",wt),cn("recipientId",gn.id,["ak","nm"]),cn("fee",gn.int),cn("ttl",gn.int)],Un=[...xn,cn("accountId",gn.id,"ak"),cn("nonce",gn.int),cn("nameId",wt),cn("fee",gn.int),cn("ttl",gn.int)],Rn=[...xn,cn("owner",gn.id,"ak"),cn("ctVersion",gn.int),cn("code",gn.binary,"cb"),cn("log",gn.binary,"cb"),cn("active",gn.bool),cn("referers",gn.ids,"ak"),cn("deposit",Et)],Pn=[...xn,cn("ownerId",gn.id,"ak"),cn("nonce",gn.int),cn("code",gn.binary,"cb"),cn("authFun",gn.rawBinary),cn("ctVersion",gn.ctVersion),cn("fee",gn.int),cn("ttl",gn.int),cn("gas",gn.int),cn("gasPrice",gn.int),cn("callData",gn.binary,"cb")],Mn=[...xn,cn("gaId",gn.id,"ak"),cn("authData",gn.binary,"cb"),cn("abiVersion",gn.int),cn("fee",gn.int),cn("gas",gn.int),cn("gasPrice",gn.int),cn("tx",gn.rlpBinary)],jn=[...xn,cn("payerId",gn.id,"ak"),cn("nonce",gn.int),cn("fee",gn.int),cn("tx",gn.rlpBinary)],Ln=[...xn,cn("ownerId",gn.id,"ak"),cn("nonce",gn.int),cn("code",gn.binary,"cb"),cn("ctVersion",gn.ctVersion),cn("fee",gn.int),cn("ttl",gn.int),cn("deposit",Et),cn("amount",gn.amount),cn("gas",gn.int),cn("gasPrice",gn.int),cn("callData",gn.binary,"cb")],Gn=[...xn,cn("callerId",gn.id,"ak"),cn("nonce",gn.int),cn("contractId",gn.id,["ct","nm"]),cn("abiVersion",gn.int),cn("fee",gn.int),cn("ttl",gn.int),cn("amount",gn.amount),cn("gas",gn.int),cn("gasPrice",gn.int),cn("callData",gn.binary,"cb")],Hn=[...xn,cn("callerId",gn.id,"ak"),cn("callerNonce",gn.int),cn("height",gn.int),cn("contractId",gn.id,"ct"),cn("gasPrice",gn.int),cn("gasUsed",gn.int),cn("returnValue",gn.binary,"cb"),cn("returnType",gn.callReturnType),cn("log",gn.rawBinary)],qn=[...xn,cn("accountId",gn.id,"ak"),cn("nonce",gn.int),cn("queryFormat",gn.string),cn("responseFormat",gn.string),cn("queryFee",gn.amount),cn("oracleTtlType",gn.int),cn("oracleTtlValue",gn.int),cn("fee",gn.int),cn("ttl",gn.int),cn("abiVersion",gn.int)],Yn=[...xn,cn("oracleId",gn.id,["ok","nm"]),cn("nonce",gn.int),cn("oracleTtlType",gn.int),cn("oracleTtlValue",gn.int),cn("fee",gn.int),cn("ttl",gn.int)],Kn=[...xn,cn("senderId",gn.id,"ak"),cn("nonce",gn.int),cn("oracleId",gn.id,["ok","nm"]),cn("query",gn.string),cn("queryFee",gn.amount),cn("queryTtlType",gn.int),cn("queryTtlValue",gn.int),cn("responseTtlType",gn.int),cn("responseTtlValue",gn.int),cn("fee",gn.int),cn("ttl",gn.int)],zn=[...xn,cn("oracleId",gn.id,"ok"),cn("nonce",gn.int),cn("queryId",gn.binary,"oq"),cn("response",gn.string),cn("responseTtlType",gn.int),cn("responseTtlValue",gn.int),cn("fee",gn.int),cn("ttl",gn.int)],Vn=[...xn,cn("initiator",gn.id,"ak"),cn("initiatorAmount",gn.int),cn("responder",gn.id,"ak"),cn("responderAmount",gn.int),cn("channelReserve",gn.int),cn("lockPeriod",gn.int),cn("ttl",gn.int),cn("fee",gn.int),cn("initiatorDelegateIds",gn.string),cn("responderDelegateIds",gn.string),cn("stateHash",gn.binary,"st"),cn("nonce",gn.int)],Jn=[...xn,cn("channelId",gn.id,"ch"),cn("fromId",gn.id,"ak"),cn("amount",gn.int),cn("ttl",gn.int),cn("fee",gn.int),cn("stateHash",gn.binary,"st"),cn("round",gn.int),cn("nonce",gn.int)],Wn=[...xn,cn("channelId",gn.id,"ch"),cn("toId",gn.id,"ak"),cn("amount",gn.int),cn("ttl",gn.int),cn("fee",gn.int),cn("stateHash",gn.binary,"st"),cn("round",gn.int),cn("nonce",gn.int)],$n=[...xn,cn("channelId",gn.id,"ch"),cn("fromId",gn.id,"ak"),cn("initiatorAmountFinal",gn.int),cn("responderAmountFinal",gn.int),cn("ttl",gn.int),cn("fee",gn.int),cn("nonce",gn.int)],Xn=[...xn,cn("channelId",gn.id,"ch"),cn("fromId",gn.id,"ak"),cn("payload",gn.binary,"tx"),cn("poi",gn.binary,"pi"),cn("ttl",gn.int),cn("fee",gn.int),cn("nonce",gn.int)],Zn=[...xn,cn("channelId",gn.id,"ch"),cn("fromId",gn.id,"ak"),cn("payload",gn.binary,"tx"),cn("poi",gn.binary,"pi"),cn("ttl",gn.int),cn("fee",gn.int),cn("nonce",gn.int)],er=[...xn,cn("channelId",gn.id,"ch"),cn("fromId",gn.id,"ak"),cn("initiatorAmountFinal",gn.int),cn("responderAmountFinal",gn.int),cn("ttl",gn.int),cn("fee",gn.int),cn("nonce",gn.int)],tr=[...xn,cn("channelId",gn.id,"ch"),cn("fromId",gn.id,"ak"),cn("payload",gn.binary,"tx"),cn("round",gn.int),cn("update",gn.binary,"cb"),cn("stateHash",gn.binary,"st"),cn("offChainTrees",gn.stateTree),cn("ttl",gn.int),cn("fee",gn.int),cn("nonce",gn.int)],nr=[...xn,cn("channelId",gn.id,"ch"),cn("round",gn.int),cn("stateHash",gn.binary,"st")],rr=[...xn,cn("initiator",gn.id,"ak"),cn("responder",gn.id,"ak"),cn("channelAmount",gn.int),cn("initiatorAmount",gn.int),cn("responderAmount",gn.int),cn("channelReserve",gn.int),cn("initiatorDelegateIds",gn.ids),cn("responderDelegateIds",gn.ids),cn("stateHash",gn.hex),cn("round",gn.int),cn("soloRound",gn.int),cn("lockPeriod",gn.int),cn("lockedUntil",gn.int),cn("initiatorAuth",gn.binary,"cb"),cn("responderAuth",gn.binary,"cb")],or=[...xn,cn("channelId",gn.id,"ch"),cn("fromId",gn.id,"ak"),cn("payload",gn.binary,"tx"),cn("ttl",gn.int),cn("fee",gn.int),cn("nonce",gn.int)],ir=[...xn,cn("owner",gn.id,"ak"),cn("ctVersion",gn.int),cn("code",gn.binary,"cb"),cn("deposit",gn.int),cn("callData",gn.binary,"cb")],ar=[...xn,cn("caller",gn.id,"ak"),cn("contract",gn.id,"ct"),cn("abiVersion",gn.int),cn("amount",gn.int),cn("callData",gn.binary,"cb"),cn("callStack",gn.callStack),cn("gasPrice",gn.int),cn("gasLimit",gn.int)],sr=[...xn,cn("channelId",gn.id,"ch"),cn("round",gn.int),cn("role",gn.string),cn("pubkey",gn.id,"ak")],cr=[...xn,cn("from",gn.id,"ak"),cn("to",gn.id,"ak"),cn("amount",gn.int)],ur=[...xn,cn("from",gn.id,"ak"),cn("amount",gn.int)],Ar=[...xn,cn("from",gn.id,"ak"),cn("amount",gn.int)],lr=[...xn,cn("accounts",gn.mptrees),cn("calls",gn.mptrees),cn("channels",gn.mptrees),cn("contracts",gn.mptrees),cn("ns",gn.mptrees),cn("oracles",gn.mptrees)],fr=[...xn,cn("contracts",gn.rlpBinary),cn("calls",gn.rlpBinary),cn("channels",gn.rlpBinary),cn("ns",gn.rlpBinary),cn("oracles",gn.rlpBinary),cn("accounts",gn.rlpBinary)],hr=[...xn,cn("values",gn.rlpBinaries)],pr=[...xn,cn("key",gn.hex),cn("value",gn.rawBinary)],dr=[...xn,cn("contracts",gn.rlpBinary)],gr=[...xn,cn("calls",gn.rlpBinary)],yr=[...xn,cn("channels",gn.rlpBinary)],mr=[...xn,cn("mtree",gn.rlpBinary)],Ir=[...xn,cn("otree",gn.rlpBinary)],vr=[...xn,cn("accounts",gn.rlpBinary)],wr={[An.account]:{2:un(Sn,10)},[An.signed]:{1:un(On,zt)},[An.spend]:{1:un(Tn,12)},[An.namePreClaim]:{1:un(Nn,33)},[An.nameClaim]:{2:un(kn,32)},[An.nameUpdate]:{1:un(Dn,34)},[An.nameTransfer]:{1:un(Fn,36)},[An.nameRevoke]:{1:un(Un,35)},[An.contract]:{1:un(Rn,40)},[An.contractCreate]:{1:un(Ln,42)},[An.contractCall]:{1:un(Gn,43)},[An.contractCallResult]:{1:un(Hn,41)},[An.oracleRegister]:{1:un(qn,22)},[An.oracleExtend]:{1:un(Yn,25)},[An.oracleQuery]:{1:un(Kn,23)},[An.oracleResponse]:{1:un(zn,24)},[An.channelCreate]:{2:un(Vn,50)},[An.channelCloseMutual]:{1:un($n,53)},[An.channelCloseSolo]:{1:un(Xn,54)},[An.channelSlash]:{1:un(Zn,55)},[An.channelDeposit]:{1:un(Jn,51)},[An.channelWithdraw]:{1:un(Wn,52)},[An.channelSettle]:{1:un(er,56)},[An.channelForceProgress]:{1:un(tr,Vt)},[An.channelOffChain]:{2:un(nr,57)},[An.channel]:{3:un(rr,58)},[An.channelSnapshotSolo]:{1:un(or,59)},[An.channelOffChainUpdateTransfer]:{1:un(cr,Jt)},[An.channelOffChainUpdateDeposit]:{1:un(ur,Wt)},[An.channelOffChainUpdateWithdrawal]:{1:un(Ar,$t)},[An.channelOffChainCreateContract]:{1:un(ir,Xt)},[An.channelOffChainCallContract]:{1:un(ar,Zt)},[An.channelReconnect]:{1:un(sr,en)},[An.proofOfInclusion]:{1:un(lr,60)},[An.stateTrees]:{1:un(fr,62)},[An.merklePatriciaTree]:{1:un(hr,63)},[An.merklePatriciaTreeValue]:{1:un(pr,64)},[An.contractsTree]:{1:un(dr,tn)},[An.contractCallsTree]:{1:un(gr,nn)},[An.channelsTree]:{1:un(yr,rn)},[An.nameserviceTree]:{1:un(mr,on)},[An.oraclesTree]:{1:un(Ir,an)},[An.accountsTree]:{1:un(vr,sn)},[An.gaAttach]:{1:un(Pn,80)},[An.gaMeta]:{2:un(Mn,81)},[An.payingFor]:{1:un(jn,82)}},Er={10:{2:un(Sn,10)},[zt]:{1:un(On,zt)},12:{1:un(Tn,12)},33:{1:un(Nn,33)},32:{2:un(kn,32)},34:{1:un(Dn,34)},36:{1:un(Fn,36)},35:{1:un(Un,35)},40:{1:un(Rn,40)},42:{1:un(Ln,42)},43:{1:un(Gn,43)},41:{1:un(Hn,41)},22:{1:un(qn,22)},25:{1:un(Yn,25)},23:{1:un(Kn,23)},24:{1:un(zn,24)},50:{2:un(Vn,50)},53:{1:un($n,53)},54:{1:un(Xn,54)},55:{1:un(Zn,55)},51:{1:un(Jn,51)},52:{1:un(Wn,52)},56:{1:un(er,56)},57:{2:un(nr,57)},58:{3:un(rr,58)},59:{1:un(or,59)},[Jt]:{1:un(cr,Jt)},[Wt]:{1:un(ur,Wt)},[$t]:{1:un(Ar,$t)},[Xt]:{1:un(ir,Xt)},[Zt]:{1:un(ar,Zt)},[en]:{1:un(sr,en)},60:{1:un(lr,60)},62:{1:un(fr,62)},63:{1:un(hr,63)},64:{1:un(pr,64)},[tn]:{1:un(dr,tn)},[nn]:{1:un(gr,nn)},[rn]:{1:un(yr,rn)},[on]:{1:un(mr,on)},[an]:{1:un(Ir,an)},[sn]:{1:un(vr,sn)},80:{1:un(Pn,80)},81:{2:un(Mn,81)},82:{1:un(jn,82)},[Vt]:{1:un(tr,Vt)},70:{3:un(_n,70)}},Br=e=>["number","object","string","bigint"].includes(typeof e)&&(!isNaN(e)||Number.isInteger(e)||E().isBigNumber(e)),Cr=e=>e.integerValue(E().ROUND_CEIL);var br=n(48764).Buffer;const Qr=co;function xr(e,t){return Gr(mt(br.from([...Lr(e,"ak"),...ft(t)])),"ct")}function _r(e,t,n){return Gr(mt(br.from([...Lr(e,"ak"),...function(e){const t=ft(e,!0);return br.concat([br.alloc(32-t.length),t])}(t),...Lr(n,"ok")])),"oq")}function Sr(e){return br.from(e.toString(16).padStart(64,"0"),"hex")}function Tr(e){return Wr(e),Gr(mt(e.toLowerCase()),"nm")}function Or(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qr();return Wr(e),Gr(mt(br.concat([br.from(e.toLowerCase()),Sr(t)])),"cm")}const Nr=["ba","cb","or","ov","pi","ss","cs","ck","cv","st","tx"],kr=["ak","bf","bs","bx","ch","cm","ct","kh","mh","nm","ok","oq","pp","sg","th"],Dr={ak:32,ct:32,ok:32};function Fr(e,t){if(Dr[t]&&e.length!==Dr[t])throw new Ge(`Payload should be ${Dr[t]} bytes, got ${e.length} instead`)}const Ur=e=>so(so(e)).slice(0,4),Rr=e=>{const t=br.from(e);return br.concat([t,Ur(t)])};function Pr(e){const t=e.slice(0,-4);if(!Ur(t).equals(e.slice(-4)))throw new Qe;return t}const Mr={encode:e=>Rr(e).toString("base64"),decode:e=>Pr(br.from(e,"base64"))},jr={encode:e=>dt().encode(Rr(e)),decode:e=>Pr(dt().decode(e))};function Lr(e,t){if("string"!=typeof e)throw new je(`Encoded should be a string, got ${e} instead`);const[n,r,o]=e.split("_");if(!r)throw new je(`Encoded string missing payload: ${e}`);if(o)throw new je(`Encoded string have extra parts: ${e}`);if(t&&t!==n)throw new Je(n,t);const i=Nr.includes(n)&&Mr.decode||kr.includes(n)&&jr.decode;if(!i)throw new je(`Encoded string have unknown type: ${n}`);const a=i(r);return Fr(a,n),a}function Gr(e,t){const n=Nr.includes(t)&&Mr.encode||kr.includes(t)&&jr.encode;if(!n)throw new Le(`Unknown type: ${t}`);return Fr(e,t),`${t}_${n(e)}`}function Hr(e){if("string"!=typeof e)throw new D("hashId","a string",e);const t=e.slice(0,2),n=Cn[t];if(!n)throw new Xe(t);return br.from([...ft(n),...Lr(e,t)])}function qr(e){const t=br.from(e).readUIntBE(0,1),n=bn[t];if(!n)throw new We(t);return Gr(e.slice(1,e.length),n)}function Yr(e){return ft(e,!0)}function Kr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:br.from([]);return new(E())(br.from(e).toString("hex"),16).toString(10)}function zr(e){return e.map((e=>[ft(e.key),Hr(e.id)]))}function Vr(e){return e.map((e=>{let[t,n]=e;return Object.assign({key:t.toString(),id:qr(n)})}))}const Jr=".chain";function Wr(e){if(!e||"string"!=typeof e)throw new M("Name must be a string");if(!e.endsWith(Jr))throw new M(`Name should end with .chain: ${e}`)}function $r(e){try{return Wr(e),!0}catch(e){return!1}}function Xr(e){Lr(e);const t=e.substr(0,2);return qt[t]||(()=>{throw new Ve(t)})()}function Zr(e){Wr(e);const t=e.length-Jr.length;return Yt[Math.min(t,Gt)]}function eo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jt;if(Number(n)!==n||n%1==0)throw new qe(`Increment must be float. Current increment ${n}`);if(n<jt)throw new qe(`minimum increment percentage is ${jt}`);return Cr(E()(null!=t?t:Zr(e)).times(E()(jt).plus(1)))}function to(e,t){Wr(e);const n=e.length-Jr.length;return(n<=4&&Kt[4]||n<=8&&Kt[8]||n<=12&&Kt[12]||Kt[13]).plus(t).toString(10)}function no(e){return Wr(e),e.length<13+Jr.length}var ro=n(48764).Buffer;const oo=m().ModeOfOperation.ecb;function io(e){const t=g().sign.keyPair.fromSecretKey(ht(e));return Gr(ro.from(t.publicKey),"ak")}function ao(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ak";try{return Lr(e,t),!0}catch(e){return!1}}function so(e){return v()("sha256").update(e).digest()}function co(){return Math.floor(Math.random()*Math.floor(Number.MAX_SAFE_INTEGER))}function uo(e){const t=ro.allocUnsafe(4);return t.writeUInt32BE(e),t.slice(t.findIndex((e=>0!==e)))}function Ao(e,t){const n=Lr(e,"ak");return Gr(mt(ro.concat([n,uo(t)])),"ct")}function lo(e){return g().sign.keyPair.fromSecretKey(e)}function fo(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=g().sign.keyPair(),n=ro.from(t.publicKey),r=ro.from(t.secretKey);return e?{publicKey:n,secretKey:r}:{publicKey:Gr(n,"ak"),secretKey:r.toString("hex")}}function ho(e,t){const n=so(e);return new oo(n).encrypt(t)}function po(e,t){const n=ro.from(t),r=so(e),o=new oo(r);return ro.from(o.decrypt(n))}function go(e,t){return g().sign.detached(ro.from(e),ro.from(t))}function yo(e,t,n){return g().sign.detached.verify(new Uint8Array(e),t,n)}function mo(e){const t=ro.from("aeternity Signed Message:\n","utf8"),n=ro.from(e,"utf8");if(n.length>=253)throw new V("Message too long");return mt(ro.concat([ro.from([t.length]),t,ro.from([n.length]),n]))}function Io(e,t){return go(mo(e),t)}function vo(e,t,n){return yo(mo(e),t,n)}function wo(e,t){const n=ro.from("TheMessage");return yo(n,go(n,e),t)}var Eo,Bo={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},Co=new Uint8Array(16);function bo(){if(!Eo&&!(Eo="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 Eo(Co)}for(var Qo=[],xo=0;xo<256;++xo)Qo.push((xo+256).toString(16).substr(1));var _o=function(e,t,n){if(Bo.randomUUID&&!t&&!e)return Bo.randomUUID();var r=(e=e||{}).random||(e.rng||bo)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(Qo[e[t+0]]+Qo[e[t+1]]+Qo[e[t+2]]+Qo[e[t+3]]+"-"+Qo[e[t+4]]+Qo[e[t+5]]+"-"+Qo[e[t+6]]+Qo[e[t+7]]+"-"+Qo[e[t+8]]+Qo[e[t+9]]+"-"+Qo[e[t+10]]+Qo[e[t+11]]+Qo[e[t+12]]+Qo[e[t+13]]+Qo[e[t+14]]+Qo[e[t+15]]).toLowerCase()}(r)},So=n(19250),To=n(48764).Buffer;const Oo={crypto:{secret_type:"ed25519",symmetric_alg:"xsalsa20-poly1305",kdf:"argon2id",kdf_params:{memlimit_kib:65536,opslimit:3,parallelism:1}}},No={argon2id:ko};async function ko(e,t,n){const{memlimit_kib:r,opslimit:o}=n.kdf_params,i=(await(0,So.hash)({hashLen:32,pass:e,salt:t,time:o,mem:r,type:So.ArgonType.Argon2id})).hash;return To.from(i)}const Do={"xsalsa20-poly1305":{encrypt:function(e){let{plaintext:t,key:n,nonce:r}=e;return g().secretbox(t,r,n)},decrypt:function(e){let{ciphertext:t,key:n,nonce:r}=e;const o=g().secretbox.open(t,r,n);if(!o)throw new Se("Invalid password or nonce");return o}}};function Fo(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Oo.crypto.symmetric_alg;if(!Do[r])throw new Ne(r);return Do[r].encrypt({plaintext:e,nonce:n,key:t})}async function Uo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{kdf_params:Oo.crypto.kdf_params,kdf:Oo.crypto.kdf};if(!t)throw new D("nonce","provided",t);if(null==e)throw new D("password","provided",e);if(!Object.prototype.hasOwnProperty.call(No,n.kdf))throw new Ne(n.kdf);return No[n.kdf](e,t,n)}function Ro(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=Object.assign({},Oo.crypto,i);return Object.assign({name:e,version:1,public_key:Po(n),id:_o()},{crypto:Object.assign({secret_type:a.secret_type,symmetric_alg:a.symmetric_alg,ciphertext:To.from(Fo(To.from(n),t,r,a.symmetric_alg)).toString("hex"),cipher_params:{nonce:To.from(r).toString("hex")}},{kdf:a.kdf,kdf_params:{...a.kdf_params,salt:To.from(o).toString("hex")}})})}function Po(e){const t=g().sign.keyPair.fromSecretKey(ht(e));return Gr(To.from(t.publicKey),"ak")}async function Mo(e,t){Lo(t);const n=Uint8Array.from(ht(t.crypto.cipher_params.nonce)),r=Uint8Array.from(ht(t.crypto.kdf_params.salt)),o=t.crypto.kdf_params,i=t.crypto.kdf,a=await function(e,t,n,r){if(!Do[r])throw new Ne(r);return Do[r].decrypt({ciphertext:e,nonce:n,key:t})}(Uint8Array.from(ht(t.crypto.ciphertext)),await Uo(e,r,{kdf:i,kdf_params:o}),n,t.crypto.symmetric_alg);if(!a)throw new Se("Invalid password");return 64===To.from(a).length?To.from(a).toString("hex"):To.from(a).toString("utf-8")}async function jo(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:g().randomBytes(24),o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:g().randomBytes(16),i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=Object.assign({},Oo.crypto,i);return Ro(e,await Uo(t,o,a),"string"==typeof n?To.from(n,"hex"):n,r,o,a)}function Lo(e){const t=["crypto","id","version","public_key"].filter((t=>!Object.prototype.hasOwnProperty.call(e,t)));if(t.length)throw new _e(`Invalid key file format. Require properties: ${t}`);const n=["cipher_params","ciphertext","symmetric_alg","kdf","kdf_params"].filter((t=>!Object.prototype.hasOwnProperty.call(e.crypto,t)));if(n.length)throw new _e(`Invalid key file format. Require properties: ${n}`);return!0}var Go=n(6636);const Ho={AE:"ae",MILI_AE:"miliAE",MICRO_AE:"microAE",NANO_AE:"nanoAE",PICO_AE:"picoAE",FEMTO_AE:"femtoAE",AETTOS:"aettos"},qo={[Ho.AE]:0,[Ho.MILI_AE]:-3,[Ho.MICRO_AE]:-6,[Ho.NANO_AE]:-9,[Ho.PICO_AE]:-12,[Ho.FEMTO_AE]:-15,[Ho.AETTOS]:-18},Yo=function(e){let{denomination:t=Ho.AETTOS}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return zo(e,{denomination:t,targetDenomination:Ho.AE})},Ko=function(e){let{denomination:t=Ho.AE}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return zo(e,{denomination:t})},zo=function(e){let{denomination:t=Ho.AETTOS,targetDenomination:n=Ho.AETTOS}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Object.values(Ho);if(!r.includes(t))throw new P(`Invalid denomination: ${t}`);if(!r.includes(n))throw new P(`Invalid target denomination: ${n}`);if(!Br(e))throw new D("value","a number",e);return new(E())(e).shiftedBy(qo[t]-qo[n]).toFixed()},Vo=[{name:"exa",magnitude:18},{name:"giga",magnitude:9},{name:"",magnitude:0},{name:"pico",magnitude:-12}],Jo=e=>Vo.reduce(((t,n)=>Math.abs(n.magnitude-e)<Math.abs(t.magnitude-e)?n:t)),Wo=e=>{var t;return null!==(t=Vo.find((t=>t.magnitude<=e)))&&void 0!==t?t:Vo[Vo.length-1]};var $o,Xo=e=>{var t;const n=new(E())(e),r=null!==(t=n.e)&&void 0!==t?t:0,{name:o,magnitude:i}=(r<0?Jo:Wo)(r);return`${n.shiftedBy(-i).precision(9+Math.min(r-i,0)).toFixed()}${""!==o?" ":""}${o}`},Zo=n(48764).Buffer;!function(e){e[e.Branch=0]="Branch",e[e.Extension=1]="Extension",e[e.Leaf=2]="Leaf"}($o||($o={}));class ei{static nodeHash(e){return Zo.from(mt((0,Go.encode)(e))).toString("hex")}constructor(e){if(this.rootHash=e[0].toString("hex"),this.nodes=Object.fromEntries(e[1].map((e=>[e[0].toString("hex"),e[1]]))),void 0===this.nodes[this.rootHash])throw new Oe("Can't find a node by root hash");Object.entries(this.nodes).forEach((e=>{let[t,n]=e;if(ei.nodeHash(n)!==t)throw new Te;const{type:r,payload:o}=ei.parseNode(n);switch(r){case $o.Branch:o.slice(0,16).filter((e=>e.length)).forEach((e=>{if(void 0===this.nodes[e.toString("hex")])throw new Oe("Can't find a node by hash in branch node")}));break;case $o.Extension:if(void 0===this.nodes[o[0].toString("hex")])throw new Oe("Can't find a node by hash in extension node")}}))}isEqual(e){return this.rootHash===e.rootHash}static parseNode(e){switch(e.length){case 17:return{type:$o.Branch,payload:e,path:null};case 2:{const t=e[0].toString("hex"),n=parseInt(t[0],16);if(n>3)throw new Fe(n);const r=n<=1?$o.Extension:$o.Leaf,o=[0,2].includes(n)?2:1;return{type:r,payload:[e[1]],path:t.slice(o)}}default:throw new De(e.length)}}serialize(){return[Zo.from(this.rootHash,"hex"),Object.entries(this.nodes).map((e=>{let[t,n]=e;return[Zo.from(t,"hex"),n]}))]}get(e){let t=this.rootHash;for(;;){const{type:n,payload:r,path:o}=ei.parseNode(this.nodes[t]);switch(n){case $o.Branch:if(0===e.length)return r[16];t=r[parseInt(e[0],16)].toString("hex"),e=e.substr(1);break;case $o.Extension:if(e.substr(0,null==o?void 0:o.length)!==o)return;t=r[0].toString("hex"),e=e.substr(o.length);break;case $o.Leaf:if(o!==e)return;return r[0]}}}}var ti=n(48764).Buffer;const ni="delta";function ri(e,t,n){if(!e)return"";switch(t){case gn.ctVersion:{const[t,,n]=e;return{vmVersion:Kr(ti.from([t])),abiVersion:Kr(ti.from([n]))}}case gn.amount:case gn.int:return Kr(e);case gn.id:return qr(e);case gn.ids:return e.map(qr);case gn.bool:return 1===e[0];case gn.binary:return Gr(e,n);case gn.stateTree:return Gr(e,"ss");case gn.string:return e.toString();case gn.payload:return Gr(e,"ba");case gn.pointers:return Vr(e);case gn.rlpBinary:return gi(e,!0);case gn.rlpBinaries:return e.map((e=>gi(e,!0)));case gn.rawBinary:return e;case gn.hex:return e.toString("hex");case gn.offChainUpdates:return e.map((e=>gi(e,!0)));case gn.callStack:return[Kr(e)];case gn.mptrees:return e.map((e=>new ei(e)));case gn.callReturnType:switch(Kr(e)){case"0":return"ok";case"1":return"error";case"2":return"revert";default:return e}case gn.sophiaCodeTypeInfo:return e.reduce(((e,t)=>{let[n,r,o,i]=t;return{...e,[r.toString()]:{funHash:n,argType:o,outType:i}}}),{});default:return t.prototype instanceof vt?t.deserialize(e):e}}function oi(e,t,n,r){var o;switch(t){case gn.amount:case gn.int:return Yr(e);case gn.id:return Hr(e);case gn.ids:return e.map(Hr);case gn.bool:return ti.from([e?1:0]);case gn.binary:return Lr(e,n);case gn.stateTree:return Lr(e,"ss");case gn.hex:return ti.from(e,"hex");case gn.signatures:return e.map(ti.from);case gn.payload:return"string"==typeof e&&"ba"===e.split("_")[0]?Lr(e,"ba"):ft(e);case gn.string:return ft(e);case gn.pointers:return zr(e);case gn.rlpBinary:return null!==(o=e.rlpEncoded)&&void 0!==o?o:e;case gn.mptrees:return e.map((e=>e.serialize()));case gn.ctVersion:return ti.from([...ft(e.vmVersion),0,...ft(e.abiVersion)]);case gn.callReturnType:switch(e){case"ok":return Yr(0);case"error":return Yr(1);case"revert":return Yr(2);default:return e}default:return t.prototype instanceof vt?t.serialize(e,r):e}}function ii(e,t,n){if(null==e)return"Field is required";switch(t){case gn.amount:case gn.int:return isNaN(e)&&!E().isBigNumber(e)?`${e} is not of type Number or BigNumber`:new(E())(e).lt(0)?`${e} must be >= 0`:void 0;case gn.id:return(Array.isArray(n)?n:[n]).includes(e.split("_")[0])?void 0:`'${e}' prefix doesn't match expected prefix '${n}'`;case gn.ctVersion:return null!=e&&e.abiVersion&&null!=e&&e.vmVersion?void 0:'Value must be an object with "vmVersion" and "abiVersion" fields';case gn.pointers:if(!Array.isArray(e))return"Value must be of type Array";if(e.some((e=>!(null!=e&&e.key&&null!=e&&e.id))))return'Value must contains only object\'s like \'{key: "account_pubkey", id: "ak_lkamsflkalsdalksdlasdlasdlamd"}\'';if(e.length>32)return`Expected 32 pointers or less, got ${e.length} instead`}}function ai(e,t){let{denomination:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=t.filter((e=>{let[t,n]=e;return n===gn.amount})).reduce(((t,r)=>{let[o]=r;return{...e,[o]:zo(e[o],{denomination:n})}}),e);const r=t.map((e=>{let[t]=e;return t}));return Object.entries(e).reduce(((e,t)=>{let[n,o]=t;return r.includes(n)&&(e[n]=o),["oracleTtl","queryTtl","responseTtl"].includes(n)&&(e[`${n}Type`]=o.type===ni?0:1,e[`${n}Value`]=o.value),e}),{})}function si(e,t){const n={[An.oracleRegister]:"oracleTtl",[An.oracleExtend]:"oracleTtl",[An.oracleQuery]:"queryTtl",[An.oracleResponse]:"responseTtl"}[t];return e[n]||e[`${n}Value`]?e[`${n}Value`]||e[n].value:1}function ci(e,t){let{gas:n=0,params:r,vsn:o}=t;const i=E()(1e9);if(!r)return E()(In).times(i).toString(10);let a=ui(e,{params:{...r,fee:0},multiplier:i,gas:n,vsn:o}),s=E()(0);for(;!a.eq(s);)a=ui(e,{params:{...r,fee:a},multiplier:i,gas:n,vsn:o}),s=a;return s.toString(10)}function ui(e,t){let{params:n,gas:r=0,multiplier:o,vsn:i}=t;const{rlpEncoded:a}=di({...n},e,{vsn:i}),s=a.length;return wn(e).plus(En(e,s,{relativeTtl:si(n,e),innerTxSize:[An.gaMeta,An.payingFor].includes(e)?n.tx.tx.encodedTx.rlpEncoded.length:0})).times(o)}function Ai(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,{gas:n=0,params:r,showWarning:o=!0,vsn:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!r&&o&&console.warn(`Can't build transaction fee, we will use DEFAULT_FEE(${In})`),e||ci(t,{params:r,gas:n,vsn:i})}function li(e,t,n){let{excludeKeys:r=[]}=n;return Object.fromEntries(t.filter((e=>{let[t]=e;return!r.includes(t)&&!["payload","nameFee","deposit"].includes(t)})).map((t=>{let[n,r,o]=t;return[n,ii(e[n],r,o)]})).filter((e=>{let[,t]=e;return t})))}function fi(e,t){let{excludeKeys:n=[],denomination:r=Ho.AETTOS}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t.filter((e=>{let[t]=e;return!n.includes(t)})),i=li(e=ai(e,o,{denomination:r}),t,{excludeKeys:n});if(Object.keys(i).length)throw new ze("Transaction build error. "+JSON.stringify(i));return o.map((t=>{let[n,r,o]=t;return oi(e[n],r,o,e)}))}function hi(e,t){return t.reduce(((t,n,r)=>{let[o,i,a]=n;return Object.assign(t,{[o]:ri(e[r],i,a)})}),{})}const pi=e=>{let{vsn:t,objId:n,type:r}=e;const o=!!n,i=o?n:r,a=o?Er:wr;if(!a[i])throw new $e(`Transaction ${o?"deserialization":"serialization"} not implemented for ${o?"tag "+n:r}`);if(!a[i][t])throw new $e(`Transaction ${o?"deserialization":"serialization"} not implemented for ${o?"tag "+n:r} version ${t}`);return a[i][t]};function di(e,t){let{excludeKeys:n=[],prefix:r="tx",vsn:o=Bt,denomination:i=Ho.AETTOS}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[a,s]=pi({type:t,vsn:o}),c=fi({...e,VSN:o,tag:s},a,{excludeKeys:n,denomination:e.denomination||i}).filter((e=>void 0!==e)),u=(0,Go.encode)(c),A=Gr(u,r);return{tx:A,rlpEncoded:u,binary:c,txObject:hi(c,a)}}function gi(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"tx";const r=t?e:Lr(e,n),o=(0,Go.decode)(r),i=Kr(o[0]),a=Kr(o[1]),[s]=pi({objId:i,vsn:a});return{txType:dn[i],tx:hi(o,s),rlpEncoded:r,binary:o}}function yi(e){return Gr(mt("string"==typeof e&&e.startsWith("tx_")?Lr(e,"tx"):e),"th")}var mi={calculateMinFee:ci,calculateFee:Ai,unpackTx:gi,unpackRawTx:hi,buildTx:di,buildRawTx:fi,validateParams:li,buildTxHash:yi},Ii=n(82182),vi=n(30246),wi=n(48764).Buffer;const Ei=wi.from("ed25519 seed"),Bi=2147483648,Ci=e=>wi.from(e).toString("hex");function bi(e,t){const n=""===e?[]:(0,vi.fromString)(e).toPathArray();return n.forEach(((e,t)=>{if(e<Bi)throw new ke(`Segment #${t+1} is not hardened`)})),n.reduce(((e,t)=>Ti(e,t)),t)}function Qi(e,t){if(!["m","m/"].includes(e.slice(0,2)))throw new xe;const n=Si(t);return bi(e.slice(2),n)}function xi(e){const{secretKey:t,publicKey:n}=e;return{secretKey:Ci(t),publicKey:Gr(n,"ak")}}function _i(e){return g().sign.keyPair.fromSeed(e)}function Si(e){const t=(0,Ii.full)(e,Ei);return{secretKey:t.slice(0,32),chainCode:t.slice(32)}}function Ti(e,t){let{secretKey:n,chainCode:r}=e;if(t<Bi)throw new Ue(t);const o=wi.allocUnsafe(4);o.writeUInt32BE(t,0);const i=wi.concat([wi.alloc(1,0),wi.from(n),wi.from(o)]),a=(0,Ii.full)(i,r);return{secretKey:a.slice(0,32),chainCode:a.slice(32)}}function Oi(e,t){const n=Qi("m/44h/457h",e);return{secretKey:Ci(ho(t,n.secretKey)),chainCode:Ci(ho(t,n.chainCode))}}function Ni(e,t,n){const r={secretKey:po(t,wi.from(e.secretKey,"hex")),chainCode:po(t,wi.from(e.chainCode,"hex"))};return new Array(n).fill().map(((e,t)=>xi(_i(bi(`${t}h/0h/0h`,r).secretKey))))}const ki=(e,t)=>({...xi(_i(bi(`${t}h/0h/0h`,Qi("m/44h/457h",e)).secretKey)),idx:t});var Di=n(95389),Fi=n.n(Di),Ui=n(85929),Ri=Fi()((0,Ui.required)({methods:{spendTx:Ui.required,namePreclaimTx:Ui.required,nameClaimTx:Ui.required,nameTransferTx:Ui.required,nameUpdateTx:Ui.required,nameRevokeTx:Ui.required,contractCreateTx:Ui.required,contractCallTx:Ui.required,oracleRegisterTx:Ui.required,oracleExtendTx:Ui.required,oraclePostQueryTx:Ui.required,oracleRespondTx:Ui.required,getAccountNonce:Ui.required,channelCloseSoloTx:Ui.required,channelSlashTx:Ui.required,channelSettleTx:Ui.required,channelSnapshotSoloTx:Ui.required,gaAttachTx:Ui.required,getVmVersion:Ui.required,prepareTxParams:Ui.required}}));const Pi=Fi()({deepProps:{Ae:{defaults:{waitMined:!0,verify:!0,_expectedMineRate:18e4,_microBlockCycle:3e3,_maxPollInterval:5e3}}},methods:{_getPollInterval(e){const t={block:this.Ae.defaults._expectedMineRate,microblock:this.Ae.defaults._microBlockCycle}[e];if(!t)throw new Error(`Unknown poll type: ${e}`);return Math.min(t/3,this.Ae.defaults._maxPollInterval)}}},(0,Ui.required)({methods:{sendTransaction:Ui.required,height:Ui.required,awaitHeight:Ui.required,poll:Ui.required,balance:Ui.required,getBalance:Ui.required,tx:Ui.required,getTxInfo:Ui.required,mempool:Ui.required,txDryRun:Ui.required,getAccount:Ui.required}}));var Mi=Pi;function ji(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stamp:t,args:n,instance:r}=arguments.length>1?arguments[1]:void 0;return t.compose.deepConfiguration.AsyncInit.initializers.reduce((async(r,o)=>{if(r=await Promise.resolve(r),"function"==typeof o){const i=await Promise.resolve(o.call(r,e,{stamp:t,args:n,instance:r}));return void 0===i?r:i}return r}),r)}var Li=Fi()({deepConf:{AsyncInit:{initializers:[]}},composers(e){let{stamp:t,composables:n}=e;t.compose.deepConfiguration.AsyncInit.initializers=n.map((e=>{var t,n,r;return(null==e||null===(t=e.compose)||void 0===t||null===(n=t.deepConfiguration)||void 0===n||null===(r=n.AsyncInit)||void 0===r?void 0:r.initializers)||(e.compose||e).initializers||[]})).flat(1/0).filter(((e,t,n)=>!n.slice(0,t).includes(e))).filter((e=>e!==ji)),t.compose.initializers=[ji]}}),Gi=n(89356),Hi=n(63263),qi=n(30699),Yi=n(58377),Ki=n(28834),zi=n(13038),Vi=n(32752),Ji=n(44341);function Wi(e,t,n){return t in e?Ji(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $i(e,t){var n=Gi(e);if(Hi){var r=Hi(e);t&&(r=qi(r).call(r,(function(t){return Yi(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n,r,o=null!=arguments[t]?arguments[t]:{};t%2?Ki(n=$i(Object(o),!0)).call(n,(function(t){Wi(e,t,o[t])})):zi?Vi(e,zi(o)):Ki(r=$i(Object(o))).call(r,(function(t){Ji(e,t,Yi(o,t))}))}return e}var Zi=n(51942),ea=n.n(Zi),ta=n(29828),na=n.n(ta),ra=n(8575),oa=n(51446),ia=n(19996),aa=n(78363),sa=n(95238),ca=n(53592);function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Aa(e,t){var n;if(e){if("string"==typeof e)return ua(e,t);var r=sa(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?ca(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ua(e,t):void 0}}function la(e,t){var n=void 0!==oa&&ia(e)||e["@@iterator"];if(!n){if(aa(e)||(n=Aa(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}var fa=n(23882);function ha(e){return ha="function"==typeof oa&&"symbol"==typeof fa?function(e){return typeof e}:function(e){return e&&"function"==typeof oa&&e.constructor===oa&&e!==oa.prototype?"symbol":typeof e},ha(e)}function pa(e,t){return function(e){if(aa(e))return e}(e)||function(e,t){var n=null==e?null:void 0!==oa&&ia(e)||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||Aa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var da=n(69798);function ga(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):da.resolve(c).then(r,o)}function ya(e){return function(){var t=this,n=arguments;return new da((function(r,o){var i=e.apply(t,n);function a(e){ga(i,r,o,a,s,"next",e)}function s(e){ga(i,r,o,a,s,"throw",e)}a(void 0)}))}}var ma=n(63109),Ia=n.n(ma),va=n(78580),wa=n.n(va),Ea=n(72119),Ba=n.n(Ea),Ca=n(66419),ba=n.n(Ca),Qa=n(59340),xa=n.n(Qa),_a=n(2991),Sa=n.n(_a),Ta=n(86902),Oa=n.n(Ta),Na=n(77766),ka=n.n(Na),Da=n(26295),Fa=n.n(Da),Ua=n(20116),Ra=n.n(Ua),Pa=(n(31905),n(80129)),Ma=n.n(Pa),ja=n(58050),La=n.n(ja);const Ga="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:Ha,Blob:qa,File:Ya}=Ga;function Ka(e){return function(e){if(aa(e))return ua(e)}(e)||function(e){if(void 0!==oa&&null!=ia(e)||null!=e["@@iterator"])return ca(e)}(e)||Aa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var za=n(3649),Va=n.n(za),Ja=function(e){return":/?#[]@!$&'()*+,;=".indexOf(e)>-1},Wa=function(e){return/^[a-z0-9\-._~]+$/i.test(e)};function $a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.escape,o=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&r?o?JSON.parse(e):Sa()(t=Ka(e)).call(t,(function(e){var t,n;if(Wa(e))return e;if(Ja(e)&&"unsafe"===r)return e;var o=new TextEncoder;return Sa()(t=Sa()(n=ba()(o.encode(e))).call(n,(function(e){var t;return Va()(t="0".concat(e.toString(16).toUpperCase())).call(t,-2)}))).call(t,(function(e){return"%".concat(e)})).join("")})).join(""):e}function Xa(e){var t=e.value;return Array.isArray(t)?function(e){var t=e.key,n=e.value,r=e.style,o=e.explode,i=e.escape,a=function(e){return $a(e,{escape:i})};if("simple"===r)return Sa()(n).call(n,(function(e){return a(e)})).join(",");if("label"===r)return".".concat(Sa()(n).call(n,(function(e){return a(e)})).join("."));if("matrix"===r)return Sa()(n).call(n,(function(e){return a(e)})).reduce((function(e,n){var r,i,a;return!e||o?ka()(i=ka()(a="".concat(e||"",";")).call(a,t,"=")).call(i,n):ka()(r="".concat(e,",")).call(r,n)}),"");if("form"===r){var s=o?"&".concat(t,"="):",";return Sa()(n).call(n,(function(e){return a(e)})).join(s)}if("spaceDelimited"===r){var c=o?"".concat(t,"="):"";return Sa()(n).call(n,(function(e){return a(e)})).join(" ".concat(c))}if("pipeDelimited"===r){var u=o?"".concat(t,"="):"";return Sa()(n).call(n,(function(e){return a(e)})).join("|".concat(u))}}(e):"object"===ha(t)?function(e){var t=e.key,n=e.value,r=e.style,o=e.explode,i=e.escape,a=function(e){return $a(e,{escape:i})},s=Oa()(n);return"simple"===r?s.reduce((function(e,t){var r,i,s,c=a(n[t]),u=o?"=":",",A=e?"".concat(e,","):"";return ka()(r=ka()(i=ka()(s="".concat(A)).call(s,t)).call(i,u)).call(r,c)}),""):"label"===r?s.reduce((function(e,t){var r,i,s,c=a(n[t]),u=o?"=":".",A=e?"".concat(e,"."):".";return ka()(r=ka()(i=ka()(s="".concat(A)).call(s,t)).call(i,u)).call(r,c)}),""):"matrix"===r&&o?s.reduce((function(e,t){var r,o,i=a(n[t]),s=e?"".concat(e,";"):";";return ka()(r=ka()(o="".concat(s)).call(o,t,"=")).call(r,i)}),""):"matrix"===r?s.reduce((function(e,r){var o,i,s=a(n[r]),c=e?"".concat(e,","):";".concat(t,"=");return ka()(o=ka()(i="".concat(c)).call(i,r,",")).call(o,s)}),""):"form"===r?s.reduce((function(e,t){var r,i,s,c,u=a(n[t]),A=e?ka()(r="".concat(e)).call(r,o?"&":","):"",l=o?"=":",";return ka()(i=ka()(s=ka()(c="".concat(A)).call(c,t)).call(s,l)).call(i,u)}),""):void 0}(e):function(e){var t,n=e.key,r=e.value,o=e.style,i=e.escape,a=function(e){return $a(e,{escape:i})};return"simple"===o?a(r):"label"===o?".".concat(a(r)):"matrix"===o?ka()(t=";".concat(n,"=")).call(t,a(r)):"form"===o||"deepObject"===o?a(r):void 0}(e)}var Za=function(e,t){t.body=e},es={serializeRes:is,mergeInQueryOrForm:gs};function ts(e){return ns.apply(this,arguments)}function ns(){return ns=ya(Ia().mark((function e(t){var n,r,o,i,a,s=arguments;return Ia().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=s.length>1&&void 0!==s[1]?s[1]:{},"object"===ha(t)&&(t=(n=t).url),n.headers=n.headers||{},es.mergeInQueryOrForm(n),n.headers&&Oa()(n.headers).forEach((function(e){var t=n.headers[e];"string"==typeof t&&(n.headers[e]=t.replace(/\n+/g," "))})),!n.requestInterceptor){e.next=12;break}return e.next=8,n.requestInterceptor(n);case 8:if(e.t0=e.sent,e.t0){e.next=11;break}e.t0=n;case 11:n=e.t0;case 12:return r=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(r)&&n.body instanceof Ha&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),e.prev=14,e.next=17,(n.userFetch||fetch)(n.url,n);case 17:return o=e.sent,e.next=20,es.serializeRes(o,t,n);case 20:if(o=e.sent,!n.responseInterceptor){e.next=28;break}return e.next=24,n.responseInterceptor(o);case 24:if(e.t1=e.sent,e.t1){e.next=27;break}e.t1=o;case 27:o=e.t1;case 28:e.next=39;break;case 30:if(e.prev=30,e.t2=e.catch(14),o){e.next=34;break}throw e.t2;case 34:throw(i=new Error(o.statusText||"response status is ".concat(o.status))).status=o.status,i.statusCode=o.status,i.responseError=e.t2,i;case 39:if(o.ok){e.next=45;break}throw(a=new Error(o.statusText||"response status is ".concat(o.status))).status=o.status,a.statusCode=o.status,a.response=o,a;case 45:return e.abrupt("return",o);case 46:case"end":return e.stop()}}),e,null,[[14,30]])}))),ns.apply(this,arguments)}var rs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(e)};function os(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):La().load(e)}function is(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.loadSpec,o=void 0!==r&&r,i={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:ss(e.headers)},a=i.headers["content-type"],s=o||rs(a),c=s?e.text:e.blob||e.buffer;return c.call(e).then((function(e){if(i.text=e,i.data=e,s)try{var t=os(e,a);i.body=t,i.obj=t}catch(e){i.parseError=e}return i}))}function as(e){return wa()(e).call(e,", ")?e.split(", "):e}function ss(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"function"!=typeof Ba()(e)?{}:ba()(Ba()(e).call(e)).reduce((function(e,t){var n=pa(t,2),r=n[0],o=n[1];return e[r]=as(o),e}),{})}function cs(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!==ha(e)||"string"!=typeof e.uri):void 0!==Ya&&e instanceof Ya||void 0!==qa&&e instanceof qa||!!ArrayBuffer.isView(e)||null!==e&&"object"===ha(e)&&"function"==typeof e.pipe}function us(e,t){return Array.isArray(e)&&e.some((function(e){return cs(e,t)}))}var As={form:",",spaceDelimited:"%20",pipeDelimited:"|"},ls={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function fs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.collectionFormat,o=t.allowEmptyValue,i=t.serializationOption,a=t.encoding,s="object"!==ha(t)||Array.isArray(t)?t:t.value,c=n?function(e){return e.toString()}:function(e){return encodeURIComponent(e)},u=c(e);if(void 0===s&&o)return[[u,""]];if(cs(s)||us(s))return[[u,s]];if(i)return hs(e,s,n,i);if(a){if([ha(a.style),ha(a.explode),ha(a.allowReserved)].some((function(e){return"undefined"!==e}))){var A=a.style,l=a.explode,f=a.allowReserved;return hs(e,s,n,{style:A,explode:l,allowReserved:f})}if(a.contentType){if("application/json"===a.contentType){var h="string"==typeof s?s:xa()(s);return[[u,c(h)]]}return[[u,c(s.toString())]]}return"object"!==ha(s)?[[u,c(s)]]:Array.isArray(s)&&s.every((function(e){return"object"!==ha(e)}))?[[u,Sa()(s).call(s,c).join(",")]]:[[u,c(xa()(s))]]}return"object"!==ha(s)?[[u,c(s)]]:Array.isArray(s)?"multi"===r?[[u,Sa()(s).call(s,c)]]:[[u,Sa()(s).call(s,c).join(ls[r||"csv"])]]:[[u,""]]}function hs(e,t,n,r){var o,i,a,s=r.style||"form",c=void 0===r.explode?"form"===s:r.explode,u=!n&&(r&&r.allowReserved?"unsafe":"reserved"),A=function(e){return $a(e,{escape:u})},l=n?function(e){return e}:function(e){return $a(e,{escape:u})};return"object"!==ha(t)?[[l(e),A(t)]]:Array.isArray(t)?c?[[l(e),Sa()(t).call(t,A)]]:[[l(e),Sa()(t).call(t,A).join(As[s])]]:"deepObject"===s?Sa()(i=Oa()(t)).call(i,(function(n){var r;return[l(ka()(r="".concat(e,"[")).call(r,n,"]")),A(t[n])]})):c?Sa()(a=Oa()(t)).call(a,(function(e){return[l(e),A(t[e])]})):[[l(e),Sa()(o=Oa()(t)).call(o,(function(e){var n;return[ka()(n="".concat(l(e),",")).call(n,A(t[e]))]})).join(",")]]}function ps(e){return Fa()(e).reduce((function(e,t){var n,r=pa(t,2),o=la(fs(r[0],r[1],!0));try{for(o.s();!(n=o.n()).done;){var i=pa(n.value,2),a=i[0],s=i[1];if(Array.isArray(s)){var c,u=la(s);try{for(u.s();!(c=u.n()).done;){var A=c.value;if(ArrayBuffer.isView(A)){var l=new qa([A]);e.append(a,l)}else e.append(a,A)}}catch(e){u.e(e)}finally{u.f()}}else if(ArrayBuffer.isView(s)){var f=new qa([s]);e.append(a,f)}else e.append(a,s)}}catch(e){o.e(e)}finally{o.f()}return e}),new Ha)}function ds(e){var t=Oa()(e).reduce((function(t,n){var r,o=la(fs(n,e[n]));try{for(o.s();!(r=o.n()).done;){var i=pa(r.value,2),a=i[0],s=i[1];t[a]=s}}catch(e){o.e(e)}finally{o.f()}return t}),{});return Ma().stringify(t,{encode:!1,indices:!1})||""}function gs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=void 0===t?"":t,r=e.query,o=e.form,i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ra()(t).call(t,(function(e){return e})).join("&");return r?"?".concat(r):""};if(o){var a=Oa()(o).some((function(e){var t=o[e].value;return cs(t)||us(t)})),s=e.headers["content-type"]||e.headers["Content-Type"];if(a||/multipart\/form-data/i.test(s)){var c=ps(e.form);Za(c,e)}else e.body=ds(o);delete e.form}if(r){var u=n.split("?"),A=pa(u,2),l=A[0],f=A[1],h="";if(f){var p=Ma().parse(f),d=Oa()(r);d.forEach((function(e){return delete p[e]})),h=Ma().stringify(p,{encode:!0})}var g=i(h,ds(r));e.url=l+g,delete e.query}return e}function ys(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ms(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Ji(e,r.key,r)}}function Is(e,t,n){return t&&ms(e.prototype,t),n&&ms(e,n),Ji(e,"prototype",{writable:!1}),e}var vs,ws=n(94473),Es=n.n(ws),Bs=n(93476),Cs=n.n(Bs),bs=n(92762),Qs=n.n(bs),xs=(vs=function(e,t){return vs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},vs(e,t)},function(e,t){function n(){this.constructor=e}vs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_s=Object.prototype.hasOwnProperty;function Ss(e,t){return _s.call(e,t)}function Ts(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);for(var r in t=[],e)Ss(e,r)&&t.push(r);return t}function Os(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Ns(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function ks(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ds(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Fs(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(Fs(e[t]))return!0}else if("object"==typeof e){var r=Ts(e),o=r.length;for(t=0;t<o;t++)if(Fs(e[r[t]]))return!0}return!1}function Us(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}var Rs=function(e){function t(t,n,r,o,i){var a=this.constructor,s=e.call(this,Us(t,{name:n,index:r,operation:o,tree:i}))||this;return s.name=n,s.index=r,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=Us(t,{name:n,index:r,operation:o,tree:i}),s}return xs(t,e),t}(Error),Ps=Rs,Ms=Os,js={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=Gs(n,this.path);r&&(r=Os(r));var o=Hs(n,{op:"remove",path:this.from}).removed;return Hs(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=Gs(n,this.from);return Hs(n,{op:"add",path:this.path,value:Os(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:Vs(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},Ls={add:function(e,t,n){return Ns(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:js.move,copy:js.copy,test:js.test,_get:js._get};function Gs(e,t){if(""==t)return e;var n={op:"_get",path:t};return Hs(e,n),n.value}function Hs(e,t,n,r,o,i){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=0),n&&("function"==typeof n?n(t,0,e,t.path):Ks(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=Gs(e,t.from),"move"===t.op&&(a.removed=e),a;if("test"===t.op){if(a.test=Vs(e,t.value),!1===a.test)throw new Ps("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}if("remove"===t.op)return a.removed=e,a.newDocument=null,a;if("_get"===t.op)return t.value=e,a;if(n)throw new Ps("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}r||(e=Os(e));var s=(t.path||"").split("/"),c=e,u=1,A=s.length,l=void 0,f=void 0,h=void 0;for(h="function"==typeof n?n:Ks;;){if((f=s[u])&&-1!=f.indexOf("~")&&(f=Ds(f)),o&&"__proto__"==f)throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===l&&(void 0===c[f]?l=s.slice(0,u).join("/"):u==A-1&&(l=t.path),void 0!==l&&h(t,0,e,l)),u++,Array.isArray(c)){if("-"===f)f=c.length;else{if(n&&!Ns(f))throw new Ps("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Ns(f)&&(f=~~f)}if(u>=A){if(n&&"add"===t.op&&f>c.length)throw new Ps("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=Ls[t.op].call(t,c,f,e)).test)throw new Ps("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=A){if(!1===(a=js[t.op].call(t,c,f,e)).test)throw new Ps("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[f],n&&u<A&&(!c||"object"!=typeof c))throw new Ps("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function qs(e,t,n,r,o){if(void 0===r&&(r=!0),void 0===o&&(o=!0),n&&!Array.isArray(t))throw new Ps("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=Os(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=Hs(e,t[a],n,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function Ys(e,t,n){var r=Hs(e,t);if(!1===r.test)throw new Ps("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function Ks(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new Ps("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!js[e.op])throw new Ps("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new Ps("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Ps('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new Ps("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new Ps("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&Fs(e.value))throw new Ps("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new Ps("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new Ps("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var a=zs([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new Ps("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function zs(e,t,n){try{if(!Array.isArray(e))throw new Ps("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)qs(Os(t),Os(e),n||!0);else{n=n||Ks;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof Ps)return e;throw e}}function Vs(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!Vs(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=Object.keys(e);if((r=s.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!t.hasOwnProperty(s[n]))return!1;for(n=r;0!=n--;)if(!Vs(e[o=s[n]],t[o]))return!1;return!0}return e!=e&&t!=t}var Js=new WeakMap,Ws=function(e){this.observers=new Map,this.obj=e},$s=function(e,t){this.callback=e,this.observer=t};function Xs(e,t){t.unobserve()}function Zs(e,t){var n,r=function(e){return Js.get(e)}(e);if(r){var o=function(e,t){return e.observers.get(t)}(r,t);n=o&&o.observer}else r=new Ws(e),Js.set(e,r);if(n)return n;if(n={},r.value=Os(e),t){n.callback=t,n.next=null;var i=function(){ec(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=[],n.object=e,n.unobserve=function(){ec(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},r.observers.set(t,new $s(t,n)),n}function ec(e,t){void 0===t&&(t=!1);var n=Js.get(e.object);tc(n.value,e.object,e.patches,"",t),e.patches.length&&qs(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function tc(e,t,n,r,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Ts(t),a=Ts(e),s=!1,c=a.length-1;c>=0;c--){var u=e[l=a[c]];if(!Ss(t,l)||void 0===t[l]&&void 0!==u&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+ks(l),value:Os(u)}),n.push({op:"remove",path:r+"/"+ks(l)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var A=t[l];"object"==typeof u&&null!=u&&"object"==typeof A&&null!=A&&Array.isArray(u)===Array.isArray(A)?tc(u,A,n,r+"/"+ks(l),o):u!==A&&(o&&n.push({op:"test",path:r+"/"+ks(l),value:Os(u)}),n.push({op:"replace",path:r+"/"+ks(l),value:Os(A)}))}}if(s||i.length!=a.length)for(c=0;c<i.length;c++){var l;Ss(e,l=i[c])||void 0===t[l]||n.push({op:"add",path:r+"/"+ks(l),value:Os(t[l])})}}}function nc(e,t,n){void 0===n&&(n=!1);var r=[];return tc(e,t,r,"",n),r}Object.assign({},A,l,{JsonPatchError:Rs,deepClone:Os,escapePathComponent:ks,unescapePathComponent:Ds});var rc=n(9996),oc=n.n(rc),ic={add:function(e,t){return{op:"add",path:e,value:t}},replace:sc,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce((function(e,t){return void 0!==t&&e?e[t]:e}),e)},applyPatch:function(e,t,n){if(n=n||{},"merge"===(t=Xi(Xi({},t),{},{path:t.path&&ac(t.path)})).op){var r=vc(e,t.path);ea()(r,t.value),qs(e,[sc(t.path,r)])}else if("mergeDeep"===t.op){var o=vc(e,t.path),i=oc()(o,t.value);e=qs(e,[sc(t.path,i)]).newDocument}else if("add"===t.op&&""===t.path&&pc(t.value)){qs(e,Oa()(t.value).reduce((function(e,n){return e.push({op:"add",path:"/".concat(ac(n)),value:t.value[n]}),e}),[]))}else if("replace"===t.op&&""===t.path){var a=t.value;n.allowMetaPatches&&t.meta&&mc(t)&&(Array.isArray(t.value)||pc(t.value))&&(a=Xi(Xi({},a),t.meta)),e=a}else if(qs(e,[t]),n.allowMetaPatches&&t.meta&&mc(t)&&(Array.isArray(t.value)||pc(t.value))){var s=Xi(Xi({},vc(e,t.path)),t.meta);qs(e,[sc(t.path,s)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(var n=0,r=t.length;n<r;n+=1)if(t[n]!==e[n])return!1;return!0},flatten:fc,fullyNormalizeArray:function(e){return hc(fc(lc(e)))},normalizeArray:lc,isPromise:function(e){return pc(e)&&dc(e.then)},forEachNew:function(e,t){try{return cc(e,Ac,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return cc(e,uc,t)}catch(e){return e}},isJsonPatch:gc,isContextPatch:function(e){return Ic(e)&&"context"===e.type},isPatch:Ic,isMutation:yc,isAdditiveMutation:mc,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:dc,isObject:pc,isError:function(e){return e instanceof Error}};function ac(e){return Array.isArray(e)?e.length<1?"":"/".concat(Sa()(e).call(e,(function(e){return(e+"").replace(/~/g,"~0").replace(/\//g,"~1")})).join("/")):e}function sc(e,t,n){return{op:"replace",path:e,value:t,meta:n}}function cc(e,t,n){var r;return hc(fc(Sa()(r=Ra()(e).call(e,mc)).call(r,(function(e){return t(e.value,n,e.path)}))||[]))}function uc(e,t,n){return n=n||[],Array.isArray(e)?Sa()(e).call(e,(function(e,r){return uc(e,t,ka()(n).call(n,r))})):pc(e)?Sa()(r=Oa()(e)).call(r,(function(r){return uc(e[r],t,ka()(n).call(n,r))})):t(e,n[n.length-1],n);var r}function Ac(e,t,n){var r=[];if((n=n||[]).length>0){var o=t(e,n[n.length-1],n);o&&(r=ka()(r).call(r,o))}if(Array.isArray(e)){var i=Sa()(e).call(e,(function(e,r){return Ac(e,t,ka()(n).call(n,r))}));i&&(r=ka()(r).call(r,i))}else if(pc(e)){var a,s=Sa()(a=Oa()(e)).call(a,(function(r){return Ac(e[r],t,ka()(n).call(n,r))}));s&&(r=ka()(r).call(r,s))}return fc(r)}function lc(e){return Array.isArray(e)?e:[e]}function fc(e){var t;return ka()(t=[]).apply(t,Ka(Sa()(e).call(e,(function(e){return Array.isArray(e)?fc(e):e}))))}function hc(e){return Ra()(e).call(e,(function(e){return void 0!==e}))}function pc(e){return e&&"object"===ha(e)}function dc(e){return e&&"function"==typeof e}function gc(e){if(Ic(e)){var t=e.op;return"add"===t||"remove"===t||"replace"===t}return!1}function yc(e){return gc(e)||Ic(e)&&"mutation"===e.type}function mc(e){return yc(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Ic(e){return e&&"object"===ha(e)}function vc(e,t){try{return Gs(e,t)}catch(e){return console.error(e),{}}}var wc=n(52424),Ec=n.n(wc),Bc=n(94435),Cc=n.n(Bc),bc=n(25609),Qc=n.n(bc);function xc(e,t){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.message=n[0],t&&t.apply(this,n)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var _c=n(13692),Sc=n.n(_c),Tc=["properties"],Oc=["properties"],Nc=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],kc=["schema/example","items/example"];function Dc(e){var t=e[e.length-1],n=e[e.length-2],r=e.join("/");return Tc.indexOf(t)>-1&&-1===Oc.indexOf(n)||Nc.indexOf(r)>-1||kc.some((function(e){return r.indexOf(e)>-1}))}function Fc(e,t){var n,r=pa(e.split("#"),2),o=r[0],i=r[1],a=ra.resolve(o||"",t||"");return i?ka()(n="".concat(a,"#")).call(n,i):a}var Uc="application/json, application/yaml",Rc=/^([a-z]+:\/\/|\/\/)/i,Pc=xc("JSONRefError",(function(e,t,n){this.originalError=n,ea()(this,t||{})})),Mc={},jc=new(Ec()),Lc=[function(e){return"paths"===e[0]&&"responses"===e[3]&&"examples"===e[5]},function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7]},function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"example"===e[4]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"example"===e[5]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"examples"===e[4]&&"value"===e[6]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"examples"===e[5]&&"value"===e[7]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"example"===e[6]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"content"===e[4]&&"example"===e[7]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]}],Gc={key:"$ref",plugin:function(e,t,n,r){var o=r.getInstance(),i=Va()(n).call(n,0,-1);if(!Dc(i)&&!function(e){return Lc.some((function(t){return t(e)}))}(i)){var a=r.getContext(n).baseDoc;if("string"!=typeof e)return new Pc("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:a,fullPath:n});var s,c,u,A=zc(e),l=A[0],f=A[1]||"";try{s=a||l?Yc(l,a):null}catch(t){return Kc(t,{pointer:f,$ref:e,basePath:s,fullPath:n})}if(function(e,t,n,r){var o,i,a=jc.get(r);a||(a={},jc.set(r,a));var s,c=0===(s=n).length?"":"/".concat(Sa()(s).call(s,Zc).join("/")),u=ka()(o="".concat(t||"<specmap-base>","#")).call(o,e),A=c.replace(/allOf\/\d+\/?/g,"");if(t===r.contextTree.get([]).baseDoc&&eu(A,e))return!0;var l="",f=n.some((function(e){var t;return l=ka()(t="".concat(l,"/")).call(t,Zc(e)),a[l]&&a[l].some((function(e){return eu(e,u)||eu(u,e)}))}));if(f)return!0;a[A]=ka()(i=a[A]||[]).call(i,u)}(f,s,i,r)&&!o.useCircularStructures){var h=Fc(e,s);return e===h?null:ic.replace(n,h)}if(null==s?(u=$c(f),void 0===(c=r.get(u))&&(c=new Pc("Could not resolve reference: ".concat(e),{pointer:f,$ref:e,baseDoc:a,fullPath:n}))):c=null!=(c=Vc(s,f)).__value?c.__value:c.catch((function(t){throw Kc(t,{pointer:f,$ref:e,baseDoc:a,fullPath:n})})),c instanceof Error)return[ic.remove(n),c];var p=Fc(e,s),d=ic.replace(i,c,{$$ref:p});if(s&&s!==a)return[d,ic.context(i,{baseDoc:s})];try{if(!function(e,t){var n=[e];return t.path.reduce((function(e,t){return n.push(e[t]),e[t]}),e),function e(t){return ic.isObject(t)&&(n.indexOf(t)>=0||Oa()(t).some((function(n){return e(t[n])})))}(t.value)}(r.state,d)||o.useCircularStructures)return d}catch(e){return null}}}},Hc=ea()(Gc,{docCache:Mc,absoluteify:Yc,clearCache:function(e){void 0!==e?delete Mc[e]:Oa()(Mc).forEach((function(e){delete Mc[e]}))},JSONRefError:Pc,wrapError:Kc,getDoc:Jc,split:zc,extractFromDoc:Vc,fetchJSON:function(e){return fetch(e,{headers:{Accept:Uc},loadSpec:!0}).then((function(e){return e.text()})).then((function(e){return Qc().load(e)}))},extract:Wc,jsonPointerToArray:$c,unescapeJsonPointerToken:Xc}),qc=Hc;function Yc(e,t){if(!Rc.test(e)){var n;if(!t)throw new Pc(ka()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,t,"'"));return ra.resolve(t,e)}return e}function Kc(e,t){var n,r;return n=e&&e.response&&e.response.body?ka()(r="".concat(e.response.body.code," ")).call(r,e.response.body.message):e.message,new Pc("Could not resolve reference: ".concat(n),t,e)}function zc(e){return(e+"").split("#")}function Vc(e,t){var n=Mc[e];if(n&&!ic.isPromise(n))try{var r=Wc(t,n);return ea()(Cs().resolve(r),{__value:r})}catch(e){return Cs().reject(e)}return Jc(e).then((function(e){return Wc(t,e)}))}function Jc(e){var t=Mc[e];return t?ic.isPromise(t)?t:Cs().resolve(t):(Mc[e]=Hc.fetchJSON(e).then((function(t){return Mc[e]=t,t})),Mc[e])}function Wc(e,t){var n=$c(e);if(n.length<1)return t;var r=ic.getIn(t,n);if(void 0===r)throw new Pc("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return r}function $c(e){var t;if("string"!=typeof e)throw new TypeError("Expected a string, got a ".concat(ha(e)));return"/"===e[0]&&(e=e.substr(1)),""===e?[]:Sa()(t=e.split("/")).call(t,Xc)}function Xc(e){return"string"!=typeof e?e:new(Cc())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~"))).get("")}function Zc(e){var t,n=new(Cc())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return Va()(t=n.toString()).call(t,1)}function eu(e,t){if(!(n=t)||"/"===n||"#"===n)return!0;var n,r=e.charAt(t.length),o=Va()(t).call(t,-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==o}var tu={key:"allOf",plugin:function(e,t,n,r,o){if(!o.meta||!o.meta.$$ref){var i=Va()(n).call(n,0,-1);if(!Dc(i)){if(!Array.isArray(e)){var a=new TypeError("allOf must be an array");return a.fullPath=n,a}var s=!1,c=o.value;if(i.forEach((function(e){c&&(c=c[e])})),c=Xi({},c),0!==Oa()(c).length){delete c.allOf;var u,A,l=[];return l.push(r.replace(i,{})),e.forEach((function(e,t){if(!r.isObject(e)){if(s)return null;s=!0;var o=new TypeError("Elements in allOf must be objects");return o.fullPath=n,l.push(o)}l.push(r.mergeDeep(i,e));var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.specmap,o=n.getBaseUrlForNodePath,i=void 0===o?function(e){var n;return r.getContext(ka()(n=[]).call(n,Ka(t),Ka(e))).baseDoc}:o,a=n.targetKeys,s=void 0===a?["$ref","$$ref"]:a,c=[];return Sc()(e).forEach((function(){if(wa()(s).call(s,this.key)&&"string"==typeof this.node){var e=this.path,n=ka()(t).call(t,this.path),o=Fc(this.node,i(e));c.push(r.replace(n,o))}})),c}(e,Va()(n).call(n,0,-1),{getBaseUrlForNodePath:function(e){var o;return r.getContext(ka()(o=[]).call(o,Ka(n),[t],Ka(e))).baseDoc},specmap:r});l.push.apply(l,Ka(a))})),c.example&&l.push(r.remove(ka()(u=[]).call(u,i,"example"))),l.push(r.mergeDeep(i,c)),c.$$ref||l.push(r.remove(ka()(A=[]).call(A,i,"$$ref"))),l}}}}},nu={key:"parameters",plugin:function(e,t,n,r){if(Array.isArray(e)&&e.length){var o=ea()([],e),i=Va()(n).call(n,0,-1),a=Xi({},ic.getIn(r.spec,i));return e.forEach((function(e,t){try{o[t].default=r.parameterMacro(a,e)}catch(e){var i=new Error(e);return i.fullPath=n,i}})),ic.replace(n,o)}return ic.replace(n,e)}},ru={key:"properties",plugin:function(e,t,n,r){var o=Xi({},e);for(var i in e)try{o[i].default=r.modelPropertyMacro(o[i])}catch(e){var a=new Error(e);return a.fullPath=n,a}return ic.replace(n,o)}},ou=function(){function e(t){ys(this,e),this.root=iu(t||{})}return Is(e,[{key:"set",value:function(e,t){var n=this.getParent(e,!0);if(n){var r=e[e.length-1],o=n.children;o[r]?au(o[r],t,n):o[r]=iu(t,n)}else au(this.root,t,null)}},{key:"get",value:function(e){if((e=e||[]).length<1)return this.root.value;for(var t,n,r=this.root,o=0;o<e.length&&(n=e[o],(t=r.children)[n]);o+=1)r=t[n];return r&&r.protoValue}},{key:"getParent",value:function(e,t){return!e||e.length<1?null:e.length<2?this.root:Va()(e).call(e,0,-1).reduce((function(e,n){if(!e)return e;var r=e.children;return!r[n]&&t&&(r[n]=iu(null,e)),r[n]}),this.root)}}]),e}();function iu(e,t){return au({children:{}},e,t)}function au(e,t,n){return e.value=t||{},e.protoValue=n?Xi(Xi({},n.protoValue),e.value):e.value,Oa()(e.children).forEach((function(t){var n=e.children[t];e.children[t]=au(n,n.value,e)})),e}var su=function(){},cu=function(){function e(t){var n,r,o=this;ys(this,e),ea()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ou,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:ea()(Object.create(this),ic,{getInstance:function(){return o}}),allowMetaPatches:!1},t),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=Ra()(n=Sa()(r=this.plugins).call(r,this.wrapPlugin.bind(this))).call(n,ic.isFunction),this.patches.push(ic.add([],this.spec)),this.patches.push(ic.context([],this.context)),this.updatePatches(this.patches)}return Is(e,[{key:"debug",value:function(e){if(this.debugLevel===e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).log.apply(t,r)}}},{key:"verbose",value:function(e){if("verbose"===this.debugLevel){for(var t,n,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(t=console).log.apply(t,ka()(n=["[".concat(e,"] ")]).call(n,o))}}},{key:"wrapPlugin",value:function(e,t){var n,r,o,i=this.pathDiscriminator,a=null;return e[this.pluginProp]?(a=e,n=e[this.pluginProp]):ic.isFunction(e)?n=e:ic.isObject(e)&&(r=e,o=function(e,t){return!Array.isArray(e)||e.every((function(e,n){return e===t[n]}))},n=Ia().mark((function e(t,n){var a,s,c,u,A,l;return Ia().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l=function(e,t,c){var u,A,f,h,p,d,g,y,m,I,v,w,E;return Ia().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(ic.isObject(e)){a.next=6;break}if(r.key!==t[t.length-1]){a.next=4;break}return a.next=4,r.plugin(e,r.key,t,n);case 4:a.next=30;break;case 6:u=t.length-1,A=t[u],f=t.indexOf("properties"),h="properties"===A&&u===f,p=n.allowMetaPatches&&s[e.$$ref],d=0,g=Oa()(e);case 12:if(!(d<g.length)){a.next=30;break}if(y=g[d],m=e[y],I=ka()(t).call(t,y),v=ic.isObject(m),w=e.$$ref,p){a.next=22;break}if(!v){a.next=22;break}return n.allowMetaPatches&&w&&(s[w]=!0),a.delegateYield(l(m,I,c),"t0",22);case 22:if(h||y!==r.key){a.next=27;break}if(E=o(i,t),i&&!E){a.next=27;break}return a.next=27,r.plugin(m,y,I,n,c);case 27:d++,a.next=12;break;case 30:case"end":return a.stop()}}),a)},a=Ia().mark(l),s={},c=la(Ra()(t).call(t,ic.isAdditiveMutation)),e.prev=4,c.s();case 6:if((u=c.n()).done){e.next=11;break}return A=u.value,e.delegateYield(l(A.value,A.path,A),"t0",9);case 9:e.next=6;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(4),c.e(e.t1);case 16:return e.prev=16,c.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,13,16,19]])}))),ea()(n.bind(a),{pluginName:e.name||t,isGenerator:ic.isGenerator(n)})}},{key:"nextPlugin",value:function(){var e,t=this;return Es()(e=this.wrappedPlugins).call(e,(function(e){return t.getMutationsForPlugin(e).length>0}))}},{key:"nextPromisedPatch",value:function(){var e;if(this.promisedPatches.length>0)return Cs().race(Sa()(e=this.promisedPatches).call(e,(function(e){return e.value})))}},{key:"getPluginHistory",value:function(e){var t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}},{key:"getPluginRunCount",value:function(e){return this.getPluginHistory(e).length}},{key:"getPluginHistoryTip",value:function(e){var t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}},{key:"getPluginMutationIndex",value:function(e){var t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}},{key:"updatePluginHistory",value:function(e,t){var n=this.constructor.getPluginName(e);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(t)}},{key:"updatePatches",value:function(e){var t=this;ic.normalizeArray(e).forEach((function(e){if(e instanceof Error)t.errors.push(e);else try{if(!ic.isObject(e))return void t.debug("updatePatches","Got a non-object patch",e);if(t.showDebug&&t.allPatches.push(e),ic.isPromise(e.value))return t.promisedPatches.push(e),void t.promisedPatchThen(e);if(ic.isContextPatch(e))return void t.setContext(e.path,e.value);if(ic.isMutation(e))return void t.updateMutations(e)}catch(e){console.error(e),t.errors.push(e)}}))}},{key:"updateMutations",value:function(e){"object"===ha(e.value)&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value=Xi({},e.value));var t=ic.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}},{key:"removePromisedPatch",value:function(e){var t,n=this.promisedPatches.indexOf(e);n<0?this.debug("Tried to remove a promisedPatch that isn't there!"):Qs()(t=this.promisedPatches).call(t,n,1)}},{key:"promisedPatchThen",value:function(e){var t=this;return e.value=e.value.then((function(n){var r=Xi(Xi({},e),{},{value:n});t.removePromisedPatch(e),t.updatePatches(r)})).catch((function(n){t.removePromisedPatch(e),t.updatePatches(n)})),e.value}},{key:"getMutations",value:function(e,t){var n;return e=e||0,"number"!=typeof t&&(t=this.mutations.length),Va()(n=this.mutations).call(n,e,t)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(e){var t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(e){return ic.getIn(this.state,e)}},{key:"_getContext",value:function(e){return this.contextTree.get(e)}},{key:"setContext",value:function(e,t){return this.contextTree.set(e,t)}},{key:"_hasRun",value:function(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}},{key:"dispatch",value:function(){var e,t=this,n=this,r=this.nextPlugin();if(!r){var o=this.nextPromisedPatch();if(o)return o.then((function(){return t.dispatch()})).catch((function(){return t.dispatch()}));var i={spec:this.state,errors:this.errors};return this.showDebug&&(i.patches=this.allPatches),Cs().resolve(i)}if(n.pluginCount=n.pluginCount||{},n.pluginCount[r]=(n.pluginCount[r]||0)+1,n.pluginCount[r]>100)return Cs().resolve({spec:n.state,errors:ka()(e=n.errors).call(e,new Error("We've reached a hard limit of ".concat(100," plugin runs")))});if(r!==this.currentPlugin&&this.promisedPatches.length){var a,s=Sa()(a=this.promisedPatches).call(a,(function(e){return e.value}));return Cs().all(Sa()(s).call(s,(function(e){return e.then(su,su)}))).then((function(){return t.dispatch()}))}return function(){n.currentPlugin=r;var e=n.getCurrentMutations(),t=n.mutations.length-1;try{if(r.isGenerator){var o,i=la(r(e,n.getLib()));try{for(i.s();!(o=i.n()).done;)c(o.value)}catch(e){i.e(e)}finally{i.f()}}else c(r(e,n.getLib()))}catch(e){console.error(e),c([ea()(Object.create(e),{plugin:r})])}finally{n.updatePluginHistory(r,{mutationIndex:t})}return n.dispatch()}();function c(e){e&&(e=ic.fullyNormalizeArray(e),n.updatePatches(e,r))}}}],[{key:"getPluginName",value:function(e){return e.pluginName}},{key:"getPatchesOfType",value:function(e,t){return Ra()(e).call(e,t)}}]),e}(),uu={refs:qc,allOf:tu,parameters:nu,properties:ru},Au=function(e){return String.prototype.toLowerCase.call(e)},lu=function(e){return e.replace(/[^\w]/gi,"_")};function fu(e){var t=e.openapi;return!!t&&na()(t).call(t,"3")}function hu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.v2OperationIdCompatibilityMode;if(!e||"object"!==ha(e))return null;var i=(e.operationId||"").replace(/\s/g,"");return i.length?lu(e.operationId):pu(t,n,{v2OperationIdCompatibilityMode:o})}function pu(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.v2OperationIdCompatibilityMode;if(o){var i,a,s=ka()(i="".concat(t.toLowerCase(),"_")).call(i,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return(s=s||ka()(a="".concat(e.substring(1),"_")).call(a,t)).replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return ka()(n="".concat(Au(t))).call(n,lu(e))}function du(e,t){var n;return ka()(n="".concat(Au(t),"-")).call(n,e)}function gu(e,t){return e&&e.paths?function(e,n){return yu(e,(function(e){var n=e.pathName,r=e.method,o=e.operation;if(!o||"object"!==ha(o))return!1;var i=o.operationId;return[hu(o,n,r),du(n,r),i].some((function(e){return e&&e===t}))}),!0)||null}(e):null}function yu(e,t,n){if(!e||"object"!==ha(e)||!e.paths||"object"!==ha(e.paths))return null;var r=e.paths;for(var o in r)for(var i in r[o])if("PARAMETERS"!==i.toUpperCase()){var a=r[o][i];if(a&&"object"===ha(a)){var s={spec:e,pathName:o,method:i.toUpperCase(),operation:a},c=t(s);if(n&&c)return s}}}function mu(e){var t=e.spec,n=t.paths,r={};if(!n||t.$$normalized)return e;for(var o in n){var i,a=n[o];if(null!=a&&wa()(i=["object","function"]).call(i,ha(a))){var s=a.parameters,c=function(e){var n,i=a[e];if(null==i||!wa()(n=["object","function"]).call(n,ha(i)))return"continue";var c=hu(i,o,e);if(c){r[c]?r[c].push(i):r[c]=[i];var u=r[c];if(u.length>1)u.forEach((function(e,t){var n;e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=ka()(n="".concat(c)).call(n,t+1)}));else if(void 0!==i.operationId){var A=u[0];A.__originalOperationId=A.__originalOperationId||i.operationId,A.operationId=c}}if("parameters"!==e){var l=[],f={};for(var h in t)"produces"!==h&&"consumes"!==h&&"security"!==h||(f[h]=t[h],l.push(f));if(s&&(f.parameters=s,l.push(f)),l.length){var p,d=la(l);try{for(d.s();!(p=d.n()).done;){var g=p.value;for(var y in g)if(i[y]){if("parameters"===y){var m,I=la(g[y]);try{var v=function(){var e=m.value;i[y].some((function(t){return t.name&&t.name===e.name||t.$ref&&t.$ref===e.$ref||t.$$ref&&t.$$ref===e.$$ref||t===e}))||i[y].push(e)};for(I.s();!(m=I.n()).done;)v()}catch(e){I.e(e)}finally{I.f()}}}else i[y]=g[y]}}catch(e){d.e(e)}finally{d.f()}}}};for(var u in a)c(u)}}return t.$$normalized=!0,e}function Iu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.requestInterceptor,r=t.responseInterceptor,o=e.withCredentials?"include":"same-origin";return function(t){return e({url:t,loadSpec:!0,requestInterceptor:n,responseInterceptor:r,headers:{Accept:Uc},credentials:o}).then((function(e){return e.body}))}}function vu(e){var t=e.fetch,n=e.spec,r=e.url,o=e.mode,i=e.allowMetaPatches,a=void 0===i||i,s=e.pathDiscriminator,c=e.modelPropertyMacro,u=e.parameterMacro,A=e.requestInterceptor,l=e.responseInterceptor,f=e.skipNormalization,h=e.useCircularStructures,p=e.http,d=e.baseDoc;return d=d||r,p=t||p||ts,n?g(n):Iu(p,{requestInterceptor:A,responseInterceptor:l})(d).then(g);function g(e){d&&(uu.refs.docCache[d]=e),uu.refs.fetchJSON=Iu(p,{requestInterceptor:A,responseInterceptor:l});var t,n=[uu.refs];return"function"==typeof u&&n.push(uu.parameters),"function"==typeof c&&n.push(uu.properties),"strict"!==o&&n.push(uu.allOf),(t={spec:e,context:{baseDoc:d},plugins:n,allowMetaPatches:a,pathDiscriminator:s,parameterMacro:u,modelPropertyMacro:c,useCircularStructures:h},new cu(t).dispatch()).then(f?function(){var e=ya(Ia().mark((function e(t){return Ia().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():mu)}}var wu=n(27361),Eu=n.n(wu);function Bu(){return Bu=ya(Ia().mark((function e(t,n){var r,o,i,a,s,c,u,A,l,f,h,p,d=arguments;return Ia().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=d.length>2&&void 0!==d[2]?d[2]:{},o=r.returnEntireTree,i=r.baseDoc,a=r.requestInterceptor,s=r.responseInterceptor,c=r.parameterMacro,u=r.modelPropertyMacro,A=r.useCircularStructures,l={pathDiscriminator:n,baseDoc:i,requestInterceptor:a,responseInterceptor:s,parameterMacro:c,modelPropertyMacro:u,useCircularStructures:A},f=mu({spec:t}),h=f.spec,e.next=6,vu(Xi(Xi({},l),{},{spec:h,allowMetaPatches:!0,skipNormalization:!0}));case 6:return p=e.sent,!o&&Array.isArray(n)&&n.length&&(p.spec=Eu()(p.spec,n)||null),e.abrupt("return",p);case 9:case"end":return e.stop()}}),e)}))),Bu.apply(this,arguments)}var Cu=function(){return null},bu=function(e){var t=e.spec,n=e.cb,r=void 0===n?Cu:n,o=e.defaultTag,i=void 0===o?"default":o,a=e.v2OperationIdCompatibilityMode,s={},c={};return yu(t,(function(e){var n,o=e.pathName,u=e.method,A=e.operation;(A.tags?(n=A.tags,Array.isArray(n)?n:[n]):[i]).forEach((function(e){if("string"==typeof e){c[e]=c[e]||{};var n,i=c[e],l=hu(A,o,u,{v2OperationIdCompatibilityMode:a}),f=r({spec:t,pathName:o,method:u,operation:A,operationId:l});if(s[l])s[l]+=1,i[ka()(n="".concat(l)).call(n,s[l])]=f;else if(void 0!==i[l]){var h,p,d=s[l]||1;s[l]=d+1,i[ka()(h="".concat(l)).call(h,s[l])]=f;var g=i[l];delete i[l],i[ka()(p="".concat(l)).call(p,d)]=g}else i[l]=f}}))})),c},Qu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.pathName,r=t.method,o=t.operationId;return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.requestInterceptor,s=e.responseInterceptor,c=e.userFetch;return e.execute(Xi({spec:e.spec,requestInterceptor:a,responseInterceptor:s,userFetch:c,pathName:n,method:r,parameters:t,operationId:o},i))}}},xu=n(95683);var _u=n(76489);function Su(e){return"[object Object]"===Object.prototype.toString.call(e)}function Tu(e){var t,n;return!1!==Su(e)&&(void 0===(t=e.constructor)||!1!==Su(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var Ou={body:function(e){var t=e.req,n=e.value;t.body=n},header:function(e){var t=e.req,n=e.parameter,r=e.value;t.headers=t.headers||{},void 0!==r&&(t.headers[n.name]=r)},query:function(e){var t=e.req,n=e.value,r=e.parameter;if(t.query=t.query||{},!1===n&&"boolean"===r.type&&(n="false"),0===n&&["number","integer"].indexOf(r.type)>-1&&(n="0"),n)t.query[r.name]={collectionFormat:r.collectionFormat,value:n};else if(r.allowEmptyValue&&void 0!==n){var o=r.name;t.query[o]=t.query[o]||{},t.query[o].allowEmptyValue=!0}},path:function(e){var t=e.req,n=e.value,r=e.parameter;t.url=t.url.split("{".concat(r.name,"}")).join(encodeURIComponent(n))},formData:function(e){var t=e.req,n=e.value,r=e.parameter;(n||r.allowEmptyValue)&&(t.form=t.form||{},t.form[r.name]={value:n,allowEmptyValue:r.allowEmptyValue,collectionFormat:r.collectionFormat})}};function Nu(e,t){return wa()(t).call(t,"application/json")?"string"==typeof e?e:xa()(e):e.toString()}function ku(e){var t=e.req,n=e.value,r=e.parameter,o=r.name,i=r.style,a=r.explode,s=r.content;if(s){var c=Oa()(s)[0];t.url=t.url.split("{".concat(o,"}")).join($a(Nu(n,c),{escape:!0}))}else{var u=Xa({key:r.name,value:n,style:i||"simple",explode:a||!1,escape:!0});t.url=t.url.split("{".concat(o,"}")).join(u)}}function Du(e){var t=e.req,n=e.value,r=e.parameter;if(t.query=t.query||{},r.content){var o=Oa()(r.content)[0];t.query[r.name]=Nu(n,o)}else if(!1===n&&(n="false"),0===n&&(n="0"),n){var i=r.style,a=r.explode,s=r.allowReserved;t.query[r.name]={value:n,serializationOption:{style:i,explode:a,allowReserved:s}}}else if(r.allowEmptyValue&&void 0!==n){var c=r.name;t.query[c]=t.query[c]||{},t.query[c].allowEmptyValue=!0}}var Fu=["accept","authorization","content-type"];function Uu(e){var t=e.req,n=e.parameter,r=e.value;if(t.headers=t.headers||{},!(Fu.indexOf(n.name.toLowerCase())>-1))if(n.content){var o=Oa()(n.content)[0];t.headers[n.name]=Nu(r,o)}else void 0!==r&&(t.headers[n.name]=Xa({key:n.name,value:r,style:n.style||"simple",explode:void 0!==n.explode&&n.explode,escape:!1}))}function Ru(e){var t=e.req,n=e.parameter,r=e.value;t.headers=t.headers||{};var o=ha(r);if(n.content){var i,a=Oa()(n.content)[0];t.headers.Cookie=ka()(i="".concat(n.name,"=")).call(i,Nu(r,a))}else if("undefined"!==o){var s="object"===o&&!Array.isArray(r)&&n.explode?"":"".concat(n.name,"=");t.headers.Cookie=s+Xa({key:n.name,value:r,escape:!1,style:n.style||"form",explode:void 0!==n.explode&&n.explode})}}var Pu=n(50706),Mu=n.n(Pu);var ju=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Lu=function(e){return Array.isArray(e)?e:[]},Gu=xc("OperationNotFoundError",(function(e,t,n){this.originalError=n,ea()(this,t||{})})),Hu={buildRequest:qu};function qu(e){var t,n,r=e.spec,o=e.operationId,i=e.responseContentType,a=e.scheme,s=e.requestInterceptor,c=e.responseInterceptor,u=e.contextUrl,A=e.userFetch,l=e.server,h=e.serverVariables,p=e.http,d=e.signal,g=e.parameters,y=e.parameterBuilders,m=fu(r);y||(y=m?f:Ou);var I={url:"",credentials:p&&p.withCredentials?"include":"same-origin",headers:{},cookies:{}};d&&(I.signal=d),s&&(I.requestInterceptor=s),c&&(I.responseInterceptor=c),A&&(I.userFetch=A);var v=gu(r,o);if(!v)throw new Gu("Operation ".concat(o," not found"));var w=v.operation,E=void 0===w?{}:w,B=v.method,C=v.pathName;if(I.url+=Ku({spec:r,scheme:a,contextUrl:u,server:l,serverVariables:h,pathName:C,method:B}),!o)return delete I.cookies,I;I.url+=C,I.method="".concat(B).toUpperCase(),g=g||{};var b=r.paths[C]||{};i&&(I.headers.accept=i);var Q=function(e){var t={};e.forEach((function(e){t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));var n=[];return Oa()(t).forEach((function(e){Oa()(t[e]).forEach((function(r){n.push(t[e][r])}))})),n}(ka()(t=ka()(n=[]).call(n,Lu(E.parameters))).call(t,Lu(b.parameters)));Q.forEach((function(e){var t,n,o=y[e.in];if("body"===e.in&&e.schema&&e.schema.properties&&(t=g),void 0===(t=e&&e.name&&g[e.name]))t=e&&e.name&&g[ka()(n="".concat(e.in,".")).call(n,e.name)];else if(function(e,t){return Ra()(t).call(t,(function(t){return t.name===e}))}(e.name,Q).length>1){var i;console.warn(ka()(i="Parameter '".concat(e.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(i,e.name,"' and the passed-in parameter values did not define an 'in' value."))}if(null!==t){if(void 0!==e.default&&void 0===t&&(t=e.default),void 0===t&&e.required&&!e.allowEmptyValue)throw new Error("Required parameter ".concat(e.name," is not provided"));if(m&&e.schema&&"object"===e.schema.type&&"string"==typeof t)try{t=JSON.parse(t)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}o&&o({req:I,parameter:e,value:t,operation:E,spec:r})}}));var x=Xi(Xi({},e),{},{operation:E});if((I=m?function(e,t){var n=e.operation,r=e.requestBody,o=e.securities,i=e.spec,a=e.attachContentTypeForEmptyPayload,s=e.requestContentType;t=function(e){var t=e.request,n=e.securities,r=void 0===n?{}:n,o=e.operation,i=void 0===o?{}:o,a=e.spec,s=Xi({},t),c=r.authorized,u=void 0===c?{}:c,A=i.security||a.security||[],l=u&&!!Oa()(u).length,f=Eu()(a,["components","securitySchemes"])||{};return s.headers=s.headers||{},s.query=s.query||{},Oa()(r).length&&l&&A&&(!Array.isArray(i.security)||i.security.length)?(A.forEach((function(e){Oa()(e).forEach((function(e){var t=u[e],n=f[e];if(t){var r=t.value||t,o=n.type;if(t)if("apiKey"===o)"query"===n.in&&(s.query[n.name]=r),"header"===n.in&&(s.headers[n.name]=r),"cookie"===n.in&&(s.cookies[n.name]=r);else if("http"===o){if(/^basic$/i.test(n.scheme)){var i,a=r.username||"",c=r.password||"",A=Mu()(ka()(i="".concat(a,":")).call(i,c));s.headers.Authorization="Basic ".concat(A)}/^bearer$/i.test(n.scheme)&&(s.headers.Authorization="Bearer ".concat(r))}else if("oauth2"===o||"openIdConnect"===o){var l,h=t.token||{},p=h[n["x-tokenName"]||"access_token"],d=h.token_type;d&&"bearer"!==d.toLowerCase()||(d="Bearer"),s.headers.Authorization=ka()(l="".concat(d," ")).call(l,p)}}}))})),s):t}({request:t,securities:o,operation:n,spec:i});var c=n.requestBody||{},u=Oa()(c.content||{}),A=s&&u.indexOf(s)>-1;if(r||a){if(s&&A)t.headers["Content-Type"]=s;else if(!s){var l=u[0];l&&(t.headers["Content-Type"]=l,s=l)}}else s&&A&&(t.headers["Content-Type"]=s);if(!e.responseContentType&&n.responses){var f,h=Ra()(f=Fa()(n.responses)).call(f,(function(e){var t=pa(e,2),n=t[0],r=t[1],o=parseInt(n,10);return o>=200&&o<300&&Tu(r.content)})).reduce((function(e,t){var n=pa(t,2)[1];return ka()(e).call(e,Oa()(n.content))}),[]);h.length>0&&(t.headers.accept=h.join(", "))}if(r)if(s){if(u.indexOf(s)>-1)if("application/x-www-form-urlencoded"===s||"multipart/form-data"===s)if("object"===ha(r)){var p=(c.content[s]||{}).encoding||{};t.form={},Oa()(r).forEach((function(e){t.form[e]={value:r[e],encoding:p[e]||{}}}))}else t.form=r;else t.body=r}else t.body=r;return t}(x,I):function(e,t){var n,r,o=e.spec,i=e.operation,a=e.securities,s=e.requestContentType,c=e.responseContentType,u=e.attachContentTypeForEmptyPayload;if(t=function(e){var t=e.request,n=e.securities,r=void 0===n?{}:n,o=e.operation,i=void 0===o?{}:o,a=e.spec,s=Xi({},t),c=r.authorized,u=void 0===c?{}:c,A=r.specSecurity,l=void 0===A?[]:A,f=i.security||l,h=u&&!!Oa()(u).length,p=a.securityDefinitions;return s.headers=s.headers||{},s.query=s.query||{},Oa()(r).length&&h&&f&&(!Array.isArray(i.security)||i.security.length)?(f.forEach((function(e){Oa()(e).forEach((function(e){var t=u[e];if(t){var n=t.token,r=t.value||t,o=p[e],i=o.type,a=o["x-tokenName"]||"access_token",c=n&&n[a],A=n&&n.token_type;if(t)if("apiKey"===i){var l="query"===o.in?"query":"headers";s[l]=s[l]||{},s[l][o.name]=r}else if("basic"===i)if(r.header)s.headers.authorization=r.header;else{var f,h=r.username||"",d=r.password||"";r.base64=Mu()(ka()(f="".concat(h,":")).call(f,d)),s.headers.authorization="Basic ".concat(r.base64)}else if("oauth2"===i&&c){var g;A=A&&"bearer"!==A.toLowerCase()?A:"Bearer",s.headers.authorization=ka()(g="".concat(A," ")).call(g,c)}}}))})),s):t}({request:t,securities:a,operation:i,spec:o}),t.body||t.form||u)if(s)t.headers["Content-Type"]=s;else if(Array.isArray(i.consumes)){var A=pa(i.consumes,1);t.headers["Content-Type"]=A[0]}else if(Array.isArray(o.consumes)){var l=pa(o.consumes,1);t.headers["Content-Type"]=l[0]}else i.parameters&&Ra()(n=i.parameters).call(n,(function(e){return"file"===e.type})).length?t.headers["Content-Type"]="multipart/form-data":i.parameters&&Ra()(r=i.parameters).call(r,(function(e){return"formData"===e.in})).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(s){var f,h,p=i.parameters&&Ra()(f=i.parameters).call(f,(function(e){return"body"===e.in})).length>0,d=i.parameters&&Ra()(h=i.parameters).call(h,(function(e){return"formData"===e.in})).length>0;(p||d)&&(t.headers["Content-Type"]=s)}return!c&&Array.isArray(i.produces)&&i.produces.length>0&&(t.headers.accept=i.produces.join(", ")),t}(x,I)).cookies&&Oa()(I.cookies).length){var _=Oa()(I.cookies).reduce((function(e,t){var n=I.cookies[t];return e+(e?"&":"")+_u.serialize(t,n)}),"");I.headers.Cookie=_}return I.cookies&&delete I.cookies,gs(I),I}var Yu=function(e){return e?e.replace(/\W/g,""):null};function Ku(e){return fu(e.spec)?function(e){var t=e.spec,n=e.pathName,r=e.method,o=e.server,i=e.contextUrl,a=e.serverVariables,s=void 0===a?{}:a,c=Eu()(t,["paths",n,(r||"").toLowerCase(),"servers"])||Eu()(t,["paths",n,"servers"])||Eu()(t,["servers"]),u="",A=null;if(o&&c&&c.length){var l=Sa()(c).call(c,(function(e){return e.url}));l.indexOf(o)>-1&&(u=o,A=c[l.indexOf(o)])}if(!u&&c&&c.length){u=c[0].url;var f=pa(c,1);A=f[0]}return u.indexOf("{")>-1&&function(e){for(var t,n=[],r=/{([^}]+)}/g;t=r.exec(e);)n.push(t[1]);return n}(u).forEach((function(e){if(A.variables&&A.variables[e]){var t=A.variables[e],n=s[e]||t.default,r=new RegExp("{".concat(e,"}"),"g");u=u.replace(r,n)}})),function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=n&&r?ra.parse(ra.resolve(r,n)):ra.parse(n),i=ra.parse(r),a=Yu(o.protocol)||Yu(i.protocol)||"",s=o.host||i.host,c=o.pathname||"";return"/"===(e=a&&s?ka()(t="".concat(a,"://")).call(t,s+c):c)[e.length-1]?Va()(e).call(e,0,-1):e}(u,i)}(e):(o=(t=e).spec,i=t.scheme,a=t.contextUrl,s=void 0===a?"":a,c=ra.parse(s),u=Array.isArray(o.schemes)?o.schemes[0]:null,A=i||u||Yu(c.protocol)||"http",l=o.host||c.host||"",f=o.basePath||"","/"===(n=A&&l?ka()(r="".concat(A,"://")).call(r,l+f):f)[n.length-1]?Va()(n).call(n,0,-1):n);var t,n,r,o,i,a,s,c,u,A,l,f}function zu(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?n.url=e:n=e,!(this instanceof zu))return new zu(n);ea()(this,n);var r=this.resolve().then((function(){return t.disableInterfaces||ea()(t,zu.makeApisTagOperation(t)),t}));return r.client=this,r}zu.http=ts,zu.makeHttp=function(e,t,n){return n=n||function(e){return e},t=t||function(e){return e},function(r){return"string"==typeof r&&(r={url:r}),es.mergeInQueryOrForm(r),r=t(r),n(e(r))}}.bind(null,zu.http),zu.resolve=vu,zu.resolveSubtree=function(e,t){return Bu.apply(this,arguments)},zu.execute=function(e){var t=e.http,n=e.fetch,r=e.spec,o=e.operationId,i=e.pathName,a=e.method,s=e.parameters,c=e.securities,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Gi(e);for(r=0;r<i.length;r++)n=i[r],xu(t).call(t,n)>=0||(o[n]=e[n]);return o}(e,t);if(Hi){var i=Hi(e);for(r=0;r<i.length;r++)n=i[r],xu(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ju),A=t||n||ts;i&&a&&!o&&(o=du(i,a));var l=Hu.buildRequest(Xi({spec:r,operationId:o,parameters:s,securities:c,http:A},u));return l.body&&(Tu(l.body)||Array.isArray(l.body))&&(l.body=xa()(l.body)),A(l)},zu.serializeRes=is,zu.serializeHeaders=ss,zu.clearCache=function(){uu.refs.clearCache()},zu.makeApisTagOperation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Qu(e);return{apis:bu({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},zu.buildRequest=qu,zu.helpers={opId:hu},zu.getBaseUrl=Ku,zu.prototype={http:ts,execute:function(e){return this.applyDefaults(),zu.execute(Xi({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},e))},resolve:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return zu.resolve(Xi({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},t)).then((function(t){return e.originalSpec=e.spec,e.spec=t.spec,e.errors=t.errors,e}))}},zu.prototype.applyDefaults=function(){var e=this.spec,t=this.url;if(t&&na()(t).call(t,"http")){var n=ra.parse(t);e.host||(e.host=n.host),e.schemes||(e.schemes=[n.protocol.replace(":","")]),e.basePath||(e.basePath="/")}},zu.helpers;var Vu=zu,Ju=n(54098),Wu=n.n(Ju),$u=n(89784);const Xu=n.n($u)()({storeAsString:!0}),Zu=e=>{if("object"==typeof e&&null!==e&&e.constructor===Object)return Object.entries(e).map((e=>{let[t,n]=e;return[t,Zu(n)]})).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:r}}),{});if(Array.isArray(e))return e.map((e=>Zu(e)));if("string"==typeof e&&E()(e).toString(10)===e){const t=E()(e);return t.toJSON=()=>t.toString(10),t}return e};var eA={stringify:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Xu.stringify(Zu(e),...n)},parse:Xu.parse};const tA=async e=>await new Promise((t=>setTimeout(t,e))),nA=(e,t)=>Object.fromEntries(Object.entries(e).map(t)),rA=(e,t)=>Object.fromEntries(Object.entries(e).filter(t)),oA=(e,t)=>"object"!=typeof t||null===t?t:Array.isArray(t)?t.map((t=>oA(e,t))):nA(t,(t=>{let[n,r]=t;return[e(n),oA(e,r)]})),iA=oA.bind(null,ct),aA=oA.bind(null,st);let sA=!1;var cA=async function(e){let{spec:t,internalUrl:n,disableBigNumbers:r,disableCaseConversion:o,responseInterceptor:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=t||await(await Wu()(e)).json();const a=r?JSON:eA,[s,c]=await Promise.all([e,n].map((e=>{if(!e)return null;const n={};return Vu({url:e,spec:t,requestInterceptor:e=>{if("GET"===e.method)return{...e,userFetch:async(e,t)=>{var r;const o=JSON.stringify({...t,url:e});null!==(r=n[o])&&void 0!==r||(n[o]=Wu()(e,t));try{return(await n[o]).clone()}finally{delete n[o]}}}},responseInterceptor:e=>{var t;if(""===e.text||0===(null===(t=e.text)||void 0===t?void 0:t.size))return e;const n=a.parse(e.text);return Object.assign(e,{body:o?n:aA(n)}),i&&i(e)||e}})}))),u=Object.assign({},...s.apis.external?[s.apis.external]:Object.values(s.apis),nA((null==c?void 0:c.apis.internal)||{},(e=>{let[t,n]=e;return[t,function(){return sA||(console.warn('SDK\'s wrapper of aeternity node internal API is deprecated, please use external equivalent (for example, "sdk.api.protectedDryRunTxs" instead of "sdk.api.dryRunTxs") or create a wrapper of internal API by yourself (using "genSwaggerClient")'),sA=!0),n(...arguments)}]}))),A=Object.values(t.paths).map((e=>Object.values(e))).flat().reduce(((e,t)=>({...e,[t.operationId]:t})),{}),l={},f=nA(u,(e=>{let[t,n]=e;const r=t.slice(0,1).toLowerCase()+st(t.slice(1));return[r,async function(){for(var e,i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];const u=A[t],f=[...u.parameters,...u.requestBody?[{required:u.requestBody.required,schema:Object.values(u.requestBody.content)[0].schema,name:"__requestBody"}]:[]],h=f.filter((e=>e.required)).map((e=>e.name));if(![0,1].includes(s.length-h.length))throw new U(r,h.length,s.length);const p=h.reduce(((e,t,n)=>({...e,[t]:s[n]})),s[h.length]||{}),{__requestBody:d,__queue:g,...y}=nA(p,(e=>{let[t,n]=e;if("object"!=typeof n)return[t,n];const r=Object.keys(f.find((e=>e.name===t)).schema.properties),i=rA(o?n:iA(n),(e=>{let[t]=e;return r.includes(t)}));return[t,a.stringify(i)]})),m=async()=>(await n(y,{requestBody:d})).body;if(!g)return m();const I=(null!==(e=l[g])&&void 0!==e?e:Promise.resolve()).then(m,m);return l[g]=I.then((()=>new Promise((e=>setTimeout(e,750))))),I}]}));return Object.assign(s,{api:f})};function uA(e,t,n){const r=e=>e.split(/[-+]/)[0].split(".").map((e=>+e)),o=r(e),i=r(t),a=r(n),s=Math.max(...o,...i,...a)+1,c=e=>e.reverse().reduce(((e,t,n)=>e+t*Math.pow(s,n)),0),u=c(o),A=c(i),l=c(a);return u>=A&&u<l}function AA(){var e;let{networkId:t,force:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=t||this.networkId||(null===(e=this.selectedNode)||void 0===e?void 0:e.networkId);if(!n&&!r)throw new j("networkId is not provided");return n&&!r?null:r}const lA=Li.compose({async init(e){let{url:t,internalUrl:n,ignoreVersion:r}=e;if(!t)throw new j('"url" required');this.url=t.replace(/\/$/,""),this.internalUrl=null==n?void 0:n.replace(/\/$/,"");const o=await cA(`${this.url}/api?oas3`,{internalUrl:this.internalUrl,responseInterceptor:e=>{if(!e.ok)return Object.assign(e,{statusText:`${new URL(e.url).pathname.slice(1)} error: `+e.body.reason})}});if(this.version=o.spec.info.version,!uA(this.version,fA,hA)&&!r)throw new J("node",this.version,fA,hA);this.api=o.api;const{nodeRevision:i,genesisKeyBlockHash:a,networkId:s,protocols:c,topBlockHeight:u}=await this.api.getStatus();return this.consensusProtocolVersion=c.filter((e=>{let{effectiveAtHeight:t}=e;return u>=t})).reduce(((e,t)=>t.effectiveAtHeight>e.effectiveAtHeight?t:e),{effectiveAtHeight:-1,version:0}).version,this.nodeNetworkId=s,Object.assign(this,{revision:i,genesisHash:a})},methods:{getNodeInfo(){return{url:this.url,internalUrl:this.internalUrl,nodeNetworkId:this.nodeNetworkId,version:this.version,consensusProtocolVersion:this.consensusProtocolVersion}}},props:{version:null,consensusProtocolVersion:null,nodeNetworkId:null}}),fA="6.2.0",hA="7.0.0";var pA=lA,dA=n(48764).Buffer;const gA=e=>!["sign","address"].find((t=>"function"!=typeof e[t]));var yA=Fi()({init(e){let{networkId:t}=e;!this.networkId&&t&&(this.networkId=t)},methods:{signTransaction:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[this.getNetworkId(t)];t.innerTx&&n.push("inner_tx");const r=Lr(e,"tx"),o=dA.concat([dA.from(n.join("-")),mt(r)]),i=[await this.sign(o,t)];return di({encodedTx:r,signatures:i},An.signed).tx},getNetworkId:AA,signMessage:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{returnHex:!1};const n=await this.sign(mo(e),t);return t.returnHex?dA.from(n).toString("hex"):n},verifyMessage:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return vo(e,"string"==typeof t?dA.from(t,"hex"):t,Lr(await this.address(n)))}}},(0,Ui.required)({methods:{sign:Ui.required,address:Ui.required}}));const mA=Fi()(Ri,yA,Mi,{methods:{send:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...this.Ae.defaults,...t},{contractId:r,authFun:o}=t.innerTx?{contractId:!1}:await this.getAccount(await this.address(n)),i=r?await this.signUsingGA(e,{...n,authFun:o}):await this.signTransaction(e,n);return n.innerTx?{hash:mi.buildTxHash(i),rawTx:i}:this.sendTransaction(i,n)},spend:async function(e,t,n){const r={...this.Ae.defaults,...n};return this.send(await this.spendTx({...r,senderId:await this.address(r),recipientId:await this.resolveName(t,"account_pubkey",r),amount:e}),r)},transferFunds:async function(e,t,n){if(e<0||e>1)throw new D("fraction","a number between 0 and 1",e);const r={...this.Ae.defaults,...n},o=await this.resolveName(t,"account_pubkey",r),i=await this.address(r),a=new(E())(await this.balance(i)),s=a.times(e).integerValue(E().ROUND_HALF_UP),{tx:{fee:c}}=mi.unpackTx(await this.spendTx({...r,senderId:i,recipientId:o,amount:s})),u=s.plus(c).gt(a)?a.minus(c):s;return this.send(await this.spendTx({...r,senderId:i,recipientId:o,amount:u}),r)},payForTransaction:async function(e,t){const n={...this.Ae.defaults,...t};return this.send(await this.payingForTx({...n,payerId:await this.address(n),tx:e}),n)},destroyInstance:function(){["destroyClient","destroyServer"].forEach((e=>this[e]&&"function"==typeof this[e]&&this[e]()))},signUsingGA:async function(e){let{authData:t,authFun:n,...r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.createMetaTx(e,t,n,r)}},deepProps:{Ae:{defaults:{denomination:Ho.AETTOS}}}});var IA=mA,vA=n(48764).Buffer;const wA=[(e,t)=>{let{encodedTx:n,signatures:r}=e,{account:o,node:i,parentTxTypes:a}=t;if(void 0===(null!=n?n:r))return[];if(1!==r.length)return[];const s=vA.from([i.nodeNetworkId,...a.includes(An.payingFor)?["inner_tx"]:[]].join("-")),c=vA.concat([s,n.rlpEncoded]),u=vA.concat([s,mt(n.rlpEncoded)]),A=Lr(o.id,"ak");return yo(c,r[0],A)||yo(u,r[0],A)?[]:[{message:"Signature cannot be verified, please ensure that you transaction have the correct prefix and the correct private key for the sender address",key:"InvalidSignature",checkedKeys:["encodedTx","signatures"]}]},(e,t)=>{let{encodedTx:n,tx:r}=e,{node:o,parentTxTypes:i,txType:a}=t;return void 0===(null!=n?n:r)?[]:BA(Gr((null!=n?n:r).rlpEncoded,"tx"),o,[...i,a])},(e,t)=>{let{txType:n}=t;if(void 0===e.fee)return[];const r=Ai(0,n,{gas:+e.gas||0,params:e,showWarning:!1,vsn:e.VSN});return new(E())(r).lte(e.fee)?[]:[{message:`Fee ${e.fee} is too low, minimum fee for this transaction is ${r}`,key:"InsufficientFee",checkedKeys:["fee"]}]},(e,t)=>{let{ttl:n}=e,{height:r}=t;return void 0===n?[]:(n=+n,0===n||n>=r?[]:[{message:`TTL ${n} is already expired, current height is ${r}`,key:"ExpiredTTL",checkedKeys:["ttl"]}])},(e,t)=>{var n;let{amount:r,fee:o,nameFee:i,tx:a}=e,{account:s,parentTxTypes:c,txType:u}=t;if(void 0===(null!==(n=null!=r?r:o)&&void 0!==n?n:i))return[];const A=new(E())(o).plus(i||0).plus(r||0).plus(u===An.payingFor?a.tx.encodedTx.tx.fee:0).minus(c.includes(An.payingFor)?o:0);return A.lte(s.balance)?[]:[{message:`Account balance ${s.balance} is not enough to execute the transaction that costs ${A.toFixed()}`,key:"InsufficientBalance",checkedKeys:["amount","fee","nameFee"]}]},(e,t)=>{let{nonce:n}=e,{account:r,parentTxTypes:o}=t;if(void 0===n||o.includes(An.gaMeta))return[];n=+n;const i=r.nonce+1;return n===i?[]:[{...n<i?{message:`Nonce ${n} is already used, valid nonce is ${i}`,key:"NonceAlreadyUsed"}:{message:`Nonce ${n} is too high, valid nonce is ${i}`,key:"NonceHigh"},checkedKeys:["nonce"]}]},e=>{let{gasPrice:t}=e;return void 0===t||t>=Nt?[]:[{message:`Gas price ${t} must be bigger then ${Nt}`,key:"MinGasPrice",checkedKeys:["gasPrice"]}]},(e,t)=>{let{ctVersion:n,abiVersion:r}=e,{txType:o,node:i}=t;const{consensusProtocolVersion:a}=i.getNodeInfo(),s=pn[a];if(!s)throw new z(`Unsupported protocol: ${a}`);n||(n={abiVersion:r});const c=s[o];return c&&Object.entries(n).some((e=>{let[t,n]=e;return!c[t].includes(+n)}))?[{message:`ABI/VM version ${JSON.stringify(n)} is wrong, supported is: ${JSON.stringify(c)}`,key:"VmAndAbiVersionMismatch",checkedKeys:["ctVersion","abiVersion"]}]:[]},async(e,t)=>{let{contractId:n}=e,{txType:r,node:o}=t;if(An.contractCall!==r)return[];try{const{active:e}=await o.api.getContract(n);return e?[]:[{message:`Contract ${n} is not active`,key:"ContractNotActive",checkedKeys:["contractId"]}]}catch(e){var i,a;if(null===(i=e.response)||void 0===i||null===(a=i.body)||void 0===a||!a.reason)throw e;return[{message:e.response.body.reason,key:"ContractNotFound",checkedKeys:["contractId"]}]}}],EA=e=>["senderId","accountId","ownerId","callerId","oracleId","fromId","initiator","gaId","payerId"].map((t=>e[t])).filter((e=>e)).map((e=>e.replace(/^ok_/,"ak_")))[0];async function BA(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const{tx:o,txType:i}=gi(e),a=null!==(n=EA(o))&&void 0!==n?n:i===An.signed?EA(o.encodedTx.tx):null,[s,{height:c}]=await Promise.all([a&&t.api.getAccountByPubkey(a).catch((()=>({id:a,balance:new(E())(0),nonce:0}))),t.api.getCurrentKeyBlockHeight()]);return(await Promise.all(wA.map((e=>e(o,{txType:i,node:t,account:s,height:c,parentTxTypes:r}))))).flat()}var CA=Fi()({init(){let{nodes:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pool=new Map,this.validateNodes(e),e.forEach(((e,t)=>{const{name:n,instance:r}=e;this.addNode(n,r,0===t)})),e.length&&this.selectNode(e[0].name)},propertyDescriptors:{api:{enumerable:!0,configurable:!1,get(){if(!this.selectedNode||!this.selectedNode.instance)throw new Me("You can't use Node API. Node is not connected or not defined!");return this.selectedNode.instance.api}}},methods:{addNode(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.pool.has(e))throw new Pe(e);this.validateNodes([{name:e,instance:t}]),this.pool.set(e,{name:e,instance:t,url:t.url,internalUrl:t.internalUrl,networkId:t.nodeNetworkId,version:t.version,consensusProtocolVersion:t.consensusProtocolVersion}),!n&&this.selectedNode||this.selectNode(e)},selectNode(e){if(!this.pool.has(e))throw new Me(`Node with name ${e} not in pool`);this.selectedNode=this.pool.get(e)},getNetworkId:AA,isNodeConnected(){return!!this.selectedNode.instance},getNodeInfo(){if(!this.isNodeConnected())throw new Re;return{name:this.selectedNode.name,...this.selectedNode.instance.getNodeInfo()}},getNodesInPool(){return Array.from(this.pool.entries()).map((e=>{let[t,n]=e;return{name:t,...n.instance.getNodeInfo()}}))},validateNodes(e){if(!Array.isArray(e))throw new Y('"nodes" should be an array');const t=e.map((e=>typeof e)).find((e=>"object"!==e));if(t)throw new Y(`Each node should be an object, got ${t} instead`);const n=e.find((e=>"string"!=typeof e.name||"object"!=typeof e.instance));if(t)throw new Y(`Each node should have name (string), instance (object) fields, got ${JSON.stringify(n)} instead`);const r=e.map((e=>e.instance)).find((e=>"object"!=typeof e.api||"string"!=typeof e.genesisHash||"number"!=typeof e.consensusProtocolVersion));if(r)throw new Y(`Each node instance should have api (object), consensusProtocolVersion (number), genesisHash (string) fields, got ${JSON.stringify(r)} instead`)}},props:{selectedNode:{}}});async function bA(e){const t=this._txDryRun[e];let n;delete this._txDryRun[e];try{n=await this.api.protectedDryRunTxs({top:t[0].top,txEvents:t[0].txEvents,txs:t.map((e=>({tx:e.tx}))),accounts:Array.from(new Set(t.map((e=>e.accountAddress)))).map((e=>({pubKey:e,amount:Dt.amount})))})}catch(e){return void t.forEach((t=>{let{reject:n}=t;return n(e)}))}const{results:r,txEvents:o}=n;r.forEach(((e,n)=>{let{result:r,reason:i,...a}=e;const{resolve:s,reject:c,tx:u,options:A,accountAddress:l}=t[n];if("ok"===r)return s({...a,txEvents:o});c(Object.assign(new He(i),{tx:u,accountAddress:l,options:A}))}))}const QA=Mi.compose(CA,{methods:{sendTransaction:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...this.Ae.defaults,...t};if(n.verify){const t=await BA(e,this.selectedNode.instance);if(t.length){const n="Transaction verification errors: "+t.map((e=>e.message)).join(", ");throw Object.assign(new Ke(n),{code:"TX_VERIFICATION_ERROR",validation:t,transaction:e})}}try{var r;const{txHash:o}=await this.api.postTransaction({tx:e},{__queue:`tx-${await(null===(r=this.address)||void 0===r?void 0:r.call(this,t).catch((()=>"")))}`});if(n.waitMined){const n={...await this.poll(o,t),rawTx:e};return t.confirm?{...n,confirmationHeight:await this.waitForTxConfirm(o,t)}:n}return{hash:o,rawTx:e}}catch(t){throw Object.assign(t,{rawTx:e,verifyTx:()=>BA(e,this.selectedNode.instance)})}},balance:async function(e){let{height:t,hash:n,format:r=Ho.AETTOS}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{balance:o}=await this.getAccount(e,{hash:n,height:t});return zo(o,{targetDenomination:r}).toString()},getBalance:async function(e){let{height:t,hash:n,format:r=Ho.AETTOS}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{balance:o}=await this.getAccount(e,{hash:n,height:t}).catch((e=>({balance:0})));return zo(o,{targetDenomination:r}).toString()},getAccount:async function(e){let{height:t,hash:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t?this.api.getAccountByPubkeyAndHeight(e,t):n?this.api.getAccountByPubkeyAndHash(e,n):this.api.getAccountByPubkey(e)},tx:async function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=await this.api.getTransactionByHash(e);if(["ContractCreateTx","ContractCallTx","ChannelForceProgressTx"].includes(n.tx.type)&&t&&-1!==n.blockHeight)try{return{...n,...await this.getTxInfo(e)}}catch(e){}return n},height:async function(){return(await this.api.getCurrentKeyBlockHeight()).height},awaitHeight:async function(e){let t,{interval:n=this._getPollInterval("block"),attempts:r=20}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(let o=0;o<r;o++)if(o&&await tA(n),t=await this.height(),t>=e)return t;throw new H((r-1)*n,t,e)},poll:async function(e){let{blocks:t=10,interval:n=this._getPollInterval("microblock")}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=await this.height()+t;do{const t=await this.api.getTransactionByHash(e);if(-1!==t.blockHeight)return t;await tA(n)}while(await this.height()<r);const o=this.api.getCheckTxInPool&&(await this.api.getCheckTxInPool(e)).status;throw new q(t,e,o)},getTxInfo:async function(e){const t=await this.api.getTransactionInfoByHash(e);return t.callInfo||t},mempool:async function(){return this.api.getPendingTransactions()},getCurrentGeneration:async function(){return this.api.getCurrentGeneration()},getGeneration:async function(e){if("string"==typeof e)return this.api.getGenerationByHash(e);if("number"==typeof e)return this.api.getGenerationByHeight(e);throw new D("hashOrHeight","a string or number",e)},getMicroBlockHeader:async function(e){return this.api.getMicroBlockHeaderByHash(e)},getMicroBlockTransactions:async function(e){return(await this.api.getMicroBlockTransactionsByHash(e)).transactions},getKeyBlock:async function(e){if("string"==typeof e)return this.api.getKeyBlockByHash(e);if("number"==typeof e)return this.api.getKeyBlockByHeight(e);throw new D("hashOrHeight","a string or number",e)},txDryRun:async function(e,t,n){var r,o,i;let{top:a,txEvents:s,combine:c}=n;const u=c?[a,s].join():"immediate";return null!==(r=this._txDryRun)&&void 0!==r||(this._txDryRun={}),null!==(i=(o=this._txDryRun)[u])&&void 0!==i||(o[u]=[]),new Promise(((n,r)=>{var o,i;this._txDryRun[u].push({tx:e,accountAddress:t,top:a,txEvents:s,resolve:n,reject:r}),c?null!==(i=(o=this._txDryRun[u]).timeout)&&void 0!==i||(o.timeout=setTimeout(bA.bind(this,u))):bA.call(this,u)}))},getContractByteCode:async function(e){return this.api.getContractCode(e)},getContract:async function(e){return this.api.getContract(e)},getName:async function(e){return this.api.getNameEntryByName(e)},waitForTxConfirm:async function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{confirm:3};n.confirm=!0===n.confirm?3:n.confirm;const{blockHeight:r}=await this.api.getTransactionByHash(t),o=await this.awaitHeight(r+n.confirm,n),{blockHeight:i}=await this.api.getTransactionByHash(t);switch(i){case-1:throw new Ze(t);case r:return o;default:return e(t,n)}},resolveName:async function(e,t){let{verify:n,resolveByNode:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||"string"!=typeof e)throw new te(`Name or address should be a string: ${e}`);try{return Lr(e),e}catch(e){}if($r(e)){if(n||r){const n=(await this.api.getNameEntryByName(e)).pointers.find((e=>e.key===t));if(!n)throw new Z(`Name ${e} don't have pointers for ${t}`);if(r)return n.id}return Tr(e)}throw new te(`Invalid name or address: ${e}`)}}});var xA=QA,_A=n(48764).Buffer;const SA=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"!=typeof t)throw new Y('tx "params" should be an object');if("string"!=typeof e||!Object.values(An).includes(e))throw new et(`Unknown transaction type ${e}`);const r=Ai(t.fee,e,{gas:t.gas,params:t,vsn:t.vsn}),{rlpEncoded:o,binary:i,tx:a,txObject:s}=di({...t,fee:r},e,{vsn:t.vsn,...n});return{rlpEncoded:o,binary:i,encodedTx:a,params:s,type:e}},TA=e=>{if(!e)throw new Ke(`Invalid transaction: ${e}`);if("string"==typeof e){const{txType:t,tx:n,rlpEncoded:r,binary:o}=gi(e);return{encodedTx:e,type:t,params:n,rlpEncoded:r,binary:o}}if(e instanceof Uint8Array){const{txType:t,tx:n,rlpEncoded:r,binary:o}=gi(e,!0);return{encodedTx:Gr(e,"tx"),type:t,params:n,rlpEncoded:r,binary:o}}throw new Ke(`"tx" should be a string or Uint8Array, got ${e} instead`)},OA=Fi()({init(){let{tx:e,params:t,type:n,options:r={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.options=r,this.signatures=[],Object.assign(this,function(){let{tx:e,params:t,type:n,options:r={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t&&n)return SA(n,t,r);if(e)return TA(e);throw new Ke('Invalid TxObject arguments. Please provide one of { tx: "tx_asdasd23..." } or { type: "spendTx", params: {...} }')}({tx:e,params:t,type:n,options:r})),this.type===An.signed){const{signatures:e,encodedTx:{txType:t,tx:n}}=this.params;this.signatures=e,this.params=n,this.type=t,this.isSigned=!0}},statics:{fromString:e=>OA({tx:e}),fromRlp:e=>OA({tx:e})},methods:{setProp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!=typeof e)throw new Y("Props should be an object");return this.isSigned=!1,this.signatures=[],Object.assign(this,SA(this.type,{...this.params,...e,fee:null},{...this.options,...t})),this},getSignatures(){return this.signatures},addSignature(e){if(e=ut(e)?_A.from(e,"hex"):e,!(_A.isBuffer(e)||e instanceof Uint8Array))throw new Ye("Invalid signature, signature must be of type Buffer or Uint8Array");Object.assign(this,SA(An.signed,{encodedTx:this.rlpEncoded,signatures:[[...this.signatures,e]]}));const{signatures:t,encodedTx:{txType:n,tx:r}}=this.params;this.signatures=t,this.params=r,this.type=n,this.isSigned=!0},calculateMinFee(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={...this.params,...e};return Ai(0,this.type,{gas:t.gas,params:t,vsn:t.vsn})}}});var NA=OA;async function kA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(0===e)return 0;if(e<0)throw new D("ttl","greater or equal to 0",e);if(t){const{height:t}=await this.api.getCurrentKeyBlock();return+t+e}return e}const DA=xA.compose(Ri,{init(e){let{nativeMode:t=!0,showWarning:n=!1}=e;this.nativeMode=t,this.showWarning=n},props:{nativeMode:!0,showWarning:!1},methods:{spendTx:async function(e){let{senderId:t,recipientId:n,amount:r,payload:o=""}=e;const{fee:i,ttl:a,nonce:s}=await this.prepareTxParams(An.spend,{senderId:t,...arguments[0],payload:o}),{tx:c}=this.nativeMode?{tx:OA({params:{...arguments[0],recipientId:n,senderId:t,nonce:s,ttl:a,payload:o},type:An.spend}).encodedTx}:await this.api.postSpend({...arguments[0],amount:parseInt(r),recipientId:n,senderId:t,nonce:s,ttl:a,fee:parseInt(i),payload:o});return c},namePreclaimTx:async function(e){let{accountId:t,commitmentId:n}=e;const{fee:r,ttl:o,nonce:i}=await this.prepareTxParams(An.namePreClaim,{senderId:t,...arguments[0]}),{tx:a}=this.nativeMode?{tx:OA({params:{...arguments[0],nonce:i,ttl:o,fee:r},type:An.namePreClaim}).encodedTx}:await this.api.postNamePreclaim({...arguments[0],nonce:i,ttl:o,fee:parseInt(r)});return a},nameClaimTx:async function(e){let{accountId:t,name:n,nameSalt:r,vsn:o=2}=e;const{fee:i,ttl:a,nonce:s}=await this.prepareTxParams(An.nameClaim,{senderId:t,...arguments[0],vsn:o}),{tx:c}=this.nativeMode?{tx:OA({params:{...arguments[0],nonce:s,ttl:a,fee:i,vsn:o},type:An.nameClaim}).encodedTx}:await this.api.postNameClaim({...arguments[0],nonce:s,ttl:a,fee:parseInt(i),name:Gr(n,"nm")});return c},nameTransferTx:async function(e){let{accountId:t,nameId:n,recipientId:r}=e;const{fee:o,ttl:i,nonce:a}=await this.prepareTxParams(An.nameTransfer,{senderId:t,...arguments[0]}),{tx:s}=this.nativeMode?{tx:OA({params:{...arguments[0],recipientId:r,nonce:a,ttl:i,fee:o},type:An.nameTransfer}).encodedTx}:await this.api.postNameTransfer({...arguments[0],recipientId:r,nonce:a,ttl:i,fee:parseInt(o)});return s},nameUpdateTx:async function(e){let{accountId:t,nameId:n,nameTtl:r,pointers:o,clientTtl:i}=e;const{fee:a,ttl:s,nonce:c}=await this.prepareTxParams(An.nameUpdate,{senderId:t,...arguments[0]}),{tx:u}=this.nativeMode?{tx:OA({params:{...arguments[0],nonce:c,ttl:s,fee:a},type:An.nameUpdate}).encodedTx}:await this.api.postNameUpdate({...arguments[0],nonce:c,ttl:s,fee:parseInt(a)});return u},nameRevokeTx:async function(e){let{accountId:t,nameId:n}=e;const{fee:r,ttl:o,nonce:i}=await this.prepareTxParams(An.nameRevoke,{senderId:t,...arguments[0]}),{tx:a}=this.nativeMode?{tx:OA({params:{...arguments[0],nonce:i,ttl:o,fee:r},type:An.nameRevoke}).encodedTx}:await this.api.postNameRevoke({...arguments[0],nonce:i,ttl:o,fee:parseInt(r)});return a},contractCreateTx:async function(e){let{ownerId:t,code:n,vmVersion:r,abiVersion:o,amount:i,gas:a,gasPrice:s=Nt,callData:c}=e;const u=this.getVmVersion(An.contractCreate,arguments[0]),{fee:A,ttl:l,nonce:f}=await this.prepareTxParams(An.contractCreate,{senderId:t,...arguments[0],ctVersion:u,gasPrice:s});return this.nativeMode?{tx:OA({params:{...arguments[0],nonce:f,ttl:l,fee:A,ctVersion:u,gasPrice:s},type:An.contractCreate}).encodedTx,contractId:xr(t,f)}:this.api.postContractCreate({...arguments[0],nonce:f,ttl:l,fee:parseInt(A),gas:parseInt(a),gasPrice:s,vmVersion:u.vmVersion,abiVersion:u.abiVersion})},contractCallTx:async function(e){let{callerId:t,contractId:n,abiVersion:r,amount:o,gas:i,gasPrice:a=Nt,callData:s}=e;const c=this.getVmVersion(An.contractCall,arguments[0]),{fee:u,ttl:A,nonce:l}=await this.prepareTxParams(An.contractCall,{senderId:t,...arguments[0],gasPrice:a,abiVersion:c.abiVersion}),{tx:f}=this.nativeMode?{tx:OA({params:{...arguments[0],nonce:l,ttl:A,fee:u,abiVersion:c.abiVersion,gasPrice:a},type:An.contractCall}).encodedTx}:await this.api.postContractCall({...arguments[0],nonce:l,ttl:A,fee:parseInt(u),gas:parseInt(i),gasPrice:a,abiVersion:c.abiVersion});return f},prepareTxParams:async function(e,t){let{senderId:n,nonce:r,ttl:o,fee:i,gas:a,absoluteTtl:s,vsn:c,strategy:u}=t;r=r||(await this.api.getAccountNextNonce(n,{strategy:u}).catch((e=>({nextNonce:1})))).nextNonce;const A=await kA.call(this,o,!s),l=Ai(i,e,{showWarning:this.showWarning,gas:a,params:{...arguments[1],nonce:r,ttl:A},vsn:c});return{fee:l,ttl:A,nonce:r}},oracleRegisterTx:async function(e){let{accountId:t,queryFormat:n,responseFormat:r,queryFee:o,oracleTtl:i,abiVersion:a=fn.NO_ABI}=e;const{fee:s,ttl:c,nonce:u}=await this.prepareTxParams(An.oracleRegister,{senderId:t,...arguments[0],abiVersion:a}),{tx:A}=this.nativeMode?{tx:OA({params:{accountId:t,queryFee:o,abiVersion:a,fee:s,oracleTtl:i,nonce:u,ttl:c,queryFormat:n,responseFormat:r},type:An.oracleRegister}).encodedTx}:await this.api.postOracleRegister({accountId:t,queryFee:o,abiVersion:a,fee:parseInt(s),oracleTtl:i,nonce:u,ttl:c,queryFormat:n,responseFormat:r});return A},oracleExtendTx:async function(e){let{oracleId:t,callerId:n,oracleTtl:r}=e;const{fee:o,ttl:i,nonce:a}=await this.prepareTxParams(An.oracleExtend,{senderId:n,...arguments[0]}),{tx:s}=this.nativeMode?{tx:OA({params:{oracleId:t,fee:o,oracleTtl:r,nonce:a,ttl:i},type:An.oracleExtend}).encodedTx}:await this.api.postOracleExtend({oracleId:t,fee:parseInt(o),oracleTtl:r,nonce:a,ttl:i});return s},oraclePostQueryTx:async function(e){let{oracleId:t,responseTtl:n,query:r,queryTtl:o,queryFee:i,senderId:a}=e;const{fee:s,ttl:c,nonce:u}=await this.prepareTxParams(An.oracleQuery,{senderId:a,...arguments[0]}),{tx:A}=this.nativeMode?{tx:OA({params:{oracleId:t,responseTtl:n,query:r,queryTtl:o,fee:s,queryFee:i,ttl:c,nonce:u,senderId:a},type:An.oracleQuery}).encodedTx}:await this.api.postOracleQuery({oracleId:t,responseTtl:n,query:r,queryTtl:o,fee:parseInt(s),queryFee:i,ttl:c,nonce:u,senderId:a});return A},oracleRespondTx:async function(e){let{oracleId:t,callerId:n,responseTtl:r,queryId:o,response:i}=e;const{fee:a,ttl:s,nonce:c}=await this.prepareTxParams(An.oracleResponse,{senderId:n,...arguments[0]}),{tx:u}=this.nativeMode?{tx:OA({params:{oracleId:t,responseTtl:r,queryId:o,response:i,fee:a,ttl:s,nonce:c},type:An.oracleResponse}).encodedTx}:await this.api.postOracleRespond({oracleId:t,responseTtl:r,queryId:o,response:i,fee:parseInt(a),ttl:s,nonce:c});return u},channelCloseSoloTx:async function(e){let{channelId:t,fromId:n,payload:r,poi:o}=e;const{fee:i,ttl:a,nonce:s}=await this.prepareTxParams(An.channelCloseSolo,{senderId:n,...arguments[0],payload:r}),{tx:c}=this.nativeMode?di({...arguments[0],channelId:t,fromId:n,payload:r,poi:o,ttl:a,fee:i,nonce:s},An.channelCloseSolo):await this.api.postChannelCloseSolo({...arguments[0],channelId:t,fromId:n,payload:r,poi:o,ttl:a,fee:parseInt(i),nonce:s});return c},channelSlashTx:async function(e){let{channelId:t,fromId:n,payload:r,poi:o}=e;const{fee:i,ttl:a,nonce:s}=await this.prepareTxParams(An.channelSlash,{senderId:n,...arguments[0],payload:r}),{tx:c}=this.nativeMode?di({...arguments[0],channelId:t,fromId:n,payload:r,poi:o,ttl:a,fee:i,nonce:s},An.channelSlash):await this.api.postChannelSlash({...arguments[0],channelId:t,fromId:n,payload:r,poi:o,ttl:a,fee:parseInt(i),nonce:s});return c},channelSettleTx:async function(e){let{channelId:t,fromId:n,initiatorAmountFinal:r,responderAmountFinal:o}=e;const{fee:i,ttl:a,nonce:s}=await this.prepareTxParams(An.channelSettle,{senderId:n,...arguments[0]}),{tx:c}=this.nativeMode?di({...arguments[0],channelId:t,fromId:n,initiatorAmountFinal:r,responderAmountFinal:o,ttl:a,fee:i,nonce:s},An.channelSettle):await this.api.postChannelSettle({...arguments[0],channelId:t,fromId:n,initiatorAmountFinal:parseInt(r),responderAmountFinal:parseInt(o),ttl:a,fee:parseInt(i),nonce:s});return c},channelSnapshotSoloTx:async function(e){let{channelId:t,fromId:n,payload:r}=e;const{fee:o,ttl:i,nonce:a}=await this.prepareTxParams(An.channelSnapshotSolo,{senderId:n,...arguments[0],payload:r}),{tx:s}=this.nativeMode?di({...arguments[0],channelId:t,fromId:n,payload:r,ttl:i,fee:o,nonce:a},An.channelSnapshotSolo):await this.api.postChannelSnapshotSolo({...arguments[0],channelId:t,fromId:n,payload:r,ttl:i,fee:parseInt(o),nonce:a});return s},gaAttachTx:async function(e){let{ownerId:t,code:n,vmVersion:r,abiVersion:o,authFun:i,gas:a,gasPrice:s=Nt,callData:c}=e;const u=this.getVmVersion(An.contractCreate,arguments[0]),{fee:A,ttl:l,nonce:f}=await this.prepareTxParams(An.gaAttach,{senderId:t,...arguments[0],ctVersion:u,gasPrice:s});return{tx:OA({params:{...arguments[0],nonce:f,ttl:l,fee:A,ctVersion:u,gasPrice:s},type:An.gaAttach}).encodedTx,contractId:xr(t,f)}},payingForTx:async function(e){let{tx:t,payerId:n,...r}=e;const o={tx:gi(t),payerId:n},{fee:i,nonce:a}=await this.prepareTxParams(An.payingFor,{...o,...r,senderId:n});return di({...o,...r,fee:i,nonce:a},An.payingFor).tx},getAccountNonce:async function(e,t){if(t)return t;const{nonce:n}=await this.api.getAccountByPubkey(e).catch((()=>({nonce:0})));return n+1},getVmVersion:function(e){let{vmVersion:t,abiVersion:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{consensusProtocolVersion:r}=this.getNodeInfo(),o=pn[r];if(!o)throw new z("Not supported consensus protocol version");const i=o[e];if(!i)throw new et("Not supported tx type");if(n=n||i.abiVersion[0],t=t||i.vmVersion[0],!i.vmVersion.includes(t))throw new nt(`VM VERSION ${t} do not support by this node. Supported: [${i.vmVersion}]`);if(!i.abiVersion.includes(n))throw new tt(`ABI VERSION ${n} do not support by this node. Supported: [${i.abiVersion}]`);return{vmVersion:t,abiVersion:n}}}});var FA=DA,UA=n(48764).Buffer;const RA=new WeakMap;var PA=yA.compose({init(e){let{keypair:t,gaId:n}=e;if(this.isGa=!!n,n)return Lr(n),void RA.set(this,{publicKey:n});if(!t||"object"!=typeof t)throw new $("KeyPair must be an object");if(!t.secretKey||!t.publicKey)throw new $('KeyPair must must have "secretKey", "publicKey" properties');if("string"!=typeof t.publicKey||-1===t.publicKey.indexOf("ak_"))throw new $('Public Key must be a base58c string with "ak_" prefix');if(!UA.isBuffer(t.secretKey)&&"string"==typeof t.secretKey&&!ut(t.secretKey))throw new $("Secret key must be hex string or Buffer");const r=UA.from(Lr(t.publicKey,"ak"));if(!wo(UA.from(t.secretKey,"hex"),r))throw new $("Invalid Key Pair");RA.set(this,{secretKey:UA.isBuffer(t.secretKey)?t.secretKey:UA.from(t.secretKey,"hex"),publicKey:t.publicKey})},props:{isGa:!1},methods:{sign(e){if(this.isGa)throw new $("You are trying to sign data using generalized account without keypair");return Promise.resolve(go(e,RA.get(this).secretKey))},address(){return Promise.resolve(RA.get(this).publicKey)}}}),MA=yA.compose(Li,{async init(e){let{accounts:t=[],address:n}=e;this.accounts=Object.fromEntries(await Promise.all(t.map((async e=>[await e.address(),e])))),n=n||Object.keys(this.accounts)[0],n&&this.selectAccount(n)},props:{accounts:{}},deepProps:{selectedAddress:null},methods:{async address(){let{onAccount:e=this.selectedAddress}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._resolveAccount(e).address()},async sign(e){let{onAccount:t=this.selectedAddress}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._resolveAccount(t).sign(e)},addresses(){return Object.keys(this.accounts)},async addAccount(e){let{select:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await e.address();this.accounts[n]=e,t&&this.selectAccount(n)},removeAccount(e){this.accounts[e]?(delete this.accounts[e],this.selectedAddress===e&&(this.selectedAddress=null)):console.warn(`removeAccount: Account for ${e} not available`)},selectAccount(e){if(Lr(e,"ak"),!this.accounts[e])throw new X(e);this.selectedAddress=e},_resolveAccount(e){if(null===e)throw new Y("Account should be an address (ak-prefixed string), keypair, or instance of account base, got null instead");switch(typeof e){case"string":if(Lr(e,"ak"),!this.accounts[e])throw new X(e);return this.accounts[e];case"object":return gA(e)?e:PA({keypair:e});default:throw new Y(`Account should be an address (ak-prefixed string), keypair, or instance of account base, got ${e} instead`)}}}});const jA=IA.compose({methods:{aensQuery:async function(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wr(e);const r=await this.getName(e);return Object.freeze(Object.assign(r,{pointers:r.pointers||[],update:async function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{...await t.aensUpdate(e,r,{...n,...o}),...await t.aensQuery(e)}},transfer:async function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{...await t.aensTransfer(e,r,{...n,...o}),...await t.aensQuery(e)}},revoke:async function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.aensRevoke(e,{...n,...r})},extendTtl:async function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ft,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("number"!=typeof r||r>Ft||r<=0)throw new D("nameTtl",`a number between 1 and ${Ft} blocks`,r);return{...await t.aensUpdate(e,{},{...n,...o,nameTtl:r,extendPointers:!0}),...await t.aensQuery(e)}}}))},aensPreclaim:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wr(e);const n={...this.Ae.defaults,...t},r=co(),o=await this.height(),i=Or(e,r),a=await this.namePreclaimTx({...n,accountId:await this.address(n),commitmentId:i}),s=await this.send(a,n);return Object.freeze({...s,height:o,claim:t=>this.aensClaim(e,r,{...t,onAccount:n.onAccount}),salt:r,commitmentId:i})},aensClaim:async function(e,t,n){Wr(e);const r={...this.Ae.defaults,...n},o=await this.nameClaimTx({...r,accountId:await this.address(r),nameSalt:t,name:e}),i=await this.send(o,r);if(!no(e)){const t=r.waitMined?await this.aensQuery(e,r):{};return Object.assign(i,t)}return{...i,nameFee:r.nameFee}},aensUpdate:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Wr(e);const r={...this.Ae.defaults,...n},o={...n.extendPointers&&Object.fromEntries((await this.getName(e)).pointers.map((e=>{let{key:t,id:n}=e;return[t,n]}))),...t},i=await this.nameUpdateTx({...r,nameId:e,accountId:await this.address(r),pointers:Object.entries(o).map((e=>{let[t,n]=e;return{key:t,id:n}}))});return this.send(i,r)},aensTransfer:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Wr(e);const r={...this.Ae.defaults,...n},o=await this.nameTransferTx({...r,nameId:e,accountId:await this.address(r),recipientId:t});return this.send(o,r)},aensRevoke:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wr(e);const n={...this.Ae.defaults,...t},r=await this.nameRevokeTx({...n,nameId:e,accountId:await this.address(n)});return this.send(r,n)},aensBid:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.aensClaim(e,0,{...n,nameFee:t,vsn:2})}},deepProps:{Ae:{defaults:{clientTtl:Pt,nameTtl:Ft}}}});var LA=jA,GA=Li.compose({async init(e){let{compilerUrl:t,ignoreVersion:n}=e;t&&await this.setCompilerUrl(t,{ignoreVersion:n})},methods:{async setCompilerUrl(e){let{ignoreVersion:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new j("compilerUrl required");e=e.replace(/\/$/,"");const n=await cA(`${e}/api`,{disableBigNumbers:!0,disableCaseConversion:!0,responseInterceptor:e=>{if(e.ok)return;let t=`${new URL(e.url).pathname.slice(1)} error`;return e.body.reason&&(t+=": "+e.body.reason+(e.body.parameter?` in ${e.body.parameter}`:"")+(e.body.info?` (${JSON.stringify(e.body.info)})`:"")),Array.isArray(e.body)&&(t+=":\n"+e.body.map((e=>`${e.type}:${e.pos.line}:${e.pos.col}: ${e.message}${e.context?`(${e.context})`:""}`)).map((e=>e.trim())).join("\n")),e.statusText=t,e}});if(this.compilerVersion=n.spec.info.version,this.compilerApi=nA(n.api,(e=>{let[t,n]=e;return[t,function(){let{options:{filesystem:e,...t}={},...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n({...r,options:{...t,file_system:e}})}]})),!t&&!uA(this.compilerVersion,HA,qA))throw new J("compiler",this.compilerVersion,HA,qA)}},props:{compilerVersion:null}});const HA="6.1.0",qA="7.0.0";var YA=n(23023),KA=n(48764).Buffer,zA=IA.compose(GA,{methods:{getContractInstance:async function(){var e=this;let{source:t,bytecode:n,aci:r,contractAddress:o,filesystem:i={},validateBytecode:a,...s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!r&&t&&(r=await this.compilerApi.generateACI({code:t,options:{filesystem:i}})),!r)throw new Ie;if(o=o&&await this.resolveName(o,"contract_pubkey",{resolveByNode:!0}),!o&&!t&&!n)throw new me("Can't create instance by ACI without address");if(o&&!(await this.getContract(o)).active)throw new ge(o);const c={_aci:r,_name:r.encoded_aci.contract.name,calldata:new YA.Encoder([r.encoded_aci,...r.external_encoded_aci]),source:t,bytecode:n,deployInfo:{address:o},options:{...this.Ae.defaults,callStatic:!1,filesystem:i,...s},compilerVersion:this.compilerVersion};if(a){if(!o)throw new me("Can't validate bytecode without contract address");const e=(await this.getContractByteCode(o)).bytecode;if(!(t?await this.compilerApi.validateByteCode({bytecode:e,source:t,options:c.options}).then((e=>0===Object.entries(e).length),(()=>!1)):n===e))throw new pe(t?"source":"bytecode")}c.compile=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(c.bytecode)throw new F("Contract already compiled");if(!c.source)throw new F("Can't compile without source code");const{bytecode:n}=await e.compilerApi.compileContract({code:c.source,options:{...c.options,...t}});return c.bytecode=n,c.bytecode};const u=async(e,t)=>{const n=await this.send(e,t),r={hash:n.hash,tx:NA({tx:n.rawTx}),txData:n,rawTx:n.rawTx};if(!1===t.waitMined)return r;const{callInfo:o}=await this.api.getTransactionInfoByHash(n.hash);return Object.assign(r.txData,o),await A(o),{...r,result:o}},A=e=>{let t,{returnType:n,returnValue:r}=e;switch(n){case"ok":return;case"revert":t=c.calldata.decodeFateString(r);break;case"error":t=Lr(r).toString();break;default:throw new W(`Unknown returnType: ${n}`)}throw new we(t)};function l(e){const t=c._aci.encoded_aci.contract.functions.find((t=>t.name===e));if(t)return t;if("init"===e)return{payable:!1};throw new Ee(`Function ${e} doesn't exist in contract`)}function f(e,t,n){let{contractAddressToName:r}=n;const o={...c.options.contractAddressToName,...r};if(o[e])return o[e];const i=[c._aci.encoded_aci,...c._aci.external_encoded_aci].filter((e=>{let{contract:t}=e;return null==t?void 0:t.event})).map((e=>{let{contract:t}=e;return[t.name,t.event.variant]})).map((e=>{let[t,n]=e;return n.map((e=>[t,Object.keys(e)[0]]))})).flat().filter((e=>{let[,n]=e;return BigInt("0x"+mt(n).toString("hex"))===t}));switch(i.length){case 0:throw new Ce(t,e);case 1:return i[0][0];default:throw new be(e,i)}}return c._estimateGas=async(e,t,n)=>{const{result:{gasUsed:r}}=await c.call(e,t,{...n,callStatic:!0});return Math.floor(1.25*r)},c.deploy=async function(){var t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;const o={...c.options,...r};if(c.bytecode||await c.compile(o),o.callStatic)return c.call("init",n,o);if(c.deployInfo.address)throw new de;const i=await e.address(o),{tx:a,contractId:s}=await e.contractCreateTx({...o,gas:null!==(t=o.gas)&&void 0!==t?t:await c._estimateGas("init",n,o),callData:c.calldata.encode(c._name,"init",n),code:c.bytecode,ownerId:i}),{hash:A,rawTx:l,result:f,txData:h}=await u(a,o);return c.deployInfo=Object.freeze({result:f,owner:i,transaction:A,rawTx:l,txData:h,address:s}),c.deployInfo},c.call=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o={...c.options,...r},i=l(t),a=c.deployInfo.address;if(!t)throw new ve;if("init"===t&&!o.callStatic)throw new ye('"init" can be called only via dryRun');if(!a&&"init"!==t)throw new ye("You need to deploy contract before calling!");if(o.amount>0&&!1===i.payable)throw new Be(`You try to pay "${o.amount}" to function "${t}" which is not payable. Only payable function can accept coins`);const s=await e.address(o).catch((e=>{if(o.callStatic)return Dt.pub;throw e})),f=c.calldata.encode(c._name,t,n);let h;if(o.callStatic){var p,d;"number"==typeof o.top&&(o.top=(await e.getKeyBlock(o.top)).hash);const n={...o,gas:null!==(p=o.gas)&&void 0!==p?p:Ot,callData:f,nonce:null!==(d=o.nonce)&&void 0!==d?d:o.top&&(await e.getAccount(s,{hash:o.top})).nonce+1},r="init"===t?(await e.contractCreateTx({...n,code:c.bytecode,ownerId:s})).tx:await e.contractCallTx({...n,callerId:s,contractId:a}),{callObj:i,...u}=await e.txDryRun(r,s,o);await A(i),h={...u,tx:NA({tx:r}),result:i}}else{var g;const r=await e.contractCallTx({...o,gas:null!==(g=o.gas)&&void 0!==g?g:await c._estimateGas(t,n,o),callerId:s,contractId:a,callData:f});h=await u(r,o)}return(o.waitMined||o.callStatic)&&(h.decodedResult=i.returns&&"unit"!==i.returns&&"init"!==t&&c.calldata.decode(c._name,t,h.result.returnValue),h.decodedEvents=c.decodeEvents(h.result.log,o)),h},c.decodeEvents=function(e){let{omitUnknown:t,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.map((e=>{const r=e.topics.map((e=>BigInt(e)));let o;try{o=f(e.address,r[0],n)}catch(e){if(t&&e instanceof Ce)return null;throw e}const i=c.calldata.decodeEvent(o,e.data,r),[a,s]=Object.entries(i)[0];return{name:a,args:s,contract:{name:o,address:e.address}}})).filter((e=>e))},c.methods=Object.fromEntries(c._aci.encoded_aci.contract.functions.map((e=>{let{name:t,arguments:n,stateful:r}=e;const o=e=>function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a=o.length===n.length+1?o.pop():{};if("object"!=typeof a)throw new Y(`Options should be an object: ${a}`);return"init"===t?c.deploy(o,{callStatic:e,...a}):c.call(t,o,{callStatic:e,...a})};return[t,Object.assign(o("init"!==t&&!r),{get:o(!0),send:o(!1)})]}))),c},delegateSignatureCommon:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await this.sign(KA.concat([KA.from(this.getNetworkId(t)),...e.map((e=>Lr(e)))]),t);return KA.from(n).toString("hex")},createAensDelegationSignature:async function(e){let{contractId:t,name:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.delegateSignatureCommon([await this.address(r),...n?[Tr(n)]:[],t],r)},createOracleDelegationSignature:async function(e){let{contractId:t,queryId:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.delegateSignatureCommon([...n?[n]:[],t],r)}},deepProps:{Ae:{defaults:{gasPrice:Nt,amount:Tt}}}});const VA=e=>async(t,n)=>{if("object"!=typeof t)throw new he("AuthData must be an object");if(t.gas&&E()(t.gas).gt(kt))throw new he(`the maximum gas value for ga authFun is ${kt}, got ${t.gas}`);const r=t.gas||kt;if(t.callData){if("cb"!==t.callData.split("_")[0])throw new he('Auth data must be a string with "cb" prefix.');return{authCallData:t.callData,gas:r}}if(!t.source||!t.args)throw new he("Auth data must contain source code and arguments.");const o=await e.getContractInstance({source:t.source});return{authCallData:o.calldata.encode(o._name,n,t.args),gas:r}},JA=zA.compose({methods:{createGeneralizedAccount:async function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={...this.Ae.defaults,...o},a=await this.address(i);if(await this.isGA(a))throw new F(`Account ${a} is already GA`);const s=await this.getContractInstance({source:t});await s.compile();const{tx:c,contractId:u}=await this.gaAttachTx({...i,gas:null!==(n=i.gas)&&void 0!==n?n:await s._estimateGas("init",r,i),ownerId:a,code:s.bytecode,callData:s.calldata.encode(s._name,"init",r),authFun:mt(e)}),{hash:A,rawTx:l}=await this.send(c,i);return Object.freeze({owner:a,transaction:A,rawTx:l,gaContractId:u})},createMetaTx:async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t)throw new j("authData is required");const{authCallData:o,gas:i}=await VA(this)(t,n),a={...this.Ae.defaults,...r},{abiVersion:s}=await this.getVmVersion(An.contractCall),c=$A(gi(e)),u={...a,tx:{...c,tx:c.txObject},gaId:await this.address(a),abiVersion:s,authData:o,gas:i,vsn:2},{fee:A}=await this.prepareTxParams(An.gaMeta,u),{rlpEncoded:l}=di({...u,fee:`${A}`},An.gaMeta,{vsn:2});return $A(l).tx},isGA:async function(e){const{contractId:t}=await this.getAccount(e);return!!t}}});var WA=JA;const $A=e=>di({encodedTx:e,signatures:[]},An.signed),XA=1;let ZA,el,tl,nl,rl;!function(e){e.to_waellet="to_waellet",e.to_aepp="to_aepp"}(ZA||(ZA={})),function(e){e.window="window",e.extension="extension"}(el||(el={})),function(e){e.subscribe="subscribe",e.unsubscribe="unsubscribe"}(tl||(tl={})),function(e){e.readyToConnect="connection.announcePresence",e.updateAddress="address.update",e.address="address.get",e.connect="connection.open",e.sign="transaction.sign",e.signMessage="message.sign",e.subscribeAddress="address.subscribe",e.updateNetwork="networkId.update",e.closeConnection="connection.close"}(nl||(nl={})),function(e){e.CONNECTED="CONNECTED",e.NODE_BINDED="NODE_BINDED",e.DISCONNECTED="DISCONNECTED",e.CONNECTION_REJECTED="CONNECTION_REJECTED",e.WAITING_FOR_CONNECTION_APPROVE="WAITING_FOR_CONNECTION_APPROVE",e.WAITING_FOR_CONNECTION_REQUEST="WAITING_FOR_CONNECTION_REQUEST"}(rl||(rl={}));const ol={broadcastFailed:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{code:3,data:e,message:"Broadcast failed"}},invalidTransaction:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{code:2,data:e,message:"Invalid transaction"}},rejectedByUser:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{code:4,data:e,message:"Operation rejected by user"}},connectionDeny:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{code:9,data:e,message:"Wallet deny your connection request"}},permissionDeny:e=>({code:11,message:`You are not subscribed for account ${e}`}),internalError:e=>({code:12,message:e}),notAuthorize:()=>({code:10,message:"You are not connected to the wallet"}),unsupportedProtocol:()=>({code:5,message:"Unsupported Protocol Version"}),unsupportedNetwork:()=>({code:8,message:"Unsupported Network"})},il=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{chrome:t,browser:n}=window;if(void 0!==t&&t===Object(t))return t;if(void 0!==n&&n===Object(n))return n;if(!e)throw new L;return{}},al=()=>window!==window.parent,sl=e=>{let t=0;return function(n){let{id:r,method:o,params:i,result:a,error:s}=n,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c||(t+=1),r=c?r||null:t;const u=i?{params:i}:a?{result:a}:{error:s};return e.sendMessage({jsonrpc:"2.0",...r?{id:r}:{},method:o,...u}),r}},cl=function(e,t){let{debug:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e[t.method];return r&&"function"==typeof r?r:(n&&console.log(`Unknown message method ${t.method}`),()=>async()=>!0)},ul=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{method:e,params:t}},Al=function(e,t){let{error:n,result:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{id:e,method:t,...n?{error:n}:{result:r}}},ll=e=>(t,n,r)=>e.sendMessage(Al(t,n,r),!0),fl=e=>3===["","connected","current"].filter((t=>"object"==typeof(t?e[t]:e))).length;var hl=Fi()({init(e){let{id:t,name:n,networkId:r,icons:o,connection:i,handlers:[a,s]}=e;this.id=t,this.connection=i,this.info={name:n,networkId:r,icons:o},this.callbacks={},this.addressSubscription=[],this.accounts={},this.sendMessage=sl(this.connection),i.connect(((e,t)=>{if(!e||!e.jsonrpc||"2.0"!==e.jsonrpc||!e.method)throw new re(e);a(e,t)}),((e,t)=>{this.disconnect(!0),"function"==typeof s&&s(t,this)}))},propertyDescriptors:{currentAccount:{enumerable:!0,configurable:!1,get(){return this.isHasAccounts()?Object.keys(this.accounts.current)[0]:void 0}},addresses:{enumerable:!0,configurable:!1,get(){return this.isHasAccounts()?[...Object.keys(this.accounts.current),...Object.keys(this.accounts.connected)]:[]}},origin:{enumerable:!0,configurable:!1,get(){return this.connection}}},methods:{updateInfo(e){Object.assign(this.info,e)},isHasAccounts(){return"object"==typeof this.accounts&&"object"==typeof this.accounts.connected&&"object"==typeof this.accounts.current},isSubscribed(){return this.addressSubscription.length&&this.isHasAccounts()},hasAccessToAccount(e){return!!e&&this.addresses.find((t=>t===e))},isConnected(){return this.connection.isConnected()&&(this.info.status===rl.CONNECTED||this.info.status===rl.NODE_BINDED)},getCurrentAccount(){let{onAccount:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||Object.keys(this.accounts.current)[0]},disconnect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.info.status=rl.DISCONNECTED,this.addressSubscription=[],this.accounts={},e||this.connection.disconnect()},setAccounts(e){let{forceNotification:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!fl(e))throw new Y("Invalid accounts object. Should be object like: `{ connected: {}, selected: {} }`");this.accounts=e,t||this.sendMessage(ul(nl.updateAddress,this.accounts),!0)},updateSubscription(e,t){return e!==tl.subscribe||this.addressSubscription.includes(t)||this.addressSubscription.push(t),e===tl.unsubscribe&&this.addressSubscription.includes(t)&&(this.addressSubscription=this.addressSubscription.filter((e=>e!==t))),this.addressSubscription},request(e,t){const n=this.sendMessage(ul(e,t));if(Object.prototype.hasOwnProperty.call(this.callbacks,n))throw new ne;return new Promise(((e,t)=>{this.callbacks[n]={resolve:e,reject:t}}))},processResponse(e,t){let{id:n,error:r,result:o}=e;if(!this.callbacks[n])throw new oe(n);o?this.callbacks[n].resolve(..."function"==typeof t?t({id:n,result:o}):[o]):this.callbacks[n].reject(r),delete this.callbacks[n]}}});const pl={[nl.updateAddress]:e=>t=>{let{params:n}=t;e.rpcClient.accounts=n,e.onAddressChange(n)},[nl.updateNetwork]:e=>async t=>{let{params:n}=t;const{networkId:r,node:o}=n;e.rpcClient.info.networkId=r,o&&e.addNode(o.name,await pA(o),!0),e.onNetworkChange(n)},[nl.closeConnection]:e=>t=>{e.disconnectWallet(),e.onDisconnect(t.params)}},dl={[nl.address]:e=>t=>e.rpcClient.processResponse(t),[nl.connect]:e=>t=>{t.result&&(e.rpcClient.info.status=rl.CONNECTED),e.rpcClient.processResponse(t)},[nl.subscribeAddress]:e=>t=>{t.result&&(t.result.address&&(e.rpcClient.accounts=t.result.address),t.result.subscription&&(e.rpcClient.addressSubscription=t.result.subscription)),e.rpcClient.processResponse(t,(e=>{let{id:t,result:n}=e;return[n]}))},[nl.sign]:e=>t=>{e.rpcClient.processResponse(t,(e=>{let{id:t,result:n}=e;return[n.signedTransaction||n.transactionHash]}))},[nl.signMessage]:e=>t=>{e.rpcClient.processResponse(t,(e=>{let{id:t,result:n}=e;return[n.signature]}))}},gl={};var yl=IA.compose({async init(e){let{name:t,connection:n,debug:r=!1,...o}=e;["onAddressChange","onDisconnect","onNetworkChange"].forEach((e=>{var t;const n=null!==(t=o[e])&&void 0!==t?t:()=>{};if("function"!=typeof n)throw new D(e,"a function",n);this[e]=n})),this.connection=n,this.name=t,this.debug=r,n&&await this.connectToWallet(n)},deepProps:{Ae:{defaults:{walletBroadcast:!0}}},methods:{sign(){},addresses(){if(!this.isSubscribedAccount())throw new se;return[this.rpcClient.currentAccount,...Object.keys(this.rpcClient.accounts.connected)]},async connectToWallet(e){let{connectNode:t=!1,name:n="wallet-node",select:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.rpcClient&&this.rpcClient.isConnected())throw new rt("You are already connected to wallet "+this.rpcClient);var o;this.rpcClient=hl({connection:e,networkId:this.getNetworkId({force:!0}),...e.connectionInfo,id:_o(),handlers:[(o=this,async e=>e.id?Object.prototype.hasOwnProperty.call(o.rpcClient.callbacks,e.id)?cl(dl,e,{debug:o.debug})(o)(e):cl(gl,e,{debug:o.debug})(o)(e):cl(pl,e,{debug:o.debug})(o)(e)),this.onDisconnect]});const i=await this.sendConnectRequest(t);if(t&&!Object.prototype.hasOwnProperty.call(i,"node"))throw new at("Missing URLs of the Node");return t&&this.addNode(n,await pA(i.node),r),i},async disconnectWallet(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.isConnected())throw new it("You are not connected to Wallet");e&&this.rpcClient.sendMessage(ul(nl.closeConnection,{reason:"bye"}),!0),this.rpcClient.disconnect(),this.rpcClient=null},async address(){let{onAccount:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isConnected())throw new it("You are not connected to Wallet");const t=this.rpcClient.currentAccount;if(!t)throw new se;if(e&&!this.rpcClient.hasAccessToAccount(e))throw new ie(e);return e||t},async askAddresses(){if(!this.isConnected())throw new it("You are not connected to Wallet");if(!this.isSubscribedAccount())throw new se;return this.rpcClient.request(nl.address)},async subscribeAddress(e,t){if(!this.isConnected())throw new it("You are not connected to Wallet");return this.rpcClient.request(nl.subscribeAddress,{type:e,value:t})},async signTransaction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isConnected())throw new it("You are not connected to Wallet");if(!this.isSubscribedAccount())throw new se;if(t.onAccount&&!this.rpcClient.hasAccessToAccount(t.onAccount))throw new ie(t.onAccount);return this.rpcClient.request(nl.sign,{...t,tx:e,returnSigned:!0,networkId:this.getNetworkId()})},async signMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isConnected())throw new it("You are not connected to Wallet");if(!this.isSubscribedAccount())throw new se;if(t.onAccount&&!this.rpcClient.hasAccessToAccount(t.onAccount))throw new ie(t.onAccount);return this.rpcClient.request(nl.signMessage,{...t,message:e})},async sendConnectRequest(e){return this.rpcClient.request(nl.connect,{name:this.name,version:XA,networkId:this.getNetworkId({force:!0}),connectNode:e})},async send(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isConnected())throw new it("You are not connected to Wallet");if(!this.isSubscribedAccount())throw new se;if(t.onAccount&&!this.rpcClient.hasAccessToAccount(t.onAccount))throw new ie(t.onAccount);const n={...this.Ae.defaults,...t};if(!n.walletBroadcast){const t=await this.signTransaction(e,{onAccount:n.onAccount});return this.sendTransaction(t,n)}return this.rpcClient.request(nl.sign,{onAccount:n.onAccount,tx:e,returnSigned:!1,networkId:this.getNetworkId()})},isConnected(){return this.rpcClient&&this.rpcClient.isConnected()},isSubscribedAccount(){return void 0!==this.rpcClient.currentAccount}}});const ml=IA.compose({methods:{registerOracle:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={...this.Ae.defaults,...n},o=await this.address(r),i=await this.oracleRegisterTx({...r,accountId:o,queryFormat:e,responseFormat:t});return{...await this.send(i,r),...await this.getOracleObject(`ok_${o.slice(3)}`)}},respondToQuery:async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o={...this.Ae.defaults,...r},i=await this.address(o),a=await this.oracleRespondTx({...o,oracleId:e,queryId:t,callerId:i,response:n});return{...await this.send(a,o),...await this.getOracleObject(e)}},extendOracleTtl:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={...this.Ae.defaults,...n},o=await this.address(r),i=await this.oracleExtendTx({...r,oracleId:e,callerId:o,oracleTtl:t});return{...await this.send(i,r),...await this.getOracleObject(e)}},postQueryToOracle:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n.queryFee||(await this.api.getOracleByPubkey(e)).queryFee,o={...this.Ae.defaults,queryFee:r,...n},i=await this.address(o),a=await this.oraclePostQueryTx({...o,oracleId:e,senderId:i,query:t}),s=_r(i,gi(a).tx.nonce,e);return{...await this.send(a,o),...await this.getQueryObject(e,s)}},pollForQueryResponse:async function(e,t){let{attempts:n=20,interval:r=this._getPollInterval("microblock")}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(let o=0;o<n;o++){o&&await tA(r);const{response:n}=await this.api.getOracleQueryByPubkeyAndQueryId(e,t),i=Lr(n,"or");if(i.length)return String(i)}throw new H((n-1)*r)},pollForQueries:function(e,t){let{interval:n=this._getPollInterval("microblock")}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new Set,o=async()=>{const n=((await this.api.getOracleQueriesByPubkey(e)).oracleQueries||[]).filter((e=>{let{id:t}=e;return!r.has(t)}));n.forEach((e=>{let{id:t}=e;return r.add(t)})),n.length&&t(n)};let i;return(async()=>{for(;!i;)await o().catch(console.error),await tA(n)})(),()=>{i=!0}},getOracleObject:async function(e){const t=await this.api.getOracleByPubkey(e),{oracleQueries:n}=await this.api.getOracleQueriesByPubkey(e);return{...t,queries:n,pollQueries:this.pollForQueries.bind(this,e),postQuery:this.postQueryToOracle.bind(this,e),respondToQuery:this.respondToQuery.bind(this,e),extendOracle:this.extendOracleTtl.bind(this,e),getQuery:this.getQueryObject.bind(this,e)}},getQueryObject:async function(e,t){const n=await this.api.getOracleQueryByPubkeyAndQueryId(e,t);return{...n,decodedQuery:Lr(n.query).toString(),decodedResponse:Lr(n.response).toString(),respond:this.respondToQuery.bind(this,e,t),pollForResponse:this.pollForQueryResponse.bind(this,e,t),decode:e=>Lr(e)}}},deepProps:{Ae:{defaults:{queryFee:Qt,oracleTtl:xt,queryTtl:_t,responseTtl:St}}}});var Il=ml,vl=IA.compose(FA,Il,zA,LA,xA,yl);const wl=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.find((e=>e===t))){if("object"!=typeof n.onAccount||!gA(n.onAccount))throw new Y("Provided onAccount should be an AccountBase");t=n.onAccount}return t},El={[nl.closeConnection]:(e,t)=>{let{client:n}=t;return async t=>{n.disconnect(!0),e.onDisconnect(t.params,n)}}},Bl={},Cl={[nl.connect](e,t,n,r){let{name:o,networkId:i,version:a,icons:s,connectNode:c}=r;return a!==XA?{error:ol.unsupportedProtocol()}:(n.updateInfo({status:rl.WAITING_FOR_CONNECTION_APPROVE,name:o,networkId:i,icons:s,version:a,origin:window.location.origin,connectNode:c}),e("onConnection",{name:o,networkId:i,version:a},(function(){let{shareNode:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.updateInfo({status:e?rl.NODE_BINDED:rl.CONNECTED}),{result:{...t.getWalletInfo(),...e&&{node:t.selectedNode}}}}),(e=>(n.updateInfo({status:rl.CONNECTION_REJECTED}),{error:ol.connectionDeny(e)}))))},[nl.subscribeAddress](e,t,n,r){let{type:o,value:i}=r;return n.isConnected()?e("onSubscription",{type:o,value:i},(async function(){let{accounts:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const r=e||t.getAccounts();if(!fl(r))throw new Y("Invalid provided accounts object");const a=n.updateSubscription(o,i);return n.setAccounts(r,{forceNotification:!0}),{result:{subscription:a,address:r}}}catch(e){return t.debug&&console.error(e),{error:ol.internalError(e.message)}}}),(e=>({error:ol.rejectedByUser(e)}))):{error:ol.notAuthorize()}},[nl.address]:(e,t,n)=>n.isConnected()&&n.isSubscribed()?e("onAskAccounts",{},(function(){let{accounts:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{result:e||[...Object.keys(n.accounts.current),...Object.keys(n.accounts.connected)]}}),(e=>({error:ol.rejectedByUser(e)}))):{error:ol.notAuthorize()},[nl.sign](e,t,n,r){const{tx:o,onAccount:i,networkId:a,returnSigned:s=!1}=r,c=i||n.currentAccount;return a&&n.updateInfo({networkId:a}),n.isConnected()?n.hasAccessToAccount(c)?a&&a===t.getNetworkId()?e("onSign",{tx:o,returnSigned:s,onAccount:c,txObject:NA.fromString(o)},(async function(e){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{n=wl(t.addresses(),c,r)}catch(e){return t.debug&&console.error(e),{error:ol.internalError(e.message)}}try{const r=e||o;return{result:s?{signedTransaction:await t.signTransaction(r,{onAccount:n})}:{transactionHash:await t.send(r,{onAccount:n,verify:!1})}}}catch(n){if(!s){const r=await BA(e||o,t.selectedNode.instance);return r.length?{error:ol.invalidTransaction(r)}:{error:ol.broadcastFailed(n.message)}}throw n}}),(e=>({error:ol.rejectedByUser(e)}))):{error:ol.unsupportedNetwork()}:{error:ol.permissionDeny(c)}:{error:ol.notAuthorize()}},[nl.signMessage](e,t,n,r){let{message:o,onAccount:i}=r;if(!n.isConnected())return{error:ol.notAuthorize()};const a=i||n.currentAccount;return n.hasAccessToAccount(a)?e("onMessageSign",{message:o,onAccount:a},(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const n=wl(t.addresses(),a,e);return{result:{signature:await t.signMessage(o,{onAccount:n,returnHex:!0})}}}catch(e){return t.debug&&console.error(e),{error:ol.internalError(e.message)}}}),(e=>({error:ol.rejectedByUser(e)}))):{error:ol.permissionDeny(a)}}},bl=(e,t)=>async(n,r)=>{const o=e.rpcClients[t];if(!n.id)return cl(El,n,{debug:e.debug})(e,{client:o})(n,r);if(Object.prototype.hasOwnProperty.call(o.callbacks,n.id))return cl(Bl,n,{debug:e.debug})(e,{client:o})(n,r);{const{id:t,method:i}=n,a=(n,a,s,c)=>()=>new Promise((u=>{e[n](o,{id:t,method:i,params:a,accept:function(){return u(s(...arguments))},deny:function(){return u(c(...arguments))}},r)})),s=cl(Cl,n,{debug:e.debug})(a,e,o,n.params),c="function"==typeof s?await s():s;ll(o)(t,i,c)}};var Ql=IA.compose(MA,{init(){var e=this;let{name:t,debug:n=!1,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};["onConnection","onSubscription","onSign","onDisconnect","onAskAccounts","onMessageSign"].forEach((e=>{const t=r[e];if("function"!=typeof t)throw new D(e,"a function",t);this[e]=t})),this.debug=n,this.rpcClients={},this.name=t,this.id=_o();const o=this.selectAccount.bind(this),i=this.addAccount.bind(this),a=this.selectNode.bind(this);this.selectAccount=function(t){let{condition:n=(()=>!0)}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(t),Object.values(e.rpcClients).filter((e=>e.isConnected()&&e.isSubscribed()&&e.hasAccessToAccount(t)&&n(e))).forEach((e=>e.setAccounts({current:{[t]:{}},connected:{...e.accounts.current,...Object.entries(e.accounts.connected).filter((e=>{let[n,r]=e;return n!==t})).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:r}}),{})}})))},this.addAccount=async function(t){let{select:n,meta:r={},condition:o=(()=>!0)}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};await i(t,{select:n});const a=await t.address();Object.values(e.rpcClients).filter((e=>e.isConnected()&&e.isSubscribed()&&o(e))).forEach((e=>e.setAccounts({current:{...n?{[a]:r}:e.accounts.current},connected:{...n?e.accounts.current:{[a]:r},...e.accounts.connected}})))},this.selectNode=e=>{a(e),Object.values(this.rpcClients).filter((e=>e.isConnected())).forEach((e=>{e.sendMessage(ul(nl.updateNetwork,{networkId:this.getNetworkId(),...e.info.status===rl.NODE_BINDED&&{node:this.selectedNode}}),!0)}))}},methods:{removeRpcClient(e){let{forceConnectionClose:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.rpcClients[e];if(!n)throw new ae(e);n.disconnect(t),delete this.rpcClients[e]},addRpcClient(e){const t=_o();return this.rpcClients[t]=hl({id:t,info:{status:rl.WAITING_FOR_CONNECTION_REQUEST},connection:e,handlers:[bl(this,t),this.onDisconnect]}),t},shareWalletInfo(e){e({jsonrpc:"2.0",...ul(nl.readyToConnect,this.getWalletInfo())})},getWalletInfo(){const e=il(!0).runtime;return{id:e&&e.id?e.id:this.id,name:this.name,networkId:this.getNetworkId(),origin:window.location.origin,type:e&&e.id?el.extension:el.window}},getAccounts(){return{current:this.selectedAddress?{[this.selectedAddress]:{}}:{},connected:this.addresses().filter((e=>e!==this.selectedAddress)).reduce(((e,t)=>({...e,[t]:{}})),{})}}}}),xl=IA.compose(Ql,FA,zA,Il,LA,WA,xA),_l=n(45840),Sl=n(17187);const Tl=new WeakMap,Ol=new WeakMap,Nl=new WeakMap,kl=new WeakMap,Dl=new WeakMap,Fl=new WeakMap,Ul=new WeakMap,Rl=new WeakMap,Pl=new WeakMap,Ml=new WeakMap,jl=new WeakMap,Ll=new WeakMap,Gl=new WeakMap,Hl=new WeakMap,ql=new WeakMap,Yl=new WeakMap;function Kl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Fl.get(e).emit(...n)}function zl(e,t){if(!t)throw new fe;kl.set(e,t),t.handler.enter&&t.handler.enter(e),Xl(e)}function Vl(e,t){t!==Ol.get(e)&&(Ol.set(e,t),Kl(e,"statusChanged",t))}function Jl(e,t){Nl.set(e,t),Kl(e,"stateChanged",t)}function Wl(e,t){const{debug:n=!1}=Tl.get(e);n&&console.log("Send message: ",t),Dl.get(e).send(eA.stringify(t))}function $l(e,t,n){Pl.set(e,[...Pl.get(e)||[],{guard:t,action:n}]),Xl(e)}async function Xl(e){const t=Ml.get(e),n=Pl.get(e)||[];if(t||!n.length)return;const r=kl.get(e),o=n.findIndex((t=>t.guard(e,r)));if(-1===o)return;Pl.set(e,n.filter(((e,t)=>o!==t))),Ml.set(e,!0);const i=await Promise.resolve(n[o].action(e,r));Ml.set(e,!1),zl(e,i)}async function Zl(e,t){const{handler:n,state:r}=kl.get(e);zl(e,await Promise.resolve(n(e,t,r)))}function ef(e){clearTimeout(Hl.get(e)),clearTimeout(ql.get(e)),Hl.set(e,setTimeout((()=>{Wl(e,{jsonrpc:"2.0",method:"channels.system",params:{action:"ping"}}),ql.set(e,setTimeout((()=>{nf(e),Kl(e,"error",new Ae)}),5e3))}),1e4))}function tf(e,t,n){return new Promise(((r,o)=>{const i=jl.set(e,jl.get(e)+1).get(e);Gl.get(e).set(i,(e=>{if(e.result)return r(e.result);if(e.error){const[{message:t}={}]=e.error.data||[];return o(new ce(e.error.message+(t?`: ${t}`:"")))}})),Wl(e,{jsonrpc:"2.0",method:t,id:i,params:n})}))}function nf(e){Dl.get(e).close(),clearTimeout(Hl.get(e)),clearTimeout(ql.get(e))}async function rf(e,t){let{url:n,...r}=t;Tl.set(e,r),kl.set(e,{handler:r.existingFsmId?cf:sf}),Fl.set(e,new Sl.EventEmitter),jl.set(e,0),Gl.set(e,new Map),Ul.set(e,[]);const o=new URL(n);Object.entries(r).filter((e=>{let[t]=e;return!["sign","debug"].includes(t)})).forEach((e=>{let[t,n]=e;return o.searchParams.set(ct(t),n)})),o.searchParams.set("protocol","json-rpc"),Vl(e,"connecting");const i=new _l.w3cwebsocket(o.toString());await new Promise(((t,n)=>Object.assign(i,{onerror:n,onopen:()=>{t(),Vl(e,"connected"),r.reconnectTx&&(zl(e,{handler:pf}),setTimeout((async()=>Jl(e,(await tf(e,"channels.get.offchain_state",{})).signed_tx)))),ef(e)},onclose:()=>{Vl(e,"disconnected"),clearTimeout(Hl.get(e)),clearTimeout(ql.get(e))},onmessage:t=>{let{data:n}=t;return function(e,t){const n=eA.parse(t),{debug:r=!1}=Tl.get(e);if(r&&console.log("Receive message: ",n),n.id){const t=Gl.get(e).get(n.id);try{t(n)}finally{Gl.get(e).delete(n.id)}}else"channels.message"!==n.method?"channels.system.pong"!==n.method?(Ul.get(e).push(n),async function(e){if(Rl.get(e))return;const t=Ul.get(e);if(t.length){for(Rl.set(e,!0);t.length;){const n=t.shift();try{await Zl(e,n)}catch(e){console.error("Error handling incoming message:"),console.error(n),console.error(e)}}Rl.set(e,!1)}}(e)):n.params.channel_id!==Ll.get(e)&&null!=Ll.get(e)||ef(e):Kl(e,"message",n.params.data.message)}(e,n)}}))),Dl.set(e,i)}async function of(e,t){const{signatures:n,encodedTx:r}=gi(e).tx,o=await t(Gr(r.rlpEncoded,"tx"));if("string"==typeof o){const{tx:e,txType:t}=gi(o);return di({signatures:n.concat(e.signatures),encodedTx:e.encodedTx.rlpEncoded},t).tx}return o}function af(e,t,n){return n&&n.reject&&n.reject(Object.assign(new le(`Unexpected message received:\n\n${JSON.stringify(t)}`),{wsMessage:t})),{handler:pf}}function sf(e,t,n){return"channels.info"===t.method?["channel_accept","funding_created"].includes(t.params.data.event)?(Vl(e,{channel_accept:"accepted",funding_created:"halfSigned"}[t.params.data.event]),{handler:uf}):"channel_reestablished"===t.params.data.event?{handler:ff}:"fsm_up"===t.params.data.event?(Yl.set(e,t.params.data.fsm_id),{handler:sf}):{handler:sf}:"channels.error"===t.method?(Kl(e,"error",new ue(t.payload.message)),{handler:kf}):void 0}async function cf(e,t,n){return"channels.info"===t.method&&"fsm_up"===t.params.data.event?(Yl.set(e,t.params.data.fsm_id),Jl(e,(await tf(e,"channels.get.offchain_state",{})).signed_tx),{handler:pf}):af(0,t,n)}async function uf(e,t,n){const r={initiator:"initiator_sign",responder:"responder_sign"}[Tl.get(e).role];if(t.method===`channels.sign.${r}`){if(t.params.data.tx){const n=await Tl.get(e).sign(r,t.params.data.tx);return Wl(e,{jsonrpc:"2.0",method:`channels.${r}`,params:{tx:n}}),{handler:Af}}const n=await of(t.params.data.signed_tx,(t=>Tl.get(e).sign(r,t)));return Wl(e,{jsonrpc:"2.0",method:`channels.${r}`,params:{signed_tx:n}}),{handler:Af}}}function Af(e,t,n){if("channels.on_chain_tx"===t.method){if("funding_signed"===t.params.data.info&&"initiator"===Tl.get(e).role)return{handler:lf};if("funding_created"===t.params.data.info&&"responder"===Tl.get(e).role)return{handler:lf}}if("channels.info"===t.method&&"funding_signed"===t.params.data.event&&"initiator"===Tl.get(e).role)return Ll.set(e,t.params.channel_id),Vl(e,"signed"),{handler:Af}}function lf(e,t,n){if("channels.info"===t.method){const e={funding_created:lf,own_funding_locked:lf,funding_locked:ff}[t.params.data.event];if(e)return{handler:e}}if("channels.on_chain_tx"===t.method)return Kl(e,"onChainTx",t.params.data.tx,{info:t.params.data.info,type:t.params.data.type}),{handler:lf}}function ff(e,t,n){if("channels.info"===t.method&&"open"===t.params.data.event)return Ll.set(e,t.params.channel_id),{handler:hf}}function hf(e,t,n){if("channels.update"===t.method)return Jl(e,t.params.data.state),{handler:pf}}async function pf(e,t,n){switch(t.method){case"channels.info":switch(t.params.data.event){case"update":case"withdraw_created":case"deposit_created":return{handler:yf};case"own_withdraw_locked":case"withdraw_locked":case"own_deposit_locked":case"deposit_locked":case"peer_disconnected":case"channel_reestablished":case"open":return Kl(e,t.params.data.event),{handler:pf};case"fsm_up":return Yl.set(e,t.params.data.fsm_id),{handler:pf};case"timeout":case"close_mutual":case"shutdown":return{handler:pf};case"closing":return Vl(e,"closing"),{handler:pf};case"closed_confirmed":return Vl(e,"closed"),{handler:kf};case"died":return Vl(e,"died"),{handler:kf}}break;case"channels.on_chain_tx":return Kl(e,"onChainTx",t.params.data.tx,{info:t.params.data.info,type:t.params.data.type}),{handler:pf};case"channels.leave":return{handler:pf};case"channels.update":return Jl(e,t.params.data.state),{handler:pf};case"channels.sign.shutdown_sign_ack":return yf(e,t,n)}}async function df(e,t,n){if("channels.sign.update"===t.method){const{sign:r}=n;if(t.params.data.tx)return Wl(e,{jsonrpc:"2.0",method:"channels.update",params:{tx:await r(t.params.data.tx,{updates:t.params.data.updates})}}),{handler:gf,state:n};const o=await of(t.params.data.signed_tx,(e=>r(e,{updates:t.params.data.updates})));if("string"==typeof o)return Wl(e,{jsonrpc:"2.0",method:"channels.update",params:{signed_tx:o}}),{handler:gf,state:n};if("number"==typeof o)return Wl(e,{jsonrpc:"2.0",method:"channels.update",params:{error:o}}),{handler:df,state:n}}if("channels.error"===t.method)return n.reject(new ue(t.data.message)),{handler:pf};if(t.error){const{data:e=[]}=t.error;return e.find((e=>1001===e.code))?n.reject(new R("Insufficient balance")):e.find((e=>1002===e.code))?n.reject(new F("Amount cannot be negative")):n.reject(new ue(t.error.message)),{handler:pf}}return"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:pf}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:pf}):af(0,t,n)}function gf(e,t,n){return"channels.update"===t.method?(Jl(e,t.params.data.state),n.resolve({accepted:!0,signedTx:t.params.data.state}),{handler:pf}):"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:pf}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:pf}):t.error?(n.reject(new ue(t.error.message)),{handler:pf}):af(0,t,n)}async function yf(e,t,n){const[,r]=t.method.match(/^channels\.sign\.([^.]+)$/)||[];if(r){if(t.params.data.tx){const n=await Tl.get(e).sign(r,t.params.data.tx,{updates:t.params.data.updates});if(n)return Wl(e,{jsonrpc:"2.0",method:`channels.${r}`,params:{tx:n}}),{handler:pf}}else{const o=await of(t.params.data.signed_tx,(n=>Tl.get(e).sign(r,n,{updates:t.params.data.updates})));if("string"==typeof o)return Wl(e,{jsonrpc:"2.0",method:`channels.${r}`,params:{signed_tx:o}}),{handler:pf};if("number"==typeof o)return Wl(e,{jsonrpc:"2.0",method:`channels.${r}`,params:{error:o}}),{handler:mf,state:n}}return Wl(e,{jsonrpc:"2.0",method:"channels.update.new",params:{from:fo().publicKey,to:fo().publicKey,amount:1}}),{handler:mf,state:n}}return af(0,t,n)}function mf(e,t,n){return t.error?{handler:mf,state:n}:"channels.conflict"===t.method?{handler:pf}:af(0,t,n)}async function If(e,t,n){if("channels.sign.shutdown_sign"===t.method){if(t.params.data.tx)return Wl(e,{jsonrpc:"2.0",method:"channels.shutdown_sign",params:{tx:await n.sign(t.params.data.tx)}}),{handler:vf,state:n};const r=await of(t.params.data.signed_tx,(e=>n.sign(e)));return Wl(e,{jsonrpc:"2.0",method:"channels.shutdown_sign",params:{signed_tx:r}}),{handler:vf,state:n}}return af(0,t,n)}function vf(e,t,n){return"channels.on_chain_tx"===t.method?{handler:kf,state:n}:af(0,t,n)}function wf(e,t,n){return"channels.leave"===t.method?(n.resolve({channelId:t.params.channel_id,signedTx:t.params.data.state}),nf(e),{handler:kf}):"channels.error"===t.method?(n.reject(new ue(t.data.message)),{handler:pf}):af(0,t,n)}async function Ef(e,t,n){if("channels.sign.withdraw_tx"===t.method){const{sign:r}=n;if(t.params.data.tx)return Wl(e,{jsonrpc:"2.0",method:"channels.withdraw_tx",params:{tx:await r(t.params.data.tx,{updates:t.params.data.updates})}}),{handler:Bf,state:n};const o=await of(t.params.data.signed_tx,(e=>r(e,{updates:t.params.data.updates})));if("string"==typeof o)return Wl(e,{jsonrpc:"2.0",method:"channels.withdraw_tx",params:{signed_tx:o}}),{handler:Bf,state:n};if("number"==typeof o)return Wl(e,{jsonrpc:"2.0",method:"channels.withdraw_tx",params:{error:o}}),{handler:Bf,state:n}}return af(0,t,n)}function Bf(e,t,n){if("channels.on_chain_tx"===t.method)return n.onOnChainTx&&n.onOnChainTx(t.params.data.tx),{handler:Bf,state:n};if("channels.info"===t.method&&["own_withdraw_locked","withdraw_locked"].includes(t.params.data.event)){const e={own_withdraw_locked:n.onOwnWithdrawLocked,withdraw_locked:n.onWithdrawLocked}[t.params.data.event];return e&&e(),{handler:Bf,state:n}}return"channels.update"===t.method?(Jl(e,t.params.data.state),n.resolve({accepted:!0,signedTx:t.params.data.state}),{handler:pf}):"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:pf}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:pf}):af(0,t,n)}async function Cf(e,t,n){if("channels.sign.deposit_tx"===t.method){const{sign:r}=n;if(t.params.data.tx)return Wl(e,{jsonrpc:"2.0",method:"channels.deposit_tx",params:{tx:await r(t.params.data.tx,{updates:t.params.data.updates})}}),{handler:bf,state:n};const o=await of(t.params.data.signed_tx,(e=>r(e,{updates:t.params.data.updates})));if("string"==typeof o)return Wl(e,{jsonrpc:"2.0",method:"channels.deposit_tx",params:{signed_tx:o}}),{handler:bf,state:n};if("number"==typeof o)return Wl(e,{jsonrpc:"2.0",method:"channels.deposit_tx",params:{error:o}}),{handler:bf,state:n}}return af(0,t,n)}function bf(e,t,n){if("channels.on_chain_tx"===t.method)return n.onOnChainTx&&n.onOnChainTx(t.params.data.tx),{handler:bf,state:n};if("channels.info"===t.method&&["own_deposit_locked","deposit_locked"].includes(t.params.data.event)){const e={own_deposit_locked:n.onOwnDepositLocked,deposit_locked:n.onDepositLocked}[t.params.data.event];return e&&e(),{handler:bf,state:n}}return"channels.update"===t.method?(Jl(e,t.params.data.state),n.resolve({accepted:!0,signedTx:t.params.data.state}),{handler:pf}):"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:pf}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:pf}):af(0,t,n)}async function Qf(e,t,n){if("channels.sign.update"===t.method){if(t.params.data.tx)return Wl(e,{jsonrpc:"2.0",method:"channels.update",params:{tx:await n.sign(t.params.data.tx)}}),{handler:xf,state:n};const r=await of(t.params.data.signed_tx,(e=>n.sign(e)));if("string"==typeof r)return Wl(e,{jsonrpc:"2.0",method:"channels.update",params:{signed_tx:r}}),{handler:xf,state:n};if("number"==typeof r)return Wl(e,{jsonrpc:"2.0",method:"channels.update",params:{error:r}}),{handler:xf,state:n}}return af(0,t,n)}function xf(e,t,n){if("channels.update"===t.method){const{round:r}=gi(t.params.data.state).tx.encodedTx.tx,o=Tl.get(e)[{initiator:"initiatorId",responder:"responderId"}[Tl.get(e).role]];return Jl(e,t.params.data.state),n.resolve({accepted:!0,address:Ao(o,r),signedTx:t.params.data.state}),{handler:pf}}return"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:pf}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:pf}):af(0,t,n)}async function _f(e,t,n){if("channels.sign.update"===t.method){if(t.params.data.tx)return Wl(e,{jsonrpc:"2.0",method:"channels.update",params:{tx:await n.sign(t.params.data.tx,{updates:t.params.data.updates})}}),{handler:Of,state:n};const r=await of(t.params.data.signed_tx,(e=>n.sign(e,{updates:t.params.data.updates})));if("string"==typeof r)return Wl(e,{jsonrpc:"2.0",method:"channels.update",params:{signed_tx:r}}),{handler:Of,state:n};if("number"==typeof r)return Wl(e,{jsonrpc:"2.0",method:"channels.update",params:{error:r}}),{handler:Of,state:n}}return af(0,t,n)}async function Sf(e,t,n){if("channels.sign.force_progress_tx"===t.method){const r=await of(t.params.data.signed_tx,(e=>n.sign(e,{updates:t.params.data.updates})));return Wl(e,{jsonrpc:"2.0",method:"channels.force_progress_sign",params:{signed_tx:r}}),{handler:Tf,state:n}}return af(0,t,n)}function Tf(e,t,n){return"channels.on_chain_tx"===t.method&&(n.onOnChainTx&&n.onOnChainTx(t.params.data),Kl(e,"onChainTx",t.params.data.tx,{info:t.params.data.info,type:t.params.data.type}),n.resolve({accepted:!0,tx:t.params.data.tx})),af(0,t,n)}function Of(e,t,n){return"channels.update"===t.method?(Jl(e,t.params.data.state),n.resolve({accepted:!0,signedTx:t.params.data.state}),{handler:pf}):"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:pf}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:pf}):af(0,t,n)}function Nf(e,t,n){return"channels.calls_pruned.reply"===t.method?(n.resolve(),{handler:pf}):(n.reject(new le("Unexpected message received")),{handler:kf})}function kf(e,t,n){return n?"closing"===t.params.data.event?{handler:kf,state:n}:"channel_closed"===t.params.data.info?(n.closeTx=t.params.data.tx,{handler:kf,state:n}):"closed_confirmed"===t.params.data.event?(n.resolve(n.closeTx),{handler:kf}):{handler:kf,state:n}:{handler:kf}}function Df(e){return Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return{...e,[st(n)]:r}}),{})}pf.enter=e=>{Vl(e,"open")};const Ff=Li.compose({async init(e){rf(this,e)},methods:{on:function(e,t){Fl.get(this).on(e,t)},off:function(e,t){Fl.get(this).removeListener(e,t)},status:function(){return Ol.get(this)},state:async function(){return Df(await tf(this,"channels.get.offchain_state",{}))},round:function(){if(!Nl.get(this))return null;const{txType:e,tx:t}=gi(Nl.get(this)).tx.encodedTx;switch(e){case An.channelCreate:return 1;case An.channelOffChain:case An.channelWithdraw:case An.channelDeposit:return parseInt(t.round,10);default:return null}},id:function(){return Ll.get(this)},fsmId:function(){return Yl.get(this)},update:function(e,t,n,r,o){return new Promise(((i,a)=>{$l(this,((e,t)=>t.handler===pf),((s,c)=>(Wl(s,{jsonrpc:"2.0",method:"channels.update.new",params:{from:e,to:t,amount:n,meta:o}}),{handler:df,state:{resolve:i,reject:a,sign:r}})))}))},poi:async function(e){let{accounts:t,contracts:n}=e;return(await tf(this,"channels.get.poi",{accounts:t,contracts:n})).poi},balances:async function(e){return Object.fromEntries((await tf(this,"channels.get.balances",{accounts:e})).map((e=>[e.account,e.balance])))},leave:function(){return new Promise(((e,t)=>{$l(this,((e,t)=>t.handler===pf),((n,r)=>(Wl(n,{jsonrpc:"2.0",method:"channels.leave",params:{}}),{handler:wf,state:{resolve:e,reject:t}})))}))},shutdown:function(e){return new Promise(((t,n)=>{$l(this,((e,t)=>t.handler===pf),((r,o)=>(Wl(r,{jsonrpc:"2.0",method:"channels.shutdown",params:{}}),{handler:If,state:{sign:e,resolve:t,reject:n}})))}))},sendMessage:function(e,t){let n=e;"object"==typeof e&&(n=JSON.stringify(e));const r=e=>Wl(e,{jsonrpc:"2.0",method:"channels.message",params:{info:n,to:t}});if("connecting"===this.status()){const e=t=>{"connecting"!==t&&(setTimeout((()=>r(this)),500),this.off("statusChanged",e))};this.on("statusChanged",e)}else r(this)},withdraw:function(e,t){let{onOnChainTx:n,onOwnWithdrawLocked:r,onWithdrawLocked:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(((i,a)=>{$l(this,((e,t)=>t.handler===pf),((s,c)=>(Wl(s,{jsonrpc:"2.0",method:"channels.withdraw",params:{amount:e}}),{handler:Ef,state:{sign:t,resolve:i,reject:a,onOnChainTx:n,onOwnWithdrawLocked:r,onWithdrawLocked:o}})))}))},deposit:function(e,t){let{onOnChainTx:n,onOwnDepositLocked:r,onDepositLocked:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(((i,a)=>{$l(this,((e,t)=>t.handler===pf),((s,c)=>(Wl(s,{jsonrpc:"2.0",method:"channels.deposit",params:{amount:e}}),{handler:Cf,state:{sign:t,resolve:i,reject:a,onOnChainTx:n,onOwnDepositLocked:r,onDepositLocked:o}})))}))},createContract:function(e,t){let{code:n,callData:r,deposit:o,vmVersion:i,abiVersion:a}=e;return new Promise(((e,s)=>{$l(this,((e,t)=>t.handler===pf),((c,u)=>(Wl(c,{jsonrpc:"2.0",method:"channels.update.new_contract",params:{code:n,call_data:r,deposit:o,vm_version:i,abi_version:a}}),{handler:Qf,state:{sign:t,resolve:e,reject:s}})))}))},callContract:function(e,t){let{amount:n,callData:r,contract:o,abiVersion:i}=e;return new Promise(((e,a)=>{$l(this,((e,t)=>t.handler===pf),((s,c)=>(Wl(s,{jsonrpc:"2.0",method:"channels.update.call_contract",params:{amount:n,call_data:r,contract_id:o,abi_version:i}}),{handler:_f,state:{resolve:e,reject:a,sign:t}})))}))},callContractStatic:async function(e){let{amount:t,callData:n,contract:r,abiVersion:o}=e;return Df(await tf(this,"channels.dry_run.call_contract",{amount:t,call_data:n,contract_id:r,abi_version:o}))},getContractCall:async function(e){let{caller:t,contract:n,round:r}=e;return Df(await tf(this,"channels.get.contract_call",{caller_id:t,contract_id:n,round:r}))},getContractState:async function(e){const t=await tf(this,"channels.get.contract",{pubkey:e});return Df({...t,contract:Df(t.contract)})},disconnect:function(){return nf(this)},cleanContractCalls:function(){return new Promise(((e,t)=>{$l(this,((e,t)=>t.handler===pf),((n,r)=>(Wl(n,{jsonrpc:"2.0",method:"channels.clean_contract_calls",params:{}}),{handler:Nf,state:{resolve:e,reject:t}})))}))},forceProgress:function(e,t){let{amount:n,callData:r,contract:o,abiVersion:i,gas:a=1e6,gasPrice:s=1e9,nonce:c}=e,{onOnChainTx:u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(((e,c)=>{$l(this,((e,t)=>t.handler===pf),((A,l)=>(Wl(A,{jsonrpc:"2.0",method:"channels.force_progress",params:{amount:n,call_data:r,contract_id:o,abi_version:i,gas_price:s,gas:a}}),{handler:Sf,state:{resolve:e,reject:c,sign:t,onOnChainTx:u}})))}))}},statics:{reconnect:async function(e,t){const{sign:n}=e;return Ff({...e,reconnectTx:await n("reconnect",di(t,An.channelReconnect).tx)})}}});var Uf=Ff,Rf=IA.compose(MA,xA,FA,LA,zA,Il,WA),Pf=Fi()({init(e){let{pageConnection:t,extConnection:n,allowCrossOrigin:r=!1}=e;if(!window)throw new K("Window object not found, you can run bridge only in browser");if(!t)throw new j("pageConnection required");if(!n)throw new j("extConnection required");this.allowCrossOrigin=r,this.pageConnection=t,this.extConnection=n},methods:{run:function(){const e=this.allowCrossOrigin;this.extConnection.connect((e=>{this.pageConnection.sendMessage(e)})),this.pageConnection.connect(((t,n,r)=>{(e||r===window)&&this.extConnection.sendMessage(t)}))},stop:function(){this.extConnection.disconnect(),this.pageConnection.disconnect()}}}),Mf=(0,Ui.required)({methods:{connect:Ui.required,disconnect:Ui.required,sendMessage:Ui.required,isConnected:Ui.required}});const jf=()=>{const e="object"==typeof il(!0).extension,t=window&&window.location&&window.location.protocol.startsWith("http");return e&&t?window:al()?window.parent:void 0};var Lf=Fi()({init(){let{connectionInfo:e={},target:t=jf(),self:n=window,origin:r,sendDirection:o,receiveDirection:i=ZA.to_aepp,debug:a=!1,forceOrigin:s=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o&&!Object.keys(ZA).includes(o))throw new ot(`sendDirection must be one of [${Object.keys(ZA)}]`);if(!Object.keys(ZA).includes(i))throw new ot(`receiveDirection must be one of [${Object.keys(ZA)}]`);this.connectionInfo={id:_o(),...e};const c=n,u=t;this.origin=r,this.debug=a,this.forceOrigin=s,this.sendDirection=o,this.receiveDirection=i,this.subscribeFn=e=>c.addEventListener("message",e,!1),this.unsubscribeFn=e=>c.removeEventListener("message",e,!1),this.postFn=e=>u.postMessage(e,this.origin||"*")},methods:{connect:function(e){const t=this.origin,n=this.receiveDirection,r=this.debug,o=this.forceOrigin;if(this.listener)throw new rt("You already connected");this.listener=(i,a)=>{if(i&&"object"==typeof i.data&&(o||!t||t===i.origin))if(r&&console.log("Receive message: ",i),i.data.type){if(i.data.type!==n)return;e(i.data.data,i.origin,i.source)}else e(i.data,i.origin,i.source)},this.subscribeFn(this.listener)},sendMessage:function(e){const t=this.sendDirection?{type:this.sendDirection,data:e}:e;this.debug&&console.log("Send message: ",t),this.postFn(t)},disconnect:function(){if(!this.listener)throw new it("You dont have connection. Please connect before");this.unsubscribeFn(this.listener),this.listener=null},isConnected:function(){return this.listener}}},Mf),Gf=Fi()({init(){let{connection:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!window)throw new K("Window object not found, you can run wallet detector only in browser");this.connection=e||Lf({connectionInfo:{id:"spy"}}),this.wallets={}},methods:{scan(e){const{wallets:t}=this;this.connection.connect(((n,r,o)=>{let{method:i,params:a}=n;if(!i||!a||i!==nl.readyToConnect||t[a.id])return;const s={...a,async getConnection(){const e="extension"===this.type,t=e?window.origin:this.origin;return Lf({connectionInfo:this,sendDirection:e?ZA.to_waellet:void 0,receiveDirection:e?ZA.to_aepp:void 0,target:o,origin:t})}};t[s.id]=s,e({wallets:t,newWallet:s})})),Object.keys(t).length&&e({wallets:t})},stopScan(){this.connection.disconnect()}}}),Hf=Fi()({init(e){let{connectionInfo:t={},port:n,debug:r=!1}=e;if(!il().runtime)throw new at("Runtime is not accessible in your environment");this.debug=r,this.connectionInfo=t,this.port=n||il().runtime.connect(t.id||void 0)},methods:{connect:function(e,t){if(this.isConnected())throw new rt("You already connected");this.handler=(t,n)=>{this.debug&&console.log("Receive message: ",t),e(t,n)},this.port.onMessage.addListener(this.handler),this.port.onDisconnect.addListener((()=>{"function"==typeof t&&t({},this),this.port.disconnect()}))},sendMessage:function(e){if(!this.port)throw new it("You dont have connection. Please connect before");this.debug&&console.log("Send message: ",e),this.port.postMessage(e)},disconnect:function(){try{this.port.disconnect()}catch(e){console.warning("From BrowserRuntimeConnection: ",e)}},isConnected:function(){return"function"==typeof this.port.onMessage.hasListeners?this.port.onMessage.hasListeners():this.port.onMessage.hasListener(this.handler)}}},Mf);const qf=Xr}(),r}()}));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ae=t():e.Ae=t()}(self,(function(){return function(){var e={88449:function(e,t,n){const r=n(7945),o=n(56878),{symbolIdentifier:i}=n(12665);e.exports=(e,t,n)=>{const a=i(e),s=new r(a),c=new o(t,n);return new o([s.type,c.type],[s,c])}},56040:function(e){e.exports=class{constructor(e){this._valueFactory=e}get valueFactory(){return this._valueFactory}supports({_name:e,_valueTypes:t}){return!1}create(e,t){throw new Error("Not implemented.")}}},12320:function(e,t,n){const r=n(44664),o=n(41168),i=n(49205),a=n(3353),s=n(20786),c=n(77211),u=n(34093),A=n(72954);e.exports=class{constructor(){const e=new u(this);this._factories=[new o(this),new i(this),new a(this),new s(this),new c(this),new A(this,e),e]}createMultiple(e,t){return r(t.length===e.length,`Number of types (${e.length}) and values (${t.length}) should match`),((e,...t)=>e.map(((e,n)=>t.reduce(((e,t)=>[...e,t[n]]),[e]))))(e,t).map((e=>this.create(...e)))}create(e,t){const n=this._factories.find((t=>t.supports(e)));return r(n,`Unsupported type: ${JSON.stringify(e)}`),n.create(e,t)}}},72954:function(e,t,n){const{hash:r}=n(12665),{ByteArray2Int:o}=n(80240),i=n(76966),a=n(56040),s=["string","signature","bytes"];e.exports=class extends a{constructor(e,t){super(e),this._variantFactory=t}supports({name:e,_valueTypes:t}){return"event"===e}create({variantType:e},{data:t,topics:n}){const[a,...s]=n;if("bigint"!=typeof a)throw new i(`Event name hash (first topic) should be of type "BigInt", got "${typeof a}" instead.`);const c=e.variants.map((e=>o(r(Object.keys(e)[0])))).findIndex((e=>e===a));if(-1===c)throw new i("Event name hash does not match any event variant constructor");const u=e.variants[c],A=Object.keys(u)[0],[l]=Object.values(u),f=l.map((e=>this._isData(e)?t:s.shift()));return this._variantFactory.create(e,{[A]:f})}_isData(e){return!(!s.includes(e.name)||"bytes"===e.name&&e.size<=32)}}},49205:function(e,t,n){const r=n(51041),o=n(55110),i=n(56040);e.exports=class extends i{supports({name:e,_valueTypes:t}){return"list"===e}create(e,t){if(!Array.isArray(t))throw new o(e.name,`Fate list must be an Array, got ${t} instead`);const n=t.map((t=>this.valueFactory.create(e.valuesType,t)));return new r(e.valuesType,n)}}},3353:function(e,t,n){const r=n(68804),o=n(56040);e.exports=class extends o{supports({name:e,_valueTypes:t}){return"map"===e}create(e,t){const n=[];for(const r of t)n.push([this.valueFactory.create(e.keyType,r[0]),this.valueFactory.create(e.valueType,r[1])]);return new r(e.keyType,e.valueType,n)}}},41168:function(e,t,n){const r=n(43509),o=n(4476),i=n(36313),a=n(7772),s=n(63607),c=n(15779),u=n(43422),A=n(20539),l=n(58623),f=n(96445),h=n(90687),p=n(45070),d=n(56040),g=["int","bool","string","bits","hash","bytes","signature","account_address","contract_address","channel_address","oracle_address","oracle_query_address"];e.exports=class extends d{supports({name:e,_valueTypes:t}){return g.includes(e)}create(e,t){switch(e.name){case"int":return new r(t);case"bool":return new o(t);case"string":return new i(t);case"bits":return new u(t);case"hash":return new a(t);case"bytes":return new c(t,e.valueTypes);case"signature":return new s(t);case"account_address":return new A(t);case"contract_address":return new l(t);case"channel_address":return new f(t);case"oracle_address":return new h(t);case"oracle_query_address":return new p(t);default:throw new Error(`Unsupported type "${e.name}"`)}}}},77211:function(e,t,n){const r=n(56878),o=n(56040);e.exports=class extends o{supports({name:e,_valueTypes:t}){return"record"===e}create(e,t){const n=e.valueTypes.map(((n,r)=>{const o=e.keys[r];return this.valueFactory.create(n,t[o])}));return new r(e.valueTypes,n)}}},20786:function(e,t,n){const r=n(56878),o=n(55110),i=n(56040);e.exports=class extends i{supports({name:e,_valueTypes:t}){return"tuple"===e}create(e,t){if(!Array.isArray(t))throw new o(e.name,`Fate tuple must be an Array, got ${t} instead`);const n=e.valueTypes.map(((e,n)=>this.valueFactory.create(e,t[n])));return new r(e.valueTypes,n)}}},34093:function(e,t,n){const r=n(72457),o=n(55110),i=n(56040),a=["variant","Chain.ttl","AENS.pointee","AENS.name"];e.exports=class extends i{supports({name:e,_valueTypes:t}){return a.includes(e)}create(e,t){if(!this.isValid(t))throw new o(e.name,`Variant should be an object mapping constructor to array of values, got "${t}" instead`);const[n,i]=Object.entries(t)[0],a=e.variants.map((e=>{const[[,t]]=Object.entries(e);return t.length})),s=e.variants.findIndex((e=>{const[[t,r]]=Object.entries(e);return t===n}));if(-1===s)throw new o(e.name,`Unknown variant constructor: ${n}`);const[[,c]]=Object.entries(e.variants[s]);if(i.length!==c.length)throw new o(e.name,`"${n}" variant constructor expects ${c.length} argument(s) but got ${i.length} instead`);const u=this.valueFactory.createMultiple(c,i);return new r(a,s,u,c,e.variants)}isValid(e){return"object"==typeof e&&null!==e&&1===Object.entries(e).length&&Array.isArray(Object.values(e)[0])}}},92968:function(e,t,n){const r=n(68638),o=n(17829),i=n(92540),a=n(12320),s=n(3451),c=n(60880),u=n(51338),A=n(88449),{FateTypeString:l}=n(84265),f=n(17960),h=n(70722);e.exports=class{constructor(e){this._aci=e,this._serializer=new o,this._dataFactory=new a,this._externalDataFactory=new s(new u),this._typeResolver=new i(e),this._internalMapper=new u,this._canonicalMapper=new c}encode(e,t,n){const{types:o,required:i}=this._typeResolver.getCallTypes(e,t);if(n.length>o.length||n.length<i)throw new f(`Non matching number of arguments. ${t} expects between ${i} and ${o.length} number of arguments but got ${n.length}`);for(;n.length<o.length;)n.push(void 0);const a=this._externalDataFactory.createMultiple(o,n),s=A(t,o,a),c=this._serializer.serialize(s),u=new Uint8Array(c.flat(1/0));return"cb_"+r.encode(u)}decode(e,t,n){const r=this._typeResolver.getReturnType(e,t),o=this.decodeString(n);return this._serializer.deserialize(r,o).accept(this._canonicalMapper)}decodeString(e){if(!e.startsWith("cb_"))throw new h("Invalid data format (missing cb_ prefix)");return r.decode(e.substring(3))}decodeFateString(e){const t=this.decodeString(e);return this._serializer.deserialize(l(),t).accept(this._canonicalMapper)}decodeEvent(e,t,n){const r=this.decodeString(t),o=this._typeResolver.getEventType(e),i={topics:n,data:r};return this._dataFactory.create(o,i).accept(this._canonicalMapper)}}},17960:function(e){class t extends Error{constructor(e){super(e),this.name="EncoderError"}}e.exports=t},5462:function(e){class t extends Error{constructor(e){super("Invalid FATE prefix: 0b"+e.toString(2).padStart(8,"0")),this.name="FatePrefixError",this.prefix=e}}e.exports=t},55110:function(e){class t extends Error{constructor(e,t){super(t),this.name="FateTypeError",this.type=e}}e.exports=t},70722:function(e){class t extends Error{constructor(e){super(e),this.name="FormatError"}}e.exports=t},2966:function(e){class t extends Error{constructor(e){super(e),this.name="InternalError"}}e.exports=t},99098:function(e){class t extends Error{constructor(e){super(e),this.name="SerializerError"}}e.exports=t},76966:function(e){class t extends Error{constructor(e){super(e),this.name="TypeResolveError"}}e.exports=t},3451:function(e,t,n){const r=n(12320);e.exports=class extends r{constructor(e){super(),this._mapper=e}create(e,t){const n=this._mapper.toInternal(e,t);return super.create(e,n)}}},12689:function(e,t,n){const r=n(44664),o=n(51041),i=n(56878),{FateTypeTuple:a,FateTypeInt:s}=n(84265),c=(e,t)=>{if(0===e.length)return-1;if(0===t.length)return 1;const n=h(e.itemsType);for(let r=0;r<e.length;r++){if(void 0===t.items[r])return 1;const o=n(e.items[r],t.items[r]);if(0!==o)return o}return e.length===t.length?0:-1},u=e=>{const t=h(e);return(e,n)=>t(e.key,n.key)},A=(e,t)=>{const n=new o(s(),e.valueOf()),r=new o(s(),t.valueOf());return c(n,r)},l=(e,t)=>Number(BigInt(e)-BigInt(t)),f={int:l,bool:(e,t)=>e-t,string:(e,t)=>e.toString().localeCompare(t.toString()),bits:(e,t)=>e<0||t<0?-l(e,t):l(e,t),list:c,tuple:(e,t)=>{if(0===e.size)return-1;const n=e.size-t.size;if(0!==n)return n;for(let n=0;n<e.size;n++){const r=e.valueTypes[n],o=h(r)(e.items[n],t.items[n]);if(0!==o)return o}return 0},variant:(e,t)=>{const n=e.arities.length-t.arities.length;if(0!==n)return n;const r=new o(e.aritiesType,e.arities),s=new o(t.aritiesType,t.arities),c=h(r)(r,s);if(0!==c)return c;const u=e.tag-t.tag;return 0!==u?u:h(a())(new i(e.valueTypes,e.value),new i(t.valueTypes,t.value))},map:(e,t)=>{const n=[...e.items],r=[...t.items];n.sort(u(e.keyType)),r.sort(u(t.keyType));const o=h(e.keyType),i=h(e.valueType);for(let e=0;e<n.length;e++){if(void 0===r[e])return 1;const t=n[e],a=r[e],s=o(t.key,a.key);if(0!==s)return s;const c=i(t.value,a.value);if(0!==c)return c}return n.length===r.length?0:-1},bytes:A,account_address:A,channel_address:A,contract_address:A,oracle_query_address:A,oracle_address:A},h=e=>(r(e.hasOwnProperty("name"),`Cannot determine type name of ${JSON.stringify(e)}`),r(f.hasOwnProperty(e.name),`Unsupported comparator for ${e.name}`),f[e.name]);e.exports=h},20105:function(e){e.exports=Object.freeze({SMALL_INT:0,LONG_STRING:1,SHORT_STRING:1,SHORT_LIST:3,LONG_TUPLE:11,SHORT_TUPLE:11,LONG_LIST:31,MAP:47,EMPTY_TUPLE:63,POS_BITS:79,EMPTY_STRING:95,POS_BIG_INT:111,FALSE:127,OBJECT:159,VARIANT:175,MAP_ID:191,NEG_BITS:207,EMPTY_MAP:223,NEG_BIG_INT:239,TRUE:255,OTYPE_ADDRESS:0,OTYPE_BYTES:1,OTYPE_CONTRACT:2,OTYPE_ORACLE:3,OTYPE_ORACLE_QUERY:4,OTYPE_CHANNEL:5})},84265:function(e){const t=e=>({name:"tuple",valueTypes:e}),n=(e,t)=>({name:"map",keyType:e,valueType:t}),r=(e,n,r)=>({name:"variant",aritiesType:{name:"int"},arities:e,variantType:t(n),variants:r}),o=()=>r(0,null,[{RelativeTTL:[{name:"int"}]},{FixedTTL:[{name:"int"}]}]),i=()=>r(0,null,[{"AENS.AccountPt":[{name:"account_address"}]},{"AENS.OraclePt":[{name:"account_address"}]},{"AENS.ContractPt":[{name:"account_address"}]},{"AENS.ChannelPt":[{name:"account_address"}]}]);e.exports={FateTypeVoid:()=>({name:"void"}),FateTypeInt:()=>({name:"int"}),FateTypeBool:()=>({name:"bool"}),FateTypeString:()=>({name:"string"}),FateTypeBits:()=>({name:"bits"}),FateTypeBytes:e=>({name:"bytes",size:e}),FateTypeHash:()=>({name:"hash"}),FateTypeSignature:()=>({name:"signature"}),FateTypeAccountAddress:()=>({name:"account_address"}),FateTypeContractAddress:()=>({name:"contract_address"}),FateTypeOracleAddress:(e,t)=>({name:"oracle_address",questionType:e,answerType:t}),FateTypeOracleQueryAddress:(e,t)=>({name:"oracle_query_address",questionType:e,answerType:t}),FateTypeByteArray:()=>({name:"byte_array"}),FateTypeList:e=>({name:"list",valuesType:e}),FateTypeTuple:t,FateTypeRecord:(e,t)=>({name:"record",keys:e,valueTypes:t}),FateTypeMap:n,FateTypeVariant:r,FateTypeOption:e=>r(0,null,[{None:[]},{Some:e}]),FateTypeChainTTL:o,FateTypeChainGAMetaTx:()=>r(0,null,[{"Chain.GAMetaTx":[{name:"account_address"},{name:"int"}]}]),FateTypeChainPayingForTx:()=>r(0,null,[{"Chain.PayingForTx":[{name:"account_address"},{name:"int"}]}]),FateTypeChainBaseTx:()=>r(0,null,[{"Chain.SpendTx":[{name:"account_address"},{name:"int"},{name:"string"}]},{"Chain.OracleRegisterTx":[]},{"Chain.OracleQueryTx":[]},{"Chain.OracleResponseTx":[]},{"Chain.OracleExtendTx":[]},{"Chain.NamePreclaimTx":[]},{"Chain.NameClaimTx":[{name:"string"}]},{"Chain.NameUpdateTx":[{name:"hash"}]},{"Chain.NameRevokeTx":[{name:"hash"}]},{"Chain.NameTransferTx":[{name:"account_address"},{name:"hash"}]},{"Chain.ChannelCreateTx":[{name:"account_address"}]},{"Chain.ChannelDepositTx":[{name:"account_address"},{name:"int"}]},{"Chain.ChannelWithdrawTx":[{name:"account_address"},{name:"int"}]},{"Chain.ChannelForceProgressTx":[{name:"account_address"}]},{"Chain.ChannelCloseMutualTx":[{name:"account_address"}]},{"Chain.ChannelCloseSoloTx":[{name:"account_address"}]},{"Chain.ChannelSlashTx":[{name:"account_address"}]},{"Chain.ChannelSettleTx":[{name:"account_address"}]},{"Chain.ChannelSnapshotSoloTx":[{name:"account_address"}]},{"Chain.ContractCreateTx":[{name:"account_address"}]},{"Chain.ContractCallTx":[{name:"account_address"},{name:"int"}]},{"Chain.GAAttachTx":[]}]),FateTypeAENSPointee:i,FateTypeAENSName:()=>{const e=[{"AENS.Name":[{name:"account_address"},o(),n({name:"string"},i())]}];return r(0,null,e)},FateTypeEvent:e=>({name:"event",variantType:e})}},60880:function(e,t,n){const r=n(92727);e.exports=class{visitData(e){return e.valueOf()}visitAddress(e){return e.prefix+"_"+r.encode(e.value)}visitList(e){return e.items.map((e=>e.accept(this)))}visitMap(e){const t=new Map;for(const[n,r]of e.iterator)t.set(n.accept(this),r.accept(this));return t}visitTuple(e){return e.prepareItems((e=>e.accept(this)))}visitVariant(e){if("None"===e.variantName)return;const t=e.value.map((e=>e.accept(this)));return"Some"===e.variantName?t[0]:{[e.variantName]:t}}}},51338:function(e,t,n){const r=n(92727),o=n(55110),i={account_address:"ak",contract_address:"ct",channel_address:"ch",oracle_address:"ok",oracle_query_address:"oq"};e.exports=class{toInternal(e,t){switch(e.name){case"account_address":case"contract_address":case"channel_address":case"oracle_address":case"oracle_query_address":return this.toAddress(e,t);case"variant":return this.toVariant(e,t);case"map":return this.toMap(e,t);default:return t}}toAddress({name:e,_:t},n){const a=n.toString(),s=i[e];if(!a.startsWith(s+"_"))throw new o(e,`Address should start with ${s}_, got ${a} instead`);return r.decode(a.substring(s.length+1))}toVariant(e,t){if(!this.isOptionVariant(e))return t;if([void 0,null].includes(t))return{None:[]};const[n]=Object.keys(t);return["Some","None"].includes(n)?t:{Some:[t]}}isOptionVariant({_name:e,variants:t}){return t.some((({None:e})=>e&&0===e.length))&&t.some((({Some:e})=>e))}toMap(e,t){if("object"!=typeof t||null===t)throw new o("map",`Fate map must be one of: Map, Array, Object; got ${t} instead`);return Array.isArray(t)||t instanceof Map?t:Object.entries(t)}}},17829:function(e,t,n){const r=n(52584),o=n(69865),i=n(68268),a=n(59135),s=n(21290),c=n(4857),u=n(28183),A=n(66651),l=n(13234),f=n(44150),h=n(42086),p=n(34),d=n(62137),g=n(70692),y=n(54266),m=n(51751),I=n(26973),v=n(46178),w=n(69503),E=n(99098);e.exports=class extends i{constructor(){super(),this.typeFactory=new r,this._serializers={void:new p,bool:new c,int:new h,tuple:new v(this),record:new v(this),list:new d(this),map:new g(this),byte_array:new u,string:new I,hash:new A,signature:new A,bits:new s,variant:new w(this),bytes:new A,account_address:new a,contract_address:new f,oracle_address:new m,oracle_query_address:new y,channel_address:new l}}_getSerializer(e){if(!e.hasOwnProperty("name"))throw new E("Unsupported type: "+JSON.stringify(e));const t=e.name;if(!this._serializers.hasOwnProperty(t))throw new E("Unsupported type: "+JSON.stringify(t));return this._serializers[t]}serialize(e){if("object"!=typeof e)throw new E("Only object serialization is supported. Got: "+JSON.stringify(e));if(!(e instanceof o))throw new E("Only instances of FateData is supported.");return this._getSerializer(e).serialize(e)}deserialize(e,t){if(!(t instanceof Uint8Array))throw new E("Only instances of Uint8Array is supported.");return this._getSerializer(e).deserialize(t,e)}deserializeStream(e,t){if(!(e instanceof Uint8Array))throw new E("Only instances of Uint8Array is supported.");let n=t;return void 0===t&&(n=this.typeFactory.createType(e)),this._getSerializer(n).deserializeStream(e,t)}}},59135:function(e,t,n){const r=n(6636),o=n(20105),i=n(68268),a=n(20539);e.exports=class extends i{serialize(e){return[o.OBJECT,o.OTYPE_ADDRESS,...r.encode(e.value)]}deserializeStream(e){const t=new Uint8Array(e),n=r.decode(t.slice(2),!0);return[new a(n.data),new Uint8Array(n.remainder)]}}},68268:function(e,t,n){const r=n(99098);e.exports=class{constructor(e){this.globalSerializer=e}serialize(e){throw new r("Not implemented.")}deserialize(e,t){const[n,r]=this.deserializeStream(e,t);return n}deserializeStream(e,t){throw new r("Not implemented.")}}},21290:function(e,t,n){const r=n(6636),o=n(20105),i=n(77138),a=n(43422),s=n(68268),{ByteArray2Int:c}=n(80240),u=n(99475);e.exports=class extends s{serialize(e){return[e.value>=0?o.POS_BITS:o.NEG_BITS,...i(u(e.value))]}deserializeStream(e){const t=new Uint8Array(e),n=t[0]===o.POS_BITS?1n:-1n,i=r.decode(t.slice(1),!0),s=c(i.data);return[new a(s*n),new Uint8Array(i.remainder)]}}},4857:function(e,t,n){const r=n(20105),o=n(4476),i=n(68268),a=n(5462);e.exports=class extends i{serialize(e){return!0===e.valueOf()?[r.TRUE]:[r.FALSE]}deserializeStream(e){const t=new Uint8Array(e),n=t[0],i=t.slice(1);if(n===r.TRUE)return[new o(!0),i];if(n===r.FALSE)return[new o(!1),i];throw new a(n)}}},28183:function(e,t,n){const r=n(20105),o=n(68268),i=n(7945),a=new(n(42086));e.exports=class extends o{serialize(e){return 0===e.length?[r.EMPTY_STRING]:e.length<64?[e.length<<2|r.SHORT_STRING,...e.valueOf()]:[r.LONG_STRING,...a.serialize(e.length-64),...e.valueOf()]}deserializeStream(e){const t=new Uint8Array(e),n=t[0];if(n===r.EMPTY_STRING)return[new i,t.slice(1)];if(n===r.LONG_STRING){const[e,n]=a.deserializeStream(t.slice(1)),r=Number(e.valueOf())+64;return[new i(n.slice(0,r)),n.slice(r)]}const o=1+(n>>2);return[new i(t.slice(1,o)),t.slice(o)]}}},66651:function(e,t,n){const r=n(20105),o=n(28183),i=n(15779),a=n(68268),s=new o;e.exports=class extends a{serialize(e){return[r.OBJECT,r.OTYPE_BYTES,...s.serialize(e.value)]}deserializeStream(e){const t=new Uint8Array(e),[n,r]=s.deserializeStream(t.slice(2));return[new i(n.valueOf()),r]}}},13234:function(e,t,n){const r=n(6636),o=n(20105),i=n(68268),a=n(96445);e.exports=class extends i{serialize(e){return[o.OBJECT,o.OTYPE_CHANNEL,...r.encode(e.value)]}deserializeStream(e){const t=new Uint8Array(e),n=r.decode(t.slice(2),!0);return[new a(n.data),new Uint8Array(n.remainder)]}}},44150:function(e,t,n){const r=n(6636),o=n(20105),i=n(68268),a=n(58623);e.exports=class extends i{serialize(e){return[o.OBJECT,o.OTYPE_CONTRACT,...r.encode(e.value)]}deserializeStream(e){const t=new Uint8Array(e),n=r.decode(t.slice(2),!0);return[new a(n.data),new Uint8Array(n.remainder)]}}},42086:function(e,t,n){const r=n(6636),o=n(20105),i=n(77138),a=n(43509),s=n(68268),{ByteArray2Int:c}=n(80240),u=n(5462),A=n(99475);e.exports=class extends s{serialize(e){const t=e instanceof a?e.value:BigInt(e),n=A(t);if(n<64){const e=Number(n);return t>=0?[e<<1]:[254&(128|e<<1)]}return t<0?[o.NEG_BIG_INT,...i(n-64n)]:[o.POS_BIG_INT,...i(n-64n)]}deserializeStream(e){const t=new Uint8Array(e),n=t[0];if(0==(1&n))return 0==(128&n)?[new a(n>>1),t.slice(1)]:[new a(-((126&n)>>1)),t.slice(1)];if(n===o.POS_BIG_INT||n===o.NEG_BIG_INT){const e=n===o.POS_BIG_INT?1n:-1n,i=r.decode(t.slice(1),!0),s=c(i.data);return[new a((s+64n)*e),new Uint8Array(i.remainder)]}throw new u(n)}}},62137:function(e,t,n){const r=n(20105),o=n(43509),i=n(51041),a=n(68268);e.exports=class extends a{serialize(e){const t=e.items.map((e=>this.globalSerializer.serialize(e))).flat(1/0),n=e.items.length;return n<16?[n<<4|r.SHORT_LIST,...t]:[r.LONG_LIST,...this.globalSerializer.serialize(new o(n-16)),...t]}deserializeStream(e,t){const n=new Uint8Array(e),o=n[0];let a,s,c=0n,u=n.slice(1);o===r.LONG_LIST&&([c,u]=this.globalSerializer.deserializeStream(n.slice(1)),c+=16n),(15&o)===r.SHORT_LIST&&(c=BigInt((240&o)>>4)),void 0!==t&&(a=t.valuesType);const A=[];for(let e=0n;e<c;e++)[s,u]=this.globalSerializer.deserializeStream(u,a),A.push(s);return 0n===c?[new i(null),u]:(void 0===t&&(a=A[0].type),[new i(a,A),u])}}},70692:function(e,t,n){const r=n(6636),o=n(20105),i=n(77138),a=n(68268),{ByteArray2Int:s}=n(80240),c=n(12689),u=n(68804),A=n(5462);e.exports=class extends a{serialize(e){const t=e.length,n=c(e.keyType),r=[...e.items];r.sort(((e,t)=>n(e.key,t.key)));const a=r.map((e=>[this.globalSerializer.serialize(e.key),this.globalSerializer.serialize(e.value)]));return[o.MAP,...i(t),...a.flat(1/0)]}deserializeStream(e,t){const n=new Uint8Array(e),i=n[0];if(i!==o.MAP)throw new A(i);const a=r.decode(n.slice(1),!0),c=s(a.data);let l,f,h=a.remainder;if(0n===c)return[new u,h];void 0!==t&&({keyType:l,valueType:f}=t);const p=[];for(let e=0n;e<c;e++){const[e,t]=this.globalSerializer.deserializeStream(h,l),[n,r]=this.globalSerializer.deserializeStream(t,f);p.push([e,n]),h=r}const d=p[0];return void 0===t&&(l=d[0].type,f=d[1].type),[new u(l,f,p),h]}}},54266:function(e,t,n){const r=n(6636),o=n(20105),i=n(68268),a=n(45070);e.exports=class extends i{serialize(e){return[o.OBJECT,o.OTYPE_ORACLE_QUERY,...r.encode(e.value)]}deserializeStream(e){const t=new Uint8Array(e),n=r.decode(t.slice(2),!0);return[new a(n.data),new Uint8Array(n.remainder)]}}},51751:function(e,t,n){const r=n(6636),o=n(20105),i=n(68268),a=n(90687);e.exports=class extends i{serialize(e){return[o.OBJECT,o.OTYPE_ORACLE,...r.encode(e.value)]}deserializeStream(e){const t=new Uint8Array(e),n=r.decode(t.slice(2),!0);return[new a(n.data),new Uint8Array(n.remainder)]}}},26973:function(e,t,n){const r=n(20105),o=n(68268),i=n(28183),a=n(36313),s=n(5462),c=new i;e.exports=class extends o{serialize(e){const t=(new TextEncoder).encode(e);return c.serialize(t)}deserializeStream(e){const t=new Uint8Array(e),n=t[0];if((3&n)!==r.SHORT_STRING&&![r.EMPTY_STRING,r.LONG_STRING].includes(n))throw new s(n);const o=new TextDecoder,[i,u]=c.deserializeStream(t);return[new a(o.decode(i.valueOf())),u]}}},46178:function(e,t,n){const r=n(20105),o=n(43509),i=n(56878),a=n(68268);e.exports=class extends a{serialize(e){const t=e.size;if(0===t)return[r.EMPTY_TUPLE];const n=e.items.map((e=>this.globalSerializer.serialize(e))).flat(1/0);return t<16?[t<<4|r.SHORT_TUPLE,...n]:[r.LONG_TUPLE,...this.globalSerializer.serialize(new o(t-16)),...n]}deserializeStream(e,t){const n=new Uint8Array(e),o=n[0];let a=0n,s=n.slice(1);if(o===r.EMPTY_TUPLE)return[new i,s];(15&o)===r.SHORT_TUPLE&&(a=(240&o)>>4),o===r.LONG_TUPLE&&([a,s]=this.globalSerializer.deserializeStream(n.slice(1)),a+=16n);let c=[];void 0!==t&&(c=t.valueTypes);const u=[];let A=null;for(let e=0n;e<a;e++)[A,s]=this.globalSerializer.deserializeStream(s,c[e]),u.push(A);let l=t;return void 0===t&&(l=u.map((e=>e.type))),[new i(l,u),s]}}},69503:function(e,t,n){const r=n(6636),o=n(20105),i=n(56878),a=n(72457),s=n(68268);e.exports=class extends s{serialize(e){const t=new i(e.valueTypes,e.value);return[o.VARIANT,...r.encode(new Uint8Array(e.arities)),e.tag,...this.globalSerializer.serialize(t)]}deserializeStream(e,t){const n=new Uint8Array(e),o=r.decode(n.slice(1),!0),i=[...o.data],s=o.remainder[0],c=o.remainder.slice(1);let u,A=[];void 0!==t&&(A=t.variants,u={...t.variantType,valueTypes:Object.values(t.variants[s])[0]});const[l,f]=this.globalSerializer.deserializeStream(c,u);return[new a(i,s,l.items,l.valueTypes,A),f]}}},34:function(e,t,n){const r=n(19713),o=n(68268);e.exports=class extends o{serialize(){return""}deserialize(){return new r}deserializeStream(e){return[new r,e]}}},52584:function(e,t,n){const r=n(44664),o=n(20105),i=n(5462),{FateTypeInt:a,FateTypeBool:s,FateTypeString:c,FateTypeBits:u,FateTypeBytes:A,FateTypeAccountAddress:l,FateTypeContractAddress:f,FateTypeOracleAddress:h,FateTypeOracleQueryAddress:p,FateTypeList:d,FateTypeMap:g,FateTypeTuple:y,FateTypeVariant:m}=n(84265),I={0:l(),1:A(),2:f(),3:h(),4:p()};e.exports=class{createType(e){const t=e[0];if(t===o.TRUE||t===o.FALSE)return s();if((1&t)===o.SMALL_INT||t===o.POS_BIG_INT||t===o.NEG_BIG_INT)return a();if((3&t)===o.SHORT_STRING||t===o.LONG_STRING)return c();if((15&t)===o.SHORT_LIST||t===o.LONG_LIST)return d();if((15&t)===o.SHORT_TUPLE||t===o.LONG_TUPLE||t===o.EMPTY_TUPLE)return y();if(t===o.MAP||t===o.EMPTY_MAP)return g();if(t===o.POS_BITS||t===o.NEG_BITS)return u();if(t===o.VARIANT)return m();if(t===o.OBJECT){const t=e[1];return r(I.hasOwnProperty(t),`Unsupported object type "${t}"`),I[t]}throw new i(t)}}},92540:function(e,t,n){const r=n(76966),{FateTypeVoid:o,FateTypeInt:i,FateTypeBool:a,FateTypeString:s,FateTypeBits:c,FateTypeBytes:u,FateTypeHash:A,FateTypeSignature:l,FateTypeAccountAddress:f,FateTypeContractAddress:h,FateTypeOracleAddress:p,FateTypeOracleQueryAddress:d,FateTypeList:g,FateTypeMap:y,FateTypeTuple:m,FateTypeRecord:I,FateTypeVariant:v,FateTypeOption:w,FateTypeChainTTL:E,FateTypeChainGAMetaTx:B,FateTypeChainPayingForTx:C,FateTypeChainBaseTx:b,FateTypeAENSPointee:Q,FateTypeAENSName:x,FateTypeEvent:_}=n(84265),S=e=>e&&"object"==typeof e&&e.constructor===Object,T=({type:e})=>{let t,n=e;return S(n)&&([[n,t]]=Object.entries(n)),"option"===n};e.exports=class{constructor(e){this.aci=e}getCallTypes(e,t){const n=this.getNamespaceAci(e).functions.find((e=>e.name===t));if(n){const e=n.arguments.map((e=>this.resolveType(e.type))),t=n.arguments.filter(T);return{types:e,required:e.length-t.length}}if("init"===t)return{types:[],required:0};throw new r(`Unknown function ${t}`)}getReturnType(e,t){if("init"===t)return this.resolveType("void");const n=this.getNamespaceAci(e).functions.find((e=>e.name===t));if(!n)throw new r(`Unknown function ${t}`);return this.resolveType(n.returns)}getEventType(e){const t=this.getNamespaceAci(e);if(!t.hasOwnProperty("event"))throw new r("Missing event declaration");return _(this.resolveType(t.event))}isCustomType(e){if("string"!=typeof e)return!1;const[t,n]=e.split(".");return!!this.getNamespaceAci(t)}getNamespaceAci(e){for(const t of this.aci){const[[n,r]]=Object.entries(t);if(r.name===e)return r}return null}resolveType(e,t={}){let n=e,I=[],v=[];if(S(e)&&([[n,I]]=Object.entries(e)),this.isCustomType(n)){const[e,t]=this.resolveTypeDef(n,I);return this.resolveType(e,t)}if(Array.isArray(I)&&"record"!==n&&"variant"!==n&&(v=I.map((e=>this.resolveType(e)))),"void"===n)return o();if("int"===n)return i();if("bool"===n)return a();if("string"===n)return s();if("bits"===n)return c();if("hash"===n)return A();if("signature"===n)return l();if("address"===n)return f();if("contract_address"===n)return h();if("Chain.ttl"===n)return E();if("Chain.ga_meta_tx"===n)return B();if("Chain.paying_for_tx"===n)return C();if("Chain.base_tx"===n)return b();if("AENS.pointee"===n)return Q();if("AENS.name"===n)return x();if("bytes"===n)return u(I);if("list"===n)return g(...v);if("tuple"===n)return m(v);if("map"===n)return y(...v);if("record"===n)return this.resolveRecord(I);if("variant"===n)return this.resolveVariant(I,t);if("option"===n)return w(v);if("oracle"===n)return p(...v);if("oracle_query"===n)return d(...v);throw new r("Cannot resolve type: "+JSON.stringify(e))}resolveVariant(e,t){const n=e.map((e=>{const[[n,r]]=Object.entries(e);return{[n]:r.map((e=>{const n=t.hasOwnProperty(e)?t[e]:e;return this.resolveType(n,t)}))}}));return v(0,null,n)}resolveRecord(e){const t=e.map((e=>e.name)),n=e.map((e=>this.resolveType(e.type)));return I(t,n)}resolveTypeDef(e,t=[]){const[n,o]=e.split("."),i=this.getNamespaceAci(n);if(!i)throw new r("Unknown namespace for "+JSON.stringify(e));if(i.name===e)return["contract_address",[]];const a=[...i.type_defs,...i.state?[{name:"state",typedef:i.state,vars:[]}]:[]].find((e=>e.name===o));if(!a)throw new r("Unknown type definition: "+JSON.stringify(e));const s={};return a.vars.forEach(((e,n)=>{const[[r,o]]=Object.entries(e);s[o]=t[n]})),[s.hasOwnProperty(a.typedef)?s[a.typedef]:a.typedef,s]}}},23023:function(e,t,n){const r=n(92968);e.exports={Encoder:r}},20539:function(e,t,n){const r=n(86187);e.exports=class extends r{constructor(e){super(e,"account_address","ak")}}},86187:function(e,t,n){const r=n(15779);e.exports=class extends r{constructor(e,t,n){super(e,32,t),this._prefix=n}get prefix(){return this._prefix}accept(e){return e.visitAddress(this)}}},43422:function(e,t,n){const r=n(69865);e.exports=class extends r{constructor(e){super("bits"),this._value=BigInt(e)}get value(){return this._value}valueOf(){return this._value}}},4476:function(e,t,n){const r=n(69865),{FateTypeBool:o}=n(84265);e.exports=class extends r{constructor(e){super("bool"),this._value=!!e}get value(){return this._value}get type(){return o()}valueOf(){return this._value}}},7945:function(e,t,n){const r=n(69865),{FateTypeByteArray:o}=n(84265);e.exports=class extends r{constructor(e=[]){super("byte_array"),this._value=new Uint8Array(e)}get length(){return this._value.length}get type(){return o()}valueOf(){return this._value}}},15779:function(e,t,n){const r=n(69865),{Int2ByteArray:o}=n(80240),i=n(30381),a=n(55110);e.exports=class extends r{constructor(e,t,n="bytes"){if(super(n),this._value=((e,t=0)=>{if(Array.isArray(e)||ArrayBuffer.isView(e))return new Uint8Array(e);if("string"==typeof e)return i(e);if("bigint"!=typeof e&&!Number.isInteger(e))throw new a("byte_array",`Should be one of: Array, ArrayBuffer, hex string, Number, BigInt; got ${e} instead`);const n=o(e);if(n.length>=t)return n;const r=new Uint8Array(t);return r.set(n,t-n.length),r})(e,t),t&&this._value.byteLength!==t)throw new a(n,`Invalid length: got ${this._value.byteLength} bytes instead of ${t} bytes`);this._size=t}get value(){return this._value}get size(){return this._size}valueOf(){return this._value}}},96445:function(e,t,n){const r=n(86187);e.exports=class extends r{constructor(e){super(e,"channel_address","ch")}}},58623:function(e,t,n){const r=n(86187);e.exports=class extends r{constructor(e){super(e,"contract_address","ct")}}},69865:function(e,t,n){const r=n(2966);e.exports=class{constructor(e){this.name=e}valueOf(){throw new r("Not implemented.")}accept(e){return e.visitData(this)}}},7772:function(e,t,n){const r=n(15779);e.exports=class extends r{constructor(e){super(e,32,"hash")}}},43509:function(e,t,n){const r=n(69865),{FateTypeInt:o}=n(84265);e.exports=class extends r{constructor(e){super("int"),this._value=BigInt(e)}get value(){return this._value}get type(){return o()}valueOf(){return this._value}}},51041:function(e,t,n){const r=n(69865),{FateTypeList:o}=n(84265);e.exports=class extends r{constructor(e,t=[]){super("list"),this._itemsType=e,this.items=Array.from(t)}get itemsType(){return this._itemsType}get type(){return o(this.itemsType)}get length(){return this.items.length}valueOf(){return this.items.map((e=>e.valueOf()))}accept(e){return e.visitList(this)}}},68804:function(e,t,n){const r=n(69865),{FateTypeMap:o}=n(84265),i=e=>{const[t,n]=e;return{key:t,value:n}};e.exports=class extends r{constructor(e,t,n=[]){super("map"),this._keyType=e,this._valueType=t,this._type=o(e,t),this._value=new Map(n)}get items(){return[...this._value.entries()].map(i)}get keyType(){return this._keyType}get valueType(){return this._valueType}get type(){return this._type}get length(){return this._value.size}get iterator(){return this._value[Symbol.iterator]()}valueOf(){const e=new Map;for(const[t,n]of this.iterator)e.set(t.valueOf(),n.valueOf());return e}accept(e){return e.visitMap(this)}}},90687:function(e,t,n){const r=n(86187);e.exports=class extends r{constructor(e){super(e,"oracle_address","ok")}}},45070:function(e,t,n){const r=n(86187);e.exports=class extends r{constructor(e){super(e,"oracle_query_address","oq")}}},63607:function(e,t,n){const r=n(15779);e.exports=class extends r{constructor(e){super(e,64,"signature")}}},36313:function(e,t,n){const r=n(69865),{FateTypeString:o}=n(84265);e.exports=class extends r{constructor(e){super("string"),this._value=e.toString()}get type(){return o()}toString(){return this._value}valueOf(){return this._value}}},56878:function(e,t,n){const r=n(69865),{FateTypeTuple:o}=n(84265);e.exports=class extends r{constructor(e=[],t=[]){super("tuple"),this._valueTypes=e.hasOwnProperty("valueTypes")?e.valueTypes:e,this._type=Array.isArray(e)?o(e):e,this._items=Array.from(t)}get valueTypes(){return this._valueTypes}get type(){return this._type}get size(){return this._items.length}get items(){return this._items}valueOf(){return this.prepareItems((e=>e.valueOf()))}prepareItems(e){const t=this._items.map(e);return"record"===this._type.name?(n=this._type.keys,r=t,n.reduce(((e,t,n)=>(e[t]=r[n],e)),{})):t;var n,r}accept(e){return e.visitTuple(this)}}},72457:function(e,t,n){const r=n(69865),{FateTypeVariant:o,FateTypeTuple:i,FateTypeInt:a}=n(84265);e.exports=class extends r{constructor(e,t,n=[],r=[],i=[]){super("variant"),this.arities=Array.from(e),this._tag=t,this._value=n,this._valueTypes=r,this._type=o(e,r,i)}get valueTypes(){return this._valueTypes}get type(){return this._type}get tag(){return this._tag}get value(){return this._value}get aritiesType(){return a()}get variantType(){return i(this._valueTypes)}get variants(){return this._type.variants}get variantName(){const e=this.variants[this.tag];return Object.keys(e)[0]}valueOf(){if(0===this.variants.length)return this;const e=this._value.map((e=>e.valueOf()));return{[this.variantName]:e}}accept(e){return e.visitVariant(this)}}},19713:function(e,t,n){const r=n(69865),{FateTypeVoid:o}=n(84265);e.exports=class extends r{constructor(){super("void"),this._value=void 0}get value(){return this._value}get type(){return o()}valueOf(){return this._value}}},30381:function(e,t,n){const r=n(70722);e.exports=e=>{const t=e.match(/^(0x)?([a-f0-9]*)$/i);if(!t)throw new r(`Invalid hex string: ${e}`);return new Uint8Array(t[2].split(/(.{1,2})/).filter((e=>e)).map((e=>parseInt(e,16))))}},80240:function(e){const t=e=>{const n=BigInt(e);return n<256n?new Uint8Array([Number(n)]):new Uint8Array([...t(n>>8n),Number(0xffn&n)])};e.exports={Int2ByteArray:t,ByteArray2Int:e=>{const t=[];return e.forEach((e=>{let n=e.toString(16);n.length%2&&(n="0"+n),t.push(n)})),BigInt("0x"+t.join(""))}}},77138:function(e,t,n){const r=n(6636),{Int2ByteArray:o}=n(80240);e.exports=function(e){return new Uint8Array(r.encode(o(e)))}},99475:function(e){e.exports=e=>e>0?e:-1n*e},44664:function(e,t,n){const r=n(2966);e.exports=(e,t)=>{if(!e)throw new r(t)}},92727:function(e,t,n){const r=n(77191),{addChecksum:o,getPayload:i}=n(68638);e.exports={encode:e=>r.encode(o(e)),decode:e=>i(r.decode(e))}},68638:function(e,t,n){const r=n(89072),{Buffer:o}=n(89509),i=n(70722),a=e=>r("sha256").update(e).digest(),s=e=>a(a(e)).slice(0,4),c=e=>{const t=o.from(e),n=s(e);return o.concat([t,n],t.length+4)},u=e=>{const t=e.slice(0,-4),n=e.slice(-4),r=s(t);if(!n.equals(r))throw new i("Invalid checksum");return t};e.exports={addChecksum:c,getPayload:u,encode:e=>c(e).toString("base64"),decode:e=>u(o.from(e,"base64"))}},12665:function(e,t,n){const r=n(27871),o=e=>Array.from(r.blake2b(e,null,32));e.exports={hash:o,symbolIdentifier:e=>o(e).slice(0,4)}},19250:function(e,t,n){var r=n(48764).Buffer;e.exports=(()=>{var e={721:function(e,t){e.exports="AGFzbQEAAAABkwESYAF/AX9gA39/fwF/YAJ/fwBgAn9/AX9gAX8AYAR/f39/AX9gA39/fwBgBH9/f38AYAJ/fgBgAn5/AX5gAn5+AX5gBX9/f39/AGAAAGAGf3x/f39/AX9gCH9/f39/f39/AX9gEX9/f39/f39/f39/f39/f39/AX9gBn9/f39/fwF/YA1/f39/f39/f39/f39/AX8CDQIBYQFhAAABYQFiAAEDPTwJCgECAQIEAAABAAsGAAEHAQIAAwICAwIIAAIDAAcMAwYABQAEBgAABQUAAQECBAEBCAABDg8EEAAFEQMEBQFwAQMDBQcBAYAC//8BBgkBfwFBoKLAAgsHMQwBYwIAAWQAIAFlADwBZgAJAWcACAFoADsBaQA6AWoAOQFrAQABbAA3AW0ANgFuADQJCAEAQQELAgs1CoeyATwIACAAIAGtigseACAAIAF8IABCAYZC/v///x+DIAFC/////w+DfnwLgQQBA38gAkGABE8EQCAAIAEgAhABGiAADwsgACACaiEDAkAgACABc0EDcUUEQAJAIABBA3FFBEAgACECDAELIAJFBEAgACECDAELIAAhAgNAIAIgAS0AADoAACABQQFqIQEgAkEBaiICQQNxRQ0BIAIgA0kNAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgACADQQRrIgRLBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAsZAAJAIABFDQBB8BwoAgBF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dGogB0EKdGohByABIAhBCnRqIQkCQCADKAIEQRBGBEAgASACQQp0aiAHIAlBABARDAELIAEgAkEKdGohASAEKAIARQRAIAEgByAJQQAQEQwBCyABIAcgCUEBEBELIApBAWoiCiADKAIQTw0BIAhBAWohCCACQQFqIQEgAygCFCECDAALAAsgBkGAGGokACADKAIYIgUhAiAMQQFqIgwgBUkNAAsLIAIhASALQQFqIgtBBEcNAAsgDUEBaiINIAMoAghJDQALCyAEQSBqJABBACEBCyABIgINACMAQYAQayIBJAAgAEUgA0VyRQRAIAFBgAhqIAMoAgAgAygCFEEKdGpBgAhrEBcgAygCGEECTwRAQQEhAgNAIAFBgAhqIAMoAgAgAygCFCIEIAIgBGxqQQp0akGACGsQFiACQQFqIgIgAygCGEkNAAsLIAFBgAhqIQRBACECA0AgASACQQN0IgVqIAQgBWopAwAQMyACQQFqIgJBgAFHDQALIAAoAgAgACgCBCABQYAIEB8gBEGACBAFIAFBgAgQBSADKAIAIgIgAygCDEEKdCIEEAUCQCAAKAJAIgAEQCACIAQgABECAAwBCyACEAgLCyABQYAQaiQAQQAhAgsgA0EwaiQAIAILJwEBfwJAAkACQAJAIAAOAwABAgMLQdATDwtBixEPC0GeEyEBCyABC48DAQF/IwBBgANrIgQkACAEQQA2AowBIARBjAFqIAEQBwJAIAFBwABNBEAgBEGQAWogARAYQQBIDQEgBEGQAWogBEGMAWpBBBAGQQBIDQEgBEGQAWogAiADEAZBAEgNASAEQZABaiAAIAEQEhoMAQsgBEGQAWpBwAAQGEEASA0AIARBkAFqIARBjAFqQQQQBkEASA0AIARBkAFqIAIgAxAGQQBIDQAgBEGQAWogBEFAa0HAABASQQBIDQAgACAEKQNANwAAIAAgBCkDSDcACCAAIAQpA1g3ABggACAEKQNQNwAQIABBIGohACABQSBrIgJBwQBPBEADQCAEIARBQGtBwAAQBCIBQUBrQcAAIAEQMkEASA0CIAAgASkDQDcAACAAIAEpA0g3AAggACAEKQNYNwAYIAAgBCkDUDcAECAAQSBqIQAgAkEgayICQcAASw0ACwsgBCAEQUBrQcAAEAQiAUFAayACIAEQMkEASA0AIAAgAUFAayACEAQaCyAEQZABakHwARAFIARBgANqJAALEwBBjB5BnB02AgBBxB1BKjYCAAuXAgAgAEUEQEEADwsCfwJAIAAEfyABQf8ATQ0BAkBBjB4oAgAoAgBFBEAgAUGAf3FBgL8DRg0DDAELIAFB/w9NBEAgACABQT9xQYABcjoAASAAIAFBBnZBwAFyOgAAQQIMBAsgAUGAQHFBgMADRyABQYCwA09xRQRAIAAgAUE/cUGAAXI6AAIgACABQQx2QeABcjoAACAAIAFBBnZBP3FBgAFyOgABQQMMBAsgAUGAgARrQf//P00EQCAAIAFBP3FBgAFyOgADIAAgAUESdkHwAXI6AAAgACABQQZ2QT9xQYABcjoAAiAAIAFBDHZBP3FBgAFyOgABQQQMBAsLQfgcQRk2AgBBfwVBAQsMAQsgACABOgAAQQELC7wCAAJAAkACQAJAAkACQAJAAkACQAJAAkAgAUEJaw4SAAgJCggJAQIDBAoJCgoICQUGBwsgAiACKAIAIgFBBGo2AgAgACABKAIANgIADwsgAiACKAIAIgFBBGo2AgAgACABMgEANwMADwsgAiACKAIAIgFBBGo2AgAgACABMwEANwMADwsgAiACKAIAIgFBBGo2AgAgACABMAAANwMADwsgAiACKAIAIgFBBGo2AgAgACABMQAANwMADwsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKwMAOQMADwsgACACQQARAgALDwsgAiACKAIAIgFBBGo2AgAgACABNAIANwMADwsgAiACKAIAIgFBBGo2AgAgACABNQIANwMADwsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKQMANwMAC2sBBH8gACgCACwAABAPRQRAQQAPCwNAIAAoAgAhA0F/IQEgAkHMmbPmAE0EQEF/IAMsAABBMGsiBCACQQpsIgFqIARB/////wcgAWtKGyEBCyAAIANBAWo2AgAgASECIAMsAAEQDw0ACyABC40VAhJ/An4jAEHQAGsiBSQAIAVByg42AkwgBUE3aiEUIAVBOGohEAJAAkACQAJAA0AgBEH/////ByAMa0oNASAEIAxqIQwgBSgCTCIJIQQCQAJAAkAgCS0AACIIBEADQAJAAkAgCEH/AXEiBkUEQCAEIQgMAQsgBkElRw0BIAQhCANAIAQtAAFBJUcNASAFIARBAmoiBjYC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b24yaQBUaGUgcGFzc3dvcmQgZG9lcyBub3QgbWF0Y2ggdGhlIHN1cHBsaWVkIGhhc2gAT3V0cHV0IHBvaW50ZXIgbWlzbWF0Y2gAT3V0cHV0IGlzIHRvbyBsb25nAFNhbHQgaXMgdG9vIGxvbmcAU2VjcmV0IGlzIHRvbyBsb25nAFBhc3N3b3JkIGlzIHRvbyBsb25nAEFzc29jaWF0ZWQgZGF0YSBpcyB0b28gbG9uZwBUaHJlYWRpbmcgZmFpbHVyZQBNZW1vcnkgY29zdCBpcyB0b28gbGFyZ2UAVGltZSBjb3N0IGlzIHRvbyBsYXJnZQBVbmtub3duIGVycm9yIGNvZGUAYXJnb24yaWQAQXJnb24yaWQARW5jb2RpbmcgZmFpbGVkAERlY29kaW5nIGZhaWxlZABhcmdvbjJkAEFyZ29uMmQAQXJnb24yX0NvbnRleHQgY29udGV4dCBpcyBOVUxMAE91dHB1dCBwb2ludGVyIGlzIE5VTEwAVGhlIGFsbG9jYXRlIG1lbW9yeSBjYWxsYmFjayBpcyBOVUxMAFRoZSBmcmVlIG1lbW9yeSBjYWxsYmFjayBpcyBOVUxMAE9LACR2PQAsdD0ALHA9ACRtPQBUaGVyZSBpcyBubyBzdWNoIHZlcnNpb24gb2YgQXJnb24yAFNhbHQgcG9pbnRlciBpcyBOVUxMLCBidXQgc2FsdCBsZW5ndGggaXMgbm90IDAAU2VjcmV0IHBvaW50ZXIgaXMgTlVMTCwgYnV0IHNlY3JldCBsZW5ndGggaXMgbm90IDAAUGFzc3dvcmQgcG9pbnRlciBpcyBOVUxMLCBidXQgcGFzc3dvcmQgbGVuZ3RoIGlzIG5vdCAwAEFzc29jaWF0ZWQgZGF0YSBwb2ludGVyIGlzIE5VTEwsIGJ1dCBhZCBsZW5ndGggaXMgbm90IDAAKG51bGwpAAAAmwgAALsHAABJCQAAwAkAALAJAADwBwAAHwgAADAIAADJCAAAbwoAAOAJAAAWCgAAOwoAAEMIAAArCwAAwQoAAJIKAAD0CgAAAggAABEIAABbCQAAWwgAAHQJAAB0CAAABQkAAHQHAAAtCQAAngcAAPQIAABiBwAAGAkAAIgHAADhCAAATgcAAP8JAABcCgAAAQAAABkACgAZGRkAAAAABQAAAAAAAAkAAAAACwAAAAAAAAAAGQARChkZGQMKBwABAAkLGAAACQYLAAALAAYZAAAAGRkZAEHRGAshDgAAAAAAAAAAGQAKDRkZGQANAAACAAkOAAAACQAOAAAOAEGLGQsBDABBlxkLFRMAAAAAEwAAAAAJDAAAAAAADAAADABBxRkLARAAQdEZCxUPAAAABA8AAAAACRAAAAAAABAAABAAQf8ZCwESAEGLGgseEQAAAAARAAAAAAkSAAAAAAASAAASAAAaAAAAGhoaAEHCGgsOGgAAABoaGgAAAAAAAAkAQfMaCwEUAEH/GgsVFwAAAAAXAAAAAAkUAAAAAAAUAAAUAEGtGwsBFgBBuRsLJxUAAAAAFQAAAAAJFgAAAAAAFgAAFgAAMDEyMzQ1Njc4OUFCQ0RFRgBBhBwLAQIAQawcCwj//////////wBB8BwLBwEAAAAgEVA="},477:(e,t,n)=>{e.exports=function(e){e=void 0!==(e=e||{})?e:{};var t,n,r=Object.assign,o=r({},e),i=[],a="object"==typeof window,s="function"==typeof importScripts,c="";(a||s)&&(s?c=self.location.href:"undefined"!=typeof document&&document.currentScript&&(c=document.currentScript.src),c=0!==c.indexOf("blob:")?c.substr(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1):"",s&&(n=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),t=(e,t,n)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}),e.print||console.log.bind(console);var u,A,l=e.printErr||console.warn.bind(console);r(e,o),o=null,e.arguments&&(i=e.arguments),e.thisProgram&&e.thisProgram,e.quit&&e.quit,e.wasmBinary&&(u=e.wasmBinary),e.noExitRuntime,"object"!=typeof WebAssembly&&Q("no native wasm support detected");var f,h,p=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(t){f=t,e.HEAP8=new Int8Array(t),e.HEAP16=new Int16Array(t),e.HEAP32=new Int32Array(t),e.HEAPU8=h=new Uint8Array(t),e.HEAPU16=new Uint16Array(t),e.HEAPU32=new Uint32Array(t),e.HEAPF32=new Float32Array(t),e.HEAPF64=new Float64Array(t)}e.INITIAL_MEMORY;var y,m,I,v=[],w=[],E=[],B=0,C=null,b=null;function Q(t){throw e.onAbort&&e.onAbort(t),l(t="Aborted("+t+")"),p=!0,t+=". Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function x(e){return e.startsWith("data:application/octet-stream;base64,")}function _(e){return e.startsWith("file://")}function S(e){try{if(e==m&&u)return new Uint8Array(u);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){Q(e)}}function T(t){for(;t.length>0;){var n=t.shift();if("function"!=typeof n){var r=n.func;"number"==typeof r?void 0===n.arg?O(r)():O(r)(n.arg):r(void 0===n.arg?null:n.arg)}else n(e)}}function O(e){return y.get(e)}function N(e){try{return A.grow(e-f.byteLength+65535>>>16),g(A.buffer),1}catch(e){}}e.preloadedImages={},e.preloadedAudios={},x(m="argon2.wasm")||(I=m,m=e.locateFile?e.locateFile(I,c):c+I);var k,D={b:function(e,t,n){h.copyWithin(e,t,t+n)},a:function(e){var t,n=h.length,r=2147418112;if((e>>>=0)>r)return!1;for(var o=1;o<=4;o*=2){var i=n*(1+.2/o);if(i=Math.min(i,e+100663296),N(Math.min(r,((t=Math.max(e,i))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1}},F=(function(){var n={a:D};function r(t,n){var r,o=t.exports;e.asm=o,g((A=e.asm.c).buffer),y=e.asm.k,r=e.asm.d,w.unshift(r),function(t){if(B--,e.monitorRunDependencies&&e.monitorRunDependencies(B),0==B&&(null!==C&&(clearInterval(C),C=null),b)){var n=b;b=null,n()}}()}function o(e){r(e.instance)}function i(e){return function(){if(!u&&(a||s)){if("function"==typeof fetch&&!_(m))return fetch(m,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+m+"'";return e.arrayBuffer()})).catch((function(){return S(m)}));if(t)return new Promise((function(e,n){t(m,(function(t){e(new Uint8Array(t))}),n)}))}return Promise.resolve().then((function(){return S(m)}))}().then((function(e){return WebAssembly.instantiate(e,n)})).then((function(e){return e})).then(e,(function(e){l("failed to asynchronously prepare wasm: "+e),Q(e)}))}if(B++,e.monitorRunDependencies&&e.monitorRunDependencies(B),e.instantiateWasm)try{return e.instantiateWasm(n,r)}catch(e){return l("Module.instantiateWasm callback failed with error: "+e),!1}u||"function"!=typeof WebAssembly.instantiateStreaming||x(m)||_(m)||"function"!=typeof fetch?i(o):fetch(m,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,n).then(o,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),i(o)}))}))}(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.d).apply(null,arguments)},e._argon2_hash=function(){return(e._argon2_hash=e.asm.e).apply(null,arguments)},e._malloc=function(){return(F=e._malloc=e.asm.f).apply(null,arguments)}),U=(e._free=function(){return(e._free=e.asm.g).apply(null,arguments)},e._argon2_verify=function(){return(e._argon2_verify=e.asm.h).apply(null,arguments)},e._argon2_error_message=function(){return(e._argon2_error_message=e.asm.i).apply(null,arguments)},e._argon2_encodedlen=function(){return(e._argon2_encodedlen=e.asm.j).apply(null,arguments)},e._argon2_hash_ext=function(){return(e._argon2_hash_ext=e.asm.l).apply(null,arguments)},e._argon2_verify_ext=function(){return(e._argon2_verify_ext=e.asm.m).apply(null,arguments)},e.stackAlloc=function(){return(U=e.stackAlloc=e.asm.n).apply(null,arguments)});function R(t){function n(){k||(k=!0,e.calledRun=!0,p||(T(w),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)t=e.postRun.shift(),E.unshift(t);var t;T(E)}()))}t=t||i,B>0||(function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)t=e.preRun.shift(),v.unshift(t);var t;T(v)}(),B>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),n()}),1)):n()))}if(e.allocate=function(e,t){var n;return n=1==t?U(e.length):F(e.length),e.subarray||e.slice?h.set(e,n):h.set(new Uint8Array(e),n),n},e.UTF8ToString=function(e,t){return e?function(e,t,n){for(var r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.subarray&&d)return d.decode(e.subarray(t,o));for(var i="";t<o;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var c=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|c:(7&a)<<18|s<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(a);else{var u=a-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}(h,e,t):""},e.ALLOC_NORMAL=0,b=function e(){k||R(),k||(b=e)},e.run=R,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return R(),e.unloadRuntime=function(){"undefined"!=typeof self&&delete self.Module,e=jsModule=A=y=f=h=void 0},e}},145:()=>{},967:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{ArgonType:()=>s,hash:()=>f,verify:()=>h,unloadRuntime:()=>p,default:()=>d});var e=n(477),t=n.n(e),i=n(721),a=n.n(i);const s={Argon2d:0,Argon2i:1,Argon2id:2};function c(e){if(c._promise)return c._promise;if(c._module)return Promise.resolve(c._module);let n;return n=function(){if("function"==typeof loadArgon2WasmBinary)return loadArgon2WasmBinary();const e=a();if(e)return Promise.resolve(function(e){if("function"==typeof r)return new Uint8Array(r.from(e,"base64"));const t=atob(e),n=new Uint8Array(new ArrayBuffer(t.length));for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}(e));const t="string"==typeof argon2WasmPath?argon2WasmPath:"node_modules/argon2-browser/dist/argon2.wasm";return fetch(t).then((e=>e.arrayBuffer())).then((e=>new Uint8Array(e)))}().then((n=>function(e){const n=t()(e);return new Promise((e=>{n.postRun=()=>e(n)}))}({wasmBinary:n,wasmMemory:e?function(e){const t=Math.min(Math.max(Math.ceil(1024*e/65536),256)+256,32767);return new WebAssembly.Memory({initial:t,maximum:32767})}(e):void 0}))),c._promise=n,n.then((e=>(c._module=e,delete c._promise,e)))}function u(e,t){return e.allocate(t,"i8",e.ALLOC_NORMAL)}function A(e,t){return u(e,new Uint8Array([...t,0]))}function l(e){if("string"!=typeof e)return e;if("function"==typeof TextEncoder)return(new TextEncoder).encode(e);if("function"==typeof r)return r.from(e);throw new Error("Don't know how to encode UTF8")}function f(e){const t=e.mem||1024;return c(t).then((n=>{const r=e.time||1,o=e.parallelism||1,i=l(e.pass),a=A(n,i),c=i.length,f=l(e.salt),h=A(n,f),p=f.length,d=e.type||s.Argon2d,g=n.allocate(new Array(e.hashLen||24),"i8",n.ALLOC_NORMAL),y=e.secret?u(n,e.secret):0,m=e.secret?e.secret.byteLength:0,I=e.ad?u(n,e.ad):0,v=e.ad?e.ad.byteLength:0,w=e.hashLen||24,E=n._argon2_encodedlen(r,t,o,p,w,d),B=n.allocate(new Array(E+1),"i8",n.ALLOC_NORMAL);let C,b,Q;try{b=n._argon2_hash_ext(r,t,o,a,c,h,p,g,w,B,E,d,y,m,I,v,19)}catch(e){C=e}if(0!==b||C){try{C||(C=n.UTF8ToString(n._argon2_error_message(b)))}catch(e){}Q={message:C,code:b}}else{let e="";const t=new Uint8Array(w);for(let r=0;r<w;r++){const o=n.HEAP8[g+r];t[r]=o,e+=("0"+(255&o).toString(16)).slice(-2)}Q={hash:t,hashHex:e,encoded:n.UTF8ToString(B)}}try{n._free(a),n._free(h),n._free(g),n._free(B),I&&n._free(I),y&&n._free(y)}catch(e){}if(C)throw Q;return Q}))}function h(e){return c().then((t=>{const n=l(e.pass),r=A(t,n),o=n.length,i=e.secret?u(t,e.secret):0,a=e.secret?e.secret.byteLength:0,c=e.ad?u(t,e.ad):0,f=e.ad?e.ad.byteLength:0,h=A(t,l(e.encoded));let p,d,g,y=e.type;if(void 0===y){let t=e.encoded.split("$")[1];t&&(t=t.replace("a","A"),y=s[t]||s.Argon2d)}try{d=t._argon2_verify_ext(h,r,o,i,a,c,f,y)}catch(e){p=e}if(d||p){try{p||(p=t.UTF8ToString(t._argon2_error_message(d)))}catch(e){}g={message:p,code:d}}try{t._free(r),t._free(h)}catch(e){}if(p)throw g;return g}))}function p(){c._module&&(c._module.unloadRuntime(),delete c._promise,delete c._module)}const d={ArgonType:s,hash:f,verify:h,unloadRuntime:p}})(),o})()},35086:function(e,t,n){const r=n(46523);function o(e,t,n){const r=e[t]+e[n];let o=e[t+1]+e[n+1];r>=4294967296&&o++,e[t]=r,e[t+1]=o}function i(e,t,n,r){let o=e[t]+n;n<0&&(o+=4294967296);let i=e[t+1]+r;o>=4294967296&&i++,e[t]=o,e[t+1]=i}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){const c=l[a],u=l[a+1],f=l[s],h=l[s+1];o(A,e,t),i(A,e,c,u);let p=A[r]^A[e],d=A[r+1]^A[e+1];A[r]=d,A[r+1]=p,o(A,n,r),p=A[t]^A[n],d=A[t+1]^A[n+1],A[t]=p>>>24^d<<8,A[t+1]=d>>>24^p<<8,o(A,e,t),i(A,e,f,h),p=A[r]^A[e],d=A[r+1]^A[e+1],A[r]=p>>>16^d<<16,A[r+1]=d>>>16^p<<16,o(A,n,r),p=A[t]^A[n],d=A[t+1]^A[n+1],A[t]=d>>>31^p<<1,A[t+1]=p>>>31^d<<1}const c=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),A=new Uint32Array(32),l=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)A[n]=e.h[n],A[n+16]=c[n];for(A[24]=A[24]^e.t,A[25]=A[25]^e.t/4294967296,t&&(A[28]=~A[28],A[29]=~A[29]),n=0;n<32;n++)l[n]=a(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^A[n]^A[n+16]}function h(e,t){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");const n={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};for(let e=0;e<16;e++)n.h[e]=c[e];const r=t?t.length:0;return n.h[0]^=16842752^r<<8^e,t&&(p(n,t),n.c=128),n}function p(e,t){for(let n=0;n<t.length;n++)128===e.c&&(e.t+=e.c,f(e,!1),e.c=0),e.b[e.c++]=t[n]}function d(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;f(e,!0);const t=new Uint8Array(e.outlen);for(let n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(3&n);return t}function g(e,t,n){n=n||64,e=r.normalizeInput(e);const o=h(n,t);return p(o,e),d(o)}e.exports={blake2b:g,blake2bHex:function(e,t,n){const o=g(e,t,n);return r.toHex(o)},blake2bInit:h,blake2bUpdate:p,blake2bFinal:d}},47828:function(e,t,n){const r=n(46523);function o(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function i(e,t,n,r,o,i){u[e]=u[e]+u[t]+o,u[r]=a(u[r]^u[e],16),u[n]=u[n]+u[r],u[t]=a(u[t]^u[n],12),u[e]=u[e]+u[t]+i,u[r]=a(u[r]^u[e],8),u[n]=u[n]+u[r],u[t]=a(u[t]^u[n],7)}function a(e,t){return e>>>t^e<<32-t}const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),u=new Uint32Array(16),A=new Uint32Array(16);function l(e,t){let n=0;for(n=0;n<8;n++)u[n]=e.h[n],u[n+8]=s[n];for(u[12]^=e.t,u[13]^=e.t/4294967296,t&&(u[14]=~u[14]),n=0;n<16;n++)A[n]=o(e.b,4*n);for(n=0;n<10;n++)i(0,4,8,12,A[c[16*n+0]],A[c[16*n+1]]),i(1,5,9,13,A[c[16*n+2]],A[c[16*n+3]]),i(2,6,10,14,A[c[16*n+4]],A[c[16*n+5]]),i(3,7,11,15,A[c[16*n+6]],A[c[16*n+7]]),i(0,5,10,15,A[c[16*n+8]],A[c[16*n+9]]),i(1,6,11,12,A[c[16*n+10]],A[c[16*n+11]]),i(2,7,8,13,A[c[16*n+12]],A[c[16*n+13]]),i(3,4,9,14,A[c[16*n+14]],A[c[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=u[n]^u[n+8]}function f(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");const n=t?t.length:0;if(t&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");const r={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(h(r,t),r.c=64),r}function h(e,t){for(let n=0;n<t.length;n++)64===e.c&&(e.t+=e.c,l(e,!1),e.c=0),e.b[e.c++]=t[n]}function p(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;l(e,!0);const t=new Uint8Array(e.outlen);for(let n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(3&n)&255;return t}function d(e,t,n){n=n||32,e=r.normalizeInput(e);const o=f(n,t);return h(o,e),p(o)}e.exports={blake2s:d,blake2sHex:function(e,t,n){const o=d(e,t,n);return r.toHex(o)},blake2sInit:f,blake2sUpdate:h,blake2sFinal:p}},27871:function(e,t,n){const r=n(35086),o=n(47828);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:o.blake2s,blake2sHex:o.blake2sHex,blake2sInit:o.blake2sInit,blake2sUpdate:o.blake2sUpdate,blake2sFinal:o.blake2sFinal}},46523:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else{if("string"!=typeof e)throw new Error("Input must be an string, Buffer or Uint8Array");t=(new TextEncoder).encode(e)}return t},toHex:function(e){return Array.prototype.map.call(e,(function(e){return(e<16?"0":"")+e.toString(16)})).join("")},debugPrint:function(e,n,r){let o="\n"+e+" = ";for(let i=0;i<n.length;i+=2){if(32===r)o+=t(n[i]).toUpperCase(),o+=" ",o+=t(n[i+1]).toUpperCase();else{if(64!==r)throw new Error("Invalid size "+r);o+=t(n[i+1]).toUpperCase(),o+=t(n[i]).toUpperCase()}i%6==4?o+="\n"+new Array(e.length+4).join(" "):i<n.length-2&&(o+=" ")}console.log(o)},testSpeed:function(e,t,n){let r=(new Date).getTime();const o=new Uint8Array(t);for(let e=0;e<t;e++)o[e]=e%256;const i=(new Date).getTime();console.log("Generated random input in "+(i-r)+"ms"),r=i;for(let i=0;i<n;i++){const n=e(o),i=(new Date).getTime(),a=i-r;r=i,console.log("Hashed in "+a+"ms: "+n.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(a/1e3)*100)/100+" MB PER SECOND")}}}},89784:function(e,t,n){var r=n(37798).stringify,o=n(16175);e.exports=function(e){return{parse:o(e),stringify:r}},e.exports.parse=o(),e.exports.stringify=r},16175:function(e,t,n){var r=null;e.exports=function(e){"use strict";var t={strict:!1,storeAsString:!1};null!=e&&(!0===e.strict&&(t.strict=!0),!0===e.storeAsString&&(t.storeAsString=!0));var o,i,a,s,c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},u=function(e){throw{name:"SyntaxError",message:e,at:o,text:a}},A=function(e){return e&&e!==i&&u("Expected '"+e+"' instead of '"+i+"'"),i=a.charAt(o),o+=1,i},l=function(){var e,o="";for("-"===i&&(o="-",A("-"));i>="0"&&i<="9";)o+=i,A();if("."===i)for(o+=".";A()&&i>="0"&&i<="9";)o+=i;if("e"===i||"E"===i)for(o+=i,A(),"-"!==i&&"+"!==i||(o+=i,A());i>="0"&&i<="9";)o+=i,A();if(e=+o,isFinite(e))return null==r&&(r=n(44431)),o.length>15?!0===t.storeAsString?o:new r(o):e;u("Bad number")},f=function(){var e,t,n,r="";if('"'===i)for(;A();){if('"'===i)return A(),r;if("\\"===i)if(A(),"u"===i){for(n=0,t=0;t<4&&(e=parseInt(A(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof c[i])break;r+=c[i]}else r+=i}u("Bad string")},h=function(){for(;i&&i<=" ";)A()};return s=function(){switch(h(),i){case"{":return function(){var e,n={};if("{"===i){if(A("{"),h(),"}"===i)return A("}"),n;for(;i;){if(e=f(),h(),A(":"),!0===t.strict&&Object.hasOwnProperty.call(n,e)&&u('Duplicate key "'+e+'"'),n[e]=s(),h(),"}"===i)return A("}"),n;A(","),h()}}u("Bad object")}();case"[":return function(){var e=[];if("["===i){if(A("["),h(),"]"===i)return A("]"),e;for(;i;){if(e.push(s()),h(),"]"===i)return A("]"),e;A(","),h()}}u("Bad array")}();case'"':return f();case"-":return l();default:return i>="0"&&i<="9"?l():function(){switch(i){case"t":return A("t"),A("r"),A("u"),A("e"),!0;case"f":return A("f"),A("a"),A("l"),A("s"),A("e"),!1;case"n":return A("n"),A("u"),A("l"),A("l"),null}u("Unexpected '"+i+"'")}()}},function(e,t){var n;return a=e+"",o=0,i=" ",n=s(),h(),i&&u("Syntax error"),"function"==typeof t?function e(n,r){var o,i=n[r];return i&&"object"==typeof i&&Object.keys(i).forEach((function(t){void 0!==(o=e(i,t))?i[t]=o:delete i[t]})),t.call(n,r,i)}({"":n},""):n}}},37798:function(e,t,n){var r=n(44431),o=e.exports;!function(){"use strict";var e,t,n,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,(function(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function c(o,i){var a,u,A,l,f,h=e,p=i[o],d=null!=p&&(p instanceof r||r.isBigNumber(p));switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(o)),"function"==typeof n&&(p=n.call(i,o,p)),typeof p){case"string":return d?p:s(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(e+=t,f=[],"[object Array]"===Object.prototype.toString.apply(p)){for(l=p.length,a=0;a<l;a+=1)f[a]=c(a,p)||"null";return A=0===f.length?"[]":e?"[\n"+e+f.join(",\n"+e)+"\n"+h+"]":"["+f.join(",")+"]",e=h,A}if(n&&"object"==typeof n)for(l=n.length,a=0;a<l;a+=1)"string"==typeof n[a]&&(A=c(u=n[a],p))&&f.push(s(u)+(e?": ":":")+A);else Object.keys(p).forEach((function(t){var n=c(t,p);n&&f.push(s(t)+(e?": ":":")+n)}));return A=0===f.length?"{}":e?"{\n"+e+f.join(",\n"+e)+"\n"+h+"}":"{"+f.join(",")+"}",e=h,A}}"function"!=typeof o.stringify&&(o.stringify=function(r,o,i){var a;if(e="",t="","number"==typeof i)for(a=0;a<i;a+=1)t+=" ";else"string"==typeof i&&(t=i);if(n=o,o&&"function"!=typeof o&&("object"!=typeof o||"number"!=typeof o.length))throw new Error("JSON.stringify");return c("",{"":r})})}()},66419:function(e,t,n){e.exports=n(27698)},77766:function(e,t,n){e.exports=n(8065)},72119:function(e,t,n){e.exports=n(57448)},20116:function(e,t,n){e.exports=n(11955)},94473:function(e,t,n){e.exports=n(61577)},78580:function(e,t,n){e.exports=n(33778)},2991:function(e,t,n){e.exports=n(61798)},3649:function(e,t,n){e.exports=n(82073)},92762:function(e,t,n){e.exports=n(2348)},29828:function(e,t,n){e.exports=n(35178)},59340:function(e,t,n){e.exports=n(8933)},51942:function(e,t,n){e.exports=n(63383)},26295:function(e,t,n){e.exports=n(86209)},86902:function(e,t,n){e.exports=n(23059)},93476:function(e,t,n){e.exports=n(27460)},94435:function(e,t,n){e.exports=n(73926)},52424:function(e,t,n){e.exports=n(72010)},53592:function(e,t,n){e.exports=n(27385)},78363:function(e,t,n){e.exports=n(81522)},19996:function(e,t,n){e.exports=n(32209)},30699:function(e,t,n){e.exports=n(44442)},28834:function(e,t,n){e.exports=n(57152)},95683:function(e,t,n){e.exports=n(69447)},95238:function(e,t,n){e.exports=n(81493)},32752:function(e,t,n){e.exports=n(70573)},44341:function(e,t,n){e.exports=n(73685)},58377:function(e,t,n){e.exports=n(27533)},13038:function(e,t,n){e.exports=n(39057)},63263:function(e,t,n){e.exports=n(84710)},89356:function(e,t,n){e.exports=n(93799)},69798:function(e,t,n){e.exports=n(29531)},51446:function(e,t,n){e.exports=n(86600)},23882:function(e,t,n){e.exports=n(9759)},63109:function(e,t,n){e.exports=n(35666)},13453:function(e,t,n){var r=n(59063),o=n(70136),i=n(12285),a=n(43826),s=n(41626),c=n(11867),u=n(5465),A=Array.prototype.slice;function l(e,t){var n=function e(t){var n=e.compose||{},r={__proto__:n.methods};if(u(r,n.deepProperties),c(r,n.properties),Object.defineProperties(r,n.propertyDescriptors||{}),!n.initializers||0===n.initializers.length)return r;void 0===t&&(t={});for(var i=n.initializers,a=i.length,s=0;s<a;s+=1){var l=i[s];if(o(l)){var f=l.call(r,t,{instance:r,stamp:e,args:A.apply(arguments)});r=void 0===f?r:f}}return r};e.staticDeepProperties&&u(n,e.staticDeepProperties),e.staticProperties&&c(n,e.staticProperties),e.staticPropertyDescriptors&&Object.defineProperties(n,e.staticPropertyDescriptors);var r=o(n.compose)?n.compose:t;return c(n.compose=function(){"use strict";return r.apply(this,arguments)},e),n}function f(e,t,n){if(r(t)){var i=t.length,a=e[n]||[];e[n]=a;for(var s=0;s<i;s+=1){var c=t[s];o(c)&&a.indexOf(c)<0&&a.push(c)}}}function h(e,t,n,r){i(t[n])&&(i(e[n])||(e[n]={}),r(e[n],t[n]))}function p(e,t,n){h(e,t,n,u)}function d(e,t,n){h(e,t,n,c)}function g(e,t){var n=t&&t.compose||t;d(e,n,"methods"),d(e,n,"properties"),p(e,n,"deepProperties"),d(e,n,"propertyDescriptors"),d(e,n,"staticProperties"),p(e,n,"staticDeepProperties"),d(e,n,"staticPropertyDescriptors"),d(e,n,"configuration"),p(e,n,"deepConfiguration"),f(e,n.initializers,"initializers"),f(e,n.composers,"composers")}e.exports=function e(){"use strict";var t={},n=[];s(this)&&(g(t,this),n.push(this));for(var o=0;o<arguments.length;o++){var i=arguments[o];s(i)&&(g(t,i),n.push(i))}var c=l(t,e),u=t.composers;if(r(u)&&u.length>0)for(var A=0;A<u.length;A+=1){var f=u[A],h=f({stamp:c,composables:n});c=a(h)?h:c}return c}},11867:function(e){e.exports=Object.assign},5465:function(e,t,n){var r=n(45434),o=n(12285),i=n(59063);function a(e,t){if(void 0===t)return e;if(i(t))return(i(e)?e:[]).concat(t);if(!r(t))return t;for(var n=o(e)?e:{},s=Object.keys(t),c=0;c<s.length;c+=1){var u=s[c],A=t[u];if(void 0!==A){var l=n[u],f=r(l)||i(A)?l:{};n[u]=a(f,A)}}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++)e=a(e,arguments[t]);return e}},59063:function(e){e.exports=Array.isArray},41626:function(e,t,n){e.exports=n(12285)},70136:function(e){e.exports=function(e){return"function"==typeof e}},12285:function(e){e.exports=function(e){var t=typeof e;return Boolean(e)&&("object"===t||"function"===t)}},45434:function(e){e.exports=function(e){return Boolean(e)&&"object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype}},43826:function(e,t,n){var r=n(70136);e.exports=function(e){return r(e)&&r(e.compose)}},14429:function(e){e.exports=function(e){return"string"==typeof e}},95389:function(e,t,n){var r=n(13453),o=n(65640),i=n(43826),a=n(14429),s=n(12285),c=n(70136),u=n(5465),A=n(11867),l=Array.prototype.concat;function f(){var e=l.apply([],arguments).filter(c);return 0===e.length?void 0:e}function h(e){if(!s(e))return e;var t=e.methods,n=e.properties,r=e.props,o=e.initializers,i=e.init,c=e.composers,l=e.deepProperties,h=e.deepProps,p=e.propertyDescriptors,d=e.staticProperties,g=e.statics,y=e.staticDeepProperties,m=e.deepStatics,I=e.configuration,v=e.conf,w=e.deepConfiguration,E=e.deepConf,B=s(r)||s(n)?A({},r,n):void 0,C=s(h)?u({},h):void 0;C=s(l)?u(C,l):C;var b=s(g)||s(d)?A({},g,d):void 0,Q=s(m)?u({},m):void 0;Q=s(y)?u(Q,y):Q;var x=e.staticPropertyDescriptors;a(e.name)&&(x=A({},x||{},{name:{value:e.name}}));var _=s(v)||s(I)?A({},v,I):void 0,S=s(E)?u({},E):void 0;S=s(w)?u(S,w):S;var T=f(i,o),O=f(c),N={};return t&&(N.methods=t),B&&(N.properties=B),T&&(N.initializers=T),O&&(N.composers=O),C&&(N.deepProperties=C),b&&(N.staticProperties=b),Q&&(N.staticDeepProperties=Q),p&&(N.propertyDescriptors=p),x&&(N.staticPropertyDescriptors=x),_&&(N.configuration=_),S&&(N.deepConfiguration=S),N}function p(){"use strict";for(var e=arguments.length,t=[],n=0;n<e;n+=1){var o=arguments[n];t.push(i(o)?o:h(o))}return r.apply(this||d,t)}var d=o.compose({staticProperties:{create:function(){return this.apply(this,arguments)},compose:p}}),g=o.compose.staticProperties;for(var y in g)p[y]=g[y].bind(d);p.compose=p.bind(),e.exports=p},85929:function(e,t,n){var r=n(13453),o=n(11867),i=n(12285);function a(e){"use strict";var t=this&&this.compose?this:s,n=t.compose.deepConfiguration&&t.compose.deepConfiguration.Required,i=o({},r(n,e).compose);return t.compose({deepConfiguration:{Required:i}})}var s=r({initializers:[function(e,t){var n=t.stamp.compose;!function(e,t){if(e&&t)for(var n=Object.keys(t),r=0;r<n.length;r++){var o=n[r],c=t[o];if(i(c))for(var u=Object.keys(c),A=0;A<u.length;A++){var l=u[A],f=c[l];if(!(f!==s&&f!==a||e[o]&&void 0!==e[o][l]))throw new Error("Required: There must be "+l+" in this stamp "+o)}}}(n,n.deepConfiguration&&n.deepConfiguration.Required)}],staticProperties:{required:a}});Object.freeze(a),Object.freeze(s),e.exports=s},65640:function(e,t,n){var r=n(13453);function o(e){return function(t){"use strict";var n={};return n[e]=t,this&&this.compose?this.compose(n):r(n)}}var i=o("properties"),a=o("staticProperties"),s=o("configuration"),c=o("deepProperties"),u=o("staticDeepProperties"),A=o("deepConfiguration"),l=o("initializers");e.exports=r({staticProperties:{methods:o("methods"),props:i,properties:i,statics:a,staticProperties:a,conf:s,configuration:s,deepProps:c,deepProperties:c,deepStatics:u,staticDeepProperties:u,deepConf:A,deepConfiguration:A,init:l,initializers:l,composers:o("composers"),propertyDescriptors:o("propertyDescriptors"),staticPropertyDescriptors:o("staticPropertyDescriptors")}})},78826:function(e){!function(t){"use strict";function n(e){return parseInt(e)===e}function r(e){if(!n(e.length))return!1;for(var t=0;t<e.length;t++)if(!n(e[t])||e[t]<0||e[t]>255)return!1;return!0}function o(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function a(e,t,n,r,o){null==r&&null==o||(e=e.slice?e.slice(r,o):Array.prototype.slice.call(e,r,o)),t.set(e,n)}var s,c={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n<e.length;){var r=e.charCodeAt(n++);37===r?(t.push(parseInt(e.substr(n,2),16)),n+=2):t.push(r)}return o(t)},fromBytes:function(e){for(var t=[],n=0;n<e.length;){var r=e[n];r<128?(t.push(String.fromCharCode(r)),n++):r>191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},u=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},fromBytes:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(s[(240&r)>>4]+s[15&r])}return t.join("")}}),A={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],f=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],d=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],y=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],m=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],I=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],E=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],B=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],C=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],b=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Q(e){for(var t=[],n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var x=function(e){if(!(this instanceof x))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:o(e,!0)}),this._prepare()};x.prototype._prepare=function(){var e=A[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var n,r=4*(e+1),o=this.key.length/4,i=Q(this.key);for(t=0;t<o;t++)n=t>>2,this._Ke[n][t%4]=i[t],this._Kd[e-n][t%4]=i[t];for(var a,s=0,c=o;c<r;){if(a=i[o-1],i[0]^=f[a>>16&255]<<24^f[a>>8&255]<<16^f[255&a]<<8^f[a>>24&255]^l[s]<<24,s+=1,8!=o)for(t=1;t<o;t++)i[t]^=i[t-1];else{for(t=1;t<o/2;t++)i[t]^=i[t-1];for(a=i[o/2-1],i[o/2]^=f[255&a]^f[a>>8&255]<<8^f[a>>16&255]<<16^f[a>>24&255]<<24,t=o/2+1;t<o;t++)i[t]^=i[t-1]}for(t=0;t<o&&c<r;)u=c>>2,h=c%4,this._Ke[u][h]=i[t],this._Kd[e-u][h]=i[t++],c++}for(var u=1;u<e;u++)for(var h=0;h<4;h++)a=this._Kd[u][h],this._Kd[u][h]=E[a>>24&255]^B[a>>16&255]^C[a>>8&255]^b[255&a]},x.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=Q(e),o=0;o<4;o++)r[o]^=this._Ke[0][o];for(var a=1;a<t;a++){for(o=0;o<4;o++)n[o]=p[r[o]>>24&255]^d[r[(o+1)%4]>>16&255]^g[r[(o+2)%4]>>8&255]^y[255&r[(o+3)%4]]^this._Ke[a][o];r=n.slice()}var s,c=i(16);for(o=0;o<4;o++)s=this._Ke[t][o],c[4*o]=255&(f[r[o]>>24&255]^s>>24),c[4*o+1]=255&(f[r[(o+1)%4]>>16&255]^s>>16),c[4*o+2]=255&(f[r[(o+2)%4]>>8&255]^s>>8),c[4*o+3]=255&(f[255&r[(o+3)%4]]^s);return c},x.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=Q(e),o=0;o<4;o++)r[o]^=this._Kd[0][o];for(var a=1;a<t;a++){for(o=0;o<4;o++)n[o]=m[r[o]>>24&255]^I[r[(o+3)%4]>>16&255]^v[r[(o+2)%4]>>8&255]^w[255&r[(o+1)%4]]^this._Kd[a][o];r=n.slice()}var s,c=i(16);for(o=0;o<4;o++)s=this._Kd[t][o],c[4*o]=255&(h[r[o]>>24&255]^s>>24),c[4*o+1]=255&(h[r[(o+3)%4]>>16&255]^s>>16),c[4*o+2]=255&(h[r[(o+2)%4]>>8&255]^s>>8),c[4*o+3]=255&(h[255&r[(o+1)%4]]^s);return c};var _=function(e){if(!(this instanceof _))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new x(e)};_.prototype.encrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r<e.length;r+=16)a(e,n,0,r,r+16),a(n=this._aes.encrypt(n),t,r);return t},_.prototype.decrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r<e.length;r+=16)a(e,n,0,r,r+16),a(n=this._aes.decrypt(n),t,r);return t};var S=function(e,t){if(!(this instanceof S))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=i(16);this._lastCipherblock=o(t,!0),this._aes=new x(e)};S.prototype.encrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16);for(var s=0;s<16;s++)n[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(n),a(this._lastCipherblock,t,r)}return t},S.prototype.decrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16),n=this._aes.decrypt(n);for(var s=0;s<16;s++)t[r+s]=n[s]^this._lastCipherblock[s];a(e,this._lastCipherblock,0,r,r+16)}return t};var T=function(e,t,n){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 size)")}else t=i(16);n||(n=1),this.segmentSize=n,this._shiftRegister=o(t,!0),this._aes=new x(e)};T.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,n=o(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)n[r+i]^=t[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(n,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n},T.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,n=o(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)n[r+i]^=t[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(e,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n};var O=function(e,t){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=i(16);this._lastPrecipher=o(t,!0),this._lastPrecipherIndex=16,this._aes=new x(e)};O.prototype.encrypt=function(e){for(var t=o(e,!0),n=0;n<t.length;n++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[n]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},O.prototype.decrypt=O.prototype.encrypt;var N=function(e){if(!(this instanceof N))throw Error("Counter must be instanitated with `new`");0===e||e||(e=1),"number"==typeof e?(this._counter=i(16),this.setValue(e)):this.setBytes(e)};N.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");if(e>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},N.prototype.setBytes=function(e){if(16!=(e=o(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},N.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var k=function(e,t){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof N||(t=new N(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new x(e)};k.prototype.encrypt=function(e){for(var t=o(e,!0),n=0;n<t.length;n++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[n]^=this._remainingCounter[this._remainingCounterIndex++];return t},k.prototype.decrypt=k.prototype.encrypt;var D={AES:x,Counter:N,ModeOfOperation:{ecb:_,cbc:S,cfb:T,ofb:O,ctr:k},utils:{hex:u,utf8:c},padding:{pkcs7:{pad:function(e){var t=16-(e=o(e,!0)).length%16,n=i(e.length+t);a(e,n);for(var r=e.length;r<n.length;r++)n[r]=t;return n},strip:function(e){if((e=o(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r<t;r++)if(e[n+r]!==t)throw new Error("PKCS#7 invalid padding byte");var s=i(n);return a(e,s,0,0,n),s}}},_arrayTest:{coerceArray:o,createArray:i,copyArray:a}};e.exports=D}()},58162:function(e,t,n){"use strict";var r=n(89509).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),a=i.charCodeAt(0);if(255!==t[a])throw new TypeError(i+" is ambiguous");t[a]=o}var s=e.length,c=e.charAt(0),u=Math.log(s)/Math.log(256),A=Math.log(256)/Math.log(s);function l(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return r.alloc(0);for(var n=0,o=0,i=0;e[n]===c;)o++,n++;for(var a=(e.length-n)*u+1>>>0,A=new Uint8Array(a);e[n];){var l=t[e.charCodeAt(n)];if(255===l)return;for(var f=0,h=a-1;(0!==l||f<i)&&-1!==h;h--,f++)l+=s*A[h]>>>0,A[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=f,n++}for(var p=a-i;p!==a&&0===A[p];)p++;var d=r.allocUnsafe(o+(a-p));d.fill(0,0,o);for(var g=o;p!==a;)d[g++]=A[p++];return d}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,o=0,i=0,a=t.length;i!==a&&0===t[i];)i++,n++;for(var u=(a-i)*A+1>>>0,l=new Uint8Array(u);i!==a;){for(var f=t[i],h=0,p=u-1;(0!==f||h<o)&&-1!==p;p--,h++)f+=256*l[p]>>>0,l[p]=f%s>>>0,f=f/s>>>0;if(0!==f)throw new Error("Non-zero carry");o=h,i++}for(var d=u-o;d!==u&&0===l[d];)d++;for(var g=c.repeat(n);d<u;++d)g+=e.charAt(l[d]);return g},decodeUnsafe:l,decode:function(e){var t=l(e);if(t)return t;throw new Error("Non-base"+s+" character")}}}},79742:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],s=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),A=0,l=s>0?a-4:a;for(n=0;n<l;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[A++]=t>>16&255,u[A++]=t>>8&255,u[A++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[A++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[A++]=t>>8&255,u[A++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(u(e,s,s+a>c?c:s+a));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},44431:function(e,t,n){var r;!function(o){"use strict";var i,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,c=Math.floor,u="[BigNumber Error] ",A=u+"Number primitive has more than 15 significant digits: ",l=1e14,f=14,h=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,g=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,n,r=1,o=e.length,i=e[0]+"";r<o;){for(t=e[r++]+"",n=f-t.length;n--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function I(e,t){var n,r,o=e.c,i=t.c,a=e.s,s=t.s,c=e.e,u=t.e;if(!a||!s)return null;if(n=o&&!o[0],r=i&&!i[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=c==u,!o||!i)return r?0:!o^n?1:-1;if(!r)return c>u^n?1:-1;for(s=(c=o.length)<(u=i.length)?c:u,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return c==u?0:c>u^n?1:-1}function v(e,t,n,r){if(e<t||e>n||e!==c(e))throw Error(u+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return y(e.e/f)==t&&e.c[t]%2!=0}function E(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function B(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(++t>(r=e.length)){for(o=n,t-=r;--t;o+=n);e+=o}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}i=function e(t){var n,r,o,i,C,b,Q,x,_,S,T=q.prototype={constructor:q,toString:null,valueOf:null},O=new q(1),N=20,k=4,D=-7,F=21,U=-1e7,R=1e7,P=!1,M=1,j=0,L={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},G="0123456789abcdefghijklmnopqrstuvwxyz",H=!0;function q(e,t){var n,i,s,u,l,p,d,g,y=this;if(!(y instanceof q))return new q(e,t);if(null==t){if(e&&!0===e._isBigNumber)return y.s=e.s,void(!e.c||e.e>R?y.c=y.e=null:e.e<U?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice()));if((p="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,l=e;l>=10;l/=10,u++);return void(u>R?y.c=y.e=null:(y.e=u,y.c=[e]))}g=String(e)}else{if(!a.test(g=String(e)))return o(y,g,p);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(u=g.indexOf("."))>-1&&(g=g.replace(".","")),(l=g.search(/e/i))>0?(u<0&&(u=l),u+=+g.slice(l+1),g=g.substring(0,l)):u<0&&(u=g.length)}else{if(v(t,2,G.length,"Base"),10==t&&H)return V(y=new q(e),N+y.e+1,k);if(g=String(e),p="number"==typeof e){if(0*e!=0)return o(y,g,p,t);if(y.s=1/e<0?(g=g.slice(1),-1):1,q.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(A+e)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=G.slice(0,t),u=l=0,d=g.length;l<d;l++)if(n.indexOf(i=g.charAt(l))<0){if("."==i){if(l>u){u=d;continue}}else if(!s&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){s=!0,l=-1,u=0;continue}return o(y,String(e),p,t)}p=!1,(u=(g=r(g,t,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):u=g.length}for(l=0;48===g.charCodeAt(l);l++);for(d=g.length;48===g.charCodeAt(--d););if(g=g.slice(l,++d)){if(d-=l,p&&q.DEBUG&&d>15&&(e>h||e!==c(e)))throw Error(A+y.s*e);if((u=u-l-1)>R)y.c=y.e=null;else if(u<U)y.c=[y.e=0];else{if(y.e=u,y.c=[],l=(u+1)%f,u<0&&(l+=f),l<d){for(l&&y.c.push(+g.slice(0,l)),d-=f;l<d;)y.c.push(+g.slice(l,l+=f));l=f-(g=g.slice(l)).length}else l-=d;for(;l--;g+="0");y.c.push(+g)}}else y.c=[y.e=0]}function Y(e,t,n,r){var o,i,a,s,c;if(null==n?n=k:v(n,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)c=m(e.c),c=1==r||2==r&&(a<=D||a>=F)?E(c,a):B(c,a,"0");else if(i=(e=V(new q(e),t,n)).e,s=(c=m(e.c)).length,1==r||2==r&&(t<=i||i<=D)){for(;s<t;c+="0",s++);c=E(c,i)}else if(t-=a,c=B(c,i,"0"),i+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-s)>0)for(i+1==s&&(c+=".");t--;c+="0");return e.s<0&&o?"-"+c:c}function K(e,t){for(var n,r=1,o=new q(e[0]);r<e.length;r++){if(!(n=new q(e[r])).s){o=n;break}t.call(o,n)&&(o=n)}return o}function z(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,r++);return(n=r+n*f-1)>R?e.c=e.e=null:n<U?e.c=[e.e=0]:(e.e=n,e.c=t),e}function V(e,t,n,r){var o,i,a,u,A,h,d,g=e.c,y=p;if(g){e:{for(o=1,u=g[0];u>=10;u/=10,o++);if((i=t-o)<0)i+=f,a=t,d=(A=g[h=0])/y[o-a-1]%10|0;else if((h=s((i+1)/f))>=g.length){if(!r)break e;for(;g.length<=h;g.push(0));A=d=0,o=1,a=(i%=f)-f+1}else{for(A=u=g[h],o=1;u>=10;u/=10,o++);d=(a=(i%=f)-f+o)<0?0:A/y[o-a-1]%10|0}if(r=r||t<0||null!=g[h+1]||(a<0?A:A%y[o-a-1]),r=n<4?(d||r)&&(0==n||n==(e.s<0?3:2)):d>5||5==d&&(4==n||r||6==n&&(i>0?a>0?A/y[o-a]:0:g[h-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,r?(t-=e.e+1,g[0]=y[(f-t%f)%f],e.e=-t||0):g[0]=e.e=0,e;if(0==i?(g.length=h,u=1,h--):(g.length=h+1,u=y[f-i],g[h]=a>0?c(A/y[o-a]%y[a])*u:0),r)for(;;){if(0==h){for(i=1,a=g[0];a>=10;a/=10,i++);for(a=g[0]+=u,u=1;a>=10;a/=10,u++);i!=u&&(e.e++,g[0]==l&&(g[0]=1));break}if(g[h]+=u,g[h]!=l)break;g[h--]=0,u=1}for(i=g.length;0===g[--i];g.pop());}e.e>R?e.c=e.e=null:e.e<U&&(e.c=[e.e=0])}return e}function J(e){var t,n=e.e;return null===n?e.toString():(t=m(e.c),t=n<=D||n>=F?E(t,n):B(t,n,"0"),e.s<0?"-"+t:t)}return q.clone=e,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(u+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(v(n=e[t],0,g,t),N=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(v(n=e[t],0,8,t),k=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(v(n[0],-g,0,t),v(n[1],0,g,t),D=n[0],F=n[1]):(v(n,-g,g,t),D=-(F=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)v(n[0],-g,-1,t),v(n[1],1,g,t),U=n[0],R=n[1];else{if(v(n,-g,g,t),!n)throw Error(u+t+" cannot be zero: "+n);U=-(R=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(u+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw P=!n,Error(u+"crypto unavailable");P=n}else P=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(v(n=e[t],0,9,t),M=n),e.hasOwnProperty(t="POW_PRECISION")&&(v(n=e[t],0,g,t),j=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(u+t+" not an object: "+n);L=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);H="0123456789"==n.slice(0,10),G=n}}return{DECIMAL_PLACES:N,ROUNDING_MODE:k,EXPONENTIAL_AT:[D,F],RANGE:[U,R],CRYPTO:P,MODULO_MODE:M,POW_PRECISION:j,FORMAT:L,ALPHABET:G}},q.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!q.DEBUG)return!0;var t,n,r=e.c,o=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&o>=-g&&o<=g&&o===c(o)){if(0===r[0]){if(0===o&&1===r.length)return!0;break e}if((t=(o+1)%f)<1&&(t+=f),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=l||n!==c(n))break e;if(0!==n)return!0}}}else if(null===r&&null===o&&(null===i||1===i||-1===i))return!0;throw Error(u+"Invalid BigNumber: "+e)},q.maximum=q.max=function(){return K(arguments,T.lt)},q.minimum=q.min=function(){return K(arguments,T.gt)},q.random=(i=9007199254740992,C=Math.random()*i&2097151?function(){return c(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,o,i,a=0,A=[],l=new q(O);if(null==e?e=N:v(e,0,g),o=s(e/f),P)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));a<o;)(i=131072*t[a]+(t[a+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[a]=n[0],t[a+1]=n[1]):(A.push(i%1e14),a+=2);a=o/2}else{if(!crypto.randomBytes)throw P=!1,Error(u+"crypto unavailable");for(t=crypto.randomBytes(o*=7);a<o;)(i=281474976710656*(31&t[a])+1099511627776*t[a+1]+4294967296*t[a+2]+16777216*t[a+3]+(t[a+4]<<16)+(t[a+5]<<8)+t[a+6])>=9e15?crypto.randomBytes(7).copy(t,a):(A.push(i%1e14),a+=7);a=o/7}if(!P)for(;a<o;)(i=C())<9e15&&(A[a++]=i%1e14);for(o=A[--a],e%=f,o&&e&&(i=p[f-e],A[a]=c(o/i)*i);0===A[a];A.pop(),a--);if(a<0)A=[r=0];else{for(r=-1;0===A[0];A.splice(0,1),r-=f);for(a=1,i=A[0];i>=10;i/=10,a++);a<f&&(r-=f-a)}return l.e=r,l.c=A,l}),q.sum=function(){for(var e=1,t=arguments,n=new q(t[0]);e<t.length;)n=n.plus(t[e++]);return n},r=function(){var e="0123456789";function t(e,t,n,r){for(var o,i,a=[0],s=0,c=e.length;s<c;){for(i=a.length;i--;a[i]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),o=0;o<a.length;o++)a[o]>n-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/n|0,a[o]%=n)}return a.reverse()}return function(r,o,i,a,s){var c,u,A,l,f,h,p,d,g=r.indexOf("."),y=N,I=k;for(g>=0&&(l=j,j=0,r=r.replace(".",""),h=(d=new q(o)).pow(r.length-g),j=l,d.c=t(B(m(h.c),h.e,"0"),10,i,e),d.e=d.c.length),A=l=(p=t(r,o,i,s?(c=G,e):(c=e,G))).length;0==p[--l];p.pop());if(!p[0])return c.charAt(0);if(g<0?--A:(h.c=p,h.e=A,h.s=a,p=(h=n(h,d,y,I,i)).c,f=h.r,A=h.e),g=p[u=A+y+1],l=i/2,f=f||u<0||null!=p[u+1],f=I<4?(null!=g||f)&&(0==I||I==(h.s<0?3:2)):g>l||g==l&&(4==I||f||6==I&&1&p[u-1]||I==(h.s<0?8:7)),u<1||!p[0])r=f?B(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(p.length=u,f)for(--i;++p[--u]>i;)p[u]=0,u||(++A,p=[1].concat(p));for(l=p.length;!p[--l];);for(g=0,r="";g<=l;r+=c.charAt(p[g++]));r=B(r,A,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,o,i,a,s=0,c=e.length,u=t%d,A=t/d|0;for(e=e.slice();c--;)s=((o=u*(i=e[c]%d)+(r=A*i+(a=e[c]/d|0)*u)%d*d+s)/n|0)+(r/d|0)+A*a,e[c]=o%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,o,i,a,s){var u,A,h,p,d,g,m,I,v,w,E,B,C,b,Q,x,_,S=r.s==o.s?1:-1,T=r.c,O=o.c;if(!(T&&T[0]&&O&&O[0]))return new q(r.s&&o.s&&(T?!O||T[0]!=O[0]:O)?T&&0==T[0]||!O?0*S:S/0:NaN);for(v=(I=new q(S)).c=[],S=i+(A=r.e-o.e)+1,s||(s=l,A=y(r.e/f)-y(o.e/f),S=S/f|0),h=0;O[h]==(T[h]||0);h++);if(O[h]>(T[h]||0)&&A--,S<0)v.push(1),p=!0;else{for(b=T.length,x=O.length,h=0,S+=2,(d=c(s/(O[0]+1)))>1&&(O=e(O,d,s),T=e(T,d,s),x=O.length,b=T.length),C=x,E=(w=T.slice(0,x)).length;E<x;w[E++]=0);_=O.slice(),_=[0].concat(_),Q=O[0],O[1]>=s/2&&Q++;do{if(d=0,(u=t(O,w,x,E))<0){if(B=w[0],x!=E&&(B=B*s+(w[1]||0)),(d=c(B/Q))>1)for(d>=s&&(d=s-1),m=(g=e(O,d,s)).length,E=w.length;1==t(g,w,m,E);)d--,n(g,x<m?_:O,m,s),m=g.length,u=1;else 0==d&&(u=d=1),m=(g=O.slice()).length;if(m<E&&(g=[0].concat(g)),n(w,g,E,s),E=w.length,-1==u)for(;t(O,w,x,E)<1;)d++,n(w,x<E?_:O,E,s),E=w.length}else 0===u&&(d++,w=[0]);v[h++]=d,w[0]?w[E++]=T[C]||0:(w=[T[C]],E=1)}while((C++<b||null!=w[0])&&S--);p=null!=w[0],v[0]||v.splice(0,1)}if(s==l){for(h=1,S=v[0];S>=10;S/=10,h++);V(I,i+(I.e=h+A*f-1)+1,a,p)}else I.e=A,I.r=+p;return I}}(),b=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Q=/^([^.]+)\.$/,x=/^\.([^.]+)$/,_=/^-?(Infinity|NaN)$/,S=/^\s*\+(?=[\w.])|^\s+|\s+$/g,o=function(e,t,n,r){var o,i=n?t:t.replace(S,"");if(_.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!n&&(i=i.replace(b,(function(e,t,n){return o="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=o?e:t})),r&&(o=r,i=i.replace(Q,"$1").replace(x,"0.$1")),t!=i))return new q(i,o);if(q.DEBUG)throw Error(u+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},T.absoluteValue=T.abs=function(){var e=new q(this);return e.s<0&&(e.s=1),e},T.comparedTo=function(e,t){return I(this,new q(e,t))},T.decimalPlaces=T.dp=function(e,t){var n,r,o,i=this;if(null!=e)return v(e,0,g),null==t?t=k:v(t,0,8),V(new q(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((o=n.length-1)-y(this.e/f))*f,o=n[o])for(;o%10==0;o/=10,r--);return r<0&&(r=0),r},T.dividedBy=T.div=function(e,t){return n(this,new q(e,t),N,k)},T.dividedToIntegerBy=T.idiv=function(e,t){return n(this,new q(e,t),0,1)},T.exponentiatedBy=T.pow=function(e,t){var n,r,o,i,a,A,l,h,p=this;if((e=new q(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+J(e));if(null!=t&&(t=new q(t)),a=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new q(Math.pow(+J(p),a?2-w(e):+J(e))),t?h.mod(t):h;if(A=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new q(NaN);(r=!A&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||a&&p.c[1]>=24e7:p.c[0]<8e13||a&&p.c[0]<=9999975e7)))return i=p.s<0&&w(e)?-0:0,p.e>-1&&(i=1/i),new q(A?1/i:i);j&&(i=s(j/f+2))}for(a?(n=new q(.5),A&&(e.s=1),l=w(e)):l=(o=Math.abs(+J(e)))%2,h=new q(O);;){if(l){if(!(h=h.times(p)).c)break;i?h.c.length>i&&(h.c.length=i):r&&(h=h.mod(t))}if(o){if(0===(o=c(o/2)))break;l=o%2}else if(V(e=e.times(n),e.e+1,1),e.e>14)l=w(e);else{if(0==(o=+J(e)))break;l=o%2}p=p.times(p),i?p.c&&p.c.length>i&&(p.c.length=i):r&&(p=p.mod(t))}return r?h:(A&&(h=O.div(h)),t?h.mod(t):i?V(h,j,k,void 0):h)},T.integerValue=function(e){var t=new q(this);return null==e?e=k:v(e,0,8),V(t,t.e+1,e)},T.isEqualTo=T.eq=function(e,t){return 0===I(this,new q(e,t))},T.isFinite=function(){return!!this.c},T.isGreaterThan=T.gt=function(e,t){return I(this,new q(e,t))>0},T.isGreaterThanOrEqualTo=T.gte=function(e,t){return 1===(t=I(this,new q(e,t)))||0===t},T.isInteger=function(){return!!this.c&&y(this.e/f)>this.c.length-2},T.isLessThan=T.lt=function(e,t){return I(this,new q(e,t))<0},T.isLessThanOrEqualTo=T.lte=function(e,t){return-1===(t=I(this,new q(e,t)))||0===t},T.isNaN=function(){return!this.s},T.isNegative=function(){return this.s<0},T.isPositive=function(){return this.s>0},T.isZero=function(){return!!this.c&&0==this.c[0]},T.minus=function(e,t){var n,r,o,i,a=this,s=a.s;if(t=(e=new q(e,t)).s,!s||!t)return new q(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/f,u=e.e/f,A=a.c,h=e.c;if(!c||!u){if(!A||!h)return A?(e.s=-t,e):new q(h?a:NaN);if(!A[0]||!h[0])return h[0]?(e.s=-t,e):new q(A[0]?a:3==k?-0:0)}if(c=y(c),u=y(u),A=A.slice(),s=c-u){for((i=s<0)?(s=-s,o=A):(u=c,o=h),o.reverse(),t=s;t--;o.push(0));o.reverse()}else for(r=(i=(s=A.length)<(t=h.length))?s:t,s=t=0;t<r;t++)if(A[t]!=h[t]){i=A[t]<h[t];break}if(i&&(o=A,A=h,h=o,e.s=-e.s),(t=(r=h.length)-(n=A.length))>0)for(;t--;A[n++]=0);for(t=l-1;r>s;){if(A[--r]<h[r]){for(n=r;n&&!A[--n];A[n]=t);--A[n],A[r]+=l}A[r]-=h[r]}for(;0==A[0];A.splice(0,1),--u);return A[0]?z(e,A,u):(e.s=3==k?-1:1,e.c=[e.e=0],e)},T.modulo=T.mod=function(e,t){var r,o,i=this;return e=new q(e,t),!i.c||!e.s||e.c&&!e.c[0]?new q(NaN):!e.c||i.c&&!i.c[0]?new q(i):(9==M?(o=e.s,e.s=1,r=n(i,e,0,3),e.s=o,r.s*=o):r=n(i,e,0,M),(e=i.minus(r.times(e))).c[0]||1!=M||(e.s=i.s),e)},T.multipliedBy=T.times=function(e,t){var n,r,o,i,a,s,c,u,A,h,p,g,m,I,v,w=this,E=w.c,B=(e=new q(e,t)).c;if(!(E&&B&&E[0]&&B[0]))return!w.s||!e.s||E&&!E[0]&&!B||B&&!B[0]&&!E?e.c=e.e=e.s=null:(e.s*=w.s,E&&B?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=y(w.e/f)+y(e.e/f),e.s*=w.s,(c=E.length)<(h=B.length)&&(m=E,E=B,B=m,o=c,c=h,h=o),o=c+h,m=[];o--;m.push(0));for(I=l,v=d,o=h;--o>=0;){for(n=0,p=B[o]%v,g=B[o]/v|0,i=o+(a=c);i>o;)n=((u=p*(u=E[--a]%v)+(s=g*u+(A=E[a]/v|0)*p)%v*v+m[i]+n)/I|0)+(s/v|0)+g*A,m[i--]=u%I;m[i]=n}return n?++r:m.splice(0,1),z(e,m,r)},T.negated=function(){var e=new q(this);return e.s=-e.s||null,e},T.plus=function(e,t){var n,r=this,o=r.s;if(t=(e=new q(e,t)).s,!o||!t)return new q(NaN);if(o!=t)return e.s=-t,r.minus(e);var i=r.e/f,a=e.e/f,s=r.c,c=e.c;if(!i||!a){if(!s||!c)return new q(o/0);if(!s[0]||!c[0])return c[0]?e:new q(s[0]?r:0*o)}if(i=y(i),a=y(a),s=s.slice(),o=i-a){for(o>0?(a=i,n=c):(o=-o,n=s),n.reverse();o--;n.push(0));n.reverse()}for((o=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=o),o=0;t;)o=(s[--t]=s[t]+c[t]+o)/l|0,s[t]=l===s[t]?0:s[t]%l;return o&&(s=[o].concat(s),++a),z(e,s,a)},T.precision=T.sd=function(e,t){var n,r,o,i=this;if(null!=e&&e!==!!e)return v(e,1,g),null==t?t=k:v(t,0,8),V(new q(i),e,t);if(!(n=i.c))return null;if(r=(o=n.length-1)*f+1,o=n[o]){for(;o%10==0;o/=10,r--);for(o=n[0];o>=10;o/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},T.shiftedBy=function(e){return v(e,-9007199254740991,h),this.times("1e"+e)},T.squareRoot=T.sqrt=function(){var e,t,r,o,i,a=this,s=a.c,c=a.s,u=a.e,A=N+4,l=new q("0.5");if(1!==c||!s||!s[0])return new q(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(c=Math.sqrt(+J(a)))||c==1/0?(((t=m(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=y((u+1)/2)-(u<0||u%2),r=new q(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new q(c+""),r.c[0])for((c=(u=r.e)+A)<3&&(c=0);;)if(i=r,r=l.times(i.plus(n(a,i,A,1))),m(i.c).slice(0,c)===(t=m(r.c)).slice(0,c)){if(r.e<u&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(V(r,r.e+N+2,1),e=!r.times(r).eq(a));break}if(!o&&(V(i,i.e+N+2,0),i.times(i).eq(a))){r=i;break}A+=4,c+=4,o=1}return V(r,r.e+N+1,k,e)},T.toExponential=function(e,t){return null!=e&&(v(e,0,g),e++),Y(this,e,t,1)},T.toFixed=function(e,t){return null!=e&&(v(e,0,g),e=e+this.e+1),Y(this,e,t)},T.toFormat=function(e,t,n){var r,o=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=L;else if("object"!=typeof n)throw Error(u+"Argument not an object: "+n);if(r=o.toFixed(e,t),o.c){var i,a=r.split("."),s=+n.groupSize,c=+n.secondaryGroupSize,A=n.groupSeparator||"",l=a[0],f=a[1],h=o.s<0,p=h?l.slice(1):l,d=p.length;if(c&&(i=s,s=c,c=i,d-=i),s>0&&d>0){for(i=d%s||s,l=p.substr(0,i);i<d;i+=s)l+=A+p.substr(i,s);c>0&&(l+=A+p.slice(i)),h&&(l="-"+l)}r=f?l+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):l}return(n.prefix||"")+r+(n.suffix||"")},T.toFraction=function(e){var t,r,o,i,a,s,c,A,l,h,d,g,y=this,I=y.c;if(null!=e&&(!(c=new q(e)).isInteger()&&(c.c||1!==c.s)||c.lt(O)))throw Error(u+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+J(c));if(!I)return new q(y);for(t=new q(O),l=r=new q(O),o=A=new q(O),g=m(I),a=t.e=g.length-y.e-1,t.c[0]=p[(s=a%f)<0?f+s:s],e=!e||c.comparedTo(t)>0?a>0?t:l:c,s=R,R=1/0,c=new q(g),A.c[0]=0;h=n(c,t,0,1),1!=(i=r.plus(h.times(o))).comparedTo(e);)r=o,o=i,l=A.plus(h.times(i=l)),A=i,t=c.minus(h.times(i=t)),c=i;return i=n(e.minus(r),o,0,1),A=A.plus(i.times(l)),r=r.plus(i.times(o)),A.s=l.s=y.s,d=n(l,o,a*=2,k).minus(y).abs().comparedTo(n(A,r,a,k).minus(y).abs())<1?[l,o]:[A,r],R=s,d},T.toNumber=function(){return+J(this)},T.toPrecision=function(e,t){return null!=e&&v(e,1,g),Y(this,e,t,2)},T.toString=function(e){var t,n=this,o=n.s,i=n.e;return null===i?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(null==e?t=i<=D||i>=F?E(m(n.c),i):B(m(n.c),i,"0"):10===e&&H?t=B(m((n=V(new q(n),N+i+1,k)).c),n.e,"0"):(v(e,2,G.length,"Base"),t=r(B(m(n.c),i,"0"),10,e,o,!0)),o<0&&n.c[0]&&(t="-"+t)),t},T.valueOf=T.toJSON=function(){return J(this)},T._isBigNumber=!0,null!=t&&q.set(t),q}(),i.default=i.BigNumber=i,void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},30246:function(e){const t=2147483648;var n=function(e){if(!Array.isArray(e))throw new Error("Input must be an Array");if(0===e.length)throw new Error("Path must contain at least one level");for(var t=0;t<e.length;t++)if("number"!=typeof e[t])throw new Error("Path element is not a number");this.path=e};n.validatePathArray=function(e){try{return n.fromPathArray(e),!0}catch(e){return!1}},n.validateString=function(e,t){try{return n.fromString(e,t),!0}catch(e){return!1}},n.fromPathArray=function(e){return new n(e)},n.fromString=function(e,r){if(/^m\//i.test(e))e=e.slice(2);else if(r)throw new Error("Root element is required");for(var o=e.split("/"),i=new Array(o.length),a=0;a<o.length;a++){var s=/(\d+)([hH\']?)/.exec(o[a]);if(null===s)throw new Error("Invalid input");if(i[a]=parseInt(s[1],10),i[a]>=t)throw new Error("Invalid child index");if("h"===s[2]||"H"===s[2]||"'"===s[2])i[a]+=t;else if(0!=s[2].length)throw new Error("Invalid modifier")}return new n(i)},n.prototype.toPathArray=function(){return this.path},n.prototype.toString=function(e,n){for(var r=new Array(this.path.length),o=0;o<this.path.length;o++){var i=this.path[o];r[o]=i&t?(i&~t)+(n?"h":"'"):i}return(e?"":"m/")+r.join("/")},n.prototype.inspect=function(){return"BIPPath <"+this.toString()+">"},e.exports=n},77191:function(e,t,n){var r=n(58162);e.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},50706:function(e,t,n){var r=n(48764).Buffer;!function(){"use strict";e.exports=function(e){return(e instanceof r?e:r.from(e.toString(),"binary")).toString("base64")}}()},48764:function(e,t,n){"use strict";const r=n(79742),o=n(80645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){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 u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|d(e,t);let r=s(n);const o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return f(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 h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const o=function(e){if(c.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||W(e.length)?s(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function A(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 A(e),s(e<0?0:0|p(e))}function f(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function d(e,t){if(c.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 n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(o)return r?-1:K(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return Q(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return b(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),W(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:I(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):I(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function I(e,t,n,r,o){let i,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===c)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){let n=!0;for(let r=0;r<c;r++)if(u(e,i+r)!==u(t,r)){n=!1;break}if(n)return i}return-1}function v(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(W(r))return a;e[n+a]=r}return a}function w(e,t,n,r){return V(K(t,e.length-n),e,n,r)}function E(e,t,n,r){return V(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function B(e,t,n,r){return V(z(t),e,n,r)}function C(e,t,n,r){return V(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function b(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function Q(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(i=c));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=x));return n}(r)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return A(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(J(t,Uint8Array))o+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},c.byteLength=d,c.prototype._isBuffer=!0,c.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;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?Q(this,0,e):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,o){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.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===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(i,a),u=this.slice(r,o),A=e.slice(t,n);for(let e=0;e<s;++e)if(u[e]!==A[e]){i=u[e],a=A[e];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return B(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const x=4096;function _(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function S(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function T(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=$[e[r]];return o}function O(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r,o){G(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function F(e,t,n,r,o){G(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function U(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,i){return t=+t,n>>>=0,i||U(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,i){return t=+t,n>>>=0,i||U(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=X((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),c.prototype.readBigUInt64BE=X((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=X((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=X((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(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},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(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},c.prototype.writeBigUInt64LE=X((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=X((function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(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},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(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},c.prototype.writeBigInt64LE=X((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=X((function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=c.isBuffer(e)?e:c.from(e,r),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const M={};function j(e,t,n){M[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function L(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function G(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new M.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,o,i)}function H(e,t){if("number"!=typeof e)throw new M.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new M.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=L(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=L(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function K(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function W(e){return e!=e}const $=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function X(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},21924:function(e,t,n){"use strict";var r=n(40210),o=n(55559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},55559:function(e,t,n){"use strict";var r=n(58612),o=n(40210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),A=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,a,arguments);if(c&&u){var n=c(t,"length");n.configurable&&u(t,"length",{value:1+A(0,e.length-(arguments.length-1))})}return t};var l=function(){return s(r,i,arguments)};u?u(e.exports,"apply",{value:l}):e.exports.apply=l},76489:function(e,t){"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var r={},i=t||{},s=e.split(o),c=i.decode||n,u=0;u<s.length;u++){var A=s[u],l=A.indexOf("=");if(!(l<0)){var f=A.substr(0,l).trim(),h=A.substr(++l,A.length).trim();'"'==h[0]&&(h=h.slice(1,-1)),null==r[f]&&(r[f]=a(h,c))}}return r},t.serialize=function(e,t,n){var o=n||{},a=o.encode||r;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var s=a(t);if(s&&!i.test(s))throw new TypeError("argument val is invalid");var c=e+"="+s;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(u)}if(o.domain){if(!i.test(o.domain))throw new TypeError("option domain is invalid");c+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is invalid");c+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(c+="; HttpOnly"),o.secure&&(c+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return c};var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(t){return e}}},95299:function(e,t,n){var r=n(27698);e.exports=r},83450:function(e,t,n){var r=n(83363);e.exports=r},66820:function(e,t,n){var r=n(56243);e.exports=r},3688:function(e,t,n){var r=n(11955);e.exports=r},83838:function(e,t,n){var r=n(46279);e.exports=r},15684:function(e,t,n){var r=n(19373);e.exports=r},84234:function(e,t,n){var r=n(82073);e.exports=r},91254:function(e,t,n){var r=n(57396);e.exports=r},43536:function(e,t,n){var r=n(41910);e.exports=r},37331:function(e,t,n){var r=n(79427);e.exports=r},68522:function(e,t,n){var r=n(62857);e.exports=r},73151:function(e,t,n){var r=n(9534);e.exports=r},45012:function(e,t,n){var r=n(23059);e.exports=r},25626:function(e,t,n){var r=n(27460);e.exports=r},80281:function(e,t,n){var r=n(92547);e.exports=r},40031:function(e,t,n){var r=n(46509);e.exports=r},54493:function(e,t,n){n(77971),n(53242);var r=n(54058);e.exports=r.Array.from},24034:function(e,t,n){n(92737);var r=n(54058);e.exports=r.Array.isArray},15367:function(e,t,n){n(85906);var r=n(35703);e.exports=r("Array").concat},12710:function(e,t,n){n(66274),n(55967);var r=n(35703);e.exports=r("Array").entries},62383:function(e,t,n){n(21501);var r=n(35703);e.exports=r("Array").filter},17671:function(e,t,n){n(80833);var r=n(35703);e.exports=r("Array").find},99324:function(e,t,n){n(2437);var r=n(35703);e.exports=r("Array").forEach},80991:function(e,t,n){n(97690);var r=n(35703);e.exports=r("Array").includes},8700:function(e,t,n){n(99076);var r=n(35703);e.exports=r("Array").indexOf},23866:function(e,t,n){n(68787);var r=n(35703);e.exports=r("Array").map},24900:function(e,t,n){n(60186);var r=n(35703);e.exports=r("Array").slice},78209:function(e,t,n){n(98611);var r=n(35703);e.exports=r("Array").splice},13830:function(e,t,n){n(66274),n(77971);var r=n(22902);e.exports=r},56043:function(e,t,n){var r=n(7046),o=n(15367),i=Array.prototype;e.exports=function(e){var t=e.concat;return e===i||r(i,e)&&t===i.concat?o:t}},2480:function(e,t,n){var r=n(7046),o=n(62383),i=Array.prototype;e.exports=function(e){var t=e.filter;return e===i||r(i,e)&&t===i.filter?o:t}},32236:function(e,t,n){var r=n(7046),o=n(17671),i=Array.prototype;e.exports=function(e){var t=e.find;return e===i||r(i,e)&&t===i.find?o:t}},58557:function(e,t,n){var r=n(7046),o=n(80991),i=n(21631),a=Array.prototype,s=String.prototype;e.exports=function(e){var t=e.includes;return e===a||r(a,e)&&t===a.includes?o:"string"==typeof e||e===s||r(s,e)&&t===s.includes?i:t}},34570:function(e,t,n){var r=n(7046),o=n(8700),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||r(i,e)&&t===i.indexOf?o:t}},88287:function(e,t,n){var r=n(7046),o=n(23866),i=Array.prototype;e.exports=function(e){var t=e.map;return e===i||r(i,e)&&t===i.map?o:t}},69601:function(e,t,n){var r=n(7046),o=n(24900),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||r(i,e)&&t===i.slice?o:t}},18339:function(e,t,n){var r=n(7046),o=n(78209),i=Array.prototype;e.exports=function(e){var t=e.splice;return e===i||r(i,e)&&t===i.splice?o:t}},71611:function(e,t,n){var r=n(7046),o=n(3269),i=String.prototype;e.exports=function(e){var t=e.startsWith;return"string"==typeof e||e===i||r(i,e)&&t===i.startsWith?o:t}},84426:function(e,t,n){n(32619);var r=n(54058),o=n(79730);r.JSON||(r.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return o(r.JSON.stringify,null,arguments)}},45999:function(e,t,n){n(49221);var r=n(54058);e.exports=r.Object.assign},7702:function(e,t,n){n(74979);var r=n(54058).Object,o=e.exports=function(e,t){return r.defineProperties(e,t)};r.defineProperties.sham&&(o.sham=!0)},48171:function(e,t,n){n(86450);var r=n(54058).Object,o=e.exports=function(e,t,n){return r.defineProperty(e,t,n)};r.defineProperty.sham&&(o.sham=!0)},73081:function(e,t,n){n(21078);var r=n(54058);e.exports=r.Object.entries},286:function(e,t,n){n(46924);var r=n(54058).Object,o=e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)};r.getOwnPropertyDescriptor.sham&&(o.sham=!0)},92766:function(e,t,n){n(88482);var r=n(54058);e.exports=r.Object.getOwnPropertyDescriptors},30498:function(e,t,n){n(35824);var r=n(54058);e.exports=r.Object.getOwnPropertySymbols},48494:function(e,t,n){n(21724);var r=n(54058);e.exports=r.Object.keys},52956:function(e,t,n){n(47627),n(66274),n(55967),n(98881),n(4560),n(91302),n(44349),n(77971);var r=n(54058);e.exports=r.Promise},21631:function(e,t,n){n(11035);var r=n(35703);e.exports=r("String").includes},3269:function(e,t,n){n(94761);var r=n(35703);e.exports=r("String").startsWith},57473:function(e,t,n){n(85906),n(55967),n(35824),n(8555),n(52615),n(21732),n(35903),n(1825),n(28394),n(45915),n(61766),n(62737),n(89911),n(74315),n(63131),n(64714),n(70659),n(69120),n(79413),n(1502);var r=n(54058);e.exports=r.Symbol},24227:function(e,t,n){n(66274),n(55967),n(77971),n(1825);var r=n(11477);e.exports=r.f("iterator")},32304:function(e,t,n){n(66274),n(55967),n(54334);var r=n(54058);e.exports=r.WeakMap},27385:function(e,t,n){var r=n(95299);e.exports=r},81522:function(e,t,n){var r=n(83450);e.exports=r},32209:function(e,t,n){var r=n(66820);e.exports=r},44442:function(e,t,n){var r=n(3688);e.exports=r},57152:function(e,t,n){var r=n(83838);e.exports=r},69447:function(e,t,n){var r=n(15684);e.exports=r},81493:function(e,t,n){var r=n(84234);e.exports=r},70573:function(e,t,n){var r=n(91254);e.exports=r},73685:function(e,t,n){var r=n(43536);e.exports=r},27533:function(e,t,n){var r=n(37331);e.exports=r},39057:function(e,t,n){var r=n(68522);e.exports=r},84710:function(e,t,n){var r=n(73151);e.exports=r},93799:function(e,t,n){var r=n(45012);e.exports=r},29531:function(e,t,n){var r=n(25626);n(89731),n(55708),n(30014),n(88731),e.exports=r},86600:function(e,t,n){var r=n(80281);n(28783),n(43975),n(65799),n(45414),n(46774),n(80620),n(36172),e.exports=r},9759:function(e,t,n){var r=n(40031);e.exports=r},24883:function(e,t,n){var r=n(21899),o=n(57475),i=n(69826),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},174:function(e,t,n){var r=n(21899),o=n(24284),i=n(69826),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},11851:function(e,t,n){var r=n(21899),o=n(57475),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},18479:function(e){e.exports=function(){}},5743:function(e,t,n){var r=n(21899),o=n(7046),i=r.TypeError;e.exports=function(e,t){if(o(t,e))return e;throw i("Incorrect invocation")}},96059:function(e,t,n){var r=n(21899),o=n(10941),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},97135:function(e,t,n){var r=n(95981);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},56837:function(e,t,n){"use strict";var r=n(3610).forEach,o=n(34194)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},11354:function(e,t,n){"use strict";var r=n(21899),o=n(86843),i=n(78834),a=n(89678),s=n(75196),c=n(6782),u=n(24284),A=n(10623),l=n(55449),f=n(53476),h=n(22902),p=r.Array;e.exports=function(e){var t=a(e),n=u(this),r=arguments.length,d=r>1?arguments[1]:void 0,g=void 0!==d;g&&(d=o(d,r>2?arguments[2]:void 0));var y,m,I,v,w,E,B=h(t),C=0;if(!B||this==p&&c(B))for(y=A(t),m=n?new this(y):p(y);y>C;C++)E=g?d(t[C],C):t[C],l(m,C,E);else for(w=(v=f(t,B)).next,m=n?new this:[];!(I=i(w,v)).done;C++)E=g?s(v,d,[I.value,C],!0):I.value,l(m,C,E);return m.length=C,m}},31692:function(e,t,n){var r=n(74529),o=n(59413),i=n(10623),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c),A=o(a,u);if(e&&n!=n){for(;u>A;)if((s=c[A++])!=s)return!0}else for(;u>A;A++)if((e||A in c)&&c[A]===n)return e||A||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3610:function(e,t,n){var r=n(86843),o=n(95329),i=n(37026),a=n(89678),s=n(10623),c=n(64692),u=o([].push),A=function(e){var t=1==e,n=2==e,o=3==e,A=4==e,l=6==e,f=7==e,h=5==e||l;return function(p,d,g,y){for(var m,I,v=a(p),w=i(v),E=r(d,g),B=s(w),C=0,b=y||c,Q=t?b(p,B):n||f?b(p,0):void 0;B>C;C++)if((h||C in w)&&(I=E(m=w[C],C,v),e))if(t)Q[C]=I;else if(I)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:u(Q,m)}else switch(e){case 4:return!1;case 7:u(Q,m)}return l?-1:o||A?A:Q}};e.exports={forEach:A(0),map:A(1),filter:A(2),some:A(3),every:A(4),find:A(5),findIndex:A(6),filterReject:A(7)}},50568:function(e,t,n){var r=n(95981),o=n(99813),i=n(53385),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},34194:function(e,t,n){"use strict";var r=n(95981);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},15790:function(e,t,n){var r=n(21899),o=n(59413),i=n(10623),a=n(55449),s=r.Array,c=Math.max;e.exports=function(e,t,n){for(var r=i(e),u=o(t,r),A=o(void 0===n?r:n,r),l=s(c(A-u,0)),f=0;u<A;u++,f++)a(l,f,e[u]);return l.length=f,l}},93765:function(e,t,n){var r=n(95329);e.exports=r([].slice)},61388:function(e,t,n){var r=n(15790),o=Math.floor,i=function(e,t){var n=e.length,c=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,c),t),i(r(e,c),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},5693:function(e,t,n){var r=n(21899),o=n(1052),i=n(24284),a=n(10941),s=n(99813)("species"),c=r.Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(i(t)&&(t===c||o(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?c:t}},64692:function(e,t,n){var r=n(5693);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},75196:function(e,t,n){var r=n(96059),o=n(7609);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},21385:function(e,t,n){var r=n(99813)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},82532:function(e,t,n){var r=n(95329),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},9697:function(e,t,n){var r=n(21899),o=n(22885),i=n(57475),a=n(82532),s=n(99813)("toStringTag"),c=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=c(e),s))?n:u?a(t):"Object"==(r=a(t))&&i(t.callee)?"Arguments":r}},38694:function(e,t,n){var r=n(95329)("".replace),o=String(Error("zxcasd").stack),i=/\n\s*at [^:]*:[^\n]*/,a=i.test(o);e.exports=function(e,t){if(a&&"string"==typeof e)for(;t--;)e=r(e,i,"");return e}},8850:function(e,t,n){"use strict";var r=n(95329),o=n(87524),i=n(21647).getWeakData,a=n(96059),s=n(10941),c=n(5743),u=n(93091),A=n(3610),l=n(90953),f=n(45402),h=f.set,p=f.getterFor,d=A.find,g=A.findIndex,y=r([].splice),m=0,I=function(e){return e.frozen||(e.frozen=new v)},v=function(){this.entries=[]},w=function(e,t){return d(e.entries,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=w(this,e);if(t)return t[1]},has:function(e){return!!w(this,e)},set:function(e,t){var n=w(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var A=e((function(e,o){c(e,f),h(e,{type:t,id:m++,frozen:void 0}),null!=o&&u(o,e[r],{that:e,AS_ENTRIES:n})})),f=A.prototype,d=p(t),g=function(e,t,n){var r=d(e),o=i(a(t),!0);return!0===o?I(r).set(t,n):o[r.id]=n,e};return o(f,{delete:function(e){var t=d(this);if(!s(e))return!1;var n=i(e);return!0===n?I(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=d(this);if(!s(e))return!1;var n=i(e);return!0===n?I(t).has(e):n&&l(n,t.id)}}),o(f,n?{get:function(e){var t=d(this);if(s(e)){var n=i(e);return!0===n?I(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),A}}},24683:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(21647),a=n(95981),s=n(32029),c=n(93091),u=n(5743),A=n(57475),l=n(10941),f=n(90904),h=n(65988).f,p=n(3610).forEach,d=n(55746),g=n(45402),y=g.set,m=g.getterFor;e.exports=function(e,t,n){var g,I=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),w=I?"set":"add",E=o[e],B=E&&E.prototype,C={};if(d&&A(E)&&(v||B.forEach&&!a((function(){(new E).entries().next()})))){var b=(g=t((function(t,n){y(u(t,b),{type:e,collection:new E}),null!=n&&c(n,t[w],{that:t,AS_ENTRIES:I})}))).prototype,Q=m(e);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in B)||v&&"clear"==e||s(b,e,(function(n,r){var o=Q(this).collection;if(!t&&v&&!l(n))return"get"==e&&void 0;var i=o[e](0===n?0:n,r);return t?this:i}))})),v||h(b,"size",{configurable:!0,get:function(){return Q(this).collection.size}})}else g=n.getConstructor(t,e,I,w),i.enable();return f(g,e,!1,!0),C[e]=g,r({global:!0,forced:!0},C),v||n.setStrong(g,e,I),g}},23489:function(e,t,n){var r=n(90953),o=n(31136),i=n(49677),a=n(65988);e.exports=function(e,t,n){for(var s=o(t),c=a.f,u=i.f,A=0;A<s.length;A++){var l=s[A];r(e,l)||n&&r(n,l)||c(e,l,u(t,l))}}},67772:function(e,t,n){var r=n(99813)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},64160:function(e,t,n){var r=n(95981);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},31046:function(e,t,n){"use strict";var r=n(35143).IteratorPrototype,o=n(29290),i=n(31887),a=n(90904),s=n(12077),c=function(){return this};e.exports=function(e,t,n,u){var A=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,A,!1,!0),s[A]=c,e}},32029:function(e,t,n){var r=n(55746),o=n(65988),i=n(31887);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},31887:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},55449:function(e,t,n){"use strict";var r=n(83894),o=n(65988),i=n(31887);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},47771:function(e,t,n){"use strict";var r=n(76887),o=n(78834),i=n(82529),a=n(79417),s=n(57475),c=n(31046),u=n(249),A=n(88929),l=n(90904),f=n(32029),h=n(99754),p=n(99813),d=n(12077),g=n(35143),y=a.PROPER,m=a.CONFIGURABLE,I=g.IteratorPrototype,v=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),E="keys",B="values",C="entries",b=function(){return this};e.exports=function(e,t,n,a,p,g,Q){c(n,t,a);var x,_,S,T=function(e){if(e===p&&F)return F;if(!v&&e in k)return k[e];switch(e){case E:case B:case C:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",N=!1,k=e.prototype,D=k[w]||k["@@iterator"]||p&&k[p],F=!v&&D||T(p),U="Array"==t&&k.entries||D;if(U&&(x=u(U.call(new e)))!==Object.prototype&&x.next&&(i||u(x)===I||(A?A(x,I):s(x[w])||h(x,w,b)),l(x,O,!0,!0),i&&(d[O]=b)),y&&p==B&&D&&D.name!==B&&(!i&&m?f(k,"name",B):(N=!0,F=function(){return o(D,this)})),p)if(_={values:T(B),keys:g?F:T(E),entries:T(C)},Q)for(S in _)(v||N||!(S in k))&&h(k,S,_[S]);else r({target:t,proto:!0,forced:v||N},_);return i&&!Q||k[w]===F||h(k,w,F,{name:p}),d[t]=F,_}},66349:function(e,t,n){var r=n(54058),o=n(90953),i=n(11477),a=n(65988).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},55746:function(e,t,n){var r=n(95981);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},61333:function(e,t,n){var r=n(21899),o=n(10941),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},63281:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:function(e){e.exports="object"==typeof window},4470:function(e,t,n){var r=n(2861),o=n(21899);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},22749:function(e,t,n){var r=n(2861);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},6049:function(e,t,n){var r=n(82532),o=n(21899);e.exports="process"==r(o.process)},58045:function(e,t,n){var r=n(2861);e.exports=/web0s(?!.*chrome)/i.test(r)},2861:function(e,t,n){var r=n(626);e.exports=r("navigator","userAgent")||""},53385:function(e,t,n){var r,o,i=n(21899),a=n(2861),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,A=u&&u.v8;A&&(o=(r=A.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},35703:function(e,t,n){var r=n(54058);e.exports=function(e){return r[e+"Prototype"]}},56759:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},18780:function(e,t,n){var r=n(95981),o=n(31887);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},76887:function(e,t,n){"use strict";var r=n(21899),o=n(79730),i=n(95329),a=n(57475),s=n(49677).f,c=n(37252),u=n(54058),A=n(86843),l=n(32029),f=n(90953),h=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,o,p,d,g,y,m,I,v=e.target,w=e.global,E=e.stat,B=e.proto,C=w?r:E?r[v]:(r[v]||{}).prototype,b=w?u:u[v]||l(u,v,{})[v],Q=b.prototype;for(p in t)n=!c(w?p:v+(E?".":"#")+p,e.forced)&&C&&f(C,p),g=b[p],n&&(y=e.noTargetGet?(I=s(C,p))&&I.value:C[p]),d=n&&y?y:t[p],n&&typeof g==typeof d||(m=e.bind&&n?A(d,r):e.wrap&&n?h(d):B&&a(d)?i(d):d,(e.sham||d&&d.sham||g&&g.sham)&&l(m,"sham",!0),l(b,p,m),B&&(f(u,o=v+"Prototype")||l(u,o,{}),l(u[o],p,d),e.real&&Q&&!Q[p]&&l(Q,p,d)))}},95981:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},45602:function(e,t,n){var r=n(95981);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},79730:function(e,t,n){var r=n(18285),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},86843:function(e,t,n){var r=n(95329),o=n(24883),i=n(18285),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},18285:function(e,t,n){var r=n(95981);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},78834:function(e,t,n){var r=n(18285),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},79417:function(e,t,n){var r=n(55746),o=n(90953),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},95329:function(e,t,n){var r=n(18285),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},626:function(e,t,n){var r=n(54058),o=n(21899),i=n(57475),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},22902:function(e,t,n){var r=n(9697),o=n(14229),i=n(12077),a=n(99813)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},53476:function(e,t,n){var r=n(21899),o=n(78834),i=n(24883),a=n(96059),s=n(69826),c=n(22902),u=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(i(n))return a(o(n,e));throw u(s(e)+" is not iterable")}},14229:function(e,t,n){var r=n(24883);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},21899:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},90953:function(e,t,n){var r=n(95329),o=n(89678),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},27748:function(e){e.exports={}},34845:function(e,t,n){var r=n(21899);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},15463:function(e,t,n){var r=n(626);e.exports=r("document","documentElement")},2840:function(e,t,n){var r=n(55746),o=n(95981),i=n(61333);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},37026:function(e,t,n){var r=n(21899),o=n(95329),i=n(95981),a=n(82532),s=r.Object,c=o("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):s(e)}:s},81302:function(e,t,n){var r=n(95329),o=n(57475),i=n(63030),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},53794:function(e,t,n){var r=n(10941),o=n(32029);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},21647:function(e,t,n){var r=n(76887),o=n(95329),i=n(27748),a=n(10941),s=n(90953),c=n(65988).f,u=n(10946),A=n(684),l=n(91584),f=n(99418),h=n(45602),p=!1,d=f("meta"),g=0,y=function(e){c(e,d,{value:{objectID:"O"+g++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},p=!0;var e=u.f,t=o([].splice),n={};n[d]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===d){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:A.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,d)){if(!l(e))return"F";if(!t)return"E";y(e)}return e[d].objectID},getWeakData:function(e,t){if(!s(e,d)){if(!l(e))return!0;if(!t)return!1;y(e)}return e[d].weakData},onFreeze:function(e){return h&&p&&l(e)&&!s(e,d)&&y(e),e}};i[d]=!0},45402:function(e,t,n){var r,o,i,a=n(38019),s=n(21899),c=n(95329),u=n(10941),A=n(32029),l=n(90953),f=n(63030),h=n(44262),p=n(27748),d="Object already initialized",g=s.TypeError,y=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new y),I=c(m.get),v=c(m.has),w=c(m.set);r=function(e,t){if(v(m,e))throw new g(d);return t.facade=e,w(m,e,t),t},o=function(e){return I(m,e)||{}},i=function(e){return v(m,e)}}else{var E=h("state");p[E]=!0,r=function(e,t){if(l(e,E))throw new g(d);return t.facade=e,A(e,E,t),t},o=function(e){return l(e,E)?e[E]:{}},i=function(e){return l(e,E)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}},6782:function(e,t,n){var r=n(99813),o=n(12077),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},1052:function(e,t,n){var r=n(82532);e.exports=Array.isArray||function(e){return"Array"==r(e)}},57475:function(e){e.exports=function(e){return"function"==typeof e}},24284:function(e,t,n){var r=n(95329),o=n(95981),i=n(57475),a=n(9697),s=n(626),c=n(81302),u=function(){},A=[],l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=r(f.exec),p=!f.exec(u),d=function(e){if(!i(e))return!1;try{return l(u,A,e),!0}catch(e){return!1}},g=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(f,c(e))}catch(e){return!0}};g.sham=!0,e.exports=!l||o((function(){var e;return d(d.call)||!d(Object)||!d((function(){e=!0}))||e}))?g:d},37252:function(e,t,n){var r=n(95981),o=n(57475),i=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n==A||n!=u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",A=a.POLYFILL="P";e.exports=a},10941:function(e,t,n){var r=n(57475);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},82529:function(e){e.exports=!0},60685:function(e,t,n){var r=n(10941),o=n(82532),i=n(99813)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},56664:function(e,t,n){var r=n(21899),o=n(626),i=n(57475),a=n(7046),s=n(32302),c=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&a(t.prototype,c(e))}},93091:function(e,t,n){var r=n(21899),o=n(86843),i=n(78834),a=n(96059),s=n(69826),c=n(6782),u=n(10623),A=n(7046),l=n(53476),f=n(22902),h=n(7609),p=r.TypeError,d=function(e,t){this.stopped=e,this.result=t},g=d.prototype;e.exports=function(e,t,n){var r,y,m,I,v,w,E,B=n&&n.that,C=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),Q=!(!n||!n.INTERRUPTED),x=o(t,B),_=function(e){return r&&h(r,"normal",e),new d(!0,e)},S=function(e){return C?(a(e),Q?x(e[0],e[1],_):x(e[0],e[1])):Q?x(e,_):x(e)};if(b)r=e;else{if(!(y=f(e)))throw p(s(e)+" is not iterable");if(c(y)){for(m=0,I=u(e);I>m;m++)if((v=S(e[m]))&&A(g,v))return v;return new d(!1)}r=l(e,y)}for(w=r.next;!(E=i(w,r)).done;){try{v=S(E.value)}catch(e){h(r,"throw",e)}if("object"==typeof v&&v&&A(g,v))return v}return new d(!1)}},7609:function(e,t,n){var r=n(78834),o=n(96059),i=n(14229);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},35143:function(e,t,n){"use strict";var r,o,i,a=n(95981),s=n(57475),c=n(29290),u=n(249),A=n(99754),l=n(99813),f=n(82529),h=l("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):p=!0),null==r||a((function(){var e={};return r[h].call(e)!==e}))?r={}:f&&(r=c(r)),s(r[h])||A(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},12077:function(e){e.exports={}},10623:function(e,t,n){var r=n(43057);e.exports=function(e){return r(e.length)}},66132:function(e,t,n){var r,o,i,a,s,c,u,A,l=n(21899),f=n(86843),h=n(49677).f,p=n(42941).set,d=n(22749),g=n(4470),y=n(58045),m=n(6049),I=l.MutationObserver||l.WebKitMutationObserver,v=l.document,w=l.process,E=l.Promise,B=h(l,"queueMicrotask"),C=B&&B.value;C||(r=function(){var e,t;for(m&&(e=w.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},d||m||y||!I||!v?!g&&E&&E.resolve?((u=E.resolve(void 0)).constructor=E,A=f(u.then,u),a=function(){A(r)}):m?a=function(){w.nextTick(r)}:(p=f(p,l),a=function(){p(r)}):(s=!0,c=v.createTextNode(""),new I(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=C||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},19297:function(e,t,n){var r=n(21899);e.exports=r.Promise},72497:function(e,t,n){var r=n(53385),o=n(95981);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},28468:function(e,t,n){var r=n(95981),o=n(99813),i=n(82529),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},38019:function(e,t,n){var r=n(21899),o=n(57475),i=n(81302),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},69520:function(e,t,n){"use strict";var r=n(24883),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},14649:function(e,t,n){var r=n(85803);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},70344:function(e,t,n){var r=n(21899),o=n(60685),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},24420:function(e,t,n){"use strict";var r=n(55746),o=n(95329),i=n(78834),a=n(95981),s=n(14771),c=n(87857),u=n(36760),A=n(89678),l=n(37026),f=Object.assign,h=Object.defineProperty,p=o([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=o}))?function(e,t){for(var n=A(e),o=arguments.length,a=1,f=c.f,h=u.f;o>a;)for(var d,g=l(arguments[a++]),y=f?p(s(g),f(g)):s(g),m=y.length,I=0;m>I;)d=y[I++],r&&!i(h,g,d)||(n[d]=g[d]);return n}:f},29290:function(e,t,n){var r,o=n(96059),i=n(59938),a=n(56759),s=n(27748),c=n(15463),u=n(61333),A=n(44262)("IE_PROTO"),l=function(){},f=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&r?h(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):h(r);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[A]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=o(e),n=new l,l.prototype=null,n[A]=e):n=p(),void 0===t?n:i.f(n,t)}},59938:function(e,t,n){var r=n(55746),o=n(83937),i=n(65988),a=n(96059),s=n(74529),c=n(14771);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=c(t),u=o.length,A=0;u>A;)i.f(e,n=o[A++],r[n]);return e}},65988:function(e,t,n){var r=n(21899),o=n(55746),i=n(2840),a=n(83937),s=n(96059),c=n(83894),u=r.TypeError,A=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=o?a?function(e,t,n){if(s(e),t=c(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=l(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return A(e,t,n)}:A:function(e,t,n){if(s(e),t=c(t),s(n),i)try{return A(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},49677:function(e,t,n){var r=n(55746),o=n(78834),i=n(36760),a=n(31887),s=n(74529),c=n(83894),u=n(90953),A=n(2840),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=s(e),t=c(t),A)try{return l(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},684:function(e,t,n){var r=n(82532),o=n(74529),i=n(10946).f,a=n(15790),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},10946:function(e,t,n){var r=n(55629),o=n(56759).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},87857:function(e,t){t.f=Object.getOwnPropertySymbols},249:function(e,t,n){var r=n(21899),o=n(90953),i=n(57475),a=n(89678),s=n(44262),c=n(64160),u=s("IE_PROTO"),A=r.Object,l=A.prototype;e.exports=c?A.getPrototypeOf:function(e){var t=a(e);if(o(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof A?l:null}},91584:function(e,t,n){var r=n(95981),o=n(10941),i=n(82532),a=n(97135),s=Object.isExtensible,c=r((function(){s(1)}));e.exports=c||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!s||s(e))}:s},7046:function(e,t,n){var r=n(95329);e.exports=r({}.isPrototypeOf)},55629:function(e,t,n){var r=n(95329),o=n(90953),i=n(74529),a=n(31692).indexOf,s=n(27748),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,A=[];for(n in r)!o(s,n)&&o(r,n)&&c(A,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(A,n)||c(A,n));return A}},14771:function(e,t,n){var r=n(55629),o=n(56759);e.exports=Object.keys||function(e){return r(e,o)}},36760:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},88929:function(e,t,n){var r=n(95329),o=n(96059),i=n(11851);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},88810:function(e,t,n){var r=n(55746),o=n(95329),i=n(14771),a=n(74529),s=o(n(36760).f),c=o([].push),u=function(e){return function(t){for(var n,o=a(t),u=i(o),A=u.length,l=0,f=[];A>l;)n=u[l++],r&&!s(o,n)||c(f,e?[n,o[n]]:o[n]);return f}};e.exports={entries:u(!0),values:u(!1)}},95623:function(e,t,n){"use strict";var r=n(22885),o=n(9697);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},39811:function(e,t,n){var r=n(21899),o=n(78834),i=n(57475),a=n(10941),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!a(r=o(n,e)))return r;if(i(n=e.valueOf)&&!a(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!a(r=o(n,e)))return r;throw s("Can't convert object to primitive value")}},31136:function(e,t,n){var r=n(626),o=n(95329),i=n(10946),a=n(87857),s=n(96059),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?c(t,n(e)):t}},54058:function(e){e.exports={}},40002:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},56584:function(e,t,n){var r=n(96059),o=n(10941),i=n(69520);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},18397:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},87524:function(e,t,n){var r=n(99754);e.exports=function(e,t,n){for(var o in t)n&&n.unsafe&&e[o]?e[o]=t[o]:r(e,o,t[o],n);return e}},99754:function(e,t,n){var r=n(32029);e.exports=function(e,t,n,o){o&&o.enumerable?e[t]=n:r(e,t,n)}},48219:function(e,t,n){var r=n(21899).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},4911:function(e,t,n){var r=n(21899),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},94431:function(e,t,n){"use strict";var r=n(626),o=n(65988),i=n(99813),a=n(55746),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},90904:function(e,t,n){var r=n(22885),o=n(65988).f,i=n(32029),a=n(90953),s=n(95623),c=n(99813)("toStringTag");e.exports=function(e,t,n,u){if(e){var A=n?e:e.prototype;a(A,c)||o(A,c,{configurable:!0,value:t}),u&&!r&&i(A,"toString",s)}}},44262:function(e,t,n){var r=n(68726),o=n(99418),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},63030:function(e,t,n){var r=n(21899),o=n(4911),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},68726:function(e,t,n){var r=n(82529),o=n(63030);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.20.3",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE",source:"https://github.com/zloirock/core-js"})},70487:function(e,t,n){var r=n(96059),o=n(174),i=n(99813)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},64620:function(e,t,n){var r=n(95329),o=n(62435),i=n(85803),a=n(48219),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),A=function(e){return function(t,n){var r,A,l=i(a(t)),f=o(n),h=l.length;return f<0||f>=h?e?"":void 0:(r=c(l,f))<55296||r>56319||f+1===h||(A=c(l,f+1))<56320||A>57343?e?s(l,f):r:e?u(l,f,f+2):A-56320+(r-55296<<10)+65536}};e.exports={codeAt:A(!1),charAt:A(!0)}},42941:function(e,t,n){var r,o,i,a,s=n(21899),c=n(79730),u=n(86843),A=n(57475),l=n(90953),f=n(95981),h=n(15463),p=n(93765),d=n(61333),g=n(22749),y=n(6049),m=s.setImmediate,I=s.clearImmediate,v=s.process,w=s.Dispatch,E=s.Function,B=s.MessageChannel,C=s.String,b=0,Q={};try{r=s.location}catch(e){}var x=function(e){if(l(Q,e)){var t=Q[e];delete Q[e],t()}},_=function(e){return function(){x(e)}},S=function(e){x(e.data)},T=function(e){s.postMessage(C(e),r.protocol+"//"+r.host)};m&&I||(m=function(e){var t=p(arguments,1);return Q[++b]=function(){c(A(e)?e:E(e),void 0,t)},o(b),b},I=function(e){delete Q[e]},y?o=function(e){v.nextTick(_(e))}:w&&w.now?o=function(e){w.now(_(e))}:B&&!g?(a=(i=new B).port2,i.port1.onmessage=S,o=u(a.postMessage,a)):s.addEventListener&&A(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(T)?(o=T,s.addEventListener("message",S,!1)):o="onreadystatechange"in d("script")?function(e){h.appendChild(d("script")).onreadystatechange=function(){h.removeChild(this),x(e)}}:function(e){setTimeout(_(e),0)}),e.exports={set:m,clear:I}},59413:function(e,t,n){var r=n(62435),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},74529:function(e,t,n){var r=n(37026),o=n(48219);e.exports=function(e){return r(o(e))}},62435:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!=r||0===r?0:(r>0?n:t)(r)}},43057:function(e,t,n){var r=n(62435),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},89678:function(e,t,n){var r=n(21899),o=n(48219),i=r.Object;e.exports=function(e){return i(o(e))}},46935:function(e,t,n){var r=n(21899),o=n(78834),i=n(10941),a=n(56664),s=n(14229),c=n(39811),u=n(99813),A=r.TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,r=s(e,l);if(r){if(void 0===t&&(t="default"),n=o(r,e,t),!i(n)||a(n))return n;throw A("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},83894:function(e,t,n){var r=n(46935),o=n(56664);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},22885:function(e,t,n){var r={};r[n(99813)("toStringTag")]="z",e.exports="[object z]"===String(r)},85803:function(e,t,n){var r=n(21899),o=n(9697),i=r.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},69826:function(e,t,n){var r=n(21899).String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},99418:function(e,t,n){var r=n(95329),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},32302:function(e,t,n){var r=n(72497);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},83937:function(e,t,n){var r=n(55746),o=n(95981);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},18348:function(e,t,n){var r=n(21899).TypeError;e.exports=function(e,t){if(e<t)throw r("Not enough arguments");return e}},11477:function(e,t,n){var r=n(99813);t.f=r},99813:function(e,t,n){var r=n(21899),o=n(68726),i=n(90953),a=n(99418),s=n(72497),c=n(32302),u=o("wks"),A=r.Symbol,l=A&&A.for,f=c?A:A&&A.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&i(A,e)?u[e]=A[e]:u[e]=c&&l?l(t):f(t)}return u[e]}},47627:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(7046),a=n(249),s=n(88929),c=n(23489),u=n(29290),A=n(32029),l=n(31887),f=n(38694),h=n(53794),p=n(93091),d=n(14649),g=n(99813),y=n(18780),m=g("toStringTag"),I=o.Error,v=[].push,w=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=i(E,this);s?n=s(new I,o?a(this):E):(n=o?this:u(E),A(n,m,"Error")),void 0!==t&&A(n,"message",d(t)),y&&A(n,"stack",f(n.stack,1)),h(n,r);var c=[];return p(e,v,{that:c}),A(n,"errors",c),n};s?s(w,I):c(w,I,{name:!0});var E=w.prototype=u(I.prototype,{constructor:l(1,w),message:l(1,""),name:l(1,"AggregateError")});r({global:!0},{AggregateError:w})},85906:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(95981),a=n(1052),s=n(10941),c=n(89678),u=n(10623),A=n(55449),l=n(64692),f=n(50568),h=n(99813),p=n(53385),d=h("isConcatSpreadable"),g=9007199254740991,y="Maximum allowed index exceeded",m=o.TypeError,I=p>=51||!i((function(){var e=[];return e[d]=!1,e.concat()[0]!==e})),v=f("concat"),w=function(e){if(!s(e))return!1;var t=e[d];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!I||!v},{concat:function(e){var t,n,r,o,i,a=c(this),s=l(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(w(i=-1===t?a:arguments[t])){if(f+(o=u(i))>g)throw m(y);for(n=0;n<o;n++,f++)n in i&&A(s,f,i[n])}else{if(f>=g)throw m(y);A(s,f++,i)}return s.length=f,s}})},21501:function(e,t,n){"use strict";var r=n(76887),o=n(3610).filter;r({target:"Array",proto:!0,forced:!n(50568)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},80833:function(e,t,n){"use strict";var r=n(76887),o=n(3610).find,i=n(18479),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},2437:function(e,t,n){"use strict";var r=n(76887),o=n(56837);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},53242:function(e,t,n){var r=n(76887),o=n(11354);r({target:"Array",stat:!0,forced:!n(21385)((function(e){Array.from(e)}))},{from:o})},97690:function(e,t,n){"use strict";var r=n(76887),o=n(31692).includes,i=n(18479);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},99076:function(e,t,n){"use strict";var r=n(76887),o=n(95329),i=n(31692).indexOf,a=n(34194),s=o([].indexOf),c=!!s&&1/s([1],1,-0)<0,u=a("indexOf");r({target:"Array",proto:!0,forced:c||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?s(this,e,t)||0:i(this,e,t)}})},92737:function(e,t,n){n(76887)({target:"Array",stat:!0},{isArray:n(1052)})},66274:function(e,t,n){"use strict";var r=n(74529),o=n(18479),i=n(12077),a=n(45402),s=n(65988).f,c=n(47771),u=n(82529),A=n(55746),l="Array Iterator",f=a.set,h=a.getterFor(l);e.exports=c(Array,"Array",(function(e,t){f(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!u&&A&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},68787:function(e,t,n){"use strict";var r=n(76887),o=n(3610).map;r({target:"Array",proto:!0,forced:!n(50568)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},60186:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(1052),a=n(24284),s=n(10941),c=n(59413),u=n(10623),A=n(74529),l=n(55449),f=n(99813),h=n(50568),p=n(93765),d=h("slice"),g=f("species"),y=o.Array,m=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,o,f=A(this),h=u(f),d=c(e,h),I=c(void 0===t?h:t,h);if(i(f)&&(n=f.constructor,(a(n)&&(n===y||i(n.prototype))||s(n)&&null===(n=n[g]))&&(n=void 0),n===y||void 0===n))return p(f,d,I);for(r=new(void 0===n?y:n)(m(I-d,0)),o=0;d<I;d++,o++)d in f&&l(r,o,f[d]);return r.length=o,r}})},98611:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(59413),a=n(62435),s=n(10623),c=n(89678),u=n(64692),A=n(55449),l=n(50568)("splice"),f=o.TypeError,h=Math.max,p=Math.min,d=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!l},{splice:function(e,t){var n,r,o,l,y,m,I=c(this),v=s(I),w=i(e,v),E=arguments.length;if(0===E?n=r=0:1===E?(n=0,r=v-w):(n=E-2,r=p(h(a(t),0),v-w)),v+n-r>d)throw f(g);for(o=u(I,r),l=0;l<r;l++)(y=w+l)in I&&A(o,l,I[y]);if(o.length=r,n<r){for(l=w;l<v-r;l++)m=l+n,(y=l+r)in I?I[m]=I[y]:delete I[m];for(l=v;l>v-r+n;l--)delete I[l-1]}else if(n>r)for(l=v-r;l>w;l--)m=l+n-1,(y=l+r-1)in I?I[m]=I[y]:delete I[m];for(l=0;l<n;l++)I[l+w]=arguments[l+2];return I.length=v-r+n,o}})},32619:function(e,t,n){var r=n(76887),o=n(21899),i=n(626),a=n(79730),s=n(95329),c=n(95981),u=o.Array,A=i("JSON","stringify"),l=s(/./.exec),f=s("".charAt),h=s("".charCodeAt),p=s("".replace),d=s(1..toString),g=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,m=/^[\uDC00-\uDFFF]$/,I=function(e,t,n){var r=f(n,t-1),o=f(n,t+1);return l(y,e)&&!l(m,o)||l(m,e)&&!l(y,r)?"\\u"+d(h(e,0),16):e},v=c((function(){return'"\\udf06\\ud834"'!==A("\udf06\ud834")||'"\\udead"'!==A("\udead")}));A&&r({target:"JSON",stat:!0,forced:v},{stringify:function(e,t,n){for(var r=0,o=arguments.length,i=u(o);r<o;r++)i[r]=arguments[r];var s=a(A,null,i);return"string"==typeof s?p(s,g,I):s}})},69120:function(e,t,n){var r=n(21899);n(90904)(r.JSON,"JSON",!0)},79413:function(){},49221:function(e,t,n){var r=n(76887),o=n(24420);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},74979:function(e,t,n){var r=n(76887),o=n(55746),i=n(59938).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},86450:function(e,t,n){var r=n(76887),o=n(55746),i=n(65988).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},21078:function(e,t,n){var r=n(76887),o=n(88810).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},46924:function(e,t,n){var r=n(76887),o=n(95981),i=n(74529),a=n(49677).f,s=n(55746),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},88482:function(e,t,n){var r=n(76887),o=n(55746),i=n(31136),a=n(74529),s=n(49677),c=n(55449);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,u=i(r),A={},l=0;u.length>l;)void 0!==(n=o(r,t=u[l++]))&&c(A,t,n);return A}})},21724:function(e,t,n){var r=n(76887),o=n(89678),i=n(14771);r({target:"Object",stat:!0,forced:n(95981)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},55967:function(){},4560:function(e,t,n){"use strict";var r=n(76887),o=n(78834),i=n(24883),a=n(69520),s=n(40002),c=n(93091);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,A=s((function(){var n=i(t.resolve),a=[],s=0,u=1;c(e,(function(e){var i=s++,c=!1;u++,o(n,t,e).then((function(e){c||(c=!0,a[i]={status:"fulfilled",value:e},--u||r(a))}),(function(e){c||(c=!0,a[i]={status:"rejected",reason:e},--u||r(a))}))})),--u||r(a)}));return A.error&&u(A.value),n.promise}})},91302:function(e,t,n){"use strict";var r=n(76887),o=n(24883),i=n(626),a=n(78834),s=n(69520),c=n(40002),u=n(93091),A="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=i("AggregateError"),r=s.f(t),l=r.resolve,f=r.reject,h=c((function(){var r=o(t.resolve),i=[],s=0,c=1,h=!1;u(e,(function(e){var o=s++,u=!1;c++,a(r,t,e).then((function(e){u||h||(h=!0,l(e))}),(function(e){u||h||(u=!0,i[o]=e,--c||f(new n(i,A)))}))})),--c||f(new n(i,A))}));return h.error&&f(h.value),r.promise}})},44349:function(e,t,n){"use strict";var r=n(76887),o=n(82529),i=n(19297),a=n(95981),s=n(626),c=n(57475),u=n(70487),A=n(56584),l=n(99754);if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=c(e);return this.then(n?function(n){return A(t,e()).then((function(){return n}))}:e,n?function(n){return A(t,e()).then((function(){throw n}))}:e)}}),!o&&c(i)){var f=s("Promise").prototype.finally;i.prototype.finally!==f&&l(i.prototype,"finally",f,{unsafe:!0})}},98881:function(e,t,n){"use strict";var r,o,i,a,s=n(76887),c=n(82529),u=n(21899),A=n(626),l=n(78834),f=n(19297),h=n(99754),p=n(87524),d=n(88929),g=n(90904),y=n(94431),m=n(24883),I=n(57475),v=n(10941),w=n(5743),E=n(81302),B=n(93091),C=n(21385),b=n(70487),Q=n(42941).set,x=n(66132),_=n(56584),S=n(34845),T=n(69520),O=n(40002),N=n(18397),k=n(45402),D=n(37252),F=n(99813),U=n(23321),R=n(6049),P=n(53385),M=F("species"),j="Promise",L=k.getterFor(j),G=k.set,H=k.getterFor(j),q=f&&f.prototype,Y=f,K=q,z=u.TypeError,V=u.document,J=u.process,W=T.f,$=W,X=!!(V&&V.createEvent&&u.dispatchEvent),Z=I(u.PromiseRejectionEvent),ee="unhandledrejection",te=!1,ne=D(j,(function(){var e=E(Y),t=e!==String(Y);if(!t&&66===P)return!0;if(c&&!K.finally)return!0;if(P>=51&&/native code/.test(e))return!1;var n=new Y((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[M]=r,!(te=n.then((function(){}))instanceof r)||!t&&U&&!Z})),re=ne||!C((function(e){Y.all(e).catch((function(){}))})),oe=function(e){var t;return!(!v(e)||!I(t=e.then))&&t},ie=function(e,t){var n,r,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,A=e.domain;try{s?(a||(2===t.rejection&&Ae(t),t.rejection=1),!0===s?n=i:(A&&A.enter(),n=s(i),A&&(A.exit(),o=!0)),n===e.promise?u(z("Promise-chain cycle")):(r=oe(n))?l(r,n,c,u):c(n)):u(i)}catch(e){A&&!o&&A.exit(),u(e)}},ae=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,r=e.reactions;n=r.get();)ie(n,e);e.notified=!1,t&&!e.rejection&&ce(e)})))},se=function(e,t,n){var r,o;X?((r=V.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!Z&&(o=u["on"+e])?o(r):e===ee&&S("Unhandled promise rejection",n)},ce=function(e){l(Q,u,(function(){var t,n=e.facade,r=e.value;if(ue(e)&&(t=O((function(){R?J.emit("unhandledRejection",r,n):se(ee,n,r)})),e.rejection=R||ue(e)?2:1,t.error))throw t.value}))},ue=function(e){return 1!==e.rejection&&!e.parent},Ae=function(e){l(Q,u,(function(){var t=e.facade;R?J.emit("rejectionHandled",t):se("rejectionhandled",t,e.value)}))},le=function(e,t,n){return function(r){e(t,r,n)}},fe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ae(e,!0))},he=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw z("Promise can't be resolved itself");var r=oe(t);r?x((function(){var n={done:!1};try{l(r,t,le(he,n,e),le(fe,n,e))}catch(t){fe(n,t,e)}})):(e.value=t,e.state=1,ae(e,!1))}catch(t){fe({done:!1},t,e)}}};if(ne&&(K=(Y=function(e){w(this,K),m(e),l(r,this);var t=L(this);try{e(le(he,t),le(fe,t))}catch(e){fe(t,e)}}).prototype,(r=function(e){G(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new N,rejection:!1,state:0,value:void 0})}).prototype=p(K,{then:function(e,t){var n=H(this),r=W(b(this,Y));return n.parent=!0,r.ok=!I(e)||e,r.fail=I(t)&&t,r.domain=R?J.domain:void 0,0==n.state?n.reactions.add(r):x((function(){ie(r,n)})),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=L(e);this.promise=e,this.resolve=le(he,t),this.reject=le(fe,t)},T.f=W=function(e){return e===Y||e===i?new o(e):$(e)},!c&&I(f)&&q!==Object.prototype)){a=q.then,te||(h(q,"then",(function(e,t){var n=this;return new Y((function(e,t){l(a,n,e,t)})).then(e,t)}),{unsafe:!0}),h(q,"catch",K.catch,{unsafe:!0}));try{delete q.constructor}catch(e){}d&&d(q,K)}s({global:!0,wrap:!0,forced:ne},{Promise:Y}),g(Y,j,!1,!0),y(j),i=A(j),s({target:j,stat:!0,forced:ne},{reject:function(e){var t=W(this);return l(t.reject,void 0,e),t.promise}}),s({target:j,stat:!0,forced:c||ne},{resolve:function(e){return _(c&&this===i?Y:this,e)}}),s({target:j,stat:!0,forced:re},{all:function(e){var t=this,n=W(t),r=n.resolve,o=n.reject,i=O((function(){var n=m(t.resolve),i=[],a=0,s=1;B(e,(function(e){var c=a++,u=!1;s++,l(n,t,e).then((function(e){u||(u=!0,i[c]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=W(t),r=n.reject,o=O((function(){var o=m(t.resolve);B(e,(function(e){l(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},1502:function(){},11035:function(e,t,n){"use strict";var r=n(76887),o=n(95329),i=n(70344),a=n(48219),s=n(85803),c=n(67772),u=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},77971:function(e,t,n){"use strict";var r=n(64620).charAt,o=n(85803),i=n(45402),a=n(47771),s="String Iterator",c=i.set,u=i.getterFor(s);a(String,"String",(function(e){c(this,{type:s,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},94761:function(e,t,n){"use strict";var r,o=n(76887),i=n(95329),a=n(49677).f,s=n(43057),c=n(85803),u=n(70344),A=n(48219),l=n(67772),f=n(82529),h=i("".startsWith),p=i("".slice),d=Math.min,g=l("startsWith");o({target:"String",proto:!0,forced:!(!f&&!g&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||g)},{startsWith:function(e){var t=c(A(this));u(e);var n=s(d(arguments.length>1?arguments[1]:void 0,t.length)),r=c(e);return h?h(t,r,n):p(t,n,n+r.length)===r}})},8555:function(e,t,n){n(66349)("asyncIterator")},52615:function(){},21732:function(e,t,n){n(66349)("hasInstance")},35903:function(e,t,n){n(66349)("isConcatSpreadable")},1825:function(e,t,n){n(66349)("iterator")},35824:function(e,t,n){"use strict";var r=n(76887),o=n(21899),i=n(626),a=n(79730),s=n(78834),c=n(95329),u=n(82529),A=n(55746),l=n(72497),f=n(95981),h=n(90953),p=n(1052),d=n(57475),g=n(10941),y=n(7046),m=n(56664),I=n(96059),v=n(89678),w=n(74529),E=n(83894),B=n(85803),C=n(31887),b=n(29290),Q=n(14771),x=n(10946),_=n(684),S=n(87857),T=n(49677),O=n(65988),N=n(59938),k=n(36760),D=n(93765),F=n(99754),U=n(68726),R=n(44262),P=n(27748),M=n(99418),j=n(99813),L=n(11477),G=n(66349),H=n(90904),q=n(45402),Y=n(3610).forEach,K=R("hidden"),z="Symbol",V=j("toPrimitive"),J=q.set,W=q.getterFor(z),$=Object.prototype,X=o.Symbol,Z=X&&X.prototype,ee=o.TypeError,te=o.QObject,ne=i("JSON","stringify"),re=T.f,oe=O.f,ie=_.f,ae=k.f,se=c([].push),ce=U("symbols"),ue=U("op-symbols"),Ae=U("string-to-symbol-registry"),le=U("symbol-to-string-registry"),fe=U("wks"),he=!te||!te.prototype||!te.prototype.findChild,pe=A&&f((function(){return 7!=b(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=re($,t);r&&delete $[t],oe(e,t,n),r&&e!==$&&oe($,t,r)}:oe,de=function(e,t){var n=ce[e]=b(Z);return J(n,{type:z,tag:e,description:t}),A||(n.description=t),n},ge=function(e,t,n){e===$&&ge(ue,t,n),I(e);var r=E(t);return I(n),h(ce,r)?(n.enumerable?(h(e,K)&&e[K][r]&&(e[K][r]=!1),n=b(n,{enumerable:C(0,!1)})):(h(e,K)||oe(e,K,C(1,{})),e[K][r]=!0),pe(e,r,n)):oe(e,r,n)},ye=function(e,t){I(e);var n=w(t),r=Q(n).concat(we(n));return Y(r,(function(t){A&&!s(me,n,t)||ge(e,t,n[t])})),e},me=function(e){var t=E(e),n=s(ae,this,t);return!(this===$&&h(ce,t)&&!h(ue,t))&&(!(n||!h(this,t)||!h(ce,t)||h(this,K)&&this[K][t])||n)},Ie=function(e,t){var n=w(e),r=E(t);if(n!==$||!h(ce,r)||h(ue,r)){var o=re(n,r);return!o||!h(ce,r)||h(n,K)&&n[K][r]||(o.enumerable=!0),o}},ve=function(e){var t=ie(w(e)),n=[];return Y(t,(function(e){h(ce,e)||h(P,e)||se(n,e)})),n},we=function(e){var t=e===$,n=ie(t?ue:w(e)),r=[];return Y(n,(function(e){!h(ce,e)||t&&!h($,e)||se(r,ce[e])})),r};if(l||(X=function(){if(y(Z,this))throw ee("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?B(arguments[0]):void 0,t=M(e),n=function(e){this===$&&s(n,ue,e),h(this,K)&&h(this[K],t)&&(this[K][t]=!1),pe(this,t,C(1,e))};return A&&he&&pe($,t,{configurable:!0,set:n}),de(t,e)},F(Z=X.prototype,"toString",(function(){return W(this).tag})),F(X,"withoutSetter",(function(e){return de(M(e),e)})),k.f=me,O.f=ge,N.f=ye,T.f=Ie,x.f=_.f=ve,S.f=we,L.f=function(e){return de(j(e),e)},A&&(oe(Z,"description",{configurable:!0,get:function(){return W(this).description}}),u||F($,"propertyIsEnumerable",me,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:X}),Y(Q(fe),(function(e){G(e)})),r({target:z,stat:!0,forced:!l},{for:function(e){var t=B(e);if(h(Ae,t))return Ae[t];var n=X(t);return Ae[t]=n,le[n]=t,n},keyFor:function(e){if(!m(e))throw ee(e+" is not a symbol");if(h(le,e))return le[e]},useSetter:function(){he=!0},useSimple:function(){he=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!A},{create:function(e,t){return void 0===t?b(e):ye(b(e),t)},defineProperty:ge,defineProperties:ye,getOwnPropertyDescriptor:Ie}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ve,getOwnPropertySymbols:we}),r({target:"Object",stat:!0,forced:f((function(){S.f(1)}))},{getOwnPropertySymbols:function(e){return S.f(v(e))}}),ne&&r({target:"JSON",stat:!0,forced:!l||f((function(){var e=X();return"[null]"!=ne([e])||"{}"!=ne({a:e})||"{}"!=ne(Object(e))}))},{stringify:function(e,t,n){var r=D(arguments),o=t;if((g(t)||void 0!==e)&&!m(e))return p(t)||(t=function(e,t){if(d(o)&&(t=s(o,this,e,t)),!m(t))return t}),r[1]=t,a(ne,null,r)}}),!Z[V]){var Ee=Z.valueOf;F(Z,V,(function(e){return s(Ee,this)}))}H(X,z),P[K]=!0},45915:function(e,t,n){n(66349)("matchAll")},28394:function(e,t,n){n(66349)("match")},61766:function(e,t,n){n(66349)("replace")},62737:function(e,t,n){n(66349)("search")},89911:function(e,t,n){n(66349)("species")},74315:function(e,t,n){n(66349)("split")},63131:function(e,t,n){n(66349)("toPrimitive")},64714:function(e,t,n){n(66349)("toStringTag")},70659:function(e,t,n){n(66349)("unscopables")},54334:function(e,t,n){"use strict";var r,o=n(21899),i=n(95329),a=n(87524),s=n(21647),c=n(24683),u=n(8850),A=n(10941),l=n(91584),f=n(45402).enforce,h=n(38019),p=!o.ActiveXObject&&"ActiveXObject"in o,d=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=c("WeakMap",d,u);if(h&&p){r=u.getConstructor(d,"WeakMap",!0),s.enable();var y=g.prototype,m=i(y.delete),I=i(y.has),v=i(y.get),w=i(y.set);a(y,{delete:function(e){if(A(e)&&!l(e)){var t=f(this);return t.frozen||(t.frozen=new r),m(this,e)||t.frozen.delete(e)}return m(this,e)},has:function(e){if(A(e)&&!l(e)){var t=f(this);return t.frozen||(t.frozen=new r),I(this,e)||t.frozen.has(e)}return I(this,e)},get:function(e){if(A(e)&&!l(e)){var t=f(this);return t.frozen||(t.frozen=new r),I(this,e)?v(this,e):t.frozen.get(e)}return v(this,e)},set:function(e,t){if(A(e)&&!l(e)){var n=f(this);n.frozen||(n.frozen=new r),I(this,e)?w(this,e,t):n.frozen.set(e,t)}else w(this,e,t);return this}})}},89731:function(e,t,n){n(47627)},55708:function(e,t,n){n(4560)},88731:function(e,t,n){n(91302)},30014:function(e,t,n){"use strict";var r=n(76887),o=n(69520),i=n(40002);r({target:"Promise",stat:!0},{try:function(e){var t=o.f(this),n=i(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},28783:function(e,t,n){n(66349)("asyncDispose")},43975:function(e,t,n){n(66349)("dispose")},65799:function(e,t,n){n(66349)("matcher")},45414:function(e,t,n){n(66349)("metadata")},46774:function(e,t,n){n(66349)("observable")},80620:function(e,t,n){n(66349)("patternMatch")},36172:function(e,t,n){n(66349)("replaceAll")},7634:function(e,t,n){n(66274);var r=n(63281),o=n(21899),i=n(9697),a=n(32029),s=n(12077),c=n(99813)("toStringTag");for(var u in r){var A=o[u],l=A&&A.prototype;l&&i(l)!==c&&a(l,c,u),s[u]=s.Array}},95304:function(e,t,n){"use strict";n(66274);var r=n(76887),o=n(21899),i=n(626),a=n(78834),s=n(95329),c=n(28468),u=n(99754),A=n(87524),l=n(90904),f=n(31046),h=n(45402),p=n(5743),d=n(57475),g=n(90953),y=n(86843),m=n(9697),I=n(96059),v=n(10941),w=n(85803),E=n(29290),B=n(31887),C=n(53476),b=n(22902),Q=n(18348),x=n(99813),_=n(61388),S=x("iterator"),T="URLSearchParams",O="URLSearchParamsIterator",N=h.set,k=h.getterFor(T),D=h.getterFor(O),F=i("fetch"),U=i("Request"),R=i("Headers"),P=U&&U.prototype,M=R&&R.prototype,j=o.RegExp,L=o.TypeError,G=o.decodeURIComponent,H=o.encodeURIComponent,q=s("".charAt),Y=s([].join),K=s([].push),z=s("".replace),V=s([].shift),J=s([].splice),W=s("".split),$=s("".slice),X=/\+/g,Z=Array(4),ee=function(e){return Z[e-1]||(Z[e-1]=j("((?:%[\\da-f]{2}){"+e+"})","gi"))},te=function(e){try{return G(e)}catch(t){return e}},ne=function(e){var t=z(e,X," "),n=4;try{return G(t)}catch(e){for(;n;)t=z(t,ee(n--),te);return t}},re=/[!'()~]|%20/g,oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ie=function(e){return oe[e]},ae=function(e){return z(H(e),re,ie)},se=f((function(e,t){N(this,{type:O,iterator:C(k(e).entries),kind:t})}),"Iterator",(function(){var e=D(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(v(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===q(e,0)?$(e,1):e:w(e)))};ce.prototype={type:T,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,s,c,u=b(e);if(u)for(n=(t=C(e,u)).next;!(r=a(n,t)).done;){if(i=(o=C(I(r.value))).next,(s=a(i,o)).done||(c=a(i,o)).done||!a(i,o).done)throw L("Expected sequence with length 2");K(this.entries,{key:w(s.value),value:w(c.value)})}else for(var A in e)g(e,A)&&K(this.entries,{key:A,value:w(e[A])})},parseQuery:function(e){if(e)for(var t,n,r=W(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=W(t,"="),K(this.entries,{key:ne(V(n)),value:ne(Y(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],K(n,ae(e.key)+"="+ae(e.value));return Y(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ue=function(){p(this,Ae);var e=arguments.length>0?arguments[0]:void 0;N(this,new ce(e))},Ae=ue.prototype;if(A(Ae,{append:function(e,t){Q(arguments.length,2);var n=k(this);K(n.entries,{key:w(e),value:w(t)}),n.updateURL()},delete:function(e){Q(arguments.length,1);for(var t=k(this),n=t.entries,r=w(e),o=0;o<n.length;)n[o].key===r?J(n,o,1):o++;t.updateURL()},get:function(e){Q(arguments.length,1);for(var t=k(this).entries,n=w(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){Q(arguments.length,1);for(var t=k(this).entries,n=w(e),r=[],o=0;o<t.length;o++)t[o].key===n&&K(r,t[o].value);return r},has:function(e){Q(arguments.length,1);for(var t=k(this).entries,n=w(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){Q(arguments.length,1);for(var n,r=k(this),o=r.entries,i=!1,a=w(e),s=w(t),c=0;c<o.length;c++)(n=o[c]).key===a&&(i?J(o,c--,1):(i=!0,n.value=s));i||K(o,{key:a,value:s}),r.updateURL()},sort:function(){var e=k(this);_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=k(this).entries,r=y(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new se(this,"keys")},values:function(){return new se(this,"values")},entries:function(){return new se(this,"entries")}},{enumerable:!0}),u(Ae,S,Ae.entries,{name:"entries"}),u(Ae,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),l(ue,T),r({global:!0,forced:!c},{URLSearchParams:ue}),!c&&d(R)){var le=s(M.has),fe=s(M.set),he=function(e){if(v(e)){var t,n=e.body;if(m(n)===T)return t=e.headers?new R(e.headers):new R,le(t,"content-type")||fe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),E(e,{body:B(0,w(n)),headers:B(0,t)})}return e};if(d(F)&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?he(arguments[1]):{})}}),d(U)){var pe=function(e){return p(this,P),new U(e,arguments.length>1?he(arguments[1]):{})};P.constructor=pe,pe.prototype=P,r({global:!0,forced:!0},{Request:pe})}}e.exports={URLSearchParams:ue,getState:k}},27698:function(e,t,n){var r=n(54493);e.exports=r},83363:function(e,t,n){var r=n(24034);e.exports=r},62908:function(e,t,n){var r=n(12710);e.exports=r},49216:function(e,t,n){var r=n(99324);e.exports=r},56243:function(e,t,n){var r=n(13830);n(7634),e.exports=r},8065:function(e,t,n){var r=n(56043);e.exports=r},57448:function(e,t,n){n(7634);var r=n(9697),o=n(90953),i=n(7046),a=n(62908),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.entries;return e===s||i(s,e)&&t===s.entries||o(c,r(e))?a:t}},11955:function(e,t,n){var r=n(2480);e.exports=r},61577:function(e,t,n){var r=n(32236);e.exports=r},46279:function(e,t,n){n(7634);var r=n(9697),o=n(90953),i=n(7046),a=n(49216),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===s||i(s,e)&&t===s.forEach||o(c,r(e))?a:t}},33778:function(e,t,n){var r=n(58557);e.exports=r},19373:function(e,t,n){var r=n(34570);e.exports=r},61798:function(e,t,n){var r=n(88287);e.exports=r},82073:function(e,t,n){var r=n(69601);e.exports=r},2348:function(e,t,n){var r=n(18339);e.exports=r},35178:function(e,t,n){var r=n(71611);e.exports=r},8933:function(e,t,n){var r=n(84426);e.exports=r},63383:function(e,t,n){var r=n(45999);e.exports=r},57396:function(e,t,n){var r=n(7702);e.exports=r},41910:function(e,t,n){var r=n(48171);e.exports=r},86209:function(e,t,n){var r=n(73081);e.exports=r},79427:function(e,t,n){var r=n(286);e.exports=r},62857:function(e,t,n){var r=n(92766);e.exports=r},9534:function(e,t,n){var r=n(30498);e.exports=r},23059:function(e,t,n){var r=n(48494);e.exports=r},27460:function(e,t,n){var r=n(52956);n(7634),e.exports=r},92547:function(e,t,n){var r=n(57473);n(7634),e.exports=r},46509:function(e,t,n){var r=n(24227);n(7634),e.exports=r},73926:function(e,t,n){var r=n(47610);n(7634),e.exports=r},72010:function(e,t,n){var r=n(32304);n(7634),e.exports=r},47610:function(e,t,n){n(95304);var r=n(54058);e.exports=r.URLSearchParams},31905:function(){!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[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&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(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 A(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?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 h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=g(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):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=p(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=A(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=A(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),l(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),l(e)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function I(e,t){var n,r,o=(t=t||{}).body;if(e instanceof I){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),m.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function w(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 f(t.headers),this.url=t.url||"",this._initBody(e)}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})},y.call(I.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];w.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new w(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 n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function B(e,n){return new Promise((function(r,i){var a=new I(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new w(o,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}B.polyfill=!0,e.fetch||(e.fetch=B,e.Headers=f,e.Request=I,e.Response=w),t.Headers=f,t.Request=I,t.Response=w,t.fetch=B,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},54098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[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&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(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 A(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?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 h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=g(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):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=p(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=A(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=A(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),l(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),l(e)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function I(e,t){var n,r,o=(t=t||{}).body;if(e instanceof I){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),m.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function w(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 f(t.headers),this.url=t.url||"",this._initBody(e)}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})},y.call(I.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];w.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new w(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 n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function B(e,n){return new Promise((function(r,i){var a=new I(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new w(o,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}B.polyfill=!0,e.fetch||(e.fetch=B,e.Headers=f,e.Request=I,e.Response=w),t.Headers=f,t.Request=I,t.Response=w,t.fetch=B,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},9996:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,c){(c=c||{}).arrayMerge=c.arrayMerge||o,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(e)?u?c.arrayMerge(e,n,c):function(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}(e,n,c):r(n,c)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var c=s;e.exports=c},284:function(e){var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},17187:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}d(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&d(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,a,u;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=e,A.type=t,A.count=a.length,u=A,console&&console.warn&&console.warn(u)}return e}function A(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=A.bind(r);return o.listener=n,r.wrapFn=o,o}function f(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):p(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function d(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,A=p(c,u);for(n=0;n<u;++n)r(A[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,l(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,l(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},17648:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(t+i);for(var a,s=n.call(arguments,1),c=function(){if(this instanceof a){var t=i.apply(this,s.concat(n.call(arguments)));return Object(t)===t?t:this}return i.apply(e,s.concat(n.call(arguments)))},u=Math.max(0,i.length-s.length),A=[],l=0;l<u;l++)A.push("$"+l);if(a=Function("binder","return function ("+A.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var f=function(){};f.prototype=i.prototype,a.prototype=new f,f.prototype=null}return a}},58612:function(e,t,n){"use strict";var r=n(17648);e.exports=Function.prototype.bind||r},40210:function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},A=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,l=n(41405)(),f=Object.getPrototypeOf||function(e){return e.__proto__},h={},p="undefined"==typeof Uint8Array?r:f(Uint8Array),d={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):r,"%Symbol%":l?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":A,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=f(o.prototype))}return d[t]=n,n},y={"%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"]},m=n(58612),I=n(17642),v=m.call(Function.call,Array.prototype.concat),w=m.call(Function.apply,Array.prototype.splice),E=m.call(Function.call,String.prototype.replace),B=m.call(Function.call,String.prototype.slice),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,b=/\\(\\)?/g,Q=function(e){var t=B(e,0,1),n=B(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return E(e,C,(function(e,t,n,o){r[r.length]=n?E(o,b,"$1"):t||e})),r},x=function(e,t){var n,r=e;if(I(y,r)&&(r="%"+(n=y[r])[0]+"%"),I(d,r)){var i=d[r];if(i===h&&(i=g(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=Q(e),r=n.length>0?n[0]:"",i=x("%"+r+"%",t),s=i.name,u=i.value,A=!1,l=i.alias;l&&(r=l[0],w(n,v([0,1],l)));for(var f=1,h=!0;f<n.length;f+=1){var p=n[f],g=B(p,0,1),y=B(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new o("property names with quotes must have matching quotes");if("constructor"!==p&&h||(A=!0),I(d,s="%"+(r+="."+p)+"%"))u=d[s];else if(null!=u){if(!(p in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=n.length){var m=c(u,p);u=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:u[p]}else h=I(u,p),u=u[p];h&&!A&&(d[s]=u)}}return u}},41405:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(55419);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},55419:function(e){"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"),n=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(n))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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},17642:function(e,t,n){"use strict";var r=n(58612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},80645:function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,u=c>>1,A=-7,l=n?o-1:0,f=n?-1:1,h=e[t+l];for(l+=f,i=h&(1<<-A)-1,h>>=-A,A+=s;A>0;i=256*i+e[t+l],l+=f,A-=8);for(a=i&(1<<-A)-1,i>>=-A,A+=r;A>0;a=256*a+e[t+l],l+=f,A-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,A=(1<<u)-1,l=A>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=A):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+l>=1?f/c:f*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=A?(s=0,a=A):a+l>=1?(s=(t*c-1)*Math.pow(2,o),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*d}},35717:function(e){"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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},1989:function(e,t,n){var r=n(51789),o=n(80401),i=n(57667),a=n(21327),s=n(81866);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},38407:function(e,t,n){var r=n(27040),o=n(14125),i=n(82117),a=n(67518),s=n(54705);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},57071:function(e,t,n){var r=n(10852)(n(55639),"Map");e.exports=r},83369:function(e,t,n){var r=n(24785),o=n(11285),i=n(96e3),a=n(49916),s=n(95265);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},29932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},18470:function(e,t,n){var r=n(77813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},97786:function(e,t,n){var r=n(71811),o=n(40327);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},28458:function(e,t,n){var r=n(23560),o=n(15346),i=n(13218),a=n(80346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,A=c.toString,l=u.hasOwnProperty,f=RegExp("^"+A.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},80531:function(e,t,n){var r=n(62705),o=n(29932),i=n(1469),a=n(33448),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},71811:function(e,t,n){var r=n(1469),o=n(15403),i=n(55514),a=n(79833);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},74852:function(e,t,n){var r=n(55639)["__core-js_shared__"];e.exports=r},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},45050:function(e,t,n){var r=n(37019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},10852:function(e,t,n){var r=n(28458),o=n(47801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},51789:function(e,t,n){var r=n(94536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,n){var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},21327:function(e,t,n){var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},81866:function(e,t,n){var r=n(94536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},15403:function(e,t,n){var r=n(1469),o=n(33448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,n){var r,o=n(74852),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,n){var r=n(18470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},82117:function(e,t,n){var r=n(18470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67518:function(e,t,n){var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},54705:function(e,t,n){var r=n(18470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},24785:function(e,t,n){var r=n(1989),o=n(38407),i=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},11285:function(e,t,n){var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,t,n){var r=n(45050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},24523:function(e,t,n){var r=n(88306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},55514:function(e,t,n){var r=n(24523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},40327:function(e,t,n){var r=n(33448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},27361:function(e,t,n){var r=n(97786);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},1469:function(e){var t=Array.isArray;e.exports=t},23560:function(e,t,n){var r=n(44239),o=n(13218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},88306:function(e,t,n){var r=n(83369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},79833:function(e,t,n){var r=n(80531);e.exports=function(e){return null==e?"":r(e)}},70631:function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,A=s&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,d=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,m=String.prototype.slice,I=String.prototype.replace,v=String.prototype.toUpperCase,w=String.prototype.toLowerCase,E=RegExp.prototype.test,B=Array.prototype.concat,C=Array.prototype.join,b=Array.prototype.slice,Q=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,O="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-Q(-e):Q(e);if(r!==e){var o=String(r),i=m.call(t,o.length+1);return I.call(o,n,"$&_")+"."+I.call(I.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return I.call(t,n,"$&_")}var F=n(24654).custom,U=F&&j(F)?F:null;function R(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function P(e){return I.call(String(e),/"/g,""")}function M(e){return!("[object Array]"!==H(e)||O&&"object"==typeof e&&O in e)}function j(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,o){var s=n||{};if(G(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!G(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Y(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var v=String(t);return d?D(t,v):v}if("bigint"==typeof t){var E=String(t)+"n";return d?D(t,E):E}var Q=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=Q&&Q>0&&"object"==typeof t)return M(t)?"[Array]":"[Object]";var _,F=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=C.call(Array(e.indent+1)," ")}return{base:n,prev:C.call(Array(t+1),n)}}(s,r);if(void 0===o)o=[];else if(q(o,t)>=0)return"[Circular]";function L(t,n,i){if(n&&(o=b.call(o)).push(n),i){var a={depth:s.depth};return G(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if("function"==typeof t){var K=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),X=$(t,L);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(X.length>0?" { "+C.call(X,", ")+" }":"")}if(j(t)){var Z=T?I.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):S.call(t);return"object"!=typeof t||T?Z:z(Z)}if((_=t)&&"object"==typeof _&&("undefined"!=typeof HTMLElement&&_ instanceof HTMLElement||"string"==typeof _.nodeName&&"function"==typeof _.getAttribute)){for(var ee="<"+w.call(String(t.nodeName)),te=t.attributes||[],ne=0;ne<te.length;ne++)ee+=" "+te[ne].name+"="+R(P(te[ne].value),"double",s);return ee+=">",t.childNodes&&t.childNodes.length&&(ee+="..."),ee+"</"+w.call(String(t.nodeName))+">"}if(M(t)){if(0===t.length)return"[]";var re=$(t,L);return F&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(re)?"["+W(re,F)+"]":"[ "+C.call(re,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||O&&"object"==typeof e&&O in e)}(t)){var oe=$(t,L);return"cause"in t&&!N.call(t,"cause")?"{ ["+String(t)+"] "+C.call(B.call("[cause]: "+L(t.cause),oe),", ")+" }":0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(oe,", ")+" }"}if("object"==typeof t&&c){if(U&&"function"==typeof t[U])return t[U]();if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ie=[];return a.call(t,(function(e,n){ie.push(L(n,t,!0)+" => "+L(e,t))})),J("Map",i.call(t),ie,F)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ae=[];return A.call(t,(function(e){ae.push(L(e,t))})),J("Set",u.call(t),ae,F)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return V("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{l.call(e,l)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return V("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return V("WeakRef");if(function(e){return!("[object Number]"!==H(e)||O&&"object"==typeof e&&O in e)}(t))return z(L(Number(t)));if(function(e){if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}(t))return z(L(x.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||O&&"object"==typeof e&&O in e)}(t))return z(p.call(t));if(function(e){return!("[object String]"!==H(e)||O&&"object"==typeof e&&O in e)}(t))return z(L(String(t)));if(!function(e){return!("[object Date]"!==H(e)||O&&"object"==typeof e&&O in e)}(t)&&!function(e){return!("[object RegExp]"!==H(e)||O&&"object"==typeof e&&O in e)}(t)){var se=$(t,L),ce=k?k(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",Ae=!ce&&O&&Object(t)===t&&O in t?m.call(H(t),8,-1):ue?"Object":"",le=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(Ae||ue?"["+C.call(B.call([],Ae||[],ue||[]),": ")+"] ":"");return 0===se.length?le+"{}":F?le+"{"+W(se,F)+"}":le+"{ "+C.call(se,", ")+" }"}return String(t)};var L=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return L.call(e,t)}function H(e){return d.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(m.call(e,0,t.maxStringLength),t)+r}return R(I.call(I.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function z(e){return"Object("+e+")"}function V(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?W(n,r):C.call(n,", "))+"}"}function W(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+C.call(e,","+n)+"\n"+t.prev}function $(e,t){var n=M(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=G(e,o)?t(e[o],e):""}var i,a="function"==typeof _?_(e):[];if(T){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)G(e,c)&&(n&&String(Number(c))===c&&c<e.length||T&&i["$"+c]instanceof Symbol||(E.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof _)for(var u=0;u<a.length;u++)N.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},55798:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},80129:function(e,t,n){"use strict";var r=n(58261),o=n(55235),i=n(55798);e.exports={formats:i,parse:o,stringify:r}},55235:function(e,t,n){"use strict";var r=n(12769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,A=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;A.push(u)}for(var l=0;n.depth>0&&null!==(s=a.exec(i))&&l<n.depth;){if(l+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;A.push(s[1])}return s&&A.push("["+i.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:c(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,A=parseInt(u,10);n.parseArrays||""!==u?!isNaN(A)&&s!==u&&String(A)===u&&A>=0&&n.parseArrays&&A<=n.arrayLimit?(a=[])[A]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(A,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var A="string"==typeof e?function(e,t){var n,u={},A=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,f=A.split(t.delimiter,l),h=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?p="utf-8":"utf8=%26%2310003%3B"===f[n]&&(p="iso-8859-1"),h=n,n=f.length);for(n=0;n<f.length;++n)if(n!==h){var d,g,y=f[n],m=y.indexOf("]="),I=-1===m?y.indexOf("="):m+1;-1===I?(d=t.decoder(y,a.decoder,p,"key"),g=t.strictNullHandling?null:""):(d=t.decoder(y.slice(0,I),a.decoder,p,"key"),g=r.maybeMap(c(y.slice(I+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=s(g)),y.indexOf("[]=")>-1&&(g=i(g)?[g]:g),o.call(u,d)?u[d]=r.combine(u[d],g):u[d]=g}return u}(e,n):e,l=n.plainObjects?Object.create(null):{},f=Object.keys(A),h=0;h<f.length;++h){var p=f[h],d=u(p,A[p],n,"string"==typeof e);l=r.merge(l,d,n)}return!0===n.allowSparse?l:r.compact(l)}},58261:function(e,t,n){"use strict";var r=n(37478),o=n(12769),i=n(55798),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=String.prototype.split,A=Array.prototype.push,l=function(e,t){A.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,h=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},g=function e(t,n,i,a,s,A,f,h,g,y,m,I,v,w,E){for(var B,C=t,b=E,Q=0,x=!1;void 0!==(b=b.get(d))&&!x;){var _=b.get(t);if(Q+=1,void 0!==_){if(_===Q)throw new RangeError("Cyclic object value");x=!0}void 0===b.get(d)&&(Q=0)}if("function"==typeof f?C=f(n,C):C instanceof Date?C=y(C):"comma"===i&&c(C)&&(C=o.maybeMap(C,(function(e){return e instanceof Date?y(e):e}))),null===C){if(a)return A&&!v?A(n,p.encoder,w,"key",m):n;C=""}if("string"==typeof(B=C)||"number"==typeof B||"boolean"==typeof B||"symbol"==typeof B||"bigint"==typeof B||o.isBuffer(C)){if(A){var S=v?n:A(n,p.encoder,w,"key",m);if("comma"===i&&v){for(var T=u.call(String(C),","),O="",N=0;N<T.length;++N)O+=(0===N?"":",")+I(A(T[N],p.encoder,w,"value",m));return[I(S)+"="+O]}return[I(S)+"="+I(A(C,p.encoder,w,"value",m))]}return[I(n)+"="+I(String(C))]}var k,D=[];if(void 0===C)return D;if("comma"===i&&c(C))k=[{value:C.length>0?C.join(",")||null:void 0}];else if(c(f))k=f;else{var F=Object.keys(C);k=h?F.sort(h):F}for(var U=0;U<k.length;++U){var R=k[U],P="object"==typeof R&&void 0!==R.value?R.value:C[R];if(!s||null!==P){var M=c(C)?"function"==typeof i?i(n,R):n:n+(g?"."+R:"["+R+"]");E.set(t,Q);var j=r();j.set(d,E),l(D,e(P,M,i,a,s,A,f,h,g,y,m,I,v,w,j))}}return D};e.exports=function(e,t){var n,o=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=p.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?o=(0,u.filter)("",o):c(u.filter)&&(n=u.filter);var A,f=[];if("object"!=typeof o||null===o)return"";A=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[A];n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var d=r(),y=0;y<n.length;++y){var m=n[y];u.skipNulls&&null===o[m]||l(f,g(o[m],m,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,d))}var I=f.join(u.delimiter),v=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),I.length>0?v+I:""}},12769:function(e,t,n){"use strict";var r=n(55798),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],A=a[u];"object"==typeof A&&null!==A&&-1===n.indexOf(A)&&(t.push({obj:a,prop:u}),n.push(A))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;++u){var A=s.charCodeAt(u);45===A||46===A||95===A||126===A||A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||i===r.RFC1738&&(40===A||41===A)?c+=s.charAt(u):A<128?c+=a[A]:A<2048?c+=a[192|A>>6]+a[128|63&A]:A<55296||A>=57344?c+=a[224|A>>12]+a[128|A>>6&63]+a[128|63&A]:(u+=1,A=65536+((1023&A)<<10|1023&s.charCodeAt(u)),c+=a[240|A>>18]+a[128|A>>12&63]+a[128|A>>6&63]+a[128|63&A])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},62587:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,o){n=n||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(n);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var A,l,f,h,p=e[u].replace(a,"%20"),d=p.indexOf(r);d>=0?(A=p.substr(0,d),l=p.substr(d+1)):(A=p,l=""),f=decodeURIComponent(A),h=decodeURIComponent(l),t(i,f)?Array.isArray(i[f])?i[f].push(h):i[f]=[i[f],h]:i[f]=h}return i}},12361:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,o){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var i=encodeURIComponent(t(o))+r;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(t(e))})).join(n):i+encodeURIComponent(t(e[o]))})).join(n):o?encodeURIComponent(t(o))+r+encodeURIComponent(t(e)):""}},17673:function(e,t,n){"use strict";t.decode=t.parse=n(62587),t.encode=t.stringify=n(12361)},35666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=A(e,t,n);if("normal"===c.type){if(r=n.done?p:f,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function A(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l="suspendedStart",f="suspendedYield",h="executing",p="completed",d={};function g(){}function y(){}function m(){}var I={};c(I,i,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(S([])));w&&w!==n&&r.call(w,i)&&(I=w);var E=m.prototype=g.prototype=Object.create(I);function B(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var c=A(e[o],e,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function b(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,b(e,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=A(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function Q(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Q,this),this.reset(!0)}function S(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return y.prototype=m,c(E,"constructor",m),c(m,"constructor",y),y.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},B(C.prototype),c(C.prototype,a,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},B(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:S(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6636:function(e,t){"use strict";function n(e){if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++)t.push(n(e[r]));const r=f(...t);return f(i(r.length,192),r)}const t=g(e);return 1===t.length&&t[0]<128?t:f(i(t.length,128),t)}function r(e,t,n){if(n>e.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,n)}function o(e){if(0===e[0])throw new Error("invalid RLP: extra zeros");return A(u(e))}function i(e,t){if(e<56)return Uint8Array.from([e+t]);const n=p(e),r=p(t+55+n.length/2);return Uint8Array.from(l(r+n))}function a(e,t=!1){if(!e||0===e.length)return Uint8Array.from([]);const n=s(g(e));if(t)return n;if(0!==n.remainder.length)throw new Error("invalid RLP: remainder must be zero");return n.data}function s(e){let t,n,i,a,c;const u=[],A=e[0];if(A<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(A<=183){if(t=A-127,i=128===A?Uint8Array.from([]):r(e,1,t),2===t&&i[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:i,remainder:e.slice(t)}}if(A<=191){if(n=A-182,e.length-1<n)throw new Error("invalid RLP: not enough bytes for string length");if(t=o(r(e,1,n)),t<=55)throw new Error("invalid RLP: expected string length to be greater than 55");return i=r(e,n,t+n),{data:i,remainder:e.slice(t+n)}}if(A<=247){for(t=A-191,a=r(e,1,t);a.length;)c=s(a),u.push(c.data),a=c.remainder;return{data:u,remainder:e.slice(t)}}{if(n=A-246,t=o(r(e,1,n)),t<56)throw new Error("invalid RLP: encoded list too short");const i=n+t;if(i>e.length)throw new Error("invalid RLP: total length is larger than the data");for(a=r(e,n,i);a.length;)c=s(a),u.push(c.data),a=c.remainder;return{data:u,remainder:e.slice(i)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.decode=t.encode=void 0,t.encode=n,t.decode=a;const c=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function u(e){let t="";for(let n=0;n<e.length;n++)t+=c[e[n]];return t}function A(e){const t=Number.parseInt(e,16);if(Number.isNaN(t))throw new Error("Invalid byte sequence");return t}function l(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let n=0;n<t.length;n++){const r=2*n;t[n]=A(e.slice(r,r+2))}return t}function f(...e){if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const o=e[t];n.set(o,r),r+=o.length}return n}function h(e){return(new TextEncoder).encode(e)}function p(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");const t=e.toString(16);return t.length%2?`0${t}`:t}function d(e){return e.length>=2&&"0"===e[0]&&"x"===e[1]}function g(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return d(e)?l((t="string"!=typeof(n=e)?n:d(n)?n.slice(2):n).length%2?`0${t}`:t):h(e);var t,n;if("number"==typeof e||"bigint"==typeof e)return e?l(p(e)):Uint8Array.from([]);if(null==e)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}t.utils={bytesToHex:u,concatBytes:f,hexToBytes:l,utf8ToBytes:h};const y={encode:n,decode:a};t.default=y},89509:function(e,t,n){var r=n(48764),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},24189:function(e,t,n){var r=n(89509).Buffer;function o(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,o=this._blockSize,i=e.length,a=this._len,s=0;s<i;){for(var c=a%o,u=Math.min(i-s,o-c),A=0;A<u;A++)n[c+A]=e[s+A];s+=u,(a+=u)%o==0&&this._update(n)}return this._len+=i,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},89072:function(e,t,n){var r=e.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=n(74448),r.sha1=n(18336),r.sha224=n(48432),r.sha256=n(67499),r.sha384=n(51686),r.sha512=n(87816)},74448:function(e,t,n){var r=n(35717),o=n(24189),i=n(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,o.call(this,64,56)}function u(e){return e<<30|e>>>2}function A(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,l=0;l<16;++l)n[l]=e.readInt32BE(4*l);for(;l<80;++l)n[l]=n[l-3]^n[l-8]^n[l-14]^n[l-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=r)<<5|t>>>27)+A(h,o,i,s)+c+n[f]+a[h];c=s,s=i,i=u(o),o=r,r=p}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.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=c},18336:function(e,t,n){var r=n(35717),o=n(24189),i=n(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,o.call(this,64,56)}function u(e){return e<<5|e>>>27}function A(e){return e<<30|e>>>2}function l(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=(t=n[f-3]^n[f-8]^n[f-14]^n[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),d=u(r)+l(p,o,i,s)+c+n[h]+a[p]|0;c=s,s=i,i=A(o),o=r,r=d}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.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=c},48432:function(e,t,n){var r=n(35717),o=n(67499),i=n(24189),a=n(89509).Buffer,s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}r(c,o),c.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},c.prototype._hash=function(){var e=a.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=c},67499:function(e,t,n){var r=n(35717),o=n(24189),i=n(89509).Buffer,a=[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],s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}function u(e,t,n){return n^e&(t^n)}function A(e,t,n){return e&t|n&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,o),c.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},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,d=0|this._g,g=0|this._h,y=0;y<16;++y)n[y]=e.readInt32BE(4*y);for(;y<64;++y)n[y]=0|(((t=n[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[y-7]+h(n[y-15])+n[y-16];for(var m=0;m<64;++m){var I=g+f(c)+u(c,p,d)+a[m]+n[m]|0,v=l(r)+A(r,o,i)|0;g=d,d=p,p=c,c=s+I|0,s=i,i=o,o=r,r=I+v|0}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=d+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=i.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=c},51686:function(e,t,n){var r=n(35717),o=n(87816),i=n(24189),a=n(89509).Buffer,s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}r(c,o),c.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},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+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=c},87816:function(e,t,n){var r=n(35717),o=n(24189),i=n(89509).Buffer,a=[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],s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}function u(e,t,n){return n^e&(t^n)}function A(e,t,n){return e&t|n&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(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 d(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 y(e,t){return e>>>0<t>>>0?1:0}r(c,o),c.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},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,i=0|this._dh,s=0|this._eh,c=0|this._fh,m=0|this._gh,I=0|this._hh,v=0|this._al,w=0|this._bl,E=0|this._cl,B=0|this._dl,C=0|this._el,b=0|this._fl,Q=0|this._gl,x=0|this._hl,_=0;_<32;_+=2)t[_]=e.readInt32BE(4*_),t[_+1]=e.readInt32BE(4*_+4);for(;_<160;_+=2){var S=t[_-30],T=t[_-30+1],O=h(S,T),N=p(T,S),k=d(S=t[_-4],T=t[_-4+1]),D=g(T,S),F=t[_-14],U=t[_-14+1],R=t[_-32],P=t[_-32+1],M=N+U|0,j=O+F+y(M,N)|0;j=(j=j+k+y(M=M+D|0,D)|0)+R+y(M=M+P|0,P)|0,t[_]=j,t[_+1]=M}for(var L=0;L<160;L+=2){j=t[L],M=t[L+1];var G=A(n,r,o),H=A(v,w,E),q=l(n,v),Y=l(v,n),K=f(s,C),z=f(C,s),V=a[L],J=a[L+1],W=u(s,c,m),$=u(C,b,Q),X=x+z|0,Z=I+K+y(X,x)|0;Z=(Z=(Z=Z+W+y(X=X+$|0,$)|0)+V+y(X=X+J|0,J)|0)+j+y(X=X+M|0,M)|0;var ee=Y+H|0,te=q+G+y(ee,Y)|0;I=m,x=Q,m=c,Q=b,c=s,b=C,s=i+Z+y(C=B+X|0,B)|0,i=o,B=E,o=r,E=w,r=n,w=v,n=Z+te+y(v=X+ee|0,X)|0}this._al=this._al+v|0,this._bl=this._bl+w|0,this._cl=this._cl+E|0,this._dl=this._dl+B|0,this._el=this._el+C|0,this._fl=this._fl+b|0,this._gl=this._gl+Q|0,this._hl=this._hl+x|0,this._ah=this._ah+n+y(this._al,v)|0,this._bh=this._bh+r+y(this._bl,w)|0,this._ch=this._ch+o+y(this._cl,E)|0,this._dh=this._dh+i+y(this._dl,B)|0,this._eh=this._eh+s+y(this._el,C)|0,this._fh=this._fh+c+y(this._fl,b)|0,this._gh=this._gh+m+y(this._gl,Q)|0,this._hh=this._hh+I+y(this._hl,x)|0},c.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+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=c},37478:function(e,t,n){"use strict";var r=n(40210),o=n(21924),i=n(70631),a=r("%TypeError%"),s=r("%WeakMap%",!0),c=r("%Map%",!0),u=o("WeakMap.prototype.get",!0),A=o("WeakMap.prototype.set",!0),l=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),p=o("Map.prototype.has",!0),d=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return u(e,r)}else if(c){if(t)return f(t,r)}else if(n)return function(e,t){var n=d(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(c){if(t)return p(t,r)}else if(n)return function(e,t){return!!d(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),A(e,r,o)):c?(t||(t=new c),h(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=d(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},13692:function(e){var t=e.exports=function(e){return new n(e)};function n(e){this.value=e}function r(e,t,n){var r=[],a=[],A=!0;return function e(l){var f=n?o(l):l,h={},p=!0,d={node:f,node_:l,path:[].concat(r),parent:a[a.length-1],parents:a,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){d.isRoot||(d.parent.node[d.key]=e),d.node=e,t&&(p=!1)},delete:function(e){delete d.parent.node[d.key],e&&(p=!1)},remove:function(e){s(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],e&&(p=!1)},keys:null,before:function(e){h.before=e},after:function(e){h.after=e},pre:function(e){h.pre=e},post:function(e){h.post=e},stop:function(){A=!1},block:function(){p=!1}};if(!A)return d;function g(){if("object"==typeof d.node&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=i(d.node)),d.isLeaf=0==d.keys.length;for(var e=0;e<a.length;e++)if(a[e].node_===l){d.circular=a[e];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}g();var y=t.call(d,d.node);return void 0!==y&&d.update&&d.update(y),h.before&&h.before.call(d,d.node),p?("object"!=typeof d.node||null===d.node||d.circular||(a.push(d),g(),c(d.keys,(function(t,o){r.push(t),h.pre&&h.pre.call(d,d.node[t],t);var i=e(d.node[t]);n&&u.call(d.node,t)&&(d.node[t]=i.node),i.isLast=o==d.keys.length-1,i.isFirst=0==o,h.post&&h.post.call(d,i),r.pop()})),a.pop()),h.after&&h.after.call(d,d.node),d):d}(e).node}function o(e){if("object"==typeof e&&null!==e){var t;if(s(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if("[object RegExp]"===a(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return c(i(e),(function(n){t[n]=e[n]})),t}return e}n.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},n.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},n.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},n.prototype.map=function(e){return r(this.value,e,!0)},n.prototype.forEach=function(e){return this.value=r(this.value,e,!1),this.value},n.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},n.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},n.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},n.prototype.clone=function(){var e=[],t=[];return function n(r){for(var a=0;a<e.length;a++)if(e[a]===r)return t[a];if("object"==typeof r&&null!==r){var s=o(r);return e.push(r),t.push(s),c(i(r),(function(e){s[e]=n(r[e])})),e.pop(),t.pop(),s}return r}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},c=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};c(i(n.prototype),(function(e){t[e]=function(t){var r=[].slice.call(arguments,1),o=new n(t);return o[e].apply(o,r)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},82182:function(e,t,n){!function(t,r){"use strict";e.exports?e.exports=r(n(50780)):t.nacl.auth=r(t.nacl)}(this,(function(e){"use strict";if(!e)throw new Error("tweetnacl not loaded");var t=128;function n(n,r){var o,i,a=new Uint8Array(t+Math.max(64,n.length));for(r.length>t&&(r=e.hash(r)),o=0;o<t;o++)a[o]=54;for(o=0;o<r.length;o++)a[o]^=r[o];for(a.set(n,t),i=e.hash(a.subarray(0,t+n.length)),o=0;o<t;o++)a[o]=92;for(o=0;o<r.length;o++)a[o]^=r[o];return a.set(i,t),e.hash(a.subarray(0,t+i.length))}function r(e,t){var r=new Uint8Array(32);return r.set(n(e,t).subarray(0,32)),r}return r.full=function(e,t){return n(e,t)},r.authLength=32,r.authFullLength=64,r.keyLength=32,r}))},50780:function(e,t,n){!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw new Error("no PRNG")},o=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var a=t(),s=t([1]),c=t([56129,1]),u=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),A=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),l=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function d(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function g(e,t,n,r){return d(e,t,n,r,16)}function y(e,t,n,r){return d(e,t,n,r,32)}function m(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,A=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,l=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,d=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,m=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,I=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,v=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=i,E=a,B=s,C=c,b=u,Q=A,x=l,_=f,S=h,T=p,O=d,N=g,k=y,D=m,F=I,U=v,R=0;R<20;R+=2)w^=(o=(k^=(o=(S^=(o=(b^=(o=w+k|0)<<7|o>>>25)+w|0)<<9|o>>>23)+b|0)<<13|o>>>19)+S|0)<<18|o>>>14,Q^=(o=(E^=(o=(D^=(o=(T^=(o=Q+E|0)<<7|o>>>25)+Q|0)<<9|o>>>23)+T|0)<<13|o>>>19)+D|0)<<18|o>>>14,O^=(o=(x^=(o=(B^=(o=(F^=(o=O+x|0)<<7|o>>>25)+O|0)<<9|o>>>23)+F|0)<<13|o>>>19)+B|0)<<18|o>>>14,U^=(o=(N^=(o=(_^=(o=(C^=(o=U+N|0)<<7|o>>>25)+U|0)<<9|o>>>23)+C|0)<<13|o>>>19)+_|0)<<18|o>>>14,w^=(o=(C^=(o=(B^=(o=(E^=(o=w+C|0)<<7|o>>>25)+w|0)<<9|o>>>23)+E|0)<<13|o>>>19)+B|0)<<18|o>>>14,Q^=(o=(b^=(o=(_^=(o=(x^=(o=Q+b|0)<<7|o>>>25)+Q|0)<<9|o>>>23)+x|0)<<13|o>>>19)+_|0)<<18|o>>>14,O^=(o=(T^=(o=(S^=(o=(N^=(o=O+T|0)<<7|o>>>25)+O|0)<<9|o>>>23)+N|0)<<13|o>>>19)+S|0)<<18|o>>>14,U^=(o=(F^=(o=(D^=(o=(k^=(o=U+F|0)<<7|o>>>25)+U|0)<<9|o>>>23)+k|0)<<13|o>>>19)+D|0)<<18|o>>>14;w=w+i|0,E=E+a|0,B=B+s|0,C=C+c|0,b=b+u|0,Q=Q+A|0,x=x+l|0,_=_+f|0,S=S+h|0,T=T+p|0,O=O+d|0,N=N+g|0,k=k+y|0,D=D+m|0,F=F+I|0,U=U+v|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=E>>>0&255,e[5]=E>>>8&255,e[6]=E>>>16&255,e[7]=E>>>24&255,e[8]=B>>>0&255,e[9]=B>>>8&255,e[10]=B>>>16&255,e[11]=B>>>24&255,e[12]=C>>>0&255,e[13]=C>>>8&255,e[14]=C>>>16&255,e[15]=C>>>24&255,e[16]=b>>>0&255,e[17]=b>>>8&255,e[18]=b>>>16&255,e[19]=b>>>24&255,e[20]=Q>>>0&255,e[21]=Q>>>8&255,e[22]=Q>>>16&255,e[23]=Q>>>24&255,e[24]=x>>>0&255,e[25]=x>>>8&255,e[26]=x>>>16&255,e[27]=x>>>24&255,e[28]=_>>>0&255,e[29]=_>>>8&255,e[30]=_>>>16&255,e[31]=_>>>24&255,e[32]=S>>>0&255,e[33]=S>>>8&255,e[34]=S>>>16&255,e[35]=S>>>24&255,e[36]=T>>>0&255,e[37]=T>>>8&255,e[38]=T>>>16&255,e[39]=T>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=N>>>0&255,e[45]=N>>>8&255,e[46]=N>>>16&255,e[47]=N>>>24&255,e[48]=k>>>0&255,e[49]=k>>>8&255,e[50]=k>>>16&255,e[51]=k>>>24&255,e[52]=D>>>0&255,e[53]=D>>>8&255,e[54]=D>>>16&255,e[55]=D>>>24&255,e[56]=F>>>0&255,e[57]=F>>>8&255,e[58]=F>>>16&255,e[59]=F>>>24&255,e[60]=U>>>0&255,e[61]=U>>>8&255,e[62]=U>>>16&255,e[63]=U>>>24&255}(e,t,n,r)}function I(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,A=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,l=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,d=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,m=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,I=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,v=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=0;w<20;w+=2)i^=(o=(y^=(o=(h^=(o=(u^=(o=i+y|0)<<7|o>>>25)+i|0)<<9|o>>>23)+u|0)<<13|o>>>19)+h|0)<<18|o>>>14,A^=(o=(a^=(o=(m^=(o=(p^=(o=A+a|0)<<7|o>>>25)+A|0)<<9|o>>>23)+p|0)<<13|o>>>19)+m|0)<<18|o>>>14,d^=(o=(l^=(o=(s^=(o=(I^=(o=d+l|0)<<7|o>>>25)+d|0)<<9|o>>>23)+I|0)<<13|o>>>19)+s|0)<<18|o>>>14,v^=(o=(g^=(o=(f^=(o=(c^=(o=v+g|0)<<7|o>>>25)+v|0)<<9|o>>>23)+c|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(c^=(o=(s^=(o=(a^=(o=i+c|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,A^=(o=(u^=(o=(f^=(o=(l^=(o=A+u|0)<<7|o>>>25)+A|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,d^=(o=(p^=(o=(h^=(o=(g^=(o=d+p|0)<<7|o>>>25)+d|0)<<9|o>>>23)+g|0)<<13|o>>>19)+h|0)<<18|o>>>14,v^=(o=(I^=(o=(m^=(o=(y^=(o=v+I|0)<<7|o>>>25)+v|0)<<9|o>>>23)+y|0)<<13|o>>>19)+m|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=A>>>0&255,e[5]=A>>>8&255,e[6]=A>>>16&255,e[7]=A>>>24&255,e[8]=d>>>0&255,e[9]=d>>>8&255,e[10]=d>>>16&255,e[11]=d>>>24&255,e[12]=v>>>0&255,e[13]=v>>>8&255,e[14]=v>>>16&255,e[15]=v>>>24&255,e[16]=l>>>0&255,e[17]=l>>>8&255,e[18]=l>>>16&255,e[19]=l>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,n,r)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,o,i,a){var s,c,u=new Uint8Array(16),A=new Uint8Array(64);for(c=0;c<16;c++)u[c]=0;for(c=0;c<8;c++)u[c]=i[c];for(;o>=64;){for(m(A,u,a,v),c=0;c<64;c++)e[t+c]=n[r+c]^A[c];for(s=1,c=8;c<16;c++)s=s+(255&u[c])|0,u[c]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(m(A,u,a,v),c=0;c<o;c++)e[t+c]=n[r+c]^A[c];return 0}function E(e,t,n,r,o){var i,a,s=new Uint8Array(16),c=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(m(c,s,o,v),a=0;a<64;a++)e[t+a]=c[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(m(c,s,o,v),a=0;a<n;a++)e[t+a]=c[a];return 0}function B(e,t,n,r,o){var i=new Uint8Array(32);I(i,r,o,v);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return E(e,t,n,a,i)}function C(e,t,n,r,o,i,a){var s=new Uint8Array(32);I(s,i,a,v);for(var c=new Uint8Array(8),u=0;u<8;u++)c[u]=i[u+16];return w(e,t,n,r,o,c,s)}var b=function(e){var t,n,r,o,i,a,s,c;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function Q(e,t,n,r,o,i){var a=new b(i);return a.update(n,r,o),a.finish(e,t),0}function x(e,t,n,r,o,i){var a=new Uint8Array(16);return Q(a,0,n,r,o,i),g(e,t,a,0)}function _(e,t,n,r,o){var i;if(n<32)return-1;for(C(e,0,t,0,n,r,o),Q(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function S(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(B(a,0,32,r,o),0!==x(t,16,t,32,n-32,a))return-1;for(C(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function T(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function O(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function N(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function k(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(O(s),O(s),O(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,N(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function D(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return k(n,e),k(r,t),y(n,0,r,0)}function F(e){var t=new Uint8Array(32);return k(t,e),1&t[0]}function U(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function R(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function P(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function M(e,t,n){var r,o,i=0,a=0,s=0,c=0,u=0,A=0,l=0,f=0,h=0,p=0,d=0,g=0,y=0,m=0,I=0,v=0,w=0,E=0,B=0,C=0,b=0,Q=0,x=0,_=0,S=0,T=0,O=0,N=0,k=0,D=0,F=0,U=n[0],R=n[1],P=n[2],M=n[3],j=n[4],L=n[5],G=n[6],H=n[7],q=n[8],Y=n[9],K=n[10],z=n[11],V=n[12],J=n[13],W=n[14],$=n[15];i+=(r=t[0])*U,a+=r*R,s+=r*P,c+=r*M,u+=r*j,A+=r*L,l+=r*G,f+=r*H,h+=r*q,p+=r*Y,d+=r*K,g+=r*z,y+=r*V,m+=r*J,I+=r*W,v+=r*$,a+=(r=t[1])*U,s+=r*R,c+=r*P,u+=r*M,A+=r*j,l+=r*L,f+=r*G,h+=r*H,p+=r*q,d+=r*Y,g+=r*K,y+=r*z,m+=r*V,I+=r*J,v+=r*W,w+=r*$,s+=(r=t[2])*U,c+=r*R,u+=r*P,A+=r*M,l+=r*j,f+=r*L,h+=r*G,p+=r*H,d+=r*q,g+=r*Y,y+=r*K,m+=r*z,I+=r*V,v+=r*J,w+=r*W,E+=r*$,c+=(r=t[3])*U,u+=r*R,A+=r*P,l+=r*M,f+=r*j,h+=r*L,p+=r*G,d+=r*H,g+=r*q,y+=r*Y,m+=r*K,I+=r*z,v+=r*V,w+=r*J,E+=r*W,B+=r*$,u+=(r=t[4])*U,A+=r*R,l+=r*P,f+=r*M,h+=r*j,p+=r*L,d+=r*G,g+=r*H,y+=r*q,m+=r*Y,I+=r*K,v+=r*z,w+=r*V,E+=r*J,B+=r*W,C+=r*$,A+=(r=t[5])*U,l+=r*R,f+=r*P,h+=r*M,p+=r*j,d+=r*L,g+=r*G,y+=r*H,m+=r*q,I+=r*Y,v+=r*K,w+=r*z,E+=r*V,B+=r*J,C+=r*W,b+=r*$,l+=(r=t[6])*U,f+=r*R,h+=r*P,p+=r*M,d+=r*j,g+=r*L,y+=r*G,m+=r*H,I+=r*q,v+=r*Y,w+=r*K,E+=r*z,B+=r*V,C+=r*J,b+=r*W,Q+=r*$,f+=(r=t[7])*U,h+=r*R,p+=r*P,d+=r*M,g+=r*j,y+=r*L,m+=r*G,I+=r*H,v+=r*q,w+=r*Y,E+=r*K,B+=r*z,C+=r*V,b+=r*J,Q+=r*W,x+=r*$,h+=(r=t[8])*U,p+=r*R,d+=r*P,g+=r*M,y+=r*j,m+=r*L,I+=r*G,v+=r*H,w+=r*q,E+=r*Y,B+=r*K,C+=r*z,b+=r*V,Q+=r*J,x+=r*W,_+=r*$,p+=(r=t[9])*U,d+=r*R,g+=r*P,y+=r*M,m+=r*j,I+=r*L,v+=r*G,w+=r*H,E+=r*q,B+=r*Y,C+=r*K,b+=r*z,Q+=r*V,x+=r*J,_+=r*W,S+=r*$,d+=(r=t[10])*U,g+=r*R,y+=r*P,m+=r*M,I+=r*j,v+=r*L,w+=r*G,E+=r*H,B+=r*q,C+=r*Y,b+=r*K,Q+=r*z,x+=r*V,_+=r*J,S+=r*W,T+=r*$,g+=(r=t[11])*U,y+=r*R,m+=r*P,I+=r*M,v+=r*j,w+=r*L,E+=r*G,B+=r*H,C+=r*q,b+=r*Y,Q+=r*K,x+=r*z,_+=r*V,S+=r*J,T+=r*W,O+=r*$,y+=(r=t[12])*U,m+=r*R,I+=r*P,v+=r*M,w+=r*j,E+=r*L,B+=r*G,C+=r*H,b+=r*q,Q+=r*Y,x+=r*K,_+=r*z,S+=r*V,T+=r*J,O+=r*W,N+=r*$,m+=(r=t[13])*U,I+=r*R,v+=r*P,w+=r*M,E+=r*j,B+=r*L,C+=r*G,b+=r*H,Q+=r*q,x+=r*Y,_+=r*K,S+=r*z,T+=r*V,O+=r*J,N+=r*W,k+=r*$,I+=(r=t[14])*U,v+=r*R,w+=r*P,E+=r*M,B+=r*j,C+=r*L,b+=r*G,Q+=r*H,x+=r*q,_+=r*Y,S+=r*K,T+=r*z,O+=r*V,N+=r*J,k+=r*W,D+=r*$,v+=(r=t[15])*U,a+=38*(E+=r*P),s+=38*(B+=r*M),c+=38*(C+=r*j),u+=38*(b+=r*L),A+=38*(Q+=r*G),l+=38*(x+=r*H),f+=38*(_+=r*q),h+=38*(S+=r*Y),p+=38*(T+=r*K),d+=38*(O+=r*z),g+=38*(N+=r*V),y+=38*(k+=r*J),m+=38*(D+=r*W),I+=38*(F+=r*$),i=(r=(i+=38*(w+=r*R))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),A=(r=A+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),I=(r=I+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),A=(r=A+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),I=(r=I+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=c,e[4]=u,e[5]=A,e[6]=l,e[7]=f,e[8]=h,e[9]=p,e[10]=d,e[11]=g,e[12]=y,e[13]=m,e[14]=I,e[15]=v}function j(e,t){M(e,t,t)}function L(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)j(o,o),2!==r&&4!==r&&M(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function G(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)j(o,o),1!==r&&M(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function H(e,n,r){var o,i,a=new Uint8Array(32),s=new Float64Array(80),u=t(),A=t(),l=t(),f=t(),h=t(),p=t();for(i=0;i<31;i++)a[i]=n[i];for(a[31]=127&n[31]|64,a[0]&=248,U(s,r),i=0;i<16;i++)A[i]=s[i],f[i]=u[i]=l[i]=0;for(u[0]=f[0]=1,i=254;i>=0;--i)N(u,A,o=a[i>>>3]>>>(7&i)&1),N(l,f,o),R(h,u,l),P(u,u,l),R(l,A,f),P(A,A,f),j(f,h),j(p,u),M(u,l,u),M(l,A,h),R(h,u,l),P(u,u,l),j(A,u),P(l,f,p),M(u,l,c),R(u,u,f),M(l,l,u),M(u,f,p),M(f,A,s),j(A,h),N(u,A,o),N(l,f,o);for(i=0;i<16;i++)s[i+16]=u[i],s[i+32]=l[i],s[i+48]=A[i],s[i+64]=f[i];var d=s.subarray(32),g=s.subarray(16);return L(d,d),M(g,g,d),k(e,g),0}function q(e,t){return H(e,t,i)}function Y(e,t){return r(t,32),q(e,t)}function K(e,t,n){var r=new Uint8Array(32);return H(r,n,t),I(e,o,r,v)}b.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,c,u,A,l,f,h,p,d,g,y,m,I,v,w,E=this.fin?0:2048,B=this.h[0],C=this.h[1],b=this.h[2],Q=this.h[3],x=this.h[4],_=this.h[5],S=this.h[6],T=this.h[7],O=this.h[8],N=this.h[9],k=this.r[0],D=this.r[1],F=this.r[2],U=this.r[3],R=this.r[4],P=this.r[5],M=this.r[6],j=this.r[7],L=this.r[8],G=this.r[9];n>=16;)f=l=0,f+=(B+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*k,f+=(C+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*G),f+=(b+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*L),f+=(Q+=8191&(i>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*j),l=(f+=(x+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*M))>>>13,f&=8191,f+=(_+=s>>>1&8191)*(5*P),f+=(S+=8191&(s>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*R),f+=(T+=8191&(c>>>11|(u=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*U),f+=(O+=8191&(u>>>8|(A=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*F),h=l+=(f+=(N+=A>>>5|E)*(5*D))>>>13,h+=B*D,h+=C*k,h+=b*(5*G),h+=Q*(5*L),l=(h+=x*(5*j))>>>13,h&=8191,h+=_*(5*M),h+=S*(5*P),h+=T*(5*R),h+=O*(5*U),l+=(h+=N*(5*F))>>>13,h&=8191,p=l,p+=B*F,p+=C*D,p+=b*k,p+=Q*(5*G),l=(p+=x*(5*L))>>>13,p&=8191,p+=_*(5*j),p+=S*(5*M),p+=T*(5*P),p+=O*(5*R),d=l+=(p+=N*(5*U))>>>13,d+=B*U,d+=C*F,d+=b*D,d+=Q*k,l=(d+=x*(5*G))>>>13,d&=8191,d+=_*(5*L),d+=S*(5*j),d+=T*(5*M),d+=O*(5*P),g=l+=(d+=N*(5*R))>>>13,g+=B*R,g+=C*U,g+=b*F,g+=Q*D,l=(g+=x*k)>>>13,g&=8191,g+=_*(5*G),g+=S*(5*L),g+=T*(5*j),g+=O*(5*M),y=l+=(g+=N*(5*P))>>>13,y+=B*P,y+=C*R,y+=b*U,y+=Q*F,l=(y+=x*D)>>>13,y&=8191,y+=_*k,y+=S*(5*G),y+=T*(5*L),y+=O*(5*j),m=l+=(y+=N*(5*M))>>>13,m+=B*M,m+=C*P,m+=b*R,m+=Q*U,l=(m+=x*F)>>>13,m&=8191,m+=_*D,m+=S*k,m+=T*(5*G),m+=O*(5*L),I=l+=(m+=N*(5*j))>>>13,I+=B*j,I+=C*M,I+=b*P,I+=Q*R,l=(I+=x*U)>>>13,I&=8191,I+=_*F,I+=S*D,I+=T*k,I+=O*(5*G),v=l+=(I+=N*(5*L))>>>13,v+=B*L,v+=C*j,v+=b*M,v+=Q*P,l=(v+=x*R)>>>13,v&=8191,v+=_*U,v+=S*F,v+=T*D,v+=O*k,w=l+=(v+=N*(5*G))>>>13,w+=B*G,w+=C*L,w+=b*j,w+=Q*M,l=(w+=x*P)>>>13,w&=8191,w+=_*R,w+=S*U,w+=T*F,w+=O*D,B=f=8191&(l=(l=((l+=(w+=N*k)>>>13)<<2)+l|0)+(f&=8191)|0),C=h+=l>>>=13,b=p&=8191,Q=d&=8191,x=g&=8191,_=y&=8191,S=m&=8191,T=I&=8191,O=v&=8191,N=w&=8191,t+=16,n-=16;this.h[0]=B,this.h[1]=C,this.h[2]=b,this.h[3]=Q,this.h[4]=x,this.h[5]=_,this.h[6]=S,this.h[7]=T,this.h[8]=O,this.h[9]=N},b.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},b.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var z=_,V=S,J=[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];function W(e,t,n,r){for(var o,i,a,s,c,u,A,l,f,h,p,d,g,y,m,I,v,w,E,B,C,b,Q,x,_,S,T=new Int32Array(16),O=new Int32Array(16),N=e[0],k=e[1],D=e[2],F=e[3],U=e[4],R=e[5],P=e[6],M=e[7],j=t[0],L=t[1],G=t[2],H=t[3],q=t[4],Y=t[5],K=t[6],z=t[7],V=0;r>=128;){for(E=0;E<16;E++)B=8*E+V,T[E]=n[B+0]<<24|n[B+1]<<16|n[B+2]<<8|n[B+3],O[E]=n[B+4]<<24|n[B+5]<<16|n[B+6]<<8|n[B+7];for(E=0;E<80;E++)if(o=N,i=k,a=D,s=F,c=U,u=R,A=P,f=j,h=L,p=G,d=H,g=q,y=Y,m=K,Q=65535&(b=z),x=b>>>16,_=65535&(C=M),S=C>>>16,Q+=65535&(b=(q>>>14|U<<18)^(q>>>18|U<<14)^(U>>>9|q<<23)),x+=b>>>16,_+=65535&(C=(U>>>14|q<<18)^(U>>>18|q<<14)^(q>>>9|U<<23)),S+=C>>>16,Q+=65535&(b=q&Y^~q&K),x+=b>>>16,_+=65535&(C=U&R^~U&P),S+=C>>>16,Q+=65535&(b=J[2*E+1]),x+=b>>>16,_+=65535&(C=J[2*E]),S+=C>>>16,C=T[E%16],x+=(b=O[E%16])>>>16,_+=65535&C,S+=C>>>16,_+=(x+=(Q+=65535&b)>>>16)>>>16,Q=65535&(b=w=65535&Q|x<<16),x=b>>>16,_=65535&(C=v=65535&_|(S+=_>>>16)<<16),S=C>>>16,Q+=65535&(b=(j>>>28|N<<4)^(N>>>2|j<<30)^(N>>>7|j<<25)),x+=b>>>16,_+=65535&(C=(N>>>28|j<<4)^(j>>>2|N<<30)^(j>>>7|N<<25)),S+=C>>>16,x+=(b=j&L^j&G^L&G)>>>16,_+=65535&(C=N&k^N&D^k&D),S+=C>>>16,l=65535&(_+=(x+=(Q+=65535&b)>>>16)>>>16)|(S+=_>>>16)<<16,I=65535&Q|x<<16,Q=65535&(b=d),x=b>>>16,_=65535&(C=s),S=C>>>16,x+=(b=w)>>>16,_+=65535&(C=v),S+=C>>>16,k=o,D=i,F=a,U=s=65535&(_+=(x+=(Q+=65535&b)>>>16)>>>16)|(S+=_>>>16)<<16,R=c,P=u,M=A,N=l,L=f,G=h,H=p,q=d=65535&Q|x<<16,Y=g,K=y,z=m,j=I,E%16==15)for(B=0;B<16;B++)C=T[B],Q=65535&(b=O[B]),x=b>>>16,_=65535&C,S=C>>>16,C=T[(B+9)%16],Q+=65535&(b=O[(B+9)%16]),x+=b>>>16,_+=65535&C,S+=C>>>16,v=T[(B+1)%16],Q+=65535&(b=((w=O[(B+1)%16])>>>1|v<<31)^(w>>>8|v<<24)^(w>>>7|v<<25)),x+=b>>>16,_+=65535&(C=(v>>>1|w<<31)^(v>>>8|w<<24)^v>>>7),S+=C>>>16,v=T[(B+14)%16],x+=(b=((w=O[(B+14)%16])>>>19|v<<13)^(v>>>29|w<<3)^(w>>>6|v<<26))>>>16,_+=65535&(C=(v>>>19|w<<13)^(w>>>29|v<<3)^v>>>6),S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,T[B]=65535&_|S<<16,O[B]=65535&Q|x<<16;Q=65535&(b=j),x=b>>>16,_=65535&(C=N),S=C>>>16,C=e[0],x+=(b=t[0])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[0]=N=65535&_|S<<16,t[0]=j=65535&Q|x<<16,Q=65535&(b=L),x=b>>>16,_=65535&(C=k),S=C>>>16,C=e[1],x+=(b=t[1])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[1]=k=65535&_|S<<16,t[1]=L=65535&Q|x<<16,Q=65535&(b=G),x=b>>>16,_=65535&(C=D),S=C>>>16,C=e[2],x+=(b=t[2])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[2]=D=65535&_|S<<16,t[2]=G=65535&Q|x<<16,Q=65535&(b=H),x=b>>>16,_=65535&(C=F),S=C>>>16,C=e[3],x+=(b=t[3])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[3]=F=65535&_|S<<16,t[3]=H=65535&Q|x<<16,Q=65535&(b=q),x=b>>>16,_=65535&(C=U),S=C>>>16,C=e[4],x+=(b=t[4])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[4]=U=65535&_|S<<16,t[4]=q=65535&Q|x<<16,Q=65535&(b=Y),x=b>>>16,_=65535&(C=R),S=C>>>16,C=e[5],x+=(b=t[5])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[5]=R=65535&_|S<<16,t[5]=Y=65535&Q|x<<16,Q=65535&(b=K),x=b>>>16,_=65535&(C=P),S=C>>>16,C=e[6],x+=(b=t[6])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[6]=P=65535&_|S<<16,t[6]=K=65535&Q|x<<16,Q=65535&(b=z),x=b>>>16,_=65535&(C=M),S=C>>>16,C=e[7],x+=(b=t[7])>>>16,_+=65535&C,S+=C>>>16,S+=(_+=(x+=(Q+=65535&b)>>>16)>>>16)>>>16,e[7]=M=65535&_|S<<16,t[7]=z=65535&Q|x<<16,V+=128,r-=128}return r}function $(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,W(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),W(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function X(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),c=t(),u=t(),l=t(),f=t();P(r,e[1],e[0]),P(f,n[1],n[0]),M(r,r,f),R(o,e[0],e[1]),R(f,n[0],n[1]),M(o,o,f),M(i,e[3],n[3]),M(i,i,A),M(a,e[2],n[2]),R(a,a,a),P(s,o,r),P(c,a,i),R(u,a,i),R(l,o,r),M(e[0],s,c),M(e[1],l,u),M(e[2],u,c),M(e[3],s,l)}function Z(e,t,n){var r;for(r=0;r<4;r++)N(e[r],t[r],n)}function ee(e,n){var r=t(),o=t(),i=t();L(i,n[2]),M(r,n[0],i),M(o,n[1],i),k(e,o),e[31]^=F(r)<<7}function te(e,t,n){var r,o;for(T(e[0],a),T(e[1],s),T(e[2],s),T(e[3],a),o=255;o>=0;--o)Z(e,t,r=n[o/8|0]>>(7&o)&1),X(t,e),X(e,e),Z(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];T(r[0],l),T(r[1],f),T(r[2],s),M(r[3],l,f),te(e,r,n)}function re(e,n,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||r(n,32),$(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,ne(s,a),ee(e,s),i=0;i<32;i++)n[i+32]=e[i];return 0}var oe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*oe[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*oe[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*oe[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ae(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,n)}function se(e,n,r,o){var i,a,s=new Uint8Array(64),c=new Uint8Array(64),u=new Uint8Array(64),A=new Float64Array(64),l=[t(),t(),t(),t()];$(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for($(u,e.subarray(32),r+32),ae(u),ne(l,u),ee(e,l),i=32;i<64;i++)e[i]=o[i];for($(c,e,r+64),ae(c),i=0;i<64;i++)A[i]=0;for(i=0;i<32;i++)A[i]=u[i];for(i=0;i<32;i++)for(a=0;a<32;a++)A[i+a]+=c[i]*s[a];return ie(e.subarray(32),A),f}function ce(e,n,r,o){var i,c=new Uint8Array(32),A=new Uint8Array(64),l=[t(),t(),t(),t()],f=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),i=t(),c=t(),A=t(),l=t(),f=t();return T(e[2],s),U(e[1],n),j(i,e[1]),M(c,i,u),P(i,i,e[2]),R(c,e[2],c),j(A,c),j(l,A),M(f,l,A),M(r,f,i),M(r,r,c),G(r,r),M(r,r,i),M(r,r,c),M(r,r,c),M(e[0],r,c),j(o,e[0]),M(o,o,c),D(o,i)&&M(e[0],e[0],h),j(o,e[0]),M(o,o,c),D(o,i)?-1:(F(e[0])===n[31]>>7&&P(e[0],a,e[0]),M(e[3],e[0],e[1]),0)}(f,o))return-1;for(i=0;i<r;i++)e[i]=n[i];for(i=0;i<32;i++)e[i+32]=o[i];if($(A,e,r),ae(A),te(l,f,A),ne(f,n.subarray(32)),X(l,f),ee(c,l),r-=64,y(n,0,c,0)){for(i=0;i<r;i++)e[i]=0;return-1}for(i=0;i<r;i++)e[i]=n[i+64];return r}var ue=64,Ae=32,le=64;function fe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function he(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function pe(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:I,crypto_stream_xor:C,crypto_stream:B,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:E,crypto_onetimeauth:Q,crypto_onetimeauth_verify:x,crypto_verify_16:g,crypto_verify_32:y,crypto_secretbox:_,crypto_secretbox_open:S,crypto_scalarmult:H,crypto_scalarmult_base:q,crypto_box_beforenm:K,crypto_box_afternm:z,crypto_box:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),z(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),V(e,t,n,r,a)},crypto_box_keypair:Y,crypto_hash:$,crypto_sign:se,crypto_sign_keypair:re,crypto_sign_open:ce,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:Ae,crypto_sign_SECRETKEYBYTES:le,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:u,L:oe,pack25519:k,unpack25519:U,M:M,A:R,S:j,Z:P,pow2523:G,add:X,set25519:T,modL:ie,scalarmult:te,scalarbase:ne},e.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},e.secretbox=function(e,t,n){he(e,t,n),fe(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return _(o,r,r.length,t,n),o.subarray(16)},e.secretbox.open=function(e,t,n){he(e,t,n),fe(n,t);for(var r=new Uint8Array(16+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+16]=e[i];return r.length<32||0!==S(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=16,e.scalarMult=function(e,t){if(he(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return H(n,e,t),n},e.scalarMult.base=function(e){if(he(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return q(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){he(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return K(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return Y(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(he(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return q(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(he(e,t),t.length!==le)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return se(n,e,e.length,t),n},e.sign.open=function(e,t){if(he(e,t),t.length!==Ae)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=ce(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(ue),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(he(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==Ae)throw new Error("bad public key size");var r,o=new Uint8Array(ue+e.length),i=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+ue]=e[r];return ce(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(Ae),t=new Uint8Array(le);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(he(e),e.length!==le)throw new Error("bad secret key size");for(var t=new Uint8Array(Ae),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(he(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(Ae),n=new Uint8Array(le),r=0;r<32;r++)n[r]=e[r];return re(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=Ae,e.sign.secretKeyLength=le,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){he(e);var t=new Uint8Array(64);return $(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return he(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===d(e,0,t,0,e.length)},e.setPRNG=function(e){r=e},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&t.getRandomValues?e.setPRNG((function(e,n){var r,o=new Uint8Array(n);for(r=0;r<n;r+=65536)t.getRandomValues(o.subarray(r,r+Math.min(n-r,65536)));for(r=0;r<n;r++)e[r]=o[r];pe(o)})):(t=n(55024))&&t.randomBytes&&e.setPRNG((function(e,n){var r,o=t.randomBytes(n);for(r=0;r<n;r++)e[r]=o[r];pe(o)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})},52511:function(e,t,n){var r;e=n.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,c=36,u=/^xn--/,A=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,p=String.fromCharCode;function d(e){throw RangeError(f[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(l,".")).split("."),t).join(".")}function m(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function I(e){return g(e,(function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+p(e)})).join("")}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=c)e=h(e/35);return h(r+36*e/(e+38))}function E(e){var t,n,r,o,i,a,u,A,l,f,p,g=[],y=e.length,m=0,v=128,E=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&d("not-basic"),g.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<y;){for(i=m,a=1,u=c;o>=y&&d("invalid-input"),((A=(p=e.charCodeAt(o++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:c)>=c||A>h((s-m)/a))&&d("overflow"),m+=A*a,!(A<(l=u<=E?1:u>=E+26?26:u-E));u+=c)a>h(s/(f=c-l))&&d("overflow"),a*=f;E=w(m-i,t=g.length+1,0==i),h(m/t)>s-v&&d("overflow"),v+=h(m/t),m%=t,g.splice(m++,0,v)}return I(g)}function B(e){var t,n,r,o,i,a,u,A,l,f,g,y,I,E,B,C=[];for(y=(e=m(e)).length,t=128,n=0,i=72,a=0;a<y;++a)(g=e[a])<128&&C.push(p(g));for(r=o=C.length,o&&C.push("-");r<y;){for(u=s,a=0;a<y;++a)(g=e[a])>=t&&g<u&&(u=g);for(u-t>h((s-n)/(I=r+1))&&d("overflow"),n+=(u-t)*I,t=u,a=0;a<y;++a)if((g=e[a])<t&&++n>s&&d("overflow"),g==t){for(A=n,l=c;!(A<(f=l<=i?1:l>=i+26?26:l-i));l+=c)B=A-f,E=c-f,C.push(p(v(f+B%E,0))),A=h(B/E);C.push(p(v(A,0))),i=w(n,I,r==o),n=0,++r}++n,++t}return C.join("")}a={version:"1.3.2",ucs2:{decode:m,encode:I},decode:E,encode:B,toASCII:function(e){return y(e,(function(e){return A.test(e)?"xn--"+B(e):e}))},toUnicode:function(e){return y(e,(function(e){return u.test(e)?E(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},8575:function(e,t,n){"use strict";var r=n(52511),o=n(62502);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=I,t.resolve=function(e,t){return I(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?I(e,!1,!0).resolveObject(t):t},t.format=function(e){return o.isString(e)&&(e=I(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),A=["'"].concat(u),l=["%","/","?",";","#"].concat(A),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=n(17673);function I(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var I=e=u.join(s);if(I=I.trim(),!n&&1===e.split("#").length){var v=c.exec(I);if(v)return this.path=I,this.href=I,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(I);if(w){var E=(w=w[0]).toLowerCase();this.protocol=E,I=I.substr(w.length)}if(n||w||I.match(/^\/\/[^@\/]+@[^@\/]+/)){var B="//"===I.substr(0,2);!B||w&&g[w]||(I=I.substr(2),this.slashes=!0)}if(!g[w]&&(B||w&&!y[w])){for(var C,b,Q=-1,x=0;x<f.length;x++)-1!==(_=I.indexOf(f[x]))&&(-1===Q||_<Q)&&(Q=_);for(-1!==(b=-1===Q?I.lastIndexOf("@"):I.lastIndexOf("@",Q))&&(C=I.slice(0,b),I=I.slice(b+1),this.auth=decodeURIComponent(C)),Q=-1,x=0;x<l.length;x++){var _;-1!==(_=I.indexOf(l[x]))&&(-1===Q||_<Q)&&(Q=_)}-1===Q&&(Q=I.length),this.host=I.slice(0,Q),I=I.slice(Q),this.parseHost(),this.hostname=this.hostname||"";var S="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!S)for(var T=this.hostname.split(/\./),O=(x=0,T.length);x<O;x++){var N=T[x];if(N&&!N.match(h)){for(var k="",D=0,F=N.length;D<F;D++)N.charCodeAt(D)>127?k+="x":k+=N[D];if(!k.match(h)){var U=T.slice(0,x),R=T.slice(x+1),P=N.match(p);P&&(U.push(P[1]),R.unshift(P[2])),R.length&&(I="/"+R.join(".")+I),this.hostname=U.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),S||(this.hostname=r.toASCII(this.hostname));var M=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+M,this.href+=this.host,S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==I[0]&&(I="/"+I))}if(!d[E])for(x=0,O=A.length;x<O;x++){var L=A[x];if(-1!==I.indexOf(L)){var G=encodeURIComponent(L);G===L&&(G=escape(L)),I=I.split(L).join(G)}}var H=I.indexOf("#");-1!==H&&(this.hash=I.substr(H),I=I.slice(0,H));var q=I.indexOf("?");if(-1!==q?(this.search=I.substr(q),this.query=I.substr(q+1),t&&(this.query=m.parse(this.query)),I=I.slice(0,q)):t&&(this.search="",this.query={}),I&&(this.pathname=I),y[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var Y=this.search||"";this.path=M+Y}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=m.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(I(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var A=c[u];"protocol"!==A&&(n[A]=e[A])}return y[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!y[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var h=l[f];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",m=n.search||"";n.path=d+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var I=n.pathname&&"/"===n.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=v||I||n.host&&e.pathname,E=w,B=n.pathname&&n.pathname.split("/")||[],C=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!y[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===B[0]?B[0]=n.host:B.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===B[0])),v)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,B=p;else if(p.length)B||(B=[]),B.pop(),B=B.concat(p),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search))return C&&(n.hostname=n.host=B.shift(),(S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=S.shift(),n.host=n.hostname=S.shift())),n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!B.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var b=B.slice(-1)[0],Q=(n.host||e.host||B.length>1)&&("."===b||".."===b)||""===b,x=0,_=B.length;_>=0;_--)"."===(b=B[_])?B.splice(_,1):".."===b?(B.splice(_,1),x++):x&&(B.splice(_,1),x--);if(!w&&!E)for(;x--;x)B.unshift("..");!w||""===B[0]||B[0]&&"/"===B[0].charAt(0)||B.unshift(""),Q&&"/"!==B.join("/").substr(-1)&&B.push("");var S,T=""===B[0]||B[0]&&"/"===B[0].charAt(0);return C&&(n.hostname=n.host=T?"":B.length?B.shift():"",(S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=S.shift(),n.host=n.hostname=S.shift())),(w=w||n.host&&B.length)&&!T&&B.unshift(""),B.length?n.pathname=B.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},62502:function(e){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},45840:function(e,t,n){var r;if("object"==typeof globalThis)r=globalThis;else try{r=n(284)}catch(e){}finally{if(r||"undefined"==typeof window||(r=window),!r)throw new Error("Could not determine global this")}var o=r.WebSocket||r.MozWebSocket,i=n(79387);function a(e,t){return t?new o(e,t):new o(e)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(a,e,{get:function(){return o[e]}})})),e.exports={w3cwebsocket:o?a:null,version:i}},79387:function(e,t,n){e.exports=n(19794).version},24654:function(){},58050:function(){},25609:function(){},55024:function(){},19794:function(e){"use strict";e.exports={version:"1.0.34"}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r={};return function(){"use strict";n.r(r),n.d(r,{AccountBase:function(){return dA},AccountError:function(){return E},AccountMultiple:function(){return RA},Ae:function(){return yA},Aens:function(){return MA},AensError:function(){return B},AensPointerContextError:function(){return $},AeppError:function(){return C},AeppWalletHelpers:function(){return p},AeppWalletSchema:function(){return h},AlreadyConnectedError:function(){return tt},AmbiguousEventDefinitionError:function(){return Be},AmountFormatter:function(){return i},ArgumentCountMismatchError:function(){return D},ArgumentError:function(){return N},BaseError:function(){return w},BrowserRuntimeConnection:function(){return Lf},BrowserWindowMessageConnection:function(){return Mf},BytecodeMismatchError:function(){return fe},Bytes:function(){return e},Chain:function(){return Hi},ChainNode:function(){return bA},Channel:function(){return Df},ChannelCallError:function(){return ae},ChannelConnectionError:function(){return se},ChannelError:function(){return b},ChannelPingTimedOutError:function(){return ce},CompilerError:function(){return Q},ContentScriptBridge:function(){return Uf},Contract:function(){return YA},ContractCompilerHttp:function(){return jA},ContractError:function(){return x},Crypto:function(){return t},CryptographyError:function(){return _},DecodeError:function(){return Pe},DisconnectedError:function(){return Fe},DryRunError:function(){return Le},DuplicateCallbackError:function(){return ee},DuplicateContractError:function(){return he},DuplicateNodeError:function(){return Ue},EncodeError:function(){return Me},GeneralizedAccount:function(){return VA},HdWallet:function(){return u},IllegalArgumentError:function(){return k},IllegalBidFeeError:function(){return Ge},InactiveContractError:function(){return pe},InsufficientBalanceError:function(){return F},InsufficientNameFeeError:function(){return X},InternalError:function(){return V},InvalidAensNameError:function(){return Z},InvalidAuthDataError:function(){return le},InvalidChecksumError:function(){return Ce},InvalidDenominationError:function(){return U},InvalidDerivationPathError:function(){return be},InvalidKeyError:function(){return Qe},InvalidKeypairError:function(){return J},InvalidMethodInvocationError:function(){return de},InvalidNameError:function(){return R},InvalidPasswordError:function(){return xe},InvalidRpcMessageError:function(){return te},InvalidSignatureError:function(){return He},InvalidTxError:function(){return qe},InvalidTxParamsError:function(){return Ye},Keystore:function(){return o},MemoryAccount:function(){return UA},MerkleTreeHashMismatchError:function(){return _e},MessageDirectionError:function(){return nt},MissingCallbackError:function(){return ne},MissingContractAddressError:function(){return ge},MissingContractDefError:function(){return ye},MissingEventDefinitionError:function(){return Ee},MissingFunctionNameError:function(){return me},MissingNodeInTreeError:function(){return Se},MissingParamError:function(){return P},NoBrowserFoundError:function(){return M},NoDefaultAensPointerError:function(){return Ke},NoSerializerFoundError:function(){return j},NoSuchContractFunctionError:function(){return ve},NoWalletConnectedError:function(){return rt},Node:function(){return fA},NodeError:function(){return S},NodeInvocationError:function(){return Ie},NodeNotFoundError:function(){return Re},NodePool:function(){return EA},NotHardenedSegmentError:function(){return Oe},NotImplementedError:function(){return K},NotPayableFunctionError:function(){return we},Oracle:function(){return yl},PayloadLengthError:function(){return je},PrefixMismatchError:function(){return ze},PrefixNotFoundError:function(){return Ve},RequestTimedOutError:function(){return L},RpcAepp:function(){return ml},RpcConnectionError:function(){return ot},RpcWallet:function(){return bl},SCHEMA:function(){return s},SchemaNotFoundError:function(){return Je},TagNotFoundError:function(){return We},Transaction:function(){return kA},TransactionError:function(){return T},Tx:function(){return Li},TxBuilder:function(){return c},TxBuilderHelper:function(){return a},TxNotInChainError:function(){return $e},TxTimedOutError:function(){return G},TypeError:function(){return H},UnAuthorizedAccountError:function(){return re},UnavailableAccountError:function(){return W},UnexpectedChannelMessageError:function(){return ue},Universal:function(){return Ff},UnknownChannelStateError:function(){return Ae},UnknownNodeLengthError:function(){return Ne},UnknownPathNibbleError:function(){return ke},UnknownRpcClientError:function(){return oe},UnknownTxError:function(){return Xe},UnsubscribedAccountError:function(){return ie},UnsupportedABIversionError:function(){return Ze},UnsupportedAlgorithmError:function(){return Te},UnsupportedChildIndexError:function(){return De},UnsupportedPlatformError:function(){return q},UnsupportedProtocolError:function(){return Y},UnsupportedVMversionError:function(){return et},UnsupportedVersionError:function(){return z},WalletDetector:function(){return jf},WalletError:function(){return O},genSwaggerClient:function(){return aA},getDefaultPointerKey:function(){return Gf},verifyTransaction:function(){return wA}});var e={};n.r(e),n.d(e,{bigNumberToByteArray:function(){return ut},str2buf:function(){return lt},toBytes:function(){return At}});var t={};n.r(t),n.d(t,{decryptKey:function(){return jt},encodeContractAddress:function(){return Ut},encodeUnsigned:function(){return Ft},encryptKey:function(){return Mt},generateKeyPair:function(){return Pt},generateKeyPairFromSecret:function(){return Rt},getAddressFromPriv:function(){return Nt},hash:function(){return St},isAddressValid:function(){return kt},isValidKeypair:function(){return Kt},messageToHash:function(){return Ht},salt:function(){return Dt},sha256hash:function(){return dt},sign:function(){return Lt},signMessage:function(){return qt},verify:function(){return Gt},verifyMessage:function(){return Yt}});var o={};n.r(o),n.d(o,{deriveKeyUsingArgon2id:function(){return on},dump:function(){return fn},getAddressFromPriv:function(){return An},recover:function(){return ln},validateKeyObj:function(){return hn}});var i={};n.r(i),n.d(i,{AE_AMOUNT_FORMATS:function(){return yn},DENOMINATION_MAGNITUDE:function(){return mn},default:function(){return bn},formatAmount:function(){return wn},toAe:function(){return In},toAettos:function(){return vn}});var a={};n.r(a),n.d(a,{buildContractId:function(){return Jn},buildPointers:function(){return or},commitmentHash:function(){return Zn},computeAuctionEndBlock:function(){return fr},computeBidFee:function(){return lr},createSalt:function(){return Vn},decode:function(){return bt},encode:function(){return Qt},ensureNameValid:function(){return sr},formatSalt:function(){return $n},getDefaultPointerKey:function(){return ur},getMinimumNameFee:function(){return Ar},isAuctionName:function(){return hr},isNameValid:function(){return cr},oracleQueryId:function(){return Wn},produceNameId:function(){return Xn},readId:function(){return tr},readInt:function(){return rr},readPointers:function(){return ir},writeId:function(){return er},writeInt:function(){return nr}});var s={};n.r(s),n.d(s,{ABI_VERSIONS:function(){return Vr},AMOUNT:function(){return br},BASE_GAS:function(){return Zr},CLIENT_TTL:function(){return Fn},CONTRACT_BYTE_CODE_LIMA:function(){return ao},DEFAULT_FEE:function(){return to},DRY_RUN_ACCOUNT:function(){return Sr},FIELD_TYPES:function(){return Xr},GAS_MAX:function(){return Qr},GAS_PER_BYTE:function(){return eo},ID_TAG:function(){return qn},ID_TAG_PREFIX:function(){return Kn},KEY_BLOCK_INTERVAL:function(){return no},MAX_AUTH_FUN_GAS:function(){return _r},MIN_GAS_PRICE:function(){return xr},NAME_BID_MAX_LENGTH:function(){return jn},NAME_BID_RANGES:function(){return Gn},NAME_BID_TIMEOUTS:function(){return Hn},NAME_BID_TIMEOUT_BLOCKS:function(){return Pn},NAME_FEE_BID_INCREMENT:function(){return Rn},NAME_FEE_MULTIPLIER:function(){return Un},NAME_MAX_CLIENT_TTL:function(){return Dn},NAME_MAX_LENGTH_FEE:function(){return Mn},NAME_MAX_TTL:function(){return kn},NAME_TTL:function(){return Nn},OBJECT_ID_TX_TYPE:function(){return $r},OBJECT_TAG_SIGNED_TRANSACTION:function(){return Tr},ORACLE_TTL:function(){return Er},POINTER_KEY_BY_PREFIX:function(){return Ln},PREFIX_ID_TAG:function(){return Yn},PROTOCOL_VERSIONS:function(){return Jr},PROTOCOL_VM_ABI:function(){return Wr},QUERY_FEE:function(){return wr},QUERY_TTL:function(){return Br},RESPONSE_TTL:function(){return Cr},TX_DESERIALIZATION_SCHEMA:function(){return ti},TX_FEE_BASE_GAS:function(){return ro},TX_FEE_OTHER_GAS:function(){return oo},TX_SERIALIZATION_SCHEMA:function(){return ei},TX_TTL:function(){return vr},TX_TYPE:function(){return Kr},VM_VERSIONS:function(){return zr},VSN:function(){return mr},VSN_2:function(){return Ir}});var c={};n.r(c),n.d(c,{buildRawTx:function(){return gi},buildTx:function(){return Ii},buildTxHash:function(){return wi},calculateFee:function(){return pi},calculateMinFee:function(){return fi},default:function(){return Ei},unpackRawTx:function(){return yi},unpackTx:function(){return vi},validateParams:function(){return di}});var u={};n.r(u),n.d(u,{deriveChild:function(){return Di},derivePathFromKey:function(){return Si},derivePathFromSeed:function(){return Ti},generateSaveHDWalletFromSeed:function(){return Fi},getHdWalletAccountFromSeed:function(){return Ri},getKeyPair:function(){return Ni},getMasterKeyFromSeed:function(){return ki},getSaveHDWalletAccounts:function(){return Ui}});var A={};n.r(A),n.d(A,{JsonPatchError:function(){return Gs},_areEquals:function(){return Xs},applyOperation:function(){return zs},applyPatch:function(){return Vs},applyReducer:function(){return Js},deepClone:function(){return Hs},getValueByPointer:function(){return Ks},validate:function(){return $s},validator:function(){return Ws}});var l={};n.r(l),n.d(l,{compare:function(){return ac},generate:function(){return oc},observe:function(){return rc},unobserve:function(){return nc}});var f={};n.r(f),n.d(f,{cookie:function(){return Lu},header:function(){return ju},path:function(){return Ru},query:function(){return Pu}});var h={};n.r(h),n.d(h,{ERRORS:function(){return nl},MESSAGE_DIRECTION:function(){return $A},METHODS:function(){return el},RPC_STATUS:function(){return tl},SUBSCRIPTION_TYPES:function(){return ZA},VERSION:function(){return WA},WALLET_TYPE:function(){return XA}});var p={};n.r(p),n.d(p,{getBrowserAPI:function(){return rl},getHandler:function(){return al},isInIframe:function(){return ol},isValidAccounts:function(){return Al},message:function(){return sl},responseMessage:function(){return cl},sendMessage:function(){return il},sendResponseMessage:function(){return ul}});var d=n(50780),g=n.n(d),y=n(78826),m=n.n(y),I=n(44431),v=n.n(I);class w extends Error{constructor(e){super(e),this.name="BaseError"}}class E extends w{constructor(e){super(e),this.name="AccountError"}}class B extends w{constructor(e){super(e),this.name="AensError"}}class C extends w{constructor(e){super(e),this.name="AeppError"}}class b extends w{constructor(e){super(e),this.name="ChannelError"}}class Q extends w{constructor(e){super(e),this.name="CompilerError"}}class x extends w{constructor(e){super(e),this.name="ContractError"}}class _ extends w{constructor(e){super(e),this.name="CryptographyError"}}class S extends w{constructor(e){super(e),this.name="NodeError"}}class T extends w{constructor(e){super(e),this.name="TransactionError"}}class O extends w{constructor(e){super(e),this.name="WalletError"}}class N extends w{constructor(e,t,n){super(`${e} should be ${t}, got ${n} instead`),this.name="ArgumentError"}}class k extends _{constructor(e){super(e),this.name="IllegalArgumentError"}}class D extends w{constructor(e,t,n){super(`${e} expects ${t} arguments, got ${n} instead`),this.name="ArgumentCountMismatchError"}}class F extends w{constructor(e){super(e),this.name="InsufficientBalanceError"}}class U extends w{constructor(e){super(e),this.name="InvalidDenominationError"}}class R extends w{constructor(e){super(e),this.name="InvalidNameError"}}class P extends w{constructor(e){super(e),this.name="MissingParamError"}}class M extends w{constructor(){super("Browser is not detected"),this.name="NoBrowserFoundError"}}class j extends w{constructor(){super("Byte serialization not supported"),this.name="NoSerializerFoundError"}}class L extends w{constructor(e,t,n){super(void 0!==t&&void 0!==n?`Giving up after ${e}ms, current height: ${t}, desired height: ${n}`:`Giving up after ${e} ms`),this.name="RequestTimedOutError"}}class G extends w{constructor(e,t,n){super([`Giving up after ${e} blocks mined`,`transaction hash: ${t}`,...n?[`status: ${n}`]:[]].join(", ")),this.name="TxTimedOutError"}}class H extends w{constructor(e){super(e),this.name="TypeError"}}class q extends w{constructor(e){super(e),this.name="UnsupportedPlatformError"}}class Y extends w{constructor(e){super(e),this.name="UnsupportedProtocolError"}}class K extends w{constructor(e){super(e),this.name="NotImplementedError"}}class z extends w{constructor(e,t,n,r){super(`Unsupported ${e} version ${t}. Supported: >= ${n} < ${r}`),this.name="UnsupportedVersionError"}}class V extends w{constructor(e){super(e),this.name="InternalError"}}class J extends E{constructor(e){super(e),this.name="InvalidKeypairError"}}class W extends E{constructor(e){super(`Account for ${e} not available`),this.name="UnavailableAccountError"}}class $ extends B{constructor(e,t){super(`Name ${e} don't have pointers for ${t}`),this.name="AensPointerContextError"}}class X extends B{constructor(e,t){super(`the provided fee ${e} is not enough to execute the claim, required: ${t}`),this.name="InsufficientNameFeeError"}}class Z extends B{constructor(e){super(e),this.name="InvalidAensNameError"}}class ee extends C{constructor(){super("Callback Already exist"),this.name="DuplicateCallbackError"}}class te extends C{constructor(e){super(`Received invalid message: ${e}`),this.name="InvalidRpcMessageError"}}class ne extends C{constructor(e){super(`Can't find callback for this messageId ${e}`),this.name="MissingCallbackError"}}class re extends C{constructor(e){super(`You do not have access to account ${e}`),this.name="UnAuthorizedAccountError"}}class oe extends C{constructor(e){super(`RpcClient with id ${e} do not exist`),this.name="UnknownRpcClientError"}}class ie extends C{constructor(){super("You are not subscribed for an account."),this.name="UnsubscribedAccountError"}}class ae extends b{constructor(e){super(e),this.name="ChannelCallError"}}class se extends b{constructor(e){super(e),this.name="ChannelConnectionError"}}class ce extends b{constructor(){super("Server pong timed out"),this.name="ChannelPingTimedOutError"}}class ue extends b{constructor(e){super(e),this.name="UnexpectedChannelMessageError"}}class Ae extends b{constructor(){super("State Channels FSM entered unknown state"),this.name="UnknownChannelStateError"}}class le extends Q{constructor(e){super(e),this.name="InvalidAuthDataError"}}class fe extends x{constructor(e){super(`Contract ${e} do not correspond to the bytecode deployed on the chain`),this.name="BytecodeMismatchError"}}class he extends x{constructor(){super("Contract already deployed"),this.name="DuplicateContractError"}}class pe extends x{constructor(e){super(`Contract with address ${e} not active`),this.name="InactiveContractError"}}class de extends x{constructor(e){super(e),this.name="InvalidMethodInvocationError"}}class ge extends x{constructor(e){super(e),this.name="MissingContractAddressError"}}class ye extends x{constructor(){super("Either ACI or source code is required"),this.name="MissingContractDefError"}}class me extends x{constructor(){super("Function name is required"),this.name="MissingFunctionNameError"}}class Ie extends x{constructor(e){var t;super("Invocation failed"+(""===(e=null!==(t=e)&&void 0!==t?t:"")?"":`: "${e}"`)),this.name="NodeInvocationError"}}class ve extends x{constructor(e){super(`Function ${e} doesn't exist in contract`),this.name="NoSuchContractFunctionError"}}class we extends x{constructor(e,t){super(`You try to pay "${e}" to function "${t}" which is not payable. Only payable function can accept tokens`),this.name="NotPayableFunctionError"}}class Ee extends x{constructor(e,t){super(`Can't find definition of ${e} event emitted by ${t} (use omitUnknown option to ignore events like this)`),this.name="MissingEventDefinitionError"}}class Be extends x{constructor(e,t){super(`Found multiple definitions of "${t[0][1]}" event emitted by ${e} in ${t.map((e=>{let[t]=e;return`"${t}"`})).join(", ")} contracts (use contractAddressToName option to specify contract name corresponding to address)`),this.name="AmbiguousEventDefinitionError"}}class Ce extends _{constructor(){super("Invalid checksum"),this.name="InvalidChecksumError"}}class be extends _{constructor(){super("Invalid path"),this.name="InvalidDerivationPathError"}}class Qe extends _{constructor(e){super(e),this.name="InvalidKeyError"}}class xe extends _{constructor(e){super(e),this.name="InvalidPasswordError"}}class _e extends _{constructor(){super("Node hash is not equal to provided one"),this.name="MerkleTreeHashMismatchError"}}class Se extends _{constructor(e){super(e),this.name="MissingNodeInTreeError"}}class Te extends _{constructor(e){super(e+" is not available"),this.name="UnsupportedAlgorithmError"}}class Oe extends _{constructor(e){super(e),this.name="NotHardenedSegmentError"}}class Ne extends _{constructor(e){super(`Unknown node length: ${e}`),this.name="UnknownNodeLengthError"}}class ke extends _{constructor(e){super(`Unknown path nibble: ${e}`),this.name="UnknownPathNibbleError"}}class De extends _{constructor(e){super(`Child index #${e} is not supported`),this.name="UnsupportedChildIndexError"}}class Fe extends S{constructor(){super("Can not get node info. Node is not connected"),this.name="DisconnectedError"}}class Ue extends S{constructor(e){super(`Node with name ${e} already exist`),this.name="DuplicateNodeError"}}class Re extends S{constructor(e){super(e),this.name="NodeNotFoundError"}}class Pe extends T{constructor(e){super(e),this.name="DecodeError"}}class Me extends T{constructor(e){super(e),this.name="EncodeError"}}class je extends T{constructor(e){super(e),this.name="PayloadLengthError"}}class Le extends T{constructor(e){super(e),this.name="DryRunError"}}class Ge extends T{constructor(e){super(e),this.name="IllegalBidFeeError"}}class He extends T{constructor(e){super(e),this.name="InvalidSignatureError"}}class qe extends T{constructor(e){super(e),this.name="InvalidTxError"}}class Ye extends T{constructor(e){super(e),this.name="InvalidTxParamsError"}}class Ke extends T{constructor(e){super(`Default AENS pointer key is not defined for ${e} prefix`),this.name="NoDefaultAensPointerError"}}class ze extends T{constructor(e,t){super(`Encoded string have a wrong type: ${e} (expected: ${t})`),this.name="PrefixMismatchError"}}class Ve extends T{constructor(e){super(`Prefix for id-tag ${e} not found.`),this.name="PrefixNotFoundError"}}class Je extends T{constructor(e){super(e),this.name="SchemaNotFoundError"}}class We extends T{constructor(e){super(`Id tag for prefix ${e} not found.`),this.name="DecodeError"}}class $e extends T{constructor(e){super(`Transaction ${e} is removed from chain`),this.name="TxNotInChainError"}}class Xe extends T{constructor(e){super(e),this.name="UnknownTxError"}}class Ze extends T{constructor(e){super(e),this.name="UnsupportedABIversionError"}}class et extends T{constructor(e){super(e),this.name="UnsupportedVMversionError"}}class tt extends O{constructor(e){super(e),this.name="AlreadyConnectedError"}}class nt extends O{constructor(e){super(e),this.name="MessageDirectionError"}}class rt extends O{constructor(e){super(e),this.name="NoWalletConnectedError"}}class ot extends O{constructor(e){super(e),this.name="RpcConnectionError"}}function it(e){return e.replace(/_./g,(e=>e[1].toUpperCase()))}function at(e){return e.replace(/[A-Z]/g,(e=>`_${e.toLowerCase()}`))}function st(e){return e.length%2==0&&/^[0-9a-f]+$/i.test(e)}var ct=n(48764).Buffer;function ut(e){if(!e.isInteger())throw new H(`Unexpected not integer value: ${e.toFixed()}`);let t=e.toString(16);return t.length%2==1&&(t="0"+t),ct.from(t,"hex")}function At(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e)return ct.from([]);if(Number.isInteger(e)||v().isBigNumber(e)||t)return v().isBigNumber(e)||(e=new(v())(e)),ut(e);if("string"==typeof e)return ct.from(e);throw new j}function lt(e,t){var n;return ct.from(e,null!==(n=null!=t?t:st(e)?"hex":void 0)&&void 0!==n?n:function(e){if(e.length%4>0||/[^0-9a-z+/=]/i.test(e))return!1;const t=e.indexOf("=");return-1===t||/={1,2}/.test(e.slice(t))}(e)?"base64":void 0)}var ft=n(77191),ht=n(89072),pt=n(48764).Buffer;function dt(e){return(new ht.sha256).update(e).digest()}const gt=["ba","cb","or","ov","pi","ss","cs","ck","cv","st","tx"],yt=["ak","bf","bs","bx","ch","cm","ct","kh","mh","nm","ok","oq","pp","sg","th"],mt={ak:32,ct:32,ok:32};function It(e,t){if(mt[t]&&e.length!==mt[t])throw new je(`Payload should be ${mt[t]} bytes, got ${e.length} instead`)}const vt=e=>dt(dt(e)).slice(0,4),wt=e=>{const t=pt.from(e);return pt.concat([t,vt(t)])};function Et(e){const t=e.slice(0,-4);if(!vt(t).equals(e.slice(-4)))throw new Ce;return t}const Bt={encode:e=>wt(e).toString("base64"),decode:e=>Et(pt.from(e,"base64"))},Ct={encode:e=>ft.encode(wt(e)),decode:e=>Et(ft.decode(e))};function bt(e,t){const[n,r,o]=e.split("_");if(!r)throw new Pe(`Encoded string missing payload: ${e}`);if(o)throw new Pe(`Encoded string have extra parts: ${e}`);if(t&&t!==n)throw new ze(n,t);const i=gt.includes(n)&&Bt.decode||yt.includes(n)&&Ct.decode;if(!i)throw new Pe(`Encoded string have unknown type: ${n}`);const a=i(r);return It(a,n),a}function Qt(e,t){const n=gt.includes(t)&&Bt.encode||yt.includes(t)&&Ct.encode;if(!n)throw new Me(`Unknown type: ${t}`);return It(e,t),`${t}_${n(e)}`}var xt=n(27871),_t=n(48764).Buffer;function St(e){return _t.from((0,xt.blake2b)(e,void 0,32))}var Tt=n(48764).Buffer;const Ot=m().ModeOfOperation.ecb;function Nt(e){const t=g().sign.keyPair.fromSecretKey(lt(e));return Qt(Tt.from(t.publicKey),"ak")}function kt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ak";try{return bt(e,t),!0}catch(e){return!1}}function Dt(){return Math.floor(Math.random()*Math.floor(Number.MAX_SAFE_INTEGER))}function Ft(e){const t=Tt.allocUnsafe(4);return t.writeUInt32BE(e),t.slice(t.findIndex((e=>0!==e)))}function Ut(e,t){const n=bt(e,"ak");return Qt(St(Tt.concat([n,Ft(t)])),"ct")}function Rt(e){return g().sign.keyPair.fromSecretKey(e)}function Pt(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=g().sign.keyPair(),n=Tt.from(t.publicKey),r=Tt.from(t.secretKey);return e?{publicKey:n,secretKey:r}:{publicKey:Qt(n,"ak"),secretKey:r.toString("hex")}}function Mt(e,t){const n=dt(e);return new Ot(n).encrypt(t)}function jt(e,t){const n=Tt.from(t),r=dt(e),o=new Ot(r);return Tt.from(o.decrypt(n))}function Lt(e,t){return g().sign.detached(Tt.from(e),Tt.from(t))}function Gt(e,t,n){return g().sign.detached.verify(new Uint8Array(e),t,n)}function Ht(e){const t=Tt.from("aeternity Signed Message:\n","utf8"),n=Tt.from(e,"utf8");if(n.length>=253)throw new K("Message too long");return St(Tt.concat([Tt.from([t.length]),t,Tt.from([n.length]),n]))}function qt(e,t){return Lt(Ht(e),t)}function Yt(e,t,n){return Gt(Ht(e),t,n)}function Kt(e,t){const n=Tt.from("TheMessage");return Gt(n,Lt(n,e),t)}var zt,Vt={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},Jt=new Uint8Array(16);function Wt(){if(!zt&&!(zt="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 zt(Jt)}for(var $t=[],Xt=0;Xt<256;++Xt)$t.push((Xt+256).toString(16).substr(1));var Zt=function(e,t,n){if(Vt.randomUUID&&!t&&!e)return Vt.randomUUID();var r=(e=e||{}).random||(e.rng||Wt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return($t[e[t+0]]+$t[e[t+1]]+$t[e[t+2]]+$t[e[t+3]]+"-"+$t[e[t+4]]+$t[e[t+5]]+"-"+$t[e[t+6]]+$t[e[t+7]]+"-"+$t[e[t+8]]+$t[e[t+9]]+"-"+$t[e[t+10]]+$t[e[t+11]]+$t[e[t+12]]+$t[e[t+13]]+$t[e[t+14]]+$t[e[t+15]]).toLowerCase()}(r)},en=n(19250),tn=n(48764).Buffer;const nn={crypto:{secret_type:"ed25519",symmetric_alg:"xsalsa20-poly1305",kdf:"argon2id",kdf_params:{memlimit_kib:65536,opslimit:3,parallelism:1}}},rn={argon2id:on};async function on(e,t,n){const{memlimit_kib:r,opslimit:o}=n.kdf_params,i=(await(0,en.hash)({hashLen:32,pass:e,salt:t,time:o,mem:r,type:en.ArgonType.Argon2id})).hash;return tn.from(i)}const an={"xsalsa20-poly1305":{encrypt:function(e){let{plaintext:t,key:n,nonce:r}=e;return g().secretbox(t,r,n)},decrypt:function(e){let{ciphertext:t,key:n,nonce:r}=e;const o=g().secretbox.open(t,r,n);if(!o)throw new xe("Invalid password or nonce");return o}}};function sn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:nn.crypto.symmetric_alg;if(!an[r])throw new Te(r);return an[r].encrypt({plaintext:e,nonce:n,key:t})}async function cn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{kdf_params:nn.crypto.kdf_params,kdf:nn.crypto.kdf};if(!t)throw new N("nonce","provided",t);if(null==e)throw new N("password","provided",e);if(!Object.prototype.hasOwnProperty.call(rn,n.kdf))throw new Te(n.kdf);return rn[n.kdf](e,t,n)}function un(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=Object.assign({},nn.crypto,i);return Object.assign({name:e,version:1,public_key:An(n),id:Zt()},{crypto:Object.assign({secret_type:a.secret_type,symmetric_alg:a.symmetric_alg,ciphertext:tn.from(sn(tn.from(n),t,r,a.symmetric_alg)).toString("hex"),cipher_params:{nonce:tn.from(r).toString("hex")}},{kdf:a.kdf,kdf_params:{...a.kdf_params,salt:tn.from(o).toString("hex")}})})}function An(e){const t=g().sign.keyPair.fromSecretKey(lt(e));return Qt(tn.from(t.publicKey),"ak")}async function ln(e,t){hn(t);const n=Uint8Array.from(lt(t.crypto.cipher_params.nonce)),r=Uint8Array.from(lt(t.crypto.kdf_params.salt)),o=t.crypto.kdf_params,i=t.crypto.kdf,a=await function(e,t,n,r){if(!an[r])throw new Te(r);return an[r].decrypt({ciphertext:e,nonce:n,key:t})}(Uint8Array.from(lt(t.crypto.ciphertext)),await cn(e,r,{kdf:i,kdf_params:o}),n,t.crypto.symmetric_alg);if(!a)throw new xe("Invalid password");return 64===tn.from(a).length?tn.from(a).toString("hex"):tn.from(a).toString("utf-8")}async function fn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:g().randomBytes(24),o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:g().randomBytes(16),i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=Object.assign({},nn.crypto,i);return un(e,await cn(t,o,a),"string"==typeof n?tn.from(n,"hex"):n,r,o,a)}function hn(e){const t=["crypto","id","version","public_key"].filter((t=>!Object.prototype.hasOwnProperty.call(e,t)));if(t.length)throw new Qe(`Invalid key file format. Require properties: ${t}`);const n=["cipher_params","ciphertext","symmetric_alg","kdf","kdf_params"].filter((t=>!Object.prototype.hasOwnProperty.call(e.crypto,t)));if(n.length)throw new Qe(`Invalid key file format. Require properties: ${n}`);return!0}var pn=n(6636);const dn=e=>["number","object","string","bigint"].includes(typeof e)&&(!isNaN(e)||Number.isInteger(e)||v().isBigNumber(e)),gn=e=>e.integerValue(v().ROUND_CEIL),yn={AE:"ae",MILI_AE:"miliAE",MICRO_AE:"microAE",NANO_AE:"nanoAE",PICO_AE:"picoAE",FEMTO_AE:"femtoAE",AETTOS:"aettos"},mn={[yn.AE]:0,[yn.MILI_AE]:-3,[yn.MICRO_AE]:-6,[yn.NANO_AE]:-9,[yn.PICO_AE]:-12,[yn.FEMTO_AE]:-15,[yn.AETTOS]:-18},In=function(e){let{denomination:t=yn.AETTOS}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return wn(e,{denomination:t,targetDenomination:yn.AE})},vn=function(e){let{denomination:t=yn.AE}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return wn(e,{denomination:t})},wn=function(e){let{denomination:t=yn.AETTOS,targetDenomination:n=yn.AETTOS}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Object.values(yn);if(!r.includes(t))throw new U(`Invalid denomination: ${t}`);if(!r.includes(n))throw new U(`Invalid target denomination: ${n}`);if(!dn(e))throw new N("value","a number",e);return new(v())(e).shiftedBy(mn[t]-mn[n]).toFixed()},En=[{name:"exa",magnitude:18},{name:"giga",magnitude:9},{name:"",magnitude:0},{name:"pico",magnitude:-12}],Bn=e=>En.reduce(((t,n)=>Math.abs(n.magnitude-e)<Math.abs(t.magnitude-e)?n:t)),Cn=e=>{var t;return null!==(t=En.find((t=>t.magnitude<=e)))&&void 0!==t?t:En[En.length-1]};var bn=e=>{var t;const n=new(v())(e),r=null!==(t=n.e)&&void 0!==t?t:0,{name:o,magnitude:i}=(r<0?Bn:Cn)(r);return`${n.shiftedBy(-i).precision(9+Math.min(r-i,0)).toFixed()}${""!==o?" ":""}${o}`};const Qn=async e=>await new Promise((t=>setTimeout(t,e))),xn=(e,t)=>Object.fromEntries(Object.entries(e).map(t)),_n=(e,t)=>Object.fromEntries(Object.entries(e).filter(t)),Sn=(e,t)=>"object"!=typeof t||null===t?t:Array.isArray(t)?t.map((t=>Sn(e,t))):xn(t,(t=>{let[n,r]=t;return[e(n),Sn(e,r)]})),Tn=Sn.bind(null,at),On=Sn.bind(null,it),Nn=18e4,kn=36e3,Dn=84600,Fn=Dn,Un=1e14,Rn=.05,Pn=480,Mn=31,jn=12,Ln={ak:"account_pubkey",ok:"oracle_pubkey",ct:"contract_pubkey",ch:"channel"},Gn=xn({31:3,30:5,29:8,28:13,27:21,26:34,25:55,24:89,23:144,22:233,21:377,20:610,19:987,18:1597,17:2584,16:4181,15:6765,14:10946,13:17711,12:28657,11:46368,10:75025,9:121393,8:196418,7:317811,6:514229,5:832040,4:1346269,3:2178309,2:3524578,1:5702887},(e=>{let[t,n]=e;return[t,new(v())(n).times(Un)]})),Hn={13:v()(0),12:v()(Pn),8:v()(31).times(Pn),4:v()(62).times(Pn)},qn={account:1,name:2,commitment:3,oracle:4,contract:5,channel:6},Yn={ak:qn.account,nm:qn.name,cm:qn.commitment,ok:qn.oracle,ct:qn.contract,ch:qn.channel},Kn=xn(Yn,(e=>{let[t,n]=e;return[n,t]}));var zn=n(48764).Buffer;const Vn=Dt;function Jn(e,t){return Qt(St(zn.from([...bt(e,"ak"),...At(t)])),"ct")}function Wn(e,t,n){return Qt(St(zn.from([...bt(e,"ak"),...function(e){const t=At(e,!0);return zn.concat([zn.alloc(32-t.length),t])}(t),...bt(n,"ok")])),"oq")}function $n(e){return zn.from(e.toString(16).padStart(64,"0"),"hex")}function Xn(e){return sr(e),Qt(St(e.toLowerCase()),"nm")}function Zn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vn();return sr(e),Qt(St(zn.concat([zn.from(e.toLowerCase()),$n(t)])),"cm")}function er(e){if("string"!=typeof e)throw new N("hashId","a string",e);const t=e.slice(0,2),n=Yn[t];if(!n)throw new We(t);return zn.from([...At(n),...bt(e,t)])}function tr(e){const t=zn.from(e).readUIntBE(0,1),n=Kn[t];if(!n)throw new Ve(t);return Qt(e.slice(1,e.length),n)}function nr(e){return At(e,!0)}function rr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zn.from([]);return new(v())(zn.from(e).toString("hex"),16).toString(10)}function or(e){return e.map((e=>[At(e.key),er(e.id)]))}function ir(e){return e.map((e=>{let[t,n]=e;return Object.assign({key:t.toString(),id:tr(n)})}))}const ar=".chain";function sr(e){if(!e||"string"!=typeof e)throw new R("Name must be a string");if(!e.endsWith(ar))throw new R(`Name should end with .chain: ${e}`)}function cr(e){try{return sr(e),!0}catch(e){return!1}}function ur(e){bt(e);const t=e.substr(0,2);return Ln[t]||(()=>{throw new Ke(t)})()}function Ar(e){sr(e);const t=e.length-ar.length;return Gn[Math.min(t,Mn)]}function lr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rn;if(Number(n)!==n||n%1==0)throw new Ge(`Increment must be float. Current increment ${n}`);if(n<Rn)throw new Ge(`minimum increment percentage is ${Rn}`);return gn(v()(null!=t?t:Ar(e)).times(v()(Rn).plus(1)))}function fr(e,t){sr(e);const n=e.length-ar.length;return(n<=4&&Hn[4]||n<=8&&Hn[8]||n<=12&&Hn[12]||Hn[13]).plus(t).toString(10)}function hr(e){return sr(e),e.length<13+ar.length}var pr=n(48764).Buffer;class dr{static serialize(e){return e}static deserialize(e){return e}}class gr extends dr{static serialize(e){return er(cr(e)?Xn(e):e)}static deserialize(e){return tr(e)}}class yr extends dr{static serialize(e,t){let{name:n}=t;if(+e)throw new k(`Contract deposit is not refundable, so it should be equal 0, got ${e} instead`);return nr(0)}static deserialize(e){return rr(e)}}const mr=1,Ir=2,vr=0,wr=3e4,Er={type:"delta",value:500},Br={type:"delta",value:10},Cr={type:"delta",value:10},br=0,Qr=1579e3,xr=1e9,_r=5e4,Sr={pub:"ak_11111111111111111111111111111111273Yts",amount:"100000000000000000000000000000000000"},Tr=11,Or=521,Nr=570,kr=571,Dr=572,Fr=573,Ur=574,Rr=575,Pr=621,Mr=622,jr=623,Lr=624,Gr=625,Hr=626,qr=(e,t,n)=>[e,t,n],Yr=(e,t)=>[e,t],Kr={account:"account",signed:"signedTx",spend:"spendTx",nameClaim:"nameClaimTx",namePreClaim:"namePreClaimTx",nameUpdate:"nameUpdateTx",nameRevoke:"nameRevokeTx",nameTransfer:"nameTransfer",contract:"contract",contractCreate:"contractCreateTx",contractCall:"contractCallTx",contractCallResult:"contractCallResult",oracleRegister:"oracleRegister",oracleExtend:"oracleExtend",oracleQuery:"oracleQuery",oracleResponse:"oracleResponse",channelCreate:"channelCreate",channelCloseMutual:"channelCloseMutual",channelCloseSolo:"channelCloseSolo",channelSlash:"channelSlash",channelDeposit:"channelDeposit",channelWithdraw:"channelWithdraw",channelSettle:"channelSettle",channelOffChain:"channelOffChain",channelForceProgress:"channelForceProgress",channel:"channel",channelSnapshotSolo:"channelSnapshotSolo",channelOffChainUpdateTransfer:"channelOffChainUpdateTransfer",channelOffChainUpdateDeposit:"channelOffChainUpdateDeposit",channelOffChainUpdateWithdrawal:"channelOffChainUpdateWithdrawal",channelOffChainCreateContract:"channelOffChainCreateContract",channelOffChainCallContract:"channelOffChainCallContract",channelReconnect:"channelReconnect",proofOfInclusion:"proofOfInclusion",stateTrees:"stateTrees",merklePatriciaTree:"merklePatriciaTree",merklePatriciaTreeValue:"merklePatriciaTreeValue",contractsTree:"contractsTree",contractCallsTree:"contractCallsTree",channelsTree:"channelsTree",nameserviceTree:"nameserviceTree",oraclesTree:"oraclesTree",accountsTree:"accountsTree",gaAttach:"gaAttach",gaMeta:"gaMeta",payingFor:"payingFor",sophiaByteCode:"sophiaByteCode"},zr={NO_VM:0,SOPHIA:1,SOPHIA_IMPROVEMENTS_MINERVA:3,SOPHIA_IMPROVEMENTS_FORTUNA:4,FATE:5,SOPHIA_IMPROVEMENTS_LIMA:6,FATE_2:7},Vr={NO_ABI:0,SOPHIA:1,FATE:3},Jr={IRIS:5},Wr={[Jr.IRIS]:{[Kr.contractCreate]:{vmVersion:[zr.FATE_2],abiVersion:[Vr.FATE]},[Kr.contractCall]:{vmVersion:[zr.FATE_2,zr.FATE,zr.SOPHIA_IMPROVEMENTS_LIMA,zr.SOPHIA_IMPROVEMENTS_FORTUNA,zr.SOPHIA,zr.SOPHIA_IMPROVEMENTS_MINERVA],abiVersion:[Vr.FATE,Vr.SOPHIA]},[Kr.oracleRegister]:{vmVersion:[],abiVersion:[Vr.NO_ABI,Vr.SOPHIA]}}},$r={10:Kr.account,[Tr]:Kr.signed,12:Kr.spend,32:Kr.nameClaim,33:Kr.namePreClaim,34:Kr.nameUpdate,35:Kr.nameRevoke,36:Kr.nameTransfer,40:Kr.contract,42:Kr.contractCreate,43:Kr.contractCall,41:Kr.contractCallResult,22:Kr.oracleRegister,25:Kr.oracleExtend,23:Kr.oracleQuery,24:Kr.oracleResponse,50:Kr.channelCreate,53:Kr.channelCloseMutual,54:Kr.channelCloseSolo,55:Kr.channelSlash,[Or]:Kr.channelForceProgress,51:Kr.channelDeposit,52:Kr.channelWithdraw,56:Kr.channelSettle,57:Kr.channelOffChain,58:Kr.channel,59:Kr.channelSnapshotSolo,[Nr]:Kr.channelOffChainUpdateTransfer,[kr]:Kr.channelOffChainUpdateDeposit,[Dr]:Kr.channelOffChainUpdateWithdrawal,[Fr]:Kr.channelOffChainCreateContract,[Ur]:Kr.channelOffChainCallContract,[Rr]:Kr.channelReconnect,60:Kr.proofOfInclusion,62:Kr.stateTrees,63:Kr.merklePatriciaTree,64:Kr.merklePatriciaTreeValue,[Pr]:Kr.contractsTree,[Mr]:Kr.contractCallsTree,[jr]:Kr.channelsTree,[Lr]:Kr.nameserviceTree,[Gr]:Kr.oraclesTree,[Hr]:Kr.accountsTree,80:Kr.gaAttach,81:Kr.gaMeta,82:Kr.payingFor,70:Kr.sophiaByteCode},Xr={int:"int",amount:"amount",id:"id",ids:"ids",string:"string",binary:"binary",rlpBinary:"rlpBinary",rlpBinaries:"rlpBinaries",rawBinary:"rawBinary",bool:"bool",hex:"hex",signatures:"signatures",pointers:"pointers",offChainUpdates:"offChainUpdates",callStack:"callStack",proofOfInclusion:"proofOfInclusion",mptrees:"mptrees",callReturnType:"callReturnType",ctVersion:"ctVersion",sophiaCodeTypeInfo:"sophiaCodeTypeInfo",payload:"payload",any:"any",stateTree:"stateTree"},Zr=15e3,eo=20,to=2e4,no=3,ro=e=>{const t={[Kr.channelForceProgress]:30,[Kr.channelOffChain]:0,[Kr.channelOffChainCallContract]:0,[Kr.channelOffChainCreateContract]:0,[Kr.channelOffChainUpdateDeposit]:0,[Kr.channelOffChainUpdateWithdrawal]:0,[Kr.channelOffChainUpdateTransfer]:0,[Kr.contractCreate]:5,[Kr.contractCall]:12,[Kr.gaAttach]:5,[Kr.gaMeta]:5,[Kr.payingFor]:.2}[e]||1;return new(v())(t*Zr)},oo=(e,t,n)=>{let{relativeTtl:r,innerTxSize:o}=n;switch(e){case Kr.oracleRegister:case Kr.oracleExtend:case Kr.oracleQuery:case Kr.oracleResponse:return new(v())(t).times(eo).plus(Math.ceil(32e3*r/Math.floor(525600/no)));case Kr.gaMeta:case Kr.payingFor:return new(v())(t).minus(o).times(eo);default:return new(v())(t).times(eo)}},io=[qr("tag",Xr.int),qr("VSN",Xr.int)],ao=[...io,qr("sourceCodeHash",Xr.rawBinary),qr("typeInfo",Xr.sophiaCodeTypeInfo),qr("byteCode",Xr.rawBinary),qr("compilerVersion",Xr.string),qr("payable",Xr.bool)],so=[...io,qr("flags",Xr.int),qr("nonce",Xr.int),qr("balance",Xr.int),qr("gaContract",Xr.id,["ct","nm"]),qr("gaAuthFun",Xr.binary,"cb")],co=[...io,qr("senderId",Xr.id,"ak"),qr("recipientId",Xr.id,["ak","nm"]),qr("amount",Xr.amount),qr("fee",Xr.int),qr("ttl",Xr.int),qr("nonce",Xr.int),qr("payload",Xr.payload)],uo=[...io,qr("signatures",Xr.signatures),qr("encodedTx",Xr.rlpBinary)],Ao=[...io,qr("accountId",Xr.id,"ak"),qr("nonce",Xr.int),qr("commitmentId",Xr.id,"cm"),qr("fee",Xr.int),qr("ttl",Xr.int)],lo=[...io,qr("accountId",Xr.id,"ak"),qr("nonce",Xr.int),qr("name",class extends dr{static serialize(e){return sr(e),pr.from(e)}static deserialize(e){return e.toString()}}),qr("nameSalt",Xr.int),qr("nameFee",class extends dr{static serialize(e,t){var n;let{name:r}=t;const o=Ar(r);if(null!==(n=e)&&void 0!==n||(e=o),o.gt(e))throw new X(e,o);return nr(e)}static deserialize(e){return rr(e)}}),qr("fee",Xr.int),qr("ttl",Xr.int)],fo=[...io,qr("accountId",Xr.id,"ak"),qr("nonce",Xr.int),qr("nameId",gr),qr("nameTtl",Xr.int),qr("pointers",Xr.pointers),qr("clientTtl",Xr.int),qr("fee",Xr.int),qr("ttl",Xr.int)],ho=[...io,qr("accountId",Xr.id,"ak"),qr("nonce",Xr.int),qr("nameId",gr),qr("recipientId",Xr.id,["ak","nm"]),qr("fee",Xr.int),qr("ttl",Xr.int)],po=[...io,qr("accountId",Xr.id,"ak"),qr("nonce",Xr.int),qr("nameId",gr),qr("fee",Xr.int),qr("ttl",Xr.int)],go=[...io,qr("owner",Xr.id,"ak"),qr("ctVersion",Xr.int),qr("code",Xr.binary,"cb"),qr("log",Xr.binary,"cb"),qr("active",Xr.bool),qr("referers",Xr.ids,"ak"),qr("deposit",yr)],yo=[...io,qr("ownerId",Xr.id,"ak"),qr("nonce",Xr.int),qr("code",Xr.binary,"cb"),qr("authFun",Xr.rawBinary),qr("ctVersion",Xr.ctVersion),qr("fee",Xr.int),qr("ttl",Xr.int),qr("gas",Xr.int),qr("gasPrice",Xr.int),qr("callData",Xr.binary,"cb")],mo=[...io,qr("gaId",Xr.id,"ak"),qr("authData",Xr.binary,"cb"),qr("abiVersion",Xr.int),qr("fee",Xr.int),qr("gas",Xr.int),qr("gasPrice",Xr.int),qr("tx",Xr.rlpBinary)],Io=[...io,qr("payerId",Xr.id,"ak"),qr("nonce",Xr.int),qr("fee",Xr.int),qr("tx",Xr.rlpBinary)],vo=[...io,qr("ownerId",Xr.id,"ak"),qr("nonce",Xr.int),qr("code",Xr.binary,"cb"),qr("ctVersion",Xr.ctVersion),qr("fee",Xr.int),qr("ttl",Xr.int),qr("deposit",yr),qr("amount",Xr.amount),qr("gas",Xr.int),qr("gasPrice",Xr.int),qr("callData",Xr.binary,"cb")],wo=[...io,qr("callerId",Xr.id,"ak"),qr("nonce",Xr.int),qr("contractId",Xr.id,["ct","nm"]),qr("abiVersion",Xr.int),qr("fee",Xr.int),qr("ttl",Xr.int),qr("amount",Xr.amount),qr("gas",Xr.int),qr("gasPrice",Xr.int),qr("callData",Xr.binary,"cb")],Eo=[...io,qr("callerId",Xr.id,"ak"),qr("callerNonce",Xr.int),qr("height",Xr.int),qr("contractId",Xr.id,"ct"),qr("gasPrice",Xr.int),qr("gasUsed",Xr.int),qr("returnValue",Xr.binary,"cb"),qr("returnType",Xr.callReturnType),qr("log",Xr.rawBinary)],Bo=[...io,qr("accountId",Xr.id,"ak"),qr("nonce",Xr.int),qr("queryFormat",Xr.string),qr("responseFormat",Xr.string),qr("queryFee",Xr.amount),qr("oracleTtlType",Xr.int),qr("oracleTtlValue",Xr.int),qr("fee",Xr.int),qr("ttl",Xr.int),qr("abiVersion",Xr.int)],Co=[...io,qr("oracleId",Xr.id,["ok","nm"]),qr("nonce",Xr.int),qr("oracleTtlType",Xr.int),qr("oracleTtlValue",Xr.int),qr("fee",Xr.int),qr("ttl",Xr.int)],bo=[...io,qr("senderId",Xr.id,"ak"),qr("nonce",Xr.int),qr("oracleId",Xr.id,["ok","nm"]),qr("query",Xr.string),qr("queryFee",Xr.amount),qr("queryTtlType",Xr.int),qr("queryTtlValue",Xr.int),qr("responseTtlType",Xr.int),qr("responseTtlValue",Xr.int),qr("fee",Xr.int),qr("ttl",Xr.int)],Qo=[...io,qr("oracleId",Xr.id,"ok"),qr("nonce",Xr.int),qr("queryId",Xr.binary,"oq"),qr("response",Xr.string),qr("responseTtlType",Xr.int),qr("responseTtlValue",Xr.int),qr("fee",Xr.int),qr("ttl",Xr.int)],xo=[...io,qr("initiator",Xr.id,"ak"),qr("initiatorAmount",Xr.int),qr("responder",Xr.id,"ak"),qr("responderAmount",Xr.int),qr("channelReserve",Xr.int),qr("lockPeriod",Xr.int),qr("ttl",Xr.int),qr("fee",Xr.int),qr("initiatorDelegateIds",Xr.string),qr("responderDelegateIds",Xr.string),qr("stateHash",Xr.binary,"st"),qr("nonce",Xr.int)],_o=[...io,qr("channelId",Xr.id,"ch"),qr("fromId",Xr.id,"ak"),qr("amount",Xr.int),qr("ttl",Xr.int),qr("fee",Xr.int),qr("stateHash",Xr.binary,"st"),qr("round",Xr.int),qr("nonce",Xr.int)],So=[...io,qr("channelId",Xr.id,"ch"),qr("toId",Xr.id,"ak"),qr("amount",Xr.int),qr("ttl",Xr.int),qr("fee",Xr.int),qr("stateHash",Xr.binary,"st"),qr("round",Xr.int),qr("nonce",Xr.int)],To=[...io,qr("channelId",Xr.id,"ch"),qr("fromId",Xr.id,"ak"),qr("initiatorAmountFinal",Xr.int),qr("responderAmountFinal",Xr.int),qr("ttl",Xr.int),qr("fee",Xr.int),qr("nonce",Xr.int)],Oo=[...io,qr("channelId",Xr.id,"ch"),qr("fromId",Xr.id,"ak"),qr("payload",Xr.binary,"tx"),qr("poi",Xr.binary,"pi"),qr("ttl",Xr.int),qr("fee",Xr.int),qr("nonce",Xr.int)],No=[...io,qr("channelId",Xr.id,"ch"),qr("fromId",Xr.id,"ak"),qr("payload",Xr.binary,"tx"),qr("poi",Xr.binary,"pi"),qr("ttl",Xr.int),qr("fee",Xr.int),qr("nonce",Xr.int)],ko=[...io,qr("channelId",Xr.id,"ch"),qr("fromId",Xr.id,"ak"),qr("initiatorAmountFinal",Xr.int),qr("responderAmountFinal",Xr.int),qr("ttl",Xr.int),qr("fee",Xr.int),qr("nonce",Xr.int)],Do=[...io,qr("channelId",Xr.id,"ch"),qr("fromId",Xr.id,"ak"),qr("payload",Xr.binary,"tx"),qr("round",Xr.int),qr("update",Xr.binary,"cb"),qr("stateHash",Xr.binary,"st"),qr("offChainTrees",Xr.stateTree),qr("ttl",Xr.int),qr("fee",Xr.int),qr("nonce",Xr.int)],Fo=[...io,qr("channelId",Xr.id,"ch"),qr("round",Xr.int),qr("stateHash",Xr.binary,"st")],Uo=[...io,qr("initiator",Xr.id,"ak"),qr("responder",Xr.id,"ak"),qr("channelAmount",Xr.int),qr("initiatorAmount",Xr.int),qr("responderAmount",Xr.int),qr("channelReserve",Xr.int),qr("initiatorDelegateIds",Xr.ids),qr("responderDelegateIds",Xr.ids),qr("stateHash",Xr.hex),qr("round",Xr.int),qr("soloRound",Xr.int),qr("lockPeriod",Xr.int),qr("lockedUntil",Xr.int),qr("initiatorAuth",Xr.binary,"cb"),qr("responderAuth",Xr.binary,"cb")],Ro=[...io,qr("channelId",Xr.id,"ch"),qr("fromId",Xr.id,"ak"),qr("payload",Xr.binary,"tx"),qr("ttl",Xr.int),qr("fee",Xr.int),qr("nonce",Xr.int)],Po=[...io,qr("owner",Xr.id,"ak"),qr("ctVersion",Xr.int),qr("code",Xr.binary,"cb"),qr("deposit",Xr.int),qr("callData",Xr.binary,"cb")],Mo=[...io,qr("caller",Xr.id,"ak"),qr("contract",Xr.id,"ct"),qr("abiVersion",Xr.int),qr("amount",Xr.int),qr("callData",Xr.binary,"cb"),qr("callStack",Xr.callStack),qr("gasPrice",Xr.int),qr("gasLimit",Xr.int)],jo=[...io,qr("channelId",Xr.id,"ch"),qr("round",Xr.int),qr("role",Xr.string),qr("pubkey",Xr.id,"ak")],Lo=[...io,qr("from",Xr.id,"ak"),qr("to",Xr.id,"ak"),qr("amount",Xr.int)],Go=[...io,qr("from",Xr.id,"ak"),qr("amount",Xr.int)],Ho=[...io,qr("from",Xr.id,"ak"),qr("amount",Xr.int)],qo=[...io,qr("accounts",Xr.mptrees),qr("calls",Xr.mptrees),qr("channels",Xr.mptrees),qr("contracts",Xr.mptrees),qr("ns",Xr.mptrees),qr("oracles",Xr.mptrees)],Yo=[...io,qr("contracts",Xr.rlpBinary),qr("calls",Xr.rlpBinary),qr("channels",Xr.rlpBinary),qr("ns",Xr.rlpBinary),qr("oracles",Xr.rlpBinary),qr("accounts",Xr.rlpBinary)],Ko=[...io,qr("values",Xr.rlpBinaries)],zo=[...io,qr("key",Xr.hex),qr("value",Xr.rawBinary)],Vo=[...io,qr("contracts",Xr.rlpBinary)],Jo=[...io,qr("calls",Xr.rlpBinary)],Wo=[...io,qr("channels",Xr.rlpBinary)],$o=[...io,qr("mtree",Xr.rlpBinary)],Xo=[...io,qr("otree",Xr.rlpBinary)],Zo=[...io,qr("accounts",Xr.rlpBinary)],ei={[Kr.account]:{2:Yr(so,10)},[Kr.signed]:{1:Yr(uo,Tr)},[Kr.spend]:{1:Yr(co,12)},[Kr.namePreClaim]:{1:Yr(Ao,33)},[Kr.nameClaim]:{2:Yr(lo,32)},[Kr.nameUpdate]:{1:Yr(fo,34)},[Kr.nameTransfer]:{1:Yr(ho,36)},[Kr.nameRevoke]:{1:Yr(po,35)},[Kr.contract]:{1:Yr(go,40)},[Kr.contractCreate]:{1:Yr(vo,42)},[Kr.contractCall]:{1:Yr(wo,43)},[Kr.contractCallResult]:{1:Yr(Eo,41)},[Kr.oracleRegister]:{1:Yr(Bo,22)},[Kr.oracleExtend]:{1:Yr(Co,25)},[Kr.oracleQuery]:{1:Yr(bo,23)},[Kr.oracleResponse]:{1:Yr(Qo,24)},[Kr.channelCreate]:{2:Yr(xo,50)},[Kr.channelCloseMutual]:{1:Yr(To,53)},[Kr.channelCloseSolo]:{1:Yr(Oo,54)},[Kr.channelSlash]:{1:Yr(No,55)},[Kr.channelDeposit]:{1:Yr(_o,51)},[Kr.channelWithdraw]:{1:Yr(So,52)},[Kr.channelSettle]:{1:Yr(ko,56)},[Kr.channelForceProgress]:{1:Yr(Do,Or)},[Kr.channelOffChain]:{2:Yr(Fo,57)},[Kr.channel]:{3:Yr(Uo,58)},[Kr.channelSnapshotSolo]:{1:Yr(Ro,59)},[Kr.channelOffChainUpdateTransfer]:{1:Yr(Lo,Nr)},[Kr.channelOffChainUpdateDeposit]:{1:Yr(Go,kr)},[Kr.channelOffChainUpdateWithdrawal]:{1:Yr(Ho,Dr)},[Kr.channelOffChainCreateContract]:{1:Yr(Po,Fr)},[Kr.channelOffChainCallContract]:{1:Yr(Mo,Ur)},[Kr.channelReconnect]:{1:Yr(jo,Rr)},[Kr.proofOfInclusion]:{1:Yr(qo,60)},[Kr.stateTrees]:{1:Yr(Yo,62)},[Kr.merklePatriciaTree]:{1:Yr(Ko,63)},[Kr.merklePatriciaTreeValue]:{1:Yr(zo,64)},[Kr.contractsTree]:{1:Yr(Vo,Pr)},[Kr.contractCallsTree]:{1:Yr(Jo,Mr)},[Kr.channelsTree]:{1:Yr(Wo,jr)},[Kr.nameserviceTree]:{1:Yr($o,Lr)},[Kr.oraclesTree]:{1:Yr(Xo,Gr)},[Kr.accountsTree]:{1:Yr(Zo,Hr)},[Kr.gaAttach]:{1:Yr(yo,80)},[Kr.gaMeta]:{2:Yr(mo,81)},[Kr.payingFor]:{1:Yr(Io,82)}},ti={10:{2:Yr(so,10)},[Tr]:{1:Yr(uo,Tr)},12:{1:Yr(co,12)},33:{1:Yr(Ao,33)},32:{2:Yr(lo,32)},34:{1:Yr(fo,34)},36:{1:Yr(ho,36)},35:{1:Yr(po,35)},40:{1:Yr(go,40)},42:{1:Yr(vo,42)},43:{1:Yr(wo,43)},41:{1:Yr(Eo,41)},22:{1:Yr(Bo,22)},25:{1:Yr(Co,25)},23:{1:Yr(bo,23)},24:{1:Yr(Qo,24)},50:{2:Yr(xo,50)},53:{1:Yr(To,53)},54:{1:Yr(Oo,54)},55:{1:Yr(No,55)},51:{1:Yr(_o,51)},52:{1:Yr(So,52)},56:{1:Yr(ko,56)},57:{2:Yr(Fo,57)},58:{3:Yr(Uo,58)},59:{1:Yr(Ro,59)},[Nr]:{1:Yr(Lo,Nr)},[kr]:{1:Yr(Go,kr)},[Dr]:{1:Yr(Ho,Dr)},[Fr]:{1:Yr(Po,Fr)},[Ur]:{1:Yr(Mo,Ur)},[Rr]:{1:Yr(jo,Rr)},60:{1:Yr(qo,60)},62:{1:Yr(Yo,62)},63:{1:Yr(Ko,63)},64:{1:Yr(zo,64)},[Pr]:{1:Yr(Vo,Pr)},[Mr]:{1:Yr(Jo,Mr)},[jr]:{1:Yr(Wo,jr)},[Lr]:{1:Yr($o,Lr)},[Gr]:{1:Yr(Xo,Gr)},[Hr]:{1:Yr(Zo,Hr)},80:{1:Yr(yo,80)},81:{2:Yr(mo,81)},82:{1:Yr(Io,82)},[Or]:{1:Yr(Do,Or)},70:{3:Yr(ao,70)}};var ni,ri=n(48764).Buffer;!function(e){e[e.Branch=0]="Branch",e[e.Extension=1]="Extension",e[e.Leaf=2]="Leaf"}(ni||(ni={}));class oi{static nodeHash(e){return ri.from(St((0,pn.encode)(e))).toString("hex")}constructor(e){if(this.rootHash=e[0].toString("hex"),this.nodes=Object.fromEntries(e[1].map((e=>[e[0].toString("hex"),e[1]]))),void 0===this.nodes[this.rootHash])throw new Se("Can't find a node by root hash");Object.entries(this.nodes).forEach((e=>{let[t,n]=e;if(oi.nodeHash(n)!==t)throw new _e;const{type:r,payload:o}=oi.parseNode(n);switch(r){case ni.Branch:o.slice(0,16).filter((e=>e.length)).forEach((e=>{if(void 0===this.nodes[e.toString("hex")])throw new Se("Can't find a node by hash in branch node")}));break;case ni.Extension:if(void 0===this.nodes[o[0].toString("hex")])throw new Se("Can't find a node by hash in extension node")}}))}isEqual(e){return this.rootHash===e.rootHash}static parseNode(e){switch(e.length){case 17:return{type:ni.Branch,payload:e,path:null};case 2:{const t=e[0].toString("hex"),n=parseInt(t[0],16);if(n>3)throw new ke(n);const r=n<=1?ni.Extension:ni.Leaf,o=[0,2].includes(n)?2:1;return{type:r,payload:[e[1]],path:t.slice(o)}}default:throw new Ne(e.length)}}serialize(){return[ri.from(this.rootHash,"hex"),Object.entries(this.nodes).map((e=>{let[t,n]=e;return[ri.from(t,"hex"),n]}))]}get(e){let t=this.rootHash;for(;;){const{type:n,payload:r,path:o}=oi.parseNode(this.nodes[t]);switch(n){case ni.Branch:if(0===e.length)return r[16];t=r[parseInt(e[0],16)].toString("hex"),e=e.substr(1);break;case ni.Extension:if(e.substr(0,null==o?void 0:o.length)!==o)return;t=r[0].toString("hex"),e=e.substr(o.length);break;case ni.Leaf:if(o!==e)return;return r[0]}}}}var ii=n(48764).Buffer;const ai="delta";function si(e,t,n){if(!e)return"";switch(t){case Xr.ctVersion:{const[t,,n]=e;return{vmVersion:rr(ii.from([t])),abiVersion:rr(ii.from([n]))}}case Xr.amount:case Xr.int:return rr(e);case Xr.id:return tr(e);case Xr.ids:return e.map(tr);case Xr.bool:return 1===e[0];case Xr.binary:return Qt(e,n);case Xr.stateTree:return Qt(e,"ss");case Xr.string:return e.toString();case Xr.payload:return Qt(e,"ba");case Xr.pointers:return ir(e);case Xr.rlpBinary:return vi(e,!0);case Xr.rlpBinaries:return e.map((e=>vi(e,!0)));case Xr.rawBinary:return e;case Xr.hex:return e.toString("hex");case Xr.offChainUpdates:return e.map((e=>vi(e,!0)));case Xr.callStack:return[rr(e)];case Xr.mptrees:return e.map((e=>new oi(e)));case Xr.callReturnType:switch(rr(e)){case"0":return"ok";case"1":return"error";case"2":return"revert";default:return e}case Xr.sophiaCodeTypeInfo:return e.reduce(((e,t)=>{let[n,r,o,i]=t;return{...e,[r.toString()]:{funHash:n,argType:o,outType:i}}}),{});default:return t.prototype instanceof dr?t.deserialize(e):e}}function ci(e,t,n,r){var o;switch(t){case Xr.amount:case Xr.int:return nr(e);case Xr.id:return er(e);case Xr.ids:return e.map(er);case Xr.bool:return ii.from([e?1:0]);case Xr.binary:return bt(e,n);case Xr.stateTree:return bt(e,"ss");case Xr.hex:return ii.from(e,"hex");case Xr.signatures:return e.map(ii.from);case Xr.payload:return"string"==typeof e&&"ba"===e.split("_")[0]?bt(e,"ba"):At(e);case Xr.string:return At(e);case Xr.pointers:return or(e);case Xr.rlpBinary:return null!==(o=e.rlpEncoded)&&void 0!==o?o:e;case Xr.mptrees:return e.map((e=>e.serialize()));case Xr.ctVersion:return ii.from([...At(e.vmVersion),0,...At(e.abiVersion)]);case Xr.callReturnType:switch(e){case"ok":return nr(0);case"error":return nr(1);case"revert":return nr(2);default:return e}default:return t.prototype instanceof dr?t.serialize(e,r):e}}function ui(e,t,n){if(null==e)return"Field is required";switch(t){case Xr.amount:case Xr.int:return isNaN(e)&&!v().isBigNumber(e)?`${e} is not of type Number or BigNumber`:new(v())(e).lt(0)?`${e} must be >= 0`:void 0;case Xr.id:return(Array.isArray(n)?n:[n]).includes(e.split("_")[0])?void 0:`'${e}' prefix doesn't match expected prefix '${n}'`;case Xr.ctVersion:return null!=e&&e.abiVersion&&null!=e&&e.vmVersion?void 0:'Value must be an object with "vmVersion" and "abiVersion" fields';case Xr.pointers:if(!Array.isArray(e))return"Value must be of type Array";if(e.some((e=>!(null!=e&&e.key&&null!=e&&e.id))))return'Value must contains only object\'s like \'{key: "account_pubkey", id: "ak_lkamsflkalsdalksdlasdlasdlamd"}\'';if(e.length>32)return`Expected 32 pointers or less, got ${e.length} instead`}}function Ai(e,t){let{denomination:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=t.filter((e=>{let[t,n]=e;return n===Xr.amount})).reduce(((t,r)=>{let[o]=r;return{...e,[o]:wn(e[o],{denomination:n})}}),e);const r=t.map((e=>{let[t]=e;return t}));return Object.entries(e).reduce(((e,t)=>{let[n,o]=t;return r.includes(n)&&(e[n]=o),["oracleTtl","queryTtl","responseTtl"].includes(n)&&(e[`${n}Type`]=o.type===ai?0:1,e[`${n}Value`]=o.value),e}),{})}function li(e,t){const n={[Kr.oracleRegister]:"oracleTtl",[Kr.oracleExtend]:"oracleTtl",[Kr.oracleQuery]:"queryTtl",[Kr.oracleResponse]:"responseTtl"}[t];return e[n]||e[`${n}Value`]?e[`${n}Value`]||e[n].value:1}function fi(e,t){let{gas:n=0,params:r,vsn:o}=t;const i=v()(1e9);if(!r)return v()(to).times(i).toString(10);let a=hi(e,{params:{...r,fee:0},multiplier:i,gas:n,vsn:o}),s=v()(0);for(;!a.eq(s);)a=hi(e,{params:{...r,fee:a},multiplier:i,gas:n,vsn:o}),s=a;return s.toString(10)}function hi(e,t){let{params:n,gas:r=0,multiplier:o,vsn:i}=t;const{rlpEncoded:a}=Ii({...n},e,{vsn:i}),s=a.length;return ro(e).plus(oo(e,s,{relativeTtl:li(n,e),innerTxSize:[Kr.gaMeta,Kr.payingFor].includes(e)?n.tx.tx.encodedTx.rlpEncoded.length:0})).times(o)}function pi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,{gas:n=0,params:r,showWarning:o=!0,vsn:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!r&&o&&console.warn(`Can't build transaction fee, we will use DEFAULT_FEE(${to})`),e||fi(t,{params:r,gas:n,vsn:i})}function di(e,t,n){let{excludeKeys:r=[]}=n;return Object.fromEntries(t.filter((e=>{let[t]=e;return!r.includes(t)&&!["payload","nameFee","deposit"].includes(t)})).map((t=>{let[n,r,o]=t;return[n,ui(e[n],r,o)]})).filter((e=>{let[,t]=e;return t})))}function gi(e,t){let{excludeKeys:n=[],denomination:r=yn.AETTOS}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t.filter((e=>{let[t]=e;return!n.includes(t)})),i=di(e=Ai(e,o,{denomination:r}),t,{excludeKeys:n});if(Object.keys(i).length)throw new Ye("Transaction build error. "+JSON.stringify(i));return o.map((t=>{let[n,r,o]=t;return ci(e[n],r,o,e)}))}function yi(e,t){return t.reduce(((t,n,r)=>{let[o,i,a]=n;return Object.assign(t,{[o]:si(e[r],i,a)})}),{})}const mi=e=>{let{vsn:t,objId:n,type:r}=e;const o=!!n,i=o?n:r,a=o?ti:ei;if(!a[i])throw new Je(`Transaction ${o?"deserialization":"serialization"} not implemented for ${o?"tag "+n:r}`);if(!a[i][t])throw new Je(`Transaction ${o?"deserialization":"serialization"} not implemented for ${o?"tag "+n:r} version ${t}`);return a[i][t]};function Ii(e,t){let{excludeKeys:n=[],prefix:r="tx",vsn:o=mr,denomination:i=yn.AETTOS}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[a,s]=mi({type:t,vsn:o}),c=gi({...e,VSN:o,tag:s},a,{excludeKeys:n,denomination:e.denomination||i}).filter((e=>void 0!==e)),u=(0,pn.encode)(c),A=Qt(u,r);return{tx:A,rlpEncoded:u,binary:c,txObject:yi(c,a)}}function vi(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"tx";const r=t?e:bt(e,n),o=(0,pn.decode)(r),i=rr(o[0]),a=rr(o[1]),[s]=mi({objId:i,vsn:a});return{txType:$r[i],tx:yi(o,s),rlpEncoded:r,binary:o}}function wi(e){return Qt(St("string"==typeof e&&e.startsWith("tx_")?bt(e,"tx"):e),"th")}var Ei={calculateMinFee:fi,calculateFee:pi,unpackTx:vi,unpackRawTx:yi,buildTx:Ii,buildRawTx:gi,validateParams:di,buildTxHash:wi},Bi=n(82182),Ci=n(30246),bi=n(48764).Buffer;const Qi=bi.from("ed25519 seed"),xi=2147483648,_i=e=>bi.from(e).toString("hex");function Si(e,t){const n=""===e?[]:(0,Ci.fromString)(e).toPathArray();return n.forEach(((e,t)=>{if(e<xi)throw new Oe(`Segment #${t+1} is not hardened`)})),n.reduce(((e,t)=>Di(e,t)),t)}function Ti(e,t){if(!["m","m/"].includes(e.slice(0,2)))throw new be;const n=ki(t);return Si(e.slice(2),n)}function Oi(e){const{secretKey:t,publicKey:n}=e;return{secretKey:_i(t),publicKey:Qt(n,"ak")}}function Ni(e){return g().sign.keyPair.fromSeed(e)}function ki(e){const t=(0,Bi.full)(e,Qi);return{secretKey:t.slice(0,32),chainCode:t.slice(32)}}function Di(e,t){let{secretKey:n,chainCode:r}=e;if(t<xi)throw new De(t);const o=bi.allocUnsafe(4);o.writeUInt32BE(t,0);const i=bi.concat([bi.alloc(1,0),bi.from(n),bi.from(o)]),a=(0,Bi.full)(i,r);return{secretKey:a.slice(0,32),chainCode:a.slice(32)}}function Fi(e,t){const n=Ti("m/44h/457h",e);return{secretKey:_i(Mt(t,n.secretKey)),chainCode:_i(Mt(t,n.chainCode))}}function Ui(e,t,n){const r={secretKey:jt(t,bi.from(e.secretKey,"hex")),chainCode:jt(t,bi.from(e.chainCode,"hex"))};return new Array(n).fill().map(((e,t)=>Oi(Ni(Si(`${t}h/0h/0h`,r).secretKey))))}const Ri=(e,t)=>({...Oi(Ni(Si(`${t}h/0h/0h`,Ti("m/44h/457h",e)).secretKey)),idx:t});var Pi=n(95389),Mi=n.n(Pi),ji=n(85929),Li=Mi()((0,ji.required)({methods:{spendTx:ji.required,namePreclaimTx:ji.required,nameClaimTx:ji.required,nameTransferTx:ji.required,nameUpdateTx:ji.required,nameRevokeTx:ji.required,contractCreateTx:ji.required,contractCallTx:ji.required,oracleRegisterTx:ji.required,oracleExtendTx:ji.required,oraclePostQueryTx:ji.required,oracleRespondTx:ji.required,getAccountNonce:ji.required,channelCloseSoloTx:ji.required,channelSlashTx:ji.required,channelSettleTx:ji.required,channelSnapshotSoloTx:ji.required,gaAttachTx:ji.required,getVmVersion:ji.required,prepareTxParams:ji.required}}));const Gi=Mi()({deepProps:{Ae:{defaults:{waitMined:!0,verify:!0,_expectedMineRate:18e4,_microBlockCycle:3e3,_maxPollInterval:5e3}}},methods:{_getPollInterval(e){const t={block:this.Ae.defaults._expectedMineRate,microblock:this.Ae.defaults._microBlockCycle}[e];if(!t)throw new Error(`Unknown poll type: ${e}`);return Math.min(t/3,this.Ae.defaults._maxPollInterval)}}},(0,ji.required)({methods:{sendTransaction:ji.required,height:ji.required,awaitHeight:ji.required,poll:ji.required,balance:ji.required,getBalance:ji.required,tx:ji.required,getTxInfo:ji.required,mempool:ji.required,txDryRun:ji.required,getAccount:ji.required}}));var Hi=Gi;function qi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stamp:t,args:n,instance:r}=arguments.length>1?arguments[1]:void 0;return t.compose.deepConfiguration.AsyncInit.initializers.reduce((async(r,o)=>{if(r=await Promise.resolve(r),"function"==typeof o){const i=await Promise.resolve(o.call(r,e,{stamp:t,args:n,instance:r}));return void 0===i?r:i}return r}),r)}var Yi=Mi()({deepConf:{AsyncInit:{initializers:[]}},composers(e){let{stamp:t,composables:n}=e;t.compose.deepConfiguration.AsyncInit.initializers=n.map((e=>{var t,n,r;return(null==e||null===(t=e.compose)||void 0===t||null===(n=t.deepConfiguration)||void 0===n||null===(r=n.AsyncInit)||void 0===r?void 0:r.initializers)||(e.compose||e).initializers||[]})).flat(1/0).filter(((e,t,n)=>!n.slice(0,t).includes(e))).filter((e=>e!==qi)),t.compose.initializers=[qi]}}),Ki=n(89356),zi=n(63263),Vi=n(30699),Ji=n(58377),Wi=n(28834),$i=n(13038),Xi=n(32752),Zi=n(44341);function ea(e,t,n){return t in e?Zi(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ta(e,t){var n=Ki(e);if(zi){var r=zi(e);t&&(r=Vi(r).call(r,(function(t){return Ji(e,t).enumerable}))),n.push.apply(n,r)}return n}function na(e){for(var t=1;t<arguments.length;t++){var n,r,o=null!=arguments[t]?arguments[t]:{};t%2?Wi(n=ta(Object(o),!0)).call(n,(function(t){ea(e,t,o[t])})):$i?Xi(e,$i(o)):Wi(r=ta(Object(o))).call(r,(function(t){Zi(e,t,Ji(o,t))}))}return e}var ra=n(51942),oa=n.n(ra),ia=n(29828),aa=n.n(ia),sa=n(8575),ca=n(51446),ua=n(19996),Aa=n(78363),la=n(95238),fa=n(53592);function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pa(e,t){var n;if(e){if("string"==typeof e)return ha(e,t);var r=la(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?fa(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ha(e,t):void 0}}function da(e,t){var n=void 0!==ca&&ua(e)||e["@@iterator"];if(!n){if(Aa(e)||(n=pa(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}var ga=n(23882);function ya(e){return ya="function"==typeof ca&&"symbol"==typeof ga?function(e){return typeof e}:function(e){return e&&"function"==typeof ca&&e.constructor===ca&&e!==ca.prototype?"symbol":typeof e},ya(e)}function ma(e,t){return function(e){if(Aa(e))return e}(e)||function(e,t){var n=null==e?null:void 0!==ca&&ua(e)||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||pa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ia=n(69798);function va(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Ia.resolve(c).then(r,o)}function wa(e){return function(){var t=this,n=arguments;return new Ia((function(r,o){var i=e.apply(t,n);function a(e){va(i,r,o,a,s,"next",e)}function s(e){va(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ea=n(63109),Ba=n.n(Ea),Ca=n(78580),ba=n.n(Ca),Qa=n(72119),xa=n.n(Qa),_a=n(66419),Sa=n.n(_a),Ta=n(59340),Oa=n.n(Ta),Na=n(2991),ka=n.n(Na),Da=n(86902),Fa=n.n(Da),Ua=n(77766),Ra=n.n(Ua),Pa=n(26295),Ma=n.n(Pa),ja=n(20116),La=n.n(ja),Ga=(n(31905),n(80129)),Ha=n.n(Ga),qa=n(58050),Ya=n.n(qa);const Ka="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:za,Blob:Va,File:Ja}=Ka;function Wa(e){return function(e){if(Aa(e))return ha(e)}(e)||function(e){if(void 0!==ca&&null!=ua(e)||null!=e["@@iterator"])return fa(e)}(e)||pa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var $a=n(3649),Xa=n.n($a),Za=function(e){return":/?#[]@!$&'()*+,;=".indexOf(e)>-1},es=function(e){return/^[a-z0-9\-._~]+$/i.test(e)};function ts(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.escape,o=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&r?o?JSON.parse(e):ka()(t=Wa(e)).call(t,(function(e){var t,n;if(es(e))return e;if(Za(e)&&"unsafe"===r)return e;var o=new TextEncoder;return ka()(t=ka()(n=Sa()(o.encode(e))).call(n,(function(e){var t;return Xa()(t="0".concat(e.toString(16).toUpperCase())).call(t,-2)}))).call(t,(function(e){return"%".concat(e)})).join("")})).join(""):e}function ns(e){var t=e.value;return Array.isArray(t)?function(e){var t=e.key,n=e.value,r=e.style,o=e.explode,i=e.escape,a=function(e){return ts(e,{escape:i})};if("simple"===r)return ka()(n).call(n,(function(e){return a(e)})).join(",");if("label"===r)return".".concat(ka()(n).call(n,(function(e){return a(e)})).join("."));if("matrix"===r)return ka()(n).call(n,(function(e){return a(e)})).reduce((function(e,n){var r,i,a;return!e||o?Ra()(i=Ra()(a="".concat(e||"",";")).call(a,t,"=")).call(i,n):Ra()(r="".concat(e,",")).call(r,n)}),"");if("form"===r){var s=o?"&".concat(t,"="):",";return ka()(n).call(n,(function(e){return a(e)})).join(s)}if("spaceDelimited"===r){var c=o?"".concat(t,"="):"";return ka()(n).call(n,(function(e){return a(e)})).join(" ".concat(c))}if("pipeDelimited"===r){var u=o?"".concat(t,"="):"";return ka()(n).call(n,(function(e){return a(e)})).join("|".concat(u))}}(e):"object"===ya(t)?function(e){var t=e.key,n=e.value,r=e.style,o=e.explode,i=e.escape,a=function(e){return ts(e,{escape:i})},s=Fa()(n);return"simple"===r?s.reduce((function(e,t){var r,i,s,c=a(n[t]),u=o?"=":",",A=e?"".concat(e,","):"";return Ra()(r=Ra()(i=Ra()(s="".concat(A)).call(s,t)).call(i,u)).call(r,c)}),""):"label"===r?s.reduce((function(e,t){var r,i,s,c=a(n[t]),u=o?"=":".",A=e?"".concat(e,"."):".";return Ra()(r=Ra()(i=Ra()(s="".concat(A)).call(s,t)).call(i,u)).call(r,c)}),""):"matrix"===r&&o?s.reduce((function(e,t){var r,o,i=a(n[t]),s=e?"".concat(e,";"):";";return Ra()(r=Ra()(o="".concat(s)).call(o,t,"=")).call(r,i)}),""):"matrix"===r?s.reduce((function(e,r){var o,i,s=a(n[r]),c=e?"".concat(e,","):";".concat(t,"=");return Ra()(o=Ra()(i="".concat(c)).call(i,r,",")).call(o,s)}),""):"form"===r?s.reduce((function(e,t){var r,i,s,c,u=a(n[t]),A=e?Ra()(r="".concat(e)).call(r,o?"&":","):"",l=o?"=":",";return Ra()(i=Ra()(s=Ra()(c="".concat(A)).call(c,t)).call(s,l)).call(i,u)}),""):void 0}(e):function(e){var t,n=e.key,r=e.value,o=e.style,i=e.escape,a=function(e){return ts(e,{escape:i})};return"simple"===o?a(r):"label"===o?".".concat(a(r)):"matrix"===o?Ra()(t=";".concat(n,"=")).call(t,a(r)):"form"===o||"deepObject"===o?a(r):void 0}(e)}var rs=function(e,t){t.body=e},os={serializeRes:us,mergeInQueryOrForm:vs};function is(e){return as.apply(this,arguments)}function as(){return as=wa(Ba().mark((function e(t){var n,r,o,i,a,s=arguments;return Ba().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=s.length>1&&void 0!==s[1]?s[1]:{},"object"===ya(t)&&(t=(n=t).url),n.headers=n.headers||{},os.mergeInQueryOrForm(n),n.headers&&Fa()(n.headers).forEach((function(e){var t=n.headers[e];"string"==typeof t&&(n.headers[e]=t.replace(/\n+/g," "))})),!n.requestInterceptor){e.next=12;break}return e.next=8,n.requestInterceptor(n);case 8:if(e.t0=e.sent,e.t0){e.next=11;break}e.t0=n;case 11:n=e.t0;case 12:return r=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(r)&&n.body instanceof za&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),e.prev=14,e.next=17,(n.userFetch||fetch)(n.url,n);case 17:return o=e.sent,e.next=20,os.serializeRes(o,t,n);case 20:if(o=e.sent,!n.responseInterceptor){e.next=28;break}return e.next=24,n.responseInterceptor(o);case 24:if(e.t1=e.sent,e.t1){e.next=27;break}e.t1=o;case 27:o=e.t1;case 28:e.next=39;break;case 30:if(e.prev=30,e.t2=e.catch(14),o){e.next=34;break}throw e.t2;case 34:throw(i=new Error(o.statusText||"response status is ".concat(o.status))).status=o.status,i.statusCode=o.status,i.responseError=e.t2,i;case 39:if(o.ok){e.next=45;break}throw(a=new Error(o.statusText||"response status is ".concat(o.status))).status=o.status,a.statusCode=o.status,a.response=o,a;case 45:return e.abrupt("return",o);case 46:case"end":return e.stop()}}),e,null,[[14,30]])}))),as.apply(this,arguments)}var ss=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(e)};function cs(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):Ya().load(e)}function us(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.loadSpec,o=void 0!==r&&r,i={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:ls(e.headers)},a=i.headers["content-type"],s=o||ss(a),c=s?e.text:e.blob||e.buffer;return c.call(e).then((function(e){if(i.text=e,i.data=e,s)try{var t=cs(e,a);i.body=t,i.obj=t}catch(e){i.parseError=e}return i}))}function As(e){return ba()(e).call(e,", ")?e.split(", "):e}function ls(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"function"!=typeof xa()(e)?{}:Sa()(xa()(e).call(e)).reduce((function(e,t){var n=ma(t,2),r=n[0],o=n[1];return e[r]=As(o),e}),{})}function fs(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!==ya(e)||"string"!=typeof e.uri):void 0!==Ja&&e instanceof Ja||void 0!==Va&&e instanceof Va||!!ArrayBuffer.isView(e)||null!==e&&"object"===ya(e)&&"function"==typeof e.pipe}function hs(e,t){return Array.isArray(e)&&e.some((function(e){return fs(e,t)}))}var ps={form:",",spaceDelimited:"%20",pipeDelimited:"|"},ds={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function gs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.collectionFormat,o=t.allowEmptyValue,i=t.serializationOption,a=t.encoding,s="object"!==ya(t)||Array.isArray(t)?t:t.value,c=n?function(e){return e.toString()}:function(e){return encodeURIComponent(e)},u=c(e);if(void 0===s&&o)return[[u,""]];if(fs(s)||hs(s))return[[u,s]];if(i)return ys(e,s,n,i);if(a){if([ya(a.style),ya(a.explode),ya(a.allowReserved)].some((function(e){return"undefined"!==e}))){var A=a.style,l=a.explode,f=a.allowReserved;return ys(e,s,n,{style:A,explode:l,allowReserved:f})}if(a.contentType){if("application/json"===a.contentType){var h="string"==typeof s?s:Oa()(s);return[[u,c(h)]]}return[[u,c(s.toString())]]}return"object"!==ya(s)?[[u,c(s)]]:Array.isArray(s)&&s.every((function(e){return"object"!==ya(e)}))?[[u,ka()(s).call(s,c).join(",")]]:[[u,c(Oa()(s))]]}return"object"!==ya(s)?[[u,c(s)]]:Array.isArray(s)?"multi"===r?[[u,ka()(s).call(s,c)]]:[[u,ka()(s).call(s,c).join(ds[r||"csv"])]]:[[u,""]]}function ys(e,t,n,r){var o,i,a,s=r.style||"form",c=void 0===r.explode?"form"===s:r.explode,u=!n&&(r&&r.allowReserved?"unsafe":"reserved"),A=function(e){return ts(e,{escape:u})},l=n?function(e){return e}:function(e){return ts(e,{escape:u})};return"object"!==ya(t)?[[l(e),A(t)]]:Array.isArray(t)?c?[[l(e),ka()(t).call(t,A)]]:[[l(e),ka()(t).call(t,A).join(ps[s])]]:"deepObject"===s?ka()(i=Fa()(t)).call(i,(function(n){var r;return[l(Ra()(r="".concat(e,"[")).call(r,n,"]")),A(t[n])]})):c?ka()(a=Fa()(t)).call(a,(function(e){return[l(e),A(t[e])]})):[[l(e),ka()(o=Fa()(t)).call(o,(function(e){var n;return[Ra()(n="".concat(l(e),",")).call(n,A(t[e]))]})).join(",")]]}function ms(e){return Ma()(e).reduce((function(e,t){var n,r=ma(t,2),o=da(gs(r[0],r[1],!0));try{for(o.s();!(n=o.n()).done;){var i=ma(n.value,2),a=i[0],s=i[1];if(Array.isArray(s)){var c,u=da(s);try{for(u.s();!(c=u.n()).done;){var A=c.value;if(ArrayBuffer.isView(A)){var l=new Va([A]);e.append(a,l)}else e.append(a,A)}}catch(e){u.e(e)}finally{u.f()}}else if(ArrayBuffer.isView(s)){var f=new Va([s]);e.append(a,f)}else e.append(a,s)}}catch(e){o.e(e)}finally{o.f()}return e}),new za)}function Is(e){var t=Fa()(e).reduce((function(t,n){var r,o=da(gs(n,e[n]));try{for(o.s();!(r=o.n()).done;){var i=ma(r.value,2),a=i[0],s=i[1];t[a]=s}}catch(e){o.e(e)}finally{o.f()}return t}),{});return Ha().stringify(t,{encode:!1,indices:!1})||""}function vs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=void 0===t?"":t,r=e.query,o=e.form,i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=La()(t).call(t,(function(e){return e})).join("&");return r?"?".concat(r):""};if(o){var a=Fa()(o).some((function(e){var t=o[e].value;return fs(t)||hs(t)})),s=e.headers["content-type"]||e.headers["Content-Type"];if(a||/multipart\/form-data/i.test(s)){var c=ms(e.form);rs(c,e)}else e.body=Is(o);delete e.form}if(r){var u=n.split("?"),A=ma(u,2),l=A[0],f=A[1],h="";if(f){var p=Ha().parse(f),d=Fa()(r);d.forEach((function(e){return delete p[e]})),h=Ha().stringify(p,{encode:!0})}var g=i(h,Is(r));e.url=l+g,delete e.query}return e}function ws(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Es(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Zi(e,r.key,r)}}function Bs(e,t,n){return t&&Es(e.prototype,t),n&&Es(e,n),Zi(e,"prototype",{writable:!1}),e}var Cs,bs=n(94473),Qs=n.n(bs),xs=n(93476),_s=n.n(xs),Ss=n(92762),Ts=n.n(Ss),Os=(Cs=function(e,t){return Cs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Cs(e,t)},function(e,t){function n(){this.constructor=e}Cs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ns=Object.prototype.hasOwnProperty;function ks(e,t){return Ns.call(e,t)}function Ds(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);for(var r in t=[],e)ks(e,r)&&t.push(r);return t}function Fs(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Us(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function Rs(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ps(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ms(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(Ms(e[t]))return!0}else if("object"==typeof e){var r=Ds(e),o=r.length;for(t=0;t<o;t++)if(Ms(e[r[t]]))return!0}return!1}function js(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}var Ls=function(e){function t(t,n,r,o,i){var a=this.constructor,s=e.call(this,js(t,{name:n,index:r,operation:o,tree:i}))||this;return s.name=n,s.index=r,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=js(t,{name:n,index:r,operation:o,tree:i}),s}return Os(t,e),t}(Error),Gs=Ls,Hs=Fs,qs={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=Ks(n,this.path);r&&(r=Fs(r));var o=zs(n,{op:"remove",path:this.from}).removed;return zs(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=Ks(n,this.from);return zs(n,{op:"add",path:this.path,value:Fs(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:Xs(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},Ys={add:function(e,t,n){return Us(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:qs.move,copy:qs.copy,test:qs.test,_get:qs._get};function Ks(e,t){if(""==t)return e;var n={op:"_get",path:t};return zs(e,n),n.value}function zs(e,t,n,r,o,i){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=0),n&&("function"==typeof n?n(t,0,e,t.path):Ws(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=Ks(e,t.from),"move"===t.op&&(a.removed=e),a;if("test"===t.op){if(a.test=Xs(e,t.value),!1===a.test)throw new Gs("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}if("remove"===t.op)return a.removed=e,a.newDocument=null,a;if("_get"===t.op)return t.value=e,a;if(n)throw new Gs("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}r||(e=Fs(e));var s=(t.path||"").split("/"),c=e,u=1,A=s.length,l=void 0,f=void 0,h=void 0;for(h="function"==typeof n?n:Ws;;){if((f=s[u])&&-1!=f.indexOf("~")&&(f=Ps(f)),o&&"__proto__"==f)throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===l&&(void 0===c[f]?l=s.slice(0,u).join("/"):u==A-1&&(l=t.path),void 0!==l&&h(t,0,e,l)),u++,Array.isArray(c)){if("-"===f)f=c.length;else{if(n&&!Us(f))throw new Gs("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Us(f)&&(f=~~f)}if(u>=A){if(n&&"add"===t.op&&f>c.length)throw new Gs("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=Ys[t.op].call(t,c,f,e)).test)throw new Gs("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=A){if(!1===(a=qs[t.op].call(t,c,f,e)).test)throw new Gs("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[f],n&&u<A&&(!c||"object"!=typeof c))throw new Gs("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function Vs(e,t,n,r,o){if(void 0===r&&(r=!0),void 0===o&&(o=!0),n&&!Array.isArray(t))throw new Gs("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=Fs(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=zs(e,t[a],n,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function Js(e,t,n){var r=zs(e,t);if(!1===r.test)throw new Gs("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function Ws(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new Gs("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!qs[e.op])throw new Gs("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new Gs("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Gs('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new Gs("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new Gs("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&Ms(e.value))throw new Gs("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new Gs("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new Gs("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var a=$s([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new Gs("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function $s(e,t,n){try{if(!Array.isArray(e))throw new Gs("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Vs(Fs(t),Fs(e),n||!0);else{n=n||Ws;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof Gs)return e;throw e}}function Xs(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!Xs(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=Object.keys(e);if((r=s.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!t.hasOwnProperty(s[n]))return!1;for(n=r;0!=n--;)if(!Xs(e[o=s[n]],t[o]))return!1;return!0}return e!=e&&t!=t}var Zs=new WeakMap,ec=function(e){this.observers=new Map,this.obj=e},tc=function(e,t){this.callback=e,this.observer=t};function nc(e,t){t.unobserve()}function rc(e,t){var n,r=function(e){return Zs.get(e)}(e);if(r){var o=function(e,t){return e.observers.get(t)}(r,t);n=o&&o.observer}else r=new ec(e),Zs.set(e,r);if(n)return n;if(n={},r.value=Fs(e),t){n.callback=t,n.next=null;var i=function(){oc(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=[],n.object=e,n.unobserve=function(){oc(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},r.observers.set(t,new tc(t,n)),n}function oc(e,t){void 0===t&&(t=!1);var n=Zs.get(e.object);ic(n.value,e.object,e.patches,"",t),e.patches.length&&Vs(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function ic(e,t,n,r,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Ds(t),a=Ds(e),s=!1,c=a.length-1;c>=0;c--){var u=e[l=a[c]];if(!ks(t,l)||void 0===t[l]&&void 0!==u&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Rs(l),value:Fs(u)}),n.push({op:"remove",path:r+"/"+Rs(l)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var A=t[l];"object"==typeof u&&null!=u&&"object"==typeof A&&null!=A&&Array.isArray(u)===Array.isArray(A)?ic(u,A,n,r+"/"+Rs(l),o):u!==A&&(o&&n.push({op:"test",path:r+"/"+Rs(l),value:Fs(u)}),n.push({op:"replace",path:r+"/"+Rs(l),value:Fs(A)}))}}if(s||i.length!=a.length)for(c=0;c<i.length;c++){var l;ks(e,l=i[c])||void 0===t[l]||n.push({op:"add",path:r+"/"+Rs(l),value:Fs(t[l])})}}}function ac(e,t,n){void 0===n&&(n=!1);var r=[];return ic(e,t,r,"",n),r}Object.assign({},A,l,{JsonPatchError:Ls,deepClone:Fs,escapePathComponent:Rs,unescapePathComponent:Ps});var sc=n(9996),cc=n.n(sc),uc={add:function(e,t){return{op:"add",path:e,value:t}},replace:lc,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce((function(e,t){return void 0!==t&&e?e[t]:e}),e)},applyPatch:function(e,t,n){if(n=n||{},"merge"===(t=na(na({},t),{},{path:t.path&&Ac(t.path)})).op){var r=Cc(e,t.path);oa()(r,t.value),Vs(e,[lc(t.path,r)])}else if("mergeDeep"===t.op){var o=Cc(e,t.path),i=cc()(o,t.value);e=Vs(e,[lc(t.path,i)]).newDocument}else if("add"===t.op&&""===t.path&&mc(t.value)){Vs(e,Fa()(t.value).reduce((function(e,n){return e.push({op:"add",path:"/".concat(Ac(n)),value:t.value[n]}),e}),[]))}else if("replace"===t.op&&""===t.path){var a=t.value;n.allowMetaPatches&&t.meta&&Ec(t)&&(Array.isArray(t.value)||mc(t.value))&&(a=na(na({},a),t.meta)),e=a}else if(Vs(e,[t]),n.allowMetaPatches&&t.meta&&Ec(t)&&(Array.isArray(t.value)||mc(t.value))){var s=na(na({},Cc(e,t.path)),t.meta);Vs(e,[lc(t.path,s)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(var n=0,r=t.length;n<r;n+=1)if(t[n]!==e[n])return!1;return!0},flatten:gc,fullyNormalizeArray:function(e){return yc(gc(dc(e)))},normalizeArray:dc,isPromise:function(e){return mc(e)&&Ic(e.then)},forEachNew:function(e,t){try{return fc(e,pc,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return fc(e,hc,t)}catch(e){return e}},isJsonPatch:vc,isContextPatch:function(e){return Bc(e)&&"context"===e.type},isPatch:Bc,isMutation:wc,isAdditiveMutation:Ec,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Ic,isObject:mc,isError:function(e){return e instanceof Error}};function Ac(e){return Array.isArray(e)?e.length<1?"":"/".concat(ka()(e).call(e,(function(e){return(e+"").replace(/~/g,"~0").replace(/\//g,"~1")})).join("/")):e}function lc(e,t,n){return{op:"replace",path:e,value:t,meta:n}}function fc(e,t,n){var r;return yc(gc(ka()(r=La()(e).call(e,Ec)).call(r,(function(e){return t(e.value,n,e.path)}))||[]))}function hc(e,t,n){return n=n||[],Array.isArray(e)?ka()(e).call(e,(function(e,r){return hc(e,t,Ra()(n).call(n,r))})):mc(e)?ka()(r=Fa()(e)).call(r,(function(r){return hc(e[r],t,Ra()(n).call(n,r))})):t(e,n[n.length-1],n);var r}function pc(e,t,n){var r=[];if((n=n||[]).length>0){var o=t(e,n[n.length-1],n);o&&(r=Ra()(r).call(r,o))}if(Array.isArray(e)){var i=ka()(e).call(e,(function(e,r){return pc(e,t,Ra()(n).call(n,r))}));i&&(r=Ra()(r).call(r,i))}else if(mc(e)){var a,s=ka()(a=Fa()(e)).call(a,(function(r){return pc(e[r],t,Ra()(n).call(n,r))}));s&&(r=Ra()(r).call(r,s))}return gc(r)}function dc(e){return Array.isArray(e)?e:[e]}function gc(e){var t;return Ra()(t=[]).apply(t,Wa(ka()(e).call(e,(function(e){return Array.isArray(e)?gc(e):e}))))}function yc(e){return La()(e).call(e,(function(e){return void 0!==e}))}function mc(e){return e&&"object"===ya(e)}function Ic(e){return e&&"function"==typeof e}function vc(e){if(Bc(e)){var t=e.op;return"add"===t||"remove"===t||"replace"===t}return!1}function wc(e){return vc(e)||Bc(e)&&"mutation"===e.type}function Ec(e){return wc(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Bc(e){return e&&"object"===ya(e)}function Cc(e,t){try{return Ks(e,t)}catch(e){return console.error(e),{}}}var bc=n(52424),Qc=n.n(bc),xc=n(94435),_c=n.n(xc),Sc=n(25609),Tc=n.n(Sc);function Oc(e,t){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.message=n[0],t&&t.apply(this,n)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var Nc=n(13692),kc=n.n(Nc),Dc=["properties"],Fc=["properties"],Uc=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Rc=["schema/example","items/example"];function Pc(e){var t=e[e.length-1],n=e[e.length-2],r=e.join("/");return Dc.indexOf(t)>-1&&-1===Fc.indexOf(n)||Uc.indexOf(r)>-1||Rc.some((function(e){return r.indexOf(e)>-1}))}function Mc(e,t){var n,r=ma(e.split("#"),2),o=r[0],i=r[1],a=sa.resolve(o||"",t||"");return i?Ra()(n="".concat(a,"#")).call(n,i):a}var jc="application/json, application/yaml",Lc=/^([a-z]+:\/\/|\/\/)/i,Gc=Oc("JSONRefError",(function(e,t,n){this.originalError=n,oa()(this,t||{})})),Hc={},qc=new(Qc()),Yc=[function(e){return"paths"===e[0]&&"responses"===e[3]&&"examples"===e[5]},function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7]},function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"example"===e[4]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"example"===e[5]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"examples"===e[4]&&"value"===e[6]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"examples"===e[5]&&"value"===e[7]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"example"===e[6]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"content"===e[4]&&"example"===e[7]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]}],Kc={key:"$ref",plugin:function(e,t,n,r){var o=r.getInstance(),i=Xa()(n).call(n,0,-1);if(!Pc(i)&&!function(e){return Yc.some((function(t){return t(e)}))}(i)){var a=r.getContext(n).baseDoc;if("string"!=typeof e)return new Gc("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:a,fullPath:n});var s,c,u,A=$c(e),l=A[0],f=A[1]||"";try{s=a||l?Jc(l,a):null}catch(t){return Wc(t,{pointer:f,$ref:e,basePath:s,fullPath:n})}if(function(e,t,n,r){var o,i,a=qc.get(r);a||(a={},qc.set(r,a));var s,c=0===(s=n).length?"":"/".concat(ka()(s).call(s,ru).join("/")),u=Ra()(o="".concat(t||"<specmap-base>","#")).call(o,e),A=c.replace(/allOf\/\d+\/?/g,"");if(t===r.contextTree.get([]).baseDoc&&ou(A,e))return!0;var l="",f=n.some((function(e){var t;return l=Ra()(t="".concat(l,"/")).call(t,ru(e)),a[l]&&a[l].some((function(e){return ou(e,u)||ou(u,e)}))}));if(f)return!0;a[A]=Ra()(i=a[A]||[]).call(i,u)}(f,s,i,r)&&!o.useCircularStructures){var h=Mc(e,s);return e===h?null:uc.replace(n,h)}if(null==s?(u=tu(f),void 0===(c=r.get(u))&&(c=new Gc("Could not resolve reference: ".concat(e),{pointer:f,$ref:e,baseDoc:a,fullPath:n}))):c=null!=(c=Xc(s,f)).__value?c.__value:c.catch((function(t){throw Wc(t,{pointer:f,$ref:e,baseDoc:a,fullPath:n})})),c instanceof Error)return[uc.remove(n),c];var p=Mc(e,s),d=uc.replace(i,c,{$$ref:p});if(s&&s!==a)return[d,uc.context(i,{baseDoc:s})];try{if(!function(e,t){var n=[e];return t.path.reduce((function(e,t){return n.push(e[t]),e[t]}),e),function e(t){return uc.isObject(t)&&(n.indexOf(t)>=0||Fa()(t).some((function(n){return e(t[n])})))}(t.value)}(r.state,d)||o.useCircularStructures)return d}catch(e){return null}}}},zc=oa()(Kc,{docCache:Hc,absoluteify:Jc,clearCache:function(e){void 0!==e?delete Hc[e]:Fa()(Hc).forEach((function(e){delete Hc[e]}))},JSONRefError:Gc,wrapError:Wc,getDoc:Zc,split:$c,extractFromDoc:Xc,fetchJSON:function(e){return fetch(e,{headers:{Accept:jc},loadSpec:!0}).then((function(e){return e.text()})).then((function(e){return Tc().load(e)}))},extract:eu,jsonPointerToArray:tu,unescapeJsonPointerToken:nu}),Vc=zc;function Jc(e,t){if(!Lc.test(e)){var n;if(!t)throw new Gc(Ra()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,t,"'"));return sa.resolve(t,e)}return e}function Wc(e,t){var n,r;return n=e&&e.response&&e.response.body?Ra()(r="".concat(e.response.body.code," ")).call(r,e.response.body.message):e.message,new Gc("Could not resolve reference: ".concat(n),t,e)}function $c(e){return(e+"").split("#")}function Xc(e,t){var n=Hc[e];if(n&&!uc.isPromise(n))try{var r=eu(t,n);return oa()(_s().resolve(r),{__value:r})}catch(e){return _s().reject(e)}return Zc(e).then((function(e){return eu(t,e)}))}function Zc(e){var t=Hc[e];return t?uc.isPromise(t)?t:_s().resolve(t):(Hc[e]=zc.fetchJSON(e).then((function(t){return Hc[e]=t,t})),Hc[e])}function eu(e,t){var n=tu(e);if(n.length<1)return t;var r=uc.getIn(t,n);if(void 0===r)throw new Gc("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return r}function tu(e){var t;if("string"!=typeof e)throw new TypeError("Expected a string, got a ".concat(ya(e)));return"/"===e[0]&&(e=e.substr(1)),""===e?[]:ka()(t=e.split("/")).call(t,nu)}function nu(e){return"string"!=typeof e?e:new(_c())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~"))).get("")}function ru(e){var t,n=new(_c())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return Xa()(t=n.toString()).call(t,1)}function ou(e,t){if(!(n=t)||"/"===n||"#"===n)return!0;var n,r=e.charAt(t.length),o=Xa()(t).call(t,-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==o}var iu={key:"allOf",plugin:function(e,t,n,r,o){if(!o.meta||!o.meta.$$ref){var i=Xa()(n).call(n,0,-1);if(!Pc(i)){if(!Array.isArray(e)){var a=new TypeError("allOf must be an array");return a.fullPath=n,a}var s=!1,c=o.value;if(i.forEach((function(e){c&&(c=c[e])})),c=na({},c),0!==Fa()(c).length){delete c.allOf;var u,A,l=[];return l.push(r.replace(i,{})),e.forEach((function(e,t){if(!r.isObject(e)){if(s)return null;s=!0;var o=new TypeError("Elements in allOf must be objects");return o.fullPath=n,l.push(o)}l.push(r.mergeDeep(i,e));var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.specmap,o=n.getBaseUrlForNodePath,i=void 0===o?function(e){var n;return r.getContext(Ra()(n=[]).call(n,Wa(t),Wa(e))).baseDoc}:o,a=n.targetKeys,s=void 0===a?["$ref","$$ref"]:a,c=[];return kc()(e).forEach((function(){if(ba()(s).call(s,this.key)&&"string"==typeof this.node){var e=this.path,n=Ra()(t).call(t,this.path),o=Mc(this.node,i(e));c.push(r.replace(n,o))}})),c}(e,Xa()(n).call(n,0,-1),{getBaseUrlForNodePath:function(e){var o;return r.getContext(Ra()(o=[]).call(o,Wa(n),[t],Wa(e))).baseDoc},specmap:r});l.push.apply(l,Wa(a))})),c.example&&l.push(r.remove(Ra()(u=[]).call(u,i,"example"))),l.push(r.mergeDeep(i,c)),c.$$ref||l.push(r.remove(Ra()(A=[]).call(A,i,"$$ref"))),l}}}}},au={key:"parameters",plugin:function(e,t,n,r){if(Array.isArray(e)&&e.length){var o=oa()([],e),i=Xa()(n).call(n,0,-1),a=na({},uc.getIn(r.spec,i));return e.forEach((function(e,t){try{o[t].default=r.parameterMacro(a,e)}catch(e){var i=new Error(e);return i.fullPath=n,i}})),uc.replace(n,o)}return uc.replace(n,e)}},su={key:"properties",plugin:function(e,t,n,r){var o=na({},e);for(var i in e)try{o[i].default=r.modelPropertyMacro(o[i])}catch(e){var a=new Error(e);return a.fullPath=n,a}return uc.replace(n,o)}},cu=function(){function e(t){ws(this,e),this.root=uu(t||{})}return Bs(e,[{key:"set",value:function(e,t){var n=this.getParent(e,!0);if(n){var r=e[e.length-1],o=n.children;o[r]?Au(o[r],t,n):o[r]=uu(t,n)}else Au(this.root,t,null)}},{key:"get",value:function(e){if((e=e||[]).length<1)return this.root.value;for(var t,n,r=this.root,o=0;o<e.length&&(n=e[o],(t=r.children)[n]);o+=1)r=t[n];return r&&r.protoValue}},{key:"getParent",value:function(e,t){return!e||e.length<1?null:e.length<2?this.root:Xa()(e).call(e,0,-1).reduce((function(e,n){if(!e)return e;var r=e.children;return!r[n]&&t&&(r[n]=uu(null,e)),r[n]}),this.root)}}]),e}();function uu(e,t){return Au({children:{}},e,t)}function Au(e,t,n){return e.value=t||{},e.protoValue=n?na(na({},n.protoValue),e.value):e.value,Fa()(e.children).forEach((function(t){var n=e.children[t];e.children[t]=Au(n,n.value,e)})),e}var lu=function(){},fu=function(){function e(t){var n,r,o=this;ws(this,e),oa()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new cu,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:oa()(Object.create(this),uc,{getInstance:function(){return o}}),allowMetaPatches:!1},t),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=La()(n=ka()(r=this.plugins).call(r,this.wrapPlugin.bind(this))).call(n,uc.isFunction),this.patches.push(uc.add([],this.spec)),this.patches.push(uc.context([],this.context)),this.updatePatches(this.patches)}return Bs(e,[{key:"debug",value:function(e){if(this.debugLevel===e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).log.apply(t,r)}}},{key:"verbose",value:function(e){if("verbose"===this.debugLevel){for(var t,n,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(t=console).log.apply(t,Ra()(n=["[".concat(e,"] ")]).call(n,o))}}},{key:"wrapPlugin",value:function(e,t){var n,r,o,i=this.pathDiscriminator,a=null;return e[this.pluginProp]?(a=e,n=e[this.pluginProp]):uc.isFunction(e)?n=e:uc.isObject(e)&&(r=e,o=function(e,t){return!Array.isArray(e)||e.every((function(e,n){return e===t[n]}))},n=Ba().mark((function e(t,n){var a,s,c,u,A,l;return Ba().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l=function(e,t,c){var u,A,f,h,p,d,g,y,m,I,v,w,E;return Ba().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(uc.isObject(e)){a.next=6;break}if(r.key!==t[t.length-1]){a.next=4;break}return a.next=4,r.plugin(e,r.key,t,n);case 4:a.next=30;break;case 6:u=t.length-1,A=t[u],f=t.indexOf("properties"),h="properties"===A&&u===f,p=n.allowMetaPatches&&s[e.$$ref],d=0,g=Fa()(e);case 12:if(!(d<g.length)){a.next=30;break}if(y=g[d],m=e[y],I=Ra()(t).call(t,y),v=uc.isObject(m),w=e.$$ref,p){a.next=22;break}if(!v){a.next=22;break}return n.allowMetaPatches&&w&&(s[w]=!0),a.delegateYield(l(m,I,c),"t0",22);case 22:if(h||y!==r.key){a.next=27;break}if(E=o(i,t),i&&!E){a.next=27;break}return a.next=27,r.plugin(m,y,I,n,c);case 27:d++,a.next=12;break;case 30:case"end":return a.stop()}}),a)},a=Ba().mark(l),s={},c=da(La()(t).call(t,uc.isAdditiveMutation)),e.prev=4,c.s();case 6:if((u=c.n()).done){e.next=11;break}return A=u.value,e.delegateYield(l(A.value,A.path,A),"t0",9);case 9:e.next=6;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(4),c.e(e.t1);case 16:return e.prev=16,c.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,13,16,19]])}))),oa()(n.bind(a),{pluginName:e.name||t,isGenerator:uc.isGenerator(n)})}},{key:"nextPlugin",value:function(){var e,t=this;return Qs()(e=this.wrappedPlugins).call(e,(function(e){return t.getMutationsForPlugin(e).length>0}))}},{key:"nextPromisedPatch",value:function(){var e;if(this.promisedPatches.length>0)return _s().race(ka()(e=this.promisedPatches).call(e,(function(e){return e.value})))}},{key:"getPluginHistory",value:function(e){var t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}},{key:"getPluginRunCount",value:function(e){return this.getPluginHistory(e).length}},{key:"getPluginHistoryTip",value:function(e){var t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}},{key:"getPluginMutationIndex",value:function(e){var t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}},{key:"updatePluginHistory",value:function(e,t){var n=this.constructor.getPluginName(e);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(t)}},{key:"updatePatches",value:function(e){var t=this;uc.normalizeArray(e).forEach((function(e){if(e instanceof Error)t.errors.push(e);else try{if(!uc.isObject(e))return void t.debug("updatePatches","Got a non-object patch",e);if(t.showDebug&&t.allPatches.push(e),uc.isPromise(e.value))return t.promisedPatches.push(e),void t.promisedPatchThen(e);if(uc.isContextPatch(e))return void t.setContext(e.path,e.value);if(uc.isMutation(e))return void t.updateMutations(e)}catch(e){console.error(e),t.errors.push(e)}}))}},{key:"updateMutations",value:function(e){"object"===ya(e.value)&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value=na({},e.value));var t=uc.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}},{key:"removePromisedPatch",value:function(e){var t,n=this.promisedPatches.indexOf(e);n<0?this.debug("Tried to remove a promisedPatch that isn't there!"):Ts()(t=this.promisedPatches).call(t,n,1)}},{key:"promisedPatchThen",value:function(e){var t=this;return e.value=e.value.then((function(n){var r=na(na({},e),{},{value:n});t.removePromisedPatch(e),t.updatePatches(r)})).catch((function(n){t.removePromisedPatch(e),t.updatePatches(n)})),e.value}},{key:"getMutations",value:function(e,t){var n;return e=e||0,"number"!=typeof t&&(t=this.mutations.length),Xa()(n=this.mutations).call(n,e,t)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(e){var t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(e){return uc.getIn(this.state,e)}},{key:"_getContext",value:function(e){return this.contextTree.get(e)}},{key:"setContext",value:function(e,t){return this.contextTree.set(e,t)}},{key:"_hasRun",value:function(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}},{key:"dispatch",value:function(){var e,t=this,n=this,r=this.nextPlugin();if(!r){var o=this.nextPromisedPatch();if(o)return o.then((function(){return t.dispatch()})).catch((function(){return t.dispatch()}));var i={spec:this.state,errors:this.errors};return this.showDebug&&(i.patches=this.allPatches),_s().resolve(i)}if(n.pluginCount=n.pluginCount||{},n.pluginCount[r]=(n.pluginCount[r]||0)+1,n.pluginCount[r]>100)return _s().resolve({spec:n.state,errors:Ra()(e=n.errors).call(e,new Error("We've reached a hard limit of ".concat(100," plugin runs")))});if(r!==this.currentPlugin&&this.promisedPatches.length){var a,s=ka()(a=this.promisedPatches).call(a,(function(e){return e.value}));return _s().all(ka()(s).call(s,(function(e){return e.then(lu,lu)}))).then((function(){return t.dispatch()}))}return function(){n.currentPlugin=r;var e=n.getCurrentMutations(),t=n.mutations.length-1;try{if(r.isGenerator){var o,i=da(r(e,n.getLib()));try{for(i.s();!(o=i.n()).done;)c(o.value)}catch(e){i.e(e)}finally{i.f()}}else c(r(e,n.getLib()))}catch(e){console.error(e),c([oa()(Object.create(e),{plugin:r})])}finally{n.updatePluginHistory(r,{mutationIndex:t})}return n.dispatch()}();function c(e){e&&(e=uc.fullyNormalizeArray(e),n.updatePatches(e,r))}}}],[{key:"getPluginName",value:function(e){return e.pluginName}},{key:"getPatchesOfType",value:function(e,t){return La()(e).call(e,t)}}]),e}(),hu={refs:Vc,allOf:iu,parameters:au,properties:su},pu=function(e){return String.prototype.toLowerCase.call(e)},du=function(e){return e.replace(/[^\w]/gi,"_")};function gu(e){var t=e.openapi;return!!t&&aa()(t).call(t,"3")}function yu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.v2OperationIdCompatibilityMode;if(!e||"object"!==ya(e))return null;var i=(e.operationId||"").replace(/\s/g,"");return i.length?du(e.operationId):mu(t,n,{v2OperationIdCompatibilityMode:o})}function mu(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.v2OperationIdCompatibilityMode;if(o){var i,a,s=Ra()(i="".concat(t.toLowerCase(),"_")).call(i,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return(s=s||Ra()(a="".concat(e.substring(1),"_")).call(a,t)).replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Ra()(n="".concat(pu(t))).call(n,du(e))}function Iu(e,t){var n;return Ra()(n="".concat(pu(t),"-")).call(n,e)}function vu(e,t){return e&&e.paths?function(e,n){return wu(e,(function(e){var n=e.pathName,r=e.method,o=e.operation;if(!o||"object"!==ya(o))return!1;var i=o.operationId;return[yu(o,n,r),Iu(n,r),i].some((function(e){return e&&e===t}))}),!0)||null}(e):null}function wu(e,t,n){if(!e||"object"!==ya(e)||!e.paths||"object"!==ya(e.paths))return null;var r=e.paths;for(var o in r)for(var i in r[o])if("PARAMETERS"!==i.toUpperCase()){var a=r[o][i];if(a&&"object"===ya(a)){var s={spec:e,pathName:o,method:i.toUpperCase(),operation:a},c=t(s);if(n&&c)return s}}}function Eu(e){var t=e.spec,n=t.paths,r={};if(!n||t.$$normalized)return e;for(var o in n){var i,a=n[o];if(null!=a&&ba()(i=["object","function"]).call(i,ya(a))){var s=a.parameters,c=function(e){var n,i=a[e];if(null==i||!ba()(n=["object","function"]).call(n,ya(i)))return"continue";var c=yu(i,o,e);if(c){r[c]?r[c].push(i):r[c]=[i];var u=r[c];if(u.length>1)u.forEach((function(e,t){var n;e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=Ra()(n="".concat(c)).call(n,t+1)}));else if(void 0!==i.operationId){var A=u[0];A.__originalOperationId=A.__originalOperationId||i.operationId,A.operationId=c}}if("parameters"!==e){var l=[],f={};for(var h in t)"produces"!==h&&"consumes"!==h&&"security"!==h||(f[h]=t[h],l.push(f));if(s&&(f.parameters=s,l.push(f)),l.length){var p,d=da(l);try{for(d.s();!(p=d.n()).done;){var g=p.value;for(var y in g)if(i[y]){if("parameters"===y){var m,I=da(g[y]);try{var v=function(){var e=m.value;i[y].some((function(t){return t.name&&t.name===e.name||t.$ref&&t.$ref===e.$ref||t.$$ref&&t.$$ref===e.$$ref||t===e}))||i[y].push(e)};for(I.s();!(m=I.n()).done;)v()}catch(e){I.e(e)}finally{I.f()}}}else i[y]=g[y]}}catch(e){d.e(e)}finally{d.f()}}}};for(var u in a)c(u)}}return t.$$normalized=!0,e}function Bu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.requestInterceptor,r=t.responseInterceptor,o=e.withCredentials?"include":"same-origin";return function(t){return e({url:t,loadSpec:!0,requestInterceptor:n,responseInterceptor:r,headers:{Accept:jc},credentials:o}).then((function(e){return e.body}))}}function Cu(e){var t=e.fetch,n=e.spec,r=e.url,o=e.mode,i=e.allowMetaPatches,a=void 0===i||i,s=e.pathDiscriminator,c=e.modelPropertyMacro,u=e.parameterMacro,A=e.requestInterceptor,l=e.responseInterceptor,f=e.skipNormalization,h=e.useCircularStructures,p=e.http,d=e.baseDoc;return d=d||r,p=t||p||is,n?g(n):Bu(p,{requestInterceptor:A,responseInterceptor:l})(d).then(g);function g(e){d&&(hu.refs.docCache[d]=e),hu.refs.fetchJSON=Bu(p,{requestInterceptor:A,responseInterceptor:l});var t,n=[hu.refs];return"function"==typeof u&&n.push(hu.parameters),"function"==typeof c&&n.push(hu.properties),"strict"!==o&&n.push(hu.allOf),(t={spec:e,context:{baseDoc:d},plugins:n,allowMetaPatches:a,pathDiscriminator:s,parameterMacro:u,modelPropertyMacro:c,useCircularStructures:h},new fu(t).dispatch()).then(f?function(){var e=wa(Ba().mark((function e(t){return Ba().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():Eu)}}var bu=n(27361),Qu=n.n(bu);function xu(){return xu=wa(Ba().mark((function e(t,n){var r,o,i,a,s,c,u,A,l,f,h,p,d=arguments;return Ba().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=d.length>2&&void 0!==d[2]?d[2]:{},o=r.returnEntireTree,i=r.baseDoc,a=r.requestInterceptor,s=r.responseInterceptor,c=r.parameterMacro,u=r.modelPropertyMacro,A=r.useCircularStructures,l={pathDiscriminator:n,baseDoc:i,requestInterceptor:a,responseInterceptor:s,parameterMacro:c,modelPropertyMacro:u,useCircularStructures:A},f=Eu({spec:t}),h=f.spec,e.next=6,Cu(na(na({},l),{},{spec:h,allowMetaPatches:!0,skipNormalization:!0}));case 6:return p=e.sent,!o&&Array.isArray(n)&&n.length&&(p.spec=Qu()(p.spec,n)||null),e.abrupt("return",p);case 9:case"end":return e.stop()}}),e)}))),xu.apply(this,arguments)}var _u=function(){return null},Su=function(e){var t=e.spec,n=e.cb,r=void 0===n?_u:n,o=e.defaultTag,i=void 0===o?"default":o,a=e.v2OperationIdCompatibilityMode,s={},c={};return wu(t,(function(e){var n,o=e.pathName,u=e.method,A=e.operation;(A.tags?(n=A.tags,Array.isArray(n)?n:[n]):[i]).forEach((function(e){if("string"==typeof e){c[e]=c[e]||{};var n,i=c[e],l=yu(A,o,u,{v2OperationIdCompatibilityMode:a}),f=r({spec:t,pathName:o,method:u,operation:A,operationId:l});if(s[l])s[l]+=1,i[Ra()(n="".concat(l)).call(n,s[l])]=f;else if(void 0!==i[l]){var h,p,d=s[l]||1;s[l]=d+1,i[Ra()(h="".concat(l)).call(h,s[l])]=f;var g=i[l];delete i[l],i[Ra()(p="".concat(l)).call(p,d)]=g}else i[l]=f}}))})),c},Tu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.pathName,r=t.method,o=t.operationId;return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.requestInterceptor,s=e.responseInterceptor,c=e.userFetch;return e.execute(na({spec:e.spec,requestInterceptor:a,responseInterceptor:s,userFetch:c,pathName:n,method:r,parameters:t,operationId:o},i))}}},Ou=n(95683);var Nu=n(76489);function ku(e){return"[object Object]"===Object.prototype.toString.call(e)}function Du(e){var t,n;return!1!==ku(e)&&(void 0===(t=e.constructor)||!1!==ku(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var Fu={body:function(e){var t=e.req,n=e.value;t.body=n},header:function(e){var t=e.req,n=e.parameter,r=e.value;t.headers=t.headers||{},void 0!==r&&(t.headers[n.name]=r)},query:function(e){var t=e.req,n=e.value,r=e.parameter;if(t.query=t.query||{},!1===n&&"boolean"===r.type&&(n="false"),0===n&&["number","integer"].indexOf(r.type)>-1&&(n="0"),n)t.query[r.name]={collectionFormat:r.collectionFormat,value:n};else if(r.allowEmptyValue&&void 0!==n){var o=r.name;t.query[o]=t.query[o]||{},t.query[o].allowEmptyValue=!0}},path:function(e){var t=e.req,n=e.value,r=e.parameter;t.url=t.url.split("{".concat(r.name,"}")).join(encodeURIComponent(n))},formData:function(e){var t=e.req,n=e.value,r=e.parameter;(n||r.allowEmptyValue)&&(t.form=t.form||{},t.form[r.name]={value:n,allowEmptyValue:r.allowEmptyValue,collectionFormat:r.collectionFormat})}};function Uu(e,t){return ba()(t).call(t,"application/json")?"string"==typeof e?e:Oa()(e):e.toString()}function Ru(e){var t=e.req,n=e.value,r=e.parameter,o=r.name,i=r.style,a=r.explode,s=r.content;if(s){var c=Fa()(s)[0];t.url=t.url.split("{".concat(o,"}")).join(ts(Uu(n,c),{escape:!0}))}else{var u=ns({key:r.name,value:n,style:i||"simple",explode:a||!1,escape:!0});t.url=t.url.split("{".concat(o,"}")).join(u)}}function Pu(e){var t=e.req,n=e.value,r=e.parameter;if(t.query=t.query||{},r.content){var o=Fa()(r.content)[0];t.query[r.name]=Uu(n,o)}else if(!1===n&&(n="false"),0===n&&(n="0"),n){var i=r.style,a=r.explode,s=r.allowReserved;t.query[r.name]={value:n,serializationOption:{style:i,explode:a,allowReserved:s}}}else if(r.allowEmptyValue&&void 0!==n){var c=r.name;t.query[c]=t.query[c]||{},t.query[c].allowEmptyValue=!0}}var Mu=["accept","authorization","content-type"];function ju(e){var t=e.req,n=e.parameter,r=e.value;if(t.headers=t.headers||{},!(Mu.indexOf(n.name.toLowerCase())>-1))if(n.content){var o=Fa()(n.content)[0];t.headers[n.name]=Uu(r,o)}else void 0!==r&&(t.headers[n.name]=ns({key:n.name,value:r,style:n.style||"simple",explode:void 0!==n.explode&&n.explode,escape:!1}))}function Lu(e){var t=e.req,n=e.parameter,r=e.value;t.headers=t.headers||{};var o=ya(r);if(n.content){var i,a=Fa()(n.content)[0];t.headers.Cookie=Ra()(i="".concat(n.name,"=")).call(i,Uu(r,a))}else if("undefined"!==o){var s="object"===o&&!Array.isArray(r)&&n.explode?"":"".concat(n.name,"=");t.headers.Cookie=s+ns({key:n.name,value:r,escape:!1,style:n.style||"form",explode:void 0!==n.explode&&n.explode})}}var Gu=n(50706),Hu=n.n(Gu);var qu=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Yu=function(e){return Array.isArray(e)?e:[]},Ku=Oc("OperationNotFoundError",(function(e,t,n){this.originalError=n,oa()(this,t||{})})),zu={buildRequest:Vu};function Vu(e){var t,n,r=e.spec,o=e.operationId,i=e.responseContentType,a=e.scheme,s=e.requestInterceptor,c=e.responseInterceptor,u=e.contextUrl,A=e.userFetch,l=e.server,h=e.serverVariables,p=e.http,d=e.signal,g=e.parameters,y=e.parameterBuilders,m=gu(r);y||(y=m?f:Fu);var I={url:"",credentials:p&&p.withCredentials?"include":"same-origin",headers:{},cookies:{}};d&&(I.signal=d),s&&(I.requestInterceptor=s),c&&(I.responseInterceptor=c),A&&(I.userFetch=A);var v=vu(r,o);if(!v)throw new Ku("Operation ".concat(o," not found"));var w=v.operation,E=void 0===w?{}:w,B=v.method,C=v.pathName;if(I.url+=Wu({spec:r,scheme:a,contextUrl:u,server:l,serverVariables:h,pathName:C,method:B}),!o)return delete I.cookies,I;I.url+=C,I.method="".concat(B).toUpperCase(),g=g||{};var b=r.paths[C]||{};i&&(I.headers.accept=i);var Q=function(e){var t={};e.forEach((function(e){t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));var n=[];return Fa()(t).forEach((function(e){Fa()(t[e]).forEach((function(r){n.push(t[e][r])}))})),n}(Ra()(t=Ra()(n=[]).call(n,Yu(E.parameters))).call(t,Yu(b.parameters)));Q.forEach((function(e){var t,n,o=y[e.in];if("body"===e.in&&e.schema&&e.schema.properties&&(t=g),void 0===(t=e&&e.name&&g[e.name]))t=e&&e.name&&g[Ra()(n="".concat(e.in,".")).call(n,e.name)];else if(function(e,t){return La()(t).call(t,(function(t){return t.name===e}))}(e.name,Q).length>1){var i;console.warn(Ra()(i="Parameter '".concat(e.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(i,e.name,"' and the passed-in parameter values did not define an 'in' value."))}if(null!==t){if(void 0!==e.default&&void 0===t&&(t=e.default),void 0===t&&e.required&&!e.allowEmptyValue)throw new Error("Required parameter ".concat(e.name," is not provided"));if(m&&e.schema&&"object"===e.schema.type&&"string"==typeof t)try{t=JSON.parse(t)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}o&&o({req:I,parameter:e,value:t,operation:E,spec:r})}}));var x=na(na({},e),{},{operation:E});if((I=m?function(e,t){var n=e.operation,r=e.requestBody,o=e.securities,i=e.spec,a=e.attachContentTypeForEmptyPayload,s=e.requestContentType;t=function(e){var t=e.request,n=e.securities,r=void 0===n?{}:n,o=e.operation,i=void 0===o?{}:o,a=e.spec,s=na({},t),c=r.authorized,u=void 0===c?{}:c,A=i.security||a.security||[],l=u&&!!Fa()(u).length,f=Qu()(a,["components","securitySchemes"])||{};return s.headers=s.headers||{},s.query=s.query||{},Fa()(r).length&&l&&A&&(!Array.isArray(i.security)||i.security.length)?(A.forEach((function(e){Fa()(e).forEach((function(e){var t=u[e],n=f[e];if(t){var r=t.value||t,o=n.type;if(t)if("apiKey"===o)"query"===n.in&&(s.query[n.name]=r),"header"===n.in&&(s.headers[n.name]=r),"cookie"===n.in&&(s.cookies[n.name]=r);else if("http"===o){if(/^basic$/i.test(n.scheme)){var i,a=r.username||"",c=r.password||"",A=Hu()(Ra()(i="".concat(a,":")).call(i,c));s.headers.Authorization="Basic ".concat(A)}/^bearer$/i.test(n.scheme)&&(s.headers.Authorization="Bearer ".concat(r))}else if("oauth2"===o||"openIdConnect"===o){var l,h=t.token||{},p=h[n["x-tokenName"]||"access_token"],d=h.token_type;d&&"bearer"!==d.toLowerCase()||(d="Bearer"),s.headers.Authorization=Ra()(l="".concat(d," ")).call(l,p)}}}))})),s):t}({request:t,securities:o,operation:n,spec:i});var c=n.requestBody||{},u=Fa()(c.content||{}),A=s&&u.indexOf(s)>-1;if(r||a){if(s&&A)t.headers["Content-Type"]=s;else if(!s){var l=u[0];l&&(t.headers["Content-Type"]=l,s=l)}}else s&&A&&(t.headers["Content-Type"]=s);if(!e.responseContentType&&n.responses){var f,h=La()(f=Ma()(n.responses)).call(f,(function(e){var t=ma(e,2),n=t[0],r=t[1],o=parseInt(n,10);return o>=200&&o<300&&Du(r.content)})).reduce((function(e,t){var n=ma(t,2)[1];return Ra()(e).call(e,Fa()(n.content))}),[]);h.length>0&&(t.headers.accept=h.join(", "))}if(r)if(s){if(u.indexOf(s)>-1)if("application/x-www-form-urlencoded"===s||"multipart/form-data"===s)if("object"===ya(r)){var p=(c.content[s]||{}).encoding||{};t.form={},Fa()(r).forEach((function(e){t.form[e]={value:r[e],encoding:p[e]||{}}}))}else t.form=r;else t.body=r}else t.body=r;return t}(x,I):function(e,t){var n,r,o=e.spec,i=e.operation,a=e.securities,s=e.requestContentType,c=e.responseContentType,u=e.attachContentTypeForEmptyPayload;if(t=function(e){var t=e.request,n=e.securities,r=void 0===n?{}:n,o=e.operation,i=void 0===o?{}:o,a=e.spec,s=na({},t),c=r.authorized,u=void 0===c?{}:c,A=r.specSecurity,l=void 0===A?[]:A,f=i.security||l,h=u&&!!Fa()(u).length,p=a.securityDefinitions;return s.headers=s.headers||{},s.query=s.query||{},Fa()(r).length&&h&&f&&(!Array.isArray(i.security)||i.security.length)?(f.forEach((function(e){Fa()(e).forEach((function(e){var t=u[e];if(t){var n=t.token,r=t.value||t,o=p[e],i=o.type,a=o["x-tokenName"]||"access_token",c=n&&n[a],A=n&&n.token_type;if(t)if("apiKey"===i){var l="query"===o.in?"query":"headers";s[l]=s[l]||{},s[l][o.name]=r}else if("basic"===i)if(r.header)s.headers.authorization=r.header;else{var f,h=r.username||"",d=r.password||"";r.base64=Hu()(Ra()(f="".concat(h,":")).call(f,d)),s.headers.authorization="Basic ".concat(r.base64)}else if("oauth2"===i&&c){var g;A=A&&"bearer"!==A.toLowerCase()?A:"Bearer",s.headers.authorization=Ra()(g="".concat(A," ")).call(g,c)}}}))})),s):t}({request:t,securities:a,operation:i,spec:o}),t.body||t.form||u)if(s)t.headers["Content-Type"]=s;else if(Array.isArray(i.consumes)){var A=ma(i.consumes,1);t.headers["Content-Type"]=A[0]}else if(Array.isArray(o.consumes)){var l=ma(o.consumes,1);t.headers["Content-Type"]=l[0]}else i.parameters&&La()(n=i.parameters).call(n,(function(e){return"file"===e.type})).length?t.headers["Content-Type"]="multipart/form-data":i.parameters&&La()(r=i.parameters).call(r,(function(e){return"formData"===e.in})).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(s){var f,h,p=i.parameters&&La()(f=i.parameters).call(f,(function(e){return"body"===e.in})).length>0,d=i.parameters&&La()(h=i.parameters).call(h,(function(e){return"formData"===e.in})).length>0;(p||d)&&(t.headers["Content-Type"]=s)}return!c&&Array.isArray(i.produces)&&i.produces.length>0&&(t.headers.accept=i.produces.join(", ")),t}(x,I)).cookies&&Fa()(I.cookies).length){var _=Fa()(I.cookies).reduce((function(e,t){var n=I.cookies[t];return e+(e?"&":"")+Nu.serialize(t,n)}),"");I.headers.Cookie=_}return I.cookies&&delete I.cookies,vs(I),I}var Ju=function(e){return e?e.replace(/\W/g,""):null};function Wu(e){return gu(e.spec)?function(e){var t=e.spec,n=e.pathName,r=e.method,o=e.server,i=e.contextUrl,a=e.serverVariables,s=void 0===a?{}:a,c=Qu()(t,["paths",n,(r||"").toLowerCase(),"servers"])||Qu()(t,["paths",n,"servers"])||Qu()(t,["servers"]),u="",A=null;if(o&&c&&c.length){var l=ka()(c).call(c,(function(e){return e.url}));l.indexOf(o)>-1&&(u=o,A=c[l.indexOf(o)])}if(!u&&c&&c.length){u=c[0].url;var f=ma(c,1);A=f[0]}return u.indexOf("{")>-1&&function(e){for(var t,n=[],r=/{([^}]+)}/g;t=r.exec(e);)n.push(t[1]);return n}(u).forEach((function(e){if(A.variables&&A.variables[e]){var t=A.variables[e],n=s[e]||t.default,r=new RegExp("{".concat(e,"}"),"g");u=u.replace(r,n)}})),function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=n&&r?sa.parse(sa.resolve(r,n)):sa.parse(n),i=sa.parse(r),a=Ju(o.protocol)||Ju(i.protocol)||"",s=o.host||i.host,c=o.pathname||"";return"/"===(e=a&&s?Ra()(t="".concat(a,"://")).call(t,s+c):c)[e.length-1]?Xa()(e).call(e,0,-1):e}(u,i)}(e):(o=(t=e).spec,i=t.scheme,a=t.contextUrl,s=void 0===a?"":a,c=sa.parse(s),u=Array.isArray(o.schemes)?o.schemes[0]:null,A=i||u||Ju(c.protocol)||"http",l=o.host||c.host||"",f=o.basePath||"","/"===(n=A&&l?Ra()(r="".concat(A,"://")).call(r,l+f):f)[n.length-1]?Xa()(n).call(n,0,-1):n);var t,n,r,o,i,a,s,c,u,A,l,f}function $u(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?n.url=e:n=e,!(this instanceof $u))return new $u(n);oa()(this,n);var r=this.resolve().then((function(){return t.disableInterfaces||oa()(t,$u.makeApisTagOperation(t)),t}));return r.client=this,r}$u.http=is,$u.makeHttp=function(e,t,n){return n=n||function(e){return e},t=t||function(e){return e},function(r){return"string"==typeof r&&(r={url:r}),os.mergeInQueryOrForm(r),r=t(r),n(e(r))}}.bind(null,$u.http),$u.resolve=Cu,$u.resolveSubtree=function(e,t){return xu.apply(this,arguments)},$u.execute=function(e){var t=e.http,n=e.fetch,r=e.spec,o=e.operationId,i=e.pathName,a=e.method,s=e.parameters,c=e.securities,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Ki(e);for(r=0;r<i.length;r++)n=i[r],Ou(t).call(t,n)>=0||(o[n]=e[n]);return o}(e,t);if(zi){var i=zi(e);for(r=0;r<i.length;r++)n=i[r],Ou(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,qu),A=t||n||is;i&&a&&!o&&(o=Iu(i,a));var l=zu.buildRequest(na({spec:r,operationId:o,parameters:s,securities:c,http:A},u));return l.body&&(Du(l.body)||Array.isArray(l.body))&&(l.body=Oa()(l.body)),A(l)},$u.serializeRes=us,$u.serializeHeaders=ls,$u.clearCache=function(){hu.refs.clearCache()},$u.makeApisTagOperation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Tu(e);return{apis:Su({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},$u.buildRequest=Vu,$u.helpers={opId:yu},$u.getBaseUrl=Wu,$u.prototype={http:is,execute:function(e){return this.applyDefaults(),$u.execute(na({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},e))},resolve:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $u.resolve(na({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},t)).then((function(t){return e.originalSpec=e.spec,e.spec=t.spec,e.errors=t.errors,e}))}},$u.prototype.applyDefaults=function(){var e=this.spec,t=this.url;if(t&&aa()(t).call(t,"http")){var n=sa.parse(t);e.host||(e.host=n.host),e.schemes||(e.schemes=[n.protocol.replace(":","")]),e.basePath||(e.basePath="/")}},$u.helpers;var Xu=$u,Zu=n(54098),eA=n.n(Zu),tA=n(89784);const nA=n.n(tA)()({storeAsString:!0}),rA=e=>{if("object"==typeof e&&null!==e&&e.constructor===Object)return Object.entries(e).map((e=>{let[t,n]=e;return[t,rA(n)]})).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:r}}),{});if(Array.isArray(e))return e.map((e=>rA(e)));if("string"==typeof e&&v()(e).toString(10)===e){const t=v()(e);return t.toJSON=()=>t.toString(10),t}return e};var oA={stringify:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return nA.stringify(rA(e),...n)},parse:nA.parse};let iA=!1;var aA=async function(e){let{spec:t,internalUrl:n,disableBigNumbers:r,disableCaseConversion:o,responseInterceptor:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=t||await(await eA()(e)).json();const a=r?JSON:oA,[s,c]=await Promise.all([e,n].map((e=>{if(!e)return null;const n={};return Xu({url:e,spec:t,requestInterceptor:e=>{if("GET"===e.method)return{...e,userFetch:async(e,t)=>{var r;const o=JSON.stringify({...t,url:e});null!==(r=n[o])&&void 0!==r||(n[o]=eA()(e,t));try{return(await n[o]).clone()}finally{delete n[o]}}}},responseInterceptor:e=>{var t;if(""===e.text||0===(null===(t=e.text)||void 0===t?void 0:t.size))return e;const n=a.parse(e.text);return Object.assign(e,{body:o?n:On(n)}),i&&i(e)||e}})}))),u=Object.assign({},...s.apis.external?[s.apis.external]:Object.values(s.apis),xn((null==c?void 0:c.apis.internal)||{},(e=>{let[t,n]=e;return[t,function(){return iA||(console.warn('SDK\'s wrapper of aeternity node internal API is deprecated, please use external equivalent (for example, "sdk.api.protectedDryRunTxs" instead of "sdk.api.dryRunTxs") or create a wrapper of internal API by yourself (using "genSwaggerClient")'),iA=!0),n(...arguments)}]}))),A=Object.values(t.paths).map((e=>Object.values(e))).flat().reduce(((e,t)=>({...e,[t.operationId]:t})),{}),l={},f=xn(u,(e=>{let[t,n]=e;const r=t.slice(0,1).toLowerCase()+it(t.slice(1));return[r,async function(){for(var e,i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];const u=A[t],f=[...u.parameters,...u.requestBody?[{required:u.requestBody.required,schema:Object.values(u.requestBody.content)[0].schema,name:"__requestBody"}]:[]],h=f.filter((e=>e.required)).map((e=>e.name));if(![0,1].includes(s.length-h.length))throw new D(r,h.length,s.length);const p=h.reduce(((e,t,n)=>({...e,[t]:s[n]})),s[h.length]||{}),{__requestBody:d,__queue:g,...y}=xn(p,(e=>{let[t,n]=e;if("object"!=typeof n)return[t,n];const r=Object.keys(f.find((e=>e.name===t)).schema.properties),i=_n(o?n:Tn(n),(e=>{let[t]=e;return r.includes(t)}));return[t,a.stringify(i)]})),m=async()=>(await n(y,{requestBody:d})).body;if(!g)return m();const I=(null!==(e=l[g])&&void 0!==e?e:Promise.resolve()).then(m,m);return l[g]=I.then((()=>new Promise((e=>setTimeout(e,750))))),I}]}));return Object.assign(s,{api:f})};function sA(e,t,n){const r=e=>e.split(/[-+]/)[0].split(".").map((e=>+e)),o=r(e),i=r(t),a=r(n),s=Math.max(...o,...i,...a)+1,c=e=>e.reverse().reduce(((e,t,n)=>e+t*Math.pow(s,n)),0),u=c(o),A=c(i),l=c(a);return u>=A&&u<l}function cA(){var e;let{networkId:t,force:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=t||this.networkId||(null===(e=this.selectedNode)||void 0===e?void 0:e.networkId);if(!n&&!r)throw new P("networkId is not provided");return n&&!r?null:r}const uA=Yi.compose({async init(e){let{url:t,internalUrl:n,ignoreVersion:r}=e;if(!t)throw new P('"url" required');this.url=t.replace(/\/$/,""),this.internalUrl=null==n?void 0:n.replace(/\/$/,"");const o=await aA(`${this.url}/api?oas3`,{internalUrl:this.internalUrl,responseInterceptor:e=>{if(!e.ok)return Object.assign(e,{statusText:`${new URL(e.url).pathname.slice(1)} error: `+e.body.reason})}});if(this.version=o.spec.info.version,!sA(this.version,AA,lA)&&!r)throw new z("node",this.version,AA,lA);this.api=o.api;const{nodeRevision:i,genesisKeyBlockHash:a,networkId:s,protocols:c,topBlockHeight:u}=await this.api.getStatus();return this.consensusProtocolVersion=c.filter((e=>{let{effectiveAtHeight:t}=e;return u>=t})).reduce(((e,t)=>t.effectiveAtHeight>e.effectiveAtHeight?t:e),{effectiveAtHeight:-1,version:0}).version,this.nodeNetworkId=s,Object.assign(this,{revision:i,genesisHash:a})},methods:{getNodeInfo(){return{url:this.url,internalUrl:this.internalUrl,nodeNetworkId:this.nodeNetworkId,version:this.version,consensusProtocolVersion:this.consensusProtocolVersion}}},props:{version:null,consensusProtocolVersion:null,nodeNetworkId:null}}),AA="6.2.0",lA="7.0.0";var fA=uA,hA=n(48764).Buffer;const pA=e=>!["sign","address"].find((t=>"function"!=typeof e[t]));var dA=Mi()({init(e){let{networkId:t}=e;!this.networkId&&t&&(this.networkId=t)},methods:{signTransaction:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[this.getNetworkId(t)];t.innerTx&&n.push("inner_tx");const r=bt(e,"tx"),o=hA.concat([hA.from(n.join("-")),St(r)]),i=[await this.sign(o,t)];return Ii({encodedTx:r,signatures:i},Kr.signed).tx},getNetworkId:cA,signMessage:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{returnHex:!1};const n=await this.sign(Ht(e),t);return t.returnHex?hA.from(n).toString("hex"):n},verifyMessage:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Yt(e,"string"==typeof t?hA.from(t,"hex"):t,bt(await this.address(n)))}}},(0,ji.required)({methods:{sign:ji.required,address:ji.required}}));const gA=Mi()(Li,dA,Hi,{methods:{send:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...this.Ae.defaults,...t},{contractId:r,authFun:o}=t.innerTx?{contractId:!1}:await this.getAccount(await this.address(n)),i=r?await this.signUsingGA(e,{...n,authFun:o}):await this.signTransaction(e,n);return n.innerTx?{hash:Ei.buildTxHash(i),rawTx:i}:this.sendTransaction(i,n)},spend:async function(e,t,n){const r={...this.Ae.defaults,...n};return this.send(await this.spendTx({...r,senderId:await this.address(r),recipientId:await this.resolveName(t,"account_pubkey",r),amount:e}),r)},transferFunds:async function(e,t,n){if(e<0||e>1)throw new N("fraction","a number between 0 and 1",e);const r={...this.Ae.defaults,...n},o=await this.resolveName(t,"account_pubkey",r),i=await this.address(r),a=new(v())(await this.balance(i)),s=a.times(e).integerValue(v().ROUND_HALF_UP),{tx:{fee:c}}=Ei.unpackTx(await this.spendTx({...r,senderId:i,recipientId:o,amount:s})),u=s.plus(c).gt(a)?a.minus(c):s;return this.send(await this.spendTx({...r,senderId:i,recipientId:o,amount:u}),r)},payForTransaction:async function(e,t){const n={...this.Ae.defaults,...t};return this.send(await this.payingForTx({...n,payerId:await this.address(n),tx:e}),n)},destroyInstance:function(){["destroyClient","destroyServer"].forEach((e=>this[e]&&"function"==typeof this[e]&&this[e]()))},signUsingGA:async function(e){let{authData:t,authFun:n,...r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.createMetaTx(e,t,n,r)}},deepProps:{Ae:{defaults:{denomination:yn.AETTOS}}}});var yA=gA,mA=n(48764).Buffer;const IA=[(e,t)=>{let{encodedTx:n,signatures:r}=e,{account:o,node:i,parentTxTypes:a}=t;if(void 0===(null!=n?n:r))return[];if(1!==r.length)return[];const s=mA.from([i.nodeNetworkId,...a.includes(Kr.payingFor)?["inner_tx"]:[]].join("-")),c=mA.concat([s,n.rlpEncoded]),u=mA.concat([s,St(n.rlpEncoded)]),A=bt(o.id,"ak");return Gt(c,r[0],A)||Gt(u,r[0],A)?[]:[{message:"Signature cannot be verified, please ensure that you transaction have the correct prefix and the correct private key for the sender address",key:"InvalidSignature",checkedKeys:["encodedTx","signatures"]}]},(e,t)=>{let{encodedTx:n,tx:r}=e,{node:o,parentTxTypes:i,txType:a}=t;return void 0===(null!=n?n:r)?[]:wA(Qt((null!=n?n:r).rlpEncoded,"tx"),o,[...i,a])},(e,t)=>{let{txType:n}=t;if(void 0===e.fee)return[];const r=pi(0,n,{gas:+e.gas||0,params:e,showWarning:!1,vsn:e.VSN});return new(v())(r).lte(e.fee)?[]:[{message:`Fee ${e.fee} is too low, minimum fee for this transaction is ${r}`,key:"InsufficientFee",checkedKeys:["fee"]}]},(e,t)=>{let{ttl:n}=e,{height:r}=t;return void 0===n?[]:(n=+n,0===n||n>=r?[]:[{message:`TTL ${n} is already expired, current height is ${r}`,key:"ExpiredTTL",checkedKeys:["ttl"]}])},(e,t)=>{var n;let{amount:r,fee:o,nameFee:i,tx:a}=e,{account:s,parentTxTypes:c,txType:u}=t;if(void 0===(null!==(n=null!=r?r:o)&&void 0!==n?n:i))return[];const A=new(v())(o).plus(i||0).plus(r||0).plus(u===Kr.payingFor?a.tx.encodedTx.tx.fee:0).minus(c.includes(Kr.payingFor)?o:0);return A.lte(s.balance)?[]:[{message:`Account balance ${s.balance} is not enough to execute the transaction that costs ${A.toFixed()}`,key:"InsufficientBalance",checkedKeys:["amount","fee","nameFee"]}]},(e,t)=>{let{nonce:n}=e,{account:r,parentTxTypes:o}=t;if(void 0===n||o.includes(Kr.gaMeta))return[];n=+n;const i=r.nonce+1;return n===i?[]:[{...n<i?{message:`Nonce ${n} is already used, valid nonce is ${i}`,key:"NonceAlreadyUsed"}:{message:`Nonce ${n} is too high, valid nonce is ${i}`,key:"NonceHigh"},checkedKeys:["nonce"]}]},e=>{let{gasPrice:t}=e;return void 0===t||t>=xr?[]:[{message:`Gas price ${t} must be bigger then ${xr}`,key:"MinGasPrice",checkedKeys:["gasPrice"]}]},(e,t)=>{let{ctVersion:n,abiVersion:r}=e,{txType:o,node:i}=t;const{consensusProtocolVersion:a}=i.getNodeInfo(),s=Wr[a];if(!s)throw new Y(`Unsupported protocol: ${a}`);n||(n={abiVersion:r});const c=s[o];return c&&Object.entries(n).some((e=>{let[t,n]=e;return!c[t].includes(+n)}))?[{message:`ABI/VM version ${JSON.stringify(n)} is wrong, supported is: ${JSON.stringify(c)}`,key:"VmAndAbiVersionMismatch",checkedKeys:["ctVersion","abiVersion"]}]:[]},async(e,t)=>{let{contractId:n}=e,{txType:r,node:o}=t;if(Kr.contractCall!==r)return[];try{const{active:e}=await o.api.getContract(n);return e?[]:[{message:`Contract ${n} is not active`,key:"ContractNotActive",checkedKeys:["contractId"]}]}catch(e){var i,a;if(null===(i=e.response)||void 0===i||null===(a=i.body)||void 0===a||!a.reason)throw e;return[{message:e.response.body.reason,key:"ContractNotFound",checkedKeys:["contractId"]}]}}],vA=e=>["senderId","accountId","ownerId","callerId","oracleId","fromId","initiator","gaId","payerId"].map((t=>e[t])).filter((e=>e)).map((e=>e.replace(/^ok_/,"ak_")))[0];async function wA(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const{tx:o,txType:i}=vi(e),a=null!==(n=vA(o))&&void 0!==n?n:i===Kr.signed?vA(o.encodedTx.tx):null,[s,{height:c}]=await Promise.all([a&&t.api.getAccountByPubkey(a).catch((()=>({id:a,balance:new(v())(0),nonce:0}))),t.api.getCurrentKeyBlockHeight()]);return(await Promise.all(IA.map((e=>e(o,{txType:i,node:t,account:s,height:c,parentTxTypes:r}))))).flat()}var EA=Mi()({init(){let{nodes:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pool=new Map,this.validateNodes(e),e.forEach(((e,t)=>{const{name:n,instance:r}=e;this.addNode(n,r,0===t)})),e.length&&this.selectNode(e[0].name)},propertyDescriptors:{api:{enumerable:!0,configurable:!1,get(){if(!this.selectedNode||!this.selectedNode.instance)throw new Re("You can't use Node API. Node is not connected or not defined!");return this.selectedNode.instance.api}}},methods:{addNode(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.pool.has(e))throw new Ue(e);this.validateNodes([{name:e,instance:t}]),this.pool.set(e,{name:e,instance:t,url:t.url,internalUrl:t.internalUrl,networkId:t.nodeNetworkId,version:t.version,consensusProtocolVersion:t.consensusProtocolVersion}),!n&&this.selectedNode||this.selectNode(e)},selectNode(e){if(!this.pool.has(e))throw new Re(`Node with name ${e} not in pool`);this.selectedNode=this.pool.get(e)},getNetworkId:cA,isNodeConnected(){return!!this.selectedNode.instance},getNodeInfo(){if(!this.isNodeConnected())throw new Fe;return{name:this.selectedNode.name,...this.selectedNode.instance.getNodeInfo()}},getNodesInPool(){return Array.from(this.pool.entries()).map((e=>{let[t,n]=e;return{name:t,...n.instance.getNodeInfo()}}))},validateNodes(e){if(!Array.isArray(e))throw new H('"nodes" should be an array');const t=e.map((e=>typeof e)).find((e=>"object"!==e));if(t)throw new H(`Each node should be an object, got ${t} instead`);const n=e.find((e=>"string"!=typeof e.name||"object"!=typeof e.instance));if(t)throw new H(`Each node should have name (string), instance (object) fields, got ${JSON.stringify(n)} instead`);const r=e.map((e=>e.instance)).find((e=>"object"!=typeof e.api||"string"!=typeof e.genesisHash||"number"!=typeof e.consensusProtocolVersion));if(r)throw new H(`Each node instance should have api (object), consensusProtocolVersion (number), genesisHash (string) fields, got ${JSON.stringify(r)} instead`)}},props:{selectedNode:{}}});async function BA(e){const t=this._txDryRun[e];let n;delete this._txDryRun[e];try{n=await this.api.protectedDryRunTxs({top:t[0].top,txEvents:t[0].txEvents,txs:t.map((e=>({tx:e.tx}))),accounts:Array.from(new Set(t.map((e=>e.accountAddress)))).map((e=>({pubKey:e,amount:Sr.amount})))})}catch(e){return void t.forEach((t=>{let{reject:n}=t;return n(e)}))}const{results:r,txEvents:o}=n;r.forEach(((e,n)=>{let{result:r,reason:i,...a}=e;const{resolve:s,reject:c,tx:u,options:A,accountAddress:l}=t[n];if("ok"===r)return s({...a,txEvents:o});c(Object.assign(new Le(i),{tx:u,accountAddress:l,options:A}))}))}const CA=Hi.compose(EA,{methods:{sendTransaction:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...this.Ae.defaults,...t};if(n.verify){const t=await wA(e,this.selectedNode.instance);if(t.length){const n="Transaction verification errors: "+t.map((e=>e.message)).join(", ");throw Object.assign(new qe(n),{code:"TX_VERIFICATION_ERROR",validation:t,transaction:e})}}try{var r;const{txHash:o}=await this.api.postTransaction({tx:e},{__queue:`tx-${await(null===(r=this.address)||void 0===r?void 0:r.call(this,t).catch((()=>"")))}`});if(n.waitMined){const n={...await this.poll(o,t),rawTx:e};return t.confirm?{...n,confirmationHeight:await this.waitForTxConfirm(o,t)}:n}return{hash:o,rawTx:e}}catch(t){throw Object.assign(t,{rawTx:e,verifyTx:()=>wA(e,this.selectedNode.instance)})}},balance:async function(e){let{height:t,hash:n,format:r=yn.AETTOS}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{balance:o}=await this.getAccount(e,{hash:n,height:t});return wn(o,{targetDenomination:r}).toString()},getBalance:async function(e){let{height:t,hash:n,format:r=yn.AETTOS}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{balance:o}=await this.getAccount(e,{hash:n,height:t}).catch((e=>({balance:0})));return wn(o,{targetDenomination:r}).toString()},getAccount:async function(e){let{height:t,hash:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t?this.api.getAccountByPubkeyAndHeight(e,t):n?this.api.getAccountByPubkeyAndHash(e,n):this.api.getAccountByPubkey(e)},tx:async function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=await this.api.getTransactionByHash(e);if(["ContractCreateTx","ContractCallTx","ChannelForceProgressTx"].includes(n.tx.type)&&t&&-1!==n.blockHeight)try{return{...n,...await this.getTxInfo(e)}}catch(e){}return n},height:async function(){return(await this.api.getCurrentKeyBlockHeight()).height},awaitHeight:async function(e){let t,{interval:n=this._getPollInterval("block"),attempts:r=20}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(let o=0;o<r;o++)if(o&&await Qn(n),t=await this.height(),t>=e)return t;throw new L((r-1)*n,t,e)},poll:async function(e){let{blocks:t=10,interval:n=this._getPollInterval("microblock")}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=await this.height()+t;do{const t=await this.api.getTransactionByHash(e);if(-1!==t.blockHeight)return t;await Qn(n)}while(await this.height()<r);const o=this.api.getCheckTxInPool&&(await this.api.getCheckTxInPool(e)).status;throw new G(t,e,o)},getTxInfo:async function(e){const t=await this.api.getTransactionInfoByHash(e);return t.callInfo||t},mempool:async function(){return this.api.getPendingTransactions()},getCurrentGeneration:async function(){return this.api.getCurrentGeneration()},getGeneration:async function(e){if("string"==typeof e)return this.api.getGenerationByHash(e);if("number"==typeof e)return this.api.getGenerationByHeight(e);throw new N("hashOrHeight","a string or number",e)},getMicroBlockHeader:async function(e){return this.api.getMicroBlockHeaderByHash(e)},getMicroBlockTransactions:async function(e){return(await this.api.getMicroBlockTransactionsByHash(e)).transactions},getKeyBlock:async function(e){if("string"==typeof e)return this.api.getKeyBlockByHash(e);if("number"==typeof e)return this.api.getKeyBlockByHeight(e);throw new N("hashOrHeight","a string or number",e)},txDryRun:async function(e,t,n){var r,o,i;let{top:a,txEvents:s,combine:c}=n;const u=c?[a,s].join():"immediate";return null!==(r=this._txDryRun)&&void 0!==r||(this._txDryRun={}),null!==(i=(o=this._txDryRun)[u])&&void 0!==i||(o[u]=[]),new Promise(((n,r)=>{var o,i;this._txDryRun[u].push({tx:e,accountAddress:t,top:a,txEvents:s,resolve:n,reject:r}),c?null!==(i=(o=this._txDryRun[u]).timeout)&&void 0!==i||(o.timeout=setTimeout(BA.bind(this,u))):BA.call(this,u)}))},getContractByteCode:async function(e){return this.api.getContractCode(e)},getContract:async function(e){return this.api.getContract(e)},getName:async function(e){return this.api.getNameEntryByName(e)},waitForTxConfirm:async function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{confirm:3};n.confirm=!0===n.confirm?3:n.confirm;const{blockHeight:r}=await this.api.getTransactionByHash(t),o=await this.awaitHeight(r+n.confirm,n),{blockHeight:i}=await this.api.getTransactionByHash(t);switch(i){case-1:throw new $e(t);case r:return o;default:return e(t,n)}},resolveName:async function(e,t){let{verify:n,resolveByNode:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||"string"!=typeof e)throw new Z(`Name or address should be a string: ${e}`);try{return bt(e),e}catch(e){}if(cr(e)){if(n||r){const n=(await this.api.getNameEntryByName(e)).pointers.find((e=>e.key===t));if(!n)throw new $(`Name ${e} don't have pointers for ${t}`);if(r)return n.id}return Xn(e)}throw new Z(`Invalid name or address: ${e}`)}}});var bA=CA,QA=n(48764).Buffer;const xA=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"!=typeof t)throw new H('tx "params" should be an object');if("string"!=typeof e||!Object.values(Kr).includes(e))throw new Xe(`Unknown transaction type ${e}`);const r=pi(t.fee,e,{gas:t.gas,params:t,vsn:t.vsn}),{rlpEncoded:o,binary:i,tx:a,txObject:s}=Ii({...t,fee:r},e,{vsn:t.vsn,...n});return{rlpEncoded:o,binary:i,encodedTx:a,params:s,type:e}},_A=e=>{if(!e)throw new qe(`Invalid transaction: ${e}`);if("string"==typeof e){const{txType:t,tx:n,rlpEncoded:r,binary:o}=vi(e);return{encodedTx:e,type:t,params:n,rlpEncoded:r,binary:o}}if(e instanceof Uint8Array){const{txType:t,tx:n,rlpEncoded:r,binary:o}=vi(e,!0);return{encodedTx:Qt(e,"tx"),type:t,params:n,rlpEncoded:r,binary:o}}throw new qe(`"tx" should be a string or Uint8Array, got ${e} instead`)},SA=Mi()({init(){let{tx:e,params:t,type:n,options:r={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.options=r,this.signatures=[],Object.assign(this,function(){let{tx:e,params:t,type:n,options:r={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t&&n)return xA(n,t,r);if(e)return _A(e);throw new qe('Invalid TxObject arguments. Please provide one of { tx: "tx_asdasd23..." } or { type: "spendTx", params: {...} }')}({tx:e,params:t,type:n,options:r})),this.type===Kr.signed){const{signatures:e,encodedTx:{txType:t,tx:n}}=this.params;this.signatures=e,this.params=n,this.type=t,this.isSigned=!0}},statics:{fromString:e=>SA({tx:e}),fromRlp:e=>SA({tx:e})},methods:{setProp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!=typeof e)throw new H("Props should be an object");return this.isSigned=!1,this.signatures=[],Object.assign(this,xA(this.type,{...this.params,...e,fee:null},{...this.options,...t})),this},getSignatures(){return this.signatures},addSignature(e){if(e=st(e)?QA.from(e,"hex"):e,!(QA.isBuffer(e)||e instanceof Uint8Array))throw new He("Invalid signature, signature must be of type Buffer or Uint8Array");Object.assign(this,xA(Kr.signed,{encodedTx:this.rlpEncoded,signatures:[[...this.signatures,e]]}));const{signatures:t,encodedTx:{txType:n,tx:r}}=this.params;this.signatures=t,this.params=r,this.type=n,this.isSigned=!0},calculateMinFee(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={...this.params,...e};return pi(0,this.type,{gas:t.gas,params:t,vsn:t.vsn})}}});var TA=SA;async function OA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vr,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(0===e)return 0;if(e<0)throw new N("ttl","greater or equal to 0",e);if(t){const{height:t}=await this.api.getCurrentKeyBlock();return+t+e}return e}const NA=bA.compose(Li,{init(e){let{nativeMode:t=!0,showWarning:n=!1}=e;this.nativeMode=t,this.showWarning=n},props:{nativeMode:!0,showWarning:!1},methods:{spendTx:async function(e){let{senderId:t,recipientId:n,amount:r,payload:o=""}=e;const{fee:i,ttl:a,nonce:s}=await this.prepareTxParams(Kr.spend,{senderId:t,...arguments[0],payload:o}),{tx:c}=this.nativeMode?{tx:SA({params:{...arguments[0],recipientId:n,senderId:t,nonce:s,ttl:a,payload:o},type:Kr.spend}).encodedTx}:await this.api.postSpend({...arguments[0],amount:parseInt(r),recipientId:n,senderId:t,nonce:s,ttl:a,fee:parseInt(i),payload:o});return c},namePreclaimTx:async function(e){let{accountId:t,commitmentId:n}=e;const{fee:r,ttl:o,nonce:i}=await this.prepareTxParams(Kr.namePreClaim,{senderId:t,...arguments[0]}),{tx:a}=this.nativeMode?{tx:SA({params:{...arguments[0],nonce:i,ttl:o,fee:r},type:Kr.namePreClaim}).encodedTx}:await this.api.postNamePreclaim({...arguments[0],nonce:i,ttl:o,fee:parseInt(r)});return a},nameClaimTx:async function(e){let{accountId:t,name:n,nameSalt:r,vsn:o=2}=e;const{fee:i,ttl:a,nonce:s}=await this.prepareTxParams(Kr.nameClaim,{senderId:t,...arguments[0],vsn:o}),{tx:c}=this.nativeMode?{tx:SA({params:{...arguments[0],nonce:s,ttl:a,fee:i,vsn:o},type:Kr.nameClaim}).encodedTx}:await this.api.postNameClaim({...arguments[0],nonce:s,ttl:a,fee:parseInt(i),name:Qt(n,"nm")});return c},nameTransferTx:async function(e){let{accountId:t,nameId:n,recipientId:r}=e;const{fee:o,ttl:i,nonce:a}=await this.prepareTxParams(Kr.nameTransfer,{senderId:t,...arguments[0]}),{tx:s}=this.nativeMode?{tx:SA({params:{...arguments[0],recipientId:r,nonce:a,ttl:i,fee:o},type:Kr.nameTransfer}).encodedTx}:await this.api.postNameTransfer({...arguments[0],recipientId:r,nonce:a,ttl:i,fee:parseInt(o)});return s},nameUpdateTx:async function(e){let{accountId:t,nameId:n,nameTtl:r,pointers:o,clientTtl:i}=e;const{fee:a,ttl:s,nonce:c}=await this.prepareTxParams(Kr.nameUpdate,{senderId:t,...arguments[0]}),{tx:u}=this.nativeMode?{tx:SA({params:{...arguments[0],nonce:c,ttl:s,fee:a},type:Kr.nameUpdate}).encodedTx}:await this.api.postNameUpdate({...arguments[0],nonce:c,ttl:s,fee:parseInt(a)});return u},nameRevokeTx:async function(e){let{accountId:t,nameId:n}=e;const{fee:r,ttl:o,nonce:i}=await this.prepareTxParams(Kr.nameRevoke,{senderId:t,...arguments[0]}),{tx:a}=this.nativeMode?{tx:SA({params:{...arguments[0],nonce:i,ttl:o,fee:r},type:Kr.nameRevoke}).encodedTx}:await this.api.postNameRevoke({...arguments[0],nonce:i,ttl:o,fee:parseInt(r)});return a},contractCreateTx:async function(e){let{ownerId:t,code:n,vmVersion:r,abiVersion:o,amount:i,gas:a,gasPrice:s=xr,callData:c}=e;const u=this.getVmVersion(Kr.contractCreate,arguments[0]),{fee:A,ttl:l,nonce:f}=await this.prepareTxParams(Kr.contractCreate,{senderId:t,...arguments[0],ctVersion:u,gasPrice:s});return this.nativeMode?{tx:SA({params:{...arguments[0],nonce:f,ttl:l,fee:A,ctVersion:u,gasPrice:s},type:Kr.contractCreate}).encodedTx,contractId:Jn(t,f)}:this.api.postContractCreate({...arguments[0],nonce:f,ttl:l,fee:parseInt(A),gas:parseInt(a),gasPrice:s,vmVersion:u.vmVersion,abiVersion:u.abiVersion})},contractCallTx:async function(e){let{callerId:t,contractId:n,abiVersion:r,amount:o,gas:i,gasPrice:a=xr,callData:s}=e;const c=this.getVmVersion(Kr.contractCall,arguments[0]),{fee:u,ttl:A,nonce:l}=await this.prepareTxParams(Kr.contractCall,{senderId:t,...arguments[0],gasPrice:a,abiVersion:c.abiVersion}),{tx:f}=this.nativeMode?{tx:SA({params:{...arguments[0],nonce:l,ttl:A,fee:u,abiVersion:c.abiVersion,gasPrice:a},type:Kr.contractCall}).encodedTx}:await this.api.postContractCall({...arguments[0],nonce:l,ttl:A,fee:parseInt(u),gas:parseInt(i),gasPrice:a,abiVersion:c.abiVersion});return f},prepareTxParams:async function(e,t){let{senderId:n,nonce:r,ttl:o,fee:i,gas:a,absoluteTtl:s,vsn:c,strategy:u}=t;r=r||(await this.api.getAccountNextNonce(n,{strategy:u}).catch((e=>({nextNonce:1})))).nextNonce;const A=await OA.call(this,o,!s),l=pi(i,e,{showWarning:this.showWarning,gas:a,params:{...arguments[1],nonce:r,ttl:A},vsn:c});return{fee:l,ttl:A,nonce:r}},oracleRegisterTx:async function(e){let{accountId:t,queryFormat:n,responseFormat:r,queryFee:o,oracleTtl:i,abiVersion:a=Vr.NO_ABI}=e;const{fee:s,ttl:c,nonce:u}=await this.prepareTxParams(Kr.oracleRegister,{senderId:t,...arguments[0],abiVersion:a}),{tx:A}=this.nativeMode?{tx:SA({params:{accountId:t,queryFee:o,abiVersion:a,fee:s,oracleTtl:i,nonce:u,ttl:c,queryFormat:n,responseFormat:r},type:Kr.oracleRegister}).encodedTx}:await this.api.postOracleRegister({accountId:t,queryFee:o,abiVersion:a,fee:parseInt(s),oracleTtl:i,nonce:u,ttl:c,queryFormat:n,responseFormat:r});return A},oracleExtendTx:async function(e){let{oracleId:t,callerId:n,oracleTtl:r}=e;const{fee:o,ttl:i,nonce:a}=await this.prepareTxParams(Kr.oracleExtend,{senderId:n,...arguments[0]}),{tx:s}=this.nativeMode?{tx:SA({params:{oracleId:t,fee:o,oracleTtl:r,nonce:a,ttl:i},type:Kr.oracleExtend}).encodedTx}:await this.api.postOracleExtend({oracleId:t,fee:parseInt(o),oracleTtl:r,nonce:a,ttl:i});return s},oraclePostQueryTx:async function(e){let{oracleId:t,responseTtl:n,query:r,queryTtl:o,queryFee:i,senderId:a}=e;const{fee:s,ttl:c,nonce:u}=await this.prepareTxParams(Kr.oracleQuery,{senderId:a,...arguments[0]}),{tx:A}=this.nativeMode?{tx:SA({params:{oracleId:t,responseTtl:n,query:r,queryTtl:o,fee:s,queryFee:i,ttl:c,nonce:u,senderId:a},type:Kr.oracleQuery}).encodedTx}:await this.api.postOracleQuery({oracleId:t,responseTtl:n,query:r,queryTtl:o,fee:parseInt(s),queryFee:i,ttl:c,nonce:u,senderId:a});return A},oracleRespondTx:async function(e){let{oracleId:t,callerId:n,responseTtl:r,queryId:o,response:i}=e;const{fee:a,ttl:s,nonce:c}=await this.prepareTxParams(Kr.oracleResponse,{senderId:n,...arguments[0]}),{tx:u}=this.nativeMode?{tx:SA({params:{oracleId:t,responseTtl:r,queryId:o,response:i,fee:a,ttl:s,nonce:c},type:Kr.oracleResponse}).encodedTx}:await this.api.postOracleRespond({oracleId:t,responseTtl:r,queryId:o,response:i,fee:parseInt(a),ttl:s,nonce:c});return u},channelCloseSoloTx:async function(e){let{channelId:t,fromId:n,payload:r,poi:o}=e;const{fee:i,ttl:a,nonce:s}=await this.prepareTxParams(Kr.channelCloseSolo,{senderId:n,...arguments[0],payload:r}),{tx:c}=this.nativeMode?Ii({...arguments[0],channelId:t,fromId:n,payload:r,poi:o,ttl:a,fee:i,nonce:s},Kr.channelCloseSolo):await this.api.postChannelCloseSolo({...arguments[0],channelId:t,fromId:n,payload:r,poi:o,ttl:a,fee:parseInt(i),nonce:s});return c},channelSlashTx:async function(e){let{channelId:t,fromId:n,payload:r,poi:o}=e;const{fee:i,ttl:a,nonce:s}=await this.prepareTxParams(Kr.channelSlash,{senderId:n,...arguments[0],payload:r}),{tx:c}=this.nativeMode?Ii({...arguments[0],channelId:t,fromId:n,payload:r,poi:o,ttl:a,fee:i,nonce:s},Kr.channelSlash):await this.api.postChannelSlash({...arguments[0],channelId:t,fromId:n,payload:r,poi:o,ttl:a,fee:parseInt(i),nonce:s});return c},channelSettleTx:async function(e){let{channelId:t,fromId:n,initiatorAmountFinal:r,responderAmountFinal:o}=e;const{fee:i,ttl:a,nonce:s}=await this.prepareTxParams(Kr.channelSettle,{senderId:n,...arguments[0]}),{tx:c}=this.nativeMode?Ii({...arguments[0],channelId:t,fromId:n,initiatorAmountFinal:r,responderAmountFinal:o,ttl:a,fee:i,nonce:s},Kr.channelSettle):await this.api.postChannelSettle({...arguments[0],channelId:t,fromId:n,initiatorAmountFinal:parseInt(r),responderAmountFinal:parseInt(o),ttl:a,fee:parseInt(i),nonce:s});return c},channelSnapshotSoloTx:async function(e){let{channelId:t,fromId:n,payload:r}=e;const{fee:o,ttl:i,nonce:a}=await this.prepareTxParams(Kr.channelSnapshotSolo,{senderId:n,...arguments[0],payload:r}),{tx:s}=this.nativeMode?Ii({...arguments[0],channelId:t,fromId:n,payload:r,ttl:i,fee:o,nonce:a},Kr.channelSnapshotSolo):await this.api.postChannelSnapshotSolo({...arguments[0],channelId:t,fromId:n,payload:r,ttl:i,fee:parseInt(o),nonce:a});return s},gaAttachTx:async function(e){let{ownerId:t,code:n,vmVersion:r,abiVersion:o,authFun:i,gas:a,gasPrice:s=xr,callData:c}=e;const u=this.getVmVersion(Kr.contractCreate,arguments[0]),{fee:A,ttl:l,nonce:f}=await this.prepareTxParams(Kr.gaAttach,{senderId:t,...arguments[0],ctVersion:u,gasPrice:s});return{tx:SA({params:{...arguments[0],nonce:f,ttl:l,fee:A,ctVersion:u,gasPrice:s},type:Kr.gaAttach}).encodedTx,contractId:Jn(t,f)}},payingForTx:async function(e){let{tx:t,payerId:n,...r}=e;const o={tx:vi(t),payerId:n},{fee:i,nonce:a}=await this.prepareTxParams(Kr.payingFor,{...o,...r,senderId:n});return Ii({...o,...r,fee:i,nonce:a},Kr.payingFor).tx},getAccountNonce:async function(e,t){if(t)return t;const{nonce:n}=await this.api.getAccountByPubkey(e).catch((()=>({nonce:0})));return n+1},getVmVersion:function(e){let{vmVersion:t,abiVersion:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{consensusProtocolVersion:r}=this.getNodeInfo(),o=Wr[r];if(!o)throw new Y("Not supported consensus protocol version");const i=o[e];if(!i)throw new Xe("Not supported tx type");if(n=n||i.abiVersion[0],t=t||i.vmVersion[0],!i.vmVersion.includes(t))throw new et(`VM VERSION ${t} do not support by this node. Supported: [${i.vmVersion}]`);if(!i.abiVersion.includes(n))throw new Ze(`ABI VERSION ${n} do not support by this node. Supported: [${i.abiVersion}]`);return{vmVersion:t,abiVersion:n}}}});var kA=NA,DA=n(48764).Buffer;const FA=new WeakMap;var UA=dA.compose({init(e){let{keypair:t,gaId:n}=e;if(this.isGa=!!n,n)return bt(n),void FA.set(this,{publicKey:n});if(!t||"object"!=typeof t)throw new J("KeyPair must be an object");if(!t.secretKey||!t.publicKey)throw new J('KeyPair must must have "secretKey", "publicKey" properties');if("string"!=typeof t.publicKey||-1===t.publicKey.indexOf("ak_"))throw new J('Public Key must be a base58c string with "ak_" prefix');if(!DA.isBuffer(t.secretKey)&&"string"==typeof t.secretKey&&!st(t.secretKey))throw new J("Secret key must be hex string or Buffer");const r=DA.from(bt(t.publicKey,"ak"));if(!Kt(DA.from(t.secretKey,"hex"),r))throw new J("Invalid Key Pair");FA.set(this,{secretKey:DA.isBuffer(t.secretKey)?t.secretKey:DA.from(t.secretKey,"hex"),publicKey:t.publicKey})},props:{isGa:!1},methods:{sign(e){if(this.isGa)throw new J("You are trying to sign data using generalized account without keypair");return Promise.resolve(Lt(e,FA.get(this).secretKey))},address(){return Promise.resolve(FA.get(this).publicKey)}}}),RA=dA.compose(Yi,{async init(e){let{accounts:t=[],address:n}=e;this.accounts=Object.fromEntries(await Promise.all(t.map((async e=>[await e.address(),e])))),n=n||Object.keys(this.accounts)[0],n&&this.selectAccount(n)},props:{accounts:{}},deepProps:{selectedAddress:null},methods:{async address(){let{onAccount:e=this.selectedAddress}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._resolveAccount(e).address()},async sign(e){let{onAccount:t=this.selectedAddress}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._resolveAccount(t).sign(e)},addresses(){return Object.keys(this.accounts)},async addAccount(e){let{select:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await e.address();this.accounts[n]=e,t&&this.selectAccount(n)},removeAccount(e){this.accounts[e]?(delete this.accounts[e],this.selectedAddress===e&&(this.selectedAddress=null)):console.warn(`removeAccount: Account for ${e} not available`)},selectAccount(e){if(bt(e,"ak"),!this.accounts[e])throw new W(e);this.selectedAddress=e},_resolveAccount(e){if(null===e)throw new H("Account should be an address (ak-prefixed string), keypair, or instance of account base, got null instead");switch(typeof e){case"string":if(bt(e,"ak"),!this.accounts[e])throw new W(e);return this.accounts[e];case"object":return pA(e)?e:UA({keypair:e});default:throw new H(`Account should be an address (ak-prefixed string), keypair, or instance of account base, got ${e} instead`)}}}});const PA=yA.compose({methods:{aensQuery:async function(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sr(e);const r=await this.getName(e);return Object.freeze(Object.assign(r,{pointers:r.pointers||[],update:async function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{...await t.aensUpdate(e,r,{...n,...o}),...await t.aensQuery(e)}},transfer:async function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{...await t.aensTransfer(e,r,{...n,...o}),...await t.aensQuery(e)}},revoke:async function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.aensRevoke(e,{...n,...r})},extendTtl:async function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nn,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("number"!=typeof r||r>Nn||r<=0)throw new N("nameTtl",`a number between 1 and ${Nn} blocks`,r);return{...await t.aensUpdate(e,{},{...n,...o,nameTtl:r,extendPointers:!0}),...await t.aensQuery(e)}}}))},aensPreclaim:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sr(e);const n={...this.Ae.defaults,...t},r=Dt(),o=await this.height(),i=Zn(e,r),a=await this.namePreclaimTx({...n,accountId:await this.address(n),commitmentId:i}),s=await this.send(a,n);return Object.freeze({...s,height:o,claim:t=>this.aensClaim(e,r,{...t,onAccount:n.onAccount}),salt:r,commitmentId:i})},aensClaim:async function(e,t,n){sr(e);const r={...this.Ae.defaults,...n},o=await this.nameClaimTx({...r,accountId:await this.address(r),nameSalt:t,name:e}),i=await this.send(o,r);if(!hr(e)){const t=r.waitMined?await this.aensQuery(e,r):{};return Object.assign(i,t)}return{...i,nameFee:r.nameFee}},aensUpdate:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};sr(e);const r={...this.Ae.defaults,...n},o={...n.extendPointers&&Object.fromEntries((await this.getName(e)).pointers.map((e=>{let{key:t,id:n}=e;return[t,n]}))),...t},i=await this.nameUpdateTx({...r,nameId:e,accountId:await this.address(r),pointers:Object.entries(o).map((e=>{let[t,n]=e;return{key:t,id:n}}))});return this.send(i,r)},aensTransfer:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};sr(e);const r={...this.Ae.defaults,...n},o=await this.nameTransferTx({...r,nameId:e,accountId:await this.address(r),recipientId:t});return this.send(o,r)},aensRevoke:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sr(e);const n={...this.Ae.defaults,...t},r=await this.nameRevokeTx({...n,nameId:e,accountId:await this.address(n)});return this.send(r,n)},aensBid:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.aensClaim(e,0,{...n,nameFee:t,vsn:2})}},deepProps:{Ae:{defaults:{clientTtl:Fn,nameTtl:Nn}}}});var MA=PA,jA=Yi.compose({async init(e){let{compilerUrl:t,ignoreVersion:n}=e;t&&await this.setCompilerUrl(t,{ignoreVersion:n})},methods:{async setCompilerUrl(e){let{ignoreVersion:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new P("compilerUrl required");e=e.replace(/\/$/,"");const n=await aA(`${e}/api`,{disableBigNumbers:!0,disableCaseConversion:!0,responseInterceptor:e=>{if(e.ok)return;let t=`${new URL(e.url).pathname.slice(1)} error`;return e.body.reason&&(t+=": "+e.body.reason+(e.body.parameter?` in ${e.body.parameter}`:"")+(e.body.info?` (${JSON.stringify(e.body.info)})`:"")),Array.isArray(e.body)&&(t+=":\n"+e.body.map((e=>`${e.type}:${e.pos.line}:${e.pos.col}: ${e.message}${e.context?`(${e.context})`:""}`)).map((e=>e.trim())).join("\n")),e.statusText=t,e}});if(this.compilerVersion=n.spec.info.version,this.compilerApi=xn(n.api,(e=>{let[t,n]=e;return[t,function(){let{options:{filesystem:e,...t}={},...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n({...r,options:{...t,file_system:e}})}]})),!t&&!sA(this.compilerVersion,LA,GA))throw new z("compiler",this.compilerVersion,LA,GA)}},props:{compilerVersion:null}});const LA="6.1.0",GA="7.0.0";var HA=n(23023),qA=n(48764).Buffer,YA=yA.compose(jA,{methods:{getContractInstance:async function(){var e=this;let{source:t,bytecode:n,aci:r,contractAddress:o,filesystem:i={},validateBytecode:a,...s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!r&&t&&(r=await this.compilerApi.generateACI({code:t,options:{filesystem:i}})),!r)throw new ye;if(o=o&&await this.resolveName(o,"contract_pubkey",{resolveByNode:!0}),!o&&!t&&!n)throw new ge("Can't create instance by ACI without address");if(o&&!(await this.getContract(o)).active)throw new pe(o);const c={_aci:r,_name:r.encoded_aci.contract.name,calldata:new HA.Encoder([r.encoded_aci,...r.external_encoded_aci]),source:t,bytecode:n,deployInfo:{address:o},options:{...this.Ae.defaults,callStatic:!1,filesystem:i,...s},compilerVersion:this.compilerVersion};if(a){if(!o)throw new ge("Can't validate bytecode without contract address");const e=(await this.getContractByteCode(o)).bytecode;if(!(t?await this.compilerApi.validateByteCode({bytecode:e,source:t,options:c.options}).then((e=>0===Object.entries(e).length),(()=>!1)):n===e))throw new fe(t?"source":"bytecode")}c.compile=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(c.bytecode)throw new k("Contract already compiled");if(!c.source)throw new k("Can't compile without source code");const{bytecode:n}=await e.compilerApi.compileContract({code:c.source,options:{...c.options,...t}});return c.bytecode=n,c.bytecode};const u=async(e,t)=>{const n=await this.send(e,t),r={hash:n.hash,tx:TA({tx:n.rawTx}),txData:n,rawTx:n.rawTx};if(!1===t.waitMined)return r;const{callInfo:o}=await this.api.getTransactionInfoByHash(n.hash);return Object.assign(r.txData,o),await A(o),{...r,result:o}},A=e=>{let t,{returnType:n,returnValue:r}=e;switch(n){case"ok":return;case"revert":t=c.calldata.decodeFateString(r);break;case"error":t=bt(r).toString();break;default:throw new V(`Unknown returnType: ${n}`)}throw new Ie(t)};function l(e){const t=c._aci.encoded_aci.contract.functions.find((t=>t.name===e));if(t)return t;if("init"===e)return{payable:!1};throw new ve(`Function ${e} doesn't exist in contract`)}function f(e,t,n){let{contractAddressToName:r}=n;const o={...c.options.contractAddressToName,...r};if(o[e])return o[e];const i=[c._aci.encoded_aci,...c._aci.external_encoded_aci].filter((e=>{let{contract:t}=e;return null==t?void 0:t.event})).map((e=>{let{contract:t}=e;return[t.name,t.event.variant]})).map((e=>{let[t,n]=e;return n.map((e=>[t,Object.keys(e)[0]]))})).flat().filter((e=>{let[,n]=e;return BigInt("0x"+St(n).toString("hex"))===t}));switch(i.length){case 0:throw new Ee(t,e);case 1:return i[0][0];default:throw new Be(e,i)}}return c._estimateGas=async(e,t,n)=>{const{result:{gasUsed:r}}=await c.call(e,t,{...n,callStatic:!0});return Math.floor(1.25*r)},c.deploy=async function(){var t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;const o={...c.options,...r};if(c.bytecode||await c.compile(o),o.callStatic)return c.call("init",n,o);if(c.deployInfo.address)throw new he;const i=await e.address(o),{tx:a,contractId:s}=await e.contractCreateTx({...o,gas:null!==(t=o.gas)&&void 0!==t?t:await c._estimateGas("init",n,o),callData:c.calldata.encode(c._name,"init",n),code:c.bytecode,ownerId:i}),{hash:A,rawTx:l,result:f,txData:h}=await u(a,o);return c.deployInfo=Object.freeze({result:f,owner:i,transaction:A,rawTx:l,txData:h,address:s}),c.deployInfo},c.call=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o={...c.options,...r},i=l(t),a=c.deployInfo.address;if(!t)throw new me;if("init"===t&&!o.callStatic)throw new de('"init" can be called only via dryRun');if(!a&&"init"!==t)throw new de("You need to deploy contract before calling!");if("init"!==t&&o.amount>0&&!1===i.payable)throw new we(`You try to pay "${o.amount}" to function "${t}" which is not payable. Only payable function can accept coins`);const s=await e.address(o).catch((e=>{if(o.callStatic)return Sr.pub;throw e})),f=c.calldata.encode(c._name,t,n);let h;if(o.callStatic){var p,d;"number"==typeof o.top&&(o.top=(await e.getKeyBlock(o.top)).hash);const n={...o,gas:null!==(p=o.gas)&&void 0!==p?p:Qr,callData:f,nonce:null!==(d=o.nonce)&&void 0!==d?d:o.top&&(await e.getAccount(s,{hash:o.top})).nonce+1},r="init"===t?(await e.contractCreateTx({...n,code:c.bytecode,ownerId:s})).tx:await e.contractCallTx({...n,callerId:s,contractId:a}),{callObj:i,...u}=await e.txDryRun(r,s,o);await A(i),h={...u,tx:TA({tx:r}),result:i}}else{var g;const r=await e.contractCallTx({...o,gas:null!==(g=o.gas)&&void 0!==g?g:await c._estimateGas(t,n,o),callerId:s,contractId:a,callData:f});h=await u(r,o)}return(o.waitMined||o.callStatic)&&(h.decodedResult=i.returns&&"unit"!==i.returns&&"init"!==t&&c.calldata.decode(c._name,t,h.result.returnValue),h.decodedEvents=c.decodeEvents(h.result.log,o)),h},c.decodeEvents=function(e){let{omitUnknown:t,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.map((e=>{const r=e.topics.map((e=>BigInt(e)));let o;try{o=f(e.address,r[0],n)}catch(e){if(t&&e instanceof Ee)return null;throw e}const i=c.calldata.decodeEvent(o,e.data,r),[a,s]=Object.entries(i)[0];return{name:a,args:s,contract:{name:o,address:e.address}}})).filter((e=>e))},c.methods=Object.fromEntries(c._aci.encoded_aci.contract.functions.map((e=>{let{name:t,arguments:n,stateful:r}=e;const o=e=>function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a=o.length===n.length+1?o.pop():{};if("object"!=typeof a)throw new H(`Options should be an object: ${a}`);return"init"===t?c.deploy(o,{callStatic:e,...a}):c.call(t,o,{callStatic:e,...a})};return[t,Object.assign(o("init"!==t&&!r),{get:o(!0),send:o(!1)})]}))),c},delegateSignatureCommon:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await this.sign(qA.concat([qA.from(this.getNetworkId(t)),...e.map((e=>bt(e)))]),t);return qA.from(n).toString("hex")},createAensDelegationSignature:async function(e){let{contractId:t,name:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.delegateSignatureCommon([await this.address(r),...n?[Xn(n)]:[],t],r)},createOracleDelegationSignature:async function(e){let{contractId:t,queryId:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.delegateSignatureCommon([null!=n?n:await this.address(r),t],r)}},deepProps:{Ae:{defaults:{gasPrice:xr,amount:br}}}});const KA=e=>async(t,n)=>{if("object"!=typeof t)throw new le("AuthData must be an object");if(t.gas&&v()(t.gas).gt(_r))throw new le(`the maximum gas value for ga authFun is ${_r}, got ${t.gas}`);const r=t.gas||_r;if(t.callData){if("cb"!==t.callData.split("_")[0])throw new le('Auth data must be a string with "cb" prefix.');return{authCallData:t.callData,gas:r}}if(!t.source||!t.args)throw new le("Auth data must contain source code and arguments.");const o=await e.getContractInstance({source:t.source});return{authCallData:o.calldata.encode(o._name,n,t.args),gas:r}},zA=YA.compose({methods:{createGeneralizedAccount:async function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={...this.Ae.defaults,...o},a=await this.address(i);if(await this.isGA(a))throw new k(`Account ${a} is already GA`);const s=await this.getContractInstance({source:t});await s.compile();const{tx:c,contractId:u}=await this.gaAttachTx({...i,gas:null!==(n=i.gas)&&void 0!==n?n:await s._estimateGas("init",r,i),ownerId:a,code:s.bytecode,callData:s.calldata.encode(s._name,"init",r),authFun:St(e)}),{hash:A,rawTx:l}=await this.send(c,i);return Object.freeze({owner:a,transaction:A,rawTx:l,gaContractId:u})},createMetaTx:async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t)throw new P("authData is required");const{authCallData:o,gas:i}=await KA(this)(t,n),a={...this.Ae.defaults,...r},{abiVersion:s}=await this.getVmVersion(Kr.contractCall),c=JA(vi(e)),u={...a,tx:{...c,tx:c.txObject},gaId:await this.address(a),abiVersion:s,authData:o,gas:i,vsn:2},{fee:A}=await this.prepareTxParams(Kr.gaMeta,u),{rlpEncoded:l}=Ii({...u,fee:`${A}`},Kr.gaMeta,{vsn:2});return JA(l).tx},isGA:async function(e){const{contractId:t}=await this.getAccount(e);return!!t}}});var VA=zA;const JA=e=>Ii({encodedTx:e,signatures:[]},Kr.signed),WA=1;let $A,XA,ZA,el,tl;!function(e){e.to_waellet="to_waellet",e.to_aepp="to_aepp"}($A||($A={})),function(e){e.window="window",e.extension="extension"}(XA||(XA={})),function(e){e.subscribe="subscribe",e.unsubscribe="unsubscribe"}(ZA||(ZA={})),function(e){e.readyToConnect="connection.announcePresence",e.updateAddress="address.update",e.address="address.get",e.connect="connection.open",e.sign="transaction.sign",e.signMessage="message.sign",e.subscribeAddress="address.subscribe",e.updateNetwork="networkId.update",e.closeConnection="connection.close"}(el||(el={})),function(e){e.CONNECTED="CONNECTED",e.NODE_BINDED="NODE_BINDED",e.DISCONNECTED="DISCONNECTED",e.CONNECTION_REJECTED="CONNECTION_REJECTED",e.WAITING_FOR_CONNECTION_APPROVE="WAITING_FOR_CONNECTION_APPROVE",e.WAITING_FOR_CONNECTION_REQUEST="WAITING_FOR_CONNECTION_REQUEST"}(tl||(tl={}));const nl={broadcastFailed:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{code:3,data:e,message:"Broadcast failed"}},invalidTransaction:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{code:2,data:e,message:"Invalid transaction"}},rejectedByUser:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{code:4,data:e,message:"Operation rejected by user"}},connectionDeny:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{code:9,data:e,message:"Wallet deny your connection request"}},permissionDeny:e=>({code:11,message:`You are not subscribed for account ${e}`}),internalError:e=>({code:12,message:e}),notAuthorize:()=>({code:10,message:"You are not connected to the wallet"}),unsupportedProtocol:()=>({code:5,message:"Unsupported Protocol Version"}),unsupportedNetwork:()=>({code:8,message:"Unsupported Network"})},rl=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{chrome:t,browser:n}=window;if(void 0!==t&&t===Object(t))return t;if(void 0!==n&&n===Object(n))return n;if(!e)throw new M;return{}},ol=()=>window!==window.parent,il=e=>{let t=0;return function(n){let{id:r,method:o,params:i,result:a,error:s}=n,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c||(t+=1),r=c?r||null:t;const u=i?{params:i}:a?{result:a}:{error:s};return e.sendMessage({jsonrpc:"2.0",...r?{id:r}:{},method:o,...u}),r}},al=function(e,t){let{debug:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e[t.method];return r&&"function"==typeof r?r:(n&&console.log(`Unknown message method ${t.method}`),()=>async()=>!0)},sl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{method:e,params:t}},cl=function(e,t){let{error:n,result:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{id:e,method:t,...n?{error:n}:{result:r}}},ul=e=>(t,n,r)=>e.sendMessage(cl(t,n,r),!0),Al=e=>3===["","connected","current"].filter((t=>"object"==typeof(t?e[t]:e))).length;var ll=Mi()({init(e){let{id:t,name:n,networkId:r,icons:o,connection:i,handlers:[a,s]}=e;this.id=t,this.connection=i,this.info={name:n,networkId:r,icons:o},this.callbacks={},this.addressSubscription=[],this.accounts={},this.sendMessage=il(this.connection),i.connect(((e,t)=>{if(!e||!e.jsonrpc||"2.0"!==e.jsonrpc||!e.method)throw new te(e);a(e,t)}),((e,t)=>{this.disconnect(!0),"function"==typeof s&&s(t,this)}))},propertyDescriptors:{currentAccount:{enumerable:!0,configurable:!1,get(){return this.isHasAccounts()?Object.keys(this.accounts.current)[0]:void 0}},addresses:{enumerable:!0,configurable:!1,get(){return this.isHasAccounts()?[...Object.keys(this.accounts.current),...Object.keys(this.accounts.connected)]:[]}},origin:{enumerable:!0,configurable:!1,get(){return this.connection}}},methods:{updateInfo(e){Object.assign(this.info,e)},isHasAccounts(){return"object"==typeof this.accounts&&"object"==typeof this.accounts.connected&&"object"==typeof this.accounts.current},isSubscribed(){return this.addressSubscription.length&&this.isHasAccounts()},hasAccessToAccount(e){return!!e&&this.addresses.find((t=>t===e))},isConnected(){return this.connection.isConnected()&&(this.info.status===tl.CONNECTED||this.info.status===tl.NODE_BINDED)},getCurrentAccount(){let{onAccount:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||Object.keys(this.accounts.current)[0]},disconnect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.info.status=tl.DISCONNECTED,this.addressSubscription=[],this.accounts={},e||this.connection.disconnect()},setAccounts(e){let{forceNotification:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Al(e))throw new H("Invalid accounts object. Should be object like: `{ connected: {}, selected: {} }`");this.accounts=e,t||this.sendMessage(sl(el.updateAddress,this.accounts),!0)},updateSubscription(e,t){return e!==ZA.subscribe||this.addressSubscription.includes(t)||this.addressSubscription.push(t),e===ZA.unsubscribe&&this.addressSubscription.includes(t)&&(this.addressSubscription=this.addressSubscription.filter((e=>e!==t))),this.addressSubscription},request(e,t){const n=this.sendMessage(sl(e,t));if(Object.prototype.hasOwnProperty.call(this.callbacks,n))throw new ee;return new Promise(((e,t)=>{this.callbacks[n]={resolve:e,reject:t}}))},processResponse(e,t){let{id:n,error:r,result:o}=e;if(!this.callbacks[n])throw new ne(n);o?this.callbacks[n].resolve(..."function"==typeof t?t({id:n,result:o}):[o]):this.callbacks[n].reject(r),delete this.callbacks[n]}}});const fl={[el.updateAddress]:e=>t=>{let{params:n}=t;e.rpcClient.accounts=n,e.onAddressChange(n)},[el.updateNetwork]:e=>async t=>{let{params:n}=t;const{networkId:r,node:o}=n;e.rpcClient.info.networkId=r,o&&e.addNode(o.name,await fA(o),!0),e.onNetworkChange(n)},[el.closeConnection]:e=>t=>{e.disconnectWallet(),e.onDisconnect(t.params)}},hl={[el.address]:e=>t=>e.rpcClient.processResponse(t),[el.connect]:e=>t=>{t.result&&(e.rpcClient.info.status=tl.CONNECTED),e.rpcClient.processResponse(t)},[el.subscribeAddress]:e=>t=>{t.result&&(t.result.address&&(e.rpcClient.accounts=t.result.address),t.result.subscription&&(e.rpcClient.addressSubscription=t.result.subscription)),e.rpcClient.processResponse(t,(e=>{let{id:t,result:n}=e;return[n]}))},[el.sign]:e=>t=>{e.rpcClient.processResponse(t,(e=>{let{id:t,result:n}=e;return[n.signedTransaction||n.transactionHash]}))},[el.signMessage]:e=>t=>{e.rpcClient.processResponse(t,(e=>{let{id:t,result:n}=e;return[n.signature]}))}},pl={};var dl=yA.compose({async init(e){let{name:t,connection:n,debug:r=!1,...o}=e;["onAddressChange","onDisconnect","onNetworkChange"].forEach((e=>{var t;const n=null!==(t=o[e])&&void 0!==t?t:()=>{};if("function"!=typeof n)throw new N(e,"a function",n);this[e]=n})),this.connection=n,this.name=t,this.debug=r,n&&await this.connectToWallet(n)},deepProps:{Ae:{defaults:{walletBroadcast:!0}}},methods:{sign(){},addresses(){if(!this.isSubscribedAccount())throw new ie;return[this.rpcClient.currentAccount,...Object.keys(this.rpcClient.accounts.connected)]},async connectToWallet(e){let{connectNode:t=!1,name:n="wallet-node",select:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.rpcClient&&this.rpcClient.isConnected())throw new tt("You are already connected to wallet "+this.rpcClient);var o;this.rpcClient=ll({connection:e,networkId:this.getNetworkId({force:!0}),...e.connectionInfo,id:Zt(),handlers:[(o=this,async e=>e.id?Object.prototype.hasOwnProperty.call(o.rpcClient.callbacks,e.id)?al(hl,e,{debug:o.debug})(o)(e):al(pl,e,{debug:o.debug})(o)(e):al(fl,e,{debug:o.debug})(o)(e)),this.onDisconnect]});const i=await this.sendConnectRequest(t);if(t&&!Object.prototype.hasOwnProperty.call(i,"node"))throw new ot("Missing URLs of the Node");return t&&this.addNode(n,await fA(i.node),r),i},async disconnectWallet(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.isConnected())throw new rt("You are not connected to Wallet");e&&this.rpcClient.sendMessage(sl(el.closeConnection,{reason:"bye"}),!0),this.rpcClient.disconnect(),this.rpcClient=null},async address(){let{onAccount:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isConnected())throw new rt("You are not connected to Wallet");const t=this.rpcClient.currentAccount;if(!t)throw new ie;if(e&&!this.rpcClient.hasAccessToAccount(e))throw new re(e);return e||t},async askAddresses(){if(!this.isConnected())throw new rt("You are not connected to Wallet");if(!this.isSubscribedAccount())throw new ie;return this.rpcClient.request(el.address)},async subscribeAddress(e,t){if(!this.isConnected())throw new rt("You are not connected to Wallet");return this.rpcClient.request(el.subscribeAddress,{type:e,value:t})},async signTransaction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isConnected())throw new rt("You are not connected to Wallet");if(!this.isSubscribedAccount())throw new ie;if(t.onAccount&&!this.rpcClient.hasAccessToAccount(t.onAccount))throw new re(t.onAccount);return this.rpcClient.request(el.sign,{...t,tx:e,returnSigned:!0,networkId:this.getNetworkId()})},async signMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isConnected())throw new rt("You are not connected to Wallet");if(!this.isSubscribedAccount())throw new ie;if(t.onAccount&&!this.rpcClient.hasAccessToAccount(t.onAccount))throw new re(t.onAccount);return this.rpcClient.request(el.signMessage,{...t,message:e})},async sendConnectRequest(e){return this.rpcClient.request(el.connect,{name:this.name,version:WA,networkId:this.getNetworkId({force:!0}),connectNode:e})},async send(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isConnected())throw new rt("You are not connected to Wallet");if(!this.isSubscribedAccount())throw new ie;if(t.onAccount&&!this.rpcClient.hasAccessToAccount(t.onAccount))throw new re(t.onAccount);const n={...this.Ae.defaults,...t};if(!n.walletBroadcast){const t=await this.signTransaction(e,{onAccount:n.onAccount});return this.sendTransaction(t,n)}return this.rpcClient.request(el.sign,{onAccount:n.onAccount,tx:e,returnSigned:!1,networkId:this.getNetworkId()})},isConnected(){return this.rpcClient&&this.rpcClient.isConnected()},isSubscribedAccount(){return void 0!==this.rpcClient.currentAccount}}});const gl=yA.compose({methods:{registerOracle:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={...this.Ae.defaults,...n},o=await this.address(r),i=await this.oracleRegisterTx({...r,accountId:o,queryFormat:e,responseFormat:t});return{...await this.send(i,r),...await this.getOracleObject(`ok_${o.slice(3)}`)}},respondToQuery:async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o={...this.Ae.defaults,...r},i=await this.address(o),a=await this.oracleRespondTx({...o,oracleId:e,queryId:t,callerId:i,response:n});return{...await this.send(a,o),...await this.getOracleObject(e)}},extendOracleTtl:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={...this.Ae.defaults,...n},o=await this.address(r),i=await this.oracleExtendTx({...r,oracleId:e,callerId:o,oracleTtl:t});return{...await this.send(i,r),...await this.getOracleObject(e)}},postQueryToOracle:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n.queryFee||(await this.api.getOracleByPubkey(e)).queryFee,o={...this.Ae.defaults,queryFee:r,...n},i=await this.address(o),a=await this.oraclePostQueryTx({...o,oracleId:e,senderId:i,query:t}),s=Wn(i,vi(a).tx.nonce,e);return{...await this.send(a,o),...await this.getQueryObject(e,s)}},pollForQueryResponse:async function(e,t){let{attempts:n=20,interval:r=this._getPollInterval("microblock")}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(let o=0;o<n;o++){o&&await Qn(r);const{response:n}=await this.api.getOracleQueryByPubkeyAndQueryId(e,t),i=bt(n,"or");if(i.length)return String(i)}throw new L((n-1)*r)},pollForQueries:function(e,t){let{interval:n=this._getPollInterval("microblock")}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new Set,o=async()=>{const n=((await this.api.getOracleQueriesByPubkey(e)).oracleQueries||[]).filter((e=>{let{id:t}=e;return!r.has(t)}));n.forEach((e=>{let{id:t}=e;return r.add(t)})),n.length&&t(n)};let i;return(async()=>{for(;!i;)await o().catch(console.error),await Qn(n)})(),()=>{i=!0}},getOracleObject:async function(e){const t=await this.api.getOracleByPubkey(e),{oracleQueries:n}=await this.api.getOracleQueriesByPubkey(e);return{...t,queries:n,pollQueries:this.pollForQueries.bind(this,e),postQuery:this.postQueryToOracle.bind(this,e),respondToQuery:this.respondToQuery.bind(this,e),extendOracle:this.extendOracleTtl.bind(this,e),getQuery:this.getQueryObject.bind(this,e)}},getQueryObject:async function(e,t){const n=await this.api.getOracleQueryByPubkeyAndQueryId(e,t);return{...n,decodedQuery:bt(n.query).toString(),decodedResponse:bt(n.response).toString(),respond:this.respondToQuery.bind(this,e,t),pollForResponse:this.pollForQueryResponse.bind(this,e,t),decode:e=>bt(e)}}},deepProps:{Ae:{defaults:{queryFee:wr,oracleTtl:Er,queryTtl:Br,responseTtl:Cr}}}});var yl=gl,ml=yA.compose(kA,yl,YA,MA,bA,dl);const Il=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.find((e=>e===t))){if("object"!=typeof n.onAccount||!pA(n.onAccount))throw new H("Provided onAccount should be an AccountBase");t=n.onAccount}return t},vl={[el.closeConnection]:(e,t)=>{let{client:n}=t;return async t=>{n.disconnect(!0),e.onDisconnect(t.params,n)}}},wl={},El={[el.connect](e,t,n,r){let{name:o,networkId:i,version:a,icons:s,connectNode:c}=r;return a!==WA?{error:nl.unsupportedProtocol()}:(n.updateInfo({status:tl.WAITING_FOR_CONNECTION_APPROVE,name:o,networkId:i,icons:s,version:a,origin:window.location.origin,connectNode:c}),e("onConnection",{name:o,networkId:i,version:a},(function(){let{shareNode:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.updateInfo({status:e?tl.NODE_BINDED:tl.CONNECTED}),{result:{...t.getWalletInfo(),...e&&{node:t.selectedNode}}}}),(e=>(n.updateInfo({status:tl.CONNECTION_REJECTED}),{error:nl.connectionDeny(e)}))))},[el.subscribeAddress](e,t,n,r){let{type:o,value:i}=r;return n.isConnected()?e("onSubscription",{type:o,value:i},(async function(){let{accounts:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const r=e||t.getAccounts();if(!Al(r))throw new H("Invalid provided accounts object");const a=n.updateSubscription(o,i);return n.setAccounts(r,{forceNotification:!0}),{result:{subscription:a,address:r}}}catch(e){return t.debug&&console.error(e),{error:nl.internalError(e.message)}}}),(e=>({error:nl.rejectedByUser(e)}))):{error:nl.notAuthorize()}},[el.address]:(e,t,n)=>n.isConnected()&&n.isSubscribed()?e("onAskAccounts",{},(function(){let{accounts:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{result:e||[...Object.keys(n.accounts.current),...Object.keys(n.accounts.connected)]}}),(e=>({error:nl.rejectedByUser(e)}))):{error:nl.notAuthorize()},[el.sign](e,t,n,r){const{tx:o,onAccount:i,networkId:a,returnSigned:s=!1}=r,c=i||n.currentAccount;return a&&n.updateInfo({networkId:a}),n.isConnected()?n.hasAccessToAccount(c)?a&&a===t.getNetworkId()?e("onSign",{tx:o,returnSigned:s,onAccount:c,txObject:TA.fromString(o)},(async function(e){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{n=Il(t.addresses(),c,r)}catch(e){return t.debug&&console.error(e),{error:nl.internalError(e.message)}}try{const r=e||o;return{result:s?{signedTransaction:await t.signTransaction(r,{onAccount:n})}:{transactionHash:await t.send(r,{onAccount:n,verify:!1})}}}catch(n){if(!s){const r=await wA(e||o,t.selectedNode.instance);return r.length?{error:nl.invalidTransaction(r)}:{error:nl.broadcastFailed(n.message)}}throw n}}),(e=>({error:nl.rejectedByUser(e)}))):{error:nl.unsupportedNetwork()}:{error:nl.permissionDeny(c)}:{error:nl.notAuthorize()}},[el.signMessage](e,t,n,r){let{message:o,onAccount:i}=r;if(!n.isConnected())return{error:nl.notAuthorize()};const a=i||n.currentAccount;return n.hasAccessToAccount(a)?e("onMessageSign",{message:o,onAccount:a},(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const n=Il(t.addresses(),a,e);return{result:{signature:await t.signMessage(o,{onAccount:n,returnHex:!0})}}}catch(e){return t.debug&&console.error(e),{error:nl.internalError(e.message)}}}),(e=>({error:nl.rejectedByUser(e)}))):{error:nl.permissionDeny(a)}}},Bl=(e,t)=>async(n,r)=>{const o=e.rpcClients[t];if(!n.id)return al(vl,n,{debug:e.debug})(e,{client:o})(n,r);if(Object.prototype.hasOwnProperty.call(o.callbacks,n.id))return al(wl,n,{debug:e.debug})(e,{client:o})(n,r);{const{id:t,method:i}=n,a=(n,a,s,c)=>()=>new Promise((u=>{e[n](o,{id:t,method:i,params:a,accept:function(){return u(s(...arguments))},deny:function(){return u(c(...arguments))}},r)})),s=al(El,n,{debug:e.debug})(a,e,o,n.params),c="function"==typeof s?await s():s;ul(o)(t,i,c)}};var Cl=yA.compose(RA,{init(){var e=this;let{name:t,debug:n=!1,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};["onConnection","onSubscription","onSign","onDisconnect","onAskAccounts","onMessageSign"].forEach((e=>{const t=r[e];if("function"!=typeof t)throw new N(e,"a function",t);this[e]=t})),this.debug=n,this.rpcClients={},this.name=t,this.id=Zt();const o=this.selectAccount.bind(this),i=this.addAccount.bind(this),a=this.selectNode.bind(this);this.selectAccount=function(t){let{condition:n=(()=>!0)}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(t),Object.values(e.rpcClients).filter((e=>e.isConnected()&&e.isSubscribed()&&e.hasAccessToAccount(t)&&n(e))).forEach((e=>e.setAccounts({current:{[t]:{}},connected:{...e.accounts.current,...Object.entries(e.accounts.connected).filter((e=>{let[n,r]=e;return n!==t})).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:r}}),{})}})))},this.addAccount=async function(t){let{select:n,meta:r={},condition:o=(()=>!0)}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};await i(t,{select:n});const a=await t.address();Object.values(e.rpcClients).filter((e=>e.isConnected()&&e.isSubscribed()&&o(e))).forEach((e=>e.setAccounts({current:{...n?{[a]:r}:e.accounts.current},connected:{...n?e.accounts.current:{[a]:r},...e.accounts.connected}})))},this.selectNode=e=>{a(e),Object.values(this.rpcClients).filter((e=>e.isConnected())).forEach((e=>{e.sendMessage(sl(el.updateNetwork,{networkId:this.getNetworkId(),...e.info.status===tl.NODE_BINDED&&{node:this.selectedNode}}),!0)}))}},methods:{removeRpcClient(e){let{forceConnectionClose:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.rpcClients[e];if(!n)throw new oe(e);n.disconnect(t),delete this.rpcClients[e]},addRpcClient(e){const t=Zt();return this.rpcClients[t]=ll({id:t,info:{status:tl.WAITING_FOR_CONNECTION_REQUEST},connection:e,handlers:[Bl(this,t),this.onDisconnect]}),t},shareWalletInfo(e){e({jsonrpc:"2.0",...sl(el.readyToConnect,this.getWalletInfo())})},getWalletInfo(){const e=rl(!0).runtime;return{id:e&&e.id?e.id:this.id,name:this.name,networkId:this.getNetworkId(),origin:window.location.origin,type:e&&e.id?XA.extension:XA.window}},getAccounts(){return{current:this.selectedAddress?{[this.selectedAddress]:{}}:{},connected:this.addresses().filter((e=>e!==this.selectedAddress)).reduce(((e,t)=>({...e,[t]:{}})),{})}}}}),bl=yA.compose(Cl,kA,YA,yl,MA,VA,bA),Ql=n(45840),xl=n(17187);const _l=new WeakMap,Sl=new WeakMap,Tl=new WeakMap,Ol=new WeakMap,Nl=new WeakMap,kl=new WeakMap,Dl=new WeakMap,Fl=new WeakMap,Ul=new WeakMap,Rl=new WeakMap,Pl=new WeakMap,Ml=new WeakMap,jl=new WeakMap,Ll=new WeakMap,Gl=new WeakMap,Hl=new WeakMap;function ql(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];kl.get(e).emit(...n)}function Yl(e,t){if(!t)throw new Ae;Ol.set(e,t),t.handler.enter&&t.handler.enter(e),Wl(e)}function Kl(e,t){t!==Sl.get(e)&&(Sl.set(e,t),ql(e,"statusChanged",t))}function zl(e,t){Tl.set(e,t),ql(e,"stateChanged",t)}function Vl(e,t){const{debug:n=!1}=_l.get(e);n&&console.log("Send message: ",t),Nl.get(e).send(oA.stringify(t))}function Jl(e,t,n){Ul.set(e,[...Ul.get(e)||[],{guard:t,action:n}]),Wl(e)}async function Wl(e){const t=Rl.get(e),n=Ul.get(e)||[];if(t||!n.length)return;const r=Ol.get(e),o=n.findIndex((t=>t.guard(e,r)));if(-1===o)return;Ul.set(e,n.filter(((e,t)=>o!==t))),Rl.set(e,!0);const i=await Promise.resolve(n[o].action(e,r));Rl.set(e,!1),Yl(e,i)}async function $l(e,t){const{handler:n,state:r}=Ol.get(e);Yl(e,await Promise.resolve(n(e,t,r)))}function Xl(e){clearTimeout(Ll.get(e)),clearTimeout(Gl.get(e)),Ll.set(e,setTimeout((()=>{Vl(e,{jsonrpc:"2.0",method:"channels.system",params:{action:"ping"}}),Gl.set(e,setTimeout((()=>{ef(e),ql(e,"error",new ce)}),5e3))}),1e4))}function Zl(e,t,n){return new Promise(((r,o)=>{const i=Pl.set(e,Pl.get(e)+1).get(e);jl.get(e).set(i,(e=>{if(e.result)return r(e.result);if(e.error){const[{message:t}={}]=e.error.data||[];return o(new ae(e.error.message+(t?`: ${t}`:"")))}})),Vl(e,{jsonrpc:"2.0",method:t,id:i,params:n})}))}function ef(e){Nl.get(e).close(),clearTimeout(Ll.get(e)),clearTimeout(Gl.get(e))}async function tf(e,t,n,r){let{url:o,...i}=r;_l.set(e,i),Ol.set(e,{handler:t}),kl.set(e,new xl.EventEmitter),Pl.set(e,0),jl.set(e,new Map),Dl.set(e,[]);const a=new URL(o);Object.entries(i).filter((e=>{let[t]=e;return!["sign","debug"].includes(t)})).forEach((e=>{let[t,n]=e;return a.searchParams.set(at(t),n)})),a.searchParams.set("protocol","json-rpc"),Kl(e,"connecting");const s=new Ql.w3cwebsocket(a.toString());await new Promise(((t,r)=>Object.assign(s,{onerror:r,onopen:()=>{t(),Kl(e,"connected"),i.reconnectTx&&(Yl(e,{handler:n}),setTimeout((async()=>zl(e,(await Zl(e,"channels.get.offchain_state",{})).signed_tx)))),Xl(e)},onclose:()=>{Kl(e,"disconnected"),clearTimeout(Ll.get(e)),clearTimeout(Gl.get(e))},onmessage:t=>{let{data:n}=t;return function(e,t){const n=oA.parse(t),{debug:r=!1}=_l.get(e);if(r&&console.log("Receive message: ",n),n.id){const t=jl.get(e).get(n.id);try{t(n)}finally{jl.get(e).delete(n.id)}}else"channels.message"!==n.method?"channels.system.pong"!==n.method?(Dl.get(e).push(n),async function(e){if(Fl.get(e))return;const t=Dl.get(e);if(t.length){for(Fl.set(e,!0);t.length;){const n=t.shift();try{await $l(e,n)}catch(e){console.error("Error handling incoming message:"),console.error(n),console.error(e)}}Fl.set(e,!1)}}(e)):n.params.channel_id!==Ml.get(e)&&null!=Ml.get(e)||Xl(e):ql(e,"message",n.params.data.message)}(e,n)}}))),Nl.set(e,s)}async function nf(e,t){const{signatures:n,encodedTx:r}=vi(e).tx,o=await t(Qt(r.rlpEncoded,"tx"));if("string"==typeof o){const{tx:e,txType:t}=vi(o);return Ii({signatures:n.concat(e.signatures),encodedTx:e.encodedTx.rlpEncoded},t).tx}return o}function rf(e,t,n){return n&&n.reject&&n.reject(Object.assign(new ue(`Unexpected message received:\n\n${JSON.stringify(t)}`),{wsMessage:t})),{handler:ff}}function of(e,t,n){return"channels.info"===t.method?["channel_accept","funding_created"].includes(t.params.data.event)?(Kl(e,{channel_accept:"accepted",funding_created:"halfSigned"}[t.params.data.event]),{handler:sf}):"channel_reestablished"===t.params.data.event?{handler:Af}:"fsm_up"===t.params.data.event?(Hl.set(e,t.params.data.fsm_id),{handler:of}):{handler:of}:"channels.error"===t.method?(ql(e,"error",new se(t.payload.message)),{handler:Of}):void 0}async function af(e,t,n){return"channels.info"===t.method&&"fsm_up"===t.params.data.event?(Hl.set(e,t.params.data.fsm_id),zl(e,(await Zl(e,"channels.get.offchain_state",{})).signed_tx),{handler:ff}):rf(0,t,n)}async function sf(e,t,n){const r={initiator:"initiator_sign",responder:"responder_sign"}[_l.get(e).role];if(t.method===`channels.sign.${r}`){if(t.params.data.tx){const n=await _l.get(e).sign(r,t.params.data.tx);return Vl(e,{jsonrpc:"2.0",method:`channels.${r}`,params:{tx:n}}),{handler:cf}}const n=await nf(t.params.data.signed_tx,(t=>_l.get(e).sign(r,t)));return Vl(e,{jsonrpc:"2.0",method:`channels.${r}`,params:{signed_tx:n}}),{handler:cf}}}function cf(e,t,n){if("channels.on_chain_tx"===t.method){if("funding_signed"===t.params.data.info&&"initiator"===_l.get(e).role)return{handler:uf};if("funding_created"===t.params.data.info&&"responder"===_l.get(e).role)return{handler:uf}}if("channels.info"===t.method&&"funding_signed"===t.params.data.event&&"initiator"===_l.get(e).role)return Ml.set(e,t.params.channel_id),Kl(e,"signed"),{handler:cf}}function uf(e,t,n){if("channels.info"===t.method){const e={funding_created:uf,own_funding_locked:uf,funding_locked:Af}[t.params.data.event];if(e)return{handler:e}}if("channels.on_chain_tx"===t.method)return ql(e,"onChainTx",t.params.data.tx,{info:t.params.data.info,type:t.params.data.type}),{handler:uf}}function Af(e,t,n){if("channels.info"===t.method&&"open"===t.params.data.event)return Ml.set(e,t.params.channel_id),{handler:lf}}function lf(e,t,n){if("channels.update"===t.method)return zl(e,t.params.data.state),{handler:ff}}async function ff(e,t,n){switch(t.method){case"channels.info":switch(t.params.data.event){case"update":case"withdraw_created":case"deposit_created":return{handler:df};case"own_withdraw_locked":case"withdraw_locked":case"own_deposit_locked":case"deposit_locked":case"peer_disconnected":case"channel_reestablished":case"open":return ql(e,t.params.data.event),{handler:ff};case"fsm_up":return Hl.set(e,t.params.data.fsm_id),{handler:ff};case"timeout":case"close_mutual":case"shutdown":return{handler:ff};case"closing":return Kl(e,"closing"),{handler:ff};case"closed_confirmed":return Kl(e,"closed"),{handler:Of};case"died":return Kl(e,"died"),{handler:Of}}break;case"channels.on_chain_tx":return ql(e,"onChainTx",t.params.data.tx,{info:t.params.data.info,type:t.params.data.type}),{handler:ff};case"channels.leave":return{handler:ff};case"channels.update":return zl(e,t.params.data.state),{handler:ff};case"channels.sign.shutdown_sign_ack":return df(e,t,n)}}async function hf(e,t,n){if("channels.sign.update"===t.method){const{sign:r}=n;if(t.params.data.tx)return Vl(e,{jsonrpc:"2.0",method:"channels.update",params:{tx:await r(t.params.data.tx,{updates:t.params.data.updates})}}),{handler:pf,state:n};const o=await nf(t.params.data.signed_tx,(e=>r(e,{updates:t.params.data.updates})));if("string"==typeof o)return Vl(e,{jsonrpc:"2.0",method:"channels.update",params:{signed_tx:o}}),{handler:pf,state:n};if("number"==typeof o)return Vl(e,{jsonrpc:"2.0",method:"channels.update",params:{error:o}}),{handler:hf,state:n}}if("channels.error"===t.method)return n.reject(new se(t.data.message)),{handler:ff};if(t.error){const{data:e=[]}=t.error;return e.find((e=>1001===e.code))?n.reject(new F("Insufficient balance")):e.find((e=>1002===e.code))?n.reject(new k("Amount cannot be negative")):n.reject(new se(t.error.message)),{handler:ff}}return"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:ff}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:ff}):rf(0,t,n)}function pf(e,t,n){return"channels.update"===t.method?(zl(e,t.params.data.state),n.resolve({accepted:!0,signedTx:t.params.data.state}),{handler:ff}):"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:ff}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:ff}):t.error?(n.reject(new se(t.error.message)),{handler:ff}):rf(0,t,n)}async function df(e,t,n){const[,r]=t.method.match(/^channels\.sign\.([^.]+)$/)||[];if(r){if(t.params.data.tx){const n=await _l.get(e).sign(r,t.params.data.tx,{updates:t.params.data.updates});if(n)return Vl(e,{jsonrpc:"2.0",method:`channels.${r}`,params:{tx:n}}),{handler:ff}}else{const o=await nf(t.params.data.signed_tx,(n=>_l.get(e).sign(r,n,{updates:t.params.data.updates})));if("string"==typeof o)return Vl(e,{jsonrpc:"2.0",method:`channels.${r}`,params:{signed_tx:o}}),{handler:ff};if("number"==typeof o)return Vl(e,{jsonrpc:"2.0",method:`channels.${r}`,params:{error:o}}),{handler:gf,state:n}}return Vl(e,{jsonrpc:"2.0",method:"channels.update.new",params:{from:Pt().publicKey,to:Pt().publicKey,amount:1}}),{handler:gf,state:n}}return rf(0,t,n)}function gf(e,t,n){return t.error?{handler:gf,state:n}:"channels.conflict"===t.method?{handler:ff}:rf(0,t,n)}async function yf(e,t,n){if("channels.sign.shutdown_sign"===t.method){if(t.params.data.tx)return Vl(e,{jsonrpc:"2.0",method:"channels.shutdown_sign",params:{tx:await n.sign(t.params.data.tx)}}),{handler:mf,state:n};const r=await nf(t.params.data.signed_tx,(e=>n.sign(e)));return Vl(e,{jsonrpc:"2.0",method:"channels.shutdown_sign",params:{signed_tx:r}}),{handler:mf,state:n}}return rf(0,t,n)}function mf(e,t,n){return"channels.on_chain_tx"===t.method?{handler:Of,state:n}:rf(0,t,n)}function If(e,t,n){return"channels.leave"===t.method?(n.resolve({channelId:t.params.channel_id,signedTx:t.params.data.state}),ef(e),{handler:Of}):"channels.error"===t.method?(n.reject(new se(t.data.message)),{handler:ff}):rf(0,t,n)}async function vf(e,t,n){if("channels.sign.withdraw_tx"===t.method){const{sign:r}=n;if(t.params.data.tx)return Vl(e,{jsonrpc:"2.0",method:"channels.withdraw_tx",params:{tx:await r(t.params.data.tx,{updates:t.params.data.updates})}}),{handler:wf,state:n};const o=await nf(t.params.data.signed_tx,(e=>r(e,{updates:t.params.data.updates})));if("string"==typeof o)return Vl(e,{jsonrpc:"2.0",method:"channels.withdraw_tx",params:{signed_tx:o}}),{handler:wf,state:n};if("number"==typeof o)return Vl(e,{jsonrpc:"2.0",method:"channels.withdraw_tx",params:{error:o}}),{handler:wf,state:n}}return rf(0,t,n)}function wf(e,t,n){if("channels.on_chain_tx"===t.method)return n.onOnChainTx&&n.onOnChainTx(t.params.data.tx),{handler:wf,state:n};if("channels.info"===t.method&&["own_withdraw_locked","withdraw_locked"].includes(t.params.data.event)){const e={own_withdraw_locked:n.onOwnWithdrawLocked,withdraw_locked:n.onWithdrawLocked}[t.params.data.event];return e&&e(),{handler:wf,state:n}}return"channels.update"===t.method?(zl(e,t.params.data.state),n.resolve({accepted:!0,signedTx:t.params.data.state}),{handler:ff}):"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:ff}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:ff}):rf(0,t,n)}async function Ef(e,t,n){if("channels.sign.deposit_tx"===t.method){const{sign:r}=n;if(t.params.data.tx)return Vl(e,{jsonrpc:"2.0",method:"channels.deposit_tx",params:{tx:await r(t.params.data.tx,{updates:t.params.data.updates})}}),{handler:Bf,state:n};const o=await nf(t.params.data.signed_tx,(e=>r(e,{updates:t.params.data.updates})));if("string"==typeof o)return Vl(e,{jsonrpc:"2.0",method:"channels.deposit_tx",params:{signed_tx:o}}),{handler:Bf,state:n};if("number"==typeof o)return Vl(e,{jsonrpc:"2.0",method:"channels.deposit_tx",params:{error:o}}),{handler:Bf,state:n}}return rf(0,t,n)}function Bf(e,t,n){if("channels.on_chain_tx"===t.method)return n.onOnChainTx&&n.onOnChainTx(t.params.data.tx),{handler:Bf,state:n};if("channels.info"===t.method&&["own_deposit_locked","deposit_locked"].includes(t.params.data.event)){const e={own_deposit_locked:n.onOwnDepositLocked,deposit_locked:n.onDepositLocked}[t.params.data.event];return e&&e(),{handler:Bf,state:n}}return"channels.update"===t.method?(zl(e,t.params.data.state),n.resolve({accepted:!0,signedTx:t.params.data.state}),{handler:ff}):"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:ff}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:ff}):rf(0,t,n)}async function Cf(e,t,n){if("channels.sign.update"===t.method){if(t.params.data.tx)return Vl(e,{jsonrpc:"2.0",method:"channels.update",params:{tx:await n.sign(t.params.data.tx)}}),{handler:bf,state:n};const r=await nf(t.params.data.signed_tx,(e=>n.sign(e)));if("string"==typeof r)return Vl(e,{jsonrpc:"2.0",method:"channels.update",params:{signed_tx:r}}),{handler:bf,state:n};if("number"==typeof r)return Vl(e,{jsonrpc:"2.0",method:"channels.update",params:{error:r}}),{handler:bf,state:n}}return rf(0,t,n)}function bf(e,t,n){if("channels.update"===t.method){const{round:r}=vi(t.params.data.state).tx.encodedTx.tx,o=_l.get(e)[{initiator:"initiatorId",responder:"responderId"}[_l.get(e).role]];return zl(e,t.params.data.state),n.resolve({accepted:!0,address:Ut(o,r),signedTx:t.params.data.state}),{handler:ff}}return"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:ff}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:ff}):rf(0,t,n)}async function Qf(e,t,n){if("channels.sign.update"===t.method){if(t.params.data.tx)return Vl(e,{jsonrpc:"2.0",method:"channels.update",params:{tx:await n.sign(t.params.data.tx,{updates:t.params.data.updates})}}),{handler:Sf,state:n};const r=await nf(t.params.data.signed_tx,(e=>n.sign(e,{updates:t.params.data.updates})));if("string"==typeof r)return Vl(e,{jsonrpc:"2.0",method:"channels.update",params:{signed_tx:r}}),{handler:Sf,state:n};if("number"==typeof r)return Vl(e,{jsonrpc:"2.0",method:"channels.update",params:{error:r}}),{handler:Sf,state:n}}return rf(0,t,n)}async function xf(e,t,n){if("channels.sign.force_progress_tx"===t.method){const r=await nf(t.params.data.signed_tx,(e=>n.sign(e,{updates:t.params.data.updates})));return Vl(e,{jsonrpc:"2.0",method:"channels.force_progress_sign",params:{signed_tx:r}}),{handler:_f,state:n}}return rf(0,t,n)}function _f(e,t,n){return"channels.on_chain_tx"===t.method&&(n.onOnChainTx&&n.onOnChainTx(t.params.data),ql(e,"onChainTx",t.params.data.tx,{info:t.params.data.info,type:t.params.data.type}),n.resolve({accepted:!0,tx:t.params.data.tx})),rf(0,t,n)}function Sf(e,t,n){return"channels.update"===t.method?(zl(e,t.params.data.state),n.resolve({accepted:!0,signedTx:t.params.data.state}),{handler:ff}):"channels.conflict"===t.method?(n.resolve({accepted:!1,errorCode:t.params.data.error_code,errorMessage:t.params.data.error_msg}),{handler:ff}):"channels.info"===t.method&&"aborted_update"===t.params.data.event?(n.resolve({accepted:!1}),{handler:ff}):rf(0,t,n)}function Tf(e,t,n){return"channels.calls_pruned.reply"===t.method?(n.resolve(),{handler:ff}):(n.reject(new ue("Unexpected message received")),{handler:Of})}function Of(e,t,n){return n?"closing"===t.params.data.event?{handler:Of,state:n}:"channel_closed"===t.params.data.info?(n.closeTx=t.params.data.tx,{handler:Of,state:n}):"closed_confirmed"===t.params.data.event?(n.resolve(n.closeTx),{handler:Of}):{handler:Of,state:n}:{handler:Of}}function Nf(e){return Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return{...e,[it(n)]:r}}),{})}ff.enter=e=>{Kl(e,"open")};const kf=Yi.compose({async init(e){await tf(this,e.existingFsmId?af:of,ff,e)},methods:{on:function(e,t){kl.get(this).on(e,t)},off:function(e,t){kl.get(this).removeListener(e,t)},status:function(){return Sl.get(this)},state:async function(){return Nf(await Zl(this,"channels.get.offchain_state",{}))},round:function(){if(!Tl.get(this))return null;const{txType:e,tx:t}=vi(Tl.get(this)).tx.encodedTx;switch(e){case Kr.channelCreate:return 1;case Kr.channelOffChain:case Kr.channelWithdraw:case Kr.channelDeposit:return parseInt(t.round,10);default:return null}},id:function(){return Ml.get(this)},fsmId:function(){return Hl.get(this)},update:function(e,t,n,r,o){return new Promise(((i,a)=>{Jl(this,((e,t)=>t.handler===ff),((s,c)=>(Vl(s,{jsonrpc:"2.0",method:"channels.update.new",params:{from:e,to:t,amount:n,meta:o}}),{handler:hf,state:{resolve:i,reject:a,sign:r}})))}))},poi:async function(e){let{accounts:t,contracts:n}=e;return(await Zl(this,"channels.get.poi",{accounts:t,contracts:n})).poi},balances:async function(e){return Object.fromEntries((await Zl(this,"channels.get.balances",{accounts:e})).map((e=>[e.account,e.balance])))},leave:function(){return new Promise(((e,t)=>{Jl(this,((e,t)=>t.handler===ff),((n,r)=>(Vl(n,{jsonrpc:"2.0",method:"channels.leave",params:{}}),{handler:If,state:{resolve:e,reject:t}})))}))},shutdown:function(e){return new Promise(((t,n)=>{Jl(this,((e,t)=>t.handler===ff),((r,o)=>(Vl(r,{jsonrpc:"2.0",method:"channels.shutdown",params:{}}),{handler:yf,state:{sign:e,resolve:t,reject:n}})))}))},sendMessage:function(e,t){let n=e;"object"==typeof e&&(n=JSON.stringify(e));const r=e=>Vl(e,{jsonrpc:"2.0",method:"channels.message",params:{info:n,to:t}});if("connecting"===this.status()){const e=t=>{"connecting"!==t&&(setTimeout((()=>r(this)),500),this.off("statusChanged",e))};this.on("statusChanged",e)}else r(this)},withdraw:function(e,t){let{onOnChainTx:n,onOwnWithdrawLocked:r,onWithdrawLocked:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(((i,a)=>{Jl(this,((e,t)=>t.handler===ff),((s,c)=>(Vl(s,{jsonrpc:"2.0",method:"channels.withdraw",params:{amount:e}}),{handler:vf,state:{sign:t,resolve:i,reject:a,onOnChainTx:n,onOwnWithdrawLocked:r,onWithdrawLocked:o}})))}))},deposit:function(e,t){let{onOnChainTx:n,onOwnDepositLocked:r,onDepositLocked:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(((i,a)=>{Jl(this,((e,t)=>t.handler===ff),((s,c)=>(Vl(s,{jsonrpc:"2.0",method:"channels.deposit",params:{amount:e}}),{handler:Ef,state:{sign:t,resolve:i,reject:a,onOnChainTx:n,onOwnDepositLocked:r,onDepositLocked:o}})))}))},createContract:function(e,t){let{code:n,callData:r,deposit:o,vmVersion:i,abiVersion:a}=e;return new Promise(((e,s)=>{Jl(this,((e,t)=>t.handler===ff),((c,u)=>(Vl(c,{jsonrpc:"2.0",method:"channels.update.new_contract",params:{code:n,call_data:r,deposit:o,vm_version:i,abi_version:a}}),{handler:Cf,state:{sign:t,resolve:e,reject:s}})))}))},callContract:function(e,t){let{amount:n,callData:r,contract:o,abiVersion:i}=e;return new Promise(((e,a)=>{Jl(this,((e,t)=>t.handler===ff),((s,c)=>(Vl(s,{jsonrpc:"2.0",method:"channels.update.call_contract",params:{amount:n,call_data:r,contract_id:o,abi_version:i}}),{handler:Qf,state:{resolve:e,reject:a,sign:t}})))}))},callContractStatic:async function(e){let{amount:t,callData:n,contract:r,abiVersion:o}=e;return Nf(await Zl(this,"channels.dry_run.call_contract",{amount:t,call_data:n,contract_id:r,abi_version:o}))},getContractCall:async function(e){let{caller:t,contract:n,round:r}=e;return Nf(await Zl(this,"channels.get.contract_call",{caller_id:t,contract_id:n,round:r}))},getContractState:async function(e){const t=await Zl(this,"channels.get.contract",{pubkey:e});return Nf({...t,contract:Nf(t.contract)})},disconnect:function(){return ef(this)},cleanContractCalls:function(){return new Promise(((e,t)=>{Jl(this,((e,t)=>t.handler===ff),((n,r)=>(Vl(n,{jsonrpc:"2.0",method:"channels.clean_contract_calls",params:{}}),{handler:Tf,state:{resolve:e,reject:t}})))}))},forceProgress:function(e,t){let{amount:n,callData:r,contract:o,abiVersion:i,gas:a=1e6,gasPrice:s=1e9,nonce:c}=e,{onOnChainTx:u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(((e,c)=>{Jl(this,((e,t)=>t.handler===ff),((A,l)=>(Vl(A,{jsonrpc:"2.0",method:"channels.force_progress",params:{amount:n,call_data:r,contract_id:o,abi_version:i,gas_price:s,gas:a}}),{handler:xf,state:{resolve:e,reject:c,sign:t,onOnChainTx:u}})))}))}},statics:{reconnect:async function(e,t){const{sign:n}=e;return kf({...e,reconnectTx:await n("reconnect",Ii(t,Kr.channelReconnect).tx)})}}});var Df=kf,Ff=yA.compose(RA,bA,kA,MA,YA,yl,VA),Uf=Mi()({init(e){let{pageConnection:t,extConnection:n,allowCrossOrigin:r=!1}=e;if(!window)throw new q("Window object not found, you can run bridge only in browser");if(!t)throw new P("pageConnection required");if(!n)throw new P("extConnection required");this.allowCrossOrigin=r,this.pageConnection=t,this.extConnection=n},methods:{run:function(){const e=this.allowCrossOrigin;this.extConnection.connect((e=>{this.pageConnection.sendMessage(e)})),this.pageConnection.connect(((t,n,r)=>{(e||r===window)&&this.extConnection.sendMessage(t)}))},stop:function(){this.extConnection.disconnect(),this.pageConnection.disconnect()}}}),Rf=(0,ji.required)({methods:{connect:ji.required,disconnect:ji.required,sendMessage:ji.required,isConnected:ji.required}});const Pf=()=>{const e="object"==typeof rl(!0).extension,t=window&&window.location&&window.location.protocol.startsWith("http");return e&&t?window:ol()?window.parent:void 0};var Mf=Mi()({init(){let{connectionInfo:e={},target:t=Pf(),self:n=window,origin:r,sendDirection:o,receiveDirection:i=$A.to_aepp,debug:a=!1,forceOrigin:s=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o&&!Object.keys($A).includes(o))throw new nt(`sendDirection must be one of [${Object.keys($A)}]`);if(!Object.keys($A).includes(i))throw new nt(`receiveDirection must be one of [${Object.keys($A)}]`);this.connectionInfo={id:Zt(),...e};const c=n,u=t;this.origin=r,this.debug=a,this.forceOrigin=s,this.sendDirection=o,this.receiveDirection=i,this.subscribeFn=e=>c.addEventListener("message",e,!1),this.unsubscribeFn=e=>c.removeEventListener("message",e,!1),this.postFn=e=>u.postMessage(e,this.origin||"*")},methods:{connect:function(e){const t=this.origin,n=this.receiveDirection,r=this.debug,o=this.forceOrigin;if(this.listener)throw new tt("You already connected");this.listener=(i,a)=>{if(i&&"object"==typeof i.data&&(o||!t||t===i.origin))if(r&&console.log("Receive message: ",i),i.data.type){if(i.data.type!==n)return;e(i.data.data,i.origin,i.source)}else e(i.data,i.origin,i.source)},this.subscribeFn(this.listener)},sendMessage:function(e){const t=this.sendDirection?{type:this.sendDirection,data:e}:e;this.debug&&console.log("Send message: ",t),this.postFn(t)},disconnect:function(){if(!this.listener)throw new rt("You dont have connection. Please connect before");this.unsubscribeFn(this.listener),this.listener=null},isConnected:function(){return this.listener}}},Rf),jf=Mi()({init(){let{connection:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!window)throw new q("Window object not found, you can run wallet detector only in browser");this.connection=e||Mf({connectionInfo:{id:"spy"}}),this.wallets={}},methods:{scan(e){const{wallets:t}=this;this.connection.connect(((n,r,o)=>{let{method:i,params:a}=n;if(!i||!a||i!==el.readyToConnect||t[a.id])return;const s={...a,async getConnection(){const e="extension"===this.type,t=e?window.origin:this.origin;return Mf({connectionInfo:this,sendDirection:e?$A.to_waellet:void 0,receiveDirection:e?$A.to_aepp:void 0,target:o,origin:t})}};t[s.id]=s,e({wallets:t,newWallet:s})})),Object.keys(t).length&&e({wallets:t})},stopScan(){this.connection.disconnect()}}}),Lf=Mi()({init(e){let{connectionInfo:t={},port:n,debug:r=!1}=e;if(!rl().runtime)throw new ot("Runtime is not accessible in your environment");this.debug=r,this.connectionInfo=t,this.port=n||rl().runtime.connect(t.id||void 0)},methods:{connect:function(e,t){if(this.isConnected())throw new tt("You already connected");this.handler=(t,n)=>{this.debug&&console.log("Receive message: ",t),e(t,n)},this.port.onMessage.addListener(this.handler),this.port.onDisconnect.addListener((()=>{"function"==typeof t&&t({},this),this.port.disconnect()}))},sendMessage:function(e){if(!this.port)throw new rt("You dont have connection. Please connect before");this.debug&&console.log("Send message: ",e),this.port.postMessage(e)},disconnect:function(){try{this.port.disconnect()}catch(e){console.warning("From BrowserRuntimeConnection: ",e)}},isConnected:function(){return"function"==typeof this.port.onMessage.hasListeners?this.port.onMessage.hasListeners():this.port.onMessage.hasListener(this.handler)}}},Rf);const Gf=ur}(),r}()}));
|
|
3
3
|
//# sourceMappingURL=aepp-sdk.browser-script.js.map
|